aorecomp

Anarchy Online classic in the browser

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


client/game/pr.dll/lifted-0003.c (384802B)


      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_4100AEA0(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(0x4100AEA0u);
     17 
     18 L_4100AEA0:
     19     PUSH32(esp, ebp); /* 0x4100AEA0: push ebp */
     20     ebp = esp; /* 0x4100AEA1: mov ebp, esp */
     21     eax = MEM32(ebp + 0xC); /* 0x4100AEA3: mov eax, dword ptr [ebp + 0xc] */
     22     PUSH32(esp, esi); /* 0x4100AEA6: push esi */
     23     PUSH32(esp, eax); /* 0x4100AEA7: push eax */
     24     esi = ecx; /* 0x4100AEA8: mov esi, ecx */
     25     PUSH32(esp, 1); /* 0x4100AEAA: push 1 */
     26     RECOMP_ICALL(0x4100B1A0u); /* 0x4100AEAC: call 0x4100b1a0 */ /* not lifted */
     27     RECOMP_FLAGS_IN();
     28     ecx = MEM32(0x41014A94); /* 0x4100AEB1: mov ecx, dword ptr [0x41014a94] */
     29     PUSH32(esp, 0x3E8u); /* 0x4100AEB7: push 0x3e8 */
     30     PUSH32(esp, ecx); /* 0x4100AEBC: push ecx */
     31     RECOMP_ICALL(MEM32(0x4100F010)); /* 0x4100AEBD: call dword ptr [0x4100f010] */
     32     RECOMP_FLAGS_IN();
     33     /* cmp eax, 0x80u */ /* 0x4100AEC3: cmp eax, 0x80 */
     34     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x80u);
     35     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     36     _flag_k = FK_CMP;
     37     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100AECE; /* 0x4100AEC8: je 0x4100aece */
     38 L_4100AECA:
     39     /* test eax, eax */ /* 0x4100AECA: test eax, eax */
     40     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
     41     _cf = 0;
     42     _flag_k = FK_TEST;
     43     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100AF23; /* 0x4100AECC: jne 0x4100af23 */
     44 L_4100AECE:
     45     ecx = MEM32(esi + 0x18); /* 0x4100AECE: mov ecx, dword ptr [esi + 0x18] */
     46     /* test ecx, ecx */ /* 0x4100AED1: test ecx, ecx */
     47     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
     48     _cf = 0;
     49     _flag_k = FK_TEST;
     50     if (TEST_Z(_flag_a, _flag_b)) goto L_4100AF16; /* 0x4100AED3: je 0x4100af16 */
     51 L_4100AED5:
     52     eax = MEM32(ebp + 0x8); /* 0x4100AED5: mov eax, dword ptr [ebp + 8] */
     53     /* test eax, eax */ /* 0x4100AED8: test eax, eax */
     54     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
     55     _cf = 0;
     56     _flag_k = FK_TEST;
     57     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100AEF8; /* 0x4100AEDA: jne 0x4100aef8 */
     58 L_4100AEDC:
     59     eax = MEM32(esi + 0x1C); /* 0x4100AEDC: mov eax, dword ptr [esi + 0x1c] */
     60     /* test eax, eax */ /* 0x4100AEDF: test eax, eax */
     61     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
     62     _cf = 0;
     63     _flag_k = FK_TEST;
     64     if (TEST_Z(_flag_a, _flag_b)) goto L_4100AEE9; /* 0x4100AEE1: je 0x4100aee9 */
     65 L_4100AEE3:
     66     eax = MEM32(eax + 0x18); /* 0x4100AEE3: mov eax, dword ptr [eax + 0x18] */
     67     PUSH32(esp, eax); /* 0x4100AEE6: push eax */
     68     goto L_4100AEEB; /* 0x4100AEE7: jmp 0x4100aeeb */
     69 L_4100AEE9:
     70     PUSH32(esp, 0xFFFFFFFFu); /* 0x4100AEE9: push -1 */
     71 L_4100AEEB:
     72     RECOMP_ICALL(0x410058F0u); /* 0x4100AEEB: call 0x410058f0 */ /* not lifted */
     73     RECOMP_FLAGS_IN();
     74     /* test eax, eax */ /* 0x4100AEF0: test eax, eax */
     75     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
     76     _cf = 0;
     77     _flag_k = FK_TEST;
     78     if (TEST_Z(_flag_a, _flag_b)) goto L_4100AF28; /* 0x4100AEF2: je 0x4100af28 */
     79 L_4100AEF4:
     80     MEM8(esi + 0x61) = (uint8_t)(0); /* 0x4100AEF4: mov byte ptr [esi + 0x61], 0 */
     81 L_4100AEF8:
     82     PUSH32(esp, eax); /* 0x4100AEF8: push eax */
     83     ecx = esi; /* 0x4100AEF9: mov ecx, esi */
     84     MEM8(esi + 0x63) = (uint8_t)(0); /* 0x4100AEFB: mov byte ptr [esi + 0x63], 0 */
     85     MEM8(esi + 0x62) = (uint8_t)(0); /* 0x4100AEFF: mov byte ptr [esi + 0x62], 0 */
     86     RECOMP_ICALL(0x4100B0D0u); /* 0x4100AF03: call 0x4100b0d0 */ /* not lifted */
     87     RECOMP_FLAGS_IN();
     88     /* cmp MEM8(ebp + 0xC), 1 */ /* 0x4100AF08: cmp byte ptr [ebp + 0xc], 1 */
     89     _flag_a = (uint32_t)(MEM8(ebp + 0xC)) << 24; _flag_b = (uint32_t)(1) << 24;
     90     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     91     _flag_k = FK_NARROW(FK_CMP, 24);
     92     if (CMP_NE(_flag_a, _flag_b)) goto L_4100AF16; /* 0x4100AF0C: jne 0x4100af16 */
     93 L_4100AF0E:
     94     ecx = MEM32(esi + 0x20); /* 0x4100AF0E: mov ecx, dword ptr [esi + 0x20] */
     95     RECOMP_ICALL(0x41001DD0u); /* 0x4100AF11: call 0x41001dd0 */ /* not lifted */
     96     RECOMP_FLAGS_IN();
     97 L_4100AF16:
     98     edx = MEM32(0x41014A94); /* 0x4100AF16: mov edx, dword ptr [0x41014a94] */
     99     PUSH32(esp, edx); /* 0x4100AF1C: push edx */
    100     RECOMP_ICALL(MEM32(0x4100F01C)); /* 0x4100AF1D: call dword ptr [0x4100f01c] */
    101     RECOMP_FLAGS_IN();
    102 L_4100AF23:
    103     esi = POP32_VAL(esp); /* 0x4100AF23: pop esi */
    104     ebp = POP32_VAL(esp); /* 0x4100AF24: pop ebp */
    105     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4100AF25: ret 8 */
    106 L_4100AF28:
    107     MEM8(esi + 0x61) = (uint8_t)(1); /* 0x4100AF28: mov byte ptr [esi + 0x61], 1 */
    108     edx = MEM32(0x41014A94); /* 0x4100AF2C: mov edx, dword ptr [0x41014a94] */
    109     PUSH32(esp, edx); /* 0x4100AF32: push edx */
    110     RECOMP_ICALL(MEM32(0x4100F01C)); /* 0x4100AF33: call dword ptr [0x4100f01c] */
    111     RECOMP_FLAGS_IN();
    112     esi = POP32_VAL(esp); /* 0x4100AF39: pop esi */
    113     ebp = POP32_VAL(esp); /* 0x4100AF3A: pop ebp */
    114     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4100AF3B: ret 8 */
    115     RECOMP_REGS_OUT();
    116 }
    117 
    118 void sub_4100AF40(void) {
    119     int _fpu_cmp = 0;
    120     uint32_t _cf = 0;
    121     int _df = 1;
    122     uint32_t _flag_k = FK_NONE;
    123     uint32_t _flag_a = 0, _flag_b = 0;
    124     uint32_t _itail_tgt = 0;
    125     RECOMP_REGS_LOCALS
    126     RECOMP_ENTER(0x4100AF40u);
    127 
    128 L_4100AF40:
    129     PUSH32(esp, ebp); /* 0x4100AF40: push ebp */
    130     ebp = esp; /* 0x4100AF41: mov ebp, esp */
    131     PUSH32(esp, ebx); /* 0x4100AF43: push ebx */
    132     ebx = 1; /* 0x4100AF44: mov ebx, 1 */
    133     PUSH32(esp, esi); /* 0x4100AF49: push esi */
    134     PUSH32(esp, ebx); /* 0x4100AF4A: push ebx */
    135     esi = ecx; /* 0x4100AF4B: mov esi, ecx */
    136     PUSH32(esp, ebx); /* 0x4100AF4D: push ebx */
    137     RECOMP_ICALL(0x4100B1A0u); /* 0x4100AF4E: call 0x4100b1a0 */ /* not lifted */
    138     RECOMP_FLAGS_IN();
    139     eax = MEM32(0x41014A94); /* 0x4100AF53: mov eax, dword ptr [0x41014a94] */
    140     PUSH32(esp, 0x3E8u); /* 0x4100AF58: push 0x3e8 */
    141     PUSH32(esp, eax); /* 0x4100AF5D: push eax */
    142     RECOMP_ICALL(MEM32(0x4100F010)); /* 0x4100AF5E: call dword ptr [0x4100f010] */
    143     RECOMP_FLAGS_IN();
    144     /* cmp eax, 0x80u */ /* 0x4100AF64: cmp eax, 0x80 */
    145     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x80u);
    146     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    147     _flag_k = FK_CMP;
    148     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100AF6F; /* 0x4100AF69: je 0x4100af6f */
    149 L_4100AF6B:
    150     /* test eax, eax */ /* 0x4100AF6B: test eax, eax */
    151     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    152     _cf = 0;
    153     _flag_k = FK_TEST;
    154     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100AFD8; /* 0x4100AF6D: jne 0x4100afd8 */
    155 L_4100AF6F:
    156     PUSH32(esp, edi); /* 0x4100AF6F: push edi */
    157     MEM8(esi + 0x63) = (uint8_t)(LO8(ebx)); /* 0x4100AF70: mov byte ptr [esi + 0x63], bl */
    158     MEM8(esi + 0x62) = (uint8_t)(LO8(ebx)); /* 0x4100AF73: mov byte ptr [esi + 0x62], bl */
    159     edi = MEM32(esi + 0x54); /* 0x4100AF76: mov edi, dword ptr [esi + 0x54] */
    160     PUSH32(esp, 0xCu); /* 0x4100AF79: push 0xc */
    161     ebx = MEM32(edi + 0x4); /* 0x4100AF7B: mov ebx, dword ptr [edi + 4] */
    162     RECOMP_ICALL(0x4100DB6Cu); /* 0x4100AF7E: call 0x4100db6c */ /* not lifted */
    163     RECOMP_FLAGS_IN();
    164     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    165     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    166     esp = esp + 4; /* 0x4100AF83: add esp, 4 */
    167     _flag_k = FK_ADD;
    168     ecx = edi; /* 0x4100AF86: mov ecx, edi */
    169     /* test edi, edi */ /* 0x4100AF88: test edi, edi */
    170     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    171     _cf = 0;
    172     _flag_k = FK_TEST;
    173     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100AF8E; /* 0x4100AF8A: jne 0x4100af8e */
    174 L_4100AF8C:
    175     ecx = eax; /* 0x4100AF8C: mov ecx, eax */
    176 L_4100AF8E:
    177     MEM32(eax) = ecx; /* 0x4100AF8E: mov dword ptr [eax], ecx */
    178     ecx = ebx; /* 0x4100AF90: mov ecx, ebx */
    179     /* test ebx, ebx */ /* 0x4100AF92: test ebx, ebx */
    180     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
    181     _cf = 0;
    182     _flag_k = FK_TEST;
    183     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100AF98; /* 0x4100AF94: jne 0x4100af98 */
    184 L_4100AF96:
    185     ecx = eax; /* 0x4100AF96: mov ecx, eax */
    186 L_4100AF98:
    187     MEM32(eax + 0x4) = ecx; /* 0x4100AF98: mov dword ptr [eax + 4], ecx */
    188     MEM32(edi + 0x4) = eax; /* 0x4100AF9B: mov dword ptr [edi + 4], eax */
    189     ecx = MEM32(eax + 0x4); /* 0x4100AF9E: mov ecx, dword ptr [eax + 4] */
    190     edi = MEM32(ebp + 0x8); /* 0x4100AFA1: mov edi, dword ptr [ebp + 8] */
    191     MEM32(ecx) = eax; /* 0x4100AFA4: mov dword ptr [ecx], eax */
    192     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
    193     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    194     eax = eax + 8; /* 0x4100AFA6: add eax, 8 */
    195     _flag_k = FK_ADD;
    196     /* test eax, eax */ /* 0x4100AFA9: test eax, eax */
    197     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    198     _cf = 0;
    199     _flag_k = FK_TEST;
    200     if (TEST_Z(_flag_a, _flag_b)) goto L_4100AFAF; /* 0x4100AFAB: je 0x4100afaf */
    201 L_4100AFAD:
    202     MEM32(eax) = edi; /* 0x4100AFAD: mov dword ptr [eax], edi */
    203 L_4100AFAF:
    204     eax = MEM32(esi + 0x58); /* 0x4100AFAF: mov eax, dword ptr [esi + 0x58] */
    205     PUSH32(esp, 0); /* 0x4100AFB2: push 0 */
    206     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    207     eax = eax + 1; /* 0x4100AFB4: inc eax */
    208     _flag_k = FK_INC;
    209     MEM32(esi + 0x58) = eax; /* 0x4100AFB5: mov dword ptr [esi + 0x58], eax */
    210     ecx = MEM32(esi + 0x20); /* 0x4100AFB8: mov ecx, dword ptr [esi + 0x20] */
    211     RECOMP_ICALL(0x41001E10u); /* 0x4100AFBB: call 0x41001e10 */ /* not lifted */
    212     RECOMP_FLAGS_IN();
    213     edx = MEM32(edi + 0xC); /* 0x4100AFC0: mov edx, dword ptr [edi + 0xc] */
    214     ecx = esi; /* 0x4100AFC3: mov ecx, esi */
    215     PUSH32(esp, edx); /* 0x4100AFC5: push edx */
    216     RECOMP_ICALL(0x4100B0D0u); /* 0x4100AFC6: call 0x4100b0d0 */ /* not lifted */
    217     RECOMP_FLAGS_IN();
    218     eax = MEM32(0x41014A94); /* 0x4100AFCB: mov eax, dword ptr [0x41014a94] */
    219     PUSH32(esp, eax); /* 0x4100AFD0: push eax */
    220     RECOMP_ICALL(MEM32(0x4100F01C)); /* 0x4100AFD1: call dword ptr [0x4100f01c] */
    221     RECOMP_FLAGS_IN();
    222     edi = POP32_VAL(esp); /* 0x4100AFD7: pop edi */
    223 L_4100AFD8:
    224     esi = POP32_VAL(esp); /* 0x4100AFD8: pop esi */
    225     ebx = POP32_VAL(esp); /* 0x4100AFD9: pop ebx */
    226     ebp = POP32_VAL(esp); /* 0x4100AFDA: pop ebp */
    227     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100AFDB: ret 4 */
    228     RECOMP_REGS_OUT();
    229 }
    230 
    231 void sub_4100AFE0(void) {
    232     int _fpu_cmp = 0;
    233     uint32_t _cf = 0;
    234     int _df = 1;
    235     uint32_t _flag_k = FK_NONE;
    236     uint32_t _flag_a = 0, _flag_b = 0;
    237     uint32_t _itail_tgt = 0;
    238     RECOMP_REGS_LOCALS
    239     RECOMP_ENTER(0x4100AFE0u);
    240 
    241 L_4100AFE0:
    242     PUSH32(esp, ebp); /* 0x4100AFE0: push ebp */
    243     ebp = esp; /* 0x4100AFE1: mov ebp, esp */
    244     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    245     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    246     esp = esp - 8; /* 0x4100AFE3: sub esp, 8 */
    247     _flag_k = FK_CMP;
    248     PUSH32(esp, esi); /* 0x4100AFE6: push esi */
    249     PUSH32(esp, edi); /* 0x4100AFE7: push edi */
    250     PUSH32(esp, 1); /* 0x4100AFE8: push 1 */
    251     edi = ecx; /* 0x4100AFEA: mov edi, ecx */
    252     PUSH32(esp, 1); /* 0x4100AFEC: push 1 */
    253     RECOMP_ICALL(0x4100B1A0u); /* 0x4100AFEE: call 0x4100b1a0 */ /* not lifted */
    254     RECOMP_FLAGS_IN();
    255     esi = MEM32(ebp + 0x8); /* 0x4100AFF3: mov esi, dword ptr [ebp + 8] */
    256     eax = MEM32(esi + 0x8); /* 0x4100AFF6: mov eax, dword ptr [esi + 8] */
    257     /* test eax, eax */ /* 0x4100AFF9: test eax, eax */
    258     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    259     _cf = 0;
    260     _flag_k = FK_TEST;
    261     if (TEST_Z(_flag_a, _flag_b)) goto L_4100B0B9; /* 0x4100AFFB: je 0x4100b0b9 */
    262 L_4100B001:
    263     eax = MEM32(0x41014A94); /* 0x4100B001: mov eax, dword ptr [0x41014a94] */
    264     PUSH32(esp, 0x3E8u); /* 0x4100B006: push 0x3e8 */
    265     PUSH32(esp, eax); /* 0x4100B00B: push eax */
    266     RECOMP_ICALL(MEM32(0x4100F010)); /* 0x4100B00C: call dword ptr [0x4100f010] */
    267     RECOMP_FLAGS_IN();
    268     /* cmp eax, 0x80u */ /* 0x4100B012: cmp eax, 0x80 */
    269     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x80u);
    270     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    271     _flag_k = FK_CMP;
    272     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B021; /* 0x4100B017: je 0x4100b021 */
    273 L_4100B019:
    274     /* test eax, eax */ /* 0x4100B019: test eax, eax */
    275     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    276     _cf = 0;
    277     _flag_k = FK_TEST;
    278     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100B0B9; /* 0x4100B01B: jne 0x4100b0b9 */
    279 L_4100B021:
    280     MEM8(edi + 0x63) = (uint8_t)(1); /* 0x4100B021: mov byte ptr [edi + 0x63], 1 */
    281     MEM8(edi + 0x62) = (uint8_t)(0); /* 0x4100B025: mov byte ptr [edi + 0x62], 0 */
    282     eax = MEM32(esi + 0x4); /* 0x4100B029: mov eax, dword ptr [esi + 4] */
    283     esi = MEM32(eax); /* 0x4100B02C: mov esi, dword ptr [eax] */
    284     /* cmp esi, eax */ /* 0x4100B02E: cmp esi, eax */
    285     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
    286     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    287     _flag_k = FK_CMP;
    288     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B090; /* 0x4100B030: je 0x4100b090 */
    289 L_4100B032:
    290     PUSH32(esp, ebx); /* 0x4100B032: push ebx */
    291 L_4100B033:
    292     ebx = MEM32(edi + 0x54); /* 0x4100B033: mov ebx, dword ptr [edi + 0x54] */
    293     eax = esi; /* 0x4100B036: mov eax, esi */
    294     esi = MEM32(esi); /* 0x4100B038: mov esi, dword ptr [esi] */
    295     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
    296     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    297     eax = eax + 8; /* 0x4100B03A: add eax, 8 */
    298     _flag_k = FK_ADD;
    299     ecx = MEM32(ebx + 0x4); /* 0x4100B03D: mov ecx, dword ptr [ebx + 4] */
    300     PUSH32(esp, 0xCu); /* 0x4100B040: push 0xc */
    301     MEM32(ebp + (-0x8)) = eax; /* 0x4100B042: mov dword ptr [ebp - 8], eax */
    302     MEM32(ebp + (-0x4)) = ecx; /* 0x4100B045: mov dword ptr [ebp - 4], ecx */
    303     RECOMP_ICALL(0x4100DB6Cu); /* 0x4100B048: call 0x4100db6c */ /* not lifted */
    304     RECOMP_FLAGS_IN();
    305     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    306     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    307     esp = esp + 4; /* 0x4100B04D: add esp, 4 */
    308     _flag_k = FK_ADD;
    309     ecx = ebx; /* 0x4100B050: mov ecx, ebx */
    310     /* test ebx, ebx */ /* 0x4100B052: test ebx, ebx */
    311     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
    312     _cf = 0;
    313     _flag_k = FK_TEST;
    314     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100B058; /* 0x4100B054: jne 0x4100b058 */
    315 L_4100B056:
    316     ecx = eax; /* 0x4100B056: mov ecx, eax */
    317 L_4100B058:
    318     MEM32(eax) = ecx; /* 0x4100B058: mov dword ptr [eax], ecx */
    319     ecx = MEM32(ebp + (-0x4)); /* 0x4100B05A: mov ecx, dword ptr [ebp - 4] */
    320     /* test ecx, ecx */ /* 0x4100B05D: test ecx, ecx */
    321     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    322     _cf = 0;
    323     _flag_k = FK_TEST;
    324     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100B063; /* 0x4100B05F: jne 0x4100b063 */
    325 L_4100B061:
    326     ecx = eax; /* 0x4100B061: mov ecx, eax */
    327 L_4100B063:
    328     MEM32(eax + 0x4) = ecx; /* 0x4100B063: mov dword ptr [eax + 4], ecx */
    329     ecx = MEM32(ebp + (-0x8)); /* 0x4100B066: mov ecx, dword ptr [ebp - 8] */
    330     MEM32(ebx + 0x4) = eax; /* 0x4100B069: mov dword ptr [ebx + 4], eax */
    331     edx = MEM32(eax + 0x4); /* 0x4100B06C: mov edx, dword ptr [eax + 4] */
    332     PUSH32(esp, ecx); /* 0x4100B06F: push ecx */
    333     MEM32(edx) = eax; /* 0x4100B070: mov dword ptr [edx], eax */
    334     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
    335     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    336     eax = eax + 8; /* 0x4100B072: add eax, 8 */
    337     _flag_k = FK_ADD;
    338     PUSH32(esp, eax); /* 0x4100B075: push eax */
    339     RECOMP_ICALL(0x410028A0u); /* 0x4100B076: call 0x410028a0 */ /* not lifted */
    340     RECOMP_FLAGS_IN();
    341     ecx = MEM32(edi + 0x58); /* 0x4100B07B: mov ecx, dword ptr [edi + 0x58] */
    342     edx = MEM32(ebp + 0x8); /* 0x4100B07E: mov edx, dword ptr [ebp + 8] */
    343     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    344     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    345     esp = esp + 8; /* 0x4100B081: add esp, 8 */
    346     _flag_k = FK_ADD;
    347     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
    348     ecx = ecx + 1; /* 0x4100B084: inc ecx */
    349     _flag_k = FK_INC;
    350     MEM32(edi + 0x58) = ecx; /* 0x4100B085: mov dword ptr [edi + 0x58], ecx */
    351     eax = MEM32(edx + 0x4); /* 0x4100B088: mov eax, dword ptr [edx + 4] */
    352     /* cmp esi, eax */ /* 0x4100B08B: cmp esi, eax */
    353     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
    354     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    355     _flag_k = FK_CMP;
    356     RECOMP_BACKEDGE();
    357     if (CMP_NE(_flag_a, _flag_b)) goto L_4100B033; /* 0x4100B08D: jne 0x4100b033 */
    358 L_4100B08F:
    359     ebx = POP32_VAL(esp); /* 0x4100B08F: pop ebx */
    360 L_4100B090:
    361     ecx = MEM32(edi + 0x20); /* 0x4100B090: mov ecx, dword ptr [edi + 0x20] */
    362     PUSH32(esp, 0); /* 0x4100B093: push 0 */
    363     RECOMP_ICALL(0x41001E10u); /* 0x4100B095: call 0x41001e10 */ /* not lifted */
    364     RECOMP_FLAGS_IN();
    365     eax = MEM32(edi + 0x54); /* 0x4100B09A: mov eax, dword ptr [edi + 0x54] */
    366     eax = MEM32(eax); /* 0x4100B09D: mov eax, dword ptr [eax] */
    367     ecx = MEM32(eax + 0x8); /* 0x4100B09F: mov ecx, dword ptr [eax + 8] */
    368     edx = MEM32(ecx + 0xC); /* 0x4100B0A2: mov edx, dword ptr [ecx + 0xc] */
    369     ecx = edi; /* 0x4100B0A5: mov ecx, edi */
    370     PUSH32(esp, edx); /* 0x4100B0A7: push edx */
    371     RECOMP_ICALL(0x4100B0D0u); /* 0x4100B0A8: call 0x4100b0d0 */ /* not lifted */
    372     RECOMP_FLAGS_IN();
    373     eax = MEM32(0x41014A94); /* 0x4100B0AD: mov eax, dword ptr [0x41014a94] */
    374     PUSH32(esp, eax); /* 0x4100B0B2: push eax */
    375     RECOMP_ICALL(MEM32(0x4100F01C)); /* 0x4100B0B3: call dword ptr [0x4100f01c] */
    376     RECOMP_FLAGS_IN();
    377 L_4100B0B9:
    378     edi = POP32_VAL(esp); /* 0x4100B0B9: pop edi */
    379     esi = POP32_VAL(esp); /* 0x4100B0BA: pop esi */
    380     esp = ebp; /* 0x4100B0BB: mov esp, ebp */
    381     ebp = POP32_VAL(esp); /* 0x4100B0BD: pop ebp */
    382     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100B0BE: ret 4 */
    383     RECOMP_REGS_OUT();
    384 }
    385 
    386 void sub_4100B0D0(void) {
    387     int _fpu_cmp = 0;
    388     uint32_t _cf = 0;
    389     int _df = 1;
    390     uint32_t _flag_k = FK_NONE;
    391     uint32_t _flag_a = 0, _flag_b = 0;
    392     uint32_t _itail_tgt = 0;
    393     RECOMP_REGS_LOCALS
    394     RECOMP_ENTER(0x4100B0D0u);
    395 
    396 L_4100B0D0:
    397     PUSH32(esp, ebp); /* 0x4100B0D0: push ebp */
    398     ebp = esp; /* 0x4100B0D1: mov ebp, esp */
    399     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
    400     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    401     esp = esp - 0x18u; /* 0x4100B0D3: sub esp, 0x18 */
    402     _flag_k = FK_CMP;
    403     PUSH32(esp, ebx); /* 0x4100B0D6: push ebx */
    404     PUSH32(esp, esi); /* 0x4100B0D7: push esi */
    405     esi = ecx; /* 0x4100B0D8: mov esi, ecx */
    406     PUSH32(esp, edi); /* 0x4100B0DA: push edi */
    407     MEM32(ebp + (-0x4)) = 3; /* 0x4100B0DB: mov dword ptr [ebp - 4], 3 */
    408     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    409     ebx = 0; /* 0x4100B0E2: xor ebx, ebx */
    410     _cf = 0;
    411     _flag_k = FK_TEST;
    412     edi = esi + 0x34; /* 0x4100B0E4: lea edi, [esi + 0x34] */
    413 L_4100B0E7:
    414     eax = MEM32(edi); /* 0x4100B0E7: mov eax, dword ptr [edi] */
    415     /* cmp eax, ebx */ /* 0x4100B0E9: cmp eax, ebx */
    416     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
    417     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    418     _flag_k = FK_CMP;
    419     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B0F6; /* 0x4100B0EB: je 0x4100b0f6 */
    420 L_4100B0ED:
    421     PUSH32(esp, eax); /* 0x4100B0ED: push eax */
    422     RECOMP_ICALL(MEM32(0x4100F1B4)); /* 0x4100B0EE: call dword ptr [0x4100f1b4] */
    423     RECOMP_FLAGS_IN();
    424     MEM32(edi) = ebx; /* 0x4100B0F4: mov dword ptr [edi], ebx */
    425 L_4100B0F6:
    426     eax = MEM32(ebp + (-0x4)); /* 0x4100B0F6: mov eax, dword ptr [ebp - 4] */
    427     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
    428     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    429     edi = edi + 4; /* 0x4100B0F9: add edi, 4 */
    430     _flag_k = FK_ADD;
    431     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    432     eax = eax - 1; /* 0x4100B0FC: dec eax */
    433     _flag_k = FK_DEC;
    434     MEM32(ebp + (-0x4)) = eax; /* 0x4100B0FD: mov dword ptr [ebp - 4], eax */
    435     RECOMP_BACKEDGE();
    436     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_4100B0E7; /* 0x4100B100: jne 0x4100b0e7 */
    437 L_4100B102:
    438     eax = MEM32(esi + 0x54); /* 0x4100B102: mov eax, dword ptr [esi + 0x54] */
    439     edi = 2; /* 0x4100B105: mov edi, 2 */
    440     eax = MEM32(eax); /* 0x4100B10A: mov eax, dword ptr [eax] */
    441     MEM32(esi + 0x4C) = ebx; /* 0x4100B10C: mov dword ptr [esi + 0x4c], ebx */
    442     MEM32(esi + 0x5C) = eax; /* 0x4100B10F: mov dword ptr [esi + 0x5c], eax */
    443     eax = MEM32(ebp + 0x8); /* 0x4100B112: mov eax, dword ptr [ebp + 8] */
    444     MEM8(esi + 0x60) = (uint8_t)(LO8(ebx)); /* 0x4100B115: mov byte ptr [esi + 0x60], bl */
    445     MEM32(esi + 0x28) = ebx; /* 0x4100B118: mov dword ptr [esi + 0x28], ebx */
    446     MEM32(esi + 0x2C) = edi; /* 0x4100B11B: mov dword ptr [esi + 0x2c], edi */
    447     MEM32(esi + 0x30) = 1; /* 0x4100B11E: mov dword ptr [esi + 0x30], 1 */
    448     MEM32(esi + 0x40) = eax; /* 0x4100B125: mov dword ptr [esi + 0x40], eax */
    449     ecx = MEM32(esi + 0x18); /* 0x4100B128: mov ecx, dword ptr [esi + 0x18] */
    450     PUSH32(esp, eax); /* 0x4100B12B: push eax */
    451     RECOMP_ICALL(0x41005A60u); /* 0x4100B12C: call 0x41005a60 */ /* not lifted */
    452     RECOMP_FLAGS_IN();
    453     ecx = MEM32(esi); /* 0x4100B131: mov ecx, dword ptr [esi] */
    454     PUSH32(esp, ebx); /* 0x4100B133: push ebx */
    455     PUSH32(esp, eax); /* 0x4100B134: push eax */
    456     PUSH32(esp, ecx); /* 0x4100B135: push ecx */
    457     RECOMP_ICALL(MEM32(0x4100F1AC)); /* 0x4100B136: call dword ptr [0x4100f1ac] */
    458     RECOMP_FLAGS_IN();
    459     edx = MEM32(esi + 0x28); /* 0x4100B13C: mov edx, dword ptr [esi + 0x28] */
    460     MEM32(esi + edx * 4 + 0x34) = eax; /* 0x4100B13F: mov dword ptr [esi + edx*4 + 0x34], eax */
    461     eax = MEM32(esi + 0x28); /* 0x4100B143: mov eax, dword ptr [esi + 0x28] */
    462     eax = MEM32(esi + eax * 4 + 0x34); /* 0x4100B146: mov eax, dword ptr [esi + eax*4 + 0x34] */
    463     /* cmp eax, ebx */ /* 0x4100B14A: cmp eax, ebx */
    464     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
    465     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    466     _flag_k = FK_CMP;
    467     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B167; /* 0x4100B14C: je 0x4100b167 */
    468 L_4100B14E:
    469     ecx = MEM32(esi + 0x14); /* 0x4100B14E: mov ecx, dword ptr [esi + 0x14] */
    470     PUSH32(esp, ecx); /* 0x4100B151: push ecx */
    471     PUSH32(esp, eax); /* 0x4100B152: push eax */
    472     RECOMP_ICALL(MEM32(0x4100F190)); /* 0x4100B153: call dword ptr [0x4100f190] */
    473     RECOMP_FLAGS_IN();
    474     edx = MEM32(esi + 0x28); /* 0x4100B159: mov edx, dword ptr [esi + 0x28] */
    475     eax = MEM32(esi + edx * 4 + 0x34); /* 0x4100B15C: mov eax, dword ptr [esi + edx*4 + 0x34] */
    476     PUSH32(esp, eax); /* 0x4100B160: push eax */
    477     RECOMP_ICALL(MEM32(0x4100F18C)); /* 0x4100B161: call dword ptr [0x4100f18c] */
    478     RECOMP_FLAGS_IN();
    479 L_4100B167:
    480     eax = MEM32(esi + 0xC0); /* 0x4100B167: mov eax, dword ptr [esi + 0xc0] */
    481     /* cmp eax, ebx */ /* 0x4100B16D: cmp eax, ebx */
    482     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
    483     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    484     _flag_k = FK_CMP;
    485     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B197; /* 0x4100B16F: je 0x4100b197 */
    486 L_4100B171:
    487     ecx = MEM32(esi + 0x28); /* 0x4100B171: mov ecx, dword ptr [esi + 0x28] */
    488     MEM32(ebp + (-0x18)) = edi; /* 0x4100B174: mov dword ptr [ebp - 0x18], edi */
    489     MEM32(ebp + (-0x14)) = ebx; /* 0x4100B177: mov dword ptr [ebp - 0x14], ebx */
    490     edx = MEM32(esi + ecx * 4 + 0x40); /* 0x4100B17A: mov edx, dword ptr [esi + ecx*4 + 0x40] */
    491     ecx = ebp + (-0x18); /* 0x4100B17E: lea ecx, [ebp - 0x18] */
    492     MEM32(ebp + (-0x10)) = edx; /* 0x4100B181: mov dword ptr [ebp - 0x10], edx */
    493     edx = MEM32(esi + 0xC4); /* 0x4100B184: mov edx, dword ptr [esi + 0xc4] */
    494     PUSH32(esp, ecx); /* 0x4100B18A: push ecx */
    495     PUSH32(esp, edx); /* 0x4100B18B: push edx */
    496     MEM32(ebp + (-0xC)) = ebx; /* 0x4100B18C: mov dword ptr [ebp - 0xc], ebx */
    497     MEM32(ebp + (-0x8)) = ebx; /* 0x4100B18F: mov dword ptr [ebp - 8], ebx */
    498     RECOMP_ICALL(eax); /* 0x4100B192: call eax */
    499     RECOMP_FLAGS_IN();
    500     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    501     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    502     esp = esp + 8; /* 0x4100B194: add esp, 8 */
    503     _flag_k = FK_ADD;
    504 L_4100B197:
    505     edi = POP32_VAL(esp); /* 0x4100B197: pop edi */
    506     esi = POP32_VAL(esp); /* 0x4100B198: pop esi */
    507     ebx = POP32_VAL(esp); /* 0x4100B199: pop ebx */
    508     esp = ebp; /* 0x4100B19A: mov esp, ebp */
    509     ebp = POP32_VAL(esp); /* 0x4100B19C: pop ebp */
    510     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100B19D: ret 4 */
    511     RECOMP_REGS_OUT();
    512 }
    513 
    514 void sub_4100B1A0(void) {
    515     int _fpu_cmp = 0;
    516     uint32_t _cf = 0;
    517     int _df = 1;
    518     uint32_t _flag_k = FK_NONE;
    519     uint32_t _flag_a = 0, _flag_b = 0;
    520     uint32_t _itail_tgt = 0;
    521     RECOMP_REGS_LOCALS
    522     RECOMP_ENTER(0x4100B1A0u);
    523 
    524 L_4100B1A0:
    525     PUSH32(esp, ebp); /* 0x4100B1A0: push ebp */
    526     ebp = esp; /* 0x4100B1A1: mov ebp, esp */
    527     PUSH32(esp, ecx); /* 0x4100B1A3: push ecx */
    528     eax = MEM32(0x41014A94); /* 0x4100B1A4: mov eax, dword ptr [0x41014a94] */
    529     PUSH32(esp, esi); /* 0x4100B1A9: push esi */
    530     PUSH32(esp, edi); /* 0x4100B1AA: push edi */
    531     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    532     edi = 0; /* 0x4100B1AB: xor edi, edi */
    533     _cf = 0;
    534     _flag_k = FK_TEST;
    535     PUSH32(esp, 0x3E8u); /* 0x4100B1AD: push 0x3e8 */
    536     esi = ecx; /* 0x4100B1B2: mov esi, ecx */
    537     PUSH32(esp, eax); /* 0x4100B1B4: push eax */
    538     MEM32(ebp + (-0x4)) = edi; /* 0x4100B1B5: mov dword ptr [ebp - 4], edi */
    539     RECOMP_ICALL(MEM32(0x4100F010)); /* 0x4100B1B8: call dword ptr [0x4100f010] */
    540     RECOMP_FLAGS_IN();
    541     /* cmp eax, 0x80u */ /* 0x4100B1BE: cmp eax, 0x80 */
    542     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x80u);
    543     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    544     _flag_k = FK_CMP;
    545     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B1CD; /* 0x4100B1C3: je 0x4100b1cd */
    546 L_4100B1C5:
    547     /* test eax, eax */ /* 0x4100B1C5: test eax, eax */
    548     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    549     _cf = 0;
    550     _flag_k = FK_TEST;
    551     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100B285; /* 0x4100B1C7: jne 0x4100b285 */
    552 L_4100B1CD:
    553     /* cmp MEM8(ebp + 0xC), 1 */ /* 0x4100B1CD: cmp byte ptr [ebp + 0xc], 1 */
    554     _flag_a = (uint32_t)(MEM8(ebp + 0xC)) << 24; _flag_b = (uint32_t)(1) << 24;
    555     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    556     _flag_k = FK_NARROW(FK_CMP, 24);
    557     if (CMP_NE(_flag_a, _flag_b)) goto L_4100B1DA; /* 0x4100B1D1: jne 0x4100b1da */
    558 L_4100B1D3:
    559     ecx = MEM32(esi + 0x20); /* 0x4100B1D3: mov ecx, dword ptr [esi + 0x20] */
    560     MEM8(ecx + 0x6) = (uint8_t)(0); /* 0x4100B1D6: mov byte ptr [ecx + 6], 0 */
    561 L_4100B1DA:
    562     SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x4100B1DA: mov al, byte ptr [ebp + 8] */
    563     PUSH32(esp, ebx); /* 0x4100B1DD: push ebx */
    564     /* cmp LO8(eax), 1 */ /* 0x4100B1DE: cmp al, 1 */
    565     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    566     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    567     _flag_k = FK_NARROW(FK_CMP, 24);
    568     if (CMP_NE(_flag_a, _flag_b)) goto L_4100B1FF; /* 0x4100B1E0: jne 0x4100b1ff */
    569 L_4100B1E2:
    570     edi = esi + 0x34; /* 0x4100B1E2: lea edi, [esi + 0x34] */
    571     ebx = 3; /* 0x4100B1E5: mov ebx, 3 */
    572 L_4100B1EA:
    573     eax = MEM32(edi); /* 0x4100B1EA: mov eax, dword ptr [edi] */
    574     /* test eax, eax */ /* 0x4100B1EC: test eax, eax */
    575     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    576     _cf = 0;
    577     _flag_k = FK_TEST;
    578     if (TEST_Z(_flag_a, _flag_b)) goto L_4100B1F9; /* 0x4100B1EE: je 0x4100b1f9 */
    579 L_4100B1F0:
    580     PUSH32(esp, 1); /* 0x4100B1F0: push 1 */
    581     PUSH32(esp, eax); /* 0x4100B1F2: push eax */
    582     RECOMP_ICALL(MEM32(0x4100F188)); /* 0x4100B1F3: call dword ptr [0x4100f188] */
    583     RECOMP_FLAGS_IN();
    584 L_4100B1F9:
    585     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
    586     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    587     edi = edi + 4; /* 0x4100B1F9: add edi, 4 */
    588     _flag_k = FK_ADD;
    589     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
    590     ebx = ebx - 1; /* 0x4100B1FC: dec ebx */
    591     _flag_k = FK_DEC;
    592     RECOMP_BACKEDGE();
    593     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_4100B1EA; /* 0x4100B1FD: jne 0x4100b1ea */
    594 L_4100B1FF:
    595     eax = MEM32(esi + 0x4C); /* 0x4100B1FF: mov eax, dword ptr [esi + 0x4c] */
    596     MEM8(esi + 0x62) = (uint8_t)(1); /* 0x4100B202: mov byte ptr [esi + 0x62], 1 */
    597     /* test eax, eax */ /* 0x4100B206: test eax, eax */
    598     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    599     _cf = 0;
    600     _flag_k = FK_TEST;
    601     MEM8(esi + 0x61) = (uint8_t)(0); /* 0x4100B208: mov byte ptr [esi + 0x61], 0 */
    602     if (TEST_Z(_flag_a, _flag_b)) goto L_4100B214; /* 0x4100B20C: je 0x4100b214 */
    603 L_4100B20E:
    604     edx = MEM32(eax + 0x10); /* 0x4100B20E: mov edx, dword ptr [eax + 0x10] */
    605     MEM32(ebp + (-0x4)) = edx; /* 0x4100B211: mov dword ptr [ebp - 4], edx */
    606 L_4100B214:
    607     ebx = MEM32(esi + 0x54); /* 0x4100B214: mov ebx, dword ptr [esi + 0x54] */
    608     edi = MEM32(ebx); /* 0x4100B217: mov edi, dword ptr [ebx] */
    609     /* cmp edi, ebx */ /* 0x4100B219: cmp edi, ebx */
    610     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
    611     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    612     _flag_k = FK_CMP;
    613     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B244; /* 0x4100B21B: je 0x4100b244 */
    614 L_4100B21D:
    615     eax = edi; /* 0x4100B21D: mov eax, edi */
    616     edi = MEM32(edi); /* 0x4100B21F: mov edi, dword ptr [edi] */
    617     PUSH32(esp, eax); /* 0x4100B221: push eax */
    618     ecx = MEM32(eax + 0x4); /* 0x4100B222: mov ecx, dword ptr [eax + 4] */
    619     edx = MEM32(eax); /* 0x4100B225: mov edx, dword ptr [eax] */
    620     MEM32(ecx) = edx; /* 0x4100B227: mov dword ptr [ecx], edx */
    621     ecx = MEM32(eax); /* 0x4100B229: mov ecx, dword ptr [eax] */
    622     edx = MEM32(eax + 0x4); /* 0x4100B22B: mov edx, dword ptr [eax + 4] */
    623     MEM32(ecx + 0x4) = edx; /* 0x4100B22E: mov dword ptr [ecx + 4], edx */
    624     RECOMP_ICALL(0x4100DB20u); /* 0x4100B231: call 0x4100db20 */ /* not lifted */
    625     RECOMP_FLAGS_IN();
    626     ecx = MEM32(esi + 0x58); /* 0x4100B236: mov ecx, dword ptr [esi + 0x58] */
    627     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    628     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    629     esp = esp + 4; /* 0x4100B239: add esp, 4 */
    630     _flag_k = FK_ADD;
    631     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
    632     ecx = ecx - 1; /* 0x4100B23C: dec ecx */
    633     _flag_k = FK_DEC;
    634     /* cmp edi, ebx */ /* 0x4100B23D: cmp edi, ebx */
    635     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
    636     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    637     _flag_k = FK_CMP;
    638     MEM32(esi + 0x58) = ecx; /* 0x4100B23F: mov dword ptr [esi + 0x58], ecx */
    639     RECOMP_BACKEDGE();
    640     if (CMP_NE(_flag_a, _flag_b)) goto L_4100B21D; /* 0x4100B242: jne 0x4100b21d */
    641 L_4100B244:
    642     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    643     edi = 0; /* 0x4100B244: xor edi, edi */
    644     _cf = 0;
    645     _flag_k = FK_TEST;
    646     ecx = esi; /* 0x4100B246: mov ecx, esi */
    647     MEM32(esi + 0x4C) = edi; /* 0x4100B248: mov dword ptr [esi + 0x4c], edi */
    648     eax = MEM32(esi + 0x54); /* 0x4100B24B: mov eax, dword ptr [esi + 0x54] */
    649     MEM32(esi + 0x5C) = eax; /* 0x4100B24E: mov dword ptr [esi + 0x5c], eax */
    650     RECOMP_ICALL(0x4100B420u); /* 0x4100B251: call 0x4100b420 */ /* not lifted */
    651     RECOMP_FLAGS_IN();
    652     eax = MEM32(esi + 0xC8); /* 0x4100B256: mov eax, dword ptr [esi + 0xc8] */
    653     ebx = POP32_VAL(esp); /* 0x4100B25C: pop ebx */
    654     /* cmp eax, edi */ /* 0x4100B25D: cmp eax, edi */
    655     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    656     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    657     _flag_k = FK_CMP;
    658     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B26E; /* 0x4100B25F: je 0x4100b26e */
    659 L_4100B261:
    660     PUSH32(esp, eax); /* 0x4100B261: push eax */
    661     RECOMP_ICALL(MEM32(0x4100F128)); /* 0x4100B262: call dword ptr [0x4100f128] */
    662     RECOMP_FLAGS_IN();
    663     MEM32(esi + 0xC8) = edi; /* 0x4100B268: mov dword ptr [esi + 0xc8], edi */
    664 L_4100B26E:
    665     eax = MEM32(0x41014A94); /* 0x4100B26E: mov eax, dword ptr [0x41014a94] */
    666     PUSH32(esp, eax); /* 0x4100B273: push eax */
    667     RECOMP_ICALL(MEM32(0x4100F01C)); /* 0x4100B274: call dword ptr [0x4100f01c] */
    668     RECOMP_FLAGS_IN();
    669     eax = MEM32(ebp + (-0x4)); /* 0x4100B27A: mov eax, dword ptr [ebp - 4] */
    670     edi = POP32_VAL(esp); /* 0x4100B27D: pop edi */
    671     esi = POP32_VAL(esp); /* 0x4100B27E: pop esi */
    672     esp = ebp; /* 0x4100B27F: mov esp, ebp */
    673     ebp = POP32_VAL(esp); /* 0x4100B281: pop ebp */
    674     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4100B282: ret 8 */
    675 L_4100B285:
    676     eax = edi; /* 0x4100B285: mov eax, edi */
    677     edi = POP32_VAL(esp); /* 0x4100B287: pop edi */
    678     esi = POP32_VAL(esp); /* 0x4100B288: pop esi */
    679     esp = ebp; /* 0x4100B289: mov esp, ebp */
    680     ebp = POP32_VAL(esp); /* 0x4100B28B: pop ebp */
    681     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4100B28C: ret 8 */
    682     RECOMP_REGS_OUT();
    683 }
    684 
    685 void sub_4100B290(void) {
    686     int _fpu_cmp = 0;
    687     uint32_t _cf = 0;
    688     int _df = 1;
    689     uint32_t _flag_k = FK_NONE;
    690     uint32_t _flag_a = 0, _flag_b = 0;
    691     uint32_t _itail_tgt = 0;
    692     RECOMP_REGS_LOCALS
    693     RECOMP_ENTER(0x4100B290u);
    694 
    695 L_4100B290:
    696     PUSH32(esp, ebp); /* 0x4100B290: push ebp */
    697     ebp = esp; /* 0x4100B291: mov ebp, esp */
    698     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    699     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    700     esp = esp - 0x14u; /* 0x4100B293: sub esp, 0x14 */
    701     _flag_k = FK_CMP;
    702     PUSH32(esp, esi); /* 0x4100B296: push esi */
    703     esi = MEM32(ebp + 0x10); /* 0x4100B297: mov esi, dword ptr [ebp + 0x10] */
    704     eax = MEM32(esi + 0xC0); /* 0x4100B29A: mov eax, dword ptr [esi + 0xc0] */
    705     /* test eax, eax */ /* 0x4100B2A0: test eax, eax */
    706     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    707     _cf = 0;
    708     _flag_k = FK_TEST;
    709     if (TEST_Z(_flag_a, _flag_b)) goto L_4100B2D7; /* 0x4100B2A2: je 0x4100b2d7 */
    710 L_4100B2A4:
    711     edx = MEM32(esi + 0xC4); /* 0x4100B2A4: mov edx, dword ptr [esi + 0xc4] */
    712     ecx = ebp + (-0x14); /* 0x4100B2AA: lea ecx, [ebp - 0x14] */
    713     PUSH32(esp, ecx); /* 0x4100B2AD: push ecx */
    714     PUSH32(esp, edx); /* 0x4100B2AE: push edx */
    715     MEM32(ebp + (-0x14)) = 1; /* 0x4100B2AF: mov dword ptr [ebp - 0x14], 1 */
    716     MEM32(ebp + (-0x10)) = 2; /* 0x4100B2B6: mov dword ptr [ebp - 0x10], 2 */
    717     MEM32(ebp + (-0xC)) = 0; /* 0x4100B2BD: mov dword ptr [ebp - 0xc], 0 */
    718     MEM32(ebp + (-0x8)) = 0; /* 0x4100B2C4: mov dword ptr [ebp - 8], 0 */
    719     MEM32(ebp + (-0x4)) = 0; /* 0x4100B2CB: mov dword ptr [ebp - 4], 0 */
    720     RECOMP_ICALL(eax); /* 0x4100B2D2: call eax */
    721     RECOMP_FLAGS_IN();
    722     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    723     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    724     esp = esp + 8; /* 0x4100B2D4: add esp, 8 */
    725     _flag_k = FK_ADD;
    726 L_4100B2D7:
    727     eax = MEM32(0x41014A94); /* 0x4100B2D7: mov eax, dword ptr [0x41014a94] */
    728     PUSH32(esp, 0x3E8u); /* 0x4100B2DC: push 0x3e8 */
    729     PUSH32(esp, eax); /* 0x4100B2E1: push eax */
    730     RECOMP_ICALL(MEM32(0x4100F010)); /* 0x4100B2E2: call dword ptr [0x4100f010] */
    731     RECOMP_FLAGS_IN();
    732     /* cmp eax, 0x80u */ /* 0x4100B2E8: cmp eax, 0x80 */
    733     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x80u);
    734     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    735     _flag_k = FK_CMP;
    736     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B2F3; /* 0x4100B2ED: je 0x4100b2f3 */
    737 L_4100B2EF:
    738     /* test eax, eax */ /* 0x4100B2EF: test eax, eax */
    739     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    740     _cf = 0;
    741     _flag_k = FK_TEST;
    742     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100B304; /* 0x4100B2F1: jne 0x4100b304 */
    743 L_4100B2F3:
    744     MEM8(esi + 0x61) = (uint8_t)(1); /* 0x4100B2F3: mov byte ptr [esi + 0x61], 1 */
    745     ecx = MEM32(0x41014A94); /* 0x4100B2F7: mov ecx, dword ptr [0x41014a94] */
    746     PUSH32(esp, ecx); /* 0x4100B2FD: push ecx */
    747     RECOMP_ICALL(MEM32(0x4100F01C)); /* 0x4100B2FE: call dword ptr [0x4100f01c] */
    748     RECOMP_FLAGS_IN();
    749 L_4100B304:
    750     esi = POP32_VAL(esp); /* 0x4100B304: pop esi */
    751     esp = ebp; /* 0x4100B305: mov esp, ebp */
    752     ebp = POP32_VAL(esp); /* 0x4100B307: pop ebp */
    753     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x4100B308: ret 0x14 */
    754     RECOMP_REGS_OUT();
    755 }
    756 
    757 void sub_4100B310(void) {
    758     int _fpu_cmp = 0;
    759     uint32_t _cf = 0;
    760     int _df = 1;
    761     uint32_t _flag_k = FK_NONE;
    762     uint32_t _flag_a = 0, _flag_b = 0;
    763     uint32_t _itail_tgt = 0;
    764     RECOMP_REGS_LOCALS
    765     RECOMP_ENTER(0x4100B310u);
    766 
    767 L_4100B310:
    768     PUSH32(esp, ebx); /* 0x4100B310: push ebx */
    769     PUSH32(esp, esi); /* 0x4100B311: push esi */
    770     esi = ecx; /* 0x4100B312: mov esi, ecx */
    771     SET_LO8(ebx, 1); /* 0x4100B314: mov bl, 1 */
    772     eax = MEM32(esi + 0x30); /* 0x4100B316: mov eax, dword ptr [esi + 0x30] */
    773     eax = MEM32(esi + eax * 4 + 0x34); /* 0x4100B319: mov eax, dword ptr [esi + eax*4 + 0x34] */
    774     /* test eax, eax */ /* 0x4100B31D: test eax, eax */
    775     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    776     _cf = 0;
    777     _flag_k = FK_TEST;
    778     if (TEST_Z(_flag_a, _flag_b)) goto L_4100B375; /* 0x4100B31F: je 0x4100b375 */
    779 L_4100B321:
    780     PUSH32(esp, eax); /* 0x4100B321: push eax */
    781     RECOMP_ICALL(MEM32(0x4100F198)); /* 0x4100B322: call dword ptr [0x4100f198] */
    782     RECOMP_FLAGS_IN();
    783     /* cmp eax, 4 */ /* 0x4100B328: cmp eax, 4 */
    784     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
    785     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    786     _flag_k = FK_CMP;
    787     if (CMP_NE(_flag_a, _flag_b)) goto L_4100B375; /* 0x4100B32B: jne 0x4100b375 */
    788 L_4100B32D:
    789     ecx = MEM32(esi + 0x2C); /* 0x4100B32D: mov ecx, dword ptr [esi + 0x2c] */
    790     PUSH32(esp, edi); /* 0x4100B330: push edi */
    791     edi = 2; /* 0x4100B331: mov edi, 2 */
    792     eax = MEM32(esi + ecx * 4 + 0x34); /* 0x4100B336: mov eax, dword ptr [esi + ecx*4 + 0x34] */
    793     /* test eax, eax */ /* 0x4100B33A: test eax, eax */
    794     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    795     _cf = 0;
    796     _flag_k = FK_TEST;
    797     if (TEST_Z(_flag_a, _flag_b)) goto L_4100B360; /* 0x4100B33C: je 0x4100b360 */
    798 L_4100B33E:
    799     PUSH32(esp, eax); /* 0x4100B33E: push eax */
    800     RECOMP_ICALL(MEM32(0x4100F198)); /* 0x4100B33F: call dword ptr [0x4100f198] */
    801     RECOMP_FLAGS_IN();
    802     edx = MEM32(esi + 0x2C); /* 0x4100B345: mov edx, dword ptr [esi + 0x2c] */
    803     edi = eax; /* 0x4100B348: mov edi, eax */
    804     eax = MEM32(esi + edx * 4 + 0x34); /* 0x4100B34A: mov eax, dword ptr [esi + edx*4 + 0x34] */
    805     PUSH32(esp, eax); /* 0x4100B34E: push eax */
    806     RECOMP_ICALL(MEM32(0x4100F1B4)); /* 0x4100B34F: call dword ptr [0x4100f1b4] */
    807     RECOMP_FLAGS_IN();
    808     ecx = MEM32(esi + 0x2C); /* 0x4100B355: mov ecx, dword ptr [esi + 0x2c] */
    809     MEM32(esi + ecx * 4 + 0x34) = 0; /* 0x4100B358: mov dword ptr [esi + ecx*4 + 0x34], 0 */
    810 L_4100B360:
    811     eax = MEM32(esi + 0x2C); /* 0x4100B360: mov eax, dword ptr [esi + 0x2c] */
    812     edx = MEM32(esi + 0x30); /* 0x4100B363: mov edx, dword ptr [esi + 0x30] */
    813     /* cmp edi, 2 */ /* 0x4100B366: cmp edi, 2 */
    814     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2);
    815     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    816     _flag_k = FK_CMP;
    817     MEM32(esi + 0x2C) = edx; /* 0x4100B369: mov dword ptr [esi + 0x2c], edx */
    818     SET_LO8(ebx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x4100B36C: sete bl */
    819     MEM32(esi + 0x30) = eax; /* 0x4100B36F: mov dword ptr [esi + 0x30], eax */
    820     edi = POP32_VAL(esp); /* 0x4100B372: pop edi */
    821     goto L_4100B392; /* 0x4100B373: jmp 0x4100b392 */
    822 L_4100B375:
    823     eax = MEM32(esi + 0x30); /* 0x4100B375: mov eax, dword ptr [esi + 0x30] */
    824     eax = MEM32(esi + eax * 4 + 0x34); /* 0x4100B378: mov eax, dword ptr [esi + eax*4 + 0x34] */
    825     /* test eax, eax */ /* 0x4100B37C: test eax, eax */
    826     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    827     _cf = 0;
    828     _flag_k = FK_TEST;
    829     if (TEST_Z(_flag_a, _flag_b)) goto L_4100B392; /* 0x4100B37E: je 0x4100b392 */
    830 L_4100B380:
    831     PUSH32(esp, eax); /* 0x4100B380: push eax */
    832     RECOMP_ICALL(MEM32(0x4100F1B4)); /* 0x4100B381: call dword ptr [0x4100f1b4] */
    833     RECOMP_FLAGS_IN();
    834     ecx = MEM32(esi + 0x30); /* 0x4100B387: mov ecx, dword ptr [esi + 0x30] */
    835     MEM32(esi + ecx * 4 + 0x34) = 0; /* 0x4100B38A: mov dword ptr [esi + ecx*4 + 0x34], 0 */
    836 L_4100B392:
    837     edx = MEM32(esi + 0x4C); /* 0x4100B392: mov edx, dword ptr [esi + 0x4c] */
    838     ecx = MEM32(esi + 0x18); /* 0x4100B395: mov ecx, dword ptr [esi + 0x18] */
    839     eax = MEM32(edx + 0x10); /* 0x4100B398: mov eax, dword ptr [edx + 0x10] */
    840     PUSH32(esp, eax); /* 0x4100B39B: push eax */
    841     RECOMP_ICALL(0x41005A60u); /* 0x4100B39C: call 0x41005a60 */ /* not lifted */
    842     RECOMP_FLAGS_IN();
    843     PUSH32(esp, 0); /* 0x4100B3A1: push 0 */
    844     PUSH32(esp, eax); /* 0x4100B3A3: push eax */
    845     eax = MEM32(esi); /* 0x4100B3A4: mov eax, dword ptr [esi] */
    846     PUSH32(esp, eax); /* 0x4100B3A6: push eax */
    847     RECOMP_ICALL(MEM32(0x4100F1AC)); /* 0x4100B3A7: call dword ptr [0x4100f1ac] */
    848     RECOMP_FLAGS_IN();
    849     ecx = MEM32(esi + 0x30); /* 0x4100B3AD: mov ecx, dword ptr [esi + 0x30] */
    850     MEM32(esi + ecx * 4 + 0x34) = eax; /* 0x4100B3B0: mov dword ptr [esi + ecx*4 + 0x34], eax */
    851     eax = MEM32(esi + 0x30); /* 0x4100B3B4: mov eax, dword ptr [esi + 0x30] */
    852     ecx = MEM32(esi + eax * 4 + 0x34); /* 0x4100B3B7: mov ecx, dword ptr [esi + eax*4 + 0x34] */
    853     /* test ecx, ecx */ /* 0x4100B3BB: test ecx, ecx */
    854     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    855     _cf = 0;
    856     _flag_k = FK_TEST;
    857     if (TEST_Z(_flag_a, _flag_b)) goto L_4100B40E; /* 0x4100B3BD: je 0x4100b40e */
    858 L_4100B3BF:
    859     edx = MEM32(esi + 0x4C); /* 0x4100B3BF: mov edx, dword ptr [esi + 0x4c] */
    860     ecx = MEM32(edx + 0x10); /* 0x4100B3C2: mov ecx, dword ptr [edx + 0x10] */
    861     MEM32(esi + eax * 4 + 0x40) = ecx; /* 0x4100B3C5: mov dword ptr [esi + eax*4 + 0x40], ecx */
    862     eax = MEM32(esi + 0x30); /* 0x4100B3C9: mov eax, dword ptr [esi + 0x30] */
    863     edx = MEM32(esi + 0x14); /* 0x4100B3CC: mov edx, dword ptr [esi + 0x14] */
    864     ecx = MEM32(esi + eax * 4 + 0x34); /* 0x4100B3CF: mov ecx, dword ptr [esi + eax*4 + 0x34] */
    865     PUSH32(esp, edx); /* 0x4100B3D3: push edx */
    866     PUSH32(esp, ecx); /* 0x4100B3D4: push ecx */
    867     RECOMP_ICALL(MEM32(0x4100F190)); /* 0x4100B3D5: call dword ptr [0x4100f190] */
    868     RECOMP_FLAGS_IN();
    869     edx = MEM32(esi + 0x4C); /* 0x4100B3DB: mov edx, dword ptr [esi + 0x4c] */
    870     ecx = MEM32(esi + 0x30); /* 0x4100B3DE: mov ecx, dword ptr [esi + 0x30] */
    871     eax = MEM32(edx + 0x2C); /* 0x4100B3E1: mov eax, dword ptr [edx + 0x2c] */
    872     edx = MEM32(esi + ecx * 4 + 0x34); /* 0x4100B3E4: mov edx, dword ptr [esi + ecx*4 + 0x34] */
    873     PUSH32(esp, eax); /* 0x4100B3E8: push eax */
    874     PUSH32(esp, edx); /* 0x4100B3E9: push edx */
    875     RECOMP_ICALL(MEM32(0x4100F184)); /* 0x4100B3EA: call dword ptr [0x4100f184] */
    876     RECOMP_FLAGS_IN();
    877     eax = MEM32(esi + 0x30); /* 0x4100B3F0: mov eax, dword ptr [esi + 0x30] */
    878     ecx = MEM32(esi + eax * 4 + 0x34); /* 0x4100B3F3: mov ecx, dword ptr [esi + eax*4 + 0x34] */
    879     PUSH32(esp, ecx); /* 0x4100B3F7: push ecx */
    880     RECOMP_ICALL(MEM32(0x4100F18C)); /* 0x4100B3F8: call dword ptr [0x4100f18c] */
    881     RECOMP_FLAGS_IN();
    882     edx = MEM32(esi + 0x30); /* 0x4100B3FE: mov edx, dword ptr [esi + 0x30] */
    883     PUSH32(esp, 1); /* 0x4100B401: push 1 */
    884     eax = MEM32(esi + edx * 4 + 0x34); /* 0x4100B403: mov eax, dword ptr [esi + edx*4 + 0x34] */
    885     PUSH32(esp, eax); /* 0x4100B407: push eax */
    886     RECOMP_ICALL(MEM32(0x4100F188)); /* 0x4100B408: call dword ptr [0x4100f188] */
    887     RECOMP_FLAGS_IN();
    888 L_4100B40E:
    889     MEM8(esi + 0x60) = (uint8_t)(1); /* 0x4100B40E: mov byte ptr [esi + 0x60], 1 */
    890     SET_LO8(eax, LO8(ebx)); /* 0x4100B412: mov al, bl */
    891     esi = POP32_VAL(esp); /* 0x4100B414: pop esi */
    892     ebx = POP32_VAL(esp); /* 0x4100B415: pop ebx */
    893     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100B416: ret  */
    894     RECOMP_REGS_OUT();
    895 }
    896 
    897 void sub_4100B420(void) {
    898     int _fpu_cmp = 0;
    899     uint32_t _cf = 0;
    900     int _df = 1;
    901     uint32_t _flag_k = FK_NONE;
    902     uint32_t _flag_a = 0, _flag_b = 0;
    903     uint32_t _itail_tgt = 0;
    904     RECOMP_REGS_LOCALS
    905     RECOMP_ENTER(0x4100B420u);
    906 
    907 L_4100B420:
    908     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    909     eax = 0; /* 0x4100B420: xor eax, eax */
    910     _cf = 0;
    911     _flag_k = FK_TEST;
    912     MEM32(ecx + 0x68) = eax; /* 0x4100B422: mov dword ptr [ecx + 0x68], eax */
    913     MEM32(ecx + 0x6C) = eax; /* 0x4100B425: mov dword ptr [ecx + 0x6c], eax */
    914     MEM32(ecx + 0xB8) = eax; /* 0x4100B428: mov dword ptr [ecx + 0xb8], eax */
    915     MEM32(ecx + 0xBC) = eax; /* 0x4100B42E: mov dword ptr [ecx + 0xbc], eax */
    916     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100B434: ret  */
    917     RECOMP_REGS_OUT();
    918 }
    919 
    920 void sub_4100B440(void) {
    921     int _fpu_cmp = 0;
    922     uint32_t _cf = 0;
    923     int _df = 1;
    924     uint32_t _flag_k = FK_NONE;
    925     uint32_t _flag_a = 0, _flag_b = 0;
    926     uint32_t _itail_tgt = 0;
    927     RECOMP_REGS_LOCALS
    928     RECOMP_ENTER(0x4100B440u);
    929 
    930 L_4100B440:
    931     PUSH32(esp, ebx); /* 0x4100B440: push ebx */
    932     PUSH32(esp, esi); /* 0x4100B441: push esi */
    933     esi = ecx; /* 0x4100B442: mov esi, ecx */
    934     PUSH32(esp, edi); /* 0x4100B444: push edi */
    935     eax = MEM32(esi + 0x4C); /* 0x4100B445: mov eax, dword ptr [esi + 0x4c] */
    936     edi = esi + 0x94; /* 0x4100B448: lea edi, [esi + 0x94] */
    937     ecx = MEM32(eax + 0x30); /* 0x4100B44E: mov ecx, dword ptr [eax + 0x30] */
    938     MEM32(esi + 0xBC) = ecx; /* 0x4100B451: mov dword ptr [esi + 0xbc], ecx */
    939     edx = MEM32(eax + 0x14); /* 0x4100B457: mov edx, dword ptr [eax + 0x14] */
    940     PUSH32(esp, edx); /* 0x4100B45A: push edx */
    941     ecx = edi; /* 0x4100B45B: mov ecx, edi */
    942     RECOMP_ICALL(0x41001B90u); /* 0x4100B45D: call 0x41001b90 */ /* not lifted */
    943     RECOMP_FLAGS_IN();
    944     eax = MEM32(esi + 0x4C); /* 0x4100B462: mov eax, dword ptr [esi + 0x4c] */
    945     ebx = esi + 0x70; /* 0x4100B465: lea ebx, [esi + 0x70] */
    946     ecx = MEM32(eax + 0x18); /* 0x4100B468: mov ecx, dword ptr [eax + 0x18] */
    947     PUSH32(esp, ecx); /* 0x4100B46B: push ecx */
    948     ecx = ebx; /* 0x4100B46C: mov ecx, ebx */
    949     RECOMP_ICALL(0x41001B90u); /* 0x4100B46E: call 0x41001b90 */ /* not lifted */
    950     RECOMP_FLAGS_IN();
    951     edx = MEM32(esi + 0xBC); /* 0x4100B473: mov edx, dword ptr [esi + 0xbc] */
    952     ecx = ebx; /* 0x4100B479: mov ecx, ebx */
    953     PUSH32(esp, edx); /* 0x4100B47B: push edx */
    954     RECOMP_ICALL(0x410019B0u); /* 0x4100B47C: call 0x410019b0 */ /* not lifted */
    955     RECOMP_FLAGS_IN();
    956     eax = MEM32(esi + 0xBC); /* 0x4100B481: mov eax, dword ptr [esi + 0xbc] */
    957     ecx = edi; /* 0x4100B487: mov ecx, edi */
    958     PUSH32(esp, eax); /* 0x4100B489: push eax */
    959     RECOMP_ICALL(0x410019B0u); /* 0x4100B48A: call 0x410019b0 */ /* not lifted */
    960     RECOMP_FLAGS_IN();
    961     ecx = MEM32(esi + 0x28); /* 0x4100B48F: mov ecx, dword ptr [esi + 0x28] */
    962     eax = MEM32(esi + 0x30); /* 0x4100B492: mov eax, dword ptr [esi + 0x30] */
    963     edx = MEM32(esi + ecx * 4 + 0x34); /* 0x4100B495: mov edx, dword ptr [esi + ecx*4 + 0x34] */
    964     MEM32(esi + 0x68) = edx; /* 0x4100B499: mov dword ptr [esi + 0x68], edx */
    965     ecx = MEM32(esi + eax * 4 + 0x34); /* 0x4100B49C: mov ecx, dword ptr [esi + eax*4 + 0x34] */
    966     edx = MEM32(esi + 0x4C); /* 0x4100B4A0: mov edx, dword ptr [esi + 0x4c] */
    967     MEM32(esi + 0x6C) = ecx; /* 0x4100B4A3: mov dword ptr [esi + 0x6c], ecx */
    968     ecx = esi; /* 0x4100B4A6: mov ecx, esi */
    969     eax = MEM32(edx + 0x2C); /* 0x4100B4A8: mov eax, dword ptr [edx + 0x2c] */
    970     PUSH32(esp, eax); /* 0x4100B4AB: push eax */
    971     MEM32(esi + 0xB8) = eax; /* 0x4100B4AC: mov dword ptr [esi + 0xb8], eax */
    972     RECOMP_ICALL(0x4100B4C0u); /* 0x4100B4B2: call 0x4100b4c0 */ /* not lifted */
    973     RECOMP_FLAGS_IN();
    974     edi = POP32_VAL(esp); /* 0x4100B4B7: pop edi */
    975     esi = POP32_VAL(esp); /* 0x4100B4B8: pop esi */
    976     ebx = POP32_VAL(esp); /* 0x4100B4B9: pop ebx */
    977     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100B4BA: ret  */
    978     RECOMP_REGS_OUT();
    979 }
    980 
    981 void sub_4100B4C0(void) {
    982     int _fpu_cmp = 0;
    983     uint32_t _cf = 0;
    984     int _df = 1;
    985     uint32_t _flag_k = FK_NONE;
    986     uint32_t _flag_a = 0, _flag_b = 0;
    987     uint32_t _itail_tgt = 0;
    988     RECOMP_REGS_LOCALS
    989     RECOMP_ENTER(0x4100B4C0u);
    990 
    991 L_4100B4C0:
    992     PUSH32(esp, ebp); /* 0x4100B4C0: push ebp */
    993     ebp = esp; /* 0x4100B4C1: mov ebp, esp */
    994     PUSH32(esp, esi); /* 0x4100B4C3: push esi */
    995     esi = ecx; /* 0x4100B4C4: mov esi, ecx */
    996     PUSH32(esp, edi); /* 0x4100B4C6: push edi */
    997     eax = MEM32(esi + 0xBC); /* 0x4100B4C7: mov eax, dword ptr [esi + 0xbc] */
    998     /* test eax, eax */ /* 0x4100B4CD: test eax, eax */
    999     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1000     _cf = 0;
   1001     _flag_k = FK_TEST;
   1002     if (TEST_Z(_flag_a, _flag_b)) goto L_4100B596; /* 0x4100B4CF: jbe 0x4100b596 */
   1003 L_4100B4D5:
   1004     edi = MEM32(ebp + 0x8); /* 0x4100B4D5: mov edi, dword ptr [ebp + 8] */
   1005     ecx = MEM32(esi + 0xB8); /* 0x4100B4D8: mov ecx, dword ptr [esi + 0xb8] */
   1006     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   1007     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1008     edi = edi - ecx; /* 0x4100B4DE: sub edi, ecx */
   1009     _flag_k = FK_CMP;
   1010     if (/* sub result */ CMP_S(_flag_a, _flag_b)) goto L_4100B596; /* 0x4100B4E0: js 0x4100b596 */
   1011 L_4100B4E6:
   1012     /* cmp edi, eax */ /* 0x4100B4E6: cmp edi, eax */
   1013     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1014     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1015     _flag_k = FK_CMP;
   1016     if (CMP_AE(_flag_a, _flag_b)) goto L_4100B58C; /* 0x4100B4E8: jae 0x4100b58c */
   1017 L_4100B4EE:
   1018     eax = edi; /* 0x4100B4EE: mov eax, edi */
   1019     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1020     edx = 0; /* 0x4100B4F0: xor edx, edx */
   1021     _cf = 0;
   1022     _flag_k = FK_TEST;
   1023     { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)MEM32(0x41014090); /* 0x4100B4F2: div dword ptr [0x41014090] */
   1024       if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); }
   1025       else { eax = 0; edx = 0; } }
   1026     ecx = MEM32(esi + 0x8C); /* 0x4100B4F8: mov ecx, dword ptr [esi + 0x8c] */
   1027     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1028     ecx = ecx - 1; /* 0x4100B4FE: dec ecx */
   1029     _flag_k = FK_DEC;
   1030     /* cmp eax, ecx */ /* 0x4100B4FF: cmp eax, ecx */
   1031     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1032     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1033     _flag_k = FK_CMP;
   1034     edx = eax; /* 0x4100B501: mov edx, eax */
   1035     if (CMP_L(_flag_a, _flag_b)) goto L_4100B507; /* 0x4100B503: jl 0x4100b507 */
   1036 L_4100B505:
   1037     edx = ecx; /* 0x4100B505: mov edx, ecx */
   1038 L_4100B507:
   1039     /* test edx, edx */ /* 0x4100B507: test edx, edx */
   1040     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   1041     _cf = 0;
   1042     _flag_k = FK_TEST;
   1043     if (TEST_NS(_flag_a, _flag_b)) goto L_4100B50F; /* 0x4100B509: jge 0x4100b50f */
   1044 L_4100B50B:
   1045     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1046     eax = 0; /* 0x4100B50B: xor eax, eax */
   1047     _cf = 0;
   1048     _flag_k = FK_TEST;
   1049     goto L_4100B515; /* 0x4100B50D: jmp 0x4100b515 */
   1050 L_4100B50F:
   1051     /* cmp eax, ecx */ /* 0x4100B50F: cmp eax, ecx */
   1052     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1053     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1054     _flag_k = FK_CMP;
   1055     if (CMP_L(_flag_a, _flag_b)) goto L_4100B515; /* 0x4100B511: jl 0x4100b515 */
   1056 L_4100B513:
   1057     eax = ecx; /* 0x4100B513: mov eax, ecx */
   1058 L_4100B515:
   1059     ecx = MEM32(esi + 0x88); /* 0x4100B515: mov ecx, dword ptr [esi + 0x88] */
   1060     PUSH32(esp, ebx); /* 0x4100B51B: push ebx */
   1061     fp_push(*(float*)&MEM32(ecx + eax * 4)); /* 0x4100B51C: fld dword ptr [ecx + eax*4] */
   1062     _st[0] *= (double)*(float*)ADDR(esi + 0x10); /* 0x4100B51F: fmul dword ptr [esi + 0x10] */
   1063     _st[0] *= (double)*(float*)ADDR(esi + 0xC); /* 0x4100B522: fmul dword ptr [esi + 0xc] */
   1064     _st[0] *= (double)*(float*)ADDR(0x4100F25C); /* 0x4100B525: fmul dword ptr [0x4100f25c] */
   1065     RECOMP_ICALL(0x4100DB80u); /* 0x4100B52B: call 0x4100db80 */ /* not lifted */
   1066     RECOMP_FLAGS_IN();
   1067     edx = MEM32(esi + 0x6C); /* 0x4100B530: mov edx, dword ptr [esi + 0x6c] */
   1068     ebx = MEM32(0x4100F190); /* 0x4100B533: mov ebx, dword ptr [0x4100f190] */
   1069     PUSH32(esp, eax); /* 0x4100B539: push eax */
   1070     PUSH32(esp, edx); /* 0x4100B53A: push edx */
   1071     RECOMP_ICALL(ebx); /* 0x4100B53B: call ebx */
   1072     RECOMP_FLAGS_IN();
   1073     eax = edi; /* 0x4100B53D: mov eax, edi */
   1074     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1075     edx = 0; /* 0x4100B53F: xor edx, edx */
   1076     _cf = 0;
   1077     _flag_k = FK_TEST;
   1078     { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)MEM32(0x41014090); /* 0x4100B541: div dword ptr [0x41014090] */
   1079       if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); }
   1080       else { eax = 0; edx = 0; } }
   1081     ecx = MEM32(esi + 0xB0); /* 0x4100B547: mov ecx, dword ptr [esi + 0xb0] */
   1082     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1083     ecx = ecx - 1; /* 0x4100B54D: dec ecx */
   1084     _flag_k = FK_DEC;
   1085     /* cmp eax, ecx */ /* 0x4100B54E: cmp eax, ecx */
   1086     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1087     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1088     _flag_k = FK_CMP;
   1089     edx = eax; /* 0x4100B550: mov edx, eax */
   1090     if (CMP_L(_flag_a, _flag_b)) goto L_4100B556; /* 0x4100B552: jl 0x4100b556 */
   1091 L_4100B554:
   1092     edx = ecx; /* 0x4100B554: mov edx, ecx */
   1093 L_4100B556:
   1094     /* test edx, edx */ /* 0x4100B556: test edx, edx */
   1095     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   1096     _cf = 0;
   1097     _flag_k = FK_TEST;
   1098     if (TEST_NS(_flag_a, _flag_b)) goto L_4100B55E; /* 0x4100B558: jge 0x4100b55e */
   1099 L_4100B55A:
   1100     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1101     eax = 0; /* 0x4100B55A: xor eax, eax */
   1102     _cf = 0;
   1103     _flag_k = FK_TEST;
   1104     goto L_4100B564; /* 0x4100B55C: jmp 0x4100b564 */
   1105 L_4100B55E:
   1106     /* cmp eax, ecx */ /* 0x4100B55E: cmp eax, ecx */
   1107     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1108     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1109     _flag_k = FK_CMP;
   1110     if (CMP_L(_flag_a, _flag_b)) goto L_4100B564; /* 0x4100B560: jl 0x4100b564 */
   1111 L_4100B562:
   1112     eax = ecx; /* 0x4100B562: mov eax, ecx */
   1113 L_4100B564:
   1114     ecx = MEM32(esi + 0xAC); /* 0x4100B564: mov ecx, dword ptr [esi + 0xac] */
   1115     fp_push(*(float*)&MEM32(ecx + eax * 4)); /* 0x4100B56A: fld dword ptr [ecx + eax*4] */
   1116     _st[0] *= (double)*(float*)ADDR(esi + 0x10); /* 0x4100B56D: fmul dword ptr [esi + 0x10] */
   1117     _st[0] *= (double)*(float*)ADDR(esi + 0xC); /* 0x4100B570: fmul dword ptr [esi + 0xc] */
   1118     _st[0] *= (double)*(float*)ADDR(0x4100F25C); /* 0x4100B573: fmul dword ptr [0x4100f25c] */
   1119     RECOMP_ICALL(0x4100DB80u); /* 0x4100B579: call 0x4100db80 */ /* not lifted */
   1120     RECOMP_FLAGS_IN();
   1121     edx = MEM32(esi + 0x68); /* 0x4100B57E: mov edx, dword ptr [esi + 0x68] */
   1122     PUSH32(esp, eax); /* 0x4100B581: push eax */
   1123     PUSH32(esp, edx); /* 0x4100B582: push edx */
   1124     RECOMP_ICALL(ebx); /* 0x4100B583: call ebx */
   1125     RECOMP_FLAGS_IN();
   1126     ebx = POP32_VAL(esp); /* 0x4100B585: pop ebx */
   1127     edi = POP32_VAL(esp); /* 0x4100B586: pop edi */
   1128     esi = POP32_VAL(esp); /* 0x4100B587: pop esi */
   1129     ebp = POP32_VAL(esp); /* 0x4100B588: pop ebp */
   1130     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100B589: ret 4 */
   1131 L_4100B58C:
   1132     MEM32(esi + 0xBC) = 0; /* 0x4100B58C: mov dword ptr [esi + 0xbc], 0 */
   1133 L_4100B596:
   1134     edi = POP32_VAL(esp); /* 0x4100B596: pop edi */
   1135     esi = POP32_VAL(esp); /* 0x4100B597: pop esi */
   1136     ebp = POP32_VAL(esp); /* 0x4100B598: pop ebp */
   1137     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100B599: ret 4 */
   1138     RECOMP_REGS_OUT();
   1139 }
   1140 
   1141 void sub_4100B5A0(void) {
   1142     int _fpu_cmp = 0;
   1143     uint32_t _cf = 0;
   1144     int _df = 1;
   1145     uint32_t _flag_k = FK_NONE;
   1146     uint32_t _flag_a = 0, _flag_b = 0;
   1147     uint32_t _itail_tgt = 0;
   1148     RECOMP_REGS_LOCALS
   1149     RECOMP_ENTER(0x4100B5A0u);
   1150 
   1151 L_4100B5A0:
   1152     PUSH32(esp, ebp); /* 0x4100B5A0: push ebp */
   1153     ebp = esp; /* 0x4100B5A1: mov ebp, esp */
   1154     PUSH32(esp, 0xFFFFFFFFu); /* 0x4100B5A3: push -1 */
   1155     PUSH32(esp, 0x4100E772u); /* 0x4100B5A5: push 0x4100e772 */
   1156     eax = MEM32(FS_BASE + (0)); /* 0x4100B5AA: mov eax, dword ptr fs:[0] */
   1157     PUSH32(esp, eax); /* 0x4100B5B0: push eax */
   1158     MEM32(FS_BASE + (0)) = esp; /* 0x4100B5B1: mov dword ptr fs:[0], esp */
   1159     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x4Cu);
   1160     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1161     esp = esp - 0x4Cu; /* 0x4100B5B8: sub esp, 0x4c */
   1162     _flag_k = FK_CMP;
   1163     PUSH32(esp, ebx); /* 0x4100B5BB: push ebx */
   1164     PUSH32(esp, esi); /* 0x4100B5BC: push esi */
   1165     esi = ecx; /* 0x4100B5BD: mov esi, ecx */
   1166     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1167     ebx = 0; /* 0x4100B5BF: xor ebx, ebx */
   1168     _cf = 0;
   1169     _flag_k = FK_TEST;
   1170     /* cmp MEM8(esi + 0x62), LO8(ebx) */ /* 0x4100B5C1: cmp byte ptr [esi + 0x62], bl */
   1171     _flag_a = (uint32_t)(MEM8(esi + 0x62)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   1172     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1173     _flag_k = FK_NARROW(FK_CMP, 24);
   1174     if (CMP_NE(_flag_a, _flag_b)) goto L_4100B88B; /* 0x4100B5C4: jne 0x4100b88b */
   1175 L_4100B5CA:
   1176     eax = MEM32(esi + 0x28); /* 0x4100B5CA: mov eax, dword ptr [esi + 0x28] */
   1177     ecx = MEM32(esi + eax * 4 + 0x34); /* 0x4100B5CD: mov ecx, dword ptr [esi + eax*4 + 0x34] */
   1178     eax = esi + eax * 4 + 0x34; /* 0x4100B5D1: lea eax, [esi + eax*4 + 0x34] */
   1179     /* cmp ecx, ebx */ /* 0x4100B5D5: cmp ecx, ebx */
   1180     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   1181     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1182     _flag_k = FK_CMP;
   1183     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B88B; /* 0x4100B5D7: je 0x4100b88b */
   1184 L_4100B5DD:
   1185     eax = MEM32(eax); /* 0x4100B5DD: mov eax, dword ptr [eax] */
   1186     ecx = ebp + (-0x14); /* 0x4100B5DF: lea ecx, [ebp - 0x14] */
   1187     PUSH32(esp, edi); /* 0x4100B5E2: push edi */
   1188     edx = ebp + (-0x20); /* 0x4100B5E3: lea edx, [ebp - 0x20] */
   1189     PUSH32(esp, ecx); /* 0x4100B5E6: push ecx */
   1190     PUSH32(esp, edx); /* 0x4100B5E7: push edx */
   1191     PUSH32(esp, eax); /* 0x4100B5E8: push eax */
   1192     RECOMP_ICALL(MEM32(0x4100F1B0)); /* 0x4100B5E9: call dword ptr [0x4100f1b0] */
   1193     RECOMP_FLAGS_IN();
   1194     ecx = MEM32(ebp + (-0x14)); /* 0x4100B5EF: mov ecx, dword ptr [ebp - 0x14] */
   1195     PUSH32(esp, ecx); /* 0x4100B5F2: push ecx */
   1196     ecx = esi; /* 0x4100B5F3: mov ecx, esi */
   1197     RECOMP_ICALL(0x4100B4C0u); /* 0x4100B5F5: call 0x4100b4c0 */ /* not lifted */
   1198     RECOMP_FLAGS_IN();
   1199     eax = MEM32(esi + 0x28); /* 0x4100B5FA: mov eax, dword ptr [esi + 0x28] */
   1200     edx = MEM32(ebp + (-0x14)); /* 0x4100B5FD: mov edx, dword ptr [ebp - 0x14] */
   1201     PUSH32(esp, edx); /* 0x4100B600: push edx */
   1202     ecx = MEM32(esi + eax * 4 + 0x40); /* 0x4100B601: mov ecx, dword ptr [esi + eax*4 + 0x40] */
   1203     PUSH32(esp, ecx); /* 0x4100B605: push ecx */
   1204     ecx = MEM32(esi + 0x1C); /* 0x4100B606: mov ecx, dword ptr [esi + 0x1c] */
   1205     RECOMP_ICALL(0x4100A140u); /* 0x4100B609: call 0x4100a140 */ /* not lifted */
   1206     RECOMP_FLAGS_IN();
   1207     MEM32(ebp + (-0x18)) = eax; /* 0x4100B60E: mov dword ptr [ebp - 0x18], eax */
   1208     edi = 0x41014494u; /* 0x4100B611: mov edi, 0x41014494 */
   1209     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   1210     ecx = ecx | 0xFFFFFFFFu; /* 0x4100B616: or ecx, 0xffffffff */
   1211     _cf = 0;
   1212     _flag_k = FK_TEST;
   1213     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1214     eax = 0; /* 0x4100B619: xor eax, eax */
   1215     _cf = 0;
   1216     _flag_k = FK_TEST;
   1217     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x4100B61B: repne scasb al, byte ptr es:[edi] */
   1218     SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x4100B61D: mov dl, byte ptr [ebp - 0xd] */
   1219     MEM32(ebp + (-0x2C)) = ebx; /* 0x4100B620: mov dword ptr [ebp - 0x2c], ebx */
   1220     ecx = ~ecx; /* 0x4100B623: not ecx */
   1221     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1222     ecx = ecx - 1; /* 0x4100B625: dec ecx */
   1223     _flag_k = FK_DEC;
   1224     MEM8(ebp + (-0x30)) = (uint8_t)(LO8(edx)); /* 0x4100B626: mov byte ptr [ebp - 0x30], dl */
   1225     PUSH32(esp, ecx); /* 0x4100B629: push ecx */
   1226     PUSH32(esp, 0x41014494u); /* 0x4100B62A: push 0x41014494 */
   1227     ecx = ebp + (-0x30); /* 0x4100B62F: lea ecx, [ebp - 0x30] */
   1228     MEM32(ebp + (-0x28)) = ebx; /* 0x4100B632: mov dword ptr [ebp - 0x28], ebx */
   1229     MEM32(ebp + (-0x24)) = ebx; /* 0x4100B635: mov dword ptr [ebp - 0x24], ebx */
   1230     RECOMP_ICALL(MEM32(0x4100F028)); /* 0x4100B638: call dword ptr [0x4100f028] */
   1231     RECOMP_FLAGS_IN();
   1232     edi = MEM32(ebp + (-0x18)); /* 0x4100B63E: mov edi, dword ptr [ebp - 0x18] */
   1233     MEM32(ebp + (-0x4)) = ebx; /* 0x4100B641: mov dword ptr [ebp - 4], ebx */
   1234     /* cmp edi, ebx */ /* 0x4100B644: cmp edi, ebx */
   1235     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   1236     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1237     _flag_k = FK_CMP;
   1238     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B68C; /* 0x4100B646: je 0x4100b68c */
   1239 L_4100B648:
   1240     ecx = MEM32(edi + 0x10); /* 0x4100B648: mov ecx, dword ptr [edi + 0x10] */
   1241     eax = ebp + (-0x30); /* 0x4100B64B: lea eax, [ebp - 0x30] */
   1242     PUSH32(esp, eax); /* 0x4100B64E: push eax */
   1243     RECOMP_ICALL(0x410077E0u); /* 0x4100B64F: call 0x410077e0 */ /* not lifted */
   1244     RECOMP_FLAGS_IN();
   1245     /* cmp edi, MEM32(esi + 0x4C) */ /* 0x4100B654: cmp edi, dword ptr [esi + 0x4c] */
   1246     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x4C));
   1247     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1248     _flag_k = FK_CMP;
   1249     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B68C; /* 0x4100B657: je 0x4100b68c */
   1250 L_4100B659:
   1251     eax = MEM32(esi + 0xC0); /* 0x4100B659: mov eax, dword ptr [esi + 0xc0] */
   1252     MEM8(esi + 0x60) = (uint8_t)(LO8(ebx)); /* 0x4100B65F: mov byte ptr [esi + 0x60], bl */
   1253     /* cmp eax, ebx */ /* 0x4100B662: cmp eax, ebx */
   1254     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1255     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1256     _flag_k = FK_CMP;
   1257     MEM32(esi + 0x4C) = edi; /* 0x4100B664: mov dword ptr [esi + 0x4c], edi */
   1258     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B68C; /* 0x4100B667: je 0x4100b68c */
   1259 L_4100B669:
   1260     edx = MEM32(esi + 0xC4); /* 0x4100B669: mov edx, dword ptr [esi + 0xc4] */
   1261     ecx = ebp + (-0x44); /* 0x4100B66F: lea ecx, [ebp - 0x44] */
   1262     PUSH32(esp, ecx); /* 0x4100B672: push ecx */
   1263     PUSH32(esp, edx); /* 0x4100B673: push edx */
   1264     MEM32(ebp + (-0x44)) = 4; /* 0x4100B674: mov dword ptr [ebp - 0x44], 4 */
   1265     MEM32(ebp + (-0x40)) = ebx; /* 0x4100B67B: mov dword ptr [ebp - 0x40], ebx */
   1266     MEM32(ebp + (-0x3C)) = ebx; /* 0x4100B67E: mov dword ptr [ebp - 0x3c], ebx */
   1267     MEM32(ebp + (-0x38)) = edi; /* 0x4100B681: mov dword ptr [ebp - 0x38], edi */
   1268     MEM32(ebp + (-0x34)) = ebx; /* 0x4100B684: mov dword ptr [ebp - 0x34], ebx */
   1269     RECOMP_ICALL(eax); /* 0x4100B687: call eax */
   1270     RECOMP_FLAGS_IN();
   1271     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1272     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1273     esp = esp + 8; /* 0x4100B689: add esp, 8 */
   1274     _flag_k = FK_ADD;
   1275 L_4100B68C:
   1276     eax = MEM32(esi + 0x4C); /* 0x4100B68C: mov eax, dword ptr [esi + 0x4c] */
   1277     /* cmp eax, ebx */ /* 0x4100B68F: cmp eax, ebx */
   1278     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1279     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1280     _flag_k = FK_CMP;
   1281     eax = MEM32(esi + 0xC8); /* 0x4100B691: mov eax, dword ptr [esi + 0xc8] */
   1282     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B82C; /* 0x4100B697: je 0x4100b82c */
   1283 L_4100B69D:
   1284     /* cmp eax, ebx */ /* 0x4100B69D: cmp eax, ebx */
   1285     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1286     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1287     _flag_k = FK_CMP;
   1288     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B6B1; /* 0x4100B69F: je 0x4100b6b1 */
   1289 L_4100B6A1:
   1290     PUSH32(esp, eax); /* 0x4100B6A1: push eax */
   1291     RECOMP_ICALL(MEM32(0x4100F128)); /* 0x4100B6A2: call dword ptr [0x4100f128] */
   1292     RECOMP_FLAGS_IN();
   1293     MEM32(esi + 0xC8) = ebx; /* 0x4100B6A8: mov dword ptr [esi + 0xc8], ebx */
   1294     MEM8(esi + 0x61) = (uint8_t)(LO8(ebx)); /* 0x4100B6AE: mov byte ptr [esi + 0x61], bl */
   1295 L_4100B6B1:
   1296     SET_LO8(ecx, MEM8(esi + 0x60)); /* 0x4100B6B1: mov cl, byte ptr [esi + 0x60] */
   1297     edx = MEM32(ebp + (-0x14)); /* 0x4100B6B4: mov edx, dword ptr [ebp - 0x14] */
   1298     /* cmp LO8(ecx), LO8(ebx) */ /* 0x4100B6B7: cmp cl, bl */
   1299     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   1300     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1301     _flag_k = FK_NARROW(FK_CMP, 24);
   1302     if (CMP_NE(_flag_a, _flag_b)) goto L_4100B71B; /* 0x4100B6B9: jne 0x4100b71b */
   1303 L_4100B6BB:
   1304     eax = MEM32(esi + 0x4C); /* 0x4100B6BB: mov eax, dword ptr [esi + 0x4c] */
   1305     edi = MEM32(esi + 0x8); /* 0x4100B6BE: mov edi, dword ptr [esi + 8] */
   1306     eax = MEM32(eax + 0x24); /* 0x4100B6C1: mov eax, dword ptr [eax + 0x24] */
   1307     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1308     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1309     eax = eax - edi; /* 0x4100B6C4: sub eax, edi */
   1310     _flag_k = FK_CMP;
   1311     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xC8u);
   1312     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1313     eax = eax - 0xC8u; /* 0x4100B6C6: sub eax, 0xc8 */
   1314     _flag_k = FK_CMP;
   1315     /* cmp edx, eax */ /* 0x4100B6CB: cmp edx, eax */
   1316     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1317     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1318     _flag_k = FK_CMP;
   1319     if (CMP_B(_flag_a, _flag_b)) goto L_4100B71B; /* 0x4100B6CD: jb 0x4100b71b */
   1320 L_4100B6CF:
   1321     ecx = esi; /* 0x4100B6CF: mov ecx, esi */
   1322     RECOMP_ICALL(0x4100B310u); /* 0x4100B6D1: call 0x4100b310 */ /* not lifted */
   1323     RECOMP_FLAGS_IN();
   1324     /* test LO8(eax), LO8(eax) */ /* 0x4100B6D6: test al, al */
   1325     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1326     _cf = 0;
   1327     _flag_k = FK_NARROW(FK_TEST, 24);
   1328     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100B859; /* 0x4100B6D8: jne 0x4100b859 */
   1329 L_4100B6DE:
   1330     eax = MEM32(esi + 0xC0); /* 0x4100B6DE: mov eax, dword ptr [esi + 0xc0] */
   1331     /* cmp eax, ebx */ /* 0x4100B6E4: cmp eax, ebx */
   1332     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1333     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1334     _flag_k = FK_CMP;
   1335     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B859; /* 0x4100B6E6: je 0x4100b859 */
   1336 L_4100B6EC:
   1337     ecx = MEM32(esi + 0x4C); /* 0x4100B6EC: mov ecx, dword ptr [esi + 0x4c] */
   1338     edx = ebp + (-0x44); /* 0x4100B6EF: lea edx, [ebp - 0x44] */
   1339     MEM32(ebp + (-0x38)) = ecx; /* 0x4100B6F2: mov dword ptr [ebp - 0x38], ecx */
   1340     ecx = MEM32(esi + 0xC4); /* 0x4100B6F5: mov ecx, dword ptr [esi + 0xc4] */
   1341     PUSH32(esp, edx); /* 0x4100B6FB: push edx */
   1342     PUSH32(esp, ecx); /* 0x4100B6FC: push ecx */
   1343     MEM32(ebp + (-0x44)) = 0xCu; /* 0x4100B6FD: mov dword ptr [ebp - 0x44], 0xc */
   1344     MEM32(ebp + (-0x40)) = ebx; /* 0x4100B704: mov dword ptr [ebp - 0x40], ebx */
   1345     MEM32(ebp + (-0x3C)) = ebx; /* 0x4100B707: mov dword ptr [ebp - 0x3c], ebx */
   1346     MEM32(ebp + (-0x34)) = 1; /* 0x4100B70A: mov dword ptr [ebp - 0x34], 1 */
   1347     RECOMP_ICALL(eax); /* 0x4100B711: call eax */
   1348     RECOMP_FLAGS_IN();
   1349     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1350     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1351     esp = esp + 8; /* 0x4100B713: add esp, 8 */
   1352     _flag_k = FK_ADD;
   1353     goto L_4100B859; /* 0x4100B716: jmp 0x4100b859 */
   1354 L_4100B71B:
   1355     /* cmp LO8(ecx), 1 */ /* 0x4100B71B: cmp cl, 1 */
   1356     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24;
   1357     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1358     _flag_k = FK_NARROW(FK_CMP, 24);
   1359     if (CMP_NE(_flag_a, _flag_b)) goto L_4100B859; /* 0x4100B71E: jne 0x4100b859 */
   1360 L_4100B724:
   1361     eax = MEM32(esi + 0x4C); /* 0x4100B724: mov eax, dword ptr [esi + 0x4c] */
   1362     edi = MEM32(esi + 0x8); /* 0x4100B727: mov edi, dword ptr [esi + 8] */
   1363     eax = MEM32(eax + 0x24); /* 0x4100B72A: mov eax, dword ptr [eax + 0x24] */
   1364     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1365     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1366     eax = eax - edi; /* 0x4100B72D: sub eax, edi */
   1367     _flag_k = FK_CMP;
   1368     /* cmp edx, eax */ /* 0x4100B72F: cmp edx, eax */
   1369     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1370     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1371     _flag_k = FK_CMP;
   1372     if (CMP_B(_flag_a, _flag_b)) goto L_4100B859; /* 0x4100B731: jb 0x4100b859 */
   1373 L_4100B737:
   1374     ecx = esi; /* 0x4100B737: mov ecx, esi */
   1375     MEM32(ebp + (-0x1C)) = ebx; /* 0x4100B739: mov dword ptr [ebp - 0x1c], ebx */
   1376     RECOMP_ICALL(0x4100B440u); /* 0x4100B73C: call 0x4100b440 */ /* not lifted */
   1377     RECOMP_FLAGS_IN();
   1378     SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x4100B741: mov cl, byte ptr [ebp - 0xd] */
   1379     MEM32(ebp + (-0x3C)) = ebx; /* 0x4100B744: mov dword ptr [ebp - 0x3c], ebx */
   1380     MEM8(ebp + (-0x40)) = (uint8_t)(LO8(ecx)); /* 0x4100B747: mov byte ptr [ebp - 0x40], cl */
   1381     MEM32(ebp + (-0x38)) = ebx; /* 0x4100B74A: mov dword ptr [ebp - 0x38], ebx */
   1382     MEM32(ebp + (-0x34)) = ebx; /* 0x4100B74D: mov dword ptr [ebp - 0x34], ebx */
   1383     eax = MEM32(esi + 0x4C); /* 0x4100B750: mov eax, dword ptr [esi + 0x4c] */
   1384     edx = ebp + (-0x40); /* 0x4100B753: lea edx, [ebp - 0x40] */
   1385     PUSH32(esp, edx); /* 0x4100B756: push edx */
   1386     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x4100B757: mov byte ptr [ebp - 4], 1 */
   1387     ecx = MEM32(eax + 0x10); /* 0x4100B75B: mov ecx, dword ptr [eax + 0x10] */
   1388     RECOMP_ICALL(0x410077E0u); /* 0x4100B75E: call 0x410077e0 */ /* not lifted */
   1389     RECOMP_FLAGS_IN();
   1390     ecx = MEM32(esi + 0x30); /* 0x4100B763: mov ecx, dword ptr [esi + 0x30] */
   1391     eax = MEM32(esi + 0x28); /* 0x4100B766: mov eax, dword ptr [esi + 0x28] */
   1392     edx = ecx; /* 0x4100B769: mov edx, ecx */
   1393     MEM32(esi + 0x28) = ecx; /* 0x4100B76B: mov dword ptr [esi + 0x28], ecx */
   1394     MEM32(esi + 0x30) = eax; /* 0x4100B76E: mov dword ptr [esi + 0x30], eax */
   1395     edi = 2; /* 0x4100B771: mov edi, 2 */
   1396     eax = MEM32(esi + edx * 4 + 0x34); /* 0x4100B776: mov eax, dword ptr [esi + edx*4 + 0x34] */
   1397     /* cmp eax, ebx */ /* 0x4100B77A: cmp eax, ebx */
   1398     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1399     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1400     _flag_k = FK_CMP;
   1401     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B79A; /* 0x4100B77C: je 0x4100b79a */
   1402 L_4100B77E:
   1403     PUSH32(esp, eax); /* 0x4100B77E: push eax */
   1404     RECOMP_ICALL(MEM32(0x4100F18C)); /* 0x4100B77F: call dword ptr [0x4100f18c] */
   1405     RECOMP_FLAGS_IN();
   1406     ecx = MEM32(esi + 0x30); /* 0x4100B785: mov ecx, dword ptr [esi + 0x30] */
   1407     eax = ebp + (-0x1C); /* 0x4100B788: lea eax, [ebp - 0x1c] */
   1408     PUSH32(esp, eax); /* 0x4100B78B: push eax */
   1409     PUSH32(esp, ebx); /* 0x4100B78C: push ebx */
   1410     edx = MEM32(esi + ecx * 4 + 0x34); /* 0x4100B78D: mov edx, dword ptr [esi + ecx*4 + 0x34] */
   1411     PUSH32(esp, edx); /* 0x4100B791: push edx */
   1412     RECOMP_ICALL(MEM32(0x4100F1B0)); /* 0x4100B792: call dword ptr [0x4100f1b0] */
   1413     RECOMP_FLAGS_IN();
   1414     goto L_4100B7D4; /* 0x4100B798: jmp 0x4100b7d4 */
   1415 L_4100B79A:
   1416     eax = MEM32(esi + 0x20); /* 0x4100B79A: mov eax, dword ptr [esi + 0x20] */
   1417     MEM8(esi + 0x62) = (uint8_t)(1); /* 0x4100B79D: mov byte ptr [esi + 0x62], 1 */
   1418     MEM8(eax + 0x6) = (uint8_t)(LO8(ebx)); /* 0x4100B7A1: mov byte ptr [eax + 6], bl */
   1419     eax = MEM32(esi + 0xC0); /* 0x4100B7A4: mov eax, dword ptr [esi + 0xc0] */
   1420     /* cmp eax, ebx */ /* 0x4100B7AA: cmp eax, ebx */
   1421     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1422     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1423     _flag_k = FK_CMP;
   1424     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B7D4; /* 0x4100B7AC: je 0x4100b7d4 */
   1425 L_4100B7AE:
   1426     ecx = MEM32(esi + 0x4C); /* 0x4100B7AE: mov ecx, dword ptr [esi + 0x4c] */
   1427     edx = ebp + (-0x58); /* 0x4100B7B1: lea edx, [ebp - 0x58] */
   1428     MEM32(ebp + (-0x4C)) = ecx; /* 0x4100B7B4: mov dword ptr [ebp - 0x4c], ecx */
   1429     ecx = MEM32(esi + 0xC4); /* 0x4100B7B7: mov ecx, dword ptr [esi + 0xc4] */
   1430     PUSH32(esp, edx); /* 0x4100B7BD: push edx */
   1431     PUSH32(esp, ecx); /* 0x4100B7BE: push ecx */
   1432     MEM32(ebp + (-0x58)) = 0xDu; /* 0x4100B7BF: mov dword ptr [ebp - 0x58], 0xd */
   1433     MEM32(ebp + (-0x54)) = edi; /* 0x4100B7C6: mov dword ptr [ebp - 0x54], edi */
   1434     MEM32(ebp + (-0x50)) = ebx; /* 0x4100B7C9: mov dword ptr [ebp - 0x50], ebx */
   1435     MEM32(ebp + (-0x48)) = edi; /* 0x4100B7CC: mov dword ptr [ebp - 0x48], edi */
   1436     RECOMP_ICALL(eax); /* 0x4100B7CF: call eax */
   1437     RECOMP_FLAGS_IN();
   1438     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1439     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1440     esp = esp + 8; /* 0x4100B7D1: add esp, 8 */
   1441     _flag_k = FK_ADD;
   1442 L_4100B7D4:
   1443     eax = MEM32(esi + 0xC0); /* 0x4100B7D4: mov eax, dword ptr [esi + 0xc0] */
   1444     MEM32(esi + 0x4C) = ebx; /* 0x4100B7DA: mov dword ptr [esi + 0x4c], ebx */
   1445     /* cmp eax, ebx */ /* 0x4100B7DD: cmp eax, ebx */
   1446     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1447     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1448     _flag_k = FK_CMP;
   1449     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B807; /* 0x4100B7DF: je 0x4100b807 */
   1450 L_4100B7E1:
   1451     edx = MEM32(esi + 0x28); /* 0x4100B7E1: mov edx, dword ptr [esi + 0x28] */
   1452     MEM32(ebp + (-0x58)) = edi; /* 0x4100B7E4: mov dword ptr [ebp - 0x58], edi */
   1453     MEM32(ebp + (-0x54)) = ebx; /* 0x4100B7E7: mov dword ptr [ebp - 0x54], ebx */
   1454     ecx = MEM32(esi + edx * 4 + 0x40); /* 0x4100B7EA: mov ecx, dword ptr [esi + edx*4 + 0x40] */
   1455     edx = ebp + (-0x58); /* 0x4100B7EE: lea edx, [ebp - 0x58] */
   1456     MEM32(ebp + (-0x50)) = ecx; /* 0x4100B7F1: mov dword ptr [ebp - 0x50], ecx */
   1457     ecx = MEM32(esi + 0xC4); /* 0x4100B7F4: mov ecx, dword ptr [esi + 0xc4] */
   1458     PUSH32(esp, edx); /* 0x4100B7FA: push edx */
   1459     PUSH32(esp, ecx); /* 0x4100B7FB: push ecx */
   1460     MEM32(ebp + (-0x4C)) = ebx; /* 0x4100B7FC: mov dword ptr [ebp - 0x4c], ebx */
   1461     MEM32(ebp + (-0x48)) = ebx; /* 0x4100B7FF: mov dword ptr [ebp - 0x48], ebx */
   1462     RECOMP_ICALL(eax); /* 0x4100B802: call eax */
   1463     RECOMP_FLAGS_IN();
   1464     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1465     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1466     esp = esp + 8; /* 0x4100B804: add esp, 8 */
   1467     _flag_k = FK_ADD;
   1468 L_4100B807:
   1469     ecx = MEM32(ebp + (-0x3C)); /* 0x4100B807: mov ecx, dword ptr [ebp - 0x3c] */
   1470     /* cmp ecx, ebx */ /* 0x4100B80A: cmp ecx, ebx */
   1471     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   1472     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1473     _flag_k = FK_CMP;
   1474     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B859; /* 0x4100B80C: je 0x4100b859 */
   1475 L_4100B80E:
   1476     SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x4100B80E: mov al, byte ptr [ecx - 1] */
   1477     /* cmp LO8(eax), LO8(ebx) */ /* 0x4100B811: cmp al, bl */
   1478     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   1479     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1480     _flag_k = FK_NARROW(FK_CMP, 24);
   1481     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B820; /* 0x4100B813: je 0x4100b820 */
   1482 L_4100B815:
   1483     /* cmp LO8(eax), 0xFFu */ /* 0x4100B815: cmp al, 0xff */
   1484     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   1485     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1486     _flag_k = FK_NARROW(FK_CMP, 24);
   1487     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B820; /* 0x4100B817: je 0x4100b820 */
   1488 L_4100B819:
   1489     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1490     SET_LO8(eax, LO8(eax) - 1); /* 0x4100B819: dec al */
   1491     _flag_k = FK_NARROW(FK_DEC, 24);
   1492     MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x4100B81B: mov byte ptr [ecx - 1], al */
   1493     goto L_4100B859; /* 0x4100B81E: jmp 0x4100b859 */
   1494 L_4100B820:
   1495     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1496     ecx = ecx - 1; /* 0x4100B820: dec ecx */
   1497     _flag_k = FK_DEC;
   1498     PUSH32(esp, ecx); /* 0x4100B821: push ecx */
   1499     RECOMP_ICALL(0x4100DB20u); /* 0x4100B822: call 0x4100db20 */ /* not lifted */
   1500     RECOMP_FLAGS_IN();
   1501     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1502     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1503     esp = esp + 4; /* 0x4100B827: add esp, 4 */
   1504     _flag_k = FK_ADD;
   1505     goto L_4100B859; /* 0x4100B82A: jmp 0x4100b859 */
   1506 L_4100B82C:
   1507     /* cmp eax, ebx */ /* 0x4100B82C: cmp eax, ebx */
   1508     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1509     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1510     _flag_k = FK_CMP;
   1511     if (CMP_NE(_flag_a, _flag_b)) goto L_4100B859; /* 0x4100B82E: jne 0x4100b859 */
   1512 L_4100B830:
   1513     eax = MEM32(ebp + (-0x20)); /* 0x4100B830: mov eax, dword ptr [ebp - 0x20] */
   1514     edx = MEM32(ebp + (-0x14)); /* 0x4100B833: mov edx, dword ptr [ebp - 0x14] */
   1515     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   1516     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1517     eax = eax - edx; /* 0x4100B836: sub eax, edx */
   1518     _flag_k = FK_CMP;
   1519     edx = 0; /* 0x4100B838: mov edx, 0 */
   1520     SET_LO8(edx, (/* sub result */ CMP_S(_flag_a, _flag_b)) ? 1 : 0); /* 0x4100B83D: sets dl */
   1521     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   1522     edx = edx - 1; /* 0x4100B840: dec edx */
   1523     _flag_k = FK_DEC;
   1524     PUSH32(esp, ebx); /* 0x4100B841: push ebx */
   1525     PUSH32(esp, esi); /* 0x4100B842: push esi */
   1526     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   1527     eax = eax & edx; /* 0x4100B843: and eax, edx */
   1528     _cf = 0;
   1529     _flag_k = FK_TEST;
   1530     PUSH32(esp, 0x4100B290u); /* 0x4100B845: push 0x4100b290 */
   1531     PUSH32(esp, 0xAu); /* 0x4100B84A: push 0xa */
   1532     PUSH32(esp, eax); /* 0x4100B84C: push eax */
   1533     RECOMP_ICALL(MEM32(0x4100F124)); /* 0x4100B84D: call dword ptr [0x4100f124] */
   1534     RECOMP_FLAGS_IN();
   1535     MEM32(esi + 0xC8) = eax; /* 0x4100B853: mov dword ptr [esi + 0xc8], eax */
   1536 L_4100B859:
   1537     ecx = MEM32(ebp + (-0x2C)); /* 0x4100B859: mov ecx, dword ptr [ebp - 0x2c] */
   1538     edi = POP32_VAL(esp); /* 0x4100B85C: pop edi */
   1539     /* cmp ecx, ebx */ /* 0x4100B85D: cmp ecx, ebx */
   1540     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   1541     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1542     _flag_k = FK_CMP;
   1543     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B88B; /* 0x4100B85F: je 0x4100b88b */
   1544 L_4100B861:
   1545     SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x4100B861: mov al, byte ptr [ecx - 1] */
   1546     /* cmp LO8(eax), LO8(ebx) */ /* 0x4100B864: cmp al, bl */
   1547     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   1548     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1549     _flag_k = FK_NARROW(FK_CMP, 24);
   1550     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B881; /* 0x4100B866: je 0x4100b881 */
   1551 L_4100B868:
   1552     /* cmp LO8(eax), 0xFFu */ /* 0x4100B868: cmp al, 0xff */
   1553     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   1554     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1555     _flag_k = FK_NARROW(FK_CMP, 24);
   1556     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B881; /* 0x4100B86A: je 0x4100b881 */
   1557 L_4100B86C:
   1558     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1559     SET_LO8(eax, LO8(eax) - 1); /* 0x4100B86C: dec al */
   1560     _flag_k = FK_NARROW(FK_DEC, 24);
   1561     esi = POP32_VAL(esp); /* 0x4100B86E: pop esi */
   1562     MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x4100B86F: mov byte ptr [ecx - 1], al */
   1563     ebx = POP32_VAL(esp); /* 0x4100B872: pop ebx */
   1564     ecx = MEM32(ebp + (-0xC)); /* 0x4100B873: mov ecx, dword ptr [ebp - 0xc] */
   1565     MEM32(FS_BASE + (0)) = ecx; /* 0x4100B876: mov dword ptr fs:[0], ecx */
   1566     esp = ebp; /* 0x4100B87D: mov esp, ebp */
   1567     ebp = POP32_VAL(esp); /* 0x4100B87F: pop ebp */
   1568     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100B880: ret  */
   1569 L_4100B881:
   1570     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1571     ecx = ecx - 1; /* 0x4100B881: dec ecx */
   1572     _flag_k = FK_DEC;
   1573     PUSH32(esp, ecx); /* 0x4100B882: push ecx */
   1574     RECOMP_ICALL(0x4100DB20u); /* 0x4100B883: call 0x4100db20 */ /* not lifted */
   1575     RECOMP_FLAGS_IN();
   1576     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1577     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1578     esp = esp + 4; /* 0x4100B888: add esp, 4 */
   1579     _flag_k = FK_ADD;
   1580 L_4100B88B:
   1581     ecx = MEM32(ebp + (-0xC)); /* 0x4100B88B: mov ecx, dword ptr [ebp - 0xc] */
   1582     esi = POP32_VAL(esp); /* 0x4100B88E: pop esi */
   1583     ebx = POP32_VAL(esp); /* 0x4100B88F: pop ebx */
   1584     MEM32(FS_BASE + (0)) = ecx; /* 0x4100B890: mov dword ptr fs:[0], ecx */
   1585     esp = ebp; /* 0x4100B897: mov esp, ebp */
   1586     ebp = POP32_VAL(esp); /* 0x4100B899: pop ebp */
   1587     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100B89A: ret  */
   1588     RECOMP_REGS_OUT();
   1589 }
   1590 
   1591 void sub_4100B859(void) {
   1592     int _fpu_cmp = 0;
   1593     uint32_t _cf = 0;
   1594     int _df = 1;
   1595     uint32_t _flag_k = FK_NONE;
   1596     uint32_t _flag_a = 0, _flag_b = 0;
   1597     uint32_t _itail_tgt = 0;
   1598     RECOMP_REGS_LOCALS
   1599     RECOMP_ENTER(0x4100B859u);
   1600 
   1601 L_4100B859:
   1602     ecx = MEM32(ebp + (-0x2C)); /* 0x4100B859: mov ecx, dword ptr [ebp - 0x2c] */
   1603     edi = POP32_VAL(esp); /* 0x4100B85C: pop edi */
   1604     /* cmp ecx, ebx */ /* 0x4100B85D: cmp ecx, ebx */
   1605     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   1606     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1607     _flag_k = FK_CMP;
   1608     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B88B; /* 0x4100B85F: je 0x4100b88b */
   1609 L_4100B861:
   1610     SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x4100B861: mov al, byte ptr [ecx - 1] */
   1611     /* cmp LO8(eax), LO8(ebx) */ /* 0x4100B864: cmp al, bl */
   1612     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   1613     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1614     _flag_k = FK_NARROW(FK_CMP, 24);
   1615     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B881; /* 0x4100B866: je 0x4100b881 */
   1616 L_4100B868:
   1617     /* cmp LO8(eax), 0xFFu */ /* 0x4100B868: cmp al, 0xff */
   1618     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   1619     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1620     _flag_k = FK_NARROW(FK_CMP, 24);
   1621     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B881; /* 0x4100B86A: je 0x4100b881 */
   1622 L_4100B86C:
   1623     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1624     SET_LO8(eax, LO8(eax) - 1); /* 0x4100B86C: dec al */
   1625     _flag_k = FK_NARROW(FK_DEC, 24);
   1626     esi = POP32_VAL(esp); /* 0x4100B86E: pop esi */
   1627     MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x4100B86F: mov byte ptr [ecx - 1], al */
   1628     ebx = POP32_VAL(esp); /* 0x4100B872: pop ebx */
   1629     ecx = MEM32(ebp + (-0xC)); /* 0x4100B873: mov ecx, dword ptr [ebp - 0xc] */
   1630     MEM32(FS_BASE + (0)) = ecx; /* 0x4100B876: mov dword ptr fs:[0], ecx */
   1631     esp = ebp; /* 0x4100B87D: mov esp, ebp */
   1632     ebp = POP32_VAL(esp); /* 0x4100B87F: pop ebp */
   1633     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100B880: ret  */
   1634 L_4100B881:
   1635     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1636     ecx = ecx - 1; /* 0x4100B881: dec ecx */
   1637     _flag_k = FK_DEC;
   1638     PUSH32(esp, ecx); /* 0x4100B882: push ecx */
   1639     RECOMP_ICALL(0x4100DB20u); /* 0x4100B883: call 0x4100db20 */ /* not lifted */
   1640     RECOMP_FLAGS_IN();
   1641     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1642     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1643     esp = esp + 4; /* 0x4100B888: add esp, 4 */
   1644     _flag_k = FK_ADD;
   1645 L_4100B88B:
   1646     ecx = MEM32(ebp + (-0xC)); /* 0x4100B88B: mov ecx, dword ptr [ebp - 0xc] */
   1647     esi = POP32_VAL(esp); /* 0x4100B88E: pop esi */
   1648     ebx = POP32_VAL(esp); /* 0x4100B88F: pop ebx */
   1649     MEM32(FS_BASE + (0)) = ecx; /* 0x4100B890: mov dword ptr fs:[0], ecx */
   1650     esp = ebp; /* 0x4100B897: mov esp, ebp */
   1651     ebp = POP32_VAL(esp); /* 0x4100B899: pop ebp */
   1652     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100B89A: ret  */
   1653     RECOMP_REGS_OUT();
   1654 }
   1655 
   1656 void sub_4100B8A0(void) {
   1657     int _fpu_cmp = 0;
   1658     uint32_t _cf = 0;
   1659     int _df = 1;
   1660     uint32_t _flag_k = FK_NONE;
   1661     uint32_t _flag_a = 0, _flag_b = 0;
   1662     uint32_t _itail_tgt = 0;
   1663     RECOMP_REGS_LOCALS
   1664     RECOMP_ENTER(0x4100B8A0u);
   1665 
   1666 L_4100B8A0:
   1667     PUSH32(esp, ebp); /* 0x4100B8A0: push ebp */
   1668     ebp = esp; /* 0x4100B8A1: mov ebp, esp */
   1669     PUSH32(esp, 0xFFFFFFFFu); /* 0x4100B8A3: push -1 */
   1670     PUSH32(esp, 0x4100E792u); /* 0x4100B8A5: push 0x4100e792 */
   1671     eax = MEM32(FS_BASE + (0)); /* 0x4100B8AA: mov eax, dword ptr fs:[0] */
   1672     PUSH32(esp, eax); /* 0x4100B8B0: push eax */
   1673     MEM32(FS_BASE + (0)) = esp; /* 0x4100B8B1: mov dword ptr fs:[0], esp */
   1674     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x48u);
   1675     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1676     esp = esp - 0x48u; /* 0x4100B8B8: sub esp, 0x48 */
   1677     _flag_k = FK_CMP;
   1678     PUSH32(esp, ebx); /* 0x4100B8BB: push ebx */
   1679     PUSH32(esp, esi); /* 0x4100B8BC: push esi */
   1680     esi = ecx; /* 0x4100B8BD: mov esi, ecx */
   1681     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1682     ebx = 0; /* 0x4100B8BF: xor ebx, ebx */
   1683     _cf = 0;
   1684     _flag_k = FK_TEST;
   1685     PUSH32(esp, edi); /* 0x4100B8C1: push edi */
   1686     eax = MEM32(esi + 0x28); /* 0x4100B8C2: mov eax, dword ptr [esi + 0x28] */
   1687     eax = MEM32(esi + eax * 4 + 0x34); /* 0x4100B8C5: mov eax, dword ptr [esi + eax*4 + 0x34] */
   1688     /* cmp eax, ebx */ /* 0x4100B8C9: cmp eax, ebx */
   1689     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1690     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1691     _flag_k = FK_CMP;
   1692     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100BB82; /* 0x4100B8CB: je 0x4100bb82 */
   1693 L_4100B8D1:
   1694     ecx = ebp + (-0x14); /* 0x4100B8D1: lea ecx, [ebp - 0x14] */
   1695     edx = ebp + (-0x18); /* 0x4100B8D4: lea edx, [ebp - 0x18] */
   1696     PUSH32(esp, ecx); /* 0x4100B8D7: push ecx */
   1697     PUSH32(esp, edx); /* 0x4100B8D8: push edx */
   1698     PUSH32(esp, eax); /* 0x4100B8D9: push eax */
   1699     RECOMP_ICALL(MEM32(0x4100F1B0)); /* 0x4100B8DA: call dword ptr [0x4100f1b0] */
   1700     RECOMP_FLAGS_IN();
   1701     eax = MEM32(ebp + (-0x14)); /* 0x4100B8E0: mov eax, dword ptr [ebp - 0x14] */
   1702     ecx = esi; /* 0x4100B8E3: mov ecx, esi */
   1703     PUSH32(esp, eax); /* 0x4100B8E5: push eax */
   1704     RECOMP_ICALL(0x4100B4C0u); /* 0x4100B8E6: call 0x4100b4c0 */ /* not lifted */
   1705     RECOMP_FLAGS_IN();
   1706     ecx = MEM32(esi + 0x4C); /* 0x4100B8EB: mov ecx, dword ptr [esi + 0x4c] */
   1707     /* cmp ecx, ebx */ /* 0x4100B8EE: cmp ecx, ebx */
   1708     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   1709     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1710     _flag_k = FK_CMP;
   1711     if (CMP_NE(_flag_a, _flag_b)) goto L_4100B947; /* 0x4100B8F0: jne 0x4100b947 */
   1712 L_4100B8F2:
   1713     eax = MEM32(esi + 0x54); /* 0x4100B8F2: mov eax, dword ptr [esi + 0x54] */
   1714     edx = MEM32(esi + 0x5C); /* 0x4100B8F5: mov edx, dword ptr [esi + 0x5c] */
   1715     /* cmp edx, eax */ /* 0x4100B8F8: cmp edx, eax */
   1716     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1717     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1718     _flag_k = FK_CMP;
   1719     if (CMP_NE(_flag_a, _flag_b)) goto L_4100B947; /* 0x4100B8FA: jne 0x4100b947 */
   1720 L_4100B8FC:
   1721     eax = MEM32(esi + 0xC8); /* 0x4100B8FC: mov eax, dword ptr [esi + 0xc8] */
   1722     /* cmp eax, ebx */ /* 0x4100B902: cmp eax, ebx */
   1723     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1724     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1725     _flag_k = FK_CMP;
   1726     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B90D; /* 0x4100B904: je 0x4100b90d */
   1727 L_4100B906:
   1728     PUSH32(esp, eax); /* 0x4100B906: push eax */
   1729     RECOMP_ICALL(MEM32(0x4100F128)); /* 0x4100B907: call dword ptr [0x4100f128] */
   1730     RECOMP_FLAGS_IN();
   1731 L_4100B90D:
   1732     eax = MEM32(ebp + (-0x18)); /* 0x4100B90D: mov eax, dword ptr [ebp - 0x18] */
   1733     ecx = MEM32(ebp + (-0x14)); /* 0x4100B910: mov ecx, dword ptr [ebp - 0x14] */
   1734     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1735     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1736     eax = eax - ecx; /* 0x4100B913: sub eax, ecx */
   1737     _flag_k = FK_CMP;
   1738     ecx = 0; /* 0x4100B915: mov ecx, 0 */
   1739     SET_LO8(ecx, (/* sub result */ CMP_S(_flag_a, _flag_b)) ? 1 : 0); /* 0x4100B91A: sets cl */
   1740     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1741     ecx = ecx - 1; /* 0x4100B91D: dec ecx */
   1742     _flag_k = FK_DEC;
   1743     PUSH32(esp, ebx); /* 0x4100B91E: push ebx */
   1744     PUSH32(esp, esi); /* 0x4100B91F: push esi */
   1745     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1746     eax = eax & ecx; /* 0x4100B920: and eax, ecx */
   1747     _cf = 0;
   1748     _flag_k = FK_TEST;
   1749     PUSH32(esp, 0x4100B290u); /* 0x4100B922: push 0x4100b290 */
   1750     PUSH32(esp, 0xAu); /* 0x4100B927: push 0xa */
   1751     PUSH32(esp, eax); /* 0x4100B929: push eax */
   1752     RECOMP_ICALL(MEM32(0x4100F124)); /* 0x4100B92A: call dword ptr [0x4100f124] */
   1753     RECOMP_FLAGS_IN();
   1754     MEM32(esi + 0xC8) = eax; /* 0x4100B930: mov dword ptr [esi + 0xc8], eax */
   1755     edi = POP32_VAL(esp); /* 0x4100B936: pop edi */
   1756     esi = POP32_VAL(esp); /* 0x4100B937: pop esi */
   1757     ebx = POP32_VAL(esp); /* 0x4100B938: pop ebx */
   1758     ecx = MEM32(ebp + (-0xC)); /* 0x4100B939: mov ecx, dword ptr [ebp - 0xc] */
   1759     MEM32(FS_BASE + (0)) = ecx; /* 0x4100B93C: mov dword ptr fs:[0], ecx */
   1760     esp = ebp; /* 0x4100B943: mov esp, ebp */
   1761     ebp = POP32_VAL(esp); /* 0x4100B945: pop ebp */
   1762     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100B946: ret  */
   1763 L_4100B947:
   1764     eax = MEM32(esi + 0x5C); /* 0x4100B947: mov eax, dword ptr [esi + 0x5c] */
   1765     edx = MEM32(eax + 0x8); /* 0x4100B94A: mov edx, dword ptr [eax + 8] */
   1766     /* cmp edx, ecx */ /* 0x4100B94D: cmp edx, ecx */
   1767     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   1768     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1769     _flag_k = FK_CMP;
   1770     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B9F5; /* 0x4100B94F: je 0x4100b9f5 */
   1771 L_4100B955:
   1772     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x4100B955: mov al, byte ptr [ebp - 0xd] */
   1773     edi = 0x41014494u; /* 0x4100B958: mov edi, 0x41014494 */
   1774     MEM8(ebp + (-0x28)) = (uint8_t)(LO8(eax)); /* 0x4100B95D: mov byte ptr [ebp - 0x28], al */
   1775     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   1776     ecx = ecx | 0xFFFFFFFFu; /* 0x4100B960: or ecx, 0xffffffff */
   1777     _cf = 0;
   1778     _flag_k = FK_TEST;
   1779     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1780     eax = 0; /* 0x4100B963: xor eax, eax */
   1781     _cf = 0;
   1782     _flag_k = FK_TEST;
   1783     MEM32(esi + 0x4C) = edx; /* 0x4100B965: mov dword ptr [esi + 0x4c], edx */
   1784     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x4100B968: repne scasb al, byte ptr es:[edi] */
   1785     ecx = ~ecx; /* 0x4100B96A: not ecx */
   1786     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1787     ecx = ecx - 1; /* 0x4100B96C: dec ecx */
   1788     _flag_k = FK_DEC;
   1789     MEM32(ebp + (-0x24)) = ebx; /* 0x4100B96D: mov dword ptr [ebp - 0x24], ebx */
   1790     PUSH32(esp, ecx); /* 0x4100B970: push ecx */
   1791     PUSH32(esp, 0x41014494u); /* 0x4100B971: push 0x41014494 */
   1792     ecx = ebp + (-0x28); /* 0x4100B976: lea ecx, [ebp - 0x28] */
   1793     MEM32(ebp + (-0x20)) = ebx; /* 0x4100B979: mov dword ptr [ebp - 0x20], ebx */
   1794     MEM32(ebp + (-0x1C)) = ebx; /* 0x4100B97C: mov dword ptr [ebp - 0x1c], ebx */
   1795     RECOMP_ICALL(MEM32(0x4100F028)); /* 0x4100B97F: call dword ptr [0x4100f028] */
   1796     RECOMP_FLAGS_IN();
   1797     ecx = MEM32(esi + 0x4C); /* 0x4100B985: mov ecx, dword ptr [esi + 0x4c] */
   1798     edx = ebp + (-0x28); /* 0x4100B988: lea edx, [ebp - 0x28] */
   1799     PUSH32(esp, edx); /* 0x4100B98B: push edx */
   1800     MEM32(ebp + (-0x4)) = ebx; /* 0x4100B98C: mov dword ptr [ebp - 4], ebx */
   1801     ecx = MEM32(ecx + 0x10); /* 0x4100B98F: mov ecx, dword ptr [ecx + 0x10] */
   1802     RECOMP_ICALL(0x410077E0u); /* 0x4100B992: call 0x410077e0 */ /* not lifted */
   1803     RECOMP_FLAGS_IN();
   1804     eax = MEM32(esi + 0xC0); /* 0x4100B997: mov eax, dword ptr [esi + 0xc0] */
   1805     MEM8(esi + 0x60) = (uint8_t)(LO8(ebx)); /* 0x4100B99D: mov byte ptr [esi + 0x60], bl */
   1806     /* cmp eax, ebx */ /* 0x4100B9A0: cmp eax, ebx */
   1807     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1808     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1809     _flag_k = FK_CMP;
   1810     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B9CA; /* 0x4100B9A2: je 0x4100b9ca */
   1811 L_4100B9A4:
   1812     ecx = MEM32(esi + 0x4C); /* 0x4100B9A4: mov ecx, dword ptr [esi + 0x4c] */
   1813     edx = ebp + (-0x40); /* 0x4100B9A7: lea edx, [ebp - 0x40] */
   1814     MEM32(ebp + (-0x34)) = ecx; /* 0x4100B9AA: mov dword ptr [ebp - 0x34], ecx */
   1815     ecx = MEM32(esi + 0xC4); /* 0x4100B9AD: mov ecx, dword ptr [esi + 0xc4] */
   1816     PUSH32(esp, edx); /* 0x4100B9B3: push edx */
   1817     PUSH32(esp, ecx); /* 0x4100B9B4: push ecx */
   1818     MEM32(ebp + (-0x40)) = 4; /* 0x4100B9B5: mov dword ptr [ebp - 0x40], 4 */
   1819     MEM32(ebp + (-0x3C)) = ebx; /* 0x4100B9BC: mov dword ptr [ebp - 0x3c], ebx */
   1820     MEM32(ebp + (-0x38)) = ebx; /* 0x4100B9BF: mov dword ptr [ebp - 0x38], ebx */
   1821     MEM32(ebp + (-0x30)) = ebx; /* 0x4100B9C2: mov dword ptr [ebp - 0x30], ebx */
   1822     RECOMP_ICALL(eax); /* 0x4100B9C5: call eax */
   1823     RECOMP_FLAGS_IN();
   1824     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1825     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1826     esp = esp + 8; /* 0x4100B9C7: add esp, 8 */
   1827     _flag_k = FK_ADD;
   1828 L_4100B9CA:
   1829     eax = MEM32(ebp + (-0x24)); /* 0x4100B9CA: mov eax, dword ptr [ebp - 0x24] */
   1830     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x4100B9CD: mov dword ptr [ebp - 4], 0xffffffff */
   1831     /* cmp eax, ebx */ /* 0x4100B9D4: cmp eax, ebx */
   1832     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1833     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1834     _flag_k = FK_CMP;
   1835     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B9F5; /* 0x4100B9D6: je 0x4100b9f5 */
   1836 L_4100B9D8:
   1837     ecx = eax + (-0x1); /* 0x4100B9D8: lea ecx, [eax - 1] */
   1838     SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x4100B9DB: mov al, byte ptr [eax - 1] */
   1839     /* cmp LO8(eax), LO8(ebx) */ /* 0x4100B9DE: cmp al, bl */
   1840     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   1841     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1842     _flag_k = FK_NARROW(FK_CMP, 24);
   1843     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B9EC; /* 0x4100B9E0: je 0x4100b9ec */
   1844 L_4100B9E2:
   1845     /* cmp LO8(eax), 0xFFu */ /* 0x4100B9E2: cmp al, 0xff */
   1846     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   1847     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1848     _flag_k = FK_NARROW(FK_CMP, 24);
   1849     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100B9EC; /* 0x4100B9E4: je 0x4100b9ec */
   1850 L_4100B9E6:
   1851     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1852     SET_LO8(eax, LO8(eax) - 1); /* 0x4100B9E6: dec al */
   1853     _flag_k = FK_NARROW(FK_DEC, 24);
   1854     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x4100B9E8: mov byte ptr [ecx], al */
   1855     goto L_4100B9F5; /* 0x4100B9EA: jmp 0x4100b9f5 */
   1856 L_4100B9EC:
   1857     PUSH32(esp, ecx); /* 0x4100B9EC: push ecx */
   1858     RECOMP_ICALL(0x4100DB20u); /* 0x4100B9ED: call 0x4100db20 */ /* not lifted */
   1859     RECOMP_FLAGS_IN();
   1860     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1861     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1862     esp = esp + 4; /* 0x4100B9F2: add esp, 4 */
   1863     _flag_k = FK_ADD;
   1864 L_4100B9F5:
   1865     ecx = MEM32(esi + 0x4C); /* 0x4100B9F5: mov ecx, dword ptr [esi + 0x4c] */
   1866     /* cmp ecx, ebx */ /* 0x4100B9F8: cmp ecx, ebx */
   1867     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   1868     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1869     _flag_k = FK_CMP;
   1870     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100BB82; /* 0x4100B9FA: je 0x4100bb82 */
   1871 L_4100BA00:
   1872     SET_LO8(edx, MEM8(esi + 0x60)); /* 0x4100BA00: mov dl, byte ptr [esi + 0x60] */
   1873     edi = MEM32(ebp + (-0x14)); /* 0x4100BA03: mov edi, dword ptr [ebp - 0x14] */
   1874     /* cmp LO8(edx), LO8(ebx) */ /* 0x4100BA06: cmp dl, bl */
   1875     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   1876     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1877     _flag_k = FK_NARROW(FK_CMP, 24);
   1878     if (CMP_NE(_flag_a, _flag_b)) goto L_4100BA71; /* 0x4100BA08: jne 0x4100ba71 */
   1879 L_4100BA0A:
   1880     eax = MEM32(ecx + 0x24); /* 0x4100BA0A: mov eax, dword ptr [ecx + 0x24] */
   1881     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1882     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1883     eax = eax - MEM32(esi + 0x8); /* 0x4100BA0D: sub eax, dword ptr [esi + 8] */
   1884     _flag_k = FK_CMP;
   1885     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xC8u);
   1886     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1887     eax = eax - 0xC8u; /* 0x4100BA10: sub eax, 0xc8 */
   1888     _flag_k = FK_CMP;
   1889     /* cmp edi, eax */ /* 0x4100BA15: cmp edi, eax */
   1890     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1891     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1892     _flag_k = FK_CMP;
   1893     if (CMP_B(_flag_a, _flag_b)) goto L_4100BA71; /* 0x4100BA17: jb 0x4100ba71 */
   1894 L_4100BA19:
   1895     ecx = esi; /* 0x4100BA19: mov ecx, esi */
   1896     RECOMP_ICALL(0x4100B310u); /* 0x4100BA1B: call 0x4100b310 */ /* not lifted */
   1897     RECOMP_FLAGS_IN();
   1898     /* test LO8(eax), LO8(eax) */ /* 0x4100BA20: test al, al */
   1899     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1900     _cf = 0;
   1901     _flag_k = FK_NARROW(FK_TEST, 24);
   1902     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100BB82; /* 0x4100BA22: jne 0x4100bb82 */
   1903 L_4100BA28:
   1904     eax = MEM32(esi + 0xC0); /* 0x4100BA28: mov eax, dword ptr [esi + 0xc0] */
   1905     /* cmp eax, ebx */ /* 0x4100BA2E: cmp eax, ebx */
   1906     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1907     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1908     _flag_k = FK_CMP;
   1909     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100BB82; /* 0x4100BA30: je 0x4100bb82 */
   1910 L_4100BA36:
   1911     edx = MEM32(esi + 0x4C); /* 0x4100BA36: mov edx, dword ptr [esi + 0x4c] */
   1912     ecx = ebp + (-0x2C); /* 0x4100BA39: lea ecx, [ebp - 0x2c] */
   1913     MEM32(ebp + (-0x20)) = edx; /* 0x4100BA3C: mov dword ptr [ebp - 0x20], edx */
   1914     edx = MEM32(esi + 0xC4); /* 0x4100BA3F: mov edx, dword ptr [esi + 0xc4] */
   1915     PUSH32(esp, ecx); /* 0x4100BA45: push ecx */
   1916     PUSH32(esp, edx); /* 0x4100BA46: push edx */
   1917     MEM32(ebp + (-0x2C)) = 0xCu; /* 0x4100BA47: mov dword ptr [ebp - 0x2c], 0xc */
   1918     MEM32(ebp + (-0x28)) = ebx; /* 0x4100BA4E: mov dword ptr [ebp - 0x28], ebx */
   1919     MEM32(ebp + (-0x24)) = ebx; /* 0x4100BA51: mov dword ptr [ebp - 0x24], ebx */
   1920     MEM32(ebp + (-0x1C)) = 1; /* 0x4100BA54: mov dword ptr [ebp - 0x1c], 1 */
   1921     RECOMP_ICALL(eax); /* 0x4100BA5B: call eax */
   1922     RECOMP_FLAGS_IN();
   1923     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1924     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1925     esp = esp + 8; /* 0x4100BA5D: add esp, 8 */
   1926     _flag_k = FK_ADD;
   1927     edi = POP32_VAL(esp); /* 0x4100BA60: pop edi */
   1928     esi = POP32_VAL(esp); /* 0x4100BA61: pop esi */
   1929     ebx = POP32_VAL(esp); /* 0x4100BA62: pop ebx */
   1930     ecx = MEM32(ebp + (-0xC)); /* 0x4100BA63: mov ecx, dword ptr [ebp - 0xc] */
   1931     MEM32(FS_BASE + (0)) = ecx; /* 0x4100BA66: mov dword ptr fs:[0], ecx */
   1932     esp = ebp; /* 0x4100BA6D: mov esp, ebp */
   1933     ebp = POP32_VAL(esp); /* 0x4100BA6F: pop ebp */
   1934     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100BA70: ret  */
   1935 L_4100BA71:
   1936     /* cmp LO8(edx), 1 */ /* 0x4100BA71: cmp dl, 1 */
   1937     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(1) << 24;
   1938     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1939     _flag_k = FK_NARROW(FK_CMP, 24);
   1940     if (CMP_NE(_flag_a, _flag_b)) goto L_4100BB82; /* 0x4100BA74: jne 0x4100bb82 */
   1941 L_4100BA7A:
   1942     eax = MEM32(ecx + 0x24); /* 0x4100BA7A: mov eax, dword ptr [ecx + 0x24] */
   1943     edx = MEM32(esi + 0x8); /* 0x4100BA7D: mov edx, dword ptr [esi + 8] */
   1944     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   1945     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1946     eax = eax - edx; /* 0x4100BA80: sub eax, edx */
   1947     _flag_k = FK_CMP;
   1948     /* cmp edi, eax */ /* 0x4100BA82: cmp edi, eax */
   1949     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1950     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1951     _flag_k = FK_CMP;
   1952     if (CMP_B(_flag_a, _flag_b)) goto L_4100BB82; /* 0x4100BA84: jb 0x4100bb82 */
   1953 L_4100BA8A:
   1954     ecx = esi; /* 0x4100BA8A: mov ecx, esi */
   1955     RECOMP_ICALL(0x4100B440u); /* 0x4100BA8C: call 0x4100b440 */ /* not lifted */
   1956     RECOMP_FLAGS_IN();
   1957     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x4100BA91: mov al, byte ptr [ebp - 0xd] */
   1958     MEM32(ebp + (-0x38)) = ebx; /* 0x4100BA94: mov dword ptr [ebp - 0x38], ebx */
   1959     MEM8(ebp + (-0x3C)) = (uint8_t)(LO8(eax)); /* 0x4100BA97: mov byte ptr [ebp - 0x3c], al */
   1960     MEM32(ebp + (-0x34)) = ebx; /* 0x4100BA9A: mov dword ptr [ebp - 0x34], ebx */
   1961     MEM32(ebp + (-0x30)) = ebx; /* 0x4100BA9D: mov dword ptr [ebp - 0x30], ebx */
   1962     edx = MEM32(esi + 0x4C); /* 0x4100BAA0: mov edx, dword ptr [esi + 0x4c] */
   1963     ecx = ebp + (-0x3C); /* 0x4100BAA3: lea ecx, [ebp - 0x3c] */
   1964     PUSH32(esp, ecx); /* 0x4100BAA6: push ecx */
   1965     MEM32(ebp + (-0x4)) = 1; /* 0x4100BAA7: mov dword ptr [ebp - 4], 1 */
   1966     ecx = MEM32(edx + 0x10); /* 0x4100BAAE: mov ecx, dword ptr [edx + 0x10] */
   1967     RECOMP_ICALL(0x410077E0u); /* 0x4100BAB1: call 0x410077e0 */ /* not lifted */
   1968     RECOMP_FLAGS_IN();
   1969     ecx = MEM32(esi + 0x30); /* 0x4100BAB6: mov ecx, dword ptr [esi + 0x30] */
   1970     eax = MEM32(esi + 0x28); /* 0x4100BAB9: mov eax, dword ptr [esi + 0x28] */
   1971     edx = ecx; /* 0x4100BABC: mov edx, ecx */
   1972     MEM32(esi + 0x28) = ecx; /* 0x4100BABE: mov dword ptr [esi + 0x28], ecx */
   1973     MEM32(esi + 0x30) = eax; /* 0x4100BAC1: mov dword ptr [esi + 0x30], eax */
   1974     edi = 2; /* 0x4100BAC4: mov edi, 2 */
   1975     eax = MEM32(esi + edx * 4 + 0x34); /* 0x4100BAC9: mov eax, dword ptr [esi + edx*4 + 0x34] */
   1976     /* cmp eax, ebx */ /* 0x4100BACD: cmp eax, ebx */
   1977     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1978     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1979     _flag_k = FK_CMP;
   1980     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100BADB; /* 0x4100BACF: je 0x4100badb */
   1981 L_4100BAD1:
   1982     PUSH32(esp, ebx); /* 0x4100BAD1: push ebx */
   1983     PUSH32(esp, eax); /* 0x4100BAD2: push eax */
   1984     RECOMP_ICALL(MEM32(0x4100F188)); /* 0x4100BAD3: call dword ptr [0x4100f188] */
   1985     RECOMP_FLAGS_IN();
   1986     goto L_4100BB15; /* 0x4100BAD9: jmp 0x4100bb15 */
   1987 L_4100BADB:
   1988     eax = MEM32(esi + 0x20); /* 0x4100BADB: mov eax, dword ptr [esi + 0x20] */
   1989     MEM8(esi + 0x62) = (uint8_t)(1); /* 0x4100BADE: mov byte ptr [esi + 0x62], 1 */
   1990     MEM8(eax + 0x6) = (uint8_t)(LO8(ebx)); /* 0x4100BAE2: mov byte ptr [eax + 6], bl */
   1991     eax = MEM32(esi + 0xC0); /* 0x4100BAE5: mov eax, dword ptr [esi + 0xc0] */
   1992     /* cmp eax, ebx */ /* 0x4100BAEB: cmp eax, ebx */
   1993     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1994     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1995     _flag_k = FK_CMP;
   1996     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100BB15; /* 0x4100BAED: je 0x4100bb15 */
   1997 L_4100BAEF:
   1998     ecx = MEM32(esi + 0x4C); /* 0x4100BAEF: mov ecx, dword ptr [esi + 0x4c] */
   1999     edx = ebp + (-0x2C); /* 0x4100BAF2: lea edx, [ebp - 0x2c] */
   2000     MEM32(ebp + (-0x20)) = ecx; /* 0x4100BAF5: mov dword ptr [ebp - 0x20], ecx */
   2001     ecx = MEM32(esi + 0xC4); /* 0x4100BAF8: mov ecx, dword ptr [esi + 0xc4] */
   2002     PUSH32(esp, edx); /* 0x4100BAFE: push edx */
   2003     PUSH32(esp, ecx); /* 0x4100BAFF: push ecx */
   2004     MEM32(ebp + (-0x2C)) = 0xDu; /* 0x4100BB00: mov dword ptr [ebp - 0x2c], 0xd */
   2005     MEM32(ebp + (-0x28)) = edi; /* 0x4100BB07: mov dword ptr [ebp - 0x28], edi */
   2006     MEM32(ebp + (-0x24)) = ebx; /* 0x4100BB0A: mov dword ptr [ebp - 0x24], ebx */
   2007     MEM32(ebp + (-0x1C)) = edi; /* 0x4100BB0D: mov dword ptr [ebp - 0x1c], edi */
   2008     RECOMP_ICALL(eax); /* 0x4100BB10: call eax */
   2009     RECOMP_FLAGS_IN();
   2010     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2011     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2012     esp = esp + 8; /* 0x4100BB12: add esp, 8 */
   2013     _flag_k = FK_ADD;
   2014 L_4100BB15:
   2015     MEM32(esi + 0x4C) = ebx; /* 0x4100BB15: mov dword ptr [esi + 0x4c], ebx */
   2016     edx = MEM32(esi + 0x5C); /* 0x4100BB18: mov edx, dword ptr [esi + 0x5c] */
   2017     eax = MEM32(edx); /* 0x4100BB1B: mov eax, dword ptr [edx] */
   2018     MEM32(esi + 0x5C) = eax; /* 0x4100BB1D: mov dword ptr [esi + 0x5c], eax */
   2019     eax = MEM32(esi + 0xC0); /* 0x4100BB20: mov eax, dword ptr [esi + 0xc0] */
   2020     /* cmp eax, ebx */ /* 0x4100BB26: cmp eax, ebx */
   2021     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   2022     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2023     _flag_k = FK_CMP;
   2024     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100BB50; /* 0x4100BB28: je 0x4100bb50 */
   2025 L_4100BB2A:
   2026     ecx = MEM32(esi + 0x28); /* 0x4100BB2A: mov ecx, dword ptr [esi + 0x28] */
   2027     MEM32(ebp + (-0x54)) = edi; /* 0x4100BB2D: mov dword ptr [ebp - 0x54], edi */
   2028     MEM32(ebp + (-0x50)) = ebx; /* 0x4100BB30: mov dword ptr [ebp - 0x50], ebx */
   2029     edx = MEM32(esi + ecx * 4 + 0x40); /* 0x4100BB33: mov edx, dword ptr [esi + ecx*4 + 0x40] */
   2030     ecx = ebp + (-0x54); /* 0x4100BB37: lea ecx, [ebp - 0x54] */
   2031     MEM32(ebp + (-0x4C)) = edx; /* 0x4100BB3A: mov dword ptr [ebp - 0x4c], edx */
   2032     edx = MEM32(esi + 0xC4); /* 0x4100BB3D: mov edx, dword ptr [esi + 0xc4] */
   2033     PUSH32(esp, ecx); /* 0x4100BB43: push ecx */
   2034     PUSH32(esp, edx); /* 0x4100BB44: push edx */
   2035     MEM32(ebp + (-0x48)) = ebx; /* 0x4100BB45: mov dword ptr [ebp - 0x48], ebx */
   2036     MEM32(ebp + (-0x44)) = ebx; /* 0x4100BB48: mov dword ptr [ebp - 0x44], ebx */
   2037     RECOMP_ICALL(eax); /* 0x4100BB4B: call eax */
   2038     RECOMP_FLAGS_IN();
   2039     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2040     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2041     esp = esp + 8; /* 0x4100BB4D: add esp, 8 */
   2042     _flag_k = FK_ADD;
   2043 L_4100BB50:
   2044     ecx = MEM32(ebp + (-0x38)); /* 0x4100BB50: mov ecx, dword ptr [ebp - 0x38] */
   2045     /* cmp ecx, ebx */ /* 0x4100BB53: cmp ecx, ebx */
   2046     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   2047     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2048     _flag_k = FK_CMP;
   2049     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100BB82; /* 0x4100BB55: je 0x4100bb82 */
   2050 L_4100BB57:
   2051     SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x4100BB57: mov al, byte ptr [ecx - 1] */
   2052     /* cmp LO8(eax), LO8(ebx) */ /* 0x4100BB5A: cmp al, bl */
   2053     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   2054     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2055     _flag_k = FK_NARROW(FK_CMP, 24);
   2056     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100BB78; /* 0x4100BB5C: je 0x4100bb78 */
   2057 L_4100BB5E:
   2058     /* cmp LO8(eax), 0xFFu */ /* 0x4100BB5E: cmp al, 0xff */
   2059     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   2060     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2061     _flag_k = FK_NARROW(FK_CMP, 24);
   2062     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100BB78; /* 0x4100BB60: je 0x4100bb78 */
   2063 L_4100BB62:
   2064     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2065     SET_LO8(eax, LO8(eax) - 1); /* 0x4100BB62: dec al */
   2066     _flag_k = FK_NARROW(FK_DEC, 24);
   2067     edi = POP32_VAL(esp); /* 0x4100BB64: pop edi */
   2068     esi = POP32_VAL(esp); /* 0x4100BB65: pop esi */
   2069     MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x4100BB66: mov byte ptr [ecx - 1], al */
   2070     ebx = POP32_VAL(esp); /* 0x4100BB69: pop ebx */
   2071     ecx = MEM32(ebp + (-0xC)); /* 0x4100BB6A: mov ecx, dword ptr [ebp - 0xc] */
   2072     MEM32(FS_BASE + (0)) = ecx; /* 0x4100BB6D: mov dword ptr fs:[0], ecx */
   2073     esp = ebp; /* 0x4100BB74: mov esp, ebp */
   2074     ebp = POP32_VAL(esp); /* 0x4100BB76: pop ebp */
   2075     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100BB77: ret  */
   2076 L_4100BB78:
   2077     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2078     ecx = ecx - 1; /* 0x4100BB78: dec ecx */
   2079     _flag_k = FK_DEC;
   2080     PUSH32(esp, ecx); /* 0x4100BB79: push ecx */
   2081     RECOMP_ICALL(0x4100DB20u); /* 0x4100BB7A: call 0x4100db20 */ /* not lifted */
   2082     RECOMP_FLAGS_IN();
   2083     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2084     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2085     esp = esp + 4; /* 0x4100BB7F: add esp, 4 */
   2086     _flag_k = FK_ADD;
   2087 L_4100BB82:
   2088     ecx = MEM32(ebp + (-0xC)); /* 0x4100BB82: mov ecx, dword ptr [ebp - 0xc] */
   2089     edi = POP32_VAL(esp); /* 0x4100BB85: pop edi */
   2090     esi = POP32_VAL(esp); /* 0x4100BB86: pop esi */
   2091     ebx = POP32_VAL(esp); /* 0x4100BB87: pop ebx */
   2092     MEM32(FS_BASE + (0)) = ecx; /* 0x4100BB88: mov dword ptr fs:[0], ecx */
   2093     esp = ebp; /* 0x4100BB8F: mov esp, ebp */
   2094     ebp = POP32_VAL(esp); /* 0x4100BB91: pop ebp */
   2095     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100BB92: ret  */
   2096     RECOMP_REGS_OUT();
   2097 }
   2098 
   2099 void sub_4100BBA0(void) {
   2100     int _fpu_cmp = 0;
   2101     uint32_t _cf = 0;
   2102     int _df = 1;
   2103     uint32_t _flag_k = FK_NONE;
   2104     uint32_t _flag_a = 0, _flag_b = 0;
   2105     uint32_t _itail_tgt = 0;
   2106     RECOMP_REGS_LOCALS
   2107     RECOMP_ENTER(0x4100BBA0u);
   2108 
   2109 L_4100BBA0:
   2110     eax = MEM32(0x41014A94); /* 0x4100BBA0: mov eax, dword ptr [0x41014a94] */
   2111     PUSH32(esp, ebx); /* 0x4100BBA5: push ebx */
   2112     PUSH32(esp, esi); /* 0x4100BBA6: push esi */
   2113     PUSH32(esp, 0); /* 0x4100BBA7: push 0 */
   2114     esi = ecx; /* 0x4100BBA9: mov esi, ecx */
   2115     PUSH32(esp, eax); /* 0x4100BBAB: push eax */
   2116     SET_LO8(ebx, 1); /* 0x4100BBAC: mov bl, 1 */
   2117     RECOMP_ICALL(MEM32(0x4100F010)); /* 0x4100BBAE: call dword ptr [0x4100f010] */
   2118     RECOMP_FLAGS_IN();
   2119     /* cmp eax, 0x80u */ /* 0x4100BBB4: cmp eax, 0x80 */
   2120     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x80u);
   2121     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2122     _flag_k = FK_CMP;
   2123     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100BBBF; /* 0x4100BBB9: je 0x4100bbbf */
   2124 L_4100BBBB:
   2125     /* test eax, eax */ /* 0x4100BBBB: test eax, eax */
   2126     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2127     _cf = 0;
   2128     _flag_k = FK_TEST;
   2129     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100BBFA; /* 0x4100BBBD: jne 0x4100bbfa */
   2130 L_4100BBBF:
   2131     SET_LO8(eax, MEM8(esi + 0x63)); /* 0x4100BBBF: mov al, byte ptr [esi + 0x63] */
   2132     ecx = esi; /* 0x4100BBC2: mov ecx, esi */
   2133     /* test LO8(eax), LO8(eax) */ /* 0x4100BBC4: test al, al */
   2134     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2135     _cf = 0;
   2136     _flag_k = FK_NARROW(FK_TEST, 24);
   2137     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100BBCF; /* 0x4100BBC6: jne 0x4100bbcf */
   2138 L_4100BBC8:
   2139     RECOMP_ICALL(0x4100B5A0u); /* 0x4100BBC8: call 0x4100b5a0 */ /* not lifted */
   2140     RECOMP_FLAGS_IN();
   2141     goto L_4100BBD4; /* 0x4100BBCD: jmp 0x4100bbd4 */
   2142 L_4100BBCF:
   2143     RECOMP_ICALL(0x4100B8A0u); /* 0x4100BBCF: call 0x4100b8a0 */ /* not lifted */
   2144     RECOMP_FLAGS_IN();
   2145 L_4100BBD4:
   2146     ecx = MEM32(esi + 0x20); /* 0x4100BBD4: mov ecx, dword ptr [esi + 0x20] */
   2147     RECOMP_ICALL(0x41001E40u); /* 0x4100BBD7: call 0x41001e40 */ /* not lifted */
   2148     RECOMP_FLAGS_IN();
   2149     SET_LO8(ecx, MEM8(esi + 0xCD)); /* 0x4100BBDC: mov cl, byte ptr [esi + 0xcd] */
   2150     /* test LO8(ecx), LO8(ecx) */ /* 0x4100BBE2: test cl, cl */
   2151     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   2152     _cf = 0;
   2153     _flag_k = FK_NARROW(FK_TEST, 24);
   2154     SET_LO8(ebx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x4100BBE4: sete bl */
   2155     MEM8(esi + 0xCC) = (uint8_t)(LO8(ebx)); /* 0x4100BBE7: mov byte ptr [esi + 0xcc], bl */
   2156     ecx = MEM32(0x41014A94); /* 0x4100BBED: mov ecx, dword ptr [0x41014a94] */
   2157     PUSH32(esp, ecx); /* 0x4100BBF3: push ecx */
   2158     RECOMP_ICALL(MEM32(0x4100F01C)); /* 0x4100BBF4: call dword ptr [0x4100f01c] */
   2159     RECOMP_FLAGS_IN();
   2160 L_4100BBFA:
   2161     SET_LO8(eax, LO8(ebx)); /* 0x4100BBFA: mov al, bl */
   2162     esi = POP32_VAL(esp); /* 0x4100BBFC: pop esi */
   2163     ebx = POP32_VAL(esp); /* 0x4100BBFD: pop ebx */
   2164     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100BBFE: ret  */
   2165     RECOMP_REGS_OUT();
   2166 }
   2167 
   2168 void sub_4100BC00(void) {
   2169     int _fpu_cmp = 0;
   2170     uint32_t _cf = 0;
   2171     int _df = 1;
   2172     uint32_t _flag_k = FK_NONE;
   2173     uint32_t _flag_a = 0, _flag_b = 0;
   2174     uint32_t _itail_tgt = 0;
   2175     RECOMP_REGS_LOCALS
   2176     RECOMP_ENTER(0x4100BC00u);
   2177 
   2178 L_4100BC00:
   2179     PUSH32(esp, ebp); /* 0x4100BC00: push ebp */
   2180     ebp = esp; /* 0x4100BC01: mov ebp, esp */
   2181     PUSH32(esp, esi); /* 0x4100BC03: push esi */
   2182     esi = MEM32(ebp + 0x8); /* 0x4100BC04: mov esi, dword ptr [ebp + 8] */
   2183     ecx = esi; /* 0x4100BC07: mov ecx, esi */
   2184     RECOMP_ICALL(0x4100BBA0u); /* 0x4100BC09: call 0x4100bba0 */ /* not lifted */
   2185     RECOMP_FLAGS_IN();
   2186     /* cmp LO8(eax), 1 */ /* 0x4100BC0E: cmp al, 1 */
   2187     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2188     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2189     _flag_k = FK_NARROW(FK_CMP, 24);
   2190     if (CMP_NE(_flag_a, _flag_b)) goto L_4100BC29; /* 0x4100BC10: jne 0x4100bc29 */
   2191 L_4100BC12:
   2192     PUSH32(esp, edi); /* 0x4100BC12: push edi */
   2193     edi = MEM32(0x4100F008); /* 0x4100BC13: mov edi, dword ptr [0x4100f008] */
   2194 L_4100BC19:
   2195     PUSH32(esp, 0xAu); /* 0x4100BC19: push 0xa */
   2196     RECOMP_ICALL(edi); /* 0x4100BC1B: call edi */
   2197     RECOMP_FLAGS_IN();
   2198     ecx = esi; /* 0x4100BC1D: mov ecx, esi */
   2199     RECOMP_ICALL(0x4100BBA0u); /* 0x4100BC1F: call 0x4100bba0 */ /* not lifted */
   2200     RECOMP_FLAGS_IN();
   2201     /* cmp LO8(eax), 1 */ /* 0x4100BC24: cmp al, 1 */
   2202     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2203     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2204     _flag_k = FK_NARROW(FK_CMP, 24);
   2205     RECOMP_BACKEDGE();
   2206     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100BC19; /* 0x4100BC26: je 0x4100bc19 */
   2207 L_4100BC28:
   2208     edi = POP32_VAL(esp); /* 0x4100BC28: pop edi */
   2209 L_4100BC29:
   2210     RECOMP_ICALL(MEM32(0x4100F0D0)); /* 0x4100BC29: call dword ptr [0x4100f0d0] */
   2211     RECOMP_FLAGS_IN();
   2212     esi = POP32_VAL(esp); /* 0x4100BC2F: pop esi */
   2213     ebp = POP32_VAL(esp); /* 0x4100BC30: pop ebp */
   2214     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100BC31: ret  */
   2215     RECOMP_REGS_OUT();
   2216 }
   2217 
   2218 void sub_4100BC40(void) {
   2219     int _fpu_cmp = 0;
   2220     uint32_t _cf = 0;
   2221     int _df = 1;
   2222     uint32_t _flag_k = FK_NONE;
   2223     uint32_t _flag_a = 0, _flag_b = 0;
   2224     uint32_t _itail_tgt = 0;
   2225     RECOMP_REGS_LOCALS
   2226     RECOMP_ENTER(0x4100BC40u);
   2227 
   2228 L_4100BC40:
   2229     PUSH32(esp, esi); /* 0x4100BC40: push esi */
   2230     esi = ecx; /* 0x4100BC41: mov esi, ecx */
   2231     RECOMP_ICALL(MEM32(0x4100F17C)); /* 0x4100BC43: call dword ptr [0x4100f17c] */
   2232     RECOMP_FLAGS_IN();
   2233     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2234     eax = 0; /* 0x4100BC49: xor eax, eax */
   2235     _cf = 0;
   2236     _flag_k = FK_TEST;
   2237     MEM32(esi) = 0x4100F264u; /* 0x4100BC4B: mov dword ptr [esi], 0x4100f264 */
   2238     MEM32(esi + 0x8) = eax; /* 0x4100BC51: mov dword ptr [esi + 8], eax */
   2239     MEM32(esi + 0x14) = eax; /* 0x4100BC54: mov dword ptr [esi + 0x14], eax */
   2240     MEM32(esi + 0x18) = eax; /* 0x4100BC57: mov dword ptr [esi + 0x18], eax */
   2241     MEM32(esi + 0x1C) = eax; /* 0x4100BC5A: mov dword ptr [esi + 0x1c], eax */
   2242     MEM32(esi + 0x20) = eax; /* 0x4100BC5D: mov dword ptr [esi + 0x20], eax */
   2243     MEM32(esi + 0xC) = eax; /* 0x4100BC60: mov dword ptr [esi + 0xc], eax */
   2244     MEM32(esi + 0x10) = eax; /* 0x4100BC63: mov dword ptr [esi + 0x10], eax */
   2245     MEM32(esi + 0x24) = eax; /* 0x4100BC66: mov dword ptr [esi + 0x24], eax */
   2246     MEM32(esi + 0x2C) = eax; /* 0x4100BC69: mov dword ptr [esi + 0x2c], eax */
   2247     MEM32(esi + 0x30) = eax; /* 0x4100BC6C: mov dword ptr [esi + 0x30], eax */
   2248     MEM32(esi + 0x28) = 0xFFFFFFFFu; /* 0x4100BC6F: mov dword ptr [esi + 0x28], 0xffffffff */
   2249     MEM32(esi + 0x34) = 1; /* 0x4100BC76: mov dword ptr [esi + 0x34], 1 */
   2250     eax = esi; /* 0x4100BC7D: mov eax, esi */
   2251     esi = POP32_VAL(esp); /* 0x4100BC7F: pop esi */
   2252     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100BC80: ret  */
   2253     RECOMP_REGS_OUT();
   2254 }
   2255 
   2256 void sub_4100BC90(void) {
   2257     int _fpu_cmp = 0;
   2258     uint32_t _cf = 0;
   2259     int _df = 1;
   2260     uint32_t _flag_k = FK_NONE;
   2261     uint32_t _flag_a = 0, _flag_b = 0;
   2262     uint32_t _itail_tgt = 0;
   2263     RECOMP_REGS_LOCALS
   2264     RECOMP_ENTER(0x4100BC90u);
   2265 
   2266 L_4100BC90:
   2267     PUSH32(esp, ebp); /* 0x4100BC90: push ebp */
   2268     ebp = esp; /* 0x4100BC91: mov ebp, esp */
   2269     PUSH32(esp, esi); /* 0x4100BC93: push esi */
   2270     esi = ecx; /* 0x4100BC94: mov esi, ecx */
   2271     RECOMP_ICALL(0x4100C430u); /* 0x4100BC96: call 0x4100c430 */ /* not lifted */
   2272     RECOMP_FLAGS_IN();
   2273     /* test MEM8(ebp + 0x8), 1 */ /* 0x4100BC9B: test byte ptr [ebp + 8], 1 */
   2274     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   2275     _cf = 0;
   2276     _flag_k = FK_NARROW(FK_TEST, 24);
   2277     if (TEST_Z(_flag_a, _flag_b)) goto L_4100BCAA; /* 0x4100BC9F: je 0x4100bcaa */
   2278 L_4100BCA1:
   2279     PUSH32(esp, esi); /* 0x4100BCA1: push esi */
   2280     RECOMP_ICALL(0x4100DB20u); /* 0x4100BCA2: call 0x4100db20 */ /* not lifted */
   2281     RECOMP_FLAGS_IN();
   2282     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2283     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2284     esp = esp + 4; /* 0x4100BCA7: add esp, 4 */
   2285     _flag_k = FK_ADD;
   2286 L_4100BCAA:
   2287     eax = esi; /* 0x4100BCAA: mov eax, esi */
   2288     esi = POP32_VAL(esp); /* 0x4100BCAC: pop esi */
   2289     ebp = POP32_VAL(esp); /* 0x4100BCAD: pop ebp */
   2290     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100BCAE: ret 4 */
   2291     RECOMP_REGS_OUT();
   2292 }
   2293 
   2294 void sub_4100BCC0(void) {
   2295     int _fpu_cmp = 0;
   2296     uint32_t _cf = 0;
   2297     int _df = 1;
   2298     uint32_t _flag_k = FK_NONE;
   2299     uint32_t _flag_a = 0, _flag_b = 0;
   2300     uint32_t _itail_tgt = 0;
   2301     RECOMP_REGS_LOCALS
   2302     RECOMP_ENTER(0x4100BCC0u);
   2303 
   2304 L_4100BCC0:
   2305     PUSH32(esp, ebp); /* 0x4100BCC0: push ebp */
   2306     ebp = esp; /* 0x4100BCC1: mov ebp, esp */
   2307     PUSH32(esp, 0xFFFFFFFFu); /* 0x4100BCC3: push -1 */
   2308     PUSH32(esp, 0x4100E7A9u); /* 0x4100BCC5: push 0x4100e7a9 */
   2309     eax = MEM32(FS_BASE + (0)); /* 0x4100BCCA: mov eax, dword ptr fs:[0] */
   2310     PUSH32(esp, eax); /* 0x4100BCD0: push eax */
   2311     MEM32(FS_BASE + (0)) = esp; /* 0x4100BCD1: mov dword ptr fs:[0], esp */
   2312     PUSH32(esp, ecx); /* 0x4100BCD8: push ecx */
   2313     PUSH32(esp, ebx); /* 0x4100BCD9: push ebx */
   2314     PUSH32(esp, esi); /* 0x4100BCDA: push esi */
   2315     esi = MEM32(ebp + 0x8); /* 0x4100BCDB: mov esi, dword ptr [ebp + 8] */
   2316     PUSH32(esp, edi); /* 0x4100BCDE: push edi */
   2317     edi = ecx; /* 0x4100BCDF: mov edi, ecx */
   2318     PUSH32(esp, esi); /* 0x4100BCE1: push esi */
   2319     MEM32(ebp + (-0x10)) = edi; /* 0x4100BCE2: mov dword ptr [ebp - 0x10], edi */
   2320     RECOMP_ICALL(MEM32(0x4100F158)); /* 0x4100BCE5: call dword ptr [0x4100f158] */
   2321     RECOMP_FLAGS_IN();
   2322     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2323     ebx = 0; /* 0x4100BCEB: xor ebx, ebx */
   2324     _cf = 0;
   2325     _flag_k = FK_TEST;
   2326     ecx = esi; /* 0x4100BCED: mov ecx, esi */
   2327     MEM32(ebp + (-0x4)) = ebx; /* 0x4100BCEF: mov dword ptr [ebp - 4], ebx */
   2328     MEM32(edi) = 0x4100F264u; /* 0x4100BCF2: mov dword ptr [edi], 0x4100f264 */
   2329     RECOMP_ICALL(MEM32(0x4100F15C)); /* 0x4100BCF8: call dword ptr [0x4100f15c] */
   2330     RECOMP_FLAGS_IN();
   2331     esi = eax; /* 0x4100BCFE: mov esi, eax */
   2332     eax = ebp + 0x8; /* 0x4100BD00: lea eax, [ebp + 8] */
   2333     PUSH32(esp, ebx); /* 0x4100BD03: push ebx */
   2334     PUSH32(esp, eax); /* 0x4100BD04: push eax */
   2335     PUSH32(esp, 0x410144C0u); /* 0x4100BD05: push 0x410144c0 */
   2336     ecx = esi; /* 0x4100BD0A: mov ecx, esi */
   2337     MEM32(edi + 0xC) = ebx; /* 0x4100BD0C: mov dword ptr [edi + 0xc], ebx */
   2338     MEM32(edi + 0x10) = ebx; /* 0x4100BD0F: mov dword ptr [edi + 0x10], ebx */
   2339     RECOMP_ICALL(MEM32(0x4100F164)); /* 0x4100BD12: call dword ptr [0x4100f164] */
   2340     RECOMP_FLAGS_IN();
   2341     /* test eax, eax */ /* 0x4100BD18: test eax, eax */
   2342     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2343     _cf = 0;
   2344     _flag_k = FK_TEST;
   2345     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100BD22; /* 0x4100BD1A: jne 0x4100bd22 */
   2346 L_4100BD1C:
   2347     ecx = MEM32(ebp + 0x8); /* 0x4100BD1C: mov ecx, dword ptr [ebp + 8] */
   2348     MEM32(edi + 0x8) = ecx; /* 0x4100BD1F: mov dword ptr [edi + 8], ecx */
   2349 L_4100BD22:
   2350     edx = ebp + 0x8; /* 0x4100BD22: lea edx, [ebp + 8] */
   2351     PUSH32(esp, ebx); /* 0x4100BD25: push ebx */
   2352     ebx = MEM32(0x4100F16C); /* 0x4100BD26: mov ebx, dword ptr [0x4100f16c] */
   2353     PUSH32(esp, edx); /* 0x4100BD2C: push edx */
   2354     PUSH32(esp, 0x41014350u); /* 0x4100BD2D: push 0x41014350 */
   2355     ecx = esi; /* 0x4100BD32: mov ecx, esi */
   2356     RECOMP_ICALL(ebx); /* 0x4100BD34: call ebx */
   2357     RECOMP_FLAGS_IN();
   2358     /* test eax, eax */ /* 0x4100BD36: test eax, eax */
   2359     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2360     _cf = 0;
   2361     _flag_k = FK_TEST;
   2362     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100BD60; /* 0x4100BD38: jne 0x4100bd60 */
   2363 L_4100BD3A:
   2364     PUSH32(esp, eax); /* 0x4100BD3A: push eax */
   2365     PUSH32(esp, 0x41014098u); /* 0x4100BD3B: push 0x41014098 */
   2366     PUSH32(esp, 0x41014020u); /* 0x4100BD40: push 0x41014020 */
   2367     PUSH32(esp, eax); /* 0x4100BD45: push eax */
   2368     eax = MEM32(ebp + 0x8); /* 0x4100BD46: mov eax, dword ptr [ebp + 8] */
   2369     PUSH32(esp, eax); /* 0x4100BD49: push eax */
   2370     RECOMP_ICALL(0x4100DBCAu); /* 0x4100BD4A: call 0x4100dbca */ /* not lifted */
   2371     RECOMP_FLAGS_IN();
   2372     ecx = MEM32(ebp + 0x8); /* 0x4100BD4F: mov ecx, dword ptr [ebp + 8] */
   2373     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2374     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2375     esp = esp + 0x14u; /* 0x4100BD52: add esp, 0x14 */
   2376     _flag_k = FK_ADD;
   2377     /* test ecx, ecx */ /* 0x4100BD55: test ecx, ecx */
   2378     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2379     _cf = 0;
   2380     _flag_k = FK_TEST;
   2381     if (TEST_Z(_flag_a, _flag_b)) goto L_4100BD5D; /* 0x4100BD57: je 0x4100bd5d */
   2382 L_4100BD59:
   2383     /* test eax, eax */ /* 0x4100BD59: test eax, eax */
   2384     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2385     _cf = 0;
   2386     _flag_k = FK_TEST;
   2387     if (TEST_Z(_flag_a, _flag_b)) goto L_4100BD60; /* 0x4100BD5B: je 0x4100bd60 */
   2388 L_4100BD5D:
   2389     MEM32(edi + 0x14) = eax; /* 0x4100BD5D: mov dword ptr [edi + 0x14], eax */
   2390 L_4100BD60:
   2391     ecx = ebp + 0x8; /* 0x4100BD60: lea ecx, [ebp + 8] */
   2392     PUSH32(esp, 1); /* 0x4100BD63: push 1 */
   2393     PUSH32(esp, ecx); /* 0x4100BD65: push ecx */
   2394     PUSH32(esp, 0x41014350u); /* 0x4100BD66: push 0x41014350 */
   2395     ecx = esi; /* 0x4100BD6B: mov ecx, esi */
   2396     RECOMP_ICALL(ebx); /* 0x4100BD6D: call ebx */
   2397     RECOMP_FLAGS_IN();
   2398     /* test eax, eax */ /* 0x4100BD6F: test eax, eax */
   2399     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2400     _cf = 0;
   2401     _flag_k = FK_TEST;
   2402     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100BD99; /* 0x4100BD71: jne 0x4100bd99 */
   2403 L_4100BD73:
   2404     edx = MEM32(ebp + 0x8); /* 0x4100BD73: mov edx, dword ptr [ebp + 8] */
   2405     PUSH32(esp, eax); /* 0x4100BD76: push eax */
   2406     PUSH32(esp, 0x41014098u); /* 0x4100BD77: push 0x41014098 */
   2407     PUSH32(esp, 0x41014020u); /* 0x4100BD7C: push 0x41014020 */
   2408     PUSH32(esp, eax); /* 0x4100BD81: push eax */
   2409     PUSH32(esp, edx); /* 0x4100BD82: push edx */
   2410     RECOMP_ICALL(0x4100DBCAu); /* 0x4100BD83: call 0x4100dbca */ /* not lifted */
   2411     RECOMP_FLAGS_IN();
   2412     ecx = MEM32(ebp + 0x8); /* 0x4100BD88: mov ecx, dword ptr [ebp + 8] */
   2413     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2414     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2415     esp = esp + 0x14u; /* 0x4100BD8B: add esp, 0x14 */
   2416     _flag_k = FK_ADD;
   2417     /* test ecx, ecx */ /* 0x4100BD8E: test ecx, ecx */
   2418     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2419     _cf = 0;
   2420     _flag_k = FK_TEST;
   2421     if (TEST_Z(_flag_a, _flag_b)) goto L_4100BD96; /* 0x4100BD90: je 0x4100bd96 */
   2422 L_4100BD92:
   2423     /* test eax, eax */ /* 0x4100BD92: test eax, eax */
   2424     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2425     _cf = 0;
   2426     _flag_k = FK_TEST;
   2427     if (TEST_Z(_flag_a, _flag_b)) goto L_4100BD99; /* 0x4100BD94: je 0x4100bd99 */
   2428 L_4100BD96:
   2429     MEM32(edi + 0x18) = eax; /* 0x4100BD96: mov dword ptr [edi + 0x18], eax */
   2430 L_4100BD99:
   2431     eax = ebp + 0x8; /* 0x4100BD99: lea eax, [ebp + 8] */
   2432     PUSH32(esp, 0); /* 0x4100BD9C: push 0 */
   2433     PUSH32(esp, eax); /* 0x4100BD9E: push eax */
   2434     PUSH32(esp, 0x410144B8u); /* 0x4100BD9F: push 0x410144b8 */
   2435     ecx = esi; /* 0x4100BDA4: mov ecx, esi */
   2436     RECOMP_ICALL(ebx); /* 0x4100BDA6: call ebx */
   2437     RECOMP_FLAGS_IN();
   2438     /* test eax, eax */ /* 0x4100BDA8: test eax, eax */
   2439     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2440     _cf = 0;
   2441     _flag_k = FK_TEST;
   2442     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100BDD2; /* 0x4100BDAA: jne 0x4100bdd2 */
   2443 L_4100BDAC:
   2444     ecx = MEM32(ebp + 0x8); /* 0x4100BDAC: mov ecx, dword ptr [ebp + 8] */
   2445     PUSH32(esp, eax); /* 0x4100BDAF: push eax */
   2446     PUSH32(esp, 0x41014098u); /* 0x4100BDB0: push 0x41014098 */
   2447     PUSH32(esp, 0x41014020u); /* 0x4100BDB5: push 0x41014020 */
   2448     PUSH32(esp, eax); /* 0x4100BDBA: push eax */
   2449     PUSH32(esp, ecx); /* 0x4100BDBB: push ecx */
   2450     RECOMP_ICALL(0x4100DBCAu); /* 0x4100BDBC: call 0x4100dbca */ /* not lifted */
   2451     RECOMP_FLAGS_IN();
   2452     ecx = MEM32(ebp + 0x8); /* 0x4100BDC1: mov ecx, dword ptr [ebp + 8] */
   2453     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2454     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2455     esp = esp + 0x14u; /* 0x4100BDC4: add esp, 0x14 */
   2456     _flag_k = FK_ADD;
   2457     /* test ecx, ecx */ /* 0x4100BDC7: test ecx, ecx */
   2458     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2459     _cf = 0;
   2460     _flag_k = FK_TEST;
   2461     if (TEST_Z(_flag_a, _flag_b)) goto L_4100BDCF; /* 0x4100BDC9: je 0x4100bdcf */
   2462 L_4100BDCB:
   2463     /* test eax, eax */ /* 0x4100BDCB: test eax, eax */
   2464     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2465     _cf = 0;
   2466     _flag_k = FK_TEST;
   2467     if (TEST_Z(_flag_a, _flag_b)) goto L_4100BDD2; /* 0x4100BDCD: je 0x4100bdd2 */
   2468 L_4100BDCF:
   2469     MEM32(edi + 0x1C) = eax; /* 0x4100BDCF: mov dword ptr [edi + 0x1c], eax */
   2470 L_4100BDD2:
   2471     edx = ebp + 0x8; /* 0x4100BDD2: lea edx, [ebp + 8] */
   2472     PUSH32(esp, 1); /* 0x4100BDD5: push 1 */
   2473     PUSH32(esp, edx); /* 0x4100BDD7: push edx */
   2474     PUSH32(esp, 0x410144B8u); /* 0x4100BDD8: push 0x410144b8 */
   2475     ecx = esi; /* 0x4100BDDD: mov ecx, esi */
   2476     RECOMP_ICALL(ebx); /* 0x4100BDDF: call ebx */
   2477     RECOMP_FLAGS_IN();
   2478     /* test eax, eax */ /* 0x4100BDE1: test eax, eax */
   2479     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2480     _cf = 0;
   2481     _flag_k = FK_TEST;
   2482     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100BE0B; /* 0x4100BDE3: jne 0x4100be0b */
   2483 L_4100BDE5:
   2484     PUSH32(esp, eax); /* 0x4100BDE5: push eax */
   2485     PUSH32(esp, 0x41014098u); /* 0x4100BDE6: push 0x41014098 */
   2486     PUSH32(esp, 0x41014020u); /* 0x4100BDEB: push 0x41014020 */
   2487     PUSH32(esp, eax); /* 0x4100BDF0: push eax */
   2488     eax = MEM32(ebp + 0x8); /* 0x4100BDF1: mov eax, dword ptr [ebp + 8] */
   2489     PUSH32(esp, eax); /* 0x4100BDF4: push eax */
   2490     RECOMP_ICALL(0x4100DBCAu); /* 0x4100BDF5: call 0x4100dbca */ /* not lifted */
   2491     RECOMP_FLAGS_IN();
   2492     ecx = MEM32(ebp + 0x8); /* 0x4100BDFA: mov ecx, dword ptr [ebp + 8] */
   2493     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2494     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2495     esp = esp + 0x14u; /* 0x4100BDFD: add esp, 0x14 */
   2496     _flag_k = FK_ADD;
   2497     /* test ecx, ecx */ /* 0x4100BE00: test ecx, ecx */
   2498     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2499     _cf = 0;
   2500     _flag_k = FK_TEST;
   2501     if (TEST_Z(_flag_a, _flag_b)) goto L_4100BE08; /* 0x4100BE02: je 0x4100be08 */
   2502 L_4100BE04:
   2503     /* test eax, eax */ /* 0x4100BE04: test eax, eax */
   2504     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2505     _cf = 0;
   2506     _flag_k = FK_TEST;
   2507     if (TEST_Z(_flag_a, _flag_b)) goto L_4100BE0B; /* 0x4100BE06: je 0x4100be0b */
   2508 L_4100BE08:
   2509     MEM32(edi + 0x20) = eax; /* 0x4100BE08: mov dword ptr [edi + 0x20], eax */
   2510 L_4100BE0B:
   2511     eax = MEM32(0x41014A98); /* 0x4100BE0B: mov eax, dword ptr [0x41014a98] */
   2512     /* cmp eax, 1 */ /* 0x4100BE10: cmp eax, 1 */
   2513     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2514     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2515     _flag_k = FK_CMP;
   2516     if (CMP_NE(_flag_a, _flag_b)) goto L_4100BE89; /* 0x4100BE13: jne 0x4100be89 */
   2517 L_4100BE15:
   2518     ecx = ebp + 0x8; /* 0x4100BE15: lea ecx, [ebp + 8] */
   2519     PUSH32(esp, 0); /* 0x4100BE18: push 0 */
   2520     PUSH32(esp, ecx); /* 0x4100BE1A: push ecx */
   2521     PUSH32(esp, 0x410141FCu); /* 0x4100BE1B: push 0x410141fc */
   2522     ecx = esi; /* 0x4100BE20: mov ecx, esi */
   2523     RECOMP_ICALL(ebx); /* 0x4100BE22: call ebx */
   2524     RECOMP_FLAGS_IN();
   2525     /* test eax, eax */ /* 0x4100BE24: test eax, eax */
   2526     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2527     _cf = 0;
   2528     _flag_k = FK_TEST;
   2529     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100BE4E; /* 0x4100BE26: jne 0x4100be4e */
   2530 L_4100BE28:
   2531     edx = MEM32(ebp + 0x8); /* 0x4100BE28: mov edx, dword ptr [ebp + 8] */
   2532     PUSH32(esp, eax); /* 0x4100BE2B: push eax */
   2533     PUSH32(esp, 0x410142D0u); /* 0x4100BE2C: push 0x410142d0 */
   2534     PUSH32(esp, 0x41014020u); /* 0x4100BE31: push 0x41014020 */
   2535     PUSH32(esp, eax); /* 0x4100BE36: push eax */
   2536     PUSH32(esp, edx); /* 0x4100BE37: push edx */
   2537     RECOMP_ICALL(0x4100DBCAu); /* 0x4100BE38: call 0x4100dbca */ /* not lifted */
   2538     RECOMP_FLAGS_IN();
   2539     ecx = MEM32(ebp + 0x8); /* 0x4100BE3D: mov ecx, dword ptr [ebp + 8] */
   2540     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2541     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2542     esp = esp + 0x14u; /* 0x4100BE40: add esp, 0x14 */
   2543     _flag_k = FK_ADD;
   2544     /* test ecx, ecx */ /* 0x4100BE43: test ecx, ecx */
   2545     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2546     _cf = 0;
   2547     _flag_k = FK_TEST;
   2548     if (TEST_Z(_flag_a, _flag_b)) goto L_4100BE4B; /* 0x4100BE45: je 0x4100be4b */
   2549 L_4100BE47:
   2550     /* test eax, eax */ /* 0x4100BE47: test eax, eax */
   2551     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2552     _cf = 0;
   2553     _flag_k = FK_TEST;
   2554     if (TEST_Z(_flag_a, _flag_b)) goto L_4100BE4E; /* 0x4100BE49: je 0x4100be4e */
   2555 L_4100BE4B:
   2556     MEM32(edi + 0xC) = eax; /* 0x4100BE4B: mov dword ptr [edi + 0xc], eax */
   2557 L_4100BE4E:
   2558     eax = ebp + 0x8; /* 0x4100BE4E: lea eax, [ebp + 8] */
   2559     PUSH32(esp, 1); /* 0x4100BE51: push 1 */
   2560     PUSH32(esp, eax); /* 0x4100BE53: push eax */
   2561     PUSH32(esp, 0x410141FCu); /* 0x4100BE54: push 0x410141fc */
   2562     ecx = esi; /* 0x4100BE59: mov ecx, esi */
   2563     RECOMP_ICALL(ebx); /* 0x4100BE5B: call ebx */
   2564     RECOMP_FLAGS_IN();
   2565     /* test eax, eax */ /* 0x4100BE5D: test eax, eax */
   2566     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2567     _cf = 0;
   2568     _flag_k = FK_TEST;
   2569     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100BEC6; /* 0x4100BE5F: jne 0x4100bec6 */
   2570 L_4100BE61:
   2571     ecx = MEM32(ebp + 0x8); /* 0x4100BE61: mov ecx, dword ptr [ebp + 8] */
   2572     PUSH32(esp, eax); /* 0x4100BE64: push eax */
   2573     PUSH32(esp, 0x410142D0u); /* 0x4100BE65: push 0x410142d0 */
   2574     PUSH32(esp, 0x41014020u); /* 0x4100BE6A: push 0x41014020 */
   2575     PUSH32(esp, eax); /* 0x4100BE6F: push eax */
   2576     PUSH32(esp, ecx); /* 0x4100BE70: push ecx */
   2577     RECOMP_ICALL(0x4100DBCAu); /* 0x4100BE71: call 0x4100dbca */ /* not lifted */
   2578     RECOMP_FLAGS_IN();
   2579     ecx = MEM32(ebp + 0x8); /* 0x4100BE76: mov ecx, dword ptr [ebp + 8] */
   2580     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2581     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2582     esp = esp + 0x14u; /* 0x4100BE79: add esp, 0x14 */
   2583     _flag_k = FK_ADD;
   2584     /* test ecx, ecx */ /* 0x4100BE7C: test ecx, ecx */
   2585     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2586     _cf = 0;
   2587     _flag_k = FK_TEST;
   2588     if (TEST_Z(_flag_a, _flag_b)) goto L_4100BE84; /* 0x4100BE7E: je 0x4100be84 */
   2589 L_4100BE80:
   2590     /* test eax, eax */ /* 0x4100BE80: test eax, eax */
   2591     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2592     _cf = 0;
   2593     _flag_k = FK_TEST;
   2594     if (TEST_Z(_flag_a, _flag_b)) goto L_4100BEC6; /* 0x4100BE82: je 0x4100bec6 */
   2595 L_4100BE84:
   2596     MEM32(edi + 0x10) = eax; /* 0x4100BE84: mov dword ptr [edi + 0x10], eax */
   2597     goto L_4100BEC6; /* 0x4100BE87: jmp 0x4100bec6 */
   2598 L_4100BE89:
   2599     /* cmp eax, 2 */ /* 0x4100BE89: cmp eax, 2 */
   2600     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   2601     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2602     _flag_k = FK_CMP;
   2603     if (CMP_NE(_flag_a, _flag_b)) goto L_4100BEC6; /* 0x4100BE8C: jne 0x4100bec6 */
   2604 L_4100BE8E:
   2605     ebx = MEM32(0x4100F164); /* 0x4100BE8E: mov ebx, dword ptr [0x4100f164] */
   2606     edx = ebp + 0x8; /* 0x4100BE94: lea edx, [ebp + 8] */
   2607     PUSH32(esp, 0); /* 0x4100BE97: push 0 */
   2608     PUSH32(esp, edx); /* 0x4100BE99: push edx */
   2609     PUSH32(esp, 0x410144B0u); /* 0x4100BE9A: push 0x410144b0 */
   2610     ecx = esi; /* 0x4100BE9F: mov ecx, esi */
   2611     RECOMP_ICALL(ebx); /* 0x4100BEA1: call ebx */
   2612     RECOMP_FLAGS_IN();
   2613     /* test eax, eax */ /* 0x4100BEA3: test eax, eax */
   2614     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2615     _cf = 0;
   2616     _flag_k = FK_TEST;
   2617     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100BEAD; /* 0x4100BEA5: jne 0x4100bead */
   2618 L_4100BEA7:
   2619     eax = MEM32(ebp + 0x8); /* 0x4100BEA7: mov eax, dword ptr [ebp + 8] */
   2620     MEM32(edi + 0xC) = eax; /* 0x4100BEAA: mov dword ptr [edi + 0xc], eax */
   2621 L_4100BEAD:
   2622     ecx = ebp + 0x8; /* 0x4100BEAD: lea ecx, [ebp + 8] */
   2623     PUSH32(esp, 1); /* 0x4100BEB0: push 1 */
   2624     PUSH32(esp, ecx); /* 0x4100BEB2: push ecx */
   2625     PUSH32(esp, 0x410144B0u); /* 0x4100BEB3: push 0x410144b0 */
   2626     ecx = esi; /* 0x4100BEB8: mov ecx, esi */
   2627     RECOMP_ICALL(ebx); /* 0x4100BEBA: call ebx */
   2628     RECOMP_FLAGS_IN();
   2629     /* test eax, eax */ /* 0x4100BEBC: test eax, eax */
   2630     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2631     _cf = 0;
   2632     _flag_k = FK_TEST;
   2633     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100BEC6; /* 0x4100BEBE: jne 0x4100bec6 */
   2634 L_4100BEC0:
   2635     edx = MEM32(ebp + 0x8); /* 0x4100BEC0: mov edx, dword ptr [ebp + 8] */
   2636     MEM32(edi + 0x10) = edx; /* 0x4100BEC3: mov dword ptr [edi + 0x10], edx */
   2637 L_4100BEC6:
   2638     eax = ebp + 0x8; /* 0x4100BEC6: lea eax, [ebp + 8] */
   2639     PUSH32(esp, 0); /* 0x4100BEC9: push 0 */
   2640     PUSH32(esp, eax); /* 0x4100BECB: push eax */
   2641     PUSH32(esp, 0x410144ACu); /* 0x4100BECC: push 0x410144ac */
   2642     ecx = esi; /* 0x4100BED1: mov ecx, esi */
   2643     RECOMP_ICALL(MEM32(0x4100F164)); /* 0x4100BED3: call dword ptr [0x4100f164] */
   2644     RECOMP_FLAGS_IN();
   2645     /* test eax, eax */ /* 0x4100BED9: test eax, eax */
   2646     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2647     _cf = 0;
   2648     _flag_k = FK_TEST;
   2649     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100BEE3; /* 0x4100BEDB: jne 0x4100bee3 */
   2650 L_4100BEDD:
   2651     ecx = MEM32(ebp + 0x8); /* 0x4100BEDD: mov ecx, dword ptr [ebp + 8] */
   2652     MEM32(edi + 0x24) = ecx; /* 0x4100BEE0: mov dword ptr [edi + 0x24], ecx */
   2653 L_4100BEE3:
   2654     edx = ebp + 0x8; /* 0x4100BEE3: lea edx, [ebp + 8] */
   2655     ebx = edi + 0x2C; /* 0x4100BEE6: lea ebx, [edi + 0x2c] */
   2656     PUSH32(esp, 0); /* 0x4100BEE9: push 0 */
   2657     PUSH32(esp, edx); /* 0x4100BEEB: push edx */
   2658     PUSH32(esp, 0x410144A8u); /* 0x4100BEEC: push 0x410144a8 */
   2659     ecx = esi; /* 0x4100BEF1: mov ecx, esi */
   2660     MEM32(edi + 0x28) = 0; /* 0x4100BEF3: mov dword ptr [edi + 0x28], 0 */
   2661     MEM32(ebx) = 0xFFFFFFFFu; /* 0x4100BEFA: mov dword ptr [ebx], 0xffffffff */
   2662     RECOMP_ICALL(MEM32(0x4100F164)); /* 0x4100BF00: call dword ptr [0x4100f164] */
   2663     RECOMP_FLAGS_IN();
   2664     /* test eax, eax */ /* 0x4100BF06: test eax, eax */
   2665     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2666     _cf = 0;
   2667     _flag_k = FK_TEST;
   2668     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100BF10; /* 0x4100BF08: jne 0x4100bf10 */
   2669 L_4100BF0A:
   2670     eax = MEM32(ebp + 0x8); /* 0x4100BF0A: mov eax, dword ptr [ebp + 8] */
   2671     MEM32(edi + 0x28) = eax; /* 0x4100BF0D: mov dword ptr [edi + 0x28], eax */
   2672 L_4100BF10:
   2673     PUSH32(esp, 0); /* 0x4100BF10: push 0 */
   2674     PUSH32(esp, ebx); /* 0x4100BF12: push ebx */
   2675     PUSH32(esp, 0x410144A4u); /* 0x4100BF13: push 0x410144a4 */
   2676     ecx = esi; /* 0x4100BF18: mov ecx, esi */
   2677     RECOMP_ICALL(0x4100C8E0u); /* 0x4100BF1A: call 0x4100c8e0 */ /* not lifted */
   2678     RECOMP_FLAGS_IN();
   2679     ecx = edi + 0x30; /* 0x4100BF1F: lea ecx, [edi + 0x30] */
   2680     PUSH32(esp, 0); /* 0x4100BF22: push 0 */
   2681     PUSH32(esp, ecx); /* 0x4100BF24: push ecx */
   2682     PUSH32(esp, 0x4101449Cu); /* 0x4100BF25: push 0x4101449c */
   2683     ecx = esi; /* 0x4100BF2A: mov ecx, esi */
   2684     RECOMP_ICALL(0x4100C8E0u); /* 0x4100BF2C: call 0x4100c8e0 */ /* not lifted */
   2685     RECOMP_FLAGS_IN();
   2686     ecx = MEM32(ebp + (-0xC)); /* 0x4100BF31: mov ecx, dword ptr [ebp - 0xc] */
   2687     MEM32(edi + 0x34) = 1; /* 0x4100BF34: mov dword ptr [edi + 0x34], 1 */
   2688     eax = edi; /* 0x4100BF3B: mov eax, edi */
   2689     edi = POP32_VAL(esp); /* 0x4100BF3D: pop edi */
   2690     esi = POP32_VAL(esp); /* 0x4100BF3E: pop esi */
   2691     ebx = POP32_VAL(esp); /* 0x4100BF3F: pop ebx */
   2692     MEM32(FS_BASE + (0)) = ecx; /* 0x4100BF40: mov dword ptr fs:[0], ecx */
   2693     esp = ebp; /* 0x4100BF47: mov esp, ebp */
   2694     ebp = POP32_VAL(esp); /* 0x4100BF49: pop ebp */
   2695     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100BF4A: ret 4 */
   2696     RECOMP_REGS_OUT();
   2697 }
   2698 
   2699 void sub_4100BF50(void) {
   2700     int _fpu_cmp = 0;
   2701     uint32_t _cf = 0;
   2702     int _df = 1;
   2703     uint32_t _flag_k = FK_NONE;
   2704     uint32_t _flag_a = 0, _flag_b = 0;
   2705     uint32_t _itail_tgt = 0;
   2706     RECOMP_REGS_LOCALS
   2707     RECOMP_ENTER(0x4100BF50u);
   2708 
   2709 L_4100BF50:
   2710     PUSH32(esp, ebp); /* 0x4100BF50: push ebp */
   2711     ebp = esp; /* 0x4100BF51: mov ebp, esp */
   2712     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   2713     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2714     esp = esp - 0x18u; /* 0x4100BF53: sub esp, 0x18 */
   2715     _flag_k = FK_CMP;
   2716     PUSH32(esp, ebx); /* 0x4100BF56: push ebx */
   2717     PUSH32(esp, esi); /* 0x4100BF57: push esi */
   2718     PUSH32(esp, edi); /* 0x4100BF58: push edi */
   2719     edi = MEM32(ebp + 0x8); /* 0x4100BF59: mov edi, dword ptr [ebp + 8] */
   2720     esi = ecx; /* 0x4100BF5C: mov esi, ecx */
   2721     PUSH32(esp, edi); /* 0x4100BF5E: push edi */
   2722     RECOMP_ICALL(MEM32(0x4100F168)); /* 0x4100BF5F: call dword ptr [0x4100f168] */
   2723     RECOMP_FLAGS_IN();
   2724     ecx = edi; /* 0x4100BF65: mov ecx, edi */
   2725     RECOMP_ICALL(MEM32(0x4100F15C)); /* 0x4100BF67: call dword ptr [0x4100f15c] */
   2726     RECOMP_FLAGS_IN();
   2727     ebx = MEM32(0x4100F150); /* 0x4100BF6D: mov ebx, dword ptr [0x4100f150] */
   2728     edi = eax; /* 0x4100BF73: mov edi, eax */
   2729     eax = MEM32(esi + 0x8); /* 0x4100BF75: mov eax, dword ptr [esi + 8] */
   2730     ecx = edi; /* 0x4100BF78: mov ecx, edi */
   2731     PUSH32(esp, eax); /* 0x4100BF7A: push eax */
   2732     PUSH32(esp, 0x410144C0u); /* 0x4100BF7B: push 0x410144c0 */
   2733     RECOMP_ICALL(ebx); /* 0x4100BF80: call ebx */
   2734     RECOMP_FLAGS_IN();
   2735     ecx = MEM32(esi + 0x14); /* 0x4100BF82: mov ecx, dword ptr [esi + 0x14] */
   2736     PUSH32(esp, ecx); /* 0x4100BF85: push ecx */
   2737     PUSH32(esp, 0x41014350u); /* 0x4100BF86: push 0x41014350 */
   2738     ecx = edi; /* 0x4100BF8B: mov ecx, edi */
   2739     RECOMP_ICALL(MEM32(0x4100F138)); /* 0x4100BF8D: call dword ptr [0x4100f138] */
   2740     RECOMP_FLAGS_IN();
   2741     edx = MEM32(esi + 0x18); /* 0x4100BF93: mov edx, dword ptr [esi + 0x18] */
   2742     ecx = edi; /* 0x4100BF96: mov ecx, edi */
   2743     PUSH32(esp, edx); /* 0x4100BF98: push edx */
   2744     PUSH32(esp, 0x41014350u); /* 0x4100BF99: push 0x41014350 */
   2745     RECOMP_ICALL(MEM32(0x4100F138)); /* 0x4100BF9E: call dword ptr [0x4100f138] */
   2746     RECOMP_FLAGS_IN();
   2747     eax = MEM32(esi + 0x1C); /* 0x4100BFA4: mov eax, dword ptr [esi + 0x1c] */
   2748     ecx = edi; /* 0x4100BFA7: mov ecx, edi */
   2749     PUSH32(esp, eax); /* 0x4100BFA9: push eax */
   2750     PUSH32(esp, 0x410144B8u); /* 0x4100BFAA: push 0x410144b8 */
   2751     RECOMP_ICALL(MEM32(0x4100F138)); /* 0x4100BFAF: call dword ptr [0x4100f138] */
   2752     RECOMP_FLAGS_IN();
   2753     ecx = MEM32(esi + 0x20); /* 0x4100BFB5: mov ecx, dword ptr [esi + 0x20] */
   2754     PUSH32(esp, ecx); /* 0x4100BFB8: push ecx */
   2755     PUSH32(esp, 0x410144B8u); /* 0x4100BFB9: push 0x410144b8 */
   2756     ecx = edi; /* 0x4100BFBE: mov ecx, edi */
   2757     RECOMP_ICALL(MEM32(0x4100F138)); /* 0x4100BFC0: call dword ptr [0x4100f138] */
   2758     RECOMP_FLAGS_IN();
   2759     edx = MEM32(esi + 0xC); /* 0x4100BFC6: mov edx, dword ptr [esi + 0xc] */
   2760     eax = ebp + (-0x8); /* 0x4100BFC9: lea eax, [ebp - 8] */
   2761     ecx = ebp + (-0x10); /* 0x4100BFCC: lea ecx, [ebp - 0x10] */
   2762     PUSH32(esp, eax); /* 0x4100BFCF: push eax */
   2763     PUSH32(esp, ecx); /* 0x4100BFD0: push ecx */
   2764     ecx = 0x41014A70u; /* 0x4100BFD1: mov ecx, 0x41014a70 */
   2765     MEM32(ebp + (-0x8)) = edx; /* 0x4100BFD6: mov dword ptr [ebp - 8], edx */
   2766     MEM32(ebp + (-0x4)) = 0; /* 0x4100BFD9: mov dword ptr [ebp - 4], 0 */
   2767     RECOMP_ICALL(0x4100C690u); /* 0x4100BFE0: call 0x4100c690 */ /* not lifted */
   2768     RECOMP_FLAGS_IN();
   2769     edx = eax; /* 0x4100BFE5: mov edx, eax */
   2770     eax = MEM32(edx); /* 0x4100BFE7: mov eax, dword ptr [edx] */
   2771     ecx = MEM32(edx + 0x4); /* 0x4100BFE9: mov ecx, dword ptr [edx + 4] */
   2772     edx = MEM32(eax + 0x10); /* 0x4100BFEC: mov edx, dword ptr [eax + 0x10] */
   2773     MEM32(ebp + (-0x14)) = ecx; /* 0x4100BFEF: mov dword ptr [ebp - 0x14], ecx */
   2774     PUSH32(esp, edx); /* 0x4100BFF2: push edx */
   2775     PUSH32(esp, 0x410144B0u); /* 0x4100BFF3: push 0x410144b0 */
   2776     ecx = edi; /* 0x4100BFF8: mov ecx, edi */
   2777     RECOMP_ICALL(ebx); /* 0x4100BFFA: call ebx */
   2778     RECOMP_FLAGS_IN();
   2779     eax = MEM32(esi + 0x10); /* 0x4100BFFC: mov eax, dword ptr [esi + 0x10] */
   2780     ecx = ebp + (-0x8); /* 0x4100BFFF: lea ecx, [ebp - 8] */
   2781     edx = ebp + (-0x18); /* 0x4100C002: lea edx, [ebp - 0x18] */
   2782     PUSH32(esp, ecx); /* 0x4100C005: push ecx */
   2783     PUSH32(esp, edx); /* 0x4100C006: push edx */
   2784     ecx = 0x41014A70u; /* 0x4100C007: mov ecx, 0x41014a70 */
   2785     MEM32(ebp + (-0x8)) = eax; /* 0x4100C00C: mov dword ptr [ebp - 8], eax */
   2786     MEM32(ebp + (-0x4)) = 0; /* 0x4100C00F: mov dword ptr [ebp - 4], 0 */
   2787     RECOMP_ICALL(0x4100C690u); /* 0x4100C016: call 0x4100c690 */ /* not lifted */
   2788     RECOMP_FLAGS_IN();
   2789     ecx = eax; /* 0x4100C01B: mov ecx, eax */
   2790     eax = MEM32(ecx); /* 0x4100C01D: mov eax, dword ptr [ecx] */
   2791     eax = MEM32(eax + 0x10); /* 0x4100C01F: mov eax, dword ptr [eax + 0x10] */
   2792     edx = MEM32(ecx + 0x4); /* 0x4100C022: mov edx, dword ptr [ecx + 4] */
   2793     PUSH32(esp, eax); /* 0x4100C025: push eax */
   2794     PUSH32(esp, 0x410144B0u); /* 0x4100C026: push 0x410144b0 */
   2795     ecx = edi; /* 0x4100C02B: mov ecx, edi */
   2796     MEM32(ebp + (-0xC)) = edx; /* 0x4100C02D: mov dword ptr [ebp - 0xc], edx */
   2797     RECOMP_ICALL(ebx); /* 0x4100C030: call ebx */
   2798     RECOMP_FLAGS_IN();
   2799     ecx = MEM32(esi + 0x24); /* 0x4100C032: mov ecx, dword ptr [esi + 0x24] */
   2800     PUSH32(esp, ecx); /* 0x4100C035: push ecx */
   2801     PUSH32(esp, 0x410144ACu); /* 0x4100C036: push 0x410144ac */
   2802     ecx = edi; /* 0x4100C03B: mov ecx, edi */
   2803     RECOMP_ICALL(ebx); /* 0x4100C03D: call ebx */
   2804     RECOMP_FLAGS_IN();
   2805     edx = MEM32(esi + 0x2C); /* 0x4100C03F: mov edx, dword ptr [esi + 0x2c] */
   2806     ecx = edi; /* 0x4100C042: mov ecx, edi */
   2807     PUSH32(esp, edx); /* 0x4100C044: push edx */
   2808     PUSH32(esp, 0x410144A4u); /* 0x4100C045: push 0x410144a4 */
   2809     RECOMP_ICALL(ebx); /* 0x4100C04A: call ebx */
   2810     RECOMP_FLAGS_IN();
   2811     eax = MEM32(esi + 0x30); /* 0x4100C04C: mov eax, dword ptr [esi + 0x30] */
   2812     ecx = edi; /* 0x4100C04F: mov ecx, edi */
   2813     PUSH32(esp, eax); /* 0x4100C051: push eax */
   2814     PUSH32(esp, 0x4101449Cu); /* 0x4100C052: push 0x4101449c */
   2815     RECOMP_ICALL(ebx); /* 0x4100C057: call ebx */
   2816     RECOMP_FLAGS_IN();
   2817     edi = POP32_VAL(esp); /* 0x4100C059: pop edi */
   2818     esi = POP32_VAL(esp); /* 0x4100C05A: pop esi */
   2819     ebx = POP32_VAL(esp); /* 0x4100C05B: pop ebx */
   2820     esp = ebp; /* 0x4100C05C: mov esp, ebp */
   2821     ebp = POP32_VAL(esp); /* 0x4100C05E: pop ebp */
   2822     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100C05F: ret 4 */
   2823     RECOMP_REGS_OUT();
   2824 }
   2825 
   2826 void sub_4100C070(void) {
   2827     int _fpu_cmp = 0;
   2828     uint32_t _cf = 0;
   2829     int _df = 1;
   2830     uint32_t _flag_k = FK_NONE;
   2831     uint32_t _flag_a = 0, _flag_b = 0;
   2832     uint32_t _itail_tgt = 0;
   2833     RECOMP_REGS_LOCALS
   2834     RECOMP_ENTER(0x4100C070u);
   2835 
   2836 L_4100C070:
   2837     /* cmp MEM32(0x41014A98), 2 */ /* 0x4100C070: cmp dword ptr [0x41014a98], 2 */
   2838     _flag_a = (uint32_t)(MEM32(0x41014A98)); _flag_b = (uint32_t)(2);
   2839     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2840     _flag_k = FK_CMP;
   2841     if (CMP_NE(_flag_a, _flag_b)) goto L_4100C096; /* 0x4100C077: jne 0x4100c096 */
   2842 L_4100C079:
   2843     eax = MEM32(ecx + 0xC); /* 0x4100C079: mov eax, dword ptr [ecx + 0xc] */
   2844     edx = MEM32(0x41014A8C); /* 0x4100C07C: mov edx, dword ptr [0x41014a8c] */
   2845     eax = MEM32(edx + eax * 4); /* 0x4100C082: mov eax, dword ptr [edx + eax*4] */
   2846     edx = MEM32(ecx + 0x10); /* 0x4100C085: mov edx, dword ptr [ecx + 0x10] */
   2847     MEM32(ecx + 0xC) = eax; /* 0x4100C088: mov dword ptr [ecx + 0xc], eax */
   2848     eax = MEM32(0x41014A8C); /* 0x4100C08B: mov eax, dword ptr [0x41014a8c] */
   2849     edx = MEM32(eax + edx * 4); /* 0x4100C090: mov edx, dword ptr [eax + edx*4] */
   2850     MEM32(ecx + 0x10) = edx; /* 0x4100C093: mov dword ptr [ecx + 0x10], edx */
   2851 L_4100C096:
   2852     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100C096: ret  */
   2853     RECOMP_REGS_OUT();
   2854 }
   2855 
   2856 void sub_4100C0A0(void) {
   2857     int _fpu_cmp = 0;
   2858     uint32_t _cf = 0;
   2859     int _df = 1;
   2860     uint32_t _flag_k = FK_NONE;
   2861     uint32_t _flag_a = 0, _flag_b = 0;
   2862     uint32_t _itail_tgt = 0;
   2863     RECOMP_REGS_LOCALS
   2864     RECOMP_ENTER(0x4100C0A0u);
   2865 
   2866 L_4100C0A0:
   2867     PUSH32(esp, ebp); /* 0x4100C0A0: push ebp */
   2868     ebp = esp; /* 0x4100C0A1: mov ebp, esp */
   2869     PUSH32(esp, 0xFFFFFFFFu); /* 0x4100C0A3: push -1 */
   2870     PUSH32(esp, 0x4100E7F5u); /* 0x4100C0A5: push 0x4100e7f5 */
   2871     eax = MEM32(FS_BASE + (0)); /* 0x4100C0AA: mov eax, dword ptr fs:[0] */
   2872     PUSH32(esp, eax); /* 0x4100C0B0: push eax */
   2873     MEM32(FS_BASE + (0)) = esp; /* 0x4100C0B1: mov dword ptr fs:[0], esp */
   2874     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2875     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2876     esp = esp - 8; /* 0x4100C0B8: sub esp, 8 */
   2877     _flag_k = FK_CMP;
   2878     PUSH32(esp, ebx); /* 0x4100C0BB: push ebx */
   2879     PUSH32(esp, esi); /* 0x4100C0BC: push esi */
   2880     esi = ecx; /* 0x4100C0BD: mov esi, ecx */
   2881     PUSH32(esp, edi); /* 0x4100C0BF: push edi */
   2882     MEM32(ebp + (-0x10)) = esi; /* 0x4100C0C0: mov dword ptr [ebp - 0x10], esi */
   2883     RECOMP_ICALL(MEM32(0x4100F17C)); /* 0x4100C0C3: call dword ptr [0x4100f17c] */
   2884     RECOMP_FLAGS_IN();
   2885     eax = MEM32(ebp + 0x8); /* 0x4100C0C9: mov eax, dword ptr [ebp + 8] */
   2886     ecx = MEM32(ebp + 0xC); /* 0x4100C0CC: mov ecx, dword ptr [ebp + 0xc] */
   2887     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2888     ebx = 0; /* 0x4100C0CF: xor ebx, ebx */
   2889     _cf = 0;
   2890     _flag_k = FK_TEST;
   2891     PUSH32(esp, 0x24u); /* 0x4100C0D1: push 0x24 */
   2892     MEM32(ebp + (-0x4)) = ebx; /* 0x4100C0D3: mov dword ptr [ebp - 4], ebx */
   2893     MEM32(esi) = 0x4100F264u; /* 0x4100C0D6: mov dword ptr [esi], 0x4100f264 */
   2894     MEM32(esi + 0x8) = ebx; /* 0x4100C0DC: mov dword ptr [esi + 8], ebx */
   2895     MEM32(esi + 0xC) = eax; /* 0x4100C0DF: mov dword ptr [esi + 0xc], eax */
   2896     MEM32(esi + 0x10) = ecx; /* 0x4100C0E2: mov dword ptr [esi + 0x10], ecx */
   2897     RECOMP_ICALL(0x4100DB6Cu); /* 0x4100C0E5: call 0x4100db6c */ /* not lifted */
   2898     RECOMP_FLAGS_IN();
   2899     edi = eax; /* 0x4100C0EA: mov edi, eax */
   2900     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2901     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2902     esp = esp + 4; /* 0x4100C0EC: add esp, 4 */
   2903     _flag_k = FK_ADD;
   2904     MEM32(ebp + (-0x14)) = edi; /* 0x4100C0EF: mov dword ptr [ebp - 0x14], edi */
   2905     /* cmp edi, ebx */ /* 0x4100C0F2: cmp edi, ebx */
   2906     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   2907     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2908     _flag_k = FK_CMP;
   2909     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x4100C0F4: mov byte ptr [ebp - 4], 1 */
   2910     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100C10E; /* 0x4100C0F8: je 0x4100c10e */
   2911 L_4100C0FA:
   2912     ecx = MEM32(esi + 0xC); /* 0x4100C0FA: mov ecx, dword ptr [esi + 0xc] */
   2913     PUSH32(esp, 1); /* 0x4100C0FD: push 1 */
   2914     RECOMP_ICALL(0x41007AB0u); /* 0x4100C0FF: call 0x41007ab0 */ /* not lifted */
   2915     RECOMP_FLAGS_IN();
   2916     PUSH32(esp, eax); /* 0x4100C104: push eax */
   2917     ecx = edi; /* 0x4100C105: mov ecx, edi */
   2918     RECOMP_ICALL(0x410018E0u); /* 0x4100C107: call 0x410018e0 */ /* not lifted */
   2919     RECOMP_FLAGS_IN();
   2920     goto L_4100C110; /* 0x4100C10C: jmp 0x4100c110 */
   2921 L_4100C10E:
   2922     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2923     eax = 0; /* 0x4100C10E: xor eax, eax */
   2924     _cf = 0;
   2925     _flag_k = FK_TEST;
   2926 L_4100C110:
   2927     PUSH32(esp, 0x24u); /* 0x4100C110: push 0x24 */
   2928     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x4100C112: mov byte ptr [ebp - 4], bl */
   2929     MEM32(esi + 0x14) = eax; /* 0x4100C115: mov dword ptr [esi + 0x14], eax */
   2930     RECOMP_ICALL(0x4100DB6Cu); /* 0x4100C118: call 0x4100db6c */ /* not lifted */
   2931     RECOMP_FLAGS_IN();
   2932     edi = eax; /* 0x4100C11D: mov edi, eax */
   2933     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2934     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2935     esp = esp + 4; /* 0x4100C11F: add esp, 4 */
   2936     _flag_k = FK_ADD;
   2937     MEM32(ebp + (-0x14)) = edi; /* 0x4100C122: mov dword ptr [ebp - 0x14], edi */
   2938     /* cmp edi, ebx */ /* 0x4100C125: cmp edi, ebx */
   2939     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   2940     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2941     _flag_k = FK_CMP;
   2942     MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x4100C127: mov byte ptr [ebp - 4], 2 */
   2943     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100C140; /* 0x4100C12B: je 0x4100c140 */
   2944 L_4100C12D:
   2945     ecx = MEM32(esi + 0x10); /* 0x4100C12D: mov ecx, dword ptr [esi + 0x10] */
   2946     PUSH32(esp, ebx); /* 0x4100C130: push ebx */
   2947     RECOMP_ICALL(0x41007AB0u); /* 0x4100C131: call 0x41007ab0 */ /* not lifted */
   2948     RECOMP_FLAGS_IN();
   2949     PUSH32(esp, eax); /* 0x4100C136: push eax */
   2950     ecx = edi; /* 0x4100C137: mov ecx, edi */
   2951     RECOMP_ICALL(0x410018E0u); /* 0x4100C139: call 0x410018e0 */ /* not lifted */
   2952     RECOMP_FLAGS_IN();
   2953     goto L_4100C142; /* 0x4100C13E: jmp 0x4100c142 */
   2954 L_4100C140:
   2955     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2956     eax = 0; /* 0x4100C140: xor eax, eax */
   2957     _cf = 0;
   2958     _flag_k = FK_TEST;
   2959 L_4100C142:
   2960     PUSH32(esp, 0x24u); /* 0x4100C142: push 0x24 */
   2961     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x4100C144: mov byte ptr [ebp - 4], bl */
   2962     MEM32(esi + 0x18) = eax; /* 0x4100C147: mov dword ptr [esi + 0x18], eax */
   2963     RECOMP_ICALL(0x4100DB6Cu); /* 0x4100C14A: call 0x4100db6c */ /* not lifted */
   2964     RECOMP_FLAGS_IN();
   2965     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2966     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2967     esp = esp + 4; /* 0x4100C14F: add esp, 4 */
   2968     _flag_k = FK_ADD;
   2969     MEM32(ebp + (-0x14)) = eax; /* 0x4100C152: mov dword ptr [ebp - 0x14], eax */
   2970     /* cmp eax, ebx */ /* 0x4100C155: cmp eax, ebx */
   2971     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   2972     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2973     _flag_k = FK_CMP;
   2974     MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x4100C157: mov byte ptr [ebp - 4], 3 */
   2975     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100C16A; /* 0x4100C15B: je 0x4100c16a */
   2976 L_4100C15D:
   2977     edx = MEM32(esi + 0x14); /* 0x4100C15D: mov edx, dword ptr [esi + 0x14] */
   2978     ecx = eax; /* 0x4100C160: mov ecx, eax */
   2979     PUSH32(esp, edx); /* 0x4100C162: push edx */
   2980     RECOMP_ICALL(0x410018E0u); /* 0x4100C163: call 0x410018e0 */ /* not lifted */
   2981     RECOMP_FLAGS_IN();
   2982     goto L_4100C16C; /* 0x4100C168: jmp 0x4100c16c */
   2983 L_4100C16A:
   2984     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2985     eax = 0; /* 0x4100C16A: xor eax, eax */
   2986     _cf = 0;
   2987     _flag_k = FK_TEST;
   2988 L_4100C16C:
   2989     PUSH32(esp, 0x24u); /* 0x4100C16C: push 0x24 */
   2990     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x4100C16E: mov byte ptr [ebp - 4], bl */
   2991     MEM32(esi + 0x1C) = eax; /* 0x4100C171: mov dword ptr [esi + 0x1c], eax */
   2992     RECOMP_ICALL(0x4100DB6Cu); /* 0x4100C174: call 0x4100db6c */ /* not lifted */
   2993     RECOMP_FLAGS_IN();
   2994     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2995     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2996     esp = esp + 4; /* 0x4100C179: add esp, 4 */
   2997     _flag_k = FK_ADD;
   2998     MEM32(ebp + (-0x14)) = eax; /* 0x4100C17C: mov dword ptr [ebp - 0x14], eax */
   2999     /* cmp eax, ebx */ /* 0x4100C17F: cmp eax, ebx */
   3000     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   3001     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3002     _flag_k = FK_CMP;
   3003     MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x4100C181: mov byte ptr [ebp - 4], 4 */
   3004     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100C194; /* 0x4100C185: je 0x4100c194 */
   3005 L_4100C187:
   3006     ecx = MEM32(esi + 0x18); /* 0x4100C187: mov ecx, dword ptr [esi + 0x18] */
   3007     PUSH32(esp, ecx); /* 0x4100C18A: push ecx */
   3008     ecx = eax; /* 0x4100C18B: mov ecx, eax */
   3009     RECOMP_ICALL(0x410018E0u); /* 0x4100C18D: call 0x410018e0 */ /* not lifted */
   3010     RECOMP_FLAGS_IN();
   3011     goto L_4100C196; /* 0x4100C192: jmp 0x4100c196 */
   3012 L_4100C194:
   3013     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3014     eax = 0; /* 0x4100C194: xor eax, eax */
   3015     _cf = 0;
   3016     _flag_k = FK_TEST;
   3017 L_4100C196:
   3018     edx = MEM32(ebp + 0x8); /* 0x4100C196: mov edx, dword ptr [ebp + 8] */
   3019     MEM32(esi + 0x20) = eax; /* 0x4100C199: mov dword ptr [esi + 0x20], eax */
   3020     eax = MEM32(ebp + 0xC); /* 0x4100C19C: mov eax, dword ptr [ebp + 0xc] */
   3021     edi = POP32_VAL(esp); /* 0x4100C19F: pop edi */
   3022     ecx = MEM32(edx + 0x1C); /* 0x4100C1A0: mov ecx, dword ptr [edx + 0x1c] */
   3023     edx = MEM32(eax + 0x20); /* 0x4100C1A3: mov edx, dword ptr [eax + 0x20] */
   3024     MEM32(esi + 0x28) = 0xFFFFFFFFu; /* 0x4100C1A6: mov dword ptr [esi + 0x28], 0xffffffff */
   3025     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3026     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3027     ecx = ecx - edx; /* 0x4100C1AD: sub ecx, edx */
   3028     _flag_k = FK_CMP;
   3029     MEM32(esi + 0x2C) = ebx; /* 0x4100C1AF: mov dword ptr [esi + 0x2c], ebx */
   3030     MEM32(esi + 0x24) = ecx; /* 0x4100C1B2: mov dword ptr [esi + 0x24], ecx */
   3031     edx = MEM32(eax + 0x20); /* 0x4100C1B5: mov edx, dword ptr [eax + 0x20] */
   3032     ecx = MEM32(ebp + (-0xC)); /* 0x4100C1B8: mov ecx, dword ptr [ebp - 0xc] */
   3033     MEM32(esi + 0x30) = edx; /* 0x4100C1BB: mov dword ptr [esi + 0x30], edx */
   3034     MEM32(esi + 0x34) = 1; /* 0x4100C1BE: mov dword ptr [esi + 0x34], 1 */
   3035     eax = esi; /* 0x4100C1C5: mov eax, esi */
   3036     esi = POP32_VAL(esp); /* 0x4100C1C7: pop esi */
   3037     ebx = POP32_VAL(esp); /* 0x4100C1C8: pop ebx */
   3038     MEM32(FS_BASE + (0)) = ecx; /* 0x4100C1C9: mov dword ptr fs:[0], ecx */
   3039     esp = ebp; /* 0x4100C1D0: mov esp, ebp */
   3040     ebp = POP32_VAL(esp); /* 0x4100C1D2: pop ebp */
   3041     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4100C1D3: ret 8 */
   3042     RECOMP_REGS_OUT();
   3043 }
   3044 
   3045 void sub_4100C1E0(void) {
   3046     int _fpu_cmp = 0;
   3047     uint32_t _cf = 0;
   3048     int _df = 1;
   3049     uint32_t _flag_k = FK_NONE;
   3050     uint32_t _flag_a = 0, _flag_b = 0;
   3051     uint32_t _itail_tgt = 0;
   3052     RECOMP_REGS_LOCALS
   3053     RECOMP_ENTER(0x4100C1E0u);
   3054 
   3055 L_4100C1E0:
   3056     PUSH32(esp, ebp); /* 0x4100C1E0: push ebp */
   3057     ebp = esp; /* 0x4100C1E1: mov ebp, esp */
   3058     PUSH32(esp, 0xFFFFFFFFu); /* 0x4100C1E3: push -1 */
   3059     PUSH32(esp, 0x4100E835u); /* 0x4100C1E5: push 0x4100e835 */
   3060     eax = MEM32(FS_BASE + (0)); /* 0x4100C1EA: mov eax, dword ptr fs:[0] */
   3061     PUSH32(esp, eax); /* 0x4100C1F0: push eax */
   3062     MEM32(FS_BASE + (0)) = esp; /* 0x4100C1F1: mov dword ptr fs:[0], esp */
   3063     PUSH32(esp, ecx); /* 0x4100C1F8: push ecx */
   3064     PUSH32(esp, ebx); /* 0x4100C1F9: push ebx */
   3065     PUSH32(esp, esi); /* 0x4100C1FA: push esi */
   3066     esi = ecx; /* 0x4100C1FB: mov esi, ecx */
   3067     PUSH32(esp, edi); /* 0x4100C1FD: push edi */
   3068     MEM32(ebp + (-0x10)) = esi; /* 0x4100C1FE: mov dword ptr [ebp - 0x10], esi */
   3069     RECOMP_ICALL(MEM32(0x4100F17C)); /* 0x4100C201: call dword ptr [0x4100f17c] */
   3070     RECOMP_FLAGS_IN();
   3071     eax = MEM32(ebp + 0x8); /* 0x4100C207: mov eax, dword ptr [ebp + 8] */
   3072     ecx = MEM32(ebp + 0x10); /* 0x4100C20A: mov ecx, dword ptr [ebp + 0x10] */
   3073     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3074     ebx = 0; /* 0x4100C20D: xor ebx, ebx */
   3075     _cf = 0;
   3076     _flag_k = FK_TEST;
   3077     PUSH32(esp, 0x24u); /* 0x4100C20F: push 0x24 */
   3078     MEM32(ebp + (-0x4)) = ebx; /* 0x4100C211: mov dword ptr [ebp - 4], ebx */
   3079     MEM32(esi) = 0x4100F264u; /* 0x4100C214: mov dword ptr [esi], 0x4100f264 */
   3080     MEM32(esi + 0x8) = ebx; /* 0x4100C21A: mov dword ptr [esi + 8], ebx */
   3081     MEM32(esi + 0xC) = eax; /* 0x4100C21D: mov dword ptr [esi + 0xc], eax */
   3082     MEM32(esi + 0x10) = ecx; /* 0x4100C220: mov dword ptr [esi + 0x10], ecx */
   3083     RECOMP_ICALL(0x4100DB6Cu); /* 0x4100C223: call 0x4100db6c */ /* not lifted */
   3084     RECOMP_FLAGS_IN();
   3085     edi = eax; /* 0x4100C228: mov edi, eax */
   3086     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3087     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3088     esp = esp + 4; /* 0x4100C22A: add esp, 4 */
   3089     _flag_k = FK_ADD;
   3090     MEM32(ebp + 0x8) = edi; /* 0x4100C22D: mov dword ptr [ebp + 8], edi */
   3091     /* cmp edi, ebx */ /* 0x4100C230: cmp edi, ebx */
   3092     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3093     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3094     _flag_k = FK_CMP;
   3095     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x4100C232: mov byte ptr [ebp - 4], 1 */
   3096     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100C24C; /* 0x4100C236: je 0x4100c24c */
   3097 L_4100C238:
   3098     ecx = MEM32(esi + 0xC); /* 0x4100C238: mov ecx, dword ptr [esi + 0xc] */
   3099     PUSH32(esp, 1); /* 0x4100C23B: push 1 */
   3100     RECOMP_ICALL(0x41007AB0u); /* 0x4100C23D: call 0x41007ab0 */ /* not lifted */
   3101     RECOMP_FLAGS_IN();
   3102     PUSH32(esp, eax); /* 0x4100C242: push eax */
   3103     ecx = edi; /* 0x4100C243: mov ecx, edi */
   3104     RECOMP_ICALL(0x410018E0u); /* 0x4100C245: call 0x410018e0 */ /* not lifted */
   3105     RECOMP_FLAGS_IN();
   3106     goto L_4100C24E; /* 0x4100C24A: jmp 0x4100c24e */
   3107 L_4100C24C:
   3108     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3109     eax = 0; /* 0x4100C24C: xor eax, eax */
   3110     _cf = 0;
   3111     _flag_k = FK_TEST;
   3112 L_4100C24E:
   3113     PUSH32(esp, 0x24u); /* 0x4100C24E: push 0x24 */
   3114     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x4100C250: mov byte ptr [ebp - 4], bl */
   3115     MEM32(esi + 0x14) = eax; /* 0x4100C253: mov dword ptr [esi + 0x14], eax */
   3116     RECOMP_ICALL(0x4100DB6Cu); /* 0x4100C256: call 0x4100db6c */ /* not lifted */
   3117     RECOMP_FLAGS_IN();
   3118     edi = eax; /* 0x4100C25B: mov edi, eax */
   3119     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3120     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3121     esp = esp + 4; /* 0x4100C25D: add esp, 4 */
   3122     _flag_k = FK_ADD;
   3123     MEM32(ebp + 0x8) = edi; /* 0x4100C260: mov dword ptr [ebp + 8], edi */
   3124     /* cmp edi, ebx */ /* 0x4100C263: cmp edi, ebx */
   3125     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3126     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3127     _flag_k = FK_CMP;
   3128     MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x4100C265: mov byte ptr [ebp - 4], 2 */
   3129     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100C27E; /* 0x4100C269: je 0x4100c27e */
   3130 L_4100C26B:
   3131     ecx = MEM32(esi + 0x10); /* 0x4100C26B: mov ecx, dword ptr [esi + 0x10] */
   3132     PUSH32(esp, ebx); /* 0x4100C26E: push ebx */
   3133     RECOMP_ICALL(0x41007AB0u); /* 0x4100C26F: call 0x41007ab0 */ /* not lifted */
   3134     RECOMP_FLAGS_IN();
   3135     PUSH32(esp, eax); /* 0x4100C274: push eax */
   3136     ecx = edi; /* 0x4100C275: mov ecx, edi */
   3137     RECOMP_ICALL(0x410018E0u); /* 0x4100C277: call 0x410018e0 */ /* not lifted */
   3138     RECOMP_FLAGS_IN();
   3139     goto L_4100C280; /* 0x4100C27C: jmp 0x4100c280 */
   3140 L_4100C27E:
   3141     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3142     eax = 0; /* 0x4100C27E: xor eax, eax */
   3143     _cf = 0;
   3144     _flag_k = FK_TEST;
   3145 L_4100C280:
   3146     PUSH32(esp, 0x24u); /* 0x4100C280: push 0x24 */
   3147     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x4100C282: mov byte ptr [ebp - 4], bl */
   3148     MEM32(esi + 0x18) = eax; /* 0x4100C285: mov dword ptr [esi + 0x18], eax */
   3149     RECOMP_ICALL(0x4100DB6Cu); /* 0x4100C288: call 0x4100db6c */ /* not lifted */
   3150     RECOMP_FLAGS_IN();
   3151     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3152     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3153     esp = esp + 4; /* 0x4100C28D: add esp, 4 */
   3154     _flag_k = FK_ADD;
   3155     MEM32(ebp + 0x8) = eax; /* 0x4100C290: mov dword ptr [ebp + 8], eax */
   3156     /* cmp eax, ebx */ /* 0x4100C293: cmp eax, ebx */
   3157     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   3158     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3159     _flag_k = FK_CMP;
   3160     MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x4100C295: mov byte ptr [ebp - 4], 3 */
   3161     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100C2A8; /* 0x4100C299: je 0x4100c2a8 */
   3162 L_4100C29B:
   3163     edx = MEM32(esi + 0x14); /* 0x4100C29B: mov edx, dword ptr [esi + 0x14] */
   3164     ecx = eax; /* 0x4100C29E: mov ecx, eax */
   3165     PUSH32(esp, edx); /* 0x4100C2A0: push edx */
   3166     RECOMP_ICALL(0x410018E0u); /* 0x4100C2A1: call 0x410018e0 */ /* not lifted */
   3167     RECOMP_FLAGS_IN();
   3168     goto L_4100C2AA; /* 0x4100C2A6: jmp 0x4100c2aa */
   3169 L_4100C2A8:
   3170     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3171     eax = 0; /* 0x4100C2A8: xor eax, eax */
   3172     _cf = 0;
   3173     _flag_k = FK_TEST;
   3174 L_4100C2AA:
   3175     PUSH32(esp, 0x24u); /* 0x4100C2AA: push 0x24 */
   3176     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x4100C2AC: mov byte ptr [ebp - 4], bl */
   3177     MEM32(esi + 0x1C) = eax; /* 0x4100C2AF: mov dword ptr [esi + 0x1c], eax */
   3178     RECOMP_ICALL(0x4100DB6Cu); /* 0x4100C2B2: call 0x4100db6c */ /* not lifted */
   3179     RECOMP_FLAGS_IN();
   3180     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3181     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3182     esp = esp + 4; /* 0x4100C2B7: add esp, 4 */
   3183     _flag_k = FK_ADD;
   3184     MEM32(ebp + 0x8) = eax; /* 0x4100C2BA: mov dword ptr [ebp + 8], eax */
   3185     /* cmp eax, ebx */ /* 0x4100C2BD: cmp eax, ebx */
   3186     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   3187     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3188     _flag_k = FK_CMP;
   3189     MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x4100C2BF: mov byte ptr [ebp - 4], 4 */
   3190     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100C2D2; /* 0x4100C2C3: je 0x4100c2d2 */
   3191 L_4100C2C5:
   3192     ecx = MEM32(esi + 0x18); /* 0x4100C2C5: mov ecx, dword ptr [esi + 0x18] */
   3193     PUSH32(esp, ecx); /* 0x4100C2C8: push ecx */
   3194     ecx = eax; /* 0x4100C2C9: mov ecx, eax */
   3195     RECOMP_ICALL(0x410018E0u); /* 0x4100C2CB: call 0x410018e0 */ /* not lifted */
   3196     RECOMP_FLAGS_IN();
   3197     goto L_4100C2D4; /* 0x4100C2D0: jmp 0x4100c2d4 */
   3198 L_4100C2D2:
   3199     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3200     eax = 0; /* 0x4100C2D2: xor eax, eax */
   3201     _cf = 0;
   3202     _flag_k = FK_TEST;
   3203 L_4100C2D4:
   3204     ecx = MEM32(ebp + 0x18); /* 0x4100C2D4: mov ecx, dword ptr [ebp + 0x18] */
   3205     edx = MEM32(ebp + 0xC); /* 0x4100C2D7: mov edx, dword ptr [ebp + 0xc] */
   3206     MEM32(esi + 0x20) = eax; /* 0x4100C2DA: mov dword ptr [esi + 0x20], eax */
   3207     eax = MEM32(ebp + 0x14); /* 0x4100C2DD: mov eax, dword ptr [ebp + 0x14] */
   3208     MEM32(esi + 0x2C) = eax; /* 0x4100C2E0: mov dword ptr [esi + 0x2c], eax */
   3209     MEM32(esi + 0x30) = ecx; /* 0x4100C2E3: mov dword ptr [esi + 0x30], ecx */
   3210     ecx = MEM32(ebp + (-0xC)); /* 0x4100C2E6: mov ecx, dword ptr [ebp - 0xc] */
   3211     MEM32(esi + 0x24) = edx; /* 0x4100C2E9: mov dword ptr [esi + 0x24], edx */
   3212     MEM32(esi + 0x28) = 0xFFFFFFFFu; /* 0x4100C2EC: mov dword ptr [esi + 0x28], 0xffffffff */
   3213     MEM32(esi + 0x34) = 1; /* 0x4100C2F3: mov dword ptr [esi + 0x34], 1 */
   3214     eax = esi; /* 0x4100C2FA: mov eax, esi */
   3215     edi = POP32_VAL(esp); /* 0x4100C2FC: pop edi */
   3216     esi = POP32_VAL(esp); /* 0x4100C2FD: pop esi */
   3217     ebx = POP32_VAL(esp); /* 0x4100C2FE: pop ebx */
   3218     MEM32(FS_BASE + (0)) = ecx; /* 0x4100C2FF: mov dword ptr fs:[0], ecx */
   3219     esp = ebp; /* 0x4100C306: mov esp, ebp */
   3220     ebp = POP32_VAL(esp); /* 0x4100C308: pop ebp */
   3221     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x4100C309: ret 0x14 */
   3222     RECOMP_REGS_OUT();
   3223 }
   3224 
   3225 void sub_4100C310(void) {
   3226     int _fpu_cmp = 0;
   3227     uint32_t _cf = 0;
   3228     int _df = 1;
   3229     uint32_t _flag_k = FK_NONE;
   3230     uint32_t _flag_a = 0, _flag_b = 0;
   3231     uint32_t _itail_tgt = 0;
   3232     RECOMP_REGS_LOCALS
   3233     RECOMP_ENTER(0x4100C310u);
   3234 
   3235 L_4100C310:
   3236     PUSH32(esp, ebp); /* 0x4100C310: push ebp */
   3237     ebp = esp; /* 0x4100C311: mov ebp, esp */
   3238     PUSH32(esp, 0xFFFFFFFFu); /* 0x4100C313: push -1 */
   3239     PUSH32(esp, 0x4100E875u); /* 0x4100C315: push 0x4100e875 */
   3240     eax = MEM32(FS_BASE + (0)); /* 0x4100C31A: mov eax, dword ptr fs:[0] */
   3241     PUSH32(esp, eax); /* 0x4100C320: push eax */
   3242     MEM32(FS_BASE + (0)) = esp; /* 0x4100C321: mov dword ptr fs:[0], esp */
   3243     PUSH32(esp, ecx); /* 0x4100C328: push ecx */
   3244     PUSH32(esp, ebx); /* 0x4100C329: push ebx */
   3245     PUSH32(esp, esi); /* 0x4100C32A: push esi */
   3246     esi = ecx; /* 0x4100C32B: mov esi, ecx */
   3247     PUSH32(esp, edi); /* 0x4100C32D: push edi */
   3248     MEM32(ebp + (-0x10)) = esi; /* 0x4100C32E: mov dword ptr [ebp - 0x10], esi */
   3249     RECOMP_ICALL(MEM32(0x4100F17C)); /* 0x4100C331: call dword ptr [0x4100f17c] */
   3250     RECOMP_FLAGS_IN();
   3251     edi = MEM32(ebp + 0x8); /* 0x4100C337: mov edi, dword ptr [ebp + 8] */
   3252     MEM32(esi) = 0x4100F264u; /* 0x4100C33A: mov dword ptr [esi], 0x4100f264 */
   3253     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3254     ebx = 0; /* 0x4100C340: xor ebx, ebx */
   3255     _cf = 0;
   3256     _flag_k = FK_TEST;
   3257     PUSH32(esp, 0x24u); /* 0x4100C342: push 0x24 */
   3258     eax = MEM32(edi + 0x8); /* 0x4100C344: mov eax, dword ptr [edi + 8] */
   3259     MEM32(ebp + (-0x4)) = ebx; /* 0x4100C347: mov dword ptr [ebp - 4], ebx */
   3260     MEM32(esi + 0x8) = eax; /* 0x4100C34A: mov dword ptr [esi + 8], eax */
   3261     ecx = MEM32(edi + 0xC); /* 0x4100C34D: mov ecx, dword ptr [edi + 0xc] */
   3262     MEM32(esi + 0xC) = ecx; /* 0x4100C350: mov dword ptr [esi + 0xc], ecx */
   3263     edx = MEM32(edi + 0x10); /* 0x4100C353: mov edx, dword ptr [edi + 0x10] */
   3264     MEM32(esi + 0x10) = edx; /* 0x4100C356: mov dword ptr [esi + 0x10], edx */
   3265     RECOMP_ICALL(0x4100DB6Cu); /* 0x4100C359: call 0x4100db6c */ /* not lifted */
   3266     RECOMP_FLAGS_IN();
   3267     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3268     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3269     esp = esp + 4; /* 0x4100C35E: add esp, 4 */
   3270     _flag_k = FK_ADD;
   3271     MEM32(ebp + 0x8) = eax; /* 0x4100C361: mov dword ptr [ebp + 8], eax */
   3272     /* cmp eax, ebx */ /* 0x4100C364: cmp eax, ebx */
   3273     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   3274     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3275     _flag_k = FK_CMP;
   3276     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x4100C366: mov byte ptr [ebp - 4], 1 */
   3277     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100C379; /* 0x4100C36A: je 0x4100c379 */
   3278 L_4100C36C:
   3279     ecx = MEM32(edi + 0x14); /* 0x4100C36C: mov ecx, dword ptr [edi + 0x14] */
   3280     PUSH32(esp, ecx); /* 0x4100C36F: push ecx */
   3281     ecx = eax; /* 0x4100C370: mov ecx, eax */
   3282     RECOMP_ICALL(0x410018E0u); /* 0x4100C372: call 0x410018e0 */ /* not lifted */
   3283     RECOMP_FLAGS_IN();
   3284     goto L_4100C37B; /* 0x4100C377: jmp 0x4100c37b */
   3285 L_4100C379:
   3286     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3287     eax = 0; /* 0x4100C379: xor eax, eax */
   3288     _cf = 0;
   3289     _flag_k = FK_TEST;
   3290 L_4100C37B:
   3291     PUSH32(esp, 0x24u); /* 0x4100C37B: push 0x24 */
   3292     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x4100C37D: mov byte ptr [ebp - 4], bl */
   3293     MEM32(esi + 0x14) = eax; /* 0x4100C380: mov dword ptr [esi + 0x14], eax */
   3294     RECOMP_ICALL(0x4100DB6Cu); /* 0x4100C383: call 0x4100db6c */ /* not lifted */
   3295     RECOMP_FLAGS_IN();
   3296     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3297     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3298     esp = esp + 4; /* 0x4100C388: add esp, 4 */
   3299     _flag_k = FK_ADD;
   3300     MEM32(ebp + 0x8) = eax; /* 0x4100C38B: mov dword ptr [ebp + 8], eax */
   3301     /* cmp eax, ebx */ /* 0x4100C38E: cmp eax, ebx */
   3302     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   3303     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3304     _flag_k = FK_CMP;
   3305     MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x4100C390: mov byte ptr [ebp - 4], 2 */
   3306     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100C3A3; /* 0x4100C394: je 0x4100c3a3 */
   3307 L_4100C396:
   3308     edx = MEM32(edi + 0x18); /* 0x4100C396: mov edx, dword ptr [edi + 0x18] */
   3309     ecx = eax; /* 0x4100C399: mov ecx, eax */
   3310     PUSH32(esp, edx); /* 0x4100C39B: push edx */
   3311     RECOMP_ICALL(0x410018E0u); /* 0x4100C39C: call 0x410018e0 */ /* not lifted */
   3312     RECOMP_FLAGS_IN();
   3313     goto L_4100C3A5; /* 0x4100C3A1: jmp 0x4100c3a5 */
   3314 L_4100C3A3:
   3315     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3316     eax = 0; /* 0x4100C3A3: xor eax, eax */
   3317     _cf = 0;
   3318     _flag_k = FK_TEST;
   3319 L_4100C3A5:
   3320     PUSH32(esp, 0x24u); /* 0x4100C3A5: push 0x24 */
   3321     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x4100C3A7: mov byte ptr [ebp - 4], bl */
   3322     MEM32(esi + 0x18) = eax; /* 0x4100C3AA: mov dword ptr [esi + 0x18], eax */
   3323     RECOMP_ICALL(0x4100DB6Cu); /* 0x4100C3AD: call 0x4100db6c */ /* not lifted */
   3324     RECOMP_FLAGS_IN();
   3325     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3326     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3327     esp = esp + 4; /* 0x4100C3B2: add esp, 4 */
   3328     _flag_k = FK_ADD;
   3329     MEM32(ebp + 0x8) = eax; /* 0x4100C3B5: mov dword ptr [ebp + 8], eax */
   3330     /* cmp eax, ebx */ /* 0x4100C3B8: cmp eax, ebx */
   3331     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   3332     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3333     _flag_k = FK_CMP;
   3334     MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x4100C3BA: mov byte ptr [ebp - 4], 3 */
   3335     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100C3CD; /* 0x4100C3BE: je 0x4100c3cd */
   3336 L_4100C3C0:
   3337     ecx = MEM32(esi + 0x14); /* 0x4100C3C0: mov ecx, dword ptr [esi + 0x14] */
   3338     PUSH32(esp, ecx); /* 0x4100C3C3: push ecx */
   3339     ecx = eax; /* 0x4100C3C4: mov ecx, eax */
   3340     RECOMP_ICALL(0x410018E0u); /* 0x4100C3C6: call 0x410018e0 */ /* not lifted */
   3341     RECOMP_FLAGS_IN();
   3342     goto L_4100C3CF; /* 0x4100C3CB: jmp 0x4100c3cf */
   3343 L_4100C3CD:
   3344     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3345     eax = 0; /* 0x4100C3CD: xor eax, eax */
   3346     _cf = 0;
   3347     _flag_k = FK_TEST;
   3348 L_4100C3CF:
   3349     PUSH32(esp, 0x24u); /* 0x4100C3CF: push 0x24 */
   3350     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x4100C3D1: mov byte ptr [ebp - 4], bl */
   3351     MEM32(esi + 0x1C) = eax; /* 0x4100C3D4: mov dword ptr [esi + 0x1c], eax */
   3352     RECOMP_ICALL(0x4100DB6Cu); /* 0x4100C3D7: call 0x4100db6c */ /* not lifted */
   3353     RECOMP_FLAGS_IN();
   3354     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3355     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3356     esp = esp + 4; /* 0x4100C3DC: add esp, 4 */
   3357     _flag_k = FK_ADD;
   3358     MEM32(ebp + 0x8) = eax; /* 0x4100C3DF: mov dword ptr [ebp + 8], eax */
   3359     /* cmp eax, ebx */ /* 0x4100C3E2: cmp eax, ebx */
   3360     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   3361     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3362     _flag_k = FK_CMP;
   3363     MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x4100C3E4: mov byte ptr [ebp - 4], 4 */
   3364     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100C3F7; /* 0x4100C3E8: je 0x4100c3f7 */
   3365 L_4100C3EA:
   3366     edx = MEM32(esi + 0x18); /* 0x4100C3EA: mov edx, dword ptr [esi + 0x18] */
   3367     ecx = eax; /* 0x4100C3ED: mov ecx, eax */
   3368     PUSH32(esp, edx); /* 0x4100C3EF: push edx */
   3369     RECOMP_ICALL(0x410018E0u); /* 0x4100C3F0: call 0x410018e0 */ /* not lifted */
   3370     RECOMP_FLAGS_IN();
   3371     goto L_4100C3F9; /* 0x4100C3F5: jmp 0x4100c3f9 */
   3372 L_4100C3F7:
   3373     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3374     eax = 0; /* 0x4100C3F7: xor eax, eax */
   3375     _cf = 0;
   3376     _flag_k = FK_TEST;
   3377 L_4100C3F9:
   3378     MEM32(esi + 0x20) = eax; /* 0x4100C3F9: mov dword ptr [esi + 0x20], eax */
   3379     eax = MEM32(edi + 0x24); /* 0x4100C3FC: mov eax, dword ptr [edi + 0x24] */
   3380     MEM32(esi + 0x24) = eax; /* 0x4100C3FF: mov dword ptr [esi + 0x24], eax */
   3381     ecx = MEM32(edi + 0x28); /* 0x4100C402: mov ecx, dword ptr [edi + 0x28] */
   3382     MEM32(esi + 0x28) = ecx; /* 0x4100C405: mov dword ptr [esi + 0x28], ecx */
   3383     edx = MEM32(edi + 0x2C); /* 0x4100C408: mov edx, dword ptr [edi + 0x2c] */
   3384     ecx = MEM32(ebp + (-0xC)); /* 0x4100C40B: mov ecx, dword ptr [ebp - 0xc] */
   3385     MEM32(esi + 0x2C) = edx; /* 0x4100C40E: mov dword ptr [esi + 0x2c], edx */
   3386     eax = MEM32(edi + 0x30); /* 0x4100C411: mov eax, dword ptr [edi + 0x30] */
   3387     MEM32(esi + 0x34) = 1; /* 0x4100C414: mov dword ptr [esi + 0x34], 1 */
   3388     MEM32(esi + 0x30) = eax; /* 0x4100C41B: mov dword ptr [esi + 0x30], eax */
   3389     eax = esi; /* 0x4100C41E: mov eax, esi */
   3390     edi = POP32_VAL(esp); /* 0x4100C420: pop edi */
   3391     esi = POP32_VAL(esp); /* 0x4100C421: pop esi */
   3392     ebx = POP32_VAL(esp); /* 0x4100C422: pop ebx */
   3393     MEM32(FS_BASE + (0)) = ecx; /* 0x4100C423: mov dword ptr fs:[0], ecx */
   3394     esp = ebp; /* 0x4100C42A: mov esp, ebp */
   3395     ebp = POP32_VAL(esp); /* 0x4100C42C: pop ebp */
   3396     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100C42D: ret 4 */
   3397     RECOMP_REGS_OUT();
   3398 }
   3399 
   3400 void sub_4100C430(void) {
   3401     int _fpu_cmp = 0;
   3402     uint32_t _cf = 0;
   3403     int _df = 1;
   3404     uint32_t _flag_k = FK_NONE;
   3405     uint32_t _flag_a = 0, _flag_b = 0;
   3406     uint32_t _itail_tgt = 0;
   3407     RECOMP_REGS_LOCALS
   3408     RECOMP_ENTER(0x4100C430u);
   3409 
   3410 L_4100C430:
   3411     PUSH32(esp, ebp); /* 0x4100C430: push ebp */
   3412     ebp = esp; /* 0x4100C431: mov ebp, esp */
   3413     PUSH32(esp, 0xFFFFFFFFu); /* 0x4100C433: push -1 */
   3414     PUSH32(esp, 0x4100E889u); /* 0x4100C435: push 0x4100e889 */
   3415     eax = MEM32(FS_BASE + (0)); /* 0x4100C43A: mov eax, dword ptr fs:[0] */
   3416     PUSH32(esp, eax); /* 0x4100C440: push eax */
   3417     MEM32(FS_BASE + (0)) = esp; /* 0x4100C441: mov dword ptr fs:[0], esp */
   3418     PUSH32(esp, ecx); /* 0x4100C448: push ecx */
   3419     PUSH32(esp, esi); /* 0x4100C449: push esi */
   3420     esi = ecx; /* 0x4100C44A: mov esi, ecx */
   3421     MEM32(ebp + (-0x10)) = esi; /* 0x4100C44C: mov dword ptr [ebp - 0x10], esi */
   3422     MEM32(esi) = 0x4100F264u; /* 0x4100C44F: mov dword ptr [esi], 0x4100f264 */
   3423     ecx = MEM32(esi + 0x14); /* 0x4100C455: mov ecx, dword ptr [esi + 0x14] */
   3424     MEM32(ebp + (-0x4)) = 0; /* 0x4100C458: mov dword ptr [ebp - 4], 0 */
   3425     /* test ecx, ecx */ /* 0x4100C45F: test ecx, ecx */
   3426     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3427     _cf = 0;
   3428     _flag_k = FK_TEST;
   3429     if (TEST_Z(_flag_a, _flag_b)) goto L_4100C469; /* 0x4100C461: je 0x4100c469 */
   3430 L_4100C463:
   3431     eax = MEM32(ecx); /* 0x4100C463: mov eax, dword ptr [ecx] */
   3432     PUSH32(esp, 1); /* 0x4100C465: push 1 */
   3433     RECOMP_ICALL(MEM32(eax)); /* 0x4100C467: call dword ptr [eax] */
   3434     RECOMP_FLAGS_IN();
   3435 L_4100C469:
   3436     ecx = MEM32(esi + 0x18); /* 0x4100C469: mov ecx, dword ptr [esi + 0x18] */
   3437     /* test ecx, ecx */ /* 0x4100C46C: test ecx, ecx */
   3438     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3439     _cf = 0;
   3440     _flag_k = FK_TEST;
   3441     if (TEST_Z(_flag_a, _flag_b)) goto L_4100C476; /* 0x4100C46E: je 0x4100c476 */
   3442 L_4100C470:
   3443     edx = MEM32(ecx); /* 0x4100C470: mov edx, dword ptr [ecx] */
   3444     PUSH32(esp, 1); /* 0x4100C472: push 1 */
   3445     RECOMP_ICALL(MEM32(edx)); /* 0x4100C474: call dword ptr [edx] */
   3446     RECOMP_FLAGS_IN();
   3447 L_4100C476:
   3448     ecx = MEM32(esi + 0x1C); /* 0x4100C476: mov ecx, dword ptr [esi + 0x1c] */
   3449     /* test ecx, ecx */ /* 0x4100C479: test ecx, ecx */
   3450     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3451     _cf = 0;
   3452     _flag_k = FK_TEST;
   3453     if (TEST_Z(_flag_a, _flag_b)) goto L_4100C483; /* 0x4100C47B: je 0x4100c483 */
   3454 L_4100C47D:
   3455     eax = MEM32(ecx); /* 0x4100C47D: mov eax, dword ptr [ecx] */
   3456     PUSH32(esp, 1); /* 0x4100C47F: push 1 */
   3457     RECOMP_ICALL(MEM32(eax)); /* 0x4100C481: call dword ptr [eax] */
   3458     RECOMP_FLAGS_IN();
   3459 L_4100C483:
   3460     ecx = MEM32(esi + 0x20); /* 0x4100C483: mov ecx, dword ptr [esi + 0x20] */
   3461     /* test ecx, ecx */ /* 0x4100C486: test ecx, ecx */
   3462     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3463     _cf = 0;
   3464     _flag_k = FK_TEST;
   3465     if (TEST_Z(_flag_a, _flag_b)) goto L_4100C490; /* 0x4100C488: je 0x4100c490 */
   3466 L_4100C48A:
   3467     edx = MEM32(ecx); /* 0x4100C48A: mov edx, dword ptr [ecx] */
   3468     PUSH32(esp, 1); /* 0x4100C48C: push 1 */
   3469     RECOMP_ICALL(MEM32(edx)); /* 0x4100C48E: call dword ptr [edx] */
   3470     RECOMP_FLAGS_IN();
   3471 L_4100C490:
   3472     ecx = esi; /* 0x4100C490: mov ecx, esi */
   3473     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x4100C492: mov dword ptr [ebp - 4], 0xffffffff */
   3474     RECOMP_ICALL(MEM32(0x4100F160)); /* 0x4100C499: call dword ptr [0x4100f160] */
   3475     RECOMP_FLAGS_IN();
   3476     ecx = MEM32(ebp + (-0xC)); /* 0x4100C49F: mov ecx, dword ptr [ebp - 0xc] */
   3477     esi = POP32_VAL(esp); /* 0x4100C4A2: pop esi */
   3478     MEM32(FS_BASE + (0)) = ecx; /* 0x4100C4A3: mov dword ptr fs:[0], ecx */
   3479     esp = ebp; /* 0x4100C4AA: mov esp, ebp */
   3480     ebp = POP32_VAL(esp); /* 0x4100C4AC: pop ebp */
   3481     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100C4AD: ret  */
   3482     RECOMP_REGS_OUT();
   3483 }
   3484 
   3485 void sub_4100C4B0(void) {
   3486     int _fpu_cmp = 0;
   3487     uint32_t _cf = 0;
   3488     int _df = 1;
   3489     uint32_t _flag_k = FK_NONE;
   3490     uint32_t _flag_a = 0, _flag_b = 0;
   3491     uint32_t _itail_tgt = 0;
   3492     RECOMP_REGS_LOCALS
   3493     RECOMP_ENTER(0x4100C4B0u);
   3494 
   3495 L_4100C4B0:
   3496     PUSH32(esp, ebp); /* 0x4100C4B0: push ebp */
   3497     ebp = esp; /* 0x4100C4B1: mov ebp, esp */
   3498     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3499     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3500     esp = esp - 8; /* 0x4100C4B3: sub esp, 8 */
   3501     _flag_k = FK_CMP;
   3502     PUSH32(esp, esi); /* 0x4100C4B6: push esi */
   3503     esi = ecx; /* 0x4100C4B7: mov esi, ecx */
   3504     /* cmp MEM32(esi + 0x2C), 0xFFFFFFFFu */ /* 0x4100C4B9: cmp dword ptr [esi + 0x2c], -1 */
   3505     _flag_a = (uint32_t)(MEM32(esi + 0x2C)); _flag_b = (uint32_t)(0xFFFFFFFFu);
   3506     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3507     _flag_k = FK_CMP;
   3508     if (CMP_NE(_flag_a, _flag_b)) goto L_4100C4F9; /* 0x4100C4BD: jne 0x4100c4f9 */
   3509 L_4100C4BF:
   3510     eax = MEM32(esi + 0x10); /* 0x4100C4BF: mov eax, dword ptr [esi + 0x10] */
   3511     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3512     ecx = 0; /* 0x4100C4C2: xor ecx, ecx */
   3513     _cf = 0;
   3514     _flag_k = FK_TEST;
   3515     /* cmp MEM8(eax + 0x6A), LO8(ecx) */ /* 0x4100C4C4: cmp byte ptr [eax + 0x6a], cl */
   3516     _flag_a = (uint32_t)(MEM8(eax + 0x6A)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   3517     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3518     _flag_k = FK_NARROW(FK_CMP, 24);
   3519     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100C4F4; /* 0x4100C4C7: je 0x4100c4f4 */
   3520 L_4100C4C9:
   3521     edx = MEM32(esi + 0x28); /* 0x4100C4C9: mov edx, dword ptr [esi + 0x28] */
   3522     eax = MEM32(eax + 0x5C); /* 0x4100C4CC: mov eax, dword ptr [eax + 0x5c] */
   3523     MEM32(ebp + (-0x8)) = edx; /* 0x4100C4CF: mov dword ptr [ebp - 8], edx */
   3524     MEM32(ebp + (-0x4)) = ecx; /* 0x4100C4D2: mov dword ptr [ebp - 4], ecx */
   3525     fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x4100C4D5: fild qword ptr [ebp - 8] */
   3526     MEM32(ebp + (-0x8)) = eax; /* 0x4100C4D8: mov dword ptr [ebp - 8], eax */
   3527     MEM32(ebp + (-0x4)) = ecx; /* 0x4100C4DB: mov dword ptr [ebp - 4], ecx */
   3528     _st[0] = _st[0] / (double)(int32_t)MEM32(ebp + (-0x8)); /* 0x4100C4DE: fidiv dword ptr [ebp - 8] */
   3529     _st[0] *= (double)*(float*)ADDR(0x4100F238); /* 0x4100C4E1: fmul dword ptr [0x4100f238] */
   3530     RECOMP_ICALL(0x4100DB80u); /* 0x4100C4E7: call 0x4100db80 */ /* not lifted */
   3531     RECOMP_FLAGS_IN();
   3532     MEM32(esi + 0x2C) = eax; /* 0x4100C4EC: mov dword ptr [esi + 0x2c], eax */
   3533     esi = POP32_VAL(esp); /* 0x4100C4EF: pop esi */
   3534     esp = ebp; /* 0x4100C4F0: mov esp, ebp */
   3535     ebp = POP32_VAL(esp); /* 0x4100C4F2: pop ebp */
   3536     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100C4F3: ret  */
   3537 L_4100C4F4:
   3538     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3539     eax = 0; /* 0x4100C4F4: xor eax, eax */
   3540     _cf = 0;
   3541     _flag_k = FK_TEST;
   3542     MEM32(esi + 0x2C) = eax; /* 0x4100C4F6: mov dword ptr [esi + 0x2c], eax */
   3543 L_4100C4F9:
   3544     esi = POP32_VAL(esp); /* 0x4100C4F9: pop esi */
   3545     esp = ebp; /* 0x4100C4FA: mov esp, ebp */
   3546     ebp = POP32_VAL(esp); /* 0x4100C4FC: pop ebp */
   3547     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100C4FD: ret  */
   3548     RECOMP_REGS_OUT();
   3549 }
   3550 
   3551 void sub_4100C500(void) {
   3552     int _fpu_cmp = 0;
   3553     uint32_t _cf = 0;
   3554     int _df = 1;
   3555     uint32_t _flag_k = FK_NONE;
   3556     uint32_t _flag_a = 0, _flag_b = 0;
   3557     uint32_t _itail_tgt = 0;
   3558     RECOMP_REGS_LOCALS
   3559     RECOMP_ENTER(0x4100C500u);
   3560 
   3561 L_4100C500:
   3562     PUSH32(esp, ebp); /* 0x4100C500: push ebp */
   3563     ebp = esp; /* 0x4100C501: mov ebp, esp */
   3564     PUSH32(esp, esi); /* 0x4100C503: push esi */
   3565     PUSH32(esp, edi); /* 0x4100C504: push edi */
   3566     edi = MEM32(ebp + 0x8); /* 0x4100C505: mov edi, dword ptr [ebp + 8] */
   3567     esi = ecx; /* 0x4100C508: mov esi, ecx */
   3568     eax = MEM32(edi + 0x8); /* 0x4100C50A: mov eax, dword ptr [edi + 8] */
   3569     MEM32(esi + 0x8) = eax; /* 0x4100C50D: mov dword ptr [esi + 8], eax */
   3570     ecx = MEM32(edi + 0xC); /* 0x4100C510: mov ecx, dword ptr [edi + 0xc] */
   3571     MEM32(esi + 0xC) = ecx; /* 0x4100C513: mov dword ptr [esi + 0xc], ecx */
   3572     edx = MEM32(edi + 0x10); /* 0x4100C516: mov edx, dword ptr [edi + 0x10] */
   3573     ecx = MEM32(esi + 0x14); /* 0x4100C519: mov ecx, dword ptr [esi + 0x14] */
   3574     MEM32(esi + 0x10) = edx; /* 0x4100C51C: mov dword ptr [esi + 0x10], edx */
   3575     eax = MEM32(edi + 0x14); /* 0x4100C51F: mov eax, dword ptr [edi + 0x14] */
   3576     PUSH32(esp, eax); /* 0x4100C522: push eax */
   3577     RECOMP_ICALL(0x41001B90u); /* 0x4100C523: call 0x41001b90 */ /* not lifted */
   3578     RECOMP_FLAGS_IN();
   3579     ecx = MEM32(edi + 0x18); /* 0x4100C528: mov ecx, dword ptr [edi + 0x18] */
   3580     PUSH32(esp, ecx); /* 0x4100C52B: push ecx */
   3581     ecx = MEM32(esi + 0x18); /* 0x4100C52C: mov ecx, dword ptr [esi + 0x18] */
   3582     RECOMP_ICALL(0x41001B90u); /* 0x4100C52F: call 0x41001b90 */ /* not lifted */
   3583     RECOMP_FLAGS_IN();
   3584     edx = MEM32(edi + 0x1C); /* 0x4100C534: mov edx, dword ptr [edi + 0x1c] */
   3585     ecx = MEM32(esi + 0x1C); /* 0x4100C537: mov ecx, dword ptr [esi + 0x1c] */
   3586     PUSH32(esp, edx); /* 0x4100C53A: push edx */
   3587     RECOMP_ICALL(0x41001B90u); /* 0x4100C53B: call 0x41001b90 */ /* not lifted */
   3588     RECOMP_FLAGS_IN();
   3589     eax = MEM32(edi + 0x20); /* 0x4100C540: mov eax, dword ptr [edi + 0x20] */
   3590     ecx = MEM32(esi + 0x20); /* 0x4100C543: mov ecx, dword ptr [esi + 0x20] */
   3591     PUSH32(esp, eax); /* 0x4100C546: push eax */
   3592     RECOMP_ICALL(0x41001B90u); /* 0x4100C547: call 0x41001b90 */ /* not lifted */
   3593     RECOMP_FLAGS_IN();
   3594     ecx = MEM32(edi + 0x24); /* 0x4100C54C: mov ecx, dword ptr [edi + 0x24] */
   3595     MEM32(esi + 0x24) = ecx; /* 0x4100C54F: mov dword ptr [esi + 0x24], ecx */
   3596     edx = MEM32(edi + 0x28); /* 0x4100C552: mov edx, dword ptr [edi + 0x28] */
   3597     MEM32(esi + 0x28) = edx; /* 0x4100C555: mov dword ptr [esi + 0x28], edx */
   3598     eax = MEM32(edi + 0x2C); /* 0x4100C558: mov eax, dword ptr [edi + 0x2c] */
   3599     MEM32(esi + 0x2C) = eax; /* 0x4100C55B: mov dword ptr [esi + 0x2c], eax */
   3600     ecx = MEM32(edi + 0x30); /* 0x4100C55E: mov ecx, dword ptr [edi + 0x30] */
   3601     MEM32(esi + 0x30) = ecx; /* 0x4100C561: mov dword ptr [esi + 0x30], ecx */
   3602     eax = esi; /* 0x4100C564: mov eax, esi */
   3603     edi = POP32_VAL(esp); /* 0x4100C566: pop edi */
   3604     esi = POP32_VAL(esp); /* 0x4100C567: pop esi */
   3605     ebp = POP32_VAL(esp); /* 0x4100C568: pop ebp */
   3606     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100C569: ret 4 */
   3607     RECOMP_REGS_OUT();
   3608 }
   3609 
   3610 void sub_4100C570(void) {
   3611     int _fpu_cmp = 0;
   3612     uint32_t _cf = 0;
   3613     int _df = 1;
   3614     uint32_t _flag_k = FK_NONE;
   3615     uint32_t _flag_a = 0, _flag_b = 0;
   3616     uint32_t _itail_tgt = 0;
   3617     RECOMP_REGS_LOCALS
   3618     RECOMP_ENTER(0x4100C570u);
   3619 
   3620 L_4100C570:
   3621     PUSH32(esp, ebp); /* 0x4100C570: push ebp */
   3622     ebp = esp; /* 0x4100C571: mov ebp, esp */
   3623     PUSH32(esp, ebx); /* 0x4100C573: push ebx */
   3624     PUSH32(esp, esi); /* 0x4100C574: push esi */
   3625     PUSH32(esp, edi); /* 0x4100C575: push edi */
   3626     edi = MEM32(ebp + 0x8); /* 0x4100C576: mov edi, dword ptr [ebp + 8] */
   3627     esi = ecx; /* 0x4100C579: mov esi, ecx */
   3628     ecx = MEM32(edi + 0x8); /* 0x4100C57B: mov ecx, dword ptr [edi + 8] */
   3629     eax = MEM32(esi + 0x8); /* 0x4100C57E: mov eax, dword ptr [esi + 8] */
   3630     /* cmp eax, ecx */ /* 0x4100C581: cmp eax, ecx */
   3631     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3632     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3633     _flag_k = FK_CMP;
   3634     ecx = MEM32(edi + 0x14); /* 0x4100C583: mov ecx, dword ptr [edi + 0x14] */
   3635     SET_LO8(ebx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x4100C586: sete bl */
   3636     PUSH32(esp, ecx); /* 0x4100C589: push ecx */
   3637     ecx = MEM32(esi + 0x14); /* 0x4100C58A: mov ecx, dword ptr [esi + 0x14] */
   3638     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   3639     SET_LO8(ebx, LO8(ebx) & 1); /* 0x4100C58D: and bl, 1 */
   3640     _cf = 0;
   3641     _flag_k = FK_NARROW(FK_TEST, 24);
   3642     RECOMP_ICALL(0x41001BE0u); /* 0x4100C590: call 0x41001be0 */ /* not lifted */
   3643     RECOMP_FLAGS_IN();
   3644     edx = MEM32(edi + 0x18); /* 0x4100C595: mov edx, dword ptr [edi + 0x18] */
   3645     ecx = MEM32(esi + 0x18); /* 0x4100C598: mov ecx, dword ptr [esi + 0x18] */
   3646     PUSH32(esp, edx); /* 0x4100C59B: push edx */
   3647     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3648     SET_LO8(ebx, LO8(ebx) & LO8(eax)); /* 0x4100C59C: and bl, al */
   3649     _cf = 0;
   3650     _flag_k = FK_NARROW(FK_TEST, 24);
   3651     RECOMP_ICALL(0x41001BE0u); /* 0x4100C59E: call 0x41001be0 */ /* not lifted */
   3652     RECOMP_FLAGS_IN();
   3653     ecx = MEM32(edi + 0x24); /* 0x4100C5A3: mov ecx, dword ptr [edi + 0x24] */
   3654     edx = MEM32(esi + 0x10); /* 0x4100C5A6: mov edx, dword ptr [esi + 0x10] */
   3655     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3656     SET_LO8(ebx, LO8(ebx) & LO8(eax)); /* 0x4100C5A9: and bl, al */
   3657     _cf = 0;
   3658     _flag_k = FK_NARROW(FK_TEST, 24);
   3659     eax = MEM32(esi + 0x24); /* 0x4100C5AB: mov eax, dword ptr [esi + 0x24] */
   3660     /* cmp eax, ecx */ /* 0x4100C5AE: cmp eax, ecx */
   3661     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3662     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3663     _flag_k = FK_CMP;
   3664     eax = MEM32(edi + 0x10); /* 0x4100C5B0: mov eax, dword ptr [edi + 0x10] */
   3665     SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x4100C5B3: sete cl */
   3666     /* cmp edx, eax */ /* 0x4100C5B6: cmp edx, eax */
   3667     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3668     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3669     _flag_k = FK_CMP;
   3670     edx = MEM32(esi + 0xC); /* 0x4100C5B8: mov edx, dword ptr [esi + 0xc] */
   3671     SET_LO8(eax, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x4100C5BB: sete al */
   3672     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3673     SET_LO8(ecx, LO8(ecx) & LO8(eax)); /* 0x4100C5BE: and cl, al */
   3674     _cf = 0;
   3675     _flag_k = FK_NARROW(FK_TEST, 24);
   3676     eax = MEM32(edi + 0xC); /* 0x4100C5C0: mov eax, dword ptr [edi + 0xc] */
   3677     /* cmp edx, eax */ /* 0x4100C5C3: cmp edx, eax */
   3678     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3679     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3680     _flag_k = FK_CMP;
   3681     SET_LO8(eax, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x4100C5C5: sete al */
   3682     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3683     SET_LO8(ecx, LO8(ecx) & LO8(eax)); /* 0x4100C5C8: and cl, al */
   3684     _cf = 0;
   3685     _flag_k = FK_NARROW(FK_TEST, 24);
   3686     eax = MEM32(esi + 0x28); /* 0x4100C5CA: mov eax, dword ptr [esi + 0x28] */
   3687     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   3688     SET_LO8(ebx, LO8(ebx) & LO8(ecx)); /* 0x4100C5CD: and bl, cl */
   3689     _cf = 0;
   3690     _flag_k = FK_NARROW(FK_TEST, 24);
   3691     /* cmp eax, 0xFFFFFFFFu */ /* 0x4100C5CF: cmp eax, -1 */
   3692     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   3693     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3694     _flag_k = FK_CMP;
   3695     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100C5F2; /* 0x4100C5D2: je 0x4100c5f2 */
   3696 L_4100C5D4:
   3697     ecx = MEM32(edi + 0x28); /* 0x4100C5D4: mov ecx, dword ptr [edi + 0x28] */
   3698     edx = MEM32(edi + 0x30); /* 0x4100C5D7: mov edx, dword ptr [edi + 0x30] */
   3699     /* cmp eax, ecx */ /* 0x4100C5DA: cmp eax, ecx */
   3700     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3701     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3702     _flag_k = FK_CMP;
   3703     edi = POP32_VAL(esp); /* 0x4100C5DC: pop edi */
   3704     SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x4100C5DD: sete cl */
   3705     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   3706     SET_LO8(ebx, LO8(ebx) & LO8(ecx)); /* 0x4100C5E0: and bl, cl */
   3707     _cf = 0;
   3708     _flag_k = FK_NARROW(FK_TEST, 24);
   3709     ecx = MEM32(esi + 0x30); /* 0x4100C5E2: mov ecx, dword ptr [esi + 0x30] */
   3710     /* cmp ecx, edx */ /* 0x4100C5E5: cmp ecx, edx */
   3711     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3712     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3713     _flag_k = FK_CMP;
   3714     esi = POP32_VAL(esp); /* 0x4100C5E7: pop esi */
   3715     SET_LO8(eax, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x4100C5E8: sete al */
   3716     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3717     SET_LO8(eax, LO8(eax) & LO8(ebx)); /* 0x4100C5EB: and al, bl */
   3718     _cf = 0;
   3719     _flag_k = FK_NARROW(FK_TEST, 24);
   3720     ebx = POP32_VAL(esp); /* 0x4100C5ED: pop ebx */
   3721     ebp = POP32_VAL(esp); /* 0x4100C5EE: pop ebp */
   3722     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100C5EF: ret 4 */
   3723 L_4100C5F2:
   3724     edx = MEM32(esi + 0x2C); /* 0x4100C5F2: mov edx, dword ptr [esi + 0x2c] */
   3725     eax = MEM32(edi + 0x2C); /* 0x4100C5F5: mov eax, dword ptr [edi + 0x2c] */
   3726     ecx = MEM32(esi + 0x30); /* 0x4100C5F8: mov ecx, dword ptr [esi + 0x30] */
   3727     /* cmp edx, eax */ /* 0x4100C5FB: cmp edx, eax */
   3728     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3729     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3730     _flag_k = FK_CMP;
   3731     edx = MEM32(edi + 0x30); /* 0x4100C5FD: mov edx, dword ptr [edi + 0x30] */
   3732     edi = POP32_VAL(esp); /* 0x4100C600: pop edi */
   3733     SET_LO8(eax, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x4100C601: sete al */
   3734     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3735     SET_LO8(ebx, LO8(ebx) & LO8(eax)); /* 0x4100C604: and bl, al */
   3736     _cf = 0;
   3737     _flag_k = FK_NARROW(FK_TEST, 24);
   3738     /* cmp ecx, edx */ /* 0x4100C606: cmp ecx, edx */
   3739     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3740     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3741     _flag_k = FK_CMP;
   3742     SET_LO8(eax, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x4100C608: sete al */
   3743     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3744     SET_LO8(eax, LO8(eax) & LO8(ebx)); /* 0x4100C60B: and al, bl */
   3745     _cf = 0;
   3746     _flag_k = FK_NARROW(FK_TEST, 24);
   3747     esi = POP32_VAL(esp); /* 0x4100C60D: pop esi */
   3748     ebx = POP32_VAL(esp); /* 0x4100C60E: pop ebx */
   3749     ebp = POP32_VAL(esp); /* 0x4100C60F: pop ebp */
   3750     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100C610: ret 4 */
   3751     RECOMP_REGS_OUT();
   3752 }
   3753 
   3754 void sub_4100C620(void) {
   3755     int _fpu_cmp = 0;
   3756     uint32_t _cf = 0;
   3757     int _df = 1;
   3758     uint32_t _flag_k = FK_NONE;
   3759     uint32_t _flag_a = 0, _flag_b = 0;
   3760     uint32_t _itail_tgt = 0;
   3761     RECOMP_REGS_LOCALS
   3762     RECOMP_ENTER(0x4100C620u);
   3763 
   3764 L_4100C620:
   3765     eax = MEM32(ecx + 0x10); /* 0x4100C620: mov eax, dword ptr [ecx + 0x10] */
   3766     edx = MEM32(ecx + 0xC); /* 0x4100C623: mov edx, dword ptr [ecx + 0xc] */
   3767     PUSH32(esp, esi); /* 0x4100C626: push esi */
   3768     edx = MEM32(edx + 0x1C); /* 0x4100C627: mov edx, dword ptr [edx + 0x1c] */
   3769     esi = MEM32(eax + 0x20); /* 0x4100C62A: mov esi, dword ptr [eax + 0x20] */
   3770     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
   3771     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3772     edx = edx - esi; /* 0x4100C62D: sub edx, esi */
   3773     _flag_k = FK_CMP;
   3774     esi = POP32_VAL(esp); /* 0x4100C62F: pop esi */
   3775     MEM32(ecx + 0x24) = edx; /* 0x4100C630: mov dword ptr [ecx + 0x24], edx */
   3776     eax = MEM32(eax + 0x20); /* 0x4100C633: mov eax, dword ptr [eax + 0x20] */
   3777     MEM32(ecx + 0x30) = eax; /* 0x4100C636: mov dword ptr [ecx + 0x30], eax */
   3778     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100C639: ret  */
   3779     RECOMP_REGS_OUT();
   3780 }
   3781 
   3782 void sub_4100C640(void) {
   3783     int _fpu_cmp = 0;
   3784     uint32_t _cf = 0;
   3785     int _df = 1;
   3786     uint32_t _flag_k = FK_NONE;
   3787     uint32_t _flag_a = 0, _flag_b = 0;
   3788     uint32_t _itail_tgt = 0;
   3789     RECOMP_REGS_LOCALS
   3790     RECOMP_ENTER(0x4100C640u);
   3791 
   3792 L_4100C640:
   3793     PUSH32(esp, esi); /* 0x4100C640: push esi */
   3794     esi = ecx; /* 0x4100C641: mov esi, ecx */
   3795     eax = MEM32(esi + 0x1C); /* 0x4100C643: mov eax, dword ptr [esi + 0x1c] */
   3796     ecx = MEM32(esi + 0x14); /* 0x4100C646: mov ecx, dword ptr [esi + 0x14] */
   3797     PUSH32(esp, eax); /* 0x4100C649: push eax */
   3798     RECOMP_ICALL(0x41001BE0u); /* 0x4100C64A: call 0x41001be0 */ /* not lifted */
   3799     RECOMP_FLAGS_IN();
   3800     /* test LO8(eax), LO8(eax) */ /* 0x4100C64F: test al, al */
   3801     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3802     _cf = 0;
   3803     _flag_k = FK_NARROW(FK_TEST, 24);
   3804     if (TEST_Z(_flag_a, _flag_b)) goto L_4100C66A; /* 0x4100C651: je 0x4100c66a */
   3805 L_4100C653:
   3806     ecx = MEM32(esi + 0x20); /* 0x4100C653: mov ecx, dword ptr [esi + 0x20] */
   3807     PUSH32(esp, ecx); /* 0x4100C656: push ecx */
   3808     ecx = MEM32(esi + 0x18); /* 0x4100C657: mov ecx, dword ptr [esi + 0x18] */
   3809     RECOMP_ICALL(0x41001BE0u); /* 0x4100C65A: call 0x41001be0 */ /* not lifted */
   3810     RECOMP_FLAGS_IN();
   3811     /* test LO8(eax), LO8(eax) */ /* 0x4100C65F: test al, al */
   3812     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3813     _cf = 0;
   3814     _flag_k = FK_NARROW(FK_TEST, 24);
   3815     if (TEST_Z(_flag_a, _flag_b)) goto L_4100C66A; /* 0x4100C661: je 0x4100c66a */
   3816 L_4100C663:
   3817     eax = 1; /* 0x4100C663: mov eax, 1 */
   3818     esi = POP32_VAL(esp); /* 0x4100C668: pop esi */
   3819     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100C669: ret  */
   3820 L_4100C66A:
   3821     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3822     eax = 0; /* 0x4100C66A: xor eax, eax */
   3823     _cf = 0;
   3824     _flag_k = FK_TEST;
   3825     esi = POP32_VAL(esp); /* 0x4100C66C: pop esi */
   3826     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100C66D: ret  */
   3827     RECOMP_REGS_OUT();
   3828 }
   3829 
   3830 void sub_4100C670(void) {
   3831     int _fpu_cmp = 0;
   3832     uint32_t _cf = 0;
   3833     int _df = 1;
   3834     uint32_t _flag_k = FK_NONE;
   3835     uint32_t _flag_a = 0, _flag_b = 0;
   3836     uint32_t _itail_tgt = 0;
   3837     RECOMP_REGS_LOCALS
   3838     RECOMP_ENTER(0x4100C670u);
   3839 
   3840 L_4100C670:
   3841     PUSH32(esp, esi); /* 0x4100C670: push esi */
   3842     esi = ecx; /* 0x4100C671: mov esi, ecx */
   3843     eax = MEM32(esi + 0x14); /* 0x4100C673: mov eax, dword ptr [esi + 0x14] */
   3844     ecx = MEM32(esi + 0x1C); /* 0x4100C676: mov ecx, dword ptr [esi + 0x1c] */
   3845     PUSH32(esp, eax); /* 0x4100C679: push eax */
   3846     RECOMP_ICALL(0x41001B90u); /* 0x4100C67A: call 0x41001b90 */ /* not lifted */
   3847     RECOMP_FLAGS_IN();
   3848     ecx = MEM32(esi + 0x18); /* 0x4100C67F: mov ecx, dword ptr [esi + 0x18] */
   3849     PUSH32(esp, ecx); /* 0x4100C682: push ecx */
   3850     ecx = MEM32(esi + 0x20); /* 0x4100C683: mov ecx, dword ptr [esi + 0x20] */
   3851     RECOMP_ICALL(0x41001B90u); /* 0x4100C686: call 0x41001b90 */ /* not lifted */
   3852     RECOMP_FLAGS_IN();
   3853     esi = POP32_VAL(esp); /* 0x4100C68B: pop esi */
   3854     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100C68C: ret  */
   3855     RECOMP_REGS_OUT();
   3856 }
   3857 
   3858 void sub_4100C690(void) {
   3859     int _fpu_cmp = 0;
   3860     uint32_t _cf = 0;
   3861     int _df = 1;
   3862     uint32_t _flag_k = FK_NONE;
   3863     uint32_t _flag_a = 0, _flag_b = 0;
   3864     uint32_t _itail_tgt = 0;
   3865     RECOMP_REGS_LOCALS
   3866     RECOMP_ENTER(0x4100C690u);
   3867 
   3868 L_4100C690:
   3869     PUSH32(esp, ebp); /* 0x4100C690: push ebp */
   3870     ebp = esp; /* 0x4100C691: mov ebp, esp */
   3871     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3872     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3873     esp = esp - 0xCu; /* 0x4100C693: sub esp, 0xc */
   3874     _flag_k = FK_CMP;
   3875     PUSH32(esp, ebx); /* 0x4100C696: push ebx */
   3876     PUSH32(esp, esi); /* 0x4100C697: push esi */
   3877     PUSH32(esp, edi); /* 0x4100C698: push edi */
   3878     edi = ecx; /* 0x4100C699: mov edi, ecx */
   3879     SET_LO8(eax, 1); /* 0x4100C69B: mov al, 1 */
   3880     ecx = MEM32(edi + 0x4); /* 0x4100C69D: mov ecx, dword ptr [edi + 4] */
   3881     edx = MEM32(edi + 0x8); /* 0x4100C6A0: mov edx, dword ptr [edi + 8] */
   3882     esi = ecx; /* 0x4100C6A3: mov esi, ecx */
   3883     ebx = MEM32(ecx + 0x4); /* 0x4100C6A5: mov ebx, dword ptr [ecx + 4] */
   3884     /* cmp ebx, edx */ /* 0x4100C6A8: cmp ebx, edx */
   3885     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
   3886     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3887     _flag_k = FK_CMP;
   3888     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100C6CE; /* 0x4100C6AA: je 0x4100c6ce */
   3889 L_4100C6AC:
   3890     eax = MEM32(ebp + 0xC); /* 0x4100C6AC: mov eax, dword ptr [ebp + 0xc] */
   3891     eax = MEM32(eax); /* 0x4100C6AF: mov eax, dword ptr [eax] */
   3892     MEM32(ebp + (-0x8)) = eax; /* 0x4100C6B1: mov dword ptr [ebp - 8], eax */
   3893 L_4100C6B4:
   3894     eax = MEM32(ebp + (-0x8)); /* 0x4100C6B4: mov eax, dword ptr [ebp - 8] */
   3895     esi = ebx; /* 0x4100C6B7: mov esi, ebx */
   3896     /* cmp eax, MEM32(ebx + 0xC) */ /* 0x4100C6B9: cmp eax, dword ptr [ebx + 0xc] */
   3897     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0xC));
   3898     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3899     _flag_k = FK_CMP;
   3900     SET_LO8(eax, (CMP_B(_flag_a, _flag_b)) ? 1 : 0); /* 0x4100C6BC: setb al */
   3901     /* test LO8(eax), LO8(eax) */ /* 0x4100C6BF: test al, al */
   3902     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3903     _cf = 0;
   3904     _flag_k = FK_NARROW(FK_TEST, 24);
   3905     if (TEST_Z(_flag_a, _flag_b)) goto L_4100C6C7; /* 0x4100C6C1: je 0x4100c6c7 */
   3906 L_4100C6C3:
   3907     ebx = MEM32(ebx); /* 0x4100C6C3: mov ebx, dword ptr [ebx] */
   3908     goto L_4100C6CA; /* 0x4100C6C5: jmp 0x4100c6ca */
   3909 L_4100C6C7:
   3910     ebx = MEM32(ebx + 0x8); /* 0x4100C6C7: mov ebx, dword ptr [ebx + 8] */
   3911 L_4100C6CA:
   3912     /* cmp ebx, edx */ /* 0x4100C6CA: cmp ebx, edx */
   3913     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
   3914     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3915     _flag_k = FK_CMP;
   3916     RECOMP_BACKEDGE();
   3917     if (CMP_NE(_flag_a, _flag_b)) goto L_4100C6B4; /* 0x4100C6CC: jne 0x4100c6b4 */
   3918 L_4100C6CE:
   3919     SET_LO8(edx, MEM8(edi + 0xC)); /* 0x4100C6CE: mov dl, byte ptr [edi + 0xc] */
   3920     /* test LO8(edx), LO8(edx) */ /* 0x4100C6D1: test dl, dl */
   3921     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3922     _cf = 0;
   3923     _flag_k = FK_NARROW(FK_TEST, 24);
   3924     if (TEST_Z(_flag_a, _flag_b)) goto L_4100C84B; /* 0x4100C6D3: je 0x4100c84b */
   3925 L_4100C6D9:
   3926     PUSH32(esp, 0); /* 0x4100C6D9: push 0 */
   3927     PUSH32(esp, esi); /* 0x4100C6DB: push esi */
   3928     ecx = edi; /* 0x4100C6DC: mov ecx, edi */
   3929     RECOMP_ICALL(0x41009EE0u); /* 0x4100C6DE: call 0x41009ee0 */ /* not lifted */
   3930     RECOMP_FLAGS_IN();
   3931     ecx = MEM32(edi + 0x8); /* 0x4100C6E3: mov ecx, dword ptr [edi + 8] */
   3932     MEM32(ebp + (-0x4)) = eax; /* 0x4100C6E6: mov dword ptr [ebp - 4], eax */
   3933     MEM32(eax) = ecx; /* 0x4100C6E9: mov dword ptr [eax], ecx */
   3934     edx = MEM32(edi + 0x8); /* 0x4100C6EB: mov edx, dword ptr [edi + 8] */
   3935     ecx = MEM32(ebp + 0xC); /* 0x4100C6EE: mov ecx, dword ptr [ebp + 0xc] */
   3936     MEM32(eax + 0x8) = edx; /* 0x4100C6F1: mov dword ptr [eax + 8], edx */
   3937     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   3938     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3939     eax = eax + 0xCu; /* 0x4100C6F4: add eax, 0xc */
   3940     _flag_k = FK_ADD;
   3941     PUSH32(esp, ecx); /* 0x4100C6F7: push ecx */
   3942     PUSH32(esp, eax); /* 0x4100C6F8: push eax */
   3943     RECOMP_ICALL(0x41006DF0u); /* 0x4100C6F9: call 0x41006df0 */ /* not lifted */
   3944     RECOMP_FLAGS_IN();
   3945     ecx = MEM32(edi + 0x10); /* 0x4100C6FE: mov ecx, dword ptr [edi + 0x10] */
   3946     eax = MEM32(edi + 0x4); /* 0x4100C701: mov eax, dword ptr [edi + 4] */
   3947     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3948     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3949     esp = esp + 8; /* 0x4100C704: add esp, 8 */
   3950     _flag_k = FK_ADD;
   3951     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3952     ecx = ecx + 1; /* 0x4100C707: inc ecx */
   3953     _flag_k = FK_INC;
   3954     /* cmp esi, eax */ /* 0x4100C708: cmp esi, eax */
   3955     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   3956     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3957     _flag_k = FK_CMP;
   3958     MEM32(edi + 0x10) = ecx; /* 0x4100C70A: mov dword ptr [edi + 0x10], ecx */
   3959     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100C733; /* 0x4100C70D: je 0x4100c733 */
   3960 L_4100C70F:
   3961     /* cmp ebx, MEM32(edi + 0x8) */ /* 0x4100C70F: cmp ebx, dword ptr [edi + 8] */
   3962     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3963     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3964     _flag_k = FK_CMP;
   3965     if (CMP_NE(_flag_a, _flag_b)) goto L_4100C733; /* 0x4100C712: jne 0x4100c733 */
   3966 L_4100C714:
   3967     edx = MEM32(ebp + 0xC); /* 0x4100C714: mov edx, dword ptr [ebp + 0xc] */
   3968     ecx = MEM32(esi + 0xC); /* 0x4100C717: mov ecx, dword ptr [esi + 0xc] */
   3969     eax = MEM32(edx); /* 0x4100C71A: mov eax, dword ptr [edx] */
   3970     /* cmp eax, ecx */ /* 0x4100C71C: cmp eax, ecx */
   3971     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3972     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3973     _flag_k = FK_CMP;
   3974     if (CMP_B(_flag_a, _flag_b)) goto L_4100C733; /* 0x4100C71E: jb 0x4100c733 */
   3975 L_4100C720:
   3976     ebx = MEM32(ebp + (-0x4)); /* 0x4100C720: mov ebx, dword ptr [ebp - 4] */
   3977     MEM32(esi + 0x8) = ebx; /* 0x4100C723: mov dword ptr [esi + 8], ebx */
   3978     eax = MEM32(edi + 0x4); /* 0x4100C726: mov eax, dword ptr [edi + 4] */
   3979     /* cmp esi, MEM32(eax + 0x8) */ /* 0x4100C729: cmp esi, dword ptr [eax + 8] */
   3980     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   3981     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3982     _flag_k = FK_CMP;
   3983     if (CMP_NE(_flag_a, _flag_b)) goto L_4100C756; /* 0x4100C72C: jne 0x4100c756 */
   3984 L_4100C72E:
   3985     MEM32(eax + 0x8) = ebx; /* 0x4100C72E: mov dword ptr [eax + 8], ebx */
   3986     goto L_4100C756; /* 0x4100C731: jmp 0x4100c756 */
   3987 L_4100C733:
   3988     ecx = MEM32(ebp + (-0x4)); /* 0x4100C733: mov ecx, dword ptr [ebp - 4] */
   3989     MEM32(esi) = ecx; /* 0x4100C736: mov dword ptr [esi], ecx */
   3990     eax = MEM32(edi + 0x4); /* 0x4100C738: mov eax, dword ptr [edi + 4] */
   3991     /* cmp esi, eax */ /* 0x4100C73B: cmp esi, eax */
   3992     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   3993     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3994     _flag_k = FK_CMP;
   3995     if (CMP_NE(_flag_a, _flag_b)) goto L_4100C74A; /* 0x4100C73D: jne 0x4100c74a */
   3996 L_4100C73F:
   3997     MEM32(eax + 0x4) = ecx; /* 0x4100C73F: mov dword ptr [eax + 4], ecx */
   3998     edx = MEM32(edi + 0x4); /* 0x4100C742: mov edx, dword ptr [edi + 4] */
   3999     MEM32(edx + 0x8) = ecx; /* 0x4100C745: mov dword ptr [edx + 8], ecx */
   4000     goto L_4100C753; /* 0x4100C748: jmp 0x4100c753 */
   4001 L_4100C74A:
   4002     /* cmp esi, MEM32(eax) */ /* 0x4100C74A: cmp esi, dword ptr [eax] */
   4003     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax));
   4004     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4005     _flag_k = FK_CMP;
   4006     if (CMP_NE(_flag_a, _flag_b)) goto L_4100C753; /* 0x4100C74C: jne 0x4100c753 */
   4007 L_4100C74E:
   4008     ecx = MEM32(ebp + (-0x4)); /* 0x4100C74E: mov ecx, dword ptr [ebp - 4] */
   4009     MEM32(eax) = ecx; /* 0x4100C751: mov dword ptr [eax], ecx */
   4010 L_4100C753:
   4011     ebx = MEM32(ebp + (-0x4)); /* 0x4100C753: mov ebx, dword ptr [ebp - 4] */
   4012 L_4100C756:
   4013     edx = MEM32(edi + 0x4); /* 0x4100C756: mov edx, dword ptr [edi + 4] */
   4014     esi = ebx; /* 0x4100C759: mov esi, ebx */
   4015     /* cmp ebx, MEM32(edx + 0x4) */ /* 0x4100C75B: cmp ebx, dword ptr [edx + 4] */
   4016     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4017     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4018     _flag_k = FK_CMP;
   4019     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100C829; /* 0x4100C75E: je 0x4100c829 */
   4020 L_4100C764:
   4021     eax = MEM32(esi + 0x4); /* 0x4100C764: mov eax, dword ptr [esi + 4] */
   4022     SET_LO8(ecx, MEM8(eax + 0x14)); /* 0x4100C767: mov cl, byte ptr [eax + 0x14] */
   4023     /* test LO8(ecx), LO8(ecx) */ /* 0x4100C76A: test cl, cl */
   4024     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   4025     _cf = 0;
   4026     _flag_k = FK_NARROW(FK_TEST, 24);
   4027     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100C829; /* 0x4100C76C: jne 0x4100c829 */
   4028 L_4100C772:
   4029     edx = MEM32(eax + 0x4); /* 0x4100C772: mov edx, dword ptr [eax + 4] */
   4030     ecx = MEM32(edx); /* 0x4100C775: mov ecx, dword ptr [edx] */
   4031     /* cmp eax, ecx */ /* 0x4100C777: cmp eax, ecx */
   4032     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4033     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4034     _flag_k = FK_CMP;
   4035     if (CMP_NE(_flag_a, _flag_b)) goto L_4100C7CF; /* 0x4100C779: jne 0x4100c7cf */
   4036 L_4100C77B:
   4037     ecx = MEM32(edx + 0x8); /* 0x4100C77B: mov ecx, dword ptr [edx + 8] */
   4038     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x4100C77E: mov dl, byte ptr [ecx + 0x14] */
   4039     /* test LO8(edx), LO8(edx) */ /* 0x4100C781: test dl, dl */
   4040     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4041     _cf = 0;
   4042     _flag_k = FK_NARROW(FK_TEST, 24);
   4043     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100C79F; /* 0x4100C783: jne 0x4100c79f */
   4044 L_4100C785:
   4045     MEM8(eax + 0x14) = (uint8_t)(1); /* 0x4100C785: mov byte ptr [eax + 0x14], 1 */
   4046     MEM8(ecx + 0x14) = (uint8_t)(1); /* 0x4100C789: mov byte ptr [ecx + 0x14], 1 */
   4047     eax = MEM32(esi + 0x4); /* 0x4100C78D: mov eax, dword ptr [esi + 4] */
   4048     ecx = MEM32(eax + 0x4); /* 0x4100C790: mov ecx, dword ptr [eax + 4] */
   4049     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x4100C793: mov byte ptr [ecx + 0x14], 0 */
   4050     edx = MEM32(esi + 0x4); /* 0x4100C797: mov edx, dword ptr [esi + 4] */
   4051     esi = MEM32(edx + 0x4); /* 0x4100C79A: mov esi, dword ptr [edx + 4] */
   4052     goto L_4100C81D; /* 0x4100C79D: jmp 0x4100c81d */
   4053 L_4100C79F:
   4054     /* cmp esi, MEM32(eax + 0x8) */ /* 0x4100C79F: cmp esi, dword ptr [eax + 8] */
   4055     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   4056     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4057     _flag_k = FK_CMP;
   4058     if (CMP_NE(_flag_a, _flag_b)) goto L_4100C7AE; /* 0x4100C7A2: jne 0x4100c7ae */
   4059 L_4100C7A4:
   4060     esi = eax; /* 0x4100C7A4: mov esi, eax */
   4061     ecx = edi; /* 0x4100C7A6: mov ecx, edi */
   4062     PUSH32(esp, esi); /* 0x4100C7A8: push esi */
   4063     RECOMP_ICALL(0x41009E20u); /* 0x4100C7A9: call 0x41009e20 */ /* not lifted */
   4064     RECOMP_FLAGS_IN();
   4065 L_4100C7AE:
   4066     eax = MEM32(esi + 0x4); /* 0x4100C7AE: mov eax, dword ptr [esi + 4] */
   4067     MEM8(eax + 0x14) = (uint8_t)(1); /* 0x4100C7B1: mov byte ptr [eax + 0x14], 1 */
   4068     ecx = MEM32(esi + 0x4); /* 0x4100C7B5: mov ecx, dword ptr [esi + 4] */
   4069     edx = MEM32(ecx + 0x4); /* 0x4100C7B8: mov edx, dword ptr [ecx + 4] */
   4070     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x4100C7BB: mov byte ptr [edx + 0x14], 0 */
   4071     eax = MEM32(esi + 0x4); /* 0x4100C7BF: mov eax, dword ptr [esi + 4] */
   4072     ecx = MEM32(eax + 0x4); /* 0x4100C7C2: mov ecx, dword ptr [eax + 4] */
   4073     PUSH32(esp, ecx); /* 0x4100C7C5: push ecx */
   4074     ecx = edi; /* 0x4100C7C6: mov ecx, edi */
   4075     RECOMP_ICALL(0x41009E80u); /* 0x4100C7C8: call 0x41009e80 */ /* not lifted */
   4076     RECOMP_FLAGS_IN();
   4077     goto L_4100C81D; /* 0x4100C7CD: jmp 0x4100c81d */
   4078 L_4100C7CF:
   4079     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x4100C7CF: mov dl, byte ptr [ecx + 0x14] */
   4080     /* test LO8(edx), LO8(edx) */ /* 0x4100C7D2: test dl, dl */
   4081     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4082     _cf = 0;
   4083     _flag_k = FK_NARROW(FK_TEST, 24);
   4084     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100C7F0; /* 0x4100C7D4: jne 0x4100c7f0 */
   4085 L_4100C7D6:
   4086     MEM8(eax + 0x14) = (uint8_t)(1); /* 0x4100C7D6: mov byte ptr [eax + 0x14], 1 */
   4087     MEM8(ecx + 0x14) = (uint8_t)(1); /* 0x4100C7DA: mov byte ptr [ecx + 0x14], 1 */
   4088     edx = MEM32(esi + 0x4); /* 0x4100C7DE: mov edx, dword ptr [esi + 4] */
   4089     eax = MEM32(edx + 0x4); /* 0x4100C7E1: mov eax, dword ptr [edx + 4] */
   4090     MEM8(eax + 0x14) = (uint8_t)(0); /* 0x4100C7E4: mov byte ptr [eax + 0x14], 0 */
   4091     ecx = MEM32(esi + 0x4); /* 0x4100C7E8: mov ecx, dword ptr [esi + 4] */
   4092     esi = MEM32(ecx + 0x4); /* 0x4100C7EB: mov esi, dword ptr [ecx + 4] */
   4093     goto L_4100C81D; /* 0x4100C7EE: jmp 0x4100c81d */
   4094 L_4100C7F0:
   4095     /* cmp esi, MEM32(eax) */ /* 0x4100C7F0: cmp esi, dword ptr [eax] */
   4096     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax));
   4097     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4098     _flag_k = FK_CMP;
   4099     if (CMP_NE(_flag_a, _flag_b)) goto L_4100C7FE; /* 0x4100C7F2: jne 0x4100c7fe */
   4100 L_4100C7F4:
   4101     esi = eax; /* 0x4100C7F4: mov esi, eax */
   4102     ecx = edi; /* 0x4100C7F6: mov ecx, edi */
   4103     PUSH32(esp, esi); /* 0x4100C7F8: push esi */
   4104     RECOMP_ICALL(0x41009E80u); /* 0x4100C7F9: call 0x41009e80 */ /* not lifted */
   4105     RECOMP_FLAGS_IN();
   4106 L_4100C7FE:
   4107     edx = MEM32(esi + 0x4); /* 0x4100C7FE: mov edx, dword ptr [esi + 4] */
   4108     MEM8(edx + 0x14) = (uint8_t)(1); /* 0x4100C801: mov byte ptr [edx + 0x14], 1 */
   4109     eax = MEM32(esi + 0x4); /* 0x4100C805: mov eax, dword ptr [esi + 4] */
   4110     ecx = MEM32(eax + 0x4); /* 0x4100C808: mov ecx, dword ptr [eax + 4] */
   4111     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x4100C80B: mov byte ptr [ecx + 0x14], 0 */
   4112     edx = MEM32(esi + 0x4); /* 0x4100C80F: mov edx, dword ptr [esi + 4] */
   4113     ecx = edi; /* 0x4100C812: mov ecx, edi */
   4114     eax = MEM32(edx + 0x4); /* 0x4100C814: mov eax, dword ptr [edx + 4] */
   4115     PUSH32(esp, eax); /* 0x4100C817: push eax */
   4116     RECOMP_ICALL(0x41009E20u); /* 0x4100C818: call 0x41009e20 */ /* not lifted */
   4117     RECOMP_FLAGS_IN();
   4118 L_4100C81D:
   4119     ecx = MEM32(edi + 0x4); /* 0x4100C81D: mov ecx, dword ptr [edi + 4] */
   4120     /* cmp esi, MEM32(ecx + 0x4) */ /* 0x4100C820: cmp esi, dword ptr [ecx + 4] */
   4121     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   4122     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4123     _flag_k = FK_CMP;
   4124     RECOMP_BACKEDGE();
   4125     if (CMP_NE(_flag_a, _flag_b)) goto L_4100C764; /* 0x4100C823: jne 0x4100c764 */
   4126 L_4100C829:
   4127     edx = MEM32(edi + 0x4); /* 0x4100C829: mov edx, dword ptr [edi + 4] */
   4128     edi = POP32_VAL(esp); /* 0x4100C82C: pop edi */
   4129     esi = POP32_VAL(esp); /* 0x4100C82D: pop esi */
   4130     eax = MEM32(edx + 0x4); /* 0x4100C82E: mov eax, dword ptr [edx + 4] */
   4131     MEM8(eax + 0x14) = (uint8_t)(1); /* 0x4100C831: mov byte ptr [eax + 0x14], 1 */
   4132     eax = MEM32(ebp + 0x8); /* 0x4100C835: mov eax, dword ptr [ebp + 8] */
   4133     MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x4100C838: mov byte ptr [ebp - 8], 1 */
   4134     ecx = MEM32(ebp + (-0x8)); /* 0x4100C83C: mov ecx, dword ptr [ebp - 8] */
   4135     MEM32(eax) = ebx; /* 0x4100C83F: mov dword ptr [eax], ebx */
   4136     MEM32(eax + 0x4) = ecx; /* 0x4100C841: mov dword ptr [eax + 4], ecx */
   4137     ebx = POP32_VAL(esp); /* 0x4100C844: pop ebx */
   4138     esp = ebp; /* 0x4100C845: mov esp, ebp */
   4139     ebp = POP32_VAL(esp); /* 0x4100C847: pop ebp */
   4140     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4100C848: ret 8 */
   4141 L_4100C84B:
   4142     edx = esi; /* 0x4100C84B: mov edx, esi */
   4143     /* test LO8(eax), LO8(eax) */ /* 0x4100C84D: test al, al */
   4144     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4145     _cf = 0;
   4146     _flag_k = FK_NARROW(FK_TEST, 24);
   4147     MEM32(ebp + (-0x8)) = edx; /* 0x4100C84F: mov dword ptr [ebp - 8], edx */
   4148     if (TEST_Z(_flag_a, _flag_b)) goto L_4100C88E; /* 0x4100C852: je 0x4100c88e */
   4149 L_4100C854:
   4150     /* cmp esi, MEM32(ecx) */ /* 0x4100C854: cmp esi, dword ptr [ecx] */
   4151     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx));
   4152     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4153     _flag_k = FK_CMP;
   4154     if (CMP_NE(_flag_a, _flag_b)) goto L_4100C883; /* 0x4100C856: jne 0x4100c883 */
   4155 L_4100C858:
   4156     edx = MEM32(ebp + 0xC); /* 0x4100C858: mov edx, dword ptr [ebp + 0xc] */
   4157     eax = ebp + 0xC; /* 0x4100C85B: lea eax, [ebp + 0xc] */
   4158     PUSH32(esp, edx); /* 0x4100C85E: push edx */
   4159     PUSH32(esp, esi); /* 0x4100C85F: push esi */
   4160     PUSH32(esp, ebx); /* 0x4100C860: push ebx */
   4161     PUSH32(esp, eax); /* 0x4100C861: push eax */
   4162     ecx = edi; /* 0x4100C862: mov ecx, edi */
   4163     RECOMP_ICALL(0x410069D0u); /* 0x4100C864: call 0x410069d0 */ /* not lifted */
   4164     RECOMP_FLAGS_IN();
   4165     ecx = MEM32(eax); /* 0x4100C869: mov ecx, dword ptr [eax] */
   4166     eax = MEM32(ebp + 0x8); /* 0x4100C86B: mov eax, dword ptr [ebp + 8] */
   4167     MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x4100C86E: mov byte ptr [ebp - 8], 1 */
   4168     edi = POP32_VAL(esp); /* 0x4100C872: pop edi */
   4169     MEM32(eax) = ecx; /* 0x4100C873: mov dword ptr [eax], ecx */
   4170     ecx = MEM32(ebp + (-0x8)); /* 0x4100C875: mov ecx, dword ptr [ebp - 8] */
   4171     esi = POP32_VAL(esp); /* 0x4100C878: pop esi */
   4172     MEM32(eax + 0x4) = ecx; /* 0x4100C879: mov dword ptr [eax + 4], ecx */
   4173     ebx = POP32_VAL(esp); /* 0x4100C87C: pop ebx */
   4174     esp = ebp; /* 0x4100C87D: mov esp, ebp */
   4175     ebp = POP32_VAL(esp); /* 0x4100C87F: pop ebp */
   4176     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4100C880: ret 8 */
   4177 L_4100C883:
   4178     ecx = ebp + (-0x8); /* 0x4100C883: lea ecx, [ebp - 8] */
   4179     RECOMP_ICALL(0x41009F10u); /* 0x4100C886: call 0x41009f10 */ /* not lifted */
   4180     RECOMP_FLAGS_IN();
   4181     edx = MEM32(ebp + (-0x8)); /* 0x4100C88B: mov edx, dword ptr [ebp - 8] */
   4182 L_4100C88E:
   4183     eax = MEM32(ebp + 0xC); /* 0x4100C88E: mov eax, dword ptr [ebp + 0xc] */
   4184     ecx = MEM32(edx + 0xC); /* 0x4100C891: mov ecx, dword ptr [edx + 0xc] */
   4185     /* cmp ecx, MEM32(eax) */ /* 0x4100C894: cmp ecx, dword ptr [eax] */
   4186     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax));
   4187     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4188     _flag_k = FK_CMP;
   4189     if (CMP_AE(_flag_a, _flag_b)) goto L_4100C8C0; /* 0x4100C896: jae 0x4100c8c0 */
   4190 L_4100C898:
   4191     PUSH32(esp, eax); /* 0x4100C898: push eax */
   4192     PUSH32(esp, esi); /* 0x4100C899: push esi */
   4193     edx = ebp + 0xC; /* 0x4100C89A: lea edx, [ebp + 0xc] */
   4194     PUSH32(esp, ebx); /* 0x4100C89D: push ebx */
   4195     PUSH32(esp, edx); /* 0x4100C89E: push edx */
   4196     ecx = edi; /* 0x4100C89F: mov ecx, edi */
   4197     RECOMP_ICALL(0x410069D0u); /* 0x4100C8A1: call 0x410069d0 */ /* not lifted */
   4198     RECOMP_FLAGS_IN();
   4199     ecx = MEM32(eax); /* 0x4100C8A6: mov ecx, dword ptr [eax] */
   4200     eax = MEM32(ebp + 0x8); /* 0x4100C8A8: mov eax, dword ptr [ebp + 8] */
   4201     MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x4100C8AB: mov byte ptr [ebp - 8], 1 */
   4202     edi = POP32_VAL(esp); /* 0x4100C8AF: pop edi */
   4203     MEM32(eax) = ecx; /* 0x4100C8B0: mov dword ptr [eax], ecx */
   4204     ecx = MEM32(ebp + (-0x8)); /* 0x4100C8B2: mov ecx, dword ptr [ebp - 8] */
   4205     esi = POP32_VAL(esp); /* 0x4100C8B5: pop esi */
   4206     MEM32(eax + 0x4) = ecx; /* 0x4100C8B6: mov dword ptr [eax + 4], ecx */
   4207     ebx = POP32_VAL(esp); /* 0x4100C8B9: pop ebx */
   4208     esp = ebp; /* 0x4100C8BA: mov esp, ebp */
   4209     ebp = POP32_VAL(esp); /* 0x4100C8BC: pop ebp */
   4210     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4100C8BD: ret 8 */
   4211 L_4100C8C0:
   4212     eax = MEM32(ebp + 0x8); /* 0x4100C8C0: mov eax, dword ptr [ebp + 8] */
   4213     MEM8(ebp + (-0x8)) = (uint8_t)(0); /* 0x4100C8C3: mov byte ptr [ebp - 8], 0 */
   4214     edi = POP32_VAL(esp); /* 0x4100C8C7: pop edi */
   4215     esi = POP32_VAL(esp); /* 0x4100C8C8: pop esi */
   4216     MEM32(eax) = edx; /* 0x4100C8C9: mov dword ptr [eax], edx */
   4217     edx = MEM32(ebp + (-0x8)); /* 0x4100C8CB: mov edx, dword ptr [ebp - 8] */
   4218     MEM32(eax + 0x4) = edx; /* 0x4100C8CE: mov dword ptr [eax + 4], edx */
   4219     ebx = POP32_VAL(esp); /* 0x4100C8D1: pop ebx */
   4220     esp = ebp; /* 0x4100C8D2: mov esp, ebp */
   4221     ebp = POP32_VAL(esp); /* 0x4100C8D4: pop ebp */
   4222     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4100C8D5: ret 8 */
   4223     RECOMP_REGS_OUT();
   4224 }
   4225 
   4226 void sub_4100C8E0(void) {
   4227     int _fpu_cmp = 0;
   4228     uint32_t _cf = 0;
   4229     int _df = 1;
   4230     uint32_t _flag_k = FK_NONE;
   4231     uint32_t _flag_a = 0, _flag_b = 0;
   4232     uint32_t _itail_tgt = 0;
   4233     RECOMP_REGS_LOCALS
   4234     RECOMP_ENTER(0x4100C8E0u);
   4235 
   4236 L_4100C8E0:
   4237     PUSH32(esp, ebp); /* 0x4100C8E0: push ebp */
   4238     ebp = esp; /* 0x4100C8E1: mov ebp, esp */
   4239     eax = MEM32(ebp + 0x10); /* 0x4100C8E3: mov eax, dword ptr [ebp + 0x10] */
   4240     edx = ebp + 0x10; /* 0x4100C8E6: lea edx, [ebp + 0x10] */
   4241     PUSH32(esp, eax); /* 0x4100C8E9: push eax */
   4242     eax = MEM32(ebp + 0x8); /* 0x4100C8EA: mov eax, dword ptr [ebp + 8] */
   4243     PUSH32(esp, edx); /* 0x4100C8ED: push edx */
   4244     PUSH32(esp, eax); /* 0x4100C8EE: push eax */
   4245     RECOMP_ICALL(MEM32(0x4100F164)); /* 0x4100C8EF: call dword ptr [0x4100f164] */
   4246     RECOMP_FLAGS_IN();
   4247     /* test eax, eax */ /* 0x4100C8F5: test eax, eax */
   4248     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4249     _cf = 0;
   4250     _flag_k = FK_TEST;
   4251     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100C901; /* 0x4100C8F7: jne 0x4100c901 */
   4252 L_4100C8F9:
   4253     ecx = MEM32(ebp + 0xC); /* 0x4100C8F9: mov ecx, dword ptr [ebp + 0xc] */
   4254     edx = MEM32(ebp + 0x10); /* 0x4100C8FC: mov edx, dword ptr [ebp + 0x10] */
   4255     MEM32(ecx) = edx; /* 0x4100C8FF: mov dword ptr [ecx], edx */
   4256 L_4100C901:
   4257     ebp = POP32_VAL(esp); /* 0x4100C901: pop ebp */
   4258     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4100C902: ret 0xc */
   4259     RECOMP_REGS_OUT();
   4260 }
   4261 
   4262 void sub_4100C910(void) {
   4263     int _fpu_cmp = 0;
   4264     uint32_t _cf = 0;
   4265     int _df = 1;
   4266     uint32_t _flag_k = FK_NONE;
   4267     uint32_t _flag_a = 0, _flag_b = 0;
   4268     uint32_t _itail_tgt = 0;
   4269     RECOMP_REGS_LOCALS
   4270     RECOMP_ENTER(0x4100C910u);
   4271 
   4272 L_4100C910:
   4273     eax = ecx; /* 0x4100C910: mov eax, ecx */
   4274     MEM32(eax) = 0; /* 0x4100C912: mov dword ptr [eax], 0 */
   4275     MEM32(eax + 0x4) = 0; /* 0x4100C918: mov dword ptr [eax + 4], 0 */
   4276     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100C91F: ret  */
   4277     RECOMP_REGS_OUT();
   4278 }
   4279 
   4280 void sub_4100C920(void) {
   4281     int _fpu_cmp = 0;
   4282     uint32_t _cf = 0;
   4283     int _df = 1;
   4284     uint32_t _flag_k = FK_NONE;
   4285     uint32_t _flag_a = 0, _flag_b = 0;
   4286     uint32_t _itail_tgt = 0;
   4287     RECOMP_REGS_LOCALS
   4288     RECOMP_ENTER(0x4100C920u);
   4289 
   4290 L_4100C920:
   4291     PUSH32(esp, ebp); /* 0x4100C920: push ebp */
   4292     ebp = esp; /* 0x4100C921: mov ebp, esp */
   4293     eax = MEM32(ebp + 0xC); /* 0x4100C923: mov eax, dword ptr [ebp + 0xc] */
   4294     PUSH32(esp, esi); /* 0x4100C926: push esi */
   4295     esi = ecx; /* 0x4100C927: mov esi, ecx */
   4296     PUSH32(esp, eax); /* 0x4100C929: push eax */
   4297     ecx = MEM32(ebp + 0x8); /* 0x4100C92A: mov ecx, dword ptr [ebp + 8] */
   4298     PUSH32(esp, ecx); /* 0x4100C92D: push ecx */
   4299     ecx = esi; /* 0x4100C92E: mov ecx, esi */
   4300     MEM32(esi) = 0; /* 0x4100C930: mov dword ptr [esi], 0 */
   4301     MEM32(esi + 0x4) = 0; /* 0x4100C936: mov dword ptr [esi + 4], 0 */
   4302     RECOMP_ICALL(0x4100C960u); /* 0x4100C93D: call 0x4100c960 */ /* not lifted */
   4303     RECOMP_FLAGS_IN();
   4304     eax = esi; /* 0x4100C942: mov eax, esi */
   4305     esi = POP32_VAL(esp); /* 0x4100C944: pop esi */
   4306     ebp = POP32_VAL(esp); /* 0x4100C945: pop ebp */
   4307     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4100C946: ret 8 */
   4308     RECOMP_REGS_OUT();
   4309 }
   4310 
   4311 void sub_4100C950(void) {
   4312     int _fpu_cmp = 0;
   4313     uint32_t _cf = 0;
   4314     int _df = 1;
   4315     uint32_t _flag_k = FK_NONE;
   4316     uint32_t _flag_a = 0, _flag_b = 0;
   4317     uint32_t _itail_tgt = 0;
   4318     RECOMP_REGS_LOCALS
   4319     RECOMP_ENTER(0x4100C950u);
   4320 
   4321 L_4100C950:
   4322     eax = MEM32(ecx); /* 0x4100C950: mov eax, dword ptr [ecx] */
   4323     /* test eax, eax */ /* 0x4100C952: test eax, eax */
   4324     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4325     _cf = 0;
   4326     _flag_k = FK_TEST;
   4327     if (TEST_Z(_flag_a, _flag_b)) goto L_4100C95D; /* 0x4100C954: je 0x4100c95d */
   4328 L_4100C956:
   4329     PUSH32(esp, eax); /* 0x4100C956: push eax */
   4330     RECOMP_ICALL(0x4100DB20u); /* 0x4100C957: call 0x4100db20 */ /* not lifted */
   4331     RECOMP_FLAGS_IN();
   4332     ecx = POP32_VAL(esp); /* 0x4100C95C: pop ecx */
   4333 L_4100C95D:
   4334     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100C95D: ret  */
   4335     RECOMP_REGS_OUT();
   4336 }
   4337 
   4338 void sub_4100C960(void) {
   4339     int _fpu_cmp = 0;
   4340     uint32_t _cf = 0;
   4341     int _df = 1;
   4342     uint32_t _flag_k = FK_NONE;
   4343     uint32_t _flag_a = 0, _flag_b = 0;
   4344     uint32_t _itail_tgt = 0;
   4345     RECOMP_REGS_LOCALS
   4346     RECOMP_ENTER(0x4100C960u);
   4347 
   4348 L_4100C960:
   4349     PUSH32(esp, ebp); /* 0x4100C960: push ebp */
   4350     ebp = esp; /* 0x4100C961: mov ebp, esp */
   4351     PUSH32(esp, esi); /* 0x4100C963: push esi */
   4352     esi = ecx; /* 0x4100C964: mov esi, ecx */
   4353     eax = MEM32(esi); /* 0x4100C966: mov eax, dword ptr [esi] */
   4354     /* test eax, eax */ /* 0x4100C968: test eax, eax */
   4355     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4356     _cf = 0;
   4357     _flag_k = FK_TEST;
   4358     if (TEST_Z(_flag_a, _flag_b)) goto L_4100C985; /* 0x4100C96A: je 0x4100c985 */
   4359 L_4100C96C:
   4360     PUSH32(esp, eax); /* 0x4100C96C: push eax */
   4361     RECOMP_ICALL(0x4100DB20u); /* 0x4100C96D: call 0x4100db20 */ /* not lifted */
   4362     RECOMP_FLAGS_IN();
   4363     eax = MEM32(ebp + 0x8); /* 0x4100C972: mov eax, dword ptr [ebp + 8] */
   4364     ecx = MEM32(ebp + 0xC); /* 0x4100C975: mov ecx, dword ptr [ebp + 0xc] */
   4365     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4366     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4367     esp = esp + 4; /* 0x4100C978: add esp, 4 */
   4368     _flag_k = FK_ADD;
   4369     MEM32(esi) = eax; /* 0x4100C97B: mov dword ptr [esi], eax */
   4370     MEM32(esi + 0x4) = ecx; /* 0x4100C97D: mov dword ptr [esi + 4], ecx */
   4371     esi = POP32_VAL(esp); /* 0x4100C980: pop esi */
   4372     ebp = POP32_VAL(esp); /* 0x4100C981: pop ebp */
   4373     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4100C982: ret 8 */
   4374 L_4100C985:
   4375     edx = MEM32(ebp + 0x8); /* 0x4100C985: mov edx, dword ptr [ebp + 8] */
   4376     eax = MEM32(ebp + 0xC); /* 0x4100C988: mov eax, dword ptr [ebp + 0xc] */
   4377     MEM32(esi) = edx; /* 0x4100C98B: mov dword ptr [esi], edx */
   4378     MEM32(esi + 0x4) = eax; /* 0x4100C98D: mov dword ptr [esi + 4], eax */
   4379     esi = POP32_VAL(esp); /* 0x4100C990: pop esi */
   4380     ebp = POP32_VAL(esp); /* 0x4100C991: pop ebp */
   4381     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4100C992: ret 8 */
   4382     RECOMP_REGS_OUT();
   4383 }
   4384 
   4385 void sub_4100C9A0(void) {
   4386     int _fpu_cmp = 0;
   4387     uint32_t _cf = 0;
   4388     int _df = 1;
   4389     uint32_t _flag_k = FK_NONE;
   4390     uint32_t _flag_a = 0, _flag_b = 0;
   4391     uint32_t _itail_tgt = 0;
   4392     RECOMP_REGS_LOCALS
   4393     RECOMP_ENTER(0x4100C9A0u);
   4394 
   4395 L_4100C9A0:
   4396     PUSH32(esp, ebp); /* 0x4100C9A0: push ebp */
   4397     ebp = esp; /* 0x4100C9A1: mov ebp, esp */
   4398     PUSH32(esp, 0xFFFFFFFFu); /* 0x4100C9A3: push -1 */
   4399     PUSH32(esp, 0x4100E8A8u); /* 0x4100C9A5: push 0x4100e8a8 */
   4400     eax = MEM32(FS_BASE + (0)); /* 0x4100C9AA: mov eax, dword ptr fs:[0] */
   4401     PUSH32(esp, eax); /* 0x4100C9B0: push eax */
   4402     MEM32(FS_BASE + (0)) = esp; /* 0x4100C9B1: mov dword ptr fs:[0], esp */
   4403     PUSH32(esp, ecx); /* 0x4100C9B8: push ecx */
   4404     PUSH32(esp, esi); /* 0x4100C9B9: push esi */
   4405     esi = ecx; /* 0x4100C9BA: mov esi, ecx */
   4406     MEM32(ebp + (-0x10)) = esi; /* 0x4100C9BC: mov dword ptr [ebp - 0x10], esi */
   4407     PUSH32(esp, 0); /* 0x4100C9BF: push 0 */
   4408     PUSH32(esp, 0); /* 0x4100C9C1: push 0 */
   4409     PUSH32(esp, 0); /* 0x4100C9C3: push 0 */
   4410     MEM32(ebp + (-0x4)) = 0; /* 0x4100C9C5: mov dword ptr [ebp - 4], 0 */
   4411     MEM32(esi) = 0x4100F270u; /* 0x4100C9CC: mov dword ptr [esi], 0x4100f270 */
   4412     RECOMP_ICALL(0x4100D470u); /* 0x4100C9D2: call 0x4100d470 */ /* not lifted */
   4413     RECOMP_FLAGS_IN();
   4414     ecx = MEM32(ebp + (-0xC)); /* 0x4100C9D7: mov ecx, dword ptr [ebp - 0xc] */
   4415     eax = esi; /* 0x4100C9DA: mov eax, esi */
   4416     esi = POP32_VAL(esp); /* 0x4100C9DC: pop esi */
   4417     MEM32(FS_BASE + (0)) = ecx; /* 0x4100C9DD: mov dword ptr fs:[0], ecx */
   4418     esp = ebp; /* 0x4100C9E4: mov esp, ebp */
   4419     ebp = POP32_VAL(esp); /* 0x4100C9E6: pop ebp */
   4420     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100C9E7: ret  */
   4421     RECOMP_REGS_OUT();
   4422 }
   4423 
   4424 void sub_4100C9F0(void) {
   4425     int _fpu_cmp = 0;
   4426     uint32_t _cf = 0;
   4427     int _df = 1;
   4428     uint32_t _flag_k = FK_NONE;
   4429     uint32_t _flag_a = 0, _flag_b = 0;
   4430     uint32_t _itail_tgt = 0;
   4431     RECOMP_REGS_LOCALS
   4432     RECOMP_ENTER(0x4100C9F0u);
   4433 
   4434 L_4100C9F0:
   4435     PUSH32(esp, ebp); /* 0x4100C9F0: push ebp */
   4436     ebp = esp; /* 0x4100C9F1: mov ebp, esp */
   4437     PUSH32(esp, 0xFFFFFFFFu); /* 0x4100C9F3: push -1 */
   4438     PUSH32(esp, 0x4100E8D2u); /* 0x4100C9F5: push 0x4100e8d2 */
   4439     eax = MEM32(FS_BASE + (0)); /* 0x4100C9FA: mov eax, dword ptr fs:[0] */
   4440     PUSH32(esp, eax); /* 0x4100CA00: push eax */
   4441     MEM32(FS_BASE + (0)) = esp; /* 0x4100CA01: mov dword ptr fs:[0], esp */
   4442     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu);
   4443     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4444     esp = esp - 0x2Cu; /* 0x4100CA08: sub esp, 0x2c */
   4445     _flag_k = FK_CMP;
   4446     edx = MEM32(ebp + 0x8); /* 0x4100CA0B: mov edx, dword ptr [ebp + 8] */
   4447     eax = MEM32(ecx); /* 0x4100CA0E: mov eax, dword ptr [ecx] */
   4448     PUSH32(esp, esi); /* 0x4100CA10: push esi */
   4449     esi = MEM32(ebp + 0xC); /* 0x4100CA11: mov esi, dword ptr [ebp + 0xc] */
   4450     PUSH32(esp, esi); /* 0x4100CA14: push esi */
   4451     PUSH32(esp, edx); /* 0x4100CA15: push edx */
   4452     RECOMP_ICALL(MEM32(eax)); /* 0x4100CA16: call dword ptr [eax] */
   4453     RECOMP_FLAGS_IN();
   4454     /* cmp eax, esi */ /* 0x4100CA18: cmp eax, esi */
   4455     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   4456     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4457     _flag_k = FK_CMP;
   4458     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100CAD4; /* 0x4100CA1A: je 0x4100cad4 */
   4459 L_4100CA20:
   4460     SET_LO8(eax, MEM8(ebp + 0xF)); /* 0x4100CA20: mov al, byte ptr [ebp + 0xf] */
   4461     PUSH32(esp, ebx); /* 0x4100CA23: push ebx */
   4462     PUSH32(esp, edi); /* 0x4100CA24: push edi */
   4463     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   4464     ecx = ecx | 0xFFFFFFFFu; /* 0x4100CA25: or ecx, 0xffffffff */
   4465     _cf = 0;
   4466     _flag_k = FK_TEST;
   4467     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4468     esi = 0; /* 0x4100CA28: xor esi, esi */
   4469     _cf = 0;
   4470     _flag_k = FK_TEST;
   4471     MEM8(ebp + (-0x1C)) = (uint8_t)(LO8(eax)); /* 0x4100CA2A: mov byte ptr [ebp - 0x1c], al */
   4472     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4473     eax = 0; /* 0x4100CA2D: xor eax, eax */
   4474     _cf = 0;
   4475     _flag_k = FK_TEST;
   4476     edi = 0x4101459Cu; /* 0x4100CA2F: mov edi, 0x4101459c */
   4477     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x4100CA34: repne scasb al, byte ptr es:[edi] */
   4478     ecx = ~ecx; /* 0x4100CA36: not ecx */
   4479     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4480     ecx = ecx - 1; /* 0x4100CA38: dec ecx */
   4481     _flag_k = FK_DEC;
   4482     ebx = ecx; /* 0x4100CA39: mov ebx, ecx */
   4483     PUSH32(esp, 1); /* 0x4100CA3B: push 1 */
   4484     PUSH32(esp, ebx); /* 0x4100CA3D: push ebx */
   4485     ecx = ebp + (-0x1C); /* 0x4100CA3E: lea ecx, [ebp - 0x1c] */
   4486     MEM32(ebp + (-0x18)) = esi; /* 0x4100CA41: mov dword ptr [ebp - 0x18], esi */
   4487     MEM32(ebp + (-0x14)) = esi; /* 0x4100CA44: mov dword ptr [ebp - 0x14], esi */
   4488     MEM32(ebp + (-0x10)) = esi; /* 0x4100CA47: mov dword ptr [ebp - 0x10], esi */
   4489     RECOMP_ICALL(MEM32(0x4100F02C)); /* 0x4100CA4A: call dword ptr [0x4100f02c] */
   4490     RECOMP_FLAGS_IN();
   4491     /* test LO8(eax), LO8(eax) */ /* 0x4100CA50: test al, al */
   4492     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4493     _cf = 0;
   4494     _flag_k = FK_NARROW(FK_TEST, 24);
   4495     if (TEST_Z(_flag_a, _flag_b)) goto L_4100CA78; /* 0x4100CA52: je 0x4100ca78 */
   4496 L_4100CA54:
   4497     edi = MEM32(ebp + (-0x18)); /* 0x4100CA54: mov edi, dword ptr [ebp - 0x18] */
   4498     ecx = ebx; /* 0x4100CA57: mov ecx, ebx */
   4499     edx = ecx; /* 0x4100CA59: mov edx, ecx */
   4500     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4100CA5B: shr ecx, 2 */
   4501     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4502     ecx = ecx >> 2u; /* 0x4100CA5B: shr ecx, 2 */
   4503     esi = 0x4101459Cu; /* 0x4100CA5E: mov esi, 0x4101459c */
   4504     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4100CA63: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   4505     ecx = edx; /* 0x4100CA65: mov ecx, edx */
   4506     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   4507     ecx = ecx & 3; /* 0x4100CA67: and ecx, 3 */
   4508     _cf = 0;
   4509     _flag_k = FK_TEST;
   4510     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4100CA6A: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   4511     eax = MEM32(ebp + (-0x18)); /* 0x4100CA6C: mov eax, dword ptr [ebp - 0x18] */
   4512     MEM32(ebp + (-0x14)) = ebx; /* 0x4100CA6F: mov dword ptr [ebp - 0x14], ebx */
   4513     MEM8(ebx + eax) = (uint8_t)(0); /* 0x4100CA72: mov byte ptr [ebx + eax], 0 */
   4514     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4515     esi = 0; /* 0x4100CA76: xor esi, esi */
   4516     _cf = 0;
   4517     _flag_k = FK_TEST;
   4518 L_4100CA78:
   4519     ecx = ebp + 0xC; /* 0x4100CA78: lea ecx, [ebp + 0xc] */
   4520     PUSH32(esp, ecx); /* 0x4100CA7B: push ecx */
   4521     ecx = ebp + (-0x38); /* 0x4100CA7C: lea ecx, [ebp - 0x38] */
   4522     MEM32(ebp + (-0x4)) = esi; /* 0x4100CA7F: mov dword ptr [ebp - 4], esi */
   4523     MEM32(ebp + 0xC) = 0x41014650u; /* 0x4100CA82: mov dword ptr [ebp + 0xc], 0x41014650 */
   4524     RECOMP_ICALL(MEM32(0x4100F09C)); /* 0x4100CA89: call dword ptr [0x4100f09c] */
   4525     RECOMP_FLAGS_IN();
   4526     SET_LO8(edx, MEM8(ebp + (-0x1C))); /* 0x4100CA8F: mov dl, byte ptr [ebp - 0x1c] */
   4527     PUSH32(esp, esi); /* 0x4100CA92: push esi */
   4528     ecx = ebp + (-0x2C); /* 0x4100CA93: lea ecx, [ebp - 0x2c] */
   4529     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x4100CA96: mov byte ptr [ebp - 4], 1 */
   4530     MEM8(ebp + (-0x2C)) = (uint8_t)(LO8(edx)); /* 0x4100CA9A: mov byte ptr [ebp - 0x2c], dl */
   4531     RECOMP_ICALL(MEM32(0x4100F05C)); /* 0x4100CA9D: call dword ptr [0x4100f05c] */
   4532     RECOMP_FLAGS_IN();
   4533     eax = MEM32(0x4100F024); /* 0x4100CAA3: mov eax, dword ptr [0x4100f024] */
   4534     ecx = MEM32(eax); /* 0x4100CAA8: mov ecx, dword ptr [eax] */
   4535     PUSH32(esp, ecx); /* 0x4100CAAA: push ecx */
   4536     PUSH32(esp, esi); /* 0x4100CAAB: push esi */
   4537     edx = ebp + (-0x1C); /* 0x4100CAAC: lea edx, [ebp - 0x1c] */
   4538     PUSH32(esp, edx); /* 0x4100CAAF: push edx */
   4539     ecx = ebp + (-0x2C); /* 0x4100CAB0: lea ecx, [ebp - 0x2c] */
   4540     RECOMP_ICALL(MEM32(0x4100F074)); /* 0x4100CAB3: call dword ptr [0x4100f074] */
   4541     RECOMP_FLAGS_IN();
   4542     PUSH32(esp, 0x41010840u); /* 0x4100CAB9: push 0x41010840 */
   4543     eax = ebp + (-0x38); /* 0x4100CABE: lea eax, [ebp - 0x38] */
   4544     PUSH32(esp, eax); /* 0x4100CAC1: push eax */
   4545     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x4100CAC2: mov byte ptr [ebp - 4], 0 */
   4546     MEM32(ebp + (-0x38)) = 0x4100F2C4u; /* 0x4100CAC6: mov dword ptr [ebp - 0x38], 0x4100f2c4 */
   4547     RECOMP_ICALL(0x4100DD1Eu); /* 0x4100CACD: call 0x4100dd1e */ /* not lifted */
   4548     RECOMP_FLAGS_IN();
   4549     edi = POP32_VAL(esp); /* 0x4100CAD2: pop edi */
   4550     ebx = POP32_VAL(esp); /* 0x4100CAD3: pop ebx */
   4551 L_4100CAD4:
   4552     ecx = MEM32(ebp + (-0xC)); /* 0x4100CAD4: mov ecx, dword ptr [ebp - 0xc] */
   4553     esi = POP32_VAL(esp); /* 0x4100CAD7: pop esi */
   4554     MEM32(FS_BASE + (0)) = ecx; /* 0x4100CAD8: mov dword ptr fs:[0], ecx */
   4555     esp = ebp; /* 0x4100CADF: mov esp, ebp */
   4556     ebp = POP32_VAL(esp); /* 0x4100CAE1: pop ebp */
   4557     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4100CAE2: ret 8 */
   4558     RECOMP_REGS_OUT();
   4559 }
   4560 
   4561 void sub_4100CAF0(void) {
   4562     int _fpu_cmp = 0;
   4563     uint32_t _cf = 0;
   4564     int _df = 1;
   4565     uint32_t _flag_k = FK_NONE;
   4566     uint32_t _flag_a = 0, _flag_b = 0;
   4567     uint32_t _itail_tgt = 0;
   4568     RECOMP_REGS_LOCALS
   4569     RECOMP_ENTER(0x4100CAF0u);
   4570 
   4571 L_4100CAF0:
   4572     PUSH32(esp, esi); /* 0x4100CAF0: push esi */
   4573     esi = ecx; /* 0x4100CAF1: mov esi, ecx */
   4574     MEM32(esi) = 0x4100F2D4u; /* 0x4100CAF3: mov dword ptr [esi], 0x4100f2d4 */
   4575     eax = MEM32(0x4100F070); /* 0x4100CAF9: mov eax, dword ptr [0x4100f070] */
   4576     MEM32(esi) = eax; /* 0x4100CAFE: mov dword ptr [esi], eax */
   4577     eax = MEM32(esi + 0x10); /* 0x4100CB00: mov eax, dword ptr [esi + 0x10] */
   4578     /* test eax, eax */ /* 0x4100CB03: test eax, eax */
   4579     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4580     _cf = 0;
   4581     _flag_k = FK_TEST;
   4582     if (TEST_Z(_flag_a, _flag_b)) goto L_4100CB23; /* 0x4100CB05: je 0x4100cb23 */
   4583 L_4100CB07:
   4584     ecx = eax + (-0x1); /* 0x4100CB07: lea ecx, [eax - 1] */
   4585     SET_LO8(eax, MEM8(ecx)); /* 0x4100CB0A: mov al, byte ptr [ecx] */
   4586     /* test LO8(eax), LO8(eax) */ /* 0x4100CB0C: test al, al */
   4587     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4588     _cf = 0;
   4589     _flag_k = FK_NARROW(FK_TEST, 24);
   4590     if (TEST_Z(_flag_a, _flag_b)) goto L_4100CB1A; /* 0x4100CB0E: je 0x4100cb1a */
   4591 L_4100CB10:
   4592     /* cmp LO8(eax), 0xFFu */ /* 0x4100CB10: cmp al, 0xff */
   4593     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   4594     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4595     _flag_k = FK_NARROW(FK_CMP, 24);
   4596     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100CB1A; /* 0x4100CB12: je 0x4100cb1a */
   4597 L_4100CB14:
   4598     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4599     SET_LO8(eax, LO8(eax) - 1); /* 0x4100CB14: dec al */
   4600     _flag_k = FK_NARROW(FK_DEC, 24);
   4601     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x4100CB16: mov byte ptr [ecx], al */
   4602     goto L_4100CB23; /* 0x4100CB18: jmp 0x4100cb23 */
   4603 L_4100CB1A:
   4604     PUSH32(esp, ecx); /* 0x4100CB1A: push ecx */
   4605     RECOMP_ICALL(0x4100DB20u); /* 0x4100CB1B: call 0x4100db20 */ /* not lifted */
   4606     RECOMP_FLAGS_IN();
   4607     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4608     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4609     esp = esp + 4; /* 0x4100CB20: add esp, 4 */
   4610     _flag_k = FK_ADD;
   4611 L_4100CB23:
   4612     ecx = esi; /* 0x4100CB23: mov ecx, esi */
   4613     MEM32(esi + 0x10) = 0; /* 0x4100CB25: mov dword ptr [esi + 0x10], 0 */
   4614     MEM32(esi + 0x14) = 0; /* 0x4100CB2C: mov dword ptr [esi + 0x14], 0 */
   4615     MEM32(esi + 0x18) = 0; /* 0x4100CB33: mov dword ptr [esi + 0x18], 0 */
   4616     RECOMP_ICALL(MEM32(0x4100F110)); /* 0x4100CB3A: call dword ptr [0x4100f110] */
   4617     RECOMP_FLAGS_IN();
   4618     esi = POP32_VAL(esp); /* 0x4100CB40: pop esi */
   4619     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100CB41: ret  */
   4620     RECOMP_REGS_OUT();
   4621 }
   4622 
   4623 void sub_4100CB50(void) {
   4624     int _fpu_cmp = 0;
   4625     uint32_t _cf = 0;
   4626     int _df = 1;
   4627     uint32_t _flag_k = FK_NONE;
   4628     uint32_t _flag_a = 0, _flag_b = 0;
   4629     uint32_t _itail_tgt = 0;
   4630     RECOMP_REGS_LOCALS
   4631     RECOMP_ENTER(0x4100CB50u);
   4632 
   4633 L_4100CB50:
   4634     PUSH32(esp, ebp); /* 0x4100CB50: push ebp */
   4635     ebp = esp; /* 0x4100CB51: mov ebp, esp */
   4636     PUSH32(esp, 0xFFFFFFFFu); /* 0x4100CB53: push -1 */
   4637     PUSH32(esp, 0x4100E8F2u); /* 0x4100CB55: push 0x4100e8f2 */
   4638     eax = MEM32(FS_BASE + (0)); /* 0x4100CB5A: mov eax, dword ptr fs:[0] */
   4639     PUSH32(esp, eax); /* 0x4100CB60: push eax */
   4640     MEM32(FS_BASE + (0)) = esp; /* 0x4100CB61: mov dword ptr fs:[0], esp */
   4641     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu);
   4642     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4643     esp = esp - 0x2Cu; /* 0x4100CB68: sub esp, 0x2c */
   4644     _flag_k = FK_CMP;
   4645     edx = MEM32(ebp + 0x8); /* 0x4100CB6B: mov edx, dword ptr [ebp + 8] */
   4646     eax = MEM32(ecx); /* 0x4100CB6E: mov eax, dword ptr [ecx] */
   4647     PUSH32(esp, esi); /* 0x4100CB70: push esi */
   4648     esi = MEM32(ebp + 0xC); /* 0x4100CB71: mov esi, dword ptr [ebp + 0xc] */
   4649     PUSH32(esp, esi); /* 0x4100CB74: push esi */
   4650     PUSH32(esp, edx); /* 0x4100CB75: push edx */
   4651     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x4100CB76: call dword ptr [eax + 4] */
   4652     RECOMP_FLAGS_IN();
   4653     /* cmp eax, esi */ /* 0x4100CB79: cmp eax, esi */
   4654     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   4655     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4656     _flag_k = FK_CMP;
   4657     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100CC35; /* 0x4100CB7B: je 0x4100cc35 */
   4658 L_4100CB81:
   4659     SET_LO8(eax, MEM8(ebp + 0xF)); /* 0x4100CB81: mov al, byte ptr [ebp + 0xf] */
   4660     PUSH32(esp, ebx); /* 0x4100CB84: push ebx */
   4661     PUSH32(esp, edi); /* 0x4100CB85: push edi */
   4662     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   4663     ecx = ecx | 0xFFFFFFFFu; /* 0x4100CB86: or ecx, 0xffffffff */
   4664     _cf = 0;
   4665     _flag_k = FK_TEST;
   4666     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4667     esi = 0; /* 0x4100CB89: xor esi, esi */
   4668     _cf = 0;
   4669     _flag_k = FK_TEST;
   4670     MEM8(ebp + (-0x1C)) = (uint8_t)(LO8(eax)); /* 0x4100CB8B: mov byte ptr [ebp - 0x1c], al */
   4671     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4672     eax = 0; /* 0x4100CB8E: xor eax, eax */
   4673     _cf = 0;
   4674     _flag_k = FK_TEST;
   4675     edi = 0x410145D4u; /* 0x4100CB90: mov edi, 0x410145d4 */
   4676     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x4100CB95: repne scasb al, byte ptr es:[edi] */
   4677     ecx = ~ecx; /* 0x4100CB97: not ecx */
   4678     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4679     ecx = ecx - 1; /* 0x4100CB99: dec ecx */
   4680     _flag_k = FK_DEC;
   4681     ebx = ecx; /* 0x4100CB9A: mov ebx, ecx */
   4682     PUSH32(esp, 1); /* 0x4100CB9C: push 1 */
   4683     PUSH32(esp, ebx); /* 0x4100CB9E: push ebx */
   4684     ecx = ebp + (-0x1C); /* 0x4100CB9F: lea ecx, [ebp - 0x1c] */
   4685     MEM32(ebp + (-0x18)) = esi; /* 0x4100CBA2: mov dword ptr [ebp - 0x18], esi */
   4686     MEM32(ebp + (-0x14)) = esi; /* 0x4100CBA5: mov dword ptr [ebp - 0x14], esi */
   4687     MEM32(ebp + (-0x10)) = esi; /* 0x4100CBA8: mov dword ptr [ebp - 0x10], esi */
   4688     RECOMP_ICALL(MEM32(0x4100F02C)); /* 0x4100CBAB: call dword ptr [0x4100f02c] */
   4689     RECOMP_FLAGS_IN();
   4690     /* test LO8(eax), LO8(eax) */ /* 0x4100CBB1: test al, al */
   4691     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4692     _cf = 0;
   4693     _flag_k = FK_NARROW(FK_TEST, 24);
   4694     if (TEST_Z(_flag_a, _flag_b)) goto L_4100CBD9; /* 0x4100CBB3: je 0x4100cbd9 */
   4695 L_4100CBB5:
   4696     edi = MEM32(ebp + (-0x18)); /* 0x4100CBB5: mov edi, dword ptr [ebp - 0x18] */
   4697     ecx = ebx; /* 0x4100CBB8: mov ecx, ebx */
   4698     edx = ecx; /* 0x4100CBBA: mov edx, ecx */
   4699     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4100CBBC: shr ecx, 2 */
   4700     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4701     ecx = ecx >> 2u; /* 0x4100CBBC: shr ecx, 2 */
   4702     esi = 0x410145D4u; /* 0x4100CBBF: mov esi, 0x410145d4 */
   4703     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4100CBC4: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   4704     ecx = edx; /* 0x4100CBC6: mov ecx, edx */
   4705     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   4706     ecx = ecx & 3; /* 0x4100CBC8: and ecx, 3 */
   4707     _cf = 0;
   4708     _flag_k = FK_TEST;
   4709     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4100CBCB: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   4710     eax = MEM32(ebp + (-0x18)); /* 0x4100CBCD: mov eax, dword ptr [ebp - 0x18] */
   4711     MEM32(ebp + (-0x14)) = ebx; /* 0x4100CBD0: mov dword ptr [ebp - 0x14], ebx */
   4712     MEM8(ebx + eax) = (uint8_t)(0); /* 0x4100CBD3: mov byte ptr [ebx + eax], 0 */
   4713     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4714     esi = 0; /* 0x4100CBD7: xor esi, esi */
   4715     _cf = 0;
   4716     _flag_k = FK_TEST;
   4717 L_4100CBD9:
   4718     ecx = ebp + 0xC; /* 0x4100CBD9: lea ecx, [ebp + 0xc] */
   4719     PUSH32(esp, ecx); /* 0x4100CBDC: push ecx */
   4720     ecx = ebp + (-0x38); /* 0x4100CBDD: lea ecx, [ebp - 0x38] */
   4721     MEM32(ebp + (-0x4)) = esi; /* 0x4100CBE0: mov dword ptr [ebp - 4], esi */
   4722     MEM32(ebp + 0xC) = 0x41014650u; /* 0x4100CBE3: mov dword ptr [ebp + 0xc], 0x41014650 */
   4723     RECOMP_ICALL(MEM32(0x4100F09C)); /* 0x4100CBEA: call dword ptr [0x4100f09c] */
   4724     RECOMP_FLAGS_IN();
   4725     SET_LO8(edx, MEM8(ebp + (-0x1C))); /* 0x4100CBF0: mov dl, byte ptr [ebp - 0x1c] */
   4726     PUSH32(esp, esi); /* 0x4100CBF3: push esi */
   4727     ecx = ebp + (-0x2C); /* 0x4100CBF4: lea ecx, [ebp - 0x2c] */
   4728     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x4100CBF7: mov byte ptr [ebp - 4], 1 */
   4729     MEM8(ebp + (-0x2C)) = (uint8_t)(LO8(edx)); /* 0x4100CBFB: mov byte ptr [ebp - 0x2c], dl */
   4730     RECOMP_ICALL(MEM32(0x4100F05C)); /* 0x4100CBFE: call dword ptr [0x4100f05c] */
   4731     RECOMP_FLAGS_IN();
   4732     eax = MEM32(0x4100F024); /* 0x4100CC04: mov eax, dword ptr [0x4100f024] */
   4733     ecx = MEM32(eax); /* 0x4100CC09: mov ecx, dword ptr [eax] */
   4734     PUSH32(esp, ecx); /* 0x4100CC0B: push ecx */
   4735     PUSH32(esp, esi); /* 0x4100CC0C: push esi */
   4736     edx = ebp + (-0x1C); /* 0x4100CC0D: lea edx, [ebp - 0x1c] */
   4737     PUSH32(esp, edx); /* 0x4100CC10: push edx */
   4738     ecx = ebp + (-0x2C); /* 0x4100CC11: lea ecx, [ebp - 0x2c] */
   4739     RECOMP_ICALL(MEM32(0x4100F074)); /* 0x4100CC14: call dword ptr [0x4100f074] */
   4740     RECOMP_FLAGS_IN();
   4741     PUSH32(esp, 0x410108B8u); /* 0x4100CC1A: push 0x410108b8 */
   4742     eax = ebp + (-0x38); /* 0x4100CC1F: lea eax, [ebp - 0x38] */
   4743     PUSH32(esp, eax); /* 0x4100CC22: push eax */
   4744     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x4100CC23: mov byte ptr [ebp - 4], 0 */
   4745     MEM32(ebp + (-0x38)) = 0x4100F2E4u; /* 0x4100CC27: mov dword ptr [ebp - 0x38], 0x4100f2e4 */
   4746     RECOMP_ICALL(0x4100DD1Eu); /* 0x4100CC2E: call 0x4100dd1e */ /* not lifted */
   4747     RECOMP_FLAGS_IN();
   4748     edi = POP32_VAL(esp); /* 0x4100CC33: pop edi */
   4749     ebx = POP32_VAL(esp); /* 0x4100CC34: pop ebx */
   4750 L_4100CC35:
   4751     ecx = MEM32(ebp + (-0xC)); /* 0x4100CC35: mov ecx, dword ptr [ebp - 0xc] */
   4752     esi = POP32_VAL(esp); /* 0x4100CC38: pop esi */
   4753     MEM32(FS_BASE + (0)) = ecx; /* 0x4100CC39: mov dword ptr fs:[0], ecx */
   4754     esp = ebp; /* 0x4100CC40: mov esp, ebp */
   4755     ebp = POP32_VAL(esp); /* 0x4100CC42: pop ebp */
   4756     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4100CC43: ret 8 */
   4757     RECOMP_REGS_OUT();
   4758 }
   4759 
   4760 void sub_4100CC50(void) {
   4761     int _fpu_cmp = 0;
   4762     uint32_t _cf = 0;
   4763     int _df = 1;
   4764     uint32_t _flag_k = FK_NONE;
   4765     uint32_t _flag_a = 0, _flag_b = 0;
   4766     uint32_t _itail_tgt = 0;
   4767     RECOMP_REGS_LOCALS
   4768     RECOMP_ENTER(0x4100CC50u);
   4769 
   4770 L_4100CC50:
   4771     PUSH32(esp, ebp); /* 0x4100CC50: push ebp */
   4772     ebp = esp; /* 0x4100CC51: mov ebp, esp */
   4773     PUSH32(esp, ecx); /* 0x4100CC53: push ecx */
   4774     eax = MEM32(ecx); /* 0x4100CC54: mov eax, dword ptr [ecx] */
   4775     PUSH32(esp, 4); /* 0x4100CC56: push 4 */
   4776     edx = ebp + (-0x4); /* 0x4100CC58: lea edx, [ebp - 4] */
   4777     PUSH32(esp, edx); /* 0x4100CC5B: push edx */
   4778     RECOMP_ICALL(MEM32(eax)); /* 0x4100CC5C: call dword ptr [eax] */
   4779     RECOMP_FLAGS_IN();
   4780     eax = MEM32(ebp + (-0x4)); /* 0x4100CC5E: mov eax, dword ptr [ebp - 4] */
   4781     esp = ebp; /* 0x4100CC61: mov esp, ebp */
   4782     ebp = POP32_VAL(esp); /* 0x4100CC63: pop ebp */
   4783     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100CC64: ret  */
   4784     RECOMP_REGS_OUT();
   4785 }
   4786 
   4787 void sub_4100CC70(void) {
   4788     int _fpu_cmp = 0;
   4789     uint32_t _cf = 0;
   4790     int _df = 1;
   4791     uint32_t _flag_k = FK_NONE;
   4792     uint32_t _flag_a = 0, _flag_b = 0;
   4793     uint32_t _itail_tgt = 0;
   4794     RECOMP_REGS_LOCALS
   4795     RECOMP_ENTER(0x4100CC70u);
   4796 
   4797 L_4100CC70:
   4798     PUSH32(esp, ebp); /* 0x4100CC70: push ebp */
   4799     ebp = esp; /* 0x4100CC71: mov ebp, esp */
   4800     PUSH32(esp, ecx); /* 0x4100CC73: push ecx */
   4801     eax = MEM32(ecx); /* 0x4100CC74: mov eax, dword ptr [ecx] */
   4802     PUSH32(esp, 2); /* 0x4100CC76: push 2 */
   4803     edx = ebp + (-0x2); /* 0x4100CC78: lea edx, [ebp - 2] */
   4804     PUSH32(esp, edx); /* 0x4100CC7B: push edx */
   4805     RECOMP_ICALL(MEM32(eax)); /* 0x4100CC7C: call dword ptr [eax] */
   4806     RECOMP_FLAGS_IN();
   4807     SET_LO16(eax, MEM16(ebp + (-0x2))); /* 0x4100CC7E: mov ax, word ptr [ebp - 2] */
   4808     esp = ebp; /* 0x4100CC82: mov esp, ebp */
   4809     ebp = POP32_VAL(esp); /* 0x4100CC84: pop ebp */
   4810     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100CC85: ret  */
   4811     RECOMP_REGS_OUT();
   4812 }
   4813 
   4814 void sub_4100CC90(void) {
   4815     int _fpu_cmp = 0;
   4816     uint32_t _cf = 0;
   4817     int _df = 1;
   4818     uint32_t _flag_k = FK_NONE;
   4819     uint32_t _flag_a = 0, _flag_b = 0;
   4820     uint32_t _itail_tgt = 0;
   4821     RECOMP_REGS_LOCALS
   4822     RECOMP_ENTER(0x4100CC90u);
   4823 
   4824 L_4100CC90:
   4825     PUSH32(esp, ebp); /* 0x4100CC90: push ebp */
   4826     ebp = esp; /* 0x4100CC91: mov ebp, esp */
   4827     eax = MEM32(ebp + 0x8); /* 0x4100CC93: mov eax, dword ptr [ebp + 8] */
   4828     edx = MEM32(ecx); /* 0x4100CC96: mov edx, dword ptr [ecx] */
   4829     MEM32(ebp + 0x8) = eax; /* 0x4100CC98: mov dword ptr [ebp + 8], eax */
   4830     PUSH32(esp, 2); /* 0x4100CC9B: push 2 */
   4831     eax = ebp + 0x8; /* 0x4100CC9D: lea eax, [ebp + 8] */
   4832     PUSH32(esp, eax); /* 0x4100CCA0: push eax */
   4833     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4100CCA1: call dword ptr [edx + 4] */
   4834     RECOMP_FLAGS_IN();
   4835     ebp = POP32_VAL(esp); /* 0x4100CCA4: pop ebp */
   4836     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100CCA5: ret 4 */
   4837     RECOMP_REGS_OUT();
   4838 }
   4839 
   4840 void sub_4100CCB0(void) {
   4841     int _fpu_cmp = 0;
   4842     uint32_t _cf = 0;
   4843     int _df = 1;
   4844     uint32_t _flag_k = FK_NONE;
   4845     uint32_t _flag_a = 0, _flag_b = 0;
   4846     uint32_t _itail_tgt = 0;
   4847     RECOMP_REGS_LOCALS
   4848     RECOMP_ENTER(0x4100CCB0u);
   4849 
   4850 L_4100CCB0:
   4851     PUSH32(esp, ebp); /* 0x4100CCB0: push ebp */
   4852     ebp = esp; /* 0x4100CCB1: mov ebp, esp */
   4853     PUSH32(esp, ecx); /* 0x4100CCB3: push ecx */
   4854     eax = MEM32(ecx); /* 0x4100CCB4: mov eax, dword ptr [ecx] */
   4855     PUSH32(esp, 1); /* 0x4100CCB6: push 1 */
   4856     edx = ebp + (-0x1); /* 0x4100CCB8: lea edx, [ebp - 1] */
   4857     PUSH32(esp, edx); /* 0x4100CCBB: push edx */
   4858     RECOMP_ICALL(MEM32(eax)); /* 0x4100CCBC: call dword ptr [eax] */
   4859     RECOMP_FLAGS_IN();
   4860     SET_LO8(eax, MEM8(ebp + (-0x1))); /* 0x4100CCBE: mov al, byte ptr [ebp - 1] */
   4861     esp = ebp; /* 0x4100CCC1: mov esp, ebp */
   4862     ebp = POP32_VAL(esp); /* 0x4100CCC3: pop ebp */
   4863     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100CCC4: ret  */
   4864     RECOMP_REGS_OUT();
   4865 }
   4866 
   4867 void sub_4100CCD0(void) {
   4868     int _fpu_cmp = 0;
   4869     uint32_t _cf = 0;
   4870     int _df = 1;
   4871     uint32_t _flag_k = FK_NONE;
   4872     uint32_t _flag_a = 0, _flag_b = 0;
   4873     uint32_t _itail_tgt = 0;
   4874     RECOMP_REGS_LOCALS
   4875     RECOMP_ENTER(0x4100CCD0u);
   4876 
   4877 L_4100CCD0:
   4878     PUSH32(esp, ebp); /* 0x4100CCD0: push ebp */
   4879     ebp = esp; /* 0x4100CCD1: mov ebp, esp */
   4880     SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x4100CCD3: mov al, byte ptr [ebp + 8] */
   4881     edx = MEM32(ecx); /* 0x4100CCD6: mov edx, dword ptr [ecx] */
   4882     MEM8(ebp + 0xB) = (uint8_t)(LO8(eax)); /* 0x4100CCD8: mov byte ptr [ebp + 0xb], al */
   4883     PUSH32(esp, 1); /* 0x4100CCDB: push 1 */
   4884     eax = ebp + 0xB; /* 0x4100CCDD: lea eax, [ebp + 0xb] */
   4885     PUSH32(esp, eax); /* 0x4100CCE0: push eax */
   4886     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4100CCE1: call dword ptr [edx + 4] */
   4887     RECOMP_FLAGS_IN();
   4888     ebp = POP32_VAL(esp); /* 0x4100CCE4: pop ebp */
   4889     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100CCE5: ret 4 */
   4890     RECOMP_REGS_OUT();
   4891 }
   4892 
   4893 void sub_4100CCF0(void) {
   4894     int _fpu_cmp = 0;
   4895     uint32_t _cf = 0;
   4896     int _df = 1;
   4897     uint32_t _flag_k = FK_NONE;
   4898     uint32_t _flag_a = 0, _flag_b = 0;
   4899     uint32_t _itail_tgt = 0;
   4900     RECOMP_REGS_LOCALS
   4901     RECOMP_ENTER(0x4100CCF0u);
   4902 
   4903 L_4100CCF0:
   4904     PUSH32(esp, ebp); /* 0x4100CCF0: push ebp */
   4905     ebp = esp; /* 0x4100CCF1: mov ebp, esp */
   4906     PUSH32(esp, ecx); /* 0x4100CCF3: push ecx */
   4907     eax = MEM32(ecx); /* 0x4100CCF4: mov eax, dword ptr [ecx] */
   4908     PUSH32(esp, 4); /* 0x4100CCF6: push 4 */
   4909     edx = ebp + (-0x4); /* 0x4100CCF8: lea edx, [ebp - 4] */
   4910     PUSH32(esp, edx); /* 0x4100CCFB: push edx */
   4911     RECOMP_ICALL(MEM32(eax)); /* 0x4100CCFC: call dword ptr [eax] */
   4912     RECOMP_FLAGS_IN();
   4913     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x4100CCFE: fld dword ptr [ebp - 4] */
   4914     esp = ebp; /* 0x4100CD01: mov esp, ebp */
   4915     ebp = POP32_VAL(esp); /* 0x4100CD03: pop ebp */
   4916     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100CD04: ret  */
   4917     RECOMP_REGS_OUT();
   4918 }
   4919 
   4920 void sub_4100CD10(void) {
   4921     int _fpu_cmp = 0;
   4922     uint32_t _cf = 0;
   4923     int _df = 1;
   4924     uint32_t _flag_k = FK_NONE;
   4925     uint32_t _flag_a = 0, _flag_b = 0;
   4926     uint32_t _itail_tgt = 0;
   4927     RECOMP_REGS_LOCALS
   4928     RECOMP_ENTER(0x4100CD10u);
   4929 
   4930 L_4100CD10:
   4931     PUSH32(esp, ebp); /* 0x4100CD10: push ebp */
   4932     ebp = esp; /* 0x4100CD11: mov ebp, esp */
   4933     eax = MEM32(ebp + 0x8); /* 0x4100CD13: mov eax, dword ptr [ebp + 8] */
   4934     edx = MEM32(ecx); /* 0x4100CD16: mov edx, dword ptr [ecx] */
   4935     MEM32(ebp + 0x8) = eax; /* 0x4100CD18: mov dword ptr [ebp + 8], eax */
   4936     PUSH32(esp, 4); /* 0x4100CD1B: push 4 */
   4937     eax = ebp + 0x8; /* 0x4100CD1D: lea eax, [ebp + 8] */
   4938     PUSH32(esp, eax); /* 0x4100CD20: push eax */
   4939     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4100CD21: call dword ptr [edx + 4] */
   4940     RECOMP_FLAGS_IN();
   4941     ebp = POP32_VAL(esp); /* 0x4100CD24: pop ebp */
   4942     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100CD25: ret 4 */
   4943     RECOMP_REGS_OUT();
   4944 }
   4945 
   4946 void sub_4100CD30(void) {
   4947     int _fpu_cmp = 0;
   4948     uint32_t _cf = 0;
   4949     int _df = 1;
   4950     uint32_t _flag_k = FK_NONE;
   4951     uint32_t _flag_a = 0, _flag_b = 0;
   4952     uint32_t _itail_tgt = 0;
   4953     RECOMP_REGS_LOCALS
   4954     RECOMP_ENTER(0x4100CD30u);
   4955 
   4956 L_4100CD30:
   4957     PUSH32(esp, ebp); /* 0x4100CD30: push ebp */
   4958     ebp = esp; /* 0x4100CD31: mov ebp, esp */
   4959     PUSH32(esp, esi); /* 0x4100CD33: push esi */
   4960     esi = ecx; /* 0x4100CD34: mov esi, ecx */
   4961     RECOMP_ICALL(0x4100CAF0u); /* 0x4100CD36: call 0x4100caf0 */ /* not lifted */
   4962     RECOMP_FLAGS_IN();
   4963     /* test MEM8(ebp + 0x8), 1 */ /* 0x4100CD3B: test byte ptr [ebp + 8], 1 */
   4964     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   4965     _cf = 0;
   4966     _flag_k = FK_NARROW(FK_TEST, 24);
   4967     if (TEST_Z(_flag_a, _flag_b)) goto L_4100CD4A; /* 0x4100CD3F: je 0x4100cd4a */
   4968 L_4100CD41:
   4969     PUSH32(esp, esi); /* 0x4100CD41: push esi */
   4970     RECOMP_ICALL(0x4100DB20u); /* 0x4100CD42: call 0x4100db20 */ /* not lifted */
   4971     RECOMP_FLAGS_IN();
   4972     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4973     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4974     esp = esp + 4; /* 0x4100CD47: add esp, 4 */
   4975     _flag_k = FK_ADD;
   4976 L_4100CD4A:
   4977     eax = esi; /* 0x4100CD4A: mov eax, esi */
   4978     esi = POP32_VAL(esp); /* 0x4100CD4C: pop esi */
   4979     ebp = POP32_VAL(esp); /* 0x4100CD4D: pop ebp */
   4980     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100CD4E: ret 4 */
   4981     RECOMP_REGS_OUT();
   4982 }
   4983 
   4984 void sub_4100CD60(void) {
   4985     int _fpu_cmp = 0;
   4986     uint32_t _cf = 0;
   4987     int _df = 1;
   4988     uint32_t _flag_k = FK_NONE;
   4989     uint32_t _flag_a = 0, _flag_b = 0;
   4990     uint32_t _itail_tgt = 0;
   4991     RECOMP_REGS_LOCALS
   4992     RECOMP_ENTER(0x4100CD60u);
   4993 
   4994 L_4100CD60:
   4995     PUSH32(esp, ebp); /* 0x4100CD60: push ebp */
   4996     ebp = esp; /* 0x4100CD61: mov ebp, esp */
   4997     PUSH32(esp, esi); /* 0x4100CD63: push esi */
   4998     esi = ecx; /* 0x4100CD64: mov esi, ecx */
   4999     RECOMP_ICALL(0x4100CAF0u); /* 0x4100CD66: call 0x4100caf0 */ /* not lifted */
   5000     RECOMP_FLAGS_IN();
   5001     /* test MEM8(ebp + 0x8), 1 */ /* 0x4100CD6B: test byte ptr [ebp + 8], 1 */
   5002     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   5003     _cf = 0;
   5004     _flag_k = FK_NARROW(FK_TEST, 24);
   5005     if (TEST_Z(_flag_a, _flag_b)) goto L_4100CD7A; /* 0x4100CD6F: je 0x4100cd7a */
   5006 L_4100CD71:
   5007     PUSH32(esp, esi); /* 0x4100CD71: push esi */
   5008     RECOMP_ICALL(0x4100DB20u); /* 0x4100CD72: call 0x4100db20 */ /* not lifted */
   5009     RECOMP_FLAGS_IN();
   5010     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5011     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5012     esp = esp + 4; /* 0x4100CD77: add esp, 4 */
   5013     _flag_k = FK_ADD;
   5014 L_4100CD7A:
   5015     eax = esi; /* 0x4100CD7A: mov eax, esi */
   5016     esi = POP32_VAL(esp); /* 0x4100CD7C: pop esi */
   5017     ebp = POP32_VAL(esp); /* 0x4100CD7D: pop ebp */
   5018     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100CD7E: ret 4 */
   5019     RECOMP_REGS_OUT();
   5020 }
   5021 
   5022 void sub_4100CD90(void) {
   5023     int _fpu_cmp = 0;
   5024     uint32_t _cf = 0;
   5025     int _df = 1;
   5026     uint32_t _flag_k = FK_NONE;
   5027     uint32_t _flag_a = 0, _flag_b = 0;
   5028     uint32_t _itail_tgt = 0;
   5029     RECOMP_REGS_LOCALS
   5030     RECOMP_ENTER(0x4100CD90u);
   5031 
   5032 L_4100CD90:
   5033     PUSH32(esp, ebp); /* 0x4100CD90: push ebp */
   5034     ebp = esp; /* 0x4100CD91: mov ebp, esp */
   5035     PUSH32(esp, 0xFFFFFFFFu); /* 0x4100CD93: push -1 */
   5036     PUSH32(esp, 0x4100E909u); /* 0x4100CD95: push 0x4100e909 */
   5037     eax = MEM32(FS_BASE + (0)); /* 0x4100CD9A: mov eax, dword ptr fs:[0] */
   5038     PUSH32(esp, eax); /* 0x4100CDA0: push eax */
   5039     MEM32(FS_BASE + (0)) = esp; /* 0x4100CDA1: mov dword ptr fs:[0], esp */
   5040     PUSH32(esp, ecx); /* 0x4100CDA8: push ecx */
   5041     PUSH32(esp, ebx); /* 0x4100CDA9: push ebx */
   5042     PUSH32(esp, esi); /* 0x4100CDAA: push esi */
   5043     esi = MEM32(ebp + 0x8); /* 0x4100CDAB: mov esi, dword ptr [ebp + 8] */
   5044     PUSH32(esp, edi); /* 0x4100CDAE: push edi */
   5045     ebx = ecx; /* 0x4100CDAF: mov ebx, ecx */
   5046     PUSH32(esp, esi); /* 0x4100CDB1: push esi */
   5047     MEM32(ebp + (-0x10)) = ebx; /* 0x4100CDB2: mov dword ptr [ebp - 0x10], ebx */
   5048     RECOMP_ICALL(MEM32(0x4100F098)); /* 0x4100CDB5: call dword ptr [0x4100f098] */
   5049     RECOMP_FLAGS_IN();
   5050     SET_LO8(eax, MEM8(esi + 0xC)); /* 0x4100CDBB: mov al, byte ptr [esi + 0xc] */
   5051     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5052     edx = 0; /* 0x4100CDBE: xor edx, edx */
   5053     _cf = 0;
   5054     _flag_k = FK_TEST;
   5055     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu);
   5056     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5057     esi = esi + 0xCu; /* 0x4100CDC0: add esi, 0xc */
   5058     _flag_k = FK_ADD;
   5059     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   5060     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5061     ebx = ebx + 0xCu; /* 0x4100CDC3: add ebx, 0xc */
   5062     _flag_k = FK_ADD;
   5063     MEM8(ebx) = (uint8_t)(LO8(eax)); /* 0x4100CDC6: mov byte ptr [ebx], al */
   5064     MEM32(ebx + 0x4) = edx; /* 0x4100CDC8: mov dword ptr [ebx + 4], edx */
   5065     MEM32(ebx + 0x8) = edx; /* 0x4100CDCB: mov dword ptr [ebx + 8], edx */
   5066     MEM32(ebx + 0xC) = edx; /* 0x4100CDCE: mov dword ptr [ebx + 0xc], edx */
   5067     ecx = MEM32(0x4100F024); /* 0x4100CDD1: mov ecx, dword ptr [0x4100f024] */
   5068     eax = MEM32(ecx); /* 0x4100CDD7: mov eax, dword ptr [ecx] */
   5069     ecx = MEM32(esi + 0x8); /* 0x4100CDD9: mov ecx, dword ptr [esi + 8] */
   5070     edi = ecx; /* 0x4100CDDC: mov edi, ecx */
   5071     /* cmp eax, edi */ /* 0x4100CDDE: cmp eax, edi */
   5072     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   5073     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5074     _flag_k = FK_CMP;
   5075     MEM32(ebp + (-0x4)) = edx; /* 0x4100CDE0: mov dword ptr [ebp - 4], edx */
   5076     MEM32(ebp + 0x8) = edi; /* 0x4100CDE3: mov dword ptr [ebp + 8], edi */
   5077     if (CMP_AE(_flag_a, _flag_b)) goto L_4100CDED; /* 0x4100CDE6: jae 0x4100cded */
   5078 L_4100CDE8:
   5079     MEM32(ebp + 0x8) = eax; /* 0x4100CDE8: mov dword ptr [ebp + 8], eax */
   5080     edi = eax; /* 0x4100CDEB: mov edi, eax */
   5081 L_4100CDED:
   5082     /* cmp ebx, esi */ /* 0x4100CDED: cmp ebx, esi */
   5083     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi);
   5084     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5085     _flag_k = FK_CMP;
   5086     if (CMP_NE(_flag_a, _flag_b)) goto L_4100CE5E; /* 0x4100CDEF: jne 0x4100ce5e */
   5087 L_4100CDF1:
   5088     /* cmp edi, edx */ /* 0x4100CDF1: cmp edi, edx */
   5089     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
   5090     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5091     _flag_k = FK_CMP;
   5092     esi = eax; /* 0x4100CDF3: mov esi, eax */
   5093     if (CMP_BE(_flag_a, _flag_b)) goto L_4100CDFD; /* 0x4100CDF5: jbe 0x4100cdfd */
   5094 L_4100CDF7:
   5095     RECOMP_ICALL(MEM32(0x4100F068)); /* 0x4100CDF7: call dword ptr [0x4100f068] */
   5096     RECOMP_FLAGS_IN();
   5097 L_4100CDFD:
   5098     eax = MEM32(ebx + 0x8); /* 0x4100CDFD: mov eax, dword ptr [ebx + 8] */
   5099     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   5100     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5101     eax = eax - edi; /* 0x4100CE00: sub eax, edi */
   5102     _flag_k = FK_CMP;
   5103     /* cmp eax, esi */ /* 0x4100CE02: cmp eax, esi */
   5104     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   5105     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5106     _flag_k = FK_CMP;
   5107     if (CMP_AE(_flag_a, _flag_b)) goto L_4100CE08; /* 0x4100CE04: jae 0x4100ce08 */
   5108 L_4100CE06:
   5109     esi = eax; /* 0x4100CE06: mov esi, eax */
   5110 L_4100CE08:
   5111     /* test esi, esi */ /* 0x4100CE08: test esi, esi */
   5112     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   5113     _cf = 0;
   5114     _flag_k = FK_TEST;
   5115     if (TEST_Z(_flag_a, _flag_b)) goto L_4100CE4D; /* 0x4100CE0A: jbe 0x4100ce4d */
   5116 L_4100CE0C:
   5117     ecx = ebx; /* 0x4100CE0C: mov ecx, ebx */
   5118     RECOMP_ICALL(MEM32(0x4100F030)); /* 0x4100CE0E: call dword ptr [0x4100f030] */
   5119     RECOMP_FLAGS_IN();
   5120     ecx = MEM32(ebx + 0x8); /* 0x4100CE14: mov ecx, dword ptr [ebx + 8] */
   5121     edx = MEM32(ebx + 0x4); /* 0x4100CE17: mov edx, dword ptr [ebx + 4] */
   5122     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   5123     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5124     ecx = ecx - esi; /* 0x4100CE1A: sub ecx, esi */
   5125     _flag_k = FK_CMP;
   5126     eax = edx + edi; /* 0x4100CE1C: lea eax, [edx + edi] */
   5127     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   5128     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5129     ecx = ecx - edi; /* 0x4100CE1F: sub ecx, edi */
   5130     _flag_k = FK_CMP;
   5131     PUSH32(esp, ecx); /* 0x4100CE21: push ecx */
   5132     edx = eax + esi; /* 0x4100CE22: lea edx, [eax + esi] */
   5133     PUSH32(esp, edx); /* 0x4100CE25: push edx */
   5134     PUSH32(esp, eax); /* 0x4100CE26: push eax */
   5135     RECOMP_ICALL(MEM32(0x4100F114)); /* 0x4100CE27: call dword ptr [0x4100f114] */
   5136     RECOMP_FLAGS_IN();
   5137     edi = MEM32(ebx + 0x8); /* 0x4100CE2D: mov edi, dword ptr [ebx + 8] */
   5138     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5139     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5140     esp = esp + 0xCu; /* 0x4100CE30: add esp, 0xc */
   5141     _flag_k = FK_ADD;
   5142     PUSH32(esp, 0); /* 0x4100CE33: push 0 */
   5143     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
   5144     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5145     edi = edi - esi; /* 0x4100CE35: sub edi, esi */
   5146     _flag_k = FK_CMP;
   5147     PUSH32(esp, edi); /* 0x4100CE37: push edi */
   5148     ecx = ebx; /* 0x4100CE38: mov ecx, ebx */
   5149     RECOMP_ICALL(MEM32(0x4100F02C)); /* 0x4100CE3A: call dword ptr [0x4100f02c] */
   5150     RECOMP_FLAGS_IN();
   5151     /* test LO8(eax), LO8(eax) */ /* 0x4100CE40: test al, al */
   5152     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5153     _cf = 0;
   5154     _flag_k = FK_NARROW(FK_TEST, 24);
   5155     if (TEST_Z(_flag_a, _flag_b)) goto L_4100CE4D; /* 0x4100CE42: je 0x4100ce4d */
   5156 L_4100CE44:
   5157     PUSH32(esp, edi); /* 0x4100CE44: push edi */
   5158     ecx = ebx; /* 0x4100CE45: mov ecx, ebx */
   5159     RECOMP_ICALL(MEM32(0x4100F054)); /* 0x4100CE47: call dword ptr [0x4100f054] */
   5160     RECOMP_FLAGS_IN();
   5161 L_4100CE4D:
   5162     PUSH32(esp, 0); /* 0x4100CE4D: push 0 */
   5163     PUSH32(esp, 0); /* 0x4100CE4F: push 0 */
   5164     ecx = ebx; /* 0x4100CE51: mov ecx, ebx */
   5165     RECOMP_ICALL(MEM32(0x4100F084)); /* 0x4100CE53: call dword ptr [0x4100f084] */
   5166     RECOMP_FLAGS_IN();
   5167     goto L_4100CEDE; /* 0x4100CE59: jmp 0x4100cede */
   5168 L_4100CE5E:
   5169     /* cmp edi, edx */ /* 0x4100CE5E: cmp edi, edx */
   5170     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
   5171     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5172     _flag_k = FK_CMP;
   5173     if (CMP_BE(_flag_a, _flag_b)) goto L_4100CEA2; /* 0x4100CE60: jbe 0x4100cea2 */
   5174 L_4100CE62:
   5175     /* cmp edi, ecx */ /* 0x4100CE62: cmp edi, ecx */
   5176     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   5177     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5178     _flag_k = FK_CMP;
   5179     if (CMP_NE(_flag_a, _flag_b)) goto L_4100CEA2; /* 0x4100CE64: jne 0x4100cea2 */
   5180 L_4100CE66:
   5181     eax = MEM32(esi + 0x4); /* 0x4100CE66: mov eax, dword ptr [esi + 4] */
   5182     /* cmp eax, edx */ /* 0x4100CE69: cmp eax, edx */
   5183     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   5184     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5185     _flag_k = FK_CMP;
   5186     if (CMP_NE(_flag_a, _flag_b)) goto L_4100CE72; /* 0x4100CE6B: jne 0x4100ce72 */
   5187 L_4100CE6D:
   5188     eax = MEM32(0x4100F07C); /* 0x4100CE6D: mov eax, dword ptr [0x4100f07c] */
   5189 L_4100CE72:
   5190     /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x4100CE72: cmp byte ptr [eax - 1], 0xfe */
   5191     _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24;
   5192     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5193     _flag_k = FK_NARROW(FK_CMP, 24);
   5194     if (CMP_AE(_flag_a, _flag_b)) goto L_4100CEA2; /* 0x4100CE76: jae 0x4100cea2 */
   5195 L_4100CE78:
   5196     PUSH32(esp, 1); /* 0x4100CE78: push 1 */
   5197     ecx = ebx; /* 0x4100CE7A: mov ecx, ebx */
   5198     RECOMP_ICALL(MEM32(0x4100F05C)); /* 0x4100CE7C: call dword ptr [0x4100f05c] */
   5199     RECOMP_FLAGS_IN();
   5200     eax = MEM32(esi + 0x4); /* 0x4100CE82: mov eax, dword ptr [esi + 4] */
   5201     /* test eax, eax */ /* 0x4100CE85: test eax, eax */
   5202     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5203     _cf = 0;
   5204     _flag_k = FK_TEST;
   5205     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100CE8E; /* 0x4100CE87: jne 0x4100ce8e */
   5206 L_4100CE89:
   5207     eax = MEM32(0x4100F07C); /* 0x4100CE89: mov eax, dword ptr [0x4100f07c] */
   5208 L_4100CE8E:
   5209     MEM32(ebx + 0x4) = eax; /* 0x4100CE8E: mov dword ptr [ebx + 4], eax */
   5210     ecx = MEM32(esi + 0x8); /* 0x4100CE91: mov ecx, dword ptr [esi + 8] */
   5211     MEM32(ebx + 0x8) = ecx; /* 0x4100CE94: mov dword ptr [ebx + 8], ecx */
   5212     edx = MEM32(esi + 0xC); /* 0x4100CE97: mov edx, dword ptr [esi + 0xc] */
   5213     MEM32(ebx + 0xC) = edx; /* 0x4100CE9A: mov dword ptr [ebx + 0xc], edx */
   5214     _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24;
   5215     MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x4100CE9D: inc byte ptr [eax - 1] */
   5216     _flag_k = FK_NARROW(FK_INC, 24);
   5217     goto L_4100CEDE; /* 0x4100CEA0: jmp 0x4100cede */
   5218 L_4100CEA2:
   5219     PUSH32(esp, 1); /* 0x4100CEA2: push 1 */
   5220     PUSH32(esp, edi); /* 0x4100CEA4: push edi */
   5221     ecx = ebx; /* 0x4100CEA5: mov ecx, ebx */
   5222     RECOMP_ICALL(MEM32(0x4100F02C)); /* 0x4100CEA7: call dword ptr [0x4100f02c] */
   5223     RECOMP_FLAGS_IN();
   5224     /* test LO8(eax), LO8(eax) */ /* 0x4100CEAD: test al, al */
   5225     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5226     _cf = 0;
   5227     _flag_k = FK_NARROW(FK_TEST, 24);
   5228     if (TEST_Z(_flag_a, _flag_b)) goto L_4100CEDE; /* 0x4100CEAF: je 0x4100cede */
   5229 L_4100CEB1:
   5230     esi = MEM32(esi + 0x4); /* 0x4100CEB1: mov esi, dword ptr [esi + 4] */
   5231     /* test esi, esi */ /* 0x4100CEB4: test esi, esi */
   5232     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   5233     _cf = 0;
   5234     _flag_k = FK_TEST;
   5235     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100CEBE; /* 0x4100CEB6: jne 0x4100cebe */
   5236 L_4100CEB8:
   5237     esi = MEM32(0x4100F07C); /* 0x4100CEB8: mov esi, dword ptr [0x4100f07c] */
   5238 L_4100CEBE:
   5239     ecx = edi; /* 0x4100CEBE: mov ecx, edi */
   5240     edi = MEM32(ebx + 0x4); /* 0x4100CEC0: mov edi, dword ptr [ebx + 4] */
   5241     eax = ecx; /* 0x4100CEC3: mov eax, ecx */
   5242     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4100CEC5: shr ecx, 2 */
   5243     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5244     ecx = ecx >> 2u; /* 0x4100CEC5: shr ecx, 2 */
   5245     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4100CEC8: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   5246     ecx = eax; /* 0x4100CECA: mov ecx, eax */
   5247     eax = MEM32(ebp + 0x8); /* 0x4100CECC: mov eax, dword ptr [ebp + 8] */
   5248     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   5249     ecx = ecx & 3; /* 0x4100CECF: and ecx, 3 */
   5250     _cf = 0;
   5251     _flag_k = FK_TEST;
   5252     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4100CED2: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   5253     ecx = MEM32(ebx + 0x4); /* 0x4100CED4: mov ecx, dword ptr [ebx + 4] */
   5254     MEM32(ebx + 0x8) = eax; /* 0x4100CED7: mov dword ptr [ebx + 8], eax */
   5255     MEM8(ecx + eax) = (uint8_t)(0); /* 0x4100CEDA: mov byte ptr [ecx + eax], 0 */
   5256 L_4100CEDE:
   5257     eax = MEM32(ebp + (-0x10)); /* 0x4100CEDE: mov eax, dword ptr [ebp - 0x10] */
   5258     ecx = MEM32(ebp + (-0xC)); /* 0x4100CEE1: mov ecx, dword ptr [ebp - 0xc] */
   5259     edi = POP32_VAL(esp); /* 0x4100CEE4: pop edi */
   5260     esi = POP32_VAL(esp); /* 0x4100CEE5: pop esi */
   5261     MEM32(eax) = 0x4100F2C4u; /* 0x4100CEE6: mov dword ptr [eax], 0x4100f2c4 */
   5262     ebx = POP32_VAL(esp); /* 0x4100CEEC: pop ebx */
   5263     MEM32(FS_BASE + (0)) = ecx; /* 0x4100CEED: mov dword ptr fs:[0], ecx */
   5264     esp = ebp; /* 0x4100CEF4: mov esp, ebp */
   5265     ebp = POP32_VAL(esp); /* 0x4100CEF6: pop ebp */
   5266     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100CEF7: ret 4 */
   5267     RECOMP_REGS_OUT();
   5268 }
   5269 
   5270 void sub_4100CEDE(void) {
   5271     int _fpu_cmp = 0;
   5272     uint32_t _cf = 0;
   5273     int _df = 1;
   5274     uint32_t _flag_k = FK_NONE;
   5275     uint32_t _flag_a = 0, _flag_b = 0;
   5276     uint32_t _itail_tgt = 0;
   5277     RECOMP_REGS_LOCALS
   5278     RECOMP_ENTER(0x4100CEDEu);
   5279 
   5280 L_4100CEDE:
   5281     eax = MEM32(ebp + (-0x10)); /* 0x4100CEDE: mov eax, dword ptr [ebp - 0x10] */
   5282     ecx = MEM32(ebp + (-0xC)); /* 0x4100CEE1: mov ecx, dword ptr [ebp - 0xc] */
   5283     edi = POP32_VAL(esp); /* 0x4100CEE4: pop edi */
   5284     esi = POP32_VAL(esp); /* 0x4100CEE5: pop esi */
   5285     MEM32(eax) = 0x4100F2C4u; /* 0x4100CEE6: mov dword ptr [eax], 0x4100f2c4 */
   5286     ebx = POP32_VAL(esp); /* 0x4100CEEC: pop ebx */
   5287     MEM32(FS_BASE + (0)) = ecx; /* 0x4100CEED: mov dword ptr fs:[0], ecx */
   5288     esp = ebp; /* 0x4100CEF4: mov esp, ebp */
   5289     ebp = POP32_VAL(esp); /* 0x4100CEF6: pop ebp */
   5290     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100CEF7: ret 4 */
   5291     RECOMP_REGS_OUT();
   5292 }
   5293 
   5294 void sub_4100CF00(void) {
   5295     int _fpu_cmp = 0;
   5296     uint32_t _cf = 0;
   5297     int _df = 1;
   5298     uint32_t _flag_k = FK_NONE;
   5299     uint32_t _flag_a = 0, _flag_b = 0;
   5300     uint32_t _itail_tgt = 0;
   5301     RECOMP_REGS_LOCALS
   5302     RECOMP_ENTER(0x4100CF00u);
   5303 
   5304 L_4100CF00:
   5305     PUSH32(esp, ebp); /* 0x4100CF00: push ebp */
   5306     ebp = esp; /* 0x4100CF01: mov ebp, esp */
   5307     PUSH32(esp, 0xFFFFFFFFu); /* 0x4100CF03: push -1 */
   5308     PUSH32(esp, 0x4100E929u); /* 0x4100CF05: push 0x4100e929 */
   5309     eax = MEM32(FS_BASE + (0)); /* 0x4100CF0A: mov eax, dword ptr fs:[0] */
   5310     PUSH32(esp, eax); /* 0x4100CF10: push eax */
   5311     MEM32(FS_BASE + (0)) = esp; /* 0x4100CF11: mov dword ptr fs:[0], esp */
   5312     PUSH32(esp, ecx); /* 0x4100CF18: push ecx */
   5313     PUSH32(esp, ebx); /* 0x4100CF19: push ebx */
   5314     PUSH32(esp, esi); /* 0x4100CF1A: push esi */
   5315     esi = MEM32(ebp + 0x8); /* 0x4100CF1B: mov esi, dword ptr [ebp + 8] */
   5316     PUSH32(esp, edi); /* 0x4100CF1E: push edi */
   5317     ebx = ecx; /* 0x4100CF1F: mov ebx, ecx */
   5318     PUSH32(esp, esi); /* 0x4100CF21: push esi */
   5319     MEM32(ebp + (-0x10)) = ebx; /* 0x4100CF22: mov dword ptr [ebp - 0x10], ebx */
   5320     RECOMP_ICALL(MEM32(0x4100F098)); /* 0x4100CF25: call dword ptr [0x4100f098] */
   5321     RECOMP_FLAGS_IN();
   5322     SET_LO8(eax, MEM8(esi + 0xC)); /* 0x4100CF2B: mov al, byte ptr [esi + 0xc] */
   5323     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5324     edx = 0; /* 0x4100CF2E: xor edx, edx */
   5325     _cf = 0;
   5326     _flag_k = FK_TEST;
   5327     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu);
   5328     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5329     esi = esi + 0xCu; /* 0x4100CF30: add esi, 0xc */
   5330     _flag_k = FK_ADD;
   5331     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   5332     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5333     ebx = ebx + 0xCu; /* 0x4100CF33: add ebx, 0xc */
   5334     _flag_k = FK_ADD;
   5335     MEM8(ebx) = (uint8_t)(LO8(eax)); /* 0x4100CF36: mov byte ptr [ebx], al */
   5336     MEM32(ebx + 0x4) = edx; /* 0x4100CF38: mov dword ptr [ebx + 4], edx */
   5337     MEM32(ebx + 0x8) = edx; /* 0x4100CF3B: mov dword ptr [ebx + 8], edx */
   5338     MEM32(ebx + 0xC) = edx; /* 0x4100CF3E: mov dword ptr [ebx + 0xc], edx */
   5339     ecx = MEM32(0x4100F024); /* 0x4100CF41: mov ecx, dword ptr [0x4100f024] */
   5340     eax = MEM32(ecx); /* 0x4100CF47: mov eax, dword ptr [ecx] */
   5341     ecx = MEM32(esi + 0x8); /* 0x4100CF49: mov ecx, dword ptr [esi + 8] */
   5342     edi = ecx; /* 0x4100CF4C: mov edi, ecx */
   5343     /* cmp eax, edi */ /* 0x4100CF4E: cmp eax, edi */
   5344     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   5345     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5346     _flag_k = FK_CMP;
   5347     MEM32(ebp + (-0x4)) = edx; /* 0x4100CF50: mov dword ptr [ebp - 4], edx */
   5348     MEM32(ebp + 0x8) = edi; /* 0x4100CF53: mov dword ptr [ebp + 8], edi */
   5349     if (CMP_AE(_flag_a, _flag_b)) goto L_4100CF5D; /* 0x4100CF56: jae 0x4100cf5d */
   5350 L_4100CF58:
   5351     MEM32(ebp + 0x8) = eax; /* 0x4100CF58: mov dword ptr [ebp + 8], eax */
   5352     edi = eax; /* 0x4100CF5B: mov edi, eax */
   5353 L_4100CF5D:
   5354     /* cmp ebx, esi */ /* 0x4100CF5D: cmp ebx, esi */
   5355     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi);
   5356     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5357     _flag_k = FK_CMP;
   5358     if (CMP_NE(_flag_a, _flag_b)) goto L_4100CFC1; /* 0x4100CF5F: jne 0x4100cfc1 */
   5359 L_4100CF61:
   5360     /* cmp edi, edx */ /* 0x4100CF61: cmp edi, edx */
   5361     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
   5362     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5363     _flag_k = FK_CMP;
   5364     esi = eax; /* 0x4100CF63: mov esi, eax */
   5365     if (CMP_BE(_flag_a, _flag_b)) goto L_4100CF6F; /* 0x4100CF65: jbe 0x4100cf6f */
   5366 L_4100CF67:
   5367     RECOMP_ICALL(MEM32(0x4100F068)); /* 0x4100CF67: call dword ptr [0x4100f068] */
   5368     RECOMP_FLAGS_IN();
   5369     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5370     edx = 0; /* 0x4100CF6D: xor edx, edx */
   5371     _cf = 0;
   5372     _flag_k = FK_TEST;
   5373 L_4100CF6F:
   5374     eax = MEM32(ebx + 0x8); /* 0x4100CF6F: mov eax, dword ptr [ebx + 8] */
   5375     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   5376     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5377     eax = eax - edi; /* 0x4100CF72: sub eax, edi */
   5378     _flag_k = FK_CMP;
   5379     /* cmp eax, esi */ /* 0x4100CF74: cmp eax, esi */
   5380     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   5381     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5382     _flag_k = FK_CMP;
   5383     if (CMP_AE(_flag_a, _flag_b)) goto L_4100CF7A; /* 0x4100CF76: jae 0x4100cf7a */
   5384 L_4100CF78:
   5385     esi = eax; /* 0x4100CF78: mov esi, eax */
   5386 L_4100CF7A:
   5387     /* cmp esi, edx */ /* 0x4100CF7A: cmp esi, edx */
   5388     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   5389     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5390     _flag_k = FK_CMP;
   5391     if (CMP_BE(_flag_a, _flag_b)) goto L_4100D040; /* 0x4100CF7C: jbe 0x4100d040 */
   5392 L_4100CF82:
   5393     ecx = ebx; /* 0x4100CF82: mov ecx, ebx */
   5394     RECOMP_ICALL(MEM32(0x4100F030)); /* 0x4100CF84: call dword ptr [0x4100f030] */
   5395     RECOMP_FLAGS_IN();
   5396     ecx = MEM32(ebx + 0x8); /* 0x4100CF8A: mov ecx, dword ptr [ebx + 8] */
   5397     edx = MEM32(ebx + 0x4); /* 0x4100CF8D: mov edx, dword ptr [ebx + 4] */
   5398     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   5399     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5400     ecx = ecx - esi; /* 0x4100CF90: sub ecx, esi */
   5401     _flag_k = FK_CMP;
   5402     eax = edx + edi; /* 0x4100CF92: lea eax, [edx + edi] */
   5403     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   5404     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5405     ecx = ecx - edi; /* 0x4100CF95: sub ecx, edi */
   5406     _flag_k = FK_CMP;
   5407     PUSH32(esp, ecx); /* 0x4100CF97: push ecx */
   5408     edx = eax + esi; /* 0x4100CF98: lea edx, [eax + esi] */
   5409     PUSH32(esp, edx); /* 0x4100CF9B: push edx */
   5410     PUSH32(esp, eax); /* 0x4100CF9C: push eax */
   5411     RECOMP_ICALL(MEM32(0x4100F114)); /* 0x4100CF9D: call dword ptr [0x4100f114] */
   5412     RECOMP_FLAGS_IN();
   5413     edi = MEM32(ebx + 0x8); /* 0x4100CFA3: mov edi, dword ptr [ebx + 8] */
   5414     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5415     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5416     esp = esp + 0xCu; /* 0x4100CFA6: add esp, 0xc */
   5417     _flag_k = FK_ADD;
   5418     PUSH32(esp, 0); /* 0x4100CFA9: push 0 */
   5419     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
   5420     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5421     edi = edi - esi; /* 0x4100CFAB: sub edi, esi */
   5422     _flag_k = FK_CMP;
   5423     PUSH32(esp, edi); /* 0x4100CFAD: push edi */
   5424     ecx = ebx; /* 0x4100CFAE: mov ecx, ebx */
   5425     RECOMP_ICALL(MEM32(0x4100F02C)); /* 0x4100CFB0: call dword ptr [0x4100f02c] */
   5426     RECOMP_FLAGS_IN();
   5427     /* test LO8(eax), LO8(eax) */ /* 0x4100CFB6: test al, al */
   5428     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5429     _cf = 0;
   5430     _flag_k = FK_NARROW(FK_TEST, 24);
   5431     if (TEST_Z(_flag_a, _flag_b)) goto L_4100D040; /* 0x4100CFB8: je 0x4100d040 */
   5432 L_4100CFBE:
   5433     PUSH32(esp, edi); /* 0x4100CFBE: push edi */
   5434     goto L_4100D038; /* 0x4100CFBF: jmp 0x4100d038 */
   5435 L_4100CFC1:
   5436     /* cmp edi, edx */ /* 0x4100CFC1: cmp edi, edx */
   5437     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
   5438     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5439     _flag_k = FK_CMP;
   5440     if (CMP_BE(_flag_a, _flag_b)) goto L_4100D005; /* 0x4100CFC3: jbe 0x4100d005 */
   5441 L_4100CFC5:
   5442     /* cmp edi, ecx */ /* 0x4100CFC5: cmp edi, ecx */
   5443     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   5444     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5445     _flag_k = FK_CMP;
   5446     if (CMP_NE(_flag_a, _flag_b)) goto L_4100D005; /* 0x4100CFC7: jne 0x4100d005 */
   5447 L_4100CFC9:
   5448     eax = MEM32(esi + 0x4); /* 0x4100CFC9: mov eax, dword ptr [esi + 4] */
   5449     /* cmp eax, edx */ /* 0x4100CFCC: cmp eax, edx */
   5450     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   5451     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5452     _flag_k = FK_CMP;
   5453     if (CMP_NE(_flag_a, _flag_b)) goto L_4100CFD5; /* 0x4100CFCE: jne 0x4100cfd5 */
   5454 L_4100CFD0:
   5455     eax = MEM32(0x4100F07C); /* 0x4100CFD0: mov eax, dword ptr [0x4100f07c] */
   5456 L_4100CFD5:
   5457     /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x4100CFD5: cmp byte ptr [eax - 1], 0xfe */
   5458     _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24;
   5459     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5460     _flag_k = FK_NARROW(FK_CMP, 24);
   5461     if (CMP_AE(_flag_a, _flag_b)) goto L_4100D005; /* 0x4100CFD9: jae 0x4100d005 */
   5462 L_4100CFDB:
   5463     PUSH32(esp, 1); /* 0x4100CFDB: push 1 */
   5464     ecx = ebx; /* 0x4100CFDD: mov ecx, ebx */
   5465     RECOMP_ICALL(MEM32(0x4100F05C)); /* 0x4100CFDF: call dword ptr [0x4100f05c] */
   5466     RECOMP_FLAGS_IN();
   5467     eax = MEM32(esi + 0x4); /* 0x4100CFE5: mov eax, dword ptr [esi + 4] */
   5468     /* test eax, eax */ /* 0x4100CFE8: test eax, eax */
   5469     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5470     _cf = 0;
   5471     _flag_k = FK_TEST;
   5472     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100CFF1; /* 0x4100CFEA: jne 0x4100cff1 */
   5473 L_4100CFEC:
   5474     eax = MEM32(0x4100F07C); /* 0x4100CFEC: mov eax, dword ptr [0x4100f07c] */
   5475 L_4100CFF1:
   5476     MEM32(ebx + 0x4) = eax; /* 0x4100CFF1: mov dword ptr [ebx + 4], eax */
   5477     ecx = MEM32(esi + 0x8); /* 0x4100CFF4: mov ecx, dword ptr [esi + 8] */
   5478     MEM32(ebx + 0x8) = ecx; /* 0x4100CFF7: mov dword ptr [ebx + 8], ecx */
   5479     edx = MEM32(esi + 0xC); /* 0x4100CFFA: mov edx, dword ptr [esi + 0xc] */
   5480     MEM32(ebx + 0xC) = edx; /* 0x4100CFFD: mov dword ptr [ebx + 0xc], edx */
   5481     _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24;
   5482     MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x4100D000: inc byte ptr [eax - 1] */
   5483     _flag_k = FK_NARROW(FK_INC, 24);
   5484     goto L_4100D040; /* 0x4100D003: jmp 0x4100d040 */
   5485 L_4100D005:
   5486     PUSH32(esp, 1); /* 0x4100D005: push 1 */
   5487     PUSH32(esp, edi); /* 0x4100D007: push edi */
   5488     ecx = ebx; /* 0x4100D008: mov ecx, ebx */
   5489     RECOMP_ICALL(MEM32(0x4100F02C)); /* 0x4100D00A: call dword ptr [0x4100f02c] */
   5490     RECOMP_FLAGS_IN();
   5491     /* test LO8(eax), LO8(eax) */ /* 0x4100D010: test al, al */
   5492     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5493     _cf = 0;
   5494     _flag_k = FK_NARROW(FK_TEST, 24);
   5495     if (TEST_Z(_flag_a, _flag_b)) goto L_4100D040; /* 0x4100D012: je 0x4100d040 */
   5496 L_4100D014:
   5497     esi = MEM32(esi + 0x4); /* 0x4100D014: mov esi, dword ptr [esi + 4] */
   5498     /* test esi, esi */ /* 0x4100D017: test esi, esi */
   5499     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   5500     _cf = 0;
   5501     _flag_k = FK_TEST;
   5502     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100D021; /* 0x4100D019: jne 0x4100d021 */
   5503 L_4100D01B:
   5504     esi = MEM32(0x4100F07C); /* 0x4100D01B: mov esi, dword ptr [0x4100f07c] */
   5505 L_4100D021:
   5506     ecx = edi; /* 0x4100D021: mov ecx, edi */
   5507     edi = MEM32(ebx + 0x4); /* 0x4100D023: mov edi, dword ptr [ebx + 4] */
   5508     eax = ecx; /* 0x4100D026: mov eax, ecx */
   5509     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4100D028: shr ecx, 2 */
   5510     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5511     ecx = ecx >> 2u; /* 0x4100D028: shr ecx, 2 */
   5512     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4100D02B: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   5513     ecx = eax; /* 0x4100D02D: mov ecx, eax */
   5514     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   5515     ecx = ecx & 3; /* 0x4100D02F: and ecx, 3 */
   5516     _cf = 0;
   5517     _flag_k = FK_TEST;
   5518     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4100D032: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   5519     ecx = MEM32(ebp + 0x8); /* 0x4100D034: mov ecx, dword ptr [ebp + 8] */
   5520     PUSH32(esp, ecx); /* 0x4100D037: push ecx */
   5521 L_4100D038:
   5522     ecx = ebx; /* 0x4100D038: mov ecx, ebx */
   5523     RECOMP_ICALL(MEM32(0x4100F054)); /* 0x4100D03A: call dword ptr [0x4100f054] */
   5524     RECOMP_FLAGS_IN();
   5525 L_4100D040:
   5526     eax = MEM32(ebp + (-0x10)); /* 0x4100D040: mov eax, dword ptr [ebp - 0x10] */
   5527     ecx = MEM32(ebp + (-0xC)); /* 0x4100D043: mov ecx, dword ptr [ebp - 0xc] */
   5528     edi = POP32_VAL(esp); /* 0x4100D046: pop edi */
   5529     esi = POP32_VAL(esp); /* 0x4100D047: pop esi */
   5530     MEM32(eax) = 0x4100F2D4u; /* 0x4100D048: mov dword ptr [eax], 0x4100f2d4 */
   5531     ebx = POP32_VAL(esp); /* 0x4100D04E: pop ebx */
   5532     MEM32(FS_BASE + (0)) = ecx; /* 0x4100D04F: mov dword ptr fs:[0], ecx */
   5533     esp = ebp; /* 0x4100D056: mov esp, ebp */
   5534     ebp = POP32_VAL(esp); /* 0x4100D058: pop ebp */
   5535     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100D059: ret 4 */
   5536     RECOMP_REGS_OUT();
   5537 }
   5538 
   5539 void sub_4100D060(void) {
   5540     int _fpu_cmp = 0;
   5541     uint32_t _cf = 0;
   5542     int _df = 1;
   5543     uint32_t _flag_k = FK_NONE;
   5544     uint32_t _flag_a = 0, _flag_b = 0;
   5545     uint32_t _itail_tgt = 0;
   5546     RECOMP_REGS_LOCALS
   5547     RECOMP_ENTER(0x4100D060u);
   5548 
   5549 L_4100D060:
   5550     PUSH32(esp, ebp); /* 0x4100D060: push ebp */
   5551     ebp = esp; /* 0x4100D061: mov ebp, esp */
   5552     PUSH32(esp, 0xFFFFFFFFu); /* 0x4100D063: push -1 */
   5553     PUSH32(esp, 0x4100E949u); /* 0x4100D065: push 0x4100e949 */
   5554     eax = MEM32(FS_BASE + (0)); /* 0x4100D06A: mov eax, dword ptr fs:[0] */
   5555     PUSH32(esp, eax); /* 0x4100D070: push eax */
   5556     MEM32(FS_BASE + (0)) = esp; /* 0x4100D071: mov dword ptr fs:[0], esp */
   5557     PUSH32(esp, ecx); /* 0x4100D078: push ecx */
   5558     PUSH32(esp, ebx); /* 0x4100D079: push ebx */
   5559     PUSH32(esp, esi); /* 0x4100D07A: push esi */
   5560     esi = MEM32(ebp + 0x8); /* 0x4100D07B: mov esi, dword ptr [ebp + 8] */
   5561     PUSH32(esp, edi); /* 0x4100D07E: push edi */
   5562     ebx = ecx; /* 0x4100D07F: mov ebx, ecx */
   5563     PUSH32(esp, esi); /* 0x4100D081: push esi */
   5564     MEM32(ebp + (-0x10)) = ebx; /* 0x4100D082: mov dword ptr [ebp - 0x10], ebx */
   5565     RECOMP_ICALL(MEM32(0x4100F098)); /* 0x4100D085: call dword ptr [0x4100f098] */
   5566     RECOMP_FLAGS_IN();
   5567     SET_LO8(eax, MEM8(esi + 0xC)); /* 0x4100D08B: mov al, byte ptr [esi + 0xc] */
   5568     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5569     edx = 0; /* 0x4100D08E: xor edx, edx */
   5570     _cf = 0;
   5571     _flag_k = FK_TEST;
   5572     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu);
   5573     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5574     esi = esi + 0xCu; /* 0x4100D090: add esi, 0xc */
   5575     _flag_k = FK_ADD;
   5576     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   5577     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5578     ebx = ebx + 0xCu; /* 0x4100D093: add ebx, 0xc */
   5579     _flag_k = FK_ADD;
   5580     MEM8(ebx) = (uint8_t)(LO8(eax)); /* 0x4100D096: mov byte ptr [ebx], al */
   5581     MEM32(ebx + 0x4) = edx; /* 0x4100D098: mov dword ptr [ebx + 4], edx */
   5582     MEM32(ebx + 0x8) = edx; /* 0x4100D09B: mov dword ptr [ebx + 8], edx */
   5583     MEM32(ebx + 0xC) = edx; /* 0x4100D09E: mov dword ptr [ebx + 0xc], edx */
   5584     ecx = MEM32(0x4100F024); /* 0x4100D0A1: mov ecx, dword ptr [0x4100f024] */
   5585     eax = MEM32(ecx); /* 0x4100D0A7: mov eax, dword ptr [ecx] */
   5586     ecx = MEM32(esi + 0x8); /* 0x4100D0A9: mov ecx, dword ptr [esi + 8] */
   5587     edi = ecx; /* 0x4100D0AC: mov edi, ecx */
   5588     /* cmp eax, edi */ /* 0x4100D0AE: cmp eax, edi */
   5589     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   5590     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5591     _flag_k = FK_CMP;
   5592     MEM32(ebp + (-0x4)) = edx; /* 0x4100D0B0: mov dword ptr [ebp - 4], edx */
   5593     MEM32(ebp + 0x8) = edi; /* 0x4100D0B3: mov dword ptr [ebp + 8], edi */
   5594     if (CMP_AE(_flag_a, _flag_b)) goto L_4100D0BD; /* 0x4100D0B6: jae 0x4100d0bd */
   5595 L_4100D0B8:
   5596     MEM32(ebp + 0x8) = eax; /* 0x4100D0B8: mov dword ptr [ebp + 8], eax */
   5597     edi = eax; /* 0x4100D0BB: mov edi, eax */
   5598 L_4100D0BD:
   5599     /* cmp ebx, esi */ /* 0x4100D0BD: cmp ebx, esi */
   5600     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi);
   5601     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5602     _flag_k = FK_CMP;
   5603     if (CMP_NE(_flag_a, _flag_b)) goto L_4100D12E; /* 0x4100D0BF: jne 0x4100d12e */
   5604 L_4100D0C1:
   5605     /* cmp edi, edx */ /* 0x4100D0C1: cmp edi, edx */
   5606     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
   5607     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5608     _flag_k = FK_CMP;
   5609     esi = eax; /* 0x4100D0C3: mov esi, eax */
   5610     if (CMP_BE(_flag_a, _flag_b)) goto L_4100D0CD; /* 0x4100D0C5: jbe 0x4100d0cd */
   5611 L_4100D0C7:
   5612     RECOMP_ICALL(MEM32(0x4100F068)); /* 0x4100D0C7: call dword ptr [0x4100f068] */
   5613     RECOMP_FLAGS_IN();
   5614 L_4100D0CD:
   5615     eax = MEM32(ebx + 0x8); /* 0x4100D0CD: mov eax, dword ptr [ebx + 8] */
   5616     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   5617     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5618     eax = eax - edi; /* 0x4100D0D0: sub eax, edi */
   5619     _flag_k = FK_CMP;
   5620     /* cmp eax, esi */ /* 0x4100D0D2: cmp eax, esi */
   5621     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   5622     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5623     _flag_k = FK_CMP;
   5624     if (CMP_AE(_flag_a, _flag_b)) goto L_4100D0D8; /* 0x4100D0D4: jae 0x4100d0d8 */
   5625 L_4100D0D6:
   5626     esi = eax; /* 0x4100D0D6: mov esi, eax */
   5627 L_4100D0D8:
   5628     /* test esi, esi */ /* 0x4100D0D8: test esi, esi */
   5629     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   5630     _cf = 0;
   5631     _flag_k = FK_TEST;
   5632     if (TEST_Z(_flag_a, _flag_b)) goto L_4100D11D; /* 0x4100D0DA: jbe 0x4100d11d */
   5633 L_4100D0DC:
   5634     ecx = ebx; /* 0x4100D0DC: mov ecx, ebx */
   5635     RECOMP_ICALL(MEM32(0x4100F030)); /* 0x4100D0DE: call dword ptr [0x4100f030] */
   5636     RECOMP_FLAGS_IN();
   5637     ecx = MEM32(ebx + 0x8); /* 0x4100D0E4: mov ecx, dword ptr [ebx + 8] */
   5638     edx = MEM32(ebx + 0x4); /* 0x4100D0E7: mov edx, dword ptr [ebx + 4] */
   5639     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   5640     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5641     ecx = ecx - esi; /* 0x4100D0EA: sub ecx, esi */
   5642     _flag_k = FK_CMP;
   5643     eax = edx + edi; /* 0x4100D0EC: lea eax, [edx + edi] */
   5644     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   5645     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5646     ecx = ecx - edi; /* 0x4100D0EF: sub ecx, edi */
   5647     _flag_k = FK_CMP;
   5648     PUSH32(esp, ecx); /* 0x4100D0F1: push ecx */
   5649     edx = eax + esi; /* 0x4100D0F2: lea edx, [eax + esi] */
   5650     PUSH32(esp, edx); /* 0x4100D0F5: push edx */
   5651     PUSH32(esp, eax); /* 0x4100D0F6: push eax */
   5652     RECOMP_ICALL(MEM32(0x4100F114)); /* 0x4100D0F7: call dword ptr [0x4100f114] */
   5653     RECOMP_FLAGS_IN();
   5654     edi = MEM32(ebx + 0x8); /* 0x4100D0FD: mov edi, dword ptr [ebx + 8] */
   5655     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5656     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5657     esp = esp + 0xCu; /* 0x4100D100: add esp, 0xc */
   5658     _flag_k = FK_ADD;
   5659     PUSH32(esp, 0); /* 0x4100D103: push 0 */
   5660     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
   5661     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5662     edi = edi - esi; /* 0x4100D105: sub edi, esi */
   5663     _flag_k = FK_CMP;
   5664     PUSH32(esp, edi); /* 0x4100D107: push edi */
   5665     ecx = ebx; /* 0x4100D108: mov ecx, ebx */
   5666     RECOMP_ICALL(MEM32(0x4100F02C)); /* 0x4100D10A: call dword ptr [0x4100f02c] */
   5667     RECOMP_FLAGS_IN();
   5668     /* test LO8(eax), LO8(eax) */ /* 0x4100D110: test al, al */
   5669     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5670     _cf = 0;
   5671     _flag_k = FK_NARROW(FK_TEST, 24);
   5672     if (TEST_Z(_flag_a, _flag_b)) goto L_4100D11D; /* 0x4100D112: je 0x4100d11d */
   5673 L_4100D114:
   5674     PUSH32(esp, edi); /* 0x4100D114: push edi */
   5675     ecx = ebx; /* 0x4100D115: mov ecx, ebx */
   5676     RECOMP_ICALL(MEM32(0x4100F054)); /* 0x4100D117: call dword ptr [0x4100f054] */
   5677     RECOMP_FLAGS_IN();
   5678 L_4100D11D:
   5679     PUSH32(esp, 0); /* 0x4100D11D: push 0 */
   5680     PUSH32(esp, 0); /* 0x4100D11F: push 0 */
   5681     ecx = ebx; /* 0x4100D121: mov ecx, ebx */
   5682     RECOMP_ICALL(MEM32(0x4100F084)); /* 0x4100D123: call dword ptr [0x4100f084] */
   5683     RECOMP_FLAGS_IN();
   5684     goto L_4100D1AE; /* 0x4100D129: jmp 0x4100d1ae */
   5685 L_4100D12E:
   5686     /* cmp edi, edx */ /* 0x4100D12E: cmp edi, edx */
   5687     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
   5688     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5689     _flag_k = FK_CMP;
   5690     if (CMP_BE(_flag_a, _flag_b)) goto L_4100D172; /* 0x4100D130: jbe 0x4100d172 */
   5691 L_4100D132:
   5692     /* cmp edi, ecx */ /* 0x4100D132: cmp edi, ecx */
   5693     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   5694     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5695     _flag_k = FK_CMP;
   5696     if (CMP_NE(_flag_a, _flag_b)) goto L_4100D172; /* 0x4100D134: jne 0x4100d172 */
   5697 L_4100D136:
   5698     eax = MEM32(esi + 0x4); /* 0x4100D136: mov eax, dword ptr [esi + 4] */
   5699     /* cmp eax, edx */ /* 0x4100D139: cmp eax, edx */
   5700     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   5701     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5702     _flag_k = FK_CMP;
   5703     if (CMP_NE(_flag_a, _flag_b)) goto L_4100D142; /* 0x4100D13B: jne 0x4100d142 */
   5704 L_4100D13D:
   5705     eax = MEM32(0x4100F07C); /* 0x4100D13D: mov eax, dword ptr [0x4100f07c] */
   5706 L_4100D142:
   5707     /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x4100D142: cmp byte ptr [eax - 1], 0xfe */
   5708     _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24;
   5709     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5710     _flag_k = FK_NARROW(FK_CMP, 24);
   5711     if (CMP_AE(_flag_a, _flag_b)) goto L_4100D172; /* 0x4100D146: jae 0x4100d172 */
   5712 L_4100D148:
   5713     PUSH32(esp, 1); /* 0x4100D148: push 1 */
   5714     ecx = ebx; /* 0x4100D14A: mov ecx, ebx */
   5715     RECOMP_ICALL(MEM32(0x4100F05C)); /* 0x4100D14C: call dword ptr [0x4100f05c] */
   5716     RECOMP_FLAGS_IN();
   5717     eax = MEM32(esi + 0x4); /* 0x4100D152: mov eax, dword ptr [esi + 4] */
   5718     /* test eax, eax */ /* 0x4100D155: test eax, eax */
   5719     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5720     _cf = 0;
   5721     _flag_k = FK_TEST;
   5722     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100D15E; /* 0x4100D157: jne 0x4100d15e */
   5723 L_4100D159:
   5724     eax = MEM32(0x4100F07C); /* 0x4100D159: mov eax, dword ptr [0x4100f07c] */
   5725 L_4100D15E:
   5726     MEM32(ebx + 0x4) = eax; /* 0x4100D15E: mov dword ptr [ebx + 4], eax */
   5727     ecx = MEM32(esi + 0x8); /* 0x4100D161: mov ecx, dword ptr [esi + 8] */
   5728     MEM32(ebx + 0x8) = ecx; /* 0x4100D164: mov dword ptr [ebx + 8], ecx */
   5729     edx = MEM32(esi + 0xC); /* 0x4100D167: mov edx, dword ptr [esi + 0xc] */
   5730     MEM32(ebx + 0xC) = edx; /* 0x4100D16A: mov dword ptr [ebx + 0xc], edx */
   5731     _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24;
   5732     MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x4100D16D: inc byte ptr [eax - 1] */
   5733     _flag_k = FK_NARROW(FK_INC, 24);
   5734     goto L_4100D1AE; /* 0x4100D170: jmp 0x4100d1ae */
   5735 L_4100D172:
   5736     PUSH32(esp, 1); /* 0x4100D172: push 1 */
   5737     PUSH32(esp, edi); /* 0x4100D174: push edi */
   5738     ecx = ebx; /* 0x4100D175: mov ecx, ebx */
   5739     RECOMP_ICALL(MEM32(0x4100F02C)); /* 0x4100D177: call dword ptr [0x4100f02c] */
   5740     RECOMP_FLAGS_IN();
   5741     /* test LO8(eax), LO8(eax) */ /* 0x4100D17D: test al, al */
   5742     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5743     _cf = 0;
   5744     _flag_k = FK_NARROW(FK_TEST, 24);
   5745     if (TEST_Z(_flag_a, _flag_b)) goto L_4100D1AE; /* 0x4100D17F: je 0x4100d1ae */
   5746 L_4100D181:
   5747     esi = MEM32(esi + 0x4); /* 0x4100D181: mov esi, dword ptr [esi + 4] */
   5748     /* test esi, esi */ /* 0x4100D184: test esi, esi */
   5749     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   5750     _cf = 0;
   5751     _flag_k = FK_TEST;
   5752     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100D18E; /* 0x4100D186: jne 0x4100d18e */
   5753 L_4100D188:
   5754     esi = MEM32(0x4100F07C); /* 0x4100D188: mov esi, dword ptr [0x4100f07c] */
   5755 L_4100D18E:
   5756     ecx = edi; /* 0x4100D18E: mov ecx, edi */
   5757     edi = MEM32(ebx + 0x4); /* 0x4100D190: mov edi, dword ptr [ebx + 4] */
   5758     eax = ecx; /* 0x4100D193: mov eax, ecx */
   5759     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4100D195: shr ecx, 2 */
   5760     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5761     ecx = ecx >> 2u; /* 0x4100D195: shr ecx, 2 */
   5762     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4100D198: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   5763     ecx = eax; /* 0x4100D19A: mov ecx, eax */
   5764     eax = MEM32(ebp + 0x8); /* 0x4100D19C: mov eax, dword ptr [ebp + 8] */
   5765     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   5766     ecx = ecx & 3; /* 0x4100D19F: and ecx, 3 */
   5767     _cf = 0;
   5768     _flag_k = FK_TEST;
   5769     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4100D1A2: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   5770     ecx = MEM32(ebx + 0x4); /* 0x4100D1A4: mov ecx, dword ptr [ebx + 4] */
   5771     MEM32(ebx + 0x8) = eax; /* 0x4100D1A7: mov dword ptr [ebx + 8], eax */
   5772     MEM8(ecx + eax) = (uint8_t)(0); /* 0x4100D1AA: mov byte ptr [ecx + eax], 0 */
   5773 L_4100D1AE:
   5774     eax = MEM32(ebp + (-0x10)); /* 0x4100D1AE: mov eax, dword ptr [ebp - 0x10] */
   5775     ecx = MEM32(ebp + (-0xC)); /* 0x4100D1B1: mov ecx, dword ptr [ebp - 0xc] */
   5776     edi = POP32_VAL(esp); /* 0x4100D1B4: pop edi */
   5777     esi = POP32_VAL(esp); /* 0x4100D1B5: pop esi */
   5778     MEM32(eax) = 0x4100F2E4u; /* 0x4100D1B6: mov dword ptr [eax], 0x4100f2e4 */
   5779     ebx = POP32_VAL(esp); /* 0x4100D1BC: pop ebx */
   5780     MEM32(FS_BASE + (0)) = ecx; /* 0x4100D1BD: mov dword ptr fs:[0], ecx */
   5781     esp = ebp; /* 0x4100D1C4: mov esp, ebp */
   5782     ebp = POP32_VAL(esp); /* 0x4100D1C6: pop ebp */
   5783     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100D1C7: ret 4 */
   5784     RECOMP_REGS_OUT();
   5785 }
   5786 
   5787 void sub_4100D1AE(void) {
   5788     int _fpu_cmp = 0;
   5789     uint32_t _cf = 0;
   5790     int _df = 1;
   5791     uint32_t _flag_k = FK_NONE;
   5792     uint32_t _flag_a = 0, _flag_b = 0;
   5793     uint32_t _itail_tgt = 0;
   5794     RECOMP_REGS_LOCALS
   5795     RECOMP_ENTER(0x4100D1AEu);
   5796 
   5797 L_4100D1AE:
   5798     eax = MEM32(ebp + (-0x10)); /* 0x4100D1AE: mov eax, dword ptr [ebp - 0x10] */
   5799     ecx = MEM32(ebp + (-0xC)); /* 0x4100D1B1: mov ecx, dword ptr [ebp - 0xc] */
   5800     edi = POP32_VAL(esp); /* 0x4100D1B4: pop edi */
   5801     esi = POP32_VAL(esp); /* 0x4100D1B5: pop esi */
   5802     MEM32(eax) = 0x4100F2E4u; /* 0x4100D1B6: mov dword ptr [eax], 0x4100f2e4 */
   5803     ebx = POP32_VAL(esp); /* 0x4100D1BC: pop ebx */
   5804     MEM32(FS_BASE + (0)) = ecx; /* 0x4100D1BD: mov dword ptr fs:[0], ecx */
   5805     esp = ebp; /* 0x4100D1C4: mov esp, ebp */
   5806     ebp = POP32_VAL(esp); /* 0x4100D1C6: pop ebp */
   5807     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100D1C7: ret 4 */
   5808     RECOMP_REGS_OUT();
   5809 }
   5810 
   5811 void sub_4100D1D0(void) {
   5812     int _fpu_cmp = 0;
   5813     uint32_t _cf = 0;
   5814     int _df = 1;
   5815     uint32_t _flag_k = FK_NONE;
   5816     uint32_t _flag_a = 0, _flag_b = 0;
   5817     uint32_t _itail_tgt = 0;
   5818     RECOMP_REGS_LOCALS
   5819     RECOMP_ENTER(0x4100D1D0u);
   5820 
   5821 L_4100D1D0:
   5822     MEM32(ecx) = 0x4100F2F4u; /* 0x4100D1D0: mov dword ptr [ecx], 0x4100f2f4 */
   5823     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100D1D6: ret  */
   5824     RECOMP_REGS_OUT();
   5825 }
   5826 
   5827 void sub_4100D1E0(void) {
   5828     int _fpu_cmp = 0;
   5829     uint32_t _cf = 0;
   5830     int _df = 1;
   5831     uint32_t _flag_k = FK_NONE;
   5832     uint32_t _flag_a = 0, _flag_b = 0;
   5833     uint32_t _itail_tgt = 0;
   5834     RECOMP_REGS_LOCALS
   5835     RECOMP_ENTER(0x4100D1E0u);
   5836 
   5837 L_4100D1E0:
   5838     PUSH32(esp, ebp); /* 0x4100D1E0: push ebp */
   5839     ebp = esp; /* 0x4100D1E1: mov ebp, esp */
   5840     /* test MEM8(ebp + 0x8), 1 */ /* 0x4100D1E3: test byte ptr [ebp + 8], 1 */
   5841     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   5842     _cf = 0;
   5843     _flag_k = FK_NARROW(FK_TEST, 24);
   5844     PUSH32(esp, esi); /* 0x4100D1E7: push esi */
   5845     esi = ecx; /* 0x4100D1E8: mov esi, ecx */
   5846     MEM32(esi) = 0x4100F2F4u; /* 0x4100D1EA: mov dword ptr [esi], 0x4100f2f4 */
   5847     if (TEST_Z(_flag_a, _flag_b)) goto L_4100D1FB; /* 0x4100D1F0: je 0x4100d1fb */
   5848 L_4100D1F2:
   5849     PUSH32(esp, esi); /* 0x4100D1F2: push esi */
   5850     RECOMP_ICALL(0x4100DB20u); /* 0x4100D1F3: call 0x4100db20 */ /* not lifted */
   5851     RECOMP_FLAGS_IN();
   5852     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5853     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5854     esp = esp + 4; /* 0x4100D1F8: add esp, 4 */
   5855     _flag_k = FK_ADD;
   5856 L_4100D1FB:
   5857     eax = esi; /* 0x4100D1FB: mov eax, esi */
   5858     esi = POP32_VAL(esp); /* 0x4100D1FD: pop esi */
   5859     ebp = POP32_VAL(esp); /* 0x4100D1FE: pop ebp */
   5860     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100D1FF: ret 4 */
   5861     RECOMP_REGS_OUT();
   5862 }
   5863 
   5864 void sub_4100D210(void) {
   5865     int _fpu_cmp = 0;
   5866     uint32_t _cf = 0;
   5867     int _df = 1;
   5868     uint32_t _flag_k = FK_NONE;
   5869     uint32_t _flag_a = 0, _flag_b = 0;
   5870     uint32_t _itail_tgt = 0;
   5871     RECOMP_REGS_LOCALS
   5872     RECOMP_ENTER(0x4100D210u);
   5873 
   5874 L_4100D210:
   5875     PUSH32(esp, ebp); /* 0x4100D210: push ebp */
   5876     ebp = esp; /* 0x4100D211: mov ebp, esp */
   5877     PUSH32(esp, esi); /* 0x4100D213: push esi */
   5878     esi = ecx; /* 0x4100D214: mov esi, ecx */
   5879     RECOMP_ICALL(0x4100D240u); /* 0x4100D216: call 0x4100d240 */ /* not lifted */
   5880     RECOMP_FLAGS_IN();
   5881     /* test MEM8(ebp + 0x8), 1 */ /* 0x4100D21B: test byte ptr [ebp + 8], 1 */
   5882     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   5883     _cf = 0;
   5884     _flag_k = FK_NARROW(FK_TEST, 24);
   5885     if (TEST_Z(_flag_a, _flag_b)) goto L_4100D22A; /* 0x4100D21F: je 0x4100d22a */
   5886 L_4100D221:
   5887     PUSH32(esp, esi); /* 0x4100D221: push esi */
   5888     RECOMP_ICALL(0x4100DB20u); /* 0x4100D222: call 0x4100db20 */ /* not lifted */
   5889     RECOMP_FLAGS_IN();
   5890     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5891     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5892     esp = esp + 4; /* 0x4100D227: add esp, 4 */
   5893     _flag_k = FK_ADD;
   5894 L_4100D22A:
   5895     eax = esi; /* 0x4100D22A: mov eax, esi */
   5896     esi = POP32_VAL(esp); /* 0x4100D22C: pop esi */
   5897     ebp = POP32_VAL(esp); /* 0x4100D22D: pop ebp */
   5898     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100D22E: ret 4 */
   5899     RECOMP_REGS_OUT();
   5900 }
   5901 
   5902 void sub_4100D240(void) {
   5903     int _fpu_cmp = 0;
   5904     uint32_t _cf = 0;
   5905     int _df = 1;
   5906     uint32_t _flag_k = FK_NONE;
   5907     uint32_t _flag_a = 0, _flag_b = 0;
   5908     uint32_t _itail_tgt = 0;
   5909     RECOMP_REGS_LOCALS
   5910     RECOMP_ENTER(0x4100D240u);
   5911 
   5912 L_4100D240:
   5913     MEM32(ecx) = 0x4100F2F4u; /* 0x4100D240: mov dword ptr [ecx], 0x4100f2f4 */
   5914     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100D246: ret  */
   5915     RECOMP_REGS_OUT();
   5916 }
   5917 
   5918 void sub_4100D250(void) {
   5919     int _fpu_cmp = 0;
   5920     uint32_t _cf = 0;
   5921     int _df = 1;
   5922     uint32_t _flag_k = FK_NONE;
   5923     uint32_t _flag_a = 0, _flag_b = 0;
   5924     uint32_t _itail_tgt = 0;
   5925     RECOMP_REGS_LOCALS
   5926     RECOMP_ENTER(0x4100D250u);
   5927 
   5928 L_4100D250:
   5929     PUSH32(esp, ebp); /* 0x4100D250: push ebp */
   5930     ebp = esp; /* 0x4100D251: mov ebp, esp */
   5931     eax = MEM32(ebp + 0xC); /* 0x4100D253: mov eax, dword ptr [ebp + 0xc] */
   5932     PUSH32(esp, esi); /* 0x4100D256: push esi */
   5933     PUSH32(esp, 0); /* 0x4100D257: push 0 */
   5934     esi = ecx; /* 0x4100D259: mov esi, ecx */
   5935     ecx = MEM32(ebp + 0x8); /* 0x4100D25B: mov ecx, dword ptr [ebp + 8] */
   5936     PUSH32(esp, eax); /* 0x4100D25E: push eax */
   5937     PUSH32(esp, ecx); /* 0x4100D25F: push ecx */
   5938     ecx = esi; /* 0x4100D260: mov ecx, esi */
   5939     RECOMP_ICALL(0x4100D470u); /* 0x4100D262: call 0x4100d470 */ /* not lifted */
   5940     RECOMP_FLAGS_IN();
   5941     ecx = esi; /* 0x4100D267: mov ecx, esi */
   5942     RECOMP_ICALL(0x4100D280u); /* 0x4100D269: call 0x4100d280 */ /* not lifted */
   5943     RECOMP_FLAGS_IN();
   5944     esi = POP32_VAL(esp); /* 0x4100D26E: pop esi */
   5945     ebp = POP32_VAL(esp); /* 0x4100D26F: pop ebp */
   5946     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4100D270: ret 8 */
   5947     RECOMP_REGS_OUT();
   5948 }
   5949 
   5950 void sub_4100D280(void) {
   5951     int _fpu_cmp = 0;
   5952     uint32_t _cf = 0;
   5953     int _df = 1;
   5954     uint32_t _flag_k = FK_NONE;
   5955     uint32_t _flag_a = 0, _flag_b = 0;
   5956     uint32_t _itail_tgt = 0;
   5957     RECOMP_REGS_LOCALS
   5958     RECOMP_ENTER(0x4100D280u);
   5959 
   5960 L_4100D280:
   5961     edx = MEM32(ecx + 0x4); /* 0x4100D280: mov edx, dword ptr [ecx + 4] */
   5962     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5963     eax = 0; /* 0x4100D283: xor eax, eax */
   5964     _cf = 0;
   5965     _flag_k = FK_TEST;
   5966     /* test edx, edx */ /* 0x4100D285: test edx, edx */
   5967     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   5968     _cf = 0;
   5969     _flag_k = FK_TEST;
   5970     SET_LO8(eax, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x4100D287: setne al */
   5971     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100D28A: ret  */
   5972     RECOMP_REGS_OUT();
   5973 }
   5974 
   5975 void sub_4100D290(void) {
   5976     int _fpu_cmp = 0;
   5977     uint32_t _cf = 0;
   5978     int _df = 1;
   5979     uint32_t _flag_k = FK_NONE;
   5980     uint32_t _flag_a = 0, _flag_b = 0;
   5981     uint32_t _itail_tgt = 0;
   5982     RECOMP_REGS_LOCALS
   5983     RECOMP_ENTER(0x4100D290u);
   5984 
   5985 L_4100D290:
   5986     PUSH32(esp, ebp); /* 0x4100D290: push ebp */
   5987     ebp = esp; /* 0x4100D291: mov ebp, esp */
   5988     PUSH32(esp, ebx); /* 0x4100D293: push ebx */
   5989     ebx = ecx; /* 0x4100D294: mov ebx, ecx */
   5990     RECOMP_ICALL(0x4100D280u); /* 0x4100D296: call 0x4100d280 */ /* not lifted */
   5991     RECOMP_FLAGS_IN();
   5992     /* test LO8(eax), LO8(eax) */ /* 0x4100D29B: test al, al */
   5993     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5994     _cf = 0;
   5995     _flag_k = FK_NARROW(FK_TEST, 24);
   5996     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100D2A7; /* 0x4100D29D: jne 0x4100d2a7 */
   5997 L_4100D29F:
   5998     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   5999     eax = eax | 0xFFFFFFFFu; /* 0x4100D29F: or eax, 0xffffffff */
   6000     _cf = 0;
   6001     _flag_k = FK_TEST;
   6002     ebx = POP32_VAL(esp); /* 0x4100D2A2: pop ebx */
   6003     ebp = POP32_VAL(esp); /* 0x4100D2A3: pop ebp */
   6004     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4100D2A4: ret 8 */
   6005 L_4100D2A7:
   6006     edx = MEM32(ebx + 0x10); /* 0x4100D2A7: mov edx, dword ptr [ebx + 0x10] */
   6007     eax = MEM32(ebx + 0x8); /* 0x4100D2AA: mov eax, dword ptr [ebx + 8] */
   6008     ecx = MEM32(ebp + 0xC); /* 0x4100D2AD: mov ecx, dword ptr [ebp + 0xc] */
   6009     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   6010     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6011     eax = eax - edx; /* 0x4100D2B0: sub eax, edx */
   6012     _flag_k = FK_CMP;
   6013     /* cmp ecx, eax */ /* 0x4100D2B2: cmp ecx, eax */
   6014     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   6015     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6016     _flag_k = FK_CMP;
   6017     if (CMP_AE(_flag_a, _flag_b)) goto L_4100D2B8; /* 0x4100D2B4: jae 0x4100d2b8 */
   6018 L_4100D2B6:
   6019     eax = ecx; /* 0x4100D2B6: mov eax, ecx */
   6020 L_4100D2B8:
   6021     PUSH32(esp, esi); /* 0x4100D2B8: push esi */
   6022     esi = MEM32(ebx + 0x4); /* 0x4100D2B9: mov esi, dword ptr [ebx + 4] */
   6023     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   6024     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6025     esi = esi + edx; /* 0x4100D2BC: add esi, edx */
   6026     _flag_k = FK_ADD;
   6027     PUSH32(esp, edi); /* 0x4100D2BE: push edi */
   6028     edi = MEM32(ebp + 0x8); /* 0x4100D2BF: mov edi, dword ptr [ebp + 8] */
   6029     ecx = eax; /* 0x4100D2C2: mov ecx, eax */
   6030     edx = ecx; /* 0x4100D2C4: mov edx, ecx */
   6031     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4100D2C6: shr ecx, 2 */
   6032     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6033     ecx = ecx >> 2u; /* 0x4100D2C6: shr ecx, 2 */
   6034     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4100D2C9: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   6035     ecx = edx; /* 0x4100D2CB: mov ecx, edx */
   6036     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   6037     ecx = ecx & 3; /* 0x4100D2CD: and ecx, 3 */
   6038     _cf = 0;
   6039     _flag_k = FK_TEST;
   6040     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4100D2D0: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   6041     ecx = MEM32(ebx + 0x10); /* 0x4100D2D2: mov ecx, dword ptr [ebx + 0x10] */
   6042     edi = POP32_VAL(esp); /* 0x4100D2D5: pop edi */
   6043     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   6044     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6045     ecx = ecx + eax; /* 0x4100D2D6: add ecx, eax */
   6046     _flag_k = FK_ADD;
   6047     esi = POP32_VAL(esp); /* 0x4100D2D8: pop esi */
   6048     MEM32(ebx + 0x10) = ecx; /* 0x4100D2D9: mov dword ptr [ebx + 0x10], ecx */
   6049     ebx = POP32_VAL(esp); /* 0x4100D2DC: pop ebx */
   6050     ebp = POP32_VAL(esp); /* 0x4100D2DD: pop ebp */
   6051     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4100D2DE: ret 8 */
   6052     RECOMP_REGS_OUT();
   6053 }
   6054 
   6055 void sub_4100D2F0(void) {
   6056     int _fpu_cmp = 0;
   6057     uint32_t _cf = 0;
   6058     int _df = 1;
   6059     uint32_t _flag_k = FK_NONE;
   6060     uint32_t _flag_a = 0, _flag_b = 0;
   6061     uint32_t _itail_tgt = 0;
   6062     RECOMP_REGS_LOCALS
   6063     RECOMP_ENTER(0x4100D2F0u);
   6064 
   6065 L_4100D2F0:
   6066     PUSH32(esp, ebp); /* 0x4100D2F0: push ebp */
   6067     ebp = esp; /* 0x4100D2F1: mov ebp, esp */
   6068     PUSH32(esp, esi); /* 0x4100D2F3: push esi */
   6069     esi = ecx; /* 0x4100D2F4: mov esi, ecx */
   6070     RECOMP_ICALL(0x4100D280u); /* 0x4100D2F6: call 0x4100d280 */ /* not lifted */
   6071     RECOMP_FLAGS_IN();
   6072     /* test LO8(eax), LO8(eax) */ /* 0x4100D2FB: test al, al */
   6073     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6074     _cf = 0;
   6075     _flag_k = FK_NARROW(FK_TEST, 24);
   6076     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100D307; /* 0x4100D2FD: jne 0x4100d307 */
   6077 L_4100D2FF:
   6078     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   6079     eax = eax | 0xFFFFFFFFu; /* 0x4100D2FF: or eax, 0xffffffff */
   6080     _cf = 0;
   6081     _flag_k = FK_TEST;
   6082     esi = POP32_VAL(esp); /* 0x4100D302: pop esi */
   6083     ebp = POP32_VAL(esp); /* 0x4100D303: pop ebp */
   6084     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4100D304: ret 0xc */
   6085 L_4100D307:
   6086     eax = MEM32(esi + 0x8); /* 0x4100D307: mov eax, dword ptr [esi + 8] */
   6087     edx = MEM32(ebp + 0x8); /* 0x4100D30A: mov edx, dword ptr [ebp + 8] */
   6088     ecx = MEM32(ebp + 0x10); /* 0x4100D30D: mov ecx, dword ptr [ebp + 0x10] */
   6089     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   6090     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6091     eax = eax - edx; /* 0x4100D310: sub eax, edx */
   6092     _flag_k = FK_CMP;
   6093     /* cmp ecx, eax */ /* 0x4100D312: cmp ecx, eax */
   6094     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   6095     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6096     _flag_k = FK_CMP;
   6097     if (CMP_GE(_flag_a, _flag_b)) goto L_4100D318; /* 0x4100D314: jge 0x4100d318 */
   6098 L_4100D316:
   6099     eax = ecx; /* 0x4100D316: mov eax, ecx */
   6100 L_4100D318:
   6101     esi = MEM32(esi + 0x4); /* 0x4100D318: mov esi, dword ptr [esi + 4] */
   6102     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   6103     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6104     esi = esi + edx; /* 0x4100D31B: add esi, edx */
   6105     _flag_k = FK_ADD;
   6106     PUSH32(esp, edi); /* 0x4100D31D: push edi */
   6107     edi = MEM32(ebp + 0xC); /* 0x4100D31E: mov edi, dword ptr [ebp + 0xc] */
   6108     ecx = eax; /* 0x4100D321: mov ecx, eax */
   6109     edx = ecx; /* 0x4100D323: mov edx, ecx */
   6110     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4100D325: shr ecx, 2 */
   6111     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6112     ecx = ecx >> 2u; /* 0x4100D325: shr ecx, 2 */
   6113     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4100D328: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   6114     ecx = edx; /* 0x4100D32A: mov ecx, edx */
   6115     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   6116     ecx = ecx & 3; /* 0x4100D32C: and ecx, 3 */
   6117     _cf = 0;
   6118     _flag_k = FK_TEST;
   6119     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4100D32F: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   6120     edi = POP32_VAL(esp); /* 0x4100D331: pop edi */
   6121     esi = POP32_VAL(esp); /* 0x4100D332: pop esi */
   6122     ebp = POP32_VAL(esp); /* 0x4100D333: pop ebp */
   6123     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4100D334: ret 0xc */
   6124     RECOMP_REGS_OUT();
   6125 }
   6126 
   6127 void sub_4100D340(void) {
   6128     int _fpu_cmp = 0;
   6129     uint32_t _cf = 0;
   6130     int _df = 1;
   6131     uint32_t _flag_k = FK_NONE;
   6132     uint32_t _flag_a = 0, _flag_b = 0;
   6133     uint32_t _itail_tgt = 0;
   6134     RECOMP_REGS_LOCALS
   6135     RECOMP_ENTER(0x4100D340u);
   6136 
   6137 L_4100D340:
   6138     PUSH32(esp, ebp); /* 0x4100D340: push ebp */
   6139     ebp = esp; /* 0x4100D341: mov ebp, esp */
   6140     PUSH32(esp, ebx); /* 0x4100D343: push ebx */
   6141     ebx = ecx; /* 0x4100D344: mov ebx, ecx */
   6142     RECOMP_ICALL(0x4100D280u); /* 0x4100D346: call 0x4100d280 */ /* not lifted */
   6143     RECOMP_FLAGS_IN();
   6144     /* test LO8(eax), LO8(eax) */ /* 0x4100D34B: test al, al */
   6145     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6146     _cf = 0;
   6147     _flag_k = FK_NARROW(FK_TEST, 24);
   6148     if (TEST_Z(_flag_a, _flag_b)) goto L_4100D390; /* 0x4100D34D: je 0x4100d390 */
   6149 L_4100D34F:
   6150     SET_LO8(eax, MEM8(ebx + 0xC)); /* 0x4100D34F: mov al, byte ptr [ebx + 0xc] */
   6151     /* test LO8(eax), LO8(eax) */ /* 0x4100D352: test al, al */
   6152     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6153     _cf = 0;
   6154     _flag_k = FK_NARROW(FK_TEST, 24);
   6155     if (TEST_Z(_flag_a, _flag_b)) goto L_4100D390; /* 0x4100D354: je 0x4100d390 */
   6156 L_4100D356:
   6157     edx = MEM32(ebx + 0x10); /* 0x4100D356: mov edx, dword ptr [ebx + 0x10] */
   6158     eax = MEM32(ebx + 0x8); /* 0x4100D359: mov eax, dword ptr [ebx + 8] */
   6159     ecx = MEM32(ebp + 0xC); /* 0x4100D35C: mov ecx, dword ptr [ebp + 0xc] */
   6160     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   6161     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6162     eax = eax - edx; /* 0x4100D35F: sub eax, edx */
   6163     _flag_k = FK_CMP;
   6164     /* cmp ecx, eax */ /* 0x4100D361: cmp ecx, eax */
   6165     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   6166     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6167     _flag_k = FK_CMP;
   6168     if (CMP_AE(_flag_a, _flag_b)) goto L_4100D367; /* 0x4100D363: jae 0x4100d367 */
   6169 L_4100D365:
   6170     eax = ecx; /* 0x4100D365: mov eax, ecx */
   6171 L_4100D367:
   6172     PUSH32(esp, esi); /* 0x4100D367: push esi */
   6173     esi = MEM32(ebp + 0x8); /* 0x4100D368: mov esi, dword ptr [ebp + 8] */
   6174     PUSH32(esp, edi); /* 0x4100D36B: push edi */
   6175     edi = MEM32(ebx + 0x4); /* 0x4100D36C: mov edi, dword ptr [ebx + 4] */
   6176     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
   6177     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6178     edi = edi + edx; /* 0x4100D36F: add edi, edx */
   6179     _flag_k = FK_ADD;
   6180     ecx = eax; /* 0x4100D371: mov ecx, eax */
   6181     edx = ecx; /* 0x4100D373: mov edx, ecx */
   6182     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4100D375: shr ecx, 2 */
   6183     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6184     ecx = ecx >> 2u; /* 0x4100D375: shr ecx, 2 */
   6185     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4100D378: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   6186     ecx = edx; /* 0x4100D37A: mov ecx, edx */
   6187     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   6188     ecx = ecx & 3; /* 0x4100D37C: and ecx, 3 */
   6189     _cf = 0;
   6190     _flag_k = FK_TEST;
   6191     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4100D37F: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   6192     ecx = MEM32(ebx + 0x10); /* 0x4100D381: mov ecx, dword ptr [ebx + 0x10] */
   6193     edi = POP32_VAL(esp); /* 0x4100D384: pop edi */
   6194     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   6195     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6196     ecx = ecx + eax; /* 0x4100D385: add ecx, eax */
   6197     _flag_k = FK_ADD;
   6198     esi = POP32_VAL(esp); /* 0x4100D387: pop esi */
   6199     MEM32(ebx + 0x10) = ecx; /* 0x4100D388: mov dword ptr [ebx + 0x10], ecx */
   6200     ebx = POP32_VAL(esp); /* 0x4100D38B: pop ebx */
   6201     ebp = POP32_VAL(esp); /* 0x4100D38C: pop ebp */
   6202     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4100D38D: ret 8 */
   6203 L_4100D390:
   6204     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   6205     eax = eax | 0xFFFFFFFFu; /* 0x4100D390: or eax, 0xffffffff */
   6206     _cf = 0;
   6207     _flag_k = FK_TEST;
   6208     ebx = POP32_VAL(esp); /* 0x4100D393: pop ebx */
   6209     ebp = POP32_VAL(esp); /* 0x4100D394: pop ebp */
   6210     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4100D395: ret 8 */
   6211     RECOMP_REGS_OUT();
   6212 }
   6213 
   6214 void sub_4100D3A0(void) {
   6215     int _fpu_cmp = 0;
   6216     uint32_t _cf = 0;
   6217     int _df = 1;
   6218     uint32_t _flag_k = FK_NONE;
   6219     uint32_t _flag_a = 0, _flag_b = 0;
   6220     uint32_t _itail_tgt = 0;
   6221     RECOMP_REGS_LOCALS
   6222     RECOMP_ENTER(0x4100D3A0u);
   6223 
   6224 L_4100D3A0:
   6225     PUSH32(esp, ebp); /* 0x4100D3A0: push ebp */
   6226     ebp = esp; /* 0x4100D3A1: mov ebp, esp */
   6227     PUSH32(esp, edi); /* 0x4100D3A3: push edi */
   6228     edi = ecx; /* 0x4100D3A4: mov edi, ecx */
   6229     RECOMP_ICALL(0x4100D280u); /* 0x4100D3A6: call 0x4100d280 */ /* not lifted */
   6230     RECOMP_FLAGS_IN();
   6231     /* test LO8(eax), LO8(eax) */ /* 0x4100D3AB: test al, al */
   6232     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6233     _cf = 0;
   6234     _flag_k = FK_NARROW(FK_TEST, 24);
   6235     if (TEST_Z(_flag_a, _flag_b)) goto L_4100D3E6; /* 0x4100D3AD: je 0x4100d3e6 */
   6236 L_4100D3AF:
   6237     SET_LO8(eax, MEM8(edi + 0xC)); /* 0x4100D3AF: mov al, byte ptr [edi + 0xc] */
   6238     /* test LO8(eax), LO8(eax) */ /* 0x4100D3B2: test al, al */
   6239     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6240     _cf = 0;
   6241     _flag_k = FK_NARROW(FK_TEST, 24);
   6242     if (TEST_Z(_flag_a, _flag_b)) goto L_4100D3E6; /* 0x4100D3B4: je 0x4100d3e6 */
   6243 L_4100D3B6:
   6244     eax = MEM32(edi + 0x8); /* 0x4100D3B6: mov eax, dword ptr [edi + 8] */
   6245     edx = MEM32(ebp + 0x8); /* 0x4100D3B9: mov edx, dword ptr [ebp + 8] */
   6246     ecx = MEM32(ebp + 0x10); /* 0x4100D3BC: mov ecx, dword ptr [ebp + 0x10] */
   6247     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   6248     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6249     eax = eax - edx; /* 0x4100D3BF: sub eax, edx */
   6250     _flag_k = FK_CMP;
   6251     /* cmp ecx, eax */ /* 0x4100D3C1: cmp ecx, eax */
   6252     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   6253     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6254     _flag_k = FK_CMP;
   6255     if (CMP_GE(_flag_a, _flag_b)) goto L_4100D3C7; /* 0x4100D3C3: jge 0x4100d3c7 */
   6256 L_4100D3C5:
   6257     eax = ecx; /* 0x4100D3C5: mov eax, ecx */
   6258 L_4100D3C7:
   6259     edi = MEM32(edi + 0x4); /* 0x4100D3C7: mov edi, dword ptr [edi + 4] */
   6260     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
   6261     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6262     edi = edi + edx; /* 0x4100D3CA: add edi, edx */
   6263     _flag_k = FK_ADD;
   6264     PUSH32(esp, esi); /* 0x4100D3CC: push esi */
   6265     esi = MEM32(ebp + 0xC); /* 0x4100D3CD: mov esi, dword ptr [ebp + 0xc] */
   6266     ecx = eax; /* 0x4100D3D0: mov ecx, eax */
   6267     edx = ecx; /* 0x4100D3D2: mov edx, ecx */
   6268     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4100D3D4: shr ecx, 2 */
   6269     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6270     ecx = ecx >> 2u; /* 0x4100D3D4: shr ecx, 2 */
   6271     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4100D3D7: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   6272     ecx = edx; /* 0x4100D3D9: mov ecx, edx */
   6273     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   6274     ecx = ecx & 3; /* 0x4100D3DB: and ecx, 3 */
   6275     _cf = 0;
   6276     _flag_k = FK_TEST;
   6277     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4100D3DE: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   6278     esi = POP32_VAL(esp); /* 0x4100D3E0: pop esi */
   6279     edi = POP32_VAL(esp); /* 0x4100D3E1: pop edi */
   6280     ebp = POP32_VAL(esp); /* 0x4100D3E2: pop ebp */
   6281     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4100D3E3: ret 0xc */
   6282 L_4100D3E6:
   6283     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   6284     eax = eax | 0xFFFFFFFFu; /* 0x4100D3E6: or eax, 0xffffffff */
   6285     _cf = 0;
   6286     _flag_k = FK_TEST;
   6287     edi = POP32_VAL(esp); /* 0x4100D3E9: pop edi */
   6288     ebp = POP32_VAL(esp); /* 0x4100D3EA: pop ebp */
   6289     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4100D3EB: ret 0xc */
   6290     RECOMP_REGS_OUT();
   6291 }
   6292 
   6293 void sub_4100D3F0(void) {
   6294     int _fpu_cmp = 0;
   6295     uint32_t _cf = 0;
   6296     int _df = 1;
   6297     uint32_t _flag_k = FK_NONE;
   6298     uint32_t _flag_a = 0, _flag_b = 0;
   6299     uint32_t _itail_tgt = 0;
   6300     RECOMP_REGS_LOCALS
   6301     RECOMP_ENTER(0x4100D3F0u);
   6302 
   6303 L_4100D3F0:
   6304     PUSH32(esp, esi); /* 0x4100D3F0: push esi */
   6305     esi = ecx; /* 0x4100D3F1: mov esi, ecx */
   6306     RECOMP_ICALL(0x4100D280u); /* 0x4100D3F3: call 0x4100d280 */ /* not lifted */
   6307     RECOMP_FLAGS_IN();
   6308     /* test LO8(eax), LO8(eax) */ /* 0x4100D3F8: test al, al */
   6309     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6310     _cf = 0;
   6311     _flag_k = FK_NARROW(FK_TEST, 24);
   6312     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100D401; /* 0x4100D3FA: jne 0x4100d401 */
   6313 L_4100D3FC:
   6314     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   6315     eax = eax | 0xFFFFFFFFu; /* 0x4100D3FC: or eax, 0xffffffff */
   6316     _cf = 0;
   6317     _flag_k = FK_TEST;
   6318     esi = POP32_VAL(esp); /* 0x4100D3FF: pop esi */
   6319     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100D400: ret  */
   6320 L_4100D401:
   6321     eax = MEM32(esi + 0x10); /* 0x4100D401: mov eax, dword ptr [esi + 0x10] */
   6322     esi = POP32_VAL(esp); /* 0x4100D404: pop esi */
   6323     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100D405: ret  */
   6324     RECOMP_REGS_OUT();
   6325 }
   6326 
   6327 void sub_4100D410(void) {
   6328     int _fpu_cmp = 0;
   6329     uint32_t _cf = 0;
   6330     int _df = 1;
   6331     uint32_t _flag_k = FK_NONE;
   6332     uint32_t _flag_a = 0, _flag_b = 0;
   6333     uint32_t _itail_tgt = 0;
   6334     RECOMP_REGS_LOCALS
   6335     RECOMP_ENTER(0x4100D410u);
   6336 
   6337 L_4100D410:
   6338     PUSH32(esp, ebp); /* 0x4100D410: push ebp */
   6339     ebp = esp; /* 0x4100D411: mov ebp, esp */
   6340     PUSH32(esp, esi); /* 0x4100D413: push esi */
   6341     esi = ecx; /* 0x4100D414: mov esi, ecx */
   6342     RECOMP_ICALL(0x4100D280u); /* 0x4100D416: call 0x4100d280 */ /* not lifted */
   6343     RECOMP_FLAGS_IN();
   6344     /* test LO8(eax), LO8(eax) */ /* 0x4100D41B: test al, al */
   6345     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6346     _cf = 0;
   6347     _flag_k = FK_NARROW(FK_TEST, 24);
   6348     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100D427; /* 0x4100D41D: jne 0x4100d427 */
   6349 L_4100D41F:
   6350     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   6351     eax = eax | 0xFFFFFFFFu; /* 0x4100D41F: or eax, 0xffffffff */
   6352     _cf = 0;
   6353     _flag_k = FK_TEST;
   6354     esi = POP32_VAL(esp); /* 0x4100D422: pop esi */
   6355     ebp = POP32_VAL(esp); /* 0x4100D423: pop ebp */
   6356     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4100D424: ret 8 */
   6357 L_4100D427:
   6358     eax = MEM32(ebp + 0xC); /* 0x4100D427: mov eax, dword ptr [ebp + 0xc] */
   6359     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0);
   6360     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6361     eax = eax - 0; /* 0x4100D42A: sub eax, 0 */
   6362     _flag_k = FK_CMP;
   6363     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_4100D44D; /* 0x4100D42D: je 0x4100d44d */
   6364 L_4100D42F:
   6365     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6366     eax = eax - 1; /* 0x4100D42F: dec eax */
   6367     _flag_k = FK_DEC;
   6368     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_4100D440; /* 0x4100D430: je 0x4100d440 */
   6369 L_4100D432:
   6370     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6371     eax = eax - 1; /* 0x4100D432: dec eax */
   6372     _flag_k = FK_DEC;
   6373     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_4100D453; /* 0x4100D433: jne 0x4100d453 */
   6374 L_4100D435:
   6375     eax = MEM32(esi + 0x8); /* 0x4100D435: mov eax, dword ptr [esi + 8] */
   6376     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + 0x8));
   6377     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6378     eax = eax - MEM32(ebp + 0x8); /* 0x4100D438: sub eax, dword ptr [ebp + 8] */
   6379     _flag_k = FK_CMP;
   6380     MEM32(esi + 0x10) = eax; /* 0x4100D43B: mov dword ptr [esi + 0x10], eax */
   6381     goto L_4100D453; /* 0x4100D43E: jmp 0x4100d453 */
   6382 L_4100D440:
   6383     eax = MEM32(esi + 0x10); /* 0x4100D440: mov eax, dword ptr [esi + 0x10] */
   6384     ecx = MEM32(ebp + 0x8); /* 0x4100D443: mov ecx, dword ptr [ebp + 8] */
   6385     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6386     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6387     eax = eax + ecx; /* 0x4100D446: add eax, ecx */
   6388     _flag_k = FK_ADD;
   6389     MEM32(esi + 0x10) = eax; /* 0x4100D448: mov dword ptr [esi + 0x10], eax */
   6390     goto L_4100D453; /* 0x4100D44B: jmp 0x4100d453 */
   6391 L_4100D44D:
   6392     edx = MEM32(ebp + 0x8); /* 0x4100D44D: mov edx, dword ptr [ebp + 8] */
   6393     MEM32(esi + 0x10) = edx; /* 0x4100D450: mov dword ptr [esi + 0x10], edx */
   6394 L_4100D453:
   6395     eax = MEM32(esi + 0x8); /* 0x4100D453: mov eax, dword ptr [esi + 8] */
   6396     /* cmp MEM32(esi + 0x10), eax */ /* 0x4100D456: cmp dword ptr [esi + 0x10], eax */
   6397     _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(eax);
   6398     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6399     _flag_k = FK_CMP;
   6400     if (CMP_BE(_flag_a, _flag_b)) goto L_4100D45E; /* 0x4100D459: jbe 0x4100d45e */
   6401 L_4100D45B:
   6402     MEM32(esi + 0x10) = eax; /* 0x4100D45B: mov dword ptr [esi + 0x10], eax */
   6403 L_4100D45E:
   6404     eax = MEM32(esi + 0x10); /* 0x4100D45E: mov eax, dword ptr [esi + 0x10] */
   6405     esi = POP32_VAL(esp); /* 0x4100D461: pop esi */
   6406     ebp = POP32_VAL(esp); /* 0x4100D462: pop ebp */
   6407     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4100D463: ret 8 */
   6408     RECOMP_REGS_OUT();
   6409 }
   6410 
   6411 void sub_4100D470(void) {
   6412     int _fpu_cmp = 0;
   6413     uint32_t _cf = 0;
   6414     int _df = 1;
   6415     uint32_t _flag_k = FK_NONE;
   6416     uint32_t _flag_a = 0, _flag_b = 0;
   6417     uint32_t _itail_tgt = 0;
   6418     RECOMP_REGS_LOCALS
   6419     RECOMP_ENTER(0x4100D470u);
   6420 
   6421 L_4100D470:
   6422     PUSH32(esp, ebp); /* 0x4100D470: push ebp */
   6423     ebp = esp; /* 0x4100D471: mov ebp, esp */
   6424     eax = MEM32(ebp + 0x8); /* 0x4100D473: mov eax, dword ptr [ebp + 8] */
   6425     edx = MEM32(ebp + 0xC); /* 0x4100D476: mov edx, dword ptr [ebp + 0xc] */
   6426     MEM32(ecx + 0x4) = eax; /* 0x4100D479: mov dword ptr [ecx + 4], eax */
   6427     SET_LO8(eax, MEM8(ebp + 0x10)); /* 0x4100D47C: mov al, byte ptr [ebp + 0x10] */
   6428     MEM32(ecx + 0x8) = edx; /* 0x4100D47F: mov dword ptr [ecx + 8], edx */
   6429     MEM8(ecx + 0xC) = (uint8_t)(LO8(eax)); /* 0x4100D482: mov byte ptr [ecx + 0xc], al */
   6430     MEM32(ecx + 0x10) = 0; /* 0x4100D485: mov dword ptr [ecx + 0x10], 0 */
   6431     ebp = POP32_VAL(esp); /* 0x4100D48C: pop ebp */
   6432     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4100D48D: ret 0xc */
   6433     RECOMP_REGS_OUT();
   6434 }
   6435 
   6436 void sub_4100D490(void) {
   6437     int _fpu_cmp = 0;
   6438     uint32_t _cf = 0;
   6439     int _df = 1;
   6440     uint32_t _flag_k = FK_NONE;
   6441     uint32_t _flag_a = 0, _flag_b = 0;
   6442     uint32_t _itail_tgt = 0;
   6443     RECOMP_REGS_LOCALS
   6444     RECOMP_ENTER(0x4100D490u);
   6445 
   6446 L_4100D490:
   6447     eax = ecx; /* 0x4100D490: mov eax, ecx */
   6448     MEM32(eax) = 0x4100F334u; /* 0x4100D492: mov dword ptr [eax], 0x4100f334 */
   6449     MEM32(eax + 0x4) = 0; /* 0x4100D498: mov dword ptr [eax + 4], 0 */
   6450     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100D49F: ret  */
   6451     RECOMP_REGS_OUT();
   6452 }
   6453 
   6454 void sub_4100D4A0(void) {
   6455     int _fpu_cmp = 0;
   6456     uint32_t _cf = 0;
   6457     int _df = 1;
   6458     uint32_t _flag_k = FK_NONE;
   6459     uint32_t _flag_a = 0, _flag_b = 0;
   6460     uint32_t _itail_tgt = 0;
   6461     RECOMP_REGS_LOCALS
   6462     RECOMP_ENTER(0x4100D4A0u);
   6463 
   6464 L_4100D4A0:
   6465     PUSH32(esp, ebp); /* 0x4100D4A0: push ebp */
   6466     ebp = esp; /* 0x4100D4A1: mov ebp, esp */
   6467     PUSH32(esp, esi); /* 0x4100D4A3: push esi */
   6468     esi = ecx; /* 0x4100D4A4: mov esi, ecx */
   6469     RECOMP_ICALL(0x4100D4D0u); /* 0x4100D4A6: call 0x4100d4d0 */ /* not lifted */
   6470     RECOMP_FLAGS_IN();
   6471     /* test MEM8(ebp + 0x8), 1 */ /* 0x4100D4AB: test byte ptr [ebp + 8], 1 */
   6472     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   6473     _cf = 0;
   6474     _flag_k = FK_NARROW(FK_TEST, 24);
   6475     if (TEST_Z(_flag_a, _flag_b)) goto L_4100D4BA; /* 0x4100D4AF: je 0x4100d4ba */
   6476 L_4100D4B1:
   6477     PUSH32(esp, esi); /* 0x4100D4B1: push esi */
   6478     RECOMP_ICALL(0x4100DB20u); /* 0x4100D4B2: call 0x4100db20 */ /* not lifted */
   6479     RECOMP_FLAGS_IN();
   6480     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6481     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6482     esp = esp + 4; /* 0x4100D4B7: add esp, 4 */
   6483     _flag_k = FK_ADD;
   6484 L_4100D4BA:
   6485     eax = esi; /* 0x4100D4BA: mov eax, esi */
   6486     esi = POP32_VAL(esp); /* 0x4100D4BC: pop esi */
   6487     ebp = POP32_VAL(esp); /* 0x4100D4BD: pop ebp */
   6488     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100D4BE: ret 4 */
   6489     RECOMP_REGS_OUT();
   6490 }
   6491 
   6492 void sub_4100D4D0(void) {
   6493     int _fpu_cmp = 0;
   6494     uint32_t _cf = 0;
   6495     int _df = 1;
   6496     uint32_t _flag_k = FK_NONE;
   6497     uint32_t _flag_a = 0, _flag_b = 0;
   6498     uint32_t _itail_tgt = 0;
   6499     RECOMP_REGS_LOCALS
   6500     RECOMP_ENTER(0x4100D4D0u);
   6501 
   6502 L_4100D4D0:
   6503     PUSH32(esp, ebp); /* 0x4100D4D0: push ebp */
   6504     ebp = esp; /* 0x4100D4D1: mov ebp, esp */
   6505     PUSH32(esp, 0xFFFFFFFFu); /* 0x4100D4D3: push -1 */
   6506     PUSH32(esp, 0x4100E968u); /* 0x4100D4D5: push 0x4100e968 */
   6507     eax = MEM32(FS_BASE + (0)); /* 0x4100D4DA: mov eax, dword ptr fs:[0] */
   6508     PUSH32(esp, eax); /* 0x4100D4E0: push eax */
   6509     MEM32(FS_BASE + (0)) = esp; /* 0x4100D4E1: mov dword ptr fs:[0], esp */
   6510     PUSH32(esp, ecx); /* 0x4100D4E8: push ecx */
   6511     PUSH32(esp, esi); /* 0x4100D4E9: push esi */
   6512     esi = ecx; /* 0x4100D4EA: mov esi, ecx */
   6513     MEM32(ebp + (-0x10)) = esi; /* 0x4100D4EC: mov dword ptr [ebp - 0x10], esi */
   6514     MEM32(esi) = 0x4100F334u; /* 0x4100D4EF: mov dword ptr [esi], 0x4100f334 */
   6515     eax = MEM32(esi + 0x4); /* 0x4100D4F5: mov eax, dword ptr [esi + 4] */
   6516     /* test eax, eax */ /* 0x4100D4F8: test eax, eax */
   6517     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6518     _cf = 0;
   6519     _flag_k = FK_TEST;
   6520     MEM32(ebp + (-0x4)) = 0; /* 0x4100D4FA: mov dword ptr [ebp - 4], 0 */
   6521     if (TEST_Z(_flag_a, _flag_b)) goto L_4100D508; /* 0x4100D501: je 0x4100d508 */
   6522 L_4100D503:
   6523     RECOMP_ICALL(0x4100D850u); /* 0x4100D503: call 0x4100d850 */ /* not lifted */
   6524     RECOMP_FLAGS_IN();
   6525 L_4100D508:
   6526     ecx = MEM32(ebp + (-0xC)); /* 0x4100D508: mov ecx, dword ptr [ebp - 0xc] */
   6527     MEM32(esi) = 0x4100F2F4u; /* 0x4100D50B: mov dword ptr [esi], 0x4100f2f4 */
   6528     esi = POP32_VAL(esp); /* 0x4100D511: pop esi */
   6529     MEM32(FS_BASE + (0)) = ecx; /* 0x4100D512: mov dword ptr fs:[0], ecx */
   6530     esp = ebp; /* 0x4100D519: mov esp, ebp */
   6531     ebp = POP32_VAL(esp); /* 0x4100D51B: pop ebp */
   6532     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100D51C: ret  */
   6533     RECOMP_REGS_OUT();
   6534 }
   6535 
   6536 void sub_4100D520(void) {
   6537     int _fpu_cmp = 0;
   6538     uint32_t _cf = 0;
   6539     int _df = 1;
   6540     uint32_t _flag_k = FK_NONE;
   6541     uint32_t _flag_a = 0, _flag_b = 0;
   6542     uint32_t _itail_tgt = 0;
   6543     RECOMP_REGS_LOCALS
   6544     RECOMP_ENTER(0x4100D520u);
   6545 
   6546 L_4100D520:
   6547     PUSH32(esp, ebp); /* 0x4100D520: push ebp */
   6548     ebp = esp; /* 0x4100D521: mov ebp, esp */
   6549     PUSH32(esp, esi); /* 0x4100D523: push esi */
   6550     esi = ecx; /* 0x4100D524: mov esi, ecx */
   6551     eax = MEM32(esi + 0x4); /* 0x4100D526: mov eax, dword ptr [esi + 4] */
   6552     /* test eax, eax */ /* 0x4100D529: test eax, eax */
   6553     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6554     _cf = 0;
   6555     _flag_k = FK_TEST;
   6556     if (TEST_Z(_flag_a, _flag_b)) goto L_4100D532; /* 0x4100D52B: je 0x4100d532 */
   6557 L_4100D52D:
   6558     RECOMP_ICALL(0x4100D850u); /* 0x4100D52D: call 0x4100d850 */ /* not lifted */
   6559     RECOMP_FLAGS_IN();
   6560 L_4100D532:
   6561     eax = MEM32(ebp + 0xC); /* 0x4100D532: mov eax, dword ptr [ebp + 0xc] */
   6562     ecx = MEM32(ebp + 0x8); /* 0x4100D535: mov ecx, dword ptr [ebp + 8] */
   6563     PUSH32(esp, eax); /* 0x4100D538: push eax */
   6564     PUSH32(esp, ecx); /* 0x4100D539: push ecx */
   6565     ecx = esi; /* 0x4100D53A: mov ecx, esi */
   6566     RECOMP_ICALL(0x4100D830u); /* 0x4100D53C: call 0x4100d830 */ /* not lifted */
   6567     RECOMP_FLAGS_IN();
   6568     ecx = esi; /* 0x4100D541: mov ecx, esi */
   6569     RECOMP_ICALL(0x4100D280u); /* 0x4100D543: call 0x4100d280 */ /* not lifted */
   6570     RECOMP_FLAGS_IN();
   6571     esi = POP32_VAL(esp); /* 0x4100D548: pop esi */
   6572     ebp = POP32_VAL(esp); /* 0x4100D549: pop ebp */
   6573     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4100D54A: ret 8 */
   6574     RECOMP_REGS_OUT();
   6575 }
   6576 
   6577 void sub_4100D550(void) {
   6578     int _fpu_cmp = 0;
   6579     uint32_t _cf = 0;
   6580     int _df = 1;
   6581     uint32_t _flag_k = FK_NONE;
   6582     uint32_t _flag_a = 0, _flag_b = 0;
   6583     uint32_t _itail_tgt = 0;
   6584     RECOMP_REGS_LOCALS
   6585     RECOMP_ENTER(0x4100D550u);
   6586 
   6587 L_4100D550:
   6588     PUSH32(esp, ebp); /* 0x4100D550: push ebp */
   6589     ebp = esp; /* 0x4100D551: mov ebp, esp */
   6590     PUSH32(esp, esi); /* 0x4100D553: push esi */
   6591     esi = ecx; /* 0x4100D554: mov esi, ecx */
   6592     RECOMP_ICALL(0x4100D280u); /* 0x4100D556: call 0x4100d280 */ /* not lifted */
   6593     RECOMP_FLAGS_IN();
   6594     /* test LO8(eax), LO8(eax) */ /* 0x4100D55B: test al, al */
   6595     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6596     _cf = 0;
   6597     _flag_k = FK_NARROW(FK_TEST, 24);
   6598     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100D567; /* 0x4100D55D: jne 0x4100d567 */
   6599 L_4100D55F:
   6600     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   6601     eax = eax | 0xFFFFFFFFu; /* 0x4100D55F: or eax, 0xffffffff */
   6602     _cf = 0;
   6603     _flag_k = FK_TEST;
   6604     esi = POP32_VAL(esp); /* 0x4100D562: pop esi */
   6605     ebp = POP32_VAL(esp); /* 0x4100D563: pop ebp */
   6606     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4100D564: ret 8 */
   6607 L_4100D567:
   6608     eax = MEM32(esi + 0x4); /* 0x4100D567: mov eax, dword ptr [esi + 4] */
   6609     ecx = MEM32(ebp + 0xC); /* 0x4100D56A: mov ecx, dword ptr [ebp + 0xc] */
   6610     edx = MEM32(ebp + 0x8); /* 0x4100D56D: mov edx, dword ptr [ebp + 8] */
   6611     PUSH32(esp, eax); /* 0x4100D570: push eax */
   6612     PUSH32(esp, ecx); /* 0x4100D571: push ecx */
   6613     PUSH32(esp, 1); /* 0x4100D572: push 1 */
   6614     PUSH32(esp, edx); /* 0x4100D574: push edx */
   6615     RECOMP_ICALL(MEM32(0x4100F0E8)); /* 0x4100D575: call dword ptr [0x4100f0e8] */
   6616     RECOMP_FLAGS_IN();
   6617     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6618     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6619     esp = esp + 0x10u; /* 0x4100D57B: add esp, 0x10 */
   6620     _flag_k = FK_ADD;
   6621     esi = POP32_VAL(esp); /* 0x4100D57E: pop esi */
   6622     ebp = POP32_VAL(esp); /* 0x4100D57F: pop ebp */
   6623     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4100D580: ret 8 */
   6624     RECOMP_REGS_OUT();
   6625 }
   6626 
   6627 void sub_4100D590(void) {
   6628     int _fpu_cmp = 0;
   6629     uint32_t _cf = 0;
   6630     int _df = 1;
   6631     uint32_t _flag_k = FK_NONE;
   6632     uint32_t _flag_a = 0, _flag_b = 0;
   6633     uint32_t _itail_tgt = 0;
   6634     RECOMP_REGS_LOCALS
   6635     RECOMP_ENTER(0x4100D590u);
   6636 
   6637 L_4100D590:
   6638     PUSH32(esp, ebp); /* 0x4100D590: push ebp */
   6639     ebp = esp; /* 0x4100D591: mov ebp, esp */
   6640     PUSH32(esp, esi); /* 0x4100D593: push esi */
   6641     esi = ecx; /* 0x4100D594: mov esi, ecx */
   6642     RECOMP_ICALL(0x4100D280u); /* 0x4100D596: call 0x4100d280 */ /* not lifted */
   6643     RECOMP_FLAGS_IN();
   6644     /* test LO8(eax), LO8(eax) */ /* 0x4100D59B: test al, al */
   6645     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6646     _cf = 0;
   6647     _flag_k = FK_NARROW(FK_TEST, 24);
   6648     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100D5A7; /* 0x4100D59D: jne 0x4100d5a7 */
   6649 L_4100D59F:
   6650     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   6651     eax = eax | 0xFFFFFFFFu; /* 0x4100D59F: or eax, 0xffffffff */
   6652     _cf = 0;
   6653     _flag_k = FK_TEST;
   6654     esi = POP32_VAL(esp); /* 0x4100D5A2: pop esi */
   6655     ebp = POP32_VAL(esp); /* 0x4100D5A3: pop ebp */
   6656     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4100D5A4: ret 0xc */
   6657 L_4100D5A7:
   6658     eax = MEM32(ebp + 0x8); /* 0x4100D5A7: mov eax, dword ptr [ebp + 8] */
   6659     ecx = MEM32(esi + 0x4); /* 0x4100D5AA: mov ecx, dword ptr [esi + 4] */
   6660     PUSH32(esp, 0); /* 0x4100D5AD: push 0 */
   6661     PUSH32(esp, eax); /* 0x4100D5AF: push eax */
   6662     PUSH32(esp, ecx); /* 0x4100D5B0: push ecx */
   6663     RECOMP_ICALL(MEM32(0x4100F0A4)); /* 0x4100D5B1: call dword ptr [0x4100f0a4] */
   6664     RECOMP_FLAGS_IN();
   6665     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6666     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6667     esp = esp + 0xCu; /* 0x4100D5B7: add esp, 0xc */
   6668     _flag_k = FK_ADD;
   6669     /* test eax, eax */ /* 0x4100D5BA: test eax, eax */
   6670     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6671     _cf = 0;
   6672     _flag_k = FK_TEST;
   6673     if (TEST_Z(_flag_a, _flag_b)) goto L_4100D5C5; /* 0x4100D5BC: je 0x4100d5c5 */
   6674 L_4100D5BE:
   6675     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6676     eax = 0; /* 0x4100D5BE: xor eax, eax */
   6677     _cf = 0;
   6678     _flag_k = FK_TEST;
   6679     esi = POP32_VAL(esp); /* 0x4100D5C0: pop esi */
   6680     ebp = POP32_VAL(esp); /* 0x4100D5C1: pop ebp */
   6681     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4100D5C2: ret 0xc */
   6682 L_4100D5C5:
   6683     edx = MEM32(esi + 0x4); /* 0x4100D5C5: mov edx, dword ptr [esi + 4] */
   6684     eax = MEM32(ebp + 0x10); /* 0x4100D5C8: mov eax, dword ptr [ebp + 0x10] */
   6685     ecx = MEM32(ebp + 0xC); /* 0x4100D5CB: mov ecx, dword ptr [ebp + 0xc] */
   6686     PUSH32(esp, edx); /* 0x4100D5CE: push edx */
   6687     PUSH32(esp, eax); /* 0x4100D5CF: push eax */
   6688     PUSH32(esp, 1); /* 0x4100D5D0: push 1 */
   6689     PUSH32(esp, ecx); /* 0x4100D5D2: push ecx */
   6690     RECOMP_ICALL(MEM32(0x4100F0E8)); /* 0x4100D5D3: call dword ptr [0x4100f0e8] */
   6691     RECOMP_FLAGS_IN();
   6692     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6693     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6694     esp = esp + 0x10u; /* 0x4100D5D9: add esp, 0x10 */
   6695     _flag_k = FK_ADD;
   6696     esi = POP32_VAL(esp); /* 0x4100D5DC: pop esi */
   6697     ebp = POP32_VAL(esp); /* 0x4100D5DD: pop ebp */
   6698     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4100D5DE: ret 0xc */
   6699     RECOMP_REGS_OUT();
   6700 }
   6701 
   6702 void sub_4100D5F0(void) {
   6703     int _fpu_cmp = 0;
   6704     uint32_t _cf = 0;
   6705     int _df = 1;
   6706     uint32_t _flag_k = FK_NONE;
   6707     uint32_t _flag_a = 0, _flag_b = 0;
   6708     uint32_t _itail_tgt = 0;
   6709     RECOMP_REGS_LOCALS
   6710     RECOMP_ENTER(0x4100D5F0u);
   6711 
   6712 L_4100D5F0:
   6713     PUSH32(esp, ebp); /* 0x4100D5F0: push ebp */
   6714     ebp = esp; /* 0x4100D5F1: mov ebp, esp */
   6715     PUSH32(esp, esi); /* 0x4100D5F3: push esi */
   6716     esi = ecx; /* 0x4100D5F4: mov esi, ecx */
   6717     RECOMP_ICALL(0x4100D280u); /* 0x4100D5F6: call 0x4100d280 */ /* not lifted */
   6718     RECOMP_FLAGS_IN();
   6719     /* test LO8(eax), LO8(eax) */ /* 0x4100D5FB: test al, al */
   6720     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6721     _cf = 0;
   6722     _flag_k = FK_NARROW(FK_TEST, 24);
   6723     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100D607; /* 0x4100D5FD: jne 0x4100d607 */
   6724 L_4100D5FF:
   6725     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   6726     eax = eax | 0xFFFFFFFFu; /* 0x4100D5FF: or eax, 0xffffffff */
   6727     _cf = 0;
   6728     _flag_k = FK_TEST;
   6729     esi = POP32_VAL(esp); /* 0x4100D602: pop esi */
   6730     ebp = POP32_VAL(esp); /* 0x4100D603: pop ebp */
   6731     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4100D604: ret 8 */
   6732 L_4100D607:
   6733     eax = MEM32(esi + 0x4); /* 0x4100D607: mov eax, dword ptr [esi + 4] */
   6734     ecx = MEM32(ebp + 0xC); /* 0x4100D60A: mov ecx, dword ptr [ebp + 0xc] */
   6735     edx = MEM32(ebp + 0x8); /* 0x4100D60D: mov edx, dword ptr [ebp + 8] */
   6736     PUSH32(esp, eax); /* 0x4100D610: push eax */
   6737     PUSH32(esp, ecx); /* 0x4100D611: push ecx */
   6738     PUSH32(esp, 1); /* 0x4100D612: push 1 */
   6739     PUSH32(esp, edx); /* 0x4100D614: push edx */
   6740     RECOMP_ICALL(MEM32(0x4100F0A8)); /* 0x4100D615: call dword ptr [0x4100f0a8] */
   6741     RECOMP_FLAGS_IN();
   6742     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6743     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6744     esp = esp + 0x10u; /* 0x4100D61B: add esp, 0x10 */
   6745     _flag_k = FK_ADD;
   6746     esi = POP32_VAL(esp); /* 0x4100D61E: pop esi */
   6747     ebp = POP32_VAL(esp); /* 0x4100D61F: pop ebp */
   6748     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4100D620: ret 8 */
   6749     RECOMP_REGS_OUT();
   6750 }
   6751 
   6752 void sub_4100D630(void) {
   6753     int _fpu_cmp = 0;
   6754     uint32_t _cf = 0;
   6755     int _df = 1;
   6756     uint32_t _flag_k = FK_NONE;
   6757     uint32_t _flag_a = 0, _flag_b = 0;
   6758     uint32_t _itail_tgt = 0;
   6759     RECOMP_REGS_LOCALS
   6760     RECOMP_ENTER(0x4100D630u);
   6761 
   6762 L_4100D630:
   6763     PUSH32(esp, ebp); /* 0x4100D630: push ebp */
   6764     ebp = esp; /* 0x4100D631: mov ebp, esp */
   6765     PUSH32(esp, esi); /* 0x4100D633: push esi */
   6766     esi = ecx; /* 0x4100D634: mov esi, ecx */
   6767     RECOMP_ICALL(0x4100D280u); /* 0x4100D636: call 0x4100d280 */ /* not lifted */
   6768     RECOMP_FLAGS_IN();
   6769     /* test LO8(eax), LO8(eax) */ /* 0x4100D63B: test al, al */
   6770     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6771     _cf = 0;
   6772     _flag_k = FK_NARROW(FK_TEST, 24);
   6773     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100D647; /* 0x4100D63D: jne 0x4100d647 */
   6774 L_4100D63F:
   6775     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   6776     eax = eax | 0xFFFFFFFFu; /* 0x4100D63F: or eax, 0xffffffff */
   6777     _cf = 0;
   6778     _flag_k = FK_TEST;
   6779     esi = POP32_VAL(esp); /* 0x4100D642: pop esi */
   6780     ebp = POP32_VAL(esp); /* 0x4100D643: pop ebp */
   6781     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4100D644: ret 0xc */
   6782 L_4100D647:
   6783     eax = MEM32(ebp + 0x8); /* 0x4100D647: mov eax, dword ptr [ebp + 8] */
   6784     ecx = MEM32(esi + 0x4); /* 0x4100D64A: mov ecx, dword ptr [esi + 4] */
   6785     PUSH32(esp, 0); /* 0x4100D64D: push 0 */
   6786     PUSH32(esp, eax); /* 0x4100D64F: push eax */
   6787     PUSH32(esp, ecx); /* 0x4100D650: push ecx */
   6788     RECOMP_ICALL(MEM32(0x4100F0A4)); /* 0x4100D651: call dword ptr [0x4100f0a4] */
   6789     RECOMP_FLAGS_IN();
   6790     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6791     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6792     esp = esp + 0xCu; /* 0x4100D657: add esp, 0xc */
   6793     _flag_k = FK_ADD;
   6794     /* test eax, eax */ /* 0x4100D65A: test eax, eax */
   6795     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6796     _cf = 0;
   6797     _flag_k = FK_TEST;
   6798     if (TEST_Z(_flag_a, _flag_b)) goto L_4100D665; /* 0x4100D65C: je 0x4100d665 */
   6799 L_4100D65E:
   6800     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6801     eax = 0; /* 0x4100D65E: xor eax, eax */
   6802     _cf = 0;
   6803     _flag_k = FK_TEST;
   6804     esi = POP32_VAL(esp); /* 0x4100D660: pop esi */
   6805     ebp = POP32_VAL(esp); /* 0x4100D661: pop ebp */
   6806     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4100D662: ret 0xc */
   6807 L_4100D665:
   6808     edx = MEM32(esi + 0x4); /* 0x4100D665: mov edx, dword ptr [esi + 4] */
   6809     eax = MEM32(ebp + 0x10); /* 0x4100D668: mov eax, dword ptr [ebp + 0x10] */
   6810     ecx = MEM32(ebp + 0xC); /* 0x4100D66B: mov ecx, dword ptr [ebp + 0xc] */
   6811     PUSH32(esp, edx); /* 0x4100D66E: push edx */
   6812     PUSH32(esp, eax); /* 0x4100D66F: push eax */
   6813     PUSH32(esp, 1); /* 0x4100D670: push 1 */
   6814     PUSH32(esp, ecx); /* 0x4100D672: push ecx */
   6815     RECOMP_ICALL(MEM32(0x4100F0A8)); /* 0x4100D673: call dword ptr [0x4100f0a8] */
   6816     RECOMP_FLAGS_IN();
   6817     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6818     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6819     esp = esp + 0x10u; /* 0x4100D679: add esp, 0x10 */
   6820     _flag_k = FK_ADD;
   6821     esi = POP32_VAL(esp); /* 0x4100D67C: pop esi */
   6822     ebp = POP32_VAL(esp); /* 0x4100D67D: pop ebp */
   6823     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4100D67E: ret 0xc */
   6824     RECOMP_REGS_OUT();
   6825 }
   6826 
   6827 void sub_4100D690(void) {
   6828     int _fpu_cmp = 0;
   6829     uint32_t _cf = 0;
   6830     int _df = 1;
   6831     uint32_t _flag_k = FK_NONE;
   6832     uint32_t _flag_a = 0, _flag_b = 0;
   6833     uint32_t _itail_tgt = 0;
   6834     RECOMP_REGS_LOCALS
   6835     RECOMP_ENTER(0x4100D690u);
   6836 
   6837 L_4100D690:
   6838     PUSH32(esp, esi); /* 0x4100D690: push esi */
   6839     esi = ecx; /* 0x4100D691: mov esi, ecx */
   6840     RECOMP_ICALL(0x4100D280u); /* 0x4100D693: call 0x4100d280 */ /* not lifted */
   6841     RECOMP_FLAGS_IN();
   6842     /* test LO8(eax), LO8(eax) */ /* 0x4100D698: test al, al */
   6843     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6844     _cf = 0;
   6845     _flag_k = FK_NARROW(FK_TEST, 24);
   6846     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100D6A1; /* 0x4100D69A: jne 0x4100d6a1 */
   6847 L_4100D69C:
   6848     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   6849     eax = eax | 0xFFFFFFFFu; /* 0x4100D69C: or eax, 0xffffffff */
   6850     _cf = 0;
   6851     _flag_k = FK_TEST;
   6852     esi = POP32_VAL(esp); /* 0x4100D69F: pop esi */
   6853     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100D6A0: ret  */
   6854 L_4100D6A1:
   6855     eax = MEM32(esi + 0x4); /* 0x4100D6A1: mov eax, dword ptr [esi + 4] */
   6856     PUSH32(esp, eax); /* 0x4100D6A4: push eax */
   6857     RECOMP_ICALL(MEM32(0x4100F0AC)); /* 0x4100D6A5: call dword ptr [0x4100f0ac] */
   6858     RECOMP_FLAGS_IN();
   6859     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6860     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6861     esp = esp + 4; /* 0x4100D6AB: add esp, 4 */
   6862     _flag_k = FK_ADD;
   6863     esi = POP32_VAL(esp); /* 0x4100D6AE: pop esi */
   6864     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100D6AF: ret  */
   6865     RECOMP_REGS_OUT();
   6866 }
   6867 
   6868 void sub_4100D6B0(void) {
   6869     int _fpu_cmp = 0;
   6870     uint32_t _cf = 0;
   6871     int _df = 1;
   6872     uint32_t _flag_k = FK_NONE;
   6873     uint32_t _flag_a = 0, _flag_b = 0;
   6874     uint32_t _itail_tgt = 0;
   6875     RECOMP_REGS_LOCALS
   6876     RECOMP_ENTER(0x4100D6B0u);
   6877 
   6878 L_4100D6B0:
   6879     PUSH32(esp, ebp); /* 0x4100D6B0: push ebp */
   6880     ebp = esp; /* 0x4100D6B1: mov ebp, esp */
   6881     PUSH32(esp, esi); /* 0x4100D6B3: push esi */
   6882     esi = ecx; /* 0x4100D6B4: mov esi, ecx */
   6883     RECOMP_ICALL(0x4100D280u); /* 0x4100D6B6: call 0x4100d280 */ /* not lifted */
   6884     RECOMP_FLAGS_IN();
   6885     /* test LO8(eax), LO8(eax) */ /* 0x4100D6BB: test al, al */
   6886     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6887     _cf = 0;
   6888     _flag_k = FK_NARROW(FK_TEST, 24);
   6889     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100D6C7; /* 0x4100D6BD: jne 0x4100d6c7 */
   6890 L_4100D6BF:
   6891     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   6892     eax = eax | 0xFFFFFFFFu; /* 0x4100D6BF: or eax, 0xffffffff */
   6893     _cf = 0;
   6894     _flag_k = FK_TEST;
   6895     esi = POP32_VAL(esp); /* 0x4100D6C2: pop esi */
   6896     ebp = POP32_VAL(esp); /* 0x4100D6C3: pop ebp */
   6897     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4100D6C4: ret 8 */
   6898 L_4100D6C7:
   6899     eax = MEM32(ebp + 0xC); /* 0x4100D6C7: mov eax, dword ptr [ebp + 0xc] */
   6900     ecx = MEM32(ebp + 0x8); /* 0x4100D6CA: mov ecx, dword ptr [ebp + 8] */
   6901     edx = MEM32(esi + 0x4); /* 0x4100D6CD: mov edx, dword ptr [esi + 4] */
   6902     PUSH32(esp, eax); /* 0x4100D6D0: push eax */
   6903     PUSH32(esp, ecx); /* 0x4100D6D1: push ecx */
   6904     PUSH32(esp, edx); /* 0x4100D6D2: push edx */
   6905     RECOMP_ICALL(MEM32(0x4100F0A4)); /* 0x4100D6D3: call dword ptr [0x4100f0a4] */
   6906     RECOMP_FLAGS_IN();
   6907     eax = MEM32(esi + 0x4); /* 0x4100D6D9: mov eax, dword ptr [esi + 4] */
   6908     PUSH32(esp, eax); /* 0x4100D6DC: push eax */
   6909     RECOMP_ICALL(MEM32(0x4100F0AC)); /* 0x4100D6DD: call dword ptr [0x4100f0ac] */
   6910     RECOMP_FLAGS_IN();
   6911     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6912     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6913     esp = esp + 0x10u; /* 0x4100D6E3: add esp, 0x10 */
   6914     _flag_k = FK_ADD;
   6915     esi = POP32_VAL(esp); /* 0x4100D6E6: pop esi */
   6916     ebp = POP32_VAL(esp); /* 0x4100D6E7: pop ebp */
   6917     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4100D6E8: ret 8 */
   6918     RECOMP_REGS_OUT();
   6919 }
   6920 
   6921 void sub_4100D6F0(void) {
   6922     int _fpu_cmp = 0;
   6923     uint32_t _cf = 0;
   6924     int _df = 1;
   6925     uint32_t _flag_k = FK_NONE;
   6926     uint32_t _flag_a = 0, _flag_b = 0;
   6927     uint32_t _itail_tgt = 0;
   6928     RECOMP_REGS_LOCALS
   6929     RECOMP_ENTER(0x4100D6F0u);
   6930 
   6931 L_4100D6F0:
   6932     PUSH32(esp, esi); /* 0x4100D6F0: push esi */
   6933     esi = ecx; /* 0x4100D6F1: mov esi, ecx */
   6934     RECOMP_ICALL(0x4100D280u); /* 0x4100D6F3: call 0x4100d280 */ /* not lifted */
   6935     RECOMP_FLAGS_IN();
   6936     /* test LO8(eax), LO8(eax) */ /* 0x4100D6F8: test al, al */
   6937     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6938     _cf = 0;
   6939     _flag_k = FK_NARROW(FK_TEST, 24);
   6940     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100D701; /* 0x4100D6FA: jne 0x4100d701 */
   6941 L_4100D6FC:
   6942     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   6943     eax = eax | 0xFFFFFFFFu; /* 0x4100D6FC: or eax, 0xffffffff */
   6944     _cf = 0;
   6945     _flag_k = FK_TEST;
   6946     esi = POP32_VAL(esp); /* 0x4100D6FF: pop esi */
   6947     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100D700: ret  */
   6948 L_4100D701:
   6949     eax = MEM32(esi + 0x4); /* 0x4100D701: mov eax, dword ptr [esi + 4] */
   6950     PUSH32(esp, ebx); /* 0x4100D704: push ebx */
   6951     PUSH32(esp, edi); /* 0x4100D705: push edi */
   6952     edi = MEM32(0x4100F0AC); /* 0x4100D706: mov edi, dword ptr [0x4100f0ac] */
   6953     PUSH32(esp, eax); /* 0x4100D70C: push eax */
   6954     RECOMP_ICALL(edi); /* 0x4100D70D: call edi */
   6955     RECOMP_FLAGS_IN();
   6956     ecx = MEM32(esi + 0x4); /* 0x4100D70F: mov ecx, dword ptr [esi + 4] */
   6957     PUSH32(esp, 2); /* 0x4100D712: push 2 */
   6958     PUSH32(esp, 0); /* 0x4100D714: push 0 */
   6959     PUSH32(esp, ecx); /* 0x4100D716: push ecx */
   6960     ebx = eax; /* 0x4100D717: mov ebx, eax */
   6961     RECOMP_ICALL(MEM32(0x4100F0A4)); /* 0x4100D719: call dword ptr [0x4100f0a4] */
   6962     RECOMP_FLAGS_IN();
   6963     edx = MEM32(esi + 0x4); /* 0x4100D71F: mov edx, dword ptr [esi + 4] */
   6964     PUSH32(esp, edx); /* 0x4100D722: push edx */
   6965     RECOMP_ICALL(edi); /* 0x4100D723: call edi */
   6966     RECOMP_FLAGS_IN();
   6967     PUSH32(esp, 0); /* 0x4100D725: push 0 */
   6968     edi = eax; /* 0x4100D727: mov edi, eax */
   6969     eax = MEM32(esi + 0x4); /* 0x4100D729: mov eax, dword ptr [esi + 4] */
   6970     PUSH32(esp, ebx); /* 0x4100D72C: push ebx */
   6971     PUSH32(esp, eax); /* 0x4100D72D: push eax */
   6972     RECOMP_ICALL(MEM32(0x4100F0A4)); /* 0x4100D72E: call dword ptr [0x4100f0a4] */
   6973     RECOMP_FLAGS_IN();
   6974     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
   6975     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6976     esp = esp + 0x20u; /* 0x4100D734: add esp, 0x20 */
   6977     _flag_k = FK_ADD;
   6978     eax = edi; /* 0x4100D737: mov eax, edi */
   6979     edi = POP32_VAL(esp); /* 0x4100D739: pop edi */
   6980     ebx = POP32_VAL(esp); /* 0x4100D73A: pop ebx */
   6981     esi = POP32_VAL(esp); /* 0x4100D73B: pop esi */
   6982     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100D73C: ret  */
   6983     RECOMP_REGS_OUT();
   6984 }
   6985 
   6986 void sub_4100D740(void) {
   6987     int _fpu_cmp = 0;
   6988     uint32_t _cf = 0;
   6989     int _df = 1;
   6990     uint32_t _flag_k = FK_NONE;
   6991     uint32_t _flag_a = 0, _flag_b = 0;
   6992     uint32_t _itail_tgt = 0;
   6993     RECOMP_REGS_LOCALS
   6994     RECOMP_ENTER(0x4100D740u);
   6995 
   6996 L_4100D740:
   6997     PUSH32(esp, ebp); /* 0x4100D740: push ebp */
   6998     ebp = esp; /* 0x4100D741: mov ebp, esp */
   6999     PUSH32(esp, 0xFFFFFFFFu); /* 0x4100D743: push -1 */
   7000     PUSH32(esp, 0x4100E992u); /* 0x4100D745: push 0x4100e992 */
   7001     eax = MEM32(FS_BASE + (0)); /* 0x4100D74A: mov eax, dword ptr fs:[0] */
   7002     PUSH32(esp, eax); /* 0x4100D750: push eax */
   7003     MEM32(FS_BASE + (0)) = esp; /* 0x4100D751: mov dword ptr fs:[0], esp */
   7004     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u);
   7005     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7006     esp = esp - 0x34u; /* 0x4100D758: sub esp, 0x34 */
   7007     _flag_k = FK_CMP;
   7008     RECOMP_ICALL(0x4100D280u); /* 0x4100D75B: call 0x4100d280 */ /* not lifted */
   7009     RECOMP_FLAGS_IN();
   7010     /* test LO8(eax), LO8(eax) */ /* 0x4100D760: test al, al */
   7011     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7012     _cf = 0;
   7013     _flag_k = FK_NARROW(FK_TEST, 24);
   7014     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100D775; /* 0x4100D762: jne 0x4100d775 */
   7015 L_4100D764:
   7016     ecx = MEM32(ebp + (-0xC)); /* 0x4100D764: mov ecx, dword ptr [ebp - 0xc] */
   7017     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   7018     eax = eax | 0xFFFFFFFFu; /* 0x4100D767: or eax, 0xffffffff */
   7019     _cf = 0;
   7020     _flag_k = FK_TEST;
   7021     MEM32(FS_BASE + (0)) = ecx; /* 0x4100D76A: mov dword ptr fs:[0], ecx */
   7022     esp = ebp; /* 0x4100D771: mov esp, ebp */
   7023     ebp = POP32_VAL(esp); /* 0x4100D773: pop ebp */
   7024     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100D774: ret  */
   7025 L_4100D775:
   7026     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x4100D775: mov al, byte ptr [ebp - 0xd] */
   7027     PUSH32(esp, ebx); /* 0x4100D778: push ebx */
   7028     PUSH32(esp, esi); /* 0x4100D779: push esi */
   7029     PUSH32(esp, edi); /* 0x4100D77A: push edi */
   7030     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   7031     ecx = ecx | 0xFFFFFFFFu; /* 0x4100D77B: or ecx, 0xffffffff */
   7032     _cf = 0;
   7033     _flag_k = FK_TEST;
   7034     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7035     esi = 0; /* 0x4100D77E: xor esi, esi */
   7036     _cf = 0;
   7037     _flag_k = FK_TEST;
   7038     MEM8(ebp + (-0x24)) = (uint8_t)(LO8(eax)); /* 0x4100D780: mov byte ptr [ebp - 0x24], al */
   7039     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7040     eax = 0; /* 0x4100D783: xor eax, eax */
   7041     _cf = 0;
   7042     _flag_k = FK_TEST;
   7043     edi = 0x41014604u; /* 0x4100D785: mov edi, 0x41014604 */
   7044     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x4100D78A: repne scasb al, byte ptr es:[edi] */
   7045     ecx = ~ecx; /* 0x4100D78C: not ecx */
   7046     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   7047     ecx = ecx - 1; /* 0x4100D78E: dec ecx */
   7048     _flag_k = FK_DEC;
   7049     ebx = ecx; /* 0x4100D78F: mov ebx, ecx */
   7050     PUSH32(esp, 1); /* 0x4100D791: push 1 */
   7051     PUSH32(esp, ebx); /* 0x4100D793: push ebx */
   7052     ecx = ebp + (-0x24); /* 0x4100D794: lea ecx, [ebp - 0x24] */
   7053     MEM32(ebp + (-0x20)) = esi; /* 0x4100D797: mov dword ptr [ebp - 0x20], esi */
   7054     MEM32(ebp + (-0x1C)) = esi; /* 0x4100D79A: mov dword ptr [ebp - 0x1c], esi */
   7055     MEM32(ebp + (-0x18)) = esi; /* 0x4100D79D: mov dword ptr [ebp - 0x18], esi */
   7056     RECOMP_ICALL(MEM32(0x4100F02C)); /* 0x4100D7A0: call dword ptr [0x4100f02c] */
   7057     RECOMP_FLAGS_IN();
   7058     /* test LO8(eax), LO8(eax) */ /* 0x4100D7A6: test al, al */
   7059     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7060     _cf = 0;
   7061     _flag_k = FK_NARROW(FK_TEST, 24);
   7062     if (TEST_Z(_flag_a, _flag_b)) goto L_4100D7CE; /* 0x4100D7A8: je 0x4100d7ce */
   7063 L_4100D7AA:
   7064     edi = MEM32(ebp + (-0x20)); /* 0x4100D7AA: mov edi, dword ptr [ebp - 0x20] */
   7065     ecx = ebx; /* 0x4100D7AD: mov ecx, ebx */
   7066     edx = ecx; /* 0x4100D7AF: mov edx, ecx */
   7067     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4100D7B1: shr ecx, 2 */
   7068     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7069     ecx = ecx >> 2u; /* 0x4100D7B1: shr ecx, 2 */
   7070     esi = 0x41014604u; /* 0x4100D7B4: mov esi, 0x41014604 */
   7071     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4100D7B9: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   7072     ecx = edx; /* 0x4100D7BB: mov ecx, edx */
   7073     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   7074     ecx = ecx & 3; /* 0x4100D7BD: and ecx, 3 */
   7075     _cf = 0;
   7076     _flag_k = FK_TEST;
   7077     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4100D7C0: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   7078     eax = MEM32(ebp + (-0x20)); /* 0x4100D7C2: mov eax, dword ptr [ebp - 0x20] */
   7079     MEM32(ebp + (-0x1C)) = ebx; /* 0x4100D7C5: mov dword ptr [ebp - 0x1c], ebx */
   7080     MEM8(ebx + eax) = (uint8_t)(0); /* 0x4100D7C8: mov byte ptr [ebx + eax], 0 */
   7081     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7082     esi = 0; /* 0x4100D7CC: xor esi, esi */
   7083     _cf = 0;
   7084     _flag_k = FK_TEST;
   7085 L_4100D7CE:
   7086     ecx = ebp + (-0x14); /* 0x4100D7CE: lea ecx, [ebp - 0x14] */
   7087     PUSH32(esp, ecx); /* 0x4100D7D1: push ecx */
   7088     ecx = ebp + (-0x40); /* 0x4100D7D2: lea ecx, [ebp - 0x40] */
   7089     MEM32(ebp + (-0x4)) = esi; /* 0x4100D7D5: mov dword ptr [ebp - 4], esi */
   7090     MEM32(ebp + (-0x14)) = 0x41014650u; /* 0x4100D7D8: mov dword ptr [ebp - 0x14], 0x41014650 */
   7091     RECOMP_ICALL(MEM32(0x4100F09C)); /* 0x4100D7DF: call dword ptr [0x4100f09c] */
   7092     RECOMP_FLAGS_IN();
   7093     SET_LO8(edx, MEM8(ebp + (-0x24))); /* 0x4100D7E5: mov dl, byte ptr [ebp - 0x24] */
   7094     PUSH32(esp, esi); /* 0x4100D7E8: push esi */
   7095     ecx = ebp + (-0x34); /* 0x4100D7E9: lea ecx, [ebp - 0x34] */
   7096     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x4100D7EC: mov byte ptr [ebp - 4], 1 */
   7097     MEM8(ebp + (-0x34)) = (uint8_t)(LO8(edx)); /* 0x4100D7F0: mov byte ptr [ebp - 0x34], dl */
   7098     RECOMP_ICALL(MEM32(0x4100F05C)); /* 0x4100D7F3: call dword ptr [0x4100f05c] */
   7099     RECOMP_FLAGS_IN();
   7100     eax = MEM32(0x4100F024); /* 0x4100D7F9: mov eax, dword ptr [0x4100f024] */
   7101     ecx = MEM32(eax); /* 0x4100D7FE: mov ecx, dword ptr [eax] */
   7102     PUSH32(esp, ecx); /* 0x4100D800: push ecx */
   7103     PUSH32(esp, esi); /* 0x4100D801: push esi */
   7104     edx = ebp + (-0x24); /* 0x4100D802: lea edx, [ebp - 0x24] */
   7105     PUSH32(esp, edx); /* 0x4100D805: push edx */
   7106     ecx = ebp + (-0x34); /* 0x4100D806: lea ecx, [ebp - 0x34] */
   7107     RECOMP_ICALL(MEM32(0x4100F074)); /* 0x4100D809: call dword ptr [0x4100f074] */
   7108     RECOMP_FLAGS_IN();
   7109     PUSH32(esp, 0x410109A8u); /* 0x4100D80F: push 0x410109a8 */
   7110     eax = ebp + (-0x40); /* 0x4100D814: lea eax, [ebp - 0x40] */
   7111     PUSH32(esp, eax); /* 0x4100D817: push eax */
   7112     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x4100D818: mov byte ptr [ebp - 4], 0 */
   7113     MEM32(ebp + (-0x40)) = 0x4100F2D4u; /* 0x4100D81C: mov dword ptr [ebp - 0x40], 0x4100f2d4 */
   7114     RECOMP_ICALL(0x4100DD1Eu); /* 0x4100D823: call 0x4100dd1e */ /* not lifted */
   7115     RECOMP_FLAGS_IN();
   7116     edi = POP32_VAL(esp); /* 0x4100D828: pop edi */
   7117     esi = POP32_VAL(esp); /* 0x4100D829: pop esi */
   7118     ebx = POP32_VAL(esp); /* 0x4100D82A: pop ebx */
   7119     /* nop */ /* 0x4100D82B: nop  */
   7120     /* nop */ /* 0x4100D82C: nop  */
   7121     /* nop */ /* 0x4100D82D: nop  */
   7122     /* nop */ /* 0x4100D82E: nop  */
   7123     /* nop */ /* 0x4100D82F: nop  */
   7124     PUSH32(esp, ebp); /* 0x4100D830: push ebp */
   7125     ebp = esp; /* 0x4100D831: mov ebp, esp */
   7126     eax = MEM32(ebp + 0xC); /* 0x4100D833: mov eax, dword ptr [ebp + 0xc] */
   7127     PUSH32(esp, esi); /* 0x4100D836: push esi */
   7128     esi = ecx; /* 0x4100D837: mov esi, ecx */
   7129     ecx = MEM32(ebp + 0x8); /* 0x4100D839: mov ecx, dword ptr [ebp + 8] */
   7130     PUSH32(esp, eax); /* 0x4100D83C: push eax */
   7131     PUSH32(esp, ecx); /* 0x4100D83D: push ecx */
   7132     RECOMP_ICALL(MEM32(0x4100F100)); /* 0x4100D83E: call dword ptr [0x4100f100] */
   7133     RECOMP_FLAGS_IN();
   7134     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7135     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7136     esp = esp + 8; /* 0x4100D844: add esp, 8 */
   7137     _flag_k = FK_ADD;
   7138     MEM32(esi + 0x4) = eax; /* 0x4100D847: mov dword ptr [esi + 4], eax */
   7139     esi = POP32_VAL(esp); /* 0x4100D84A: pop esi */
   7140     ebp = POP32_VAL(esp); /* 0x4100D84B: pop ebp */
   7141     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4100D84C: ret 8 */
   7142     RECOMP_REGS_OUT();
   7143 }
   7144 
   7145 void sub_4100D830(void) {
   7146     int _fpu_cmp = 0;
   7147     uint32_t _cf = 0;
   7148     int _df = 1;
   7149     uint32_t _flag_k = FK_NONE;
   7150     uint32_t _flag_a = 0, _flag_b = 0;
   7151     uint32_t _itail_tgt = 0;
   7152     RECOMP_REGS_LOCALS
   7153     RECOMP_ENTER(0x4100D830u);
   7154 
   7155 L_4100D830:
   7156     PUSH32(esp, ebp); /* 0x4100D830: push ebp */
   7157     ebp = esp; /* 0x4100D831: mov ebp, esp */
   7158     eax = MEM32(ebp + 0xC); /* 0x4100D833: mov eax, dword ptr [ebp + 0xc] */
   7159     PUSH32(esp, esi); /* 0x4100D836: push esi */
   7160     esi = ecx; /* 0x4100D837: mov esi, ecx */
   7161     ecx = MEM32(ebp + 0x8); /* 0x4100D839: mov ecx, dword ptr [ebp + 8] */
   7162     PUSH32(esp, eax); /* 0x4100D83C: push eax */
   7163     PUSH32(esp, ecx); /* 0x4100D83D: push ecx */
   7164     RECOMP_ICALL(MEM32(0x4100F100)); /* 0x4100D83E: call dword ptr [0x4100f100] */
   7165     RECOMP_FLAGS_IN();
   7166     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7167     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7168     esp = esp + 8; /* 0x4100D844: add esp, 8 */
   7169     _flag_k = FK_ADD;
   7170     MEM32(esi + 0x4) = eax; /* 0x4100D847: mov dword ptr [esi + 4], eax */
   7171     esi = POP32_VAL(esp); /* 0x4100D84A: pop esi */
   7172     ebp = POP32_VAL(esp); /* 0x4100D84B: pop ebp */
   7173     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4100D84C: ret 8 */
   7174     RECOMP_REGS_OUT();
   7175 }
   7176 
   7177 void sub_4100D850(void) {
   7178     int _fpu_cmp = 0;
   7179     uint32_t _cf = 0;
   7180     int _df = 1;
   7181     uint32_t _flag_k = FK_NONE;
   7182     uint32_t _flag_a = 0, _flag_b = 0;
   7183     uint32_t _itail_tgt = 0;
   7184     RECOMP_REGS_LOCALS
   7185     RECOMP_ENTER(0x4100D850u);
   7186 
   7187 L_4100D850:
   7188     eax = MEM32(ecx + 0x4); /* 0x4100D850: mov eax, dword ptr [ecx + 4] */
   7189     PUSH32(esp, eax); /* 0x4100D853: push eax */
   7190     RECOMP_ICALL(MEM32(0x4100F0F8)); /* 0x4100D854: call dword ptr [0x4100f0f8] */
   7191     RECOMP_FLAGS_IN();
   7192     ecx = POP32_VAL(esp); /* 0x4100D85A: pop ecx */
   7193     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100D85B: ret  */
   7194     RECOMP_REGS_OUT();
   7195 }
   7196 
   7197 void sub_4100D860(void) {
   7198     int _fpu_cmp = 0;
   7199     uint32_t _cf = 0;
   7200     int _df = 1;
   7201     uint32_t _flag_k = FK_NONE;
   7202     uint32_t _flag_a = 0, _flag_b = 0;
   7203     uint32_t _itail_tgt = 0;
   7204     RECOMP_REGS_LOCALS
   7205     RECOMP_ENTER(0x4100D860u);
   7206 
   7207 L_4100D860:
   7208     PUSH32(esp, ebp); /* 0x4100D860: push ebp */
   7209     ebp = esp; /* 0x4100D861: mov ebp, esp */
   7210     PUSH32(esp, 0xFFFFFFFFu); /* 0x4100D863: push -1 */
   7211     PUSH32(esp, 0x4100E9A9u); /* 0x4100D865: push 0x4100e9a9 */
   7212     eax = MEM32(FS_BASE + (0)); /* 0x4100D86A: mov eax, dword ptr fs:[0] */
   7213     PUSH32(esp, eax); /* 0x4100D870: push eax */
   7214     MEM32(FS_BASE + (0)) = esp; /* 0x4100D871: mov dword ptr fs:[0], esp */
   7215     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   7216     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7217     esp = esp - 0x14u; /* 0x4100D878: sub esp, 0x14 */
   7218     _flag_k = FK_CMP;
   7219     PUSH32(esp, ebx); /* 0x4100D87B: push ebx */
   7220     PUSH32(esp, esi); /* 0x4100D87C: push esi */
   7221     esi = ecx; /* 0x4100D87D: mov esi, ecx */
   7222     eax = MEM32(esi); /* 0x4100D87F: mov eax, dword ptr [esi] */
   7223     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7224     ebx = 0; /* 0x4100D881: xor ebx, ebx */
   7225     _cf = 0;
   7226     _flag_k = FK_TEST;
   7227     PUSH32(esp, edi); /* 0x4100D883: push edi */
   7228     MEM32(ebp + (-0x10)) = ebx; /* 0x4100D884: mov dword ptr [ebp - 0x10], ebx */
   7229     RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x4100D887: call dword ptr [eax + 0x14] */
   7230     RECOMP_FLAGS_IN();
   7231     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x4100D88A: mov cl, byte ptr [ebp + 0xb] */
   7232     edi = eax; /* 0x4100D88D: mov edi, eax */
   7233     PUSH32(esp, 0x20u); /* 0x4100D88F: push 0x20 */
   7234     MEM8(ebp + (-0x20)) = (uint8_t)(LO8(ecx)); /* 0x4100D891: mov byte ptr [ebp - 0x20], cl */
   7235     PUSH32(esp, edi); /* 0x4100D894: push edi */
   7236     ecx = ebp + (-0x20); /* 0x4100D895: lea ecx, [ebp - 0x20] */
   7237     MEM32(ebp + (-0x1C)) = ebx; /* 0x4100D898: mov dword ptr [ebp - 0x1c], ebx */
   7238     MEM32(ebp + (-0x18)) = ebx; /* 0x4100D89B: mov dword ptr [ebp - 0x18], ebx */
   7239     MEM32(ebp + (-0x14)) = ebx; /* 0x4100D89E: mov dword ptr [ebp - 0x14], ebx */
   7240     RECOMP_ICALL(MEM32(0x4100F034)); /* 0x4100D8A1: call dword ptr [0x4100f034] */
   7241     RECOMP_FLAGS_IN();
   7242     /* cmp edi, ebx */ /* 0x4100D8A7: cmp edi, ebx */
   7243     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   7244     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7245     _flag_k = FK_CMP;
   7246     MEM32(ebp + (-0x4)) = ebx; /* 0x4100D8A9: mov dword ptr [ebp - 4], ebx */
   7247     if (CMP_BE(_flag_a, _flag_b)) goto L_4100D8E6; /* 0x4100D8AC: jbe 0x4100d8e6 */
   7248 L_4100D8AE:
   7249     eax = MEM32(ebp + (-0x1C)); /* 0x4100D8AE: mov eax, dword ptr [ebp - 0x1c] */
   7250     /* cmp eax, ebx */ /* 0x4100D8B1: cmp eax, ebx */
   7251     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   7252     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7253     _flag_k = FK_CMP;
   7254     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100D8DD; /* 0x4100D8B3: je 0x4100d8dd */
   7255 L_4100D8B5:
   7256     SET_LO8(ecx, MEM8(eax + (-0x1))); /* 0x4100D8B5: mov cl, byte ptr [eax - 1] */
   7257     /* cmp LO8(ecx), LO8(ebx) */ /* 0x4100D8B8: cmp cl, bl */
   7258     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7259     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7260     _flag_k = FK_NARROW(FK_CMP, 24);
   7261     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100D8D2; /* 0x4100D8BA: je 0x4100d8d2 */
   7262 L_4100D8BC:
   7263     /* cmp LO8(ecx), 0xFFu */ /* 0x4100D8BC: cmp cl, 0xff */
   7264     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   7265     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7266     _flag_k = FK_NARROW(FK_CMP, 24);
   7267     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100D8D2; /* 0x4100D8BF: je 0x4100d8d2 */
   7268 L_4100D8C1:
   7269     edx = MEM32(ebp + (-0x18)); /* 0x4100D8C1: mov edx, dword ptr [ebp - 0x18] */
   7270     PUSH32(esp, ebx); /* 0x4100D8C4: push ebx */
   7271     PUSH32(esp, edx); /* 0x4100D8C5: push edx */
   7272     ecx = ebp + (-0x20); /* 0x4100D8C6: lea ecx, [ebp - 0x20] */
   7273     RECOMP_ICALL(MEM32(0x4100F02C)); /* 0x4100D8C9: call dword ptr [0x4100f02c] */
   7274     RECOMP_FLAGS_IN();
   7275     eax = MEM32(ebp + (-0x1C)); /* 0x4100D8CF: mov eax, dword ptr [ebp - 0x1c] */
   7276 L_4100D8D2:
   7277     /* cmp eax, ebx */ /* 0x4100D8D2: cmp eax, ebx */
   7278     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   7279     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7280     _flag_k = FK_CMP;
   7281     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100D8DD; /* 0x4100D8D4: je 0x4100d8dd */
   7282 L_4100D8D6:
   7283     MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x4100D8D6: mov byte ptr [eax - 1], 0xff */
   7284     eax = MEM32(ebp + (-0x1C)); /* 0x4100D8DA: mov eax, dword ptr [ebp - 0x1c] */
   7285 L_4100D8DD:
   7286     edx = MEM32(esi); /* 0x4100D8DD: mov edx, dword ptr [esi] */
   7287     PUSH32(esp, edi); /* 0x4100D8DF: push edi */
   7288     PUSH32(esp, eax); /* 0x4100D8E0: push eax */
   7289     ecx = esi; /* 0x4100D8E1: mov ecx, esi */
   7290     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4100D8E3: call dword ptr [edx + 0xc] */
   7291     RECOMP_FLAGS_IN();
   7292 L_4100D8E6:
   7293     esi = MEM32(ebp + 0x8); /* 0x4100D8E6: mov esi, dword ptr [ebp + 8] */
   7294     SET_LO8(eax, MEM8(ebp + (-0x20))); /* 0x4100D8E9: mov al, byte ptr [ebp - 0x20] */
   7295     MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x4100D8EC: mov byte ptr [esi], al */
   7296     MEM32(esi + 0x4) = ebx; /* 0x4100D8EE: mov dword ptr [esi + 4], ebx */
   7297     MEM32(esi + 0x8) = ebx; /* 0x4100D8F1: mov dword ptr [esi + 8], ebx */
   7298     MEM32(esi + 0xC) = ebx; /* 0x4100D8F4: mov dword ptr [esi + 0xc], ebx */
   7299     ecx = MEM32(0x4100F024); /* 0x4100D8F7: mov ecx, dword ptr [0x4100f024] */
   7300     edx = MEM32(ecx); /* 0x4100D8FD: mov edx, dword ptr [ecx] */
   7301     PUSH32(esp, edx); /* 0x4100D8FF: push edx */
   7302     PUSH32(esp, ebx); /* 0x4100D900: push ebx */
   7303     eax = ebp + (-0x20); /* 0x4100D901: lea eax, [ebp - 0x20] */
   7304     PUSH32(esp, eax); /* 0x4100D904: push eax */
   7305     ecx = esi; /* 0x4100D905: mov ecx, esi */
   7306     RECOMP_ICALL(MEM32(0x4100F074)); /* 0x4100D907: call dword ptr [0x4100f074] */
   7307     RECOMP_FLAGS_IN();
   7308     ecx = MEM32(ebp + (-0x1C)); /* 0x4100D90D: mov ecx, dword ptr [ebp - 0x1c] */
   7309     /* cmp ecx, ebx */ /* 0x4100D910: cmp ecx, ebx */
   7310     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   7311     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7312     _flag_k = FK_CMP;
   7313     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100D930; /* 0x4100D912: je 0x4100d930 */
   7314 L_4100D914:
   7315     SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x4100D914: mov al, byte ptr [ecx - 1] */
   7316     /* cmp LO8(eax), LO8(ebx) */ /* 0x4100D917: cmp al, bl */
   7317     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7318     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7319     _flag_k = FK_NARROW(FK_CMP, 24);
   7320     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100D926; /* 0x4100D919: je 0x4100d926 */
   7321 L_4100D91B:
   7322     /* cmp LO8(eax), 0xFFu */ /* 0x4100D91B: cmp al, 0xff */
   7323     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   7324     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7325     _flag_k = FK_NARROW(FK_CMP, 24);
   7326     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100D926; /* 0x4100D91D: je 0x4100d926 */
   7327 L_4100D91F:
   7328     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7329     SET_LO8(eax, LO8(eax) - 1); /* 0x4100D91F: dec al */
   7330     _flag_k = FK_NARROW(FK_DEC, 24);
   7331     MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x4100D921: mov byte ptr [ecx - 1], al */
   7332     goto L_4100D930; /* 0x4100D924: jmp 0x4100d930 */
   7333 L_4100D926:
   7334     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   7335     ecx = ecx - 1; /* 0x4100D926: dec ecx */
   7336     _flag_k = FK_DEC;
   7337     PUSH32(esp, ecx); /* 0x4100D927: push ecx */
   7338     RECOMP_ICALL(0x4100DB20u); /* 0x4100D928: call 0x4100db20 */ /* not lifted */
   7339     RECOMP_FLAGS_IN();
   7340     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7341     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7342     esp = esp + 4; /* 0x4100D92D: add esp, 4 */
   7343     _flag_k = FK_ADD;
   7344 L_4100D930:
   7345     ecx = MEM32(ebp + (-0xC)); /* 0x4100D930: mov ecx, dword ptr [ebp - 0xc] */
   7346     edi = POP32_VAL(esp); /* 0x4100D933: pop edi */
   7347     eax = esi; /* 0x4100D934: mov eax, esi */
   7348     esi = POP32_VAL(esp); /* 0x4100D936: pop esi */
   7349     ebx = POP32_VAL(esp); /* 0x4100D937: pop ebx */
   7350     MEM32(FS_BASE + (0)) = ecx; /* 0x4100D938: mov dword ptr fs:[0], ecx */
   7351     esp = ebp; /* 0x4100D93F: mov esp, ebp */
   7352     ebp = POP32_VAL(esp); /* 0x4100D941: pop ebp */
   7353     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100D942: ret 4 */
   7354     RECOMP_REGS_OUT();
   7355 }
   7356 
   7357 void sub_4100D950(void) {
   7358     int _fpu_cmp = 0;
   7359     uint32_t _cf = 0;
   7360     int _df = 1;
   7361     uint32_t _flag_k = FK_NONE;
   7362     uint32_t _flag_a = 0, _flag_b = 0;
   7363     uint32_t _itail_tgt = 0;
   7364     RECOMP_REGS_LOCALS
   7365     RECOMP_ENTER(0x4100D950u);
   7366 
   7367 L_4100D950:
   7368     PUSH32(esp, ebp); /* 0x4100D950: push ebp */
   7369     ebp = esp; /* 0x4100D951: mov ebp, esp */
   7370     PUSH32(esp, esi); /* 0x4100D953: push esi */
   7371     PUSH32(esp, edi); /* 0x4100D954: push edi */
   7372     edi = MEM32(ebp + 0x8); /* 0x4100D955: mov edi, dword ptr [ebp + 8] */
   7373     esi = ecx; /* 0x4100D958: mov esi, ecx */
   7374     ecx = MEM32(edi + 0x8); /* 0x4100D95A: mov ecx, dword ptr [edi + 8] */
   7375     eax = MEM32(esi); /* 0x4100D95D: mov eax, dword ptr [esi] */
   7376     PUSH32(esp, ecx); /* 0x4100D95F: push ecx */
   7377     ecx = esi; /* 0x4100D960: mov ecx, esi */
   7378     RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x4100D962: call dword ptr [eax + 0x18] */
   7379     RECOMP_FLAGS_IN();
   7380     eax = MEM32(edi + 0x8); /* 0x4100D965: mov eax, dword ptr [edi + 8] */
   7381     /* test eax, eax */ /* 0x4100D968: test eax, eax */
   7382     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7383     _cf = 0;
   7384     _flag_k = FK_TEST;
   7385     if (TEST_Z(_flag_a, _flag_b)) goto L_4100D978; /* 0x4100D96A: jbe 0x4100d978 */
   7386 L_4100D96C:
   7387     edx = MEM32(esi); /* 0x4100D96C: mov edx, dword ptr [esi] */
   7388     PUSH32(esp, eax); /* 0x4100D96E: push eax */
   7389     eax = MEM32(edi + 0x4); /* 0x4100D96F: mov eax, dword ptr [edi + 4] */
   7390     PUSH32(esp, eax); /* 0x4100D972: push eax */
   7391     ecx = esi; /* 0x4100D973: mov ecx, esi */
   7392     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x4100D975: call dword ptr [edx + 0x10] */
   7393     RECOMP_FLAGS_IN();
   7394 L_4100D978:
   7395     edi = POP32_VAL(esp); /* 0x4100D978: pop edi */
   7396     esi = POP32_VAL(esp); /* 0x4100D979: pop esi */
   7397     ebp = POP32_VAL(esp); /* 0x4100D97A: pop ebp */
   7398     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100D97B: ret 4 */
   7399     RECOMP_REGS_OUT();
   7400 }
   7401 
   7402 void sub_4100D980(void) {
   7403     int _fpu_cmp = 0;
   7404     uint32_t _cf = 0;
   7405     int _df = 1;
   7406     uint32_t _flag_k = FK_NONE;
   7407     uint32_t _flag_a = 0, _flag_b = 0;
   7408     uint32_t _itail_tgt = 0;
   7409     RECOMP_REGS_LOCALS
   7410     RECOMP_ENTER(0x4100D980u);
   7411 
   7412 L_4100D980:
   7413     PUSH32(esp, ebx); /* 0x4100D980: push ebx */
   7414     PUSH32(esp, esi); /* 0x4100D981: push esi */
   7415     esi = ecx; /* 0x4100D982: mov esi, ecx */
   7416     eax = MEM32(esi); /* 0x4100D984: mov eax, dword ptr [esi] */
   7417     PUSH32(esp, edi); /* 0x4100D986: push edi */
   7418     RECOMP_ICALL(MEM32(eax + 0x44)); /* 0x4100D987: call dword ptr [eax + 0x44] */
   7419     RECOMP_FLAGS_IN();
   7420     edx = MEM32(esi); /* 0x4100D98A: mov edx, dword ptr [esi] */
   7421     PUSH32(esp, 2); /* 0x4100D98C: push 2 */
   7422     PUSH32(esp, 0); /* 0x4100D98E: push 0 */
   7423     ecx = esi; /* 0x4100D990: mov ecx, esi */
   7424     edi = eax; /* 0x4100D992: mov edi, eax */
   7425     RECOMP_ICALL(MEM32(edx + 0x48)); /* 0x4100D994: call dword ptr [edx + 0x48] */
   7426     RECOMP_FLAGS_IN();
   7427     eax = MEM32(esi); /* 0x4100D997: mov eax, dword ptr [esi] */
   7428     ecx = esi; /* 0x4100D999: mov ecx, esi */
   7429     RECOMP_ICALL(MEM32(eax + 0x44)); /* 0x4100D99B: call dword ptr [eax + 0x44] */
   7430     RECOMP_FLAGS_IN();
   7431     edx = MEM32(esi); /* 0x4100D99E: mov edx, dword ptr [esi] */
   7432     PUSH32(esp, 0); /* 0x4100D9A0: push 0 */
   7433     PUSH32(esp, edi); /* 0x4100D9A2: push edi */
   7434     ecx = esi; /* 0x4100D9A3: mov ecx, esi */
   7435     ebx = eax; /* 0x4100D9A5: mov ebx, eax */
   7436     RECOMP_ICALL(MEM32(edx + 0x48)); /* 0x4100D9A7: call dword ptr [edx + 0x48] */
   7437     RECOMP_FLAGS_IN();
   7438     edi = POP32_VAL(esp); /* 0x4100D9AA: pop edi */
   7439     esi = POP32_VAL(esp); /* 0x4100D9AB: pop esi */
   7440     eax = ebx; /* 0x4100D9AC: mov eax, ebx */
   7441     ebx = POP32_VAL(esp); /* 0x4100D9AE: pop ebx */
   7442     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100D9AF: ret  */
   7443     RECOMP_REGS_OUT();
   7444 }
   7445 
   7446 void sub_4100D9B0(void) {
   7447     int _fpu_cmp = 0;
   7448     uint32_t _cf = 0;
   7449     int _df = 1;
   7450     uint32_t _flag_k = FK_NONE;
   7451     uint32_t _flag_a = 0, _flag_b = 0;
   7452     uint32_t _itail_tgt = 0;
   7453     RECOMP_REGS_LOCALS
   7454     RECOMP_ENTER(0x4100D9B0u);
   7455 
   7456 L_4100D9B0:
   7457     { _itail_tgt = (uint32_t)(MEM32(0x4100F168)); goto _ljump; }
   7458     { RECOMP_REGS_OUT(); return; } /* end of function */
   7459   _ljump:
   7460     switch (_itail_tgt) {
   7461       case 0x4100D9B0u: goto L_4100D9B0;
   7462       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7463     }
   7464     RECOMP_REGS_OUT();
   7465 }
   7466 
   7467 void sub_4100D9B6(void) {
   7468     int _fpu_cmp = 0;
   7469     uint32_t _cf = 0;
   7470     int _df = 1;
   7471     uint32_t _flag_k = FK_NONE;
   7472     uint32_t _flag_a = 0, _flag_b = 0;
   7473     uint32_t _itail_tgt = 0;
   7474     RECOMP_REGS_LOCALS
   7475     RECOMP_ENTER(0x4100D9B6u);
   7476 
   7477 L_4100D9B6:
   7478     { _itail_tgt = (uint32_t)(MEM32(0x4100F1A4)); goto _ljump; }
   7479     { RECOMP_REGS_OUT(); return; } /* end of function */
   7480   _ljump:
   7481     switch (_itail_tgt) {
   7482       case 0x4100D9B6u: goto L_4100D9B6;
   7483       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7484     }
   7485     RECOMP_REGS_OUT();
   7486 }
   7487 
   7488 void sub_4100D9C0(void) {
   7489     int _fpu_cmp = 0;
   7490     uint32_t _cf = 0;
   7491     int _df = 1;
   7492     uint32_t _flag_k = FK_NONE;
   7493     uint32_t _flag_a = 0, _flag_b = 0;
   7494     uint32_t _itail_tgt = 0;
   7495     RECOMP_REGS_LOCALS
   7496     RECOMP_ENTER(0x4100D9C0u);
   7497 
   7498 L_4100D9C0:
   7499     PUSH32(esp, 0x4100D9D0u); /* 0x4100D9C0: push 0x4100d9d0 */
   7500     RECOMP_ICALL(0x4100DBB8u); /* 0x4100D9C5: call 0x4100dbb8 */ /* not lifted */
   7501     RECOMP_FLAGS_IN();
   7502     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7503     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7504     esp = esp + 4; /* 0x4100D9CA: add esp, 4 */
   7505     _flag_k = FK_ADD;
   7506     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7507     eax = 0; /* 0x4100D9CD: xor eax, eax */
   7508     _cf = 0;
   7509     _flag_k = FK_TEST;
   7510     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100D9CF: ret  */
   7511     RECOMP_REGS_OUT();
   7512 }
   7513 
   7514 void sub_4100D9D0(void) {
   7515     int _fpu_cmp = 0;
   7516     uint32_t _cf = 0;
   7517     int _df = 1;
   7518     uint32_t _flag_k = FK_NONE;
   7519     uint32_t _flag_a = 0, _flag_b = 0;
   7520     uint32_t _itail_tgt = 0;
   7521     RECOMP_REGS_LOCALS
   7522     RECOMP_ENTER(0x4100D9D0u);
   7523 
   7524     goto L_4100D9D0;
   7525 L_4100D9B6:
   7526     { _itail_tgt = (uint32_t)(MEM32(0x4100F1A4)); goto _ljump; }
   7527 L_4100D9D0:
   7528     RECOMP_BACKEDGE();
   7529     goto L_4100D9B6; /* 0x4100D9D0: jmp 0x4100d9b6 */
   7530     { RECOMP_REGS_OUT(); return; } /* end of function */
   7531   _ljump:
   7532     switch (_itail_tgt) {
   7533       case 0x4100D9B6u: goto L_4100D9B6;
   7534       case 0x4100D9D0u: goto L_4100D9D0;
   7535       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7536     }
   7537     RECOMP_REGS_OUT();
   7538 }
   7539 
   7540 void sub_4100D9E0(void) {
   7541     int _fpu_cmp = 0;
   7542     uint32_t _cf = 0;
   7543     int _df = 1;
   7544     uint32_t _flag_k = FK_NONE;
   7545     uint32_t _flag_a = 0, _flag_b = 0;
   7546     uint32_t _itail_tgt = 0;
   7547     RECOMP_REGS_LOCALS
   7548     RECOMP_ENTER(0x4100D9E0u);
   7549 
   7550 L_4100D9E0:
   7551     PUSH32(esp, ebp); /* 0x4100D9E0: push ebp */
   7552     ebp = esp; /* 0x4100D9E1: mov ebp, esp */
   7553     PUSH32(esp, esi); /* 0x4100D9E3: push esi */
   7554     esi = ecx; /* 0x4100D9E4: mov esi, ecx */
   7555     ecx = MEM32(ebp + 0x8); /* 0x4100D9E6: mov ecx, dword ptr [ebp + 8] */
   7556     eax = esi + 0xC; /* 0x4100D9E9: lea eax, [esi + 0xc] */
   7557     MEM32(esi + 0x18) = ecx; /* 0x4100D9EC: mov dword ptr [esi + 0x18], ecx */
   7558     ecx = esi; /* 0x4100D9EF: mov ecx, esi */
   7559     MEM32(esi + 0x14) = eax; /* 0x4100D9F1: mov dword ptr [esi + 0x14], eax */
   7560     RECOMP_ICALL(0x4100DA10u); /* 0x4100D9F4: call 0x4100da10 */ /* not lifted */
   7561     RECOMP_FLAGS_IN();
   7562     MEM8(esi + 0x1C) = (uint8_t)(LO8(eax)); /* 0x4100D9F9: mov byte ptr [esi + 0x1c], al */
   7563     eax = esi; /* 0x4100D9FC: mov eax, esi */
   7564     esi = POP32_VAL(esp); /* 0x4100D9FE: pop esi */
   7565     ebp = POP32_VAL(esp); /* 0x4100D9FF: pop ebp */
   7566     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100DA00: ret 4 */
   7567     RECOMP_REGS_OUT();
   7568 }
   7569 
   7570 void sub_4100DA10(void) {
   7571     int _fpu_cmp = 0;
   7572     uint32_t _cf = 0;
   7573     int _df = 1;
   7574     uint32_t _flag_k = FK_NONE;
   7575     uint32_t _flag_a = 0, _flag_b = 0;
   7576     uint32_t _itail_tgt = 0;
   7577     RECOMP_REGS_LOCALS
   7578     RECOMP_ENTER(0x4100DA10u);
   7579 
   7580 L_4100DA10:
   7581     PUSH32(esp, ebx); /* 0x4100DA10: push ebx */
   7582     ebx = ecx; /* 0x4100DA11: mov ebx, ecx */
   7583     PUSH32(esp, esi); /* 0x4100DA13: push esi */
   7584     PUSH32(esp, edi); /* 0x4100DA14: push edi */
   7585     eax = MEM32(ebx + 0x18); /* 0x4100DA15: mov eax, dword ptr [ebx + 0x18] */
   7586     PUSH32(esp, 0); /* 0x4100DA18: push 0 */
   7587     PUSH32(esp, 0); /* 0x4100DA1A: push 0 */
   7588     PUSH32(esp, eax); /* 0x4100DA1C: push eax */
   7589     RECOMP_ICALL(MEM32(0x4100F0A4)); /* 0x4100DA1D: call dword ptr [0x4100f0a4] */
   7590     RECOMP_FLAGS_IN();
   7591     ecx = MEM32(ebx + 0x18); /* 0x4100DA23: mov ecx, dword ptr [ebx + 0x18] */
   7592     PUSH32(esp, ecx); /* 0x4100DA26: push ecx */
   7593     PUSH32(esp, 1); /* 0x4100DA27: push 1 */
   7594     PUSH32(esp, 0x14u); /* 0x4100DA29: push 0x14 */
   7595     PUSH32(esp, ebx); /* 0x4100DA2B: push ebx */
   7596     RECOMP_ICALL(MEM32(0x4100F0E8)); /* 0x4100DA2C: call dword ptr [0x4100f0e8] */
   7597     RECOMP_FLAGS_IN();
   7598     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   7599     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7600     esp = esp + 0x1Cu; /* 0x4100DA32: add esp, 0x1c */
   7601     _flag_k = FK_ADD;
   7602     ecx = 4; /* 0x4100DA35: mov ecx, 4 */
   7603     edi = 0x41014630u; /* 0x4100DA3A: mov edi, 0x41014630 */
   7604     esi = ebx; /* 0x4100DA3F: mov esi, ebx */
   7605     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7606     eax = 0; /* 0x4100DA41: xor eax, eax */
   7607     _cf = 0;
   7608     _flag_k = FK_TEST;
   7609     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = MEM8(esi); _b = MEM8(edi); esi += _df; edi += _df; ecx--; if (_a != _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x4100DA43: repe cmpsb byte ptr [esi], byte ptr es:[edi] */
   7610     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_4100DA4C; /* 0x4100DA45: je 0x4100da4c */
   7611 L_4100DA47:
   7612     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x4100DA47: sbb eax, eax */
   7613       eax = _sc ? 0xFFFFFFFFu : 0;
   7614       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   7615       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   7616     { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x4100DA49: sbb eax, -1 */
   7617       eax = _sa - _sb - _sc;
   7618       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   7619       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   7620 L_4100DA4C:
   7621     /* test eax, eax */ /* 0x4100DA4C: test eax, eax */
   7622     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7623     _cf = 0;
   7624     _flag_k = FK_TEST;
   7625     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100DA72; /* 0x4100DA4E: jne 0x4100da72 */
   7626 L_4100DA50:
   7627     ecx = 4; /* 0x4100DA50: mov ecx, 4 */
   7628     edi = 0x41014628u; /* 0x4100DA55: mov edi, 0x41014628 */
   7629     esi = ebx + 0x8; /* 0x4100DA5A: lea esi, [ebx + 8] */
   7630     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7631     eax = 0; /* 0x4100DA5D: xor eax, eax */
   7632     _cf = 0;
   7633     _flag_k = FK_TEST;
   7634     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = MEM8(esi); _b = MEM8(edi); esi += _df; edi += _df; ecx--; if (_a != _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x4100DA5F: repe cmpsb byte ptr [esi], byte ptr es:[edi] */
   7635     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_4100DA68; /* 0x4100DA61: je 0x4100da68 */
   7636 L_4100DA63:
   7637     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x4100DA63: sbb eax, eax */
   7638       eax = _sc ? 0xFFFFFFFFu : 0;
   7639       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   7640       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   7641     { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x4100DA65: sbb eax, -1 */
   7642       eax = _sa - _sb - _sc;
   7643       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   7644       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   7645 L_4100DA68:
   7646     /* test eax, eax */ /* 0x4100DA68: test eax, eax */
   7647     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7648     _cf = 0;
   7649     _flag_k = FK_TEST;
   7650     if (TEST_NZ(_flag_a, _flag_b)) goto L_4100DA72; /* 0x4100DA6A: jne 0x4100da72 */
   7651 L_4100DA6C:
   7652     edi = POP32_VAL(esp); /* 0x4100DA6C: pop edi */
   7653     esi = POP32_VAL(esp); /* 0x4100DA6D: pop esi */
   7654     SET_LO8(eax, 1); /* 0x4100DA6E: mov al, 1 */
   7655     ebx = POP32_VAL(esp); /* 0x4100DA70: pop ebx */
   7656     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100DA71: ret  */
   7657 L_4100DA72:
   7658     edi = POP32_VAL(esp); /* 0x4100DA72: pop edi */
   7659     esi = POP32_VAL(esp); /* 0x4100DA73: pop esi */
   7660     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   7661     SET_LO8(eax, 0); /* 0x4100DA74: xor al, al */
   7662     _cf = 0;
   7663     _flag_k = FK_NARROW(FK_TEST, 24);
   7664     ebx = POP32_VAL(esp); /* 0x4100DA76: pop ebx */
   7665     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100DA77: ret  */
   7666     RECOMP_REGS_OUT();
   7667 }
   7668 
   7669 void sub_4100DA80(void) {
   7670     int _fpu_cmp = 0;
   7671     uint32_t _cf = 0;
   7672     int _df = 1;
   7673     uint32_t _flag_k = FK_NONE;
   7674     uint32_t _flag_a = 0, _flag_b = 0;
   7675     uint32_t _itail_tgt = 0;
   7676     RECOMP_REGS_LOCALS
   7677     RECOMP_ENTER(0x4100DA80u);
   7678 
   7679 L_4100DA80:
   7680     PUSH32(esp, ebp); /* 0x4100DA80: push ebp */
   7681     ebp = esp; /* 0x4100DA81: mov ebp, esp */
   7682     PUSH32(esp, ebx); /* 0x4100DA83: push ebx */
   7683     PUSH32(esp, esi); /* 0x4100DA84: push esi */
   7684     esi = ecx; /* 0x4100DA85: mov esi, ecx */
   7685     PUSH32(esp, edi); /* 0x4100DA87: push edi */
   7686     ecx = MEM32(ebp + 0x8); /* 0x4100DA88: mov ecx, dword ptr [ebp + 8] */
   7687     eax = MEM32(esi + 0x14); /* 0x4100DA8B: mov eax, dword ptr [esi + 0x14] */
   7688     edx = MEM32(ecx); /* 0x4100DA8E: mov edx, dword ptr [ecx] */
   7689     /* cmp edx, MEM32(eax) */ /* 0x4100DA90: cmp edx, dword ptr [eax] */
   7690     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax));
   7691     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7692     _flag_k = FK_CMP;
   7693     if (CMP_EQ(_flag_a, _flag_b)) goto L_4100DAD3; /* 0x4100DA92: je 0x4100dad3 */
   7694 L_4100DA94:
   7695     edi = MEM32(0x4100F0A4); /* 0x4100DA94: mov edi, dword ptr [0x4100f0a4] */
   7696     ebx = MEM32(0x4100F0E8); /* 0x4100DA9A: mov ebx, dword ptr [0x4100f0e8] */
   7697 L_4100DAA0:
   7698     eax = MEM32(eax + 0x4); /* 0x4100DAA0: mov eax, dword ptr [eax + 4] */
   7699     ecx = MEM32(esi + 0x18); /* 0x4100DAA3: mov ecx, dword ptr [esi + 0x18] */
   7700     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7701     eax = eax + 1; /* 0x4100DAA6: inc eax */
   7702     _flag_k = FK_INC;
   7703     PUSH32(esp, 1); /* 0x4100DAA7: push 1 */
   7704     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFEu) << 24;
   7705     SET_LO8(eax, LO8(eax) & 0xFEu); /* 0x4100DAA9: and al, 0xfe */
   7706     _cf = 0;
   7707     _flag_k = FK_NARROW(FK_TEST, 24);
   7708     PUSH32(esp, eax); /* 0x4100DAAB: push eax */
   7709     PUSH32(esp, ecx); /* 0x4100DAAC: push ecx */
   7710     RECOMP_ICALL(edi); /* 0x4100DAAD: call edi */
   7711     RECOMP_FLAGS_IN();
   7712     edx = MEM32(esi + 0x18); /* 0x4100DAAF: mov edx, dword ptr [esi + 0x18] */
   7713     eax = MEM32(esi + 0x14); /* 0x4100DAB2: mov eax, dword ptr [esi + 0x14] */
   7714     PUSH32(esp, edx); /* 0x4100DAB5: push edx */
   7715     PUSH32(esp, 8); /* 0x4100DAB6: push 8 */
   7716     PUSH32(esp, 1); /* 0x4100DAB8: push 1 */
   7717     PUSH32(esp, eax); /* 0x4100DABA: push eax */
   7718     RECOMP_ICALL(ebx); /* 0x4100DABB: call ebx */
   7719     RECOMP_FLAGS_IN();
   7720     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   7721     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7722     esp = esp + 0x1Cu; /* 0x4100DABD: add esp, 0x1c */
   7723     _flag_k = FK_ADD;
   7724     /* cmp eax, 8 */ /* 0x4100DAC0: cmp eax, 8 */
   7725     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   7726     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7727     _flag_k = FK_CMP;
   7728     if (CMP_NE(_flag_a, _flag_b)) goto L_4100DAE0; /* 0x4100DAC3: jne 0x4100dae0 */
   7729 L_4100DAC5:
   7730     ecx = MEM32(ebp + 0x8); /* 0x4100DAC5: mov ecx, dword ptr [ebp + 8] */
   7731     eax = MEM32(esi + 0x14); /* 0x4100DAC8: mov eax, dword ptr [esi + 0x14] */
   7732     edx = MEM32(ecx); /* 0x4100DACB: mov edx, dword ptr [ecx] */
   7733     ecx = MEM32(eax); /* 0x4100DACD: mov ecx, dword ptr [eax] */
   7734     /* cmp edx, ecx */ /* 0x4100DACF: cmp edx, ecx */
   7735     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   7736     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7737     _flag_k = FK_CMP;
   7738     RECOMP_BACKEDGE();
   7739     if (CMP_NE(_flag_a, _flag_b)) goto L_4100DAA0; /* 0x4100DAD1: jne 0x4100daa0 */
   7740 L_4100DAD3:
   7741     eax = MEM32(esi + 0x14); /* 0x4100DAD3: mov eax, dword ptr [esi + 0x14] */
   7742     edi = POP32_VAL(esp); /* 0x4100DAD6: pop edi */
   7743     esi = POP32_VAL(esp); /* 0x4100DAD7: pop esi */
   7744     ebx = POP32_VAL(esp); /* 0x4100DAD8: pop ebx */
   7745     eax = MEM32(eax + 0x4); /* 0x4100DAD9: mov eax, dword ptr [eax + 4] */
   7746     ebp = POP32_VAL(esp); /* 0x4100DADC: pop ebp */
   7747     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100DADD: ret 4 */
   7748 L_4100DAE0:
   7749     edi = POP32_VAL(esp); /* 0x4100DAE0: pop edi */
   7750     esi = POP32_VAL(esp); /* 0x4100DAE1: pop esi */
   7751     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7752     eax = 0; /* 0x4100DAE2: xor eax, eax */
   7753     _cf = 0;
   7754     _flag_k = FK_TEST;
   7755     ebx = POP32_VAL(esp); /* 0x4100DAE4: pop ebx */
   7756     ebp = POP32_VAL(esp); /* 0x4100DAE5: pop ebp */
   7757     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100DAE6: ret 4 */
   7758     RECOMP_REGS_OUT();
   7759 }
   7760 
   7761 void sub_4100DAF0(void) {
   7762     int _fpu_cmp = 0;
   7763     uint32_t _cf = 0;
   7764     int _df = 1;
   7765     uint32_t _flag_k = FK_NONE;
   7766     uint32_t _flag_a = 0, _flag_b = 0;
   7767     uint32_t _itail_tgt = 0;
   7768     RECOMP_REGS_LOCALS
   7769     RECOMP_ENTER(0x4100DAF0u);
   7770 
   7771 L_4100DAF0:
   7772     PUSH32(esp, ebp); /* 0x4100DAF0: push ebp */
   7773     ebp = esp; /* 0x4100DAF1: mov ebp, esp */
   7774     eax = MEM32(ecx + 0x14); /* 0x4100DAF3: mov eax, dword ptr [ecx + 0x14] */
   7775     MEM32(eax) = 0; /* 0x4100DAF6: mov dword ptr [eax], 0 */
   7776     edx = MEM32(ecx + 0x14); /* 0x4100DAFC: mov edx, dword ptr [ecx + 0x14] */
   7777     eax = MEM32(ebp + 0x8); /* 0x4100DAFF: mov eax, dword ptr [ebp + 8] */
   7778     PUSH32(esp, eax); /* 0x4100DB02: push eax */
   7779     MEM32(edx + 0x4) = 0; /* 0x4100DB03: mov dword ptr [edx + 4], 0 */
   7780     RECOMP_ICALL(0x4100DA80u); /* 0x4100DB0A: call 0x4100da80 */ /* not lifted */
   7781     RECOMP_FLAGS_IN();
   7782     ebp = POP32_VAL(esp); /* 0x4100DB0F: pop ebp */
   7783     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100DB10: ret 4 */
   7784     RECOMP_REGS_OUT();
   7785 }
   7786 
   7787 void sub_4100DB20(void) {
   7788     int _fpu_cmp = 0;
   7789     uint32_t _cf = 0;
   7790     int _df = 1;
   7791     uint32_t _flag_k = FK_NONE;
   7792     uint32_t _flag_a = 0, _flag_b = 0;
   7793     uint32_t _itail_tgt = 0;
   7794     RECOMP_REGS_LOCALS
   7795     RECOMP_ENTER(0x4100DB20u);
   7796 
   7797 L_4100DB20:
   7798     PUSH32(esp, MEM32(esp + 0x4)); /* 0x4100DB20: push dword ptr [esp + 4] */
   7799     RECOMP_ICALL(0x4100DD2Au); /* 0x4100DB24: call 0x4100dd2a */ /* not lifted */
   7800     RECOMP_FLAGS_IN();
   7801     ecx = POP32_VAL(esp); /* 0x4100DB29: pop ecx */
   7802     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4100DB2A: ret  */
   7803     RECOMP_REGS_OUT();
   7804 }
   7805 
   7806 void sub_4100DB2C(void) {
   7807     int _fpu_cmp = 0;
   7808     uint32_t _cf = 0;
   7809     int _df = 1;
   7810     uint32_t _flag_k = FK_NONE;
   7811     uint32_t _flag_a = 0, _flag_b = 0;
   7812     uint32_t _itail_tgt = 0;
   7813     RECOMP_REGS_LOCALS
   7814     RECOMP_ENTER(0x4100DB2Cu);
   7815 
   7816 L_4100DB2C:
   7817     { _itail_tgt = (uint32_t)(MEM32(0x4100F078)); goto _ljump; }
   7818     { RECOMP_REGS_OUT(); return; } /* end of function */
   7819   _ljump:
   7820     switch (_itail_tgt) {
   7821       case 0x4100DB2Cu: goto L_4100DB2C;
   7822       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7823     }
   7824     RECOMP_REGS_OUT();
   7825 }
   7826 
   7827 void sub_4100DB32(void) {
   7828     int _fpu_cmp = 0;
   7829     uint32_t _cf = 0;
   7830     int _df = 1;
   7831     uint32_t _flag_k = FK_NONE;
   7832     uint32_t _flag_a = 0, _flag_b = 0;
   7833     uint32_t _itail_tgt = 0;
   7834     RECOMP_REGS_LOCALS
   7835     RECOMP_ENTER(0x4100DB32u);
   7836 
   7837 L_4100DB32:
   7838     { _itail_tgt = (uint32_t)(MEM32(0x4100F090)); goto _ljump; }
   7839     { RECOMP_REGS_OUT(); return; } /* end of function */
   7840   _ljump:
   7841     switch (_itail_tgt) {
   7842       case 0x4100DB32u: goto L_4100DB32;
   7843       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7844     }
   7845     RECOMP_REGS_OUT();
   7846 }
   7847 
   7848 void sub_4100DB38(void) {
   7849     int _fpu_cmp = 0;
   7850     uint32_t _cf = 0;
   7851     int _df = 1;
   7852     uint32_t _flag_k = FK_NONE;
   7853     uint32_t _flag_a = 0, _flag_b = 0;
   7854     uint32_t _itail_tgt = 0;
   7855     RECOMP_REGS_LOCALS
   7856     RECOMP_ENTER(0x4100DB38u);
   7857 
   7858 L_4100DB38:
   7859     { _itail_tgt = (uint32_t)(MEM32(0x4100F044)); goto _ljump; }
   7860     { RECOMP_REGS_OUT(); return; } /* end of function */
   7861   _ljump:
   7862     switch (_itail_tgt) {
   7863       case 0x4100DB38u: goto L_4100DB38;
   7864       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7865     }
   7866     RECOMP_REGS_OUT();
   7867 }
   7868 
   7869 void sub_4100DB3E(void) {
   7870     int _fpu_cmp = 0;
   7871     uint32_t _cf = 0;
   7872     int _df = 1;
   7873     uint32_t _flag_k = FK_NONE;
   7874     uint32_t _flag_a = 0, _flag_b = 0;
   7875     uint32_t _itail_tgt = 0;
   7876     RECOMP_REGS_LOCALS
   7877     RECOMP_ENTER(0x4100DB3Eu);
   7878 
   7879 L_4100DB3E:
   7880     { _itail_tgt = (uint32_t)(MEM32(0x4100F040)); goto _ljump; }
   7881     { RECOMP_REGS_OUT(); return; } /* end of function */
   7882   _ljump:
   7883     switch (_itail_tgt) {
   7884       case 0x4100DB3Eu: goto L_4100DB3E;
   7885       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7886     }
   7887     RECOMP_REGS_OUT();
   7888 }
   7889 
   7890 void sub_4100DB44(void) {
   7891     int _fpu_cmp = 0;
   7892     uint32_t _cf = 0;
   7893     int _df = 1;
   7894     uint32_t _flag_k = FK_NONE;
   7895     uint32_t _flag_a = 0, _flag_b = 0;
   7896     uint32_t _itail_tgt = 0;
   7897     RECOMP_REGS_LOCALS
   7898     RECOMP_ENTER(0x4100DB44u);
   7899 
   7900 L_4100DB44:
   7901     { _itail_tgt = (uint32_t)(MEM32(0x4100F03C)); goto _ljump; }
   7902     { RECOMP_REGS_OUT(); return; } /* end of function */
   7903   _ljump:
   7904     switch (_itail_tgt) {
   7905       case 0x4100DB44u: goto L_4100DB44;
   7906       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7907     }
   7908     RECOMP_REGS_OUT();
   7909 }
   7910 
   7911 void sub_4100DB4A(void) {
   7912     int _fpu_cmp = 0;
   7913     uint32_t _cf = 0;
   7914     int _df = 1;
   7915     uint32_t _flag_k = FK_NONE;
   7916     uint32_t _flag_a = 0, _flag_b = 0;
   7917     uint32_t _itail_tgt = 0;
   7918     RECOMP_REGS_LOCALS
   7919     RECOMP_ENTER(0x4100DB4Au);
   7920 
   7921 L_4100DB4A:
   7922     { _itail_tgt = (uint32_t)(MEM32(0x4100F038)); goto _ljump; }
   7923     { RECOMP_REGS_OUT(); return; } /* end of function */
   7924   _ljump:
   7925     switch (_itail_tgt) {
   7926       case 0x4100DB4Au: goto L_4100DB4A;
   7927       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7928     }
   7929     RECOMP_REGS_OUT();
   7930 }
   7931 
   7932 void sub_4100DB50(void) {
   7933     int _fpu_cmp = 0;
   7934     uint32_t _cf = 0;
   7935     int _df = 1;
   7936     uint32_t _flag_k = FK_NONE;
   7937     uint32_t _flag_a = 0, _flag_b = 0;
   7938     uint32_t _itail_tgt = 0;
   7939     RECOMP_REGS_LOCALS
   7940     RECOMP_ENTER(0x4100DB50u);
   7941 
   7942 L_4100DB50:
   7943     PUSH32(esp, esi); /* 0x4100DB50: push esi */
   7944     esi = ecx; /* 0x4100DB51: mov esi, ecx */
   7945     RECOMP_ICALL(0x4100DD30u); /* 0x4100DB53: call 0x4100dd30 */ /* not lifted */
   7946     RECOMP_FLAGS_IN();
   7947     /* test MEM8(esp + 0x8), 1 */ /* 0x4100DB58: test byte ptr [esp + 8], 1 */
   7948     _flag_a = (uint32_t)(MEM8(esp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   7949     _cf = 0;
   7950     _flag_k = FK_NARROW(FK_TEST, 24);
   7951     if (TEST_Z(_flag_a, _flag_b)) goto L_4100DB66; /* 0x4100DB5D: je 0x4100db66 */
   7952 L_4100DB5F:
   7953     PUSH32(esp, esi); /* 0x4100DB5F: push esi */
   7954     RECOMP_ICALL(0x4100DB20u); /* 0x4100DB60: call 0x4100db20 */ /* not lifted */
   7955     RECOMP_FLAGS_IN();
   7956     ecx = POP32_VAL(esp); /* 0x4100DB65: pop ecx */
   7957 L_4100DB66:
   7958     eax = esi; /* 0x4100DB66: mov eax, esi */
   7959     esi = POP32_VAL(esp); /* 0x4100DB68: pop esi */
   7960     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4100DB69: ret 4 */
   7961     RECOMP_REGS_OUT();
   7962 }