aorecomp

Anarchy Online classic in the browser

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


client/game/kkr.dll/lifted-0021.c (355359B)


      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_360408E0(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(0x360408E0u);
     17 
     18 L_360408E0:
     19     ecx = 0x363065CDu; /* 0x360408E0: mov ecx, 0x363065cd */
     20 L_360408E5:
     21     { _itail_tgt = (uint32_t)(MEM32(0x3616F144)); goto _ljump; }
     22     { RECOMP_REGS_OUT(); return; } /* end of function */
     23   _ljump:
     24     switch (_itail_tgt) {
     25       case 0x360408E0u: goto L_360408E0;
     26       case 0x360408E5u: goto L_360408E5;
     27       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
     28     }
     29     RECOMP_REGS_OUT();
     30 }
     31 
     32 void sub_360408F0(void) {
     33     int _fpu_cmp = 0;
     34     uint32_t _cf = 0;
     35     int _df = 1;
     36     uint32_t _flag_k = FK_NONE;
     37     uint32_t _flag_a = 0, _flag_b = 0;
     38     uint32_t _itail_tgt = 0;
     39     RECOMP_REGS_LOCALS
     40     RECOMP_ENTER(0x360408F0u);
     41 
     42 L_360408F0:
     43     RECOMP_ICALL(0x36040900u); /* 0x360408F0: call 0x36040900 */ /* not lifted */
     44     RECOMP_FLAGS_IN();
     45     goto L_36040910; /* 0x360408F5: jmp 0x36040910 */
     46 L_36040910:
     47     PUSH32(esp, 0x36040920u); /* 0x36040910: push 0x36040920 */
     48     RECOMP_ICALL(0x3615FEB2u); /* 0x36040915: call 0x3615feb2 */ /* not lifted */
     49     RECOMP_FLAGS_IN();
     50     ecx = POP32_VAL(esp); /* 0x3604091A: pop ecx */
     51     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604091B: ret  */
     52     RECOMP_REGS_OUT();
     53 }
     54 
     55 void sub_36040900(void) {
     56     int _fpu_cmp = 0;
     57     uint32_t _cf = 0;
     58     int _df = 1;
     59     uint32_t _flag_k = FK_NONE;
     60     uint32_t _flag_a = 0, _flag_b = 0;
     61     uint32_t _itail_tgt = 0;
     62     RECOMP_REGS_LOCALS
     63     RECOMP_ENTER(0x36040900u);
     64 
     65 L_36040900:
     66     ecx = 0x363065CCu; /* 0x36040900: mov ecx, 0x363065cc */
     67 L_36040905:
     68     { _itail_tgt = (uint32_t)(MEM32(0x3616F148)); goto _ljump; }
     69     { RECOMP_REGS_OUT(); return; } /* end of function */
     70   _ljump:
     71     switch (_itail_tgt) {
     72       case 0x36040900u: goto L_36040900;
     73       case 0x36040905u: goto L_36040905;
     74       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
     75     }
     76     RECOMP_REGS_OUT();
     77 }
     78 
     79 void sub_36040910(void) {
     80     int _fpu_cmp = 0;
     81     uint32_t _cf = 0;
     82     int _df = 1;
     83     uint32_t _flag_k = FK_NONE;
     84     uint32_t _flag_a = 0, _flag_b = 0;
     85     uint32_t _itail_tgt = 0;
     86     RECOMP_REGS_LOCALS
     87     RECOMP_ENTER(0x36040910u);
     88 
     89 L_36040910:
     90     PUSH32(esp, 0x36040920u); /* 0x36040910: push 0x36040920 */
     91     RECOMP_ICALL(0x3615FEB2u); /* 0x36040915: call 0x3615feb2 */ /* not lifted */
     92     RECOMP_FLAGS_IN();
     93     ecx = POP32_VAL(esp); /* 0x3604091A: pop ecx */
     94     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604091B: ret  */
     95     RECOMP_REGS_OUT();
     96 }
     97 
     98 void sub_36040920(void) {
     99     int _fpu_cmp = 0;
    100     uint32_t _cf = 0;
    101     int _df = 1;
    102     uint32_t _flag_k = FK_NONE;
    103     uint32_t _flag_a = 0, _flag_b = 0;
    104     uint32_t _itail_tgt = 0;
    105     RECOMP_REGS_LOCALS
    106     RECOMP_ENTER(0x36040920u);
    107 
    108 L_36040920:
    109     ecx = 0x363065CCu; /* 0x36040920: mov ecx, 0x363065cc */
    110 L_36040925:
    111     { _itail_tgt = (uint32_t)(MEM32(0x3616F14C)); goto _ljump; }
    112     { RECOMP_REGS_OUT(); return; } /* end of function */
    113   _ljump:
    114     switch (_itail_tgt) {
    115       case 0x36040920u: goto L_36040920;
    116       case 0x36040925u: goto L_36040925;
    117       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    118     }
    119     RECOMP_REGS_OUT();
    120 }
    121 
    122 void sub_36040930(void) {
    123     int _fpu_cmp = 0;
    124     uint32_t _cf = 0;
    125     int _df = 1;
    126     uint32_t _flag_k = FK_NONE;
    127     uint32_t _flag_a = 0, _flag_b = 0;
    128     uint32_t _itail_tgt = 0;
    129     RECOMP_REGS_LOCALS
    130     RECOMP_ENTER(0x36040930u);
    131 
    132 L_36040930:
    133     PUSH32(esp, ebp); /* 0x36040930: push ebp */
    134     ebp = esp; /* 0x36040931: mov ebp, esp */
    135     PUSH32(esp, esi); /* 0x36040933: push esi */
    136     esi = ecx; /* 0x36040934: mov esi, ecx */
    137     RECOMP_ICALL(MEM32(0x3616FFB4)); /* 0x36040936: call dword ptr [0x3616ffb4] */
    138     RECOMP_FLAGS_IN();
    139     eax = MEM32(ebp + 0x8); /* 0x3604093C: mov eax, dword ptr [ebp + 8] */
    140     MEM32(esi) = 0x36170740u; /* 0x3604093F: mov dword ptr [esi], 0x36170740 */
    141     MEM32(0x363065D0) = esi; /* 0x36040945: mov dword ptr [0x363065d0], esi */
    142     MEM32(esi + 0x20) = eax; /* 0x3604094B: mov dword ptr [esi + 0x20], eax */
    143     eax = esi; /* 0x3604094E: mov eax, esi */
    144     esi = POP32_VAL(esp); /* 0x36040950: pop esi */
    145     ebp = POP32_VAL(esp); /* 0x36040951: pop ebp */
    146     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36040952: ret 4 */
    147     RECOMP_REGS_OUT();
    148 }
    149 
    150 void sub_36040960(void) {
    151     int _fpu_cmp = 0;
    152     uint32_t _cf = 0;
    153     int _df = 1;
    154     uint32_t _flag_k = FK_NONE;
    155     uint32_t _flag_a = 0, _flag_b = 0;
    156     uint32_t _itail_tgt = 0;
    157     RECOMP_REGS_LOCALS
    158     RECOMP_ENTER(0x36040960u);
    159 
    160 L_36040960:
    161     MEM32(ecx) = 0x36170740u; /* 0x36040960: mov dword ptr [ecx], 0x36170740 */
    162 L_36040966:
    163     MEM32(0x363065D0) = 0; /* 0x36040966: mov dword ptr [0x363065d0], 0 */
    164 L_36040970:
    165     { _itail_tgt = (uint32_t)(MEM32(0x3616FFB8)); goto _ljump; }
    166     { RECOMP_REGS_OUT(); return; } /* end of function */
    167   _ljump:
    168     switch (_itail_tgt) {
    169       case 0x36040960u: goto L_36040960;
    170       case 0x36040966u: goto L_36040966;
    171       case 0x36040970u: goto L_36040970;
    172       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    173     }
    174     RECOMP_REGS_OUT();
    175 }
    176 
    177 void sub_36040980(void) {
    178     int _fpu_cmp = 0;
    179     uint32_t _cf = 0;
    180     int _df = 1;
    181     uint32_t _flag_k = FK_NONE;
    182     uint32_t _flag_a = 0, _flag_b = 0;
    183     uint32_t _itail_tgt = 0;
    184     RECOMP_REGS_LOCALS
    185     RECOMP_ENTER(0x36040980u);
    186 
    187 L_36040980:
    188     eax = MEM32(0x363065D0); /* 0x36040980: mov eax, dword ptr [0x363065d0] */
    189     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36040985: ret  */
    190     RECOMP_REGS_OUT();
    191 }
    192 
    193 void sub_36040990(void) {
    194     int _fpu_cmp = 0;
    195     uint32_t _cf = 0;
    196     int _df = 1;
    197     uint32_t _flag_k = FK_NONE;
    198     uint32_t _flag_a = 0, _flag_b = 0;
    199     uint32_t _itail_tgt = 0;
    200     RECOMP_REGS_LOCALS
    201     RECOMP_ENTER(0x36040990u);
    202 
    203 L_36040990:
    204     eax = MEM32(0x3616FF74); /* 0x36040990: mov eax, dword ptr [0x3616ff74] */
    205     edx = MEM32(eax); /* 0x36040995: mov edx, dword ptr [eax] */
    206     fp_push(*(float*)&MEM32(edx + 0x64)); /* 0x36040997: fld dword ptr [edx + 0x64] */
    207     _st[0] += (double)*(float*)ADDR(ecx + 0x1C); /* 0x3604099A: fadd dword ptr [ecx + 0x1c] */
    208     { float _v = (float)_st[0]; *(float*)ADDR(ecx + 0x1C) = _v; } /* 0x3604099D: fst dword ptr [ecx + 0x1c] */
    209     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x20)); /* 0x360409A0: fcomp dword ptr [ecx + 0x20] */
    210     fp_pop();
    211     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360409A3: fnstsw ax */
    212     /* test HI8(eax), 0x41u */ /* 0x360409A5: test ah, 0x41 */
    213     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
    214     _cf = 0;
    215     _flag_k = FK_NARROW(FK_TEST, 24);
    216     if (TEST_NZ(_flag_a, _flag_b)) goto L_360409AF; /* 0x360409A8: jne 0x360409af */
    217 L_360409AA:
    218     goto L_360409F0; /* 0x360409AA: jmp 0x360409f0 */
    219 L_360409AF:
    220     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360409AF: ret  */
    221 L_360409F0:
    222     eax = MEM32(ecx); /* 0x360409F0: mov eax, dword ptr [ecx] */
    223     PUSH32(esp, esi); /* 0x360409F2: push esi */
    224     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x360409F3: call dword ptr [eax + 8] */
    225     RECOMP_FLAGS_IN();
    226     PUSH32(esp, 0); /* 0x360409F6: push 0 */
    227     PUSH32(esp, 0); /* 0x360409F8: push 0 */
    228     PUSH32(esp, 6); /* 0x360409FA: push 6 */
    229     RECOMP_ICALL(0x3601C590u); /* 0x360409FC: call 0x3601c590 */ /* not lifted */
    230     RECOMP_FLAGS_IN();
    231     ecx = eax; /* 0x36040A01: mov ecx, eax */
    232     RECOMP_ICALL(0x3601D080u); /* 0x36040A03: call 0x3601d080 */ /* not lifted */
    233     RECOMP_FLAGS_IN();
    234     RECOMP_ICALL(0x3601F1E0u); /* 0x36040A08: call 0x3601f1e0 */ /* not lifted */
    235     RECOMP_FLAGS_IN();
    236     edx = MEM32(eax); /* 0x36040A0D: mov edx, dword ptr [eax] */
    237     ecx = eax; /* 0x36040A0F: mov ecx, eax */
    238     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x36040A11: call dword ptr [edx + 0x10] */
    239     RECOMP_FLAGS_IN();
    240     esi = eax; /* 0x36040A14: mov esi, eax */
    241     /* test esi, esi */ /* 0x36040A16: test esi, esi */
    242     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
    243     _cf = 0;
    244     _flag_k = FK_TEST;
    245     if (TEST_Z(_flag_a, _flag_b)) goto L_36040A37; /* 0x36040A18: je 0x36040a37 */
    246 L_36040A1A:
    247     PUSH32(esp, 0x361BF8A4u); /* 0x36040A1A: push 0x361bf8a4 */
    248     PUSH32(esp, esi); /* 0x36040A1F: push esi */
    249     ecx = esi + 0xE4; /* 0x36040A20: lea ecx, [esi + 0xe4] */
    250     RECOMP_ICALL(0x360028F0u); /* 0x36040A26: call 0x360028f0 */ /* not lifted */
    251     RECOMP_FLAGS_IN();
    252     PUSH32(esp, 0x41F00000u); /* 0x36040A2B: push 0x41f00000 */
    253     ecx = esi; /* 0x36040A30: mov ecx, esi */
    254     RECOMP_ICALL(0x36071CF0u); /* 0x36040A32: call 0x36071cf0 */ /* not lifted */
    255     RECOMP_FLAGS_IN();
    256 L_36040A37:
    257     esi = POP32_VAL(esp); /* 0x36040A37: pop esi */
    258     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36040A38: ret  */
    259     RECOMP_REGS_OUT();
    260 }
    261 
    262 void sub_360409B0(void) {
    263     int _fpu_cmp = 0;
    264     uint32_t _cf = 0;
    265     int _df = 1;
    266     uint32_t _flag_k = FK_NONE;
    267     uint32_t _flag_a = 0, _flag_b = 0;
    268     uint32_t _itail_tgt = 0;
    269     RECOMP_REGS_LOCALS
    270     RECOMP_ENTER(0x360409B0u);
    271 
    272 L_360409B0:
    273     PUSH32(esp, 0); /* 0x360409B0: push 0 */
    274     PUSH32(esp, 0); /* 0x360409B2: push 0 */
    275     PUSH32(esp, 5); /* 0x360409B4: push 5 */
    276     MEM32(ecx + 0x1C) = 0; /* 0x360409B6: mov dword ptr [ecx + 0x1c], 0 */
    277     RECOMP_ICALL(0x3601C590u); /* 0x360409BD: call 0x3601c590 */ /* not lifted */
    278     RECOMP_FLAGS_IN();
    279     ecx = eax; /* 0x360409C2: mov ecx, eax */
    280     RECOMP_ICALL(0x3601D080u); /* 0x360409C4: call 0x3601d080 */ /* not lifted */
    281     RECOMP_FLAGS_IN();
    282     RECOMP_ICALL(0x3601F1E0u); /* 0x360409C9: call 0x3601f1e0 */ /* not lifted */
    283     RECOMP_FLAGS_IN();
    284     edx = MEM32(eax); /* 0x360409CE: mov edx, dword ptr [eax] */
    285     ecx = eax; /* 0x360409D0: mov ecx, eax */
    286     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x360409D2: call dword ptr [edx + 0x10] */
    287     RECOMP_FLAGS_IN();
    288     /* test eax, eax */ /* 0x360409D5: test eax, eax */
    289     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    290     _cf = 0;
    291     _flag_k = FK_TEST;
    292     if (TEST_Z(_flag_a, _flag_b)) goto L_360409E2; /* 0x360409D7: je 0x360409e2 */
    293 L_360409D9:
    294     PUSH32(esp, 1); /* 0x360409D9: push 1 */
    295     ecx = eax; /* 0x360409DB: mov ecx, eax */
    296     RECOMP_ICALL(0x36071460u); /* 0x360409DD: call 0x36071460 */ /* not lifted */
    297     RECOMP_FLAGS_IN();
    298 L_360409E2:
    299     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360409E2: ret  */
    300     RECOMP_REGS_OUT();
    301 }
    302 
    303 void sub_360409B6(void) {
    304     int _fpu_cmp = 0;
    305     uint32_t _cf = 0;
    306     int _df = 1;
    307     uint32_t _flag_k = FK_NONE;
    308     uint32_t _flag_a = 0, _flag_b = 0;
    309     uint32_t _itail_tgt = 0;
    310     RECOMP_REGS_LOCALS
    311     RECOMP_ENTER(0x360409B6u);
    312 
    313 L_360409B6:
    314     MEM32(ecx + 0x1C) = 0; /* 0x360409B6: mov dword ptr [ecx + 0x1c], 0 */
    315     RECOMP_ICALL(0x3601C590u); /* 0x360409BD: call 0x3601c590 */ /* not lifted */
    316     RECOMP_FLAGS_IN();
    317     ecx = eax; /* 0x360409C2: mov ecx, eax */
    318     RECOMP_ICALL(0x3601D080u); /* 0x360409C4: call 0x3601d080 */ /* not lifted */
    319     RECOMP_FLAGS_IN();
    320     RECOMP_ICALL(0x3601F1E0u); /* 0x360409C9: call 0x3601f1e0 */ /* not lifted */
    321     RECOMP_FLAGS_IN();
    322     edx = MEM32(eax); /* 0x360409CE: mov edx, dword ptr [eax] */
    323     ecx = eax; /* 0x360409D0: mov ecx, eax */
    324     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x360409D2: call dword ptr [edx + 0x10] */
    325     RECOMP_FLAGS_IN();
    326     /* test eax, eax */ /* 0x360409D5: test eax, eax */
    327     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    328     _cf = 0;
    329     _flag_k = FK_TEST;
    330     if (TEST_Z(_flag_a, _flag_b)) goto L_360409E2; /* 0x360409D7: je 0x360409e2 */
    331 L_360409D9:
    332     PUSH32(esp, 1); /* 0x360409D9: push 1 */
    333     ecx = eax; /* 0x360409DB: mov ecx, eax */
    334     RECOMP_ICALL(0x36071460u); /* 0x360409DD: call 0x36071460 */ /* not lifted */
    335     RECOMP_FLAGS_IN();
    336 L_360409E2:
    337     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360409E2: ret  */
    338     RECOMP_REGS_OUT();
    339 }
    340 
    341 void sub_360409F0(void) {
    342     int _fpu_cmp = 0;
    343     uint32_t _cf = 0;
    344     int _df = 1;
    345     uint32_t _flag_k = FK_NONE;
    346     uint32_t _flag_a = 0, _flag_b = 0;
    347     uint32_t _itail_tgt = 0;
    348     RECOMP_REGS_LOCALS
    349     RECOMP_ENTER(0x360409F0u);
    350 
    351 L_360409F0:
    352     eax = MEM32(ecx); /* 0x360409F0: mov eax, dword ptr [ecx] */
    353     PUSH32(esp, esi); /* 0x360409F2: push esi */
    354     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x360409F3: call dword ptr [eax + 8] */
    355     RECOMP_FLAGS_IN();
    356     PUSH32(esp, 0); /* 0x360409F6: push 0 */
    357     PUSH32(esp, 0); /* 0x360409F8: push 0 */
    358     PUSH32(esp, 6); /* 0x360409FA: push 6 */
    359     RECOMP_ICALL(0x3601C590u); /* 0x360409FC: call 0x3601c590 */ /* not lifted */
    360     RECOMP_FLAGS_IN();
    361     ecx = eax; /* 0x36040A01: mov ecx, eax */
    362     RECOMP_ICALL(0x3601D080u); /* 0x36040A03: call 0x3601d080 */ /* not lifted */
    363     RECOMP_FLAGS_IN();
    364     RECOMP_ICALL(0x3601F1E0u); /* 0x36040A08: call 0x3601f1e0 */ /* not lifted */
    365     RECOMP_FLAGS_IN();
    366     edx = MEM32(eax); /* 0x36040A0D: mov edx, dword ptr [eax] */
    367     ecx = eax; /* 0x36040A0F: mov ecx, eax */
    368     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x36040A11: call dword ptr [edx + 0x10] */
    369     RECOMP_FLAGS_IN();
    370     esi = eax; /* 0x36040A14: mov esi, eax */
    371     /* test esi, esi */ /* 0x36040A16: test esi, esi */
    372     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
    373     _cf = 0;
    374     _flag_k = FK_TEST;
    375     if (TEST_Z(_flag_a, _flag_b)) goto L_36040A37; /* 0x36040A18: je 0x36040a37 */
    376 L_36040A1A:
    377     PUSH32(esp, 0x361BF8A4u); /* 0x36040A1A: push 0x361bf8a4 */
    378     PUSH32(esp, esi); /* 0x36040A1F: push esi */
    379     ecx = esi + 0xE4; /* 0x36040A20: lea ecx, [esi + 0xe4] */
    380     RECOMP_ICALL(0x360028F0u); /* 0x36040A26: call 0x360028f0 */ /* not lifted */
    381     RECOMP_FLAGS_IN();
    382     PUSH32(esp, 0x41F00000u); /* 0x36040A2B: push 0x41f00000 */
    383     ecx = esi; /* 0x36040A30: mov ecx, esi */
    384     RECOMP_ICALL(0x36071CF0u); /* 0x36040A32: call 0x36071cf0 */ /* not lifted */
    385     RECOMP_FLAGS_IN();
    386 L_36040A37:
    387     esi = POP32_VAL(esp); /* 0x36040A37: pop esi */
    388     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36040A38: ret  */
    389     RECOMP_REGS_OUT();
    390 }
    391 
    392 void sub_36040A40(void) {
    393     int _fpu_cmp = 0;
    394     uint32_t _cf = 0;
    395     int _df = 1;
    396     uint32_t _flag_k = FK_NONE;
    397     uint32_t _flag_a = 0, _flag_b = 0;
    398     uint32_t _itail_tgt = 0;
    399     RECOMP_REGS_LOCALS
    400     RECOMP_ENTER(0x36040A40u);
    401 
    402 L_36040A40:
    403     eax = MEM32(ecx); /* 0x36040A40: mov eax, dword ptr [ecx] */
    404     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x36040A42: call dword ptr [eax + 8] */
    405     RECOMP_FLAGS_IN();
    406     RECOMP_ICALL(0x3601F1E0u); /* 0x36040A45: call 0x3601f1e0 */ /* not lifted */
    407     RECOMP_FLAGS_IN();
    408     edx = MEM32(eax); /* 0x36040A4A: mov edx, dword ptr [eax] */
    409     ecx = eax; /* 0x36040A4C: mov ecx, eax */
    410     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x36040A4E: call dword ptr [edx + 0x10] */
    411     RECOMP_FLAGS_IN();
    412     /* test eax, eax */ /* 0x36040A51: test eax, eax */
    413     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    414     _cf = 0;
    415     _flag_k = FK_TEST;
    416     if (TEST_Z(_flag_a, _flag_b)) goto L_36040A5E; /* 0x36040A53: je 0x36040a5e */
    417 L_36040A55:
    418     PUSH32(esp, 0); /* 0x36040A55: push 0 */
    419     ecx = eax; /* 0x36040A57: mov ecx, eax */
    420     RECOMP_ICALL(0x36071CF0u); /* 0x36040A59: call 0x36071cf0 */ /* not lifted */
    421     RECOMP_FLAGS_IN();
    422 L_36040A5E:
    423     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36040A5E: ret  */
    424     RECOMP_REGS_OUT();
    425 }
    426 
    427 void sub_36040A60(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(0x36040A60u);
    436 
    437 L_36040A60:
    438     RECOMP_ICALL(0x36040A70u); /* 0x36040A60: call 0x36040a70 */ /* not lifted */
    439     RECOMP_FLAGS_IN();
    440     goto L_36040A90; /* 0x36040A65: jmp 0x36040a90 */
    441 L_36040A90:
    442     PUSH32(esp, 0x36040AA0u); /* 0x36040A90: push 0x36040aa0 */
    443     RECOMP_ICALL(0x3615FEB2u); /* 0x36040A95: call 0x3615feb2 */ /* not lifted */
    444     RECOMP_FLAGS_IN();
    445     ecx = POP32_VAL(esp); /* 0x36040A9A: pop ecx */
    446     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36040A9B: ret  */
    447     RECOMP_REGS_OUT();
    448 }
    449 
    450 void sub_36040A70(void) {
    451     int _fpu_cmp = 0;
    452     uint32_t _cf = 0;
    453     int _df = 1;
    454     uint32_t _flag_k = FK_NONE;
    455     uint32_t _flag_a = 0, _flag_b = 0;
    456     uint32_t _itail_tgt = 0;
    457     RECOMP_REGS_LOCALS
    458     RECOMP_ENTER(0x36040A70u);
    459 
    460 L_36040A70:
    461     PUSH32(esp, ebp); /* 0x36040A70: push ebp */
    462     ebp = esp; /* 0x36040A71: mov ebp, esp */
    463     PUSH32(esp, ecx); /* 0x36040A73: push ecx */
    464     eax = ebp + (-0x1); /* 0x36040A74: lea eax, [ebp - 1] */
    465     PUSH32(esp, eax); /* 0x36040A77: push eax */
    466     ecx = ebp + (-0x2); /* 0x36040A78: lea ecx, [ebp - 2] */
    467     PUSH32(esp, ecx); /* 0x36040A7B: push ecx */
    468     ecx = 0x363065F0u; /* 0x36040A7C: mov ecx, 0x363065f0 */
    469     RECOMP_ICALL(0x36096250u); /* 0x36040A81: call 0x36096250 */ /* not lifted */
    470     RECOMP_FLAGS_IN();
    471     esp = ebp; /* 0x36040A86: mov esp, ebp */
    472     ebp = POP32_VAL(esp); /* 0x36040A88: pop ebp */
    473     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36040A89: ret  */
    474     RECOMP_REGS_OUT();
    475 }
    476 
    477 void sub_36040A90(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(0x36040A90u);
    486 
    487 L_36040A90:
    488     PUSH32(esp, 0x36040AA0u); /* 0x36040A90: push 0x36040aa0 */
    489     RECOMP_ICALL(0x3615FEB2u); /* 0x36040A95: call 0x3615feb2 */ /* not lifted */
    490     RECOMP_FLAGS_IN();
    491     ecx = POP32_VAL(esp); /* 0x36040A9A: pop ecx */
    492     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36040A9B: ret  */
    493     RECOMP_REGS_OUT();
    494 }
    495 
    496 void sub_36040AA0(void) {
    497     int _fpu_cmp = 0;
    498     uint32_t _cf = 0;
    499     int _df = 1;
    500     uint32_t _flag_k = FK_NONE;
    501     uint32_t _flag_a = 0, _flag_b = 0;
    502     uint32_t _itail_tgt = 0;
    503     RECOMP_REGS_LOCALS
    504     RECOMP_ENTER(0x36040AA0u);
    505 
    506     goto L_36040AA0;
    507 L_36030E70:
    508     PUSH32(esp, ebp); /* 0x36030E70: push ebp */
    509     ebp = esp; /* 0x36030E71: mov ebp, esp */
    510     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    511     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    512     esp = esp - 8; /* 0x36030E73: sub esp, 8 */
    513     _flag_k = FK_CMP;
    514     PUSH32(esp, ebx); /* 0x36030E76: push ebx */
    515     PUSH32(esp, esi); /* 0x36030E77: push esi */
    516     esi = ecx; /* 0x36030E78: mov esi, ecx */
    517     ecx = MEM32(esi + 0x10); /* 0x36030E7A: mov ecx, dword ptr [esi + 0x10] */
    518     /* test ecx, ecx */ /* 0x36030E7D: test ecx, ecx */
    519     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    520     _cf = 0;
    521     _flag_k = FK_TEST;
    522     PUSH32(esp, edi); /* 0x36030E7F: push edi */
    523     edi = MEM32(esi + 0x4); /* 0x36030E80: mov edi, dword ptr [esi + 4] */
    524     eax = MEM32(edi); /* 0x36030E83: mov eax, dword ptr [edi] */
    525     MEM32(ebp + (-0x4)) = eax; /* 0x36030E85: mov dword ptr [ebp - 4], eax */
    526     if (TEST_Z(_flag_a, _flag_b)) goto L_36030EE5; /* 0x36030E88: je 0x36030ee5 */
    527 L_36030E8A:
    528     ecx = eax; /* 0x36030E8A: mov ecx, eax */
    529     /* cmp eax, ecx */ /* 0x36030E8C: cmp eax, ecx */
    530     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    531     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    532     _flag_k = FK_CMP;
    533     if (CMP_NE(_flag_a, _flag_b)) goto L_36030EE5; /* 0x36030E8E: jne 0x36030ee5 */
    534 L_36030E90:
    535     /* cmp edi, edi */ /* 0x36030E90: cmp edi, edi */
    536     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    537     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    538     _flag_k = FK_CMP;
    539     if (CMP_NE(_flag_a, _flag_b)) goto L_36030EE5; /* 0x36030E92: jne 0x36030ee5 */
    540 L_36030E94:
    541     ebx = MEM32(edi + 0x4); /* 0x36030E94: mov ebx, dword ptr [edi + 4] */
    542     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x36030E97: cmp ebx, dword ptr [esi + 8] */
    543     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    544     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    545     _flag_k = FK_CMP;
    546     edi = ebx; /* 0x36030E9A: mov edi, ebx */
    547     if (CMP_EQ(_flag_a, _flag_b)) goto L_36030EBD; /* 0x36030E9C: je 0x36030ebd */
    548 L_36030E9E:
    549     eax = MEM32(edi + 0x8); /* 0x36030E9E: mov eax, dword ptr [edi + 8] */
    550     PUSH32(esp, eax); /* 0x36030EA1: push eax */
    551     ecx = esi; /* 0x36030EA2: mov ecx, esi */
    552     RECOMP_ICALL(0x3603E9E0u); /* 0x36030EA4: call 0x3603e9e0 */ /* not lifted */
    553     RECOMP_FLAGS_IN();
    554     edi = MEM32(edi); /* 0x36030EA9: mov edi, dword ptr [edi] */
    555     PUSH32(esp, ebx); /* 0x36030EAB: push ebx */
    556     RECOMP_ICALL(0x3615FCC4u); /* 0x36030EAC: call 0x3615fcc4 */ /* not lifted */
    557     RECOMP_FLAGS_IN();
    558     eax = MEM32(esi + 0x8); /* 0x36030EB1: mov eax, dword ptr [esi + 8] */
    559     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    560     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    561     esp = esp + 4; /* 0x36030EB4: add esp, 4 */
    562     _flag_k = FK_ADD;
    563     /* cmp edi, eax */ /* 0x36030EB7: cmp edi, eax */
    564     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    565     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    566     _flag_k = FK_CMP;
    567     ebx = edi; /* 0x36030EB9: mov ebx, edi */
    568     RECOMP_BACKEDGE();
    569     if (CMP_NE(_flag_a, _flag_b)) goto L_36030E9E; /* 0x36030EBB: jne 0x36030e9e */
    570 L_36030EBD:
    571     ecx = MEM32(esi + 0x4); /* 0x36030EBD: mov ecx, dword ptr [esi + 4] */
    572     edx = MEM32(esi + 0x8); /* 0x36030EC0: mov edx, dword ptr [esi + 8] */
    573     MEM32(ecx + 0x4) = edx; /* 0x36030EC3: mov dword ptr [ecx + 4], edx */
    574     eax = MEM32(esi + 0x4); /* 0x36030EC6: mov eax, dword ptr [esi + 4] */
    575     MEM32(esi + 0x10) = 0; /* 0x36030EC9: mov dword ptr [esi + 0x10], 0 */
    576     MEM32(eax) = eax; /* 0x36030ED0: mov dword ptr [eax], eax */
    577     eax = MEM32(esi + 0x4); /* 0x36030ED2: mov eax, dword ptr [esi + 4] */
    578     MEM32(eax + 0x8) = eax; /* 0x36030ED5: mov dword ptr [eax + 8], eax */
    579     eax = ebp + (-0x8); /* 0x36030ED8: lea eax, [ebp - 8] */
    580     PUSH32(esp, eax); /* 0x36030EDB: push eax */
    581     ecx = esi; /* 0x36030EDC: mov ecx, esi */
    582     RECOMP_ICALL(0x3614FC30u); /* 0x36030EDE: call 0x3614fc30 */ /* not lifted */
    583     RECOMP_FLAGS_IN();
    584     goto L_36030F06; /* 0x36030EE3: jmp 0x36030f06 */
    585 L_36030EE5:
    586     /* cmp eax, edi */ /* 0x36030EE5: cmp eax, edi */
    587     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    588     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    589     _flag_k = FK_CMP;
    590     if (CMP_EQ(_flag_a, _flag_b)) goto L_36030F06; /* 0x36030EE7: je 0x36030f06 */
    591 L_36030EE9:
    592     ecx = ebp + (-0x4); /* 0x36030EE9: lea ecx, [ebp - 4] */
    593     ebx = eax; /* 0x36030EEC: mov ebx, eax */
    594     RECOMP_ICALL(0x36064140u); /* 0x36030EEE: call 0x36064140 */ /* not lifted */
    595     RECOMP_FLAGS_IN();
    596     PUSH32(esp, ebx); /* 0x36030EF3: push ebx */
    597     ecx = ebp + (-0x8); /* 0x36030EF4: lea ecx, [ebp - 8] */
    598     PUSH32(esp, ecx); /* 0x36030EF7: push ecx */
    599     ecx = esi; /* 0x36030EF8: mov ecx, esi */
    600     RECOMP_ICALL(0x360588E0u); /* 0x36030EFA: call 0x360588e0 */ /* not lifted */
    601     RECOMP_FLAGS_IN();
    602     eax = MEM32(ebp + (-0x4)); /* 0x36030EFF: mov eax, dword ptr [ebp - 4] */
    603     /* cmp eax, edi */ /* 0x36030F02: cmp eax, edi */
    604     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    605     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    606     _flag_k = FK_CMP;
    607     RECOMP_BACKEDGE();
    608     if (CMP_NE(_flag_a, _flag_b)) goto L_36030EE9; /* 0x36030F04: jne 0x36030ee9 */
    609 L_36030F06:
    610     edx = MEM32(esi + 0x4); /* 0x36030F06: mov edx, dword ptr [esi + 4] */
    611     PUSH32(esp, edx); /* 0x36030F09: push edx */
    612     RECOMP_ICALL(0x3615FCC4u); /* 0x36030F0A: call 0x3615fcc4 */ /* not lifted */
    613     RECOMP_FLAGS_IN();
    614     eax = MEM32(esi + 0x8); /* 0x36030F0F: mov eax, dword ptr [esi + 8] */
    615     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    616     edi = 0; /* 0x36030F12: xor edi, edi */
    617     _cf = 0;
    618     _flag_k = FK_TEST;
    619     PUSH32(esp, eax); /* 0x36030F14: push eax */
    620     MEM32(esi + 0x4) = edi; /* 0x36030F15: mov dword ptr [esi + 4], edi */
    621     MEM32(esi + 0x10) = edi; /* 0x36030F18: mov dword ptr [esi + 0x10], edi */
    622     RECOMP_ICALL(0x3615FCC4u); /* 0x36030F1B: call 0x3615fcc4 */ /* not lifted */
    623     RECOMP_FLAGS_IN();
    624     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    625     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    626     esp = esp + 8; /* 0x36030F20: add esp, 8 */
    627     _flag_k = FK_ADD;
    628     MEM32(esi + 0x8) = edi; /* 0x36030F23: mov dword ptr [esi + 8], edi */
    629     edi = POP32_VAL(esp); /* 0x36030F26: pop edi */
    630     esi = POP32_VAL(esp); /* 0x36030F27: pop esi */
    631     ebx = POP32_VAL(esp); /* 0x36030F28: pop ebx */
    632     esp = ebp; /* 0x36030F29: mov esp, ebp */
    633     ebp = POP32_VAL(esp); /* 0x36030F2B: pop ebp */
    634     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36030F2C: ret  */
    635 L_36040AA0:
    636     ecx = 0x363065F0u; /* 0x36040AA0: mov ecx, 0x363065f0 */
    637     RECOMP_BACKEDGE();
    638     goto L_36030E70; /* 0x36040AA5: jmp 0x36030e70 */
    639     { RECOMP_REGS_OUT(); return; } /* end of function */
    640     RECOMP_REGS_OUT();
    641 }
    642 
    643 void sub_36040AB0(void) {
    644     int _fpu_cmp = 0;
    645     uint32_t _cf = 0;
    646     int _df = 1;
    647     uint32_t _flag_k = FK_NONE;
    648     uint32_t _flag_a = 0, _flag_b = 0;
    649     uint32_t _itail_tgt = 0;
    650     RECOMP_REGS_LOCALS
    651     RECOMP_ENTER(0x36040AB0u);
    652 
    653 L_36040AB0:
    654     RECOMP_ICALL(0x36040AC0u); /* 0x36040AB0: call 0x36040ac0 */ /* not lifted */
    655     RECOMP_FLAGS_IN();
    656     goto L_36040AE0; /* 0x36040AB5: jmp 0x36040ae0 */
    657 L_36040AE0:
    658     PUSH32(esp, 0x36040AF0u); /* 0x36040AE0: push 0x36040af0 */
    659     RECOMP_ICALL(0x3615FEB2u); /* 0x36040AE5: call 0x3615feb2 */ /* not lifted */
    660     RECOMP_FLAGS_IN();
    661     ecx = POP32_VAL(esp); /* 0x36040AEA: pop ecx */
    662     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36040AEB: ret  */
    663     RECOMP_REGS_OUT();
    664 }
    665 
    666 void sub_36040AC0(void) {
    667     int _fpu_cmp = 0;
    668     uint32_t _cf = 0;
    669     int _df = 1;
    670     uint32_t _flag_k = FK_NONE;
    671     uint32_t _flag_a = 0, _flag_b = 0;
    672     uint32_t _itail_tgt = 0;
    673     RECOMP_REGS_LOCALS
    674     RECOMP_ENTER(0x36040AC0u);
    675 
    676 L_36040AC0:
    677     PUSH32(esp, ebp); /* 0x36040AC0: push ebp */
    678     ebp = esp; /* 0x36040AC1: mov ebp, esp */
    679     PUSH32(esp, ecx); /* 0x36040AC3: push ecx */
    680     eax = ebp + (-0x1); /* 0x36040AC4: lea eax, [ebp - 1] */
    681     PUSH32(esp, eax); /* 0x36040AC7: push eax */
    682     ecx = ebp + (-0x2); /* 0x36040AC8: lea ecx, [ebp - 2] */
    683     PUSH32(esp, ecx); /* 0x36040ACB: push ecx */
    684     ecx = 0x363065D8u; /* 0x36040ACC: mov ecx, 0x363065d8 */
    685     RECOMP_ICALL(0x36096250u); /* 0x36040AD1: call 0x36096250 */ /* not lifted */
    686     RECOMP_FLAGS_IN();
    687     esp = ebp; /* 0x36040AD6: mov esp, ebp */
    688     ebp = POP32_VAL(esp); /* 0x36040AD8: pop ebp */
    689     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36040AD9: ret  */
    690     RECOMP_REGS_OUT();
    691 }
    692 
    693 void sub_36040AE0(void) {
    694     int _fpu_cmp = 0;
    695     uint32_t _cf = 0;
    696     int _df = 1;
    697     uint32_t _flag_k = FK_NONE;
    698     uint32_t _flag_a = 0, _flag_b = 0;
    699     uint32_t _itail_tgt = 0;
    700     RECOMP_REGS_LOCALS
    701     RECOMP_ENTER(0x36040AE0u);
    702 
    703 L_36040AE0:
    704     PUSH32(esp, 0x36040AF0u); /* 0x36040AE0: push 0x36040af0 */
    705     RECOMP_ICALL(0x3615FEB2u); /* 0x36040AE5: call 0x3615feb2 */ /* not lifted */
    706     RECOMP_FLAGS_IN();
    707     ecx = POP32_VAL(esp); /* 0x36040AEA: pop ecx */
    708     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36040AEB: ret  */
    709     RECOMP_REGS_OUT();
    710 }
    711 
    712 void sub_36040AF0(void) {
    713     int _fpu_cmp = 0;
    714     uint32_t _cf = 0;
    715     int _df = 1;
    716     uint32_t _flag_k = FK_NONE;
    717     uint32_t _flag_a = 0, _flag_b = 0;
    718     uint32_t _itail_tgt = 0;
    719     RECOMP_REGS_LOCALS
    720     RECOMP_ENTER(0x36040AF0u);
    721 
    722     goto L_36040AF0;
    723 L_36030E70:
    724     PUSH32(esp, ebp); /* 0x36030E70: push ebp */
    725     ebp = esp; /* 0x36030E71: mov ebp, esp */
    726     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    727     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    728     esp = esp - 8; /* 0x36030E73: sub esp, 8 */
    729     _flag_k = FK_CMP;
    730     PUSH32(esp, ebx); /* 0x36030E76: push ebx */
    731     PUSH32(esp, esi); /* 0x36030E77: push esi */
    732     esi = ecx; /* 0x36030E78: mov esi, ecx */
    733     ecx = MEM32(esi + 0x10); /* 0x36030E7A: mov ecx, dword ptr [esi + 0x10] */
    734     /* test ecx, ecx */ /* 0x36030E7D: test ecx, ecx */
    735     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    736     _cf = 0;
    737     _flag_k = FK_TEST;
    738     PUSH32(esp, edi); /* 0x36030E7F: push edi */
    739     edi = MEM32(esi + 0x4); /* 0x36030E80: mov edi, dword ptr [esi + 4] */
    740     eax = MEM32(edi); /* 0x36030E83: mov eax, dword ptr [edi] */
    741     MEM32(ebp + (-0x4)) = eax; /* 0x36030E85: mov dword ptr [ebp - 4], eax */
    742     if (TEST_Z(_flag_a, _flag_b)) goto L_36030EE5; /* 0x36030E88: je 0x36030ee5 */
    743 L_36030E8A:
    744     ecx = eax; /* 0x36030E8A: mov ecx, eax */
    745     /* cmp eax, ecx */ /* 0x36030E8C: cmp eax, ecx */
    746     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    747     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    748     _flag_k = FK_CMP;
    749     if (CMP_NE(_flag_a, _flag_b)) goto L_36030EE5; /* 0x36030E8E: jne 0x36030ee5 */
    750 L_36030E90:
    751     /* cmp edi, edi */ /* 0x36030E90: cmp edi, edi */
    752     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    753     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    754     _flag_k = FK_CMP;
    755     if (CMP_NE(_flag_a, _flag_b)) goto L_36030EE5; /* 0x36030E92: jne 0x36030ee5 */
    756 L_36030E94:
    757     ebx = MEM32(edi + 0x4); /* 0x36030E94: mov ebx, dword ptr [edi + 4] */
    758     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x36030E97: cmp ebx, dword ptr [esi + 8] */
    759     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    760     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    761     _flag_k = FK_CMP;
    762     edi = ebx; /* 0x36030E9A: mov edi, ebx */
    763     if (CMP_EQ(_flag_a, _flag_b)) goto L_36030EBD; /* 0x36030E9C: je 0x36030ebd */
    764 L_36030E9E:
    765     eax = MEM32(edi + 0x8); /* 0x36030E9E: mov eax, dword ptr [edi + 8] */
    766     PUSH32(esp, eax); /* 0x36030EA1: push eax */
    767     ecx = esi; /* 0x36030EA2: mov ecx, esi */
    768     RECOMP_ICALL(0x3603E9E0u); /* 0x36030EA4: call 0x3603e9e0 */ /* not lifted */
    769     RECOMP_FLAGS_IN();
    770     edi = MEM32(edi); /* 0x36030EA9: mov edi, dword ptr [edi] */
    771     PUSH32(esp, ebx); /* 0x36030EAB: push ebx */
    772     RECOMP_ICALL(0x3615FCC4u); /* 0x36030EAC: call 0x3615fcc4 */ /* not lifted */
    773     RECOMP_FLAGS_IN();
    774     eax = MEM32(esi + 0x8); /* 0x36030EB1: mov eax, dword ptr [esi + 8] */
    775     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    776     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    777     esp = esp + 4; /* 0x36030EB4: add esp, 4 */
    778     _flag_k = FK_ADD;
    779     /* cmp edi, eax */ /* 0x36030EB7: cmp edi, eax */
    780     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    781     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    782     _flag_k = FK_CMP;
    783     ebx = edi; /* 0x36030EB9: mov ebx, edi */
    784     RECOMP_BACKEDGE();
    785     if (CMP_NE(_flag_a, _flag_b)) goto L_36030E9E; /* 0x36030EBB: jne 0x36030e9e */
    786 L_36030EBD:
    787     ecx = MEM32(esi + 0x4); /* 0x36030EBD: mov ecx, dword ptr [esi + 4] */
    788     edx = MEM32(esi + 0x8); /* 0x36030EC0: mov edx, dword ptr [esi + 8] */
    789     MEM32(ecx + 0x4) = edx; /* 0x36030EC3: mov dword ptr [ecx + 4], edx */
    790     eax = MEM32(esi + 0x4); /* 0x36030EC6: mov eax, dword ptr [esi + 4] */
    791     MEM32(esi + 0x10) = 0; /* 0x36030EC9: mov dword ptr [esi + 0x10], 0 */
    792     MEM32(eax) = eax; /* 0x36030ED0: mov dword ptr [eax], eax */
    793     eax = MEM32(esi + 0x4); /* 0x36030ED2: mov eax, dword ptr [esi + 4] */
    794     MEM32(eax + 0x8) = eax; /* 0x36030ED5: mov dword ptr [eax + 8], eax */
    795     eax = ebp + (-0x8); /* 0x36030ED8: lea eax, [ebp - 8] */
    796     PUSH32(esp, eax); /* 0x36030EDB: push eax */
    797     ecx = esi; /* 0x36030EDC: mov ecx, esi */
    798     RECOMP_ICALL(0x3614FC30u); /* 0x36030EDE: call 0x3614fc30 */ /* not lifted */
    799     RECOMP_FLAGS_IN();
    800     goto L_36030F06; /* 0x36030EE3: jmp 0x36030f06 */
    801 L_36030EE5:
    802     /* cmp eax, edi */ /* 0x36030EE5: cmp eax, edi */
    803     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    804     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    805     _flag_k = FK_CMP;
    806     if (CMP_EQ(_flag_a, _flag_b)) goto L_36030F06; /* 0x36030EE7: je 0x36030f06 */
    807 L_36030EE9:
    808     ecx = ebp + (-0x4); /* 0x36030EE9: lea ecx, [ebp - 4] */
    809     ebx = eax; /* 0x36030EEC: mov ebx, eax */
    810     RECOMP_ICALL(0x36064140u); /* 0x36030EEE: call 0x36064140 */ /* not lifted */
    811     RECOMP_FLAGS_IN();
    812     PUSH32(esp, ebx); /* 0x36030EF3: push ebx */
    813     ecx = ebp + (-0x8); /* 0x36030EF4: lea ecx, [ebp - 8] */
    814     PUSH32(esp, ecx); /* 0x36030EF7: push ecx */
    815     ecx = esi; /* 0x36030EF8: mov ecx, esi */
    816     RECOMP_ICALL(0x360588E0u); /* 0x36030EFA: call 0x360588e0 */ /* not lifted */
    817     RECOMP_FLAGS_IN();
    818     eax = MEM32(ebp + (-0x4)); /* 0x36030EFF: mov eax, dword ptr [ebp - 4] */
    819     /* cmp eax, edi */ /* 0x36030F02: cmp eax, edi */
    820     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    821     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    822     _flag_k = FK_CMP;
    823     RECOMP_BACKEDGE();
    824     if (CMP_NE(_flag_a, _flag_b)) goto L_36030EE9; /* 0x36030F04: jne 0x36030ee9 */
    825 L_36030F06:
    826     edx = MEM32(esi + 0x4); /* 0x36030F06: mov edx, dword ptr [esi + 4] */
    827     PUSH32(esp, edx); /* 0x36030F09: push edx */
    828     RECOMP_ICALL(0x3615FCC4u); /* 0x36030F0A: call 0x3615fcc4 */ /* not lifted */
    829     RECOMP_FLAGS_IN();
    830     eax = MEM32(esi + 0x8); /* 0x36030F0F: mov eax, dword ptr [esi + 8] */
    831     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    832     edi = 0; /* 0x36030F12: xor edi, edi */
    833     _cf = 0;
    834     _flag_k = FK_TEST;
    835     PUSH32(esp, eax); /* 0x36030F14: push eax */
    836     MEM32(esi + 0x4) = edi; /* 0x36030F15: mov dword ptr [esi + 4], edi */
    837     MEM32(esi + 0x10) = edi; /* 0x36030F18: mov dword ptr [esi + 0x10], edi */
    838     RECOMP_ICALL(0x3615FCC4u); /* 0x36030F1B: call 0x3615fcc4 */ /* not lifted */
    839     RECOMP_FLAGS_IN();
    840     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    841     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    842     esp = esp + 8; /* 0x36030F20: add esp, 8 */
    843     _flag_k = FK_ADD;
    844     MEM32(esi + 0x8) = edi; /* 0x36030F23: mov dword ptr [esi + 8], edi */
    845     edi = POP32_VAL(esp); /* 0x36030F26: pop edi */
    846     esi = POP32_VAL(esp); /* 0x36030F27: pop esi */
    847     ebx = POP32_VAL(esp); /* 0x36030F28: pop ebx */
    848     esp = ebp; /* 0x36030F29: mov esp, ebp */
    849     ebp = POP32_VAL(esp); /* 0x36030F2B: pop ebp */
    850     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36030F2C: ret  */
    851 L_36040AF0:
    852     ecx = 0x363065D8u; /* 0x36040AF0: mov ecx, 0x363065d8 */
    853     RECOMP_BACKEDGE();
    854     goto L_36030E70; /* 0x36040AF5: jmp 0x36030e70 */
    855     { RECOMP_REGS_OUT(); return; } /* end of function */
    856     RECOMP_REGS_OUT();
    857 }
    858 
    859 void sub_36040B00(void) {
    860     int _fpu_cmp = 0;
    861     uint32_t _cf = 0;
    862     int _df = 1;
    863     uint32_t _flag_k = FK_NONE;
    864     uint32_t _flag_a = 0, _flag_b = 0;
    865     uint32_t _itail_tgt = 0;
    866     RECOMP_REGS_LOCALS
    867     RECOMP_ENTER(0x36040B00u);
    868 
    869 L_36040B00:
    870     PUSH32(esp, ebp); /* 0x36040B00: push ebp */
    871     ebp = esp; /* 0x36040B01: mov ebp, esp */
    872     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
    873     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    874     esp = esp - 0x18u; /* 0x36040B03: sub esp, 0x18 */
    875     _flag_k = FK_CMP;
    876     PUSH32(esp, esi); /* 0x36040B06: push esi */
    877     eax = ebp + (-0x4); /* 0x36040B07: lea eax, [ebp - 4] */
    878     PUSH32(esp, eax); /* 0x36040B0A: push eax */
    879     ecx = ebp + (-0x8); /* 0x36040B0B: lea ecx, [ebp - 8] */
    880     PUSH32(esp, ecx); /* 0x36040B0E: push ecx */
    881     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    882     esi = 0; /* 0x36040B0F: xor esi, esi */
    883     _cf = 0;
    884     _flag_k = FK_TEST;
    885     ecx = ebp + (-0x10); /* 0x36040B11: lea ecx, [ebp - 0x10] */
    886     MEM32(ebp + (-0x8)) = 1; /* 0x36040B14: mov dword ptr [ebp - 8], 1 */
    887     MEM32(ebp + (-0x4)) = esi; /* 0x36040B1B: mov dword ptr [ebp - 4], esi */
    888     RECOMP_ICALL(0x3603E680u); /* 0x36040B1E: call 0x3603e680 */ /* not lifted */
    889     RECOMP_FLAGS_IN();
    890     PUSH32(esp, eax); /* 0x36040B23: push eax */
    891     edx = ebp + (-0x18); /* 0x36040B24: lea edx, [ebp - 0x18] */
    892     PUSH32(esp, edx); /* 0x36040B27: push edx */
    893     ecx = 0x363065F0u; /* 0x36040B28: mov ecx, 0x363065f0 */
    894     RECOMP_ICALL(0x360E2B30u); /* 0x36040B2D: call 0x360e2b30 */ /* not lifted */
    895     RECOMP_FLAGS_IN();
    896     eax = MEM32(eax); /* 0x36040B32: mov eax, dword ptr [eax] */
    897     MEM32(eax + 0x10) = 0x361C0D40u; /* 0x36040B34: mov dword ptr [eax + 0x10], 0x361c0d40 */
    898     eax = ebp + (-0x8); /* 0x36040B3B: lea eax, [ebp - 8] */
    899     PUSH32(esp, eax); /* 0x36040B3E: push eax */
    900     ecx = ebp + (-0x4); /* 0x36040B3F: lea ecx, [ebp - 4] */
    901     PUSH32(esp, ecx); /* 0x36040B42: push ecx */
    902     ecx = ebp + (-0x18); /* 0x36040B43: lea ecx, [ebp - 0x18] */
    903     MEM32(ebp + (-0x4)) = 2; /* 0x36040B46: mov dword ptr [ebp - 4], 2 */
    904     MEM32(ebp + (-0x8)) = esi; /* 0x36040B4D: mov dword ptr [ebp - 8], esi */
    905     RECOMP_ICALL(0x3603E680u); /* 0x36040B50: call 0x3603e680 */ /* not lifted */
    906     RECOMP_FLAGS_IN();
    907     PUSH32(esp, eax); /* 0x36040B55: push eax */
    908     edx = ebp + (-0x10); /* 0x36040B56: lea edx, [ebp - 0x10] */
    909     PUSH32(esp, edx); /* 0x36040B59: push edx */
    910     ecx = 0x363065F0u; /* 0x36040B5A: mov ecx, 0x363065f0 */
    911     RECOMP_ICALL(0x360E2B30u); /* 0x36040B5F: call 0x360e2b30 */ /* not lifted */
    912     RECOMP_FLAGS_IN();
    913     eax = MEM32(eax); /* 0x36040B64: mov eax, dword ptr [eax] */
    914     MEM32(eax + 0x10) = 0x361C0D0Cu; /* 0x36040B66: mov dword ptr [eax + 0x10], 0x361c0d0c */
    915     eax = ebp + (-0x8); /* 0x36040B6D: lea eax, [ebp - 8] */
    916     PUSH32(esp, eax); /* 0x36040B70: push eax */
    917     ecx = ebp + (-0x4); /* 0x36040B71: lea ecx, [ebp - 4] */
    918     PUSH32(esp, ecx); /* 0x36040B74: push ecx */
    919     ecx = ebp + (-0x18); /* 0x36040B75: lea ecx, [ebp - 0x18] */
    920     MEM32(ebp + (-0x4)) = 3; /* 0x36040B78: mov dword ptr [ebp - 4], 3 */
    921     MEM32(ebp + (-0x8)) = esi; /* 0x36040B7F: mov dword ptr [ebp - 8], esi */
    922     RECOMP_ICALL(0x3603E680u); /* 0x36040B82: call 0x3603e680 */ /* not lifted */
    923     RECOMP_FLAGS_IN();
    924     PUSH32(esp, eax); /* 0x36040B87: push eax */
    925     edx = ebp + (-0x10); /* 0x36040B88: lea edx, [ebp - 0x10] */
    926     PUSH32(esp, edx); /* 0x36040B8B: push edx */
    927     ecx = 0x363065F0u; /* 0x36040B8C: mov ecx, 0x363065f0 */
    928     RECOMP_ICALL(0x360E2B30u); /* 0x36040B91: call 0x360e2b30 */ /* not lifted */
    929     RECOMP_FLAGS_IN();
    930     eax = MEM32(eax); /* 0x36040B96: mov eax, dword ptr [eax] */
    931     MEM32(eax + 0x10) = 0x361C0CECu; /* 0x36040B98: mov dword ptr [eax + 0x10], 0x361c0cec */
    932     eax = ebp + (-0x8); /* 0x36040B9F: lea eax, [ebp - 8] */
    933     PUSH32(esp, eax); /* 0x36040BA2: push eax */
    934     ecx = ebp + (-0x4); /* 0x36040BA3: lea ecx, [ebp - 4] */
    935     PUSH32(esp, ecx); /* 0x36040BA6: push ecx */
    936     ecx = ebp + (-0x18); /* 0x36040BA7: lea ecx, [ebp - 0x18] */
    937     MEM32(ebp + (-0x4)) = 4; /* 0x36040BAA: mov dword ptr [ebp - 4], 4 */
    938     MEM32(ebp + (-0x8)) = esi; /* 0x36040BB1: mov dword ptr [ebp - 8], esi */
    939     RECOMP_ICALL(0x3603E680u); /* 0x36040BB4: call 0x3603e680 */ /* not lifted */
    940     RECOMP_FLAGS_IN();
    941     PUSH32(esp, eax); /* 0x36040BB9: push eax */
    942     edx = ebp + (-0x10); /* 0x36040BBA: lea edx, [ebp - 0x10] */
    943     PUSH32(esp, edx); /* 0x36040BBD: push edx */
    944     ecx = 0x363065F0u; /* 0x36040BBE: mov ecx, 0x363065f0 */
    945     RECOMP_ICALL(0x360E2B30u); /* 0x36040BC3: call 0x360e2b30 */ /* not lifted */
    946     RECOMP_FLAGS_IN();
    947     eax = MEM32(eax); /* 0x36040BC8: mov eax, dword ptr [eax] */
    948     MEM32(eax + 0x10) = 0x361C0CB8u; /* 0x36040BCA: mov dword ptr [eax + 0x10], 0x361c0cb8 */
    949     eax = ebp + (-0x8); /* 0x36040BD1: lea eax, [ebp - 8] */
    950     PUSH32(esp, eax); /* 0x36040BD4: push eax */
    951     ecx = ebp + (-0x4); /* 0x36040BD5: lea ecx, [ebp - 4] */
    952     PUSH32(esp, ecx); /* 0x36040BD8: push ecx */
    953     ecx = ebp + (-0x18); /* 0x36040BD9: lea ecx, [ebp - 0x18] */
    954     MEM32(ebp + (-0x4)) = 5; /* 0x36040BDC: mov dword ptr [ebp - 4], 5 */
    955     MEM32(ebp + (-0x8)) = esi; /* 0x36040BE3: mov dword ptr [ebp - 8], esi */
    956     RECOMP_ICALL(0x3603E680u); /* 0x36040BE6: call 0x3603e680 */ /* not lifted */
    957     RECOMP_FLAGS_IN();
    958     PUSH32(esp, eax); /* 0x36040BEB: push eax */
    959     edx = ebp + (-0x10); /* 0x36040BEC: lea edx, [ebp - 0x10] */
    960     PUSH32(esp, edx); /* 0x36040BEF: push edx */
    961     ecx = 0x363065F0u; /* 0x36040BF0: mov ecx, 0x363065f0 */
    962     RECOMP_ICALL(0x360E2B30u); /* 0x36040BF5: call 0x360e2b30 */ /* not lifted */
    963     RECOMP_FLAGS_IN();
    964     eax = MEM32(eax); /* 0x36040BFA: mov eax, dword ptr [eax] */
    965     MEM32(eax + 0x10) = 0x361C0C90u; /* 0x36040BFC: mov dword ptr [eax + 0x10], 0x361c0c90 */
    966     eax = ebp + (-0x8); /* 0x36040C03: lea eax, [ebp - 8] */
    967     MEM32(ebp + (-0x4)) = 6; /* 0x36040C06: mov dword ptr [ebp - 4], 6 */
    968     MEM32(ebp + (-0x8)) = esi; /* 0x36040C0D: mov dword ptr [ebp - 8], esi */
    969     PUSH32(esp, eax); /* 0x36040C10: push eax */
    970     ecx = ebp + (-0x4); /* 0x36040C11: lea ecx, [ebp - 4] */
    971     PUSH32(esp, ecx); /* 0x36040C14: push ecx */
    972     ecx = ebp + (-0x18); /* 0x36040C15: lea ecx, [ebp - 0x18] */
    973     RECOMP_ICALL(0x3603E680u); /* 0x36040C18: call 0x3603e680 */ /* not lifted */
    974     RECOMP_FLAGS_IN();
    975     PUSH32(esp, eax); /* 0x36040C1D: push eax */
    976     edx = ebp + (-0x10); /* 0x36040C1E: lea edx, [ebp - 0x10] */
    977     PUSH32(esp, edx); /* 0x36040C21: push edx */
    978     ecx = 0x363065F0u; /* 0x36040C22: mov ecx, 0x363065f0 */
    979     RECOMP_ICALL(0x360E2B30u); /* 0x36040C27: call 0x360e2b30 */ /* not lifted */
    980     RECOMP_FLAGS_IN();
    981     eax = MEM32(eax); /* 0x36040C2C: mov eax, dword ptr [eax] */
    982     MEM32(eax + 0x10) = 0x361C0C4Cu; /* 0x36040C2E: mov dword ptr [eax + 0x10], 0x361c0c4c */
    983     eax = ebp + (-0x8); /* 0x36040C35: lea eax, [ebp - 8] */
    984     PUSH32(esp, eax); /* 0x36040C38: push eax */
    985     ecx = ebp + (-0x4); /* 0x36040C39: lea ecx, [ebp - 4] */
    986     PUSH32(esp, ecx); /* 0x36040C3C: push ecx */
    987     ecx = ebp + (-0x18); /* 0x36040C3D: lea ecx, [ebp - 0x18] */
    988     MEM32(ebp + (-0x4)) = 7; /* 0x36040C40: mov dword ptr [ebp - 4], 7 */
    989     MEM32(ebp + (-0x8)) = esi; /* 0x36040C47: mov dword ptr [ebp - 8], esi */
    990     RECOMP_ICALL(0x3603E680u); /* 0x36040C4A: call 0x3603e680 */ /* not lifted */
    991     RECOMP_FLAGS_IN();
    992     PUSH32(esp, eax); /* 0x36040C4F: push eax */
    993     edx = ebp + (-0x10); /* 0x36040C50: lea edx, [ebp - 0x10] */
    994     PUSH32(esp, edx); /* 0x36040C53: push edx */
    995     ecx = 0x363065F0u; /* 0x36040C54: mov ecx, 0x363065f0 */
    996     RECOMP_ICALL(0x360E2B30u); /* 0x36040C59: call 0x360e2b30 */ /* not lifted */
    997     RECOMP_FLAGS_IN();
    998     eax = MEM32(eax); /* 0x36040C5E: mov eax, dword ptr [eax] */
    999     MEM32(eax + 0x10) = 0x361C0C14u; /* 0x36040C60: mov dword ptr [eax + 0x10], 0x361c0c14 */
   1000     eax = ebp + (-0x8); /* 0x36040C67: lea eax, [ebp - 8] */
   1001     PUSH32(esp, eax); /* 0x36040C6A: push eax */
   1002     ecx = ebp + (-0x4); /* 0x36040C6B: lea ecx, [ebp - 4] */
   1003     PUSH32(esp, ecx); /* 0x36040C6E: push ecx */
   1004     ecx = ebp + (-0x18); /* 0x36040C6F: lea ecx, [ebp - 0x18] */
   1005     MEM32(ebp + (-0x4)) = 8; /* 0x36040C72: mov dword ptr [ebp - 4], 8 */
   1006     MEM32(ebp + (-0x8)) = esi; /* 0x36040C79: mov dword ptr [ebp - 8], esi */
   1007     RECOMP_ICALL(0x3603E680u); /* 0x36040C7C: call 0x3603e680 */ /* not lifted */
   1008     RECOMP_FLAGS_IN();
   1009     PUSH32(esp, eax); /* 0x36040C81: push eax */
   1010     edx = ebp + (-0x10); /* 0x36040C82: lea edx, [ebp - 0x10] */
   1011     PUSH32(esp, edx); /* 0x36040C85: push edx */
   1012     ecx = 0x363065F0u; /* 0x36040C86: mov ecx, 0x363065f0 */
   1013     RECOMP_ICALL(0x360E2B30u); /* 0x36040C8B: call 0x360e2b30 */ /* not lifted */
   1014     RECOMP_FLAGS_IN();
   1015     eax = MEM32(eax); /* 0x36040C90: mov eax, dword ptr [eax] */
   1016     MEM32(eax + 0x10) = 0x361C0BDCu; /* 0x36040C92: mov dword ptr [eax + 0x10], 0x361c0bdc */
   1017     eax = ebp + (-0x8); /* 0x36040C99: lea eax, [ebp - 8] */
   1018     PUSH32(esp, eax); /* 0x36040C9C: push eax */
   1019     ecx = ebp + (-0x4); /* 0x36040C9D: lea ecx, [ebp - 4] */
   1020     PUSH32(esp, ecx); /* 0x36040CA0: push ecx */
   1021     ecx = ebp + (-0x18); /* 0x36040CA1: lea ecx, [ebp - 0x18] */
   1022     MEM32(ebp + (-0x4)) = 9; /* 0x36040CA4: mov dword ptr [ebp - 4], 9 */
   1023     MEM32(ebp + (-0x8)) = esi; /* 0x36040CAB: mov dword ptr [ebp - 8], esi */
   1024     RECOMP_ICALL(0x3603E680u); /* 0x36040CAE: call 0x3603e680 */ /* not lifted */
   1025     RECOMP_FLAGS_IN();
   1026     PUSH32(esp, eax); /* 0x36040CB3: push eax */
   1027     edx = ebp + (-0x10); /* 0x36040CB4: lea edx, [ebp - 0x10] */
   1028     PUSH32(esp, edx); /* 0x36040CB7: push edx */
   1029     ecx = 0x363065F0u; /* 0x36040CB8: mov ecx, 0x363065f0 */
   1030     RECOMP_ICALL(0x360E2B30u); /* 0x36040CBD: call 0x360e2b30 */ /* not lifted */
   1031     RECOMP_FLAGS_IN();
   1032     eax = MEM32(eax); /* 0x36040CC2: mov eax, dword ptr [eax] */
   1033     MEM32(eax + 0x10) = 0x361C0BA4u; /* 0x36040CC4: mov dword ptr [eax + 0x10], 0x361c0ba4 */
   1034     eax = ebp + (-0x8); /* 0x36040CCB: lea eax, [ebp - 8] */
   1035     PUSH32(esp, eax); /* 0x36040CCE: push eax */
   1036     ecx = ebp + (-0x4); /* 0x36040CCF: lea ecx, [ebp - 4] */
   1037     PUSH32(esp, ecx); /* 0x36040CD2: push ecx */
   1038     ecx = ebp + (-0x18); /* 0x36040CD3: lea ecx, [ebp - 0x18] */
   1039     MEM32(ebp + (-0x4)) = 0xAu; /* 0x36040CD6: mov dword ptr [ebp - 4], 0xa */
   1040     MEM32(ebp + (-0x8)) = esi; /* 0x36040CDD: mov dword ptr [ebp - 8], esi */
   1041     RECOMP_ICALL(0x3603E680u); /* 0x36040CE0: call 0x3603e680 */ /* not lifted */
   1042     RECOMP_FLAGS_IN();
   1043     PUSH32(esp, eax); /* 0x36040CE5: push eax */
   1044     edx = ebp + (-0x10); /* 0x36040CE6: lea edx, [ebp - 0x10] */
   1045     PUSH32(esp, edx); /* 0x36040CE9: push edx */
   1046     ecx = 0x363065F0u; /* 0x36040CEA: mov ecx, 0x363065f0 */
   1047     RECOMP_ICALL(0x360E2B30u); /* 0x36040CEF: call 0x360e2b30 */ /* not lifted */
   1048     RECOMP_FLAGS_IN();
   1049     eax = MEM32(eax); /* 0x36040CF4: mov eax, dword ptr [eax] */
   1050     MEM32(eax + 0x10) = 0x361C0B3Cu; /* 0x36040CF6: mov dword ptr [eax + 0x10], 0x361c0b3c */
   1051     eax = ebp + (-0x8); /* 0x36040CFD: lea eax, [ebp - 8] */
   1052     PUSH32(esp, eax); /* 0x36040D00: push eax */
   1053     ecx = ebp + (-0x4); /* 0x36040D01: lea ecx, [ebp - 4] */
   1054     PUSH32(esp, ecx); /* 0x36040D04: push ecx */
   1055     ecx = ebp + (-0x18); /* 0x36040D05: lea ecx, [ebp - 0x18] */
   1056     MEM32(ebp + (-0x4)) = 0xBu; /* 0x36040D08: mov dword ptr [ebp - 4], 0xb */
   1057     MEM32(ebp + (-0x8)) = esi; /* 0x36040D0F: mov dword ptr [ebp - 8], esi */
   1058     RECOMP_ICALL(0x3603E680u); /* 0x36040D12: call 0x3603e680 */ /* not lifted */
   1059     RECOMP_FLAGS_IN();
   1060     PUSH32(esp, eax); /* 0x36040D17: push eax */
   1061     edx = ebp + (-0x10); /* 0x36040D18: lea edx, [ebp - 0x10] */
   1062     PUSH32(esp, edx); /* 0x36040D1B: push edx */
   1063     ecx = 0x363065F0u; /* 0x36040D1C: mov ecx, 0x363065f0 */
   1064     RECOMP_ICALL(0x360E2B30u); /* 0x36040D21: call 0x360e2b30 */ /* not lifted */
   1065     RECOMP_FLAGS_IN();
   1066     eax = MEM32(eax); /* 0x36040D26: mov eax, dword ptr [eax] */
   1067     MEM32(eax + 0x10) = 0x361C0AF4u; /* 0x36040D28: mov dword ptr [eax + 0x10], 0x361c0af4 */
   1068     eax = ebp + (-0x8); /* 0x36040D2F: lea eax, [ebp - 8] */
   1069     PUSH32(esp, eax); /* 0x36040D32: push eax */
   1070     ecx = ebp + (-0x4); /* 0x36040D33: lea ecx, [ebp - 4] */
   1071     PUSH32(esp, ecx); /* 0x36040D36: push ecx */
   1072     ecx = ebp + (-0x18); /* 0x36040D37: lea ecx, [ebp - 0x18] */
   1073     MEM32(ebp + (-0x4)) = 0xCu; /* 0x36040D3A: mov dword ptr [ebp - 4], 0xc */
   1074     MEM32(ebp + (-0x8)) = esi; /* 0x36040D41: mov dword ptr [ebp - 8], esi */
   1075     RECOMP_ICALL(0x3603E680u); /* 0x36040D44: call 0x3603e680 */ /* not lifted */
   1076     RECOMP_FLAGS_IN();
   1077     PUSH32(esp, eax); /* 0x36040D49: push eax */
   1078     edx = ebp + (-0x10); /* 0x36040D4A: lea edx, [ebp - 0x10] */
   1079     PUSH32(esp, edx); /* 0x36040D4D: push edx */
   1080     ecx = 0x363065F0u; /* 0x36040D4E: mov ecx, 0x363065f0 */
   1081     RECOMP_ICALL(0x360E2B30u); /* 0x36040D53: call 0x360e2b30 */ /* not lifted */
   1082     RECOMP_FLAGS_IN();
   1083     eax = MEM32(eax); /* 0x36040D58: mov eax, dword ptr [eax] */
   1084     MEM32(eax + 0x10) = 0x361C0AD8u; /* 0x36040D5A: mov dword ptr [eax + 0x10], 0x361c0ad8 */
   1085     eax = ebp + (-0x8); /* 0x36040D61: lea eax, [ebp - 8] */
   1086     PUSH32(esp, eax); /* 0x36040D64: push eax */
   1087     ecx = ebp + (-0x4); /* 0x36040D65: lea ecx, [ebp - 4] */
   1088     PUSH32(esp, ecx); /* 0x36040D68: push ecx */
   1089     ecx = ebp + (-0x18); /* 0x36040D69: lea ecx, [ebp - 0x18] */
   1090     MEM32(ebp + (-0x4)) = 0xDu; /* 0x36040D6C: mov dword ptr [ebp - 4], 0xd */
   1091     MEM32(ebp + (-0x8)) = esi; /* 0x36040D73: mov dword ptr [ebp - 8], esi */
   1092     RECOMP_ICALL(0x3603E680u); /* 0x36040D76: call 0x3603e680 */ /* not lifted */
   1093     RECOMP_FLAGS_IN();
   1094     PUSH32(esp, eax); /* 0x36040D7B: push eax */
   1095     edx = ebp + (-0x10); /* 0x36040D7C: lea edx, [ebp - 0x10] */
   1096     PUSH32(esp, edx); /* 0x36040D7F: push edx */
   1097     ecx = 0x363065F0u; /* 0x36040D80: mov ecx, 0x363065f0 */
   1098     RECOMP_ICALL(0x360E2B30u); /* 0x36040D85: call 0x360e2b30 */ /* not lifted */
   1099     RECOMP_FLAGS_IN();
   1100     eax = MEM32(eax); /* 0x36040D8A: mov eax, dword ptr [eax] */
   1101     MEM32(eax + 0x10) = 0x361C0A9Cu; /* 0x36040D8C: mov dword ptr [eax + 0x10], 0x361c0a9c */
   1102     eax = ebp + (-0x8); /* 0x36040D93: lea eax, [ebp - 8] */
   1103     PUSH32(esp, eax); /* 0x36040D96: push eax */
   1104     ecx = ebp + (-0x4); /* 0x36040D97: lea ecx, [ebp - 4] */
   1105     PUSH32(esp, ecx); /* 0x36040D9A: push ecx */
   1106     ecx = ebp + (-0x18); /* 0x36040D9B: lea ecx, [ebp - 0x18] */
   1107     MEM32(ebp + (-0x4)) = 0xEu; /* 0x36040D9E: mov dword ptr [ebp - 4], 0xe */
   1108     MEM32(ebp + (-0x8)) = esi; /* 0x36040DA5: mov dword ptr [ebp - 8], esi */
   1109     RECOMP_ICALL(0x3603E680u); /* 0x36040DA8: call 0x3603e680 */ /* not lifted */
   1110     RECOMP_FLAGS_IN();
   1111     PUSH32(esp, eax); /* 0x36040DAD: push eax */
   1112     edx = ebp + (-0x10); /* 0x36040DAE: lea edx, [ebp - 0x10] */
   1113     PUSH32(esp, edx); /* 0x36040DB1: push edx */
   1114     ecx = 0x363065F0u; /* 0x36040DB2: mov ecx, 0x363065f0 */
   1115     RECOMP_ICALL(0x360E2B30u); /* 0x36040DB7: call 0x360e2b30 */ /* not lifted */
   1116     RECOMP_FLAGS_IN();
   1117     eax = MEM32(eax); /* 0x36040DBC: mov eax, dword ptr [eax] */
   1118     MEM32(eax + 0x10) = 0x361C0A50u; /* 0x36040DBE: mov dword ptr [eax + 0x10], 0x361c0a50 */
   1119     eax = ebp + (-0x8); /* 0x36040DC5: lea eax, [ebp - 8] */
   1120     PUSH32(esp, eax); /* 0x36040DC8: push eax */
   1121     ecx = ebp + (-0x4); /* 0x36040DC9: lea ecx, [ebp - 4] */
   1122     PUSH32(esp, ecx); /* 0x36040DCC: push ecx */
   1123     ecx = ebp + (-0x18); /* 0x36040DCD: lea ecx, [ebp - 0x18] */
   1124     MEM32(ebp + (-0x4)) = 0xFu; /* 0x36040DD0: mov dword ptr [ebp - 4], 0xf */
   1125     MEM32(ebp + (-0x8)) = esi; /* 0x36040DD7: mov dword ptr [ebp - 8], esi */
   1126     RECOMP_ICALL(0x3603E680u); /* 0x36040DDA: call 0x3603e680 */ /* not lifted */
   1127     RECOMP_FLAGS_IN();
   1128     PUSH32(esp, eax); /* 0x36040DDF: push eax */
   1129     edx = ebp + (-0x10); /* 0x36040DE0: lea edx, [ebp - 0x10] */
   1130     PUSH32(esp, edx); /* 0x36040DE3: push edx */
   1131     ecx = 0x363065F0u; /* 0x36040DE4: mov ecx, 0x363065f0 */
   1132     RECOMP_ICALL(0x360E2B30u); /* 0x36040DE9: call 0x360e2b30 */ /* not lifted */
   1133     RECOMP_FLAGS_IN();
   1134     eax = MEM32(eax); /* 0x36040DEE: mov eax, dword ptr [eax] */
   1135     MEM32(eax + 0x10) = 0x361C0A18u; /* 0x36040DF0: mov dword ptr [eax + 0x10], 0x361c0a18 */
   1136     eax = ebp + (-0x8); /* 0x36040DF7: lea eax, [ebp - 8] */
   1137     PUSH32(esp, eax); /* 0x36040DFA: push eax */
   1138     ecx = ebp + (-0x4); /* 0x36040DFB: lea ecx, [ebp - 4] */
   1139     PUSH32(esp, ecx); /* 0x36040DFE: push ecx */
   1140     ecx = ebp + (-0x18); /* 0x36040DFF: lea ecx, [ebp - 0x18] */
   1141     MEM32(ebp + (-0x4)) = 0x10u; /* 0x36040E02: mov dword ptr [ebp - 4], 0x10 */
   1142     MEM32(ebp + (-0x8)) = esi; /* 0x36040E09: mov dword ptr [ebp - 8], esi */
   1143     RECOMP_ICALL(0x3603E680u); /* 0x36040E0C: call 0x3603e680 */ /* not lifted */
   1144     RECOMP_FLAGS_IN();
   1145     PUSH32(esp, eax); /* 0x36040E11: push eax */
   1146     edx = ebp + (-0x10); /* 0x36040E12: lea edx, [ebp - 0x10] */
   1147     PUSH32(esp, edx); /* 0x36040E15: push edx */
   1148     ecx = 0x363065F0u; /* 0x36040E16: mov ecx, 0x363065f0 */
   1149     RECOMP_ICALL(0x360E2B30u); /* 0x36040E1B: call 0x360e2b30 */ /* not lifted */
   1150     RECOMP_FLAGS_IN();
   1151     eax = MEM32(eax); /* 0x36040E20: mov eax, dword ptr [eax] */
   1152     MEM32(eax + 0x10) = 0x361C09FCu; /* 0x36040E22: mov dword ptr [eax + 0x10], 0x361c09fc */
   1153     MEM32(ebp + (-0x4)) = 0x11u; /* 0x36040E29: mov dword ptr [ebp - 4], 0x11 */
   1154     eax = ebp + (-0x8); /* 0x36040E30: lea eax, [ebp - 8] */
   1155     PUSH32(esp, eax); /* 0x36040E33: push eax */
   1156     ecx = ebp + (-0x4); /* 0x36040E34: lea ecx, [ebp - 4] */
   1157     PUSH32(esp, ecx); /* 0x36040E37: push ecx */
   1158     ecx = ebp + (-0x18); /* 0x36040E38: lea ecx, [ebp - 0x18] */
   1159     MEM32(ebp + (-0x8)) = esi; /* 0x36040E3B: mov dword ptr [ebp - 8], esi */
   1160     RECOMP_ICALL(0x3603E680u); /* 0x36040E3E: call 0x3603e680 */ /* not lifted */
   1161     RECOMP_FLAGS_IN();
   1162     PUSH32(esp, eax); /* 0x36040E43: push eax */
   1163     edx = ebp + (-0x10); /* 0x36040E44: lea edx, [ebp - 0x10] */
   1164     PUSH32(esp, edx); /* 0x36040E47: push edx */
   1165     ecx = 0x363065F0u; /* 0x36040E48: mov ecx, 0x363065f0 */
   1166     RECOMP_ICALL(0x360E2B30u); /* 0x36040E4D: call 0x360e2b30 */ /* not lifted */
   1167     RECOMP_FLAGS_IN();
   1168     eax = MEM32(eax); /* 0x36040E52: mov eax, dword ptr [eax] */
   1169     MEM32(eax + 0x10) = 0x361C09DCu; /* 0x36040E54: mov dword ptr [eax + 0x10], 0x361c09dc */
   1170     eax = ebp + (-0x8); /* 0x36040E5B: lea eax, [ebp - 8] */
   1171     PUSH32(esp, eax); /* 0x36040E5E: push eax */
   1172     ecx = ebp + (-0x4); /* 0x36040E5F: lea ecx, [ebp - 4] */
   1173     PUSH32(esp, ecx); /* 0x36040E62: push ecx */
   1174     ecx = ebp + (-0x18); /* 0x36040E63: lea ecx, [ebp - 0x18] */
   1175     MEM32(ebp + (-0x4)) = 0x12u; /* 0x36040E66: mov dword ptr [ebp - 4], 0x12 */
   1176     MEM32(ebp + (-0x8)) = esi; /* 0x36040E6D: mov dword ptr [ebp - 8], esi */
   1177     RECOMP_ICALL(0x3603E680u); /* 0x36040E70: call 0x3603e680 */ /* not lifted */
   1178     RECOMP_FLAGS_IN();
   1179     PUSH32(esp, eax); /* 0x36040E75: push eax */
   1180     edx = ebp + (-0x10); /* 0x36040E76: lea edx, [ebp - 0x10] */
   1181     PUSH32(esp, edx); /* 0x36040E79: push edx */
   1182     ecx = 0x363065F0u; /* 0x36040E7A: mov ecx, 0x363065f0 */
   1183     RECOMP_ICALL(0x360E2B30u); /* 0x36040E7F: call 0x360e2b30 */ /* not lifted */
   1184     RECOMP_FLAGS_IN();
   1185     eax = MEM32(eax); /* 0x36040E84: mov eax, dword ptr [eax] */
   1186     MEM32(eax + 0x10) = 0x361C09B0u; /* 0x36040E86: mov dword ptr [eax + 0x10], 0x361c09b0 */
   1187     eax = ebp + (-0x8); /* 0x36040E8D: lea eax, [ebp - 8] */
   1188     PUSH32(esp, eax); /* 0x36040E90: push eax */
   1189     ecx = ebp + (-0x4); /* 0x36040E91: lea ecx, [ebp - 4] */
   1190     PUSH32(esp, ecx); /* 0x36040E94: push ecx */
   1191     ecx = ebp + (-0x18); /* 0x36040E95: lea ecx, [ebp - 0x18] */
   1192     MEM32(ebp + (-0x4)) = 0x13u; /* 0x36040E98: mov dword ptr [ebp - 4], 0x13 */
   1193     MEM32(ebp + (-0x8)) = esi; /* 0x36040E9F: mov dword ptr [ebp - 8], esi */
   1194     RECOMP_ICALL(0x3603E680u); /* 0x36040EA2: call 0x3603e680 */ /* not lifted */
   1195     RECOMP_FLAGS_IN();
   1196     PUSH32(esp, eax); /* 0x36040EA7: push eax */
   1197     edx = ebp + (-0x10); /* 0x36040EA8: lea edx, [ebp - 0x10] */
   1198     PUSH32(esp, edx); /* 0x36040EAB: push edx */
   1199     ecx = 0x363065F0u; /* 0x36040EAC: mov ecx, 0x363065f0 */
   1200     RECOMP_ICALL(0x360E2B30u); /* 0x36040EB1: call 0x360e2b30 */ /* not lifted */
   1201     RECOMP_FLAGS_IN();
   1202     eax = MEM32(eax); /* 0x36040EB6: mov eax, dword ptr [eax] */
   1203     MEM32(eax + 0x10) = 0x361C0980u; /* 0x36040EB8: mov dword ptr [eax + 0x10], 0x361c0980 */
   1204     eax = ebp + (-0x8); /* 0x36040EBF: lea eax, [ebp - 8] */
   1205     PUSH32(esp, eax); /* 0x36040EC2: push eax */
   1206     ecx = ebp + (-0x4); /* 0x36040EC3: lea ecx, [ebp - 4] */
   1207     PUSH32(esp, ecx); /* 0x36040EC6: push ecx */
   1208     ecx = ebp + (-0x18); /* 0x36040EC7: lea ecx, [ebp - 0x18] */
   1209     MEM32(ebp + (-0x4)) = 0x14u; /* 0x36040ECA: mov dword ptr [ebp - 4], 0x14 */
   1210     MEM32(ebp + (-0x8)) = esi; /* 0x36040ED1: mov dword ptr [ebp - 8], esi */
   1211     RECOMP_ICALL(0x3603E680u); /* 0x36040ED4: call 0x3603e680 */ /* not lifted */
   1212     RECOMP_FLAGS_IN();
   1213     PUSH32(esp, eax); /* 0x36040ED9: push eax */
   1214     edx = ebp + (-0x10); /* 0x36040EDA: lea edx, [ebp - 0x10] */
   1215     PUSH32(esp, edx); /* 0x36040EDD: push edx */
   1216     ecx = 0x363065F0u; /* 0x36040EDE: mov ecx, 0x363065f0 */
   1217     RECOMP_ICALL(0x360E2B30u); /* 0x36040EE3: call 0x360e2b30 */ /* not lifted */
   1218     RECOMP_FLAGS_IN();
   1219     eax = MEM32(eax); /* 0x36040EE8: mov eax, dword ptr [eax] */
   1220     MEM32(eax + 0x10) = 0x361C0944u; /* 0x36040EEA: mov dword ptr [eax + 0x10], 0x361c0944 */
   1221     eax = ebp + (-0x8); /* 0x36040EF1: lea eax, [ebp - 8] */
   1222     PUSH32(esp, eax); /* 0x36040EF4: push eax */
   1223     ecx = ebp + (-0x4); /* 0x36040EF5: lea ecx, [ebp - 4] */
   1224     PUSH32(esp, ecx); /* 0x36040EF8: push ecx */
   1225     ecx = ebp + (-0x18); /* 0x36040EF9: lea ecx, [ebp - 0x18] */
   1226     MEM32(ebp + (-0x4)) = 0x15u; /* 0x36040EFC: mov dword ptr [ebp - 4], 0x15 */
   1227     MEM32(ebp + (-0x8)) = esi; /* 0x36040F03: mov dword ptr [ebp - 8], esi */
   1228     RECOMP_ICALL(0x3603E680u); /* 0x36040F06: call 0x3603e680 */ /* not lifted */
   1229     RECOMP_FLAGS_IN();
   1230     PUSH32(esp, eax); /* 0x36040F0B: push eax */
   1231     edx = ebp + (-0x10); /* 0x36040F0C: lea edx, [ebp - 0x10] */
   1232     PUSH32(esp, edx); /* 0x36040F0F: push edx */
   1233     ecx = 0x363065F0u; /* 0x36040F10: mov ecx, 0x363065f0 */
   1234     RECOMP_ICALL(0x360E2B30u); /* 0x36040F15: call 0x360e2b30 */ /* not lifted */
   1235     RECOMP_FLAGS_IN();
   1236     eax = MEM32(eax); /* 0x36040F1A: mov eax, dword ptr [eax] */
   1237     MEM32(eax + 0x10) = 0x361C0908u; /* 0x36040F1C: mov dword ptr [eax + 0x10], 0x361c0908 */
   1238     eax = ebp + (-0x8); /* 0x36040F23: lea eax, [ebp - 8] */
   1239     ecx = ebp + (-0x4); /* 0x36040F26: lea ecx, [ebp - 4] */
   1240     PUSH32(esp, eax); /* 0x36040F29: push eax */
   1241     PUSH32(esp, ecx); /* 0x36040F2A: push ecx */
   1242     MEM32(ebp + (-0x4)) = 0x16u; /* 0x36040F2B: mov dword ptr [ebp - 4], 0x16 */
   1243     MEM32(ebp + (-0x8)) = esi; /* 0x36040F32: mov dword ptr [ebp - 8], esi */
   1244     ecx = ebp + (-0x18); /* 0x36040F35: lea ecx, [ebp - 0x18] */
   1245     RECOMP_ICALL(0x3603E680u); /* 0x36040F38: call 0x3603e680 */ /* not lifted */
   1246     RECOMP_FLAGS_IN();
   1247     PUSH32(esp, eax); /* 0x36040F3D: push eax */
   1248     edx = ebp + (-0x10); /* 0x36040F3E: lea edx, [ebp - 0x10] */
   1249     PUSH32(esp, edx); /* 0x36040F41: push edx */
   1250     ecx = 0x363065F0u; /* 0x36040F42: mov ecx, 0x363065f0 */
   1251     RECOMP_ICALL(0x360E2B30u); /* 0x36040F47: call 0x360e2b30 */ /* not lifted */
   1252     RECOMP_FLAGS_IN();
   1253     eax = MEM32(eax); /* 0x36040F4C: mov eax, dword ptr [eax] */
   1254     MEM32(eax + 0x10) = 0x361C08D0u; /* 0x36040F4E: mov dword ptr [eax + 0x10], 0x361c08d0 */
   1255     eax = ebp + (-0x8); /* 0x36040F55: lea eax, [ebp - 8] */
   1256     PUSH32(esp, eax); /* 0x36040F58: push eax */
   1257     ecx = ebp + (-0x4); /* 0x36040F59: lea ecx, [ebp - 4] */
   1258     PUSH32(esp, ecx); /* 0x36040F5C: push ecx */
   1259     ecx = ebp + (-0x18); /* 0x36040F5D: lea ecx, [ebp - 0x18] */
   1260     MEM32(ebp + (-0x4)) = 0x17u; /* 0x36040F60: mov dword ptr [ebp - 4], 0x17 */
   1261     MEM32(ebp + (-0x8)) = esi; /* 0x36040F67: mov dword ptr [ebp - 8], esi */
   1262     RECOMP_ICALL(0x3603E680u); /* 0x36040F6A: call 0x3603e680 */ /* not lifted */
   1263     RECOMP_FLAGS_IN();
   1264     PUSH32(esp, eax); /* 0x36040F6F: push eax */
   1265     edx = ebp + (-0x10); /* 0x36040F70: lea edx, [ebp - 0x10] */
   1266     PUSH32(esp, edx); /* 0x36040F73: push edx */
   1267     ecx = 0x363065F0u; /* 0x36040F74: mov ecx, 0x363065f0 */
   1268     RECOMP_ICALL(0x360E2B30u); /* 0x36040F79: call 0x360e2b30 */ /* not lifted */
   1269     RECOMP_FLAGS_IN();
   1270     eax = MEM32(eax); /* 0x36040F7E: mov eax, dword ptr [eax] */
   1271     MEM32(eax + 0x10) = 0x361C089Cu; /* 0x36040F80: mov dword ptr [eax + 0x10], 0x361c089c */
   1272     eax = ebp + (-0x8); /* 0x36040F87: lea eax, [ebp - 8] */
   1273     PUSH32(esp, eax); /* 0x36040F8A: push eax */
   1274     ecx = ebp + (-0x4); /* 0x36040F8B: lea ecx, [ebp - 4] */
   1275     PUSH32(esp, ecx); /* 0x36040F8E: push ecx */
   1276     ecx = ebp + (-0x18); /* 0x36040F8F: lea ecx, [ebp - 0x18] */
   1277     MEM32(ebp + (-0x4)) = 0x18u; /* 0x36040F92: mov dword ptr [ebp - 4], 0x18 */
   1278     MEM32(ebp + (-0x8)) = esi; /* 0x36040F99: mov dword ptr [ebp - 8], esi */
   1279     RECOMP_ICALL(0x3603E680u); /* 0x36040F9C: call 0x3603e680 */ /* not lifted */
   1280     RECOMP_FLAGS_IN();
   1281     PUSH32(esp, eax); /* 0x36040FA1: push eax */
   1282     edx = ebp + (-0x10); /* 0x36040FA2: lea edx, [ebp - 0x10] */
   1283     PUSH32(esp, edx); /* 0x36040FA5: push edx */
   1284     ecx = 0x363065F0u; /* 0x36040FA6: mov ecx, 0x363065f0 */
   1285     RECOMP_ICALL(0x360E2B30u); /* 0x36040FAB: call 0x360e2b30 */ /* not lifted */
   1286     RECOMP_FLAGS_IN();
   1287     eax = MEM32(eax); /* 0x36040FB0: mov eax, dword ptr [eax] */
   1288     MEM32(eax + 0x10) = 0x361C086Cu; /* 0x36040FB2: mov dword ptr [eax + 0x10], 0x361c086c */
   1289     eax = ebp + (-0x8); /* 0x36040FB9: lea eax, [ebp - 8] */
   1290     PUSH32(esp, eax); /* 0x36040FBC: push eax */
   1291     ecx = ebp + (-0x4); /* 0x36040FBD: lea ecx, [ebp - 4] */
   1292     PUSH32(esp, ecx); /* 0x36040FC0: push ecx */
   1293     ecx = ebp + (-0x18); /* 0x36040FC1: lea ecx, [ebp - 0x18] */
   1294     MEM32(ebp + (-0x4)) = 0x19u; /* 0x36040FC4: mov dword ptr [ebp - 4], 0x19 */
   1295     MEM32(ebp + (-0x8)) = esi; /* 0x36040FCB: mov dword ptr [ebp - 8], esi */
   1296     RECOMP_ICALL(0x3603E680u); /* 0x36040FCE: call 0x3603e680 */ /* not lifted */
   1297     RECOMP_FLAGS_IN();
   1298     PUSH32(esp, eax); /* 0x36040FD3: push eax */
   1299     edx = ebp + (-0x10); /* 0x36040FD4: lea edx, [ebp - 0x10] */
   1300     PUSH32(esp, edx); /* 0x36040FD7: push edx */
   1301     ecx = 0x363065F0u; /* 0x36040FD8: mov ecx, 0x363065f0 */
   1302     RECOMP_ICALL(0x360E2B30u); /* 0x36040FDD: call 0x360e2b30 */ /* not lifted */
   1303     RECOMP_FLAGS_IN();
   1304     eax = MEM32(eax); /* 0x36040FE2: mov eax, dword ptr [eax] */
   1305     MEM32(eax + 0x10) = 0x361C0850u; /* 0x36040FE4: mov dword ptr [eax + 0x10], 0x361c0850 */
   1306     eax = ebp + (-0x8); /* 0x36040FEB: lea eax, [ebp - 8] */
   1307     PUSH32(esp, eax); /* 0x36040FEE: push eax */
   1308     ecx = ebp + (-0x4); /* 0x36040FEF: lea ecx, [ebp - 4] */
   1309     PUSH32(esp, ecx); /* 0x36040FF2: push ecx */
   1310     ecx = ebp + (-0x18); /* 0x36040FF3: lea ecx, [ebp - 0x18] */
   1311     MEM32(ebp + (-0x4)) = 0x1Au; /* 0x36040FF6: mov dword ptr [ebp - 4], 0x1a */
   1312     MEM32(ebp + (-0x8)) = esi; /* 0x36040FFD: mov dword ptr [ebp - 8], esi */
   1313     RECOMP_ICALL(0x3603E680u); /* 0x36041000: call 0x3603e680 */ /* not lifted */
   1314     RECOMP_FLAGS_IN();
   1315     PUSH32(esp, eax); /* 0x36041005: push eax */
   1316     edx = ebp + (-0x10); /* 0x36041006: lea edx, [ebp - 0x10] */
   1317     PUSH32(esp, edx); /* 0x36041009: push edx */
   1318     ecx = 0x363065F0u; /* 0x3604100A: mov ecx, 0x363065f0 */
   1319     RECOMP_ICALL(0x360E2B30u); /* 0x3604100F: call 0x360e2b30 */ /* not lifted */
   1320     RECOMP_FLAGS_IN();
   1321     eax = MEM32(eax); /* 0x36041014: mov eax, dword ptr [eax] */
   1322     MEM32(eax + 0x10) = 0x361C0834u; /* 0x36041016: mov dword ptr [eax + 0x10], 0x361c0834 */
   1323     eax = ebp + (-0x8); /* 0x3604101D: lea eax, [ebp - 8] */
   1324     PUSH32(esp, eax); /* 0x36041020: push eax */
   1325     ecx = ebp + (-0x4); /* 0x36041021: lea ecx, [ebp - 4] */
   1326     PUSH32(esp, ecx); /* 0x36041024: push ecx */
   1327     ecx = ebp + (-0x18); /* 0x36041025: lea ecx, [ebp - 0x18] */
   1328     MEM32(ebp + (-0x4)) = 0x1Bu; /* 0x36041028: mov dword ptr [ebp - 4], 0x1b */
   1329     MEM32(ebp + (-0x8)) = esi; /* 0x3604102F: mov dword ptr [ebp - 8], esi */
   1330     RECOMP_ICALL(0x3603E680u); /* 0x36041032: call 0x3603e680 */ /* not lifted */
   1331     RECOMP_FLAGS_IN();
   1332     PUSH32(esp, eax); /* 0x36041037: push eax */
   1333     edx = ebp + (-0x10); /* 0x36041038: lea edx, [ebp - 0x10] */
   1334     PUSH32(esp, edx); /* 0x3604103B: push edx */
   1335     ecx = 0x363065F0u; /* 0x3604103C: mov ecx, 0x363065f0 */
   1336     RECOMP_ICALL(0x360E2B30u); /* 0x36041041: call 0x360e2b30 */ /* not lifted */
   1337     RECOMP_FLAGS_IN();
   1338     eax = MEM32(eax); /* 0x36041046: mov eax, dword ptr [eax] */
   1339     MEM32(eax + 0x10) = 0x361C0814u; /* 0x36041048: mov dword ptr [eax + 0x10], 0x361c0814 */
   1340     eax = ebp + (-0x8); /* 0x3604104F: lea eax, [ebp - 8] */
   1341     PUSH32(esp, eax); /* 0x36041052: push eax */
   1342     ecx = ebp + (-0x4); /* 0x36041053: lea ecx, [ebp - 4] */
   1343     PUSH32(esp, ecx); /* 0x36041056: push ecx */
   1344     ecx = ebp + (-0x18); /* 0x36041057: lea ecx, [ebp - 0x18] */
   1345     MEM32(ebp + (-0x4)) = 0x1Cu; /* 0x3604105A: mov dword ptr [ebp - 4], 0x1c */
   1346     MEM32(ebp + (-0x8)) = esi; /* 0x36041061: mov dword ptr [ebp - 8], esi */
   1347     RECOMP_ICALL(0x3603E680u); /* 0x36041064: call 0x3603e680 */ /* not lifted */
   1348     RECOMP_FLAGS_IN();
   1349     PUSH32(esp, eax); /* 0x36041069: push eax */
   1350     edx = ebp + (-0x10); /* 0x3604106A: lea edx, [ebp - 0x10] */
   1351     PUSH32(esp, edx); /* 0x3604106D: push edx */
   1352     ecx = 0x363065F0u; /* 0x3604106E: mov ecx, 0x363065f0 */
   1353     RECOMP_ICALL(0x360E2B30u); /* 0x36041073: call 0x360e2b30 */ /* not lifted */
   1354     RECOMP_FLAGS_IN();
   1355     eax = MEM32(eax); /* 0x36041078: mov eax, dword ptr [eax] */
   1356     MEM32(eax + 0x10) = 0x361C07C8u; /* 0x3604107A: mov dword ptr [eax + 0x10], 0x361c07c8 */
   1357     eax = ebp + (-0x8); /* 0x36041081: lea eax, [ebp - 8] */
   1358     PUSH32(esp, eax); /* 0x36041084: push eax */
   1359     ecx = ebp + (-0x4); /* 0x36041085: lea ecx, [ebp - 4] */
   1360     PUSH32(esp, ecx); /* 0x36041088: push ecx */
   1361     ecx = ebp + (-0x18); /* 0x36041089: lea ecx, [ebp - 0x18] */
   1362     MEM32(ebp + (-0x4)) = 0x1Du; /* 0x3604108C: mov dword ptr [ebp - 4], 0x1d */
   1363     MEM32(ebp + (-0x8)) = esi; /* 0x36041093: mov dword ptr [ebp - 8], esi */
   1364     RECOMP_ICALL(0x3603E680u); /* 0x36041096: call 0x3603e680 */ /* not lifted */
   1365     RECOMP_FLAGS_IN();
   1366     PUSH32(esp, eax); /* 0x3604109B: push eax */
   1367     edx = ebp + (-0x10); /* 0x3604109C: lea edx, [ebp - 0x10] */
   1368     PUSH32(esp, edx); /* 0x3604109F: push edx */
   1369     ecx = 0x363065F0u; /* 0x360410A0: mov ecx, 0x363065f0 */
   1370     RECOMP_ICALL(0x360E2B30u); /* 0x360410A5: call 0x360e2b30 */ /* not lifted */
   1371     RECOMP_FLAGS_IN();
   1372     eax = MEM32(eax); /* 0x360410AA: mov eax, dword ptr [eax] */
   1373     MEM32(eax + 0x10) = 0x361C07A0u; /* 0x360410AC: mov dword ptr [eax + 0x10], 0x361c07a0 */
   1374     eax = ebp + (-0x8); /* 0x360410B3: lea eax, [ebp - 8] */
   1375     PUSH32(esp, eax); /* 0x360410B6: push eax */
   1376     ecx = ebp + (-0x4); /* 0x360410B7: lea ecx, [ebp - 4] */
   1377     PUSH32(esp, ecx); /* 0x360410BA: push ecx */
   1378     ecx = ebp + (-0x18); /* 0x360410BB: lea ecx, [ebp - 0x18] */
   1379     MEM32(ebp + (-0x4)) = 0x1Eu; /* 0x360410BE: mov dword ptr [ebp - 4], 0x1e */
   1380     MEM32(ebp + (-0x8)) = esi; /* 0x360410C5: mov dword ptr [ebp - 8], esi */
   1381     RECOMP_ICALL(0x3603E680u); /* 0x360410C8: call 0x3603e680 */ /* not lifted */
   1382     RECOMP_FLAGS_IN();
   1383     PUSH32(esp, eax); /* 0x360410CD: push eax */
   1384     edx = ebp + (-0x10); /* 0x360410CE: lea edx, [ebp - 0x10] */
   1385     PUSH32(esp, edx); /* 0x360410D1: push edx */
   1386     ecx = 0x363065F0u; /* 0x360410D2: mov ecx, 0x363065f0 */
   1387     RECOMP_ICALL(0x360E2B30u); /* 0x360410D7: call 0x360e2b30 */ /* not lifted */
   1388     RECOMP_FLAGS_IN();
   1389     eax = MEM32(eax); /* 0x360410DC: mov eax, dword ptr [eax] */
   1390     MEM32(eax + 0x10) = 0x361C0770u; /* 0x360410DE: mov dword ptr [eax + 0x10], 0x361c0770 */
   1391     eax = ebp + (-0x8); /* 0x360410E5: lea eax, [ebp - 8] */
   1392     PUSH32(esp, eax); /* 0x360410E8: push eax */
   1393     ecx = ebp + (-0x4); /* 0x360410E9: lea ecx, [ebp - 4] */
   1394     PUSH32(esp, ecx); /* 0x360410EC: push ecx */
   1395     ecx = ebp + (-0x18); /* 0x360410ED: lea ecx, [ebp - 0x18] */
   1396     MEM32(ebp + (-0x4)) = 0x1Fu; /* 0x360410F0: mov dword ptr [ebp - 4], 0x1f */
   1397     MEM32(ebp + (-0x8)) = esi; /* 0x360410F7: mov dword ptr [ebp - 8], esi */
   1398     RECOMP_ICALL(0x3603E680u); /* 0x360410FA: call 0x3603e680 */ /* not lifted */
   1399     RECOMP_FLAGS_IN();
   1400     PUSH32(esp, eax); /* 0x360410FF: push eax */
   1401     edx = ebp + (-0x10); /* 0x36041100: lea edx, [ebp - 0x10] */
   1402     PUSH32(esp, edx); /* 0x36041103: push edx */
   1403     ecx = 0x363065F0u; /* 0x36041104: mov ecx, 0x363065f0 */
   1404     RECOMP_ICALL(0x360E2B30u); /* 0x36041109: call 0x360e2b30 */ /* not lifted */
   1405     RECOMP_FLAGS_IN();
   1406     eax = MEM32(eax); /* 0x3604110E: mov eax, dword ptr [eax] */
   1407     MEM32(eax + 0x10) = 0x361C0734u; /* 0x36041110: mov dword ptr [eax + 0x10], 0x361c0734 */
   1408     eax = ebp + (-0x8); /* 0x36041117: lea eax, [ebp - 8] */
   1409     PUSH32(esp, eax); /* 0x3604111A: push eax */
   1410     ecx = ebp + (-0x4); /* 0x3604111B: lea ecx, [ebp - 4] */
   1411     PUSH32(esp, ecx); /* 0x3604111E: push ecx */
   1412     ecx = ebp + (-0x18); /* 0x3604111F: lea ecx, [ebp - 0x18] */
   1413     MEM32(ebp + (-0x4)) = 0x20u; /* 0x36041122: mov dword ptr [ebp - 4], 0x20 */
   1414     MEM32(ebp + (-0x8)) = esi; /* 0x36041129: mov dword ptr [ebp - 8], esi */
   1415     RECOMP_ICALL(0x3603E680u); /* 0x3604112C: call 0x3603e680 */ /* not lifted */
   1416     RECOMP_FLAGS_IN();
   1417     PUSH32(esp, eax); /* 0x36041131: push eax */
   1418     edx = ebp + (-0x10); /* 0x36041132: lea edx, [ebp - 0x10] */
   1419     PUSH32(esp, edx); /* 0x36041135: push edx */
   1420     ecx = 0x363065F0u; /* 0x36041136: mov ecx, 0x363065f0 */
   1421     RECOMP_ICALL(0x360E2B30u); /* 0x3604113B: call 0x360e2b30 */ /* not lifted */
   1422     RECOMP_FLAGS_IN();
   1423     eax = MEM32(eax); /* 0x36041140: mov eax, dword ptr [eax] */
   1424     MEM32(eax + 0x10) = 0x361C070Cu; /* 0x36041142: mov dword ptr [eax + 0x10], 0x361c070c */
   1425     eax = ebp + (-0x8); /* 0x36041149: lea eax, [ebp - 8] */
   1426     MEM32(ebp + (-0x4)) = 0x21u; /* 0x3604114C: mov dword ptr [ebp - 4], 0x21 */
   1427     MEM32(ebp + (-0x8)) = esi; /* 0x36041153: mov dword ptr [ebp - 8], esi */
   1428     PUSH32(esp, eax); /* 0x36041156: push eax */
   1429     ecx = ebp + (-0x4); /* 0x36041157: lea ecx, [ebp - 4] */
   1430     PUSH32(esp, ecx); /* 0x3604115A: push ecx */
   1431     ecx = ebp + (-0x18); /* 0x3604115B: lea ecx, [ebp - 0x18] */
   1432     RECOMP_ICALL(0x3603E680u); /* 0x3604115E: call 0x3603e680 */ /* not lifted */
   1433     RECOMP_FLAGS_IN();
   1434     PUSH32(esp, eax); /* 0x36041163: push eax */
   1435     edx = ebp + (-0x10); /* 0x36041164: lea edx, [ebp - 0x10] */
   1436     PUSH32(esp, edx); /* 0x36041167: push edx */
   1437     ecx = 0x363065F0u; /* 0x36041168: mov ecx, 0x363065f0 */
   1438     RECOMP_ICALL(0x360E2B30u); /* 0x3604116D: call 0x360e2b30 */ /* not lifted */
   1439     RECOMP_FLAGS_IN();
   1440     eax = MEM32(eax); /* 0x36041172: mov eax, dword ptr [eax] */
   1441     MEM32(eax + 0x10) = 0x361C06B0u; /* 0x36041174: mov dword ptr [eax + 0x10], 0x361c06b0 */
   1442     eax = ebp + (-0x8); /* 0x3604117B: lea eax, [ebp - 8] */
   1443     PUSH32(esp, eax); /* 0x3604117E: push eax */
   1444     ecx = ebp + (-0x4); /* 0x3604117F: lea ecx, [ebp - 4] */
   1445     PUSH32(esp, ecx); /* 0x36041182: push ecx */
   1446     ecx = ebp + (-0x18); /* 0x36041183: lea ecx, [ebp - 0x18] */
   1447     MEM32(ebp + (-0x4)) = 0x22u; /* 0x36041186: mov dword ptr [ebp - 4], 0x22 */
   1448     MEM32(ebp + (-0x8)) = esi; /* 0x3604118D: mov dword ptr [ebp - 8], esi */
   1449     RECOMP_ICALL(0x3603E680u); /* 0x36041190: call 0x3603e680 */ /* not lifted */
   1450     RECOMP_FLAGS_IN();
   1451     PUSH32(esp, eax); /* 0x36041195: push eax */
   1452     edx = ebp + (-0x10); /* 0x36041196: lea edx, [ebp - 0x10] */
   1453     PUSH32(esp, edx); /* 0x36041199: push edx */
   1454     ecx = 0x363065F0u; /* 0x3604119A: mov ecx, 0x363065f0 */
   1455     RECOMP_ICALL(0x360E2B30u); /* 0x3604119F: call 0x360e2b30 */ /* not lifted */
   1456     RECOMP_FLAGS_IN();
   1457     eax = MEM32(eax); /* 0x360411A4: mov eax, dword ptr [eax] */
   1458     MEM32(eax + 0x10) = 0x361C0640u; /* 0x360411A6: mov dword ptr [eax + 0x10], 0x361c0640 */
   1459     eax = ebp + (-0x8); /* 0x360411AD: lea eax, [ebp - 8] */
   1460     PUSH32(esp, eax); /* 0x360411B0: push eax */
   1461     ecx = ebp + (-0x4); /* 0x360411B1: lea ecx, [ebp - 4] */
   1462     PUSH32(esp, ecx); /* 0x360411B4: push ecx */
   1463     ecx = ebp + (-0x18); /* 0x360411B5: lea ecx, [ebp - 0x18] */
   1464     MEM32(ebp + (-0x4)) = 0x23u; /* 0x360411B8: mov dword ptr [ebp - 4], 0x23 */
   1465     MEM32(ebp + (-0x8)) = esi; /* 0x360411BF: mov dword ptr [ebp - 8], esi */
   1466     RECOMP_ICALL(0x3603E680u); /* 0x360411C2: call 0x3603e680 */ /* not lifted */
   1467     RECOMP_FLAGS_IN();
   1468     PUSH32(esp, eax); /* 0x360411C7: push eax */
   1469     edx = ebp + (-0x10); /* 0x360411C8: lea edx, [ebp - 0x10] */
   1470     PUSH32(esp, edx); /* 0x360411CB: push edx */
   1471     ecx = 0x363065F0u; /* 0x360411CC: mov ecx, 0x363065f0 */
   1472     RECOMP_ICALL(0x360E2B30u); /* 0x360411D1: call 0x360e2b30 */ /* not lifted */
   1473     RECOMP_FLAGS_IN();
   1474     eax = MEM32(eax); /* 0x360411D6: mov eax, dword ptr [eax] */
   1475     MEM32(eax + 0x10) = 0x361C061Cu; /* 0x360411D8: mov dword ptr [eax + 0x10], 0x361c061c */
   1476     eax = ebp + (-0x8); /* 0x360411DF: lea eax, [ebp - 8] */
   1477     PUSH32(esp, eax); /* 0x360411E2: push eax */
   1478     ecx = ebp + (-0x4); /* 0x360411E3: lea ecx, [ebp - 4] */
   1479     PUSH32(esp, ecx); /* 0x360411E6: push ecx */
   1480     ecx = ebp + (-0x18); /* 0x360411E7: lea ecx, [ebp - 0x18] */
   1481     MEM32(ebp + (-0x4)) = 0x24u; /* 0x360411EA: mov dword ptr [ebp - 4], 0x24 */
   1482     MEM32(ebp + (-0x8)) = esi; /* 0x360411F1: mov dword ptr [ebp - 8], esi */
   1483     RECOMP_ICALL(0x3603E680u); /* 0x360411F4: call 0x3603e680 */ /* not lifted */
   1484     RECOMP_FLAGS_IN();
   1485     PUSH32(esp, eax); /* 0x360411F9: push eax */
   1486     edx = ebp + (-0x10); /* 0x360411FA: lea edx, [ebp - 0x10] */
   1487     PUSH32(esp, edx); /* 0x360411FD: push edx */
   1488     ecx = 0x363065F0u; /* 0x360411FE: mov ecx, 0x363065f0 */
   1489     RECOMP_ICALL(0x360E2B30u); /* 0x36041203: call 0x360e2b30 */ /* not lifted */
   1490     RECOMP_FLAGS_IN();
   1491     eax = MEM32(eax); /* 0x36041208: mov eax, dword ptr [eax] */
   1492     MEM32(eax + 0x10) = 0x361C05F0u; /* 0x3604120A: mov dword ptr [eax + 0x10], 0x361c05f0 */
   1493     eax = ebp + (-0x8); /* 0x36041211: lea eax, [ebp - 8] */
   1494     PUSH32(esp, eax); /* 0x36041214: push eax */
   1495     ecx = ebp + (-0x4); /* 0x36041215: lea ecx, [ebp - 4] */
   1496     PUSH32(esp, ecx); /* 0x36041218: push ecx */
   1497     ecx = ebp + (-0x18); /* 0x36041219: lea ecx, [ebp - 0x18] */
   1498     MEM32(ebp + (-0x4)) = 0x25u; /* 0x3604121C: mov dword ptr [ebp - 4], 0x25 */
   1499     MEM32(ebp + (-0x8)) = esi; /* 0x36041223: mov dword ptr [ebp - 8], esi */
   1500     RECOMP_ICALL(0x3603E680u); /* 0x36041226: call 0x3603e680 */ /* not lifted */
   1501     RECOMP_FLAGS_IN();
   1502     PUSH32(esp, eax); /* 0x3604122B: push eax */
   1503     edx = ebp + (-0x10); /* 0x3604122C: lea edx, [ebp - 0x10] */
   1504     PUSH32(esp, edx); /* 0x3604122F: push edx */
   1505     ecx = 0x363065F0u; /* 0x36041230: mov ecx, 0x363065f0 */
   1506     RECOMP_ICALL(0x360E2B30u); /* 0x36041235: call 0x360e2b30 */ /* not lifted */
   1507     RECOMP_FLAGS_IN();
   1508     eax = MEM32(eax); /* 0x3604123A: mov eax, dword ptr [eax] */
   1509     MEM32(eax + 0x10) = 0x361C05C0u; /* 0x3604123C: mov dword ptr [eax + 0x10], 0x361c05c0 */
   1510     eax = ebp + (-0x8); /* 0x36041243: lea eax, [ebp - 8] */
   1511     PUSH32(esp, eax); /* 0x36041246: push eax */
   1512     ecx = ebp + (-0x4); /* 0x36041247: lea ecx, [ebp - 4] */
   1513     PUSH32(esp, ecx); /* 0x3604124A: push ecx */
   1514     ecx = ebp + (-0x18); /* 0x3604124B: lea ecx, [ebp - 0x18] */
   1515     MEM32(ebp + (-0x4)) = 0x26u; /* 0x3604124E: mov dword ptr [ebp - 4], 0x26 */
   1516     MEM32(ebp + (-0x8)) = esi; /* 0x36041255: mov dword ptr [ebp - 8], esi */
   1517     RECOMP_ICALL(0x3603E680u); /* 0x36041258: call 0x3603e680 */ /* not lifted */
   1518     RECOMP_FLAGS_IN();
   1519     PUSH32(esp, eax); /* 0x3604125D: push eax */
   1520     edx = ebp + (-0x10); /* 0x3604125E: lea edx, [ebp - 0x10] */
   1521     PUSH32(esp, edx); /* 0x36041261: push edx */
   1522     ecx = 0x363065F0u; /* 0x36041262: mov ecx, 0x363065f0 */
   1523     RECOMP_ICALL(0x360E2B30u); /* 0x36041267: call 0x360e2b30 */ /* not lifted */
   1524     RECOMP_FLAGS_IN();
   1525     eax = MEM32(eax); /* 0x3604126C: mov eax, dword ptr [eax] */
   1526     MEM32(eax + 0x10) = 0x361C0590u; /* 0x3604126E: mov dword ptr [eax + 0x10], 0x361c0590 */
   1527     eax = ebp + (-0x8); /* 0x36041275: lea eax, [ebp - 8] */
   1528     PUSH32(esp, eax); /* 0x36041278: push eax */
   1529     ecx = ebp + (-0x4); /* 0x36041279: lea ecx, [ebp - 4] */
   1530     PUSH32(esp, ecx); /* 0x3604127C: push ecx */
   1531     ecx = ebp + (-0x18); /* 0x3604127D: lea ecx, [ebp - 0x18] */
   1532     MEM32(ebp + (-0x4)) = 0x27u; /* 0x36041280: mov dword ptr [ebp - 4], 0x27 */
   1533     MEM32(ebp + (-0x8)) = esi; /* 0x36041287: mov dword ptr [ebp - 8], esi */
   1534     RECOMP_ICALL(0x3603E680u); /* 0x3604128A: call 0x3603e680 */ /* not lifted */
   1535     RECOMP_FLAGS_IN();
   1536     PUSH32(esp, eax); /* 0x3604128F: push eax */
   1537     edx = ebp + (-0x10); /* 0x36041290: lea edx, [ebp - 0x10] */
   1538     PUSH32(esp, edx); /* 0x36041293: push edx */
   1539     ecx = 0x363065F0u; /* 0x36041294: mov ecx, 0x363065f0 */
   1540     RECOMP_ICALL(0x360E2B30u); /* 0x36041299: call 0x360e2b30 */ /* not lifted */
   1541     RECOMP_FLAGS_IN();
   1542     eax = MEM32(eax); /* 0x3604129E: mov eax, dword ptr [eax] */
   1543     MEM32(eax + 0x10) = 0x361C0560u; /* 0x360412A0: mov dword ptr [eax + 0x10], 0x361c0560 */
   1544     eax = ebp + (-0x8); /* 0x360412A7: lea eax, [ebp - 8] */
   1545     PUSH32(esp, eax); /* 0x360412AA: push eax */
   1546     ecx = ebp + (-0x4); /* 0x360412AB: lea ecx, [ebp - 4] */
   1547     PUSH32(esp, ecx); /* 0x360412AE: push ecx */
   1548     ecx = ebp + (-0x18); /* 0x360412AF: lea ecx, [ebp - 0x18] */
   1549     MEM32(ebp + (-0x4)) = 0x28u; /* 0x360412B2: mov dword ptr [ebp - 4], 0x28 */
   1550     MEM32(ebp + (-0x8)) = esi; /* 0x360412B9: mov dword ptr [ebp - 8], esi */
   1551     RECOMP_ICALL(0x3603E680u); /* 0x360412BC: call 0x3603e680 */ /* not lifted */
   1552     RECOMP_FLAGS_IN();
   1553     PUSH32(esp, eax); /* 0x360412C1: push eax */
   1554     edx = ebp + (-0x10); /* 0x360412C2: lea edx, [ebp - 0x10] */
   1555     PUSH32(esp, edx); /* 0x360412C5: push edx */
   1556     ecx = 0x363065F0u; /* 0x360412C6: mov ecx, 0x363065f0 */
   1557     RECOMP_ICALL(0x360E2B30u); /* 0x360412CB: call 0x360e2b30 */ /* not lifted */
   1558     RECOMP_FLAGS_IN();
   1559     eax = MEM32(eax); /* 0x360412D0: mov eax, dword ptr [eax] */
   1560     MEM32(eax + 0x10) = 0x361C0534u; /* 0x360412D2: mov dword ptr [eax + 0x10], 0x361c0534 */
   1561     eax = ebp + (-0x8); /* 0x360412D9: lea eax, [ebp - 8] */
   1562     PUSH32(esp, eax); /* 0x360412DC: push eax */
   1563     ecx = ebp + (-0x4); /* 0x360412DD: lea ecx, [ebp - 4] */
   1564     PUSH32(esp, ecx); /* 0x360412E0: push ecx */
   1565     ecx = ebp + (-0x18); /* 0x360412E1: lea ecx, [ebp - 0x18] */
   1566     MEM32(ebp + (-0x4)) = 0x29u; /* 0x360412E4: mov dword ptr [ebp - 4], 0x29 */
   1567     MEM32(ebp + (-0x8)) = esi; /* 0x360412EB: mov dword ptr [ebp - 8], esi */
   1568     RECOMP_ICALL(0x3603E680u); /* 0x360412EE: call 0x3603e680 */ /* not lifted */
   1569     RECOMP_FLAGS_IN();
   1570     PUSH32(esp, eax); /* 0x360412F3: push eax */
   1571     edx = ebp + (-0x10); /* 0x360412F4: lea edx, [ebp - 0x10] */
   1572     PUSH32(esp, edx); /* 0x360412F7: push edx */
   1573     ecx = 0x363065F0u; /* 0x360412F8: mov ecx, 0x363065f0 */
   1574     RECOMP_ICALL(0x360E2B30u); /* 0x360412FD: call 0x360e2b30 */ /* not lifted */
   1575     RECOMP_FLAGS_IN();
   1576     eax = MEM32(eax); /* 0x36041302: mov eax, dword ptr [eax] */
   1577     MEM32(eax + 0x10) = 0x361C0508u; /* 0x36041304: mov dword ptr [eax + 0x10], 0x361c0508 */
   1578     eax = ebp + (-0x8); /* 0x3604130B: lea eax, [ebp - 8] */
   1579     PUSH32(esp, eax); /* 0x3604130E: push eax */
   1580     ecx = ebp + (-0x4); /* 0x3604130F: lea ecx, [ebp - 4] */
   1581     PUSH32(esp, ecx); /* 0x36041312: push ecx */
   1582     ecx = ebp + (-0x18); /* 0x36041313: lea ecx, [ebp - 0x18] */
   1583     MEM32(ebp + (-0x4)) = 0x2Au; /* 0x36041316: mov dword ptr [ebp - 4], 0x2a */
   1584     MEM32(ebp + (-0x8)) = esi; /* 0x3604131D: mov dword ptr [ebp - 8], esi */
   1585     RECOMP_ICALL(0x3603E680u); /* 0x36041320: call 0x3603e680 */ /* not lifted */
   1586     RECOMP_FLAGS_IN();
   1587     PUSH32(esp, eax); /* 0x36041325: push eax */
   1588     edx = ebp + (-0x10); /* 0x36041326: lea edx, [ebp - 0x10] */
   1589     PUSH32(esp, edx); /* 0x36041329: push edx */
   1590     ecx = 0x363065F0u; /* 0x3604132A: mov ecx, 0x363065f0 */
   1591     RECOMP_ICALL(0x360E2B30u); /* 0x3604132F: call 0x360e2b30 */ /* not lifted */
   1592     RECOMP_FLAGS_IN();
   1593     eax = MEM32(eax); /* 0x36041334: mov eax, dword ptr [eax] */
   1594     MEM32(eax + 0x10) = 0x361C04DCu; /* 0x36041336: mov dword ptr [eax + 0x10], 0x361c04dc */
   1595     eax = ebp + (-0x8); /* 0x3604133D: lea eax, [ebp - 8] */
   1596     PUSH32(esp, eax); /* 0x36041340: push eax */
   1597     ecx = ebp + (-0x4); /* 0x36041341: lea ecx, [ebp - 4] */
   1598     PUSH32(esp, ecx); /* 0x36041344: push ecx */
   1599     ecx = ebp + (-0x18); /* 0x36041345: lea ecx, [ebp - 0x18] */
   1600     MEM32(ebp + (-0x4)) = 0x2Bu; /* 0x36041348: mov dword ptr [ebp - 4], 0x2b */
   1601     MEM32(ebp + (-0x8)) = esi; /* 0x3604134F: mov dword ptr [ebp - 8], esi */
   1602     RECOMP_ICALL(0x3603E680u); /* 0x36041352: call 0x3603e680 */ /* not lifted */
   1603     RECOMP_FLAGS_IN();
   1604     PUSH32(esp, eax); /* 0x36041357: push eax */
   1605     edx = ebp + (-0x10); /* 0x36041358: lea edx, [ebp - 0x10] */
   1606     PUSH32(esp, edx); /* 0x3604135B: push edx */
   1607     ecx = 0x363065F0u; /* 0x3604135C: mov ecx, 0x363065f0 */
   1608     RECOMP_ICALL(0x360E2B30u); /* 0x36041361: call 0x360e2b30 */ /* not lifted */
   1609     RECOMP_FLAGS_IN();
   1610     eax = MEM32(eax); /* 0x36041366: mov eax, dword ptr [eax] */
   1611     MEM32(eax + 0x10) = 0x361C04A0u; /* 0x36041368: mov dword ptr [eax + 0x10], 0x361c04a0 */
   1612     MEM32(ebp + (-0x4)) = 0x2Cu; /* 0x3604136F: mov dword ptr [ebp - 4], 0x2c */
   1613     eax = ebp + (-0x8); /* 0x36041376: lea eax, [ebp - 8] */
   1614     PUSH32(esp, eax); /* 0x36041379: push eax */
   1615     ecx = ebp + (-0x4); /* 0x3604137A: lea ecx, [ebp - 4] */
   1616     PUSH32(esp, ecx); /* 0x3604137D: push ecx */
   1617     ecx = ebp + (-0x18); /* 0x3604137E: lea ecx, [ebp - 0x18] */
   1618     MEM32(ebp + (-0x8)) = esi; /* 0x36041381: mov dword ptr [ebp - 8], esi */
   1619     RECOMP_ICALL(0x3603E680u); /* 0x36041384: call 0x3603e680 */ /* not lifted */
   1620     RECOMP_FLAGS_IN();
   1621     PUSH32(esp, eax); /* 0x36041389: push eax */
   1622     edx = ebp + (-0x10); /* 0x3604138A: lea edx, [ebp - 0x10] */
   1623     PUSH32(esp, edx); /* 0x3604138D: push edx */
   1624     ecx = 0x363065F0u; /* 0x3604138E: mov ecx, 0x363065f0 */
   1625     RECOMP_ICALL(0x360E2B30u); /* 0x36041393: call 0x360e2b30 */ /* not lifted */
   1626     RECOMP_FLAGS_IN();
   1627     eax = MEM32(eax); /* 0x36041398: mov eax, dword ptr [eax] */
   1628     MEM32(eax + 0x10) = 0x361C047Cu; /* 0x3604139A: mov dword ptr [eax + 0x10], 0x361c047c */
   1629     eax = ebp + (-0x8); /* 0x360413A1: lea eax, [ebp - 8] */
   1630     PUSH32(esp, eax); /* 0x360413A4: push eax */
   1631     ecx = ebp + (-0x4); /* 0x360413A5: lea ecx, [ebp - 4] */
   1632     PUSH32(esp, ecx); /* 0x360413A8: push ecx */
   1633     ecx = ebp + (-0x18); /* 0x360413A9: lea ecx, [ebp - 0x18] */
   1634     MEM32(ebp + (-0x4)) = 0x2Du; /* 0x360413AC: mov dword ptr [ebp - 4], 0x2d */
   1635     MEM32(ebp + (-0x8)) = esi; /* 0x360413B3: mov dword ptr [ebp - 8], esi */
   1636     RECOMP_ICALL(0x3603E680u); /* 0x360413B6: call 0x3603e680 */ /* not lifted */
   1637     RECOMP_FLAGS_IN();
   1638     PUSH32(esp, eax); /* 0x360413BB: push eax */
   1639     edx = ebp + (-0x10); /* 0x360413BC: lea edx, [ebp - 0x10] */
   1640     PUSH32(esp, edx); /* 0x360413BF: push edx */
   1641     ecx = 0x363065F0u; /* 0x360413C0: mov ecx, 0x363065f0 */
   1642     RECOMP_ICALL(0x360E2B30u); /* 0x360413C5: call 0x360e2b30 */ /* not lifted */
   1643     RECOMP_FLAGS_IN();
   1644     eax = MEM32(eax); /* 0x360413CA: mov eax, dword ptr [eax] */
   1645     MEM32(eax + 0x10) = 0x361C045Cu; /* 0x360413CC: mov dword ptr [eax + 0x10], 0x361c045c */
   1646     eax = ebp + (-0x8); /* 0x360413D3: lea eax, [ebp - 8] */
   1647     PUSH32(esp, eax); /* 0x360413D6: push eax */
   1648     ecx = ebp + (-0x4); /* 0x360413D7: lea ecx, [ebp - 4] */
   1649     PUSH32(esp, ecx); /* 0x360413DA: push ecx */
   1650     ecx = ebp + (-0x18); /* 0x360413DB: lea ecx, [ebp - 0x18] */
   1651     MEM32(ebp + (-0x4)) = 0x2Eu; /* 0x360413DE: mov dword ptr [ebp - 4], 0x2e */
   1652     MEM32(ebp + (-0x8)) = esi; /* 0x360413E5: mov dword ptr [ebp - 8], esi */
   1653     RECOMP_ICALL(0x3603E680u); /* 0x360413E8: call 0x3603e680 */ /* not lifted */
   1654     RECOMP_FLAGS_IN();
   1655     PUSH32(esp, eax); /* 0x360413ED: push eax */
   1656     edx = ebp + (-0x10); /* 0x360413EE: lea edx, [ebp - 0x10] */
   1657     PUSH32(esp, edx); /* 0x360413F1: push edx */
   1658     ecx = 0x363065F0u; /* 0x360413F2: mov ecx, 0x363065f0 */
   1659     RECOMP_ICALL(0x360E2B30u); /* 0x360413F7: call 0x360e2b30 */ /* not lifted */
   1660     RECOMP_FLAGS_IN();
   1661     eax = MEM32(eax); /* 0x360413FC: mov eax, dword ptr [eax] */
   1662     MEM32(eax + 0x10) = 0x361C0424u; /* 0x360413FE: mov dword ptr [eax + 0x10], 0x361c0424 */
   1663     eax = ebp + (-0x8); /* 0x36041405: lea eax, [ebp - 8] */
   1664     PUSH32(esp, eax); /* 0x36041408: push eax */
   1665     ecx = ebp + (-0x4); /* 0x36041409: lea ecx, [ebp - 4] */
   1666     PUSH32(esp, ecx); /* 0x3604140C: push ecx */
   1667     ecx = ebp + (-0x18); /* 0x3604140D: lea ecx, [ebp - 0x18] */
   1668     MEM32(ebp + (-0x4)) = 0x2Fu; /* 0x36041410: mov dword ptr [ebp - 4], 0x2f */
   1669     MEM32(ebp + (-0x8)) = esi; /* 0x36041417: mov dword ptr [ebp - 8], esi */
   1670     RECOMP_ICALL(0x3603E680u); /* 0x3604141A: call 0x3603e680 */ /* not lifted */
   1671     RECOMP_FLAGS_IN();
   1672     PUSH32(esp, eax); /* 0x3604141F: push eax */
   1673     edx = ebp + (-0x10); /* 0x36041420: lea edx, [ebp - 0x10] */
   1674     PUSH32(esp, edx); /* 0x36041423: push edx */
   1675     ecx = 0x363065F0u; /* 0x36041424: mov ecx, 0x363065f0 */
   1676     RECOMP_ICALL(0x360E2B30u); /* 0x36041429: call 0x360e2b30 */ /* not lifted */
   1677     RECOMP_FLAGS_IN();
   1678     eax = MEM32(eax); /* 0x3604142E: mov eax, dword ptr [eax] */
   1679     MEM32(eax + 0x10) = 0x361C03F0u; /* 0x36041430: mov dword ptr [eax + 0x10], 0x361c03f0 */
   1680     eax = ebp + (-0x8); /* 0x36041437: lea eax, [ebp - 8] */
   1681     PUSH32(esp, eax); /* 0x3604143A: push eax */
   1682     ecx = ebp + (-0x4); /* 0x3604143B: lea ecx, [ebp - 4] */
   1683     PUSH32(esp, ecx); /* 0x3604143E: push ecx */
   1684     ecx = ebp + (-0x18); /* 0x3604143F: lea ecx, [ebp - 0x18] */
   1685     MEM32(ebp + (-0x4)) = 0x30u; /* 0x36041442: mov dword ptr [ebp - 4], 0x30 */
   1686     MEM32(ebp + (-0x8)) = esi; /* 0x36041449: mov dword ptr [ebp - 8], esi */
   1687     RECOMP_ICALL(0x3603E680u); /* 0x3604144C: call 0x3603e680 */ /* not lifted */
   1688     RECOMP_FLAGS_IN();
   1689     PUSH32(esp, eax); /* 0x36041451: push eax */
   1690     edx = ebp + (-0x10); /* 0x36041452: lea edx, [ebp - 0x10] */
   1691     PUSH32(esp, edx); /* 0x36041455: push edx */
   1692     ecx = 0x363065F0u; /* 0x36041456: mov ecx, 0x363065f0 */
   1693     RECOMP_ICALL(0x360E2B30u); /* 0x3604145B: call 0x360e2b30 */ /* not lifted */
   1694     RECOMP_FLAGS_IN();
   1695     eax = MEM32(eax); /* 0x36041460: mov eax, dword ptr [eax] */
   1696     MEM32(eax + 0x10) = 0x361C03C8u; /* 0x36041462: mov dword ptr [eax + 0x10], 0x361c03c8 */
   1697     eax = ebp + (-0x8); /* 0x36041469: lea eax, [ebp - 8] */
   1698     ecx = ebp + (-0x4); /* 0x3604146C: lea ecx, [ebp - 4] */
   1699     PUSH32(esp, eax); /* 0x3604146F: push eax */
   1700     PUSH32(esp, ecx); /* 0x36041470: push ecx */
   1701     MEM32(ebp + (-0x4)) = 0x31u; /* 0x36041471: mov dword ptr [ebp - 4], 0x31 */
   1702     MEM32(ebp + (-0x8)) = esi; /* 0x36041478: mov dword ptr [ebp - 8], esi */
   1703     ecx = ebp + (-0x18); /* 0x3604147B: lea ecx, [ebp - 0x18] */
   1704     RECOMP_ICALL(0x3603E680u); /* 0x3604147E: call 0x3603e680 */ /* not lifted */
   1705     RECOMP_FLAGS_IN();
   1706     PUSH32(esp, eax); /* 0x36041483: push eax */
   1707     edx = ebp + (-0x10); /* 0x36041484: lea edx, [ebp - 0x10] */
   1708     PUSH32(esp, edx); /* 0x36041487: push edx */
   1709     ecx = 0x363065F0u; /* 0x36041488: mov ecx, 0x363065f0 */
   1710     RECOMP_ICALL(0x360E2B30u); /* 0x3604148D: call 0x360e2b30 */ /* not lifted */
   1711     RECOMP_FLAGS_IN();
   1712     eax = MEM32(eax); /* 0x36041492: mov eax, dword ptr [eax] */
   1713     MEM32(eax + 0x10) = 0x361C03ACu; /* 0x36041494: mov dword ptr [eax + 0x10], 0x361c03ac */
   1714     eax = ebp + (-0x8); /* 0x3604149B: lea eax, [ebp - 8] */
   1715     PUSH32(esp, eax); /* 0x3604149E: push eax */
   1716     ecx = ebp + (-0x4); /* 0x3604149F: lea ecx, [ebp - 4] */
   1717     PUSH32(esp, ecx); /* 0x360414A2: push ecx */
   1718     ecx = ebp + (-0x18); /* 0x360414A3: lea ecx, [ebp - 0x18] */
   1719     MEM32(ebp + (-0x4)) = 0x32u; /* 0x360414A6: mov dword ptr [ebp - 4], 0x32 */
   1720     MEM32(ebp + (-0x8)) = esi; /* 0x360414AD: mov dword ptr [ebp - 8], esi */
   1721     RECOMP_ICALL(0x3603E680u); /* 0x360414B0: call 0x3603e680 */ /* not lifted */
   1722     RECOMP_FLAGS_IN();
   1723     PUSH32(esp, eax); /* 0x360414B5: push eax */
   1724     edx = ebp + (-0x10); /* 0x360414B6: lea edx, [ebp - 0x10] */
   1725     PUSH32(esp, edx); /* 0x360414B9: push edx */
   1726     ecx = 0x363065F0u; /* 0x360414BA: mov ecx, 0x363065f0 */
   1727     RECOMP_ICALL(0x360E2B30u); /* 0x360414BF: call 0x360e2b30 */ /* not lifted */
   1728     RECOMP_FLAGS_IN();
   1729     eax = MEM32(eax); /* 0x360414C4: mov eax, dword ptr [eax] */
   1730     MEM32(eax + 0x10) = 0x361C038Cu; /* 0x360414C6: mov dword ptr [eax + 0x10], 0x361c038c */
   1731     eax = ebp + (-0x8); /* 0x360414CD: lea eax, [ebp - 8] */
   1732     PUSH32(esp, eax); /* 0x360414D0: push eax */
   1733     ecx = ebp + (-0x4); /* 0x360414D1: lea ecx, [ebp - 4] */
   1734     PUSH32(esp, ecx); /* 0x360414D4: push ecx */
   1735     ecx = ebp + (-0x18); /* 0x360414D5: lea ecx, [ebp - 0x18] */
   1736     MEM32(ebp + (-0x4)) = 0x33u; /* 0x360414D8: mov dword ptr [ebp - 4], 0x33 */
   1737     MEM32(ebp + (-0x8)) = esi; /* 0x360414DF: mov dword ptr [ebp - 8], esi */
   1738     RECOMP_ICALL(0x3603E680u); /* 0x360414E2: call 0x3603e680 */ /* not lifted */
   1739     RECOMP_FLAGS_IN();
   1740     PUSH32(esp, eax); /* 0x360414E7: push eax */
   1741     edx = ebp + (-0x10); /* 0x360414E8: lea edx, [ebp - 0x10] */
   1742     PUSH32(esp, edx); /* 0x360414EB: push edx */
   1743     ecx = 0x363065F0u; /* 0x360414EC: mov ecx, 0x363065f0 */
   1744     RECOMP_ICALL(0x360E2B30u); /* 0x360414F1: call 0x360e2b30 */ /* not lifted */
   1745     RECOMP_FLAGS_IN();
   1746     eax = MEM32(eax); /* 0x360414F6: mov eax, dword ptr [eax] */
   1747     MEM32(eax + 0x10) = 0x361C0324u; /* 0x360414F8: mov dword ptr [eax + 0x10], 0x361c0324 */
   1748     eax = ebp + (-0x8); /* 0x360414FF: lea eax, [ebp - 8] */
   1749     PUSH32(esp, eax); /* 0x36041502: push eax */
   1750     ecx = ebp + (-0x4); /* 0x36041503: lea ecx, [ebp - 4] */
   1751     PUSH32(esp, ecx); /* 0x36041506: push ecx */
   1752     ecx = ebp + (-0x18); /* 0x36041507: lea ecx, [ebp - 0x18] */
   1753     MEM32(ebp + (-0x4)) = 0x34u; /* 0x3604150A: mov dword ptr [ebp - 4], 0x34 */
   1754     MEM32(ebp + (-0x8)) = esi; /* 0x36041511: mov dword ptr [ebp - 8], esi */
   1755     RECOMP_ICALL(0x3603E680u); /* 0x36041514: call 0x3603e680 */ /* not lifted */
   1756     RECOMP_FLAGS_IN();
   1757     PUSH32(esp, eax); /* 0x36041519: push eax */
   1758     edx = ebp + (-0x10); /* 0x3604151A: lea edx, [ebp - 0x10] */
   1759     PUSH32(esp, edx); /* 0x3604151D: push edx */
   1760     ecx = 0x363065F0u; /* 0x3604151E: mov ecx, 0x363065f0 */
   1761     RECOMP_ICALL(0x360E2B30u); /* 0x36041523: call 0x360e2b30 */ /* not lifted */
   1762     RECOMP_FLAGS_IN();
   1763     eax = MEM32(eax); /* 0x36041528: mov eax, dword ptr [eax] */
   1764     MEM32(eax + 0x10) = 0x361C02DCu; /* 0x3604152A: mov dword ptr [eax + 0x10], 0x361c02dc */
   1765     eax = ebp + (-0x8); /* 0x36041531: lea eax, [ebp - 8] */
   1766     PUSH32(esp, eax); /* 0x36041534: push eax */
   1767     ecx = 0x363065F0u; /* 0x36041535: mov ecx, 0x363065f0 */
   1768     MEM32(ebp + (-0x8)) = 0x35u; /* 0x3604153A: mov dword ptr [ebp - 8], 0x35 */
   1769     RECOMP_ICALL(0x360BFC80u); /* 0x36041541: call 0x360bfc80 */ /* not lifted */
   1770     RECOMP_FLAGS_IN();
   1771     ecx = ebp + (-0x8); /* 0x36041546: lea ecx, [ebp - 8] */
   1772     PUSH32(esp, ecx); /* 0x36041549: push ecx */
   1773     MEM32(eax) = 0x361C02A8u; /* 0x3604154A: mov dword ptr [eax], 0x361c02a8 */
   1774     ecx = 0x363065F0u; /* 0x36041550: mov ecx, 0x363065f0 */
   1775     MEM32(ebp + (-0x8)) = 0x36u; /* 0x36041555: mov dword ptr [ebp - 8], 0x36 */
   1776     RECOMP_ICALL(0x360BFC80u); /* 0x3604155C: call 0x360bfc80 */ /* not lifted */
   1777     RECOMP_FLAGS_IN();
   1778     edx = ebp + (-0x8); /* 0x36041561: lea edx, [ebp - 8] */
   1779     MEM32(eax) = 0x361C028Cu; /* 0x36041564: mov dword ptr [eax], 0x361c028c */
   1780     PUSH32(esp, edx); /* 0x3604156A: push edx */
   1781     ecx = 0x363065F0u; /* 0x3604156B: mov ecx, 0x363065f0 */
   1782     MEM32(ebp + (-0x8)) = 0x37u; /* 0x36041570: mov dword ptr [ebp - 8], 0x37 */
   1783     RECOMP_ICALL(0x360BFC80u); /* 0x36041577: call 0x360bfc80 */ /* not lifted */
   1784     RECOMP_FLAGS_IN();
   1785     MEM32(eax) = 0x361C027Cu; /* 0x3604157C: mov dword ptr [eax], 0x361c027c */
   1786     eax = ebp + (-0x8); /* 0x36041582: lea eax, [ebp - 8] */
   1787     PUSH32(esp, eax); /* 0x36041585: push eax */
   1788     ecx = 0x363065F0u; /* 0x36041586: mov ecx, 0x363065f0 */
   1789     MEM32(ebp + (-0x8)) = 0x38u; /* 0x3604158B: mov dword ptr [ebp - 8], 0x38 */
   1790     RECOMP_ICALL(0x360BFC80u); /* 0x36041592: call 0x360bfc80 */ /* not lifted */
   1791     RECOMP_FLAGS_IN();
   1792     ecx = ebp + (-0x8); /* 0x36041597: lea ecx, [ebp - 8] */
   1793     MEM32(eax) = 0x361C0254u; /* 0x3604159A: mov dword ptr [eax], 0x361c0254 */
   1794     PUSH32(esp, ecx); /* 0x360415A0: push ecx */
   1795     MEM32(ebp + (-0x8)) = 0x39u; /* 0x360415A1: mov dword ptr [ebp - 8], 0x39 */
   1796     ecx = 0x363065F0u; /* 0x360415A8: mov ecx, 0x363065f0 */
   1797     RECOMP_ICALL(0x360BFC80u); /* 0x360415AD: call 0x360bfc80 */ /* not lifted */
   1798     RECOMP_FLAGS_IN();
   1799     edx = ebp + (-0x8); /* 0x360415B2: lea edx, [ebp - 8] */
   1800     MEM32(eax) = 0x361C0238u; /* 0x360415B5: mov dword ptr [eax], 0x361c0238 */
   1801     PUSH32(esp, edx); /* 0x360415BB: push edx */
   1802     ecx = 0x363065F0u; /* 0x360415BC: mov ecx, 0x363065f0 */
   1803     MEM32(ebp + (-0x8)) = 0x3Au; /* 0x360415C1: mov dword ptr [ebp - 8], 0x3a */
   1804     RECOMP_ICALL(0x360BFC80u); /* 0x360415C8: call 0x360bfc80 */ /* not lifted */
   1805     RECOMP_FLAGS_IN();
   1806     MEM32(eax) = 0x361C021Cu; /* 0x360415CD: mov dword ptr [eax], 0x361c021c */
   1807     eax = ebp + (-0x8); /* 0x360415D3: lea eax, [ebp - 8] */
   1808     PUSH32(esp, eax); /* 0x360415D6: push eax */
   1809     ecx = 0x363065F0u; /* 0x360415D7: mov ecx, 0x363065f0 */
   1810     MEM32(ebp + (-0x8)) = 0x3Bu; /* 0x360415DC: mov dword ptr [ebp - 8], 0x3b */
   1811     RECOMP_ICALL(0x360BFC80u); /* 0x360415E3: call 0x360bfc80 */ /* not lifted */
   1812     RECOMP_FLAGS_IN();
   1813     ecx = ebp + (-0x8); /* 0x360415E8: lea ecx, [ebp - 8] */
   1814     PUSH32(esp, ecx); /* 0x360415EB: push ecx */
   1815     MEM32(eax) = 0x361C01E8u; /* 0x360415EC: mov dword ptr [eax], 0x361c01e8 */
   1816     ecx = 0x363065F0u; /* 0x360415F2: mov ecx, 0x363065f0 */
   1817     MEM32(ebp + (-0x8)) = 0x3Cu; /* 0x360415F7: mov dword ptr [ebp - 8], 0x3c */
   1818     RECOMP_ICALL(0x360BFC80u); /* 0x360415FE: call 0x360bfc80 */ /* not lifted */
   1819     RECOMP_FLAGS_IN();
   1820     edx = ebp + (-0x8); /* 0x36041603: lea edx, [ebp - 8] */
   1821     MEM32(eax) = 0x361C01C8u; /* 0x36041606: mov dword ptr [eax], 0x361c01c8 */
   1822     PUSH32(esp, edx); /* 0x3604160C: push edx */
   1823     ecx = 0x363065F0u; /* 0x3604160D: mov ecx, 0x363065f0 */
   1824     MEM32(ebp + (-0x8)) = 0x3Du; /* 0x36041612: mov dword ptr [ebp - 8], 0x3d */
   1825     RECOMP_ICALL(0x360BFC80u); /* 0x36041619: call 0x360bfc80 */ /* not lifted */
   1826     RECOMP_FLAGS_IN();
   1827     MEM32(eax) = 0x361C0188u; /* 0x3604161E: mov dword ptr [eax], 0x361c0188 */
   1828     eax = ebp + (-0x8); /* 0x36041624: lea eax, [ebp - 8] */
   1829     PUSH32(esp, eax); /* 0x36041627: push eax */
   1830     ecx = 0x363065F0u; /* 0x36041628: mov ecx, 0x363065f0 */
   1831     MEM32(ebp + (-0x8)) = 0x3Eu; /* 0x3604162D: mov dword ptr [ebp - 8], 0x3e */
   1832     RECOMP_ICALL(0x360BFC80u); /* 0x36041634: call 0x360bfc80 */ /* not lifted */
   1833     RECOMP_FLAGS_IN();
   1834     ecx = ebp + (-0x8); /* 0x36041639: lea ecx, [ebp - 8] */
   1835     PUSH32(esp, ecx); /* 0x3604163C: push ecx */
   1836     MEM32(eax) = 0x361C0158u; /* 0x3604163D: mov dword ptr [eax], 0x361c0158 */
   1837     ecx = 0x363065F0u; /* 0x36041643: mov ecx, 0x363065f0 */
   1838     MEM32(ebp + (-0x8)) = 0x3Fu; /* 0x36041648: mov dword ptr [ebp - 8], 0x3f */
   1839     RECOMP_ICALL(0x360BFC80u); /* 0x3604164F: call 0x360bfc80 */ /* not lifted */
   1840     RECOMP_FLAGS_IN();
   1841     edx = ebp + (-0x8); /* 0x36041654: lea edx, [ebp - 8] */
   1842     MEM32(eax) = 0x361C0124u; /* 0x36041657: mov dword ptr [eax], 0x361c0124 */
   1843     PUSH32(esp, edx); /* 0x3604165D: push edx */
   1844     ecx = 0x363065F0u; /* 0x3604165E: mov ecx, 0x363065f0 */
   1845     MEM32(ebp + (-0x8)) = 0x40u; /* 0x36041663: mov dword ptr [ebp - 8], 0x40 */
   1846     RECOMP_ICALL(0x360BFC80u); /* 0x3604166A: call 0x360bfc80 */ /* not lifted */
   1847     RECOMP_FLAGS_IN();
   1848     MEM32(eax) = 0x361C00F0u; /* 0x3604166F: mov dword ptr [eax], 0x361c00f0 */
   1849     eax = ebp + (-0x8); /* 0x36041675: lea eax, [ebp - 8] */
   1850     PUSH32(esp, eax); /* 0x36041678: push eax */
   1851     ecx = 0x363065F0u; /* 0x36041679: mov ecx, 0x363065f0 */
   1852     MEM32(ebp + (-0x8)) = 0x41u; /* 0x3604167E: mov dword ptr [ebp - 8], 0x41 */
   1853     RECOMP_ICALL(0x360BFC80u); /* 0x36041685: call 0x360bfc80 */ /* not lifted */
   1854     RECOMP_FLAGS_IN();
   1855     ecx = ebp + (-0x8); /* 0x3604168A: lea ecx, [ebp - 8] */
   1856     PUSH32(esp, ecx); /* 0x3604168D: push ecx */
   1857     MEM32(eax) = 0x361C0020u; /* 0x3604168E: mov dword ptr [eax], 0x361c0020 */
   1858     ecx = 0x363065F0u; /* 0x36041694: mov ecx, 0x363065f0 */
   1859     MEM32(ebp + (-0x8)) = 0x42u; /* 0x36041699: mov dword ptr [ebp - 8], 0x42 */
   1860     RECOMP_ICALL(0x360BFC80u); /* 0x360416A0: call 0x360bfc80 */ /* not lifted */
   1861     RECOMP_FLAGS_IN();
   1862     edx = ebp + (-0x8); /* 0x360416A5: lea edx, [ebp - 8] */
   1863     MEM32(eax) = 0x361BFF80u; /* 0x360416A8: mov dword ptr [eax], 0x361bff80 */
   1864     PUSH32(esp, edx); /* 0x360416AE: push edx */
   1865     ecx = 0x363065F0u; /* 0x360416AF: mov ecx, 0x363065f0 */
   1866     MEM32(ebp + (-0x8)) = 0x43u; /* 0x360416B4: mov dword ptr [ebp - 8], 0x43 */
   1867     RECOMP_ICALL(0x360BFC80u); /* 0x360416BB: call 0x360bfc80 */ /* not lifted */
   1868     RECOMP_FLAGS_IN();
   1869     MEM32(eax) = 0x361BFE9Cu; /* 0x360416C0: mov dword ptr [eax], 0x361bfe9c */
   1870     eax = ebp + (-0x8); /* 0x360416C6: lea eax, [ebp - 8] */
   1871     PUSH32(esp, eax); /* 0x360416C9: push eax */
   1872     ecx = 0x363065F0u; /* 0x360416CA: mov ecx, 0x363065f0 */
   1873     MEM32(ebp + (-0x8)) = 0x44u; /* 0x360416CF: mov dword ptr [ebp - 8], 0x44 */
   1874     RECOMP_ICALL(0x360BFC80u); /* 0x360416D6: call 0x360bfc80 */ /* not lifted */
   1875     RECOMP_FLAGS_IN();
   1876     ecx = ebp + (-0x8); /* 0x360416DB: lea ecx, [ebp - 8] */
   1877     PUSH32(esp, ecx); /* 0x360416DE: push ecx */
   1878     MEM32(eax) = 0x361BFE4Cu; /* 0x360416DF: mov dword ptr [eax], 0x361bfe4c */
   1879     ecx = 0x363065F0u; /* 0x360416E5: mov ecx, 0x363065f0 */
   1880     MEM32(ebp + (-0x8)) = 0x45u; /* 0x360416EA: mov dword ptr [ebp - 8], 0x45 */
   1881     RECOMP_ICALL(0x360BFC80u); /* 0x360416F1: call 0x360bfc80 */ /* not lifted */
   1882     RECOMP_FLAGS_IN();
   1883     edx = ebp + (-0x8); /* 0x360416F6: lea edx, [ebp - 8] */
   1884     MEM32(eax) = 0x361BFD94u; /* 0x360416F9: mov dword ptr [eax], 0x361bfd94 */
   1885     PUSH32(esp, edx); /* 0x360416FF: push edx */
   1886     ecx = 0x363065F0u; /* 0x36041700: mov ecx, 0x363065f0 */
   1887     MEM32(ebp + (-0x8)) = 0x46u; /* 0x36041705: mov dword ptr [ebp - 8], 0x46 */
   1888     RECOMP_ICALL(0x360BFC80u); /* 0x3604170C: call 0x360bfc80 */ /* not lifted */
   1889     RECOMP_FLAGS_IN();
   1890     MEM32(eax) = 0x361BFD74u; /* 0x36041711: mov dword ptr [eax], 0x361bfd74 */
   1891     MEM32(ebp + (-0x8)) = 0x47u; /* 0x36041717: mov dword ptr [ebp - 8], 0x47 */
   1892     eax = ebp + (-0x8); /* 0x3604171E: lea eax, [ebp - 8] */
   1893     PUSH32(esp, eax); /* 0x36041721: push eax */
   1894     ecx = 0x363065F0u; /* 0x36041722: mov ecx, 0x363065f0 */
   1895     RECOMP_ICALL(0x360BFC80u); /* 0x36041727: call 0x360bfc80 */ /* not lifted */
   1896     RECOMP_FLAGS_IN();
   1897     ecx = ebp + (-0x8); /* 0x3604172C: lea ecx, [ebp - 8] */
   1898     PUSH32(esp, ecx); /* 0x3604172F: push ecx */
   1899     MEM32(eax) = 0x361BFD54u; /* 0x36041730: mov dword ptr [eax], 0x361bfd54 */
   1900     ecx = 0x363065F0u; /* 0x36041736: mov ecx, 0x363065f0 */
   1901     MEM32(ebp + (-0x8)) = 0x48u; /* 0x3604173B: mov dword ptr [ebp - 8], 0x48 */
   1902     RECOMP_ICALL(0x360BFC80u); /* 0x36041742: call 0x360bfc80 */ /* not lifted */
   1903     RECOMP_FLAGS_IN();
   1904     edx = ebp + (-0x8); /* 0x36041747: lea edx, [ebp - 8] */
   1905     MEM32(eax) = 0x361BFD24u; /* 0x3604174A: mov dword ptr [eax], 0x361bfd24 */
   1906     PUSH32(esp, edx); /* 0x36041750: push edx */
   1907     ecx = 0x363065F0u; /* 0x36041751: mov ecx, 0x363065f0 */
   1908     MEM32(ebp + (-0x8)) = 0x4Au; /* 0x36041756: mov dword ptr [ebp - 8], 0x4a */
   1909     RECOMP_ICALL(0x360BFC80u); /* 0x3604175D: call 0x360bfc80 */ /* not lifted */
   1910     RECOMP_FLAGS_IN();
   1911     MEM32(eax) = 0x361BFC88u; /* 0x36041762: mov dword ptr [eax], 0x361bfc88 */
   1912     eax = ebp + (-0x8); /* 0x36041768: lea eax, [ebp - 8] */
   1913     PUSH32(esp, eax); /* 0x3604176B: push eax */
   1914     ecx = 0x363065F0u; /* 0x3604176C: mov ecx, 0x363065f0 */
   1915     MEM32(ebp + (-0x8)) = 0x53u; /* 0x36041771: mov dword ptr [ebp - 8], 0x53 */
   1916     RECOMP_ICALL(0x360BFC80u); /* 0x36041778: call 0x360bfc80 */ /* not lifted */
   1917     RECOMP_FLAGS_IN();
   1918     ecx = ebp + (-0x8); /* 0x3604177D: lea ecx, [ebp - 8] */
   1919     PUSH32(esp, ecx); /* 0x36041780: push ecx */
   1920     MEM32(eax) = 0x361BFC54u; /* 0x36041781: mov dword ptr [eax], 0x361bfc54 */
   1921     ecx = 0x363065F0u; /* 0x36041787: mov ecx, 0x363065f0 */
   1922     MEM32(ebp + (-0x8)) = 0x54u; /* 0x3604178C: mov dword ptr [ebp - 8], 0x54 */
   1923     RECOMP_ICALL(0x360BFC80u); /* 0x36041793: call 0x360bfc80 */ /* not lifted */
   1924     RECOMP_FLAGS_IN();
   1925     edx = ebp + (-0x8); /* 0x36041798: lea edx, [ebp - 8] */
   1926     MEM32(eax) = 0x361BFC14u; /* 0x3604179B: mov dword ptr [eax], 0x361bfc14 */
   1927     PUSH32(esp, edx); /* 0x360417A1: push edx */
   1928     ecx = 0x363065F0u; /* 0x360417A2: mov ecx, 0x363065f0 */
   1929     MEM32(ebp + (-0x8)) = 0x4Du; /* 0x360417A7: mov dword ptr [ebp - 8], 0x4d */
   1930     RECOMP_ICALL(0x360BFC80u); /* 0x360417AE: call 0x360bfc80 */ /* not lifted */
   1931     RECOMP_FLAGS_IN();
   1932     MEM32(eax) = 0x361BFBE0u; /* 0x360417B3: mov dword ptr [eax], 0x361bfbe0 */
   1933     eax = ebp + (-0x8); /* 0x360417B9: lea eax, [ebp - 8] */
   1934     PUSH32(esp, eax); /* 0x360417BC: push eax */
   1935     ecx = 0x363065F0u; /* 0x360417BD: mov ecx, 0x363065f0 */
   1936     MEM32(ebp + (-0x8)) = 0x4Eu; /* 0x360417C2: mov dword ptr [ebp - 8], 0x4e */
   1937     RECOMP_ICALL(0x360BFC80u); /* 0x360417C9: call 0x360bfc80 */ /* not lifted */
   1938     RECOMP_FLAGS_IN();
   1939     ecx = ebp + (-0x8); /* 0x360417CE: lea ecx, [ebp - 8] */
   1940     PUSH32(esp, ecx); /* 0x360417D1: push ecx */
   1941     MEM32(eax) = 0x361BFB9Cu; /* 0x360417D2: mov dword ptr [eax], 0x361bfb9c */
   1942     ecx = 0x363065F0u; /* 0x360417D8: mov ecx, 0x363065f0 */
   1943     MEM32(ebp + (-0x8)) = 0x4Fu; /* 0x360417DD: mov dword ptr [ebp - 8], 0x4f */
   1944     RECOMP_ICALL(0x360BFC80u); /* 0x360417E4: call 0x360bfc80 */ /* not lifted */
   1945     RECOMP_FLAGS_IN();
   1946     edx = ebp + (-0x8); /* 0x360417E9: lea edx, [ebp - 8] */
   1947     MEM32(eax) = 0x361BFB54u; /* 0x360417EC: mov dword ptr [eax], 0x361bfb54 */
   1948     PUSH32(esp, edx); /* 0x360417F2: push edx */
   1949     ecx = 0x363065F0u; /* 0x360417F3: mov ecx, 0x363065f0 */
   1950     MEM32(ebp + (-0x8)) = 0x50u; /* 0x360417F8: mov dword ptr [ebp - 8], 0x50 */
   1951     RECOMP_ICALL(0x360BFC80u); /* 0x360417FF: call 0x360bfc80 */ /* not lifted */
   1952     RECOMP_FLAGS_IN();
   1953     MEM32(eax) = 0x361BFAFCu; /* 0x36041804: mov dword ptr [eax], 0x361bfafc */
   1954     eax = ebp + (-0x8); /* 0x3604180A: lea eax, [ebp - 8] */
   1955     PUSH32(esp, eax); /* 0x3604180D: push eax */
   1956     ecx = 0x363065F0u; /* 0x3604180E: mov ecx, 0x363065f0 */
   1957     MEM32(ebp + (-0x8)) = 0x51u; /* 0x36041813: mov dword ptr [ebp - 8], 0x51 */
   1958     RECOMP_ICALL(0x360BFC80u); /* 0x3604181A: call 0x360bfc80 */ /* not lifted */
   1959     RECOMP_FLAGS_IN();
   1960     ecx = ebp + (-0x8); /* 0x3604181F: lea ecx, [ebp - 8] */
   1961     PUSH32(esp, ecx); /* 0x36041822: push ecx */
   1962     MEM32(eax) = 0x361BFABCu; /* 0x36041823: mov dword ptr [eax], 0x361bfabc */
   1963     ecx = 0x363065F0u; /* 0x36041829: mov ecx, 0x363065f0 */
   1964     MEM32(ebp + (-0x8)) = 0x52u; /* 0x3604182E: mov dword ptr [ebp - 8], 0x52 */
   1965     RECOMP_ICALL(0x360BFC80u); /* 0x36041835: call 0x360bfc80 */ /* not lifted */
   1966     RECOMP_FLAGS_IN();
   1967     edx = ebp + (-0x8); /* 0x3604183A: lea edx, [ebp - 8] */
   1968     MEM32(eax) = 0x361BFA68u; /* 0x3604183D: mov dword ptr [eax], 0x361bfa68 */
   1969     PUSH32(esp, edx); /* 0x36041843: push edx */
   1970     ecx = 0x363065F0u; /* 0x36041844: mov ecx, 0x363065f0 */
   1971     MEM32(ebp + (-0x8)) = 0x4Cu; /* 0x36041849: mov dword ptr [ebp - 8], 0x4c */
   1972     RECOMP_ICALL(0x360BFC80u); /* 0x36041850: call 0x360bfc80 */ /* not lifted */
   1973     RECOMP_FLAGS_IN();
   1974     MEM32(eax) = 0x361BF9F4u; /* 0x36041855: mov dword ptr [eax], 0x361bf9f4 */
   1975     eax = ebp + (-0x8); /* 0x3604185B: lea eax, [ebp - 8] */
   1976     PUSH32(esp, eax); /* 0x3604185E: push eax */
   1977     ecx = 0x363065F0u; /* 0x3604185F: mov ecx, 0x363065f0 */
   1978     MEM32(ebp + (-0x8)) = 0x55u; /* 0x36041864: mov dword ptr [ebp - 8], 0x55 */
   1979     RECOMP_ICALL(0x360BFC80u); /* 0x3604186B: call 0x360bfc80 */ /* not lifted */
   1980     RECOMP_FLAGS_IN();
   1981     ecx = ebp + (-0x8); /* 0x36041870: lea ecx, [ebp - 8] */
   1982     MEM32(eax) = 0x361BF9B4u; /* 0x36041873: mov dword ptr [eax], 0x361bf9b4 */
   1983     PUSH32(esp, ecx); /* 0x36041879: push ecx */
   1984     MEM32(ebp + (-0x8)) = 1; /* 0x3604187A: mov dword ptr [ebp - 8], 1 */
   1985     ecx = 0x363065D8u; /* 0x36041881: mov ecx, 0x363065d8 */
   1986     RECOMP_ICALL(0x360BFC80u); /* 0x36041886: call 0x360bfc80 */ /* not lifted */
   1987     RECOMP_FLAGS_IN();
   1988     edx = ebp + (-0x8); /* 0x3604188B: lea edx, [ebp - 8] */
   1989     MEM32(eax) = 0x361BF97Cu; /* 0x3604188E: mov dword ptr [eax], 0x361bf97c */
   1990     PUSH32(esp, edx); /* 0x36041894: push edx */
   1991     ecx = 0x363065D8u; /* 0x36041895: mov ecx, 0x363065d8 */
   1992     MEM32(ebp + (-0x8)) = 2; /* 0x3604189A: mov dword ptr [ebp - 8], 2 */
   1993     RECOMP_ICALL(0x360BFC80u); /* 0x360418A1: call 0x360bfc80 */ /* not lifted */
   1994     RECOMP_FLAGS_IN();
   1995     MEM32(eax) = 0x361BF94Cu; /* 0x360418A6: mov dword ptr [eax], 0x361bf94c */
   1996     eax = ebp + (-0x8); /* 0x360418AC: lea eax, [ebp - 8] */
   1997     PUSH32(esp, eax); /* 0x360418AF: push eax */
   1998     ecx = 0x363065D8u; /* 0x360418B0: mov ecx, 0x363065d8 */
   1999     MEM32(ebp + (-0x8)) = 0x49u; /* 0x360418B5: mov dword ptr [ebp - 8], 0x49 */
   2000     RECOMP_ICALL(0x360BFC80u); /* 0x360418BC: call 0x360bfc80 */ /* not lifted */
   2001     RECOMP_FLAGS_IN();
   2002     MEM32(eax) = 0x361BF90Cu; /* 0x360418C1: mov dword ptr [eax], 0x361bf90c */
   2003     esi = POP32_VAL(esp); /* 0x360418C7: pop esi */
   2004     esp = ebp; /* 0x360418C8: mov esp, ebp */
   2005     ebp = POP32_VAL(esp); /* 0x360418CA: pop ebp */
   2006     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360418CB: ret  */
   2007     RECOMP_REGS_OUT();
   2008 }
   2009 
   2010 void sub_360418D0(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(0x360418D0u);
   2019 
   2020 L_360418D0:
   2021     PUSH32(esp, ebp); /* 0x360418D0: push ebp */
   2022     ebp = esp; /* 0x360418D1: mov ebp, esp */
   2023     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x98u);
   2024     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2025     esp = esp - 0x98u; /* 0x360418D3: sub esp, 0x98 */
   2026     _flag_k = FK_CMP;
   2027     PUSH32(esp, esi); /* 0x360418D9: push esi */
   2028     esi = MEM32(ebp + 0x8); /* 0x360418DA: mov esi, dword ptr [ebp + 8] */
   2029     PUSH32(esp, edi); /* 0x360418DD: push edi */
   2030     edi = MEM32(0x363065F4); /* 0x360418DE: mov edi, dword ptr [0x363065f4] */
   2031     eax = ebp + 0x8; /* 0x360418E4: lea eax, [ebp + 8] */
   2032     PUSH32(esp, eax); /* 0x360418E7: push eax */
   2033     ecx = 0x363065F0u; /* 0x360418E8: mov ecx, 0x363065f0 */
   2034     MEM32(ebp + 0x8) = esi; /* 0x360418ED: mov dword ptr [ebp + 8], esi */
   2035     RECOMP_ICALL(0x36076670u); /* 0x360418F0: call 0x36076670 */ /* not lifted */
   2036     RECOMP_FLAGS_IN();
   2037     ecx = MEM32(0x363065F4); /* 0x360418F5: mov ecx, dword ptr [0x363065f4] */
   2038     /* cmp eax, ecx */ /* 0x360418FB: cmp eax, ecx */
   2039     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2040     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2041     _flag_k = FK_CMP;
   2042     MEM32(ebp + (-0x4)) = eax; /* 0x360418FD: mov dword ptr [ebp - 4], eax */
   2043     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604190F; /* 0x36041900: je 0x3604190f */
   2044 L_36041902:
   2045     edx = MEM32(ebp + 0x8); /* 0x36041902: mov edx, dword ptr [ebp + 8] */
   2046     /* cmp edx, MEM32(eax + 0xC) */ /* 0x36041905: cmp edx, dword ptr [eax + 0xc] */
   2047     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0xC));
   2048     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2049     _flag_k = FK_CMP;
   2050     if (CMP_L(_flag_a, _flag_b)) goto L_3604190F; /* 0x36041908: jl 0x3604190f */
   2051 L_3604190A:
   2052     eax = ebp + (-0x4); /* 0x3604190A: lea eax, [ebp - 4] */
   2053     goto L_36041915; /* 0x3604190D: jmp 0x36041915 */
   2054 L_3604190F:
   2055     MEM32(ebp + 0x8) = ecx; /* 0x3604190F: mov dword ptr [ebp + 8], ecx */
   2056     eax = ebp + 0x8; /* 0x36041912: lea eax, [ebp + 8] */
   2057 L_36041915:
   2058     /* cmp MEM32(eax), edi */ /* 0x36041915: cmp dword ptr [eax], edi */
   2059     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(edi);
   2060     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2061     _flag_k = FK_CMP;
   2062     if (CMP_EQ(_flag_a, _flag_b)) goto L_36041957; /* 0x36041917: je 0x36041957 */
   2063 L_36041919:
   2064     eax = ebp + (-0x8); /* 0x36041919: lea eax, [ebp - 8] */
   2065     PUSH32(esp, eax); /* 0x3604191C: push eax */
   2066     ecx = ebp + (-0x10); /* 0x3604191D: lea ecx, [ebp - 0x10] */
   2067     PUSH32(esp, ecx); /* 0x36041920: push ecx */
   2068     ecx = 0x363065F0u; /* 0x36041921: mov ecx, 0x363065f0 */
   2069     MEM32(ebp + (-0x8)) = esi; /* 0x36041926: mov dword ptr [ebp - 8], esi */
   2070     MEM32(ebp + (-0x4)) = 0; /* 0x36041929: mov dword ptr [ebp - 4], 0 */
   2071     RECOMP_ICALL(0x3603E790u); /* 0x36041930: call 0x3603e790 */ /* not lifted */
   2072     RECOMP_FLAGS_IN();
   2073     edx = eax; /* 0x36041935: mov edx, eax */
   2074     eax = MEM32(edx); /* 0x36041937: mov eax, dword ptr [edx] */
   2075     ecx = MEM32(edx + 0x4); /* 0x36041939: mov ecx, dword ptr [edx + 4] */
   2076     edx = MEM32(eax + 0x10); /* 0x3604193C: mov edx, dword ptr [eax + 0x10] */
   2077     PUSH32(esp, 0); /* 0x3604193F: push 0 */
   2078     PUSH32(esp, edx); /* 0x36041941: push edx */
   2079     MEM32(ebp + (-0x14)) = ecx; /* 0x36041942: mov dword ptr [ebp - 0x14], ecx */
   2080     RECOMP_ICALL(0x3601C590u); /* 0x36041945: call 0x3601c590 */ /* not lifted */
   2081     RECOMP_FLAGS_IN();
   2082     ecx = eax; /* 0x3604194A: mov ecx, eax */
   2083     RECOMP_ICALL(0x3601C8C0u); /* 0x3604194C: call 0x3601c8c0 */ /* not lifted */
   2084     RECOMP_FLAGS_IN();
   2085     edi = POP32_VAL(esp); /* 0x36041951: pop edi */
   2086     esi = POP32_VAL(esp); /* 0x36041952: pop esi */
   2087     esp = ebp; /* 0x36041953: mov esp, ebp */
   2088     ebp = POP32_VAL(esp); /* 0x36041955: pop ebp */
   2089     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36041956: ret  */
   2090 L_36041957:
   2091     PUSH32(esp, esi); /* 0x36041957: push esi */
   2092     eax = ebp + (-0x98); /* 0x36041958: lea eax, [ebp - 0x98] */
   2093     PUSH32(esp, 0x361C0D64u); /* 0x3604195E: push 0x361c0d64 */
   2094     PUSH32(esp, eax); /* 0x36041963: push eax */
   2095     RECOMP_ICALL(MEM32(0x3616F25C)); /* 0x36041964: call dword ptr [0x3616f25c] */
   2096     RECOMP_FLAGS_IN();
   2097     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2098     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2099     esp = esp + 0xCu; /* 0x3604196A: add esp, 0xc */
   2100     _flag_k = FK_ADD;
   2101     ecx = ebp + (-0x98); /* 0x3604196D: lea ecx, [ebp - 0x98] */
   2102     PUSH32(esp, 0); /* 0x36041973: push 0 */
   2103     PUSH32(esp, ecx); /* 0x36041975: push ecx */
   2104     RECOMP_ICALL(0x3601C590u); /* 0x36041976: call 0x3601c590 */ /* not lifted */
   2105     RECOMP_FLAGS_IN();
   2106     ecx = eax; /* 0x3604197B: mov ecx, eax */
   2107     RECOMP_ICALL(0x3601C8C0u); /* 0x3604197D: call 0x3601c8c0 */ /* not lifted */
   2108     RECOMP_FLAGS_IN();
   2109     edi = POP32_VAL(esp); /* 0x36041982: pop edi */
   2110     esi = POP32_VAL(esp); /* 0x36041983: pop esi */
   2111     esp = ebp; /* 0x36041984: mov esp, ebp */
   2112     ebp = POP32_VAL(esp); /* 0x36041986: pop ebp */
   2113     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36041987: ret  */
   2114     RECOMP_REGS_OUT();
   2115 }
   2116 
   2117 void sub_36041990(void) {
   2118     int _fpu_cmp = 0;
   2119     uint32_t _cf = 0;
   2120     int _df = 1;
   2121     uint32_t _flag_k = FK_NONE;
   2122     uint32_t _flag_a = 0, _flag_b = 0;
   2123     uint32_t _itail_tgt = 0;
   2124     RECOMP_REGS_LOCALS
   2125     RECOMP_ENTER(0x36041990u);
   2126 
   2127 L_36041990:
   2128     PUSH32(esp, ebp); /* 0x36041990: push ebp */
   2129     ebp = esp; /* 0x36041991: mov ebp, esp */
   2130     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   2131     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2132     esp = esp - 0x18u; /* 0x36041993: sub esp, 0x18 */
   2133     _flag_k = FK_CMP;
   2134     PUSH32(esp, esi); /* 0x36041996: push esi */
   2135     esi = MEM32(0x363065DC); /* 0x36041997: mov esi, dword ptr [0x363065dc] */
   2136     PUSH32(esp, edi); /* 0x3604199D: push edi */
   2137     edi = MEM32(ebp + 0x8); /* 0x3604199E: mov edi, dword ptr [ebp + 8] */
   2138     eax = ebp + 0x8; /* 0x360419A1: lea eax, [ebp + 8] */
   2139     PUSH32(esp, eax); /* 0x360419A4: push eax */
   2140     ecx = 0x363065D8u; /* 0x360419A5: mov ecx, 0x363065d8 */
   2141     MEM32(ebp + 0x8) = edi; /* 0x360419AA: mov dword ptr [ebp + 8], edi */
   2142     RECOMP_ICALL(0x36076670u); /* 0x360419AD: call 0x36076670 */ /* not lifted */
   2143     RECOMP_FLAGS_IN();
   2144     ecx = MEM32(0x363065DC); /* 0x360419B2: mov ecx, dword ptr [0x363065dc] */
   2145     /* cmp eax, ecx */ /* 0x360419B8: cmp eax, ecx */
   2146     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2147     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2148     _flag_k = FK_CMP;
   2149     MEM32(ebp + (-0x4)) = eax; /* 0x360419BA: mov dword ptr [ebp - 4], eax */
   2150     if (CMP_EQ(_flag_a, _flag_b)) goto L_360419CC; /* 0x360419BD: je 0x360419cc */
   2151 L_360419BF:
   2152     edx = MEM32(ebp + 0x8); /* 0x360419BF: mov edx, dword ptr [ebp + 8] */
   2153     /* cmp edx, MEM32(eax + 0xC) */ /* 0x360419C2: cmp edx, dword ptr [eax + 0xc] */
   2154     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0xC));
   2155     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2156     _flag_k = FK_CMP;
   2157     if (CMP_L(_flag_a, _flag_b)) goto L_360419CC; /* 0x360419C5: jl 0x360419cc */
   2158 L_360419C7:
   2159     eax = ebp + (-0x4); /* 0x360419C7: lea eax, [ebp - 4] */
   2160     goto L_360419D2; /* 0x360419CA: jmp 0x360419d2 */
   2161 L_360419CC:
   2162     MEM32(ebp + 0x8) = ecx; /* 0x360419CC: mov dword ptr [ebp + 8], ecx */
   2163     eax = ebp + 0x8; /* 0x360419CF: lea eax, [ebp + 8] */
   2164 L_360419D2:
   2165     /* cmp MEM32(eax), esi */ /* 0x360419D2: cmp dword ptr [eax], esi */
   2166     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(esi);
   2167     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2168     _flag_k = FK_CMP;
   2169     if (CMP_EQ(_flag_a, _flag_b)) goto L_36041A05; /* 0x360419D4: je 0x36041a05 */
   2170 L_360419D6:
   2171     eax = ebp + (-0x8); /* 0x360419D6: lea eax, [ebp - 8] */
   2172     PUSH32(esp, eax); /* 0x360419D9: push eax */
   2173     ecx = ebp + (-0x10); /* 0x360419DA: lea ecx, [ebp - 0x10] */
   2174     PUSH32(esp, ecx); /* 0x360419DD: push ecx */
   2175     ecx = 0x363065D8u; /* 0x360419DE: mov ecx, 0x363065d8 */
   2176     MEM32(ebp + (-0x8)) = edi; /* 0x360419E3: mov dword ptr [ebp - 8], edi */
   2177     MEM32(ebp + (-0x4)) = 0; /* 0x360419E6: mov dword ptr [ebp - 4], 0 */
   2178     RECOMP_ICALL(0x3603E790u); /* 0x360419ED: call 0x3603e790 */ /* not lifted */
   2179     RECOMP_FLAGS_IN();
   2180     edx = eax; /* 0x360419F2: mov edx, eax */
   2181     eax = MEM32(edx); /* 0x360419F4: mov eax, dword ptr [edx] */
   2182     ecx = MEM32(edx + 0x4); /* 0x360419F6: mov ecx, dword ptr [edx + 4] */
   2183     eax = MEM32(eax + 0x10); /* 0x360419F9: mov eax, dword ptr [eax + 0x10] */
   2184     edi = POP32_VAL(esp); /* 0x360419FC: pop edi */
   2185     MEM32(ebp + (-0x14)) = ecx; /* 0x360419FD: mov dword ptr [ebp - 0x14], ecx */
   2186     esi = POP32_VAL(esp); /* 0x36041A00: pop esi */
   2187     esp = ebp; /* 0x36041A01: mov esp, ebp */
   2188     ebp = POP32_VAL(esp); /* 0x36041A03: pop ebp */
   2189     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36041A04: ret  */
   2190 L_36041A05:
   2191     eax = MEM32(0x361BF8F0); /* 0x36041A05: mov eax, dword ptr [0x361bf8f0] */
   2192     edi = POP32_VAL(esp); /* 0x36041A0A: pop edi */
   2193     esi = POP32_VAL(esp); /* 0x36041A0B: pop esi */
   2194     esp = ebp; /* 0x36041A0C: mov esp, ebp */
   2195     ebp = POP32_VAL(esp); /* 0x36041A0E: pop ebp */
   2196     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36041A0F: ret  */
   2197     RECOMP_REGS_OUT();
   2198 }
   2199 
   2200 void sub_36041A10(void) {
   2201     int _fpu_cmp = 0;
   2202     uint32_t _cf = 0;
   2203     int _df = 1;
   2204     uint32_t _flag_k = FK_NONE;
   2205     uint32_t _flag_a = 0, _flag_b = 0;
   2206     uint32_t _itail_tgt = 0;
   2207     RECOMP_REGS_LOCALS
   2208     RECOMP_ENTER(0x36041A10u);
   2209 
   2210 L_36041A10:
   2211     PUSH32(esp, ebp); /* 0x36041A10: push ebp */
   2212     ebp = esp; /* 0x36041A11: mov ebp, esp */
   2213     PUSH32(esp, 0xFFFFFFFFu); /* 0x36041A13: push -1 */
   2214     PUSH32(esp, 0x36163D46u); /* 0x36041A15: push 0x36163d46 */
   2215     eax = MEM32(FS_BASE + (0)); /* 0x36041A1A: mov eax, dword ptr fs:[0] */
   2216     PUSH32(esp, eax); /* 0x36041A20: push eax */
   2217     MEM32(FS_BASE + (0)) = esp; /* 0x36041A21: mov dword ptr fs:[0], esp */
   2218     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   2219     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2220     esp = esp - 0x1Cu; /* 0x36041A28: sub esp, 0x1c */
   2221     _flag_k = FK_CMP;
   2222     PUSH32(esp, ebx); /* 0x36041A2B: push ebx */
   2223     PUSH32(esp, esi); /* 0x36041A2C: push esi */
   2224     PUSH32(esp, edi); /* 0x36041A2D: push edi */
   2225     edi = ecx; /* 0x36041A2E: mov edi, ecx */
   2226     PUSH32(esp, 0x14u); /* 0x36041A30: push 0x14 */
   2227     MEM32(edi) = 0x361709E8u; /* 0x36041A32: mov dword ptr [edi], 0x361709e8 */
   2228     RECOMP_ICALL(0x3615FD6Au); /* 0x36041A38: call 0x3615fd6a */ /* not lifted */
   2229     RECOMP_FLAGS_IN();
   2230     esi = eax; /* 0x36041A3D: mov esi, eax */
   2231     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2232     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2233     esp = esp + 4; /* 0x36041A3F: add esp, 4 */
   2234     _flag_k = FK_ADD;
   2235     MEM32(ebp + (-0x14)) = esi; /* 0x36041A42: mov dword ptr [ebp - 0x14], esi */
   2236     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2237     ebx = 0; /* 0x36041A45: xor ebx, ebx */
   2238     _cf = 0;
   2239     _flag_k = FK_TEST;
   2240     /* cmp esi, ebx */ /* 0x36041A47: cmp esi, ebx */
   2241     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   2242     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2243     _flag_k = FK_CMP;
   2244     MEM32(ebp + (-0x4)) = ebx; /* 0x36041A49: mov dword ptr [ebp - 4], ebx */
   2245     if (CMP_EQ(_flag_a, _flag_b)) goto L_36041A9E; /* 0x36041A4C: je 0x36041a9e */
   2246 L_36041A4E:
   2247     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x36041A4E: mov al, byte ptr [ebp - 0xd] */
   2248     SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x36041A51: mov cl, byte ptr [ebp - 0xd] */
   2249     PUSH32(esp, 0x18u); /* 0x36041A54: push 0x18 */
   2250     MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x36041A56: mov byte ptr [esi], al */
   2251     MEM8(esi + 0x1) = (uint8_t)(LO8(ecx)); /* 0x36041A58: mov byte ptr [esi + 1], cl */
   2252     MEM8(esi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x36041A5B: mov byte ptr [esi + 0xc], bl */
   2253     RECOMP_ICALL(0x3615FD6Au); /* 0x36041A5E: call 0x3615fd6a */ /* not lifted */
   2254     RECOMP_FLAGS_IN();
   2255     MEM32(eax + 0x4) = ebx; /* 0x36041A63: mov dword ptr [eax + 4], ebx */
   2256     MEM8(eax + 0x14) = (uint8_t)(1); /* 0x36041A66: mov byte ptr [eax + 0x14], 1 */
   2257     MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x36041A6A: mov byte ptr [eax + 0x15], bl */
   2258     MEM32(esi + 0x8) = eax; /* 0x36041A6D: mov dword ptr [esi + 8], eax */
   2259     MEM8(eax + 0x15) = (uint8_t)(1); /* 0x36041A70: mov byte ptr [eax + 0x15], 1 */
   2260     eax = MEM32(esi + 0x8); /* 0x36041A74: mov eax, dword ptr [esi + 8] */
   2261     MEM32(eax) = ebx; /* 0x36041A77: mov dword ptr [eax], ebx */
   2262     edx = MEM32(esi + 0x8); /* 0x36041A79: mov edx, dword ptr [esi + 8] */
   2263     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2264     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2265     esp = esp + 4; /* 0x36041A7C: add esp, 4 */
   2266     _flag_k = FK_ADD;
   2267     MEM32(edx + 0x8) = ebx; /* 0x36041A7F: mov dword ptr [edx + 8], ebx */
   2268     eax = MEM32(esi + 0x8); /* 0x36041A82: mov eax, dword ptr [esi + 8] */
   2269     PUSH32(esp, ebx); /* 0x36041A85: push ebx */
   2270     PUSH32(esp, eax); /* 0x36041A86: push eax */
   2271     ecx = esi; /* 0x36041A87: mov ecx, esi */
   2272     RECOMP_ICALL(0x3608AA20u); /* 0x36041A89: call 0x3608aa20 */ /* not lifted */
   2273     RECOMP_FLAGS_IN();
   2274     MEM32(esi + 0x4) = eax; /* 0x36041A8E: mov dword ptr [esi + 4], eax */
   2275     MEM32(eax) = eax; /* 0x36041A91: mov dword ptr [eax], eax */
   2276     eax = MEM32(esi + 0x4); /* 0x36041A93: mov eax, dword ptr [esi + 4] */
   2277     MEM32(eax + 0x8) = eax; /* 0x36041A96: mov dword ptr [eax + 8], eax */
   2278     MEM32(esi + 0x10) = ebx; /* 0x36041A99: mov dword ptr [esi + 0x10], ebx */
   2279     goto L_36041AA0; /* 0x36041A9C: jmp 0x36041aa0 */
   2280 L_36041A9E:
   2281     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2282     esi = 0; /* 0x36041A9E: xor esi, esi */
   2283     _cf = 0;
   2284     _flag_k = FK_TEST;
   2285 L_36041AA0:
   2286     PUSH32(esp, 0xCu); /* 0x36041AA0: push 0xc */
   2287     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36041AA2: mov dword ptr [ebp - 4], 0xffffffff */
   2288     MEM32(edi + 0x4) = esi; /* 0x36041AA9: mov dword ptr [edi + 4], esi */
   2289     RECOMP_ICALL(0x3615FD6Au); /* 0x36041AAC: call 0x3615fd6a */ /* not lifted */
   2290     RECOMP_FLAGS_IN();
   2291     esi = eax; /* 0x36041AB1: mov esi, eax */
   2292     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2293     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2294     esp = esp + 4; /* 0x36041AB3: add esp, 4 */
   2295     _flag_k = FK_ADD;
   2296     MEM32(ebp + (-0x14)) = esi; /* 0x36041AB6: mov dword ptr [ebp - 0x14], esi */
   2297     /* cmp esi, ebx */ /* 0x36041AB9: cmp esi, ebx */
   2298     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   2299     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2300     _flag_k = FK_CMP;
   2301     MEM32(ebp + (-0x4)) = 1; /* 0x36041ABB: mov dword ptr [ebp - 4], 1 */
   2302     if (CMP_EQ(_flag_a, _flag_b)) goto L_36041AE0; /* 0x36041AC2: je 0x36041ae0 */
   2303 L_36041AC4:
   2304     SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x36041AC4: mov cl, byte ptr [ebp - 0xd] */
   2305     PUSH32(esp, 0xCu); /* 0x36041AC7: push 0xc */
   2306     MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x36041AC9: mov byte ptr [esi], cl */
   2307     RECOMP_ICALL(0x3615FD6Au); /* 0x36041ACB: call 0x3615fd6a */ /* not lifted */
   2308     RECOMP_FLAGS_IN();
   2309     MEM32(eax) = eax; /* 0x36041AD0: mov dword ptr [eax], eax */
   2310     MEM32(eax + 0x4) = eax; /* 0x36041AD2: mov dword ptr [eax + 4], eax */
   2311     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2312     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2313     esp = esp + 4; /* 0x36041AD5: add esp, 4 */
   2314     _flag_k = FK_ADD;
   2315     MEM32(esi + 0x4) = eax; /* 0x36041AD8: mov dword ptr [esi + 4], eax */
   2316     MEM32(esi + 0x8) = ebx; /* 0x36041ADB: mov dword ptr [esi + 8], ebx */
   2317     goto L_36041AE2; /* 0x36041ADE: jmp 0x36041ae2 */
   2318 L_36041AE0:
   2319     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2320     esi = 0; /* 0x36041AE0: xor esi, esi */
   2321     _cf = 0;
   2322     _flag_k = FK_TEST;
   2323 L_36041AE2:
   2324     ecx = MEM32(edi + 0x4); /* 0x36041AE2: mov ecx, dword ptr [edi + 4] */
   2325     edx = ebp + (-0x18); /* 0x36041AE5: lea edx, [ebp - 0x18] */
   2326     PUSH32(esp, edx); /* 0x36041AE8: push edx */
   2327     eax = ebp + (-0x20); /* 0x36041AE9: lea eax, [ebp - 0x20] */
   2328     PUSH32(esp, eax); /* 0x36041AEC: push eax */
   2329     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36041AED: mov dword ptr [ebp - 4], 0xffffffff */
   2330     MEM32(edi + 0x8) = esi; /* 0x36041AF4: mov dword ptr [edi + 8], esi */
   2331     MEM32(ebp + (-0x18)) = 0xBu; /* 0x36041AF7: mov dword ptr [ebp - 0x18], 0xb */
   2332     MEM32(ebp + (-0x14)) = ebx; /* 0x36041AFE: mov dword ptr [ebp - 0x14], ebx */
   2333     RECOMP_ICALL(0x3603E790u); /* 0x36041B01: call 0x3603e790 */ /* not lifted */
   2334     RECOMP_FLAGS_IN();
   2335     ecx = eax; /* 0x36041B06: mov ecx, eax */
   2336     eax = MEM32(ecx); /* 0x36041B08: mov eax, dword ptr [ecx] */
   2337     edx = MEM32(ecx + 0x4); /* 0x36041B0A: mov edx, dword ptr [ecx + 4] */
   2338     ecx = MEM32(edi + 0x8); /* 0x36041B0D: mov ecx, dword ptr [edi + 8] */
   2339     MEM32(eax + 0x10) = ecx; /* 0x36041B10: mov dword ptr [eax + 0x10], ecx */
   2340     ecx = MEM32(ebp + (-0xC)); /* 0x36041B13: mov ecx, dword ptr [ebp - 0xc] */
   2341     eax = edi; /* 0x36041B16: mov eax, edi */
   2342     edi = POP32_VAL(esp); /* 0x36041B18: pop edi */
   2343     esi = POP32_VAL(esp); /* 0x36041B19: pop esi */
   2344     MEM32(ebp + (-0x24)) = edx; /* 0x36041B1A: mov dword ptr [ebp - 0x24], edx */
   2345     ebx = POP32_VAL(esp); /* 0x36041B1D: pop ebx */
   2346     MEM32(FS_BASE + (0)) = ecx; /* 0x36041B1E: mov dword ptr fs:[0], ecx */
   2347     esp = ebp; /* 0x36041B25: mov esp, ebp */
   2348     ebp = POP32_VAL(esp); /* 0x36041B27: pop ebp */
   2349     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36041B28: ret  */
   2350     RECOMP_REGS_OUT();
   2351 }
   2352 
   2353 void sub_36041B30(void) {
   2354     int _fpu_cmp = 0;
   2355     uint32_t _cf = 0;
   2356     int _df = 1;
   2357     uint32_t _flag_k = FK_NONE;
   2358     uint32_t _flag_a = 0, _flag_b = 0;
   2359     uint32_t _itail_tgt = 0;
   2360     RECOMP_REGS_LOCALS
   2361     RECOMP_ENTER(0x36041B30u);
   2362 
   2363 L_36041B30:
   2364     PUSH32(esp, ebp); /* 0x36041B30: push ebp */
   2365     ebp = esp; /* 0x36041B31: mov ebp, esp */
   2366     PUSH32(esp, esi); /* 0x36041B33: push esi */
   2367     esi = ecx; /* 0x36041B34: mov esi, ecx */
   2368     RECOMP_ICALL(0x36041B60u); /* 0x36041B36: call 0x36041b60 */ /* not lifted */
   2369     RECOMP_FLAGS_IN();
   2370     /* test MEM8(ebp + 0x8), 1 */ /* 0x36041B3B: test byte ptr [ebp + 8], 1 */
   2371     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   2372     _cf = 0;
   2373     _flag_k = FK_NARROW(FK_TEST, 24);
   2374     if (TEST_Z(_flag_a, _flag_b)) goto L_36041B4A; /* 0x36041B3F: je 0x36041b4a */
   2375 L_36041B41:
   2376     PUSH32(esp, esi); /* 0x36041B41: push esi */
   2377     RECOMP_ICALL(0x3615FCC4u); /* 0x36041B42: call 0x3615fcc4 */ /* not lifted */
   2378     RECOMP_FLAGS_IN();
   2379     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2380     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2381     esp = esp + 4; /* 0x36041B47: add esp, 4 */
   2382     _flag_k = FK_ADD;
   2383 L_36041B4A:
   2384     eax = esi; /* 0x36041B4A: mov eax, esi */
   2385     esi = POP32_VAL(esp); /* 0x36041B4C: pop esi */
   2386     ebp = POP32_VAL(esp); /* 0x36041B4D: pop ebp */
   2387     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36041B4E: ret 4 */
   2388     RECOMP_REGS_OUT();
   2389 }
   2390 
   2391 void sub_36041B60(void) {
   2392     int _fpu_cmp = 0;
   2393     uint32_t _cf = 0;
   2394     int _df = 1;
   2395     uint32_t _flag_k = FK_NONE;
   2396     uint32_t _flag_a = 0, _flag_b = 0;
   2397     uint32_t _itail_tgt = 0;
   2398     RECOMP_REGS_LOCALS
   2399     RECOMP_ENTER(0x36041B60u);
   2400 
   2401 L_36041B60:
   2402     PUSH32(esp, ebp); /* 0x36041B60: push ebp */
   2403     ebp = esp; /* 0x36041B61: mov ebp, esp */
   2404     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2405     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2406     esp = esp - 0x10u; /* 0x36041B63: sub esp, 0x10 */
   2407     _flag_k = FK_CMP;
   2408     edx = MEM32(ecx + 0x4); /* 0x36041B66: mov edx, dword ptr [ecx + 4] */
   2409     /* test edx, edx */ /* 0x36041B69: test edx, edx */
   2410     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   2411     _cf = 0;
   2412     _flag_k = FK_TEST;
   2413     MEM32(ebp + (-0x8)) = ecx; /* 0x36041B6B: mov dword ptr [ebp - 8], ecx */
   2414     MEM32(ecx) = 0x361709E8u; /* 0x36041B6E: mov dword ptr [ecx], 0x361709e8 */
   2415     if (TEST_Z(_flag_a, _flag_b)) goto L_36041C1B; /* 0x36041B74: je 0x36041c1b */
   2416 L_36041B7A:
   2417     eax = MEM32(edx + 0x4); /* 0x36041B7A: mov eax, dword ptr [edx + 4] */
   2418     eax = MEM32(eax); /* 0x36041B7D: mov eax, dword ptr [eax] */
   2419     MEM32(ebp + (-0x4)) = eax; /* 0x36041B7F: mov dword ptr [ebp - 4], eax */
   2420     edx = MEM32(edx + 0x4); /* 0x36041B82: mov edx, dword ptr [edx + 4] */
   2421     /* cmp eax, edx */ /* 0x36041B85: cmp eax, edx */
   2422     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   2423     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2424     _flag_k = FK_CMP;
   2425     PUSH32(esp, esi); /* 0x36041B87: push esi */
   2426     MEM32(ebp + (-0xC)) = edx; /* 0x36041B88: mov dword ptr [ebp - 0xc], edx */
   2427     if (CMP_EQ(_flag_a, _flag_b)) goto L_36041BF9; /* 0x36041B8B: je 0x36041bf9 */
   2428 L_36041B8D:
   2429     PUSH32(esp, ebx); /* 0x36041B8D: push ebx */
   2430     PUSH32(esp, edi); /* 0x36041B8E: push edi */
   2431 L_36041B8F:
   2432     edi = MEM32(eax + 0x10); /* 0x36041B8F: mov edi, dword ptr [eax + 0x10] */
   2433     ebx = MEM32(edi + 0x4); /* 0x36041B92: mov ebx, dword ptr [edi + 4] */
   2434     esi = MEM32(ebx); /* 0x36041B95: mov esi, dword ptr [ebx] */
   2435     /* cmp esi, ebx */ /* 0x36041B97: cmp esi, ebx */
   2436     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   2437     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2438     _flag_k = FK_CMP;
   2439     if (CMP_EQ(_flag_a, _flag_b)) goto L_36041BA9; /* 0x36041B99: je 0x36041ba9 */
   2440 L_36041B9B:
   2441     ecx = MEM32(esi + 0x8); /* 0x36041B9B: mov ecx, dword ptr [esi + 8] */
   2442     RECOMP_ICALL(0x360C35F0u); /* 0x36041B9E: call 0x360c35f0 */ /* not lifted */
   2443     RECOMP_FLAGS_IN();
   2444     esi = MEM32(esi); /* 0x36041BA3: mov esi, dword ptr [esi] */
   2445     /* cmp esi, ebx */ /* 0x36041BA5: cmp esi, ebx */
   2446     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   2447     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2448     _flag_k = FK_CMP;
   2449     RECOMP_BACKEDGE();
   2450     if (CMP_NE(_flag_a, _flag_b)) goto L_36041B9B; /* 0x36041BA7: jne 0x36041b9b */
   2451 L_36041BA9:
   2452     /* test edi, edi */ /* 0x36041BA9: test edi, edi */
   2453     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2454     _cf = 0;
   2455     _flag_k = FK_TEST;
   2456     if (TEST_Z(_flag_a, _flag_b)) goto L_36041BE4; /* 0x36041BAB: je 0x36041be4 */
   2457 L_36041BAD:
   2458     ebx = MEM32(edi + 0x4); /* 0x36041BAD: mov ebx, dword ptr [edi + 4] */
   2459     esi = MEM32(ebx); /* 0x36041BB0: mov esi, dword ptr [ebx] */
   2460     /* cmp esi, ebx */ /* 0x36041BB2: cmp esi, ebx */
   2461     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   2462     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2463     _flag_k = FK_CMP;
   2464     if (CMP_EQ(_flag_a, _flag_b)) goto L_36041BCA; /* 0x36041BB4: je 0x36041bca */
   2465 L_36041BB6:
   2466     eax = esi; /* 0x36041BB6: mov eax, esi */
   2467     esi = MEM32(esi); /* 0x36041BB8: mov esi, dword ptr [esi] */
   2468     PUSH32(esp, eax); /* 0x36041BBA: push eax */
   2469     ecx = ebp + (-0x10); /* 0x36041BBB: lea ecx, [ebp - 0x10] */
   2470     PUSH32(esp, ecx); /* 0x36041BBE: push ecx */
   2471     ecx = edi; /* 0x36041BBF: mov ecx, edi */
   2472     RECOMP_ICALL(0x360C86A0u); /* 0x36041BC1: call 0x360c86a0 */ /* not lifted */
   2473     RECOMP_FLAGS_IN();
   2474     /* cmp esi, ebx */ /* 0x36041BC6: cmp esi, ebx */
   2475     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   2476     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2477     _flag_k = FK_CMP;
   2478     RECOMP_BACKEDGE();
   2479     if (CMP_NE(_flag_a, _flag_b)) goto L_36041BB6; /* 0x36041BC8: jne 0x36041bb6 */
   2480 L_36041BCA:
   2481     edx = MEM32(edi + 0x4); /* 0x36041BCA: mov edx, dword ptr [edi + 4] */
   2482     PUSH32(esp, edx); /* 0x36041BCD: push edx */
   2483     RECOMP_ICALL(0x3615FCC4u); /* 0x36041BCE: call 0x3615fcc4 */ /* not lifted */
   2484     RECOMP_FLAGS_IN();
   2485     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2486     eax = 0; /* 0x36041BD3: xor eax, eax */
   2487     _cf = 0;
   2488     _flag_k = FK_TEST;
   2489     PUSH32(esp, edi); /* 0x36041BD5: push edi */
   2490     MEM32(edi + 0x4) = eax; /* 0x36041BD6: mov dword ptr [edi + 4], eax */
   2491     MEM32(edi + 0x8) = eax; /* 0x36041BD9: mov dword ptr [edi + 8], eax */
   2492     RECOMP_ICALL(0x3615FCC4u); /* 0x36041BDC: call 0x3615fcc4 */ /* not lifted */
   2493     RECOMP_FLAGS_IN();
   2494     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2495     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2496     esp = esp + 8; /* 0x36041BE1: add esp, 8 */
   2497     _flag_k = FK_ADD;
   2498 L_36041BE4:
   2499     ecx = ebp + (-0x4); /* 0x36041BE4: lea ecx, [ebp - 4] */
   2500     RECOMP_ICALL(0x36064140u); /* 0x36041BE7: call 0x36064140 */ /* not lifted */
   2501     RECOMP_FLAGS_IN();
   2502     eax = MEM32(ebp + (-0x4)); /* 0x36041BEC: mov eax, dword ptr [ebp - 4] */
   2503     /* cmp eax, MEM32(ebp + (-0xC)) */ /* 0x36041BEF: cmp eax, dword ptr [ebp - 0xc] */
   2504     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0xC)));
   2505     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2506     _flag_k = FK_CMP;
   2507     RECOMP_BACKEDGE();
   2508     if (CMP_NE(_flag_a, _flag_b)) goto L_36041B8F; /* 0x36041BF2: jne 0x36041b8f */
   2509 L_36041BF4:
   2510     ecx = MEM32(ebp + (-0x8)); /* 0x36041BF4: mov ecx, dword ptr [ebp - 8] */
   2511     edi = POP32_VAL(esp); /* 0x36041BF7: pop edi */
   2512     ebx = POP32_VAL(esp); /* 0x36041BF8: pop ebx */
   2513 L_36041BF9:
   2514     esi = MEM32(ecx + 0x4); /* 0x36041BF9: mov esi, dword ptr [ecx + 4] */
   2515     /* test esi, esi */ /* 0x36041BFC: test esi, esi */
   2516     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   2517     _cf = 0;
   2518     _flag_k = FK_TEST;
   2519     if (TEST_Z(_flag_a, _flag_b)) goto L_36041C13; /* 0x36041BFE: je 0x36041c13 */
   2520 L_36041C00:
   2521     ecx = esi; /* 0x36041C00: mov ecx, esi */
   2522     RECOMP_ICALL(0x36041C20u); /* 0x36041C02: call 0x36041c20 */ /* not lifted */
   2523     RECOMP_FLAGS_IN();
   2524     PUSH32(esp, esi); /* 0x36041C07: push esi */
   2525     RECOMP_ICALL(0x3615FCC4u); /* 0x36041C08: call 0x3615fcc4 */ /* not lifted */
   2526     RECOMP_FLAGS_IN();
   2527     ecx = MEM32(ebp + (-0x8)); /* 0x36041C0D: mov ecx, dword ptr [ebp - 8] */
   2528     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2529     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2530     esp = esp + 4; /* 0x36041C10: add esp, 4 */
   2531     _flag_k = FK_ADD;
   2532 L_36041C13:
   2533     MEM32(ecx + 0x4) = 0; /* 0x36041C13: mov dword ptr [ecx + 4], 0 */
   2534     esi = POP32_VAL(esp); /* 0x36041C1A: pop esi */
   2535 L_36041C1B:
   2536     esp = ebp; /* 0x36041C1B: mov esp, ebp */
   2537     ebp = POP32_VAL(esp); /* 0x36041C1D: pop ebp */
   2538     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36041C1E: ret  */
   2539     RECOMP_REGS_OUT();
   2540 }
   2541 
   2542 void sub_36041C20(void) {
   2543     int _fpu_cmp = 0;
   2544     uint32_t _cf = 0;
   2545     int _df = 1;
   2546     uint32_t _flag_k = FK_NONE;
   2547     uint32_t _flag_a = 0, _flag_b = 0;
   2548     uint32_t _itail_tgt = 0;
   2549     RECOMP_REGS_LOCALS
   2550     RECOMP_ENTER(0x36041C20u);
   2551 
   2552 L_36041C20:
   2553     PUSH32(esp, ebp); /* 0x36041C20: push ebp */
   2554     ebp = esp; /* 0x36041C21: mov ebp, esp */
   2555     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2556     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2557     esp = esp - 8; /* 0x36041C23: sub esp, 8 */
   2558     _flag_k = FK_CMP;
   2559     PUSH32(esp, ebx); /* 0x36041C26: push ebx */
   2560     PUSH32(esp, esi); /* 0x36041C27: push esi */
   2561     esi = ecx; /* 0x36041C28: mov esi, ecx */
   2562     ecx = MEM32(esi + 0x10); /* 0x36041C2A: mov ecx, dword ptr [esi + 0x10] */
   2563     /* test ecx, ecx */ /* 0x36041C2D: test ecx, ecx */
   2564     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2565     _cf = 0;
   2566     _flag_k = FK_TEST;
   2567     PUSH32(esp, edi); /* 0x36041C2F: push edi */
   2568     edi = MEM32(esi + 0x4); /* 0x36041C30: mov edi, dword ptr [esi + 4] */
   2569     eax = MEM32(edi); /* 0x36041C33: mov eax, dword ptr [edi] */
   2570     MEM32(ebp + (-0x4)) = eax; /* 0x36041C35: mov dword ptr [ebp - 4], eax */
   2571     if (TEST_Z(_flag_a, _flag_b)) goto L_36041C95; /* 0x36041C38: je 0x36041c95 */
   2572 L_36041C3A:
   2573     ecx = eax; /* 0x36041C3A: mov ecx, eax */
   2574     /* cmp eax, ecx */ /* 0x36041C3C: cmp eax, ecx */
   2575     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2576     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2577     _flag_k = FK_CMP;
   2578     if (CMP_NE(_flag_a, _flag_b)) goto L_36041C95; /* 0x36041C3E: jne 0x36041c95 */
   2579 L_36041C40:
   2580     /* cmp edi, edi */ /* 0x36041C40: cmp edi, edi */
   2581     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2582     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2583     _flag_k = FK_CMP;
   2584     if (CMP_NE(_flag_a, _flag_b)) goto L_36041C95; /* 0x36041C42: jne 0x36041c95 */
   2585 L_36041C44:
   2586     ebx = MEM32(edi + 0x4); /* 0x36041C44: mov ebx, dword ptr [edi + 4] */
   2587     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x36041C47: cmp ebx, dword ptr [esi + 8] */
   2588     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2589     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2590     _flag_k = FK_CMP;
   2591     edi = ebx; /* 0x36041C4A: mov edi, ebx */
   2592     if (CMP_EQ(_flag_a, _flag_b)) goto L_36041C6D; /* 0x36041C4C: je 0x36041c6d */
   2593 L_36041C4E:
   2594     eax = MEM32(edi + 0x8); /* 0x36041C4E: mov eax, dword ptr [edi + 8] */
   2595     PUSH32(esp, eax); /* 0x36041C51: push eax */
   2596     ecx = esi; /* 0x36041C52: mov ecx, esi */
   2597     RECOMP_ICALL(0x360420D0u); /* 0x36041C54: call 0x360420d0 */ /* not lifted */
   2598     RECOMP_FLAGS_IN();
   2599     edi = MEM32(edi); /* 0x36041C59: mov edi, dword ptr [edi] */
   2600     PUSH32(esp, ebx); /* 0x36041C5B: push ebx */
   2601     RECOMP_ICALL(0x3615FCC4u); /* 0x36041C5C: call 0x3615fcc4 */ /* not lifted */
   2602     RECOMP_FLAGS_IN();
   2603     eax = MEM32(esi + 0x8); /* 0x36041C61: mov eax, dword ptr [esi + 8] */
   2604     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2605     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2606     esp = esp + 4; /* 0x36041C64: add esp, 4 */
   2607     _flag_k = FK_ADD;
   2608     /* cmp edi, eax */ /* 0x36041C67: cmp edi, eax */
   2609     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2610     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2611     _flag_k = FK_CMP;
   2612     ebx = edi; /* 0x36041C69: mov ebx, edi */
   2613     RECOMP_BACKEDGE();
   2614     if (CMP_NE(_flag_a, _flag_b)) goto L_36041C4E; /* 0x36041C6B: jne 0x36041c4e */
   2615 L_36041C6D:
   2616     ecx = MEM32(esi + 0x4); /* 0x36041C6D: mov ecx, dword ptr [esi + 4] */
   2617     edx = MEM32(esi + 0x8); /* 0x36041C70: mov edx, dword ptr [esi + 8] */
   2618     MEM32(ecx + 0x4) = edx; /* 0x36041C73: mov dword ptr [ecx + 4], edx */
   2619     eax = MEM32(esi + 0x4); /* 0x36041C76: mov eax, dword ptr [esi + 4] */
   2620     MEM32(esi + 0x10) = 0; /* 0x36041C79: mov dword ptr [esi + 0x10], 0 */
   2621     MEM32(eax) = eax; /* 0x36041C80: mov dword ptr [eax], eax */
   2622     eax = MEM32(esi + 0x4); /* 0x36041C82: mov eax, dword ptr [esi + 4] */
   2623     MEM32(eax + 0x8) = eax; /* 0x36041C85: mov dword ptr [eax + 8], eax */
   2624     eax = ebp + (-0x8); /* 0x36041C88: lea eax, [ebp - 8] */
   2625     PUSH32(esp, eax); /* 0x36041C8B: push eax */
   2626     ecx = esi; /* 0x36041C8C: mov ecx, esi */
   2627     RECOMP_ICALL(0x3614FC30u); /* 0x36041C8E: call 0x3614fc30 */ /* not lifted */
   2628     RECOMP_FLAGS_IN();
   2629     goto L_36041CB6; /* 0x36041C93: jmp 0x36041cb6 */
   2630 L_36041C95:
   2631     /* cmp eax, edi */ /* 0x36041C95: cmp eax, edi */
   2632     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   2633     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2634     _flag_k = FK_CMP;
   2635     if (CMP_EQ(_flag_a, _flag_b)) goto L_36041CB6; /* 0x36041C97: je 0x36041cb6 */
   2636 L_36041C99:
   2637     ecx = ebp + (-0x4); /* 0x36041C99: lea ecx, [ebp - 4] */
   2638     ebx = eax; /* 0x36041C9C: mov ebx, eax */
   2639     RECOMP_ICALL(0x36064140u); /* 0x36041C9E: call 0x36064140 */ /* not lifted */
   2640     RECOMP_FLAGS_IN();
   2641     PUSH32(esp, ebx); /* 0x36041CA3: push ebx */
   2642     ecx = ebp + (-0x8); /* 0x36041CA4: lea ecx, [ebp - 8] */
   2643     PUSH32(esp, ecx); /* 0x36041CA7: push ecx */
   2644     ecx = esi; /* 0x36041CA8: mov ecx, esi */
   2645     RECOMP_ICALL(0x360588E0u); /* 0x36041CAA: call 0x360588e0 */ /* not lifted */
   2646     RECOMP_FLAGS_IN();
   2647     eax = MEM32(ebp + (-0x4)); /* 0x36041CAF: mov eax, dword ptr [ebp - 4] */
   2648     /* cmp eax, edi */ /* 0x36041CB2: cmp eax, edi */
   2649     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   2650     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2651     _flag_k = FK_CMP;
   2652     RECOMP_BACKEDGE();
   2653     if (CMP_NE(_flag_a, _flag_b)) goto L_36041C99; /* 0x36041CB4: jne 0x36041c99 */
   2654 L_36041CB6:
   2655     edx = MEM32(esi + 0x4); /* 0x36041CB6: mov edx, dword ptr [esi + 4] */
   2656     PUSH32(esp, edx); /* 0x36041CB9: push edx */
   2657     RECOMP_ICALL(0x3615FCC4u); /* 0x36041CBA: call 0x3615fcc4 */ /* not lifted */
   2658     RECOMP_FLAGS_IN();
   2659     eax = MEM32(esi + 0x8); /* 0x36041CBF: mov eax, dword ptr [esi + 8] */
   2660     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2661     edi = 0; /* 0x36041CC2: xor edi, edi */
   2662     _cf = 0;
   2663     _flag_k = FK_TEST;
   2664     PUSH32(esp, eax); /* 0x36041CC4: push eax */
   2665     MEM32(esi + 0x4) = edi; /* 0x36041CC5: mov dword ptr [esi + 4], edi */
   2666     MEM32(esi + 0x10) = edi; /* 0x36041CC8: mov dword ptr [esi + 0x10], edi */
   2667     RECOMP_ICALL(0x3615FCC4u); /* 0x36041CCB: call 0x3615fcc4 */ /* not lifted */
   2668     RECOMP_FLAGS_IN();
   2669     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2670     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2671     esp = esp + 8; /* 0x36041CD0: add esp, 8 */
   2672     _flag_k = FK_ADD;
   2673     MEM32(esi + 0x8) = edi; /* 0x36041CD3: mov dword ptr [esi + 8], edi */
   2674     edi = POP32_VAL(esp); /* 0x36041CD6: pop edi */
   2675     esi = POP32_VAL(esp); /* 0x36041CD7: pop esi */
   2676     ebx = POP32_VAL(esp); /* 0x36041CD8: pop ebx */
   2677     esp = ebp; /* 0x36041CD9: mov esp, ebp */
   2678     ebp = POP32_VAL(esp); /* 0x36041CDB: pop ebp */
   2679     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36041CDC: ret  */
   2680     RECOMP_REGS_OUT();
   2681 }
   2682 
   2683 void sub_36041CE0(void) {
   2684     int _fpu_cmp = 0;
   2685     uint32_t _cf = 0;
   2686     int _df = 1;
   2687     uint32_t _flag_k = FK_NONE;
   2688     uint32_t _flag_a = 0, _flag_b = 0;
   2689     uint32_t _itail_tgt = 0;
   2690     RECOMP_REGS_LOCALS
   2691     RECOMP_ENTER(0x36041CE0u);
   2692 
   2693 L_36041CE0:
   2694     PUSH32(esp, ebp); /* 0x36041CE0: push ebp */
   2695     ebp = esp; /* 0x36041CE1: mov ebp, esp */
   2696     PUSH32(esp, 0xFFFFFFFFu); /* 0x36041CE3: push -1 */
   2697     PUSH32(esp, 0x36163D5Bu); /* 0x36041CE5: push 0x36163d5b */
   2698     eax = MEM32(FS_BASE + (0)); /* 0x36041CEA: mov eax, dword ptr fs:[0] */
   2699     PUSH32(esp, eax); /* 0x36041CF0: push eax */
   2700     MEM32(FS_BASE + (0)) = esp; /* 0x36041CF1: mov dword ptr fs:[0], esp */
   2701     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   2702     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2703     esp = esp - 0x18u; /* 0x36041CF8: sub esp, 0x18 */
   2704     _flag_k = FK_CMP;
   2705     eax = MEM32(ebp + 0x8); /* 0x36041CFB: mov eax, dword ptr [ebp + 8] */
   2706     PUSH32(esp, esi); /* 0x36041CFE: push esi */
   2707     PUSH32(esp, edi); /* 0x36041CFF: push edi */
   2708     edi = ecx; /* 0x36041D00: mov edi, ecx */
   2709     esi = MEM32(edi + 0x4); /* 0x36041D02: mov esi, dword ptr [edi + 4] */
   2710     ecx = ebp + (-0x10); /* 0x36041D05: lea ecx, [ebp - 0x10] */
   2711     PUSH32(esp, ecx); /* 0x36041D08: push ecx */
   2712     ecx = esi; /* 0x36041D09: mov ecx, esi */
   2713     MEM32(ebp + (-0x10)) = eax; /* 0x36041D0B: mov dword ptr [ebp - 0x10], eax */
   2714     RECOMP_ICALL(0x36076670u); /* 0x36041D0E: call 0x36076670 */ /* not lifted */
   2715     RECOMP_FLAGS_IN();
   2716     esi = MEM32(esi + 0x4); /* 0x36041D13: mov esi, dword ptr [esi + 4] */
   2717     /* cmp eax, esi */ /* 0x36041D16: cmp eax, esi */
   2718     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   2719     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2720     _flag_k = FK_CMP;
   2721     MEM32(ebp + (-0x18)) = eax; /* 0x36041D18: mov dword ptr [ebp - 0x18], eax */
   2722     if (CMP_EQ(_flag_a, _flag_b)) goto L_36041D2A; /* 0x36041D1B: je 0x36041d2a */
   2723 L_36041D1D:
   2724     edx = MEM32(ebp + (-0x10)); /* 0x36041D1D: mov edx, dword ptr [ebp - 0x10] */
   2725     /* cmp edx, MEM32(eax + 0xC) */ /* 0x36041D20: cmp edx, dword ptr [eax + 0xc] */
   2726     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0xC));
   2727     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2728     _flag_k = FK_CMP;
   2729     if (CMP_L(_flag_a, _flag_b)) goto L_36041D2A; /* 0x36041D23: jl 0x36041d2a */
   2730 L_36041D25:
   2731     eax = ebp + (-0x18); /* 0x36041D25: lea eax, [ebp - 0x18] */
   2732     goto L_36041D30; /* 0x36041D28: jmp 0x36041d30 */
   2733 L_36041D2A:
   2734     MEM32(ebp + (-0x20)) = esi; /* 0x36041D2A: mov dword ptr [ebp - 0x20], esi */
   2735     eax = ebp + (-0x20); /* 0x36041D2D: lea eax, [ebp - 0x20] */
   2736 L_36041D30:
   2737     ecx = MEM32(edi + 0x4); /* 0x36041D30: mov ecx, dword ptr [edi + 4] */
   2738     eax = MEM32(eax); /* 0x36041D33: mov eax, dword ptr [eax] */
   2739     /* cmp MEM32(ecx + 0x4), eax */ /* 0x36041D35: cmp dword ptr [ecx + 4], eax */
   2740     _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(eax);
   2741     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2742     _flag_k = FK_CMP;
   2743     if (CMP_NE(_flag_a, _flag_b)) goto L_36041DBF; /* 0x36041D38: jne 0x36041dbf */
   2744 L_36041D3E:
   2745     PUSH32(esp, 0xCu); /* 0x36041D3E: push 0xc */
   2746     RECOMP_ICALL(0x3615FD6Au); /* 0x36041D40: call 0x3615fd6a */ /* not lifted */
   2747     RECOMP_FLAGS_IN();
   2748     esi = eax; /* 0x36041D45: mov esi, eax */
   2749     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2750     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2751     esp = esp + 4; /* 0x36041D47: add esp, 4 */
   2752     _flag_k = FK_ADD;
   2753     MEM32(ebp + (-0x20)) = esi; /* 0x36041D4A: mov dword ptr [ebp - 0x20], esi */
   2754     /* test esi, esi */ /* 0x36041D4D: test esi, esi */
   2755     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   2756     _cf = 0;
   2757     _flag_k = FK_TEST;
   2758     MEM32(ebp + (-0x4)) = 0; /* 0x36041D4F: mov dword ptr [ebp - 4], 0 */
   2759     if (TEST_Z(_flag_a, _flag_b)) goto L_36041D78; /* 0x36041D56: je 0x36041d78 */
   2760 L_36041D58:
   2761     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x36041D58: mov al, byte ptr [ebp + 0xb] */
   2762     PUSH32(esp, 0xCu); /* 0x36041D5B: push 0xc */
   2763     MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x36041D5D: mov byte ptr [esi], al */
   2764     RECOMP_ICALL(0x3615FD6Au); /* 0x36041D5F: call 0x3615fd6a */ /* not lifted */
   2765     RECOMP_FLAGS_IN();
   2766     MEM32(eax) = eax; /* 0x36041D64: mov dword ptr [eax], eax */
   2767     MEM32(eax + 0x4) = eax; /* 0x36041D66: mov dword ptr [eax + 4], eax */
   2768     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2769     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2770     esp = esp + 4; /* 0x36041D69: add esp, 4 */
   2771     _flag_k = FK_ADD;
   2772     MEM32(esi + 0x4) = eax; /* 0x36041D6C: mov dword ptr [esi + 4], eax */
   2773     MEM32(esi + 0x8) = 0; /* 0x36041D6F: mov dword ptr [esi + 8], 0 */
   2774     goto L_36041D7A; /* 0x36041D76: jmp 0x36041d7a */
   2775 L_36041D78:
   2776     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2777     esi = 0; /* 0x36041D78: xor esi, esi */
   2778     _cf = 0;
   2779     _flag_k = FK_TEST;
   2780 L_36041D7A:
   2781     edx = MEM32(ebp + 0x8); /* 0x36041D7A: mov edx, dword ptr [ebp + 8] */
   2782     ecx = MEM32(edi + 0x4); /* 0x36041D7D: mov ecx, dword ptr [edi + 4] */
   2783     eax = ebp + (-0x24); /* 0x36041D80: lea eax, [ebp - 0x24] */
   2784     MEM32(ebp + (-0x24)) = edx; /* 0x36041D83: mov dword ptr [ebp - 0x24], edx */
   2785     PUSH32(esp, eax); /* 0x36041D86: push eax */
   2786     edx = ebp + (-0x1C); /* 0x36041D87: lea edx, [ebp - 0x1c] */
   2787     PUSH32(esp, edx); /* 0x36041D8A: push edx */
   2788     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36041D8B: mov dword ptr [ebp - 4], 0xffffffff */
   2789     MEM32(ebp + (-0x20)) = 0; /* 0x36041D92: mov dword ptr [ebp - 0x20], 0 */
   2790     RECOMP_ICALL(0x3603E790u); /* 0x36041D99: call 0x3603e790 */ /* not lifted */
   2791     RECOMP_FLAGS_IN();
   2792     ecx = eax; /* 0x36041D9E: mov ecx, eax */
   2793     eax = MEM32(ecx); /* 0x36041DA0: mov eax, dword ptr [ecx] */
   2794     edx = MEM32(ecx + 0x4); /* 0x36041DA2: mov edx, dword ptr [ecx + 4] */
   2795     MEM32(eax + 0x10) = esi; /* 0x36041DA5: mov dword ptr [eax + 0x10], esi */
   2796     edi = POP32_VAL(esp); /* 0x36041DA8: pop edi */
   2797     eax = esi; /* 0x36041DA9: mov eax, esi */
   2798     MEM32(ebp + (-0x10)) = edx; /* 0x36041DAB: mov dword ptr [ebp - 0x10], edx */
   2799     esi = POP32_VAL(esp); /* 0x36041DAE: pop esi */
   2800     ecx = MEM32(ebp + (-0xC)); /* 0x36041DAF: mov ecx, dword ptr [ebp - 0xc] */
   2801     MEM32(FS_BASE + (0)) = ecx; /* 0x36041DB2: mov dword ptr fs:[0], ecx */
   2802     esp = ebp; /* 0x36041DB9: mov esp, ebp */
   2803     ebp = POP32_VAL(esp); /* 0x36041DBB: pop ebp */
   2804     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36041DBC: ret 4 */
   2805 L_36041DBF:
   2806     ecx = MEM32(ebp + (-0xC)); /* 0x36041DBF: mov ecx, dword ptr [ebp - 0xc] */
   2807     eax = MEM32(eax + 0x10); /* 0x36041DC2: mov eax, dword ptr [eax + 0x10] */
   2808     edi = POP32_VAL(esp); /* 0x36041DC5: pop edi */
   2809     esi = POP32_VAL(esp); /* 0x36041DC6: pop esi */
   2810     MEM32(FS_BASE + (0)) = ecx; /* 0x36041DC7: mov dword ptr fs:[0], ecx */
   2811     esp = ebp; /* 0x36041DCE: mov esp, ebp */
   2812     ebp = POP32_VAL(esp); /* 0x36041DD0: pop ebp */
   2813     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36041DD1: ret 4 */
   2814     RECOMP_REGS_OUT();
   2815 }
   2816 
   2817 void sub_36041DE0(void) {
   2818     int _fpu_cmp = 0;
   2819     uint32_t _cf = 0;
   2820     int _df = 1;
   2821     uint32_t _flag_k = FK_NONE;
   2822     uint32_t _flag_a = 0, _flag_b = 0;
   2823     uint32_t _itail_tgt = 0;
   2824     RECOMP_REGS_LOCALS
   2825     RECOMP_ENTER(0x36041DE0u);
   2826 
   2827 L_36041DE0:
   2828     PUSH32(esp, ebp); /* 0x36041DE0: push ebp */
   2829     ebp = esp; /* 0x36041DE1: mov ebp, esp */
   2830     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2831     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2832     esp = esp - 8; /* 0x36041DE3: sub esp, 8 */
   2833     _flag_k = FK_CMP;
   2834     eax = MEM32(ebp + 0x8); /* 0x36041DE6: mov eax, dword ptr [ebp + 8] */
   2835     PUSH32(esp, esi); /* 0x36041DE9: push esi */
   2836     PUSH32(esp, edi); /* 0x36041DEA: push edi */
   2837     edi = ecx; /* 0x36041DEB: mov edi, ecx */
   2838     esi = MEM32(edi + 0x4); /* 0x36041DED: mov esi, dword ptr [edi + 4] */
   2839     ecx = ebp + 0x8; /* 0x36041DF0: lea ecx, [ebp + 8] */
   2840     PUSH32(esp, ecx); /* 0x36041DF3: push ecx */
   2841     ecx = esi; /* 0x36041DF4: mov ecx, esi */
   2842     MEM32(ebp + 0x8) = eax; /* 0x36041DF6: mov dword ptr [ebp + 8], eax */
   2843     RECOMP_ICALL(0x36076670u); /* 0x36041DF9: call 0x36076670 */ /* not lifted */
   2844     RECOMP_FLAGS_IN();
   2845     esi = MEM32(esi + 0x4); /* 0x36041DFE: mov esi, dword ptr [esi + 4] */
   2846     /* cmp eax, esi */ /* 0x36041E01: cmp eax, esi */
   2847     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   2848     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2849     _flag_k = FK_CMP;
   2850     MEM32(ebp + (-0x4)) = eax; /* 0x36041E03: mov dword ptr [ebp - 4], eax */
   2851     if (CMP_EQ(_flag_a, _flag_b)) goto L_36041E15; /* 0x36041E06: je 0x36041e15 */
   2852 L_36041E08:
   2853     edx = MEM32(ebp + 0x8); /* 0x36041E08: mov edx, dword ptr [ebp + 8] */
   2854     /* cmp edx, MEM32(eax + 0xC) */ /* 0x36041E0B: cmp edx, dword ptr [eax + 0xc] */
   2855     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0xC));
   2856     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2857     _flag_k = FK_CMP;
   2858     if (CMP_L(_flag_a, _flag_b)) goto L_36041E15; /* 0x36041E0E: jl 0x36041e15 */
   2859 L_36041E10:
   2860     eax = ebp + (-0x4); /* 0x36041E10: lea eax, [ebp - 4] */
   2861     goto L_36041E1B; /* 0x36041E13: jmp 0x36041e1b */
   2862 L_36041E15:
   2863     MEM32(ebp + (-0x8)) = esi; /* 0x36041E15: mov dword ptr [ebp - 8], esi */
   2864     eax = ebp + (-0x8); /* 0x36041E18: lea eax, [ebp - 8] */
   2865 L_36041E1B:
   2866     ecx = MEM32(edi + 0x4); /* 0x36041E1B: mov ecx, dword ptr [edi + 4] */
   2867     eax = MEM32(eax); /* 0x36041E1E: mov eax, dword ptr [eax] */
   2868     /* cmp MEM32(ecx + 0x4), eax */ /* 0x36041E20: cmp dword ptr [ecx + 4], eax */
   2869     _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(eax);
   2870     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2871     _flag_k = FK_CMP;
   2872     edi = POP32_VAL(esp); /* 0x36041E23: pop edi */
   2873     esi = POP32_VAL(esp); /* 0x36041E24: pop esi */
   2874     if (CMP_NE(_flag_a, _flag_b)) goto L_36041E2F; /* 0x36041E25: jne 0x36041e2f */
   2875 L_36041E27:
   2876     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2877     eax = 0; /* 0x36041E27: xor eax, eax */
   2878     _cf = 0;
   2879     _flag_k = FK_TEST;
   2880     esp = ebp; /* 0x36041E29: mov esp, ebp */
   2881     ebp = POP32_VAL(esp); /* 0x36041E2B: pop ebp */
   2882     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36041E2C: ret 4 */
   2883 L_36041E2F:
   2884     eax = MEM32(eax + 0x10); /* 0x36041E2F: mov eax, dword ptr [eax + 0x10] */
   2885     esp = ebp; /* 0x36041E32: mov esp, ebp */
   2886     ebp = POP32_VAL(esp); /* 0x36041E34: pop ebp */
   2887     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36041E35: ret 4 */
   2888     RECOMP_REGS_OUT();
   2889 }
   2890 
   2891 void sub_36041E40(void) {
   2892     int _fpu_cmp = 0;
   2893     uint32_t _cf = 0;
   2894     int _df = 1;
   2895     uint32_t _flag_k = FK_NONE;
   2896     uint32_t _flag_a = 0, _flag_b = 0;
   2897     uint32_t _itail_tgt = 0;
   2898     RECOMP_REGS_LOCALS
   2899     RECOMP_ENTER(0x36041E40u);
   2900 
   2901 L_36041E40:
   2902     PUSH32(esp, ebp); /* 0x36041E40: push ebp */
   2903     ebp = esp; /* 0x36041E41: mov ebp, esp */
   2904     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2905     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2906     esp = esp - 8; /* 0x36041E43: sub esp, 8 */
   2907     _flag_k = FK_CMP;
   2908     eax = MEM32(ebp + 0x8); /* 0x36041E46: mov eax, dword ptr [ebp + 8] */
   2909     PUSH32(esp, esi); /* 0x36041E49: push esi */
   2910     PUSH32(esp, edi); /* 0x36041E4A: push edi */
   2911     edi = ecx; /* 0x36041E4B: mov edi, ecx */
   2912     esi = MEM32(edi + 0x4); /* 0x36041E4D: mov esi, dword ptr [edi + 4] */
   2913     ecx = ebp + 0x8; /* 0x36041E50: lea ecx, [ebp + 8] */
   2914     PUSH32(esp, ecx); /* 0x36041E53: push ecx */
   2915     ecx = esi; /* 0x36041E54: mov ecx, esi */
   2916     MEM32(ebp + 0x8) = eax; /* 0x36041E56: mov dword ptr [ebp + 8], eax */
   2917     RECOMP_ICALL(0x36076670u); /* 0x36041E59: call 0x36076670 */ /* not lifted */
   2918     RECOMP_FLAGS_IN();
   2919     esi = MEM32(esi + 0x4); /* 0x36041E5E: mov esi, dword ptr [esi + 4] */
   2920     /* cmp eax, esi */ /* 0x36041E61: cmp eax, esi */
   2921     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   2922     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2923     _flag_k = FK_CMP;
   2924     MEM32(ebp + (-0x4)) = eax; /* 0x36041E63: mov dword ptr [ebp - 4], eax */
   2925     if (CMP_EQ(_flag_a, _flag_b)) goto L_36041E75; /* 0x36041E66: je 0x36041e75 */
   2926 L_36041E68:
   2927     edx = MEM32(ebp + 0x8); /* 0x36041E68: mov edx, dword ptr [ebp + 8] */
   2928     /* cmp edx, MEM32(eax + 0xC) */ /* 0x36041E6B: cmp edx, dword ptr [eax + 0xc] */
   2929     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0xC));
   2930     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2931     _flag_k = FK_CMP;
   2932     if (CMP_L(_flag_a, _flag_b)) goto L_36041E75; /* 0x36041E6E: jl 0x36041e75 */
   2933 L_36041E70:
   2934     eax = ebp + (-0x4); /* 0x36041E70: lea eax, [ebp - 4] */
   2935     goto L_36041E7B; /* 0x36041E73: jmp 0x36041e7b */
   2936 L_36041E75:
   2937     MEM32(ebp + (-0x8)) = esi; /* 0x36041E75: mov dword ptr [ebp - 8], esi */
   2938     eax = ebp + (-0x8); /* 0x36041E78: lea eax, [ebp - 8] */
   2939 L_36041E7B:
   2940     ecx = MEM32(edi + 0x4); /* 0x36041E7B: mov ecx, dword ptr [edi + 4] */
   2941     eax = MEM32(eax); /* 0x36041E7E: mov eax, dword ptr [eax] */
   2942     /* cmp MEM32(ecx + 0x4), eax */ /* 0x36041E80: cmp dword ptr [ecx + 4], eax */
   2943     _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(eax);
   2944     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2945     _flag_k = FK_CMP;
   2946     edi = POP32_VAL(esp); /* 0x36041E83: pop edi */
   2947     esi = POP32_VAL(esp); /* 0x36041E84: pop esi */
   2948     if (CMP_NE(_flag_a, _flag_b)) goto L_36041E8F; /* 0x36041E85: jne 0x36041e8f */
   2949 L_36041E87:
   2950     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   2951     SET_LO8(eax, 0); /* 0x36041E87: xor al, al */
   2952     _cf = 0;
   2953     _flag_k = FK_NARROW(FK_TEST, 24);
   2954     esp = ebp; /* 0x36041E89: mov esp, ebp */
   2955     ebp = POP32_VAL(esp); /* 0x36041E8B: pop ebp */
   2956     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36041E8C: ret 4 */
   2957 L_36041E8F:
   2958     edx = MEM32(eax + 0x10); /* 0x36041E8F: mov edx, dword ptr [eax + 0x10] */
   2959     ecx = MEM32(edx + 0x8); /* 0x36041E92: mov ecx, dword ptr [edx + 8] */
   2960     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2961     eax = 0; /* 0x36041E95: xor eax, eax */
   2962     _cf = 0;
   2963     _flag_k = FK_TEST;
   2964     /* test ecx, ecx */ /* 0x36041E97: test ecx, ecx */
   2965     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2966     _cf = 0;
   2967     _flag_k = FK_TEST;
   2968     SET_LO8(eax, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36041E99: setne al */
   2969     esp = ebp; /* 0x36041E9C: mov esp, ebp */
   2970     ebp = POP32_VAL(esp); /* 0x36041E9E: pop ebp */
   2971     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36041E9F: ret 4 */
   2972     RECOMP_REGS_OUT();
   2973 }
   2974 
   2975 void sub_36041EB0(void) {
   2976     int _fpu_cmp = 0;
   2977     uint32_t _cf = 0;
   2978     int _df = 1;
   2979     uint32_t _flag_k = FK_NONE;
   2980     uint32_t _flag_a = 0, _flag_b = 0;
   2981     uint32_t _itail_tgt = 0;
   2982     RECOMP_REGS_LOCALS
   2983     RECOMP_ENTER(0x36041EB0u);
   2984 
   2985 L_36041EB0:
   2986     PUSH32(esp, ebp); /* 0x36041EB0: push ebp */
   2987     ebp = esp; /* 0x36041EB1: mov ebp, esp */
   2988     PUSH32(esp, ecx); /* 0x36041EB3: push ecx */
   2989     eax = MEM32(ebp + 0xC); /* 0x36041EB4: mov eax, dword ptr [ebp + 0xc] */
   2990     /* test eax, eax */ /* 0x36041EB7: test eax, eax */
   2991     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2992     _cf = 0;
   2993     _flag_k = FK_TEST;
   2994     PUSH32(esp, esi); /* 0x36041EB9: push esi */
   2995     PUSH32(esp, edi); /* 0x36041EBA: push edi */
   2996     edi = ecx; /* 0x36041EBB: mov edi, ecx */
   2997     MEM32(ebp + (-0x4)) = edi; /* 0x36041EBD: mov dword ptr [ebp - 4], edi */
   2998     if (TEST_NZ(_flag_a, _flag_b)) goto L_36041EC8; /* 0x36041EC0: jne 0x36041ec8 */
   2999 L_36041EC2:
   3000     eax = MEM32(ebp + 0x8); /* 0x36041EC2: mov eax, dword ptr [ebp + 8] */
   3001     MEM32(ebp + 0xC) = eax; /* 0x36041EC5: mov dword ptr [ebp + 0xc], eax */
   3002 L_36041EC8:
   3003     eax = MEM32(edi + 0x8); /* 0x36041EC8: mov eax, dword ptr [edi + 8] */
   3004     ecx = MEM32(eax + 0x8); /* 0x36041ECB: mov ecx, dword ptr [eax + 8] */
   3005     /* test ecx, ecx */ /* 0x36041ECE: test ecx, ecx */
   3006     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3007     _cf = 0;
   3008     _flag_k = FK_TEST;
   3009     if (TEST_Z(_flag_a, _flag_b)) goto L_36041F2C; /* 0x36041ED0: je 0x36041f2c */
   3010 L_36041ED2:
   3011     eax = MEM32(eax + 0x4); /* 0x36041ED2: mov eax, dword ptr [eax + 4] */
   3012     esi = MEM32(eax); /* 0x36041ED5: mov esi, dword ptr [eax] */
   3013     /* cmp esi, eax */ /* 0x36041ED7: cmp esi, eax */
   3014     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   3015     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3016     _flag_k = FK_CMP;
   3017     if (CMP_EQ(_flag_a, _flag_b)) goto L_36041F2C; /* 0x36041ED9: je 0x36041f2c */
   3018 L_36041EDB:
   3019     PUSH32(esp, ebx); /* 0x36041EDB: push ebx */
   3020 L_36041EDC:
   3021     ecx = MEM32(ebp + 0xC); /* 0x36041EDC: mov ecx, dword ptr [ebp + 0xc] */
   3022     edx = MEM32(ebp + 0x8); /* 0x36041EDF: mov edx, dword ptr [ebp + 8] */
   3023     PUSH32(esp, ecx); /* 0x36041EE2: push ecx */
   3024     ecx = MEM32(esi + 0x8); /* 0x36041EE3: mov ecx, dword ptr [esi + 8] */
   3025     PUSH32(esp, edx); /* 0x36041EE6: push edx */
   3026     RECOMP_ICALL(0x360C3950u); /* 0x36041EE7: call 0x360c3950 */ /* not lifted */
   3027     RECOMP_FLAGS_IN();
   3028     /* cmp LO8(eax), 1 */ /* 0x36041EEC: cmp al, 1 */
   3029     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3030     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3031     _flag_k = FK_NARROW(FK_CMP, 24);
   3032     if (CMP_NE(_flag_a, _flag_b)) goto L_36041F21; /* 0x36041EEE: jne 0x36041f21 */
   3033 L_36041EF0:
   3034     ecx = MEM32(esi + 0x8); /* 0x36041EF0: mov ecx, dword ptr [esi + 8] */
   3035     RECOMP_ICALL(0x360C35F0u); /* 0x36041EF3: call 0x360c35f0 */ /* not lifted */
   3036     RECOMP_FLAGS_IN();
   3037     ebx = MEM32(esi); /* 0x36041EF8: mov ebx, dword ptr [esi] */
   3038     eax = MEM32(esi + 0x4); /* 0x36041EFA: mov eax, dword ptr [esi + 4] */
   3039     edi = MEM32(edi + 0x8); /* 0x36041EFD: mov edi, dword ptr [edi + 8] */
   3040     MEM32(eax) = ebx; /* 0x36041F00: mov dword ptr [eax], ebx */
   3041     ecx = MEM32(esi); /* 0x36041F02: mov ecx, dword ptr [esi] */
   3042     edx = MEM32(esi + 0x4); /* 0x36041F04: mov edx, dword ptr [esi + 4] */
   3043     PUSH32(esp, esi); /* 0x36041F07: push esi */
   3044     MEM32(ecx + 0x4) = edx; /* 0x36041F08: mov dword ptr [ecx + 4], edx */
   3045     RECOMP_ICALL(0x3615FCC4u); /* 0x36041F0B: call 0x3615fcc4 */ /* not lifted */
   3046     RECOMP_FLAGS_IN();
   3047     eax = MEM32(edi + 0x8); /* 0x36041F10: mov eax, dword ptr [edi + 8] */
   3048     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3049     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3050     esp = esp + 4; /* 0x36041F13: add esp, 4 */
   3051     _flag_k = FK_ADD;
   3052     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3053     eax = eax - 1; /* 0x36041F16: dec eax */
   3054     _flag_k = FK_DEC;
   3055     MEM32(edi + 0x8) = eax; /* 0x36041F17: mov dword ptr [edi + 8], eax */
   3056     edi = MEM32(ebp + (-0x4)); /* 0x36041F1A: mov edi, dword ptr [ebp - 4] */
   3057     esi = ebx; /* 0x36041F1D: mov esi, ebx */
   3058     goto L_36041F23; /* 0x36041F1F: jmp 0x36041f23 */
   3059 L_36041F21:
   3060     esi = MEM32(esi); /* 0x36041F21: mov esi, dword ptr [esi] */
   3061 L_36041F23:
   3062     eax = MEM32(edi + 0x8); /* 0x36041F23: mov eax, dword ptr [edi + 8] */
   3063     /* cmp esi, MEM32(eax + 0x4) */ /* 0x36041F26: cmp esi, dword ptr [eax + 4] */
   3064     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x4));
   3065     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3066     _flag_k = FK_CMP;
   3067     RECOMP_BACKEDGE();
   3068     if (CMP_NE(_flag_a, _flag_b)) goto L_36041EDC; /* 0x36041F29: jne 0x36041edc */
   3069 L_36041F2B:
   3070     ebx = POP32_VAL(esp); /* 0x36041F2B: pop ebx */
   3071 L_36041F2C:
   3072     edi = POP32_VAL(esp); /* 0x36041F2C: pop edi */
   3073     esi = POP32_VAL(esp); /* 0x36041F2D: pop esi */
   3074     esp = ebp; /* 0x36041F2E: mov esp, ebp */
   3075     ebp = POP32_VAL(esp); /* 0x36041F30: pop ebp */
   3076     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36041F31: ret 8 */
   3077     RECOMP_REGS_OUT();
   3078 }
   3079 
   3080 void sub_36041F40(void) {
   3081     int _fpu_cmp = 0;
   3082     uint32_t _cf = 0;
   3083     int _df = 1;
   3084     uint32_t _flag_k = FK_NONE;
   3085     uint32_t _flag_a = 0, _flag_b = 0;
   3086     uint32_t _itail_tgt = 0;
   3087     RECOMP_REGS_LOCALS
   3088     RECOMP_ENTER(0x36041F40u);
   3089 
   3090 L_36041F40:
   3091     PUSH32(esp, ebp); /* 0x36041F40: push ebp */
   3092     ebp = esp; /* 0x36041F41: mov ebp, esp */
   3093     eax = MEM32(ebp + 0x8); /* 0x36041F43: mov eax, dword ptr [ebp + 8] */
   3094     PUSH32(esp, ebx); /* 0x36041F46: push ebx */
   3095     PUSH32(esp, esi); /* 0x36041F47: push esi */
   3096     PUSH32(esp, edi); /* 0x36041F48: push edi */
   3097     PUSH32(esp, eax); /* 0x36041F49: push eax */
   3098     RECOMP_ICALL(0x36041CE0u); /* 0x36041F4A: call 0x36041ce0 */ /* not lifted */
   3099     RECOMP_FLAGS_IN();
   3100     ebx = eax; /* 0x36041F4F: mov ebx, eax */
   3101     esi = MEM32(ebx + 0x4); /* 0x36041F51: mov esi, dword ptr [ebx + 4] */
   3102     edi = MEM32(esi + 0x4); /* 0x36041F54: mov edi, dword ptr [esi + 4] */
   3103     PUSH32(esp, 0xCu); /* 0x36041F57: push 0xc */
   3104     RECOMP_ICALL(0x3615FD6Au); /* 0x36041F59: call 0x3615fd6a */ /* not lifted */
   3105     RECOMP_FLAGS_IN();
   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; /* 0x36041F5E: add esp, 4 */
   3109     _flag_k = FK_ADD;
   3110     /* test esi, esi */ /* 0x36041F61: test esi, esi */
   3111     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   3112     _cf = 0;
   3113     _flag_k = FK_TEST;
   3114     ecx = esi; /* 0x36041F63: mov ecx, esi */
   3115     if (TEST_NZ(_flag_a, _flag_b)) goto L_36041F69; /* 0x36041F65: jne 0x36041f69 */
   3116 L_36041F67:
   3117     ecx = eax; /* 0x36041F67: mov ecx, eax */
   3118 L_36041F69:
   3119     /* test edi, edi */ /* 0x36041F69: test edi, edi */
   3120     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   3121     _cf = 0;
   3122     _flag_k = FK_TEST;
   3123     MEM32(eax) = ecx; /* 0x36041F6B: mov dword ptr [eax], ecx */
   3124     if (TEST_NZ(_flag_a, _flag_b)) goto L_36041F71; /* 0x36041F6D: jne 0x36041f71 */
   3125 L_36041F6F:
   3126     edi = eax; /* 0x36041F6F: mov edi, eax */
   3127 L_36041F71:
   3128     MEM32(eax + 0x4) = edi; /* 0x36041F71: mov dword ptr [eax + 4], edi */
   3129     MEM32(esi + 0x4) = eax; /* 0x36041F74: mov dword ptr [esi + 4], eax */
   3130     ecx = MEM32(eax + 0x4); /* 0x36041F77: mov ecx, dword ptr [eax + 4] */
   3131     MEM32(ecx) = eax; /* 0x36041F7A: mov dword ptr [ecx], eax */
   3132     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   3133     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3134     eax = eax + 8; /* 0x36041F7C: add eax, 8 */
   3135     _flag_k = FK_ADD;
   3136     /* test eax, eax */ /* 0x36041F7F: test eax, eax */
   3137     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3138     _cf = 0;
   3139     _flag_k = FK_TEST;
   3140     if (TEST_Z(_flag_a, _flag_b)) goto L_36041F88; /* 0x36041F81: je 0x36041f88 */
   3141 L_36041F83:
   3142     edx = MEM32(ebp + 0xC); /* 0x36041F83: mov edx, dword ptr [ebp + 0xc] */
   3143     MEM32(eax) = edx; /* 0x36041F86: mov dword ptr [eax], edx */
   3144 L_36041F88:
   3145     eax = MEM32(ebx + 0x8); /* 0x36041F88: mov eax, dword ptr [ebx + 8] */
   3146     edi = POP32_VAL(esp); /* 0x36041F8B: pop edi */
   3147     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3148     eax = eax + 1; /* 0x36041F8C: inc eax */
   3149     _flag_k = FK_INC;
   3150     esi = POP32_VAL(esp); /* 0x36041F8D: pop esi */
   3151     MEM32(ebx + 0x8) = eax; /* 0x36041F8E: mov dword ptr [ebx + 8], eax */
   3152     ebx = POP32_VAL(esp); /* 0x36041F91: pop ebx */
   3153     ebp = POP32_VAL(esp); /* 0x36041F92: pop ebp */
   3154     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36041F93: ret 8 */
   3155     RECOMP_REGS_OUT();
   3156 }
   3157 
   3158 void sub_36041FA0(void) {
   3159     int _fpu_cmp = 0;
   3160     uint32_t _cf = 0;
   3161     int _df = 1;
   3162     uint32_t _flag_k = FK_NONE;
   3163     uint32_t _flag_a = 0, _flag_b = 0;
   3164     uint32_t _itail_tgt = 0;
   3165     RECOMP_REGS_LOCALS
   3166     RECOMP_ENTER(0x36041FA0u);
   3167 
   3168 L_36041FA0:
   3169     PUSH32(esp, ebp); /* 0x36041FA0: push ebp */
   3170     ebp = esp; /* 0x36041FA1: mov ebp, esp */
   3171     eax = MEM32(ebp + 0x8); /* 0x36041FA3: mov eax, dword ptr [ebp + 8] */
   3172     PUSH32(esp, ebx); /* 0x36041FA6: push ebx */
   3173     PUSH32(esp, esi); /* 0x36041FA7: push esi */
   3174     PUSH32(esp, edi); /* 0x36041FA8: push edi */
   3175     PUSH32(esp, eax); /* 0x36041FA9: push eax */
   3176     RECOMP_ICALL(0x36041DE0u); /* 0x36041FAA: call 0x36041de0 */ /* not lifted */
   3177     RECOMP_FLAGS_IN();
   3178     /* test eax, eax */ /* 0x36041FAF: test eax, eax */
   3179     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3180     _cf = 0;
   3181     _flag_k = FK_TEST;
   3182     MEM32(ebp + 0x8) = eax; /* 0x36041FB1: mov dword ptr [ebp + 8], eax */
   3183     if (TEST_Z(_flag_a, _flag_b)) goto L_36042010; /* 0x36041FB4: je 0x36042010 */
   3184 L_36041FB6:
   3185     edi = MEM32(eax + 0x4); /* 0x36041FB6: mov edi, dword ptr [eax + 4] */
   3186     esi = MEM32(edi); /* 0x36041FB9: mov esi, dword ptr [edi] */
   3187     /* cmp esi, edi */ /* 0x36041FBB: cmp esi, edi */
   3188     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   3189     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3190     _flag_k = FK_CMP;
   3191     if (CMP_EQ(_flag_a, _flag_b)) goto L_36042010; /* 0x36041FBD: je 0x36042010 */
   3192 L_36041FBF:
   3193     edx = MEM32(ebp + 0x10); /* 0x36041FBF: mov edx, dword ptr [ebp + 0x10] */
   3194     ecx = MEM32(ebp + 0xC); /* 0x36041FC2: mov ecx, dword ptr [ebp + 0xc] */
   3195 L_36041FC5:
   3196     eax = MEM32(esi + 0x8); /* 0x36041FC5: mov eax, dword ptr [esi + 8] */
   3197     ebx = ebp + 0xC; /* 0x36041FC8: lea ebx, [ebp + 0xc] */
   3198     /* cmp ebx, eax */ /* 0x36041FCB: cmp ebx, eax */
   3199     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   3200     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3201     _flag_k = FK_CMP;
   3202     if (CMP_EQ(_flag_a, _flag_b)) goto L_36041FD4; /* 0x36041FCD: je 0x36041fd4 */
   3203 L_36041FCF:
   3204     ecx = MEM32(eax); /* 0x36041FCF: mov ecx, dword ptr [eax] */
   3205     edx = MEM32(eax + 0x4); /* 0x36041FD1: mov edx, dword ptr [eax + 4] */
   3206 L_36041FD4:
   3207     /* cmp edx, MEM32(ebp + 0x10) */ /* 0x36041FD4: cmp edx, dword ptr [ebp + 0x10] */
   3208     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + 0x10));
   3209     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3210     _flag_k = FK_CMP;
   3211     if (CMP_NE(_flag_a, _flag_b)) goto L_36041FDE; /* 0x36041FD7: jne 0x36041fde */
   3212 L_36041FD9:
   3213     /* cmp ecx, MEM32(ebp + 0xC) */ /* 0x36041FD9: cmp ecx, dword ptr [ebp + 0xc] */
   3214     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + 0xC));
   3215     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3216     _flag_k = FK_CMP;
   3217     if (CMP_EQ(_flag_a, _flag_b)) goto L_36041FE6; /* 0x36041FDC: je 0x36041fe6 */
   3218 L_36041FDE:
   3219     esi = MEM32(esi); /* 0x36041FDE: mov esi, dword ptr [esi] */
   3220     /* cmp esi, edi */ /* 0x36041FE0: cmp esi, edi */
   3221     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   3222     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3223     _flag_k = FK_CMP;
   3224     if (CMP_EQ(_flag_a, _flag_b)) goto L_36042010; /* 0x36041FE2: je 0x36042010 */
   3225 L_36041FE4:
   3226     RECOMP_BACKEDGE();
   3227     goto L_36041FC5; /* 0x36041FE4: jmp 0x36041fc5 */
   3228 L_36041FE6:
   3229     ecx = MEM32(esi + 0x8); /* 0x36041FE6: mov ecx, dword ptr [esi + 8] */
   3230     RECOMP_ICALL(0x360C35F0u); /* 0x36041FE9: call 0x360c35f0 */ /* not lifted */
   3231     RECOMP_FLAGS_IN();
   3232     ecx = MEM32(esi + 0x4); /* 0x36041FEE: mov ecx, dword ptr [esi + 4] */
   3233     edx = MEM32(esi); /* 0x36041FF1: mov edx, dword ptr [esi] */
   3234     MEM32(ecx) = edx; /* 0x36041FF3: mov dword ptr [ecx], edx */
   3235     eax = MEM32(esi); /* 0x36041FF5: mov eax, dword ptr [esi] */
   3236     ecx = MEM32(esi + 0x4); /* 0x36041FF7: mov ecx, dword ptr [esi + 4] */
   3237     PUSH32(esp, esi); /* 0x36041FFA: push esi */
   3238     MEM32(eax + 0x4) = ecx; /* 0x36041FFB: mov dword ptr [eax + 4], ecx */
   3239     RECOMP_ICALL(0x3615FCC4u); /* 0x36041FFE: call 0x3615fcc4 */ /* not lifted */
   3240     RECOMP_FLAGS_IN();
   3241     eax = MEM32(ebp + 0x8); /* 0x36042003: mov eax, dword ptr [ebp + 8] */
   3242     ecx = MEM32(eax + 0x8); /* 0x36042006: mov ecx, dword ptr [eax + 8] */
   3243     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3244     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3245     esp = esp + 4; /* 0x36042009: add esp, 4 */
   3246     _flag_k = FK_ADD;
   3247     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3248     ecx = ecx - 1; /* 0x3604200C: dec ecx */
   3249     _flag_k = FK_DEC;
   3250     MEM32(eax + 0x8) = ecx; /* 0x3604200D: mov dword ptr [eax + 8], ecx */
   3251 L_36042010:
   3252     edi = POP32_VAL(esp); /* 0x36042010: pop edi */
   3253     esi = POP32_VAL(esp); /* 0x36042011: pop esi */
   3254     ebx = POP32_VAL(esp); /* 0x36042012: pop ebx */
   3255     ebp = POP32_VAL(esp); /* 0x36042013: pop ebp */
   3256     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36042014: ret 0xc */
   3257     RECOMP_REGS_OUT();
   3258 }
   3259 
   3260 void sub_36042020(void) {
   3261     int _fpu_cmp = 0;
   3262     uint32_t _cf = 0;
   3263     int _df = 1;
   3264     uint32_t _flag_k = FK_NONE;
   3265     uint32_t _flag_a = 0, _flag_b = 0;
   3266     uint32_t _itail_tgt = 0;
   3267     RECOMP_REGS_LOCALS
   3268     RECOMP_ENTER(0x36042020u);
   3269 
   3270 L_36042020:
   3271     PUSH32(esp, ebp); /* 0x36042020: push ebp */
   3272     ebp = esp; /* 0x36042021: mov ebp, esp */
   3273     PUSH32(esp, ebx); /* 0x36042023: push ebx */
   3274     ebx = MEM32(ebp + 0xC); /* 0x36042024: mov ebx, dword ptr [ebp + 0xc] */
   3275     /* test ebx, ebx */ /* 0x36042027: test ebx, ebx */
   3276     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   3277     _cf = 0;
   3278     _flag_k = FK_TEST;
   3279     PUSH32(esp, esi); /* 0x36042029: push esi */
   3280     PUSH32(esp, edi); /* 0x3604202A: push edi */
   3281     if (TEST_NZ(_flag_a, _flag_b)) goto L_36042030; /* 0x3604202B: jne 0x36042030 */
   3282 L_3604202D:
   3283     ebx = MEM32(ebp + 0x8); /* 0x3604202D: mov ebx, dword ptr [ebp + 8] */
   3284 L_36042030:
   3285     edi = MEM32(ebp + 0x10); /* 0x36042030: mov edi, dword ptr [ebp + 0x10] */
   3286     /* test edi, edi */ /* 0x36042033: test edi, edi */
   3287     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   3288     _cf = 0;
   3289     _flag_k = FK_TEST;
   3290     if (TEST_Z(_flag_a, _flag_b)) goto L_36042054; /* 0x36042035: je 0x36042054 */
   3291 L_36042037:
   3292     eax = MEM32(edi + 0x4); /* 0x36042037: mov eax, dword ptr [edi + 4] */
   3293     esi = MEM32(eax); /* 0x3604203A: mov esi, dword ptr [eax] */
   3294     /* cmp esi, eax */ /* 0x3604203C: cmp esi, eax */
   3295     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   3296     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3297     _flag_k = FK_CMP;
   3298     if (CMP_EQ(_flag_a, _flag_b)) goto L_36042054; /* 0x3604203E: je 0x36042054 */
   3299 L_36042040:
   3300     eax = MEM32(ebp + 0x8); /* 0x36042040: mov eax, dword ptr [ebp + 8] */
   3301     ecx = MEM32(esi + 0x8); /* 0x36042043: mov ecx, dword ptr [esi + 8] */
   3302     PUSH32(esp, ebx); /* 0x36042046: push ebx */
   3303     PUSH32(esp, eax); /* 0x36042047: push eax */
   3304     RECOMP_ICALL(0x360C3950u); /* 0x36042048: call 0x360c3950 */ /* not lifted */
   3305     RECOMP_FLAGS_IN();
   3306     esi = MEM32(esi); /* 0x3604204D: mov esi, dword ptr [esi] */
   3307     /* cmp esi, MEM32(edi + 0x4) */ /* 0x3604204F: cmp esi, dword ptr [edi + 4] */
   3308     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3309     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3310     _flag_k = FK_CMP;
   3311     RECOMP_BACKEDGE();
   3312     if (CMP_NE(_flag_a, _flag_b)) goto L_36042040; /* 0x36042052: jne 0x36042040 */
   3313 L_36042054:
   3314     edi = POP32_VAL(esp); /* 0x36042054: pop edi */
   3315     esi = POP32_VAL(esp); /* 0x36042055: pop esi */
   3316     ebx = POP32_VAL(esp); /* 0x36042056: pop ebx */
   3317     ebp = POP32_VAL(esp); /* 0x36042057: pop ebp */
   3318     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36042058: ret 0xc */
   3319     RECOMP_REGS_OUT();
   3320 }
   3321 
   3322 void sub_36042060(void) {
   3323     int _fpu_cmp = 0;
   3324     uint32_t _cf = 0;
   3325     int _df = 1;
   3326     uint32_t _flag_k = FK_NONE;
   3327     uint32_t _flag_a = 0, _flag_b = 0;
   3328     uint32_t _itail_tgt = 0;
   3329     RECOMP_REGS_LOCALS
   3330     RECOMP_ENTER(0x36042060u);
   3331 
   3332 L_36042060:
   3333     PUSH32(esp, ebp); /* 0x36042060: push ebp */
   3334     ebp = esp; /* 0x36042061: mov ebp, esp */
   3335     PUSH32(esp, ebx); /* 0x36042063: push ebx */
   3336     ebx = ecx; /* 0x36042064: mov ebx, ecx */
   3337     eax = MEM32(ebx + 0x8); /* 0x36042066: mov eax, dword ptr [ebx + 8] */
   3338     eax = MEM32(eax + 0x4); /* 0x36042069: mov eax, dword ptr [eax + 4] */
   3339     PUSH32(esp, esi); /* 0x3604206C: push esi */
   3340     esi = MEM32(eax); /* 0x3604206D: mov esi, dword ptr [eax] */
   3341     /* cmp esi, eax */ /* 0x3604206F: cmp esi, eax */
   3342     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   3343     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3344     _flag_k = FK_CMP;
   3345     PUSH32(esp, edi); /* 0x36042071: push edi */
   3346     if (CMP_EQ(_flag_a, _flag_b)) goto L_360420BD; /* 0x36042072: je 0x360420bd */
   3347 L_36042074:
   3348     edi = MEM32(esi + 0x8); /* 0x36042074: mov edi, dword ptr [esi + 8] */
   3349     ecx = edi; /* 0x36042077: mov ecx, edi */
   3350     RECOMP_ICALL(0x360C3F00u); /* 0x36042079: call 0x360c3f00 */ /* not lifted */
   3351     RECOMP_FLAGS_IN();
   3352     /* cmp eax, MEM32(ebp + 0x8) */ /* 0x3604207E: cmp eax, dword ptr [ebp + 8] */
   3353     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + 0x8));
   3354     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3355     _flag_k = FK_CMP;
   3356     if (CMP_EQ(_flag_a, _flag_b)) goto L_36042094; /* 0x36042081: je 0x36042094 */
   3357 L_36042083:
   3358     ecx = MEM32(ebx + 0x8); /* 0x36042083: mov ecx, dword ptr [ebx + 8] */
   3359     esi = MEM32(esi); /* 0x36042086: mov esi, dword ptr [esi] */
   3360     /* cmp esi, MEM32(ecx + 0x4) */ /* 0x36042088: cmp esi, dword ptr [ecx + 4] */
   3361     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   3362     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3363     _flag_k = FK_CMP;
   3364     RECOMP_BACKEDGE();
   3365     if (CMP_NE(_flag_a, _flag_b)) goto L_36042074; /* 0x3604208B: jne 0x36042074 */
   3366 L_3604208D:
   3367     edi = POP32_VAL(esp); /* 0x3604208D: pop edi */
   3368     esi = POP32_VAL(esp); /* 0x3604208E: pop esi */
   3369     ebx = POP32_VAL(esp); /* 0x3604208F: pop ebx */
   3370     ebp = POP32_VAL(esp); /* 0x36042090: pop ebp */
   3371     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36042091: ret 4 */
   3372 L_36042094:
   3373     ecx = edi; /* 0x36042094: mov ecx, edi */
   3374     RECOMP_ICALL(0x360C35F0u); /* 0x36042096: call 0x360c35f0 */ /* not lifted */
   3375     RECOMP_FLAGS_IN();
   3376     edx = MEM32(esi + 0x4); /* 0x3604209B: mov edx, dword ptr [esi + 4] */
   3377     eax = MEM32(esi); /* 0x3604209E: mov eax, dword ptr [esi] */
   3378     ebx = MEM32(ebx + 0x8); /* 0x360420A0: mov ebx, dword ptr [ebx + 8] */
   3379     MEM32(edx) = eax; /* 0x360420A3: mov dword ptr [edx], eax */
   3380     ecx = MEM32(esi); /* 0x360420A5: mov ecx, dword ptr [esi] */
   3381     edx = MEM32(esi + 0x4); /* 0x360420A7: mov edx, dword ptr [esi + 4] */
   3382     PUSH32(esp, esi); /* 0x360420AA: push esi */
   3383     MEM32(ecx + 0x4) = edx; /* 0x360420AB: mov dword ptr [ecx + 4], edx */
   3384     RECOMP_ICALL(0x3615FCC4u); /* 0x360420AE: call 0x3615fcc4 */ /* not lifted */
   3385     RECOMP_FLAGS_IN();
   3386     eax = MEM32(ebx + 0x8); /* 0x360420B3: mov eax, dword ptr [ebx + 8] */
   3387     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3388     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3389     esp = esp + 4; /* 0x360420B6: add esp, 4 */
   3390     _flag_k = FK_ADD;
   3391     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3392     eax = eax - 1; /* 0x360420B9: dec eax */
   3393     _flag_k = FK_DEC;
   3394     MEM32(ebx + 0x8) = eax; /* 0x360420BA: mov dword ptr [ebx + 8], eax */
   3395 L_360420BD:
   3396     edi = POP32_VAL(esp); /* 0x360420BD: pop edi */
   3397     esi = POP32_VAL(esp); /* 0x360420BE: pop esi */
   3398     ebx = POP32_VAL(esp); /* 0x360420BF: pop ebx */
   3399     ebp = POP32_VAL(esp); /* 0x360420C0: pop ebp */
   3400     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360420C1: ret 4 */
   3401     RECOMP_REGS_OUT();
   3402 }
   3403 
   3404 void sub_360420D0(void) {
   3405     int _fpu_cmp = 0;
   3406     uint32_t _cf = 0;
   3407     int _df = 1;
   3408     uint32_t _flag_k = FK_NONE;
   3409     uint32_t _flag_a = 0, _flag_b = 0;
   3410     uint32_t _itail_tgt = 0;
   3411     RECOMP_REGS_LOCALS
   3412     RECOMP_ENTER(0x360420D0u);
   3413 
   3414 L_360420D0:
   3415     PUSH32(esp, ebp); /* 0x360420D0: push ebp */
   3416     ebp = esp; /* 0x360420D1: mov ebp, esp */
   3417     PUSH32(esp, ebx); /* 0x360420D3: push ebx */
   3418     PUSH32(esp, esi); /* 0x360420D4: push esi */
   3419     ebx = ecx; /* 0x360420D5: mov ebx, ecx */
   3420     eax = MEM32(ebx + 0x8); /* 0x360420D7: mov eax, dword ptr [ebx + 8] */
   3421     PUSH32(esp, edi); /* 0x360420DA: push edi */
   3422     edi = MEM32(ebp + 0x8); /* 0x360420DB: mov edi, dword ptr [ebp + 8] */
   3423     /* cmp edi, eax */ /* 0x360420DE: cmp edi, eax */
   3424     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3425     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3426     _flag_k = FK_CMP;
   3427     esi = edi; /* 0x360420E0: mov esi, edi */
   3428     if (CMP_EQ(_flag_a, _flag_b)) goto L_36042103; /* 0x360420E2: je 0x36042103 */
   3429 L_360420E4:
   3430     eax = MEM32(esi + 0x8); /* 0x360420E4: mov eax, dword ptr [esi + 8] */
   3431     PUSH32(esp, eax); /* 0x360420E7: push eax */
   3432     ecx = ebx; /* 0x360420E8: mov ecx, ebx */
   3433     RECOMP_ICALL(0x360420D0u); /* 0x360420EA: call 0x360420d0 */ /* not lifted */
   3434     RECOMP_FLAGS_IN();
   3435     esi = MEM32(esi); /* 0x360420EF: mov esi, dword ptr [esi] */
   3436     PUSH32(esp, edi); /* 0x360420F1: push edi */
   3437     RECOMP_ICALL(0x3615FCC4u); /* 0x360420F2: call 0x3615fcc4 */ /* not lifted */
   3438     RECOMP_FLAGS_IN();
   3439     eax = MEM32(ebx + 0x8); /* 0x360420F7: mov eax, dword ptr [ebx + 8] */
   3440     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3441     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3442     esp = esp + 4; /* 0x360420FA: add esp, 4 */
   3443     _flag_k = FK_ADD;
   3444     /* cmp esi, eax */ /* 0x360420FD: cmp esi, eax */
   3445     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   3446     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3447     _flag_k = FK_CMP;
   3448     edi = esi; /* 0x360420FF: mov edi, esi */
   3449     RECOMP_BACKEDGE();
   3450     if (CMP_NE(_flag_a, _flag_b)) goto L_360420E4; /* 0x36042101: jne 0x360420e4 */
   3451 L_36042103:
   3452     edi = POP32_VAL(esp); /* 0x36042103: pop edi */
   3453     esi = POP32_VAL(esp); /* 0x36042104: pop esi */
   3454     ebx = POP32_VAL(esp); /* 0x36042105: pop ebx */
   3455     ebp = POP32_VAL(esp); /* 0x36042106: pop ebp */
   3456     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36042107: ret 4 */
   3457     RECOMP_REGS_OUT();
   3458 }
   3459 
   3460 void sub_36042110(void) {
   3461     int _fpu_cmp = 0;
   3462     uint32_t _cf = 0;
   3463     int _df = 1;
   3464     uint32_t _flag_k = FK_NONE;
   3465     uint32_t _flag_a = 0, _flag_b = 0;
   3466     uint32_t _itail_tgt = 0;
   3467     RECOMP_REGS_LOCALS
   3468     RECOMP_ENTER(0x36042110u);
   3469 
   3470 L_36042110:
   3471     eax = ecx; /* 0x36042110: mov eax, ecx */
   3472     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3473     ecx = 0; /* 0x36042112: xor ecx, ecx */
   3474     _cf = 0;
   3475     _flag_k = FK_TEST;
   3476     MEM32(eax) = ecx; /* 0x36042114: mov dword ptr [eax], ecx */
   3477     MEM32(eax + 0x4) = ecx; /* 0x36042116: mov dword ptr [eax + 4], ecx */
   3478     MEM32(eax + 0x8) = ecx; /* 0x36042119: mov dword ptr [eax + 8], ecx */
   3479     MEM32(eax + 0xC) = ecx; /* 0x3604211C: mov dword ptr [eax + 0xc], ecx */
   3480     MEM32(eax + 0x10) = ecx; /* 0x3604211F: mov dword ptr [eax + 0x10], ecx */
   3481     MEM32(eax + 0x14) = ecx; /* 0x36042122: mov dword ptr [eax + 0x14], ecx */
   3482     MEM32(eax + 0x18) = ecx; /* 0x36042125: mov dword ptr [eax + 0x18], ecx */
   3483     MEM32(eax + 0x1C) = ecx; /* 0x36042128: mov dword ptr [eax + 0x1c], ecx */
   3484     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604212B: ret  */
   3485     RECOMP_REGS_OUT();
   3486 }
   3487 
   3488 void sub_36042130(void) {
   3489     int _fpu_cmp = 0;
   3490     uint32_t _cf = 0;
   3491     int _df = 1;
   3492     uint32_t _flag_k = FK_NONE;
   3493     uint32_t _flag_a = 0, _flag_b = 0;
   3494     uint32_t _itail_tgt = 0;
   3495     RECOMP_REGS_LOCALS
   3496     RECOMP_ENTER(0x36042130u);
   3497 
   3498 L_36042130:
   3499     eax = ecx + 0x8; /* 0x36042130: lea eax, [ecx + 8] */
   3500     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36042133: ret  */
   3501     RECOMP_REGS_OUT();
   3502 }
   3503 
   3504 void sub_36042140(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(0x36042140u);
   3513 
   3514 L_36042140:
   3515     /* cmp MEM32(ecx), 0 */ /* 0x36042140: cmp dword ptr [ecx], 0 */
   3516     _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(0);
   3517     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3518     _flag_k = FK_CMP;
   3519     if (CMP_NE(_flag_a, _flag_b)) goto L_360421B2; /* 0x36042143: jne 0x360421b2 */
   3520 L_36042145:
   3521     eax = MEM32(ecx + 0x4); /* 0x36042145: mov eax, dword ptr [ecx + 4] */
   3522     /* test eax, eax */ /* 0x36042148: test eax, eax */
   3523     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3524     _cf = 0;
   3525     _flag_k = FK_TEST;
   3526     if (TEST_NZ(_flag_a, _flag_b)) goto L_360421B2; /* 0x3604214A: jne 0x360421b2 */
   3527 L_3604214C:
   3528     fp_push(*(float*)&MEM32(ecx + 0x8)); /* 0x3604214C: fld dword ptr [ecx + 8] */
   3529     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3604214F: fcomp dword ptr [0x3617040c] */
   3530     fp_pop();
   3531     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36042155: fnstsw ax */
   3532     /* test HI8(eax), 0x40u */ /* 0x36042157: test ah, 0x40 */
   3533     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   3534     _cf = 0;
   3535     _flag_k = FK_NARROW(FK_TEST, 24);
   3536     if (TEST_Z(_flag_a, _flag_b)) goto L_360421B2; /* 0x3604215A: je 0x360421b2 */
   3537 L_3604215C:
   3538     fp_push(*(float*)&MEM32(ecx + 0xC)); /* 0x3604215C: fld dword ptr [ecx + 0xc] */
   3539     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3604215F: fcomp dword ptr [0x3617040c] */
   3540     fp_pop();
   3541     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36042165: fnstsw ax */
   3542     /* test HI8(eax), 0x40u */ /* 0x36042167: test ah, 0x40 */
   3543     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   3544     _cf = 0;
   3545     _flag_k = FK_NARROW(FK_TEST, 24);
   3546     if (TEST_Z(_flag_a, _flag_b)) goto L_360421B2; /* 0x3604216A: je 0x360421b2 */
   3547 L_3604216C:
   3548     fp_push(*(float*)&MEM32(ecx + 0x10)); /* 0x3604216C: fld dword ptr [ecx + 0x10] */
   3549     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3604216F: fcomp dword ptr [0x3617040c] */
   3550     fp_pop();
   3551     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36042175: fnstsw ax */
   3552     /* test HI8(eax), 0x40u */ /* 0x36042177: test ah, 0x40 */
   3553     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   3554     _cf = 0;
   3555     _flag_k = FK_NARROW(FK_TEST, 24);
   3556     if (TEST_Z(_flag_a, _flag_b)) goto L_360421B2; /* 0x3604217A: je 0x360421b2 */
   3557 L_3604217C:
   3558     fp_push(*(float*)&MEM32(ecx + 0x14)); /* 0x3604217C: fld dword ptr [ecx + 0x14] */
   3559     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3604217F: fcomp dword ptr [0x3617040c] */
   3560     fp_pop();
   3561     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36042185: fnstsw ax */
   3562     /* test HI8(eax), 0x40u */ /* 0x36042187: test ah, 0x40 */
   3563     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   3564     _cf = 0;
   3565     _flag_k = FK_NARROW(FK_TEST, 24);
   3566     if (TEST_Z(_flag_a, _flag_b)) goto L_360421B2; /* 0x3604218A: je 0x360421b2 */
   3567 L_3604218C:
   3568     fp_push(*(float*)&MEM32(ecx + 0x18)); /* 0x3604218C: fld dword ptr [ecx + 0x18] */
   3569     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3604218F: fcomp dword ptr [0x3617040c] */
   3570     fp_pop();
   3571     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36042195: fnstsw ax */
   3572     /* test HI8(eax), 0x40u */ /* 0x36042197: test ah, 0x40 */
   3573     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   3574     _cf = 0;
   3575     _flag_k = FK_NARROW(FK_TEST, 24);
   3576     if (TEST_Z(_flag_a, _flag_b)) goto L_360421B2; /* 0x3604219A: je 0x360421b2 */
   3577 L_3604219C:
   3578     fp_push(*(float*)&MEM32(ecx + 0x1C)); /* 0x3604219C: fld dword ptr [ecx + 0x1c] */
   3579     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3604219F: fcomp dword ptr [0x3617040c] */
   3580     fp_pop();
   3581     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360421A5: fnstsw ax */
   3582     /* test HI8(eax), 0x40u */ /* 0x360421A7: test ah, 0x40 */
   3583     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   3584     _cf = 0;
   3585     _flag_k = FK_NARROW(FK_TEST, 24);
   3586     if (TEST_Z(_flag_a, _flag_b)) goto L_360421B2; /* 0x360421AA: je 0x360421b2 */
   3587 L_360421AC:
   3588     eax = 1; /* 0x360421AC: mov eax, 1 */
   3589     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360421B1: ret  */
   3590 L_360421B2:
   3591     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3592     eax = 0; /* 0x360421B2: xor eax, eax */
   3593     _cf = 0;
   3594     _flag_k = FK_TEST;
   3595     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360421B4: ret  */
   3596     RECOMP_REGS_OUT();
   3597 }
   3598 
   3599 void sub_360421C0(void) {
   3600     int _fpu_cmp = 0;
   3601     uint32_t _cf = 0;
   3602     int _df = 1;
   3603     uint32_t _flag_k = FK_NONE;
   3604     uint32_t _flag_a = 0, _flag_b = 0;
   3605     uint32_t _itail_tgt = 0;
   3606     RECOMP_REGS_LOCALS
   3607     RECOMP_ENTER(0x360421C0u);
   3608 
   3609 L_360421C0:
   3610     PUSH32(esp, esi); /* 0x360421C0: push esi */
   3611     esi = ecx; /* 0x360421C1: mov esi, ecx */
   3612     RECOMP_ICALL(0x36042140u); /* 0x360421C3: call 0x36042140 */ /* not lifted */
   3613     RECOMP_FLAGS_IN();
   3614     /* test LO8(eax), LO8(eax) */ /* 0x360421C8: test al, al */
   3615     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3616     _cf = 0;
   3617     _flag_k = FK_NARROW(FK_TEST, 24);
   3618     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604223C; /* 0x360421CA: jne 0x3604223c */
   3619 L_360421CC:
   3620     /* cmp MEM32(esi), 0 */ /* 0x360421CC: cmp dword ptr [esi], 0 */
   3621     _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(0);
   3622     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3623     _flag_k = FK_CMP;
   3624     if (CMP_EQ(_flag_a, _flag_b)) goto L_36042238; /* 0x360421CF: je 0x36042238 */
   3625 L_360421D1:
   3626     eax = MEM32(esi + 0x4); /* 0x360421D1: mov eax, dword ptr [esi + 4] */
   3627     /* test eax, eax */ /* 0x360421D4: test eax, eax */
   3628     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3629     _cf = 0;
   3630     _flag_k = FK_TEST;
   3631     if (TEST_Z(_flag_a, _flag_b)) goto L_36042238; /* 0x360421D6: je 0x36042238 */
   3632 L_360421D8:
   3633     fp_push(*(float*)&MEM32(0x3617040C)); /* 0x360421D8: fld dword ptr [0x3617040c] */
   3634     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0x8)); /* 0x360421DE: fcomp dword ptr [esi + 8] */
   3635     fp_pop();
   3636     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360421E1: fnstsw ax */
   3637     /* test HI8(eax), 1 */ /* 0x360421E3: test ah, 1 */
   3638     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3639     _cf = 0;
   3640     _flag_k = FK_NARROW(FK_TEST, 24);
   3641     if (TEST_Z(_flag_a, _flag_b)) goto L_36042238; /* 0x360421E6: je 0x36042238 */
   3642 L_360421E8:
   3643     fp_push(*(float*)&MEM32(0x3617040C)); /* 0x360421E8: fld dword ptr [0x3617040c] */
   3644     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC)); /* 0x360421EE: fcomp dword ptr [esi + 0xc] */
   3645     fp_pop();
   3646     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360421F1: fnstsw ax */
   3647     /* test HI8(eax), 0x41u */ /* 0x360421F3: test ah, 0x41 */
   3648     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   3649     _cf = 0;
   3650     _flag_k = FK_NARROW(FK_TEST, 24);
   3651     if (TEST_Z(_flag_a, _flag_b)) goto L_36042238; /* 0x360421F6: je 0x36042238 */
   3652 L_360421F8:
   3653     fp_push(*(float*)&MEM32(0x3617040C)); /* 0x360421F8: fld dword ptr [0x3617040c] */
   3654     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0x10)); /* 0x360421FE: fcomp dword ptr [esi + 0x10] */
   3655     fp_pop();
   3656     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36042201: fnstsw ax */
   3657     /* test HI8(eax), 1 */ /* 0x36042203: test ah, 1 */
   3658     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3659     _cf = 0;
   3660     _flag_k = FK_NARROW(FK_TEST, 24);
   3661     if (TEST_Z(_flag_a, _flag_b)) goto L_36042238; /* 0x36042206: je 0x36042238 */
   3662 L_36042208:
   3663     fp_push(*(float*)&MEM32(0x3617040C)); /* 0x36042208: fld dword ptr [0x3617040c] */
   3664     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0x14)); /* 0x3604220E: fcomp dword ptr [esi + 0x14] */
   3665     fp_pop();
   3666     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36042211: fnstsw ax */
   3667     /* test HI8(eax), 1 */ /* 0x36042213: test ah, 1 */
   3668     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3669     _cf = 0;
   3670     _flag_k = FK_NARROW(FK_TEST, 24);
   3671     if (TEST_Z(_flag_a, _flag_b)) goto L_36042238; /* 0x36042216: je 0x36042238 */
   3672 L_36042218:
   3673     fp_push(*(float*)&MEM32(0x3617040C)); /* 0x36042218: fld dword ptr [0x3617040c] */
   3674     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0x18)); /* 0x3604221E: fcomp dword ptr [esi + 0x18] */
   3675     fp_pop();
   3676     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36042221: fnstsw ax */
   3677     /* test HI8(eax), 0x41u */ /* 0x36042223: test ah, 0x41 */
   3678     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   3679     _cf = 0;
   3680     _flag_k = FK_NARROW(FK_TEST, 24);
   3681     if (TEST_Z(_flag_a, _flag_b)) goto L_36042238; /* 0x36042226: je 0x36042238 */
   3682 L_36042228:
   3683     fp_push(*(float*)&MEM32(0x3617040C)); /* 0x36042228: fld dword ptr [0x3617040c] */
   3684     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0x1C)); /* 0x3604222E: fcomp dword ptr [esi + 0x1c] */
   3685     fp_pop();
   3686     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36042231: fnstsw ax */
   3687     /* test HI8(eax), 1 */ /* 0x36042233: test ah, 1 */
   3688     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3689     _cf = 0;
   3690     _flag_k = FK_NARROW(FK_TEST, 24);
   3691     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604223C; /* 0x36042236: jne 0x3604223c */
   3692 L_36042238:
   3693     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3694     eax = 0; /* 0x36042238: xor eax, eax */
   3695     _cf = 0;
   3696     _flag_k = FK_TEST;
   3697     esi = POP32_VAL(esp); /* 0x3604223A: pop esi */
   3698     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604223B: ret  */
   3699 L_3604223C:
   3700     eax = 1; /* 0x3604223C: mov eax, 1 */
   3701     esi = POP32_VAL(esp); /* 0x36042241: pop esi */
   3702     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36042242: ret  */
   3703     RECOMP_REGS_OUT();
   3704 }
   3705 
   3706 void sub_36042250(void) {
   3707     int _fpu_cmp = 0;
   3708     uint32_t _cf = 0;
   3709     int _df = 1;
   3710     uint32_t _flag_k = FK_NONE;
   3711     uint32_t _flag_a = 0, _flag_b = 0;
   3712     uint32_t _itail_tgt = 0;
   3713     RECOMP_REGS_LOCALS
   3714     RECOMP_ENTER(0x36042250u);
   3715 
   3716 L_36042250:
   3717     PUSH32(esp, ebp); /* 0x36042250: push ebp */
   3718     ebp = esp; /* 0x36042251: mov ebp, esp */
   3719     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   3720     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3721     esp = esp - 0x1Cu; /* 0x36042253: sub esp, 0x1c */
   3722     _flag_k = FK_CMP;
   3723     edx = MEM32(ebp + 0x8); /* 0x36042256: mov edx, dword ptr [ebp + 8] */
   3724     PUSH32(esp, ebx); /* 0x36042259: push ebx */
   3725     PUSH32(esp, esi); /* 0x3604225A: push esi */
   3726     PUSH32(esp, edi); /* 0x3604225B: push edi */
   3727     edi = MEM32(ebp + 0xC); /* 0x3604225C: mov edi, dword ptr [ebp + 0xc] */
   3728     eax = ebp + (-0x4); /* 0x3604225F: lea eax, [ebp - 4] */
   3729     PUSH32(esp, eax); /* 0x36042262: push eax */
   3730     ecx = ebp + 0xC; /* 0x36042263: lea ecx, [ebp + 0xc] */
   3731     PUSH32(esp, ecx); /* 0x36042266: push ecx */
   3732     PUSH32(esp, edi); /* 0x36042267: push edi */
   3733     PUSH32(esp, edx); /* 0x36042268: push edx */
   3734     esi = edi + 0x14; /* 0x36042269: lea esi, [edi + 0x14] */
   3735     RECOMP_ICALL(0x3615B870u); /* 0x3604226C: call 0x3615b870 */ /* not lifted */
   3736     RECOMP_FLAGS_IN();
   3737     ebx = MEM32(0x3616FA8C); /* 0x36042271: mov ebx, dword ptr [0x3616fa8c] */
   3738     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3739     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3740     esp = esp + 8; /* 0x36042277: add esp, 8 */
   3741     _flag_k = FK_ADD;
   3742     ecx = eax; /* 0x3604227A: mov ecx, eax */
   3743     RECOMP_ICALL(ebx); /* 0x3604227C: call ebx */
   3744     RECOMP_FLAGS_IN();
   3745     ecx = eax; /* 0x3604227E: mov ecx, eax */
   3746     RECOMP_ICALL(ebx); /* 0x36042280: call ebx */
   3747     RECOMP_FLAGS_IN();
   3748     ebx = MEM32(0x3616FAD0); /* 0x36042282: mov ebx, dword ptr [0x3616fad0] */
   3749     ecx = esi + 0x8; /* 0x36042288: lea ecx, [esi + 8] */
   3750     PUSH32(esp, ecx); /* 0x3604228B: push ecx */
   3751     edx = esi + 0x4; /* 0x3604228C: lea edx, [esi + 4] */
   3752     PUSH32(esp, edx); /* 0x3604228F: push edx */
   3753     PUSH32(esp, esi); /* 0x36042290: push esi */
   3754     ecx = eax; /* 0x36042291: mov ecx, eax */
   3755     RECOMP_ICALL(ebx); /* 0x36042293: call ebx */
   3756     RECOMP_FLAGS_IN();
   3757     ecx = eax; /* 0x36042295: mov ecx, eax */
   3758     RECOMP_ICALL(ebx); /* 0x36042297: call ebx */
   3759     RECOMP_FLAGS_IN();
   3760     ecx = eax; /* 0x36042299: mov ecx, eax */
   3761     RECOMP_ICALL(ebx); /* 0x3604229B: call ebx */
   3762     RECOMP_FLAGS_IN();
   3763     fp_push((double)(int32_t)MEM32(ebp + 0xC)); /* 0x3604229D: fild dword ptr [ebp + 0xc] */
   3764     fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x360422A0: fild dword ptr [ebp - 4] */
   3765     eax = MEM32(esi); /* 0x360422A3: mov eax, dword ptr [esi] */
   3766     edx = MEM32(esi + 0x8); /* 0x360422A5: mov edx, dword ptr [esi + 8] */
   3767     ecx = MEM32(esi + 0x4); /* 0x360422A8: mov ecx, dword ptr [esi + 4] */
   3768     MEM32(ebp + (-0x10)) = eax; /* 0x360422AB: mov dword ptr [ebp - 0x10], eax */
   3769     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x360422AE: fstp dword ptr [ebp - 0x14] */
   3770     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x360422B1: fld dword ptr [ebp - 0x10] */
   3771     MEM32(ebp + (-0x8)) = edx; /* 0x360422B4: mov dword ptr [ebp - 8], edx */
   3772     _st[0] += _st[1]; /* 0x360422B7: fadd st(1) */
   3773     MEM32(ebp + (-0xC)) = ecx; /* 0x360422B9: mov dword ptr [ebp - 0xc], ecx */
   3774     eax = ecx; /* 0x360422BC: mov eax, ecx */
   3775     ecx = edi + 0x8; /* 0x360422BE: lea ecx, [edi + 8] */
   3776     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x360422C1: fstp dword ptr [ebp - 0x10] */
   3777     edx = MEM32(ebp + (-0x10)); /* 0x360422C4: mov edx, dword ptr [ebp - 0x10] */
   3778     MEM32(ecx) = edx; /* 0x360422C7: mov dword ptr [ecx], edx */
   3779     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x360422C9: fstp st(0) */
   3780     MEM32(ecx + 0x4) = eax; /* 0x360422CB: mov dword ptr [ecx + 4], eax */
   3781     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x360422CE: fld dword ptr [ebp - 8] */
   3782     MEM32(ebp + (-0xC)) = eax; /* 0x360422D1: mov dword ptr [ebp - 0xc], eax */
   3783     _st[0] += (double)*(float*)ADDR(ebp + (-0x14)); /* 0x360422D4: fadd dword ptr [ebp - 0x14] */
   3784     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x360422D7: fstp dword ptr [ebp - 8] */
   3785     edx = MEM32(ebp + (-0x8)); /* 0x360422DA: mov edx, dword ptr [ebp - 8] */
   3786     MEM32(ecx + 0x8) = edx; /* 0x360422DD: mov dword ptr [ecx + 8], edx */
   3787     ecx = edi; /* 0x360422E0: mov ecx, edi */
   3788     RECOMP_ICALL(0x360421C0u); /* 0x360422E2: call 0x360421c0 */ /* not lifted */
   3789     RECOMP_FLAGS_IN();
   3790     /* test LO8(eax), LO8(eax) */ /* 0x360422E7: test al, al */
   3791     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3792     _cf = 0;
   3793     _flag_k = FK_NARROW(FK_TEST, 24);
   3794     if (TEST_Z(_flag_a, _flag_b)) goto L_36042303; /* 0x360422E9: je 0x36042303 */
   3795 L_360422EB:
   3796     esi = MEM32(ebp + 0x8); /* 0x360422EB: mov esi, dword ptr [ebp + 8] */
   3797     ecx = esi; /* 0x360422EE: mov ecx, esi */
   3798     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x360422F0: call dword ptr [0x3616fadc] */
   3799     RECOMP_FLAGS_IN();
   3800     /* test eax, eax */ /* 0x360422F6: test eax, eax */
   3801     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3802     _cf = 0;
   3803     _flag_k = FK_TEST;
   3804     if (TEST_Z(_flag_a, _flag_b)) goto L_36042303; /* 0x360422F8: je 0x36042303 */
   3805 L_360422FA:
   3806     edi = POP32_VAL(esp); /* 0x360422FA: pop edi */
   3807     eax = esi; /* 0x360422FB: mov eax, esi */
   3808     esi = POP32_VAL(esp); /* 0x360422FD: pop esi */
   3809     ebx = POP32_VAL(esp); /* 0x360422FE: pop ebx */
   3810     esp = ebp; /* 0x360422FF: mov esp, ebp */
   3811     ebp = POP32_VAL(esp); /* 0x36042301: pop ebp */
   3812     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36042302: ret  */
   3813 L_36042303:
   3814     PUSH32(esp, 0x361C0D7Cu); /* 0x36042303: push 0x361c0d7c */
   3815     ecx = ebp + (-0xC); /* 0x36042308: lea ecx, [ebp - 0xc] */
   3816     RECOMP_ICALL(0x36008EF0u); /* 0x3604230B: call 0x36008ef0 */ /* not lifted */
   3817     RECOMP_FLAGS_IN();
   3818     PUSH32(esp, 0x36184170u); /* 0x36042310: push 0x36184170 */
   3819     eax = ebp + (-0xC); /* 0x36042315: lea eax, [ebp - 0xc] */
   3820     PUSH32(esp, eax); /* 0x36042318: push eax */
   3821     RECOMP_ICALL(0x3615FD70u); /* 0x36042319: call 0x3615fd70 */ /* not lifted */
   3822     RECOMP_FLAGS_IN();
   3823     /* nop */ /* 0x3604231E: nop  */
   3824     /* nop */ /* 0x3604231F: nop  */
   3825     PUSH32(esp, ebp); /* 0x36042320: push ebp */
   3826     ebp = esp; /* 0x36042321: mov ebp, esp */
   3827     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3828     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3829     esp = esp - 8; /* 0x36042323: sub esp, 8 */
   3830     _flag_k = FK_CMP;
   3831     PUSH32(esp, ebx); /* 0x36042326: push ebx */
   3832     PUSH32(esp, esi); /* 0x36042327: push esi */
   3833     esi = MEM32(ebp + 0xC); /* 0x36042328: mov esi, dword ptr [ebp + 0xc] */
   3834     fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x3604232B: fld dword ptr [esi + 8] */
   3835     PUSH32(esp, edi); /* 0x3604232E: push edi */
   3836     _st[0] -= (double)*(float*)ADDR(esi + 0x14); /* 0x3604232F: fsub dword ptr [esi + 0x14] */
   3837     RECOMP_ICALL(0x3615FD8Cu); /* 0x36042332: call 0x3615fd8c */ /* not lifted */
   3838     RECOMP_FLAGS_IN();
   3839     fp_push(*(float*)&MEM32(esi + 0x10)); /* 0x36042337: fld dword ptr [esi + 0x10] */
   3840     _st[0] -= (double)*(float*)ADDR(esi + 0x1C); /* 0x3604233A: fsub dword ptr [esi + 0x1c] */
   3841     ebx = eax; /* 0x3604233D: mov ebx, eax */
   3842     RECOMP_ICALL(0x3615FD8Cu); /* 0x3604233F: call 0x3615fd8c */ /* not lifted */
   3843     RECOMP_FLAGS_IN();
   3844     ecx = esi; /* 0x36042344: mov ecx, esi */
   3845     MEM32(ebp + 0xC) = eax; /* 0x36042346: mov dword ptr [ebp + 0xc], eax */
   3846     RECOMP_ICALL(0x360421C0u); /* 0x36042349: call 0x360421c0 */ /* not lifted */
   3847     RECOMP_FLAGS_IN();
   3848     /* test LO8(eax), LO8(eax) */ /* 0x3604234E: test al, al */
   3849     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3850     _cf = 0;
   3851     _flag_k = FK_NARROW(FK_TEST, 24);
   3852     if (TEST_Z(_flag_a, _flag_b)) goto L_360423A5; /* 0x36042350: je 0x360423a5 */
   3853 L_36042352:
   3854     edi = MEM32(ebp + 0x8); /* 0x36042352: mov edi, dword ptr [ebp + 8] */
   3855     ecx = edi; /* 0x36042355: mov ecx, edi */
   3856     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36042357: call dword ptr [0x3616fadc] */
   3857     RECOMP_FLAGS_IN();
   3858     /* test eax, eax */ /* 0x3604235D: test eax, eax */
   3859     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3860     _cf = 0;
   3861     _flag_k = FK_TEST;
   3862     if (TEST_Z(_flag_a, _flag_b)) goto L_360423A5; /* 0x3604235F: je 0x360423a5 */
   3863 L_36042361:
   3864     eax = MEM32(ebp + 0xC); /* 0x36042361: mov eax, dword ptr [ebp + 0xc] */
   3865     PUSH32(esp, eax); /* 0x36042364: push eax */
   3866     PUSH32(esp, ebx); /* 0x36042365: push ebx */
   3867     PUSH32(esp, esi); /* 0x36042366: push esi */
   3868     PUSH32(esp, edi); /* 0x36042367: push edi */
   3869     RECOMP_ICALL(0x3615B840u); /* 0x36042368: call 0x3615b840 */ /* not lifted */
   3870     RECOMP_FLAGS_IN();
   3871     ebx = MEM32(0x3616FAEC); /* 0x3604236D: mov ebx, dword ptr [0x3616faec] */
   3872     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3873     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3874     esp = esp + 8; /* 0x36042373: add esp, 8 */
   3875     _flag_k = FK_ADD;
   3876     ecx = eax; /* 0x36042376: mov ecx, eax */
   3877     RECOMP_ICALL(ebx); /* 0x36042378: call ebx */
   3878     RECOMP_FLAGS_IN();
   3879     ecx = eax; /* 0x3604237A: mov ecx, eax */
   3880     RECOMP_ICALL(ebx); /* 0x3604237C: call ebx */
   3881     RECOMP_FLAGS_IN();
   3882     ecx = MEM32(esi + 0x1C); /* 0x3604237E: mov ecx, dword ptr [esi + 0x1c] */
   3883     edx = MEM32(esi + 0x18); /* 0x36042381: mov edx, dword ptr [esi + 0x18] */
   3884     PUSH32(esp, ecx); /* 0x36042384: push ecx */
   3885     ecx = MEM32(esi + 0x14); /* 0x36042385: mov ecx, dword ptr [esi + 0x14] */
   3886     esi = MEM32(0x3616FAD4); /* 0x36042388: mov esi, dword ptr [0x3616fad4] */
   3887     PUSH32(esp, edx); /* 0x3604238E: push edx */
   3888     PUSH32(esp, ecx); /* 0x3604238F: push ecx */
   3889     ecx = eax; /* 0x36042390: mov ecx, eax */
   3890     RECOMP_ICALL(esi); /* 0x36042392: call esi */
   3891     RECOMP_FLAGS_IN();
   3892     ecx = eax; /* 0x36042394: mov ecx, eax */
   3893     RECOMP_ICALL(esi); /* 0x36042396: call esi */
   3894     RECOMP_FLAGS_IN();
   3895     ecx = eax; /* 0x36042398: mov ecx, eax */
   3896     RECOMP_ICALL(esi); /* 0x3604239A: call esi */
   3897     RECOMP_FLAGS_IN();
   3898     eax = edi; /* 0x3604239C: mov eax, edi */
   3899     edi = POP32_VAL(esp); /* 0x3604239E: pop edi */
   3900     esi = POP32_VAL(esp); /* 0x3604239F: pop esi */
   3901     ebx = POP32_VAL(esp); /* 0x360423A0: pop ebx */
   3902     esp = ebp; /* 0x360423A1: mov esp, ebp */
   3903     ebp = POP32_VAL(esp); /* 0x360423A3: pop ebp */
   3904     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360423A4: ret  */
   3905 L_360423A5:
   3906     PUSH32(esp, 0x361C0D9Cu); /* 0x360423A5: push 0x361c0d9c */
   3907     ecx = ebp + (-0x8); /* 0x360423AA: lea ecx, [ebp - 8] */
   3908     RECOMP_ICALL(0x36008EF0u); /* 0x360423AD: call 0x36008ef0 */ /* not lifted */
   3909     RECOMP_FLAGS_IN();
   3910     PUSH32(esp, 0x36184170u); /* 0x360423B2: push 0x36184170 */
   3911     edx = ebp + (-0x8); /* 0x360423B7: lea edx, [ebp - 8] */
   3912     PUSH32(esp, edx); /* 0x360423BA: push edx */
   3913     RECOMP_ICALL(0x3615FD70u); /* 0x360423BB: call 0x3615fd70 */ /* not lifted */
   3914     RECOMP_FLAGS_IN();
   3915     PUSH32(esp, esi); /* 0x360423C0: push esi */
   3916     esi = ecx; /* 0x360423C1: mov esi, ecx */
   3917     RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x360423C3: call dword ptr [0x3616ffd0] */
   3918     RECOMP_FLAGS_IN();
   3919     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3920     eax = 0; /* 0x360423C9: xor eax, eax */
   3921     _cf = 0;
   3922     _flag_k = FK_TEST;
   3923     MEM32(esi + 0x20) = eax; /* 0x360423CB: mov dword ptr [esi + 0x20], eax */
   3924     MEM8(esi + 0x24) = (uint8_t)(LO8(eax)); /* 0x360423CE: mov byte ptr [esi + 0x24], al */
   3925     MEM8(esi + 0x25) = (uint8_t)(LO8(eax)); /* 0x360423D1: mov byte ptr [esi + 0x25], al */
   3926     MEM32(esi) = 0x361709FCu; /* 0x360423D4: mov dword ptr [esi], 0x361709fc */
   3927     eax = esi; /* 0x360423DA: mov eax, esi */
   3928     esi = POP32_VAL(esp); /* 0x360423DC: pop esi */
   3929     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360423DD: ret  */
   3930     RECOMP_REGS_OUT();
   3931 }
   3932 
   3933 void sub_36042320(void) {
   3934     int _fpu_cmp = 0;
   3935     uint32_t _cf = 0;
   3936     int _df = 1;
   3937     uint32_t _flag_k = FK_NONE;
   3938     uint32_t _flag_a = 0, _flag_b = 0;
   3939     uint32_t _itail_tgt = 0;
   3940     RECOMP_REGS_LOCALS
   3941     RECOMP_ENTER(0x36042320u);
   3942 
   3943 L_36042320:
   3944     PUSH32(esp, ebp); /* 0x36042320: push ebp */
   3945     ebp = esp; /* 0x36042321: mov ebp, esp */
   3946     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3947     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3948     esp = esp - 8; /* 0x36042323: sub esp, 8 */
   3949     _flag_k = FK_CMP;
   3950     PUSH32(esp, ebx); /* 0x36042326: push ebx */
   3951     PUSH32(esp, esi); /* 0x36042327: push esi */
   3952     esi = MEM32(ebp + 0xC); /* 0x36042328: mov esi, dword ptr [ebp + 0xc] */
   3953     fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x3604232B: fld dword ptr [esi + 8] */
   3954     PUSH32(esp, edi); /* 0x3604232E: push edi */
   3955     _st[0] -= (double)*(float*)ADDR(esi + 0x14); /* 0x3604232F: fsub dword ptr [esi + 0x14] */
   3956     RECOMP_ICALL(0x3615FD8Cu); /* 0x36042332: call 0x3615fd8c */ /* not lifted */
   3957     RECOMP_FLAGS_IN();
   3958     fp_push(*(float*)&MEM32(esi + 0x10)); /* 0x36042337: fld dword ptr [esi + 0x10] */
   3959     _st[0] -= (double)*(float*)ADDR(esi + 0x1C); /* 0x3604233A: fsub dword ptr [esi + 0x1c] */
   3960     ebx = eax; /* 0x3604233D: mov ebx, eax */
   3961     RECOMP_ICALL(0x3615FD8Cu); /* 0x3604233F: call 0x3615fd8c */ /* not lifted */
   3962     RECOMP_FLAGS_IN();
   3963     ecx = esi; /* 0x36042344: mov ecx, esi */
   3964     MEM32(ebp + 0xC) = eax; /* 0x36042346: mov dword ptr [ebp + 0xc], eax */
   3965     RECOMP_ICALL(0x360421C0u); /* 0x36042349: call 0x360421c0 */ /* not lifted */
   3966     RECOMP_FLAGS_IN();
   3967     /* test LO8(eax), LO8(eax) */ /* 0x3604234E: test al, al */
   3968     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3969     _cf = 0;
   3970     _flag_k = FK_NARROW(FK_TEST, 24);
   3971     if (TEST_Z(_flag_a, _flag_b)) goto L_360423A5; /* 0x36042350: je 0x360423a5 */
   3972 L_36042352:
   3973     edi = MEM32(ebp + 0x8); /* 0x36042352: mov edi, dword ptr [ebp + 8] */
   3974     ecx = edi; /* 0x36042355: mov ecx, edi */
   3975     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36042357: call dword ptr [0x3616fadc] */
   3976     RECOMP_FLAGS_IN();
   3977     /* test eax, eax */ /* 0x3604235D: test eax, eax */
   3978     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3979     _cf = 0;
   3980     _flag_k = FK_TEST;
   3981     if (TEST_Z(_flag_a, _flag_b)) goto L_360423A5; /* 0x3604235F: je 0x360423a5 */
   3982 L_36042361:
   3983     eax = MEM32(ebp + 0xC); /* 0x36042361: mov eax, dword ptr [ebp + 0xc] */
   3984     PUSH32(esp, eax); /* 0x36042364: push eax */
   3985     PUSH32(esp, ebx); /* 0x36042365: push ebx */
   3986     PUSH32(esp, esi); /* 0x36042366: push esi */
   3987     PUSH32(esp, edi); /* 0x36042367: push edi */
   3988     RECOMP_ICALL(0x3615B840u); /* 0x36042368: call 0x3615b840 */ /* not lifted */
   3989     RECOMP_FLAGS_IN();
   3990     ebx = MEM32(0x3616FAEC); /* 0x3604236D: mov ebx, dword ptr [0x3616faec] */
   3991     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3992     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3993     esp = esp + 8; /* 0x36042373: add esp, 8 */
   3994     _flag_k = FK_ADD;
   3995     ecx = eax; /* 0x36042376: mov ecx, eax */
   3996     RECOMP_ICALL(ebx); /* 0x36042378: call ebx */
   3997     RECOMP_FLAGS_IN();
   3998     ecx = eax; /* 0x3604237A: mov ecx, eax */
   3999     RECOMP_ICALL(ebx); /* 0x3604237C: call ebx */
   4000     RECOMP_FLAGS_IN();
   4001     ecx = MEM32(esi + 0x1C); /* 0x3604237E: mov ecx, dword ptr [esi + 0x1c] */
   4002     edx = MEM32(esi + 0x18); /* 0x36042381: mov edx, dword ptr [esi + 0x18] */
   4003     PUSH32(esp, ecx); /* 0x36042384: push ecx */
   4004     ecx = MEM32(esi + 0x14); /* 0x36042385: mov ecx, dword ptr [esi + 0x14] */
   4005     esi = MEM32(0x3616FAD4); /* 0x36042388: mov esi, dword ptr [0x3616fad4] */
   4006     PUSH32(esp, edx); /* 0x3604238E: push edx */
   4007     PUSH32(esp, ecx); /* 0x3604238F: push ecx */
   4008     ecx = eax; /* 0x36042390: mov ecx, eax */
   4009     RECOMP_ICALL(esi); /* 0x36042392: call esi */
   4010     RECOMP_FLAGS_IN();
   4011     ecx = eax; /* 0x36042394: mov ecx, eax */
   4012     RECOMP_ICALL(esi); /* 0x36042396: call esi */
   4013     RECOMP_FLAGS_IN();
   4014     ecx = eax; /* 0x36042398: mov ecx, eax */
   4015     RECOMP_ICALL(esi); /* 0x3604239A: call esi */
   4016     RECOMP_FLAGS_IN();
   4017     eax = edi; /* 0x3604239C: mov eax, edi */
   4018     edi = POP32_VAL(esp); /* 0x3604239E: pop edi */
   4019     esi = POP32_VAL(esp); /* 0x3604239F: pop esi */
   4020     ebx = POP32_VAL(esp); /* 0x360423A0: pop ebx */
   4021     esp = ebp; /* 0x360423A1: mov esp, ebp */
   4022     ebp = POP32_VAL(esp); /* 0x360423A3: pop ebp */
   4023     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360423A4: ret  */
   4024 L_360423A5:
   4025     PUSH32(esp, 0x361C0D9Cu); /* 0x360423A5: push 0x361c0d9c */
   4026     ecx = ebp + (-0x8); /* 0x360423AA: lea ecx, [ebp - 8] */
   4027     RECOMP_ICALL(0x36008EF0u); /* 0x360423AD: call 0x36008ef0 */ /* not lifted */
   4028     RECOMP_FLAGS_IN();
   4029     PUSH32(esp, 0x36184170u); /* 0x360423B2: push 0x36184170 */
   4030     edx = ebp + (-0x8); /* 0x360423B7: lea edx, [ebp - 8] */
   4031     PUSH32(esp, edx); /* 0x360423BA: push edx */
   4032     RECOMP_ICALL(0x3615FD70u); /* 0x360423BB: call 0x3615fd70 */ /* not lifted */
   4033     RECOMP_FLAGS_IN();
   4034     PUSH32(esp, esi); /* 0x360423C0: push esi */
   4035     esi = ecx; /* 0x360423C1: mov esi, ecx */
   4036     RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x360423C3: call dword ptr [0x3616ffd0] */
   4037     RECOMP_FLAGS_IN();
   4038     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4039     eax = 0; /* 0x360423C9: xor eax, eax */
   4040     _cf = 0;
   4041     _flag_k = FK_TEST;
   4042     MEM32(esi + 0x20) = eax; /* 0x360423CB: mov dword ptr [esi + 0x20], eax */
   4043     MEM8(esi + 0x24) = (uint8_t)(LO8(eax)); /* 0x360423CE: mov byte ptr [esi + 0x24], al */
   4044     MEM8(esi + 0x25) = (uint8_t)(LO8(eax)); /* 0x360423D1: mov byte ptr [esi + 0x25], al */
   4045     MEM32(esi) = 0x361709FCu; /* 0x360423D4: mov dword ptr [esi], 0x361709fc */
   4046     eax = esi; /* 0x360423DA: mov eax, esi */
   4047     esi = POP32_VAL(esp); /* 0x360423DC: pop esi */
   4048     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360423DD: ret  */
   4049     RECOMP_REGS_OUT();
   4050 }
   4051 
   4052 void sub_360423C0(void) {
   4053     int _fpu_cmp = 0;
   4054     uint32_t _cf = 0;
   4055     int _df = 1;
   4056     uint32_t _flag_k = FK_NONE;
   4057     uint32_t _flag_a = 0, _flag_b = 0;
   4058     uint32_t _itail_tgt = 0;
   4059     RECOMP_REGS_LOCALS
   4060     RECOMP_ENTER(0x360423C0u);
   4061 
   4062 L_360423C0:
   4063     PUSH32(esp, esi); /* 0x360423C0: push esi */
   4064     esi = ecx; /* 0x360423C1: mov esi, ecx */
   4065     RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x360423C3: call dword ptr [0x3616ffd0] */
   4066     RECOMP_FLAGS_IN();
   4067     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4068     eax = 0; /* 0x360423C9: xor eax, eax */
   4069     _cf = 0;
   4070     _flag_k = FK_TEST;
   4071     MEM32(esi + 0x20) = eax; /* 0x360423CB: mov dword ptr [esi + 0x20], eax */
   4072     MEM8(esi + 0x24) = (uint8_t)(LO8(eax)); /* 0x360423CE: mov byte ptr [esi + 0x24], al */
   4073     MEM8(esi + 0x25) = (uint8_t)(LO8(eax)); /* 0x360423D1: mov byte ptr [esi + 0x25], al */
   4074     MEM32(esi) = 0x361709FCu; /* 0x360423D4: mov dword ptr [esi], 0x361709fc */
   4075     eax = esi; /* 0x360423DA: mov eax, esi */
   4076     esi = POP32_VAL(esp); /* 0x360423DC: pop esi */
   4077     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360423DD: ret  */
   4078     RECOMP_REGS_OUT();
   4079 }
   4080 
   4081 void sub_360423E0(void) {
   4082     int _fpu_cmp = 0;
   4083     uint32_t _cf = 0;
   4084     int _df = 1;
   4085     uint32_t _flag_k = FK_NONE;
   4086     uint32_t _flag_a = 0, _flag_b = 0;
   4087     uint32_t _itail_tgt = 0;
   4088     RECOMP_REGS_LOCALS
   4089     RECOMP_ENTER(0x360423E0u);
   4090 
   4091 L_360423E0:
   4092     PUSH32(esp, ebp); /* 0x360423E0: push ebp */
   4093     ebp = esp; /* 0x360423E1: mov ebp, esp */
   4094     PUSH32(esp, esi); /* 0x360423E3: push esi */
   4095     esi = ecx; /* 0x360423E4: mov esi, ecx */
   4096     RECOMP_ICALL(0x36042410u); /* 0x360423E6: call 0x36042410 */ /* not lifted */
   4097     RECOMP_FLAGS_IN();
   4098     /* test MEM8(ebp + 0x8), 1 */ /* 0x360423EB: test byte ptr [ebp + 8], 1 */
   4099     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   4100     _cf = 0;
   4101     _flag_k = FK_NARROW(FK_TEST, 24);
   4102     if (TEST_Z(_flag_a, _flag_b)) goto L_360423FA; /* 0x360423EF: je 0x360423fa */
   4103 L_360423F1:
   4104     PUSH32(esp, esi); /* 0x360423F1: push esi */
   4105     RECOMP_ICALL(0x3615FCC4u); /* 0x360423F2: call 0x3615fcc4 */ /* not lifted */
   4106     RECOMP_FLAGS_IN();
   4107     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4108     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4109     esp = esp + 4; /* 0x360423F7: add esp, 4 */
   4110     _flag_k = FK_ADD;
   4111 L_360423FA:
   4112     eax = esi; /* 0x360423FA: mov eax, esi */
   4113     esi = POP32_VAL(esp); /* 0x360423FC: pop esi */
   4114     ebp = POP32_VAL(esp); /* 0x360423FD: pop ebp */
   4115     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360423FE: ret 4 */
   4116     RECOMP_REGS_OUT();
   4117 }
   4118 
   4119 void sub_36042410(void) {
   4120     int _fpu_cmp = 0;
   4121     uint32_t _cf = 0;
   4122     int _df = 1;
   4123     uint32_t _flag_k = FK_NONE;
   4124     uint32_t _flag_a = 0, _flag_b = 0;
   4125     uint32_t _itail_tgt = 0;
   4126     RECOMP_REGS_LOCALS
   4127     RECOMP_ENTER(0x36042410u);
   4128 
   4129 L_36042410:
   4130     PUSH32(esp, esi); /* 0x36042410: push esi */
   4131     esi = ecx; /* 0x36042411: mov esi, ecx */
   4132     eax = MEM32(esi + 0x20); /* 0x36042413: mov eax, dword ptr [esi + 0x20] */
   4133     MEM32(esi) = 0x361709FCu; /* 0x36042416: mov dword ptr [esi], 0x361709fc */
   4134     /* cmp eax, MEM32(0x361C0DB0) */ /* 0x3604241C: cmp eax, dword ptr [0x361c0db0] */
   4135     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(0x361C0DB0));
   4136     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4137     _flag_k = FK_CMP;
   4138     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604242E; /* 0x36042422: je 0x3604242e */
   4139 L_36042424:
   4140     PUSH32(esp, eax); /* 0x36042424: push eax */
   4141     RECOMP_ICALL(MEM32(0x3616F1A4)); /* 0x36042425: call dword ptr [0x3616f1a4] */
   4142     RECOMP_FLAGS_IN();
   4143     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4144     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4145     esp = esp + 4; /* 0x3604242B: add esp, 4 */
   4146     _flag_k = FK_ADD;
   4147 L_3604242E:
   4148     ecx = esi; /* 0x3604242E: mov ecx, esi */
   4149     RECOMP_ICALL(MEM32(0x3616FFD4)); /* 0x36042430: call dword ptr [0x3616ffd4] */
   4150     RECOMP_FLAGS_IN();
   4151     esi = POP32_VAL(esp); /* 0x36042436: pop esi */
   4152     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36042437: ret  */
   4153     RECOMP_REGS_OUT();
   4154 }
   4155 
   4156 void sub_36042440(void) {
   4157     int _fpu_cmp = 0;
   4158     uint32_t _cf = 0;
   4159     int _df = 1;
   4160     uint32_t _flag_k = FK_NONE;
   4161     uint32_t _flag_a = 0, _flag_b = 0;
   4162     uint32_t _itail_tgt = 0;
   4163     RECOMP_REGS_LOCALS
   4164     RECOMP_ENTER(0x36042440u);
   4165 
   4166 L_36042440:
   4167     PUSH32(esp, ebp); /* 0x36042440: push ebp */
   4168     ebp = esp; /* 0x36042441: mov ebp, esp */
   4169     PUSH32(esp, ebx); /* 0x36042443: push ebx */
   4170     PUSH32(esp, esi); /* 0x36042444: push esi */
   4171     PUSH32(esp, edi); /* 0x36042445: push edi */
   4172     edi = MEM32(ebp + 0x8); /* 0x36042446: mov edi, dword ptr [ebp + 8] */
   4173     eax = ebp + 0x8; /* 0x36042449: lea eax, [ebp + 8] */
   4174     esi = ecx; /* 0x3604244C: mov esi, ecx */
   4175     PUSH32(esp, eax); /* 0x3604244E: push eax */
   4176     ecx = edi; /* 0x3604244F: mov ecx, edi */
   4177     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x36042451: call dword ptr [0x3616fa8c] */
   4178     RECOMP_FLAGS_IN();
   4179     ecx = MEM32(ebp + 0x8); /* 0x36042457: mov ecx, dword ptr [ebp + 8] */
   4180     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4181     ecx = ecx + 1; /* 0x3604245A: inc ecx */
   4182     _flag_k = FK_INC;
   4183     PUSH32(esp, ecx); /* 0x3604245B: push ecx */
   4184     RECOMP_ICALL(MEM32(0x3616F1A0)); /* 0x3604245C: call dword ptr [0x3616f1a0] */
   4185     RECOMP_FLAGS_IN();
   4186     edx = MEM32(ebp + 0x8); /* 0x36042462: mov edx, dword ptr [ebp + 8] */
   4187     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4188     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4189     esp = esp + 4; /* 0x36042465: add esp, 4 */
   4190     _flag_k = FK_ADD;
   4191     PUSH32(esp, edx); /* 0x36042468: push edx */
   4192     PUSH32(esp, eax); /* 0x36042469: push eax */
   4193     ecx = edi; /* 0x3604246A: mov ecx, edi */
   4194     MEM32(esi + 0x20) = eax; /* 0x3604246C: mov dword ptr [esi + 0x20], eax */
   4195     RECOMP_ICALL(MEM32(0x3616FAC4)); /* 0x3604246F: call dword ptr [0x3616fac4] */
   4196     RECOMP_FLAGS_IN();
   4197     ecx = MEM32(ebp + 0x8); /* 0x36042475: mov ecx, dword ptr [ebp + 8] */
   4198     eax = MEM32(esi + 0x20); /* 0x36042478: mov eax, dword ptr [esi + 0x20] */
   4199     ebx = MEM32(0x3616FAE0); /* 0x3604247B: mov ebx, dword ptr [0x3616fae0] */
   4200     edx = esi + 0x24; /* 0x36042481: lea edx, [esi + 0x24] */
   4201     MEM8(eax + ecx) = (uint8_t)(0); /* 0x36042484: mov byte ptr [eax + ecx], 0 */
   4202     PUSH32(esp, edx); /* 0x36042488: push edx */
   4203     ecx = edi; /* 0x36042489: mov ecx, edi */
   4204     RECOMP_ICALL(ebx); /* 0x3604248B: call ebx */
   4205     RECOMP_FLAGS_IN();
   4206     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x25u);
   4207     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4208     esi = esi + 0x25u; /* 0x3604248D: add esi, 0x25 */
   4209     _flag_k = FK_ADD;
   4210     PUSH32(esp, esi); /* 0x36042490: push esi */
   4211     ecx = edi; /* 0x36042491: mov ecx, edi */
   4212     RECOMP_ICALL(ebx); /* 0x36042493: call ebx */
   4213     RECOMP_FLAGS_IN();
   4214     ecx = edi; /* 0x36042495: mov ecx, edi */
   4215     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36042497: call dword ptr [0x3616fadc] */
   4216     RECOMP_FLAGS_IN();
   4217     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   4218     _cf = (eax) != 0;
   4219     eax = (uint32_t)(-(int32_t)eax); /* 0x3604249D: neg eax */
   4220     _flag_k = FK_CMP;
   4221     edi = POP32_VAL(esp); /* 0x3604249F: pop edi */
   4222     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x360424A0: sbb eax, eax */
   4223       eax = _sc ? 0xFFFFFFFFu : 0;
   4224       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   4225       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   4226     esi = POP32_VAL(esp); /* 0x360424A2: pop esi */
   4227     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4228     eax = eax + 1; /* 0x360424A3: inc eax */
   4229     _flag_k = FK_INC;
   4230     ebx = POP32_VAL(esp); /* 0x360424A4: pop ebx */
   4231     ebp = POP32_VAL(esp); /* 0x360424A5: pop ebp */
   4232     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360424A6: ret 4 */
   4233     RECOMP_REGS_OUT();
   4234 }
   4235 
   4236 void sub_360424B0(void) {
   4237     int _fpu_cmp = 0;
   4238     uint32_t _cf = 0;
   4239     int _df = 1;
   4240     uint32_t _flag_k = FK_NONE;
   4241     uint32_t _flag_a = 0, _flag_b = 0;
   4242     uint32_t _itail_tgt = 0;
   4243     RECOMP_REGS_LOCALS
   4244     RECOMP_ENTER(0x360424B0u);
   4245 
   4246 L_360424B0:
   4247     PUSH32(esp, ebp); /* 0x360424B0: push ebp */
   4248     ebp = esp; /* 0x360424B1: mov ebp, esp */
   4249     PUSH32(esp, ebx); /* 0x360424B3: push ebx */
   4250     ebx = MEM32(ebp + 0x8); /* 0x360424B4: mov ebx, dword ptr [ebp + 8] */
   4251     PUSH32(esp, esi); /* 0x360424B7: push esi */
   4252     esi = ecx; /* 0x360424B8: mov esi, ecx */
   4253     PUSH32(esp, edi); /* 0x360424BA: push edi */
   4254     edi = MEM32(esi + 0x20); /* 0x360424BB: mov edi, dword ptr [esi + 0x20] */
   4255     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   4256     ecx = ecx | 0xFFFFFFFFu; /* 0x360424BE: or ecx, 0xffffffff */
   4257     _cf = 0;
   4258     _flag_k = FK_TEST;
   4259     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4260     eax = 0; /* 0x360424C1: xor eax, eax */
   4261     _cf = 0;
   4262     _flag_k = FK_TEST;
   4263     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x360424C3: repne scasb al, byte ptr es:[edi] */
   4264     ecx = ~ecx; /* 0x360424C5: not ecx */
   4265     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4266     ecx = ecx - 1; /* 0x360424C7: dec ecx */
   4267     _flag_k = FK_DEC;
   4268     PUSH32(esp, ecx); /* 0x360424C8: push ecx */
   4269     ecx = ebx; /* 0x360424C9: mov ecx, ebx */
   4270     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x360424CB: call dword ptr [0x3616faec] */
   4271     RECOMP_FLAGS_IN();
   4272     edx = MEM32(esi + 0x20); /* 0x360424D1: mov edx, dword ptr [esi + 0x20] */
   4273     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   4274     ecx = ecx | 0xFFFFFFFFu; /* 0x360424D4: or ecx, 0xffffffff */
   4275     _cf = 0;
   4276     _flag_k = FK_TEST;
   4277     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4278     eax = 0; /* 0x360424D7: xor eax, eax */
   4279     _cf = 0;
   4280     _flag_k = FK_TEST;
   4281     edi = edx; /* 0x360424D9: mov edi, edx */
   4282     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x360424DB: repne scasb al, byte ptr es:[edi] */
   4283     ecx = ~ecx; /* 0x360424DD: not ecx */
   4284     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4285     ecx = ecx - 1; /* 0x360424DF: dec ecx */
   4286     _flag_k = FK_DEC;
   4287     PUSH32(esp, ecx); /* 0x360424E0: push ecx */
   4288     PUSH32(esp, edx); /* 0x360424E1: push edx */
   4289     ecx = ebx; /* 0x360424E2: mov ecx, ebx */
   4290     RECOMP_ICALL(MEM32(0x3616FAB0)); /* 0x360424E4: call dword ptr [0x3616fab0] */
   4291     RECOMP_FLAGS_IN();
   4292     edi = MEM32(0x3616FAE8); /* 0x360424EA: mov edi, dword ptr [0x3616fae8] */
   4293     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4294     eax = 0; /* 0x360424F0: xor eax, eax */
   4295     _cf = 0;
   4296     _flag_k = FK_TEST;
   4297     SET_LO8(eax, MEM8(esi + 0x24)); /* 0x360424F2: mov al, byte ptr [esi + 0x24] */
   4298     ecx = ebx; /* 0x360424F5: mov ecx, ebx */
   4299     PUSH32(esp, eax); /* 0x360424F7: push eax */
   4300     RECOMP_ICALL(edi); /* 0x360424F8: call edi */
   4301     RECOMP_FLAGS_IN();
   4302     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4303     ecx = 0; /* 0x360424FA: xor ecx, ecx */
   4304     _cf = 0;
   4305     _flag_k = FK_TEST;
   4306     SET_LO8(ecx, MEM8(esi + 0x25)); /* 0x360424FC: mov cl, byte ptr [esi + 0x25] */
   4307     PUSH32(esp, ecx); /* 0x360424FF: push ecx */
   4308     ecx = ebx; /* 0x36042500: mov ecx, ebx */
   4309     RECOMP_ICALL(edi); /* 0x36042502: call edi */
   4310     RECOMP_FLAGS_IN();
   4311     edi = POP32_VAL(esp); /* 0x36042504: pop edi */
   4312     esi = POP32_VAL(esp); /* 0x36042505: pop esi */
   4313     ebx = POP32_VAL(esp); /* 0x36042506: pop ebx */
   4314     ebp = POP32_VAL(esp); /* 0x36042507: pop ebp */
   4315     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36042508: ret 4 */
   4316     RECOMP_REGS_OUT();
   4317 }
   4318 
   4319 void sub_36042510(void) {
   4320     int _fpu_cmp = 0;
   4321     uint32_t _cf = 0;
   4322     int _df = 1;
   4323     uint32_t _flag_k = FK_NONE;
   4324     uint32_t _flag_a = 0, _flag_b = 0;
   4325     uint32_t _itail_tgt = 0;
   4326     RECOMP_REGS_LOCALS
   4327     RECOMP_ENTER(0x36042510u);
   4328 
   4329 L_36042510:
   4330     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4331     eax = 0; /* 0x36042510: xor eax, eax */
   4332     _cf = 0;
   4333     _flag_k = FK_TEST;
   4334     SET_LO8(eax, MEM8(ecx + 0x25)); /* 0x36042512: mov al, byte ptr [ecx + 0x25] */
   4335     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4336     eax = eax - 1; /* 0x36042515: dec eax */
   4337     _flag_k = FK_DEC;
   4338     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_36042531; /* 0x36042516: je 0x36042531 */
   4339 L_36042518:
   4340     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4341     eax = 0; /* 0x36042518: xor eax, eax */
   4342     _cf = 0;
   4343     _flag_k = FK_TEST;
   4344     SET_LO8(eax, MEM8(ecx + 0x24)); /* 0x3604251A: mov al, byte ptr [ecx + 0x24] */
   4345     ecx = MEM32(ecx + 0x20); /* 0x3604251D: mov ecx, dword ptr [ecx + 0x20] */
   4346     PUSH32(esp, eax); /* 0x36042520: push eax */
   4347     PUSH32(esp, ecx); /* 0x36042521: push ecx */
   4348     RECOMP_ICALL(0x3601C590u); /* 0x36042522: call 0x3601c590 */ /* not lifted */
   4349     RECOMP_FLAGS_IN();
   4350     ecx = eax; /* 0x36042527: mov ecx, eax */
   4351     RECOMP_ICALL(0x3601C8C0u); /* 0x36042529: call 0x3601c8c0 */ /* not lifted */
   4352     RECOMP_FLAGS_IN();
   4353     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4354     eax = 0; /* 0x3604252E: xor eax, eax */
   4355     _cf = 0;
   4356     _flag_k = FK_TEST;
   4357     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36042530: ret  */
   4358 L_36042531:
   4359     edx = MEM32(ecx + 0x20); /* 0x36042531: mov edx, dword ptr [ecx + 0x20] */
   4360     PUSH32(esp, 0x3F11EB85u); /* 0x36042534: push 0x3f11eb85 */
   4361     PUSH32(esp, 0x3F000000u); /* 0x36042539: push 0x3f000000 */
   4362     PUSH32(esp, 0x40C00000u); /* 0x3604253E: push 0x40c00000 */
   4363     PUSH32(esp, 0xFu); /* 0x36042543: push 0xf */
   4364     PUSH32(esp, 0); /* 0x36042545: push 0 */
   4365     PUSH32(esp, edx); /* 0x36042547: push edx */
   4366     RECOMP_ICALL(0x3601C590u); /* 0x36042548: call 0x3601c590 */ /* not lifted */
   4367     RECOMP_FLAGS_IN();
   4368     ecx = eax; /* 0x3604254D: mov ecx, eax */
   4369     RECOMP_ICALL(0x3601DC80u); /* 0x3604254F: call 0x3601dc80 */ /* not lifted */
   4370     RECOMP_FLAGS_IN();
   4371     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4372     eax = 0; /* 0x36042554: xor eax, eax */
   4373     _cf = 0;
   4374     _flag_k = FK_TEST;
   4375     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36042556: ret  */
   4376     RECOMP_REGS_OUT();
   4377 }
   4378 
   4379 void sub_36042560(void) {
   4380     int _fpu_cmp = 0;
   4381     uint32_t _cf = 0;
   4382     int _df = 1;
   4383     uint32_t _flag_k = FK_NONE;
   4384     uint32_t _flag_a = 0, _flag_b = 0;
   4385     uint32_t _itail_tgt = 0;
   4386     RECOMP_REGS_LOCALS
   4387     RECOMP_ENTER(0x36042560u);
   4388 
   4389 L_36042560:
   4390     PUSH32(esp, esi); /* 0x36042560: push esi */
   4391     esi = ecx; /* 0x36042561: mov esi, ecx */
   4392     RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x36042563: call dword ptr [0x3616ffd0] */
   4393     RECOMP_FLAGS_IN();
   4394     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4395     eax = 0; /* 0x36042569: xor eax, eax */
   4396     _cf = 0;
   4397     _flag_k = FK_TEST;
   4398     MEM32(esi + 0x20) = eax; /* 0x3604256B: mov dword ptr [esi + 0x20], eax */
   4399     MEM32(esi + 0x24) = eax; /* 0x3604256E: mov dword ptr [esi + 0x24], eax */
   4400     MEM32(esi + 0x28) = eax; /* 0x36042571: mov dword ptr [esi + 0x28], eax */
   4401     MEM32(esi + 0x2C) = eax; /* 0x36042574: mov dword ptr [esi + 0x2c], eax */
   4402     MEM32(esi) = 0x36170A20u; /* 0x36042577: mov dword ptr [esi], 0x36170a20 */
   4403     eax = esi; /* 0x3604257D: mov eax, esi */
   4404     esi = POP32_VAL(esp); /* 0x3604257F: pop esi */
   4405     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36042580: ret  */
   4406     RECOMP_REGS_OUT();
   4407 }
   4408 
   4409 void sub_36042590(void) {
   4410     int _fpu_cmp = 0;
   4411     uint32_t _cf = 0;
   4412     int _df = 1;
   4413     uint32_t _flag_k = FK_NONE;
   4414     uint32_t _flag_a = 0, _flag_b = 0;
   4415     uint32_t _itail_tgt = 0;
   4416     RECOMP_REGS_LOCALS
   4417     RECOMP_ENTER(0x36042590u);
   4418 
   4419 L_36042590:
   4420     PUSH32(esp, ebp); /* 0x36042590: push ebp */
   4421     ebp = esp; /* 0x36042591: mov ebp, esp */
   4422     PUSH32(esp, esi); /* 0x36042593: push esi */
   4423     esi = ecx; /* 0x36042594: mov esi, ecx */
   4424     RECOMP_ICALL(0x360426C0u); /* 0x36042596: call 0x360426c0 */ /* not lifted */
   4425     RECOMP_FLAGS_IN();
   4426     /* test MEM8(ebp + 0x8), 1 */ /* 0x3604259B: test byte ptr [ebp + 8], 1 */
   4427     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   4428     _cf = 0;
   4429     _flag_k = FK_NARROW(FK_TEST, 24);
   4430     if (TEST_Z(_flag_a, _flag_b)) goto L_360425AA; /* 0x3604259F: je 0x360425aa */
   4431 L_360425A1:
   4432     PUSH32(esp, esi); /* 0x360425A1: push esi */
   4433     RECOMP_ICALL(0x3615FCC4u); /* 0x360425A2: call 0x3615fcc4 */ /* not lifted */
   4434     RECOMP_FLAGS_IN();
   4435     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4436     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4437     esp = esp + 4; /* 0x360425A7: add esp, 4 */
   4438     _flag_k = FK_ADD;
   4439 L_360425AA:
   4440     eax = esi; /* 0x360425AA: mov eax, esi */
   4441     esi = POP32_VAL(esp); /* 0x360425AC: pop esi */
   4442     ebp = POP32_VAL(esp); /* 0x360425AD: pop ebp */
   4443     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360425AE: ret 4 */
   4444     RECOMP_REGS_OUT();
   4445 }
   4446 
   4447 void sub_360425C0(void) {
   4448     int _fpu_cmp = 0;
   4449     uint32_t _cf = 0;
   4450     int _df = 1;
   4451     uint32_t _flag_k = FK_NONE;
   4452     uint32_t _flag_a = 0, _flag_b = 0;
   4453     uint32_t _itail_tgt = 0;
   4454     RECOMP_REGS_LOCALS
   4455     RECOMP_ENTER(0x360425C0u);
   4456 
   4457 L_360425C0:
   4458     PUSH32(esp, ebp); /* 0x360425C0: push ebp */
   4459     ebp = esp; /* 0x360425C1: mov ebp, esp */
   4460     PUSH32(esp, 0xFFFFFFFFu); /* 0x360425C3: push -1 */
   4461     PUSH32(esp, 0x36163D79u); /* 0x360425C5: push 0x36163d79 */
   4462     eax = MEM32(FS_BASE + (0)); /* 0x360425CA: mov eax, dword ptr fs:[0] */
   4463     PUSH32(esp, eax); /* 0x360425D0: push eax */
   4464     MEM32(FS_BASE + (0)) = esp; /* 0x360425D1: mov dword ptr fs:[0], esp */
   4465     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4466     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4467     esp = esp - 0x14u; /* 0x360425D8: sub esp, 0x14 */
   4468     _flag_k = FK_CMP;
   4469     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x360425DB: mov al, byte ptr [ebp + 0xb] */
   4470     PUSH32(esp, ebx); /* 0x360425DE: push ebx */
   4471     PUSH32(esp, esi); /* 0x360425DF: push esi */
   4472     ebx = ecx; /* 0x360425E0: mov ebx, ecx */
   4473     PUSH32(esp, edi); /* 0x360425E2: push edi */
   4474     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   4475     ecx = ecx | 0xFFFFFFFFu; /* 0x360425E3: or ecx, 0xffffffff */
   4476     _cf = 0;
   4477     _flag_k = FK_TEST;
   4478     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4479     esi = 0; /* 0x360425E6: xor esi, esi */
   4480     _cf = 0;
   4481     _flag_k = FK_TEST;
   4482     MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x360425E8: mov byte ptr [ebp - 0x20], al */
   4483     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4484     eax = 0; /* 0x360425EB: xor eax, eax */
   4485     _cf = 0;
   4486     _flag_k = FK_TEST;
   4487     edi = 0x361B427Cu; /* 0x360425ED: mov edi, 0x361b427c */
   4488     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x360425F2: repne scasb al, byte ptr es:[edi] */
   4489     ecx = ~ecx; /* 0x360425F4: not ecx */
   4490     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4491     ecx = ecx - 1; /* 0x360425F6: dec ecx */
   4492     _flag_k = FK_DEC;
   4493     edi = ecx; /* 0x360425F7: mov edi, ecx */
   4494     PUSH32(esp, 1); /* 0x360425F9: push 1 */
   4495     PUSH32(esp, edi); /* 0x360425FB: push edi */
   4496     ecx = ebp + (-0x20); /* 0x360425FC: lea ecx, [ebp - 0x20] */
   4497     MEM32(ebp + (-0x1C)) = esi; /* 0x360425FF: mov dword ptr [ebp - 0x1c], esi */
   4498     MEM32(ebp + (-0x18)) = esi; /* 0x36042602: mov dword ptr [ebp - 0x18], esi */
   4499     MEM32(ebp + (-0x14)) = esi; /* 0x36042605: mov dword ptr [ebp - 0x14], esi */
   4500     MEM32(ebp + (-0x10)) = edi; /* 0x36042608: mov dword ptr [ebp - 0x10], edi */
   4501     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x3604260B: call dword ptr [0x3616f00c] */
   4502     RECOMP_FLAGS_IN();
   4503     /* test LO8(eax), LO8(eax) */ /* 0x36042611: test al, al */
   4504     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4505     _cf = 0;
   4506     _flag_k = FK_NARROW(FK_TEST, 24);
   4507     if (TEST_Z(_flag_a, _flag_b)) goto L_3604263B; /* 0x36042613: je 0x3604263b */
   4508 L_36042615:
   4509     ecx = edi; /* 0x36042615: mov ecx, edi */
   4510     edi = MEM32(ebp + (-0x1C)); /* 0x36042617: mov edi, dword ptr [ebp - 0x1c] */
   4511     edx = ecx; /* 0x3604261A: mov edx, ecx */
   4512     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3604261C: shr ecx, 2 */
   4513     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4514     ecx = ecx >> 2u; /* 0x3604261C: shr ecx, 2 */
   4515     esi = 0x361B427Cu; /* 0x3604261F: mov esi, 0x361b427c */
   4516     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36042624: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   4517     ecx = edx; /* 0x36042626: mov ecx, edx */
   4518     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   4519     ecx = ecx & 3; /* 0x36042628: and ecx, 3 */
   4520     _cf = 0;
   4521     _flag_k = FK_TEST;
   4522     eax = edx; /* 0x3604262B: mov eax, edx */
   4523     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3604262D: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   4524     PUSH32(esp, eax); /* 0x3604262F: push eax */
   4525     ecx = ebp + (-0x20); /* 0x36042630: lea ecx, [ebp - 0x20] */
   4526     RECOMP_ICALL(MEM32(0x3616F044)); /* 0x36042633: call dword ptr [0x3616f044] */
   4527     RECOMP_FLAGS_IN();
   4528     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4529     esi = 0; /* 0x36042639: xor esi, esi */
   4530     _cf = 0;
   4531     _flag_k = FK_TEST;
   4532 L_3604263B:
   4533     edx = MEM32(ebp + 0x8); /* 0x3604263B: mov edx, dword ptr [ebp + 8] */
   4534     ecx = ebp + (-0x20); /* 0x3604263E: lea ecx, [ebp - 0x20] */
   4535     PUSH32(esp, ecx); /* 0x36042641: push ecx */
   4536     PUSH32(esp, edx); /* 0x36042642: push edx */
   4537     ecx = ebx; /* 0x36042643: mov ecx, ebx */
   4538     MEM32(ebp + (-0x4)) = esi; /* 0x36042645: mov dword ptr [ebp - 4], esi */
   4539     RECOMP_ICALL(MEM32(0x3616FC0C)); /* 0x36042648: call dword ptr [0x3616fc0c] */
   4540     RECOMP_FLAGS_IN();
   4541     eax = MEM32(ebp + (-0x1C)); /* 0x3604264E: mov eax, dword ptr [ebp - 0x1c] */
   4542     /* cmp eax, esi */ /* 0x36042651: cmp eax, esi */
   4543     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   4544     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4545     _flag_k = FK_CMP;
   4546     if (CMP_EQ(_flag_a, _flag_b)) goto L_36042671; /* 0x36042653: je 0x36042671 */
   4547 L_36042655:
   4548     ecx = eax + (-0x1); /* 0x36042655: lea ecx, [eax - 1] */
   4549     SET_LO8(eax, MEM8(ecx)); /* 0x36042658: mov al, byte ptr [ecx] */
   4550     /* test LO8(eax), LO8(eax) */ /* 0x3604265A: test al, al */
   4551     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4552     _cf = 0;
   4553     _flag_k = FK_NARROW(FK_TEST, 24);
   4554     if (TEST_Z(_flag_a, _flag_b)) goto L_36042668; /* 0x3604265C: je 0x36042668 */
   4555 L_3604265E:
   4556     /* cmp LO8(eax), 0xFFu */ /* 0x3604265E: cmp al, 0xff */
   4557     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   4558     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4559     _flag_k = FK_NARROW(FK_CMP, 24);
   4560     if (CMP_EQ(_flag_a, _flag_b)) goto L_36042668; /* 0x36042660: je 0x36042668 */
   4561 L_36042662:
   4562     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4563     SET_LO8(eax, LO8(eax) - 1); /* 0x36042662: dec al */
   4564     _flag_k = FK_NARROW(FK_DEC, 24);
   4565     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36042664: mov byte ptr [ecx], al */
   4566     goto L_36042671; /* 0x36042666: jmp 0x36042671 */
   4567 L_36042668:
   4568     PUSH32(esp, ecx); /* 0x36042668: push ecx */
   4569     RECOMP_ICALL(0x3615FCC4u); /* 0x36042669: call 0x3615fcc4 */ /* not lifted */
   4570     RECOMP_FLAGS_IN();
   4571     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4572     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4573     esp = esp + 4; /* 0x3604266E: add esp, 4 */
   4574     _flag_k = FK_ADD;
   4575 L_36042671:
   4576     eax = MEM32(ebp + 0x10); /* 0x36042671: mov eax, dword ptr [ebp + 0x10] */
   4577     MEM32(ebx + 0x20) = esi; /* 0x36042674: mov dword ptr [ebx + 0x20], esi */
   4578     MEM32(ebx + 0x24) = esi; /* 0x36042677: mov dword ptr [ebx + 0x24], esi */
   4579     MEM32(ebx + 0x28) = esi; /* 0x3604267A: mov dword ptr [ebx + 0x28], esi */
   4580     MEM32(ebx + 0x2C) = esi; /* 0x3604267D: mov dword ptr [ebx + 0x2c], esi */
   4581     MEM32(ebx) = 0x36170A20u; /* 0x36042680: mov dword ptr [ebx], 0x36170a20 */
   4582     ecx = MEM32(eax); /* 0x36042686: mov ecx, dword ptr [eax] */
   4583     MEM32(ebx + 0x28) = ecx; /* 0x36042688: mov dword ptr [ebx + 0x28], ecx */
   4584     edx = MEM32(eax + 0x4); /* 0x3604268B: mov edx, dword ptr [eax + 4] */
   4585     eax = MEM32(ebp + 0xC); /* 0x3604268E: mov eax, dword ptr [ebp + 0xc] */
   4586     MEM32(ebx + 0x2C) = edx; /* 0x36042691: mov dword ptr [ebx + 0x2c], edx */
   4587     ecx = MEM32(eax); /* 0x36042694: mov ecx, dword ptr [eax] */
   4588     MEM32(ebx + 0x20) = ecx; /* 0x36042696: mov dword ptr [ebx + 0x20], ecx */
   4589     edx = MEM32(eax + 0x4); /* 0x36042699: mov edx, dword ptr [eax + 4] */
   4590     eax = MEM32(ebp + 0x14); /* 0x3604269C: mov eax, dword ptr [ebp + 0x14] */
   4591     ecx = MEM32(ebp + (-0xC)); /* 0x3604269F: mov ecx, dword ptr [ebp - 0xc] */
   4592     edi = POP32_VAL(esp); /* 0x360426A2: pop edi */
   4593     MEM32(ebx + 0x30) = eax; /* 0x360426A3: mov dword ptr [ebx + 0x30], eax */
   4594     MEM32(ebx + 0x24) = edx; /* 0x360426A6: mov dword ptr [ebx + 0x24], edx */
   4595     MEM8(ebx + 0xC) = (uint8_t)(0); /* 0x360426A9: mov byte ptr [ebx + 0xc], 0 */
   4596     esi = POP32_VAL(esp); /* 0x360426AD: pop esi */
   4597     eax = ebx; /* 0x360426AE: mov eax, ebx */
   4598     ebx = POP32_VAL(esp); /* 0x360426B0: pop ebx */
   4599     MEM32(FS_BASE + (0)) = ecx; /* 0x360426B1: mov dword ptr fs:[0], ecx */
   4600     esp = ebp; /* 0x360426B8: mov esp, ebp */
   4601     ebp = POP32_VAL(esp); /* 0x360426BA: pop ebp */
   4602     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360426BB: ret 0x10 */
   4603     RECOMP_REGS_OUT();
   4604 }
   4605 
   4606 void sub_360426C0(void) {
   4607     int _fpu_cmp = 0;
   4608     uint32_t _cf = 0;
   4609     int _df = 1;
   4610     uint32_t _flag_k = FK_NONE;
   4611     uint32_t _flag_a = 0, _flag_b = 0;
   4612     uint32_t _itail_tgt = 0;
   4613     RECOMP_REGS_LOCALS
   4614     RECOMP_ENTER(0x360426C0u);
   4615 
   4616 L_360426C0:
   4617     MEM32(ecx) = 0x36170A20u; /* 0x360426C0: mov dword ptr [ecx], 0x36170a20 */
   4618 L_360426C6:
   4619     { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; }
   4620     { RECOMP_REGS_OUT(); return; } /* end of function */
   4621   _ljump:
   4622     switch (_itail_tgt) {
   4623       case 0x360426C0u: goto L_360426C0;
   4624       case 0x360426C6u: goto L_360426C6;
   4625       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4626     }
   4627     RECOMP_REGS_OUT();
   4628 }
   4629 
   4630 void sub_360426D0(void) {
   4631     int _fpu_cmp = 0;
   4632     uint32_t _cf = 0;
   4633     int _df = 1;
   4634     uint32_t _flag_k = FK_NONE;
   4635     uint32_t _flag_a = 0, _flag_b = 0;
   4636     uint32_t _itail_tgt = 0;
   4637     RECOMP_REGS_LOCALS
   4638     RECOMP_ENTER(0x360426D0u);
   4639 
   4640 L_360426D0:
   4641     PUSH32(esp, ebp); /* 0x360426D0: push ebp */
   4642     ebp = esp; /* 0x360426D1: mov ebp, esp */
   4643     PUSH32(esp, esi); /* 0x360426D3: push esi */
   4644     esi = ecx; /* 0x360426D4: mov esi, ecx */
   4645     PUSH32(esp, edi); /* 0x360426D6: push edi */
   4646     edi = MEM32(ebp + 0x8); /* 0x360426D7: mov edi, dword ptr [ebp + 8] */
   4647     eax = esi + 0x28; /* 0x360426DA: lea eax, [esi + 0x28] */
   4648     PUSH32(esp, eax); /* 0x360426DD: push eax */
   4649     PUSH32(esp, edi); /* 0x360426DE: push edi */
   4650     RECOMP_ICALL(0x3615B870u); /* 0x360426DF: call 0x3615b870 */ /* not lifted */
   4651     RECOMP_FLAGS_IN();
   4652     ecx = esi + 0x20; /* 0x360426E4: lea ecx, [esi + 0x20] */
   4653     PUSH32(esp, ecx); /* 0x360426E7: push ecx */
   4654     PUSH32(esp, edi); /* 0x360426E8: push edi */
   4655     RECOMP_ICALL(0x3615B870u); /* 0x360426E9: call 0x3615b870 */ /* not lifted */
   4656     RECOMP_FLAGS_IN();
   4657     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4658     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4659     esp = esp + 0x10u; /* 0x360426EE: add esp, 0x10 */
   4660     _flag_k = FK_ADD;
   4661     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u);
   4662     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4663     esi = esi + 0x30u; /* 0x360426F1: add esi, 0x30 */
   4664     _flag_k = FK_ADD;
   4665     PUSH32(esp, esi); /* 0x360426F4: push esi */
   4666     ecx = edi; /* 0x360426F5: mov ecx, edi */
   4667     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x360426F7: call dword ptr [0x3616fa8c] */
   4668     RECOMP_FLAGS_IN();
   4669     ecx = edi; /* 0x360426FD: mov ecx, edi */
   4670     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x360426FF: call dword ptr [0x3616fadc] */
   4671     RECOMP_FLAGS_IN();
   4672     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   4673     _cf = (eax) != 0;
   4674     eax = (uint32_t)(-(int32_t)eax); /* 0x36042705: neg eax */
   4675     _flag_k = FK_CMP;
   4676     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36042707: sbb eax, eax */
   4677       eax = _sc ? 0xFFFFFFFFu : 0;
   4678       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   4679       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   4680     edi = POP32_VAL(esp); /* 0x36042709: pop edi */
   4681     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4682     eax = eax + 1; /* 0x3604270A: inc eax */
   4683     _flag_k = FK_INC;
   4684     esi = POP32_VAL(esp); /* 0x3604270B: pop esi */
   4685     ebp = POP32_VAL(esp); /* 0x3604270C: pop ebp */
   4686     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604270D: ret 4 */
   4687     RECOMP_REGS_OUT();
   4688 }
   4689 
   4690 void sub_36042710(void) {
   4691     int _fpu_cmp = 0;
   4692     uint32_t _cf = 0;
   4693     int _df = 1;
   4694     uint32_t _flag_k = FK_NONE;
   4695     uint32_t _flag_a = 0, _flag_b = 0;
   4696     uint32_t _itail_tgt = 0;
   4697     RECOMP_REGS_LOCALS
   4698     RECOMP_ENTER(0x36042710u);
   4699 
   4700 L_36042710:
   4701     PUSH32(esp, ebp); /* 0x36042710: push ebp */
   4702     ebp = esp; /* 0x36042711: mov ebp, esp */
   4703     PUSH32(esp, esi); /* 0x36042713: push esi */
   4704     esi = ecx; /* 0x36042714: mov esi, ecx */
   4705     PUSH32(esp, edi); /* 0x36042716: push edi */
   4706     edi = MEM32(ebp + 0x8); /* 0x36042717: mov edi, dword ptr [ebp + 8] */
   4707     eax = esi + 0x28; /* 0x3604271A: lea eax, [esi + 0x28] */
   4708     PUSH32(esp, eax); /* 0x3604271D: push eax */
   4709     PUSH32(esp, edi); /* 0x3604271E: push edi */
   4710     RECOMP_ICALL(0x3615B840u); /* 0x3604271F: call 0x3615b840 */ /* not lifted */
   4711     RECOMP_FLAGS_IN();
   4712     ecx = esi + 0x20; /* 0x36042724: lea ecx, [esi + 0x20] */
   4713     PUSH32(esp, ecx); /* 0x36042727: push ecx */
   4714     PUSH32(esp, edi); /* 0x36042728: push edi */
   4715     RECOMP_ICALL(0x3615B840u); /* 0x36042729: call 0x3615b840 */ /* not lifted */
   4716     RECOMP_FLAGS_IN();
   4717     edx = MEM32(esi + 0x30); /* 0x3604272E: mov edx, dword ptr [esi + 0x30] */
   4718     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4719     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4720     esp = esp + 0x10u; /* 0x36042731: add esp, 0x10 */
   4721     _flag_k = FK_ADD;
   4722     PUSH32(esp, edx); /* 0x36042734: push edx */
   4723     ecx = edi; /* 0x36042735: mov ecx, edi */
   4724     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x36042737: call dword ptr [0x3616faec] */
   4725     RECOMP_FLAGS_IN();
   4726     edi = POP32_VAL(esp); /* 0x3604273D: pop edi */
   4727     esi = POP32_VAL(esp); /* 0x3604273E: pop esi */
   4728     ebp = POP32_VAL(esp); /* 0x3604273F: pop ebp */
   4729     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36042740: ret 4 */
   4730     RECOMP_REGS_OUT();
   4731 }
   4732 
   4733 void sub_36042750(void) {
   4734     int _fpu_cmp = 0;
   4735     uint32_t _cf = 0;
   4736     int _df = 1;
   4737     uint32_t _flag_k = FK_NONE;
   4738     uint32_t _flag_a = 0, _flag_b = 0;
   4739     uint32_t _itail_tgt = 0;
   4740     RECOMP_REGS_LOCALS
   4741     RECOMP_ENTER(0x36042750u);
   4742 
   4743 L_36042750:
   4744     PUSH32(esp, ebx); /* 0x36042750: push ebx */
   4745     PUSH32(esp, esi); /* 0x36042751: push esi */
   4746     PUSH32(esp, edi); /* 0x36042752: push edi */
   4747     PUSH32(esp, 0); /* 0x36042753: push 0 */
   4748     PUSH32(esp, 0x361B2CD8u); /* 0x36042755: push 0x361b2cd8 */
   4749     esi = ecx; /* 0x3604275A: mov esi, ecx */
   4750     PUSH32(esp, 0x361B2CC0u); /* 0x3604275C: push 0x361b2cc0 */
   4751     eax = esi + 0x4; /* 0x36042761: lea eax, [esi + 4] */
   4752     PUSH32(esp, 0); /* 0x36042764: push 0 */
   4753     PUSH32(esp, eax); /* 0x36042766: push eax */
   4754     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36042767: call dword ptr [0x3616ff70] */
   4755     RECOMP_FLAGS_IN();
   4756     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4757     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4758     esp = esp + 4; /* 0x3604276D: add esp, 4 */
   4759     _flag_k = FK_ADD;
   4760     PUSH32(esp, eax); /* 0x36042770: push eax */
   4761     RECOMP_ICALL(0x3615FD86u); /* 0x36042771: call 0x3615fd86 */ /* not lifted */
   4762     RECOMP_FLAGS_IN();
   4763     ebx = eax; /* 0x36042776: mov ebx, eax */
   4764     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4765     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4766     esp = esp + 0x14u; /* 0x36042778: add esp, 0x14 */
   4767     _flag_k = FK_ADD;
   4768     /* test ebx, ebx */ /* 0x3604277B: test ebx, ebx */
   4769     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   4770     _cf = 0;
   4771     _flag_k = FK_TEST;
   4772     if (TEST_Z(_flag_a, _flag_b)) goto L_360427C5; /* 0x3604277D: je 0x360427c5 */
   4773 L_3604277F:
   4774     eax = MEM32(esi + 0x28); /* 0x3604277F: mov eax, dword ptr [esi + 0x28] */
   4775     /* cmp eax, 0xC350u */ /* 0x36042782: cmp eax, 0xc350 */
   4776     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xC350u);
   4777     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4778     _flag_k = FK_CMP;
   4779     edi = esi + 0x28; /* 0x36042787: lea edi, [esi + 0x28] */
   4780     if (CMP_LE(_flag_a, _flag_b)) goto L_360427B1; /* 0x3604278A: jle 0x360427b1 */
   4781 L_3604278C:
   4782     PUSH32(esp, 0); /* 0x3604278C: push 0 */
   4783     PUSH32(esp, 0x361B2CF8u); /* 0x3604278E: push 0x361b2cf8 */
   4784     PUSH32(esp, 0x361B2CC0u); /* 0x36042793: push 0x361b2cc0 */
   4785     PUSH32(esp, 0); /* 0x36042798: push 0 */
   4786     PUSH32(esp, edi); /* 0x3604279A: push edi */
   4787     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3604279B: call dword ptr [0x3616ff70] */
   4788     RECOMP_FLAGS_IN();
   4789     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4790     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4791     esp = esp + 4; /* 0x360427A1: add esp, 4 */
   4792     _flag_k = FK_ADD;
   4793     PUSH32(esp, eax); /* 0x360427A4: push eax */
   4794     RECOMP_ICALL(0x3615FD86u); /* 0x360427A5: call 0x3615fd86 */ /* not lifted */
   4795     RECOMP_FLAGS_IN();
   4796     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4797     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4798     esp = esp + 0x14u; /* 0x360427AA: add esp, 0x14 */
   4799     _flag_k = FK_ADD;
   4800     /* test eax, eax */ /* 0x360427AD: test eax, eax */
   4801     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4802     _cf = 0;
   4803     _flag_k = FK_TEST;
   4804     if (TEST_Z(_flag_a, _flag_b)) goto L_360427C5; /* 0x360427AF: je 0x360427c5 */
   4805 L_360427B1:
   4806     ecx = MEM32(esi + 0x30); /* 0x360427B1: mov ecx, dword ptr [esi + 0x30] */
   4807     PUSH32(esp, ecx); /* 0x360427B4: push ecx */
   4808     ecx = MEM32(ebx + 0x150); /* 0x360427B5: mov ecx, dword ptr [ebx + 0x150] */
   4809     PUSH32(esp, edi); /* 0x360427BB: push edi */
   4810     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x20u);
   4811     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4812     esi = esi + 0x20u; /* 0x360427BC: add esi, 0x20 */
   4813     _flag_k = FK_ADD;
   4814     PUSH32(esp, esi); /* 0x360427BF: push esi */
   4815     RECOMP_ICALL(0x360614E0u); /* 0x360427C0: call 0x360614e0 */ /* not lifted */
   4816     RECOMP_FLAGS_IN();
   4817 L_360427C5:
   4818     edi = POP32_VAL(esp); /* 0x360427C5: pop edi */
   4819     esi = POP32_VAL(esp); /* 0x360427C6: pop esi */
   4820     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4821     eax = 0; /* 0x360427C7: xor eax, eax */
   4822     _cf = 0;
   4823     _flag_k = FK_TEST;
   4824     ebx = POP32_VAL(esp); /* 0x360427C9: pop ebx */
   4825     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360427CA: ret  */
   4826     RECOMP_REGS_OUT();
   4827 }
   4828 
   4829 void sub_360427D0(void) {
   4830     int _fpu_cmp = 0;
   4831     uint32_t _cf = 0;
   4832     int _df = 1;
   4833     uint32_t _flag_k = FK_NONE;
   4834     uint32_t _flag_a = 0, _flag_b = 0;
   4835     uint32_t _itail_tgt = 0;
   4836     RECOMP_REGS_LOCALS
   4837     RECOMP_ENTER(0x360427D0u);
   4838 
   4839 L_360427D0:
   4840     PUSH32(esp, esi); /* 0x360427D0: push esi */
   4841     esi = ecx; /* 0x360427D1: mov esi, ecx */
   4842     RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x360427D3: call dword ptr [0x3616ffd0] */
   4843     RECOMP_FLAGS_IN();
   4844     MEM32(esi) = 0x36170A44u; /* 0x360427D9: mov dword ptr [esi], 0x36170a44 */
   4845     eax = esi; /* 0x360427DF: mov eax, esi */
   4846     esi = POP32_VAL(esp); /* 0x360427E1: pop esi */
   4847     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360427E2: ret  */
   4848     RECOMP_REGS_OUT();
   4849 }
   4850 
   4851 void sub_360427F0(void) {
   4852     int _fpu_cmp = 0;
   4853     uint32_t _cf = 0;
   4854     int _df = 1;
   4855     uint32_t _flag_k = FK_NONE;
   4856     uint32_t _flag_a = 0, _flag_b = 0;
   4857     uint32_t _itail_tgt = 0;
   4858     RECOMP_REGS_LOCALS
   4859     RECOMP_ENTER(0x360427F0u);
   4860 
   4861 L_360427F0:
   4862     PUSH32(esp, ebp); /* 0x360427F0: push ebp */
   4863     ebp = esp; /* 0x360427F1: mov ebp, esp */
   4864     PUSH32(esp, esi); /* 0x360427F3: push esi */
   4865     esi = ecx; /* 0x360427F4: mov esi, ecx */
   4866     RECOMP_ICALL(0x36042820u); /* 0x360427F6: call 0x36042820 */ /* not lifted */
   4867     RECOMP_FLAGS_IN();
   4868     /* test MEM8(ebp + 0x8), 1 */ /* 0x360427FB: test byte ptr [ebp + 8], 1 */
   4869     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   4870     _cf = 0;
   4871     _flag_k = FK_NARROW(FK_TEST, 24);
   4872     if (TEST_Z(_flag_a, _flag_b)) goto L_3604280A; /* 0x360427FF: je 0x3604280a */
   4873 L_36042801:
   4874     PUSH32(esp, esi); /* 0x36042801: push esi */
   4875     RECOMP_ICALL(0x3615FCC4u); /* 0x36042802: call 0x3615fcc4 */ /* not lifted */
   4876     RECOMP_FLAGS_IN();
   4877     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4878     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4879     esp = esp + 4; /* 0x36042807: add esp, 4 */
   4880     _flag_k = FK_ADD;
   4881 L_3604280A:
   4882     eax = esi; /* 0x3604280A: mov eax, esi */
   4883     esi = POP32_VAL(esp); /* 0x3604280C: pop esi */
   4884     ebp = POP32_VAL(esp); /* 0x3604280D: pop ebp */
   4885     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604280E: ret 4 */
   4886     RECOMP_REGS_OUT();
   4887 }
   4888 
   4889 void sub_36042820(void) {
   4890     int _fpu_cmp = 0;
   4891     uint32_t _cf = 0;
   4892     int _df = 1;
   4893     uint32_t _flag_k = FK_NONE;
   4894     uint32_t _flag_a = 0, _flag_b = 0;
   4895     uint32_t _itail_tgt = 0;
   4896     RECOMP_REGS_LOCALS
   4897     RECOMP_ENTER(0x36042820u);
   4898 
   4899 L_36042820:
   4900     MEM32(ecx) = 0x36170A44u; /* 0x36042820: mov dword ptr [ecx], 0x36170a44 */
   4901 L_36042826:
   4902     { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; }
   4903     { RECOMP_REGS_OUT(); return; } /* end of function */
   4904   _ljump:
   4905     switch (_itail_tgt) {
   4906       case 0x36042820u: goto L_36042820;
   4907       case 0x36042826u: goto L_36042826;
   4908       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4909     }
   4910     RECOMP_REGS_OUT();
   4911 }
   4912 
   4913 void sub_36042830(void) {
   4914     int _fpu_cmp = 0;
   4915     uint32_t _cf = 0;
   4916     int _df = 1;
   4917     uint32_t _flag_k = FK_NONE;
   4918     uint32_t _flag_a = 0, _flag_b = 0;
   4919     uint32_t _itail_tgt = 0;
   4920     RECOMP_REGS_LOCALS
   4921     RECOMP_ENTER(0x36042830u);
   4922 
   4923 L_36042830:
   4924     PUSH32(esp, ebp); /* 0x36042830: push ebp */
   4925     ebp = esp; /* 0x36042831: mov ebp, esp */
   4926     ecx = MEM32(ebp + 0x8); /* 0x36042833: mov ecx, dword ptr [ebp + 8] */
   4927     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36042836: call dword ptr [0x3616fadc] */
   4928     RECOMP_FLAGS_IN();
   4929     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   4930     _cf = (eax) != 0;
   4931     eax = (uint32_t)(-(int32_t)eax); /* 0x3604283C: neg eax */
   4932     _flag_k = FK_CMP;
   4933     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x3604283E: sbb eax, eax */
   4934       eax = _sc ? 0xFFFFFFFFu : 0;
   4935       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   4936       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   4937     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4938     eax = eax + 1; /* 0x36042840: inc eax */
   4939     _flag_k = FK_INC;
   4940     ebp = POP32_VAL(esp); /* 0x36042841: pop ebp */
   4941     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36042842: ret 4 */
   4942     RECOMP_REGS_OUT();
   4943 }
   4944 
   4945 void sub_36042850(void) {
   4946     int _fpu_cmp = 0;
   4947     uint32_t _cf = 0;
   4948     int _df = 1;
   4949     uint32_t _flag_k = FK_NONE;
   4950     uint32_t _flag_a = 0, _flag_b = 0;
   4951     uint32_t _itail_tgt = 0;
   4952     RECOMP_REGS_LOCALS
   4953     RECOMP_ENTER(0x36042850u);
   4954 
   4955 L_36042850:
   4956     PUSH32(esp, esi); /* 0x36042850: push esi */
   4957     esi = MEM32(0x3616F18C); /* 0x36042851: mov esi, dword ptr [0x3616f18c] */
   4958     PUSH32(esp, 0x361C1018u); /* 0x36042857: push 0x361c1018 */
   4959     RECOMP_ICALL(esi); /* 0x3604285C: call esi */
   4960     RECOMP_FLAGS_IN();
   4961     eax = MEM32(0x3616FF74); /* 0x3604285E: mov eax, dword ptr [0x3616ff74] */
   4962     ecx = MEM32(eax); /* 0x36042863: mov ecx, dword ptr [eax] */
   4963     ecx = MEM32(ecx + 0x78); /* 0x36042865: mov ecx, dword ptr [ecx + 0x78] */
   4964     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4965     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4966     esp = esp + 4; /* 0x36042868: add esp, 4 */
   4967     _flag_k = FK_ADD;
   4968     /* test ecx, ecx */ /* 0x3604286B: test ecx, ecx */
   4969     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4970     _cf = 0;
   4971     _flag_k = FK_TEST;
   4972     if (TEST_Z(_flag_a, _flag_b)) goto L_36042877; /* 0x3604286D: je 0x36042877 */
   4973 L_3604286F:
   4974     RECOMP_ICALL(MEM32(0x3616FC14)); /* 0x3604286F: call dword ptr [0x3616fc14] */
   4975     RECOMP_FLAGS_IN();
   4976     goto L_36042881; /* 0x36042875: jmp 0x36042881 */
   4977 L_36042877:
   4978     PUSH32(esp, 0x361C0FB8u); /* 0x36042877: push 0x361c0fb8 */
   4979     RECOMP_ICALL(esi); /* 0x3604287C: call esi */
   4980     RECOMP_FLAGS_IN();
   4981     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4982     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4983     esp = esp + 4; /* 0x3604287E: add esp, 4 */
   4984     _flag_k = FK_ADD;
   4985 L_36042881:
   4986     PUSH32(esp, 0x361C0F88u); /* 0x36042881: push 0x361c0f88 */
   4987     RECOMP_ICALL(esi); /* 0x36042886: call esi */
   4988     RECOMP_FLAGS_IN();
   4989     RECOMP_ICALL(MEM32(0x3616FC10)); /* 0x36042888: call dword ptr [0x3616fc10] */
   4990     RECOMP_FLAGS_IN();
   4991     PUSH32(esp, 0x361C0F58u); /* 0x3604288E: push 0x361c0f58 */
   4992     RECOMP_ICALL(esi); /* 0x36042893: call esi */
   4993     RECOMP_FLAGS_IN();
   4994     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4995     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4996     esp = esp + 8; /* 0x36042895: add esp, 8 */
   4997     _flag_k = FK_ADD;
   4998     RECOMP_ICALL(0x3603F480u); /* 0x36042898: call 0x3603f480 */ /* not lifted */
   4999     RECOMP_FLAGS_IN();
   5000     ecx = eax; /* 0x3604289D: mov ecx, eax */
   5001     RECOMP_ICALL(0x3603F680u); /* 0x3604289F: call 0x3603f680 */ /* not lifted */
   5002     RECOMP_FLAGS_IN();
   5003     PUSH32(esp, 0x361C0F20u); /* 0x360428A4: push 0x361c0f20 */
   5004     RECOMP_ICALL(esi); /* 0x360428A9: call esi */
   5005     RECOMP_FLAGS_IN();
   5006     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5007     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5008     esp = esp + 4; /* 0x360428AB: add esp, 4 */
   5009     _flag_k = FK_ADD;
   5010     RECOMP_ICALL(0x360936A0u); /* 0x360428AE: call 0x360936a0 */ /* not lifted */
   5011     RECOMP_FLAGS_IN();
   5012     ecx = eax; /* 0x360428B3: mov ecx, eax */
   5013     RECOMP_ICALL(0x36092FD0u); /* 0x360428B5: call 0x36092fd0 */ /* not lifted */
   5014     RECOMP_FLAGS_IN();
   5015     PUSH32(esp, 0x361C0EE4u); /* 0x360428BA: push 0x361c0ee4 */
   5016     RECOMP_ICALL(esi); /* 0x360428BF: call esi */
   5017     RECOMP_FLAGS_IN();
   5018     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5019     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5020     esp = esp + 4; /* 0x360428C1: add esp, 4 */
   5021     _flag_k = FK_ADD;
   5022     RECOMP_ICALL(0x36089810u); /* 0x360428C4: call 0x36089810 */ /* not lifted */
   5023     RECOMP_FLAGS_IN();
   5024     ecx = eax; /* 0x360428C9: mov ecx, eax */
   5025     RECOMP_ICALL(0x360893B0u); /* 0x360428CB: call 0x360893b0 */ /* not lifted */
   5026     RECOMP_FLAGS_IN();
   5027     PUSH32(esp, 0x361C0E98u); /* 0x360428D0: push 0x361c0e98 */
   5028     RECOMP_ICALL(esi); /* 0x360428D5: call esi */
   5029     RECOMP_FLAGS_IN();
   5030     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5031     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5032     esp = esp + 4; /* 0x360428D7: add esp, 4 */
   5033     _flag_k = FK_ADD;
   5034     RECOMP_ICALL(MEM32(0x36170224)); /* 0x360428DA: call dword ptr [0x36170224] */
   5035     RECOMP_FLAGS_IN();
   5036     ecx = MEM32(0x3616F320); /* 0x360428E0: mov ecx, dword ptr [0x3616f320] */
   5037     edx = MEM32(eax); /* 0x360428E6: mov edx, dword ptr [eax] */
   5038     PUSH32(esp, ecx); /* 0x360428E8: push ecx */
   5039     ecx = eax; /* 0x360428E9: mov ecx, eax */
   5040     RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x360428EB: call dword ptr [edx + 0x20] */
   5041     RECOMP_FLAGS_IN();
   5042     PUSH32(esp, 0x361C0E6Cu); /* 0x360428EE: push 0x361c0e6c */
   5043     RECOMP_ICALL(esi); /* 0x360428F3: call esi */
   5044     RECOMP_FLAGS_IN();
   5045     RECOMP_ICALL(0x360640A0u); /* 0x360428F5: call 0x360640a0 */ /* not lifted */
   5046     RECOMP_FLAGS_IN();
   5047     PUSH32(esp, 0x361C0E3Cu); /* 0x360428FA: push 0x361c0e3c */
   5048     RECOMP_ICALL(esi); /* 0x360428FF: call esi */
   5049     RECOMP_FLAGS_IN();
   5050     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5051     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5052     esp = esp + 8; /* 0x36042901: add esp, 8 */
   5053     _flag_k = FK_ADD;
   5054     RECOMP_ICALL(0x360B3DC0u); /* 0x36042904: call 0x360b3dc0 */ /* not lifted */
   5055     RECOMP_FLAGS_IN();
   5056     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5057     eax = 0; /* 0x36042909: xor eax, eax */
   5058     _cf = 0;
   5059     _flag_k = FK_TEST;
   5060     esi = POP32_VAL(esp); /* 0x3604290B: pop esi */
   5061     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604290C: ret  */
   5062     RECOMP_REGS_OUT();
   5063 }
   5064 
   5065 void sub_36042910(void) {
   5066     int _fpu_cmp = 0;
   5067     uint32_t _cf = 0;
   5068     int _df = 1;
   5069     uint32_t _flag_k = FK_NONE;
   5070     uint32_t _flag_a = 0, _flag_b = 0;
   5071     uint32_t _itail_tgt = 0;
   5072     RECOMP_REGS_LOCALS
   5073     RECOMP_ENTER(0x36042910u);
   5074 
   5075 L_36042910:
   5076     PUSH32(esp, esi); /* 0x36042910: push esi */
   5077     esi = ecx; /* 0x36042911: mov esi, ecx */
   5078     RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x36042913: call dword ptr [0x3616ffd0] */
   5079     RECOMP_FLAGS_IN();
   5080     MEM32(esi) = 0x36170A68u; /* 0x36042919: mov dword ptr [esi], 0x36170a68 */
   5081     eax = esi; /* 0x3604291F: mov eax, esi */
   5082     esi = POP32_VAL(esp); /* 0x36042921: pop esi */
   5083     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36042922: ret  */
   5084     RECOMP_REGS_OUT();
   5085 }
   5086 
   5087 void sub_36042930(void) {
   5088     int _fpu_cmp = 0;
   5089     uint32_t _cf = 0;
   5090     int _df = 1;
   5091     uint32_t _flag_k = FK_NONE;
   5092     uint32_t _flag_a = 0, _flag_b = 0;
   5093     uint32_t _itail_tgt = 0;
   5094     RECOMP_REGS_LOCALS
   5095     RECOMP_ENTER(0x36042930u);
   5096 
   5097 L_36042930:
   5098     PUSH32(esp, ebp); /* 0x36042930: push ebp */
   5099     ebp = esp; /* 0x36042931: mov ebp, esp */
   5100     PUSH32(esp, esi); /* 0x36042933: push esi */
   5101     esi = ecx; /* 0x36042934: mov esi, ecx */
   5102     RECOMP_ICALL(0x36042960u); /* 0x36042936: call 0x36042960 */ /* not lifted */
   5103     RECOMP_FLAGS_IN();
   5104     /* test MEM8(ebp + 0x8), 1 */ /* 0x3604293B: test byte ptr [ebp + 8], 1 */
   5105     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   5106     _cf = 0;
   5107     _flag_k = FK_NARROW(FK_TEST, 24);
   5108     if (TEST_Z(_flag_a, _flag_b)) goto L_3604294A; /* 0x3604293F: je 0x3604294a */
   5109 L_36042941:
   5110     PUSH32(esp, esi); /* 0x36042941: push esi */
   5111     RECOMP_ICALL(0x3615FCC4u); /* 0x36042942: call 0x3615fcc4 */ /* not lifted */
   5112     RECOMP_FLAGS_IN();
   5113     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5114     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5115     esp = esp + 4; /* 0x36042947: add esp, 4 */
   5116     _flag_k = FK_ADD;
   5117 L_3604294A:
   5118     eax = esi; /* 0x3604294A: mov eax, esi */
   5119     esi = POP32_VAL(esp); /* 0x3604294C: pop esi */
   5120     ebp = POP32_VAL(esp); /* 0x3604294D: pop ebp */
   5121     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604294E: ret 4 */
   5122     RECOMP_REGS_OUT();
   5123 }
   5124 
   5125 void sub_36042960(void) {
   5126     int _fpu_cmp = 0;
   5127     uint32_t _cf = 0;
   5128     int _df = 1;
   5129     uint32_t _flag_k = FK_NONE;
   5130     uint32_t _flag_a = 0, _flag_b = 0;
   5131     uint32_t _itail_tgt = 0;
   5132     RECOMP_REGS_LOCALS
   5133     RECOMP_ENTER(0x36042960u);
   5134 
   5135 L_36042960:
   5136     MEM32(ecx) = 0x36170A68u; /* 0x36042960: mov dword ptr [ecx], 0x36170a68 */
   5137 L_36042966:
   5138     { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; }
   5139     { RECOMP_REGS_OUT(); return; } /* end of function */
   5140   _ljump:
   5141     switch (_itail_tgt) {
   5142       case 0x36042960u: goto L_36042960;
   5143       case 0x36042966u: goto L_36042966;
   5144       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   5145     }
   5146     RECOMP_REGS_OUT();
   5147 }
   5148 
   5149 void sub_36042970(void) {
   5150     int _fpu_cmp = 0;
   5151     uint32_t _cf = 0;
   5152     int _df = 1;
   5153     uint32_t _flag_k = FK_NONE;
   5154     uint32_t _flag_a = 0, _flag_b = 0;
   5155     uint32_t _itail_tgt = 0;
   5156     RECOMP_REGS_LOCALS
   5157     RECOMP_ENTER(0x36042970u);
   5158 
   5159 L_36042970:
   5160     PUSH32(esp, ebp); /* 0x36042970: push ebp */
   5161     ebp = esp; /* 0x36042971: mov ebp, esp */
   5162     PUSH32(esp, ebx); /* 0x36042973: push ebx */
   5163     PUSH32(esp, esi); /* 0x36042974: push esi */
   5164     esi = ecx; /* 0x36042975: mov esi, ecx */
   5165     PUSH32(esp, edi); /* 0x36042977: push edi */
   5166     edi = MEM32(ebp + 0x8); /* 0x36042978: mov edi, dword ptr [ebp + 8] */
   5167     eax = esi + 0x20; /* 0x3604297B: lea eax, [esi + 0x20] */
   5168     PUSH32(esp, eax); /* 0x3604297E: push eax */
   5169     ecx = edi; /* 0x3604297F: mov ecx, edi */
   5170     RECOMP_ICALL(MEM32(0x3616FAD0)); /* 0x36042981: call dword ptr [0x3616fad0] */
   5171     RECOMP_FLAGS_IN();
   5172     ebx = MEM32(0x3616FA8C); /* 0x36042987: mov ebx, dword ptr [0x3616fa8c] */
   5173     ecx = ebp + 0x8; /* 0x3604298D: lea ecx, [ebp + 8] */
   5174     PUSH32(esp, ecx); /* 0x36042990: push ecx */
   5175     ecx = edi; /* 0x36042991: mov ecx, edi */
   5176     RECOMP_ICALL(ebx); /* 0x36042993: call ebx */
   5177     RECOMP_FLAGS_IN();
   5178     edx = MEM32(ebp + 0x8); /* 0x36042995: mov edx, dword ptr [ebp + 8] */
   5179     eax = esi + 0x28; /* 0x36042998: lea eax, [esi + 0x28] */
   5180     PUSH32(esp, eax); /* 0x3604299B: push eax */
   5181     ecx = edi; /* 0x3604299C: mov ecx, edi */
   5182     MEM32(esi + 0x24) = edx; /* 0x3604299E: mov dword ptr [esi + 0x24], edx */
   5183     RECOMP_ICALL(ebx); /* 0x360429A1: call ebx */
   5184     RECOMP_FLAGS_IN();
   5185     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x2Cu);
   5186     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5187     esi = esi + 0x2Cu; /* 0x360429A3: add esi, 0x2c */
   5188     _flag_k = FK_ADD;
   5189     PUSH32(esp, esi); /* 0x360429A6: push esi */
   5190     ecx = edi; /* 0x360429A7: mov ecx, edi */
   5191     RECOMP_ICALL(ebx); /* 0x360429A9: call ebx */
   5192     RECOMP_FLAGS_IN();
   5193     ecx = edi; /* 0x360429AB: mov ecx, edi */
   5194     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x360429AD: call dword ptr [0x3616fadc] */
   5195     RECOMP_FLAGS_IN();
   5196     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   5197     _cf = (eax) != 0;
   5198     eax = (uint32_t)(-(int32_t)eax); /* 0x360429B3: neg eax */
   5199     _flag_k = FK_CMP;
   5200     edi = POP32_VAL(esp); /* 0x360429B5: pop edi */
   5201     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x360429B6: sbb eax, eax */
   5202       eax = _sc ? 0xFFFFFFFFu : 0;
   5203       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   5204       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   5205     esi = POP32_VAL(esp); /* 0x360429B8: pop esi */
   5206     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5207     eax = eax + 1; /* 0x360429B9: inc eax */
   5208     _flag_k = FK_INC;
   5209     ebx = POP32_VAL(esp); /* 0x360429BA: pop ebx */
   5210     ebp = POP32_VAL(esp); /* 0x360429BB: pop ebp */
   5211     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360429BC: ret 4 */
   5212     RECOMP_REGS_OUT();
   5213 }
   5214 
   5215 void sub_360429C0(void) {
   5216     int _fpu_cmp = 0;
   5217     uint32_t _cf = 0;
   5218     int _df = 1;
   5219     uint32_t _flag_k = FK_NONE;
   5220     uint32_t _flag_a = 0, _flag_b = 0;
   5221     uint32_t _itail_tgt = 0;
   5222     RECOMP_REGS_LOCALS
   5223     RECOMP_ENTER(0x360429C0u);
   5224 
   5225 L_360429C0:
   5226     PUSH32(esp, ebp); /* 0x360429C0: push ebp */
   5227     ebp = esp; /* 0x360429C1: mov ebp, esp */
   5228     PUSH32(esp, ebx); /* 0x360429C3: push ebx */
   5229     PUSH32(esp, esi); /* 0x360429C4: push esi */
   5230     esi = ecx; /* 0x360429C5: mov esi, ecx */
   5231     eax = MEM32(esi + 0x20); /* 0x360429C7: mov eax, dword ptr [esi + 0x20] */
   5232     PUSH32(esp, edi); /* 0x360429CA: push edi */
   5233     edi = MEM32(ebp + 0x8); /* 0x360429CB: mov edi, dword ptr [ebp + 8] */
   5234     PUSH32(esp, eax); /* 0x360429CE: push eax */
   5235     ecx = edi; /* 0x360429CF: mov ecx, edi */
   5236     RECOMP_ICALL(MEM32(0x3616FAD4)); /* 0x360429D1: call dword ptr [0x3616fad4] */
   5237     RECOMP_FLAGS_IN();
   5238     ecx = MEM32(esi + 0x24); /* 0x360429D7: mov ecx, dword ptr [esi + 0x24] */
   5239     ebx = MEM32(0x3616FAEC); /* 0x360429DA: mov ebx, dword ptr [0x3616faec] */
   5240     PUSH32(esp, ecx); /* 0x360429E0: push ecx */
   5241     ecx = edi; /* 0x360429E1: mov ecx, edi */
   5242     RECOMP_ICALL(ebx); /* 0x360429E3: call ebx */
   5243     RECOMP_FLAGS_IN();
   5244     edx = MEM32(esi + 0x28); /* 0x360429E5: mov edx, dword ptr [esi + 0x28] */
   5245     PUSH32(esp, edx); /* 0x360429E8: push edx */
   5246     ecx = edi; /* 0x360429E9: mov ecx, edi */
   5247     RECOMP_ICALL(ebx); /* 0x360429EB: call ebx */
   5248     RECOMP_FLAGS_IN();
   5249     eax = MEM32(esi + 0x2C); /* 0x360429ED: mov eax, dword ptr [esi + 0x2c] */
   5250     PUSH32(esp, eax); /* 0x360429F0: push eax */
   5251     ecx = edi; /* 0x360429F1: mov ecx, edi */
   5252     RECOMP_ICALL(ebx); /* 0x360429F3: call ebx */
   5253     RECOMP_FLAGS_IN();
   5254     edi = POP32_VAL(esp); /* 0x360429F5: pop edi */
   5255     esi = POP32_VAL(esp); /* 0x360429F6: pop esi */
   5256     ebx = POP32_VAL(esp); /* 0x360429F7: pop ebx */
   5257     ebp = POP32_VAL(esp); /* 0x360429F8: pop ebp */
   5258     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360429F9: ret 4 */
   5259     RECOMP_REGS_OUT();
   5260 }
   5261 
   5262 void sub_36042A00(void) {
   5263     int _fpu_cmp = 0;
   5264     uint32_t _cf = 0;
   5265     int _df = 1;
   5266     uint32_t _flag_k = FK_NONE;
   5267     uint32_t _flag_a = 0, _flag_b = 0;
   5268     uint32_t _itail_tgt = 0;
   5269     RECOMP_REGS_LOCALS
   5270     RECOMP_ENTER(0x36042A00u);
   5271 
   5272 L_36042A00:
   5273     eax = MEM32(ecx + 0x2C); /* 0x36042A00: mov eax, dword ptr [ecx + 0x2c] */
   5274     edx = MEM32(ecx + 0x28); /* 0x36042A03: mov edx, dword ptr [ecx + 0x28] */
   5275     PUSH32(esp, eax); /* 0x36042A06: push eax */
   5276     eax = MEM32(ecx + 0x24); /* 0x36042A07: mov eax, dword ptr [ecx + 0x24] */
   5277     ecx = MEM32(ecx + 0x20); /* 0x36042A0A: mov ecx, dword ptr [ecx + 0x20] */
   5278     PUSH32(esp, edx); /* 0x36042A0D: push edx */
   5279     PUSH32(esp, eax); /* 0x36042A0E: push eax */
   5280     PUSH32(esp, ecx); /* 0x36042A0F: push ecx */
   5281     RECOMP_ICALL(0x3600C230u); /* 0x36042A10: call 0x3600c230 */ /* not lifted */
   5282     RECOMP_FLAGS_IN();
   5283     ecx = eax; /* 0x36042A15: mov ecx, eax */
   5284     RECOMP_ICALL(0x3600C6F0u); /* 0x36042A17: call 0x3600c6f0 */ /* not lifted */
   5285     RECOMP_FLAGS_IN();
   5286     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5287     eax = 0; /* 0x36042A1C: xor eax, eax */
   5288     _cf = 0;
   5289     _flag_k = FK_TEST;
   5290     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36042A1E: ret  */
   5291     RECOMP_REGS_OUT();
   5292 }
   5293 
   5294 void sub_36042A20(void) {
   5295     int _fpu_cmp = 0;
   5296     uint32_t _cf = 0;
   5297     int _df = 1;
   5298     uint32_t _flag_k = FK_NONE;
   5299     uint32_t _flag_a = 0, _flag_b = 0;
   5300     uint32_t _itail_tgt = 0;
   5301     RECOMP_REGS_LOCALS
   5302     RECOMP_ENTER(0x36042A20u);
   5303 
   5304 L_36042A20:
   5305     PUSH32(esp, ebp); /* 0x36042A20: push ebp */
   5306     ebp = esp; /* 0x36042A21: mov ebp, esp */
   5307     PUSH32(esp, ecx); /* 0x36042A23: push ecx */
   5308     PUSH32(esp, esi); /* 0x36042A24: push esi */
   5309     esi = ecx; /* 0x36042A25: mov esi, ecx */
   5310     RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x36042A27: call dword ptr [0x3616ffd0] */
   5311     RECOMP_FLAGS_IN();
   5312     SET_LO8(eax, MEM8(ebp + (-0x1))); /* 0x36042A2D: mov al, byte ptr [ebp - 1] */
   5313     MEM8(esi + 0x20) = (uint8_t)(LO8(eax)); /* 0x36042A30: mov byte ptr [esi + 0x20], al */
   5314     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5315     eax = 0; /* 0x36042A33: xor eax, eax */
   5316     _cf = 0;
   5317     _flag_k = FK_TEST;
   5318     MEM32(esi + 0x24) = eax; /* 0x36042A35: mov dword ptr [esi + 0x24], eax */
   5319     MEM32(esi + 0x28) = eax; /* 0x36042A38: mov dword ptr [esi + 0x28], eax */
   5320     MEM32(esi + 0x2C) = eax; /* 0x36042A3B: mov dword ptr [esi + 0x2c], eax */
   5321     MEM32(esi + 0x30) = eax; /* 0x36042A3E: mov dword ptr [esi + 0x30], eax */
   5322     MEM32(esi + 0x34) = eax; /* 0x36042A41: mov dword ptr [esi + 0x34], eax */
   5323     MEM32(esi) = 0x36170A8Cu; /* 0x36042A44: mov dword ptr [esi], 0x36170a8c */
   5324     eax = esi; /* 0x36042A4A: mov eax, esi */
   5325     esi = POP32_VAL(esp); /* 0x36042A4C: pop esi */
   5326     esp = ebp; /* 0x36042A4D: mov esp, ebp */
   5327     ebp = POP32_VAL(esp); /* 0x36042A4F: pop ebp */
   5328     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36042A50: ret  */
   5329     RECOMP_REGS_OUT();
   5330 }
   5331 
   5332 void sub_36042A60(void) {
   5333     int _fpu_cmp = 0;
   5334     uint32_t _cf = 0;
   5335     int _df = 1;
   5336     uint32_t _flag_k = FK_NONE;
   5337     uint32_t _flag_a = 0, _flag_b = 0;
   5338     uint32_t _itail_tgt = 0;
   5339     RECOMP_REGS_LOCALS
   5340     RECOMP_ENTER(0x36042A60u);
   5341 
   5342 L_36042A60:
   5343     PUSH32(esp, ebp); /* 0x36042A60: push ebp */
   5344     ebp = esp; /* 0x36042A61: mov ebp, esp */
   5345     PUSH32(esp, esi); /* 0x36042A63: push esi */
   5346     esi = ecx; /* 0x36042A64: mov esi, ecx */
   5347     RECOMP_ICALL(0x36042A90u); /* 0x36042A66: call 0x36042a90 */ /* not lifted */
   5348     RECOMP_FLAGS_IN();
   5349     /* test MEM8(ebp + 0x8), 1 */ /* 0x36042A6B: test byte ptr [ebp + 8], 1 */
   5350     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   5351     _cf = 0;
   5352     _flag_k = FK_NARROW(FK_TEST, 24);
   5353     if (TEST_Z(_flag_a, _flag_b)) goto L_36042A7A; /* 0x36042A6F: je 0x36042a7a */
   5354 L_36042A71:
   5355     PUSH32(esp, esi); /* 0x36042A71: push esi */
   5356     RECOMP_ICALL(0x3615FCC4u); /* 0x36042A72: call 0x3615fcc4 */ /* not lifted */
   5357     RECOMP_FLAGS_IN();
   5358     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5359     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5360     esp = esp + 4; /* 0x36042A77: add esp, 4 */
   5361     _flag_k = FK_ADD;
   5362 L_36042A7A:
   5363     eax = esi; /* 0x36042A7A: mov eax, esi */
   5364     esi = POP32_VAL(esp); /* 0x36042A7C: pop esi */
   5365     ebp = POP32_VAL(esp); /* 0x36042A7D: pop ebp */
   5366     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36042A7E: ret 4 */
   5367     RECOMP_REGS_OUT();
   5368 }
   5369 
   5370 void sub_36042A90(void) {
   5371     int _fpu_cmp = 0;
   5372     uint32_t _cf = 0;
   5373     int _df = 1;
   5374     uint32_t _flag_k = FK_NONE;
   5375     uint32_t _flag_a = 0, _flag_b = 0;
   5376     uint32_t _itail_tgt = 0;
   5377     RECOMP_REGS_LOCALS
   5378     RECOMP_ENTER(0x36042A90u);
   5379 
   5380 L_36042A90:
   5381     PUSH32(esp, esi); /* 0x36042A90: push esi */
   5382     esi = ecx; /* 0x36042A91: mov esi, ecx */
   5383     MEM32(esi) = 0x36170A8Cu; /* 0x36042A93: mov dword ptr [esi], 0x36170a8c */
   5384     eax = MEM32(esi + 0x24); /* 0x36042A99: mov eax, dword ptr [esi + 0x24] */
   5385     /* test eax, eax */ /* 0x36042A9C: test eax, eax */
   5386     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5387     _cf = 0;
   5388     _flag_k = FK_TEST;
   5389     if (TEST_Z(_flag_a, _flag_b)) goto L_36042ABC; /* 0x36042A9E: je 0x36042abc */
   5390 L_36042AA0:
   5391     ecx = eax + (-0x1); /* 0x36042AA0: lea ecx, [eax - 1] */
   5392     SET_LO8(eax, MEM8(ecx)); /* 0x36042AA3: mov al, byte ptr [ecx] */
   5393     /* test LO8(eax), LO8(eax) */ /* 0x36042AA5: test al, al */
   5394     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5395     _cf = 0;
   5396     _flag_k = FK_NARROW(FK_TEST, 24);
   5397     if (TEST_Z(_flag_a, _flag_b)) goto L_36042AB3; /* 0x36042AA7: je 0x36042ab3 */
   5398 L_36042AA9:
   5399     /* cmp LO8(eax), 0xFFu */ /* 0x36042AA9: cmp al, 0xff */
   5400     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   5401     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5402     _flag_k = FK_NARROW(FK_CMP, 24);
   5403     if (CMP_EQ(_flag_a, _flag_b)) goto L_36042AB3; /* 0x36042AAB: je 0x36042ab3 */
   5404 L_36042AAD:
   5405     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5406     SET_LO8(eax, LO8(eax) - 1); /* 0x36042AAD: dec al */
   5407     _flag_k = FK_NARROW(FK_DEC, 24);
   5408     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36042AAF: mov byte ptr [ecx], al */
   5409     goto L_36042ABC; /* 0x36042AB1: jmp 0x36042abc */
   5410 L_36042AB3:
   5411     PUSH32(esp, ecx); /* 0x36042AB3: push ecx */
   5412     RECOMP_ICALL(0x3615FCC4u); /* 0x36042AB4: call 0x3615fcc4 */ /* not lifted */
   5413     RECOMP_FLAGS_IN();
   5414     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5415     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5416     esp = esp + 4; /* 0x36042AB9: add esp, 4 */
   5417     _flag_k = FK_ADD;
   5418 L_36042ABC:
   5419     ecx = esi; /* 0x36042ABC: mov ecx, esi */
   5420     MEM32(esi + 0x24) = 0; /* 0x36042ABE: mov dword ptr [esi + 0x24], 0 */
   5421     MEM32(esi + 0x28) = 0; /* 0x36042AC5: mov dword ptr [esi + 0x28], 0 */
   5422     MEM32(esi + 0x2C) = 0; /* 0x36042ACC: mov dword ptr [esi + 0x2c], 0 */
   5423     RECOMP_ICALL(MEM32(0x3616FFD4)); /* 0x36042AD3: call dword ptr [0x3616ffd4] */
   5424     RECOMP_FLAGS_IN();
   5425     esi = POP32_VAL(esp); /* 0x36042AD9: pop esi */
   5426     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36042ADA: ret  */
   5427     RECOMP_REGS_OUT();
   5428 }
   5429 
   5430 void sub_36042AE0(void) {
   5431     int _fpu_cmp = 0;
   5432     uint32_t _cf = 0;
   5433     int _df = 1;
   5434     uint32_t _flag_k = FK_NONE;
   5435     uint32_t _flag_a = 0, _flag_b = 0;
   5436     uint32_t _itail_tgt = 0;
   5437     RECOMP_REGS_LOCALS
   5438     RECOMP_ENTER(0x36042AE0u);
   5439 
   5440 L_36042AE0:
   5441     PUSH32(esp, ebp); /* 0x36042AE0: push ebp */
   5442     ebp = esp; /* 0x36042AE1: mov ebp, esp */
   5443     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5444     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5445     esp = esp - 0x10u; /* 0x36042AE3: sub esp, 0x10 */
   5446     _flag_k = FK_CMP;
   5447     PUSH32(esp, ebx); /* 0x36042AE6: push ebx */
   5448     PUSH32(esp, edi); /* 0x36042AE7: push edi */
   5449     edi = MEM32(ebp + 0x8); /* 0x36042AE8: mov edi, dword ptr [ebp + 8] */
   5450     ebx = ecx; /* 0x36042AEB: mov ebx, ecx */
   5451     eax = ebp + (-0x4); /* 0x36042AED: lea eax, [ebp - 4] */
   5452     PUSH32(esp, eax); /* 0x36042AF0: push eax */
   5453     ecx = edi; /* 0x36042AF1: mov ecx, edi */
   5454     MEM32(ebp + (-0x10)) = ebx; /* 0x36042AF3: mov dword ptr [ebp - 0x10], ebx */
   5455     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x36042AF6: call dword ptr [0x3616fa8c] */
   5456     RECOMP_FLAGS_IN();
   5457     eax = MEM32(ebp + (-0x4)); /* 0x36042AFC: mov eax, dword ptr [ebp - 4] */
   5458     /* cmp eax, 0x3E8u */ /* 0x36042AFF: cmp eax, 0x3e8 */
   5459     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3E8u);
   5460     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5461     _flag_k = FK_CMP;
   5462     if (CMP_LE(_flag_a, _flag_b)) goto L_36042B13; /* 0x36042B04: jle 0x36042b13 */
   5463 L_36042B06:
   5464     edi = POP32_VAL(esp); /* 0x36042B06: pop edi */
   5465     eax = 1; /* 0x36042B07: mov eax, 1 */
   5466     ebx = POP32_VAL(esp); /* 0x36042B0C: pop ebx */
   5467     esp = ebp; /* 0x36042B0D: mov esp, ebp */
   5468     ebp = POP32_VAL(esp); /* 0x36042B0F: pop ebp */
   5469     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36042B10: ret 4 */
   5470 L_36042B13:
   5471     /* test eax, eax */ /* 0x36042B13: test eax, eax */
   5472     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5473     _cf = 0;
   5474     _flag_k = FK_TEST;
   5475     if (TEST_G(_flag_a, _flag_b)) goto L_36042B24; /* 0x36042B15: jg 0x36042b24 */
   5476 L_36042B17:
   5477     edi = POP32_VAL(esp); /* 0x36042B17: pop edi */
   5478     eax = 1; /* 0x36042B18: mov eax, 1 */
   5479     ebx = POP32_VAL(esp); /* 0x36042B1D: pop ebx */
   5480     esp = ebp; /* 0x36042B1E: mov esp, ebp */
   5481     ebp = POP32_VAL(esp); /* 0x36042B20: pop ebp */
   5482     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36042B21: ret 4 */
   5483 L_36042B24:
   5484     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5485     eax = eax + 1; /* 0x36042B24: inc eax */
   5486     _flag_k = FK_INC;
   5487     PUSH32(esp, esi); /* 0x36042B25: push esi */
   5488     PUSH32(esp, eax); /* 0x36042B26: push eax */
   5489     RECOMP_ICALL(0x3615FD6Au); /* 0x36042B27: call 0x3615fd6a */ /* not lifted */
   5490     RECOMP_FLAGS_IN();
   5491     ecx = MEM32(ebp + (-0x4)); /* 0x36042B2C: mov ecx, dword ptr [ebp - 4] */
   5492     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5493     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5494     esp = esp + 4; /* 0x36042B2F: add esp, 4 */
   5495     _flag_k = FK_ADD;
   5496     esi = eax; /* 0x36042B32: mov esi, eax */
   5497     PUSH32(esp, ecx); /* 0x36042B34: push ecx */
   5498     PUSH32(esp, esi); /* 0x36042B35: push esi */
   5499     ecx = edi; /* 0x36042B36: mov ecx, edi */
   5500     MEM32(ebp + (-0xC)) = esi; /* 0x36042B38: mov dword ptr [ebp - 0xc], esi */
   5501     RECOMP_ICALL(MEM32(0x3616FAC4)); /* 0x36042B3B: call dword ptr [0x3616fac4] */
   5502     RECOMP_FLAGS_IN();
   5503     edx = MEM32(ebp + (-0x4)); /* 0x36042B41: mov edx, dword ptr [ebp - 4] */
   5504     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   5505     ecx = ecx | 0xFFFFFFFFu; /* 0x36042B44: or ecx, 0xffffffff */
   5506     _cf = 0;
   5507     _flag_k = FK_TEST;
   5508     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5509     eax = 0; /* 0x36042B47: xor eax, eax */
   5510     _cf = 0;
   5511     _flag_k = FK_TEST;
   5512     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u);
   5513     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5514     ebx = ebx + 0x20u; /* 0x36042B49: add ebx, 0x20 */
   5515     _flag_k = FK_ADD;
   5516     edi = esi; /* 0x36042B4C: mov edi, esi */
   5517     MEM8(esi + edx) = (uint8_t)(0); /* 0x36042B4E: mov byte ptr [esi + edx], 0 */
   5518     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x36042B52: repne scasb al, byte ptr es:[edi] */
   5519     ecx = ~ecx; /* 0x36042B54: not ecx */
   5520     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   5521     ecx = ecx - 1; /* 0x36042B56: dec ecx */
   5522     _flag_k = FK_DEC;
   5523     edi = ecx; /* 0x36042B57: mov edi, ecx */
   5524     /* cmp edi, 0xFFFFFFFDu */ /* 0x36042B59: cmp edi, -3 */
   5525     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFDu);
   5526     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5527     _flag_k = FK_CMP;
   5528     MEM32(ebp + (-0x8)) = edi; /* 0x36042B5C: mov dword ptr [ebp - 8], edi */
   5529     if (CMP_BE(_flag_a, _flag_b)) goto L_36042B67; /* 0x36042B5F: jbe 0x36042b67 */
   5530 L_36042B61:
   5531     RECOMP_ICALL(MEM32(0x3616F104)); /* 0x36042B61: call dword ptr [0x3616f104] */
   5532     RECOMP_FLAGS_IN();
   5533 L_36042B67:
   5534     ecx = MEM32(ebx + 0x4); /* 0x36042B67: mov ecx, dword ptr [ebx + 4] */
   5535     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5536     edx = 0; /* 0x36042B6A: xor edx, edx */
   5537     _cf = 0;
   5538     _flag_k = FK_TEST;
   5539     /* cmp ecx, edx */ /* 0x36042B6C: cmp ecx, edx */
   5540     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   5541     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5542     _flag_k = FK_CMP;
   5543     MEM32(ebx + 0x8) = edx; /* 0x36042B6E: mov dword ptr [ebx + 8], edx */
   5544     if (CMP_EQ(_flag_a, _flag_b)) goto L_36042B92; /* 0x36042B71: je 0x36042b92 */
   5545 L_36042B73:
   5546     SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x36042B73: mov al, byte ptr [ecx - 1] */
   5547     /* test LO8(eax), LO8(eax) */ /* 0x36042B76: test al, al */
   5548     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5549     _cf = 0;
   5550     _flag_k = FK_NARROW(FK_TEST, 24);
   5551     if (TEST_Z(_flag_a, _flag_b)) goto L_36042B92; /* 0x36042B78: je 0x36042b92 */
   5552 L_36042B7A:
   5553     /* cmp LO8(eax), 0xFFu */ /* 0x36042B7A: cmp al, 0xff */
   5554     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   5555     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5556     _flag_k = FK_NARROW(FK_CMP, 24);
   5557     if (CMP_EQ(_flag_a, _flag_b)) goto L_36042B92; /* 0x36042B7C: je 0x36042b92 */
   5558 L_36042B7E:
   5559     /* cmp edi, edx */ /* 0x36042B7E: cmp edi, edx */
   5560     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
   5561     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5562     _flag_k = FK_CMP;
   5563     if (CMP_NE(_flag_a, _flag_b)) goto L_36042BB8; /* 0x36042B80: jne 0x36042bb8 */
   5564 L_36042B82:
   5565     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5566     SET_LO8(eax, LO8(eax) - 1); /* 0x36042B82: dec al */
   5567     _flag_k = FK_NARROW(FK_DEC, 24);
   5568     MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x36042B84: mov byte ptr [ecx - 1], al */
   5569     MEM32(ebx + 0x4) = edx; /* 0x36042B87: mov dword ptr [ebx + 4], edx */
   5570     MEM32(ebx + 0x8) = edx; /* 0x36042B8A: mov dword ptr [ebx + 8], edx */
   5571     MEM32(ebx + 0xC) = edx; /* 0x36042B8D: mov dword ptr [ebx + 0xc], edx */
   5572     goto L_36042BE4; /* 0x36042B90: jmp 0x36042be4 */
   5573 L_36042B92:
   5574     /* cmp edi, edx */ /* 0x36042B92: cmp edi, edx */
   5575     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
   5576     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5577     _flag_k = FK_CMP;
   5578     if (CMP_NE(_flag_a, _flag_b)) goto L_36042BA2; /* 0x36042B94: jne 0x36042ba2 */
   5579 L_36042B96:
   5580     PUSH32(esp, 1); /* 0x36042B96: push 1 */
   5581     ecx = ebx; /* 0x36042B98: mov ecx, ebx */
   5582     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36042B9A: call dword ptr [0x3616f100] */
   5583     RECOMP_FLAGS_IN();
   5584     goto L_36042BE4; /* 0x36042BA0: jmp 0x36042be4 */
   5585 L_36042BA2:
   5586     eax = MEM32(ebx + 0xC); /* 0x36042BA2: mov eax, dword ptr [ebx + 0xc] */
   5587     /* cmp eax, 0x1Fu */ /* 0x36042BA5: cmp eax, 0x1f */
   5588     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Fu);
   5589     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5590     _flag_k = FK_CMP;
   5591     if (CMP_A(_flag_a, _flag_b)) goto L_36042BAE; /* 0x36042BA8: ja 0x36042bae */
   5592 L_36042BAA:
   5593     /* cmp eax, edi */ /* 0x36042BAA: cmp eax, edi */
   5594     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   5595     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5596     _flag_k = FK_CMP;
   5597     if (CMP_AE(_flag_a, _flag_b)) goto L_36042BC1; /* 0x36042BAC: jae 0x36042bc1 */
   5598 L_36042BAE:
   5599     PUSH32(esp, 1); /* 0x36042BAE: push 1 */
   5600     ecx = ebx; /* 0x36042BB0: mov ecx, ebx */
   5601     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36042BB2: call dword ptr [0x3616f100] */
   5602     RECOMP_FLAGS_IN();
   5603 L_36042BB8:
   5604     PUSH32(esp, edi); /* 0x36042BB8: push edi */
   5605     ecx = ebx; /* 0x36042BB9: mov ecx, ebx */
   5606     RECOMP_ICALL(MEM32(0x3616F048)); /* 0x36042BBB: call dword ptr [0x3616f048] */
   5607     RECOMP_FLAGS_IN();
   5608 L_36042BC1:
   5609     ecx = edi; /* 0x36042BC1: mov ecx, edi */
   5610     edi = MEM32(ebx + 0x4); /* 0x36042BC3: mov edi, dword ptr [ebx + 4] */
   5611     eax = ecx; /* 0x36042BC6: mov eax, ecx */
   5612     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36042BC8: shr ecx, 2 */
   5613     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5614     ecx = ecx >> 2u; /* 0x36042BC8: shr ecx, 2 */
   5615     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36042BCB: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   5616     ecx = eax; /* 0x36042BCD: mov ecx, eax */
   5617     eax = MEM32(ebp + (-0x8)); /* 0x36042BCF: mov eax, dword ptr [ebp - 8] */
   5618     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   5619     ecx = ecx & 3; /* 0x36042BD2: and ecx, 3 */
   5620     _cf = 0;
   5621     _flag_k = FK_TEST;
   5622     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36042BD5: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   5623     ecx = MEM32(ebx + 0x4); /* 0x36042BD7: mov ecx, dword ptr [ebx + 4] */
   5624     esi = MEM32(ebp + (-0xC)); /* 0x36042BDA: mov esi, dword ptr [ebp - 0xc] */
   5625     MEM32(ebx + 0x8) = eax; /* 0x36042BDD: mov dword ptr [ebx + 8], eax */
   5626     MEM8(eax + ecx) = (uint8_t)(0); /* 0x36042BE0: mov byte ptr [eax + ecx], 0 */
   5627 L_36042BE4:
   5628     PUSH32(esp, esi); /* 0x36042BE4: push esi */
   5629     RECOMP_ICALL(0x3615FCC4u); /* 0x36042BE5: call 0x3615fcc4 */ /* not lifted */
   5630     RECOMP_FLAGS_IN();
   5631     edx = MEM32(ebp + (-0x10)); /* 0x36042BEA: mov edx, dword ptr [ebp - 0x10] */
   5632     esi = MEM32(ebp + 0x8); /* 0x36042BED: mov esi, dword ptr [ebp + 8] */
   5633     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x30u);
   5634     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5635     edx = edx + 0x30u; /* 0x36042BF0: add edx, 0x30 */
   5636     _flag_k = FK_ADD;
   5637     PUSH32(esp, edx); /* 0x36042BF3: push edx */
   5638     PUSH32(esp, esi); /* 0x36042BF4: push esi */
   5639     RECOMP_ICALL(0x3615B870u); /* 0x36042BF5: call 0x3615b870 */ /* not lifted */
   5640     RECOMP_FLAGS_IN();
   5641     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5642     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5643     esp = esp + 0xCu; /* 0x36042BFA: add esp, 0xc */
   5644     _flag_k = FK_ADD;
   5645     ecx = esi; /* 0x36042BFD: mov ecx, esi */
   5646     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36042BFF: call dword ptr [0x3616fadc] */
   5647     RECOMP_FLAGS_IN();
   5648     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   5649     _cf = (eax) != 0;
   5650     eax = (uint32_t)(-(int32_t)eax); /* 0x36042C05: neg eax */
   5651     _flag_k = FK_CMP;
   5652     esi = POP32_VAL(esp); /* 0x36042C07: pop esi */
   5653     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36042C08: sbb eax, eax */
   5654       eax = _sc ? 0xFFFFFFFFu : 0;
   5655       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   5656       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   5657     edi = POP32_VAL(esp); /* 0x36042C0A: pop edi */
   5658     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5659     eax = eax + 1; /* 0x36042C0B: inc eax */
   5660     _flag_k = FK_INC;
   5661     ebx = POP32_VAL(esp); /* 0x36042C0C: pop ebx */
   5662     esp = ebp; /* 0x36042C0D: mov esp, ebp */
   5663     ebp = POP32_VAL(esp); /* 0x36042C0F: pop ebp */
   5664     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36042C10: ret 4 */
   5665     RECOMP_REGS_OUT();
   5666 }
   5667 
   5668 void sub_36042C20(void) {
   5669     int _fpu_cmp = 0;
   5670     uint32_t _cf = 0;
   5671     int _df = 1;
   5672     uint32_t _flag_k = FK_NONE;
   5673     uint32_t _flag_a = 0, _flag_b = 0;
   5674     uint32_t _itail_tgt = 0;
   5675     RECOMP_REGS_LOCALS
   5676     RECOMP_ENTER(0x36042C20u);
   5677 
   5678 L_36042C20:
   5679     PUSH32(esp, ebp); /* 0x36042C20: push ebp */
   5680     ebp = esp; /* 0x36042C21: mov ebp, esp */
   5681     PUSH32(esp, ebx); /* 0x36042C23: push ebx */
   5682     PUSH32(esp, esi); /* 0x36042C24: push esi */
   5683     ebx = ecx; /* 0x36042C25: mov ebx, ecx */
   5684     esi = MEM32(ebx + 0x28); /* 0x36042C27: mov esi, dword ptr [ebx + 0x28] */
   5685     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   5686     esi = esi + 1; /* 0x36042C2A: inc esi */
   5687     _flag_k = FK_INC;
   5688     /* cmp esi, 0x3E8u */ /* 0x36042C2B: cmp esi, 0x3e8 */
   5689     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x3E8u);
   5690     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5691     _flag_k = FK_CMP;
   5692     if (CMP_G(_flag_a, _flag_b)) goto L_36042C68; /* 0x36042C31: jg 0x36042c68 */
   5693 L_36042C33:
   5694     /* test esi, esi */ /* 0x36042C33: test esi, esi */
   5695     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   5696     _cf = 0;
   5697     _flag_k = FK_TEST;
   5698     if (TEST_LE(_flag_a, _flag_b)) goto L_36042C68; /* 0x36042C35: jle 0x36042c68 */
   5699 L_36042C37:
   5700     PUSH32(esp, edi); /* 0x36042C37: push edi */
   5701     edi = MEM32(ebp + 0x8); /* 0x36042C38: mov edi, dword ptr [ebp + 8] */
   5702     PUSH32(esp, esi); /* 0x36042C3B: push esi */
   5703     ecx = edi; /* 0x36042C3C: mov ecx, edi */
   5704     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x36042C3E: call dword ptr [0x3616faec] */
   5705     RECOMP_FLAGS_IN();
   5706     eax = MEM32(ebx + 0x24); /* 0x36042C44: mov eax, dword ptr [ebx + 0x24] */
   5707     /* test eax, eax */ /* 0x36042C47: test eax, eax */
   5708     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5709     _cf = 0;
   5710     _flag_k = FK_TEST;
   5711     if (TEST_NZ(_flag_a, _flag_b)) goto L_36042C50; /* 0x36042C49: jne 0x36042c50 */
   5712 L_36042C4B:
   5713     eax = MEM32(0x3616F10C); /* 0x36042C4B: mov eax, dword ptr [0x3616f10c] */
   5714 L_36042C50:
   5715     PUSH32(esp, esi); /* 0x36042C50: push esi */
   5716     PUSH32(esp, eax); /* 0x36042C51: push eax */
   5717     ecx = edi; /* 0x36042C52: mov ecx, edi */
   5718     RECOMP_ICALL(MEM32(0x3616FAB0)); /* 0x36042C54: call dword ptr [0x3616fab0] */
   5719     RECOMP_FLAGS_IN();
   5720     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x30u);
   5721     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5722     ebx = ebx + 0x30u; /* 0x36042C5A: add ebx, 0x30 */
   5723     _flag_k = FK_ADD;
   5724     PUSH32(esp, ebx); /* 0x36042C5D: push ebx */
   5725     PUSH32(esp, edi); /* 0x36042C5E: push edi */
   5726     RECOMP_ICALL(0x3615B840u); /* 0x36042C5F: call 0x3615b840 */ /* not lifted */
   5727     RECOMP_FLAGS_IN();
   5728     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5729     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5730     esp = esp + 8; /* 0x36042C64: add esp, 8 */
   5731     _flag_k = FK_ADD;
   5732     edi = POP32_VAL(esp); /* 0x36042C67: pop edi */
   5733 L_36042C68:
   5734     esi = POP32_VAL(esp); /* 0x36042C68: pop esi */
   5735     ebx = POP32_VAL(esp); /* 0x36042C69: pop ebx */
   5736     ebp = POP32_VAL(esp); /* 0x36042C6A: pop ebp */
   5737     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36042C6B: ret 4 */
   5738     RECOMP_REGS_OUT();
   5739 }
   5740 
   5741 void sub_36042C70(void) {
   5742     int _fpu_cmp = 0;
   5743     uint32_t _cf = 0;
   5744     int _df = 1;
   5745     uint32_t _flag_k = FK_NONE;
   5746     uint32_t _flag_a = 0, _flag_b = 0;
   5747     uint32_t _itail_tgt = 0;
   5748     RECOMP_REGS_LOCALS
   5749     RECOMP_ENTER(0x36042C70u);
   5750 
   5751 L_36042C70:
   5752     PUSH32(esp, esi); /* 0x36042C70: push esi */
   5753     PUSH32(esp, edi); /* 0x36042C71: push edi */
   5754     edi = MEM32(0x3616F304); /* 0x36042C72: mov edi, dword ptr [0x3616f304] */
   5755     esi = ecx; /* 0x36042C78: mov esi, ecx */
   5756     eax = esi + 0x20; /* 0x36042C7A: lea eax, [esi + 0x20] */
   5757     PUSH32(esp, eax); /* 0x36042C7D: push eax */
   5758     PUSH32(esp, 0xD5u); /* 0x36042C7E: push 0xd5 */
   5759     PUSH32(esp, 0x25u); /* 0x36042C83: push 0x25 */
   5760     RECOMP_ICALL(edi); /* 0x36042C85: call edi */
   5761     RECOMP_FLAGS_IN();
   5762     ecx = eax; /* 0x36042C87: mov ecx, eax */
   5763     RECOMP_ICALL(MEM32(0x3616F294)); /* 0x36042C89: call dword ptr [0x3616f294] */
   5764     RECOMP_FLAGS_IN();
   5765     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u);
   5766     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5767     esi = esi + 0x30u; /* 0x36042C8F: add esi, 0x30 */
   5768     _flag_k = FK_ADD;
   5769     PUSH32(esp, esi); /* 0x36042C92: push esi */
   5770     RECOMP_ICALL(edi); /* 0x36042C93: call edi */
   5771     RECOMP_FLAGS_IN();
   5772     ecx = eax; /* 0x36042C95: mov ecx, eax */
   5773     RECOMP_ICALL(MEM32(0x3616F2DC)); /* 0x36042C97: call dword ptr [0x3616f2dc] */
   5774     RECOMP_FLAGS_IN();
   5775     edi = POP32_VAL(esp); /* 0x36042C9D: pop edi */
   5776     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5777     eax = 0; /* 0x36042C9E: xor eax, eax */
   5778     _cf = 0;
   5779     _flag_k = FK_TEST;
   5780     esi = POP32_VAL(esp); /* 0x36042CA0: pop esi */
   5781     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36042CA1: ret  */
   5782     RECOMP_REGS_OUT();
   5783 }
   5784 
   5785 void sub_36042CB0(void) {
   5786     int _fpu_cmp = 0;
   5787     uint32_t _cf = 0;
   5788     int _df = 1;
   5789     uint32_t _flag_k = FK_NONE;
   5790     uint32_t _flag_a = 0, _flag_b = 0;
   5791     uint32_t _itail_tgt = 0;
   5792     RECOMP_REGS_LOCALS
   5793     RECOMP_ENTER(0x36042CB0u);
   5794 
   5795 L_36042CB0:
   5796     PUSH32(esp, esi); /* 0x36042CB0: push esi */
   5797     esi = ecx; /* 0x36042CB1: mov esi, ecx */
   5798     RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x36042CB3: call dword ptr [0x3616ffd0] */
   5799     RECOMP_FLAGS_IN();
   5800     MEM32(esi) = 0x36170AB0u; /* 0x36042CB9: mov dword ptr [esi], 0x36170ab0 */
   5801     eax = esi; /* 0x36042CBF: mov eax, esi */
   5802     esi = POP32_VAL(esp); /* 0x36042CC1: pop esi */
   5803     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36042CC2: ret  */
   5804     RECOMP_REGS_OUT();
   5805 }
   5806 
   5807 void sub_36042CD0(void) {
   5808     int _fpu_cmp = 0;
   5809     uint32_t _cf = 0;
   5810     int _df = 1;
   5811     uint32_t _flag_k = FK_NONE;
   5812     uint32_t _flag_a = 0, _flag_b = 0;
   5813     uint32_t _itail_tgt = 0;
   5814     RECOMP_REGS_LOCALS
   5815     RECOMP_ENTER(0x36042CD0u);
   5816 
   5817 L_36042CD0:
   5818     PUSH32(esp, ebp); /* 0x36042CD0: push ebp */
   5819     ebp = esp; /* 0x36042CD1: mov ebp, esp */
   5820     PUSH32(esp, esi); /* 0x36042CD3: push esi */
   5821     esi = ecx; /* 0x36042CD4: mov esi, ecx */
   5822     RECOMP_ICALL(0x36042DF0u); /* 0x36042CD6: call 0x36042df0 */ /* not lifted */
   5823     RECOMP_FLAGS_IN();
   5824     /* test MEM8(ebp + 0x8), 1 */ /* 0x36042CDB: test byte ptr [ebp + 8], 1 */
   5825     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   5826     _cf = 0;
   5827     _flag_k = FK_NARROW(FK_TEST, 24);
   5828     if (TEST_Z(_flag_a, _flag_b)) goto L_36042CEA; /* 0x36042CDF: je 0x36042cea */
   5829 L_36042CE1:
   5830     PUSH32(esp, esi); /* 0x36042CE1: push esi */
   5831     RECOMP_ICALL(0x3615FCC4u); /* 0x36042CE2: call 0x3615fcc4 */ /* not lifted */
   5832     RECOMP_FLAGS_IN();
   5833     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5834     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5835     esp = esp + 4; /* 0x36042CE7: add esp, 4 */
   5836     _flag_k = FK_ADD;
   5837 L_36042CEA:
   5838     eax = esi; /* 0x36042CEA: mov eax, esi */
   5839     esi = POP32_VAL(esp); /* 0x36042CEC: pop esi */
   5840     ebp = POP32_VAL(esp); /* 0x36042CED: pop ebp */
   5841     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36042CEE: ret 4 */
   5842     RECOMP_REGS_OUT();
   5843 }
   5844 
   5845 void sub_36042D00(void) {
   5846     int _fpu_cmp = 0;
   5847     uint32_t _cf = 0;
   5848     int _df = 1;
   5849     uint32_t _flag_k = FK_NONE;
   5850     uint32_t _flag_a = 0, _flag_b = 0;
   5851     uint32_t _itail_tgt = 0;
   5852     RECOMP_REGS_LOCALS
   5853     RECOMP_ENTER(0x36042D00u);
   5854 
   5855 L_36042D00:
   5856     PUSH32(esp, ebp); /* 0x36042D00: push ebp */
   5857     ebp = esp; /* 0x36042D01: mov ebp, esp */
   5858     PUSH32(esp, 0xFFFFFFFFu); /* 0x36042D03: push -1 */
   5859     PUSH32(esp, 0x36163DA2u); /* 0x36042D05: push 0x36163da2 */
   5860     eax = MEM32(FS_BASE + (0)); /* 0x36042D0A: mov eax, dword ptr fs:[0] */
   5861     PUSH32(esp, eax); /* 0x36042D10: push eax */
   5862     MEM32(FS_BASE + (0)) = esp; /* 0x36042D11: mov dword ptr fs:[0], esp */
   5863     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   5864     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5865     esp = esp - 0x14u; /* 0x36042D18: sub esp, 0x14 */
   5866     _flag_k = FK_CMP;
   5867     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x36042D1B: mov al, byte ptr [ebp + 0xb] */
   5868     PUSH32(esp, ebx); /* 0x36042D1E: push ebx */
   5869     PUSH32(esp, esi); /* 0x36042D1F: push esi */
   5870     esi = ecx; /* 0x36042D20: mov esi, ecx */
   5871     PUSH32(esp, edi); /* 0x36042D22: push edi */
   5872     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   5873     ecx = ecx | 0xFFFFFFFFu; /* 0x36042D23: or ecx, 0xffffffff */
   5874     _cf = 0;
   5875     _flag_k = FK_TEST;
   5876     MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x36042D26: mov byte ptr [ebp - 0x20], al */
   5877     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5878     eax = 0; /* 0x36042D29: xor eax, eax */
   5879     _cf = 0;
   5880     _flag_k = FK_TEST;
   5881     edi = 0x361B4234u; /* 0x36042D2B: mov edi, 0x361b4234 */
   5882     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x36042D30: repne scasb al, byte ptr es:[edi] */
   5883     ecx = ~ecx; /* 0x36042D32: not ecx */
   5884     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   5885     ecx = ecx - 1; /* 0x36042D34: dec ecx */
   5886     _flag_k = FK_DEC;
   5887     ebx = ecx; /* 0x36042D35: mov ebx, ecx */
   5888     PUSH32(esp, 1); /* 0x36042D37: push 1 */
   5889     PUSH32(esp, ebx); /* 0x36042D39: push ebx */
   5890     ecx = ebp + (-0x20); /* 0x36042D3A: lea ecx, [ebp - 0x20] */
   5891     MEM32(ebp + (-0x10)) = esi; /* 0x36042D3D: mov dword ptr [ebp - 0x10], esi */
   5892     MEM32(ebp + (-0x1C)) = eax; /* 0x36042D40: mov dword ptr [ebp - 0x1c], eax */
   5893     MEM32(ebp + (-0x18)) = eax; /* 0x36042D43: mov dword ptr [ebp - 0x18], eax */
   5894     MEM32(ebp + (-0x14)) = eax; /* 0x36042D46: mov dword ptr [ebp - 0x14], eax */
   5895     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36042D49: call dword ptr [0x3616f00c] */
   5896     RECOMP_FLAGS_IN();
   5897     /* test LO8(eax), LO8(eax) */ /* 0x36042D4F: test al, al */
   5898     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5899     _cf = 0;
   5900     _flag_k = FK_NARROW(FK_TEST, 24);
   5901     if (TEST_Z(_flag_a, _flag_b)) goto L_36042D78; /* 0x36042D51: je 0x36042d78 */
   5902 L_36042D53:
   5903     edi = MEM32(ebp + (-0x1C)); /* 0x36042D53: mov edi, dword ptr [ebp - 0x1c] */
   5904     ecx = ebx; /* 0x36042D56: mov ecx, ebx */
   5905     edx = ecx; /* 0x36042D58: mov edx, ecx */
   5906     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36042D5A: shr ecx, 2 */
   5907     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5908     ecx = ecx >> 2u; /* 0x36042D5A: shr ecx, 2 */
   5909     esi = 0x361B4234u; /* 0x36042D5D: mov esi, 0x361b4234 */
   5910     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36042D62: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   5911     ecx = edx; /* 0x36042D64: mov ecx, edx */
   5912     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   5913     ecx = ecx & 3; /* 0x36042D66: and ecx, 3 */
   5914     _cf = 0;
   5915     _flag_k = FK_TEST;
   5916     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36042D69: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   5917     eax = MEM32(ebp + (-0x1C)); /* 0x36042D6B: mov eax, dword ptr [ebp - 0x1c] */
   5918     esi = MEM32(ebp + (-0x10)); /* 0x36042D6E: mov esi, dword ptr [ebp - 0x10] */
   5919     MEM32(ebp + (-0x18)) = ebx; /* 0x36042D71: mov dword ptr [ebp - 0x18], ebx */
   5920     MEM8(ebx + eax) = (uint8_t)(0); /* 0x36042D74: mov byte ptr [ebx + eax], 0 */
   5921 L_36042D78:
   5922     edx = MEM32(ebp + 0x8); /* 0x36042D78: mov edx, dword ptr [ebp + 8] */
   5923     ecx = ebp + (-0x20); /* 0x36042D7B: lea ecx, [ebp - 0x20] */
   5924     PUSH32(esp, ecx); /* 0x36042D7E: push ecx */
   5925     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5926     edi = 0; /* 0x36042D7F: xor edi, edi */
   5927     _cf = 0;
   5928     _flag_k = FK_TEST;
   5929     PUSH32(esp, edx); /* 0x36042D81: push edx */
   5930     ecx = esi; /* 0x36042D82: mov ecx, esi */
   5931     MEM32(ebp + (-0x4)) = edi; /* 0x36042D84: mov dword ptr [ebp - 4], edi */
   5932     RECOMP_ICALL(MEM32(0x3616FC0C)); /* 0x36042D87: call dword ptr [0x3616fc0c] */
   5933     RECOMP_FLAGS_IN();
   5934     eax = MEM32(ebp + (-0x1C)); /* 0x36042D8D: mov eax, dword ptr [ebp - 0x1c] */
   5935     /* cmp eax, edi */ /* 0x36042D90: cmp eax, edi */
   5936     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   5937     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5938     _flag_k = FK_CMP;
   5939     MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x36042D92: mov byte ptr [ebp - 4], 2 */
   5940     if (CMP_EQ(_flag_a, _flag_b)) goto L_36042DB4; /* 0x36042D96: je 0x36042db4 */
   5941 L_36042D98:
   5942     ecx = eax + (-0x1); /* 0x36042D98: lea ecx, [eax - 1] */
   5943     SET_LO8(eax, MEM8(ecx)); /* 0x36042D9B: mov al, byte ptr [ecx] */
   5944     /* test LO8(eax), LO8(eax) */ /* 0x36042D9D: test al, al */
   5945     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5946     _cf = 0;
   5947     _flag_k = FK_NARROW(FK_TEST, 24);
   5948     if (TEST_Z(_flag_a, _flag_b)) goto L_36042DAB; /* 0x36042D9F: je 0x36042dab */
   5949 L_36042DA1:
   5950     /* cmp LO8(eax), 0xFFu */ /* 0x36042DA1: cmp al, 0xff */
   5951     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   5952     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5953     _flag_k = FK_NARROW(FK_CMP, 24);
   5954     if (CMP_EQ(_flag_a, _flag_b)) goto L_36042DAB; /* 0x36042DA3: je 0x36042dab */
   5955 L_36042DA5:
   5956     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5957     SET_LO8(eax, LO8(eax) - 1); /* 0x36042DA5: dec al */
   5958     _flag_k = FK_NARROW(FK_DEC, 24);
   5959     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36042DA7: mov byte ptr [ecx], al */
   5960     goto L_36042DB4; /* 0x36042DA9: jmp 0x36042db4 */
   5961 L_36042DAB:
   5962     PUSH32(esp, ecx); /* 0x36042DAB: push ecx */
   5963     RECOMP_ICALL(0x3615FCC4u); /* 0x36042DAC: call 0x3615fcc4 */ /* not lifted */
   5964     RECOMP_FLAGS_IN();
   5965     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5966     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5967     esp = esp + 4; /* 0x36042DB1: add esp, 4 */
   5968     _flag_k = FK_ADD;
   5969 L_36042DB4:
   5970     eax = MEM32(ebp + 0x10); /* 0x36042DB4: mov eax, dword ptr [ebp + 0x10] */
   5971     ecx = MEM32(ebp + 0xC); /* 0x36042DB7: mov ecx, dword ptr [ebp + 0xc] */
   5972     PUSH32(esp, eax); /* 0x36042DBA: push eax */
   5973     MEM32(ebp + (-0x1C)) = edi; /* 0x36042DBB: mov dword ptr [ebp - 0x1c], edi */
   5974     MEM32(ebp + (-0x18)) = edi; /* 0x36042DBE: mov dword ptr [ebp - 0x18], edi */
   5975     MEM32(ebp + (-0x14)) = edi; /* 0x36042DC1: mov dword ptr [ebp - 0x14], edi */
   5976     MEM32(esi) = 0x36170AB0u; /* 0x36042DC4: mov dword ptr [esi], 0x36170ab0 */
   5977     MEM8(esi + 0xC) = (uint8_t)(0); /* 0x36042DCA: mov byte ptr [esi + 0xc], 0 */
   5978     MEM32(esi + 0x20) = ecx; /* 0x36042DCE: mov dword ptr [esi + 0x20], ecx */
   5979     RECOMP_ICALL(0x360C54B0u); /* 0x36042DD1: call 0x360c54b0 */ /* not lifted */
   5980     RECOMP_FLAGS_IN();
   5981     ecx = MEM32(ebp + (-0xC)); /* 0x36042DD6: mov ecx, dword ptr [ebp - 0xc] */
   5982     edi = POP32_VAL(esp); /* 0x36042DD9: pop edi */
   5983     eax = esi; /* 0x36042DDA: mov eax, esi */
   5984     esi = POP32_VAL(esp); /* 0x36042DDC: pop esi */
   5985     ebx = POP32_VAL(esp); /* 0x36042DDD: pop ebx */
   5986     MEM32(FS_BASE + (0)) = ecx; /* 0x36042DDE: mov dword ptr fs:[0], ecx */
   5987     esp = ebp; /* 0x36042DE5: mov esp, ebp */
   5988     ebp = POP32_VAL(esp); /* 0x36042DE7: pop ebp */
   5989     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36042DE8: ret 0xc */
   5990     RECOMP_REGS_OUT();
   5991 }
   5992 
   5993 void sub_36042DF0(void) {
   5994     int _fpu_cmp = 0;
   5995     uint32_t _cf = 0;
   5996     int _df = 1;
   5997     uint32_t _flag_k = FK_NONE;
   5998     uint32_t _flag_a = 0, _flag_b = 0;
   5999     uint32_t _itail_tgt = 0;
   6000     RECOMP_REGS_LOCALS
   6001     RECOMP_ENTER(0x36042DF0u);
   6002 
   6003 L_36042DF0:
   6004     MEM32(ecx) = 0x36170AB0u; /* 0x36042DF0: mov dword ptr [ecx], 0x36170ab0 */
   6005 L_36042DF6:
   6006     { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; }
   6007     { RECOMP_REGS_OUT(); return; } /* end of function */
   6008   _ljump:
   6009     switch (_itail_tgt) {
   6010       case 0x36042DF0u: goto L_36042DF0;
   6011       case 0x36042DF6u: goto L_36042DF6;
   6012       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   6013     }
   6014     RECOMP_REGS_OUT();
   6015 }
   6016 
   6017 void sub_36042E00(void) {
   6018     int _fpu_cmp = 0;
   6019     uint32_t _cf = 0;
   6020     int _df = 1;
   6021     uint32_t _flag_k = FK_NONE;
   6022     uint32_t _flag_a = 0, _flag_b = 0;
   6023     uint32_t _itail_tgt = 0;
   6024     RECOMP_REGS_LOCALS
   6025     RECOMP_ENTER(0x36042E00u);
   6026     RECOMP_EH_ENTER();
   6027 
   6028 L_36042E00:
   6029     PUSH32(esp, ebp); /* 0x36042E00: push ebp */
   6030     ebp = esp; /* 0x36042E01: mov ebp, esp */
   6031     PUSH32(esp, 0xFFFFFFFFu); /* 0x36042E03: push -1 */
   6032     PUSH32(esp, 0x36163DBBu); /* 0x36042E05: push 0x36163dbb */
   6033     eax = MEM32(FS_BASE + (0)); /* 0x36042E0A: mov eax, dword ptr fs:[0] */
   6034     PUSH32(esp, eax); /* 0x36042E10: push eax */
   6035     MEM32(FS_BASE + (0)) = esp; /* 0x36042E11: mov dword ptr fs:[0], esp */
   6036     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6037     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6038     esp = esp - 0x10u; /* 0x36042E18: sub esp, 0x10 */
   6039     _flag_k = FK_CMP;
   6040     PUSH32(esp, ebx); /* 0x36042E1B: push ebx */
   6041     PUSH32(esp, esi); /* 0x36042E1C: push esi */
   6042     PUSH32(esp, edi); /* 0x36042E1D: push edi */
   6043     edi = MEM32(ebp + 0x8); /* 0x36042E1E: mov edi, dword ptr [ebp + 8] */
   6044     MEM32(ebp + (-0x10)) = esp; /* 0x36042E21: mov dword ptr [ebp - 0x10], esp */
   6045     eax = ebp + (-0x18); /* 0x36042E24: lea eax, [ebp - 0x18] */
   6046     PUSH32(esp, eax); /* 0x36042E27: push eax */
   6047     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6048     ebx = 0; /* 0x36042E28: xor ebx, ebx */
   6049     _cf = 0;
   6050     _flag_k = FK_TEST;
   6051     PUSH32(esp, edi); /* 0x36042E2A: push edi */
   6052     esi = ecx; /* 0x36042E2B: mov esi, ecx */
   6053     MEM32(ebp + (-0x18)) = ebx; /* 0x36042E2D: mov dword ptr [ebp - 0x18], ebx */
   6054     MEM32(ebp + (-0x14)) = ebx; /* 0x36042E30: mov dword ptr [ebp - 0x14], ebx */
   6055     RECOMP_ICALL(0x3615B870u); /* 0x36042E33: call 0x3615b870 */ /* not lifted */
   6056     RECOMP_FLAGS_IN();
   6057     PUSH32(esp, 0xA0u); /* 0x36042E38: push 0xa0 */
   6058     RECOMP_ICALL(0x3615FD6Au); /* 0x36042E3D: call 0x3615fd6a */ /* not lifted */
   6059     RECOMP_FLAGS_IN();
   6060     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6061     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6062     esp = esp + 0xCu; /* 0x36042E42: add esp, 0xc */
   6063     _flag_k = FK_ADD;
   6064     MEM32(ebp + 0x8) = eax; /* 0x36042E45: mov dword ptr [ebp + 8], eax */
   6065     /* cmp eax, ebx */ /* 0x36042E48: cmp eax, ebx */
   6066     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   6067     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6068     _flag_k = FK_CMP;
   6069     MEM32(ebp + (-0x4)) = ebx; /* 0x36042E4A: mov dword ptr [ebp - 4], ebx */
   6070     if (CMP_EQ(_flag_a, _flag_b)) goto L_36042E60; /* 0x36042E4D: je 0x36042e60 */
   6071 L_36042E4F:
   6072     ecx = MEM32(ebp + (-0x14)); /* 0x36042E4F: mov ecx, dword ptr [ebp - 0x14] */
   6073     edx = MEM32(ebp + (-0x18)); /* 0x36042E52: mov edx, dword ptr [ebp - 0x18] */
   6074     PUSH32(esp, ecx); /* 0x36042E55: push ecx */
   6075     PUSH32(esp, edx); /* 0x36042E56: push edx */
   6076     ecx = eax; /* 0x36042E57: mov ecx, eax */
   6077     RECOMP_ICALL(0x360C3F20u); /* 0x36042E59: call 0x360c3f20 */ /* not lifted */
   6078     RECOMP_FLAGS_IN();
   6079     goto L_36042E62; /* 0x36042E5E: jmp 0x36042e62 */
   6080 L_36042E60:
   6081     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6082     eax = 0; /* 0x36042E60: xor eax, eax */
   6083     _cf = 0;
   6084     _flag_k = FK_TEST;
   6085 L_36042E62:
   6086     PUSH32(esp, eax); /* 0x36042E62: push eax */
   6087     PUSH32(esp, edi); /* 0x36042E63: push edi */
   6088     MEM32(esi + 0x20) = eax; /* 0x36042E64: mov dword ptr [esi + 0x20], eax */
   6089     MEM32(ebp + (-0x4)) = 1; /* 0x36042E67: mov dword ptr [ebp - 4], 1 */
   6090     RECOMP_ICALL(0x360C4D80u); /* 0x36042E6E: call 0x360c4d80 */ /* not lifted */
   6091     RECOMP_FLAGS_IN();
   6092     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6093     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6094     esp = esp + 8; /* 0x36042E73: add esp, 8 */
   6095     _flag_k = FK_ADD;
   6096     ecx = edi; /* 0x36042E76: mov ecx, edi */
   6097     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36042E78: mov dword ptr [ebp - 4], 0xffffffff */
   6098     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36042E7F: call dword ptr [0x3616fadc] */
   6099     RECOMP_FLAGS_IN();
   6100     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   6101     _cf = (eax) != 0;
   6102     eax = (uint32_t)(-(int32_t)eax); /* 0x36042E85: neg eax */
   6103     _flag_k = FK_CMP;
   6104     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36042E87: sbb eax, eax */
   6105       eax = _sc ? 0xFFFFFFFFu : 0;
   6106       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   6107       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   6108     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6109     eax = eax + 1; /* 0x36042E89: inc eax */
   6110     _flag_k = FK_INC;
   6111     ecx = MEM32(ebp + (-0xC)); /* 0x36042E8A: mov ecx, dword ptr [ebp - 0xc] */
   6112     MEM32(FS_BASE + (0)) = ecx; /* 0x36042E8D: mov dword ptr fs:[0], ecx */
   6113     edi = POP32_VAL(esp); /* 0x36042E94: pop edi */
   6114     esi = POP32_VAL(esp); /* 0x36042E95: pop esi */
   6115     ebx = POP32_VAL(esp); /* 0x36042E96: pop ebx */
   6116     esp = ebp; /* 0x36042E97: mov esp, ebp */
   6117     ebp = POP32_VAL(esp); /* 0x36042E99: pop ebp */
   6118     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_EH_LEAVE(); RECOMP_REGS_OUT(); return; } /* 0x36042E9A: ret 4 */
   6119 L_36042EA3:
   6120     ecx = MEM32(ebp + (-0xC)); /* 0x36042EA3: mov ecx, dword ptr [ebp - 0xc] */
   6121     edi = POP32_VAL(esp); /* 0x36042EA6: pop edi */
   6122     esi = POP32_VAL(esp); /* 0x36042EA7: pop esi */
   6123     eax = 1; /* 0x36042EA8: mov eax, 1 */
   6124     MEM32(FS_BASE + (0)) = ecx; /* 0x36042EAD: mov dword ptr fs:[0], ecx */
   6125     ebx = POP32_VAL(esp); /* 0x36042EB4: pop ebx */
   6126     esp = ebp; /* 0x36042EB5: mov esp, ebp */
   6127     ebp = POP32_VAL(esp); /* 0x36042EB7: pop ebp */
   6128     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_EH_LEAVE(); RECOMP_REGS_OUT(); return; } /* 0x36042EB8: ret 4 */
   6129   _ljump:
   6130     switch (_itail_tgt) {
   6131       case 0x36042EA3u: goto L_36042EA3;
   6132       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_EH_LEAVE(); RECOMP_REGS_OUT(); return; }
   6133     }
   6134     RECOMP_EH_LEAVE(); RECOMP_REGS_OUT();
   6135 }
   6136 
   6137 void sub_36042E9D(void) {
   6138     int _fpu_cmp = 0;
   6139     uint32_t _cf = 0;
   6140     int _df = 1;
   6141     uint32_t _flag_k = FK_NONE;
   6142     uint32_t _flag_a = 0, _flag_b = 0;
   6143     uint32_t _itail_tgt = 0;
   6144     RECOMP_REGS_LOCALS
   6145     RECOMP_ENTER(0x36042E9Du);
   6146 
   6147 L_36042E9D:
   6148     eax = 0x36042EA3u; /* 0x36042E9D: mov eax, 0x36042ea3 */
   6149     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36042EA2: ret  */
   6150     RECOMP_REGS_OUT();
   6151 }
   6152 
   6153 void sub_36042EA3(void) {
   6154     int _fpu_cmp = 0;
   6155     uint32_t _cf = 0;
   6156     int _df = 1;
   6157     uint32_t _flag_k = FK_NONE;
   6158     uint32_t _flag_a = 0, _flag_b = 0;
   6159     uint32_t _itail_tgt = 0;
   6160     RECOMP_REGS_LOCALS
   6161     RECOMP_ENTER(0x36042EA3u);
   6162 
   6163 L_36042EA3:
   6164     ecx = MEM32(ebp + (-0xC)); /* 0x36042EA3: mov ecx, dword ptr [ebp - 0xc] */
   6165     edi = POP32_VAL(esp); /* 0x36042EA6: pop edi */
   6166     esi = POP32_VAL(esp); /* 0x36042EA7: pop esi */
   6167     eax = 1; /* 0x36042EA8: mov eax, 1 */
   6168     MEM32(FS_BASE + (0)) = ecx; /* 0x36042EAD: mov dword ptr fs:[0], ecx */
   6169     ebx = POP32_VAL(esp); /* 0x36042EB4: pop ebx */
   6170     esp = ebp; /* 0x36042EB5: mov esp, ebp */
   6171     ebp = POP32_VAL(esp); /* 0x36042EB7: pop ebp */
   6172     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36042EB8: ret 4 */
   6173     RECOMP_REGS_OUT();
   6174 }
   6175 
   6176 void sub_36042EC0(void) {
   6177     int _fpu_cmp = 0;
   6178     uint32_t _cf = 0;
   6179     int _df = 1;
   6180     uint32_t _flag_k = FK_NONE;
   6181     uint32_t _flag_a = 0, _flag_b = 0;
   6182     uint32_t _itail_tgt = 0;
   6183     RECOMP_REGS_LOCALS
   6184     RECOMP_ENTER(0x36042EC0u);
   6185 
   6186 L_36042EC0:
   6187     PUSH32(esp, ebp); /* 0x36042EC0: push ebp */
   6188     ebp = esp; /* 0x36042EC1: mov ebp, esp */
   6189     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6190     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6191     esp = esp - 8; /* 0x36042EC3: sub esp, 8 */
   6192     _flag_k = FK_CMP;
   6193     PUSH32(esp, esi); /* 0x36042EC6: push esi */
   6194     esi = ecx; /* 0x36042EC7: mov esi, ecx */
   6195     eax = MEM32(esi + 0x20); /* 0x36042EC9: mov eax, dword ptr [esi + 0x20] */
   6196     ecx = ebp + (-0x8); /* 0x36042ECC: lea ecx, [ebp - 8] */
   6197     /* cmp ecx, eax */ /* 0x36042ECF: cmp ecx, eax */
   6198     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   6199     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6200     _flag_k = FK_CMP;
   6201     PUSH32(esp, edi); /* 0x36042ED1: push edi */
   6202     if (CMP_EQ(_flag_a, _flag_b)) goto L_36042EDF; /* 0x36042ED2: je 0x36042edf */
   6203 L_36042ED4:
   6204     edx = MEM32(eax); /* 0x36042ED4: mov edx, dword ptr [eax] */
   6205     MEM32(ebp + (-0x8)) = edx; /* 0x36042ED6: mov dword ptr [ebp - 8], edx */
   6206     eax = MEM32(eax + 0x4); /* 0x36042ED9: mov eax, dword ptr [eax + 4] */
   6207     MEM32(ebp + (-0x4)) = eax; /* 0x36042EDC: mov dword ptr [ebp - 4], eax */
   6208 L_36042EDF:
   6209     edi = MEM32(ebp + 0x8); /* 0x36042EDF: mov edi, dword ptr [ebp + 8] */
   6210     ecx = ebp + (-0x8); /* 0x36042EE2: lea ecx, [ebp - 8] */
   6211     PUSH32(esp, ecx); /* 0x36042EE5: push ecx */
   6212     PUSH32(esp, edi); /* 0x36042EE6: push edi */
   6213     RECOMP_ICALL(0x3615B840u); /* 0x36042EE7: call 0x3615b840 */ /* not lifted */
   6214     RECOMP_FLAGS_IN();
   6215     edx = MEM32(esi + 0x20); /* 0x36042EEC: mov edx, dword ptr [esi + 0x20] */
   6216     PUSH32(esp, edx); /* 0x36042EEF: push edx */
   6217     PUSH32(esp, edi); /* 0x36042EF0: push edi */
   6218     RECOMP_ICALL(0x360C4B10u); /* 0x36042EF1: call 0x360c4b10 */ /* not lifted */
   6219     RECOMP_FLAGS_IN();
   6220     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6221     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6222     esp = esp + 0x10u; /* 0x36042EF6: add esp, 0x10 */
   6223     _flag_k = FK_ADD;
   6224     edi = POP32_VAL(esp); /* 0x36042EF9: pop edi */
   6225     esi = POP32_VAL(esp); /* 0x36042EFA: pop esi */
   6226     esp = ebp; /* 0x36042EFB: mov esp, ebp */
   6227     ebp = POP32_VAL(esp); /* 0x36042EFD: pop ebp */
   6228     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36042EFE: ret 4 */
   6229     RECOMP_REGS_OUT();
   6230 }
   6231 
   6232 void sub_36042F10(void) {
   6233     int _fpu_cmp = 0;
   6234     uint32_t _cf = 0;
   6235     int _df = 1;
   6236     uint32_t _flag_k = FK_NONE;
   6237     uint32_t _flag_a = 0, _flag_b = 0;
   6238     uint32_t _itail_tgt = 0;
   6239     RECOMP_REGS_LOCALS
   6240     RECOMP_ENTER(0x36042F10u);
   6241 
   6242 L_36042F10:
   6243     PUSH32(esp, ebp); /* 0x36042F10: push ebp */
   6244     ebp = esp; /* 0x36042F11: mov ebp, esp */
   6245     PUSH32(esp, 0xFFFFFFFFu); /* 0x36042F13: push -1 */
   6246     PUSH32(esp, 0x36163DE4u); /* 0x36042F15: push 0x36163de4 */
   6247     eax = MEM32(FS_BASE + (0)); /* 0x36042F1A: mov eax, dword ptr fs:[0] */
   6248     PUSH32(esp, eax); /* 0x36042F20: push eax */
   6249     MEM32(FS_BASE + (0)) = esp; /* 0x36042F21: mov dword ptr fs:[0], esp */
   6250     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6251     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6252     esp = esp - 0xCu; /* 0x36042F28: sub esp, 0xc */
   6253     _flag_k = FK_CMP;
   6254     PUSH32(esp, ebx); /* 0x36042F2B: push ebx */
   6255     PUSH32(esp, esi); /* 0x36042F2C: push esi */
   6256     esi = ecx; /* 0x36042F2D: mov esi, ecx */
   6257     PUSH32(esp, edi); /* 0x36042F2F: push edi */
   6258     MEM32(ebp + (-0x14)) = esi; /* 0x36042F30: mov dword ptr [ebp - 0x14], esi */
   6259     RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x36042F33: call dword ptr [0x3616ffd0] */
   6260     RECOMP_FLAGS_IN();
   6261     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6262     ebx = 0; /* 0x36042F39: xor ebx, ebx */
   6263     _cf = 0;
   6264     _flag_k = FK_TEST;
   6265     MEM32(esi + 0x20) = ebx; /* 0x36042F3B: mov dword ptr [esi + 0x20], ebx */
   6266     MEM32(esi + 0x24) = ebx; /* 0x36042F3E: mov dword ptr [esi + 0x24], ebx */
   6267     PUSH32(esp, 0xCu); /* 0x36042F41: push 0xc */
   6268     MEM32(ebp + (-0x4)) = ebx; /* 0x36042F43: mov dword ptr [ebp - 4], ebx */
   6269     MEM32(esi) = 0x36170AD4u; /* 0x36042F46: mov dword ptr [esi], 0x36170ad4 */
   6270     RECOMP_ICALL(0x3615FD6Au); /* 0x36042F4C: call 0x3615fd6a */ /* not lifted */
   6271     RECOMP_FLAGS_IN();
   6272     edi = eax; /* 0x36042F51: mov edi, eax */
   6273     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6274     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6275     esp = esp + 4; /* 0x36042F53: add esp, 4 */
   6276     _flag_k = FK_ADD;
   6277     MEM32(ebp + (-0x18)) = edi; /* 0x36042F56: mov dword ptr [ebp - 0x18], edi */
   6278     /* cmp edi, ebx */ /* 0x36042F59: cmp edi, ebx */
   6279     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   6280     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6281     _flag_k = FK_CMP;
   6282     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36042F5B: mov byte ptr [ebp - 4], 1 */
   6283     if (CMP_EQ(_flag_a, _flag_b)) goto L_36042F91; /* 0x36042F5F: je 0x36042f91 */
   6284 L_36042F61:
   6285     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x36042F61: mov al, byte ptr [ebp - 0xd] */
   6286     PUSH32(esp, 0x10u); /* 0x36042F64: push 0x10 */
   6287     MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x36042F66: mov byte ptr [edi], al */
   6288     RECOMP_ICALL(0x3615FD6Au); /* 0x36042F68: call 0x3615fd6a */ /* not lifted */
   6289     RECOMP_FLAGS_IN();
   6290     MEM32(eax) = eax; /* 0x36042F6D: mov dword ptr [eax], eax */
   6291     MEM32(eax + 0x4) = eax; /* 0x36042F6F: mov dword ptr [eax + 4], eax */
   6292     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6293     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6294     esp = esp + 4; /* 0x36042F72: add esp, 4 */
   6295     _flag_k = FK_ADD;
   6296     MEM32(edi + 0x4) = eax; /* 0x36042F75: mov dword ptr [edi + 4], eax */
   6297     MEM32(edi + 0x8) = ebx; /* 0x36042F78: mov dword ptr [edi + 8], ebx */
   6298     MEM32(esi + 0x28) = edi; /* 0x36042F7B: mov dword ptr [esi + 0x28], edi */
   6299     edi = POP32_VAL(esp); /* 0x36042F7E: pop edi */
   6300     eax = esi; /* 0x36042F7F: mov eax, esi */
   6301     esi = POP32_VAL(esp); /* 0x36042F81: pop esi */
   6302     ebx = POP32_VAL(esp); /* 0x36042F82: pop ebx */
   6303     ecx = MEM32(ebp + (-0xC)); /* 0x36042F83: mov ecx, dword ptr [ebp - 0xc] */
   6304     MEM32(FS_BASE + (0)) = ecx; /* 0x36042F86: mov dword ptr fs:[0], ecx */
   6305     esp = ebp; /* 0x36042F8D: mov esp, ebp */
   6306     ebp = POP32_VAL(esp); /* 0x36042F8F: pop ebp */
   6307     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36042F90: ret  */
   6308 L_36042F91:
   6309     ecx = MEM32(ebp + (-0xC)); /* 0x36042F91: mov ecx, dword ptr [ebp - 0xc] */
   6310     MEM32(esi + 0x28) = ebx; /* 0x36042F94: mov dword ptr [esi + 0x28], ebx */
   6311     edi = POP32_VAL(esp); /* 0x36042F97: pop edi */
   6312     eax = esi; /* 0x36042F98: mov eax, esi */
   6313     esi = POP32_VAL(esp); /* 0x36042F9A: pop esi */
   6314     ebx = POP32_VAL(esp); /* 0x36042F9B: pop ebx */
   6315     MEM32(FS_BASE + (0)) = ecx; /* 0x36042F9C: mov dword ptr fs:[0], ecx */
   6316     esp = ebp; /* 0x36042FA3: mov esp, ebp */
   6317     ebp = POP32_VAL(esp); /* 0x36042FA5: pop ebp */
   6318     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36042FA6: ret  */
   6319     RECOMP_REGS_OUT();
   6320 }
   6321 
   6322 void sub_36042FB0(void) {
   6323     int _fpu_cmp = 0;
   6324     uint32_t _cf = 0;
   6325     int _df = 1;
   6326     uint32_t _flag_k = FK_NONE;
   6327     uint32_t _flag_a = 0, _flag_b = 0;
   6328     uint32_t _itail_tgt = 0;
   6329     RECOMP_REGS_LOCALS
   6330     RECOMP_ENTER(0x36042FB0u);
   6331 
   6332 L_36042FB0:
   6333     PUSH32(esp, ebp); /* 0x36042FB0: push ebp */
   6334     ebp = esp; /* 0x36042FB1: mov ebp, esp */
   6335     PUSH32(esp, esi); /* 0x36042FB3: push esi */
   6336     esi = ecx; /* 0x36042FB4: mov esi, ecx */
   6337     RECOMP_ICALL(0x36042FE0u); /* 0x36042FB6: call 0x36042fe0 */ /* not lifted */
   6338     RECOMP_FLAGS_IN();
   6339     /* test MEM8(ebp + 0x8), 1 */ /* 0x36042FBB: test byte ptr [ebp + 8], 1 */
   6340     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   6341     _cf = 0;
   6342     _flag_k = FK_NARROW(FK_TEST, 24);
   6343     if (TEST_Z(_flag_a, _flag_b)) goto L_36042FCA; /* 0x36042FBF: je 0x36042fca */
   6344 L_36042FC1:
   6345     PUSH32(esp, esi); /* 0x36042FC1: push esi */
   6346     RECOMP_ICALL(0x3615FCC4u); /* 0x36042FC2: call 0x3615fcc4 */ /* not lifted */
   6347     RECOMP_FLAGS_IN();
   6348     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6349     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6350     esp = esp + 4; /* 0x36042FC7: add esp, 4 */
   6351     _flag_k = FK_ADD;
   6352 L_36042FCA:
   6353     eax = esi; /* 0x36042FCA: mov eax, esi */
   6354     esi = POP32_VAL(esp); /* 0x36042FCC: pop esi */
   6355     ebp = POP32_VAL(esp); /* 0x36042FCD: pop ebp */
   6356     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36042FCE: ret 4 */
   6357     RECOMP_REGS_OUT();
   6358 }
   6359 
   6360 void sub_36042FE0(void) {
   6361     int _fpu_cmp = 0;
   6362     uint32_t _cf = 0;
   6363     int _df = 1;
   6364     uint32_t _flag_k = FK_NONE;
   6365     uint32_t _flag_a = 0, _flag_b = 0;
   6366     uint32_t _itail_tgt = 0;
   6367     RECOMP_REGS_LOCALS
   6368     RECOMP_ENTER(0x36042FE0u);
   6369 
   6370 L_36042FE0:
   6371     PUSH32(esp, ebp); /* 0x36042FE0: push ebp */
   6372     ebp = esp; /* 0x36042FE1: mov ebp, esp */
   6373     PUSH32(esp, ecx); /* 0x36042FE3: push ecx */
   6374     PUSH32(esp, edi); /* 0x36042FE4: push edi */
   6375     edi = MEM32(ecx + 0x28); /* 0x36042FE5: mov edi, dword ptr [ecx + 0x28] */
   6376     /* test edi, edi */ /* 0x36042FE8: test edi, edi */
   6377     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   6378     _cf = 0;
   6379     _flag_k = FK_TEST;
   6380     MEM32(ebp + (-0x4)) = ecx; /* 0x36042FEA: mov dword ptr [ebp - 4], ecx */
   6381     MEM32(ecx) = 0x36170AD4u; /* 0x36042FED: mov dword ptr [ecx], 0x36170ad4 */
   6382     if (TEST_Z(_flag_a, _flag_b)) goto L_36043046; /* 0x36042FF3: je 0x36043046 */
   6383 L_36042FF5:
   6384     PUSH32(esp, ebx); /* 0x36042FF5: push ebx */
   6385     ebx = MEM32(edi + 0x4); /* 0x36042FF6: mov ebx, dword ptr [edi + 4] */
   6386     PUSH32(esp, esi); /* 0x36042FF9: push esi */
   6387     esi = MEM32(ebx); /* 0x36042FFA: mov esi, dword ptr [ebx] */
   6388     /* cmp esi, ebx */ /* 0x36042FFC: cmp esi, ebx */
   6389     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   6390     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6391     _flag_k = FK_CMP;
   6392     if (CMP_EQ(_flag_a, _flag_b)) goto L_36043027; /* 0x36042FFE: je 0x36043027 */
   6393 L_36043000:
   6394     eax = esi; /* 0x36043000: mov eax, esi */
   6395     ecx = MEM32(eax + 0x4); /* 0x36043002: mov ecx, dword ptr [eax + 4] */
   6396     edx = MEM32(eax); /* 0x36043005: mov edx, dword ptr [eax] */
   6397     esi = MEM32(esi); /* 0x36043007: mov esi, dword ptr [esi] */
   6398     MEM32(ecx) = edx; /* 0x36043009: mov dword ptr [ecx], edx */
   6399     ecx = MEM32(eax); /* 0x3604300B: mov ecx, dword ptr [eax] */
   6400     edx = MEM32(eax + 0x4); /* 0x3604300D: mov edx, dword ptr [eax + 4] */
   6401     PUSH32(esp, eax); /* 0x36043010: push eax */
   6402     MEM32(ecx + 0x4) = edx; /* 0x36043011: mov dword ptr [ecx + 4], edx */
   6403     RECOMP_ICALL(0x3615FCC4u); /* 0x36043014: call 0x3615fcc4 */ /* not lifted */
   6404     RECOMP_FLAGS_IN();
   6405     ecx = MEM32(edi + 0x8); /* 0x36043019: mov ecx, dword ptr [edi + 8] */
   6406     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6407     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6408     esp = esp + 4; /* 0x3604301C: add esp, 4 */
   6409     _flag_k = FK_ADD;
   6410     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   6411     ecx = ecx - 1; /* 0x3604301F: dec ecx */
   6412     _flag_k = FK_DEC;
   6413     /* cmp esi, ebx */ /* 0x36043020: cmp esi, ebx */
   6414     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   6415     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6416     _flag_k = FK_CMP;
   6417     MEM32(edi + 0x8) = ecx; /* 0x36043022: mov dword ptr [edi + 8], ecx */
   6418     RECOMP_BACKEDGE();
   6419     if (CMP_NE(_flag_a, _flag_b)) goto L_36043000; /* 0x36043025: jne 0x36043000 */
   6420 L_36043027:
   6421     eax = MEM32(edi + 0x4); /* 0x36043027: mov eax, dword ptr [edi + 4] */
   6422     PUSH32(esp, eax); /* 0x3604302A: push eax */
   6423     RECOMP_ICALL(0x3615FCC4u); /* 0x3604302B: call 0x3615fcc4 */ /* not lifted */
   6424     RECOMP_FLAGS_IN();
   6425     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6426     eax = 0; /* 0x36043030: xor eax, eax */
   6427     _cf = 0;
   6428     _flag_k = FK_TEST;
   6429     PUSH32(esp, edi); /* 0x36043032: push edi */
   6430     MEM32(edi + 0x4) = eax; /* 0x36043033: mov dword ptr [edi + 4], eax */
   6431     MEM32(edi + 0x8) = eax; /* 0x36043036: mov dword ptr [edi + 8], eax */
   6432     RECOMP_ICALL(0x3615FCC4u); /* 0x36043039: call 0x3615fcc4 */ /* not lifted */
   6433     RECOMP_FLAGS_IN();
   6434     ecx = MEM32(ebp + (-0x4)); /* 0x3604303E: mov ecx, dword ptr [ebp - 4] */
   6435     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6436     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6437     esp = esp + 8; /* 0x36043041: add esp, 8 */
   6438     _flag_k = FK_ADD;
   6439     esi = POP32_VAL(esp); /* 0x36043044: pop esi */
   6440     ebx = POP32_VAL(esp); /* 0x36043045: pop ebx */
   6441 L_36043046:
   6442     RECOMP_ICALL(MEM32(0x3616FFD4)); /* 0x36043046: call dword ptr [0x3616ffd4] */
   6443     RECOMP_FLAGS_IN();
   6444     edi = POP32_VAL(esp); /* 0x3604304C: pop edi */
   6445     esp = ebp; /* 0x3604304D: mov esp, ebp */
   6446     ebp = POP32_VAL(esp); /* 0x3604304F: pop ebp */
   6447     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36043050: ret  */
   6448     RECOMP_REGS_OUT();
   6449 }
   6450 
   6451 void sub_36043060(void) {
   6452     int _fpu_cmp = 0;
   6453     uint32_t _cf = 0;
   6454     int _df = 1;
   6455     uint32_t _flag_k = FK_NONE;
   6456     uint32_t _flag_a = 0, _flag_b = 0;
   6457     uint32_t _itail_tgt = 0;
   6458     RECOMP_REGS_LOCALS
   6459     RECOMP_ENTER(0x36043060u);
   6460 
   6461 L_36043060:
   6462     PUSH32(esp, ebp); /* 0x36043060: push ebp */
   6463     ebp = esp; /* 0x36043061: mov ebp, esp */
   6464     PUSH32(esp, esi); /* 0x36043063: push esi */
   6465     esi = ecx; /* 0x36043064: mov esi, ecx */
   6466     PUSH32(esp, edi); /* 0x36043066: push edi */
   6467     edi = MEM32(ebp + 0x8); /* 0x36043067: mov edi, dword ptr [ebp + 8] */
   6468     eax = esi + 0x20; /* 0x3604306A: lea eax, [esi + 0x20] */
   6469     PUSH32(esp, eax); /* 0x3604306D: push eax */
   6470     PUSH32(esp, edi); /* 0x3604306E: push edi */
   6471     RECOMP_ICALL(0x3615B870u); /* 0x3604306F: call 0x3615b870 */ /* not lifted */
   6472     RECOMP_FLAGS_IN();
   6473     ecx = MEM32(esi + 0x28); /* 0x36043074: mov ecx, dword ptr [esi + 0x28] */
   6474     PUSH32(esp, ecx); /* 0x36043077: push ecx */
   6475     PUSH32(esp, edi); /* 0x36043078: push edi */
   6476     RECOMP_ICALL(0x3601DD60u); /* 0x36043079: call 0x3601dd60 */ /* not lifted */
   6477     RECOMP_FLAGS_IN();
   6478     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6479     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6480     esp = esp + 0x10u; /* 0x3604307E: add esp, 0x10 */
   6481     _flag_k = FK_ADD;
   6482     ecx = edi; /* 0x36043081: mov ecx, edi */
   6483     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36043083: call dword ptr [0x3616fadc] */
   6484     RECOMP_FLAGS_IN();
   6485     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   6486     _cf = (eax) != 0;
   6487     eax = (uint32_t)(-(int32_t)eax); /* 0x36043089: neg eax */
   6488     _flag_k = FK_CMP;
   6489     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x3604308B: sbb eax, eax */
   6490       eax = _sc ? 0xFFFFFFFFu : 0;
   6491       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   6492       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   6493     edi = POP32_VAL(esp); /* 0x3604308D: pop edi */
   6494     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6495     eax = eax + 1; /* 0x3604308E: inc eax */
   6496     _flag_k = FK_INC;
   6497     esi = POP32_VAL(esp); /* 0x3604308F: pop esi */
   6498     ebp = POP32_VAL(esp); /* 0x36043090: pop ebp */
   6499     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36043091: ret 4 */
   6500     RECOMP_REGS_OUT();
   6501 }
   6502 
   6503 void sub_360430A0(void) {
   6504     int _fpu_cmp = 0;
   6505     uint32_t _cf = 0;
   6506     int _df = 1;
   6507     uint32_t _flag_k = FK_NONE;
   6508     uint32_t _flag_a = 0, _flag_b = 0;
   6509     uint32_t _itail_tgt = 0;
   6510     RECOMP_REGS_LOCALS
   6511     RECOMP_ENTER(0x360430A0u);
   6512 
   6513 L_360430A0:
   6514     PUSH32(esp, ebp); /* 0x360430A0: push ebp */
   6515     ebp = esp; /* 0x360430A1: mov ebp, esp */
   6516     PUSH32(esp, esi); /* 0x360430A3: push esi */
   6517     esi = ecx; /* 0x360430A4: mov esi, ecx */
   6518     PUSH32(esp, edi); /* 0x360430A6: push edi */
   6519     edi = MEM32(ebp + 0x8); /* 0x360430A7: mov edi, dword ptr [ebp + 8] */
   6520     eax = esi + 0x20; /* 0x360430AA: lea eax, [esi + 0x20] */
   6521     PUSH32(esp, eax); /* 0x360430AD: push eax */
   6522     PUSH32(esp, edi); /* 0x360430AE: push edi */
   6523     RECOMP_ICALL(0x3615B840u); /* 0x360430AF: call 0x3615b840 */ /* not lifted */
   6524     RECOMP_FLAGS_IN();
   6525     ecx = MEM32(esi + 0x28); /* 0x360430B4: mov ecx, dword ptr [esi + 0x28] */
   6526     PUSH32(esp, ecx); /* 0x360430B7: push ecx */
   6527     PUSH32(esp, edi); /* 0x360430B8: push edi */
   6528     RECOMP_ICALL(0x3601DD10u); /* 0x360430B9: call 0x3601dd10 */ /* not lifted */
   6529     RECOMP_FLAGS_IN();
   6530     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6531     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6532     esp = esp + 0x10u; /* 0x360430BE: add esp, 0x10 */
   6533     _flag_k = FK_ADD;
   6534     edi = POP32_VAL(esp); /* 0x360430C1: pop edi */
   6535     esi = POP32_VAL(esp); /* 0x360430C2: pop esi */
   6536     ebp = POP32_VAL(esp); /* 0x360430C3: pop ebp */
   6537     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360430C4: ret 4 */
   6538     RECOMP_REGS_OUT();
   6539 }
   6540 
   6541 void sub_360430D0(void) {
   6542     int _fpu_cmp = 0;
   6543     uint32_t _cf = 0;
   6544     int _df = 1;
   6545     uint32_t _flag_k = FK_NONE;
   6546     uint32_t _flag_a = 0, _flag_b = 0;
   6547     uint32_t _itail_tgt = 0;
   6548     RECOMP_REGS_LOCALS
   6549     RECOMP_ENTER(0x360430D0u);
   6550 
   6551 L_360430D0:
   6552     PUSH32(esp, ebp); /* 0x360430D0: push ebp */
   6553     ebp = esp; /* 0x360430D1: mov ebp, esp */
   6554     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6555     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6556     esp = esp - 8; /* 0x360430D3: sub esp, 8 */
   6557     _flag_k = FK_CMP;
   6558     PUSH32(esp, ebx); /* 0x360430D6: push ebx */
   6559     PUSH32(esp, esi); /* 0x360430D7: push esi */
   6560     PUSH32(esp, edi); /* 0x360430D8: push edi */
   6561     edi = MEM32(0x3616FF70); /* 0x360430D9: mov edi, dword ptr [0x3616ff70] */
   6562     PUSH32(esp, 0); /* 0x360430DF: push 0 */
   6563     PUSH32(esp, 0x361B2CD8u); /* 0x360430E1: push 0x361b2cd8 */
   6564     esi = ecx; /* 0x360430E6: mov esi, ecx */
   6565     PUSH32(esp, 0x361B2CC0u); /* 0x360430E8: push 0x361b2cc0 */
   6566     eax = esi + 0x4; /* 0x360430ED: lea eax, [esi + 4] */
   6567     PUSH32(esp, 0); /* 0x360430F0: push 0 */
   6568     PUSH32(esp, eax); /* 0x360430F2: push eax */
   6569     MEM32(ebp + (-0x8)) = esi; /* 0x360430F3: mov dword ptr [ebp - 8], esi */
   6570     RECOMP_ICALL(edi); /* 0x360430F6: call edi */
   6571     RECOMP_FLAGS_IN();
   6572     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6573     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6574     esp = esp + 4; /* 0x360430F8: add esp, 4 */
   6575     _flag_k = FK_ADD;
   6576     PUSH32(esp, eax); /* 0x360430FB: push eax */
   6577     RECOMP_ICALL(0x3615FD86u); /* 0x360430FC: call 0x3615fd86 */ /* not lifted */
   6578     RECOMP_FLAGS_IN();
   6579     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   6580     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6581     esp = esp + 0x14u; /* 0x36043101: add esp, 0x14 */
   6582     _flag_k = FK_ADD;
   6583     /* test eax, eax */ /* 0x36043104: test eax, eax */
   6584     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6585     _cf = 0;
   6586     _flag_k = FK_TEST;
   6587     MEM32(ebp + (-0x4)) = eax; /* 0x36043106: mov dword ptr [ebp - 4], eax */
   6588     if (TEST_Z(_flag_a, _flag_b)) goto L_3604317E; /* 0x36043109: je 0x3604317e */
   6589 L_3604310B:
   6590     /* cmp MEM8(eax + 0x94), 1 */ /* 0x3604310B: cmp byte ptr [eax + 0x94], 1 */
   6591     _flag_a = (uint32_t)(MEM8(eax + 0x94)) << 24; _flag_b = (uint32_t)(1) << 24;
   6592     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6593     _flag_k = FK_NARROW(FK_CMP, 24);
   6594     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604317E; /* 0x36043112: je 0x3604317e */
   6595 L_36043114:
   6596     ecx = esi + 0x20; /* 0x36043114: lea ecx, [esi + 0x20] */
   6597     PUSH32(esp, ecx); /* 0x36043117: push ecx */
   6598     RECOMP_ICALL(edi); /* 0x36043118: call edi */
   6599     RECOMP_FLAGS_IN();
   6600     ebx = eax; /* 0x3604311A: mov ebx, eax */
   6601     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6602     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6603     esp = esp + 4; /* 0x3604311C: add esp, 4 */
   6604     _flag_k = FK_ADD;
   6605     /* test ebx, ebx */ /* 0x3604311F: test ebx, ebx */
   6606     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   6607     _cf = 0;
   6608     _flag_k = FK_TEST;
   6609     if (TEST_Z(_flag_a, _flag_b)) goto L_3604317E; /* 0x36043121: je 0x3604317e */
   6610 L_36043123:
   6611     /* cmp MEM8(ebx + 0x94), 1 */ /* 0x36043123: cmp byte ptr [ebx + 0x94], 1 */
   6612     _flag_a = (uint32_t)(MEM8(ebx + 0x94)) << 24; _flag_b = (uint32_t)(1) << 24;
   6613     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6614     _flag_k = FK_NARROW(FK_CMP, 24);
   6615     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604317E; /* 0x3604312A: je 0x3604317e */
   6616 L_3604312C:
   6617     edx = MEM32(esi + 0x28); /* 0x3604312C: mov edx, dword ptr [esi + 0x28] */
   6618     eax = MEM32(edx + 0x4); /* 0x3604312F: mov eax, dword ptr [edx + 4] */
   6619     esi = MEM32(eax); /* 0x36043132: mov esi, dword ptr [eax] */
   6620     /* cmp esi, eax */ /* 0x36043134: cmp esi, eax */
   6621     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   6622     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6623     _flag_k = FK_CMP;
   6624     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604317E; /* 0x36043136: je 0x3604317e */
   6625 L_36043138:
   6626     edi = esi + 0x8; /* 0x36043138: lea edi, [esi + 8] */
   6627     PUSH32(esp, edi); /* 0x3604313B: push edi */
   6628     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3604313C: call dword ptr [0x3616ff70] */
   6629     RECOMP_FLAGS_IN();
   6630     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6631     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6632     esp = esp + 4; /* 0x36043142: add esp, 4 */
   6633     _flag_k = FK_ADD;
   6634     /* test eax, eax */ /* 0x36043145: test eax, eax */
   6635     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6636     _cf = 0;
   6637     _flag_k = FK_TEST;
   6638     if (TEST_Z(_flag_a, _flag_b)) goto L_36043171; /* 0x36043147: je 0x36043171 */
   6639 L_36043149:
   6640     /* cmp MEM8(eax + 0x94), 1 */ /* 0x36043149: cmp byte ptr [eax + 0x94], 1 */
   6641     _flag_a = (uint32_t)(MEM8(eax + 0x94)) << 24; _flag_b = (uint32_t)(1) << 24;
   6642     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6643     _flag_k = FK_NARROW(FK_CMP, 24);
   6644     if (CMP_EQ(_flag_a, _flag_b)) goto L_36043171; /* 0x36043150: je 0x36043171 */
   6645 L_36043152:
   6646     ecx = MEM32(0x3616FC1C); /* 0x36043152: mov ecx, dword ptr [0x3616fc1c] */
   6647     edx = MEM32(ebx); /* 0x36043158: mov edx, dword ptr [ebx] */
   6648     PUSH32(esp, ecx); /* 0x3604315A: push ecx */
   6649     ecx = MEM32(0x3616FC18); /* 0x3604315B: mov ecx, dword ptr [0x3616fc18] */
   6650     PUSH32(esp, ecx); /* 0x36043161: push ecx */
   6651     PUSH32(esp, eax); /* 0x36043162: push eax */
   6652     ecx = ebx; /* 0x36043163: mov ecx, ebx */
   6653     RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x36043165: call dword ptr [edx + 0x20] */
   6654     RECOMP_FLAGS_IN();
   6655     ecx = MEM32(ebp + (-0x4)); /* 0x36043168: mov ecx, dword ptr [ebp - 4] */
   6656     PUSH32(esp, edi); /* 0x3604316B: push edi */
   6657     RECOMP_ICALL(0x36071B10u); /* 0x3604316C: call 0x36071b10 */ /* not lifted */
   6658     RECOMP_FLAGS_IN();
   6659 L_36043171:
   6660     edx = MEM32(ebp + (-0x8)); /* 0x36043171: mov edx, dword ptr [ebp - 8] */
   6661     eax = MEM32(edx + 0x28); /* 0x36043174: mov eax, dword ptr [edx + 0x28] */
   6662     esi = MEM32(esi); /* 0x36043177: mov esi, dword ptr [esi] */
   6663     /* cmp esi, MEM32(eax + 0x4) */ /* 0x36043179: cmp esi, dword ptr [eax + 4] */
   6664     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x4));
   6665     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6666     _flag_k = FK_CMP;
   6667     RECOMP_BACKEDGE();
   6668     if (CMP_NE(_flag_a, _flag_b)) goto L_36043138; /* 0x3604317C: jne 0x36043138 */
   6669 L_3604317E:
   6670     edi = POP32_VAL(esp); /* 0x3604317E: pop edi */
   6671     esi = POP32_VAL(esp); /* 0x3604317F: pop esi */
   6672     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6673     eax = 0; /* 0x36043180: xor eax, eax */
   6674     _cf = 0;
   6675     _flag_k = FK_TEST;
   6676     ebx = POP32_VAL(esp); /* 0x36043182: pop ebx */
   6677     esp = ebp; /* 0x36043183: mov esp, ebp */
   6678     ebp = POP32_VAL(esp); /* 0x36043185: pop ebp */
   6679     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36043186: ret  */
   6680     RECOMP_REGS_OUT();
   6681 }
   6682 
   6683 void sub_36043190(void) {
   6684     int _fpu_cmp = 0;
   6685     uint32_t _cf = 0;
   6686     int _df = 1;
   6687     uint32_t _flag_k = FK_NONE;
   6688     uint32_t _flag_a = 0, _flag_b = 0;
   6689     uint32_t _itail_tgt = 0;
   6690     RECOMP_REGS_LOCALS
   6691     RECOMP_ENTER(0x36043190u);
   6692 
   6693 L_36043190:
   6694     PUSH32(esp, esi); /* 0x36043190: push esi */
   6695     esi = ecx; /* 0x36043191: mov esi, ecx */
   6696     RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x36043193: call dword ptr [0x3616ffd0] */
   6697     RECOMP_FLAGS_IN();
   6698     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6699     eax = 0; /* 0x36043199: xor eax, eax */
   6700     _cf = 0;
   6701     _flag_k = FK_TEST;
   6702     MEM32(esi + 0x20) = eax; /* 0x3604319B: mov dword ptr [esi + 0x20], eax */
   6703     MEM32(esi + 0x24) = eax; /* 0x3604319E: mov dword ptr [esi + 0x24], eax */
   6704     MEM32(esi + 0x28) = eax; /* 0x360431A1: mov dword ptr [esi + 0x28], eax */
   6705     MEM32(esi) = 0x36170AF8u; /* 0x360431A4: mov dword ptr [esi], 0x36170af8 */
   6706     eax = esi; /* 0x360431AA: mov eax, esi */
   6707     esi = POP32_VAL(esp); /* 0x360431AC: pop esi */
   6708     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360431AD: ret  */
   6709     RECOMP_REGS_OUT();
   6710 }
   6711 
   6712 void sub_360431B0(void) {
   6713     int _fpu_cmp = 0;
   6714     uint32_t _cf = 0;
   6715     int _df = 1;
   6716     uint32_t _flag_k = FK_NONE;
   6717     uint32_t _flag_a = 0, _flag_b = 0;
   6718     uint32_t _itail_tgt = 0;
   6719     RECOMP_REGS_LOCALS
   6720     RECOMP_ENTER(0x360431B0u);
   6721 
   6722 L_360431B0:
   6723     PUSH32(esp, ebp); /* 0x360431B0: push ebp */
   6724     ebp = esp; /* 0x360431B1: mov ebp, esp */
   6725     PUSH32(esp, esi); /* 0x360431B3: push esi */
   6726     esi = ecx; /* 0x360431B4: mov esi, ecx */
   6727     RECOMP_ICALL(0x360431E0u); /* 0x360431B6: call 0x360431e0 */ /* not lifted */
   6728     RECOMP_FLAGS_IN();
   6729     /* test MEM8(ebp + 0x8), 1 */ /* 0x360431BB: test byte ptr [ebp + 8], 1 */
   6730     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   6731     _cf = 0;
   6732     _flag_k = FK_NARROW(FK_TEST, 24);
   6733     if (TEST_Z(_flag_a, _flag_b)) goto L_360431CA; /* 0x360431BF: je 0x360431ca */
   6734 L_360431C1:
   6735     PUSH32(esp, esi); /* 0x360431C1: push esi */
   6736     RECOMP_ICALL(0x3615FCC4u); /* 0x360431C2: call 0x3615fcc4 */ /* not lifted */
   6737     RECOMP_FLAGS_IN();
   6738     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6739     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6740     esp = esp + 4; /* 0x360431C7: add esp, 4 */
   6741     _flag_k = FK_ADD;
   6742 L_360431CA:
   6743     eax = esi; /* 0x360431CA: mov eax, esi */
   6744     esi = POP32_VAL(esp); /* 0x360431CC: pop esi */
   6745     ebp = POP32_VAL(esp); /* 0x360431CD: pop ebp */
   6746     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360431CE: ret 4 */
   6747     RECOMP_REGS_OUT();
   6748 }
   6749 
   6750 void sub_360431E0(void) {
   6751     int _fpu_cmp = 0;
   6752     uint32_t _cf = 0;
   6753     int _df = 1;
   6754     uint32_t _flag_k = FK_NONE;
   6755     uint32_t _flag_a = 0, _flag_b = 0;
   6756     uint32_t _itail_tgt = 0;
   6757     RECOMP_REGS_LOCALS
   6758     RECOMP_ENTER(0x360431E0u);
   6759 
   6760 L_360431E0:
   6761     MEM32(ecx) = 0x36170AF8u; /* 0x360431E0: mov dword ptr [ecx], 0x36170af8 */
   6762 L_360431E6:
   6763     { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; }
   6764     { RECOMP_REGS_OUT(); return; } /* end of function */
   6765   _ljump:
   6766     switch (_itail_tgt) {
   6767       case 0x360431E0u: goto L_360431E0;
   6768       case 0x360431E6u: goto L_360431E6;
   6769       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   6770     }
   6771     RECOMP_REGS_OUT();
   6772 }
   6773 
   6774 void sub_360431F0(void) {
   6775     int _fpu_cmp = 0;
   6776     uint32_t _cf = 0;
   6777     int _df = 1;
   6778     uint32_t _flag_k = FK_NONE;
   6779     uint32_t _flag_a = 0, _flag_b = 0;
   6780     uint32_t _itail_tgt = 0;
   6781     RECOMP_REGS_LOCALS
   6782     RECOMP_ENTER(0x360431F0u);
   6783 
   6784 L_360431F0:
   6785     PUSH32(esp, ebp); /* 0x360431F0: push ebp */
   6786     ebp = esp; /* 0x360431F1: mov ebp, esp */
   6787     PUSH32(esp, ebx); /* 0x360431F3: push ebx */
   6788     ebx = MEM32(0x3616FAD0); /* 0x360431F4: mov ebx, dword ptr [0x3616fad0] */
   6789     PUSH32(esp, esi); /* 0x360431FA: push esi */
   6790     esi = ecx; /* 0x360431FB: mov esi, ecx */
   6791     PUSH32(esp, edi); /* 0x360431FD: push edi */
   6792     edi = MEM32(ebp + 0x8); /* 0x360431FE: mov edi, dword ptr [ebp + 8] */
   6793     eax = esi + 0x20; /* 0x36043201: lea eax, [esi + 0x20] */
   6794     PUSH32(esp, eax); /* 0x36043204: push eax */
   6795     ecx = edi; /* 0x36043205: mov ecx, edi */
   6796     RECOMP_ICALL(ebx); /* 0x36043207: call ebx */
   6797     RECOMP_FLAGS_IN();
   6798     ecx = esi + 0x24; /* 0x36043209: lea ecx, [esi + 0x24] */
   6799     PUSH32(esp, ecx); /* 0x3604320C: push ecx */
   6800     ecx = edi; /* 0x3604320D: mov ecx, edi */
   6801     RECOMP_ICALL(ebx); /* 0x3604320F: call ebx */
   6802     RECOMP_FLAGS_IN();
   6803     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x28u);
   6804     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6805     esi = esi + 0x28u; /* 0x36043211: add esi, 0x28 */
   6806     _flag_k = FK_ADD;
   6807     PUSH32(esp, esi); /* 0x36043214: push esi */
   6808     ecx = edi; /* 0x36043215: mov ecx, edi */
   6809     RECOMP_ICALL(ebx); /* 0x36043217: call ebx */
   6810     RECOMP_FLAGS_IN();
   6811     ecx = edi; /* 0x36043219: mov ecx, edi */
   6812     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x3604321B: call dword ptr [0x3616fadc] */
   6813     RECOMP_FLAGS_IN();
   6814     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   6815     _cf = (eax) != 0;
   6816     eax = (uint32_t)(-(int32_t)eax); /* 0x36043221: neg eax */
   6817     _flag_k = FK_CMP;
   6818     edi = POP32_VAL(esp); /* 0x36043223: pop edi */
   6819     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36043224: sbb eax, eax */
   6820       eax = _sc ? 0xFFFFFFFFu : 0;
   6821       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   6822       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   6823     esi = POP32_VAL(esp); /* 0x36043226: pop esi */
   6824     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6825     eax = eax + 1; /* 0x36043227: inc eax */
   6826     _flag_k = FK_INC;
   6827     ebx = POP32_VAL(esp); /* 0x36043228: pop ebx */
   6828     ebp = POP32_VAL(esp); /* 0x36043229: pop ebp */
   6829     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604322A: ret 4 */
   6830     RECOMP_REGS_OUT();
   6831 }
   6832 
   6833 void sub_36043230(void) {
   6834     int _fpu_cmp = 0;
   6835     uint32_t _cf = 0;
   6836     int _df = 1;
   6837     uint32_t _flag_k = FK_NONE;
   6838     uint32_t _flag_a = 0, _flag_b = 0;
   6839     uint32_t _itail_tgt = 0;
   6840     RECOMP_REGS_LOCALS
   6841     RECOMP_ENTER(0x36043230u);
   6842 
   6843 L_36043230:
   6844     PUSH32(esp, ebp); /* 0x36043230: push ebp */
   6845     ebp = esp; /* 0x36043231: mov ebp, esp */
   6846     PUSH32(esp, ebx); /* 0x36043233: push ebx */
   6847     ebx = MEM32(0x3616FAD4); /* 0x36043234: mov ebx, dword ptr [0x3616fad4] */
   6848     PUSH32(esp, esi); /* 0x3604323A: push esi */
   6849     esi = ecx; /* 0x3604323B: mov esi, ecx */
   6850     eax = MEM32(esi + 0x20); /* 0x3604323D: mov eax, dword ptr [esi + 0x20] */
   6851     PUSH32(esp, edi); /* 0x36043240: push edi */
   6852     edi = MEM32(ebp + 0x8); /* 0x36043241: mov edi, dword ptr [ebp + 8] */
   6853     PUSH32(esp, eax); /* 0x36043244: push eax */
   6854     ecx = edi; /* 0x36043245: mov ecx, edi */
   6855     RECOMP_ICALL(ebx); /* 0x36043247: call ebx */
   6856     RECOMP_FLAGS_IN();
   6857     ecx = MEM32(esi + 0x24); /* 0x36043249: mov ecx, dword ptr [esi + 0x24] */
   6858     PUSH32(esp, ecx); /* 0x3604324C: push ecx */
   6859     ecx = edi; /* 0x3604324D: mov ecx, edi */
   6860     RECOMP_ICALL(ebx); /* 0x3604324F: call ebx */
   6861     RECOMP_FLAGS_IN();
   6862     edx = MEM32(esi + 0x28); /* 0x36043251: mov edx, dword ptr [esi + 0x28] */
   6863     PUSH32(esp, edx); /* 0x36043254: push edx */
   6864     ecx = edi; /* 0x36043255: mov ecx, edi */
   6865     RECOMP_ICALL(ebx); /* 0x36043257: call ebx */
   6866     RECOMP_FLAGS_IN();
   6867     edi = POP32_VAL(esp); /* 0x36043259: pop edi */
   6868     esi = POP32_VAL(esp); /* 0x3604325A: pop esi */
   6869     ebx = POP32_VAL(esp); /* 0x3604325B: pop ebx */
   6870     ebp = POP32_VAL(esp); /* 0x3604325C: pop ebp */
   6871     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604325D: ret 4 */
   6872     RECOMP_REGS_OUT();
   6873 }
   6874 
   6875 void sub_36043260(void) {
   6876     int _fpu_cmp = 0;
   6877     uint32_t _cf = 0;
   6878     int _df = 1;
   6879     uint32_t _flag_k = FK_NONE;
   6880     uint32_t _flag_a = 0, _flag_b = 0;
   6881     uint32_t _itail_tgt = 0;
   6882     RECOMP_REGS_LOCALS
   6883     RECOMP_ENTER(0x36043260u);
   6884 
   6885 L_36043260:
   6886     PUSH32(esp, esi); /* 0x36043260: push esi */
   6887     PUSH32(esp, 0); /* 0x36043261: push 0 */
   6888     PUSH32(esp, 0x361B2CD8u); /* 0x36043263: push 0x361b2cd8 */
   6889     esi = ecx; /* 0x36043268: mov esi, ecx */
   6890     PUSH32(esp, 0x361B2CC0u); /* 0x3604326A: push 0x361b2cc0 */
   6891     eax = esi + 0x4; /* 0x3604326F: lea eax, [esi + 4] */
   6892     PUSH32(esp, 0); /* 0x36043272: push 0 */
   6893     PUSH32(esp, eax); /* 0x36043274: push eax */
   6894     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36043275: call dword ptr [0x3616ff70] */
   6895     RECOMP_FLAGS_IN();
   6896     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6897     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6898     esp = esp + 4; /* 0x3604327B: add esp, 4 */
   6899     _flag_k = FK_ADD;
   6900     PUSH32(esp, eax); /* 0x3604327E: push eax */
   6901     RECOMP_ICALL(0x3615FD86u); /* 0x3604327F: call 0x3615fd86 */ /* not lifted */
   6902     RECOMP_FLAGS_IN();
   6903     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   6904     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6905     esp = esp + 0x14u; /* 0x36043284: add esp, 0x14 */
   6906     _flag_k = FK_ADD;
   6907     /* test eax, eax */ /* 0x36043287: test eax, eax */
   6908     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6909     _cf = 0;
   6910     _flag_k = FK_TEST;
   6911     if (TEST_Z(_flag_a, _flag_b)) goto L_360432A3; /* 0x36043289: je 0x360432a3 */
   6912 L_3604328B:
   6913     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x20u);
   6914     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6915     esi = esi + 0x20u; /* 0x3604328B: add esi, 0x20 */
   6916     _flag_k = FK_ADD;
   6917     ecx = MEM32(esi); /* 0x3604328E: mov ecx, dword ptr [esi] */
   6918     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x194u);
   6919     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6920     eax = eax + 0x194u; /* 0x36043290: add eax, 0x194 */
   6921     _flag_k = FK_ADD;
   6922     MEM32(eax) = ecx; /* 0x36043295: mov dword ptr [eax], ecx */
   6923     edx = MEM32(esi + 0x4); /* 0x36043297: mov edx, dword ptr [esi + 4] */
   6924     MEM32(eax + 0x4) = edx; /* 0x3604329A: mov dword ptr [eax + 4], edx */
   6925     ecx = MEM32(esi + 0x8); /* 0x3604329D: mov ecx, dword ptr [esi + 8] */
   6926     MEM32(eax + 0x8) = ecx; /* 0x360432A0: mov dword ptr [eax + 8], ecx */
   6927 L_360432A3:
   6928     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6929     eax = 0; /* 0x360432A3: xor eax, eax */
   6930     _cf = 0;
   6931     _flag_k = FK_TEST;
   6932     esi = POP32_VAL(esp); /* 0x360432A5: pop esi */
   6933     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360432A6: ret  */
   6934     RECOMP_REGS_OUT();
   6935 }
   6936 
   6937 void sub_360432B0(void) {
   6938     int _fpu_cmp = 0;
   6939     uint32_t _cf = 0;
   6940     int _df = 1;
   6941     uint32_t _flag_k = FK_NONE;
   6942     uint32_t _flag_a = 0, _flag_b = 0;
   6943     uint32_t _itail_tgt = 0;
   6944     RECOMP_REGS_LOCALS
   6945     RECOMP_ENTER(0x360432B0u);
   6946 
   6947 L_360432B0:
   6948     PUSH32(esp, esi); /* 0x360432B0: push esi */
   6949     esi = ecx; /* 0x360432B1: mov esi, ecx */
   6950     eax = esi + 0x4; /* 0x360432B3: lea eax, [esi + 4] */
   6951     PUSH32(esp, edi); /* 0x360432B6: push edi */
   6952     PUSH32(esp, eax); /* 0x360432B7: push eax */
   6953     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360432B8: call dword ptr [0x3616ff70] */
   6954     RECOMP_FLAGS_IN();
   6955     PUSH32(esp, 0xCu); /* 0x360432BE: push 0xc */
   6956     edi = eax; /* 0x360432C0: mov edi, eax */
   6957     RECOMP_ICALL(0x3615FD6Au); /* 0x360432C2: call 0x3615fd6a */ /* not lifted */
   6958     RECOMP_FLAGS_IN();
   6959     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6960     ecx = 0; /* 0x360432C7: xor ecx, ecx */
   6961     _cf = 0;
   6962     _flag_k = FK_TEST;
   6963     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6964     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6965     esp = esp + 8; /* 0x360432C9: add esp, 8 */
   6966     _flag_k = FK_ADD;
   6967     /* cmp eax, ecx */ /* 0x360432CC: cmp eax, ecx */
   6968     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6969     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6970     _flag_k = FK_CMP;
   6971     if (CMP_EQ(_flag_a, _flag_b)) goto L_360432DA; /* 0x360432CE: je 0x360432da */
   6972 L_360432D0:
   6973     MEM32(eax) = ecx; /* 0x360432D0: mov dword ptr [eax], ecx */
   6974     MEM32(eax + 0x4) = ecx; /* 0x360432D2: mov dword ptr [eax + 4], ecx */
   6975     MEM32(eax + 0x8) = ecx; /* 0x360432D5: mov dword ptr [eax + 8], ecx */
   6976     goto L_360432DC; /* 0x360432D8: jmp 0x360432dc */
   6977 L_360432DA:
   6978     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6979     eax = 0; /* 0x360432DA: xor eax, eax */
   6980     _cf = 0;
   6981     _flag_k = FK_TEST;
   6982 L_360432DC:
   6983     ecx = MEM32(esi + 0x20); /* 0x360432DC: mov ecx, dword ptr [esi + 0x20] */
   6984     MEM32(eax) = ecx; /* 0x360432DF: mov dword ptr [eax], ecx */
   6985     edx = MEM32(esi + 0x24); /* 0x360432E1: mov edx, dword ptr [esi + 0x24] */
   6986     MEM32(eax + 0x4) = edx; /* 0x360432E4: mov dword ptr [eax + 4], edx */
   6987     fp_push((double)(int32_t)MEM32(esi + 0x28)); /* 0x360432E7: fild dword ptr [esi + 0x28] */
   6988     PUSH32(esp, eax); /* 0x360432EA: push eax */
   6989     ecx = edi; /* 0x360432EB: mov ecx, edi */
   6990     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x8) = _v; } /* 0x360432ED: fstp dword ptr [eax + 8] */
   6991     RECOMP_ICALL(0x3603FDF0u); /* 0x360432F0: call 0x3603fdf0 */ /* not lifted */
   6992     RECOMP_FLAGS_IN();
   6993     eax = edi; /* 0x360432F5: mov eax, edi */
   6994     edi = POP32_VAL(esp); /* 0x360432F7: pop edi */
   6995     esi = POP32_VAL(esp); /* 0x360432F8: pop esi */
   6996     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360432F9: ret  */
   6997     RECOMP_REGS_OUT();
   6998 }
   6999 
   7000 void sub_36043300(void) {
   7001     int _fpu_cmp = 0;
   7002     uint32_t _cf = 0;
   7003     int _df = 1;
   7004     uint32_t _flag_k = FK_NONE;
   7005     uint32_t _flag_a = 0, _flag_b = 0;
   7006     uint32_t _itail_tgt = 0;
   7007     RECOMP_REGS_LOCALS
   7008     RECOMP_ENTER(0x36043300u);
   7009 
   7010 L_36043300:
   7011     PUSH32(esp, ebp); /* 0x36043300: push ebp */
   7012     ebp = esp; /* 0x36043301: mov ebp, esp */
   7013     PUSH32(esp, ebx); /* 0x36043303: push ebx */
   7014     ebx = MEM32(0x3616FA8C); /* 0x36043304: mov ebx, dword ptr [0x3616fa8c] */
   7015     PUSH32(esp, esi); /* 0x3604330A: push esi */
   7016     esi = ecx; /* 0x3604330B: mov esi, ecx */
   7017     PUSH32(esp, edi); /* 0x3604330D: push edi */
   7018     edi = MEM32(ebp + 0x8); /* 0x3604330E: mov edi, dword ptr [ebp + 8] */
   7019     eax = esi + 0x20; /* 0x36043311: lea eax, [esi + 0x20] */
   7020     PUSH32(esp, eax); /* 0x36043314: push eax */
   7021     ecx = edi; /* 0x36043315: mov ecx, edi */
   7022     RECOMP_ICALL(ebx); /* 0x36043317: call ebx */
   7023     RECOMP_FLAGS_IN();
   7024     ecx = esi + 0x24; /* 0x36043319: lea ecx, [esi + 0x24] */
   7025     PUSH32(esp, ecx); /* 0x3604331C: push ecx */
   7026     ecx = edi; /* 0x3604331D: mov ecx, edi */
   7027     RECOMP_ICALL(ebx); /* 0x3604331F: call ebx */
   7028     RECOMP_FLAGS_IN();
   7029     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x28u);
   7030     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7031     esi = esi + 0x28u; /* 0x36043321: add esi, 0x28 */
   7032     _flag_k = FK_ADD;
   7033     PUSH32(esp, esi); /* 0x36043324: push esi */
   7034     ecx = edi; /* 0x36043325: mov ecx, edi */
   7035     RECOMP_ICALL(ebx); /* 0x36043327: call ebx */
   7036     RECOMP_FLAGS_IN();
   7037     ecx = edi; /* 0x36043329: mov ecx, edi */
   7038     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x3604332B: call dword ptr [0x3616fadc] */
   7039     RECOMP_FLAGS_IN();
   7040     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   7041     _cf = (eax) != 0;
   7042     eax = (uint32_t)(-(int32_t)eax); /* 0x36043331: neg eax */
   7043     _flag_k = FK_CMP;
   7044     edi = POP32_VAL(esp); /* 0x36043333: pop edi */
   7045     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36043334: sbb eax, eax */
   7046       eax = _sc ? 0xFFFFFFFFu : 0;
   7047       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   7048       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   7049     esi = POP32_VAL(esp); /* 0x36043336: pop esi */
   7050     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7051     eax = eax + 1; /* 0x36043337: inc eax */
   7052     _flag_k = FK_INC;
   7053     ebx = POP32_VAL(esp); /* 0x36043338: pop ebx */
   7054     ebp = POP32_VAL(esp); /* 0x36043339: pop ebp */
   7055     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604333A: ret 4 */
   7056     RECOMP_REGS_OUT();
   7057 }
   7058 
   7059 void sub_36043340(void) {
   7060     int _fpu_cmp = 0;
   7061     uint32_t _cf = 0;
   7062     int _df = 1;
   7063     uint32_t _flag_k = FK_NONE;
   7064     uint32_t _flag_a = 0, _flag_b = 0;
   7065     uint32_t _itail_tgt = 0;
   7066     RECOMP_REGS_LOCALS
   7067     RECOMP_ENTER(0x36043340u);
   7068 
   7069 L_36043340:
   7070     PUSH32(esp, ebp); /* 0x36043340: push ebp */
   7071     ebp = esp; /* 0x36043341: mov ebp, esp */
   7072     PUSH32(esp, ebx); /* 0x36043343: push ebx */
   7073     ebx = MEM32(0x3616FAEC); /* 0x36043344: mov ebx, dword ptr [0x3616faec] */
   7074     PUSH32(esp, esi); /* 0x3604334A: push esi */
   7075     esi = ecx; /* 0x3604334B: mov esi, ecx */
   7076     eax = MEM32(esi + 0x20); /* 0x3604334D: mov eax, dword ptr [esi + 0x20] */
   7077     PUSH32(esp, edi); /* 0x36043350: push edi */
   7078     edi = MEM32(ebp + 0x8); /* 0x36043351: mov edi, dword ptr [ebp + 8] */
   7079     PUSH32(esp, eax); /* 0x36043354: push eax */
   7080     ecx = edi; /* 0x36043355: mov ecx, edi */
   7081     RECOMP_ICALL(ebx); /* 0x36043357: call ebx */
   7082     RECOMP_FLAGS_IN();
   7083     ecx = MEM32(esi + 0x24); /* 0x36043359: mov ecx, dword ptr [esi + 0x24] */
   7084     PUSH32(esp, ecx); /* 0x3604335C: push ecx */
   7085     ecx = edi; /* 0x3604335D: mov ecx, edi */
   7086     RECOMP_ICALL(ebx); /* 0x3604335F: call ebx */
   7087     RECOMP_FLAGS_IN();
   7088     edx = MEM32(esi + 0x28); /* 0x36043361: mov edx, dword ptr [esi + 0x28] */
   7089     PUSH32(esp, edx); /* 0x36043364: push edx */
   7090     ecx = edi; /* 0x36043365: mov ecx, edi */
   7091     RECOMP_ICALL(ebx); /* 0x36043367: call ebx */
   7092     RECOMP_FLAGS_IN();
   7093     edi = POP32_VAL(esp); /* 0x36043369: pop edi */
   7094     esi = POP32_VAL(esp); /* 0x3604336A: pop esi */
   7095     ebx = POP32_VAL(esp); /* 0x3604336B: pop ebx */
   7096     ebp = POP32_VAL(esp); /* 0x3604336C: pop ebp */
   7097     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604336D: ret 4 */
   7098     RECOMP_REGS_OUT();
   7099 }
   7100 
   7101 void sub_36043370(void) {
   7102     int _fpu_cmp = 0;
   7103     uint32_t _cf = 0;
   7104     int _df = 1;
   7105     uint32_t _flag_k = FK_NONE;
   7106     uint32_t _flag_a = 0, _flag_b = 0;
   7107     uint32_t _itail_tgt = 0;
   7108     RECOMP_REGS_LOCALS
   7109     RECOMP_ENTER(0x36043370u);
   7110 
   7111 L_36043370:
   7112     PUSH32(esp, ebp); /* 0x36043370: push ebp */
   7113     ebp = esp; /* 0x36043371: mov ebp, esp */
   7114     PUSH32(esp, 0xFFFFFFFFu); /* 0x36043373: push -1 */
   7115     PUSH32(esp, 0x36163DF9u); /* 0x36043375: push 0x36163df9 */
   7116     eax = MEM32(FS_BASE + (0)); /* 0x3604337A: mov eax, dword ptr fs:[0] */
   7117     PUSH32(esp, eax); /* 0x36043380: push eax */
   7118     MEM32(FS_BASE + (0)) = esp; /* 0x36043381: mov dword ptr fs:[0], esp */
   7119     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   7120     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7121     esp = esp - 0x14u; /* 0x36043388: sub esp, 0x14 */
   7122     _flag_k = FK_CMP;
   7123     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3604338B: mov al, byte ptr [ebp + 0xb] */
   7124     PUSH32(esp, ebx); /* 0x3604338E: push ebx */
   7125     PUSH32(esp, esi); /* 0x3604338F: push esi */
   7126     esi = ecx; /* 0x36043390: mov esi, ecx */
   7127     PUSH32(esp, edi); /* 0x36043392: push edi */
   7128     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   7129     ecx = ecx | 0xFFFFFFFFu; /* 0x36043393: or ecx, 0xffffffff */
   7130     _cf = 0;
   7131     _flag_k = FK_TEST;
   7132     MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x36043396: mov byte ptr [ebp - 0x20], al */
   7133     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7134     eax = 0; /* 0x36043399: xor eax, eax */
   7135     _cf = 0;
   7136     _flag_k = FK_TEST;
   7137     edi = 0x361B3D64u; /* 0x3604339B: mov edi, 0x361b3d64 */
   7138     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x360433A0: repne scasb al, byte ptr es:[edi] */
   7139     ecx = ~ecx; /* 0x360433A2: not ecx */
   7140     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   7141     ecx = ecx - 1; /* 0x360433A4: dec ecx */
   7142     _flag_k = FK_DEC;
   7143     ebx = ecx; /* 0x360433A5: mov ebx, ecx */
   7144     PUSH32(esp, 1); /* 0x360433A7: push 1 */
   7145     PUSH32(esp, ebx); /* 0x360433A9: push ebx */
   7146     ecx = ebp + (-0x20); /* 0x360433AA: lea ecx, [ebp - 0x20] */
   7147     MEM32(ebp + (-0x10)) = esi; /* 0x360433AD: mov dword ptr [ebp - 0x10], esi */
   7148     MEM32(ebp + (-0x1C)) = eax; /* 0x360433B0: mov dword ptr [ebp - 0x1c], eax */
   7149     MEM32(ebp + (-0x18)) = eax; /* 0x360433B3: mov dword ptr [ebp - 0x18], eax */
   7150     MEM32(ebp + (-0x14)) = eax; /* 0x360433B6: mov dword ptr [ebp - 0x14], eax */
   7151     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x360433B9: call dword ptr [0x3616f00c] */
   7152     RECOMP_FLAGS_IN();
   7153     /* test LO8(eax), LO8(eax) */ /* 0x360433BF: test al, al */
   7154     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7155     _cf = 0;
   7156     _flag_k = FK_NARROW(FK_TEST, 24);
   7157     if (TEST_Z(_flag_a, _flag_b)) goto L_360433E8; /* 0x360433C1: je 0x360433e8 */
   7158 L_360433C3:
   7159     edi = MEM32(ebp + (-0x1C)); /* 0x360433C3: mov edi, dword ptr [ebp - 0x1c] */
   7160     ecx = ebx; /* 0x360433C6: mov ecx, ebx */
   7161     edx = ecx; /* 0x360433C8: mov edx, ecx */
   7162     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x360433CA: shr ecx, 2 */
   7163     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7164     ecx = ecx >> 2u; /* 0x360433CA: shr ecx, 2 */
   7165     esi = 0x361B3D64u; /* 0x360433CD: mov esi, 0x361b3d64 */
   7166     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360433D2: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   7167     ecx = edx; /* 0x360433D4: mov ecx, edx */
   7168     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   7169     ecx = ecx & 3; /* 0x360433D6: and ecx, 3 */
   7170     _cf = 0;
   7171     _flag_k = FK_TEST;
   7172     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x360433D9: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   7173     eax = MEM32(ebp + (-0x1C)); /* 0x360433DB: mov eax, dword ptr [ebp - 0x1c] */
   7174     esi = MEM32(ebp + (-0x10)); /* 0x360433DE: mov esi, dword ptr [ebp - 0x10] */
   7175     MEM32(ebp + (-0x18)) = ebx; /* 0x360433E1: mov dword ptr [ebp - 0x18], ebx */
   7176     MEM8(eax + ebx) = (uint8_t)(0); /* 0x360433E4: mov byte ptr [eax + ebx], 0 */
   7177 L_360433E8:
   7178     edx = MEM32(ebp + 0x8); /* 0x360433E8: mov edx, dword ptr [ebp + 8] */
   7179     ecx = ebp + (-0x20); /* 0x360433EB: lea ecx, [ebp - 0x20] */
   7180     PUSH32(esp, ecx); /* 0x360433EE: push ecx */
   7181     PUSH32(esp, edx); /* 0x360433EF: push edx */
   7182     ecx = esi; /* 0x360433F0: mov ecx, esi */
   7183     MEM32(ebp + (-0x4)) = 0; /* 0x360433F2: mov dword ptr [ebp - 4], 0 */
   7184     RECOMP_ICALL(MEM32(0x3616FC0C)); /* 0x360433F9: call dword ptr [0x3616fc0c] */
   7185     RECOMP_FLAGS_IN();
   7186     eax = MEM32(ebp + (-0x1C)); /* 0x360433FF: mov eax, dword ptr [ebp - 0x1c] */
   7187     /* test eax, eax */ /* 0x36043402: test eax, eax */
   7188     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7189     _cf = 0;
   7190     _flag_k = FK_TEST;
   7191     if (TEST_Z(_flag_a, _flag_b)) goto L_36043422; /* 0x36043404: je 0x36043422 */
   7192 L_36043406:
   7193     ecx = eax + (-0x1); /* 0x36043406: lea ecx, [eax - 1] */
   7194     SET_LO8(eax, MEM8(ecx)); /* 0x36043409: mov al, byte ptr [ecx] */
   7195     /* test LO8(eax), LO8(eax) */ /* 0x3604340B: test al, al */
   7196     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7197     _cf = 0;
   7198     _flag_k = FK_NARROW(FK_TEST, 24);
   7199     if (TEST_Z(_flag_a, _flag_b)) goto L_36043419; /* 0x3604340D: je 0x36043419 */
   7200 L_3604340F:
   7201     /* cmp LO8(eax), 0xFFu */ /* 0x3604340F: cmp al, 0xff */
   7202     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   7203     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7204     _flag_k = FK_NARROW(FK_CMP, 24);
   7205     if (CMP_EQ(_flag_a, _flag_b)) goto L_36043419; /* 0x36043411: je 0x36043419 */
   7206 L_36043413:
   7207     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7208     SET_LO8(eax, LO8(eax) - 1); /* 0x36043413: dec al */
   7209     _flag_k = FK_NARROW(FK_DEC, 24);
   7210     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36043415: mov byte ptr [ecx], al */
   7211     goto L_36043422; /* 0x36043417: jmp 0x36043422 */
   7212 L_36043419:
   7213     PUSH32(esp, ecx); /* 0x36043419: push ecx */
   7214     RECOMP_ICALL(0x3615FCC4u); /* 0x3604341A: call 0x3615fcc4 */ /* not lifted */
   7215     RECOMP_FLAGS_IN();
   7216     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7217     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7218     esp = esp + 4; /* 0x3604341F: add esp, 4 */
   7219     _flag_k = FK_ADD;
   7220 L_36043422:
   7221     eax = MEM32(ebp + 0xC); /* 0x36043422: mov eax, dword ptr [ebp + 0xc] */
   7222     ecx = MEM32(ebp + 0x10); /* 0x36043425: mov ecx, dword ptr [ebp + 0x10] */
   7223     MEM32(esi + 0x20) = eax; /* 0x36043428: mov dword ptr [esi + 0x20], eax */
   7224     MEM32(esi + 0x24) = ecx; /* 0x3604342B: mov dword ptr [esi + 0x24], ecx */
   7225     ecx = MEM32(ebp + (-0xC)); /* 0x3604342E: mov ecx, dword ptr [ebp - 0xc] */
   7226     edi = POP32_VAL(esp); /* 0x36043431: pop edi */
   7227     MEM32(esi) = 0x3617046Cu; /* 0x36043432: mov dword ptr [esi], 0x3617046c */
   7228     eax = esi; /* 0x36043438: mov eax, esi */
   7229     esi = POP32_VAL(esp); /* 0x3604343A: pop esi */
   7230     ebx = POP32_VAL(esp); /* 0x3604343B: pop ebx */
   7231     MEM32(FS_BASE + (0)) = ecx; /* 0x3604343C: mov dword ptr fs:[0], ecx */
   7232     esp = ebp; /* 0x36043443: mov esp, ebp */
   7233     ebp = POP32_VAL(esp); /* 0x36043445: pop ebp */
   7234     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36043446: ret 0xc */
   7235     RECOMP_REGS_OUT();
   7236 }
   7237 
   7238 void sub_36043450(void) {
   7239     int _fpu_cmp = 0;
   7240     uint32_t _cf = 0;
   7241     int _df = 1;
   7242     uint32_t _flag_k = FK_NONE;
   7243     uint32_t _flag_a = 0, _flag_b = 0;
   7244     uint32_t _itail_tgt = 0;
   7245     RECOMP_REGS_LOCALS
   7246     RECOMP_ENTER(0x36043450u);
   7247 
   7248 L_36043450:
   7249     PUSH32(esp, esi); /* 0x36043450: push esi */
   7250     esi = ecx; /* 0x36043451: mov esi, ecx */
   7251     eax = esi + 0x4; /* 0x36043453: lea eax, [esi + 4] */
   7252     PUSH32(esp, edi); /* 0x36043456: push edi */
   7253     PUSH32(esp, eax); /* 0x36043457: push eax */
   7254     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36043458: call dword ptr [0x3616ff70] */
   7255     RECOMP_FLAGS_IN();
   7256     edi = eax; /* 0x3604345E: mov edi, eax */
   7257     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7258     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7259     esp = esp + 4; /* 0x36043460: add esp, 4 */
   7260     _flag_k = FK_ADD;
   7261     /* test edi, edi */ /* 0x36043463: test edi, edi */
   7262     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   7263     _cf = 0;
   7264     _flag_k = FK_TEST;
   7265     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604346A; /* 0x36043465: jne 0x3604346a */
   7266 L_36043467:
   7267     edi = POP32_VAL(esp); /* 0x36043467: pop edi */
   7268     esi = POP32_VAL(esp); /* 0x36043468: pop esi */
   7269     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36043469: ret  */
   7270 L_3604346A:
   7271     ecx = MEM32(esi + 0x24); /* 0x3604346A: mov ecx, dword ptr [esi + 0x24] */
   7272     edx = MEM32(esi + 0x20); /* 0x3604346D: mov edx, dword ptr [esi + 0x20] */
   7273     PUSH32(esp, ecx); /* 0x36043470: push ecx */
   7274     PUSH32(esp, edx); /* 0x36043471: push edx */
   7275     ecx = edi; /* 0x36043472: mov ecx, edi */
   7276     RECOMP_ICALL(0x36040640u); /* 0x36043474: call 0x36040640 */ /* not lifted */
   7277     RECOMP_FLAGS_IN();
   7278     eax = edi; /* 0x36043479: mov eax, edi */
   7279     edi = POP32_VAL(esp); /* 0x3604347B: pop edi */
   7280     esi = POP32_VAL(esp); /* 0x3604347C: pop esi */
   7281     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604347D: ret  */
   7282     RECOMP_REGS_OUT();
   7283 }
   7284 
   7285 void sub_36043480(void) {
   7286     int _fpu_cmp = 0;
   7287     uint32_t _cf = 0;
   7288     int _df = 1;
   7289     uint32_t _flag_k = FK_NONE;
   7290     uint32_t _flag_a = 0, _flag_b = 0;
   7291     uint32_t _itail_tgt = 0;
   7292     RECOMP_REGS_LOCALS
   7293     RECOMP_ENTER(0x36043480u);
   7294 
   7295 L_36043480:
   7296     PUSH32(esp, ebp); /* 0x36043480: push ebp */
   7297     ebp = esp; /* 0x36043481: mov ebp, esp */
   7298     PUSH32(esp, ebx); /* 0x36043483: push ebx */
   7299     ebx = MEM32(0x3616FA8C); /* 0x36043484: mov ebx, dword ptr [0x3616fa8c] */
   7300     PUSH32(esp, esi); /* 0x3604348A: push esi */
   7301     esi = ecx; /* 0x3604348B: mov esi, ecx */
   7302     PUSH32(esp, edi); /* 0x3604348D: push edi */
   7303     edi = MEM32(ebp + 0x8); /* 0x3604348E: mov edi, dword ptr [ebp + 8] */
   7304     eax = esi + 0x20; /* 0x36043491: lea eax, [esi + 0x20] */
   7305     PUSH32(esp, eax); /* 0x36043494: push eax */
   7306     ecx = edi; /* 0x36043495: mov ecx, edi */
   7307     RECOMP_ICALL(ebx); /* 0x36043497: call ebx */
   7308     RECOMP_FLAGS_IN();
   7309     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u);
   7310     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7311     esi = esi + 0x24u; /* 0x36043499: add esi, 0x24 */
   7312     _flag_k = FK_ADD;
   7313     PUSH32(esp, esi); /* 0x3604349C: push esi */
   7314     ecx = edi; /* 0x3604349D: mov ecx, edi */
   7315     RECOMP_ICALL(ebx); /* 0x3604349F: call ebx */
   7316     RECOMP_FLAGS_IN();
   7317     edi = POP32_VAL(esp); /* 0x360434A1: pop edi */
   7318     esi = POP32_VAL(esp); /* 0x360434A2: pop esi */
   7319     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7320     eax = 0; /* 0x360434A3: xor eax, eax */
   7321     _cf = 0;
   7322     _flag_k = FK_TEST;
   7323     ebx = POP32_VAL(esp); /* 0x360434A5: pop ebx */
   7324     ebp = POP32_VAL(esp); /* 0x360434A6: pop ebp */
   7325     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360434A7: ret 4 */
   7326     RECOMP_REGS_OUT();
   7327 }
   7328 
   7329 void sub_360434B0(void) {
   7330     int _fpu_cmp = 0;
   7331     uint32_t _cf = 0;
   7332     int _df = 1;
   7333     uint32_t _flag_k = FK_NONE;
   7334     uint32_t _flag_a = 0, _flag_b = 0;
   7335     uint32_t _itail_tgt = 0;
   7336     RECOMP_REGS_LOCALS
   7337     RECOMP_ENTER(0x360434B0u);
   7338 
   7339 L_360434B0:
   7340     PUSH32(esp, ebp); /* 0x360434B0: push ebp */
   7341     ebp = esp; /* 0x360434B1: mov ebp, esp */
   7342     PUSH32(esp, ebx); /* 0x360434B3: push ebx */
   7343     ebx = MEM32(0x3616FAEC); /* 0x360434B4: mov ebx, dword ptr [0x3616faec] */
   7344     PUSH32(esp, esi); /* 0x360434BA: push esi */
   7345     esi = ecx; /* 0x360434BB: mov esi, ecx */
   7346     eax = MEM32(esi + 0x20); /* 0x360434BD: mov eax, dword ptr [esi + 0x20] */
   7347     PUSH32(esp, edi); /* 0x360434C0: push edi */
   7348     edi = MEM32(ebp + 0x8); /* 0x360434C1: mov edi, dword ptr [ebp + 8] */
   7349     PUSH32(esp, eax); /* 0x360434C4: push eax */
   7350     ecx = edi; /* 0x360434C5: mov ecx, edi */
   7351     RECOMP_ICALL(ebx); /* 0x360434C7: call ebx */
   7352     RECOMP_FLAGS_IN();
   7353     ecx = MEM32(esi + 0x24); /* 0x360434C9: mov ecx, dword ptr [esi + 0x24] */
   7354     PUSH32(esp, ecx); /* 0x360434CC: push ecx */
   7355     ecx = edi; /* 0x360434CD: mov ecx, edi */
   7356     RECOMP_ICALL(ebx); /* 0x360434CF: call ebx */
   7357     RECOMP_FLAGS_IN();
   7358     edi = POP32_VAL(esp); /* 0x360434D1: pop edi */
   7359     esi = POP32_VAL(esp); /* 0x360434D2: pop esi */
   7360     ebx = POP32_VAL(esp); /* 0x360434D3: pop ebx */
   7361     ebp = POP32_VAL(esp); /* 0x360434D4: pop ebp */
   7362     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360434D5: ret 4 */
   7363     RECOMP_REGS_OUT();
   7364 }