aorecomp

Anarchy Online classic in the browser

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


client/game/pr.dll/lifted-0004.c (142887B)


      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_4100DB6C(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(0x4100DB6Cu);
     17 
     18 L_4100DB6C:
     19     { _itail_tgt = (uint32_t)(MEM32(0x4100F108)); goto _ljump; }
     20     { RECOMP_REGS_OUT(); return; } /* end of function */
     21   _ljump:
     22     switch (_itail_tgt) {
     23       case 0x4100DB6Cu: goto L_4100DB6C;
     24       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
     25     }
     26     RECOMP_REGS_OUT();
     27 }
     28 
     29 void sub_4100DB72(void) {
     30     int _fpu_cmp = 0;
     31     uint32_t _cf = 0;
     32     int _df = 1;
     33     uint32_t _flag_k = FK_NONE;
     34     uint32_t _flag_a = 0, _flag_b = 0;
     35     uint32_t _itail_tgt = 0;
     36     RECOMP_REGS_LOCALS
     37     RECOMP_ENTER(0x4100DB72u);
     38 
     39 L_4100DB72:
     40     { _itail_tgt = (uint32_t)(MEM32(0x4100F11C)); goto _ljump; }
     41     { RECOMP_REGS_OUT(); return; } /* end of function */
     42   _ljump:
     43     switch (_itail_tgt) {
     44       case 0x4100DB72u: goto L_4100DB72;
     45       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
     46     }
     47     RECOMP_REGS_OUT();
     48 }
     49 
     50 void sub_4100DB80(void) {
     51     int _fpu_cmp = 0;
     52     uint32_t _cf = 0;
     53     int _df = 1;
     54     uint32_t _flag_k = FK_NONE;
     55     uint32_t _flag_a = 0, _flag_b = 0;
     56     uint32_t _itail_tgt = 0;
     57     RECOMP_REGS_LOCALS
     58     RECOMP_ENTER(0x4100DB80u);
     59 
     60 L_4100DB80:
     61     { _itail_tgt = (uint32_t)(MEM32(0x4100F118)); goto _ljump; }
     62     { RECOMP_REGS_OUT(); return; } /* end of function */
     63   _ljump:
     64     switch (_itail_tgt) {
     65       case 0x4100DB80u: goto L_4100DB80;
     66       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
     67     }
     68     RECOMP_REGS_OUT();
     69 }
     70 
     71 void sub_4100DB86(void) {
     72     int _fpu_cmp = 0;
     73     uint32_t _cf = 0;
     74     int _df = 1;
     75     uint32_t _flag_k = FK_NONE;
     76     uint32_t _flag_a = 0, _flag_b = 0;
     77     uint32_t _itail_tgt = 0;
     78     RECOMP_REGS_LOCALS
     79     RECOMP_ENTER(0x4100DB86u);
     80 
     81 L_4100DB86:
     82     { _itail_tgt = (uint32_t)(MEM32(0x4100F104)); goto _ljump; }
     83     { RECOMP_REGS_OUT(); return; } /* end of function */
     84   _ljump:
     85     switch (_itail_tgt) {
     86       case 0x4100DB86u: goto L_4100DB86;
     87       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
     88     }
     89     RECOMP_REGS_OUT();
     90 }
     91 
     92 void sub_4100DB8C(void) {
     93     int _fpu_cmp = 0;
     94     uint32_t _cf = 0;
     95     int _df = 1;
     96     uint32_t _flag_k = FK_NONE;
     97     uint32_t _flag_a = 0, _flag_b = 0;
     98     uint32_t _itail_tgt = 0;
     99     RECOMP_REGS_LOCALS
    100     RECOMP_ENTER(0x4100DB8Cu);
    101 
    102 L_4100DB8C:
    103     /* cmp MEM32(0x41014AAC), 0xFFFFFFFFu */ /* 0x4100DB8C: cmp dword ptr [0x41014aac], -1 */
    104     _flag_a = (uint32_t)(MEM32(0x41014AAC)); _flag_b = (uint32_t)(0xFFFFFFFFu);
    105     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    106     _flag_k = FK_CMP;
    107     if (CMP_NE(_flag_a, _flag_b)) goto L_4100DBA1; /* 0x4100DB93: jne 0x4100dba1 */
    108 L_4100DB95:
    109     PUSH32(esp, MEM32(esp + 0x4)); /* 0x4100DB95: push dword ptr [esp + 4] */
    110     RECOMP_ICALL(MEM32(0x4100F0BC)); /* 0x4100DB99: call dword ptr [0x4100f0bc] */
    111     RECOMP_FLAGS_IN();
    112     ecx = POP32_VAL(esp); /* 0x4100DB9F: pop ecx */
    113     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100DBA0: ret  */
    114 L_4100DBA1:
    115     PUSH32(esp, 0x41014AA8u); /* 0x4100DBA1: push 0x41014aa8 */
    116     PUSH32(esp, 0x41014AACu); /* 0x4100DBA6: push 0x41014aac */
    117     PUSH32(esp, MEM32(esp + 0xC)); /* 0x4100DBAB: push dword ptr [esp + 0xc] */
    118     RECOMP_ICALL(0x4100DD36u); /* 0x4100DBAF: call 0x4100dd36 */ /* not lifted */
    119     RECOMP_FLAGS_IN();
    120     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    121     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    122     esp = esp + 0xCu; /* 0x4100DBB4: add esp, 0xc */
    123     _flag_k = FK_ADD;
    124     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100DBB7: ret  */
    125     RECOMP_REGS_OUT();
    126 }
    127 
    128 void sub_4100DBB8(void) {
    129     int _fpu_cmp = 0;
    130     uint32_t _cf = 0;
    131     int _df = 1;
    132     uint32_t _flag_k = FK_NONE;
    133     uint32_t _flag_a = 0, _flag_b = 0;
    134     uint32_t _itail_tgt = 0;
    135     RECOMP_REGS_LOCALS
    136     RECOMP_ENTER(0x4100DBB8u);
    137 
    138 L_4100DBB8:
    139     PUSH32(esp, MEM32(esp + 0x4)); /* 0x4100DBB8: push dword ptr [esp + 4] */
    140     RECOMP_ICALL(0x4100DB8Cu); /* 0x4100DBBC: call 0x4100db8c */ /* not lifted */
    141     RECOMP_FLAGS_IN();
    142     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
    143     _cf = (eax) != 0;
    144     eax = (uint32_t)(-(int32_t)eax); /* 0x4100DBC1: neg eax */
    145     _flag_k = FK_CMP;
    146     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x4100DBC3: sbb eax, eax */
    147       eax = _sc ? 0xFFFFFFFFu : 0;
    148       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
    149       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
    150     ecx = POP32_VAL(esp); /* 0x4100DBC5: pop ecx */
    151     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
    152     _cf = (eax) != 0;
    153     eax = (uint32_t)(-(int32_t)eax); /* 0x4100DBC6: neg eax */
    154     _flag_k = FK_CMP;
    155     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    156     eax = eax - 1; /* 0x4100DBC8: dec eax */
    157     _flag_k = FK_DEC;
    158     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100DBC9: ret  */
    159     RECOMP_REGS_OUT();
    160 }
    161 
    162 void sub_4100DBCA(void) {
    163     int _fpu_cmp = 0;
    164     uint32_t _cf = 0;
    165     int _df = 1;
    166     uint32_t _flag_k = FK_NONE;
    167     uint32_t _flag_a = 0, _flag_b = 0;
    168     uint32_t _itail_tgt = 0;
    169     RECOMP_REGS_LOCALS
    170     RECOMP_ENTER(0x4100DBCAu);
    171 
    172 L_4100DBCA:
    173     { _itail_tgt = (uint32_t)(MEM32(0x4100F0FC)); goto _ljump; }
    174     { RECOMP_REGS_OUT(); return; } /* end of function */
    175   _ljump:
    176     switch (_itail_tgt) {
    177       case 0x4100DBCAu: goto L_4100DBCA;
    178       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    179     }
    180     RECOMP_REGS_OUT();
    181 }
    182 
    183 void sub_4100DBD0(void) {
    184     int _fpu_cmp = 0;
    185     uint32_t _cf = 0;
    186     int _df = 1;
    187     uint32_t _flag_k = FK_NONE;
    188     uint32_t _flag_a = 0, _flag_b = 0;
    189     uint32_t _itail_tgt = 0;
    190     RECOMP_REGS_LOCALS
    191     RECOMP_ENTER(0x4100DBD0u);
    192 
    193 L_4100DBD0:
    194     eax = MEM32(esp + 0x8); /* 0x4100DBD0: mov eax, dword ptr [esp + 8] */
    195     /* test eax, eax */ /* 0x4100DBD4: test eax, eax */
    196     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    197     _cf = 0;
    198     _flag_k = FK_TEST;
    199     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100DBE6; /* 0x4100DBD6: jne 0x4100dbe6 */
    200 L_4100DBD8:
    201     /* cmp MEM32(0x41014A9C), eax */ /* 0x4100DBD8: cmp dword ptr [0x41014a9c], eax */
    202     _flag_a = (uint32_t)(MEM32(0x41014A9C)); _flag_b = (uint32_t)(eax);
    203     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    204     _flag_k = FK_CMP;
    205     if (CMP_LE(_flag_a, _flag_b)) goto L_4100DC0E; /* 0x4100DBDE: jle 0x4100dc0e */
    206 L_4100DBE0:
    207     _flag_a = (uint32_t)(MEM32(0x41014A9C)); _flag_b = (uint32_t)(1);
    208     MEM32(0x41014A9C) = MEM32(0x41014A9C) - 1; /* 0x4100DBE0: dec dword ptr [0x41014a9c] */
    209     _flag_k = FK_DEC;
    210 L_4100DBE6:
    211     ecx = MEM32(0x4100F0C8); /* 0x4100DBE6: mov ecx, dword ptr [0x4100f0c8] */
    212     /* cmp eax, 1 */ /* 0x4100DBEC: cmp eax, 1 */
    213     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    214     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    215     _flag_k = FK_CMP;
    216     ecx = MEM32(ecx); /* 0x4100DBEF: mov ecx, dword ptr [ecx] */
    217     MEM32(0x41014AA0) = ecx; /* 0x4100DBF1: mov dword ptr [0x41014aa0], ecx */
    218     if (CMP_NE(_flag_a, _flag_b)) goto L_4100DC38; /* 0x4100DBF7: jne 0x4100dc38 */
    219 L_4100DBF9:
    220     PUSH32(esp, 0x80u); /* 0x4100DBF9: push 0x80 */
    221     RECOMP_ICALL(MEM32(0x4100F0C4)); /* 0x4100DBFE: call dword ptr [0x4100f0c4] */
    222     RECOMP_FLAGS_IN();
    223     /* test eax, eax */ /* 0x4100DC04: test eax, eax */
    224     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    225     _cf = 0;
    226     _flag_k = FK_TEST;
    227     ecx = POP32_VAL(esp); /* 0x4100DC06: pop ecx */
    228     MEM32(0x41014AAC) = eax; /* 0x4100DC07: mov dword ptr [0x41014aac], eax */
    229     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100DC12; /* 0x4100DC0C: jne 0x4100dc12 */
    230 L_4100DC0E:
    231     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    232     eax = 0; /* 0x4100DC0E: xor eax, eax */
    233     _cf = 0;
    234     _flag_k = FK_TEST;
    235     goto L_4100DC78; /* 0x4100DC10: jmp 0x4100dc78 */
    236 L_4100DC12:
    237     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0);
    238     MEM32(eax) = MEM32(eax) & 0; /* 0x4100DC12: and dword ptr [eax], 0 */
    239     _cf = 0;
    240     _flag_k = FK_TEST;
    241     eax = MEM32(0x41014AAC); /* 0x4100DC15: mov eax, dword ptr [0x41014aac] */
    242     PUSH32(esp, 0x4101400Cu); /* 0x4100DC1A: push 0x4101400c */
    243     PUSH32(esp, 0x41014000u); /* 0x4100DC1F: push 0x41014000 */
    244     MEM32(0x41014AA8) = eax; /* 0x4100DC24: mov dword ptr [0x41014aa8], eax */
    245     RECOMP_ICALL(0x4100DD3Cu); /* 0x4100DC29: call 0x4100dd3c */ /* not lifted */
    246     RECOMP_FLAGS_IN();
    247     _flag_a = (uint32_t)(MEM32(0x41014A9C)); _flag_b = (uint32_t)(1);
    248     MEM32(0x41014A9C) = MEM32(0x41014A9C) + 1; /* 0x4100DC2E: inc dword ptr [0x41014a9c] */
    249     _flag_k = FK_INC;
    250     ecx = POP32_VAL(esp); /* 0x4100DC34: pop ecx */
    251     ecx = POP32_VAL(esp); /* 0x4100DC35: pop ecx */
    252     goto L_4100DC75; /* 0x4100DC36: jmp 0x4100dc75 */
    253 L_4100DC38:
    254     /* test eax, eax */ /* 0x4100DC38: test eax, eax */
    255     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    256     _cf = 0;
    257     _flag_k = FK_TEST;
    258     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100DC75; /* 0x4100DC3A: jne 0x4100dc75 */
    259 L_4100DC3C:
    260     eax = MEM32(0x41014AAC); /* 0x4100DC3C: mov eax, dword ptr [0x41014aac] */
    261     /* test eax, eax */ /* 0x4100DC41: test eax, eax */
    262     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    263     _cf = 0;
    264     _flag_k = FK_TEST;
    265     if (TEST_Z(_flag_a, _flag_b)) goto L_4100DC75; /* 0x4100DC43: je 0x4100dc75 */
    266 L_4100DC45:
    267     ecx = MEM32(0x41014AA8); /* 0x4100DC45: mov ecx, dword ptr [0x41014aa8] */
    268     PUSH32(esp, esi); /* 0x4100DC4B: push esi */
    269     esi = ecx + (-0x4); /* 0x4100DC4C: lea esi, [ecx - 4] */
    270 L_4100DC4F:
    271     /* cmp esi, eax */ /* 0x4100DC4F: cmp esi, eax */
    272     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
    273     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    274     _flag_k = FK_CMP;
    275     if (CMP_B(_flag_a, _flag_b)) goto L_4100DC65; /* 0x4100DC51: jb 0x4100dc65 */
    276 L_4100DC53:
    277     ecx = MEM32(esi); /* 0x4100DC53: mov ecx, dword ptr [esi] */
    278     /* test ecx, ecx */ /* 0x4100DC55: test ecx, ecx */
    279     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    280     _cf = 0;
    281     _flag_k = FK_TEST;
    282     if (TEST_Z(_flag_a, _flag_b)) goto L_4100DC60; /* 0x4100DC57: je 0x4100dc60 */
    283 L_4100DC59:
    284     RECOMP_ICALL(ecx); /* 0x4100DC59: call ecx */
    285     RECOMP_FLAGS_IN();
    286     eax = MEM32(0x41014AAC); /* 0x4100DC5B: mov eax, dword ptr [0x41014aac] */
    287 L_4100DC60:
    288     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
    289     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    290     esi = esi - 4; /* 0x4100DC60: sub esi, 4 */
    291     _flag_k = FK_CMP;
    292     RECOMP_BACKEDGE();
    293     goto L_4100DC4F; /* 0x4100DC63: jmp 0x4100dc4f */
    294 L_4100DC65:
    295     PUSH32(esp, eax); /* 0x4100DC65: push eax */
    296     RECOMP_ICALL(MEM32(0x4100F0B0)); /* 0x4100DC66: call dword ptr [0x4100f0b0] */
    297     RECOMP_FLAGS_IN();
    298     _flag_a = (uint32_t)(MEM32(0x41014AAC)); _flag_b = (uint32_t)(0);
    299     MEM32(0x41014AAC) = MEM32(0x41014AAC) & 0; /* 0x4100DC6C: and dword ptr [0x41014aac], 0 */
    300     _cf = 0;
    301     _flag_k = FK_TEST;
    302     ecx = POP32_VAL(esp); /* 0x4100DC73: pop ecx */
    303     esi = POP32_VAL(esp); /* 0x4100DC74: pop esi */
    304 L_4100DC75:
    305     PUSH32(esp, 1); /* 0x4100DC75: push 1 */
    306     eax = POP32_VAL(esp); /* 0x4100DC77: pop eax */
    307 L_4100DC78:
    308     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4100DC78: ret 0xc */
    309     RECOMP_REGS_OUT();
    310 }
    311 
    312 void sub_4100DC7B(void) {
    313     int _fpu_cmp = 0;
    314     uint32_t _cf = 0;
    315     int _df = 1;
    316     uint32_t _flag_k = FK_NONE;
    317     uint32_t _flag_a = 0, _flag_b = 0;
    318     uint32_t _itail_tgt = 0;
    319     RECOMP_REGS_LOCALS
    320     RECOMP_ENTER(0x4100DC7Bu);
    321 
    322 L_4100DC7B:
    323     PUSH32(esp, ebp); /* 0x4100DC7B: push ebp */
    324     ebp = esp; /* 0x4100DC7C: mov ebp, esp */
    325     PUSH32(esp, ebx); /* 0x4100DC7E: push ebx */
    326     ebx = MEM32(ebp + 0x8); /* 0x4100DC7F: mov ebx, dword ptr [ebp + 8] */
    327     PUSH32(esp, esi); /* 0x4100DC82: push esi */
    328     esi = MEM32(ebp + 0xC); /* 0x4100DC83: mov esi, dword ptr [ebp + 0xc] */
    329     PUSH32(esp, edi); /* 0x4100DC86: push edi */
    330     edi = MEM32(ebp + 0x10); /* 0x4100DC87: mov edi, dword ptr [ebp + 0x10] */
    331     /* test esi, esi */ /* 0x4100DC8A: test esi, esi */
    332     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
    333     _cf = 0;
    334     _flag_k = FK_TEST;
    335     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100DC97; /* 0x4100DC8C: jne 0x4100dc97 */
    336 L_4100DC8E:
    337     /* cmp MEM32(0x41014A9C), 0 */ /* 0x4100DC8E: cmp dword ptr [0x41014a9c], 0 */
    338     _flag_a = (uint32_t)(MEM32(0x41014A9C)); _flag_b = (uint32_t)(0);
    339     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    340     _flag_k = FK_CMP;
    341     goto L_4100DCBD; /* 0x4100DC95: jmp 0x4100dcbd */
    342 L_4100DC97:
    343     /* cmp esi, 1 */ /* 0x4100DC97: cmp esi, 1 */
    344     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
    345     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    346     _flag_k = FK_CMP;
    347     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100DCA1; /* 0x4100DC9A: je 0x4100dca1 */
    348 L_4100DC9C:
    349     /* cmp esi, 2 */ /* 0x4100DC9C: cmp esi, 2 */
    350     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2);
    351     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    352     _flag_k = FK_CMP;
    353     if (CMP_NE(_flag_a, _flag_b)) goto L_4100DCC3; /* 0x4100DC9F: jne 0x4100dcc3 */
    354 L_4100DCA1:
    355     eax = MEM32(0x41014AA4); /* 0x4100DCA1: mov eax, dword ptr [0x41014aa4] */
    356     /* test eax, eax */ /* 0x4100DCA6: test eax, eax */
    357     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    358     _cf = 0;
    359     _flag_k = FK_TEST;
    360     if (TEST_Z(_flag_a, _flag_b)) goto L_4100DCB3; /* 0x4100DCA8: je 0x4100dcb3 */
    361 L_4100DCAA:
    362     PUSH32(esp, edi); /* 0x4100DCAA: push edi */
    363     PUSH32(esp, esi); /* 0x4100DCAB: push esi */
    364     PUSH32(esp, ebx); /* 0x4100DCAC: push ebx */
    365     RECOMP_ICALL(eax); /* 0x4100DCAD: call eax */
    366     RECOMP_FLAGS_IN();
    367     /* test eax, eax */ /* 0x4100DCAF: test eax, eax */
    368     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    369     _cf = 0;
    370     _flag_k = FK_TEST;
    371     if (TEST_Z(_flag_a, _flag_b)) goto L_4100DCBF; /* 0x4100DCB1: je 0x4100dcbf */
    372 L_4100DCB3:
    373     PUSH32(esp, edi); /* 0x4100DCB3: push edi */
    374     PUSH32(esp, esi); /* 0x4100DCB4: push esi */
    375     PUSH32(esp, ebx); /* 0x4100DCB5: push ebx */
    376     RECOMP_ICALL(0x4100DBD0u); /* 0x4100DCB6: call 0x4100dbd0 */ /* not lifted */
    377     RECOMP_FLAGS_IN();
    378     /* test eax, eax */ /* 0x4100DCBB: test eax, eax */
    379     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    380     _cf = 0;
    381     _flag_k = FK_TEST;
    382 L_4100DCBD:
    383     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_4100DCC3; /* 0x4100DCBD: jne 0x4100dcc3 */
    384 L_4100DCBF:
    385     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    386     eax = 0; /* 0x4100DCBF: xor eax, eax */
    387     _cf = 0;
    388     _flag_k = FK_TEST;
    389     goto L_4100DD11; /* 0x4100DCC1: jmp 0x4100dd11 */
    390 L_4100DCC3:
    391     PUSH32(esp, edi); /* 0x4100DCC3: push edi */
    392     PUSH32(esp, esi); /* 0x4100DCC4: push esi */
    393     PUSH32(esp, ebx); /* 0x4100DCC5: push ebx */
    394     RECOMP_ICALL(0x4100DD42u); /* 0x4100DCC6: call 0x4100dd42 */ /* not lifted */
    395     RECOMP_FLAGS_IN();
    396     /* cmp esi, 1 */ /* 0x4100DCCB: cmp esi, 1 */
    397     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
    398     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    399     _flag_k = FK_CMP;
    400     MEM32(ebp + 0xC) = eax; /* 0x4100DCCE: mov dword ptr [ebp + 0xc], eax */
    401     if (CMP_NE(_flag_a, _flag_b)) goto L_4100DCDF; /* 0x4100DCD1: jne 0x4100dcdf */
    402 L_4100DCD3:
    403     /* test eax, eax */ /* 0x4100DCD3: test eax, eax */
    404     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    405     _cf = 0;
    406     _flag_k = FK_TEST;
    407     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100DD0E; /* 0x4100DCD5: jne 0x4100dd0e */
    408 L_4100DCD7:
    409     PUSH32(esp, edi); /* 0x4100DCD7: push edi */
    410     PUSH32(esp, eax); /* 0x4100DCD8: push eax */
    411     PUSH32(esp, ebx); /* 0x4100DCD9: push ebx */
    412     RECOMP_ICALL(0x4100DBD0u); /* 0x4100DCDA: call 0x4100dbd0 */ /* not lifted */
    413     RECOMP_FLAGS_IN();
    414 L_4100DCDF:
    415     /* test esi, esi */ /* 0x4100DCDF: test esi, esi */
    416     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
    417     _cf = 0;
    418     _flag_k = FK_TEST;
    419     if (TEST_Z(_flag_a, _flag_b)) goto L_4100DCE8; /* 0x4100DCE1: je 0x4100dce8 */
    420 L_4100DCE3:
    421     /* cmp esi, 3 */ /* 0x4100DCE3: cmp esi, 3 */
    422     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(3);
    423     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    424     _flag_k = FK_CMP;
    425     if (CMP_NE(_flag_a, _flag_b)) goto L_4100DD0E; /* 0x4100DCE6: jne 0x4100dd0e */
    426 L_4100DCE8:
    427     PUSH32(esp, edi); /* 0x4100DCE8: push edi */
    428     PUSH32(esp, esi); /* 0x4100DCE9: push esi */
    429     PUSH32(esp, ebx); /* 0x4100DCEA: push ebx */
    430     RECOMP_ICALL(0x4100DBD0u); /* 0x4100DCEB: call 0x4100dbd0 */ /* not lifted */
    431     RECOMP_FLAGS_IN();
    432     /* test eax, eax */ /* 0x4100DCF0: test eax, eax */
    433     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    434     _cf = 0;
    435     _flag_k = FK_TEST;
    436     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100DCF7; /* 0x4100DCF2: jne 0x4100dcf7 */
    437 L_4100DCF4:
    438     _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(eax);
    439     MEM32(ebp + 0xC) = MEM32(ebp + 0xC) & eax; /* 0x4100DCF4: and dword ptr [ebp + 0xc], eax */
    440     _cf = 0;
    441     _flag_k = FK_TEST;
    442 L_4100DCF7:
    443     /* cmp MEM32(ebp + 0xC), 0 */ /* 0x4100DCF7: cmp dword ptr [ebp + 0xc], 0 */
    444     _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(0);
    445     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    446     _flag_k = FK_CMP;
    447     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100DD0E; /* 0x4100DCFB: je 0x4100dd0e */
    448 L_4100DCFD:
    449     eax = MEM32(0x41014AA4); /* 0x4100DCFD: mov eax, dword ptr [0x41014aa4] */
    450     /* test eax, eax */ /* 0x4100DD02: test eax, eax */
    451     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    452     _cf = 0;
    453     _flag_k = FK_TEST;
    454     if (TEST_Z(_flag_a, _flag_b)) goto L_4100DD0E; /* 0x4100DD04: je 0x4100dd0e */
    455 L_4100DD06:
    456     PUSH32(esp, edi); /* 0x4100DD06: push edi */
    457     PUSH32(esp, esi); /* 0x4100DD07: push esi */
    458     PUSH32(esp, ebx); /* 0x4100DD08: push ebx */
    459     RECOMP_ICALL(eax); /* 0x4100DD09: call eax */
    460     RECOMP_FLAGS_IN();
    461     MEM32(ebp + 0xC) = eax; /* 0x4100DD0B: mov dword ptr [ebp + 0xc], eax */
    462 L_4100DD0E:
    463     eax = MEM32(ebp + 0xC); /* 0x4100DD0E: mov eax, dword ptr [ebp + 0xc] */
    464 L_4100DD11:
    465     edi = POP32_VAL(esp); /* 0x4100DD11: pop edi */
    466     esi = POP32_VAL(esp); /* 0x4100DD12: pop esi */
    467     ebx = POP32_VAL(esp); /* 0x4100DD13: pop ebx */
    468     ebp = POP32_VAL(esp); /* 0x4100DD14: pop ebp */
    469     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4100DD15: ret 0xc */
    470     RECOMP_REGS_OUT();
    471 }
    472 
    473 void sub_4100DD18(void) {
    474     int _fpu_cmp = 0;
    475     uint32_t _cf = 0;
    476     int _df = 1;
    477     uint32_t _flag_k = FK_NONE;
    478     uint32_t _flag_a = 0, _flag_b = 0;
    479     uint32_t _itail_tgt = 0;
    480     RECOMP_REGS_LOCALS
    481     RECOMP_ENTER(0x4100DD18u);
    482 
    483 L_4100DD18:
    484     { _itail_tgt = (uint32_t)(MEM32(0x4100F098)); goto _ljump; }
    485     { RECOMP_REGS_OUT(); return; } /* end of function */
    486   _ljump:
    487     switch (_itail_tgt) {
    488       case 0x4100DD18u: goto L_4100DD18;
    489       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    490     }
    491     RECOMP_REGS_OUT();
    492 }
    493 
    494 void sub_4100DD1E(void) {
    495     int _fpu_cmp = 0;
    496     uint32_t _cf = 0;
    497     int _df = 1;
    498     uint32_t _flag_k = FK_NONE;
    499     uint32_t _flag_a = 0, _flag_b = 0;
    500     uint32_t _itail_tgt = 0;
    501     RECOMP_REGS_LOCALS
    502     RECOMP_ENTER(0x4100DD1Eu);
    503 
    504 L_4100DD1E:
    505     { _itail_tgt = (uint32_t)(MEM32(0x4100F0CC)); goto _ljump; }
    506     { RECOMP_REGS_OUT(); return; } /* end of function */
    507   _ljump:
    508     switch (_itail_tgt) {
    509       case 0x4100DD1Eu: goto L_4100DD1E;
    510       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    511     }
    512     RECOMP_REGS_OUT();
    513 }
    514 
    515 void sub_4100DD24(void) {
    516     int _fpu_cmp = 0;
    517     uint32_t _cf = 0;
    518     int _df = 1;
    519     uint32_t _flag_k = FK_NONE;
    520     uint32_t _flag_a = 0, _flag_b = 0;
    521     uint32_t _itail_tgt = 0;
    522     RECOMP_REGS_LOCALS
    523     RECOMP_ENTER(0x4100DD24u);
    524 
    525 L_4100DD24:
    526     { _itail_tgt = (uint32_t)(MEM32(0x4100F0A0)); goto _ljump; }
    527     { RECOMP_REGS_OUT(); return; } /* end of function */
    528   _ljump:
    529     switch (_itail_tgt) {
    530       case 0x4100DD24u: goto L_4100DD24;
    531       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    532     }
    533     RECOMP_REGS_OUT();
    534 }
    535 
    536 void sub_4100DD2A(void) {
    537     int _fpu_cmp = 0;
    538     uint32_t _cf = 0;
    539     int _df = 1;
    540     uint32_t _flag_k = FK_NONE;
    541     uint32_t _flag_a = 0, _flag_b = 0;
    542     uint32_t _itail_tgt = 0;
    543     RECOMP_REGS_LOCALS
    544     RECOMP_ENTER(0x4100DD2Au);
    545 
    546 L_4100DD2A:
    547     { _itail_tgt = (uint32_t)(MEM32(0x4100F0B0)); goto _ljump; }
    548     { RECOMP_REGS_OUT(); return; } /* end of function */
    549   _ljump:
    550     switch (_itail_tgt) {
    551       case 0x4100DD2Au: goto L_4100DD2A;
    552       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    553     }
    554     RECOMP_REGS_OUT();
    555 }
    556 
    557 void sub_4100DD30(void) {
    558     int _fpu_cmp = 0;
    559     uint32_t _cf = 0;
    560     int _df = 1;
    561     uint32_t _flag_k = FK_NONE;
    562     uint32_t _flag_a = 0, _flag_b = 0;
    563     uint32_t _itail_tgt = 0;
    564     RECOMP_REGS_LOCALS
    565     RECOMP_ENTER(0x4100DD30u);
    566 
    567 L_4100DD30:
    568     { _itail_tgt = (uint32_t)(MEM32(0x4100F0B4)); goto _ljump; }
    569     { RECOMP_REGS_OUT(); return; } /* end of function */
    570   _ljump:
    571     switch (_itail_tgt) {
    572       case 0x4100DD30u: goto L_4100DD30;
    573       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    574     }
    575     RECOMP_REGS_OUT();
    576 }
    577 
    578 void sub_4100DD36(void) {
    579     int _fpu_cmp = 0;
    580     uint32_t _cf = 0;
    581     int _df = 1;
    582     uint32_t _flag_k = FK_NONE;
    583     uint32_t _flag_a = 0, _flag_b = 0;
    584     uint32_t _itail_tgt = 0;
    585     RECOMP_REGS_LOCALS
    586     RECOMP_ENTER(0x4100DD36u);
    587 
    588 L_4100DD36:
    589     { _itail_tgt = (uint32_t)(MEM32(0x4100F0B8)); goto _ljump; }
    590     { RECOMP_REGS_OUT(); return; } /* end of function */
    591   _ljump:
    592     switch (_itail_tgt) {
    593       case 0x4100DD36u: goto L_4100DD36;
    594       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    595     }
    596     RECOMP_REGS_OUT();
    597 }
    598 
    599 void sub_4100DD3C(void) {
    600     int _fpu_cmp = 0;
    601     uint32_t _cf = 0;
    602     int _df = 1;
    603     uint32_t _flag_k = FK_NONE;
    604     uint32_t _flag_a = 0, _flag_b = 0;
    605     uint32_t _itail_tgt = 0;
    606     RECOMP_REGS_LOCALS
    607     RECOMP_ENTER(0x4100DD3Cu);
    608 
    609 L_4100DD3C:
    610     { _itail_tgt = (uint32_t)(MEM32(0x4100F0C0)); goto _ljump; }
    611     { RECOMP_REGS_OUT(); return; } /* end of function */
    612   _ljump:
    613     switch (_itail_tgt) {
    614       case 0x4100DD3Cu: goto L_4100DD3C;
    615       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    616     }
    617     RECOMP_REGS_OUT();
    618 }
    619 
    620 void sub_4100DD42(void) {
    621     int _fpu_cmp = 0;
    622     uint32_t _cf = 0;
    623     int _df = 1;
    624     uint32_t _flag_k = FK_NONE;
    625     uint32_t _flag_a = 0, _flag_b = 0;
    626     uint32_t _itail_tgt = 0;
    627     RECOMP_REGS_LOCALS
    628     RECOMP_ENTER(0x4100DD42u);
    629 
    630 L_4100DD42:
    631     /* cmp MEM32(esp + 0x8), 1 */ /* 0x4100DD42: cmp dword ptr [esp + 8], 1 */
    632     _flag_a = (uint32_t)(MEM32(esp + 0x8)); _flag_b = (uint32_t)(1);
    633     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    634     _flag_k = FK_CMP;
    635     if (CMP_NE(_flag_a, _flag_b)) goto L_4100DD5C; /* 0x4100DD47: jne 0x4100dd5c */
    636 L_4100DD49:
    637     /* cmp MEM32(0x41014AA4), 0 */ /* 0x4100DD49: cmp dword ptr [0x41014aa4], 0 */
    638     _flag_a = (uint32_t)(MEM32(0x41014AA4)); _flag_b = (uint32_t)(0);
    639     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    640     _flag_k = FK_CMP;
    641     if (CMP_NE(_flag_a, _flag_b)) goto L_4100DD5C; /* 0x4100DD50: jne 0x4100dd5c */
    642 L_4100DD52:
    643     PUSH32(esp, MEM32(esp + 0x4)); /* 0x4100DD52: push dword ptr [esp + 4] */
    644     RECOMP_ICALL(MEM32(0x4100F004)); /* 0x4100DD56: call dword ptr [0x4100f004] */
    645     RECOMP_FLAGS_IN();
    646 L_4100DD5C:
    647     PUSH32(esp, 1); /* 0x4100DD5C: push 1 */
    648     eax = POP32_VAL(esp); /* 0x4100DD5E: pop eax */
    649     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4100DD5F: ret 0xc */
    650     RECOMP_REGS_OUT();
    651 }
    652 
    653 void sub_4100DD70(void) {
    654     int _fpu_cmp = 0;
    655     uint32_t _cf = 0;
    656     int _df = 1;
    657     uint32_t _flag_k = FK_NONE;
    658     uint32_t _flag_a = 0, _flag_b = 0;
    659     uint32_t _itail_tgt = 0;
    660     RECOMP_REGS_LOCALS
    661     RECOMP_ENTER(0x4100DD70u);
    662 
    663 L_4100DD70:
    664     eax = MEM32(ebp + (-0x10)); /* 0x4100DD70: mov eax, dword ptr [ebp - 0x10] */
    665     PUSH32(esp, eax); /* 0x4100DD73: push eax */
    666     RECOMP_ICALL(0x4100DB20u); /* 0x4100DD74: call 0x4100db20 */ /* not lifted */
    667     RECOMP_FLAGS_IN();
    668     ecx = POP32_VAL(esp); /* 0x4100DD79: pop ecx */
    669     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100DD7A: ret  */
    670     RECOMP_REGS_OUT();
    671 }
    672 
    673 void sub_4100DD7B(void) {
    674     int _fpu_cmp = 0;
    675     uint32_t _cf = 0;
    676     int _df = 1;
    677     uint32_t _flag_k = FK_NONE;
    678     uint32_t _flag_a = 0, _flag_b = 0;
    679     uint32_t _itail_tgt = 0;
    680     RECOMP_REGS_LOCALS
    681     RECOMP_ENTER(0x4100DD7Bu);
    682 
    683     goto L_4100DD7B;
    684 L_4100DB72:
    685     { _itail_tgt = (uint32_t)(MEM32(0x4100F11C)); goto _ljump; }
    686 L_4100DD7B:
    687     eax = 0x4100F9A0u; /* 0x4100DD7B: mov eax, 0x4100f9a0 */
    688 L_4100DD80:
    689     RECOMP_BACKEDGE();
    690     goto L_4100DB72; /* 0x4100DD80: jmp 0x4100db72 */
    691     { RECOMP_REGS_OUT(); return; } /* end of function */
    692   _ljump:
    693     switch (_itail_tgt) {
    694       case 0x4100DB72u: goto L_4100DB72;
    695       case 0x4100DD7Bu: goto L_4100DD7B;
    696       case 0x4100DD80u: goto L_4100DD80;
    697       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    698     }
    699     RECOMP_REGS_OUT();
    700 }
    701 
    702 void sub_4100DD90(void) {
    703     int _fpu_cmp = 0;
    704     uint32_t _cf = 0;
    705     int _df = 1;
    706     uint32_t _flag_k = FK_NONE;
    707     uint32_t _flag_a = 0, _flag_b = 0;
    708     uint32_t _itail_tgt = 0;
    709     RECOMP_REGS_LOCALS
    710     RECOMP_ENTER(0x4100DD90u);
    711 
    712 L_4100DD90:
    713     ecx = MEM32(ebp + (-0x10)); /* 0x4100DD90: mov ecx, dword ptr [ebp - 0x10] */
    714 L_4100DD93:
    715     { _itail_tgt = (uint32_t)(MEM32(0x4100F160)); goto _ljump; }
    716     { RECOMP_REGS_OUT(); return; } /* end of function */
    717   _ljump:
    718     switch (_itail_tgt) {
    719       case 0x4100DD90u: goto L_4100DD90;
    720       case 0x4100DD93u: goto L_4100DD93;
    721       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    722     }
    723     RECOMP_REGS_OUT();
    724 }
    725 
    726 void sub_4100DD99(void) {
    727     int _fpu_cmp = 0;
    728     uint32_t _cf = 0;
    729     int _df = 1;
    730     uint32_t _flag_k = FK_NONE;
    731     uint32_t _flag_a = 0, _flag_b = 0;
    732     uint32_t _itail_tgt = 0;
    733     RECOMP_REGS_LOCALS
    734     RECOMP_ENTER(0x4100DD99u);
    735 
    736 L_4100DD99:
    737     ecx = MEM32(ebp + (-0x10)); /* 0x4100DD99: mov ecx, dword ptr [ebp - 0x10] */
    738 L_4100DD9C:
    739     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
    740     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    741     ecx = ecx + 8; /* 0x4100DD9C: add ecx, 8 */
    742     _flag_k = FK_ADD;
    743 L_4100DD9F:
    744     { _itail_tgt = (uint32_t)(MEM32(0x4100F064)); goto _ljump; }
    745     { RECOMP_REGS_OUT(); return; } /* end of function */
    746   _ljump:
    747     switch (_itail_tgt) {
    748       case 0x4100DD99u: goto L_4100DD99;
    749       case 0x4100DD9Cu: goto L_4100DD9C;
    750       case 0x4100DD9Fu: goto L_4100DD9F;
    751       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    752     }
    753     RECOMP_REGS_OUT();
    754 }
    755 
    756 void sub_4100DDA5(void) {
    757     int _fpu_cmp = 0;
    758     uint32_t _cf = 0;
    759     int _df = 1;
    760     uint32_t _flag_k = FK_NONE;
    761     uint32_t _flag_a = 0, _flag_b = 0;
    762     uint32_t _itail_tgt = 0;
    763     RECOMP_REGS_LOCALS
    764     RECOMP_ENTER(0x4100DDA5u);
    765 
    766     goto L_4100DDA5;
    767 L_4100DB72:
    768     { _itail_tgt = (uint32_t)(MEM32(0x4100F11C)); goto _ljump; }
    769 L_4100DDA5:
    770     eax = 0x4100F9C8u; /* 0x4100DDA5: mov eax, 0x4100f9c8 */
    771 L_4100DDAA:
    772     RECOMP_BACKEDGE();
    773     goto L_4100DB72; /* 0x4100DDAA: jmp 0x4100db72 */
    774     { RECOMP_REGS_OUT(); return; } /* end of function */
    775   _ljump:
    776     switch (_itail_tgt) {
    777       case 0x4100DB72u: goto L_4100DB72;
    778       case 0x4100DDA5u: goto L_4100DDA5;
    779       case 0x4100DDAAu: goto L_4100DDAA;
    780       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    781     }
    782     RECOMP_REGS_OUT();
    783 }
    784 
    785 void sub_4100DDB0(void) {
    786     int _fpu_cmp = 0;
    787     uint32_t _cf = 0;
    788     int _df = 1;
    789     uint32_t _flag_k = FK_NONE;
    790     uint32_t _flag_a = 0, _flag_b = 0;
    791     uint32_t _itail_tgt = 0;
    792     RECOMP_REGS_LOCALS
    793     RECOMP_ENTER(0x4100DDB0u);
    794 
    795 L_4100DDB0:
    796     ecx = MEM32(ebp + (-0x14)); /* 0x4100DDB0: mov ecx, dword ptr [ebp - 0x14] */
    797 L_4100DDB3:
    798     { _itail_tgt = (uint32_t)(MEM32(0x4100F160)); goto _ljump; }
    799     { RECOMP_REGS_OUT(); return; } /* end of function */
    800   _ljump:
    801     switch (_itail_tgt) {
    802       case 0x4100DDB0u: goto L_4100DDB0;
    803       case 0x4100DDB3u: goto L_4100DDB3;
    804       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    805     }
    806     RECOMP_REGS_OUT();
    807 }
    808 
    809 void sub_4100DDB9(void) {
    810     int _fpu_cmp = 0;
    811     uint32_t _cf = 0;
    812     int _df = 1;
    813     uint32_t _flag_k = FK_NONE;
    814     uint32_t _flag_a = 0, _flag_b = 0;
    815     uint32_t _itail_tgt = 0;
    816     RECOMP_REGS_LOCALS
    817     RECOMP_ENTER(0x4100DDB9u);
    818 
    819     goto L_4100DDB9;
    820 L_4100DB72:
    821     { _itail_tgt = (uint32_t)(MEM32(0x4100F11C)); goto _ljump; }
    822 L_4100DDB9:
    823     eax = 0x4100F9F8u; /* 0x4100DDB9: mov eax, 0x4100f9f8 */
    824 L_4100DDBE:
    825     RECOMP_BACKEDGE();
    826     goto L_4100DB72; /* 0x4100DDBE: jmp 0x4100db72 */
    827     { RECOMP_REGS_OUT(); return; } /* end of function */
    828   _ljump:
    829     switch (_itail_tgt) {
    830       case 0x4100DB72u: goto L_4100DB72;
    831       case 0x4100DDB9u: goto L_4100DDB9;
    832       case 0x4100DDBEu: goto L_4100DDBE;
    833       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    834     }
    835     RECOMP_REGS_OUT();
    836 }
    837 
    838 void sub_4100DDD0(void) {
    839     int _fpu_cmp = 0;
    840     uint32_t _cf = 0;
    841     int _df = 1;
    842     uint32_t _flag_k = FK_NONE;
    843     uint32_t _flag_a = 0, _flag_b = 0;
    844     uint32_t _itail_tgt = 0;
    845     RECOMP_REGS_LOCALS
    846     RECOMP_ENTER(0x4100DDD0u);
    847 
    848 L_4100DDD0:
    849     ecx = MEM32(ebp + (-0x14)); /* 0x4100DDD0: mov ecx, dword ptr [ebp - 0x14] */
    850 L_4100DDD3:
    851     { _itail_tgt = (uint32_t)(MEM32(0x4100F160)); goto _ljump; }
    852     { RECOMP_REGS_OUT(); return; } /* end of function */
    853   _ljump:
    854     switch (_itail_tgt) {
    855       case 0x4100DDD0u: goto L_4100DDD0;
    856       case 0x4100DDD3u: goto L_4100DDD3;
    857       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    858     }
    859     RECOMP_REGS_OUT();
    860 }
    861 
    862 void sub_4100DDD9(void) {
    863     int _fpu_cmp = 0;
    864     uint32_t _cf = 0;
    865     int _df = 1;
    866     uint32_t _flag_k = FK_NONE;
    867     uint32_t _flag_a = 0, _flag_b = 0;
    868     uint32_t _itail_tgt = 0;
    869     RECOMP_REGS_LOCALS
    870     RECOMP_ENTER(0x4100DDD9u);
    871 
    872 L_4100DDD9:
    873     ecx = MEM32(ebp + (-0x14)); /* 0x4100DDD9: mov ecx, dword ptr [ebp - 0x14] */
    874 L_4100DDDC:
    875     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
    876     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    877     ecx = ecx + 8; /* 0x4100DDDC: add ecx, 8 */
    878     _flag_k = FK_ADD;
    879 L_4100DDDF:
    880     { _itail_tgt = (uint32_t)(MEM32(0x4100F064)); goto _ljump; }
    881     { RECOMP_REGS_OUT(); return; } /* end of function */
    882   _ljump:
    883     switch (_itail_tgt) {
    884       case 0x4100DDD9u: goto L_4100DDD9;
    885       case 0x4100DDDCu: goto L_4100DDDC;
    886       case 0x4100DDDFu: goto L_4100DDDF;
    887       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    888     }
    889     RECOMP_REGS_OUT();
    890 }
    891 
    892 void sub_4100DDE5(void) {
    893     int _fpu_cmp = 0;
    894     uint32_t _cf = 0;
    895     int _df = 1;
    896     uint32_t _flag_k = FK_NONE;
    897     uint32_t _flag_a = 0, _flag_b = 0;
    898     uint32_t _itail_tgt = 0;
    899     RECOMP_REGS_LOCALS
    900     RECOMP_ENTER(0x4100DDE5u);
    901 
    902     goto L_4100DDE5;
    903 L_4100DB72:
    904     { _itail_tgt = (uint32_t)(MEM32(0x4100F11C)); goto _ljump; }
    905 L_4100DDE5:
    906     eax = 0x4100FA20u; /* 0x4100DDE5: mov eax, 0x4100fa20 */
    907 L_4100DDEA:
    908     RECOMP_BACKEDGE();
    909     goto L_4100DB72; /* 0x4100DDEA: jmp 0x4100db72 */
    910     { RECOMP_REGS_OUT(); return; } /* end of function */
    911   _ljump:
    912     switch (_itail_tgt) {
    913       case 0x4100DB72u: goto L_4100DB72;
    914       case 0x4100DDE5u: goto L_4100DDE5;
    915       case 0x4100DDEAu: goto L_4100DDEA;
    916       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    917     }
    918     RECOMP_REGS_OUT();
    919 }
    920 
    921 void sub_4100DDF0(void) {
    922     int _fpu_cmp = 0;
    923     uint32_t _cf = 0;
    924     int _df = 1;
    925     uint32_t _flag_k = FK_NONE;
    926     uint32_t _flag_a = 0, _flag_b = 0;
    927     uint32_t _itail_tgt = 0;
    928     RECOMP_REGS_LOCALS
    929     RECOMP_ENTER(0x4100DDF0u);
    930 
    931 L_4100DDF0:
    932     eax = MEM32(ebp + (-0x10)); /* 0x4100DDF0: mov eax, dword ptr [ebp - 0x10] */
    933     PUSH32(esp, eax); /* 0x4100DDF3: push eax */
    934     RECOMP_ICALL(0x4100DB20u); /* 0x4100DDF4: call 0x4100db20 */ /* not lifted */
    935     RECOMP_FLAGS_IN();
    936     ecx = POP32_VAL(esp); /* 0x4100DDF9: pop ecx */
    937     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100DDFA: ret  */
    938     RECOMP_REGS_OUT();
    939 }
    940 
    941 void sub_4100DDFB(void) {
    942     int _fpu_cmp = 0;
    943     uint32_t _cf = 0;
    944     int _df = 1;
    945     uint32_t _flag_k = FK_NONE;
    946     uint32_t _flag_a = 0, _flag_b = 0;
    947     uint32_t _itail_tgt = 0;
    948     RECOMP_REGS_LOCALS
    949     RECOMP_ENTER(0x4100DDFBu);
    950 
    951     goto L_4100DDFB;
    952 L_4100DB72:
    953     { _itail_tgt = (uint32_t)(MEM32(0x4100F11C)); goto _ljump; }
    954 L_4100DDFB:
    955     eax = 0x4100FA50u; /* 0x4100DDFB: mov eax, 0x4100fa50 */
    956 L_4100DE00:
    957     RECOMP_BACKEDGE();
    958     goto L_4100DB72; /* 0x4100DE00: jmp 0x4100db72 */
    959     { RECOMP_REGS_OUT(); return; } /* end of function */
    960   _ljump:
    961     switch (_itail_tgt) {
    962       case 0x4100DB72u: goto L_4100DB72;
    963       case 0x4100DDFBu: goto L_4100DDFB;
    964       case 0x4100DE00u: goto L_4100DE00;
    965       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    966     }
    967     RECOMP_REGS_OUT();
    968 }
    969 
    970 void sub_4100DE10(void) {
    971     int _fpu_cmp = 0;
    972     uint32_t _cf = 0;
    973     int _df = 1;
    974     uint32_t _flag_k = FK_NONE;
    975     uint32_t _flag_a = 0, _flag_b = 0;
    976     uint32_t _itail_tgt = 0;
    977     RECOMP_REGS_LOCALS
    978     RECOMP_ENTER(0x4100DE10u);
    979 
    980 L_4100DE10:
    981     ecx = MEM32(ebp + (-0x10)); /* 0x4100DE10: mov ecx, dword ptr [ebp - 0x10] */
    982 L_4100DE13:
    983     { _itail_tgt = (uint32_t)(MEM32(0x4100F160)); goto _ljump; }
    984     { RECOMP_REGS_OUT(); return; } /* end of function */
    985   _ljump:
    986     switch (_itail_tgt) {
    987       case 0x4100DE10u: goto L_4100DE10;
    988       case 0x4100DE13u: goto L_4100DE13;
    989       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    990     }
    991     RECOMP_REGS_OUT();
    992 }
    993 
    994 void sub_4100DE19(void) {
    995     int _fpu_cmp = 0;
    996     uint32_t _cf = 0;
    997     int _df = 1;
    998     uint32_t _flag_k = FK_NONE;
    999     uint32_t _flag_a = 0, _flag_b = 0;
   1000     uint32_t _itail_tgt = 0;
   1001     RECOMP_REGS_LOCALS
   1002     RECOMP_ENTER(0x4100DE19u);
   1003 
   1004     goto L_4100DE19;
   1005 L_4100DB72:
   1006     { _itail_tgt = (uint32_t)(MEM32(0x4100F11C)); goto _ljump; }
   1007 L_4100DE19:
   1008     eax = 0x4100FA78u; /* 0x4100DE19: mov eax, 0x4100fa78 */
   1009 L_4100DE1E:
   1010     RECOMP_BACKEDGE();
   1011     goto L_4100DB72; /* 0x4100DE1E: jmp 0x4100db72 */
   1012     { RECOMP_REGS_OUT(); return; } /* end of function */
   1013   _ljump:
   1014     switch (_itail_tgt) {
   1015       case 0x4100DB72u: goto L_4100DB72;
   1016       case 0x4100DE19u: goto L_4100DE19;
   1017       case 0x4100DE1Eu: goto L_4100DE1E;
   1018       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1019     }
   1020     RECOMP_REGS_OUT();
   1021 }
   1022 
   1023 void sub_4100DE30(void) {
   1024     int _fpu_cmp = 0;
   1025     uint32_t _cf = 0;
   1026     int _df = 1;
   1027     uint32_t _flag_k = FK_NONE;
   1028     uint32_t _flag_a = 0, _flag_b = 0;
   1029     uint32_t _itail_tgt = 0;
   1030     RECOMP_REGS_LOCALS
   1031     RECOMP_ENTER(0x4100DE30u);
   1032 
   1033 L_4100DE30:
   1034     ecx = MEM32(ebp + (-0x10)); /* 0x4100DE30: mov ecx, dword ptr [ebp - 0x10] */
   1035 L_4100DE33:
   1036     { _itail_tgt = (uint32_t)(MEM32(0x4100F160)); goto _ljump; }
   1037     { RECOMP_REGS_OUT(); return; } /* end of function */
   1038   _ljump:
   1039     switch (_itail_tgt) {
   1040       case 0x4100DE30u: goto L_4100DE30;
   1041       case 0x4100DE33u: goto L_4100DE33;
   1042       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1043     }
   1044     RECOMP_REGS_OUT();
   1045 }
   1046 
   1047 void sub_4100DE39(void) {
   1048     int _fpu_cmp = 0;
   1049     uint32_t _cf = 0;
   1050     int _df = 1;
   1051     uint32_t _flag_k = FK_NONE;
   1052     uint32_t _flag_a = 0, _flag_b = 0;
   1053     uint32_t _itail_tgt = 0;
   1054     RECOMP_REGS_LOCALS
   1055     RECOMP_ENTER(0x4100DE39u);
   1056 
   1057     goto L_4100DE39;
   1058 L_4100DB72:
   1059     { _itail_tgt = (uint32_t)(MEM32(0x4100F11C)); goto _ljump; }
   1060 L_4100DE39:
   1061     eax = 0x4100FAA0u; /* 0x4100DE39: mov eax, 0x4100faa0 */
   1062 L_4100DE3E:
   1063     RECOMP_BACKEDGE();
   1064     goto L_4100DB72; /* 0x4100DE3E: jmp 0x4100db72 */
   1065     { RECOMP_REGS_OUT(); return; } /* end of function */
   1066   _ljump:
   1067     switch (_itail_tgt) {
   1068       case 0x4100DB72u: goto L_4100DB72;
   1069       case 0x4100DE39u: goto L_4100DE39;
   1070       case 0x4100DE3Eu: goto L_4100DE3E;
   1071       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1072     }
   1073     RECOMP_REGS_OUT();
   1074 }
   1075 
   1076 void sub_4100DE50(void) {
   1077     int _fpu_cmp = 0;
   1078     uint32_t _cf = 0;
   1079     int _df = 1;
   1080     uint32_t _flag_k = FK_NONE;
   1081     uint32_t _flag_a = 0, _flag_b = 0;
   1082     uint32_t _itail_tgt = 0;
   1083     RECOMP_REGS_LOCALS
   1084     RECOMP_ENTER(0x4100DE50u);
   1085 
   1086 L_4100DE50:
   1087     ecx = ebp + (-0x24); /* 0x4100DE50: lea ecx, [ebp - 0x24] */
   1088 L_4100DE53:
   1089     { _itail_tgt = (uint32_t)(MEM32(0x4100F064)); goto _ljump; }
   1090     { RECOMP_REGS_OUT(); return; } /* end of function */
   1091   _ljump:
   1092     switch (_itail_tgt) {
   1093       case 0x4100DE50u: goto L_4100DE50;
   1094       case 0x4100DE53u: goto L_4100DE53;
   1095       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1096     }
   1097     RECOMP_REGS_OUT();
   1098 }
   1099 
   1100 void sub_4100DE59(void) {
   1101     int _fpu_cmp = 0;
   1102     uint32_t _cf = 0;
   1103     int _df = 1;
   1104     uint32_t _flag_k = FK_NONE;
   1105     uint32_t _flag_a = 0, _flag_b = 0;
   1106     uint32_t _itail_tgt = 0;
   1107     RECOMP_REGS_LOCALS
   1108     RECOMP_ENTER(0x4100DE59u);
   1109 
   1110     goto L_4100DE59;
   1111 L_4100DB72:
   1112     { _itail_tgt = (uint32_t)(MEM32(0x4100F11C)); goto _ljump; }
   1113 L_4100DE59:
   1114     eax = 0x4100FAC8u; /* 0x4100DE59: mov eax, 0x4100fac8 */
   1115 L_4100DE5E:
   1116     RECOMP_BACKEDGE();
   1117     goto L_4100DB72; /* 0x4100DE5E: jmp 0x4100db72 */
   1118     { RECOMP_REGS_OUT(); return; } /* end of function */
   1119   _ljump:
   1120     switch (_itail_tgt) {
   1121       case 0x4100DB72u: goto L_4100DB72;
   1122       case 0x4100DE59u: goto L_4100DE59;
   1123       case 0x4100DE5Eu: goto L_4100DE5E;
   1124       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1125     }
   1126     RECOMP_REGS_OUT();
   1127 }
   1128 
   1129 void sub_4100DE70(void) {
   1130     int _fpu_cmp = 0;
   1131     uint32_t _cf = 0;
   1132     int _df = 1;
   1133     uint32_t _flag_k = FK_NONE;
   1134     uint32_t _flag_a = 0, _flag_b = 0;
   1135     uint32_t _itail_tgt = 0;
   1136     RECOMP_REGS_LOCALS
   1137     RECOMP_ENTER(0x4100DE70u);
   1138 
   1139 L_4100DE70:
   1140     eax = MEM32(ebp + (-0x10)); /* 0x4100DE70: mov eax, dword ptr [ebp - 0x10] */
   1141     PUSH32(esp, eax); /* 0x4100DE73: push eax */
   1142     RECOMP_ICALL(0x4100DB20u); /* 0x4100DE74: call 0x4100db20 */ /* not lifted */
   1143     RECOMP_FLAGS_IN();
   1144     ecx = POP32_VAL(esp); /* 0x4100DE79: pop ecx */
   1145     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100DE7A: ret  */
   1146     RECOMP_REGS_OUT();
   1147 }
   1148 
   1149 void sub_4100DE7B(void) {
   1150     int _fpu_cmp = 0;
   1151     uint32_t _cf = 0;
   1152     int _df = 1;
   1153     uint32_t _flag_k = FK_NONE;
   1154     uint32_t _flag_a = 0, _flag_b = 0;
   1155     uint32_t _itail_tgt = 0;
   1156     RECOMP_REGS_LOCALS
   1157     RECOMP_ENTER(0x4100DE7Bu);
   1158 
   1159     goto L_4100DE7B;
   1160 L_4100DB72:
   1161     { _itail_tgt = (uint32_t)(MEM32(0x4100F11C)); goto _ljump; }
   1162 L_4100DE7B:
   1163     eax = 0x4100FAF0u; /* 0x4100DE7B: mov eax, 0x4100faf0 */
   1164 L_4100DE80:
   1165     RECOMP_BACKEDGE();
   1166     goto L_4100DB72; /* 0x4100DE80: jmp 0x4100db72 */
   1167     { RECOMP_REGS_OUT(); return; } /* end of function */
   1168   _ljump:
   1169     switch (_itail_tgt) {
   1170       case 0x4100DB72u: goto L_4100DB72;
   1171       case 0x4100DE7Bu: goto L_4100DE7B;
   1172       case 0x4100DE80u: goto L_4100DE80;
   1173       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1174     }
   1175     RECOMP_REGS_OUT();
   1176 }
   1177 
   1178 void sub_4100DE90(void) {
   1179     int _fpu_cmp = 0;
   1180     uint32_t _cf = 0;
   1181     int _df = 1;
   1182     uint32_t _flag_k = FK_NONE;
   1183     uint32_t _flag_a = 0, _flag_b = 0;
   1184     uint32_t _itail_tgt = 0;
   1185     RECOMP_REGS_LOCALS
   1186     RECOMP_ENTER(0x4100DE90u);
   1187 
   1188 L_4100DE90:
   1189     ecx = MEM32(ebp + (-0x14)); /* 0x4100DE90: mov ecx, dword ptr [ebp - 0x14] */
   1190 L_4100DE93:
   1191     { _itail_tgt = (uint32_t)(MEM32(0x4100F160)); goto _ljump; }
   1192     { RECOMP_REGS_OUT(); return; } /* end of function */
   1193   _ljump:
   1194     switch (_itail_tgt) {
   1195       case 0x4100DE90u: goto L_4100DE90;
   1196       case 0x4100DE93u: goto L_4100DE93;
   1197       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1198     }
   1199     RECOMP_REGS_OUT();
   1200 }
   1201 
   1202 void sub_4100DE99(void) {
   1203     int _fpu_cmp = 0;
   1204     uint32_t _cf = 0;
   1205     int _df = 1;
   1206     uint32_t _flag_k = FK_NONE;
   1207     uint32_t _flag_a = 0, _flag_b = 0;
   1208     uint32_t _itail_tgt = 0;
   1209     RECOMP_REGS_LOCALS
   1210     RECOMP_ENTER(0x4100DE99u);
   1211 
   1212     goto L_4100DE99;
   1213 L_410025F0:
   1214     PUSH32(esp, ebp); /* 0x410025F0: push ebp */
   1215     ebp = esp; /* 0x410025F1: mov ebp, esp */
   1216     PUSH32(esp, ecx); /* 0x410025F3: push ecx */
   1217     PUSH32(esp, esi); /* 0x410025F4: push esi */
   1218     esi = ecx; /* 0x410025F5: mov esi, ecx */
   1219     eax = MEM32(esi + 0x4); /* 0x410025F7: mov eax, dword ptr [esi + 4] */
   1220     PUSH32(esp, eax); /* 0x410025FA: push eax */
   1221     MEM32(ebp + (-0x4)) = eax; /* 0x410025FB: mov dword ptr [ebp - 4], eax */
   1222     RECOMP_ICALL(0x4100DB20u); /* 0x410025FE: call 0x4100db20 */ /* not lifted */
   1223     RECOMP_FLAGS_IN();
   1224     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1225     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1226     esp = esp + 4; /* 0x41002603: add esp, 4 */
   1227     _flag_k = FK_ADD;
   1228     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1229     eax = 0; /* 0x41002606: xor eax, eax */
   1230     _cf = 0;
   1231     _flag_k = FK_TEST;
   1232     MEM32(esi + 0x4) = eax; /* 0x41002608: mov dword ptr [esi + 4], eax */
   1233     MEM32(esi + 0x8) = eax; /* 0x4100260B: mov dword ptr [esi + 8], eax */
   1234     MEM32(esi + 0xC) = eax; /* 0x4100260E: mov dword ptr [esi + 0xc], eax */
   1235     esi = POP32_VAL(esp); /* 0x41002611: pop esi */
   1236     esp = ebp; /* 0x41002612: mov esp, ebp */
   1237     ebp = POP32_VAL(esp); /* 0x41002614: pop ebp */
   1238     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x41002615: ret  */
   1239 L_4100DE99:
   1240     ecx = MEM32(ebp + (-0x14)); /* 0x4100DE99: mov ecx, dword ptr [ebp - 0x14] */
   1241     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x18u);
   1242     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1243     ecx = ecx + 0x18u; /* 0x4100DE9C: add ecx, 0x18 */
   1244     _flag_k = FK_ADD;
   1245     RECOMP_BACKEDGE();
   1246     goto L_410025F0; /* 0x4100DE9F: jmp 0x410025f0 */
   1247     { RECOMP_REGS_OUT(); return; } /* end of function */
   1248     RECOMP_REGS_OUT();
   1249 }
   1250 
   1251 void sub_4100DEA4(void) {
   1252     int _fpu_cmp = 0;
   1253     uint32_t _cf = 0;
   1254     int _df = 1;
   1255     uint32_t _flag_k = FK_NONE;
   1256     uint32_t _flag_a = 0, _flag_b = 0;
   1257     uint32_t _itail_tgt = 0;
   1258     RECOMP_REGS_LOCALS
   1259     RECOMP_ENTER(0x4100DEA4u);
   1260 
   1261     goto L_4100DEA4;
   1262 L_4100DB72:
   1263     { _itail_tgt = (uint32_t)(MEM32(0x4100F11C)); goto _ljump; }
   1264 L_4100DEA4:
   1265     eax = 0x4100FB18u; /* 0x4100DEA4: mov eax, 0x4100fb18 */
   1266 L_4100DEA9:
   1267     RECOMP_BACKEDGE();
   1268     goto L_4100DB72; /* 0x4100DEA9: jmp 0x4100db72 */
   1269     { RECOMP_REGS_OUT(); return; } /* end of function */
   1270   _ljump:
   1271     switch (_itail_tgt) {
   1272       case 0x4100DB72u: goto L_4100DB72;
   1273       case 0x4100DEA4u: goto L_4100DEA4;
   1274       case 0x4100DEA9u: goto L_4100DEA9;
   1275       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1276     }
   1277     RECOMP_REGS_OUT();
   1278 }
   1279 
   1280 void sub_4100DEB0(void) {
   1281     int _fpu_cmp = 0;
   1282     uint32_t _cf = 0;
   1283     int _df = 1;
   1284     uint32_t _flag_k = FK_NONE;
   1285     uint32_t _flag_a = 0, _flag_b = 0;
   1286     uint32_t _itail_tgt = 0;
   1287     RECOMP_REGS_LOCALS
   1288     RECOMP_ENTER(0x4100DEB0u);
   1289 
   1290 L_4100DEB0:
   1291     ecx = MEM32(ebp + (-0x10)); /* 0x4100DEB0: mov ecx, dword ptr [ebp - 0x10] */
   1292 L_4100DEB3:
   1293     { _itail_tgt = (uint32_t)(MEM32(0x4100F160)); goto _ljump; }
   1294     { RECOMP_REGS_OUT(); return; } /* end of function */
   1295   _ljump:
   1296     switch (_itail_tgt) {
   1297       case 0x4100DEB0u: goto L_4100DEB0;
   1298       case 0x4100DEB3u: goto L_4100DEB3;
   1299       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1300     }
   1301     RECOMP_REGS_OUT();
   1302 }
   1303 
   1304 void sub_4100DEB9(void) {
   1305     int _fpu_cmp = 0;
   1306     uint32_t _cf = 0;
   1307     int _df = 1;
   1308     uint32_t _flag_k = FK_NONE;
   1309     uint32_t _flag_a = 0, _flag_b = 0;
   1310     uint32_t _itail_tgt = 0;
   1311     RECOMP_REGS_LOCALS
   1312     RECOMP_ENTER(0x4100DEB9u);
   1313 
   1314     goto L_4100DEB9;
   1315 L_410025F0:
   1316     PUSH32(esp, ebp); /* 0x410025F0: push ebp */
   1317     ebp = esp; /* 0x410025F1: mov ebp, esp */
   1318     PUSH32(esp, ecx); /* 0x410025F3: push ecx */
   1319     PUSH32(esp, esi); /* 0x410025F4: push esi */
   1320     esi = ecx; /* 0x410025F5: mov esi, ecx */
   1321     eax = MEM32(esi + 0x4); /* 0x410025F7: mov eax, dword ptr [esi + 4] */
   1322     PUSH32(esp, eax); /* 0x410025FA: push eax */
   1323     MEM32(ebp + (-0x4)) = eax; /* 0x410025FB: mov dword ptr [ebp - 4], eax */
   1324     RECOMP_ICALL(0x4100DB20u); /* 0x410025FE: call 0x4100db20 */ /* not lifted */
   1325     RECOMP_FLAGS_IN();
   1326     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1327     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1328     esp = esp + 4; /* 0x41002603: add esp, 4 */
   1329     _flag_k = FK_ADD;
   1330     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1331     eax = 0; /* 0x41002606: xor eax, eax */
   1332     _cf = 0;
   1333     _flag_k = FK_TEST;
   1334     MEM32(esi + 0x4) = eax; /* 0x41002608: mov dword ptr [esi + 4], eax */
   1335     MEM32(esi + 0x8) = eax; /* 0x4100260B: mov dword ptr [esi + 8], eax */
   1336     MEM32(esi + 0xC) = eax; /* 0x4100260E: mov dword ptr [esi + 0xc], eax */
   1337     esi = POP32_VAL(esp); /* 0x41002611: pop esi */
   1338     esp = ebp; /* 0x41002612: mov esp, ebp */
   1339     ebp = POP32_VAL(esp); /* 0x41002614: pop ebp */
   1340     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x41002615: ret  */
   1341 L_4100DEB9:
   1342     ecx = MEM32(ebp + (-0x10)); /* 0x4100DEB9: mov ecx, dword ptr [ebp - 0x10] */
   1343     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x18u);
   1344     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1345     ecx = ecx + 0x18u; /* 0x4100DEBC: add ecx, 0x18 */
   1346     _flag_k = FK_ADD;
   1347     RECOMP_BACKEDGE();
   1348     goto L_410025F0; /* 0x4100DEBF: jmp 0x410025f0 */
   1349     { RECOMP_REGS_OUT(); return; } /* end of function */
   1350     RECOMP_REGS_OUT();
   1351 }
   1352 
   1353 void sub_4100DEC4(void) {
   1354     int _fpu_cmp = 0;
   1355     uint32_t _cf = 0;
   1356     int _df = 1;
   1357     uint32_t _flag_k = FK_NONE;
   1358     uint32_t _flag_a = 0, _flag_b = 0;
   1359     uint32_t _itail_tgt = 0;
   1360     RECOMP_REGS_LOCALS
   1361     RECOMP_ENTER(0x4100DEC4u);
   1362 
   1363     goto L_4100DEC4;
   1364 L_4100DB72:
   1365     { _itail_tgt = (uint32_t)(MEM32(0x4100F11C)); goto _ljump; }
   1366 L_4100DEC4:
   1367     eax = 0x4100FB48u; /* 0x4100DEC4: mov eax, 0x4100fb48 */
   1368 L_4100DEC9:
   1369     RECOMP_BACKEDGE();
   1370     goto L_4100DB72; /* 0x4100DEC9: jmp 0x4100db72 */
   1371     { RECOMP_REGS_OUT(); return; } /* end of function */
   1372   _ljump:
   1373     switch (_itail_tgt) {
   1374       case 0x4100DB72u: goto L_4100DB72;
   1375       case 0x4100DEC4u: goto L_4100DEC4;
   1376       case 0x4100DEC9u: goto L_4100DEC9;
   1377       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1378     }
   1379     RECOMP_REGS_OUT();
   1380 }
   1381 
   1382 void sub_4100DED0(void) {
   1383     int _fpu_cmp = 0;
   1384     uint32_t _cf = 0;
   1385     int _df = 1;
   1386     uint32_t _flag_k = FK_NONE;
   1387     uint32_t _flag_a = 0, _flag_b = 0;
   1388     uint32_t _itail_tgt = 0;
   1389     RECOMP_REGS_LOCALS
   1390     RECOMP_ENTER(0x4100DED0u);
   1391 
   1392 L_4100DED0:
   1393     eax = MEM32(ebp + (-0x10)); /* 0x4100DED0: mov eax, dword ptr [ebp - 0x10] */
   1394     PUSH32(esp, eax); /* 0x4100DED3: push eax */
   1395     RECOMP_ICALL(0x4100DB20u); /* 0x4100DED4: call 0x4100db20 */ /* not lifted */
   1396     RECOMP_FLAGS_IN();
   1397     ecx = POP32_VAL(esp); /* 0x4100DED9: pop ecx */
   1398     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100DEDA: ret  */
   1399     RECOMP_REGS_OUT();
   1400 }
   1401 
   1402 void sub_4100DEDB(void) {
   1403     int _fpu_cmp = 0;
   1404     uint32_t _cf = 0;
   1405     int _df = 1;
   1406     uint32_t _flag_k = FK_NONE;
   1407     uint32_t _flag_a = 0, _flag_b = 0;
   1408     uint32_t _itail_tgt = 0;
   1409     RECOMP_REGS_LOCALS
   1410     RECOMP_ENTER(0x4100DEDBu);
   1411 
   1412     goto L_4100DEDB;
   1413 L_4100DB72:
   1414     { _itail_tgt = (uint32_t)(MEM32(0x4100F11C)); goto _ljump; }
   1415 L_4100DEDB:
   1416     eax = 0x4100FB78u; /* 0x4100DEDB: mov eax, 0x4100fb78 */
   1417 L_4100DEE0:
   1418     RECOMP_BACKEDGE();
   1419     goto L_4100DB72; /* 0x4100DEE0: jmp 0x4100db72 */
   1420     { RECOMP_REGS_OUT(); return; } /* end of function */
   1421   _ljump:
   1422     switch (_itail_tgt) {
   1423       case 0x4100DB72u: goto L_4100DB72;
   1424       case 0x4100DEDBu: goto L_4100DEDB;
   1425       case 0x4100DEE0u: goto L_4100DEE0;
   1426       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1427     }
   1428     RECOMP_REGS_OUT();
   1429 }
   1430 
   1431 void sub_4100DEF0(void) {
   1432     int _fpu_cmp = 0;
   1433     uint32_t _cf = 0;
   1434     int _df = 1;
   1435     uint32_t _flag_k = FK_NONE;
   1436     uint32_t _flag_a = 0, _flag_b = 0;
   1437     uint32_t _itail_tgt = 0;
   1438     RECOMP_REGS_LOCALS
   1439     RECOMP_ENTER(0x4100DEF0u);
   1440 
   1441 L_4100DEF0:
   1442     eax = MEM32(ebp + (-0x10)); /* 0x4100DEF0: mov eax, dword ptr [ebp - 0x10] */
   1443     PUSH32(esp, eax); /* 0x4100DEF3: push eax */
   1444     RECOMP_ICALL(0x4100DB20u); /* 0x4100DEF4: call 0x4100db20 */ /* not lifted */
   1445     RECOMP_FLAGS_IN();
   1446     ecx = POP32_VAL(esp); /* 0x4100DEF9: pop ecx */
   1447     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100DEFA: ret  */
   1448     RECOMP_REGS_OUT();
   1449 }
   1450 
   1451 void sub_4100DEFB(void) {
   1452     int _fpu_cmp = 0;
   1453     uint32_t _cf = 0;
   1454     int _df = 1;
   1455     uint32_t _flag_k = FK_NONE;
   1456     uint32_t _flag_a = 0, _flag_b = 0;
   1457     uint32_t _itail_tgt = 0;
   1458     RECOMP_REGS_LOCALS
   1459     RECOMP_ENTER(0x4100DEFBu);
   1460 
   1461     goto L_4100DEFB;
   1462 L_4100DB72:
   1463     { _itail_tgt = (uint32_t)(MEM32(0x4100F11C)); goto _ljump; }
   1464 L_4100DEFB:
   1465     eax = 0x4100FBA0u; /* 0x4100DEFB: mov eax, 0x4100fba0 */
   1466 L_4100DF00:
   1467     RECOMP_BACKEDGE();
   1468     goto L_4100DB72; /* 0x4100DF00: jmp 0x4100db72 */
   1469     { RECOMP_REGS_OUT(); return; } /* end of function */
   1470   _ljump:
   1471     switch (_itail_tgt) {
   1472       case 0x4100DB72u: goto L_4100DB72;
   1473       case 0x4100DEFBu: goto L_4100DEFB;
   1474       case 0x4100DF00u: goto L_4100DF00;
   1475       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1476     }
   1477     RECOMP_REGS_OUT();
   1478 }
   1479 
   1480 void sub_4100DF10(void) {
   1481     int _fpu_cmp = 0;
   1482     uint32_t _cf = 0;
   1483     int _df = 1;
   1484     uint32_t _flag_k = FK_NONE;
   1485     uint32_t _flag_a = 0, _flag_b = 0;
   1486     uint32_t _itail_tgt = 0;
   1487     RECOMP_REGS_LOCALS
   1488     RECOMP_ENTER(0x4100DF10u);
   1489 
   1490 L_4100DF10:
   1491     eax = MEM32(ebp + (-0x10)); /* 0x4100DF10: mov eax, dword ptr [ebp - 0x10] */
   1492     PUSH32(esp, eax); /* 0x4100DF13: push eax */
   1493     RECOMP_ICALL(0x4100DB20u); /* 0x4100DF14: call 0x4100db20 */ /* not lifted */
   1494     RECOMP_FLAGS_IN();
   1495     ecx = POP32_VAL(esp); /* 0x4100DF19: pop ecx */
   1496     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100DF1A: ret  */
   1497     RECOMP_REGS_OUT();
   1498 }
   1499 
   1500 void sub_4100DF1B(void) {
   1501     int _fpu_cmp = 0;
   1502     uint32_t _cf = 0;
   1503     int _df = 1;
   1504     uint32_t _flag_k = FK_NONE;
   1505     uint32_t _flag_a = 0, _flag_b = 0;
   1506     uint32_t _itail_tgt = 0;
   1507     RECOMP_REGS_LOCALS
   1508     RECOMP_ENTER(0x4100DF1Bu);
   1509 
   1510     goto L_4100DF1B;
   1511 L_4100DB72:
   1512     { _itail_tgt = (uint32_t)(MEM32(0x4100F11C)); goto _ljump; }
   1513 L_4100DF1B:
   1514     eax = 0x4100FBC8u; /* 0x4100DF1B: mov eax, 0x4100fbc8 */
   1515 L_4100DF20:
   1516     RECOMP_BACKEDGE();
   1517     goto L_4100DB72; /* 0x4100DF20: jmp 0x4100db72 */
   1518     { RECOMP_REGS_OUT(); return; } /* end of function */
   1519   _ljump:
   1520     switch (_itail_tgt) {
   1521       case 0x4100DB72u: goto L_4100DB72;
   1522       case 0x4100DF1Bu: goto L_4100DF1B;
   1523       case 0x4100DF20u: goto L_4100DF20;
   1524       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1525     }
   1526     RECOMP_REGS_OUT();
   1527 }
   1528 
   1529 void sub_4100DF30(void) {
   1530     int _fpu_cmp = 0;
   1531     uint32_t _cf = 0;
   1532     int _df = 1;
   1533     uint32_t _flag_k = FK_NONE;
   1534     uint32_t _flag_a = 0, _flag_b = 0;
   1535     uint32_t _itail_tgt = 0;
   1536     RECOMP_REGS_LOCALS
   1537     RECOMP_ENTER(0x4100DF30u);
   1538 
   1539 L_4100DF30:
   1540     eax = MEM32(ebp + (-0x10)); /* 0x4100DF30: mov eax, dword ptr [ebp - 0x10] */
   1541     PUSH32(esp, eax); /* 0x4100DF33: push eax */
   1542     RECOMP_ICALL(0x4100DB20u); /* 0x4100DF34: call 0x4100db20 */ /* not lifted */
   1543     RECOMP_FLAGS_IN();
   1544     ecx = POP32_VAL(esp); /* 0x4100DF39: pop ecx */
   1545     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100DF3A: ret  */
   1546     RECOMP_REGS_OUT();
   1547 }
   1548 
   1549 void sub_4100DF3B(void) {
   1550     int _fpu_cmp = 0;
   1551     uint32_t _cf = 0;
   1552     int _df = 1;
   1553     uint32_t _flag_k = FK_NONE;
   1554     uint32_t _flag_a = 0, _flag_b = 0;
   1555     uint32_t _itail_tgt = 0;
   1556     RECOMP_REGS_LOCALS
   1557     RECOMP_ENTER(0x4100DF3Bu);
   1558 
   1559     goto L_4100DF3B;
   1560 L_4100DB72:
   1561     { _itail_tgt = (uint32_t)(MEM32(0x4100F11C)); goto _ljump; }
   1562 L_4100DF3B:
   1563     eax = 0x4100FBF0u; /* 0x4100DF3B: mov eax, 0x4100fbf0 */
   1564 L_4100DF40:
   1565     RECOMP_BACKEDGE();
   1566     goto L_4100DB72; /* 0x4100DF40: jmp 0x4100db72 */
   1567     { RECOMP_REGS_OUT(); return; } /* end of function */
   1568   _ljump:
   1569     switch (_itail_tgt) {
   1570       case 0x4100DB72u: goto L_4100DB72;
   1571       case 0x4100DF3Bu: goto L_4100DF3B;
   1572       case 0x4100DF40u: goto L_4100DF40;
   1573       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1574     }
   1575     RECOMP_REGS_OUT();
   1576 }
   1577 
   1578 void sub_4100DF50(void) {
   1579     int _fpu_cmp = 0;
   1580     uint32_t _cf = 0;
   1581     int _df = 1;
   1582     uint32_t _flag_k = FK_NONE;
   1583     uint32_t _flag_a = 0, _flag_b = 0;
   1584     uint32_t _itail_tgt = 0;
   1585     RECOMP_REGS_LOCALS
   1586     RECOMP_ENTER(0x4100DF50u);
   1587 
   1588     goto L_4100DF50;
   1589 L_4100D240:
   1590     MEM32(ecx) = 0x4100F2F4u; /* 0x4100D240: mov dword ptr [ecx], 0x4100f2f4 */
   1591     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100D246: ret  */
   1592 L_4100DF50:
   1593     ecx = ebp + (-0x24); /* 0x4100DF50: lea ecx, [ebp - 0x24] */
   1594     RECOMP_BACKEDGE();
   1595     goto L_4100D240; /* 0x4100DF53: jmp 0x4100d240 */
   1596     { RECOMP_REGS_OUT(); return; } /* end of function */
   1597     RECOMP_REGS_OUT();
   1598 }
   1599 
   1600 void sub_4100DF58(void) {
   1601     int _fpu_cmp = 0;
   1602     uint32_t _cf = 0;
   1603     int _df = 1;
   1604     uint32_t _flag_k = FK_NONE;
   1605     uint32_t _flag_a = 0, _flag_b = 0;
   1606     uint32_t _itail_tgt = 0;
   1607     RECOMP_REGS_LOCALS
   1608     RECOMP_ENTER(0x4100DF58u);
   1609 
   1610 L_4100DF58:
   1611     ecx = ebp + (-0xC8); /* 0x4100DF58: lea ecx, [ebp - 0xc8] */
   1612 L_4100DF5E:
   1613     { _itail_tgt = (uint32_t)(MEM32(0x4100F148)); goto _ljump; }
   1614     { RECOMP_REGS_OUT(); return; } /* end of function */
   1615   _ljump:
   1616     switch (_itail_tgt) {
   1617       case 0x4100DF58u: goto L_4100DF58;
   1618       case 0x4100DF5Eu: goto L_4100DF5E;
   1619       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1620     }
   1621     RECOMP_REGS_OUT();
   1622 }
   1623 
   1624 void sub_4100DF64(void) {
   1625     int _fpu_cmp = 0;
   1626     uint32_t _cf = 0;
   1627     int _df = 1;
   1628     uint32_t _flag_k = FK_NONE;
   1629     uint32_t _flag_a = 0, _flag_b = 0;
   1630     uint32_t _itail_tgt = 0;
   1631     RECOMP_REGS_LOCALS
   1632     RECOMP_ENTER(0x4100DF64u);
   1633 
   1634 L_4100DF64:
   1635     ecx = ebp + (-0x5C); /* 0x4100DF64: lea ecx, [ebp - 0x5c] */
   1636 L_4100DF67:
   1637     { _itail_tgt = (uint32_t)(MEM32(0x4100F06C)); goto _ljump; }
   1638     { RECOMP_REGS_OUT(); return; } /* end of function */
   1639   _ljump:
   1640     switch (_itail_tgt) {
   1641       case 0x4100DF64u: goto L_4100DF64;
   1642       case 0x4100DF67u: goto L_4100DF67;
   1643       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1644     }
   1645     RECOMP_REGS_OUT();
   1646 }
   1647 
   1648 void sub_4100DF6D(void) {
   1649     int _fpu_cmp = 0;
   1650     uint32_t _cf = 0;
   1651     int _df = 1;
   1652     uint32_t _flag_k = FK_NONE;
   1653     uint32_t _flag_a = 0, _flag_b = 0;
   1654     uint32_t _itail_tgt = 0;
   1655     RECOMP_REGS_LOCALS
   1656     RECOMP_ENTER(0x4100DF6Du);
   1657 
   1658     goto L_4100DF6D;
   1659 L_4100DB72:
   1660     { _itail_tgt = (uint32_t)(MEM32(0x4100F11C)); goto _ljump; }
   1661 L_4100DF6D:
   1662     eax = 0x4100FC18u; /* 0x4100DF6D: mov eax, 0x4100fc18 */
   1663 L_4100DF72:
   1664     RECOMP_BACKEDGE();
   1665     goto L_4100DB72; /* 0x4100DF72: jmp 0x4100db72 */
   1666     { RECOMP_REGS_OUT(); return; } /* end of function */
   1667   _ljump:
   1668     switch (_itail_tgt) {
   1669       case 0x4100DB72u: goto L_4100DB72;
   1670       case 0x4100DF6Du: goto L_4100DF6D;
   1671       case 0x4100DF72u: goto L_4100DF72;
   1672       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1673     }
   1674     RECOMP_REGS_OUT();
   1675 }
   1676 
   1677 void sub_4100DF80(void) {
   1678     int _fpu_cmp = 0;
   1679     uint32_t _cf = 0;
   1680     int _df = 1;
   1681     uint32_t _flag_k = FK_NONE;
   1682     uint32_t _flag_a = 0, _flag_b = 0;
   1683     uint32_t _itail_tgt = 0;
   1684     RECOMP_REGS_LOCALS
   1685     RECOMP_ENTER(0x4100DF80u);
   1686 
   1687     goto L_4100DF80;
   1688 L_4100D4D0:
   1689     PUSH32(esp, ebp); /* 0x4100D4D0: push ebp */
   1690     ebp = esp; /* 0x4100D4D1: mov ebp, esp */
   1691     PUSH32(esp, 0xFFFFFFFFu); /* 0x4100D4D3: push -1 */
   1692     PUSH32(esp, 0x4100E968u); /* 0x4100D4D5: push 0x4100e968 */
   1693     eax = MEM32(FS_BASE + (0)); /* 0x4100D4DA: mov eax, dword ptr fs:[0] */
   1694     PUSH32(esp, eax); /* 0x4100D4E0: push eax */
   1695     MEM32(FS_BASE + (0)) = esp; /* 0x4100D4E1: mov dword ptr fs:[0], esp */
   1696     PUSH32(esp, ecx); /* 0x4100D4E8: push ecx */
   1697     PUSH32(esp, esi); /* 0x4100D4E9: push esi */
   1698     esi = ecx; /* 0x4100D4EA: mov esi, ecx */
   1699     MEM32(ebp + (-0x10)) = esi; /* 0x4100D4EC: mov dword ptr [ebp - 0x10], esi */
   1700     MEM32(esi) = 0x4100F334u; /* 0x4100D4EF: mov dword ptr [esi], 0x4100f334 */
   1701     eax = MEM32(esi + 0x4); /* 0x4100D4F5: mov eax, dword ptr [esi + 4] */
   1702     /* test eax, eax */ /* 0x4100D4F8: test eax, eax */
   1703     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1704     _cf = 0;
   1705     _flag_k = FK_TEST;
   1706     MEM32(ebp + (-0x4)) = 0; /* 0x4100D4FA: mov dword ptr [ebp - 4], 0 */
   1707     if (TEST_Z(_flag_a, _flag_b)) goto L_4100D508; /* 0x4100D501: je 0x4100d508 */
   1708 L_4100D503:
   1709     RECOMP_ICALL(0x4100D850u); /* 0x4100D503: call 0x4100d850 */ /* not lifted */
   1710     RECOMP_FLAGS_IN();
   1711 L_4100D508:
   1712     ecx = MEM32(ebp + (-0xC)); /* 0x4100D508: mov ecx, dword ptr [ebp - 0xc] */
   1713     MEM32(esi) = 0x4100F2F4u; /* 0x4100D50B: mov dword ptr [esi], 0x4100f2f4 */
   1714     esi = POP32_VAL(esp); /* 0x4100D511: pop esi */
   1715     MEM32(FS_BASE + (0)) = ecx; /* 0x4100D512: mov dword ptr fs:[0], ecx */
   1716     esp = ebp; /* 0x4100D519: mov esp, ebp */
   1717     ebp = POP32_VAL(esp); /* 0x4100D51B: pop ebp */
   1718     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100D51C: ret  */
   1719 L_4100DF80:
   1720     ecx = ebp + (-0x1C); /* 0x4100DF80: lea ecx, [ebp - 0x1c] */
   1721     RECOMP_BACKEDGE();
   1722     goto L_4100D4D0; /* 0x4100DF83: jmp 0x4100d4d0 */
   1723     { RECOMP_REGS_OUT(); return; } /* end of function */
   1724     RECOMP_REGS_OUT();
   1725 }
   1726 
   1727 void sub_4100DF88(void) {
   1728     int _fpu_cmp = 0;
   1729     uint32_t _cf = 0;
   1730     int _df = 1;
   1731     uint32_t _flag_k = FK_NONE;
   1732     uint32_t _flag_a = 0, _flag_b = 0;
   1733     uint32_t _itail_tgt = 0;
   1734     RECOMP_REGS_LOCALS
   1735     RECOMP_ENTER(0x4100DF88u);
   1736 
   1737 L_4100DF88:
   1738     ecx = ebp + (-0x2C); /* 0x4100DF88: lea ecx, [ebp - 0x2c] */
   1739 L_4100DF8B:
   1740     { _itail_tgt = (uint32_t)(MEM32(0x4100F064)); goto _ljump; }
   1741     { RECOMP_REGS_OUT(); return; } /* end of function */
   1742   _ljump:
   1743     switch (_itail_tgt) {
   1744       case 0x4100DF88u: goto L_4100DF88;
   1745       case 0x4100DF8Bu: goto L_4100DF8B;
   1746       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1747     }
   1748     RECOMP_REGS_OUT();
   1749 }
   1750 
   1751 void sub_4100DF91(void) {
   1752     int _fpu_cmp = 0;
   1753     uint32_t _cf = 0;
   1754     int _df = 1;
   1755     uint32_t _flag_k = FK_NONE;
   1756     uint32_t _flag_a = 0, _flag_b = 0;
   1757     uint32_t _itail_tgt = 0;
   1758     RECOMP_REGS_LOCALS
   1759     RECOMP_ENTER(0x4100DF91u);
   1760 
   1761 L_4100DF91:
   1762     ecx = ebp + (-0x48); /* 0x4100DF91: lea ecx, [ebp - 0x48] */
   1763 L_4100DF94:
   1764     { _itail_tgt = (uint32_t)(MEM32(0x4100F064)); goto _ljump; }
   1765     { RECOMP_REGS_OUT(); return; } /* end of function */
   1766   _ljump:
   1767     switch (_itail_tgt) {
   1768       case 0x4100DF91u: goto L_4100DF91;
   1769       case 0x4100DF94u: goto L_4100DF94;
   1770       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1771     }
   1772     RECOMP_REGS_OUT();
   1773 }
   1774 
   1775 void sub_4100DF9A(void) {
   1776     int _fpu_cmp = 0;
   1777     uint32_t _cf = 0;
   1778     int _df = 1;
   1779     uint32_t _flag_k = FK_NONE;
   1780     uint32_t _flag_a = 0, _flag_b = 0;
   1781     uint32_t _itail_tgt = 0;
   1782     RECOMP_REGS_LOCALS
   1783     RECOMP_ENTER(0x4100DF9Au);
   1784 
   1785 L_4100DF9A:
   1786     ecx = ebp + (-0xC0); /* 0x4100DF9A: lea ecx, [ebp - 0xc0] */
   1787 L_4100DFA0:
   1788     { _itail_tgt = (uint32_t)(MEM32(0x4100F148)); goto _ljump; }
   1789     { RECOMP_REGS_OUT(); return; } /* end of function */
   1790   _ljump:
   1791     switch (_itail_tgt) {
   1792       case 0x4100DF9Au: goto L_4100DF9A;
   1793       case 0x4100DFA0u: goto L_4100DFA0;
   1794       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1795     }
   1796     RECOMP_REGS_OUT();
   1797 }
   1798 
   1799 void sub_4100DFA6(void) {
   1800     int _fpu_cmp = 0;
   1801     uint32_t _cf = 0;
   1802     int _df = 1;
   1803     uint32_t _flag_k = FK_NONE;
   1804     uint32_t _flag_a = 0, _flag_b = 0;
   1805     uint32_t _itail_tgt = 0;
   1806     RECOMP_REGS_LOCALS
   1807     RECOMP_ENTER(0x4100DFA6u);
   1808 
   1809 L_4100DFA6:
   1810     ecx = ebp + (-0x38); /* 0x4100DFA6: lea ecx, [ebp - 0x38] */
   1811 L_4100DFA9:
   1812     { _itail_tgt = (uint32_t)(MEM32(0x4100F06C)); goto _ljump; }
   1813     { RECOMP_REGS_OUT(); return; } /* end of function */
   1814   _ljump:
   1815     switch (_itail_tgt) {
   1816       case 0x4100DFA6u: goto L_4100DFA6;
   1817       case 0x4100DFA9u: goto L_4100DFA9;
   1818       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1819     }
   1820     RECOMP_REGS_OUT();
   1821 }
   1822 
   1823 void sub_4100DFAF(void) {
   1824     int _fpu_cmp = 0;
   1825     uint32_t _cf = 0;
   1826     int _df = 1;
   1827     uint32_t _flag_k = FK_NONE;
   1828     uint32_t _flag_a = 0, _flag_b = 0;
   1829     uint32_t _itail_tgt = 0;
   1830     RECOMP_REGS_LOCALS
   1831     RECOMP_ENTER(0x4100DFAFu);
   1832 
   1833 L_4100DFAF:
   1834     ecx = ebp + (-0x38); /* 0x4100DFAF: lea ecx, [ebp - 0x38] */
   1835 L_4100DFB2:
   1836     { _itail_tgt = (uint32_t)(MEM32(0x4100F110)); goto _ljump; }
   1837     { RECOMP_REGS_OUT(); return; } /* end of function */
   1838   _ljump:
   1839     switch (_itail_tgt) {
   1840       case 0x4100DFAFu: goto L_4100DFAF;
   1841       case 0x4100DFB2u: goto L_4100DFB2;
   1842       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1843     }
   1844     RECOMP_REGS_OUT();
   1845 }
   1846 
   1847 void sub_4100DFB8(void) {
   1848     int _fpu_cmp = 0;
   1849     uint32_t _cf = 0;
   1850     int _df = 1;
   1851     uint32_t _flag_k = FK_NONE;
   1852     uint32_t _flag_a = 0, _flag_b = 0;
   1853     uint32_t _itail_tgt = 0;
   1854     RECOMP_REGS_LOCALS
   1855     RECOMP_ENTER(0x4100DFB8u);
   1856 
   1857     goto L_4100DFB8;
   1858 L_4100DB72:
   1859     { _itail_tgt = (uint32_t)(MEM32(0x4100F11C)); goto _ljump; }
   1860 L_4100DFB8:
   1861     eax = 0x4100FCB8u; /* 0x4100DFB8: mov eax, 0x4100fcb8 */
   1862 L_4100DFBD:
   1863     RECOMP_BACKEDGE();
   1864     goto L_4100DB72; /* 0x4100DFBD: jmp 0x4100db72 */
   1865     { RECOMP_REGS_OUT(); return; } /* end of function */
   1866   _ljump:
   1867     switch (_itail_tgt) {
   1868       case 0x4100DB72u: goto L_4100DB72;
   1869       case 0x4100DFB8u: goto L_4100DFB8;
   1870       case 0x4100DFBDu: goto L_4100DFBD;
   1871       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1872     }
   1873     RECOMP_REGS_OUT();
   1874 }
   1875 
   1876 void sub_4100DFD0(void) {
   1877     int _fpu_cmp = 0;
   1878     uint32_t _cf = 0;
   1879     int _df = 1;
   1880     uint32_t _flag_k = FK_NONE;
   1881     uint32_t _flag_a = 0, _flag_b = 0;
   1882     uint32_t _itail_tgt = 0;
   1883     RECOMP_REGS_LOCALS
   1884     RECOMP_ENTER(0x4100DFD0u);
   1885 
   1886 L_4100DFD0:
   1887     ecx = MEM32(ebp + (-0x14)); /* 0x4100DFD0: mov ecx, dword ptr [ebp - 0x14] */
   1888 L_4100DFD3:
   1889     { _itail_tgt = (uint32_t)(MEM32(0x4100F160)); goto _ljump; }
   1890     { RECOMP_REGS_OUT(); return; } /* end of function */
   1891   _ljump:
   1892     switch (_itail_tgt) {
   1893       case 0x4100DFD0u: goto L_4100DFD0;
   1894       case 0x4100DFD3u: goto L_4100DFD3;
   1895       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1896     }
   1897     RECOMP_REGS_OUT();
   1898 }
   1899 
   1900 void sub_4100DFD9(void) {
   1901     int _fpu_cmp = 0;
   1902     uint32_t _cf = 0;
   1903     int _df = 1;
   1904     uint32_t _flag_k = FK_NONE;
   1905     uint32_t _flag_a = 0, _flag_b = 0;
   1906     uint32_t _itail_tgt = 0;
   1907     RECOMP_REGS_LOCALS
   1908     RECOMP_ENTER(0x4100DFD9u);
   1909 
   1910 L_4100DFD9:
   1911     ecx = MEM32(ebp + (-0x14)); /* 0x4100DFD9: mov ecx, dword ptr [ebp - 0x14] */
   1912 L_4100DFDC:
   1913     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
   1914     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1915     ecx = ecx + 8; /* 0x4100DFDC: add ecx, 8 */
   1916     _flag_k = FK_ADD;
   1917 L_4100DFDF:
   1918     { _itail_tgt = (uint32_t)(MEM32(0x4100F064)); goto _ljump; }
   1919     { RECOMP_REGS_OUT(); return; } /* end of function */
   1920   _ljump:
   1921     switch (_itail_tgt) {
   1922       case 0x4100DFD9u: goto L_4100DFD9;
   1923       case 0x4100DFDCu: goto L_4100DFDC;
   1924       case 0x4100DFDFu: goto L_4100DFDF;
   1925       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1926     }
   1927     RECOMP_REGS_OUT();
   1928 }
   1929 
   1930 void sub_4100DFE5(void) {
   1931     int _fpu_cmp = 0;
   1932     uint32_t _cf = 0;
   1933     int _df = 1;
   1934     uint32_t _flag_k = FK_NONE;
   1935     uint32_t _flag_a = 0, _flag_b = 0;
   1936     uint32_t _itail_tgt = 0;
   1937     RECOMP_REGS_LOCALS
   1938     RECOMP_ENTER(0x4100DFE5u);
   1939 
   1940     goto L_4100DFE5;
   1941 L_41003620:
   1942     PUSH32(esp, ebp); /* 0x41003620: push ebp */
   1943     ebp = esp; /* 0x41003621: mov ebp, esp */
   1944     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1945     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1946     esp = esp - 8; /* 0x41003623: sub esp, 8 */
   1947     _flag_k = FK_CMP;
   1948     PUSH32(esp, ebx); /* 0x41003626: push ebx */
   1949     PUSH32(esp, esi); /* 0x41003627: push esi */
   1950     esi = ecx; /* 0x41003628: mov esi, ecx */
   1951     PUSH32(esp, edi); /* 0x4100362A: push edi */
   1952     edi = MEM32(esi + 0x4); /* 0x4100362B: mov edi, dword ptr [esi + 4] */
   1953     ecx = MEM32(esi + 0x10); /* 0x4100362E: mov ecx, dword ptr [esi + 0x10] */
   1954     /* test ecx, ecx */ /* 0x41003631: test ecx, ecx */
   1955     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1956     _cf = 0;
   1957     _flag_k = FK_TEST;
   1958     eax = MEM32(edi); /* 0x41003633: mov eax, dword ptr [edi] */
   1959     MEM32(ebp + (-0x4)) = eax; /* 0x41003635: mov dword ptr [ebp - 4], eax */
   1960     if (TEST_Z(_flag_a, _flag_b)) goto L_41003697; /* 0x41003638: je 0x41003697 */
   1961 L_4100363A:
   1962     ecx = eax; /* 0x4100363A: mov ecx, eax */
   1963     /* cmp eax, ecx */ /* 0x4100363C: cmp eax, ecx */
   1964     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1965     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1966     _flag_k = FK_CMP;
   1967     if (CMP_NE(_flag_a, _flag_b)) goto L_41003697; /* 0x4100363E: jne 0x41003697 */
   1968 L_41003640:
   1969     /* cmp edi, edi */ /* 0x41003640: cmp edi, edi */
   1970     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1971     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1972     _flag_k = FK_CMP;
   1973     if (CMP_NE(_flag_a, _flag_b)) goto L_41003697; /* 0x41003642: jne 0x41003697 */
   1974 L_41003644:
   1975     ebx = MEM32(edi + 0x4); /* 0x41003644: mov ebx, dword ptr [edi + 4] */
   1976     eax = MEM32(esi + 0x8); /* 0x41003647: mov eax, dword ptr [esi + 8] */
   1977     /* cmp ebx, eax */ /* 0x4100364A: cmp ebx, eax */
   1978     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   1979     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1980     _flag_k = FK_CMP;
   1981     edi = ebx; /* 0x4100364C: mov edi, ebx */
   1982     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100366F; /* 0x4100364E: je 0x4100366f */
   1983 L_41003650:
   1984     eax = MEM32(edi + 0x8); /* 0x41003650: mov eax, dword ptr [edi + 8] */
   1985     ecx = esi; /* 0x41003653: mov ecx, esi */
   1986     PUSH32(esp, eax); /* 0x41003655: push eax */
   1987     RECOMP_ICALL(0x41006480u); /* 0x41003656: call 0x41006480 */ /* not lifted */
   1988     RECOMP_FLAGS_IN();
   1989     edi = MEM32(edi); /* 0x4100365B: mov edi, dword ptr [edi] */
   1990     PUSH32(esp, ebx); /* 0x4100365D: push ebx */
   1991     RECOMP_ICALL(0x4100DB20u); /* 0x4100365E: call 0x4100db20 */ /* not lifted */
   1992     RECOMP_FLAGS_IN();
   1993     eax = MEM32(esi + 0x8); /* 0x41003663: mov eax, dword ptr [esi + 8] */
   1994     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1995     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1996     esp = esp + 4; /* 0x41003666: add esp, 4 */
   1997     _flag_k = FK_ADD;
   1998     /* cmp edi, eax */ /* 0x41003669: cmp edi, eax */
   1999     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2000     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2001     _flag_k = FK_CMP;
   2002     ebx = edi; /* 0x4100366B: mov ebx, edi */
   2003     RECOMP_BACKEDGE();
   2004     if (CMP_NE(_flag_a, _flag_b)) goto L_41003650; /* 0x4100366D: jne 0x41003650 */
   2005 L_4100366F:
   2006     ecx = MEM32(esi + 0x4); /* 0x4100366F: mov ecx, dword ptr [esi + 4] */
   2007     edx = MEM32(esi + 0x8); /* 0x41003672: mov edx, dword ptr [esi + 8] */
   2008     MEM32(ecx + 0x4) = edx; /* 0x41003675: mov dword ptr [ecx + 4], edx */
   2009     eax = MEM32(esi + 0x4); /* 0x41003678: mov eax, dword ptr [esi + 4] */
   2010     MEM32(esi + 0x10) = 0; /* 0x4100367B: mov dword ptr [esi + 0x10], 0 */
   2011     ecx = esi; /* 0x41003682: mov ecx, esi */
   2012     MEM32(eax) = eax; /* 0x41003684: mov dword ptr [eax], eax */
   2013     eax = MEM32(esi + 0x4); /* 0x41003686: mov eax, dword ptr [esi + 4] */
   2014     MEM32(eax + 0x8) = eax; /* 0x41003689: mov dword ptr [eax + 8], eax */
   2015     eax = ebp + (-0x8); /* 0x4100368C: lea eax, [ebp - 8] */
   2016     PUSH32(esp, eax); /* 0x4100368F: push eax */
   2017     RECOMP_ICALL(0x41009AB0u); /* 0x41003690: call 0x41009ab0 */ /* not lifted */
   2018     RECOMP_FLAGS_IN();
   2019     goto L_410036B8; /* 0x41003695: jmp 0x410036b8 */
   2020 L_41003697:
   2021     /* cmp eax, edi */ /* 0x41003697: cmp eax, edi */
   2022     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   2023     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2024     _flag_k = FK_CMP;
   2025     if (CMP_EQ(_flag_a, _flag_b)) goto L_410036B8; /* 0x41003699: je 0x410036b8 */
   2026 L_4100369B:
   2027     ecx = ebp + (-0x4); /* 0x4100369B: lea ecx, [ebp - 4] */
   2028     ebx = eax; /* 0x4100369E: mov ebx, eax */
   2029     RECOMP_ICALL(0x410064E0u); /* 0x410036A0: call 0x410064e0 */ /* not lifted */
   2030     RECOMP_FLAGS_IN();
   2031     ecx = ebp + (-0x8); /* 0x410036A5: lea ecx, [ebp - 8] */
   2032     PUSH32(esp, ebx); /* 0x410036A8: push ebx */
   2033     PUSH32(esp, ecx); /* 0x410036A9: push ecx */
   2034     ecx = esi; /* 0x410036AA: mov ecx, esi */
   2035     RECOMP_ICALL(0x41006530u); /* 0x410036AC: call 0x41006530 */ /* not lifted */
   2036     RECOMP_FLAGS_IN();
   2037     eax = MEM32(ebp + (-0x4)); /* 0x410036B1: mov eax, dword ptr [ebp - 4] */
   2038     /* cmp eax, edi */ /* 0x410036B4: cmp eax, edi */
   2039     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   2040     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2041     _flag_k = FK_CMP;
   2042     RECOMP_BACKEDGE();
   2043     if (CMP_NE(_flag_a, _flag_b)) goto L_4100369B; /* 0x410036B6: jne 0x4100369b */
   2044 L_410036B8:
   2045     edx = MEM32(esi + 0x4); /* 0x410036B8: mov edx, dword ptr [esi + 4] */
   2046     PUSH32(esp, edx); /* 0x410036BB: push edx */
   2047     RECOMP_ICALL(0x4100DB20u); /* 0x410036BC: call 0x4100db20 */ /* not lifted */
   2048     RECOMP_FLAGS_IN();
   2049     eax = MEM32(esi + 0x8); /* 0x410036C1: mov eax, dword ptr [esi + 8] */
   2050     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2051     edi = 0; /* 0x410036C4: xor edi, edi */
   2052     _cf = 0;
   2053     _flag_k = FK_TEST;
   2054     PUSH32(esp, eax); /* 0x410036C6: push eax */
   2055     MEM32(esi + 0x4) = edi; /* 0x410036C7: mov dword ptr [esi + 4], edi */
   2056     MEM32(esi + 0x10) = edi; /* 0x410036CA: mov dword ptr [esi + 0x10], edi */
   2057     RECOMP_ICALL(0x4100DB20u); /* 0x410036CD: call 0x4100db20 */ /* not lifted */
   2058     RECOMP_FLAGS_IN();
   2059     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2060     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2061     esp = esp + 8; /* 0x410036D2: add esp, 8 */
   2062     _flag_k = FK_ADD;
   2063     MEM32(esi + 0x8) = edi; /* 0x410036D5: mov dword ptr [esi + 8], edi */
   2064     edi = POP32_VAL(esp); /* 0x410036D8: pop edi */
   2065     esi = POP32_VAL(esp); /* 0x410036D9: pop esi */
   2066     ebx = POP32_VAL(esp); /* 0x410036DA: pop ebx */
   2067     esp = ebp; /* 0x410036DB: mov esp, ebp */
   2068     ebp = POP32_VAL(esp); /* 0x410036DD: pop ebp */
   2069     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x410036DE: ret  */
   2070 L_4100DFE5:
   2071     ecx = MEM32(ebp + (-0x14)); /* 0x4100DFE5: mov ecx, dword ptr [ebp - 0x14] */
   2072     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1Cu);
   2073     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2074     ecx = ecx + 0x1Cu; /* 0x4100DFE8: add ecx, 0x1c */
   2075     _flag_k = FK_ADD;
   2076     RECOMP_BACKEDGE();
   2077     goto L_41003620; /* 0x4100DFEB: jmp 0x41003620 */
   2078     { RECOMP_REGS_OUT(); return; } /* end of function */
   2079     RECOMP_REGS_OUT();
   2080 }
   2081 
   2082 void sub_4100DFF0(void) {
   2083     int _fpu_cmp = 0;
   2084     uint32_t _cf = 0;
   2085     int _df = 1;
   2086     uint32_t _flag_k = FK_NONE;
   2087     uint32_t _flag_a = 0, _flag_b = 0;
   2088     uint32_t _itail_tgt = 0;
   2089     RECOMP_REGS_LOCALS
   2090     RECOMP_ENTER(0x4100DFF0u);
   2091 
   2092     goto L_4100DFF0;
   2093 L_41009920:
   2094     PUSH32(esp, ebx); /* 0x41009920: push ebx */
   2095     PUSH32(esp, esi); /* 0x41009921: push esi */
   2096     PUSH32(esp, edi); /* 0x41009922: push edi */
   2097     edi = ecx; /* 0x41009923: mov edi, ecx */
   2098     ebx = MEM32(edi + 0x4); /* 0x41009925: mov ebx, dword ptr [edi + 4] */
   2099     esi = MEM32(ebx); /* 0x41009928: mov esi, dword ptr [ebx] */
   2100     /* cmp esi, ebx */ /* 0x4100992A: cmp esi, ebx */
   2101     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   2102     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2103     _flag_k = FK_CMP;
   2104     if (CMP_EQ(_flag_a, _flag_b)) goto L_41009955; /* 0x4100992C: je 0x41009955 */
   2105 L_4100992E:
   2106     eax = esi; /* 0x4100992E: mov eax, esi */
   2107     esi = MEM32(esi); /* 0x41009930: mov esi, dword ptr [esi] */
   2108     PUSH32(esp, eax); /* 0x41009932: push eax */
   2109     ecx = MEM32(eax + 0x4); /* 0x41009933: mov ecx, dword ptr [eax + 4] */
   2110     edx = MEM32(eax); /* 0x41009936: mov edx, dword ptr [eax] */
   2111     MEM32(ecx) = edx; /* 0x41009938: mov dword ptr [ecx], edx */
   2112     ecx = MEM32(eax); /* 0x4100993A: mov ecx, dword ptr [eax] */
   2113     edx = MEM32(eax + 0x4); /* 0x4100993C: mov edx, dword ptr [eax + 4] */
   2114     MEM32(ecx + 0x4) = edx; /* 0x4100993F: mov dword ptr [ecx + 4], edx */
   2115     RECOMP_ICALL(0x4100DB20u); /* 0x41009942: call 0x4100db20 */ /* not lifted */
   2116     RECOMP_FLAGS_IN();
   2117     ecx = MEM32(edi + 0x8); /* 0x41009947: mov ecx, dword ptr [edi + 8] */
   2118     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2119     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2120     esp = esp + 4; /* 0x4100994A: add esp, 4 */
   2121     _flag_k = FK_ADD;
   2122     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2123     ecx = ecx - 1; /* 0x4100994D: dec ecx */
   2124     _flag_k = FK_DEC;
   2125     /* cmp esi, ebx */ /* 0x4100994E: cmp esi, ebx */
   2126     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   2127     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2128     _flag_k = FK_CMP;
   2129     MEM32(edi + 0x8) = ecx; /* 0x41009950: mov dword ptr [edi + 8], ecx */
   2130     RECOMP_BACKEDGE();
   2131     if (CMP_NE(_flag_a, _flag_b)) goto L_4100992E; /* 0x41009953: jne 0x4100992e */
   2132 L_41009955:
   2133     eax = MEM32(edi + 0x4); /* 0x41009955: mov eax, dword ptr [edi + 4] */
   2134     PUSH32(esp, eax); /* 0x41009958: push eax */
   2135     RECOMP_ICALL(0x4100DB20u); /* 0x41009959: call 0x4100db20 */ /* not lifted */
   2136     RECOMP_FLAGS_IN();
   2137     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2138     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2139     esp = esp + 4; /* 0x4100995E: add esp, 4 */
   2140     _flag_k = FK_ADD;
   2141     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2142     eax = 0; /* 0x41009961: xor eax, eax */
   2143     _cf = 0;
   2144     _flag_k = FK_TEST;
   2145     MEM32(edi + 0x4) = eax; /* 0x41009963: mov dword ptr [edi + 4], eax */
   2146     MEM32(edi + 0x8) = eax; /* 0x41009966: mov dword ptr [edi + 8], eax */
   2147     edi = POP32_VAL(esp); /* 0x41009969: pop edi */
   2148     esi = POP32_VAL(esp); /* 0x4100996A: pop esi */
   2149     ebx = POP32_VAL(esp); /* 0x4100996B: pop ebx */
   2150     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100996C: ret  */
   2151 L_4100DFF0:
   2152     ecx = MEM32(ebp + (-0x14)); /* 0x4100DFF0: mov ecx, dword ptr [ebp - 0x14] */
   2153     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x30u);
   2154     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2155     ecx = ecx + 0x30u; /* 0x4100DFF3: add ecx, 0x30 */
   2156     _flag_k = FK_ADD;
   2157     RECOMP_BACKEDGE();
   2158     goto L_41009920; /* 0x4100DFF6: jmp 0x41009920 */
   2159     { RECOMP_REGS_OUT(); return; } /* end of function */
   2160     RECOMP_REGS_OUT();
   2161 }
   2162 
   2163 void sub_4100DFFB(void) {
   2164     int _fpu_cmp = 0;
   2165     uint32_t _cf = 0;
   2166     int _df = 1;
   2167     uint32_t _flag_k = FK_NONE;
   2168     uint32_t _flag_a = 0, _flag_b = 0;
   2169     uint32_t _itail_tgt = 0;
   2170     RECOMP_REGS_LOCALS
   2171     RECOMP_ENTER(0x4100DFFBu);
   2172 
   2173     goto L_4100DFFB;
   2174 L_41009920:
   2175     PUSH32(esp, ebx); /* 0x41009920: push ebx */
   2176     PUSH32(esp, esi); /* 0x41009921: push esi */
   2177     PUSH32(esp, edi); /* 0x41009922: push edi */
   2178     edi = ecx; /* 0x41009923: mov edi, ecx */
   2179     ebx = MEM32(edi + 0x4); /* 0x41009925: mov ebx, dword ptr [edi + 4] */
   2180     esi = MEM32(ebx); /* 0x41009928: mov esi, dword ptr [ebx] */
   2181     /* cmp esi, ebx */ /* 0x4100992A: cmp esi, ebx */
   2182     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   2183     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2184     _flag_k = FK_CMP;
   2185     if (CMP_EQ(_flag_a, _flag_b)) goto L_41009955; /* 0x4100992C: je 0x41009955 */
   2186 L_4100992E:
   2187     eax = esi; /* 0x4100992E: mov eax, esi */
   2188     esi = MEM32(esi); /* 0x41009930: mov esi, dword ptr [esi] */
   2189     PUSH32(esp, eax); /* 0x41009932: push eax */
   2190     ecx = MEM32(eax + 0x4); /* 0x41009933: mov ecx, dword ptr [eax + 4] */
   2191     edx = MEM32(eax); /* 0x41009936: mov edx, dword ptr [eax] */
   2192     MEM32(ecx) = edx; /* 0x41009938: mov dword ptr [ecx], edx */
   2193     ecx = MEM32(eax); /* 0x4100993A: mov ecx, dword ptr [eax] */
   2194     edx = MEM32(eax + 0x4); /* 0x4100993C: mov edx, dword ptr [eax + 4] */
   2195     MEM32(ecx + 0x4) = edx; /* 0x4100993F: mov dword ptr [ecx + 4], edx */
   2196     RECOMP_ICALL(0x4100DB20u); /* 0x41009942: call 0x4100db20 */ /* not lifted */
   2197     RECOMP_FLAGS_IN();
   2198     ecx = MEM32(edi + 0x8); /* 0x41009947: mov ecx, dword ptr [edi + 8] */
   2199     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2200     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2201     esp = esp + 4; /* 0x4100994A: add esp, 4 */
   2202     _flag_k = FK_ADD;
   2203     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2204     ecx = ecx - 1; /* 0x4100994D: dec ecx */
   2205     _flag_k = FK_DEC;
   2206     /* cmp esi, ebx */ /* 0x4100994E: cmp esi, ebx */
   2207     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   2208     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2209     _flag_k = FK_CMP;
   2210     MEM32(edi + 0x8) = ecx; /* 0x41009950: mov dword ptr [edi + 8], ecx */
   2211     RECOMP_BACKEDGE();
   2212     if (CMP_NE(_flag_a, _flag_b)) goto L_4100992E; /* 0x41009953: jne 0x4100992e */
   2213 L_41009955:
   2214     eax = MEM32(edi + 0x4); /* 0x41009955: mov eax, dword ptr [edi + 4] */
   2215     PUSH32(esp, eax); /* 0x41009958: push eax */
   2216     RECOMP_ICALL(0x4100DB20u); /* 0x41009959: call 0x4100db20 */ /* not lifted */
   2217     RECOMP_FLAGS_IN();
   2218     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2219     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2220     esp = esp + 4; /* 0x4100995E: add esp, 4 */
   2221     _flag_k = FK_ADD;
   2222     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2223     eax = 0; /* 0x41009961: xor eax, eax */
   2224     _cf = 0;
   2225     _flag_k = FK_TEST;
   2226     MEM32(edi + 0x4) = eax; /* 0x41009963: mov dword ptr [edi + 4], eax */
   2227     MEM32(edi + 0x8) = eax; /* 0x41009966: mov dword ptr [edi + 8], eax */
   2228     edi = POP32_VAL(esp); /* 0x41009969: pop edi */
   2229     esi = POP32_VAL(esp); /* 0x4100996A: pop esi */
   2230     ebx = POP32_VAL(esp); /* 0x4100996B: pop ebx */
   2231     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100996C: ret  */
   2232 L_4100DFFB:
   2233     ecx = MEM32(ebp + (-0x14)); /* 0x4100DFFB: mov ecx, dword ptr [ebp - 0x14] */
   2234     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x3Cu);
   2235     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2236     ecx = ecx + 0x3Cu; /* 0x4100DFFE: add ecx, 0x3c */
   2237     _flag_k = FK_ADD;
   2238     RECOMP_BACKEDGE();
   2239     goto L_41009920; /* 0x4100E001: jmp 0x41009920 */
   2240     { RECOMP_REGS_OUT(); return; } /* end of function */
   2241     RECOMP_REGS_OUT();
   2242 }
   2243 
   2244 void sub_4100E006(void) {
   2245     int _fpu_cmp = 0;
   2246     uint32_t _cf = 0;
   2247     int _df = 1;
   2248     uint32_t _flag_k = FK_NONE;
   2249     uint32_t _flag_a = 0, _flag_b = 0;
   2250     uint32_t _itail_tgt = 0;
   2251     RECOMP_REGS_LOCALS
   2252     RECOMP_ENTER(0x4100E006u);
   2253 
   2254     goto L_4100E006;
   2255 L_41005DA0:
   2256     PUSH32(esp, ebp); /* 0x41005DA0: push ebp */
   2257     ebp = esp; /* 0x41005DA1: mov ebp, esp */
   2258     PUSH32(esp, ecx); /* 0x41005DA3: push ecx */
   2259     PUSH32(esp, ebx); /* 0x41005DA4: push ebx */
   2260     ebx = ecx; /* 0x41005DA5: mov ebx, ecx */
   2261     PUSH32(esp, edi); /* 0x41005DA7: push edi */
   2262     eax = MEM32(ebx + 0x4); /* 0x41005DA8: mov eax, dword ptr [ebx + 4] */
   2263     MEM32(ebp + (-0x4)) = eax; /* 0x41005DAB: mov dword ptr [ebp - 4], eax */
   2264     edi = MEM32(eax); /* 0x41005DAE: mov edi, dword ptr [eax] */
   2265     /* cmp edi, eax */ /* 0x41005DB0: cmp edi, eax */
   2266     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2267     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2268     _flag_k = FK_CMP;
   2269     if (CMP_EQ(_flag_a, _flag_b)) goto L_41005DEB; /* 0x41005DB2: je 0x41005deb */
   2270 L_41005DB4:
   2271     PUSH32(esp, esi); /* 0x41005DB4: push esi */
   2272 L_41005DB5:
   2273     esi = edi; /* 0x41005DB5: mov esi, edi */
   2274     edi = MEM32(edi); /* 0x41005DB7: mov edi, dword ptr [edi] */
   2275     PUSH32(esp, 1); /* 0x41005DB9: push 1 */
   2276     eax = MEM32(esi + 0x4); /* 0x41005DBB: mov eax, dword ptr [esi + 4] */
   2277     ecx = MEM32(esi); /* 0x41005DBE: mov ecx, dword ptr [esi] */
   2278     MEM32(eax) = ecx; /* 0x41005DC0: mov dword ptr [eax], ecx */
   2279     edx = MEM32(esi); /* 0x41005DC2: mov edx, dword ptr [esi] */
   2280     eax = MEM32(esi + 0x4); /* 0x41005DC4: mov eax, dword ptr [esi + 4] */
   2281     ecx = esi + 0x8; /* 0x41005DC7: lea ecx, [esi + 8] */
   2282     MEM32(edx + 0x4) = eax; /* 0x41005DCA: mov dword ptr [edx + 4], eax */
   2283     RECOMP_ICALL(MEM32(0x4100F05C)); /* 0x41005DCD: call dword ptr [0x4100f05c] */
   2284     RECOMP_FLAGS_IN();
   2285     PUSH32(esp, esi); /* 0x41005DD3: push esi */
   2286     RECOMP_ICALL(0x4100DB20u); /* 0x41005DD4: call 0x4100db20 */ /* not lifted */
   2287     RECOMP_FLAGS_IN();
   2288     ecx = MEM32(ebx + 0x8); /* 0x41005DD9: mov ecx, dword ptr [ebx + 8] */
   2289     eax = MEM32(ebp + (-0x4)); /* 0x41005DDC: mov eax, dword ptr [ebp - 4] */
   2290     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2291     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2292     esp = esp + 4; /* 0x41005DDF: add esp, 4 */
   2293     _flag_k = FK_ADD;
   2294     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2295     ecx = ecx - 1; /* 0x41005DE2: dec ecx */
   2296     _flag_k = FK_DEC;
   2297     /* cmp edi, eax */ /* 0x41005DE3: cmp edi, eax */
   2298     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2299     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2300     _flag_k = FK_CMP;
   2301     MEM32(ebx + 0x8) = ecx; /* 0x41005DE5: mov dword ptr [ebx + 8], ecx */
   2302     RECOMP_BACKEDGE();
   2303     if (CMP_NE(_flag_a, _flag_b)) goto L_41005DB5; /* 0x41005DE8: jne 0x41005db5 */
   2304 L_41005DEA:
   2305     esi = POP32_VAL(esp); /* 0x41005DEA: pop esi */
   2306 L_41005DEB:
   2307     ecx = MEM32(ebx + 0x4); /* 0x41005DEB: mov ecx, dword ptr [ebx + 4] */
   2308     PUSH32(esp, ecx); /* 0x41005DEE: push ecx */
   2309     RECOMP_ICALL(0x4100DB20u); /* 0x41005DEF: call 0x4100db20 */ /* not lifted */
   2310     RECOMP_FLAGS_IN();
   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; /* 0x41005DF4: add esp, 4 */
   2314     _flag_k = FK_ADD;
   2315     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2316     eax = 0; /* 0x41005DF7: xor eax, eax */
   2317     _cf = 0;
   2318     _flag_k = FK_TEST;
   2319     MEM32(ebx + 0x4) = eax; /* 0x41005DF9: mov dword ptr [ebx + 4], eax */
   2320     MEM32(ebx + 0x8) = eax; /* 0x41005DFC: mov dword ptr [ebx + 8], eax */
   2321     edi = POP32_VAL(esp); /* 0x41005DFF: pop edi */
   2322     ebx = POP32_VAL(esp); /* 0x41005E00: pop ebx */
   2323     esp = ebp; /* 0x41005E01: mov esp, ebp */
   2324     ebp = POP32_VAL(esp); /* 0x41005E03: pop ebp */
   2325     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x41005E04: ret  */
   2326 L_4100E006:
   2327     ecx = MEM32(ebp + (-0x14)); /* 0x4100E006: mov ecx, dword ptr [ebp - 0x14] */
   2328     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x4Cu);
   2329     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2330     ecx = ecx + 0x4Cu; /* 0x4100E009: add ecx, 0x4c */
   2331     _flag_k = FK_ADD;
   2332     RECOMP_BACKEDGE();
   2333     goto L_41005DA0; /* 0x4100E00C: jmp 0x41005da0 */
   2334     { RECOMP_REGS_OUT(); return; } /* end of function */
   2335     RECOMP_REGS_OUT();
   2336 }
   2337 
   2338 void sub_4100E011(void) {
   2339     int _fpu_cmp = 0;
   2340     uint32_t _cf = 0;
   2341     int _df = 1;
   2342     uint32_t _flag_k = FK_NONE;
   2343     uint32_t _flag_a = 0, _flag_b = 0;
   2344     uint32_t _itail_tgt = 0;
   2345     RECOMP_REGS_LOCALS
   2346     RECOMP_ENTER(0x4100E011u);
   2347 
   2348     goto L_4100E011;
   2349 L_4100DB72:
   2350     { _itail_tgt = (uint32_t)(MEM32(0x4100F11C)); goto _ljump; }
   2351 L_4100E011:
   2352     eax = 0x4100FD70u; /* 0x4100E011: mov eax, 0x4100fd70 */
   2353 L_4100E016:
   2354     RECOMP_BACKEDGE();
   2355     goto L_4100DB72; /* 0x4100E016: jmp 0x4100db72 */
   2356     { RECOMP_REGS_OUT(); return; } /* end of function */
   2357   _ljump:
   2358     switch (_itail_tgt) {
   2359       case 0x4100DB72u: goto L_4100DB72;
   2360       case 0x4100E011u: goto L_4100E011;
   2361       case 0x4100E016u: goto L_4100E016;
   2362       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2363     }
   2364     RECOMP_REGS_OUT();
   2365 }
   2366 
   2367 void sub_4100E020(void) {
   2368     int _fpu_cmp = 0;
   2369     uint32_t _cf = 0;
   2370     int _df = 1;
   2371     uint32_t _flag_k = FK_NONE;
   2372     uint32_t _flag_a = 0, _flag_b = 0;
   2373     uint32_t _itail_tgt = 0;
   2374     RECOMP_REGS_LOCALS
   2375     RECOMP_ENTER(0x4100E020u);
   2376 
   2377 L_4100E020:
   2378     ecx = MEM32(ebp + (-0x30)); /* 0x4100E020: mov ecx, dword ptr [ebp - 0x30] */
   2379 L_4100E023:
   2380     { _itail_tgt = (uint32_t)(MEM32(0x4100F160)); goto _ljump; }
   2381     { RECOMP_REGS_OUT(); return; } /* end of function */
   2382   _ljump:
   2383     switch (_itail_tgt) {
   2384       case 0x4100E020u: goto L_4100E020;
   2385       case 0x4100E023u: goto L_4100E023;
   2386       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2387     }
   2388     RECOMP_REGS_OUT();
   2389 }
   2390 
   2391 void sub_4100E029(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(0x4100E029u);
   2400 
   2401 L_4100E029:
   2402     ecx = MEM32(ebp + (-0x30)); /* 0x4100E029: mov ecx, dword ptr [ebp - 0x30] */
   2403 L_4100E02C:
   2404     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
   2405     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2406     ecx = ecx + 8; /* 0x4100E02C: add ecx, 8 */
   2407     _flag_k = FK_ADD;
   2408 L_4100E02F:
   2409     { _itail_tgt = (uint32_t)(MEM32(0x4100F064)); goto _ljump; }
   2410     { RECOMP_REGS_OUT(); return; } /* end of function */
   2411   _ljump:
   2412     switch (_itail_tgt) {
   2413       case 0x4100E029u: goto L_4100E029;
   2414       case 0x4100E02Cu: goto L_4100E02C;
   2415       case 0x4100E02Fu: goto L_4100E02F;
   2416       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2417     }
   2418     RECOMP_REGS_OUT();
   2419 }
   2420 
   2421 void sub_4100E035(void) {
   2422     int _fpu_cmp = 0;
   2423     uint32_t _cf = 0;
   2424     int _df = 1;
   2425     uint32_t _flag_k = FK_NONE;
   2426     uint32_t _flag_a = 0, _flag_b = 0;
   2427     uint32_t _itail_tgt = 0;
   2428     RECOMP_REGS_LOCALS
   2429     RECOMP_ENTER(0x4100E035u);
   2430 
   2431     goto L_4100E035;
   2432 L_41003620:
   2433     PUSH32(esp, ebp); /* 0x41003620: push ebp */
   2434     ebp = esp; /* 0x41003621: mov ebp, esp */
   2435     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2436     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2437     esp = esp - 8; /* 0x41003623: sub esp, 8 */
   2438     _flag_k = FK_CMP;
   2439     PUSH32(esp, ebx); /* 0x41003626: push ebx */
   2440     PUSH32(esp, esi); /* 0x41003627: push esi */
   2441     esi = ecx; /* 0x41003628: mov esi, ecx */
   2442     PUSH32(esp, edi); /* 0x4100362A: push edi */
   2443     edi = MEM32(esi + 0x4); /* 0x4100362B: mov edi, dword ptr [esi + 4] */
   2444     ecx = MEM32(esi + 0x10); /* 0x4100362E: mov ecx, dword ptr [esi + 0x10] */
   2445     /* test ecx, ecx */ /* 0x41003631: test ecx, ecx */
   2446     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2447     _cf = 0;
   2448     _flag_k = FK_TEST;
   2449     eax = MEM32(edi); /* 0x41003633: mov eax, dword ptr [edi] */
   2450     MEM32(ebp + (-0x4)) = eax; /* 0x41003635: mov dword ptr [ebp - 4], eax */
   2451     if (TEST_Z(_flag_a, _flag_b)) goto L_41003697; /* 0x41003638: je 0x41003697 */
   2452 L_4100363A:
   2453     ecx = eax; /* 0x4100363A: mov ecx, eax */
   2454     /* cmp eax, ecx */ /* 0x4100363C: cmp eax, ecx */
   2455     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2456     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2457     _flag_k = FK_CMP;
   2458     if (CMP_NE(_flag_a, _flag_b)) goto L_41003697; /* 0x4100363E: jne 0x41003697 */
   2459 L_41003640:
   2460     /* cmp edi, edi */ /* 0x41003640: cmp edi, edi */
   2461     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2462     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2463     _flag_k = FK_CMP;
   2464     if (CMP_NE(_flag_a, _flag_b)) goto L_41003697; /* 0x41003642: jne 0x41003697 */
   2465 L_41003644:
   2466     ebx = MEM32(edi + 0x4); /* 0x41003644: mov ebx, dword ptr [edi + 4] */
   2467     eax = MEM32(esi + 0x8); /* 0x41003647: mov eax, dword ptr [esi + 8] */
   2468     /* cmp ebx, eax */ /* 0x4100364A: cmp ebx, eax */
   2469     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   2470     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2471     _flag_k = FK_CMP;
   2472     edi = ebx; /* 0x4100364C: mov edi, ebx */
   2473     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100366F; /* 0x4100364E: je 0x4100366f */
   2474 L_41003650:
   2475     eax = MEM32(edi + 0x8); /* 0x41003650: mov eax, dword ptr [edi + 8] */
   2476     ecx = esi; /* 0x41003653: mov ecx, esi */
   2477     PUSH32(esp, eax); /* 0x41003655: push eax */
   2478     RECOMP_ICALL(0x41006480u); /* 0x41003656: call 0x41006480 */ /* not lifted */
   2479     RECOMP_FLAGS_IN();
   2480     edi = MEM32(edi); /* 0x4100365B: mov edi, dword ptr [edi] */
   2481     PUSH32(esp, ebx); /* 0x4100365D: push ebx */
   2482     RECOMP_ICALL(0x4100DB20u); /* 0x4100365E: call 0x4100db20 */ /* not lifted */
   2483     RECOMP_FLAGS_IN();
   2484     eax = MEM32(esi + 0x8); /* 0x41003663: mov eax, dword ptr [esi + 8] */
   2485     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2486     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2487     esp = esp + 4; /* 0x41003666: add esp, 4 */
   2488     _flag_k = FK_ADD;
   2489     /* cmp edi, eax */ /* 0x41003669: cmp edi, eax */
   2490     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2491     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2492     _flag_k = FK_CMP;
   2493     ebx = edi; /* 0x4100366B: mov ebx, edi */
   2494     RECOMP_BACKEDGE();
   2495     if (CMP_NE(_flag_a, _flag_b)) goto L_41003650; /* 0x4100366D: jne 0x41003650 */
   2496 L_4100366F:
   2497     ecx = MEM32(esi + 0x4); /* 0x4100366F: mov ecx, dword ptr [esi + 4] */
   2498     edx = MEM32(esi + 0x8); /* 0x41003672: mov edx, dword ptr [esi + 8] */
   2499     MEM32(ecx + 0x4) = edx; /* 0x41003675: mov dword ptr [ecx + 4], edx */
   2500     eax = MEM32(esi + 0x4); /* 0x41003678: mov eax, dword ptr [esi + 4] */
   2501     MEM32(esi + 0x10) = 0; /* 0x4100367B: mov dword ptr [esi + 0x10], 0 */
   2502     ecx = esi; /* 0x41003682: mov ecx, esi */
   2503     MEM32(eax) = eax; /* 0x41003684: mov dword ptr [eax], eax */
   2504     eax = MEM32(esi + 0x4); /* 0x41003686: mov eax, dword ptr [esi + 4] */
   2505     MEM32(eax + 0x8) = eax; /* 0x41003689: mov dword ptr [eax + 8], eax */
   2506     eax = ebp + (-0x8); /* 0x4100368C: lea eax, [ebp - 8] */
   2507     PUSH32(esp, eax); /* 0x4100368F: push eax */
   2508     RECOMP_ICALL(0x41009AB0u); /* 0x41003690: call 0x41009ab0 */ /* not lifted */
   2509     RECOMP_FLAGS_IN();
   2510     goto L_410036B8; /* 0x41003695: jmp 0x410036b8 */
   2511 L_41003697:
   2512     /* cmp eax, edi */ /* 0x41003697: cmp eax, edi */
   2513     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   2514     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2515     _flag_k = FK_CMP;
   2516     if (CMP_EQ(_flag_a, _flag_b)) goto L_410036B8; /* 0x41003699: je 0x410036b8 */
   2517 L_4100369B:
   2518     ecx = ebp + (-0x4); /* 0x4100369B: lea ecx, [ebp - 4] */
   2519     ebx = eax; /* 0x4100369E: mov ebx, eax */
   2520     RECOMP_ICALL(0x410064E0u); /* 0x410036A0: call 0x410064e0 */ /* not lifted */
   2521     RECOMP_FLAGS_IN();
   2522     ecx = ebp + (-0x8); /* 0x410036A5: lea ecx, [ebp - 8] */
   2523     PUSH32(esp, ebx); /* 0x410036A8: push ebx */
   2524     PUSH32(esp, ecx); /* 0x410036A9: push ecx */
   2525     ecx = esi; /* 0x410036AA: mov ecx, esi */
   2526     RECOMP_ICALL(0x41006530u); /* 0x410036AC: call 0x41006530 */ /* not lifted */
   2527     RECOMP_FLAGS_IN();
   2528     eax = MEM32(ebp + (-0x4)); /* 0x410036B1: mov eax, dword ptr [ebp - 4] */
   2529     /* cmp eax, edi */ /* 0x410036B4: cmp eax, edi */
   2530     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   2531     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2532     _flag_k = FK_CMP;
   2533     RECOMP_BACKEDGE();
   2534     if (CMP_NE(_flag_a, _flag_b)) goto L_4100369B; /* 0x410036B6: jne 0x4100369b */
   2535 L_410036B8:
   2536     edx = MEM32(esi + 0x4); /* 0x410036B8: mov edx, dword ptr [esi + 4] */
   2537     PUSH32(esp, edx); /* 0x410036BB: push edx */
   2538     RECOMP_ICALL(0x4100DB20u); /* 0x410036BC: call 0x4100db20 */ /* not lifted */
   2539     RECOMP_FLAGS_IN();
   2540     eax = MEM32(esi + 0x8); /* 0x410036C1: mov eax, dword ptr [esi + 8] */
   2541     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2542     edi = 0; /* 0x410036C4: xor edi, edi */
   2543     _cf = 0;
   2544     _flag_k = FK_TEST;
   2545     PUSH32(esp, eax); /* 0x410036C6: push eax */
   2546     MEM32(esi + 0x4) = edi; /* 0x410036C7: mov dword ptr [esi + 4], edi */
   2547     MEM32(esi + 0x10) = edi; /* 0x410036CA: mov dword ptr [esi + 0x10], edi */
   2548     RECOMP_ICALL(0x4100DB20u); /* 0x410036CD: call 0x4100db20 */ /* not lifted */
   2549     RECOMP_FLAGS_IN();
   2550     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2551     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2552     esp = esp + 8; /* 0x410036D2: add esp, 8 */
   2553     _flag_k = FK_ADD;
   2554     MEM32(esi + 0x8) = edi; /* 0x410036D5: mov dword ptr [esi + 8], edi */
   2555     edi = POP32_VAL(esp); /* 0x410036D8: pop edi */
   2556     esi = POP32_VAL(esp); /* 0x410036D9: pop esi */
   2557     ebx = POP32_VAL(esp); /* 0x410036DA: pop ebx */
   2558     esp = ebp; /* 0x410036DB: mov esp, ebp */
   2559     ebp = POP32_VAL(esp); /* 0x410036DD: pop ebp */
   2560     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x410036DE: ret  */
   2561 L_4100E035:
   2562     ecx = MEM32(ebp + (-0x30)); /* 0x4100E035: mov ecx, dword ptr [ebp - 0x30] */
   2563     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1Cu);
   2564     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2565     ecx = ecx + 0x1Cu; /* 0x4100E038: add ecx, 0x1c */
   2566     _flag_k = FK_ADD;
   2567     RECOMP_BACKEDGE();
   2568     goto L_41003620; /* 0x4100E03B: jmp 0x41003620 */
   2569     { RECOMP_REGS_OUT(); return; } /* end of function */
   2570     RECOMP_REGS_OUT();
   2571 }
   2572 
   2573 void sub_4100E040(void) {
   2574     int _fpu_cmp = 0;
   2575     uint32_t _cf = 0;
   2576     int _df = 1;
   2577     uint32_t _flag_k = FK_NONE;
   2578     uint32_t _flag_a = 0, _flag_b = 0;
   2579     uint32_t _itail_tgt = 0;
   2580     RECOMP_REGS_LOCALS
   2581     RECOMP_ENTER(0x4100E040u);
   2582 
   2583     goto L_4100E040;
   2584 L_41009920:
   2585     PUSH32(esp, ebx); /* 0x41009920: push ebx */
   2586     PUSH32(esp, esi); /* 0x41009921: push esi */
   2587     PUSH32(esp, edi); /* 0x41009922: push edi */
   2588     edi = ecx; /* 0x41009923: mov edi, ecx */
   2589     ebx = MEM32(edi + 0x4); /* 0x41009925: mov ebx, dword ptr [edi + 4] */
   2590     esi = MEM32(ebx); /* 0x41009928: mov esi, dword ptr [ebx] */
   2591     /* cmp esi, ebx */ /* 0x4100992A: cmp esi, ebx */
   2592     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   2593     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2594     _flag_k = FK_CMP;
   2595     if (CMP_EQ(_flag_a, _flag_b)) goto L_41009955; /* 0x4100992C: je 0x41009955 */
   2596 L_4100992E:
   2597     eax = esi; /* 0x4100992E: mov eax, esi */
   2598     esi = MEM32(esi); /* 0x41009930: mov esi, dword ptr [esi] */
   2599     PUSH32(esp, eax); /* 0x41009932: push eax */
   2600     ecx = MEM32(eax + 0x4); /* 0x41009933: mov ecx, dword ptr [eax + 4] */
   2601     edx = MEM32(eax); /* 0x41009936: mov edx, dword ptr [eax] */
   2602     MEM32(ecx) = edx; /* 0x41009938: mov dword ptr [ecx], edx */
   2603     ecx = MEM32(eax); /* 0x4100993A: mov ecx, dword ptr [eax] */
   2604     edx = MEM32(eax + 0x4); /* 0x4100993C: mov edx, dword ptr [eax + 4] */
   2605     MEM32(ecx + 0x4) = edx; /* 0x4100993F: mov dword ptr [ecx + 4], edx */
   2606     RECOMP_ICALL(0x4100DB20u); /* 0x41009942: call 0x4100db20 */ /* not lifted */
   2607     RECOMP_FLAGS_IN();
   2608     ecx = MEM32(edi + 0x8); /* 0x41009947: mov ecx, dword ptr [edi + 8] */
   2609     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2610     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2611     esp = esp + 4; /* 0x4100994A: add esp, 4 */
   2612     _flag_k = FK_ADD;
   2613     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2614     ecx = ecx - 1; /* 0x4100994D: dec ecx */
   2615     _flag_k = FK_DEC;
   2616     /* cmp esi, ebx */ /* 0x4100994E: cmp esi, ebx */
   2617     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   2618     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2619     _flag_k = FK_CMP;
   2620     MEM32(edi + 0x8) = ecx; /* 0x41009950: mov dword ptr [edi + 8], ecx */
   2621     RECOMP_BACKEDGE();
   2622     if (CMP_NE(_flag_a, _flag_b)) goto L_4100992E; /* 0x41009953: jne 0x4100992e */
   2623 L_41009955:
   2624     eax = MEM32(edi + 0x4); /* 0x41009955: mov eax, dword ptr [edi + 4] */
   2625     PUSH32(esp, eax); /* 0x41009958: push eax */
   2626     RECOMP_ICALL(0x4100DB20u); /* 0x41009959: call 0x4100db20 */ /* not lifted */
   2627     RECOMP_FLAGS_IN();
   2628     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2629     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2630     esp = esp + 4; /* 0x4100995E: add esp, 4 */
   2631     _flag_k = FK_ADD;
   2632     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2633     eax = 0; /* 0x41009961: xor eax, eax */
   2634     _cf = 0;
   2635     _flag_k = FK_TEST;
   2636     MEM32(edi + 0x4) = eax; /* 0x41009963: mov dword ptr [edi + 4], eax */
   2637     MEM32(edi + 0x8) = eax; /* 0x41009966: mov dword ptr [edi + 8], eax */
   2638     edi = POP32_VAL(esp); /* 0x41009969: pop edi */
   2639     esi = POP32_VAL(esp); /* 0x4100996A: pop esi */
   2640     ebx = POP32_VAL(esp); /* 0x4100996B: pop ebx */
   2641     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100996C: ret  */
   2642 L_4100E040:
   2643     ecx = MEM32(ebp + (-0x30)); /* 0x4100E040: mov ecx, dword ptr [ebp - 0x30] */
   2644     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x30u);
   2645     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2646     ecx = ecx + 0x30u; /* 0x4100E043: add ecx, 0x30 */
   2647     _flag_k = FK_ADD;
   2648     RECOMP_BACKEDGE();
   2649     goto L_41009920; /* 0x4100E046: jmp 0x41009920 */
   2650     { RECOMP_REGS_OUT(); return; } /* end of function */
   2651     RECOMP_REGS_OUT();
   2652 }
   2653 
   2654 void sub_4100E04B(void) {
   2655     int _fpu_cmp = 0;
   2656     uint32_t _cf = 0;
   2657     int _df = 1;
   2658     uint32_t _flag_k = FK_NONE;
   2659     uint32_t _flag_a = 0, _flag_b = 0;
   2660     uint32_t _itail_tgt = 0;
   2661     RECOMP_REGS_LOCALS
   2662     RECOMP_ENTER(0x4100E04Bu);
   2663 
   2664     goto L_4100E04B;
   2665 L_41009920:
   2666     PUSH32(esp, ebx); /* 0x41009920: push ebx */
   2667     PUSH32(esp, esi); /* 0x41009921: push esi */
   2668     PUSH32(esp, edi); /* 0x41009922: push edi */
   2669     edi = ecx; /* 0x41009923: mov edi, ecx */
   2670     ebx = MEM32(edi + 0x4); /* 0x41009925: mov ebx, dword ptr [edi + 4] */
   2671     esi = MEM32(ebx); /* 0x41009928: mov esi, dword ptr [ebx] */
   2672     /* cmp esi, ebx */ /* 0x4100992A: cmp esi, ebx */
   2673     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   2674     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2675     _flag_k = FK_CMP;
   2676     if (CMP_EQ(_flag_a, _flag_b)) goto L_41009955; /* 0x4100992C: je 0x41009955 */
   2677 L_4100992E:
   2678     eax = esi; /* 0x4100992E: mov eax, esi */
   2679     esi = MEM32(esi); /* 0x41009930: mov esi, dword ptr [esi] */
   2680     PUSH32(esp, eax); /* 0x41009932: push eax */
   2681     ecx = MEM32(eax + 0x4); /* 0x41009933: mov ecx, dword ptr [eax + 4] */
   2682     edx = MEM32(eax); /* 0x41009936: mov edx, dword ptr [eax] */
   2683     MEM32(ecx) = edx; /* 0x41009938: mov dword ptr [ecx], edx */
   2684     ecx = MEM32(eax); /* 0x4100993A: mov ecx, dword ptr [eax] */
   2685     edx = MEM32(eax + 0x4); /* 0x4100993C: mov edx, dword ptr [eax + 4] */
   2686     MEM32(ecx + 0x4) = edx; /* 0x4100993F: mov dword ptr [ecx + 4], edx */
   2687     RECOMP_ICALL(0x4100DB20u); /* 0x41009942: call 0x4100db20 */ /* not lifted */
   2688     RECOMP_FLAGS_IN();
   2689     ecx = MEM32(edi + 0x8); /* 0x41009947: mov ecx, dword ptr [edi + 8] */
   2690     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2691     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2692     esp = esp + 4; /* 0x4100994A: add esp, 4 */
   2693     _flag_k = FK_ADD;
   2694     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2695     ecx = ecx - 1; /* 0x4100994D: dec ecx */
   2696     _flag_k = FK_DEC;
   2697     /* cmp esi, ebx */ /* 0x4100994E: cmp esi, ebx */
   2698     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   2699     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2700     _flag_k = FK_CMP;
   2701     MEM32(edi + 0x8) = ecx; /* 0x41009950: mov dword ptr [edi + 8], ecx */
   2702     RECOMP_BACKEDGE();
   2703     if (CMP_NE(_flag_a, _flag_b)) goto L_4100992E; /* 0x41009953: jne 0x4100992e */
   2704 L_41009955:
   2705     eax = MEM32(edi + 0x4); /* 0x41009955: mov eax, dword ptr [edi + 4] */
   2706     PUSH32(esp, eax); /* 0x41009958: push eax */
   2707     RECOMP_ICALL(0x4100DB20u); /* 0x41009959: call 0x4100db20 */ /* not lifted */
   2708     RECOMP_FLAGS_IN();
   2709     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2710     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2711     esp = esp + 4; /* 0x4100995E: add esp, 4 */
   2712     _flag_k = FK_ADD;
   2713     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2714     eax = 0; /* 0x41009961: xor eax, eax */
   2715     _cf = 0;
   2716     _flag_k = FK_TEST;
   2717     MEM32(edi + 0x4) = eax; /* 0x41009963: mov dword ptr [edi + 4], eax */
   2718     MEM32(edi + 0x8) = eax; /* 0x41009966: mov dword ptr [edi + 8], eax */
   2719     edi = POP32_VAL(esp); /* 0x41009969: pop edi */
   2720     esi = POP32_VAL(esp); /* 0x4100996A: pop esi */
   2721     ebx = POP32_VAL(esp); /* 0x4100996B: pop ebx */
   2722     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100996C: ret  */
   2723 L_4100E04B:
   2724     ecx = MEM32(ebp + (-0x30)); /* 0x4100E04B: mov ecx, dword ptr [ebp - 0x30] */
   2725     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x3Cu);
   2726     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2727     ecx = ecx + 0x3Cu; /* 0x4100E04E: add ecx, 0x3c */
   2728     _flag_k = FK_ADD;
   2729     RECOMP_BACKEDGE();
   2730     goto L_41009920; /* 0x4100E051: jmp 0x41009920 */
   2731     { RECOMP_REGS_OUT(); return; } /* end of function */
   2732     RECOMP_REGS_OUT();
   2733 }
   2734 
   2735 void sub_4100E056(void) {
   2736     int _fpu_cmp = 0;
   2737     uint32_t _cf = 0;
   2738     int _df = 1;
   2739     uint32_t _flag_k = FK_NONE;
   2740     uint32_t _flag_a = 0, _flag_b = 0;
   2741     uint32_t _itail_tgt = 0;
   2742     RECOMP_REGS_LOCALS
   2743     RECOMP_ENTER(0x4100E056u);
   2744 
   2745     goto L_4100E056;
   2746 L_41005DA0:
   2747     PUSH32(esp, ebp); /* 0x41005DA0: push ebp */
   2748     ebp = esp; /* 0x41005DA1: mov ebp, esp */
   2749     PUSH32(esp, ecx); /* 0x41005DA3: push ecx */
   2750     PUSH32(esp, ebx); /* 0x41005DA4: push ebx */
   2751     ebx = ecx; /* 0x41005DA5: mov ebx, ecx */
   2752     PUSH32(esp, edi); /* 0x41005DA7: push edi */
   2753     eax = MEM32(ebx + 0x4); /* 0x41005DA8: mov eax, dword ptr [ebx + 4] */
   2754     MEM32(ebp + (-0x4)) = eax; /* 0x41005DAB: mov dword ptr [ebp - 4], eax */
   2755     edi = MEM32(eax); /* 0x41005DAE: mov edi, dword ptr [eax] */
   2756     /* cmp edi, eax */ /* 0x41005DB0: cmp edi, eax */
   2757     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2758     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2759     _flag_k = FK_CMP;
   2760     if (CMP_EQ(_flag_a, _flag_b)) goto L_41005DEB; /* 0x41005DB2: je 0x41005deb */
   2761 L_41005DB4:
   2762     PUSH32(esp, esi); /* 0x41005DB4: push esi */
   2763 L_41005DB5:
   2764     esi = edi; /* 0x41005DB5: mov esi, edi */
   2765     edi = MEM32(edi); /* 0x41005DB7: mov edi, dword ptr [edi] */
   2766     PUSH32(esp, 1); /* 0x41005DB9: push 1 */
   2767     eax = MEM32(esi + 0x4); /* 0x41005DBB: mov eax, dword ptr [esi + 4] */
   2768     ecx = MEM32(esi); /* 0x41005DBE: mov ecx, dword ptr [esi] */
   2769     MEM32(eax) = ecx; /* 0x41005DC0: mov dword ptr [eax], ecx */
   2770     edx = MEM32(esi); /* 0x41005DC2: mov edx, dword ptr [esi] */
   2771     eax = MEM32(esi + 0x4); /* 0x41005DC4: mov eax, dword ptr [esi + 4] */
   2772     ecx = esi + 0x8; /* 0x41005DC7: lea ecx, [esi + 8] */
   2773     MEM32(edx + 0x4) = eax; /* 0x41005DCA: mov dword ptr [edx + 4], eax */
   2774     RECOMP_ICALL(MEM32(0x4100F05C)); /* 0x41005DCD: call dword ptr [0x4100f05c] */
   2775     RECOMP_FLAGS_IN();
   2776     PUSH32(esp, esi); /* 0x41005DD3: push esi */
   2777     RECOMP_ICALL(0x4100DB20u); /* 0x41005DD4: call 0x4100db20 */ /* not lifted */
   2778     RECOMP_FLAGS_IN();
   2779     ecx = MEM32(ebx + 0x8); /* 0x41005DD9: mov ecx, dword ptr [ebx + 8] */
   2780     eax = MEM32(ebp + (-0x4)); /* 0x41005DDC: mov eax, dword ptr [ebp - 4] */
   2781     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2782     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2783     esp = esp + 4; /* 0x41005DDF: add esp, 4 */
   2784     _flag_k = FK_ADD;
   2785     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2786     ecx = ecx - 1; /* 0x41005DE2: dec ecx */
   2787     _flag_k = FK_DEC;
   2788     /* cmp edi, eax */ /* 0x41005DE3: cmp edi, eax */
   2789     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2790     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2791     _flag_k = FK_CMP;
   2792     MEM32(ebx + 0x8) = ecx; /* 0x41005DE5: mov dword ptr [ebx + 8], ecx */
   2793     RECOMP_BACKEDGE();
   2794     if (CMP_NE(_flag_a, _flag_b)) goto L_41005DB5; /* 0x41005DE8: jne 0x41005db5 */
   2795 L_41005DEA:
   2796     esi = POP32_VAL(esp); /* 0x41005DEA: pop esi */
   2797 L_41005DEB:
   2798     ecx = MEM32(ebx + 0x4); /* 0x41005DEB: mov ecx, dword ptr [ebx + 4] */
   2799     PUSH32(esp, ecx); /* 0x41005DEE: push ecx */
   2800     RECOMP_ICALL(0x4100DB20u); /* 0x41005DEF: call 0x4100db20 */ /* not lifted */
   2801     RECOMP_FLAGS_IN();
   2802     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2803     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2804     esp = esp + 4; /* 0x41005DF4: add esp, 4 */
   2805     _flag_k = FK_ADD;
   2806     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2807     eax = 0; /* 0x41005DF7: xor eax, eax */
   2808     _cf = 0;
   2809     _flag_k = FK_TEST;
   2810     MEM32(ebx + 0x4) = eax; /* 0x41005DF9: mov dword ptr [ebx + 4], eax */
   2811     MEM32(ebx + 0x8) = eax; /* 0x41005DFC: mov dword ptr [ebx + 8], eax */
   2812     edi = POP32_VAL(esp); /* 0x41005DFF: pop edi */
   2813     ebx = POP32_VAL(esp); /* 0x41005E00: pop ebx */
   2814     esp = ebp; /* 0x41005E01: mov esp, ebp */
   2815     ebp = POP32_VAL(esp); /* 0x41005E03: pop ebp */
   2816     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x41005E04: ret  */
   2817 L_4100E056:
   2818     ecx = MEM32(ebp + (-0x30)); /* 0x4100E056: mov ecx, dword ptr [ebp - 0x30] */
   2819     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x4Cu);
   2820     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2821     ecx = ecx + 0x4Cu; /* 0x4100E059: add ecx, 0x4c */
   2822     _flag_k = FK_ADD;
   2823     RECOMP_BACKEDGE();
   2824     goto L_41005DA0; /* 0x4100E05C: jmp 0x41005da0 */
   2825     { RECOMP_REGS_OUT(); return; } /* end of function */
   2826     RECOMP_REGS_OUT();
   2827 }
   2828 
   2829 void sub_4100E061(void) {
   2830     int _fpu_cmp = 0;
   2831     uint32_t _cf = 0;
   2832     int _df = 1;
   2833     uint32_t _flag_k = FK_NONE;
   2834     uint32_t _flag_a = 0, _flag_b = 0;
   2835     uint32_t _itail_tgt = 0;
   2836     RECOMP_REGS_LOCALS
   2837     RECOMP_ENTER(0x4100E061u);
   2838 
   2839 L_4100E061:
   2840     ecx = ebp + (-0x50); /* 0x4100E061: lea ecx, [ebp - 0x50] */
   2841 L_4100E064:
   2842     { _itail_tgt = (uint32_t)(MEM32(0x4100F064)); goto _ljump; }
   2843     { RECOMP_REGS_OUT(); return; } /* end of function */
   2844   _ljump:
   2845     switch (_itail_tgt) {
   2846       case 0x4100E061u: goto L_4100E061;
   2847       case 0x4100E064u: goto L_4100E064;
   2848       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2849     }
   2850     RECOMP_REGS_OUT();
   2851 }
   2852 
   2853 void sub_4100E06A(void) {
   2854     int _fpu_cmp = 0;
   2855     uint32_t _cf = 0;
   2856     int _df = 1;
   2857     uint32_t _flag_k = FK_NONE;
   2858     uint32_t _flag_a = 0, _flag_b = 0;
   2859     uint32_t _itail_tgt = 0;
   2860     RECOMP_REGS_LOCALS
   2861     RECOMP_ENTER(0x4100E06Au);
   2862 
   2863 L_4100E06A:
   2864     eax = MEM32(ebp + (-0x28)); /* 0x4100E06A: mov eax, dword ptr [ebp - 0x28] */
   2865     PUSH32(esp, eax); /* 0x4100E06D: push eax */
   2866     RECOMP_ICALL(0x4100DB20u); /* 0x4100E06E: call 0x4100db20 */ /* not lifted */
   2867     RECOMP_FLAGS_IN();
   2868     ecx = POP32_VAL(esp); /* 0x4100E073: pop ecx */
   2869     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100E074: ret  */
   2870     RECOMP_REGS_OUT();
   2871 }
   2872 
   2873 void sub_4100E075(void) {
   2874     int _fpu_cmp = 0;
   2875     uint32_t _cf = 0;
   2876     int _df = 1;
   2877     uint32_t _flag_k = FK_NONE;
   2878     uint32_t _flag_a = 0, _flag_b = 0;
   2879     uint32_t _itail_tgt = 0;
   2880     RECOMP_REGS_LOCALS
   2881     RECOMP_ENTER(0x4100E075u);
   2882 
   2883 L_4100E075:
   2884     ecx = ebp + (-0x50); /* 0x4100E075: lea ecx, [ebp - 0x50] */
   2885 L_4100E078:
   2886     { _itail_tgt = (uint32_t)(MEM32(0x4100F064)); goto _ljump; }
   2887     { RECOMP_REGS_OUT(); return; } /* end of function */
   2888   _ljump:
   2889     switch (_itail_tgt) {
   2890       case 0x4100E075u: goto L_4100E075;
   2891       case 0x4100E078u: goto L_4100E078;
   2892       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2893     }
   2894     RECOMP_REGS_OUT();
   2895 }
   2896 
   2897 void sub_4100E07E(void) {
   2898     int _fpu_cmp = 0;
   2899     uint32_t _cf = 0;
   2900     int _df = 1;
   2901     uint32_t _flag_k = FK_NONE;
   2902     uint32_t _flag_a = 0, _flag_b = 0;
   2903     uint32_t _itail_tgt = 0;
   2904     RECOMP_REGS_LOCALS
   2905     RECOMP_ENTER(0x4100E07Eu);
   2906 
   2907     goto L_4100E07E;
   2908 L_4100DB72:
   2909     { _itail_tgt = (uint32_t)(MEM32(0x4100F11C)); goto _ljump; }
   2910 L_4100E07E:
   2911     eax = 0x4100FDC0u; /* 0x4100E07E: mov eax, 0x4100fdc0 */
   2912 L_4100E083:
   2913     RECOMP_BACKEDGE();
   2914     goto L_4100DB72; /* 0x4100E083: jmp 0x4100db72 */
   2915     { RECOMP_REGS_OUT(); return; } /* end of function */
   2916   _ljump:
   2917     switch (_itail_tgt) {
   2918       case 0x4100DB72u: goto L_4100DB72;
   2919       case 0x4100E07Eu: goto L_4100E07E;
   2920       case 0x4100E083u: goto L_4100E083;
   2921       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2922     }
   2923     RECOMP_REGS_OUT();
   2924 }
   2925 
   2926 void sub_4100E090(void) {
   2927     int _fpu_cmp = 0;
   2928     uint32_t _cf = 0;
   2929     int _df = 1;
   2930     uint32_t _flag_k = FK_NONE;
   2931     uint32_t _flag_a = 0, _flag_b = 0;
   2932     uint32_t _itail_tgt = 0;
   2933     RECOMP_REGS_LOCALS
   2934     RECOMP_ENTER(0x4100E090u);
   2935 
   2936 L_4100E090:
   2937     ecx = ebp + 0x8; /* 0x4100E090: lea ecx, [ebp + 8] */
   2938 L_4100E093:
   2939     { _itail_tgt = (uint32_t)(MEM32(0x4100F064)); goto _ljump; }
   2940     { RECOMP_REGS_OUT(); return; } /* end of function */
   2941   _ljump:
   2942     switch (_itail_tgt) {
   2943       case 0x4100E090u: goto L_4100E090;
   2944       case 0x4100E093u: goto L_4100E093;
   2945       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2946     }
   2947     RECOMP_REGS_OUT();
   2948 }
   2949 
   2950 void sub_4100E099(void) {
   2951     int _fpu_cmp = 0;
   2952     uint32_t _cf = 0;
   2953     int _df = 1;
   2954     uint32_t _flag_k = FK_NONE;
   2955     uint32_t _flag_a = 0, _flag_b = 0;
   2956     uint32_t _itail_tgt = 0;
   2957     RECOMP_REGS_LOCALS
   2958     RECOMP_ENTER(0x4100E099u);
   2959 
   2960     goto L_4100E099;
   2961 L_4100DB72:
   2962     { _itail_tgt = (uint32_t)(MEM32(0x4100F11C)); goto _ljump; }
   2963 L_4100E099:
   2964     eax = 0x4100FE28u; /* 0x4100E099: mov eax, 0x4100fe28 */
   2965 L_4100E09E:
   2966     RECOMP_BACKEDGE();
   2967     goto L_4100DB72; /* 0x4100E09E: jmp 0x4100db72 */
   2968     { RECOMP_REGS_OUT(); return; } /* end of function */
   2969   _ljump:
   2970     switch (_itail_tgt) {
   2971       case 0x4100DB72u: goto L_4100DB72;
   2972       case 0x4100E099u: goto L_4100E099;
   2973       case 0x4100E09Eu: goto L_4100E09E;
   2974       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2975     }
   2976     RECOMP_REGS_OUT();
   2977 }
   2978 
   2979 void sub_4100E0B0(void) {
   2980     int _fpu_cmp = 0;
   2981     uint32_t _cf = 0;
   2982     int _df = 1;
   2983     uint32_t _flag_k = FK_NONE;
   2984     uint32_t _flag_a = 0, _flag_b = 0;
   2985     uint32_t _itail_tgt = 0;
   2986     RECOMP_REGS_LOCALS
   2987     RECOMP_ENTER(0x4100E0B0u);
   2988 
   2989 L_4100E0B0:
   2990     ecx = ebp + (-0x28); /* 0x4100E0B0: lea ecx, [ebp - 0x28] */
   2991 L_4100E0B3:
   2992     { _itail_tgt = (uint32_t)(MEM32(0x4100F064)); goto _ljump; }
   2993     { RECOMP_REGS_OUT(); return; } /* end of function */
   2994   _ljump:
   2995     switch (_itail_tgt) {
   2996       case 0x4100E0B0u: goto L_4100E0B0;
   2997       case 0x4100E0B3u: goto L_4100E0B3;
   2998       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2999     }
   3000     RECOMP_REGS_OUT();
   3001 }
   3002 
   3003 void sub_4100E0B9(void) {
   3004     int _fpu_cmp = 0;
   3005     uint32_t _cf = 0;
   3006     int _df = 1;
   3007     uint32_t _flag_k = FK_NONE;
   3008     uint32_t _flag_a = 0, _flag_b = 0;
   3009     uint32_t _itail_tgt = 0;
   3010     RECOMP_REGS_LOCALS
   3011     RECOMP_ENTER(0x4100E0B9u);
   3012 
   3013 L_4100E0B9:
   3014     ecx = ebp + (-0x38); /* 0x4100E0B9: lea ecx, [ebp - 0x38] */
   3015 L_4100E0BC:
   3016     { _itail_tgt = (uint32_t)(MEM32(0x4100F064)); goto _ljump; }
   3017     { RECOMP_REGS_OUT(); return; } /* end of function */
   3018   _ljump:
   3019     switch (_itail_tgt) {
   3020       case 0x4100E0B9u: goto L_4100E0B9;
   3021       case 0x4100E0BCu: goto L_4100E0BC;
   3022       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3023     }
   3024     RECOMP_REGS_OUT();
   3025 }
   3026 
   3027 void sub_4100E0C2(void) {
   3028     int _fpu_cmp = 0;
   3029     uint32_t _cf = 0;
   3030     int _df = 1;
   3031     uint32_t _flag_k = FK_NONE;
   3032     uint32_t _flag_a = 0, _flag_b = 0;
   3033     uint32_t _itail_tgt = 0;
   3034     RECOMP_REGS_LOCALS
   3035     RECOMP_ENTER(0x4100E0C2u);
   3036 
   3037 L_4100E0C2:
   3038     ecx = ebp + (-0x38); /* 0x4100E0C2: lea ecx, [ebp - 0x38] */
   3039 L_4100E0C5:
   3040     { _itail_tgt = (uint32_t)(MEM32(0x4100F064)); goto _ljump; }
   3041     { RECOMP_REGS_OUT(); return; } /* end of function */
   3042   _ljump:
   3043     switch (_itail_tgt) {
   3044       case 0x4100E0C2u: goto L_4100E0C2;
   3045       case 0x4100E0C5u: goto L_4100E0C5;
   3046       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3047     }
   3048     RECOMP_REGS_OUT();
   3049 }
   3050 
   3051 void sub_4100E0CB(void) {
   3052     int _fpu_cmp = 0;
   3053     uint32_t _cf = 0;
   3054     int _df = 1;
   3055     uint32_t _flag_k = FK_NONE;
   3056     uint32_t _flag_a = 0, _flag_b = 0;
   3057     uint32_t _itail_tgt = 0;
   3058     RECOMP_REGS_LOCALS
   3059     RECOMP_ENTER(0x4100E0CBu);
   3060 
   3061 L_4100E0CB:
   3062     ecx = ebp + (-0x38); /* 0x4100E0CB: lea ecx, [ebp - 0x38] */
   3063 L_4100E0CE:
   3064     { _itail_tgt = (uint32_t)(MEM32(0x4100F064)); goto _ljump; }
   3065     { RECOMP_REGS_OUT(); return; } /* end of function */
   3066   _ljump:
   3067     switch (_itail_tgt) {
   3068       case 0x4100E0CBu: goto L_4100E0CB;
   3069       case 0x4100E0CEu: goto L_4100E0CE;
   3070       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3071     }
   3072     RECOMP_REGS_OUT();
   3073 }
   3074 
   3075 void sub_4100E0D4(void) {
   3076     int _fpu_cmp = 0;
   3077     uint32_t _cf = 0;
   3078     int _df = 1;
   3079     uint32_t _flag_k = FK_NONE;
   3080     uint32_t _flag_a = 0, _flag_b = 0;
   3081     uint32_t _itail_tgt = 0;
   3082     RECOMP_REGS_LOCALS
   3083     RECOMP_ENTER(0x4100E0D4u);
   3084 
   3085     goto L_4100E0D4;
   3086 L_4100DB72:
   3087     { _itail_tgt = (uint32_t)(MEM32(0x4100F11C)); goto _ljump; }
   3088 L_4100E0D4:
   3089     eax = 0x4100FE50u; /* 0x4100E0D4: mov eax, 0x4100fe50 */
   3090 L_4100E0D9:
   3091     RECOMP_BACKEDGE();
   3092     goto L_4100DB72; /* 0x4100E0D9: jmp 0x4100db72 */
   3093     { RECOMP_REGS_OUT(); return; } /* end of function */
   3094   _ljump:
   3095     switch (_itail_tgt) {
   3096       case 0x4100DB72u: goto L_4100DB72;
   3097       case 0x4100E0D4u: goto L_4100E0D4;
   3098       case 0x4100E0D9u: goto L_4100E0D9;
   3099       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3100     }
   3101     RECOMP_REGS_OUT();
   3102 }
   3103 
   3104 void sub_4100E0E0(void) {
   3105     int _fpu_cmp = 0;
   3106     uint32_t _cf = 0;
   3107     int _df = 1;
   3108     uint32_t _flag_k = FK_NONE;
   3109     uint32_t _flag_a = 0, _flag_b = 0;
   3110     uint32_t _itail_tgt = 0;
   3111     RECOMP_REGS_LOCALS
   3112     RECOMP_ENTER(0x4100E0E0u);
   3113 
   3114 L_4100E0E0:
   3115     ecx = MEM32(ebp + (-0x18)); /* 0x4100E0E0: mov ecx, dword ptr [ebp - 0x18] */
   3116 L_4100E0E3:
   3117     { _itail_tgt = (uint32_t)(MEM32(0x4100F160)); goto _ljump; }
   3118     { RECOMP_REGS_OUT(); return; } /* end of function */
   3119   _ljump:
   3120     switch (_itail_tgt) {
   3121       case 0x4100E0E0u: goto L_4100E0E0;
   3122       case 0x4100E0E3u: goto L_4100E0E3;
   3123       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3124     }
   3125     RECOMP_REGS_OUT();
   3126 }
   3127 
   3128 void sub_4100E0E9(void) {
   3129     int _fpu_cmp = 0;
   3130     uint32_t _cf = 0;
   3131     int _df = 1;
   3132     uint32_t _flag_k = FK_NONE;
   3133     uint32_t _flag_a = 0, _flag_b = 0;
   3134     uint32_t _itail_tgt = 0;
   3135     RECOMP_REGS_LOCALS
   3136     RECOMP_ENTER(0x4100E0E9u);
   3137 
   3138 L_4100E0E9:
   3139     ecx = MEM32(ebp + (-0x18)); /* 0x4100E0E9: mov ecx, dword ptr [ebp - 0x18] */
   3140 L_4100E0EC:
   3141     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
   3142     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3143     ecx = ecx + 8; /* 0x4100E0EC: add ecx, 8 */
   3144     _flag_k = FK_ADD;
   3145 L_4100E0EF:
   3146     { _itail_tgt = (uint32_t)(MEM32(0x4100F064)); goto _ljump; }
   3147     { RECOMP_REGS_OUT(); return; } /* end of function */
   3148   _ljump:
   3149     switch (_itail_tgt) {
   3150       case 0x4100E0E9u: goto L_4100E0E9;
   3151       case 0x4100E0ECu: goto L_4100E0EC;
   3152       case 0x4100E0EFu: goto L_4100E0EF;
   3153       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3154     }
   3155     RECOMP_REGS_OUT();
   3156 }
   3157 
   3158 void sub_4100E0F5(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(0x4100E0F5u);
   3167 
   3168     goto L_4100E0F5;
   3169 L_41003620:
   3170     PUSH32(esp, ebp); /* 0x41003620: push ebp */
   3171     ebp = esp; /* 0x41003621: mov ebp, esp */
   3172     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3173     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3174     esp = esp - 8; /* 0x41003623: sub esp, 8 */
   3175     _flag_k = FK_CMP;
   3176     PUSH32(esp, ebx); /* 0x41003626: push ebx */
   3177     PUSH32(esp, esi); /* 0x41003627: push esi */
   3178     esi = ecx; /* 0x41003628: mov esi, ecx */
   3179     PUSH32(esp, edi); /* 0x4100362A: push edi */
   3180     edi = MEM32(esi + 0x4); /* 0x4100362B: mov edi, dword ptr [esi + 4] */
   3181     ecx = MEM32(esi + 0x10); /* 0x4100362E: mov ecx, dword ptr [esi + 0x10] */
   3182     /* test ecx, ecx */ /* 0x41003631: test ecx, ecx */
   3183     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3184     _cf = 0;
   3185     _flag_k = FK_TEST;
   3186     eax = MEM32(edi); /* 0x41003633: mov eax, dword ptr [edi] */
   3187     MEM32(ebp + (-0x4)) = eax; /* 0x41003635: mov dword ptr [ebp - 4], eax */
   3188     if (TEST_Z(_flag_a, _flag_b)) goto L_41003697; /* 0x41003638: je 0x41003697 */
   3189 L_4100363A:
   3190     ecx = eax; /* 0x4100363A: mov ecx, eax */
   3191     /* cmp eax, ecx */ /* 0x4100363C: cmp eax, ecx */
   3192     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3193     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3194     _flag_k = FK_CMP;
   3195     if (CMP_NE(_flag_a, _flag_b)) goto L_41003697; /* 0x4100363E: jne 0x41003697 */
   3196 L_41003640:
   3197     /* cmp edi, edi */ /* 0x41003640: cmp edi, edi */
   3198     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   3199     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3200     _flag_k = FK_CMP;
   3201     if (CMP_NE(_flag_a, _flag_b)) goto L_41003697; /* 0x41003642: jne 0x41003697 */
   3202 L_41003644:
   3203     ebx = MEM32(edi + 0x4); /* 0x41003644: mov ebx, dword ptr [edi + 4] */
   3204     eax = MEM32(esi + 0x8); /* 0x41003647: mov eax, dword ptr [esi + 8] */
   3205     /* cmp ebx, eax */ /* 0x4100364A: cmp ebx, eax */
   3206     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   3207     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3208     _flag_k = FK_CMP;
   3209     edi = ebx; /* 0x4100364C: mov edi, ebx */
   3210     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100366F; /* 0x4100364E: je 0x4100366f */
   3211 L_41003650:
   3212     eax = MEM32(edi + 0x8); /* 0x41003650: mov eax, dword ptr [edi + 8] */
   3213     ecx = esi; /* 0x41003653: mov ecx, esi */
   3214     PUSH32(esp, eax); /* 0x41003655: push eax */
   3215     RECOMP_ICALL(0x41006480u); /* 0x41003656: call 0x41006480 */ /* not lifted */
   3216     RECOMP_FLAGS_IN();
   3217     edi = MEM32(edi); /* 0x4100365B: mov edi, dword ptr [edi] */
   3218     PUSH32(esp, ebx); /* 0x4100365D: push ebx */
   3219     RECOMP_ICALL(0x4100DB20u); /* 0x4100365E: call 0x4100db20 */ /* not lifted */
   3220     RECOMP_FLAGS_IN();
   3221     eax = MEM32(esi + 0x8); /* 0x41003663: mov eax, dword ptr [esi + 8] */
   3222     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3223     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3224     esp = esp + 4; /* 0x41003666: add esp, 4 */
   3225     _flag_k = FK_ADD;
   3226     /* cmp edi, eax */ /* 0x41003669: cmp edi, eax */
   3227     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3228     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3229     _flag_k = FK_CMP;
   3230     ebx = edi; /* 0x4100366B: mov ebx, edi */
   3231     RECOMP_BACKEDGE();
   3232     if (CMP_NE(_flag_a, _flag_b)) goto L_41003650; /* 0x4100366D: jne 0x41003650 */
   3233 L_4100366F:
   3234     ecx = MEM32(esi + 0x4); /* 0x4100366F: mov ecx, dword ptr [esi + 4] */
   3235     edx = MEM32(esi + 0x8); /* 0x41003672: mov edx, dword ptr [esi + 8] */
   3236     MEM32(ecx + 0x4) = edx; /* 0x41003675: mov dword ptr [ecx + 4], edx */
   3237     eax = MEM32(esi + 0x4); /* 0x41003678: mov eax, dword ptr [esi + 4] */
   3238     MEM32(esi + 0x10) = 0; /* 0x4100367B: mov dword ptr [esi + 0x10], 0 */
   3239     ecx = esi; /* 0x41003682: mov ecx, esi */
   3240     MEM32(eax) = eax; /* 0x41003684: mov dword ptr [eax], eax */
   3241     eax = MEM32(esi + 0x4); /* 0x41003686: mov eax, dword ptr [esi + 4] */
   3242     MEM32(eax + 0x8) = eax; /* 0x41003689: mov dword ptr [eax + 8], eax */
   3243     eax = ebp + (-0x8); /* 0x4100368C: lea eax, [ebp - 8] */
   3244     PUSH32(esp, eax); /* 0x4100368F: push eax */
   3245     RECOMP_ICALL(0x41009AB0u); /* 0x41003690: call 0x41009ab0 */ /* not lifted */
   3246     RECOMP_FLAGS_IN();
   3247     goto L_410036B8; /* 0x41003695: jmp 0x410036b8 */
   3248 L_41003697:
   3249     /* cmp eax, edi */ /* 0x41003697: cmp eax, edi */
   3250     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   3251     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3252     _flag_k = FK_CMP;
   3253     if (CMP_EQ(_flag_a, _flag_b)) goto L_410036B8; /* 0x41003699: je 0x410036b8 */
   3254 L_4100369B:
   3255     ecx = ebp + (-0x4); /* 0x4100369B: lea ecx, [ebp - 4] */
   3256     ebx = eax; /* 0x4100369E: mov ebx, eax */
   3257     RECOMP_ICALL(0x410064E0u); /* 0x410036A0: call 0x410064e0 */ /* not lifted */
   3258     RECOMP_FLAGS_IN();
   3259     ecx = ebp + (-0x8); /* 0x410036A5: lea ecx, [ebp - 8] */
   3260     PUSH32(esp, ebx); /* 0x410036A8: push ebx */
   3261     PUSH32(esp, ecx); /* 0x410036A9: push ecx */
   3262     ecx = esi; /* 0x410036AA: mov ecx, esi */
   3263     RECOMP_ICALL(0x41006530u); /* 0x410036AC: call 0x41006530 */ /* not lifted */
   3264     RECOMP_FLAGS_IN();
   3265     eax = MEM32(ebp + (-0x4)); /* 0x410036B1: mov eax, dword ptr [ebp - 4] */
   3266     /* cmp eax, edi */ /* 0x410036B4: cmp eax, edi */
   3267     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   3268     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3269     _flag_k = FK_CMP;
   3270     RECOMP_BACKEDGE();
   3271     if (CMP_NE(_flag_a, _flag_b)) goto L_4100369B; /* 0x410036B6: jne 0x4100369b */
   3272 L_410036B8:
   3273     edx = MEM32(esi + 0x4); /* 0x410036B8: mov edx, dword ptr [esi + 4] */
   3274     PUSH32(esp, edx); /* 0x410036BB: push edx */
   3275     RECOMP_ICALL(0x4100DB20u); /* 0x410036BC: call 0x4100db20 */ /* not lifted */
   3276     RECOMP_FLAGS_IN();
   3277     eax = MEM32(esi + 0x8); /* 0x410036C1: mov eax, dword ptr [esi + 8] */
   3278     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3279     edi = 0; /* 0x410036C4: xor edi, edi */
   3280     _cf = 0;
   3281     _flag_k = FK_TEST;
   3282     PUSH32(esp, eax); /* 0x410036C6: push eax */
   3283     MEM32(esi + 0x4) = edi; /* 0x410036C7: mov dword ptr [esi + 4], edi */
   3284     MEM32(esi + 0x10) = edi; /* 0x410036CA: mov dword ptr [esi + 0x10], edi */
   3285     RECOMP_ICALL(0x4100DB20u); /* 0x410036CD: call 0x4100db20 */ /* not lifted */
   3286     RECOMP_FLAGS_IN();
   3287     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3288     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3289     esp = esp + 8; /* 0x410036D2: add esp, 8 */
   3290     _flag_k = FK_ADD;
   3291     MEM32(esi + 0x8) = edi; /* 0x410036D5: mov dword ptr [esi + 8], edi */
   3292     edi = POP32_VAL(esp); /* 0x410036D8: pop edi */
   3293     esi = POP32_VAL(esp); /* 0x410036D9: pop esi */
   3294     ebx = POP32_VAL(esp); /* 0x410036DA: pop ebx */
   3295     esp = ebp; /* 0x410036DB: mov esp, ebp */
   3296     ebp = POP32_VAL(esp); /* 0x410036DD: pop ebp */
   3297     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x410036DE: ret  */
   3298 L_4100E0F5:
   3299     ecx = MEM32(ebp + (-0x18)); /* 0x4100E0F5: mov ecx, dword ptr [ebp - 0x18] */
   3300     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1Cu);
   3301     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3302     ecx = ecx + 0x1Cu; /* 0x4100E0F8: add ecx, 0x1c */
   3303     _flag_k = FK_ADD;
   3304     RECOMP_BACKEDGE();
   3305     goto L_41003620; /* 0x4100E0FB: jmp 0x41003620 */
   3306     { RECOMP_REGS_OUT(); return; } /* end of function */
   3307     RECOMP_REGS_OUT();
   3308 }
   3309 
   3310 void sub_4100E100(void) {
   3311     int _fpu_cmp = 0;
   3312     uint32_t _cf = 0;
   3313     int _df = 1;
   3314     uint32_t _flag_k = FK_NONE;
   3315     uint32_t _flag_a = 0, _flag_b = 0;
   3316     uint32_t _itail_tgt = 0;
   3317     RECOMP_REGS_LOCALS
   3318     RECOMP_ENTER(0x4100E100u);
   3319 
   3320     goto L_4100E100;
   3321 L_41009920:
   3322     PUSH32(esp, ebx); /* 0x41009920: push ebx */
   3323     PUSH32(esp, esi); /* 0x41009921: push esi */
   3324     PUSH32(esp, edi); /* 0x41009922: push edi */
   3325     edi = ecx; /* 0x41009923: mov edi, ecx */
   3326     ebx = MEM32(edi + 0x4); /* 0x41009925: mov ebx, dword ptr [edi + 4] */
   3327     esi = MEM32(ebx); /* 0x41009928: mov esi, dword ptr [ebx] */
   3328     /* cmp esi, ebx */ /* 0x4100992A: cmp esi, ebx */
   3329     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   3330     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3331     _flag_k = FK_CMP;
   3332     if (CMP_EQ(_flag_a, _flag_b)) goto L_41009955; /* 0x4100992C: je 0x41009955 */
   3333 L_4100992E:
   3334     eax = esi; /* 0x4100992E: mov eax, esi */
   3335     esi = MEM32(esi); /* 0x41009930: mov esi, dword ptr [esi] */
   3336     PUSH32(esp, eax); /* 0x41009932: push eax */
   3337     ecx = MEM32(eax + 0x4); /* 0x41009933: mov ecx, dword ptr [eax + 4] */
   3338     edx = MEM32(eax); /* 0x41009936: mov edx, dword ptr [eax] */
   3339     MEM32(ecx) = edx; /* 0x41009938: mov dword ptr [ecx], edx */
   3340     ecx = MEM32(eax); /* 0x4100993A: mov ecx, dword ptr [eax] */
   3341     edx = MEM32(eax + 0x4); /* 0x4100993C: mov edx, dword ptr [eax + 4] */
   3342     MEM32(ecx + 0x4) = edx; /* 0x4100993F: mov dword ptr [ecx + 4], edx */
   3343     RECOMP_ICALL(0x4100DB20u); /* 0x41009942: call 0x4100db20 */ /* not lifted */
   3344     RECOMP_FLAGS_IN();
   3345     ecx = MEM32(edi + 0x8); /* 0x41009947: mov ecx, dword ptr [edi + 8] */
   3346     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3347     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3348     esp = esp + 4; /* 0x4100994A: add esp, 4 */
   3349     _flag_k = FK_ADD;
   3350     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3351     ecx = ecx - 1; /* 0x4100994D: dec ecx */
   3352     _flag_k = FK_DEC;
   3353     /* cmp esi, ebx */ /* 0x4100994E: cmp esi, ebx */
   3354     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   3355     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3356     _flag_k = FK_CMP;
   3357     MEM32(edi + 0x8) = ecx; /* 0x41009950: mov dword ptr [edi + 8], ecx */
   3358     RECOMP_BACKEDGE();
   3359     if (CMP_NE(_flag_a, _flag_b)) goto L_4100992E; /* 0x41009953: jne 0x4100992e */
   3360 L_41009955:
   3361     eax = MEM32(edi + 0x4); /* 0x41009955: mov eax, dword ptr [edi + 4] */
   3362     PUSH32(esp, eax); /* 0x41009958: push eax */
   3363     RECOMP_ICALL(0x4100DB20u); /* 0x41009959: call 0x4100db20 */ /* not lifted */
   3364     RECOMP_FLAGS_IN();
   3365     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3366     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3367     esp = esp + 4; /* 0x4100995E: add esp, 4 */
   3368     _flag_k = FK_ADD;
   3369     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3370     eax = 0; /* 0x41009961: xor eax, eax */
   3371     _cf = 0;
   3372     _flag_k = FK_TEST;
   3373     MEM32(edi + 0x4) = eax; /* 0x41009963: mov dword ptr [edi + 4], eax */
   3374     MEM32(edi + 0x8) = eax; /* 0x41009966: mov dword ptr [edi + 8], eax */
   3375     edi = POP32_VAL(esp); /* 0x41009969: pop edi */
   3376     esi = POP32_VAL(esp); /* 0x4100996A: pop esi */
   3377     ebx = POP32_VAL(esp); /* 0x4100996B: pop ebx */
   3378     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100996C: ret  */
   3379 L_4100E100:
   3380     ecx = MEM32(ebp + (-0x18)); /* 0x4100E100: mov ecx, dword ptr [ebp - 0x18] */
   3381     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x30u);
   3382     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3383     ecx = ecx + 0x30u; /* 0x4100E103: add ecx, 0x30 */
   3384     _flag_k = FK_ADD;
   3385     RECOMP_BACKEDGE();
   3386     goto L_41009920; /* 0x4100E106: jmp 0x41009920 */
   3387     { RECOMP_REGS_OUT(); return; } /* end of function */
   3388     RECOMP_REGS_OUT();
   3389 }
   3390 
   3391 void sub_4100E10B(void) {
   3392     int _fpu_cmp = 0;
   3393     uint32_t _cf = 0;
   3394     int _df = 1;
   3395     uint32_t _flag_k = FK_NONE;
   3396     uint32_t _flag_a = 0, _flag_b = 0;
   3397     uint32_t _itail_tgt = 0;
   3398     RECOMP_REGS_LOCALS
   3399     RECOMP_ENTER(0x4100E10Bu);
   3400 
   3401     goto L_4100E10B;
   3402 L_41009920:
   3403     PUSH32(esp, ebx); /* 0x41009920: push ebx */
   3404     PUSH32(esp, esi); /* 0x41009921: push esi */
   3405     PUSH32(esp, edi); /* 0x41009922: push edi */
   3406     edi = ecx; /* 0x41009923: mov edi, ecx */
   3407     ebx = MEM32(edi + 0x4); /* 0x41009925: mov ebx, dword ptr [edi + 4] */
   3408     esi = MEM32(ebx); /* 0x41009928: mov esi, dword ptr [ebx] */
   3409     /* cmp esi, ebx */ /* 0x4100992A: cmp esi, ebx */
   3410     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   3411     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3412     _flag_k = FK_CMP;
   3413     if (CMP_EQ(_flag_a, _flag_b)) goto L_41009955; /* 0x4100992C: je 0x41009955 */
   3414 L_4100992E:
   3415     eax = esi; /* 0x4100992E: mov eax, esi */
   3416     esi = MEM32(esi); /* 0x41009930: mov esi, dword ptr [esi] */
   3417     PUSH32(esp, eax); /* 0x41009932: push eax */
   3418     ecx = MEM32(eax + 0x4); /* 0x41009933: mov ecx, dword ptr [eax + 4] */
   3419     edx = MEM32(eax); /* 0x41009936: mov edx, dword ptr [eax] */
   3420     MEM32(ecx) = edx; /* 0x41009938: mov dword ptr [ecx], edx */
   3421     ecx = MEM32(eax); /* 0x4100993A: mov ecx, dword ptr [eax] */
   3422     edx = MEM32(eax + 0x4); /* 0x4100993C: mov edx, dword ptr [eax + 4] */
   3423     MEM32(ecx + 0x4) = edx; /* 0x4100993F: mov dword ptr [ecx + 4], edx */
   3424     RECOMP_ICALL(0x4100DB20u); /* 0x41009942: call 0x4100db20 */ /* not lifted */
   3425     RECOMP_FLAGS_IN();
   3426     ecx = MEM32(edi + 0x8); /* 0x41009947: mov ecx, dword ptr [edi + 8] */
   3427     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3428     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3429     esp = esp + 4; /* 0x4100994A: add esp, 4 */
   3430     _flag_k = FK_ADD;
   3431     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3432     ecx = ecx - 1; /* 0x4100994D: dec ecx */
   3433     _flag_k = FK_DEC;
   3434     /* cmp esi, ebx */ /* 0x4100994E: cmp esi, ebx */
   3435     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   3436     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3437     _flag_k = FK_CMP;
   3438     MEM32(edi + 0x8) = ecx; /* 0x41009950: mov dword ptr [edi + 8], ecx */
   3439     RECOMP_BACKEDGE();
   3440     if (CMP_NE(_flag_a, _flag_b)) goto L_4100992E; /* 0x41009953: jne 0x4100992e */
   3441 L_41009955:
   3442     eax = MEM32(edi + 0x4); /* 0x41009955: mov eax, dword ptr [edi + 4] */
   3443     PUSH32(esp, eax); /* 0x41009958: push eax */
   3444     RECOMP_ICALL(0x4100DB20u); /* 0x41009959: call 0x4100db20 */ /* not lifted */
   3445     RECOMP_FLAGS_IN();
   3446     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3447     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3448     esp = esp + 4; /* 0x4100995E: add esp, 4 */
   3449     _flag_k = FK_ADD;
   3450     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3451     eax = 0; /* 0x41009961: xor eax, eax */
   3452     _cf = 0;
   3453     _flag_k = FK_TEST;
   3454     MEM32(edi + 0x4) = eax; /* 0x41009963: mov dword ptr [edi + 4], eax */
   3455     MEM32(edi + 0x8) = eax; /* 0x41009966: mov dword ptr [edi + 8], eax */
   3456     edi = POP32_VAL(esp); /* 0x41009969: pop edi */
   3457     esi = POP32_VAL(esp); /* 0x4100996A: pop esi */
   3458     ebx = POP32_VAL(esp); /* 0x4100996B: pop ebx */
   3459     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100996C: ret  */
   3460 L_4100E10B:
   3461     ecx = MEM32(ebp + (-0x18)); /* 0x4100E10B: mov ecx, dword ptr [ebp - 0x18] */
   3462     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x3Cu);
   3463     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3464     ecx = ecx + 0x3Cu; /* 0x4100E10E: add ecx, 0x3c */
   3465     _flag_k = FK_ADD;
   3466     RECOMP_BACKEDGE();
   3467     goto L_41009920; /* 0x4100E111: jmp 0x41009920 */
   3468     { RECOMP_REGS_OUT(); return; } /* end of function */
   3469     RECOMP_REGS_OUT();
   3470 }
   3471 
   3472 void sub_4100E116(void) {
   3473     int _fpu_cmp = 0;
   3474     uint32_t _cf = 0;
   3475     int _df = 1;
   3476     uint32_t _flag_k = FK_NONE;
   3477     uint32_t _flag_a = 0, _flag_b = 0;
   3478     uint32_t _itail_tgt = 0;
   3479     RECOMP_REGS_LOCALS
   3480     RECOMP_ENTER(0x4100E116u);
   3481 
   3482     goto L_4100E116;
   3483 L_41005DA0:
   3484     PUSH32(esp, ebp); /* 0x41005DA0: push ebp */
   3485     ebp = esp; /* 0x41005DA1: mov ebp, esp */
   3486     PUSH32(esp, ecx); /* 0x41005DA3: push ecx */
   3487     PUSH32(esp, ebx); /* 0x41005DA4: push ebx */
   3488     ebx = ecx; /* 0x41005DA5: mov ebx, ecx */
   3489     PUSH32(esp, edi); /* 0x41005DA7: push edi */
   3490     eax = MEM32(ebx + 0x4); /* 0x41005DA8: mov eax, dword ptr [ebx + 4] */
   3491     MEM32(ebp + (-0x4)) = eax; /* 0x41005DAB: mov dword ptr [ebp - 4], eax */
   3492     edi = MEM32(eax); /* 0x41005DAE: mov edi, dword ptr [eax] */
   3493     /* cmp edi, eax */ /* 0x41005DB0: cmp edi, eax */
   3494     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3495     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3496     _flag_k = FK_CMP;
   3497     if (CMP_EQ(_flag_a, _flag_b)) goto L_41005DEB; /* 0x41005DB2: je 0x41005deb */
   3498 L_41005DB4:
   3499     PUSH32(esp, esi); /* 0x41005DB4: push esi */
   3500 L_41005DB5:
   3501     esi = edi; /* 0x41005DB5: mov esi, edi */
   3502     edi = MEM32(edi); /* 0x41005DB7: mov edi, dword ptr [edi] */
   3503     PUSH32(esp, 1); /* 0x41005DB9: push 1 */
   3504     eax = MEM32(esi + 0x4); /* 0x41005DBB: mov eax, dword ptr [esi + 4] */
   3505     ecx = MEM32(esi); /* 0x41005DBE: mov ecx, dword ptr [esi] */
   3506     MEM32(eax) = ecx; /* 0x41005DC0: mov dword ptr [eax], ecx */
   3507     edx = MEM32(esi); /* 0x41005DC2: mov edx, dword ptr [esi] */
   3508     eax = MEM32(esi + 0x4); /* 0x41005DC4: mov eax, dword ptr [esi + 4] */
   3509     ecx = esi + 0x8; /* 0x41005DC7: lea ecx, [esi + 8] */
   3510     MEM32(edx + 0x4) = eax; /* 0x41005DCA: mov dword ptr [edx + 4], eax */
   3511     RECOMP_ICALL(MEM32(0x4100F05C)); /* 0x41005DCD: call dword ptr [0x4100f05c] */
   3512     RECOMP_FLAGS_IN();
   3513     PUSH32(esp, esi); /* 0x41005DD3: push esi */
   3514     RECOMP_ICALL(0x4100DB20u); /* 0x41005DD4: call 0x4100db20 */ /* not lifted */
   3515     RECOMP_FLAGS_IN();
   3516     ecx = MEM32(ebx + 0x8); /* 0x41005DD9: mov ecx, dword ptr [ebx + 8] */
   3517     eax = MEM32(ebp + (-0x4)); /* 0x41005DDC: mov eax, dword ptr [ebp - 4] */
   3518     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3519     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3520     esp = esp + 4; /* 0x41005DDF: add esp, 4 */
   3521     _flag_k = FK_ADD;
   3522     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3523     ecx = ecx - 1; /* 0x41005DE2: dec ecx */
   3524     _flag_k = FK_DEC;
   3525     /* cmp edi, eax */ /* 0x41005DE3: cmp edi, eax */
   3526     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3527     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3528     _flag_k = FK_CMP;
   3529     MEM32(ebx + 0x8) = ecx; /* 0x41005DE5: mov dword ptr [ebx + 8], ecx */
   3530     RECOMP_BACKEDGE();
   3531     if (CMP_NE(_flag_a, _flag_b)) goto L_41005DB5; /* 0x41005DE8: jne 0x41005db5 */
   3532 L_41005DEA:
   3533     esi = POP32_VAL(esp); /* 0x41005DEA: pop esi */
   3534 L_41005DEB:
   3535     ecx = MEM32(ebx + 0x4); /* 0x41005DEB: mov ecx, dword ptr [ebx + 4] */
   3536     PUSH32(esp, ecx); /* 0x41005DEE: push ecx */
   3537     RECOMP_ICALL(0x4100DB20u); /* 0x41005DEF: call 0x4100db20 */ /* not lifted */
   3538     RECOMP_FLAGS_IN();
   3539     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3540     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3541     esp = esp + 4; /* 0x41005DF4: add esp, 4 */
   3542     _flag_k = FK_ADD;
   3543     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3544     eax = 0; /* 0x41005DF7: xor eax, eax */
   3545     _cf = 0;
   3546     _flag_k = FK_TEST;
   3547     MEM32(ebx + 0x4) = eax; /* 0x41005DF9: mov dword ptr [ebx + 4], eax */
   3548     MEM32(ebx + 0x8) = eax; /* 0x41005DFC: mov dword ptr [ebx + 8], eax */
   3549     edi = POP32_VAL(esp); /* 0x41005DFF: pop edi */
   3550     ebx = POP32_VAL(esp); /* 0x41005E00: pop ebx */
   3551     esp = ebp; /* 0x41005E01: mov esp, ebp */
   3552     ebp = POP32_VAL(esp); /* 0x41005E03: pop ebp */
   3553     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x41005E04: ret  */
   3554 L_4100E116:
   3555     ecx = MEM32(ebp + (-0x18)); /* 0x4100E116: mov ecx, dword ptr [ebp - 0x18] */
   3556     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x4Cu);
   3557     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3558     ecx = ecx + 0x4Cu; /* 0x4100E119: add ecx, 0x4c */
   3559     _flag_k = FK_ADD;
   3560     RECOMP_BACKEDGE();
   3561     goto L_41005DA0; /* 0x4100E11C: jmp 0x41005da0 */
   3562     { RECOMP_REGS_OUT(); return; } /* end of function */
   3563     RECOMP_REGS_OUT();
   3564 }
   3565 
   3566 void sub_4100E121(void) {
   3567     int _fpu_cmp = 0;
   3568     uint32_t _cf = 0;
   3569     int _df = 1;
   3570     uint32_t _flag_k = FK_NONE;
   3571     uint32_t _flag_a = 0, _flag_b = 0;
   3572     uint32_t _itail_tgt = 0;
   3573     RECOMP_REGS_LOCALS
   3574     RECOMP_ENTER(0x4100E121u);
   3575 
   3576     goto L_4100E121;
   3577 L_4100DB72:
   3578     { _itail_tgt = (uint32_t)(MEM32(0x4100F11C)); goto _ljump; }
   3579 L_4100E121:
   3580     eax = 0x4100FE90u; /* 0x4100E121: mov eax, 0x4100fe90 */
   3581 L_4100E126:
   3582     RECOMP_BACKEDGE();
   3583     goto L_4100DB72; /* 0x4100E126: jmp 0x4100db72 */
   3584     { RECOMP_REGS_OUT(); return; } /* end of function */
   3585   _ljump:
   3586     switch (_itail_tgt) {
   3587       case 0x4100DB72u: goto L_4100DB72;
   3588       case 0x4100E121u: goto L_4100E121;
   3589       case 0x4100E126u: goto L_4100E126;
   3590       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3591     }
   3592     RECOMP_REGS_OUT();
   3593 }
   3594 
   3595 void sub_4100E130(void) {
   3596     int _fpu_cmp = 0;
   3597     uint32_t _cf = 0;
   3598     int _df = 1;
   3599     uint32_t _flag_k = FK_NONE;
   3600     uint32_t _flag_a = 0, _flag_b = 0;
   3601     uint32_t _itail_tgt = 0;
   3602     RECOMP_REGS_LOCALS
   3603     RECOMP_ENTER(0x4100E130u);
   3604 
   3605     goto L_4100E130;
   3606 L_4100D4D0:
   3607     PUSH32(esp, ebp); /* 0x4100D4D0: push ebp */
   3608     ebp = esp; /* 0x4100D4D1: mov ebp, esp */
   3609     PUSH32(esp, 0xFFFFFFFFu); /* 0x4100D4D3: push -1 */
   3610     PUSH32(esp, 0x4100E968u); /* 0x4100D4D5: push 0x4100e968 */
   3611     eax = MEM32(FS_BASE + (0)); /* 0x4100D4DA: mov eax, dword ptr fs:[0] */
   3612     PUSH32(esp, eax); /* 0x4100D4E0: push eax */
   3613     MEM32(FS_BASE + (0)) = esp; /* 0x4100D4E1: mov dword ptr fs:[0], esp */
   3614     PUSH32(esp, ecx); /* 0x4100D4E8: push ecx */
   3615     PUSH32(esp, esi); /* 0x4100D4E9: push esi */
   3616     esi = ecx; /* 0x4100D4EA: mov esi, ecx */
   3617     MEM32(ebp + (-0x10)) = esi; /* 0x4100D4EC: mov dword ptr [ebp - 0x10], esi */
   3618     MEM32(esi) = 0x4100F334u; /* 0x4100D4EF: mov dword ptr [esi], 0x4100f334 */
   3619     eax = MEM32(esi + 0x4); /* 0x4100D4F5: mov eax, dword ptr [esi + 4] */
   3620     /* test eax, eax */ /* 0x4100D4F8: test eax, eax */
   3621     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3622     _cf = 0;
   3623     _flag_k = FK_TEST;
   3624     MEM32(ebp + (-0x4)) = 0; /* 0x4100D4FA: mov dword ptr [ebp - 4], 0 */
   3625     if (TEST_Z(_flag_a, _flag_b)) goto L_4100D508; /* 0x4100D501: je 0x4100d508 */
   3626 L_4100D503:
   3627     RECOMP_ICALL(0x4100D850u); /* 0x4100D503: call 0x4100d850 */ /* not lifted */
   3628     RECOMP_FLAGS_IN();
   3629 L_4100D508:
   3630     ecx = MEM32(ebp + (-0xC)); /* 0x4100D508: mov ecx, dword ptr [ebp - 0xc] */
   3631     MEM32(esi) = 0x4100F2F4u; /* 0x4100D50B: mov dword ptr [esi], 0x4100f2f4 */
   3632     esi = POP32_VAL(esp); /* 0x4100D511: pop esi */
   3633     MEM32(FS_BASE + (0)) = ecx; /* 0x4100D512: mov dword ptr fs:[0], ecx */
   3634     esp = ebp; /* 0x4100D519: mov esp, ebp */
   3635     ebp = POP32_VAL(esp); /* 0x4100D51B: pop ebp */
   3636     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100D51C: ret  */
   3637 L_4100E130:
   3638     ecx = ebp + (-0x38); /* 0x4100E130: lea ecx, [ebp - 0x38] */
   3639     RECOMP_BACKEDGE();
   3640     goto L_4100D4D0; /* 0x4100E133: jmp 0x4100d4d0 */
   3641     { RECOMP_REGS_OUT(); return; } /* end of function */
   3642     RECOMP_REGS_OUT();
   3643 }
   3644 
   3645 void sub_4100E138(void) {
   3646     int _fpu_cmp = 0;
   3647     uint32_t _cf = 0;
   3648     int _df = 1;
   3649     uint32_t _flag_k = FK_NONE;
   3650     uint32_t _flag_a = 0, _flag_b = 0;
   3651     uint32_t _itail_tgt = 0;
   3652     RECOMP_REGS_LOCALS
   3653     RECOMP_ENTER(0x4100E138u);
   3654 
   3655     goto L_4100E138;
   3656 L_41009920:
   3657     PUSH32(esp, ebx); /* 0x41009920: push ebx */
   3658     PUSH32(esp, esi); /* 0x41009921: push esi */
   3659     PUSH32(esp, edi); /* 0x41009922: push edi */
   3660     edi = ecx; /* 0x41009923: mov edi, ecx */
   3661     ebx = MEM32(edi + 0x4); /* 0x41009925: mov ebx, dword ptr [edi + 4] */
   3662     esi = MEM32(ebx); /* 0x41009928: mov esi, dword ptr [ebx] */
   3663     /* cmp esi, ebx */ /* 0x4100992A: cmp esi, ebx */
   3664     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   3665     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3666     _flag_k = FK_CMP;
   3667     if (CMP_EQ(_flag_a, _flag_b)) goto L_41009955; /* 0x4100992C: je 0x41009955 */
   3668 L_4100992E:
   3669     eax = esi; /* 0x4100992E: mov eax, esi */
   3670     esi = MEM32(esi); /* 0x41009930: mov esi, dword ptr [esi] */
   3671     PUSH32(esp, eax); /* 0x41009932: push eax */
   3672     ecx = MEM32(eax + 0x4); /* 0x41009933: mov ecx, dword ptr [eax + 4] */
   3673     edx = MEM32(eax); /* 0x41009936: mov edx, dword ptr [eax] */
   3674     MEM32(ecx) = edx; /* 0x41009938: mov dword ptr [ecx], edx */
   3675     ecx = MEM32(eax); /* 0x4100993A: mov ecx, dword ptr [eax] */
   3676     edx = MEM32(eax + 0x4); /* 0x4100993C: mov edx, dword ptr [eax + 4] */
   3677     MEM32(ecx + 0x4) = edx; /* 0x4100993F: mov dword ptr [ecx + 4], edx */
   3678     RECOMP_ICALL(0x4100DB20u); /* 0x41009942: call 0x4100db20 */ /* not lifted */
   3679     RECOMP_FLAGS_IN();
   3680     ecx = MEM32(edi + 0x8); /* 0x41009947: mov ecx, dword ptr [edi + 8] */
   3681     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3682     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3683     esp = esp + 4; /* 0x4100994A: add esp, 4 */
   3684     _flag_k = FK_ADD;
   3685     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3686     ecx = ecx - 1; /* 0x4100994D: dec ecx */
   3687     _flag_k = FK_DEC;
   3688     /* cmp esi, ebx */ /* 0x4100994E: cmp esi, ebx */
   3689     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   3690     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3691     _flag_k = FK_CMP;
   3692     MEM32(edi + 0x8) = ecx; /* 0x41009950: mov dword ptr [edi + 8], ecx */
   3693     RECOMP_BACKEDGE();
   3694     if (CMP_NE(_flag_a, _flag_b)) goto L_4100992E; /* 0x41009953: jne 0x4100992e */
   3695 L_41009955:
   3696     eax = MEM32(edi + 0x4); /* 0x41009955: mov eax, dword ptr [edi + 4] */
   3697     PUSH32(esp, eax); /* 0x41009958: push eax */
   3698     RECOMP_ICALL(0x4100DB20u); /* 0x41009959: call 0x4100db20 */ /* not lifted */
   3699     RECOMP_FLAGS_IN();
   3700     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3701     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3702     esp = esp + 4; /* 0x4100995E: add esp, 4 */
   3703     _flag_k = FK_ADD;
   3704     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3705     eax = 0; /* 0x41009961: xor eax, eax */
   3706     _cf = 0;
   3707     _flag_k = FK_TEST;
   3708     MEM32(edi + 0x4) = eax; /* 0x41009963: mov dword ptr [edi + 4], eax */
   3709     MEM32(edi + 0x8) = eax; /* 0x41009966: mov dword ptr [edi + 8], eax */
   3710     edi = POP32_VAL(esp); /* 0x41009969: pop edi */
   3711     esi = POP32_VAL(esp); /* 0x4100996A: pop esi */
   3712     ebx = POP32_VAL(esp); /* 0x4100996B: pop ebx */
   3713     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100996C: ret  */
   3714 L_4100E138:
   3715     ecx = ebp + (-0x30); /* 0x4100E138: lea ecx, [ebp - 0x30] */
   3716     RECOMP_BACKEDGE();
   3717     goto L_41009920; /* 0x4100E13B: jmp 0x41009920 */
   3718     { RECOMP_REGS_OUT(); return; } /* end of function */
   3719     RECOMP_REGS_OUT();
   3720 }
   3721 
   3722 void sub_4100E140(void) {
   3723     int _fpu_cmp = 0;
   3724     uint32_t _cf = 0;
   3725     int _df = 1;
   3726     uint32_t _flag_k = FK_NONE;
   3727     uint32_t _flag_a = 0, _flag_b = 0;
   3728     uint32_t _itail_tgt = 0;
   3729     RECOMP_REGS_LOCALS
   3730     RECOMP_ENTER(0x4100E140u);
   3731 
   3732 L_4100E140:
   3733     ecx = ebp + (-0xC4); /* 0x4100E140: lea ecx, [ebp - 0xc4] */
   3734 L_4100E146:
   3735     { _itail_tgt = (uint32_t)(MEM32(0x4100F148)); goto _ljump; }
   3736     { RECOMP_REGS_OUT(); return; } /* end of function */
   3737   _ljump:
   3738     switch (_itail_tgt) {
   3739       case 0x4100E140u: goto L_4100E140;
   3740       case 0x4100E146u: goto L_4100E146;
   3741       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3742     }
   3743     RECOMP_REGS_OUT();
   3744 }
   3745 
   3746 void sub_4100E14C(void) {
   3747     int _fpu_cmp = 0;
   3748     uint32_t _cf = 0;
   3749     int _df = 1;
   3750     uint32_t _flag_k = FK_NONE;
   3751     uint32_t _flag_a = 0, _flag_b = 0;
   3752     uint32_t _itail_tgt = 0;
   3753     RECOMP_REGS_LOCALS
   3754     RECOMP_ENTER(0x4100E14Cu);
   3755 
   3756 L_4100E14C:
   3757     ecx = ebp + (-0x50); /* 0x4100E14C: lea ecx, [ebp - 0x50] */
   3758 L_4100E14F:
   3759     { _itail_tgt = (uint32_t)(MEM32(0x4100F064)); goto _ljump; }
   3760     { RECOMP_REGS_OUT(); return; } /* end of function */
   3761   _ljump:
   3762     switch (_itail_tgt) {
   3763       case 0x4100E14Cu: goto L_4100E14C;
   3764       case 0x4100E14Fu: goto L_4100E14F;
   3765       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3766     }
   3767     RECOMP_REGS_OUT();
   3768 }
   3769 
   3770 void sub_4100E155(void) {
   3771     int _fpu_cmp = 0;
   3772     uint32_t _cf = 0;
   3773     int _df = 1;
   3774     uint32_t _flag_k = FK_NONE;
   3775     uint32_t _flag_a = 0, _flag_b = 0;
   3776     uint32_t _itail_tgt = 0;
   3777     RECOMP_REGS_LOCALS
   3778     RECOMP_ENTER(0x4100E155u);
   3779 
   3780 L_4100E155:
   3781     eax = MEM32(ebp + (-0x24)); /* 0x4100E155: mov eax, dword ptr [ebp - 0x24] */
   3782     PUSH32(esp, eax); /* 0x4100E158: push eax */
   3783     RECOMP_ICALL(0x4100DB20u); /* 0x4100E159: call 0x4100db20 */ /* not lifted */
   3784     RECOMP_FLAGS_IN();
   3785     ecx = POP32_VAL(esp); /* 0x4100E15E: pop ecx */
   3786     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100E15F: ret  */
   3787     RECOMP_REGS_OUT();
   3788 }
   3789 
   3790 void sub_4100E160(void) {
   3791     int _fpu_cmp = 0;
   3792     uint32_t _cf = 0;
   3793     int _df = 1;
   3794     uint32_t _flag_k = FK_NONE;
   3795     uint32_t _flag_a = 0, _flag_b = 0;
   3796     uint32_t _itail_tgt = 0;
   3797     RECOMP_REGS_LOCALS
   3798     RECOMP_ENTER(0x4100E160u);
   3799 
   3800 L_4100E160:
   3801     eax = MEM32(ebp + (-0x24)); /* 0x4100E160: mov eax, dword ptr [ebp - 0x24] */
   3802     PUSH32(esp, eax); /* 0x4100E163: push eax */
   3803     RECOMP_ICALL(0x4100DB20u); /* 0x4100E164: call 0x4100db20 */ /* not lifted */
   3804     RECOMP_FLAGS_IN();
   3805     ecx = POP32_VAL(esp); /* 0x4100E169: pop ecx */
   3806     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100E16A: ret  */
   3807     RECOMP_REGS_OUT();
   3808 }
   3809 
   3810 void sub_4100E16B(void) {
   3811     int _fpu_cmp = 0;
   3812     uint32_t _cf = 0;
   3813     int _df = 1;
   3814     uint32_t _flag_k = FK_NONE;
   3815     uint32_t _flag_a = 0, _flag_b = 0;
   3816     uint32_t _itail_tgt = 0;
   3817     RECOMP_REGS_LOCALS
   3818     RECOMP_ENTER(0x4100E16Bu);
   3819 
   3820     goto L_4100E16B;
   3821 L_4100DB72:
   3822     { _itail_tgt = (uint32_t)(MEM32(0x4100F11C)); goto _ljump; }
   3823 L_4100E16B:
   3824     eax = 0x4100FEE0u; /* 0x4100E16B: mov eax, 0x4100fee0 */
   3825 L_4100E170:
   3826     RECOMP_BACKEDGE();
   3827     goto L_4100DB72; /* 0x4100E170: jmp 0x4100db72 */
   3828     { RECOMP_REGS_OUT(); return; } /* end of function */
   3829   _ljump:
   3830     switch (_itail_tgt) {
   3831       case 0x4100DB72u: goto L_4100DB72;
   3832       case 0x4100E16Bu: goto L_4100E16B;
   3833       case 0x4100E170u: goto L_4100E170;
   3834       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3835     }
   3836     RECOMP_REGS_OUT();
   3837 }