aorecomp

Anarchy Online classic in the browser

git clone https://aorecomp.ubeagle.com/code/aorecomp.git


client/game/qqr.dll/lifted-0001.c (211738B)


      1 #define RECOMP_GENERATED_CODE
      2 #include "recomp_types.h"
      3 #include <math.h>
      4 #include <stdio.h>
      5 #include <stdlib.h>
      6 #include <string.h>
      7 
      8 void sub_42002C30(void) {
      9     int _fpu_cmp = 0;
     10     uint32_t _cf = 0;
     11     int _df = 1;
     12     uint32_t _flag_k = FK_NONE;
     13     uint32_t _flag_a = 0, _flag_b = 0;
     14     uint32_t _itail_tgt = 0;
     15     RECOMP_REGS_LOCALS
     16     RECOMP_ENTER(0x42002C30u);
     17 
     18 L_42002C30:
     19     fp_push(*(float*)&MEM32(ecx + 0x48)); /* 0x42002C30: fld dword ptr [ecx + 0x48] */
     20     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42002C33: ret  */
     21     RECOMP_REGS_OUT();
     22 }
     23 
     24 void sub_42002C40(void) {
     25     int _fpu_cmp = 0;
     26     uint32_t _cf = 0;
     27     int _df = 1;
     28     uint32_t _flag_k = FK_NONE;
     29     uint32_t _flag_a = 0, _flag_b = 0;
     30     uint32_t _itail_tgt = 0;
     31     RECOMP_REGS_LOCALS
     32     RECOMP_ENTER(0x42002C40u);
     33 
     34 L_42002C40:
     35     edx = MEM32(ecx + 0x12C); /* 0x42002C40: mov edx, dword ptr [ecx + 0x12c] */
     36     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
     37     eax = 0; /* 0x42002C46: xor eax, eax */
     38     _cf = 0;
     39     _flag_k = FK_TEST;
     40     /* test edx, edx */ /* 0x42002C48: test edx, edx */
     41     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
     42     _cf = 0;
     43     _flag_k = FK_TEST;
     44     SET_LO8(eax, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x42002C4A: setne al */
     45     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42002C4D: ret  */
     46     RECOMP_REGS_OUT();
     47 }
     48 
     49 void sub_42002C50(void) {
     50     int _fpu_cmp = 0;
     51     uint32_t _cf = 0;
     52     int _df = 1;
     53     uint32_t _flag_k = FK_NONE;
     54     uint32_t _flag_a = 0, _flag_b = 0;
     55     uint32_t _itail_tgt = 0;
     56     RECOMP_REGS_LOCALS
     57     RECOMP_ENTER(0x42002C50u);
     58 
     59 L_42002C50:
     60     SET_LO8(eax, MEM8(ecx + 0x4D)); /* 0x42002C50: mov al, byte ptr [ecx + 0x4d] */
     61     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42002C53: ret  */
     62     RECOMP_REGS_OUT();
     63 }
     64 
     65 void sub_42002C60(void) {
     66     int _fpu_cmp = 0;
     67     uint32_t _cf = 0;
     68     int _df = 1;
     69     uint32_t _flag_k = FK_NONE;
     70     uint32_t _flag_a = 0, _flag_b = 0;
     71     uint32_t _itail_tgt = 0;
     72     RECOMP_REGS_LOCALS
     73     RECOMP_ENTER(0x42002C60u);
     74 
     75 L_42002C60:
     76     SET_LO8(eax, MEM8(ecx + 0x4C)); /* 0x42002C60: mov al, byte ptr [ecx + 0x4c] */
     77     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42002C63: ret  */
     78     RECOMP_REGS_OUT();
     79 }
     80 
     81 void sub_42002C70(void) {
     82     int _fpu_cmp = 0;
     83     uint32_t _cf = 0;
     84     int _df = 1;
     85     uint32_t _flag_k = FK_NONE;
     86     uint32_t _flag_a = 0, _flag_b = 0;
     87     uint32_t _itail_tgt = 0;
     88     RECOMP_REGS_LOCALS
     89     RECOMP_ENTER(0x42002C70u);
     90 
     91 L_42002C70:
     92     SET_LO8(eax, MEM8(ecx + 0x4E)); /* 0x42002C70: mov al, byte ptr [ecx + 0x4e] */
     93     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42002C73: ret  */
     94     RECOMP_REGS_OUT();
     95 }
     96 
     97 void sub_42002C80(void) {
     98     int _fpu_cmp = 0;
     99     uint32_t _cf = 0;
    100     int _df = 1;
    101     uint32_t _flag_k = FK_NONE;
    102     uint32_t _flag_a = 0, _flag_b = 0;
    103     uint32_t _itail_tgt = 0;
    104     RECOMP_REGS_LOCALS
    105     RECOMP_ENTER(0x42002C80u);
    106 
    107 L_42002C80:
    108     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42002C80: ret 4 */
    109     RECOMP_REGS_OUT();
    110 }
    111 
    112 void sub_42002C90(void) {
    113     int _fpu_cmp = 0;
    114     uint32_t _cf = 0;
    115     int _df = 1;
    116     uint32_t _flag_k = FK_NONE;
    117     uint32_t _flag_a = 0, _flag_b = 0;
    118     uint32_t _itail_tgt = 0;
    119     RECOMP_REGS_LOCALS
    120     RECOMP_ENTER(0x42002C90u);
    121 
    122 L_42002C90:
    123     PUSH32(esp, esi); /* 0x42002C90: push esi */
    124     esi = ecx; /* 0x42002C91: mov esi, ecx */
    125     RECOMP_ICALL(0x42015560u); /* 0x42002C93: call 0x42015560 */ /* not lifted */
    126     RECOMP_FLAGS_IN();
    127     /* test LO8(eax), LO8(eax) */ /* 0x42002C98: test al, al */
    128     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    129     _cf = 0;
    130     _flag_k = FK_NARROW(FK_TEST, 24);
    131     if (TEST_Z(_flag_a, _flag_b)) goto L_42002CA6; /* 0x42002C9A: je 0x42002ca6 */
    132 L_42002C9C:
    133     ecx = MEM32(esi + 0x28); /* 0x42002C9C: mov ecx, dword ptr [esi + 0x28] */
    134     eax = MEM32(ecx); /* 0x42002C9F: mov eax, dword ptr [ecx] */
    135     RECOMP_ICALL(MEM32(eax + 0x44)); /* 0x42002CA1: call dword ptr [eax + 0x44] */
    136     RECOMP_FLAGS_IN();
    137     esi = POP32_VAL(esp); /* 0x42002CA4: pop esi */
    138     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42002CA5: ret  */
    139 L_42002CA6:
    140     edx = MEM32(esi); /* 0x42002CA6: mov edx, dword ptr [esi] */
    141     ecx = esi; /* 0x42002CA8: mov ecx, esi */
    142     RECOMP_ICALL(MEM32(edx + 0x40)); /* 0x42002CAA: call dword ptr [edx + 0x40] */
    143     RECOMP_FLAGS_IN();
    144     esi = POP32_VAL(esp); /* 0x42002CAD: pop esi */
    145     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42002CAE: ret  */
    146     RECOMP_REGS_OUT();
    147 }
    148 
    149 void sub_42002CB0(void) {
    150     int _fpu_cmp = 0;
    151     uint32_t _cf = 0;
    152     int _df = 1;
    153     uint32_t _flag_k = FK_NONE;
    154     uint32_t _flag_a = 0, _flag_b = 0;
    155     uint32_t _itail_tgt = 0;
    156     RECOMP_REGS_LOCALS
    157     RECOMP_ENTER(0x42002CB0u);
    158 
    159 L_42002CB0:
    160     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    161     eax = 0; /* 0x42002CB0: xor eax, eax */
    162     _cf = 0;
    163     _flag_k = FK_TEST;
    164     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42002CB2: ret  */
    165     RECOMP_REGS_OUT();
    166 }
    167 
    168 void sub_42002CC0(void) {
    169     int _fpu_cmp = 0;
    170     uint32_t _cf = 0;
    171     int _df = 1;
    172     uint32_t _flag_k = FK_NONE;
    173     uint32_t _flag_a = 0, _flag_b = 0;
    174     uint32_t _itail_tgt = 0;
    175     RECOMP_REGS_LOCALS
    176     RECOMP_ENTER(0x42002CC0u);
    177 
    178 L_42002CC0:
    179     SET_LO8(eax, 1); /* 0x42002CC0: mov al, 1 */
    180     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42002CC2: ret  */
    181     RECOMP_REGS_OUT();
    182 }
    183 
    184 void sub_42002CD0(void) {
    185     int _fpu_cmp = 0;
    186     uint32_t _cf = 0;
    187     int _df = 1;
    188     uint32_t _flag_k = FK_NONE;
    189     uint32_t _flag_a = 0, _flag_b = 0;
    190     uint32_t _itail_tgt = 0;
    191     RECOMP_REGS_LOCALS
    192     RECOMP_ENTER(0x42002CD0u);
    193 
    194 L_42002CD0:
    195     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    196     eax = 0; /* 0x42002CD0: xor eax, eax */
    197     _cf = 0;
    198     _flag_k = FK_TEST;
    199     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42002CD2: ret 4 */
    200     RECOMP_REGS_OUT();
    201 }
    202 
    203 void sub_42002CE0(void) {
    204     int _fpu_cmp = 0;
    205     uint32_t _cf = 0;
    206     int _df = 1;
    207     uint32_t _flag_k = FK_NONE;
    208     uint32_t _flag_a = 0, _flag_b = 0;
    209     uint32_t _itail_tgt = 0;
    210     RECOMP_REGS_LOCALS
    211     RECOMP_ENTER(0x42002CE0u);
    212 
    213 L_42002CE0:
    214     PUSH32(esp, ebp); /* 0x42002CE0: push ebp */
    215     ebp = esp; /* 0x42002CE1: mov ebp, esp */
    216     SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x42002CE3: mov al, byte ptr [ebp + 8] */
    217     MEM8(0x420223E0) = (uint8_t)(LO8(eax)); /* 0x42002CE6: mov byte ptr [0x420223e0], al */
    218     ebp = POP32_VAL(esp); /* 0x42002CEB: pop ebp */
    219     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42002CEC: ret  */
    220     RECOMP_REGS_OUT();
    221 }
    222 
    223 void sub_42002CF0(void) {
    224     int _fpu_cmp = 0;
    225     uint32_t _cf = 0;
    226     int _df = 1;
    227     uint32_t _flag_k = FK_NONE;
    228     uint32_t _flag_a = 0, _flag_b = 0;
    229     uint32_t _itail_tgt = 0;
    230     RECOMP_REGS_LOCALS
    231     RECOMP_ENTER(0x42002CF0u);
    232 
    233 L_42002CF0:
    234     fp_push(*(float*)&MEM32(0x42023264)); /* 0x42002CF0: fld dword ptr [0x42023264] */
    235     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42002CF6: ret  */
    236     RECOMP_REGS_OUT();
    237 }
    238 
    239 void sub_42002D00(void) {
    240     int _fpu_cmp = 0;
    241     uint32_t _cf = 0;
    242     int _df = 1;
    243     uint32_t _flag_k = FK_NONE;
    244     uint32_t _flag_a = 0, _flag_b = 0;
    245     uint32_t _itail_tgt = 0;
    246     RECOMP_REGS_LOCALS
    247     RECOMP_ENTER(0x42002D00u);
    248 
    249 L_42002D00:
    250     PUSH32(esp, ebp); /* 0x42002D00: push ebp */
    251     ebp = esp; /* 0x42002D01: mov ebp, esp */
    252     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    253     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    254     esp = esp - 0xCu; /* 0x42002D03: sub esp, 0xc */
    255     _flag_k = FK_CMP;
    256     eax = MEM32(ebp + 0x8); /* 0x42002D06: mov eax, dword ptr [ebp + 8] */
    257     MEM32(ebp + (-0xC)) = 0; /* 0x42002D09: mov dword ptr [ebp - 0xc], 0 */
    258     ecx = MEM32(ebp + (-0xC)); /* 0x42002D10: mov ecx, dword ptr [ebp - 0xc] */
    259     MEM32(eax) = ecx; /* 0x42002D13: mov dword ptr [eax], ecx */
    260     MEM32(ebp + (-0x8)) = 0x3F800000u; /* 0x42002D15: mov dword ptr [ebp - 8], 0x3f800000 */
    261     edx = MEM32(ebp + (-0x8)); /* 0x42002D1C: mov edx, dword ptr [ebp - 8] */
    262     MEM32(ebp + (-0x4)) = 0; /* 0x42002D1F: mov dword ptr [ebp - 4], 0 */
    263     ecx = MEM32(ebp + (-0x4)); /* 0x42002D26: mov ecx, dword ptr [ebp - 4] */
    264     MEM32(eax + 0x4) = edx; /* 0x42002D29: mov dword ptr [eax + 4], edx */
    265     MEM32(eax + 0x8) = ecx; /* 0x42002D2C: mov dword ptr [eax + 8], ecx */
    266     SET_LO8(eax, 1); /* 0x42002D2F: mov al, 1 */
    267     esp = ebp; /* 0x42002D31: mov esp, ebp */
    268     ebp = POP32_VAL(esp); /* 0x42002D33: pop ebp */
    269     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42002D34: ret 4 */
    270     RECOMP_REGS_OUT();
    271 }
    272 
    273 void sub_42002D40(void) {
    274     int _fpu_cmp = 0;
    275     uint32_t _cf = 0;
    276     int _df = 1;
    277     uint32_t _flag_k = FK_NONE;
    278     uint32_t _flag_a = 0, _flag_b = 0;
    279     uint32_t _itail_tgt = 0;
    280     RECOMP_REGS_LOCALS
    281     RECOMP_ENTER(0x42002D40u);
    282 
    283 L_42002D40:
    284     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
    285     SET_LO8(eax, 0); /* 0x42002D40: xor al, al */
    286     _cf = 0;
    287     _flag_k = FK_NARROW(FK_TEST, 24);
    288     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42002D42: ret 4 */
    289     RECOMP_REGS_OUT();
    290 }
    291 
    292 void sub_42002D50(void) {
    293     int _fpu_cmp = 0;
    294     uint32_t _cf = 0;
    295     int _df = 1;
    296     uint32_t _flag_k = FK_NONE;
    297     uint32_t _flag_a = 0, _flag_b = 0;
    298     uint32_t _itail_tgt = 0;
    299     RECOMP_REGS_LOCALS
    300     RECOMP_ENTER(0x42002D50u);
    301 
    302 L_42002D50:
    303     fp_push(*(float*)&MEM32(ecx + 0x110)); /* 0x42002D50: fld dword ptr [ecx + 0x110] */
    304     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42002D56: ret  */
    305     RECOMP_REGS_OUT();
    306 }
    307 
    308 void sub_42002D60(void) {
    309     int _fpu_cmp = 0;
    310     uint32_t _cf = 0;
    311     int _df = 1;
    312     uint32_t _flag_k = FK_NONE;
    313     uint32_t _flag_a = 0, _flag_b = 0;
    314     uint32_t _itail_tgt = 0;
    315     RECOMP_REGS_LOCALS
    316     RECOMP_ENTER(0x42002D60u);
    317 
    318 L_42002D60:
    319     eax = MEM32(ecx + 0x114); /* 0x42002D60: mov eax, dword ptr [ecx + 0x114] */
    320     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42002D66: ret  */
    321     RECOMP_REGS_OUT();
    322 }
    323 
    324 void sub_42002D70(void) {
    325     int _fpu_cmp = 0;
    326     uint32_t _cf = 0;
    327     int _df = 1;
    328     uint32_t _flag_k = FK_NONE;
    329     uint32_t _flag_a = 0, _flag_b = 0;
    330     uint32_t _itail_tgt = 0;
    331     RECOMP_REGS_LOCALS
    332     RECOMP_ENTER(0x42002D70u);
    333 
    334 L_42002D70:
    335     eax = ecx + 0x118; /* 0x42002D70: lea eax, [ecx + 0x118] */
    336     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42002D76: ret  */
    337     RECOMP_REGS_OUT();
    338 }
    339 
    340 void sub_42002D80(void) {
    341     int _fpu_cmp = 0;
    342     uint32_t _cf = 0;
    343     int _df = 1;
    344     uint32_t _flag_k = FK_NONE;
    345     uint32_t _flag_a = 0, _flag_b = 0;
    346     uint32_t _itail_tgt = 0;
    347     RECOMP_REGS_LOCALS
    348     RECOMP_ENTER(0x42002D80u);
    349 
    350 L_42002D80:
    351     SET_LO8(eax, MEM8(ecx + 0x124)); /* 0x42002D80: mov al, byte ptr [ecx + 0x124] */
    352     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42002D86: ret  */
    353     RECOMP_REGS_OUT();
    354 }
    355 
    356 void sub_42002D90(void) {
    357     int _fpu_cmp = 0;
    358     uint32_t _cf = 0;
    359     int _df = 1;
    360     uint32_t _flag_k = FK_NONE;
    361     uint32_t _flag_a = 0, _flag_b = 0;
    362     uint32_t _itail_tgt = 0;
    363     RECOMP_REGS_LOCALS
    364     RECOMP_ENTER(0x42002D90u);
    365 
    366 L_42002D90:
    367     PUSH32(esp, ebp); /* 0x42002D90: push ebp */
    368     ebp = esp; /* 0x42002D91: mov ebp, esp */
    369     SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x42002D93: mov al, byte ptr [ebp + 8] */
    370     MEM8(ecx + 0x124) = (uint8_t)(LO8(eax)); /* 0x42002D96: mov byte ptr [ecx + 0x124], al */
    371     ebp = POP32_VAL(esp); /* 0x42002D9C: pop ebp */
    372     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42002D9D: ret 4 */
    373     RECOMP_REGS_OUT();
    374 }
    375 
    376 void sub_42002DA0(void) {
    377     int _fpu_cmp = 0;
    378     uint32_t _cf = 0;
    379     int _df = 1;
    380     uint32_t _flag_k = FK_NONE;
    381     uint32_t _flag_a = 0, _flag_b = 0;
    382     uint32_t _itail_tgt = 0;
    383     RECOMP_REGS_LOCALS
    384     RECOMP_ENTER(0x42002DA0u);
    385 
    386 L_42002DA0:
    387     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42002DA0: ret  */
    388     RECOMP_REGS_OUT();
    389 }
    390 
    391 void sub_42002DB0(void) {
    392     int _fpu_cmp = 0;
    393     uint32_t _cf = 0;
    394     int _df = 1;
    395     uint32_t _flag_k = FK_NONE;
    396     uint32_t _flag_a = 0, _flag_b = 0;
    397     uint32_t _itail_tgt = 0;
    398     RECOMP_REGS_LOCALS
    399     RECOMP_ENTER(0x42002DB0u);
    400 
    401 L_42002DB0:
    402     eax = MEM32(ecx + 0x134); /* 0x42002DB0: mov eax, dword ptr [ecx + 0x134] */
    403     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42002DB6: ret  */
    404     RECOMP_REGS_OUT();
    405 }
    406 
    407 void sub_42002DC0(void) {
    408     int _fpu_cmp = 0;
    409     uint32_t _cf = 0;
    410     int _df = 1;
    411     uint32_t _flag_k = FK_NONE;
    412     uint32_t _flag_a = 0, _flag_b = 0;
    413     uint32_t _itail_tgt = 0;
    414     RECOMP_REGS_LOCALS
    415     RECOMP_ENTER(0x42002DC0u);
    416 
    417 L_42002DC0:
    418     PUSH32(esp, ebp); /* 0x42002DC0: push ebp */
    419     ebp = esp; /* 0x42002DC1: mov ebp, esp */
    420     eax = MEM32(ebp + 0x8); /* 0x42002DC3: mov eax, dword ptr [ebp + 8] */
    421     MEM32(ecx + 0x134) = eax; /* 0x42002DC6: mov dword ptr [ecx + 0x134], eax */
    422     ebp = POP32_VAL(esp); /* 0x42002DCC: pop ebp */
    423     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42002DCD: ret 4 */
    424     RECOMP_REGS_OUT();
    425 }
    426 
    427 void sub_42002DD0(void) {
    428     int _fpu_cmp = 0;
    429     uint32_t _cf = 0;
    430     int _df = 1;
    431     uint32_t _flag_k = FK_NONE;
    432     uint32_t _flag_a = 0, _flag_b = 0;
    433     uint32_t _itail_tgt = 0;
    434     RECOMP_REGS_LOCALS
    435     RECOMP_ENTER(0x42002DD0u);
    436 
    437 L_42002DD0:
    438     SET_LO8(eax, 1); /* 0x42002DD0: mov al, 1 */
    439     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x42002DD2: ret 8 */
    440     RECOMP_REGS_OUT();
    441 }
    442 
    443 void sub_42002DE0(void) {
    444     int _fpu_cmp = 0;
    445     uint32_t _cf = 0;
    446     int _df = 1;
    447     uint32_t _flag_k = FK_NONE;
    448     uint32_t _flag_a = 0, _flag_b = 0;
    449     uint32_t _itail_tgt = 0;
    450     RECOMP_REGS_LOCALS
    451     RECOMP_ENTER(0x42002DE0u);
    452 
    453 L_42002DE0:
    454     eax = ecx; /* 0x42002DE0: mov eax, ecx */
    455     MEM32(eax) = 0x42018130u; /* 0x42002DE2: mov dword ptr [eax], 0x42018130 */
    456     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42002DE8: ret  */
    457     RECOMP_REGS_OUT();
    458 }
    459 
    460 void sub_42002DF0(void) {
    461     int _fpu_cmp = 0;
    462     uint32_t _cf = 0;
    463     int _df = 1;
    464     uint32_t _flag_k = FK_NONE;
    465     uint32_t _flag_a = 0, _flag_b = 0;
    466     uint32_t _itail_tgt = 0;
    467     RECOMP_REGS_LOCALS
    468     RECOMP_ENTER(0x42002DF0u);
    469 
    470 L_42002DF0:
    471     eax = ecx; /* 0x42002DF0: mov eax, ecx */
    472     MEM32(eax) = 0x42018130u; /* 0x42002DF2: mov dword ptr [eax], 0x42018130 */
    473     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42002DF8: ret 4 */
    474     RECOMP_REGS_OUT();
    475 }
    476 
    477 void sub_42002E00(void) {
    478     int _fpu_cmp = 0;
    479     uint32_t _cf = 0;
    480     int _df = 1;
    481     uint32_t _flag_k = FK_NONE;
    482     uint32_t _flag_a = 0, _flag_b = 0;
    483     uint32_t _itail_tgt = 0;
    484     RECOMP_REGS_LOCALS
    485     RECOMP_ENTER(0x42002E00u);
    486 
    487 L_42002E00:
    488     PUSH32(esp, ebp); /* 0x42002E00: push ebp */
    489     ebp = esp; /* 0x42002E01: mov ebp, esp */
    490     PUSH32(esp, ebx); /* 0x42002E03: push ebx */
    491     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x42002E04: mov bl, byte ptr [ebp + 8] */
    492     /* test LO8(ebx), 2 */ /* 0x42002E07: test bl, 2 */
    493     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
    494     _cf = 0;
    495     _flag_k = FK_NARROW(FK_TEST, 24);
    496     PUSH32(esp, esi); /* 0x42002E0A: push esi */
    497     esi = ecx; /* 0x42002E0B: mov esi, ecx */
    498     if (TEST_Z(_flag_a, _flag_b)) goto L_42002E3B; /* 0x42002E0D: je 0x42002e3b */
    499 L_42002E0F:
    500     eax = MEM32(esi + (-0x4)); /* 0x42002E0F: mov eax, dword ptr [esi - 4] */
    501     PUSH32(esp, edi); /* 0x42002E12: push edi */
    502     PUSH32(esp, 0x42002F00u); /* 0x42002E13: push 0x42002f00 */
    503     edi = esi + (-0x4); /* 0x42002E18: lea edi, [esi - 4] */
    504     PUSH32(esp, eax); /* 0x42002E1B: push eax */
    505     PUSH32(esp, 4); /* 0x42002E1C: push 4 */
    506     PUSH32(esp, esi); /* 0x42002E1E: push esi */
    507     RECOMP_ICALL(0x42016E3Cu); /* 0x42002E1F: call 0x42016e3c */ /* not lifted */
    508     RECOMP_FLAGS_IN();
    509     /* test LO8(ebx), 1 */ /* 0x42002E24: test bl, 1 */
    510     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
    511     _cf = 0;
    512     _flag_k = FK_NARROW(FK_TEST, 24);
    513     if (TEST_Z(_flag_a, _flag_b)) goto L_42002E32; /* 0x42002E27: je 0x42002e32 */
    514 L_42002E29:
    515     PUSH32(esp, edi); /* 0x42002E29: push edi */
    516     RECOMP_ICALL(0x42016DD0u); /* 0x42002E2A: call 0x42016dd0 */ /* not lifted */
    517     RECOMP_FLAGS_IN();
    518     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    519     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    520     esp = esp + 4; /* 0x42002E2F: add esp, 4 */
    521     _flag_k = FK_ADD;
    522 L_42002E32:
    523     eax = edi; /* 0x42002E32: mov eax, edi */
    524     edi = POP32_VAL(esp); /* 0x42002E34: pop edi */
    525     esi = POP32_VAL(esp); /* 0x42002E35: pop esi */
    526     ebx = POP32_VAL(esp); /* 0x42002E36: pop ebx */
    527     ebp = POP32_VAL(esp); /* 0x42002E37: pop ebp */
    528     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42002E38: ret 4 */
    529 L_42002E3B:
    530     /* test LO8(ebx), 1 */ /* 0x42002E3B: test bl, 1 */
    531     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
    532     _cf = 0;
    533     _flag_k = FK_NARROW(FK_TEST, 24);
    534     MEM32(esi) = 0x42018130u; /* 0x42002E3E: mov dword ptr [esi], 0x42018130 */
    535     if (TEST_Z(_flag_a, _flag_b)) goto L_42002E4F; /* 0x42002E44: je 0x42002e4f */
    536 L_42002E46:
    537     PUSH32(esp, esi); /* 0x42002E46: push esi */
    538     RECOMP_ICALL(0x42016DD0u); /* 0x42002E47: call 0x42016dd0 */ /* not lifted */
    539     RECOMP_FLAGS_IN();
    540     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    541     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    542     esp = esp + 4; /* 0x42002E4C: add esp, 4 */
    543     _flag_k = FK_ADD;
    544 L_42002E4F:
    545     eax = esi; /* 0x42002E4F: mov eax, esi */
    546     esi = POP32_VAL(esp); /* 0x42002E51: pop esi */
    547     ebx = POP32_VAL(esp); /* 0x42002E52: pop ebx */
    548     ebp = POP32_VAL(esp); /* 0x42002E53: pop ebp */
    549     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42002E54: ret 4 */
    550     RECOMP_REGS_OUT();
    551 }
    552 
    553 void sub_42002E60(void) {
    554     int _fpu_cmp = 0;
    555     uint32_t _cf = 0;
    556     int _df = 1;
    557     uint32_t _flag_k = FK_NONE;
    558     uint32_t _flag_a = 0, _flag_b = 0;
    559     uint32_t _itail_tgt = 0;
    560     RECOMP_REGS_LOCALS
    561     RECOMP_ENTER(0x42002E60u);
    562 
    563 L_42002E60:
    564     PUSH32(esp, ebp); /* 0x42002E60: push ebp */
    565     ebp = esp; /* 0x42002E61: mov ebp, esp */
    566     edx = MEM32(ebp + 0x8); /* 0x42002E63: mov edx, dword ptr [ebp + 8] */
    567     eax = ecx; /* 0x42002E66: mov eax, ecx */
    568     ecx = eax + 0x4; /* 0x42002E68: lea ecx, [eax + 4] */
    569     MEM32(ecx) = edx; /* 0x42002E6B: mov dword ptr [ecx], edx */
    570     edx = MEM32(ebp + 0xC); /* 0x42002E6D: mov edx, dword ptr [ebp + 0xc] */
    571     MEM32(ecx + 0x4) = edx; /* 0x42002E70: mov dword ptr [ecx + 4], edx */
    572     edx = MEM32(ebp + 0x10); /* 0x42002E73: mov edx, dword ptr [ebp + 0x10] */
    573     MEM32(ecx + 0x8) = edx; /* 0x42002E76: mov dword ptr [ecx + 8], edx */
    574     ecx = MEM32(ebp + 0x14); /* 0x42002E79: mov ecx, dword ptr [ebp + 0x14] */
    575     MEM32(eax + 0x10) = ecx; /* 0x42002E7C: mov dword ptr [eax + 0x10], ecx */
    576     MEM32(eax) = 0x42018158u; /* 0x42002E7F: mov dword ptr [eax], 0x42018158 */
    577     ebp = POP32_VAL(esp); /* 0x42002E85: pop ebp */
    578     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x42002E86: ret 0x10 */
    579     RECOMP_REGS_OUT();
    580 }
    581 
    582 void sub_42002E90(void) {
    583     int _fpu_cmp = 0;
    584     uint32_t _cf = 0;
    585     int _df = 1;
    586     uint32_t _flag_k = FK_NONE;
    587     uint32_t _flag_a = 0, _flag_b = 0;
    588     uint32_t _itail_tgt = 0;
    589     RECOMP_REGS_LOCALS
    590     RECOMP_ENTER(0x42002E90u);
    591 
    592 L_42002E90:
    593     PUSH32(esp, ebp); /* 0x42002E90: push ebp */
    594     ebp = esp; /* 0x42002E91: mov ebp, esp */
    595     eax = ecx; /* 0x42002E93: mov eax, ecx */
    596     ecx = MEM32(ebp + 0x8); /* 0x42002E95: mov ecx, dword ptr [ebp + 8] */
    597     PUSH32(esp, esi); /* 0x42002E98: push esi */
    598     MEM32(eax) = 0x42018130u; /* 0x42002E99: mov dword ptr [eax], 0x42018130 */
    599     PUSH32(esp, edi); /* 0x42002E9F: push edi */
    600     edx = ecx + 0x4; /* 0x42002EA0: lea edx, [ecx + 4] */
    601     edi = MEM32(edx); /* 0x42002EA3: mov edi, dword ptr [edx] */
    602     esi = eax + 0x4; /* 0x42002EA5: lea esi, [eax + 4] */
    603     MEM32(esi) = edi; /* 0x42002EA8: mov dword ptr [esi], edi */
    604     edi = MEM32(edx + 0x4); /* 0x42002EAA: mov edi, dword ptr [edx + 4] */
    605     MEM32(esi + 0x4) = edi; /* 0x42002EAD: mov dword ptr [esi + 4], edi */
    606     edx = MEM32(edx + 0x8); /* 0x42002EB0: mov edx, dword ptr [edx + 8] */
    607     MEM32(esi + 0x8) = edx; /* 0x42002EB3: mov dword ptr [esi + 8], edx */
    608     ecx = MEM32(ecx + 0x10); /* 0x42002EB6: mov ecx, dword ptr [ecx + 0x10] */
    609     edi = POP32_VAL(esp); /* 0x42002EB9: pop edi */
    610     MEM32(eax + 0x10) = ecx; /* 0x42002EBA: mov dword ptr [eax + 0x10], ecx */
    611     MEM32(eax) = 0x42018158u; /* 0x42002EBD: mov dword ptr [eax], 0x42018158 */
    612     esi = POP32_VAL(esp); /* 0x42002EC3: pop esi */
    613     ebp = POP32_VAL(esp); /* 0x42002EC4: pop ebp */
    614     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42002EC5: ret 4 */
    615     RECOMP_REGS_OUT();
    616 }
    617 
    618 void sub_42002ED0(void) {
    619     int _fpu_cmp = 0;
    620     uint32_t _cf = 0;
    621     int _df = 1;
    622     uint32_t _flag_k = FK_NONE;
    623     uint32_t _flag_a = 0, _flag_b = 0;
    624     uint32_t _itail_tgt = 0;
    625     RECOMP_REGS_LOCALS
    626     RECOMP_ENTER(0x42002ED0u);
    627 
    628 L_42002ED0:
    629     PUSH32(esp, ebp); /* 0x42002ED0: push ebp */
    630     ebp = esp; /* 0x42002ED1: mov ebp, esp */
    631     PUSH32(esp, esi); /* 0x42002ED3: push esi */
    632     eax = ecx; /* 0x42002ED4: mov eax, ecx */
    633     ecx = MEM32(ebp + 0x8); /* 0x42002ED6: mov ecx, dword ptr [ebp + 8] */
    634     PUSH32(esp, edi); /* 0x42002ED9: push edi */
    635     edx = ecx + 0x4; /* 0x42002EDA: lea edx, [ecx + 4] */
    636     edi = MEM32(edx); /* 0x42002EDD: mov edi, dword ptr [edx] */
    637     esi = eax + 0x4; /* 0x42002EDF: lea esi, [eax + 4] */
    638     MEM32(esi) = edi; /* 0x42002EE2: mov dword ptr [esi], edi */
    639     edi = MEM32(edx + 0x4); /* 0x42002EE4: mov edi, dword ptr [edx + 4] */
    640     MEM32(esi + 0x4) = edi; /* 0x42002EE7: mov dword ptr [esi + 4], edi */
    641     edx = MEM32(edx + 0x8); /* 0x42002EEA: mov edx, dword ptr [edx + 8] */
    642     MEM32(esi + 0x8) = edx; /* 0x42002EED: mov dword ptr [esi + 8], edx */
    643     ecx = MEM32(ecx + 0x10); /* 0x42002EF0: mov ecx, dword ptr [ecx + 0x10] */
    644     edi = POP32_VAL(esp); /* 0x42002EF3: pop edi */
    645     MEM32(eax + 0x10) = ecx; /* 0x42002EF4: mov dword ptr [eax + 0x10], ecx */
    646     esi = POP32_VAL(esp); /* 0x42002EF7: pop esi */
    647     ebp = POP32_VAL(esp); /* 0x42002EF8: pop ebp */
    648     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42002EF9: ret 4 */
    649     RECOMP_REGS_OUT();
    650 }
    651 
    652 void sub_42002F00(void) {
    653     int _fpu_cmp = 0;
    654     uint32_t _cf = 0;
    655     int _df = 1;
    656     uint32_t _flag_k = FK_NONE;
    657     uint32_t _flag_a = 0, _flag_b = 0;
    658     uint32_t _itail_tgt = 0;
    659     RECOMP_REGS_LOCALS
    660     RECOMP_ENTER(0x42002F00u);
    661 
    662 L_42002F00:
    663     MEM32(ecx) = 0x42018130u; /* 0x42002F00: mov dword ptr [ecx], 0x42018130 */
    664     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42002F06: ret  */
    665     RECOMP_REGS_OUT();
    666 }
    667 
    668 void sub_42002F10(void) {
    669     int _fpu_cmp = 0;
    670     uint32_t _cf = 0;
    671     int _df = 1;
    672     uint32_t _flag_k = FK_NONE;
    673     uint32_t _flag_a = 0, _flag_b = 0;
    674     uint32_t _itail_tgt = 0;
    675     RECOMP_REGS_LOCALS
    676     RECOMP_ENTER(0x42002F10u);
    677 
    678 L_42002F10:
    679     PUSH32(esp, ebp); /* 0x42002F10: push ebp */
    680     ebp = esp; /* 0x42002F11: mov ebp, esp */
    681     PUSH32(esp, ebx); /* 0x42002F13: push ebx */
    682     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x42002F14: mov bl, byte ptr [ebp + 8] */
    683     /* test LO8(ebx), 2 */ /* 0x42002F17: test bl, 2 */
    684     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
    685     _cf = 0;
    686     _flag_k = FK_NARROW(FK_TEST, 24);
    687     PUSH32(esp, esi); /* 0x42002F1A: push esi */
    688     esi = ecx; /* 0x42002F1B: mov esi, ecx */
    689     if (TEST_Z(_flag_a, _flag_b)) goto L_42002F4B; /* 0x42002F1D: je 0x42002f4b */
    690 L_42002F1F:
    691     eax = MEM32(esi + (-0x4)); /* 0x42002F1F: mov eax, dword ptr [esi - 4] */
    692     PUSH32(esp, edi); /* 0x42002F22: push edi */
    693     PUSH32(esp, 0x42002F00u); /* 0x42002F23: push 0x42002f00 */
    694     edi = esi + (-0x4); /* 0x42002F28: lea edi, [esi - 4] */
    695     PUSH32(esp, eax); /* 0x42002F2B: push eax */
    696     PUSH32(esp, 0x14u); /* 0x42002F2C: push 0x14 */
    697     PUSH32(esp, esi); /* 0x42002F2E: push esi */
    698     RECOMP_ICALL(0x42016E3Cu); /* 0x42002F2F: call 0x42016e3c */ /* not lifted */
    699     RECOMP_FLAGS_IN();
    700     /* test LO8(ebx), 1 */ /* 0x42002F34: test bl, 1 */
    701     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
    702     _cf = 0;
    703     _flag_k = FK_NARROW(FK_TEST, 24);
    704     if (TEST_Z(_flag_a, _flag_b)) goto L_42002F42; /* 0x42002F37: je 0x42002f42 */
    705 L_42002F39:
    706     PUSH32(esp, edi); /* 0x42002F39: push edi */
    707     RECOMP_ICALL(0x42016DD0u); /* 0x42002F3A: call 0x42016dd0 */ /* not lifted */
    708     RECOMP_FLAGS_IN();
    709     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    710     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    711     esp = esp + 4; /* 0x42002F3F: add esp, 4 */
    712     _flag_k = FK_ADD;
    713 L_42002F42:
    714     eax = edi; /* 0x42002F42: mov eax, edi */
    715     edi = POP32_VAL(esp); /* 0x42002F44: pop edi */
    716     esi = POP32_VAL(esp); /* 0x42002F45: pop esi */
    717     ebx = POP32_VAL(esp); /* 0x42002F46: pop ebx */
    718     ebp = POP32_VAL(esp); /* 0x42002F47: pop ebp */
    719     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42002F48: ret 4 */
    720 L_42002F4B:
    721     ecx = esi; /* 0x42002F4B: mov ecx, esi */
    722     RECOMP_ICALL(0x42002F00u); /* 0x42002F4D: call 0x42002f00 */ /* not lifted */
    723     RECOMP_FLAGS_IN();
    724     /* test LO8(ebx), 1 */ /* 0x42002F52: test bl, 1 */
    725     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
    726     _cf = 0;
    727     _flag_k = FK_NARROW(FK_TEST, 24);
    728     if (TEST_Z(_flag_a, _flag_b)) goto L_42002F60; /* 0x42002F55: je 0x42002f60 */
    729 L_42002F57:
    730     PUSH32(esp, esi); /* 0x42002F57: push esi */
    731     RECOMP_ICALL(0x42016DD0u); /* 0x42002F58: call 0x42016dd0 */ /* not lifted */
    732     RECOMP_FLAGS_IN();
    733     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    734     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    735     esp = esp + 4; /* 0x42002F5D: add esp, 4 */
    736     _flag_k = FK_ADD;
    737 L_42002F60:
    738     eax = esi; /* 0x42002F60: mov eax, esi */
    739     esi = POP32_VAL(esp); /* 0x42002F62: pop esi */
    740     ebx = POP32_VAL(esp); /* 0x42002F63: pop ebx */
    741     ebp = POP32_VAL(esp); /* 0x42002F64: pop ebp */
    742     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42002F65: ret 4 */
    743     RECOMP_REGS_OUT();
    744 }
    745 
    746 void sub_42002F70(void) {
    747     int _fpu_cmp = 0;
    748     uint32_t _cf = 0;
    749     int _df = 1;
    750     uint32_t _flag_k = FK_NONE;
    751     uint32_t _flag_a = 0, _flag_b = 0;
    752     uint32_t _itail_tgt = 0;
    753     RECOMP_REGS_LOCALS
    754     RECOMP_ENTER(0x42002F70u);
    755 
    756 L_42002F70:
    757     PUSH32(esp, esi); /* 0x42002F70: push esi */
    758     esi = ecx; /* 0x42002F71: mov esi, ecx */
    759     RECOMP_ICALL(0x4200FFA0u); /* 0x42002F73: call 0x4200ffa0 */ /* not lifted */
    760     RECOMP_FLAGS_IN();
    761     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    762     eax = 0; /* 0x42002F78: xor eax, eax */
    763     _cf = 0;
    764     _flag_k = FK_TEST;
    765     MEM32(esi + 0x138) = eax; /* 0x42002F7A: mov dword ptr [esi + 0x138], eax */
    766     MEM32(esi + 0x13C) = eax; /* 0x42002F80: mov dword ptr [esi + 0x13c], eax */
    767     MEM32(esi + 0x140) = eax; /* 0x42002F86: mov dword ptr [esi + 0x140], eax */
    768     MEM32(esi + 0x144) = eax; /* 0x42002F8C: mov dword ptr [esi + 0x144], eax */
    769     MEM32(esi + 0x148) = eax; /* 0x42002F92: mov dword ptr [esi + 0x148], eax */
    770     MEM32(esi + 0x14C) = eax; /* 0x42002F98: mov dword ptr [esi + 0x14c], eax */
    771     MEM32(esi + 0x150) = 0x3F800000u; /* 0x42002F9E: mov dword ptr [esi + 0x150], 0x3f800000 */
    772     MEM32(esi + 0x154) = eax; /* 0x42002FA8: mov dword ptr [esi + 0x154], eax */
    773     MEM32(esi + 0x158) = eax; /* 0x42002FAE: mov dword ptr [esi + 0x158], eax */
    774     MEM32(esi + 0x15C) = eax; /* 0x42002FB4: mov dword ptr [esi + 0x15c], eax */
    775     MEM32(esi + 0x164) = eax; /* 0x42002FBA: mov dword ptr [esi + 0x164], eax */
    776     MEM32(esi + 0x168) = eax; /* 0x42002FC0: mov dword ptr [esi + 0x168], eax */
    777     MEM32(esi + 0x16C) = eax; /* 0x42002FC6: mov dword ptr [esi + 0x16c], eax */
    778     MEM32(esi + 0x134) = eax; /* 0x42002FCC: mov dword ptr [esi + 0x134], eax */
    779     MEM32(esi + 0x178) = eax; /* 0x42002FD2: mov dword ptr [esi + 0x178], eax */
    780     MEM32(esi + 0x180) = eax; /* 0x42002FD8: mov dword ptr [esi + 0x180], eax */
    781     MEM32(esi + 0x17C) = eax; /* 0x42002FDE: mov dword ptr [esi + 0x17c], eax */
    782     MEM8(esi + 0x160) = (uint8_t)(LO8(eax)); /* 0x42002FE4: mov byte ptr [esi + 0x160], al */
    783     MEM32(esi) = 0x42018188u; /* 0x42002FEA: mov dword ptr [esi], 0x42018188 */
    784     MEM32(esi + 0x20) = 0x42018180u; /* 0x42002FF0: mov dword ptr [esi + 0x20], 0x42018180 */
    785     MEM32(esi + 0x174) = 0x40800000u; /* 0x42002FF7: mov dword ptr [esi + 0x174], 0x40800000 */
    786     eax = esi; /* 0x42003001: mov eax, esi */
    787     esi = POP32_VAL(esp); /* 0x42003003: pop esi */
    788     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42003004: ret  */
    789     RECOMP_REGS_OUT();
    790 }
    791 
    792 void sub_42003010(void) {
    793     int _fpu_cmp = 0;
    794     uint32_t _cf = 0;
    795     int _df = 1;
    796     uint32_t _flag_k = FK_NONE;
    797     uint32_t _flag_a = 0, _flag_b = 0;
    798     uint32_t _itail_tgt = 0;
    799     RECOMP_REGS_LOCALS
    800     RECOMP_ENTER(0x42003010u);
    801 
    802 L_42003010:
    803     PUSH32(esp, ebp); /* 0x42003010: push ebp */
    804     ebp = esp; /* 0x42003011: mov ebp, esp */
    805     PUSH32(esp, ebx); /* 0x42003013: push ebx */
    806     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x42003014: mov bl, byte ptr [ebp + 8] */
    807     /* test LO8(ebx), 2 */ /* 0x42003017: test bl, 2 */
    808     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
    809     _cf = 0;
    810     _flag_k = FK_NARROW(FK_TEST, 24);
    811     PUSH32(esp, esi); /* 0x4200301A: push esi */
    812     esi = ecx; /* 0x4200301B: mov esi, ecx */
    813     if (TEST_Z(_flag_a, _flag_b)) goto L_4200304E; /* 0x4200301D: je 0x4200304e */
    814 L_4200301F:
    815     eax = MEM32(esi + (-0x4)); /* 0x4200301F: mov eax, dword ptr [esi - 4] */
    816     PUSH32(esp, edi); /* 0x42003022: push edi */
    817     PUSH32(esp, 0x42003070u); /* 0x42003023: push 0x42003070 */
    818     edi = esi + (-0x4); /* 0x42003028: lea edi, [esi - 4] */
    819     PUSH32(esp, eax); /* 0x4200302B: push eax */
    820     PUSH32(esp, 0x188u); /* 0x4200302C: push 0x188 */
    821     PUSH32(esp, esi); /* 0x42003031: push esi */
    822     RECOMP_ICALL(0x42016E3Cu); /* 0x42003032: call 0x42016e3c */ /* not lifted */
    823     RECOMP_FLAGS_IN();
    824     /* test LO8(ebx), 1 */ /* 0x42003037: test bl, 1 */
    825     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
    826     _cf = 0;
    827     _flag_k = FK_NARROW(FK_TEST, 24);
    828     if (TEST_Z(_flag_a, _flag_b)) goto L_42003045; /* 0x4200303A: je 0x42003045 */
    829 L_4200303C:
    830     PUSH32(esp, edi); /* 0x4200303C: push edi */
    831     RECOMP_ICALL(0x42016DD0u); /* 0x4200303D: call 0x42016dd0 */ /* not lifted */
    832     RECOMP_FLAGS_IN();
    833     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    834     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    835     esp = esp + 4; /* 0x42003042: add esp, 4 */
    836     _flag_k = FK_ADD;
    837 L_42003045:
    838     eax = edi; /* 0x42003045: mov eax, edi */
    839     edi = POP32_VAL(esp); /* 0x42003047: pop edi */
    840     esi = POP32_VAL(esp); /* 0x42003048: pop esi */
    841     ebx = POP32_VAL(esp); /* 0x42003049: pop ebx */
    842     ebp = POP32_VAL(esp); /* 0x4200304A: pop ebp */
    843     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4200304B: ret 4 */
    844 L_4200304E:
    845     ecx = esi; /* 0x4200304E: mov ecx, esi */
    846     RECOMP_ICALL(0x42003070u); /* 0x42003050: call 0x42003070 */ /* not lifted */
    847     RECOMP_FLAGS_IN();
    848     /* test LO8(ebx), 1 */ /* 0x42003055: test bl, 1 */
    849     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
    850     _cf = 0;
    851     _flag_k = FK_NARROW(FK_TEST, 24);
    852     if (TEST_Z(_flag_a, _flag_b)) goto L_42003063; /* 0x42003058: je 0x42003063 */
    853 L_4200305A:
    854     PUSH32(esp, esi); /* 0x4200305A: push esi */
    855     RECOMP_ICALL(0x42016DD0u); /* 0x4200305B: call 0x42016dd0 */ /* not lifted */
    856     RECOMP_FLAGS_IN();
    857     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    858     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    859     esp = esp + 4; /* 0x42003060: add esp, 4 */
    860     _flag_k = FK_ADD;
    861 L_42003063:
    862     eax = esi; /* 0x42003063: mov eax, esi */
    863     esi = POP32_VAL(esp); /* 0x42003065: pop esi */
    864     ebx = POP32_VAL(esp); /* 0x42003066: pop ebx */
    865     ebp = POP32_VAL(esp); /* 0x42003067: pop ebp */
    866     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42003068: ret 4 */
    867     RECOMP_REGS_OUT();
    868 }
    869 
    870 void sub_42003070(void) {
    871     int _fpu_cmp = 0;
    872     uint32_t _cf = 0;
    873     int _df = 1;
    874     uint32_t _flag_k = FK_NONE;
    875     uint32_t _flag_a = 0, _flag_b = 0;
    876     uint32_t _itail_tgt = 0;
    877     RECOMP_REGS_LOCALS
    878     RECOMP_ENTER(0x42003070u);
    879 
    880 L_42003070:
    881     MEM32(ecx) = 0x42018188u; /* 0x42003070: mov dword ptr [ecx], 0x42018188 */
    882     MEM32(ecx + 0x20) = 0x42018180u; /* 0x42003076: mov dword ptr [ecx + 0x20], 0x42018180 */
    883     MEM32(ecx + 0x134) = 0; /* 0x4200307D: mov dword ptr [ecx + 0x134], 0 */
    884     goto L_42010200; /* 0x42003087: jmp 0x42010200 */
    885 L_42010200:
    886     PUSH32(esp, ebp); /* 0x42010200: push ebp */
    887     ebp = esp; /* 0x42010201: mov ebp, esp */
    888     PUSH32(esp, 0xFFFFFFFFu); /* 0x42010203: push -1 */
    889     PUSH32(esp, 0x42017776u); /* 0x42010205: push 0x42017776 */
    890     eax = MEM32(FS_BASE + (0)); /* 0x4201020A: mov eax, dword ptr fs:[0] */
    891     PUSH32(esp, eax); /* 0x42010210: push eax */
    892     MEM32(FS_BASE + (0)) = esp; /* 0x42010211: mov dword ptr fs:[0], esp */
    893     PUSH32(esp, ecx); /* 0x42010218: push ecx */
    894     PUSH32(esp, esi); /* 0x42010219: push esi */
    895     esi = ecx; /* 0x4201021A: mov esi, ecx */
    896     edx = esi + 0x20; /* 0x4201021C: lea edx, [esi + 0x20] */
    897     MEM32(ebp + (-0x10)) = esi; /* 0x4201021F: mov dword ptr [ebp - 0x10], esi */
    898     MEM32(esi) = 0x420185ECu; /* 0x42010222: mov dword ptr [esi], 0x420185ec */
    899     MEM32(edx) = 0x420185E4u; /* 0x42010228: mov dword ptr [edx], 0x420185e4 */
    900     ecx = MEM32(esi + 0x28); /* 0x4201022E: mov ecx, dword ptr [esi + 0x28] */
    901     /* test ecx, ecx */ /* 0x42010231: test ecx, ecx */
    902     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    903     _cf = 0;
    904     _flag_k = FK_TEST;
    905     MEM32(ebp + (-0x4)) = 1; /* 0x42010233: mov dword ptr [ebp - 4], 1 */
    906     if (TEST_Z(_flag_a, _flag_b)) goto L_4201024A; /* 0x4201023A: je 0x4201024a */
    907 L_4201023C:
    908     eax = esi; /* 0x4201023C: mov eax, esi */
    909     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
    910     _cf = (eax) != 0;
    911     eax = (uint32_t)(-(int32_t)eax); /* 0x4201023E: neg eax */
    912     _flag_k = FK_CMP;
    913     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x42010240: sbb eax, eax */
    914       eax = _sc ? 0xFFFFFFFFu : 0;
    915       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
    916       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
    917     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
    918     eax = eax & edx; /* 0x42010242: and eax, edx */
    919     _cf = 0;
    920     _flag_k = FK_TEST;
    921     PUSH32(esp, eax); /* 0x42010244: push eax */
    922     RECOMP_ICALL(0x42006980u); /* 0x42010245: call 0x42006980 */ /* not lifted */
    923     RECOMP_FLAGS_IN();
    924 L_4201024A:
    925     ecx = MEM32(esi + 0xAC); /* 0x4201024A: mov ecx, dword ptr [esi + 0xac] */
    926     /* test ecx, ecx */ /* 0x42010250: test ecx, ecx */
    927     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    928     _cf = 0;
    929     _flag_k = FK_TEST;
    930     if (TEST_Z(_flag_a, _flag_b)) goto L_4201025A; /* 0x42010252: je 0x4201025a */
    931 L_42010254:
    932     eax = MEM32(ecx); /* 0x42010254: mov eax, dword ptr [ecx] */
    933     PUSH32(esp, 1); /* 0x42010256: push 1 */
    934     RECOMP_ICALL(MEM32(eax)); /* 0x42010258: call dword ptr [eax] */
    935     RECOMP_FLAGS_IN();
    936 L_4201025A:
    937     ecx = esi + 0x10C; /* 0x4201025A: lea ecx, [esi + 0x10c] */
    938     MEM32(esi + 0xAC) = 0; /* 0x42010260: mov dword ptr [esi + 0xac], 0 */
    939     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x4201026A: mov byte ptr [ebp - 4], 0 */
    940     RECOMP_ICALL(0x420063C0u); /* 0x4201026E: call 0x420063c0 */ /* not lifted */
    941     RECOMP_FLAGS_IN();
    942     ecx = esi; /* 0x42010273: mov ecx, esi */
    943     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x42010275: mov dword ptr [ebp - 4], 0xffffffff */
    944     RECOMP_ICALL(0x42006780u); /* 0x4201027C: call 0x42006780 */ /* not lifted */
    945     RECOMP_FLAGS_IN();
    946     ecx = MEM32(ebp + (-0xC)); /* 0x42010281: mov ecx, dword ptr [ebp - 0xc] */
    947     esi = POP32_VAL(esp); /* 0x42010284: pop esi */
    948     MEM32(FS_BASE + (0)) = ecx; /* 0x42010285: mov dword ptr fs:[0], ecx */
    949     esp = ebp; /* 0x4201028C: mov esp, ebp */
    950     ebp = POP32_VAL(esp); /* 0x4201028E: pop ebp */
    951     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4201028F: ret  */
    952     RECOMP_REGS_OUT();
    953 }
    954 
    955 void sub_42003090(void) {
    956     int _fpu_cmp = 0;
    957     uint32_t _cf = 0;
    958     int _df = 1;
    959     uint32_t _flag_k = FK_NONE;
    960     uint32_t _flag_a = 0, _flag_b = 0;
    961     uint32_t _itail_tgt = 0;
    962     RECOMP_REGS_LOCALS
    963     RECOMP_ENTER(0x42003090u);
    964 
    965 L_42003090:
    966     PUSH32(esp, ebp); /* 0x42003090: push ebp */
    967     ebp = esp; /* 0x42003091: mov ebp, esp */
    968     eax = ecx; /* 0x42003093: mov eax, ecx */
    969     /* test eax, eax */ /* 0x42003095: test eax, eax */
    970     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    971     _cf = 0;
    972     _flag_k = FK_TEST;
    973     ecx = MEM32(ebp + 0x8); /* 0x42003097: mov ecx, dword ptr [ebp + 8] */
    974     MEM32(eax + 0x170) = ecx; /* 0x4200309A: mov dword ptr [eax + 0x170], ecx */
    975     MEM8(eax + 0x160) = (uint8_t)(1); /* 0x420030A0: mov byte ptr [eax + 0x160], 1 */
    976     if (TEST_Z(_flag_a, _flag_b)) goto L_420030B6; /* 0x420030A7: je 0x420030b6 */
    977 L_420030A9:
    978     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x20u);
    979     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    980     eax = eax + 0x20u; /* 0x420030A9: add eax, 0x20 */
    981     _flag_k = FK_ADD;
    982     PUSH32(esp, eax); /* 0x420030AC: push eax */
    983     RECOMP_ICALL(0x420067C0u); /* 0x420030AD: call 0x420067c0 */ /* not lifted */
    984     RECOMP_FLAGS_IN();
    985     ebp = POP32_VAL(esp); /* 0x420030B2: pop ebp */
    986     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x420030B3: ret 4 */
    987 L_420030B6:
    988     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    989     eax = 0; /* 0x420030B6: xor eax, eax */
    990     _cf = 0;
    991     _flag_k = FK_TEST;
    992     PUSH32(esp, eax); /* 0x420030B8: push eax */
    993     RECOMP_ICALL(0x420067C0u); /* 0x420030B9: call 0x420067c0 */ /* not lifted */
    994     RECOMP_FLAGS_IN();
    995     ebp = POP32_VAL(esp); /* 0x420030BE: pop ebp */
    996     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x420030BF: ret 4 */
    997     RECOMP_REGS_OUT();
    998 }
    999 
   1000 void sub_420030D0(void) {
   1001     int _fpu_cmp = 0;
   1002     uint32_t _cf = 0;
   1003     int _df = 1;
   1004     uint32_t _flag_k = FK_NONE;
   1005     uint32_t _flag_a = 0, _flag_b = 0;
   1006     uint32_t _itail_tgt = 0;
   1007     RECOMP_REGS_LOCALS
   1008     RECOMP_ENTER(0x420030D0u);
   1009 
   1010 L_420030D0:
   1011     PUSH32(esp, ebx); /* 0x420030D0: push ebx */
   1012     PUSH32(esp, esi); /* 0x420030D1: push esi */
   1013     esi = ecx; /* 0x420030D2: mov esi, ecx */
   1014     ecx = MEM32(esi + 0x170); /* 0x420030D4: mov ecx, dword ptr [esi + 0x170] */
   1015     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1016     ebx = 0; /* 0x420030DA: xor ebx, ebx */
   1017     _cf = 0;
   1018     _flag_k = FK_TEST;
   1019     /* cmp ecx, ebx */ /* 0x420030DC: cmp ecx, ebx */
   1020     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   1021     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1022     _flag_k = FK_CMP;
   1023     if (CMP_EQ(_flag_a, _flag_b)) goto L_420030F1; /* 0x420030DE: je 0x420030f1 */
   1024 L_420030E0:
   1025     /* cmp esi, ebx */ /* 0x420030E0: cmp esi, ebx */
   1026     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   1027     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1028     _flag_k = FK_CMP;
   1029     if (CMP_EQ(_flag_a, _flag_b)) goto L_420030E9; /* 0x420030E2: je 0x420030e9 */
   1030 L_420030E4:
   1031     eax = esi + 0x20; /* 0x420030E4: lea eax, [esi + 0x20] */
   1032     goto L_420030EB; /* 0x420030E7: jmp 0x420030eb */
   1033 L_420030E9:
   1034     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1035     eax = 0; /* 0x420030E9: xor eax, eax */
   1036     _cf = 0;
   1037     _flag_k = FK_TEST;
   1038 L_420030EB:
   1039     PUSH32(esp, eax); /* 0x420030EB: push eax */
   1040     RECOMP_ICALL(0x42006980u); /* 0x420030EC: call 0x42006980 */ /* not lifted */
   1041     RECOMP_FLAGS_IN();
   1042 L_420030F1:
   1043     MEM32(esi + 0x170) = ebx; /* 0x420030F1: mov dword ptr [esi + 0x170], ebx */
   1044     MEM8(esi + 0x160) = (uint8_t)(LO8(ebx)); /* 0x420030F7: mov byte ptr [esi + 0x160], bl */
   1045     esi = POP32_VAL(esp); /* 0x420030FD: pop esi */
   1046     ebx = POP32_VAL(esp); /* 0x420030FE: pop ebx */
   1047     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x420030FF: ret  */
   1048     RECOMP_REGS_OUT();
   1049 }
   1050 
   1051 void sub_42003100(void) {
   1052     int _fpu_cmp = 0;
   1053     uint32_t _cf = 0;
   1054     int _df = 1;
   1055     uint32_t _flag_k = FK_NONE;
   1056     uint32_t _flag_a = 0, _flag_b = 0;
   1057     uint32_t _itail_tgt = 0;
   1058     RECOMP_REGS_LOCALS
   1059     RECOMP_ENTER(0x42003100u);
   1060 
   1061 L_42003100:
   1062     PUSH32(esp, ebp); /* 0x42003100: push ebp */
   1063     ebp = esp; /* 0x42003101: mov ebp, esp */
   1064     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1065     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1066     esp = esp - 0xCu; /* 0x42003103: sub esp, 0xc */
   1067     _flag_k = FK_CMP;
   1068     eax = MEM32(ebp + 0x8); /* 0x42003106: mov eax, dword ptr [ebp + 8] */
   1069     edx = MEM32(eax); /* 0x42003109: mov edx, dword ptr [eax] */
   1070     PUSH32(esp, esi); /* 0x4200310B: push esi */
   1071     /* cmp edx, MEM32(ecx + 0x150) */ /* 0x4200310C: cmp edx, dword ptr [ecx + 0x150] */
   1072     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx + 0x150));
   1073     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1074     _flag_k = FK_CMP;
   1075     if (CMP_EQ(_flag_a, _flag_b)) goto L_420031D4; /* 0x42003112: je 0x420031d4 */
   1076 L_42003118:
   1077     edx = ecx + 0x34; /* 0x42003118: lea edx, [ecx + 0x34] */
   1078     PUSH32(esp, edi); /* 0x4200311B: push edi */
   1079     edi = MEM32(edx); /* 0x4200311C: mov edi, dword ptr [edx] */
   1080     esi = ecx + 0xC8; /* 0x4200311E: lea esi, [ecx + 0xc8] */
   1081     MEM32(esi) = edi; /* 0x42003124: mov dword ptr [esi], edi */
   1082     edi = MEM32(edx + 0x4); /* 0x42003126: mov edi, dword ptr [edx + 4] */
   1083     MEM32(esi + 0x4) = edi; /* 0x42003129: mov dword ptr [esi + 4], edi */
   1084     edx = MEM32(edx + 0x8); /* 0x4200312C: mov edx, dword ptr [edx + 8] */
   1085     MEM32(esi + 0x8) = edx; /* 0x4200312F: mov dword ptr [esi + 8], edx */
   1086     SET_LO8(edx, MEM8(0x420220D0)); /* 0x42003132: mov dl, byte ptr [0x420220d0] */
   1087     /* test LO8(edx), LO8(edx) */ /* 0x42003138: test dl, dl */
   1088     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   1089     _cf = 0;
   1090     _flag_k = FK_NARROW(FK_TEST, 24);
   1091     if (TEST_Z(_flag_a, _flag_b)) goto L_42003145; /* 0x4200313A: je 0x42003145 */
   1092 L_4200313C:
   1093     MEM8(0x420220D0) = (uint8_t)(0); /* 0x4200313C: mov byte ptr [0x420220d0], 0 */
   1094     goto L_42003194; /* 0x42003143: jmp 0x42003194 */
   1095 L_42003145:
   1096     edx = MEM32(eax + 0x4); /* 0x42003145: mov edx, dword ptr [eax + 4] */
   1097     esi = MEM32(edx); /* 0x42003148: mov esi, dword ptr [edx] */
   1098     MEM32(ebp + (-0xC)) = esi; /* 0x4200314A: mov dword ptr [ebp - 0xc], esi */
   1099     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x4200314D: fld dword ptr [ebp - 0xc] */
   1100     _st[0] -= (double)*(float*)ADDR(ecx + 0x118); /* 0x42003150: fsub dword ptr [ecx + 0x118] */
   1101     esi = MEM32(edx + 0x4); /* 0x42003156: mov esi, dword ptr [edx + 4] */
   1102     edx = MEM32(edx + 0x8); /* 0x42003159: mov edx, dword ptr [edx + 8] */
   1103     MEM32(ebp + (-0x8)) = esi; /* 0x4200315C: mov dword ptr [ebp - 8], esi */
   1104     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x4200315F: fstp dword ptr [ebp - 0xc] */
   1105     esi = MEM32(ebp + (-0xC)); /* 0x42003162: mov esi, dword ptr [ebp - 0xc] */
   1106     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x42003165: fld dword ptr [ebp - 8] */
   1107     MEM32(ebp + (-0x4)) = edx; /* 0x42003168: mov dword ptr [ebp - 4], edx */
   1108     _st[0] -= (double)*(float*)ADDR(ecx + 0x11C); /* 0x4200316B: fsub dword ptr [ecx + 0x11c] */
   1109     edx = ecx + 0x134; /* 0x42003171: lea edx, [ecx + 0x134] */
   1110     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x42003177: fstp dword ptr [ebp - 8] */
   1111     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x4200317A: fld dword ptr [ebp - 4] */
   1112     _st[0] -= (double)*(float*)ADDR(ecx + 0x120); /* 0x4200317D: fsub dword ptr [ecx + 0x120] */
   1113     MEM32(edx) = esi; /* 0x42003183: mov dword ptr [edx], esi */
   1114     esi = MEM32(ebp + (-0x8)); /* 0x42003185: mov esi, dword ptr [ebp - 8] */
   1115     MEM32(edx + 0x4) = esi; /* 0x42003188: mov dword ptr [edx + 4], esi */
   1116     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x4200318B: fstp dword ptr [ebp - 4] */
   1117     esi = MEM32(ebp + (-0x4)); /* 0x4200318E: mov esi, dword ptr [ebp - 4] */
   1118     MEM32(edx + 0x8) = esi; /* 0x42003191: mov dword ptr [edx + 8], esi */
   1119 L_42003194:
   1120     esi = MEM32(eax + 0x4); /* 0x42003194: mov esi, dword ptr [eax + 4] */
   1121     edi = MEM32(esi); /* 0x42003197: mov edi, dword ptr [esi] */
   1122     edx = ecx + 0x118; /* 0x42003199: lea edx, [ecx + 0x118] */
   1123     MEM32(edx) = edi; /* 0x4200319F: mov dword ptr [edx], edi */
   1124     edi = MEM32(esi + 0x4); /* 0x420031A1: mov edi, dword ptr [esi + 4] */
   1125     MEM32(edx + 0x4) = edi; /* 0x420031A4: mov dword ptr [edx + 4], edi */
   1126     esi = MEM32(esi + 0x8); /* 0x420031A7: mov esi, dword ptr [esi + 8] */
   1127     MEM32(edx + 0x8) = esi; /* 0x420031AA: mov dword ptr [edx + 8], esi */
   1128     eax = MEM32(eax + 0x8); /* 0x420031AD: mov eax, dword ptr [eax + 8] */
   1129     edx = MEM32(eax); /* 0x420031B0: mov edx, dword ptr [eax] */
   1130     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x124u);
   1131     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1132     ecx = ecx + 0x124u; /* 0x420031B2: add ecx, 0x124 */
   1133     _flag_k = FK_ADD;
   1134     MEM32(ecx) = edx; /* 0x420031B8: mov dword ptr [ecx], edx */
   1135     edx = MEM32(eax + 0x4); /* 0x420031BA: mov edx, dword ptr [eax + 4] */
   1136     MEM32(ecx + 0x4) = edx; /* 0x420031BD: mov dword ptr [ecx + 4], edx */
   1137     edx = MEM32(eax + 0x8); /* 0x420031C0: mov edx, dword ptr [eax + 8] */
   1138     MEM32(ecx + 0x8) = edx; /* 0x420031C3: mov dword ptr [ecx + 8], edx */
   1139     eax = MEM32(eax + 0xC); /* 0x420031C6: mov eax, dword ptr [eax + 0xc] */
   1140     edi = POP32_VAL(esp); /* 0x420031C9: pop edi */
   1141     MEM32(ecx + 0xC) = eax; /* 0x420031CA: mov dword ptr [ecx + 0xc], eax */
   1142     esi = POP32_VAL(esp); /* 0x420031CD: pop esi */
   1143     esp = ebp; /* 0x420031CE: mov esp, ebp */
   1144     ebp = POP32_VAL(esp); /* 0x420031D0: pop ebp */
   1145     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x420031D1: ret 4 */
   1146 L_420031D4:
   1147     edx = MEM32(eax + 0x4); /* 0x420031D4: mov edx, dword ptr [eax + 4] */
   1148     eax = MEM32(edx); /* 0x420031D7: mov eax, dword ptr [edx] */
   1149     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x144u);
   1150     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1151     ecx = ecx + 0x144u; /* 0x420031D9: add ecx, 0x144 */
   1152     _flag_k = FK_ADD;
   1153     MEM32(ecx) = eax; /* 0x420031DF: mov dword ptr [ecx], eax */
   1154     eax = MEM32(edx + 0x4); /* 0x420031E1: mov eax, dword ptr [edx + 4] */
   1155     MEM32(ecx + 0x4) = eax; /* 0x420031E4: mov dword ptr [ecx + 4], eax */
   1156     edx = MEM32(edx + 0x8); /* 0x420031E7: mov edx, dword ptr [edx + 8] */
   1157     MEM32(ecx + 0x8) = edx; /* 0x420031EA: mov dword ptr [ecx + 8], edx */
   1158     esi = POP32_VAL(esp); /* 0x420031ED: pop esi */
   1159     esp = ebp; /* 0x420031EE: mov esp, ebp */
   1160     ebp = POP32_VAL(esp); /* 0x420031F0: pop ebp */
   1161     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x420031F1: ret 4 */
   1162     RECOMP_REGS_OUT();
   1163 }
   1164 
   1165 void sub_42003200(void) {
   1166     int _fpu_cmp = 0;
   1167     uint32_t _cf = 0;
   1168     int _df = 1;
   1169     uint32_t _flag_k = FK_NONE;
   1170     uint32_t _flag_a = 0, _flag_b = 0;
   1171     uint32_t _itail_tgt = 0;
   1172     RECOMP_REGS_LOCALS
   1173     RECOMP_ENTER(0x42003200u);
   1174 
   1175 L_42003200:
   1176     PUSH32(esp, ebp); /* 0x42003200: push ebp */
   1177     ebp = esp; /* 0x42003201: mov ebp, esp */
   1178     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1179     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1180     esp = esp - 0xCu; /* 0x42003203: sub esp, 0xc */
   1181     _flag_k = FK_CMP;
   1182     eax = ecx + 0x138; /* 0x42003206: lea eax, [ecx + 0x138] */
   1183     edx = MEM32(eax); /* 0x4200320C: mov edx, dword ptr [eax] */
   1184     MEM32(ebp + (-0xC)) = edx; /* 0x4200320E: mov dword ptr [ebp - 0xc], edx */
   1185     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x42003211: fld dword ptr [ebp - 0xc] */
   1186     _st[0] -= (double)*(float*)ADDR(ecx + 0x54); /* 0x42003214: fsub dword ptr [ecx + 0x54] */
   1187     edx = MEM32(eax + 0x4); /* 0x42003217: mov edx, dword ptr [eax + 4] */
   1188     eax = MEM32(eax + 0x8); /* 0x4200321A: mov eax, dword ptr [eax + 8] */
   1189     MEM32(ebp + (-0x8)) = edx; /* 0x4200321D: mov dword ptr [ebp - 8], edx */
   1190     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x42003220: fstp dword ptr [ebp - 0xc] */
   1191     edx = MEM32(ebp + (-0xC)); /* 0x42003223: mov edx, dword ptr [ebp - 0xc] */
   1192     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x42003226: fld dword ptr [ebp - 8] */
   1193     MEM32(ebp + (-0x4)) = eax; /* 0x42003229: mov dword ptr [ebp - 4], eax */
   1194     _st[0] -= (double)*(float*)ADDR(ecx + 0x58); /* 0x4200322C: fsub dword ptr [ecx + 0x58] */
   1195     eax = MEM32(ebp + 0x8); /* 0x4200322F: mov eax, dword ptr [ebp + 8] */
   1196     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x42003232: fstp dword ptr [ebp - 8] */
   1197     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x42003235: fld dword ptr [ebp - 4] */
   1198     _st[0] -= (double)*(float*)ADDR(ecx + 0x5C); /* 0x42003238: fsub dword ptr [ecx + 0x5c] */
   1199     ecx = eax; /* 0x4200323B: mov ecx, eax */
   1200     MEM32(ecx) = edx; /* 0x4200323D: mov dword ptr [ecx], edx */
   1201     edx = MEM32(ebp + (-0x8)); /* 0x4200323F: mov edx, dword ptr [ebp - 8] */
   1202     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x42003242: fstp dword ptr [ebp - 4] */
   1203     MEM32(ecx + 0x4) = edx; /* 0x42003245: mov dword ptr [ecx + 4], edx */
   1204     edx = MEM32(ebp + (-0x4)); /* 0x42003248: mov edx, dword ptr [ebp - 4] */
   1205     MEM32(ecx + 0x8) = edx; /* 0x4200324B: mov dword ptr [ecx + 8], edx */
   1206     fp_push(*(float*)&MEM32(eax + 0x8)); /* 0x4200324E: fld dword ptr [eax + 8] */
   1207     fp_push(*(float*)&MEM32(eax + 0x4)); /* 0x42003251: fld dword ptr [eax + 4] */
   1208     fp_push(*(float*)&MEM32(eax)); /* 0x42003254: fld dword ptr [eax] */
   1209     fp_push(_st[0]); /* 0x42003256: fld st(0) */
   1210     _st[0] *= _st[1]; /* 0x42003258: fmul st(1) */
   1211     fp_push(_st[2]); /* 0x4200325A: fld st(2) */
   1212     _st[0] *= _st[3]; /* 0x4200325C: fmul st(3) */
   1213     { double _v = fp_pop(); _st[0] += _v; } /* 0x4200325E: faddp st(1) */
   1214     fp_push(_st[3]); /* 0x42003260: fld st(3) */
   1215     _st[0] *= _st[4]; /* 0x42003262: fmul st(4) */
   1216     { double _v = fp_pop(); _st[0] += _v; } /* 0x42003264: faddp st(1) */
   1217     _st[0] = sqrt(_st[0]); /* 0x42003266: fsqrt  */
   1218     { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x42003268: fstp st(3) */
   1219     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x4200326A: fstp st(0) */
   1220     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x4200326C: fstp st(0) */
   1221     _st[0] = (double)*(float*)ADDR(0x42018118) / _st[0]; /* 0x4200326E: fdivr dword ptr [0x42018118] */
   1222     fp_push(_st[0]); /* 0x42003274: fld st(0) */
   1223     _st[0] *= (double)*(float*)ADDR(eax); /* 0x42003276: fmul dword ptr [eax] */
   1224     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x42003278: fstp dword ptr [eax] */
   1225     fp_push(_st[0]); /* 0x4200327A: fld st(0) */
   1226     _st[0] *= (double)*(float*)ADDR(eax + 0x4); /* 0x4200327C: fmul dword ptr [eax + 4] */
   1227     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x4200327F: fstp dword ptr [eax + 4] */
   1228     _st[0] *= (double)*(float*)ADDR(eax + 0x8); /* 0x42003282: fmul dword ptr [eax + 8] */
   1229     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x8) = _v; } /* 0x42003285: fstp dword ptr [eax + 8] */
   1230     SET_LO8(eax, 1); /* 0x42003288: mov al, 1 */
   1231     esp = ebp; /* 0x4200328A: mov esp, ebp */
   1232     ebp = POP32_VAL(esp); /* 0x4200328C: pop ebp */
   1233     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4200328D: ret 4 */
   1234     RECOMP_REGS_OUT();
   1235 }
   1236 
   1237 void sub_42003290(void) {
   1238     int _fpu_cmp = 0;
   1239     uint32_t _cf = 0;
   1240     int _df = 1;
   1241     uint32_t _flag_k = FK_NONE;
   1242     uint32_t _flag_a = 0, _flag_b = 0;
   1243     uint32_t _itail_tgt = 0;
   1244     RECOMP_REGS_LOCALS
   1245     RECOMP_ENTER(0x42003290u);
   1246 
   1247 L_42003290:
   1248     PUSH32(esp, ebp); /* 0x42003290: push ebp */
   1249     ebp = esp; /* 0x42003291: mov ebp, esp */
   1250     eax = MEM32(ebp + 0x8); /* 0x42003293: mov eax, dword ptr [ebp + 8] */
   1251     MEM32(ecx + 0x130) = eax; /* 0x42003296: mov dword ptr [ecx + 0x130], eax */
   1252     ebp = POP32_VAL(esp); /* 0x4200329C: pop ebp */
   1253     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4200329D: ret 4 */
   1254     RECOMP_REGS_OUT();
   1255 }
   1256 
   1257 void sub_420032A0(void) {
   1258     int _fpu_cmp = 0;
   1259     uint32_t _cf = 0;
   1260     int _df = 1;
   1261     uint32_t _flag_k = FK_NONE;
   1262     uint32_t _flag_a = 0, _flag_b = 0;
   1263     uint32_t _itail_tgt = 0;
   1264     RECOMP_REGS_LOCALS
   1265     RECOMP_ENTER(0x420032A0u);
   1266 
   1267 L_420032A0:
   1268     PUSH32(esp, ebp); /* 0x420032A0: push ebp */
   1269     ebp = esp; /* 0x420032A1: mov ebp, esp */
   1270     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x60u);
   1271     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1272     esp = esp - 0x60u; /* 0x420032A3: sub esp, 0x60 */
   1273     _flag_k = FK_CMP;
   1274     PUSH32(esp, ebx); /* 0x420032A6: push ebx */
   1275     PUSH32(esp, esi); /* 0x420032A7: push esi */
   1276     PUSH32(esp, edi); /* 0x420032A8: push edi */
   1277     edi = ecx; /* 0x420032A9: mov edi, ecx */
   1278     esi = edi + 0x138; /* 0x420032AB: lea esi, [edi + 0x138] */
   1279     eax = esi; /* 0x420032B1: mov eax, esi */
   1280     ecx = MEM32(eax); /* 0x420032B3: mov ecx, dword ptr [eax] */
   1281     edx = MEM32(eax + 0x4); /* 0x420032B5: mov edx, dword ptr [eax + 4] */
   1282     eax = MEM32(eax + 0x8); /* 0x420032B8: mov eax, dword ptr [eax + 8] */
   1283     MEM32(ebp + (-0x2C)) = ecx; /* 0x420032BB: mov dword ptr [ebp - 0x2c], ecx */
   1284     ebx = edi + 0x54; /* 0x420032BE: lea ebx, [edi + 0x54] */
   1285     PUSH32(esp, ebx); /* 0x420032C1: push ebx */
   1286     ecx = ebp + (-0x2C); /* 0x420032C2: lea ecx, [ebp - 0x2c] */
   1287     MEM32(ebp + (-0x28)) = edx; /* 0x420032C5: mov dword ptr [ebp - 0x28], edx */
   1288     MEM32(ebp + (-0x24)) = eax; /* 0x420032C8: mov dword ptr [ebp - 0x24], eax */
   1289     RECOMP_ICALL(MEM32(0x420180A8)); /* 0x420032CB: call dword ptr [0x420180a8] */
   1290     RECOMP_FLAGS_IN();
   1291     ecx = MEM32(eax); /* 0x420032D1: mov ecx, dword ptr [eax] */
   1292     MEM32(ebp + (-0x20)) = ecx; /* 0x420032D3: mov dword ptr [ebp - 0x20], ecx */
   1293     edx = MEM32(eax + 0x4); /* 0x420032D6: mov edx, dword ptr [eax + 4] */
   1294     MEM32(ebp + (-0x1C)) = edx; /* 0x420032D9: mov dword ptr [ebp - 0x1c], edx */
   1295     eax = MEM32(eax + 0x8); /* 0x420032DC: mov eax, dword ptr [eax + 8] */
   1296     ecx = ebp + (-0x20); /* 0x420032DF: lea ecx, [ebp - 0x20] */
   1297     MEM32(ebp + (-0x18)) = eax; /* 0x420032E2: mov dword ptr [ebp - 0x18], eax */
   1298     RECOMP_ICALL(MEM32(0x420180A0)); /* 0x420032E5: call dword ptr [0x420180a0] */
   1299     RECOMP_FLAGS_IN();
   1300     _st[0] = sqrt(_st[0]); /* 0x420032EB: fsqrt  */
   1301     ecx = MEM32(ebp + 0x8); /* 0x420032ED: mov ecx, dword ptr [ebp + 8] */
   1302     PUSH32(esp, ecx); /* 0x420032F0: push ecx */
   1303     ecx = edi; /* 0x420032F1: mov ecx, edi */
   1304     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x420032F3: fstp dword ptr [ebp - 4] */
   1305     RECOMP_ICALL(0x420036E0u); /* 0x420032F6: call 0x420036e0 */ /* not lifted */
   1306     RECOMP_FLAGS_IN();
   1307     /* test eax, eax */ /* 0x420032FB: test eax, eax */
   1308     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1309     _cf = 0;
   1310     _flag_k = FK_TEST;
   1311     if (TEST_NZ(_flag_a, _flag_b)) goto L_4200361A; /* 0x420032FD: jne 0x4200361a */
   1312 L_42003303:
   1313     MEM32(ebp + (-0x20)) = eax; /* 0x42003303: mov dword ptr [ebp - 0x20], eax */
   1314     MEM32(ebp + (-0x1C)) = eax; /* 0x42003306: mov dword ptr [ebp - 0x1c], eax */
   1315     MEM32(ebp + (-0x18)) = eax; /* 0x42003309: mov dword ptr [ebp - 0x18], eax */
   1316     SET_LO8(eax, MEM8(edi + 0x160)); /* 0x4200330C: mov al, byte ptr [edi + 0x160] */
   1317     /* test LO8(eax), LO8(eax) */ /* 0x42003312: test al, al */
   1318     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1319     _cf = 0;
   1320     _flag_k = FK_NARROW(FK_TEST, 24);
   1321     if (TEST_Z(_flag_a, _flag_b)) goto L_42003577; /* 0x42003314: je 0x42003577 */
   1322 L_4200331A:
   1323     edx = esi; /* 0x4200331A: mov edx, esi */
   1324     eax = MEM32(edx); /* 0x4200331C: mov eax, dword ptr [edx] */
   1325     ecx = MEM32(edx + 0x4); /* 0x4200331E: mov ecx, dword ptr [edx + 4] */
   1326     edx = MEM32(edx + 0x8); /* 0x42003321: mov edx, dword ptr [edx + 8] */
   1327     MEM32(ebp + (-0x28)) = ecx; /* 0x42003324: mov dword ptr [ebp - 0x28], ecx */
   1328     ebx = edi + 0x164; /* 0x42003327: lea ebx, [edi + 0x164] */
   1329     PUSH32(esp, ebx); /* 0x4200332D: push ebx */
   1330     ecx = ebp + (-0x2C); /* 0x4200332E: lea ecx, [ebp - 0x2c] */
   1331     MEM32(ebp + (-0x2C)) = eax; /* 0x42003331: mov dword ptr [ebp - 0x2c], eax */
   1332     MEM32(ebp + (-0x24)) = edx; /* 0x42003334: mov dword ptr [ebp - 0x24], edx */
   1333     RECOMP_ICALL(MEM32(0x420180A8)); /* 0x42003337: call dword ptr [0x420180a8] */
   1334     RECOMP_FLAGS_IN();
   1335     ecx = MEM32(eax); /* 0x4200333D: mov ecx, dword ptr [eax] */
   1336     MEM32(ebp + (-0x14)) = ecx; /* 0x4200333F: mov dword ptr [ebp - 0x14], ecx */
   1337     edx = MEM32(eax + 0x4); /* 0x42003342: mov edx, dword ptr [eax + 4] */
   1338     MEM32(ebp + (-0x10)) = edx; /* 0x42003345: mov dword ptr [ebp - 0x10], edx */
   1339     eax = MEM32(eax + 0x8); /* 0x42003348: mov eax, dword ptr [eax + 8] */
   1340     ecx = ebp + (-0x14); /* 0x4200334B: lea ecx, [ebp - 0x14] */
   1341     MEM32(ebp + (-0xC)) = eax; /* 0x4200334E: mov dword ptr [ebp - 0xc], eax */
   1342     RECOMP_ICALL(MEM32(0x420180A0)); /* 0x42003351: call dword ptr [0x420180a0] */
   1343     RECOMP_FLAGS_IN();
   1344     _st[0] = sqrt(_st[0]); /* 0x42003357: fsqrt  */
   1345     ecx = esi; /* 0x42003359: mov ecx, esi */
   1346     edx = MEM32(ecx); /* 0x4200335B: mov edx, dword ptr [ecx] */
   1347     eax = MEM32(ecx + 0x4); /* 0x4200335D: mov eax, dword ptr [ecx + 4] */
   1348     ecx = MEM32(ecx + 0x8); /* 0x42003360: mov ecx, dword ptr [ecx + 8] */
   1349     MEM32(ebp + (-0x24)) = ecx; /* 0x42003363: mov dword ptr [ebp - 0x24], ecx */
   1350     PUSH32(esp, ebx); /* 0x42003366: push ebx */
   1351     ecx = ebp + (-0x2C); /* 0x42003367: lea ecx, [ebp - 0x2c] */
   1352     MEM32(ebp + (-0x2C)) = edx; /* 0x4200336A: mov dword ptr [ebp - 0x2c], edx */
   1353     MEM32(ebp + (-0x28)) = eax; /* 0x4200336D: mov dword ptr [ebp - 0x28], eax */
   1354     _st[0] *= (double)*(float*)ADDR(0x420180D0); /* 0x42003370: fmul dword ptr [0x420180d0] */
   1355     _st[0] += (double)*(float*)ADDR(edi + 0x174); /* 0x42003376: fadd dword ptr [edi + 0x174] */
   1356     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x4200337C: fstp dword ptr [ebp - 8] */
   1357     RECOMP_ICALL(MEM32(0x420180A8)); /* 0x4200337F: call dword ptr [0x420180a8] */
   1358     RECOMP_FLAGS_IN();
   1359     edx = MEM32(eax); /* 0x42003385: mov edx, dword ptr [eax] */
   1360     ecx = MEM32(eax + 0x4); /* 0x42003387: mov ecx, dword ptr [eax + 4] */
   1361     MEM32(ebp + (-0x14)) = edx; /* 0x4200338A: mov dword ptr [ebp - 0x14], edx */
   1362     edx = MEM32(eax + 0x8); /* 0x4200338D: mov edx, dword ptr [eax + 8] */
   1363     MEM32(ebp + (-0x10)) = ecx; /* 0x42003390: mov dword ptr [ebp - 0x10], ecx */
   1364     ecx = ebp + (-0x14); /* 0x42003393: lea ecx, [ebp - 0x14] */
   1365     MEM32(ebp + (-0xC)) = edx; /* 0x42003396: mov dword ptr [ebp - 0xc], edx */
   1366     RECOMP_ICALL(MEM32(0x42018080)); /* 0x42003399: call dword ptr [0x42018080] */
   1367     RECOMP_FLAGS_IN();
   1368     PUSH32(esp, ecx); /* 0x4200339F: push ecx */
   1369     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x420033A0: fstp dword ptr [esp] */
   1370     ecx = ebp + (-0x14); /* 0x420033A3: lea ecx, [ebp - 0x14] */
   1371     RECOMP_ICALL(MEM32(0x42018084)); /* 0x420033A6: call dword ptr [0x42018084] */
   1372     RECOMP_FLAGS_IN();
   1373     eax = esi; /* 0x420033AC: mov eax, esi */
   1374     ecx = MEM32(eax); /* 0x420033AE: mov ecx, dword ptr [eax] */
   1375     edx = MEM32(eax + 0x4); /* 0x420033B0: mov edx, dword ptr [eax + 4] */
   1376     eax = MEM32(eax + 0x8); /* 0x420033B3: mov eax, dword ptr [eax + 8] */
   1377     MEM32(ebp + (-0x2C)) = ecx; /* 0x420033B6: mov dword ptr [ebp - 0x2c], ecx */
   1378     PUSH32(esp, ebx); /* 0x420033B9: push ebx */
   1379     ecx = ebp + (-0x2C); /* 0x420033BA: lea ecx, [ebp - 0x2c] */
   1380     MEM32(ebp + (-0x28)) = edx; /* 0x420033BD: mov dword ptr [ebp - 0x28], edx */
   1381     MEM32(ebp + (-0x24)) = eax; /* 0x420033C0: mov dword ptr [ebp - 0x24], eax */
   1382     RECOMP_ICALL(MEM32(0x4201808C)); /* 0x420033C3: call dword ptr [0x4201808c] */
   1383     RECOMP_FLAGS_IN();
   1384     ecx = MEM32(eax); /* 0x420033C9: mov ecx, dword ptr [eax] */
   1385     edx = MEM32(eax + 0x4); /* 0x420033CB: mov edx, dword ptr [eax + 4] */
   1386     eax = MEM32(eax + 0x8); /* 0x420033CE: mov eax, dword ptr [eax + 8] */
   1387     MEM32(ebp + (-0x38)) = ecx; /* 0x420033D1: mov dword ptr [ebp - 0x38], ecx */
   1388     PUSH32(esp, 0x3F000000u); /* 0x420033D4: push 0x3f000000 */
   1389     ecx = ebp + (-0x38); /* 0x420033D9: lea ecx, [ebp - 0x38] */
   1390     MEM32(ebp + (-0x34)) = edx; /* 0x420033DC: mov dword ptr [ebp - 0x34], edx */
   1391     MEM32(ebp + (-0x30)) = eax; /* 0x420033DF: mov dword ptr [ebp - 0x30], eax */
   1392     RECOMP_ICALL(MEM32(0x42018084)); /* 0x420033E2: call dword ptr [0x42018084] */
   1393     RECOMP_FLAGS_IN();
   1394     ebx = MEM32(eax); /* 0x420033E8: mov ebx, dword ptr [eax] */
   1395     ecx = MEM32(eax + 0x4); /* 0x420033EA: mov ecx, dword ptr [eax + 4] */
   1396     edx = MEM32(eax + 0x8); /* 0x420033ED: mov edx, dword ptr [eax + 8] */
   1397     MEM32(ebp + (-0x5C)) = ecx; /* 0x420033F0: mov dword ptr [ebp - 0x5c], ecx */
   1398     ecx = edi; /* 0x420033F3: mov ecx, edi */
   1399     MEM32(ebp + (-0x58)) = edx; /* 0x420033F5: mov dword ptr [ebp - 0x58], edx */
   1400     RECOMP_ICALL(0x42011200u); /* 0x420033F8: call 0x42011200 */ /* not lifted */
   1401     RECOMP_FLAGS_IN();
   1402     ecx = MEM32(esi); /* 0x420033FD: mov ecx, dword ptr [esi] */
   1403     edx = MEM32(esi + 0x4); /* 0x420033FF: mov edx, dword ptr [esi + 4] */
   1404     MEM32(ebp + (-0x38)) = ecx; /* 0x42003402: mov dword ptr [ebp - 0x38], ecx */
   1405     ecx = MEM32(esi + 0x8); /* 0x42003405: mov ecx, dword ptr [esi + 8] */
   1406     MEM32(ebp + (-0x30)) = ecx; /* 0x42003408: mov dword ptr [ebp - 0x30], ecx */
   1407     PUSH32(esp, eax); /* 0x4200340B: push eax */
   1408     ecx = ebp + (-0x38); /* 0x4200340C: lea ecx, [ebp - 0x38] */
   1409     MEM32(ebp + (-0x34)) = edx; /* 0x4200340F: mov dword ptr [ebp - 0x34], edx */
   1410     RECOMP_ICALL(MEM32(0x420180A8)); /* 0x42003412: call dword ptr [0x420180a8] */
   1411     RECOMP_FLAGS_IN();
   1412     edx = MEM32(eax); /* 0x42003418: mov edx, dword ptr [eax] */
   1413     esi = MEM32(ebp + (-0x14)); /* 0x4200341A: mov esi, dword ptr [ebp - 0x14] */
   1414     MEM32(ebp + (-0x48)) = edx; /* 0x4200341D: mov dword ptr [ebp - 0x48], edx */
   1415     ecx = MEM32(eax + 0x4); /* 0x42003420: mov ecx, dword ptr [eax + 4] */
   1416     MEM32(ebp + (-0x44)) = ecx; /* 0x42003423: mov dword ptr [ebp - 0x44], ecx */
   1417     edx = MEM32(eax + 0x8); /* 0x42003426: mov edx, dword ptr [eax + 8] */
   1418     ecx = MEM32(ebp + (-0xC)); /* 0x42003429: mov ecx, dword ptr [ebp - 0xc] */
   1419     eax = MEM32(ebp + (-0x10)); /* 0x4200342C: mov eax, dword ptr [ebp - 0x10] */
   1420     MEM32(ebp + (-0x40)) = edx; /* 0x4200342F: mov dword ptr [ebp - 0x40], edx */
   1421     edx = ebp + (-0x48); /* 0x42003432: lea edx, [ebp - 0x48] */
   1422     MEM32(ebp + (-0x4C)) = ecx; /* 0x42003435: mov dword ptr [ebp - 0x4c], ecx */
   1423     PUSH32(esp, edx); /* 0x42003438: push edx */
   1424     ecx = ebp + (-0x54); /* 0x42003439: lea ecx, [ebp - 0x54] */
   1425     MEM32(ebp + (-0x54)) = esi; /* 0x4200343C: mov dword ptr [ebp - 0x54], esi */
   1426     MEM32(ebp + (-0x50)) = eax; /* 0x4200343F: mov dword ptr [ebp - 0x50], eax */
   1427     RECOMP_ICALL(MEM32(0x420180A4)); /* 0x42003442: call dword ptr [0x420180a4] */
   1428     RECOMP_FLAGS_IN();
   1429     ecx = MEM32(eax); /* 0x42003448: mov ecx, dword ptr [eax] */
   1430     edx = MEM32(eax + 0x4); /* 0x4200344A: mov edx, dword ptr [eax + 4] */
   1431     eax = MEM32(eax + 0x8); /* 0x4200344D: mov eax, dword ptr [eax + 8] */
   1432     MEM32(ebp + (-0x24)) = eax; /* 0x42003450: mov dword ptr [ebp - 0x24], eax */
   1433     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x42003453: fld dword ptr [ebp - 0x24] */
   1434     _st[0] *= (double)*(float*)ADDR(0x42023260); /* 0x42003456: fmul dword ptr [0x42023260] */
   1435     MEM32(ebp + (-0x28)) = edx; /* 0x4200345C: mov dword ptr [ebp - 0x28], edx */
   1436     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x4200345F: fld dword ptr [ebp - 0x28] */
   1437     MEM32(ebp + (-0x2C)) = ecx; /* 0x42003462: mov dword ptr [ebp - 0x2c], ecx */
   1438     _st[0] *= (double)*(float*)ADDR(0x4202325C); /* 0x42003465: fmul dword ptr [0x4202325c] */
   1439     { double _v = fp_pop(); _st[0] += _v; } /* 0x4200346B: faddp st(1) */
   1440     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x4200346D: fld dword ptr [ebp - 0x2c] */
   1441     _st[0] *= (double)*(float*)ADDR(0x42023258); /* 0x42003470: fmul dword ptr [0x42023258] */
   1442     { double _v = fp_pop(); _st[0] += _v; } /* 0x42003476: faddp st(1) */
   1443     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x420180F8)); /* 0x42003478: fcomp dword ptr [0x420180f8] */
   1444     fp_pop();
   1445     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4200347E: fnstsw ax */
   1446     /* test HI8(eax), 1 */ /* 0x42003480: test ah, 1 */
   1447     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1448     _cf = 0;
   1449     _flag_k = FK_NARROW(FK_TEST, 24);
   1450     if (TEST_Z(_flag_a, _flag_b)) goto L_4200348D; /* 0x42003483: je 0x4200348d */
   1451 L_42003485:
   1452     fp_push(*(float*)&MEM32(0x42018220)); /* 0x42003485: fld dword ptr [0x42018220] */
   1453     goto L_42003493; /* 0x4200348B: jmp 0x42003493 */
   1454 L_4200348D:
   1455     fp_push(*(float*)&MEM32(0x4201821C)); /* 0x4200348D: fld dword ptr [0x4201821c] */
   1456 L_42003493:
   1457     _st[0] *= (double)*(float*)ADDR(0x42018218); /* 0x42003493: fmul dword ptr [0x42018218] */
   1458     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x420180F8)); /* 0x42003499: fcom dword ptr [0x420180f8] */
   1459     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4200349F: fnstsw ax */
   1460     /* test HI8(eax), 1 */ /* 0x420034A1: test ah, 1 */
   1461     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1462     _cf = 0;
   1463     _flag_k = FK_NARROW(FK_TEST, 24);
   1464     if (TEST_NZ(_flag_a, _flag_b)) goto L_420034BB; /* 0x420034A4: jne 0x420034bb */
   1465 L_420034A6:
   1466     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x42018210)); /* 0x420034A6: fcom qword ptr [0x42018210] */
   1467     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x420034AC: fnstsw ax */
   1468     /* test HI8(eax), 1 */ /* 0x420034AE: test ah, 1 */
   1469     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1470     _cf = 0;
   1471     _flag_k = FK_NARROW(FK_TEST, 24);
   1472     if (TEST_Z(_flag_a, _flag_b)) goto L_420034BB; /* 0x420034B1: je 0x420034bb */
   1473 L_420034B3:
   1474     _st[0] *= (double)*(float*)ADDR(0x420180D0); /* 0x420034B3: fmul dword ptr [0x420180d0] */
   1475     goto L_420034DC; /* 0x420034B9: jmp 0x420034dc */
   1476 L_420034BB:
   1477     _st[0] *= (double)*(float*)ADDR(0x4201820C); /* 0x420034BB: fmul dword ptr [0x4201820c] */
   1478     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1479     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1480     esp = esp - 8; /* 0x420034C1: sub esp, 8 */
   1481     _flag_k = FK_CMP;
   1482     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x420034C4: fst dword ptr [ebp - 4] */
   1483     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x420034C7: fstp qword ptr [esp] */
   1484     RECOMP_ICALL(MEM32(0x42018054)); /* 0x420034CA: call dword ptr [0x42018054] */
   1485     RECOMP_FLAGS_IN();
   1486     _st[0] = (double)*(float*)ADDR(ebp + (-0x4)) - _st[0]; /* 0x420034D0: fsubr dword ptr [ebp - 4] */
   1487     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1488     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1489     esp = esp + 8; /* 0x420034D3: add esp, 8 */
   1490     _flag_k = FK_ADD;
   1491     _st[0] *= (double)*(float*)ADDR(0x42018208); /* 0x420034D6: fmul dword ptr [0x42018208] */
   1492 L_420034DC:
   1493     fp_push(_st[0]); /* 0x420034DC: fld st(0) */
   1494     edx = MEM32(ebp + (-0x10)); /* 0x420034DE: mov edx, dword ptr [ebp - 0x10] */
   1495     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x420034E1: fsin  */
   1496     eax = MEM32(ebp + (-0xC)); /* 0x420034E3: mov eax, dword ptr [ebp - 0xc] */
   1497     MEM32(ebp + (-0x54)) = esi; /* 0x420034E6: mov dword ptr [ebp - 0x54], esi */
   1498     MEM32(ebp + (-0x50)) = edx; /* 0x420034E9: mov dword ptr [ebp - 0x50], edx */
   1499     MEM32(ebp + (-0x4C)) = eax; /* 0x420034EC: mov dword ptr [ebp - 0x4c], eax */
   1500     fp_push(*(float*)&MEM32(0x420180F8)); /* 0x420034EF: fld dword ptr [0x420180f8] */
   1501     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x420034F5: fst dword ptr [ebp - 4] */
   1502     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x420034F8: fstp dword ptr [ebp - 0x3c] */
   1503     ecx = MEM32(ebp + (-0x4)); /* 0x420034FB: mov ecx, dword ptr [ebp - 4] */
   1504     MEM32(ebp + (-0x34)) = ecx; /* 0x420034FE: mov dword ptr [ebp - 0x34], ecx */
   1505     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x42003501: fstp dword ptr [ebp - 0x38] */
   1506     ecx = ebp + (-0x3C); /* 0x42003504: lea ecx, [ebp - 0x3c] */
   1507     PUSH32(esp, ecx); /* 0x42003507: push ecx */
   1508     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x42003508: fcos  */
   1509     ecx = ebp + (-0x54); /* 0x4200350A: lea ecx, [ebp - 0x54] */
   1510     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x4200350D: fstp dword ptr [ebp - 0x30] */
   1511     RECOMP_ICALL(MEM32(0x42018090)); /* 0x42003510: call dword ptr [0x42018090] */
   1512     RECOMP_FLAGS_IN();
   1513     edx = MEM32(eax); /* 0x42003516: mov edx, dword ptr [eax] */
   1514     ecx = MEM32(eax + 0x4); /* 0x42003518: mov ecx, dword ptr [eax + 4] */
   1515     MEM32(ebp + (-0x48)) = edx; /* 0x4200351B: mov dword ptr [ebp - 0x48], edx */
   1516     edx = MEM32(eax + 0x8); /* 0x4200351E: mov edx, dword ptr [eax + 8] */
   1517     eax = MEM32(ebp + (-0x8)); /* 0x42003521: mov eax, dword ptr [ebp - 8] */
   1518     MEM32(ebp + (-0x44)) = ecx; /* 0x42003524: mov dword ptr [ebp - 0x44], ecx */
   1519     PUSH32(esp, eax); /* 0x42003527: push eax */
   1520     ecx = ebp + (-0x48); /* 0x42003528: lea ecx, [ebp - 0x48] */
   1521     MEM32(ebp + (-0x40)) = edx; /* 0x4200352B: mov dword ptr [ebp - 0x40], edx */
   1522     RECOMP_ICALL(MEM32(0x42018084)); /* 0x4200352E: call dword ptr [0x42018084] */
   1523     RECOMP_FLAGS_IN();
   1524     ecx = MEM32(eax); /* 0x42003534: mov ecx, dword ptr [eax] */
   1525     MEM32(ebp + (-0x54)) = ecx; /* 0x42003536: mov dword ptr [ebp - 0x54], ecx */
   1526     edx = MEM32(eax + 0x4); /* 0x42003539: mov edx, dword ptr [eax + 4] */
   1527     ecx = MEM32(ebp + (-0x5C)); /* 0x4200353C: mov ecx, dword ptr [ebp - 0x5c] */
   1528     MEM32(ebp + (-0x50)) = edx; /* 0x4200353F: mov dword ptr [ebp - 0x50], edx */
   1529     eax = MEM32(eax + 0x8); /* 0x42003542: mov eax, dword ptr [eax + 8] */
   1530     edx = MEM32(ebp + (-0x58)); /* 0x42003545: mov edx, dword ptr [ebp - 0x58] */
   1531     MEM32(ebp + (-0x4C)) = eax; /* 0x42003548: mov dword ptr [ebp - 0x4c], eax */
   1532     eax = ebp + (-0x54); /* 0x4200354B: lea eax, [ebp - 0x54] */
   1533     MEM32(ebp + (-0x34)) = ecx; /* 0x4200354E: mov dword ptr [ebp - 0x34], ecx */
   1534     PUSH32(esp, eax); /* 0x42003551: push eax */
   1535     ecx = ebp + (-0x38); /* 0x42003552: lea ecx, [ebp - 0x38] */
   1536     MEM32(ebp + (-0x38)) = ebx; /* 0x42003555: mov dword ptr [ebp - 0x38], ebx */
   1537     MEM32(ebp + (-0x30)) = edx; /* 0x42003558: mov dword ptr [ebp - 0x30], edx */
   1538     RECOMP_ICALL(MEM32(0x4201808C)); /* 0x4200355B: call dword ptr [0x4201808c] */
   1539     RECOMP_FLAGS_IN();
   1540     ecx = MEM32(eax); /* 0x42003561: mov ecx, dword ptr [eax] */
   1541     MEM32(ebp + (-0x20)) = ecx; /* 0x42003563: mov dword ptr [ebp - 0x20], ecx */
   1542     edx = MEM32(eax + 0x4); /* 0x42003566: mov edx, dword ptr [eax + 4] */
   1543     MEM32(ebp + (-0x1C)) = edx; /* 0x42003569: mov dword ptr [ebp - 0x1c], edx */
   1544     eax = MEM32(eax + 0x8); /* 0x4200356C: mov eax, dword ptr [eax + 8] */
   1545     MEM32(ebp + (-0x18)) = eax; /* 0x4200356F: mov dword ptr [ebp - 0x18], eax */
   1546     goto L_42003609; /* 0x42003572: jmp 0x42003609 */
   1547 L_42003577:
   1548     ecx = MEM32(ebx); /* 0x42003577: mov ecx, dword ptr [ebx] */
   1549     edx = MEM32(ebx + 0x4); /* 0x42003579: mov edx, dword ptr [ebx + 4] */
   1550     eax = MEM32(ebx + 0x8); /* 0x4200357C: mov eax, dword ptr [ebx + 8] */
   1551     MEM32(ebp + (-0x60)) = ecx; /* 0x4200357F: mov dword ptr [ebp - 0x60], ecx */
   1552     ecx = MEM32(edi + 0x174); /* 0x42003582: mov ecx, dword ptr [edi + 0x174] */
   1553     MEM32(ebp + (-0x8)) = ecx; /* 0x42003588: mov dword ptr [ebp - 8], ecx */
   1554     PUSH32(esp, esi); /* 0x4200358B: push esi */
   1555     ecx = ebp + (-0x60); /* 0x4200358C: lea ecx, [ebp - 0x60] */
   1556     MEM32(ebp + (-0x5C)) = edx; /* 0x4200358F: mov dword ptr [ebp - 0x5c], edx */
   1557     MEM32(ebp + (-0x58)) = eax; /* 0x42003592: mov dword ptr [ebp - 0x58], eax */
   1558     RECOMP_ICALL(MEM32(0x420180A8)); /* 0x42003595: call dword ptr [0x420180a8] */
   1559     RECOMP_FLAGS_IN();
   1560     edx = MEM32(eax); /* 0x4200359B: mov edx, dword ptr [eax] */
   1561     ecx = MEM32(eax + 0x4); /* 0x4200359D: mov ecx, dword ptr [eax + 4] */
   1562     MEM32(ebp + (-0x54)) = edx; /* 0x420035A0: mov dword ptr [ebp - 0x54], edx */
   1563     edx = MEM32(eax + 0x8); /* 0x420035A3: mov edx, dword ptr [eax + 8] */
   1564     eax = MEM32(ebp + (-0x8)); /* 0x420035A6: mov eax, dword ptr [ebp - 8] */
   1565     MEM32(ebp + (-0x50)) = ecx; /* 0x420035A9: mov dword ptr [ebp - 0x50], ecx */
   1566     PUSH32(esp, eax); /* 0x420035AC: push eax */
   1567     ecx = ebp + (-0x54); /* 0x420035AD: lea ecx, [ebp - 0x54] */
   1568     MEM32(ebp + (-0x4C)) = edx; /* 0x420035B0: mov dword ptr [ebp - 0x4c], edx */
   1569     RECOMP_ICALL(MEM32(0x42018084)); /* 0x420035B3: call dword ptr [0x42018084] */
   1570     RECOMP_FLAGS_IN();
   1571     ecx = MEM32(eax); /* 0x420035B9: mov ecx, dword ptr [eax] */
   1572     edx = MEM32(eax + 0x4); /* 0x420035BB: mov edx, dword ptr [eax + 4] */
   1573     eax = MEM32(eax + 0x8); /* 0x420035BE: mov eax, dword ptr [eax + 8] */
   1574     MEM32(ebp + (-0x48)) = ecx; /* 0x420035C1: mov dword ptr [ebp - 0x48], ecx */
   1575     ecx = MEM32(ebp + (-0x4)); /* 0x420035C4: mov ecx, dword ptr [ebp - 4] */
   1576     PUSH32(esp, ecx); /* 0x420035C7: push ecx */
   1577     ecx = ebp + (-0x48); /* 0x420035C8: lea ecx, [ebp - 0x48] */
   1578     MEM32(ebp + (-0x44)) = edx; /* 0x420035CB: mov dword ptr [ebp - 0x44], edx */
   1579     MEM32(ebp + (-0x40)) = eax; /* 0x420035CE: mov dword ptr [ebp - 0x40], eax */
   1580     RECOMP_ICALL(MEM32(0x42018088)); /* 0x420035D1: call dword ptr [0x42018088] */
   1581     RECOMP_FLAGS_IN();
   1582     edx = MEM32(eax); /* 0x420035D7: mov edx, dword ptr [eax] */
   1583     MEM32(ebp + (-0x38)) = edx; /* 0x420035D9: mov dword ptr [ebp - 0x38], edx */
   1584     ecx = MEM32(eax + 0x4); /* 0x420035DC: mov ecx, dword ptr [eax + 4] */
   1585     MEM32(ebp + (-0x34)) = ecx; /* 0x420035DF: mov dword ptr [ebp - 0x34], ecx */
   1586     edx = MEM32(eax + 0x8); /* 0x420035E2: mov edx, dword ptr [eax + 8] */
   1587     eax = ebp + (-0x38); /* 0x420035E5: lea eax, [ebp - 0x38] */
   1588     PUSH32(esp, eax); /* 0x420035E8: push eax */
   1589     ecx = ebp + (-0x2C); /* 0x420035E9: lea ecx, [ebp - 0x2c] */
   1590     PUSH32(esp, ecx); /* 0x420035EC: push ecx */
   1591     ecx = esi; /* 0x420035ED: mov ecx, esi */
   1592     MEM32(ebp + (-0x30)) = edx; /* 0x420035EF: mov dword ptr [ebp - 0x30], edx */
   1593     RECOMP_ICALL(MEM32(0x4201809C)); /* 0x420035F2: call dword ptr [0x4201809c] */
   1594     RECOMP_FLAGS_IN();
   1595     edx = MEM32(eax); /* 0x420035F8: mov edx, dword ptr [eax] */
   1596     MEM32(ebp + (-0x20)) = edx; /* 0x420035FA: mov dword ptr [ebp - 0x20], edx */
   1597     ecx = MEM32(eax + 0x4); /* 0x420035FD: mov ecx, dword ptr [eax + 4] */
   1598     MEM32(ebp + (-0x1C)) = ecx; /* 0x42003600: mov dword ptr [ebp - 0x1c], ecx */
   1599     edx = MEM32(eax + 0x8); /* 0x42003603: mov edx, dword ptr [eax + 8] */
   1600     MEM32(ebp + (-0x18)) = edx; /* 0x42003606: mov dword ptr [ebp - 0x18], edx */
   1601 L_42003609:
   1602     eax = MEM32(ebp + 0x8); /* 0x42003609: mov eax, dword ptr [ebp + 8] */
   1603     PUSH32(esp, 0); /* 0x4200360C: push 0 */
   1604     PUSH32(esp, eax); /* 0x4200360E: push eax */
   1605     ecx = ebp + (-0x20); /* 0x4200360F: lea ecx, [ebp - 0x20] */
   1606     PUSH32(esp, ecx); /* 0x42003612: push ecx */
   1607     ecx = edi; /* 0x42003613: mov ecx, edi */
   1608     RECOMP_ICALL(0x42015E90u); /* 0x42003615: call 0x42015e90 */ /* not lifted */
   1609     RECOMP_FLAGS_IN();
   1610 L_4200361A:
   1611     edi = POP32_VAL(esp); /* 0x4200361A: pop edi */
   1612     esi = POP32_VAL(esp); /* 0x4200361B: pop esi */
   1613     ebx = POP32_VAL(esp); /* 0x4200361C: pop ebx */
   1614     esp = ebp; /* 0x4200361D: mov esp, ebp */
   1615     ebp = POP32_VAL(esp); /* 0x4200361F: pop ebp */
   1616     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42003620: ret 4 */
   1617     RECOMP_REGS_OUT();
   1618 }
   1619 
   1620 void sub_42003630(void) {
   1621     int _fpu_cmp = 0;
   1622     uint32_t _cf = 0;
   1623     int _df = 1;
   1624     uint32_t _flag_k = FK_NONE;
   1625     uint32_t _flag_a = 0, _flag_b = 0;
   1626     uint32_t _itail_tgt = 0;
   1627     RECOMP_REGS_LOCALS
   1628     RECOMP_ENTER(0x42003630u);
   1629 
   1630 L_42003630:
   1631     PUSH32(esp, ebp); /* 0x42003630: push ebp */
   1632     ebp = esp; /* 0x42003631: mov ebp, esp */
   1633     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   1634     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1635     esp = esp - 0x18u; /* 0x42003633: sub esp, 0x18 */
   1636     _flag_k = FK_CMP;
   1637     PUSH32(esp, esi); /* 0x42003636: push esi */
   1638     esi = ecx; /* 0x42003637: mov esi, ecx */
   1639     fp_push(*(float*)&MEM32(esi + 0x17C)); /* 0x42003639: fld dword ptr [esi + 0x17c] */
   1640     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x420180D8)); /* 0x4200363F: fcomp qword ptr [0x420180d8] */
   1641     fp_pop();
   1642     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42003645: fnstsw ax */
   1643     /* test HI8(eax), 0x40u */ /* 0x42003647: test ah, 0x40 */
   1644     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   1645     _cf = 0;
   1646     _flag_k = FK_NARROW(FK_TEST, 24);
   1647     if (TEST_Z(_flag_a, _flag_b)) goto L_42003655; /* 0x4200364A: je 0x42003655 */
   1648 L_4200364C:
   1649     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1650     eax = 0; /* 0x4200364C: xor eax, eax */
   1651     _cf = 0;
   1652     _flag_k = FK_TEST;
   1653     esi = POP32_VAL(esp); /* 0x4200364E: pop esi */
   1654     esp = ebp; /* 0x4200364F: mov esp, ebp */
   1655     ebp = POP32_VAL(esp); /* 0x42003651: pop ebp */
   1656     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42003652: ret 4 */
   1657 L_42003655:
   1658     eax = ebp + (-0x18); /* 0x42003655: lea eax, [ebp - 0x18] */
   1659     PUSH32(esp, eax); /* 0x42003658: push eax */
   1660     ecx = esi; /* 0x42003659: mov ecx, esi */
   1661     MEM32(ebp + (-0x18)) = 0; /* 0x4200365B: mov dword ptr [ebp - 0x18], 0 */
   1662     MEM32(ebp + (-0x14)) = 0; /* 0x42003662: mov dword ptr [ebp - 0x14], 0 */
   1663     MEM32(ebp + (-0x10)) = 0; /* 0x42003669: mov dword ptr [ebp - 0x10], 0 */
   1664     RECOMP_ICALL(0x42011450u); /* 0x42003670: call 0x42011450 */ /* not lifted */
   1665     RECOMP_FLAGS_IN();
   1666     fp_push(*(float*)&MEM32(esi + 0x17C)); /* 0x42003675: fld dword ptr [esi + 0x17c] */
   1667     ecx = MEM32(ebp + (-0x18)); /* 0x4200367B: mov ecx, dword ptr [ebp - 0x18] */
   1668     fp_push(_st[0]); /* 0x4200367E: fld st(0) */
   1669     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x42003680: fmul dword ptr [ebp - 0x18] */
   1670     edx = MEM32(ebp + (-0x14)); /* 0x42003683: mov edx, dword ptr [ebp - 0x14] */
   1671     eax = MEM32(ebp + (-0x10)); /* 0x42003686: mov eax, dword ptr [ebp - 0x10] */
   1672     MEM32(ebp + (-0xC)) = ecx; /* 0x42003689: mov dword ptr [ebp - 0xc], ecx */
   1673     ecx = MEM32(ebp + 0x8); /* 0x4200368C: mov ecx, dword ptr [ebp + 8] */
   1674     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x4200368F: fstp dword ptr [ebp - 0xc] */
   1675     MEM32(ebp + (-0x8)) = edx; /* 0x42003692: mov dword ptr [ebp - 8], edx */
   1676     edx = MEM32(ebp + (-0xC)); /* 0x42003695: mov edx, dword ptr [ebp - 0xc] */
   1677     fp_push(_st[0]); /* 0x42003698: fld st(0) */
   1678     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x4200369A: fmul dword ptr [ebp - 8] */
   1679     MEM32(ebp + (-0x4)) = eax; /* 0x4200369D: mov dword ptr [ebp - 4], eax */
   1680     MEM32(ecx) = edx; /* 0x420036A0: mov dword ptr [ecx], edx */
   1681     esi = POP32_VAL(esp); /* 0x420036A2: pop esi */
   1682     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x420036A3: fstp dword ptr [ebp - 8] */
   1683     eax = MEM32(ebp + (-0x8)); /* 0x420036A6: mov eax, dword ptr [ebp - 8] */
   1684     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x420036A9: fld dword ptr [ebp - 4] */
   1685     MEM32(ecx + 0x4) = eax; /* 0x420036AC: mov dword ptr [ecx + 4], eax */
   1686     _st[0] *= _st[1]; /* 0x420036AF: fmul st(1) */
   1687     eax = 3; /* 0x420036B1: mov eax, 3 */
   1688     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x420036B6: fstp dword ptr [ebp - 4] */
   1689     edx = MEM32(ebp + (-0x4)); /* 0x420036B9: mov edx, dword ptr [ebp - 4] */
   1690     MEM32(ecx + 0x8) = edx; /* 0x420036BC: mov dword ptr [ecx + 8], edx */
   1691     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420036BF: fstp st(0) */
   1692     esp = ebp; /* 0x420036C1: mov esp, ebp */
   1693     ebp = POP32_VAL(esp); /* 0x420036C3: pop ebp */
   1694     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x420036C4: ret 4 */
   1695     RECOMP_REGS_OUT();
   1696 }
   1697 
   1698 void sub_42003662(void) {
   1699     int _fpu_cmp = 0;
   1700     uint32_t _cf = 0;
   1701     int _df = 1;
   1702     uint32_t _flag_k = FK_NONE;
   1703     uint32_t _flag_a = 0, _flag_b = 0;
   1704     uint32_t _itail_tgt = 0;
   1705     RECOMP_REGS_LOCALS
   1706     RECOMP_ENTER(0x42003662u);
   1707 
   1708 L_42003662:
   1709     MEM32(ebp + (-0x14)) = 0; /* 0x42003662: mov dword ptr [ebp - 0x14], 0 */
   1710     MEM32(ebp + (-0x10)) = 0; /* 0x42003669: mov dword ptr [ebp - 0x10], 0 */
   1711     RECOMP_ICALL(0x42011450u); /* 0x42003670: call 0x42011450 */ /* not lifted */
   1712     RECOMP_FLAGS_IN();
   1713     fp_push(*(float*)&MEM32(esi + 0x17C)); /* 0x42003675: fld dword ptr [esi + 0x17c] */
   1714     ecx = MEM32(ebp + (-0x18)); /* 0x4200367B: mov ecx, dword ptr [ebp - 0x18] */
   1715     fp_push(_st[0]); /* 0x4200367E: fld st(0) */
   1716     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x42003680: fmul dword ptr [ebp - 0x18] */
   1717     edx = MEM32(ebp + (-0x14)); /* 0x42003683: mov edx, dword ptr [ebp - 0x14] */
   1718     eax = MEM32(ebp + (-0x10)); /* 0x42003686: mov eax, dword ptr [ebp - 0x10] */
   1719     MEM32(ebp + (-0xC)) = ecx; /* 0x42003689: mov dword ptr [ebp - 0xc], ecx */
   1720     ecx = MEM32(ebp + 0x8); /* 0x4200368C: mov ecx, dword ptr [ebp + 8] */
   1721     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x4200368F: fstp dword ptr [ebp - 0xc] */
   1722     MEM32(ebp + (-0x8)) = edx; /* 0x42003692: mov dword ptr [ebp - 8], edx */
   1723     edx = MEM32(ebp + (-0xC)); /* 0x42003695: mov edx, dword ptr [ebp - 0xc] */
   1724     fp_push(_st[0]); /* 0x42003698: fld st(0) */
   1725     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x4200369A: fmul dword ptr [ebp - 8] */
   1726     MEM32(ebp + (-0x4)) = eax; /* 0x4200369D: mov dword ptr [ebp - 4], eax */
   1727     MEM32(ecx) = edx; /* 0x420036A0: mov dword ptr [ecx], edx */
   1728     esi = POP32_VAL(esp); /* 0x420036A2: pop esi */
   1729     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x420036A3: fstp dword ptr [ebp - 8] */
   1730     eax = MEM32(ebp + (-0x8)); /* 0x420036A6: mov eax, dword ptr [ebp - 8] */
   1731     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x420036A9: fld dword ptr [ebp - 4] */
   1732     MEM32(ecx + 0x4) = eax; /* 0x420036AC: mov dword ptr [ecx + 4], eax */
   1733     _st[0] *= _st[1]; /* 0x420036AF: fmul st(1) */
   1734     eax = 3; /* 0x420036B1: mov eax, 3 */
   1735     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x420036B6: fstp dword ptr [ebp - 4] */
   1736     edx = MEM32(ebp + (-0x4)); /* 0x420036B9: mov edx, dword ptr [ebp - 4] */
   1737     MEM32(ecx + 0x8) = edx; /* 0x420036BC: mov dword ptr [ecx + 8], edx */
   1738     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420036BF: fstp st(0) */
   1739     esp = ebp; /* 0x420036C1: mov esp, ebp */
   1740     ebp = POP32_VAL(esp); /* 0x420036C3: pop ebp */
   1741     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x420036C4: ret 4 */
   1742     RECOMP_REGS_OUT();
   1743 }
   1744 
   1745 void sub_420036D0(void) {
   1746     int _fpu_cmp = 0;
   1747     uint32_t _cf = 0;
   1748     int _df = 1;
   1749     uint32_t _flag_k = FK_NONE;
   1750     uint32_t _flag_a = 0, _flag_b = 0;
   1751     uint32_t _itail_tgt = 0;
   1752     RECOMP_REGS_LOCALS
   1753     RECOMP_ENTER(0x420036D0u);
   1754 
   1755 L_420036D0:
   1756     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1757     eax = 0; /* 0x420036D0: xor eax, eax */
   1758     _cf = 0;
   1759     _flag_k = FK_TEST;
   1760     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x420036D2: ret 4 */
   1761     RECOMP_REGS_OUT();
   1762 }
   1763 
   1764 void sub_420036E0(void) {
   1765     int _fpu_cmp = 0;
   1766     uint32_t _cf = 0;
   1767     int _df = 1;
   1768     uint32_t _flag_k = FK_NONE;
   1769     uint32_t _flag_a = 0, _flag_b = 0;
   1770     uint32_t _itail_tgt = 0;
   1771     RECOMP_REGS_LOCALS
   1772     RECOMP_ENTER(0x420036E0u);
   1773 
   1774 L_420036E0:
   1775     PUSH32(esp, ebp); /* 0x420036E0: push ebp */
   1776     ebp = esp; /* 0x420036E1: mov ebp, esp */
   1777     PUSH32(esp, esi); /* 0x420036E3: push esi */
   1778     esi = ecx; /* 0x420036E4: mov esi, ecx */
   1779     fp_push(*(float*)&MEM32(esi + 0x178)); /* 0x420036E6: fld dword ptr [esi + 0x178] */
   1780     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x420180D8)); /* 0x420036EC: fcomp qword ptr [0x420180d8] */
   1781     fp_pop();
   1782     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x420036F2: fnstsw ax */
   1783     /* test HI8(eax), 0x40u */ /* 0x420036F4: test ah, 0x40 */
   1784     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   1785     _cf = 0;
   1786     _flag_k = FK_NARROW(FK_TEST, 24);
   1787     if (TEST_Z(_flag_a, _flag_b)) goto L_42003700; /* 0x420036F7: je 0x42003700 */
   1788 L_420036F9:
   1789     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1790     eax = 0; /* 0x420036F9: xor eax, eax */
   1791     _cf = 0;
   1792     _flag_k = FK_TEST;
   1793     esi = POP32_VAL(esp); /* 0x420036FB: pop esi */
   1794     ebp = POP32_VAL(esp); /* 0x420036FC: pop ebp */
   1795     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x420036FD: ret 4 */
   1796 L_42003700:
   1797     fp_push(*(float*)&MEM32(esi + 0x178)); /* 0x42003700: fld dword ptr [esi + 0x178] */
   1798     PUSH32(esp, 1); /* 0x42003706: push 1 */
   1799     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x420180D8)); /* 0x42003708: fcomp qword ptr [0x420180d8] */
   1800     fp_pop();
   1801     ecx = esi; /* 0x4200370E: mov ecx, esi */
   1802     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42003710: fnstsw ax */
   1803     /* test HI8(eax), 0x41u */ /* 0x42003712: test ah, 0x41 */
   1804     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   1805     _cf = 0;
   1806     _flag_k = FK_NARROW(FK_TEST, 24);
   1807     if (TEST_NZ(_flag_a, _flag_b)) goto L_4200372C; /* 0x42003715: jne 0x4200372c */
   1808 L_42003717:
   1809     RECOMP_ICALL(0x42011C90u); /* 0x42003717: call 0x42011c90 */ /* not lifted */
   1810     RECOMP_FLAGS_IN();
   1811     eax = MEM32(ebp + 0x8); /* 0x4200371C: mov eax, dword ptr [ebp + 8] */
   1812     PUSH32(esp, eax); /* 0x4200371F: push eax */
   1813     ecx = esi; /* 0x42003720: mov ecx, esi */
   1814     RECOMP_ICALL(0x420159A0u); /* 0x42003722: call 0x420159a0 */ /* not lifted */
   1815     RECOMP_FLAGS_IN();
   1816     esi = POP32_VAL(esp); /* 0x42003727: pop esi */
   1817     ebp = POP32_VAL(esp); /* 0x42003728: pop ebp */
   1818     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42003729: ret 4 */
   1819 L_4200372C:
   1820     RECOMP_ICALL(0x42011C90u); /* 0x4200372C: call 0x42011c90 */ /* not lifted */
   1821     RECOMP_FLAGS_IN();
   1822     ecx = MEM32(ebp + 0x8); /* 0x42003731: mov ecx, dword ptr [ebp + 8] */
   1823     PUSH32(esp, ecx); /* 0x42003734: push ecx */
   1824     ecx = esi; /* 0x42003735: mov ecx, esi */
   1825     RECOMP_ICALL(0x420159F0u); /* 0x42003737: call 0x420159f0 */ /* not lifted */
   1826     RECOMP_FLAGS_IN();
   1827     esi = POP32_VAL(esp); /* 0x4200373C: pop esi */
   1828     ebp = POP32_VAL(esp); /* 0x4200373D: pop ebp */
   1829     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4200373E: ret 4 */
   1830     RECOMP_REGS_OUT();
   1831 }
   1832 
   1833 void sub_42003750(void) {
   1834     int _fpu_cmp = 0;
   1835     uint32_t _cf = 0;
   1836     int _df = 1;
   1837     uint32_t _flag_k = FK_NONE;
   1838     uint32_t _flag_a = 0, _flag_b = 0;
   1839     uint32_t _itail_tgt = 0;
   1840     RECOMP_REGS_LOCALS
   1841     RECOMP_ENTER(0x42003750u);
   1842 
   1843 L_42003750:
   1844     fp_push(*(float*)&MEM32(ecx + 0x174)); /* 0x42003750: fld dword ptr [ecx + 0x174] */
   1845     _st[0] -= (double)*(float*)ADDR(0x420180D0); /* 0x42003756: fsub dword ptr [0x420180d0] */
   1846     { float _v = (float)_st[0]; *(float*)ADDR(ecx + 0x174) = _v; } /* 0x4200375C: fst dword ptr [ecx + 0x174] */
   1847     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x42018224)); /* 0x42003762: fcomp dword ptr [0x42018224] */
   1848     fp_pop();
   1849     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42003768: fnstsw ax */
   1850     /* test HI8(eax), 1 */ /* 0x4200376A: test ah, 1 */
   1851     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1852     _cf = 0;
   1853     _flag_k = FK_NARROW(FK_TEST, 24);
   1854     if (TEST_Z(_flag_a, _flag_b)) goto L_42003779; /* 0x4200376D: je 0x42003779 */
   1855 L_4200376F:
   1856     MEM32(ecx + 0x174) = 0x3E4CCCCDu; /* 0x4200376F: mov dword ptr [ecx + 0x174], 0x3e4ccccd */
   1857 L_42003779:
   1858     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42003779: ret 4 */
   1859     RECOMP_REGS_OUT();
   1860 }
   1861 
   1862 void sub_42003780(void) {
   1863     int _fpu_cmp = 0;
   1864     uint32_t _cf = 0;
   1865     int _df = 1;
   1866     uint32_t _flag_k = FK_NONE;
   1867     uint32_t _flag_a = 0, _flag_b = 0;
   1868     uint32_t _itail_tgt = 0;
   1869     RECOMP_REGS_LOCALS
   1870     RECOMP_ENTER(0x42003780u);
   1871 
   1872 L_42003780:
   1873     fp_push(*(float*)&MEM32(ecx + 0x174)); /* 0x42003780: fld dword ptr [ecx + 0x174] */
   1874     _st[0] += (double)*(float*)ADDR(0x420180D0); /* 0x42003786: fadd dword ptr [0x420180d0] */
   1875     { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x174) = _v; } /* 0x4200378C: fstp dword ptr [ecx + 0x174] */
   1876     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42003792: ret 4 */
   1877     RECOMP_REGS_OUT();
   1878 }
   1879 
   1880 void sub_420037A0(void) {
   1881     int _fpu_cmp = 0;
   1882     uint32_t _cf = 0;
   1883     int _df = 1;
   1884     uint32_t _flag_k = FK_NONE;
   1885     uint32_t _flag_a = 0, _flag_b = 0;
   1886     uint32_t _itail_tgt = 0;
   1887     RECOMP_REGS_LOCALS
   1888     RECOMP_ENTER(0x420037A0u);
   1889 
   1890 L_420037A0:
   1891     PUSH32(esp, ebp); /* 0x420037A0: push ebp */
   1892     ebp = esp; /* 0x420037A1: mov ebp, esp */
   1893     eax = MEM32(ebp + 0x8); /* 0x420037A3: mov eax, dword ptr [ebp + 8] */
   1894     MEM32(ecx + 0x180) = eax; /* 0x420037A6: mov dword ptr [ecx + 0x180], eax */
   1895     ebp = POP32_VAL(esp); /* 0x420037AC: pop ebp */
   1896     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x420037AD: ret 4 */
   1897     RECOMP_REGS_OUT();
   1898 }
   1899 
   1900 void sub_420037B0(void) {
   1901     int _fpu_cmp = 0;
   1902     uint32_t _cf = 0;
   1903     int _df = 1;
   1904     uint32_t _flag_k = FK_NONE;
   1905     uint32_t _flag_a = 0, _flag_b = 0;
   1906     uint32_t _itail_tgt = 0;
   1907     RECOMP_REGS_LOCALS
   1908     RECOMP_ENTER(0x420037B0u);
   1909 
   1910 L_420037B0:
   1911     PUSH32(esp, ebp); /* 0x420037B0: push ebp */
   1912     ebp = esp; /* 0x420037B1: mov ebp, esp */
   1913     eax = MEM32(ebp + 0x8); /* 0x420037B3: mov eax, dword ptr [ebp + 8] */
   1914     MEM32(ecx + 0x17C) = eax; /* 0x420037B6: mov dword ptr [ecx + 0x17c], eax */
   1915     ebp = POP32_VAL(esp); /* 0x420037BC: pop ebp */
   1916     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x420037BD: ret 4 */
   1917     RECOMP_REGS_OUT();
   1918 }
   1919 
   1920 void sub_420037C0(void) {
   1921     int _fpu_cmp = 0;
   1922     uint32_t _cf = 0;
   1923     int _df = 1;
   1924     uint32_t _flag_k = FK_NONE;
   1925     uint32_t _flag_a = 0, _flag_b = 0;
   1926     uint32_t _itail_tgt = 0;
   1927     RECOMP_REGS_LOCALS
   1928     RECOMP_ENTER(0x420037C0u);
   1929 
   1930 L_420037C0:
   1931     PUSH32(esp, 1); /* 0x420037C0: push 1 */
   1932     MEM32(ecx + 0x178) = 0; /* 0x420037C2: mov dword ptr [ecx + 0x178], 0 */
   1933     RECOMP_ICALL(0x42011C90u); /* 0x420037CC: call 0x42011c90 */ /* not lifted */
   1934     RECOMP_FLAGS_IN();
   1935     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x420037D1: ret  */
   1936     RECOMP_REGS_OUT();
   1937 }
   1938 
   1939 void sub_420037E0(void) {
   1940     int _fpu_cmp = 0;
   1941     uint32_t _cf = 0;
   1942     int _df = 1;
   1943     uint32_t _flag_k = FK_NONE;
   1944     uint32_t _flag_a = 0, _flag_b = 0;
   1945     uint32_t _itail_tgt = 0;
   1946     RECOMP_REGS_LOCALS
   1947     RECOMP_ENTER(0x420037E0u);
   1948 
   1949 L_420037E0:
   1950     PUSH32(esp, ebx); /* 0x420037E0: push ebx */
   1951     PUSH32(esp, esi); /* 0x420037E1: push esi */
   1952     PUSH32(esp, edi); /* 0x420037E2: push edi */
   1953     edi = ecx; /* 0x420037E3: mov edi, ecx */
   1954     ebx = MEM32(edi + 0x4); /* 0x420037E5: mov ebx, dword ptr [edi + 4] */
   1955     esi = MEM32(ebx); /* 0x420037E8: mov esi, dword ptr [ebx] */
   1956     /* cmp esi, ebx */ /* 0x420037EA: cmp esi, ebx */
   1957     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   1958     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1959     _flag_k = FK_CMP;
   1960     if (CMP_EQ(_flag_a, _flag_b)) goto L_42003815; /* 0x420037EC: je 0x42003815 */
   1961 L_420037EE:
   1962     eax = esi; /* 0x420037EE: mov eax, esi */
   1963     ecx = MEM32(eax + 0x4); /* 0x420037F0: mov ecx, dword ptr [eax + 4] */
   1964     edx = MEM32(eax); /* 0x420037F3: mov edx, dword ptr [eax] */
   1965     esi = MEM32(esi); /* 0x420037F5: mov esi, dword ptr [esi] */
   1966     MEM32(ecx) = edx; /* 0x420037F7: mov dword ptr [ecx], edx */
   1967     ecx = MEM32(eax); /* 0x420037F9: mov ecx, dword ptr [eax] */
   1968     edx = MEM32(eax + 0x4); /* 0x420037FB: mov edx, dword ptr [eax + 4] */
   1969     PUSH32(esp, eax); /* 0x420037FE: push eax */
   1970     MEM32(ecx + 0x4) = edx; /* 0x420037FF: mov dword ptr [ecx + 4], edx */
   1971     RECOMP_ICALL(0x42016DD0u); /* 0x42003802: call 0x42016dd0 */ /* not lifted */
   1972     RECOMP_FLAGS_IN();
   1973     ecx = MEM32(edi + 0x8); /* 0x42003807: mov ecx, dword ptr [edi + 8] */
   1974     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1975     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1976     esp = esp + 4; /* 0x4200380A: add esp, 4 */
   1977     _flag_k = FK_ADD;
   1978     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1979     ecx = ecx - 1; /* 0x4200380D: dec ecx */
   1980     _flag_k = FK_DEC;
   1981     /* cmp esi, ebx */ /* 0x4200380E: cmp esi, ebx */
   1982     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   1983     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1984     _flag_k = FK_CMP;
   1985     MEM32(edi + 0x8) = ecx; /* 0x42003810: mov dword ptr [edi + 8], ecx */
   1986     RECOMP_BACKEDGE();
   1987     if (CMP_NE(_flag_a, _flag_b)) goto L_420037EE; /* 0x42003813: jne 0x420037ee */
   1988 L_42003815:
   1989     eax = MEM32(edi + 0x4); /* 0x42003815: mov eax, dword ptr [edi + 4] */
   1990     PUSH32(esp, eax); /* 0x42003818: push eax */
   1991     RECOMP_ICALL(0x42016DD0u); /* 0x42003819: call 0x42016dd0 */ /* not lifted */
   1992     RECOMP_FLAGS_IN();
   1993     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1994     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1995     esp = esp + 4; /* 0x4200381E: add esp, 4 */
   1996     _flag_k = FK_ADD;
   1997     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1998     eax = 0; /* 0x42003821: xor eax, eax */
   1999     _cf = 0;
   2000     _flag_k = FK_TEST;
   2001     MEM32(edi + 0x4) = eax; /* 0x42003823: mov dword ptr [edi + 4], eax */
   2002     MEM32(edi + 0x8) = eax; /* 0x42003826: mov dword ptr [edi + 8], eax */
   2003     edi = POP32_VAL(esp); /* 0x42003829: pop edi */
   2004     esi = POP32_VAL(esp); /* 0x4200382A: pop esi */
   2005     ebx = POP32_VAL(esp); /* 0x4200382B: pop ebx */
   2006     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200382C: ret  */
   2007     RECOMP_REGS_OUT();
   2008 }
   2009 
   2010 void sub_42003830(void) {
   2011     int _fpu_cmp = 0;
   2012     uint32_t _cf = 0;
   2013     int _df = 1;
   2014     uint32_t _flag_k = FK_NONE;
   2015     uint32_t _flag_a = 0, _flag_b = 0;
   2016     uint32_t _itail_tgt = 0;
   2017     RECOMP_REGS_LOCALS
   2018     RECOMP_ENTER(0x42003830u);
   2019 
   2020 L_42003830:
   2021     MEM32(ecx) = 0x4201822Cu; /* 0x42003830: mov dword ptr [ecx], 0x4201822c */
   2022     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42003836: ret  */
   2023     RECOMP_REGS_OUT();
   2024 }
   2025 
   2026 void sub_42003840(void) {
   2027     int _fpu_cmp = 0;
   2028     uint32_t _cf = 0;
   2029     int _df = 1;
   2030     uint32_t _flag_k = FK_NONE;
   2031     uint32_t _flag_a = 0, _flag_b = 0;
   2032     uint32_t _itail_tgt = 0;
   2033     RECOMP_REGS_LOCALS
   2034     RECOMP_ENTER(0x42003840u);
   2035 
   2036 L_42003840:
   2037     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x42003840: ret 0xc */
   2038     RECOMP_REGS_OUT();
   2039 }
   2040 
   2041 void sub_42003850(void) {
   2042     int _fpu_cmp = 0;
   2043     uint32_t _cf = 0;
   2044     int _df = 1;
   2045     uint32_t _flag_k = FK_NONE;
   2046     uint32_t _flag_a = 0, _flag_b = 0;
   2047     uint32_t _itail_tgt = 0;
   2048     RECOMP_REGS_LOCALS
   2049     RECOMP_ENTER(0x42003850u);
   2050 
   2051 L_42003850:
   2052     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2053     eax = 0; /* 0x42003850: xor eax, eax */
   2054     _cf = 0;
   2055     _flag_k = FK_TEST;
   2056     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x42003852: ret 8 */
   2057     RECOMP_REGS_OUT();
   2058 }
   2059 
   2060 void sub_42003860(void) {
   2061     int _fpu_cmp = 0;
   2062     uint32_t _cf = 0;
   2063     int _df = 1;
   2064     uint32_t _flag_k = FK_NONE;
   2065     uint32_t _flag_a = 0, _flag_b = 0;
   2066     uint32_t _itail_tgt = 0;
   2067     RECOMP_REGS_LOCALS
   2068     RECOMP_ENTER(0x42003860u);
   2069 
   2070 L_42003860:
   2071     eax = ecx; /* 0x42003860: mov eax, ecx */
   2072     MEM32(eax) = 0x4201822Cu; /* 0x42003862: mov dword ptr [eax], 0x4201822c */
   2073     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42003868: ret  */
   2074     RECOMP_REGS_OUT();
   2075 }
   2076 
   2077 void sub_42003870(void) {
   2078     int _fpu_cmp = 0;
   2079     uint32_t _cf = 0;
   2080     int _df = 1;
   2081     uint32_t _flag_k = FK_NONE;
   2082     uint32_t _flag_a = 0, _flag_b = 0;
   2083     uint32_t _itail_tgt = 0;
   2084     RECOMP_REGS_LOCALS
   2085     RECOMP_ENTER(0x42003870u);
   2086 
   2087 L_42003870:
   2088     eax = ecx; /* 0x42003870: mov eax, ecx */
   2089     MEM32(eax) = 0x4201822Cu; /* 0x42003872: mov dword ptr [eax], 0x4201822c */
   2090     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42003878: ret 4 */
   2091     RECOMP_REGS_OUT();
   2092 }
   2093 
   2094 void sub_42003880(void) {
   2095     int _fpu_cmp = 0;
   2096     uint32_t _cf = 0;
   2097     int _df = 1;
   2098     uint32_t _flag_k = FK_NONE;
   2099     uint32_t _flag_a = 0, _flag_b = 0;
   2100     uint32_t _itail_tgt = 0;
   2101     RECOMP_REGS_LOCALS
   2102     RECOMP_ENTER(0x42003880u);
   2103 
   2104 L_42003880:
   2105     PUSH32(esp, ebp); /* 0x42003880: push ebp */
   2106     ebp = esp; /* 0x42003881: mov ebp, esp */
   2107     PUSH32(esp, ebx); /* 0x42003883: push ebx */
   2108     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x42003884: mov bl, byte ptr [ebp + 8] */
   2109     /* test LO8(ebx), 2 */ /* 0x42003887: test bl, 2 */
   2110     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   2111     _cf = 0;
   2112     _flag_k = FK_NARROW(FK_TEST, 24);
   2113     PUSH32(esp, esi); /* 0x4200388A: push esi */
   2114     esi = ecx; /* 0x4200388B: mov esi, ecx */
   2115     if (TEST_Z(_flag_a, _flag_b)) goto L_420038BB; /* 0x4200388D: je 0x420038bb */
   2116 L_4200388F:
   2117     eax = MEM32(esi + (-0x4)); /* 0x4200388F: mov eax, dword ptr [esi - 4] */
   2118     PUSH32(esp, edi); /* 0x42003892: push edi */
   2119     PUSH32(esp, 0x42003830u); /* 0x42003893: push 0x42003830 */
   2120     edi = esi + (-0x4); /* 0x42003898: lea edi, [esi - 4] */
   2121     PUSH32(esp, eax); /* 0x4200389B: push eax */
   2122     PUSH32(esp, 4); /* 0x4200389C: push 4 */
   2123     PUSH32(esp, esi); /* 0x4200389E: push esi */
   2124     RECOMP_ICALL(0x42016E3Cu); /* 0x4200389F: call 0x42016e3c */ /* not lifted */
   2125     RECOMP_FLAGS_IN();
   2126     /* test LO8(ebx), 1 */ /* 0x420038A4: test bl, 1 */
   2127     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   2128     _cf = 0;
   2129     _flag_k = FK_NARROW(FK_TEST, 24);
   2130     if (TEST_Z(_flag_a, _flag_b)) goto L_420038B2; /* 0x420038A7: je 0x420038b2 */
   2131 L_420038A9:
   2132     PUSH32(esp, edi); /* 0x420038A9: push edi */
   2133     RECOMP_ICALL(0x42016DD0u); /* 0x420038AA: call 0x42016dd0 */ /* not lifted */
   2134     RECOMP_FLAGS_IN();
   2135     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2136     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2137     esp = esp + 4; /* 0x420038AF: add esp, 4 */
   2138     _flag_k = FK_ADD;
   2139 L_420038B2:
   2140     eax = edi; /* 0x420038B2: mov eax, edi */
   2141     edi = POP32_VAL(esp); /* 0x420038B4: pop edi */
   2142     esi = POP32_VAL(esp); /* 0x420038B5: pop esi */
   2143     ebx = POP32_VAL(esp); /* 0x420038B6: pop ebx */
   2144     ebp = POP32_VAL(esp); /* 0x420038B7: pop ebp */
   2145     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x420038B8: ret 4 */
   2146 L_420038BB:
   2147     /* test LO8(ebx), 1 */ /* 0x420038BB: test bl, 1 */
   2148     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   2149     _cf = 0;
   2150     _flag_k = FK_NARROW(FK_TEST, 24);
   2151     MEM32(esi) = 0x4201822Cu; /* 0x420038BE: mov dword ptr [esi], 0x4201822c */
   2152     if (TEST_Z(_flag_a, _flag_b)) goto L_420038CF; /* 0x420038C4: je 0x420038cf */
   2153 L_420038C6:
   2154     PUSH32(esp, esi); /* 0x420038C6: push esi */
   2155     RECOMP_ICALL(0x42016DD0u); /* 0x420038C7: call 0x42016dd0 */ /* not lifted */
   2156     RECOMP_FLAGS_IN();
   2157     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2158     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2159     esp = esp + 4; /* 0x420038CC: add esp, 4 */
   2160     _flag_k = FK_ADD;
   2161 L_420038CF:
   2162     eax = esi; /* 0x420038CF: mov eax, esi */
   2163     esi = POP32_VAL(esp); /* 0x420038D1: pop esi */
   2164     ebx = POP32_VAL(esp); /* 0x420038D2: pop ebx */
   2165     ebp = POP32_VAL(esp); /* 0x420038D3: pop ebp */
   2166     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x420038D4: ret 4 */
   2167     RECOMP_REGS_OUT();
   2168 }
   2169 
   2170 void sub_420038E0(void) {
   2171     int _fpu_cmp = 0;
   2172     uint32_t _cf = 0;
   2173     int _df = 1;
   2174     uint32_t _flag_k = FK_NONE;
   2175     uint32_t _flag_a = 0, _flag_b = 0;
   2176     uint32_t _itail_tgt = 0;
   2177     RECOMP_REGS_LOCALS
   2178     RECOMP_ENTER(0x420038E0u);
   2179 
   2180 L_420038E0:
   2181     PUSH32(esp, ebp); /* 0x420038E0: push ebp */
   2182     ebp = esp; /* 0x420038E1: mov ebp, esp */
   2183     edx = MEM32(ebp + 0x8); /* 0x420038E3: mov edx, dword ptr [ebp + 8] */
   2184     eax = MEM32(ecx); /* 0x420038E6: mov eax, dword ptr [ecx] */
   2185     PUSH32(esp, edx); /* 0x420038E8: push edx */
   2186     RECOMP_ICALL(MEM32(eax + 0x7C)); /* 0x420038E9: call dword ptr [eax + 0x7c] */
   2187     RECOMP_FLAGS_IN();
   2188     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x24u);
   2189     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2190     eax = eax + 0x24u; /* 0x420038EC: add eax, 0x24 */
   2191     _flag_k = FK_ADD;
   2192     ebp = POP32_VAL(esp); /* 0x420038EF: pop ebp */
   2193     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x420038F0: ret 4 */
   2194     RECOMP_REGS_OUT();
   2195 }
   2196 
   2197 void sub_42003900(void) {
   2198     int _fpu_cmp = 0;
   2199     uint32_t _cf = 0;
   2200     int _df = 1;
   2201     uint32_t _flag_k = FK_NONE;
   2202     uint32_t _flag_a = 0, _flag_b = 0;
   2203     uint32_t _itail_tgt = 0;
   2204     RECOMP_REGS_LOCALS
   2205     RECOMP_ENTER(0x42003900u);
   2206 
   2207 L_42003900:
   2208     PUSH32(esp, ebp); /* 0x42003900: push ebp */
   2209     ebp = esp; /* 0x42003901: mov ebp, esp */
   2210     edx = MEM32(ebp + 0x8); /* 0x42003903: mov edx, dword ptr [ebp + 8] */
   2211     eax = MEM32(ecx); /* 0x42003906: mov eax, dword ptr [ecx] */
   2212     PUSH32(esp, edx); /* 0x42003908: push edx */
   2213     RECOMP_ICALL(MEM32(eax + 0x7C)); /* 0x42003909: call dword ptr [eax + 0x7c] */
   2214     RECOMP_FLAGS_IN();
   2215     eax = MEM32(eax + 0x24); /* 0x4200390C: mov eax, dword ptr [eax + 0x24] */
   2216     ebp = POP32_VAL(esp); /* 0x4200390F: pop ebp */
   2217     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42003910: ret 4 */
   2218     RECOMP_REGS_OUT();
   2219 }
   2220 
   2221 void sub_42003920(void) {
   2222     int _fpu_cmp = 0;
   2223     uint32_t _cf = 0;
   2224     int _df = 1;
   2225     uint32_t _flag_k = FK_NONE;
   2226     uint32_t _flag_a = 0, _flag_b = 0;
   2227     uint32_t _itail_tgt = 0;
   2228     RECOMP_REGS_LOCALS
   2229     RECOMP_ENTER(0x42003920u);
   2230 
   2231 L_42003920:
   2232     PUSH32(esp, ebp); /* 0x42003920: push ebp */
   2233     ebp = esp; /* 0x42003921: mov ebp, esp */
   2234     edx = MEM32(ebp + 0x8); /* 0x42003923: mov edx, dword ptr [ebp + 8] */
   2235     eax = MEM32(ecx); /* 0x42003926: mov eax, dword ptr [ecx] */
   2236     PUSH32(esp, edx); /* 0x42003928: push edx */
   2237     RECOMP_ICALL(MEM32(eax + 0x7C)); /* 0x42003929: call dword ptr [eax + 0x7c] */
   2238     RECOMP_FLAGS_IN();
   2239     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   2240     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2241     eax = eax + 0x10u; /* 0x4200392C: add eax, 0x10 */
   2242     _flag_k = FK_ADD;
   2243     ebp = POP32_VAL(esp); /* 0x4200392F: pop ebp */
   2244     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42003930: ret 4 */
   2245     RECOMP_REGS_OUT();
   2246 }
   2247 
   2248 void sub_42003940(void) {
   2249     int _fpu_cmp = 0;
   2250     uint32_t _cf = 0;
   2251     int _df = 1;
   2252     uint32_t _flag_k = FK_NONE;
   2253     uint32_t _flag_a = 0, _flag_b = 0;
   2254     uint32_t _itail_tgt = 0;
   2255     RECOMP_REGS_LOCALS
   2256     RECOMP_ENTER(0x42003940u);
   2257 
   2258 L_42003940:
   2259     PUSH32(esp, ebp); /* 0x42003940: push ebp */
   2260     ebp = esp; /* 0x42003941: mov ebp, esp */
   2261     edx = MEM32(ebp + 0x8); /* 0x42003943: mov edx, dword ptr [ebp + 8] */
   2262     eax = MEM32(ecx); /* 0x42003946: mov eax, dword ptr [ecx] */
   2263     PUSH32(esp, edx); /* 0x42003948: push edx */
   2264     RECOMP_ICALL(MEM32(eax + 0x7C)); /* 0x42003949: call dword ptr [eax + 0x7c] */
   2265     RECOMP_FLAGS_IN();
   2266     ebp = POP32_VAL(esp); /* 0x4200394C: pop ebp */
   2267     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4200394D: ret 4 */
   2268     RECOMP_REGS_OUT();
   2269 }
   2270 
   2271 void sub_42003950(void) {
   2272     int _fpu_cmp = 0;
   2273     uint32_t _cf = 0;
   2274     int _df = 1;
   2275     uint32_t _flag_k = FK_NONE;
   2276     uint32_t _flag_a = 0, _flag_b = 0;
   2277     uint32_t _itail_tgt = 0;
   2278     RECOMP_REGS_LOCALS
   2279     RECOMP_ENTER(0x42003950u);
   2280 
   2281 L_42003950:
   2282     PUSH32(esp, ebp); /* 0x42003950: push ebp */
   2283     ebp = esp; /* 0x42003951: mov ebp, esp */
   2284     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2285     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2286     esp = esp - 0xCu; /* 0x42003953: sub esp, 0xc */
   2287     _flag_k = FK_CMP;
   2288     eax = ecx; /* 0x42003956: mov eax, ecx */
   2289     ecx = MEM32(ebp + 0x8); /* 0x42003958: mov ecx, dword ptr [ebp + 8] */
   2290     SET_LO8(edx, MEM8(ecx + 0x8)); /* 0x4200395B: mov dl, byte ptr [ecx + 8] */
   2291     PUSH32(esp, ebx); /* 0x4200395E: push ebx */
   2292     MEM8(eax + 0x8) = (uint8_t)(LO8(edx)); /* 0x4200395F: mov byte ptr [eax + 8], dl */
   2293     edx = ecx + 0xC; /* 0x42003962: lea edx, [ecx + 0xc] */
   2294     ebx = eax + 0xC; /* 0x42003965: lea ebx, [eax + 0xc] */
   2295     /* cmp ebx, edx */ /* 0x42003968: cmp ebx, edx */
   2296     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
   2297     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2298     _flag_k = FK_CMP;
   2299     PUSH32(esp, esi); /* 0x4200396A: push esi */
   2300     PUSH32(esp, edi); /* 0x4200396B: push edi */
   2301     MEM32(ebp + (-0xC)) = eax; /* 0x4200396C: mov dword ptr [ebp - 0xc], eax */
   2302     if (CMP_EQ(_flag_a, _flag_b)) goto L_42003A2B; /* 0x4200396F: je 0x42003a2b */
   2303 L_42003975:
   2304     esi = MEM32(ebx + 0x4); /* 0x42003975: mov esi, dword ptr [ebx + 4] */
   2305     ecx = MEM32(edx + 0x4); /* 0x42003978: mov ecx, dword ptr [edx + 4] */
   2306     eax = MEM32(esi); /* 0x4200397B: mov eax, dword ptr [esi] */
   2307     /* cmp eax, esi */ /* 0x4200397D: cmp eax, esi */
   2308     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   2309     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2310     _flag_k = FK_CMP;
   2311     edx = MEM32(ecx); /* 0x4200397F: mov edx, dword ptr [ecx] */
   2312     MEM32(ebp + (-0x8)) = ecx; /* 0x42003981: mov dword ptr [ebp - 8], ecx */
   2313     MEM32(ebp + (-0x4)) = edx; /* 0x42003984: mov dword ptr [ebp - 4], edx */
   2314     if (CMP_EQ(_flag_a, _flag_b)) goto L_4200399E; /* 0x42003987: je 0x4200399e */
   2315 L_42003989:
   2316     /* cmp edx, ecx */ /* 0x42003989: cmp edx, ecx */
   2317     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   2318     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2319     _flag_k = FK_CMP;
   2320     if (CMP_EQ(_flag_a, _flag_b)) goto L_4200399E; /* 0x4200398B: je 0x4200399e */
   2321 L_4200398D:
   2322     edi = MEM32(edx + 0x8); /* 0x4200398D: mov edi, dword ptr [edx + 8] */
   2323     MEM32(eax + 0x8) = edi; /* 0x42003990: mov dword ptr [eax + 8], edi */
   2324     eax = MEM32(eax); /* 0x42003993: mov eax, dword ptr [eax] */
   2325     /* cmp eax, esi */ /* 0x42003995: cmp eax, esi */
   2326     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   2327     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2328     _flag_k = FK_CMP;
   2329     edx = MEM32(edx); /* 0x42003997: mov edx, dword ptr [edx] */
   2330     MEM32(ebp + (-0x4)) = edx; /* 0x42003999: mov dword ptr [ebp - 4], edx */
   2331     RECOMP_BACKEDGE();
   2332     if (CMP_NE(_flag_a, _flag_b)) goto L_42003989; /* 0x4200399C: jne 0x42003989 */
   2333 L_4200399E:
   2334     /* cmp eax, esi */ /* 0x4200399E: cmp eax, esi */
   2335     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   2336     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2337     _flag_k = FK_CMP;
   2338     edi = eax; /* 0x420039A0: mov edi, eax */
   2339     if (CMP_EQ(_flag_a, _flag_b)) goto L_420039D1; /* 0x420039A2: je 0x420039d1 */
   2340 L_420039A4:
   2341     eax = edi; /* 0x420039A4: mov eax, edi */
   2342     ecx = MEM32(eax + 0x4); /* 0x420039A6: mov ecx, dword ptr [eax + 4] */
   2343     edx = MEM32(eax); /* 0x420039A9: mov edx, dword ptr [eax] */
   2344     edi = MEM32(edi); /* 0x420039AB: mov edi, dword ptr [edi] */
   2345     MEM32(ecx) = edx; /* 0x420039AD: mov dword ptr [ecx], edx */
   2346     ecx = MEM32(eax); /* 0x420039AF: mov ecx, dword ptr [eax] */
   2347     edx = MEM32(eax + 0x4); /* 0x420039B1: mov edx, dword ptr [eax + 4] */
   2348     PUSH32(esp, eax); /* 0x420039B4: push eax */
   2349     MEM32(ecx + 0x4) = edx; /* 0x420039B5: mov dword ptr [ecx + 4], edx */
   2350     RECOMP_ICALL(0x42016DD0u); /* 0x420039B8: call 0x42016dd0 */ /* not lifted */
   2351     RECOMP_FLAGS_IN();
   2352     ecx = MEM32(ebx + 0x8); /* 0x420039BD: mov ecx, dword ptr [ebx + 8] */
   2353     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2354     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2355     esp = esp + 4; /* 0x420039C0: add esp, 4 */
   2356     _flag_k = FK_ADD;
   2357     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2358     ecx = ecx - 1; /* 0x420039C3: dec ecx */
   2359     _flag_k = FK_DEC;
   2360     /* cmp edi, esi */ /* 0x420039C4: cmp edi, esi */
   2361     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
   2362     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2363     _flag_k = FK_CMP;
   2364     MEM32(ebx + 0x8) = ecx; /* 0x420039C6: mov dword ptr [ebx + 8], ecx */
   2365     RECOMP_BACKEDGE();
   2366     if (CMP_NE(_flag_a, _flag_b)) goto L_420039A4; /* 0x420039C9: jne 0x420039a4 */
   2367 L_420039CB:
   2368     ecx = MEM32(ebp + (-0x8)); /* 0x420039CB: mov ecx, dword ptr [ebp - 8] */
   2369     edx = MEM32(ebp + (-0x4)); /* 0x420039CE: mov edx, dword ptr [ebp - 4] */
   2370 L_420039D1:
   2371     /* cmp edx, ecx */ /* 0x420039D1: cmp edx, ecx */
   2372     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   2373     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2374     _flag_k = FK_CMP;
   2375     edi = edx; /* 0x420039D3: mov edi, edx */
   2376     if (CMP_EQ(_flag_a, _flag_b)) goto L_42003A25; /* 0x420039D5: je 0x42003a25 */
   2377 L_420039D7:
   2378     eax = MEM32(esi + 0x4); /* 0x420039D7: mov eax, dword ptr [esi + 4] */
   2379     PUSH32(esp, 0xCu); /* 0x420039DA: push 0xc */
   2380     MEM32(ebp + (-0x4)) = eax; /* 0x420039DC: mov dword ptr [ebp - 4], eax */
   2381     RECOMP_ICALL(0x42016F36u); /* 0x420039DF: call 0x42016f36 */ /* not lifted */
   2382     RECOMP_FLAGS_IN();
   2383     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2384     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2385     esp = esp + 4; /* 0x420039E4: add esp, 4 */
   2386     _flag_k = FK_ADD;
   2387     /* test esi, esi */ /* 0x420039E7: test esi, esi */
   2388     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   2389     _cf = 0;
   2390     _flag_k = FK_TEST;
   2391     ecx = esi; /* 0x420039E9: mov ecx, esi */
   2392     if (TEST_NZ(_flag_a, _flag_b)) goto L_420039EF; /* 0x420039EB: jne 0x420039ef */
   2393 L_420039ED:
   2394     ecx = eax; /* 0x420039ED: mov ecx, eax */
   2395 L_420039EF:
   2396     MEM32(eax) = ecx; /* 0x420039EF: mov dword ptr [eax], ecx */
   2397     ecx = MEM32(ebp + (-0x4)); /* 0x420039F1: mov ecx, dword ptr [ebp - 4] */
   2398     /* test ecx, ecx */ /* 0x420039F4: test ecx, ecx */
   2399     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2400     _cf = 0;
   2401     _flag_k = FK_TEST;
   2402     if (TEST_NZ(_flag_a, _flag_b)) goto L_420039FA; /* 0x420039F6: jne 0x420039fa */
   2403 L_420039F8:
   2404     ecx = eax; /* 0x420039F8: mov ecx, eax */
   2405 L_420039FA:
   2406     MEM32(eax + 0x4) = ecx; /* 0x420039FA: mov dword ptr [eax + 4], ecx */
   2407     MEM32(esi + 0x4) = eax; /* 0x420039FD: mov dword ptr [esi + 4], eax */
   2408     ecx = MEM32(eax + 0x4); /* 0x42003A00: mov ecx, dword ptr [eax + 4] */
   2409     MEM32(ecx) = eax; /* 0x42003A03: mov dword ptr [ecx], eax */
   2410     ecx = edi + 0x8; /* 0x42003A05: lea ecx, [edi + 8] */
   2411     PUSH32(esp, ecx); /* 0x42003A08: push ecx */
   2412     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   2413     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2414     eax = eax + 8; /* 0x42003A09: add eax, 8 */
   2415     _flag_k = FK_ADD;
   2416     PUSH32(esp, eax); /* 0x42003A0C: push eax */
   2417     RECOMP_ICALL(0x42004A70u); /* 0x42003A0D: call 0x42004a70 */ /* not lifted */
   2418     RECOMP_FLAGS_IN();
   2419     ecx = MEM32(ebx + 0x8); /* 0x42003A12: mov ecx, dword ptr [ebx + 8] */
   2420     eax = MEM32(ebp + (-0x8)); /* 0x42003A15: mov eax, dword ptr [ebp - 8] */
   2421     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2422     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2423     esp = esp + 8; /* 0x42003A18: add esp, 8 */
   2424     _flag_k = FK_ADD;
   2425     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2426     ecx = ecx + 1; /* 0x42003A1B: inc ecx */
   2427     _flag_k = FK_INC;
   2428     MEM32(ebx + 0x8) = ecx; /* 0x42003A1C: mov dword ptr [ebx + 8], ecx */
   2429     edi = MEM32(edi); /* 0x42003A1F: mov edi, dword ptr [edi] */
   2430     /* cmp edi, eax */ /* 0x42003A21: cmp edi, eax */
   2431     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2432     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2433     _flag_k = FK_CMP;
   2434     RECOMP_BACKEDGE();
   2435     if (CMP_NE(_flag_a, _flag_b)) goto L_420039D7; /* 0x42003A23: jne 0x420039d7 */
   2436 L_42003A25:
   2437     ecx = MEM32(ebp + 0x8); /* 0x42003A25: mov ecx, dword ptr [ebp + 8] */
   2438     eax = MEM32(ebp + (-0xC)); /* 0x42003A28: mov eax, dword ptr [ebp - 0xc] */
   2439 L_42003A2B:
   2440     edx = MEM32(ecx + 0x18); /* 0x42003A2B: mov edx, dword ptr [ecx + 0x18] */
   2441     MEM32(eax + 0x18) = edx; /* 0x42003A2E: mov dword ptr [eax + 0x18], edx */
   2442     edx = MEM32(ecx + 0x1C); /* 0x42003A31: mov edx, dword ptr [ecx + 0x1c] */
   2443     edi = POP32_VAL(esp); /* 0x42003A34: pop edi */
   2444     MEM32(eax + 0x1C) = edx; /* 0x42003A35: mov dword ptr [eax + 0x1c], edx */
   2445     ecx = MEM32(ecx + 0x20); /* 0x42003A38: mov ecx, dword ptr [ecx + 0x20] */
   2446     esi = POP32_VAL(esp); /* 0x42003A3B: pop esi */
   2447     MEM32(eax + 0x20) = ecx; /* 0x42003A3C: mov dword ptr [eax + 0x20], ecx */
   2448     ebx = POP32_VAL(esp); /* 0x42003A3F: pop ebx */
   2449     esp = ebp; /* 0x42003A40: mov esp, ebp */
   2450     ebp = POP32_VAL(esp); /* 0x42003A42: pop ebp */
   2451     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42003A43: ret 4 */
   2452     RECOMP_REGS_OUT();
   2453 }
   2454 
   2455 void sub_42003A50(void) {
   2456     int _fpu_cmp = 0;
   2457     uint32_t _cf = 0;
   2458     int _df = 1;
   2459     uint32_t _flag_k = FK_NONE;
   2460     uint32_t _flag_a = 0, _flag_b = 0;
   2461     uint32_t _itail_tgt = 0;
   2462     RECOMP_REGS_LOCALS
   2463     RECOMP_ENTER(0x42003A50u);
   2464 
   2465 L_42003A50:
   2466     RECOMP_ICALL(0x42003A60u); /* 0x42003A50: call 0x42003a60 */ /* not lifted */
   2467     RECOMP_FLAGS_IN();
   2468     goto L_42003A70; /* 0x42003A55: jmp 0x42003a70 */
   2469 L_42003A70:
   2470     PUSH32(esp, 0x42003A80u); /* 0x42003A70: push 0x42003a80 */
   2471     RECOMP_ICALL(0x42016E07u); /* 0x42003A75: call 0x42016e07 */ /* not lifted */
   2472     RECOMP_FLAGS_IN();
   2473     ecx = POP32_VAL(esp); /* 0x42003A7A: pop ecx */
   2474     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42003A7B: ret  */
   2475     RECOMP_REGS_OUT();
   2476 }
   2477 
   2478 void sub_42003A60(void) {
   2479     int _fpu_cmp = 0;
   2480     uint32_t _cf = 0;
   2481     int _df = 1;
   2482     uint32_t _flag_k = FK_NONE;
   2483     uint32_t _flag_a = 0, _flag_b = 0;
   2484     uint32_t _itail_tgt = 0;
   2485     RECOMP_REGS_LOCALS
   2486     RECOMP_ENTER(0x42003A60u);
   2487 
   2488 L_42003A60:
   2489     ecx = 0x420227ADu; /* 0x42003A60: mov ecx, 0x420227ad */
   2490 L_42003A65:
   2491     { _itail_tgt = (uint32_t)(MEM32(0x42018014)); goto _ljump; }
   2492     { RECOMP_REGS_OUT(); return; } /* end of function */
   2493   _ljump:
   2494     switch (_itail_tgt) {
   2495       case 0x42003A60u: goto L_42003A60;
   2496       case 0x42003A65u: goto L_42003A65;
   2497       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2498     }
   2499     RECOMP_REGS_OUT();
   2500 }
   2501 
   2502 void sub_42003A70(void) {
   2503     int _fpu_cmp = 0;
   2504     uint32_t _cf = 0;
   2505     int _df = 1;
   2506     uint32_t _flag_k = FK_NONE;
   2507     uint32_t _flag_a = 0, _flag_b = 0;
   2508     uint32_t _itail_tgt = 0;
   2509     RECOMP_REGS_LOCALS
   2510     RECOMP_ENTER(0x42003A70u);
   2511 
   2512 L_42003A70:
   2513     PUSH32(esp, 0x42003A80u); /* 0x42003A70: push 0x42003a80 */
   2514     RECOMP_ICALL(0x42016E07u); /* 0x42003A75: call 0x42016e07 */ /* not lifted */
   2515     RECOMP_FLAGS_IN();
   2516     ecx = POP32_VAL(esp); /* 0x42003A7A: pop ecx */
   2517     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42003A7B: ret  */
   2518     RECOMP_REGS_OUT();
   2519 }
   2520 
   2521 void sub_42003A80(void) {
   2522     int _fpu_cmp = 0;
   2523     uint32_t _cf = 0;
   2524     int _df = 1;
   2525     uint32_t _flag_k = FK_NONE;
   2526     uint32_t _flag_a = 0, _flag_b = 0;
   2527     uint32_t _itail_tgt = 0;
   2528     RECOMP_REGS_LOCALS
   2529     RECOMP_ENTER(0x42003A80u);
   2530 
   2531 L_42003A80:
   2532     ecx = 0x420227ADu; /* 0x42003A80: mov ecx, 0x420227ad */
   2533 L_42003A85:
   2534     { _itail_tgt = (uint32_t)(MEM32(0x42018010)); goto _ljump; }
   2535     { RECOMP_REGS_OUT(); return; } /* end of function */
   2536   _ljump:
   2537     switch (_itail_tgt) {
   2538       case 0x42003A80u: goto L_42003A80;
   2539       case 0x42003A85u: goto L_42003A85;
   2540       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2541     }
   2542     RECOMP_REGS_OUT();
   2543 }
   2544 
   2545 void sub_42003A90(void) {
   2546     int _fpu_cmp = 0;
   2547     uint32_t _cf = 0;
   2548     int _df = 1;
   2549     uint32_t _flag_k = FK_NONE;
   2550     uint32_t _flag_a = 0, _flag_b = 0;
   2551     uint32_t _itail_tgt = 0;
   2552     RECOMP_REGS_LOCALS
   2553     RECOMP_ENTER(0x42003A90u);
   2554 
   2555 L_42003A90:
   2556     RECOMP_ICALL(0x42003AA0u); /* 0x42003A90: call 0x42003aa0 */ /* not lifted */
   2557     RECOMP_FLAGS_IN();
   2558     goto L_42003AB0; /* 0x42003A95: jmp 0x42003ab0 */
   2559 L_42003AB0:
   2560     PUSH32(esp, 0x42003AC0u); /* 0x42003AB0: push 0x42003ac0 */
   2561     RECOMP_ICALL(0x42016E07u); /* 0x42003AB5: call 0x42016e07 */ /* not lifted */
   2562     RECOMP_FLAGS_IN();
   2563     ecx = POP32_VAL(esp); /* 0x42003ABA: pop ecx */
   2564     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42003ABB: ret  */
   2565     RECOMP_REGS_OUT();
   2566 }
   2567 
   2568 void sub_42003AA0(void) {
   2569     int _fpu_cmp = 0;
   2570     uint32_t _cf = 0;
   2571     int _df = 1;
   2572     uint32_t _flag_k = FK_NONE;
   2573     uint32_t _flag_a = 0, _flag_b = 0;
   2574     uint32_t _itail_tgt = 0;
   2575     RECOMP_REGS_LOCALS
   2576     RECOMP_ENTER(0x42003AA0u);
   2577 
   2578 L_42003AA0:
   2579     ecx = 0x420227ACu; /* 0x42003AA0: mov ecx, 0x420227ac */
   2580 L_42003AA5:
   2581     { _itail_tgt = (uint32_t)(MEM32(0x42018008)); goto _ljump; }
   2582     { RECOMP_REGS_OUT(); return; } /* end of function */
   2583   _ljump:
   2584     switch (_itail_tgt) {
   2585       case 0x42003AA0u: goto L_42003AA0;
   2586       case 0x42003AA5u: goto L_42003AA5;
   2587       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2588     }
   2589     RECOMP_REGS_OUT();
   2590 }
   2591 
   2592 void sub_42003AB0(void) {
   2593     int _fpu_cmp = 0;
   2594     uint32_t _cf = 0;
   2595     int _df = 1;
   2596     uint32_t _flag_k = FK_NONE;
   2597     uint32_t _flag_a = 0, _flag_b = 0;
   2598     uint32_t _itail_tgt = 0;
   2599     RECOMP_REGS_LOCALS
   2600     RECOMP_ENTER(0x42003AB0u);
   2601 
   2602 L_42003AB0:
   2603     PUSH32(esp, 0x42003AC0u); /* 0x42003AB0: push 0x42003ac0 */
   2604     RECOMP_ICALL(0x42016E07u); /* 0x42003AB5: call 0x42016e07 */ /* not lifted */
   2605     RECOMP_FLAGS_IN();
   2606     ecx = POP32_VAL(esp); /* 0x42003ABA: pop ecx */
   2607     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42003ABB: ret  */
   2608     RECOMP_REGS_OUT();
   2609 }
   2610 
   2611 void sub_42003AC0(void) {
   2612     int _fpu_cmp = 0;
   2613     uint32_t _cf = 0;
   2614     int _df = 1;
   2615     uint32_t _flag_k = FK_NONE;
   2616     uint32_t _flag_a = 0, _flag_b = 0;
   2617     uint32_t _itail_tgt = 0;
   2618     RECOMP_REGS_LOCALS
   2619     RECOMP_ENTER(0x42003AC0u);
   2620 
   2621 L_42003AC0:
   2622     ecx = 0x420227ACu; /* 0x42003AC0: mov ecx, 0x420227ac */
   2623 L_42003AC5:
   2624     { _itail_tgt = (uint32_t)(MEM32(0x4201800C)); goto _ljump; }
   2625     { RECOMP_REGS_OUT(); return; } /* end of function */
   2626   _ljump:
   2627     switch (_itail_tgt) {
   2628       case 0x42003AC0u: goto L_42003AC0;
   2629       case 0x42003AC5u: goto L_42003AC5;
   2630       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2631     }
   2632     RECOMP_REGS_OUT();
   2633 }
   2634 
   2635 void sub_42003AD0(void) {
   2636     int _fpu_cmp = 0;
   2637     uint32_t _cf = 0;
   2638     int _df = 1;
   2639     uint32_t _flag_k = FK_NONE;
   2640     uint32_t _flag_a = 0, _flag_b = 0;
   2641     uint32_t _itail_tgt = 0;
   2642     RECOMP_REGS_LOCALS
   2643     RECOMP_ENTER(0x42003AD0u);
   2644 
   2645 L_42003AD0:
   2646     eax = ecx; /* 0x42003AD0: mov eax, ecx */
   2647     MEM32(eax) = 0x42018290u; /* 0x42003AD2: mov dword ptr [eax], 0x42018290 */
   2648     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42003AD8: ret  */
   2649     RECOMP_REGS_OUT();
   2650 }
   2651 
   2652 void sub_42003AE0(void) {
   2653     int _fpu_cmp = 0;
   2654     uint32_t _cf = 0;
   2655     int _df = 1;
   2656     uint32_t _flag_k = FK_NONE;
   2657     uint32_t _flag_a = 0, _flag_b = 0;
   2658     uint32_t _itail_tgt = 0;
   2659     RECOMP_REGS_LOCALS
   2660     RECOMP_ENTER(0x42003AE0u);
   2661 
   2662 L_42003AE0:
   2663     eax = ecx; /* 0x42003AE0: mov eax, ecx */
   2664     MEM32(eax) = 0x42018290u; /* 0x42003AE2: mov dword ptr [eax], 0x42018290 */
   2665     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42003AE8: ret 4 */
   2666     RECOMP_REGS_OUT();
   2667 }
   2668 
   2669 void sub_42003AF0(void) {
   2670     int _fpu_cmp = 0;
   2671     uint32_t _cf = 0;
   2672     int _df = 1;
   2673     uint32_t _flag_k = FK_NONE;
   2674     uint32_t _flag_a = 0, _flag_b = 0;
   2675     uint32_t _itail_tgt = 0;
   2676     RECOMP_REGS_LOCALS
   2677     RECOMP_ENTER(0x42003AF0u);
   2678 
   2679 L_42003AF0:
   2680     eax = ecx; /* 0x42003AF0: mov eax, ecx */
   2681     MEM32(eax) = 0x42018298u; /* 0x42003AF2: mov dword ptr [eax], 0x42018298 */
   2682     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42003AF8: ret  */
   2683     RECOMP_REGS_OUT();
   2684 }
   2685 
   2686 void sub_42003B00(void) {
   2687     int _fpu_cmp = 0;
   2688     uint32_t _cf = 0;
   2689     int _df = 1;
   2690     uint32_t _flag_k = FK_NONE;
   2691     uint32_t _flag_a = 0, _flag_b = 0;
   2692     uint32_t _itail_tgt = 0;
   2693     RECOMP_REGS_LOCALS
   2694     RECOMP_ENTER(0x42003B00u);
   2695 
   2696 L_42003B00:
   2697     eax = ecx; /* 0x42003B00: mov eax, ecx */
   2698     MEM32(eax) = 0x42018298u; /* 0x42003B02: mov dword ptr [eax], 0x42018298 */
   2699     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42003B08: ret 4 */
   2700     RECOMP_REGS_OUT();
   2701 }
   2702 
   2703 void sub_42003B10(void) {
   2704     int _fpu_cmp = 0;
   2705     uint32_t _cf = 0;
   2706     int _df = 1;
   2707     uint32_t _flag_k = FK_NONE;
   2708     uint32_t _flag_a = 0, _flag_b = 0;
   2709     uint32_t _itail_tgt = 0;
   2710     RECOMP_REGS_LOCALS
   2711     RECOMP_ENTER(0x42003B10u);
   2712 
   2713 L_42003B10:
   2714     PUSH32(esp, esi); /* 0x42003B10: push esi */
   2715     esi = ecx; /* 0x42003B11: mov esi, ecx */
   2716     RECOMP_ICALL(0x42006690u); /* 0x42003B13: call 0x42006690 */ /* not lifted */
   2717     RECOMP_FLAGS_IN();
   2718     MEM32(esi) = 0x420182A0u; /* 0x42003B18: mov dword ptr [esi], 0x420182a0 */
   2719     MEM8(esi + 0x14) = (uint8_t)(1); /* 0x42003B1E: mov byte ptr [esi + 0x14], 1 */
   2720     eax = esi; /* 0x42003B22: mov eax, esi */
   2721     esi = POP32_VAL(esp); /* 0x42003B24: pop esi */
   2722     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42003B25: ret  */
   2723     RECOMP_REGS_OUT();
   2724 }
   2725 
   2726 void sub_42003B30(void) {
   2727     int _fpu_cmp = 0;
   2728     uint32_t _cf = 0;
   2729     int _df = 1;
   2730     uint32_t _flag_k = FK_NONE;
   2731     uint32_t _flag_a = 0, _flag_b = 0;
   2732     uint32_t _itail_tgt = 0;
   2733     RECOMP_REGS_LOCALS
   2734     RECOMP_ENTER(0x42003B30u);
   2735 
   2736 L_42003B30:
   2737     MEM32(ecx) = 0x420182A0u; /* 0x42003B30: mov dword ptr [ecx], 0x420182a0 */
   2738     goto L_42006780; /* 0x42003B36: jmp 0x42006780 */
   2739 L_42006780:
   2740     PUSH32(esp, esi); /* 0x42006780: push esi */
   2741     esi = ecx; /* 0x42006781: mov esi, ecx */
   2742     ecx = MEM32(esi + 0x4); /* 0x42006783: mov ecx, dword ptr [esi + 4] */
   2743     /* test ecx, ecx */ /* 0x42006786: test ecx, ecx */
   2744     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2745     _cf = 0;
   2746     _flag_k = FK_TEST;
   2747     MEM32(esi) = 0x4201844Cu; /* 0x42006788: mov dword ptr [esi], 0x4201844c */
   2748     if (TEST_Z(_flag_a, _flag_b)) goto L_42006796; /* 0x4200678E: je 0x42006796 */
   2749 L_42006790:
   2750     eax = MEM32(ecx); /* 0x42006790: mov eax, dword ptr [ecx] */
   2751     PUSH32(esp, 1); /* 0x42006792: push 1 */
   2752     RECOMP_ICALL(MEM32(eax)); /* 0x42006794: call dword ptr [eax] */
   2753     RECOMP_FLAGS_IN();
   2754 L_42006796:
   2755     ecx = MEM32(esi + 0x8); /* 0x42006796: mov ecx, dword ptr [esi + 8] */
   2756     /* test ecx, ecx */ /* 0x42006799: test ecx, ecx */
   2757     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2758     _cf = 0;
   2759     _flag_k = FK_TEST;
   2760     MEM32(esi + 0x4) = 0; /* 0x4200679B: mov dword ptr [esi + 4], 0 */
   2761     if (TEST_Z(_flag_a, _flag_b)) goto L_420067AA; /* 0x420067A2: je 0x420067aa */
   2762 L_420067A4:
   2763     edx = MEM32(ecx); /* 0x420067A4: mov edx, dword ptr [ecx] */
   2764     PUSH32(esp, 1); /* 0x420067A6: push 1 */
   2765     RECOMP_ICALL(MEM32(edx)); /* 0x420067A8: call dword ptr [edx] */
   2766     RECOMP_FLAGS_IN();
   2767 L_420067AA:
   2768     MEM32(esi + 0x8) = 0; /* 0x420067AA: mov dword ptr [esi + 8], 0 */
   2769     esi = POP32_VAL(esp); /* 0x420067B1: pop esi */
   2770     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x420067B2: ret  */
   2771     RECOMP_REGS_OUT();
   2772 }
   2773 
   2774 void sub_42003B40(void) {
   2775     int _fpu_cmp = 0;
   2776     uint32_t _cf = 0;
   2777     int _df = 1;
   2778     uint32_t _flag_k = FK_NONE;
   2779     uint32_t _flag_a = 0, _flag_b = 0;
   2780     uint32_t _itail_tgt = 0;
   2781     RECOMP_REGS_LOCALS
   2782     RECOMP_ENTER(0x42003B40u);
   2783 
   2784 L_42003B40:
   2785     eax = 1; /* 0x42003B40: mov eax, 1 */
   2786     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42003B45: ret  */
   2787     RECOMP_REGS_OUT();
   2788 }
   2789 
   2790 void sub_42003B50(void) {
   2791     int _fpu_cmp = 0;
   2792     uint32_t _cf = 0;
   2793     int _df = 1;
   2794     uint32_t _flag_k = FK_NONE;
   2795     uint32_t _flag_a = 0, _flag_b = 0;
   2796     uint32_t _itail_tgt = 0;
   2797     RECOMP_REGS_LOCALS
   2798     RECOMP_ENTER(0x42003B50u);
   2799 
   2800 L_42003B50:
   2801     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   2802     SET_LO8(eax, 0); /* 0x42003B50: xor al, al */
   2803     _cf = 0;
   2804     _flag_k = FK_NARROW(FK_TEST, 24);
   2805     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42003B52: ret  */
   2806     RECOMP_REGS_OUT();
   2807 }
   2808 
   2809 void sub_42003B60(void) {
   2810     int _fpu_cmp = 0;
   2811     uint32_t _cf = 0;
   2812     int _df = 1;
   2813     uint32_t _flag_k = FK_NONE;
   2814     uint32_t _flag_a = 0, _flag_b = 0;
   2815     uint32_t _itail_tgt = 0;
   2816     RECOMP_REGS_LOCALS
   2817     RECOMP_ENTER(0x42003B60u);
   2818 
   2819 L_42003B60:
   2820     PUSH32(esp, ebp); /* 0x42003B60: push ebp */
   2821     ebp = esp; /* 0x42003B61: mov ebp, esp */
   2822     PUSH32(esp, ebx); /* 0x42003B63: push ebx */
   2823     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x42003B64: mov bl, byte ptr [ebp + 8] */
   2824     /* test LO8(ebx), 2 */ /* 0x42003B67: test bl, 2 */
   2825     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   2826     _cf = 0;
   2827     _flag_k = FK_NARROW(FK_TEST, 24);
   2828     PUSH32(esp, esi); /* 0x42003B6A: push esi */
   2829     esi = ecx; /* 0x42003B6B: mov esi, ecx */
   2830     if (TEST_Z(_flag_a, _flag_b)) goto L_42003B9B; /* 0x42003B6D: je 0x42003b9b */
   2831 L_42003B6F:
   2832     eax = MEM32(esi + (-0x4)); /* 0x42003B6F: mov eax, dword ptr [esi - 4] */
   2833     PUSH32(esp, edi); /* 0x42003B72: push edi */
   2834     PUSH32(esp, 0x42003B30u); /* 0x42003B73: push 0x42003b30 */
   2835     edi = esi + (-0x4); /* 0x42003B78: lea edi, [esi - 4] */
   2836     PUSH32(esp, eax); /* 0x42003B7B: push eax */
   2837     PUSH32(esp, 0x20u); /* 0x42003B7C: push 0x20 */
   2838     PUSH32(esp, esi); /* 0x42003B7E: push esi */
   2839     RECOMP_ICALL(0x42016E3Cu); /* 0x42003B7F: call 0x42016e3c */ /* not lifted */
   2840     RECOMP_FLAGS_IN();
   2841     /* test LO8(ebx), 1 */ /* 0x42003B84: test bl, 1 */
   2842     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   2843     _cf = 0;
   2844     _flag_k = FK_NARROW(FK_TEST, 24);
   2845     if (TEST_Z(_flag_a, _flag_b)) goto L_42003B92; /* 0x42003B87: je 0x42003b92 */
   2846 L_42003B89:
   2847     PUSH32(esp, edi); /* 0x42003B89: push edi */
   2848     RECOMP_ICALL(0x42016DD0u); /* 0x42003B8A: call 0x42016dd0 */ /* not lifted */
   2849     RECOMP_FLAGS_IN();
   2850     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2851     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2852     esp = esp + 4; /* 0x42003B8F: add esp, 4 */
   2853     _flag_k = FK_ADD;
   2854 L_42003B92:
   2855     eax = edi; /* 0x42003B92: mov eax, edi */
   2856     edi = POP32_VAL(esp); /* 0x42003B94: pop edi */
   2857     esi = POP32_VAL(esp); /* 0x42003B95: pop esi */
   2858     ebx = POP32_VAL(esp); /* 0x42003B96: pop ebx */
   2859     ebp = POP32_VAL(esp); /* 0x42003B97: pop ebp */
   2860     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42003B98: ret 4 */
   2861 L_42003B9B:
   2862     ecx = esi; /* 0x42003B9B: mov ecx, esi */
   2863     RECOMP_ICALL(0x42003B30u); /* 0x42003B9D: call 0x42003b30 */ /* not lifted */
   2864     RECOMP_FLAGS_IN();
   2865     /* test LO8(ebx), 1 */ /* 0x42003BA2: test bl, 1 */
   2866     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   2867     _cf = 0;
   2868     _flag_k = FK_NARROW(FK_TEST, 24);
   2869     if (TEST_Z(_flag_a, _flag_b)) goto L_42003BB0; /* 0x42003BA5: je 0x42003bb0 */
   2870 L_42003BA7:
   2871     PUSH32(esp, esi); /* 0x42003BA7: push esi */
   2872     RECOMP_ICALL(0x42016DD0u); /* 0x42003BA8: call 0x42016dd0 */ /* not lifted */
   2873     RECOMP_FLAGS_IN();
   2874     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2875     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2876     esp = esp + 4; /* 0x42003BAD: add esp, 4 */
   2877     _flag_k = FK_ADD;
   2878 L_42003BB0:
   2879     eax = esi; /* 0x42003BB0: mov eax, esi */
   2880     esi = POP32_VAL(esp); /* 0x42003BB2: pop esi */
   2881     ebx = POP32_VAL(esp); /* 0x42003BB3: pop ebx */
   2882     ebp = POP32_VAL(esp); /* 0x42003BB4: pop ebp */
   2883     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42003BB5: ret 4 */
   2884     RECOMP_REGS_OUT();
   2885 }
   2886 
   2887 void sub_42003BC0(void) {
   2888     int _fpu_cmp = 0;
   2889     uint32_t _cf = 0;
   2890     int _df = 1;
   2891     uint32_t _flag_k = FK_NONE;
   2892     uint32_t _flag_a = 0, _flag_b = 0;
   2893     uint32_t _itail_tgt = 0;
   2894     RECOMP_REGS_LOCALS
   2895     RECOMP_ENTER(0x42003BC0u);
   2896 
   2897 L_42003BC0:
   2898     PUSH32(esp, ebp); /* 0x42003BC0: push ebp */
   2899     ebp = esp; /* 0x42003BC1: mov ebp, esp */
   2900     eax = ecx; /* 0x42003BC3: mov eax, ecx */
   2901     ecx = MEM32(ebp + 0x8); /* 0x42003BC5: mov ecx, dword ptr [ebp + 8] */
   2902     MEM32(eax) = ecx; /* 0x42003BC8: mov dword ptr [eax], ecx */
   2903     ebp = POP32_VAL(esp); /* 0x42003BCA: pop ebp */
   2904     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42003BCB: ret 4 */
   2905     RECOMP_REGS_OUT();
   2906 }
   2907 
   2908 void sub_42003BD0(void) {
   2909     int _fpu_cmp = 0;
   2910     uint32_t _cf = 0;
   2911     int _df = 1;
   2912     uint32_t _flag_k = FK_NONE;
   2913     uint32_t _flag_a = 0, _flag_b = 0;
   2914     uint32_t _itail_tgt = 0;
   2915     RECOMP_REGS_LOCALS
   2916     RECOMP_ENTER(0x42003BD0u);
   2917 
   2918 L_42003BD0:
   2919     PUSH32(esp, ebp); /* 0x42003BD0: push ebp */
   2920     ebp = esp; /* 0x42003BD1: mov ebp, esp */
   2921     eax = ecx; /* 0x42003BD3: mov eax, ecx */
   2922     ecx = MEM32(ebp + 0x8); /* 0x42003BD5: mov ecx, dword ptr [ebp + 8] */
   2923     edx = MEM32(ecx); /* 0x42003BD8: mov edx, dword ptr [ecx] */
   2924     MEM32(eax) = edx; /* 0x42003BDA: mov dword ptr [eax], edx */
   2925     ebp = POP32_VAL(esp); /* 0x42003BDC: pop ebp */
   2926     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42003BDD: ret 4 */
   2927     RECOMP_REGS_OUT();
   2928 }
   2929 
   2930 void sub_42003BE0(void) {
   2931     int _fpu_cmp = 0;
   2932     uint32_t _cf = 0;
   2933     int _df = 1;
   2934     uint32_t _flag_k = FK_NONE;
   2935     uint32_t _flag_a = 0, _flag_b = 0;
   2936     uint32_t _itail_tgt = 0;
   2937     RECOMP_REGS_LOCALS
   2938     RECOMP_ENTER(0x42003BE0u);
   2939 
   2940 L_42003BE0:
   2941     PUSH32(esp, ebp); /* 0x42003BE0: push ebp */
   2942     ebp = esp; /* 0x42003BE1: mov ebp, esp */
   2943     PUSH32(esp, 0xFFFFFFFFu); /* 0x42003BE3: push -1 */
   2944     PUSH32(esp, 0x420171B3u); /* 0x42003BE5: push 0x420171b3 */
   2945     eax = MEM32(FS_BASE + (0)); /* 0x42003BEA: mov eax, dword ptr fs:[0] */
   2946     PUSH32(esp, eax); /* 0x42003BF0: push eax */
   2947     MEM32(FS_BASE + (0)) = esp; /* 0x42003BF1: mov dword ptr fs:[0], esp */
   2948     PUSH32(esp, ecx); /* 0x42003BF8: push ecx */
   2949     PUSH32(esp, esi); /* 0x42003BF9: push esi */
   2950     esi = ecx; /* 0x42003BFA: mov esi, ecx */
   2951     MEM32(ebp + (-0x10)) = esi; /* 0x42003BFC: mov dword ptr [ebp - 0x10], esi */
   2952     MEM32(esi) = 0x4201822Cu; /* 0x42003BFF: mov dword ptr [esi], 0x4201822c */
   2953     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x42003C05: mov al, byte ptr [ebp + 0xb] */
   2954     MEM32(esi + 0x4) = 0x42018378u; /* 0x42003C08: mov dword ptr [esi + 4], 0x42018378 */
   2955     PUSH32(esp, 0xCu); /* 0x42003C0F: push 0xc */
   2956     MEM32(ebp + (-0x4)) = 0; /* 0x42003C11: mov dword ptr [ebp - 4], 0 */
   2957     MEM8(esi + 0xC) = (uint8_t)(LO8(eax)); /* 0x42003C18: mov byte ptr [esi + 0xc], al */
   2958     RECOMP_ICALL(0x42016F36u); /* 0x42003C1B: call 0x42016f36 */ /* not lifted */
   2959     RECOMP_FLAGS_IN();
   2960     MEM32(eax) = eax; /* 0x42003C20: mov dword ptr [eax], eax */
   2961     MEM32(eax + 0x4) = eax; /* 0x42003C22: mov dword ptr [eax + 4], eax */
   2962     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2963     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2964     esp = esp + 4; /* 0x42003C25: add esp, 4 */
   2965     _flag_k = FK_ADD;
   2966     MEM32(esi + 0x10) = eax; /* 0x42003C28: mov dword ptr [esi + 0x10], eax */
   2967     MEM32(esi + 0x14) = 0; /* 0x42003C2B: mov dword ptr [esi + 0x14], 0 */
   2968     ecx = MEM32(ebp + 0x8); /* 0x42003C32: mov ecx, dword ptr [ebp + 8] */
   2969     edx = MEM32(ebp + 0xC); /* 0x42003C35: mov edx, dword ptr [ebp + 0xc] */
   2970     eax = MEM32(ebp + 0x10); /* 0x42003C38: mov eax, dword ptr [ebp + 0x10] */
   2971     MEM32(esi + 0x18) = ecx; /* 0x42003C3B: mov dword ptr [esi + 0x18], ecx */
   2972     ecx = esi; /* 0x42003C3E: mov ecx, esi */
   2973     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x42003C40: mov byte ptr [ebp - 4], 1 */
   2974     MEM32(esi + 0x1C) = edx; /* 0x42003C44: mov dword ptr [esi + 0x1c], edx */
   2975     MEM32(esi + 0x20) = eax; /* 0x42003C47: mov dword ptr [esi + 0x20], eax */
   2976     MEM32(esi) = 0x420182ECu; /* 0x42003C4A: mov dword ptr [esi], 0x420182ec */
   2977     MEM32(esi + 0x4) = 0x420182E4u; /* 0x42003C50: mov dword ptr [esi + 4], 0x420182e4 */
   2978     RECOMP_ICALL(0x42004870u); /* 0x42003C57: call 0x42004870 */ /* not lifted */
   2979     RECOMP_FLAGS_IN();
   2980     ecx = MEM32(ebp + (-0xC)); /* 0x42003C5C: mov ecx, dword ptr [ebp - 0xc] */
   2981     eax = esi; /* 0x42003C5F: mov eax, esi */
   2982     esi = POP32_VAL(esp); /* 0x42003C61: pop esi */
   2983     MEM32(FS_BASE + (0)) = ecx; /* 0x42003C62: mov dword ptr fs:[0], ecx */
   2984     esp = ebp; /* 0x42003C69: mov esp, ebp */
   2985     ebp = POP32_VAL(esp); /* 0x42003C6B: pop ebp */
   2986     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x42003C6C: ret 0xc */
   2987     RECOMP_REGS_OUT();
   2988 }
   2989 
   2990 void sub_42003C70(void) {
   2991     int _fpu_cmp = 0;
   2992     uint32_t _cf = 0;
   2993     int _df = 1;
   2994     uint32_t _flag_k = FK_NONE;
   2995     uint32_t _flag_a = 0, _flag_b = 0;
   2996     uint32_t _itail_tgt = 0;
   2997     RECOMP_REGS_LOCALS
   2998     RECOMP_ENTER(0x42003C70u);
   2999 
   3000 L_42003C70:
   3001     PUSH32(esp, ebp); /* 0x42003C70: push ebp */
   3002     ebp = esp; /* 0x42003C71: mov ebp, esp */
   3003     PUSH32(esp, ebx); /* 0x42003C73: push ebx */
   3004     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x42003C74: mov bl, byte ptr [ebp + 8] */
   3005     /* test LO8(ebx), 2 */ /* 0x42003C77: test bl, 2 */
   3006     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   3007     _cf = 0;
   3008     _flag_k = FK_NARROW(FK_TEST, 24);
   3009     PUSH32(esp, esi); /* 0x42003C7A: push esi */
   3010     esi = ecx; /* 0x42003C7B: mov esi, ecx */
   3011     if (TEST_Z(_flag_a, _flag_b)) goto L_42003CAB; /* 0x42003C7D: je 0x42003cab */
   3012 L_42003C7F:
   3013     eax = MEM32(esi + (-0x4)); /* 0x42003C7F: mov eax, dword ptr [esi - 4] */
   3014     PUSH32(esp, edi); /* 0x42003C82: push edi */
   3015     PUSH32(esp, 0x42003DA0u); /* 0x42003C83: push 0x42003da0 */
   3016     edi = esi + (-0x4); /* 0x42003C88: lea edi, [esi - 4] */
   3017     PUSH32(esp, eax); /* 0x42003C8B: push eax */
   3018     PUSH32(esp, 0x24u); /* 0x42003C8C: push 0x24 */
   3019     PUSH32(esp, esi); /* 0x42003C8E: push esi */
   3020     RECOMP_ICALL(0x42016E3Cu); /* 0x42003C8F: call 0x42016e3c */ /* not lifted */
   3021     RECOMP_FLAGS_IN();
   3022     /* test LO8(ebx), 1 */ /* 0x42003C94: test bl, 1 */
   3023     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   3024     _cf = 0;
   3025     _flag_k = FK_NARROW(FK_TEST, 24);
   3026     if (TEST_Z(_flag_a, _flag_b)) goto L_42003CA2; /* 0x42003C97: je 0x42003ca2 */
   3027 L_42003C99:
   3028     PUSH32(esp, edi); /* 0x42003C99: push edi */
   3029     RECOMP_ICALL(0x42016DD0u); /* 0x42003C9A: call 0x42016dd0 */ /* not lifted */
   3030     RECOMP_FLAGS_IN();
   3031     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3032     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3033     esp = esp + 4; /* 0x42003C9F: add esp, 4 */
   3034     _flag_k = FK_ADD;
   3035 L_42003CA2:
   3036     eax = edi; /* 0x42003CA2: mov eax, edi */
   3037     edi = POP32_VAL(esp); /* 0x42003CA4: pop edi */
   3038     esi = POP32_VAL(esp); /* 0x42003CA5: pop esi */
   3039     ebx = POP32_VAL(esp); /* 0x42003CA6: pop ebx */
   3040     ebp = POP32_VAL(esp); /* 0x42003CA7: pop ebp */
   3041     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42003CA8: ret 4 */
   3042 L_42003CAB:
   3043     ecx = esi; /* 0x42003CAB: mov ecx, esi */
   3044     RECOMP_ICALL(0x42003DA0u); /* 0x42003CAD: call 0x42003da0 */ /* not lifted */
   3045     RECOMP_FLAGS_IN();
   3046     /* test LO8(ebx), 1 */ /* 0x42003CB2: test bl, 1 */
   3047     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   3048     _cf = 0;
   3049     _flag_k = FK_NARROW(FK_TEST, 24);
   3050     if (TEST_Z(_flag_a, _flag_b)) goto L_42003CC0; /* 0x42003CB5: je 0x42003cc0 */
   3051 L_42003CB7:
   3052     PUSH32(esp, esi); /* 0x42003CB7: push esi */
   3053     RECOMP_ICALL(0x42016DD0u); /* 0x42003CB8: call 0x42016dd0 */ /* not lifted */
   3054     RECOMP_FLAGS_IN();
   3055     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3056     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3057     esp = esp + 4; /* 0x42003CBD: add esp, 4 */
   3058     _flag_k = FK_ADD;
   3059 L_42003CC0:
   3060     eax = esi; /* 0x42003CC0: mov eax, esi */
   3061     esi = POP32_VAL(esp); /* 0x42003CC2: pop esi */
   3062     ebx = POP32_VAL(esp); /* 0x42003CC3: pop ebx */
   3063     ebp = POP32_VAL(esp); /* 0x42003CC4: pop ebp */
   3064     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42003CC5: ret 4 */
   3065     RECOMP_REGS_OUT();
   3066 }
   3067 
   3068 void sub_42003CD0(void) {
   3069     int _fpu_cmp = 0;
   3070     uint32_t _cf = 0;
   3071     int _df = 1;
   3072     uint32_t _flag_k = FK_NONE;
   3073     uint32_t _flag_a = 0, _flag_b = 0;
   3074     uint32_t _itail_tgt = 0;
   3075     RECOMP_REGS_LOCALS
   3076     RECOMP_ENTER(0x42003CD0u);
   3077 
   3078 L_42003CD0:
   3079     PUSH32(esp, ebp); /* 0x42003CD0: push ebp */
   3080     ebp = esp; /* 0x42003CD1: mov ebp, esp */
   3081     PUSH32(esp, 0xFFFFFFFFu); /* 0x42003CD3: push -1 */
   3082     PUSH32(esp, 0x420171D3u); /* 0x42003CD5: push 0x420171d3 */
   3083     eax = MEM32(FS_BASE + (0)); /* 0x42003CDA: mov eax, dword ptr fs:[0] */
   3084     PUSH32(esp, eax); /* 0x42003CE0: push eax */
   3085     MEM32(FS_BASE + (0)) = esp; /* 0x42003CE1: mov dword ptr fs:[0], esp */
   3086     PUSH32(esp, ecx); /* 0x42003CE8: push ecx */
   3087     PUSH32(esp, ebx); /* 0x42003CE9: push ebx */
   3088     PUSH32(esp, esi); /* 0x42003CEA: push esi */
   3089     esi = ecx; /* 0x42003CEB: mov esi, ecx */
   3090     PUSH32(esp, edi); /* 0x42003CED: push edi */
   3091     MEM32(ebp + (-0x10)) = esi; /* 0x42003CEE: mov dword ptr [ebp - 0x10], esi */
   3092     MEM32(esi) = 0x4201822Cu; /* 0x42003CF1: mov dword ptr [esi], 0x4201822c */
   3093     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x42003CF7: mov al, byte ptr [ebp + 0xb] */
   3094     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3095     edi = 0; /* 0x42003CFA: xor edi, edi */
   3096     _cf = 0;
   3097     _flag_k = FK_TEST;
   3098     MEM32(esi + 0x4) = 0x42018378u; /* 0x42003CFC: mov dword ptr [esi + 4], 0x42018378 */
   3099     PUSH32(esp, 0xCu); /* 0x42003D03: push 0xc */
   3100     MEM32(ebp + (-0x4)) = edi; /* 0x42003D05: mov dword ptr [ebp - 4], edi */
   3101     MEM8(esi + 0xC) = (uint8_t)(LO8(eax)); /* 0x42003D08: mov byte ptr [esi + 0xc], al */
   3102     RECOMP_ICALL(0x42016F36u); /* 0x42003D0B: call 0x42016f36 */ /* not lifted */
   3103     RECOMP_FLAGS_IN();
   3104     MEM32(eax) = eax; /* 0x42003D10: mov dword ptr [eax], eax */
   3105     MEM32(eax + 0x4) = eax; /* 0x42003D12: mov dword ptr [eax + 4], eax */
   3106     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3107     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3108     esp = esp + 4; /* 0x42003D15: add esp, 4 */
   3109     _flag_k = FK_ADD;
   3110     MEM32(esi + 0x10) = eax; /* 0x42003D18: mov dword ptr [esi + 0x10], eax */
   3111     MEM32(esi + 0x14) = edi; /* 0x42003D1B: mov dword ptr [esi + 0x14], edi */
   3112     eax = MEM32(ebp + 0x8); /* 0x42003D1E: mov eax, dword ptr [ebp + 8] */
   3113     ecx = MEM32(eax + 0x18); /* 0x42003D21: mov ecx, dword ptr [eax + 0x18] */
   3114     MEM32(esi + 0x18) = ecx; /* 0x42003D24: mov dword ptr [esi + 0x18], ecx */
   3115     edx = MEM32(eax + 0x1C); /* 0x42003D27: mov edx, dword ptr [eax + 0x1c] */
   3116     MEM32(esi + 0x1C) = edx; /* 0x42003D2A: mov dword ptr [esi + 0x1c], edx */
   3117     eax = MEM32(eax + 0x20); /* 0x42003D2D: mov eax, dword ptr [eax + 0x20] */
   3118     MEM32(esi + 0x20) = eax; /* 0x42003D30: mov dword ptr [esi + 0x20], eax */
   3119     MEM32(esi) = 0x420182ECu; /* 0x42003D33: mov dword ptr [esi], 0x420182ec */
   3120     MEM32(esi + 0x4) = 0x420182E4u; /* 0x42003D39: mov dword ptr [esi + 4], 0x420182e4 */
   3121     ebx = MEM32(esi + 0x10); /* 0x42003D40: mov ebx, dword ptr [esi + 0x10] */
   3122     edi = MEM32(ebx); /* 0x42003D43: mov edi, dword ptr [ebx] */
   3123     /* cmp edi, ebx */ /* 0x42003D45: cmp edi, ebx */
   3124     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3125     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3126     _flag_k = FK_CMP;
   3127     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x42003D47: mov byte ptr [ebp - 4], 1 */
   3128     if (CMP_EQ(_flag_a, _flag_b)) goto L_42003D74; /* 0x42003D4B: je 0x42003d74 */
   3129 L_42003D4D:
   3130     eax = edi; /* 0x42003D4D: mov eax, edi */
   3131     ecx = MEM32(eax + 0x4); /* 0x42003D4F: mov ecx, dword ptr [eax + 4] */
   3132     edx = MEM32(eax); /* 0x42003D52: mov edx, dword ptr [eax] */
   3133     edi = MEM32(edi); /* 0x42003D54: mov edi, dword ptr [edi] */
   3134     MEM32(ecx) = edx; /* 0x42003D56: mov dword ptr [ecx], edx */
   3135     ecx = MEM32(eax); /* 0x42003D58: mov ecx, dword ptr [eax] */
   3136     edx = MEM32(eax + 0x4); /* 0x42003D5A: mov edx, dword ptr [eax + 4] */
   3137     PUSH32(esp, eax); /* 0x42003D5D: push eax */
   3138     MEM32(ecx + 0x4) = edx; /* 0x42003D5E: mov dword ptr [ecx + 4], edx */
   3139     RECOMP_ICALL(0x42016DD0u); /* 0x42003D61: call 0x42016dd0 */ /* not lifted */
   3140     RECOMP_FLAGS_IN();
   3141     ecx = MEM32(esi + 0x14); /* 0x42003D66: mov ecx, dword ptr [esi + 0x14] */
   3142     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3143     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3144     esp = esp + 4; /* 0x42003D69: add esp, 4 */
   3145     _flag_k = FK_ADD;
   3146     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3147     ecx = ecx - 1; /* 0x42003D6C: dec ecx */
   3148     _flag_k = FK_DEC;
   3149     /* cmp edi, ebx */ /* 0x42003D6D: cmp edi, ebx */
   3150     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3151     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3152     _flag_k = FK_CMP;
   3153     MEM32(esi + 0x14) = ecx; /* 0x42003D6F: mov dword ptr [esi + 0x14], ecx */
   3154     RECOMP_BACKEDGE();
   3155     if (CMP_NE(_flag_a, _flag_b)) goto L_42003D4D; /* 0x42003D72: jne 0x42003d4d */
   3156 L_42003D74:
   3157     ecx = esi; /* 0x42003D74: mov ecx, esi */
   3158     RECOMP_ICALL(0x42004870u); /* 0x42003D76: call 0x42004870 */ /* not lifted */
   3159     RECOMP_FLAGS_IN();
   3160     ecx = MEM32(ebp + (-0xC)); /* 0x42003D7B: mov ecx, dword ptr [ebp - 0xc] */
   3161     edi = POP32_VAL(esp); /* 0x42003D7E: pop edi */
   3162     eax = esi; /* 0x42003D7F: mov eax, esi */
   3163     esi = POP32_VAL(esp); /* 0x42003D81: pop esi */
   3164     ebx = POP32_VAL(esp); /* 0x42003D82: pop ebx */
   3165     MEM32(FS_BASE + (0)) = ecx; /* 0x42003D83: mov dword ptr fs:[0], ecx */
   3166     esp = ebp; /* 0x42003D8A: mov esp, ebp */
   3167     ebp = POP32_VAL(esp); /* 0x42003D8C: pop ebp */
   3168     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42003D8D: ret 4 */
   3169     RECOMP_REGS_OUT();
   3170 }
   3171 
   3172 void sub_42003D90(void) {
   3173     int _fpu_cmp = 0;
   3174     uint32_t _cf = 0;
   3175     int _df = 1;
   3176     uint32_t _flag_k = FK_NONE;
   3177     uint32_t _flag_a = 0, _flag_b = 0;
   3178     uint32_t _itail_tgt = 0;
   3179     RECOMP_REGS_LOCALS
   3180     RECOMP_ENTER(0x42003D90u);
   3181 
   3182 L_42003D90:
   3183     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x42003D90: ret 0x10 */
   3184     RECOMP_REGS_OUT();
   3185 }
   3186 
   3187 void sub_42003DA0(void) {
   3188     int _fpu_cmp = 0;
   3189     uint32_t _cf = 0;
   3190     int _df = 1;
   3191     uint32_t _flag_k = FK_NONE;
   3192     uint32_t _flag_a = 0, _flag_b = 0;
   3193     uint32_t _itail_tgt = 0;
   3194     RECOMP_REGS_LOCALS
   3195     RECOMP_ENTER(0x42003DA0u);
   3196 
   3197 L_42003DA0:
   3198     PUSH32(esp, ebp); /* 0x42003DA0: push ebp */
   3199     ebp = esp; /* 0x42003DA1: mov ebp, esp */
   3200     PUSH32(esp, 0xFFFFFFFFu); /* 0x42003DA3: push -1 */
   3201     PUSH32(esp, 0x420171E8u); /* 0x42003DA5: push 0x420171e8 */
   3202     eax = MEM32(FS_BASE + (0)); /* 0x42003DAA: mov eax, dword ptr fs:[0] */
   3203     PUSH32(esp, eax); /* 0x42003DB0: push eax */
   3204     MEM32(FS_BASE + (0)) = esp; /* 0x42003DB1: mov dword ptr fs:[0], esp */
   3205     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3206     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3207     esp = esp - 8; /* 0x42003DB8: sub esp, 8 */
   3208     _flag_k = FK_CMP;
   3209     PUSH32(esp, ebx); /* 0x42003DBB: push ebx */
   3210     PUSH32(esp, esi); /* 0x42003DBC: push esi */
   3211     PUSH32(esp, edi); /* 0x42003DBD: push edi */
   3212     MEM32(ebp + (-0x10)) = ecx; /* 0x42003DBE: mov dword ptr [ebp - 0x10], ecx */
   3213     MEM32(ecx) = 0x420182ECu; /* 0x42003DC1: mov dword ptr [ecx], 0x420182ec */
   3214     MEM32(ecx + 0x4) = 0x420182E4u; /* 0x42003DC7: mov dword ptr [ecx + 4], 0x420182e4 */
   3215     ebx = MEM32(ecx + 0x10); /* 0x42003DCE: mov ebx, dword ptr [ecx + 0x10] */
   3216     esi = MEM32(ebx); /* 0x42003DD1: mov esi, dword ptr [ebx] */
   3217     /* cmp esi, ebx */ /* 0x42003DD3: cmp esi, ebx */
   3218     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   3219     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3220     _flag_k = FK_CMP;
   3221     edi = ecx + 0xC; /* 0x42003DD5: lea edi, [ecx + 0xc] */
   3222     MEM32(ebp + (-0x4)) = 0; /* 0x42003DD8: mov dword ptr [ebp - 4], 0 */
   3223     if (CMP_EQ(_flag_a, _flag_b)) goto L_42003DF5; /* 0x42003DDF: je 0x42003df5 */
   3224 L_42003DE1:
   3225     eax = esi; /* 0x42003DE1: mov eax, esi */
   3226     esi = MEM32(esi); /* 0x42003DE3: mov esi, dword ptr [esi] */
   3227     PUSH32(esp, eax); /* 0x42003DE5: push eax */
   3228     eax = ebp + (-0x14); /* 0x42003DE6: lea eax, [ebp - 0x14] */
   3229     PUSH32(esp, eax); /* 0x42003DE9: push eax */
   3230     ecx = edi; /* 0x42003DEA: mov ecx, edi */
   3231     RECOMP_ICALL(0x42005C70u); /* 0x42003DEC: call 0x42005c70 */ /* not lifted */
   3232     RECOMP_FLAGS_IN();
   3233     /* cmp esi, ebx */ /* 0x42003DF1: cmp esi, ebx */
   3234     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   3235     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3236     _flag_k = FK_CMP;
   3237     RECOMP_BACKEDGE();
   3238     if (CMP_NE(_flag_a, _flag_b)) goto L_42003DE1; /* 0x42003DF3: jne 0x42003de1 */
   3239 L_42003DF5:
   3240     ecx = MEM32(edi + 0x4); /* 0x42003DF5: mov ecx, dword ptr [edi + 4] */
   3241     PUSH32(esp, ecx); /* 0x42003DF8: push ecx */
   3242     RECOMP_ICALL(0x42016DD0u); /* 0x42003DF9: call 0x42016dd0 */ /* not lifted */
   3243     RECOMP_FLAGS_IN();
   3244     edx = MEM32(ebp + (-0x10)); /* 0x42003DFE: mov edx, dword ptr [ebp - 0x10] */
   3245     ecx = MEM32(ebp + (-0xC)); /* 0x42003E01: mov ecx, dword ptr [ebp - 0xc] */
   3246     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3247     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3248     esp = esp + 4; /* 0x42003E04: add esp, 4 */
   3249     _flag_k = FK_ADD;
   3250     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3251     eax = 0; /* 0x42003E07: xor eax, eax */
   3252     _cf = 0;
   3253     _flag_k = FK_TEST;
   3254     MEM32(edi + 0x4) = eax; /* 0x42003E09: mov dword ptr [edi + 4], eax */
   3255     MEM32(edi + 0x8) = eax; /* 0x42003E0C: mov dword ptr [edi + 8], eax */
   3256     edi = POP32_VAL(esp); /* 0x42003E0F: pop edi */
   3257     esi = POP32_VAL(esp); /* 0x42003E10: pop esi */
   3258     MEM32(edx) = 0x4201822Cu; /* 0x42003E11: mov dword ptr [edx], 0x4201822c */
   3259     ebx = POP32_VAL(esp); /* 0x42003E17: pop ebx */
   3260     MEM32(FS_BASE + (0)) = ecx; /* 0x42003E18: mov dword ptr fs:[0], ecx */
   3261     esp = ebp; /* 0x42003E1F: mov esp, ebp */
   3262     ebp = POP32_VAL(esp); /* 0x42003E21: pop ebp */
   3263     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42003E22: ret  */
   3264     RECOMP_REGS_OUT();
   3265 }
   3266 
   3267 void sub_42003E30(void) {
   3268     int _fpu_cmp = 0;
   3269     uint32_t _cf = 0;
   3270     int _df = 1;
   3271     uint32_t _flag_k = FK_NONE;
   3272     uint32_t _flag_a = 0, _flag_b = 0;
   3273     uint32_t _itail_tgt = 0;
   3274     RECOMP_REGS_LOCALS
   3275     RECOMP_ENTER(0x42003E30u);
   3276 
   3277 L_42003E30:
   3278     PUSH32(esp, ebp); /* 0x42003E30: push ebp */
   3279     ebp = esp; /* 0x42003E31: mov ebp, esp */
   3280     PUSH32(esp, esi); /* 0x42003E33: push esi */
   3281     PUSH32(esp, edi); /* 0x42003E34: push edi */
   3282     edi = MEM32(ebp + 0x8); /* 0x42003E35: mov edi, dword ptr [ebp + 8] */
   3283     esi = ecx; /* 0x42003E38: mov esi, ecx */
   3284     PUSH32(esp, esi); /* 0x42003E3A: push esi */
   3285     ecx = edi; /* 0x42003E3B: mov ecx, edi */
   3286     RECOMP_ICALL(0x420067C0u); /* 0x42003E3D: call 0x420067c0 */ /* not lifted */
   3287     RECOMP_FLAGS_IN();
   3288     /* test esi, esi */ /* 0x42003E42: test esi, esi */
   3289     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   3290     _cf = 0;
   3291     _flag_k = FK_TEST;
   3292     if (TEST_Z(_flag_a, _flag_b)) goto L_42003E57; /* 0x42003E44: je 0x42003e57 */
   3293 L_42003E46:
   3294     eax = esi + 0x4; /* 0x42003E46: lea eax, [esi + 4] */
   3295     PUSH32(esp, eax); /* 0x42003E49: push eax */
   3296     ecx = edi; /* 0x42003E4A: mov ecx, edi */
   3297     RECOMP_ICALL(0x42006A30u); /* 0x42003E4C: call 0x42006a30 */ /* not lifted */
   3298     RECOMP_FLAGS_IN();
   3299     edi = POP32_VAL(esp); /* 0x42003E51: pop edi */
   3300     esi = POP32_VAL(esp); /* 0x42003E52: pop esi */
   3301     ebp = POP32_VAL(esp); /* 0x42003E53: pop ebp */
   3302     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42003E54: ret 4 */
   3303 L_42003E57:
   3304     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3305     eax = 0; /* 0x42003E57: xor eax, eax */
   3306     _cf = 0;
   3307     _flag_k = FK_TEST;
   3308     PUSH32(esp, eax); /* 0x42003E59: push eax */
   3309     ecx = edi; /* 0x42003E5A: mov ecx, edi */
   3310     RECOMP_ICALL(0x42006A30u); /* 0x42003E5C: call 0x42006a30 */ /* not lifted */
   3311     RECOMP_FLAGS_IN();
   3312     edi = POP32_VAL(esp); /* 0x42003E61: pop edi */
   3313     esi = POP32_VAL(esp); /* 0x42003E62: pop esi */
   3314     ebp = POP32_VAL(esp); /* 0x42003E63: pop ebp */
   3315     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42003E64: ret 4 */
   3316     RECOMP_REGS_OUT();
   3317 }
   3318 
   3319 void sub_42003E70(void) {
   3320     int _fpu_cmp = 0;
   3321     uint32_t _cf = 0;
   3322     int _df = 1;
   3323     uint32_t _flag_k = FK_NONE;
   3324     uint32_t _flag_a = 0, _flag_b = 0;
   3325     uint32_t _itail_tgt = 0;
   3326     RECOMP_REGS_LOCALS
   3327     RECOMP_ENTER(0x42003E70u);
   3328 
   3329 L_42003E70:
   3330     PUSH32(esp, ebp); /* 0x42003E70: push ebp */
   3331     ebp = esp; /* 0x42003E71: mov ebp, esp */
   3332     PUSH32(esp, ebx); /* 0x42003E73: push ebx */
   3333     PUSH32(esp, esi); /* 0x42003E74: push esi */
   3334     PUSH32(esp, edi); /* 0x42003E75: push edi */
   3335     edi = MEM32(ebp + 0x8); /* 0x42003E76: mov edi, dword ptr [ebp + 8] */
   3336     esi = ecx; /* 0x42003E79: mov esi, ecx */
   3337     PUSH32(esp, edi); /* 0x42003E7B: push edi */
   3338     RECOMP_ICALL(0x420049F0u); /* 0x42003E7C: call 0x420049f0 */ /* not lifted */
   3339     RECOMP_FLAGS_IN();
   3340     eax = MEM32(edi); /* 0x42003E81: mov eax, dword ptr [edi] */
   3341     ecx = edi; /* 0x42003E83: mov ecx, edi */
   3342     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x42003E85: call dword ptr [eax + 4] */
   3343     RECOMP_FLAGS_IN();
   3344     ebx = eax; /* 0x42003E88: mov ebx, eax */
   3345     /* test ebx, ebx */ /* 0x42003E8A: test ebx, ebx */
   3346     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   3347     _cf = 0;
   3348     _flag_k = FK_TEST;
   3349     if (TEST_S(_flag_a, _flag_b)) goto L_42003EB0; /* 0x42003E8C: jl 0x42003eb0 */
   3350 L_42003E8E:
   3351     edx = MEM32(esi); /* 0x42003E8E: mov edx, dword ptr [esi] */
   3352     PUSH32(esp, 0xFFFFFFFFu); /* 0x42003E90: push -1 */
   3353     PUSH32(esp, ebx); /* 0x42003E92: push ebx */
   3354     PUSH32(esp, edi); /* 0x42003E93: push edi */
   3355     ecx = esi; /* 0x42003E94: mov ecx, esi */
   3356     RECOMP_ICALL(MEM32(edx + 0x28)); /* 0x42003E96: call dword ptr [edx + 0x28] */
   3357     RECOMP_FLAGS_IN();
   3358     eax = MEM32(esi); /* 0x42003E99: mov eax, dword ptr [esi] */
   3359     PUSH32(esp, edi); /* 0x42003E9B: push edi */
   3360     PUSH32(esp, ebx); /* 0x42003E9C: push ebx */
   3361     ecx = esi; /* 0x42003E9D: mov ecx, esi */
   3362     RECOMP_ICALL(MEM32(eax + 0x68)); /* 0x42003E9F: call dword ptr [eax + 0x68] */
   3363     RECOMP_FLAGS_IN();
   3364     /* test LO8(eax), LO8(eax) */ /* 0x42003EA2: test al, al */
   3365     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3366     _cf = 0;
   3367     _flag_k = FK_NARROW(FK_TEST, 24);
   3368     if (TEST_Z(_flag_a, _flag_b)) goto L_42003EB0; /* 0x42003EA4: je 0x42003eb0 */
   3369 L_42003EA6:
   3370     edx = MEM32(edi); /* 0x42003EA6: mov edx, dword ptr [edi] */
   3371     PUSH32(esp, 0xFFFFFFFFu); /* 0x42003EA8: push -1 */
   3372     PUSH32(esp, 0xFFFFFFFFu); /* 0x42003EAA: push -1 */
   3373     ecx = edi; /* 0x42003EAC: mov ecx, edi */
   3374     RECOMP_ICALL(MEM32(edx)); /* 0x42003EAE: call dword ptr [edx] */
   3375     RECOMP_FLAGS_IN();
   3376 L_42003EB0:
   3377     PUSH32(esp, esi); /* 0x42003EB0: push esi */
   3378     ecx = edi; /* 0x42003EB1: mov ecx, edi */
   3379     RECOMP_ICALL(0x42006980u); /* 0x42003EB3: call 0x42006980 */ /* not lifted */
   3380     RECOMP_FLAGS_IN();
   3381     /* test esi, esi */ /* 0x42003EB8: test esi, esi */
   3382     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   3383     _cf = 0;
   3384     _flag_k = FK_TEST;
   3385     if (TEST_Z(_flag_a, _flag_b)) goto L_42003ECE; /* 0x42003EBA: je 0x42003ece */
   3386 L_42003EBC:
   3387     eax = esi + 0x4; /* 0x42003EBC: lea eax, [esi + 4] */
   3388     PUSH32(esp, eax); /* 0x42003EBF: push eax */
   3389     ecx = edi; /* 0x42003EC0: mov ecx, edi */
   3390     RECOMP_ICALL(0x42006BF0u); /* 0x42003EC2: call 0x42006bf0 */ /* not lifted */
   3391     RECOMP_FLAGS_IN();
   3392     edi = POP32_VAL(esp); /* 0x42003EC7: pop edi */
   3393     esi = POP32_VAL(esp); /* 0x42003EC8: pop esi */
   3394     ebx = POP32_VAL(esp); /* 0x42003EC9: pop ebx */
   3395     ebp = POP32_VAL(esp); /* 0x42003ECA: pop ebp */
   3396     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42003ECB: ret 4 */
   3397 L_42003ECE:
   3398     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3399     eax = 0; /* 0x42003ECE: xor eax, eax */
   3400     _cf = 0;
   3401     _flag_k = FK_TEST;
   3402     PUSH32(esp, eax); /* 0x42003ED0: push eax */
   3403     ecx = edi; /* 0x42003ED1: mov ecx, edi */
   3404     RECOMP_ICALL(0x42006BF0u); /* 0x42003ED3: call 0x42006bf0 */ /* not lifted */
   3405     RECOMP_FLAGS_IN();
   3406     edi = POP32_VAL(esp); /* 0x42003ED8: pop edi */
   3407     esi = POP32_VAL(esp); /* 0x42003ED9: pop esi */
   3408     ebx = POP32_VAL(esp); /* 0x42003EDA: pop ebx */
   3409     ebp = POP32_VAL(esp); /* 0x42003EDB: pop ebp */
   3410     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42003EDC: ret 4 */
   3411     RECOMP_REGS_OUT();
   3412 }
   3413 
   3414 void sub_42003EE0(void) {
   3415     int _fpu_cmp = 0;
   3416     uint32_t _cf = 0;
   3417     int _df = 1;
   3418     uint32_t _flag_k = FK_NONE;
   3419     uint32_t _flag_a = 0, _flag_b = 0;
   3420     uint32_t _itail_tgt = 0;
   3421     RECOMP_REGS_LOCALS
   3422     RECOMP_ENTER(0x42003EE0u);
   3423 
   3424 L_42003EE0:
   3425     PUSH32(esp, ebp); /* 0x42003EE0: push ebp */
   3426     ebp = esp; /* 0x42003EE1: mov ebp, esp */
   3427     PUSH32(esp, esi); /* 0x42003EE3: push esi */
   3428     esi = ecx; /* 0x42003EE4: mov esi, ecx */
   3429     /* test esi, esi */ /* 0x42003EE6: test esi, esi */
   3430     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   3431     _cf = 0;
   3432     _flag_k = FK_TEST;
   3433     PUSH32(esp, edi); /* 0x42003EE8: push edi */
   3434     if (TEST_Z(_flag_a, _flag_b)) goto L_42003EF0; /* 0x42003EE9: je 0x42003ef0 */
   3435 L_42003EEB:
   3436     eax = esi + 0x4; /* 0x42003EEB: lea eax, [esi + 4] */
   3437     goto L_42003EF2; /* 0x42003EEE: jmp 0x42003ef2 */
   3438 L_42003EF0:
   3439     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3440     eax = 0; /* 0x42003EF0: xor eax, eax */
   3441     _cf = 0;
   3442     _flag_k = FK_TEST;
   3443 L_42003EF2:
   3444     edi = MEM32(ebp + 0x8); /* 0x42003EF2: mov edi, dword ptr [ebp + 8] */
   3445     PUSH32(esp, eax); /* 0x42003EF5: push eax */
   3446     ecx = edi; /* 0x42003EF6: mov ecx, edi */
   3447     RECOMP_ICALL(0x42006C70u); /* 0x42003EF8: call 0x42006c70 */ /* not lifted */
   3448     RECOMP_FLAGS_IN();
   3449     /* test LO8(eax), LO8(eax) */ /* 0x42003EFD: test al, al */
   3450     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3451     _cf = 0;
   3452     _flag_k = FK_NARROW(FK_TEST, 24);
   3453     if (TEST_Z(_flag_a, _flag_b)) goto L_42003F18; /* 0x42003EFF: je 0x42003f18 */
   3454 L_42003F01:
   3455     PUSH32(esp, esi); /* 0x42003F01: push esi */
   3456     ecx = edi; /* 0x42003F02: mov ecx, edi */
   3457     RECOMP_ICALL(0x42006A00u); /* 0x42003F04: call 0x42006a00 */ /* not lifted */
   3458     RECOMP_FLAGS_IN();
   3459     /* test LO8(eax), LO8(eax) */ /* 0x42003F09: test al, al */
   3460     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3461     _cf = 0;
   3462     _flag_k = FK_NARROW(FK_TEST, 24);
   3463     if (TEST_Z(_flag_a, _flag_b)) goto L_42003F18; /* 0x42003F0B: je 0x42003f18 */
   3464 L_42003F0D:
   3465     edi = POP32_VAL(esp); /* 0x42003F0D: pop edi */
   3466     eax = 1; /* 0x42003F0E: mov eax, 1 */
   3467     esi = POP32_VAL(esp); /* 0x42003F13: pop esi */
   3468     ebp = POP32_VAL(esp); /* 0x42003F14: pop ebp */
   3469     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42003F15: ret 4 */
   3470 L_42003F18:
   3471     edi = POP32_VAL(esp); /* 0x42003F18: pop edi */
   3472     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3473     eax = 0; /* 0x42003F19: xor eax, eax */
   3474     _cf = 0;
   3475     _flag_k = FK_TEST;
   3476     esi = POP32_VAL(esp); /* 0x42003F1B: pop esi */
   3477     ebp = POP32_VAL(esp); /* 0x42003F1C: pop ebp */
   3478     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42003F1D: ret 4 */
   3479     RECOMP_REGS_OUT();
   3480 }
   3481 
   3482 void sub_42003F20(void) {
   3483     int _fpu_cmp = 0;
   3484     uint32_t _cf = 0;
   3485     int _df = 1;
   3486     uint32_t _flag_k = FK_NONE;
   3487     uint32_t _flag_a = 0, _flag_b = 0;
   3488     uint32_t _itail_tgt = 0;
   3489     RECOMP_REGS_LOCALS
   3490     RECOMP_ENTER(0x42003F20u);
   3491 
   3492 L_42003F20:
   3493     PUSH32(esp, ebp); /* 0x42003F20: push ebp */
   3494     ebp = esp; /* 0x42003F21: mov ebp, esp */
   3495     PUSH32(esp, ecx); /* 0x42003F23: push ecx */
   3496     ecx = MEM32(ebp + 0x8); /* 0x42003F24: mov ecx, dword ptr [ebp + 8] */
   3497     RECOMP_ICALL(0x420067C0u); /* 0x42003F27: call 0x420067c0 */ /* not lifted */
   3498     RECOMP_FLAGS_IN();
   3499     ebp = POP32_VAL(esp); /* 0x42003F2C: pop ebp */
   3500     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42003F2D: ret 4 */
   3501     RECOMP_REGS_OUT();
   3502 }
   3503 
   3504 void sub_42003F30(void) {
   3505     int _fpu_cmp = 0;
   3506     uint32_t _cf = 0;
   3507     int _df = 1;
   3508     uint32_t _flag_k = FK_NONE;
   3509     uint32_t _flag_a = 0, _flag_b = 0;
   3510     uint32_t _itail_tgt = 0;
   3511     RECOMP_REGS_LOCALS
   3512     RECOMP_ENTER(0x42003F30u);
   3513 
   3514 L_42003F30:
   3515     PUSH32(esp, ebp); /* 0x42003F30: push ebp */
   3516     ebp = esp; /* 0x42003F31: mov ebp, esp */
   3517     PUSH32(esp, esi); /* 0x42003F33: push esi */
   3518     esi = MEM32(ebp + 0x8); /* 0x42003F34: mov esi, dword ptr [ebp + 8] */
   3519     eax = MEM32(esi); /* 0x42003F37: mov eax, dword ptr [esi] */
   3520     PUSH32(esp, edi); /* 0x42003F39: push edi */
   3521     edi = ecx; /* 0x42003F3A: mov edi, ecx */
   3522     ecx = esi; /* 0x42003F3C: mov ecx, esi */
   3523     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x42003F3E: call dword ptr [eax + 4] */
   3524     RECOMP_FLAGS_IN();
   3525     /* test eax, eax */ /* 0x42003F41: test eax, eax */
   3526     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3527     _cf = 0;
   3528     _flag_k = FK_TEST;
   3529     if (TEST_S(_flag_a, _flag_b)) goto L_42003F58; /* 0x42003F43: jl 0x42003f58 */
   3530 L_42003F45:
   3531     edx = MEM32(edi); /* 0x42003F45: mov edx, dword ptr [edi] */
   3532     PUSH32(esp, esi); /* 0x42003F47: push esi */
   3533     PUSH32(esp, eax); /* 0x42003F48: push eax */
   3534     ecx = edi; /* 0x42003F49: mov ecx, edi */
   3535     RECOMP_ICALL(MEM32(edx + 0x6C)); /* 0x42003F4B: call dword ptr [edx + 0x6c] */
   3536     RECOMP_FLAGS_IN();
   3537     eax = MEM32(esi); /* 0x42003F4E: mov eax, dword ptr [esi] */
   3538     PUSH32(esp, 0xFFFFFFFFu); /* 0x42003F50: push -1 */
   3539     PUSH32(esp, 0xFFFFFFFFu); /* 0x42003F52: push -1 */
   3540     ecx = esi; /* 0x42003F54: mov ecx, esi */
   3541     RECOMP_ICALL(MEM32(eax)); /* 0x42003F56: call dword ptr [eax] */
   3542     RECOMP_FLAGS_IN();
   3543 L_42003F58:
   3544     PUSH32(esp, edi); /* 0x42003F58: push edi */
   3545     ecx = esi; /* 0x42003F59: mov ecx, esi */
   3546     RECOMP_ICALL(0x42006980u); /* 0x42003F5B: call 0x42006980 */ /* not lifted */
   3547     RECOMP_FLAGS_IN();
   3548     edi = POP32_VAL(esp); /* 0x42003F60: pop edi */
   3549     esi = POP32_VAL(esp); /* 0x42003F61: pop esi */
   3550     ebp = POP32_VAL(esp); /* 0x42003F62: pop ebp */
   3551     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42003F63: ret 4 */
   3552     RECOMP_REGS_OUT();
   3553 }
   3554 
   3555 void sub_42003F70(void) {
   3556     int _fpu_cmp = 0;
   3557     uint32_t _cf = 0;
   3558     int _df = 1;
   3559     uint32_t _flag_k = FK_NONE;
   3560     uint32_t _flag_a = 0, _flag_b = 0;
   3561     uint32_t _itail_tgt = 0;
   3562     RECOMP_REGS_LOCALS
   3563     RECOMP_ENTER(0x42003F70u);
   3564 
   3565 L_42003F70:
   3566     PUSH32(esp, ebp); /* 0x42003F70: push ebp */
   3567     ebp = esp; /* 0x42003F71: mov ebp, esp */
   3568     edx = MEM32(ebp + 0x8); /* 0x42003F73: mov edx, dword ptr [ebp + 8] */
   3569     eax = MEM32(ecx); /* 0x42003F76: mov eax, dword ptr [ecx] */
   3570     PUSH32(esp, edx); /* 0x42003F78: push edx */
   3571     RECOMP_ICALL(MEM32(eax + 0x7C)); /* 0x42003F79: call dword ptr [eax + 0x7c] */
   3572     RECOMP_FLAGS_IN();
   3573     ecx = MEM32(eax + 0x14); /* 0x42003F7C: mov ecx, dword ptr [eax + 0x14] */
   3574     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   3575     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3576     eax = eax + 0x10u; /* 0x42003F7F: add eax, 0x10 */
   3577     _flag_k = FK_ADD;
   3578     /* test ecx, ecx */ /* 0x42003F82: test ecx, ecx */
   3579     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3580     _cf = 0;
   3581     _flag_k = FK_TEST;
   3582     if (TEST_NZ(_flag_a, _flag_b)) goto L_42003F8C; /* 0x42003F84: jne 0x42003f8c */
   3583 L_42003F86:
   3584     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3585     eax = 0; /* 0x42003F86: xor eax, eax */
   3586     _cf = 0;
   3587     _flag_k = FK_TEST;
   3588     ebp = POP32_VAL(esp); /* 0x42003F88: pop ebp */
   3589     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42003F89: ret 4 */
   3590 L_42003F8C:
   3591     eax = MEM32(eax + 0x8); /* 0x42003F8C: mov eax, dword ptr [eax + 8] */
   3592     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3593     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3594     eax = eax - ecx; /* 0x42003F8F: sub eax, ecx */
   3595     _flag_k = FK_CMP;
   3596     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x42003F91: sar eax, 2 */
   3597     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3598     eax = (uint32_t)((int32_t)eax >> 2u);
   3599     ebp = POP32_VAL(esp); /* 0x42003F94: pop ebp */
   3600     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42003F95: ret 4 */
   3601     RECOMP_REGS_OUT();
   3602 }
   3603 
   3604 void sub_42003FA0(void) {
   3605     int _fpu_cmp = 0;
   3606     uint32_t _cf = 0;
   3607     int _df = 1;
   3608     uint32_t _flag_k = FK_NONE;
   3609     uint32_t _flag_a = 0, _flag_b = 0;
   3610     uint32_t _itail_tgt = 0;
   3611     RECOMP_REGS_LOCALS
   3612     RECOMP_ENTER(0x42003FA0u);
   3613 
   3614 L_42003FA0:
   3615     PUSH32(esp, ebp); /* 0x42003FA0: push ebp */
   3616     ebp = esp; /* 0x42003FA1: mov ebp, esp */
   3617     PUSH32(esp, esi); /* 0x42003FA3: push esi */
   3618     esi = ecx; /* 0x42003FA4: mov esi, ecx */
   3619     ecx = MEM32(ebp + 0x8); /* 0x42003FA6: mov ecx, dword ptr [ebp + 8] */
   3620     eax = MEM32(esi); /* 0x42003FA9: mov eax, dword ptr [esi] */
   3621     PUSH32(esp, ecx); /* 0x42003FAB: push ecx */
   3622     PUSH32(esp, 0xFFFFFFFFu); /* 0x42003FAC: push -1 */
   3623     ecx = esi; /* 0x42003FAE: mov ecx, esi */
   3624     RECOMP_ICALL(MEM32(eax + 0x70)); /* 0x42003FB0: call dword ptr [eax + 0x70] */
   3625     RECOMP_FLAGS_IN();
   3626     PUSH32(esp, eax); /* 0x42003FB3: push eax */
   3627     ecx = esi; /* 0x42003FB4: mov ecx, esi */
   3628     RECOMP_ICALL(0x42003FC0u); /* 0x42003FB6: call 0x42003fc0 */ /* not lifted */
   3629     RECOMP_FLAGS_IN();
   3630     esi = POP32_VAL(esp); /* 0x42003FBB: pop esi */
   3631     ebp = POP32_VAL(esp); /* 0x42003FBC: pop ebp */
   3632     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42003FBD: ret 4 */
   3633     RECOMP_REGS_OUT();
   3634 }
   3635 
   3636 void sub_42003FC0(void) {
   3637     int _fpu_cmp = 0;
   3638     uint32_t _cf = 0;
   3639     int _df = 1;
   3640     uint32_t _flag_k = FK_NONE;
   3641     uint32_t _flag_a = 0, _flag_b = 0;
   3642     uint32_t _itail_tgt = 0;
   3643     RECOMP_REGS_LOCALS
   3644     RECOMP_ENTER(0x42003FC0u);
   3645 
   3646 L_42003FC0:
   3647     PUSH32(esp, ebp); /* 0x42003FC0: push ebp */
   3648     ebp = esp; /* 0x42003FC1: mov ebp, esp */
   3649     PUSH32(esp, ebx); /* 0x42003FC3: push ebx */
   3650     PUSH32(esp, esi); /* 0x42003FC4: push esi */
   3651     PUSH32(esp, edi); /* 0x42003FC5: push edi */
   3652     edi = ecx; /* 0x42003FC6: mov edi, ecx */
   3653     ecx = MEM32(ebp + 0x8); /* 0x42003FC8: mov ecx, dword ptr [ebp + 8] */
   3654     eax = MEM32(edi); /* 0x42003FCB: mov eax, dword ptr [edi] */
   3655     PUSH32(esp, 1); /* 0x42003FCD: push 1 */
   3656     PUSH32(esp, 0x4202261Cu); /* 0x42003FCF: push 0x4202261c */
   3657     PUSH32(esp, ecx); /* 0x42003FD4: push ecx */
   3658     ecx = edi; /* 0x42003FD5: mov ecx, edi */
   3659     RECOMP_ICALL(MEM32(eax + 0x84)); /* 0x42003FD7: call dword ptr [eax + 0x84] */
   3660     RECOMP_FLAGS_IN();
   3661     esi = 0x4202261Cu; /* 0x42003FDD: mov esi, 0x4202261c */
   3662     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3663     ebx = 0; /* 0x42003FE2: xor ebx, ebx */
   3664     _cf = 0;
   3665     _flag_k = FK_TEST;
   3666     /* cmp eax, esi */ /* 0x42003FE4: cmp eax, esi */
   3667     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   3668     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3669     _flag_k = FK_CMP;
   3670     MEM32(ebp + 0x8) = eax; /* 0x42003FE6: mov dword ptr [ebp + 8], eax */
   3671     if (CMP_EQ(_flag_a, _flag_b)) goto L_42004004; /* 0x42003FE9: je 0x42004004 */
   3672 L_42003FEB:
   3673     eax = MEM32(esi); /* 0x42003FEB: mov eax, dword ptr [esi] */
   3674     edx = MEM32(edi); /* 0x42003FED: mov edx, dword ptr [edi] */
   3675     PUSH32(esp, eax); /* 0x42003FEF: push eax */
   3676     ecx = edi; /* 0x42003FF0: mov ecx, edi */
   3677     RECOMP_ICALL(MEM32(edx + 0x7C)); /* 0x42003FF2: call dword ptr [edx + 0x7c] */
   3678     RECOMP_FLAGS_IN();
   3679     edx = MEM32(eax + 0x24); /* 0x42003FF5: mov edx, dword ptr [eax + 0x24] */
   3680     eax = MEM32(ebp + 0x8); /* 0x42003FF8: mov eax, dword ptr [ebp + 8] */
   3681     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   3682     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3683     esi = esi + 4; /* 0x42003FFB: add esi, 4 */
   3684     _flag_k = FK_ADD;
   3685     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
   3686     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3687     ebx = ebx + edx; /* 0x42003FFE: add ebx, edx */
   3688     _flag_k = FK_ADD;
   3689     /* cmp esi, eax */ /* 0x42004000: cmp esi, eax */
   3690     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   3691     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3692     _flag_k = FK_CMP;
   3693     RECOMP_BACKEDGE();
   3694     if (CMP_NE(_flag_a, _flag_b)) goto L_42003FEB; /* 0x42004002: jne 0x42003feb */
   3695 L_42004004:
   3696     edi = POP32_VAL(esp); /* 0x42004004: pop edi */
   3697     esi = POP32_VAL(esp); /* 0x42004005: pop esi */
   3698     eax = ebx; /* 0x42004006: mov eax, ebx */
   3699     ebx = POP32_VAL(esp); /* 0x42004008: pop ebx */
   3700     ebp = POP32_VAL(esp); /* 0x42004009: pop ebp */
   3701     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4200400A: ret 4 */
   3702     RECOMP_REGS_OUT();
   3703 }
   3704 
   3705 void sub_42004010(void) {
   3706     int _fpu_cmp = 0;
   3707     uint32_t _cf = 0;
   3708     int _df = 1;
   3709     uint32_t _flag_k = FK_NONE;
   3710     uint32_t _flag_a = 0, _flag_b = 0;
   3711     uint32_t _itail_tgt = 0;
   3712     RECOMP_REGS_LOCALS
   3713     RECOMP_ENTER(0x42004010u);
   3714 
   3715 L_42004010:
   3716     PUSH32(esp, ebp); /* 0x42004010: push ebp */
   3717     ebp = esp; /* 0x42004011: mov ebp, esp */
   3718     SET_LO8(eax, MEM8(0x42022EBC)); /* 0x42004013: mov al, byte ptr [0x42022ebc] */
   3719     PUSH32(esp, ebx); /* 0x42004018: push ebx */
   3720     PUSH32(esp, esi); /* 0x42004019: push esi */
   3721     ebx = 1; /* 0x4200401A: mov ebx, 1 */
   3722     /* test LO8(ebx), LO8(eax) */ /* 0x4200401F: test bl, al */
   3723     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3724     _cf = 0;
   3725     _flag_k = FK_NARROW(FK_TEST, 24);
   3726     PUSH32(esp, edi); /* 0x42004021: push edi */
   3727     esi = ecx; /* 0x42004022: mov esi, ecx */
   3728     if (TEST_NZ(_flag_a, _flag_b)) goto L_4200404B; /* 0x42004024: jne 0x4200404b */
   3729 L_42004026:
   3730     _flag_a = (uint32_t)((LO8(eax) | LO8(ebx))) << 24; _flag_b = (uint32_t)((LO8(eax) | LO8(ebx))) << 24;
   3731     SET_LO8(eax, LO8(eax) | LO8(ebx)); /* 0x42004026: or al, bl */
   3732     _cf = 0;
   3733     _flag_k = FK_NARROW(FK_TEST, 24);
   3734     MEM8(0x42022EBC) = (uint8_t)(LO8(eax)); /* 0x42004028: mov byte ptr [0x42022ebc], al */
   3735     RECOMP_ICALL(MEM32(0x42018044)); /* 0x4200402D: call dword ptr [0x42018044] */
   3736     RECOMP_FLAGS_IN();
   3737     PUSH32(esp, eax); /* 0x42004033: push eax */
   3738     ecx = 0x42022940u; /* 0x42004034: mov ecx, 0x42022940 */
   3739     RECOMP_ICALL(0x42016CF0u); /* 0x42004039: call 0x42016cf0 */ /* not lifted */
   3740     RECOMP_FLAGS_IN();
   3741     PUSH32(esp, 0x42004120u); /* 0x4200403E: push 0x42004120 */
   3742     RECOMP_ICALL(0x42016E07u); /* 0x42004043: call 0x42016e07 */ /* not lifted */
   3743     RECOMP_FLAGS_IN();
   3744     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3745     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3746     esp = esp + 4; /* 0x42004048: add esp, 4 */
   3747     _flag_k = FK_ADD;
   3748 L_4200404B:
   3749     ecx = MEM32(ebp + 0x8); /* 0x4200404B: mov ecx, dword ptr [ebp + 8] */
   3750     eax = MEM32(esi); /* 0x4200404E: mov eax, dword ptr [esi] */
   3751     PUSH32(esp, ebx); /* 0x42004050: push ebx */
   3752     PUSH32(esp, 0x42022DF4u); /* 0x42004051: push 0x42022df4 */
   3753     PUSH32(esp, ecx); /* 0x42004056: push ecx */
   3754     ecx = esi; /* 0x42004057: mov ecx, esi */
   3755     RECOMP_ICALL(MEM32(eax + 0x84)); /* 0x42004059: call dword ptr [eax + 0x84] */
   3756     RECOMP_FLAGS_IN();
   3757     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x42022DF4u);
   3758     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3759     eax = eax - 0x42022DF4u; /* 0x4200405F: sub eax, 0x42022df4 */
   3760     _flag_k = FK_CMP;
   3761     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x42004064: sar eax, 2 */
   3762     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3763     eax = (uint32_t)((int32_t)eax >> 2u);
   3764     MEM32(ebp + 0x8) = eax; /* 0x42004067: mov dword ptr [ebp + 8], eax */
   3765     fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x4200406A: fild dword ptr [ebp + 8] */
   3766     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3767     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3768     esp = esp - 8; /* 0x4200406D: sub esp, 8 */
   3769     _flag_k = FK_CMP;
   3770     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x42004070: fst dword ptr [ebp + 8] */
   3771     _st[0] *= (double)*(float*)ADDR(ebp + 0xC); /* 0x42004073: fmul dword ptr [ebp + 0xc] */
   3772     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x42004076: fstp qword ptr [esp] */
   3773     RECOMP_ICALL(MEM32(0x42018054)); /* 0x42004079: call dword ptr [0x42018054] */
   3774     RECOMP_FLAGS_IN();
   3775     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3776     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3777     esp = esp + 8; /* 0x4200407F: add esp, 8 */
   3778     _flag_k = FK_ADD;
   3779     RECOMP_ICALL(0x42016F3Cu); /* 0x42004082: call 0x42016f3c */ /* not lifted */
   3780     RECOMP_FLAGS_IN();
   3781     edi = MEM32(eax * 4 + 0x42022DF4); /* 0x42004087: mov edi, dword ptr [eax*4 + 0x42022df4] */
   3782     PUSH32(esp, edi); /* 0x4200408E: push edi */
   3783     ecx = esi; /* 0x4200408F: mov ecx, esi */
   3784     RECOMP_ICALL(0x42003F70u); /* 0x42004091: call 0x42003f70 */ /* not lifted */
   3785     RECOMP_FLAGS_IN();
   3786     /* test eax, eax */ /* 0x42004096: test eax, eax */
   3787     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3788     _cf = 0;
   3789     _flag_k = FK_TEST;
   3790     MEM32(ebp + 0xC) = eax; /* 0x42004098: mov dword ptr [ebp + 0xc], eax */
   3791     if (TEST_NZ(_flag_a, _flag_b)) goto L_420040D8; /* 0x4200409B: jne 0x420040d8 */
   3792 L_4200409D:
   3793     ecx = 0x42022940u; /* 0x4200409D: mov ecx, 0x42022940 */
   3794     RECOMP_ICALL(0x42016D60u); /* 0x420040A2: call 0x42016d60 */ /* not lifted */
   3795     RECOMP_FLAGS_IN();
   3796     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x420040A7: fld dword ptr [ebp + 8] */
   3797     _st[0] *= _st[1]; /* 0x420040AA: fmul st(1) */
   3798     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3799     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3800     esp = esp - 8; /* 0x420040AC: sub esp, 8 */
   3801     _flag_k = FK_CMP;
   3802     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x420040AF: fstp qword ptr [esp] */
   3803     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420040B2: fstp st(0) */
   3804     RECOMP_ICALL(MEM32(0x42018054)); /* 0x420040B4: call dword ptr [0x42018054] */
   3805     RECOMP_FLAGS_IN();
   3806     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3807     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3808     esp = esp + 8; /* 0x420040BA: add esp, 8 */
   3809     _flag_k = FK_ADD;
   3810     RECOMP_ICALL(0x42016F3Cu); /* 0x420040BD: call 0x42016f3c */ /* not lifted */
   3811     RECOMP_FLAGS_IN();
   3812     edi = MEM32(eax * 4 + 0x42022DF4); /* 0x420040C2: mov edi, dword ptr [eax*4 + 0x42022df4] */
   3813     PUSH32(esp, edi); /* 0x420040C9: push edi */
   3814     ecx = esi; /* 0x420040CA: mov ecx, esi */
   3815     RECOMP_ICALL(0x42003F70u); /* 0x420040CC: call 0x42003f70 */ /* not lifted */
   3816     RECOMP_FLAGS_IN();
   3817     /* test eax, eax */ /* 0x420040D1: test eax, eax */
   3818     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3819     _cf = 0;
   3820     _flag_k = FK_TEST;
   3821     MEM32(ebp + 0xC) = eax; /* 0x420040D3: mov dword ptr [ebp + 0xc], eax */
   3822     RECOMP_BACKEDGE();
   3823     if (TEST_Z(_flag_a, _flag_b)) goto L_4200409D; /* 0x420040D6: je 0x4200409d */
   3824 L_420040D8:
   3825     ecx = 0x42022940u; /* 0x420040D8: mov ecx, 0x42022940 */
   3826     RECOMP_ICALL(0x42016D60u); /* 0x420040DD: call 0x42016d60 */ /* not lifted */
   3827     RECOMP_FLAGS_IN();
   3828     fp_push((double)(int32_t)MEM32(ebp + 0xC)); /* 0x420040E2: fild dword ptr [ebp + 0xc] */
   3829     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3830     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3831     esp = esp - 8; /* 0x420040E5: sub esp, 8 */
   3832     _flag_k = FK_CMP;
   3833     _st[0] *= _st[1]; /* 0x420040E8: fmul st(1) */
   3834     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x420040EA: fstp qword ptr [esp] */
   3835     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420040ED: fstp st(0) */
   3836     RECOMP_ICALL(MEM32(0x42018054)); /* 0x420040EF: call dword ptr [0x42018054] */
   3837     RECOMP_FLAGS_IN();
   3838     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3839     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3840     esp = esp + 8; /* 0x420040F5: add esp, 8 */
   3841     _flag_k = FK_ADD;
   3842     RECOMP_ICALL(0x42016F3Cu); /* 0x420040F8: call 0x42016f3c */ /* not lifted */
   3843     RECOMP_FLAGS_IN();
   3844     edx = MEM32(esi); /* 0x420040FD: mov edx, dword ptr [esi] */
   3845     PUSH32(esp, edi); /* 0x420040FF: push edi */
   3846     ecx = esi; /* 0x42004100: mov ecx, esi */
   3847     ebx = eax; /* 0x42004102: mov ebx, eax */
   3848     RECOMP_ICALL(MEM32(edx + 0x7C)); /* 0x42004104: call dword ptr [edx + 0x7c] */
   3849     RECOMP_FLAGS_IN();
   3850     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   3851     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3852     eax = eax + 0x10u; /* 0x42004107: add eax, 0x10 */
   3853     _flag_k = FK_ADD;
   3854     eax = MEM32(eax + 0x4); /* 0x4200410A: mov eax, dword ptr [eax + 4] */
   3855     eax = MEM32(eax + ebx * 4); /* 0x4200410D: mov eax, dword ptr [eax + ebx*4] */
   3856     edi = POP32_VAL(esp); /* 0x42004110: pop edi */
   3857     esi = POP32_VAL(esp); /* 0x42004111: pop esi */
   3858     ebx = POP32_VAL(esp); /* 0x42004112: pop ebx */
   3859     ebp = POP32_VAL(esp); /* 0x42004113: pop ebp */
   3860     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x42004114: ret 8 */
   3861     RECOMP_REGS_OUT();
   3862 }
   3863 
   3864 void sub_42004120(void) {
   3865     int _fpu_cmp = 0;
   3866     uint32_t _cf = 0;
   3867     int _df = 1;
   3868     uint32_t _flag_k = FK_NONE;
   3869     uint32_t _flag_a = 0, _flag_b = 0;
   3870     uint32_t _itail_tgt = 0;
   3871     RECOMP_REGS_LOCALS
   3872     RECOMP_ENTER(0x42004120u);
   3873 
   3874 L_42004120:
   3875     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42004120: ret  */
   3876     RECOMP_REGS_OUT();
   3877 }
   3878 
   3879 void sub_42004130(void) {
   3880     int _fpu_cmp = 0;
   3881     uint32_t _cf = 0;
   3882     int _df = 1;
   3883     uint32_t _flag_k = FK_NONE;
   3884     uint32_t _flag_a = 0, _flag_b = 0;
   3885     uint32_t _itail_tgt = 0;
   3886     RECOMP_REGS_LOCALS
   3887     RECOMP_ENTER(0x42004130u);
   3888 
   3889 L_42004130:
   3890     PUSH32(esp, ebp); /* 0x42004130: push ebp */
   3891     ebp = esp; /* 0x42004131: mov ebp, esp */
   3892     eax = MEM32(ebp + 0x8); /* 0x42004133: mov eax, dword ptr [ebp + 8] */
   3893     eax = MEM32(eax); /* 0x42004136: mov eax, dword ptr [eax] */
   3894     SET_LO8(edx, MEM8(eax + 0x14)); /* 0x42004138: mov dl, byte ptr [eax + 0x14] */
   3895     /* test LO8(edx), LO8(edx) */ /* 0x4200413B: test dl, dl */
   3896     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3897     _cf = 0;
   3898     _flag_k = FK_NARROW(FK_TEST, 24);
   3899     if (TEST_Z(_flag_a, _flag_b)) goto L_4200414B; /* 0x4200413D: je 0x4200414b */
   3900 L_4200413F:
   3901     PUSH32(esp, 1); /* 0x4200413F: push 1 */
   3902     PUSH32(esp, eax); /* 0x42004141: push eax */
   3903     RECOMP_ICALL(0x42004180u); /* 0x42004142: call 0x42004180 */ /* not lifted */
   3904     RECOMP_FLAGS_IN();
   3905     ebp = POP32_VAL(esp); /* 0x42004147: pop ebp */
   3906     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42004148: ret 4 */
   3907 L_4200414B:
   3908     PUSH32(esp, 0); /* 0x4200414B: push 0 */
   3909     PUSH32(esp, eax); /* 0x4200414D: push eax */
   3910     RECOMP_ICALL(0x42004180u); /* 0x4200414E: call 0x42004180 */ /* not lifted */
   3911     RECOMP_FLAGS_IN();
   3912     ebp = POP32_VAL(esp); /* 0x42004153: pop ebp */
   3913     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42004154: ret 4 */
   3914     RECOMP_REGS_OUT();
   3915 }
   3916 
   3917 void sub_42004160(void) {
   3918     int _fpu_cmp = 0;
   3919     uint32_t _cf = 0;
   3920     int _df = 1;
   3921     uint32_t _flag_k = FK_NONE;
   3922     uint32_t _flag_a = 0, _flag_b = 0;
   3923     uint32_t _itail_tgt = 0;
   3924     RECOMP_REGS_LOCALS
   3925     RECOMP_ENTER(0x42004160u);
   3926 
   3927 L_42004160:
   3928     PUSH32(esp, ebp); /* 0x42004160: push ebp */
   3929     ebp = esp; /* 0x42004161: mov ebp, esp */
   3930     edx = MEM32(ebp + 0x8); /* 0x42004163: mov edx, dword ptr [ebp + 8] */
   3931     edx = MEM32(edx); /* 0x42004166: mov edx, dword ptr [edx] */
   3932     eax = MEM32(ecx + (-0x4)); /* 0x42004168: mov eax, dword ptr [ecx - 4] */
   3933     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFCu);
   3934     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3935     ecx = ecx + 0xFFFFFFFCu; /* 0x4200416B: add ecx, -4 */
   3936     _flag_k = FK_ADD;
   3937     PUSH32(esp, edx); /* 0x4200416E: push edx */
   3938     RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x4200416F: call dword ptr [eax + 0x30] */
   3939     RECOMP_FLAGS_IN();
   3940     ebp = POP32_VAL(esp); /* 0x42004172: pop ebp */
   3941     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42004173: ret 4 */
   3942     RECOMP_REGS_OUT();
   3943 }
   3944 
   3945 void sub_42004180(void) {
   3946     int _fpu_cmp = 0;
   3947     uint32_t _cf = 0;
   3948     int _df = 1;
   3949     uint32_t _flag_k = FK_NONE;
   3950     uint32_t _flag_a = 0, _flag_b = 0;
   3951     uint32_t _itail_tgt = 0;
   3952     RECOMP_REGS_LOCALS
   3953     RECOMP_ENTER(0x42004180u);
   3954 
   3955 L_42004180:
   3956     PUSH32(esp, ebp); /* 0x42004180: push ebp */
   3957     ebp = esp; /* 0x42004181: mov ebp, esp */
   3958     PUSH32(esp, 0xFFFFFFFFu); /* 0x42004183: push -1 */
   3959     PUSH32(esp, 0x42017208u); /* 0x42004185: push 0x42017208 */
   3960     eax = MEM32(FS_BASE + (0)); /* 0x4200418A: mov eax, dword ptr fs:[0] */
   3961     PUSH32(esp, eax); /* 0x42004190: push eax */
   3962     MEM32(FS_BASE + (0)) = esp; /* 0x42004191: mov dword ptr fs:[0], esp */
   3963     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3964     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3965     esp = esp - 8; /* 0x42004198: sub esp, 8 */
   3966     _flag_k = FK_CMP;
   3967     PUSH32(esp, ebx); /* 0x4200419B: push ebx */
   3968     PUSH32(esp, esi); /* 0x4200419C: push esi */
   3969     PUSH32(esp, edi); /* 0x4200419D: push edi */
   3970     edi = MEM32(ebp + 0x8); /* 0x4200419E: mov edi, dword ptr [ebp + 8] */
   3971     eax = MEM32(edi); /* 0x420041A1: mov eax, dword ptr [edi] */
   3972     esi = ecx; /* 0x420041A3: mov esi, ecx */
   3973     ecx = edi; /* 0x420041A5: mov ecx, edi */
   3974     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x420041A7: call dword ptr [eax + 0xc] */
   3975     RECOMP_FLAGS_IN();
   3976     edx = MEM32(edi); /* 0x420041AA: mov edx, dword ptr [edi] */
   3977     ebx = eax; /* 0x420041AC: mov ebx, eax */
   3978     ecx = edi; /* 0x420041AE: mov ecx, edi */
   3979     MEM32(ebp + (-0x10)) = ebx; /* 0x420041B0: mov dword ptr [ebp - 0x10], ebx */
   3980     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x420041B3: call dword ptr [edx + 4] */
   3981     RECOMP_FLAGS_IN();
   3982     edx = MEM32(esi); /* 0x420041B6: mov edx, dword ptr [esi] */
   3983     PUSH32(esp, ebx); /* 0x420041B8: push ebx */
   3984     PUSH32(esp, eax); /* 0x420041B9: push eax */
   3985     ecx = esi; /* 0x420041BA: mov ecx, esi */
   3986     MEM32(ebp + 0x8) = eax; /* 0x420041BC: mov dword ptr [ebp + 8], eax */
   3987     RECOMP_ICALL(MEM32(edx + 0x70)); /* 0x420041BF: call dword ptr [edx + 0x70] */
   3988     RECOMP_FLAGS_IN();
   3989     ebx = eax; /* 0x420041C2: mov ebx, eax */
   3990     /* cmp ebx, MEM32(ebp + 0x8) */ /* 0x420041C4: cmp ebx, dword ptr [ebp + 8] */
   3991     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + 0x8));
   3992     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3993     _flag_k = FK_CMP;
   3994     if (CMP_NE(_flag_a, _flag_b)) goto L_42004220; /* 0x420041C7: jne 0x42004220 */
   3995 L_420041C9:
   3996     SET_LO8(eax, MEM8(ebp + 0xC)); /* 0x420041C9: mov al, byte ptr [ebp + 0xc] */
   3997     /* test LO8(eax), LO8(eax) */ /* 0x420041CC: test al, al */
   3998     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3999     _cf = 0;
   4000     _flag_k = FK_NARROW(FK_TEST, 24);
   4001     if (TEST_NZ(_flag_a, _flag_b)) goto L_42004376; /* 0x420041CE: jne 0x42004376 */
   4002 L_420041D4:
   4003     /* cmp ebx, 0xFFFFFFFFu */ /* 0x420041D4: cmp ebx, -1 */
   4004     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFFu);
   4005     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4006     _flag_k = FK_CMP;
   4007     if (CMP_EQ(_flag_a, _flag_b)) goto L_42004376; /* 0x420041D7: je 0x42004376 */
   4008 L_420041DD:
   4009     ecx = esi; /* 0x420041DD: mov ecx, esi */
   4010     RECOMP_ICALL(0x42004860u); /* 0x420041DF: call 0x42004860 */ /* not lifted */
   4011     RECOMP_FLAGS_IN();
   4012     /* test LO8(eax), LO8(eax) */ /* 0x420041E4: test al, al */
   4013     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4014     _cf = 0;
   4015     _flag_k = FK_NARROW(FK_TEST, 24);
   4016     if (TEST_NZ(_flag_a, _flag_b)) goto L_4200422B; /* 0x420041E6: jne 0x4200422b */
   4017 L_420041E8:
   4018     eax = MEM32(edi); /* 0x420041E8: mov eax, dword ptr [edi] */
   4019     ecx = edi; /* 0x420041EA: mov ecx, edi */
   4020     RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x420041EC: call dword ptr [eax + 0x14] */
   4021     RECOMP_FLAGS_IN();
   4022     fp_push(_st[0]); /* 0x420041EF: fld st(0) */
   4023     eax = MEM32(ebp + (-0x10)); /* 0x420041F1: mov eax, dword ptr [ebp - 0x10] */
   4024     _st[0] += _st[0]; /* 0x420041F4: fadd st(0), st(0) */
   4025     edx = MEM32(esi); /* 0x420041F6: mov edx, dword ptr [esi] */
   4026     PUSH32(esp, ecx); /* 0x420041F8: push ecx */
   4027     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x420041F9: fstp dword ptr [esp] */
   4028     PUSH32(esp, ecx); /* 0x420041FC: push ecx */
   4029     fp_push(*(float*)&MEM32(eax)); /* 0x420041FD: fld dword ptr [eax] */
   4030     ecx = esi; /* 0x420041FF: mov ecx, esi */
   4031     _st[0] -= _st[1]; /* 0x42004201: fsub st(1) */
   4032     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x42004203: fstp dword ptr [esp] */
   4033     PUSH32(esp, edi); /* 0x42004206: push edi */
   4034     PUSH32(esp, ebx); /* 0x42004207: push ebx */
   4035     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42004208: fstp st(0) */
   4036     RECOMP_ICALL(MEM32(edx + 0x64)); /* 0x4200420A: call dword ptr [edx + 0x64] */
   4037     RECOMP_FLAGS_IN();
   4038     edi = POP32_VAL(esp); /* 0x4200420D: pop edi */
   4039     esi = POP32_VAL(esp); /* 0x4200420E: pop esi */
   4040     ebx = POP32_VAL(esp); /* 0x4200420F: pop ebx */
   4041     ecx = MEM32(ebp + (-0xC)); /* 0x42004210: mov ecx, dword ptr [ebp - 0xc] */
   4042     MEM32(FS_BASE + (0)) = ecx; /* 0x42004213: mov dword ptr fs:[0], ecx */
   4043     esp = ebp; /* 0x4200421A: mov esp, ebp */
   4044     ebp = POP32_VAL(esp); /* 0x4200421C: pop ebp */
   4045     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4200421D: ret 8 */
   4046 L_42004220:
   4047     ecx = esi; /* 0x42004220: mov ecx, esi */
   4048     RECOMP_ICALL(0x42004860u); /* 0x42004222: call 0x42004860 */ /* not lifted */
   4049     RECOMP_FLAGS_IN();
   4050     /* test LO8(eax), LO8(eax) */ /* 0x42004227: test al, al */
   4051     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4052     _cf = 0;
   4053     _flag_k = FK_NARROW(FK_TEST, 24);
   4054     if (TEST_Z(_flag_a, _flag_b)) goto L_42004246; /* 0x42004229: je 0x42004246 */
   4055 L_4200422B:
   4056     PUSH32(esp, edi); /* 0x4200422B: push edi */
   4057     ecx = esi; /* 0x4200422C: mov ecx, esi */
   4058     RECOMP_ICALL(0x42004880u); /* 0x4200422E: call 0x42004880 */ /* not lifted */
   4059     RECOMP_FLAGS_IN();
   4060     edi = POP32_VAL(esp); /* 0x42004233: pop edi */
   4061     esi = POP32_VAL(esp); /* 0x42004234: pop esi */
   4062     ebx = POP32_VAL(esp); /* 0x42004235: pop ebx */
   4063     ecx = MEM32(ebp + (-0xC)); /* 0x42004236: mov ecx, dword ptr [ebp - 0xc] */
   4064     MEM32(FS_BASE + (0)) = ecx; /* 0x42004239: mov dword ptr fs:[0], ecx */
   4065     esp = ebp; /* 0x42004240: mov esp, ebp */
   4066     ebp = POP32_VAL(esp); /* 0x42004242: pop ebp */
   4067     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x42004243: ret 8 */
   4068 L_42004246:
   4069     ecx = esi; /* 0x42004246: mov ecx, esi */
   4070     MEM32(ebp + (-0x14)) = esi; /* 0x42004248: mov dword ptr [ebp - 0x14], esi */
   4071     RECOMP_ICALL(0x42004850u); /* 0x4200424B: call 0x42004850 */ /* not lifted */
   4072     RECOMP_FLAGS_IN();
   4073     eax = MEM32(ebp + 0x8); /* 0x42004250: mov eax, dword ptr [ebp + 8] */
   4074     /* cmp eax, 0xFFFFFFFFu */ /* 0x42004253: cmp eax, -1 */
   4075     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   4076     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4077     _flag_k = FK_CMP;
   4078     MEM32(ebp + (-0x4)) = 0; /* 0x42004256: mov dword ptr [ebp - 4], 0 */
   4079     if (CMP_EQ(_flag_a, _flag_b)) goto L_42004318; /* 0x4200425D: je 0x42004318 */
   4080 L_42004263:
   4081     SET_LO8(ecx, MEM8(ebp + 0xC)); /* 0x42004263: mov cl, byte ptr [ebp + 0xc] */
   4082     edx = MEM32(esi); /* 0x42004266: mov edx, dword ptr [esi] */
   4083     PUSH32(esp, edi); /* 0x42004268: push edi */
   4084     /* cmp LO8(ecx), 1 */ /* 0x42004269: cmp cl, 1 */
   4085     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24;
   4086     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4087     _flag_k = FK_NARROW(FK_CMP, 24);
   4088     PUSH32(esp, eax); /* 0x4200426C: push eax */
   4089     ecx = esi; /* 0x4200426D: mov ecx, esi */
   4090     if (CMP_NE(_flag_a, _flag_b)) goto L_42004283; /* 0x4200426F: jne 0x42004283 */
   4091 L_42004271:
   4092     RECOMP_ICALL(MEM32(edx + 0x6C)); /* 0x42004271: call dword ptr [edx + 0x6c] */
   4093     RECOMP_FLAGS_IN();
   4094     ecx = MEM32(ebp + 0x8); /* 0x42004274: mov ecx, dword ptr [ebp + 8] */
   4095     eax = MEM32(esi); /* 0x42004277: mov eax, dword ptr [esi] */
   4096     PUSH32(esp, ebx); /* 0x42004279: push ebx */
   4097     PUSH32(esp, ecx); /* 0x4200427A: push ecx */
   4098     PUSH32(esp, edi); /* 0x4200427B: push edi */
   4099     ecx = esi; /* 0x4200427C: mov ecx, esi */
   4100     RECOMP_ICALL(MEM32(eax + 0x2C)); /* 0x4200427E: call dword ptr [eax + 0x2c] */
   4101     RECOMP_FLAGS_IN();
   4102     goto L_42004293; /* 0x42004281: jmp 0x42004293 */
   4103 L_42004283:
   4104     RECOMP_ICALL(MEM32(edx + 0x68)); /* 0x42004283: call dword ptr [edx + 0x68] */
   4105     RECOMP_FLAGS_IN();
   4106     ecx = MEM32(ebp + 0x8); /* 0x42004286: mov ecx, dword ptr [ebp + 8] */
   4107     eax = MEM32(esi); /* 0x42004289: mov eax, dword ptr [esi] */
   4108     PUSH32(esp, ebx); /* 0x4200428B: push ebx */
   4109     PUSH32(esp, ecx); /* 0x4200428C: push ecx */
   4110     PUSH32(esp, edi); /* 0x4200428D: push edi */
   4111     ecx = esi; /* 0x4200428E: mov ecx, esi */
   4112     RECOMP_ICALL(MEM32(eax + 0x28)); /* 0x42004290: call dword ptr [eax + 0x28] */
   4113     RECOMP_FLAGS_IN();
   4114 L_42004293:
   4115     ecx = MEM32(ebp + (-0x10)); /* 0x42004293: mov ecx, dword ptr [ebp - 0x10] */
   4116     fp_push(*(float*)&MEM32(ecx)); /* 0x42004296: fld dword ptr [ecx] */
   4117     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x420180F8)); /* 0x42004298: fcomp dword ptr [0x420180f8] */
   4118     fp_pop();
   4119     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4200429E: fnstsw ax */
   4120     /* test HI8(eax), 0x40u */ /* 0x420042A0: test ah, 0x40 */
   4121     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   4122     _cf = 0;
   4123     _flag_k = FK_NARROW(FK_TEST, 24);
   4124     if (TEST_Z(_flag_a, _flag_b)) goto L_420042C5; /* 0x420042A3: je 0x420042c5 */
   4125 L_420042A5:
   4126     fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x420042A5: fld dword ptr [ecx + 4] */
   4127     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x420180F8)); /* 0x420042A8: fcomp dword ptr [0x420180f8] */
   4128     fp_pop();
   4129     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x420042AE: fnstsw ax */
   4130     /* test HI8(eax), 0x40u */ /* 0x420042B0: test ah, 0x40 */
   4131     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   4132     _cf = 0;
   4133     _flag_k = FK_NARROW(FK_TEST, 24);
   4134     if (TEST_Z(_flag_a, _flag_b)) goto L_420042C5; /* 0x420042B3: je 0x420042c5 */
   4135 L_420042B5:
   4136     fp_push(*(float*)&MEM32(ecx + 0x8)); /* 0x420042B5: fld dword ptr [ecx + 8] */
   4137     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x420180F8)); /* 0x420042B8: fcomp dword ptr [0x420180f8] */
   4138     fp_pop();
   4139     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x420042BE: fnstsw ax */
   4140     /* test HI8(eax), 0x40u */ /* 0x420042C0: test ah, 0x40 */
   4141     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   4142     _cf = 0;
   4143     _flag_k = FK_NARROW(FK_TEST, 24);
   4144     if (TEST_NZ(_flag_a, _flag_b)) goto L_4200430C; /* 0x420042C3: jne 0x4200430c */
   4145 L_420042C5:
   4146     /* test ebx, ebx */ /* 0x420042C5: test ebx, ebx */
   4147     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   4148     _cf = 0;
   4149     _flag_k = FK_TEST;
   4150     if (TEST_S(_flag_a, _flag_b)) goto L_42004300; /* 0x420042C7: jl 0x42004300 */
   4151 L_420042C9:
   4152     /* cmp ebx, MEM32(esi + 0x18) */ /* 0x420042C9: cmp ebx, dword ptr [esi + 0x18] */
   4153     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x18));
   4154     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4155     _flag_k = FK_CMP;
   4156     if (CMP_GE(_flag_a, _flag_b)) goto L_42004300; /* 0x420042CC: jge 0x42004300 */
   4157 L_420042CE:
   4158     /* cmp MEM8(ebp + 0xC), 1 */ /* 0x420042CE: cmp byte ptr [ebp + 0xc], 1 */
   4159     _flag_a = (uint32_t)(MEM8(ebp + 0xC)) << 24; _flag_b = (uint32_t)(1) << 24;
   4160     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4161     _flag_k = FK_NARROW(FK_CMP, 24);
   4162     if (CMP_NE(_flag_a, _flag_b)) goto L_420042DF; /* 0x420042D2: jne 0x420042df */
   4163 L_420042D4:
   4164     edx = MEM32(esi); /* 0x420042D4: mov edx, dword ptr [esi] */
   4165     PUSH32(esp, edi); /* 0x420042D6: push edi */
   4166     PUSH32(esp, ebx); /* 0x420042D7: push ebx */
   4167     ecx = esi; /* 0x420042D8: mov ecx, esi */
   4168     RECOMP_ICALL(MEM32(edx + 0x74)); /* 0x420042DA: call dword ptr [edx + 0x74] */
   4169     RECOMP_FLAGS_IN();
   4170     goto L_420042E8; /* 0x420042DD: jmp 0x420042e8 */
   4171 L_420042DF:
   4172     eax = MEM32(esi); /* 0x420042DF: mov eax, dword ptr [esi] */
   4173     PUSH32(esp, edi); /* 0x420042E1: push edi */
   4174     PUSH32(esp, ebx); /* 0x420042E2: push ebx */
   4175     ecx = esi; /* 0x420042E3: mov ecx, esi */
   4176     RECOMP_ICALL(MEM32(eax + 0x78)); /* 0x420042E5: call dword ptr [eax + 0x78] */
   4177     RECOMP_FLAGS_IN();
   4178 L_420042E8:
   4179     ecx = MEM32(edi); /* 0x420042E8: mov ecx, dword ptr [edi] */
   4180     edx = MEM32(esi); /* 0x420042EA: mov edx, dword ptr [esi] */
   4181     MEM32(ebp + 0x8) = ecx; /* 0x420042EC: mov dword ptr [ebp + 8], ecx */
   4182     PUSH32(esp, ebx); /* 0x420042EF: push ebx */
   4183     ecx = esi; /* 0x420042F0: mov ecx, esi */
   4184     RECOMP_ICALL(MEM32(edx + 0x60)); /* 0x420042F2: call dword ptr [edx + 0x60] */
   4185     RECOMP_FLAGS_IN();
   4186     PUSH32(esp, eax); /* 0x420042F5: push eax */
   4187     eax = MEM32(ebp + 0x8); /* 0x420042F6: mov eax, dword ptr [ebp + 8] */
   4188     PUSH32(esp, ebx); /* 0x420042F9: push ebx */
   4189     ecx = edi; /* 0x420042FA: mov ecx, edi */
   4190     RECOMP_ICALL(MEM32(eax)); /* 0x420042FC: call dword ptr [eax] */
   4191     RECOMP_FLAGS_IN();
   4192     goto L_42004361; /* 0x420042FE: jmp 0x42004361 */
   4193 L_42004300:
   4194     edx = MEM32(edi); /* 0x42004300: mov edx, dword ptr [edi] */
   4195     PUSH32(esp, 0xFFFFFFFFu); /* 0x42004302: push -1 */
   4196     PUSH32(esp, 0xFFFFFFFFu); /* 0x42004304: push -1 */
   4197     ecx = edi; /* 0x42004306: mov ecx, edi */
   4198     RECOMP_ICALL(MEM32(edx)); /* 0x42004308: call dword ptr [edx] */
   4199     RECOMP_FLAGS_IN();
   4200     goto L_42004361; /* 0x4200430A: jmp 0x42004361 */
   4201 L_4200430C:
   4202     eax = MEM32(edi); /* 0x4200430C: mov eax, dword ptr [edi] */
   4203     PUSH32(esp, 0xFFFFFFFFu); /* 0x4200430E: push -1 */
   4204     PUSH32(esp, 0xFFFFFFFFu); /* 0x42004310: push -1 */
   4205     ecx = edi; /* 0x42004312: mov ecx, edi */
   4206     RECOMP_ICALL(MEM32(eax)); /* 0x42004314: call dword ptr [eax] */
   4207     RECOMP_FLAGS_IN();
   4208     goto L_42004361; /* 0x42004316: jmp 0x42004361 */
   4209 L_42004318:
   4210     /* test ebx, ebx */ /* 0x42004318: test ebx, ebx */
   4211     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   4212     _cf = 0;
   4213     _flag_k = FK_TEST;
   4214     if (TEST_S(_flag_a, _flag_b)) goto L_42004361; /* 0x4200431A: jl 0x42004361 */
   4215 L_4200431C:
   4216     /* cmp ebx, MEM32(esi + 0x18) */ /* 0x4200431C: cmp ebx, dword ptr [esi + 0x18] */
   4217     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x18));
   4218     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4219     _flag_k = FK_CMP;
   4220     if (CMP_GE(_flag_a, _flag_b)) goto L_42004361; /* 0x4200431F: jge 0x42004361 */
   4221 L_42004321:
   4222     ecx = MEM32(edi); /* 0x42004321: mov ecx, dword ptr [edi] */
   4223     edx = MEM32(esi); /* 0x42004323: mov edx, dword ptr [esi] */
   4224     MEM32(ebp + 0x8) = ecx; /* 0x42004325: mov dword ptr [ebp + 8], ecx */
   4225     PUSH32(esp, ebx); /* 0x42004328: push ebx */
   4226     ecx = esi; /* 0x42004329: mov ecx, esi */
   4227     RECOMP_ICALL(MEM32(edx + 0x60)); /* 0x4200432B: call dword ptr [edx + 0x60] */
   4228     RECOMP_FLAGS_IN();
   4229     PUSH32(esp, eax); /* 0x4200432E: push eax */
   4230     eax = MEM32(ebp + 0x8); /* 0x4200432F: mov eax, dword ptr [ebp + 8] */
   4231     PUSH32(esp, ebx); /* 0x42004332: push ebx */
   4232     ecx = edi; /* 0x42004333: mov ecx, edi */
   4233     RECOMP_ICALL(MEM32(eax)); /* 0x42004335: call dword ptr [eax] */
   4234     RECOMP_FLAGS_IN();
   4235     /* cmp MEM8(ebp + 0xC), 1 */ /* 0x42004337: cmp byte ptr [ebp + 0xc], 1 */
   4236     _flag_a = (uint32_t)(MEM8(ebp + 0xC)) << 24; _flag_b = (uint32_t)(1) << 24;
   4237     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4238     _flag_k = FK_NARROW(FK_CMP, 24);
   4239     edx = MEM32(esi); /* 0x4200433B: mov edx, dword ptr [esi] */
   4240     PUSH32(esp, edi); /* 0x4200433D: push edi */
   4241     PUSH32(esp, ebx); /* 0x4200433E: push ebx */
   4242     ecx = esi; /* 0x4200433F: mov ecx, esi */
   4243     if (CMP_NE(_flag_a, _flag_b)) goto L_42004353; /* 0x42004341: jne 0x42004353 */
   4244 L_42004343:
   4245     RECOMP_ICALL(MEM32(edx + 0x74)); /* 0x42004343: call dword ptr [edx + 0x74] */
   4246     RECOMP_FLAGS_IN();
   4247     eax = MEM32(esi); /* 0x42004346: mov eax, dword ptr [esi] */
   4248     PUSH32(esp, ebx); /* 0x42004348: push ebx */
   4249     PUSH32(esp, 0xFFFFFFFFu); /* 0x42004349: push -1 */
   4250     PUSH32(esp, edi); /* 0x4200434B: push edi */
   4251     ecx = esi; /* 0x4200434C: mov ecx, esi */
   4252     RECOMP_ICALL(MEM32(eax + 0x2C)); /* 0x4200434E: call dword ptr [eax + 0x2c] */
   4253     RECOMP_FLAGS_IN();
   4254     goto L_42004361; /* 0x42004351: jmp 0x42004361 */
   4255 L_42004353:
   4256     RECOMP_ICALL(MEM32(edx + 0x78)); /* 0x42004353: call dword ptr [edx + 0x78] */
   4257     RECOMP_FLAGS_IN();
   4258     eax = MEM32(esi); /* 0x42004356: mov eax, dword ptr [esi] */
   4259     PUSH32(esp, ebx); /* 0x42004358: push ebx */
   4260     PUSH32(esp, 0xFFFFFFFFu); /* 0x42004359: push -1 */
   4261     PUSH32(esp, edi); /* 0x4200435B: push edi */
   4262     ecx = esi; /* 0x4200435C: mov ecx, esi */
   4263     RECOMP_ICALL(MEM32(eax + 0x28)); /* 0x4200435E: call dword ptr [eax + 0x28] */
   4264     RECOMP_FLAGS_IN();
   4265 L_42004361:
   4266     ecx = esi; /* 0x42004361: mov ecx, esi */
   4267     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x42004363: mov dword ptr [ebp - 4], 0xffffffff */
   4268     RECOMP_ICALL(0x42004870u); /* 0x4200436A: call 0x42004870 */ /* not lifted */
   4269     RECOMP_FLAGS_IN();
   4270     ecx = esi; /* 0x4200436F: mov ecx, esi */
   4271     RECOMP_ICALL(0x420048E0u); /* 0x42004371: call 0x420048e0 */ /* not lifted */
   4272     RECOMP_FLAGS_IN();
   4273 L_42004376:
   4274     ecx = MEM32(ebp + (-0xC)); /* 0x42004376: mov ecx, dword ptr [ebp - 0xc] */
   4275     edi = POP32_VAL(esp); /* 0x42004379: pop edi */
   4276     esi = POP32_VAL(esp); /* 0x4200437A: pop esi */
   4277     ebx = POP32_VAL(esp); /* 0x4200437B: pop ebx */
   4278     MEM32(FS_BASE + (0)) = ecx; /* 0x4200437C: mov dword ptr fs:[0], ecx */
   4279     esp = ebp; /* 0x42004383: mov esp, ebp */
   4280     ebp = POP32_VAL(esp); /* 0x42004385: pop ebp */
   4281     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x42004386: ret 8 */
   4282     RECOMP_REGS_OUT();
   4283 }
   4284 
   4285 void sub_42004390(void) {
   4286     int _fpu_cmp = 0;
   4287     uint32_t _cf = 0;
   4288     int _df = 1;
   4289     uint32_t _flag_k = FK_NONE;
   4290     uint32_t _flag_a = 0, _flag_b = 0;
   4291     uint32_t _itail_tgt = 0;
   4292     RECOMP_REGS_LOCALS
   4293     RECOMP_ENTER(0x42004390u);
   4294 
   4295 L_42004390:
   4296     PUSH32(esp, esi); /* 0x42004390: push esi */
   4297     esi = ecx; /* 0x42004391: mov esi, ecx */
   4298     ecx = MEM32(esi); /* 0x42004393: mov ecx, dword ptr [esi] */
   4299     RECOMP_ICALL(0x42004870u); /* 0x42004395: call 0x42004870 */ /* not lifted */
   4300     RECOMP_FLAGS_IN();
   4301     ecx = MEM32(esi); /* 0x4200439A: mov ecx, dword ptr [esi] */
   4302     RECOMP_ICALL(0x420048E0u); /* 0x4200439C: call 0x420048e0 */ /* not lifted */
   4303     RECOMP_FLAGS_IN();
   4304     esi = POP32_VAL(esp); /* 0x420043A1: pop esi */
   4305     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x420043A2: ret  */
   4306     RECOMP_REGS_OUT();
   4307 }
   4308 
   4309 void sub_420043B0(void) {
   4310     int _fpu_cmp = 0;
   4311     uint32_t _cf = 0;
   4312     int _df = 1;
   4313     uint32_t _flag_k = FK_NONE;
   4314     uint32_t _flag_a = 0, _flag_b = 0;
   4315     uint32_t _itail_tgt = 0;
   4316     RECOMP_REGS_LOCALS
   4317     RECOMP_ENTER(0x420043B0u);
   4318 
   4319 L_420043B0:
   4320     PUSH32(esp, ebp); /* 0x420043B0: push ebp */
   4321     ebp = esp; /* 0x420043B1: mov ebp, esp */
   4322     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4323     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4324     esp = esp - 8; /* 0x420043B3: sub esp, 8 */
   4325     _flag_k = FK_CMP;
   4326     eax = MEM32(ebp + 0x10); /* 0x420043B6: mov eax, dword ptr [ebp + 0x10] */
   4327     /* cmp eax, 0xFFFFFFFFu */ /* 0x420043B9: cmp eax, -1 */
   4328     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   4329     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4330     _flag_k = FK_CMP;
   4331     PUSH32(esp, ebx); /* 0x420043BC: push ebx */
   4332     PUSH32(esp, esi); /* 0x420043BD: push esi */
   4333     ebx = ecx; /* 0x420043BE: mov ebx, ecx */
   4334     PUSH32(esp, edi); /* 0x420043C0: push edi */
   4335     MEM32(ebp + (-0x4)) = ebx; /* 0x420043C1: mov dword ptr [ebp - 4], ebx */
   4336     if (CMP_NE(_flag_a, _flag_b)) goto L_42004441; /* 0x420043C4: jne 0x42004441 */
   4337 L_420043C6:
   4338     ecx = MEM32(ebp + 0xC); /* 0x420043C6: mov ecx, dword ptr [ebp + 0xc] */
   4339     eax = MEM32(ebx); /* 0x420043C9: mov eax, dword ptr [ebx] */
   4340     PUSH32(esp, 1); /* 0x420043CB: push 1 */
   4341     PUSH32(esp, 0x420226E4u); /* 0x420043CD: push 0x420226e4 */
   4342     PUSH32(esp, ecx); /* 0x420043D2: push ecx */
   4343     ecx = ebx; /* 0x420043D3: mov ecx, ebx */
   4344     RECOMP_ICALL(MEM32(eax + 0x84)); /* 0x420043D5: call dword ptr [eax + 0x84] */
   4345     RECOMP_FLAGS_IN();
   4346     esi = 0x420226E4u; /* 0x420043DB: mov esi, 0x420226e4 */
   4347     /* cmp eax, esi */ /* 0x420043E0: cmp eax, esi */
   4348     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   4349     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4350     _flag_k = FK_CMP;
   4351     MEM32(ebp + (-0x4)) = eax; /* 0x420043E2: mov dword ptr [ebp - 4], eax */
   4352     MEM32(ebp + 0xC) = esi; /* 0x420043E5: mov dword ptr [ebp + 0xc], esi */
   4353     if (CMP_EQ(_flag_a, _flag_b)) goto L_4200453F; /* 0x420043E8: je 0x4200453f */
   4354 L_420043EE:
   4355     eax = MEM32(esi); /* 0x420043EE: mov eax, dword ptr [esi] */
   4356     edx = MEM32(ebx); /* 0x420043F0: mov edx, dword ptr [ebx] */
   4357     PUSH32(esp, eax); /* 0x420043F2: push eax */
   4358     ecx = ebx; /* 0x420043F3: mov ecx, ebx */
   4359     RECOMP_ICALL(MEM32(edx + 0x7C)); /* 0x420043F5: call dword ptr [edx + 0x7c] */
   4360     RECOMP_FLAGS_IN();
   4361     ecx = MEM32(eax + 0x14); /* 0x420043F8: mov ecx, dword ptr [eax + 0x14] */
   4362     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   4363     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4364     eax = eax + 0x10u; /* 0x420043FB: add eax, 0x10 */
   4365     _flag_k = FK_ADD;
   4366     /* test ecx, ecx */ /* 0x420043FE: test ecx, ecx */
   4367     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4368     _cf = 0;
   4369     _flag_k = FK_TEST;
   4370     if (TEST_Z(_flag_a, _flag_b)) goto L_4200442B; /* 0x42004400: je 0x4200442b */
   4371 L_42004402:
   4372     edi = MEM32(eax + 0x8); /* 0x42004402: mov edi, dword ptr [eax + 8] */
   4373     eax = edi; /* 0x42004405: mov eax, edi */
   4374     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4375     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4376     eax = eax - ecx; /* 0x42004407: sub eax, ecx */
   4377     _flag_k = FK_CMP;
   4378     /* test eax, 0xFFFFFFFCu */ /* 0x42004409: test eax, 0xfffffffc */
   4379     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFCu);
   4380     _cf = 0;
   4381     _flag_k = FK_TEST;
   4382     if (TEST_Z(_flag_a, _flag_b)) goto L_4200442B; /* 0x4200440E: je 0x4200442b */
   4383 L_42004410:
   4384     esi = ecx; /* 0x42004410: mov esi, ecx */
   4385     /* cmp esi, edi */ /* 0x42004412: cmp esi, edi */
   4386     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   4387     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4388     _flag_k = FK_CMP;
   4389     if (CMP_EQ(_flag_a, _flag_b)) goto L_42004428; /* 0x42004414: je 0x42004428 */
   4390 L_42004416:
   4391     ecx = MEM32(esi); /* 0x42004416: mov ecx, dword ptr [esi] */
   4392     eax = MEM32(ebp + 0x8); /* 0x42004418: mov eax, dword ptr [ebp + 8] */
   4393     edx = MEM32(ecx); /* 0x4200441B: mov edx, dword ptr [ecx] */
   4394     PUSH32(esp, eax); /* 0x4200441D: push eax */
   4395     RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x4200441E: call dword ptr [edx + 0x24] */
   4396     RECOMP_FLAGS_IN();
   4397     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   4398     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4399     esi = esi + 4; /* 0x42004421: add esi, 4 */
   4400     _flag_k = FK_ADD;
   4401     /* cmp esi, edi */ /* 0x42004424: cmp esi, edi */
   4402     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   4403     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4404     _flag_k = FK_CMP;
   4405     RECOMP_BACKEDGE();
   4406     if (CMP_NE(_flag_a, _flag_b)) goto L_42004416; /* 0x42004426: jne 0x42004416 */
   4407 L_42004428:
   4408     esi = MEM32(ebp + 0xC); /* 0x42004428: mov esi, dword ptr [ebp + 0xc] */
   4409 L_4200442B:
   4410     eax = MEM32(ebp + (-0x4)); /* 0x4200442B: mov eax, dword ptr [ebp - 4] */
   4411     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   4412     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4413     esi = esi + 4; /* 0x4200442E: add esi, 4 */
   4414     _flag_k = FK_ADD;
   4415     /* cmp esi, eax */ /* 0x42004431: cmp esi, eax */
   4416     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   4417     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4418     _flag_k = FK_CMP;
   4419     MEM32(ebp + 0xC) = esi; /* 0x42004433: mov dword ptr [ebp + 0xc], esi */
   4420     RECOMP_BACKEDGE();
   4421     if (CMP_NE(_flag_a, _flag_b)) goto L_420043EE; /* 0x42004436: jne 0x420043ee */
   4422 L_42004438:
   4423     edi = POP32_VAL(esp); /* 0x42004438: pop edi */
   4424     esi = POP32_VAL(esp); /* 0x42004439: pop esi */
   4425     ebx = POP32_VAL(esp); /* 0x4200443A: pop ebx */
   4426     esp = ebp; /* 0x4200443B: mov esp, ebp */
   4427     ebp = POP32_VAL(esp); /* 0x4200443D: pop ebp */
   4428     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4200443E: ret 0xc */
   4429 L_42004441:
   4430     PUSH32(esp, 1); /* 0x42004441: push 1 */
   4431     ecx = ebp + 0x10; /* 0x42004443: lea ecx, [ebp + 0x10] */
   4432     PUSH32(esp, ecx); /* 0x42004446: push ecx */
   4433     esi = 0x42022554u; /* 0x42004447: mov esi, 0x42022554 */
   4434     PUSH32(esp, esi); /* 0x4200444C: push esi */
   4435     edx = ebp + (-0x8); /* 0x4200444D: lea edx, [ebp - 8] */
   4436     PUSH32(esp, edx); /* 0x42004450: push edx */
   4437     PUSH32(esp, 0x42022D2Cu); /* 0x42004451: push 0x42022d2c */
   4438     PUSH32(esp, eax); /* 0x42004456: push eax */
   4439     eax = MEM32(ebp + 0xC); /* 0x42004457: mov eax, dword ptr [ebp + 0xc] */
   4440     PUSH32(esp, eax); /* 0x4200445A: push eax */
   4441     ecx = ebx; /* 0x4200445B: mov ecx, ebx */
   4442     RECOMP_ICALL(0x420046D0u); /* 0x4200445D: call 0x420046d0 */ /* not lifted */
   4443     RECOMP_FLAGS_IN();
   4444     /* cmp MEM32(ebp + 0x10), esi */ /* 0x42004462: cmp dword ptr [ebp + 0x10], esi */
   4445     _flag_a = (uint32_t)(MEM32(ebp + 0x10)); _flag_b = (uint32_t)(esi);
   4446     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4447     _flag_k = FK_CMP;
   4448     MEM32(ebp + 0xC) = esi; /* 0x42004465: mov dword ptr [ebp + 0xc], esi */
   4449     if (CMP_EQ(_flag_a, _flag_b)) goto L_420044B4; /* 0x42004468: je 0x420044b4 */
   4450 L_4200446A:
   4451     eax = MEM32(esi); /* 0x4200446A: mov eax, dword ptr [esi] */
   4452     edx = MEM32(ebx); /* 0x4200446C: mov edx, dword ptr [ebx] */
   4453     PUSH32(esp, eax); /* 0x4200446E: push eax */
   4454     ecx = ebx; /* 0x4200446F: mov ecx, ebx */
   4455     RECOMP_ICALL(MEM32(edx + 0x7C)); /* 0x42004471: call dword ptr [edx + 0x7c] */
   4456     RECOMP_FLAGS_IN();
   4457     ecx = MEM32(eax + 0x14); /* 0x42004474: mov ecx, dword ptr [eax + 0x14] */
   4458     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   4459     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4460     eax = eax + 0x10u; /* 0x42004477: add eax, 0x10 */
   4461     _flag_k = FK_ADD;
   4462     /* test ecx, ecx */ /* 0x4200447A: test ecx, ecx */
   4463     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4464     _cf = 0;
   4465     _flag_k = FK_TEST;
   4466     if (TEST_Z(_flag_a, _flag_b)) goto L_420044A7; /* 0x4200447C: je 0x420044a7 */
   4467 L_4200447E:
   4468     edi = MEM32(eax + 0x8); /* 0x4200447E: mov edi, dword ptr [eax + 8] */
   4469     eax = edi; /* 0x42004481: mov eax, edi */
   4470     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4471     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4472     eax = eax - ecx; /* 0x42004483: sub eax, ecx */
   4473     _flag_k = FK_CMP;
   4474     /* test eax, 0xFFFFFFFCu */ /* 0x42004485: test eax, 0xfffffffc */
   4475     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFCu);
   4476     _cf = 0;
   4477     _flag_k = FK_TEST;
   4478     if (TEST_Z(_flag_a, _flag_b)) goto L_420044A7; /* 0x4200448A: je 0x420044a7 */
   4479 L_4200448C:
   4480     esi = ecx; /* 0x4200448C: mov esi, ecx */
   4481     /* cmp esi, edi */ /* 0x4200448E: cmp esi, edi */
   4482     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   4483     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4484     _flag_k = FK_CMP;
   4485     if (CMP_EQ(_flag_a, _flag_b)) goto L_420044A4; /* 0x42004490: je 0x420044a4 */
   4486 L_42004492:
   4487     ecx = MEM32(esi); /* 0x42004492: mov ecx, dword ptr [esi] */
   4488     eax = MEM32(ebp + 0x8); /* 0x42004494: mov eax, dword ptr [ebp + 8] */
   4489     edx = MEM32(ecx); /* 0x42004497: mov edx, dword ptr [ecx] */
   4490     PUSH32(esp, eax); /* 0x42004499: push eax */
   4491     RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x4200449A: call dword ptr [edx + 0x24] */
   4492     RECOMP_FLAGS_IN();
   4493     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   4494     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4495     esi = esi + 4; /* 0x4200449D: add esi, 4 */
   4496     _flag_k = FK_ADD;
   4497     /* cmp esi, edi */ /* 0x420044A0: cmp esi, edi */
   4498     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   4499     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4500     _flag_k = FK_CMP;
   4501     RECOMP_BACKEDGE();
   4502     if (CMP_NE(_flag_a, _flag_b)) goto L_42004492; /* 0x420044A2: jne 0x42004492 */
   4503 L_420044A4:
   4504     esi = MEM32(ebp + 0xC); /* 0x420044A4: mov esi, dword ptr [ebp + 0xc] */
   4505 L_420044A7:
   4506     eax = MEM32(ebp + 0x10); /* 0x420044A7: mov eax, dword ptr [ebp + 0x10] */
   4507     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   4508     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4509     esi = esi + 4; /* 0x420044AA: add esi, 4 */
   4510     _flag_k = FK_ADD;
   4511     /* cmp esi, eax */ /* 0x420044AD: cmp esi, eax */
   4512     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   4513     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4514     _flag_k = FK_CMP;
   4515     MEM32(ebp + 0xC) = esi; /* 0x420044AF: mov dword ptr [ebp + 0xc], esi */
   4516     RECOMP_BACKEDGE();
   4517     if (CMP_NE(_flag_a, _flag_b)) goto L_4200446A; /* 0x420044B2: jne 0x4200446a */
   4518 L_420044B4:
   4519     ecx = MEM32(ebp + (-0x8)); /* 0x420044B4: mov ecx, dword ptr [ebp - 8] */
   4520     eax = 0x42022D2Cu; /* 0x420044B7: mov eax, 0x42022d2c */
   4521     /* cmp ecx, eax */ /* 0x420044BC: cmp ecx, eax */
   4522     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   4523     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4524     _flag_k = FK_CMP;
   4525     MEM32(ebp + 0xC) = eax; /* 0x420044BE: mov dword ptr [ebp + 0xc], eax */
   4526     if (CMP_EQ(_flag_a, _flag_b)) goto L_4200453F; /* 0x420044C1: je 0x4200453f */
   4527 L_420044C3:
   4528     ecx = MEM32(ebp + 0xC); /* 0x420044C3: mov ecx, dword ptr [ebp + 0xc] */
   4529     eax = MEM32(ecx); /* 0x420044C6: mov eax, dword ptr [ecx] */
   4530     edx = MEM32(ebx); /* 0x420044C8: mov edx, dword ptr [ebx] */
   4531     PUSH32(esp, eax); /* 0x420044CA: push eax */
   4532     ecx = ebx; /* 0x420044CB: mov ecx, ebx */
   4533     RECOMP_ICALL(MEM32(edx + 0x7C)); /* 0x420044CD: call dword ptr [edx + 0x7c] */
   4534     RECOMP_FLAGS_IN();
   4535     edi = eax; /* 0x420044D0: mov edi, eax */
   4536     esi = MEM32(edi + 0x14); /* 0x420044D2: mov esi, dword ptr [edi + 0x14] */
   4537     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u);
   4538     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4539     edi = edi + 0x10u; /* 0x420044D5: add edi, 0x10 */
   4540     _flag_k = FK_ADD;
   4541     /* test esi, esi */ /* 0x420044D8: test esi, esi */
   4542     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   4543     _cf = 0;
   4544     _flag_k = FK_TEST;
   4545     if (TEST_Z(_flag_a, _flag_b)) goto L_4200452F; /* 0x420044DA: je 0x4200452f */
   4546 L_420044DC:
   4547     ebx = MEM32(edi + 0x8); /* 0x420044DC: mov ebx, dword ptr [edi + 8] */
   4548     eax = ebx; /* 0x420044DF: mov eax, ebx */
   4549     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   4550     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4551     eax = eax - esi; /* 0x420044E1: sub eax, esi */
   4552     _flag_k = FK_CMP;
   4553     /* test eax, 0xFFFFFFFCu */ /* 0x420044E3: test eax, 0xfffffffc */
   4554     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFCu);
   4555     _cf = 0;
   4556     _flag_k = FK_TEST;
   4557     if (TEST_Z(_flag_a, _flag_b)) goto L_4200452C; /* 0x420044E8: je 0x4200452c */
   4558 L_420044EA:
   4559     /* cmp esi, ebx */ /* 0x420044EA: cmp esi, ebx */
   4560     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4561     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4562     _flag_k = FK_CMP;
   4563     if (CMP_EQ(_flag_a, _flag_b)) goto L_42004500; /* 0x420044EC: je 0x42004500 */
   4564 L_420044EE:
   4565     ecx = MEM32(esi); /* 0x420044EE: mov ecx, dword ptr [esi] */
   4566     eax = MEM32(ebp + 0x8); /* 0x420044F0: mov eax, dword ptr [ebp + 8] */
   4567     edx = MEM32(ecx); /* 0x420044F3: mov edx, dword ptr [ecx] */
   4568     PUSH32(esp, eax); /* 0x420044F5: push eax */
   4569     RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x420044F6: call dword ptr [edx + 0x1c] */
   4570     RECOMP_FLAGS_IN();
   4571     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   4572     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4573     esi = esi + 4; /* 0x420044F9: add esi, 4 */
   4574     _flag_k = FK_ADD;
   4575     /* cmp esi, ebx */ /* 0x420044FC: cmp esi, ebx */
   4576     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4577     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4578     _flag_k = FK_CMP;
   4579     RECOMP_BACKEDGE();
   4580     if (CMP_NE(_flag_a, _flag_b)) goto L_420044EE; /* 0x420044FE: jne 0x420044ee */
   4581 L_42004500:
   4582     esi = MEM32(edi + 0x4); /* 0x42004500: mov esi, dword ptr [edi + 4] */
   4583     /* test esi, esi */ /* 0x42004503: test esi, esi */
   4584     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   4585     _cf = 0;
   4586     _flag_k = FK_TEST;
   4587     if (TEST_Z(_flag_a, _flag_b)) goto L_4200452C; /* 0x42004505: je 0x4200452c */
   4588 L_42004507:
   4589     edi = MEM32(edi + 0x8); /* 0x42004507: mov edi, dword ptr [edi + 8] */
   4590     ecx = edi; /* 0x4200450A: mov ecx, edi */
   4591     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   4592     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4593     ecx = ecx - esi; /* 0x4200450C: sub ecx, esi */
   4594     _flag_k = FK_CMP;
   4595     /* test ecx, 0xFFFFFFFCu */ /* 0x4200450E: test ecx, 0xfffffffc */
   4596     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFCu);
   4597     _cf = 0;
   4598     _flag_k = FK_TEST;
   4599     if (TEST_Z(_flag_a, _flag_b)) goto L_4200452C; /* 0x42004514: je 0x4200452c */
   4600 L_42004516:
   4601     ecx = MEM32(esi); /* 0x42004516: mov ecx, dword ptr [esi] */
   4602     eax = MEM32(ebp + 0x8); /* 0x42004518: mov eax, dword ptr [ebp + 8] */
   4603     edx = MEM32(ecx); /* 0x4200451B: mov edx, dword ptr [ecx] */
   4604     PUSH32(esp, eax); /* 0x4200451D: push eax */
   4605     RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x4200451E: call dword ptr [edx + 0x20] */
   4606     RECOMP_FLAGS_IN();
   4607     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   4608     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4609     esi = esi + 4; /* 0x42004521: add esi, 4 */
   4610     _flag_k = FK_ADD;
   4611     /* test LO8(eax), LO8(eax) */ /* 0x42004524: test al, al */
   4612     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4613     _cf = 0;
   4614     _flag_k = FK_NARROW(FK_TEST, 24);
   4615     if (TEST_NZ(_flag_a, _flag_b)) goto L_4200452C; /* 0x42004526: jne 0x4200452c */
   4616 L_42004528:
   4617     /* cmp esi, edi */ /* 0x42004528: cmp esi, edi */
   4618     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   4619     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4620     _flag_k = FK_CMP;
   4621     RECOMP_BACKEDGE();
   4622     if (CMP_NE(_flag_a, _flag_b)) goto L_42004516; /* 0x4200452A: jne 0x42004516 */
   4623 L_4200452C:
   4624     ebx = MEM32(ebp + (-0x4)); /* 0x4200452C: mov ebx, dword ptr [ebp - 4] */
   4625 L_4200452F:
   4626     eax = MEM32(ebp + 0xC); /* 0x4200452F: mov eax, dword ptr [ebp + 0xc] */
   4627     ecx = MEM32(ebp + (-0x8)); /* 0x42004532: mov ecx, dword ptr [ebp - 8] */
   4628     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   4629     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4630     eax = eax + 4; /* 0x42004535: add eax, 4 */
   4631     _flag_k = FK_ADD;
   4632     /* cmp eax, ecx */ /* 0x42004538: cmp eax, ecx */
   4633     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4634     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4635     _flag_k = FK_CMP;
   4636     MEM32(ebp + 0xC) = eax; /* 0x4200453A: mov dword ptr [ebp + 0xc], eax */
   4637     RECOMP_BACKEDGE();
   4638     if (CMP_NE(_flag_a, _flag_b)) goto L_420044C3; /* 0x4200453D: jne 0x420044c3 */
   4639 L_4200453F:
   4640     edi = POP32_VAL(esp); /* 0x4200453F: pop edi */
   4641     esi = POP32_VAL(esp); /* 0x42004540: pop esi */
   4642     ebx = POP32_VAL(esp); /* 0x42004541: pop ebx */
   4643     esp = ebp; /* 0x42004542: mov esp, ebp */
   4644     ebp = POP32_VAL(esp); /* 0x42004544: pop ebp */
   4645     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x42004545: ret 0xc */
   4646     RECOMP_REGS_OUT();
   4647 }