client/game/hhr.dll/lifted-0005.c (913254B)
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_3100CAD0(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(0x3100CAD0u); 17 18 L_3100CAD0: 19 PUSH32(esp, ebp); /* 0x3100CAD0: push ebp */ 20 ebp = esp; /* 0x3100CAD1: mov ebp, esp */ 21 PUSH32(esp, 0xFFFFFFFFu); /* 0x3100CAD3: push -1 */ 22 PUSH32(esp, 0x31047782u); /* 0x3100CAD5: push 0x31047782 */ 23 eax = MEM32(FS_BASE + (0)); /* 0x3100CADA: mov eax, dword ptr fs:[0] */ 24 PUSH32(esp, eax); /* 0x3100CAE0: push eax */ 25 MEM32(FS_BASE + (0)) = esp; /* 0x3100CAE1: mov dword ptr fs:[0], esp */ 26 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x8Cu); 27 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28 esp = esp - 0x8Cu; /* 0x3100CAE8: sub esp, 0x8c */ 29 _flag_k = FK_CMP; 30 PUSH32(esp, ebx); /* 0x3100CAEE: push ebx */ 31 PUSH32(esp, esi); /* 0x3100CAEF: push esi */ 32 PUSH32(esp, edi); /* 0x3100CAF0: push edi */ 33 esi = ecx; /* 0x3100CAF1: mov esi, ecx */ 34 PUSH32(esp, 0xFFFFFFFFu); /* 0x3100CAF3: push -1 */ 35 ecx = ebp + (-0x74); /* 0x3100CAF5: lea ecx, [ebp - 0x74] */ 36 MEM32(ebp + (-0x34)) = esi; /* 0x3100CAF8: mov dword ptr [ebp - 0x34], esi */ 37 MEM32(ebp + (-0x30)) = 0; /* 0x3100CAFB: mov dword ptr [ebp - 0x30], 0 */ 38 RECOMP_ICALL(MEM32(0x310482C8)); /* 0x3100CB02: call dword ptr [0x310482c8] */ 39 RECOMP_FLAGS_IN(); 40 SET_LO8(eax, MEM8(ebp + 0xF)); /* 0x3100CB08: mov al, byte ptr [ebp + 0xf] */ 41 PUSH32(esp, 0); /* 0x3100CB0B: push 0 */ 42 ecx = ebp + (-0x2C); /* 0x3100CB0D: lea ecx, [ebp - 0x2c] */ 43 MEM32(ebp + (-0x4)) = 1; /* 0x3100CB10: mov dword ptr [ebp - 4], 1 */ 44 MEM8(ebp + (-0x2C)) = (uint8_t)(LO8(eax)); /* 0x3100CB17: mov byte ptr [ebp - 0x2c], al */ 45 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x3100CB1A: call dword ptr [0x310480d4] */ 46 RECOMP_FLAGS_IN(); 47 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 48 ecx = ecx | 0xFFFFFFFFu; /* 0x3100CB20: or ecx, 0xffffffff */ 49 _cf = 0; 50 _flag_k = FK_TEST; 51 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 52 eax = 0; /* 0x3100CB23: xor eax, eax */ 53 _cf = 0; 54 _flag_k = FK_TEST; 55 edi = 0x310523F8u; /* 0x3100CB25: mov edi, 0x310523f8 */ 56 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; } /* 0x3100CB2A: repne scasb al, byte ptr es:[edi] */ 57 ecx = ~ecx; /* 0x3100CB2C: not ecx */ 58 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 59 ecx = ecx - 1; /* 0x3100CB2E: dec ecx */ 60 _flag_k = FK_DEC; 61 ebx = ecx; /* 0x3100CB2F: mov ebx, ecx */ 62 PUSH32(esp, 1); /* 0x3100CB31: push 1 */ 63 PUSH32(esp, ebx); /* 0x3100CB33: push ebx */ 64 ecx = ebp + (-0x2C); /* 0x3100CB34: lea ecx, [ebp - 0x2c] */ 65 RECOMP_ICALL(MEM32(0x31048070)); /* 0x3100CB37: call dword ptr [0x31048070] */ 66 RECOMP_FLAGS_IN(); 67 /* test LO8(eax), LO8(eax) */ /* 0x3100CB3D: test al, al */ 68 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 69 _cf = 0; 70 _flag_k = FK_NARROW(FK_TEST, 24); 71 if (TEST_Z(_flag_a, _flag_b)) goto L_3100CB66; /* 0x3100CB3F: je 0x3100cb66 */ 72 L_3100CB41: 73 edi = MEM32(ebp + (-0x28)); /* 0x3100CB41: mov edi, dword ptr [ebp - 0x28] */ 74 ecx = ebx; /* 0x3100CB44: mov ecx, ebx */ 75 edx = ecx; /* 0x3100CB46: mov edx, ecx */ 76 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3100CB48: shr ecx, 2 */ 77 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 78 ecx = ecx >> 2u; /* 0x3100CB48: shr ecx, 2 */ 79 esi = 0x310523F8u; /* 0x3100CB4B: mov esi, 0x310523f8 */ 80 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3100CB50: 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; } 81 ecx = edx; /* 0x3100CB52: mov ecx, edx */ 82 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 83 ecx = ecx & 3; /* 0x3100CB54: and ecx, 3 */ 84 _cf = 0; 85 _flag_k = FK_TEST; 86 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3100CB57: 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; } 87 eax = MEM32(ebp + (-0x28)); /* 0x3100CB59: mov eax, dword ptr [ebp - 0x28] */ 88 esi = MEM32(ebp + (-0x34)); /* 0x3100CB5C: mov esi, dword ptr [ebp - 0x34] */ 89 MEM32(ebp + (-0x24)) = ebx; /* 0x3100CB5F: mov dword ptr [ebp - 0x24], ebx */ 90 MEM8(eax + ebx) = (uint8_t)(0); /* 0x3100CB62: mov byte ptr [eax + ebx], 0 */ 91 L_3100CB66: 92 ecx = ebp + (-0x2C); /* 0x3100CB66: lea ecx, [ebp - 0x2c] */ 93 PUSH32(esp, ecx); /* 0x3100CB69: push ecx */ 94 PUSH32(esp, 0x3105224Cu); /* 0x3100CB6A: push 0x3105224c */ 95 ecx = ebp + (-0x74); /* 0x3100CB6F: lea ecx, [ebp - 0x74] */ 96 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3100CB72: mov byte ptr [ebp - 4], 2 */ 97 RECOMP_ICALL(MEM32(0x310482CC)); /* 0x3100CB76: call dword ptr [0x310482cc] */ 98 RECOMP_FLAGS_IN(); 99 PUSH32(esp, 1); /* 0x3100CB7C: push 1 */ 100 ecx = ebp + (-0x2C); /* 0x3100CB7E: lea ecx, [ebp - 0x2c] */ 101 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3100CB81: mov byte ptr [ebp - 4], 1 */ 102 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x3100CB85: call dword ptr [0x310480d4] */ 103 RECOMP_FLAGS_IN(); 104 edx = MEM32(ebp + 0xC); /* 0x3100CB8B: mov edx, dword ptr [ebp + 0xc] */ 105 PUSH32(esp, edx); /* 0x3100CB8E: push edx */ 106 PUSH32(esp, 0x310523F4u); /* 0x3100CB8F: push 0x310523f4 */ 107 ecx = ebp + (-0x74); /* 0x3100CB94: lea ecx, [ebp - 0x74] */ 108 RECOMP_ICALL(MEM32(0x310482BC)); /* 0x3100CB97: call dword ptr [0x310482bc] */ 109 RECOMP_FLAGS_IN(); 110 ecx = esi; /* 0x3100CB9D: mov ecx, esi */ 111 RECOMP_ICALL(0x310013E0u); /* 0x3100CB9F: call 0x310013e0 */ /* not lifted */ 112 RECOMP_FLAGS_IN(); 113 edi = esi + 0x30; /* 0x3100CBA4: lea edi, [esi + 0x30] */ 114 L_3100CBA7: 115 eax = ebp + (-0x74); /* 0x3100CBA7: lea eax, [ebp - 0x74] */ 116 PUSH32(esp, eax); /* 0x3100CBAA: push eax */ 117 ecx = edi; /* 0x3100CBAB: mov ecx, edi */ 118 RECOMP_ICALL(0x31010CA0u); /* 0x3100CBAD: call 0x31010ca0 */ /* not lifted */ 119 RECOMP_FLAGS_IN(); 120 ecx = ebp + (-0x74); /* 0x3100CBB2: lea ecx, [ebp - 0x74] */ 121 PUSH32(esp, ecx); /* 0x3100CBB5: push ecx */ 122 ecx = edi; /* 0x3100CBB6: mov ecx, edi */ 123 RECOMP_ICALL(0x31010F40u); /* 0x3100CBB8: call 0x31010f40 */ /* not lifted */ 124 RECOMP_FLAGS_IN(); 125 /* test LO8(eax), LO8(eax) */ /* 0x3100CBBD: test al, al */ 126 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 127 _cf = 0; 128 _flag_k = FK_NARROW(FK_TEST, 24); 129 RECOMP_BACKEDGE(); 130 if (TEST_Z(_flag_a, _flag_b)) goto L_3100CBA7; /* 0x3100CBBF: je 0x3100cba7 */ 131 L_3100CBC1: 132 ecx = esi; /* 0x3100CBC1: mov ecx, esi */ 133 RECOMP_ICALL(0x310013E0u); /* 0x3100CBC3: call 0x310013e0 */ /* not lifted */ 134 RECOMP_FLAGS_IN(); 135 SET_LO8(edx, MEM8(ebp + 0xF)); /* 0x3100CBC8: mov dl, byte ptr [ebp + 0xf] */ 136 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 137 ebx = 0; /* 0x3100CBCB: xor ebx, ebx */ 138 _cf = 0; 139 _flag_k = FK_TEST; 140 PUSH32(esp, ebx); /* 0x3100CBCD: push ebx */ 141 ecx = ebp + (-0x1C); /* 0x3100CBCE: lea ecx, [ebp - 0x1c] */ 142 MEM8(ebp + (-0x1C)) = (uint8_t)(LO8(edx)); /* 0x3100CBD1: mov byte ptr [ebp - 0x1c], dl */ 143 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x3100CBD4: call dword ptr [0x310480d4] */ 144 RECOMP_FLAGS_IN(); 145 PUSH32(esp, ebx); /* 0x3100CBDA: push ebx */ 146 eax = ebp + (-0x1C); /* 0x3100CBDB: lea eax, [ebp - 0x1c] */ 147 PUSH32(esp, eax); /* 0x3100CBDE: push eax */ 148 PUSH32(esp, 0x310522ECu); /* 0x3100CBDF: push 0x310522ec */ 149 ecx = ebp + (-0x74); /* 0x3100CBE4: lea ecx, [ebp - 0x74] */ 150 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x3100CBE7: mov byte ptr [ebp - 4], 3 */ 151 RECOMP_ICALL(MEM32(0x310482D0)); /* 0x3100CBEB: call dword ptr [0x310482d0] */ 152 RECOMP_FLAGS_IN(); 153 SET_LO8(eax, MEM8(esi + 0x244)); /* 0x3100CBF1: mov al, byte ptr [esi + 0x244] */ 154 /* test LO8(eax), LO8(eax) */ /* 0x3100CBF7: test al, al */ 155 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 156 _cf = 0; 157 _flag_k = FK_NARROW(FK_TEST, 24); 158 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100CC70; /* 0x3100CBF9: jne 0x3100cc70 */ 159 L_3100CBFB: 160 PUSH32(esp, 0x31052294u); /* 0x3100CBFB: push 0x31052294 */ 161 ecx = ebp + (-0x1C); /* 0x3100CC00: lea ecx, [ebp - 0x1c] */ 162 PUSH32(esp, ecx); /* 0x3100CC03: push ecx */ 163 edx = ebp + (-0x2C); /* 0x3100CC04: lea edx, [ebp - 0x2c] */ 164 PUSH32(esp, edx); /* 0x3100CC07: push edx */ 165 RECOMP_ICALL(0x3104686Au); /* 0x3100CC08: call 0x3104686a */ /* not lifted */ 166 RECOMP_FLAGS_IN(); 167 eax = MEM32(eax + 0x4); /* 0x3100CC0D: mov eax, dword ptr [eax + 4] */ 168 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 169 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 170 esp = esp + 0xCu; /* 0x3100CC10: add esp, 0xc */ 171 _flag_k = FK_ADD; 172 /* cmp eax, ebx */ /* 0x3100CC13: cmp eax, ebx */ 173 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 174 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 175 _flag_k = FK_CMP; 176 if (CMP_NE(_flag_a, _flag_b)) goto L_3100CC1C; /* 0x3100CC15: jne 0x3100cc1c */ 177 L_3100CC17: 178 eax = MEM32(0x310480EC); /* 0x3100CC17: mov eax, dword ptr [0x310480ec] */ 179 L_3100CC1C: 180 ecx = ebp + (-0x98); /* 0x3100CC1C: lea ecx, [ebp - 0x98] */ 181 PUSH32(esp, ecx); /* 0x3100CC22: push ecx */ 182 PUSH32(esp, eax); /* 0x3100CC23: push eax */ 183 RECOMP_ICALL(MEM32(0x31048230)); /* 0x3100CC24: call dword ptr [0x31048230] */ 184 RECOMP_FLAGS_IN(); 185 ecx = MEM32(ebp + (-0x28)); /* 0x3100CC2A: mov ecx, dword ptr [ebp - 0x28] */ 186 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 187 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 188 esp = esp + 8; /* 0x3100CC2D: add esp, 8 */ 189 _flag_k = FK_ADD; 190 /* test eax, eax */ /* 0x3100CC30: test eax, eax */ 191 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 192 _cf = 0; 193 _flag_k = FK_TEST; 194 SET_LO8(ebx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x3100CC32: setne bl */ 195 /* test ecx, ecx */ /* 0x3100CC35: test ecx, ecx */ 196 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 197 _cf = 0; 198 _flag_k = FK_TEST; 199 if (TEST_Z(_flag_a, _flag_b)) goto L_3100CC54; /* 0x3100CC37: je 0x3100cc54 */ 200 L_3100CC39: 201 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x3100CC39: mov al, byte ptr [ecx - 1] */ 202 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 203 ecx = ecx - 1; /* 0x3100CC3C: dec ecx */ 204 _flag_k = FK_DEC; 205 /* test LO8(eax), LO8(eax) */ /* 0x3100CC3D: test al, al */ 206 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 207 _cf = 0; 208 _flag_k = FK_NARROW(FK_TEST, 24); 209 if (TEST_Z(_flag_a, _flag_b)) goto L_3100CC4B; /* 0x3100CC3F: je 0x3100cc4b */ 210 L_3100CC41: 211 /* cmp LO8(eax), 0xFFu */ /* 0x3100CC41: cmp al, 0xff */ 212 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 213 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 214 _flag_k = FK_NARROW(FK_CMP, 24); 215 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100CC4B; /* 0x3100CC43: je 0x3100cc4b */ 216 L_3100CC45: 217 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 218 SET_LO8(eax, LO8(eax) - 1); /* 0x3100CC45: dec al */ 219 _flag_k = FK_NARROW(FK_DEC, 24); 220 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3100CC47: mov byte ptr [ecx], al */ 221 goto L_3100CC54; /* 0x3100CC49: jmp 0x3100cc54 */ 222 L_3100CC4B: 223 PUSH32(esp, ecx); /* 0x3100CC4B: push ecx */ 224 RECOMP_ICALL(0x31046858u); /* 0x3100CC4C: call 0x31046858 */ /* not lifted */ 225 RECOMP_FLAGS_IN(); 226 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 227 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 228 esp = esp + 4; /* 0x3100CC51: add esp, 4 */ 229 _flag_k = FK_ADD; 230 L_3100CC54: 231 /* test LO8(ebx), LO8(ebx) */ /* 0x3100CC54: test bl, bl */ 232 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 233 _cf = 0; 234 _flag_k = FK_NARROW(FK_TEST, 24); 235 if (TEST_Z(_flag_a, _flag_b)) goto L_3100CC6E; /* 0x3100CC56: je 0x3100cc6e */ 236 L_3100CC58: 237 PUSH32(esp, 1); /* 0x3100CC58: push 1 */ 238 PUSH32(esp, 0x31052368u); /* 0x3100CC5A: push 0x31052368 */ 239 MEM8(esi + 0x244) = (uint8_t)(1); /* 0x3100CC5F: mov byte ptr [esi + 0x244], 1 */ 240 RECOMP_ICALL(0x310013E0u); /* 0x3100CC66: call 0x310013e0 */ /* not lifted */ 241 RECOMP_FLAGS_IN(); 242 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 243 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 244 esp = esp + 8; /* 0x3100CC6B: add esp, 8 */ 245 _flag_k = FK_ADD; 246 L_3100CC6E: 247 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 248 ebx = 0; /* 0x3100CC6E: xor ebx, ebx */ 249 _cf = 0; 250 _flag_k = FK_TEST; 251 L_3100CC70: 252 edi = MEM32(ebp + 0x8); /* 0x3100CC70: mov edi, dword ptr [ebp + 8] */ 253 SET_LO8(edx, MEM8(ebp + (-0x1C))); /* 0x3100CC73: mov dl, byte ptr [ebp - 0x1c] */ 254 MEM8(edi) = (uint8_t)(LO8(edx)); /* 0x3100CC76: mov byte ptr [edi], dl */ 255 MEM32(edi + 0x4) = ebx; /* 0x3100CC78: mov dword ptr [edi + 4], ebx */ 256 MEM32(edi + 0x8) = ebx; /* 0x3100CC7B: mov dword ptr [edi + 8], ebx */ 257 MEM32(edi + 0xC) = ebx; /* 0x3100CC7E: mov dword ptr [edi + 0xc], ebx */ 258 eax = MEM32(0x310480F8); /* 0x3100CC81: mov eax, dword ptr [0x310480f8] */ 259 ecx = MEM32(eax); /* 0x3100CC86: mov ecx, dword ptr [eax] */ 260 PUSH32(esp, ecx); /* 0x3100CC88: push ecx */ 261 PUSH32(esp, ebx); /* 0x3100CC89: push ebx */ 262 edx = ebp + (-0x1C); /* 0x3100CC8A: lea edx, [ebp - 0x1c] */ 263 PUSH32(esp, edx); /* 0x3100CC8D: push edx */ 264 ecx = edi; /* 0x3100CC8E: mov ecx, edi */ 265 RECOMP_ICALL(MEM32(0x310480FC)); /* 0x3100CC90: call dword ptr [0x310480fc] */ 266 RECOMP_FLAGS_IN(); 267 MEM32(ebp + (-0x30)) = 1; /* 0x3100CC96: mov dword ptr [ebp - 0x30], 1 */ 268 ecx = MEM32(ebp + (-0x18)); /* 0x3100CC9D: mov ecx, dword ptr [ebp - 0x18] */ 269 /* cmp ecx, ebx */ /* 0x3100CCA0: cmp ecx, ebx */ 270 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 271 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 272 _flag_k = FK_CMP; 273 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100CCBF; /* 0x3100CCA2: je 0x3100ccbf */ 274 L_3100CCA4: 275 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x3100CCA4: mov al, byte ptr [ecx - 1] */ 276 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 277 ecx = ecx - 1; /* 0x3100CCA7: dec ecx */ 278 _flag_k = FK_DEC; 279 /* test LO8(eax), LO8(eax) */ /* 0x3100CCA8: test al, al */ 280 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 281 _cf = 0; 282 _flag_k = FK_NARROW(FK_TEST, 24); 283 if (TEST_Z(_flag_a, _flag_b)) goto L_3100CCB6; /* 0x3100CCAA: je 0x3100ccb6 */ 284 L_3100CCAC: 285 /* cmp LO8(eax), 0xFFu */ /* 0x3100CCAC: cmp al, 0xff */ 286 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 287 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 288 _flag_k = FK_NARROW(FK_CMP, 24); 289 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100CCB6; /* 0x3100CCAE: je 0x3100ccb6 */ 290 L_3100CCB0: 291 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 292 SET_LO8(eax, LO8(eax) - 1); /* 0x3100CCB0: dec al */ 293 _flag_k = FK_NARROW(FK_DEC, 24); 294 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3100CCB2: mov byte ptr [ecx], al */ 295 goto L_3100CCBF; /* 0x3100CCB4: jmp 0x3100ccbf */ 296 L_3100CCB6: 297 PUSH32(esp, ecx); /* 0x3100CCB6: push ecx */ 298 RECOMP_ICALL(0x31046858u); /* 0x3100CCB7: call 0x31046858 */ /* not lifted */ 299 RECOMP_FLAGS_IN(); 300 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 301 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 302 esp = esp + 4; /* 0x3100CCBC: add esp, 4 */ 303 _flag_k = FK_ADD; 304 L_3100CCBF: 305 MEM32(ebp + (-0x18)) = ebx; /* 0x3100CCBF: mov dword ptr [ebp - 0x18], ebx */ 306 MEM32(ebp + (-0x14)) = ebx; /* 0x3100CCC2: mov dword ptr [ebp - 0x14], ebx */ 307 MEM32(ebp + (-0x10)) = ebx; /* 0x3100CCC5: mov dword ptr [ebp - 0x10], ebx */ 308 MEM32(ebp + (-0x74)) = 0x3104876Cu; /* 0x3100CCC8: mov dword ptr [ebp - 0x74], 0x3104876c */ 309 ecx = ebp + (-0x74); /* 0x3100CCCF: lea ecx, [ebp - 0x74] */ 310 MEM32(ebp + (-0x4)) = 5; /* 0x3100CCD2: mov dword ptr [ebp - 4], 5 */ 311 RECOMP_ICALL(MEM32(0x310482F8)); /* 0x3100CCD9: call dword ptr [0x310482f8] */ 312 RECOMP_FLAGS_IN(); 313 eax = MEM32(ebp + (-0x3C)); /* 0x3100CCDF: mov eax, dword ptr [ebp - 0x3c] */ 314 ecx = MEM32(ebp + (-0x40)); /* 0x3100CCE2: mov ecx, dword ptr [ebp - 0x40] */ 315 PUSH32(esp, eax); /* 0x3100CCE5: push eax */ 316 PUSH32(esp, ecx); /* 0x3100CCE6: push ecx */ 317 ecx = ebp + (-0x44); /* 0x3100CCE7: lea ecx, [ebp - 0x44] */ 318 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x3100CCEA: mov byte ptr [ebp - 4], 4 */ 319 RECOMP_ICALL(0x3100E4D0u); /* 0x3100CCEE: call 0x3100e4d0 */ /* not lifted */ 320 RECOMP_FLAGS_IN(); 321 edx = MEM32(ebp + (-0x40)); /* 0x3100CCF3: mov edx, dword ptr [ebp - 0x40] */ 322 PUSH32(esp, edx); /* 0x3100CCF6: push edx */ 323 RECOMP_ICALL(0x31046858u); /* 0x3100CCF7: call 0x31046858 */ /* not lifted */ 324 RECOMP_FLAGS_IN(); 325 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 326 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 327 esp = esp + 4; /* 0x3100CCFC: add esp, 4 */ 328 _flag_k = FK_ADD; 329 ecx = ebp + (-0x70); /* 0x3100CCFF: lea ecx, [ebp - 0x70] */ 330 MEM32(ebp + (-0x40)) = ebx; /* 0x3100CD02: mov dword ptr [ebp - 0x40], ebx */ 331 MEM32(ebp + (-0x3C)) = ebx; /* 0x3100CD05: mov dword ptr [ebp - 0x3c], ebx */ 332 MEM32(ebp + (-0x38)) = ebx; /* 0x3100CD08: mov dword ptr [ebp - 0x38], ebx */ 333 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3100CD0B: mov byte ptr [ebp - 4], 0 */ 334 RECOMP_ICALL(0x3100E340u); /* 0x3100CD0F: call 0x3100e340 */ /* not lifted */ 335 RECOMP_FLAGS_IN(); 336 ecx = MEM32(ebp + (-0xC)); /* 0x3100CD14: mov ecx, dword ptr [ebp - 0xc] */ 337 eax = edi; /* 0x3100CD17: mov eax, edi */ 338 edi = POP32_VAL(esp); /* 0x3100CD19: pop edi */ 339 esi = POP32_VAL(esp); /* 0x3100CD1A: pop esi */ 340 ebx = POP32_VAL(esp); /* 0x3100CD1B: pop ebx */ 341 MEM32(FS_BASE + (0)) = ecx; /* 0x3100CD1C: mov dword ptr fs:[0], ecx */ 342 esp = ebp; /* 0x3100CD23: mov esp, ebp */ 343 ebp = POP32_VAL(esp); /* 0x3100CD25: pop ebp */ 344 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100CD26: ret 8 */ 345 RECOMP_REGS_OUT(); 346 } 347 348 void sub_3100CD30(void) { 349 int _fpu_cmp = 0; 350 uint32_t _cf = 0; 351 int _df = 1; 352 uint32_t _flag_k = FK_NONE; 353 uint32_t _flag_a = 0, _flag_b = 0; 354 uint32_t _itail_tgt = 0; 355 RECOMP_REGS_LOCALS 356 RECOMP_ENTER(0x3100CD30u); 357 358 L_3100CD30: 359 PUSH32(esp, ebp); /* 0x3100CD30: push ebp */ 360 ebp = esp; /* 0x3100CD31: mov ebp, esp */ 361 PUSH32(esp, 0xFFFFFFFFu); /* 0x3100CD33: push -1 */ 362 PUSH32(esp, 0x310477D2u); /* 0x3100CD35: push 0x310477d2 */ 363 eax = MEM32(FS_BASE + (0)); /* 0x3100CD3A: mov eax, dword ptr fs:[0] */ 364 PUSH32(esp, eax); /* 0x3100CD40: push eax */ 365 MEM32(FS_BASE + (0)) = esp; /* 0x3100CD41: mov dword ptr fs:[0], esp */ 366 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x68u); 367 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 368 esp = esp - 0x68u; /* 0x3100CD48: sub esp, 0x68 */ 369 _flag_k = FK_CMP; 370 PUSH32(esp, ebx); /* 0x3100CD4B: push ebx */ 371 PUSH32(esp, esi); /* 0x3100CD4C: push esi */ 372 PUSH32(esp, edi); /* 0x3100CD4D: push edi */ 373 esi = ecx; /* 0x3100CD4E: mov esi, ecx */ 374 PUSH32(esp, 0); /* 0x3100CD50: push 0 */ 375 MEM32(ebp + (-0x10)) = esi; /* 0x3100CD52: mov dword ptr [ebp - 0x10], esi */ 376 MEM32(ebp + (-0x14)) = 0; /* 0x3100CD55: mov dword ptr [ebp - 0x14], 0 */ 377 RECOMP_ICALL(0x31009E30u); /* 0x3100CD5C: call 0x31009e30 */ /* not lifted */ 378 RECOMP_FLAGS_IN(); 379 /* test LO8(eax), LO8(eax) */ /* 0x3100CD61: test al, al */ 380 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 381 _cf = 0; 382 _flag_k = FK_NARROW(FK_TEST, 24); 383 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100CDC4; /* 0x3100CD63: jne 0x3100cdc4 */ 384 L_3100CD65: 385 esi = MEM32(ebp + 0x8); /* 0x3100CD65: mov esi, dword ptr [ebp + 8] */ 386 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3100CD68: mov al, byte ptr [ebp + 0xb] */ 387 PUSH32(esp, 0); /* 0x3100CD6B: push 0 */ 388 ecx = esi; /* 0x3100CD6D: mov ecx, esi */ 389 MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x3100CD6F: mov byte ptr [esi], al */ 390 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x3100CD71: call dword ptr [0x310480d4] */ 391 RECOMP_FLAGS_IN(); 392 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 393 ecx = ecx | 0xFFFFFFFFu; /* 0x3100CD77: or ecx, 0xffffffff */ 394 _cf = 0; 395 _flag_k = FK_TEST; 396 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 397 eax = 0; /* 0x3100CD7A: xor eax, eax */ 398 _cf = 0; 399 _flag_k = FK_TEST; 400 edi = 0x31057D88u; /* 0x3100CD7C: mov edi, 0x31057d88 */ 401 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; } /* 0x3100CD81: repne scasb al, byte ptr es:[edi] */ 402 ecx = ~ecx; /* 0x3100CD83: not ecx */ 403 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 404 ecx = ecx - 1; /* 0x3100CD85: dec ecx */ 405 _flag_k = FK_DEC; 406 ebx = ecx; /* 0x3100CD86: mov ebx, ecx */ 407 PUSH32(esp, 1); /* 0x3100CD88: push 1 */ 408 PUSH32(esp, ebx); /* 0x3100CD8A: push ebx */ 409 ecx = esi; /* 0x3100CD8B: mov ecx, esi */ 410 RECOMP_ICALL(MEM32(0x31048070)); /* 0x3100CD8D: call dword ptr [0x31048070] */ 411 RECOMP_FLAGS_IN(); 412 /* test LO8(eax), LO8(eax) */ /* 0x3100CD93: test al, al */ 413 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 414 _cf = 0; 415 _flag_k = FK_NARROW(FK_TEST, 24); 416 if (TEST_Z(_flag_a, _flag_b)) goto L_3100CDBF; /* 0x3100CD95: je 0x3100cdbf */ 417 L_3100CD97: 418 edi = MEM32(esi + 0x4); /* 0x3100CD97: mov edi, dword ptr [esi + 4] */ 419 eax = MEM32(ebp + 0x8); /* 0x3100CD9A: mov eax, dword ptr [ebp + 8] */ 420 ecx = ebx; /* 0x3100CD9D: mov ecx, ebx */ 421 edx = ecx; /* 0x3100CD9F: mov edx, ecx */ 422 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3100CDA1: shr ecx, 2 */ 423 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 424 ecx = ecx >> 2u; /* 0x3100CDA1: shr ecx, 2 */ 425 esi = 0x31057D88u; /* 0x3100CDA4: mov esi, 0x31057d88 */ 426 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3100CDA9: 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; } 427 ecx = edx; /* 0x3100CDAB: mov ecx, edx */ 428 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 429 ecx = ecx & 3; /* 0x3100CDAD: and ecx, 3 */ 430 _cf = 0; 431 _flag_k = FK_TEST; 432 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3100CDB0: 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; } 433 ecx = MEM32(eax + 0x4); /* 0x3100CDB2: mov ecx, dword ptr [eax + 4] */ 434 MEM32(eax + 0x8) = ebx; /* 0x3100CDB5: mov dword ptr [eax + 8], ebx */ 435 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 436 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 437 ebx = ebx + ecx; /* 0x3100CDB8: add ebx, ecx */ 438 _flag_k = FK_ADD; 439 MEM8(ebx) = (uint8_t)(0); /* 0x3100CDBA: mov byte ptr [ebx], 0 */ 440 esi = eax; /* 0x3100CDBD: mov esi, eax */ 441 L_3100CDBF: 442 goto L_3100CF60; /* 0x3100CDBF: jmp 0x3100cf60 */ 443 L_3100CDC4: 444 PUSH32(esp, 0xFFFFFFFFu); /* 0x3100CDC4: push -1 */ 445 ecx = ebp + (-0x74); /* 0x3100CDC6: lea ecx, [ebp - 0x74] */ 446 RECOMP_ICALL(MEM32(0x310482C8)); /* 0x3100CDC9: call dword ptr [0x310482c8] */ 447 RECOMP_FLAGS_IN(); 448 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3100CDCF: mov al, byte ptr [ebp + 0xb] */ 449 PUSH32(esp, 0); /* 0x3100CDD2: push 0 */ 450 ecx = ebp + (-0x34); /* 0x3100CDD4: lea ecx, [ebp - 0x34] */ 451 MEM32(ebp + (-0x4)) = 1; /* 0x3100CDD7: mov dword ptr [ebp - 4], 1 */ 452 MEM8(ebp + (-0x34)) = (uint8_t)(LO8(eax)); /* 0x3100CDDE: mov byte ptr [ebp - 0x34], al */ 453 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x3100CDE1: call dword ptr [0x310480d4] */ 454 RECOMP_FLAGS_IN(); 455 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 456 ecx = ecx | 0xFFFFFFFFu; /* 0x3100CDE7: or ecx, 0xffffffff */ 457 _cf = 0; 458 _flag_k = FK_TEST; 459 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 460 eax = 0; /* 0x3100CDEA: xor eax, eax */ 461 _cf = 0; 462 _flag_k = FK_TEST; 463 edi = 0x31052400u; /* 0x3100CDEC: mov edi, 0x31052400 */ 464 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; } /* 0x3100CDF1: repne scasb al, byte ptr es:[edi] */ 465 ecx = ~ecx; /* 0x3100CDF3: not ecx */ 466 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 467 ecx = ecx - 1; /* 0x3100CDF5: dec ecx */ 468 _flag_k = FK_DEC; 469 ebx = ecx; /* 0x3100CDF6: mov ebx, ecx */ 470 PUSH32(esp, 1); /* 0x3100CDF8: push 1 */ 471 PUSH32(esp, ebx); /* 0x3100CDFA: push ebx */ 472 ecx = ebp + (-0x34); /* 0x3100CDFB: lea ecx, [ebp - 0x34] */ 473 RECOMP_ICALL(MEM32(0x31048070)); /* 0x3100CDFE: call dword ptr [0x31048070] */ 474 RECOMP_FLAGS_IN(); 475 /* test LO8(eax), LO8(eax) */ /* 0x3100CE04: test al, al */ 476 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 477 _cf = 0; 478 _flag_k = FK_NARROW(FK_TEST, 24); 479 if (TEST_Z(_flag_a, _flag_b)) goto L_3100CE2D; /* 0x3100CE06: je 0x3100ce2d */ 480 L_3100CE08: 481 edi = MEM32(ebp + (-0x30)); /* 0x3100CE08: mov edi, dword ptr [ebp - 0x30] */ 482 ecx = ebx; /* 0x3100CE0B: mov ecx, ebx */ 483 edx = ecx; /* 0x3100CE0D: mov edx, ecx */ 484 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3100CE0F: shr ecx, 2 */ 485 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 486 ecx = ecx >> 2u; /* 0x3100CE0F: shr ecx, 2 */ 487 esi = 0x31052400u; /* 0x3100CE12: mov esi, 0x31052400 */ 488 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3100CE17: 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; } 489 ecx = edx; /* 0x3100CE19: mov ecx, edx */ 490 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 491 ecx = ecx & 3; /* 0x3100CE1B: and ecx, 3 */ 492 _cf = 0; 493 _flag_k = FK_TEST; 494 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3100CE1E: 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; } 495 eax = MEM32(ebp + (-0x30)); /* 0x3100CE20: mov eax, dword ptr [ebp - 0x30] */ 496 esi = MEM32(ebp + (-0x10)); /* 0x3100CE23: mov esi, dword ptr [ebp - 0x10] */ 497 MEM32(ebp + (-0x2C)) = ebx; /* 0x3100CE26: mov dword ptr [ebp - 0x2c], ebx */ 498 MEM8(eax + ebx) = (uint8_t)(0); /* 0x3100CE29: mov byte ptr [eax + ebx], 0 */ 499 L_3100CE2D: 500 ecx = ebp + (-0x34); /* 0x3100CE2D: lea ecx, [ebp - 0x34] */ 501 PUSH32(esp, ecx); /* 0x3100CE30: push ecx */ 502 PUSH32(esp, 0x3105224Cu); /* 0x3100CE31: push 0x3105224c */ 503 ecx = ebp + (-0x74); /* 0x3100CE36: lea ecx, [ebp - 0x74] */ 504 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3100CE39: mov byte ptr [ebp - 4], 2 */ 505 RECOMP_ICALL(MEM32(0x310482CC)); /* 0x3100CE3D: call dword ptr [0x310482cc] */ 506 RECOMP_FLAGS_IN(); 507 PUSH32(esp, 1); /* 0x3100CE43: push 1 */ 508 ecx = ebp + (-0x34); /* 0x3100CE45: lea ecx, [ebp - 0x34] */ 509 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3100CE48: mov byte ptr [ebp - 4], 1 */ 510 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x3100CE4C: call dword ptr [0x310480d4] */ 511 RECOMP_FLAGS_IN(); 512 edx = MEM32(ebp + 0xC); /* 0x3100CE52: mov edx, dword ptr [ebp + 0xc] */ 513 PUSH32(esp, edx); /* 0x3100CE55: push edx */ 514 PUSH32(esp, 0x310523F4u); /* 0x3100CE56: push 0x310523f4 */ 515 ecx = ebp + (-0x74); /* 0x3100CE5B: lea ecx, [ebp - 0x74] */ 516 RECOMP_ICALL(MEM32(0x310482BC)); /* 0x3100CE5E: call dword ptr [0x310482bc] */ 517 RECOMP_FLAGS_IN(); 518 ecx = esi; /* 0x3100CE64: mov ecx, esi */ 519 RECOMP_ICALL(0x310013E0u); /* 0x3100CE66: call 0x310013e0 */ /* not lifted */ 520 RECOMP_FLAGS_IN(); 521 edi = esi + 0x30; /* 0x3100CE6B: lea edi, [esi + 0x30] */ 522 L_3100CE6E: 523 eax = ebp + (-0x74); /* 0x3100CE6E: lea eax, [ebp - 0x74] */ 524 PUSH32(esp, eax); /* 0x3100CE71: push eax */ 525 ecx = edi; /* 0x3100CE72: mov ecx, edi */ 526 RECOMP_ICALL(0x31010CA0u); /* 0x3100CE74: call 0x31010ca0 */ /* not lifted */ 527 RECOMP_FLAGS_IN(); 528 ecx = ebp + (-0x74); /* 0x3100CE79: lea ecx, [ebp - 0x74] */ 529 PUSH32(esp, ecx); /* 0x3100CE7C: push ecx */ 530 ecx = edi; /* 0x3100CE7D: mov ecx, edi */ 531 RECOMP_ICALL(0x31010F40u); /* 0x3100CE7F: call 0x31010f40 */ /* not lifted */ 532 RECOMP_FLAGS_IN(); 533 /* test LO8(eax), LO8(eax) */ /* 0x3100CE84: test al, al */ 534 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 535 _cf = 0; 536 _flag_k = FK_NARROW(FK_TEST, 24); 537 RECOMP_BACKEDGE(); 538 if (TEST_Z(_flag_a, _flag_b)) goto L_3100CE6E; /* 0x3100CE86: je 0x3100ce6e */ 539 L_3100CE88: 540 ecx = esi; /* 0x3100CE88: mov ecx, esi */ 541 RECOMP_ICALL(0x310013E0u); /* 0x3100CE8A: call 0x310013e0 */ /* not lifted */ 542 RECOMP_FLAGS_IN(); 543 SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x3100CE8F: mov dl, byte ptr [ebp + 0xb] */ 544 PUSH32(esp, 0); /* 0x3100CE92: push 0 */ 545 ecx = ebp + (-0x24); /* 0x3100CE94: lea ecx, [ebp - 0x24] */ 546 MEM8(ebp + (-0x24)) = (uint8_t)(LO8(edx)); /* 0x3100CE97: mov byte ptr [ebp - 0x24], dl */ 547 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x3100CE9A: call dword ptr [0x310480d4] */ 548 RECOMP_FLAGS_IN(); 549 PUSH32(esp, 0); /* 0x3100CEA0: push 0 */ 550 eax = ebp + (-0x24); /* 0x3100CEA2: lea eax, [ebp - 0x24] */ 551 PUSH32(esp, eax); /* 0x3100CEA5: push eax */ 552 PUSH32(esp, 0x310522ECu); /* 0x3100CEA6: push 0x310522ec */ 553 ecx = ebp + (-0x74); /* 0x3100CEAB: lea ecx, [ebp - 0x74] */ 554 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x3100CEAE: mov byte ptr [ebp - 4], 3 */ 555 RECOMP_ICALL(MEM32(0x310482D0)); /* 0x3100CEB2: call dword ptr [0x310482d0] */ 556 RECOMP_FLAGS_IN(); 557 esi = MEM32(ebp + 0x8); /* 0x3100CEB8: mov esi, dword ptr [ebp + 8] */ 558 SET_LO8(ecx, MEM8(ebp + (-0x24))); /* 0x3100CEBB: mov cl, byte ptr [ebp - 0x24] */ 559 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 560 edi = 0; /* 0x3100CEBE: xor edi, edi */ 561 _cf = 0; 562 _flag_k = FK_TEST; 563 MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x3100CEC0: mov byte ptr [esi], cl */ 564 MEM32(esi + 0x4) = edi; /* 0x3100CEC2: mov dword ptr [esi + 4], edi */ 565 MEM32(esi + 0x8) = edi; /* 0x3100CEC5: mov dword ptr [esi + 8], edi */ 566 MEM32(esi + 0xC) = edi; /* 0x3100CEC8: mov dword ptr [esi + 0xc], edi */ 567 edx = MEM32(0x310480F8); /* 0x3100CECB: mov edx, dword ptr [0x310480f8] */ 568 eax = MEM32(edx); /* 0x3100CED1: mov eax, dword ptr [edx] */ 569 PUSH32(esp, eax); /* 0x3100CED3: push eax */ 570 PUSH32(esp, edi); /* 0x3100CED4: push edi */ 571 ecx = ebp + (-0x24); /* 0x3100CED5: lea ecx, [ebp - 0x24] */ 572 PUSH32(esp, ecx); /* 0x3100CED8: push ecx */ 573 ecx = esi; /* 0x3100CED9: mov ecx, esi */ 574 RECOMP_ICALL(MEM32(0x310480FC)); /* 0x3100CEDB: call dword ptr [0x310480fc] */ 575 RECOMP_FLAGS_IN(); 576 eax = MEM32(ebp + (-0x20)); /* 0x3100CEE1: mov eax, dword ptr [ebp - 0x20] */ 577 /* cmp eax, edi */ /* 0x3100CEE4: cmp eax, edi */ 578 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 579 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 580 _flag_k = FK_CMP; 581 MEM32(ebp + (-0x14)) = 1; /* 0x3100CEE6: mov dword ptr [ebp - 0x14], 1 */ 582 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100CF0B; /* 0x3100CEED: je 0x3100cf0b */ 583 L_3100CEEF: 584 ecx = eax + (-0x1); /* 0x3100CEEF: lea ecx, [eax - 1] */ 585 SET_LO8(eax, MEM8(ecx)); /* 0x3100CEF2: mov al, byte ptr [ecx] */ 586 /* test LO8(eax), LO8(eax) */ /* 0x3100CEF4: test al, al */ 587 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 588 _cf = 0; 589 _flag_k = FK_NARROW(FK_TEST, 24); 590 if (TEST_Z(_flag_a, _flag_b)) goto L_3100CF02; /* 0x3100CEF6: je 0x3100cf02 */ 591 L_3100CEF8: 592 /* cmp LO8(eax), 0xFFu */ /* 0x3100CEF8: cmp al, 0xff */ 593 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 594 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 595 _flag_k = FK_NARROW(FK_CMP, 24); 596 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100CF02; /* 0x3100CEFA: je 0x3100cf02 */ 597 L_3100CEFC: 598 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 599 SET_LO8(eax, LO8(eax) - 1); /* 0x3100CEFC: dec al */ 600 _flag_k = FK_NARROW(FK_DEC, 24); 601 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3100CEFE: mov byte ptr [ecx], al */ 602 goto L_3100CF0B; /* 0x3100CF00: jmp 0x3100cf0b */ 603 L_3100CF02: 604 PUSH32(esp, ecx); /* 0x3100CF02: push ecx */ 605 RECOMP_ICALL(0x31046858u); /* 0x3100CF03: call 0x31046858 */ /* not lifted */ 606 RECOMP_FLAGS_IN(); 607 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 608 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 609 esp = esp + 4; /* 0x3100CF08: add esp, 4 */ 610 _flag_k = FK_ADD; 611 L_3100CF0B: 612 MEM32(ebp + (-0x20)) = edi; /* 0x3100CF0B: mov dword ptr [ebp - 0x20], edi */ 613 MEM32(ebp + (-0x1C)) = edi; /* 0x3100CF0E: mov dword ptr [ebp - 0x1c], edi */ 614 MEM32(ebp + (-0x18)) = edi; /* 0x3100CF11: mov dword ptr [ebp - 0x18], edi */ 615 MEM32(ebp + (-0x74)) = 0x3104876Cu; /* 0x3100CF14: mov dword ptr [ebp - 0x74], 0x3104876c */ 616 ecx = ebp + (-0x74); /* 0x3100CF1B: lea ecx, [ebp - 0x74] */ 617 MEM32(ebp + (-0x4)) = 5; /* 0x3100CF1E: mov dword ptr [ebp - 4], 5 */ 618 RECOMP_ICALL(MEM32(0x310482F8)); /* 0x3100CF25: call dword ptr [0x310482f8] */ 619 RECOMP_FLAGS_IN(); 620 edx = MEM32(ebp + (-0x3C)); /* 0x3100CF2B: mov edx, dword ptr [ebp - 0x3c] */ 621 eax = MEM32(ebp + (-0x40)); /* 0x3100CF2E: mov eax, dword ptr [ebp - 0x40] */ 622 PUSH32(esp, edx); /* 0x3100CF31: push edx */ 623 PUSH32(esp, eax); /* 0x3100CF32: push eax */ 624 ecx = ebp + (-0x44); /* 0x3100CF33: lea ecx, [ebp - 0x44] */ 625 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x3100CF36: mov byte ptr [ebp - 4], 4 */ 626 RECOMP_ICALL(0x3100E4D0u); /* 0x3100CF3A: call 0x3100e4d0 */ /* not lifted */ 627 RECOMP_FLAGS_IN(); 628 ecx = MEM32(ebp + (-0x40)); /* 0x3100CF3F: mov ecx, dword ptr [ebp - 0x40] */ 629 PUSH32(esp, ecx); /* 0x3100CF42: push ecx */ 630 RECOMP_ICALL(0x31046858u); /* 0x3100CF43: call 0x31046858 */ /* not lifted */ 631 RECOMP_FLAGS_IN(); 632 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 633 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 634 esp = esp + 4; /* 0x3100CF48: add esp, 4 */ 635 _flag_k = FK_ADD; 636 ecx = ebp + (-0x70); /* 0x3100CF4B: lea ecx, [ebp - 0x70] */ 637 MEM32(ebp + (-0x40)) = edi; /* 0x3100CF4E: mov dword ptr [ebp - 0x40], edi */ 638 MEM32(ebp + (-0x3C)) = edi; /* 0x3100CF51: mov dword ptr [ebp - 0x3c], edi */ 639 MEM32(ebp + (-0x38)) = edi; /* 0x3100CF54: mov dword ptr [ebp - 0x38], edi */ 640 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3100CF57: mov byte ptr [ebp - 4], 0 */ 641 RECOMP_ICALL(0x3100E340u); /* 0x3100CF5B: call 0x3100e340 */ /* not lifted */ 642 RECOMP_FLAGS_IN(); 643 L_3100CF60: 644 ecx = MEM32(ebp + (-0xC)); /* 0x3100CF60: mov ecx, dword ptr [ebp - 0xc] */ 645 edi = POP32_VAL(esp); /* 0x3100CF63: pop edi */ 646 eax = esi; /* 0x3100CF64: mov eax, esi */ 647 esi = POP32_VAL(esp); /* 0x3100CF66: pop esi */ 648 ebx = POP32_VAL(esp); /* 0x3100CF67: pop ebx */ 649 MEM32(FS_BASE + (0)) = ecx; /* 0x3100CF68: mov dword ptr fs:[0], ecx */ 650 esp = ebp; /* 0x3100CF6F: mov esp, ebp */ 651 ebp = POP32_VAL(esp); /* 0x3100CF71: pop ebp */ 652 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100CF72: ret 8 */ 653 RECOMP_REGS_OUT(); 654 } 655 656 void sub_3100CF60(void) { 657 int _fpu_cmp = 0; 658 uint32_t _cf = 0; 659 int _df = 1; 660 uint32_t _flag_k = FK_NONE; 661 uint32_t _flag_a = 0, _flag_b = 0; 662 uint32_t _itail_tgt = 0; 663 RECOMP_REGS_LOCALS 664 RECOMP_ENTER(0x3100CF60u); 665 666 L_3100CF60: 667 ecx = MEM32(ebp + (-0xC)); /* 0x3100CF60: mov ecx, dword ptr [ebp - 0xc] */ 668 edi = POP32_VAL(esp); /* 0x3100CF63: pop edi */ 669 eax = esi; /* 0x3100CF64: mov eax, esi */ 670 esi = POP32_VAL(esp); /* 0x3100CF66: pop esi */ 671 ebx = POP32_VAL(esp); /* 0x3100CF67: pop ebx */ 672 MEM32(FS_BASE + (0)) = ecx; /* 0x3100CF68: mov dword ptr fs:[0], ecx */ 673 esp = ebp; /* 0x3100CF6F: mov esp, ebp */ 674 ebp = POP32_VAL(esp); /* 0x3100CF71: pop ebp */ 675 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100CF72: ret 8 */ 676 RECOMP_REGS_OUT(); 677 } 678 679 void sub_3100CF80(void) { 680 int _fpu_cmp = 0; 681 uint32_t _cf = 0; 682 int _df = 1; 683 uint32_t _flag_k = FK_NONE; 684 uint32_t _flag_a = 0, _flag_b = 0; 685 uint32_t _itail_tgt = 0; 686 RECOMP_REGS_LOCALS 687 RECOMP_ENTER(0x3100CF80u); 688 689 L_3100CF80: 690 PUSH32(esp, ebp); /* 0x3100CF80: push ebp */ 691 ebp = esp; /* 0x3100CF81: mov ebp, esp */ 692 PUSH32(esp, 0xFFFFFFFFu); /* 0x3100CF83: push -1 */ 693 PUSH32(esp, 0x31047822u); /* 0x3100CF85: push 0x31047822 */ 694 eax = MEM32(FS_BASE + (0)); /* 0x3100CF8A: mov eax, dword ptr fs:[0] */ 695 PUSH32(esp, eax); /* 0x3100CF90: push eax */ 696 MEM32(FS_BASE + (0)) = esp; /* 0x3100CF91: mov dword ptr fs:[0], esp */ 697 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x64u); 698 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 699 esp = esp - 0x64u; /* 0x3100CF98: sub esp, 0x64 */ 700 _flag_k = FK_CMP; 701 PUSH32(esp, ebx); /* 0x3100CF9B: push ebx */ 702 PUSH32(esp, esi); /* 0x3100CF9C: push esi */ 703 PUSH32(esp, edi); /* 0x3100CF9D: push edi */ 704 esi = ecx; /* 0x3100CF9E: mov esi, ecx */ 705 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 706 ebx = 0; /* 0x3100CFA0: xor ebx, ebx */ 707 _cf = 0; 708 _flag_k = FK_TEST; 709 PUSH32(esp, 0xFFFFFFFFu); /* 0x3100CFA2: push -1 */ 710 ecx = ebp + (-0x70); /* 0x3100CFA4: lea ecx, [ebp - 0x70] */ 711 MEM32(ebp + (-0x10)) = ebx; /* 0x3100CFA7: mov dword ptr [ebp - 0x10], ebx */ 712 RECOMP_ICALL(MEM32(0x310482C8)); /* 0x3100CFAA: call dword ptr [0x310482c8] */ 713 RECOMP_FLAGS_IN(); 714 SET_LO8(eax, MEM8(ebp + 0xF)); /* 0x3100CFB0: mov al, byte ptr [ebp + 0xf] */ 715 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 716 ecx = ecx | 0xFFFFFFFFu; /* 0x3100CFB3: or ecx, 0xffffffff */ 717 _cf = 0; 718 _flag_k = FK_TEST; 719 MEM8(ebp + (-0x30)) = (uint8_t)(LO8(eax)); /* 0x3100CFB6: mov byte ptr [ebp - 0x30], al */ 720 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 721 eax = 0; /* 0x3100CFB9: xor eax, eax */ 722 _cf = 0; 723 _flag_k = FK_TEST; 724 edi = 0x31052408u; /* 0x3100CFBB: mov edi, 0x31052408 */ 725 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; } /* 0x3100CFC0: repne scasb al, byte ptr es:[edi] */ 726 ecx = ~ecx; /* 0x3100CFC2: not ecx */ 727 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 728 ecx = ecx - 1; /* 0x3100CFC4: dec ecx */ 729 _flag_k = FK_DEC; 730 PUSH32(esp, ecx); /* 0x3100CFC5: push ecx */ 731 PUSH32(esp, 0x31052408u); /* 0x3100CFC6: push 0x31052408 */ 732 ecx = ebp + (-0x30); /* 0x3100CFCB: lea ecx, [ebp - 0x30] */ 733 MEM32(ebp + (-0x4)) = 1; /* 0x3100CFCE: mov dword ptr [ebp - 4], 1 */ 734 MEM32(ebp + (-0x2C)) = ebx; /* 0x3100CFD5: mov dword ptr [ebp - 0x2c], ebx */ 735 MEM32(ebp + (-0x28)) = ebx; /* 0x3100CFD8: mov dword ptr [ebp - 0x28], ebx */ 736 MEM32(ebp + (-0x24)) = ebx; /* 0x3100CFDB: mov dword ptr [ebp - 0x24], ebx */ 737 RECOMP_ICALL(MEM32(0x310480F0)); /* 0x3100CFDE: call dword ptr [0x310480f0] */ 738 RECOMP_FLAGS_IN(); 739 ecx = ebp + (-0x30); /* 0x3100CFE4: lea ecx, [ebp - 0x30] */ 740 PUSH32(esp, ecx); /* 0x3100CFE7: push ecx */ 741 PUSH32(esp, 0x3105224Cu); /* 0x3100CFE8: push 0x3105224c */ 742 ecx = ebp + (-0x70); /* 0x3100CFED: lea ecx, [ebp - 0x70] */ 743 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3100CFF0: mov byte ptr [ebp - 4], 2 */ 744 RECOMP_ICALL(MEM32(0x310482CC)); /* 0x3100CFF4: call dword ptr [0x310482cc] */ 745 RECOMP_FLAGS_IN(); 746 eax = MEM32(ebp + (-0x2C)); /* 0x3100CFFA: mov eax, dword ptr [ebp - 0x2c] */ 747 /* cmp eax, ebx */ /* 0x3100CFFD: cmp eax, ebx */ 748 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 749 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 750 _flag_k = FK_CMP; 751 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3100CFFF: mov byte ptr [ebp - 4], 1 */ 752 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100D021; /* 0x3100D003: je 0x3100d021 */ 753 L_3100D005: 754 ecx = eax + (-0x1); /* 0x3100D005: lea ecx, [eax - 1] */ 755 SET_LO8(eax, MEM8(ecx)); /* 0x3100D008: mov al, byte ptr [ecx] */ 756 /* cmp LO8(eax), LO8(ebx) */ /* 0x3100D00A: cmp al, bl */ 757 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 758 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 759 _flag_k = FK_NARROW(FK_CMP, 24); 760 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100D018; /* 0x3100D00C: je 0x3100d018 */ 761 L_3100D00E: 762 /* cmp LO8(eax), 0xFFu */ /* 0x3100D00E: cmp al, 0xff */ 763 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 764 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 765 _flag_k = FK_NARROW(FK_CMP, 24); 766 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100D018; /* 0x3100D010: je 0x3100d018 */ 767 L_3100D012: 768 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 769 SET_LO8(eax, LO8(eax) - 1); /* 0x3100D012: dec al */ 770 _flag_k = FK_NARROW(FK_DEC, 24); 771 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3100D014: mov byte ptr [ecx], al */ 772 goto L_3100D021; /* 0x3100D016: jmp 0x3100d021 */ 773 L_3100D018: 774 PUSH32(esp, ecx); /* 0x3100D018: push ecx */ 775 RECOMP_ICALL(0x31046858u); /* 0x3100D019: call 0x31046858 */ /* not lifted */ 776 RECOMP_FLAGS_IN(); 777 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 778 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 779 esp = esp + 4; /* 0x3100D01E: add esp, 4 */ 780 _flag_k = FK_ADD; 781 L_3100D021: 782 edx = MEM32(ebp + 0xC); /* 0x3100D021: mov edx, dword ptr [ebp + 0xc] */ 783 PUSH32(esp, edx); /* 0x3100D024: push edx */ 784 PUSH32(esp, 0x310523F4u); /* 0x3100D025: push 0x310523f4 */ 785 ecx = ebp + (-0x70); /* 0x3100D02A: lea ecx, [ebp - 0x70] */ 786 RECOMP_ICALL(MEM32(0x310482BC)); /* 0x3100D02D: call dword ptr [0x310482bc] */ 787 RECOMP_FLAGS_IN(); 788 ecx = esi; /* 0x3100D033: mov ecx, esi */ 789 RECOMP_ICALL(0x310013E0u); /* 0x3100D035: call 0x310013e0 */ /* not lifted */ 790 RECOMP_FLAGS_IN(); 791 edi = esi + 0x30; /* 0x3100D03A: lea edi, [esi + 0x30] */ 792 L_3100D03D: 793 eax = ebp + (-0x70); /* 0x3100D03D: lea eax, [ebp - 0x70] */ 794 PUSH32(esp, eax); /* 0x3100D040: push eax */ 795 ecx = edi; /* 0x3100D041: mov ecx, edi */ 796 RECOMP_ICALL(0x31010CA0u); /* 0x3100D043: call 0x31010ca0 */ /* not lifted */ 797 RECOMP_FLAGS_IN(); 798 ecx = ebp + (-0x70); /* 0x3100D048: lea ecx, [ebp - 0x70] */ 799 PUSH32(esp, ecx); /* 0x3100D04B: push ecx */ 800 ecx = edi; /* 0x3100D04C: mov ecx, edi */ 801 RECOMP_ICALL(0x31010F40u); /* 0x3100D04E: call 0x31010f40 */ /* not lifted */ 802 RECOMP_FLAGS_IN(); 803 /* test LO8(eax), LO8(eax) */ /* 0x3100D053: test al, al */ 804 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 805 _cf = 0; 806 _flag_k = FK_NARROW(FK_TEST, 24); 807 RECOMP_BACKEDGE(); 808 if (TEST_Z(_flag_a, _flag_b)) goto L_3100D03D; /* 0x3100D055: je 0x3100d03d */ 809 L_3100D057: 810 ecx = esi; /* 0x3100D057: mov ecx, esi */ 811 RECOMP_ICALL(0x310013E0u); /* 0x3100D059: call 0x310013e0 */ /* not lifted */ 812 RECOMP_FLAGS_IN(); 813 SET_LO8(edx, MEM8(ebp + 0xF)); /* 0x3100D05E: mov dl, byte ptr [ebp + 0xf] */ 814 PUSH32(esp, ebx); /* 0x3100D061: push ebx */ 815 ecx = ebp + (-0x20); /* 0x3100D062: lea ecx, [ebp - 0x20] */ 816 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(edx)); /* 0x3100D065: mov byte ptr [ebp - 0x20], dl */ 817 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x3100D068: call dword ptr [0x310480d4] */ 818 RECOMP_FLAGS_IN(); 819 PUSH32(esp, ebx); /* 0x3100D06E: push ebx */ 820 eax = ebp + (-0x20); /* 0x3100D06F: lea eax, [ebp - 0x20] */ 821 PUSH32(esp, eax); /* 0x3100D072: push eax */ 822 PUSH32(esp, 0x310522ECu); /* 0x3100D073: push 0x310522ec */ 823 ecx = ebp + (-0x70); /* 0x3100D078: lea ecx, [ebp - 0x70] */ 824 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x3100D07B: mov byte ptr [ebp - 4], 3 */ 825 RECOMP_ICALL(MEM32(0x310482D0)); /* 0x3100D07F: call dword ptr [0x310482d0] */ 826 RECOMP_FLAGS_IN(); 827 esi = MEM32(ebp + 0x8); /* 0x3100D085: mov esi, dword ptr [ebp + 8] */ 828 SET_LO8(ecx, MEM8(ebp + (-0x20))); /* 0x3100D088: mov cl, byte ptr [ebp - 0x20] */ 829 MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x3100D08B: mov byte ptr [esi], cl */ 830 MEM32(esi + 0x4) = ebx; /* 0x3100D08D: mov dword ptr [esi + 4], ebx */ 831 MEM32(esi + 0x8) = ebx; /* 0x3100D090: mov dword ptr [esi + 8], ebx */ 832 MEM32(esi + 0xC) = ebx; /* 0x3100D093: mov dword ptr [esi + 0xc], ebx */ 833 edx = MEM32(0x310480F8); /* 0x3100D096: mov edx, dword ptr [0x310480f8] */ 834 eax = MEM32(edx); /* 0x3100D09C: mov eax, dword ptr [edx] */ 835 PUSH32(esp, eax); /* 0x3100D09E: push eax */ 836 PUSH32(esp, ebx); /* 0x3100D09F: push ebx */ 837 ecx = ebp + (-0x20); /* 0x3100D0A0: lea ecx, [ebp - 0x20] */ 838 PUSH32(esp, ecx); /* 0x3100D0A3: push ecx */ 839 ecx = esi; /* 0x3100D0A4: mov ecx, esi */ 840 RECOMP_ICALL(MEM32(0x310480FC)); /* 0x3100D0A6: call dword ptr [0x310480fc] */ 841 RECOMP_FLAGS_IN(); 842 MEM32(ebp + (-0x10)) = 1; /* 0x3100D0AC: mov dword ptr [ebp - 0x10], 1 */ 843 eax = MEM32(ebp + (-0x1C)); /* 0x3100D0B3: mov eax, dword ptr [ebp - 0x1c] */ 844 /* cmp eax, ebx */ /* 0x3100D0B6: cmp eax, ebx */ 845 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 846 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 847 _flag_k = FK_CMP; 848 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100D0D6; /* 0x3100D0B8: je 0x3100d0d6 */ 849 L_3100D0BA: 850 ecx = eax + (-0x1); /* 0x3100D0BA: lea ecx, [eax - 1] */ 851 SET_LO8(eax, MEM8(ecx)); /* 0x3100D0BD: mov al, byte ptr [ecx] */ 852 /* cmp LO8(eax), LO8(ebx) */ /* 0x3100D0BF: cmp al, bl */ 853 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 854 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 855 _flag_k = FK_NARROW(FK_CMP, 24); 856 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100D0CD; /* 0x3100D0C1: je 0x3100d0cd */ 857 L_3100D0C3: 858 /* cmp LO8(eax), 0xFFu */ /* 0x3100D0C3: cmp al, 0xff */ 859 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 860 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 861 _flag_k = FK_NARROW(FK_CMP, 24); 862 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100D0CD; /* 0x3100D0C5: je 0x3100d0cd */ 863 L_3100D0C7: 864 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 865 SET_LO8(eax, LO8(eax) - 1); /* 0x3100D0C7: dec al */ 866 _flag_k = FK_NARROW(FK_DEC, 24); 867 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3100D0C9: mov byte ptr [ecx], al */ 868 goto L_3100D0D6; /* 0x3100D0CB: jmp 0x3100d0d6 */ 869 L_3100D0CD: 870 PUSH32(esp, ecx); /* 0x3100D0CD: push ecx */ 871 RECOMP_ICALL(0x31046858u); /* 0x3100D0CE: call 0x31046858 */ /* not lifted */ 872 RECOMP_FLAGS_IN(); 873 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 874 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 875 esp = esp + 4; /* 0x3100D0D3: add esp, 4 */ 876 _flag_k = FK_ADD; 877 L_3100D0D6: 878 MEM32(ebp + (-0x1C)) = ebx; /* 0x3100D0D6: mov dword ptr [ebp - 0x1c], ebx */ 879 MEM32(ebp + (-0x18)) = ebx; /* 0x3100D0D9: mov dword ptr [ebp - 0x18], ebx */ 880 MEM32(ebp + (-0x14)) = ebx; /* 0x3100D0DC: mov dword ptr [ebp - 0x14], ebx */ 881 MEM32(ebp + (-0x70)) = 0x3104876Cu; /* 0x3100D0DF: mov dword ptr [ebp - 0x70], 0x3104876c */ 882 ecx = ebp + (-0x70); /* 0x3100D0E6: lea ecx, [ebp - 0x70] */ 883 MEM32(ebp + (-0x4)) = 5; /* 0x3100D0E9: mov dword ptr [ebp - 4], 5 */ 884 RECOMP_ICALL(MEM32(0x310482F8)); /* 0x3100D0F0: call dword ptr [0x310482f8] */ 885 RECOMP_FLAGS_IN(); 886 edx = MEM32(ebp + (-0x38)); /* 0x3100D0F6: mov edx, dword ptr [ebp - 0x38] */ 887 eax = MEM32(ebp + (-0x3C)); /* 0x3100D0F9: mov eax, dword ptr [ebp - 0x3c] */ 888 PUSH32(esp, edx); /* 0x3100D0FC: push edx */ 889 PUSH32(esp, eax); /* 0x3100D0FD: push eax */ 890 ecx = ebp + (-0x40); /* 0x3100D0FE: lea ecx, [ebp - 0x40] */ 891 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x3100D101: mov byte ptr [ebp - 4], 4 */ 892 RECOMP_ICALL(0x3100E4D0u); /* 0x3100D105: call 0x3100e4d0 */ /* not lifted */ 893 RECOMP_FLAGS_IN(); 894 ecx = MEM32(ebp + (-0x3C)); /* 0x3100D10A: mov ecx, dword ptr [ebp - 0x3c] */ 895 PUSH32(esp, ecx); /* 0x3100D10D: push ecx */ 896 RECOMP_ICALL(0x31046858u); /* 0x3100D10E: call 0x31046858 */ /* not lifted */ 897 RECOMP_FLAGS_IN(); 898 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 899 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 900 esp = esp + 4; /* 0x3100D113: add esp, 4 */ 901 _flag_k = FK_ADD; 902 ecx = ebp + (-0x6C); /* 0x3100D116: lea ecx, [ebp - 0x6c] */ 903 MEM32(ebp + (-0x3C)) = ebx; /* 0x3100D119: mov dword ptr [ebp - 0x3c], ebx */ 904 MEM32(ebp + (-0x38)) = ebx; /* 0x3100D11C: mov dword ptr [ebp - 0x38], ebx */ 905 MEM32(ebp + (-0x34)) = ebx; /* 0x3100D11F: mov dword ptr [ebp - 0x34], ebx */ 906 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3100D122: mov byte ptr [ebp - 4], bl */ 907 RECOMP_ICALL(0x3100E340u); /* 0x3100D125: call 0x3100e340 */ /* not lifted */ 908 RECOMP_FLAGS_IN(); 909 ecx = MEM32(ebp + (-0xC)); /* 0x3100D12A: mov ecx, dword ptr [ebp - 0xc] */ 910 edi = POP32_VAL(esp); /* 0x3100D12D: pop edi */ 911 eax = esi; /* 0x3100D12E: mov eax, esi */ 912 esi = POP32_VAL(esp); /* 0x3100D130: pop esi */ 913 ebx = POP32_VAL(esp); /* 0x3100D131: pop ebx */ 914 MEM32(FS_BASE + (0)) = ecx; /* 0x3100D132: mov dword ptr fs:[0], ecx */ 915 esp = ebp; /* 0x3100D139: mov esp, ebp */ 916 ebp = POP32_VAL(esp); /* 0x3100D13B: pop ebp */ 917 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100D13C: ret 8 */ 918 RECOMP_REGS_OUT(); 919 } 920 921 void sub_3100D140(void) { 922 int _fpu_cmp = 0; 923 uint32_t _cf = 0; 924 int _df = 1; 925 uint32_t _flag_k = FK_NONE; 926 uint32_t _flag_a = 0, _flag_b = 0; 927 uint32_t _itail_tgt = 0; 928 RECOMP_REGS_LOCALS 929 RECOMP_ENTER(0x3100D140u); 930 931 L_3100D140: 932 PUSH32(esp, ebp); /* 0x3100D140: push ebp */ 933 ebp = esp; /* 0x3100D141: mov ebp, esp */ 934 PUSH32(esp, 0xFFFFFFFFu); /* 0x3100D143: push -1 */ 935 PUSH32(esp, 0x31047872u); /* 0x3100D145: push 0x31047872 */ 936 eax = MEM32(FS_BASE + (0)); /* 0x3100D14A: mov eax, dword ptr fs:[0] */ 937 PUSH32(esp, eax); /* 0x3100D150: push eax */ 938 MEM32(FS_BASE + (0)) = esp; /* 0x3100D151: mov dword ptr fs:[0], esp */ 939 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x68u); 940 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 941 esp = esp - 0x68u; /* 0x3100D158: sub esp, 0x68 */ 942 _flag_k = FK_CMP; 943 PUSH32(esp, ebx); /* 0x3100D15B: push ebx */ 944 PUSH32(esp, esi); /* 0x3100D15C: push esi */ 945 PUSH32(esp, edi); /* 0x3100D15D: push edi */ 946 esi = ecx; /* 0x3100D15E: mov esi, ecx */ 947 PUSH32(esp, 0); /* 0x3100D160: push 0 */ 948 MEM32(ebp + (-0x10)) = esi; /* 0x3100D162: mov dword ptr [ebp - 0x10], esi */ 949 MEM32(ebp + (-0x14)) = 0; /* 0x3100D165: mov dword ptr [ebp - 0x14], 0 */ 950 RECOMP_ICALL(0x31009E30u); /* 0x3100D16C: call 0x31009e30 */ /* not lifted */ 951 RECOMP_FLAGS_IN(); 952 /* test LO8(eax), LO8(eax) */ /* 0x3100D171: test al, al */ 953 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 954 _cf = 0; 955 _flag_k = FK_NARROW(FK_TEST, 24); 956 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100D1D4; /* 0x3100D173: jne 0x3100d1d4 */ 957 L_3100D175: 958 esi = MEM32(ebp + 0x8); /* 0x3100D175: mov esi, dword ptr [ebp + 8] */ 959 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3100D178: mov al, byte ptr [ebp + 0xb] */ 960 PUSH32(esp, 0); /* 0x3100D17B: push 0 */ 961 ecx = esi; /* 0x3100D17D: mov ecx, esi */ 962 MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x3100D17F: mov byte ptr [esi], al */ 963 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x3100D181: call dword ptr [0x310480d4] */ 964 RECOMP_FLAGS_IN(); 965 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 966 ecx = ecx | 0xFFFFFFFFu; /* 0x3100D187: or ecx, 0xffffffff */ 967 _cf = 0; 968 _flag_k = FK_TEST; 969 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 970 eax = 0; /* 0x3100D18A: xor eax, eax */ 971 _cf = 0; 972 _flag_k = FK_TEST; 973 edi = 0x31057D88u; /* 0x3100D18C: mov edi, 0x31057d88 */ 974 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; } /* 0x3100D191: repne scasb al, byte ptr es:[edi] */ 975 ecx = ~ecx; /* 0x3100D193: not ecx */ 976 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 977 ecx = ecx - 1; /* 0x3100D195: dec ecx */ 978 _flag_k = FK_DEC; 979 ebx = ecx; /* 0x3100D196: mov ebx, ecx */ 980 PUSH32(esp, 1); /* 0x3100D198: push 1 */ 981 PUSH32(esp, ebx); /* 0x3100D19A: push ebx */ 982 ecx = esi; /* 0x3100D19B: mov ecx, esi */ 983 RECOMP_ICALL(MEM32(0x31048070)); /* 0x3100D19D: call dword ptr [0x31048070] */ 984 RECOMP_FLAGS_IN(); 985 /* test LO8(eax), LO8(eax) */ /* 0x3100D1A3: test al, al */ 986 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 987 _cf = 0; 988 _flag_k = FK_NARROW(FK_TEST, 24); 989 if (TEST_Z(_flag_a, _flag_b)) goto L_3100D1CF; /* 0x3100D1A5: je 0x3100d1cf */ 990 L_3100D1A7: 991 edi = MEM32(esi + 0x4); /* 0x3100D1A7: mov edi, dword ptr [esi + 4] */ 992 eax = MEM32(ebp + 0x8); /* 0x3100D1AA: mov eax, dword ptr [ebp + 8] */ 993 ecx = ebx; /* 0x3100D1AD: mov ecx, ebx */ 994 edx = ecx; /* 0x3100D1AF: mov edx, ecx */ 995 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3100D1B1: shr ecx, 2 */ 996 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 997 ecx = ecx >> 2u; /* 0x3100D1B1: shr ecx, 2 */ 998 esi = 0x31057D88u; /* 0x3100D1B4: mov esi, 0x31057d88 */ 999 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3100D1B9: 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; } 1000 ecx = edx; /* 0x3100D1BB: mov ecx, edx */ 1001 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 1002 ecx = ecx & 3; /* 0x3100D1BD: and ecx, 3 */ 1003 _cf = 0; 1004 _flag_k = FK_TEST; 1005 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3100D1C0: 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; } 1006 ecx = MEM32(eax + 0x4); /* 0x3100D1C2: mov ecx, dword ptr [eax + 4] */ 1007 MEM32(eax + 0x8) = ebx; /* 0x3100D1C5: mov dword ptr [eax + 8], ebx */ 1008 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 1009 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1010 ebx = ebx + ecx; /* 0x3100D1C8: add ebx, ecx */ 1011 _flag_k = FK_ADD; 1012 MEM8(ebx) = (uint8_t)(0); /* 0x3100D1CA: mov byte ptr [ebx], 0 */ 1013 esi = eax; /* 0x3100D1CD: mov esi, eax */ 1014 L_3100D1CF: 1015 goto L_3100D370; /* 0x3100D1CF: jmp 0x3100d370 */ 1016 L_3100D1D4: 1017 PUSH32(esp, 0xFFFFFFFFu); /* 0x3100D1D4: push -1 */ 1018 ecx = ebp + (-0x74); /* 0x3100D1D6: lea ecx, [ebp - 0x74] */ 1019 RECOMP_ICALL(MEM32(0x310482C8)); /* 0x3100D1D9: call dword ptr [0x310482c8] */ 1020 RECOMP_FLAGS_IN(); 1021 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3100D1DF: mov al, byte ptr [ebp + 0xb] */ 1022 PUSH32(esp, 0); /* 0x3100D1E2: push 0 */ 1023 ecx = ebp + (-0x34); /* 0x3100D1E4: lea ecx, [ebp - 0x34] */ 1024 MEM32(ebp + (-0x4)) = 1; /* 0x3100D1E7: mov dword ptr [ebp - 4], 1 */ 1025 MEM8(ebp + (-0x34)) = (uint8_t)(LO8(eax)); /* 0x3100D1EE: mov byte ptr [ebp - 0x34], al */ 1026 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x3100D1F1: call dword ptr [0x310480d4] */ 1027 RECOMP_FLAGS_IN(); 1028 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1029 ecx = ecx | 0xFFFFFFFFu; /* 0x3100D1F7: or ecx, 0xffffffff */ 1030 _cf = 0; 1031 _flag_k = FK_TEST; 1032 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1033 eax = 0; /* 0x3100D1FA: xor eax, eax */ 1034 _cf = 0; 1035 _flag_k = FK_TEST; 1036 edi = 0x31052410u; /* 0x3100D1FC: mov edi, 0x31052410 */ 1037 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; } /* 0x3100D201: repne scasb al, byte ptr es:[edi] */ 1038 ecx = ~ecx; /* 0x3100D203: not ecx */ 1039 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1040 ecx = ecx - 1; /* 0x3100D205: dec ecx */ 1041 _flag_k = FK_DEC; 1042 ebx = ecx; /* 0x3100D206: mov ebx, ecx */ 1043 PUSH32(esp, 1); /* 0x3100D208: push 1 */ 1044 PUSH32(esp, ebx); /* 0x3100D20A: push ebx */ 1045 ecx = ebp + (-0x34); /* 0x3100D20B: lea ecx, [ebp - 0x34] */ 1046 RECOMP_ICALL(MEM32(0x31048070)); /* 0x3100D20E: call dword ptr [0x31048070] */ 1047 RECOMP_FLAGS_IN(); 1048 /* test LO8(eax), LO8(eax) */ /* 0x3100D214: test al, al */ 1049 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1050 _cf = 0; 1051 _flag_k = FK_NARROW(FK_TEST, 24); 1052 if (TEST_Z(_flag_a, _flag_b)) goto L_3100D23D; /* 0x3100D216: je 0x3100d23d */ 1053 L_3100D218: 1054 edi = MEM32(ebp + (-0x30)); /* 0x3100D218: mov edi, dword ptr [ebp - 0x30] */ 1055 ecx = ebx; /* 0x3100D21B: mov ecx, ebx */ 1056 edx = ecx; /* 0x3100D21D: mov edx, ecx */ 1057 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3100D21F: shr ecx, 2 */ 1058 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1059 ecx = ecx >> 2u; /* 0x3100D21F: shr ecx, 2 */ 1060 esi = 0x31052410u; /* 0x3100D222: mov esi, 0x31052410 */ 1061 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3100D227: 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; } 1062 ecx = edx; /* 0x3100D229: mov ecx, edx */ 1063 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 1064 ecx = ecx & 3; /* 0x3100D22B: and ecx, 3 */ 1065 _cf = 0; 1066 _flag_k = FK_TEST; 1067 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3100D22E: 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; } 1068 eax = MEM32(ebp + (-0x30)); /* 0x3100D230: mov eax, dword ptr [ebp - 0x30] */ 1069 esi = MEM32(ebp + (-0x10)); /* 0x3100D233: mov esi, dword ptr [ebp - 0x10] */ 1070 MEM32(ebp + (-0x2C)) = ebx; /* 0x3100D236: mov dword ptr [ebp - 0x2c], ebx */ 1071 MEM8(eax + ebx) = (uint8_t)(0); /* 0x3100D239: mov byte ptr [eax + ebx], 0 */ 1072 L_3100D23D: 1073 ecx = ebp + (-0x34); /* 0x3100D23D: lea ecx, [ebp - 0x34] */ 1074 PUSH32(esp, ecx); /* 0x3100D240: push ecx */ 1075 PUSH32(esp, 0x3105224Cu); /* 0x3100D241: push 0x3105224c */ 1076 ecx = ebp + (-0x74); /* 0x3100D246: lea ecx, [ebp - 0x74] */ 1077 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3100D249: mov byte ptr [ebp - 4], 2 */ 1078 RECOMP_ICALL(MEM32(0x310482CC)); /* 0x3100D24D: call dword ptr [0x310482cc] */ 1079 RECOMP_FLAGS_IN(); 1080 PUSH32(esp, 1); /* 0x3100D253: push 1 */ 1081 ecx = ebp + (-0x34); /* 0x3100D255: lea ecx, [ebp - 0x34] */ 1082 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3100D258: mov byte ptr [ebp - 4], 1 */ 1083 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x3100D25C: call dword ptr [0x310480d4] */ 1084 RECOMP_FLAGS_IN(); 1085 edx = MEM32(ebp + 0xC); /* 0x3100D262: mov edx, dword ptr [ebp + 0xc] */ 1086 PUSH32(esp, edx); /* 0x3100D265: push edx */ 1087 PUSH32(esp, 0x310523F4u); /* 0x3100D266: push 0x310523f4 */ 1088 ecx = ebp + (-0x74); /* 0x3100D26B: lea ecx, [ebp - 0x74] */ 1089 RECOMP_ICALL(MEM32(0x310482BC)); /* 0x3100D26E: call dword ptr [0x310482bc] */ 1090 RECOMP_FLAGS_IN(); 1091 ecx = esi; /* 0x3100D274: mov ecx, esi */ 1092 RECOMP_ICALL(0x310013E0u); /* 0x3100D276: call 0x310013e0 */ /* not lifted */ 1093 RECOMP_FLAGS_IN(); 1094 edi = esi + 0x30; /* 0x3100D27B: lea edi, [esi + 0x30] */ 1095 L_3100D27E: 1096 eax = ebp + (-0x74); /* 0x3100D27E: lea eax, [ebp - 0x74] */ 1097 PUSH32(esp, eax); /* 0x3100D281: push eax */ 1098 ecx = edi; /* 0x3100D282: mov ecx, edi */ 1099 RECOMP_ICALL(0x31010CA0u); /* 0x3100D284: call 0x31010ca0 */ /* not lifted */ 1100 RECOMP_FLAGS_IN(); 1101 ecx = ebp + (-0x74); /* 0x3100D289: lea ecx, [ebp - 0x74] */ 1102 PUSH32(esp, ecx); /* 0x3100D28C: push ecx */ 1103 ecx = edi; /* 0x3100D28D: mov ecx, edi */ 1104 RECOMP_ICALL(0x31010F40u); /* 0x3100D28F: call 0x31010f40 */ /* not lifted */ 1105 RECOMP_FLAGS_IN(); 1106 /* test LO8(eax), LO8(eax) */ /* 0x3100D294: test al, al */ 1107 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1108 _cf = 0; 1109 _flag_k = FK_NARROW(FK_TEST, 24); 1110 RECOMP_BACKEDGE(); 1111 if (TEST_Z(_flag_a, _flag_b)) goto L_3100D27E; /* 0x3100D296: je 0x3100d27e */ 1112 L_3100D298: 1113 ecx = esi; /* 0x3100D298: mov ecx, esi */ 1114 RECOMP_ICALL(0x310013E0u); /* 0x3100D29A: call 0x310013e0 */ /* not lifted */ 1115 RECOMP_FLAGS_IN(); 1116 SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x3100D29F: mov dl, byte ptr [ebp + 0xb] */ 1117 PUSH32(esp, 0); /* 0x3100D2A2: push 0 */ 1118 ecx = ebp + (-0x24); /* 0x3100D2A4: lea ecx, [ebp - 0x24] */ 1119 MEM8(ebp + (-0x24)) = (uint8_t)(LO8(edx)); /* 0x3100D2A7: mov byte ptr [ebp - 0x24], dl */ 1120 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x3100D2AA: call dword ptr [0x310480d4] */ 1121 RECOMP_FLAGS_IN(); 1122 PUSH32(esp, 0); /* 0x3100D2B0: push 0 */ 1123 eax = ebp + (-0x24); /* 0x3100D2B2: lea eax, [ebp - 0x24] */ 1124 PUSH32(esp, eax); /* 0x3100D2B5: push eax */ 1125 PUSH32(esp, 0x310522ECu); /* 0x3100D2B6: push 0x310522ec */ 1126 ecx = ebp + (-0x74); /* 0x3100D2BB: lea ecx, [ebp - 0x74] */ 1127 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x3100D2BE: mov byte ptr [ebp - 4], 3 */ 1128 RECOMP_ICALL(MEM32(0x310482D0)); /* 0x3100D2C2: call dword ptr [0x310482d0] */ 1129 RECOMP_FLAGS_IN(); 1130 esi = MEM32(ebp + 0x8); /* 0x3100D2C8: mov esi, dword ptr [ebp + 8] */ 1131 SET_LO8(ecx, MEM8(ebp + (-0x24))); /* 0x3100D2CB: mov cl, byte ptr [ebp - 0x24] */ 1132 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1133 edi = 0; /* 0x3100D2CE: xor edi, edi */ 1134 _cf = 0; 1135 _flag_k = FK_TEST; 1136 MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x3100D2D0: mov byte ptr [esi], cl */ 1137 MEM32(esi + 0x4) = edi; /* 0x3100D2D2: mov dword ptr [esi + 4], edi */ 1138 MEM32(esi + 0x8) = edi; /* 0x3100D2D5: mov dword ptr [esi + 8], edi */ 1139 MEM32(esi + 0xC) = edi; /* 0x3100D2D8: mov dword ptr [esi + 0xc], edi */ 1140 edx = MEM32(0x310480F8); /* 0x3100D2DB: mov edx, dword ptr [0x310480f8] */ 1141 eax = MEM32(edx); /* 0x3100D2E1: mov eax, dword ptr [edx] */ 1142 PUSH32(esp, eax); /* 0x3100D2E3: push eax */ 1143 PUSH32(esp, edi); /* 0x3100D2E4: push edi */ 1144 ecx = ebp + (-0x24); /* 0x3100D2E5: lea ecx, [ebp - 0x24] */ 1145 PUSH32(esp, ecx); /* 0x3100D2E8: push ecx */ 1146 ecx = esi; /* 0x3100D2E9: mov ecx, esi */ 1147 RECOMP_ICALL(MEM32(0x310480FC)); /* 0x3100D2EB: call dword ptr [0x310480fc] */ 1148 RECOMP_FLAGS_IN(); 1149 eax = MEM32(ebp + (-0x20)); /* 0x3100D2F1: mov eax, dword ptr [ebp - 0x20] */ 1150 /* cmp eax, edi */ /* 0x3100D2F4: cmp eax, edi */ 1151 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 1152 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1153 _flag_k = FK_CMP; 1154 MEM32(ebp + (-0x14)) = 1; /* 0x3100D2F6: mov dword ptr [ebp - 0x14], 1 */ 1155 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100D31B; /* 0x3100D2FD: je 0x3100d31b */ 1156 L_3100D2FF: 1157 ecx = eax + (-0x1); /* 0x3100D2FF: lea ecx, [eax - 1] */ 1158 SET_LO8(eax, MEM8(ecx)); /* 0x3100D302: mov al, byte ptr [ecx] */ 1159 /* test LO8(eax), LO8(eax) */ /* 0x3100D304: test al, al */ 1160 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1161 _cf = 0; 1162 _flag_k = FK_NARROW(FK_TEST, 24); 1163 if (TEST_Z(_flag_a, _flag_b)) goto L_3100D312; /* 0x3100D306: je 0x3100d312 */ 1164 L_3100D308: 1165 /* cmp LO8(eax), 0xFFu */ /* 0x3100D308: cmp al, 0xff */ 1166 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 1167 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1168 _flag_k = FK_NARROW(FK_CMP, 24); 1169 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100D312; /* 0x3100D30A: je 0x3100d312 */ 1170 L_3100D30C: 1171 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1172 SET_LO8(eax, LO8(eax) - 1); /* 0x3100D30C: dec al */ 1173 _flag_k = FK_NARROW(FK_DEC, 24); 1174 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3100D30E: mov byte ptr [ecx], al */ 1175 goto L_3100D31B; /* 0x3100D310: jmp 0x3100d31b */ 1176 L_3100D312: 1177 PUSH32(esp, ecx); /* 0x3100D312: push ecx */ 1178 RECOMP_ICALL(0x31046858u); /* 0x3100D313: call 0x31046858 */ /* not lifted */ 1179 RECOMP_FLAGS_IN(); 1180 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1181 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1182 esp = esp + 4; /* 0x3100D318: add esp, 4 */ 1183 _flag_k = FK_ADD; 1184 L_3100D31B: 1185 MEM32(ebp + (-0x20)) = edi; /* 0x3100D31B: mov dword ptr [ebp - 0x20], edi */ 1186 MEM32(ebp + (-0x1C)) = edi; /* 0x3100D31E: mov dword ptr [ebp - 0x1c], edi */ 1187 MEM32(ebp + (-0x18)) = edi; /* 0x3100D321: mov dword ptr [ebp - 0x18], edi */ 1188 MEM32(ebp + (-0x74)) = 0x3104876Cu; /* 0x3100D324: mov dword ptr [ebp - 0x74], 0x3104876c */ 1189 ecx = ebp + (-0x74); /* 0x3100D32B: lea ecx, [ebp - 0x74] */ 1190 MEM32(ebp + (-0x4)) = 5; /* 0x3100D32E: mov dword ptr [ebp - 4], 5 */ 1191 RECOMP_ICALL(MEM32(0x310482F8)); /* 0x3100D335: call dword ptr [0x310482f8] */ 1192 RECOMP_FLAGS_IN(); 1193 edx = MEM32(ebp + (-0x3C)); /* 0x3100D33B: mov edx, dword ptr [ebp - 0x3c] */ 1194 eax = MEM32(ebp + (-0x40)); /* 0x3100D33E: mov eax, dword ptr [ebp - 0x40] */ 1195 PUSH32(esp, edx); /* 0x3100D341: push edx */ 1196 PUSH32(esp, eax); /* 0x3100D342: push eax */ 1197 ecx = ebp + (-0x44); /* 0x3100D343: lea ecx, [ebp - 0x44] */ 1198 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x3100D346: mov byte ptr [ebp - 4], 4 */ 1199 RECOMP_ICALL(0x3100E4D0u); /* 0x3100D34A: call 0x3100e4d0 */ /* not lifted */ 1200 RECOMP_FLAGS_IN(); 1201 ecx = MEM32(ebp + (-0x40)); /* 0x3100D34F: mov ecx, dword ptr [ebp - 0x40] */ 1202 PUSH32(esp, ecx); /* 0x3100D352: push ecx */ 1203 RECOMP_ICALL(0x31046858u); /* 0x3100D353: call 0x31046858 */ /* not lifted */ 1204 RECOMP_FLAGS_IN(); 1205 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1206 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1207 esp = esp + 4; /* 0x3100D358: add esp, 4 */ 1208 _flag_k = FK_ADD; 1209 ecx = ebp + (-0x70); /* 0x3100D35B: lea ecx, [ebp - 0x70] */ 1210 MEM32(ebp + (-0x40)) = edi; /* 0x3100D35E: mov dword ptr [ebp - 0x40], edi */ 1211 MEM32(ebp + (-0x3C)) = edi; /* 0x3100D361: mov dword ptr [ebp - 0x3c], edi */ 1212 MEM32(ebp + (-0x38)) = edi; /* 0x3100D364: mov dword ptr [ebp - 0x38], edi */ 1213 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3100D367: mov byte ptr [ebp - 4], 0 */ 1214 RECOMP_ICALL(0x3100E340u); /* 0x3100D36B: call 0x3100e340 */ /* not lifted */ 1215 RECOMP_FLAGS_IN(); 1216 L_3100D370: 1217 ecx = MEM32(ebp + (-0xC)); /* 0x3100D370: mov ecx, dword ptr [ebp - 0xc] */ 1218 edi = POP32_VAL(esp); /* 0x3100D373: pop edi */ 1219 eax = esi; /* 0x3100D374: mov eax, esi */ 1220 esi = POP32_VAL(esp); /* 0x3100D376: pop esi */ 1221 ebx = POP32_VAL(esp); /* 0x3100D377: pop ebx */ 1222 MEM32(FS_BASE + (0)) = ecx; /* 0x3100D378: mov dword ptr fs:[0], ecx */ 1223 esp = ebp; /* 0x3100D37F: mov esp, ebp */ 1224 ebp = POP32_VAL(esp); /* 0x3100D381: pop ebp */ 1225 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100D382: ret 8 */ 1226 RECOMP_REGS_OUT(); 1227 } 1228 1229 void sub_3100D370(void) { 1230 int _fpu_cmp = 0; 1231 uint32_t _cf = 0; 1232 int _df = 1; 1233 uint32_t _flag_k = FK_NONE; 1234 uint32_t _flag_a = 0, _flag_b = 0; 1235 uint32_t _itail_tgt = 0; 1236 RECOMP_REGS_LOCALS 1237 RECOMP_ENTER(0x3100D370u); 1238 1239 L_3100D370: 1240 ecx = MEM32(ebp + (-0xC)); /* 0x3100D370: mov ecx, dword ptr [ebp - 0xc] */ 1241 edi = POP32_VAL(esp); /* 0x3100D373: pop edi */ 1242 eax = esi; /* 0x3100D374: mov eax, esi */ 1243 esi = POP32_VAL(esp); /* 0x3100D376: pop esi */ 1244 ebx = POP32_VAL(esp); /* 0x3100D377: pop ebx */ 1245 MEM32(FS_BASE + (0)) = ecx; /* 0x3100D378: mov dword ptr fs:[0], ecx */ 1246 esp = ebp; /* 0x3100D37F: mov esp, ebp */ 1247 ebp = POP32_VAL(esp); /* 0x3100D381: pop ebp */ 1248 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100D382: ret 8 */ 1249 RECOMP_REGS_OUT(); 1250 } 1251 1252 void sub_3100D390(void) { 1253 int _fpu_cmp = 0; 1254 uint32_t _cf = 0; 1255 int _df = 1; 1256 uint32_t _flag_k = FK_NONE; 1257 uint32_t _flag_a = 0, _flag_b = 0; 1258 uint32_t _itail_tgt = 0; 1259 RECOMP_REGS_LOCALS 1260 RECOMP_ENTER(0x3100D390u); 1261 1262 L_3100D390: 1263 PUSH32(esp, ebp); /* 0x3100D390: push ebp */ 1264 ebp = esp; /* 0x3100D391: mov ebp, esp */ 1265 PUSH32(esp, 0xFFFFFFFFu); /* 0x3100D393: push -1 */ 1266 PUSH32(esp, 0x310478CCu); /* 0x3100D395: push 0x310478cc */ 1267 eax = MEM32(FS_BASE + (0)); /* 0x3100D39A: mov eax, dword ptr fs:[0] */ 1268 PUSH32(esp, eax); /* 0x3100D3A0: push eax */ 1269 MEM32(FS_BASE + (0)) = esp; /* 0x3100D3A1: mov dword ptr fs:[0], esp */ 1270 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x78u); 1271 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1272 esp = esp - 0x78u; /* 0x3100D3A8: sub esp, 0x78 */ 1273 _flag_k = FK_CMP; 1274 PUSH32(esp, ebx); /* 0x3100D3AB: push ebx */ 1275 PUSH32(esp, esi); /* 0x3100D3AC: push esi */ 1276 PUSH32(esp, edi); /* 0x3100D3AD: push edi */ 1277 esi = ecx; /* 0x3100D3AE: mov esi, ecx */ 1278 PUSH32(esp, 0xFFFFFFFFu); /* 0x3100D3B0: push -1 */ 1279 ecx = ebp + (-0x84); /* 0x3100D3B2: lea ecx, [ebp - 0x84] */ 1280 MEM32(ebp + (-0x10)) = esi; /* 0x3100D3B8: mov dword ptr [ebp - 0x10], esi */ 1281 MEM32(ebp + (-0x14)) = 0; /* 0x3100D3BB: mov dword ptr [ebp - 0x14], 0 */ 1282 RECOMP_ICALL(MEM32(0x310482C8)); /* 0x3100D3C2: call dword ptr [0x310482c8] */ 1283 RECOMP_FLAGS_IN(); 1284 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3100D3C8: mov al, byte ptr [ebp + 0xb] */ 1285 PUSH32(esp, 0); /* 0x3100D3CB: push 0 */ 1286 ecx = ebp + (-0x44); /* 0x3100D3CD: lea ecx, [ebp - 0x44] */ 1287 MEM32(ebp + (-0x4)) = 1; /* 0x3100D3D0: mov dword ptr [ebp - 4], 1 */ 1288 MEM8(ebp + (-0x44)) = (uint8_t)(LO8(eax)); /* 0x3100D3D7: mov byte ptr [ebp - 0x44], al */ 1289 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x3100D3DA: call dword ptr [0x310480d4] */ 1290 RECOMP_FLAGS_IN(); 1291 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1292 ecx = ecx | 0xFFFFFFFFu; /* 0x3100D3E0: or ecx, 0xffffffff */ 1293 _cf = 0; 1294 _flag_k = FK_TEST; 1295 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1296 eax = 0; /* 0x3100D3E3: xor eax, eax */ 1297 _cf = 0; 1298 _flag_k = FK_TEST; 1299 edi = 0x31052418u; /* 0x3100D3E5: mov edi, 0x31052418 */ 1300 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; } /* 0x3100D3EA: repne scasb al, byte ptr es:[edi] */ 1301 ecx = ~ecx; /* 0x3100D3EC: not ecx */ 1302 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1303 ecx = ecx - 1; /* 0x3100D3EE: dec ecx */ 1304 _flag_k = FK_DEC; 1305 ebx = ecx; /* 0x3100D3EF: mov ebx, ecx */ 1306 PUSH32(esp, 1); /* 0x3100D3F1: push 1 */ 1307 PUSH32(esp, ebx); /* 0x3100D3F3: push ebx */ 1308 ecx = ebp + (-0x44); /* 0x3100D3F4: lea ecx, [ebp - 0x44] */ 1309 RECOMP_ICALL(MEM32(0x31048070)); /* 0x3100D3F7: call dword ptr [0x31048070] */ 1310 RECOMP_FLAGS_IN(); 1311 /* test LO8(eax), LO8(eax) */ /* 0x3100D3FD: test al, al */ 1312 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1313 _cf = 0; 1314 _flag_k = FK_NARROW(FK_TEST, 24); 1315 if (TEST_Z(_flag_a, _flag_b)) goto L_3100D426; /* 0x3100D3FF: je 0x3100d426 */ 1316 L_3100D401: 1317 edi = MEM32(ebp + (-0x40)); /* 0x3100D401: mov edi, dword ptr [ebp - 0x40] */ 1318 ecx = ebx; /* 0x3100D404: mov ecx, ebx */ 1319 edx = ecx; /* 0x3100D406: mov edx, ecx */ 1320 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3100D408: shr ecx, 2 */ 1321 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1322 ecx = ecx >> 2u; /* 0x3100D408: shr ecx, 2 */ 1323 esi = 0x31052418u; /* 0x3100D40B: mov esi, 0x31052418 */ 1324 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3100D410: 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; } 1325 ecx = edx; /* 0x3100D412: mov ecx, edx */ 1326 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 1327 ecx = ecx & 3; /* 0x3100D414: and ecx, 3 */ 1328 _cf = 0; 1329 _flag_k = FK_TEST; 1330 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3100D417: 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; } 1331 PUSH32(esp, ebx); /* 0x3100D419: push ebx */ 1332 ecx = ebp + (-0x44); /* 0x3100D41A: lea ecx, [ebp - 0x44] */ 1333 RECOMP_ICALL(MEM32(0x310480E8)); /* 0x3100D41D: call dword ptr [0x310480e8] */ 1334 RECOMP_FLAGS_IN(); 1335 esi = MEM32(ebp + (-0x10)); /* 0x3100D423: mov esi, dword ptr [ebp - 0x10] */ 1336 L_3100D426: 1337 eax = ebp + (-0x44); /* 0x3100D426: lea eax, [ebp - 0x44] */ 1338 PUSH32(esp, eax); /* 0x3100D429: push eax */ 1339 PUSH32(esp, 0x3105224Cu); /* 0x3100D42A: push 0x3105224c */ 1340 ecx = ebp + (-0x84); /* 0x3100D42F: lea ecx, [ebp - 0x84] */ 1341 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3100D435: mov byte ptr [ebp - 4], 2 */ 1342 RECOMP_ICALL(MEM32(0x310482CC)); /* 0x3100D439: call dword ptr [0x310482cc] */ 1343 RECOMP_FLAGS_IN(); 1344 PUSH32(esp, 1); /* 0x3100D43F: push 1 */ 1345 ecx = ebp + (-0x44); /* 0x3100D441: lea ecx, [ebp - 0x44] */ 1346 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3100D444: mov byte ptr [ebp - 4], 1 */ 1347 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x3100D448: call dword ptr [0x310480d4] */ 1348 RECOMP_FLAGS_IN(); 1349 ecx = esi; /* 0x3100D44E: mov ecx, esi */ 1350 RECOMP_ICALL(0x310013E0u); /* 0x3100D450: call 0x310013e0 */ /* not lifted */ 1351 RECOMP_FLAGS_IN(); 1352 edi = esi + 0x30; /* 0x3100D455: lea edi, [esi + 0x30] */ 1353 L_3100D458: 1354 ecx = ebp + (-0x84); /* 0x3100D458: lea ecx, [ebp - 0x84] */ 1355 PUSH32(esp, ecx); /* 0x3100D45E: push ecx */ 1356 ecx = edi; /* 0x3100D45F: mov ecx, edi */ 1357 RECOMP_ICALL(0x31010CA0u); /* 0x3100D461: call 0x31010ca0 */ /* not lifted */ 1358 RECOMP_FLAGS_IN(); 1359 edx = ebp + (-0x84); /* 0x3100D466: lea edx, [ebp - 0x84] */ 1360 PUSH32(esp, edx); /* 0x3100D46C: push edx */ 1361 ecx = edi; /* 0x3100D46D: mov ecx, edi */ 1362 RECOMP_ICALL(0x31010F40u); /* 0x3100D46F: call 0x31010f40 */ /* not lifted */ 1363 RECOMP_FLAGS_IN(); 1364 /* test LO8(eax), LO8(eax) */ /* 0x3100D474: test al, al */ 1365 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1366 _cf = 0; 1367 _flag_k = FK_NARROW(FK_TEST, 24); 1368 RECOMP_BACKEDGE(); 1369 if (TEST_Z(_flag_a, _flag_b)) goto L_3100D458; /* 0x3100D476: je 0x3100d458 */ 1370 L_3100D478: 1371 ecx = esi; /* 0x3100D478: mov ecx, esi */ 1372 RECOMP_ICALL(0x310013E0u); /* 0x3100D47A: call 0x310013e0 */ /* not lifted */ 1373 RECOMP_FLAGS_IN(); 1374 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3100D47F: mov al, byte ptr [ebp + 0xb] */ 1375 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1376 esi = 0; /* 0x3100D482: xor esi, esi */ 1377 _cf = 0; 1378 _flag_k = FK_TEST; 1379 PUSH32(esp, esi); /* 0x3100D484: push esi */ 1380 ecx = ebp + (-0x34); /* 0x3100D485: lea ecx, [ebp - 0x34] */ 1381 MEM8(ebp + (-0x34)) = (uint8_t)(LO8(eax)); /* 0x3100D488: mov byte ptr [ebp - 0x34], al */ 1382 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x3100D48B: call dword ptr [0x310480d4] */ 1383 RECOMP_FLAGS_IN(); 1384 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x3100D491: mov cl, byte ptr [ebp + 0xb] */ 1385 MEM8(ebp + (-0x24)) = (uint8_t)(LO8(ecx)); /* 0x3100D494: mov byte ptr [ebp - 0x24], cl */ 1386 MEM32(ebp + (-0x20)) = esi; /* 0x3100D497: mov dword ptr [ebp - 0x20], esi */ 1387 MEM32(ebp + (-0x1C)) = esi; /* 0x3100D49A: mov dword ptr [ebp - 0x1c], esi */ 1388 MEM32(ebp + (-0x18)) = esi; /* 0x3100D49D: mov dword ptr [ebp - 0x18], esi */ 1389 edi = MEM32(0x310482D0); /* 0x3100D4A0: mov edi, dword ptr [0x310482d0] */ 1390 PUSH32(esp, esi); /* 0x3100D4A6: push esi */ 1391 edx = ebp + (-0x34); /* 0x3100D4A7: lea edx, [ebp - 0x34] */ 1392 PUSH32(esp, edx); /* 0x3100D4AA: push edx */ 1393 PUSH32(esp, 0x31052234u); /* 0x3100D4AB: push 0x31052234 */ 1394 ecx = ebp + (-0x84); /* 0x3100D4B0: lea ecx, [ebp - 0x84] */ 1395 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x3100D4B6: mov byte ptr [ebp - 4], 4 */ 1396 RECOMP_ICALL(edi); /* 0x3100D4BA: call edi */ 1397 RECOMP_FLAGS_IN(); 1398 /* test eax, eax */ /* 0x3100D4BC: test eax, eax */ 1399 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1400 _cf = 0; 1401 _flag_k = FK_TEST; 1402 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100D4E9; /* 0x3100D4BE: jne 0x3100d4e9 */ 1403 L_3100D4C0: 1404 ecx = MEM32(ebp + (-0x1C)); /* 0x3100D4C0: mov ecx, dword ptr [ebp - 0x1c] */ 1405 eax = ebp + (-0x34); /* 0x3100D4C3: lea eax, [ebp - 0x34] */ 1406 PUSH32(esp, eax); /* 0x3100D4C6: push eax */ 1407 PUSH32(esp, 1); /* 0x3100D4C7: push 1 */ 1408 PUSH32(esp, ecx); /* 0x3100D4C9: push ecx */ 1409 ecx = ebp + (-0x24); /* 0x3100D4CA: lea ecx, [ebp - 0x24] */ 1410 RECOMP_ICALL(0x3100E960u); /* 0x3100D4CD: call 0x3100e960 */ /* not lifted */ 1411 RECOMP_FLAGS_IN(); 1412 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 1413 esi = esi + 1; /* 0x3100D4D2: inc esi */ 1414 _flag_k = FK_INC; 1415 PUSH32(esp, esi); /* 0x3100D4D3: push esi */ 1416 edx = ebp + (-0x34); /* 0x3100D4D4: lea edx, [ebp - 0x34] */ 1417 PUSH32(esp, edx); /* 0x3100D4D7: push edx */ 1418 PUSH32(esp, 0x31052234u); /* 0x3100D4D8: push 0x31052234 */ 1419 ecx = ebp + (-0x84); /* 0x3100D4DD: lea ecx, [ebp - 0x84] */ 1420 RECOMP_ICALL(edi); /* 0x3100D4E3: call edi */ 1421 RECOMP_FLAGS_IN(); 1422 /* test eax, eax */ /* 0x3100D4E5: test eax, eax */ 1423 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1424 _cf = 0; 1425 _flag_k = FK_TEST; 1426 RECOMP_BACKEDGE(); 1427 if (TEST_Z(_flag_a, _flag_b)) goto L_3100D4C0; /* 0x3100D4E7: je 0x3100d4c0 */ 1428 L_3100D4E9: 1429 ecx = MEM32(ebp + (-0x20)); /* 0x3100D4E9: mov ecx, dword ptr [ebp - 0x20] */ 1430 /* test ecx, ecx */ /* 0x3100D4EC: test ecx, ecx */ 1431 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1432 _cf = 0; 1433 _flag_k = FK_TEST; 1434 SET_LO8(eax, MEM8(ebp + (-0x24))); /* 0x3100D4EE: mov al, byte ptr [ebp - 0x24] */ 1435 esi = MEM32(ebp + 0x8); /* 0x3100D4F1: mov esi, dword ptr [ebp + 8] */ 1436 MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x3100D4F4: mov byte ptr [esi], al */ 1437 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100D4FC; /* 0x3100D4F6: jne 0x3100d4fc */ 1438 L_3100D4F8: 1439 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1440 eax = 0; /* 0x3100D4F8: xor eax, eax */ 1441 _cf = 0; 1442 _flag_k = FK_TEST; 1443 goto L_3100D504; /* 0x3100D4FA: jmp 0x3100d504 */ 1444 L_3100D4FC: 1445 eax = MEM32(ebp + (-0x1C)); /* 0x3100D4FC: mov eax, dword ptr [ebp - 0x1c] */ 1446 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1447 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1448 eax = eax - ecx; /* 0x3100D4FF: sub eax, ecx */ 1449 _flag_k = FK_CMP; 1450 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x3100D501: sar eax, 4 */ 1451 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1452 eax = (uint32_t)((int32_t)eax >> 4u); 1453 L_3100D504: 1454 /* test eax, eax */ /* 0x3100D504: test eax, eax */ 1455 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1456 _cf = 0; 1457 _flag_k = FK_TEST; 1458 if (TEST_NS(_flag_a, _flag_b)) goto L_3100D50A; /* 0x3100D506: jge 0x3100d50a */ 1459 L_3100D508: 1460 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1461 eax = 0; /* 0x3100D508: xor eax, eax */ 1462 _cf = 0; 1463 _flag_k = FK_TEST; 1464 L_3100D50A: 1465 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x3100D50A: shl eax, 4 */ 1466 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1467 eax = eax << 4u; /* 0x3100D50A: shl eax, 4 */ 1468 PUSH32(esp, eax); /* 0x3100D50D: push eax */ 1469 RECOMP_ICALL(0x310468DAu); /* 0x3100D50E: call 0x310468da */ /* not lifted */ 1470 RECOMP_FLAGS_IN(); 1471 ecx = MEM32(ebp + (-0x1C)); /* 0x3100D513: mov ecx, dword ptr [ebp - 0x1c] */ 1472 MEM32(esi + 0x4) = eax; /* 0x3100D516: mov dword ptr [esi + 4], eax */ 1473 esi = eax; /* 0x3100D519: mov esi, eax */ 1474 eax = MEM32(ebp + (-0x20)); /* 0x3100D51B: mov eax, dword ptr [ebp - 0x20] */ 1475 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1476 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1477 esp = esp + 4; /* 0x3100D51E: add esp, 4 */ 1478 _flag_k = FK_ADD; 1479 /* cmp eax, ecx */ /* 0x3100D521: cmp eax, ecx */ 1480 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1481 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1482 _flag_k = FK_CMP; 1483 ebx = ecx; /* 0x3100D523: mov ebx, ecx */ 1484 edi = eax; /* 0x3100D525: mov edi, eax */ 1485 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100D543; /* 0x3100D527: je 0x3100d543 */ 1486 L_3100D529: 1487 PUSH32(esp, edi); /* 0x3100D529: push edi */ 1488 PUSH32(esp, esi); /* 0x3100D52A: push esi */ 1489 RECOMP_ICALL(0x3100EC70u); /* 0x3100D52B: call 0x3100ec70 */ /* not lifted */ 1490 RECOMP_FLAGS_IN(); 1491 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 1492 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1493 edi = edi + 0x10u; /* 0x3100D530: add edi, 0x10 */ 1494 _flag_k = FK_ADD; 1495 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1496 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1497 esp = esp + 8; /* 0x3100D533: add esp, 8 */ 1498 _flag_k = FK_ADD; 1499 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 1500 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1501 esi = esi + 0x10u; /* 0x3100D536: add esi, 0x10 */ 1502 _flag_k = FK_ADD; 1503 /* cmp edi, ebx */ /* 0x3100D539: cmp edi, ebx */ 1504 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1505 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1506 _flag_k = FK_CMP; 1507 RECOMP_BACKEDGE(); 1508 if (CMP_NE(_flag_a, _flag_b)) goto L_3100D529; /* 0x3100D53B: jne 0x3100d529 */ 1509 L_3100D53D: 1510 ecx = MEM32(ebp + (-0x1C)); /* 0x3100D53D: mov ecx, dword ptr [ebp - 0x1c] */ 1511 eax = MEM32(ebp + (-0x20)); /* 0x3100D540: mov eax, dword ptr [ebp - 0x20] */ 1512 L_3100D543: 1513 ebx = MEM32(ebp + 0x8); /* 0x3100D543: mov ebx, dword ptr [ebp + 8] */ 1514 MEM32(ebx + 0x8) = esi; /* 0x3100D546: mov dword ptr [ebx + 8], esi */ 1515 MEM32(ebx + 0xC) = esi; /* 0x3100D549: mov dword ptr [ebx + 0xc], esi */ 1516 MEM32(ebp + (-0x14)) = 1; /* 0x3100D54C: mov dword ptr [ebp - 0x14], 1 */ 1517 /* cmp eax, ecx */ /* 0x3100D553: cmp eax, ecx */ 1518 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1519 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1520 _flag_k = FK_CMP; 1521 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x3100D555: mov byte ptr [ebp - 4], 3 */ 1522 edi = ecx; /* 0x3100D559: mov edi, ecx */ 1523 esi = eax; /* 0x3100D55B: mov esi, eax */ 1524 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100D572; /* 0x3100D55D: je 0x3100d572 */ 1525 L_3100D55F: 1526 PUSH32(esp, 0); /* 0x3100D55F: push 0 */ 1527 ecx = esi; /* 0x3100D561: mov ecx, esi */ 1528 RECOMP_ICALL(0x3100EDF0u); /* 0x3100D563: call 0x3100edf0 */ /* not lifted */ 1529 RECOMP_FLAGS_IN(); 1530 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 1531 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1532 esi = esi + 0x10u; /* 0x3100D568: add esi, 0x10 */ 1533 _flag_k = FK_ADD; 1534 /* cmp esi, edi */ /* 0x3100D56B: cmp esi, edi */ 1535 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 1536 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1537 _flag_k = FK_CMP; 1538 RECOMP_BACKEDGE(); 1539 if (CMP_NE(_flag_a, _flag_b)) goto L_3100D55F; /* 0x3100D56D: jne 0x3100d55f */ 1540 L_3100D56F: 1541 eax = MEM32(ebp + (-0x20)); /* 0x3100D56F: mov eax, dword ptr [ebp - 0x20] */ 1542 L_3100D572: 1543 PUSH32(esp, eax); /* 0x3100D572: push eax */ 1544 RECOMP_ICALL(0x31046858u); /* 0x3100D573: call 0x31046858 */ /* not lifted */ 1545 RECOMP_FLAGS_IN(); 1546 eax = MEM32(ebp + (-0x30)); /* 0x3100D578: mov eax, dword ptr [ebp - 0x30] */ 1547 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1548 esi = 0; /* 0x3100D57B: xor esi, esi */ 1549 _cf = 0; 1550 _flag_k = FK_TEST; 1551 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1552 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1553 esp = esp + 4; /* 0x3100D57D: add esp, 4 */ 1554 _flag_k = FK_ADD; 1555 /* cmp eax, esi */ /* 0x3100D580: cmp eax, esi */ 1556 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1557 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1558 _flag_k = FK_CMP; 1559 MEM32(ebp + (-0x20)) = esi; /* 0x3100D582: mov dword ptr [ebp - 0x20], esi */ 1560 MEM32(ebp + (-0x1C)) = esi; /* 0x3100D585: mov dword ptr [ebp - 0x1c], esi */ 1561 MEM32(ebp + (-0x18)) = esi; /* 0x3100D588: mov dword ptr [ebp - 0x18], esi */ 1562 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100D5A9; /* 0x3100D58B: je 0x3100d5a9 */ 1563 L_3100D58D: 1564 ecx = eax + (-0x1); /* 0x3100D58D: lea ecx, [eax - 1] */ 1565 SET_LO8(eax, MEM8(ecx)); /* 0x3100D590: mov al, byte ptr [ecx] */ 1566 /* test LO8(eax), LO8(eax) */ /* 0x3100D592: test al, al */ 1567 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1568 _cf = 0; 1569 _flag_k = FK_NARROW(FK_TEST, 24); 1570 if (TEST_Z(_flag_a, _flag_b)) goto L_3100D5A0; /* 0x3100D594: je 0x3100d5a0 */ 1571 L_3100D596: 1572 /* cmp LO8(eax), 0xFFu */ /* 0x3100D596: cmp al, 0xff */ 1573 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 1574 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1575 _flag_k = FK_NARROW(FK_CMP, 24); 1576 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100D5A0; /* 0x3100D598: je 0x3100d5a0 */ 1577 L_3100D59A: 1578 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1579 SET_LO8(eax, LO8(eax) - 1); /* 0x3100D59A: dec al */ 1580 _flag_k = FK_NARROW(FK_DEC, 24); 1581 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3100D59C: mov byte ptr [ecx], al */ 1582 goto L_3100D5A9; /* 0x3100D59E: jmp 0x3100d5a9 */ 1583 L_3100D5A0: 1584 PUSH32(esp, ecx); /* 0x3100D5A0: push ecx */ 1585 RECOMP_ICALL(0x31046858u); /* 0x3100D5A1: call 0x31046858 */ /* not lifted */ 1586 RECOMP_FLAGS_IN(); 1587 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1588 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1589 esp = esp + 4; /* 0x3100D5A6: add esp, 4 */ 1590 _flag_k = FK_ADD; 1591 L_3100D5A9: 1592 MEM32(ebp + (-0x30)) = esi; /* 0x3100D5A9: mov dword ptr [ebp - 0x30], esi */ 1593 MEM32(ebp + (-0x2C)) = esi; /* 0x3100D5AC: mov dword ptr [ebp - 0x2c], esi */ 1594 MEM32(ebp + (-0x28)) = esi; /* 0x3100D5AF: mov dword ptr [ebp - 0x28], esi */ 1595 MEM32(ebp + (-0x84)) = 0x3104876Cu; /* 0x3100D5B2: mov dword ptr [ebp - 0x84], 0x3104876c */ 1596 ecx = ebp + (-0x84); /* 0x3100D5BC: lea ecx, [ebp - 0x84] */ 1597 MEM32(ebp + (-0x4)) = 6; /* 0x3100D5C2: mov dword ptr [ebp - 4], 6 */ 1598 RECOMP_ICALL(MEM32(0x310482F8)); /* 0x3100D5C9: call dword ptr [0x310482f8] */ 1599 RECOMP_FLAGS_IN(); 1600 ecx = MEM32(ebp + (-0x4C)); /* 0x3100D5CF: mov ecx, dword ptr [ebp - 0x4c] */ 1601 edx = MEM32(ebp + (-0x50)); /* 0x3100D5D2: mov edx, dword ptr [ebp - 0x50] */ 1602 PUSH32(esp, ecx); /* 0x3100D5D5: push ecx */ 1603 PUSH32(esp, edx); /* 0x3100D5D6: push edx */ 1604 ecx = ebp + (-0x54); /* 0x3100D5D7: lea ecx, [ebp - 0x54] */ 1605 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x3100D5DA: mov byte ptr [ebp - 4], 5 */ 1606 RECOMP_ICALL(0x3100E4D0u); /* 0x3100D5DE: call 0x3100e4d0 */ /* not lifted */ 1607 RECOMP_FLAGS_IN(); 1608 eax = MEM32(ebp + (-0x50)); /* 0x3100D5E3: mov eax, dword ptr [ebp - 0x50] */ 1609 PUSH32(esp, eax); /* 0x3100D5E6: push eax */ 1610 RECOMP_ICALL(0x31046858u); /* 0x3100D5E7: call 0x31046858 */ /* not lifted */ 1611 RECOMP_FLAGS_IN(); 1612 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1613 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1614 esp = esp + 4; /* 0x3100D5EC: add esp, 4 */ 1615 _flag_k = FK_ADD; 1616 ecx = ebp + (-0x80); /* 0x3100D5EF: lea ecx, [ebp - 0x80] */ 1617 MEM32(ebp + (-0x50)) = esi; /* 0x3100D5F2: mov dword ptr [ebp - 0x50], esi */ 1618 MEM32(ebp + (-0x4C)) = esi; /* 0x3100D5F5: mov dword ptr [ebp - 0x4c], esi */ 1619 MEM32(ebp + (-0x48)) = esi; /* 0x3100D5F8: mov dword ptr [ebp - 0x48], esi */ 1620 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3100D5FB: mov byte ptr [ebp - 4], 0 */ 1621 RECOMP_ICALL(0x3100E340u); /* 0x3100D5FF: call 0x3100e340 */ /* not lifted */ 1622 RECOMP_FLAGS_IN(); 1623 ecx = MEM32(ebp + (-0xC)); /* 0x3100D604: mov ecx, dword ptr [ebp - 0xc] */ 1624 edi = POP32_VAL(esp); /* 0x3100D607: pop edi */ 1625 esi = POP32_VAL(esp); /* 0x3100D608: pop esi */ 1626 eax = ebx; /* 0x3100D609: mov eax, ebx */ 1627 ebx = POP32_VAL(esp); /* 0x3100D60B: pop ebx */ 1628 MEM32(FS_BASE + (0)) = ecx; /* 0x3100D60C: mov dword ptr fs:[0], ecx */ 1629 esp = ebp; /* 0x3100D613: mov esp, ebp */ 1630 ebp = POP32_VAL(esp); /* 0x3100D615: pop ebp */ 1631 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3100D616: ret 4 */ 1632 RECOMP_REGS_OUT(); 1633 } 1634 1635 void sub_3100D620(void) { 1636 int _fpu_cmp = 0; 1637 uint32_t _cf = 0; 1638 int _df = 1; 1639 uint32_t _flag_k = FK_NONE; 1640 uint32_t _flag_a = 0, _flag_b = 0; 1641 uint32_t _itail_tgt = 0; 1642 RECOMP_REGS_LOCALS 1643 RECOMP_ENTER(0x3100D620u); 1644 1645 L_3100D620: 1646 PUSH32(esp, ebp); /* 0x3100D620: push ebp */ 1647 ebp = esp; /* 0x3100D621: mov ebp, esp */ 1648 PUSH32(esp, 0xFFFFFFFFu); /* 0x3100D623: push -1 */ 1649 PUSH32(esp, 0x31047922u); /* 0x3100D625: push 0x31047922 */ 1650 eax = MEM32(FS_BASE + (0)); /* 0x3100D62A: mov eax, dword ptr fs:[0] */ 1651 PUSH32(esp, eax); /* 0x3100D630: push eax */ 1652 MEM32(FS_BASE + (0)) = esp; /* 0x3100D631: mov dword ptr fs:[0], esp */ 1653 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x64u); 1654 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1655 esp = esp - 0x64u; /* 0x3100D638: sub esp, 0x64 */ 1656 _flag_k = FK_CMP; 1657 PUSH32(esp, ebx); /* 0x3100D63B: push ebx */ 1658 PUSH32(esp, esi); /* 0x3100D63C: push esi */ 1659 PUSH32(esp, edi); /* 0x3100D63D: push edi */ 1660 esi = ecx; /* 0x3100D63E: mov esi, ecx */ 1661 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1662 ebx = 0; /* 0x3100D640: xor ebx, ebx */ 1663 _cf = 0; 1664 _flag_k = FK_TEST; 1665 PUSH32(esp, 0xFFFFFFFFu); /* 0x3100D642: push -1 */ 1666 ecx = ebp + (-0x70); /* 0x3100D644: lea ecx, [ebp - 0x70] */ 1667 MEM32(ebp + (-0x10)) = ebx; /* 0x3100D647: mov dword ptr [ebp - 0x10], ebx */ 1668 RECOMP_ICALL(MEM32(0x310482C8)); /* 0x3100D64A: call dword ptr [0x310482c8] */ 1669 RECOMP_FLAGS_IN(); 1670 SET_LO8(eax, MEM8(ebp + 0xF)); /* 0x3100D650: mov al, byte ptr [ebp + 0xf] */ 1671 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1672 ecx = ecx | 0xFFFFFFFFu; /* 0x3100D653: or ecx, 0xffffffff */ 1673 _cf = 0; 1674 _flag_k = FK_TEST; 1675 MEM8(ebp + (-0x30)) = (uint8_t)(LO8(eax)); /* 0x3100D656: mov byte ptr [ebp - 0x30], al */ 1676 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1677 eax = 0; /* 0x3100D659: xor eax, eax */ 1678 _cf = 0; 1679 _flag_k = FK_TEST; 1680 edi = 0x3105242Cu; /* 0x3100D65B: mov edi, 0x3105242c */ 1681 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; } /* 0x3100D660: repne scasb al, byte ptr es:[edi] */ 1682 ecx = ~ecx; /* 0x3100D662: not ecx */ 1683 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1684 ecx = ecx - 1; /* 0x3100D664: dec ecx */ 1685 _flag_k = FK_DEC; 1686 PUSH32(esp, ecx); /* 0x3100D665: push ecx */ 1687 PUSH32(esp, 0x3105242Cu); /* 0x3100D666: push 0x3105242c */ 1688 ecx = ebp + (-0x30); /* 0x3100D66B: lea ecx, [ebp - 0x30] */ 1689 MEM32(ebp + (-0x4)) = 1; /* 0x3100D66E: mov dword ptr [ebp - 4], 1 */ 1690 MEM32(ebp + (-0x2C)) = ebx; /* 0x3100D675: mov dword ptr [ebp - 0x2c], ebx */ 1691 MEM32(ebp + (-0x28)) = ebx; /* 0x3100D678: mov dword ptr [ebp - 0x28], ebx */ 1692 MEM32(ebp + (-0x24)) = ebx; /* 0x3100D67B: mov dword ptr [ebp - 0x24], ebx */ 1693 RECOMP_ICALL(MEM32(0x310480F0)); /* 0x3100D67E: call dword ptr [0x310480f0] */ 1694 RECOMP_FLAGS_IN(); 1695 edi = MEM32(0x310482CC); /* 0x3100D684: mov edi, dword ptr [0x310482cc] */ 1696 ecx = ebp + (-0x30); /* 0x3100D68A: lea ecx, [ebp - 0x30] */ 1697 PUSH32(esp, ecx); /* 0x3100D68D: push ecx */ 1698 PUSH32(esp, 0x3105224Cu); /* 0x3100D68E: push 0x3105224c */ 1699 ecx = ebp + (-0x70); /* 0x3100D693: lea ecx, [ebp - 0x70] */ 1700 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3100D696: mov byte ptr [ebp - 4], 2 */ 1701 RECOMP_ICALL(edi); /* 0x3100D69A: call edi */ 1702 RECOMP_FLAGS_IN(); 1703 eax = MEM32(ebp + (-0x2C)); /* 0x3100D69C: mov eax, dword ptr [ebp - 0x2c] */ 1704 /* cmp eax, ebx */ /* 0x3100D69F: cmp eax, ebx */ 1705 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1706 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1707 _flag_k = FK_CMP; 1708 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3100D6A1: mov byte ptr [ebp - 4], 1 */ 1709 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100D6C3; /* 0x3100D6A5: je 0x3100d6c3 */ 1710 L_3100D6A7: 1711 ecx = eax + (-0x1); /* 0x3100D6A7: lea ecx, [eax - 1] */ 1712 SET_LO8(eax, MEM8(ecx)); /* 0x3100D6AA: mov al, byte ptr [ecx] */ 1713 /* cmp LO8(eax), LO8(ebx) */ /* 0x3100D6AC: cmp al, bl */ 1714 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1715 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1716 _flag_k = FK_NARROW(FK_CMP, 24); 1717 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100D6BA; /* 0x3100D6AE: je 0x3100d6ba */ 1718 L_3100D6B0: 1719 /* cmp LO8(eax), 0xFFu */ /* 0x3100D6B0: cmp al, 0xff */ 1720 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 1721 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1722 _flag_k = FK_NARROW(FK_CMP, 24); 1723 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100D6BA; /* 0x3100D6B2: je 0x3100d6ba */ 1724 L_3100D6B4: 1725 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1726 SET_LO8(eax, LO8(eax) - 1); /* 0x3100D6B4: dec al */ 1727 _flag_k = FK_NARROW(FK_DEC, 24); 1728 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3100D6B6: mov byte ptr [ecx], al */ 1729 goto L_3100D6C3; /* 0x3100D6B8: jmp 0x3100d6c3 */ 1730 L_3100D6BA: 1731 PUSH32(esp, ecx); /* 0x3100D6BA: push ecx */ 1732 RECOMP_ICALL(0x31046858u); /* 0x3100D6BB: call 0x31046858 */ /* not lifted */ 1733 RECOMP_FLAGS_IN(); 1734 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1735 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1736 esp = esp + 4; /* 0x3100D6C0: add esp, 4 */ 1737 _flag_k = FK_ADD; 1738 L_3100D6C3: 1739 edx = MEM32(ebp + 0xC); /* 0x3100D6C3: mov edx, dword ptr [ebp + 0xc] */ 1740 PUSH32(esp, edx); /* 0x3100D6C6: push edx */ 1741 PUSH32(esp, 0x31052424u); /* 0x3100D6C7: push 0x31052424 */ 1742 ecx = ebp + (-0x70); /* 0x3100D6CC: lea ecx, [ebp - 0x70] */ 1743 RECOMP_ICALL(edi); /* 0x3100D6CF: call edi */ 1744 RECOMP_FLAGS_IN(); 1745 eax = MEM32(ebp + 0x10); /* 0x3100D6D1: mov eax, dword ptr [ebp + 0x10] */ 1746 PUSH32(esp, eax); /* 0x3100D6D4: push eax */ 1747 PUSH32(esp, 0x3105222Cu); /* 0x3100D6D5: push 0x3105222c */ 1748 ecx = ebp + (-0x70); /* 0x3100D6DA: lea ecx, [ebp - 0x70] */ 1749 RECOMP_ICALL(MEM32(0x310482BC)); /* 0x3100D6DD: call dword ptr [0x310482bc] */ 1750 RECOMP_FLAGS_IN(); 1751 ecx = esi; /* 0x3100D6E3: mov ecx, esi */ 1752 RECOMP_ICALL(0x310013E0u); /* 0x3100D6E5: call 0x310013e0 */ /* not lifted */ 1753 RECOMP_FLAGS_IN(); 1754 edi = esi + 0x30; /* 0x3100D6EA: lea edi, [esi + 0x30] */ 1755 L_3100D6ED: 1756 ecx = ebp + (-0x70); /* 0x3100D6ED: lea ecx, [ebp - 0x70] */ 1757 PUSH32(esp, ecx); /* 0x3100D6F0: push ecx */ 1758 ecx = edi; /* 0x3100D6F1: mov ecx, edi */ 1759 RECOMP_ICALL(0x31010CA0u); /* 0x3100D6F3: call 0x31010ca0 */ /* not lifted */ 1760 RECOMP_FLAGS_IN(); 1761 edx = ebp + (-0x70); /* 0x3100D6F8: lea edx, [ebp - 0x70] */ 1762 PUSH32(esp, edx); /* 0x3100D6FB: push edx */ 1763 ecx = edi; /* 0x3100D6FC: mov ecx, edi */ 1764 RECOMP_ICALL(0x31010F40u); /* 0x3100D6FE: call 0x31010f40 */ /* not lifted */ 1765 RECOMP_FLAGS_IN(); 1766 /* test LO8(eax), LO8(eax) */ /* 0x3100D703: test al, al */ 1767 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1768 _cf = 0; 1769 _flag_k = FK_NARROW(FK_TEST, 24); 1770 RECOMP_BACKEDGE(); 1771 if (TEST_Z(_flag_a, _flag_b)) goto L_3100D6ED; /* 0x3100D705: je 0x3100d6ed */ 1772 L_3100D707: 1773 ecx = esi; /* 0x3100D707: mov ecx, esi */ 1774 RECOMP_ICALL(0x310013E0u); /* 0x3100D709: call 0x310013e0 */ /* not lifted */ 1775 RECOMP_FLAGS_IN(); 1776 SET_LO8(eax, MEM8(ebp + 0xF)); /* 0x3100D70E: mov al, byte ptr [ebp + 0xf] */ 1777 PUSH32(esp, ebx); /* 0x3100D711: push ebx */ 1778 ecx = ebp + (-0x20); /* 0x3100D712: lea ecx, [ebp - 0x20] */ 1779 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x3100D715: mov byte ptr [ebp - 0x20], al */ 1780 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x3100D718: call dword ptr [0x310480d4] */ 1781 RECOMP_FLAGS_IN(); 1782 PUSH32(esp, ebx); /* 0x3100D71E: push ebx */ 1783 ecx = ebp + (-0x20); /* 0x3100D71F: lea ecx, [ebp - 0x20] */ 1784 PUSH32(esp, ecx); /* 0x3100D722: push ecx */ 1785 PUSH32(esp, 0x310522ECu); /* 0x3100D723: push 0x310522ec */ 1786 ecx = ebp + (-0x70); /* 0x3100D728: lea ecx, [ebp - 0x70] */ 1787 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x3100D72B: mov byte ptr [ebp - 4], 3 */ 1788 RECOMP_ICALL(MEM32(0x310482D0)); /* 0x3100D72F: call dword ptr [0x310482d0] */ 1789 RECOMP_FLAGS_IN(); 1790 edi = MEM32(ebp + 0x8); /* 0x3100D735: mov edi, dword ptr [ebp + 8] */ 1791 SET_LO8(edx, MEM8(ebp + (-0x20))); /* 0x3100D738: mov dl, byte ptr [ebp - 0x20] */ 1792 MEM8(edi) = (uint8_t)(LO8(edx)); /* 0x3100D73B: mov byte ptr [edi], dl */ 1793 MEM32(edi + 0x4) = ebx; /* 0x3100D73D: mov dword ptr [edi + 4], ebx */ 1794 MEM32(edi + 0x8) = ebx; /* 0x3100D740: mov dword ptr [edi + 8], ebx */ 1795 MEM32(edi + 0xC) = ebx; /* 0x3100D743: mov dword ptr [edi + 0xc], ebx */ 1796 eax = MEM32(0x310480F8); /* 0x3100D746: mov eax, dword ptr [0x310480f8] */ 1797 ecx = MEM32(eax); /* 0x3100D74B: mov ecx, dword ptr [eax] */ 1798 PUSH32(esp, ecx); /* 0x3100D74D: push ecx */ 1799 PUSH32(esp, ebx); /* 0x3100D74E: push ebx */ 1800 edx = ebp + (-0x20); /* 0x3100D74F: lea edx, [ebp - 0x20] */ 1801 PUSH32(esp, edx); /* 0x3100D752: push edx */ 1802 ecx = edi; /* 0x3100D753: mov ecx, edi */ 1803 RECOMP_ICALL(MEM32(0x310480FC)); /* 0x3100D755: call dword ptr [0x310480fc] */ 1804 RECOMP_FLAGS_IN(); 1805 MEM32(ebp + (-0x10)) = 1; /* 0x3100D75B: mov dword ptr [ebp - 0x10], 1 */ 1806 eax = MEM32(ebp + (-0x1C)); /* 0x3100D762: mov eax, dword ptr [ebp - 0x1c] */ 1807 /* cmp eax, ebx */ /* 0x3100D765: cmp eax, ebx */ 1808 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1809 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1810 _flag_k = FK_CMP; 1811 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100D785; /* 0x3100D767: je 0x3100d785 */ 1812 L_3100D769: 1813 ecx = eax + (-0x1); /* 0x3100D769: lea ecx, [eax - 1] */ 1814 SET_LO8(eax, MEM8(ecx)); /* 0x3100D76C: mov al, byte ptr [ecx] */ 1815 /* cmp LO8(eax), LO8(ebx) */ /* 0x3100D76E: cmp al, bl */ 1816 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1817 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1818 _flag_k = FK_NARROW(FK_CMP, 24); 1819 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100D77C; /* 0x3100D770: je 0x3100d77c */ 1820 L_3100D772: 1821 /* cmp LO8(eax), 0xFFu */ /* 0x3100D772: cmp al, 0xff */ 1822 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 1823 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1824 _flag_k = FK_NARROW(FK_CMP, 24); 1825 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100D77C; /* 0x3100D774: je 0x3100d77c */ 1826 L_3100D776: 1827 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1828 SET_LO8(eax, LO8(eax) - 1); /* 0x3100D776: dec al */ 1829 _flag_k = FK_NARROW(FK_DEC, 24); 1830 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3100D778: mov byte ptr [ecx], al */ 1831 goto L_3100D785; /* 0x3100D77A: jmp 0x3100d785 */ 1832 L_3100D77C: 1833 PUSH32(esp, ecx); /* 0x3100D77C: push ecx */ 1834 RECOMP_ICALL(0x31046858u); /* 0x3100D77D: call 0x31046858 */ /* not lifted */ 1835 RECOMP_FLAGS_IN(); 1836 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1837 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1838 esp = esp + 4; /* 0x3100D782: add esp, 4 */ 1839 _flag_k = FK_ADD; 1840 L_3100D785: 1841 MEM32(ebp + (-0x1C)) = ebx; /* 0x3100D785: mov dword ptr [ebp - 0x1c], ebx */ 1842 MEM32(ebp + (-0x18)) = ebx; /* 0x3100D788: mov dword ptr [ebp - 0x18], ebx */ 1843 MEM32(ebp + (-0x14)) = ebx; /* 0x3100D78B: mov dword ptr [ebp - 0x14], ebx */ 1844 MEM32(ebp + (-0x70)) = 0x3104876Cu; /* 0x3100D78E: mov dword ptr [ebp - 0x70], 0x3104876c */ 1845 ecx = ebp + (-0x70); /* 0x3100D795: lea ecx, [ebp - 0x70] */ 1846 MEM32(ebp + (-0x4)) = 5; /* 0x3100D798: mov dword ptr [ebp - 4], 5 */ 1847 RECOMP_ICALL(MEM32(0x310482F8)); /* 0x3100D79F: call dword ptr [0x310482f8] */ 1848 RECOMP_FLAGS_IN(); 1849 eax = MEM32(ebp + (-0x38)); /* 0x3100D7A5: mov eax, dword ptr [ebp - 0x38] */ 1850 ecx = MEM32(ebp + (-0x3C)); /* 0x3100D7A8: mov ecx, dword ptr [ebp - 0x3c] */ 1851 PUSH32(esp, eax); /* 0x3100D7AB: push eax */ 1852 PUSH32(esp, ecx); /* 0x3100D7AC: push ecx */ 1853 ecx = ebp + (-0x40); /* 0x3100D7AD: lea ecx, [ebp - 0x40] */ 1854 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x3100D7B0: mov byte ptr [ebp - 4], 4 */ 1855 RECOMP_ICALL(0x3100E4D0u); /* 0x3100D7B4: call 0x3100e4d0 */ /* not lifted */ 1856 RECOMP_FLAGS_IN(); 1857 edx = MEM32(ebp + (-0x3C)); /* 0x3100D7B9: mov edx, dword ptr [ebp - 0x3c] */ 1858 PUSH32(esp, edx); /* 0x3100D7BC: push edx */ 1859 RECOMP_ICALL(0x31046858u); /* 0x3100D7BD: call 0x31046858 */ /* not lifted */ 1860 RECOMP_FLAGS_IN(); 1861 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1862 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1863 esp = esp + 4; /* 0x3100D7C2: add esp, 4 */ 1864 _flag_k = FK_ADD; 1865 ecx = ebp + (-0x6C); /* 0x3100D7C5: lea ecx, [ebp - 0x6c] */ 1866 MEM32(ebp + (-0x3C)) = ebx; /* 0x3100D7C8: mov dword ptr [ebp - 0x3c], ebx */ 1867 MEM32(ebp + (-0x38)) = ebx; /* 0x3100D7CB: mov dword ptr [ebp - 0x38], ebx */ 1868 MEM32(ebp + (-0x34)) = ebx; /* 0x3100D7CE: mov dword ptr [ebp - 0x34], ebx */ 1869 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3100D7D1: mov byte ptr [ebp - 4], bl */ 1870 RECOMP_ICALL(0x3100E340u); /* 0x3100D7D4: call 0x3100e340 */ /* not lifted */ 1871 RECOMP_FLAGS_IN(); 1872 ecx = MEM32(ebp + (-0xC)); /* 0x3100D7D9: mov ecx, dword ptr [ebp - 0xc] */ 1873 eax = edi; /* 0x3100D7DC: mov eax, edi */ 1874 edi = POP32_VAL(esp); /* 0x3100D7DE: pop edi */ 1875 esi = POP32_VAL(esp); /* 0x3100D7DF: pop esi */ 1876 ebx = POP32_VAL(esp); /* 0x3100D7E0: pop ebx */ 1877 MEM32(FS_BASE + (0)) = ecx; /* 0x3100D7E1: mov dword ptr fs:[0], ecx */ 1878 esp = ebp; /* 0x3100D7E8: mov esp, ebp */ 1879 ebp = POP32_VAL(esp); /* 0x3100D7EA: pop ebp */ 1880 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3100D7EB: ret 0xc */ 1881 RECOMP_REGS_OUT(); 1882 } 1883 1884 void sub_3100D7F0(void) { 1885 int _fpu_cmp = 0; 1886 uint32_t _cf = 0; 1887 int _df = 1; 1888 uint32_t _flag_k = FK_NONE; 1889 uint32_t _flag_a = 0, _flag_b = 0; 1890 uint32_t _itail_tgt = 0; 1891 RECOMP_REGS_LOCALS 1892 RECOMP_ENTER(0x3100D7F0u); 1893 1894 L_3100D7F0: 1895 PUSH32(esp, ebp); /* 0x3100D7F0: push ebp */ 1896 ebp = esp; /* 0x3100D7F1: mov ebp, esp */ 1897 PUSH32(esp, 0xFFFFFFFFu); /* 0x3100D7F3: push -1 */ 1898 PUSH32(esp, 0x31047972u); /* 0x3100D7F5: push 0x31047972 */ 1899 eax = MEM32(FS_BASE + (0)); /* 0x3100D7FA: mov eax, dword ptr fs:[0] */ 1900 PUSH32(esp, eax); /* 0x3100D800: push eax */ 1901 MEM32(FS_BASE + (0)) = esp; /* 0x3100D801: mov dword ptr fs:[0], esp */ 1902 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x64u); 1903 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1904 esp = esp - 0x64u; /* 0x3100D808: sub esp, 0x64 */ 1905 _flag_k = FK_CMP; 1906 PUSH32(esp, ebx); /* 0x3100D80B: push ebx */ 1907 PUSH32(esp, esi); /* 0x3100D80C: push esi */ 1908 PUSH32(esp, edi); /* 0x3100D80D: push edi */ 1909 esi = ecx; /* 0x3100D80E: mov esi, ecx */ 1910 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1911 ebx = 0; /* 0x3100D810: xor ebx, ebx */ 1912 _cf = 0; 1913 _flag_k = FK_TEST; 1914 PUSH32(esp, 0xFFFFFFFFu); /* 0x3100D812: push -1 */ 1915 ecx = ebp + (-0x70); /* 0x3100D814: lea ecx, [ebp - 0x70] */ 1916 MEM32(ebp + (-0x10)) = ebx; /* 0x3100D817: mov dword ptr [ebp - 0x10], ebx */ 1917 RECOMP_ICALL(MEM32(0x310482C8)); /* 0x3100D81A: call dword ptr [0x310482c8] */ 1918 RECOMP_FLAGS_IN(); 1919 SET_LO8(eax, MEM8(ebp + 0xF)); /* 0x3100D820: mov al, byte ptr [ebp + 0xf] */ 1920 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1921 ecx = ecx | 0xFFFFFFFFu; /* 0x3100D823: or ecx, 0xffffffff */ 1922 _cf = 0; 1923 _flag_k = FK_TEST; 1924 MEM8(ebp + (-0x30)) = (uint8_t)(LO8(eax)); /* 0x3100D826: mov byte ptr [ebp - 0x30], al */ 1925 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1926 eax = 0; /* 0x3100D829: xor eax, eax */ 1927 _cf = 0; 1928 _flag_k = FK_TEST; 1929 edi = 0x31052438u; /* 0x3100D82B: mov edi, 0x31052438 */ 1930 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; } /* 0x3100D830: repne scasb al, byte ptr es:[edi] */ 1931 ecx = ~ecx; /* 0x3100D832: not ecx */ 1932 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1933 ecx = ecx - 1; /* 0x3100D834: dec ecx */ 1934 _flag_k = FK_DEC; 1935 PUSH32(esp, ecx); /* 0x3100D835: push ecx */ 1936 PUSH32(esp, 0x31052438u); /* 0x3100D836: push 0x31052438 */ 1937 ecx = ebp + (-0x30); /* 0x3100D83B: lea ecx, [ebp - 0x30] */ 1938 MEM32(ebp + (-0x4)) = 1; /* 0x3100D83E: mov dword ptr [ebp - 4], 1 */ 1939 MEM32(ebp + (-0x2C)) = ebx; /* 0x3100D845: mov dword ptr [ebp - 0x2c], ebx */ 1940 MEM32(ebp + (-0x28)) = ebx; /* 0x3100D848: mov dword ptr [ebp - 0x28], ebx */ 1941 MEM32(ebp + (-0x24)) = ebx; /* 0x3100D84B: mov dword ptr [ebp - 0x24], ebx */ 1942 RECOMP_ICALL(MEM32(0x310480F0)); /* 0x3100D84E: call dword ptr [0x310480f0] */ 1943 RECOMP_FLAGS_IN(); 1944 edi = MEM32(0x310482CC); /* 0x3100D854: mov edi, dword ptr [0x310482cc] */ 1945 ecx = ebp + (-0x30); /* 0x3100D85A: lea ecx, [ebp - 0x30] */ 1946 PUSH32(esp, ecx); /* 0x3100D85D: push ecx */ 1947 PUSH32(esp, 0x3105224Cu); /* 0x3100D85E: push 0x3105224c */ 1948 ecx = ebp + (-0x70); /* 0x3100D863: lea ecx, [ebp - 0x70] */ 1949 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3100D866: mov byte ptr [ebp - 4], 2 */ 1950 RECOMP_ICALL(edi); /* 0x3100D86A: call edi */ 1951 RECOMP_FLAGS_IN(); 1952 eax = MEM32(ebp + (-0x2C)); /* 0x3100D86C: mov eax, dword ptr [ebp - 0x2c] */ 1953 /* cmp eax, ebx */ /* 0x3100D86F: cmp eax, ebx */ 1954 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1955 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1956 _flag_k = FK_CMP; 1957 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3100D871: mov byte ptr [ebp - 4], 1 */ 1958 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100D893; /* 0x3100D875: je 0x3100d893 */ 1959 L_3100D877: 1960 ecx = eax + (-0x1); /* 0x3100D877: lea ecx, [eax - 1] */ 1961 SET_LO8(eax, MEM8(ecx)); /* 0x3100D87A: mov al, byte ptr [ecx] */ 1962 /* cmp LO8(eax), LO8(ebx) */ /* 0x3100D87C: cmp al, bl */ 1963 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1964 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1965 _flag_k = FK_NARROW(FK_CMP, 24); 1966 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100D88A; /* 0x3100D87E: je 0x3100d88a */ 1967 L_3100D880: 1968 /* cmp LO8(eax), 0xFFu */ /* 0x3100D880: cmp al, 0xff */ 1969 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 1970 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1971 _flag_k = FK_NARROW(FK_CMP, 24); 1972 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100D88A; /* 0x3100D882: je 0x3100d88a */ 1973 L_3100D884: 1974 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1975 SET_LO8(eax, LO8(eax) - 1); /* 0x3100D884: dec al */ 1976 _flag_k = FK_NARROW(FK_DEC, 24); 1977 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3100D886: mov byte ptr [ecx], al */ 1978 goto L_3100D893; /* 0x3100D888: jmp 0x3100d893 */ 1979 L_3100D88A: 1980 PUSH32(esp, ecx); /* 0x3100D88A: push ecx */ 1981 RECOMP_ICALL(0x31046858u); /* 0x3100D88B: call 0x31046858 */ /* not lifted */ 1982 RECOMP_FLAGS_IN(); 1983 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1984 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1985 esp = esp + 4; /* 0x3100D890: add esp, 4 */ 1986 _flag_k = FK_ADD; 1987 L_3100D893: 1988 edx = MEM32(ebp + 0xC); /* 0x3100D893: mov edx, dword ptr [ebp + 0xc] */ 1989 PUSH32(esp, edx); /* 0x3100D896: push edx */ 1990 PUSH32(esp, 0x31052424u); /* 0x3100D897: push 0x31052424 */ 1991 ecx = ebp + (-0x70); /* 0x3100D89C: lea ecx, [ebp - 0x70] */ 1992 RECOMP_ICALL(edi); /* 0x3100D89F: call edi */ 1993 RECOMP_FLAGS_IN(); 1994 ecx = esi; /* 0x3100D8A1: mov ecx, esi */ 1995 RECOMP_ICALL(0x310013E0u); /* 0x3100D8A3: call 0x310013e0 */ /* not lifted */ 1996 RECOMP_FLAGS_IN(); 1997 edi = esi + 0x30; /* 0x3100D8A8: lea edi, [esi + 0x30] */ 1998 L_3100D8AB: 1999 eax = ebp + (-0x70); /* 0x3100D8AB: lea eax, [ebp - 0x70] */ 2000 PUSH32(esp, eax); /* 0x3100D8AE: push eax */ 2001 ecx = edi; /* 0x3100D8AF: mov ecx, edi */ 2002 RECOMP_ICALL(0x31010CA0u); /* 0x3100D8B1: call 0x31010ca0 */ /* not lifted */ 2003 RECOMP_FLAGS_IN(); 2004 ecx = ebp + (-0x70); /* 0x3100D8B6: lea ecx, [ebp - 0x70] */ 2005 PUSH32(esp, ecx); /* 0x3100D8B9: push ecx */ 2006 ecx = edi; /* 0x3100D8BA: mov ecx, edi */ 2007 RECOMP_ICALL(0x31010F40u); /* 0x3100D8BC: call 0x31010f40 */ /* not lifted */ 2008 RECOMP_FLAGS_IN(); 2009 /* test LO8(eax), LO8(eax) */ /* 0x3100D8C1: test al, al */ 2010 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2011 _cf = 0; 2012 _flag_k = FK_NARROW(FK_TEST, 24); 2013 RECOMP_BACKEDGE(); 2014 if (TEST_Z(_flag_a, _flag_b)) goto L_3100D8AB; /* 0x3100D8C3: je 0x3100d8ab */ 2015 L_3100D8C5: 2016 ecx = esi; /* 0x3100D8C5: mov ecx, esi */ 2017 RECOMP_ICALL(0x310013E0u); /* 0x3100D8C7: call 0x310013e0 */ /* not lifted */ 2018 RECOMP_FLAGS_IN(); 2019 SET_LO8(edx, MEM8(ebp + 0xF)); /* 0x3100D8CC: mov dl, byte ptr [ebp + 0xf] */ 2020 PUSH32(esp, ebx); /* 0x3100D8CF: push ebx */ 2021 ecx = ebp + (-0x20); /* 0x3100D8D0: lea ecx, [ebp - 0x20] */ 2022 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(edx)); /* 0x3100D8D3: mov byte ptr [ebp - 0x20], dl */ 2023 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x3100D8D6: call dword ptr [0x310480d4] */ 2024 RECOMP_FLAGS_IN(); 2025 PUSH32(esp, ebx); /* 0x3100D8DC: push ebx */ 2026 eax = ebp + (-0x20); /* 0x3100D8DD: lea eax, [ebp - 0x20] */ 2027 PUSH32(esp, eax); /* 0x3100D8E0: push eax */ 2028 PUSH32(esp, 0x310522ECu); /* 0x3100D8E1: push 0x310522ec */ 2029 ecx = ebp + (-0x70); /* 0x3100D8E6: lea ecx, [ebp - 0x70] */ 2030 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x3100D8E9: mov byte ptr [ebp - 4], 3 */ 2031 RECOMP_ICALL(MEM32(0x310482D0)); /* 0x3100D8ED: call dword ptr [0x310482d0] */ 2032 RECOMP_FLAGS_IN(); 2033 edi = MEM32(ebp + 0x8); /* 0x3100D8F3: mov edi, dword ptr [ebp + 8] */ 2034 SET_LO8(ecx, MEM8(ebp + (-0x20))); /* 0x3100D8F6: mov cl, byte ptr [ebp - 0x20] */ 2035 MEM8(edi) = (uint8_t)(LO8(ecx)); /* 0x3100D8F9: mov byte ptr [edi], cl */ 2036 MEM32(edi + 0x4) = ebx; /* 0x3100D8FB: mov dword ptr [edi + 4], ebx */ 2037 MEM32(edi + 0x8) = ebx; /* 0x3100D8FE: mov dword ptr [edi + 8], ebx */ 2038 MEM32(edi + 0xC) = ebx; /* 0x3100D901: mov dword ptr [edi + 0xc], ebx */ 2039 edx = MEM32(0x310480F8); /* 0x3100D904: mov edx, dword ptr [0x310480f8] */ 2040 eax = MEM32(edx); /* 0x3100D90A: mov eax, dword ptr [edx] */ 2041 PUSH32(esp, eax); /* 0x3100D90C: push eax */ 2042 PUSH32(esp, ebx); /* 0x3100D90D: push ebx */ 2043 ecx = ebp + (-0x20); /* 0x3100D90E: lea ecx, [ebp - 0x20] */ 2044 PUSH32(esp, ecx); /* 0x3100D911: push ecx */ 2045 ecx = edi; /* 0x3100D912: mov ecx, edi */ 2046 RECOMP_ICALL(MEM32(0x310480FC)); /* 0x3100D914: call dword ptr [0x310480fc] */ 2047 RECOMP_FLAGS_IN(); 2048 MEM32(ebp + (-0x10)) = 1; /* 0x3100D91A: mov dword ptr [ebp - 0x10], 1 */ 2049 eax = MEM32(ebp + (-0x1C)); /* 0x3100D921: mov eax, dword ptr [ebp - 0x1c] */ 2050 /* cmp eax, ebx */ /* 0x3100D924: cmp eax, ebx */ 2051 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2052 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2053 _flag_k = FK_CMP; 2054 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100D944; /* 0x3100D926: je 0x3100d944 */ 2055 L_3100D928: 2056 ecx = eax + (-0x1); /* 0x3100D928: lea ecx, [eax - 1] */ 2057 SET_LO8(eax, MEM8(ecx)); /* 0x3100D92B: mov al, byte ptr [ecx] */ 2058 /* cmp LO8(eax), LO8(ebx) */ /* 0x3100D92D: cmp al, bl */ 2059 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 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_3100D93B; /* 0x3100D92F: je 0x3100d93b */ 2063 L_3100D931: 2064 /* cmp LO8(eax), 0xFFu */ /* 0x3100D931: cmp al, 0xff */ 2065 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 2066 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2067 _flag_k = FK_NARROW(FK_CMP, 24); 2068 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100D93B; /* 0x3100D933: je 0x3100d93b */ 2069 L_3100D935: 2070 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2071 SET_LO8(eax, LO8(eax) - 1); /* 0x3100D935: dec al */ 2072 _flag_k = FK_NARROW(FK_DEC, 24); 2073 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3100D937: mov byte ptr [ecx], al */ 2074 goto L_3100D944; /* 0x3100D939: jmp 0x3100d944 */ 2075 L_3100D93B: 2076 PUSH32(esp, ecx); /* 0x3100D93B: push ecx */ 2077 RECOMP_ICALL(0x31046858u); /* 0x3100D93C: call 0x31046858 */ /* not lifted */ 2078 RECOMP_FLAGS_IN(); 2079 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2080 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2081 esp = esp + 4; /* 0x3100D941: add esp, 4 */ 2082 _flag_k = FK_ADD; 2083 L_3100D944: 2084 MEM32(ebp + (-0x1C)) = ebx; /* 0x3100D944: mov dword ptr [ebp - 0x1c], ebx */ 2085 MEM32(ebp + (-0x18)) = ebx; /* 0x3100D947: mov dword ptr [ebp - 0x18], ebx */ 2086 MEM32(ebp + (-0x14)) = ebx; /* 0x3100D94A: mov dword ptr [ebp - 0x14], ebx */ 2087 MEM32(ebp + (-0x70)) = 0x3104876Cu; /* 0x3100D94D: mov dword ptr [ebp - 0x70], 0x3104876c */ 2088 ecx = ebp + (-0x70); /* 0x3100D954: lea ecx, [ebp - 0x70] */ 2089 MEM32(ebp + (-0x4)) = 5; /* 0x3100D957: mov dword ptr [ebp - 4], 5 */ 2090 RECOMP_ICALL(MEM32(0x310482F8)); /* 0x3100D95E: call dword ptr [0x310482f8] */ 2091 RECOMP_FLAGS_IN(); 2092 edx = MEM32(ebp + (-0x38)); /* 0x3100D964: mov edx, dword ptr [ebp - 0x38] */ 2093 eax = MEM32(ebp + (-0x3C)); /* 0x3100D967: mov eax, dword ptr [ebp - 0x3c] */ 2094 PUSH32(esp, edx); /* 0x3100D96A: push edx */ 2095 PUSH32(esp, eax); /* 0x3100D96B: push eax */ 2096 ecx = ebp + (-0x40); /* 0x3100D96C: lea ecx, [ebp - 0x40] */ 2097 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x3100D96F: mov byte ptr [ebp - 4], 4 */ 2098 RECOMP_ICALL(0x3100E4D0u); /* 0x3100D973: call 0x3100e4d0 */ /* not lifted */ 2099 RECOMP_FLAGS_IN(); 2100 ecx = MEM32(ebp + (-0x3C)); /* 0x3100D978: mov ecx, dword ptr [ebp - 0x3c] */ 2101 PUSH32(esp, ecx); /* 0x3100D97B: push ecx */ 2102 RECOMP_ICALL(0x31046858u); /* 0x3100D97C: call 0x31046858 */ /* not lifted */ 2103 RECOMP_FLAGS_IN(); 2104 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2105 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2106 esp = esp + 4; /* 0x3100D981: add esp, 4 */ 2107 _flag_k = FK_ADD; 2108 ecx = ebp + (-0x6C); /* 0x3100D984: lea ecx, [ebp - 0x6c] */ 2109 MEM32(ebp + (-0x3C)) = ebx; /* 0x3100D987: mov dword ptr [ebp - 0x3c], ebx */ 2110 MEM32(ebp + (-0x38)) = ebx; /* 0x3100D98A: mov dword ptr [ebp - 0x38], ebx */ 2111 MEM32(ebp + (-0x34)) = ebx; /* 0x3100D98D: mov dword ptr [ebp - 0x34], ebx */ 2112 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3100D990: mov byte ptr [ebp - 4], bl */ 2113 RECOMP_ICALL(0x3100E340u); /* 0x3100D993: call 0x3100e340 */ /* not lifted */ 2114 RECOMP_FLAGS_IN(); 2115 ecx = MEM32(ebp + (-0xC)); /* 0x3100D998: mov ecx, dword ptr [ebp - 0xc] */ 2116 eax = edi; /* 0x3100D99B: mov eax, edi */ 2117 edi = POP32_VAL(esp); /* 0x3100D99D: pop edi */ 2118 esi = POP32_VAL(esp); /* 0x3100D99E: pop esi */ 2119 ebx = POP32_VAL(esp); /* 0x3100D99F: pop ebx */ 2120 MEM32(FS_BASE + (0)) = ecx; /* 0x3100D9A0: mov dword ptr fs:[0], ecx */ 2121 esp = ebp; /* 0x3100D9A7: mov esp, ebp */ 2122 ebp = POP32_VAL(esp); /* 0x3100D9A9: pop ebp */ 2123 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100D9AA: ret 8 */ 2124 RECOMP_REGS_OUT(); 2125 } 2126 2127 void sub_3100D9B0(void) { 2128 int _fpu_cmp = 0; 2129 uint32_t _cf = 0; 2130 int _df = 1; 2131 uint32_t _flag_k = FK_NONE; 2132 uint32_t _flag_a = 0, _flag_b = 0; 2133 uint32_t _itail_tgt = 0; 2134 RECOMP_REGS_LOCALS 2135 RECOMP_ENTER(0x3100D9B0u); 2136 2137 L_3100D9B0: 2138 PUSH32(esp, ebp); /* 0x3100D9B0: push ebp */ 2139 ebp = esp; /* 0x3100D9B1: mov ebp, esp */ 2140 PUSH32(esp, 0xFFFFFFFFu); /* 0x3100D9B3: push -1 */ 2141 PUSH32(esp, 0x310479C2u); /* 0x3100D9B5: push 0x310479c2 */ 2142 eax = MEM32(FS_BASE + (0)); /* 0x3100D9BA: mov eax, dword ptr fs:[0] */ 2143 PUSH32(esp, eax); /* 0x3100D9C0: push eax */ 2144 MEM32(FS_BASE + (0)) = esp; /* 0x3100D9C1: mov dword ptr fs:[0], esp */ 2145 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x68u); 2146 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2147 esp = esp - 0x68u; /* 0x3100D9C8: sub esp, 0x68 */ 2148 _flag_k = FK_CMP; 2149 PUSH32(esp, ebx); /* 0x3100D9CB: push ebx */ 2150 PUSH32(esp, esi); /* 0x3100D9CC: push esi */ 2151 PUSH32(esp, edi); /* 0x3100D9CD: push edi */ 2152 esi = ecx; /* 0x3100D9CE: mov esi, ecx */ 2153 PUSH32(esp, 1); /* 0x3100D9D0: push 1 */ 2154 MEM32(ebp + (-0x10)) = esi; /* 0x3100D9D2: mov dword ptr [ebp - 0x10], esi */ 2155 MEM32(ebp + (-0x14)) = 0; /* 0x3100D9D5: mov dword ptr [ebp - 0x14], 0 */ 2156 RECOMP_ICALL(0x31009E30u); /* 0x3100D9DC: call 0x31009e30 */ /* not lifted */ 2157 RECOMP_FLAGS_IN(); 2158 /* test LO8(eax), LO8(eax) */ /* 0x3100D9E1: test al, al */ 2159 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2160 _cf = 0; 2161 _flag_k = FK_NARROW(FK_TEST, 24); 2162 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100DA44; /* 0x3100D9E3: jne 0x3100da44 */ 2163 L_3100D9E5: 2164 esi = MEM32(ebp + 0x8); /* 0x3100D9E5: mov esi, dword ptr [ebp + 8] */ 2165 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3100D9E8: mov al, byte ptr [ebp + 0xb] */ 2166 PUSH32(esp, 0); /* 0x3100D9EB: push 0 */ 2167 ecx = esi; /* 0x3100D9ED: mov ecx, esi */ 2168 MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x3100D9EF: mov byte ptr [esi], al */ 2169 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x3100D9F1: call dword ptr [0x310480d4] */ 2170 RECOMP_FLAGS_IN(); 2171 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2172 ecx = ecx | 0xFFFFFFFFu; /* 0x3100D9F7: or ecx, 0xffffffff */ 2173 _cf = 0; 2174 _flag_k = FK_TEST; 2175 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2176 eax = 0; /* 0x3100D9FA: xor eax, eax */ 2177 _cf = 0; 2178 _flag_k = FK_TEST; 2179 edi = 0x31052450u; /* 0x3100D9FC: mov edi, 0x31052450 */ 2180 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; } /* 0x3100DA01: repne scasb al, byte ptr es:[edi] */ 2181 ecx = ~ecx; /* 0x3100DA03: not ecx */ 2182 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2183 ecx = ecx - 1; /* 0x3100DA05: dec ecx */ 2184 _flag_k = FK_DEC; 2185 ebx = ecx; /* 0x3100DA06: mov ebx, ecx */ 2186 PUSH32(esp, 1); /* 0x3100DA08: push 1 */ 2187 PUSH32(esp, ebx); /* 0x3100DA0A: push ebx */ 2188 ecx = esi; /* 0x3100DA0B: mov ecx, esi */ 2189 RECOMP_ICALL(MEM32(0x31048070)); /* 0x3100DA0D: call dword ptr [0x31048070] */ 2190 RECOMP_FLAGS_IN(); 2191 /* test LO8(eax), LO8(eax) */ /* 0x3100DA13: test al, al */ 2192 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2193 _cf = 0; 2194 _flag_k = FK_NARROW(FK_TEST, 24); 2195 if (TEST_Z(_flag_a, _flag_b)) goto L_3100DA3F; /* 0x3100DA15: je 0x3100da3f */ 2196 L_3100DA17: 2197 edi = MEM32(esi + 0x4); /* 0x3100DA17: mov edi, dword ptr [esi + 4] */ 2198 eax = MEM32(ebp + 0x8); /* 0x3100DA1A: mov eax, dword ptr [ebp + 8] */ 2199 ecx = ebx; /* 0x3100DA1D: mov ecx, ebx */ 2200 edx = ecx; /* 0x3100DA1F: mov edx, ecx */ 2201 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3100DA21: shr ecx, 2 */ 2202 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2203 ecx = ecx >> 2u; /* 0x3100DA21: shr ecx, 2 */ 2204 esi = 0x31052450u; /* 0x3100DA24: mov esi, 0x31052450 */ 2205 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3100DA29: 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; } 2206 ecx = edx; /* 0x3100DA2B: mov ecx, edx */ 2207 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 2208 ecx = ecx & 3; /* 0x3100DA2D: and ecx, 3 */ 2209 _cf = 0; 2210 _flag_k = FK_TEST; 2211 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3100DA30: 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; } 2212 ecx = MEM32(eax + 0x4); /* 0x3100DA32: mov ecx, dword ptr [eax + 4] */ 2213 MEM32(eax + 0x8) = ebx; /* 0x3100DA35: mov dword ptr [eax + 8], ebx */ 2214 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 2215 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2216 ebx = ebx + ecx; /* 0x3100DA38: add ebx, ecx */ 2217 _flag_k = FK_ADD; 2218 MEM8(ebx) = (uint8_t)(0); /* 0x3100DA3A: mov byte ptr [ebx], 0 */ 2219 esi = eax; /* 0x3100DA3D: mov esi, eax */ 2220 L_3100DA3F: 2221 goto L_3100DBCE; /* 0x3100DA3F: jmp 0x3100dbce */ 2222 L_3100DA44: 2223 PUSH32(esp, 0xFFFFFFFFu); /* 0x3100DA44: push -1 */ 2224 ecx = ebp + (-0x74); /* 0x3100DA46: lea ecx, [ebp - 0x74] */ 2225 RECOMP_ICALL(MEM32(0x310482C8)); /* 0x3100DA49: call dword ptr [0x310482c8] */ 2226 RECOMP_FLAGS_IN(); 2227 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3100DA4F: mov al, byte ptr [ebp + 0xb] */ 2228 PUSH32(esp, 0); /* 0x3100DA52: push 0 */ 2229 ecx = ebp + (-0x34); /* 0x3100DA54: lea ecx, [ebp - 0x34] */ 2230 MEM32(ebp + (-0x4)) = 1; /* 0x3100DA57: mov dword ptr [ebp - 4], 1 */ 2231 MEM8(ebp + (-0x34)) = (uint8_t)(LO8(eax)); /* 0x3100DA5E: mov byte ptr [ebp - 0x34], al */ 2232 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x3100DA61: call dword ptr [0x310480d4] */ 2233 RECOMP_FLAGS_IN(); 2234 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2235 ecx = ecx | 0xFFFFFFFFu; /* 0x3100DA67: or ecx, 0xffffffff */ 2236 _cf = 0; 2237 _flag_k = FK_TEST; 2238 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2239 eax = 0; /* 0x3100DA6A: xor eax, eax */ 2240 _cf = 0; 2241 _flag_k = FK_TEST; 2242 edi = 0x31052444u; /* 0x3100DA6C: mov edi, 0x31052444 */ 2243 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; } /* 0x3100DA71: repne scasb al, byte ptr es:[edi] */ 2244 ecx = ~ecx; /* 0x3100DA73: not ecx */ 2245 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2246 ecx = ecx - 1; /* 0x3100DA75: dec ecx */ 2247 _flag_k = FK_DEC; 2248 ebx = ecx; /* 0x3100DA76: mov ebx, ecx */ 2249 PUSH32(esp, 1); /* 0x3100DA78: push 1 */ 2250 PUSH32(esp, ebx); /* 0x3100DA7A: push ebx */ 2251 ecx = ebp + (-0x34); /* 0x3100DA7B: lea ecx, [ebp - 0x34] */ 2252 RECOMP_ICALL(MEM32(0x31048070)); /* 0x3100DA7E: call dword ptr [0x31048070] */ 2253 RECOMP_FLAGS_IN(); 2254 /* test LO8(eax), LO8(eax) */ /* 0x3100DA84: test al, al */ 2255 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2256 _cf = 0; 2257 _flag_k = FK_NARROW(FK_TEST, 24); 2258 if (TEST_Z(_flag_a, _flag_b)) goto L_3100DAAD; /* 0x3100DA86: je 0x3100daad */ 2259 L_3100DA88: 2260 edi = MEM32(ebp + (-0x30)); /* 0x3100DA88: mov edi, dword ptr [ebp - 0x30] */ 2261 ecx = ebx; /* 0x3100DA8B: mov ecx, ebx */ 2262 edx = ecx; /* 0x3100DA8D: mov edx, ecx */ 2263 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3100DA8F: shr ecx, 2 */ 2264 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2265 ecx = ecx >> 2u; /* 0x3100DA8F: shr ecx, 2 */ 2266 esi = 0x31052444u; /* 0x3100DA92: mov esi, 0x31052444 */ 2267 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3100DA97: 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; } 2268 ecx = edx; /* 0x3100DA99: mov ecx, edx */ 2269 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 2270 ecx = ecx & 3; /* 0x3100DA9B: and ecx, 3 */ 2271 _cf = 0; 2272 _flag_k = FK_TEST; 2273 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3100DA9E: 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; } 2274 eax = MEM32(ebp + (-0x30)); /* 0x3100DAA0: mov eax, dword ptr [ebp - 0x30] */ 2275 esi = MEM32(ebp + (-0x10)); /* 0x3100DAA3: mov esi, dword ptr [ebp - 0x10] */ 2276 MEM32(ebp + (-0x2C)) = ebx; /* 0x3100DAA6: mov dword ptr [ebp - 0x2c], ebx */ 2277 MEM8(eax + ebx) = (uint8_t)(0); /* 0x3100DAA9: mov byte ptr [eax + ebx], 0 */ 2278 L_3100DAAD: 2279 ecx = ebp + (-0x34); /* 0x3100DAAD: lea ecx, [ebp - 0x34] */ 2280 PUSH32(esp, ecx); /* 0x3100DAB0: push ecx */ 2281 PUSH32(esp, 0x3105224Cu); /* 0x3100DAB1: push 0x3105224c */ 2282 ecx = ebp + (-0x74); /* 0x3100DAB6: lea ecx, [ebp - 0x74] */ 2283 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3100DAB9: mov byte ptr [ebp - 4], 2 */ 2284 RECOMP_ICALL(MEM32(0x310482CC)); /* 0x3100DABD: call dword ptr [0x310482cc] */ 2285 RECOMP_FLAGS_IN(); 2286 PUSH32(esp, 1); /* 0x3100DAC3: push 1 */ 2287 ecx = ebp + (-0x34); /* 0x3100DAC5: lea ecx, [ebp - 0x34] */ 2288 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3100DAC8: mov byte ptr [ebp - 4], 1 */ 2289 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x3100DACC: call dword ptr [0x310480d4] */ 2290 RECOMP_FLAGS_IN(); 2291 ecx = esi; /* 0x3100DAD2: mov ecx, esi */ 2292 RECOMP_ICALL(0x310013E0u); /* 0x3100DAD4: call 0x310013e0 */ /* not lifted */ 2293 RECOMP_FLAGS_IN(); 2294 edi = esi + 0x30; /* 0x3100DAD9: lea edi, [esi + 0x30] */ 2295 L_3100DADC: 2296 edx = ebp + (-0x74); /* 0x3100DADC: lea edx, [ebp - 0x74] */ 2297 PUSH32(esp, edx); /* 0x3100DADF: push edx */ 2298 ecx = edi; /* 0x3100DAE0: mov ecx, edi */ 2299 RECOMP_ICALL(0x31010CA0u); /* 0x3100DAE2: call 0x31010ca0 */ /* not lifted */ 2300 RECOMP_FLAGS_IN(); 2301 eax = ebp + (-0x74); /* 0x3100DAE7: lea eax, [ebp - 0x74] */ 2302 PUSH32(esp, eax); /* 0x3100DAEA: push eax */ 2303 ecx = edi; /* 0x3100DAEB: mov ecx, edi */ 2304 RECOMP_ICALL(0x31010F40u); /* 0x3100DAED: call 0x31010f40 */ /* not lifted */ 2305 RECOMP_FLAGS_IN(); 2306 /* test LO8(eax), LO8(eax) */ /* 0x3100DAF2: test al, al */ 2307 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2308 _cf = 0; 2309 _flag_k = FK_NARROW(FK_TEST, 24); 2310 RECOMP_BACKEDGE(); 2311 if (TEST_Z(_flag_a, _flag_b)) goto L_3100DADC; /* 0x3100DAF4: je 0x3100dadc */ 2312 L_3100DAF6: 2313 ecx = esi; /* 0x3100DAF6: mov ecx, esi */ 2314 RECOMP_ICALL(0x310013E0u); /* 0x3100DAF8: call 0x310013e0 */ /* not lifted */ 2315 RECOMP_FLAGS_IN(); 2316 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x3100DAFD: mov cl, byte ptr [ebp + 0xb] */ 2317 MEM8(ebp + (-0x24)) = (uint8_t)(LO8(ecx)); /* 0x3100DB00: mov byte ptr [ebp - 0x24], cl */ 2318 PUSH32(esp, 0); /* 0x3100DB03: push 0 */ 2319 ecx = ebp + (-0x24); /* 0x3100DB05: lea ecx, [ebp - 0x24] */ 2320 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x3100DB08: call dword ptr [0x310480d4] */ 2321 RECOMP_FLAGS_IN(); 2322 PUSH32(esp, 0); /* 0x3100DB0E: push 0 */ 2323 edx = ebp + (-0x24); /* 0x3100DB10: lea edx, [ebp - 0x24] */ 2324 PUSH32(esp, edx); /* 0x3100DB13: push edx */ 2325 PUSH32(esp, 0x310522ECu); /* 0x3100DB14: push 0x310522ec */ 2326 ecx = ebp + (-0x74); /* 0x3100DB19: lea ecx, [ebp - 0x74] */ 2327 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x3100DB1C: mov byte ptr [ebp - 4], 3 */ 2328 RECOMP_ICALL(MEM32(0x310482D0)); /* 0x3100DB20: call dword ptr [0x310482d0] */ 2329 RECOMP_FLAGS_IN(); 2330 esi = MEM32(ebp + 0x8); /* 0x3100DB26: mov esi, dword ptr [ebp + 8] */ 2331 SET_LO8(eax, MEM8(ebp + (-0x24))); /* 0x3100DB29: mov al, byte ptr [ebp - 0x24] */ 2332 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2333 edi = 0; /* 0x3100DB2C: xor edi, edi */ 2334 _cf = 0; 2335 _flag_k = FK_TEST; 2336 MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x3100DB2E: mov byte ptr [esi], al */ 2337 MEM32(esi + 0x4) = edi; /* 0x3100DB30: mov dword ptr [esi + 4], edi */ 2338 MEM32(esi + 0x8) = edi; /* 0x3100DB33: mov dword ptr [esi + 8], edi */ 2339 MEM32(esi + 0xC) = edi; /* 0x3100DB36: mov dword ptr [esi + 0xc], edi */ 2340 ecx = MEM32(0x310480F8); /* 0x3100DB39: mov ecx, dword ptr [0x310480f8] */ 2341 edx = MEM32(ecx); /* 0x3100DB3F: mov edx, dword ptr [ecx] */ 2342 PUSH32(esp, edx); /* 0x3100DB41: push edx */ 2343 PUSH32(esp, edi); /* 0x3100DB42: push edi */ 2344 eax = ebp + (-0x24); /* 0x3100DB43: lea eax, [ebp - 0x24] */ 2345 PUSH32(esp, eax); /* 0x3100DB46: push eax */ 2346 ecx = esi; /* 0x3100DB47: mov ecx, esi */ 2347 RECOMP_ICALL(MEM32(0x310480FC)); /* 0x3100DB49: call dword ptr [0x310480fc] */ 2348 RECOMP_FLAGS_IN(); 2349 eax = MEM32(ebp + (-0x20)); /* 0x3100DB4F: mov eax, dword ptr [ebp - 0x20] */ 2350 /* cmp eax, edi */ /* 0x3100DB52: cmp eax, edi */ 2351 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2352 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2353 _flag_k = FK_CMP; 2354 MEM32(ebp + (-0x14)) = 1; /* 0x3100DB54: mov dword ptr [ebp - 0x14], 1 */ 2355 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100DB79; /* 0x3100DB5B: je 0x3100db79 */ 2356 L_3100DB5D: 2357 ecx = eax + (-0x1); /* 0x3100DB5D: lea ecx, [eax - 1] */ 2358 SET_LO8(eax, MEM8(ecx)); /* 0x3100DB60: mov al, byte ptr [ecx] */ 2359 /* test LO8(eax), LO8(eax) */ /* 0x3100DB62: test al, al */ 2360 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2361 _cf = 0; 2362 _flag_k = FK_NARROW(FK_TEST, 24); 2363 if (TEST_Z(_flag_a, _flag_b)) goto L_3100DB70; /* 0x3100DB64: je 0x3100db70 */ 2364 L_3100DB66: 2365 /* cmp LO8(eax), 0xFFu */ /* 0x3100DB66: cmp al, 0xff */ 2366 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 2367 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2368 _flag_k = FK_NARROW(FK_CMP, 24); 2369 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100DB70; /* 0x3100DB68: je 0x3100db70 */ 2370 L_3100DB6A: 2371 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2372 SET_LO8(eax, LO8(eax) - 1); /* 0x3100DB6A: dec al */ 2373 _flag_k = FK_NARROW(FK_DEC, 24); 2374 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3100DB6C: mov byte ptr [ecx], al */ 2375 goto L_3100DB79; /* 0x3100DB6E: jmp 0x3100db79 */ 2376 L_3100DB70: 2377 PUSH32(esp, ecx); /* 0x3100DB70: push ecx */ 2378 RECOMP_ICALL(0x31046858u); /* 0x3100DB71: call 0x31046858 */ /* not lifted */ 2379 RECOMP_FLAGS_IN(); 2380 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2381 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2382 esp = esp + 4; /* 0x3100DB76: add esp, 4 */ 2383 _flag_k = FK_ADD; 2384 L_3100DB79: 2385 MEM32(ebp + (-0x20)) = edi; /* 0x3100DB79: mov dword ptr [ebp - 0x20], edi */ 2386 MEM32(ebp + (-0x1C)) = edi; /* 0x3100DB7C: mov dword ptr [ebp - 0x1c], edi */ 2387 MEM32(ebp + (-0x18)) = edi; /* 0x3100DB7F: mov dword ptr [ebp - 0x18], edi */ 2388 MEM32(ebp + (-0x74)) = 0x3104876Cu; /* 0x3100DB82: mov dword ptr [ebp - 0x74], 0x3104876c */ 2389 ecx = ebp + (-0x74); /* 0x3100DB89: lea ecx, [ebp - 0x74] */ 2390 MEM32(ebp + (-0x4)) = 5; /* 0x3100DB8C: mov dword ptr [ebp - 4], 5 */ 2391 RECOMP_ICALL(MEM32(0x310482F8)); /* 0x3100DB93: call dword ptr [0x310482f8] */ 2392 RECOMP_FLAGS_IN(); 2393 ecx = MEM32(ebp + (-0x3C)); /* 0x3100DB99: mov ecx, dword ptr [ebp - 0x3c] */ 2394 edx = MEM32(ebp + (-0x40)); /* 0x3100DB9C: mov edx, dword ptr [ebp - 0x40] */ 2395 PUSH32(esp, ecx); /* 0x3100DB9F: push ecx */ 2396 PUSH32(esp, edx); /* 0x3100DBA0: push edx */ 2397 ecx = ebp + (-0x44); /* 0x3100DBA1: lea ecx, [ebp - 0x44] */ 2398 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x3100DBA4: mov byte ptr [ebp - 4], 4 */ 2399 RECOMP_ICALL(0x3100E4D0u); /* 0x3100DBA8: call 0x3100e4d0 */ /* not lifted */ 2400 RECOMP_FLAGS_IN(); 2401 eax = MEM32(ebp + (-0x40)); /* 0x3100DBAD: mov eax, dword ptr [ebp - 0x40] */ 2402 PUSH32(esp, eax); /* 0x3100DBB0: push eax */ 2403 RECOMP_ICALL(0x31046858u); /* 0x3100DBB1: call 0x31046858 */ /* not lifted */ 2404 RECOMP_FLAGS_IN(); 2405 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2406 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2407 esp = esp + 4; /* 0x3100DBB6: add esp, 4 */ 2408 _flag_k = FK_ADD; 2409 ecx = ebp + (-0x70); /* 0x3100DBB9: lea ecx, [ebp - 0x70] */ 2410 MEM32(ebp + (-0x40)) = edi; /* 0x3100DBBC: mov dword ptr [ebp - 0x40], edi */ 2411 MEM32(ebp + (-0x3C)) = edi; /* 0x3100DBBF: mov dword ptr [ebp - 0x3c], edi */ 2412 MEM32(ebp + (-0x38)) = edi; /* 0x3100DBC2: mov dword ptr [ebp - 0x38], edi */ 2413 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3100DBC5: mov byte ptr [ebp - 4], 0 */ 2414 RECOMP_ICALL(0x3100E340u); /* 0x3100DBC9: call 0x3100e340 */ /* not lifted */ 2415 RECOMP_FLAGS_IN(); 2416 L_3100DBCE: 2417 ecx = MEM32(ebp + (-0xC)); /* 0x3100DBCE: mov ecx, dword ptr [ebp - 0xc] */ 2418 edi = POP32_VAL(esp); /* 0x3100DBD1: pop edi */ 2419 eax = esi; /* 0x3100DBD2: mov eax, esi */ 2420 esi = POP32_VAL(esp); /* 0x3100DBD4: pop esi */ 2421 ebx = POP32_VAL(esp); /* 0x3100DBD5: pop ebx */ 2422 MEM32(FS_BASE + (0)) = ecx; /* 0x3100DBD6: mov dword ptr fs:[0], ecx */ 2423 esp = ebp; /* 0x3100DBDD: mov esp, ebp */ 2424 ebp = POP32_VAL(esp); /* 0x3100DBDF: pop ebp */ 2425 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3100DBE0: ret 4 */ 2426 RECOMP_REGS_OUT(); 2427 } 2428 2429 void sub_3100DBCE(void) { 2430 int _fpu_cmp = 0; 2431 uint32_t _cf = 0; 2432 int _df = 1; 2433 uint32_t _flag_k = FK_NONE; 2434 uint32_t _flag_a = 0, _flag_b = 0; 2435 uint32_t _itail_tgt = 0; 2436 RECOMP_REGS_LOCALS 2437 RECOMP_ENTER(0x3100DBCEu); 2438 2439 L_3100DBCE: 2440 ecx = MEM32(ebp + (-0xC)); /* 0x3100DBCE: mov ecx, dword ptr [ebp - 0xc] */ 2441 edi = POP32_VAL(esp); /* 0x3100DBD1: pop edi */ 2442 eax = esi; /* 0x3100DBD2: mov eax, esi */ 2443 esi = POP32_VAL(esp); /* 0x3100DBD4: pop esi */ 2444 ebx = POP32_VAL(esp); /* 0x3100DBD5: pop ebx */ 2445 MEM32(FS_BASE + (0)) = ecx; /* 0x3100DBD6: mov dword ptr fs:[0], ecx */ 2446 esp = ebp; /* 0x3100DBDD: mov esp, ebp */ 2447 ebp = POP32_VAL(esp); /* 0x3100DBDF: pop ebp */ 2448 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3100DBE0: ret 4 */ 2449 RECOMP_REGS_OUT(); 2450 } 2451 2452 void sub_3100DBF0(void) { 2453 int _fpu_cmp = 0; 2454 uint32_t _cf = 0; 2455 int _df = 1; 2456 uint32_t _flag_k = FK_NONE; 2457 uint32_t _flag_a = 0, _flag_b = 0; 2458 uint32_t _itail_tgt = 0; 2459 RECOMP_REGS_LOCALS 2460 RECOMP_ENTER(0x3100DBF0u); 2461 2462 L_3100DBF0: 2463 PUSH32(esp, ebp); /* 0x3100DBF0: push ebp */ 2464 ebp = esp; /* 0x3100DBF1: mov ebp, esp */ 2465 PUSH32(esp, 0xFFFFFFFFu); /* 0x3100DBF3: push -1 */ 2466 PUSH32(esp, 0x31047A12u); /* 0x3100DBF5: push 0x31047a12 */ 2467 eax = MEM32(FS_BASE + (0)); /* 0x3100DBFA: mov eax, dword ptr fs:[0] */ 2468 PUSH32(esp, eax); /* 0x3100DC00: push eax */ 2469 MEM32(FS_BASE + (0)) = esp; /* 0x3100DC01: mov dword ptr fs:[0], esp */ 2470 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x68u); 2471 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2472 esp = esp - 0x68u; /* 0x3100DC08: sub esp, 0x68 */ 2473 _flag_k = FK_CMP; 2474 PUSH32(esp, ebx); /* 0x3100DC0B: push ebx */ 2475 PUSH32(esp, esi); /* 0x3100DC0C: push esi */ 2476 PUSH32(esp, edi); /* 0x3100DC0D: push edi */ 2477 esi = ecx; /* 0x3100DC0E: mov esi, ecx */ 2478 PUSH32(esp, 1); /* 0x3100DC10: push 1 */ 2479 MEM32(ebp + (-0x10)) = esi; /* 0x3100DC12: mov dword ptr [ebp - 0x10], esi */ 2480 MEM32(ebp + (-0x14)) = 0; /* 0x3100DC15: mov dword ptr [ebp - 0x14], 0 */ 2481 RECOMP_ICALL(0x31009E30u); /* 0x3100DC1C: call 0x31009e30 */ /* not lifted */ 2482 RECOMP_FLAGS_IN(); 2483 /* test LO8(eax), LO8(eax) */ /* 0x3100DC21: test al, al */ 2484 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2485 _cf = 0; 2486 _flag_k = FK_NARROW(FK_TEST, 24); 2487 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100DC84; /* 0x3100DC23: jne 0x3100dc84 */ 2488 L_3100DC25: 2489 esi = MEM32(ebp + 0x8); /* 0x3100DC25: mov esi, dword ptr [ebp + 8] */ 2490 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3100DC28: mov al, byte ptr [ebp + 0xb] */ 2491 PUSH32(esp, 0); /* 0x3100DC2B: push 0 */ 2492 ecx = esi; /* 0x3100DC2D: mov ecx, esi */ 2493 MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x3100DC2F: mov byte ptr [esi], al */ 2494 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x3100DC31: call dword ptr [0x310480d4] */ 2495 RECOMP_FLAGS_IN(); 2496 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2497 ecx = ecx | 0xFFFFFFFFu; /* 0x3100DC37: or ecx, 0xffffffff */ 2498 _cf = 0; 2499 _flag_k = FK_TEST; 2500 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2501 eax = 0; /* 0x3100DC3A: xor eax, eax */ 2502 _cf = 0; 2503 _flag_k = FK_TEST; 2504 edi = 0x31052450u; /* 0x3100DC3C: mov edi, 0x31052450 */ 2505 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; } /* 0x3100DC41: repne scasb al, byte ptr es:[edi] */ 2506 ecx = ~ecx; /* 0x3100DC43: not ecx */ 2507 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2508 ecx = ecx - 1; /* 0x3100DC45: dec ecx */ 2509 _flag_k = FK_DEC; 2510 ebx = ecx; /* 0x3100DC46: mov ebx, ecx */ 2511 PUSH32(esp, 1); /* 0x3100DC48: push 1 */ 2512 PUSH32(esp, ebx); /* 0x3100DC4A: push ebx */ 2513 ecx = esi; /* 0x3100DC4B: mov ecx, esi */ 2514 RECOMP_ICALL(MEM32(0x31048070)); /* 0x3100DC4D: call dword ptr [0x31048070] */ 2515 RECOMP_FLAGS_IN(); 2516 /* test LO8(eax), LO8(eax) */ /* 0x3100DC53: test al, al */ 2517 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2518 _cf = 0; 2519 _flag_k = FK_NARROW(FK_TEST, 24); 2520 if (TEST_Z(_flag_a, _flag_b)) goto L_3100DC7F; /* 0x3100DC55: je 0x3100dc7f */ 2521 L_3100DC57: 2522 edi = MEM32(esi + 0x4); /* 0x3100DC57: mov edi, dword ptr [esi + 4] */ 2523 eax = MEM32(ebp + 0x8); /* 0x3100DC5A: mov eax, dword ptr [ebp + 8] */ 2524 ecx = ebx; /* 0x3100DC5D: mov ecx, ebx */ 2525 edx = ecx; /* 0x3100DC5F: mov edx, ecx */ 2526 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3100DC61: shr ecx, 2 */ 2527 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2528 ecx = ecx >> 2u; /* 0x3100DC61: shr ecx, 2 */ 2529 esi = 0x31052450u; /* 0x3100DC64: mov esi, 0x31052450 */ 2530 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3100DC69: 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; } 2531 ecx = edx; /* 0x3100DC6B: mov ecx, edx */ 2532 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 2533 ecx = ecx & 3; /* 0x3100DC6D: and ecx, 3 */ 2534 _cf = 0; 2535 _flag_k = FK_TEST; 2536 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3100DC70: 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; } 2537 ecx = MEM32(eax + 0x4); /* 0x3100DC72: mov ecx, dword ptr [eax + 4] */ 2538 MEM32(eax + 0x8) = ebx; /* 0x3100DC75: mov dword ptr [eax + 8], ebx */ 2539 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 2540 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2541 ebx = ebx + ecx; /* 0x3100DC78: add ebx, ecx */ 2542 _flag_k = FK_ADD; 2543 MEM8(ebx) = (uint8_t)(0); /* 0x3100DC7A: mov byte ptr [ebx], 0 */ 2544 esi = eax; /* 0x3100DC7D: mov esi, eax */ 2545 L_3100DC7F: 2546 goto L_3100DE0E; /* 0x3100DC7F: jmp 0x3100de0e */ 2547 L_3100DC84: 2548 PUSH32(esp, 0xFFFFFFFFu); /* 0x3100DC84: push -1 */ 2549 ecx = ebp + (-0x74); /* 0x3100DC86: lea ecx, [ebp - 0x74] */ 2550 RECOMP_ICALL(MEM32(0x310482C8)); /* 0x3100DC89: call dword ptr [0x310482c8] */ 2551 RECOMP_FLAGS_IN(); 2552 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3100DC8F: mov al, byte ptr [ebp + 0xb] */ 2553 PUSH32(esp, 0); /* 0x3100DC92: push 0 */ 2554 ecx = ebp + (-0x34); /* 0x3100DC94: lea ecx, [ebp - 0x34] */ 2555 MEM32(ebp + (-0x4)) = 1; /* 0x3100DC97: mov dword ptr [ebp - 4], 1 */ 2556 MEM8(ebp + (-0x34)) = (uint8_t)(LO8(eax)); /* 0x3100DC9E: mov byte ptr [ebp - 0x34], al */ 2557 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x3100DCA1: call dword ptr [0x310480d4] */ 2558 RECOMP_FLAGS_IN(); 2559 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2560 ecx = ecx | 0xFFFFFFFFu; /* 0x3100DCA7: or ecx, 0xffffffff */ 2561 _cf = 0; 2562 _flag_k = FK_TEST; 2563 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2564 eax = 0; /* 0x3100DCAA: xor eax, eax */ 2565 _cf = 0; 2566 _flag_k = FK_TEST; 2567 edi = 0x3105247Cu; /* 0x3100DCAC: mov edi, 0x3105247c */ 2568 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; } /* 0x3100DCB1: repne scasb al, byte ptr es:[edi] */ 2569 ecx = ~ecx; /* 0x3100DCB3: not ecx */ 2570 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2571 ecx = ecx - 1; /* 0x3100DCB5: dec ecx */ 2572 _flag_k = FK_DEC; 2573 ebx = ecx; /* 0x3100DCB6: mov ebx, ecx */ 2574 PUSH32(esp, 1); /* 0x3100DCB8: push 1 */ 2575 PUSH32(esp, ebx); /* 0x3100DCBA: push ebx */ 2576 ecx = ebp + (-0x34); /* 0x3100DCBB: lea ecx, [ebp - 0x34] */ 2577 RECOMP_ICALL(MEM32(0x31048070)); /* 0x3100DCBE: call dword ptr [0x31048070] */ 2578 RECOMP_FLAGS_IN(); 2579 /* test LO8(eax), LO8(eax) */ /* 0x3100DCC4: test al, al */ 2580 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2581 _cf = 0; 2582 _flag_k = FK_NARROW(FK_TEST, 24); 2583 if (TEST_Z(_flag_a, _flag_b)) goto L_3100DCED; /* 0x3100DCC6: je 0x3100dced */ 2584 L_3100DCC8: 2585 edi = MEM32(ebp + (-0x30)); /* 0x3100DCC8: mov edi, dword ptr [ebp - 0x30] */ 2586 ecx = ebx; /* 0x3100DCCB: mov ecx, ebx */ 2587 edx = ecx; /* 0x3100DCCD: mov edx, ecx */ 2588 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3100DCCF: shr ecx, 2 */ 2589 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2590 ecx = ecx >> 2u; /* 0x3100DCCF: shr ecx, 2 */ 2591 esi = 0x3105247Cu; /* 0x3100DCD2: mov esi, 0x3105247c */ 2592 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3100DCD7: 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; } 2593 ecx = edx; /* 0x3100DCD9: mov ecx, edx */ 2594 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 2595 ecx = ecx & 3; /* 0x3100DCDB: and ecx, 3 */ 2596 _cf = 0; 2597 _flag_k = FK_TEST; 2598 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3100DCDE: 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; } 2599 eax = MEM32(ebp + (-0x30)); /* 0x3100DCE0: mov eax, dword ptr [ebp - 0x30] */ 2600 esi = MEM32(ebp + (-0x10)); /* 0x3100DCE3: mov esi, dword ptr [ebp - 0x10] */ 2601 MEM32(ebp + (-0x2C)) = ebx; /* 0x3100DCE6: mov dword ptr [ebp - 0x2c], ebx */ 2602 MEM8(eax + ebx) = (uint8_t)(0); /* 0x3100DCE9: mov byte ptr [eax + ebx], 0 */ 2603 L_3100DCED: 2604 ecx = ebp + (-0x34); /* 0x3100DCED: lea ecx, [ebp - 0x34] */ 2605 PUSH32(esp, ecx); /* 0x3100DCF0: push ecx */ 2606 PUSH32(esp, 0x3105224Cu); /* 0x3100DCF1: push 0x3105224c */ 2607 ecx = ebp + (-0x74); /* 0x3100DCF6: lea ecx, [ebp - 0x74] */ 2608 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3100DCF9: mov byte ptr [ebp - 4], 2 */ 2609 RECOMP_ICALL(MEM32(0x310482CC)); /* 0x3100DCFD: call dword ptr [0x310482cc] */ 2610 RECOMP_FLAGS_IN(); 2611 PUSH32(esp, 1); /* 0x3100DD03: push 1 */ 2612 ecx = ebp + (-0x34); /* 0x3100DD05: lea ecx, [ebp - 0x34] */ 2613 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3100DD08: mov byte ptr [ebp - 4], 1 */ 2614 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x3100DD0C: call dword ptr [0x310480d4] */ 2615 RECOMP_FLAGS_IN(); 2616 ecx = esi; /* 0x3100DD12: mov ecx, esi */ 2617 RECOMP_ICALL(0x310013E0u); /* 0x3100DD14: call 0x310013e0 */ /* not lifted */ 2618 RECOMP_FLAGS_IN(); 2619 edi = esi + 0x30; /* 0x3100DD19: lea edi, [esi + 0x30] */ 2620 L_3100DD1C: 2621 edx = ebp + (-0x74); /* 0x3100DD1C: lea edx, [ebp - 0x74] */ 2622 PUSH32(esp, edx); /* 0x3100DD1F: push edx */ 2623 ecx = edi; /* 0x3100DD20: mov ecx, edi */ 2624 RECOMP_ICALL(0x31010CA0u); /* 0x3100DD22: call 0x31010ca0 */ /* not lifted */ 2625 RECOMP_FLAGS_IN(); 2626 eax = ebp + (-0x74); /* 0x3100DD27: lea eax, [ebp - 0x74] */ 2627 PUSH32(esp, eax); /* 0x3100DD2A: push eax */ 2628 ecx = edi; /* 0x3100DD2B: mov ecx, edi */ 2629 RECOMP_ICALL(0x31010F40u); /* 0x3100DD2D: call 0x31010f40 */ /* not lifted */ 2630 RECOMP_FLAGS_IN(); 2631 /* test LO8(eax), LO8(eax) */ /* 0x3100DD32: test al, al */ 2632 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2633 _cf = 0; 2634 _flag_k = FK_NARROW(FK_TEST, 24); 2635 RECOMP_BACKEDGE(); 2636 if (TEST_Z(_flag_a, _flag_b)) goto L_3100DD1C; /* 0x3100DD34: je 0x3100dd1c */ 2637 L_3100DD36: 2638 ecx = esi; /* 0x3100DD36: mov ecx, esi */ 2639 RECOMP_ICALL(0x310013E0u); /* 0x3100DD38: call 0x310013e0 */ /* not lifted */ 2640 RECOMP_FLAGS_IN(); 2641 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x3100DD3D: mov cl, byte ptr [ebp + 0xb] */ 2642 MEM8(ebp + (-0x24)) = (uint8_t)(LO8(ecx)); /* 0x3100DD40: mov byte ptr [ebp - 0x24], cl */ 2643 PUSH32(esp, 0); /* 0x3100DD43: push 0 */ 2644 ecx = ebp + (-0x24); /* 0x3100DD45: lea ecx, [ebp - 0x24] */ 2645 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x3100DD48: call dword ptr [0x310480d4] */ 2646 RECOMP_FLAGS_IN(); 2647 PUSH32(esp, 0); /* 0x3100DD4E: push 0 */ 2648 edx = ebp + (-0x24); /* 0x3100DD50: lea edx, [ebp - 0x24] */ 2649 PUSH32(esp, edx); /* 0x3100DD53: push edx */ 2650 PUSH32(esp, 0x310522ECu); /* 0x3100DD54: push 0x310522ec */ 2651 ecx = ebp + (-0x74); /* 0x3100DD59: lea ecx, [ebp - 0x74] */ 2652 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x3100DD5C: mov byte ptr [ebp - 4], 3 */ 2653 RECOMP_ICALL(MEM32(0x310482D0)); /* 0x3100DD60: call dword ptr [0x310482d0] */ 2654 RECOMP_FLAGS_IN(); 2655 esi = MEM32(ebp + 0x8); /* 0x3100DD66: mov esi, dword ptr [ebp + 8] */ 2656 SET_LO8(eax, MEM8(ebp + (-0x24))); /* 0x3100DD69: mov al, byte ptr [ebp - 0x24] */ 2657 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2658 edi = 0; /* 0x3100DD6C: xor edi, edi */ 2659 _cf = 0; 2660 _flag_k = FK_TEST; 2661 MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x3100DD6E: mov byte ptr [esi], al */ 2662 MEM32(esi + 0x4) = edi; /* 0x3100DD70: mov dword ptr [esi + 4], edi */ 2663 MEM32(esi + 0x8) = edi; /* 0x3100DD73: mov dword ptr [esi + 8], edi */ 2664 MEM32(esi + 0xC) = edi; /* 0x3100DD76: mov dword ptr [esi + 0xc], edi */ 2665 ecx = MEM32(0x310480F8); /* 0x3100DD79: mov ecx, dword ptr [0x310480f8] */ 2666 edx = MEM32(ecx); /* 0x3100DD7F: mov edx, dword ptr [ecx] */ 2667 PUSH32(esp, edx); /* 0x3100DD81: push edx */ 2668 PUSH32(esp, edi); /* 0x3100DD82: push edi */ 2669 eax = ebp + (-0x24); /* 0x3100DD83: lea eax, [ebp - 0x24] */ 2670 PUSH32(esp, eax); /* 0x3100DD86: push eax */ 2671 ecx = esi; /* 0x3100DD87: mov ecx, esi */ 2672 RECOMP_ICALL(MEM32(0x310480FC)); /* 0x3100DD89: call dword ptr [0x310480fc] */ 2673 RECOMP_FLAGS_IN(); 2674 eax = MEM32(ebp + (-0x20)); /* 0x3100DD8F: mov eax, dword ptr [ebp - 0x20] */ 2675 /* cmp eax, edi */ /* 0x3100DD92: cmp eax, edi */ 2676 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2677 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2678 _flag_k = FK_CMP; 2679 MEM32(ebp + (-0x14)) = 1; /* 0x3100DD94: mov dword ptr [ebp - 0x14], 1 */ 2680 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100DDB9; /* 0x3100DD9B: je 0x3100ddb9 */ 2681 L_3100DD9D: 2682 ecx = eax + (-0x1); /* 0x3100DD9D: lea ecx, [eax - 1] */ 2683 SET_LO8(eax, MEM8(ecx)); /* 0x3100DDA0: mov al, byte ptr [ecx] */ 2684 /* test LO8(eax), LO8(eax) */ /* 0x3100DDA2: test al, al */ 2685 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2686 _cf = 0; 2687 _flag_k = FK_NARROW(FK_TEST, 24); 2688 if (TEST_Z(_flag_a, _flag_b)) goto L_3100DDB0; /* 0x3100DDA4: je 0x3100ddb0 */ 2689 L_3100DDA6: 2690 /* cmp LO8(eax), 0xFFu */ /* 0x3100DDA6: cmp al, 0xff */ 2691 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 2692 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2693 _flag_k = FK_NARROW(FK_CMP, 24); 2694 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100DDB0; /* 0x3100DDA8: je 0x3100ddb0 */ 2695 L_3100DDAA: 2696 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2697 SET_LO8(eax, LO8(eax) - 1); /* 0x3100DDAA: dec al */ 2698 _flag_k = FK_NARROW(FK_DEC, 24); 2699 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3100DDAC: mov byte ptr [ecx], al */ 2700 goto L_3100DDB9; /* 0x3100DDAE: jmp 0x3100ddb9 */ 2701 L_3100DDB0: 2702 PUSH32(esp, ecx); /* 0x3100DDB0: push ecx */ 2703 RECOMP_ICALL(0x31046858u); /* 0x3100DDB1: call 0x31046858 */ /* not lifted */ 2704 RECOMP_FLAGS_IN(); 2705 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2706 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2707 esp = esp + 4; /* 0x3100DDB6: add esp, 4 */ 2708 _flag_k = FK_ADD; 2709 L_3100DDB9: 2710 MEM32(ebp + (-0x20)) = edi; /* 0x3100DDB9: mov dword ptr [ebp - 0x20], edi */ 2711 MEM32(ebp + (-0x1C)) = edi; /* 0x3100DDBC: mov dword ptr [ebp - 0x1c], edi */ 2712 MEM32(ebp + (-0x18)) = edi; /* 0x3100DDBF: mov dword ptr [ebp - 0x18], edi */ 2713 MEM32(ebp + (-0x74)) = 0x3104876Cu; /* 0x3100DDC2: mov dword ptr [ebp - 0x74], 0x3104876c */ 2714 ecx = ebp + (-0x74); /* 0x3100DDC9: lea ecx, [ebp - 0x74] */ 2715 MEM32(ebp + (-0x4)) = 5; /* 0x3100DDCC: mov dword ptr [ebp - 4], 5 */ 2716 RECOMP_ICALL(MEM32(0x310482F8)); /* 0x3100DDD3: call dword ptr [0x310482f8] */ 2717 RECOMP_FLAGS_IN(); 2718 ecx = MEM32(ebp + (-0x3C)); /* 0x3100DDD9: mov ecx, dword ptr [ebp - 0x3c] */ 2719 edx = MEM32(ebp + (-0x40)); /* 0x3100DDDC: mov edx, dword ptr [ebp - 0x40] */ 2720 PUSH32(esp, ecx); /* 0x3100DDDF: push ecx */ 2721 PUSH32(esp, edx); /* 0x3100DDE0: push edx */ 2722 ecx = ebp + (-0x44); /* 0x3100DDE1: lea ecx, [ebp - 0x44] */ 2723 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x3100DDE4: mov byte ptr [ebp - 4], 4 */ 2724 RECOMP_ICALL(0x3100E4D0u); /* 0x3100DDE8: call 0x3100e4d0 */ /* not lifted */ 2725 RECOMP_FLAGS_IN(); 2726 eax = MEM32(ebp + (-0x40)); /* 0x3100DDED: mov eax, dword ptr [ebp - 0x40] */ 2727 PUSH32(esp, eax); /* 0x3100DDF0: push eax */ 2728 RECOMP_ICALL(0x31046858u); /* 0x3100DDF1: call 0x31046858 */ /* not lifted */ 2729 RECOMP_FLAGS_IN(); 2730 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2731 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2732 esp = esp + 4; /* 0x3100DDF6: add esp, 4 */ 2733 _flag_k = FK_ADD; 2734 ecx = ebp + (-0x70); /* 0x3100DDF9: lea ecx, [ebp - 0x70] */ 2735 MEM32(ebp + (-0x40)) = edi; /* 0x3100DDFC: mov dword ptr [ebp - 0x40], edi */ 2736 MEM32(ebp + (-0x3C)) = edi; /* 0x3100DDFF: mov dword ptr [ebp - 0x3c], edi */ 2737 MEM32(ebp + (-0x38)) = edi; /* 0x3100DE02: mov dword ptr [ebp - 0x38], edi */ 2738 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3100DE05: mov byte ptr [ebp - 4], 0 */ 2739 RECOMP_ICALL(0x3100E340u); /* 0x3100DE09: call 0x3100e340 */ /* not lifted */ 2740 RECOMP_FLAGS_IN(); 2741 L_3100DE0E: 2742 ecx = MEM32(ebp + (-0xC)); /* 0x3100DE0E: mov ecx, dword ptr [ebp - 0xc] */ 2743 edi = POP32_VAL(esp); /* 0x3100DE11: pop edi */ 2744 eax = esi; /* 0x3100DE12: mov eax, esi */ 2745 esi = POP32_VAL(esp); /* 0x3100DE14: pop esi */ 2746 ebx = POP32_VAL(esp); /* 0x3100DE15: pop ebx */ 2747 MEM32(FS_BASE + (0)) = ecx; /* 0x3100DE16: mov dword ptr fs:[0], ecx */ 2748 esp = ebp; /* 0x3100DE1D: mov esp, ebp */ 2749 ebp = POP32_VAL(esp); /* 0x3100DE1F: pop ebp */ 2750 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3100DE20: ret 4 */ 2751 RECOMP_REGS_OUT(); 2752 } 2753 2754 void sub_3100DE0E(void) { 2755 int _fpu_cmp = 0; 2756 uint32_t _cf = 0; 2757 int _df = 1; 2758 uint32_t _flag_k = FK_NONE; 2759 uint32_t _flag_a = 0, _flag_b = 0; 2760 uint32_t _itail_tgt = 0; 2761 RECOMP_REGS_LOCALS 2762 RECOMP_ENTER(0x3100DE0Eu); 2763 2764 L_3100DE0E: 2765 ecx = MEM32(ebp + (-0xC)); /* 0x3100DE0E: mov ecx, dword ptr [ebp - 0xc] */ 2766 edi = POP32_VAL(esp); /* 0x3100DE11: pop edi */ 2767 eax = esi; /* 0x3100DE12: mov eax, esi */ 2768 esi = POP32_VAL(esp); /* 0x3100DE14: pop esi */ 2769 ebx = POP32_VAL(esp); /* 0x3100DE15: pop ebx */ 2770 MEM32(FS_BASE + (0)) = ecx; /* 0x3100DE16: mov dword ptr fs:[0], ecx */ 2771 esp = ebp; /* 0x3100DE1D: mov esp, ebp */ 2772 ebp = POP32_VAL(esp); /* 0x3100DE1F: pop ebp */ 2773 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3100DE20: ret 4 */ 2774 RECOMP_REGS_OUT(); 2775 } 2776 2777 void sub_3100DE30(void) { 2778 int _fpu_cmp = 0; 2779 uint32_t _cf = 0; 2780 int _df = 1; 2781 uint32_t _flag_k = FK_NONE; 2782 uint32_t _flag_a = 0, _flag_b = 0; 2783 uint32_t _itail_tgt = 0; 2784 RECOMP_REGS_LOCALS 2785 RECOMP_ENTER(0x3100DE30u); 2786 2787 L_3100DE30: 2788 PUSH32(esp, ebp); /* 0x3100DE30: push ebp */ 2789 ebp = esp; /* 0x3100DE31: mov ebp, esp */ 2790 PUSH32(esp, 0xFFFFFFFFu); /* 0x3100DE33: push -1 */ 2791 PUSH32(esp, 0x31047A58u); /* 0x3100DE35: push 0x31047a58 */ 2792 eax = MEM32(FS_BASE + (0)); /* 0x3100DE3A: mov eax, dword ptr fs:[0] */ 2793 PUSH32(esp, eax); /* 0x3100DE40: push eax */ 2794 MEM32(FS_BASE + (0)) = esp; /* 0x3100DE41: mov dword ptr fs:[0], esp */ 2795 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x64u); 2796 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2797 esp = esp - 0x64u; /* 0x3100DE48: sub esp, 0x64 */ 2798 _flag_k = FK_CMP; 2799 PUSH32(esp, ebx); /* 0x3100DE4B: push ebx */ 2800 PUSH32(esp, esi); /* 0x3100DE4C: push esi */ 2801 PUSH32(esp, edi); /* 0x3100DE4D: push edi */ 2802 esi = ecx; /* 0x3100DE4E: mov esi, ecx */ 2803 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2804 ebx = 0; /* 0x3100DE50: xor ebx, ebx */ 2805 _cf = 0; 2806 _flag_k = FK_TEST; 2807 PUSH32(esp, 0xFFFFFFFFu); /* 0x3100DE52: push -1 */ 2808 ecx = ebp + (-0x70); /* 0x3100DE54: lea ecx, [ebp - 0x70] */ 2809 MEM32(ebp + (-0x14)) = esi; /* 0x3100DE57: mov dword ptr [ebp - 0x14], esi */ 2810 MEM32(ebp + (-0x20)) = ebx; /* 0x3100DE5A: mov dword ptr [ebp - 0x20], ebx */ 2811 RECOMP_ICALL(MEM32(0x310482C8)); /* 0x3100DE5D: call dword ptr [0x310482c8] */ 2812 RECOMP_FLAGS_IN(); 2813 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3100DE63: mov al, byte ptr [ebp + 0xb] */ 2814 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2815 ecx = ecx | 0xFFFFFFFFu; /* 0x3100DE66: or ecx, 0xffffffff */ 2816 _cf = 0; 2817 _flag_k = FK_TEST; 2818 MEM8(ebp + (-0x30)) = (uint8_t)(LO8(eax)); /* 0x3100DE69: mov byte ptr [ebp - 0x30], al */ 2819 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2820 eax = 0; /* 0x3100DE6C: xor eax, eax */ 2821 _cf = 0; 2822 _flag_k = FK_TEST; 2823 edi = 0x31052484u; /* 0x3100DE6E: mov edi, 0x31052484 */ 2824 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; } /* 0x3100DE73: repne scasb al, byte ptr es:[edi] */ 2825 ecx = ~ecx; /* 0x3100DE75: not ecx */ 2826 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2827 ecx = ecx - 1; /* 0x3100DE77: dec ecx */ 2828 _flag_k = FK_DEC; 2829 edi = ecx; /* 0x3100DE78: mov edi, ecx */ 2830 PUSH32(esp, 1); /* 0x3100DE7A: push 1 */ 2831 PUSH32(esp, edi); /* 0x3100DE7C: push edi */ 2832 ecx = ebp + (-0x30); /* 0x3100DE7D: lea ecx, [ebp - 0x30] */ 2833 MEM32(ebp + (-0x4)) = 1; /* 0x3100DE80: mov dword ptr [ebp - 4], 1 */ 2834 MEM32(ebp + (-0x2C)) = ebx; /* 0x3100DE87: mov dword ptr [ebp - 0x2c], ebx */ 2835 MEM32(ebp + (-0x28)) = ebx; /* 0x3100DE8A: mov dword ptr [ebp - 0x28], ebx */ 2836 MEM32(ebp + (-0x24)) = ebx; /* 0x3100DE8D: mov dword ptr [ebp - 0x24], ebx */ 2837 MEM32(ebp + (-0x10)) = edi; /* 0x3100DE90: mov dword ptr [ebp - 0x10], edi */ 2838 RECOMP_ICALL(MEM32(0x31048070)); /* 0x3100DE93: call dword ptr [0x31048070] */ 2839 RECOMP_FLAGS_IN(); 2840 /* test LO8(eax), LO8(eax) */ /* 0x3100DE99: test al, al */ 2841 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2842 _cf = 0; 2843 _flag_k = FK_NARROW(FK_TEST, 24); 2844 if (TEST_Z(_flag_a, _flag_b)) goto L_3100DEC3; /* 0x3100DE9B: je 0x3100dec3 */ 2845 L_3100DE9D: 2846 ecx = edi; /* 0x3100DE9D: mov ecx, edi */ 2847 edi = MEM32(ebp + (-0x2C)); /* 0x3100DE9F: mov edi, dword ptr [ebp - 0x2c] */ 2848 edx = ecx; /* 0x3100DEA2: mov edx, ecx */ 2849 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3100DEA4: shr ecx, 2 */ 2850 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2851 ecx = ecx >> 2u; /* 0x3100DEA4: shr ecx, 2 */ 2852 esi = 0x31052484u; /* 0x3100DEA7: mov esi, 0x31052484 */ 2853 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3100DEAC: 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; } 2854 ecx = edx; /* 0x3100DEAE: mov ecx, edx */ 2855 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 2856 ecx = ecx & 3; /* 0x3100DEB0: and ecx, 3 */ 2857 _cf = 0; 2858 _flag_k = FK_TEST; 2859 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3100DEB3: 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; } 2860 ecx = MEM32(ebp + (-0x2C)); /* 0x3100DEB5: mov ecx, dword ptr [ebp - 0x2c] */ 2861 esi = MEM32(ebp + (-0x14)); /* 0x3100DEB8: mov esi, dword ptr [ebp - 0x14] */ 2862 eax = edx; /* 0x3100DEBB: mov eax, edx */ 2863 MEM32(ebp + (-0x28)) = eax; /* 0x3100DEBD: mov dword ptr [ebp - 0x28], eax */ 2864 MEM8(ecx + eax) = (uint8_t)(LO8(ebx)); /* 0x3100DEC0: mov byte ptr [ecx + eax], bl */ 2865 L_3100DEC3: 2866 edx = ebp + (-0x30); /* 0x3100DEC3: lea edx, [ebp - 0x30] */ 2867 PUSH32(esp, edx); /* 0x3100DEC6: push edx */ 2868 PUSH32(esp, 0x3105224Cu); /* 0x3100DEC7: push 0x3105224c */ 2869 ecx = ebp + (-0x70); /* 0x3100DECC: lea ecx, [ebp - 0x70] */ 2870 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3100DECF: mov byte ptr [ebp - 4], 2 */ 2871 RECOMP_ICALL(MEM32(0x310482CC)); /* 0x3100DED3: call dword ptr [0x310482cc] */ 2872 RECOMP_FLAGS_IN(); 2873 eax = MEM32(ebp + (-0x2C)); /* 0x3100DED9: mov eax, dword ptr [ebp - 0x2c] */ 2874 /* cmp eax, ebx */ /* 0x3100DEDC: cmp eax, ebx */ 2875 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2876 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2877 _flag_k = FK_CMP; 2878 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3100DEDE: mov byte ptr [ebp - 4], 1 */ 2879 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100DF00; /* 0x3100DEE2: je 0x3100df00 */ 2880 L_3100DEE4: 2881 ecx = eax + (-0x1); /* 0x3100DEE4: lea ecx, [eax - 1] */ 2882 SET_LO8(eax, MEM8(ecx)); /* 0x3100DEE7: mov al, byte ptr [ecx] */ 2883 /* cmp LO8(eax), LO8(ebx) */ /* 0x3100DEE9: cmp al, bl */ 2884 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2885 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2886 _flag_k = FK_NARROW(FK_CMP, 24); 2887 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100DEF7; /* 0x3100DEEB: je 0x3100def7 */ 2888 L_3100DEED: 2889 /* cmp LO8(eax), 0xFFu */ /* 0x3100DEED: cmp al, 0xff */ 2890 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 2891 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2892 _flag_k = FK_NARROW(FK_CMP, 24); 2893 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100DEF7; /* 0x3100DEEF: je 0x3100def7 */ 2894 L_3100DEF1: 2895 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2896 SET_LO8(eax, LO8(eax) - 1); /* 0x3100DEF1: dec al */ 2897 _flag_k = FK_NARROW(FK_DEC, 24); 2898 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3100DEF3: mov byte ptr [ecx], al */ 2899 goto L_3100DF00; /* 0x3100DEF5: jmp 0x3100df00 */ 2900 L_3100DEF7: 2901 PUSH32(esp, ecx); /* 0x3100DEF7: push ecx */ 2902 RECOMP_ICALL(0x31046858u); /* 0x3100DEF8: call 0x31046858 */ /* not lifted */ 2903 RECOMP_FLAGS_IN(); 2904 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2905 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2906 esp = esp + 4; /* 0x3100DEFD: add esp, 4 */ 2907 _flag_k = FK_ADD; 2908 L_3100DF00: 2909 ecx = esi; /* 0x3100DF00: mov ecx, esi */ 2910 RECOMP_ICALL(0x310013E0u); /* 0x3100DF02: call 0x310013e0 */ /* not lifted */ 2911 RECOMP_FLAGS_IN(); 2912 edi = esi + 0x30; /* 0x3100DF07: lea edi, [esi + 0x30] */ 2913 L_3100DF0A: 2914 eax = ebp + (-0x70); /* 0x3100DF0A: lea eax, [ebp - 0x70] */ 2915 PUSH32(esp, eax); /* 0x3100DF0D: push eax */ 2916 ecx = edi; /* 0x3100DF0E: mov ecx, edi */ 2917 RECOMP_ICALL(0x31010CA0u); /* 0x3100DF10: call 0x31010ca0 */ /* not lifted */ 2918 RECOMP_FLAGS_IN(); 2919 ecx = ebp + (-0x70); /* 0x3100DF15: lea ecx, [ebp - 0x70] */ 2920 PUSH32(esp, ecx); /* 0x3100DF18: push ecx */ 2921 ecx = edi; /* 0x3100DF19: mov ecx, edi */ 2922 RECOMP_ICALL(0x31010F40u); /* 0x3100DF1B: call 0x31010f40 */ /* not lifted */ 2923 RECOMP_FLAGS_IN(); 2924 /* test LO8(eax), LO8(eax) */ /* 0x3100DF20: test al, al */ 2925 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2926 _cf = 0; 2927 _flag_k = FK_NARROW(FK_TEST, 24); 2928 RECOMP_BACKEDGE(); 2929 if (TEST_Z(_flag_a, _flag_b)) goto L_3100DF0A; /* 0x3100DF22: je 0x3100df0a */ 2930 L_3100DF24: 2931 ecx = esi; /* 0x3100DF24: mov ecx, esi */ 2932 RECOMP_ICALL(0x310013E0u); /* 0x3100DF26: call 0x310013e0 */ /* not lifted */ 2933 RECOMP_FLAGS_IN(); 2934 PUSH32(esp, ebx); /* 0x3100DF2B: push ebx */ 2935 edx = ebp + (-0x18); /* 0x3100DF2C: lea edx, [ebp - 0x18] */ 2936 PUSH32(esp, edx); /* 0x3100DF2F: push edx */ 2937 eax = ebp + (-0x1C); /* 0x3100DF30: lea eax, [ebp - 0x1c] */ 2938 PUSH32(esp, eax); /* 0x3100DF33: push eax */ 2939 PUSH32(esp, 0x310522ECu); /* 0x3100DF34: push 0x310522ec */ 2940 ecx = ebp + (-0x70); /* 0x3100DF39: lea ecx, [ebp - 0x70] */ 2941 RECOMP_ICALL(MEM32(0x310482C4)); /* 0x3100DF3C: call dword ptr [0x310482c4] */ 2942 RECOMP_FLAGS_IN(); 2943 ecx = MEM32(ebp + (-0x18)); /* 0x3100DF42: mov ecx, dword ptr [ebp - 0x18] */ 2944 edx = MEM32(ebp + (-0x1C)); /* 0x3100DF45: mov edx, dword ptr [ebp - 0x1c] */ 2945 esi = MEM32(ebp + 0x8); /* 0x3100DF48: mov esi, dword ptr [ebp + 8] */ 2946 PUSH32(esp, ecx); /* 0x3100DF4B: push ecx */ 2947 PUSH32(esp, edx); /* 0x3100DF4C: push edx */ 2948 ecx = esi; /* 0x3100DF4D: mov ecx, esi */ 2949 RECOMP_ICALL(0x31004670u); /* 0x3100DF4F: call 0x31004670 */ /* not lifted */ 2950 RECOMP_FLAGS_IN(); 2951 MEM32(ebp + (-0x20)) = 1; /* 0x3100DF54: mov dword ptr [ebp - 0x20], 1 */ 2952 MEM32(ebp + (-0x70)) = 0x3104876Cu; /* 0x3100DF5B: mov dword ptr [ebp - 0x70], 0x3104876c */ 2953 ecx = ebp + (-0x70); /* 0x3100DF62: lea ecx, [ebp - 0x70] */ 2954 MEM32(ebp + (-0x4)) = 4; /* 0x3100DF65: mov dword ptr [ebp - 4], 4 */ 2955 RECOMP_ICALL(MEM32(0x310482F8)); /* 0x3100DF6C: call dword ptr [0x310482f8] */ 2956 RECOMP_FLAGS_IN(); 2957 eax = MEM32(ebp + (-0x3C)); /* 0x3100DF72: mov eax, dword ptr [ebp - 0x3c] */ 2958 PUSH32(esp, eax); /* 0x3100DF75: push eax */ 2959 RECOMP_ICALL(0x31046858u); /* 0x3100DF76: call 0x31046858 */ /* not lifted */ 2960 RECOMP_FLAGS_IN(); 2961 eax = MEM32(ebp + (-0x68)); /* 0x3100DF7B: mov eax, dword ptr [ebp - 0x68] */ 2962 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2963 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2964 esp = esp + 4; /* 0x3100DF7E: add esp, 4 */ 2965 _flag_k = FK_ADD; 2966 MEM32(ebp + (-0x3C)) = ebx; /* 0x3100DF81: mov dword ptr [ebp - 0x3c], ebx */ 2967 MEM32(ebp + (-0x38)) = ebx; /* 0x3100DF84: mov dword ptr [ebp - 0x38], ebx */ 2968 MEM32(ebp + (-0x34)) = ebx; /* 0x3100DF87: mov dword ptr [ebp - 0x34], ebx */ 2969 ecx = MEM32(eax); /* 0x3100DF8A: mov ecx, dword ptr [eax] */ 2970 PUSH32(esp, eax); /* 0x3100DF8C: push eax */ 2971 PUSH32(esp, ecx); /* 0x3100DF8D: push ecx */ 2972 ecx = ebp + (-0x14); /* 0x3100DF8E: lea ecx, [ebp - 0x14] */ 2973 PUSH32(esp, ecx); /* 0x3100DF91: push ecx */ 2974 ecx = ebp + (-0x6C); /* 0x3100DF92: lea ecx, [ebp - 0x6c] */ 2975 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3100DF95: mov byte ptr [ebp - 4], bl */ 2976 RECOMP_ICALL(0x3100E420u); /* 0x3100DF98: call 0x3100e420 */ /* not lifted */ 2977 RECOMP_FLAGS_IN(); 2978 edx = MEM32(ebp + (-0x68)); /* 0x3100DF9D: mov edx, dword ptr [ebp - 0x68] */ 2979 PUSH32(esp, edx); /* 0x3100DFA0: push edx */ 2980 RECOMP_ICALL(0x31046858u); /* 0x3100DFA1: call 0x31046858 */ /* not lifted */ 2981 RECOMP_FLAGS_IN(); 2982 eax = MEM32(ebp + (-0x64)); /* 0x3100DFA6: mov eax, dword ptr [ebp - 0x64] */ 2983 PUSH32(esp, eax); /* 0x3100DFA9: push eax */ 2984 MEM32(ebp + (-0x68)) = ebx; /* 0x3100DFAA: mov dword ptr [ebp - 0x68], ebx */ 2985 MEM32(ebp + (-0x5C)) = ebx; /* 0x3100DFAD: mov dword ptr [ebp - 0x5c], ebx */ 2986 RECOMP_ICALL(0x31046858u); /* 0x3100DFB0: call 0x31046858 */ /* not lifted */ 2987 RECOMP_FLAGS_IN(); 2988 ecx = MEM32(ebp + (-0xC)); /* 0x3100DFB5: mov ecx, dword ptr [ebp - 0xc] */ 2989 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2990 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2991 esp = esp + 8; /* 0x3100DFB8: add esp, 8 */ 2992 _flag_k = FK_ADD; 2993 edi = POP32_VAL(esp); /* 0x3100DFBB: pop edi */ 2994 eax = esi; /* 0x3100DFBC: mov eax, esi */ 2995 esi = POP32_VAL(esp); /* 0x3100DFBE: pop esi */ 2996 ebx = POP32_VAL(esp); /* 0x3100DFBF: pop ebx */ 2997 MEM32(FS_BASE + (0)) = ecx; /* 0x3100DFC0: mov dword ptr fs:[0], ecx */ 2998 esp = ebp; /* 0x3100DFC7: mov esp, ebp */ 2999 ebp = POP32_VAL(esp); /* 0x3100DFC9: pop ebp */ 3000 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3100DFCA: ret 4 */ 3001 RECOMP_REGS_OUT(); 3002 } 3003 3004 void sub_3100DFD0(void) { 3005 int _fpu_cmp = 0; 3006 uint32_t _cf = 0; 3007 int _df = 1; 3008 uint32_t _flag_k = FK_NONE; 3009 uint32_t _flag_a = 0, _flag_b = 0; 3010 uint32_t _itail_tgt = 0; 3011 RECOMP_REGS_LOCALS 3012 RECOMP_ENTER(0x3100DFD0u); 3013 3014 L_3100DFD0: 3015 PUSH32(esp, ebp); /* 0x3100DFD0: push ebp */ 3016 ebp = esp; /* 0x3100DFD1: mov ebp, esp */ 3017 PUSH32(esp, 0xFFFFFFFFu); /* 0x3100DFD3: push -1 */ 3018 PUSH32(esp, 0x31047A91u); /* 0x3100DFD5: push 0x31047a91 */ 3019 eax = MEM32(FS_BASE + (0)); /* 0x3100DFDA: mov eax, dword ptr fs:[0] */ 3020 PUSH32(esp, eax); /* 0x3100DFE0: push eax */ 3021 MEM32(FS_BASE + (0)) = esp; /* 0x3100DFE1: mov dword ptr fs:[0], esp */ 3022 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x60u); 3023 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3024 esp = esp - 0x60u; /* 0x3100DFE8: sub esp, 0x60 */ 3025 _flag_k = FK_CMP; 3026 PUSH32(esp, ebx); /* 0x3100DFEB: push ebx */ 3027 PUSH32(esp, esi); /* 0x3100DFEC: push esi */ 3028 PUSH32(esp, edi); /* 0x3100DFED: push edi */ 3029 esi = ecx; /* 0x3100DFEE: mov esi, ecx */ 3030 PUSH32(esp, 0xFFFFFFFFu); /* 0x3100DFF0: push -1 */ 3031 ecx = ebp + (-0x6C); /* 0x3100DFF2: lea ecx, [ebp - 0x6c] */ 3032 MEM32(ebp + (-0x1C)) = esi; /* 0x3100DFF5: mov dword ptr [ebp - 0x1c], esi */ 3033 RECOMP_ICALL(MEM32(0x310482C8)); /* 0x3100DFF8: call dword ptr [0x310482c8] */ 3034 RECOMP_FLAGS_IN(); 3035 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x3100DFFE: mov al, byte ptr [ebp - 0xd] */ 3036 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3037 ebx = 0; /* 0x3100E001: xor ebx, ebx */ 3038 _cf = 0; 3039 _flag_k = FK_TEST; 3040 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3041 ecx = ecx | 0xFFFFFFFFu; /* 0x3100E003: or ecx, 0xffffffff */ 3042 _cf = 0; 3043 _flag_k = FK_TEST; 3044 MEM8(ebp + (-0x2C)) = (uint8_t)(LO8(eax)); /* 0x3100E006: mov byte ptr [ebp - 0x2c], al */ 3045 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3046 eax = 0; /* 0x3100E009: xor eax, eax */ 3047 _cf = 0; 3048 _flag_k = FK_TEST; 3049 edi = 0x3105248Cu; /* 0x3100E00B: mov edi, 0x3105248c */ 3050 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; } /* 0x3100E010: repne scasb al, byte ptr es:[edi] */ 3051 ecx = ~ecx; /* 0x3100E012: not ecx */ 3052 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3053 ecx = ecx - 1; /* 0x3100E014: dec ecx */ 3054 _flag_k = FK_DEC; 3055 edi = ecx; /* 0x3100E015: mov edi, ecx */ 3056 PUSH32(esp, 1); /* 0x3100E017: push 1 */ 3057 PUSH32(esp, edi); /* 0x3100E019: push edi */ 3058 ecx = ebp + (-0x2C); /* 0x3100E01A: lea ecx, [ebp - 0x2c] */ 3059 MEM32(ebp + (-0x4)) = ebx; /* 0x3100E01D: mov dword ptr [ebp - 4], ebx */ 3060 MEM32(ebp + (-0x28)) = ebx; /* 0x3100E020: mov dword ptr [ebp - 0x28], ebx */ 3061 MEM32(ebp + (-0x24)) = ebx; /* 0x3100E023: mov dword ptr [ebp - 0x24], ebx */ 3062 MEM32(ebp + (-0x20)) = ebx; /* 0x3100E026: mov dword ptr [ebp - 0x20], ebx */ 3063 MEM32(ebp + (-0x18)) = edi; /* 0x3100E029: mov dword ptr [ebp - 0x18], edi */ 3064 RECOMP_ICALL(MEM32(0x31048070)); /* 0x3100E02C: call dword ptr [0x31048070] */ 3065 RECOMP_FLAGS_IN(); 3066 /* test LO8(eax), LO8(eax) */ /* 0x3100E032: test al, al */ 3067 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3068 _cf = 0; 3069 _flag_k = FK_NARROW(FK_TEST, 24); 3070 if (TEST_Z(_flag_a, _flag_b)) goto L_3100E05C; /* 0x3100E034: je 0x3100e05c */ 3071 L_3100E036: 3072 ecx = edi; /* 0x3100E036: mov ecx, edi */ 3073 edi = MEM32(ebp + (-0x28)); /* 0x3100E038: mov edi, dword ptr [ebp - 0x28] */ 3074 edx = ecx; /* 0x3100E03B: mov edx, ecx */ 3075 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3100E03D: shr ecx, 2 */ 3076 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3077 ecx = ecx >> 2u; /* 0x3100E03D: shr ecx, 2 */ 3078 esi = 0x3105248Cu; /* 0x3100E040: mov esi, 0x3105248c */ 3079 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3100E045: 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; } 3080 ecx = edx; /* 0x3100E047: mov ecx, edx */ 3081 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 3082 ecx = ecx & 3; /* 0x3100E049: and ecx, 3 */ 3083 _cf = 0; 3084 _flag_k = FK_TEST; 3085 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3100E04C: 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; } 3086 ecx = MEM32(ebp + (-0x28)); /* 0x3100E04E: mov ecx, dword ptr [ebp - 0x28] */ 3087 esi = MEM32(ebp + (-0x1C)); /* 0x3100E051: mov esi, dword ptr [ebp - 0x1c] */ 3088 eax = edx; /* 0x3100E054: mov eax, edx */ 3089 MEM32(ebp + (-0x24)) = eax; /* 0x3100E056: mov dword ptr [ebp - 0x24], eax */ 3090 MEM8(ecx + eax) = (uint8_t)(LO8(ebx)); /* 0x3100E059: mov byte ptr [ecx + eax], bl */ 3091 L_3100E05C: 3092 edx = ebp + (-0x2C); /* 0x3100E05C: lea edx, [ebp - 0x2c] */ 3093 PUSH32(esp, edx); /* 0x3100E05F: push edx */ 3094 PUSH32(esp, 0x3105224Cu); /* 0x3100E060: push 0x3105224c */ 3095 ecx = ebp + (-0x6C); /* 0x3100E065: lea ecx, [ebp - 0x6c] */ 3096 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3100E068: mov byte ptr [ebp - 4], 1 */ 3097 RECOMP_ICALL(MEM32(0x310482CC)); /* 0x3100E06C: call dword ptr [0x310482cc] */ 3098 RECOMP_FLAGS_IN(); 3099 eax = MEM32(ebp + (-0x28)); /* 0x3100E072: mov eax, dword ptr [ebp - 0x28] */ 3100 /* cmp eax, ebx */ /* 0x3100E075: cmp eax, ebx */ 3101 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3102 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3103 _flag_k = FK_CMP; 3104 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3100E077: mov byte ptr [ebp - 4], bl */ 3105 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E098; /* 0x3100E07A: je 0x3100e098 */ 3106 L_3100E07C: 3107 ecx = eax + (-0x1); /* 0x3100E07C: lea ecx, [eax - 1] */ 3108 SET_LO8(eax, MEM8(ecx)); /* 0x3100E07F: mov al, byte ptr [ecx] */ 3109 /* cmp LO8(eax), LO8(ebx) */ /* 0x3100E081: cmp al, bl */ 3110 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3111 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3112 _flag_k = FK_NARROW(FK_CMP, 24); 3113 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E08F; /* 0x3100E083: je 0x3100e08f */ 3114 L_3100E085: 3115 /* cmp LO8(eax), 0xFFu */ /* 0x3100E085: cmp al, 0xff */ 3116 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 3117 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3118 _flag_k = FK_NARROW(FK_CMP, 24); 3119 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E08F; /* 0x3100E087: je 0x3100e08f */ 3120 L_3100E089: 3121 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3122 SET_LO8(eax, LO8(eax) - 1); /* 0x3100E089: dec al */ 3123 _flag_k = FK_NARROW(FK_DEC, 24); 3124 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3100E08B: mov byte ptr [ecx], al */ 3125 goto L_3100E098; /* 0x3100E08D: jmp 0x3100e098 */ 3126 L_3100E08F: 3127 PUSH32(esp, ecx); /* 0x3100E08F: push ecx */ 3128 RECOMP_ICALL(0x31046858u); /* 0x3100E090: call 0x31046858 */ /* not lifted */ 3129 RECOMP_FLAGS_IN(); 3130 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3131 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3132 esp = esp + 4; /* 0x3100E095: add esp, 4 */ 3133 _flag_k = FK_ADD; 3134 L_3100E098: 3135 ecx = esi; /* 0x3100E098: mov ecx, esi */ 3136 RECOMP_ICALL(0x310013E0u); /* 0x3100E09A: call 0x310013e0 */ /* not lifted */ 3137 RECOMP_FLAGS_IN(); 3138 edi = esi + 0x30; /* 0x3100E09F: lea edi, [esi + 0x30] */ 3139 L_3100E0A2: 3140 eax = ebp + (-0x6C); /* 0x3100E0A2: lea eax, [ebp - 0x6c] */ 3141 PUSH32(esp, eax); /* 0x3100E0A5: push eax */ 3142 ecx = edi; /* 0x3100E0A6: mov ecx, edi */ 3143 RECOMP_ICALL(0x31010CA0u); /* 0x3100E0A8: call 0x31010ca0 */ /* not lifted */ 3144 RECOMP_FLAGS_IN(); 3145 ecx = ebp + (-0x6C); /* 0x3100E0AD: lea ecx, [ebp - 0x6c] */ 3146 PUSH32(esp, ecx); /* 0x3100E0B0: push ecx */ 3147 ecx = edi; /* 0x3100E0B1: mov ecx, edi */ 3148 RECOMP_ICALL(0x31010F40u); /* 0x3100E0B3: call 0x31010f40 */ /* not lifted */ 3149 RECOMP_FLAGS_IN(); 3150 /* test LO8(eax), LO8(eax) */ /* 0x3100E0B8: test al, al */ 3151 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3152 _cf = 0; 3153 _flag_k = FK_NARROW(FK_TEST, 24); 3154 RECOMP_BACKEDGE(); 3155 if (TEST_Z(_flag_a, _flag_b)) goto L_3100E0A2; /* 0x3100E0BA: je 0x3100e0a2 */ 3156 L_3100E0BC: 3157 ecx = esi; /* 0x3100E0BC: mov ecx, esi */ 3158 RECOMP_ICALL(0x310013E0u); /* 0x3100E0BE: call 0x310013e0 */ /* not lifted */ 3159 RECOMP_FLAGS_IN(); 3160 PUSH32(esp, ebx); /* 0x3100E0C3: push ebx */ 3161 edx = ebp + (-0x14); /* 0x3100E0C4: lea edx, [ebp - 0x14] */ 3162 PUSH32(esp, edx); /* 0x3100E0C7: push edx */ 3163 PUSH32(esp, 0x310522ECu); /* 0x3100E0C8: push 0x310522ec */ 3164 ecx = ebp + (-0x6C); /* 0x3100E0CD: lea ecx, [ebp - 0x6c] */ 3165 MEM32(ebp + (-0x14)) = ebx; /* 0x3100E0D0: mov dword ptr [ebp - 0x14], ebx */ 3166 RECOMP_ICALL(MEM32(0x310482D4)); /* 0x3100E0D3: call dword ptr [0x310482d4] */ 3167 RECOMP_FLAGS_IN(); 3168 esi = MEM32(ebp + (-0x14)); /* 0x3100E0D9: mov esi, dword ptr [ebp - 0x14] */ 3169 MEM32(ebp + (-0x6C)) = 0x3104876Cu; /* 0x3100E0DC: mov dword ptr [ebp - 0x6c], 0x3104876c */ 3170 ecx = ebp + (-0x6C); /* 0x3100E0E3: lea ecx, [ebp - 0x6c] */ 3171 MEM32(ebp + (-0x4)) = 3; /* 0x3100E0E6: mov dword ptr [ebp - 4], 3 */ 3172 RECOMP_ICALL(MEM32(0x310482F8)); /* 0x3100E0ED: call dword ptr [0x310482f8] */ 3173 RECOMP_FLAGS_IN(); 3174 eax = MEM32(ebp + (-0x38)); /* 0x3100E0F3: mov eax, dword ptr [ebp - 0x38] */ 3175 PUSH32(esp, eax); /* 0x3100E0F6: push eax */ 3176 RECOMP_ICALL(0x31046858u); /* 0x3100E0F7: call 0x31046858 */ /* not lifted */ 3177 RECOMP_FLAGS_IN(); 3178 eax = MEM32(ebp + (-0x64)); /* 0x3100E0FC: mov eax, dword ptr [ebp - 0x64] */ 3179 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3180 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3181 esp = esp + 4; /* 0x3100E0FF: add esp, 4 */ 3182 _flag_k = FK_ADD; 3183 MEM32(ebp + (-0x38)) = ebx; /* 0x3100E102: mov dword ptr [ebp - 0x38], ebx */ 3184 MEM32(ebp + (-0x34)) = ebx; /* 0x3100E105: mov dword ptr [ebp - 0x34], ebx */ 3185 MEM32(ebp + (-0x30)) = ebx; /* 0x3100E108: mov dword ptr [ebp - 0x30], ebx */ 3186 ecx = MEM32(eax); /* 0x3100E10B: mov ecx, dword ptr [eax] */ 3187 PUSH32(esp, eax); /* 0x3100E10D: push eax */ 3188 PUSH32(esp, ecx); /* 0x3100E10E: push ecx */ 3189 ecx = ebp + (-0x18); /* 0x3100E10F: lea ecx, [ebp - 0x18] */ 3190 PUSH32(esp, ecx); /* 0x3100E112: push ecx */ 3191 ecx = ebp + (-0x68); /* 0x3100E113: lea ecx, [ebp - 0x68] */ 3192 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3100E116: mov dword ptr [ebp - 4], 0xffffffff */ 3193 RECOMP_ICALL(0x3100E420u); /* 0x3100E11D: call 0x3100e420 */ /* not lifted */ 3194 RECOMP_FLAGS_IN(); 3195 edx = MEM32(ebp + (-0x64)); /* 0x3100E122: mov edx, dword ptr [ebp - 0x64] */ 3196 PUSH32(esp, edx); /* 0x3100E125: push edx */ 3197 RECOMP_ICALL(0x31046858u); /* 0x3100E126: call 0x31046858 */ /* not lifted */ 3198 RECOMP_FLAGS_IN(); 3199 eax = MEM32(ebp + (-0x60)); /* 0x3100E12B: mov eax, dword ptr [ebp - 0x60] */ 3200 PUSH32(esp, eax); /* 0x3100E12E: push eax */ 3201 MEM32(ebp + (-0x64)) = ebx; /* 0x3100E12F: mov dword ptr [ebp - 0x64], ebx */ 3202 MEM32(ebp + (-0x58)) = ebx; /* 0x3100E132: mov dword ptr [ebp - 0x58], ebx */ 3203 RECOMP_ICALL(0x31046858u); /* 0x3100E135: call 0x31046858 */ /* not lifted */ 3204 RECOMP_FLAGS_IN(); 3205 ecx = MEM32(ebp + (-0xC)); /* 0x3100E13A: mov ecx, dword ptr [ebp - 0xc] */ 3206 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3207 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3208 esp = esp + 8; /* 0x3100E13D: add esp, 8 */ 3209 _flag_k = FK_ADD; 3210 edi = POP32_VAL(esp); /* 0x3100E140: pop edi */ 3211 eax = esi; /* 0x3100E141: mov eax, esi */ 3212 esi = POP32_VAL(esp); /* 0x3100E143: pop esi */ 3213 ebx = POP32_VAL(esp); /* 0x3100E144: pop ebx */ 3214 MEM32(FS_BASE + (0)) = ecx; /* 0x3100E145: mov dword ptr fs:[0], ecx */ 3215 esp = ebp; /* 0x3100E14C: mov esp, ebp */ 3216 ebp = POP32_VAL(esp); /* 0x3100E14E: pop ebp */ 3217 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100E14F: ret */ 3218 RECOMP_REGS_OUT(); 3219 } 3220 3221 void sub_3100E150(void) { 3222 int _fpu_cmp = 0; 3223 uint32_t _cf = 0; 3224 int _df = 1; 3225 uint32_t _flag_k = FK_NONE; 3226 uint32_t _flag_a = 0, _flag_b = 0; 3227 uint32_t _itail_tgt = 0; 3228 RECOMP_REGS_LOCALS 3229 RECOMP_ENTER(0x3100E150u); 3230 3231 L_3100E150: 3232 PUSH32(esp, ebp); /* 0x3100E150: push ebp */ 3233 ebp = esp; /* 0x3100E151: mov ebp, esp */ 3234 PUSH32(esp, 0xFFFFFFFFu); /* 0x3100E153: push -1 */ 3235 PUSH32(esp, 0x31047AC1u); /* 0x3100E155: push 0x31047ac1 */ 3236 eax = MEM32(FS_BASE + (0)); /* 0x3100E15A: mov eax, dword ptr fs:[0] */ 3237 PUSH32(esp, eax); /* 0x3100E160: push eax */ 3238 MEM32(FS_BASE + (0)) = esp; /* 0x3100E161: mov dword ptr fs:[0], esp */ 3239 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x5Cu); 3240 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3241 esp = esp - 0x5Cu; /* 0x3100E168: sub esp, 0x5c */ 3242 _flag_k = FK_CMP; 3243 PUSH32(esp, ebx); /* 0x3100E16B: push ebx */ 3244 PUSH32(esp, esi); /* 0x3100E16C: push esi */ 3245 PUSH32(esp, edi); /* 0x3100E16D: push edi */ 3246 esi = ecx; /* 0x3100E16E: mov esi, ecx */ 3247 PUSH32(esp, 0xFFFFFFFFu); /* 0x3100E170: push -1 */ 3248 ecx = ebp + (-0x68); /* 0x3100E172: lea ecx, [ebp - 0x68] */ 3249 MEM32(ebp + (-0x14)) = esi; /* 0x3100E175: mov dword ptr [ebp - 0x14], esi */ 3250 RECOMP_ICALL(MEM32(0x310482C8)); /* 0x3100E178: call dword ptr [0x310482c8] */ 3251 RECOMP_FLAGS_IN(); 3252 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3100E17E: mov al, byte ptr [ebp + 0xb] */ 3253 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3254 ebx = 0; /* 0x3100E181: xor ebx, ebx */ 3255 _cf = 0; 3256 _flag_k = FK_TEST; 3257 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3258 ecx = ecx | 0xFFFFFFFFu; /* 0x3100E183: or ecx, 0xffffffff */ 3259 _cf = 0; 3260 _flag_k = FK_TEST; 3261 MEM8(ebp + (-0x28)) = (uint8_t)(LO8(eax)); /* 0x3100E186: mov byte ptr [ebp - 0x28], al */ 3262 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3263 eax = 0; /* 0x3100E189: xor eax, eax */ 3264 _cf = 0; 3265 _flag_k = FK_TEST; 3266 edi = 0x31052498u; /* 0x3100E18B: mov edi, 0x31052498 */ 3267 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; } /* 0x3100E190: repne scasb al, byte ptr es:[edi] */ 3268 ecx = ~ecx; /* 0x3100E192: not ecx */ 3269 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3270 ecx = ecx - 1; /* 0x3100E194: dec ecx */ 3271 _flag_k = FK_DEC; 3272 edi = ecx; /* 0x3100E195: mov edi, ecx */ 3273 PUSH32(esp, 1); /* 0x3100E197: push 1 */ 3274 PUSH32(esp, edi); /* 0x3100E199: push edi */ 3275 ecx = ebp + (-0x28); /* 0x3100E19A: lea ecx, [ebp - 0x28] */ 3276 MEM32(ebp + (-0x4)) = ebx; /* 0x3100E19D: mov dword ptr [ebp - 4], ebx */ 3277 MEM32(ebp + (-0x24)) = ebx; /* 0x3100E1A0: mov dword ptr [ebp - 0x24], ebx */ 3278 MEM32(ebp + (-0x20)) = ebx; /* 0x3100E1A3: mov dword ptr [ebp - 0x20], ebx */ 3279 MEM32(ebp + (-0x1C)) = ebx; /* 0x3100E1A6: mov dword ptr [ebp - 0x1c], ebx */ 3280 MEM32(ebp + (-0x10)) = edi; /* 0x3100E1A9: mov dword ptr [ebp - 0x10], edi */ 3281 RECOMP_ICALL(MEM32(0x31048070)); /* 0x3100E1AC: call dword ptr [0x31048070] */ 3282 RECOMP_FLAGS_IN(); 3283 /* test LO8(eax), LO8(eax) */ /* 0x3100E1B2: test al, al */ 3284 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3285 _cf = 0; 3286 _flag_k = FK_NARROW(FK_TEST, 24); 3287 if (TEST_Z(_flag_a, _flag_b)) goto L_3100E1DC; /* 0x3100E1B4: je 0x3100e1dc */ 3288 L_3100E1B6: 3289 ecx = edi; /* 0x3100E1B6: mov ecx, edi */ 3290 edi = MEM32(ebp + (-0x24)); /* 0x3100E1B8: mov edi, dword ptr [ebp - 0x24] */ 3291 edx = ecx; /* 0x3100E1BB: mov edx, ecx */ 3292 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3100E1BD: shr ecx, 2 */ 3293 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3294 ecx = ecx >> 2u; /* 0x3100E1BD: shr ecx, 2 */ 3295 esi = 0x31052498u; /* 0x3100E1C0: mov esi, 0x31052498 */ 3296 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3100E1C5: 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; } 3297 ecx = edx; /* 0x3100E1C7: mov ecx, edx */ 3298 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 3299 ecx = ecx & 3; /* 0x3100E1C9: and ecx, 3 */ 3300 _cf = 0; 3301 _flag_k = FK_TEST; 3302 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3100E1CC: 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; } 3303 ecx = MEM32(ebp + (-0x24)); /* 0x3100E1CE: mov ecx, dword ptr [ebp - 0x24] */ 3304 esi = MEM32(ebp + (-0x14)); /* 0x3100E1D1: mov esi, dword ptr [ebp - 0x14] */ 3305 eax = edx; /* 0x3100E1D4: mov eax, edx */ 3306 MEM32(ebp + (-0x20)) = eax; /* 0x3100E1D6: mov dword ptr [ebp - 0x20], eax */ 3307 MEM8(ecx + eax) = (uint8_t)(LO8(ebx)); /* 0x3100E1D9: mov byte ptr [ecx + eax], bl */ 3308 L_3100E1DC: 3309 edx = ebp + (-0x28); /* 0x3100E1DC: lea edx, [ebp - 0x28] */ 3310 PUSH32(esp, edx); /* 0x3100E1DF: push edx */ 3311 PUSH32(esp, 0x3105224Cu); /* 0x3100E1E0: push 0x3105224c */ 3312 ecx = ebp + (-0x68); /* 0x3100E1E5: lea ecx, [ebp - 0x68] */ 3313 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3100E1E8: mov byte ptr [ebp - 4], 1 */ 3314 RECOMP_ICALL(MEM32(0x310482CC)); /* 0x3100E1EC: call dword ptr [0x310482cc] */ 3315 RECOMP_FLAGS_IN(); 3316 eax = MEM32(ebp + (-0x24)); /* 0x3100E1F2: mov eax, dword ptr [ebp - 0x24] */ 3317 /* cmp eax, ebx */ /* 0x3100E1F5: cmp eax, ebx */ 3318 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3319 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3320 _flag_k = FK_CMP; 3321 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3100E1F7: mov byte ptr [ebp - 4], bl */ 3322 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E218; /* 0x3100E1FA: je 0x3100e218 */ 3323 L_3100E1FC: 3324 ecx = eax + (-0x1); /* 0x3100E1FC: lea ecx, [eax - 1] */ 3325 SET_LO8(eax, MEM8(ecx)); /* 0x3100E1FF: mov al, byte ptr [ecx] */ 3326 /* cmp LO8(eax), LO8(ebx) */ /* 0x3100E201: cmp al, bl */ 3327 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3328 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3329 _flag_k = FK_NARROW(FK_CMP, 24); 3330 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E20F; /* 0x3100E203: je 0x3100e20f */ 3331 L_3100E205: 3332 /* cmp LO8(eax), 0xFFu */ /* 0x3100E205: cmp al, 0xff */ 3333 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 3334 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3335 _flag_k = FK_NARROW(FK_CMP, 24); 3336 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E20F; /* 0x3100E207: je 0x3100e20f */ 3337 L_3100E209: 3338 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3339 SET_LO8(eax, LO8(eax) - 1); /* 0x3100E209: dec al */ 3340 _flag_k = FK_NARROW(FK_DEC, 24); 3341 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3100E20B: mov byte ptr [ecx], al */ 3342 goto L_3100E218; /* 0x3100E20D: jmp 0x3100e218 */ 3343 L_3100E20F: 3344 PUSH32(esp, ecx); /* 0x3100E20F: push ecx */ 3345 RECOMP_ICALL(0x31046858u); /* 0x3100E210: call 0x31046858 */ /* not lifted */ 3346 RECOMP_FLAGS_IN(); 3347 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3348 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3349 esp = esp + 4; /* 0x3100E215: add esp, 4 */ 3350 _flag_k = FK_ADD; 3351 L_3100E218: 3352 edi = MEM32(ebp + 0x8); /* 0x3100E218: mov edi, dword ptr [ebp + 8] */ 3353 PUSH32(esp, edi); /* 0x3100E21B: push edi */ 3354 PUSH32(esp, 0x31052424u); /* 0x3100E21C: push 0x31052424 */ 3355 ecx = ebp + (-0x68); /* 0x3100E221: lea ecx, [ebp - 0x68] */ 3356 RECOMP_ICALL(MEM32(0x310482B4)); /* 0x3100E224: call dword ptr [0x310482b4] */ 3357 RECOMP_FLAGS_IN(); 3358 ecx = esi; /* 0x3100E22A: mov ecx, esi */ 3359 RECOMP_ICALL(0x310013E0u); /* 0x3100E22C: call 0x310013e0 */ /* not lifted */ 3360 RECOMP_FLAGS_IN(); 3361 L_3100E231: 3362 eax = ebp + (-0x68); /* 0x3100E231: lea eax, [ebp - 0x68] */ 3363 PUSH32(esp, eax); /* 0x3100E234: push eax */ 3364 ecx = esi + 0x30; /* 0x3100E235: lea ecx, [esi + 0x30] */ 3365 RECOMP_ICALL(0x31010CA0u); /* 0x3100E238: call 0x31010ca0 */ /* not lifted */ 3366 RECOMP_FLAGS_IN(); 3367 ecx = ebp + (-0x68); /* 0x3100E23D: lea ecx, [ebp - 0x68] */ 3368 PUSH32(esp, ecx); /* 0x3100E240: push ecx */ 3369 ecx = esi + 0x30; /* 0x3100E241: lea ecx, [esi + 0x30] */ 3370 RECOMP_ICALL(0x31010F40u); /* 0x3100E244: call 0x31010f40 */ /* not lifted */ 3371 RECOMP_FLAGS_IN(); 3372 /* test LO8(eax), LO8(eax) */ /* 0x3100E249: test al, al */ 3373 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3374 _cf = 0; 3375 _flag_k = FK_NARROW(FK_TEST, 24); 3376 RECOMP_BACKEDGE(); 3377 if (TEST_Z(_flag_a, _flag_b)) goto L_3100E231; /* 0x3100E24B: je 0x3100e231 */ 3378 L_3100E24D: 3379 ecx = esi; /* 0x3100E24D: mov ecx, esi */ 3380 RECOMP_ICALL(0x310013E0u); /* 0x3100E24F: call 0x310013e0 */ /* not lifted */ 3381 RECOMP_FLAGS_IN(); 3382 PUSH32(esp, ebx); /* 0x3100E254: push ebx */ 3383 edx = ebp + (-0x18); /* 0x3100E255: lea edx, [ebp - 0x18] */ 3384 PUSH32(esp, edx); /* 0x3100E258: push edx */ 3385 PUSH32(esp, 0x310522ECu); /* 0x3100E259: push 0x310522ec */ 3386 ecx = ebp + (-0x68); /* 0x3100E25E: lea ecx, [ebp - 0x68] */ 3387 RECOMP_ICALL(MEM32(0x310482D4)); /* 0x3100E261: call dword ptr [0x310482d4] */ 3388 RECOMP_FLAGS_IN(); 3389 esi = MEM32(0x310482F8); /* 0x3100E267: mov esi, dword ptr [0x310482f8] */ 3390 ecx = edi; /* 0x3100E26D: mov ecx, edi */ 3391 RECOMP_ICALL(esi); /* 0x3100E26F: call esi */ 3392 RECOMP_FLAGS_IN(); 3393 PUSH32(esp, ebx); /* 0x3100E271: push ebx */ 3394 PUSH32(esp, edi); /* 0x3100E272: push edi */ 3395 PUSH32(esp, 0x31052424u); /* 0x3100E273: push 0x31052424 */ 3396 ecx = ebp + (-0x68); /* 0x3100E278: lea ecx, [ebp - 0x68] */ 3397 RECOMP_ICALL(MEM32(0x310482B8)); /* 0x3100E27B: call dword ptr [0x310482b8] */ 3398 RECOMP_FLAGS_IN(); 3399 edi = MEM32(ebp + (-0x18)); /* 0x3100E281: mov edi, dword ptr [ebp - 0x18] */ 3400 MEM32(ebp + (-0x68)) = 0x3104876Cu; /* 0x3100E284: mov dword ptr [ebp - 0x68], 0x3104876c */ 3401 ecx = ebp + (-0x68); /* 0x3100E28B: lea ecx, [ebp - 0x68] */ 3402 MEM32(ebp + (-0x4)) = 3; /* 0x3100E28E: mov dword ptr [ebp - 4], 3 */ 3403 RECOMP_ICALL(esi); /* 0x3100E295: call esi */ 3404 RECOMP_FLAGS_IN(); 3405 eax = MEM32(ebp + (-0x34)); /* 0x3100E297: mov eax, dword ptr [ebp - 0x34] */ 3406 PUSH32(esp, eax); /* 0x3100E29A: push eax */ 3407 RECOMP_ICALL(0x31046858u); /* 0x3100E29B: call 0x31046858 */ /* not lifted */ 3408 RECOMP_FLAGS_IN(); 3409 eax = MEM32(ebp + (-0x60)); /* 0x3100E2A0: mov eax, dword ptr [ebp - 0x60] */ 3410 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3411 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3412 esp = esp + 4; /* 0x3100E2A3: add esp, 4 */ 3413 _flag_k = FK_ADD; 3414 MEM32(ebp + (-0x34)) = ebx; /* 0x3100E2A6: mov dword ptr [ebp - 0x34], ebx */ 3415 MEM32(ebp + (-0x30)) = ebx; /* 0x3100E2A9: mov dword ptr [ebp - 0x30], ebx */ 3416 MEM32(ebp + (-0x2C)) = ebx; /* 0x3100E2AC: mov dword ptr [ebp - 0x2c], ebx */ 3417 ecx = MEM32(eax); /* 0x3100E2AF: mov ecx, dword ptr [eax] */ 3418 PUSH32(esp, eax); /* 0x3100E2B1: push eax */ 3419 PUSH32(esp, ecx); /* 0x3100E2B2: push ecx */ 3420 ecx = ebp + 0x8; /* 0x3100E2B3: lea ecx, [ebp + 8] */ 3421 PUSH32(esp, ecx); /* 0x3100E2B6: push ecx */ 3422 ecx = ebp + (-0x64); /* 0x3100E2B7: lea ecx, [ebp - 0x64] */ 3423 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3100E2BA: mov dword ptr [ebp - 4], 0xffffffff */ 3424 RECOMP_ICALL(0x3100E420u); /* 0x3100E2C1: call 0x3100e420 */ /* not lifted */ 3425 RECOMP_FLAGS_IN(); 3426 edx = MEM32(ebp + (-0x60)); /* 0x3100E2C6: mov edx, dword ptr [ebp - 0x60] */ 3427 PUSH32(esp, edx); /* 0x3100E2C9: push edx */ 3428 RECOMP_ICALL(0x31046858u); /* 0x3100E2CA: call 0x31046858 */ /* not lifted */ 3429 RECOMP_FLAGS_IN(); 3430 eax = MEM32(ebp + (-0x5C)); /* 0x3100E2CF: mov eax, dword ptr [ebp - 0x5c] */ 3431 PUSH32(esp, eax); /* 0x3100E2D2: push eax */ 3432 MEM32(ebp + (-0x60)) = ebx; /* 0x3100E2D3: mov dword ptr [ebp - 0x60], ebx */ 3433 MEM32(ebp + (-0x54)) = ebx; /* 0x3100E2D6: mov dword ptr [ebp - 0x54], ebx */ 3434 RECOMP_ICALL(0x31046858u); /* 0x3100E2D9: call 0x31046858 */ /* not lifted */ 3435 RECOMP_FLAGS_IN(); 3436 ecx = MEM32(ebp + (-0xC)); /* 0x3100E2DE: mov ecx, dword ptr [ebp - 0xc] */ 3437 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3438 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3439 esp = esp + 8; /* 0x3100E2E1: add esp, 8 */ 3440 _flag_k = FK_ADD; 3441 eax = edi; /* 0x3100E2E4: mov eax, edi */ 3442 edi = POP32_VAL(esp); /* 0x3100E2E6: pop edi */ 3443 esi = POP32_VAL(esp); /* 0x3100E2E7: pop esi */ 3444 ebx = POP32_VAL(esp); /* 0x3100E2E8: pop ebx */ 3445 MEM32(FS_BASE + (0)) = ecx; /* 0x3100E2E9: mov dword ptr fs:[0], ecx */ 3446 esp = ebp; /* 0x3100E2F0: mov esp, ebp */ 3447 ebp = POP32_VAL(esp); /* 0x3100E2F2: pop ebp */ 3448 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3100E2F3: ret 4 */ 3449 RECOMP_REGS_OUT(); 3450 } 3451 3452 void sub_3100E300(void) { 3453 int _fpu_cmp = 0; 3454 uint32_t _cf = 0; 3455 int _df = 1; 3456 uint32_t _flag_k = FK_NONE; 3457 uint32_t _flag_a = 0, _flag_b = 0; 3458 uint32_t _itail_tgt = 0; 3459 RECOMP_REGS_LOCALS 3460 RECOMP_ENTER(0x3100E300u); 3461 3462 L_3100E300: 3463 PUSH32(esp, ebp); /* 0x3100E300: push ebp */ 3464 ebp = esp; /* 0x3100E301: mov ebp, esp */ 3465 edx = MEM32(ebp + 0xC); /* 0x3100E303: mov edx, dword ptr [ebp + 0xc] */ 3466 eax = MEM32(ebp + 0x8); /* 0x3100E306: mov eax, dword ptr [ebp + 8] */ 3467 PUSH32(esp, esi); /* 0x3100E309: push esi */ 3468 PUSH32(esp, edi); /* 0x3100E30A: push edi */ 3469 edi = MEM32(ecx + 0x8); /* 0x3100E30B: mov edi, dword ptr [ecx + 8] */ 3470 /* cmp edx, edi */ /* 0x3100E30E: cmp edx, edi */ 3471 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 3472 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3473 _flag_k = FK_CMP; 3474 esi = eax; /* 0x3100E310: mov esi, eax */ 3475 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E324; /* 0x3100E312: je 0x3100e324 */ 3476 L_3100E314: 3477 PUSH32(esp, ebx); /* 0x3100E314: push ebx */ 3478 L_3100E315: 3479 ebx = MEM32(edx); /* 0x3100E315: mov ebx, dword ptr [edx] */ 3480 MEM32(esi) = ebx; /* 0x3100E317: mov dword ptr [esi], ebx */ 3481 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 3482 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3483 edx = edx + 4; /* 0x3100E319: add edx, 4 */ 3484 _flag_k = FK_ADD; 3485 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 3486 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3487 esi = esi + 4; /* 0x3100E31C: add esi, 4 */ 3488 _flag_k = FK_ADD; 3489 /* cmp edx, edi */ /* 0x3100E31F: cmp edx, edi */ 3490 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 3491 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3492 _flag_k = FK_CMP; 3493 RECOMP_BACKEDGE(); 3494 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E315; /* 0x3100E321: jne 0x3100e315 */ 3495 L_3100E323: 3496 ebx = POP32_VAL(esp); /* 0x3100E323: pop ebx */ 3497 L_3100E324: 3498 edx = MEM32(ecx + 0x8); /* 0x3100E324: mov edx, dword ptr [ecx + 8] */ 3499 edi = POP32_VAL(esp); /* 0x3100E327: pop edi */ 3500 MEM32(ecx + 0x8) = esi; /* 0x3100E328: mov dword ptr [ecx + 8], esi */ 3501 MEM32(ebp + 0x8) = edx; /* 0x3100E32B: mov dword ptr [ebp + 8], edx */ 3502 esi = POP32_VAL(esp); /* 0x3100E32E: pop esi */ 3503 ebp = POP32_VAL(esp); /* 0x3100E32F: pop ebp */ 3504 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100E330: ret 8 */ 3505 RECOMP_REGS_OUT(); 3506 } 3507 3508 void sub_3100E340(void) { 3509 int _fpu_cmp = 0; 3510 uint32_t _cf = 0; 3511 int _df = 1; 3512 uint32_t _flag_k = FK_NONE; 3513 uint32_t _flag_a = 0, _flag_b = 0; 3514 uint32_t _itail_tgt = 0; 3515 RECOMP_REGS_LOCALS 3516 RECOMP_ENTER(0x3100E340u); 3517 3518 L_3100E340: 3519 PUSH32(esp, ebp); /* 0x3100E340: push ebp */ 3520 ebp = esp; /* 0x3100E341: mov ebp, esp */ 3521 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3522 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3523 esp = esp - 8; /* 0x3100E343: sub esp, 8 */ 3524 _flag_k = FK_CMP; 3525 PUSH32(esp, ebx); /* 0x3100E346: push ebx */ 3526 PUSH32(esp, esi); /* 0x3100E347: push esi */ 3527 esi = ecx; /* 0x3100E348: mov esi, ecx */ 3528 ecx = MEM32(esi + 0x10); /* 0x3100E34A: mov ecx, dword ptr [esi + 0x10] */ 3529 /* test ecx, ecx */ /* 0x3100E34D: test ecx, ecx */ 3530 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3531 _cf = 0; 3532 _flag_k = FK_TEST; 3533 PUSH32(esp, edi); /* 0x3100E34F: push edi */ 3534 edi = MEM32(esi + 0x4); /* 0x3100E350: mov edi, dword ptr [esi + 4] */ 3535 eax = MEM32(edi); /* 0x3100E353: mov eax, dword ptr [edi] */ 3536 MEM32(ebp + (-0x4)) = eax; /* 0x3100E355: mov dword ptr [ebp - 4], eax */ 3537 if (TEST_Z(_flag_a, _flag_b)) goto L_3100E3B4; /* 0x3100E358: je 0x3100e3b4 */ 3538 L_3100E35A: 3539 ecx = eax; /* 0x3100E35A: mov ecx, eax */ 3540 /* cmp eax, ecx */ /* 0x3100E35C: cmp eax, ecx */ 3541 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3542 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3543 _flag_k = FK_CMP; 3544 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E3B4; /* 0x3100E35E: jne 0x3100e3b4 */ 3545 L_3100E360: 3546 /* cmp edi, edi */ /* 0x3100E360: cmp edi, edi */ 3547 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3548 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3549 _flag_k = FK_CMP; 3550 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E3B4; /* 0x3100E362: jne 0x3100e3b4 */ 3551 L_3100E364: 3552 ebx = MEM32(edi + 0x4); /* 0x3100E364: mov ebx, dword ptr [edi + 4] */ 3553 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3100E367: cmp ebx, dword ptr [esi + 8] */ 3554 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3555 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3556 _flag_k = FK_CMP; 3557 edi = ebx; /* 0x3100E36A: mov edi, ebx */ 3558 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E397; /* 0x3100E36C: je 0x3100e397 */ 3559 L_3100E36E: 3560 eax = MEM32(edi + 0x8); /* 0x3100E36E: mov eax, dword ptr [edi + 8] */ 3561 PUSH32(esp, eax); /* 0x3100E371: push eax */ 3562 ecx = esi; /* 0x3100E372: mov ecx, esi */ 3563 RECOMP_ICALL(0x3100E8B0u); /* 0x3100E374: call 0x3100e8b0 */ /* not lifted */ 3564 RECOMP_FLAGS_IN(); 3565 edi = MEM32(edi); /* 0x3100E379: mov edi, dword ptr [edi] */ 3566 PUSH32(esp, 0); /* 0x3100E37B: push 0 */ 3567 ecx = ebx + 0xC; /* 0x3100E37D: lea ecx, [ebx + 0xc] */ 3568 RECOMP_ICALL(0x3100EE50u); /* 0x3100E380: call 0x3100ee50 */ /* not lifted */ 3569 RECOMP_FLAGS_IN(); 3570 PUSH32(esp, ebx); /* 0x3100E385: push ebx */ 3571 RECOMP_ICALL(0x31046858u); /* 0x3100E386: call 0x31046858 */ /* not lifted */ 3572 RECOMP_FLAGS_IN(); 3573 eax = MEM32(esi + 0x8); /* 0x3100E38B: mov eax, dword ptr [esi + 8] */ 3574 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3575 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3576 esp = esp + 4; /* 0x3100E38E: add esp, 4 */ 3577 _flag_k = FK_ADD; 3578 /* cmp edi, eax */ /* 0x3100E391: cmp edi, eax */ 3579 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3580 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3581 _flag_k = FK_CMP; 3582 ebx = edi; /* 0x3100E393: mov ebx, edi */ 3583 RECOMP_BACKEDGE(); 3584 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E36E; /* 0x3100E395: jne 0x3100e36e */ 3585 L_3100E397: 3586 ecx = MEM32(esi + 0x4); /* 0x3100E397: mov ecx, dword ptr [esi + 4] */ 3587 edx = MEM32(esi + 0x8); /* 0x3100E39A: mov edx, dword ptr [esi + 8] */ 3588 MEM32(ecx + 0x4) = edx; /* 0x3100E39D: mov dword ptr [ecx + 4], edx */ 3589 eax = MEM32(esi + 0x4); /* 0x3100E3A0: mov eax, dword ptr [esi + 4] */ 3590 MEM32(esi + 0x10) = 0; /* 0x3100E3A3: mov dword ptr [esi + 0x10], 0 */ 3591 MEM32(eax) = eax; /* 0x3100E3AA: mov dword ptr [eax], eax */ 3592 eax = MEM32(esi + 0x4); /* 0x3100E3AC: mov eax, dword ptr [esi + 4] */ 3593 MEM32(eax + 0x8) = eax; /* 0x3100E3AF: mov dword ptr [eax + 8], eax */ 3594 goto L_3100E3D5; /* 0x3100E3B2: jmp 0x3100e3d5 */ 3595 L_3100E3B4: 3596 /* cmp eax, edi */ /* 0x3100E3B4: cmp eax, edi */ 3597 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3598 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3599 _flag_k = FK_CMP; 3600 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E3D5; /* 0x3100E3B6: je 0x3100e3d5 */ 3601 L_3100E3B8: 3602 ecx = ebp + (-0x4); /* 0x3100E3B8: lea ecx, [ebp - 4] */ 3603 ebx = eax; /* 0x3100E3BB: mov ebx, eax */ 3604 RECOMP_ICALL(0x3100EC20u); /* 0x3100E3BD: call 0x3100ec20 */ /* not lifted */ 3605 RECOMP_FLAGS_IN(); 3606 PUSH32(esp, ebx); /* 0x3100E3C2: push ebx */ 3607 eax = ebp + (-0x8); /* 0x3100E3C3: lea eax, [ebp - 8] */ 3608 PUSH32(esp, eax); /* 0x3100E3C6: push eax */ 3609 ecx = esi; /* 0x3100E3C7: mov ecx, esi */ 3610 RECOMP_ICALL(0x3100E4E0u); /* 0x3100E3C9: call 0x3100e4e0 */ /* not lifted */ 3611 RECOMP_FLAGS_IN(); 3612 eax = MEM32(ebp + (-0x4)); /* 0x3100E3CE: mov eax, dword ptr [ebp - 4] */ 3613 /* cmp eax, edi */ /* 0x3100E3D1: cmp eax, edi */ 3614 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3615 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3616 _flag_k = FK_CMP; 3617 RECOMP_BACKEDGE(); 3618 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E3B8; /* 0x3100E3D3: jne 0x3100e3b8 */ 3619 L_3100E3D5: 3620 ecx = MEM32(esi + 0x4); /* 0x3100E3D5: mov ecx, dword ptr [esi + 4] */ 3621 PUSH32(esp, ecx); /* 0x3100E3D8: push ecx */ 3622 RECOMP_ICALL(0x31046858u); /* 0x3100E3D9: call 0x31046858 */ /* not lifted */ 3623 RECOMP_FLAGS_IN(); 3624 edx = MEM32(esi + 0x8); /* 0x3100E3DE: mov edx, dword ptr [esi + 8] */ 3625 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3626 edi = 0; /* 0x3100E3E1: xor edi, edi */ 3627 _cf = 0; 3628 _flag_k = FK_TEST; 3629 PUSH32(esp, edx); /* 0x3100E3E3: push edx */ 3630 MEM32(esi + 0x4) = edi; /* 0x3100E3E4: mov dword ptr [esi + 4], edi */ 3631 MEM32(esi + 0x10) = edi; /* 0x3100E3E7: mov dword ptr [esi + 0x10], edi */ 3632 RECOMP_ICALL(0x31046858u); /* 0x3100E3EA: call 0x31046858 */ /* not lifted */ 3633 RECOMP_FLAGS_IN(); 3634 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3635 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3636 esp = esp + 8; /* 0x3100E3EF: add esp, 8 */ 3637 _flag_k = FK_ADD; 3638 MEM32(esi + 0x8) = edi; /* 0x3100E3F2: mov dword ptr [esi + 8], edi */ 3639 edi = POP32_VAL(esp); /* 0x3100E3F5: pop edi */ 3640 esi = POP32_VAL(esp); /* 0x3100E3F6: pop esi */ 3641 ebx = POP32_VAL(esp); /* 0x3100E3F7: pop ebx */ 3642 esp = ebp; /* 0x3100E3F8: mov esp, ebp */ 3643 ebp = POP32_VAL(esp); /* 0x3100E3FA: pop ebp */ 3644 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100E3FB: ret */ 3645 RECOMP_REGS_OUT(); 3646 } 3647 3648 void sub_3100E400(void) { 3649 int _fpu_cmp = 0; 3650 uint32_t _cf = 0; 3651 int _df = 1; 3652 uint32_t _flag_k = FK_NONE; 3653 uint32_t _flag_a = 0, _flag_b = 0; 3654 uint32_t _itail_tgt = 0; 3655 RECOMP_REGS_LOCALS 3656 RECOMP_ENTER(0x3100E400u); 3657 3658 L_3100E400: 3659 PUSH32(esp, ebp); /* 0x3100E400: push ebp */ 3660 ebp = esp; /* 0x3100E401: mov ebp, esp */ 3661 eax = MEM32(ecx + 0x4); /* 0x3100E403: mov eax, dword ptr [ecx + 4] */ 3662 ecx = MEM32(eax); /* 0x3100E406: mov ecx, dword ptr [eax] */ 3663 eax = MEM32(ebp + 0x8); /* 0x3100E408: mov eax, dword ptr [ebp + 8] */ 3664 MEM32(eax) = ecx; /* 0x3100E40B: mov dword ptr [eax], ecx */ 3665 ebp = POP32_VAL(esp); /* 0x3100E40D: pop ebp */ 3666 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3100E40E: ret 4 */ 3667 RECOMP_REGS_OUT(); 3668 } 3669 3670 void sub_3100E420(void) { 3671 int _fpu_cmp = 0; 3672 uint32_t _cf = 0; 3673 int _df = 1; 3674 uint32_t _flag_k = FK_NONE; 3675 uint32_t _flag_a = 0, _flag_b = 0; 3676 uint32_t _itail_tgt = 0; 3677 RECOMP_REGS_LOCALS 3678 RECOMP_ENTER(0x3100E420u); 3679 3680 L_3100E420: 3681 PUSH32(esp, ebp); /* 0x3100E420: push ebp */ 3682 ebp = esp; /* 0x3100E421: mov ebp, esp */ 3683 PUSH32(esp, ebx); /* 0x3100E423: push ebx */ 3684 ebx = MEM32(ebp + 0x10); /* 0x3100E424: mov ebx, dword ptr [ebp + 0x10] */ 3685 PUSH32(esp, esi); /* 0x3100E427: push esi */ 3686 esi = ecx; /* 0x3100E428: mov esi, ecx */ 3687 eax = MEM32(esi + 0x10); /* 0x3100E42A: mov eax, dword ptr [esi + 0x10] */ 3688 /* test eax, eax */ /* 0x3100E42D: test eax, eax */ 3689 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3690 _cf = 0; 3691 _flag_k = FK_TEST; 3692 ecx = MEM32(ebp + 0xC); /* 0x3100E42F: mov ecx, dword ptr [ebp + 0xc] */ 3693 PUSH32(esp, edi); /* 0x3100E432: push edi */ 3694 if (TEST_Z(_flag_a, _flag_b)) goto L_3100E49D; /* 0x3100E433: je 0x3100e49d */ 3695 L_3100E435: 3696 eax = MEM32(esi + 0x4); /* 0x3100E435: mov eax, dword ptr [esi + 4] */ 3697 /* cmp ecx, MEM32(eax) */ /* 0x3100E438: cmp ecx, dword ptr [eax] */ 3698 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 3699 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3700 _flag_k = FK_CMP; 3701 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E49D; /* 0x3100E43A: jne 0x3100e49d */ 3702 L_3100E43C: 3703 /* cmp ebx, eax */ /* 0x3100E43C: cmp ebx, eax */ 3704 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 3705 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3706 _flag_k = FK_CMP; 3707 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E49D; /* 0x3100E43E: jne 0x3100e49d */ 3708 L_3100E440: 3709 ebx = MEM32(eax + 0x4); /* 0x3100E440: mov ebx, dword ptr [eax + 4] */ 3710 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3100E443: cmp ebx, dword ptr [esi + 8] */ 3711 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3712 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3713 _flag_k = FK_CMP; 3714 edi = ebx; /* 0x3100E446: mov edi, ebx */ 3715 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E471; /* 0x3100E448: je 0x3100e471 */ 3716 L_3100E44A: 3717 eax = MEM32(edi + 0x8); /* 0x3100E44A: mov eax, dword ptr [edi + 8] */ 3718 PUSH32(esp, eax); /* 0x3100E44D: push eax */ 3719 ecx = esi; /* 0x3100E44E: mov ecx, esi */ 3720 RECOMP_ICALL(0x3100E8B0u); /* 0x3100E450: call 0x3100e8b0 */ /* not lifted */ 3721 RECOMP_FLAGS_IN(); 3722 edi = MEM32(edi); /* 0x3100E455: mov edi, dword ptr [edi] */ 3723 ecx = ebx + 0xC; /* 0x3100E457: lea ecx, [ebx + 0xc] */ 3724 RECOMP_ICALL(0x3100EE80u); /* 0x3100E45A: call 0x3100ee80 */ /* not lifted */ 3725 RECOMP_FLAGS_IN(); 3726 PUSH32(esp, ebx); /* 0x3100E45F: push ebx */ 3727 RECOMP_ICALL(0x31046858u); /* 0x3100E460: call 0x31046858 */ /* not lifted */ 3728 RECOMP_FLAGS_IN(); 3729 eax = MEM32(esi + 0x8); /* 0x3100E465: mov eax, dword ptr [esi + 8] */ 3730 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3731 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3732 esp = esp + 4; /* 0x3100E468: add esp, 4 */ 3733 _flag_k = FK_ADD; 3734 /* cmp edi, eax */ /* 0x3100E46B: cmp edi, eax */ 3735 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3736 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3737 _flag_k = FK_CMP; 3738 ebx = edi; /* 0x3100E46D: mov ebx, edi */ 3739 RECOMP_BACKEDGE(); 3740 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E44A; /* 0x3100E46F: jne 0x3100e44a */ 3741 L_3100E471: 3742 ecx = MEM32(esi + 0x4); /* 0x3100E471: mov ecx, dword ptr [esi + 4] */ 3743 edx = MEM32(esi + 0x8); /* 0x3100E474: mov edx, dword ptr [esi + 8] */ 3744 MEM32(ecx + 0x4) = edx; /* 0x3100E477: mov dword ptr [ecx + 4], edx */ 3745 eax = MEM32(esi + 0x4); /* 0x3100E47A: mov eax, dword ptr [esi + 4] */ 3746 MEM32(esi + 0x10) = 0; /* 0x3100E47D: mov dword ptr [esi + 0x10], 0 */ 3747 MEM32(eax) = eax; /* 0x3100E484: mov dword ptr [eax], eax */ 3748 eax = MEM32(esi + 0x4); /* 0x3100E486: mov eax, dword ptr [esi + 4] */ 3749 MEM32(eax + 0x8) = eax; /* 0x3100E489: mov dword ptr [eax + 8], eax */ 3750 eax = MEM32(esi + 0x4); /* 0x3100E48C: mov eax, dword ptr [esi + 4] */ 3751 ecx = MEM32(eax); /* 0x3100E48F: mov ecx, dword ptr [eax] */ 3752 eax = MEM32(ebp + 0x8); /* 0x3100E491: mov eax, dword ptr [ebp + 8] */ 3753 edi = POP32_VAL(esp); /* 0x3100E494: pop edi */ 3754 esi = POP32_VAL(esp); /* 0x3100E495: pop esi */ 3755 MEM32(eax) = ecx; /* 0x3100E496: mov dword ptr [eax], ecx */ 3756 ebx = POP32_VAL(esp); /* 0x3100E498: pop ebx */ 3757 ebp = POP32_VAL(esp); /* 0x3100E499: pop ebp */ 3758 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3100E49A: ret 0xc */ 3759 L_3100E49D: 3760 /* cmp ecx, ebx */ /* 0x3100E49D: cmp ecx, ebx */ 3761 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 3762 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3763 _flag_k = FK_CMP; 3764 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E4BE; /* 0x3100E49F: je 0x3100e4be */ 3765 L_3100E4A1: 3766 edi = ecx; /* 0x3100E4A1: mov edi, ecx */ 3767 ecx = ebp + 0xC; /* 0x3100E4A3: lea ecx, [ebp + 0xc] */ 3768 RECOMP_ICALL(0x3100EC20u); /* 0x3100E4A6: call 0x3100ec20 */ /* not lifted */ 3769 RECOMP_FLAGS_IN(); 3770 PUSH32(esp, edi); /* 0x3100E4AB: push edi */ 3771 ecx = ebp + 0x10; /* 0x3100E4AC: lea ecx, [ebp + 0x10] */ 3772 PUSH32(esp, ecx); /* 0x3100E4AF: push ecx */ 3773 ecx = esi; /* 0x3100E4B0: mov ecx, esi */ 3774 RECOMP_ICALL(0x3100E4E0u); /* 0x3100E4B2: call 0x3100e4e0 */ /* not lifted */ 3775 RECOMP_FLAGS_IN(); 3776 ecx = MEM32(ebp + 0xC); /* 0x3100E4B7: mov ecx, dword ptr [ebp + 0xc] */ 3777 /* cmp ecx, ebx */ /* 0x3100E4BA: cmp ecx, ebx */ 3778 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 3779 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3780 _flag_k = FK_CMP; 3781 RECOMP_BACKEDGE(); 3782 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E4A1; /* 0x3100E4BC: jne 0x3100e4a1 */ 3783 L_3100E4BE: 3784 eax = MEM32(ebp + 0x8); /* 0x3100E4BE: mov eax, dword ptr [ebp + 8] */ 3785 edi = POP32_VAL(esp); /* 0x3100E4C1: pop edi */ 3786 esi = POP32_VAL(esp); /* 0x3100E4C2: pop esi */ 3787 MEM32(eax) = ecx; /* 0x3100E4C3: mov dword ptr [eax], ecx */ 3788 ebx = POP32_VAL(esp); /* 0x3100E4C5: pop ebx */ 3789 ebp = POP32_VAL(esp); /* 0x3100E4C6: pop ebp */ 3790 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3100E4C7: ret 0xc */ 3791 RECOMP_REGS_OUT(); 3792 } 3793 3794 void sub_3100E4D0(void) { 3795 int _fpu_cmp = 0; 3796 uint32_t _cf = 0; 3797 int _df = 1; 3798 uint32_t _flag_k = FK_NONE; 3799 uint32_t _flag_a = 0, _flag_b = 0; 3800 uint32_t _itail_tgt = 0; 3801 RECOMP_REGS_LOCALS 3802 RECOMP_ENTER(0x3100E4D0u); 3803 3804 L_3100E4D0: 3805 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100E4D0: ret 8 */ 3806 RECOMP_REGS_OUT(); 3807 } 3808 3809 void sub_3100E4E0(void) { 3810 int _fpu_cmp = 0; 3811 uint32_t _cf = 0; 3812 int _df = 1; 3813 uint32_t _flag_k = FK_NONE; 3814 uint32_t _flag_a = 0, _flag_b = 0; 3815 uint32_t _itail_tgt = 0; 3816 RECOMP_REGS_LOCALS 3817 RECOMP_ENTER(0x3100E4E0u); 3818 3819 L_3100E4E0: 3820 PUSH32(esp, ebp); /* 0x3100E4E0: push ebp */ 3821 ebp = esp; /* 0x3100E4E1: mov ebp, esp */ 3822 PUSH32(esp, ecx); /* 0x3100E4E3: push ecx */ 3823 PUSH32(esp, ebx); /* 0x3100E4E4: push ebx */ 3824 PUSH32(esp, esi); /* 0x3100E4E5: push esi */ 3825 esi = MEM32(ebp + 0xC); /* 0x3100E4E6: mov esi, dword ptr [ebp + 0xc] */ 3826 PUSH32(esp, edi); /* 0x3100E4E9: push edi */ 3827 edi = ecx; /* 0x3100E4EA: mov edi, ecx */ 3828 ecx = ebp + 0xC; /* 0x3100E4EC: lea ecx, [ebp + 0xc] */ 3829 RECOMP_ICALL(0x3100EC20u); /* 0x3100E4EF: call 0x3100ec20 */ /* not lifted */ 3830 RECOMP_FLAGS_IN(); 3831 edx = MEM32(esi); /* 0x3100E4F4: mov edx, dword ptr [esi] */ 3832 eax = MEM32(edi + 0x8); /* 0x3100E4F6: mov eax, dword ptr [edi + 8] */ 3833 /* cmp edx, eax */ /* 0x3100E4F9: cmp edx, eax */ 3834 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3835 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3836 _flag_k = FK_CMP; 3837 MEM32(ebp + (-0x4)) = esi; /* 0x3100E4FB: mov dword ptr [ebp - 4], esi */ 3838 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E520; /* 0x3100E4FE: jne 0x3100e520 */ 3839 L_3100E500: 3840 eax = MEM32(esi + 0x8); /* 0x3100E500: mov eax, dword ptr [esi + 8] */ 3841 L_3100E503: 3842 ecx = MEM32(ebp + (-0x4)); /* 0x3100E503: mov ecx, dword ptr [ebp - 4] */ 3843 edx = MEM32(ecx + 0x4); /* 0x3100E506: mov edx, dword ptr [ecx + 4] */ 3844 MEM32(eax + 0x4) = edx; /* 0x3100E509: mov dword ptr [eax + 4], edx */ 3845 ecx = MEM32(edi + 0x4); /* 0x3100E50C: mov ecx, dword ptr [edi + 4] */ 3846 /* cmp MEM32(ecx + 0x4), esi */ /* 0x3100E50F: cmp dword ptr [ecx + 4], esi */ 3847 _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(esi); 3848 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3849 _flag_k = FK_CMP; 3850 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E5A3; /* 0x3100E512: jne 0x3100e5a3 */ 3851 L_3100E518: 3852 MEM32(ecx + 0x4) = eax; /* 0x3100E518: mov dword ptr [ecx + 4], eax */ 3853 goto L_3100E5B1; /* 0x3100E51B: jmp 0x3100e5b1 */ 3854 L_3100E520: 3855 ecx = MEM32(esi + 0x8); /* 0x3100E520: mov ecx, dword ptr [esi + 8] */ 3856 /* cmp ecx, eax */ /* 0x3100E523: cmp ecx, eax */ 3857 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3858 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3859 _flag_k = FK_CMP; 3860 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E52B; /* 0x3100E525: jne 0x3100e52b */ 3861 L_3100E527: 3862 eax = edx; /* 0x3100E527: mov eax, edx */ 3863 RECOMP_BACKEDGE(); 3864 goto L_3100E503; /* 0x3100E529: jmp 0x3100e503 */ 3865 L_3100E52B: 3866 eax = MEM32(ecx); /* 0x3100E52B: mov eax, dword ptr [ecx] */ 3867 SET_LO8(ebx, MEM8(eax + 0x3D)); /* 0x3100E52D: mov bl, byte ptr [eax + 0x3d] */ 3868 /* test LO8(ebx), LO8(ebx) */ /* 0x3100E530: test bl, bl */ 3869 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3870 _cf = 0; 3871 _flag_k = FK_NARROW(FK_TEST, 24); 3872 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100E53F; /* 0x3100E532: jne 0x3100e53f */ 3873 L_3100E534: 3874 ecx = eax; /* 0x3100E534: mov ecx, eax */ 3875 eax = MEM32(ecx); /* 0x3100E536: mov eax, dword ptr [ecx] */ 3876 SET_LO8(ebx, MEM8(eax + 0x3D)); /* 0x3100E538: mov bl, byte ptr [eax + 0x3d] */ 3877 /* test LO8(ebx), LO8(ebx) */ /* 0x3100E53B: test bl, bl */ 3878 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3879 _cf = 0; 3880 _flag_k = FK_NARROW(FK_TEST, 24); 3881 RECOMP_BACKEDGE(); 3882 if (TEST_Z(_flag_a, _flag_b)) goto L_3100E534; /* 0x3100E53D: je 0x3100e534 */ 3883 L_3100E53F: 3884 /* cmp ecx, esi */ /* 0x3100E53F: cmp ecx, esi */ 3885 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 3886 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3887 _flag_k = FK_CMP; 3888 eax = MEM32(ecx + 0x8); /* 0x3100E541: mov eax, dword ptr [ecx + 8] */ 3889 MEM32(ebp + (-0x4)) = ecx; /* 0x3100E544: mov dword ptr [ebp - 4], ecx */ 3890 RECOMP_BACKEDGE(); 3891 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E503; /* 0x3100E547: je 0x3100e503 */ 3892 L_3100E549: 3893 MEM32(edx + 0x4) = ecx; /* 0x3100E549: mov dword ptr [edx + 4], ecx */ 3894 edx = MEM32(esi); /* 0x3100E54C: mov edx, dword ptr [esi] */ 3895 MEM32(ecx) = edx; /* 0x3100E54E: mov dword ptr [ecx], edx */ 3896 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E550: cmp ecx, dword ptr [esi + 8] */ 3897 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3898 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3899 _flag_k = FK_CMP; 3900 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E55A; /* 0x3100E553: jne 0x3100e55a */ 3901 L_3100E555: 3902 MEM32(eax + 0x4) = ecx; /* 0x3100E555: mov dword ptr [eax + 4], ecx */ 3903 goto L_3100E571; /* 0x3100E558: jmp 0x3100e571 */ 3904 L_3100E55A: 3905 edx = MEM32(ecx + 0x4); /* 0x3100E55A: mov edx, dword ptr [ecx + 4] */ 3906 MEM32(eax + 0x4) = edx; /* 0x3100E55D: mov dword ptr [eax + 4], edx */ 3907 edx = MEM32(ecx + 0x4); /* 0x3100E560: mov edx, dword ptr [ecx + 4] */ 3908 MEM32(edx) = eax; /* 0x3100E563: mov dword ptr [edx], eax */ 3909 edx = MEM32(esi + 0x8); /* 0x3100E565: mov edx, dword ptr [esi + 8] */ 3910 MEM32(ecx + 0x8) = edx; /* 0x3100E568: mov dword ptr [ecx + 8], edx */ 3911 edx = MEM32(esi + 0x8); /* 0x3100E56B: mov edx, dword ptr [esi + 8] */ 3912 MEM32(edx + 0x4) = ecx; /* 0x3100E56E: mov dword ptr [edx + 4], ecx */ 3913 L_3100E571: 3914 edx = MEM32(edi + 0x4); /* 0x3100E571: mov edx, dword ptr [edi + 4] */ 3915 /* cmp MEM32(edx + 0x4), esi */ /* 0x3100E574: cmp dword ptr [edx + 4], esi */ 3916 _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(esi); 3917 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3918 _flag_k = FK_CMP; 3919 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E57E; /* 0x3100E577: jne 0x3100e57e */ 3920 L_3100E579: 3921 MEM32(edx + 0x4) = ecx; /* 0x3100E579: mov dword ptr [edx + 4], ecx */ 3922 goto L_3100E58C; /* 0x3100E57C: jmp 0x3100e58c */ 3923 L_3100E57E: 3924 edx = MEM32(esi + 0x4); /* 0x3100E57E: mov edx, dword ptr [esi + 4] */ 3925 /* cmp MEM32(edx), esi */ /* 0x3100E581: cmp dword ptr [edx], esi */ 3926 _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(esi); 3927 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3928 _flag_k = FK_CMP; 3929 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E589; /* 0x3100E583: jne 0x3100e589 */ 3930 L_3100E585: 3931 MEM32(edx) = ecx; /* 0x3100E585: mov dword ptr [edx], ecx */ 3932 goto L_3100E58C; /* 0x3100E587: jmp 0x3100e58c */ 3933 L_3100E589: 3934 MEM32(edx + 0x8) = ecx; /* 0x3100E589: mov dword ptr [edx + 8], ecx */ 3935 L_3100E58C: 3936 edx = MEM32(esi + 0x4); /* 0x3100E58C: mov edx, dword ptr [esi + 4] */ 3937 MEM32(ecx + 0x4) = edx; /* 0x3100E58F: mov dword ptr [ecx + 4], edx */ 3938 SET_LO8(ebx, MEM8(esi + 0x3C)); /* 0x3100E592: mov bl, byte ptr [esi + 0x3c] */ 3939 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x3100E595: mov dl, byte ptr [ecx + 0x3c] */ 3940 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E598: mov byte ptr [ecx + 0x3c], bl */ 3941 MEM8(esi + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3100E59B: mov byte ptr [esi + 0x3c], dl */ 3942 MEM32(ebp + (-0x4)) = esi; /* 0x3100E59E: mov dword ptr [ebp - 4], esi */ 3943 goto L_3100E608; /* 0x3100E5A1: jmp 0x3100e608 */ 3944 L_3100E5A3: 3945 ecx = MEM32(esi + 0x4); /* 0x3100E5A3: mov ecx, dword ptr [esi + 4] */ 3946 /* cmp MEM32(ecx), esi */ /* 0x3100E5A6: cmp dword ptr [ecx], esi */ 3947 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(esi); 3948 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3949 _flag_k = FK_CMP; 3950 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E5AE; /* 0x3100E5A8: jne 0x3100e5ae */ 3951 L_3100E5AA: 3952 MEM32(ecx) = eax; /* 0x3100E5AA: mov dword ptr [ecx], eax */ 3953 goto L_3100E5B1; /* 0x3100E5AC: jmp 0x3100e5b1 */ 3954 L_3100E5AE: 3955 MEM32(ecx + 0x8) = eax; /* 0x3100E5AE: mov dword ptr [ecx + 8], eax */ 3956 L_3100E5B1: 3957 ebx = MEM32(edi + 0x4); /* 0x3100E5B1: mov ebx, dword ptr [edi + 4] */ 3958 /* cmp MEM32(ebx), esi */ /* 0x3100E5B4: cmp dword ptr [ebx], esi */ 3959 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi); 3960 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3961 _flag_k = FK_CMP; 3962 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E5DB; /* 0x3100E5B6: jne 0x3100e5db */ 3963 L_3100E5B8: 3964 ecx = MEM32(esi + 0x8); /* 0x3100E5B8: mov ecx, dword ptr [esi + 8] */ 3965 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3100E5BB: cmp ecx, dword ptr [edi + 8] */ 3966 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3967 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3968 _flag_k = FK_CMP; 3969 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E5C5; /* 0x3100E5BE: jne 0x3100e5c5 */ 3970 L_3100E5C0: 3971 edx = MEM32(esi + 0x4); /* 0x3100E5C0: mov edx, dword ptr [esi + 4] */ 3972 goto L_3100E5D9; /* 0x3100E5C3: jmp 0x3100e5d9 */ 3973 L_3100E5C5: 3974 ecx = MEM32(eax); /* 0x3100E5C5: mov ecx, dword ptr [eax] */ 3975 /* cmp MEM8(ecx + 0x3D), 0 */ /* 0x3100E5C7: cmp byte ptr [ecx + 0x3d], 0 */ 3976 _flag_a = (uint32_t)(MEM8(ecx + 0x3D)) << 24; _flag_b = (uint32_t)(0) << 24; 3977 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3978 _flag_k = FK_NARROW(FK_CMP, 24); 3979 edx = eax; /* 0x3100E5CB: mov edx, eax */ 3980 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E5D9; /* 0x3100E5CD: jne 0x3100e5d9 */ 3981 L_3100E5CF: 3982 edx = ecx; /* 0x3100E5CF: mov edx, ecx */ 3983 ecx = MEM32(edx); /* 0x3100E5D1: mov ecx, dword ptr [edx] */ 3984 /* cmp MEM8(ecx + 0x3D), 0 */ /* 0x3100E5D3: cmp byte ptr [ecx + 0x3d], 0 */ 3985 _flag_a = (uint32_t)(MEM8(ecx + 0x3D)) << 24; _flag_b = (uint32_t)(0) << 24; 3986 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3987 _flag_k = FK_NARROW(FK_CMP, 24); 3988 RECOMP_BACKEDGE(); 3989 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E5CF; /* 0x3100E5D7: je 0x3100e5cf */ 3990 L_3100E5D9: 3991 MEM32(ebx) = edx; /* 0x3100E5D9: mov dword ptr [ebx], edx */ 3992 L_3100E5DB: 3993 ebx = MEM32(edi + 0x4); /* 0x3100E5DB: mov ebx, dword ptr [edi + 4] */ 3994 /* cmp MEM32(ebx + 0x8), esi */ /* 0x3100E5DE: cmp dword ptr [ebx + 8], esi */ 3995 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 3996 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3997 _flag_k = FK_CMP; 3998 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E608; /* 0x3100E5E1: jne 0x3100e608 */ 3999 L_3100E5E3: 4000 ecx = MEM32(esi); /* 0x3100E5E3: mov ecx, dword ptr [esi] */ 4001 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3100E5E5: cmp ecx, dword ptr [edi + 8] */ 4002 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4003 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4004 _flag_k = FK_CMP; 4005 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E5EF; /* 0x3100E5E8: jne 0x3100e5ef */ 4006 L_3100E5EA: 4007 edx = MEM32(esi + 0x4); /* 0x3100E5EA: mov edx, dword ptr [esi + 4] */ 4008 goto L_3100E605; /* 0x3100E5ED: jmp 0x3100e605 */ 4009 L_3100E5EF: 4010 ecx = MEM32(eax + 0x8); /* 0x3100E5EF: mov ecx, dword ptr [eax + 8] */ 4011 /* cmp MEM8(ecx + 0x3D), 0 */ /* 0x3100E5F2: cmp byte ptr [ecx + 0x3d], 0 */ 4012 _flag_a = (uint32_t)(MEM8(ecx + 0x3D)) << 24; _flag_b = (uint32_t)(0) << 24; 4013 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4014 _flag_k = FK_NARROW(FK_CMP, 24); 4015 edx = eax; /* 0x3100E5F6: mov edx, eax */ 4016 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E605; /* 0x3100E5F8: jne 0x3100e605 */ 4017 L_3100E5FA: 4018 edx = ecx; /* 0x3100E5FA: mov edx, ecx */ 4019 ecx = MEM32(edx + 0x8); /* 0x3100E5FC: mov ecx, dword ptr [edx + 8] */ 4020 /* cmp MEM8(ecx + 0x3D), 0 */ /* 0x3100E5FF: cmp byte ptr [ecx + 0x3d], 0 */ 4021 _flag_a = (uint32_t)(MEM8(ecx + 0x3D)) << 24; _flag_b = (uint32_t)(0) << 24; 4022 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4023 _flag_k = FK_NARROW(FK_CMP, 24); 4024 RECOMP_BACKEDGE(); 4025 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E5FA; /* 0x3100E603: je 0x3100e5fa */ 4026 L_3100E605: 4027 MEM32(ebx + 0x8) = edx; /* 0x3100E605: mov dword ptr [ebx + 8], edx */ 4028 L_3100E608: 4029 esi = MEM32(ebp + (-0x4)); /* 0x3100E608: mov esi, dword ptr [ebp - 4] */ 4030 SET_LO8(ecx, MEM8(esi + 0x3C)); /* 0x3100E60B: mov cl, byte ptr [esi + 0x3c] */ 4031 SET_LO8(ebx, 1); /* 0x3100E60E: mov bl, 1 */ 4032 /* cmp LO8(ecx), LO8(ebx) */ /* 0x3100E610: cmp cl, bl */ 4033 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4034 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4035 _flag_k = FK_NARROW(FK_CMP, 24); 4036 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E878; /* 0x3100E612: jne 0x3100e878 */ 4037 L_3100E618: 4038 ecx = MEM32(edi + 0x4); /* 0x3100E618: mov ecx, dword ptr [edi + 4] */ 4039 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3100E61B: cmp eax, dword ptr [ecx + 4] */ 4040 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 4041 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4042 _flag_k = FK_CMP; 4043 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E872; /* 0x3100E61E: je 0x3100e872 */ 4044 L_3100E624: 4045 /* cmp MEM8(eax + 0x3C), LO8(ebx) */ /* 0x3100E624: cmp byte ptr [eax + 0x3c], bl */ 4046 _flag_a = (uint32_t)(MEM8(eax + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4047 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4048 _flag_k = FK_NARROW(FK_CMP, 24); 4049 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E872; /* 0x3100E627: jne 0x3100e872 */ 4050 L_3100E62D: 4051 edx = MEM32(eax + 0x4); /* 0x3100E62D: mov edx, dword ptr [eax + 4] */ 4052 ecx = MEM32(edx); /* 0x3100E630: mov ecx, dword ptr [edx] */ 4053 /* cmp eax, ecx */ /* 0x3100E632: cmp eax, ecx */ 4054 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4055 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4056 _flag_k = FK_CMP; 4057 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6A4; /* 0x3100E634: jne 0x3100e6a4 */ 4058 L_3100E636: 4059 ecx = MEM32(edx + 0x8); /* 0x3100E636: mov ecx, dword ptr [edx + 8] */ 4060 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x3100E639: mov dl, byte ptr [ecx + 0x3c] */ 4061 /* test LO8(edx), LO8(edx) */ /* 0x3100E63C: test dl, dl */ 4062 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4063 _cf = 0; 4064 _flag_k = FK_NARROW(FK_TEST, 24); 4065 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100E68B; /* 0x3100E63E: jne 0x3100e68b */ 4066 L_3100E640: 4067 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E640: mov byte ptr [ecx + 0x3c], bl */ 4068 edx = MEM32(eax + 0x4); /* 0x3100E643: mov edx, dword ptr [eax + 4] */ 4069 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x3100E646: mov byte ptr [edx + 0x3c], 0 */ 4070 ecx = MEM32(eax + 0x4); /* 0x3100E64A: mov ecx, dword ptr [eax + 4] */ 4071 edx = MEM32(ecx + 0x8); /* 0x3100E64D: mov edx, dword ptr [ecx + 8] */ 4072 esi = MEM32(edx); /* 0x3100E650: mov esi, dword ptr [edx] */ 4073 MEM32(ecx + 0x8) = esi; /* 0x3100E652: mov dword ptr [ecx + 8], esi */ 4074 esi = MEM32(edx); /* 0x3100E655: mov esi, dword ptr [edx] */ 4075 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E657: cmp esi, dword ptr [edi + 8] */ 4076 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4077 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4078 _flag_k = FK_CMP; 4079 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E65F; /* 0x3100E65A: je 0x3100e65f */ 4080 L_3100E65C: 4081 MEM32(esi + 0x4) = ecx; /* 0x3100E65C: mov dword ptr [esi + 4], ecx */ 4082 L_3100E65F: 4083 esi = MEM32(ecx + 0x4); /* 0x3100E65F: mov esi, dword ptr [ecx + 4] */ 4084 MEM32(edx + 0x4) = esi; /* 0x3100E662: mov dword ptr [edx + 4], esi */ 4085 esi = MEM32(edi + 0x4); /* 0x3100E665: mov esi, dword ptr [edi + 4] */ 4086 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E668: cmp ecx, dword ptr [esi + 4] */ 4087 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4088 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4089 _flag_k = FK_CMP; 4090 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E672; /* 0x3100E66B: jne 0x3100e672 */ 4091 L_3100E66D: 4092 MEM32(esi + 0x4) = edx; /* 0x3100E66D: mov dword ptr [esi + 4], edx */ 4093 goto L_3100E680; /* 0x3100E670: jmp 0x3100e680 */ 4094 L_3100E672: 4095 esi = MEM32(ecx + 0x4); /* 0x3100E672: mov esi, dword ptr [ecx + 4] */ 4096 /* cmp ecx, MEM32(esi) */ /* 0x3100E675: cmp ecx, dword ptr [esi] */ 4097 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 4098 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4099 _flag_k = FK_CMP; 4100 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E67D; /* 0x3100E677: jne 0x3100e67d */ 4101 L_3100E679: 4102 MEM32(esi) = edx; /* 0x3100E679: mov dword ptr [esi], edx */ 4103 goto L_3100E680; /* 0x3100E67B: jmp 0x3100e680 */ 4104 L_3100E67D: 4105 MEM32(esi + 0x8) = edx; /* 0x3100E67D: mov dword ptr [esi + 8], edx */ 4106 L_3100E680: 4107 MEM32(edx) = ecx; /* 0x3100E680: mov dword ptr [edx], ecx */ 4108 MEM32(ecx + 0x4) = edx; /* 0x3100E682: mov dword ptr [ecx + 4], edx */ 4109 ecx = MEM32(eax + 0x4); /* 0x3100E685: mov ecx, dword ptr [eax + 4] */ 4110 ecx = MEM32(ecx + 0x8); /* 0x3100E688: mov ecx, dword ptr [ecx + 8] */ 4111 L_3100E68B: 4112 edx = MEM32(ecx); /* 0x3100E68B: mov edx, dword ptr [ecx] */ 4113 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E68D: cmp byte ptr [edx + 0x3c], bl */ 4114 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4115 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4116 _flag_k = FK_NARROW(FK_CMP, 24); 4117 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E726; /* 0x3100E690: jne 0x3100e726 */ 4118 L_3100E696: 4119 edx = MEM32(ecx + 0x8); /* 0x3100E696: mov edx, dword ptr [ecx + 8] */ 4120 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E699: cmp byte ptr [edx + 0x3c], bl */ 4121 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4122 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4123 _flag_k = FK_NARROW(FK_CMP, 24); 4124 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E726; /* 0x3100E69C: jne 0x3100e726 */ 4125 L_3100E6A2: 4126 goto L_3100E70E; /* 0x3100E6A2: jmp 0x3100e70e */ 4127 L_3100E6A4: 4128 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x3100E6A4: mov dl, byte ptr [ecx + 0x3c] */ 4129 /* test LO8(edx), LO8(edx) */ /* 0x3100E6A7: test dl, dl */ 4130 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4131 _cf = 0; 4132 _flag_k = FK_NARROW(FK_TEST, 24); 4133 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100E6F7; /* 0x3100E6A9: jne 0x3100e6f7 */ 4134 L_3100E6AB: 4135 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E6AB: mov byte ptr [ecx + 0x3c], bl */ 4136 ecx = MEM32(eax + 0x4); /* 0x3100E6AE: mov ecx, dword ptr [eax + 4] */ 4137 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E6B1: mov byte ptr [ecx + 0x3c], 0 */ 4138 ecx = MEM32(eax + 0x4); /* 0x3100E6B5: mov ecx, dword ptr [eax + 4] */ 4139 edx = MEM32(ecx); /* 0x3100E6B8: mov edx, dword ptr [ecx] */ 4140 esi = MEM32(edx + 0x8); /* 0x3100E6BA: mov esi, dword ptr [edx + 8] */ 4141 MEM32(ecx) = esi; /* 0x3100E6BD: mov dword ptr [ecx], esi */ 4142 esi = MEM32(edx + 0x8); /* 0x3100E6BF: mov esi, dword ptr [edx + 8] */ 4143 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E6C2: cmp esi, dword ptr [edi + 8] */ 4144 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4145 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4146 _flag_k = FK_CMP; 4147 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E6CA; /* 0x3100E6C5: je 0x3100e6ca */ 4148 L_3100E6C7: 4149 MEM32(esi + 0x4) = ecx; /* 0x3100E6C7: mov dword ptr [esi + 4], ecx */ 4150 L_3100E6CA: 4151 esi = MEM32(ecx + 0x4); /* 0x3100E6CA: mov esi, dword ptr [ecx + 4] */ 4152 MEM32(edx + 0x4) = esi; /* 0x3100E6CD: mov dword ptr [edx + 4], esi */ 4153 esi = MEM32(edi + 0x4); /* 0x3100E6D0: mov esi, dword ptr [edi + 4] */ 4154 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E6D3: cmp ecx, dword ptr [esi + 4] */ 4155 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4156 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4157 _flag_k = FK_CMP; 4158 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6DD; /* 0x3100E6D6: jne 0x3100e6dd */ 4159 L_3100E6D8: 4160 MEM32(esi + 0x4) = edx; /* 0x3100E6D8: mov dword ptr [esi + 4], edx */ 4161 goto L_3100E6EC; /* 0x3100E6DB: jmp 0x3100e6ec */ 4162 L_3100E6DD: 4163 esi = MEM32(ecx + 0x4); /* 0x3100E6DD: mov esi, dword ptr [ecx + 4] */ 4164 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E6E0: cmp ecx, dword ptr [esi + 8] */ 4165 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4166 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4167 _flag_k = FK_CMP; 4168 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6EA; /* 0x3100E6E3: jne 0x3100e6ea */ 4169 L_3100E6E5: 4170 MEM32(esi + 0x8) = edx; /* 0x3100E6E5: mov dword ptr [esi + 8], edx */ 4171 goto L_3100E6EC; /* 0x3100E6E8: jmp 0x3100e6ec */ 4172 L_3100E6EA: 4173 MEM32(esi) = edx; /* 0x3100E6EA: mov dword ptr [esi], edx */ 4174 L_3100E6EC: 4175 MEM32(edx + 0x8) = ecx; /* 0x3100E6EC: mov dword ptr [edx + 8], ecx */ 4176 MEM32(ecx + 0x4) = edx; /* 0x3100E6EF: mov dword ptr [ecx + 4], edx */ 4177 edx = MEM32(eax + 0x4); /* 0x3100E6F2: mov edx, dword ptr [eax + 4] */ 4178 ecx = MEM32(edx); /* 0x3100E6F5: mov ecx, dword ptr [edx] */ 4179 L_3100E6F7: 4180 edx = MEM32(ecx + 0x8); /* 0x3100E6F7: mov edx, dword ptr [ecx + 8] */ 4181 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E6FA: cmp byte ptr [edx + 0x3c], bl */ 4182 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4183 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4184 _flag_k = FK_NARROW(FK_CMP, 24); 4185 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7D3; /* 0x3100E6FD: jne 0x3100e7d3 */ 4186 L_3100E703: 4187 edx = MEM32(ecx); /* 0x3100E703: mov edx, dword ptr [ecx] */ 4188 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E705: cmp byte ptr [edx + 0x3c], bl */ 4189 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4190 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4191 _flag_k = FK_NARROW(FK_CMP, 24); 4192 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7D3; /* 0x3100E708: jne 0x3100e7d3 */ 4193 L_3100E70E: 4194 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E70E: mov byte ptr [ecx + 0x3c], 0 */ 4195 ecx = MEM32(edi + 0x4); /* 0x3100E712: mov ecx, dword ptr [edi + 4] */ 4196 eax = MEM32(eax + 0x4); /* 0x3100E715: mov eax, dword ptr [eax + 4] */ 4197 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3100E718: cmp eax, dword ptr [ecx + 4] */ 4198 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 4199 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4200 _flag_k = FK_CMP; 4201 RECOMP_BACKEDGE(); 4202 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E624; /* 0x3100E71B: jne 0x3100e624 */ 4203 L_3100E721: 4204 goto L_3100E872; /* 0x3100E721: jmp 0x3100e872 */ 4205 L_3100E726: 4206 edx = MEM32(ecx + 0x8); /* 0x3100E726: mov edx, dword ptr [ecx + 8] */ 4207 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E729: cmp byte ptr [edx + 0x3c], bl */ 4208 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4209 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4210 _flag_k = FK_NARROW(FK_CMP, 24); 4211 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E777; /* 0x3100E72C: jne 0x3100e777 */ 4212 L_3100E72E: 4213 edx = MEM32(ecx); /* 0x3100E72E: mov edx, dword ptr [ecx] */ 4214 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E730: mov byte ptr [edx + 0x3c], bl */ 4215 edx = MEM32(ecx); /* 0x3100E733: mov edx, dword ptr [ecx] */ 4216 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E735: mov byte ptr [ecx + 0x3c], 0 */ 4217 esi = MEM32(edx + 0x8); /* 0x3100E739: mov esi, dword ptr [edx + 8] */ 4218 MEM32(ecx) = esi; /* 0x3100E73C: mov dword ptr [ecx], esi */ 4219 esi = MEM32(edx + 0x8); /* 0x3100E73E: mov esi, dword ptr [edx + 8] */ 4220 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E741: cmp esi, dword ptr [edi + 8] */ 4221 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4222 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4223 _flag_k = FK_CMP; 4224 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E749; /* 0x3100E744: je 0x3100e749 */ 4225 L_3100E746: 4226 MEM32(esi + 0x4) = ecx; /* 0x3100E746: mov dword ptr [esi + 4], ecx */ 4227 L_3100E749: 4228 esi = MEM32(ecx + 0x4); /* 0x3100E749: mov esi, dword ptr [ecx + 4] */ 4229 MEM32(edx + 0x4) = esi; /* 0x3100E74C: mov dword ptr [edx + 4], esi */ 4230 esi = MEM32(edi + 0x4); /* 0x3100E74F: mov esi, dword ptr [edi + 4] */ 4231 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E752: cmp ecx, dword ptr [esi + 4] */ 4232 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4233 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4234 _flag_k = FK_CMP; 4235 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E75C; /* 0x3100E755: jne 0x3100e75c */ 4236 L_3100E757: 4237 MEM32(esi + 0x4) = edx; /* 0x3100E757: mov dword ptr [esi + 4], edx */ 4238 goto L_3100E76B; /* 0x3100E75A: jmp 0x3100e76b */ 4239 L_3100E75C: 4240 esi = MEM32(ecx + 0x4); /* 0x3100E75C: mov esi, dword ptr [ecx + 4] */ 4241 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E75F: cmp ecx, dword ptr [esi + 8] */ 4242 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4243 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4244 _flag_k = FK_CMP; 4245 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E769; /* 0x3100E762: jne 0x3100e769 */ 4246 L_3100E764: 4247 MEM32(esi + 0x8) = edx; /* 0x3100E764: mov dword ptr [esi + 8], edx */ 4248 goto L_3100E76B; /* 0x3100E767: jmp 0x3100e76b */ 4249 L_3100E769: 4250 MEM32(esi) = edx; /* 0x3100E769: mov dword ptr [esi], edx */ 4251 L_3100E76B: 4252 MEM32(edx + 0x8) = ecx; /* 0x3100E76B: mov dword ptr [edx + 8], ecx */ 4253 MEM32(ecx + 0x4) = edx; /* 0x3100E76E: mov dword ptr [ecx + 4], edx */ 4254 ecx = MEM32(eax + 0x4); /* 0x3100E771: mov ecx, dword ptr [eax + 4] */ 4255 ecx = MEM32(ecx + 0x8); /* 0x3100E774: mov ecx, dword ptr [ecx + 8] */ 4256 L_3100E777: 4257 edx = MEM32(eax + 0x4); /* 0x3100E777: mov edx, dword ptr [eax + 4] */ 4258 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3100E77A: mov dl, byte ptr [edx + 0x3c] */ 4259 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3100E77D: mov byte ptr [ecx + 0x3c], dl */ 4260 edx = MEM32(eax + 0x4); /* 0x3100E780: mov edx, dword ptr [eax + 4] */ 4261 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E783: mov byte ptr [edx + 0x3c], bl */ 4262 ecx = MEM32(ecx + 0x8); /* 0x3100E786: mov ecx, dword ptr [ecx + 8] */ 4263 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E789: mov byte ptr [ecx + 0x3c], bl */ 4264 ecx = MEM32(eax + 0x4); /* 0x3100E78C: mov ecx, dword ptr [eax + 4] */ 4265 edx = MEM32(ecx + 0x8); /* 0x3100E78F: mov edx, dword ptr [ecx + 8] */ 4266 esi = MEM32(edx); /* 0x3100E792: mov esi, dword ptr [edx] */ 4267 MEM32(ecx + 0x8) = esi; /* 0x3100E794: mov dword ptr [ecx + 8], esi */ 4268 esi = MEM32(edx); /* 0x3100E797: mov esi, dword ptr [edx] */ 4269 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E799: cmp esi, dword ptr [edi + 8] */ 4270 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4271 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4272 _flag_k = FK_CMP; 4273 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E7A1; /* 0x3100E79C: je 0x3100e7a1 */ 4274 L_3100E79E: 4275 MEM32(esi + 0x4) = ecx; /* 0x3100E79E: mov dword ptr [esi + 4], ecx */ 4276 L_3100E7A1: 4277 esi = MEM32(ecx + 0x4); /* 0x3100E7A1: mov esi, dword ptr [ecx + 4] */ 4278 MEM32(edx + 0x4) = esi; /* 0x3100E7A4: mov dword ptr [edx + 4], esi */ 4279 esi = MEM32(edi + 0x4); /* 0x3100E7A7: mov esi, dword ptr [edi + 4] */ 4280 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E7AA: cmp ecx, dword ptr [esi + 4] */ 4281 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4282 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4283 _flag_k = FK_CMP; 4284 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7B9; /* 0x3100E7AD: jne 0x3100e7b9 */ 4285 L_3100E7AF: 4286 MEM32(esi + 0x4) = edx; /* 0x3100E7AF: mov dword ptr [esi + 4], edx */ 4287 MEM32(edx) = ecx; /* 0x3100E7B2: mov dword ptr [edx], ecx */ 4288 goto L_3100E86F; /* 0x3100E7B4: jmp 0x3100e86f */ 4289 L_3100E7B9: 4290 esi = MEM32(ecx + 0x4); /* 0x3100E7B9: mov esi, dword ptr [ecx + 4] */ 4291 /* cmp ecx, MEM32(esi) */ /* 0x3100E7BC: cmp ecx, dword ptr [esi] */ 4292 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 4293 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4294 _flag_k = FK_CMP; 4295 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7C9; /* 0x3100E7BE: jne 0x3100e7c9 */ 4296 L_3100E7C0: 4297 MEM32(esi) = edx; /* 0x3100E7C0: mov dword ptr [esi], edx */ 4298 MEM32(edx) = ecx; /* 0x3100E7C2: mov dword ptr [edx], ecx */ 4299 goto L_3100E86F; /* 0x3100E7C4: jmp 0x3100e86f */ 4300 L_3100E7C9: 4301 MEM32(esi + 0x8) = edx; /* 0x3100E7C9: mov dword ptr [esi + 8], edx */ 4302 MEM32(edx) = ecx; /* 0x3100E7CC: mov dword ptr [edx], ecx */ 4303 goto L_3100E86F; /* 0x3100E7CE: jmp 0x3100e86f */ 4304 L_3100E7D3: 4305 edx = MEM32(ecx); /* 0x3100E7D3: mov edx, dword ptr [ecx] */ 4306 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E7D5: cmp byte ptr [edx + 0x3c], bl */ 4307 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4308 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4309 _flag_k = FK_NARROW(FK_CMP, 24); 4310 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E821; /* 0x3100E7D8: jne 0x3100e821 */ 4311 L_3100E7DA: 4312 edx = MEM32(ecx + 0x8); /* 0x3100E7DA: mov edx, dword ptr [ecx + 8] */ 4313 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E7DD: mov byte ptr [edx + 0x3c], bl */ 4314 edx = MEM32(ecx + 0x8); /* 0x3100E7E0: mov edx, dword ptr [ecx + 8] */ 4315 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E7E3: mov byte ptr [ecx + 0x3c], 0 */ 4316 esi = MEM32(edx); /* 0x3100E7E7: mov esi, dword ptr [edx] */ 4317 MEM32(ecx + 0x8) = esi; /* 0x3100E7E9: mov dword ptr [ecx + 8], esi */ 4318 esi = MEM32(edx); /* 0x3100E7EC: mov esi, dword ptr [edx] */ 4319 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E7EE: cmp esi, dword ptr [edi + 8] */ 4320 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4321 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4322 _flag_k = FK_CMP; 4323 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E7F6; /* 0x3100E7F1: je 0x3100e7f6 */ 4324 L_3100E7F3: 4325 MEM32(esi + 0x4) = ecx; /* 0x3100E7F3: mov dword ptr [esi + 4], ecx */ 4326 L_3100E7F6: 4327 esi = MEM32(ecx + 0x4); /* 0x3100E7F6: mov esi, dword ptr [ecx + 4] */ 4328 MEM32(edx + 0x4) = esi; /* 0x3100E7F9: mov dword ptr [edx + 4], esi */ 4329 esi = MEM32(edi + 0x4); /* 0x3100E7FC: mov esi, dword ptr [edi + 4] */ 4330 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E7FF: cmp ecx, dword ptr [esi + 4] */ 4331 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4332 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4333 _flag_k = FK_CMP; 4334 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E809; /* 0x3100E802: jne 0x3100e809 */ 4335 L_3100E804: 4336 MEM32(esi + 0x4) = edx; /* 0x3100E804: mov dword ptr [esi + 4], edx */ 4337 goto L_3100E817; /* 0x3100E807: jmp 0x3100e817 */ 4338 L_3100E809: 4339 esi = MEM32(ecx + 0x4); /* 0x3100E809: mov esi, dword ptr [ecx + 4] */ 4340 /* cmp ecx, MEM32(esi) */ /* 0x3100E80C: cmp ecx, dword ptr [esi] */ 4341 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 4342 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4343 _flag_k = FK_CMP; 4344 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E814; /* 0x3100E80E: jne 0x3100e814 */ 4345 L_3100E810: 4346 MEM32(esi) = edx; /* 0x3100E810: mov dword ptr [esi], edx */ 4347 goto L_3100E817; /* 0x3100E812: jmp 0x3100e817 */ 4348 L_3100E814: 4349 MEM32(esi + 0x8) = edx; /* 0x3100E814: mov dword ptr [esi + 8], edx */ 4350 L_3100E817: 4351 MEM32(edx) = ecx; /* 0x3100E817: mov dword ptr [edx], ecx */ 4352 MEM32(ecx + 0x4) = edx; /* 0x3100E819: mov dword ptr [ecx + 4], edx */ 4353 ecx = MEM32(eax + 0x4); /* 0x3100E81C: mov ecx, dword ptr [eax + 4] */ 4354 ecx = MEM32(ecx); /* 0x3100E81F: mov ecx, dword ptr [ecx] */ 4355 L_3100E821: 4356 edx = MEM32(eax + 0x4); /* 0x3100E821: mov edx, dword ptr [eax + 4] */ 4357 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3100E824: mov dl, byte ptr [edx + 0x3c] */ 4358 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3100E827: mov byte ptr [ecx + 0x3c], dl */ 4359 edx = MEM32(eax + 0x4); /* 0x3100E82A: mov edx, dword ptr [eax + 4] */ 4360 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E82D: mov byte ptr [edx + 0x3c], bl */ 4361 ecx = MEM32(ecx); /* 0x3100E830: mov ecx, dword ptr [ecx] */ 4362 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E832: mov byte ptr [ecx + 0x3c], bl */ 4363 ecx = MEM32(eax + 0x4); /* 0x3100E835: mov ecx, dword ptr [eax + 4] */ 4364 edx = MEM32(ecx); /* 0x3100E838: mov edx, dword ptr [ecx] */ 4365 esi = MEM32(edx + 0x8); /* 0x3100E83A: mov esi, dword ptr [edx + 8] */ 4366 MEM32(ecx) = esi; /* 0x3100E83D: mov dword ptr [ecx], esi */ 4367 esi = MEM32(edx + 0x8); /* 0x3100E83F: mov esi, dword ptr [edx + 8] */ 4368 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E842: cmp esi, dword ptr [edi + 8] */ 4369 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4370 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4371 _flag_k = FK_CMP; 4372 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E84A; /* 0x3100E845: je 0x3100e84a */ 4373 L_3100E847: 4374 MEM32(esi + 0x4) = ecx; /* 0x3100E847: mov dword ptr [esi + 4], ecx */ 4375 L_3100E84A: 4376 esi = MEM32(ecx + 0x4); /* 0x3100E84A: mov esi, dword ptr [ecx + 4] */ 4377 MEM32(edx + 0x4) = esi; /* 0x3100E84D: mov dword ptr [edx + 4], esi */ 4378 esi = MEM32(edi + 0x4); /* 0x3100E850: mov esi, dword ptr [edi + 4] */ 4379 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E853: cmp ecx, dword ptr [esi + 4] */ 4380 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4381 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4382 _flag_k = FK_CMP; 4383 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E85D; /* 0x3100E856: jne 0x3100e85d */ 4384 L_3100E858: 4385 MEM32(esi + 0x4) = edx; /* 0x3100E858: mov dword ptr [esi + 4], edx */ 4386 goto L_3100E86C; /* 0x3100E85B: jmp 0x3100e86c */ 4387 L_3100E85D: 4388 esi = MEM32(ecx + 0x4); /* 0x3100E85D: mov esi, dword ptr [ecx + 4] */ 4389 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E860: cmp ecx, dword ptr [esi + 8] */ 4390 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4391 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4392 _flag_k = FK_CMP; 4393 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E86A; /* 0x3100E863: jne 0x3100e86a */ 4394 L_3100E865: 4395 MEM32(esi + 0x8) = edx; /* 0x3100E865: mov dword ptr [esi + 8], edx */ 4396 goto L_3100E86C; /* 0x3100E868: jmp 0x3100e86c */ 4397 L_3100E86A: 4398 MEM32(esi) = edx; /* 0x3100E86A: mov dword ptr [esi], edx */ 4399 L_3100E86C: 4400 MEM32(edx + 0x8) = ecx; /* 0x3100E86C: mov dword ptr [edx + 8], ecx */ 4401 L_3100E86F: 4402 MEM32(ecx + 0x4) = edx; /* 0x3100E86F: mov dword ptr [ecx + 4], edx */ 4403 L_3100E872: 4404 esi = MEM32(ebp + (-0x4)); /* 0x3100E872: mov esi, dword ptr [ebp - 4] */ 4405 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E875: mov byte ptr [eax + 0x3c], bl */ 4406 L_3100E878: 4407 ecx = esi + 0xC; /* 0x3100E878: lea ecx, [esi + 0xc] */ 4408 RECOMP_ICALL(0x3100EE80u); /* 0x3100E87B: call 0x3100ee80 */ /* not lifted */ 4409 RECOMP_FLAGS_IN(); 4410 PUSH32(esp, esi); /* 0x3100E880: push esi */ 4411 RECOMP_ICALL(0x31046858u); /* 0x3100E881: call 0x31046858 */ /* not lifted */ 4412 RECOMP_FLAGS_IN(); 4413 eax = MEM32(edi + 0x10); /* 0x3100E886: mov eax, dword ptr [edi + 0x10] */ 4414 edx = MEM32(ebp + 0xC); /* 0x3100E889: mov edx, dword ptr [ebp + 0xc] */ 4415 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4416 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4417 esp = esp + 4; /* 0x3100E88C: add esp, 4 */ 4418 _flag_k = FK_ADD; 4419 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4420 eax = eax - 1; /* 0x3100E88F: dec eax */ 4421 _flag_k = FK_DEC; 4422 MEM32(edi + 0x10) = eax; /* 0x3100E890: mov dword ptr [edi + 0x10], eax */ 4423 eax = MEM32(ebp + 0x8); /* 0x3100E893: mov eax, dword ptr [ebp + 8] */ 4424 edi = POP32_VAL(esp); /* 0x3100E896: pop edi */ 4425 esi = POP32_VAL(esp); /* 0x3100E897: pop esi */ 4426 MEM32(eax) = edx; /* 0x3100E898: mov dword ptr [eax], edx */ 4427 ebx = POP32_VAL(esp); /* 0x3100E89A: pop ebx */ 4428 esp = ebp; /* 0x3100E89B: mov esp, ebp */ 4429 ebp = POP32_VAL(esp); /* 0x3100E89D: pop ebp */ 4430 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100E89E: ret 8 */ 4431 RECOMP_REGS_OUT(); 4432 } 4433 4434 void sub_3100E5B1(void) { 4435 int _fpu_cmp = 0; 4436 uint32_t _cf = 0; 4437 int _df = 1; 4438 uint32_t _flag_k = FK_NONE; 4439 uint32_t _flag_a = 0, _flag_b = 0; 4440 uint32_t _itail_tgt = 0; 4441 RECOMP_REGS_LOCALS 4442 RECOMP_ENTER(0x3100E5B1u); 4443 4444 L_3100E5B1: 4445 ebx = MEM32(edi + 0x4); /* 0x3100E5B1: mov ebx, dword ptr [edi + 4] */ 4446 /* cmp MEM32(ebx), esi */ /* 0x3100E5B4: cmp dword ptr [ebx], esi */ 4447 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi); 4448 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4449 _flag_k = FK_CMP; 4450 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E5DB; /* 0x3100E5B6: jne 0x3100e5db */ 4451 L_3100E5B8: 4452 ecx = MEM32(esi + 0x8); /* 0x3100E5B8: mov ecx, dword ptr [esi + 8] */ 4453 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3100E5BB: cmp ecx, dword ptr [edi + 8] */ 4454 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4455 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4456 _flag_k = FK_CMP; 4457 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E5C5; /* 0x3100E5BE: jne 0x3100e5c5 */ 4458 L_3100E5C0: 4459 edx = MEM32(esi + 0x4); /* 0x3100E5C0: mov edx, dword ptr [esi + 4] */ 4460 goto L_3100E5D9; /* 0x3100E5C3: jmp 0x3100e5d9 */ 4461 L_3100E5C5: 4462 ecx = MEM32(eax); /* 0x3100E5C5: mov ecx, dword ptr [eax] */ 4463 /* cmp MEM8(ecx + 0x3D), 0 */ /* 0x3100E5C7: cmp byte ptr [ecx + 0x3d], 0 */ 4464 _flag_a = (uint32_t)(MEM8(ecx + 0x3D)) << 24; _flag_b = (uint32_t)(0) << 24; 4465 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4466 _flag_k = FK_NARROW(FK_CMP, 24); 4467 edx = eax; /* 0x3100E5CB: mov edx, eax */ 4468 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E5D9; /* 0x3100E5CD: jne 0x3100e5d9 */ 4469 L_3100E5CF: 4470 edx = ecx; /* 0x3100E5CF: mov edx, ecx */ 4471 ecx = MEM32(edx); /* 0x3100E5D1: mov ecx, dword ptr [edx] */ 4472 /* cmp MEM8(ecx + 0x3D), 0 */ /* 0x3100E5D3: cmp byte ptr [ecx + 0x3d], 0 */ 4473 _flag_a = (uint32_t)(MEM8(ecx + 0x3D)) << 24; _flag_b = (uint32_t)(0) << 24; 4474 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4475 _flag_k = FK_NARROW(FK_CMP, 24); 4476 RECOMP_BACKEDGE(); 4477 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E5CF; /* 0x3100E5D7: je 0x3100e5cf */ 4478 L_3100E5D9: 4479 MEM32(ebx) = edx; /* 0x3100E5D9: mov dword ptr [ebx], edx */ 4480 L_3100E5DB: 4481 ebx = MEM32(edi + 0x4); /* 0x3100E5DB: mov ebx, dword ptr [edi + 4] */ 4482 /* cmp MEM32(ebx + 0x8), esi */ /* 0x3100E5DE: cmp dword ptr [ebx + 8], esi */ 4483 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 4484 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4485 _flag_k = FK_CMP; 4486 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E608; /* 0x3100E5E1: jne 0x3100e608 */ 4487 L_3100E5E3: 4488 ecx = MEM32(esi); /* 0x3100E5E3: mov ecx, dword ptr [esi] */ 4489 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3100E5E5: cmp ecx, dword ptr [edi + 8] */ 4490 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4491 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4492 _flag_k = FK_CMP; 4493 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E5EF; /* 0x3100E5E8: jne 0x3100e5ef */ 4494 L_3100E5EA: 4495 edx = MEM32(esi + 0x4); /* 0x3100E5EA: mov edx, dword ptr [esi + 4] */ 4496 goto L_3100E605; /* 0x3100E5ED: jmp 0x3100e605 */ 4497 L_3100E5EF: 4498 ecx = MEM32(eax + 0x8); /* 0x3100E5EF: mov ecx, dword ptr [eax + 8] */ 4499 /* cmp MEM8(ecx + 0x3D), 0 */ /* 0x3100E5F2: cmp byte ptr [ecx + 0x3d], 0 */ 4500 _flag_a = (uint32_t)(MEM8(ecx + 0x3D)) << 24; _flag_b = (uint32_t)(0) << 24; 4501 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4502 _flag_k = FK_NARROW(FK_CMP, 24); 4503 edx = eax; /* 0x3100E5F6: mov edx, eax */ 4504 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E605; /* 0x3100E5F8: jne 0x3100e605 */ 4505 L_3100E5FA: 4506 edx = ecx; /* 0x3100E5FA: mov edx, ecx */ 4507 ecx = MEM32(edx + 0x8); /* 0x3100E5FC: mov ecx, dword ptr [edx + 8] */ 4508 /* cmp MEM8(ecx + 0x3D), 0 */ /* 0x3100E5FF: cmp byte ptr [ecx + 0x3d], 0 */ 4509 _flag_a = (uint32_t)(MEM8(ecx + 0x3D)) << 24; _flag_b = (uint32_t)(0) << 24; 4510 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4511 _flag_k = FK_NARROW(FK_CMP, 24); 4512 RECOMP_BACKEDGE(); 4513 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E5FA; /* 0x3100E603: je 0x3100e5fa */ 4514 L_3100E605: 4515 MEM32(ebx + 0x8) = edx; /* 0x3100E605: mov dword ptr [ebx + 8], edx */ 4516 L_3100E608: 4517 esi = MEM32(ebp + (-0x4)); /* 0x3100E608: mov esi, dword ptr [ebp - 4] */ 4518 SET_LO8(ecx, MEM8(esi + 0x3C)); /* 0x3100E60B: mov cl, byte ptr [esi + 0x3c] */ 4519 SET_LO8(ebx, 1); /* 0x3100E60E: mov bl, 1 */ 4520 /* cmp LO8(ecx), LO8(ebx) */ /* 0x3100E610: cmp cl, bl */ 4521 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4522 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4523 _flag_k = FK_NARROW(FK_CMP, 24); 4524 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E878; /* 0x3100E612: jne 0x3100e878 */ 4525 L_3100E618: 4526 ecx = MEM32(edi + 0x4); /* 0x3100E618: mov ecx, dword ptr [edi + 4] */ 4527 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3100E61B: cmp eax, dword ptr [ecx + 4] */ 4528 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 4529 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4530 _flag_k = FK_CMP; 4531 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E872; /* 0x3100E61E: je 0x3100e872 */ 4532 L_3100E624: 4533 /* cmp MEM8(eax + 0x3C), LO8(ebx) */ /* 0x3100E624: cmp byte ptr [eax + 0x3c], bl */ 4534 _flag_a = (uint32_t)(MEM8(eax + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4535 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4536 _flag_k = FK_NARROW(FK_CMP, 24); 4537 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E872; /* 0x3100E627: jne 0x3100e872 */ 4538 L_3100E62D: 4539 edx = MEM32(eax + 0x4); /* 0x3100E62D: mov edx, dword ptr [eax + 4] */ 4540 ecx = MEM32(edx); /* 0x3100E630: mov ecx, dword ptr [edx] */ 4541 /* cmp eax, ecx */ /* 0x3100E632: cmp eax, ecx */ 4542 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4543 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4544 _flag_k = FK_CMP; 4545 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6A4; /* 0x3100E634: jne 0x3100e6a4 */ 4546 L_3100E636: 4547 ecx = MEM32(edx + 0x8); /* 0x3100E636: mov ecx, dword ptr [edx + 8] */ 4548 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x3100E639: mov dl, byte ptr [ecx + 0x3c] */ 4549 /* test LO8(edx), LO8(edx) */ /* 0x3100E63C: test dl, dl */ 4550 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4551 _cf = 0; 4552 _flag_k = FK_NARROW(FK_TEST, 24); 4553 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100E68B; /* 0x3100E63E: jne 0x3100e68b */ 4554 L_3100E640: 4555 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E640: mov byte ptr [ecx + 0x3c], bl */ 4556 edx = MEM32(eax + 0x4); /* 0x3100E643: mov edx, dword ptr [eax + 4] */ 4557 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x3100E646: mov byte ptr [edx + 0x3c], 0 */ 4558 ecx = MEM32(eax + 0x4); /* 0x3100E64A: mov ecx, dword ptr [eax + 4] */ 4559 edx = MEM32(ecx + 0x8); /* 0x3100E64D: mov edx, dword ptr [ecx + 8] */ 4560 esi = MEM32(edx); /* 0x3100E650: mov esi, dword ptr [edx] */ 4561 MEM32(ecx + 0x8) = esi; /* 0x3100E652: mov dword ptr [ecx + 8], esi */ 4562 esi = MEM32(edx); /* 0x3100E655: mov esi, dword ptr [edx] */ 4563 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E657: cmp esi, dword ptr [edi + 8] */ 4564 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4565 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4566 _flag_k = FK_CMP; 4567 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E65F; /* 0x3100E65A: je 0x3100e65f */ 4568 L_3100E65C: 4569 MEM32(esi + 0x4) = ecx; /* 0x3100E65C: mov dword ptr [esi + 4], ecx */ 4570 L_3100E65F: 4571 esi = MEM32(ecx + 0x4); /* 0x3100E65F: mov esi, dword ptr [ecx + 4] */ 4572 MEM32(edx + 0x4) = esi; /* 0x3100E662: mov dword ptr [edx + 4], esi */ 4573 esi = MEM32(edi + 0x4); /* 0x3100E665: mov esi, dword ptr [edi + 4] */ 4574 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E668: cmp ecx, dword ptr [esi + 4] */ 4575 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4576 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4577 _flag_k = FK_CMP; 4578 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E672; /* 0x3100E66B: jne 0x3100e672 */ 4579 L_3100E66D: 4580 MEM32(esi + 0x4) = edx; /* 0x3100E66D: mov dword ptr [esi + 4], edx */ 4581 goto L_3100E680; /* 0x3100E670: jmp 0x3100e680 */ 4582 L_3100E672: 4583 esi = MEM32(ecx + 0x4); /* 0x3100E672: mov esi, dword ptr [ecx + 4] */ 4584 /* cmp ecx, MEM32(esi) */ /* 0x3100E675: cmp ecx, dword ptr [esi] */ 4585 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 4586 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4587 _flag_k = FK_CMP; 4588 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E67D; /* 0x3100E677: jne 0x3100e67d */ 4589 L_3100E679: 4590 MEM32(esi) = edx; /* 0x3100E679: mov dword ptr [esi], edx */ 4591 goto L_3100E680; /* 0x3100E67B: jmp 0x3100e680 */ 4592 L_3100E67D: 4593 MEM32(esi + 0x8) = edx; /* 0x3100E67D: mov dword ptr [esi + 8], edx */ 4594 L_3100E680: 4595 MEM32(edx) = ecx; /* 0x3100E680: mov dword ptr [edx], ecx */ 4596 MEM32(ecx + 0x4) = edx; /* 0x3100E682: mov dword ptr [ecx + 4], edx */ 4597 ecx = MEM32(eax + 0x4); /* 0x3100E685: mov ecx, dword ptr [eax + 4] */ 4598 ecx = MEM32(ecx + 0x8); /* 0x3100E688: mov ecx, dword ptr [ecx + 8] */ 4599 L_3100E68B: 4600 edx = MEM32(ecx); /* 0x3100E68B: mov edx, dword ptr [ecx] */ 4601 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E68D: cmp byte ptr [edx + 0x3c], bl */ 4602 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4603 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4604 _flag_k = FK_NARROW(FK_CMP, 24); 4605 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E726; /* 0x3100E690: jne 0x3100e726 */ 4606 L_3100E696: 4607 edx = MEM32(ecx + 0x8); /* 0x3100E696: mov edx, dword ptr [ecx + 8] */ 4608 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E699: cmp byte ptr [edx + 0x3c], bl */ 4609 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4610 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4611 _flag_k = FK_NARROW(FK_CMP, 24); 4612 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E726; /* 0x3100E69C: jne 0x3100e726 */ 4613 L_3100E6A2: 4614 goto L_3100E70E; /* 0x3100E6A2: jmp 0x3100e70e */ 4615 L_3100E6A4: 4616 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x3100E6A4: mov dl, byte ptr [ecx + 0x3c] */ 4617 /* test LO8(edx), LO8(edx) */ /* 0x3100E6A7: test dl, dl */ 4618 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4619 _cf = 0; 4620 _flag_k = FK_NARROW(FK_TEST, 24); 4621 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100E6F7; /* 0x3100E6A9: jne 0x3100e6f7 */ 4622 L_3100E6AB: 4623 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E6AB: mov byte ptr [ecx + 0x3c], bl */ 4624 ecx = MEM32(eax + 0x4); /* 0x3100E6AE: mov ecx, dword ptr [eax + 4] */ 4625 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E6B1: mov byte ptr [ecx + 0x3c], 0 */ 4626 ecx = MEM32(eax + 0x4); /* 0x3100E6B5: mov ecx, dword ptr [eax + 4] */ 4627 edx = MEM32(ecx); /* 0x3100E6B8: mov edx, dword ptr [ecx] */ 4628 esi = MEM32(edx + 0x8); /* 0x3100E6BA: mov esi, dword ptr [edx + 8] */ 4629 MEM32(ecx) = esi; /* 0x3100E6BD: mov dword ptr [ecx], esi */ 4630 esi = MEM32(edx + 0x8); /* 0x3100E6BF: mov esi, dword ptr [edx + 8] */ 4631 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E6C2: cmp esi, dword ptr [edi + 8] */ 4632 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4633 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4634 _flag_k = FK_CMP; 4635 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E6CA; /* 0x3100E6C5: je 0x3100e6ca */ 4636 L_3100E6C7: 4637 MEM32(esi + 0x4) = ecx; /* 0x3100E6C7: mov dword ptr [esi + 4], ecx */ 4638 L_3100E6CA: 4639 esi = MEM32(ecx + 0x4); /* 0x3100E6CA: mov esi, dword ptr [ecx + 4] */ 4640 MEM32(edx + 0x4) = esi; /* 0x3100E6CD: mov dword ptr [edx + 4], esi */ 4641 esi = MEM32(edi + 0x4); /* 0x3100E6D0: mov esi, dword ptr [edi + 4] */ 4642 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E6D3: cmp ecx, dword ptr [esi + 4] */ 4643 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4644 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4645 _flag_k = FK_CMP; 4646 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6DD; /* 0x3100E6D6: jne 0x3100e6dd */ 4647 L_3100E6D8: 4648 MEM32(esi + 0x4) = edx; /* 0x3100E6D8: mov dword ptr [esi + 4], edx */ 4649 goto L_3100E6EC; /* 0x3100E6DB: jmp 0x3100e6ec */ 4650 L_3100E6DD: 4651 esi = MEM32(ecx + 0x4); /* 0x3100E6DD: mov esi, dword ptr [ecx + 4] */ 4652 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E6E0: cmp ecx, dword ptr [esi + 8] */ 4653 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4654 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4655 _flag_k = FK_CMP; 4656 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6EA; /* 0x3100E6E3: jne 0x3100e6ea */ 4657 L_3100E6E5: 4658 MEM32(esi + 0x8) = edx; /* 0x3100E6E5: mov dword ptr [esi + 8], edx */ 4659 goto L_3100E6EC; /* 0x3100E6E8: jmp 0x3100e6ec */ 4660 L_3100E6EA: 4661 MEM32(esi) = edx; /* 0x3100E6EA: mov dword ptr [esi], edx */ 4662 L_3100E6EC: 4663 MEM32(edx + 0x8) = ecx; /* 0x3100E6EC: mov dword ptr [edx + 8], ecx */ 4664 MEM32(ecx + 0x4) = edx; /* 0x3100E6EF: mov dword ptr [ecx + 4], edx */ 4665 edx = MEM32(eax + 0x4); /* 0x3100E6F2: mov edx, dword ptr [eax + 4] */ 4666 ecx = MEM32(edx); /* 0x3100E6F5: mov ecx, dword ptr [edx] */ 4667 L_3100E6F7: 4668 edx = MEM32(ecx + 0x8); /* 0x3100E6F7: mov edx, dword ptr [ecx + 8] */ 4669 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E6FA: cmp byte ptr [edx + 0x3c], bl */ 4670 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4671 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4672 _flag_k = FK_NARROW(FK_CMP, 24); 4673 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7D3; /* 0x3100E6FD: jne 0x3100e7d3 */ 4674 L_3100E703: 4675 edx = MEM32(ecx); /* 0x3100E703: mov edx, dword ptr [ecx] */ 4676 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E705: cmp byte ptr [edx + 0x3c], bl */ 4677 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4678 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4679 _flag_k = FK_NARROW(FK_CMP, 24); 4680 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7D3; /* 0x3100E708: jne 0x3100e7d3 */ 4681 L_3100E70E: 4682 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E70E: mov byte ptr [ecx + 0x3c], 0 */ 4683 ecx = MEM32(edi + 0x4); /* 0x3100E712: mov ecx, dword ptr [edi + 4] */ 4684 eax = MEM32(eax + 0x4); /* 0x3100E715: mov eax, dword ptr [eax + 4] */ 4685 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3100E718: cmp eax, dword ptr [ecx + 4] */ 4686 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 4687 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4688 _flag_k = FK_CMP; 4689 RECOMP_BACKEDGE(); 4690 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E624; /* 0x3100E71B: jne 0x3100e624 */ 4691 L_3100E721: 4692 goto L_3100E872; /* 0x3100E721: jmp 0x3100e872 */ 4693 L_3100E726: 4694 edx = MEM32(ecx + 0x8); /* 0x3100E726: mov edx, dword ptr [ecx + 8] */ 4695 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E729: cmp byte ptr [edx + 0x3c], bl */ 4696 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4697 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4698 _flag_k = FK_NARROW(FK_CMP, 24); 4699 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E777; /* 0x3100E72C: jne 0x3100e777 */ 4700 L_3100E72E: 4701 edx = MEM32(ecx); /* 0x3100E72E: mov edx, dword ptr [ecx] */ 4702 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E730: mov byte ptr [edx + 0x3c], bl */ 4703 edx = MEM32(ecx); /* 0x3100E733: mov edx, dword ptr [ecx] */ 4704 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E735: mov byte ptr [ecx + 0x3c], 0 */ 4705 esi = MEM32(edx + 0x8); /* 0x3100E739: mov esi, dword ptr [edx + 8] */ 4706 MEM32(ecx) = esi; /* 0x3100E73C: mov dword ptr [ecx], esi */ 4707 esi = MEM32(edx + 0x8); /* 0x3100E73E: mov esi, dword ptr [edx + 8] */ 4708 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E741: cmp esi, dword ptr [edi + 8] */ 4709 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4710 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4711 _flag_k = FK_CMP; 4712 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E749; /* 0x3100E744: je 0x3100e749 */ 4713 L_3100E746: 4714 MEM32(esi + 0x4) = ecx; /* 0x3100E746: mov dword ptr [esi + 4], ecx */ 4715 L_3100E749: 4716 esi = MEM32(ecx + 0x4); /* 0x3100E749: mov esi, dword ptr [ecx + 4] */ 4717 MEM32(edx + 0x4) = esi; /* 0x3100E74C: mov dword ptr [edx + 4], esi */ 4718 esi = MEM32(edi + 0x4); /* 0x3100E74F: mov esi, dword ptr [edi + 4] */ 4719 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E752: cmp ecx, dword ptr [esi + 4] */ 4720 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4721 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4722 _flag_k = FK_CMP; 4723 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E75C; /* 0x3100E755: jne 0x3100e75c */ 4724 L_3100E757: 4725 MEM32(esi + 0x4) = edx; /* 0x3100E757: mov dword ptr [esi + 4], edx */ 4726 goto L_3100E76B; /* 0x3100E75A: jmp 0x3100e76b */ 4727 L_3100E75C: 4728 esi = MEM32(ecx + 0x4); /* 0x3100E75C: mov esi, dword ptr [ecx + 4] */ 4729 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E75F: cmp ecx, dword ptr [esi + 8] */ 4730 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4731 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4732 _flag_k = FK_CMP; 4733 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E769; /* 0x3100E762: jne 0x3100e769 */ 4734 L_3100E764: 4735 MEM32(esi + 0x8) = edx; /* 0x3100E764: mov dword ptr [esi + 8], edx */ 4736 goto L_3100E76B; /* 0x3100E767: jmp 0x3100e76b */ 4737 L_3100E769: 4738 MEM32(esi) = edx; /* 0x3100E769: mov dword ptr [esi], edx */ 4739 L_3100E76B: 4740 MEM32(edx + 0x8) = ecx; /* 0x3100E76B: mov dword ptr [edx + 8], ecx */ 4741 MEM32(ecx + 0x4) = edx; /* 0x3100E76E: mov dword ptr [ecx + 4], edx */ 4742 ecx = MEM32(eax + 0x4); /* 0x3100E771: mov ecx, dword ptr [eax + 4] */ 4743 ecx = MEM32(ecx + 0x8); /* 0x3100E774: mov ecx, dword ptr [ecx + 8] */ 4744 L_3100E777: 4745 edx = MEM32(eax + 0x4); /* 0x3100E777: mov edx, dword ptr [eax + 4] */ 4746 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3100E77A: mov dl, byte ptr [edx + 0x3c] */ 4747 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3100E77D: mov byte ptr [ecx + 0x3c], dl */ 4748 edx = MEM32(eax + 0x4); /* 0x3100E780: mov edx, dword ptr [eax + 4] */ 4749 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E783: mov byte ptr [edx + 0x3c], bl */ 4750 ecx = MEM32(ecx + 0x8); /* 0x3100E786: mov ecx, dword ptr [ecx + 8] */ 4751 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E789: mov byte ptr [ecx + 0x3c], bl */ 4752 ecx = MEM32(eax + 0x4); /* 0x3100E78C: mov ecx, dword ptr [eax + 4] */ 4753 edx = MEM32(ecx + 0x8); /* 0x3100E78F: mov edx, dword ptr [ecx + 8] */ 4754 esi = MEM32(edx); /* 0x3100E792: mov esi, dword ptr [edx] */ 4755 MEM32(ecx + 0x8) = esi; /* 0x3100E794: mov dword ptr [ecx + 8], esi */ 4756 esi = MEM32(edx); /* 0x3100E797: mov esi, dword ptr [edx] */ 4757 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E799: cmp esi, dword ptr [edi + 8] */ 4758 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4759 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4760 _flag_k = FK_CMP; 4761 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E7A1; /* 0x3100E79C: je 0x3100e7a1 */ 4762 L_3100E79E: 4763 MEM32(esi + 0x4) = ecx; /* 0x3100E79E: mov dword ptr [esi + 4], ecx */ 4764 L_3100E7A1: 4765 esi = MEM32(ecx + 0x4); /* 0x3100E7A1: mov esi, dword ptr [ecx + 4] */ 4766 MEM32(edx + 0x4) = esi; /* 0x3100E7A4: mov dword ptr [edx + 4], esi */ 4767 esi = MEM32(edi + 0x4); /* 0x3100E7A7: mov esi, dword ptr [edi + 4] */ 4768 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E7AA: cmp ecx, dword ptr [esi + 4] */ 4769 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4770 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4771 _flag_k = FK_CMP; 4772 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7B9; /* 0x3100E7AD: jne 0x3100e7b9 */ 4773 L_3100E7AF: 4774 MEM32(esi + 0x4) = edx; /* 0x3100E7AF: mov dword ptr [esi + 4], edx */ 4775 MEM32(edx) = ecx; /* 0x3100E7B2: mov dword ptr [edx], ecx */ 4776 goto L_3100E86F; /* 0x3100E7B4: jmp 0x3100e86f */ 4777 L_3100E7B9: 4778 esi = MEM32(ecx + 0x4); /* 0x3100E7B9: mov esi, dword ptr [ecx + 4] */ 4779 /* cmp ecx, MEM32(esi) */ /* 0x3100E7BC: cmp ecx, dword ptr [esi] */ 4780 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 4781 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4782 _flag_k = FK_CMP; 4783 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7C9; /* 0x3100E7BE: jne 0x3100e7c9 */ 4784 L_3100E7C0: 4785 MEM32(esi) = edx; /* 0x3100E7C0: mov dword ptr [esi], edx */ 4786 MEM32(edx) = ecx; /* 0x3100E7C2: mov dword ptr [edx], ecx */ 4787 goto L_3100E86F; /* 0x3100E7C4: jmp 0x3100e86f */ 4788 L_3100E7C9: 4789 MEM32(esi + 0x8) = edx; /* 0x3100E7C9: mov dword ptr [esi + 8], edx */ 4790 MEM32(edx) = ecx; /* 0x3100E7CC: mov dword ptr [edx], ecx */ 4791 goto L_3100E86F; /* 0x3100E7CE: jmp 0x3100e86f */ 4792 L_3100E7D3: 4793 edx = MEM32(ecx); /* 0x3100E7D3: mov edx, dword ptr [ecx] */ 4794 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E7D5: cmp byte ptr [edx + 0x3c], bl */ 4795 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4796 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4797 _flag_k = FK_NARROW(FK_CMP, 24); 4798 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E821; /* 0x3100E7D8: jne 0x3100e821 */ 4799 L_3100E7DA: 4800 edx = MEM32(ecx + 0x8); /* 0x3100E7DA: mov edx, dword ptr [ecx + 8] */ 4801 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E7DD: mov byte ptr [edx + 0x3c], bl */ 4802 edx = MEM32(ecx + 0x8); /* 0x3100E7E0: mov edx, dword ptr [ecx + 8] */ 4803 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E7E3: mov byte ptr [ecx + 0x3c], 0 */ 4804 esi = MEM32(edx); /* 0x3100E7E7: mov esi, dword ptr [edx] */ 4805 MEM32(ecx + 0x8) = esi; /* 0x3100E7E9: mov dword ptr [ecx + 8], esi */ 4806 esi = MEM32(edx); /* 0x3100E7EC: mov esi, dword ptr [edx] */ 4807 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E7EE: cmp esi, dword ptr [edi + 8] */ 4808 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4809 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4810 _flag_k = FK_CMP; 4811 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E7F6; /* 0x3100E7F1: je 0x3100e7f6 */ 4812 L_3100E7F3: 4813 MEM32(esi + 0x4) = ecx; /* 0x3100E7F3: mov dword ptr [esi + 4], ecx */ 4814 L_3100E7F6: 4815 esi = MEM32(ecx + 0x4); /* 0x3100E7F6: mov esi, dword ptr [ecx + 4] */ 4816 MEM32(edx + 0x4) = esi; /* 0x3100E7F9: mov dword ptr [edx + 4], esi */ 4817 esi = MEM32(edi + 0x4); /* 0x3100E7FC: mov esi, dword ptr [edi + 4] */ 4818 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E7FF: cmp ecx, dword ptr [esi + 4] */ 4819 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4820 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4821 _flag_k = FK_CMP; 4822 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E809; /* 0x3100E802: jne 0x3100e809 */ 4823 L_3100E804: 4824 MEM32(esi + 0x4) = edx; /* 0x3100E804: mov dword ptr [esi + 4], edx */ 4825 goto L_3100E817; /* 0x3100E807: jmp 0x3100e817 */ 4826 L_3100E809: 4827 esi = MEM32(ecx + 0x4); /* 0x3100E809: mov esi, dword ptr [ecx + 4] */ 4828 /* cmp ecx, MEM32(esi) */ /* 0x3100E80C: cmp ecx, dword ptr [esi] */ 4829 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 4830 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4831 _flag_k = FK_CMP; 4832 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E814; /* 0x3100E80E: jne 0x3100e814 */ 4833 L_3100E810: 4834 MEM32(esi) = edx; /* 0x3100E810: mov dword ptr [esi], edx */ 4835 goto L_3100E817; /* 0x3100E812: jmp 0x3100e817 */ 4836 L_3100E814: 4837 MEM32(esi + 0x8) = edx; /* 0x3100E814: mov dword ptr [esi + 8], edx */ 4838 L_3100E817: 4839 MEM32(edx) = ecx; /* 0x3100E817: mov dword ptr [edx], ecx */ 4840 MEM32(ecx + 0x4) = edx; /* 0x3100E819: mov dword ptr [ecx + 4], edx */ 4841 ecx = MEM32(eax + 0x4); /* 0x3100E81C: mov ecx, dword ptr [eax + 4] */ 4842 ecx = MEM32(ecx); /* 0x3100E81F: mov ecx, dword ptr [ecx] */ 4843 L_3100E821: 4844 edx = MEM32(eax + 0x4); /* 0x3100E821: mov edx, dword ptr [eax + 4] */ 4845 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3100E824: mov dl, byte ptr [edx + 0x3c] */ 4846 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3100E827: mov byte ptr [ecx + 0x3c], dl */ 4847 edx = MEM32(eax + 0x4); /* 0x3100E82A: mov edx, dword ptr [eax + 4] */ 4848 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E82D: mov byte ptr [edx + 0x3c], bl */ 4849 ecx = MEM32(ecx); /* 0x3100E830: mov ecx, dword ptr [ecx] */ 4850 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E832: mov byte ptr [ecx + 0x3c], bl */ 4851 ecx = MEM32(eax + 0x4); /* 0x3100E835: mov ecx, dword ptr [eax + 4] */ 4852 edx = MEM32(ecx); /* 0x3100E838: mov edx, dword ptr [ecx] */ 4853 esi = MEM32(edx + 0x8); /* 0x3100E83A: mov esi, dword ptr [edx + 8] */ 4854 MEM32(ecx) = esi; /* 0x3100E83D: mov dword ptr [ecx], esi */ 4855 esi = MEM32(edx + 0x8); /* 0x3100E83F: mov esi, dword ptr [edx + 8] */ 4856 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E842: cmp esi, dword ptr [edi + 8] */ 4857 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4858 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4859 _flag_k = FK_CMP; 4860 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E84A; /* 0x3100E845: je 0x3100e84a */ 4861 L_3100E847: 4862 MEM32(esi + 0x4) = ecx; /* 0x3100E847: mov dword ptr [esi + 4], ecx */ 4863 L_3100E84A: 4864 esi = MEM32(ecx + 0x4); /* 0x3100E84A: mov esi, dword ptr [ecx + 4] */ 4865 MEM32(edx + 0x4) = esi; /* 0x3100E84D: mov dword ptr [edx + 4], esi */ 4866 esi = MEM32(edi + 0x4); /* 0x3100E850: mov esi, dword ptr [edi + 4] */ 4867 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E853: cmp ecx, dword ptr [esi + 4] */ 4868 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4869 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4870 _flag_k = FK_CMP; 4871 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E85D; /* 0x3100E856: jne 0x3100e85d */ 4872 L_3100E858: 4873 MEM32(esi + 0x4) = edx; /* 0x3100E858: mov dword ptr [esi + 4], edx */ 4874 goto L_3100E86C; /* 0x3100E85B: jmp 0x3100e86c */ 4875 L_3100E85D: 4876 esi = MEM32(ecx + 0x4); /* 0x3100E85D: mov esi, dword ptr [ecx + 4] */ 4877 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E860: cmp ecx, dword ptr [esi + 8] */ 4878 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4879 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4880 _flag_k = FK_CMP; 4881 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E86A; /* 0x3100E863: jne 0x3100e86a */ 4882 L_3100E865: 4883 MEM32(esi + 0x8) = edx; /* 0x3100E865: mov dword ptr [esi + 8], edx */ 4884 goto L_3100E86C; /* 0x3100E868: jmp 0x3100e86c */ 4885 L_3100E86A: 4886 MEM32(esi) = edx; /* 0x3100E86A: mov dword ptr [esi], edx */ 4887 L_3100E86C: 4888 MEM32(edx + 0x8) = ecx; /* 0x3100E86C: mov dword ptr [edx + 8], ecx */ 4889 L_3100E86F: 4890 MEM32(ecx + 0x4) = edx; /* 0x3100E86F: mov dword ptr [ecx + 4], edx */ 4891 L_3100E872: 4892 esi = MEM32(ebp + (-0x4)); /* 0x3100E872: mov esi, dword ptr [ebp - 4] */ 4893 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E875: mov byte ptr [eax + 0x3c], bl */ 4894 L_3100E878: 4895 ecx = esi + 0xC; /* 0x3100E878: lea ecx, [esi + 0xc] */ 4896 RECOMP_ICALL(0x3100EE80u); /* 0x3100E87B: call 0x3100ee80 */ /* not lifted */ 4897 RECOMP_FLAGS_IN(); 4898 PUSH32(esp, esi); /* 0x3100E880: push esi */ 4899 RECOMP_ICALL(0x31046858u); /* 0x3100E881: call 0x31046858 */ /* not lifted */ 4900 RECOMP_FLAGS_IN(); 4901 eax = MEM32(edi + 0x10); /* 0x3100E886: mov eax, dword ptr [edi + 0x10] */ 4902 edx = MEM32(ebp + 0xC); /* 0x3100E889: mov edx, dword ptr [ebp + 0xc] */ 4903 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4904 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4905 esp = esp + 4; /* 0x3100E88C: add esp, 4 */ 4906 _flag_k = FK_ADD; 4907 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4908 eax = eax - 1; /* 0x3100E88F: dec eax */ 4909 _flag_k = FK_DEC; 4910 MEM32(edi + 0x10) = eax; /* 0x3100E890: mov dword ptr [edi + 0x10], eax */ 4911 eax = MEM32(ebp + 0x8); /* 0x3100E893: mov eax, dword ptr [ebp + 8] */ 4912 edi = POP32_VAL(esp); /* 0x3100E896: pop edi */ 4913 esi = POP32_VAL(esp); /* 0x3100E897: pop esi */ 4914 MEM32(eax) = edx; /* 0x3100E898: mov dword ptr [eax], edx */ 4915 ebx = POP32_VAL(esp); /* 0x3100E89A: pop ebx */ 4916 esp = ebp; /* 0x3100E89B: mov esp, ebp */ 4917 ebp = POP32_VAL(esp); /* 0x3100E89D: pop ebp */ 4918 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100E89E: ret 8 */ 4919 RECOMP_REGS_OUT(); 4920 } 4921 4922 void sub_3100E5D9(void) { 4923 int _fpu_cmp = 0; 4924 uint32_t _cf = 0; 4925 int _df = 1; 4926 uint32_t _flag_k = FK_NONE; 4927 uint32_t _flag_a = 0, _flag_b = 0; 4928 uint32_t _itail_tgt = 0; 4929 RECOMP_REGS_LOCALS 4930 RECOMP_ENTER(0x3100E5D9u); 4931 4932 L_3100E5D9: 4933 MEM32(ebx) = edx; /* 0x3100E5D9: mov dword ptr [ebx], edx */ 4934 ebx = MEM32(edi + 0x4); /* 0x3100E5DB: mov ebx, dword ptr [edi + 4] */ 4935 /* cmp MEM32(ebx + 0x8), esi */ /* 0x3100E5DE: cmp dword ptr [ebx + 8], esi */ 4936 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 4937 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4938 _flag_k = FK_CMP; 4939 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E608; /* 0x3100E5E1: jne 0x3100e608 */ 4940 L_3100E5E3: 4941 ecx = MEM32(esi); /* 0x3100E5E3: mov ecx, dword ptr [esi] */ 4942 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3100E5E5: cmp ecx, dword ptr [edi + 8] */ 4943 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4944 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4945 _flag_k = FK_CMP; 4946 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E5EF; /* 0x3100E5E8: jne 0x3100e5ef */ 4947 L_3100E5EA: 4948 edx = MEM32(esi + 0x4); /* 0x3100E5EA: mov edx, dword ptr [esi + 4] */ 4949 goto L_3100E605; /* 0x3100E5ED: jmp 0x3100e605 */ 4950 L_3100E5EF: 4951 ecx = MEM32(eax + 0x8); /* 0x3100E5EF: mov ecx, dword ptr [eax + 8] */ 4952 /* cmp MEM8(ecx + 0x3D), 0 */ /* 0x3100E5F2: cmp byte ptr [ecx + 0x3d], 0 */ 4953 _flag_a = (uint32_t)(MEM8(ecx + 0x3D)) << 24; _flag_b = (uint32_t)(0) << 24; 4954 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4955 _flag_k = FK_NARROW(FK_CMP, 24); 4956 edx = eax; /* 0x3100E5F6: mov edx, eax */ 4957 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E605; /* 0x3100E5F8: jne 0x3100e605 */ 4958 L_3100E5FA: 4959 edx = ecx; /* 0x3100E5FA: mov edx, ecx */ 4960 ecx = MEM32(edx + 0x8); /* 0x3100E5FC: mov ecx, dword ptr [edx + 8] */ 4961 /* cmp MEM8(ecx + 0x3D), 0 */ /* 0x3100E5FF: cmp byte ptr [ecx + 0x3d], 0 */ 4962 _flag_a = (uint32_t)(MEM8(ecx + 0x3D)) << 24; _flag_b = (uint32_t)(0) << 24; 4963 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4964 _flag_k = FK_NARROW(FK_CMP, 24); 4965 RECOMP_BACKEDGE(); 4966 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E5FA; /* 0x3100E603: je 0x3100e5fa */ 4967 L_3100E605: 4968 MEM32(ebx + 0x8) = edx; /* 0x3100E605: mov dword ptr [ebx + 8], edx */ 4969 L_3100E608: 4970 esi = MEM32(ebp + (-0x4)); /* 0x3100E608: mov esi, dword ptr [ebp - 4] */ 4971 SET_LO8(ecx, MEM8(esi + 0x3C)); /* 0x3100E60B: mov cl, byte ptr [esi + 0x3c] */ 4972 SET_LO8(ebx, 1); /* 0x3100E60E: mov bl, 1 */ 4973 /* cmp LO8(ecx), LO8(ebx) */ /* 0x3100E610: cmp cl, bl */ 4974 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4975 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4976 _flag_k = FK_NARROW(FK_CMP, 24); 4977 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E878; /* 0x3100E612: jne 0x3100e878 */ 4978 L_3100E618: 4979 ecx = MEM32(edi + 0x4); /* 0x3100E618: mov ecx, dword ptr [edi + 4] */ 4980 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3100E61B: cmp eax, dword ptr [ecx + 4] */ 4981 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 4982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4983 _flag_k = FK_CMP; 4984 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E872; /* 0x3100E61E: je 0x3100e872 */ 4985 L_3100E624: 4986 /* cmp MEM8(eax + 0x3C), LO8(ebx) */ /* 0x3100E624: cmp byte ptr [eax + 0x3c], bl */ 4987 _flag_a = (uint32_t)(MEM8(eax + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4988 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4989 _flag_k = FK_NARROW(FK_CMP, 24); 4990 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E872; /* 0x3100E627: jne 0x3100e872 */ 4991 L_3100E62D: 4992 edx = MEM32(eax + 0x4); /* 0x3100E62D: mov edx, dword ptr [eax + 4] */ 4993 ecx = MEM32(edx); /* 0x3100E630: mov ecx, dword ptr [edx] */ 4994 /* cmp eax, ecx */ /* 0x3100E632: cmp eax, ecx */ 4995 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4996 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4997 _flag_k = FK_CMP; 4998 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6A4; /* 0x3100E634: jne 0x3100e6a4 */ 4999 L_3100E636: 5000 ecx = MEM32(edx + 0x8); /* 0x3100E636: mov ecx, dword ptr [edx + 8] */ 5001 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x3100E639: mov dl, byte ptr [ecx + 0x3c] */ 5002 /* test LO8(edx), LO8(edx) */ /* 0x3100E63C: test dl, dl */ 5003 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5004 _cf = 0; 5005 _flag_k = FK_NARROW(FK_TEST, 24); 5006 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100E68B; /* 0x3100E63E: jne 0x3100e68b */ 5007 L_3100E640: 5008 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E640: mov byte ptr [ecx + 0x3c], bl */ 5009 edx = MEM32(eax + 0x4); /* 0x3100E643: mov edx, dword ptr [eax + 4] */ 5010 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x3100E646: mov byte ptr [edx + 0x3c], 0 */ 5011 ecx = MEM32(eax + 0x4); /* 0x3100E64A: mov ecx, dword ptr [eax + 4] */ 5012 edx = MEM32(ecx + 0x8); /* 0x3100E64D: mov edx, dword ptr [ecx + 8] */ 5013 esi = MEM32(edx); /* 0x3100E650: mov esi, dword ptr [edx] */ 5014 MEM32(ecx + 0x8) = esi; /* 0x3100E652: mov dword ptr [ecx + 8], esi */ 5015 esi = MEM32(edx); /* 0x3100E655: mov esi, dword ptr [edx] */ 5016 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E657: cmp esi, dword ptr [edi + 8] */ 5017 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5018 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5019 _flag_k = FK_CMP; 5020 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E65F; /* 0x3100E65A: je 0x3100e65f */ 5021 L_3100E65C: 5022 MEM32(esi + 0x4) = ecx; /* 0x3100E65C: mov dword ptr [esi + 4], ecx */ 5023 L_3100E65F: 5024 esi = MEM32(ecx + 0x4); /* 0x3100E65F: mov esi, dword ptr [ecx + 4] */ 5025 MEM32(edx + 0x4) = esi; /* 0x3100E662: mov dword ptr [edx + 4], esi */ 5026 esi = MEM32(edi + 0x4); /* 0x3100E665: mov esi, dword ptr [edi + 4] */ 5027 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E668: cmp ecx, dword ptr [esi + 4] */ 5028 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5029 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5030 _flag_k = FK_CMP; 5031 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E672; /* 0x3100E66B: jne 0x3100e672 */ 5032 L_3100E66D: 5033 MEM32(esi + 0x4) = edx; /* 0x3100E66D: mov dword ptr [esi + 4], edx */ 5034 goto L_3100E680; /* 0x3100E670: jmp 0x3100e680 */ 5035 L_3100E672: 5036 esi = MEM32(ecx + 0x4); /* 0x3100E672: mov esi, dword ptr [ecx + 4] */ 5037 /* cmp ecx, MEM32(esi) */ /* 0x3100E675: cmp ecx, dword ptr [esi] */ 5038 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5039 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5040 _flag_k = FK_CMP; 5041 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E67D; /* 0x3100E677: jne 0x3100e67d */ 5042 L_3100E679: 5043 MEM32(esi) = edx; /* 0x3100E679: mov dword ptr [esi], edx */ 5044 goto L_3100E680; /* 0x3100E67B: jmp 0x3100e680 */ 5045 L_3100E67D: 5046 MEM32(esi + 0x8) = edx; /* 0x3100E67D: mov dword ptr [esi + 8], edx */ 5047 L_3100E680: 5048 MEM32(edx) = ecx; /* 0x3100E680: mov dword ptr [edx], ecx */ 5049 MEM32(ecx + 0x4) = edx; /* 0x3100E682: mov dword ptr [ecx + 4], edx */ 5050 ecx = MEM32(eax + 0x4); /* 0x3100E685: mov ecx, dword ptr [eax + 4] */ 5051 ecx = MEM32(ecx + 0x8); /* 0x3100E688: mov ecx, dword ptr [ecx + 8] */ 5052 L_3100E68B: 5053 edx = MEM32(ecx); /* 0x3100E68B: mov edx, dword ptr [ecx] */ 5054 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E68D: cmp byte ptr [edx + 0x3c], bl */ 5055 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5056 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5057 _flag_k = FK_NARROW(FK_CMP, 24); 5058 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E726; /* 0x3100E690: jne 0x3100e726 */ 5059 L_3100E696: 5060 edx = MEM32(ecx + 0x8); /* 0x3100E696: mov edx, dword ptr [ecx + 8] */ 5061 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E699: cmp byte ptr [edx + 0x3c], bl */ 5062 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5063 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5064 _flag_k = FK_NARROW(FK_CMP, 24); 5065 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E726; /* 0x3100E69C: jne 0x3100e726 */ 5066 L_3100E6A2: 5067 goto L_3100E70E; /* 0x3100E6A2: jmp 0x3100e70e */ 5068 L_3100E6A4: 5069 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x3100E6A4: mov dl, byte ptr [ecx + 0x3c] */ 5070 /* test LO8(edx), LO8(edx) */ /* 0x3100E6A7: test dl, dl */ 5071 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5072 _cf = 0; 5073 _flag_k = FK_NARROW(FK_TEST, 24); 5074 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100E6F7; /* 0x3100E6A9: jne 0x3100e6f7 */ 5075 L_3100E6AB: 5076 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E6AB: mov byte ptr [ecx + 0x3c], bl */ 5077 ecx = MEM32(eax + 0x4); /* 0x3100E6AE: mov ecx, dword ptr [eax + 4] */ 5078 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E6B1: mov byte ptr [ecx + 0x3c], 0 */ 5079 ecx = MEM32(eax + 0x4); /* 0x3100E6B5: mov ecx, dword ptr [eax + 4] */ 5080 edx = MEM32(ecx); /* 0x3100E6B8: mov edx, dword ptr [ecx] */ 5081 esi = MEM32(edx + 0x8); /* 0x3100E6BA: mov esi, dword ptr [edx + 8] */ 5082 MEM32(ecx) = esi; /* 0x3100E6BD: mov dword ptr [ecx], esi */ 5083 esi = MEM32(edx + 0x8); /* 0x3100E6BF: mov esi, dword ptr [edx + 8] */ 5084 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E6C2: cmp esi, dword ptr [edi + 8] */ 5085 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5086 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5087 _flag_k = FK_CMP; 5088 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E6CA; /* 0x3100E6C5: je 0x3100e6ca */ 5089 L_3100E6C7: 5090 MEM32(esi + 0x4) = ecx; /* 0x3100E6C7: mov dword ptr [esi + 4], ecx */ 5091 L_3100E6CA: 5092 esi = MEM32(ecx + 0x4); /* 0x3100E6CA: mov esi, dword ptr [ecx + 4] */ 5093 MEM32(edx + 0x4) = esi; /* 0x3100E6CD: mov dword ptr [edx + 4], esi */ 5094 esi = MEM32(edi + 0x4); /* 0x3100E6D0: mov esi, dword ptr [edi + 4] */ 5095 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E6D3: cmp ecx, dword ptr [esi + 4] */ 5096 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5097 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5098 _flag_k = FK_CMP; 5099 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6DD; /* 0x3100E6D6: jne 0x3100e6dd */ 5100 L_3100E6D8: 5101 MEM32(esi + 0x4) = edx; /* 0x3100E6D8: mov dword ptr [esi + 4], edx */ 5102 goto L_3100E6EC; /* 0x3100E6DB: jmp 0x3100e6ec */ 5103 L_3100E6DD: 5104 esi = MEM32(ecx + 0x4); /* 0x3100E6DD: mov esi, dword ptr [ecx + 4] */ 5105 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E6E0: cmp ecx, dword ptr [esi + 8] */ 5106 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5107 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5108 _flag_k = FK_CMP; 5109 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6EA; /* 0x3100E6E3: jne 0x3100e6ea */ 5110 L_3100E6E5: 5111 MEM32(esi + 0x8) = edx; /* 0x3100E6E5: mov dword ptr [esi + 8], edx */ 5112 goto L_3100E6EC; /* 0x3100E6E8: jmp 0x3100e6ec */ 5113 L_3100E6EA: 5114 MEM32(esi) = edx; /* 0x3100E6EA: mov dword ptr [esi], edx */ 5115 L_3100E6EC: 5116 MEM32(edx + 0x8) = ecx; /* 0x3100E6EC: mov dword ptr [edx + 8], ecx */ 5117 MEM32(ecx + 0x4) = edx; /* 0x3100E6EF: mov dword ptr [ecx + 4], edx */ 5118 edx = MEM32(eax + 0x4); /* 0x3100E6F2: mov edx, dword ptr [eax + 4] */ 5119 ecx = MEM32(edx); /* 0x3100E6F5: mov ecx, dword ptr [edx] */ 5120 L_3100E6F7: 5121 edx = MEM32(ecx + 0x8); /* 0x3100E6F7: mov edx, dword ptr [ecx + 8] */ 5122 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E6FA: cmp byte ptr [edx + 0x3c], bl */ 5123 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5124 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5125 _flag_k = FK_NARROW(FK_CMP, 24); 5126 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7D3; /* 0x3100E6FD: jne 0x3100e7d3 */ 5127 L_3100E703: 5128 edx = MEM32(ecx); /* 0x3100E703: mov edx, dword ptr [ecx] */ 5129 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E705: cmp byte ptr [edx + 0x3c], bl */ 5130 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5131 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5132 _flag_k = FK_NARROW(FK_CMP, 24); 5133 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7D3; /* 0x3100E708: jne 0x3100e7d3 */ 5134 L_3100E70E: 5135 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E70E: mov byte ptr [ecx + 0x3c], 0 */ 5136 ecx = MEM32(edi + 0x4); /* 0x3100E712: mov ecx, dword ptr [edi + 4] */ 5137 eax = MEM32(eax + 0x4); /* 0x3100E715: mov eax, dword ptr [eax + 4] */ 5138 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3100E718: cmp eax, dword ptr [ecx + 4] */ 5139 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 5140 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5141 _flag_k = FK_CMP; 5142 RECOMP_BACKEDGE(); 5143 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E624; /* 0x3100E71B: jne 0x3100e624 */ 5144 L_3100E721: 5145 goto L_3100E872; /* 0x3100E721: jmp 0x3100e872 */ 5146 L_3100E726: 5147 edx = MEM32(ecx + 0x8); /* 0x3100E726: mov edx, dword ptr [ecx + 8] */ 5148 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E729: cmp byte ptr [edx + 0x3c], bl */ 5149 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5150 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5151 _flag_k = FK_NARROW(FK_CMP, 24); 5152 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E777; /* 0x3100E72C: jne 0x3100e777 */ 5153 L_3100E72E: 5154 edx = MEM32(ecx); /* 0x3100E72E: mov edx, dword ptr [ecx] */ 5155 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E730: mov byte ptr [edx + 0x3c], bl */ 5156 edx = MEM32(ecx); /* 0x3100E733: mov edx, dword ptr [ecx] */ 5157 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E735: mov byte ptr [ecx + 0x3c], 0 */ 5158 esi = MEM32(edx + 0x8); /* 0x3100E739: mov esi, dword ptr [edx + 8] */ 5159 MEM32(ecx) = esi; /* 0x3100E73C: mov dword ptr [ecx], esi */ 5160 esi = MEM32(edx + 0x8); /* 0x3100E73E: mov esi, dword ptr [edx + 8] */ 5161 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E741: cmp esi, dword ptr [edi + 8] */ 5162 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5163 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5164 _flag_k = FK_CMP; 5165 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E749; /* 0x3100E744: je 0x3100e749 */ 5166 L_3100E746: 5167 MEM32(esi + 0x4) = ecx; /* 0x3100E746: mov dword ptr [esi + 4], ecx */ 5168 L_3100E749: 5169 esi = MEM32(ecx + 0x4); /* 0x3100E749: mov esi, dword ptr [ecx + 4] */ 5170 MEM32(edx + 0x4) = esi; /* 0x3100E74C: mov dword ptr [edx + 4], esi */ 5171 esi = MEM32(edi + 0x4); /* 0x3100E74F: mov esi, dword ptr [edi + 4] */ 5172 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E752: cmp ecx, dword ptr [esi + 4] */ 5173 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5174 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5175 _flag_k = FK_CMP; 5176 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E75C; /* 0x3100E755: jne 0x3100e75c */ 5177 L_3100E757: 5178 MEM32(esi + 0x4) = edx; /* 0x3100E757: mov dword ptr [esi + 4], edx */ 5179 goto L_3100E76B; /* 0x3100E75A: jmp 0x3100e76b */ 5180 L_3100E75C: 5181 esi = MEM32(ecx + 0x4); /* 0x3100E75C: mov esi, dword ptr [ecx + 4] */ 5182 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E75F: cmp ecx, dword ptr [esi + 8] */ 5183 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 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_3100E769; /* 0x3100E762: jne 0x3100e769 */ 5187 L_3100E764: 5188 MEM32(esi + 0x8) = edx; /* 0x3100E764: mov dword ptr [esi + 8], edx */ 5189 goto L_3100E76B; /* 0x3100E767: jmp 0x3100e76b */ 5190 L_3100E769: 5191 MEM32(esi) = edx; /* 0x3100E769: mov dword ptr [esi], edx */ 5192 L_3100E76B: 5193 MEM32(edx + 0x8) = ecx; /* 0x3100E76B: mov dword ptr [edx + 8], ecx */ 5194 MEM32(ecx + 0x4) = edx; /* 0x3100E76E: mov dword ptr [ecx + 4], edx */ 5195 ecx = MEM32(eax + 0x4); /* 0x3100E771: mov ecx, dword ptr [eax + 4] */ 5196 ecx = MEM32(ecx + 0x8); /* 0x3100E774: mov ecx, dword ptr [ecx + 8] */ 5197 L_3100E777: 5198 edx = MEM32(eax + 0x4); /* 0x3100E777: mov edx, dword ptr [eax + 4] */ 5199 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3100E77A: mov dl, byte ptr [edx + 0x3c] */ 5200 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3100E77D: mov byte ptr [ecx + 0x3c], dl */ 5201 edx = MEM32(eax + 0x4); /* 0x3100E780: mov edx, dword ptr [eax + 4] */ 5202 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E783: mov byte ptr [edx + 0x3c], bl */ 5203 ecx = MEM32(ecx + 0x8); /* 0x3100E786: mov ecx, dword ptr [ecx + 8] */ 5204 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E789: mov byte ptr [ecx + 0x3c], bl */ 5205 ecx = MEM32(eax + 0x4); /* 0x3100E78C: mov ecx, dword ptr [eax + 4] */ 5206 edx = MEM32(ecx + 0x8); /* 0x3100E78F: mov edx, dword ptr [ecx + 8] */ 5207 esi = MEM32(edx); /* 0x3100E792: mov esi, dword ptr [edx] */ 5208 MEM32(ecx + 0x8) = esi; /* 0x3100E794: mov dword ptr [ecx + 8], esi */ 5209 esi = MEM32(edx); /* 0x3100E797: mov esi, dword ptr [edx] */ 5210 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E799: cmp esi, dword ptr [edi + 8] */ 5211 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5212 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5213 _flag_k = FK_CMP; 5214 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E7A1; /* 0x3100E79C: je 0x3100e7a1 */ 5215 L_3100E79E: 5216 MEM32(esi + 0x4) = ecx; /* 0x3100E79E: mov dword ptr [esi + 4], ecx */ 5217 L_3100E7A1: 5218 esi = MEM32(ecx + 0x4); /* 0x3100E7A1: mov esi, dword ptr [ecx + 4] */ 5219 MEM32(edx + 0x4) = esi; /* 0x3100E7A4: mov dword ptr [edx + 4], esi */ 5220 esi = MEM32(edi + 0x4); /* 0x3100E7A7: mov esi, dword ptr [edi + 4] */ 5221 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E7AA: cmp ecx, dword ptr [esi + 4] */ 5222 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5223 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5224 _flag_k = FK_CMP; 5225 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7B9; /* 0x3100E7AD: jne 0x3100e7b9 */ 5226 L_3100E7AF: 5227 MEM32(esi + 0x4) = edx; /* 0x3100E7AF: mov dword ptr [esi + 4], edx */ 5228 MEM32(edx) = ecx; /* 0x3100E7B2: mov dword ptr [edx], ecx */ 5229 goto L_3100E86F; /* 0x3100E7B4: jmp 0x3100e86f */ 5230 L_3100E7B9: 5231 esi = MEM32(ecx + 0x4); /* 0x3100E7B9: mov esi, dword ptr [ecx + 4] */ 5232 /* cmp ecx, MEM32(esi) */ /* 0x3100E7BC: cmp ecx, dword ptr [esi] */ 5233 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5234 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5235 _flag_k = FK_CMP; 5236 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7C9; /* 0x3100E7BE: jne 0x3100e7c9 */ 5237 L_3100E7C0: 5238 MEM32(esi) = edx; /* 0x3100E7C0: mov dword ptr [esi], edx */ 5239 MEM32(edx) = ecx; /* 0x3100E7C2: mov dword ptr [edx], ecx */ 5240 goto L_3100E86F; /* 0x3100E7C4: jmp 0x3100e86f */ 5241 L_3100E7C9: 5242 MEM32(esi + 0x8) = edx; /* 0x3100E7C9: mov dword ptr [esi + 8], edx */ 5243 MEM32(edx) = ecx; /* 0x3100E7CC: mov dword ptr [edx], ecx */ 5244 goto L_3100E86F; /* 0x3100E7CE: jmp 0x3100e86f */ 5245 L_3100E7D3: 5246 edx = MEM32(ecx); /* 0x3100E7D3: mov edx, dword ptr [ecx] */ 5247 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E7D5: cmp byte ptr [edx + 0x3c], bl */ 5248 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5249 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5250 _flag_k = FK_NARROW(FK_CMP, 24); 5251 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E821; /* 0x3100E7D8: jne 0x3100e821 */ 5252 L_3100E7DA: 5253 edx = MEM32(ecx + 0x8); /* 0x3100E7DA: mov edx, dword ptr [ecx + 8] */ 5254 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E7DD: mov byte ptr [edx + 0x3c], bl */ 5255 edx = MEM32(ecx + 0x8); /* 0x3100E7E0: mov edx, dword ptr [ecx + 8] */ 5256 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E7E3: mov byte ptr [ecx + 0x3c], 0 */ 5257 esi = MEM32(edx); /* 0x3100E7E7: mov esi, dword ptr [edx] */ 5258 MEM32(ecx + 0x8) = esi; /* 0x3100E7E9: mov dword ptr [ecx + 8], esi */ 5259 esi = MEM32(edx); /* 0x3100E7EC: mov esi, dword ptr [edx] */ 5260 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E7EE: cmp esi, dword ptr [edi + 8] */ 5261 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5262 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5263 _flag_k = FK_CMP; 5264 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E7F6; /* 0x3100E7F1: je 0x3100e7f6 */ 5265 L_3100E7F3: 5266 MEM32(esi + 0x4) = ecx; /* 0x3100E7F3: mov dword ptr [esi + 4], ecx */ 5267 L_3100E7F6: 5268 esi = MEM32(ecx + 0x4); /* 0x3100E7F6: mov esi, dword ptr [ecx + 4] */ 5269 MEM32(edx + 0x4) = esi; /* 0x3100E7F9: mov dword ptr [edx + 4], esi */ 5270 esi = MEM32(edi + 0x4); /* 0x3100E7FC: mov esi, dword ptr [edi + 4] */ 5271 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E7FF: cmp ecx, dword ptr [esi + 4] */ 5272 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5273 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5274 _flag_k = FK_CMP; 5275 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E809; /* 0x3100E802: jne 0x3100e809 */ 5276 L_3100E804: 5277 MEM32(esi + 0x4) = edx; /* 0x3100E804: mov dword ptr [esi + 4], edx */ 5278 goto L_3100E817; /* 0x3100E807: jmp 0x3100e817 */ 5279 L_3100E809: 5280 esi = MEM32(ecx + 0x4); /* 0x3100E809: mov esi, dword ptr [ecx + 4] */ 5281 /* cmp ecx, MEM32(esi) */ /* 0x3100E80C: cmp ecx, dword ptr [esi] */ 5282 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5283 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5284 _flag_k = FK_CMP; 5285 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E814; /* 0x3100E80E: jne 0x3100e814 */ 5286 L_3100E810: 5287 MEM32(esi) = edx; /* 0x3100E810: mov dword ptr [esi], edx */ 5288 goto L_3100E817; /* 0x3100E812: jmp 0x3100e817 */ 5289 L_3100E814: 5290 MEM32(esi + 0x8) = edx; /* 0x3100E814: mov dword ptr [esi + 8], edx */ 5291 L_3100E817: 5292 MEM32(edx) = ecx; /* 0x3100E817: mov dword ptr [edx], ecx */ 5293 MEM32(ecx + 0x4) = edx; /* 0x3100E819: mov dword ptr [ecx + 4], edx */ 5294 ecx = MEM32(eax + 0x4); /* 0x3100E81C: mov ecx, dword ptr [eax + 4] */ 5295 ecx = MEM32(ecx); /* 0x3100E81F: mov ecx, dword ptr [ecx] */ 5296 L_3100E821: 5297 edx = MEM32(eax + 0x4); /* 0x3100E821: mov edx, dword ptr [eax + 4] */ 5298 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3100E824: mov dl, byte ptr [edx + 0x3c] */ 5299 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3100E827: mov byte ptr [ecx + 0x3c], dl */ 5300 edx = MEM32(eax + 0x4); /* 0x3100E82A: mov edx, dword ptr [eax + 4] */ 5301 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E82D: mov byte ptr [edx + 0x3c], bl */ 5302 ecx = MEM32(ecx); /* 0x3100E830: mov ecx, dword ptr [ecx] */ 5303 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E832: mov byte ptr [ecx + 0x3c], bl */ 5304 ecx = MEM32(eax + 0x4); /* 0x3100E835: mov ecx, dword ptr [eax + 4] */ 5305 edx = MEM32(ecx); /* 0x3100E838: mov edx, dword ptr [ecx] */ 5306 esi = MEM32(edx + 0x8); /* 0x3100E83A: mov esi, dword ptr [edx + 8] */ 5307 MEM32(ecx) = esi; /* 0x3100E83D: mov dword ptr [ecx], esi */ 5308 esi = MEM32(edx + 0x8); /* 0x3100E83F: mov esi, dword ptr [edx + 8] */ 5309 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E842: cmp esi, dword ptr [edi + 8] */ 5310 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5311 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5312 _flag_k = FK_CMP; 5313 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E84A; /* 0x3100E845: je 0x3100e84a */ 5314 L_3100E847: 5315 MEM32(esi + 0x4) = ecx; /* 0x3100E847: mov dword ptr [esi + 4], ecx */ 5316 L_3100E84A: 5317 esi = MEM32(ecx + 0x4); /* 0x3100E84A: mov esi, dword ptr [ecx + 4] */ 5318 MEM32(edx + 0x4) = esi; /* 0x3100E84D: mov dword ptr [edx + 4], esi */ 5319 esi = MEM32(edi + 0x4); /* 0x3100E850: mov esi, dword ptr [edi + 4] */ 5320 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E853: cmp ecx, dword ptr [esi + 4] */ 5321 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5322 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5323 _flag_k = FK_CMP; 5324 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E85D; /* 0x3100E856: jne 0x3100e85d */ 5325 L_3100E858: 5326 MEM32(esi + 0x4) = edx; /* 0x3100E858: mov dword ptr [esi + 4], edx */ 5327 goto L_3100E86C; /* 0x3100E85B: jmp 0x3100e86c */ 5328 L_3100E85D: 5329 esi = MEM32(ecx + 0x4); /* 0x3100E85D: mov esi, dword ptr [ecx + 4] */ 5330 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E860: cmp ecx, dword ptr [esi + 8] */ 5331 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5332 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5333 _flag_k = FK_CMP; 5334 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E86A; /* 0x3100E863: jne 0x3100e86a */ 5335 L_3100E865: 5336 MEM32(esi + 0x8) = edx; /* 0x3100E865: mov dword ptr [esi + 8], edx */ 5337 goto L_3100E86C; /* 0x3100E868: jmp 0x3100e86c */ 5338 L_3100E86A: 5339 MEM32(esi) = edx; /* 0x3100E86A: mov dword ptr [esi], edx */ 5340 L_3100E86C: 5341 MEM32(edx + 0x8) = ecx; /* 0x3100E86C: mov dword ptr [edx + 8], ecx */ 5342 L_3100E86F: 5343 MEM32(ecx + 0x4) = edx; /* 0x3100E86F: mov dword ptr [ecx + 4], edx */ 5344 L_3100E872: 5345 esi = MEM32(ebp + (-0x4)); /* 0x3100E872: mov esi, dword ptr [ebp - 4] */ 5346 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E875: mov byte ptr [eax + 0x3c], bl */ 5347 L_3100E878: 5348 ecx = esi + 0xC; /* 0x3100E878: lea ecx, [esi + 0xc] */ 5349 RECOMP_ICALL(0x3100EE80u); /* 0x3100E87B: call 0x3100ee80 */ /* not lifted */ 5350 RECOMP_FLAGS_IN(); 5351 PUSH32(esp, esi); /* 0x3100E880: push esi */ 5352 RECOMP_ICALL(0x31046858u); /* 0x3100E881: call 0x31046858 */ /* not lifted */ 5353 RECOMP_FLAGS_IN(); 5354 eax = MEM32(edi + 0x10); /* 0x3100E886: mov eax, dword ptr [edi + 0x10] */ 5355 edx = MEM32(ebp + 0xC); /* 0x3100E889: mov edx, dword ptr [ebp + 0xc] */ 5356 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5357 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5358 esp = esp + 4; /* 0x3100E88C: add esp, 4 */ 5359 _flag_k = FK_ADD; 5360 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5361 eax = eax - 1; /* 0x3100E88F: dec eax */ 5362 _flag_k = FK_DEC; 5363 MEM32(edi + 0x10) = eax; /* 0x3100E890: mov dword ptr [edi + 0x10], eax */ 5364 eax = MEM32(ebp + 0x8); /* 0x3100E893: mov eax, dword ptr [ebp + 8] */ 5365 edi = POP32_VAL(esp); /* 0x3100E896: pop edi */ 5366 esi = POP32_VAL(esp); /* 0x3100E897: pop esi */ 5367 MEM32(eax) = edx; /* 0x3100E898: mov dword ptr [eax], edx */ 5368 ebx = POP32_VAL(esp); /* 0x3100E89A: pop ebx */ 5369 esp = ebp; /* 0x3100E89B: mov esp, ebp */ 5370 ebp = POP32_VAL(esp); /* 0x3100E89D: pop ebp */ 5371 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100E89E: ret 8 */ 5372 RECOMP_REGS_OUT(); 5373 } 5374 5375 void sub_3100E605(void) { 5376 int _fpu_cmp = 0; 5377 uint32_t _cf = 0; 5378 int _df = 1; 5379 uint32_t _flag_k = FK_NONE; 5380 uint32_t _flag_a = 0, _flag_b = 0; 5381 uint32_t _itail_tgt = 0; 5382 RECOMP_REGS_LOCALS 5383 RECOMP_ENTER(0x3100E605u); 5384 5385 L_3100E605: 5386 MEM32(ebx + 0x8) = edx; /* 0x3100E605: mov dword ptr [ebx + 8], edx */ 5387 esi = MEM32(ebp + (-0x4)); /* 0x3100E608: mov esi, dword ptr [ebp - 4] */ 5388 SET_LO8(ecx, MEM8(esi + 0x3C)); /* 0x3100E60B: mov cl, byte ptr [esi + 0x3c] */ 5389 SET_LO8(ebx, 1); /* 0x3100E60E: mov bl, 1 */ 5390 /* cmp LO8(ecx), LO8(ebx) */ /* 0x3100E610: cmp cl, bl */ 5391 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5392 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5393 _flag_k = FK_NARROW(FK_CMP, 24); 5394 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E878; /* 0x3100E612: jne 0x3100e878 */ 5395 L_3100E618: 5396 ecx = MEM32(edi + 0x4); /* 0x3100E618: mov ecx, dword ptr [edi + 4] */ 5397 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3100E61B: cmp eax, dword ptr [ecx + 4] */ 5398 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 5399 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5400 _flag_k = FK_CMP; 5401 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E872; /* 0x3100E61E: je 0x3100e872 */ 5402 L_3100E624: 5403 /* cmp MEM8(eax + 0x3C), LO8(ebx) */ /* 0x3100E624: cmp byte ptr [eax + 0x3c], bl */ 5404 _flag_a = (uint32_t)(MEM8(eax + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5405 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5406 _flag_k = FK_NARROW(FK_CMP, 24); 5407 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E872; /* 0x3100E627: jne 0x3100e872 */ 5408 L_3100E62D: 5409 edx = MEM32(eax + 0x4); /* 0x3100E62D: mov edx, dword ptr [eax + 4] */ 5410 ecx = MEM32(edx); /* 0x3100E630: mov ecx, dword ptr [edx] */ 5411 /* cmp eax, ecx */ /* 0x3100E632: cmp eax, ecx */ 5412 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5413 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5414 _flag_k = FK_CMP; 5415 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6A4; /* 0x3100E634: jne 0x3100e6a4 */ 5416 L_3100E636: 5417 ecx = MEM32(edx + 0x8); /* 0x3100E636: mov ecx, dword ptr [edx + 8] */ 5418 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x3100E639: mov dl, byte ptr [ecx + 0x3c] */ 5419 /* test LO8(edx), LO8(edx) */ /* 0x3100E63C: test dl, dl */ 5420 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5421 _cf = 0; 5422 _flag_k = FK_NARROW(FK_TEST, 24); 5423 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100E68B; /* 0x3100E63E: jne 0x3100e68b */ 5424 L_3100E640: 5425 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E640: mov byte ptr [ecx + 0x3c], bl */ 5426 edx = MEM32(eax + 0x4); /* 0x3100E643: mov edx, dword ptr [eax + 4] */ 5427 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x3100E646: mov byte ptr [edx + 0x3c], 0 */ 5428 ecx = MEM32(eax + 0x4); /* 0x3100E64A: mov ecx, dword ptr [eax + 4] */ 5429 edx = MEM32(ecx + 0x8); /* 0x3100E64D: mov edx, dword ptr [ecx + 8] */ 5430 esi = MEM32(edx); /* 0x3100E650: mov esi, dword ptr [edx] */ 5431 MEM32(ecx + 0x8) = esi; /* 0x3100E652: mov dword ptr [ecx + 8], esi */ 5432 esi = MEM32(edx); /* 0x3100E655: mov esi, dword ptr [edx] */ 5433 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E657: cmp esi, dword ptr [edi + 8] */ 5434 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5435 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5436 _flag_k = FK_CMP; 5437 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E65F; /* 0x3100E65A: je 0x3100e65f */ 5438 L_3100E65C: 5439 MEM32(esi + 0x4) = ecx; /* 0x3100E65C: mov dword ptr [esi + 4], ecx */ 5440 L_3100E65F: 5441 esi = MEM32(ecx + 0x4); /* 0x3100E65F: mov esi, dword ptr [ecx + 4] */ 5442 MEM32(edx + 0x4) = esi; /* 0x3100E662: mov dword ptr [edx + 4], esi */ 5443 esi = MEM32(edi + 0x4); /* 0x3100E665: mov esi, dword ptr [edi + 4] */ 5444 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E668: cmp ecx, dword ptr [esi + 4] */ 5445 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5446 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5447 _flag_k = FK_CMP; 5448 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E672; /* 0x3100E66B: jne 0x3100e672 */ 5449 L_3100E66D: 5450 MEM32(esi + 0x4) = edx; /* 0x3100E66D: mov dword ptr [esi + 4], edx */ 5451 goto L_3100E680; /* 0x3100E670: jmp 0x3100e680 */ 5452 L_3100E672: 5453 esi = MEM32(ecx + 0x4); /* 0x3100E672: mov esi, dword ptr [ecx + 4] */ 5454 /* cmp ecx, MEM32(esi) */ /* 0x3100E675: cmp ecx, dword ptr [esi] */ 5455 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5456 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5457 _flag_k = FK_CMP; 5458 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E67D; /* 0x3100E677: jne 0x3100e67d */ 5459 L_3100E679: 5460 MEM32(esi) = edx; /* 0x3100E679: mov dword ptr [esi], edx */ 5461 goto L_3100E680; /* 0x3100E67B: jmp 0x3100e680 */ 5462 L_3100E67D: 5463 MEM32(esi + 0x8) = edx; /* 0x3100E67D: mov dword ptr [esi + 8], edx */ 5464 L_3100E680: 5465 MEM32(edx) = ecx; /* 0x3100E680: mov dword ptr [edx], ecx */ 5466 MEM32(ecx + 0x4) = edx; /* 0x3100E682: mov dword ptr [ecx + 4], edx */ 5467 ecx = MEM32(eax + 0x4); /* 0x3100E685: mov ecx, dword ptr [eax + 4] */ 5468 ecx = MEM32(ecx + 0x8); /* 0x3100E688: mov ecx, dword ptr [ecx + 8] */ 5469 L_3100E68B: 5470 edx = MEM32(ecx); /* 0x3100E68B: mov edx, dword ptr [ecx] */ 5471 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E68D: cmp byte ptr [edx + 0x3c], bl */ 5472 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5473 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5474 _flag_k = FK_NARROW(FK_CMP, 24); 5475 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E726; /* 0x3100E690: jne 0x3100e726 */ 5476 L_3100E696: 5477 edx = MEM32(ecx + 0x8); /* 0x3100E696: mov edx, dword ptr [ecx + 8] */ 5478 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E699: cmp byte ptr [edx + 0x3c], bl */ 5479 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5480 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5481 _flag_k = FK_NARROW(FK_CMP, 24); 5482 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E726; /* 0x3100E69C: jne 0x3100e726 */ 5483 L_3100E6A2: 5484 goto L_3100E70E; /* 0x3100E6A2: jmp 0x3100e70e */ 5485 L_3100E6A4: 5486 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x3100E6A4: mov dl, byte ptr [ecx + 0x3c] */ 5487 /* test LO8(edx), LO8(edx) */ /* 0x3100E6A7: test dl, dl */ 5488 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5489 _cf = 0; 5490 _flag_k = FK_NARROW(FK_TEST, 24); 5491 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100E6F7; /* 0x3100E6A9: jne 0x3100e6f7 */ 5492 L_3100E6AB: 5493 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E6AB: mov byte ptr [ecx + 0x3c], bl */ 5494 ecx = MEM32(eax + 0x4); /* 0x3100E6AE: mov ecx, dword ptr [eax + 4] */ 5495 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E6B1: mov byte ptr [ecx + 0x3c], 0 */ 5496 ecx = MEM32(eax + 0x4); /* 0x3100E6B5: mov ecx, dword ptr [eax + 4] */ 5497 edx = MEM32(ecx); /* 0x3100E6B8: mov edx, dword ptr [ecx] */ 5498 esi = MEM32(edx + 0x8); /* 0x3100E6BA: mov esi, dword ptr [edx + 8] */ 5499 MEM32(ecx) = esi; /* 0x3100E6BD: mov dword ptr [ecx], esi */ 5500 esi = MEM32(edx + 0x8); /* 0x3100E6BF: mov esi, dword ptr [edx + 8] */ 5501 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E6C2: cmp esi, dword ptr [edi + 8] */ 5502 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5503 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5504 _flag_k = FK_CMP; 5505 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E6CA; /* 0x3100E6C5: je 0x3100e6ca */ 5506 L_3100E6C7: 5507 MEM32(esi + 0x4) = ecx; /* 0x3100E6C7: mov dword ptr [esi + 4], ecx */ 5508 L_3100E6CA: 5509 esi = MEM32(ecx + 0x4); /* 0x3100E6CA: mov esi, dword ptr [ecx + 4] */ 5510 MEM32(edx + 0x4) = esi; /* 0x3100E6CD: mov dword ptr [edx + 4], esi */ 5511 esi = MEM32(edi + 0x4); /* 0x3100E6D0: mov esi, dword ptr [edi + 4] */ 5512 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E6D3: cmp ecx, dword ptr [esi + 4] */ 5513 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5514 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5515 _flag_k = FK_CMP; 5516 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6DD; /* 0x3100E6D6: jne 0x3100e6dd */ 5517 L_3100E6D8: 5518 MEM32(esi + 0x4) = edx; /* 0x3100E6D8: mov dword ptr [esi + 4], edx */ 5519 goto L_3100E6EC; /* 0x3100E6DB: jmp 0x3100e6ec */ 5520 L_3100E6DD: 5521 esi = MEM32(ecx + 0x4); /* 0x3100E6DD: mov esi, dword ptr [ecx + 4] */ 5522 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E6E0: cmp ecx, dword ptr [esi + 8] */ 5523 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5524 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5525 _flag_k = FK_CMP; 5526 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6EA; /* 0x3100E6E3: jne 0x3100e6ea */ 5527 L_3100E6E5: 5528 MEM32(esi + 0x8) = edx; /* 0x3100E6E5: mov dword ptr [esi + 8], edx */ 5529 goto L_3100E6EC; /* 0x3100E6E8: jmp 0x3100e6ec */ 5530 L_3100E6EA: 5531 MEM32(esi) = edx; /* 0x3100E6EA: mov dword ptr [esi], edx */ 5532 L_3100E6EC: 5533 MEM32(edx + 0x8) = ecx; /* 0x3100E6EC: mov dword ptr [edx + 8], ecx */ 5534 MEM32(ecx + 0x4) = edx; /* 0x3100E6EF: mov dword ptr [ecx + 4], edx */ 5535 edx = MEM32(eax + 0x4); /* 0x3100E6F2: mov edx, dword ptr [eax + 4] */ 5536 ecx = MEM32(edx); /* 0x3100E6F5: mov ecx, dword ptr [edx] */ 5537 L_3100E6F7: 5538 edx = MEM32(ecx + 0x8); /* 0x3100E6F7: mov edx, dword ptr [ecx + 8] */ 5539 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E6FA: cmp byte ptr [edx + 0x3c], bl */ 5540 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5541 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5542 _flag_k = FK_NARROW(FK_CMP, 24); 5543 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7D3; /* 0x3100E6FD: jne 0x3100e7d3 */ 5544 L_3100E703: 5545 edx = MEM32(ecx); /* 0x3100E703: mov edx, dword ptr [ecx] */ 5546 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E705: cmp byte ptr [edx + 0x3c], bl */ 5547 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5548 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5549 _flag_k = FK_NARROW(FK_CMP, 24); 5550 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7D3; /* 0x3100E708: jne 0x3100e7d3 */ 5551 L_3100E70E: 5552 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E70E: mov byte ptr [ecx + 0x3c], 0 */ 5553 ecx = MEM32(edi + 0x4); /* 0x3100E712: mov ecx, dword ptr [edi + 4] */ 5554 eax = MEM32(eax + 0x4); /* 0x3100E715: mov eax, dword ptr [eax + 4] */ 5555 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3100E718: cmp eax, dword ptr [ecx + 4] */ 5556 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 5557 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5558 _flag_k = FK_CMP; 5559 RECOMP_BACKEDGE(); 5560 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E624; /* 0x3100E71B: jne 0x3100e624 */ 5561 L_3100E721: 5562 goto L_3100E872; /* 0x3100E721: jmp 0x3100e872 */ 5563 L_3100E726: 5564 edx = MEM32(ecx + 0x8); /* 0x3100E726: mov edx, dword ptr [ecx + 8] */ 5565 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E729: cmp byte ptr [edx + 0x3c], bl */ 5566 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5567 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5568 _flag_k = FK_NARROW(FK_CMP, 24); 5569 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E777; /* 0x3100E72C: jne 0x3100e777 */ 5570 L_3100E72E: 5571 edx = MEM32(ecx); /* 0x3100E72E: mov edx, dword ptr [ecx] */ 5572 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E730: mov byte ptr [edx + 0x3c], bl */ 5573 edx = MEM32(ecx); /* 0x3100E733: mov edx, dword ptr [ecx] */ 5574 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E735: mov byte ptr [ecx + 0x3c], 0 */ 5575 esi = MEM32(edx + 0x8); /* 0x3100E739: mov esi, dword ptr [edx + 8] */ 5576 MEM32(ecx) = esi; /* 0x3100E73C: mov dword ptr [ecx], esi */ 5577 esi = MEM32(edx + 0x8); /* 0x3100E73E: mov esi, dword ptr [edx + 8] */ 5578 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E741: cmp esi, dword ptr [edi + 8] */ 5579 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5580 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5581 _flag_k = FK_CMP; 5582 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E749; /* 0x3100E744: je 0x3100e749 */ 5583 L_3100E746: 5584 MEM32(esi + 0x4) = ecx; /* 0x3100E746: mov dword ptr [esi + 4], ecx */ 5585 L_3100E749: 5586 esi = MEM32(ecx + 0x4); /* 0x3100E749: mov esi, dword ptr [ecx + 4] */ 5587 MEM32(edx + 0x4) = esi; /* 0x3100E74C: mov dword ptr [edx + 4], esi */ 5588 esi = MEM32(edi + 0x4); /* 0x3100E74F: mov esi, dword ptr [edi + 4] */ 5589 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E752: cmp ecx, dword ptr [esi + 4] */ 5590 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5591 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5592 _flag_k = FK_CMP; 5593 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E75C; /* 0x3100E755: jne 0x3100e75c */ 5594 L_3100E757: 5595 MEM32(esi + 0x4) = edx; /* 0x3100E757: mov dword ptr [esi + 4], edx */ 5596 goto L_3100E76B; /* 0x3100E75A: jmp 0x3100e76b */ 5597 L_3100E75C: 5598 esi = MEM32(ecx + 0x4); /* 0x3100E75C: mov esi, dword ptr [ecx + 4] */ 5599 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E75F: cmp ecx, dword ptr [esi + 8] */ 5600 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 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_3100E769; /* 0x3100E762: jne 0x3100e769 */ 5604 L_3100E764: 5605 MEM32(esi + 0x8) = edx; /* 0x3100E764: mov dword ptr [esi + 8], edx */ 5606 goto L_3100E76B; /* 0x3100E767: jmp 0x3100e76b */ 5607 L_3100E769: 5608 MEM32(esi) = edx; /* 0x3100E769: mov dword ptr [esi], edx */ 5609 L_3100E76B: 5610 MEM32(edx + 0x8) = ecx; /* 0x3100E76B: mov dword ptr [edx + 8], ecx */ 5611 MEM32(ecx + 0x4) = edx; /* 0x3100E76E: mov dword ptr [ecx + 4], edx */ 5612 ecx = MEM32(eax + 0x4); /* 0x3100E771: mov ecx, dword ptr [eax + 4] */ 5613 ecx = MEM32(ecx + 0x8); /* 0x3100E774: mov ecx, dword ptr [ecx + 8] */ 5614 L_3100E777: 5615 edx = MEM32(eax + 0x4); /* 0x3100E777: mov edx, dword ptr [eax + 4] */ 5616 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3100E77A: mov dl, byte ptr [edx + 0x3c] */ 5617 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3100E77D: mov byte ptr [ecx + 0x3c], dl */ 5618 edx = MEM32(eax + 0x4); /* 0x3100E780: mov edx, dword ptr [eax + 4] */ 5619 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E783: mov byte ptr [edx + 0x3c], bl */ 5620 ecx = MEM32(ecx + 0x8); /* 0x3100E786: mov ecx, dword ptr [ecx + 8] */ 5621 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E789: mov byte ptr [ecx + 0x3c], bl */ 5622 ecx = MEM32(eax + 0x4); /* 0x3100E78C: mov ecx, dword ptr [eax + 4] */ 5623 edx = MEM32(ecx + 0x8); /* 0x3100E78F: mov edx, dword ptr [ecx + 8] */ 5624 esi = MEM32(edx); /* 0x3100E792: mov esi, dword ptr [edx] */ 5625 MEM32(ecx + 0x8) = esi; /* 0x3100E794: mov dword ptr [ecx + 8], esi */ 5626 esi = MEM32(edx); /* 0x3100E797: mov esi, dword ptr [edx] */ 5627 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E799: cmp esi, dword ptr [edi + 8] */ 5628 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5629 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5630 _flag_k = FK_CMP; 5631 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E7A1; /* 0x3100E79C: je 0x3100e7a1 */ 5632 L_3100E79E: 5633 MEM32(esi + 0x4) = ecx; /* 0x3100E79E: mov dword ptr [esi + 4], ecx */ 5634 L_3100E7A1: 5635 esi = MEM32(ecx + 0x4); /* 0x3100E7A1: mov esi, dword ptr [ecx + 4] */ 5636 MEM32(edx + 0x4) = esi; /* 0x3100E7A4: mov dword ptr [edx + 4], esi */ 5637 esi = MEM32(edi + 0x4); /* 0x3100E7A7: mov esi, dword ptr [edi + 4] */ 5638 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E7AA: cmp ecx, dword ptr [esi + 4] */ 5639 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5640 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5641 _flag_k = FK_CMP; 5642 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7B9; /* 0x3100E7AD: jne 0x3100e7b9 */ 5643 L_3100E7AF: 5644 MEM32(esi + 0x4) = edx; /* 0x3100E7AF: mov dword ptr [esi + 4], edx */ 5645 MEM32(edx) = ecx; /* 0x3100E7B2: mov dword ptr [edx], ecx */ 5646 goto L_3100E86F; /* 0x3100E7B4: jmp 0x3100e86f */ 5647 L_3100E7B9: 5648 esi = MEM32(ecx + 0x4); /* 0x3100E7B9: mov esi, dword ptr [ecx + 4] */ 5649 /* cmp ecx, MEM32(esi) */ /* 0x3100E7BC: cmp ecx, dword ptr [esi] */ 5650 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5651 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5652 _flag_k = FK_CMP; 5653 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7C9; /* 0x3100E7BE: jne 0x3100e7c9 */ 5654 L_3100E7C0: 5655 MEM32(esi) = edx; /* 0x3100E7C0: mov dword ptr [esi], edx */ 5656 MEM32(edx) = ecx; /* 0x3100E7C2: mov dword ptr [edx], ecx */ 5657 goto L_3100E86F; /* 0x3100E7C4: jmp 0x3100e86f */ 5658 L_3100E7C9: 5659 MEM32(esi + 0x8) = edx; /* 0x3100E7C9: mov dword ptr [esi + 8], edx */ 5660 MEM32(edx) = ecx; /* 0x3100E7CC: mov dword ptr [edx], ecx */ 5661 goto L_3100E86F; /* 0x3100E7CE: jmp 0x3100e86f */ 5662 L_3100E7D3: 5663 edx = MEM32(ecx); /* 0x3100E7D3: mov edx, dword ptr [ecx] */ 5664 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E7D5: cmp byte ptr [edx + 0x3c], bl */ 5665 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5666 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5667 _flag_k = FK_NARROW(FK_CMP, 24); 5668 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E821; /* 0x3100E7D8: jne 0x3100e821 */ 5669 L_3100E7DA: 5670 edx = MEM32(ecx + 0x8); /* 0x3100E7DA: mov edx, dword ptr [ecx + 8] */ 5671 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E7DD: mov byte ptr [edx + 0x3c], bl */ 5672 edx = MEM32(ecx + 0x8); /* 0x3100E7E0: mov edx, dword ptr [ecx + 8] */ 5673 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E7E3: mov byte ptr [ecx + 0x3c], 0 */ 5674 esi = MEM32(edx); /* 0x3100E7E7: mov esi, dword ptr [edx] */ 5675 MEM32(ecx + 0x8) = esi; /* 0x3100E7E9: mov dword ptr [ecx + 8], esi */ 5676 esi = MEM32(edx); /* 0x3100E7EC: mov esi, dword ptr [edx] */ 5677 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E7EE: cmp esi, dword ptr [edi + 8] */ 5678 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5679 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5680 _flag_k = FK_CMP; 5681 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E7F6; /* 0x3100E7F1: je 0x3100e7f6 */ 5682 L_3100E7F3: 5683 MEM32(esi + 0x4) = ecx; /* 0x3100E7F3: mov dword ptr [esi + 4], ecx */ 5684 L_3100E7F6: 5685 esi = MEM32(ecx + 0x4); /* 0x3100E7F6: mov esi, dword ptr [ecx + 4] */ 5686 MEM32(edx + 0x4) = esi; /* 0x3100E7F9: mov dword ptr [edx + 4], esi */ 5687 esi = MEM32(edi + 0x4); /* 0x3100E7FC: mov esi, dword ptr [edi + 4] */ 5688 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E7FF: cmp ecx, dword ptr [esi + 4] */ 5689 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5690 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5691 _flag_k = FK_CMP; 5692 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E809; /* 0x3100E802: jne 0x3100e809 */ 5693 L_3100E804: 5694 MEM32(esi + 0x4) = edx; /* 0x3100E804: mov dword ptr [esi + 4], edx */ 5695 goto L_3100E817; /* 0x3100E807: jmp 0x3100e817 */ 5696 L_3100E809: 5697 esi = MEM32(ecx + 0x4); /* 0x3100E809: mov esi, dword ptr [ecx + 4] */ 5698 /* cmp ecx, MEM32(esi) */ /* 0x3100E80C: cmp ecx, dword ptr [esi] */ 5699 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5700 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5701 _flag_k = FK_CMP; 5702 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E814; /* 0x3100E80E: jne 0x3100e814 */ 5703 L_3100E810: 5704 MEM32(esi) = edx; /* 0x3100E810: mov dword ptr [esi], edx */ 5705 goto L_3100E817; /* 0x3100E812: jmp 0x3100e817 */ 5706 L_3100E814: 5707 MEM32(esi + 0x8) = edx; /* 0x3100E814: mov dword ptr [esi + 8], edx */ 5708 L_3100E817: 5709 MEM32(edx) = ecx; /* 0x3100E817: mov dword ptr [edx], ecx */ 5710 MEM32(ecx + 0x4) = edx; /* 0x3100E819: mov dword ptr [ecx + 4], edx */ 5711 ecx = MEM32(eax + 0x4); /* 0x3100E81C: mov ecx, dword ptr [eax + 4] */ 5712 ecx = MEM32(ecx); /* 0x3100E81F: mov ecx, dword ptr [ecx] */ 5713 L_3100E821: 5714 edx = MEM32(eax + 0x4); /* 0x3100E821: mov edx, dword ptr [eax + 4] */ 5715 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3100E824: mov dl, byte ptr [edx + 0x3c] */ 5716 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3100E827: mov byte ptr [ecx + 0x3c], dl */ 5717 edx = MEM32(eax + 0x4); /* 0x3100E82A: mov edx, dword ptr [eax + 4] */ 5718 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E82D: mov byte ptr [edx + 0x3c], bl */ 5719 ecx = MEM32(ecx); /* 0x3100E830: mov ecx, dword ptr [ecx] */ 5720 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E832: mov byte ptr [ecx + 0x3c], bl */ 5721 ecx = MEM32(eax + 0x4); /* 0x3100E835: mov ecx, dword ptr [eax + 4] */ 5722 edx = MEM32(ecx); /* 0x3100E838: mov edx, dword ptr [ecx] */ 5723 esi = MEM32(edx + 0x8); /* 0x3100E83A: mov esi, dword ptr [edx + 8] */ 5724 MEM32(ecx) = esi; /* 0x3100E83D: mov dword ptr [ecx], esi */ 5725 esi = MEM32(edx + 0x8); /* 0x3100E83F: mov esi, dword ptr [edx + 8] */ 5726 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E842: cmp esi, dword ptr [edi + 8] */ 5727 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5728 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5729 _flag_k = FK_CMP; 5730 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E84A; /* 0x3100E845: je 0x3100e84a */ 5731 L_3100E847: 5732 MEM32(esi + 0x4) = ecx; /* 0x3100E847: mov dword ptr [esi + 4], ecx */ 5733 L_3100E84A: 5734 esi = MEM32(ecx + 0x4); /* 0x3100E84A: mov esi, dword ptr [ecx + 4] */ 5735 MEM32(edx + 0x4) = esi; /* 0x3100E84D: mov dword ptr [edx + 4], esi */ 5736 esi = MEM32(edi + 0x4); /* 0x3100E850: mov esi, dword ptr [edi + 4] */ 5737 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E853: cmp ecx, dword ptr [esi + 4] */ 5738 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5739 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5740 _flag_k = FK_CMP; 5741 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E85D; /* 0x3100E856: jne 0x3100e85d */ 5742 L_3100E858: 5743 MEM32(esi + 0x4) = edx; /* 0x3100E858: mov dword ptr [esi + 4], edx */ 5744 goto L_3100E86C; /* 0x3100E85B: jmp 0x3100e86c */ 5745 L_3100E85D: 5746 esi = MEM32(ecx + 0x4); /* 0x3100E85D: mov esi, dword ptr [ecx + 4] */ 5747 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E860: cmp ecx, dword ptr [esi + 8] */ 5748 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5749 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5750 _flag_k = FK_CMP; 5751 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E86A; /* 0x3100E863: jne 0x3100e86a */ 5752 L_3100E865: 5753 MEM32(esi + 0x8) = edx; /* 0x3100E865: mov dword ptr [esi + 8], edx */ 5754 goto L_3100E86C; /* 0x3100E868: jmp 0x3100e86c */ 5755 L_3100E86A: 5756 MEM32(esi) = edx; /* 0x3100E86A: mov dword ptr [esi], edx */ 5757 L_3100E86C: 5758 MEM32(edx + 0x8) = ecx; /* 0x3100E86C: mov dword ptr [edx + 8], ecx */ 5759 L_3100E86F: 5760 MEM32(ecx + 0x4) = edx; /* 0x3100E86F: mov dword ptr [ecx + 4], edx */ 5761 L_3100E872: 5762 esi = MEM32(ebp + (-0x4)); /* 0x3100E872: mov esi, dword ptr [ebp - 4] */ 5763 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E875: mov byte ptr [eax + 0x3c], bl */ 5764 L_3100E878: 5765 ecx = esi + 0xC; /* 0x3100E878: lea ecx, [esi + 0xc] */ 5766 RECOMP_ICALL(0x3100EE80u); /* 0x3100E87B: call 0x3100ee80 */ /* not lifted */ 5767 RECOMP_FLAGS_IN(); 5768 PUSH32(esp, esi); /* 0x3100E880: push esi */ 5769 RECOMP_ICALL(0x31046858u); /* 0x3100E881: call 0x31046858 */ /* not lifted */ 5770 RECOMP_FLAGS_IN(); 5771 eax = MEM32(edi + 0x10); /* 0x3100E886: mov eax, dword ptr [edi + 0x10] */ 5772 edx = MEM32(ebp + 0xC); /* 0x3100E889: mov edx, dword ptr [ebp + 0xc] */ 5773 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5774 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5775 esp = esp + 4; /* 0x3100E88C: add esp, 4 */ 5776 _flag_k = FK_ADD; 5777 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5778 eax = eax - 1; /* 0x3100E88F: dec eax */ 5779 _flag_k = FK_DEC; 5780 MEM32(edi + 0x10) = eax; /* 0x3100E890: mov dword ptr [edi + 0x10], eax */ 5781 eax = MEM32(ebp + 0x8); /* 0x3100E893: mov eax, dword ptr [ebp + 8] */ 5782 edi = POP32_VAL(esp); /* 0x3100E896: pop edi */ 5783 esi = POP32_VAL(esp); /* 0x3100E897: pop esi */ 5784 MEM32(eax) = edx; /* 0x3100E898: mov dword ptr [eax], edx */ 5785 ebx = POP32_VAL(esp); /* 0x3100E89A: pop ebx */ 5786 esp = ebp; /* 0x3100E89B: mov esp, ebp */ 5787 ebp = POP32_VAL(esp); /* 0x3100E89D: pop ebp */ 5788 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100E89E: ret 8 */ 5789 RECOMP_REGS_OUT(); 5790 } 5791 5792 void sub_3100E624(void) { 5793 int _fpu_cmp = 0; 5794 uint32_t _cf = 0; 5795 int _df = 1; 5796 uint32_t _flag_k = FK_NONE; 5797 uint32_t _flag_a = 0, _flag_b = 0; 5798 uint32_t _itail_tgt = 0; 5799 RECOMP_REGS_LOCALS 5800 RECOMP_ENTER(0x3100E624u); 5801 5802 L_3100E624: 5803 /* cmp MEM8(eax + 0x3C), LO8(ebx) */ /* 0x3100E624: cmp byte ptr [eax + 0x3c], bl */ 5804 _flag_a = (uint32_t)(MEM8(eax + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5805 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5806 _flag_k = FK_NARROW(FK_CMP, 24); 5807 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E872; /* 0x3100E627: jne 0x3100e872 */ 5808 L_3100E62D: 5809 edx = MEM32(eax + 0x4); /* 0x3100E62D: mov edx, dword ptr [eax + 4] */ 5810 ecx = MEM32(edx); /* 0x3100E630: mov ecx, dword ptr [edx] */ 5811 /* cmp eax, ecx */ /* 0x3100E632: cmp eax, ecx */ 5812 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5813 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5814 _flag_k = FK_CMP; 5815 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6A4; /* 0x3100E634: jne 0x3100e6a4 */ 5816 L_3100E636: 5817 ecx = MEM32(edx + 0x8); /* 0x3100E636: mov ecx, dword ptr [edx + 8] */ 5818 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x3100E639: mov dl, byte ptr [ecx + 0x3c] */ 5819 /* test LO8(edx), LO8(edx) */ /* 0x3100E63C: test dl, dl */ 5820 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5821 _cf = 0; 5822 _flag_k = FK_NARROW(FK_TEST, 24); 5823 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100E68B; /* 0x3100E63E: jne 0x3100e68b */ 5824 L_3100E640: 5825 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E640: mov byte ptr [ecx + 0x3c], bl */ 5826 edx = MEM32(eax + 0x4); /* 0x3100E643: mov edx, dword ptr [eax + 4] */ 5827 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x3100E646: mov byte ptr [edx + 0x3c], 0 */ 5828 ecx = MEM32(eax + 0x4); /* 0x3100E64A: mov ecx, dword ptr [eax + 4] */ 5829 edx = MEM32(ecx + 0x8); /* 0x3100E64D: mov edx, dword ptr [ecx + 8] */ 5830 esi = MEM32(edx); /* 0x3100E650: mov esi, dword ptr [edx] */ 5831 MEM32(ecx + 0x8) = esi; /* 0x3100E652: mov dword ptr [ecx + 8], esi */ 5832 esi = MEM32(edx); /* 0x3100E655: mov esi, dword ptr [edx] */ 5833 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E657: cmp esi, dword ptr [edi + 8] */ 5834 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5835 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5836 _flag_k = FK_CMP; 5837 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E65F; /* 0x3100E65A: je 0x3100e65f */ 5838 L_3100E65C: 5839 MEM32(esi + 0x4) = ecx; /* 0x3100E65C: mov dword ptr [esi + 4], ecx */ 5840 L_3100E65F: 5841 esi = MEM32(ecx + 0x4); /* 0x3100E65F: mov esi, dword ptr [ecx + 4] */ 5842 MEM32(edx + 0x4) = esi; /* 0x3100E662: mov dword ptr [edx + 4], esi */ 5843 esi = MEM32(edi + 0x4); /* 0x3100E665: mov esi, dword ptr [edi + 4] */ 5844 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E668: cmp ecx, dword ptr [esi + 4] */ 5845 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5846 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5847 _flag_k = FK_CMP; 5848 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E672; /* 0x3100E66B: jne 0x3100e672 */ 5849 L_3100E66D: 5850 MEM32(esi + 0x4) = edx; /* 0x3100E66D: mov dword ptr [esi + 4], edx */ 5851 goto L_3100E680; /* 0x3100E670: jmp 0x3100e680 */ 5852 L_3100E672: 5853 esi = MEM32(ecx + 0x4); /* 0x3100E672: mov esi, dword ptr [ecx + 4] */ 5854 /* cmp ecx, MEM32(esi) */ /* 0x3100E675: cmp ecx, dword ptr [esi] */ 5855 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5856 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5857 _flag_k = FK_CMP; 5858 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E67D; /* 0x3100E677: jne 0x3100e67d */ 5859 L_3100E679: 5860 MEM32(esi) = edx; /* 0x3100E679: mov dword ptr [esi], edx */ 5861 goto L_3100E680; /* 0x3100E67B: jmp 0x3100e680 */ 5862 L_3100E67D: 5863 MEM32(esi + 0x8) = edx; /* 0x3100E67D: mov dword ptr [esi + 8], edx */ 5864 L_3100E680: 5865 MEM32(edx) = ecx; /* 0x3100E680: mov dword ptr [edx], ecx */ 5866 MEM32(ecx + 0x4) = edx; /* 0x3100E682: mov dword ptr [ecx + 4], edx */ 5867 ecx = MEM32(eax + 0x4); /* 0x3100E685: mov ecx, dword ptr [eax + 4] */ 5868 ecx = MEM32(ecx + 0x8); /* 0x3100E688: mov ecx, dword ptr [ecx + 8] */ 5869 L_3100E68B: 5870 edx = MEM32(ecx); /* 0x3100E68B: mov edx, dword ptr [ecx] */ 5871 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E68D: cmp byte ptr [edx + 0x3c], bl */ 5872 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5873 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5874 _flag_k = FK_NARROW(FK_CMP, 24); 5875 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E726; /* 0x3100E690: jne 0x3100e726 */ 5876 L_3100E696: 5877 edx = MEM32(ecx + 0x8); /* 0x3100E696: mov edx, dword ptr [ecx + 8] */ 5878 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E699: cmp byte ptr [edx + 0x3c], bl */ 5879 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5880 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5881 _flag_k = FK_NARROW(FK_CMP, 24); 5882 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E726; /* 0x3100E69C: jne 0x3100e726 */ 5883 L_3100E6A2: 5884 goto L_3100E70E; /* 0x3100E6A2: jmp 0x3100e70e */ 5885 L_3100E6A4: 5886 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x3100E6A4: mov dl, byte ptr [ecx + 0x3c] */ 5887 /* test LO8(edx), LO8(edx) */ /* 0x3100E6A7: test dl, dl */ 5888 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5889 _cf = 0; 5890 _flag_k = FK_NARROW(FK_TEST, 24); 5891 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100E6F7; /* 0x3100E6A9: jne 0x3100e6f7 */ 5892 L_3100E6AB: 5893 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E6AB: mov byte ptr [ecx + 0x3c], bl */ 5894 ecx = MEM32(eax + 0x4); /* 0x3100E6AE: mov ecx, dword ptr [eax + 4] */ 5895 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E6B1: mov byte ptr [ecx + 0x3c], 0 */ 5896 ecx = MEM32(eax + 0x4); /* 0x3100E6B5: mov ecx, dword ptr [eax + 4] */ 5897 edx = MEM32(ecx); /* 0x3100E6B8: mov edx, dword ptr [ecx] */ 5898 esi = MEM32(edx + 0x8); /* 0x3100E6BA: mov esi, dword ptr [edx + 8] */ 5899 MEM32(ecx) = esi; /* 0x3100E6BD: mov dword ptr [ecx], esi */ 5900 esi = MEM32(edx + 0x8); /* 0x3100E6BF: mov esi, dword ptr [edx + 8] */ 5901 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E6C2: cmp esi, dword ptr [edi + 8] */ 5902 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5903 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5904 _flag_k = FK_CMP; 5905 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E6CA; /* 0x3100E6C5: je 0x3100e6ca */ 5906 L_3100E6C7: 5907 MEM32(esi + 0x4) = ecx; /* 0x3100E6C7: mov dword ptr [esi + 4], ecx */ 5908 L_3100E6CA: 5909 esi = MEM32(ecx + 0x4); /* 0x3100E6CA: mov esi, dword ptr [ecx + 4] */ 5910 MEM32(edx + 0x4) = esi; /* 0x3100E6CD: mov dword ptr [edx + 4], esi */ 5911 esi = MEM32(edi + 0x4); /* 0x3100E6D0: mov esi, dword ptr [edi + 4] */ 5912 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E6D3: cmp ecx, dword ptr [esi + 4] */ 5913 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5914 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5915 _flag_k = FK_CMP; 5916 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6DD; /* 0x3100E6D6: jne 0x3100e6dd */ 5917 L_3100E6D8: 5918 MEM32(esi + 0x4) = edx; /* 0x3100E6D8: mov dword ptr [esi + 4], edx */ 5919 goto L_3100E6EC; /* 0x3100E6DB: jmp 0x3100e6ec */ 5920 L_3100E6DD: 5921 esi = MEM32(ecx + 0x4); /* 0x3100E6DD: mov esi, dword ptr [ecx + 4] */ 5922 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E6E0: cmp ecx, dword ptr [esi + 8] */ 5923 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5924 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5925 _flag_k = FK_CMP; 5926 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6EA; /* 0x3100E6E3: jne 0x3100e6ea */ 5927 L_3100E6E5: 5928 MEM32(esi + 0x8) = edx; /* 0x3100E6E5: mov dword ptr [esi + 8], edx */ 5929 goto L_3100E6EC; /* 0x3100E6E8: jmp 0x3100e6ec */ 5930 L_3100E6EA: 5931 MEM32(esi) = edx; /* 0x3100E6EA: mov dword ptr [esi], edx */ 5932 L_3100E6EC: 5933 MEM32(edx + 0x8) = ecx; /* 0x3100E6EC: mov dword ptr [edx + 8], ecx */ 5934 MEM32(ecx + 0x4) = edx; /* 0x3100E6EF: mov dword ptr [ecx + 4], edx */ 5935 edx = MEM32(eax + 0x4); /* 0x3100E6F2: mov edx, dword ptr [eax + 4] */ 5936 ecx = MEM32(edx); /* 0x3100E6F5: mov ecx, dword ptr [edx] */ 5937 L_3100E6F7: 5938 edx = MEM32(ecx + 0x8); /* 0x3100E6F7: mov edx, dword ptr [ecx + 8] */ 5939 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E6FA: cmp byte ptr [edx + 0x3c], bl */ 5940 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5941 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5942 _flag_k = FK_NARROW(FK_CMP, 24); 5943 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7D3; /* 0x3100E6FD: jne 0x3100e7d3 */ 5944 L_3100E703: 5945 edx = MEM32(ecx); /* 0x3100E703: mov edx, dword ptr [ecx] */ 5946 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E705: cmp byte ptr [edx + 0x3c], bl */ 5947 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5948 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5949 _flag_k = FK_NARROW(FK_CMP, 24); 5950 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7D3; /* 0x3100E708: jne 0x3100e7d3 */ 5951 L_3100E70E: 5952 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E70E: mov byte ptr [ecx + 0x3c], 0 */ 5953 ecx = MEM32(edi + 0x4); /* 0x3100E712: mov ecx, dword ptr [edi + 4] */ 5954 eax = MEM32(eax + 0x4); /* 0x3100E715: mov eax, dword ptr [eax + 4] */ 5955 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3100E718: cmp eax, dword ptr [ecx + 4] */ 5956 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 5957 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5958 _flag_k = FK_CMP; 5959 RECOMP_BACKEDGE(); 5960 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E624; /* 0x3100E71B: jne 0x3100e624 */ 5961 L_3100E721: 5962 goto L_3100E872; /* 0x3100E721: jmp 0x3100e872 */ 5963 L_3100E726: 5964 edx = MEM32(ecx + 0x8); /* 0x3100E726: mov edx, dword ptr [ecx + 8] */ 5965 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E729: cmp byte ptr [edx + 0x3c], bl */ 5966 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5967 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5968 _flag_k = FK_NARROW(FK_CMP, 24); 5969 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E777; /* 0x3100E72C: jne 0x3100e777 */ 5970 L_3100E72E: 5971 edx = MEM32(ecx); /* 0x3100E72E: mov edx, dword ptr [ecx] */ 5972 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E730: mov byte ptr [edx + 0x3c], bl */ 5973 edx = MEM32(ecx); /* 0x3100E733: mov edx, dword ptr [ecx] */ 5974 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E735: mov byte ptr [ecx + 0x3c], 0 */ 5975 esi = MEM32(edx + 0x8); /* 0x3100E739: mov esi, dword ptr [edx + 8] */ 5976 MEM32(ecx) = esi; /* 0x3100E73C: mov dword ptr [ecx], esi */ 5977 esi = MEM32(edx + 0x8); /* 0x3100E73E: mov esi, dword ptr [edx + 8] */ 5978 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E741: cmp esi, dword ptr [edi + 8] */ 5979 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5980 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5981 _flag_k = FK_CMP; 5982 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E749; /* 0x3100E744: je 0x3100e749 */ 5983 L_3100E746: 5984 MEM32(esi + 0x4) = ecx; /* 0x3100E746: mov dword ptr [esi + 4], ecx */ 5985 L_3100E749: 5986 esi = MEM32(ecx + 0x4); /* 0x3100E749: mov esi, dword ptr [ecx + 4] */ 5987 MEM32(edx + 0x4) = esi; /* 0x3100E74C: mov dword ptr [edx + 4], esi */ 5988 esi = MEM32(edi + 0x4); /* 0x3100E74F: mov esi, dword ptr [edi + 4] */ 5989 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E752: cmp ecx, dword ptr [esi + 4] */ 5990 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5991 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5992 _flag_k = FK_CMP; 5993 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E75C; /* 0x3100E755: jne 0x3100e75c */ 5994 L_3100E757: 5995 MEM32(esi + 0x4) = edx; /* 0x3100E757: mov dword ptr [esi + 4], edx */ 5996 goto L_3100E76B; /* 0x3100E75A: jmp 0x3100e76b */ 5997 L_3100E75C: 5998 esi = MEM32(ecx + 0x4); /* 0x3100E75C: mov esi, dword ptr [ecx + 4] */ 5999 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E75F: cmp ecx, dword ptr [esi + 8] */ 6000 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6001 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6002 _flag_k = FK_CMP; 6003 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E769; /* 0x3100E762: jne 0x3100e769 */ 6004 L_3100E764: 6005 MEM32(esi + 0x8) = edx; /* 0x3100E764: mov dword ptr [esi + 8], edx */ 6006 goto L_3100E76B; /* 0x3100E767: jmp 0x3100e76b */ 6007 L_3100E769: 6008 MEM32(esi) = edx; /* 0x3100E769: mov dword ptr [esi], edx */ 6009 L_3100E76B: 6010 MEM32(edx + 0x8) = ecx; /* 0x3100E76B: mov dword ptr [edx + 8], ecx */ 6011 MEM32(ecx + 0x4) = edx; /* 0x3100E76E: mov dword ptr [ecx + 4], edx */ 6012 ecx = MEM32(eax + 0x4); /* 0x3100E771: mov ecx, dword ptr [eax + 4] */ 6013 ecx = MEM32(ecx + 0x8); /* 0x3100E774: mov ecx, dword ptr [ecx + 8] */ 6014 L_3100E777: 6015 edx = MEM32(eax + 0x4); /* 0x3100E777: mov edx, dword ptr [eax + 4] */ 6016 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3100E77A: mov dl, byte ptr [edx + 0x3c] */ 6017 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3100E77D: mov byte ptr [ecx + 0x3c], dl */ 6018 edx = MEM32(eax + 0x4); /* 0x3100E780: mov edx, dword ptr [eax + 4] */ 6019 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E783: mov byte ptr [edx + 0x3c], bl */ 6020 ecx = MEM32(ecx + 0x8); /* 0x3100E786: mov ecx, dword ptr [ecx + 8] */ 6021 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E789: mov byte ptr [ecx + 0x3c], bl */ 6022 ecx = MEM32(eax + 0x4); /* 0x3100E78C: mov ecx, dword ptr [eax + 4] */ 6023 edx = MEM32(ecx + 0x8); /* 0x3100E78F: mov edx, dword ptr [ecx + 8] */ 6024 esi = MEM32(edx); /* 0x3100E792: mov esi, dword ptr [edx] */ 6025 MEM32(ecx + 0x8) = esi; /* 0x3100E794: mov dword ptr [ecx + 8], esi */ 6026 esi = MEM32(edx); /* 0x3100E797: mov esi, dword ptr [edx] */ 6027 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E799: cmp esi, dword ptr [edi + 8] */ 6028 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6029 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6030 _flag_k = FK_CMP; 6031 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E7A1; /* 0x3100E79C: je 0x3100e7a1 */ 6032 L_3100E79E: 6033 MEM32(esi + 0x4) = ecx; /* 0x3100E79E: mov dword ptr [esi + 4], ecx */ 6034 L_3100E7A1: 6035 esi = MEM32(ecx + 0x4); /* 0x3100E7A1: mov esi, dword ptr [ecx + 4] */ 6036 MEM32(edx + 0x4) = esi; /* 0x3100E7A4: mov dword ptr [edx + 4], esi */ 6037 esi = MEM32(edi + 0x4); /* 0x3100E7A7: mov esi, dword ptr [edi + 4] */ 6038 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E7AA: cmp ecx, dword ptr [esi + 4] */ 6039 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6040 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6041 _flag_k = FK_CMP; 6042 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7B9; /* 0x3100E7AD: jne 0x3100e7b9 */ 6043 L_3100E7AF: 6044 MEM32(esi + 0x4) = edx; /* 0x3100E7AF: mov dword ptr [esi + 4], edx */ 6045 MEM32(edx) = ecx; /* 0x3100E7B2: mov dword ptr [edx], ecx */ 6046 goto L_3100E86F; /* 0x3100E7B4: jmp 0x3100e86f */ 6047 L_3100E7B9: 6048 esi = MEM32(ecx + 0x4); /* 0x3100E7B9: mov esi, dword ptr [ecx + 4] */ 6049 /* cmp ecx, MEM32(esi) */ /* 0x3100E7BC: cmp ecx, dword ptr [esi] */ 6050 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6051 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6052 _flag_k = FK_CMP; 6053 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7C9; /* 0x3100E7BE: jne 0x3100e7c9 */ 6054 L_3100E7C0: 6055 MEM32(esi) = edx; /* 0x3100E7C0: mov dword ptr [esi], edx */ 6056 MEM32(edx) = ecx; /* 0x3100E7C2: mov dword ptr [edx], ecx */ 6057 goto L_3100E86F; /* 0x3100E7C4: jmp 0x3100e86f */ 6058 L_3100E7C9: 6059 MEM32(esi + 0x8) = edx; /* 0x3100E7C9: mov dword ptr [esi + 8], edx */ 6060 MEM32(edx) = ecx; /* 0x3100E7CC: mov dword ptr [edx], ecx */ 6061 goto L_3100E86F; /* 0x3100E7CE: jmp 0x3100e86f */ 6062 L_3100E7D3: 6063 edx = MEM32(ecx); /* 0x3100E7D3: mov edx, dword ptr [ecx] */ 6064 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E7D5: cmp byte ptr [edx + 0x3c], bl */ 6065 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6066 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6067 _flag_k = FK_NARROW(FK_CMP, 24); 6068 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E821; /* 0x3100E7D8: jne 0x3100e821 */ 6069 L_3100E7DA: 6070 edx = MEM32(ecx + 0x8); /* 0x3100E7DA: mov edx, dword ptr [ecx + 8] */ 6071 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E7DD: mov byte ptr [edx + 0x3c], bl */ 6072 edx = MEM32(ecx + 0x8); /* 0x3100E7E0: mov edx, dword ptr [ecx + 8] */ 6073 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E7E3: mov byte ptr [ecx + 0x3c], 0 */ 6074 esi = MEM32(edx); /* 0x3100E7E7: mov esi, dword ptr [edx] */ 6075 MEM32(ecx + 0x8) = esi; /* 0x3100E7E9: mov dword ptr [ecx + 8], esi */ 6076 esi = MEM32(edx); /* 0x3100E7EC: mov esi, dword ptr [edx] */ 6077 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E7EE: cmp esi, dword ptr [edi + 8] */ 6078 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6079 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6080 _flag_k = FK_CMP; 6081 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E7F6; /* 0x3100E7F1: je 0x3100e7f6 */ 6082 L_3100E7F3: 6083 MEM32(esi + 0x4) = ecx; /* 0x3100E7F3: mov dword ptr [esi + 4], ecx */ 6084 L_3100E7F6: 6085 esi = MEM32(ecx + 0x4); /* 0x3100E7F6: mov esi, dword ptr [ecx + 4] */ 6086 MEM32(edx + 0x4) = esi; /* 0x3100E7F9: mov dword ptr [edx + 4], esi */ 6087 esi = MEM32(edi + 0x4); /* 0x3100E7FC: mov esi, dword ptr [edi + 4] */ 6088 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E7FF: cmp ecx, dword ptr [esi + 4] */ 6089 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6090 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6091 _flag_k = FK_CMP; 6092 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E809; /* 0x3100E802: jne 0x3100e809 */ 6093 L_3100E804: 6094 MEM32(esi + 0x4) = edx; /* 0x3100E804: mov dword ptr [esi + 4], edx */ 6095 goto L_3100E817; /* 0x3100E807: jmp 0x3100e817 */ 6096 L_3100E809: 6097 esi = MEM32(ecx + 0x4); /* 0x3100E809: mov esi, dword ptr [ecx + 4] */ 6098 /* cmp ecx, MEM32(esi) */ /* 0x3100E80C: cmp ecx, dword ptr [esi] */ 6099 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6100 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6101 _flag_k = FK_CMP; 6102 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E814; /* 0x3100E80E: jne 0x3100e814 */ 6103 L_3100E810: 6104 MEM32(esi) = edx; /* 0x3100E810: mov dword ptr [esi], edx */ 6105 goto L_3100E817; /* 0x3100E812: jmp 0x3100e817 */ 6106 L_3100E814: 6107 MEM32(esi + 0x8) = edx; /* 0x3100E814: mov dword ptr [esi + 8], edx */ 6108 L_3100E817: 6109 MEM32(edx) = ecx; /* 0x3100E817: mov dword ptr [edx], ecx */ 6110 MEM32(ecx + 0x4) = edx; /* 0x3100E819: mov dword ptr [ecx + 4], edx */ 6111 ecx = MEM32(eax + 0x4); /* 0x3100E81C: mov ecx, dword ptr [eax + 4] */ 6112 ecx = MEM32(ecx); /* 0x3100E81F: mov ecx, dword ptr [ecx] */ 6113 L_3100E821: 6114 edx = MEM32(eax + 0x4); /* 0x3100E821: mov edx, dword ptr [eax + 4] */ 6115 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3100E824: mov dl, byte ptr [edx + 0x3c] */ 6116 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3100E827: mov byte ptr [ecx + 0x3c], dl */ 6117 edx = MEM32(eax + 0x4); /* 0x3100E82A: mov edx, dword ptr [eax + 4] */ 6118 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E82D: mov byte ptr [edx + 0x3c], bl */ 6119 ecx = MEM32(ecx); /* 0x3100E830: mov ecx, dword ptr [ecx] */ 6120 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E832: mov byte ptr [ecx + 0x3c], bl */ 6121 ecx = MEM32(eax + 0x4); /* 0x3100E835: mov ecx, dword ptr [eax + 4] */ 6122 edx = MEM32(ecx); /* 0x3100E838: mov edx, dword ptr [ecx] */ 6123 esi = MEM32(edx + 0x8); /* 0x3100E83A: mov esi, dword ptr [edx + 8] */ 6124 MEM32(ecx) = esi; /* 0x3100E83D: mov dword ptr [ecx], esi */ 6125 esi = MEM32(edx + 0x8); /* 0x3100E83F: mov esi, dword ptr [edx + 8] */ 6126 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E842: cmp esi, dword ptr [edi + 8] */ 6127 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6128 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6129 _flag_k = FK_CMP; 6130 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E84A; /* 0x3100E845: je 0x3100e84a */ 6131 L_3100E847: 6132 MEM32(esi + 0x4) = ecx; /* 0x3100E847: mov dword ptr [esi + 4], ecx */ 6133 L_3100E84A: 6134 esi = MEM32(ecx + 0x4); /* 0x3100E84A: mov esi, dword ptr [ecx + 4] */ 6135 MEM32(edx + 0x4) = esi; /* 0x3100E84D: mov dword ptr [edx + 4], esi */ 6136 esi = MEM32(edi + 0x4); /* 0x3100E850: mov esi, dword ptr [edi + 4] */ 6137 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E853: cmp ecx, dword ptr [esi + 4] */ 6138 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6139 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6140 _flag_k = FK_CMP; 6141 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E85D; /* 0x3100E856: jne 0x3100e85d */ 6142 L_3100E858: 6143 MEM32(esi + 0x4) = edx; /* 0x3100E858: mov dword ptr [esi + 4], edx */ 6144 goto L_3100E86C; /* 0x3100E85B: jmp 0x3100e86c */ 6145 L_3100E85D: 6146 esi = MEM32(ecx + 0x4); /* 0x3100E85D: mov esi, dword ptr [ecx + 4] */ 6147 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E860: cmp ecx, dword ptr [esi + 8] */ 6148 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6149 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6150 _flag_k = FK_CMP; 6151 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E86A; /* 0x3100E863: jne 0x3100e86a */ 6152 L_3100E865: 6153 MEM32(esi + 0x8) = edx; /* 0x3100E865: mov dword ptr [esi + 8], edx */ 6154 goto L_3100E86C; /* 0x3100E868: jmp 0x3100e86c */ 6155 L_3100E86A: 6156 MEM32(esi) = edx; /* 0x3100E86A: mov dword ptr [esi], edx */ 6157 L_3100E86C: 6158 MEM32(edx + 0x8) = ecx; /* 0x3100E86C: mov dword ptr [edx + 8], ecx */ 6159 L_3100E86F: 6160 MEM32(ecx + 0x4) = edx; /* 0x3100E86F: mov dword ptr [ecx + 4], edx */ 6161 L_3100E872: 6162 esi = MEM32(ebp + (-0x4)); /* 0x3100E872: mov esi, dword ptr [ebp - 4] */ 6163 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E875: mov byte ptr [eax + 0x3c], bl */ 6164 ecx = esi + 0xC; /* 0x3100E878: lea ecx, [esi + 0xc] */ 6165 RECOMP_ICALL(0x3100EE80u); /* 0x3100E87B: call 0x3100ee80 */ /* not lifted */ 6166 RECOMP_FLAGS_IN(); 6167 PUSH32(esp, esi); /* 0x3100E880: push esi */ 6168 RECOMP_ICALL(0x31046858u); /* 0x3100E881: call 0x31046858 */ /* not lifted */ 6169 RECOMP_FLAGS_IN(); 6170 eax = MEM32(edi + 0x10); /* 0x3100E886: mov eax, dword ptr [edi + 0x10] */ 6171 edx = MEM32(ebp + 0xC); /* 0x3100E889: mov edx, dword ptr [ebp + 0xc] */ 6172 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6173 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6174 esp = esp + 4; /* 0x3100E88C: add esp, 4 */ 6175 _flag_k = FK_ADD; 6176 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6177 eax = eax - 1; /* 0x3100E88F: dec eax */ 6178 _flag_k = FK_DEC; 6179 MEM32(edi + 0x10) = eax; /* 0x3100E890: mov dword ptr [edi + 0x10], eax */ 6180 eax = MEM32(ebp + 0x8); /* 0x3100E893: mov eax, dword ptr [ebp + 8] */ 6181 edi = POP32_VAL(esp); /* 0x3100E896: pop edi */ 6182 esi = POP32_VAL(esp); /* 0x3100E897: pop esi */ 6183 MEM32(eax) = edx; /* 0x3100E898: mov dword ptr [eax], edx */ 6184 ebx = POP32_VAL(esp); /* 0x3100E89A: pop ebx */ 6185 esp = ebp; /* 0x3100E89B: mov esp, ebp */ 6186 ebp = POP32_VAL(esp); /* 0x3100E89D: pop ebp */ 6187 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100E89E: ret 8 */ 6188 RECOMP_REGS_OUT(); 6189 } 6190 6191 void sub_3100E680(void) { 6192 int _fpu_cmp = 0; 6193 uint32_t _cf = 0; 6194 int _df = 1; 6195 uint32_t _flag_k = FK_NONE; 6196 uint32_t _flag_a = 0, _flag_b = 0; 6197 uint32_t _itail_tgt = 0; 6198 RECOMP_REGS_LOCALS 6199 RECOMP_ENTER(0x3100E680u); 6200 6201 goto L_3100E680; 6202 L_3100E624: 6203 /* cmp MEM8(eax + 0x3C), LO8(ebx) */ /* 0x3100E624: cmp byte ptr [eax + 0x3c], bl */ 6204 _flag_a = (uint32_t)(MEM8(eax + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6205 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6206 _flag_k = FK_NARROW(FK_CMP, 24); 6207 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E872; /* 0x3100E627: jne 0x3100e872 */ 6208 L_3100E62D: 6209 edx = MEM32(eax + 0x4); /* 0x3100E62D: mov edx, dword ptr [eax + 4] */ 6210 ecx = MEM32(edx); /* 0x3100E630: mov ecx, dword ptr [edx] */ 6211 /* cmp eax, ecx */ /* 0x3100E632: cmp eax, ecx */ 6212 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6213 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6214 _flag_k = FK_CMP; 6215 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6A4; /* 0x3100E634: jne 0x3100e6a4 */ 6216 L_3100E636: 6217 ecx = MEM32(edx + 0x8); /* 0x3100E636: mov ecx, dword ptr [edx + 8] */ 6218 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x3100E639: mov dl, byte ptr [ecx + 0x3c] */ 6219 /* test LO8(edx), LO8(edx) */ /* 0x3100E63C: test dl, dl */ 6220 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6221 _cf = 0; 6222 _flag_k = FK_NARROW(FK_TEST, 24); 6223 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100E68B; /* 0x3100E63E: jne 0x3100e68b */ 6224 L_3100E640: 6225 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E640: mov byte ptr [ecx + 0x3c], bl */ 6226 edx = MEM32(eax + 0x4); /* 0x3100E643: mov edx, dword ptr [eax + 4] */ 6227 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x3100E646: mov byte ptr [edx + 0x3c], 0 */ 6228 ecx = MEM32(eax + 0x4); /* 0x3100E64A: mov ecx, dword ptr [eax + 4] */ 6229 edx = MEM32(ecx + 0x8); /* 0x3100E64D: mov edx, dword ptr [ecx + 8] */ 6230 esi = MEM32(edx); /* 0x3100E650: mov esi, dword ptr [edx] */ 6231 MEM32(ecx + 0x8) = esi; /* 0x3100E652: mov dword ptr [ecx + 8], esi */ 6232 esi = MEM32(edx); /* 0x3100E655: mov esi, dword ptr [edx] */ 6233 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E657: cmp esi, dword ptr [edi + 8] */ 6234 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6235 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6236 _flag_k = FK_CMP; 6237 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E65F; /* 0x3100E65A: je 0x3100e65f */ 6238 L_3100E65C: 6239 MEM32(esi + 0x4) = ecx; /* 0x3100E65C: mov dword ptr [esi + 4], ecx */ 6240 L_3100E65F: 6241 esi = MEM32(ecx + 0x4); /* 0x3100E65F: mov esi, dword ptr [ecx + 4] */ 6242 MEM32(edx + 0x4) = esi; /* 0x3100E662: mov dword ptr [edx + 4], esi */ 6243 esi = MEM32(edi + 0x4); /* 0x3100E665: mov esi, dword ptr [edi + 4] */ 6244 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E668: cmp ecx, dword ptr [esi + 4] */ 6245 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6246 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6247 _flag_k = FK_CMP; 6248 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E672; /* 0x3100E66B: jne 0x3100e672 */ 6249 L_3100E66D: 6250 MEM32(esi + 0x4) = edx; /* 0x3100E66D: mov dword ptr [esi + 4], edx */ 6251 goto L_3100E680; /* 0x3100E670: jmp 0x3100e680 */ 6252 L_3100E672: 6253 esi = MEM32(ecx + 0x4); /* 0x3100E672: mov esi, dword ptr [ecx + 4] */ 6254 /* cmp ecx, MEM32(esi) */ /* 0x3100E675: cmp ecx, dword ptr [esi] */ 6255 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6256 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6257 _flag_k = FK_CMP; 6258 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E67D; /* 0x3100E677: jne 0x3100e67d */ 6259 L_3100E679: 6260 MEM32(esi) = edx; /* 0x3100E679: mov dword ptr [esi], edx */ 6261 goto L_3100E680; /* 0x3100E67B: jmp 0x3100e680 */ 6262 L_3100E67D: 6263 MEM32(esi + 0x8) = edx; /* 0x3100E67D: mov dword ptr [esi + 8], edx */ 6264 L_3100E680: 6265 MEM32(edx) = ecx; /* 0x3100E680: mov dword ptr [edx], ecx */ 6266 MEM32(ecx + 0x4) = edx; /* 0x3100E682: mov dword ptr [ecx + 4], edx */ 6267 ecx = MEM32(eax + 0x4); /* 0x3100E685: mov ecx, dword ptr [eax + 4] */ 6268 ecx = MEM32(ecx + 0x8); /* 0x3100E688: mov ecx, dword ptr [ecx + 8] */ 6269 L_3100E68B: 6270 edx = MEM32(ecx); /* 0x3100E68B: mov edx, dword ptr [ecx] */ 6271 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E68D: cmp byte ptr [edx + 0x3c], bl */ 6272 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6273 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6274 _flag_k = FK_NARROW(FK_CMP, 24); 6275 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E726; /* 0x3100E690: jne 0x3100e726 */ 6276 L_3100E696: 6277 edx = MEM32(ecx + 0x8); /* 0x3100E696: mov edx, dword ptr [ecx + 8] */ 6278 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E699: cmp byte ptr [edx + 0x3c], bl */ 6279 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6280 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6281 _flag_k = FK_NARROW(FK_CMP, 24); 6282 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E726; /* 0x3100E69C: jne 0x3100e726 */ 6283 L_3100E6A2: 6284 goto L_3100E70E; /* 0x3100E6A2: jmp 0x3100e70e */ 6285 L_3100E6A4: 6286 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x3100E6A4: mov dl, byte ptr [ecx + 0x3c] */ 6287 /* test LO8(edx), LO8(edx) */ /* 0x3100E6A7: test dl, dl */ 6288 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6289 _cf = 0; 6290 _flag_k = FK_NARROW(FK_TEST, 24); 6291 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100E6F7; /* 0x3100E6A9: jne 0x3100e6f7 */ 6292 L_3100E6AB: 6293 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E6AB: mov byte ptr [ecx + 0x3c], bl */ 6294 ecx = MEM32(eax + 0x4); /* 0x3100E6AE: mov ecx, dword ptr [eax + 4] */ 6295 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E6B1: mov byte ptr [ecx + 0x3c], 0 */ 6296 ecx = MEM32(eax + 0x4); /* 0x3100E6B5: mov ecx, dword ptr [eax + 4] */ 6297 edx = MEM32(ecx); /* 0x3100E6B8: mov edx, dword ptr [ecx] */ 6298 esi = MEM32(edx + 0x8); /* 0x3100E6BA: mov esi, dword ptr [edx + 8] */ 6299 MEM32(ecx) = esi; /* 0x3100E6BD: mov dword ptr [ecx], esi */ 6300 esi = MEM32(edx + 0x8); /* 0x3100E6BF: mov esi, dword ptr [edx + 8] */ 6301 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E6C2: cmp esi, dword ptr [edi + 8] */ 6302 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6303 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6304 _flag_k = FK_CMP; 6305 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E6CA; /* 0x3100E6C5: je 0x3100e6ca */ 6306 L_3100E6C7: 6307 MEM32(esi + 0x4) = ecx; /* 0x3100E6C7: mov dword ptr [esi + 4], ecx */ 6308 L_3100E6CA: 6309 esi = MEM32(ecx + 0x4); /* 0x3100E6CA: mov esi, dword ptr [ecx + 4] */ 6310 MEM32(edx + 0x4) = esi; /* 0x3100E6CD: mov dword ptr [edx + 4], esi */ 6311 esi = MEM32(edi + 0x4); /* 0x3100E6D0: mov esi, dword ptr [edi + 4] */ 6312 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E6D3: cmp ecx, dword ptr [esi + 4] */ 6313 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6314 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6315 _flag_k = FK_CMP; 6316 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6DD; /* 0x3100E6D6: jne 0x3100e6dd */ 6317 L_3100E6D8: 6318 MEM32(esi + 0x4) = edx; /* 0x3100E6D8: mov dword ptr [esi + 4], edx */ 6319 goto L_3100E6EC; /* 0x3100E6DB: jmp 0x3100e6ec */ 6320 L_3100E6DD: 6321 esi = MEM32(ecx + 0x4); /* 0x3100E6DD: mov esi, dword ptr [ecx + 4] */ 6322 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E6E0: cmp ecx, dword ptr [esi + 8] */ 6323 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6324 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6325 _flag_k = FK_CMP; 6326 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6EA; /* 0x3100E6E3: jne 0x3100e6ea */ 6327 L_3100E6E5: 6328 MEM32(esi + 0x8) = edx; /* 0x3100E6E5: mov dword ptr [esi + 8], edx */ 6329 goto L_3100E6EC; /* 0x3100E6E8: jmp 0x3100e6ec */ 6330 L_3100E6EA: 6331 MEM32(esi) = edx; /* 0x3100E6EA: mov dword ptr [esi], edx */ 6332 L_3100E6EC: 6333 MEM32(edx + 0x8) = ecx; /* 0x3100E6EC: mov dword ptr [edx + 8], ecx */ 6334 MEM32(ecx + 0x4) = edx; /* 0x3100E6EF: mov dword ptr [ecx + 4], edx */ 6335 edx = MEM32(eax + 0x4); /* 0x3100E6F2: mov edx, dword ptr [eax + 4] */ 6336 ecx = MEM32(edx); /* 0x3100E6F5: mov ecx, dword ptr [edx] */ 6337 L_3100E6F7: 6338 edx = MEM32(ecx + 0x8); /* 0x3100E6F7: mov edx, dword ptr [ecx + 8] */ 6339 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E6FA: cmp byte ptr [edx + 0x3c], bl */ 6340 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6341 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6342 _flag_k = FK_NARROW(FK_CMP, 24); 6343 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7D3; /* 0x3100E6FD: jne 0x3100e7d3 */ 6344 L_3100E703: 6345 edx = MEM32(ecx); /* 0x3100E703: mov edx, dword ptr [ecx] */ 6346 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E705: cmp byte ptr [edx + 0x3c], bl */ 6347 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6348 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6349 _flag_k = FK_NARROW(FK_CMP, 24); 6350 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7D3; /* 0x3100E708: jne 0x3100e7d3 */ 6351 L_3100E70E: 6352 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E70E: mov byte ptr [ecx + 0x3c], 0 */ 6353 ecx = MEM32(edi + 0x4); /* 0x3100E712: mov ecx, dword ptr [edi + 4] */ 6354 eax = MEM32(eax + 0x4); /* 0x3100E715: mov eax, dword ptr [eax + 4] */ 6355 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3100E718: cmp eax, dword ptr [ecx + 4] */ 6356 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 6357 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6358 _flag_k = FK_CMP; 6359 RECOMP_BACKEDGE(); 6360 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E624; /* 0x3100E71B: jne 0x3100e624 */ 6361 L_3100E721: 6362 goto L_3100E872; /* 0x3100E721: jmp 0x3100e872 */ 6363 L_3100E726: 6364 edx = MEM32(ecx + 0x8); /* 0x3100E726: mov edx, dword ptr [ecx + 8] */ 6365 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E729: cmp byte ptr [edx + 0x3c], bl */ 6366 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6367 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6368 _flag_k = FK_NARROW(FK_CMP, 24); 6369 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E777; /* 0x3100E72C: jne 0x3100e777 */ 6370 L_3100E72E: 6371 edx = MEM32(ecx); /* 0x3100E72E: mov edx, dword ptr [ecx] */ 6372 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E730: mov byte ptr [edx + 0x3c], bl */ 6373 edx = MEM32(ecx); /* 0x3100E733: mov edx, dword ptr [ecx] */ 6374 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E735: mov byte ptr [ecx + 0x3c], 0 */ 6375 esi = MEM32(edx + 0x8); /* 0x3100E739: mov esi, dword ptr [edx + 8] */ 6376 MEM32(ecx) = esi; /* 0x3100E73C: mov dword ptr [ecx], esi */ 6377 esi = MEM32(edx + 0x8); /* 0x3100E73E: mov esi, dword ptr [edx + 8] */ 6378 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E741: cmp esi, dword ptr [edi + 8] */ 6379 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6380 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6381 _flag_k = FK_CMP; 6382 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E749; /* 0x3100E744: je 0x3100e749 */ 6383 L_3100E746: 6384 MEM32(esi + 0x4) = ecx; /* 0x3100E746: mov dword ptr [esi + 4], ecx */ 6385 L_3100E749: 6386 esi = MEM32(ecx + 0x4); /* 0x3100E749: mov esi, dword ptr [ecx + 4] */ 6387 MEM32(edx + 0x4) = esi; /* 0x3100E74C: mov dword ptr [edx + 4], esi */ 6388 esi = MEM32(edi + 0x4); /* 0x3100E74F: mov esi, dword ptr [edi + 4] */ 6389 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E752: cmp ecx, dword ptr [esi + 4] */ 6390 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6391 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6392 _flag_k = FK_CMP; 6393 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E75C; /* 0x3100E755: jne 0x3100e75c */ 6394 L_3100E757: 6395 MEM32(esi + 0x4) = edx; /* 0x3100E757: mov dword ptr [esi + 4], edx */ 6396 goto L_3100E76B; /* 0x3100E75A: jmp 0x3100e76b */ 6397 L_3100E75C: 6398 esi = MEM32(ecx + 0x4); /* 0x3100E75C: mov esi, dword ptr [ecx + 4] */ 6399 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E75F: cmp ecx, dword ptr [esi + 8] */ 6400 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6401 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6402 _flag_k = FK_CMP; 6403 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E769; /* 0x3100E762: jne 0x3100e769 */ 6404 L_3100E764: 6405 MEM32(esi + 0x8) = edx; /* 0x3100E764: mov dword ptr [esi + 8], edx */ 6406 goto L_3100E76B; /* 0x3100E767: jmp 0x3100e76b */ 6407 L_3100E769: 6408 MEM32(esi) = edx; /* 0x3100E769: mov dword ptr [esi], edx */ 6409 L_3100E76B: 6410 MEM32(edx + 0x8) = ecx; /* 0x3100E76B: mov dword ptr [edx + 8], ecx */ 6411 MEM32(ecx + 0x4) = edx; /* 0x3100E76E: mov dword ptr [ecx + 4], edx */ 6412 ecx = MEM32(eax + 0x4); /* 0x3100E771: mov ecx, dword ptr [eax + 4] */ 6413 ecx = MEM32(ecx + 0x8); /* 0x3100E774: mov ecx, dword ptr [ecx + 8] */ 6414 L_3100E777: 6415 edx = MEM32(eax + 0x4); /* 0x3100E777: mov edx, dword ptr [eax + 4] */ 6416 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3100E77A: mov dl, byte ptr [edx + 0x3c] */ 6417 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3100E77D: mov byte ptr [ecx + 0x3c], dl */ 6418 edx = MEM32(eax + 0x4); /* 0x3100E780: mov edx, dword ptr [eax + 4] */ 6419 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E783: mov byte ptr [edx + 0x3c], bl */ 6420 ecx = MEM32(ecx + 0x8); /* 0x3100E786: mov ecx, dword ptr [ecx + 8] */ 6421 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E789: mov byte ptr [ecx + 0x3c], bl */ 6422 ecx = MEM32(eax + 0x4); /* 0x3100E78C: mov ecx, dword ptr [eax + 4] */ 6423 edx = MEM32(ecx + 0x8); /* 0x3100E78F: mov edx, dword ptr [ecx + 8] */ 6424 esi = MEM32(edx); /* 0x3100E792: mov esi, dword ptr [edx] */ 6425 MEM32(ecx + 0x8) = esi; /* 0x3100E794: mov dword ptr [ecx + 8], esi */ 6426 esi = MEM32(edx); /* 0x3100E797: mov esi, dword ptr [edx] */ 6427 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E799: cmp esi, dword ptr [edi + 8] */ 6428 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6429 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6430 _flag_k = FK_CMP; 6431 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E7A1; /* 0x3100E79C: je 0x3100e7a1 */ 6432 L_3100E79E: 6433 MEM32(esi + 0x4) = ecx; /* 0x3100E79E: mov dword ptr [esi + 4], ecx */ 6434 L_3100E7A1: 6435 esi = MEM32(ecx + 0x4); /* 0x3100E7A1: mov esi, dword ptr [ecx + 4] */ 6436 MEM32(edx + 0x4) = esi; /* 0x3100E7A4: mov dword ptr [edx + 4], esi */ 6437 esi = MEM32(edi + 0x4); /* 0x3100E7A7: mov esi, dword ptr [edi + 4] */ 6438 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E7AA: cmp ecx, dword ptr [esi + 4] */ 6439 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6440 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6441 _flag_k = FK_CMP; 6442 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7B9; /* 0x3100E7AD: jne 0x3100e7b9 */ 6443 L_3100E7AF: 6444 MEM32(esi + 0x4) = edx; /* 0x3100E7AF: mov dword ptr [esi + 4], edx */ 6445 MEM32(edx) = ecx; /* 0x3100E7B2: mov dword ptr [edx], ecx */ 6446 goto L_3100E86F; /* 0x3100E7B4: jmp 0x3100e86f */ 6447 L_3100E7B9: 6448 esi = MEM32(ecx + 0x4); /* 0x3100E7B9: mov esi, dword ptr [ecx + 4] */ 6449 /* cmp ecx, MEM32(esi) */ /* 0x3100E7BC: cmp ecx, dword ptr [esi] */ 6450 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6451 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6452 _flag_k = FK_CMP; 6453 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7C9; /* 0x3100E7BE: jne 0x3100e7c9 */ 6454 L_3100E7C0: 6455 MEM32(esi) = edx; /* 0x3100E7C0: mov dword ptr [esi], edx */ 6456 MEM32(edx) = ecx; /* 0x3100E7C2: mov dword ptr [edx], ecx */ 6457 goto L_3100E86F; /* 0x3100E7C4: jmp 0x3100e86f */ 6458 L_3100E7C9: 6459 MEM32(esi + 0x8) = edx; /* 0x3100E7C9: mov dword ptr [esi + 8], edx */ 6460 MEM32(edx) = ecx; /* 0x3100E7CC: mov dword ptr [edx], ecx */ 6461 goto L_3100E86F; /* 0x3100E7CE: jmp 0x3100e86f */ 6462 L_3100E7D3: 6463 edx = MEM32(ecx); /* 0x3100E7D3: mov edx, dword ptr [ecx] */ 6464 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E7D5: cmp byte ptr [edx + 0x3c], bl */ 6465 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6466 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6467 _flag_k = FK_NARROW(FK_CMP, 24); 6468 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E821; /* 0x3100E7D8: jne 0x3100e821 */ 6469 L_3100E7DA: 6470 edx = MEM32(ecx + 0x8); /* 0x3100E7DA: mov edx, dword ptr [ecx + 8] */ 6471 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E7DD: mov byte ptr [edx + 0x3c], bl */ 6472 edx = MEM32(ecx + 0x8); /* 0x3100E7E0: mov edx, dword ptr [ecx + 8] */ 6473 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E7E3: mov byte ptr [ecx + 0x3c], 0 */ 6474 esi = MEM32(edx); /* 0x3100E7E7: mov esi, dword ptr [edx] */ 6475 MEM32(ecx + 0x8) = esi; /* 0x3100E7E9: mov dword ptr [ecx + 8], esi */ 6476 esi = MEM32(edx); /* 0x3100E7EC: mov esi, dword ptr [edx] */ 6477 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E7EE: cmp esi, dword ptr [edi + 8] */ 6478 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6479 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6480 _flag_k = FK_CMP; 6481 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E7F6; /* 0x3100E7F1: je 0x3100e7f6 */ 6482 L_3100E7F3: 6483 MEM32(esi + 0x4) = ecx; /* 0x3100E7F3: mov dword ptr [esi + 4], ecx */ 6484 L_3100E7F6: 6485 esi = MEM32(ecx + 0x4); /* 0x3100E7F6: mov esi, dword ptr [ecx + 4] */ 6486 MEM32(edx + 0x4) = esi; /* 0x3100E7F9: mov dword ptr [edx + 4], esi */ 6487 esi = MEM32(edi + 0x4); /* 0x3100E7FC: mov esi, dword ptr [edi + 4] */ 6488 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E7FF: cmp ecx, dword ptr [esi + 4] */ 6489 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6490 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6491 _flag_k = FK_CMP; 6492 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E809; /* 0x3100E802: jne 0x3100e809 */ 6493 L_3100E804: 6494 MEM32(esi + 0x4) = edx; /* 0x3100E804: mov dword ptr [esi + 4], edx */ 6495 goto L_3100E817; /* 0x3100E807: jmp 0x3100e817 */ 6496 L_3100E809: 6497 esi = MEM32(ecx + 0x4); /* 0x3100E809: mov esi, dword ptr [ecx + 4] */ 6498 /* cmp ecx, MEM32(esi) */ /* 0x3100E80C: cmp ecx, dword ptr [esi] */ 6499 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6500 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6501 _flag_k = FK_CMP; 6502 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E814; /* 0x3100E80E: jne 0x3100e814 */ 6503 L_3100E810: 6504 MEM32(esi) = edx; /* 0x3100E810: mov dword ptr [esi], edx */ 6505 goto L_3100E817; /* 0x3100E812: jmp 0x3100e817 */ 6506 L_3100E814: 6507 MEM32(esi + 0x8) = edx; /* 0x3100E814: mov dword ptr [esi + 8], edx */ 6508 L_3100E817: 6509 MEM32(edx) = ecx; /* 0x3100E817: mov dword ptr [edx], ecx */ 6510 MEM32(ecx + 0x4) = edx; /* 0x3100E819: mov dword ptr [ecx + 4], edx */ 6511 ecx = MEM32(eax + 0x4); /* 0x3100E81C: mov ecx, dword ptr [eax + 4] */ 6512 ecx = MEM32(ecx); /* 0x3100E81F: mov ecx, dword ptr [ecx] */ 6513 L_3100E821: 6514 edx = MEM32(eax + 0x4); /* 0x3100E821: mov edx, dword ptr [eax + 4] */ 6515 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3100E824: mov dl, byte ptr [edx + 0x3c] */ 6516 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3100E827: mov byte ptr [ecx + 0x3c], dl */ 6517 edx = MEM32(eax + 0x4); /* 0x3100E82A: mov edx, dword ptr [eax + 4] */ 6518 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E82D: mov byte ptr [edx + 0x3c], bl */ 6519 ecx = MEM32(ecx); /* 0x3100E830: mov ecx, dword ptr [ecx] */ 6520 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E832: mov byte ptr [ecx + 0x3c], bl */ 6521 ecx = MEM32(eax + 0x4); /* 0x3100E835: mov ecx, dword ptr [eax + 4] */ 6522 edx = MEM32(ecx); /* 0x3100E838: mov edx, dword ptr [ecx] */ 6523 esi = MEM32(edx + 0x8); /* 0x3100E83A: mov esi, dword ptr [edx + 8] */ 6524 MEM32(ecx) = esi; /* 0x3100E83D: mov dword ptr [ecx], esi */ 6525 esi = MEM32(edx + 0x8); /* 0x3100E83F: mov esi, dword ptr [edx + 8] */ 6526 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E842: cmp esi, dword ptr [edi + 8] */ 6527 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6528 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6529 _flag_k = FK_CMP; 6530 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E84A; /* 0x3100E845: je 0x3100e84a */ 6531 L_3100E847: 6532 MEM32(esi + 0x4) = ecx; /* 0x3100E847: mov dword ptr [esi + 4], ecx */ 6533 L_3100E84A: 6534 esi = MEM32(ecx + 0x4); /* 0x3100E84A: mov esi, dword ptr [ecx + 4] */ 6535 MEM32(edx + 0x4) = esi; /* 0x3100E84D: mov dword ptr [edx + 4], esi */ 6536 esi = MEM32(edi + 0x4); /* 0x3100E850: mov esi, dword ptr [edi + 4] */ 6537 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E853: cmp ecx, dword ptr [esi + 4] */ 6538 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6539 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6540 _flag_k = FK_CMP; 6541 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E85D; /* 0x3100E856: jne 0x3100e85d */ 6542 L_3100E858: 6543 MEM32(esi + 0x4) = edx; /* 0x3100E858: mov dword ptr [esi + 4], edx */ 6544 goto L_3100E86C; /* 0x3100E85B: jmp 0x3100e86c */ 6545 L_3100E85D: 6546 esi = MEM32(ecx + 0x4); /* 0x3100E85D: mov esi, dword ptr [ecx + 4] */ 6547 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E860: cmp ecx, dword ptr [esi + 8] */ 6548 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6549 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6550 _flag_k = FK_CMP; 6551 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E86A; /* 0x3100E863: jne 0x3100e86a */ 6552 L_3100E865: 6553 MEM32(esi + 0x8) = edx; /* 0x3100E865: mov dword ptr [esi + 8], edx */ 6554 goto L_3100E86C; /* 0x3100E868: jmp 0x3100e86c */ 6555 L_3100E86A: 6556 MEM32(esi) = edx; /* 0x3100E86A: mov dword ptr [esi], edx */ 6557 L_3100E86C: 6558 MEM32(edx + 0x8) = ecx; /* 0x3100E86C: mov dword ptr [edx + 8], ecx */ 6559 L_3100E86F: 6560 MEM32(ecx + 0x4) = edx; /* 0x3100E86F: mov dword ptr [ecx + 4], edx */ 6561 L_3100E872: 6562 esi = MEM32(ebp + (-0x4)); /* 0x3100E872: mov esi, dword ptr [ebp - 4] */ 6563 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E875: mov byte ptr [eax + 0x3c], bl */ 6564 ecx = esi + 0xC; /* 0x3100E878: lea ecx, [esi + 0xc] */ 6565 RECOMP_ICALL(0x3100EE80u); /* 0x3100E87B: call 0x3100ee80 */ /* not lifted */ 6566 RECOMP_FLAGS_IN(); 6567 PUSH32(esp, esi); /* 0x3100E880: push esi */ 6568 RECOMP_ICALL(0x31046858u); /* 0x3100E881: call 0x31046858 */ /* not lifted */ 6569 RECOMP_FLAGS_IN(); 6570 eax = MEM32(edi + 0x10); /* 0x3100E886: mov eax, dword ptr [edi + 0x10] */ 6571 edx = MEM32(ebp + 0xC); /* 0x3100E889: mov edx, dword ptr [ebp + 0xc] */ 6572 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6573 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6574 esp = esp + 4; /* 0x3100E88C: add esp, 4 */ 6575 _flag_k = FK_ADD; 6576 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6577 eax = eax - 1; /* 0x3100E88F: dec eax */ 6578 _flag_k = FK_DEC; 6579 MEM32(edi + 0x10) = eax; /* 0x3100E890: mov dword ptr [edi + 0x10], eax */ 6580 eax = MEM32(ebp + 0x8); /* 0x3100E893: mov eax, dword ptr [ebp + 8] */ 6581 edi = POP32_VAL(esp); /* 0x3100E896: pop edi */ 6582 esi = POP32_VAL(esp); /* 0x3100E897: pop esi */ 6583 MEM32(eax) = edx; /* 0x3100E898: mov dword ptr [eax], edx */ 6584 ebx = POP32_VAL(esp); /* 0x3100E89A: pop ebx */ 6585 esp = ebp; /* 0x3100E89B: mov esp, ebp */ 6586 ebp = POP32_VAL(esp); /* 0x3100E89D: pop ebp */ 6587 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100E89E: ret 8 */ 6588 RECOMP_REGS_OUT(); 6589 } 6590 6591 void sub_3100E68B(void) { 6592 int _fpu_cmp = 0; 6593 uint32_t _cf = 0; 6594 int _df = 1; 6595 uint32_t _flag_k = FK_NONE; 6596 uint32_t _flag_a = 0, _flag_b = 0; 6597 uint32_t _itail_tgt = 0; 6598 RECOMP_REGS_LOCALS 6599 RECOMP_ENTER(0x3100E68Bu); 6600 6601 goto L_3100E68B; 6602 L_3100E624: 6603 /* cmp MEM8(eax + 0x3C), LO8(ebx) */ /* 0x3100E624: cmp byte ptr [eax + 0x3c], bl */ 6604 _flag_a = (uint32_t)(MEM8(eax + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6605 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6606 _flag_k = FK_NARROW(FK_CMP, 24); 6607 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E872; /* 0x3100E627: jne 0x3100e872 */ 6608 L_3100E62D: 6609 edx = MEM32(eax + 0x4); /* 0x3100E62D: mov edx, dword ptr [eax + 4] */ 6610 ecx = MEM32(edx); /* 0x3100E630: mov ecx, dword ptr [edx] */ 6611 /* cmp eax, ecx */ /* 0x3100E632: cmp eax, ecx */ 6612 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6613 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6614 _flag_k = FK_CMP; 6615 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6A4; /* 0x3100E634: jne 0x3100e6a4 */ 6616 L_3100E636: 6617 ecx = MEM32(edx + 0x8); /* 0x3100E636: mov ecx, dword ptr [edx + 8] */ 6618 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x3100E639: mov dl, byte ptr [ecx + 0x3c] */ 6619 /* test LO8(edx), LO8(edx) */ /* 0x3100E63C: test dl, dl */ 6620 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6621 _cf = 0; 6622 _flag_k = FK_NARROW(FK_TEST, 24); 6623 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100E68B; /* 0x3100E63E: jne 0x3100e68b */ 6624 L_3100E640: 6625 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E640: mov byte ptr [ecx + 0x3c], bl */ 6626 edx = MEM32(eax + 0x4); /* 0x3100E643: mov edx, dword ptr [eax + 4] */ 6627 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x3100E646: mov byte ptr [edx + 0x3c], 0 */ 6628 ecx = MEM32(eax + 0x4); /* 0x3100E64A: mov ecx, dword ptr [eax + 4] */ 6629 edx = MEM32(ecx + 0x8); /* 0x3100E64D: mov edx, dword ptr [ecx + 8] */ 6630 esi = MEM32(edx); /* 0x3100E650: mov esi, dword ptr [edx] */ 6631 MEM32(ecx + 0x8) = esi; /* 0x3100E652: mov dword ptr [ecx + 8], esi */ 6632 esi = MEM32(edx); /* 0x3100E655: mov esi, dword ptr [edx] */ 6633 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E657: cmp esi, dword ptr [edi + 8] */ 6634 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6635 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6636 _flag_k = FK_CMP; 6637 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E65F; /* 0x3100E65A: je 0x3100e65f */ 6638 L_3100E65C: 6639 MEM32(esi + 0x4) = ecx; /* 0x3100E65C: mov dword ptr [esi + 4], ecx */ 6640 L_3100E65F: 6641 esi = MEM32(ecx + 0x4); /* 0x3100E65F: mov esi, dword ptr [ecx + 4] */ 6642 MEM32(edx + 0x4) = esi; /* 0x3100E662: mov dword ptr [edx + 4], esi */ 6643 esi = MEM32(edi + 0x4); /* 0x3100E665: mov esi, dword ptr [edi + 4] */ 6644 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E668: cmp ecx, dword ptr [esi + 4] */ 6645 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6646 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6647 _flag_k = FK_CMP; 6648 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E672; /* 0x3100E66B: jne 0x3100e672 */ 6649 L_3100E66D: 6650 MEM32(esi + 0x4) = edx; /* 0x3100E66D: mov dword ptr [esi + 4], edx */ 6651 goto L_3100E680; /* 0x3100E670: jmp 0x3100e680 */ 6652 L_3100E672: 6653 esi = MEM32(ecx + 0x4); /* 0x3100E672: mov esi, dword ptr [ecx + 4] */ 6654 /* cmp ecx, MEM32(esi) */ /* 0x3100E675: cmp ecx, dword ptr [esi] */ 6655 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6656 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6657 _flag_k = FK_CMP; 6658 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E67D; /* 0x3100E677: jne 0x3100e67d */ 6659 L_3100E679: 6660 MEM32(esi) = edx; /* 0x3100E679: mov dword ptr [esi], edx */ 6661 goto L_3100E680; /* 0x3100E67B: jmp 0x3100e680 */ 6662 L_3100E67D: 6663 MEM32(esi + 0x8) = edx; /* 0x3100E67D: mov dword ptr [esi + 8], edx */ 6664 L_3100E680: 6665 MEM32(edx) = ecx; /* 0x3100E680: mov dword ptr [edx], ecx */ 6666 MEM32(ecx + 0x4) = edx; /* 0x3100E682: mov dword ptr [ecx + 4], edx */ 6667 ecx = MEM32(eax + 0x4); /* 0x3100E685: mov ecx, dword ptr [eax + 4] */ 6668 ecx = MEM32(ecx + 0x8); /* 0x3100E688: mov ecx, dword ptr [ecx + 8] */ 6669 L_3100E68B: 6670 edx = MEM32(ecx); /* 0x3100E68B: mov edx, dword ptr [ecx] */ 6671 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E68D: cmp byte ptr [edx + 0x3c], bl */ 6672 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6673 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6674 _flag_k = FK_NARROW(FK_CMP, 24); 6675 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E726; /* 0x3100E690: jne 0x3100e726 */ 6676 L_3100E696: 6677 edx = MEM32(ecx + 0x8); /* 0x3100E696: mov edx, dword ptr [ecx + 8] */ 6678 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E699: cmp byte ptr [edx + 0x3c], bl */ 6679 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6680 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6681 _flag_k = FK_NARROW(FK_CMP, 24); 6682 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E726; /* 0x3100E69C: jne 0x3100e726 */ 6683 L_3100E6A2: 6684 goto L_3100E70E; /* 0x3100E6A2: jmp 0x3100e70e */ 6685 L_3100E6A4: 6686 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x3100E6A4: mov dl, byte ptr [ecx + 0x3c] */ 6687 /* test LO8(edx), LO8(edx) */ /* 0x3100E6A7: test dl, dl */ 6688 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6689 _cf = 0; 6690 _flag_k = FK_NARROW(FK_TEST, 24); 6691 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100E6F7; /* 0x3100E6A9: jne 0x3100e6f7 */ 6692 L_3100E6AB: 6693 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E6AB: mov byte ptr [ecx + 0x3c], bl */ 6694 ecx = MEM32(eax + 0x4); /* 0x3100E6AE: mov ecx, dword ptr [eax + 4] */ 6695 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E6B1: mov byte ptr [ecx + 0x3c], 0 */ 6696 ecx = MEM32(eax + 0x4); /* 0x3100E6B5: mov ecx, dword ptr [eax + 4] */ 6697 edx = MEM32(ecx); /* 0x3100E6B8: mov edx, dword ptr [ecx] */ 6698 esi = MEM32(edx + 0x8); /* 0x3100E6BA: mov esi, dword ptr [edx + 8] */ 6699 MEM32(ecx) = esi; /* 0x3100E6BD: mov dword ptr [ecx], esi */ 6700 esi = MEM32(edx + 0x8); /* 0x3100E6BF: mov esi, dword ptr [edx + 8] */ 6701 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E6C2: cmp esi, dword ptr [edi + 8] */ 6702 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6703 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6704 _flag_k = FK_CMP; 6705 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E6CA; /* 0x3100E6C5: je 0x3100e6ca */ 6706 L_3100E6C7: 6707 MEM32(esi + 0x4) = ecx; /* 0x3100E6C7: mov dword ptr [esi + 4], ecx */ 6708 L_3100E6CA: 6709 esi = MEM32(ecx + 0x4); /* 0x3100E6CA: mov esi, dword ptr [ecx + 4] */ 6710 MEM32(edx + 0x4) = esi; /* 0x3100E6CD: mov dword ptr [edx + 4], esi */ 6711 esi = MEM32(edi + 0x4); /* 0x3100E6D0: mov esi, dword ptr [edi + 4] */ 6712 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E6D3: cmp ecx, dword ptr [esi + 4] */ 6713 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6714 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6715 _flag_k = FK_CMP; 6716 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6DD; /* 0x3100E6D6: jne 0x3100e6dd */ 6717 L_3100E6D8: 6718 MEM32(esi + 0x4) = edx; /* 0x3100E6D8: mov dword ptr [esi + 4], edx */ 6719 goto L_3100E6EC; /* 0x3100E6DB: jmp 0x3100e6ec */ 6720 L_3100E6DD: 6721 esi = MEM32(ecx + 0x4); /* 0x3100E6DD: mov esi, dword ptr [ecx + 4] */ 6722 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E6E0: cmp ecx, dword ptr [esi + 8] */ 6723 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6724 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6725 _flag_k = FK_CMP; 6726 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6EA; /* 0x3100E6E3: jne 0x3100e6ea */ 6727 L_3100E6E5: 6728 MEM32(esi + 0x8) = edx; /* 0x3100E6E5: mov dword ptr [esi + 8], edx */ 6729 goto L_3100E6EC; /* 0x3100E6E8: jmp 0x3100e6ec */ 6730 L_3100E6EA: 6731 MEM32(esi) = edx; /* 0x3100E6EA: mov dword ptr [esi], edx */ 6732 L_3100E6EC: 6733 MEM32(edx + 0x8) = ecx; /* 0x3100E6EC: mov dword ptr [edx + 8], ecx */ 6734 MEM32(ecx + 0x4) = edx; /* 0x3100E6EF: mov dword ptr [ecx + 4], edx */ 6735 edx = MEM32(eax + 0x4); /* 0x3100E6F2: mov edx, dword ptr [eax + 4] */ 6736 ecx = MEM32(edx); /* 0x3100E6F5: mov ecx, dword ptr [edx] */ 6737 L_3100E6F7: 6738 edx = MEM32(ecx + 0x8); /* 0x3100E6F7: mov edx, dword ptr [ecx + 8] */ 6739 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E6FA: cmp byte ptr [edx + 0x3c], bl */ 6740 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6741 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6742 _flag_k = FK_NARROW(FK_CMP, 24); 6743 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7D3; /* 0x3100E6FD: jne 0x3100e7d3 */ 6744 L_3100E703: 6745 edx = MEM32(ecx); /* 0x3100E703: mov edx, dword ptr [ecx] */ 6746 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E705: cmp byte ptr [edx + 0x3c], bl */ 6747 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6748 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6749 _flag_k = FK_NARROW(FK_CMP, 24); 6750 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7D3; /* 0x3100E708: jne 0x3100e7d3 */ 6751 L_3100E70E: 6752 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E70E: mov byte ptr [ecx + 0x3c], 0 */ 6753 ecx = MEM32(edi + 0x4); /* 0x3100E712: mov ecx, dword ptr [edi + 4] */ 6754 eax = MEM32(eax + 0x4); /* 0x3100E715: mov eax, dword ptr [eax + 4] */ 6755 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3100E718: cmp eax, dword ptr [ecx + 4] */ 6756 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 6757 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6758 _flag_k = FK_CMP; 6759 RECOMP_BACKEDGE(); 6760 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E624; /* 0x3100E71B: jne 0x3100e624 */ 6761 L_3100E721: 6762 goto L_3100E872; /* 0x3100E721: jmp 0x3100e872 */ 6763 L_3100E726: 6764 edx = MEM32(ecx + 0x8); /* 0x3100E726: mov edx, dword ptr [ecx + 8] */ 6765 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E729: cmp byte ptr [edx + 0x3c], bl */ 6766 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6767 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6768 _flag_k = FK_NARROW(FK_CMP, 24); 6769 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E777; /* 0x3100E72C: jne 0x3100e777 */ 6770 L_3100E72E: 6771 edx = MEM32(ecx); /* 0x3100E72E: mov edx, dword ptr [ecx] */ 6772 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E730: mov byte ptr [edx + 0x3c], bl */ 6773 edx = MEM32(ecx); /* 0x3100E733: mov edx, dword ptr [ecx] */ 6774 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E735: mov byte ptr [ecx + 0x3c], 0 */ 6775 esi = MEM32(edx + 0x8); /* 0x3100E739: mov esi, dword ptr [edx + 8] */ 6776 MEM32(ecx) = esi; /* 0x3100E73C: mov dword ptr [ecx], esi */ 6777 esi = MEM32(edx + 0x8); /* 0x3100E73E: mov esi, dword ptr [edx + 8] */ 6778 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E741: cmp esi, dword ptr [edi + 8] */ 6779 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6780 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6781 _flag_k = FK_CMP; 6782 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E749; /* 0x3100E744: je 0x3100e749 */ 6783 L_3100E746: 6784 MEM32(esi + 0x4) = ecx; /* 0x3100E746: mov dword ptr [esi + 4], ecx */ 6785 L_3100E749: 6786 esi = MEM32(ecx + 0x4); /* 0x3100E749: mov esi, dword ptr [ecx + 4] */ 6787 MEM32(edx + 0x4) = esi; /* 0x3100E74C: mov dword ptr [edx + 4], esi */ 6788 esi = MEM32(edi + 0x4); /* 0x3100E74F: mov esi, dword ptr [edi + 4] */ 6789 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E752: cmp ecx, dword ptr [esi + 4] */ 6790 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6791 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6792 _flag_k = FK_CMP; 6793 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E75C; /* 0x3100E755: jne 0x3100e75c */ 6794 L_3100E757: 6795 MEM32(esi + 0x4) = edx; /* 0x3100E757: mov dword ptr [esi + 4], edx */ 6796 goto L_3100E76B; /* 0x3100E75A: jmp 0x3100e76b */ 6797 L_3100E75C: 6798 esi = MEM32(ecx + 0x4); /* 0x3100E75C: mov esi, dword ptr [ecx + 4] */ 6799 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E75F: cmp ecx, dword ptr [esi + 8] */ 6800 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6801 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6802 _flag_k = FK_CMP; 6803 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E769; /* 0x3100E762: jne 0x3100e769 */ 6804 L_3100E764: 6805 MEM32(esi + 0x8) = edx; /* 0x3100E764: mov dword ptr [esi + 8], edx */ 6806 goto L_3100E76B; /* 0x3100E767: jmp 0x3100e76b */ 6807 L_3100E769: 6808 MEM32(esi) = edx; /* 0x3100E769: mov dword ptr [esi], edx */ 6809 L_3100E76B: 6810 MEM32(edx + 0x8) = ecx; /* 0x3100E76B: mov dword ptr [edx + 8], ecx */ 6811 MEM32(ecx + 0x4) = edx; /* 0x3100E76E: mov dword ptr [ecx + 4], edx */ 6812 ecx = MEM32(eax + 0x4); /* 0x3100E771: mov ecx, dword ptr [eax + 4] */ 6813 ecx = MEM32(ecx + 0x8); /* 0x3100E774: mov ecx, dword ptr [ecx + 8] */ 6814 L_3100E777: 6815 edx = MEM32(eax + 0x4); /* 0x3100E777: mov edx, dword ptr [eax + 4] */ 6816 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3100E77A: mov dl, byte ptr [edx + 0x3c] */ 6817 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3100E77D: mov byte ptr [ecx + 0x3c], dl */ 6818 edx = MEM32(eax + 0x4); /* 0x3100E780: mov edx, dword ptr [eax + 4] */ 6819 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E783: mov byte ptr [edx + 0x3c], bl */ 6820 ecx = MEM32(ecx + 0x8); /* 0x3100E786: mov ecx, dword ptr [ecx + 8] */ 6821 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E789: mov byte ptr [ecx + 0x3c], bl */ 6822 ecx = MEM32(eax + 0x4); /* 0x3100E78C: mov ecx, dword ptr [eax + 4] */ 6823 edx = MEM32(ecx + 0x8); /* 0x3100E78F: mov edx, dword ptr [ecx + 8] */ 6824 esi = MEM32(edx); /* 0x3100E792: mov esi, dword ptr [edx] */ 6825 MEM32(ecx + 0x8) = esi; /* 0x3100E794: mov dword ptr [ecx + 8], esi */ 6826 esi = MEM32(edx); /* 0x3100E797: mov esi, dword ptr [edx] */ 6827 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E799: cmp esi, dword ptr [edi + 8] */ 6828 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6829 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6830 _flag_k = FK_CMP; 6831 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E7A1; /* 0x3100E79C: je 0x3100e7a1 */ 6832 L_3100E79E: 6833 MEM32(esi + 0x4) = ecx; /* 0x3100E79E: mov dword ptr [esi + 4], ecx */ 6834 L_3100E7A1: 6835 esi = MEM32(ecx + 0x4); /* 0x3100E7A1: mov esi, dword ptr [ecx + 4] */ 6836 MEM32(edx + 0x4) = esi; /* 0x3100E7A4: mov dword ptr [edx + 4], esi */ 6837 esi = MEM32(edi + 0x4); /* 0x3100E7A7: mov esi, dword ptr [edi + 4] */ 6838 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E7AA: cmp ecx, dword ptr [esi + 4] */ 6839 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6840 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6841 _flag_k = FK_CMP; 6842 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7B9; /* 0x3100E7AD: jne 0x3100e7b9 */ 6843 L_3100E7AF: 6844 MEM32(esi + 0x4) = edx; /* 0x3100E7AF: mov dword ptr [esi + 4], edx */ 6845 MEM32(edx) = ecx; /* 0x3100E7B2: mov dword ptr [edx], ecx */ 6846 goto L_3100E86F; /* 0x3100E7B4: jmp 0x3100e86f */ 6847 L_3100E7B9: 6848 esi = MEM32(ecx + 0x4); /* 0x3100E7B9: mov esi, dword ptr [ecx + 4] */ 6849 /* cmp ecx, MEM32(esi) */ /* 0x3100E7BC: cmp ecx, dword ptr [esi] */ 6850 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6852 _flag_k = FK_CMP; 6853 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7C9; /* 0x3100E7BE: jne 0x3100e7c9 */ 6854 L_3100E7C0: 6855 MEM32(esi) = edx; /* 0x3100E7C0: mov dword ptr [esi], edx */ 6856 MEM32(edx) = ecx; /* 0x3100E7C2: mov dword ptr [edx], ecx */ 6857 goto L_3100E86F; /* 0x3100E7C4: jmp 0x3100e86f */ 6858 L_3100E7C9: 6859 MEM32(esi + 0x8) = edx; /* 0x3100E7C9: mov dword ptr [esi + 8], edx */ 6860 MEM32(edx) = ecx; /* 0x3100E7CC: mov dword ptr [edx], ecx */ 6861 goto L_3100E86F; /* 0x3100E7CE: jmp 0x3100e86f */ 6862 L_3100E7D3: 6863 edx = MEM32(ecx); /* 0x3100E7D3: mov edx, dword ptr [ecx] */ 6864 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E7D5: cmp byte ptr [edx + 0x3c], bl */ 6865 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6866 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6867 _flag_k = FK_NARROW(FK_CMP, 24); 6868 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E821; /* 0x3100E7D8: jne 0x3100e821 */ 6869 L_3100E7DA: 6870 edx = MEM32(ecx + 0x8); /* 0x3100E7DA: mov edx, dword ptr [ecx + 8] */ 6871 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E7DD: mov byte ptr [edx + 0x3c], bl */ 6872 edx = MEM32(ecx + 0x8); /* 0x3100E7E0: mov edx, dword ptr [ecx + 8] */ 6873 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E7E3: mov byte ptr [ecx + 0x3c], 0 */ 6874 esi = MEM32(edx); /* 0x3100E7E7: mov esi, dword ptr [edx] */ 6875 MEM32(ecx + 0x8) = esi; /* 0x3100E7E9: mov dword ptr [ecx + 8], esi */ 6876 esi = MEM32(edx); /* 0x3100E7EC: mov esi, dword ptr [edx] */ 6877 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E7EE: cmp esi, dword ptr [edi + 8] */ 6878 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6879 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6880 _flag_k = FK_CMP; 6881 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E7F6; /* 0x3100E7F1: je 0x3100e7f6 */ 6882 L_3100E7F3: 6883 MEM32(esi + 0x4) = ecx; /* 0x3100E7F3: mov dword ptr [esi + 4], ecx */ 6884 L_3100E7F6: 6885 esi = MEM32(ecx + 0x4); /* 0x3100E7F6: mov esi, dword ptr [ecx + 4] */ 6886 MEM32(edx + 0x4) = esi; /* 0x3100E7F9: mov dword ptr [edx + 4], esi */ 6887 esi = MEM32(edi + 0x4); /* 0x3100E7FC: mov esi, dword ptr [edi + 4] */ 6888 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E7FF: cmp ecx, dword ptr [esi + 4] */ 6889 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6890 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6891 _flag_k = FK_CMP; 6892 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E809; /* 0x3100E802: jne 0x3100e809 */ 6893 L_3100E804: 6894 MEM32(esi + 0x4) = edx; /* 0x3100E804: mov dword ptr [esi + 4], edx */ 6895 goto L_3100E817; /* 0x3100E807: jmp 0x3100e817 */ 6896 L_3100E809: 6897 esi = MEM32(ecx + 0x4); /* 0x3100E809: mov esi, dword ptr [ecx + 4] */ 6898 /* cmp ecx, MEM32(esi) */ /* 0x3100E80C: cmp ecx, dword ptr [esi] */ 6899 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6900 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6901 _flag_k = FK_CMP; 6902 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E814; /* 0x3100E80E: jne 0x3100e814 */ 6903 L_3100E810: 6904 MEM32(esi) = edx; /* 0x3100E810: mov dword ptr [esi], edx */ 6905 goto L_3100E817; /* 0x3100E812: jmp 0x3100e817 */ 6906 L_3100E814: 6907 MEM32(esi + 0x8) = edx; /* 0x3100E814: mov dword ptr [esi + 8], edx */ 6908 L_3100E817: 6909 MEM32(edx) = ecx; /* 0x3100E817: mov dword ptr [edx], ecx */ 6910 MEM32(ecx + 0x4) = edx; /* 0x3100E819: mov dword ptr [ecx + 4], edx */ 6911 ecx = MEM32(eax + 0x4); /* 0x3100E81C: mov ecx, dword ptr [eax + 4] */ 6912 ecx = MEM32(ecx); /* 0x3100E81F: mov ecx, dword ptr [ecx] */ 6913 L_3100E821: 6914 edx = MEM32(eax + 0x4); /* 0x3100E821: mov edx, dword ptr [eax + 4] */ 6915 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3100E824: mov dl, byte ptr [edx + 0x3c] */ 6916 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3100E827: mov byte ptr [ecx + 0x3c], dl */ 6917 edx = MEM32(eax + 0x4); /* 0x3100E82A: mov edx, dword ptr [eax + 4] */ 6918 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E82D: mov byte ptr [edx + 0x3c], bl */ 6919 ecx = MEM32(ecx); /* 0x3100E830: mov ecx, dword ptr [ecx] */ 6920 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E832: mov byte ptr [ecx + 0x3c], bl */ 6921 ecx = MEM32(eax + 0x4); /* 0x3100E835: mov ecx, dword ptr [eax + 4] */ 6922 edx = MEM32(ecx); /* 0x3100E838: mov edx, dword ptr [ecx] */ 6923 esi = MEM32(edx + 0x8); /* 0x3100E83A: mov esi, dword ptr [edx + 8] */ 6924 MEM32(ecx) = esi; /* 0x3100E83D: mov dword ptr [ecx], esi */ 6925 esi = MEM32(edx + 0x8); /* 0x3100E83F: mov esi, dword ptr [edx + 8] */ 6926 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E842: cmp esi, dword ptr [edi + 8] */ 6927 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6928 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6929 _flag_k = FK_CMP; 6930 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E84A; /* 0x3100E845: je 0x3100e84a */ 6931 L_3100E847: 6932 MEM32(esi + 0x4) = ecx; /* 0x3100E847: mov dword ptr [esi + 4], ecx */ 6933 L_3100E84A: 6934 esi = MEM32(ecx + 0x4); /* 0x3100E84A: mov esi, dword ptr [ecx + 4] */ 6935 MEM32(edx + 0x4) = esi; /* 0x3100E84D: mov dword ptr [edx + 4], esi */ 6936 esi = MEM32(edi + 0x4); /* 0x3100E850: mov esi, dword ptr [edi + 4] */ 6937 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E853: cmp ecx, dword ptr [esi + 4] */ 6938 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6939 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6940 _flag_k = FK_CMP; 6941 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E85D; /* 0x3100E856: jne 0x3100e85d */ 6942 L_3100E858: 6943 MEM32(esi + 0x4) = edx; /* 0x3100E858: mov dword ptr [esi + 4], edx */ 6944 goto L_3100E86C; /* 0x3100E85B: jmp 0x3100e86c */ 6945 L_3100E85D: 6946 esi = MEM32(ecx + 0x4); /* 0x3100E85D: mov esi, dword ptr [ecx + 4] */ 6947 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E860: cmp ecx, dword ptr [esi + 8] */ 6948 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6949 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6950 _flag_k = FK_CMP; 6951 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E86A; /* 0x3100E863: jne 0x3100e86a */ 6952 L_3100E865: 6953 MEM32(esi + 0x8) = edx; /* 0x3100E865: mov dword ptr [esi + 8], edx */ 6954 goto L_3100E86C; /* 0x3100E868: jmp 0x3100e86c */ 6955 L_3100E86A: 6956 MEM32(esi) = edx; /* 0x3100E86A: mov dword ptr [esi], edx */ 6957 L_3100E86C: 6958 MEM32(edx + 0x8) = ecx; /* 0x3100E86C: mov dword ptr [edx + 8], ecx */ 6959 L_3100E86F: 6960 MEM32(ecx + 0x4) = edx; /* 0x3100E86F: mov dword ptr [ecx + 4], edx */ 6961 L_3100E872: 6962 esi = MEM32(ebp + (-0x4)); /* 0x3100E872: mov esi, dword ptr [ebp - 4] */ 6963 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E875: mov byte ptr [eax + 0x3c], bl */ 6964 ecx = esi + 0xC; /* 0x3100E878: lea ecx, [esi + 0xc] */ 6965 RECOMP_ICALL(0x3100EE80u); /* 0x3100E87B: call 0x3100ee80 */ /* not lifted */ 6966 RECOMP_FLAGS_IN(); 6967 PUSH32(esp, esi); /* 0x3100E880: push esi */ 6968 RECOMP_ICALL(0x31046858u); /* 0x3100E881: call 0x31046858 */ /* not lifted */ 6969 RECOMP_FLAGS_IN(); 6970 eax = MEM32(edi + 0x10); /* 0x3100E886: mov eax, dword ptr [edi + 0x10] */ 6971 edx = MEM32(ebp + 0xC); /* 0x3100E889: mov edx, dword ptr [ebp + 0xc] */ 6972 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6973 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6974 esp = esp + 4; /* 0x3100E88C: add esp, 4 */ 6975 _flag_k = FK_ADD; 6976 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6977 eax = eax - 1; /* 0x3100E88F: dec eax */ 6978 _flag_k = FK_DEC; 6979 MEM32(edi + 0x10) = eax; /* 0x3100E890: mov dword ptr [edi + 0x10], eax */ 6980 eax = MEM32(ebp + 0x8); /* 0x3100E893: mov eax, dword ptr [ebp + 8] */ 6981 edi = POP32_VAL(esp); /* 0x3100E896: pop edi */ 6982 esi = POP32_VAL(esp); /* 0x3100E897: pop esi */ 6983 MEM32(eax) = edx; /* 0x3100E898: mov dword ptr [eax], edx */ 6984 ebx = POP32_VAL(esp); /* 0x3100E89A: pop ebx */ 6985 esp = ebp; /* 0x3100E89B: mov esp, ebp */ 6986 ebp = POP32_VAL(esp); /* 0x3100E89D: pop ebp */ 6987 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100E89E: ret 8 */ 6988 RECOMP_REGS_OUT(); 6989 } 6990 6991 void sub_3100E6A4(void) { 6992 int _fpu_cmp = 0; 6993 uint32_t _cf = 0; 6994 int _df = 1; 6995 uint32_t _flag_k = FK_NONE; 6996 uint32_t _flag_a = 0, _flag_b = 0; 6997 uint32_t _itail_tgt = 0; 6998 RECOMP_REGS_LOCALS 6999 RECOMP_ENTER(0x3100E6A4u); 7000 7001 goto L_3100E6A4; 7002 L_3100E624: 7003 /* cmp MEM8(eax + 0x3C), LO8(ebx) */ /* 0x3100E624: cmp byte ptr [eax + 0x3c], bl */ 7004 _flag_a = (uint32_t)(MEM8(eax + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7005 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7006 _flag_k = FK_NARROW(FK_CMP, 24); 7007 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E872; /* 0x3100E627: jne 0x3100e872 */ 7008 L_3100E62D: 7009 edx = MEM32(eax + 0x4); /* 0x3100E62D: mov edx, dword ptr [eax + 4] */ 7010 ecx = MEM32(edx); /* 0x3100E630: mov ecx, dword ptr [edx] */ 7011 /* cmp eax, ecx */ /* 0x3100E632: cmp eax, ecx */ 7012 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7013 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7014 _flag_k = FK_CMP; 7015 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6A4; /* 0x3100E634: jne 0x3100e6a4 */ 7016 L_3100E636: 7017 ecx = MEM32(edx + 0x8); /* 0x3100E636: mov ecx, dword ptr [edx + 8] */ 7018 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x3100E639: mov dl, byte ptr [ecx + 0x3c] */ 7019 /* test LO8(edx), LO8(edx) */ /* 0x3100E63C: test dl, dl */ 7020 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7021 _cf = 0; 7022 _flag_k = FK_NARROW(FK_TEST, 24); 7023 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100E68B; /* 0x3100E63E: jne 0x3100e68b */ 7024 L_3100E640: 7025 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E640: mov byte ptr [ecx + 0x3c], bl */ 7026 edx = MEM32(eax + 0x4); /* 0x3100E643: mov edx, dword ptr [eax + 4] */ 7027 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x3100E646: mov byte ptr [edx + 0x3c], 0 */ 7028 ecx = MEM32(eax + 0x4); /* 0x3100E64A: mov ecx, dword ptr [eax + 4] */ 7029 edx = MEM32(ecx + 0x8); /* 0x3100E64D: mov edx, dword ptr [ecx + 8] */ 7030 esi = MEM32(edx); /* 0x3100E650: mov esi, dword ptr [edx] */ 7031 MEM32(ecx + 0x8) = esi; /* 0x3100E652: mov dword ptr [ecx + 8], esi */ 7032 esi = MEM32(edx); /* 0x3100E655: mov esi, dword ptr [edx] */ 7033 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E657: cmp esi, dword ptr [edi + 8] */ 7034 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7035 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7036 _flag_k = FK_CMP; 7037 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E65F; /* 0x3100E65A: je 0x3100e65f */ 7038 L_3100E65C: 7039 MEM32(esi + 0x4) = ecx; /* 0x3100E65C: mov dword ptr [esi + 4], ecx */ 7040 L_3100E65F: 7041 esi = MEM32(ecx + 0x4); /* 0x3100E65F: mov esi, dword ptr [ecx + 4] */ 7042 MEM32(edx + 0x4) = esi; /* 0x3100E662: mov dword ptr [edx + 4], esi */ 7043 esi = MEM32(edi + 0x4); /* 0x3100E665: mov esi, dword ptr [edi + 4] */ 7044 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E668: cmp ecx, dword ptr [esi + 4] */ 7045 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7046 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7047 _flag_k = FK_CMP; 7048 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E672; /* 0x3100E66B: jne 0x3100e672 */ 7049 L_3100E66D: 7050 MEM32(esi + 0x4) = edx; /* 0x3100E66D: mov dword ptr [esi + 4], edx */ 7051 goto L_3100E680; /* 0x3100E670: jmp 0x3100e680 */ 7052 L_3100E672: 7053 esi = MEM32(ecx + 0x4); /* 0x3100E672: mov esi, dword ptr [ecx + 4] */ 7054 /* cmp ecx, MEM32(esi) */ /* 0x3100E675: cmp ecx, dword ptr [esi] */ 7055 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 7056 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7057 _flag_k = FK_CMP; 7058 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E67D; /* 0x3100E677: jne 0x3100e67d */ 7059 L_3100E679: 7060 MEM32(esi) = edx; /* 0x3100E679: mov dword ptr [esi], edx */ 7061 goto L_3100E680; /* 0x3100E67B: jmp 0x3100e680 */ 7062 L_3100E67D: 7063 MEM32(esi + 0x8) = edx; /* 0x3100E67D: mov dword ptr [esi + 8], edx */ 7064 L_3100E680: 7065 MEM32(edx) = ecx; /* 0x3100E680: mov dword ptr [edx], ecx */ 7066 MEM32(ecx + 0x4) = edx; /* 0x3100E682: mov dword ptr [ecx + 4], edx */ 7067 ecx = MEM32(eax + 0x4); /* 0x3100E685: mov ecx, dword ptr [eax + 4] */ 7068 ecx = MEM32(ecx + 0x8); /* 0x3100E688: mov ecx, dword ptr [ecx + 8] */ 7069 L_3100E68B: 7070 edx = MEM32(ecx); /* 0x3100E68B: mov edx, dword ptr [ecx] */ 7071 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E68D: cmp byte ptr [edx + 0x3c], bl */ 7072 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7073 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7074 _flag_k = FK_NARROW(FK_CMP, 24); 7075 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E726; /* 0x3100E690: jne 0x3100e726 */ 7076 L_3100E696: 7077 edx = MEM32(ecx + 0x8); /* 0x3100E696: mov edx, dword ptr [ecx + 8] */ 7078 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E699: cmp byte ptr [edx + 0x3c], bl */ 7079 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7080 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7081 _flag_k = FK_NARROW(FK_CMP, 24); 7082 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E726; /* 0x3100E69C: jne 0x3100e726 */ 7083 L_3100E6A2: 7084 goto L_3100E70E; /* 0x3100E6A2: jmp 0x3100e70e */ 7085 L_3100E6A4: 7086 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x3100E6A4: mov dl, byte ptr [ecx + 0x3c] */ 7087 /* test LO8(edx), LO8(edx) */ /* 0x3100E6A7: test dl, dl */ 7088 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7089 _cf = 0; 7090 _flag_k = FK_NARROW(FK_TEST, 24); 7091 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100E6F7; /* 0x3100E6A9: jne 0x3100e6f7 */ 7092 L_3100E6AB: 7093 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E6AB: mov byte ptr [ecx + 0x3c], bl */ 7094 ecx = MEM32(eax + 0x4); /* 0x3100E6AE: mov ecx, dword ptr [eax + 4] */ 7095 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E6B1: mov byte ptr [ecx + 0x3c], 0 */ 7096 ecx = MEM32(eax + 0x4); /* 0x3100E6B5: mov ecx, dword ptr [eax + 4] */ 7097 edx = MEM32(ecx); /* 0x3100E6B8: mov edx, dword ptr [ecx] */ 7098 esi = MEM32(edx + 0x8); /* 0x3100E6BA: mov esi, dword ptr [edx + 8] */ 7099 MEM32(ecx) = esi; /* 0x3100E6BD: mov dword ptr [ecx], esi */ 7100 esi = MEM32(edx + 0x8); /* 0x3100E6BF: mov esi, dword ptr [edx + 8] */ 7101 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E6C2: cmp esi, dword ptr [edi + 8] */ 7102 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7103 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7104 _flag_k = FK_CMP; 7105 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E6CA; /* 0x3100E6C5: je 0x3100e6ca */ 7106 L_3100E6C7: 7107 MEM32(esi + 0x4) = ecx; /* 0x3100E6C7: mov dword ptr [esi + 4], ecx */ 7108 L_3100E6CA: 7109 esi = MEM32(ecx + 0x4); /* 0x3100E6CA: mov esi, dword ptr [ecx + 4] */ 7110 MEM32(edx + 0x4) = esi; /* 0x3100E6CD: mov dword ptr [edx + 4], esi */ 7111 esi = MEM32(edi + 0x4); /* 0x3100E6D0: mov esi, dword ptr [edi + 4] */ 7112 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E6D3: cmp ecx, dword ptr [esi + 4] */ 7113 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7114 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7115 _flag_k = FK_CMP; 7116 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6DD; /* 0x3100E6D6: jne 0x3100e6dd */ 7117 L_3100E6D8: 7118 MEM32(esi + 0x4) = edx; /* 0x3100E6D8: mov dword ptr [esi + 4], edx */ 7119 goto L_3100E6EC; /* 0x3100E6DB: jmp 0x3100e6ec */ 7120 L_3100E6DD: 7121 esi = MEM32(ecx + 0x4); /* 0x3100E6DD: mov esi, dword ptr [ecx + 4] */ 7122 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E6E0: cmp ecx, dword ptr [esi + 8] */ 7123 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7124 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7125 _flag_k = FK_CMP; 7126 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6EA; /* 0x3100E6E3: jne 0x3100e6ea */ 7127 L_3100E6E5: 7128 MEM32(esi + 0x8) = edx; /* 0x3100E6E5: mov dword ptr [esi + 8], edx */ 7129 goto L_3100E6EC; /* 0x3100E6E8: jmp 0x3100e6ec */ 7130 L_3100E6EA: 7131 MEM32(esi) = edx; /* 0x3100E6EA: mov dword ptr [esi], edx */ 7132 L_3100E6EC: 7133 MEM32(edx + 0x8) = ecx; /* 0x3100E6EC: mov dword ptr [edx + 8], ecx */ 7134 MEM32(ecx + 0x4) = edx; /* 0x3100E6EF: mov dword ptr [ecx + 4], edx */ 7135 edx = MEM32(eax + 0x4); /* 0x3100E6F2: mov edx, dword ptr [eax + 4] */ 7136 ecx = MEM32(edx); /* 0x3100E6F5: mov ecx, dword ptr [edx] */ 7137 L_3100E6F7: 7138 edx = MEM32(ecx + 0x8); /* 0x3100E6F7: mov edx, dword ptr [ecx + 8] */ 7139 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E6FA: cmp byte ptr [edx + 0x3c], bl */ 7140 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7141 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7142 _flag_k = FK_NARROW(FK_CMP, 24); 7143 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7D3; /* 0x3100E6FD: jne 0x3100e7d3 */ 7144 L_3100E703: 7145 edx = MEM32(ecx); /* 0x3100E703: mov edx, dword ptr [ecx] */ 7146 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E705: cmp byte ptr [edx + 0x3c], bl */ 7147 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7148 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7149 _flag_k = FK_NARROW(FK_CMP, 24); 7150 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7D3; /* 0x3100E708: jne 0x3100e7d3 */ 7151 L_3100E70E: 7152 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E70E: mov byte ptr [ecx + 0x3c], 0 */ 7153 ecx = MEM32(edi + 0x4); /* 0x3100E712: mov ecx, dword ptr [edi + 4] */ 7154 eax = MEM32(eax + 0x4); /* 0x3100E715: mov eax, dword ptr [eax + 4] */ 7155 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3100E718: cmp eax, dword ptr [ecx + 4] */ 7156 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 7157 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7158 _flag_k = FK_CMP; 7159 RECOMP_BACKEDGE(); 7160 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E624; /* 0x3100E71B: jne 0x3100e624 */ 7161 L_3100E721: 7162 goto L_3100E872; /* 0x3100E721: jmp 0x3100e872 */ 7163 L_3100E726: 7164 edx = MEM32(ecx + 0x8); /* 0x3100E726: mov edx, dword ptr [ecx + 8] */ 7165 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E729: cmp byte ptr [edx + 0x3c], bl */ 7166 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7167 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7168 _flag_k = FK_NARROW(FK_CMP, 24); 7169 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E777; /* 0x3100E72C: jne 0x3100e777 */ 7170 L_3100E72E: 7171 edx = MEM32(ecx); /* 0x3100E72E: mov edx, dword ptr [ecx] */ 7172 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E730: mov byte ptr [edx + 0x3c], bl */ 7173 edx = MEM32(ecx); /* 0x3100E733: mov edx, dword ptr [ecx] */ 7174 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E735: mov byte ptr [ecx + 0x3c], 0 */ 7175 esi = MEM32(edx + 0x8); /* 0x3100E739: mov esi, dword ptr [edx + 8] */ 7176 MEM32(ecx) = esi; /* 0x3100E73C: mov dword ptr [ecx], esi */ 7177 esi = MEM32(edx + 0x8); /* 0x3100E73E: mov esi, dword ptr [edx + 8] */ 7178 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E741: cmp esi, dword ptr [edi + 8] */ 7179 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7180 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7181 _flag_k = FK_CMP; 7182 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E749; /* 0x3100E744: je 0x3100e749 */ 7183 L_3100E746: 7184 MEM32(esi + 0x4) = ecx; /* 0x3100E746: mov dword ptr [esi + 4], ecx */ 7185 L_3100E749: 7186 esi = MEM32(ecx + 0x4); /* 0x3100E749: mov esi, dword ptr [ecx + 4] */ 7187 MEM32(edx + 0x4) = esi; /* 0x3100E74C: mov dword ptr [edx + 4], esi */ 7188 esi = MEM32(edi + 0x4); /* 0x3100E74F: mov esi, dword ptr [edi + 4] */ 7189 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E752: cmp ecx, dword ptr [esi + 4] */ 7190 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7191 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7192 _flag_k = FK_CMP; 7193 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E75C; /* 0x3100E755: jne 0x3100e75c */ 7194 L_3100E757: 7195 MEM32(esi + 0x4) = edx; /* 0x3100E757: mov dword ptr [esi + 4], edx */ 7196 goto L_3100E76B; /* 0x3100E75A: jmp 0x3100e76b */ 7197 L_3100E75C: 7198 esi = MEM32(ecx + 0x4); /* 0x3100E75C: mov esi, dword ptr [ecx + 4] */ 7199 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E75F: cmp ecx, dword ptr [esi + 8] */ 7200 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7201 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7202 _flag_k = FK_CMP; 7203 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E769; /* 0x3100E762: jne 0x3100e769 */ 7204 L_3100E764: 7205 MEM32(esi + 0x8) = edx; /* 0x3100E764: mov dword ptr [esi + 8], edx */ 7206 goto L_3100E76B; /* 0x3100E767: jmp 0x3100e76b */ 7207 L_3100E769: 7208 MEM32(esi) = edx; /* 0x3100E769: mov dword ptr [esi], edx */ 7209 L_3100E76B: 7210 MEM32(edx + 0x8) = ecx; /* 0x3100E76B: mov dword ptr [edx + 8], ecx */ 7211 MEM32(ecx + 0x4) = edx; /* 0x3100E76E: mov dword ptr [ecx + 4], edx */ 7212 ecx = MEM32(eax + 0x4); /* 0x3100E771: mov ecx, dword ptr [eax + 4] */ 7213 ecx = MEM32(ecx + 0x8); /* 0x3100E774: mov ecx, dword ptr [ecx + 8] */ 7214 L_3100E777: 7215 edx = MEM32(eax + 0x4); /* 0x3100E777: mov edx, dword ptr [eax + 4] */ 7216 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3100E77A: mov dl, byte ptr [edx + 0x3c] */ 7217 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3100E77D: mov byte ptr [ecx + 0x3c], dl */ 7218 edx = MEM32(eax + 0x4); /* 0x3100E780: mov edx, dword ptr [eax + 4] */ 7219 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E783: mov byte ptr [edx + 0x3c], bl */ 7220 ecx = MEM32(ecx + 0x8); /* 0x3100E786: mov ecx, dword ptr [ecx + 8] */ 7221 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E789: mov byte ptr [ecx + 0x3c], bl */ 7222 ecx = MEM32(eax + 0x4); /* 0x3100E78C: mov ecx, dword ptr [eax + 4] */ 7223 edx = MEM32(ecx + 0x8); /* 0x3100E78F: mov edx, dword ptr [ecx + 8] */ 7224 esi = MEM32(edx); /* 0x3100E792: mov esi, dword ptr [edx] */ 7225 MEM32(ecx + 0x8) = esi; /* 0x3100E794: mov dword ptr [ecx + 8], esi */ 7226 esi = MEM32(edx); /* 0x3100E797: mov esi, dword ptr [edx] */ 7227 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E799: cmp esi, dword ptr [edi + 8] */ 7228 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7229 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7230 _flag_k = FK_CMP; 7231 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E7A1; /* 0x3100E79C: je 0x3100e7a1 */ 7232 L_3100E79E: 7233 MEM32(esi + 0x4) = ecx; /* 0x3100E79E: mov dword ptr [esi + 4], ecx */ 7234 L_3100E7A1: 7235 esi = MEM32(ecx + 0x4); /* 0x3100E7A1: mov esi, dword ptr [ecx + 4] */ 7236 MEM32(edx + 0x4) = esi; /* 0x3100E7A4: mov dword ptr [edx + 4], esi */ 7237 esi = MEM32(edi + 0x4); /* 0x3100E7A7: mov esi, dword ptr [edi + 4] */ 7238 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E7AA: cmp ecx, dword ptr [esi + 4] */ 7239 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7240 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7241 _flag_k = FK_CMP; 7242 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7B9; /* 0x3100E7AD: jne 0x3100e7b9 */ 7243 L_3100E7AF: 7244 MEM32(esi + 0x4) = edx; /* 0x3100E7AF: mov dword ptr [esi + 4], edx */ 7245 MEM32(edx) = ecx; /* 0x3100E7B2: mov dword ptr [edx], ecx */ 7246 goto L_3100E86F; /* 0x3100E7B4: jmp 0x3100e86f */ 7247 L_3100E7B9: 7248 esi = MEM32(ecx + 0x4); /* 0x3100E7B9: mov esi, dword ptr [ecx + 4] */ 7249 /* cmp ecx, MEM32(esi) */ /* 0x3100E7BC: cmp ecx, dword ptr [esi] */ 7250 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 7251 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7252 _flag_k = FK_CMP; 7253 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7C9; /* 0x3100E7BE: jne 0x3100e7c9 */ 7254 L_3100E7C0: 7255 MEM32(esi) = edx; /* 0x3100E7C0: mov dword ptr [esi], edx */ 7256 MEM32(edx) = ecx; /* 0x3100E7C2: mov dword ptr [edx], ecx */ 7257 goto L_3100E86F; /* 0x3100E7C4: jmp 0x3100e86f */ 7258 L_3100E7C9: 7259 MEM32(esi + 0x8) = edx; /* 0x3100E7C9: mov dword ptr [esi + 8], edx */ 7260 MEM32(edx) = ecx; /* 0x3100E7CC: mov dword ptr [edx], ecx */ 7261 goto L_3100E86F; /* 0x3100E7CE: jmp 0x3100e86f */ 7262 L_3100E7D3: 7263 edx = MEM32(ecx); /* 0x3100E7D3: mov edx, dword ptr [ecx] */ 7264 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E7D5: cmp byte ptr [edx + 0x3c], bl */ 7265 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7266 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7267 _flag_k = FK_NARROW(FK_CMP, 24); 7268 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E821; /* 0x3100E7D8: jne 0x3100e821 */ 7269 L_3100E7DA: 7270 edx = MEM32(ecx + 0x8); /* 0x3100E7DA: mov edx, dword ptr [ecx + 8] */ 7271 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E7DD: mov byte ptr [edx + 0x3c], bl */ 7272 edx = MEM32(ecx + 0x8); /* 0x3100E7E0: mov edx, dword ptr [ecx + 8] */ 7273 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E7E3: mov byte ptr [ecx + 0x3c], 0 */ 7274 esi = MEM32(edx); /* 0x3100E7E7: mov esi, dword ptr [edx] */ 7275 MEM32(ecx + 0x8) = esi; /* 0x3100E7E9: mov dword ptr [ecx + 8], esi */ 7276 esi = MEM32(edx); /* 0x3100E7EC: mov esi, dword ptr [edx] */ 7277 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E7EE: cmp esi, dword ptr [edi + 8] */ 7278 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 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_3100E7F6; /* 0x3100E7F1: je 0x3100e7f6 */ 7282 L_3100E7F3: 7283 MEM32(esi + 0x4) = ecx; /* 0x3100E7F3: mov dword ptr [esi + 4], ecx */ 7284 L_3100E7F6: 7285 esi = MEM32(ecx + 0x4); /* 0x3100E7F6: mov esi, dword ptr [ecx + 4] */ 7286 MEM32(edx + 0x4) = esi; /* 0x3100E7F9: mov dword ptr [edx + 4], esi */ 7287 esi = MEM32(edi + 0x4); /* 0x3100E7FC: mov esi, dword ptr [edi + 4] */ 7288 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E7FF: cmp ecx, dword ptr [esi + 4] */ 7289 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7290 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7291 _flag_k = FK_CMP; 7292 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E809; /* 0x3100E802: jne 0x3100e809 */ 7293 L_3100E804: 7294 MEM32(esi + 0x4) = edx; /* 0x3100E804: mov dword ptr [esi + 4], edx */ 7295 goto L_3100E817; /* 0x3100E807: jmp 0x3100e817 */ 7296 L_3100E809: 7297 esi = MEM32(ecx + 0x4); /* 0x3100E809: mov esi, dword ptr [ecx + 4] */ 7298 /* cmp ecx, MEM32(esi) */ /* 0x3100E80C: cmp ecx, dword ptr [esi] */ 7299 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 7300 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7301 _flag_k = FK_CMP; 7302 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E814; /* 0x3100E80E: jne 0x3100e814 */ 7303 L_3100E810: 7304 MEM32(esi) = edx; /* 0x3100E810: mov dword ptr [esi], edx */ 7305 goto L_3100E817; /* 0x3100E812: jmp 0x3100e817 */ 7306 L_3100E814: 7307 MEM32(esi + 0x8) = edx; /* 0x3100E814: mov dword ptr [esi + 8], edx */ 7308 L_3100E817: 7309 MEM32(edx) = ecx; /* 0x3100E817: mov dword ptr [edx], ecx */ 7310 MEM32(ecx + 0x4) = edx; /* 0x3100E819: mov dword ptr [ecx + 4], edx */ 7311 ecx = MEM32(eax + 0x4); /* 0x3100E81C: mov ecx, dword ptr [eax + 4] */ 7312 ecx = MEM32(ecx); /* 0x3100E81F: mov ecx, dword ptr [ecx] */ 7313 L_3100E821: 7314 edx = MEM32(eax + 0x4); /* 0x3100E821: mov edx, dword ptr [eax + 4] */ 7315 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3100E824: mov dl, byte ptr [edx + 0x3c] */ 7316 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3100E827: mov byte ptr [ecx + 0x3c], dl */ 7317 edx = MEM32(eax + 0x4); /* 0x3100E82A: mov edx, dword ptr [eax + 4] */ 7318 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E82D: mov byte ptr [edx + 0x3c], bl */ 7319 ecx = MEM32(ecx); /* 0x3100E830: mov ecx, dword ptr [ecx] */ 7320 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E832: mov byte ptr [ecx + 0x3c], bl */ 7321 ecx = MEM32(eax + 0x4); /* 0x3100E835: mov ecx, dword ptr [eax + 4] */ 7322 edx = MEM32(ecx); /* 0x3100E838: mov edx, dword ptr [ecx] */ 7323 esi = MEM32(edx + 0x8); /* 0x3100E83A: mov esi, dword ptr [edx + 8] */ 7324 MEM32(ecx) = esi; /* 0x3100E83D: mov dword ptr [ecx], esi */ 7325 esi = MEM32(edx + 0x8); /* 0x3100E83F: mov esi, dword ptr [edx + 8] */ 7326 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E842: cmp esi, dword ptr [edi + 8] */ 7327 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7328 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7329 _flag_k = FK_CMP; 7330 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E84A; /* 0x3100E845: je 0x3100e84a */ 7331 L_3100E847: 7332 MEM32(esi + 0x4) = ecx; /* 0x3100E847: mov dword ptr [esi + 4], ecx */ 7333 L_3100E84A: 7334 esi = MEM32(ecx + 0x4); /* 0x3100E84A: mov esi, dword ptr [ecx + 4] */ 7335 MEM32(edx + 0x4) = esi; /* 0x3100E84D: mov dword ptr [edx + 4], esi */ 7336 esi = MEM32(edi + 0x4); /* 0x3100E850: mov esi, dword ptr [edi + 4] */ 7337 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E853: cmp ecx, dword ptr [esi + 4] */ 7338 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7339 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7340 _flag_k = FK_CMP; 7341 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E85D; /* 0x3100E856: jne 0x3100e85d */ 7342 L_3100E858: 7343 MEM32(esi + 0x4) = edx; /* 0x3100E858: mov dword ptr [esi + 4], edx */ 7344 goto L_3100E86C; /* 0x3100E85B: jmp 0x3100e86c */ 7345 L_3100E85D: 7346 esi = MEM32(ecx + 0x4); /* 0x3100E85D: mov esi, dword ptr [ecx + 4] */ 7347 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E860: cmp ecx, dword ptr [esi + 8] */ 7348 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7349 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7350 _flag_k = FK_CMP; 7351 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E86A; /* 0x3100E863: jne 0x3100e86a */ 7352 L_3100E865: 7353 MEM32(esi + 0x8) = edx; /* 0x3100E865: mov dword ptr [esi + 8], edx */ 7354 goto L_3100E86C; /* 0x3100E868: jmp 0x3100e86c */ 7355 L_3100E86A: 7356 MEM32(esi) = edx; /* 0x3100E86A: mov dword ptr [esi], edx */ 7357 L_3100E86C: 7358 MEM32(edx + 0x8) = ecx; /* 0x3100E86C: mov dword ptr [edx + 8], ecx */ 7359 L_3100E86F: 7360 MEM32(ecx + 0x4) = edx; /* 0x3100E86F: mov dword ptr [ecx + 4], edx */ 7361 L_3100E872: 7362 esi = MEM32(ebp + (-0x4)); /* 0x3100E872: mov esi, dword ptr [ebp - 4] */ 7363 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E875: mov byte ptr [eax + 0x3c], bl */ 7364 ecx = esi + 0xC; /* 0x3100E878: lea ecx, [esi + 0xc] */ 7365 RECOMP_ICALL(0x3100EE80u); /* 0x3100E87B: call 0x3100ee80 */ /* not lifted */ 7366 RECOMP_FLAGS_IN(); 7367 PUSH32(esp, esi); /* 0x3100E880: push esi */ 7368 RECOMP_ICALL(0x31046858u); /* 0x3100E881: call 0x31046858 */ /* not lifted */ 7369 RECOMP_FLAGS_IN(); 7370 eax = MEM32(edi + 0x10); /* 0x3100E886: mov eax, dword ptr [edi + 0x10] */ 7371 edx = MEM32(ebp + 0xC); /* 0x3100E889: mov edx, dword ptr [ebp + 0xc] */ 7372 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7373 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7374 esp = esp + 4; /* 0x3100E88C: add esp, 4 */ 7375 _flag_k = FK_ADD; 7376 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7377 eax = eax - 1; /* 0x3100E88F: dec eax */ 7378 _flag_k = FK_DEC; 7379 MEM32(edi + 0x10) = eax; /* 0x3100E890: mov dword ptr [edi + 0x10], eax */ 7380 eax = MEM32(ebp + 0x8); /* 0x3100E893: mov eax, dword ptr [ebp + 8] */ 7381 edi = POP32_VAL(esp); /* 0x3100E896: pop edi */ 7382 esi = POP32_VAL(esp); /* 0x3100E897: pop esi */ 7383 MEM32(eax) = edx; /* 0x3100E898: mov dword ptr [eax], edx */ 7384 ebx = POP32_VAL(esp); /* 0x3100E89A: pop ebx */ 7385 esp = ebp; /* 0x3100E89B: mov esp, ebp */ 7386 ebp = POP32_VAL(esp); /* 0x3100E89D: pop ebp */ 7387 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100E89E: ret 8 */ 7388 RECOMP_REGS_OUT(); 7389 } 7390 7391 void sub_3100E6EC(void) { 7392 int _fpu_cmp = 0; 7393 uint32_t _cf = 0; 7394 int _df = 1; 7395 uint32_t _flag_k = FK_NONE; 7396 uint32_t _flag_a = 0, _flag_b = 0; 7397 uint32_t _itail_tgt = 0; 7398 RECOMP_REGS_LOCALS 7399 RECOMP_ENTER(0x3100E6ECu); 7400 7401 goto L_3100E6EC; 7402 L_3100E624: 7403 /* cmp MEM8(eax + 0x3C), LO8(ebx) */ /* 0x3100E624: cmp byte ptr [eax + 0x3c], bl */ 7404 _flag_a = (uint32_t)(MEM8(eax + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7405 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7406 _flag_k = FK_NARROW(FK_CMP, 24); 7407 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E872; /* 0x3100E627: jne 0x3100e872 */ 7408 L_3100E62D: 7409 edx = MEM32(eax + 0x4); /* 0x3100E62D: mov edx, dword ptr [eax + 4] */ 7410 ecx = MEM32(edx); /* 0x3100E630: mov ecx, dword ptr [edx] */ 7411 /* cmp eax, ecx */ /* 0x3100E632: cmp eax, ecx */ 7412 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7413 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7414 _flag_k = FK_CMP; 7415 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6A4; /* 0x3100E634: jne 0x3100e6a4 */ 7416 L_3100E636: 7417 ecx = MEM32(edx + 0x8); /* 0x3100E636: mov ecx, dword ptr [edx + 8] */ 7418 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x3100E639: mov dl, byte ptr [ecx + 0x3c] */ 7419 /* test LO8(edx), LO8(edx) */ /* 0x3100E63C: test dl, dl */ 7420 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7421 _cf = 0; 7422 _flag_k = FK_NARROW(FK_TEST, 24); 7423 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100E68B; /* 0x3100E63E: jne 0x3100e68b */ 7424 L_3100E640: 7425 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E640: mov byte ptr [ecx + 0x3c], bl */ 7426 edx = MEM32(eax + 0x4); /* 0x3100E643: mov edx, dword ptr [eax + 4] */ 7427 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x3100E646: mov byte ptr [edx + 0x3c], 0 */ 7428 ecx = MEM32(eax + 0x4); /* 0x3100E64A: mov ecx, dword ptr [eax + 4] */ 7429 edx = MEM32(ecx + 0x8); /* 0x3100E64D: mov edx, dword ptr [ecx + 8] */ 7430 esi = MEM32(edx); /* 0x3100E650: mov esi, dword ptr [edx] */ 7431 MEM32(ecx + 0x8) = esi; /* 0x3100E652: mov dword ptr [ecx + 8], esi */ 7432 esi = MEM32(edx); /* 0x3100E655: mov esi, dword ptr [edx] */ 7433 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E657: cmp esi, dword ptr [edi + 8] */ 7434 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7435 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7436 _flag_k = FK_CMP; 7437 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E65F; /* 0x3100E65A: je 0x3100e65f */ 7438 L_3100E65C: 7439 MEM32(esi + 0x4) = ecx; /* 0x3100E65C: mov dword ptr [esi + 4], ecx */ 7440 L_3100E65F: 7441 esi = MEM32(ecx + 0x4); /* 0x3100E65F: mov esi, dword ptr [ecx + 4] */ 7442 MEM32(edx + 0x4) = esi; /* 0x3100E662: mov dword ptr [edx + 4], esi */ 7443 esi = MEM32(edi + 0x4); /* 0x3100E665: mov esi, dword ptr [edi + 4] */ 7444 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E668: cmp ecx, dword ptr [esi + 4] */ 7445 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7446 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7447 _flag_k = FK_CMP; 7448 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E672; /* 0x3100E66B: jne 0x3100e672 */ 7449 L_3100E66D: 7450 MEM32(esi + 0x4) = edx; /* 0x3100E66D: mov dword ptr [esi + 4], edx */ 7451 goto L_3100E680; /* 0x3100E670: jmp 0x3100e680 */ 7452 L_3100E672: 7453 esi = MEM32(ecx + 0x4); /* 0x3100E672: mov esi, dword ptr [ecx + 4] */ 7454 /* cmp ecx, MEM32(esi) */ /* 0x3100E675: cmp ecx, dword ptr [esi] */ 7455 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 7456 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7457 _flag_k = FK_CMP; 7458 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E67D; /* 0x3100E677: jne 0x3100e67d */ 7459 L_3100E679: 7460 MEM32(esi) = edx; /* 0x3100E679: mov dword ptr [esi], edx */ 7461 goto L_3100E680; /* 0x3100E67B: jmp 0x3100e680 */ 7462 L_3100E67D: 7463 MEM32(esi + 0x8) = edx; /* 0x3100E67D: mov dword ptr [esi + 8], edx */ 7464 L_3100E680: 7465 MEM32(edx) = ecx; /* 0x3100E680: mov dword ptr [edx], ecx */ 7466 MEM32(ecx + 0x4) = edx; /* 0x3100E682: mov dword ptr [ecx + 4], edx */ 7467 ecx = MEM32(eax + 0x4); /* 0x3100E685: mov ecx, dword ptr [eax + 4] */ 7468 ecx = MEM32(ecx + 0x8); /* 0x3100E688: mov ecx, dword ptr [ecx + 8] */ 7469 L_3100E68B: 7470 edx = MEM32(ecx); /* 0x3100E68B: mov edx, dword ptr [ecx] */ 7471 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E68D: cmp byte ptr [edx + 0x3c], bl */ 7472 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7473 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7474 _flag_k = FK_NARROW(FK_CMP, 24); 7475 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E726; /* 0x3100E690: jne 0x3100e726 */ 7476 L_3100E696: 7477 edx = MEM32(ecx + 0x8); /* 0x3100E696: mov edx, dword ptr [ecx + 8] */ 7478 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E699: cmp byte ptr [edx + 0x3c], bl */ 7479 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7480 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7481 _flag_k = FK_NARROW(FK_CMP, 24); 7482 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E726; /* 0x3100E69C: jne 0x3100e726 */ 7483 L_3100E6A2: 7484 goto L_3100E70E; /* 0x3100E6A2: jmp 0x3100e70e */ 7485 L_3100E6A4: 7486 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x3100E6A4: mov dl, byte ptr [ecx + 0x3c] */ 7487 /* test LO8(edx), LO8(edx) */ /* 0x3100E6A7: test dl, dl */ 7488 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7489 _cf = 0; 7490 _flag_k = FK_NARROW(FK_TEST, 24); 7491 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100E6F7; /* 0x3100E6A9: jne 0x3100e6f7 */ 7492 L_3100E6AB: 7493 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E6AB: mov byte ptr [ecx + 0x3c], bl */ 7494 ecx = MEM32(eax + 0x4); /* 0x3100E6AE: mov ecx, dword ptr [eax + 4] */ 7495 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E6B1: mov byte ptr [ecx + 0x3c], 0 */ 7496 ecx = MEM32(eax + 0x4); /* 0x3100E6B5: mov ecx, dword ptr [eax + 4] */ 7497 edx = MEM32(ecx); /* 0x3100E6B8: mov edx, dword ptr [ecx] */ 7498 esi = MEM32(edx + 0x8); /* 0x3100E6BA: mov esi, dword ptr [edx + 8] */ 7499 MEM32(ecx) = esi; /* 0x3100E6BD: mov dword ptr [ecx], esi */ 7500 esi = MEM32(edx + 0x8); /* 0x3100E6BF: mov esi, dword ptr [edx + 8] */ 7501 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E6C2: cmp esi, dword ptr [edi + 8] */ 7502 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7503 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7504 _flag_k = FK_CMP; 7505 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E6CA; /* 0x3100E6C5: je 0x3100e6ca */ 7506 L_3100E6C7: 7507 MEM32(esi + 0x4) = ecx; /* 0x3100E6C7: mov dword ptr [esi + 4], ecx */ 7508 L_3100E6CA: 7509 esi = MEM32(ecx + 0x4); /* 0x3100E6CA: mov esi, dword ptr [ecx + 4] */ 7510 MEM32(edx + 0x4) = esi; /* 0x3100E6CD: mov dword ptr [edx + 4], esi */ 7511 esi = MEM32(edi + 0x4); /* 0x3100E6D0: mov esi, dword ptr [edi + 4] */ 7512 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E6D3: cmp ecx, dword ptr [esi + 4] */ 7513 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7514 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7515 _flag_k = FK_CMP; 7516 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6DD; /* 0x3100E6D6: jne 0x3100e6dd */ 7517 L_3100E6D8: 7518 MEM32(esi + 0x4) = edx; /* 0x3100E6D8: mov dword ptr [esi + 4], edx */ 7519 goto L_3100E6EC; /* 0x3100E6DB: jmp 0x3100e6ec */ 7520 L_3100E6DD: 7521 esi = MEM32(ecx + 0x4); /* 0x3100E6DD: mov esi, dword ptr [ecx + 4] */ 7522 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E6E0: cmp ecx, dword ptr [esi + 8] */ 7523 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7524 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7525 _flag_k = FK_CMP; 7526 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6EA; /* 0x3100E6E3: jne 0x3100e6ea */ 7527 L_3100E6E5: 7528 MEM32(esi + 0x8) = edx; /* 0x3100E6E5: mov dword ptr [esi + 8], edx */ 7529 goto L_3100E6EC; /* 0x3100E6E8: jmp 0x3100e6ec */ 7530 L_3100E6EA: 7531 MEM32(esi) = edx; /* 0x3100E6EA: mov dword ptr [esi], edx */ 7532 L_3100E6EC: 7533 MEM32(edx + 0x8) = ecx; /* 0x3100E6EC: mov dword ptr [edx + 8], ecx */ 7534 MEM32(ecx + 0x4) = edx; /* 0x3100E6EF: mov dword ptr [ecx + 4], edx */ 7535 edx = MEM32(eax + 0x4); /* 0x3100E6F2: mov edx, dword ptr [eax + 4] */ 7536 ecx = MEM32(edx); /* 0x3100E6F5: mov ecx, dword ptr [edx] */ 7537 L_3100E6F7: 7538 edx = MEM32(ecx + 0x8); /* 0x3100E6F7: mov edx, dword ptr [ecx + 8] */ 7539 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E6FA: cmp byte ptr [edx + 0x3c], bl */ 7540 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7541 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7542 _flag_k = FK_NARROW(FK_CMP, 24); 7543 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7D3; /* 0x3100E6FD: jne 0x3100e7d3 */ 7544 L_3100E703: 7545 edx = MEM32(ecx); /* 0x3100E703: mov edx, dword ptr [ecx] */ 7546 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E705: cmp byte ptr [edx + 0x3c], bl */ 7547 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7548 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7549 _flag_k = FK_NARROW(FK_CMP, 24); 7550 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7D3; /* 0x3100E708: jne 0x3100e7d3 */ 7551 L_3100E70E: 7552 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E70E: mov byte ptr [ecx + 0x3c], 0 */ 7553 ecx = MEM32(edi + 0x4); /* 0x3100E712: mov ecx, dword ptr [edi + 4] */ 7554 eax = MEM32(eax + 0x4); /* 0x3100E715: mov eax, dword ptr [eax + 4] */ 7555 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3100E718: cmp eax, dword ptr [ecx + 4] */ 7556 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 7557 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7558 _flag_k = FK_CMP; 7559 RECOMP_BACKEDGE(); 7560 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E624; /* 0x3100E71B: jne 0x3100e624 */ 7561 L_3100E721: 7562 goto L_3100E872; /* 0x3100E721: jmp 0x3100e872 */ 7563 L_3100E726: 7564 edx = MEM32(ecx + 0x8); /* 0x3100E726: mov edx, dword ptr [ecx + 8] */ 7565 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E729: cmp byte ptr [edx + 0x3c], bl */ 7566 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7567 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7568 _flag_k = FK_NARROW(FK_CMP, 24); 7569 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E777; /* 0x3100E72C: jne 0x3100e777 */ 7570 L_3100E72E: 7571 edx = MEM32(ecx); /* 0x3100E72E: mov edx, dword ptr [ecx] */ 7572 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E730: mov byte ptr [edx + 0x3c], bl */ 7573 edx = MEM32(ecx); /* 0x3100E733: mov edx, dword ptr [ecx] */ 7574 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E735: mov byte ptr [ecx + 0x3c], 0 */ 7575 esi = MEM32(edx + 0x8); /* 0x3100E739: mov esi, dword ptr [edx + 8] */ 7576 MEM32(ecx) = esi; /* 0x3100E73C: mov dword ptr [ecx], esi */ 7577 esi = MEM32(edx + 0x8); /* 0x3100E73E: mov esi, dword ptr [edx + 8] */ 7578 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E741: cmp esi, dword ptr [edi + 8] */ 7579 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7580 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7581 _flag_k = FK_CMP; 7582 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E749; /* 0x3100E744: je 0x3100e749 */ 7583 L_3100E746: 7584 MEM32(esi + 0x4) = ecx; /* 0x3100E746: mov dword ptr [esi + 4], ecx */ 7585 L_3100E749: 7586 esi = MEM32(ecx + 0x4); /* 0x3100E749: mov esi, dword ptr [ecx + 4] */ 7587 MEM32(edx + 0x4) = esi; /* 0x3100E74C: mov dword ptr [edx + 4], esi */ 7588 esi = MEM32(edi + 0x4); /* 0x3100E74F: mov esi, dword ptr [edi + 4] */ 7589 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E752: cmp ecx, dword ptr [esi + 4] */ 7590 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7591 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7592 _flag_k = FK_CMP; 7593 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E75C; /* 0x3100E755: jne 0x3100e75c */ 7594 L_3100E757: 7595 MEM32(esi + 0x4) = edx; /* 0x3100E757: mov dword ptr [esi + 4], edx */ 7596 goto L_3100E76B; /* 0x3100E75A: jmp 0x3100e76b */ 7597 L_3100E75C: 7598 esi = MEM32(ecx + 0x4); /* 0x3100E75C: mov esi, dword ptr [ecx + 4] */ 7599 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E75F: cmp ecx, dword ptr [esi + 8] */ 7600 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7601 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7602 _flag_k = FK_CMP; 7603 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E769; /* 0x3100E762: jne 0x3100e769 */ 7604 L_3100E764: 7605 MEM32(esi + 0x8) = edx; /* 0x3100E764: mov dword ptr [esi + 8], edx */ 7606 goto L_3100E76B; /* 0x3100E767: jmp 0x3100e76b */ 7607 L_3100E769: 7608 MEM32(esi) = edx; /* 0x3100E769: mov dword ptr [esi], edx */ 7609 L_3100E76B: 7610 MEM32(edx + 0x8) = ecx; /* 0x3100E76B: mov dword ptr [edx + 8], ecx */ 7611 MEM32(ecx + 0x4) = edx; /* 0x3100E76E: mov dword ptr [ecx + 4], edx */ 7612 ecx = MEM32(eax + 0x4); /* 0x3100E771: mov ecx, dword ptr [eax + 4] */ 7613 ecx = MEM32(ecx + 0x8); /* 0x3100E774: mov ecx, dword ptr [ecx + 8] */ 7614 L_3100E777: 7615 edx = MEM32(eax + 0x4); /* 0x3100E777: mov edx, dword ptr [eax + 4] */ 7616 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3100E77A: mov dl, byte ptr [edx + 0x3c] */ 7617 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3100E77D: mov byte ptr [ecx + 0x3c], dl */ 7618 edx = MEM32(eax + 0x4); /* 0x3100E780: mov edx, dword ptr [eax + 4] */ 7619 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E783: mov byte ptr [edx + 0x3c], bl */ 7620 ecx = MEM32(ecx + 0x8); /* 0x3100E786: mov ecx, dword ptr [ecx + 8] */ 7621 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E789: mov byte ptr [ecx + 0x3c], bl */ 7622 ecx = MEM32(eax + 0x4); /* 0x3100E78C: mov ecx, dword ptr [eax + 4] */ 7623 edx = MEM32(ecx + 0x8); /* 0x3100E78F: mov edx, dword ptr [ecx + 8] */ 7624 esi = MEM32(edx); /* 0x3100E792: mov esi, dword ptr [edx] */ 7625 MEM32(ecx + 0x8) = esi; /* 0x3100E794: mov dword ptr [ecx + 8], esi */ 7626 esi = MEM32(edx); /* 0x3100E797: mov esi, dword ptr [edx] */ 7627 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E799: cmp esi, dword ptr [edi + 8] */ 7628 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7629 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7630 _flag_k = FK_CMP; 7631 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E7A1; /* 0x3100E79C: je 0x3100e7a1 */ 7632 L_3100E79E: 7633 MEM32(esi + 0x4) = ecx; /* 0x3100E79E: mov dword ptr [esi + 4], ecx */ 7634 L_3100E7A1: 7635 esi = MEM32(ecx + 0x4); /* 0x3100E7A1: mov esi, dword ptr [ecx + 4] */ 7636 MEM32(edx + 0x4) = esi; /* 0x3100E7A4: mov dword ptr [edx + 4], esi */ 7637 esi = MEM32(edi + 0x4); /* 0x3100E7A7: mov esi, dword ptr [edi + 4] */ 7638 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E7AA: cmp ecx, dword ptr [esi + 4] */ 7639 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7640 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7641 _flag_k = FK_CMP; 7642 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7B9; /* 0x3100E7AD: jne 0x3100e7b9 */ 7643 L_3100E7AF: 7644 MEM32(esi + 0x4) = edx; /* 0x3100E7AF: mov dword ptr [esi + 4], edx */ 7645 MEM32(edx) = ecx; /* 0x3100E7B2: mov dword ptr [edx], ecx */ 7646 goto L_3100E86F; /* 0x3100E7B4: jmp 0x3100e86f */ 7647 L_3100E7B9: 7648 esi = MEM32(ecx + 0x4); /* 0x3100E7B9: mov esi, dword ptr [ecx + 4] */ 7649 /* cmp ecx, MEM32(esi) */ /* 0x3100E7BC: cmp ecx, dword ptr [esi] */ 7650 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 7651 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7652 _flag_k = FK_CMP; 7653 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7C9; /* 0x3100E7BE: jne 0x3100e7c9 */ 7654 L_3100E7C0: 7655 MEM32(esi) = edx; /* 0x3100E7C0: mov dword ptr [esi], edx */ 7656 MEM32(edx) = ecx; /* 0x3100E7C2: mov dword ptr [edx], ecx */ 7657 goto L_3100E86F; /* 0x3100E7C4: jmp 0x3100e86f */ 7658 L_3100E7C9: 7659 MEM32(esi + 0x8) = edx; /* 0x3100E7C9: mov dword ptr [esi + 8], edx */ 7660 MEM32(edx) = ecx; /* 0x3100E7CC: mov dword ptr [edx], ecx */ 7661 goto L_3100E86F; /* 0x3100E7CE: jmp 0x3100e86f */ 7662 L_3100E7D3: 7663 edx = MEM32(ecx); /* 0x3100E7D3: mov edx, dword ptr [ecx] */ 7664 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E7D5: cmp byte ptr [edx + 0x3c], bl */ 7665 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7666 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7667 _flag_k = FK_NARROW(FK_CMP, 24); 7668 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E821; /* 0x3100E7D8: jne 0x3100e821 */ 7669 L_3100E7DA: 7670 edx = MEM32(ecx + 0x8); /* 0x3100E7DA: mov edx, dword ptr [ecx + 8] */ 7671 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E7DD: mov byte ptr [edx + 0x3c], bl */ 7672 edx = MEM32(ecx + 0x8); /* 0x3100E7E0: mov edx, dword ptr [ecx + 8] */ 7673 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E7E3: mov byte ptr [ecx + 0x3c], 0 */ 7674 esi = MEM32(edx); /* 0x3100E7E7: mov esi, dword ptr [edx] */ 7675 MEM32(ecx + 0x8) = esi; /* 0x3100E7E9: mov dword ptr [ecx + 8], esi */ 7676 esi = MEM32(edx); /* 0x3100E7EC: mov esi, dword ptr [edx] */ 7677 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E7EE: cmp esi, dword ptr [edi + 8] */ 7678 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7679 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7680 _flag_k = FK_CMP; 7681 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E7F6; /* 0x3100E7F1: je 0x3100e7f6 */ 7682 L_3100E7F3: 7683 MEM32(esi + 0x4) = ecx; /* 0x3100E7F3: mov dword ptr [esi + 4], ecx */ 7684 L_3100E7F6: 7685 esi = MEM32(ecx + 0x4); /* 0x3100E7F6: mov esi, dword ptr [ecx + 4] */ 7686 MEM32(edx + 0x4) = esi; /* 0x3100E7F9: mov dword ptr [edx + 4], esi */ 7687 esi = MEM32(edi + 0x4); /* 0x3100E7FC: mov esi, dword ptr [edi + 4] */ 7688 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E7FF: cmp ecx, dword ptr [esi + 4] */ 7689 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7690 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7691 _flag_k = FK_CMP; 7692 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E809; /* 0x3100E802: jne 0x3100e809 */ 7693 L_3100E804: 7694 MEM32(esi + 0x4) = edx; /* 0x3100E804: mov dword ptr [esi + 4], edx */ 7695 goto L_3100E817; /* 0x3100E807: jmp 0x3100e817 */ 7696 L_3100E809: 7697 esi = MEM32(ecx + 0x4); /* 0x3100E809: mov esi, dword ptr [ecx + 4] */ 7698 /* cmp ecx, MEM32(esi) */ /* 0x3100E80C: cmp ecx, dword ptr [esi] */ 7699 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 7700 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7701 _flag_k = FK_CMP; 7702 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E814; /* 0x3100E80E: jne 0x3100e814 */ 7703 L_3100E810: 7704 MEM32(esi) = edx; /* 0x3100E810: mov dword ptr [esi], edx */ 7705 goto L_3100E817; /* 0x3100E812: jmp 0x3100e817 */ 7706 L_3100E814: 7707 MEM32(esi + 0x8) = edx; /* 0x3100E814: mov dword ptr [esi + 8], edx */ 7708 L_3100E817: 7709 MEM32(edx) = ecx; /* 0x3100E817: mov dword ptr [edx], ecx */ 7710 MEM32(ecx + 0x4) = edx; /* 0x3100E819: mov dword ptr [ecx + 4], edx */ 7711 ecx = MEM32(eax + 0x4); /* 0x3100E81C: mov ecx, dword ptr [eax + 4] */ 7712 ecx = MEM32(ecx); /* 0x3100E81F: mov ecx, dword ptr [ecx] */ 7713 L_3100E821: 7714 edx = MEM32(eax + 0x4); /* 0x3100E821: mov edx, dword ptr [eax + 4] */ 7715 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3100E824: mov dl, byte ptr [edx + 0x3c] */ 7716 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3100E827: mov byte ptr [ecx + 0x3c], dl */ 7717 edx = MEM32(eax + 0x4); /* 0x3100E82A: mov edx, dword ptr [eax + 4] */ 7718 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E82D: mov byte ptr [edx + 0x3c], bl */ 7719 ecx = MEM32(ecx); /* 0x3100E830: mov ecx, dword ptr [ecx] */ 7720 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E832: mov byte ptr [ecx + 0x3c], bl */ 7721 ecx = MEM32(eax + 0x4); /* 0x3100E835: mov ecx, dword ptr [eax + 4] */ 7722 edx = MEM32(ecx); /* 0x3100E838: mov edx, dword ptr [ecx] */ 7723 esi = MEM32(edx + 0x8); /* 0x3100E83A: mov esi, dword ptr [edx + 8] */ 7724 MEM32(ecx) = esi; /* 0x3100E83D: mov dword ptr [ecx], esi */ 7725 esi = MEM32(edx + 0x8); /* 0x3100E83F: mov esi, dword ptr [edx + 8] */ 7726 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E842: cmp esi, dword ptr [edi + 8] */ 7727 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7728 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7729 _flag_k = FK_CMP; 7730 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E84A; /* 0x3100E845: je 0x3100e84a */ 7731 L_3100E847: 7732 MEM32(esi + 0x4) = ecx; /* 0x3100E847: mov dword ptr [esi + 4], ecx */ 7733 L_3100E84A: 7734 esi = MEM32(ecx + 0x4); /* 0x3100E84A: mov esi, dword ptr [ecx + 4] */ 7735 MEM32(edx + 0x4) = esi; /* 0x3100E84D: mov dword ptr [edx + 4], esi */ 7736 esi = MEM32(edi + 0x4); /* 0x3100E850: mov esi, dword ptr [edi + 4] */ 7737 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E853: cmp ecx, dword ptr [esi + 4] */ 7738 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7739 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7740 _flag_k = FK_CMP; 7741 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E85D; /* 0x3100E856: jne 0x3100e85d */ 7742 L_3100E858: 7743 MEM32(esi + 0x4) = edx; /* 0x3100E858: mov dword ptr [esi + 4], edx */ 7744 goto L_3100E86C; /* 0x3100E85B: jmp 0x3100e86c */ 7745 L_3100E85D: 7746 esi = MEM32(ecx + 0x4); /* 0x3100E85D: mov esi, dword ptr [ecx + 4] */ 7747 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E860: cmp ecx, dword ptr [esi + 8] */ 7748 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7749 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7750 _flag_k = FK_CMP; 7751 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E86A; /* 0x3100E863: jne 0x3100e86a */ 7752 L_3100E865: 7753 MEM32(esi + 0x8) = edx; /* 0x3100E865: mov dword ptr [esi + 8], edx */ 7754 goto L_3100E86C; /* 0x3100E868: jmp 0x3100e86c */ 7755 L_3100E86A: 7756 MEM32(esi) = edx; /* 0x3100E86A: mov dword ptr [esi], edx */ 7757 L_3100E86C: 7758 MEM32(edx + 0x8) = ecx; /* 0x3100E86C: mov dword ptr [edx + 8], ecx */ 7759 L_3100E86F: 7760 MEM32(ecx + 0x4) = edx; /* 0x3100E86F: mov dword ptr [ecx + 4], edx */ 7761 L_3100E872: 7762 esi = MEM32(ebp + (-0x4)); /* 0x3100E872: mov esi, dword ptr [ebp - 4] */ 7763 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E875: mov byte ptr [eax + 0x3c], bl */ 7764 ecx = esi + 0xC; /* 0x3100E878: lea ecx, [esi + 0xc] */ 7765 RECOMP_ICALL(0x3100EE80u); /* 0x3100E87B: call 0x3100ee80 */ /* not lifted */ 7766 RECOMP_FLAGS_IN(); 7767 PUSH32(esp, esi); /* 0x3100E880: push esi */ 7768 RECOMP_ICALL(0x31046858u); /* 0x3100E881: call 0x31046858 */ /* not lifted */ 7769 RECOMP_FLAGS_IN(); 7770 eax = MEM32(edi + 0x10); /* 0x3100E886: mov eax, dword ptr [edi + 0x10] */ 7771 edx = MEM32(ebp + 0xC); /* 0x3100E889: mov edx, dword ptr [ebp + 0xc] */ 7772 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7773 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7774 esp = esp + 4; /* 0x3100E88C: add esp, 4 */ 7775 _flag_k = FK_ADD; 7776 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7777 eax = eax - 1; /* 0x3100E88F: dec eax */ 7778 _flag_k = FK_DEC; 7779 MEM32(edi + 0x10) = eax; /* 0x3100E890: mov dword ptr [edi + 0x10], eax */ 7780 eax = MEM32(ebp + 0x8); /* 0x3100E893: mov eax, dword ptr [ebp + 8] */ 7781 edi = POP32_VAL(esp); /* 0x3100E896: pop edi */ 7782 esi = POP32_VAL(esp); /* 0x3100E897: pop esi */ 7783 MEM32(eax) = edx; /* 0x3100E898: mov dword ptr [eax], edx */ 7784 ebx = POP32_VAL(esp); /* 0x3100E89A: pop ebx */ 7785 esp = ebp; /* 0x3100E89B: mov esp, ebp */ 7786 ebp = POP32_VAL(esp); /* 0x3100E89D: pop ebp */ 7787 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100E89E: ret 8 */ 7788 RECOMP_REGS_OUT(); 7789 } 7790 7791 void sub_3100E6F7(void) { 7792 int _fpu_cmp = 0; 7793 uint32_t _cf = 0; 7794 int _df = 1; 7795 uint32_t _flag_k = FK_NONE; 7796 uint32_t _flag_a = 0, _flag_b = 0; 7797 uint32_t _itail_tgt = 0; 7798 RECOMP_REGS_LOCALS 7799 RECOMP_ENTER(0x3100E6F7u); 7800 7801 goto L_3100E6F7; 7802 L_3100E624: 7803 /* cmp MEM8(eax + 0x3C), LO8(ebx) */ /* 0x3100E624: cmp byte ptr [eax + 0x3c], bl */ 7804 _flag_a = (uint32_t)(MEM8(eax + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7805 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7806 _flag_k = FK_NARROW(FK_CMP, 24); 7807 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E872; /* 0x3100E627: jne 0x3100e872 */ 7808 L_3100E62D: 7809 edx = MEM32(eax + 0x4); /* 0x3100E62D: mov edx, dword ptr [eax + 4] */ 7810 ecx = MEM32(edx); /* 0x3100E630: mov ecx, dword ptr [edx] */ 7811 /* cmp eax, ecx */ /* 0x3100E632: cmp eax, ecx */ 7812 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7813 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7814 _flag_k = FK_CMP; 7815 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6A4; /* 0x3100E634: jne 0x3100e6a4 */ 7816 L_3100E636: 7817 ecx = MEM32(edx + 0x8); /* 0x3100E636: mov ecx, dword ptr [edx + 8] */ 7818 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x3100E639: mov dl, byte ptr [ecx + 0x3c] */ 7819 /* test LO8(edx), LO8(edx) */ /* 0x3100E63C: test dl, dl */ 7820 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7821 _cf = 0; 7822 _flag_k = FK_NARROW(FK_TEST, 24); 7823 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100E68B; /* 0x3100E63E: jne 0x3100e68b */ 7824 L_3100E640: 7825 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E640: mov byte ptr [ecx + 0x3c], bl */ 7826 edx = MEM32(eax + 0x4); /* 0x3100E643: mov edx, dword ptr [eax + 4] */ 7827 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x3100E646: mov byte ptr [edx + 0x3c], 0 */ 7828 ecx = MEM32(eax + 0x4); /* 0x3100E64A: mov ecx, dword ptr [eax + 4] */ 7829 edx = MEM32(ecx + 0x8); /* 0x3100E64D: mov edx, dword ptr [ecx + 8] */ 7830 esi = MEM32(edx); /* 0x3100E650: mov esi, dword ptr [edx] */ 7831 MEM32(ecx + 0x8) = esi; /* 0x3100E652: mov dword ptr [ecx + 8], esi */ 7832 esi = MEM32(edx); /* 0x3100E655: mov esi, dword ptr [edx] */ 7833 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E657: cmp esi, dword ptr [edi + 8] */ 7834 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7835 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7836 _flag_k = FK_CMP; 7837 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E65F; /* 0x3100E65A: je 0x3100e65f */ 7838 L_3100E65C: 7839 MEM32(esi + 0x4) = ecx; /* 0x3100E65C: mov dword ptr [esi + 4], ecx */ 7840 L_3100E65F: 7841 esi = MEM32(ecx + 0x4); /* 0x3100E65F: mov esi, dword ptr [ecx + 4] */ 7842 MEM32(edx + 0x4) = esi; /* 0x3100E662: mov dword ptr [edx + 4], esi */ 7843 esi = MEM32(edi + 0x4); /* 0x3100E665: mov esi, dword ptr [edi + 4] */ 7844 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E668: cmp ecx, dword ptr [esi + 4] */ 7845 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7846 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7847 _flag_k = FK_CMP; 7848 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E672; /* 0x3100E66B: jne 0x3100e672 */ 7849 L_3100E66D: 7850 MEM32(esi + 0x4) = edx; /* 0x3100E66D: mov dword ptr [esi + 4], edx */ 7851 goto L_3100E680; /* 0x3100E670: jmp 0x3100e680 */ 7852 L_3100E672: 7853 esi = MEM32(ecx + 0x4); /* 0x3100E672: mov esi, dword ptr [ecx + 4] */ 7854 /* cmp ecx, MEM32(esi) */ /* 0x3100E675: cmp ecx, dword ptr [esi] */ 7855 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 7856 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7857 _flag_k = FK_CMP; 7858 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E67D; /* 0x3100E677: jne 0x3100e67d */ 7859 L_3100E679: 7860 MEM32(esi) = edx; /* 0x3100E679: mov dword ptr [esi], edx */ 7861 goto L_3100E680; /* 0x3100E67B: jmp 0x3100e680 */ 7862 L_3100E67D: 7863 MEM32(esi + 0x8) = edx; /* 0x3100E67D: mov dword ptr [esi + 8], edx */ 7864 L_3100E680: 7865 MEM32(edx) = ecx; /* 0x3100E680: mov dword ptr [edx], ecx */ 7866 MEM32(ecx + 0x4) = edx; /* 0x3100E682: mov dword ptr [ecx + 4], edx */ 7867 ecx = MEM32(eax + 0x4); /* 0x3100E685: mov ecx, dword ptr [eax + 4] */ 7868 ecx = MEM32(ecx + 0x8); /* 0x3100E688: mov ecx, dword ptr [ecx + 8] */ 7869 L_3100E68B: 7870 edx = MEM32(ecx); /* 0x3100E68B: mov edx, dword ptr [ecx] */ 7871 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E68D: cmp byte ptr [edx + 0x3c], bl */ 7872 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7873 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7874 _flag_k = FK_NARROW(FK_CMP, 24); 7875 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E726; /* 0x3100E690: jne 0x3100e726 */ 7876 L_3100E696: 7877 edx = MEM32(ecx + 0x8); /* 0x3100E696: mov edx, dword ptr [ecx + 8] */ 7878 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E699: cmp byte ptr [edx + 0x3c], bl */ 7879 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7880 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7881 _flag_k = FK_NARROW(FK_CMP, 24); 7882 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E726; /* 0x3100E69C: jne 0x3100e726 */ 7883 L_3100E6A2: 7884 goto L_3100E70E; /* 0x3100E6A2: jmp 0x3100e70e */ 7885 L_3100E6A4: 7886 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x3100E6A4: mov dl, byte ptr [ecx + 0x3c] */ 7887 /* test LO8(edx), LO8(edx) */ /* 0x3100E6A7: test dl, dl */ 7888 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7889 _cf = 0; 7890 _flag_k = FK_NARROW(FK_TEST, 24); 7891 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100E6F7; /* 0x3100E6A9: jne 0x3100e6f7 */ 7892 L_3100E6AB: 7893 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E6AB: mov byte ptr [ecx + 0x3c], bl */ 7894 ecx = MEM32(eax + 0x4); /* 0x3100E6AE: mov ecx, dword ptr [eax + 4] */ 7895 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E6B1: mov byte ptr [ecx + 0x3c], 0 */ 7896 ecx = MEM32(eax + 0x4); /* 0x3100E6B5: mov ecx, dword ptr [eax + 4] */ 7897 edx = MEM32(ecx); /* 0x3100E6B8: mov edx, dword ptr [ecx] */ 7898 esi = MEM32(edx + 0x8); /* 0x3100E6BA: mov esi, dword ptr [edx + 8] */ 7899 MEM32(ecx) = esi; /* 0x3100E6BD: mov dword ptr [ecx], esi */ 7900 esi = MEM32(edx + 0x8); /* 0x3100E6BF: mov esi, dword ptr [edx + 8] */ 7901 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E6C2: cmp esi, dword ptr [edi + 8] */ 7902 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7903 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7904 _flag_k = FK_CMP; 7905 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E6CA; /* 0x3100E6C5: je 0x3100e6ca */ 7906 L_3100E6C7: 7907 MEM32(esi + 0x4) = ecx; /* 0x3100E6C7: mov dword ptr [esi + 4], ecx */ 7908 L_3100E6CA: 7909 esi = MEM32(ecx + 0x4); /* 0x3100E6CA: mov esi, dword ptr [ecx + 4] */ 7910 MEM32(edx + 0x4) = esi; /* 0x3100E6CD: mov dword ptr [edx + 4], esi */ 7911 esi = MEM32(edi + 0x4); /* 0x3100E6D0: mov esi, dword ptr [edi + 4] */ 7912 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E6D3: cmp ecx, dword ptr [esi + 4] */ 7913 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7914 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7915 _flag_k = FK_CMP; 7916 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6DD; /* 0x3100E6D6: jne 0x3100e6dd */ 7917 L_3100E6D8: 7918 MEM32(esi + 0x4) = edx; /* 0x3100E6D8: mov dword ptr [esi + 4], edx */ 7919 goto L_3100E6EC; /* 0x3100E6DB: jmp 0x3100e6ec */ 7920 L_3100E6DD: 7921 esi = MEM32(ecx + 0x4); /* 0x3100E6DD: mov esi, dword ptr [ecx + 4] */ 7922 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E6E0: cmp ecx, dword ptr [esi + 8] */ 7923 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7924 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7925 _flag_k = FK_CMP; 7926 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6EA; /* 0x3100E6E3: jne 0x3100e6ea */ 7927 L_3100E6E5: 7928 MEM32(esi + 0x8) = edx; /* 0x3100E6E5: mov dword ptr [esi + 8], edx */ 7929 goto L_3100E6EC; /* 0x3100E6E8: jmp 0x3100e6ec */ 7930 L_3100E6EA: 7931 MEM32(esi) = edx; /* 0x3100E6EA: mov dword ptr [esi], edx */ 7932 L_3100E6EC: 7933 MEM32(edx + 0x8) = ecx; /* 0x3100E6EC: mov dword ptr [edx + 8], ecx */ 7934 MEM32(ecx + 0x4) = edx; /* 0x3100E6EF: mov dword ptr [ecx + 4], edx */ 7935 edx = MEM32(eax + 0x4); /* 0x3100E6F2: mov edx, dword ptr [eax + 4] */ 7936 ecx = MEM32(edx); /* 0x3100E6F5: mov ecx, dword ptr [edx] */ 7937 L_3100E6F7: 7938 edx = MEM32(ecx + 0x8); /* 0x3100E6F7: mov edx, dword ptr [ecx + 8] */ 7939 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E6FA: cmp byte ptr [edx + 0x3c], bl */ 7940 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7941 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7942 _flag_k = FK_NARROW(FK_CMP, 24); 7943 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7D3; /* 0x3100E6FD: jne 0x3100e7d3 */ 7944 L_3100E703: 7945 edx = MEM32(ecx); /* 0x3100E703: mov edx, dword ptr [ecx] */ 7946 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E705: cmp byte ptr [edx + 0x3c], bl */ 7947 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7948 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7949 _flag_k = FK_NARROW(FK_CMP, 24); 7950 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7D3; /* 0x3100E708: jne 0x3100e7d3 */ 7951 L_3100E70E: 7952 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E70E: mov byte ptr [ecx + 0x3c], 0 */ 7953 ecx = MEM32(edi + 0x4); /* 0x3100E712: mov ecx, dword ptr [edi + 4] */ 7954 eax = MEM32(eax + 0x4); /* 0x3100E715: mov eax, dword ptr [eax + 4] */ 7955 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3100E718: cmp eax, dword ptr [ecx + 4] */ 7956 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 7957 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7958 _flag_k = FK_CMP; 7959 RECOMP_BACKEDGE(); 7960 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E624; /* 0x3100E71B: jne 0x3100e624 */ 7961 L_3100E721: 7962 goto L_3100E872; /* 0x3100E721: jmp 0x3100e872 */ 7963 L_3100E726: 7964 edx = MEM32(ecx + 0x8); /* 0x3100E726: mov edx, dword ptr [ecx + 8] */ 7965 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E729: cmp byte ptr [edx + 0x3c], bl */ 7966 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7967 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7968 _flag_k = FK_NARROW(FK_CMP, 24); 7969 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E777; /* 0x3100E72C: jne 0x3100e777 */ 7970 L_3100E72E: 7971 edx = MEM32(ecx); /* 0x3100E72E: mov edx, dword ptr [ecx] */ 7972 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E730: mov byte ptr [edx + 0x3c], bl */ 7973 edx = MEM32(ecx); /* 0x3100E733: mov edx, dword ptr [ecx] */ 7974 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E735: mov byte ptr [ecx + 0x3c], 0 */ 7975 esi = MEM32(edx + 0x8); /* 0x3100E739: mov esi, dword ptr [edx + 8] */ 7976 MEM32(ecx) = esi; /* 0x3100E73C: mov dword ptr [ecx], esi */ 7977 esi = MEM32(edx + 0x8); /* 0x3100E73E: mov esi, dword ptr [edx + 8] */ 7978 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E741: cmp esi, dword ptr [edi + 8] */ 7979 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7980 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7981 _flag_k = FK_CMP; 7982 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E749; /* 0x3100E744: je 0x3100e749 */ 7983 L_3100E746: 7984 MEM32(esi + 0x4) = ecx; /* 0x3100E746: mov dword ptr [esi + 4], ecx */ 7985 L_3100E749: 7986 esi = MEM32(ecx + 0x4); /* 0x3100E749: mov esi, dword ptr [ecx + 4] */ 7987 MEM32(edx + 0x4) = esi; /* 0x3100E74C: mov dword ptr [edx + 4], esi */ 7988 esi = MEM32(edi + 0x4); /* 0x3100E74F: mov esi, dword ptr [edi + 4] */ 7989 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E752: cmp ecx, dword ptr [esi + 4] */ 7990 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7991 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7992 _flag_k = FK_CMP; 7993 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E75C; /* 0x3100E755: jne 0x3100e75c */ 7994 L_3100E757: 7995 MEM32(esi + 0x4) = edx; /* 0x3100E757: mov dword ptr [esi + 4], edx */ 7996 goto L_3100E76B; /* 0x3100E75A: jmp 0x3100e76b */ 7997 L_3100E75C: 7998 esi = MEM32(ecx + 0x4); /* 0x3100E75C: mov esi, dword ptr [ecx + 4] */ 7999 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E75F: cmp ecx, dword ptr [esi + 8] */ 8000 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8001 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8002 _flag_k = FK_CMP; 8003 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E769; /* 0x3100E762: jne 0x3100e769 */ 8004 L_3100E764: 8005 MEM32(esi + 0x8) = edx; /* 0x3100E764: mov dword ptr [esi + 8], edx */ 8006 goto L_3100E76B; /* 0x3100E767: jmp 0x3100e76b */ 8007 L_3100E769: 8008 MEM32(esi) = edx; /* 0x3100E769: mov dword ptr [esi], edx */ 8009 L_3100E76B: 8010 MEM32(edx + 0x8) = ecx; /* 0x3100E76B: mov dword ptr [edx + 8], ecx */ 8011 MEM32(ecx + 0x4) = edx; /* 0x3100E76E: mov dword ptr [ecx + 4], edx */ 8012 ecx = MEM32(eax + 0x4); /* 0x3100E771: mov ecx, dword ptr [eax + 4] */ 8013 ecx = MEM32(ecx + 0x8); /* 0x3100E774: mov ecx, dword ptr [ecx + 8] */ 8014 L_3100E777: 8015 edx = MEM32(eax + 0x4); /* 0x3100E777: mov edx, dword ptr [eax + 4] */ 8016 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3100E77A: mov dl, byte ptr [edx + 0x3c] */ 8017 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3100E77D: mov byte ptr [ecx + 0x3c], dl */ 8018 edx = MEM32(eax + 0x4); /* 0x3100E780: mov edx, dword ptr [eax + 4] */ 8019 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E783: mov byte ptr [edx + 0x3c], bl */ 8020 ecx = MEM32(ecx + 0x8); /* 0x3100E786: mov ecx, dword ptr [ecx + 8] */ 8021 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E789: mov byte ptr [ecx + 0x3c], bl */ 8022 ecx = MEM32(eax + 0x4); /* 0x3100E78C: mov ecx, dword ptr [eax + 4] */ 8023 edx = MEM32(ecx + 0x8); /* 0x3100E78F: mov edx, dword ptr [ecx + 8] */ 8024 esi = MEM32(edx); /* 0x3100E792: mov esi, dword ptr [edx] */ 8025 MEM32(ecx + 0x8) = esi; /* 0x3100E794: mov dword ptr [ecx + 8], esi */ 8026 esi = MEM32(edx); /* 0x3100E797: mov esi, dword ptr [edx] */ 8027 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E799: cmp esi, dword ptr [edi + 8] */ 8028 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8029 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8030 _flag_k = FK_CMP; 8031 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E7A1; /* 0x3100E79C: je 0x3100e7a1 */ 8032 L_3100E79E: 8033 MEM32(esi + 0x4) = ecx; /* 0x3100E79E: mov dword ptr [esi + 4], ecx */ 8034 L_3100E7A1: 8035 esi = MEM32(ecx + 0x4); /* 0x3100E7A1: mov esi, dword ptr [ecx + 4] */ 8036 MEM32(edx + 0x4) = esi; /* 0x3100E7A4: mov dword ptr [edx + 4], esi */ 8037 esi = MEM32(edi + 0x4); /* 0x3100E7A7: mov esi, dword ptr [edi + 4] */ 8038 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E7AA: cmp ecx, dword ptr [esi + 4] */ 8039 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8040 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8041 _flag_k = FK_CMP; 8042 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7B9; /* 0x3100E7AD: jne 0x3100e7b9 */ 8043 L_3100E7AF: 8044 MEM32(esi + 0x4) = edx; /* 0x3100E7AF: mov dword ptr [esi + 4], edx */ 8045 MEM32(edx) = ecx; /* 0x3100E7B2: mov dword ptr [edx], ecx */ 8046 goto L_3100E86F; /* 0x3100E7B4: jmp 0x3100e86f */ 8047 L_3100E7B9: 8048 esi = MEM32(ecx + 0x4); /* 0x3100E7B9: mov esi, dword ptr [ecx + 4] */ 8049 /* cmp ecx, MEM32(esi) */ /* 0x3100E7BC: cmp ecx, dword ptr [esi] */ 8050 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8051 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8052 _flag_k = FK_CMP; 8053 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7C9; /* 0x3100E7BE: jne 0x3100e7c9 */ 8054 L_3100E7C0: 8055 MEM32(esi) = edx; /* 0x3100E7C0: mov dword ptr [esi], edx */ 8056 MEM32(edx) = ecx; /* 0x3100E7C2: mov dword ptr [edx], ecx */ 8057 goto L_3100E86F; /* 0x3100E7C4: jmp 0x3100e86f */ 8058 L_3100E7C9: 8059 MEM32(esi + 0x8) = edx; /* 0x3100E7C9: mov dword ptr [esi + 8], edx */ 8060 MEM32(edx) = ecx; /* 0x3100E7CC: mov dword ptr [edx], ecx */ 8061 goto L_3100E86F; /* 0x3100E7CE: jmp 0x3100e86f */ 8062 L_3100E7D3: 8063 edx = MEM32(ecx); /* 0x3100E7D3: mov edx, dword ptr [ecx] */ 8064 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E7D5: cmp byte ptr [edx + 0x3c], bl */ 8065 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8066 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8067 _flag_k = FK_NARROW(FK_CMP, 24); 8068 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E821; /* 0x3100E7D8: jne 0x3100e821 */ 8069 L_3100E7DA: 8070 edx = MEM32(ecx + 0x8); /* 0x3100E7DA: mov edx, dword ptr [ecx + 8] */ 8071 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E7DD: mov byte ptr [edx + 0x3c], bl */ 8072 edx = MEM32(ecx + 0x8); /* 0x3100E7E0: mov edx, dword ptr [ecx + 8] */ 8073 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E7E3: mov byte ptr [ecx + 0x3c], 0 */ 8074 esi = MEM32(edx); /* 0x3100E7E7: mov esi, dword ptr [edx] */ 8075 MEM32(ecx + 0x8) = esi; /* 0x3100E7E9: mov dword ptr [ecx + 8], esi */ 8076 esi = MEM32(edx); /* 0x3100E7EC: mov esi, dword ptr [edx] */ 8077 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E7EE: cmp esi, dword ptr [edi + 8] */ 8078 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8079 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8080 _flag_k = FK_CMP; 8081 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E7F6; /* 0x3100E7F1: je 0x3100e7f6 */ 8082 L_3100E7F3: 8083 MEM32(esi + 0x4) = ecx; /* 0x3100E7F3: mov dword ptr [esi + 4], ecx */ 8084 L_3100E7F6: 8085 esi = MEM32(ecx + 0x4); /* 0x3100E7F6: mov esi, dword ptr [ecx + 4] */ 8086 MEM32(edx + 0x4) = esi; /* 0x3100E7F9: mov dword ptr [edx + 4], esi */ 8087 esi = MEM32(edi + 0x4); /* 0x3100E7FC: mov esi, dword ptr [edi + 4] */ 8088 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E7FF: cmp ecx, dword ptr [esi + 4] */ 8089 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8090 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8091 _flag_k = FK_CMP; 8092 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E809; /* 0x3100E802: jne 0x3100e809 */ 8093 L_3100E804: 8094 MEM32(esi + 0x4) = edx; /* 0x3100E804: mov dword ptr [esi + 4], edx */ 8095 goto L_3100E817; /* 0x3100E807: jmp 0x3100e817 */ 8096 L_3100E809: 8097 esi = MEM32(ecx + 0x4); /* 0x3100E809: mov esi, dword ptr [ecx + 4] */ 8098 /* cmp ecx, MEM32(esi) */ /* 0x3100E80C: cmp ecx, dword ptr [esi] */ 8099 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8100 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8101 _flag_k = FK_CMP; 8102 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E814; /* 0x3100E80E: jne 0x3100e814 */ 8103 L_3100E810: 8104 MEM32(esi) = edx; /* 0x3100E810: mov dword ptr [esi], edx */ 8105 goto L_3100E817; /* 0x3100E812: jmp 0x3100e817 */ 8106 L_3100E814: 8107 MEM32(esi + 0x8) = edx; /* 0x3100E814: mov dword ptr [esi + 8], edx */ 8108 L_3100E817: 8109 MEM32(edx) = ecx; /* 0x3100E817: mov dword ptr [edx], ecx */ 8110 MEM32(ecx + 0x4) = edx; /* 0x3100E819: mov dword ptr [ecx + 4], edx */ 8111 ecx = MEM32(eax + 0x4); /* 0x3100E81C: mov ecx, dword ptr [eax + 4] */ 8112 ecx = MEM32(ecx); /* 0x3100E81F: mov ecx, dword ptr [ecx] */ 8113 L_3100E821: 8114 edx = MEM32(eax + 0x4); /* 0x3100E821: mov edx, dword ptr [eax + 4] */ 8115 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3100E824: mov dl, byte ptr [edx + 0x3c] */ 8116 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3100E827: mov byte ptr [ecx + 0x3c], dl */ 8117 edx = MEM32(eax + 0x4); /* 0x3100E82A: mov edx, dword ptr [eax + 4] */ 8118 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E82D: mov byte ptr [edx + 0x3c], bl */ 8119 ecx = MEM32(ecx); /* 0x3100E830: mov ecx, dword ptr [ecx] */ 8120 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E832: mov byte ptr [ecx + 0x3c], bl */ 8121 ecx = MEM32(eax + 0x4); /* 0x3100E835: mov ecx, dword ptr [eax + 4] */ 8122 edx = MEM32(ecx); /* 0x3100E838: mov edx, dword ptr [ecx] */ 8123 esi = MEM32(edx + 0x8); /* 0x3100E83A: mov esi, dword ptr [edx + 8] */ 8124 MEM32(ecx) = esi; /* 0x3100E83D: mov dword ptr [ecx], esi */ 8125 esi = MEM32(edx + 0x8); /* 0x3100E83F: mov esi, dword ptr [edx + 8] */ 8126 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E842: cmp esi, dword ptr [edi + 8] */ 8127 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8128 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8129 _flag_k = FK_CMP; 8130 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E84A; /* 0x3100E845: je 0x3100e84a */ 8131 L_3100E847: 8132 MEM32(esi + 0x4) = ecx; /* 0x3100E847: mov dword ptr [esi + 4], ecx */ 8133 L_3100E84A: 8134 esi = MEM32(ecx + 0x4); /* 0x3100E84A: mov esi, dword ptr [ecx + 4] */ 8135 MEM32(edx + 0x4) = esi; /* 0x3100E84D: mov dword ptr [edx + 4], esi */ 8136 esi = MEM32(edi + 0x4); /* 0x3100E850: mov esi, dword ptr [edi + 4] */ 8137 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E853: cmp ecx, dword ptr [esi + 4] */ 8138 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8139 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8140 _flag_k = FK_CMP; 8141 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E85D; /* 0x3100E856: jne 0x3100e85d */ 8142 L_3100E858: 8143 MEM32(esi + 0x4) = edx; /* 0x3100E858: mov dword ptr [esi + 4], edx */ 8144 goto L_3100E86C; /* 0x3100E85B: jmp 0x3100e86c */ 8145 L_3100E85D: 8146 esi = MEM32(ecx + 0x4); /* 0x3100E85D: mov esi, dword ptr [ecx + 4] */ 8147 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E860: cmp ecx, dword ptr [esi + 8] */ 8148 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8149 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8150 _flag_k = FK_CMP; 8151 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E86A; /* 0x3100E863: jne 0x3100e86a */ 8152 L_3100E865: 8153 MEM32(esi + 0x8) = edx; /* 0x3100E865: mov dword ptr [esi + 8], edx */ 8154 goto L_3100E86C; /* 0x3100E868: jmp 0x3100e86c */ 8155 L_3100E86A: 8156 MEM32(esi) = edx; /* 0x3100E86A: mov dword ptr [esi], edx */ 8157 L_3100E86C: 8158 MEM32(edx + 0x8) = ecx; /* 0x3100E86C: mov dword ptr [edx + 8], ecx */ 8159 L_3100E86F: 8160 MEM32(ecx + 0x4) = edx; /* 0x3100E86F: mov dword ptr [ecx + 4], edx */ 8161 L_3100E872: 8162 esi = MEM32(ebp + (-0x4)); /* 0x3100E872: mov esi, dword ptr [ebp - 4] */ 8163 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E875: mov byte ptr [eax + 0x3c], bl */ 8164 ecx = esi + 0xC; /* 0x3100E878: lea ecx, [esi + 0xc] */ 8165 RECOMP_ICALL(0x3100EE80u); /* 0x3100E87B: call 0x3100ee80 */ /* not lifted */ 8166 RECOMP_FLAGS_IN(); 8167 PUSH32(esp, esi); /* 0x3100E880: push esi */ 8168 RECOMP_ICALL(0x31046858u); /* 0x3100E881: call 0x31046858 */ /* not lifted */ 8169 RECOMP_FLAGS_IN(); 8170 eax = MEM32(edi + 0x10); /* 0x3100E886: mov eax, dword ptr [edi + 0x10] */ 8171 edx = MEM32(ebp + 0xC); /* 0x3100E889: mov edx, dword ptr [ebp + 0xc] */ 8172 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8173 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8174 esp = esp + 4; /* 0x3100E88C: add esp, 4 */ 8175 _flag_k = FK_ADD; 8176 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8177 eax = eax - 1; /* 0x3100E88F: dec eax */ 8178 _flag_k = FK_DEC; 8179 MEM32(edi + 0x10) = eax; /* 0x3100E890: mov dword ptr [edi + 0x10], eax */ 8180 eax = MEM32(ebp + 0x8); /* 0x3100E893: mov eax, dword ptr [ebp + 8] */ 8181 edi = POP32_VAL(esp); /* 0x3100E896: pop edi */ 8182 esi = POP32_VAL(esp); /* 0x3100E897: pop esi */ 8183 MEM32(eax) = edx; /* 0x3100E898: mov dword ptr [eax], edx */ 8184 ebx = POP32_VAL(esp); /* 0x3100E89A: pop ebx */ 8185 esp = ebp; /* 0x3100E89B: mov esp, ebp */ 8186 ebp = POP32_VAL(esp); /* 0x3100E89D: pop ebp */ 8187 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100E89E: ret 8 */ 8188 RECOMP_REGS_OUT(); 8189 } 8190 8191 void sub_3100E70E(void) { 8192 int _fpu_cmp = 0; 8193 uint32_t _cf = 0; 8194 int _df = 1; 8195 uint32_t _flag_k = FK_NONE; 8196 uint32_t _flag_a = 0, _flag_b = 0; 8197 uint32_t _itail_tgt = 0; 8198 RECOMP_REGS_LOCALS 8199 RECOMP_ENTER(0x3100E70Eu); 8200 8201 goto L_3100E70E; 8202 L_3100E624: 8203 /* cmp MEM8(eax + 0x3C), LO8(ebx) */ /* 0x3100E624: cmp byte ptr [eax + 0x3c], bl */ 8204 _flag_a = (uint32_t)(MEM8(eax + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8205 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8206 _flag_k = FK_NARROW(FK_CMP, 24); 8207 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E872; /* 0x3100E627: jne 0x3100e872 */ 8208 L_3100E62D: 8209 edx = MEM32(eax + 0x4); /* 0x3100E62D: mov edx, dword ptr [eax + 4] */ 8210 ecx = MEM32(edx); /* 0x3100E630: mov ecx, dword ptr [edx] */ 8211 /* cmp eax, ecx */ /* 0x3100E632: cmp eax, ecx */ 8212 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8213 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8214 _flag_k = FK_CMP; 8215 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6A4; /* 0x3100E634: jne 0x3100e6a4 */ 8216 L_3100E636: 8217 ecx = MEM32(edx + 0x8); /* 0x3100E636: mov ecx, dword ptr [edx + 8] */ 8218 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x3100E639: mov dl, byte ptr [ecx + 0x3c] */ 8219 /* test LO8(edx), LO8(edx) */ /* 0x3100E63C: test dl, dl */ 8220 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 8221 _cf = 0; 8222 _flag_k = FK_NARROW(FK_TEST, 24); 8223 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100E68B; /* 0x3100E63E: jne 0x3100e68b */ 8224 L_3100E640: 8225 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E640: mov byte ptr [ecx + 0x3c], bl */ 8226 edx = MEM32(eax + 0x4); /* 0x3100E643: mov edx, dword ptr [eax + 4] */ 8227 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x3100E646: mov byte ptr [edx + 0x3c], 0 */ 8228 ecx = MEM32(eax + 0x4); /* 0x3100E64A: mov ecx, dword ptr [eax + 4] */ 8229 edx = MEM32(ecx + 0x8); /* 0x3100E64D: mov edx, dword ptr [ecx + 8] */ 8230 esi = MEM32(edx); /* 0x3100E650: mov esi, dword ptr [edx] */ 8231 MEM32(ecx + 0x8) = esi; /* 0x3100E652: mov dword ptr [ecx + 8], esi */ 8232 esi = MEM32(edx); /* 0x3100E655: mov esi, dword ptr [edx] */ 8233 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E657: cmp esi, dword ptr [edi + 8] */ 8234 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8235 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8236 _flag_k = FK_CMP; 8237 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E65F; /* 0x3100E65A: je 0x3100e65f */ 8238 L_3100E65C: 8239 MEM32(esi + 0x4) = ecx; /* 0x3100E65C: mov dword ptr [esi + 4], ecx */ 8240 L_3100E65F: 8241 esi = MEM32(ecx + 0x4); /* 0x3100E65F: mov esi, dword ptr [ecx + 4] */ 8242 MEM32(edx + 0x4) = esi; /* 0x3100E662: mov dword ptr [edx + 4], esi */ 8243 esi = MEM32(edi + 0x4); /* 0x3100E665: mov esi, dword ptr [edi + 4] */ 8244 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E668: cmp ecx, dword ptr [esi + 4] */ 8245 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8246 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8247 _flag_k = FK_CMP; 8248 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E672; /* 0x3100E66B: jne 0x3100e672 */ 8249 L_3100E66D: 8250 MEM32(esi + 0x4) = edx; /* 0x3100E66D: mov dword ptr [esi + 4], edx */ 8251 goto L_3100E680; /* 0x3100E670: jmp 0x3100e680 */ 8252 L_3100E672: 8253 esi = MEM32(ecx + 0x4); /* 0x3100E672: mov esi, dword ptr [ecx + 4] */ 8254 /* cmp ecx, MEM32(esi) */ /* 0x3100E675: cmp ecx, dword ptr [esi] */ 8255 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8256 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8257 _flag_k = FK_CMP; 8258 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E67D; /* 0x3100E677: jne 0x3100e67d */ 8259 L_3100E679: 8260 MEM32(esi) = edx; /* 0x3100E679: mov dword ptr [esi], edx */ 8261 goto L_3100E680; /* 0x3100E67B: jmp 0x3100e680 */ 8262 L_3100E67D: 8263 MEM32(esi + 0x8) = edx; /* 0x3100E67D: mov dword ptr [esi + 8], edx */ 8264 L_3100E680: 8265 MEM32(edx) = ecx; /* 0x3100E680: mov dword ptr [edx], ecx */ 8266 MEM32(ecx + 0x4) = edx; /* 0x3100E682: mov dword ptr [ecx + 4], edx */ 8267 ecx = MEM32(eax + 0x4); /* 0x3100E685: mov ecx, dword ptr [eax + 4] */ 8268 ecx = MEM32(ecx + 0x8); /* 0x3100E688: mov ecx, dword ptr [ecx + 8] */ 8269 L_3100E68B: 8270 edx = MEM32(ecx); /* 0x3100E68B: mov edx, dword ptr [ecx] */ 8271 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E68D: cmp byte ptr [edx + 0x3c], bl */ 8272 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8273 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8274 _flag_k = FK_NARROW(FK_CMP, 24); 8275 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E726; /* 0x3100E690: jne 0x3100e726 */ 8276 L_3100E696: 8277 edx = MEM32(ecx + 0x8); /* 0x3100E696: mov edx, dword ptr [ecx + 8] */ 8278 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E699: cmp byte ptr [edx + 0x3c], bl */ 8279 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8280 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8281 _flag_k = FK_NARROW(FK_CMP, 24); 8282 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E726; /* 0x3100E69C: jne 0x3100e726 */ 8283 L_3100E6A2: 8284 goto L_3100E70E; /* 0x3100E6A2: jmp 0x3100e70e */ 8285 L_3100E6A4: 8286 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x3100E6A4: mov dl, byte ptr [ecx + 0x3c] */ 8287 /* test LO8(edx), LO8(edx) */ /* 0x3100E6A7: test dl, dl */ 8288 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 8289 _cf = 0; 8290 _flag_k = FK_NARROW(FK_TEST, 24); 8291 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100E6F7; /* 0x3100E6A9: jne 0x3100e6f7 */ 8292 L_3100E6AB: 8293 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E6AB: mov byte ptr [ecx + 0x3c], bl */ 8294 ecx = MEM32(eax + 0x4); /* 0x3100E6AE: mov ecx, dword ptr [eax + 4] */ 8295 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E6B1: mov byte ptr [ecx + 0x3c], 0 */ 8296 ecx = MEM32(eax + 0x4); /* 0x3100E6B5: mov ecx, dword ptr [eax + 4] */ 8297 edx = MEM32(ecx); /* 0x3100E6B8: mov edx, dword ptr [ecx] */ 8298 esi = MEM32(edx + 0x8); /* 0x3100E6BA: mov esi, dword ptr [edx + 8] */ 8299 MEM32(ecx) = esi; /* 0x3100E6BD: mov dword ptr [ecx], esi */ 8300 esi = MEM32(edx + 0x8); /* 0x3100E6BF: mov esi, dword ptr [edx + 8] */ 8301 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E6C2: cmp esi, dword ptr [edi + 8] */ 8302 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8303 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8304 _flag_k = FK_CMP; 8305 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E6CA; /* 0x3100E6C5: je 0x3100e6ca */ 8306 L_3100E6C7: 8307 MEM32(esi + 0x4) = ecx; /* 0x3100E6C7: mov dword ptr [esi + 4], ecx */ 8308 L_3100E6CA: 8309 esi = MEM32(ecx + 0x4); /* 0x3100E6CA: mov esi, dword ptr [ecx + 4] */ 8310 MEM32(edx + 0x4) = esi; /* 0x3100E6CD: mov dword ptr [edx + 4], esi */ 8311 esi = MEM32(edi + 0x4); /* 0x3100E6D0: mov esi, dword ptr [edi + 4] */ 8312 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E6D3: cmp ecx, dword ptr [esi + 4] */ 8313 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8314 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8315 _flag_k = FK_CMP; 8316 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6DD; /* 0x3100E6D6: jne 0x3100e6dd */ 8317 L_3100E6D8: 8318 MEM32(esi + 0x4) = edx; /* 0x3100E6D8: mov dword ptr [esi + 4], edx */ 8319 goto L_3100E6EC; /* 0x3100E6DB: jmp 0x3100e6ec */ 8320 L_3100E6DD: 8321 esi = MEM32(ecx + 0x4); /* 0x3100E6DD: mov esi, dword ptr [ecx + 4] */ 8322 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E6E0: cmp ecx, dword ptr [esi + 8] */ 8323 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8324 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8325 _flag_k = FK_CMP; 8326 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E6EA; /* 0x3100E6E3: jne 0x3100e6ea */ 8327 L_3100E6E5: 8328 MEM32(esi + 0x8) = edx; /* 0x3100E6E5: mov dword ptr [esi + 8], edx */ 8329 goto L_3100E6EC; /* 0x3100E6E8: jmp 0x3100e6ec */ 8330 L_3100E6EA: 8331 MEM32(esi) = edx; /* 0x3100E6EA: mov dword ptr [esi], edx */ 8332 L_3100E6EC: 8333 MEM32(edx + 0x8) = ecx; /* 0x3100E6EC: mov dword ptr [edx + 8], ecx */ 8334 MEM32(ecx + 0x4) = edx; /* 0x3100E6EF: mov dword ptr [ecx + 4], edx */ 8335 edx = MEM32(eax + 0x4); /* 0x3100E6F2: mov edx, dword ptr [eax + 4] */ 8336 ecx = MEM32(edx); /* 0x3100E6F5: mov ecx, dword ptr [edx] */ 8337 L_3100E6F7: 8338 edx = MEM32(ecx + 0x8); /* 0x3100E6F7: mov edx, dword ptr [ecx + 8] */ 8339 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E6FA: cmp byte ptr [edx + 0x3c], bl */ 8340 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8341 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8342 _flag_k = FK_NARROW(FK_CMP, 24); 8343 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7D3; /* 0x3100E6FD: jne 0x3100e7d3 */ 8344 L_3100E703: 8345 edx = MEM32(ecx); /* 0x3100E703: mov edx, dword ptr [ecx] */ 8346 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E705: cmp byte ptr [edx + 0x3c], bl */ 8347 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8348 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8349 _flag_k = FK_NARROW(FK_CMP, 24); 8350 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7D3; /* 0x3100E708: jne 0x3100e7d3 */ 8351 L_3100E70E: 8352 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E70E: mov byte ptr [ecx + 0x3c], 0 */ 8353 ecx = MEM32(edi + 0x4); /* 0x3100E712: mov ecx, dword ptr [edi + 4] */ 8354 eax = MEM32(eax + 0x4); /* 0x3100E715: mov eax, dword ptr [eax + 4] */ 8355 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3100E718: cmp eax, dword ptr [ecx + 4] */ 8356 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 8357 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8358 _flag_k = FK_CMP; 8359 RECOMP_BACKEDGE(); 8360 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E624; /* 0x3100E71B: jne 0x3100e624 */ 8361 L_3100E721: 8362 goto L_3100E872; /* 0x3100E721: jmp 0x3100e872 */ 8363 L_3100E726: 8364 edx = MEM32(ecx + 0x8); /* 0x3100E726: mov edx, dword ptr [ecx + 8] */ 8365 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E729: cmp byte ptr [edx + 0x3c], bl */ 8366 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8367 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8368 _flag_k = FK_NARROW(FK_CMP, 24); 8369 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E777; /* 0x3100E72C: jne 0x3100e777 */ 8370 L_3100E72E: 8371 edx = MEM32(ecx); /* 0x3100E72E: mov edx, dword ptr [ecx] */ 8372 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E730: mov byte ptr [edx + 0x3c], bl */ 8373 edx = MEM32(ecx); /* 0x3100E733: mov edx, dword ptr [ecx] */ 8374 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E735: mov byte ptr [ecx + 0x3c], 0 */ 8375 esi = MEM32(edx + 0x8); /* 0x3100E739: mov esi, dword ptr [edx + 8] */ 8376 MEM32(ecx) = esi; /* 0x3100E73C: mov dword ptr [ecx], esi */ 8377 esi = MEM32(edx + 0x8); /* 0x3100E73E: mov esi, dword ptr [edx + 8] */ 8378 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E741: cmp esi, dword ptr [edi + 8] */ 8379 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8380 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8381 _flag_k = FK_CMP; 8382 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E749; /* 0x3100E744: je 0x3100e749 */ 8383 L_3100E746: 8384 MEM32(esi + 0x4) = ecx; /* 0x3100E746: mov dword ptr [esi + 4], ecx */ 8385 L_3100E749: 8386 esi = MEM32(ecx + 0x4); /* 0x3100E749: mov esi, dword ptr [ecx + 4] */ 8387 MEM32(edx + 0x4) = esi; /* 0x3100E74C: mov dword ptr [edx + 4], esi */ 8388 esi = MEM32(edi + 0x4); /* 0x3100E74F: mov esi, dword ptr [edi + 4] */ 8389 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E752: cmp ecx, dword ptr [esi + 4] */ 8390 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8391 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8392 _flag_k = FK_CMP; 8393 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E75C; /* 0x3100E755: jne 0x3100e75c */ 8394 L_3100E757: 8395 MEM32(esi + 0x4) = edx; /* 0x3100E757: mov dword ptr [esi + 4], edx */ 8396 goto L_3100E76B; /* 0x3100E75A: jmp 0x3100e76b */ 8397 L_3100E75C: 8398 esi = MEM32(ecx + 0x4); /* 0x3100E75C: mov esi, dword ptr [ecx + 4] */ 8399 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E75F: cmp ecx, dword ptr [esi + 8] */ 8400 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8401 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8402 _flag_k = FK_CMP; 8403 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E769; /* 0x3100E762: jne 0x3100e769 */ 8404 L_3100E764: 8405 MEM32(esi + 0x8) = edx; /* 0x3100E764: mov dword ptr [esi + 8], edx */ 8406 goto L_3100E76B; /* 0x3100E767: jmp 0x3100e76b */ 8407 L_3100E769: 8408 MEM32(esi) = edx; /* 0x3100E769: mov dword ptr [esi], edx */ 8409 L_3100E76B: 8410 MEM32(edx + 0x8) = ecx; /* 0x3100E76B: mov dword ptr [edx + 8], ecx */ 8411 MEM32(ecx + 0x4) = edx; /* 0x3100E76E: mov dword ptr [ecx + 4], edx */ 8412 ecx = MEM32(eax + 0x4); /* 0x3100E771: mov ecx, dword ptr [eax + 4] */ 8413 ecx = MEM32(ecx + 0x8); /* 0x3100E774: mov ecx, dword ptr [ecx + 8] */ 8414 L_3100E777: 8415 edx = MEM32(eax + 0x4); /* 0x3100E777: mov edx, dword ptr [eax + 4] */ 8416 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3100E77A: mov dl, byte ptr [edx + 0x3c] */ 8417 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3100E77D: mov byte ptr [ecx + 0x3c], dl */ 8418 edx = MEM32(eax + 0x4); /* 0x3100E780: mov edx, dword ptr [eax + 4] */ 8419 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E783: mov byte ptr [edx + 0x3c], bl */ 8420 ecx = MEM32(ecx + 0x8); /* 0x3100E786: mov ecx, dword ptr [ecx + 8] */ 8421 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E789: mov byte ptr [ecx + 0x3c], bl */ 8422 ecx = MEM32(eax + 0x4); /* 0x3100E78C: mov ecx, dword ptr [eax + 4] */ 8423 edx = MEM32(ecx + 0x8); /* 0x3100E78F: mov edx, dword ptr [ecx + 8] */ 8424 esi = MEM32(edx); /* 0x3100E792: mov esi, dword ptr [edx] */ 8425 MEM32(ecx + 0x8) = esi; /* 0x3100E794: mov dword ptr [ecx + 8], esi */ 8426 esi = MEM32(edx); /* 0x3100E797: mov esi, dword ptr [edx] */ 8427 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E799: cmp esi, dword ptr [edi + 8] */ 8428 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8429 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8430 _flag_k = FK_CMP; 8431 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E7A1; /* 0x3100E79C: je 0x3100e7a1 */ 8432 L_3100E79E: 8433 MEM32(esi + 0x4) = ecx; /* 0x3100E79E: mov dword ptr [esi + 4], ecx */ 8434 L_3100E7A1: 8435 esi = MEM32(ecx + 0x4); /* 0x3100E7A1: mov esi, dword ptr [ecx + 4] */ 8436 MEM32(edx + 0x4) = esi; /* 0x3100E7A4: mov dword ptr [edx + 4], esi */ 8437 esi = MEM32(edi + 0x4); /* 0x3100E7A7: mov esi, dword ptr [edi + 4] */ 8438 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E7AA: cmp ecx, dword ptr [esi + 4] */ 8439 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8440 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8441 _flag_k = FK_CMP; 8442 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7B9; /* 0x3100E7AD: jne 0x3100e7b9 */ 8443 L_3100E7AF: 8444 MEM32(esi + 0x4) = edx; /* 0x3100E7AF: mov dword ptr [esi + 4], edx */ 8445 MEM32(edx) = ecx; /* 0x3100E7B2: mov dword ptr [edx], ecx */ 8446 goto L_3100E86F; /* 0x3100E7B4: jmp 0x3100e86f */ 8447 L_3100E7B9: 8448 esi = MEM32(ecx + 0x4); /* 0x3100E7B9: mov esi, dword ptr [ecx + 4] */ 8449 /* cmp ecx, MEM32(esi) */ /* 0x3100E7BC: cmp ecx, dword ptr [esi] */ 8450 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8451 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8452 _flag_k = FK_CMP; 8453 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7C9; /* 0x3100E7BE: jne 0x3100e7c9 */ 8454 L_3100E7C0: 8455 MEM32(esi) = edx; /* 0x3100E7C0: mov dword ptr [esi], edx */ 8456 MEM32(edx) = ecx; /* 0x3100E7C2: mov dword ptr [edx], ecx */ 8457 goto L_3100E86F; /* 0x3100E7C4: jmp 0x3100e86f */ 8458 L_3100E7C9: 8459 MEM32(esi + 0x8) = edx; /* 0x3100E7C9: mov dword ptr [esi + 8], edx */ 8460 MEM32(edx) = ecx; /* 0x3100E7CC: mov dword ptr [edx], ecx */ 8461 goto L_3100E86F; /* 0x3100E7CE: jmp 0x3100e86f */ 8462 L_3100E7D3: 8463 edx = MEM32(ecx); /* 0x3100E7D3: mov edx, dword ptr [ecx] */ 8464 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E7D5: cmp byte ptr [edx + 0x3c], bl */ 8465 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8466 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8467 _flag_k = FK_NARROW(FK_CMP, 24); 8468 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E821; /* 0x3100E7D8: jne 0x3100e821 */ 8469 L_3100E7DA: 8470 edx = MEM32(ecx + 0x8); /* 0x3100E7DA: mov edx, dword ptr [ecx + 8] */ 8471 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E7DD: mov byte ptr [edx + 0x3c], bl */ 8472 edx = MEM32(ecx + 0x8); /* 0x3100E7E0: mov edx, dword ptr [ecx + 8] */ 8473 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E7E3: mov byte ptr [ecx + 0x3c], 0 */ 8474 esi = MEM32(edx); /* 0x3100E7E7: mov esi, dword ptr [edx] */ 8475 MEM32(ecx + 0x8) = esi; /* 0x3100E7E9: mov dword ptr [ecx + 8], esi */ 8476 esi = MEM32(edx); /* 0x3100E7EC: mov esi, dword ptr [edx] */ 8477 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E7EE: cmp esi, dword ptr [edi + 8] */ 8478 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8479 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8480 _flag_k = FK_CMP; 8481 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E7F6; /* 0x3100E7F1: je 0x3100e7f6 */ 8482 L_3100E7F3: 8483 MEM32(esi + 0x4) = ecx; /* 0x3100E7F3: mov dword ptr [esi + 4], ecx */ 8484 L_3100E7F6: 8485 esi = MEM32(ecx + 0x4); /* 0x3100E7F6: mov esi, dword ptr [ecx + 4] */ 8486 MEM32(edx + 0x4) = esi; /* 0x3100E7F9: mov dword ptr [edx + 4], esi */ 8487 esi = MEM32(edi + 0x4); /* 0x3100E7FC: mov esi, dword ptr [edi + 4] */ 8488 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E7FF: cmp ecx, dword ptr [esi + 4] */ 8489 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8490 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8491 _flag_k = FK_CMP; 8492 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E809; /* 0x3100E802: jne 0x3100e809 */ 8493 L_3100E804: 8494 MEM32(esi + 0x4) = edx; /* 0x3100E804: mov dword ptr [esi + 4], edx */ 8495 goto L_3100E817; /* 0x3100E807: jmp 0x3100e817 */ 8496 L_3100E809: 8497 esi = MEM32(ecx + 0x4); /* 0x3100E809: mov esi, dword ptr [ecx + 4] */ 8498 /* cmp ecx, MEM32(esi) */ /* 0x3100E80C: cmp ecx, dword ptr [esi] */ 8499 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8500 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8501 _flag_k = FK_CMP; 8502 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E814; /* 0x3100E80E: jne 0x3100e814 */ 8503 L_3100E810: 8504 MEM32(esi) = edx; /* 0x3100E810: mov dword ptr [esi], edx */ 8505 goto L_3100E817; /* 0x3100E812: jmp 0x3100e817 */ 8506 L_3100E814: 8507 MEM32(esi + 0x8) = edx; /* 0x3100E814: mov dword ptr [esi + 8], edx */ 8508 L_3100E817: 8509 MEM32(edx) = ecx; /* 0x3100E817: mov dword ptr [edx], ecx */ 8510 MEM32(ecx + 0x4) = edx; /* 0x3100E819: mov dword ptr [ecx + 4], edx */ 8511 ecx = MEM32(eax + 0x4); /* 0x3100E81C: mov ecx, dword ptr [eax + 4] */ 8512 ecx = MEM32(ecx); /* 0x3100E81F: mov ecx, dword ptr [ecx] */ 8513 L_3100E821: 8514 edx = MEM32(eax + 0x4); /* 0x3100E821: mov edx, dword ptr [eax + 4] */ 8515 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3100E824: mov dl, byte ptr [edx + 0x3c] */ 8516 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3100E827: mov byte ptr [ecx + 0x3c], dl */ 8517 edx = MEM32(eax + 0x4); /* 0x3100E82A: mov edx, dword ptr [eax + 4] */ 8518 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E82D: mov byte ptr [edx + 0x3c], bl */ 8519 ecx = MEM32(ecx); /* 0x3100E830: mov ecx, dword ptr [ecx] */ 8520 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E832: mov byte ptr [ecx + 0x3c], bl */ 8521 ecx = MEM32(eax + 0x4); /* 0x3100E835: mov ecx, dword ptr [eax + 4] */ 8522 edx = MEM32(ecx); /* 0x3100E838: mov edx, dword ptr [ecx] */ 8523 esi = MEM32(edx + 0x8); /* 0x3100E83A: mov esi, dword ptr [edx + 8] */ 8524 MEM32(ecx) = esi; /* 0x3100E83D: mov dword ptr [ecx], esi */ 8525 esi = MEM32(edx + 0x8); /* 0x3100E83F: mov esi, dword ptr [edx + 8] */ 8526 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E842: cmp esi, dword ptr [edi + 8] */ 8527 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8528 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8529 _flag_k = FK_CMP; 8530 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E84A; /* 0x3100E845: je 0x3100e84a */ 8531 L_3100E847: 8532 MEM32(esi + 0x4) = ecx; /* 0x3100E847: mov dword ptr [esi + 4], ecx */ 8533 L_3100E84A: 8534 esi = MEM32(ecx + 0x4); /* 0x3100E84A: mov esi, dword ptr [ecx + 4] */ 8535 MEM32(edx + 0x4) = esi; /* 0x3100E84D: mov dword ptr [edx + 4], esi */ 8536 esi = MEM32(edi + 0x4); /* 0x3100E850: mov esi, dword ptr [edi + 4] */ 8537 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E853: cmp ecx, dword ptr [esi + 4] */ 8538 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8539 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8540 _flag_k = FK_CMP; 8541 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E85D; /* 0x3100E856: jne 0x3100e85d */ 8542 L_3100E858: 8543 MEM32(esi + 0x4) = edx; /* 0x3100E858: mov dword ptr [esi + 4], edx */ 8544 goto L_3100E86C; /* 0x3100E85B: jmp 0x3100e86c */ 8545 L_3100E85D: 8546 esi = MEM32(ecx + 0x4); /* 0x3100E85D: mov esi, dword ptr [ecx + 4] */ 8547 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E860: cmp ecx, dword ptr [esi + 8] */ 8548 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8549 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8550 _flag_k = FK_CMP; 8551 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E86A; /* 0x3100E863: jne 0x3100e86a */ 8552 L_3100E865: 8553 MEM32(esi + 0x8) = edx; /* 0x3100E865: mov dword ptr [esi + 8], edx */ 8554 goto L_3100E86C; /* 0x3100E868: jmp 0x3100e86c */ 8555 L_3100E86A: 8556 MEM32(esi) = edx; /* 0x3100E86A: mov dword ptr [esi], edx */ 8557 L_3100E86C: 8558 MEM32(edx + 0x8) = ecx; /* 0x3100E86C: mov dword ptr [edx + 8], ecx */ 8559 L_3100E86F: 8560 MEM32(ecx + 0x4) = edx; /* 0x3100E86F: mov dword ptr [ecx + 4], edx */ 8561 L_3100E872: 8562 esi = MEM32(ebp + (-0x4)); /* 0x3100E872: mov esi, dword ptr [ebp - 4] */ 8563 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E875: mov byte ptr [eax + 0x3c], bl */ 8564 ecx = esi + 0xC; /* 0x3100E878: lea ecx, [esi + 0xc] */ 8565 RECOMP_ICALL(0x3100EE80u); /* 0x3100E87B: call 0x3100ee80 */ /* not lifted */ 8566 RECOMP_FLAGS_IN(); 8567 PUSH32(esp, esi); /* 0x3100E880: push esi */ 8568 RECOMP_ICALL(0x31046858u); /* 0x3100E881: call 0x31046858 */ /* not lifted */ 8569 RECOMP_FLAGS_IN(); 8570 eax = MEM32(edi + 0x10); /* 0x3100E886: mov eax, dword ptr [edi + 0x10] */ 8571 edx = MEM32(ebp + 0xC); /* 0x3100E889: mov edx, dword ptr [ebp + 0xc] */ 8572 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8573 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8574 esp = esp + 4; /* 0x3100E88C: add esp, 4 */ 8575 _flag_k = FK_ADD; 8576 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8577 eax = eax - 1; /* 0x3100E88F: dec eax */ 8578 _flag_k = FK_DEC; 8579 MEM32(edi + 0x10) = eax; /* 0x3100E890: mov dword ptr [edi + 0x10], eax */ 8580 eax = MEM32(ebp + 0x8); /* 0x3100E893: mov eax, dword ptr [ebp + 8] */ 8581 edi = POP32_VAL(esp); /* 0x3100E896: pop edi */ 8582 esi = POP32_VAL(esp); /* 0x3100E897: pop esi */ 8583 MEM32(eax) = edx; /* 0x3100E898: mov dword ptr [eax], edx */ 8584 ebx = POP32_VAL(esp); /* 0x3100E89A: pop ebx */ 8585 esp = ebp; /* 0x3100E89B: mov esp, ebp */ 8586 ebp = POP32_VAL(esp); /* 0x3100E89D: pop ebp */ 8587 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100E89E: ret 8 */ 8588 RECOMP_REGS_OUT(); 8589 } 8590 8591 void sub_3100E726(void) { 8592 int _fpu_cmp = 0; 8593 uint32_t _cf = 0; 8594 int _df = 1; 8595 uint32_t _flag_k = FK_NONE; 8596 uint32_t _flag_a = 0, _flag_b = 0; 8597 uint32_t _itail_tgt = 0; 8598 RECOMP_REGS_LOCALS 8599 RECOMP_ENTER(0x3100E726u); 8600 8601 L_3100E726: 8602 edx = MEM32(ecx + 0x8); /* 0x3100E726: mov edx, dword ptr [ecx + 8] */ 8603 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3100E729: cmp byte ptr [edx + 0x3c], bl */ 8604 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8605 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8606 _flag_k = FK_NARROW(FK_CMP, 24); 8607 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E777; /* 0x3100E72C: jne 0x3100e777 */ 8608 L_3100E72E: 8609 edx = MEM32(ecx); /* 0x3100E72E: mov edx, dword ptr [ecx] */ 8610 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E730: mov byte ptr [edx + 0x3c], bl */ 8611 edx = MEM32(ecx); /* 0x3100E733: mov edx, dword ptr [ecx] */ 8612 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x3100E735: mov byte ptr [ecx + 0x3c], 0 */ 8613 esi = MEM32(edx + 0x8); /* 0x3100E739: mov esi, dword ptr [edx + 8] */ 8614 MEM32(ecx) = esi; /* 0x3100E73C: mov dword ptr [ecx], esi */ 8615 esi = MEM32(edx + 0x8); /* 0x3100E73E: mov esi, dword ptr [edx + 8] */ 8616 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E741: cmp esi, dword ptr [edi + 8] */ 8617 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8618 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8619 _flag_k = FK_CMP; 8620 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E749; /* 0x3100E744: je 0x3100e749 */ 8621 L_3100E746: 8622 MEM32(esi + 0x4) = ecx; /* 0x3100E746: mov dword ptr [esi + 4], ecx */ 8623 L_3100E749: 8624 esi = MEM32(ecx + 0x4); /* 0x3100E749: mov esi, dword ptr [ecx + 4] */ 8625 MEM32(edx + 0x4) = esi; /* 0x3100E74C: mov dword ptr [edx + 4], esi */ 8626 esi = MEM32(edi + 0x4); /* 0x3100E74F: mov esi, dword ptr [edi + 4] */ 8627 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E752: cmp ecx, dword ptr [esi + 4] */ 8628 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8629 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8630 _flag_k = FK_CMP; 8631 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E75C; /* 0x3100E755: jne 0x3100e75c */ 8632 L_3100E757: 8633 MEM32(esi + 0x4) = edx; /* 0x3100E757: mov dword ptr [esi + 4], edx */ 8634 goto L_3100E76B; /* 0x3100E75A: jmp 0x3100e76b */ 8635 L_3100E75C: 8636 esi = MEM32(ecx + 0x4); /* 0x3100E75C: mov esi, dword ptr [ecx + 4] */ 8637 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E75F: cmp ecx, dword ptr [esi + 8] */ 8638 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8639 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8640 _flag_k = FK_CMP; 8641 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E769; /* 0x3100E762: jne 0x3100e769 */ 8642 L_3100E764: 8643 MEM32(esi + 0x8) = edx; /* 0x3100E764: mov dword ptr [esi + 8], edx */ 8644 goto L_3100E76B; /* 0x3100E767: jmp 0x3100e76b */ 8645 L_3100E769: 8646 MEM32(esi) = edx; /* 0x3100E769: mov dword ptr [esi], edx */ 8647 L_3100E76B: 8648 MEM32(edx + 0x8) = ecx; /* 0x3100E76B: mov dword ptr [edx + 8], ecx */ 8649 MEM32(ecx + 0x4) = edx; /* 0x3100E76E: mov dword ptr [ecx + 4], edx */ 8650 ecx = MEM32(eax + 0x4); /* 0x3100E771: mov ecx, dword ptr [eax + 4] */ 8651 ecx = MEM32(ecx + 0x8); /* 0x3100E774: mov ecx, dword ptr [ecx + 8] */ 8652 L_3100E777: 8653 edx = MEM32(eax + 0x4); /* 0x3100E777: mov edx, dword ptr [eax + 4] */ 8654 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3100E77A: mov dl, byte ptr [edx + 0x3c] */ 8655 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3100E77D: mov byte ptr [ecx + 0x3c], dl */ 8656 edx = MEM32(eax + 0x4); /* 0x3100E780: mov edx, dword ptr [eax + 4] */ 8657 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E783: mov byte ptr [edx + 0x3c], bl */ 8658 ecx = MEM32(ecx + 0x8); /* 0x3100E786: mov ecx, dword ptr [ecx + 8] */ 8659 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E789: mov byte ptr [ecx + 0x3c], bl */ 8660 ecx = MEM32(eax + 0x4); /* 0x3100E78C: mov ecx, dword ptr [eax + 4] */ 8661 edx = MEM32(ecx + 0x8); /* 0x3100E78F: mov edx, dword ptr [ecx + 8] */ 8662 esi = MEM32(edx); /* 0x3100E792: mov esi, dword ptr [edx] */ 8663 MEM32(ecx + 0x8) = esi; /* 0x3100E794: mov dword ptr [ecx + 8], esi */ 8664 esi = MEM32(edx); /* 0x3100E797: mov esi, dword ptr [edx] */ 8665 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E799: cmp esi, dword ptr [edi + 8] */ 8666 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8667 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8668 _flag_k = FK_CMP; 8669 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E7A1; /* 0x3100E79C: je 0x3100e7a1 */ 8670 L_3100E79E: 8671 MEM32(esi + 0x4) = ecx; /* 0x3100E79E: mov dword ptr [esi + 4], ecx */ 8672 L_3100E7A1: 8673 esi = MEM32(ecx + 0x4); /* 0x3100E7A1: mov esi, dword ptr [ecx + 4] */ 8674 MEM32(edx + 0x4) = esi; /* 0x3100E7A4: mov dword ptr [edx + 4], esi */ 8675 esi = MEM32(edi + 0x4); /* 0x3100E7A7: mov esi, dword ptr [edi + 4] */ 8676 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E7AA: cmp ecx, dword ptr [esi + 4] */ 8677 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8678 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8679 _flag_k = FK_CMP; 8680 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7B9; /* 0x3100E7AD: jne 0x3100e7b9 */ 8681 L_3100E7AF: 8682 MEM32(esi + 0x4) = edx; /* 0x3100E7AF: mov dword ptr [esi + 4], edx */ 8683 MEM32(edx) = ecx; /* 0x3100E7B2: mov dword ptr [edx], ecx */ 8684 goto L_3100E86F; /* 0x3100E7B4: jmp 0x3100e86f */ 8685 L_3100E7B9: 8686 esi = MEM32(ecx + 0x4); /* 0x3100E7B9: mov esi, dword ptr [ecx + 4] */ 8687 /* cmp ecx, MEM32(esi) */ /* 0x3100E7BC: cmp ecx, dword ptr [esi] */ 8688 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8689 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8690 _flag_k = FK_CMP; 8691 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7C9; /* 0x3100E7BE: jne 0x3100e7c9 */ 8692 L_3100E7C0: 8693 MEM32(esi) = edx; /* 0x3100E7C0: mov dword ptr [esi], edx */ 8694 MEM32(edx) = ecx; /* 0x3100E7C2: mov dword ptr [edx], ecx */ 8695 goto L_3100E86F; /* 0x3100E7C4: jmp 0x3100e86f */ 8696 L_3100E7C9: 8697 MEM32(esi + 0x8) = edx; /* 0x3100E7C9: mov dword ptr [esi + 8], edx */ 8698 MEM32(edx) = ecx; /* 0x3100E7CC: mov dword ptr [edx], ecx */ 8699 goto L_3100E86F; /* 0x3100E7CE: jmp 0x3100e86f */ 8700 L_3100E86F: 8701 MEM32(ecx + 0x4) = edx; /* 0x3100E86F: mov dword ptr [ecx + 4], edx */ 8702 esi = MEM32(ebp + (-0x4)); /* 0x3100E872: mov esi, dword ptr [ebp - 4] */ 8703 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E875: mov byte ptr [eax + 0x3c], bl */ 8704 ecx = esi + 0xC; /* 0x3100E878: lea ecx, [esi + 0xc] */ 8705 RECOMP_ICALL(0x3100EE80u); /* 0x3100E87B: call 0x3100ee80 */ /* not lifted */ 8706 RECOMP_FLAGS_IN(); 8707 PUSH32(esp, esi); /* 0x3100E880: push esi */ 8708 RECOMP_ICALL(0x31046858u); /* 0x3100E881: call 0x31046858 */ /* not lifted */ 8709 RECOMP_FLAGS_IN(); 8710 eax = MEM32(edi + 0x10); /* 0x3100E886: mov eax, dword ptr [edi + 0x10] */ 8711 edx = MEM32(ebp + 0xC); /* 0x3100E889: mov edx, dword ptr [ebp + 0xc] */ 8712 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8713 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8714 esp = esp + 4; /* 0x3100E88C: add esp, 4 */ 8715 _flag_k = FK_ADD; 8716 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8717 eax = eax - 1; /* 0x3100E88F: dec eax */ 8718 _flag_k = FK_DEC; 8719 MEM32(edi + 0x10) = eax; /* 0x3100E890: mov dword ptr [edi + 0x10], eax */ 8720 eax = MEM32(ebp + 0x8); /* 0x3100E893: mov eax, dword ptr [ebp + 8] */ 8721 edi = POP32_VAL(esp); /* 0x3100E896: pop edi */ 8722 esi = POP32_VAL(esp); /* 0x3100E897: pop esi */ 8723 MEM32(eax) = edx; /* 0x3100E898: mov dword ptr [eax], edx */ 8724 ebx = POP32_VAL(esp); /* 0x3100E89A: pop ebx */ 8725 esp = ebp; /* 0x3100E89B: mov esp, ebp */ 8726 ebp = POP32_VAL(esp); /* 0x3100E89D: pop ebp */ 8727 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100E89E: ret 8 */ 8728 RECOMP_REGS_OUT(); 8729 } 8730 8731 void sub_3100E76B(void) { 8732 int _fpu_cmp = 0; 8733 uint32_t _cf = 0; 8734 int _df = 1; 8735 uint32_t _flag_k = FK_NONE; 8736 uint32_t _flag_a = 0, _flag_b = 0; 8737 uint32_t _itail_tgt = 0; 8738 RECOMP_REGS_LOCALS 8739 RECOMP_ENTER(0x3100E76Bu); 8740 8741 L_3100E76B: 8742 MEM32(edx + 0x8) = ecx; /* 0x3100E76B: mov dword ptr [edx + 8], ecx */ 8743 MEM32(ecx + 0x4) = edx; /* 0x3100E76E: mov dword ptr [ecx + 4], edx */ 8744 ecx = MEM32(eax + 0x4); /* 0x3100E771: mov ecx, dword ptr [eax + 4] */ 8745 ecx = MEM32(ecx + 0x8); /* 0x3100E774: mov ecx, dword ptr [ecx + 8] */ 8746 edx = MEM32(eax + 0x4); /* 0x3100E777: mov edx, dword ptr [eax + 4] */ 8747 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3100E77A: mov dl, byte ptr [edx + 0x3c] */ 8748 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3100E77D: mov byte ptr [ecx + 0x3c], dl */ 8749 edx = MEM32(eax + 0x4); /* 0x3100E780: mov edx, dword ptr [eax + 4] */ 8750 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E783: mov byte ptr [edx + 0x3c], bl */ 8751 ecx = MEM32(ecx + 0x8); /* 0x3100E786: mov ecx, dword ptr [ecx + 8] */ 8752 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E789: mov byte ptr [ecx + 0x3c], bl */ 8753 ecx = MEM32(eax + 0x4); /* 0x3100E78C: mov ecx, dword ptr [eax + 4] */ 8754 edx = MEM32(ecx + 0x8); /* 0x3100E78F: mov edx, dword ptr [ecx + 8] */ 8755 esi = MEM32(edx); /* 0x3100E792: mov esi, dword ptr [edx] */ 8756 MEM32(ecx + 0x8) = esi; /* 0x3100E794: mov dword ptr [ecx + 8], esi */ 8757 esi = MEM32(edx); /* 0x3100E797: mov esi, dword ptr [edx] */ 8758 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E799: cmp esi, dword ptr [edi + 8] */ 8759 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8760 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8761 _flag_k = FK_CMP; 8762 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E7A1; /* 0x3100E79C: je 0x3100e7a1 */ 8763 L_3100E79E: 8764 MEM32(esi + 0x4) = ecx; /* 0x3100E79E: mov dword ptr [esi + 4], ecx */ 8765 L_3100E7A1: 8766 esi = MEM32(ecx + 0x4); /* 0x3100E7A1: mov esi, dword ptr [ecx + 4] */ 8767 MEM32(edx + 0x4) = esi; /* 0x3100E7A4: mov dword ptr [edx + 4], esi */ 8768 esi = MEM32(edi + 0x4); /* 0x3100E7A7: mov esi, dword ptr [edi + 4] */ 8769 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E7AA: cmp ecx, dword ptr [esi + 4] */ 8770 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8771 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8772 _flag_k = FK_CMP; 8773 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7B9; /* 0x3100E7AD: jne 0x3100e7b9 */ 8774 L_3100E7AF: 8775 MEM32(esi + 0x4) = edx; /* 0x3100E7AF: mov dword ptr [esi + 4], edx */ 8776 MEM32(edx) = ecx; /* 0x3100E7B2: mov dword ptr [edx], ecx */ 8777 goto L_3100E86F; /* 0x3100E7B4: jmp 0x3100e86f */ 8778 L_3100E7B9: 8779 esi = MEM32(ecx + 0x4); /* 0x3100E7B9: mov esi, dword ptr [ecx + 4] */ 8780 /* cmp ecx, MEM32(esi) */ /* 0x3100E7BC: cmp ecx, dword ptr [esi] */ 8781 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8782 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8783 _flag_k = FK_CMP; 8784 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E7C9; /* 0x3100E7BE: jne 0x3100e7c9 */ 8785 L_3100E7C0: 8786 MEM32(esi) = edx; /* 0x3100E7C0: mov dword ptr [esi], edx */ 8787 MEM32(edx) = ecx; /* 0x3100E7C2: mov dword ptr [edx], ecx */ 8788 goto L_3100E86F; /* 0x3100E7C4: jmp 0x3100e86f */ 8789 L_3100E7C9: 8790 MEM32(esi + 0x8) = edx; /* 0x3100E7C9: mov dword ptr [esi + 8], edx */ 8791 MEM32(edx) = ecx; /* 0x3100E7CC: mov dword ptr [edx], ecx */ 8792 goto L_3100E86F; /* 0x3100E7CE: jmp 0x3100e86f */ 8793 L_3100E86F: 8794 MEM32(ecx + 0x4) = edx; /* 0x3100E86F: mov dword ptr [ecx + 4], edx */ 8795 esi = MEM32(ebp + (-0x4)); /* 0x3100E872: mov esi, dword ptr [ebp - 4] */ 8796 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E875: mov byte ptr [eax + 0x3c], bl */ 8797 ecx = esi + 0xC; /* 0x3100E878: lea ecx, [esi + 0xc] */ 8798 RECOMP_ICALL(0x3100EE80u); /* 0x3100E87B: call 0x3100ee80 */ /* not lifted */ 8799 RECOMP_FLAGS_IN(); 8800 PUSH32(esp, esi); /* 0x3100E880: push esi */ 8801 RECOMP_ICALL(0x31046858u); /* 0x3100E881: call 0x31046858 */ /* not lifted */ 8802 RECOMP_FLAGS_IN(); 8803 eax = MEM32(edi + 0x10); /* 0x3100E886: mov eax, dword ptr [edi + 0x10] */ 8804 edx = MEM32(ebp + 0xC); /* 0x3100E889: mov edx, dword ptr [ebp + 0xc] */ 8805 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8806 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8807 esp = esp + 4; /* 0x3100E88C: add esp, 4 */ 8808 _flag_k = FK_ADD; 8809 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8810 eax = eax - 1; /* 0x3100E88F: dec eax */ 8811 _flag_k = FK_DEC; 8812 MEM32(edi + 0x10) = eax; /* 0x3100E890: mov dword ptr [edi + 0x10], eax */ 8813 eax = MEM32(ebp + 0x8); /* 0x3100E893: mov eax, dword ptr [ebp + 8] */ 8814 edi = POP32_VAL(esp); /* 0x3100E896: pop edi */ 8815 esi = POP32_VAL(esp); /* 0x3100E897: pop esi */ 8816 MEM32(eax) = edx; /* 0x3100E898: mov dword ptr [eax], edx */ 8817 ebx = POP32_VAL(esp); /* 0x3100E89A: pop ebx */ 8818 esp = ebp; /* 0x3100E89B: mov esp, ebp */ 8819 ebp = POP32_VAL(esp); /* 0x3100E89D: pop ebp */ 8820 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100E89E: ret 8 */ 8821 RECOMP_REGS_OUT(); 8822 } 8823 8824 void sub_3100E817(void) { 8825 int _fpu_cmp = 0; 8826 uint32_t _cf = 0; 8827 int _df = 1; 8828 uint32_t _flag_k = FK_NONE; 8829 uint32_t _flag_a = 0, _flag_b = 0; 8830 uint32_t _itail_tgt = 0; 8831 RECOMP_REGS_LOCALS 8832 RECOMP_ENTER(0x3100E817u); 8833 8834 L_3100E817: 8835 MEM32(edx) = ecx; /* 0x3100E817: mov dword ptr [edx], ecx */ 8836 MEM32(ecx + 0x4) = edx; /* 0x3100E819: mov dword ptr [ecx + 4], edx */ 8837 ecx = MEM32(eax + 0x4); /* 0x3100E81C: mov ecx, dword ptr [eax + 4] */ 8838 ecx = MEM32(ecx); /* 0x3100E81F: mov ecx, dword ptr [ecx] */ 8839 edx = MEM32(eax + 0x4); /* 0x3100E821: mov edx, dword ptr [eax + 4] */ 8840 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3100E824: mov dl, byte ptr [edx + 0x3c] */ 8841 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3100E827: mov byte ptr [ecx + 0x3c], dl */ 8842 edx = MEM32(eax + 0x4); /* 0x3100E82A: mov edx, dword ptr [eax + 4] */ 8843 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E82D: mov byte ptr [edx + 0x3c], bl */ 8844 ecx = MEM32(ecx); /* 0x3100E830: mov ecx, dword ptr [ecx] */ 8845 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E832: mov byte ptr [ecx + 0x3c], bl */ 8846 ecx = MEM32(eax + 0x4); /* 0x3100E835: mov ecx, dword ptr [eax + 4] */ 8847 edx = MEM32(ecx); /* 0x3100E838: mov edx, dword ptr [ecx] */ 8848 esi = MEM32(edx + 0x8); /* 0x3100E83A: mov esi, dword ptr [edx + 8] */ 8849 MEM32(ecx) = esi; /* 0x3100E83D: mov dword ptr [ecx], esi */ 8850 esi = MEM32(edx + 0x8); /* 0x3100E83F: mov esi, dword ptr [edx + 8] */ 8851 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3100E842: cmp esi, dword ptr [edi + 8] */ 8852 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8853 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8854 _flag_k = FK_CMP; 8855 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E84A; /* 0x3100E845: je 0x3100e84a */ 8856 L_3100E847: 8857 MEM32(esi + 0x4) = ecx; /* 0x3100E847: mov dword ptr [esi + 4], ecx */ 8858 L_3100E84A: 8859 esi = MEM32(ecx + 0x4); /* 0x3100E84A: mov esi, dword ptr [ecx + 4] */ 8860 MEM32(edx + 0x4) = esi; /* 0x3100E84D: mov dword ptr [edx + 4], esi */ 8861 esi = MEM32(edi + 0x4); /* 0x3100E850: mov esi, dword ptr [edi + 4] */ 8862 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3100E853: cmp ecx, dword ptr [esi + 4] */ 8863 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8864 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8865 _flag_k = FK_CMP; 8866 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E85D; /* 0x3100E856: jne 0x3100e85d */ 8867 L_3100E858: 8868 MEM32(esi + 0x4) = edx; /* 0x3100E858: mov dword ptr [esi + 4], edx */ 8869 goto L_3100E86C; /* 0x3100E85B: jmp 0x3100e86c */ 8870 L_3100E85D: 8871 esi = MEM32(ecx + 0x4); /* 0x3100E85D: mov esi, dword ptr [ecx + 4] */ 8872 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3100E860: cmp ecx, dword ptr [esi + 8] */ 8873 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8874 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8875 _flag_k = FK_CMP; 8876 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E86A; /* 0x3100E863: jne 0x3100e86a */ 8877 L_3100E865: 8878 MEM32(esi + 0x8) = edx; /* 0x3100E865: mov dword ptr [esi + 8], edx */ 8879 goto L_3100E86C; /* 0x3100E868: jmp 0x3100e86c */ 8880 L_3100E86A: 8881 MEM32(esi) = edx; /* 0x3100E86A: mov dword ptr [esi], edx */ 8882 L_3100E86C: 8883 MEM32(edx + 0x8) = ecx; /* 0x3100E86C: mov dword ptr [edx + 8], ecx */ 8884 MEM32(ecx + 0x4) = edx; /* 0x3100E86F: mov dword ptr [ecx + 4], edx */ 8885 esi = MEM32(ebp + (-0x4)); /* 0x3100E872: mov esi, dword ptr [ebp - 4] */ 8886 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E875: mov byte ptr [eax + 0x3c], bl */ 8887 ecx = esi + 0xC; /* 0x3100E878: lea ecx, [esi + 0xc] */ 8888 RECOMP_ICALL(0x3100EE80u); /* 0x3100E87B: call 0x3100ee80 */ /* not lifted */ 8889 RECOMP_FLAGS_IN(); 8890 PUSH32(esp, esi); /* 0x3100E880: push esi */ 8891 RECOMP_ICALL(0x31046858u); /* 0x3100E881: call 0x31046858 */ /* not lifted */ 8892 RECOMP_FLAGS_IN(); 8893 eax = MEM32(edi + 0x10); /* 0x3100E886: mov eax, dword ptr [edi + 0x10] */ 8894 edx = MEM32(ebp + 0xC); /* 0x3100E889: mov edx, dword ptr [ebp + 0xc] */ 8895 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8896 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8897 esp = esp + 4; /* 0x3100E88C: add esp, 4 */ 8898 _flag_k = FK_ADD; 8899 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8900 eax = eax - 1; /* 0x3100E88F: dec eax */ 8901 _flag_k = FK_DEC; 8902 MEM32(edi + 0x10) = eax; /* 0x3100E890: mov dword ptr [edi + 0x10], eax */ 8903 eax = MEM32(ebp + 0x8); /* 0x3100E893: mov eax, dword ptr [ebp + 8] */ 8904 edi = POP32_VAL(esp); /* 0x3100E896: pop edi */ 8905 esi = POP32_VAL(esp); /* 0x3100E897: pop esi */ 8906 MEM32(eax) = edx; /* 0x3100E898: mov dword ptr [eax], edx */ 8907 ebx = POP32_VAL(esp); /* 0x3100E89A: pop ebx */ 8908 esp = ebp; /* 0x3100E89B: mov esp, ebp */ 8909 ebp = POP32_VAL(esp); /* 0x3100E89D: pop ebp */ 8910 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100E89E: ret 8 */ 8911 RECOMP_REGS_OUT(); 8912 } 8913 8914 void sub_3100E86C(void) { 8915 int _fpu_cmp = 0; 8916 uint32_t _cf = 0; 8917 int _df = 1; 8918 uint32_t _flag_k = FK_NONE; 8919 uint32_t _flag_a = 0, _flag_b = 0; 8920 uint32_t _itail_tgt = 0; 8921 RECOMP_REGS_LOCALS 8922 RECOMP_ENTER(0x3100E86Cu); 8923 8924 L_3100E86C: 8925 MEM32(edx + 0x8) = ecx; /* 0x3100E86C: mov dword ptr [edx + 8], ecx */ 8926 MEM32(ecx + 0x4) = edx; /* 0x3100E86F: mov dword ptr [ecx + 4], edx */ 8927 esi = MEM32(ebp + (-0x4)); /* 0x3100E872: mov esi, dword ptr [ebp - 4] */ 8928 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E875: mov byte ptr [eax + 0x3c], bl */ 8929 ecx = esi + 0xC; /* 0x3100E878: lea ecx, [esi + 0xc] */ 8930 RECOMP_ICALL(0x3100EE80u); /* 0x3100E87B: call 0x3100ee80 */ /* not lifted */ 8931 RECOMP_FLAGS_IN(); 8932 PUSH32(esp, esi); /* 0x3100E880: push esi */ 8933 RECOMP_ICALL(0x31046858u); /* 0x3100E881: call 0x31046858 */ /* not lifted */ 8934 RECOMP_FLAGS_IN(); 8935 eax = MEM32(edi + 0x10); /* 0x3100E886: mov eax, dword ptr [edi + 0x10] */ 8936 edx = MEM32(ebp + 0xC); /* 0x3100E889: mov edx, dword ptr [ebp + 0xc] */ 8937 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8938 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8939 esp = esp + 4; /* 0x3100E88C: add esp, 4 */ 8940 _flag_k = FK_ADD; 8941 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8942 eax = eax - 1; /* 0x3100E88F: dec eax */ 8943 _flag_k = FK_DEC; 8944 MEM32(edi + 0x10) = eax; /* 0x3100E890: mov dword ptr [edi + 0x10], eax */ 8945 eax = MEM32(ebp + 0x8); /* 0x3100E893: mov eax, dword ptr [ebp + 8] */ 8946 edi = POP32_VAL(esp); /* 0x3100E896: pop edi */ 8947 esi = POP32_VAL(esp); /* 0x3100E897: pop esi */ 8948 MEM32(eax) = edx; /* 0x3100E898: mov dword ptr [eax], edx */ 8949 ebx = POP32_VAL(esp); /* 0x3100E89A: pop ebx */ 8950 esp = ebp; /* 0x3100E89B: mov esp, ebp */ 8951 ebp = POP32_VAL(esp); /* 0x3100E89D: pop ebp */ 8952 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100E89E: ret 8 */ 8953 RECOMP_REGS_OUT(); 8954 } 8955 8956 void sub_3100E86F(void) { 8957 int _fpu_cmp = 0; 8958 uint32_t _cf = 0; 8959 int _df = 1; 8960 uint32_t _flag_k = FK_NONE; 8961 uint32_t _flag_a = 0, _flag_b = 0; 8962 uint32_t _itail_tgt = 0; 8963 RECOMP_REGS_LOCALS 8964 RECOMP_ENTER(0x3100E86Fu); 8965 8966 L_3100E86F: 8967 MEM32(ecx + 0x4) = edx; /* 0x3100E86F: mov dword ptr [ecx + 4], edx */ 8968 esi = MEM32(ebp + (-0x4)); /* 0x3100E872: mov esi, dword ptr [ebp - 4] */ 8969 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E875: mov byte ptr [eax + 0x3c], bl */ 8970 ecx = esi + 0xC; /* 0x3100E878: lea ecx, [esi + 0xc] */ 8971 RECOMP_ICALL(0x3100EE80u); /* 0x3100E87B: call 0x3100ee80 */ /* not lifted */ 8972 RECOMP_FLAGS_IN(); 8973 PUSH32(esp, esi); /* 0x3100E880: push esi */ 8974 RECOMP_ICALL(0x31046858u); /* 0x3100E881: call 0x31046858 */ /* not lifted */ 8975 RECOMP_FLAGS_IN(); 8976 eax = MEM32(edi + 0x10); /* 0x3100E886: mov eax, dword ptr [edi + 0x10] */ 8977 edx = MEM32(ebp + 0xC); /* 0x3100E889: mov edx, dword ptr [ebp + 0xc] */ 8978 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8979 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8980 esp = esp + 4; /* 0x3100E88C: add esp, 4 */ 8981 _flag_k = FK_ADD; 8982 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8983 eax = eax - 1; /* 0x3100E88F: dec eax */ 8984 _flag_k = FK_DEC; 8985 MEM32(edi + 0x10) = eax; /* 0x3100E890: mov dword ptr [edi + 0x10], eax */ 8986 eax = MEM32(ebp + 0x8); /* 0x3100E893: mov eax, dword ptr [ebp + 8] */ 8987 edi = POP32_VAL(esp); /* 0x3100E896: pop edi */ 8988 esi = POP32_VAL(esp); /* 0x3100E897: pop esi */ 8989 MEM32(eax) = edx; /* 0x3100E898: mov dword ptr [eax], edx */ 8990 ebx = POP32_VAL(esp); /* 0x3100E89A: pop ebx */ 8991 esp = ebp; /* 0x3100E89B: mov esp, ebp */ 8992 ebp = POP32_VAL(esp); /* 0x3100E89D: pop ebp */ 8993 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100E89E: ret 8 */ 8994 RECOMP_REGS_OUT(); 8995 } 8996 8997 void sub_3100E872(void) { 8998 int _fpu_cmp = 0; 8999 uint32_t _cf = 0; 9000 int _df = 1; 9001 uint32_t _flag_k = FK_NONE; 9002 uint32_t _flag_a = 0, _flag_b = 0; 9003 uint32_t _itail_tgt = 0; 9004 RECOMP_REGS_LOCALS 9005 RECOMP_ENTER(0x3100E872u); 9006 9007 L_3100E872: 9008 esi = MEM32(ebp + (-0x4)); /* 0x3100E872: mov esi, dword ptr [ebp - 4] */ 9009 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3100E875: mov byte ptr [eax + 0x3c], bl */ 9010 ecx = esi + 0xC; /* 0x3100E878: lea ecx, [esi + 0xc] */ 9011 RECOMP_ICALL(0x3100EE80u); /* 0x3100E87B: call 0x3100ee80 */ /* not lifted */ 9012 RECOMP_FLAGS_IN(); 9013 PUSH32(esp, esi); /* 0x3100E880: push esi */ 9014 RECOMP_ICALL(0x31046858u); /* 0x3100E881: call 0x31046858 */ /* not lifted */ 9015 RECOMP_FLAGS_IN(); 9016 eax = MEM32(edi + 0x10); /* 0x3100E886: mov eax, dword ptr [edi + 0x10] */ 9017 edx = MEM32(ebp + 0xC); /* 0x3100E889: mov edx, dword ptr [ebp + 0xc] */ 9018 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9019 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9020 esp = esp + 4; /* 0x3100E88C: add esp, 4 */ 9021 _flag_k = FK_ADD; 9022 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9023 eax = eax - 1; /* 0x3100E88F: dec eax */ 9024 _flag_k = FK_DEC; 9025 MEM32(edi + 0x10) = eax; /* 0x3100E890: mov dword ptr [edi + 0x10], eax */ 9026 eax = MEM32(ebp + 0x8); /* 0x3100E893: mov eax, dword ptr [ebp + 8] */ 9027 edi = POP32_VAL(esp); /* 0x3100E896: pop edi */ 9028 esi = POP32_VAL(esp); /* 0x3100E897: pop esi */ 9029 MEM32(eax) = edx; /* 0x3100E898: mov dword ptr [eax], edx */ 9030 ebx = POP32_VAL(esp); /* 0x3100E89A: pop ebx */ 9031 esp = ebp; /* 0x3100E89B: mov esp, ebp */ 9032 ebp = POP32_VAL(esp); /* 0x3100E89D: pop ebp */ 9033 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100E89E: ret 8 */ 9034 RECOMP_REGS_OUT(); 9035 } 9036 9037 void sub_3100E8B0(void) { 9038 int _fpu_cmp = 0; 9039 uint32_t _cf = 0; 9040 int _df = 1; 9041 uint32_t _flag_k = FK_NONE; 9042 uint32_t _flag_a = 0, _flag_b = 0; 9043 uint32_t _itail_tgt = 0; 9044 RECOMP_REGS_LOCALS 9045 RECOMP_ENTER(0x3100E8B0u); 9046 9047 L_3100E8B0: 9048 PUSH32(esp, ebp); /* 0x3100E8B0: push ebp */ 9049 ebp = esp; /* 0x3100E8B1: mov ebp, esp */ 9050 PUSH32(esp, ebx); /* 0x3100E8B3: push ebx */ 9051 PUSH32(esp, esi); /* 0x3100E8B4: push esi */ 9052 ebx = ecx; /* 0x3100E8B5: mov ebx, ecx */ 9053 eax = MEM32(ebx + 0x8); /* 0x3100E8B7: mov eax, dword ptr [ebx + 8] */ 9054 PUSH32(esp, edi); /* 0x3100E8BA: push edi */ 9055 edi = MEM32(ebp + 0x8); /* 0x3100E8BB: mov edi, dword ptr [ebp + 8] */ 9056 /* cmp edi, eax */ /* 0x3100E8BE: cmp edi, eax */ 9057 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9058 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9059 _flag_k = FK_CMP; 9060 esi = edi; /* 0x3100E8C0: mov esi, edi */ 9061 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E8EB; /* 0x3100E8C2: je 0x3100e8eb */ 9062 L_3100E8C4: 9063 eax = MEM32(esi + 0x8); /* 0x3100E8C4: mov eax, dword ptr [esi + 8] */ 9064 PUSH32(esp, eax); /* 0x3100E8C7: push eax */ 9065 ecx = ebx; /* 0x3100E8C8: mov ecx, ebx */ 9066 RECOMP_ICALL(0x3100E8B0u); /* 0x3100E8CA: call 0x3100e8b0 */ /* not lifted */ 9067 RECOMP_FLAGS_IN(); 9068 esi = MEM32(esi); /* 0x3100E8CF: mov esi, dword ptr [esi] */ 9069 ecx = edi + 0xC; /* 0x3100E8D1: lea ecx, [edi + 0xc] */ 9070 RECOMP_ICALL(0x3100EE80u); /* 0x3100E8D4: call 0x3100ee80 */ /* not lifted */ 9071 RECOMP_FLAGS_IN(); 9072 PUSH32(esp, edi); /* 0x3100E8D9: push edi */ 9073 RECOMP_ICALL(0x31046858u); /* 0x3100E8DA: call 0x31046858 */ /* not lifted */ 9074 RECOMP_FLAGS_IN(); 9075 eax = MEM32(ebx + 0x8); /* 0x3100E8DF: mov eax, dword ptr [ebx + 8] */ 9076 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9077 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9078 esp = esp + 4; /* 0x3100E8E2: add esp, 4 */ 9079 _flag_k = FK_ADD; 9080 /* cmp esi, eax */ /* 0x3100E8E5: cmp esi, eax */ 9081 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 9082 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9083 _flag_k = FK_CMP; 9084 edi = esi; /* 0x3100E8E7: mov edi, esi */ 9085 RECOMP_BACKEDGE(); 9086 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E8C4; /* 0x3100E8E9: jne 0x3100e8c4 */ 9087 L_3100E8EB: 9088 edi = POP32_VAL(esp); /* 0x3100E8EB: pop edi */ 9089 esi = POP32_VAL(esp); /* 0x3100E8EC: pop esi */ 9090 ebx = POP32_VAL(esp); /* 0x3100E8ED: pop ebx */ 9091 ebp = POP32_VAL(esp); /* 0x3100E8EE: pop ebp */ 9092 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3100E8EF: ret 4 */ 9093 RECOMP_REGS_OUT(); 9094 } 9095 9096 void sub_3100E900(void) { 9097 int _fpu_cmp = 0; 9098 uint32_t _cf = 0; 9099 int _df = 1; 9100 uint32_t _flag_k = FK_NONE; 9101 uint32_t _flag_a = 0, _flag_b = 0; 9102 uint32_t _itail_tgt = 0; 9103 RECOMP_REGS_LOCALS 9104 RECOMP_ENTER(0x3100E900u); 9105 9106 L_3100E900: 9107 PUSH32(esp, ebp); /* 0x3100E900: push ebp */ 9108 ebp = esp; /* 0x3100E901: mov ebp, esp */ 9109 PUSH32(esp, ebx); /* 0x3100E903: push ebx */ 9110 PUSH32(esp, esi); /* 0x3100E904: push esi */ 9111 esi = MEM32(ecx); /* 0x3100E905: mov esi, dword ptr [ecx] */ 9112 edx = MEM32(esi + 0x8); /* 0x3100E907: mov edx, dword ptr [esi + 8] */ 9113 SET_LO8(eax, MEM8(edx + 0x3D)); /* 0x3100E90A: mov al, byte ptr [edx + 0x3d] */ 9114 /* test LO8(eax), LO8(eax) */ /* 0x3100E90D: test al, al */ 9115 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9116 _cf = 0; 9117 _flag_k = FK_NARROW(FK_TEST, 24); 9118 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100E932; /* 0x3100E90F: jne 0x3100e932 */ 9119 L_3100E911: 9120 eax = MEM32(edx); /* 0x3100E911: mov eax, dword ptr [edx] */ 9121 SET_LO8(ebx, MEM8(eax + 0x3D)); /* 0x3100E913: mov bl, byte ptr [eax + 0x3d] */ 9122 /* test LO8(ebx), LO8(ebx) */ /* 0x3100E916: test bl, bl */ 9123 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9124 _cf = 0; 9125 _flag_k = FK_NARROW(FK_TEST, 24); 9126 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100E925; /* 0x3100E918: jne 0x3100e925 */ 9127 L_3100E91A: 9128 edx = eax; /* 0x3100E91A: mov edx, eax */ 9129 eax = MEM32(edx); /* 0x3100E91C: mov eax, dword ptr [edx] */ 9130 SET_LO8(ebx, MEM8(eax + 0x3D)); /* 0x3100E91E: mov bl, byte ptr [eax + 0x3d] */ 9131 /* test LO8(ebx), LO8(ebx) */ /* 0x3100E921: test bl, bl */ 9132 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9133 _cf = 0; 9134 _flag_k = FK_NARROW(FK_TEST, 24); 9135 RECOMP_BACKEDGE(); 9136 if (TEST_Z(_flag_a, _flag_b)) goto L_3100E91A; /* 0x3100E923: je 0x3100e91a */ 9137 L_3100E925: 9138 eax = MEM32(ebp + 0x8); /* 0x3100E925: mov eax, dword ptr [ebp + 8] */ 9139 MEM32(ecx) = edx; /* 0x3100E928: mov dword ptr [ecx], edx */ 9140 MEM32(eax) = esi; /* 0x3100E92A: mov dword ptr [eax], esi */ 9141 esi = POP32_VAL(esp); /* 0x3100E92C: pop esi */ 9142 ebx = POP32_VAL(esp); /* 0x3100E92D: pop ebx */ 9143 ebp = POP32_VAL(esp); /* 0x3100E92E: pop ebp */ 9144 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100E92F: ret 8 */ 9145 L_3100E932: 9146 eax = MEM32(esi + 0x4); /* 0x3100E932: mov eax, dword ptr [esi + 4] */ 9147 edx = MEM32(ecx); /* 0x3100E935: mov edx, dword ptr [ecx] */ 9148 /* cmp edx, MEM32(eax + 0x8) */ /* 0x3100E937: cmp edx, dword ptr [eax + 8] */ 9149 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 9150 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9151 _flag_k = FK_CMP; 9152 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E948; /* 0x3100E93A: jne 0x3100e948 */ 9153 L_3100E93C: 9154 MEM32(ecx) = eax; /* 0x3100E93C: mov dword ptr [ecx], eax */ 9155 eax = MEM32(eax + 0x4); /* 0x3100E93E: mov eax, dword ptr [eax + 4] */ 9156 edx = MEM32(ecx); /* 0x3100E941: mov edx, dword ptr [ecx] */ 9157 /* cmp edx, MEM32(eax + 0x8) */ /* 0x3100E943: cmp edx, dword ptr [eax + 8] */ 9158 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 9159 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9160 _flag_k = FK_CMP; 9161 RECOMP_BACKEDGE(); 9162 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E93C; /* 0x3100E946: je 0x3100e93c */ 9163 L_3100E948: 9164 edx = MEM32(ecx); /* 0x3100E948: mov edx, dword ptr [ecx] */ 9165 /* cmp MEM32(edx + 0x8), eax */ /* 0x3100E94A: cmp dword ptr [edx + 8], eax */ 9166 _flag_a = (uint32_t)(MEM32(edx + 0x8)); _flag_b = (uint32_t)(eax); 9167 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9168 _flag_k = FK_CMP; 9169 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E951; /* 0x3100E94D: je 0x3100e951 */ 9170 L_3100E94F: 9171 MEM32(ecx) = eax; /* 0x3100E94F: mov dword ptr [ecx], eax */ 9172 L_3100E951: 9173 eax = MEM32(ebp + 0x8); /* 0x3100E951: mov eax, dword ptr [ebp + 8] */ 9174 MEM32(eax) = esi; /* 0x3100E954: mov dword ptr [eax], esi */ 9175 esi = POP32_VAL(esp); /* 0x3100E956: pop esi */ 9176 ebx = POP32_VAL(esp); /* 0x3100E957: pop ebx */ 9177 ebp = POP32_VAL(esp); /* 0x3100E958: pop ebp */ 9178 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100E959: ret 8 */ 9179 RECOMP_REGS_OUT(); 9180 } 9181 9182 void sub_3100E960(void) { 9183 int _fpu_cmp = 0; 9184 uint32_t _cf = 0; 9185 int _df = 1; 9186 uint32_t _flag_k = FK_NONE; 9187 uint32_t _flag_a = 0, _flag_b = 0; 9188 uint32_t _itail_tgt = 0; 9189 RECOMP_REGS_LOCALS 9190 RECOMP_ENTER(0x3100E960u); 9191 9192 L_3100E960: 9193 PUSH32(esp, ebp); /* 0x3100E960: push ebp */ 9194 ebp = esp; /* 0x3100E961: mov ebp, esp */ 9195 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 9196 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9197 esp = esp - 0xCu; /* 0x3100E963: sub esp, 0xc */ 9198 _flag_k = FK_CMP; 9199 eax = MEM32(ecx + 0xC); /* 0x3100E966: mov eax, dword ptr [ecx + 0xc] */ 9200 PUSH32(esp, ebx); /* 0x3100E969: push ebx */ 9201 PUSH32(esp, esi); /* 0x3100E96A: push esi */ 9202 esi = MEM32(ecx + 0x8); /* 0x3100E96B: mov esi, dword ptr [ecx + 8] */ 9203 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 9204 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9205 eax = eax - esi; /* 0x3100E96E: sub eax, esi */ 9206 _flag_k = FK_CMP; 9207 PUSH32(esp, edi); /* 0x3100E970: push edi */ 9208 edi = MEM32(ebp + 0xC); /* 0x3100E971: mov edi, dword ptr [ebp + 0xc] */ 9209 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x3100E974: sar eax, 4 */ 9210 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9211 eax = (uint32_t)((int32_t)eax >> 4u); 9212 /* cmp eax, edi */ /* 0x3100E977: cmp eax, edi */ 9213 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 9214 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9215 _flag_k = FK_CMP; 9216 MEM32(ebp + (-0x4)) = ecx; /* 0x3100E979: mov dword ptr [ebp - 4], ecx */ 9217 if (CMP_AE(_flag_a, _flag_b)) goto L_3100EAB4; /* 0x3100E97C: jae 0x3100eab4 */ 9218 L_3100E982: 9219 ecx = MEM32(ecx + 0x4); /* 0x3100E982: mov ecx, dword ptr [ecx + 4] */ 9220 /* test ecx, ecx */ /* 0x3100E985: test ecx, ecx */ 9221 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 9222 _cf = 0; 9223 _flag_k = FK_TEST; 9224 if (TEST_Z(_flag_a, _flag_b)) goto L_3100E994; /* 0x3100E987: je 0x3100e994 */ 9225 L_3100E989: 9226 eax = esi; /* 0x3100E989: mov eax, esi */ 9227 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9228 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9229 eax = eax - ecx; /* 0x3100E98B: sub eax, ecx */ 9230 _flag_k = FK_CMP; 9231 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x3100E98D: sar eax, 4 */ 9232 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9233 eax = (uint32_t)((int32_t)eax >> 4u); 9234 /* cmp edi, eax */ /* 0x3100E990: cmp edi, eax */ 9235 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9236 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9237 _flag_k = FK_CMP; 9238 if (CMP_B(_flag_a, _flag_b)) goto L_3100E996; /* 0x3100E992: jb 0x3100e996 */ 9239 L_3100E994: 9240 eax = edi; /* 0x3100E994: mov eax, edi */ 9241 L_3100E996: 9242 /* test ecx, ecx */ /* 0x3100E996: test ecx, ecx */ 9243 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 9244 _cf = 0; 9245 _flag_k = FK_TEST; 9246 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100E99E; /* 0x3100E998: jne 0x3100e99e */ 9247 L_3100E99A: 9248 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9249 esi = 0; /* 0x3100E99A: xor esi, esi */ 9250 _cf = 0; 9251 _flag_k = FK_TEST; 9252 goto L_3100E9A3; /* 0x3100E99C: jmp 0x3100e9a3 */ 9253 L_3100E99E: 9254 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 9255 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9256 esi = esi - ecx; /* 0x3100E99E: sub esi, ecx */ 9257 _flag_k = FK_CMP; 9258 if (4u) _cf = (((esi) >> 3) & 1u); /* 0x3100E9A0: sar esi, 4 */ 9259 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)esi >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9260 esi = (uint32_t)((int32_t)esi >> 4u); 9261 L_3100E9A3: 9262 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 9263 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9264 eax = eax + esi; /* 0x3100E9A3: add eax, esi */ 9265 _flag_k = FK_ADD; 9266 /* test eax, eax */ /* 0x3100E9A5: test eax, eax */ 9267 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9268 _cf = 0; 9269 _flag_k = FK_TEST; 9270 MEM32(ebp + (-0x8)) = eax; /* 0x3100E9A7: mov dword ptr [ebp - 8], eax */ 9271 if (TEST_NS(_flag_a, _flag_b)) goto L_3100E9AE; /* 0x3100E9AA: jge 0x3100e9ae */ 9272 L_3100E9AC: 9273 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9274 eax = 0; /* 0x3100E9AC: xor eax, eax */ 9275 _cf = 0; 9276 _flag_k = FK_TEST; 9277 L_3100E9AE: 9278 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x3100E9AE: shl eax, 4 */ 9279 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9280 eax = eax << 4u; /* 0x3100E9AE: shl eax, 4 */ 9281 PUSH32(esp, eax); /* 0x3100E9B1: push eax */ 9282 RECOMP_ICALL(0x310468DAu); /* 0x3100E9B2: call 0x310468da */ /* not lifted */ 9283 RECOMP_FLAGS_IN(); 9284 ecx = MEM32(ebp + (-0x4)); /* 0x3100E9B7: mov ecx, dword ptr [ebp - 4] */ 9285 esi = MEM32(ecx + 0x4); /* 0x3100E9BA: mov esi, dword ptr [ecx + 4] */ 9286 MEM32(ebp + (-0xC)) = eax; /* 0x3100E9BD: mov dword ptr [ebp - 0xc], eax */ 9287 ebx = eax; /* 0x3100E9C0: mov ebx, eax */ 9288 eax = MEM32(ebp + 0x8); /* 0x3100E9C2: mov eax, dword ptr [ebp + 8] */ 9289 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9290 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9291 esp = esp + 4; /* 0x3100E9C5: add esp, 4 */ 9292 _flag_k = FK_ADD; 9293 /* cmp esi, eax */ /* 0x3100E9C8: cmp esi, eax */ 9294 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 9295 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9296 _flag_k = FK_CMP; 9297 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100E9E3; /* 0x3100E9CA: je 0x3100e9e3 */ 9298 L_3100E9CC: 9299 PUSH32(esp, esi); /* 0x3100E9CC: push esi */ 9300 PUSH32(esp, ebx); /* 0x3100E9CD: push ebx */ 9301 RECOMP_ICALL(0x3100EC70u); /* 0x3100E9CE: call 0x3100ec70 */ /* not lifted */ 9302 RECOMP_FLAGS_IN(); 9303 eax = MEM32(ebp + 0x8); /* 0x3100E9D3: mov eax, dword ptr [ebp + 8] */ 9304 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 9305 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9306 esi = esi + 0x10u; /* 0x3100E9D6: add esi, 0x10 */ 9307 _flag_k = FK_ADD; 9308 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9309 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9310 esp = esp + 8; /* 0x3100E9D9: add esp, 8 */ 9311 _flag_k = FK_ADD; 9312 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 9313 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9314 ebx = ebx + 0x10u; /* 0x3100E9DC: add ebx, 0x10 */ 9315 _flag_k = FK_ADD; 9316 /* cmp esi, eax */ /* 0x3100E9DF: cmp esi, eax */ 9317 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 9318 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9319 _flag_k = FK_CMP; 9320 RECOMP_BACKEDGE(); 9321 if (CMP_NE(_flag_a, _flag_b)) goto L_3100E9CC; /* 0x3100E9E1: jne 0x3100e9cc */ 9322 L_3100E9E3: 9323 /* test edi, edi */ /* 0x3100E9E3: test edi, edi */ 9324 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 9325 _cf = 0; 9326 _flag_k = FK_TEST; 9327 esi = ebx; /* 0x3100E9E5: mov esi, ebx */ 9328 if (TEST_Z(_flag_a, _flag_b)) goto L_3100EA05; /* 0x3100E9E7: jbe 0x3100ea05 */ 9329 L_3100E9E9: 9330 MEM32(ebp + 0xC) = edi; /* 0x3100E9E9: mov dword ptr [ebp + 0xc], edi */ 9331 L_3100E9EC: 9332 edx = MEM32(ebp + 0x10); /* 0x3100E9EC: mov edx, dword ptr [ebp + 0x10] */ 9333 PUSH32(esp, edx); /* 0x3100E9EF: push edx */ 9334 PUSH32(esp, esi); /* 0x3100E9F0: push esi */ 9335 RECOMP_ICALL(0x3100EC70u); /* 0x3100E9F1: call 0x3100ec70 */ /* not lifted */ 9336 RECOMP_FLAGS_IN(); 9337 eax = MEM32(ebp + 0xC); /* 0x3100E9F6: mov eax, dword ptr [ebp + 0xc] */ 9338 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9339 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9340 esp = esp + 8; /* 0x3100E9F9: add esp, 8 */ 9341 _flag_k = FK_ADD; 9342 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 9343 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9344 esi = esi + 0x10u; /* 0x3100E9FC: add esi, 0x10 */ 9345 _flag_k = FK_ADD; 9346 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9347 eax = eax - 1; /* 0x3100E9FF: dec eax */ 9348 _flag_k = FK_DEC; 9349 MEM32(ebp + 0xC) = eax; /* 0x3100EA00: mov dword ptr [ebp + 0xc], eax */ 9350 RECOMP_BACKEDGE(); 9351 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3100E9EC; /* 0x3100EA03: jne 0x3100e9ec */ 9352 L_3100EA05: 9353 ecx = MEM32(ebp + (-0x4)); /* 0x3100EA05: mov ecx, dword ptr [ebp - 4] */ 9354 esi = MEM32(ebp + 0x8); /* 0x3100EA08: mov esi, dword ptr [ebp + 8] */ 9355 eax = edi; /* 0x3100EA0B: mov eax, edi */ 9356 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x3100EA0D: shl eax, 4 */ 9357 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9358 eax = eax << 4u; /* 0x3100EA0D: shl eax, 4 */ 9359 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 9360 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9361 eax = eax + ebx; /* 0x3100EA10: add eax, ebx */ 9362 _flag_k = FK_ADD; 9363 ebx = MEM32(ecx + 0x8); /* 0x3100EA12: mov ebx, dword ptr [ecx + 8] */ 9364 /* cmp esi, ebx */ /* 0x3100EA15: cmp esi, ebx */ 9365 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 9366 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9367 _flag_k = FK_CMP; 9368 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100EA39; /* 0x3100EA17: je 0x3100ea39 */ 9369 L_3100EA19: 9370 MEM32(ebp + 0x8) = eax; /* 0x3100EA19: mov dword ptr [ebp + 8], eax */ 9371 L_3100EA1C: 9372 edx = MEM32(ebp + 0x8); /* 0x3100EA1C: mov edx, dword ptr [ebp + 8] */ 9373 PUSH32(esp, esi); /* 0x3100EA1F: push esi */ 9374 PUSH32(esp, edx); /* 0x3100EA20: push edx */ 9375 RECOMP_ICALL(0x3100EC70u); /* 0x3100EA21: call 0x3100ec70 */ /* not lifted */ 9376 RECOMP_FLAGS_IN(); 9377 ecx = MEM32(ebp + 0x8); /* 0x3100EA26: mov ecx, dword ptr [ebp + 8] */ 9378 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 9379 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9380 esi = esi + 0x10u; /* 0x3100EA29: add esi, 0x10 */ 9381 _flag_k = FK_ADD; 9382 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u); 9383 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9384 ecx = ecx + 0x10u; /* 0x3100EA2C: add ecx, 0x10 */ 9385 _flag_k = FK_ADD; 9386 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9387 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9388 esp = esp + 8; /* 0x3100EA2F: add esp, 8 */ 9389 _flag_k = FK_ADD; 9390 /* cmp esi, ebx */ /* 0x3100EA32: cmp esi, ebx */ 9391 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 9392 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9393 _flag_k = FK_CMP; 9394 MEM32(ebp + 0x8) = ecx; /* 0x3100EA34: mov dword ptr [ebp + 8], ecx */ 9395 RECOMP_BACKEDGE(); 9396 if (CMP_NE(_flag_a, _flag_b)) goto L_3100EA1C; /* 0x3100EA37: jne 0x3100ea1c */ 9397 L_3100EA39: 9398 eax = MEM32(ebp + (-0x4)); /* 0x3100EA39: mov eax, dword ptr [ebp - 4] */ 9399 ebx = MEM32(eax + 0x8); /* 0x3100EA3C: mov ebx, dword ptr [eax + 8] */ 9400 esi = MEM32(eax + 0x4); /* 0x3100EA3F: mov esi, dword ptr [eax + 4] */ 9401 /* cmp esi, ebx */ /* 0x3100EA42: cmp esi, ebx */ 9402 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 9403 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9404 _flag_k = FK_CMP; 9405 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100EA57; /* 0x3100EA44: je 0x3100ea57 */ 9406 L_3100EA46: 9407 PUSH32(esp, 1); /* 0x3100EA46: push 1 */ 9408 ecx = esi; /* 0x3100EA48: mov ecx, esi */ 9409 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x3100EA4A: call dword ptr [0x310480d4] */ 9410 RECOMP_FLAGS_IN(); 9411 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 9412 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9413 esi = esi + 0x10u; /* 0x3100EA50: add esi, 0x10 */ 9414 _flag_k = FK_ADD; 9415 /* cmp esi, ebx */ /* 0x3100EA53: cmp esi, ebx */ 9416 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 9417 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9418 _flag_k = FK_CMP; 9419 RECOMP_BACKEDGE(); 9420 if (CMP_NE(_flag_a, _flag_b)) goto L_3100EA46; /* 0x3100EA55: jne 0x3100ea46 */ 9421 L_3100EA57: 9422 eax = MEM32(ebp + (-0x4)); /* 0x3100EA57: mov eax, dword ptr [ebp - 4] */ 9423 ecx = MEM32(eax + 0x4); /* 0x3100EA5A: mov ecx, dword ptr [eax + 4] */ 9424 PUSH32(esp, ecx); /* 0x3100EA5D: push ecx */ 9425 RECOMP_ICALL(0x31046858u); /* 0x3100EA5E: call 0x31046858 */ /* not lifted */ 9426 RECOMP_FLAGS_IN(); 9427 eax = MEM32(ebp + (-0x8)); /* 0x3100EA63: mov eax, dword ptr [ebp - 8] */ 9428 ecx = MEM32(ebp + (-0x4)); /* 0x3100EA66: mov ecx, dword ptr [ebp - 4] */ 9429 esi = MEM32(ebp + (-0xC)); /* 0x3100EA69: mov esi, dword ptr [ebp - 0xc] */ 9430 edx = MEM32(ecx + 0x4); /* 0x3100EA6C: mov edx, dword ptr [ecx + 4] */ 9431 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x3100EA6F: shl eax, 4 */ 9432 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9433 eax = eax << 4u; /* 0x3100EA6F: shl eax, 4 */ 9434 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 9435 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9436 eax = eax + esi; /* 0x3100EA72: add eax, esi */ 9437 _flag_k = FK_ADD; 9438 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9439 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9440 esp = esp + 4; /* 0x3100EA74: add esp, 4 */ 9441 _flag_k = FK_ADD; 9442 /* test edx, edx */ /* 0x3100EA77: test edx, edx */ 9443 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 9444 _cf = 0; 9445 _flag_k = FK_TEST; 9446 MEM32(ecx + 0xC) = eax; /* 0x3100EA79: mov dword ptr [ecx + 0xc], eax */ 9447 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100EA96; /* 0x3100EA7C: jne 0x3100ea96 */ 9448 L_3100EA7E: 9449 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9450 eax = 0; /* 0x3100EA7E: xor eax, eax */ 9451 _cf = 0; 9452 _flag_k = FK_TEST; 9453 eax = edi; /* 0x3100EA80: mov eax, edi */ 9454 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x3100EA82: shl eax, 4 */ 9455 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9456 eax = eax << 4u; /* 0x3100EA82: shl eax, 4 */ 9457 edi = POP32_VAL(esp); /* 0x3100EA85: pop edi */ 9458 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 9459 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9460 eax = eax + esi; /* 0x3100EA86: add eax, esi */ 9461 _flag_k = FK_ADD; 9462 MEM32(ecx + 0x4) = esi; /* 0x3100EA88: mov dword ptr [ecx + 4], esi */ 9463 esi = POP32_VAL(esp); /* 0x3100EA8B: pop esi */ 9464 MEM32(ecx + 0x8) = eax; /* 0x3100EA8C: mov dword ptr [ecx + 8], eax */ 9465 ebx = POP32_VAL(esp); /* 0x3100EA8F: pop ebx */ 9466 esp = ebp; /* 0x3100EA90: mov esp, ebp */ 9467 ebp = POP32_VAL(esp); /* 0x3100EA92: pop ebp */ 9468 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3100EA93: ret 0xc */ 9469 L_3100EA96: 9470 eax = MEM32(ecx + 0x8); /* 0x3100EA96: mov eax, dword ptr [ecx + 8] */ 9471 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9472 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9473 eax = eax - edx; /* 0x3100EA99: sub eax, edx */ 9474 _flag_k = FK_CMP; 9475 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x3100EA9B: sar eax, 4 */ 9476 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9477 eax = (uint32_t)((int32_t)eax >> 4u); 9478 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 9479 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9480 eax = eax + edi; /* 0x3100EA9E: add eax, edi */ 9481 _flag_k = FK_ADD; 9482 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x3100EAA0: shl eax, 4 */ 9483 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9484 eax = eax << 4u; /* 0x3100EAA0: shl eax, 4 */ 9485 edi = POP32_VAL(esp); /* 0x3100EAA3: pop edi */ 9486 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 9487 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9488 eax = eax + esi; /* 0x3100EAA4: add eax, esi */ 9489 _flag_k = FK_ADD; 9490 MEM32(ecx + 0x4) = esi; /* 0x3100EAA6: mov dword ptr [ecx + 4], esi */ 9491 esi = POP32_VAL(esp); /* 0x3100EAA9: pop esi */ 9492 MEM32(ecx + 0x8) = eax; /* 0x3100EAAA: mov dword ptr [ecx + 8], eax */ 9493 ebx = POP32_VAL(esp); /* 0x3100EAAD: pop ebx */ 9494 esp = ebp; /* 0x3100EAAE: mov esp, ebp */ 9495 ebp = POP32_VAL(esp); /* 0x3100EAB0: pop ebp */ 9496 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3100EAB1: ret 0xc */ 9497 L_3100EAB4: 9498 ebx = MEM32(ebp + 0x8); /* 0x3100EAB4: mov ebx, dword ptr [ebp + 8] */ 9499 edx = esi; /* 0x3100EAB7: mov edx, esi */ 9500 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 9501 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9502 edx = edx - ebx; /* 0x3100EAB9: sub edx, ebx */ 9503 _flag_k = FK_CMP; 9504 if (4u) _cf = (((edx) >> 3) & 1u); /* 0x3100EABB: sar edx, 4 */ 9505 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9506 edx = (uint32_t)((int32_t)edx >> 4u); 9507 /* cmp edx, edi */ /* 0x3100EABE: cmp edx, edi */ 9508 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 9509 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9510 _flag_k = FK_CMP; 9511 if (CMP_AE(_flag_a, _flag_b)) goto L_3100EB7A; /* 0x3100EAC0: jae 0x3100eb7a */ 9512 L_3100EAC6: 9513 eax = edi; /* 0x3100EAC6: mov eax, edi */ 9514 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x3100EAC8: shl eax, 4 */ 9515 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9516 eax = eax << 4u; /* 0x3100EAC8: shl eax, 4 */ 9517 /* cmp ebx, esi */ /* 0x3100EACB: cmp ebx, esi */ 9518 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 9519 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9520 _flag_k = FK_CMP; 9521 edx = eax + ebx; /* 0x3100EACD: lea edx, [eax + ebx] */ 9522 MEM32(ebp + 0x8) = eax; /* 0x3100EAD0: mov dword ptr [ebp + 8], eax */ 9523 MEM32(ebp + (-0xC)) = edx; /* 0x3100EAD3: mov dword ptr [ebp - 0xc], edx */ 9524 MEM32(ebp + 0xC) = ebx; /* 0x3100EAD6: mov dword ptr [ebp + 0xc], ebx */ 9525 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100EB0C; /* 0x3100EAD9: je 0x3100eb0c */ 9526 L_3100EADB: 9527 eax = edx; /* 0x3100EADB: mov eax, edx */ 9528 MEM32(ebp + (-0x8)) = eax; /* 0x3100EADD: mov dword ptr [ebp - 8], eax */ 9529 L_3100EAE0: 9530 ecx = MEM32(ebp + 0xC); /* 0x3100EAE0: mov ecx, dword ptr [ebp + 0xc] */ 9531 edx = MEM32(ebp + (-0x8)); /* 0x3100EAE3: mov edx, dword ptr [ebp - 8] */ 9532 PUSH32(esp, ecx); /* 0x3100EAE6: push ecx */ 9533 PUSH32(esp, edx); /* 0x3100EAE7: push edx */ 9534 RECOMP_ICALL(0x3100EC70u); /* 0x3100EAE8: call 0x3100ec70 */ /* not lifted */ 9535 RECOMP_FLAGS_IN(); 9536 eax = MEM32(ebp + 0xC); /* 0x3100EAED: mov eax, dword ptr [ebp + 0xc] */ 9537 edx = MEM32(ebp + (-0x8)); /* 0x3100EAF0: mov edx, dword ptr [ebp - 8] */ 9538 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 9539 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9540 eax = eax + 0x10u; /* 0x3100EAF3: add eax, 0x10 */ 9541 _flag_k = FK_ADD; 9542 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 9543 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9544 edx = edx + 0x10u; /* 0x3100EAF6: add edx, 0x10 */ 9545 _flag_k = FK_ADD; 9546 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9547 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9548 esp = esp + 8; /* 0x3100EAF9: add esp, 8 */ 9549 _flag_k = FK_ADD; 9550 /* cmp eax, esi */ /* 0x3100EAFC: cmp eax, esi */ 9551 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 9552 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9553 _flag_k = FK_CMP; 9554 MEM32(ebp + 0xC) = eax; /* 0x3100EAFE: mov dword ptr [ebp + 0xc], eax */ 9555 MEM32(ebp + (-0x8)) = edx; /* 0x3100EB01: mov dword ptr [ebp - 8], edx */ 9556 RECOMP_BACKEDGE(); 9557 if (CMP_NE(_flag_a, _flag_b)) goto L_3100EAE0; /* 0x3100EB04: jne 0x3100eae0 */ 9558 L_3100EB06: 9559 ecx = MEM32(ebp + (-0x4)); /* 0x3100EB06: mov ecx, dword ptr [ebp - 4] */ 9560 eax = MEM32(ebp + 0x8); /* 0x3100EB09: mov eax, dword ptr [ebp + 8] */ 9561 L_3100EB0C: 9562 esi = MEM32(ecx + 0x8); /* 0x3100EB0C: mov esi, dword ptr [ecx + 8] */ 9563 edx = esi; /* 0x3100EB0F: mov edx, esi */ 9564 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 9565 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9566 edx = edx - ebx; /* 0x3100EB11: sub edx, ebx */ 9567 _flag_k = FK_CMP; 9568 if (4u) _cf = (((edx) >> 3) & 1u); /* 0x3100EB13: sar edx, 4 */ 9569 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9570 edx = (uint32_t)((int32_t)edx >> 4u); 9571 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 9572 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9573 edi = edi - edx; /* 0x3100EB16: sub edi, edx */ 9574 _flag_k = FK_CMP; 9575 edx = edi; /* 0x3100EB18: mov edx, edi */ 9576 edi = MEM32(ebp + 0x10); /* 0x3100EB1A: mov edi, dword ptr [ebp + 0x10] */ 9577 if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_3100EB3E; /* 0x3100EB1D: je 0x3100eb3e */ 9578 L_3100EB1F: 9579 MEM32(ebp + 0x10) = edx; /* 0x3100EB1F: mov dword ptr [ebp + 0x10], edx */ 9580 L_3100EB22: 9581 PUSH32(esp, edi); /* 0x3100EB22: push edi */ 9582 PUSH32(esp, esi); /* 0x3100EB23: push esi */ 9583 RECOMP_ICALL(0x3100EC70u); /* 0x3100EB24: call 0x3100ec70 */ /* not lifted */ 9584 RECOMP_FLAGS_IN(); 9585 eax = MEM32(ebp + 0x10); /* 0x3100EB29: mov eax, dword ptr [ebp + 0x10] */ 9586 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9587 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9588 esp = esp + 8; /* 0x3100EB2C: add esp, 8 */ 9589 _flag_k = FK_ADD; 9590 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 9591 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9592 esi = esi + 0x10u; /* 0x3100EB2F: add esi, 0x10 */ 9593 _flag_k = FK_ADD; 9594 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9595 eax = eax - 1; /* 0x3100EB32: dec eax */ 9596 _flag_k = FK_DEC; 9597 MEM32(ebp + 0x10) = eax; /* 0x3100EB33: mov dword ptr [ebp + 0x10], eax */ 9598 RECOMP_BACKEDGE(); 9599 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3100EB22; /* 0x3100EB36: jne 0x3100eb22 */ 9600 L_3100EB38: 9601 ecx = MEM32(ebp + (-0x4)); /* 0x3100EB38: mov ecx, dword ptr [ebp - 4] */ 9602 eax = MEM32(ebp + 0x8); /* 0x3100EB3B: mov eax, dword ptr [ebp + 8] */ 9603 L_3100EB3E: 9604 esi = MEM32(ecx + 0x8); /* 0x3100EB3E: mov esi, dword ptr [ecx + 8] */ 9605 /* cmp ebx, esi */ /* 0x3100EB41: cmp ebx, esi */ 9606 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 9607 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9608 _flag_k = FK_CMP; 9609 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100EC11; /* 0x3100EB43: je 0x3100ec11 */ 9610 L_3100EB49: 9611 eax = MEM32(0x310480F8); /* 0x3100EB49: mov eax, dword ptr [0x310480f8] */ 9612 ecx = MEM32(eax); /* 0x3100EB4E: mov ecx, dword ptr [eax] */ 9613 PUSH32(esp, ecx); /* 0x3100EB50: push ecx */ 9614 PUSH32(esp, 0); /* 0x3100EB51: push 0 */ 9615 PUSH32(esp, edi); /* 0x3100EB53: push edi */ 9616 ecx = ebx; /* 0x3100EB54: mov ecx, ebx */ 9617 RECOMP_ICALL(MEM32(0x310480FC)); /* 0x3100EB56: call dword ptr [0x310480fc] */ 9618 RECOMP_FLAGS_IN(); 9619 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 9620 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9621 ebx = ebx + 0x10u; /* 0x3100EB5C: add ebx, 0x10 */ 9622 _flag_k = FK_ADD; 9623 /* cmp ebx, esi */ /* 0x3100EB5F: cmp ebx, esi */ 9624 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 9625 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9626 _flag_k = FK_CMP; 9627 RECOMP_BACKEDGE(); 9628 if (CMP_NE(_flag_a, _flag_b)) goto L_3100EB49; /* 0x3100EB61: jne 0x3100eb49 */ 9629 L_3100EB63: 9630 ecx = MEM32(ebp + (-0x4)); /* 0x3100EB63: mov ecx, dword ptr [ebp - 4] */ 9631 edx = MEM32(ecx + 0x8); /* 0x3100EB66: mov edx, dword ptr [ecx + 8] */ 9632 eax = MEM32(ebp + 0x8); /* 0x3100EB69: mov eax, dword ptr [ebp + 8] */ 9633 edi = POP32_VAL(esp); /* 0x3100EB6C: pop edi */ 9634 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 9635 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9636 edx = edx + eax; /* 0x3100EB6D: add edx, eax */ 9637 _flag_k = FK_ADD; 9638 esi = POP32_VAL(esp); /* 0x3100EB6F: pop esi */ 9639 MEM32(ecx + 0x8) = edx; /* 0x3100EB70: mov dword ptr [ecx + 8], edx */ 9640 ebx = POP32_VAL(esp); /* 0x3100EB73: pop ebx */ 9641 esp = ebp; /* 0x3100EB74: mov esp, ebp */ 9642 ebp = POP32_VAL(esp); /* 0x3100EB76: pop ebp */ 9643 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3100EB77: ret 0xc */ 9644 L_3100EB7A: 9645 /* test edi, edi */ /* 0x3100EB7A: test edi, edi */ 9646 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 9647 _cf = 0; 9648 _flag_k = FK_TEST; 9649 if (TEST_Z(_flag_a, _flag_b)) goto L_3100EC14; /* 0x3100EB7C: jbe 0x3100ec14 */ 9650 L_3100EB82: 9651 if (4u) _cf = (((edi) >> 28) & 1u); /* 0x3100EB82: shl edi, 4 */ 9652 if (4u) { _flag_a = recomp_flags_pack((edi << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9653 edi = edi << 4u; /* 0x3100EB82: shl edi, 4 */ 9654 eax = edi; /* 0x3100EB85: mov eax, edi */ 9655 edi = esi; /* 0x3100EB87: mov edi, esi */ 9656 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9657 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9658 edi = edi - eax; /* 0x3100EB89: sub edi, eax */ 9659 _flag_k = FK_CMP; 9660 /* cmp edi, esi */ /* 0x3100EB8B: cmp edi, esi */ 9661 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 9662 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9663 _flag_k = FK_CMP; 9664 MEM32(ebp + 0xC) = esi; /* 0x3100EB8D: mov dword ptr [ebp + 0xc], esi */ 9665 MEM32(ebp + 0x8) = eax; /* 0x3100EB90: mov dword ptr [ebp + 8], eax */ 9666 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100EBB8; /* 0x3100EB93: je 0x3100ebb8 */ 9667 L_3100EB95: 9668 edx = MEM32(ebp + 0xC); /* 0x3100EB95: mov edx, dword ptr [ebp + 0xc] */ 9669 PUSH32(esp, edi); /* 0x3100EB98: push edi */ 9670 PUSH32(esp, edx); /* 0x3100EB99: push edx */ 9671 RECOMP_ICALL(0x3100EC70u); /* 0x3100EB9A: call 0x3100ec70 */ /* not lifted */ 9672 RECOMP_FLAGS_IN(); 9673 edx = MEM32(ebp + 0xC); /* 0x3100EB9F: mov edx, dword ptr [ebp + 0xc] */ 9674 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 9675 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9676 edx = edx + 0x10u; /* 0x3100EBA2: add edx, 0x10 */ 9677 _flag_k = FK_ADD; 9678 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 9679 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9680 edi = edi + 0x10u; /* 0x3100EBA5: add edi, 0x10 */ 9681 _flag_k = FK_ADD; 9682 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9683 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9684 esp = esp + 8; /* 0x3100EBA8: add esp, 8 */ 9685 _flag_k = FK_ADD; 9686 /* cmp edi, esi */ /* 0x3100EBAB: cmp edi, esi */ 9687 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 9688 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9689 _flag_k = FK_CMP; 9690 MEM32(ebp + 0xC) = edx; /* 0x3100EBAD: mov dword ptr [ebp + 0xc], edx */ 9691 RECOMP_BACKEDGE(); 9692 if (CMP_NE(_flag_a, _flag_b)) goto L_3100EB95; /* 0x3100EBB0: jne 0x3100eb95 */ 9693 L_3100EBB2: 9694 eax = MEM32(ebp + 0x8); /* 0x3100EBB2: mov eax, dword ptr [ebp + 8] */ 9695 ecx = MEM32(ebp + (-0x4)); /* 0x3100EBB5: mov ecx, dword ptr [ebp - 4] */ 9696 L_3100EBB8: 9697 edi = MEM32(ecx + 0x8); /* 0x3100EBB8: mov edi, dword ptr [ecx + 8] */ 9698 esi = edi; /* 0x3100EBBB: mov esi, edi */ 9699 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 9700 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9701 esi = esi - eax; /* 0x3100EBBD: sub esi, eax */ 9702 _flag_k = FK_CMP; 9703 /* cmp ebx, esi */ /* 0x3100EBBF: cmp ebx, esi */ 9704 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 9705 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9706 _flag_k = FK_CMP; 9707 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100EBE6; /* 0x3100EBC1: je 0x3100ebe6 */ 9708 L_3100EBC3: 9709 eax = MEM32(0x310480F8); /* 0x3100EBC3: mov eax, dword ptr [0x310480f8] */ 9710 ecx = MEM32(eax); /* 0x3100EBC8: mov ecx, dword ptr [eax] */ 9711 PUSH32(esp, ecx); /* 0x3100EBCA: push ecx */ 9712 PUSH32(esp, 0); /* 0x3100EBCB: push 0 */ 9713 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 9714 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9715 esi = esi - 0x10u; /* 0x3100EBCD: sub esi, 0x10 */ 9716 _flag_k = FK_CMP; 9717 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 9718 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9719 edi = edi - 0x10u; /* 0x3100EBD0: sub edi, 0x10 */ 9720 _flag_k = FK_CMP; 9721 PUSH32(esp, esi); /* 0x3100EBD3: push esi */ 9722 ecx = edi; /* 0x3100EBD4: mov ecx, edi */ 9723 RECOMP_ICALL(MEM32(0x310480FC)); /* 0x3100EBD6: call dword ptr [0x310480fc] */ 9724 RECOMP_FLAGS_IN(); 9725 /* cmp esi, ebx */ /* 0x3100EBDC: cmp esi, ebx */ 9726 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 9727 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9728 _flag_k = FK_CMP; 9729 RECOMP_BACKEDGE(); 9730 if (CMP_NE(_flag_a, _flag_b)) goto L_3100EBC3; /* 0x3100EBDE: jne 0x3100ebc3 */ 9731 L_3100EBE0: 9732 eax = MEM32(ebp + 0x8); /* 0x3100EBE0: mov eax, dword ptr [ebp + 8] */ 9733 ecx = MEM32(ebp + (-0x4)); /* 0x3100EBE3: mov ecx, dword ptr [ebp - 4] */ 9734 L_3100EBE6: 9735 esi = eax + ebx; /* 0x3100EBE6: lea esi, [eax + ebx] */ 9736 /* cmp ebx, esi */ /* 0x3100EBE9: cmp ebx, esi */ 9737 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 9738 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9739 _flag_k = FK_CMP; 9740 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100EC11; /* 0x3100EBEB: je 0x3100ec11 */ 9741 L_3100EBED: 9742 edi = MEM32(ebp + 0x10); /* 0x3100EBED: mov edi, dword ptr [ebp + 0x10] */ 9743 L_3100EBF0: 9744 edx = MEM32(0x310480F8); /* 0x3100EBF0: mov edx, dword ptr [0x310480f8] */ 9745 eax = MEM32(edx); /* 0x3100EBF6: mov eax, dword ptr [edx] */ 9746 PUSH32(esp, eax); /* 0x3100EBF8: push eax */ 9747 PUSH32(esp, 0); /* 0x3100EBF9: push 0 */ 9748 PUSH32(esp, edi); /* 0x3100EBFB: push edi */ 9749 ecx = ebx; /* 0x3100EBFC: mov ecx, ebx */ 9750 RECOMP_ICALL(MEM32(0x310480FC)); /* 0x3100EBFE: call dword ptr [0x310480fc] */ 9751 RECOMP_FLAGS_IN(); 9752 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 9753 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9754 ebx = ebx + 0x10u; /* 0x3100EC04: add ebx, 0x10 */ 9755 _flag_k = FK_ADD; 9756 /* cmp ebx, esi */ /* 0x3100EC07: cmp ebx, esi */ 9757 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 9758 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9759 _flag_k = FK_CMP; 9760 RECOMP_BACKEDGE(); 9761 if (CMP_NE(_flag_a, _flag_b)) goto L_3100EBF0; /* 0x3100EC09: jne 0x3100ebf0 */ 9762 L_3100EC0B: 9763 eax = MEM32(ebp + 0x8); /* 0x3100EC0B: mov eax, dword ptr [ebp + 8] */ 9764 ecx = MEM32(ebp + (-0x4)); /* 0x3100EC0E: mov ecx, dword ptr [ebp - 4] */ 9765 L_3100EC11: 9766 _flag_a = (uint32_t)(MEM32(ecx + 0x8)); _flag_b = (uint32_t)(eax); 9767 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9768 MEM32(ecx + 0x8) = MEM32(ecx + 0x8) + eax; /* 0x3100EC11: add dword ptr [ecx + 8], eax */ 9769 _flag_k = FK_ADD; 9770 L_3100EC14: 9771 edi = POP32_VAL(esp); /* 0x3100EC14: pop edi */ 9772 esi = POP32_VAL(esp); /* 0x3100EC15: pop esi */ 9773 ebx = POP32_VAL(esp); /* 0x3100EC16: pop ebx */ 9774 esp = ebp; /* 0x3100EC17: mov esp, ebp */ 9775 ebp = POP32_VAL(esp); /* 0x3100EC19: pop ebp */ 9776 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3100EC1A: ret 0xc */ 9777 RECOMP_REGS_OUT(); 9778 } 9779 9780 void sub_3100EC20(void) { 9781 int _fpu_cmp = 0; 9782 uint32_t _cf = 0; 9783 int _df = 1; 9784 uint32_t _flag_k = FK_NONE; 9785 uint32_t _flag_a = 0, _flag_b = 0; 9786 uint32_t _itail_tgt = 0; 9787 RECOMP_REGS_LOCALS 9788 RECOMP_ENTER(0x3100EC20u); 9789 9790 L_3100EC20: 9791 eax = MEM32(ecx); /* 0x3100EC20: mov eax, dword ptr [ecx] */ 9792 edx = MEM32(eax + 0x8); /* 0x3100EC22: mov edx, dword ptr [eax + 8] */ 9793 PUSH32(esp, ebx); /* 0x3100EC25: push ebx */ 9794 SET_LO8(ebx, MEM8(edx + 0x3D)); /* 0x3100EC26: mov bl, byte ptr [edx + 0x3d] */ 9795 /* test LO8(ebx), LO8(ebx) */ /* 0x3100EC29: test bl, bl */ 9796 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9797 _cf = 0; 9798 _flag_k = FK_NARROW(FK_TEST, 24); 9799 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100EC45; /* 0x3100EC2B: jne 0x3100ec45 */ 9800 L_3100EC2D: 9801 eax = MEM32(edx); /* 0x3100EC2D: mov eax, dword ptr [edx] */ 9802 SET_LO8(ebx, MEM8(eax + 0x3D)); /* 0x3100EC2F: mov bl, byte ptr [eax + 0x3d] */ 9803 /* test LO8(ebx), LO8(ebx) */ /* 0x3100EC32: test bl, bl */ 9804 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9805 _cf = 0; 9806 _flag_k = FK_NARROW(FK_TEST, 24); 9807 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100EC41; /* 0x3100EC34: jne 0x3100ec41 */ 9808 L_3100EC36: 9809 edx = eax; /* 0x3100EC36: mov edx, eax */ 9810 eax = MEM32(edx); /* 0x3100EC38: mov eax, dword ptr [edx] */ 9811 SET_LO8(ebx, MEM8(eax + 0x3D)); /* 0x3100EC3A: mov bl, byte ptr [eax + 0x3d] */ 9812 /* test LO8(ebx), LO8(ebx) */ /* 0x3100EC3D: test bl, bl */ 9813 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9814 _cf = 0; 9815 _flag_k = FK_NARROW(FK_TEST, 24); 9816 RECOMP_BACKEDGE(); 9817 if (TEST_Z(_flag_a, _flag_b)) goto L_3100EC36; /* 0x3100EC3F: je 0x3100ec36 */ 9818 L_3100EC41: 9819 MEM32(ecx) = edx; /* 0x3100EC41: mov dword ptr [ecx], edx */ 9820 ebx = POP32_VAL(esp); /* 0x3100EC43: pop ebx */ 9821 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100EC44: ret */ 9822 L_3100EC45: 9823 eax = MEM32(eax + 0x4); /* 0x3100EC45: mov eax, dword ptr [eax + 4] */ 9824 edx = MEM32(ecx); /* 0x3100EC48: mov edx, dword ptr [ecx] */ 9825 /* cmp edx, MEM32(eax + 0x8) */ /* 0x3100EC4A: cmp edx, dword ptr [eax + 8] */ 9826 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 9827 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9828 _flag_k = FK_CMP; 9829 if (CMP_NE(_flag_a, _flag_b)) goto L_3100EC5B; /* 0x3100EC4D: jne 0x3100ec5b */ 9830 L_3100EC4F: 9831 MEM32(ecx) = eax; /* 0x3100EC4F: mov dword ptr [ecx], eax */ 9832 eax = MEM32(eax + 0x4); /* 0x3100EC51: mov eax, dword ptr [eax + 4] */ 9833 edx = MEM32(ecx); /* 0x3100EC54: mov edx, dword ptr [ecx] */ 9834 /* cmp edx, MEM32(eax + 0x8) */ /* 0x3100EC56: cmp edx, dword ptr [eax + 8] */ 9835 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 9836 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9837 _flag_k = FK_CMP; 9838 RECOMP_BACKEDGE(); 9839 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100EC4F; /* 0x3100EC59: je 0x3100ec4f */ 9840 L_3100EC5B: 9841 edx = MEM32(ecx); /* 0x3100EC5B: mov edx, dword ptr [ecx] */ 9842 /* cmp MEM32(edx + 0x8), eax */ /* 0x3100EC5D: cmp dword ptr [edx + 8], eax */ 9843 _flag_a = (uint32_t)(MEM32(edx + 0x8)); _flag_b = (uint32_t)(eax); 9844 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9845 _flag_k = FK_CMP; 9846 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100EC64; /* 0x3100EC60: je 0x3100ec64 */ 9847 L_3100EC62: 9848 MEM32(ecx) = eax; /* 0x3100EC62: mov dword ptr [ecx], eax */ 9849 L_3100EC64: 9850 ebx = POP32_VAL(esp); /* 0x3100EC64: pop ebx */ 9851 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100EC65: ret */ 9852 RECOMP_REGS_OUT(); 9853 } 9854 9855 void sub_3100EC70(void) { 9856 int _fpu_cmp = 0; 9857 uint32_t _cf = 0; 9858 int _df = 1; 9859 uint32_t _flag_k = FK_NONE; 9860 uint32_t _flag_a = 0, _flag_b = 0; 9861 uint32_t _itail_tgt = 0; 9862 RECOMP_REGS_LOCALS 9863 RECOMP_ENTER(0x3100EC70u); 9864 9865 L_3100EC70: 9866 PUSH32(esp, ebp); /* 0x3100EC70: push ebp */ 9867 ebp = esp; /* 0x3100EC71: mov ebp, esp */ 9868 PUSH32(esp, 0xFFFFFFFFu); /* 0x3100EC73: push -1 */ 9869 PUSH32(esp, 0x31047AE1u); /* 0x3100EC75: push 0x31047ae1 */ 9870 eax = MEM32(FS_BASE + (0)); /* 0x3100EC7A: mov eax, dword ptr fs:[0] */ 9871 PUSH32(esp, eax); /* 0x3100EC80: push eax */ 9872 MEM32(FS_BASE + (0)) = esp; /* 0x3100EC81: mov dword ptr fs:[0], esp */ 9873 PUSH32(esp, ecx); /* 0x3100EC88: push ecx */ 9874 PUSH32(esp, ebx); /* 0x3100EC89: push ebx */ 9875 ebx = MEM32(ebp + 0x8); /* 0x3100EC8A: mov ebx, dword ptr [ebp + 8] */ 9876 PUSH32(esp, esi); /* 0x3100EC8D: push esi */ 9877 PUSH32(esp, edi); /* 0x3100EC8E: push edi */ 9878 MEM32(ebp + (-0x10)) = ebx; /* 0x3100EC8F: mov dword ptr [ebp - 0x10], ebx */ 9879 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9880 edx = 0; /* 0x3100EC92: xor edx, edx */ 9881 _cf = 0; 9882 _flag_k = FK_TEST; 9883 /* cmp ebx, edx */ /* 0x3100EC94: cmp ebx, edx */ 9884 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 9885 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9886 _flag_k = FK_CMP; 9887 MEM32(ebp + (-0x4)) = edx; /* 0x3100EC96: mov dword ptr [ebp - 4], edx */ 9888 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100EDD7; /* 0x3100EC99: je 0x3100edd7 */ 9889 L_3100EC9F: 9890 esi = MEM32(ebp + 0xC); /* 0x3100EC9F: mov esi, dword ptr [ebp + 0xc] */ 9891 SET_LO8(eax, MEM8(esi)); /* 0x3100ECA2: mov al, byte ptr [esi] */ 9892 MEM8(ebx) = (uint8_t)(LO8(eax)); /* 0x3100ECA4: mov byte ptr [ebx], al */ 9893 MEM32(ebx + 0x4) = edx; /* 0x3100ECA6: mov dword ptr [ebx + 4], edx */ 9894 MEM32(ebx + 0x8) = edx; /* 0x3100ECA9: mov dword ptr [ebx + 8], edx */ 9895 MEM32(ebx + 0xC) = edx; /* 0x3100ECAC: mov dword ptr [ebx + 0xc], edx */ 9896 ecx = MEM32(0x310480F8); /* 0x3100ECAF: mov ecx, dword ptr [0x310480f8] */ 9897 eax = MEM32(ecx); /* 0x3100ECB5: mov eax, dword ptr [ecx] */ 9898 ecx = MEM32(esi + 0x8); /* 0x3100ECB7: mov ecx, dword ptr [esi + 8] */ 9899 edi = ecx; /* 0x3100ECBA: mov edi, ecx */ 9900 /* cmp eax, edi */ /* 0x3100ECBC: cmp eax, edi */ 9901 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 9902 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9903 _flag_k = FK_CMP; 9904 MEM32(ebp + 0xC) = edi; /* 0x3100ECBE: mov dword ptr [ebp + 0xc], edi */ 9905 if (CMP_AE(_flag_a, _flag_b)) goto L_3100ECC8; /* 0x3100ECC1: jae 0x3100ecc8 */ 9906 L_3100ECC3: 9907 MEM32(ebp + 0xC) = eax; /* 0x3100ECC3: mov dword ptr [ebp + 0xc], eax */ 9908 edi = eax; /* 0x3100ECC6: mov edi, eax */ 9909 L_3100ECC8: 9910 /* cmp ebx, esi */ /* 0x3100ECC8: cmp ebx, esi */ 9911 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 9912 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9913 _flag_k = FK_CMP; 9914 if (CMP_NE(_flag_a, _flag_b)) goto L_3100ED43; /* 0x3100ECCA: jne 0x3100ed43 */ 9915 L_3100ECCC: 9916 /* cmp edi, edx */ /* 0x3100ECCC: cmp edi, edx */ 9917 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 9918 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9919 _flag_k = FK_CMP; 9920 esi = eax; /* 0x3100ECCE: mov esi, eax */ 9921 if (CMP_BE(_flag_a, _flag_b)) goto L_3100ECDA; /* 0x3100ECD0: jbe 0x3100ecda */ 9922 L_3100ECD2: 9923 RECOMP_ICALL(MEM32(0x310480B4)); /* 0x3100ECD2: call dword ptr [0x310480b4] */ 9924 RECOMP_FLAGS_IN(); 9925 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9926 edx = 0; /* 0x3100ECD8: xor edx, edx */ 9927 _cf = 0; 9928 _flag_k = FK_TEST; 9929 L_3100ECDA: 9930 eax = MEM32(ebx + 0x8); /* 0x3100ECDA: mov eax, dword ptr [ebx + 8] */ 9931 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 9932 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9933 eax = eax - edi; /* 0x3100ECDD: sub eax, edi */ 9934 _flag_k = FK_CMP; 9935 /* cmp eax, esi */ /* 0x3100ECDF: cmp eax, esi */ 9936 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 9937 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9938 _flag_k = FK_CMP; 9939 if (CMP_AE(_flag_a, _flag_b)) goto L_3100ECE5; /* 0x3100ECE1: jae 0x3100ece5 */ 9940 L_3100ECE3: 9941 esi = eax; /* 0x3100ECE3: mov esi, eax */ 9942 L_3100ECE5: 9943 /* cmp esi, edx */ /* 0x3100ECE5: cmp esi, edx */ 9944 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 9945 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9946 _flag_k = FK_CMP; 9947 if (CMP_BE(_flag_a, _flag_b)) goto L_3100EDD7; /* 0x3100ECE7: jbe 0x3100edd7 */ 9948 L_3100ECED: 9949 ecx = ebx; /* 0x3100ECED: mov ecx, ebx */ 9950 RECOMP_ICALL(MEM32(0x310480E4)); /* 0x3100ECEF: call dword ptr [0x310480e4] */ 9951 RECOMP_FLAGS_IN(); 9952 ecx = MEM32(ebx + 0x8); /* 0x3100ECF5: mov ecx, dword ptr [ebx + 8] */ 9953 edx = MEM32(ebx + 0x4); /* 0x3100ECF8: mov edx, dword ptr [ebx + 4] */ 9954 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 9955 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9956 ecx = ecx - esi; /* 0x3100ECFB: sub ecx, esi */ 9957 _flag_k = FK_CMP; 9958 eax = edx + edi; /* 0x3100ECFD: lea eax, [edx + edi] */ 9959 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 9960 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9961 ecx = ecx - edi; /* 0x3100ED00: sub ecx, edi */ 9962 _flag_k = FK_CMP; 9963 PUSH32(esp, ecx); /* 0x3100ED02: push ecx */ 9964 edx = eax + esi; /* 0x3100ED03: lea edx, [eax + esi] */ 9965 PUSH32(esp, edx); /* 0x3100ED06: push edx */ 9966 PUSH32(esp, eax); /* 0x3100ED07: push eax */ 9967 RECOMP_ICALL(MEM32(0x3104822C)); /* 0x3100ED08: call dword ptr [0x3104822c] */ 9968 RECOMP_FLAGS_IN(); 9969 edi = MEM32(ebx + 0x8); /* 0x3100ED0E: mov edi, dword ptr [ebx + 8] */ 9970 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 9971 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9972 esp = esp + 0xCu; /* 0x3100ED11: add esp, 0xc */ 9973 _flag_k = FK_ADD; 9974 PUSH32(esp, 0); /* 0x3100ED14: push 0 */ 9975 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 9976 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9977 edi = edi - esi; /* 0x3100ED16: sub edi, esi */ 9978 _flag_k = FK_CMP; 9979 PUSH32(esp, edi); /* 0x3100ED18: push edi */ 9980 ecx = ebx; /* 0x3100ED19: mov ecx, ebx */ 9981 RECOMP_ICALL(MEM32(0x31048070)); /* 0x3100ED1B: call dword ptr [0x31048070] */ 9982 RECOMP_FLAGS_IN(); 9983 /* test LO8(eax), LO8(eax) */ /* 0x3100ED21: test al, al */ 9984 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9985 _cf = 0; 9986 _flag_k = FK_NARROW(FK_TEST, 24); 9987 if (TEST_Z(_flag_a, _flag_b)) goto L_3100EDD7; /* 0x3100ED23: je 0x3100edd7 */ 9988 L_3100ED29: 9989 PUSH32(esp, edi); /* 0x3100ED29: push edi */ 9990 ecx = ebx; /* 0x3100ED2A: mov ecx, ebx */ 9991 RECOMP_ICALL(MEM32(0x310480E8)); /* 0x3100ED2C: call dword ptr [0x310480e8] */ 9992 RECOMP_FLAGS_IN(); 9993 edi = POP32_VAL(esp); /* 0x3100ED32: pop edi */ 9994 esi = POP32_VAL(esp); /* 0x3100ED33: pop esi */ 9995 ebx = POP32_VAL(esp); /* 0x3100ED34: pop ebx */ 9996 ecx = MEM32(ebp + (-0xC)); /* 0x3100ED35: mov ecx, dword ptr [ebp - 0xc] */ 9997 MEM32(FS_BASE + (0)) = ecx; /* 0x3100ED38: mov dword ptr fs:[0], ecx */ 9998 esp = ebp; /* 0x3100ED3F: mov esp, ebp */ 9999 ebp = POP32_VAL(esp); /* 0x3100ED41: pop ebp */ 10000 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100ED42: ret */ 10001 L_3100ED43: 10002 /* cmp edi, edx */ /* 0x3100ED43: cmp edi, edx */ 10003 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 10004 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10005 _flag_k = FK_CMP; 10006 if (CMP_BE(_flag_a, _flag_b)) goto L_3100ED9B; /* 0x3100ED45: jbe 0x3100ed9b */ 10007 L_3100ED47: 10008 /* cmp edi, ecx */ /* 0x3100ED47: cmp edi, ecx */ 10009 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 10010 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10011 _flag_k = FK_CMP; 10012 if (CMP_NE(_flag_a, _flag_b)) goto L_3100ED9B; /* 0x3100ED49: jne 0x3100ed9b */ 10013 L_3100ED4B: 10014 eax = MEM32(esi + 0x4); /* 0x3100ED4B: mov eax, dword ptr [esi + 4] */ 10015 /* cmp eax, edx */ /* 0x3100ED4E: cmp eax, edx */ 10016 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 10017 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10018 _flag_k = FK_CMP; 10019 if (CMP_NE(_flag_a, _flag_b)) goto L_3100ED57; /* 0x3100ED50: jne 0x3100ed57 */ 10020 L_3100ED52: 10021 eax = MEM32(0x310480EC); /* 0x3100ED52: mov eax, dword ptr [0x310480ec] */ 10022 L_3100ED57: 10023 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x3100ED57: cmp byte ptr [eax - 1], 0xfe */ 10024 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 10025 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10026 _flag_k = FK_NARROW(FK_CMP, 24); 10027 if (CMP_AE(_flag_a, _flag_b)) goto L_3100ED9B; /* 0x3100ED5B: jae 0x3100ed9b */ 10028 L_3100ED5D: 10029 PUSH32(esp, 1); /* 0x3100ED5D: push 1 */ 10030 ecx = ebx; /* 0x3100ED5F: mov ecx, ebx */ 10031 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x3100ED61: call dword ptr [0x310480d4] */ 10032 RECOMP_FLAGS_IN(); 10033 eax = MEM32(esi + 0x4); /* 0x3100ED67: mov eax, dword ptr [esi + 4] */ 10034 /* test eax, eax */ /* 0x3100ED6A: test eax, eax */ 10035 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10036 _cf = 0; 10037 _flag_k = FK_TEST; 10038 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100ED73; /* 0x3100ED6C: jne 0x3100ed73 */ 10039 L_3100ED6E: 10040 eax = MEM32(0x310480EC); /* 0x3100ED6E: mov eax, dword ptr [0x310480ec] */ 10041 L_3100ED73: 10042 MEM32(ebx + 0x4) = eax; /* 0x3100ED73: mov dword ptr [ebx + 4], eax */ 10043 ecx = MEM32(esi + 0x8); /* 0x3100ED76: mov ecx, dword ptr [esi + 8] */ 10044 MEM32(ebx + 0x8) = ecx; /* 0x3100ED79: mov dword ptr [ebx + 8], ecx */ 10045 edx = MEM32(esi + 0xC); /* 0x3100ED7C: mov edx, dword ptr [esi + 0xc] */ 10046 MEM32(ebx + 0xC) = edx; /* 0x3100ED7F: mov dword ptr [ebx + 0xc], edx */ 10047 SET_LO8(ecx, MEM8(eax + (-0x1))); /* 0x3100ED82: mov cl, byte ptr [eax - 1] */ 10048 edi = POP32_VAL(esp); /* 0x3100ED85: pop edi */ 10049 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 10050 SET_LO8(ecx, LO8(ecx) + 1); /* 0x3100ED86: inc cl */ 10051 _flag_k = FK_NARROW(FK_INC, 24); 10052 esi = POP32_VAL(esp); /* 0x3100ED88: pop esi */ 10053 MEM8(eax + (-0x1)) = (uint8_t)(LO8(ecx)); /* 0x3100ED89: mov byte ptr [eax - 1], cl */ 10054 ebx = POP32_VAL(esp); /* 0x3100ED8C: pop ebx */ 10055 ecx = MEM32(ebp + (-0xC)); /* 0x3100ED8D: mov ecx, dword ptr [ebp - 0xc] */ 10056 MEM32(FS_BASE + (0)) = ecx; /* 0x3100ED90: mov dword ptr fs:[0], ecx */ 10057 esp = ebp; /* 0x3100ED97: mov esp, ebp */ 10058 ebp = POP32_VAL(esp); /* 0x3100ED99: pop ebp */ 10059 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100ED9A: ret */ 10060 L_3100ED9B: 10061 PUSH32(esp, 1); /* 0x3100ED9B: push 1 */ 10062 PUSH32(esp, edi); /* 0x3100ED9D: push edi */ 10063 ecx = ebx; /* 0x3100ED9E: mov ecx, ebx */ 10064 RECOMP_ICALL(MEM32(0x31048070)); /* 0x3100EDA0: call dword ptr [0x31048070] */ 10065 RECOMP_FLAGS_IN(); 10066 /* test LO8(eax), LO8(eax) */ /* 0x3100EDA6: test al, al */ 10067 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10068 _cf = 0; 10069 _flag_k = FK_NARROW(FK_TEST, 24); 10070 if (TEST_Z(_flag_a, _flag_b)) goto L_3100EDD7; /* 0x3100EDA8: je 0x3100edd7 */ 10071 L_3100EDAA: 10072 esi = MEM32(esi + 0x4); /* 0x3100EDAA: mov esi, dword ptr [esi + 4] */ 10073 /* test esi, esi */ /* 0x3100EDAD: test esi, esi */ 10074 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 10075 _cf = 0; 10076 _flag_k = FK_TEST; 10077 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100EDB7; /* 0x3100EDAF: jne 0x3100edb7 */ 10078 L_3100EDB1: 10079 esi = MEM32(0x310480EC); /* 0x3100EDB1: mov esi, dword ptr [0x310480ec] */ 10080 L_3100EDB7: 10081 ecx = edi; /* 0x3100EDB7: mov ecx, edi */ 10082 edi = MEM32(ebx + 0x4); /* 0x3100EDB9: mov edi, dword ptr [ebx + 4] */ 10083 eax = ecx; /* 0x3100EDBC: mov eax, ecx */ 10084 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3100EDBE: shr ecx, 2 */ 10085 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10086 ecx = ecx >> 2u; /* 0x3100EDBE: shr ecx, 2 */ 10087 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3100EDC1: 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; } 10088 ecx = eax; /* 0x3100EDC3: mov ecx, eax */ 10089 eax = MEM32(ebp + 0xC); /* 0x3100EDC5: mov eax, dword ptr [ebp + 0xc] */ 10090 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 10091 ecx = ecx & 3; /* 0x3100EDC8: and ecx, 3 */ 10092 _cf = 0; 10093 _flag_k = FK_TEST; 10094 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3100EDCB: 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; } 10095 ecx = MEM32(ebx + 0x4); /* 0x3100EDCD: mov ecx, dword ptr [ebx + 4] */ 10096 MEM32(ebx + 0x8) = eax; /* 0x3100EDD0: mov dword ptr [ebx + 8], eax */ 10097 MEM8(ecx + eax) = (uint8_t)(0); /* 0x3100EDD3: mov byte ptr [ecx + eax], 0 */ 10098 L_3100EDD7: 10099 ecx = MEM32(ebp + (-0xC)); /* 0x3100EDD7: mov ecx, dword ptr [ebp - 0xc] */ 10100 edi = POP32_VAL(esp); /* 0x3100EDDA: pop edi */ 10101 esi = POP32_VAL(esp); /* 0x3100EDDB: pop esi */ 10102 ebx = POP32_VAL(esp); /* 0x3100EDDC: pop ebx */ 10103 MEM32(FS_BASE + (0)) = ecx; /* 0x3100EDDD: mov dword ptr fs:[0], ecx */ 10104 esp = ebp; /* 0x3100EDE4: mov esp, ebp */ 10105 ebp = POP32_VAL(esp); /* 0x3100EDE6: pop ebp */ 10106 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100EDE7: ret */ 10107 RECOMP_REGS_OUT(); 10108 } 10109 10110 void sub_3100EDF0(void) { 10111 int _fpu_cmp = 0; 10112 uint32_t _cf = 0; 10113 int _df = 1; 10114 uint32_t _flag_k = FK_NONE; 10115 uint32_t _flag_a = 0, _flag_b = 0; 10116 uint32_t _itail_tgt = 0; 10117 RECOMP_REGS_LOCALS 10118 RECOMP_ENTER(0x3100EDF0u); 10119 10120 L_3100EDF0: 10121 PUSH32(esp, ebp); /* 0x3100EDF0: push ebp */ 10122 ebp = esp; /* 0x3100EDF1: mov ebp, esp */ 10123 PUSH32(esp, esi); /* 0x3100EDF3: push esi */ 10124 esi = ecx; /* 0x3100EDF4: mov esi, ecx */ 10125 eax = MEM32(esi + 0x4); /* 0x3100EDF6: mov eax, dword ptr [esi + 4] */ 10126 /* test eax, eax */ /* 0x3100EDF9: test eax, eax */ 10127 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10128 _cf = 0; 10129 _flag_k = FK_TEST; 10130 if (TEST_Z(_flag_a, _flag_b)) goto L_3100EE19; /* 0x3100EDFB: je 0x3100ee19 */ 10131 L_3100EDFD: 10132 ecx = eax + (-0x1); /* 0x3100EDFD: lea ecx, [eax - 1] */ 10133 SET_LO8(eax, MEM8(ecx)); /* 0x3100EE00: mov al, byte ptr [ecx] */ 10134 /* test LO8(eax), LO8(eax) */ /* 0x3100EE02: test al, al */ 10135 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10136 _cf = 0; 10137 _flag_k = FK_NARROW(FK_TEST, 24); 10138 if (TEST_Z(_flag_a, _flag_b)) goto L_3100EE10; /* 0x3100EE04: je 0x3100ee10 */ 10139 L_3100EE06: 10140 /* cmp LO8(eax), 0xFFu */ /* 0x3100EE06: cmp al, 0xff */ 10141 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 10142 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10143 _flag_k = FK_NARROW(FK_CMP, 24); 10144 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100EE10; /* 0x3100EE08: je 0x3100ee10 */ 10145 L_3100EE0A: 10146 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 10147 SET_LO8(eax, LO8(eax) - 1); /* 0x3100EE0A: dec al */ 10148 _flag_k = FK_NARROW(FK_DEC, 24); 10149 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3100EE0C: mov byte ptr [ecx], al */ 10150 goto L_3100EE19; /* 0x3100EE0E: jmp 0x3100ee19 */ 10151 L_3100EE10: 10152 PUSH32(esp, ecx); /* 0x3100EE10: push ecx */ 10153 RECOMP_ICALL(0x31046858u); /* 0x3100EE11: call 0x31046858 */ /* not lifted */ 10154 RECOMP_FLAGS_IN(); 10155 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10156 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10157 esp = esp + 4; /* 0x3100EE16: add esp, 4 */ 10158 _flag_k = FK_ADD; 10159 L_3100EE19: 10160 /* test MEM8(ebp + 0x8), 1 */ /* 0x3100EE19: test byte ptr [ebp + 8], 1 */ 10161 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 10162 _cf = 0; 10163 _flag_k = FK_NARROW(FK_TEST, 24); 10164 MEM32(esi + 0x4) = 0; /* 0x3100EE1D: mov dword ptr [esi + 4], 0 */ 10165 MEM32(esi + 0x8) = 0; /* 0x3100EE24: mov dword ptr [esi + 8], 0 */ 10166 MEM32(esi + 0xC) = 0; /* 0x3100EE2B: mov dword ptr [esi + 0xc], 0 */ 10167 if (TEST_Z(_flag_a, _flag_b)) goto L_3100EE3D; /* 0x3100EE32: je 0x3100ee3d */ 10168 L_3100EE34: 10169 PUSH32(esp, esi); /* 0x3100EE34: push esi */ 10170 RECOMP_ICALL(0x31046858u); /* 0x3100EE35: call 0x31046858 */ /* not lifted */ 10171 RECOMP_FLAGS_IN(); 10172 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10173 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10174 esp = esp + 4; /* 0x3100EE3A: add esp, 4 */ 10175 _flag_k = FK_ADD; 10176 L_3100EE3D: 10177 eax = esi; /* 0x3100EE3D: mov eax, esi */ 10178 esi = POP32_VAL(esp); /* 0x3100EE3F: pop esi */ 10179 ebp = POP32_VAL(esp); /* 0x3100EE40: pop ebp */ 10180 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3100EE41: ret 4 */ 10181 RECOMP_REGS_OUT(); 10182 } 10183 10184 void sub_3100EE50(void) { 10185 int _fpu_cmp = 0; 10186 uint32_t _cf = 0; 10187 int _df = 1; 10188 uint32_t _flag_k = FK_NONE; 10189 uint32_t _flag_a = 0, _flag_b = 0; 10190 uint32_t _itail_tgt = 0; 10191 RECOMP_REGS_LOCALS 10192 RECOMP_ENTER(0x3100EE50u); 10193 10194 L_3100EE50: 10195 PUSH32(esp, ebp); /* 0x3100EE50: push ebp */ 10196 ebp = esp; /* 0x3100EE51: mov ebp, esp */ 10197 PUSH32(esp, esi); /* 0x3100EE53: push esi */ 10198 esi = ecx; /* 0x3100EE54: mov esi, ecx */ 10199 RECOMP_ICALL(0x3100EE80u); /* 0x3100EE56: call 0x3100ee80 */ /* not lifted */ 10200 RECOMP_FLAGS_IN(); 10201 /* test MEM8(ebp + 0x8), 1 */ /* 0x3100EE5B: test byte ptr [ebp + 8], 1 */ 10202 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 10203 _cf = 0; 10204 _flag_k = FK_NARROW(FK_TEST, 24); 10205 if (TEST_Z(_flag_a, _flag_b)) goto L_3100EE6A; /* 0x3100EE5F: je 0x3100ee6a */ 10206 L_3100EE61: 10207 PUSH32(esp, esi); /* 0x3100EE61: push esi */ 10208 RECOMP_ICALL(0x31046858u); /* 0x3100EE62: call 0x31046858 */ /* not lifted */ 10209 RECOMP_FLAGS_IN(); 10210 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10211 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10212 esp = esp + 4; /* 0x3100EE67: add esp, 4 */ 10213 _flag_k = FK_ADD; 10214 L_3100EE6A: 10215 eax = esi; /* 0x3100EE6A: mov eax, esi */ 10216 esi = POP32_VAL(esp); /* 0x3100EE6C: pop esi */ 10217 ebp = POP32_VAL(esp); /* 0x3100EE6D: pop ebp */ 10218 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3100EE6E: ret 4 */ 10219 RECOMP_REGS_OUT(); 10220 } 10221 10222 void sub_3100EE80(void) { 10223 int _fpu_cmp = 0; 10224 uint32_t _cf = 0; 10225 int _df = 1; 10226 uint32_t _flag_k = FK_NONE; 10227 uint32_t _flag_a = 0, _flag_b = 0; 10228 uint32_t _itail_tgt = 0; 10229 RECOMP_REGS_LOCALS 10230 RECOMP_ENTER(0x3100EE80u); 10231 10232 L_3100EE80: 10233 eax = MEM32(ecx); /* 0x3100EE80: mov eax, dword ptr [ecx] */ 10234 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 10235 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10236 ecx = ecx + 4; /* 0x3100EE82: add ecx, 4 */ 10237 _flag_k = FK_ADD; 10238 /* cmp eax, ecx */ /* 0x3100EE85: cmp eax, ecx */ 10239 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 10240 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10241 _flag_k = FK_CMP; 10242 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100EE90; /* 0x3100EE87: je 0x3100ee90 */ 10243 L_3100EE89: 10244 PUSH32(esp, eax); /* 0x3100EE89: push eax */ 10245 RECOMP_ICALL(0x31046858u); /* 0x3100EE8A: call 0x31046858 */ /* not lifted */ 10246 RECOMP_FLAGS_IN(); 10247 ecx = POP32_VAL(esp); /* 0x3100EE8F: pop ecx */ 10248 L_3100EE90: 10249 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100EE90: ret */ 10250 RECOMP_REGS_OUT(); 10251 } 10252 10253 void sub_3100EEA0(void) { 10254 int _fpu_cmp = 0; 10255 uint32_t _cf = 0; 10256 int _df = 1; 10257 uint32_t _flag_k = FK_NONE; 10258 uint32_t _flag_a = 0, _flag_b = 0; 10259 uint32_t _itail_tgt = 0; 10260 RECOMP_REGS_LOCALS 10261 RECOMP_ENTER(0x3100EEA0u); 10262 10263 goto L_3100EEA0; 10264 L_3100AF00: 10265 PUSH32(esp, ebp); /* 0x3100AF00: push ebp */ 10266 ebp = esp; /* 0x3100AF01: mov ebp, esp */ 10267 PUSH32(esp, esi); /* 0x3100AF03: push esi */ 10268 esi = ecx; /* 0x3100AF04: mov esi, ecx */ 10269 RECOMP_ICALL(0x3100AF30u); /* 0x3100AF06: call 0x3100af30 */ /* not lifted */ 10270 RECOMP_FLAGS_IN(); 10271 /* test MEM8(ebp + 0x8), 1 */ /* 0x3100AF0B: test byte ptr [ebp + 8], 1 */ 10272 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 10273 _cf = 0; 10274 _flag_k = FK_NARROW(FK_TEST, 24); 10275 if (TEST_Z(_flag_a, _flag_b)) goto L_3100AF1A; /* 0x3100AF0F: je 0x3100af1a */ 10276 L_3100AF11: 10277 PUSH32(esp, esi); /* 0x3100AF11: push esi */ 10278 RECOMP_ICALL(0x31046858u); /* 0x3100AF12: call 0x31046858 */ /* not lifted */ 10279 RECOMP_FLAGS_IN(); 10280 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10281 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10282 esp = esp + 4; /* 0x3100AF17: add esp, 4 */ 10283 _flag_k = FK_ADD; 10284 L_3100AF1A: 10285 eax = esi; /* 0x3100AF1A: mov eax, esi */ 10286 esi = POP32_VAL(esp); /* 0x3100AF1C: pop esi */ 10287 ebp = POP32_VAL(esp); /* 0x3100AF1D: pop ebp */ 10288 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3100AF1E: ret 4 */ 10289 L_3100EEA0: 10290 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x30u); 10291 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10292 ecx = ecx - 0x30u; /* 0x3100EEA0: sub ecx, 0x30 */ 10293 _flag_k = FK_CMP; 10294 RECOMP_BACKEDGE(); 10295 goto L_3100AF00; /* 0x3100EEA3: jmp 0x3100af00 */ 10296 { RECOMP_REGS_OUT(); return; } /* end of function */ 10297 RECOMP_REGS_OUT(); 10298 } 10299 10300 void sub_3100EEB0(void) { 10301 int _fpu_cmp = 0; 10302 uint32_t _cf = 0; 10303 int _df = 1; 10304 uint32_t _flag_k = FK_NONE; 10305 uint32_t _flag_a = 0, _flag_b = 0; 10306 uint32_t _itail_tgt = 0; 10307 RECOMP_REGS_LOCALS 10308 RECOMP_ENTER(0x3100EEB0u); 10309 10310 L_3100EEB0: 10311 RECOMP_ICALL(0x3100EEC0u); /* 0x3100EEB0: call 0x3100eec0 */ /* not lifted */ 10312 RECOMP_FLAGS_IN(); 10313 goto L_3100EED0; /* 0x3100EEB5: jmp 0x3100eed0 */ 10314 L_3100EED0: 10315 PUSH32(esp, 0x3100EEE0u); /* 0x3100EED0: push 0x3100eee0 */ 10316 RECOMP_ICALL(0x310468C8u); /* 0x3100EED5: call 0x310468c8 */ /* not lifted */ 10317 RECOMP_FLAGS_IN(); 10318 ecx = POP32_VAL(esp); /* 0x3100EEDA: pop ecx */ 10319 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100EEDB: ret */ 10320 RECOMP_REGS_OUT(); 10321 } 10322 10323 void sub_3100EEC0(void) { 10324 int _fpu_cmp = 0; 10325 uint32_t _cf = 0; 10326 int _df = 1; 10327 uint32_t _flag_k = FK_NONE; 10328 uint32_t _flag_a = 0, _flag_b = 0; 10329 uint32_t _itail_tgt = 0; 10330 RECOMP_REGS_LOCALS 10331 RECOMP_ENTER(0x3100EEC0u); 10332 10333 L_3100EEC0: 10334 ecx = 0x31057E65u; /* 0x3100EEC0: mov ecx, 0x31057e65 */ 10335 L_3100EEC5: 10336 { _itail_tgt = (uint32_t)(MEM32(0x31048108)); goto _ljump; } 10337 { RECOMP_REGS_OUT(); return; } /* end of function */ 10338 _ljump: 10339 switch (_itail_tgt) { 10340 case 0x3100EEC0u: goto L_3100EEC0; 10341 case 0x3100EEC5u: goto L_3100EEC5; 10342 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 10343 } 10344 RECOMP_REGS_OUT(); 10345 } 10346 10347 void sub_3100EED0(void) { 10348 int _fpu_cmp = 0; 10349 uint32_t _cf = 0; 10350 int _df = 1; 10351 uint32_t _flag_k = FK_NONE; 10352 uint32_t _flag_a = 0, _flag_b = 0; 10353 uint32_t _itail_tgt = 0; 10354 RECOMP_REGS_LOCALS 10355 RECOMP_ENTER(0x3100EED0u); 10356 10357 L_3100EED0: 10358 PUSH32(esp, 0x3100EEE0u); /* 0x3100EED0: push 0x3100eee0 */ 10359 RECOMP_ICALL(0x310468C8u); /* 0x3100EED5: call 0x310468c8 */ /* not lifted */ 10360 RECOMP_FLAGS_IN(); 10361 ecx = POP32_VAL(esp); /* 0x3100EEDA: pop ecx */ 10362 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100EEDB: ret */ 10363 RECOMP_REGS_OUT(); 10364 } 10365 10366 void sub_3100EEE0(void) { 10367 int _fpu_cmp = 0; 10368 uint32_t _cf = 0; 10369 int _df = 1; 10370 uint32_t _flag_k = FK_NONE; 10371 uint32_t _flag_a = 0, _flag_b = 0; 10372 uint32_t _itail_tgt = 0; 10373 RECOMP_REGS_LOCALS 10374 RECOMP_ENTER(0x3100EEE0u); 10375 10376 L_3100EEE0: 10377 ecx = 0x31057E65u; /* 0x3100EEE0: mov ecx, 0x31057e65 */ 10378 L_3100EEE5: 10379 { _itail_tgt = (uint32_t)(MEM32(0x3104807C)); goto _ljump; } 10380 { RECOMP_REGS_OUT(); return; } /* end of function */ 10381 _ljump: 10382 switch (_itail_tgt) { 10383 case 0x3100EEE0u: goto L_3100EEE0; 10384 case 0x3100EEE5u: goto L_3100EEE5; 10385 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 10386 } 10387 RECOMP_REGS_OUT(); 10388 } 10389 10390 void sub_3100EEF0(void) { 10391 int _fpu_cmp = 0; 10392 uint32_t _cf = 0; 10393 int _df = 1; 10394 uint32_t _flag_k = FK_NONE; 10395 uint32_t _flag_a = 0, _flag_b = 0; 10396 uint32_t _itail_tgt = 0; 10397 RECOMP_REGS_LOCALS 10398 RECOMP_ENTER(0x3100EEF0u); 10399 10400 L_3100EEF0: 10401 RECOMP_ICALL(0x3100EF00u); /* 0x3100EEF0: call 0x3100ef00 */ /* not lifted */ 10402 RECOMP_FLAGS_IN(); 10403 goto L_3100EF10; /* 0x3100EEF5: jmp 0x3100ef10 */ 10404 L_3100EF10: 10405 PUSH32(esp, 0x3100EF20u); /* 0x3100EF10: push 0x3100ef20 */ 10406 RECOMP_ICALL(0x310468C8u); /* 0x3100EF15: call 0x310468c8 */ /* not lifted */ 10407 RECOMP_FLAGS_IN(); 10408 ecx = POP32_VAL(esp); /* 0x3100EF1A: pop ecx */ 10409 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100EF1B: ret */ 10410 RECOMP_REGS_OUT(); 10411 } 10412 10413 void sub_3100EF00(void) { 10414 int _fpu_cmp = 0; 10415 uint32_t _cf = 0; 10416 int _df = 1; 10417 uint32_t _flag_k = FK_NONE; 10418 uint32_t _flag_a = 0, _flag_b = 0; 10419 uint32_t _itail_tgt = 0; 10420 RECOMP_REGS_LOCALS 10421 RECOMP_ENTER(0x3100EF00u); 10422 10423 L_3100EF00: 10424 ecx = 0x31057E64u; /* 0x3100EF00: mov ecx, 0x31057e64 */ 10425 L_3100EF05: 10426 { _itail_tgt = (uint32_t)(MEM32(0x31048104)); goto _ljump; } 10427 { RECOMP_REGS_OUT(); return; } /* end of function */ 10428 _ljump: 10429 switch (_itail_tgt) { 10430 case 0x3100EF00u: goto L_3100EF00; 10431 case 0x3100EF05u: goto L_3100EF05; 10432 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 10433 } 10434 RECOMP_REGS_OUT(); 10435 } 10436 10437 void sub_3100EF10(void) { 10438 int _fpu_cmp = 0; 10439 uint32_t _cf = 0; 10440 int _df = 1; 10441 uint32_t _flag_k = FK_NONE; 10442 uint32_t _flag_a = 0, _flag_b = 0; 10443 uint32_t _itail_tgt = 0; 10444 RECOMP_REGS_LOCALS 10445 RECOMP_ENTER(0x3100EF10u); 10446 10447 L_3100EF10: 10448 PUSH32(esp, 0x3100EF20u); /* 0x3100EF10: push 0x3100ef20 */ 10449 RECOMP_ICALL(0x310468C8u); /* 0x3100EF15: call 0x310468c8 */ /* not lifted */ 10450 RECOMP_FLAGS_IN(); 10451 ecx = POP32_VAL(esp); /* 0x3100EF1A: pop ecx */ 10452 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100EF1B: ret */ 10453 RECOMP_REGS_OUT(); 10454 } 10455 10456 void sub_3100EF20(void) { 10457 int _fpu_cmp = 0; 10458 uint32_t _cf = 0; 10459 int _df = 1; 10460 uint32_t _flag_k = FK_NONE; 10461 uint32_t _flag_a = 0, _flag_b = 0; 10462 uint32_t _itail_tgt = 0; 10463 RECOMP_REGS_LOCALS 10464 RECOMP_ENTER(0x3100EF20u); 10465 10466 L_3100EF20: 10467 ecx = 0x31057E64u; /* 0x3100EF20: mov ecx, 0x31057e64 */ 10468 L_3100EF25: 10469 { _itail_tgt = (uint32_t)(MEM32(0x31048080)); goto _ljump; } 10470 { RECOMP_REGS_OUT(); return; } /* end of function */ 10471 _ljump: 10472 switch (_itail_tgt) { 10473 case 0x3100EF20u: goto L_3100EF20; 10474 case 0x3100EF25u: goto L_3100EF25; 10475 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 10476 } 10477 RECOMP_REGS_OUT(); 10478 } 10479 10480 void sub_3100EF30(void) { 10481 int _fpu_cmp = 0; 10482 uint32_t _cf = 0; 10483 int _df = 1; 10484 uint32_t _flag_k = FK_NONE; 10485 uint32_t _flag_a = 0, _flag_b = 0; 10486 uint32_t _itail_tgt = 0; 10487 RECOMP_REGS_LOCALS 10488 RECOMP_ENTER(0x3100EF30u); 10489 10490 L_3100EF30: 10491 PUSH32(esp, ebp); /* 0x3100EF30: push ebp */ 10492 ebp = esp; /* 0x3100EF31: mov ebp, esp */ 10493 PUSH32(esp, 0xFFFFFFFFu); /* 0x3100EF33: push -1 */ 10494 PUSH32(esp, 0x31047B04u); /* 0x3100EF35: push 0x31047b04 */ 10495 eax = MEM32(FS_BASE + (0)); /* 0x3100EF3A: mov eax, dword ptr fs:[0] */ 10496 PUSH32(esp, eax); /* 0x3100EF40: push eax */ 10497 MEM32(FS_BASE + (0)) = esp; /* 0x3100EF41: mov dword ptr fs:[0], esp */ 10498 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u); 10499 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10500 esp = esp - 0x34u; /* 0x3100EF48: sub esp, 0x34 */ 10501 _flag_k = FK_CMP; 10502 PUSH32(esp, esi); /* 0x3100EF4B: push esi */ 10503 esi = MEM32(ebp + 0x8); /* 0x3100EF4C: mov esi, dword ptr [ebp + 8] */ 10504 PUSH32(esp, 0x310524A0u); /* 0x3100EF4F: push 0x310524a0 */ 10505 eax = ebp + (-0x1C); /* 0x3100EF54: lea eax, [ebp - 0x1c] */ 10506 PUSH32(esp, esi); /* 0x3100EF57: push esi */ 10507 PUSH32(esp, eax); /* 0x3100EF58: push eax */ 10508 RECOMP_ICALL(0x3104686Au); /* 0x3100EF59: call 0x3104686a */ /* not lifted */ 10509 RECOMP_FLAGS_IN(); 10510 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 10511 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10512 esp = esp + 0xCu; /* 0x3100EF5E: add esp, 0xc */ 10513 _flag_k = FK_ADD; 10514 eax = MEM32(ebp + (-0x18)); /* 0x3100EF61: mov eax, dword ptr [ebp - 0x18] */ 10515 /* test eax, eax */ /* 0x3100EF64: test eax, eax */ 10516 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10517 _cf = 0; 10518 _flag_k = FK_TEST; 10519 MEM32(ebp + (-0x4)) = 0; /* 0x3100EF66: mov dword ptr [ebp - 4], 0 */ 10520 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100EF74; /* 0x3100EF6D: jne 0x3100ef74 */ 10521 L_3100EF6F: 10522 eax = MEM32(0x310480EC); /* 0x3100EF6F: mov eax, dword ptr [0x310480ec] */ 10523 L_3100EF74: 10524 ecx = ebp + (-0x40); /* 0x3100EF74: lea ecx, [ebp - 0x40] */ 10525 PUSH32(esp, ecx); /* 0x3100EF77: push ecx */ 10526 PUSH32(esp, eax); /* 0x3100EF78: push eax */ 10527 RECOMP_ICALL(MEM32(0x31048230)); /* 0x3100EF79: call dword ptr [0x31048230] */ 10528 RECOMP_FLAGS_IN(); 10529 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 10530 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10531 esp = esp + 8; /* 0x3100EF7F: add esp, 8 */ 10532 _flag_k = FK_ADD; 10533 /* test eax, eax */ /* 0x3100EF82: test eax, eax */ 10534 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10535 _cf = 0; 10536 _flag_k = FK_TEST; 10537 if (TEST_Z(_flag_a, _flag_b)) goto L_3100EFC9; /* 0x3100EF84: je 0x3100efc9 */ 10538 L_3100EF86: 10539 ecx = MEM32(ebp + (-0x18)); /* 0x3100EF86: mov ecx, dword ptr [ebp - 0x18] */ 10540 /* test ecx, ecx */ /* 0x3100EF89: test ecx, ecx */ 10541 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 10542 _cf = 0; 10543 _flag_k = FK_TEST; 10544 if (TEST_Z(_flag_a, _flag_b)) goto L_3100EFB8; /* 0x3100EF8B: je 0x3100efb8 */ 10545 L_3100EF8D: 10546 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x3100EF8D: mov al, byte ptr [ecx - 1] */ 10547 /* test LO8(eax), LO8(eax) */ /* 0x3100EF90: test al, al */ 10548 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10549 _cf = 0; 10550 _flag_k = FK_NARROW(FK_TEST, 24); 10551 if (TEST_Z(_flag_a, _flag_b)) goto L_3100EFAE; /* 0x3100EF92: je 0x3100efae */ 10552 L_3100EF94: 10553 /* cmp LO8(eax), 0xFFu */ /* 0x3100EF94: cmp al, 0xff */ 10554 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 10555 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10556 _flag_k = FK_NARROW(FK_CMP, 24); 10557 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100EFAE; /* 0x3100EF96: je 0x3100efae */ 10558 L_3100EF98: 10559 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 10560 SET_LO8(eax, LO8(eax) - 1); /* 0x3100EF98: dec al */ 10561 _flag_k = FK_NARROW(FK_DEC, 24); 10562 MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x3100EF9A: mov byte ptr [ecx - 1], al */ 10563 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10564 eax = 0; /* 0x3100EF9D: xor eax, eax */ 10565 _cf = 0; 10566 _flag_k = FK_TEST; 10567 esi = POP32_VAL(esp); /* 0x3100EF9F: pop esi */ 10568 ecx = MEM32(ebp + (-0xC)); /* 0x3100EFA0: mov ecx, dword ptr [ebp - 0xc] */ 10569 MEM32(FS_BASE + (0)) = ecx; /* 0x3100EFA3: mov dword ptr fs:[0], ecx */ 10570 esp = ebp; /* 0x3100EFAA: mov esp, ebp */ 10571 ebp = POP32_VAL(esp); /* 0x3100EFAC: pop ebp */ 10572 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100EFAD: ret */ 10573 L_3100EFAE: 10574 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 10575 ecx = ecx - 1; /* 0x3100EFAE: dec ecx */ 10576 _flag_k = FK_DEC; 10577 PUSH32(esp, ecx); /* 0x3100EFAF: push ecx */ 10578 RECOMP_ICALL(0x31046858u); /* 0x3100EFB0: call 0x31046858 */ /* not lifted */ 10579 RECOMP_FLAGS_IN(); 10580 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10581 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10582 esp = esp + 4; /* 0x3100EFB5: add esp, 4 */ 10583 _flag_k = FK_ADD; 10584 L_3100EFB8: 10585 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10586 eax = 0; /* 0x3100EFB8: xor eax, eax */ 10587 _cf = 0; 10588 _flag_k = FK_TEST; 10589 esi = POP32_VAL(esp); /* 0x3100EFBA: pop esi */ 10590 ecx = MEM32(ebp + (-0xC)); /* 0x3100EFBB: mov ecx, dword ptr [ebp - 0xc] */ 10591 MEM32(FS_BASE + (0)) = ecx; /* 0x3100EFBE: mov dword ptr fs:[0], ecx */ 10592 esp = ebp; /* 0x3100EFC5: mov esp, ebp */ 10593 ebp = POP32_VAL(esp); /* 0x3100EFC7: pop ebp */ 10594 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100EFC8: ret */ 10595 L_3100EFC9: 10596 PUSH32(esp, 0x50u); /* 0x3100EFC9: push 0x50 */ 10597 RECOMP_ICALL(0x310468DAu); /* 0x3100EFCB: call 0x310468da */ /* not lifted */ 10598 RECOMP_FLAGS_IN(); 10599 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10600 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10601 esp = esp + 4; /* 0x3100EFD0: add esp, 4 */ 10602 _flag_k = FK_ADD; 10603 MEM32(ebp + 0x8) = eax; /* 0x3100EFD3: mov dword ptr [ebp + 8], eax */ 10604 /* test eax, eax */ /* 0x3100EFD6: test eax, eax */ 10605 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10606 _cf = 0; 10607 _flag_k = FK_TEST; 10608 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3100EFD8: mov byte ptr [ebp - 4], 1 */ 10609 if (TEST_Z(_flag_a, _flag_b)) goto L_3100EFEE; /* 0x3100EFDC: je 0x3100efee */ 10610 L_3100EFDE: 10611 edx = MEM32(ebp + 0xC); /* 0x3100EFDE: mov edx, dword ptr [ebp + 0xc] */ 10612 PUSH32(esp, edx); /* 0x3100EFE1: push edx */ 10613 PUSH32(esp, esi); /* 0x3100EFE2: push esi */ 10614 ecx = eax; /* 0x3100EFE3: mov ecx, eax */ 10615 RECOMP_ICALL(0x3100F040u); /* 0x3100EFE5: call 0x3100f040 */ /* not lifted */ 10616 RECOMP_FLAGS_IN(); 10617 esi = eax; /* 0x3100EFEA: mov esi, eax */ 10618 goto L_3100EFF0; /* 0x3100EFEC: jmp 0x3100eff0 */ 10619 L_3100EFEE: 10620 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10621 esi = 0; /* 0x3100EFEE: xor esi, esi */ 10622 _cf = 0; 10623 _flag_k = FK_TEST; 10624 L_3100EFF0: 10625 ecx = MEM32(ebp + (-0x18)); /* 0x3100EFF0: mov ecx, dword ptr [ebp - 0x18] */ 10626 /* test ecx, ecx */ /* 0x3100EFF3: test ecx, ecx */ 10627 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 10628 _cf = 0; 10629 _flag_k = FK_TEST; 10630 if (TEST_Z(_flag_a, _flag_b)) goto L_3100F022; /* 0x3100EFF5: je 0x3100f022 */ 10631 L_3100EFF7: 10632 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x3100EFF7: mov al, byte ptr [ecx - 1] */ 10633 /* test LO8(eax), LO8(eax) */ /* 0x3100EFFA: test al, al */ 10634 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10635 _cf = 0; 10636 _flag_k = FK_NARROW(FK_TEST, 24); 10637 if (TEST_Z(_flag_a, _flag_b)) goto L_3100F018; /* 0x3100EFFC: je 0x3100f018 */ 10638 L_3100EFFE: 10639 /* cmp LO8(eax), 0xFFu */ /* 0x3100EFFE: cmp al, 0xff */ 10640 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 10641 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10642 _flag_k = FK_NARROW(FK_CMP, 24); 10643 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100F018; /* 0x3100F000: je 0x3100f018 */ 10644 L_3100F002: 10645 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 10646 SET_LO8(eax, LO8(eax) - 1); /* 0x3100F002: dec al */ 10647 _flag_k = FK_NARROW(FK_DEC, 24); 10648 MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x3100F004: mov byte ptr [ecx - 1], al */ 10649 eax = esi; /* 0x3100F007: mov eax, esi */ 10650 esi = POP32_VAL(esp); /* 0x3100F009: pop esi */ 10651 ecx = MEM32(ebp + (-0xC)); /* 0x3100F00A: mov ecx, dword ptr [ebp - 0xc] */ 10652 MEM32(FS_BASE + (0)) = ecx; /* 0x3100F00D: mov dword ptr fs:[0], ecx */ 10653 esp = ebp; /* 0x3100F014: mov esp, ebp */ 10654 ebp = POP32_VAL(esp); /* 0x3100F016: pop ebp */ 10655 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100F017: ret */ 10656 L_3100F018: 10657 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 10658 ecx = ecx - 1; /* 0x3100F018: dec ecx */ 10659 _flag_k = FK_DEC; 10660 PUSH32(esp, ecx); /* 0x3100F019: push ecx */ 10661 RECOMP_ICALL(0x31046858u); /* 0x3100F01A: call 0x31046858 */ /* not lifted */ 10662 RECOMP_FLAGS_IN(); 10663 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10664 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10665 esp = esp + 4; /* 0x3100F01F: add esp, 4 */ 10666 _flag_k = FK_ADD; 10667 L_3100F022: 10668 ecx = MEM32(ebp + (-0xC)); /* 0x3100F022: mov ecx, dword ptr [ebp - 0xc] */ 10669 eax = esi; /* 0x3100F025: mov eax, esi */ 10670 esi = POP32_VAL(esp); /* 0x3100F027: pop esi */ 10671 MEM32(FS_BASE + (0)) = ecx; /* 0x3100F028: mov dword ptr fs:[0], ecx */ 10672 esp = ebp; /* 0x3100F02F: mov esp, ebp */ 10673 ebp = POP32_VAL(esp); /* 0x3100F031: pop ebp */ 10674 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100F032: ret */ 10675 RECOMP_REGS_OUT(); 10676 } 10677 10678 void sub_3100F040(void) { 10679 int _fpu_cmp = 0; 10680 uint32_t _cf = 0; 10681 int _df = 1; 10682 uint32_t _flag_k = FK_NONE; 10683 uint32_t _flag_a = 0, _flag_b = 0; 10684 uint32_t _itail_tgt = 0; 10685 RECOMP_REGS_LOCALS 10686 RECOMP_ENTER(0x3100F040u); 10687 10688 L_3100F040: 10689 PUSH32(esp, ebp); /* 0x3100F040: push ebp */ 10690 ebp = esp; /* 0x3100F041: mov ebp, esp */ 10691 PUSH32(esp, 0xFFFFFFFFu); /* 0x3100F043: push -1 */ 10692 PUSH32(esp, 0x31047B7Cu); /* 0x3100F045: push 0x31047b7c */ 10693 eax = MEM32(FS_BASE + (0)); /* 0x3100F04A: mov eax, dword ptr fs:[0] */ 10694 PUSH32(esp, eax); /* 0x3100F050: push eax */ 10695 MEM32(FS_BASE + (0)) = esp; /* 0x3100F051: mov dword ptr fs:[0], esp */ 10696 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu); 10697 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10698 esp = esp - 0x2Cu; /* 0x3100F058: sub esp, 0x2c */ 10699 _flag_k = FK_CMP; 10700 eax = MEM32(ebp + 0x8); /* 0x3100F05B: mov eax, dword ptr [ebp + 8] */ 10701 PUSH32(esp, ebx); /* 0x3100F05E: push ebx */ 10702 PUSH32(esp, esi); /* 0x3100F05F: push esi */ 10703 PUSH32(esp, edi); /* 0x3100F060: push edi */ 10704 esi = ecx; /* 0x3100F061: mov esi, ecx */ 10705 PUSH32(esp, eax); /* 0x3100F063: push eax */ 10706 MEM32(ebp + (-0x14)) = esi; /* 0x3100F064: mov dword ptr [ebp - 0x14], esi */ 10707 RECOMP_ICALL(0x3100A060u); /* 0x3100F067: call 0x3100a060 */ /* not lifted */ 10708 RECOMP_FLAGS_IN(); 10709 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10710 ebx = 0; /* 0x3100F06C: xor ebx, ebx */ 10711 _cf = 0; 10712 _flag_k = FK_TEST; 10713 PUSH32(esp, 0x14u); /* 0x3100F06E: push 0x14 */ 10714 MEM32(ebp + (-0x4)) = ebx; /* 0x3100F070: mov dword ptr [ebp - 4], ebx */ 10715 MEM32(esi + 0x34) = ebx; /* 0x3100F073: mov dword ptr [esi + 0x34], ebx */ 10716 MEM32(esi + 0x38) = ebx; /* 0x3100F076: mov dword ptr [esi + 0x38], ebx */ 10717 MEM32(esi + 0x48) = ebx; /* 0x3100F079: mov dword ptr [esi + 0x48], ebx */ 10718 MEM32(esi) = 0x31048794u; /* 0x3100F07C: mov dword ptr [esi], 0x31048794 */ 10719 RECOMP_ICALL(0x310468DAu); /* 0x3100F082: call 0x310468da */ /* not lifted */ 10720 RECOMP_FLAGS_IN(); 10721 edi = eax; /* 0x3100F087: mov edi, eax */ 10722 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10723 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10724 esp = esp + 4; /* 0x3100F089: add esp, 4 */ 10725 _flag_k = FK_ADD; 10726 MEM32(ebp + (-0x18)) = edi; /* 0x3100F08C: mov dword ptr [ebp - 0x18], edi */ 10727 /* cmp edi, ebx */ /* 0x3100F08F: cmp edi, ebx */ 10728 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 10729 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10730 _flag_k = FK_CMP; 10731 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3100F091: mov byte ptr [ebp - 4], 1 */ 10732 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100F0A9; /* 0x3100F095: je 0x3100f0a9 */ 10733 L_3100F097: 10734 ecx = ebp + 0xB; /* 0x3100F097: lea ecx, [ebp + 0xb] */ 10735 PUSH32(esp, ecx); /* 0x3100F09A: push ecx */ 10736 PUSH32(esp, ebx); /* 0x3100F09B: push ebx */ 10737 edx = ebp + (-0xD); /* 0x3100F09C: lea edx, [ebp - 0xd] */ 10738 PUSH32(esp, edx); /* 0x3100F09F: push edx */ 10739 ecx = edi; /* 0x3100F0A0: mov ecx, edi */ 10740 RECOMP_ICALL(0x3100FD50u); /* 0x3100F0A2: call 0x3100fd50 */ /* not lifted */ 10741 RECOMP_FLAGS_IN(); 10742 goto L_3100F0AB; /* 0x3100F0A7: jmp 0x3100f0ab */ 10743 L_3100F0A9: 10744 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10745 edi = 0; /* 0x3100F0A9: xor edi, edi */ 10746 _cf = 0; 10747 _flag_k = FK_TEST; 10748 L_3100F0AB: 10749 ecx = esi; /* 0x3100F0AB: mov ecx, esi */ 10750 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3100F0AD: mov byte ptr [ebp - 4], 0 */ 10751 MEM32(esi + 0x4C) = edi; /* 0x3100F0B1: mov dword ptr [esi + 0x4c], edi */ 10752 RECOMP_ICALL(0x31008F90u); /* 0x3100F0B4: call 0x31008f90 */ /* not lifted */ 10753 RECOMP_FLAGS_IN(); 10754 PUSH32(esp, 0x1B4u); /* 0x3100F0B9: push 0x1b4 */ 10755 RECOMP_ICALL(0x310468DAu); /* 0x3100F0BE: call 0x310468da */ /* not lifted */ 10756 RECOMP_FLAGS_IN(); 10757 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10758 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10759 esp = esp + 4; /* 0x3100F0C3: add esp, 4 */ 10760 _flag_k = FK_ADD; 10761 MEM32(ebp + 0x8) = eax; /* 0x3100F0C6: mov dword ptr [ebp + 8], eax */ 10762 /* cmp eax, ebx */ /* 0x3100F0C9: cmp eax, ebx */ 10763 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 10764 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10765 _flag_k = FK_CMP; 10766 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3100F0CB: mov byte ptr [ebp - 4], 2 */ 10767 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100F0DC; /* 0x3100F0CF: je 0x3100f0dc */ 10768 L_3100F0D1: 10769 PUSH32(esp, 1); /* 0x3100F0D1: push 1 */ 10770 ecx = eax; /* 0x3100F0D3: mov ecx, eax */ 10771 RECOMP_ICALL(0x31001950u); /* 0x3100F0D5: call 0x31001950 */ /* not lifted */ 10772 RECOMP_FLAGS_IN(); 10773 goto L_3100F0DE; /* 0x3100F0DA: jmp 0x3100f0de */ 10774 L_3100F0DC: 10775 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10776 eax = 0; /* 0x3100F0DC: xor eax, eax */ 10777 _cf = 0; 10778 _flag_k = FK_TEST; 10779 L_3100F0DE: 10780 PUSH32(esp, 0x1B4u); /* 0x3100F0DE: push 0x1b4 */ 10781 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3100F0E3: mov byte ptr [ebp - 4], 0 */ 10782 MEM32(esi + 0x3C) = eax; /* 0x3100F0E7: mov dword ptr [esi + 0x3c], eax */ 10783 RECOMP_ICALL(0x310468DAu); /* 0x3100F0EA: call 0x310468da */ /* not lifted */ 10784 RECOMP_FLAGS_IN(); 10785 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10786 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10787 esp = esp + 4; /* 0x3100F0EF: add esp, 4 */ 10788 _flag_k = FK_ADD; 10789 MEM32(ebp + 0x8) = eax; /* 0x3100F0F2: mov dword ptr [ebp + 8], eax */ 10790 /* cmp eax, ebx */ /* 0x3100F0F5: cmp eax, ebx */ 10791 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 10792 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10793 _flag_k = FK_CMP; 10794 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x3100F0F7: mov byte ptr [ebp - 4], 3 */ 10795 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100F108; /* 0x3100F0FB: je 0x3100f108 */ 10796 L_3100F0FD: 10797 PUSH32(esp, 1); /* 0x3100F0FD: push 1 */ 10798 ecx = eax; /* 0x3100F0FF: mov ecx, eax */ 10799 RECOMP_ICALL(0x31001950u); /* 0x3100F101: call 0x31001950 */ /* not lifted */ 10800 RECOMP_FLAGS_IN(); 10801 goto L_3100F10A; /* 0x3100F106: jmp 0x3100f10a */ 10802 L_3100F108: 10803 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10804 eax = 0; /* 0x3100F108: xor eax, eax */ 10805 _cf = 0; 10806 _flag_k = FK_TEST; 10807 L_3100F10A: 10808 PUSH32(esp, 0x1B4u); /* 0x3100F10A: push 0x1b4 */ 10809 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3100F10F: mov byte ptr [ebp - 4], 0 */ 10810 MEM32(esi + 0x40) = eax; /* 0x3100F113: mov dword ptr [esi + 0x40], eax */ 10811 RECOMP_ICALL(0x310468DAu); /* 0x3100F116: call 0x310468da */ /* not lifted */ 10812 RECOMP_FLAGS_IN(); 10813 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10814 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10815 esp = esp + 4; /* 0x3100F11B: add esp, 4 */ 10816 _flag_k = FK_ADD; 10817 MEM32(ebp + 0x8) = eax; /* 0x3100F11E: mov dword ptr [ebp + 8], eax */ 10818 /* cmp eax, ebx */ /* 0x3100F121: cmp eax, ebx */ 10819 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 10820 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10821 _flag_k = FK_CMP; 10822 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x3100F123: mov byte ptr [ebp - 4], 4 */ 10823 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100F134; /* 0x3100F127: je 0x3100f134 */ 10824 L_3100F129: 10825 PUSH32(esp, 1); /* 0x3100F129: push 1 */ 10826 ecx = eax; /* 0x3100F12B: mov ecx, eax */ 10827 RECOMP_ICALL(0x31001950u); /* 0x3100F12D: call 0x31001950 */ /* not lifted */ 10828 RECOMP_FLAGS_IN(); 10829 goto L_3100F136; /* 0x3100F132: jmp 0x3100f136 */ 10830 L_3100F134: 10831 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10832 eax = 0; /* 0x3100F134: xor eax, eax */ 10833 _cf = 0; 10834 _flag_k = FK_TEST; 10835 L_3100F136: 10836 PUSH32(esp, 0x1B4u); /* 0x3100F136: push 0x1b4 */ 10837 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3100F13B: mov byte ptr [ebp - 4], 0 */ 10838 MEM32(esi + 0x44) = eax; /* 0x3100F13F: mov dword ptr [esi + 0x44], eax */ 10839 RECOMP_ICALL(0x310468DAu); /* 0x3100F142: call 0x310468da */ /* not lifted */ 10840 RECOMP_FLAGS_IN(); 10841 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10842 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10843 esp = esp + 4; /* 0x3100F147: add esp, 4 */ 10844 _flag_k = FK_ADD; 10845 MEM32(ebp + 0x8) = eax; /* 0x3100F14A: mov dword ptr [ebp + 8], eax */ 10846 /* cmp eax, ebx */ /* 0x3100F14D: cmp eax, ebx */ 10847 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 10848 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10849 _flag_k = FK_CMP; 10850 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x3100F14F: mov byte ptr [ebp - 4], 5 */ 10851 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100F160; /* 0x3100F153: je 0x3100f160 */ 10852 L_3100F155: 10853 PUSH32(esp, 1); /* 0x3100F155: push 1 */ 10854 ecx = eax; /* 0x3100F157: mov ecx, eax */ 10855 RECOMP_ICALL(0x31001950u); /* 0x3100F159: call 0x31001950 */ /* not lifted */ 10856 RECOMP_FLAGS_IN(); 10857 goto L_3100F162; /* 0x3100F15E: jmp 0x3100f162 */ 10858 L_3100F160: 10859 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10860 eax = 0; /* 0x3100F160: xor eax, eax */ 10861 _cf = 0; 10862 _flag_k = FK_TEST; 10863 L_3100F162: 10864 MEM32(esi + 0x48) = eax; /* 0x3100F162: mov dword ptr [esi + 0x48], eax */ 10865 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3100F165: mov al, byte ptr [ebp + 0xb] */ 10866 PUSH32(esp, ebx); /* 0x3100F168: push ebx */ 10867 ecx = ebp + (-0x28); /* 0x3100F169: lea ecx, [ebp - 0x28] */ 10868 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3100F16C: mov byte ptr [ebp - 4], 0 */ 10869 MEM8(ebp + (-0x28)) = (uint8_t)(LO8(eax)); /* 0x3100F170: mov byte ptr [ebp - 0x28], al */ 10870 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x3100F173: call dword ptr [0x310480d4] */ 10871 RECOMP_FLAGS_IN(); 10872 eax = MEM32(ebp + 0xC); /* 0x3100F179: mov eax, dword ptr [ebp + 0xc] */ 10873 SET_LO8(ecx, LO8(eax)); /* 0x3100F17C: mov cl, al */ 10874 PUSH32(esp, 0x310524F8u); /* 0x3100F17E: push 0x310524f8 */ 10875 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x3100F183: shr eax, 1 */ 10876 if (1u) { _flag_a = recomp_flags_pack((eax >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10877 eax = eax >> 1u; /* 0x3100F183: shr eax, 1 */ 10878 edi = esi + 0x4; /* 0x3100F185: lea edi, [esi + 4] */ 10879 edx = ebp + (-0x38); /* 0x3100F188: lea edx, [ebp - 0x38] */ 10880 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 10881 SET_LO8(ecx, LO8(ecx) & 1); /* 0x3100F18B: and cl, 1 */ 10882 _cf = 0; 10883 _flag_k = FK_NARROW(FK_TEST, 24); 10884 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 10885 SET_LO8(eax, LO8(eax) & 1); /* 0x3100F18E: and al, 1 */ 10886 _cf = 0; 10887 _flag_k = FK_NARROW(FK_TEST, 24); 10888 PUSH32(esp, edi); /* 0x3100F190: push edi */ 10889 SET_LO8(ebx, 6); /* 0x3100F191: mov bl, 6 */ 10890 PUSH32(esp, edx); /* 0x3100F193: push edx */ 10891 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3100F194: mov byte ptr [ebp - 4], bl */ 10892 MEM8(esi + 0x30) = (uint8_t)(LO8(ecx)); /* 0x3100F197: mov byte ptr [esi + 0x30], cl */ 10893 MEM8(esi + 0x31) = (uint8_t)(LO8(eax)); /* 0x3100F19A: mov byte ptr [esi + 0x31], al */ 10894 RECOMP_ICALL(0x3104686Au); /* 0x3100F19D: call 0x3104686a */ /* not lifted */ 10895 RECOMP_FLAGS_IN(); 10896 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 10897 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10898 esp = esp + 0xCu; /* 0x3100F1A2: add esp, 0xc */ 10899 _flag_k = FK_ADD; 10900 ecx = MEM32(0x310480F8); /* 0x3100F1A5: mov ecx, dword ptr [0x310480f8] */ 10901 edx = MEM32(ecx); /* 0x3100F1AB: mov edx, dword ptr [ecx] */ 10902 PUSH32(esp, edx); /* 0x3100F1AD: push edx */ 10903 PUSH32(esp, 0); /* 0x3100F1AE: push 0 */ 10904 PUSH32(esp, eax); /* 0x3100F1B0: push eax */ 10905 ecx = ebp + (-0x28); /* 0x3100F1B1: lea ecx, [ebp - 0x28] */ 10906 MEM8(ebp + (-0x4)) = (uint8_t)(7); /* 0x3100F1B4: mov byte ptr [ebp - 4], 7 */ 10907 RECOMP_ICALL(MEM32(0x310480FC)); /* 0x3100F1B8: call dword ptr [0x310480fc] */ 10908 RECOMP_FLAGS_IN(); 10909 PUSH32(esp, 1); /* 0x3100F1BE: push 1 */ 10910 ecx = ebp + (-0x38); /* 0x3100F1C0: lea ecx, [ebp - 0x38] */ 10911 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3100F1C3: mov byte ptr [ebp - 4], bl */ 10912 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x3100F1C6: call dword ptr [0x310480d4] */ 10913 RECOMP_FLAGS_IN(); 10914 eax = MEM32(ebp + (-0x24)); /* 0x3100F1CC: mov eax, dword ptr [ebp - 0x24] */ 10915 /* test eax, eax */ /* 0x3100F1CF: test eax, eax */ 10916 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10917 _cf = 0; 10918 _flag_k = FK_TEST; 10919 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100F1D8; /* 0x3100F1D1: jne 0x3100f1d8 */ 10920 L_3100F1D3: 10921 eax = MEM32(0x310480EC); /* 0x3100F1D3: mov eax, dword ptr [0x310480ec] */ 10922 L_3100F1D8: 10923 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10924 ecx = 0; /* 0x3100F1D8: xor ecx, ecx */ 10925 _cf = 0; 10926 _flag_k = FK_TEST; 10927 SET_LO8(ecx, MEM8(esi + 0x31)); /* 0x3100F1DA: mov cl, byte ptr [esi + 0x31] */ 10928 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10929 edx = 0; /* 0x3100F1DD: xor edx, edx */ 10930 _cf = 0; 10931 _flag_k = FK_TEST; 10932 SET_LO8(edx, MEM8(esi + 0x30)); /* 0x3100F1DF: mov dl, byte ptr [esi + 0x30] */ 10933 PUSH32(esp, ecx); /* 0x3100F1E2: push ecx */ 10934 ecx = MEM32(esi + 0x3C); /* 0x3100F1E3: mov ecx, dword ptr [esi + 0x3c] */ 10935 PUSH32(esp, edx); /* 0x3100F1E6: push edx */ 10936 PUSH32(esp, eax); /* 0x3100F1E7: push eax */ 10937 RECOMP_ICALL(0x31001BE0u); /* 0x3100F1E8: call 0x31001be0 */ /* not lifted */ 10938 RECOMP_FLAGS_IN(); 10939 PUSH32(esp, 0x310524ECu); /* 0x3100F1ED: push 0x310524ec */ 10940 eax = ebp + (-0x38); /* 0x3100F1F2: lea eax, [ebp - 0x38] */ 10941 PUSH32(esp, edi); /* 0x3100F1F5: push edi */ 10942 PUSH32(esp, eax); /* 0x3100F1F6: push eax */ 10943 RECOMP_ICALL(0x3104686Au); /* 0x3100F1F7: call 0x3104686a */ /* not lifted */ 10944 RECOMP_FLAGS_IN(); 10945 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 10946 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10947 esp = esp + 0xCu; /* 0x3100F1FC: add esp, 0xc */ 10948 _flag_k = FK_ADD; 10949 ecx = MEM32(0x310480F8); /* 0x3100F1FF: mov ecx, dword ptr [0x310480f8] */ 10950 edx = MEM32(ecx); /* 0x3100F205: mov edx, dword ptr [ecx] */ 10951 PUSH32(esp, edx); /* 0x3100F207: push edx */ 10952 PUSH32(esp, 0); /* 0x3100F208: push 0 */ 10953 PUSH32(esp, eax); /* 0x3100F20A: push eax */ 10954 ecx = ebp + (-0x28); /* 0x3100F20B: lea ecx, [ebp - 0x28] */ 10955 MEM8(ebp + (-0x4)) = (uint8_t)(8); /* 0x3100F20E: mov byte ptr [ebp - 4], 8 */ 10956 RECOMP_ICALL(MEM32(0x310480FC)); /* 0x3100F212: call dword ptr [0x310480fc] */ 10957 RECOMP_FLAGS_IN(); 10958 PUSH32(esp, 1); /* 0x3100F218: push 1 */ 10959 ecx = ebp + (-0x38); /* 0x3100F21A: lea ecx, [ebp - 0x38] */ 10960 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3100F21D: mov byte ptr [ebp - 4], bl */ 10961 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x3100F220: call dword ptr [0x310480d4] */ 10962 RECOMP_FLAGS_IN(); 10963 eax = MEM32(ebp + (-0x24)); /* 0x3100F226: mov eax, dword ptr [ebp - 0x24] */ 10964 /* test eax, eax */ /* 0x3100F229: test eax, eax */ 10965 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10966 _cf = 0; 10967 _flag_k = FK_TEST; 10968 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100F232; /* 0x3100F22B: jne 0x3100f232 */ 10969 L_3100F22D: 10970 eax = MEM32(0x310480EC); /* 0x3100F22D: mov eax, dword ptr [0x310480ec] */ 10971 L_3100F232: 10972 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10973 ecx = 0; /* 0x3100F232: xor ecx, ecx */ 10974 _cf = 0; 10975 _flag_k = FK_TEST; 10976 SET_LO8(ecx, MEM8(esi + 0x31)); /* 0x3100F234: mov cl, byte ptr [esi + 0x31] */ 10977 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10978 edx = 0; /* 0x3100F237: xor edx, edx */ 10979 _cf = 0; 10980 _flag_k = FK_TEST; 10981 SET_LO8(edx, MEM8(esi + 0x30)); /* 0x3100F239: mov dl, byte ptr [esi + 0x30] */ 10982 PUSH32(esp, ecx); /* 0x3100F23C: push ecx */ 10983 ecx = MEM32(esi + 0x40); /* 0x3100F23D: mov ecx, dword ptr [esi + 0x40] */ 10984 PUSH32(esp, edx); /* 0x3100F240: push edx */ 10985 PUSH32(esp, eax); /* 0x3100F241: push eax */ 10986 RECOMP_ICALL(0x31001BE0u); /* 0x3100F242: call 0x31001be0 */ /* not lifted */ 10987 RECOMP_FLAGS_IN(); 10988 PUSH32(esp, 0x310524E0u); /* 0x3100F247: push 0x310524e0 */ 10989 eax = ebp + (-0x38); /* 0x3100F24C: lea eax, [ebp - 0x38] */ 10990 PUSH32(esp, edi); /* 0x3100F24F: push edi */ 10991 PUSH32(esp, eax); /* 0x3100F250: push eax */ 10992 RECOMP_ICALL(0x3104686Au); /* 0x3100F251: call 0x3104686a */ /* not lifted */ 10993 RECOMP_FLAGS_IN(); 10994 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 10995 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10996 esp = esp + 0xCu; /* 0x3100F256: add esp, 0xc */ 10997 _flag_k = FK_ADD; 10998 ecx = MEM32(0x310480F8); /* 0x3100F259: mov ecx, dword ptr [0x310480f8] */ 10999 edx = MEM32(ecx); /* 0x3100F25F: mov edx, dword ptr [ecx] */ 11000 PUSH32(esp, edx); /* 0x3100F261: push edx */ 11001 PUSH32(esp, 0); /* 0x3100F262: push 0 */ 11002 PUSH32(esp, eax); /* 0x3100F264: push eax */ 11003 ecx = ebp + (-0x28); /* 0x3100F265: lea ecx, [ebp - 0x28] */ 11004 MEM8(ebp + (-0x4)) = (uint8_t)(9); /* 0x3100F268: mov byte ptr [ebp - 4], 9 */ 11005 RECOMP_ICALL(MEM32(0x310480FC)); /* 0x3100F26C: call dword ptr [0x310480fc] */ 11006 RECOMP_FLAGS_IN(); 11007 eax = MEM32(ebp + (-0x34)); /* 0x3100F272: mov eax, dword ptr [ebp - 0x34] */ 11008 /* test eax, eax */ /* 0x3100F275: test eax, eax */ 11009 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11010 _cf = 0; 11011 _flag_k = FK_TEST; 11012 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3100F277: mov byte ptr [ebp - 4], bl */ 11013 if (TEST_Z(_flag_a, _flag_b)) goto L_3100F298; /* 0x3100F27A: je 0x3100f298 */ 11014 L_3100F27C: 11015 ecx = eax + (-0x1); /* 0x3100F27C: lea ecx, [eax - 1] */ 11016 SET_LO8(eax, MEM8(ecx)); /* 0x3100F27F: mov al, byte ptr [ecx] */ 11017 /* test LO8(eax), LO8(eax) */ /* 0x3100F281: test al, al */ 11018 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11019 _cf = 0; 11020 _flag_k = FK_NARROW(FK_TEST, 24); 11021 if (TEST_Z(_flag_a, _flag_b)) goto L_3100F28F; /* 0x3100F283: je 0x3100f28f */ 11022 L_3100F285: 11023 /* cmp LO8(eax), 0xFFu */ /* 0x3100F285: cmp al, 0xff */ 11024 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 11025 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11026 _flag_k = FK_NARROW(FK_CMP, 24); 11027 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100F28F; /* 0x3100F287: je 0x3100f28f */ 11028 L_3100F289: 11029 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 11030 SET_LO8(eax, LO8(eax) - 1); /* 0x3100F289: dec al */ 11031 _flag_k = FK_NARROW(FK_DEC, 24); 11032 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3100F28B: mov byte ptr [ecx], al */ 11033 goto L_3100F298; /* 0x3100F28D: jmp 0x3100f298 */ 11034 L_3100F28F: 11035 PUSH32(esp, ecx); /* 0x3100F28F: push ecx */ 11036 RECOMP_ICALL(0x31046858u); /* 0x3100F290: call 0x31046858 */ /* not lifted */ 11037 RECOMP_FLAGS_IN(); 11038 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11039 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11040 esp = esp + 4; /* 0x3100F295: add esp, 4 */ 11041 _flag_k = FK_ADD; 11042 L_3100F298: 11043 eax = MEM32(ebp + (-0x24)); /* 0x3100F298: mov eax, dword ptr [ebp - 0x24] */ 11044 /* test eax, eax */ /* 0x3100F29B: test eax, eax */ 11045 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11046 _cf = 0; 11047 _flag_k = FK_TEST; 11048 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100F2A4; /* 0x3100F29D: jne 0x3100f2a4 */ 11049 L_3100F29F: 11050 eax = MEM32(0x310480EC); /* 0x3100F29F: mov eax, dword ptr [0x310480ec] */ 11051 L_3100F2A4: 11052 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11053 ecx = 0; /* 0x3100F2A4: xor ecx, ecx */ 11054 _cf = 0; 11055 _flag_k = FK_TEST; 11056 SET_LO8(ecx, MEM8(esi + 0x31)); /* 0x3100F2A6: mov cl, byte ptr [esi + 0x31] */ 11057 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11058 edx = 0; /* 0x3100F2A9: xor edx, edx */ 11059 _cf = 0; 11060 _flag_k = FK_TEST; 11061 SET_LO8(edx, MEM8(esi + 0x30)); /* 0x3100F2AB: mov dl, byte ptr [esi + 0x30] */ 11062 PUSH32(esp, ecx); /* 0x3100F2AE: push ecx */ 11063 ecx = MEM32(esi + 0x44); /* 0x3100F2AF: mov ecx, dword ptr [esi + 0x44] */ 11064 PUSH32(esp, edx); /* 0x3100F2B2: push edx */ 11065 PUSH32(esp, eax); /* 0x3100F2B3: push eax */ 11066 RECOMP_ICALL(0x31001BE0u); /* 0x3100F2B4: call 0x31001be0 */ /* not lifted */ 11067 RECOMP_FLAGS_IN(); 11068 PUSH32(esp, 0x310524D0u); /* 0x3100F2B9: push 0x310524d0 */ 11069 eax = ebp + (-0x38); /* 0x3100F2BE: lea eax, [ebp - 0x38] */ 11070 PUSH32(esp, edi); /* 0x3100F2C1: push edi */ 11071 PUSH32(esp, eax); /* 0x3100F2C2: push eax */ 11072 RECOMP_ICALL(0x3104686Au); /* 0x3100F2C3: call 0x3104686a */ /* not lifted */ 11073 RECOMP_FLAGS_IN(); 11074 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 11075 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11076 esp = esp + 0xCu; /* 0x3100F2C8: add esp, 0xc */ 11077 _flag_k = FK_ADD; 11078 ecx = MEM32(0x310480F8); /* 0x3100F2CB: mov ecx, dword ptr [0x310480f8] */ 11079 edx = MEM32(ecx); /* 0x3100F2D1: mov edx, dword ptr [ecx] */ 11080 PUSH32(esp, edx); /* 0x3100F2D3: push edx */ 11081 PUSH32(esp, 0); /* 0x3100F2D4: push 0 */ 11082 PUSH32(esp, eax); /* 0x3100F2D6: push eax */ 11083 ecx = ebp + (-0x28); /* 0x3100F2D7: lea ecx, [ebp - 0x28] */ 11084 MEM8(ebp + (-0x4)) = (uint8_t)(0xAu); /* 0x3100F2DA: mov byte ptr [ebp - 4], 0xa */ 11085 RECOMP_ICALL(MEM32(0x310480FC)); /* 0x3100F2DE: call dword ptr [0x310480fc] */ 11086 RECOMP_FLAGS_IN(); 11087 eax = MEM32(ebp + (-0x34)); /* 0x3100F2E4: mov eax, dword ptr [ebp - 0x34] */ 11088 /* test eax, eax */ /* 0x3100F2E7: test eax, eax */ 11089 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11090 _cf = 0; 11091 _flag_k = FK_TEST; 11092 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3100F2E9: mov byte ptr [ebp - 4], bl */ 11093 if (TEST_Z(_flag_a, _flag_b)) goto L_3100F30A; /* 0x3100F2EC: je 0x3100f30a */ 11094 L_3100F2EE: 11095 ecx = eax + (-0x1); /* 0x3100F2EE: lea ecx, [eax - 1] */ 11096 SET_LO8(eax, MEM8(ecx)); /* 0x3100F2F1: mov al, byte ptr [ecx] */ 11097 /* test LO8(eax), LO8(eax) */ /* 0x3100F2F3: test al, al */ 11098 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11099 _cf = 0; 11100 _flag_k = FK_NARROW(FK_TEST, 24); 11101 if (TEST_Z(_flag_a, _flag_b)) goto L_3100F301; /* 0x3100F2F5: je 0x3100f301 */ 11102 L_3100F2F7: 11103 /* cmp LO8(eax), 0xFFu */ /* 0x3100F2F7: cmp al, 0xff */ 11104 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 11105 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11106 _flag_k = FK_NARROW(FK_CMP, 24); 11107 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100F301; /* 0x3100F2F9: je 0x3100f301 */ 11108 L_3100F2FB: 11109 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 11110 SET_LO8(eax, LO8(eax) - 1); /* 0x3100F2FB: dec al */ 11111 _flag_k = FK_NARROW(FK_DEC, 24); 11112 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3100F2FD: mov byte ptr [ecx], al */ 11113 goto L_3100F30A; /* 0x3100F2FF: jmp 0x3100f30a */ 11114 L_3100F301: 11115 PUSH32(esp, ecx); /* 0x3100F301: push ecx */ 11116 RECOMP_ICALL(0x31046858u); /* 0x3100F302: call 0x31046858 */ /* not lifted */ 11117 RECOMP_FLAGS_IN(); 11118 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11119 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11120 esp = esp + 4; /* 0x3100F307: add esp, 4 */ 11121 _flag_k = FK_ADD; 11122 L_3100F30A: 11123 eax = MEM32(ebp + (-0x24)); /* 0x3100F30A: mov eax, dword ptr [ebp - 0x24] */ 11124 /* test eax, eax */ /* 0x3100F30D: test eax, eax */ 11125 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11126 _cf = 0; 11127 _flag_k = FK_TEST; 11128 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100F316; /* 0x3100F30F: jne 0x3100f316 */ 11129 L_3100F311: 11130 eax = MEM32(0x310480EC); /* 0x3100F311: mov eax, dword ptr [0x310480ec] */ 11131 L_3100F316: 11132 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11133 ecx = 0; /* 0x3100F316: xor ecx, ecx */ 11134 _cf = 0; 11135 _flag_k = FK_TEST; 11136 SET_LO8(ecx, MEM8(esi + 0x31)); /* 0x3100F318: mov cl, byte ptr [esi + 0x31] */ 11137 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11138 edx = 0; /* 0x3100F31B: xor edx, edx */ 11139 _cf = 0; 11140 _flag_k = FK_TEST; 11141 SET_LO8(edx, MEM8(esi + 0x30)); /* 0x3100F31D: mov dl, byte ptr [esi + 0x30] */ 11142 PUSH32(esp, ecx); /* 0x3100F320: push ecx */ 11143 ecx = MEM32(esi + 0x48); /* 0x3100F321: mov ecx, dword ptr [esi + 0x48] */ 11144 PUSH32(esp, edx); /* 0x3100F324: push edx */ 11145 PUSH32(esp, eax); /* 0x3100F325: push eax */ 11146 RECOMP_ICALL(0x31001BE0u); /* 0x3100F326: call 0x31001be0 */ /* not lifted */ 11147 RECOMP_FLAGS_IN(); 11148 eax = MEM32(esi + 0x44); /* 0x3100F32B: mov eax, dword ptr [esi + 0x44] */ 11149 ecx = MEM32(esi + 0x3C); /* 0x3100F32E: mov ecx, dword ptr [esi + 0x3c] */ 11150 edx = MEM32(esi + 0x40); /* 0x3100F331: mov edx, dword ptr [esi + 0x40] */ 11151 PUSH32(esp, eax); /* 0x3100F334: push eax */ 11152 PUSH32(esp, ecx); /* 0x3100F335: push ecx */ 11153 ecx = MEM32(esi + 0x4C); /* 0x3100F336: mov ecx, dword ptr [esi + 0x4c] */ 11154 PUSH32(esp, edx); /* 0x3100F339: push edx */ 11155 RECOMP_ICALL(0x3100FE90u); /* 0x3100F33A: call 0x3100fe90 */ /* not lifted */ 11156 RECOMP_FLAGS_IN(); 11157 ecx = MEM32(ebp + (-0x24)); /* 0x3100F33F: mov ecx, dword ptr [ebp - 0x24] */ 11158 /* test ecx, ecx */ /* 0x3100F342: test ecx, ecx */ 11159 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11160 _cf = 0; 11161 _flag_k = FK_TEST; 11162 if (TEST_Z(_flag_a, _flag_b)) goto L_3100F362; /* 0x3100F344: je 0x3100f362 */ 11163 L_3100F346: 11164 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x3100F346: mov al, byte ptr [ecx - 1] */ 11165 /* test LO8(eax), LO8(eax) */ /* 0x3100F349: test al, al */ 11166 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11167 _cf = 0; 11168 _flag_k = FK_NARROW(FK_TEST, 24); 11169 if (TEST_Z(_flag_a, _flag_b)) goto L_3100F358; /* 0x3100F34B: je 0x3100f358 */ 11170 L_3100F34D: 11171 /* cmp LO8(eax), 0xFFu */ /* 0x3100F34D: cmp al, 0xff */ 11172 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 11173 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11174 _flag_k = FK_NARROW(FK_CMP, 24); 11175 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100F358; /* 0x3100F34F: je 0x3100f358 */ 11176 L_3100F351: 11177 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 11178 SET_LO8(eax, LO8(eax) - 1); /* 0x3100F351: dec al */ 11179 _flag_k = FK_NARROW(FK_DEC, 24); 11180 MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x3100F353: mov byte ptr [ecx - 1], al */ 11181 goto L_3100F362; /* 0x3100F356: jmp 0x3100f362 */ 11182 L_3100F358: 11183 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 11184 ecx = ecx - 1; /* 0x3100F358: dec ecx */ 11185 _flag_k = FK_DEC; 11186 PUSH32(esp, ecx); /* 0x3100F359: push ecx */ 11187 RECOMP_ICALL(0x31046858u); /* 0x3100F35A: call 0x31046858 */ /* not lifted */ 11188 RECOMP_FLAGS_IN(); 11189 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11190 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11191 esp = esp + 4; /* 0x3100F35F: add esp, 4 */ 11192 _flag_k = FK_ADD; 11193 L_3100F362: 11194 ecx = MEM32(ebp + (-0xC)); /* 0x3100F362: mov ecx, dword ptr [ebp - 0xc] */ 11195 edi = POP32_VAL(esp); /* 0x3100F365: pop edi */ 11196 eax = esi; /* 0x3100F366: mov eax, esi */ 11197 esi = POP32_VAL(esp); /* 0x3100F368: pop esi */ 11198 ebx = POP32_VAL(esp); /* 0x3100F369: pop ebx */ 11199 MEM32(FS_BASE + (0)) = ecx; /* 0x3100F36A: mov dword ptr fs:[0], ecx */ 11200 esp = ebp; /* 0x3100F371: mov esp, ebp */ 11201 ebp = POP32_VAL(esp); /* 0x3100F373: pop ebp */ 11202 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100F374: ret 8 */ 11203 RECOMP_REGS_OUT(); 11204 } 11205 11206 void sub_3100F380(void) { 11207 int _fpu_cmp = 0; 11208 uint32_t _cf = 0; 11209 int _df = 1; 11210 uint32_t _flag_k = FK_NONE; 11211 uint32_t _flag_a = 0, _flag_b = 0; 11212 uint32_t _itail_tgt = 0; 11213 RECOMP_REGS_LOCALS 11214 RECOMP_ENTER(0x3100F380u); 11215 11216 L_3100F380: 11217 PUSH32(esp, ebp); /* 0x3100F380: push ebp */ 11218 ebp = esp; /* 0x3100F381: mov ebp, esp */ 11219 PUSH32(esp, esi); /* 0x3100F383: push esi */ 11220 esi = ecx; /* 0x3100F384: mov esi, ecx */ 11221 RECOMP_ICALL(0x3100F3B0u); /* 0x3100F386: call 0x3100f3b0 */ /* not lifted */ 11222 RECOMP_FLAGS_IN(); 11223 /* test MEM8(ebp + 0x8), 1 */ /* 0x3100F38B: test byte ptr [ebp + 8], 1 */ 11224 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 11225 _cf = 0; 11226 _flag_k = FK_NARROW(FK_TEST, 24); 11227 if (TEST_Z(_flag_a, _flag_b)) goto L_3100F39A; /* 0x3100F38F: je 0x3100f39a */ 11228 L_3100F391: 11229 PUSH32(esp, esi); /* 0x3100F391: push esi */ 11230 RECOMP_ICALL(0x31046858u); /* 0x3100F392: call 0x31046858 */ /* not lifted */ 11231 RECOMP_FLAGS_IN(); 11232 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11233 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11234 esp = esp + 4; /* 0x3100F397: add esp, 4 */ 11235 _flag_k = FK_ADD; 11236 L_3100F39A: 11237 eax = esi; /* 0x3100F39A: mov eax, esi */ 11238 esi = POP32_VAL(esp); /* 0x3100F39C: pop esi */ 11239 ebp = POP32_VAL(esp); /* 0x3100F39D: pop ebp */ 11240 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3100F39E: ret 4 */ 11241 RECOMP_REGS_OUT(); 11242 } 11243 11244 void sub_3100F3B0(void) { 11245 int _fpu_cmp = 0; 11246 uint32_t _cf = 0; 11247 int _df = 1; 11248 uint32_t _flag_k = FK_NONE; 11249 uint32_t _flag_a = 0, _flag_b = 0; 11250 uint32_t _itail_tgt = 0; 11251 RECOMP_REGS_LOCALS 11252 RECOMP_ENTER(0x3100F3B0u); 11253 11254 L_3100F3B0: 11255 PUSH32(esp, ebp); /* 0x3100F3B0: push ebp */ 11256 ebp = esp; /* 0x3100F3B1: mov ebp, esp */ 11257 PUSH32(esp, 0xFFFFFFFFu); /* 0x3100F3B3: push -1 */ 11258 PUSH32(esp, 0x31047B98u); /* 0x3100F3B5: push 0x31047b98 */ 11259 eax = MEM32(FS_BASE + (0)); /* 0x3100F3BA: mov eax, dword ptr fs:[0] */ 11260 PUSH32(esp, eax); /* 0x3100F3C0: push eax */ 11261 MEM32(FS_BASE + (0)) = esp; /* 0x3100F3C1: mov dword ptr fs:[0], esp */ 11262 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 11263 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11264 esp = esp - 0x18u; /* 0x3100F3C8: sub esp, 0x18 */ 11265 _flag_k = FK_CMP; 11266 PUSH32(esp, ebx); /* 0x3100F3CB: push ebx */ 11267 ebx = ecx; /* 0x3100F3CC: mov ebx, ecx */ 11268 PUSH32(esp, esi); /* 0x3100F3CE: push esi */ 11269 MEM32(ebp + (-0x14)) = ebx; /* 0x3100F3CF: mov dword ptr [ebp - 0x14], ebx */ 11270 MEM32(ebx) = 0x31048794u; /* 0x3100F3D2: mov dword ptr [ebx], 0x31048794 */ 11271 esi = MEM32(ebx + 0x4C); /* 0x3100F3D8: mov esi, dword ptr [ebx + 0x4c] */ 11272 /* test esi, esi */ /* 0x3100F3DB: test esi, esi */ 11273 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 11274 _cf = 0; 11275 _flag_k = FK_TEST; 11276 MEM32(ebp + (-0x4)) = 0; /* 0x3100F3DD: mov dword ptr [ebp - 4], 0 */ 11277 if (TEST_Z(_flag_a, _flag_b)) goto L_3100F49D; /* 0x3100F3E4: je 0x3100f49d */ 11278 L_3100F3EA: 11279 eax = MEM32(esi + 0x4); /* 0x3100F3EA: mov eax, dword ptr [esi + 4] */ 11280 ecx = MEM32(esi + 0x10); /* 0x3100F3ED: mov ecx, dword ptr [esi + 0x10] */ 11281 /* test ecx, ecx */ /* 0x3100F3F0: test ecx, ecx */ 11282 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11283 _cf = 0; 11284 _flag_k = FK_TEST; 11285 PUSH32(esp, edi); /* 0x3100F3F2: push edi */ 11286 edi = eax; /* 0x3100F3F3: mov edi, eax */ 11287 eax = MEM32(eax); /* 0x3100F3F5: mov eax, dword ptr [eax] */ 11288 MEM32(ebp + (-0x10)) = eax; /* 0x3100F3F7: mov dword ptr [ebp - 0x10], eax */ 11289 if (TEST_Z(_flag_a, _flag_b)) goto L_3100F451; /* 0x3100F3FA: je 0x3100f451 */ 11290 L_3100F3FC: 11291 eax = ebp + (-0x18); /* 0x3100F3FC: lea eax, [ebp - 0x18] */ 11292 PUSH32(esp, eax); /* 0x3100F3FF: push eax */ 11293 ecx = esi; /* 0x3100F400: mov ecx, esi */ 11294 RECOMP_ICALL(0x3100E400u); /* 0x3100F402: call 0x3100e400 */ /* not lifted */ 11295 RECOMP_FLAGS_IN(); 11296 ecx = eax; /* 0x3100F407: mov ecx, eax */ 11297 edx = MEM32(ecx); /* 0x3100F409: mov edx, dword ptr [ecx] */ 11298 eax = MEM32(ebp + (-0x10)); /* 0x3100F40B: mov eax, dword ptr [ebp - 0x10] */ 11299 /* cmp eax, edx */ /* 0x3100F40E: cmp eax, edx */ 11300 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 11301 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11302 _flag_k = FK_CMP; 11303 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x3100F410: setne cl */ 11304 /* test LO8(ecx), LO8(ecx) */ /* 0x3100F413: test cl, cl */ 11305 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 11306 _cf = 0; 11307 _flag_k = FK_NARROW(FK_TEST, 24); 11308 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100F451; /* 0x3100F415: jne 0x3100f451 */ 11309 L_3100F417: 11310 ecx = MEM32(esi + 0x4); /* 0x3100F417: mov ecx, dword ptr [esi + 4] */ 11311 /* cmp edi, ecx */ /* 0x3100F41A: cmp edi, ecx */ 11312 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 11313 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11314 _flag_k = FK_CMP; 11315 if (CMP_NE(_flag_a, _flag_b)) goto L_3100F451; /* 0x3100F41C: jne 0x3100f451 */ 11316 L_3100F41E: 11317 edx = MEM32(ecx + 0x4); /* 0x3100F41E: mov edx, dword ptr [ecx + 4] */ 11318 PUSH32(esp, edx); /* 0x3100F421: push edx */ 11319 ecx = esi; /* 0x3100F422: mov ecx, esi */ 11320 RECOMP_ICALL(0x3100FDC0u); /* 0x3100F424: call 0x3100fdc0 */ /* not lifted */ 11321 RECOMP_FLAGS_IN(); 11322 eax = MEM32(esi + 0x4); /* 0x3100F429: mov eax, dword ptr [esi + 4] */ 11323 ecx = MEM32(esi + 0x8); /* 0x3100F42C: mov ecx, dword ptr [esi + 8] */ 11324 MEM32(eax + 0x4) = ecx; /* 0x3100F42F: mov dword ptr [eax + 4], ecx */ 11325 eax = MEM32(esi + 0x4); /* 0x3100F432: mov eax, dword ptr [esi + 4] */ 11326 MEM32(esi + 0x10) = 0; /* 0x3100F435: mov dword ptr [esi + 0x10], 0 */ 11327 MEM32(eax) = eax; /* 0x3100F43C: mov dword ptr [eax], eax */ 11328 eax = MEM32(esi + 0x4); /* 0x3100F43E: mov eax, dword ptr [esi + 4] */ 11329 edx = ebp + (-0x1C); /* 0x3100F441: lea edx, [ebp - 0x1c] */ 11330 PUSH32(esp, edx); /* 0x3100F444: push edx */ 11331 ecx = esi; /* 0x3100F445: mov ecx, esi */ 11332 MEM32(eax + 0x8) = eax; /* 0x3100F447: mov dword ptr [eax + 8], eax */ 11333 RECOMP_ICALL(0x3100E400u); /* 0x3100F44A: call 0x3100e400 */ /* not lifted */ 11334 RECOMP_FLAGS_IN(); 11335 goto L_3100F476; /* 0x3100F44F: jmp 0x3100f476 */ 11336 L_3100F451: 11337 /* cmp eax, edi */ /* 0x3100F451: cmp eax, edi */ 11338 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 11339 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11340 _flag_k = FK_CMP; 11341 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100F476; /* 0x3100F453: je 0x3100f476 */ 11342 L_3100F455: 11343 PUSH32(esp, 0); /* 0x3100F455: push 0 */ 11344 eax = ebp + (-0x20); /* 0x3100F457: lea eax, [ebp - 0x20] */ 11345 PUSH32(esp, eax); /* 0x3100F45A: push eax */ 11346 ecx = ebp + (-0x10); /* 0x3100F45B: lea ecx, [ebp - 0x10] */ 11347 RECOMP_ICALL(0x3100FE30u); /* 0x3100F45E: call 0x3100fe30 */ /* not lifted */ 11348 RECOMP_FLAGS_IN(); 11349 ecx = MEM32(eax); /* 0x3100F463: mov ecx, dword ptr [eax] */ 11350 PUSH32(esp, ecx); /* 0x3100F465: push ecx */ 11351 edx = ebp + (-0x24); /* 0x3100F466: lea edx, [ebp - 0x24] */ 11352 PUSH32(esp, edx); /* 0x3100F469: push edx */ 11353 ecx = esi; /* 0x3100F46A: mov ecx, esi */ 11354 RECOMP_ICALL(0x310099F0u); /* 0x3100F46C: call 0x310099f0 */ /* not lifted */ 11355 RECOMP_FLAGS_IN(); 11356 /* cmp MEM32(ebp + (-0x10)), edi */ /* 0x3100F471: cmp dword ptr [ebp - 0x10], edi */ 11357 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(edi); 11358 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11359 _flag_k = FK_CMP; 11360 RECOMP_BACKEDGE(); 11361 if (CMP_NE(_flag_a, _flag_b)) goto L_3100F455; /* 0x3100F474: jne 0x3100f455 */ 11362 L_3100F476: 11363 eax = MEM32(esi + 0x4); /* 0x3100F476: mov eax, dword ptr [esi + 4] */ 11364 PUSH32(esp, eax); /* 0x3100F479: push eax */ 11365 RECOMP_ICALL(0x31046858u); /* 0x3100F47A: call 0x31046858 */ /* not lifted */ 11366 RECOMP_FLAGS_IN(); 11367 eax = MEM32(esi + 0x8); /* 0x3100F47F: mov eax, dword ptr [esi + 8] */ 11368 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11369 edi = 0; /* 0x3100F482: xor edi, edi */ 11370 _cf = 0; 11371 _flag_k = FK_TEST; 11372 PUSH32(esp, eax); /* 0x3100F484: push eax */ 11373 MEM32(esi + 0x4) = edi; /* 0x3100F485: mov dword ptr [esi + 4], edi */ 11374 MEM32(esi + 0x10) = edi; /* 0x3100F488: mov dword ptr [esi + 0x10], edi */ 11375 RECOMP_ICALL(0x31046858u); /* 0x3100F48B: call 0x31046858 */ /* not lifted */ 11376 RECOMP_FLAGS_IN(); 11377 PUSH32(esp, esi); /* 0x3100F490: push esi */ 11378 MEM32(esi + 0x8) = edi; /* 0x3100F491: mov dword ptr [esi + 8], edi */ 11379 RECOMP_ICALL(0x31046858u); /* 0x3100F494: call 0x31046858 */ /* not lifted */ 11380 RECOMP_FLAGS_IN(); 11381 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 11382 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11383 esp = esp + 0xCu; /* 0x3100F499: add esp, 0xc */ 11384 _flag_k = FK_ADD; 11385 edi = POP32_VAL(esp); /* 0x3100F49C: pop edi */ 11386 L_3100F49D: 11387 ecx = MEM32(ebx + 0x3C); /* 0x3100F49D: mov ecx, dword ptr [ebx + 0x3c] */ 11388 /* test ecx, ecx */ /* 0x3100F4A0: test ecx, ecx */ 11389 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11390 _cf = 0; 11391 _flag_k = FK_TEST; 11392 if (TEST_Z(_flag_a, _flag_b)) goto L_3100F4AA; /* 0x3100F4A2: je 0x3100f4aa */ 11393 L_3100F4A4: 11394 eax = MEM32(ecx); /* 0x3100F4A4: mov eax, dword ptr [ecx] */ 11395 PUSH32(esp, 1); /* 0x3100F4A6: push 1 */ 11396 RECOMP_ICALL(MEM32(eax)); /* 0x3100F4A8: call dword ptr [eax] */ 11397 RECOMP_FLAGS_IN(); 11398 L_3100F4AA: 11399 ecx = MEM32(ebx + 0x40); /* 0x3100F4AA: mov ecx, dword ptr [ebx + 0x40] */ 11400 /* test ecx, ecx */ /* 0x3100F4AD: test ecx, ecx */ 11401 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11402 _cf = 0; 11403 _flag_k = FK_TEST; 11404 if (TEST_Z(_flag_a, _flag_b)) goto L_3100F4B7; /* 0x3100F4AF: je 0x3100f4b7 */ 11405 L_3100F4B1: 11406 edx = MEM32(ecx); /* 0x3100F4B1: mov edx, dword ptr [ecx] */ 11407 PUSH32(esp, 1); /* 0x3100F4B3: push 1 */ 11408 RECOMP_ICALL(MEM32(edx)); /* 0x3100F4B5: call dword ptr [edx] */ 11409 RECOMP_FLAGS_IN(); 11410 L_3100F4B7: 11411 ecx = MEM32(ebx + 0x44); /* 0x3100F4B7: mov ecx, dword ptr [ebx + 0x44] */ 11412 /* test ecx, ecx */ /* 0x3100F4BA: test ecx, ecx */ 11413 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11414 _cf = 0; 11415 _flag_k = FK_TEST; 11416 if (TEST_Z(_flag_a, _flag_b)) goto L_3100F4C4; /* 0x3100F4BC: je 0x3100f4c4 */ 11417 L_3100F4BE: 11418 eax = MEM32(ecx); /* 0x3100F4BE: mov eax, dword ptr [ecx] */ 11419 PUSH32(esp, 1); /* 0x3100F4C0: push 1 */ 11420 RECOMP_ICALL(MEM32(eax)); /* 0x3100F4C2: call dword ptr [eax] */ 11421 RECOMP_FLAGS_IN(); 11422 L_3100F4C4: 11423 ecx = MEM32(ebx + 0x48); /* 0x3100F4C4: mov ecx, dword ptr [ebx + 0x48] */ 11424 /* test ecx, ecx */ /* 0x3100F4C7: test ecx, ecx */ 11425 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11426 _cf = 0; 11427 _flag_k = FK_TEST; 11428 if (TEST_Z(_flag_a, _flag_b)) goto L_3100F4D1; /* 0x3100F4C9: je 0x3100f4d1 */ 11429 L_3100F4CB: 11430 edx = MEM32(ecx); /* 0x3100F4CB: mov edx, dword ptr [ecx] */ 11431 PUSH32(esp, 1); /* 0x3100F4CD: push 1 */ 11432 RECOMP_ICALL(MEM32(edx)); /* 0x3100F4CF: call dword ptr [edx] */ 11433 RECOMP_FLAGS_IN(); 11434 L_3100F4D1: 11435 esi = MEM32(ebx + 0x34); /* 0x3100F4D1: mov esi, dword ptr [ebx + 0x34] */ 11436 /* test esi, esi */ /* 0x3100F4D4: test esi, esi */ 11437 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 11438 _cf = 0; 11439 _flag_k = FK_TEST; 11440 if (TEST_Z(_flag_a, _flag_b)) goto L_3100F4E8; /* 0x3100F4D6: je 0x3100f4e8 */ 11441 L_3100F4D8: 11442 ecx = esi; /* 0x3100F4D8: mov ecx, esi */ 11443 RECOMP_ICALL(0x310013E0u); /* 0x3100F4DA: call 0x310013e0 */ /* not lifted */ 11444 RECOMP_FLAGS_IN(); 11445 PUSH32(esp, esi); /* 0x3100F4DF: push esi */ 11446 RECOMP_ICALL(0x31046858u); /* 0x3100F4E0: call 0x31046858 */ /* not lifted */ 11447 RECOMP_FLAGS_IN(); 11448 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11449 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11450 esp = esp + 4; /* 0x3100F4E5: add esp, 4 */ 11451 _flag_k = FK_ADD; 11452 L_3100F4E8: 11453 ecx = ebx; /* 0x3100F4E8: mov ecx, ebx */ 11454 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3100F4EA: mov dword ptr [ebp - 4], 0xffffffff */ 11455 RECOMP_ICALL(0x3100A2B0u); /* 0x3100F4F1: call 0x3100a2b0 */ /* not lifted */ 11456 RECOMP_FLAGS_IN(); 11457 ecx = MEM32(ebp + (-0xC)); /* 0x3100F4F6: mov ecx, dword ptr [ebp - 0xc] */ 11458 esi = POP32_VAL(esp); /* 0x3100F4F9: pop esi */ 11459 ebx = POP32_VAL(esp); /* 0x3100F4FA: pop ebx */ 11460 MEM32(FS_BASE + (0)) = ecx; /* 0x3100F4FB: mov dword ptr fs:[0], ecx */ 11461 esp = ebp; /* 0x3100F502: mov esp, ebp */ 11462 ebp = POP32_VAL(esp); /* 0x3100F504: pop ebp */ 11463 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100F505: ret */ 11464 RECOMP_REGS_OUT(); 11465 } 11466 11467 void sub_3100F510(void) { 11468 int _fpu_cmp = 0; 11469 uint32_t _cf = 0; 11470 int _df = 1; 11471 uint32_t _flag_k = FK_NONE; 11472 uint32_t _flag_a = 0, _flag_b = 0; 11473 uint32_t _itail_tgt = 0; 11474 RECOMP_REGS_LOCALS 11475 RECOMP_ENTER(0x3100F510u); 11476 11477 L_3100F510: 11478 PUSH32(esp, ebx); /* 0x3100F510: push ebx */ 11479 PUSH32(esp, esi); /* 0x3100F511: push esi */ 11480 esi = ecx; /* 0x3100F512: mov esi, ecx */ 11481 ecx = MEM32(esi + 0x3C); /* 0x3100F514: mov ecx, dword ptr [esi + 0x3c] */ 11482 PUSH32(esp, edi); /* 0x3100F517: push edi */ 11483 RECOMP_ICALL(0x31001CD0u); /* 0x3100F518: call 0x31001cd0 */ /* not lifted */ 11484 RECOMP_FLAGS_IN(); 11485 ecx = MEM32(esi + 0x40); /* 0x3100F51D: mov ecx, dword ptr [esi + 0x40] */ 11486 RECOMP_ICALL(0x31001CD0u); /* 0x3100F520: call 0x31001cd0 */ /* not lifted */ 11487 RECOMP_FLAGS_IN(); 11488 ecx = MEM32(esi + 0x44); /* 0x3100F525: mov ecx, dword ptr [esi + 0x44] */ 11489 RECOMP_ICALL(0x31001CD0u); /* 0x3100F528: call 0x31001cd0 */ /* not lifted */ 11490 RECOMP_FLAGS_IN(); 11491 ecx = MEM32(esi + 0x48); /* 0x3100F52D: mov ecx, dword ptr [esi + 0x48] */ 11492 RECOMP_ICALL(0x31001CD0u); /* 0x3100F530: call 0x31001cd0 */ /* not lifted */ 11493 RECOMP_FLAGS_IN(); 11494 edi = MEM32(esi + 0x34); /* 0x3100F535: mov edi, dword ptr [esi + 0x34] */ 11495 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11496 ebx = 0; /* 0x3100F538: xor ebx, ebx */ 11497 _cf = 0; 11498 _flag_k = FK_TEST; 11499 /* cmp edi, ebx */ /* 0x3100F53A: cmp edi, ebx */ 11500 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 11501 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11502 _flag_k = FK_CMP; 11503 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100F54E; /* 0x3100F53C: je 0x3100f54e */ 11504 L_3100F53E: 11505 ecx = edi; /* 0x3100F53E: mov ecx, edi */ 11506 RECOMP_ICALL(0x310013E0u); /* 0x3100F540: call 0x310013e0 */ /* not lifted */ 11507 RECOMP_FLAGS_IN(); 11508 PUSH32(esp, edi); /* 0x3100F545: push edi */ 11509 RECOMP_ICALL(0x31046858u); /* 0x3100F546: call 0x31046858 */ /* not lifted */ 11510 RECOMP_FLAGS_IN(); 11511 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11512 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11513 esp = esp + 4; /* 0x3100F54B: add esp, 4 */ 11514 _flag_k = FK_ADD; 11515 L_3100F54E: 11516 edi = POP32_VAL(esp); /* 0x3100F54E: pop edi */ 11517 MEM32(esi + 0x34) = ebx; /* 0x3100F54F: mov dword ptr [esi + 0x34], ebx */ 11518 MEM32(esi + 0x38) = ebx; /* 0x3100F552: mov dword ptr [esi + 0x38], ebx */ 11519 esi = POP32_VAL(esp); /* 0x3100F555: pop esi */ 11520 ebx = POP32_VAL(esp); /* 0x3100F556: pop ebx */ 11521 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100F557: ret */ 11522 RECOMP_REGS_OUT(); 11523 } 11524 11525 void sub_3100F560(void) { 11526 int _fpu_cmp = 0; 11527 uint32_t _cf = 0; 11528 int _df = 1; 11529 uint32_t _flag_k = FK_NONE; 11530 uint32_t _flag_a = 0, _flag_b = 0; 11531 uint32_t _itail_tgt = 0; 11532 RECOMP_REGS_LOCALS 11533 RECOMP_ENTER(0x3100F560u); 11534 11535 L_3100F560: 11536 PUSH32(esp, ebp); /* 0x3100F560: push ebp */ 11537 ebp = esp; /* 0x3100F561: mov ebp, esp */ 11538 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x58u); 11539 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11540 esp = esp - 0x58u; /* 0x3100F563: sub esp, 0x58 */ 11541 _flag_k = FK_CMP; 11542 edx = MEM32(ebp + 0x8); /* 0x3100F566: mov edx, dword ptr [ebp + 8] */ 11543 /* cmp edx, 3 */ /* 0x3100F569: cmp edx, 3 */ 11544 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(3); 11545 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11546 _flag_k = FK_CMP; 11547 if (CMP_NE(_flag_a, _flag_b)) goto L_3100F577; /* 0x3100F56C: jne 0x3100f577 */ 11548 L_3100F56E: 11549 eax = MEM32(ecx + 0x48); /* 0x3100F56E: mov eax, dword ptr [ecx + 0x48] */ 11550 esp = ebp; /* 0x3100F571: mov esp, ebp */ 11551 ebp = POP32_VAL(esp); /* 0x3100F573: pop ebp */ 11552 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3100F574: ret 4 */ 11553 L_3100F577: 11554 PUSH32(esp, ebx); /* 0x3100F577: push ebx */ 11555 PUSH32(esp, esi); /* 0x3100F578: push esi */ 11556 PUSH32(esp, edi); /* 0x3100F579: push edi */ 11557 edi = MEM32(ecx + 0x4C); /* 0x3100F57A: mov edi, dword ptr [ecx + 0x4c] */ 11558 ebx = MEM32(edi + 0x4); /* 0x3100F57D: mov ebx, dword ptr [edi + 4] */ 11559 ecx = MEM32(edi + 0x8); /* 0x3100F580: mov ecx, dword ptr [edi + 8] */ 11560 MEM32(ebp + (-0x20)) = edx; /* 0x3100F583: mov dword ptr [ebp - 0x20], edx */ 11561 MEM32(ebp + (-0x1C)) = 0; /* 0x3100F586: mov dword ptr [ebp - 0x1c], 0 */ 11562 esi = MEM32(ebx + 0x4); /* 0x3100F58D: mov esi, dword ptr [ebx + 4] */ 11563 /* cmp esi, ecx */ /* 0x3100F590: cmp esi, ecx */ 11564 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 11565 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11566 _flag_k = FK_CMP; 11567 SET_LO8(eax, 1); /* 0x3100F592: mov al, 1 */ 11568 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100F5AD; /* 0x3100F594: je 0x3100f5ad */ 11569 L_3100F596: 11570 /* cmp edx, MEM32(esi + 0xC) */ /* 0x3100F596: cmp edx, dword ptr [esi + 0xc] */ 11571 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0xC)); 11572 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11573 _flag_k = FK_CMP; 11574 SET_LO8(eax, (CMP_B(_flag_a, _flag_b)) ? 1 : 0); /* 0x3100F599: setb al */ 11575 /* test LO8(eax), LO8(eax) */ /* 0x3100F59C: test al, al */ 11576 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11577 _cf = 0; 11578 _flag_k = FK_NARROW(FK_TEST, 24); 11579 ebx = esi; /* 0x3100F59E: mov ebx, esi */ 11580 if (TEST_Z(_flag_a, _flag_b)) goto L_3100F5A6; /* 0x3100F5A0: je 0x3100f5a6 */ 11581 L_3100F5A2: 11582 esi = MEM32(esi); /* 0x3100F5A2: mov esi, dword ptr [esi] */ 11583 goto L_3100F5A9; /* 0x3100F5A4: jmp 0x3100f5a9 */ 11584 L_3100F5A6: 11585 esi = MEM32(esi + 0x8); /* 0x3100F5A6: mov esi, dword ptr [esi + 8] */ 11586 L_3100F5A9: 11587 /* cmp esi, ecx */ /* 0x3100F5A9: cmp esi, ecx */ 11588 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 11589 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11590 _flag_k = FK_CMP; 11591 RECOMP_BACKEDGE(); 11592 if (CMP_NE(_flag_a, _flag_b)) goto L_3100F596; /* 0x3100F5AB: jne 0x3100f596 */ 11593 L_3100F5AD: 11594 SET_LO8(ecx, MEM8(edi + 0xC)); /* 0x3100F5AD: mov cl, byte ptr [edi + 0xc] */ 11595 /* test LO8(ecx), LO8(ecx) */ /* 0x3100F5B0: test cl, cl */ 11596 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 11597 _cf = 0; 11598 _flag_k = FK_NARROW(FK_TEST, 24); 11599 if (TEST_Z(_flag_a, _flag_b)) goto L_3100F5E2; /* 0x3100F5B2: je 0x3100f5e2 */ 11600 L_3100F5B4: 11601 eax = ebp + 0xB; /* 0x3100F5B4: lea eax, [ebp + 0xb] */ 11602 PUSH32(esp, eax); /* 0x3100F5B7: push eax */ 11603 ecx = ebp + (-0x20); /* 0x3100F5B8: lea ecx, [ebp - 0x20] */ 11604 PUSH32(esp, ecx); /* 0x3100F5BB: push ecx */ 11605 PUSH32(esp, ebx); /* 0x3100F5BC: push ebx */ 11606 PUSH32(esp, esi); /* 0x3100F5BD: push esi */ 11607 edx = ebp + (-0xC); /* 0x3100F5BE: lea edx, [ebp - 0xc] */ 11608 PUSH32(esp, edx); /* 0x3100F5C1: push edx */ 11609 ecx = edi; /* 0x3100F5C2: mov ecx, edi */ 11610 MEM8(ebp + 0xB) = (uint8_t)(1); /* 0x3100F5C4: mov byte ptr [ebp + 0xb], 1 */ 11611 RECOMP_ICALL(0x3100AB20u); /* 0x3100F5C8: call 0x3100ab20 */ /* not lifted */ 11612 RECOMP_FLAGS_IN(); 11613 PUSH32(esp, eax); /* 0x3100F5CD: push eax */ 11614 ecx = ebp + (-0x30); /* 0x3100F5CE: lea ecx, [ebp - 0x30] */ 11615 RECOMP_ICALL(0x3100AB00u); /* 0x3100F5D1: call 0x3100ab00 */ /* not lifted */ 11616 RECOMP_FLAGS_IN(); 11617 ecx = eax; /* 0x3100F5D6: mov ecx, eax */ 11618 eax = MEM32(ecx); /* 0x3100F5D8: mov eax, dword ptr [ecx] */ 11619 ecx = MEM32(ecx + 0x4); /* 0x3100F5DA: mov ecx, dword ptr [ecx + 4] */ 11620 goto L_3100F667; /* 0x3100F5DD: jmp 0x3100f667 */ 11621 L_3100F5E2: 11622 /* test LO8(eax), LO8(eax) */ /* 0x3100F5E2: test al, al */ 11623 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11624 _cf = 0; 11625 _flag_k = FK_NARROW(FK_TEST, 24); 11626 MEM32(ebp + (-0x8)) = ebx; /* 0x3100F5E4: mov dword ptr [ebp - 8], ebx */ 11627 if (TEST_Z(_flag_a, _flag_b)) goto L_3100F622; /* 0x3100F5E7: je 0x3100f622 */ 11628 L_3100F5E9: 11629 edx = ebp + (-0x10); /* 0x3100F5E9: lea edx, [ebp - 0x10] */ 11630 PUSH32(esp, edx); /* 0x3100F5EC: push edx */ 11631 ecx = edi; /* 0x3100F5ED: mov ecx, edi */ 11632 RECOMP_ICALL(0x3100E400u); /* 0x3100F5EF: call 0x3100e400 */ /* not lifted */ 11633 RECOMP_FLAGS_IN(); 11634 ecx = MEM32(ebp + (-0x8)); /* 0x3100F5F4: mov ecx, dword ptr [ebp - 8] */ 11635 /* cmp ecx, MEM32(eax) */ /* 0x3100F5F7: cmp ecx, dword ptr [eax] */ 11636 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 11637 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11638 _flag_k = FK_CMP; 11639 if (CMP_NE(_flag_a, _flag_b)) goto L_3100F61A; /* 0x3100F5F9: jne 0x3100f61a */ 11640 L_3100F5FB: 11641 edx = ebp + (-0x1); /* 0x3100F5FB: lea edx, [ebp - 1] */ 11642 PUSH32(esp, edx); /* 0x3100F5FE: push edx */ 11643 eax = ebp + (-0x20); /* 0x3100F5FF: lea eax, [ebp - 0x20] */ 11644 PUSH32(esp, eax); /* 0x3100F602: push eax */ 11645 PUSH32(esp, ebx); /* 0x3100F603: push ebx */ 11646 PUSH32(esp, esi); /* 0x3100F604: push esi */ 11647 ecx = ebp + (-0x14); /* 0x3100F605: lea ecx, [ebp - 0x14] */ 11648 PUSH32(esp, ecx); /* 0x3100F608: push ecx */ 11649 ecx = edi; /* 0x3100F609: mov ecx, edi */ 11650 MEM8(ebp + (-0x1)) = (uint8_t)(1); /* 0x3100F60B: mov byte ptr [ebp - 1], 1 */ 11651 RECOMP_ICALL(0x3100AB20u); /* 0x3100F60F: call 0x3100ab20 */ /* not lifted */ 11652 RECOMP_FLAGS_IN(); 11653 PUSH32(esp, eax); /* 0x3100F614: push eax */ 11654 ecx = ebp + (-0x38); /* 0x3100F615: lea ecx, [ebp - 0x38] */ 11655 goto L_3100F65B; /* 0x3100F618: jmp 0x3100f65b */ 11656 L_3100F61A: 11657 ecx = ebp + (-0x8); /* 0x3100F61A: lea ecx, [ebp - 8] */ 11658 RECOMP_ICALL(0x31010B60u); /* 0x3100F61D: call 0x31010b60 */ /* not lifted */ 11659 RECOMP_FLAGS_IN(); 11660 L_3100F622: 11661 eax = MEM32(ebp + (-0x8)); /* 0x3100F622: mov eax, dword ptr [ebp - 8] */ 11662 ecx = MEM32(eax + 0xC); /* 0x3100F625: mov ecx, dword ptr [eax + 0xc] */ 11663 /* cmp ecx, MEM32(ebp + (-0x20)) */ /* 0x3100F628: cmp ecx, dword ptr [ebp - 0x20] */ 11664 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + (-0x20))); 11665 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11666 _flag_k = FK_CMP; 11667 if (CMP_AE(_flag_a, _flag_b)) goto L_3100F64C; /* 0x3100F62B: jae 0x3100f64c */ 11668 L_3100F62D: 11669 edx = ebp + (-0x2); /* 0x3100F62D: lea edx, [ebp - 2] */ 11670 PUSH32(esp, edx); /* 0x3100F630: push edx */ 11671 eax = ebp + (-0x20); /* 0x3100F631: lea eax, [ebp - 0x20] */ 11672 PUSH32(esp, eax); /* 0x3100F634: push eax */ 11673 PUSH32(esp, ebx); /* 0x3100F635: push ebx */ 11674 PUSH32(esp, esi); /* 0x3100F636: push esi */ 11675 ecx = ebp + (-0x18); /* 0x3100F637: lea ecx, [ebp - 0x18] */ 11676 PUSH32(esp, ecx); /* 0x3100F63A: push ecx */ 11677 ecx = edi; /* 0x3100F63B: mov ecx, edi */ 11678 MEM8(ebp + (-0x2)) = (uint8_t)(1); /* 0x3100F63D: mov byte ptr [ebp - 2], 1 */ 11679 RECOMP_ICALL(0x3100AB20u); /* 0x3100F641: call 0x3100ab20 */ /* not lifted */ 11680 RECOMP_FLAGS_IN(); 11681 PUSH32(esp, eax); /* 0x3100F646: push eax */ 11682 ecx = ebp + (-0x40); /* 0x3100F647: lea ecx, [ebp - 0x40] */ 11683 goto L_3100F65B; /* 0x3100F64A: jmp 0x3100f65b */ 11684 L_3100F64C: 11685 eax = ebp + (-0x3); /* 0x3100F64C: lea eax, [ebp - 3] */ 11686 ecx = ebp + (-0x8); /* 0x3100F64F: lea ecx, [ebp - 8] */ 11687 PUSH32(esp, eax); /* 0x3100F652: push eax */ 11688 PUSH32(esp, ecx); /* 0x3100F653: push ecx */ 11689 MEM8(ebp + (-0x3)) = (uint8_t)(0); /* 0x3100F654: mov byte ptr [ebp - 3], 0 */ 11690 ecx = ebp + (-0x48); /* 0x3100F658: lea ecx, [ebp - 0x48] */ 11691 L_3100F65B: 11692 RECOMP_ICALL(0x3100AB00u); /* 0x3100F65B: call 0x3100ab00 */ /* not lifted */ 11693 RECOMP_FLAGS_IN(); 11694 edx = eax; /* 0x3100F660: mov edx, eax */ 11695 eax = MEM32(edx); /* 0x3100F662: mov eax, dword ptr [edx] */ 11696 ecx = MEM32(edx + 0x4); /* 0x3100F664: mov ecx, dword ptr [edx + 4] */ 11697 L_3100F667: 11698 MEM32(ebp + (-0x28)) = eax; /* 0x3100F667: mov dword ptr [ebp - 0x28], eax */ 11699 MEM32(ebp + (-0x24)) = ecx; /* 0x3100F66A: mov dword ptr [ebp - 0x24], ecx */ 11700 eax = ebp + (-0x24); /* 0x3100F66D: lea eax, [ebp - 0x24] */ 11701 PUSH32(esp, eax); /* 0x3100F670: push eax */ 11702 ecx = ebp + (-0x28); /* 0x3100F671: lea ecx, [ebp - 0x28] */ 11703 PUSH32(esp, ecx); /* 0x3100F674: push ecx */ 11704 ecx = ebp + (-0x50); /* 0x3100F675: lea ecx, [ebp - 0x50] */ 11705 RECOMP_ICALL(0x3100AB00u); /* 0x3100F678: call 0x3100ab00 */ /* not lifted */ 11706 RECOMP_FLAGS_IN(); 11707 edx = eax; /* 0x3100F67D: mov edx, eax */ 11708 eax = MEM32(edx); /* 0x3100F67F: mov eax, dword ptr [edx] */ 11709 ecx = MEM32(edx + 0x4); /* 0x3100F681: mov ecx, dword ptr [edx + 4] */ 11710 eax = MEM32(eax + 0x10); /* 0x3100F684: mov eax, dword ptr [eax + 0x10] */ 11711 edi = POP32_VAL(esp); /* 0x3100F687: pop edi */ 11712 esi = POP32_VAL(esp); /* 0x3100F688: pop esi */ 11713 MEM32(ebp + (-0x54)) = ecx; /* 0x3100F689: mov dword ptr [ebp - 0x54], ecx */ 11714 ebx = POP32_VAL(esp); /* 0x3100F68C: pop ebx */ 11715 esp = ebp; /* 0x3100F68D: mov esp, ebp */ 11716 ebp = POP32_VAL(esp); /* 0x3100F68F: pop ebp */ 11717 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3100F690: ret 4 */ 11718 RECOMP_REGS_OUT(); 11719 } 11720 11721 void sub_3100F667(void) { 11722 int _fpu_cmp = 0; 11723 uint32_t _cf = 0; 11724 int _df = 1; 11725 uint32_t _flag_k = FK_NONE; 11726 uint32_t _flag_a = 0, _flag_b = 0; 11727 uint32_t _itail_tgt = 0; 11728 RECOMP_REGS_LOCALS 11729 RECOMP_ENTER(0x3100F667u); 11730 11731 L_3100F667: 11732 MEM32(ebp + (-0x28)) = eax; /* 0x3100F667: mov dword ptr [ebp - 0x28], eax */ 11733 MEM32(ebp + (-0x24)) = ecx; /* 0x3100F66A: mov dword ptr [ebp - 0x24], ecx */ 11734 eax = ebp + (-0x24); /* 0x3100F66D: lea eax, [ebp - 0x24] */ 11735 PUSH32(esp, eax); /* 0x3100F670: push eax */ 11736 ecx = ebp + (-0x28); /* 0x3100F671: lea ecx, [ebp - 0x28] */ 11737 PUSH32(esp, ecx); /* 0x3100F674: push ecx */ 11738 ecx = ebp + (-0x50); /* 0x3100F675: lea ecx, [ebp - 0x50] */ 11739 RECOMP_ICALL(0x3100AB00u); /* 0x3100F678: call 0x3100ab00 */ /* not lifted */ 11740 RECOMP_FLAGS_IN(); 11741 edx = eax; /* 0x3100F67D: mov edx, eax */ 11742 eax = MEM32(edx); /* 0x3100F67F: mov eax, dword ptr [edx] */ 11743 ecx = MEM32(edx + 0x4); /* 0x3100F681: mov ecx, dword ptr [edx + 4] */ 11744 eax = MEM32(eax + 0x10); /* 0x3100F684: mov eax, dword ptr [eax + 0x10] */ 11745 edi = POP32_VAL(esp); /* 0x3100F687: pop edi */ 11746 esi = POP32_VAL(esp); /* 0x3100F688: pop esi */ 11747 MEM32(ebp + (-0x54)) = ecx; /* 0x3100F689: mov dword ptr [ebp - 0x54], ecx */ 11748 ebx = POP32_VAL(esp); /* 0x3100F68C: pop ebx */ 11749 esp = ebp; /* 0x3100F68D: mov esp, ebp */ 11750 ebp = POP32_VAL(esp); /* 0x3100F68F: pop ebp */ 11751 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3100F690: ret 4 */ 11752 RECOMP_REGS_OUT(); 11753 } 11754 11755 void sub_3100F6A0(void) { 11756 int _fpu_cmp = 0; 11757 uint32_t _cf = 0; 11758 int _df = 1; 11759 uint32_t _flag_k = FK_NONE; 11760 uint32_t _flag_a = 0, _flag_b = 0; 11761 uint32_t _itail_tgt = 0; 11762 RECOMP_REGS_LOCALS 11763 RECOMP_ENTER(0x3100F6A0u); 11764 11765 L_3100F6A0: 11766 PUSH32(esp, ebp); /* 0x3100F6A0: push ebp */ 11767 ebp = esp; /* 0x3100F6A1: mov ebp, esp */ 11768 PUSH32(esp, esi); /* 0x3100F6A3: push esi */ 11769 PUSH32(esp, edi); /* 0x3100F6A4: push edi */ 11770 edi = MEM32(ebp + 0x8); /* 0x3100F6A5: mov edi, dword ptr [ebp + 8] */ 11771 eax = MEM32(edi + 0x8); /* 0x3100F6A8: mov eax, dword ptr [edi + 8] */ 11772 PUSH32(esp, eax); /* 0x3100F6AB: push eax */ 11773 RECOMP_ICALL(0x3100F560u); /* 0x3100F6AC: call 0x3100f560 */ /* not lifted */ 11774 RECOMP_FLAGS_IN(); 11775 esi = eax; /* 0x3100F6B1: mov esi, eax */ 11776 PUSH32(esp, 2); /* 0x3100F6B3: push 2 */ 11777 ecx = esi; /* 0x3100F6B5: mov ecx, esi */ 11778 RECOMP_ICALL(0x31002960u); /* 0x3100F6B7: call 0x31002960 */ /* not lifted */ 11779 RECOMP_FLAGS_IN(); 11780 eax = MEM32(ebp + 0xC); /* 0x3100F6BC: mov eax, dword ptr [ebp + 0xc] */ 11781 eax = MEM32(eax); /* 0x3100F6BF: mov eax, dword ptr [eax] */ 11782 /* cmp MEM32(eax), 0x80000000u */ /* 0x3100F6C1: cmp dword ptr [eax], 0x80000000 */ 11783 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0x80000000u); 11784 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11785 _flag_k = FK_CMP; 11786 edx = eax + 0x8; /* 0x3100F6C7: lea edx, [eax + 8] */ 11787 if (CMP_B(_flag_a, _flag_b)) goto L_3100F6CF; /* 0x3100F6CA: jb 0x3100f6cf */ 11788 L_3100F6CC: 11789 edx = MEM32(eax + 0x8); /* 0x3100F6CC: mov edx, dword ptr [eax + 8] */ 11790 L_3100F6CF: 11791 eax = MEM32(eax + 0x4); /* 0x3100F6CF: mov eax, dword ptr [eax + 4] */ 11792 ecx = MEM32(edi + 0xC); /* 0x3100F6D2: mov ecx, dword ptr [edi + 0xc] */ 11793 edi = MEM32(edi + 0x8); /* 0x3100F6D5: mov edi, dword ptr [edi + 8] */ 11794 PUSH32(esp, edx); /* 0x3100F6D8: push edx */ 11795 PUSH32(esp, eax); /* 0x3100F6D9: push eax */ 11796 PUSH32(esp, ecx); /* 0x3100F6DA: push ecx */ 11797 PUSH32(esp, edi); /* 0x3100F6DB: push edi */ 11798 ecx = esi; /* 0x3100F6DC: mov ecx, esi */ 11799 RECOMP_ICALL(0x31003410u); /* 0x3100F6DE: call 0x31003410 */ /* not lifted */ 11800 RECOMP_FLAGS_IN(); 11801 ecx = esi; /* 0x3100F6E3: mov ecx, esi */ 11802 edi = eax; /* 0x3100F6E5: mov edi, eax */ 11803 RECOMP_ICALL(0x310029E0u); /* 0x3100F6E7: call 0x310029e0 */ /* not lifted */ 11804 RECOMP_FLAGS_IN(); 11805 eax = edi; /* 0x3100F6EC: mov eax, edi */ 11806 edi = POP32_VAL(esp); /* 0x3100F6EE: pop edi */ 11807 esi = POP32_VAL(esp); /* 0x3100F6EF: pop esi */ 11808 ebp = POP32_VAL(esp); /* 0x3100F6F0: pop ebp */ 11809 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100F6F1: ret 8 */ 11810 RECOMP_REGS_OUT(); 11811 } 11812 11813 void sub_3100F700(void) { 11814 int _fpu_cmp = 0; 11815 uint32_t _cf = 0; 11816 int _df = 1; 11817 uint32_t _flag_k = FK_NONE; 11818 uint32_t _flag_a = 0, _flag_b = 0; 11819 uint32_t _itail_tgt = 0; 11820 RECOMP_REGS_LOCALS 11821 RECOMP_ENTER(0x3100F700u); 11822 11823 L_3100F700: 11824 PUSH32(esp, ebp); /* 0x3100F700: push ebp */ 11825 ebp = esp; /* 0x3100F701: mov ebp, esp */ 11826 PUSH32(esp, 0xFFFFFFFFu); /* 0x3100F703: push -1 */ 11827 PUSH32(esp, 0x31047BCFu); /* 0x3100F705: push 0x31047bcf */ 11828 eax = MEM32(FS_BASE + (0)); /* 0x3100F70A: mov eax, dword ptr fs:[0] */ 11829 PUSH32(esp, eax); /* 0x3100F710: push eax */ 11830 MEM32(FS_BASE + (0)) = esp; /* 0x3100F711: mov dword ptr fs:[0], esp */ 11831 PUSH32(esp, ecx); /* 0x3100F718: push ecx */ 11832 PUSH32(esp, ebx); /* 0x3100F719: push ebx */ 11833 ebx = MEM32(ebp + 0xC); /* 0x3100F71A: mov ebx, dword ptr [ebp + 0xc] */ 11834 eax = MEM32(ebx + 0x8); /* 0x3100F71D: mov eax, dword ptr [ebx + 8] */ 11835 PUSH32(esp, esi); /* 0x3100F720: push esi */ 11836 PUSH32(esp, eax); /* 0x3100F721: push eax */ 11837 MEM32(ebp + (-0x10)) = 0; /* 0x3100F722: mov dword ptr [ebp - 0x10], 0 */ 11838 RECOMP_ICALL(0x3100F560u); /* 0x3100F729: call 0x3100f560 */ /* not lifted */ 11839 RECOMP_FLAGS_IN(); 11840 esi = eax; /* 0x3100F72E: mov esi, eax */ 11841 PUSH32(esp, 1); /* 0x3100F730: push 1 */ 11842 ecx = esi; /* 0x3100F732: mov ecx, esi */ 11843 RECOMP_ICALL(0x31002960u); /* 0x3100F734: call 0x31002960 */ /* not lifted */ 11844 RECOMP_FLAGS_IN(); 11845 eax = MEM32(ebx + 0xC); /* 0x3100F739: mov eax, dword ptr [ebx + 0xc] */ 11846 ebx = MEM32(ebx + 0x8); /* 0x3100F73C: mov ebx, dword ptr [ebx + 8] */ 11847 PUSH32(esp, eax); /* 0x3100F73F: push eax */ 11848 PUSH32(esp, ebx); /* 0x3100F740: push ebx */ 11849 eax = ebp + 0xC; /* 0x3100F741: lea eax, [ebp + 0xc] */ 11850 PUSH32(esp, eax); /* 0x3100F744: push eax */ 11851 ecx = esi; /* 0x3100F745: mov ecx, esi */ 11852 RECOMP_ICALL(0x31003080u); /* 0x3100F747: call 0x31003080 */ /* not lifted */ 11853 RECOMP_FLAGS_IN(); 11854 ecx = esi; /* 0x3100F74C: mov ecx, esi */ 11855 MEM32(ebp + (-0x4)) = 1; /* 0x3100F74E: mov dword ptr [ebp - 4], 1 */ 11856 RECOMP_ICALL(0x310029E0u); /* 0x3100F755: call 0x310029e0 */ /* not lifted */ 11857 RECOMP_FLAGS_IN(); 11858 ecx = MEM32(ebp + 0xC); /* 0x3100F75A: mov ecx, dword ptr [ebp + 0xc] */ 11859 MEM32(ebp + (-0x10)) = ecx; /* 0x3100F75D: mov dword ptr [ebp - 0x10], ecx */ 11860 ebx = MEM32(ebp + (-0x10)); /* 0x3100F760: mov ebx, dword ptr [ebp - 0x10] */ 11861 _flag_a = __atomic_fetch_add((uint32_t *)ADDR(ebx), 1, __ATOMIC_SEQ_CST); _flag_b = 1; /* 0x3100F763: lock inc dword ptr [ebx] */ 11862 _flag_k = FK_INC; 11863 esi = MEM32(ebp + 0x8); /* 0x3100F766: mov esi, dword ptr [ebp + 8] */ 11864 edx = MEM32(ebp + 0xC); /* 0x3100F769: mov edx, dword ptr [ebp + 0xc] */ 11865 MEM32(esi) = edx; /* 0x3100F76C: mov dword ptr [esi], edx */ 11866 MEM32(ebp + (-0x10)) = 1; /* 0x3100F76E: mov dword ptr [ebp - 0x10], 1 */ 11867 ecx = ebp + 0xC; /* 0x3100F775: lea ecx, [ebp + 0xc] */ 11868 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3100F778: mov byte ptr [ebp - 4], 0 */ 11869 RECOMP_ICALL(0x31004760u); /* 0x3100F77C: call 0x31004760 */ /* not lifted */ 11870 RECOMP_FLAGS_IN(); 11871 ecx = MEM32(ebp + (-0xC)); /* 0x3100F781: mov ecx, dword ptr [ebp - 0xc] */ 11872 eax = esi; /* 0x3100F784: mov eax, esi */ 11873 esi = POP32_VAL(esp); /* 0x3100F786: pop esi */ 11874 ebx = POP32_VAL(esp); /* 0x3100F787: pop ebx */ 11875 MEM32(FS_BASE + (0)) = ecx; /* 0x3100F788: mov dword ptr fs:[0], ecx */ 11876 esp = ebp; /* 0x3100F78F: mov esp, ebp */ 11877 ebp = POP32_VAL(esp); /* 0x3100F791: pop ebp */ 11878 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100F792: ret 8 */ 11879 RECOMP_REGS_OUT(); 11880 } 11881 11882 void sub_3100F7A0(void) { 11883 int _fpu_cmp = 0; 11884 uint32_t _cf = 0; 11885 int _df = 1; 11886 uint32_t _flag_k = FK_NONE; 11887 uint32_t _flag_a = 0, _flag_b = 0; 11888 uint32_t _itail_tgt = 0; 11889 RECOMP_REGS_LOCALS 11890 RECOMP_ENTER(0x3100F7A0u); 11891 11892 L_3100F7A0: 11893 PUSH32(esp, ebp); /* 0x3100F7A0: push ebp */ 11894 ebp = esp; /* 0x3100F7A1: mov ebp, esp */ 11895 PUSH32(esp, esi); /* 0x3100F7A3: push esi */ 11896 PUSH32(esp, edi); /* 0x3100F7A4: push edi */ 11897 edi = MEM32(ebp + 0x8); /* 0x3100F7A5: mov edi, dword ptr [ebp + 8] */ 11898 eax = MEM32(edi + 0x8); /* 0x3100F7A8: mov eax, dword ptr [edi + 8] */ 11899 PUSH32(esp, eax); /* 0x3100F7AB: push eax */ 11900 RECOMP_ICALL(0x3100F560u); /* 0x3100F7AC: call 0x3100f560 */ /* not lifted */ 11901 RECOMP_FLAGS_IN(); 11902 esi = eax; /* 0x3100F7B1: mov esi, eax */ 11903 PUSH32(esp, 2); /* 0x3100F7B3: push 2 */ 11904 ecx = esi; /* 0x3100F7B5: mov ecx, esi */ 11905 RECOMP_ICALL(0x31002960u); /* 0x3100F7B7: call 0x31002960 */ /* not lifted */ 11906 RECOMP_FLAGS_IN(); 11907 eax = MEM32(edi + 0xC); /* 0x3100F7BC: mov eax, dword ptr [edi + 0xc] */ 11908 edi = MEM32(edi + 0x8); /* 0x3100F7BF: mov edi, dword ptr [edi + 8] */ 11909 PUSH32(esp, eax); /* 0x3100F7C2: push eax */ 11910 PUSH32(esp, edi); /* 0x3100F7C3: push edi */ 11911 ecx = esi; /* 0x3100F7C4: mov ecx, esi */ 11912 RECOMP_ICALL(0x31003640u); /* 0x3100F7C6: call 0x31003640 */ /* not lifted */ 11913 RECOMP_FLAGS_IN(); 11914 ecx = esi; /* 0x3100F7CB: mov ecx, esi */ 11915 edi = eax; /* 0x3100F7CD: mov edi, eax */ 11916 RECOMP_ICALL(0x310029E0u); /* 0x3100F7CF: call 0x310029e0 */ /* not lifted */ 11917 RECOMP_FLAGS_IN(); 11918 eax = edi; /* 0x3100F7D4: mov eax, edi */ 11919 edi = POP32_VAL(esp); /* 0x3100F7D6: pop edi */ 11920 esi = POP32_VAL(esp); /* 0x3100F7D7: pop esi */ 11921 ebp = POP32_VAL(esp); /* 0x3100F7D8: pop ebp */ 11922 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3100F7D9: ret 4 */ 11923 RECOMP_REGS_OUT(); 11924 } 11925 11926 void sub_3100F7E0(void) { 11927 int _fpu_cmp = 0; 11928 uint32_t _cf = 0; 11929 int _df = 1; 11930 uint32_t _flag_k = FK_NONE; 11931 uint32_t _flag_a = 0, _flag_b = 0; 11932 uint32_t _itail_tgt = 0; 11933 RECOMP_REGS_LOCALS 11934 RECOMP_ENTER(0x3100F7E0u); 11935 11936 L_3100F7E0: 11937 PUSH32(esp, ebp); /* 0x3100F7E0: push ebp */ 11938 ebp = esp; /* 0x3100F7E1: mov ebp, esp */ 11939 PUSH32(esp, esi); /* 0x3100F7E3: push esi */ 11940 PUSH32(esp, edi); /* 0x3100F7E4: push edi */ 11941 edi = MEM32(ebp + 0x8); /* 0x3100F7E5: mov edi, dword ptr [ebp + 8] */ 11942 eax = MEM32(edi + 0x8); /* 0x3100F7E8: mov eax, dword ptr [edi + 8] */ 11943 PUSH32(esp, eax); /* 0x3100F7EB: push eax */ 11944 RECOMP_ICALL(0x3100F560u); /* 0x3100F7EC: call 0x3100f560 */ /* not lifted */ 11945 RECOMP_FLAGS_IN(); 11946 esi = eax; /* 0x3100F7F1: mov esi, eax */ 11947 PUSH32(esp, 1); /* 0x3100F7F3: push 1 */ 11948 ecx = esi; /* 0x3100F7F5: mov ecx, esi */ 11949 RECOMP_ICALL(0x31002960u); /* 0x3100F7F7: call 0x31002960 */ /* not lifted */ 11950 RECOMP_FLAGS_IN(); 11951 eax = MEM32(edi + 0xC); /* 0x3100F7FC: mov eax, dword ptr [edi + 0xc] */ 11952 edi = MEM32(edi + 0x8); /* 0x3100F7FF: mov edi, dword ptr [edi + 8] */ 11953 PUSH32(esp, eax); /* 0x3100F802: push eax */ 11954 PUSH32(esp, edi); /* 0x3100F803: push edi */ 11955 ecx = esi; /* 0x3100F804: mov ecx, esi */ 11956 RECOMP_ICALL(0x31002C50u); /* 0x3100F806: call 0x31002c50 */ /* not lifted */ 11957 RECOMP_FLAGS_IN(); 11958 ecx = esi; /* 0x3100F80B: mov ecx, esi */ 11959 edi = eax; /* 0x3100F80D: mov edi, eax */ 11960 RECOMP_ICALL(0x310029E0u); /* 0x3100F80F: call 0x310029e0 */ /* not lifted */ 11961 RECOMP_FLAGS_IN(); 11962 eax = edi; /* 0x3100F814: mov eax, edi */ 11963 edi = POP32_VAL(esp); /* 0x3100F816: pop edi */ 11964 esi = POP32_VAL(esp); /* 0x3100F817: pop esi */ 11965 ebp = POP32_VAL(esp); /* 0x3100F818: pop ebp */ 11966 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3100F819: ret 4 */ 11967 RECOMP_REGS_OUT(); 11968 } 11969 11970 void sub_3100F820(void) { 11971 int _fpu_cmp = 0; 11972 uint32_t _cf = 0; 11973 int _df = 1; 11974 uint32_t _flag_k = FK_NONE; 11975 uint32_t _flag_a = 0, _flag_b = 0; 11976 uint32_t _itail_tgt = 0; 11977 RECOMP_REGS_LOCALS 11978 RECOMP_ENTER(0x3100F820u); 11979 11980 L_3100F820: 11981 PUSH32(esp, ebp); /* 0x3100F820: push ebp */ 11982 ebp = esp; /* 0x3100F821: mov ebp, esp */ 11983 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 11984 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11985 esp = esp - 0x18u; /* 0x3100F823: sub esp, 0x18 */ 11986 _flag_k = FK_CMP; 11987 PUSH32(esp, esi); /* 0x3100F826: push esi */ 11988 PUSH32(esp, edi); /* 0x3100F827: push edi */ 11989 edi = MEM32(ebp + 0x8); /* 0x3100F828: mov edi, dword ptr [ebp + 8] */ 11990 esi = ecx; /* 0x3100F82B: mov esi, ecx */ 11991 eax = ebp + (-0x8); /* 0x3100F82D: lea eax, [ebp - 8] */ 11992 PUSH32(esp, eax); /* 0x3100F830: push eax */ 11993 ecx = ebp + (-0x10); /* 0x3100F831: lea ecx, [ebp - 0x10] */ 11994 PUSH32(esp, ecx); /* 0x3100F834: push ecx */ 11995 ecx = esi + 0x14; /* 0x3100F835: lea ecx, [esi + 0x14] */ 11996 MEM32(ebp + (-0x8)) = edi; /* 0x3100F838: mov dword ptr [ebp - 8], edi */ 11997 MEM32(ebp + (-0x4)) = 0; /* 0x3100F83B: mov dword ptr [ebp - 4], 0 */ 11998 RECOMP_ICALL(0x3100FA40u); /* 0x3100F842: call 0x3100fa40 */ /* not lifted */ 11999 RECOMP_FLAGS_IN(); 12000 edx = eax; /* 0x3100F847: mov edx, eax */ 12001 eax = MEM32(edx); /* 0x3100F849: mov eax, dword ptr [edx] */ 12002 ecx = MEM32(edx + 0x4); /* 0x3100F84B: mov ecx, dword ptr [edx + 4] */ 12003 edx = MEM32(eax + 0x10); /* 0x3100F84E: mov edx, dword ptr [eax + 0x10] */ 12004 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 12005 edx = edx + 1; /* 0x3100F851: inc edx */ 12006 _flag_k = FK_INC; 12007 MEM32(eax + 0x10) = edx; /* 0x3100F852: mov dword ptr [eax + 0x10], edx */ 12008 eax = edx; /* 0x3100F855: mov eax, edx */ 12009 /* cmp eax, 1 */ /* 0x3100F857: cmp eax, 1 */ 12010 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12011 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12012 _flag_k = FK_CMP; 12013 MEM32(ebp + (-0x14)) = ecx; /* 0x3100F85A: mov dword ptr [ebp - 0x14], ecx */ 12014 if (CMP_NE(_flag_a, _flag_b)) goto L_3100F873; /* 0x3100F85D: jne 0x3100f873 */ 12015 L_3100F85F: 12016 eax = MEM32(edi + 0x8); /* 0x3100F85F: mov eax, dword ptr [edi + 8] */ 12017 PUSH32(esp, eax); /* 0x3100F862: push eax */ 12018 ecx = esi; /* 0x3100F863: mov ecx, esi */ 12019 RECOMP_ICALL(0x3100F560u); /* 0x3100F865: call 0x3100f560 */ /* not lifted */ 12020 RECOMP_FLAGS_IN(); 12021 PUSH32(esp, 2); /* 0x3100F86A: push 2 */ 12022 ecx = eax; /* 0x3100F86C: mov ecx, eax */ 12023 RECOMP_ICALL(0x31002960u); /* 0x3100F86E: call 0x31002960 */ /* not lifted */ 12024 RECOMP_FLAGS_IN(); 12025 L_3100F873: 12026 edi = POP32_VAL(esp); /* 0x3100F873: pop edi */ 12027 SET_LO8(eax, 1); /* 0x3100F874: mov al, 1 */ 12028 esi = POP32_VAL(esp); /* 0x3100F876: pop esi */ 12029 esp = ebp; /* 0x3100F877: mov esp, ebp */ 12030 ebp = POP32_VAL(esp); /* 0x3100F879: pop ebp */ 12031 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3100F87A: ret 4 */ 12032 RECOMP_REGS_OUT(); 12033 } 12034 12035 void sub_3100F880(void) { 12036 int _fpu_cmp = 0; 12037 uint32_t _cf = 0; 12038 int _df = 1; 12039 uint32_t _flag_k = FK_NONE; 12040 uint32_t _flag_a = 0, _flag_b = 0; 12041 uint32_t _itail_tgt = 0; 12042 RECOMP_REGS_LOCALS 12043 RECOMP_ENTER(0x3100F880u); 12044 12045 L_3100F880: 12046 PUSH32(esp, ebp); /* 0x3100F880: push ebp */ 12047 ebp = esp; /* 0x3100F881: mov ebp, esp */ 12048 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 12049 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12050 esp = esp - 0xCu; /* 0x3100F883: sub esp, 0xc */ 12051 _flag_k = FK_CMP; 12052 eax = MEM32(ebp + 0x8); /* 0x3100F886: mov eax, dword ptr [ebp + 8] */ 12053 PUSH32(esp, ebx); /* 0x3100F889: push ebx */ 12054 PUSH32(esp, esi); /* 0x3100F88A: push esi */ 12055 PUSH32(esp, edi); /* 0x3100F88B: push edi */ 12056 edi = ecx; /* 0x3100F88C: mov edi, ecx */ 12057 ecx = ebp + (-0x4); /* 0x3100F88E: lea ecx, [ebp - 4] */ 12058 esi = edi + 0x14; /* 0x3100F891: lea esi, [edi + 0x14] */ 12059 PUSH32(esp, ecx); /* 0x3100F894: push ecx */ 12060 ecx = esi; /* 0x3100F895: mov ecx, esi */ 12061 MEM32(ebp + (-0x4)) = eax; /* 0x3100F897: mov dword ptr [ebp - 4], eax */ 12062 RECOMP_ICALL(0x3100FE00u); /* 0x3100F89A: call 0x3100fe00 */ /* not lifted */ 12063 RECOMP_FLAGS_IN(); 12064 ecx = MEM32(esi + 0x4); /* 0x3100F89F: mov ecx, dword ptr [esi + 4] */ 12065 /* cmp eax, ecx */ /* 0x3100F8A2: cmp eax, ecx */ 12066 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 12067 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12068 _flag_k = FK_CMP; 12069 MEM32(ebp + (-0x8)) = eax; /* 0x3100F8A4: mov dword ptr [ebp - 8], eax */ 12070 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100F8B6; /* 0x3100F8A7: je 0x3100f8b6 */ 12071 L_3100F8A9: 12072 edx = MEM32(ebp + (-0x4)); /* 0x3100F8A9: mov edx, dword ptr [ebp - 4] */ 12073 /* cmp edx, MEM32(eax + 0xC) */ /* 0x3100F8AC: cmp edx, dword ptr [eax + 0xc] */ 12074 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0xC)); 12075 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12076 _flag_k = FK_CMP; 12077 if (CMP_B(_flag_a, _flag_b)) goto L_3100F8B6; /* 0x3100F8AF: jb 0x3100f8b6 */ 12078 L_3100F8B1: 12079 eax = ebp + (-0x8); /* 0x3100F8B1: lea eax, [ebp - 8] */ 12080 goto L_3100F8BC; /* 0x3100F8B4: jmp 0x3100f8bc */ 12081 L_3100F8B6: 12082 MEM32(ebp + (-0xC)) = ecx; /* 0x3100F8B6: mov dword ptr [ebp - 0xc], ecx */ 12083 eax = ebp + (-0xC); /* 0x3100F8B9: lea eax, [ebp - 0xc] */ 12084 L_3100F8BC: 12085 ebx = MEM32(eax); /* 0x3100F8BC: mov ebx, dword ptr [eax] */ 12086 _flag_a = (uint32_t)(MEM32(ebx + 0x10)); _flag_b = (uint32_t)(1); 12087 MEM32(ebx + 0x10) = MEM32(ebx + 0x10) - 1; /* 0x3100F8BE: dec dword ptr [ebx + 0x10] */ 12088 _flag_k = FK_DEC; 12089 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3100F8E4; /* 0x3100F8C1: jne 0x3100f8e4 */ 12090 L_3100F8C3: 12091 eax = MEM32(ebp + 0x8); /* 0x3100F8C3: mov eax, dword ptr [ebp + 8] */ 12092 eax = MEM32(eax + 0x8); /* 0x3100F8C6: mov eax, dword ptr [eax + 8] */ 12093 PUSH32(esp, eax); /* 0x3100F8C9: push eax */ 12094 ecx = edi; /* 0x3100F8CA: mov ecx, edi */ 12095 RECOMP_ICALL(0x3100F560u); /* 0x3100F8CC: call 0x3100f560 */ /* not lifted */ 12096 RECOMP_FLAGS_IN(); 12097 ecx = eax; /* 0x3100F8D1: mov ecx, eax */ 12098 RECOMP_ICALL(0x310029E0u); /* 0x3100F8D3: call 0x310029e0 */ /* not lifted */ 12099 RECOMP_FLAGS_IN(); 12100 PUSH32(esp, ebx); /* 0x3100F8D8: push ebx */ 12101 ecx = ebp + 0x8; /* 0x3100F8D9: lea ecx, [ebp + 8] */ 12102 PUSH32(esp, ecx); /* 0x3100F8DC: push ecx */ 12103 ecx = esi; /* 0x3100F8DD: mov ecx, esi */ 12104 RECOMP_ICALL(0x310099F0u); /* 0x3100F8DF: call 0x310099f0 */ /* not lifted */ 12105 RECOMP_FLAGS_IN(); 12106 L_3100F8E4: 12107 edi = POP32_VAL(esp); /* 0x3100F8E4: pop edi */ 12108 esi = POP32_VAL(esp); /* 0x3100F8E5: pop esi */ 12109 ebx = POP32_VAL(esp); /* 0x3100F8E6: pop ebx */ 12110 esp = ebp; /* 0x3100F8E7: mov esp, ebp */ 12111 ebp = POP32_VAL(esp); /* 0x3100F8E9: pop ebp */ 12112 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3100F8EA: ret 4 */ 12113 RECOMP_REGS_OUT(); 12114 } 12115 12116 void sub_3100F8F0(void) { 12117 int _fpu_cmp = 0; 12118 uint32_t _cf = 0; 12119 int _df = 1; 12120 uint32_t _flag_k = FK_NONE; 12121 uint32_t _flag_a = 0, _flag_b = 0; 12122 uint32_t _itail_tgt = 0; 12123 RECOMP_REGS_LOCALS 12124 RECOMP_ENTER(0x3100F8F0u); 12125 12126 L_3100F8F0: 12127 PUSH32(esp, ebp); /* 0x3100F8F0: push ebp */ 12128 ebp = esp; /* 0x3100F8F1: mov ebp, esp */ 12129 PUSH32(esp, 0xFFFFFFFFu); /* 0x3100F8F3: push -1 */ 12130 PUSH32(esp, 0x31047BEBu); /* 0x3100F8F5: push 0x31047beb */ 12131 eax = MEM32(FS_BASE + (0)); /* 0x3100F8FA: mov eax, dword ptr fs:[0] */ 12132 PUSH32(esp, eax); /* 0x3100F900: push eax */ 12133 MEM32(FS_BASE + (0)) = esp; /* 0x3100F901: mov dword ptr fs:[0], esp */ 12134 PUSH32(esp, ecx); /* 0x3100F908: push ecx */ 12135 PUSH32(esp, ebx); /* 0x3100F909: push ebx */ 12136 PUSH32(esp, esi); /* 0x3100F90A: push esi */ 12137 esi = MEM32(ebp + 0x8); /* 0x3100F90B: mov esi, dword ptr [ebp + 8] */ 12138 /* cmp MEM32(esi), 3 */ /* 0x3100F90E: cmp dword ptr [esi], 3 */ 12139 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(3); 12140 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12141 _flag_k = FK_CMP; 12142 PUSH32(esp, edi); /* 0x3100F911: push edi */ 12143 edi = ecx; /* 0x3100F912: mov edi, ecx */ 12144 if (CMP_A(_flag_a, _flag_b)) goto L_3100F922; /* 0x3100F914: ja 0x3100f922 */ 12145 L_3100F916: 12146 ebx = MEM32(edi + 0x48); /* 0x3100F916: mov ebx, dword ptr [edi + 0x48] */ 12147 MEM32(ebp + 0x8) = 3; /* 0x3100F919: mov dword ptr [ebp + 8], 3 */ 12148 goto L_3100F946; /* 0x3100F920: jmp 0x3100f946 */ 12149 L_3100F922: 12150 ebx = MEM32(edi + 0x4C); /* 0x3100F922: mov ebx, dword ptr [edi + 0x4c] */ 12151 PUSH32(esp, esi); /* 0x3100F925: push esi */ 12152 ecx = ebx; /* 0x3100F926: mov ecx, ebx */ 12153 RECOMP_ICALL(0x3100FE00u); /* 0x3100F928: call 0x3100fe00 */ /* not lifted */ 12154 RECOMP_FLAGS_IN(); 12155 /* cmp eax, MEM32(ebx + 0x4) */ /* 0x3100F92D: cmp eax, dword ptr [ebx + 4] */ 12156 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0x4)); 12157 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12158 _flag_k = FK_CMP; 12159 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100F990; /* 0x3100F930: je 0x3100f990 */ 12160 L_3100F932: 12161 eax = MEM32(eax + 0xC); /* 0x3100F932: mov eax, dword ptr [eax + 0xc] */ 12162 MEM32(esi) = eax; /* 0x3100F935: mov dword ptr [esi], eax */ 12163 L_3100F937: 12164 eax = MEM32(esi); /* 0x3100F937: mov eax, dword ptr [esi] */ 12165 PUSH32(esp, eax); /* 0x3100F939: push eax */ 12166 ecx = edi; /* 0x3100F93A: mov ecx, edi */ 12167 MEM32(ebp + 0x8) = eax; /* 0x3100F93C: mov dword ptr [ebp + 8], eax */ 12168 RECOMP_ICALL(0x3100F560u); /* 0x3100F93F: call 0x3100f560 */ /* not lifted */ 12169 RECOMP_FLAGS_IN(); 12170 ebx = eax; /* 0x3100F944: mov ebx, eax */ 12171 L_3100F946: 12172 eax = MEM32(edi + 0x38); /* 0x3100F946: mov eax, dword ptr [edi + 0x38] */ 12173 /* cmp eax, MEM32(esi) */ /* 0x3100F949: cmp eax, dword ptr [esi] */ 12174 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi)); 12175 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12176 _flag_k = FK_CMP; 12177 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100F9E9; /* 0x3100F94B: je 0x3100f9e9 */ 12178 L_3100F951: 12179 ecx = MEM32(edi + 0x34); /* 0x3100F951: mov ecx, dword ptr [edi + 0x34] */ 12180 /* test ecx, ecx */ /* 0x3100F954: test ecx, ecx */ 12181 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 12182 _cf = 0; 12183 _flag_k = FK_TEST; 12184 MEM32(ebp + (-0x10)) = ecx; /* 0x3100F956: mov dword ptr [ebp - 0x10], ecx */ 12185 if (TEST_Z(_flag_a, _flag_b)) goto L_3100F96C; /* 0x3100F959: je 0x3100f96c */ 12186 L_3100F95B: 12187 RECOMP_ICALL(0x310013E0u); /* 0x3100F95B: call 0x310013e0 */ /* not lifted */ 12188 RECOMP_FLAGS_IN(); 12189 ecx = MEM32(ebp + (-0x10)); /* 0x3100F960: mov ecx, dword ptr [ebp - 0x10] */ 12190 PUSH32(esp, ecx); /* 0x3100F963: push ecx */ 12191 RECOMP_ICALL(0x31046858u); /* 0x3100F964: call 0x31046858 */ /* not lifted */ 12192 RECOMP_FLAGS_IN(); 12193 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12194 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12195 esp = esp + 4; /* 0x3100F969: add esp, 4 */ 12196 _flag_k = FK_ADD; 12197 L_3100F96C: 12198 PUSH32(esp, 0x14u); /* 0x3100F96C: push 0x14 */ 12199 RECOMP_ICALL(0x310468DAu); /* 0x3100F96E: call 0x310468da */ /* not lifted */ 12200 RECOMP_FLAGS_IN(); 12201 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12202 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12203 esp = esp + 4; /* 0x3100F973: add esp, 4 */ 12204 _flag_k = FK_ADD; 12205 MEM32(ebp + (-0x10)) = eax; /* 0x3100F976: mov dword ptr [ebp - 0x10], eax */ 12206 /* test eax, eax */ /* 0x3100F979: test eax, eax */ 12207 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12208 _cf = 0; 12209 _flag_k = FK_TEST; 12210 MEM32(ebp + (-0x4)) = 0; /* 0x3100F97B: mov dword ptr [ebp - 4], 0 */ 12211 if (TEST_Z(_flag_a, _flag_b)) goto L_3100F9D8; /* 0x3100F982: je 0x3100f9d8 */ 12212 L_3100F984: 12213 PUSH32(esp, 0); /* 0x3100F984: push 0 */ 12214 PUSH32(esp, ebx); /* 0x3100F986: push ebx */ 12215 ecx = eax; /* 0x3100F987: mov ecx, eax */ 12216 RECOMP_ICALL(0x310013C0u); /* 0x3100F989: call 0x310013c0 */ /* not lifted */ 12217 RECOMP_FLAGS_IN(); 12218 goto L_3100F9DA; /* 0x3100F98E: jmp 0x3100f9da */ 12219 L_3100F990: 12220 PUSH32(esp, 0x000F4241u); /* 0x3100F990: push 0xf4241 */ 12221 ecx = edi; /* 0x3100F995: mov ecx, edi */ 12222 RECOMP_ICALL(0x3100F560u); /* 0x3100F997: call 0x3100f560 */ /* not lifted */ 12223 RECOMP_FLAGS_IN(); 12224 ebx = MEM32(edi + 0x4C); /* 0x3100F99C: mov ebx, dword ptr [edi + 0x4c] */ 12225 PUSH32(esp, esi); /* 0x3100F99F: push esi */ 12226 ecx = ebx; /* 0x3100F9A0: mov ecx, ebx */ 12227 RECOMP_ICALL(0x3100FE00u); /* 0x3100F9A2: call 0x3100fe00 */ /* not lifted */ 12228 RECOMP_FLAGS_IN(); 12229 /* cmp eax, MEM32(ebx + 0x4) */ /* 0x3100F9A7: cmp eax, dword ptr [ebx + 4] */ 12230 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0x4)); 12231 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12232 _flag_k = FK_CMP; 12233 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100F9B3; /* 0x3100F9AA: je 0x3100f9b3 */ 12234 L_3100F9AC: 12235 ecx = MEM32(eax + 0xC); /* 0x3100F9AC: mov ecx, dword ptr [eax + 0xc] */ 12236 MEM32(esi) = ecx; /* 0x3100F9AF: mov dword ptr [esi], ecx */ 12237 RECOMP_BACKEDGE(); 12238 goto L_3100F937; /* 0x3100F9B1: jmp 0x3100f937 */ 12239 L_3100F9B3: 12240 edx = MEM32(ebp + 0xC); /* 0x3100F9B3: mov edx, dword ptr [ebp + 0xc] */ 12241 edi = POP32_VAL(esp); /* 0x3100F9B6: pop edi */ 12242 MEM32(edx) = 0; /* 0x3100F9B7: mov dword ptr [edx], 0 */ 12243 MEM32(esi) = 0; /* 0x3100F9BD: mov dword ptr [esi], 0 */ 12244 esi = POP32_VAL(esp); /* 0x3100F9C3: pop esi */ 12245 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 12246 eax = eax | 0xFFFFFFFFu; /* 0x3100F9C4: or eax, 0xffffffff */ 12247 _cf = 0; 12248 _flag_k = FK_TEST; 12249 ebx = POP32_VAL(esp); /* 0x3100F9C7: pop ebx */ 12250 ecx = MEM32(ebp + (-0xC)); /* 0x3100F9C8: mov ecx, dword ptr [ebp - 0xc] */ 12251 MEM32(FS_BASE + (0)) = ecx; /* 0x3100F9CB: mov dword ptr fs:[0], ecx */ 12252 esp = ebp; /* 0x3100F9D2: mov esp, ebp */ 12253 ebp = POP32_VAL(esp); /* 0x3100F9D4: pop ebp */ 12254 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100F9D5: ret 8 */ 12255 L_3100F9D8: 12256 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12257 eax = 0; /* 0x3100F9D8: xor eax, eax */ 12258 _cf = 0; 12259 _flag_k = FK_TEST; 12260 L_3100F9DA: 12261 MEM32(edi + 0x34) = eax; /* 0x3100F9DA: mov dword ptr [edi + 0x34], eax */ 12262 edx = MEM32(esi); /* 0x3100F9DD: mov edx, dword ptr [esi] */ 12263 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3100F9DF: mov dword ptr [ebp - 4], 0xffffffff */ 12264 MEM32(edi + 0x38) = edx; /* 0x3100F9E6: mov dword ptr [edi + 0x38], edx */ 12265 L_3100F9E9: 12266 PUSH32(esp, 1); /* 0x3100F9E9: push 1 */ 12267 ecx = ebx; /* 0x3100F9EB: mov ecx, ebx */ 12268 RECOMP_ICALL(0x31002960u); /* 0x3100F9ED: call 0x31002960 */ /* not lifted */ 12269 RECOMP_FLAGS_IN(); 12270 eax = MEM32(ebp + 0xC); /* 0x3100F9F2: mov eax, dword ptr [ebp + 0xc] */ 12271 ecx = MEM32(edi + 0x34); /* 0x3100F9F5: mov ecx, dword ptr [edi + 0x34] */ 12272 PUSH32(esp, eax); /* 0x3100F9F8: push eax */ 12273 PUSH32(esp, esi); /* 0x3100F9F9: push esi */ 12274 RECOMP_ICALL(0x31001770u); /* 0x3100F9FA: call 0x31001770 */ /* not lifted */ 12275 RECOMP_FLAGS_IN(); 12276 ecx = ebx; /* 0x3100F9FF: mov ecx, ebx */ 12277 MEM32(ebp + (-0x10)) = eax; /* 0x3100FA01: mov dword ptr [ebp - 0x10], eax */ 12278 RECOMP_ICALL(0x310029E0u); /* 0x3100FA04: call 0x310029e0 */ /* not lifted */ 12279 RECOMP_FLAGS_IN(); 12280 eax = MEM32(ebp + 0x8); /* 0x3100FA09: mov eax, dword ptr [ebp + 8] */ 12281 /* cmp MEM32(esi), eax */ /* 0x3100FA0C: cmp dword ptr [esi], eax */ 12282 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(eax); 12283 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12284 _flag_k = FK_CMP; 12285 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100FA21; /* 0x3100FA0E: je 0x3100fa21 */ 12286 L_3100FA10: 12287 ecx = MEM32(ebp + 0xC); /* 0x3100FA10: mov ecx, dword ptr [ebp + 0xc] */ 12288 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12289 eax = eax + 1; /* 0x3100FA13: inc eax */ 12290 _flag_k = FK_INC; 12291 MEM32(esi) = eax; /* 0x3100FA14: mov dword ptr [esi], eax */ 12292 MEM32(ecx) = 0; /* 0x3100FA16: mov dword ptr [ecx], 0 */ 12293 RECOMP_BACKEDGE(); 12294 goto L_3100F922; /* 0x3100FA1C: jmp 0x3100f922 */ 12295 L_3100FA21: 12296 ecx = MEM32(ebp + (-0xC)); /* 0x3100FA21: mov ecx, dword ptr [ebp - 0xc] */ 12297 eax = MEM32(ebp + (-0x10)); /* 0x3100FA24: mov eax, dword ptr [ebp - 0x10] */ 12298 edi = POP32_VAL(esp); /* 0x3100FA27: pop edi */ 12299 esi = POP32_VAL(esp); /* 0x3100FA28: pop esi */ 12300 ebx = POP32_VAL(esp); /* 0x3100FA29: pop ebx */ 12301 MEM32(FS_BASE + (0)) = ecx; /* 0x3100FA2A: mov dword ptr fs:[0], ecx */ 12302 esp = ebp; /* 0x3100FA31: mov esp, ebp */ 12303 ebp = POP32_VAL(esp); /* 0x3100FA33: pop ebp */ 12304 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100FA34: ret 8 */ 12305 RECOMP_REGS_OUT(); 12306 } 12307 12308 void sub_3100F922(void) { 12309 int _fpu_cmp = 0; 12310 uint32_t _cf = 0; 12311 int _df = 1; 12312 uint32_t _flag_k = FK_NONE; 12313 uint32_t _flag_a = 0, _flag_b = 0; 12314 uint32_t _itail_tgt = 0; 12315 RECOMP_REGS_LOCALS 12316 RECOMP_ENTER(0x3100F922u); 12317 12318 L_3100F922: 12319 ebx = MEM32(edi + 0x4C); /* 0x3100F922: mov ebx, dword ptr [edi + 0x4c] */ 12320 PUSH32(esp, esi); /* 0x3100F925: push esi */ 12321 ecx = ebx; /* 0x3100F926: mov ecx, ebx */ 12322 RECOMP_ICALL(0x3100FE00u); /* 0x3100F928: call 0x3100fe00 */ /* not lifted */ 12323 RECOMP_FLAGS_IN(); 12324 /* cmp eax, MEM32(ebx + 0x4) */ /* 0x3100F92D: cmp eax, dword ptr [ebx + 4] */ 12325 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0x4)); 12326 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12327 _flag_k = FK_CMP; 12328 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100F990; /* 0x3100F930: je 0x3100f990 */ 12329 L_3100F932: 12330 eax = MEM32(eax + 0xC); /* 0x3100F932: mov eax, dword ptr [eax + 0xc] */ 12331 MEM32(esi) = eax; /* 0x3100F935: mov dword ptr [esi], eax */ 12332 L_3100F937: 12333 eax = MEM32(esi); /* 0x3100F937: mov eax, dword ptr [esi] */ 12334 PUSH32(esp, eax); /* 0x3100F939: push eax */ 12335 ecx = edi; /* 0x3100F93A: mov ecx, edi */ 12336 MEM32(ebp + 0x8) = eax; /* 0x3100F93C: mov dword ptr [ebp + 8], eax */ 12337 RECOMP_ICALL(0x3100F560u); /* 0x3100F93F: call 0x3100f560 */ /* not lifted */ 12338 RECOMP_FLAGS_IN(); 12339 ebx = eax; /* 0x3100F944: mov ebx, eax */ 12340 eax = MEM32(edi + 0x38); /* 0x3100F946: mov eax, dword ptr [edi + 0x38] */ 12341 /* cmp eax, MEM32(esi) */ /* 0x3100F949: cmp eax, dword ptr [esi] */ 12342 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi)); 12343 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12344 _flag_k = FK_CMP; 12345 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100F9E9; /* 0x3100F94B: je 0x3100f9e9 */ 12346 L_3100F951: 12347 ecx = MEM32(edi + 0x34); /* 0x3100F951: mov ecx, dword ptr [edi + 0x34] */ 12348 /* test ecx, ecx */ /* 0x3100F954: test ecx, ecx */ 12349 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 12350 _cf = 0; 12351 _flag_k = FK_TEST; 12352 MEM32(ebp + (-0x10)) = ecx; /* 0x3100F956: mov dword ptr [ebp - 0x10], ecx */ 12353 if (TEST_Z(_flag_a, _flag_b)) goto L_3100F96C; /* 0x3100F959: je 0x3100f96c */ 12354 L_3100F95B: 12355 RECOMP_ICALL(0x310013E0u); /* 0x3100F95B: call 0x310013e0 */ /* not lifted */ 12356 RECOMP_FLAGS_IN(); 12357 ecx = MEM32(ebp + (-0x10)); /* 0x3100F960: mov ecx, dword ptr [ebp - 0x10] */ 12358 PUSH32(esp, ecx); /* 0x3100F963: push ecx */ 12359 RECOMP_ICALL(0x31046858u); /* 0x3100F964: call 0x31046858 */ /* not lifted */ 12360 RECOMP_FLAGS_IN(); 12361 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12362 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12363 esp = esp + 4; /* 0x3100F969: add esp, 4 */ 12364 _flag_k = FK_ADD; 12365 L_3100F96C: 12366 PUSH32(esp, 0x14u); /* 0x3100F96C: push 0x14 */ 12367 RECOMP_ICALL(0x310468DAu); /* 0x3100F96E: call 0x310468da */ /* not lifted */ 12368 RECOMP_FLAGS_IN(); 12369 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12370 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12371 esp = esp + 4; /* 0x3100F973: add esp, 4 */ 12372 _flag_k = FK_ADD; 12373 MEM32(ebp + (-0x10)) = eax; /* 0x3100F976: mov dword ptr [ebp - 0x10], eax */ 12374 /* test eax, eax */ /* 0x3100F979: test eax, eax */ 12375 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12376 _cf = 0; 12377 _flag_k = FK_TEST; 12378 MEM32(ebp + (-0x4)) = 0; /* 0x3100F97B: mov dword ptr [ebp - 4], 0 */ 12379 if (TEST_Z(_flag_a, _flag_b)) goto L_3100F9D8; /* 0x3100F982: je 0x3100f9d8 */ 12380 L_3100F984: 12381 PUSH32(esp, 0); /* 0x3100F984: push 0 */ 12382 PUSH32(esp, ebx); /* 0x3100F986: push ebx */ 12383 ecx = eax; /* 0x3100F987: mov ecx, eax */ 12384 RECOMP_ICALL(0x310013C0u); /* 0x3100F989: call 0x310013c0 */ /* not lifted */ 12385 RECOMP_FLAGS_IN(); 12386 goto L_3100F9DA; /* 0x3100F98E: jmp 0x3100f9da */ 12387 L_3100F990: 12388 PUSH32(esp, 0x000F4241u); /* 0x3100F990: push 0xf4241 */ 12389 ecx = edi; /* 0x3100F995: mov ecx, edi */ 12390 RECOMP_ICALL(0x3100F560u); /* 0x3100F997: call 0x3100f560 */ /* not lifted */ 12391 RECOMP_FLAGS_IN(); 12392 ebx = MEM32(edi + 0x4C); /* 0x3100F99C: mov ebx, dword ptr [edi + 0x4c] */ 12393 PUSH32(esp, esi); /* 0x3100F99F: push esi */ 12394 ecx = ebx; /* 0x3100F9A0: mov ecx, ebx */ 12395 RECOMP_ICALL(0x3100FE00u); /* 0x3100F9A2: call 0x3100fe00 */ /* not lifted */ 12396 RECOMP_FLAGS_IN(); 12397 /* cmp eax, MEM32(ebx + 0x4) */ /* 0x3100F9A7: cmp eax, dword ptr [ebx + 4] */ 12398 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0x4)); 12399 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12400 _flag_k = FK_CMP; 12401 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100F9B3; /* 0x3100F9AA: je 0x3100f9b3 */ 12402 L_3100F9AC: 12403 ecx = MEM32(eax + 0xC); /* 0x3100F9AC: mov ecx, dword ptr [eax + 0xc] */ 12404 MEM32(esi) = ecx; /* 0x3100F9AF: mov dword ptr [esi], ecx */ 12405 RECOMP_BACKEDGE(); 12406 goto L_3100F937; /* 0x3100F9B1: jmp 0x3100f937 */ 12407 L_3100F9B3: 12408 edx = MEM32(ebp + 0xC); /* 0x3100F9B3: mov edx, dword ptr [ebp + 0xc] */ 12409 edi = POP32_VAL(esp); /* 0x3100F9B6: pop edi */ 12410 MEM32(edx) = 0; /* 0x3100F9B7: mov dword ptr [edx], 0 */ 12411 MEM32(esi) = 0; /* 0x3100F9BD: mov dword ptr [esi], 0 */ 12412 esi = POP32_VAL(esp); /* 0x3100F9C3: pop esi */ 12413 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 12414 eax = eax | 0xFFFFFFFFu; /* 0x3100F9C4: or eax, 0xffffffff */ 12415 _cf = 0; 12416 _flag_k = FK_TEST; 12417 ebx = POP32_VAL(esp); /* 0x3100F9C7: pop ebx */ 12418 ecx = MEM32(ebp + (-0xC)); /* 0x3100F9C8: mov ecx, dword ptr [ebp - 0xc] */ 12419 MEM32(FS_BASE + (0)) = ecx; /* 0x3100F9CB: mov dword ptr fs:[0], ecx */ 12420 esp = ebp; /* 0x3100F9D2: mov esp, ebp */ 12421 ebp = POP32_VAL(esp); /* 0x3100F9D4: pop ebp */ 12422 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100F9D5: ret 8 */ 12423 L_3100F9D8: 12424 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12425 eax = 0; /* 0x3100F9D8: xor eax, eax */ 12426 _cf = 0; 12427 _flag_k = FK_TEST; 12428 L_3100F9DA: 12429 MEM32(edi + 0x34) = eax; /* 0x3100F9DA: mov dword ptr [edi + 0x34], eax */ 12430 edx = MEM32(esi); /* 0x3100F9DD: mov edx, dword ptr [esi] */ 12431 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3100F9DF: mov dword ptr [ebp - 4], 0xffffffff */ 12432 MEM32(edi + 0x38) = edx; /* 0x3100F9E6: mov dword ptr [edi + 0x38], edx */ 12433 L_3100F9E9: 12434 PUSH32(esp, 1); /* 0x3100F9E9: push 1 */ 12435 ecx = ebx; /* 0x3100F9EB: mov ecx, ebx */ 12436 RECOMP_ICALL(0x31002960u); /* 0x3100F9ED: call 0x31002960 */ /* not lifted */ 12437 RECOMP_FLAGS_IN(); 12438 eax = MEM32(ebp + 0xC); /* 0x3100F9F2: mov eax, dword ptr [ebp + 0xc] */ 12439 ecx = MEM32(edi + 0x34); /* 0x3100F9F5: mov ecx, dword ptr [edi + 0x34] */ 12440 PUSH32(esp, eax); /* 0x3100F9F8: push eax */ 12441 PUSH32(esp, esi); /* 0x3100F9F9: push esi */ 12442 RECOMP_ICALL(0x31001770u); /* 0x3100F9FA: call 0x31001770 */ /* not lifted */ 12443 RECOMP_FLAGS_IN(); 12444 ecx = ebx; /* 0x3100F9FF: mov ecx, ebx */ 12445 MEM32(ebp + (-0x10)) = eax; /* 0x3100FA01: mov dword ptr [ebp - 0x10], eax */ 12446 RECOMP_ICALL(0x310029E0u); /* 0x3100FA04: call 0x310029e0 */ /* not lifted */ 12447 RECOMP_FLAGS_IN(); 12448 eax = MEM32(ebp + 0x8); /* 0x3100FA09: mov eax, dword ptr [ebp + 8] */ 12449 /* cmp MEM32(esi), eax */ /* 0x3100FA0C: cmp dword ptr [esi], eax */ 12450 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(eax); 12451 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12452 _flag_k = FK_CMP; 12453 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100FA21; /* 0x3100FA0E: je 0x3100fa21 */ 12454 L_3100FA10: 12455 ecx = MEM32(ebp + 0xC); /* 0x3100FA10: mov ecx, dword ptr [ebp + 0xc] */ 12456 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12457 eax = eax + 1; /* 0x3100FA13: inc eax */ 12458 _flag_k = FK_INC; 12459 MEM32(esi) = eax; /* 0x3100FA14: mov dword ptr [esi], eax */ 12460 MEM32(ecx) = 0; /* 0x3100FA16: mov dword ptr [ecx], 0 */ 12461 RECOMP_BACKEDGE(); 12462 goto L_3100F922; /* 0x3100FA1C: jmp 0x3100f922 */ 12463 L_3100FA21: 12464 ecx = MEM32(ebp + (-0xC)); /* 0x3100FA21: mov ecx, dword ptr [ebp - 0xc] */ 12465 eax = MEM32(ebp + (-0x10)); /* 0x3100FA24: mov eax, dword ptr [ebp - 0x10] */ 12466 edi = POP32_VAL(esp); /* 0x3100FA27: pop edi */ 12467 esi = POP32_VAL(esp); /* 0x3100FA28: pop esi */ 12468 ebx = POP32_VAL(esp); /* 0x3100FA29: pop ebx */ 12469 MEM32(FS_BASE + (0)) = ecx; /* 0x3100FA2A: mov dword ptr fs:[0], ecx */ 12470 esp = ebp; /* 0x3100FA31: mov esp, ebp */ 12471 ebp = POP32_VAL(esp); /* 0x3100FA33: pop ebp */ 12472 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100FA34: ret 8 */ 12473 RECOMP_REGS_OUT(); 12474 } 12475 12476 void sub_3100F937(void) { 12477 int _fpu_cmp = 0; 12478 uint32_t _cf = 0; 12479 int _df = 1; 12480 uint32_t _flag_k = FK_NONE; 12481 uint32_t _flag_a = 0, _flag_b = 0; 12482 uint32_t _itail_tgt = 0; 12483 RECOMP_REGS_LOCALS 12484 RECOMP_ENTER(0x3100F937u); 12485 12486 goto L_3100F937; 12487 L_3100F922: 12488 ebx = MEM32(edi + 0x4C); /* 0x3100F922: mov ebx, dword ptr [edi + 0x4c] */ 12489 PUSH32(esp, esi); /* 0x3100F925: push esi */ 12490 ecx = ebx; /* 0x3100F926: mov ecx, ebx */ 12491 RECOMP_ICALL(0x3100FE00u); /* 0x3100F928: call 0x3100fe00 */ /* not lifted */ 12492 RECOMP_FLAGS_IN(); 12493 /* cmp eax, MEM32(ebx + 0x4) */ /* 0x3100F92D: cmp eax, dword ptr [ebx + 4] */ 12494 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0x4)); 12495 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12496 _flag_k = FK_CMP; 12497 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100F990; /* 0x3100F930: je 0x3100f990 */ 12498 L_3100F932: 12499 eax = MEM32(eax + 0xC); /* 0x3100F932: mov eax, dword ptr [eax + 0xc] */ 12500 MEM32(esi) = eax; /* 0x3100F935: mov dword ptr [esi], eax */ 12501 L_3100F937: 12502 eax = MEM32(esi); /* 0x3100F937: mov eax, dword ptr [esi] */ 12503 PUSH32(esp, eax); /* 0x3100F939: push eax */ 12504 ecx = edi; /* 0x3100F93A: mov ecx, edi */ 12505 MEM32(ebp + 0x8) = eax; /* 0x3100F93C: mov dword ptr [ebp + 8], eax */ 12506 RECOMP_ICALL(0x3100F560u); /* 0x3100F93F: call 0x3100f560 */ /* not lifted */ 12507 RECOMP_FLAGS_IN(); 12508 ebx = eax; /* 0x3100F944: mov ebx, eax */ 12509 eax = MEM32(edi + 0x38); /* 0x3100F946: mov eax, dword ptr [edi + 0x38] */ 12510 /* cmp eax, MEM32(esi) */ /* 0x3100F949: cmp eax, dword ptr [esi] */ 12511 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi)); 12512 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12513 _flag_k = FK_CMP; 12514 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100F9E9; /* 0x3100F94B: je 0x3100f9e9 */ 12515 L_3100F951: 12516 ecx = MEM32(edi + 0x34); /* 0x3100F951: mov ecx, dword ptr [edi + 0x34] */ 12517 /* test ecx, ecx */ /* 0x3100F954: test ecx, ecx */ 12518 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 12519 _cf = 0; 12520 _flag_k = FK_TEST; 12521 MEM32(ebp + (-0x10)) = ecx; /* 0x3100F956: mov dword ptr [ebp - 0x10], ecx */ 12522 if (TEST_Z(_flag_a, _flag_b)) goto L_3100F96C; /* 0x3100F959: je 0x3100f96c */ 12523 L_3100F95B: 12524 RECOMP_ICALL(0x310013E0u); /* 0x3100F95B: call 0x310013e0 */ /* not lifted */ 12525 RECOMP_FLAGS_IN(); 12526 ecx = MEM32(ebp + (-0x10)); /* 0x3100F960: mov ecx, dword ptr [ebp - 0x10] */ 12527 PUSH32(esp, ecx); /* 0x3100F963: push ecx */ 12528 RECOMP_ICALL(0x31046858u); /* 0x3100F964: call 0x31046858 */ /* not lifted */ 12529 RECOMP_FLAGS_IN(); 12530 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12531 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12532 esp = esp + 4; /* 0x3100F969: add esp, 4 */ 12533 _flag_k = FK_ADD; 12534 L_3100F96C: 12535 PUSH32(esp, 0x14u); /* 0x3100F96C: push 0x14 */ 12536 RECOMP_ICALL(0x310468DAu); /* 0x3100F96E: call 0x310468da */ /* not lifted */ 12537 RECOMP_FLAGS_IN(); 12538 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12539 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12540 esp = esp + 4; /* 0x3100F973: add esp, 4 */ 12541 _flag_k = FK_ADD; 12542 MEM32(ebp + (-0x10)) = eax; /* 0x3100F976: mov dword ptr [ebp - 0x10], eax */ 12543 /* test eax, eax */ /* 0x3100F979: test eax, eax */ 12544 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12545 _cf = 0; 12546 _flag_k = FK_TEST; 12547 MEM32(ebp + (-0x4)) = 0; /* 0x3100F97B: mov dword ptr [ebp - 4], 0 */ 12548 if (TEST_Z(_flag_a, _flag_b)) goto L_3100F9D8; /* 0x3100F982: je 0x3100f9d8 */ 12549 L_3100F984: 12550 PUSH32(esp, 0); /* 0x3100F984: push 0 */ 12551 PUSH32(esp, ebx); /* 0x3100F986: push ebx */ 12552 ecx = eax; /* 0x3100F987: mov ecx, eax */ 12553 RECOMP_ICALL(0x310013C0u); /* 0x3100F989: call 0x310013c0 */ /* not lifted */ 12554 RECOMP_FLAGS_IN(); 12555 goto L_3100F9DA; /* 0x3100F98E: jmp 0x3100f9da */ 12556 L_3100F990: 12557 PUSH32(esp, 0x000F4241u); /* 0x3100F990: push 0xf4241 */ 12558 ecx = edi; /* 0x3100F995: mov ecx, edi */ 12559 RECOMP_ICALL(0x3100F560u); /* 0x3100F997: call 0x3100f560 */ /* not lifted */ 12560 RECOMP_FLAGS_IN(); 12561 ebx = MEM32(edi + 0x4C); /* 0x3100F99C: mov ebx, dword ptr [edi + 0x4c] */ 12562 PUSH32(esp, esi); /* 0x3100F99F: push esi */ 12563 ecx = ebx; /* 0x3100F9A0: mov ecx, ebx */ 12564 RECOMP_ICALL(0x3100FE00u); /* 0x3100F9A2: call 0x3100fe00 */ /* not lifted */ 12565 RECOMP_FLAGS_IN(); 12566 /* cmp eax, MEM32(ebx + 0x4) */ /* 0x3100F9A7: cmp eax, dword ptr [ebx + 4] */ 12567 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0x4)); 12568 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12569 _flag_k = FK_CMP; 12570 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100F9B3; /* 0x3100F9AA: je 0x3100f9b3 */ 12571 L_3100F9AC: 12572 ecx = MEM32(eax + 0xC); /* 0x3100F9AC: mov ecx, dword ptr [eax + 0xc] */ 12573 MEM32(esi) = ecx; /* 0x3100F9AF: mov dword ptr [esi], ecx */ 12574 RECOMP_BACKEDGE(); 12575 goto L_3100F937; /* 0x3100F9B1: jmp 0x3100f937 */ 12576 L_3100F9B3: 12577 edx = MEM32(ebp + 0xC); /* 0x3100F9B3: mov edx, dword ptr [ebp + 0xc] */ 12578 edi = POP32_VAL(esp); /* 0x3100F9B6: pop edi */ 12579 MEM32(edx) = 0; /* 0x3100F9B7: mov dword ptr [edx], 0 */ 12580 MEM32(esi) = 0; /* 0x3100F9BD: mov dword ptr [esi], 0 */ 12581 esi = POP32_VAL(esp); /* 0x3100F9C3: pop esi */ 12582 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 12583 eax = eax | 0xFFFFFFFFu; /* 0x3100F9C4: or eax, 0xffffffff */ 12584 _cf = 0; 12585 _flag_k = FK_TEST; 12586 ebx = POP32_VAL(esp); /* 0x3100F9C7: pop ebx */ 12587 ecx = MEM32(ebp + (-0xC)); /* 0x3100F9C8: mov ecx, dword ptr [ebp - 0xc] */ 12588 MEM32(FS_BASE + (0)) = ecx; /* 0x3100F9CB: mov dword ptr fs:[0], ecx */ 12589 esp = ebp; /* 0x3100F9D2: mov esp, ebp */ 12590 ebp = POP32_VAL(esp); /* 0x3100F9D4: pop ebp */ 12591 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100F9D5: ret 8 */ 12592 L_3100F9D8: 12593 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12594 eax = 0; /* 0x3100F9D8: xor eax, eax */ 12595 _cf = 0; 12596 _flag_k = FK_TEST; 12597 L_3100F9DA: 12598 MEM32(edi + 0x34) = eax; /* 0x3100F9DA: mov dword ptr [edi + 0x34], eax */ 12599 edx = MEM32(esi); /* 0x3100F9DD: mov edx, dword ptr [esi] */ 12600 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3100F9DF: mov dword ptr [ebp - 4], 0xffffffff */ 12601 MEM32(edi + 0x38) = edx; /* 0x3100F9E6: mov dword ptr [edi + 0x38], edx */ 12602 L_3100F9E9: 12603 PUSH32(esp, 1); /* 0x3100F9E9: push 1 */ 12604 ecx = ebx; /* 0x3100F9EB: mov ecx, ebx */ 12605 RECOMP_ICALL(0x31002960u); /* 0x3100F9ED: call 0x31002960 */ /* not lifted */ 12606 RECOMP_FLAGS_IN(); 12607 eax = MEM32(ebp + 0xC); /* 0x3100F9F2: mov eax, dword ptr [ebp + 0xc] */ 12608 ecx = MEM32(edi + 0x34); /* 0x3100F9F5: mov ecx, dword ptr [edi + 0x34] */ 12609 PUSH32(esp, eax); /* 0x3100F9F8: push eax */ 12610 PUSH32(esp, esi); /* 0x3100F9F9: push esi */ 12611 RECOMP_ICALL(0x31001770u); /* 0x3100F9FA: call 0x31001770 */ /* not lifted */ 12612 RECOMP_FLAGS_IN(); 12613 ecx = ebx; /* 0x3100F9FF: mov ecx, ebx */ 12614 MEM32(ebp + (-0x10)) = eax; /* 0x3100FA01: mov dword ptr [ebp - 0x10], eax */ 12615 RECOMP_ICALL(0x310029E0u); /* 0x3100FA04: call 0x310029e0 */ /* not lifted */ 12616 RECOMP_FLAGS_IN(); 12617 eax = MEM32(ebp + 0x8); /* 0x3100FA09: mov eax, dword ptr [ebp + 8] */ 12618 /* cmp MEM32(esi), eax */ /* 0x3100FA0C: cmp dword ptr [esi], eax */ 12619 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(eax); 12620 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12621 _flag_k = FK_CMP; 12622 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100FA21; /* 0x3100FA0E: je 0x3100fa21 */ 12623 L_3100FA10: 12624 ecx = MEM32(ebp + 0xC); /* 0x3100FA10: mov ecx, dword ptr [ebp + 0xc] */ 12625 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12626 eax = eax + 1; /* 0x3100FA13: inc eax */ 12627 _flag_k = FK_INC; 12628 MEM32(esi) = eax; /* 0x3100FA14: mov dword ptr [esi], eax */ 12629 MEM32(ecx) = 0; /* 0x3100FA16: mov dword ptr [ecx], 0 */ 12630 RECOMP_BACKEDGE(); 12631 goto L_3100F922; /* 0x3100FA1C: jmp 0x3100f922 */ 12632 L_3100FA21: 12633 ecx = MEM32(ebp + (-0xC)); /* 0x3100FA21: mov ecx, dword ptr [ebp - 0xc] */ 12634 eax = MEM32(ebp + (-0x10)); /* 0x3100FA24: mov eax, dword ptr [ebp - 0x10] */ 12635 edi = POP32_VAL(esp); /* 0x3100FA27: pop edi */ 12636 esi = POP32_VAL(esp); /* 0x3100FA28: pop esi */ 12637 ebx = POP32_VAL(esp); /* 0x3100FA29: pop ebx */ 12638 MEM32(FS_BASE + (0)) = ecx; /* 0x3100FA2A: mov dword ptr fs:[0], ecx */ 12639 esp = ebp; /* 0x3100FA31: mov esp, ebp */ 12640 ebp = POP32_VAL(esp); /* 0x3100FA33: pop ebp */ 12641 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100FA34: ret 8 */ 12642 RECOMP_REGS_OUT(); 12643 } 12644 12645 void sub_3100F9DA(void) { 12646 int _fpu_cmp = 0; 12647 uint32_t _cf = 0; 12648 int _df = 1; 12649 uint32_t _flag_k = FK_NONE; 12650 uint32_t _flag_a = 0, _flag_b = 0; 12651 uint32_t _itail_tgt = 0; 12652 RECOMP_REGS_LOCALS 12653 RECOMP_ENTER(0x3100F9DAu); 12654 12655 goto L_3100F9DA; 12656 L_3100F922: 12657 ebx = MEM32(edi + 0x4C); /* 0x3100F922: mov ebx, dword ptr [edi + 0x4c] */ 12658 PUSH32(esp, esi); /* 0x3100F925: push esi */ 12659 ecx = ebx; /* 0x3100F926: mov ecx, ebx */ 12660 RECOMP_ICALL(0x3100FE00u); /* 0x3100F928: call 0x3100fe00 */ /* not lifted */ 12661 RECOMP_FLAGS_IN(); 12662 /* cmp eax, MEM32(ebx + 0x4) */ /* 0x3100F92D: cmp eax, dword ptr [ebx + 4] */ 12663 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0x4)); 12664 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12665 _flag_k = FK_CMP; 12666 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100F990; /* 0x3100F930: je 0x3100f990 */ 12667 L_3100F932: 12668 eax = MEM32(eax + 0xC); /* 0x3100F932: mov eax, dword ptr [eax + 0xc] */ 12669 MEM32(esi) = eax; /* 0x3100F935: mov dword ptr [esi], eax */ 12670 L_3100F937: 12671 eax = MEM32(esi); /* 0x3100F937: mov eax, dword ptr [esi] */ 12672 PUSH32(esp, eax); /* 0x3100F939: push eax */ 12673 ecx = edi; /* 0x3100F93A: mov ecx, edi */ 12674 MEM32(ebp + 0x8) = eax; /* 0x3100F93C: mov dword ptr [ebp + 8], eax */ 12675 RECOMP_ICALL(0x3100F560u); /* 0x3100F93F: call 0x3100f560 */ /* not lifted */ 12676 RECOMP_FLAGS_IN(); 12677 ebx = eax; /* 0x3100F944: mov ebx, eax */ 12678 eax = MEM32(edi + 0x38); /* 0x3100F946: mov eax, dword ptr [edi + 0x38] */ 12679 /* cmp eax, MEM32(esi) */ /* 0x3100F949: cmp eax, dword ptr [esi] */ 12680 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi)); 12681 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12682 _flag_k = FK_CMP; 12683 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100F9E9; /* 0x3100F94B: je 0x3100f9e9 */ 12684 L_3100F951: 12685 ecx = MEM32(edi + 0x34); /* 0x3100F951: mov ecx, dword ptr [edi + 0x34] */ 12686 /* test ecx, ecx */ /* 0x3100F954: test ecx, ecx */ 12687 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 12688 _cf = 0; 12689 _flag_k = FK_TEST; 12690 MEM32(ebp + (-0x10)) = ecx; /* 0x3100F956: mov dword ptr [ebp - 0x10], ecx */ 12691 if (TEST_Z(_flag_a, _flag_b)) goto L_3100F96C; /* 0x3100F959: je 0x3100f96c */ 12692 L_3100F95B: 12693 RECOMP_ICALL(0x310013E0u); /* 0x3100F95B: call 0x310013e0 */ /* not lifted */ 12694 RECOMP_FLAGS_IN(); 12695 ecx = MEM32(ebp + (-0x10)); /* 0x3100F960: mov ecx, dword ptr [ebp - 0x10] */ 12696 PUSH32(esp, ecx); /* 0x3100F963: push ecx */ 12697 RECOMP_ICALL(0x31046858u); /* 0x3100F964: call 0x31046858 */ /* not lifted */ 12698 RECOMP_FLAGS_IN(); 12699 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12700 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12701 esp = esp + 4; /* 0x3100F969: add esp, 4 */ 12702 _flag_k = FK_ADD; 12703 L_3100F96C: 12704 PUSH32(esp, 0x14u); /* 0x3100F96C: push 0x14 */ 12705 RECOMP_ICALL(0x310468DAu); /* 0x3100F96E: call 0x310468da */ /* not lifted */ 12706 RECOMP_FLAGS_IN(); 12707 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12708 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12709 esp = esp + 4; /* 0x3100F973: add esp, 4 */ 12710 _flag_k = FK_ADD; 12711 MEM32(ebp + (-0x10)) = eax; /* 0x3100F976: mov dword ptr [ebp - 0x10], eax */ 12712 /* test eax, eax */ /* 0x3100F979: test eax, eax */ 12713 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12714 _cf = 0; 12715 _flag_k = FK_TEST; 12716 MEM32(ebp + (-0x4)) = 0; /* 0x3100F97B: mov dword ptr [ebp - 4], 0 */ 12717 if (TEST_Z(_flag_a, _flag_b)) goto L_3100F9D8; /* 0x3100F982: je 0x3100f9d8 */ 12718 L_3100F984: 12719 PUSH32(esp, 0); /* 0x3100F984: push 0 */ 12720 PUSH32(esp, ebx); /* 0x3100F986: push ebx */ 12721 ecx = eax; /* 0x3100F987: mov ecx, eax */ 12722 RECOMP_ICALL(0x310013C0u); /* 0x3100F989: call 0x310013c0 */ /* not lifted */ 12723 RECOMP_FLAGS_IN(); 12724 goto L_3100F9DA; /* 0x3100F98E: jmp 0x3100f9da */ 12725 L_3100F990: 12726 PUSH32(esp, 0x000F4241u); /* 0x3100F990: push 0xf4241 */ 12727 ecx = edi; /* 0x3100F995: mov ecx, edi */ 12728 RECOMP_ICALL(0x3100F560u); /* 0x3100F997: call 0x3100f560 */ /* not lifted */ 12729 RECOMP_FLAGS_IN(); 12730 ebx = MEM32(edi + 0x4C); /* 0x3100F99C: mov ebx, dword ptr [edi + 0x4c] */ 12731 PUSH32(esp, esi); /* 0x3100F99F: push esi */ 12732 ecx = ebx; /* 0x3100F9A0: mov ecx, ebx */ 12733 RECOMP_ICALL(0x3100FE00u); /* 0x3100F9A2: call 0x3100fe00 */ /* not lifted */ 12734 RECOMP_FLAGS_IN(); 12735 /* cmp eax, MEM32(ebx + 0x4) */ /* 0x3100F9A7: cmp eax, dword ptr [ebx + 4] */ 12736 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0x4)); 12737 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12738 _flag_k = FK_CMP; 12739 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100F9B3; /* 0x3100F9AA: je 0x3100f9b3 */ 12740 L_3100F9AC: 12741 ecx = MEM32(eax + 0xC); /* 0x3100F9AC: mov ecx, dword ptr [eax + 0xc] */ 12742 MEM32(esi) = ecx; /* 0x3100F9AF: mov dword ptr [esi], ecx */ 12743 RECOMP_BACKEDGE(); 12744 goto L_3100F937; /* 0x3100F9B1: jmp 0x3100f937 */ 12745 L_3100F9B3: 12746 edx = MEM32(ebp + 0xC); /* 0x3100F9B3: mov edx, dword ptr [ebp + 0xc] */ 12747 edi = POP32_VAL(esp); /* 0x3100F9B6: pop edi */ 12748 MEM32(edx) = 0; /* 0x3100F9B7: mov dword ptr [edx], 0 */ 12749 MEM32(esi) = 0; /* 0x3100F9BD: mov dword ptr [esi], 0 */ 12750 esi = POP32_VAL(esp); /* 0x3100F9C3: pop esi */ 12751 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 12752 eax = eax | 0xFFFFFFFFu; /* 0x3100F9C4: or eax, 0xffffffff */ 12753 _cf = 0; 12754 _flag_k = FK_TEST; 12755 ebx = POP32_VAL(esp); /* 0x3100F9C7: pop ebx */ 12756 ecx = MEM32(ebp + (-0xC)); /* 0x3100F9C8: mov ecx, dword ptr [ebp - 0xc] */ 12757 MEM32(FS_BASE + (0)) = ecx; /* 0x3100F9CB: mov dword ptr fs:[0], ecx */ 12758 esp = ebp; /* 0x3100F9D2: mov esp, ebp */ 12759 ebp = POP32_VAL(esp); /* 0x3100F9D4: pop ebp */ 12760 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100F9D5: ret 8 */ 12761 L_3100F9D8: 12762 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12763 eax = 0; /* 0x3100F9D8: xor eax, eax */ 12764 _cf = 0; 12765 _flag_k = FK_TEST; 12766 L_3100F9DA: 12767 MEM32(edi + 0x34) = eax; /* 0x3100F9DA: mov dword ptr [edi + 0x34], eax */ 12768 edx = MEM32(esi); /* 0x3100F9DD: mov edx, dword ptr [esi] */ 12769 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3100F9DF: mov dword ptr [ebp - 4], 0xffffffff */ 12770 MEM32(edi + 0x38) = edx; /* 0x3100F9E6: mov dword ptr [edi + 0x38], edx */ 12771 L_3100F9E9: 12772 PUSH32(esp, 1); /* 0x3100F9E9: push 1 */ 12773 ecx = ebx; /* 0x3100F9EB: mov ecx, ebx */ 12774 RECOMP_ICALL(0x31002960u); /* 0x3100F9ED: call 0x31002960 */ /* not lifted */ 12775 RECOMP_FLAGS_IN(); 12776 eax = MEM32(ebp + 0xC); /* 0x3100F9F2: mov eax, dword ptr [ebp + 0xc] */ 12777 ecx = MEM32(edi + 0x34); /* 0x3100F9F5: mov ecx, dword ptr [edi + 0x34] */ 12778 PUSH32(esp, eax); /* 0x3100F9F8: push eax */ 12779 PUSH32(esp, esi); /* 0x3100F9F9: push esi */ 12780 RECOMP_ICALL(0x31001770u); /* 0x3100F9FA: call 0x31001770 */ /* not lifted */ 12781 RECOMP_FLAGS_IN(); 12782 ecx = ebx; /* 0x3100F9FF: mov ecx, ebx */ 12783 MEM32(ebp + (-0x10)) = eax; /* 0x3100FA01: mov dword ptr [ebp - 0x10], eax */ 12784 RECOMP_ICALL(0x310029E0u); /* 0x3100FA04: call 0x310029e0 */ /* not lifted */ 12785 RECOMP_FLAGS_IN(); 12786 eax = MEM32(ebp + 0x8); /* 0x3100FA09: mov eax, dword ptr [ebp + 8] */ 12787 /* cmp MEM32(esi), eax */ /* 0x3100FA0C: cmp dword ptr [esi], eax */ 12788 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(eax); 12789 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12790 _flag_k = FK_CMP; 12791 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100FA21; /* 0x3100FA0E: je 0x3100fa21 */ 12792 L_3100FA10: 12793 ecx = MEM32(ebp + 0xC); /* 0x3100FA10: mov ecx, dword ptr [ebp + 0xc] */ 12794 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12795 eax = eax + 1; /* 0x3100FA13: inc eax */ 12796 _flag_k = FK_INC; 12797 MEM32(esi) = eax; /* 0x3100FA14: mov dword ptr [esi], eax */ 12798 MEM32(ecx) = 0; /* 0x3100FA16: mov dword ptr [ecx], 0 */ 12799 RECOMP_BACKEDGE(); 12800 goto L_3100F922; /* 0x3100FA1C: jmp 0x3100f922 */ 12801 L_3100FA21: 12802 ecx = MEM32(ebp + (-0xC)); /* 0x3100FA21: mov ecx, dword ptr [ebp - 0xc] */ 12803 eax = MEM32(ebp + (-0x10)); /* 0x3100FA24: mov eax, dword ptr [ebp - 0x10] */ 12804 edi = POP32_VAL(esp); /* 0x3100FA27: pop edi */ 12805 esi = POP32_VAL(esp); /* 0x3100FA28: pop esi */ 12806 ebx = POP32_VAL(esp); /* 0x3100FA29: pop ebx */ 12807 MEM32(FS_BASE + (0)) = ecx; /* 0x3100FA2A: mov dword ptr fs:[0], ecx */ 12808 esp = ebp; /* 0x3100FA31: mov esp, ebp */ 12809 ebp = POP32_VAL(esp); /* 0x3100FA33: pop ebp */ 12810 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100FA34: ret 8 */ 12811 RECOMP_REGS_OUT(); 12812 } 12813 12814 void sub_3100FA40(void) { 12815 int _fpu_cmp = 0; 12816 uint32_t _cf = 0; 12817 int _df = 1; 12818 uint32_t _flag_k = FK_NONE; 12819 uint32_t _flag_a = 0, _flag_b = 0; 12820 uint32_t _itail_tgt = 0; 12821 RECOMP_REGS_LOCALS 12822 RECOMP_ENTER(0x3100FA40u); 12823 12824 L_3100FA40: 12825 PUSH32(esp, ebp); /* 0x3100FA40: push ebp */ 12826 ebp = esp; /* 0x3100FA41: mov ebp, esp */ 12827 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 12828 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12829 esp = esp - 0xCu; /* 0x3100FA43: sub esp, 0xc */ 12830 _flag_k = FK_CMP; 12831 PUSH32(esp, ebx); /* 0x3100FA46: push ebx */ 12832 PUSH32(esp, esi); /* 0x3100FA47: push esi */ 12833 PUSH32(esp, edi); /* 0x3100FA48: push edi */ 12834 edi = ecx; /* 0x3100FA49: mov edi, ecx */ 12835 ecx = MEM32(edi + 0x4); /* 0x3100FA4B: mov ecx, dword ptr [edi + 4] */ 12836 ebx = MEM32(ecx + 0x4); /* 0x3100FA4E: mov ebx, dword ptr [ecx + 4] */ 12837 edx = MEM32(edi + 0x8); /* 0x3100FA51: mov edx, dword ptr [edi + 8] */ 12838 /* cmp ebx, edx */ /* 0x3100FA54: cmp ebx, edx */ 12839 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 12840 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12841 _flag_k = FK_CMP; 12842 esi = ecx; /* 0x3100FA56: mov esi, ecx */ 12843 SET_LO8(eax, 1); /* 0x3100FA58: mov al, 1 */ 12844 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100FA7E; /* 0x3100FA5A: je 0x3100fa7e */ 12845 L_3100FA5C: 12846 eax = MEM32(ebp + 0xC); /* 0x3100FA5C: mov eax, dword ptr [ebp + 0xc] */ 12847 eax = MEM32(eax); /* 0x3100FA5F: mov eax, dword ptr [eax] */ 12848 MEM32(ebp + (-0x8)) = eax; /* 0x3100FA61: mov dword ptr [ebp - 8], eax */ 12849 L_3100FA64: 12850 eax = MEM32(ebp + (-0x8)); /* 0x3100FA64: mov eax, dword ptr [ebp - 8] */ 12851 /* cmp eax, MEM32(ebx + 0xC) */ /* 0x3100FA67: cmp eax, dword ptr [ebx + 0xc] */ 12852 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0xC)); 12853 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12854 _flag_k = FK_CMP; 12855 esi = ebx; /* 0x3100FA6A: mov esi, ebx */ 12856 SET_LO8(eax, (CMP_B(_flag_a, _flag_b)) ? 1 : 0); /* 0x3100FA6C: setb al */ 12857 /* test LO8(eax), LO8(eax) */ /* 0x3100FA6F: test al, al */ 12858 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12859 _cf = 0; 12860 _flag_k = FK_NARROW(FK_TEST, 24); 12861 if (TEST_Z(_flag_a, _flag_b)) goto L_3100FA77; /* 0x3100FA71: je 0x3100fa77 */ 12862 L_3100FA73: 12863 ebx = MEM32(ebx); /* 0x3100FA73: mov ebx, dword ptr [ebx] */ 12864 goto L_3100FA7A; /* 0x3100FA75: jmp 0x3100fa7a */ 12865 L_3100FA77: 12866 ebx = MEM32(ebx + 0x8); /* 0x3100FA77: mov ebx, dword ptr [ebx + 8] */ 12867 L_3100FA7A: 12868 /* cmp ebx, edx */ /* 0x3100FA7A: cmp ebx, edx */ 12869 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 12870 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12871 _flag_k = FK_CMP; 12872 RECOMP_BACKEDGE(); 12873 if (CMP_NE(_flag_a, _flag_b)) goto L_3100FA64; /* 0x3100FA7C: jne 0x3100fa64 */ 12874 L_3100FA7E: 12875 SET_LO8(edx, MEM8(edi + 0xC)); /* 0x3100FA7E: mov dl, byte ptr [edi + 0xc] */ 12876 /* test LO8(edx), LO8(edx) */ /* 0x3100FA81: test dl, dl */ 12877 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 12878 _cf = 0; 12879 _flag_k = FK_NARROW(FK_TEST, 24); 12880 if (TEST_Z(_flag_a, _flag_b)) goto L_3100FBF9; /* 0x3100FA83: je 0x3100fbf9 */ 12881 L_3100FA89: 12882 PUSH32(esp, 0); /* 0x3100FA89: push 0 */ 12883 PUSH32(esp, esi); /* 0x3100FA8B: push esi */ 12884 ecx = edi; /* 0x3100FA8C: mov ecx, edi */ 12885 RECOMP_ICALL(0x31005DE0u); /* 0x3100FA8E: call 0x31005de0 */ /* not lifted */ 12886 RECOMP_FLAGS_IN(); 12887 ecx = MEM32(edi + 0x8); /* 0x3100FA93: mov ecx, dword ptr [edi + 8] */ 12888 MEM32(eax) = ecx; /* 0x3100FA96: mov dword ptr [eax], ecx */ 12889 edx = MEM32(edi + 0x8); /* 0x3100FA98: mov edx, dword ptr [edi + 8] */ 12890 ecx = MEM32(ebp + 0xC); /* 0x3100FA9B: mov ecx, dword ptr [ebp + 0xc] */ 12891 MEM32(ebp + (-0x4)) = eax; /* 0x3100FA9E: mov dword ptr [ebp - 4], eax */ 12892 MEM32(eax + 0x8) = edx; /* 0x3100FAA1: mov dword ptr [eax + 8], edx */ 12893 PUSH32(esp, ecx); /* 0x3100FAA4: push ecx */ 12894 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 12895 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12896 eax = eax + 0xCu; /* 0x3100FAA5: add eax, 0xc */ 12897 _flag_k = FK_ADD; 12898 PUSH32(esp, eax); /* 0x3100FAA8: push eax */ 12899 RECOMP_ICALL(0x31005E40u); /* 0x3100FAA9: call 0x31005e40 */ /* not lifted */ 12900 RECOMP_FLAGS_IN(); 12901 ecx = MEM32(edi + 0x10); /* 0x3100FAAE: mov ecx, dword ptr [edi + 0x10] */ 12902 eax = MEM32(edi + 0x4); /* 0x3100FAB1: mov eax, dword ptr [edi + 4] */ 12903 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12904 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12905 esp = esp + 8; /* 0x3100FAB4: add esp, 8 */ 12906 _flag_k = FK_ADD; 12907 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 12908 ecx = ecx + 1; /* 0x3100FAB7: inc ecx */ 12909 _flag_k = FK_INC; 12910 /* cmp esi, eax */ /* 0x3100FAB8: cmp esi, eax */ 12911 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 12912 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12913 _flag_k = FK_CMP; 12914 MEM32(edi + 0x10) = ecx; /* 0x3100FABA: mov dword ptr [edi + 0x10], ecx */ 12915 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100FAE1; /* 0x3100FABD: je 0x3100fae1 */ 12916 L_3100FABF: 12917 /* cmp ebx, MEM32(edi + 0x8) */ /* 0x3100FABF: cmp ebx, dword ptr [edi + 8] */ 12918 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12919 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12920 _flag_k = FK_CMP; 12921 if (CMP_NE(_flag_a, _flag_b)) goto L_3100FAE1; /* 0x3100FAC2: jne 0x3100fae1 */ 12922 L_3100FAC4: 12923 edx = MEM32(ebp + 0xC); /* 0x3100FAC4: mov edx, dword ptr [ebp + 0xc] */ 12924 eax = MEM32(edx); /* 0x3100FAC7: mov eax, dword ptr [edx] */ 12925 /* cmp eax, MEM32(esi + 0xC) */ /* 0x3100FAC9: cmp eax, dword ptr [esi + 0xc] */ 12926 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC)); 12927 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12928 _flag_k = FK_CMP; 12929 if (CMP_B(_flag_a, _flag_b)) goto L_3100FAE1; /* 0x3100FACC: jb 0x3100fae1 */ 12930 L_3100FACE: 12931 ebx = MEM32(ebp + (-0x4)); /* 0x3100FACE: mov ebx, dword ptr [ebp - 4] */ 12932 MEM32(esi + 0x8) = ebx; /* 0x3100FAD1: mov dword ptr [esi + 8], ebx */ 12933 eax = MEM32(edi + 0x4); /* 0x3100FAD4: mov eax, dword ptr [edi + 4] */ 12934 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3100FAD7: cmp esi, dword ptr [eax + 8] */ 12935 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 12936 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12937 _flag_k = FK_CMP; 12938 if (CMP_NE(_flag_a, _flag_b)) goto L_3100FB04; /* 0x3100FADA: jne 0x3100fb04 */ 12939 L_3100FADC: 12940 MEM32(eax + 0x8) = ebx; /* 0x3100FADC: mov dword ptr [eax + 8], ebx */ 12941 goto L_3100FB04; /* 0x3100FADF: jmp 0x3100fb04 */ 12942 L_3100FAE1: 12943 ecx = MEM32(ebp + (-0x4)); /* 0x3100FAE1: mov ecx, dword ptr [ebp - 4] */ 12944 MEM32(esi) = ecx; /* 0x3100FAE4: mov dword ptr [esi], ecx */ 12945 eax = MEM32(edi + 0x4); /* 0x3100FAE6: mov eax, dword ptr [edi + 4] */ 12946 /* cmp esi, eax */ /* 0x3100FAE9: cmp esi, eax */ 12947 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 12948 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12949 _flag_k = FK_CMP; 12950 if (CMP_NE(_flag_a, _flag_b)) goto L_3100FAF8; /* 0x3100FAEB: jne 0x3100faf8 */ 12951 L_3100FAED: 12952 MEM32(eax + 0x4) = ecx; /* 0x3100FAED: mov dword ptr [eax + 4], ecx */ 12953 edx = MEM32(edi + 0x4); /* 0x3100FAF0: mov edx, dword ptr [edi + 4] */ 12954 MEM32(edx + 0x8) = ecx; /* 0x3100FAF3: mov dword ptr [edx + 8], ecx */ 12955 goto L_3100FB01; /* 0x3100FAF6: jmp 0x3100fb01 */ 12956 L_3100FAF8: 12957 /* cmp esi, MEM32(eax) */ /* 0x3100FAF8: cmp esi, dword ptr [eax] */ 12958 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax)); 12959 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12960 _flag_k = FK_CMP; 12961 if (CMP_NE(_flag_a, _flag_b)) goto L_3100FB01; /* 0x3100FAFA: jne 0x3100fb01 */ 12962 L_3100FAFC: 12963 ecx = MEM32(ebp + (-0x4)); /* 0x3100FAFC: mov ecx, dword ptr [ebp - 4] */ 12964 MEM32(eax) = ecx; /* 0x3100FAFF: mov dword ptr [eax], ecx */ 12965 L_3100FB01: 12966 ebx = MEM32(ebp + (-0x4)); /* 0x3100FB01: mov ebx, dword ptr [ebp - 4] */ 12967 L_3100FB04: 12968 edx = MEM32(edi + 0x4); /* 0x3100FB04: mov edx, dword ptr [edi + 4] */ 12969 /* cmp ebx, MEM32(edx + 0x4) */ /* 0x3100FB07: cmp ebx, dword ptr [edx + 4] */ 12970 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 12971 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12972 _flag_k = FK_CMP; 12973 esi = ebx; /* 0x3100FB0A: mov esi, ebx */ 12974 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100FBD7; /* 0x3100FB0C: je 0x3100fbd7 */ 12975 L_3100FB12: 12976 eax = MEM32(esi + 0x4); /* 0x3100FB12: mov eax, dword ptr [esi + 4] */ 12977 SET_LO8(ecx, MEM8(eax + 0x14)); /* 0x3100FB15: mov cl, byte ptr [eax + 0x14] */ 12978 /* test LO8(ecx), LO8(ecx) */ /* 0x3100FB18: test cl, cl */ 12979 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 12980 _cf = 0; 12981 _flag_k = FK_NARROW(FK_TEST, 24); 12982 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100FBD7; /* 0x3100FB1A: jne 0x3100fbd7 */ 12983 L_3100FB20: 12984 edx = MEM32(eax + 0x4); /* 0x3100FB20: mov edx, dword ptr [eax + 4] */ 12985 ecx = MEM32(edx); /* 0x3100FB23: mov ecx, dword ptr [edx] */ 12986 /* cmp eax, ecx */ /* 0x3100FB25: cmp eax, ecx */ 12987 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 12988 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12989 _flag_k = FK_CMP; 12990 if (CMP_NE(_flag_a, _flag_b)) goto L_3100FB7D; /* 0x3100FB27: jne 0x3100fb7d */ 12991 L_3100FB29: 12992 ecx = MEM32(edx + 0x8); /* 0x3100FB29: mov ecx, dword ptr [edx + 8] */ 12993 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3100FB2C: mov dl, byte ptr [ecx + 0x14] */ 12994 /* test LO8(edx), LO8(edx) */ /* 0x3100FB2F: test dl, dl */ 12995 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 12996 _cf = 0; 12997 _flag_k = FK_NARROW(FK_TEST, 24); 12998 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100FB4D; /* 0x3100FB31: jne 0x3100fb4d */ 12999 L_3100FB33: 13000 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x3100FB33: mov byte ptr [eax + 0x14], 1 */ 13001 MEM8(ecx + 0x14) = (uint8_t)(1); /* 0x3100FB37: mov byte ptr [ecx + 0x14], 1 */ 13002 eax = MEM32(esi + 0x4); /* 0x3100FB3B: mov eax, dword ptr [esi + 4] */ 13003 ecx = MEM32(eax + 0x4); /* 0x3100FB3E: mov ecx, dword ptr [eax + 4] */ 13004 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3100FB41: mov byte ptr [ecx + 0x14], 0 */ 13005 edx = MEM32(esi + 0x4); /* 0x3100FB45: mov edx, dword ptr [esi + 4] */ 13006 esi = MEM32(edx + 0x4); /* 0x3100FB48: mov esi, dword ptr [edx + 4] */ 13007 goto L_3100FBCB; /* 0x3100FB4B: jmp 0x3100fbcb */ 13008 L_3100FB4D: 13009 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3100FB4D: cmp esi, dword ptr [eax + 8] */ 13010 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 13011 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13012 _flag_k = FK_CMP; 13013 if (CMP_NE(_flag_a, _flag_b)) goto L_3100FB5C; /* 0x3100FB50: jne 0x3100fb5c */ 13014 L_3100FB52: 13015 esi = eax; /* 0x3100FB52: mov esi, eax */ 13016 PUSH32(esp, esi); /* 0x3100FB54: push esi */ 13017 ecx = edi; /* 0x3100FB55: mov ecx, edi */ 13018 RECOMP_ICALL(0x3100FC90u); /* 0x3100FB57: call 0x3100fc90 */ /* not lifted */ 13019 RECOMP_FLAGS_IN(); 13020 L_3100FB5C: 13021 eax = MEM32(esi + 0x4); /* 0x3100FB5C: mov eax, dword ptr [esi + 4] */ 13022 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x3100FB5F: mov byte ptr [eax + 0x14], 1 */ 13023 ecx = MEM32(esi + 0x4); /* 0x3100FB63: mov ecx, dword ptr [esi + 4] */ 13024 edx = MEM32(ecx + 0x4); /* 0x3100FB66: mov edx, dword ptr [ecx + 4] */ 13025 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x3100FB69: mov byte ptr [edx + 0x14], 0 */ 13026 eax = MEM32(esi + 0x4); /* 0x3100FB6D: mov eax, dword ptr [esi + 4] */ 13027 ecx = MEM32(eax + 0x4); /* 0x3100FB70: mov ecx, dword ptr [eax + 4] */ 13028 PUSH32(esp, ecx); /* 0x3100FB73: push ecx */ 13029 ecx = edi; /* 0x3100FB74: mov ecx, edi */ 13030 RECOMP_ICALL(0x3100FCF0u); /* 0x3100FB76: call 0x3100fcf0 */ /* not lifted */ 13031 RECOMP_FLAGS_IN(); 13032 goto L_3100FBCB; /* 0x3100FB7B: jmp 0x3100fbcb */ 13033 L_3100FB7D: 13034 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3100FB7D: mov dl, byte ptr [ecx + 0x14] */ 13035 /* test LO8(edx), LO8(edx) */ /* 0x3100FB80: test dl, dl */ 13036 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 13037 _cf = 0; 13038 _flag_k = FK_NARROW(FK_TEST, 24); 13039 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100FB9E; /* 0x3100FB82: jne 0x3100fb9e */ 13040 L_3100FB84: 13041 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x3100FB84: mov byte ptr [eax + 0x14], 1 */ 13042 MEM8(ecx + 0x14) = (uint8_t)(1); /* 0x3100FB88: mov byte ptr [ecx + 0x14], 1 */ 13043 edx = MEM32(esi + 0x4); /* 0x3100FB8C: mov edx, dword ptr [esi + 4] */ 13044 eax = MEM32(edx + 0x4); /* 0x3100FB8F: mov eax, dword ptr [edx + 4] */ 13045 MEM8(eax + 0x14) = (uint8_t)(0); /* 0x3100FB92: mov byte ptr [eax + 0x14], 0 */ 13046 ecx = MEM32(esi + 0x4); /* 0x3100FB96: mov ecx, dword ptr [esi + 4] */ 13047 esi = MEM32(ecx + 0x4); /* 0x3100FB99: mov esi, dword ptr [ecx + 4] */ 13048 goto L_3100FBCB; /* 0x3100FB9C: jmp 0x3100fbcb */ 13049 L_3100FB9E: 13050 /* cmp esi, MEM32(eax) */ /* 0x3100FB9E: cmp esi, dword ptr [eax] */ 13051 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax)); 13052 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13053 _flag_k = FK_CMP; 13054 if (CMP_NE(_flag_a, _flag_b)) goto L_3100FBAC; /* 0x3100FBA0: jne 0x3100fbac */ 13055 L_3100FBA2: 13056 esi = eax; /* 0x3100FBA2: mov esi, eax */ 13057 PUSH32(esp, esi); /* 0x3100FBA4: push esi */ 13058 ecx = edi; /* 0x3100FBA5: mov ecx, edi */ 13059 RECOMP_ICALL(0x3100FCF0u); /* 0x3100FBA7: call 0x3100fcf0 */ /* not lifted */ 13060 RECOMP_FLAGS_IN(); 13061 L_3100FBAC: 13062 edx = MEM32(esi + 0x4); /* 0x3100FBAC: mov edx, dword ptr [esi + 4] */ 13063 MEM8(edx + 0x14) = (uint8_t)(1); /* 0x3100FBAF: mov byte ptr [edx + 0x14], 1 */ 13064 eax = MEM32(esi + 0x4); /* 0x3100FBB3: mov eax, dword ptr [esi + 4] */ 13065 ecx = MEM32(eax + 0x4); /* 0x3100FBB6: mov ecx, dword ptr [eax + 4] */ 13066 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3100FBB9: mov byte ptr [ecx + 0x14], 0 */ 13067 edx = MEM32(esi + 0x4); /* 0x3100FBBD: mov edx, dword ptr [esi + 4] */ 13068 eax = MEM32(edx + 0x4); /* 0x3100FBC0: mov eax, dword ptr [edx + 4] */ 13069 PUSH32(esp, eax); /* 0x3100FBC3: push eax */ 13070 ecx = edi; /* 0x3100FBC4: mov ecx, edi */ 13071 RECOMP_ICALL(0x3100FC90u); /* 0x3100FBC6: call 0x3100fc90 */ /* not lifted */ 13072 RECOMP_FLAGS_IN(); 13073 L_3100FBCB: 13074 ecx = MEM32(edi + 0x4); /* 0x3100FBCB: mov ecx, dword ptr [edi + 4] */ 13075 /* cmp esi, MEM32(ecx + 0x4) */ /* 0x3100FBCE: cmp esi, dword ptr [ecx + 4] */ 13076 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 13077 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13078 _flag_k = FK_CMP; 13079 RECOMP_BACKEDGE(); 13080 if (CMP_NE(_flag_a, _flag_b)) goto L_3100FB12; /* 0x3100FBD1: jne 0x3100fb12 */ 13081 L_3100FBD7: 13082 edx = MEM32(edi + 0x4); /* 0x3100FBD7: mov edx, dword ptr [edi + 4] */ 13083 eax = MEM32(edx + 0x4); /* 0x3100FBDA: mov eax, dword ptr [edx + 4] */ 13084 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x3100FBDD: mov byte ptr [eax + 0x14], 1 */ 13085 eax = MEM32(ebp + 0x8); /* 0x3100FBE1: mov eax, dword ptr [ebp + 8] */ 13086 edi = POP32_VAL(esp); /* 0x3100FBE4: pop edi */ 13087 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x3100FBE5: mov byte ptr [ebp - 8], 1 */ 13088 ecx = MEM32(ebp + (-0x8)); /* 0x3100FBE9: mov ecx, dword ptr [ebp - 8] */ 13089 MEM32(eax) = ebx; /* 0x3100FBEC: mov dword ptr [eax], ebx */ 13090 esi = POP32_VAL(esp); /* 0x3100FBEE: pop esi */ 13091 MEM32(eax + 0x4) = ecx; /* 0x3100FBEF: mov dword ptr [eax + 4], ecx */ 13092 ebx = POP32_VAL(esp); /* 0x3100FBF2: pop ebx */ 13093 esp = ebp; /* 0x3100FBF3: mov esp, ebp */ 13094 ebp = POP32_VAL(esp); /* 0x3100FBF5: pop ebp */ 13095 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100FBF6: ret 8 */ 13096 L_3100FBF9: 13097 /* test LO8(eax), LO8(eax) */ /* 0x3100FBF9: test al, al */ 13098 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13099 _cf = 0; 13100 _flag_k = FK_NARROW(FK_TEST, 24); 13101 edx = esi; /* 0x3100FBFB: mov edx, esi */ 13102 MEM32(ebp + (-0x8)) = edx; /* 0x3100FBFD: mov dword ptr [ebp - 8], edx */ 13103 if (TEST_Z(_flag_a, _flag_b)) goto L_3100FC3C; /* 0x3100FC00: je 0x3100fc3c */ 13104 L_3100FC02: 13105 /* cmp esi, MEM32(ecx) */ /* 0x3100FC02: cmp esi, dword ptr [ecx] */ 13106 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx)); 13107 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13108 _flag_k = FK_CMP; 13109 if (CMP_NE(_flag_a, _flag_b)) goto L_3100FC31; /* 0x3100FC04: jne 0x3100fc31 */ 13110 L_3100FC06: 13111 edx = MEM32(ebp + 0xC); /* 0x3100FC06: mov edx, dword ptr [ebp + 0xc] */ 13112 PUSH32(esp, edx); /* 0x3100FC09: push edx */ 13113 PUSH32(esp, esi); /* 0x3100FC0A: push esi */ 13114 PUSH32(esp, ebx); /* 0x3100FC0B: push ebx */ 13115 eax = ebp + 0xC; /* 0x3100FC0C: lea eax, [ebp + 0xc] */ 13116 PUSH32(esp, eax); /* 0x3100FC0F: push eax */ 13117 ecx = edi; /* 0x3100FC10: mov ecx, edi */ 13118 RECOMP_ICALL(0x3100AB20u); /* 0x3100FC12: call 0x3100ab20 */ /* not lifted */ 13119 RECOMP_FLAGS_IN(); 13120 ecx = MEM32(eax); /* 0x3100FC17: mov ecx, dword ptr [eax] */ 13121 eax = MEM32(ebp + 0x8); /* 0x3100FC19: mov eax, dword ptr [ebp + 8] */ 13122 edi = POP32_VAL(esp); /* 0x3100FC1C: pop edi */ 13123 MEM32(eax) = ecx; /* 0x3100FC1D: mov dword ptr [eax], ecx */ 13124 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x3100FC1F: mov byte ptr [ebp - 8], 1 */ 13125 ecx = MEM32(ebp + (-0x8)); /* 0x3100FC23: mov ecx, dword ptr [ebp - 8] */ 13126 esi = POP32_VAL(esp); /* 0x3100FC26: pop esi */ 13127 MEM32(eax + 0x4) = ecx; /* 0x3100FC27: mov dword ptr [eax + 4], ecx */ 13128 ebx = POP32_VAL(esp); /* 0x3100FC2A: pop ebx */ 13129 esp = ebp; /* 0x3100FC2B: mov esp, ebp */ 13130 ebp = POP32_VAL(esp); /* 0x3100FC2D: pop ebp */ 13131 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100FC2E: ret 8 */ 13132 L_3100FC31: 13133 ecx = ebp + (-0x8); /* 0x3100FC31: lea ecx, [ebp - 8] */ 13134 RECOMP_ICALL(0x31010B60u); /* 0x3100FC34: call 0x31010b60 */ /* not lifted */ 13135 RECOMP_FLAGS_IN(); 13136 edx = MEM32(ebp + (-0x8)); /* 0x3100FC39: mov edx, dword ptr [ebp - 8] */ 13137 L_3100FC3C: 13138 ecx = MEM32(edx + 0xC); /* 0x3100FC3C: mov ecx, dword ptr [edx + 0xc] */ 13139 eax = MEM32(ebp + 0xC); /* 0x3100FC3F: mov eax, dword ptr [ebp + 0xc] */ 13140 /* cmp ecx, MEM32(eax) */ /* 0x3100FC42: cmp ecx, dword ptr [eax] */ 13141 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 13142 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13143 _flag_k = FK_CMP; 13144 if (CMP_AE(_flag_a, _flag_b)) goto L_3100FC6E; /* 0x3100FC44: jae 0x3100fc6e */ 13145 L_3100FC46: 13146 PUSH32(esp, eax); /* 0x3100FC46: push eax */ 13147 PUSH32(esp, esi); /* 0x3100FC47: push esi */ 13148 PUSH32(esp, ebx); /* 0x3100FC48: push ebx */ 13149 edx = ebp + 0xC; /* 0x3100FC49: lea edx, [ebp + 0xc] */ 13150 PUSH32(esp, edx); /* 0x3100FC4C: push edx */ 13151 ecx = edi; /* 0x3100FC4D: mov ecx, edi */ 13152 RECOMP_ICALL(0x3100AB20u); /* 0x3100FC4F: call 0x3100ab20 */ /* not lifted */ 13153 RECOMP_FLAGS_IN(); 13154 ecx = MEM32(eax); /* 0x3100FC54: mov ecx, dword ptr [eax] */ 13155 eax = MEM32(ebp + 0x8); /* 0x3100FC56: mov eax, dword ptr [ebp + 8] */ 13156 edi = POP32_VAL(esp); /* 0x3100FC59: pop edi */ 13157 MEM32(eax) = ecx; /* 0x3100FC5A: mov dword ptr [eax], ecx */ 13158 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x3100FC5C: mov byte ptr [ebp - 8], 1 */ 13159 ecx = MEM32(ebp + (-0x8)); /* 0x3100FC60: mov ecx, dword ptr [ebp - 8] */ 13160 esi = POP32_VAL(esp); /* 0x3100FC63: pop esi */ 13161 MEM32(eax + 0x4) = ecx; /* 0x3100FC64: mov dword ptr [eax + 4], ecx */ 13162 ebx = POP32_VAL(esp); /* 0x3100FC67: pop ebx */ 13163 esp = ebp; /* 0x3100FC68: mov esp, ebp */ 13164 ebp = POP32_VAL(esp); /* 0x3100FC6A: pop ebp */ 13165 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100FC6B: ret 8 */ 13166 L_3100FC6E: 13167 eax = MEM32(ebp + 0x8); /* 0x3100FC6E: mov eax, dword ptr [ebp + 8] */ 13168 edi = POP32_VAL(esp); /* 0x3100FC71: pop edi */ 13169 MEM32(eax) = edx; /* 0x3100FC72: mov dword ptr [eax], edx */ 13170 MEM8(ebp + (-0x8)) = (uint8_t)(0); /* 0x3100FC74: mov byte ptr [ebp - 8], 0 */ 13171 edx = MEM32(ebp + (-0x8)); /* 0x3100FC78: mov edx, dword ptr [ebp - 8] */ 13172 esi = POP32_VAL(esp); /* 0x3100FC7B: pop esi */ 13173 MEM32(eax + 0x4) = edx; /* 0x3100FC7C: mov dword ptr [eax + 4], edx */ 13174 ebx = POP32_VAL(esp); /* 0x3100FC7F: pop ebx */ 13175 esp = ebp; /* 0x3100FC80: mov esp, ebp */ 13176 ebp = POP32_VAL(esp); /* 0x3100FC82: pop ebp */ 13177 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100FC83: ret 8 */ 13178 RECOMP_REGS_OUT(); 13179 } 13180 13181 void sub_3100FC90(void) { 13182 int _fpu_cmp = 0; 13183 uint32_t _cf = 0; 13184 int _df = 1; 13185 uint32_t _flag_k = FK_NONE; 13186 uint32_t _flag_a = 0, _flag_b = 0; 13187 uint32_t _itail_tgt = 0; 13188 RECOMP_REGS_LOCALS 13189 RECOMP_ENTER(0x3100FC90u); 13190 13191 L_3100FC90: 13192 PUSH32(esp, ebp); /* 0x3100FC90: push ebp */ 13193 ebp = esp; /* 0x3100FC91: mov ebp, esp */ 13194 edx = MEM32(ebp + 0x8); /* 0x3100FC93: mov edx, dword ptr [ebp + 8] */ 13195 eax = MEM32(edx + 0x8); /* 0x3100FC96: mov eax, dword ptr [edx + 8] */ 13196 PUSH32(esp, esi); /* 0x3100FC99: push esi */ 13197 esi = MEM32(eax); /* 0x3100FC9A: mov esi, dword ptr [eax] */ 13198 MEM32(edx + 0x8) = esi; /* 0x3100FC9C: mov dword ptr [edx + 8], esi */ 13199 esi = MEM32(eax); /* 0x3100FC9F: mov esi, dword ptr [eax] */ 13200 /* cmp esi, MEM32(ecx + 0x8) */ /* 0x3100FCA1: cmp esi, dword ptr [ecx + 8] */ 13201 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 13202 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13203 _flag_k = FK_CMP; 13204 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100FCA9; /* 0x3100FCA4: je 0x3100fca9 */ 13205 L_3100FCA6: 13206 MEM32(esi + 0x4) = edx; /* 0x3100FCA6: mov dword ptr [esi + 4], edx */ 13207 L_3100FCA9: 13208 esi = MEM32(edx + 0x4); /* 0x3100FCA9: mov esi, dword ptr [edx + 4] */ 13209 MEM32(eax + 0x4) = esi; /* 0x3100FCAC: mov dword ptr [eax + 4], esi */ 13210 ecx = MEM32(ecx + 0x4); /* 0x3100FCAF: mov ecx, dword ptr [ecx + 4] */ 13211 /* cmp edx, MEM32(ecx + 0x4) */ /* 0x3100FCB2: cmp edx, dword ptr [ecx + 4] */ 13212 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 13213 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13214 _flag_k = FK_CMP; 13215 if (CMP_NE(_flag_a, _flag_b)) goto L_3100FCC4; /* 0x3100FCB5: jne 0x3100fcc4 */ 13216 L_3100FCB7: 13217 MEM32(ecx + 0x4) = eax; /* 0x3100FCB7: mov dword ptr [ecx + 4], eax */ 13218 MEM32(eax) = edx; /* 0x3100FCBA: mov dword ptr [eax], edx */ 13219 MEM32(edx + 0x4) = eax; /* 0x3100FCBC: mov dword ptr [edx + 4], eax */ 13220 esi = POP32_VAL(esp); /* 0x3100FCBF: pop esi */ 13221 ebp = POP32_VAL(esp); /* 0x3100FCC0: pop ebp */ 13222 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3100FCC1: ret 4 */ 13223 L_3100FCC4: 13224 ecx = MEM32(edx + 0x4); /* 0x3100FCC4: mov ecx, dword ptr [edx + 4] */ 13225 /* cmp edx, MEM32(ecx) */ /* 0x3100FCC7: cmp edx, dword ptr [ecx] */ 13226 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx)); 13227 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13228 _flag_k = FK_CMP; 13229 if (CMP_NE(_flag_a, _flag_b)) goto L_3100FCD7; /* 0x3100FCC9: jne 0x3100fcd7 */ 13230 L_3100FCCB: 13231 MEM32(ecx) = eax; /* 0x3100FCCB: mov dword ptr [ecx], eax */ 13232 MEM32(eax) = edx; /* 0x3100FCCD: mov dword ptr [eax], edx */ 13233 MEM32(edx + 0x4) = eax; /* 0x3100FCCF: mov dword ptr [edx + 4], eax */ 13234 esi = POP32_VAL(esp); /* 0x3100FCD2: pop esi */ 13235 ebp = POP32_VAL(esp); /* 0x3100FCD3: pop ebp */ 13236 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3100FCD4: ret 4 */ 13237 L_3100FCD7: 13238 MEM32(ecx + 0x8) = eax; /* 0x3100FCD7: mov dword ptr [ecx + 8], eax */ 13239 MEM32(eax) = edx; /* 0x3100FCDA: mov dword ptr [eax], edx */ 13240 MEM32(edx + 0x4) = eax; /* 0x3100FCDC: mov dword ptr [edx + 4], eax */ 13241 esi = POP32_VAL(esp); /* 0x3100FCDF: pop esi */ 13242 ebp = POP32_VAL(esp); /* 0x3100FCE0: pop ebp */ 13243 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3100FCE1: ret 4 */ 13244 RECOMP_REGS_OUT(); 13245 } 13246 13247 void sub_3100FCF0(void) { 13248 int _fpu_cmp = 0; 13249 uint32_t _cf = 0; 13250 int _df = 1; 13251 uint32_t _flag_k = FK_NONE; 13252 uint32_t _flag_a = 0, _flag_b = 0; 13253 uint32_t _itail_tgt = 0; 13254 RECOMP_REGS_LOCALS 13255 RECOMP_ENTER(0x3100FCF0u); 13256 13257 L_3100FCF0: 13258 PUSH32(esp, ebp); /* 0x3100FCF0: push ebp */ 13259 ebp = esp; /* 0x3100FCF1: mov ebp, esp */ 13260 edx = MEM32(ebp + 0x8); /* 0x3100FCF3: mov edx, dword ptr [ebp + 8] */ 13261 eax = MEM32(edx); /* 0x3100FCF6: mov eax, dword ptr [edx] */ 13262 PUSH32(esp, esi); /* 0x3100FCF8: push esi */ 13263 esi = MEM32(eax + 0x8); /* 0x3100FCF9: mov esi, dword ptr [eax + 8] */ 13264 MEM32(edx) = esi; /* 0x3100FCFC: mov dword ptr [edx], esi */ 13265 esi = MEM32(eax + 0x8); /* 0x3100FCFE: mov esi, dword ptr [eax + 8] */ 13266 /* cmp esi, MEM32(ecx + 0x8) */ /* 0x3100FD01: cmp esi, dword ptr [ecx + 8] */ 13267 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 13268 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13269 _flag_k = FK_CMP; 13270 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100FD09; /* 0x3100FD04: je 0x3100fd09 */ 13271 L_3100FD06: 13272 MEM32(esi + 0x4) = edx; /* 0x3100FD06: mov dword ptr [esi + 4], edx */ 13273 L_3100FD09: 13274 esi = MEM32(edx + 0x4); /* 0x3100FD09: mov esi, dword ptr [edx + 4] */ 13275 MEM32(eax + 0x4) = esi; /* 0x3100FD0C: mov dword ptr [eax + 4], esi */ 13276 ecx = MEM32(ecx + 0x4); /* 0x3100FD0F: mov ecx, dword ptr [ecx + 4] */ 13277 /* cmp edx, MEM32(ecx + 0x4) */ /* 0x3100FD12: cmp edx, dword ptr [ecx + 4] */ 13278 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 13279 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13280 _flag_k = FK_CMP; 13281 if (CMP_NE(_flag_a, _flag_b)) goto L_3100FD25; /* 0x3100FD15: jne 0x3100fd25 */ 13282 L_3100FD17: 13283 MEM32(ecx + 0x4) = eax; /* 0x3100FD17: mov dword ptr [ecx + 4], eax */ 13284 MEM32(eax + 0x8) = edx; /* 0x3100FD1A: mov dword ptr [eax + 8], edx */ 13285 MEM32(edx + 0x4) = eax; /* 0x3100FD1D: mov dword ptr [edx + 4], eax */ 13286 esi = POP32_VAL(esp); /* 0x3100FD20: pop esi */ 13287 ebp = POP32_VAL(esp); /* 0x3100FD21: pop ebp */ 13288 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3100FD22: ret 4 */ 13289 L_3100FD25: 13290 ecx = MEM32(edx + 0x4); /* 0x3100FD25: mov ecx, dword ptr [edx + 4] */ 13291 /* cmp edx, MEM32(ecx + 0x8) */ /* 0x3100FD28: cmp edx, dword ptr [ecx + 8] */ 13292 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 13293 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13294 _flag_k = FK_CMP; 13295 if (CMP_NE(_flag_a, _flag_b)) goto L_3100FD3B; /* 0x3100FD2B: jne 0x3100fd3b */ 13296 L_3100FD2D: 13297 MEM32(ecx + 0x8) = eax; /* 0x3100FD2D: mov dword ptr [ecx + 8], eax */ 13298 MEM32(eax + 0x8) = edx; /* 0x3100FD30: mov dword ptr [eax + 8], edx */ 13299 MEM32(edx + 0x4) = eax; /* 0x3100FD33: mov dword ptr [edx + 4], eax */ 13300 esi = POP32_VAL(esp); /* 0x3100FD36: pop esi */ 13301 ebp = POP32_VAL(esp); /* 0x3100FD37: pop ebp */ 13302 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3100FD38: ret 4 */ 13303 L_3100FD3B: 13304 MEM32(ecx) = eax; /* 0x3100FD3B: mov dword ptr [ecx], eax */ 13305 MEM32(eax + 0x8) = edx; /* 0x3100FD3D: mov dword ptr [eax + 8], edx */ 13306 MEM32(edx + 0x4) = eax; /* 0x3100FD40: mov dword ptr [edx + 4], eax */ 13307 esi = POP32_VAL(esp); /* 0x3100FD43: pop esi */ 13308 ebp = POP32_VAL(esp); /* 0x3100FD44: pop ebp */ 13309 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3100FD45: ret 4 */ 13310 RECOMP_REGS_OUT(); 13311 } 13312 13313 void sub_3100FD50(void) { 13314 int _fpu_cmp = 0; 13315 uint32_t _cf = 0; 13316 int _df = 1; 13317 uint32_t _flag_k = FK_NONE; 13318 uint32_t _flag_a = 0, _flag_b = 0; 13319 uint32_t _itail_tgt = 0; 13320 RECOMP_REGS_LOCALS 13321 RECOMP_ENTER(0x3100FD50u); 13322 13323 L_3100FD50: 13324 PUSH32(esp, ebp); /* 0x3100FD50: push ebp */ 13325 ebp = esp; /* 0x3100FD51: mov ebp, esp */ 13326 eax = MEM32(ebp + 0x10); /* 0x3100FD53: mov eax, dword ptr [ebp + 0x10] */ 13327 edx = MEM32(ebp + 0x8); /* 0x3100FD56: mov edx, dword ptr [ebp + 8] */ 13328 PUSH32(esp, ebx); /* 0x3100FD59: push ebx */ 13329 PUSH32(esp, esi); /* 0x3100FD5A: push esi */ 13330 esi = ecx; /* 0x3100FD5B: mov esi, ecx */ 13331 SET_LO8(ecx, MEM8(eax)); /* 0x3100FD5D: mov cl, byte ptr [eax] */ 13332 MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x3100FD5F: mov byte ptr [esi], cl */ 13333 SET_LO8(eax, MEM8(edx)); /* 0x3100FD61: mov al, byte ptr [edx] */ 13334 SET_LO8(ecx, MEM8(ebp + 0xC)); /* 0x3100FD63: mov cl, byte ptr [ebp + 0xc] */ 13335 PUSH32(esp, edi); /* 0x3100FD66: push edi */ 13336 PUSH32(esp, 0x18u); /* 0x3100FD67: push 0x18 */ 13337 MEM8(esi + 0x1) = (uint8_t)(LO8(eax)); /* 0x3100FD69: mov byte ptr [esi + 1], al */ 13338 MEM8(esi + 0xC) = (uint8_t)(LO8(ecx)); /* 0x3100FD6C: mov byte ptr [esi + 0xc], cl */ 13339 RECOMP_ICALL(0x310468DAu); /* 0x3100FD6F: call 0x310468da */ /* not lifted */ 13340 RECOMP_FLAGS_IN(); 13341 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13342 ebx = 0; /* 0x3100FD74: xor ebx, ebx */ 13343 _cf = 0; 13344 _flag_k = FK_TEST; 13345 MEM32(eax + 0x4) = ebx; /* 0x3100FD76: mov dword ptr [eax + 4], ebx */ 13346 MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x3100FD79: mov byte ptr [eax + 0x15], bl */ 13347 SET_LO8(ecx, 1); /* 0x3100FD7C: mov cl, 1 */ 13348 MEM8(eax + 0x14) = (uint8_t)(LO8(ecx)); /* 0x3100FD7E: mov byte ptr [eax + 0x14], cl */ 13349 MEM32(esi + 0x8) = eax; /* 0x3100FD81: mov dword ptr [esi + 8], eax */ 13350 MEM8(eax + 0x15) = (uint8_t)(LO8(ecx)); /* 0x3100FD84: mov byte ptr [eax + 0x15], cl */ 13351 edx = MEM32(esi + 0x8); /* 0x3100FD87: mov edx, dword ptr [esi + 8] */ 13352 MEM32(edx) = ebx; /* 0x3100FD8A: mov dword ptr [edx], ebx */ 13353 eax = MEM32(esi + 0x8); /* 0x3100FD8C: mov eax, dword ptr [esi + 8] */ 13354 MEM32(eax + 0x8) = ebx; /* 0x3100FD8F: mov dword ptr [eax + 8], ebx */ 13355 edi = MEM32(esi + 0x8); /* 0x3100FD92: mov edi, dword ptr [esi + 8] */ 13356 PUSH32(esp, 0x18u); /* 0x3100FD95: push 0x18 */ 13357 RECOMP_ICALL(0x310468DAu); /* 0x3100FD97: call 0x310468da */ /* not lifted */ 13358 RECOMP_FLAGS_IN(); 13359 MEM32(eax + 0x4) = edi; /* 0x3100FD9C: mov dword ptr [eax + 4], edi */ 13360 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3100FD9F: mov byte ptr [eax + 0x14], bl */ 13361 MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x3100FDA2: mov byte ptr [eax + 0x15], bl */ 13362 MEM32(esi + 0x4) = eax; /* 0x3100FDA5: mov dword ptr [esi + 4], eax */ 13363 MEM32(eax) = eax; /* 0x3100FDA8: mov dword ptr [eax], eax */ 13364 eax = MEM32(esi + 0x4); /* 0x3100FDAA: mov eax, dword ptr [esi + 4] */ 13365 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 13366 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13367 esp = esp + 8; /* 0x3100FDAD: add esp, 8 */ 13368 _flag_k = FK_ADD; 13369 MEM32(eax + 0x8) = eax; /* 0x3100FDB0: mov dword ptr [eax + 8], eax */ 13370 edi = POP32_VAL(esp); /* 0x3100FDB3: pop edi */ 13371 MEM32(esi + 0x10) = ebx; /* 0x3100FDB4: mov dword ptr [esi + 0x10], ebx */ 13372 eax = esi; /* 0x3100FDB7: mov eax, esi */ 13373 esi = POP32_VAL(esp); /* 0x3100FDB9: pop esi */ 13374 ebx = POP32_VAL(esp); /* 0x3100FDBA: pop ebx */ 13375 ebp = POP32_VAL(esp); /* 0x3100FDBB: pop ebp */ 13376 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3100FDBC: ret 0xc */ 13377 RECOMP_REGS_OUT(); 13378 } 13379 13380 void sub_3100FDC0(void) { 13381 int _fpu_cmp = 0; 13382 uint32_t _cf = 0; 13383 int _df = 1; 13384 uint32_t _flag_k = FK_NONE; 13385 uint32_t _flag_a = 0, _flag_b = 0; 13386 uint32_t _itail_tgt = 0; 13387 RECOMP_REGS_LOCALS 13388 RECOMP_ENTER(0x3100FDC0u); 13389 13390 L_3100FDC0: 13391 PUSH32(esp, ebp); /* 0x3100FDC0: push ebp */ 13392 ebp = esp; /* 0x3100FDC1: mov ebp, esp */ 13393 PUSH32(esp, ebx); /* 0x3100FDC3: push ebx */ 13394 PUSH32(esp, esi); /* 0x3100FDC4: push esi */ 13395 ebx = ecx; /* 0x3100FDC5: mov ebx, ecx */ 13396 eax = MEM32(ebx + 0x8); /* 0x3100FDC7: mov eax, dword ptr [ebx + 8] */ 13397 PUSH32(esp, edi); /* 0x3100FDCA: push edi */ 13398 edi = MEM32(ebp + 0x8); /* 0x3100FDCB: mov edi, dword ptr [ebp + 8] */ 13399 /* cmp edi, eax */ /* 0x3100FDCE: cmp edi, eax */ 13400 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 13401 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13402 _flag_k = FK_CMP; 13403 esi = edi; /* 0x3100FDD0: mov esi, edi */ 13404 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100FDF3; /* 0x3100FDD2: je 0x3100fdf3 */ 13405 L_3100FDD4: 13406 eax = MEM32(esi + 0x8); /* 0x3100FDD4: mov eax, dword ptr [esi + 8] */ 13407 PUSH32(esp, eax); /* 0x3100FDD7: push eax */ 13408 ecx = ebx; /* 0x3100FDD8: mov ecx, ebx */ 13409 RECOMP_ICALL(0x3100FDC0u); /* 0x3100FDDA: call 0x3100fdc0 */ /* not lifted */ 13410 RECOMP_FLAGS_IN(); 13411 esi = MEM32(esi); /* 0x3100FDDF: mov esi, dword ptr [esi] */ 13412 PUSH32(esp, edi); /* 0x3100FDE1: push edi */ 13413 RECOMP_ICALL(0x31046858u); /* 0x3100FDE2: call 0x31046858 */ /* not lifted */ 13414 RECOMP_FLAGS_IN(); 13415 eax = MEM32(ebx + 0x8); /* 0x3100FDE7: mov eax, dword ptr [ebx + 8] */ 13416 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13417 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13418 esp = esp + 4; /* 0x3100FDEA: add esp, 4 */ 13419 _flag_k = FK_ADD; 13420 /* cmp esi, eax */ /* 0x3100FDED: cmp esi, eax */ 13421 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 13422 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13423 _flag_k = FK_CMP; 13424 edi = esi; /* 0x3100FDEF: mov edi, esi */ 13425 RECOMP_BACKEDGE(); 13426 if (CMP_NE(_flag_a, _flag_b)) goto L_3100FDD4; /* 0x3100FDF1: jne 0x3100fdd4 */ 13427 L_3100FDF3: 13428 edi = POP32_VAL(esp); /* 0x3100FDF3: pop edi */ 13429 esi = POP32_VAL(esp); /* 0x3100FDF4: pop esi */ 13430 ebx = POP32_VAL(esp); /* 0x3100FDF5: pop ebx */ 13431 ebp = POP32_VAL(esp); /* 0x3100FDF6: pop ebp */ 13432 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3100FDF7: ret 4 */ 13433 RECOMP_REGS_OUT(); 13434 } 13435 13436 void sub_3100FE00(void) { 13437 int _fpu_cmp = 0; 13438 uint32_t _cf = 0; 13439 int _df = 1; 13440 uint32_t _flag_k = FK_NONE; 13441 uint32_t _flag_a = 0, _flag_b = 0; 13442 uint32_t _itail_tgt = 0; 13443 RECOMP_REGS_LOCALS 13444 RECOMP_ENTER(0x3100FE00u); 13445 13446 L_3100FE00: 13447 PUSH32(esp, ebp); /* 0x3100FE00: push ebp */ 13448 ebp = esp; /* 0x3100FE01: mov ebp, esp */ 13449 eax = MEM32(ecx + 0x4); /* 0x3100FE03: mov eax, dword ptr [ecx + 4] */ 13450 edx = MEM32(eax + 0x4); /* 0x3100FE06: mov edx, dword ptr [eax + 4] */ 13451 ecx = MEM32(ecx + 0x8); /* 0x3100FE09: mov ecx, dword ptr [ecx + 8] */ 13452 /* cmp edx, ecx */ /* 0x3100FE0C: cmp edx, ecx */ 13453 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 13454 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13455 _flag_k = FK_CMP; 13456 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100FE29; /* 0x3100FE0E: je 0x3100fe29 */ 13457 L_3100FE10: 13458 PUSH32(esp, esi); /* 0x3100FE10: push esi */ 13459 esi = MEM32(ebp + 0x8); /* 0x3100FE11: mov esi, dword ptr [ebp + 8] */ 13460 esi = MEM32(esi); /* 0x3100FE14: mov esi, dword ptr [esi] */ 13461 L_3100FE16: 13462 /* cmp MEM32(edx + 0xC), esi */ /* 0x3100FE16: cmp dword ptr [edx + 0xc], esi */ 13463 _flag_a = (uint32_t)(MEM32(edx + 0xC)); _flag_b = (uint32_t)(esi); 13464 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13465 _flag_k = FK_CMP; 13466 if (CMP_AE(_flag_a, _flag_b)) goto L_3100FE20; /* 0x3100FE19: jae 0x3100fe20 */ 13467 L_3100FE1B: 13468 edx = MEM32(edx + 0x8); /* 0x3100FE1B: mov edx, dword ptr [edx + 8] */ 13469 goto L_3100FE24; /* 0x3100FE1E: jmp 0x3100fe24 */ 13470 L_3100FE20: 13471 eax = edx; /* 0x3100FE20: mov eax, edx */ 13472 edx = MEM32(edx); /* 0x3100FE22: mov edx, dword ptr [edx] */ 13473 L_3100FE24: 13474 /* cmp edx, ecx */ /* 0x3100FE24: cmp edx, ecx */ 13475 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 13476 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13477 _flag_k = FK_CMP; 13478 RECOMP_BACKEDGE(); 13479 if (CMP_NE(_flag_a, _flag_b)) goto L_3100FE16; /* 0x3100FE26: jne 0x3100fe16 */ 13480 L_3100FE28: 13481 esi = POP32_VAL(esp); /* 0x3100FE28: pop esi */ 13482 L_3100FE29: 13483 ebp = POP32_VAL(esp); /* 0x3100FE29: pop ebp */ 13484 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3100FE2A: ret 4 */ 13485 RECOMP_REGS_OUT(); 13486 } 13487 13488 void sub_3100FE30(void) { 13489 int _fpu_cmp = 0; 13490 uint32_t _cf = 0; 13491 int _df = 1; 13492 uint32_t _flag_k = FK_NONE; 13493 uint32_t _flag_a = 0, _flag_b = 0; 13494 uint32_t _itail_tgt = 0; 13495 RECOMP_REGS_LOCALS 13496 RECOMP_ENTER(0x3100FE30u); 13497 13498 L_3100FE30: 13499 PUSH32(esp, ebp); /* 0x3100FE30: push ebp */ 13500 ebp = esp; /* 0x3100FE31: mov ebp, esp */ 13501 PUSH32(esp, ebx); /* 0x3100FE33: push ebx */ 13502 PUSH32(esp, esi); /* 0x3100FE34: push esi */ 13503 esi = MEM32(ecx); /* 0x3100FE35: mov esi, dword ptr [ecx] */ 13504 edx = MEM32(esi + 0x8); /* 0x3100FE37: mov edx, dword ptr [esi + 8] */ 13505 SET_LO8(eax, MEM8(edx + 0x15)); /* 0x3100FE3A: mov al, byte ptr [edx + 0x15] */ 13506 /* test LO8(eax), LO8(eax) */ /* 0x3100FE3D: test al, al */ 13507 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13508 _cf = 0; 13509 _flag_k = FK_NARROW(FK_TEST, 24); 13510 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100FE62; /* 0x3100FE3F: jne 0x3100fe62 */ 13511 L_3100FE41: 13512 eax = MEM32(edx); /* 0x3100FE41: mov eax, dword ptr [edx] */ 13513 SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x3100FE43: mov bl, byte ptr [eax + 0x15] */ 13514 /* test LO8(ebx), LO8(ebx) */ /* 0x3100FE46: test bl, bl */ 13515 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13516 _cf = 0; 13517 _flag_k = FK_NARROW(FK_TEST, 24); 13518 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100FE55; /* 0x3100FE48: jne 0x3100fe55 */ 13519 L_3100FE4A: 13520 edx = eax; /* 0x3100FE4A: mov edx, eax */ 13521 eax = MEM32(edx); /* 0x3100FE4C: mov eax, dword ptr [edx] */ 13522 SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x3100FE4E: mov bl, byte ptr [eax + 0x15] */ 13523 /* test LO8(ebx), LO8(ebx) */ /* 0x3100FE51: test bl, bl */ 13524 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13525 _cf = 0; 13526 _flag_k = FK_NARROW(FK_TEST, 24); 13527 RECOMP_BACKEDGE(); 13528 if (TEST_Z(_flag_a, _flag_b)) goto L_3100FE4A; /* 0x3100FE53: je 0x3100fe4a */ 13529 L_3100FE55: 13530 eax = MEM32(ebp + 0x8); /* 0x3100FE55: mov eax, dword ptr [ebp + 8] */ 13531 MEM32(ecx) = edx; /* 0x3100FE58: mov dword ptr [ecx], edx */ 13532 MEM32(eax) = esi; /* 0x3100FE5A: mov dword ptr [eax], esi */ 13533 esi = POP32_VAL(esp); /* 0x3100FE5C: pop esi */ 13534 ebx = POP32_VAL(esp); /* 0x3100FE5D: pop ebx */ 13535 ebp = POP32_VAL(esp); /* 0x3100FE5E: pop ebp */ 13536 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100FE5F: ret 8 */ 13537 L_3100FE62: 13538 eax = MEM32(esi + 0x4); /* 0x3100FE62: mov eax, dword ptr [esi + 4] */ 13539 edx = MEM32(ecx); /* 0x3100FE65: mov edx, dword ptr [ecx] */ 13540 /* cmp edx, MEM32(eax + 0x8) */ /* 0x3100FE67: cmp edx, dword ptr [eax + 8] */ 13541 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 13542 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13543 _flag_k = FK_CMP; 13544 if (CMP_NE(_flag_a, _flag_b)) goto L_3100FE78; /* 0x3100FE6A: jne 0x3100fe78 */ 13545 L_3100FE6C: 13546 MEM32(ecx) = eax; /* 0x3100FE6C: mov dword ptr [ecx], eax */ 13547 eax = MEM32(eax + 0x4); /* 0x3100FE6E: mov eax, dword ptr [eax + 4] */ 13548 edx = MEM32(ecx); /* 0x3100FE71: mov edx, dword ptr [ecx] */ 13549 /* cmp edx, MEM32(eax + 0x8) */ /* 0x3100FE73: cmp edx, dword ptr [eax + 8] */ 13550 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 13551 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13552 _flag_k = FK_CMP; 13553 RECOMP_BACKEDGE(); 13554 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100FE6C; /* 0x3100FE76: je 0x3100fe6c */ 13555 L_3100FE78: 13556 edx = MEM32(ecx); /* 0x3100FE78: mov edx, dword ptr [ecx] */ 13557 /* cmp MEM32(edx + 0x8), eax */ /* 0x3100FE7A: cmp dword ptr [edx + 8], eax */ 13558 _flag_a = (uint32_t)(MEM32(edx + 0x8)); _flag_b = (uint32_t)(eax); 13559 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13560 _flag_k = FK_CMP; 13561 if (CMP_EQ(_flag_a, _flag_b)) goto L_3100FE81; /* 0x3100FE7D: je 0x3100fe81 */ 13562 L_3100FE7F: 13563 MEM32(ecx) = eax; /* 0x3100FE7F: mov dword ptr [ecx], eax */ 13564 L_3100FE81: 13565 eax = MEM32(ebp + 0x8); /* 0x3100FE81: mov eax, dword ptr [ebp + 8] */ 13566 MEM32(eax) = esi; /* 0x3100FE84: mov dword ptr [eax], esi */ 13567 esi = POP32_VAL(esp); /* 0x3100FE86: pop esi */ 13568 ebx = POP32_VAL(esp); /* 0x3100FE87: pop ebx */ 13569 ebp = POP32_VAL(esp); /* 0x3100FE88: pop ebp */ 13570 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100FE89: ret 8 */ 13571 RECOMP_REGS_OUT(); 13572 } 13573 13574 void sub_3100FE90(void) { 13575 int _fpu_cmp = 0; 13576 uint32_t _cf = 0; 13577 int _df = 1; 13578 uint32_t _flag_k = FK_NONE; 13579 uint32_t _flag_a = 0, _flag_b = 0; 13580 uint32_t _itail_tgt = 0; 13581 RECOMP_REGS_LOCALS 13582 RECOMP_ENTER(0x3100FE90u); 13583 13584 L_3100FE90: 13585 PUSH32(esp, ebp); /* 0x3100FE90: push ebp */ 13586 ebp = esp; /* 0x3100FE91: mov ebp, esp */ 13587 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 13588 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13589 esp = esp - 0x18u; /* 0x3100FE93: sub esp, 0x18 */ 13590 _flag_k = FK_CMP; 13591 PUSH32(esp, ebx); /* 0x3100FE96: push ebx */ 13592 PUSH32(esp, esi); /* 0x3100FE97: push esi */ 13593 PUSH32(esp, edi); /* 0x3100FE98: push edi */ 13594 esi = ecx; /* 0x3100FE99: mov esi, ecx */ 13595 eax = ebp + (-0x8); /* 0x3100FE9B: lea eax, [ebp - 8] */ 13596 PUSH32(esp, eax); /* 0x3100FE9E: push eax */ 13597 ecx = ebp + (-0x10); /* 0x3100FE9F: lea ecx, [ebp - 0x10] */ 13598 PUSH32(esp, ecx); /* 0x3100FEA2: push ecx */ 13599 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13600 ebx = 0; /* 0x3100FEA3: xor ebx, ebx */ 13601 _cf = 0; 13602 _flag_k = FK_TEST; 13603 ecx = esi; /* 0x3100FEA5: mov ecx, esi */ 13604 MEM32(ebp + (-0x8)) = 0x000F6955u; /* 0x3100FEA7: mov dword ptr [ebp - 8], 0xf6955 */ 13605 MEM32(ebp + (-0x4)) = ebx; /* 0x3100FEAE: mov dword ptr [ebp - 4], ebx */ 13606 RECOMP_ICALL(0x31010A60u); /* 0x3100FEB1: call 0x31010a60 */ /* not lifted */ 13607 RECOMP_FLAGS_IN(); 13608 eax = MEM32(eax); /* 0x3100FEB6: mov eax, dword ptr [eax] */ 13609 edi = MEM32(ebp + 0xC); /* 0x3100FEB8: mov edi, dword ptr [ebp + 0xc] */ 13610 MEM32(eax + 0x10) = edi; /* 0x3100FEBB: mov dword ptr [eax + 0x10], edi */ 13611 edx = ebp + (-0x8); /* 0x3100FEBE: lea edx, [ebp - 8] */ 13612 PUSH32(esp, edx); /* 0x3100FEC1: push edx */ 13613 eax = ebp + (-0x10); /* 0x3100FEC2: lea eax, [ebp - 0x10] */ 13614 PUSH32(esp, eax); /* 0x3100FEC5: push eax */ 13615 ecx = esi; /* 0x3100FEC6: mov ecx, esi */ 13616 MEM32(ebp + (-0x8)) = 0x000F695Eu; /* 0x3100FEC8: mov dword ptr [ebp - 8], 0xf695e */ 13617 MEM32(ebp + (-0x4)) = ebx; /* 0x3100FECF: mov dword ptr [ebp - 4], ebx */ 13618 RECOMP_ICALL(0x31010A60u); /* 0x3100FED2: call 0x31010a60 */ /* not lifted */ 13619 RECOMP_FLAGS_IN(); 13620 eax = MEM32(eax); /* 0x3100FED7: mov eax, dword ptr [eax] */ 13621 ecx = ebp + (-0x8); /* 0x3100FED9: lea ecx, [ebp - 8] */ 13622 PUSH32(esp, ecx); /* 0x3100FEDC: push ecx */ 13623 edx = ebp + (-0x10); /* 0x3100FEDD: lea edx, [ebp - 0x10] */ 13624 MEM32(eax + 0x10) = edi; /* 0x3100FEE0: mov dword ptr [eax + 0x10], edi */ 13625 PUSH32(esp, edx); /* 0x3100FEE3: push edx */ 13626 ecx = esi; /* 0x3100FEE4: mov ecx, esi */ 13627 MEM32(ebp + (-0x8)) = 0x000FDE81u; /* 0x3100FEE6: mov dword ptr [ebp - 8], 0xfde81 */ 13628 MEM32(ebp + (-0x4)) = ebx; /* 0x3100FEED: mov dword ptr [ebp - 4], ebx */ 13629 RECOMP_ICALL(0x31010A60u); /* 0x3100FEF0: call 0x31010a60 */ /* not lifted */ 13630 RECOMP_FLAGS_IN(); 13631 eax = MEM32(eax); /* 0x3100FEF5: mov eax, dword ptr [eax] */ 13632 MEM32(eax + 0x10) = edi; /* 0x3100FEF7: mov dword ptr [eax + 0x10], edi */ 13633 eax = ebp + (-0x8); /* 0x3100FEFA: lea eax, [ebp - 8] */ 13634 PUSH32(esp, eax); /* 0x3100FEFD: push eax */ 13635 ecx = ebp + (-0x10); /* 0x3100FEFE: lea ecx, [ebp - 0x10] */ 13636 PUSH32(esp, ecx); /* 0x3100FF01: push ecx */ 13637 ecx = esi; /* 0x3100FF02: mov ecx, esi */ 13638 MEM32(ebp + (-0x8)) = 0x000FDE82u; /* 0x3100FF04: mov dword ptr [ebp - 8], 0xfde82 */ 13639 MEM32(ebp + (-0x4)) = ebx; /* 0x3100FF0B: mov dword ptr [ebp - 4], ebx */ 13640 RECOMP_ICALL(0x31010A60u); /* 0x3100FF0E: call 0x31010a60 */ /* not lifted */ 13641 RECOMP_FLAGS_IN(); 13642 eax = MEM32(eax); /* 0x3100FF13: mov eax, dword ptr [eax] */ 13643 MEM32(eax + 0x10) = edi; /* 0x3100FF15: mov dword ptr [eax + 0x10], edi */ 13644 edx = ebp + (-0x8); /* 0x3100FF18: lea edx, [ebp - 8] */ 13645 PUSH32(esp, edx); /* 0x3100FF1B: push edx */ 13646 eax = ebp + (-0x10); /* 0x3100FF1C: lea eax, [ebp - 0x10] */ 13647 PUSH32(esp, eax); /* 0x3100FF1F: push eax */ 13648 ecx = esi; /* 0x3100FF20: mov ecx, esi */ 13649 MEM32(ebp + (-0x8)) = 0x000FDE83u; /* 0x3100FF22: mov dword ptr [ebp - 8], 0xfde83 */ 13650 MEM32(ebp + (-0x4)) = ebx; /* 0x3100FF29: mov dword ptr [ebp - 4], ebx */ 13651 RECOMP_ICALL(0x31010A60u); /* 0x3100FF2C: call 0x31010a60 */ /* not lifted */ 13652 RECOMP_FLAGS_IN(); 13653 eax = MEM32(eax); /* 0x3100FF31: mov eax, dword ptr [eax] */ 13654 ecx = ebp + (-0x8); /* 0x3100FF33: lea ecx, [ebp - 8] */ 13655 PUSH32(esp, ecx); /* 0x3100FF36: push ecx */ 13656 edx = ebp + (-0x10); /* 0x3100FF37: lea edx, [ebp - 0x10] */ 13657 MEM32(eax + 0x10) = edi; /* 0x3100FF3A: mov dword ptr [eax + 0x10], edi */ 13658 PUSH32(esp, edx); /* 0x3100FF3D: push edx */ 13659 ecx = esi; /* 0x3100FF3E: mov ecx, esi */ 13660 MEM32(ebp + (-0x8)) = 0x000FDE84u; /* 0x3100FF40: mov dword ptr [ebp - 8], 0xfde84 */ 13661 MEM32(ebp + (-0x4)) = ebx; /* 0x3100FF47: mov dword ptr [ebp - 4], ebx */ 13662 RECOMP_ICALL(0x31010A60u); /* 0x3100FF4A: call 0x31010a60 */ /* not lifted */ 13663 RECOMP_FLAGS_IN(); 13664 eax = MEM32(eax); /* 0x3100FF4F: mov eax, dword ptr [eax] */ 13665 MEM32(eax + 0x10) = edi; /* 0x3100FF51: mov dword ptr [eax + 0x10], edi */ 13666 eax = ebp + (-0x8); /* 0x3100FF54: lea eax, [ebp - 8] */ 13667 PUSH32(esp, eax); /* 0x3100FF57: push eax */ 13668 ecx = ebp + (-0x10); /* 0x3100FF58: lea ecx, [ebp - 0x10] */ 13669 PUSH32(esp, ecx); /* 0x3100FF5B: push ecx */ 13670 ecx = esi; /* 0x3100FF5C: mov ecx, esi */ 13671 MEM32(ebp + (-0x8)) = 0x000FE269u; /* 0x3100FF5E: mov dword ptr [ebp - 8], 0xfe269 */ 13672 MEM32(ebp + (-0x4)) = ebx; /* 0x3100FF65: mov dword ptr [ebp - 4], ebx */ 13673 RECOMP_ICALL(0x31010A60u); /* 0x3100FF68: call 0x31010a60 */ /* not lifted */ 13674 RECOMP_FLAGS_IN(); 13675 eax = MEM32(eax); /* 0x3100FF6D: mov eax, dword ptr [eax] */ 13676 MEM32(eax + 0x10) = edi; /* 0x3100FF6F: mov dword ptr [eax + 0x10], edi */ 13677 edx = ebp + 0xC; /* 0x3100FF72: lea edx, [ebp + 0xc] */ 13678 MEM32(ebp + (-0x4)) = 0x000F4309u; /* 0x3100FF75: mov dword ptr [ebp - 4], 0xf4309 */ 13679 MEM32(ebp + 0xC) = ebx; /* 0x3100FF7C: mov dword ptr [ebp + 0xc], ebx */ 13680 PUSH32(esp, edx); /* 0x3100FF7F: push edx */ 13681 eax = ebp + (-0x4); /* 0x3100FF80: lea eax, [ebp - 4] */ 13682 PUSH32(esp, eax); /* 0x3100FF83: push eax */ 13683 ecx = ebp + (-0x10); /* 0x3100FF84: lea ecx, [ebp - 0x10] */ 13684 RECOMP_ICALL(0x31010B40u); /* 0x3100FF87: call 0x31010b40 */ /* not lifted */ 13685 RECOMP_FLAGS_IN(); 13686 PUSH32(esp, eax); /* 0x3100FF8C: push eax */ 13687 ecx = ebp + (-0x18); /* 0x3100FF8D: lea ecx, [ebp - 0x18] */ 13688 PUSH32(esp, ecx); /* 0x3100FF90: push ecx */ 13689 ecx = esi; /* 0x3100FF91: mov ecx, esi */ 13690 RECOMP_ICALL(0x31010A60u); /* 0x3100FF93: call 0x31010a60 */ /* not lifted */ 13691 RECOMP_FLAGS_IN(); 13692 eax = MEM32(eax); /* 0x3100FF98: mov eax, dword ptr [eax] */ 13693 MEM32(eax + 0x10) = edi; /* 0x3100FF9A: mov dword ptr [eax + 0x10], edi */ 13694 edx = ebp + 0xC; /* 0x3100FF9D: lea edx, [ebp + 0xc] */ 13695 PUSH32(esp, edx); /* 0x3100FFA0: push edx */ 13696 eax = ebp + (-0x4); /* 0x3100FFA1: lea eax, [ebp - 4] */ 13697 PUSH32(esp, eax); /* 0x3100FFA4: push eax */ 13698 ecx = ebp + (-0x18); /* 0x3100FFA5: lea ecx, [ebp - 0x18] */ 13699 MEM32(ebp + (-0x4)) = 0x000F430Au; /* 0x3100FFA8: mov dword ptr [ebp - 4], 0xf430a */ 13700 MEM32(ebp + 0xC) = ebx; /* 0x3100FFAF: mov dword ptr [ebp + 0xc], ebx */ 13701 RECOMP_ICALL(0x31010B40u); /* 0x3100FFB2: call 0x31010b40 */ /* not lifted */ 13702 RECOMP_FLAGS_IN(); 13703 PUSH32(esp, eax); /* 0x3100FFB7: push eax */ 13704 ecx = ebp + (-0x10); /* 0x3100FFB8: lea ecx, [ebp - 0x10] */ 13705 PUSH32(esp, ecx); /* 0x3100FFBB: push ecx */ 13706 ecx = esi; /* 0x3100FFBC: mov ecx, esi */ 13707 RECOMP_ICALL(0x31010A60u); /* 0x3100FFBE: call 0x31010a60 */ /* not lifted */ 13708 RECOMP_FLAGS_IN(); 13709 eax = MEM32(eax); /* 0x3100FFC3: mov eax, dword ptr [eax] */ 13710 MEM32(eax + 0x10) = edi; /* 0x3100FFC5: mov dword ptr [eax + 0x10], edi */ 13711 edx = ebp + 0xC; /* 0x3100FFC8: lea edx, [ebp + 0xc] */ 13712 PUSH32(esp, edx); /* 0x3100FFCB: push edx */ 13713 eax = ebp + (-0x4); /* 0x3100FFCC: lea eax, [ebp - 4] */ 13714 PUSH32(esp, eax); /* 0x3100FFCF: push eax */ 13715 ecx = ebp + (-0x18); /* 0x3100FFD0: lea ecx, [ebp - 0x18] */ 13716 MEM32(ebp + (-0x4)) = 0x000F430Fu; /* 0x3100FFD3: mov dword ptr [ebp - 4], 0xf430f */ 13717 MEM32(ebp + 0xC) = ebx; /* 0x3100FFDA: mov dword ptr [ebp + 0xc], ebx */ 13718 RECOMP_ICALL(0x31010B40u); /* 0x3100FFDD: call 0x31010b40 */ /* not lifted */ 13719 RECOMP_FLAGS_IN(); 13720 PUSH32(esp, eax); /* 0x3100FFE2: push eax */ 13721 ecx = ebp + (-0x10); /* 0x3100FFE3: lea ecx, [ebp - 0x10] */ 13722 PUSH32(esp, ecx); /* 0x3100FFE6: push ecx */ 13723 ecx = esi; /* 0x3100FFE7: mov ecx, esi */ 13724 RECOMP_ICALL(0x31010A60u); /* 0x3100FFE9: call 0x31010a60 */ /* not lifted */ 13725 RECOMP_FLAGS_IN(); 13726 eax = MEM32(eax); /* 0x3100FFEE: mov eax, dword ptr [eax] */ 13727 MEM32(eax + 0x10) = edi; /* 0x3100FFF0: mov dword ptr [eax + 0x10], edi */ 13728 edx = ebp + 0xC; /* 0x3100FFF3: lea edx, [ebp + 0xc] */ 13729 PUSH32(esp, edx); /* 0x3100FFF6: push edx */ 13730 eax = ebp + (-0x4); /* 0x3100FFF7: lea eax, [ebp - 4] */ 13731 PUSH32(esp, eax); /* 0x3100FFFA: push eax */ 13732 ecx = ebp + (-0x18); /* 0x3100FFFB: lea ecx, [ebp - 0x18] */ 13733 MEM32(ebp + (-0x4)) = 0x000F4313u; /* 0x3100FFFE: mov dword ptr [ebp - 4], 0xf4313 */ 13734 MEM32(ebp + 0xC) = ebx; /* 0x31010005: mov dword ptr [ebp + 0xc], ebx */ 13735 RECOMP_ICALL(0x31010B40u); /* 0x31010008: call 0x31010b40 */ /* not lifted */ 13736 RECOMP_FLAGS_IN(); 13737 PUSH32(esp, eax); /* 0x3101000D: push eax */ 13738 ecx = ebp + (-0x10); /* 0x3101000E: lea ecx, [ebp - 0x10] */ 13739 PUSH32(esp, ecx); /* 0x31010011: push ecx */ 13740 ecx = esi; /* 0x31010012: mov ecx, esi */ 13741 RECOMP_ICALL(0x31010A60u); /* 0x31010014: call 0x31010a60 */ /* not lifted */ 13742 RECOMP_FLAGS_IN(); 13743 eax = MEM32(eax); /* 0x31010019: mov eax, dword ptr [eax] */ 13744 MEM32(eax + 0x10) = edi; /* 0x3101001B: mov dword ptr [eax + 0x10], edi */ 13745 edx = ebp + 0xC; /* 0x3101001E: lea edx, [ebp + 0xc] */ 13746 PUSH32(esp, edx); /* 0x31010021: push edx */ 13747 eax = ebp + (-0x4); /* 0x31010022: lea eax, [ebp - 4] */ 13748 PUSH32(esp, eax); /* 0x31010025: push eax */ 13749 ecx = ebp + (-0x18); /* 0x31010026: lea ecx, [ebp - 0x18] */ 13750 MEM32(ebp + (-0x4)) = 0x000F4314u; /* 0x31010029: mov dword ptr [ebp - 4], 0xf4314 */ 13751 MEM32(ebp + 0xC) = ebx; /* 0x31010030: mov dword ptr [ebp + 0xc], ebx */ 13752 RECOMP_ICALL(0x31010B40u); /* 0x31010033: call 0x31010b40 */ /* not lifted */ 13753 RECOMP_FLAGS_IN(); 13754 PUSH32(esp, eax); /* 0x31010038: push eax */ 13755 ecx = ebp + (-0x10); /* 0x31010039: lea ecx, [ebp - 0x10] */ 13756 PUSH32(esp, ecx); /* 0x3101003C: push ecx */ 13757 ecx = esi; /* 0x3101003D: mov ecx, esi */ 13758 RECOMP_ICALL(0x31010A60u); /* 0x3101003F: call 0x31010a60 */ /* not lifted */ 13759 RECOMP_FLAGS_IN(); 13760 eax = MEM32(eax); /* 0x31010044: mov eax, dword ptr [eax] */ 13761 MEM32(eax + 0x10) = edi; /* 0x31010046: mov dword ptr [eax + 0x10], edi */ 13762 edx = ebp + 0xC; /* 0x31010049: lea edx, [ebp + 0xc] */ 13763 PUSH32(esp, edx); /* 0x3101004C: push edx */ 13764 eax = ebp + (-0x4); /* 0x3101004D: lea eax, [ebp - 4] */ 13765 PUSH32(esp, eax); /* 0x31010050: push eax */ 13766 ecx = ebp + (-0x18); /* 0x31010051: lea ecx, [ebp - 0x18] */ 13767 MEM32(ebp + (-0x4)) = 0x000F4315u; /* 0x31010054: mov dword ptr [ebp - 4], 0xf4315 */ 13768 MEM32(ebp + 0xC) = ebx; /* 0x3101005B: mov dword ptr [ebp + 0xc], ebx */ 13769 RECOMP_ICALL(0x31010B40u); /* 0x3101005E: call 0x31010b40 */ /* not lifted */ 13770 RECOMP_FLAGS_IN(); 13771 PUSH32(esp, eax); /* 0x31010063: push eax */ 13772 ecx = ebp + (-0x10); /* 0x31010064: lea ecx, [ebp - 0x10] */ 13773 PUSH32(esp, ecx); /* 0x31010067: push ecx */ 13774 ecx = esi; /* 0x31010068: mov ecx, esi */ 13775 RECOMP_ICALL(0x31010A60u); /* 0x3101006A: call 0x31010a60 */ /* not lifted */ 13776 RECOMP_FLAGS_IN(); 13777 eax = MEM32(eax); /* 0x3101006F: mov eax, dword ptr [eax] */ 13778 MEM32(eax + 0x10) = edi; /* 0x31010071: mov dword ptr [eax + 0x10], edi */ 13779 edx = ebp + 0xC; /* 0x31010074: lea edx, [ebp + 0xc] */ 13780 PUSH32(esp, edx); /* 0x31010077: push edx */ 13781 eax = ebp + (-0x4); /* 0x31010078: lea eax, [ebp - 4] */ 13782 PUSH32(esp, eax); /* 0x3101007B: push eax */ 13783 ecx = ebp + (-0x18); /* 0x3101007C: lea ecx, [ebp - 0x18] */ 13784 MEM32(ebp + (-0x4)) = 0x000F4316u; /* 0x3101007F: mov dword ptr [ebp - 4], 0xf4316 */ 13785 MEM32(ebp + 0xC) = ebx; /* 0x31010086: mov dword ptr [ebp + 0xc], ebx */ 13786 RECOMP_ICALL(0x31010B40u); /* 0x31010089: call 0x31010b40 */ /* not lifted */ 13787 RECOMP_FLAGS_IN(); 13788 PUSH32(esp, eax); /* 0x3101008E: push eax */ 13789 ecx = ebp + (-0x10); /* 0x3101008F: lea ecx, [ebp - 0x10] */ 13790 PUSH32(esp, ecx); /* 0x31010092: push ecx */ 13791 ecx = esi; /* 0x31010093: mov ecx, esi */ 13792 RECOMP_ICALL(0x31010A60u); /* 0x31010095: call 0x31010a60 */ /* not lifted */ 13793 RECOMP_FLAGS_IN(); 13794 eax = MEM32(eax); /* 0x3101009A: mov eax, dword ptr [eax] */ 13795 MEM32(eax + 0x10) = edi; /* 0x3101009C: mov dword ptr [eax + 0x10], edi */ 13796 edx = ebp + 0xC; /* 0x3101009F: lea edx, [ebp + 0xc] */ 13797 PUSH32(esp, edx); /* 0x310100A2: push edx */ 13798 eax = ebp + (-0x4); /* 0x310100A3: lea eax, [ebp - 4] */ 13799 PUSH32(esp, eax); /* 0x310100A6: push eax */ 13800 ecx = ebp + (-0x18); /* 0x310100A7: lea ecx, [ebp - 0x18] */ 13801 MEM32(ebp + (-0x4)) = 0x000F4243u; /* 0x310100AA: mov dword ptr [ebp - 4], 0xf4243 */ 13802 MEM32(ebp + 0xC) = ebx; /* 0x310100B1: mov dword ptr [ebp + 0xc], ebx */ 13803 RECOMP_ICALL(0x31010B40u); /* 0x310100B4: call 0x31010b40 */ /* not lifted */ 13804 RECOMP_FLAGS_IN(); 13805 PUSH32(esp, eax); /* 0x310100B9: push eax */ 13806 ecx = ebp + (-0x10); /* 0x310100BA: lea ecx, [ebp - 0x10] */ 13807 PUSH32(esp, ecx); /* 0x310100BD: push ecx */ 13808 ecx = esi; /* 0x310100BE: mov ecx, esi */ 13809 RECOMP_ICALL(0x31010A60u); /* 0x310100C0: call 0x31010a60 */ /* not lifted */ 13810 RECOMP_FLAGS_IN(); 13811 eax = MEM32(eax); /* 0x310100C5: mov eax, dword ptr [eax] */ 13812 MEM32(eax + 0x10) = edi; /* 0x310100C7: mov dword ptr [eax + 0x10], edi */ 13813 edx = ebp + 0xC; /* 0x310100CA: lea edx, [ebp + 0xc] */ 13814 PUSH32(esp, edx); /* 0x310100CD: push edx */ 13815 eax = ebp + (-0x4); /* 0x310100CE: lea eax, [ebp - 4] */ 13816 PUSH32(esp, eax); /* 0x310100D1: push eax */ 13817 ecx = ebp + (-0x18); /* 0x310100D2: lea ecx, [ebp - 0x18] */ 13818 MEM32(ebp + (-0x4)) = 0x000F4242u; /* 0x310100D5: mov dword ptr [ebp - 4], 0xf4242 */ 13819 MEM32(ebp + 0xC) = ebx; /* 0x310100DC: mov dword ptr [ebp + 0xc], ebx */ 13820 RECOMP_ICALL(0x31010B40u); /* 0x310100DF: call 0x31010b40 */ /* not lifted */ 13821 RECOMP_FLAGS_IN(); 13822 PUSH32(esp, eax); /* 0x310100E4: push eax */ 13823 ecx = ebp + (-0x10); /* 0x310100E5: lea ecx, [ebp - 0x10] */ 13824 PUSH32(esp, ecx); /* 0x310100E8: push ecx */ 13825 ecx = esi; /* 0x310100E9: mov ecx, esi */ 13826 RECOMP_ICALL(0x31010A60u); /* 0x310100EB: call 0x31010a60 */ /* not lifted */ 13827 RECOMP_FLAGS_IN(); 13828 eax = MEM32(eax); /* 0x310100F0: mov eax, dword ptr [eax] */ 13829 MEM32(eax + 0x10) = edi; /* 0x310100F2: mov dword ptr [eax + 0x10], edi */ 13830 edx = ebp + 0xC; /* 0x310100F5: lea edx, [ebp + 0xc] */ 13831 PUSH32(esp, edx); /* 0x310100F8: push edx */ 13832 eax = ebp + (-0x4); /* 0x310100F9: lea eax, [ebp - 4] */ 13833 PUSH32(esp, eax); /* 0x310100FC: push eax */ 13834 ecx = ebp + (-0x18); /* 0x310100FD: lea ecx, [ebp - 0x18] */ 13835 MEM32(ebp + (-0x4)) = 0x000F4246u; /* 0x31010100: mov dword ptr [ebp - 4], 0xf4246 */ 13836 MEM32(ebp + 0xC) = ebx; /* 0x31010107: mov dword ptr [ebp + 0xc], ebx */ 13837 RECOMP_ICALL(0x31010B40u); /* 0x3101010A: call 0x31010b40 */ /* not lifted */ 13838 RECOMP_FLAGS_IN(); 13839 PUSH32(esp, eax); /* 0x3101010F: push eax */ 13840 ecx = ebp + (-0x10); /* 0x31010110: lea ecx, [ebp - 0x10] */ 13841 PUSH32(esp, ecx); /* 0x31010113: push ecx */ 13842 ecx = esi; /* 0x31010114: mov ecx, esi */ 13843 RECOMP_ICALL(0x31010A60u); /* 0x31010116: call 0x31010a60 */ /* not lifted */ 13844 RECOMP_FLAGS_IN(); 13845 eax = MEM32(eax); /* 0x3101011B: mov eax, dword ptr [eax] */ 13846 MEM32(eax + 0x10) = edi; /* 0x3101011D: mov dword ptr [eax + 0x10], edi */ 13847 edx = ebp + 0xC; /* 0x31010120: lea edx, [ebp + 0xc] */ 13848 PUSH32(esp, edx); /* 0x31010123: push edx */ 13849 eax = ebp + (-0x4); /* 0x31010124: lea eax, [ebp - 4] */ 13850 PUSH32(esp, eax); /* 0x31010127: push eax */ 13851 ecx = ebp + (-0x18); /* 0x31010128: lea ecx, [ebp - 0x18] */ 13852 MEM32(ebp + (-0x4)) = 0x000F424Bu; /* 0x3101012B: mov dword ptr [ebp - 4], 0xf424b */ 13853 MEM32(ebp + 0xC) = ebx; /* 0x31010132: mov dword ptr [ebp + 0xc], ebx */ 13854 RECOMP_ICALL(0x31010B40u); /* 0x31010135: call 0x31010b40 */ /* not lifted */ 13855 RECOMP_FLAGS_IN(); 13856 PUSH32(esp, eax); /* 0x3101013A: push eax */ 13857 ecx = ebp + (-0x10); /* 0x3101013B: lea ecx, [ebp - 0x10] */ 13858 PUSH32(esp, ecx); /* 0x3101013E: push ecx */ 13859 ecx = esi; /* 0x3101013F: mov ecx, esi */ 13860 RECOMP_ICALL(0x31010A60u); /* 0x31010141: call 0x31010a60 */ /* not lifted */ 13861 RECOMP_FLAGS_IN(); 13862 eax = MEM32(eax); /* 0x31010146: mov eax, dword ptr [eax] */ 13863 MEM32(eax + 0x10) = edi; /* 0x31010148: mov dword ptr [eax + 0x10], edi */ 13864 MEM32(ebp + (-0x4)) = 0x000F4245u; /* 0x3101014B: mov dword ptr [ebp - 4], 0xf4245 */ 13865 MEM32(ebp + 0xC) = ebx; /* 0x31010152: mov dword ptr [ebp + 0xc], ebx */ 13866 edx = ebp + 0xC; /* 0x31010155: lea edx, [ebp + 0xc] */ 13867 PUSH32(esp, edx); /* 0x31010158: push edx */ 13868 eax = ebp + (-0x4); /* 0x31010159: lea eax, [ebp - 4] */ 13869 PUSH32(esp, eax); /* 0x3101015C: push eax */ 13870 ecx = ebp + (-0x18); /* 0x3101015D: lea ecx, [ebp - 0x18] */ 13871 RECOMP_ICALL(0x31010B40u); /* 0x31010160: call 0x31010b40 */ /* not lifted */ 13872 RECOMP_FLAGS_IN(); 13873 PUSH32(esp, eax); /* 0x31010165: push eax */ 13874 ecx = ebp + (-0x10); /* 0x31010166: lea ecx, [ebp - 0x10] */ 13875 PUSH32(esp, ecx); /* 0x31010169: push ecx */ 13876 ecx = esi; /* 0x3101016A: mov ecx, esi */ 13877 RECOMP_ICALL(0x31010A60u); /* 0x3101016C: call 0x31010a60 */ /* not lifted */ 13878 RECOMP_FLAGS_IN(); 13879 eax = MEM32(eax); /* 0x31010171: mov eax, dword ptr [eax] */ 13880 MEM32(eax + 0x10) = edi; /* 0x31010173: mov dword ptr [eax + 0x10], edi */ 13881 edx = ebp + 0xC; /* 0x31010176: lea edx, [ebp + 0xc] */ 13882 PUSH32(esp, edx); /* 0x31010179: push edx */ 13883 eax = ebp + (-0x4); /* 0x3101017A: lea eax, [ebp - 4] */ 13884 PUSH32(esp, eax); /* 0x3101017D: push eax */ 13885 ecx = ebp + (-0x18); /* 0x3101017E: lea ecx, [ebp - 0x18] */ 13886 MEM32(ebp + (-0x4)) = 0x000F4257u; /* 0x31010181: mov dword ptr [ebp - 4], 0xf4257 */ 13887 MEM32(ebp + 0xC) = ebx; /* 0x31010188: mov dword ptr [ebp + 0xc], ebx */ 13888 RECOMP_ICALL(0x31010B40u); /* 0x3101018B: call 0x31010b40 */ /* not lifted */ 13889 RECOMP_FLAGS_IN(); 13890 PUSH32(esp, eax); /* 0x31010190: push eax */ 13891 ecx = ebp + (-0x10); /* 0x31010191: lea ecx, [ebp - 0x10] */ 13892 PUSH32(esp, ecx); /* 0x31010194: push ecx */ 13893 ecx = esi; /* 0x31010195: mov ecx, esi */ 13894 RECOMP_ICALL(0x31010A60u); /* 0x31010197: call 0x31010a60 */ /* not lifted */ 13895 RECOMP_FLAGS_IN(); 13896 eax = MEM32(eax); /* 0x3101019C: mov eax, dword ptr [eax] */ 13897 edx = MEM32(ebp + 0x10); /* 0x3101019E: mov edx, dword ptr [ebp + 0x10] */ 13898 MEM32(eax + 0x10) = edx; /* 0x310101A1: mov dword ptr [eax + 0x10], edx */ 13899 eax = ebp + 0xC; /* 0x310101A4: lea eax, [ebp + 0xc] */ 13900 PUSH32(esp, eax); /* 0x310101A7: push eax */ 13901 ecx = ebp + (-0x4); /* 0x310101A8: lea ecx, [ebp - 4] */ 13902 PUSH32(esp, ecx); /* 0x310101AB: push ecx */ 13903 ecx = ebp + (-0x18); /* 0x310101AC: lea ecx, [ebp - 0x18] */ 13904 MEM32(ebp + (-0x4)) = 0x000F424Cu; /* 0x310101AF: mov dword ptr [ebp - 4], 0xf424c */ 13905 MEM32(ebp + 0xC) = ebx; /* 0x310101B6: mov dword ptr [ebp + 0xc], ebx */ 13906 RECOMP_ICALL(0x31010B40u); /* 0x310101B9: call 0x31010b40 */ /* not lifted */ 13907 RECOMP_FLAGS_IN(); 13908 PUSH32(esp, eax); /* 0x310101BE: push eax */ 13909 edx = ebp + (-0x10); /* 0x310101BF: lea edx, [ebp - 0x10] */ 13910 PUSH32(esp, edx); /* 0x310101C2: push edx */ 13911 ecx = esi; /* 0x310101C3: mov ecx, esi */ 13912 RECOMP_ICALL(0x31010A60u); /* 0x310101C5: call 0x31010a60 */ /* not lifted */ 13913 RECOMP_FLAGS_IN(); 13914 eax = MEM32(eax); /* 0x310101CA: mov eax, dword ptr [eax] */ 13915 ecx = MEM32(ebp + 0x10); /* 0x310101CC: mov ecx, dword ptr [ebp + 0x10] */ 13916 MEM32(eax + 0x10) = ecx; /* 0x310101CF: mov dword ptr [eax + 0x10], ecx */ 13917 edx = ebp + 0xC; /* 0x310101D2: lea edx, [ebp + 0xc] */ 13918 PUSH32(esp, edx); /* 0x310101D5: push edx */ 13919 eax = ebp + (-0x4); /* 0x310101D6: lea eax, [ebp - 4] */ 13920 PUSH32(esp, eax); /* 0x310101D9: push eax */ 13921 ecx = ebp + (-0x18); /* 0x310101DA: lea ecx, [ebp - 0x18] */ 13922 MEM32(ebp + (-0x4)) = 0x000F4261u; /* 0x310101DD: mov dword ptr [ebp - 4], 0xf4261 */ 13923 MEM32(ebp + 0xC) = ebx; /* 0x310101E4: mov dword ptr [ebp + 0xc], ebx */ 13924 RECOMP_ICALL(0x31010B40u); /* 0x310101E7: call 0x31010b40 */ /* not lifted */ 13925 RECOMP_FLAGS_IN(); 13926 PUSH32(esp, eax); /* 0x310101EC: push eax */ 13927 ecx = ebp + (-0x10); /* 0x310101ED: lea ecx, [ebp - 0x10] */ 13928 PUSH32(esp, ecx); /* 0x310101F0: push ecx */ 13929 ecx = esi; /* 0x310101F1: mov ecx, esi */ 13930 RECOMP_ICALL(0x31010A60u); /* 0x310101F3: call 0x31010a60 */ /* not lifted */ 13931 RECOMP_FLAGS_IN(); 13932 eax = MEM32(eax); /* 0x310101F8: mov eax, dword ptr [eax] */ 13933 edx = MEM32(ebp + 0x10); /* 0x310101FA: mov edx, dword ptr [ebp + 0x10] */ 13934 MEM32(eax + 0x10) = edx; /* 0x310101FD: mov dword ptr [eax + 0x10], edx */ 13935 eax = ebp + 0xC; /* 0x31010200: lea eax, [ebp + 0xc] */ 13936 PUSH32(esp, eax); /* 0x31010203: push eax */ 13937 ecx = ebp + (-0x4); /* 0x31010204: lea ecx, [ebp - 4] */ 13938 PUSH32(esp, ecx); /* 0x31010207: push ecx */ 13939 ecx = ebp + (-0x18); /* 0x31010208: lea ecx, [ebp - 0x18] */ 13940 MEM32(ebp + (-0x4)) = 0x000F695Fu; /* 0x3101020B: mov dword ptr [ebp - 4], 0xf695f */ 13941 MEM32(ebp + 0xC) = ebx; /* 0x31010212: mov dword ptr [ebp + 0xc], ebx */ 13942 RECOMP_ICALL(0x31010B40u); /* 0x31010215: call 0x31010b40 */ /* not lifted */ 13943 RECOMP_FLAGS_IN(); 13944 PUSH32(esp, eax); /* 0x3101021A: push eax */ 13945 edx = ebp + (-0x10); /* 0x3101021B: lea edx, [ebp - 0x10] */ 13946 PUSH32(esp, edx); /* 0x3101021E: push edx */ 13947 ecx = esi; /* 0x3101021F: mov ecx, esi */ 13948 RECOMP_ICALL(0x31010A60u); /* 0x31010221: call 0x31010a60 */ /* not lifted */ 13949 RECOMP_FLAGS_IN(); 13950 eax = MEM32(eax); /* 0x31010226: mov eax, dword ptr [eax] */ 13951 MEM32(eax + 0x10) = edi; /* 0x31010228: mov dword ptr [eax + 0x10], edi */ 13952 eax = ebp + 0xC; /* 0x3101022B: lea eax, [ebp + 0xc] */ 13953 MEM32(ebp + (-0x4)) = 0x000F6960u; /* 0x3101022E: mov dword ptr [ebp - 4], 0xf6960 */ 13954 MEM32(ebp + 0xC) = ebx; /* 0x31010235: mov dword ptr [ebp + 0xc], ebx */ 13955 PUSH32(esp, eax); /* 0x31010238: push eax */ 13956 ecx = ebp + (-0x4); /* 0x31010239: lea ecx, [ebp - 4] */ 13957 PUSH32(esp, ecx); /* 0x3101023C: push ecx */ 13958 ecx = ebp + (-0x18); /* 0x3101023D: lea ecx, [ebp - 0x18] */ 13959 RECOMP_ICALL(0x31010B40u); /* 0x31010240: call 0x31010b40 */ /* not lifted */ 13960 RECOMP_FLAGS_IN(); 13961 PUSH32(esp, eax); /* 0x31010245: push eax */ 13962 edx = ebp + (-0x10); /* 0x31010246: lea edx, [ebp - 0x10] */ 13963 PUSH32(esp, edx); /* 0x31010249: push edx */ 13964 ecx = esi; /* 0x3101024A: mov ecx, esi */ 13965 RECOMP_ICALL(0x31010A60u); /* 0x3101024C: call 0x31010a60 */ /* not lifted */ 13966 RECOMP_FLAGS_IN(); 13967 eax = MEM32(eax); /* 0x31010251: mov eax, dword ptr [eax] */ 13968 MEM32(eax + 0x10) = edi; /* 0x31010253: mov dword ptr [eax + 0x10], edi */ 13969 eax = ebp + 0xC; /* 0x31010256: lea eax, [ebp + 0xc] */ 13970 PUSH32(esp, eax); /* 0x31010259: push eax */ 13971 ecx = ebp + (-0x4); /* 0x3101025A: lea ecx, [ebp - 4] */ 13972 PUSH32(esp, ecx); /* 0x3101025D: push ecx */ 13973 ecx = ebp + (-0x18); /* 0x3101025E: lea ecx, [ebp - 0x18] */ 13974 MEM32(ebp + (-0x4)) = 0x000F6961u; /* 0x31010261: mov dword ptr [ebp - 4], 0xf6961 */ 13975 MEM32(ebp + 0xC) = ebx; /* 0x31010268: mov dword ptr [ebp + 0xc], ebx */ 13976 RECOMP_ICALL(0x31010B40u); /* 0x3101026B: call 0x31010b40 */ /* not lifted */ 13977 RECOMP_FLAGS_IN(); 13978 PUSH32(esp, eax); /* 0x31010270: push eax */ 13979 edx = ebp + (-0x10); /* 0x31010271: lea edx, [ebp - 0x10] */ 13980 PUSH32(esp, edx); /* 0x31010274: push edx */ 13981 ecx = esi; /* 0x31010275: mov ecx, esi */ 13982 RECOMP_ICALL(0x31010A60u); /* 0x31010277: call 0x31010a60 */ /* not lifted */ 13983 RECOMP_FLAGS_IN(); 13984 eax = MEM32(eax); /* 0x3101027C: mov eax, dword ptr [eax] */ 13985 MEM32(eax + 0x10) = edi; /* 0x3101027E: mov dword ptr [eax + 0x10], edi */ 13986 eax = ebp + 0xC; /* 0x31010281: lea eax, [ebp + 0xc] */ 13987 PUSH32(esp, eax); /* 0x31010284: push eax */ 13988 ecx = ebp + (-0x4); /* 0x31010285: lea ecx, [ebp - 4] */ 13989 PUSH32(esp, ecx); /* 0x31010288: push ecx */ 13990 ecx = ebp + (-0x18); /* 0x31010289: lea ecx, [ebp - 0x18] */ 13991 MEM32(ebp + (-0x4)) = 0x000F6962u; /* 0x3101028C: mov dword ptr [ebp - 4], 0xf6962 */ 13992 MEM32(ebp + 0xC) = ebx; /* 0x31010293: mov dword ptr [ebp + 0xc], ebx */ 13993 RECOMP_ICALL(0x31010B40u); /* 0x31010296: call 0x31010b40 */ /* not lifted */ 13994 RECOMP_FLAGS_IN(); 13995 PUSH32(esp, eax); /* 0x3101029B: push eax */ 13996 edx = ebp + (-0x10); /* 0x3101029C: lea edx, [ebp - 0x10] */ 13997 PUSH32(esp, edx); /* 0x3101029F: push edx */ 13998 ecx = esi; /* 0x310102A0: mov ecx, esi */ 13999 RECOMP_ICALL(0x31010A60u); /* 0x310102A2: call 0x31010a60 */ /* not lifted */ 14000 RECOMP_FLAGS_IN(); 14001 eax = MEM32(eax); /* 0x310102A7: mov eax, dword ptr [eax] */ 14002 MEM32(eax + 0x10) = edi; /* 0x310102A9: mov dword ptr [eax + 0x10], edi */ 14003 eax = ebp + 0xC; /* 0x310102AC: lea eax, [ebp + 0xc] */ 14004 PUSH32(esp, eax); /* 0x310102AF: push eax */ 14005 ecx = ebp + (-0x4); /* 0x310102B0: lea ecx, [ebp - 4] */ 14006 PUSH32(esp, ecx); /* 0x310102B3: push ecx */ 14007 ecx = ebp + (-0x18); /* 0x310102B4: lea ecx, [ebp - 0x18] */ 14008 MEM32(ebp + (-0x4)) = 0x000F6963u; /* 0x310102B7: mov dword ptr [ebp - 4], 0xf6963 */ 14009 MEM32(ebp + 0xC) = ebx; /* 0x310102BE: mov dword ptr [ebp + 0xc], ebx */ 14010 RECOMP_ICALL(0x31010B40u); /* 0x310102C1: call 0x31010b40 */ /* not lifted */ 14011 RECOMP_FLAGS_IN(); 14012 PUSH32(esp, eax); /* 0x310102C6: push eax */ 14013 edx = ebp + (-0x10); /* 0x310102C7: lea edx, [ebp - 0x10] */ 14014 PUSH32(esp, edx); /* 0x310102CA: push edx */ 14015 ecx = esi; /* 0x310102CB: mov ecx, esi */ 14016 RECOMP_ICALL(0x31010A60u); /* 0x310102CD: call 0x31010a60 */ /* not lifted */ 14017 RECOMP_FLAGS_IN(); 14018 eax = MEM32(eax); /* 0x310102D2: mov eax, dword ptr [eax] */ 14019 MEM32(eax + 0x10) = edi; /* 0x310102D4: mov dword ptr [eax + 0x10], edi */ 14020 eax = ebp + 0xC; /* 0x310102D7: lea eax, [ebp + 0xc] */ 14021 PUSH32(esp, eax); /* 0x310102DA: push eax */ 14022 ecx = ebp + (-0x4); /* 0x310102DB: lea ecx, [ebp - 4] */ 14023 PUSH32(esp, ecx); /* 0x310102DE: push ecx */ 14024 ecx = ebp + (-0x18); /* 0x310102DF: lea ecx, [ebp - 0x18] */ 14025 MEM32(ebp + (-0x4)) = 0x000F6964u; /* 0x310102E2: mov dword ptr [ebp - 4], 0xf6964 */ 14026 MEM32(ebp + 0xC) = ebx; /* 0x310102E9: mov dword ptr [ebp + 0xc], ebx */ 14027 RECOMP_ICALL(0x31010B40u); /* 0x310102EC: call 0x31010b40 */ /* not lifted */ 14028 RECOMP_FLAGS_IN(); 14029 PUSH32(esp, eax); /* 0x310102F1: push eax */ 14030 edx = ebp + (-0x10); /* 0x310102F2: lea edx, [ebp - 0x10] */ 14031 PUSH32(esp, edx); /* 0x310102F5: push edx */ 14032 ecx = esi; /* 0x310102F6: mov ecx, esi */ 14033 RECOMP_ICALL(0x31010A60u); /* 0x310102F8: call 0x31010a60 */ /* not lifted */ 14034 RECOMP_FLAGS_IN(); 14035 eax = MEM32(eax); /* 0x310102FD: mov eax, dword ptr [eax] */ 14036 MEM32(eax + 0x10) = edi; /* 0x310102FF: mov dword ptr [eax + 0x10], edi */ 14037 eax = ebp + 0xC; /* 0x31010302: lea eax, [ebp + 0xc] */ 14038 PUSH32(esp, eax); /* 0x31010305: push eax */ 14039 ecx = ebp + (-0x4); /* 0x31010306: lea ecx, [ebp - 4] */ 14040 PUSH32(esp, ecx); /* 0x31010309: push ecx */ 14041 ecx = ebp + (-0x18); /* 0x3101030A: lea ecx, [ebp - 0x18] */ 14042 MEM32(ebp + (-0x4)) = 0x000F6965u; /* 0x3101030D: mov dword ptr [ebp - 4], 0xf6965 */ 14043 MEM32(ebp + 0xC) = ebx; /* 0x31010314: mov dword ptr [ebp + 0xc], ebx */ 14044 RECOMP_ICALL(0x31010B40u); /* 0x31010317: call 0x31010b40 */ /* not lifted */ 14045 RECOMP_FLAGS_IN(); 14046 PUSH32(esp, eax); /* 0x3101031C: push eax */ 14047 edx = ebp + (-0x10); /* 0x3101031D: lea edx, [ebp - 0x10] */ 14048 PUSH32(esp, edx); /* 0x31010320: push edx */ 14049 ecx = esi; /* 0x31010321: mov ecx, esi */ 14050 RECOMP_ICALL(0x31010A60u); /* 0x31010323: call 0x31010a60 */ /* not lifted */ 14051 RECOMP_FLAGS_IN(); 14052 eax = MEM32(eax); /* 0x31010328: mov eax, dword ptr [eax] */ 14053 MEM32(eax + 0x10) = edi; /* 0x3101032A: mov dword ptr [eax + 0x10], edi */ 14054 eax = ebp + 0xC; /* 0x3101032D: lea eax, [ebp + 0xc] */ 14055 PUSH32(esp, eax); /* 0x31010330: push eax */ 14056 ecx = ebp + (-0x4); /* 0x31010331: lea ecx, [ebp - 4] */ 14057 PUSH32(esp, ecx); /* 0x31010334: push ecx */ 14058 ecx = ebp + (-0x18); /* 0x31010335: lea ecx, [ebp - 0x18] */ 14059 MEM32(ebp + (-0x4)) = 0x000F6966u; /* 0x31010338: mov dword ptr [ebp - 4], 0xf6966 */ 14060 MEM32(ebp + 0xC) = ebx; /* 0x3101033F: mov dword ptr [ebp + 0xc], ebx */ 14061 RECOMP_ICALL(0x31010B40u); /* 0x31010342: call 0x31010b40 */ /* not lifted */ 14062 RECOMP_FLAGS_IN(); 14063 PUSH32(esp, eax); /* 0x31010347: push eax */ 14064 edx = ebp + (-0x10); /* 0x31010348: lea edx, [ebp - 0x10] */ 14065 PUSH32(esp, edx); /* 0x3101034B: push edx */ 14066 ecx = esi; /* 0x3101034C: mov ecx, esi */ 14067 RECOMP_ICALL(0x31010A60u); /* 0x3101034E: call 0x31010a60 */ /* not lifted */ 14068 RECOMP_FLAGS_IN(); 14069 eax = MEM32(eax); /* 0x31010353: mov eax, dword ptr [eax] */ 14070 MEM32(eax + 0x10) = edi; /* 0x31010355: mov dword ptr [eax + 0x10], edi */ 14071 eax = ebp + 0xC; /* 0x31010358: lea eax, [ebp + 0xc] */ 14072 PUSH32(esp, eax); /* 0x3101035B: push eax */ 14073 ecx = ebp + (-0x4); /* 0x3101035C: lea ecx, [ebp - 4] */ 14074 PUSH32(esp, ecx); /* 0x3101035F: push ecx */ 14075 ecx = ebp + (-0x18); /* 0x31010360: lea ecx, [ebp - 0x18] */ 14076 MEM32(ebp + (-0x4)) = 0x000F6967u; /* 0x31010363: mov dword ptr [ebp - 4], 0xf6967 */ 14077 MEM32(ebp + 0xC) = ebx; /* 0x3101036A: mov dword ptr [ebp + 0xc], ebx */ 14078 RECOMP_ICALL(0x31010B40u); /* 0x3101036D: call 0x31010b40 */ /* not lifted */ 14079 RECOMP_FLAGS_IN(); 14080 PUSH32(esp, eax); /* 0x31010372: push eax */ 14081 edx = ebp + (-0x10); /* 0x31010373: lea edx, [ebp - 0x10] */ 14082 PUSH32(esp, edx); /* 0x31010376: push edx */ 14083 ecx = esi; /* 0x31010377: mov ecx, esi */ 14084 RECOMP_ICALL(0x31010A60u); /* 0x31010379: call 0x31010a60 */ /* not lifted */ 14085 RECOMP_FLAGS_IN(); 14086 eax = MEM32(eax); /* 0x3101037E: mov eax, dword ptr [eax] */ 14087 MEM32(eax + 0x10) = edi; /* 0x31010380: mov dword ptr [eax + 0x10], edi */ 14088 eax = ebp + 0xC; /* 0x31010383: lea eax, [ebp + 0xc] */ 14089 PUSH32(esp, eax); /* 0x31010386: push eax */ 14090 ecx = ebp + (-0x4); /* 0x31010387: lea ecx, [ebp - 4] */ 14091 PUSH32(esp, ecx); /* 0x3101038A: push ecx */ 14092 ecx = ebp + (-0x18); /* 0x3101038B: lea ecx, [ebp - 0x18] */ 14093 MEM32(ebp + (-0x4)) = 0x000F6968u; /* 0x3101038E: mov dword ptr [ebp - 4], 0xf6968 */ 14094 MEM32(ebp + 0xC) = ebx; /* 0x31010395: mov dword ptr [ebp + 0xc], ebx */ 14095 RECOMP_ICALL(0x31010B40u); /* 0x31010398: call 0x31010b40 */ /* not lifted */ 14096 RECOMP_FLAGS_IN(); 14097 PUSH32(esp, eax); /* 0x3101039D: push eax */ 14098 edx = ebp + (-0x10); /* 0x3101039E: lea edx, [ebp - 0x10] */ 14099 PUSH32(esp, edx); /* 0x310103A1: push edx */ 14100 ecx = esi; /* 0x310103A2: mov ecx, esi */ 14101 RECOMP_ICALL(0x31010A60u); /* 0x310103A4: call 0x31010a60 */ /* not lifted */ 14102 RECOMP_FLAGS_IN(); 14103 eax = MEM32(eax); /* 0x310103A9: mov eax, dword ptr [eax] */ 14104 MEM32(eax + 0x10) = edi; /* 0x310103AB: mov dword ptr [eax + 0x10], edi */ 14105 eax = ebp + 0xC; /* 0x310103AE: lea eax, [ebp + 0xc] */ 14106 PUSH32(esp, eax); /* 0x310103B1: push eax */ 14107 ecx = ebp + (-0x4); /* 0x310103B2: lea ecx, [ebp - 4] */ 14108 PUSH32(esp, ecx); /* 0x310103B5: push ecx */ 14109 ecx = ebp + (-0x18); /* 0x310103B6: lea ecx, [ebp - 0x18] */ 14110 MEM32(ebp + (-0x4)) = 0x000F696Au; /* 0x310103B9: mov dword ptr [ebp - 4], 0xf696a */ 14111 MEM32(ebp + 0xC) = ebx; /* 0x310103C0: mov dword ptr [ebp + 0xc], ebx */ 14112 RECOMP_ICALL(0x31010B40u); /* 0x310103C3: call 0x31010b40 */ /* not lifted */ 14113 RECOMP_FLAGS_IN(); 14114 PUSH32(esp, eax); /* 0x310103C8: push eax */ 14115 edx = ebp + (-0x10); /* 0x310103C9: lea edx, [ebp - 0x10] */ 14116 PUSH32(esp, edx); /* 0x310103CC: push edx */ 14117 ecx = esi; /* 0x310103CD: mov ecx, esi */ 14118 RECOMP_ICALL(0x31010A60u); /* 0x310103CF: call 0x31010a60 */ /* not lifted */ 14119 RECOMP_FLAGS_IN(); 14120 eax = MEM32(eax); /* 0x310103D4: mov eax, dword ptr [eax] */ 14121 MEM32(eax + 0x10) = edi; /* 0x310103D6: mov dword ptr [eax + 0x10], edi */ 14122 eax = ebp + 0xC; /* 0x310103D9: lea eax, [ebp + 0xc] */ 14123 PUSH32(esp, eax); /* 0x310103DC: push eax */ 14124 ecx = ebp + (-0x4); /* 0x310103DD: lea ecx, [ebp - 4] */ 14125 PUSH32(esp, ecx); /* 0x310103E0: push ecx */ 14126 ecx = ebp + (-0x18); /* 0x310103E1: lea ecx, [ebp - 0x18] */ 14127 MEM32(ebp + (-0x4)) = 0x000F6951u; /* 0x310103E4: mov dword ptr [ebp - 4], 0xf6951 */ 14128 MEM32(ebp + 0xC) = ebx; /* 0x310103EB: mov dword ptr [ebp + 0xc], ebx */ 14129 RECOMP_ICALL(0x31010B40u); /* 0x310103EE: call 0x31010b40 */ /* not lifted */ 14130 RECOMP_FLAGS_IN(); 14131 PUSH32(esp, eax); /* 0x310103F3: push eax */ 14132 edx = ebp + (-0x10); /* 0x310103F4: lea edx, [ebp - 0x10] */ 14133 PUSH32(esp, edx); /* 0x310103F7: push edx */ 14134 ecx = esi; /* 0x310103F8: mov ecx, esi */ 14135 RECOMP_ICALL(0x31010A60u); /* 0x310103FA: call 0x31010a60 */ /* not lifted */ 14136 RECOMP_FLAGS_IN(); 14137 eax = MEM32(eax); /* 0x310103FF: mov eax, dword ptr [eax] */ 14138 MEM32(eax + 0x10) = edi; /* 0x31010401: mov dword ptr [eax + 0x10], edi */ 14139 MEM32(ebp + (-0x4)) = 0x000F6952u; /* 0x31010404: mov dword ptr [ebp - 4], 0xf6952 */ 14140 MEM32(ebp + 0xC) = ebx; /* 0x3101040B: mov dword ptr [ebp + 0xc], ebx */ 14141 eax = ebp + 0xC; /* 0x3101040E: lea eax, [ebp + 0xc] */ 14142 PUSH32(esp, eax); /* 0x31010411: push eax */ 14143 ecx = ebp + (-0x4); /* 0x31010412: lea ecx, [ebp - 4] */ 14144 PUSH32(esp, ecx); /* 0x31010415: push ecx */ 14145 ecx = ebp + (-0x18); /* 0x31010416: lea ecx, [ebp - 0x18] */ 14146 RECOMP_ICALL(0x31010B40u); /* 0x31010419: call 0x31010b40 */ /* not lifted */ 14147 RECOMP_FLAGS_IN(); 14148 PUSH32(esp, eax); /* 0x3101041E: push eax */ 14149 edx = ebp + (-0x10); /* 0x3101041F: lea edx, [ebp - 0x10] */ 14150 PUSH32(esp, edx); /* 0x31010422: push edx */ 14151 ecx = esi; /* 0x31010423: mov ecx, esi */ 14152 RECOMP_ICALL(0x31010A60u); /* 0x31010425: call 0x31010a60 */ /* not lifted */ 14153 RECOMP_FLAGS_IN(); 14154 eax = MEM32(eax); /* 0x3101042A: mov eax, dword ptr [eax] */ 14155 MEM32(eax + 0x10) = edi; /* 0x3101042C: mov dword ptr [eax + 0x10], edi */ 14156 eax = ebp + 0xC; /* 0x3101042F: lea eax, [ebp + 0xc] */ 14157 PUSH32(esp, eax); /* 0x31010432: push eax */ 14158 ecx = ebp + (-0x4); /* 0x31010433: lea ecx, [ebp - 4] */ 14159 PUSH32(esp, ecx); /* 0x31010436: push ecx */ 14160 ecx = ebp + (-0x18); /* 0x31010437: lea ecx, [ebp - 0x18] */ 14161 MEM32(ebp + (-0x4)) = 0x000F6953u; /* 0x3101043A: mov dword ptr [ebp - 4], 0xf6953 */ 14162 MEM32(ebp + 0xC) = ebx; /* 0x31010441: mov dword ptr [ebp + 0xc], ebx */ 14163 RECOMP_ICALL(0x31010B40u); /* 0x31010444: call 0x31010b40 */ /* not lifted */ 14164 RECOMP_FLAGS_IN(); 14165 PUSH32(esp, eax); /* 0x31010449: push eax */ 14166 edx = ebp + (-0x10); /* 0x3101044A: lea edx, [ebp - 0x10] */ 14167 PUSH32(esp, edx); /* 0x3101044D: push edx */ 14168 ecx = esi; /* 0x3101044E: mov ecx, esi */ 14169 RECOMP_ICALL(0x31010A60u); /* 0x31010450: call 0x31010a60 */ /* not lifted */ 14170 RECOMP_FLAGS_IN(); 14171 eax = MEM32(eax); /* 0x31010455: mov eax, dword ptr [eax] */ 14172 MEM32(eax + 0x10) = edi; /* 0x31010457: mov dword ptr [eax + 0x10], edi */ 14173 eax = ebp + 0xC; /* 0x3101045A: lea eax, [ebp + 0xc] */ 14174 PUSH32(esp, eax); /* 0x3101045D: push eax */ 14175 ecx = ebp + (-0x4); /* 0x3101045E: lea ecx, [ebp - 4] */ 14176 PUSH32(esp, ecx); /* 0x31010461: push ecx */ 14177 ecx = ebp + (-0x18); /* 0x31010462: lea ecx, [ebp - 0x18] */ 14178 MEM32(ebp + (-0x4)) = 0x000F6954u; /* 0x31010465: mov dword ptr [ebp - 4], 0xf6954 */ 14179 MEM32(ebp + 0xC) = ebx; /* 0x3101046C: mov dword ptr [ebp + 0xc], ebx */ 14180 RECOMP_ICALL(0x31010B40u); /* 0x3101046F: call 0x31010b40 */ /* not lifted */ 14181 RECOMP_FLAGS_IN(); 14182 PUSH32(esp, eax); /* 0x31010474: push eax */ 14183 edx = ebp + (-0x10); /* 0x31010475: lea edx, [ebp - 0x10] */ 14184 PUSH32(esp, edx); /* 0x31010478: push edx */ 14185 ecx = esi; /* 0x31010479: mov ecx, esi */ 14186 RECOMP_ICALL(0x31010A60u); /* 0x3101047B: call 0x31010a60 */ /* not lifted */ 14187 RECOMP_FLAGS_IN(); 14188 eax = MEM32(eax); /* 0x31010480: mov eax, dword ptr [eax] */ 14189 MEM32(eax + 0x10) = edi; /* 0x31010482: mov dword ptr [eax + 0x10], edi */ 14190 eax = ebp + 0xC; /* 0x31010485: lea eax, [ebp + 0xc] */ 14191 PUSH32(esp, eax); /* 0x31010488: push eax */ 14192 ecx = ebp + (-0x4); /* 0x31010489: lea ecx, [ebp - 4] */ 14193 PUSH32(esp, ecx); /* 0x3101048C: push ecx */ 14194 ecx = ebp + (-0x18); /* 0x3101048D: lea ecx, [ebp - 0x18] */ 14195 MEM32(ebp + (-0x4)) = 0x000F6956u; /* 0x31010490: mov dword ptr [ebp - 4], 0xf6956 */ 14196 MEM32(ebp + 0xC) = ebx; /* 0x31010497: mov dword ptr [ebp + 0xc], ebx */ 14197 RECOMP_ICALL(0x31010B40u); /* 0x3101049A: call 0x31010b40 */ /* not lifted */ 14198 RECOMP_FLAGS_IN(); 14199 PUSH32(esp, eax); /* 0x3101049F: push eax */ 14200 edx = ebp + (-0x10); /* 0x310104A0: lea edx, [ebp - 0x10] */ 14201 PUSH32(esp, edx); /* 0x310104A3: push edx */ 14202 ecx = esi; /* 0x310104A4: mov ecx, esi */ 14203 RECOMP_ICALL(0x31010A60u); /* 0x310104A6: call 0x31010a60 */ /* not lifted */ 14204 RECOMP_FLAGS_IN(); 14205 eax = MEM32(eax); /* 0x310104AB: mov eax, dword ptr [eax] */ 14206 MEM32(eax + 0x10) = edi; /* 0x310104AD: mov dword ptr [eax + 0x10], edi */ 14207 eax = ebp + 0xC; /* 0x310104B0: lea eax, [ebp + 0xc] */ 14208 PUSH32(esp, eax); /* 0x310104B3: push eax */ 14209 ecx = ebp + (-0x4); /* 0x310104B4: lea ecx, [ebp - 4] */ 14210 PUSH32(esp, ecx); /* 0x310104B7: push ecx */ 14211 ecx = ebp + (-0x18); /* 0x310104B8: lea ecx, [ebp - 0x18] */ 14212 MEM32(ebp + (-0x4)) = 0x000F6957u; /* 0x310104BB: mov dword ptr [ebp - 4], 0xf6957 */ 14213 MEM32(ebp + 0xC) = ebx; /* 0x310104C2: mov dword ptr [ebp + 0xc], ebx */ 14214 RECOMP_ICALL(0x31010B40u); /* 0x310104C5: call 0x31010b40 */ /* not lifted */ 14215 RECOMP_FLAGS_IN(); 14216 PUSH32(esp, eax); /* 0x310104CA: push eax */ 14217 edx = ebp + (-0x10); /* 0x310104CB: lea edx, [ebp - 0x10] */ 14218 PUSH32(esp, edx); /* 0x310104CE: push edx */ 14219 ecx = esi; /* 0x310104CF: mov ecx, esi */ 14220 RECOMP_ICALL(0x31010A60u); /* 0x310104D1: call 0x31010a60 */ /* not lifted */ 14221 RECOMP_FLAGS_IN(); 14222 eax = MEM32(eax); /* 0x310104D6: mov eax, dword ptr [eax] */ 14223 MEM32(eax + 0x10) = edi; /* 0x310104D8: mov dword ptr [eax + 0x10], edi */ 14224 eax = ebp + 0xC; /* 0x310104DB: lea eax, [ebp + 0xc] */ 14225 PUSH32(esp, eax); /* 0x310104DE: push eax */ 14226 ecx = ebp + (-0x4); /* 0x310104DF: lea ecx, [ebp - 4] */ 14227 PUSH32(esp, ecx); /* 0x310104E2: push ecx */ 14228 ecx = ebp + (-0x18); /* 0x310104E3: lea ecx, [ebp - 0x18] */ 14229 MEM32(ebp + (-0x4)) = 0x000F6958u; /* 0x310104E6: mov dword ptr [ebp - 4], 0xf6958 */ 14230 MEM32(ebp + 0xC) = ebx; /* 0x310104ED: mov dword ptr [ebp + 0xc], ebx */ 14231 RECOMP_ICALL(0x31010B40u); /* 0x310104F0: call 0x31010b40 */ /* not lifted */ 14232 RECOMP_FLAGS_IN(); 14233 PUSH32(esp, eax); /* 0x310104F5: push eax */ 14234 edx = ebp + (-0x10); /* 0x310104F6: lea edx, [ebp - 0x10] */ 14235 PUSH32(esp, edx); /* 0x310104F9: push edx */ 14236 ecx = esi; /* 0x310104FA: mov ecx, esi */ 14237 RECOMP_ICALL(0x31010A60u); /* 0x310104FC: call 0x31010a60 */ /* not lifted */ 14238 RECOMP_FLAGS_IN(); 14239 eax = MEM32(eax); /* 0x31010501: mov eax, dword ptr [eax] */ 14240 MEM32(eax + 0x10) = edi; /* 0x31010503: mov dword ptr [eax + 0x10], edi */ 14241 eax = ebp + 0xC; /* 0x31010506: lea eax, [ebp + 0xc] */ 14242 PUSH32(esp, eax); /* 0x31010509: push eax */ 14243 ecx = ebp + (-0x4); /* 0x3101050A: lea ecx, [ebp - 4] */ 14244 PUSH32(esp, ecx); /* 0x3101050D: push ecx */ 14245 ecx = ebp + (-0x18); /* 0x3101050E: lea ecx, [ebp - 0x18] */ 14246 MEM32(ebp + (-0x4)) = 0x000F6959u; /* 0x31010511: mov dword ptr [ebp - 4], 0xf6959 */ 14247 MEM32(ebp + 0xC) = ebx; /* 0x31010518: mov dword ptr [ebp + 0xc], ebx */ 14248 RECOMP_ICALL(0x31010B40u); /* 0x3101051B: call 0x31010b40 */ /* not lifted */ 14249 RECOMP_FLAGS_IN(); 14250 PUSH32(esp, eax); /* 0x31010520: push eax */ 14251 edx = ebp + (-0x10); /* 0x31010521: lea edx, [ebp - 0x10] */ 14252 PUSH32(esp, edx); /* 0x31010524: push edx */ 14253 ecx = esi; /* 0x31010525: mov ecx, esi */ 14254 RECOMP_ICALL(0x31010A60u); /* 0x31010527: call 0x31010a60 */ /* not lifted */ 14255 RECOMP_FLAGS_IN(); 14256 eax = MEM32(eax); /* 0x3101052C: mov eax, dword ptr [eax] */ 14257 MEM32(eax + 0x10) = edi; /* 0x3101052E: mov dword ptr [eax + 0x10], edi */ 14258 eax = ebp + 0xC; /* 0x31010531: lea eax, [ebp + 0xc] */ 14259 PUSH32(esp, eax); /* 0x31010534: push eax */ 14260 ecx = ebp + (-0x4); /* 0x31010535: lea ecx, [ebp - 4] */ 14261 PUSH32(esp, ecx); /* 0x31010538: push ecx */ 14262 ecx = ebp + (-0x18); /* 0x31010539: lea ecx, [ebp - 0x18] */ 14263 MEM32(ebp + (-0x4)) = 0x000F695Bu; /* 0x3101053C: mov dword ptr [ebp - 4], 0xf695b */ 14264 MEM32(ebp + 0xC) = ebx; /* 0x31010543: mov dword ptr [ebp + 0xc], ebx */ 14265 RECOMP_ICALL(0x31010B40u); /* 0x31010546: call 0x31010b40 */ /* not lifted */ 14266 RECOMP_FLAGS_IN(); 14267 PUSH32(esp, eax); /* 0x3101054B: push eax */ 14268 edx = ebp + (-0x10); /* 0x3101054C: lea edx, [ebp - 0x10] */ 14269 PUSH32(esp, edx); /* 0x3101054F: push edx */ 14270 ecx = esi; /* 0x31010550: mov ecx, esi */ 14271 RECOMP_ICALL(0x31010A60u); /* 0x31010552: call 0x31010a60 */ /* not lifted */ 14272 RECOMP_FLAGS_IN(); 14273 eax = MEM32(eax); /* 0x31010557: mov eax, dword ptr [eax] */ 14274 MEM32(eax + 0x10) = edi; /* 0x31010559: mov dword ptr [eax + 0x10], edi */ 14275 eax = ebp + 0xC; /* 0x3101055C: lea eax, [ebp + 0xc] */ 14276 PUSH32(esp, eax); /* 0x3101055F: push eax */ 14277 ecx = ebp + (-0x4); /* 0x31010560: lea ecx, [ebp - 4] */ 14278 PUSH32(esp, ecx); /* 0x31010563: push ecx */ 14279 ecx = ebp + (-0x18); /* 0x31010564: lea ecx, [ebp - 0x18] */ 14280 MEM32(ebp + (-0x4)) = 0x000F695Du; /* 0x31010567: mov dword ptr [ebp - 4], 0xf695d */ 14281 MEM32(ebp + 0xC) = ebx; /* 0x3101056E: mov dword ptr [ebp + 0xc], ebx */ 14282 RECOMP_ICALL(0x31010B40u); /* 0x31010571: call 0x31010b40 */ /* not lifted */ 14283 RECOMP_FLAGS_IN(); 14284 PUSH32(esp, eax); /* 0x31010576: push eax */ 14285 edx = ebp + (-0x10); /* 0x31010577: lea edx, [ebp - 0x10] */ 14286 PUSH32(esp, edx); /* 0x3101057A: push edx */ 14287 ecx = esi; /* 0x3101057B: mov ecx, esi */ 14288 RECOMP_ICALL(0x31010A60u); /* 0x3101057D: call 0x31010a60 */ /* not lifted */ 14289 RECOMP_FLAGS_IN(); 14290 eax = MEM32(eax); /* 0x31010582: mov eax, dword ptr [eax] */ 14291 MEM32(eax + 0x10) = edi; /* 0x31010584: mov dword ptr [eax + 0x10], edi */ 14292 eax = ebp + 0xC; /* 0x31010587: lea eax, [ebp + 0xc] */ 14293 PUSH32(esp, eax); /* 0x3101058A: push eax */ 14294 ecx = ebp + (-0x4); /* 0x3101058B: lea ecx, [ebp - 4] */ 14295 PUSH32(esp, ecx); /* 0x3101058E: push ecx */ 14296 ecx = ebp + (-0x18); /* 0x3101058F: lea ecx, [ebp - 0x18] */ 14297 MEM32(ebp + (-0x4)) = 0x000F6969u; /* 0x31010592: mov dword ptr [ebp - 4], 0xf6969 */ 14298 MEM32(ebp + 0xC) = ebx; /* 0x31010599: mov dword ptr [ebp + 0xc], ebx */ 14299 RECOMP_ICALL(0x31010B40u); /* 0x3101059C: call 0x31010b40 */ /* not lifted */ 14300 RECOMP_FLAGS_IN(); 14301 PUSH32(esp, eax); /* 0x310105A1: push eax */ 14302 edx = ebp + (-0x10); /* 0x310105A2: lea edx, [ebp - 0x10] */ 14303 PUSH32(esp, edx); /* 0x310105A5: push edx */ 14304 ecx = esi; /* 0x310105A6: mov ecx, esi */ 14305 RECOMP_ICALL(0x31010A60u); /* 0x310105A8: call 0x31010a60 */ /* not lifted */ 14306 RECOMP_FLAGS_IN(); 14307 eax = MEM32(eax); /* 0x310105AD: mov eax, dword ptr [eax] */ 14308 MEM32(eax + 0x10) = edi; /* 0x310105AF: mov dword ptr [eax + 0x10], edi */ 14309 eax = ebp + 0xC; /* 0x310105B2: lea eax, [ebp + 0xc] */ 14310 PUSH32(esp, eax); /* 0x310105B5: push eax */ 14311 ecx = ebp + (-0x4); /* 0x310105B6: lea ecx, [ebp - 4] */ 14312 PUSH32(esp, ecx); /* 0x310105B9: push ecx */ 14313 ecx = ebp + (-0x18); /* 0x310105BA: lea ecx, [ebp - 0x18] */ 14314 MEM32(ebp + (-0x4)) = 0x000F4244u; /* 0x310105BD: mov dword ptr [ebp - 4], 0xf4244 */ 14315 MEM32(ebp + 0xC) = ebx; /* 0x310105C4: mov dword ptr [ebp + 0xc], ebx */ 14316 RECOMP_ICALL(0x31010B40u); /* 0x310105C7: call 0x31010b40 */ /* not lifted */ 14317 RECOMP_FLAGS_IN(); 14318 PUSH32(esp, eax); /* 0x310105CC: push eax */ 14319 edx = ebp + (-0x10); /* 0x310105CD: lea edx, [ebp - 0x10] */ 14320 PUSH32(esp, edx); /* 0x310105D0: push edx */ 14321 ecx = esi; /* 0x310105D1: mov ecx, esi */ 14322 RECOMP_ICALL(0x31010A60u); /* 0x310105D3: call 0x31010a60 */ /* not lifted */ 14323 RECOMP_FLAGS_IN(); 14324 eax = MEM32(eax); /* 0x310105D8: mov eax, dword ptr [eax] */ 14325 MEM32(eax + 0x10) = edi; /* 0x310105DA: mov dword ptr [eax + 0x10], edi */ 14326 eax = ebp + 0xC; /* 0x310105DD: lea eax, [ebp + 0xc] */ 14327 PUSH32(esp, eax); /* 0x310105E0: push eax */ 14328 ecx = ebp + (-0x4); /* 0x310105E1: lea ecx, [ebp - 4] */ 14329 PUSH32(esp, ecx); /* 0x310105E4: push ecx */ 14330 ecx = ebp + (-0x18); /* 0x310105E5: lea ecx, [ebp - 0x18] */ 14331 MEM32(ebp + (-0x4)) = 0x000F4253u; /* 0x310105E8: mov dword ptr [ebp - 4], 0xf4253 */ 14332 MEM32(ebp + 0xC) = ebx; /* 0x310105EF: mov dword ptr [ebp + 0xc], ebx */ 14333 RECOMP_ICALL(0x31010B40u); /* 0x310105F2: call 0x31010b40 */ /* not lifted */ 14334 RECOMP_FLAGS_IN(); 14335 PUSH32(esp, eax); /* 0x310105F7: push eax */ 14336 edx = ebp + (-0x10); /* 0x310105F8: lea edx, [ebp - 0x10] */ 14337 PUSH32(esp, edx); /* 0x310105FB: push edx */ 14338 ecx = esi; /* 0x310105FC: mov ecx, esi */ 14339 RECOMP_ICALL(0x31010A60u); /* 0x310105FE: call 0x31010a60 */ /* not lifted */ 14340 RECOMP_FLAGS_IN(); 14341 eax = MEM32(eax); /* 0x31010603: mov eax, dword ptr [eax] */ 14342 MEM32(eax + 0x10) = edi; /* 0x31010605: mov dword ptr [eax + 0x10], edi */ 14343 eax = ebp + 0xC; /* 0x31010608: lea eax, [ebp + 0xc] */ 14344 PUSH32(esp, eax); /* 0x3101060B: push eax */ 14345 ecx = ebp + (-0x4); /* 0x3101060C: lea ecx, [ebp - 4] */ 14346 PUSH32(esp, ecx); /* 0x3101060F: push ecx */ 14347 ecx = ebp + (-0x18); /* 0x31010610: lea ecx, [ebp - 0x18] */ 14348 MEM32(ebp + (-0x4)) = 0x000F4258u; /* 0x31010613: mov dword ptr [ebp - 4], 0xf4258 */ 14349 MEM32(ebp + 0xC) = ebx; /* 0x3101061A: mov dword ptr [ebp + 0xc], ebx */ 14350 RECOMP_ICALL(0x31010B40u); /* 0x3101061D: call 0x31010b40 */ /* not lifted */ 14351 RECOMP_FLAGS_IN(); 14352 PUSH32(esp, eax); /* 0x31010622: push eax */ 14353 edx = ebp + (-0x10); /* 0x31010623: lea edx, [ebp - 0x10] */ 14354 PUSH32(esp, edx); /* 0x31010626: push edx */ 14355 ecx = esi; /* 0x31010627: mov ecx, esi */ 14356 RECOMP_ICALL(0x31010A60u); /* 0x31010629: call 0x31010a60 */ /* not lifted */ 14357 RECOMP_FLAGS_IN(); 14358 eax = MEM32(eax); /* 0x3101062E: mov eax, dword ptr [eax] */ 14359 MEM32(eax + 0x10) = edi; /* 0x31010630: mov dword ptr [eax + 0x10], edi */ 14360 eax = ebp + 0xC; /* 0x31010633: lea eax, [ebp + 0xc] */ 14361 PUSH32(esp, eax); /* 0x31010636: push eax */ 14362 ecx = ebp + (-0x4); /* 0x31010637: lea ecx, [ebp - 4] */ 14363 PUSH32(esp, ecx); /* 0x3101063A: push ecx */ 14364 ecx = ebp + (-0x18); /* 0x3101063B: lea ecx, [ebp - 0x18] */ 14365 MEM32(ebp + (-0x4)) = 0x000F424Au; /* 0x3101063E: mov dword ptr [ebp - 4], 0xf424a */ 14366 MEM32(ebp + 0xC) = ebx; /* 0x31010645: mov dword ptr [ebp + 0xc], ebx */ 14367 RECOMP_ICALL(0x31010B40u); /* 0x31010648: call 0x31010b40 */ /* not lifted */ 14368 RECOMP_FLAGS_IN(); 14369 PUSH32(esp, eax); /* 0x3101064D: push eax */ 14370 edx = ebp + (-0x10); /* 0x3101064E: lea edx, [ebp - 0x10] */ 14371 PUSH32(esp, edx); /* 0x31010651: push edx */ 14372 ecx = esi; /* 0x31010652: mov ecx, esi */ 14373 RECOMP_ICALL(0x31010A60u); /* 0x31010654: call 0x31010a60 */ /* not lifted */ 14374 RECOMP_FLAGS_IN(); 14375 eax = MEM32(eax); /* 0x31010659: mov eax, dword ptr [eax] */ 14376 MEM32(eax + 0x10) = edi; /* 0x3101065B: mov dword ptr [eax + 0x10], edi */ 14377 eax = ebp + 0xC; /* 0x3101065E: lea eax, [ebp + 0xc] */ 14378 PUSH32(esp, eax); /* 0x31010661: push eax */ 14379 ecx = ebp + (-0x4); /* 0x31010662: lea ecx, [ebp - 4] */ 14380 PUSH32(esp, ecx); /* 0x31010665: push ecx */ 14381 ecx = ebp + (-0x18); /* 0x31010666: lea ecx, [ebp - 0x18] */ 14382 MEM32(ebp + (-0x4)) = 0x000F425Cu; /* 0x31010669: mov dword ptr [ebp - 4], 0xf425c */ 14383 MEM32(ebp + 0xC) = ebx; /* 0x31010670: mov dword ptr [ebp + 0xc], ebx */ 14384 RECOMP_ICALL(0x31010B40u); /* 0x31010673: call 0x31010b40 */ /* not lifted */ 14385 RECOMP_FLAGS_IN(); 14386 PUSH32(esp, eax); /* 0x31010678: push eax */ 14387 edx = ebp + (-0x10); /* 0x31010679: lea edx, [ebp - 0x10] */ 14388 PUSH32(esp, edx); /* 0x3101067C: push edx */ 14389 ecx = esi; /* 0x3101067D: mov ecx, esi */ 14390 RECOMP_ICALL(0x31010A60u); /* 0x3101067F: call 0x31010a60 */ /* not lifted */ 14391 RECOMP_FLAGS_IN(); 14392 eax = MEM32(eax); /* 0x31010684: mov eax, dword ptr [eax] */ 14393 MEM32(eax + 0x10) = edi; /* 0x31010686: mov dword ptr [eax + 0x10], edi */ 14394 eax = ebp + 0xC; /* 0x31010689: lea eax, [ebp + 0xc] */ 14395 PUSH32(esp, eax); /* 0x3101068C: push eax */ 14396 ecx = ebp + (-0x4); /* 0x3101068D: lea ecx, [ebp - 4] */ 14397 PUSH32(esp, ecx); /* 0x31010690: push ecx */ 14398 ecx = ebp + (-0x18); /* 0x31010691: lea ecx, [ebp - 0x18] */ 14399 MEM32(ebp + (-0x4)) = 0x000F425Fu; /* 0x31010694: mov dword ptr [ebp - 4], 0xf425f */ 14400 MEM32(ebp + 0xC) = ebx; /* 0x3101069B: mov dword ptr [ebp + 0xc], ebx */ 14401 RECOMP_ICALL(0x31010B40u); /* 0x3101069E: call 0x31010b40 */ /* not lifted */ 14402 RECOMP_FLAGS_IN(); 14403 PUSH32(esp, eax); /* 0x310106A3: push eax */ 14404 edx = ebp + (-0x10); /* 0x310106A4: lea edx, [ebp - 0x10] */ 14405 PUSH32(esp, edx); /* 0x310106A7: push edx */ 14406 ecx = esi; /* 0x310106A8: mov ecx, esi */ 14407 RECOMP_ICALL(0x31010A60u); /* 0x310106AA: call 0x31010a60 */ /* not lifted */ 14408 RECOMP_FLAGS_IN(); 14409 eax = MEM32(eax); /* 0x310106AF: mov eax, dword ptr [eax] */ 14410 edi = MEM32(ebp + 0x8); /* 0x310106B1: mov edi, dword ptr [ebp + 8] */ 14411 MEM32(eax + 0x10) = edi; /* 0x310106B4: mov dword ptr [eax + 0x10], edi */ 14412 eax = ebp + 0xC; /* 0x310106B7: lea eax, [ebp + 0xc] */ 14413 MEM32(ebp + 0x8) = 0x000F424Fu; /* 0x310106BA: mov dword ptr [ebp + 8], 0xf424f */ 14414 MEM32(ebp + 0xC) = ebx; /* 0x310106C1: mov dword ptr [ebp + 0xc], ebx */ 14415 PUSH32(esp, eax); /* 0x310106C4: push eax */ 14416 ecx = ebp + 0x8; /* 0x310106C5: lea ecx, [ebp + 8] */ 14417 PUSH32(esp, ecx); /* 0x310106C8: push ecx */ 14418 ecx = ebp + (-0x18); /* 0x310106C9: lea ecx, [ebp - 0x18] */ 14419 RECOMP_ICALL(0x31010B40u); /* 0x310106CC: call 0x31010b40 */ /* not lifted */ 14420 RECOMP_FLAGS_IN(); 14421 PUSH32(esp, eax); /* 0x310106D1: push eax */ 14422 edx = ebp + (-0x10); /* 0x310106D2: lea edx, [ebp - 0x10] */ 14423 PUSH32(esp, edx); /* 0x310106D5: push edx */ 14424 ecx = esi; /* 0x310106D6: mov ecx, esi */ 14425 RECOMP_ICALL(0x31010A60u); /* 0x310106D8: call 0x31010a60 */ /* not lifted */ 14426 RECOMP_FLAGS_IN(); 14427 eax = MEM32(eax); /* 0x310106DD: mov eax, dword ptr [eax] */ 14428 MEM32(eax + 0x10) = edi; /* 0x310106DF: mov dword ptr [eax + 0x10], edi */ 14429 eax = ebp + 0xC; /* 0x310106E2: lea eax, [ebp + 0xc] */ 14430 PUSH32(esp, eax); /* 0x310106E5: push eax */ 14431 ecx = ebp + 0x8; /* 0x310106E6: lea ecx, [ebp + 8] */ 14432 PUSH32(esp, ecx); /* 0x310106E9: push ecx */ 14433 ecx = ebp + (-0x18); /* 0x310106EA: lea ecx, [ebp - 0x18] */ 14434 MEM32(ebp + 0x8) = 0x000F4260u; /* 0x310106ED: mov dword ptr [ebp + 8], 0xf4260 */ 14435 MEM32(ebp + 0xC) = ebx; /* 0x310106F4: mov dword ptr [ebp + 0xc], ebx */ 14436 RECOMP_ICALL(0x31010B40u); /* 0x310106F7: call 0x31010b40 */ /* not lifted */ 14437 RECOMP_FLAGS_IN(); 14438 PUSH32(esp, eax); /* 0x310106FC: push eax */ 14439 edx = ebp + (-0x10); /* 0x310106FD: lea edx, [ebp - 0x10] */ 14440 PUSH32(esp, edx); /* 0x31010700: push edx */ 14441 ecx = esi; /* 0x31010701: mov ecx, esi */ 14442 RECOMP_ICALL(0x31010A60u); /* 0x31010703: call 0x31010a60 */ /* not lifted */ 14443 RECOMP_FLAGS_IN(); 14444 eax = MEM32(eax); /* 0x31010708: mov eax, dword ptr [eax] */ 14445 MEM32(eax + 0x10) = edi; /* 0x3101070A: mov dword ptr [eax + 0x10], edi */ 14446 eax = ebp + 0xC; /* 0x3101070D: lea eax, [ebp + 0xc] */ 14447 PUSH32(esp, eax); /* 0x31010710: push eax */ 14448 ecx = ebp + 0x8; /* 0x31010711: lea ecx, [ebp + 8] */ 14449 PUSH32(esp, ecx); /* 0x31010714: push ecx */ 14450 ecx = ebp + (-0x18); /* 0x31010715: lea ecx, [ebp - 0x18] */ 14451 MEM32(ebp + 0x8) = 0x000F4254u; /* 0x31010718: mov dword ptr [ebp + 8], 0xf4254 */ 14452 MEM32(ebp + 0xC) = ebx; /* 0x3101071F: mov dword ptr [ebp + 0xc], ebx */ 14453 RECOMP_ICALL(0x31010B40u); /* 0x31010722: call 0x31010b40 */ /* not lifted */ 14454 RECOMP_FLAGS_IN(); 14455 PUSH32(esp, eax); /* 0x31010727: push eax */ 14456 edx = ebp + (-0x10); /* 0x31010728: lea edx, [ebp - 0x10] */ 14457 PUSH32(esp, edx); /* 0x3101072B: push edx */ 14458 ecx = esi; /* 0x3101072C: mov ecx, esi */ 14459 RECOMP_ICALL(0x31010A60u); /* 0x3101072E: call 0x31010a60 */ /* not lifted */ 14460 RECOMP_FLAGS_IN(); 14461 eax = MEM32(eax); /* 0x31010733: mov eax, dword ptr [eax] */ 14462 MEM32(eax + 0x10) = edi; /* 0x31010735: mov dword ptr [eax + 0x10], edi */ 14463 eax = ebp + 0xC; /* 0x31010738: lea eax, [ebp + 0xc] */ 14464 PUSH32(esp, eax); /* 0x3101073B: push eax */ 14465 ecx = esi; /* 0x3101073C: mov ecx, esi */ 14466 MEM32(ebp + 0xC) = 0x000FDE97u; /* 0x3101073E: mov dword ptr [ebp + 0xc], 0xfde97 */ 14467 RECOMP_ICALL(0x31010930u); /* 0x31010745: call 0x31010930 */ /* not lifted */ 14468 RECOMP_FLAGS_IN(); 14469 ecx = ebp + 0xC; /* 0x3101074A: lea ecx, [ebp + 0xc] */ 14470 PUSH32(esp, ecx); /* 0x3101074D: push ecx */ 14471 MEM32(eax) = edi; /* 0x3101074E: mov dword ptr [eax], edi */ 14472 ecx = esi; /* 0x31010750: mov ecx, esi */ 14473 MEM32(ebp + 0xC) = 0x000F425Bu; /* 0x31010752: mov dword ptr [ebp + 0xc], 0xf425b */ 14474 RECOMP_ICALL(0x31010930u); /* 0x31010759: call 0x31010930 */ /* not lifted */ 14475 RECOMP_FLAGS_IN(); 14476 edx = ebp + 0xC; /* 0x3101075E: lea edx, [ebp + 0xc] */ 14477 MEM32(eax) = edi; /* 0x31010761: mov dword ptr [eax], edi */ 14478 PUSH32(esp, edx); /* 0x31010763: push edx */ 14479 ecx = esi; /* 0x31010764: mov ecx, esi */ 14480 MEM32(ebp + 0xC) = 0x000FDE85u; /* 0x31010766: mov dword ptr [ebp + 0xc], 0xfde85 */ 14481 RECOMP_ICALL(0x31010930u); /* 0x3101076D: call 0x31010930 */ /* not lifted */ 14482 RECOMP_FLAGS_IN(); 14483 MEM32(eax) = edi; /* 0x31010772: mov dword ptr [eax], edi */ 14484 eax = ebp + 0xC; /* 0x31010774: lea eax, [ebp + 0xc] */ 14485 PUSH32(esp, eax); /* 0x31010777: push eax */ 14486 ecx = esi; /* 0x31010778: mov ecx, esi */ 14487 MEM32(ebp + 0xC) = 0x000F4308u; /* 0x3101077A: mov dword ptr [ebp + 0xc], 0xf4308 */ 14488 RECOMP_ICALL(0x31010930u); /* 0x31010781: call 0x31010930 */ /* not lifted */ 14489 RECOMP_FLAGS_IN(); 14490 ecx = ebp + 0xC; /* 0x31010786: lea ecx, [ebp + 0xc] */ 14491 PUSH32(esp, ecx); /* 0x31010789: push ecx */ 14492 MEM32(eax) = edi; /* 0x3101078A: mov dword ptr [eax], edi */ 14493 ecx = esi; /* 0x3101078C: mov ecx, esi */ 14494 MEM32(ebp + 0xC) = 0x000F430Bu; /* 0x3101078E: mov dword ptr [ebp + 0xc], 0xf430b */ 14495 RECOMP_ICALL(0x31010930u); /* 0x31010795: call 0x31010930 */ /* not lifted */ 14496 RECOMP_FLAGS_IN(); 14497 edx = ebp + 0xC; /* 0x3101079A: lea edx, [ebp + 0xc] */ 14498 MEM32(eax) = edi; /* 0x3101079D: mov dword ptr [eax], edi */ 14499 PUSH32(esp, edx); /* 0x3101079F: push edx */ 14500 ecx = esi; /* 0x310107A0: mov ecx, esi */ 14501 MEM32(ebp + 0xC) = 0x000F430Cu; /* 0x310107A2: mov dword ptr [ebp + 0xc], 0xf430c */ 14502 RECOMP_ICALL(0x31010930u); /* 0x310107A9: call 0x31010930 */ /* not lifted */ 14503 RECOMP_FLAGS_IN(); 14504 MEM32(eax) = edi; /* 0x310107AE: mov dword ptr [eax], edi */ 14505 eax = ebp + 0xC; /* 0x310107B0: lea eax, [ebp + 0xc] */ 14506 MEM32(ebp + 0xC) = 0x000F430Du; /* 0x310107B3: mov dword ptr [ebp + 0xc], 0xf430d */ 14507 PUSH32(esp, eax); /* 0x310107BA: push eax */ 14508 ecx = esi; /* 0x310107BB: mov ecx, esi */ 14509 RECOMP_ICALL(0x31010930u); /* 0x310107BD: call 0x31010930 */ /* not lifted */ 14510 RECOMP_FLAGS_IN(); 14511 ecx = ebp + 0xC; /* 0x310107C2: lea ecx, [ebp + 0xc] */ 14512 PUSH32(esp, ecx); /* 0x310107C5: push ecx */ 14513 MEM32(eax) = edi; /* 0x310107C6: mov dword ptr [eax], edi */ 14514 ecx = esi; /* 0x310107C8: mov ecx, esi */ 14515 MEM32(ebp + 0xC) = 0x000F430Eu; /* 0x310107CA: mov dword ptr [ebp + 0xc], 0xf430e */ 14516 RECOMP_ICALL(0x31010930u); /* 0x310107D1: call 0x31010930 */ /* not lifted */ 14517 RECOMP_FLAGS_IN(); 14518 edx = ebp + 0xC; /* 0x310107D6: lea edx, [ebp + 0xc] */ 14519 MEM32(eax) = edi; /* 0x310107D9: mov dword ptr [eax], edi */ 14520 PUSH32(esp, edx); /* 0x310107DB: push edx */ 14521 ecx = esi; /* 0x310107DC: mov ecx, esi */ 14522 MEM32(ebp + 0xC) = 0x000F4310u; /* 0x310107DE: mov dword ptr [ebp + 0xc], 0xf4310 */ 14523 RECOMP_ICALL(0x31010930u); /* 0x310107E5: call 0x31010930 */ /* not lifted */ 14524 RECOMP_FLAGS_IN(); 14525 MEM32(eax) = edi; /* 0x310107EA: mov dword ptr [eax], edi */ 14526 eax = ebp + 0xC; /* 0x310107EC: lea eax, [ebp + 0xc] */ 14527 PUSH32(esp, eax); /* 0x310107EF: push eax */ 14528 ecx = esi; /* 0x310107F0: mov ecx, esi */ 14529 MEM32(ebp + 0xC) = 0x000F4311u; /* 0x310107F2: mov dword ptr [ebp + 0xc], 0xf4311 */ 14530 RECOMP_ICALL(0x31010930u); /* 0x310107F9: call 0x31010930 */ /* not lifted */ 14531 RECOMP_FLAGS_IN(); 14532 ecx = ebp + 0xC; /* 0x310107FE: lea ecx, [ebp + 0xc] */ 14533 PUSH32(esp, ecx); /* 0x31010801: push ecx */ 14534 MEM32(eax) = edi; /* 0x31010802: mov dword ptr [eax], edi */ 14535 ecx = esi; /* 0x31010804: mov ecx, esi */ 14536 MEM32(ebp + 0xC) = 0x000F4312u; /* 0x31010806: mov dword ptr [ebp + 0xc], 0xf4312 */ 14537 RECOMP_ICALL(0x31010930u); /* 0x3101080D: call 0x31010930 */ /* not lifted */ 14538 RECOMP_FLAGS_IN(); 14539 edx = ebp + 0xC; /* 0x31010812: lea edx, [ebp + 0xc] */ 14540 MEM32(eax) = edi; /* 0x31010815: mov dword ptr [eax], edi */ 14541 PUSH32(esp, edx); /* 0x31010817: push edx */ 14542 ecx = esi; /* 0x31010818: mov ecx, esi */ 14543 MEM32(ebp + 0xC) = 0x000F4255u; /* 0x3101081A: mov dword ptr [ebp + 0xc], 0xf4255 */ 14544 RECOMP_ICALL(0x31010930u); /* 0x31010821: call 0x31010930 */ /* not lifted */ 14545 RECOMP_FLAGS_IN(); 14546 edi = MEM32(ebp + 0x10); /* 0x31010826: mov edi, dword ptr [ebp + 0x10] */ 14547 MEM32(eax) = edi; /* 0x31010829: mov dword ptr [eax], edi */ 14548 eax = ebp + 0x10; /* 0x3101082B: lea eax, [ebp + 0x10] */ 14549 PUSH32(esp, eax); /* 0x3101082E: push eax */ 14550 ecx = esi; /* 0x3101082F: mov ecx, esi */ 14551 MEM32(ebp + 0x10) = 0x000F4251u; /* 0x31010831: mov dword ptr [ebp + 0x10], 0xf4251 */ 14552 RECOMP_ICALL(0x31010930u); /* 0x31010838: call 0x31010930 */ /* not lifted */ 14553 RECOMP_FLAGS_IN(); 14554 ecx = ebp + 0x10; /* 0x3101083D: lea ecx, [ebp + 0x10] */ 14555 PUSH32(esp, ecx); /* 0x31010840: push ecx */ 14556 MEM32(eax) = edi; /* 0x31010841: mov dword ptr [eax], edi */ 14557 ecx = esi; /* 0x31010843: mov ecx, esi */ 14558 MEM32(ebp + 0x10) = 0x000F4241u; /* 0x31010845: mov dword ptr [ebp + 0x10], 0xf4241 */ 14559 RECOMP_ICALL(0x31010930u); /* 0x3101084C: call 0x31010930 */ /* not lifted */ 14560 RECOMP_FLAGS_IN(); 14561 edx = ebp + 0x10; /* 0x31010851: lea edx, [ebp + 0x10] */ 14562 MEM32(eax) = edi; /* 0x31010854: mov dword ptr [eax], edi */ 14563 PUSH32(esp, edx); /* 0x31010856: push edx */ 14564 ecx = esi; /* 0x31010857: mov ecx, esi */ 14565 MEM32(ebp + 0x10) = 0x000F4249u; /* 0x31010859: mov dword ptr [ebp + 0x10], 0xf4249 */ 14566 RECOMP_ICALL(0x31010930u); /* 0x31010860: call 0x31010930 */ /* not lifted */ 14567 RECOMP_FLAGS_IN(); 14568 MEM32(eax) = edi; /* 0x31010865: mov dword ptr [eax], edi */ 14569 eax = ebp + 0x10; /* 0x31010867: lea eax, [ebp + 0x10] */ 14570 PUSH32(esp, eax); /* 0x3101086A: push eax */ 14571 ecx = esi; /* 0x3101086B: mov ecx, esi */ 14572 MEM32(ebp + 0x10) = 0x000F424Du; /* 0x3101086D: mov dword ptr [ebp + 0x10], 0xf424d */ 14573 RECOMP_ICALL(0x31010930u); /* 0x31010874: call 0x31010930 */ /* not lifted */ 14574 RECOMP_FLAGS_IN(); 14575 ecx = ebp + 0x10; /* 0x31010879: lea ecx, [ebp + 0x10] */ 14576 PUSH32(esp, ecx); /* 0x3101087C: push ecx */ 14577 MEM32(eax) = edi; /* 0x3101087D: mov dword ptr [eax], edi */ 14578 ecx = esi; /* 0x3101087F: mov ecx, esi */ 14579 MEM32(ebp + 0x10) = 0x000F424Eu; /* 0x31010881: mov dword ptr [ebp + 0x10], 0xf424e */ 14580 RECOMP_ICALL(0x31010930u); /* 0x31010888: call 0x31010930 */ /* not lifted */ 14581 RECOMP_FLAGS_IN(); 14582 edx = ebp + 0x10; /* 0x3101088D: lea edx, [ebp + 0x10] */ 14583 MEM32(eax) = edi; /* 0x31010890: mov dword ptr [eax], edi */ 14584 PUSH32(esp, edx); /* 0x31010892: push edx */ 14585 ecx = esi; /* 0x31010893: mov ecx, esi */ 14586 MEM32(ebp + 0x10) = 0x000F4250u; /* 0x31010895: mov dword ptr [ebp + 0x10], 0xf4250 */ 14587 RECOMP_ICALL(0x31010930u); /* 0x3101089C: call 0x31010930 */ /* not lifted */ 14588 RECOMP_FLAGS_IN(); 14589 MEM32(eax) = edi; /* 0x310108A1: mov dword ptr [eax], edi */ 14590 eax = ebp + 0x10; /* 0x310108A3: lea eax, [ebp + 0x10] */ 14591 PUSH32(esp, eax); /* 0x310108A6: push eax */ 14592 ecx = esi; /* 0x310108A7: mov ecx, esi */ 14593 MEM32(ebp + 0x10) = 0x000F4252u; /* 0x310108A9: mov dword ptr [ebp + 0x10], 0xf4252 */ 14594 RECOMP_ICALL(0x31010930u); /* 0x310108B0: call 0x31010930 */ /* not lifted */ 14595 RECOMP_FLAGS_IN(); 14596 ecx = ebp + 0x10; /* 0x310108B5: lea ecx, [ebp + 0x10] */ 14597 PUSH32(esp, ecx); /* 0x310108B8: push ecx */ 14598 MEM32(eax) = edi; /* 0x310108B9: mov dword ptr [eax], edi */ 14599 ecx = esi; /* 0x310108BB: mov ecx, esi */ 14600 MEM32(ebp + 0x10) = 0x000F4256u; /* 0x310108BD: mov dword ptr [ebp + 0x10], 0xf4256 */ 14601 RECOMP_ICALL(0x31010930u); /* 0x310108C4: call 0x31010930 */ /* not lifted */ 14602 RECOMP_FLAGS_IN(); 14603 MEM32(eax) = edi; /* 0x310108C9: mov dword ptr [eax], edi */ 14604 edx = ebp + 0x10; /* 0x310108CB: lea edx, [ebp + 0x10] */ 14605 PUSH32(esp, edx); /* 0x310108CE: push edx */ 14606 ecx = esi; /* 0x310108CF: mov ecx, esi */ 14607 MEM32(ebp + 0x10) = 0x000F4259u; /* 0x310108D1: mov dword ptr [ebp + 0x10], 0xf4259 */ 14608 RECOMP_ICALL(0x31010930u); /* 0x310108D8: call 0x31010930 */ /* not lifted */ 14609 RECOMP_FLAGS_IN(); 14610 MEM32(eax) = edi; /* 0x310108DD: mov dword ptr [eax], edi */ 14611 eax = ebp + 0x10; /* 0x310108DF: lea eax, [ebp + 0x10] */ 14612 PUSH32(esp, eax); /* 0x310108E2: push eax */ 14613 ecx = esi; /* 0x310108E3: mov ecx, esi */ 14614 MEM32(ebp + 0x10) = 0x000F425Au; /* 0x310108E5: mov dword ptr [ebp + 0x10], 0xf425a */ 14615 RECOMP_ICALL(0x31010930u); /* 0x310108EC: call 0x31010930 */ /* not lifted */ 14616 RECOMP_FLAGS_IN(); 14617 ecx = ebp + 0x10; /* 0x310108F1: lea ecx, [ebp + 0x10] */ 14618 PUSH32(esp, ecx); /* 0x310108F4: push ecx */ 14619 MEM32(eax) = edi; /* 0x310108F5: mov dword ptr [eax], edi */ 14620 ecx = esi; /* 0x310108F7: mov ecx, esi */ 14621 MEM32(ebp + 0x10) = 0x000F425Du; /* 0x310108F9: mov dword ptr [ebp + 0x10], 0xf425d */ 14622 RECOMP_ICALL(0x31010930u); /* 0x31010900: call 0x31010930 */ /* not lifted */ 14623 RECOMP_FLAGS_IN(); 14624 edx = ebp + 0x10; /* 0x31010905: lea edx, [ebp + 0x10] */ 14625 MEM32(eax) = edi; /* 0x31010908: mov dword ptr [eax], edi */ 14626 PUSH32(esp, edx); /* 0x3101090A: push edx */ 14627 ecx = esi; /* 0x3101090B: mov ecx, esi */ 14628 MEM32(ebp + 0x10) = 0x000F425Eu; /* 0x3101090D: mov dword ptr [ebp + 0x10], 0xf425e */ 14629 RECOMP_ICALL(0x31010930u); /* 0x31010914: call 0x31010930 */ /* not lifted */ 14630 RECOMP_FLAGS_IN(); 14631 MEM32(eax) = edi; /* 0x31010919: mov dword ptr [eax], edi */ 14632 edi = POP32_VAL(esp); /* 0x3101091B: pop edi */ 14633 esi = POP32_VAL(esp); /* 0x3101091C: pop esi */ 14634 ebx = POP32_VAL(esp); /* 0x3101091D: pop ebx */ 14635 esp = ebp; /* 0x3101091E: mov esp, ebp */ 14636 ebp = POP32_VAL(esp); /* 0x31010920: pop ebp */ 14637 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x31010921: ret 0xc */ 14638 RECOMP_REGS_OUT(); 14639 } 14640 14641 void sub_31010930(void) { 14642 int _fpu_cmp = 0; 14643 uint32_t _cf = 0; 14644 int _df = 1; 14645 uint32_t _flag_k = FK_NONE; 14646 uint32_t _flag_a = 0, _flag_b = 0; 14647 uint32_t _itail_tgt = 0; 14648 RECOMP_REGS_LOCALS 14649 RECOMP_ENTER(0x31010930u); 14650 14651 L_31010930: 14652 PUSH32(esp, ebp); /* 0x31010930: push ebp */ 14653 ebp = esp; /* 0x31010931: mov ebp, esp */ 14654 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x40u); 14655 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14656 esp = esp - 0x40u; /* 0x31010933: sub esp, 0x40 */ 14657 _flag_k = FK_CMP; 14658 eax = MEM32(ebp + 0x8); /* 0x31010936: mov eax, dword ptr [ebp + 8] */ 14659 edx = MEM32(eax); /* 0x31010939: mov edx, dword ptr [eax] */ 14660 PUSH32(esp, ebx); /* 0x3101093B: push ebx */ 14661 PUSH32(esp, esi); /* 0x3101093C: push esi */ 14662 PUSH32(esp, edi); /* 0x3101093D: push edi */ 14663 edi = ecx; /* 0x3101093E: mov edi, ecx */ 14664 ebx = MEM32(edi + 0x4); /* 0x31010940: mov ebx, dword ptr [edi + 4] */ 14665 ecx = MEM32(edi + 0x8); /* 0x31010943: mov ecx, dword ptr [edi + 8] */ 14666 MEM32(ebp + (-0x20)) = edx; /* 0x31010946: mov dword ptr [ebp - 0x20], edx */ 14667 MEM32(ebp + (-0x1C)) = 0; /* 0x31010949: mov dword ptr [ebp - 0x1c], 0 */ 14668 esi = MEM32(ebx + 0x4); /* 0x31010950: mov esi, dword ptr [ebx + 4] */ 14669 /* cmp esi, ecx */ /* 0x31010953: cmp esi, ecx */ 14670 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 14671 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14672 _flag_k = FK_CMP; 14673 SET_LO8(eax, 1); /* 0x31010955: mov al, 1 */ 14674 if (CMP_EQ(_flag_a, _flag_b)) goto L_31010970; /* 0x31010957: je 0x31010970 */ 14675 L_31010959: 14676 /* cmp edx, MEM32(esi + 0xC) */ /* 0x31010959: cmp edx, dword ptr [esi + 0xc] */ 14677 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0xC)); 14678 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14679 _flag_k = FK_CMP; 14680 SET_LO8(eax, (CMP_B(_flag_a, _flag_b)) ? 1 : 0); /* 0x3101095C: setb al */ 14681 /* test LO8(eax), LO8(eax) */ /* 0x3101095F: test al, al */ 14682 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14683 _cf = 0; 14684 _flag_k = FK_NARROW(FK_TEST, 24); 14685 ebx = esi; /* 0x31010961: mov ebx, esi */ 14686 if (TEST_Z(_flag_a, _flag_b)) goto L_31010969; /* 0x31010963: je 0x31010969 */ 14687 L_31010965: 14688 esi = MEM32(esi); /* 0x31010965: mov esi, dword ptr [esi] */ 14689 goto L_3101096C; /* 0x31010967: jmp 0x3101096c */ 14690 L_31010969: 14691 esi = MEM32(esi + 0x8); /* 0x31010969: mov esi, dword ptr [esi + 8] */ 14692 L_3101096C: 14693 /* cmp esi, ecx */ /* 0x3101096C: cmp esi, ecx */ 14694 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 14695 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14696 _flag_k = FK_CMP; 14697 RECOMP_BACKEDGE(); 14698 if (CMP_NE(_flag_a, _flag_b)) goto L_31010959; /* 0x3101096E: jne 0x31010959 */ 14699 L_31010970: 14700 SET_LO8(ecx, MEM8(edi + 0xC)); /* 0x31010970: mov cl, byte ptr [edi + 0xc] */ 14701 /* test LO8(ecx), LO8(ecx) */ /* 0x31010973: test cl, cl */ 14702 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 14703 _cf = 0; 14704 _flag_k = FK_NARROW(FK_TEST, 24); 14705 if (TEST_Z(_flag_a, _flag_b)) goto L_310109AF; /* 0x31010975: je 0x310109af */ 14706 L_31010977: 14707 ecx = ebp + 0xB; /* 0x31010977: lea ecx, [ebp + 0xb] */ 14708 PUSH32(esp, ecx); /* 0x3101097A: push ecx */ 14709 edx = ebp + (-0x20); /* 0x3101097B: lea edx, [ebp - 0x20] */ 14710 PUSH32(esp, edx); /* 0x3101097E: push edx */ 14711 PUSH32(esp, ebx); /* 0x3101097F: push ebx */ 14712 PUSH32(esp, esi); /* 0x31010980: push esi */ 14713 eax = ebp + (-0xC); /* 0x31010981: lea eax, [ebp - 0xc] */ 14714 PUSH32(esp, eax); /* 0x31010984: push eax */ 14715 ecx = edi; /* 0x31010985: mov ecx, edi */ 14716 MEM8(ebp + 0xB) = (uint8_t)(1); /* 0x31010987: mov byte ptr [ebp + 0xb], 1 */ 14717 RECOMP_ICALL(0x3100AB20u); /* 0x3101098B: call 0x3100ab20 */ /* not lifted */ 14718 RECOMP_FLAGS_IN(); 14719 PUSH32(esp, eax); /* 0x31010990: push eax */ 14720 ecx = ebp + (-0x28); /* 0x31010991: lea ecx, [ebp - 0x28] */ 14721 RECOMP_ICALL(0x3100AB00u); /* 0x31010994: call 0x3100ab00 */ /* not lifted */ 14722 RECOMP_FLAGS_IN(); 14723 ecx = eax; /* 0x31010999: mov ecx, eax */ 14724 eax = MEM32(ecx); /* 0x3101099B: mov eax, dword ptr [ecx] */ 14725 edx = MEM32(ecx + 0x4); /* 0x3101099D: mov edx, dword ptr [ecx + 4] */ 14726 edi = POP32_VAL(esp); /* 0x310109A0: pop edi */ 14727 esi = POP32_VAL(esp); /* 0x310109A1: pop esi */ 14728 MEM32(ebp + (-0x1C)) = edx; /* 0x310109A2: mov dword ptr [ebp - 0x1c], edx */ 14729 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 14730 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14731 eax = eax + 0x10u; /* 0x310109A5: add eax, 0x10 */ 14732 _flag_k = FK_ADD; 14733 ebx = POP32_VAL(esp); /* 0x310109A8: pop ebx */ 14734 esp = ebp; /* 0x310109A9: mov esp, ebp */ 14735 ebp = POP32_VAL(esp); /* 0x310109AB: pop ebp */ 14736 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x310109AC: ret 4 */ 14737 L_310109AF: 14738 /* test LO8(eax), LO8(eax) */ /* 0x310109AF: test al, al */ 14739 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14740 _cf = 0; 14741 _flag_k = FK_NARROW(FK_TEST, 24); 14742 MEM32(ebp + (-0x8)) = ebx; /* 0x310109B1: mov dword ptr [ebp - 8], ebx */ 14743 if (TEST_Z(_flag_a, _flag_b)) goto L_310109F2; /* 0x310109B4: je 0x310109f2 */ 14744 L_310109B6: 14745 eax = ebp + (-0x10); /* 0x310109B6: lea eax, [ebp - 0x10] */ 14746 PUSH32(esp, eax); /* 0x310109B9: push eax */ 14747 ecx = edi; /* 0x310109BA: mov ecx, edi */ 14748 RECOMP_ICALL(0x3100E400u); /* 0x310109BC: call 0x3100e400 */ /* not lifted */ 14749 RECOMP_FLAGS_IN(); 14750 ecx = MEM32(ebp + (-0x8)); /* 0x310109C1: mov ecx, dword ptr [ebp - 8] */ 14751 /* cmp ecx, MEM32(eax) */ /* 0x310109C4: cmp ecx, dword ptr [eax] */ 14752 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 14753 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14754 _flag_k = FK_CMP; 14755 if (CMP_NE(_flag_a, _flag_b)) goto L_310109E7; /* 0x310109C6: jne 0x310109e7 */ 14756 L_310109C8: 14757 edx = ebp + (-0x1); /* 0x310109C8: lea edx, [ebp - 1] */ 14758 PUSH32(esp, edx); /* 0x310109CB: push edx */ 14759 eax = ebp + (-0x20); /* 0x310109CC: lea eax, [ebp - 0x20] */ 14760 PUSH32(esp, eax); /* 0x310109CF: push eax */ 14761 PUSH32(esp, ebx); /* 0x310109D0: push ebx */ 14762 PUSH32(esp, esi); /* 0x310109D1: push esi */ 14763 ecx = ebp + (-0x14); /* 0x310109D2: lea ecx, [ebp - 0x14] */ 14764 PUSH32(esp, ecx); /* 0x310109D5: push ecx */ 14765 ecx = edi; /* 0x310109D6: mov ecx, edi */ 14766 MEM8(ebp + (-0x1)) = (uint8_t)(1); /* 0x310109D8: mov byte ptr [ebp - 1], 1 */ 14767 RECOMP_ICALL(0x3100AB20u); /* 0x310109DC: call 0x3100ab20 */ /* not lifted */ 14768 RECOMP_FLAGS_IN(); 14769 PUSH32(esp, eax); /* 0x310109E1: push eax */ 14770 ecx = ebp + (-0x30); /* 0x310109E2: lea ecx, [ebp - 0x30] */ 14771 goto L_31010A41; /* 0x310109E5: jmp 0x31010a41 */ 14772 L_310109E7: 14773 ecx = ebp + (-0x8); /* 0x310109E7: lea ecx, [ebp - 8] */ 14774 RECOMP_ICALL(0x31010B60u); /* 0x310109EA: call 0x31010b60 */ /* not lifted */ 14775 RECOMP_FLAGS_IN(); 14776 edx = MEM32(ebp + (-0x20)); /* 0x310109EF: mov edx, dword ptr [ebp - 0x20] */ 14777 L_310109F2: 14778 eax = MEM32(ebp + (-0x8)); /* 0x310109F2: mov eax, dword ptr [ebp - 8] */ 14779 /* cmp MEM32(eax + 0xC), edx */ /* 0x310109F5: cmp dword ptr [eax + 0xc], edx */ 14780 _flag_a = (uint32_t)(MEM32(eax + 0xC)); _flag_b = (uint32_t)(edx); 14781 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14782 _flag_k = FK_CMP; 14783 if (CMP_AE(_flag_a, _flag_b)) goto L_31010A32; /* 0x310109F8: jae 0x31010a32 */ 14784 L_310109FA: 14785 ecx = ebp + (-0x2); /* 0x310109FA: lea ecx, [ebp - 2] */ 14786 PUSH32(esp, ecx); /* 0x310109FD: push ecx */ 14787 edx = ebp + (-0x20); /* 0x310109FE: lea edx, [ebp - 0x20] */ 14788 PUSH32(esp, edx); /* 0x31010A01: push edx */ 14789 PUSH32(esp, ebx); /* 0x31010A02: push ebx */ 14790 PUSH32(esp, esi); /* 0x31010A03: push esi */ 14791 eax = ebp + (-0x18); /* 0x31010A04: lea eax, [ebp - 0x18] */ 14792 PUSH32(esp, eax); /* 0x31010A07: push eax */ 14793 ecx = edi; /* 0x31010A08: mov ecx, edi */ 14794 MEM8(ebp + (-0x2)) = (uint8_t)(1); /* 0x31010A0A: mov byte ptr [ebp - 2], 1 */ 14795 RECOMP_ICALL(0x3100AB20u); /* 0x31010A0E: call 0x3100ab20 */ /* not lifted */ 14796 RECOMP_FLAGS_IN(); 14797 PUSH32(esp, eax); /* 0x31010A13: push eax */ 14798 ecx = ebp + (-0x38); /* 0x31010A14: lea ecx, [ebp - 0x38] */ 14799 RECOMP_ICALL(0x3100AB00u); /* 0x31010A17: call 0x3100ab00 */ /* not lifted */ 14800 RECOMP_FLAGS_IN(); 14801 ecx = eax; /* 0x31010A1C: mov ecx, eax */ 14802 eax = MEM32(ecx); /* 0x31010A1E: mov eax, dword ptr [ecx] */ 14803 edx = MEM32(ecx + 0x4); /* 0x31010A20: mov edx, dword ptr [ecx + 4] */ 14804 edi = POP32_VAL(esp); /* 0x31010A23: pop edi */ 14805 esi = POP32_VAL(esp); /* 0x31010A24: pop esi */ 14806 MEM32(ebp + (-0x1C)) = edx; /* 0x31010A25: mov dword ptr [ebp - 0x1c], edx */ 14807 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 14808 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14809 eax = eax + 0x10u; /* 0x31010A28: add eax, 0x10 */ 14810 _flag_k = FK_ADD; 14811 ebx = POP32_VAL(esp); /* 0x31010A2B: pop ebx */ 14812 esp = ebp; /* 0x31010A2C: mov esp, ebp */ 14813 ebp = POP32_VAL(esp); /* 0x31010A2E: pop ebp */ 14814 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31010A2F: ret 4 */ 14815 L_31010A32: 14816 eax = ebp + (-0x3); /* 0x31010A32: lea eax, [ebp - 3] */ 14817 ecx = ebp + (-0x8); /* 0x31010A35: lea ecx, [ebp - 8] */ 14818 PUSH32(esp, eax); /* 0x31010A38: push eax */ 14819 PUSH32(esp, ecx); /* 0x31010A39: push ecx */ 14820 MEM8(ebp + (-0x3)) = (uint8_t)(0); /* 0x31010A3A: mov byte ptr [ebp - 3], 0 */ 14821 ecx = ebp + (-0x40); /* 0x31010A3E: lea ecx, [ebp - 0x40] */ 14822 L_31010A41: 14823 RECOMP_ICALL(0x3100AB00u); /* 0x31010A41: call 0x3100ab00 */ /* not lifted */ 14824 RECOMP_FLAGS_IN(); 14825 edx = eax; /* 0x31010A46: mov edx, eax */ 14826 eax = MEM32(edx); /* 0x31010A48: mov eax, dword ptr [edx] */ 14827 ecx = MEM32(edx + 0x4); /* 0x31010A4A: mov ecx, dword ptr [edx + 4] */ 14828 edi = POP32_VAL(esp); /* 0x31010A4D: pop edi */ 14829 esi = POP32_VAL(esp); /* 0x31010A4E: pop esi */ 14830 MEM32(ebp + (-0x1C)) = ecx; /* 0x31010A4F: mov dword ptr [ebp - 0x1c], ecx */ 14831 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 14832 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14833 eax = eax + 0x10u; /* 0x31010A52: add eax, 0x10 */ 14834 _flag_k = FK_ADD; 14835 ebx = POP32_VAL(esp); /* 0x31010A55: pop ebx */ 14836 esp = ebp; /* 0x31010A56: mov esp, ebp */ 14837 ebp = POP32_VAL(esp); /* 0x31010A58: pop ebp */ 14838 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31010A59: ret 4 */ 14839 RECOMP_REGS_OUT(); 14840 } 14841 14842 void sub_31010A60(void) { 14843 int _fpu_cmp = 0; 14844 uint32_t _cf = 0; 14845 int _df = 1; 14846 uint32_t _flag_k = FK_NONE; 14847 uint32_t _flag_a = 0, _flag_b = 0; 14848 uint32_t _itail_tgt = 0; 14849 RECOMP_REGS_LOCALS 14850 RECOMP_ENTER(0x31010A60u); 14851 14852 L_31010A60: 14853 PUSH32(esp, ebp); /* 0x31010A60: push ebp */ 14854 ebp = esp; /* 0x31010A61: mov ebp, esp */ 14855 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 14856 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14857 esp = esp - 0x10u; /* 0x31010A63: sub esp, 0x10 */ 14858 _flag_k = FK_CMP; 14859 PUSH32(esp, ebx); /* 0x31010A66: push ebx */ 14860 ebx = ecx; /* 0x31010A67: mov ebx, ecx */ 14861 edx = MEM32(ebx + 0x4); /* 0x31010A69: mov edx, dword ptr [ebx + 4] */ 14862 ecx = MEM32(ebx + 0x8); /* 0x31010A6C: mov ecx, dword ptr [ebx + 8] */ 14863 PUSH32(esp, esi); /* 0x31010A6F: push esi */ 14864 esi = MEM32(edx + 0x4); /* 0x31010A70: mov esi, dword ptr [edx + 4] */ 14865 /* cmp esi, ecx */ /* 0x31010A73: cmp esi, ecx */ 14866 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 14867 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14868 _flag_k = FK_CMP; 14869 PUSH32(esp, edi); /* 0x31010A75: push edi */ 14870 edi = edx; /* 0x31010A76: mov edi, edx */ 14871 SET_LO8(eax, 1); /* 0x31010A78: mov al, 1 */ 14872 if (CMP_EQ(_flag_a, _flag_b)) goto L_31010A9E; /* 0x31010A7A: je 0x31010a9e */ 14873 L_31010A7C: 14874 eax = MEM32(ebp + 0xC); /* 0x31010A7C: mov eax, dword ptr [ebp + 0xc] */ 14875 eax = MEM32(eax); /* 0x31010A7F: mov eax, dword ptr [eax] */ 14876 MEM32(ebp + (-0x4)) = eax; /* 0x31010A81: mov dword ptr [ebp - 4], eax */ 14877 L_31010A84: 14878 eax = MEM32(ebp + (-0x4)); /* 0x31010A84: mov eax, dword ptr [ebp - 4] */ 14879 /* cmp eax, MEM32(esi + 0xC) */ /* 0x31010A87: cmp eax, dword ptr [esi + 0xc] */ 14880 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC)); 14881 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14882 _flag_k = FK_CMP; 14883 edi = esi; /* 0x31010A8A: mov edi, esi */ 14884 SET_LO8(eax, (CMP_B(_flag_a, _flag_b)) ? 1 : 0); /* 0x31010A8C: setb al */ 14885 /* test LO8(eax), LO8(eax) */ /* 0x31010A8F: test al, al */ 14886 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14887 _cf = 0; 14888 _flag_k = FK_NARROW(FK_TEST, 24); 14889 if (TEST_Z(_flag_a, _flag_b)) goto L_31010A97; /* 0x31010A91: je 0x31010a97 */ 14890 L_31010A93: 14891 esi = MEM32(esi); /* 0x31010A93: mov esi, dword ptr [esi] */ 14892 goto L_31010A9A; /* 0x31010A95: jmp 0x31010a9a */ 14893 L_31010A97: 14894 esi = MEM32(esi + 0x8); /* 0x31010A97: mov esi, dword ptr [esi + 8] */ 14895 L_31010A9A: 14896 /* cmp esi, ecx */ /* 0x31010A9A: cmp esi, ecx */ 14897 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 14898 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14899 _flag_k = FK_CMP; 14900 RECOMP_BACKEDGE(); 14901 if (CMP_NE(_flag_a, _flag_b)) goto L_31010A84; /* 0x31010A9C: jne 0x31010a84 */ 14902 L_31010A9E: 14903 SET_LO8(ecx, MEM8(ebx + 0xC)); /* 0x31010A9E: mov cl, byte ptr [ebx + 0xc] */ 14904 /* test LO8(ecx), LO8(ecx) */ /* 0x31010AA1: test cl, cl */ 14905 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 14906 _cf = 0; 14907 _flag_k = FK_NARROW(FK_TEST, 24); 14908 if (TEST_Z(_flag_a, _flag_b)) goto L_31010AC3; /* 0x31010AA3: je 0x31010ac3 */ 14909 L_31010AA5: 14910 ecx = MEM32(ebp + 0xC); /* 0x31010AA5: mov ecx, dword ptr [ebp + 0xc] */ 14911 PUSH32(esp, ecx); /* 0x31010AA8: push ecx */ 14912 PUSH32(esp, edi); /* 0x31010AA9: push edi */ 14913 PUSH32(esp, esi); /* 0x31010AAA: push esi */ 14914 edx = ebp + (-0x8); /* 0x31010AAB: lea edx, [ebp - 8] */ 14915 PUSH32(esp, edx); /* 0x31010AAE: push edx */ 14916 ecx = ebx; /* 0x31010AAF: mov ecx, ebx */ 14917 RECOMP_ICALL(0x3100AB20u); /* 0x31010AB1: call 0x3100ab20 */ /* not lifted */ 14918 RECOMP_FLAGS_IN(); 14919 eax = MEM32(eax); /* 0x31010AB6: mov eax, dword ptr [eax] */ 14920 MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x31010AB8: mov byte ptr [ebp - 0xc], 1 */ 14921 ecx = eax; /* 0x31010ABC: mov ecx, eax */ 14922 eax = MEM32(ebp + (-0xC)); /* 0x31010ABE: mov eax, dword ptr [ebp - 0xc] */ 14923 goto L_31010B25; /* 0x31010AC1: jmp 0x31010b25 */ 14924 L_31010AC3: 14925 /* test LO8(eax), LO8(eax) */ /* 0x31010AC3: test al, al */ 14926 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14927 _cf = 0; 14928 _flag_k = FK_NARROW(FK_TEST, 24); 14929 ecx = edi; /* 0x31010AC5: mov ecx, edi */ 14930 MEM32(ebp + (-0x4)) = ecx; /* 0x31010AC7: mov dword ptr [ebp - 4], ecx */ 14931 if (TEST_Z(_flag_a, _flag_b)) goto L_31010AF9; /* 0x31010ACA: je 0x31010af9 */ 14932 L_31010ACC: 14933 /* cmp edi, MEM32(edx) */ /* 0x31010ACC: cmp edi, dword ptr [edx] */ 14934 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(edx)); 14935 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14936 _flag_k = FK_CMP; 14937 if (CMP_NE(_flag_a, _flag_b)) goto L_31010AEE; /* 0x31010ACE: jne 0x31010aee */ 14938 L_31010AD0: 14939 eax = MEM32(ebp + 0xC); /* 0x31010AD0: mov eax, dword ptr [ebp + 0xc] */ 14940 PUSH32(esp, eax); /* 0x31010AD3: push eax */ 14941 PUSH32(esp, edi); /* 0x31010AD4: push edi */ 14942 PUSH32(esp, esi); /* 0x31010AD5: push esi */ 14943 ecx = ebp + (-0xC); /* 0x31010AD6: lea ecx, [ebp - 0xc] */ 14944 PUSH32(esp, ecx); /* 0x31010AD9: push ecx */ 14945 ecx = ebx; /* 0x31010ADA: mov ecx, ebx */ 14946 RECOMP_ICALL(0x3100AB20u); /* 0x31010ADC: call 0x3100ab20 */ /* not lifted */ 14947 RECOMP_FLAGS_IN(); 14948 eax = MEM32(eax); /* 0x31010AE1: mov eax, dword ptr [eax] */ 14949 MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x31010AE3: mov byte ptr [ebp - 0xc], 1 */ 14950 ecx = eax; /* 0x31010AE7: mov ecx, eax */ 14951 eax = MEM32(ebp + (-0xC)); /* 0x31010AE9: mov eax, dword ptr [ebp - 0xc] */ 14952 goto L_31010B25; /* 0x31010AEC: jmp 0x31010b25 */ 14953 L_31010AEE: 14954 ecx = ebp + (-0x4); /* 0x31010AEE: lea ecx, [ebp - 4] */ 14955 RECOMP_ICALL(0x31010B60u); /* 0x31010AF1: call 0x31010b60 */ /* not lifted */ 14956 RECOMP_FLAGS_IN(); 14957 ecx = MEM32(ebp + (-0x4)); /* 0x31010AF6: mov ecx, dword ptr [ebp - 4] */ 14958 L_31010AF9: 14959 edx = MEM32(ecx + 0xC); /* 0x31010AF9: mov edx, dword ptr [ecx + 0xc] */ 14960 eax = MEM32(ebp + 0xC); /* 0x31010AFC: mov eax, dword ptr [ebp + 0xc] */ 14961 /* cmp edx, MEM32(eax) */ /* 0x31010AFF: cmp edx, dword ptr [eax] */ 14962 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax)); 14963 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14964 _flag_k = FK_CMP; 14965 if (CMP_AE(_flag_a, _flag_b)) goto L_31010B1E; /* 0x31010B01: jae 0x31010b1e */ 14966 L_31010B03: 14967 PUSH32(esp, eax); /* 0x31010B03: push eax */ 14968 PUSH32(esp, edi); /* 0x31010B04: push edi */ 14969 PUSH32(esp, esi); /* 0x31010B05: push esi */ 14970 eax = ebp + 0xC; /* 0x31010B06: lea eax, [ebp + 0xc] */ 14971 PUSH32(esp, eax); /* 0x31010B09: push eax */ 14972 ecx = ebx; /* 0x31010B0A: mov ecx, ebx */ 14973 RECOMP_ICALL(0x3100AB20u); /* 0x31010B0C: call 0x3100ab20 */ /* not lifted */ 14974 RECOMP_FLAGS_IN(); 14975 eax = MEM32(eax); /* 0x31010B11: mov eax, dword ptr [eax] */ 14976 MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x31010B13: mov byte ptr [ebp - 0xc], 1 */ 14977 ecx = eax; /* 0x31010B17: mov ecx, eax */ 14978 eax = MEM32(ebp + (-0xC)); /* 0x31010B19: mov eax, dword ptr [ebp - 0xc] */ 14979 goto L_31010B25; /* 0x31010B1C: jmp 0x31010b25 */ 14980 L_31010B1E: 14981 MEM8(ebp + (-0xC)) = (uint8_t)(0); /* 0x31010B1E: mov byte ptr [ebp - 0xc], 0 */ 14982 eax = MEM32(ebp + (-0xC)); /* 0x31010B22: mov eax, dword ptr [ebp - 0xc] */ 14983 L_31010B25: 14984 MEM8(ebp + (-0xC)) = (uint8_t)(LO8(eax)); /* 0x31010B25: mov byte ptr [ebp - 0xc], al */ 14985 eax = MEM32(ebp + 0x8); /* 0x31010B28: mov eax, dword ptr [ebp + 8] */ 14986 edi = POP32_VAL(esp); /* 0x31010B2B: pop edi */ 14987 MEM32(eax) = ecx; /* 0x31010B2C: mov dword ptr [eax], ecx */ 14988 ecx = MEM32(ebp + (-0xC)); /* 0x31010B2E: mov ecx, dword ptr [ebp - 0xc] */ 14989 esi = POP32_VAL(esp); /* 0x31010B31: pop esi */ 14990 MEM32(eax + 0x4) = ecx; /* 0x31010B32: mov dword ptr [eax + 4], ecx */ 14991 ebx = POP32_VAL(esp); /* 0x31010B35: pop ebx */ 14992 esp = ebp; /* 0x31010B36: mov esp, ebp */ 14993 ebp = POP32_VAL(esp); /* 0x31010B38: pop ebp */ 14994 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x31010B39: ret 8 */ 14995 RECOMP_REGS_OUT(); 14996 } 14997 14998 void sub_31010B40(void) { 14999 int _fpu_cmp = 0; 15000 uint32_t _cf = 0; 15001 int _df = 1; 15002 uint32_t _flag_k = FK_NONE; 15003 uint32_t _flag_a = 0, _flag_b = 0; 15004 uint32_t _itail_tgt = 0; 15005 RECOMP_REGS_LOCALS 15006 RECOMP_ENTER(0x31010B40u); 15007 15008 L_31010B40: 15009 PUSH32(esp, ebp); /* 0x31010B40: push ebp */ 15010 ebp = esp; /* 0x31010B41: mov ebp, esp */ 15011 eax = ecx; /* 0x31010B43: mov eax, ecx */ 15012 ecx = MEM32(ebp + 0x8); /* 0x31010B45: mov ecx, dword ptr [ebp + 8] */ 15013 edx = MEM32(ecx); /* 0x31010B48: mov edx, dword ptr [ecx] */ 15014 ecx = MEM32(ebp + 0xC); /* 0x31010B4A: mov ecx, dword ptr [ebp + 0xc] */ 15015 MEM32(eax) = edx; /* 0x31010B4D: mov dword ptr [eax], edx */ 15016 edx = MEM32(ecx); /* 0x31010B4F: mov edx, dword ptr [ecx] */ 15017 MEM32(eax + 0x4) = edx; /* 0x31010B51: mov dword ptr [eax + 4], edx */ 15018 ebp = POP32_VAL(esp); /* 0x31010B54: pop ebp */ 15019 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x31010B55: ret 8 */ 15020 RECOMP_REGS_OUT(); 15021 } 15022 15023 void sub_31010B60(void) { 15024 int _fpu_cmp = 0; 15025 uint32_t _cf = 0; 15026 int _df = 1; 15027 uint32_t _flag_k = FK_NONE; 15028 uint32_t _flag_a = 0, _flag_b = 0; 15029 uint32_t _itail_tgt = 0; 15030 RECOMP_REGS_LOCALS 15031 RECOMP_ENTER(0x31010B60u); 15032 15033 L_31010B60: 15034 eax = MEM32(ecx); /* 0x31010B60: mov eax, dword ptr [ecx] */ 15035 SET_LO8(edx, MEM8(eax + 0x14)); /* 0x31010B62: mov dl, byte ptr [eax + 0x14] */ 15036 /* test LO8(edx), LO8(edx) */ /* 0x31010B65: test dl, dl */ 15037 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 15038 _cf = 0; 15039 _flag_k = FK_NARROW(FK_TEST, 24); 15040 PUSH32(esp, ebx); /* 0x31010B67: push ebx */ 15041 if (TEST_NZ(_flag_a, _flag_b)) goto L_31010B79; /* 0x31010B68: jne 0x31010b79 */ 15042 L_31010B6A: 15043 edx = MEM32(eax + 0x4); /* 0x31010B6A: mov edx, dword ptr [eax + 4] */ 15044 /* cmp MEM32(edx + 0x4), eax */ /* 0x31010B6D: cmp dword ptr [edx + 4], eax */ 15045 _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(eax); 15046 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15047 _flag_k = FK_CMP; 15048 if (CMP_NE(_flag_a, _flag_b)) goto L_31010B79; /* 0x31010B70: jne 0x31010b79 */ 15049 L_31010B72: 15050 eax = MEM32(eax + 0x8); /* 0x31010B72: mov eax, dword ptr [eax + 8] */ 15051 MEM32(ecx) = eax; /* 0x31010B75: mov dword ptr [ecx], eax */ 15052 ebx = POP32_VAL(esp); /* 0x31010B77: pop ebx */ 15053 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31010B78: ret */ 15054 L_31010B79: 15055 edx = MEM32(eax); /* 0x31010B79: mov edx, dword ptr [eax] */ 15056 SET_LO8(ebx, MEM8(edx + 0x15)); /* 0x31010B7B: mov bl, byte ptr [edx + 0x15] */ 15057 /* test LO8(ebx), LO8(ebx) */ /* 0x31010B7E: test bl, bl */ 15058 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15059 _cf = 0; 15060 _flag_k = FK_NARROW(FK_TEST, 24); 15061 if (TEST_NZ(_flag_a, _flag_b)) goto L_31010B9C; /* 0x31010B80: jne 0x31010b9c */ 15062 L_31010B82: 15063 eax = MEM32(edx + 0x8); /* 0x31010B82: mov eax, dword ptr [edx + 8] */ 15064 SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x31010B85: mov bl, byte ptr [eax + 0x15] */ 15065 /* test LO8(ebx), LO8(ebx) */ /* 0x31010B88: test bl, bl */ 15066 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15067 _cf = 0; 15068 _flag_k = FK_NARROW(FK_TEST, 24); 15069 if (TEST_NZ(_flag_a, _flag_b)) goto L_31010B98; /* 0x31010B8A: jne 0x31010b98 */ 15070 L_31010B8C: 15071 edx = eax; /* 0x31010B8C: mov edx, eax */ 15072 eax = MEM32(edx + 0x8); /* 0x31010B8E: mov eax, dword ptr [edx + 8] */ 15073 SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x31010B91: mov bl, byte ptr [eax + 0x15] */ 15074 /* test LO8(ebx), LO8(ebx) */ /* 0x31010B94: test bl, bl */ 15075 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15076 _cf = 0; 15077 _flag_k = FK_NARROW(FK_TEST, 24); 15078 RECOMP_BACKEDGE(); 15079 if (TEST_Z(_flag_a, _flag_b)) goto L_31010B8C; /* 0x31010B96: je 0x31010b8c */ 15080 L_31010B98: 15081 MEM32(ecx) = edx; /* 0x31010B98: mov dword ptr [ecx], edx */ 15082 ebx = POP32_VAL(esp); /* 0x31010B9A: pop ebx */ 15083 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31010B9B: ret */ 15084 L_31010B9C: 15085 eax = MEM32(eax + 0x4); /* 0x31010B9C: mov eax, dword ptr [eax + 4] */ 15086 edx = MEM32(ecx); /* 0x31010B9F: mov edx, dword ptr [ecx] */ 15087 /* cmp edx, MEM32(eax) */ /* 0x31010BA1: cmp edx, dword ptr [eax] */ 15088 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax)); 15089 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15090 _flag_k = FK_CMP; 15091 if (CMP_NE(_flag_a, _flag_b)) goto L_31010BB0; /* 0x31010BA3: jne 0x31010bb0 */ 15092 L_31010BA5: 15093 MEM32(ecx) = eax; /* 0x31010BA5: mov dword ptr [ecx], eax */ 15094 eax = MEM32(eax + 0x4); /* 0x31010BA7: mov eax, dword ptr [eax + 4] */ 15095 edx = MEM32(ecx); /* 0x31010BAA: mov edx, dword ptr [ecx] */ 15096 /* cmp edx, MEM32(eax) */ /* 0x31010BAC: cmp edx, dword ptr [eax] */ 15097 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax)); 15098 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15099 _flag_k = FK_CMP; 15100 RECOMP_BACKEDGE(); 15101 if (CMP_EQ(_flag_a, _flag_b)) goto L_31010BA5; /* 0x31010BAE: je 0x31010ba5 */ 15102 L_31010BB0: 15103 MEM32(ecx) = eax; /* 0x31010BB0: mov dword ptr [ecx], eax */ 15104 ebx = POP32_VAL(esp); /* 0x31010BB2: pop ebx */ 15105 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31010BB3: ret */ 15106 RECOMP_REGS_OUT(); 15107 } 15108 15109 void sub_31010BC0(void) { 15110 int _fpu_cmp = 0; 15111 uint32_t _cf = 0; 15112 int _df = 1; 15113 uint32_t _flag_k = FK_NONE; 15114 uint32_t _flag_a = 0, _flag_b = 0; 15115 uint32_t _itail_tgt = 0; 15116 RECOMP_REGS_LOCALS 15117 RECOMP_ENTER(0x31010BC0u); 15118 15119 L_31010BC0: 15120 PUSH32(esp, ebp); /* 0x31010BC0: push ebp */ 15121 ebp = esp; /* 0x31010BC1: mov ebp, esp */ 15122 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x190u); 15123 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15124 esp = esp - 0x190u; /* 0x31010BC3: sub esp, 0x190 */ 15125 _flag_k = FK_CMP; 15126 PUSH32(esp, esi); /* 0x31010BC9: push esi */ 15127 esi = ecx; /* 0x31010BCA: mov esi, ecx */ 15128 MEM32(esi + 0x208) = 0; /* 0x31010BCC: mov dword ptr [esi + 0x208], 0 */ 15129 MEM32(esi) = 0x31048808u; /* 0x31010BD6: mov dword ptr [esi], 0x31048808 */ 15130 SET_LO8(eax, MEM8(0x31057E68)); /* 0x31010BDC: mov al, byte ptr [0x31057e68] */ 15131 /* test LO8(eax), LO8(eax) */ /* 0x31010BE1: test al, al */ 15132 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 15133 _cf = 0; 15134 _flag_k = FK_NARROW(FK_TEST, 24); 15135 if (TEST_NZ(_flag_a, _flag_b)) goto L_31010C11; /* 0x31010BE3: jne 0x31010c11 */ 15136 L_31010BE5: 15137 eax = ebp + (-0x190); /* 0x31010BE5: lea eax, [ebp - 0x190] */ 15138 PUSH32(esp, eax); /* 0x31010BEB: push eax */ 15139 PUSH32(esp, 0x202u); /* 0x31010BEC: push 0x202 */ 15140 MEM8(0x31057E68) = (uint8_t)(1); /* 0x31010BF1: mov byte ptr [0x31057e68], 1 */ 15141 RECOMP_ICALL(MEM32(0x31048278)); /* 0x31010BF8: call dword ptr [0x31048278] */ 15142 RECOMP_FLAGS_IN(); 15143 /* test eax, eax */ /* 0x31010BFE: test eax, eax */ 15144 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 15145 _cf = 0; 15146 _flag_k = FK_TEST; 15147 if (TEST_Z(_flag_a, _flag_b)) goto L_31010C11; /* 0x31010C00: je 0x31010c11 */ 15148 L_31010C02: 15149 PUSH32(esp, 1); /* 0x31010C02: push 1 */ 15150 PUSH32(esp, 0x31052504u); /* 0x31010C04: push 0x31052504 */ 15151 RECOMP_ICALL(0x310013E0u); /* 0x31010C09: call 0x310013e0 */ /* not lifted */ 15152 RECOMP_FLAGS_IN(); 15153 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 15154 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15155 esp = esp + 8; /* 0x31010C0E: add esp, 8 */ 15156 _flag_k = FK_ADD; 15157 L_31010C11: 15158 PUSH32(esp, 0); /* 0x31010C11: push 0 */ 15159 PUSH32(esp, 1); /* 0x31010C13: push 1 */ 15160 PUSH32(esp, 2); /* 0x31010C15: push 2 */ 15161 RECOMP_ICALL(MEM32(0x31048260)); /* 0x31010C17: call dword ptr [0x31048260] */ 15162 RECOMP_FLAGS_IN(); 15163 MEM32(esi + 0x4) = eax; /* 0x31010C1D: mov dword ptr [esi + 4], eax */ 15164 eax = esi; /* 0x31010C20: mov eax, esi */ 15165 esi = POP32_VAL(esp); /* 0x31010C22: pop esi */ 15166 esp = ebp; /* 0x31010C23: mov esp, ebp */ 15167 ebp = POP32_VAL(esp); /* 0x31010C25: pop ebp */ 15168 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31010C26: ret */ 15169 RECOMP_REGS_OUT(); 15170 } 15171 15172 void sub_31010C30(void) { 15173 int _fpu_cmp = 0; 15174 uint32_t _cf = 0; 15175 int _df = 1; 15176 uint32_t _flag_k = FK_NONE; 15177 uint32_t _flag_a = 0, _flag_b = 0; 15178 uint32_t _itail_tgt = 0; 15179 RECOMP_REGS_LOCALS 15180 RECOMP_ENTER(0x31010C30u); 15181 15182 L_31010C30: 15183 PUSH32(esp, ebp); /* 0x31010C30: push ebp */ 15184 ebp = esp; /* 0x31010C31: mov ebp, esp */ 15185 PUSH32(esp, esi); /* 0x31010C33: push esi */ 15186 esi = ecx; /* 0x31010C34: mov esi, ecx */ 15187 RECOMP_ICALL(0x31010C60u); /* 0x31010C36: call 0x31010c60 */ /* not lifted */ 15188 RECOMP_FLAGS_IN(); 15189 /* test MEM8(ebp + 0x8), 1 */ /* 0x31010C3B: test byte ptr [ebp + 8], 1 */ 15190 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 15191 _cf = 0; 15192 _flag_k = FK_NARROW(FK_TEST, 24); 15193 if (TEST_Z(_flag_a, _flag_b)) goto L_31010C4A; /* 0x31010C3F: je 0x31010c4a */ 15194 L_31010C41: 15195 PUSH32(esp, esi); /* 0x31010C41: push esi */ 15196 RECOMP_ICALL(0x31046858u); /* 0x31010C42: call 0x31046858 */ /* not lifted */ 15197 RECOMP_FLAGS_IN(); 15198 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15199 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15200 esp = esp + 4; /* 0x31010C47: add esp, 4 */ 15201 _flag_k = FK_ADD; 15202 L_31010C4A: 15203 eax = esi; /* 0x31010C4A: mov eax, esi */ 15204 esi = POP32_VAL(esp); /* 0x31010C4C: pop esi */ 15205 ebp = POP32_VAL(esp); /* 0x31010C4D: pop ebp */ 15206 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31010C4E: ret 4 */ 15207 RECOMP_REGS_OUT(); 15208 } 15209 15210 void sub_31010C60(void) { 15211 int _fpu_cmp = 0; 15212 uint32_t _cf = 0; 15213 int _df = 1; 15214 uint32_t _flag_k = FK_NONE; 15215 uint32_t _flag_a = 0, _flag_b = 0; 15216 uint32_t _itail_tgt = 0; 15217 RECOMP_REGS_LOCALS 15218 RECOMP_ENTER(0x31010C60u); 15219 15220 L_31010C60: 15221 eax = MEM32(ecx + 0x4); /* 0x31010C60: mov eax, dword ptr [ecx + 4] */ 15222 PUSH32(esp, eax); /* 0x31010C63: push eax */ 15223 MEM32(ecx) = 0x31048808u; /* 0x31010C64: mov dword ptr [ecx], 0x31048808 */ 15224 RECOMP_ICALL(MEM32(0x3104827C)); /* 0x31010C6A: call dword ptr [0x3104827c] */ 15225 RECOMP_FLAGS_IN(); 15226 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31010C70: ret */ 15227 RECOMP_REGS_OUT(); 15228 } 15229 15230 void sub_31010C80(void) { 15231 int _fpu_cmp = 0; 15232 uint32_t _cf = 0; 15233 int _df = 1; 15234 uint32_t _flag_k = FK_NONE; 15235 uint32_t _flag_a = 0, _flag_b = 0; 15236 uint32_t _itail_tgt = 0; 15237 RECOMP_REGS_LOCALS 15238 RECOMP_ENTER(0x31010C80u); 15239 15240 L_31010C80: 15241 PUSH32(esp, esi); /* 0x31010C80: push esi */ 15242 esi = ecx; /* 0x31010C81: mov esi, ecx */ 15243 eax = MEM32(esi + 0x4); /* 0x31010C83: mov eax, dword ptr [esi + 4] */ 15244 PUSH32(esp, eax); /* 0x31010C86: push eax */ 15245 RECOMP_ICALL(MEM32(0x3104827C)); /* 0x31010C87: call dword ptr [0x3104827c] */ 15246 RECOMP_FLAGS_IN(); 15247 PUSH32(esp, 0); /* 0x31010C8D: push 0 */ 15248 PUSH32(esp, 1); /* 0x31010C8F: push 1 */ 15249 PUSH32(esp, 2); /* 0x31010C91: push 2 */ 15250 RECOMP_ICALL(MEM32(0x31048260)); /* 0x31010C93: call dword ptr [0x31048260] */ 15251 RECOMP_FLAGS_IN(); 15252 MEM32(esi + 0x4) = eax; /* 0x31010C99: mov dword ptr [esi + 4], eax */ 15253 esi = POP32_VAL(esp); /* 0x31010C9C: pop esi */ 15254 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31010C9D: ret */ 15255 RECOMP_REGS_OUT(); 15256 } 15257 15258 void sub_31010CA0(void) { 15259 int _fpu_cmp = 0; 15260 uint32_t _cf = 0; 15261 int _df = 1; 15262 uint32_t _flag_k = FK_NONE; 15263 uint32_t _flag_a = 0, _flag_b = 0; 15264 uint32_t _itail_tgt = 0; 15265 RECOMP_REGS_LOCALS 15266 RECOMP_ENTER(0x31010CA0u); 15267 15268 L_31010CA0: 15269 PUSH32(esp, ebp); /* 0x31010CA0: push ebp */ 15270 ebp = esp; /* 0x31010CA1: mov ebp, esp */ 15271 PUSH32(esp, ecx); /* 0x31010CA3: push ecx */ 15272 PUSH32(esp, ebx); /* 0x31010CA4: push ebx */ 15273 ebx = MEM32(ebp + 0x8); /* 0x31010CA5: mov ebx, dword ptr [ebp + 8] */ 15274 eax = MEM32(ebx); /* 0x31010CA8: mov eax, dword ptr [ebx] */ 15275 PUSH32(esp, esi); /* 0x31010CAA: push esi */ 15276 MEM32(ebp + (-0x4)) = ecx; /* 0x31010CAB: mov dword ptr [ebp - 4], ecx */ 15277 PUSH32(esp, edi); /* 0x31010CAE: push edi */ 15278 ecx = ebx; /* 0x31010CAF: mov ecx, ebx */ 15279 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x31010CB1: call dword ptr [eax + 4] */ 15280 RECOMP_FLAGS_IN(); 15281 esi = eax; /* 0x31010CB4: mov esi, eax */ 15282 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 15283 esi = esi - 1; /* 0x31010CB6: dec esi */ 15284 _flag_k = FK_DEC; 15285 _flag_a = (uint32_t)((esi | 3)); _flag_b = (uint32_t)((esi | 3)); 15286 esi = esi | 3; /* 0x31010CB7: or esi, 3 */ 15287 _cf = 0; 15288 _flag_k = FK_TEST; 15289 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(9); 15290 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15291 esi = esi + 9; /* 0x31010CBA: add esi, 9 */ 15292 _flag_k = FK_ADD; 15293 PUSH32(esp, esi); /* 0x31010CBD: push esi */ 15294 RECOMP_ICALL(0x310468DAu); /* 0x31010CBE: call 0x310468da */ /* not lifted */ 15295 RECOMP_FLAGS_IN(); 15296 edi = eax; /* 0x31010CC3: mov edi, eax */ 15297 MEM32(edi + esi + (-0x4)) = 0; /* 0x31010CC5: mov dword ptr [edi + esi - 4], 0 */ 15298 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15299 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15300 esp = esp + 4; /* 0x31010CCD: add esp, 4 */ 15301 _flag_k = FK_ADD; 15302 eax = edi + 0x8; /* 0x31010CD0: lea eax, [edi + 8] */ 15303 MEM32(edi) = esi; /* 0x31010CD3: mov dword ptr [edi], esi */ 15304 edx = MEM32(ebx); /* 0x31010CD5: mov edx, dword ptr [ebx] */ 15305 PUSH32(esp, eax); /* 0x31010CD7: push eax */ 15306 ecx = ebx; /* 0x31010CD8: mov ecx, ebx */ 15307 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x31010CDA: call dword ptr [edx + 8] */ 15308 RECOMP_FLAGS_IN(); 15309 PUSH32(esp, esi); /* 0x31010CDD: push esi */ 15310 PUSH32(esp, edi); /* 0x31010CDE: push edi */ 15311 RECOMP_ICALL(0x310110B0u); /* 0x31010CDF: call 0x310110b0 */ /* not lifted */ 15312 RECOMP_FLAGS_IN(); 15313 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 15314 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15315 esp = esp + 8; /* 0x31010CE4: add esp, 8 */ 15316 _flag_k = FK_ADD; 15317 MEM32(edi + 0x4) = eax; /* 0x31010CE7: mov dword ptr [edi + 4], eax */ 15318 MEM8(ebp + 0xB) = (uint8_t)(1); /* 0x31010CEA: mov byte ptr [ebp + 0xb], 1 */ 15319 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 15320 ebx = 0; /* 0x31010CEE: xor ebx, ebx */ 15321 _cf = 0; 15322 _flag_k = FK_TEST; 15323 L_31010CF0: 15324 eax = MEM32(ebp + (-0x4)); /* 0x31010CF0: mov eax, dword ptr [ebp - 4] */ 15325 PUSH32(esp, 0); /* 0x31010CF3: push 0 */ 15326 ecx = esi; /* 0x31010CF5: mov ecx, esi */ 15327 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 15328 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15329 ecx = ecx - ebx; /* 0x31010CF7: sub ecx, ebx */ 15330 _flag_k = FK_CMP; 15331 PUSH32(esp, ecx); /* 0x31010CF9: push ecx */ 15332 ecx = MEM32(eax + 0x4); /* 0x31010CFA: mov ecx, dword ptr [eax + 4] */ 15333 edx = ebx + edi; /* 0x31010CFD: lea edx, [ebx + edi] */ 15334 PUSH32(esp, edx); /* 0x31010D00: push edx */ 15335 PUSH32(esp, ecx); /* 0x31010D01: push ecx */ 15336 RECOMP_ICALL(MEM32(0x31048274)); /* 0x31010D02: call dword ptr [0x31048274] */ 15337 RECOMP_FLAGS_IN(); 15338 /* cmp eax, 0xFFFFFFFFu */ /* 0x31010D08: cmp eax, -1 */ 15339 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 15340 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15341 _flag_k = FK_CMP; 15342 if (CMP_NE(_flag_a, _flag_b)) goto L_31010D1D; /* 0x31010D0B: jne 0x31010d1d */ 15343 L_31010D0D: 15344 ecx = MEM32(ebp + (-0x4)); /* 0x31010D0D: mov ecx, dword ptr [ebp - 4] */ 15345 edx = MEM32(ecx); /* 0x31010D10: mov edx, dword ptr [ecx] */ 15346 PUSH32(esp, 1); /* 0x31010D12: push 1 */ 15347 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x31010D14: call dword ptr [edx + 8] */ 15348 RECOMP_FLAGS_IN(); 15349 /* test LO8(eax), LO8(eax) */ /* 0x31010D17: test al, al */ 15350 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 15351 _cf = 0; 15352 _flag_k = FK_NARROW(FK_TEST, 24); 15353 if (TEST_NZ(_flag_a, _flag_b)) goto L_31010D25; /* 0x31010D19: jne 0x31010d25 */ 15354 L_31010D1B: 15355 goto L_31010D1F; /* 0x31010D1B: jmp 0x31010d1f */ 15356 L_31010D1D: 15357 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 15358 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15359 ebx = ebx + eax; /* 0x31010D1D: add ebx, eax */ 15360 _flag_k = FK_ADD; 15361 L_31010D1F: 15362 /* cmp ebx, esi */ /* 0x31010D1F: cmp ebx, esi */ 15363 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 15364 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15365 _flag_k = FK_CMP; 15366 if (CMP_EQ(_flag_a, _flag_b)) goto L_31010D3B; /* 0x31010D21: je 0x31010d3b */ 15367 L_31010D23: 15368 RECOMP_BACKEDGE(); 15369 goto L_31010CF0; /* 0x31010D23: jmp 0x31010cf0 */ 15370 L_31010D25: 15371 PUSH32(esp, edi); /* 0x31010D25: push edi */ 15372 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 15373 SET_LO8(ebx, 0); /* 0x31010D26: xor bl, bl */ 15374 _cf = 0; 15375 _flag_k = FK_NARROW(FK_TEST, 24); 15376 RECOMP_ICALL(0x31046858u); /* 0x31010D28: call 0x31046858 */ /* not lifted */ 15377 RECOMP_FLAGS_IN(); 15378 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15379 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15380 esp = esp + 4; /* 0x31010D2D: add esp, 4 */ 15381 _flag_k = FK_ADD; 15382 edi = POP32_VAL(esp); /* 0x31010D30: pop edi */ 15383 esi = POP32_VAL(esp); /* 0x31010D31: pop esi */ 15384 SET_LO8(eax, LO8(ebx)); /* 0x31010D32: mov al, bl */ 15385 ebx = POP32_VAL(esp); /* 0x31010D34: pop ebx */ 15386 esp = ebp; /* 0x31010D35: mov esp, ebp */ 15387 ebp = POP32_VAL(esp); /* 0x31010D37: pop ebp */ 15388 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31010D38: ret 4 */ 15389 L_31010D3B: 15390 SET_LO8(ebx, MEM8(ebp + 0xB)); /* 0x31010D3B: mov bl, byte ptr [ebp + 0xb] */ 15391 PUSH32(esp, edi); /* 0x31010D3E: push edi */ 15392 RECOMP_ICALL(0x31046858u); /* 0x31010D3F: call 0x31046858 */ /* not lifted */ 15393 RECOMP_FLAGS_IN(); 15394 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15395 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15396 esp = esp + 4; /* 0x31010D44: add esp, 4 */ 15397 _flag_k = FK_ADD; 15398 edi = POP32_VAL(esp); /* 0x31010D47: pop edi */ 15399 esi = POP32_VAL(esp); /* 0x31010D48: pop esi */ 15400 SET_LO8(eax, LO8(ebx)); /* 0x31010D49: mov al, bl */ 15401 ebx = POP32_VAL(esp); /* 0x31010D4B: pop ebx */ 15402 esp = ebp; /* 0x31010D4C: mov esp, ebp */ 15403 ebp = POP32_VAL(esp); /* 0x31010D4E: pop ebp */ 15404 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31010D4F: ret 4 */ 15405 RECOMP_REGS_OUT(); 15406 } 15407 15408 void sub_31010D60(void) { 15409 int _fpu_cmp = 0; 15410 uint32_t _cf = 0; 15411 int _df = 1; 15412 uint32_t _flag_k = FK_NONE; 15413 uint32_t _flag_a = 0, _flag_b = 0; 15414 uint32_t _itail_tgt = 0; 15415 RECOMP_REGS_LOCALS 15416 RECOMP_ENTER(0x31010D60u); 15417 15418 L_31010D60: 15419 PUSH32(esp, ebp); /* 0x31010D60: push ebp */ 15420 ebp = esp; /* 0x31010D61: mov ebp, esp */ 15421 PUSH32(esp, 0xFFFFFFFFu); /* 0x31010D63: push -1 */ 15422 PUSH32(esp, 0x31047C21u); /* 0x31010D65: push 0x31047c21 */ 15423 eax = MEM32(FS_BASE + (0)); /* 0x31010D6A: mov eax, dword ptr fs:[0] */ 15424 PUSH32(esp, eax); /* 0x31010D70: push eax */ 15425 MEM32(FS_BASE + (0)) = esp; /* 0x31010D71: mov dword ptr fs:[0], esp */ 15426 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x54u); 15427 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15428 esp = esp - 0x54u; /* 0x31010D78: sub esp, 0x54 */ 15429 _flag_k = FK_CMP; 15430 PUSH32(esp, ebx); /* 0x31010D7B: push ebx */ 15431 PUSH32(esp, esi); /* 0x31010D7C: push esi */ 15432 PUSH32(esp, edi); /* 0x31010D7D: push edi */ 15433 MEM32(ebp + (-0x10)) = ecx; /* 0x31010D7E: mov dword ptr [ebp - 0x10], ecx */ 15434 PUSH32(esp, 0xFFFFFFFFu); /* 0x31010D81: push -1 */ 15435 ecx = ebp + (-0x60); /* 0x31010D83: lea ecx, [ebp - 0x60] */ 15436 RECOMP_ICALL(MEM32(0x310482C8)); /* 0x31010D86: call dword ptr [0x310482c8] */ 15437 RECOMP_FLAGS_IN(); 15438 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x31010D8C: mov al, byte ptr [ebp + 0xb] */ 15439 PUSH32(esp, 0); /* 0x31010D8F: push 0 */ 15440 ecx = ebp + (-0x20); /* 0x31010D91: lea ecx, [ebp - 0x20] */ 15441 MEM32(ebp + (-0x4)) = 0; /* 0x31010D94: mov dword ptr [ebp - 4], 0 */ 15442 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x31010D9B: mov byte ptr [ebp - 0x20], al */ 15443 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x31010D9E: call dword ptr [0x310480d4] */ 15444 RECOMP_FLAGS_IN(); 15445 esi = MEM32(ebp + 0x8); /* 0x31010DA4: mov esi, dword ptr [ebp + 8] */ 15446 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 15447 ecx = ecx | 0xFFFFFFFFu; /* 0x31010DA7: or ecx, 0xffffffff */ 15448 _cf = 0; 15449 _flag_k = FK_TEST; 15450 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 15451 eax = 0; /* 0x31010DAA: xor eax, eax */ 15452 _cf = 0; 15453 _flag_k = FK_TEST; 15454 edi = esi; /* 0x31010DAC: mov edi, esi */ 15455 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; } /* 0x31010DAE: repne scasb al, byte ptr es:[edi] */ 15456 ecx = ~ecx; /* 0x31010DB0: not ecx */ 15457 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 15458 ecx = ecx - 1; /* 0x31010DB2: dec ecx */ 15459 _flag_k = FK_DEC; 15460 ebx = ecx; /* 0x31010DB3: mov ebx, ecx */ 15461 PUSH32(esp, 1); /* 0x31010DB5: push 1 */ 15462 PUSH32(esp, ebx); /* 0x31010DB7: push ebx */ 15463 ecx = ebp + (-0x20); /* 0x31010DB8: lea ecx, [ebp - 0x20] */ 15464 RECOMP_ICALL(MEM32(0x31048070)); /* 0x31010DBB: call dword ptr [0x31048070] */ 15465 RECOMP_FLAGS_IN(); 15466 /* test LO8(eax), LO8(eax) */ /* 0x31010DC1: test al, al */ 15467 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 15468 _cf = 0; 15469 _flag_k = FK_NARROW(FK_TEST, 24); 15470 if (TEST_Z(_flag_a, _flag_b)) goto L_31010DE2; /* 0x31010DC3: je 0x31010de2 */ 15471 L_31010DC5: 15472 edi = MEM32(ebp + (-0x1C)); /* 0x31010DC5: mov edi, dword ptr [ebp - 0x1c] */ 15473 ecx = ebx; /* 0x31010DC8: mov ecx, ebx */ 15474 edx = ecx; /* 0x31010DCA: mov edx, ecx */ 15475 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x31010DCC: shr ecx, 2 */ 15476 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15477 ecx = ecx >> 2u; /* 0x31010DCC: shr ecx, 2 */ 15478 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x31010DCF: 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; } 15479 ecx = edx; /* 0x31010DD1: mov ecx, edx */ 15480 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 15481 ecx = ecx & 3; /* 0x31010DD3: and ecx, 3 */ 15482 _cf = 0; 15483 _flag_k = FK_TEST; 15484 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x31010DD6: 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; } 15485 eax = MEM32(ebp + (-0x1C)); /* 0x31010DD8: mov eax, dword ptr [ebp - 0x1c] */ 15486 MEM32(ebp + (-0x18)) = ebx; /* 0x31010DDB: mov dword ptr [ebp - 0x18], ebx */ 15487 MEM8(eax + ebx) = (uint8_t)(0); /* 0x31010DDE: mov byte ptr [eax + ebx], 0 */ 15488 L_31010DE2: 15489 ecx = ebp + (-0x20); /* 0x31010DE2: lea ecx, [ebp - 0x20] */ 15490 PUSH32(esp, ecx); /* 0x31010DE5: push ecx */ 15491 PUSH32(esp, 0x3105224Cu); /* 0x31010DE6: push 0x3105224c */ 15492 ecx = ebp + (-0x60); /* 0x31010DEB: lea ecx, [ebp - 0x60] */ 15493 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x31010DEE: mov byte ptr [ebp - 4], 1 */ 15494 RECOMP_ICALL(MEM32(0x310482CC)); /* 0x31010DF2: call dword ptr [0x310482cc] */ 15495 RECOMP_FLAGS_IN(); 15496 PUSH32(esp, 1); /* 0x31010DF8: push 1 */ 15497 ecx = ebp + (-0x20); /* 0x31010DFA: lea ecx, [ebp - 0x20] */ 15498 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x31010DFD: mov byte ptr [ebp - 4], 0 */ 15499 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x31010E01: call dword ptr [0x310480d4] */ 15500 RECOMP_FLAGS_IN(); 15501 edi = MEM32(ebp + 0xC); /* 0x31010E07: mov edi, dword ptr [ebp + 0xc] */ 15502 eax = MEM32(edi + 0x8); /* 0x31010E0A: mov eax, dword ptr [edi + 8] */ 15503 ebx = MEM32(0x310482BC); /* 0x31010E0D: mov ebx, dword ptr [0x310482bc] */ 15504 PUSH32(esp, eax); /* 0x31010E13: push eax */ 15505 PUSH32(esp, 0x31052350u); /* 0x31010E14: push 0x31052350 */ 15506 ecx = ebp + (-0x60); /* 0x31010E19: lea ecx, [ebp - 0x60] */ 15507 RECOMP_ICALL(ebx); /* 0x31010E1C: call ebx */ 15508 RECOMP_FLAGS_IN(); 15509 edi = MEM32(edi + 0xC); /* 0x31010E1E: mov edi, dword ptr [edi + 0xc] */ 15510 PUSH32(esp, edi); /* 0x31010E21: push edi */ 15511 PUSH32(esp, 0x31052348u); /* 0x31010E22: push 0x31052348 */ 15512 ecx = ebp + (-0x60); /* 0x31010E27: lea ecx, [ebp - 0x60] */ 15513 RECOMP_ICALL(ebx); /* 0x31010E2A: call ebx */ 15514 RECOMP_FLAGS_IN(); 15515 eax = MEM32(ebp + 0x10); /* 0x31010E2C: mov eax, dword ptr [ebp + 0x10] */ 15516 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 15517 edi = 0; /* 0x31010E2F: xor edi, edi */ 15518 _cf = 0; 15519 _flag_k = FK_TEST; 15520 /* cmp eax, edi */ /* 0x31010E31: cmp eax, edi */ 15521 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 15522 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15523 _flag_k = FK_CMP; 15524 if (CMP_EQ(_flag_a, _flag_b)) goto L_31010E5E; /* 0x31010E33: je 0x31010e5e */ 15525 L_31010E35: 15526 eax = MEM32(eax); /* 0x31010E35: mov eax, dword ptr [eax] */ 15527 /* cmp MEM32(eax), 0x80000000u */ /* 0x31010E37: cmp dword ptr [eax], 0x80000000 */ 15528 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0x80000000u); 15529 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15530 _flag_k = FK_CMP; 15531 ecx = MEM32(eax + 0x4); /* 0x31010E3D: mov ecx, dword ptr [eax + 4] */ 15532 if (CMP_AE(_flag_a, _flag_b)) goto L_31010E47; /* 0x31010E40: jae 0x31010e47 */ 15533 L_31010E42: 15534 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 15535 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15536 eax = eax + 8; /* 0x31010E42: add eax, 8 */ 15537 _flag_k = FK_ADD; 15538 goto L_31010E4A; /* 0x31010E45: jmp 0x31010e4a */ 15539 L_31010E47: 15540 eax = MEM32(eax + 0x8); /* 0x31010E47: mov eax, dword ptr [eax + 8] */ 15541 L_31010E4A: 15542 PUSH32(esp, 1); /* 0x31010E4A: push 1 */ 15543 PUSH32(esp, 1); /* 0x31010E4C: push 1 */ 15544 PUSH32(esp, ecx); /* 0x31010E4E: push ecx */ 15545 PUSH32(esp, eax); /* 0x31010E4F: push eax */ 15546 PUSH32(esp, 0x31052244u); /* 0x31010E50: push 0x31052244 */ 15547 ecx = ebp + (-0x60); /* 0x31010E55: lea ecx, [ebp - 0x60] */ 15548 RECOMP_ICALL(MEM32(0x310482B0)); /* 0x31010E58: call dword ptr [0x310482b0] */ 15549 RECOMP_FLAGS_IN(); 15550 L_31010E5E: 15551 ecx = MEM32(ebp + (-0x10)); /* 0x31010E5E: mov ecx, dword ptr [ebp - 0x10] */ 15552 edx = ebp + (-0x60); /* 0x31010E61: lea edx, [ebp - 0x60] */ 15553 PUSH32(esp, edx); /* 0x31010E64: push edx */ 15554 RECOMP_ICALL(0x31010CA0u); /* 0x31010E65: call 0x31010ca0 */ /* not lifted */ 15555 RECOMP_FLAGS_IN(); 15556 SET_LO8(ebx, LO8(eax)); /* 0x31010E6A: mov bl, al */ 15557 MEM32(ebp + (-0x60)) = 0x3104876Cu; /* 0x31010E6C: mov dword ptr [ebp - 0x60], 0x3104876c */ 15558 ecx = ebp + (-0x60); /* 0x31010E73: lea ecx, [ebp - 0x60] */ 15559 MEM32(ebp + (-0x4)) = 3; /* 0x31010E76: mov dword ptr [ebp - 4], 3 */ 15560 RECOMP_ICALL(MEM32(0x310482F8)); /* 0x31010E7D: call dword ptr [0x310482f8] */ 15561 RECOMP_FLAGS_IN(); 15562 eax = MEM32(ebp + (-0x2C)); /* 0x31010E83: mov eax, dword ptr [ebp - 0x2c] */ 15563 PUSH32(esp, eax); /* 0x31010E86: push eax */ 15564 RECOMP_ICALL(0x31046858u); /* 0x31010E87: call 0x31046858 */ /* not lifted */ 15565 RECOMP_FLAGS_IN(); 15566 eax = MEM32(ebp + (-0x58)); /* 0x31010E8C: mov eax, dword ptr [ebp - 0x58] */ 15567 edx = MEM32(ebp + (-0x4C)); /* 0x31010E8F: mov edx, dword ptr [ebp - 0x4c] */ 15568 MEM32(ebp + (-0x2C)) = edi; /* 0x31010E92: mov dword ptr [ebp - 0x2c], edi */ 15569 MEM32(ebp + (-0x28)) = edi; /* 0x31010E95: mov dword ptr [ebp - 0x28], edi */ 15570 MEM32(ebp + (-0x24)) = edi; /* 0x31010E98: mov dword ptr [ebp - 0x24], edi */ 15571 ecx = MEM32(eax); /* 0x31010E9B: mov ecx, dword ptr [eax] */ 15572 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15573 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15574 esp = esp + 4; /* 0x31010E9D: add esp, 4 */ 15575 _flag_k = FK_ADD; 15576 /* cmp edx, edi */ /* 0x31010EA0: cmp edx, edi */ 15577 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 15578 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15579 _flag_k = FK_CMP; 15580 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x31010EA2: mov dword ptr [ebp - 4], 0xffffffff */ 15581 esi = eax; /* 0x31010EA9: mov esi, eax */ 15582 MEM32(ebp + 0x8) = ecx; /* 0x31010EAB: mov dword ptr [ebp + 8], ecx */ 15583 if (CMP_EQ(_flag_a, _flag_b)) goto L_31010EE7; /* 0x31010EAE: je 0x31010ee7 */ 15584 L_31010EB0: 15585 edx = ecx; /* 0x31010EB0: mov edx, ecx */ 15586 /* cmp ecx, edx */ /* 0x31010EB2: cmp ecx, edx */ 15587 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 15588 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15589 _flag_k = FK_CMP; 15590 if (CMP_NE(_flag_a, _flag_b)) goto L_31010EE7; /* 0x31010EB4: jne 0x31010ee7 */ 15591 L_31010EB6: 15592 ecx = MEM32(eax + 0x4); /* 0x31010EB6: mov ecx, dword ptr [eax + 4] */ 15593 PUSH32(esp, ecx); /* 0x31010EB9: push ecx */ 15594 ecx = ebp + (-0x5C); /* 0x31010EBA: lea ecx, [ebp - 0x5c] */ 15595 RECOMP_ICALL(0x3100E8B0u); /* 0x31010EBD: call 0x3100e8b0 */ /* not lifted */ 15596 RECOMP_FLAGS_IN(); 15597 eax = MEM32(ebp + (-0x54)); /* 0x31010EC2: mov eax, dword ptr [ebp - 0x54] */ 15598 edx = MEM32(ebp + (-0x58)); /* 0x31010EC5: mov edx, dword ptr [ebp - 0x58] */ 15599 MEM32(edx + 0x4) = eax; /* 0x31010EC8: mov dword ptr [edx + 4], eax */ 15600 eax = MEM32(ebp + (-0x58)); /* 0x31010ECB: mov eax, dword ptr [ebp - 0x58] */ 15601 MEM32(ebp + (-0x4C)) = edi; /* 0x31010ECE: mov dword ptr [ebp - 0x4c], edi */ 15602 MEM32(eax) = eax; /* 0x31010ED1: mov dword ptr [eax], eax */ 15603 eax = MEM32(ebp + (-0x58)); /* 0x31010ED3: mov eax, dword ptr [ebp - 0x58] */ 15604 ecx = ebp + 0xC; /* 0x31010ED6: lea ecx, [ebp + 0xc] */ 15605 PUSH32(esp, ecx); /* 0x31010ED9: push ecx */ 15606 ecx = ebp + (-0x5C); /* 0x31010EDA: lea ecx, [ebp - 0x5c] */ 15607 MEM32(eax + 0x8) = eax; /* 0x31010EDD: mov dword ptr [eax + 8], eax */ 15608 RECOMP_ICALL(0x3100E400u); /* 0x31010EE0: call 0x3100e400 */ /* not lifted */ 15609 RECOMP_FLAGS_IN(); 15610 goto L_31010F0C; /* 0x31010EE5: jmp 0x31010f0c */ 15611 L_31010EE7: 15612 /* cmp ecx, eax */ /* 0x31010EE7: cmp ecx, eax */ 15613 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 15614 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15615 _flag_k = FK_CMP; 15616 if (CMP_EQ(_flag_a, _flag_b)) goto L_31010F0F; /* 0x31010EE9: je 0x31010f0f */ 15617 L_31010EEB: 15618 PUSH32(esp, edi); /* 0x31010EEB: push edi */ 15619 edx = ebp + 0x10; /* 0x31010EEC: lea edx, [ebp + 0x10] */ 15620 PUSH32(esp, edx); /* 0x31010EEF: push edx */ 15621 ecx = ebp + 0x8; /* 0x31010EF0: lea ecx, [ebp + 8] */ 15622 RECOMP_ICALL(0x3100E900u); /* 0x31010EF3: call 0x3100e900 */ /* not lifted */ 15623 RECOMP_FLAGS_IN(); 15624 eax = MEM32(eax); /* 0x31010EF8: mov eax, dword ptr [eax] */ 15625 PUSH32(esp, eax); /* 0x31010EFA: push eax */ 15626 ecx = ebp + (-0x10); /* 0x31010EFB: lea ecx, [ebp - 0x10] */ 15627 PUSH32(esp, ecx); /* 0x31010EFE: push ecx */ 15628 ecx = ebp + (-0x5C); /* 0x31010EFF: lea ecx, [ebp - 0x5c] */ 15629 RECOMP_ICALL(0x3100E4E0u); /* 0x31010F02: call 0x3100e4e0 */ /* not lifted */ 15630 RECOMP_FLAGS_IN(); 15631 /* cmp MEM32(ebp + 0x8), esi */ /* 0x31010F07: cmp dword ptr [ebp + 8], esi */ 15632 _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(esi); 15633 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15634 _flag_k = FK_CMP; 15635 RECOMP_BACKEDGE(); 15636 if (CMP_NE(_flag_a, _flag_b)) goto L_31010EEB; /* 0x31010F0A: jne 0x31010eeb */ 15637 L_31010F0C: 15638 eax = MEM32(ebp + (-0x58)); /* 0x31010F0C: mov eax, dword ptr [ebp - 0x58] */ 15639 L_31010F0F: 15640 PUSH32(esp, eax); /* 0x31010F0F: push eax */ 15641 RECOMP_ICALL(0x31046858u); /* 0x31010F10: call 0x31046858 */ /* not lifted */ 15642 RECOMP_FLAGS_IN(); 15643 edx = MEM32(ebp + (-0x54)); /* 0x31010F15: mov edx, dword ptr [ebp - 0x54] */ 15644 PUSH32(esp, edx); /* 0x31010F18: push edx */ 15645 MEM32(ebp + (-0x58)) = edi; /* 0x31010F19: mov dword ptr [ebp - 0x58], edi */ 15646 MEM32(ebp + (-0x4C)) = edi; /* 0x31010F1C: mov dword ptr [ebp - 0x4c], edi */ 15647 RECOMP_ICALL(0x31046858u); /* 0x31010F1F: call 0x31046858 */ /* not lifted */ 15648 RECOMP_FLAGS_IN(); 15649 ecx = MEM32(ebp + (-0xC)); /* 0x31010F24: mov ecx, dword ptr [ebp - 0xc] */ 15650 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 15651 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15652 esp = esp + 8; /* 0x31010F27: add esp, 8 */ 15653 _flag_k = FK_ADD; 15654 edi = POP32_VAL(esp); /* 0x31010F2A: pop edi */ 15655 esi = POP32_VAL(esp); /* 0x31010F2B: pop esi */ 15656 SET_LO8(eax, LO8(ebx)); /* 0x31010F2C: mov al, bl */ 15657 ebx = POP32_VAL(esp); /* 0x31010F2E: pop ebx */ 15658 MEM32(FS_BASE + (0)) = ecx; /* 0x31010F2F: mov dword ptr fs:[0], ecx */ 15659 esp = ebp; /* 0x31010F36: mov esp, ebp */ 15660 ebp = POP32_VAL(esp); /* 0x31010F38: pop ebp */ 15661 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x31010F39: ret 0xc */ 15662 RECOMP_REGS_OUT(); 15663 } 15664 15665 void sub_31010F40(void) { 15666 int _fpu_cmp = 0; 15667 uint32_t _cf = 0; 15668 int _df = 1; 15669 uint32_t _flag_k = FK_NONE; 15670 uint32_t _flag_a = 0, _flag_b = 0; 15671 uint32_t _itail_tgt = 0; 15672 RECOMP_REGS_LOCALS 15673 RECOMP_ENTER(0x31010F40u); 15674 15675 L_31010F40: 15676 PUSH32(esp, ebp); /* 0x31010F40: push ebp */ 15677 ebp = esp; /* 0x31010F41: mov ebp, esp */ 15678 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 15679 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15680 esp = esp - 0x14u; /* 0x31010F43: sub esp, 0x14 */ 15681 _flag_k = FK_CMP; 15682 PUSH32(esp, ebx); /* 0x31010F46: push ebx */ 15683 PUSH32(esp, esi); /* 0x31010F47: push esi */ 15684 PUSH32(esp, edi); /* 0x31010F48: push edi */ 15685 MEM32(ebp + (-0x8)) = ecx; /* 0x31010F49: mov dword ptr [ebp - 8], ecx */ 15686 L_31010F4C: 15687 eax = MEM32(ebp + (-0x8)); /* 0x31010F4C: mov eax, dword ptr [ebp - 8] */ 15688 ecx = MEM32(eax + 0x208); /* 0x31010F4F: mov ecx, dword ptr [eax + 0x208] */ 15689 edi = eax + ecx + 0x8; /* 0x31010F55: lea edi, [eax + ecx + 8] */ 15690 esi = eax + 0x8; /* 0x31010F59: lea esi, [eax + 8] */ 15691 ebx = 0x200u; /* 0x31010F5C: mov ebx, 0x200 */ 15692 MEM32(ebp + (-0x4)) = edi; /* 0x31010F61: mov dword ptr [ebp - 4], edi */ 15693 MEM32(ebp + (-0x10)) = esi; /* 0x31010F64: mov dword ptr [ebp - 0x10], esi */ 15694 MEM32(ebp + (-0xC)) = 0; /* 0x31010F67: mov dword ptr [ebp - 0xc], 0 */ 15695 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 15696 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15697 ebx = ebx - ecx; /* 0x31010F6E: sub ebx, ecx */ 15698 _flag_k = FK_CMP; 15699 L_31010F70: 15700 eax = edi; /* 0x31010F70: mov eax, edi */ 15701 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 15702 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15703 eax = eax - esi; /* 0x31010F72: sub eax, esi */ 15704 _flag_k = FK_CMP; 15705 /* cmp eax, 4 */ /* 0x31010F74: cmp eax, 4 */ 15706 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 15707 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15708 _flag_k = FK_CMP; 15709 MEM32(ebp + (-0x14)) = eax; /* 0x31010F77: mov dword ptr [ebp - 0x14], eax */ 15710 if (CMP_L(_flag_a, _flag_b)) goto L_31010FD6; /* 0x31010F7A: jl 0x31010fd6 */ 15711 L_31010F7C: 15712 ecx = MEM32(esi); /* 0x31010F7C: mov ecx, dword ptr [esi] */ 15713 /* cmp eax, ecx */ /* 0x31010F7E: cmp eax, ecx */ 15714 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 15715 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15716 _flag_k = FK_CMP; 15717 if (CMP_GE(_flag_a, _flag_b)) goto L_3101100B; /* 0x31010F80: jge 0x3101100b */ 15718 L_31010F86: 15719 /* cmp eax, 4 */ /* 0x31010F86: cmp eax, 4 */ 15720 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 15721 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15722 _flag_k = FK_CMP; 15723 if (CMP_L(_flag_a, _flag_b)) goto L_31010FD6; /* 0x31010F89: jl 0x31010fd6 */ 15724 L_31010F8B: 15725 eax = MEM32(ebp + (-0xC)); /* 0x31010F8B: mov eax, dword ptr [ebp - 0xc] */ 15726 /* test eax, eax */ /* 0x31010F8E: test eax, eax */ 15727 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 15728 _cf = 0; 15729 _flag_k = FK_TEST; 15730 if (TEST_NZ(_flag_a, _flag_b)) goto L_31010FD6; /* 0x31010F90: jne 0x31010fd6 */ 15731 L_31010F92: 15732 eax = ecx; /* 0x31010F92: mov eax, ecx */ 15733 /* cmp eax, 0x200u */ /* 0x31010F94: cmp eax, 0x200 */ 15734 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x200u); 15735 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15736 _flag_k = FK_CMP; 15737 if (CMP_BE(_flag_a, _flag_b)) goto L_31010FD6; /* 0x31010F99: jbe 0x31010fd6 */ 15738 L_31010F9B: 15739 ebx = eax; /* 0x31010F9B: mov ebx, eax */ 15740 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 15741 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15742 ebx = ebx - edi; /* 0x31010F9D: sub ebx, edi */ 15743 _flag_k = FK_CMP; 15744 PUSH32(esp, eax); /* 0x31010F9F: push eax */ 15745 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 15746 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15747 ebx = ebx + esi; /* 0x31010FA0: add ebx, esi */ 15748 _flag_k = FK_ADD; 15749 RECOMP_ICALL(0x310468DAu); /* 0x31010FA2: call 0x310468da */ /* not lifted */ 15750 RECOMP_FLAGS_IN(); 15751 ecx = MEM32(ebp + (-0x14)); /* 0x31010FA7: mov ecx, dword ptr [ebp - 0x14] */ 15752 edx = ecx; /* 0x31010FAA: mov edx, ecx */ 15753 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x31010FAC: shr ecx, 2 */ 15754 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15755 ecx = ecx >> 2u; /* 0x31010FAC: shr ecx, 2 */ 15756 edi = eax; /* 0x31010FAF: mov edi, eax */ 15757 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x31010FB1: 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; } 15758 ecx = edx; /* 0x31010FB3: mov ecx, edx */ 15759 edx = MEM32(ebp + (-0x4)); /* 0x31010FB5: mov edx, dword ptr [ebp - 4] */ 15760 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 15761 ecx = ecx & 3; /* 0x31010FB8: and ecx, 3 */ 15762 _cf = 0; 15763 _flag_k = FK_TEST; 15764 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x31010FBB: 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; } 15765 esi = MEM32(ebp + (-0x10)); /* 0x31010FBD: mov esi, dword ptr [ebp - 0x10] */ 15766 ecx = eax; /* 0x31010FC0: mov ecx, eax */ 15767 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 15768 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15769 ecx = ecx - esi; /* 0x31010FC2: sub ecx, esi */ 15770 _flag_k = FK_CMP; 15771 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15772 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15773 esp = esp + 4; /* 0x31010FC4: add esp, 4 */ 15774 _flag_k = FK_ADD; 15775 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 15776 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15777 edx = edx + ecx; /* 0x31010FC7: add edx, ecx */ 15778 _flag_k = FK_ADD; 15779 MEM32(ebp + (-0xC)) = eax; /* 0x31010FC9: mov dword ptr [ebp - 0xc], eax */ 15780 MEM32(ebp + (-0x4)) = edx; /* 0x31010FCC: mov dword ptr [ebp - 4], edx */ 15781 MEM32(ebp + (-0x10)) = eax; /* 0x31010FCF: mov dword ptr [ebp - 0x10], eax */ 15782 edi = edx; /* 0x31010FD2: mov edi, edx */ 15783 esi = eax; /* 0x31010FD4: mov esi, eax */ 15784 L_31010FD6: 15785 edx = MEM32(ebp + (-0x8)); /* 0x31010FD6: mov edx, dword ptr [ebp - 8] */ 15786 eax = MEM32(edx + 0x4); /* 0x31010FD9: mov eax, dword ptr [edx + 4] */ 15787 PUSH32(esp, 0); /* 0x31010FDC: push 0 */ 15788 PUSH32(esp, ebx); /* 0x31010FDE: push ebx */ 15789 PUSH32(esp, edi); /* 0x31010FDF: push edi */ 15790 PUSH32(esp, eax); /* 0x31010FE0: push eax */ 15791 RECOMP_ICALL(MEM32(0x31048280)); /* 0x31010FE1: call dword ptr [0x31048280] */ 15792 RECOMP_FLAGS_IN(); 15793 /* test eax, eax */ /* 0x31010FE7: test eax, eax */ 15794 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 15795 _cf = 0; 15796 _flag_k = FK_TEST; 15797 if (TEST_G(_flag_a, _flag_b)) goto L_31010FFF; /* 0x31010FE9: jg 0x31010fff */ 15798 L_31010FEB: 15799 ecx = MEM32(ebp + (-0x8)); /* 0x31010FEB: mov ecx, dword ptr [ebp - 8] */ 15800 edx = MEM32(ecx); /* 0x31010FEE: mov edx, dword ptr [ecx] */ 15801 PUSH32(esp, 0); /* 0x31010FF0: push 0 */ 15802 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x31010FF2: call dword ptr [edx + 8] */ 15803 RECOMP_FLAGS_IN(); 15804 /* test LO8(eax), LO8(eax) */ /* 0x31010FF5: test al, al */ 15805 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 15806 _cf = 0; 15807 _flag_k = FK_NARROW(FK_TEST, 24); 15808 if (TEST_NZ(_flag_a, _flag_b)) goto L_3101108D; /* 0x31010FF7: jne 0x3101108d */ 15809 L_31010FFD: 15810 RECOMP_BACKEDGE(); 15811 goto L_31010FD6; /* 0x31010FFD: jmp 0x31010fd6 */ 15812 L_31010FFF: 15813 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 15814 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15815 edi = edi + eax; /* 0x31010FFF: add edi, eax */ 15816 _flag_k = FK_ADD; 15817 MEM32(ebp + (-0x4)) = edi; /* 0x31011001: mov dword ptr [ebp - 4], edi */ 15818 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 15819 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15820 ebx = ebx - eax; /* 0x31011004: sub ebx, eax */ 15821 _flag_k = FK_CMP; 15822 RECOMP_BACKEDGE(); 15823 goto L_31010F70; /* 0x31011006: jmp 0x31010f70 */ 15824 L_3101100B: 15825 ebx = MEM32(esi); /* 0x3101100B: mov ebx, dword ptr [esi] */ 15826 /* cmp ebx, 4 */ /* 0x3101100D: cmp ebx, 4 */ 15827 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 15828 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15829 _flag_k = FK_CMP; 15830 if (CMP_BE(_flag_a, _flag_b)) goto L_3101104B; /* 0x31011010: jbe 0x3101104b */ 15831 L_31011012: 15832 /* cmp ebx, 8 */ /* 0x31011012: cmp ebx, 8 */ 15833 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(8); 15834 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15835 _flag_k = FK_CMP; 15836 if (CMP_B(_flag_a, _flag_b)) goto L_3101103C; /* 0x31011015: jb 0x3101103c */ 15837 L_31011017: 15838 PUSH32(esp, ebx); /* 0x31011017: push ebx */ 15839 PUSH32(esp, esi); /* 0x31011018: push esi */ 15840 RECOMP_ICALL(0x310110B0u); /* 0x31011019: call 0x310110b0 */ /* not lifted */ 15841 RECOMP_FLAGS_IN(); 15842 ecx = MEM32(esi + 0x4); /* 0x3101101E: mov ecx, dword ptr [esi + 4] */ 15843 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 15844 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15845 esp = esp + 8; /* 0x31011021: add esp, 8 */ 15846 _flag_k = FK_ADD; 15847 /* cmp ecx, eax */ /* 0x31011024: cmp ecx, eax */ 15848 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 15849 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15850 _flag_k = FK_CMP; 15851 if (CMP_NE(_flag_a, _flag_b)) goto L_3101103C; /* 0x31011026: jne 0x3101103c */ 15852 L_31011028: 15853 edx = MEM32(esi); /* 0x31011028: mov edx, dword ptr [esi] */ 15854 ecx = MEM32(ebp + 0x8); /* 0x3101102A: mov ecx, dword ptr [ebp + 8] */ 15855 eax = MEM32(ecx); /* 0x3101102D: mov eax, dword ptr [ecx] */ 15856 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 15857 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15858 edx = edx - 4; /* 0x3101102F: sub edx, 4 */ 15859 _flag_k = FK_CMP; 15860 PUSH32(esp, edx); /* 0x31011032: push edx */ 15861 edx = esi + 0x8; /* 0x31011033: lea edx, [esi + 8] */ 15862 PUSH32(esp, edx); /* 0x31011036: push edx */ 15863 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x31011037: call dword ptr [eax + 0xc] */ 15864 RECOMP_FLAGS_IN(); 15865 goto L_3101104B; /* 0x3101103A: jmp 0x3101104b */ 15866 L_3101103C: 15867 PUSH32(esp, 1); /* 0x3101103C: push 1 */ 15868 PUSH32(esp, 0x31052524u); /* 0x3101103E: push 0x31052524 */ 15869 RECOMP_ICALL(0x310013E0u); /* 0x31011043: call 0x310013e0 */ /* not lifted */ 15870 RECOMP_FLAGS_IN(); 15871 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 15872 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15873 esp = esp + 8; /* 0x31011048: add esp, 8 */ 15874 _flag_k = FK_ADD; 15875 L_3101104B: 15876 eax = MEM32(ebp + (-0x8)); /* 0x3101104B: mov eax, dword ptr [ebp - 8] */ 15877 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 15878 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15879 edi = edi - ebx; /* 0x3101104E: sub edi, ebx */ 15880 _flag_k = FK_CMP; 15881 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 15882 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15883 edi = edi - esi; /* 0x31011050: sub edi, esi */ 15884 _flag_k = FK_CMP; 15885 MEM32(eax + 0x208) = edi; /* 0x31011052: mov dword ptr [eax + 0x208], edi */ 15886 ecx = edi; /* 0x31011058: mov ecx, edi */ 15887 edi = eax + 0x8; /* 0x3101105A: lea edi, [eax + 8] */ 15888 eax = ecx; /* 0x3101105D: mov eax, ecx */ 15889 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3101105F: shr ecx, 2 */ 15890 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15891 ecx = ecx >> 2u; /* 0x3101105F: shr ecx, 2 */ 15892 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 15893 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15894 esi = esi + ebx; /* 0x31011062: add esi, ebx */ 15895 _flag_k = FK_ADD; 15896 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x31011064: 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; } 15897 ecx = eax; /* 0x31011066: mov ecx, eax */ 15898 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 15899 ecx = ecx & 3; /* 0x31011068: and ecx, 3 */ 15900 _cf = 0; 15901 _flag_k = FK_TEST; 15902 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3101106B: 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; } 15903 ecx = MEM32(ebp + (-0xC)); /* 0x3101106D: mov ecx, dword ptr [ebp - 0xc] */ 15904 PUSH32(esp, ecx); /* 0x31011070: push ecx */ 15905 RECOMP_ICALL(0x31046858u); /* 0x31011071: call 0x31046858 */ /* not lifted */ 15906 RECOMP_FLAGS_IN(); 15907 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15908 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15909 esp = esp + 4; /* 0x31011076: add esp, 4 */ 15910 _flag_k = FK_ADD; 15911 /* cmp ebx, 4 */ /* 0x31011079: cmp ebx, 4 */ 15912 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 15913 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15914 _flag_k = FK_CMP; 15915 RECOMP_BACKEDGE(); 15916 if (CMP_BE(_flag_a, _flag_b)) goto L_31010F4C; /* 0x3101107C: jbe 0x31010f4c */ 15917 L_31011082: 15918 edi = POP32_VAL(esp); /* 0x31011082: pop edi */ 15919 esi = POP32_VAL(esp); /* 0x31011083: pop esi */ 15920 SET_LO8(eax, 1); /* 0x31011084: mov al, 1 */ 15921 ebx = POP32_VAL(esp); /* 0x31011086: pop ebx */ 15922 esp = ebp; /* 0x31011087: mov esp, ebp */ 15923 ebp = POP32_VAL(esp); /* 0x31011089: pop ebp */ 15924 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3101108A: ret 4 */ 15925 L_3101108D: 15926 edx = MEM32(ebp + (-0xC)); /* 0x3101108D: mov edx, dword ptr [ebp - 0xc] */ 15927 PUSH32(esp, edx); /* 0x31011090: push edx */ 15928 RECOMP_ICALL(0x31046858u); /* 0x31011091: call 0x31046858 */ /* not lifted */ 15929 RECOMP_FLAGS_IN(); 15930 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15931 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15932 esp = esp + 4; /* 0x31011096: add esp, 4 */ 15933 _flag_k = FK_ADD; 15934 edi = POP32_VAL(esp); /* 0x31011099: pop edi */ 15935 esi = POP32_VAL(esp); /* 0x3101109A: pop esi */ 15936 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 15937 SET_LO8(eax, 0); /* 0x3101109B: xor al, al */ 15938 _cf = 0; 15939 _flag_k = FK_NARROW(FK_TEST, 24); 15940 ebx = POP32_VAL(esp); /* 0x3101109D: pop ebx */ 15941 esp = ebp; /* 0x3101109E: mov esp, ebp */ 15942 ebp = POP32_VAL(esp); /* 0x310110A0: pop ebp */ 15943 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x310110A1: ret 4 */ 15944 RECOMP_REGS_OUT(); 15945 } 15946 15947 void sub_31010F4C(void) { 15948 int _fpu_cmp = 0; 15949 uint32_t _cf = 0; 15950 int _df = 1; 15951 uint32_t _flag_k = FK_NONE; 15952 uint32_t _flag_a = 0, _flag_b = 0; 15953 uint32_t _itail_tgt = 0; 15954 RECOMP_REGS_LOCALS 15955 RECOMP_ENTER(0x31010F4Cu); 15956 15957 L_31010F4C: 15958 eax = MEM32(ebp + (-0x8)); /* 0x31010F4C: mov eax, dword ptr [ebp - 8] */ 15959 ecx = MEM32(eax + 0x208); /* 0x31010F4F: mov ecx, dword ptr [eax + 0x208] */ 15960 edi = eax + ecx + 0x8; /* 0x31010F55: lea edi, [eax + ecx + 8] */ 15961 esi = eax + 0x8; /* 0x31010F59: lea esi, [eax + 8] */ 15962 ebx = 0x200u; /* 0x31010F5C: mov ebx, 0x200 */ 15963 MEM32(ebp + (-0x4)) = edi; /* 0x31010F61: mov dword ptr [ebp - 4], edi */ 15964 MEM32(ebp + (-0x10)) = esi; /* 0x31010F64: mov dword ptr [ebp - 0x10], esi */ 15965 MEM32(ebp + (-0xC)) = 0; /* 0x31010F67: mov dword ptr [ebp - 0xc], 0 */ 15966 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 15967 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15968 ebx = ebx - ecx; /* 0x31010F6E: sub ebx, ecx */ 15969 _flag_k = FK_CMP; 15970 L_31010F70: 15971 eax = edi; /* 0x31010F70: mov eax, edi */ 15972 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 15973 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15974 eax = eax - esi; /* 0x31010F72: sub eax, esi */ 15975 _flag_k = FK_CMP; 15976 /* cmp eax, 4 */ /* 0x31010F74: cmp eax, 4 */ 15977 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 15978 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15979 _flag_k = FK_CMP; 15980 MEM32(ebp + (-0x14)) = eax; /* 0x31010F77: mov dword ptr [ebp - 0x14], eax */ 15981 if (CMP_L(_flag_a, _flag_b)) goto L_31010FD6; /* 0x31010F7A: jl 0x31010fd6 */ 15982 L_31010F7C: 15983 ecx = MEM32(esi); /* 0x31010F7C: mov ecx, dword ptr [esi] */ 15984 /* cmp eax, ecx */ /* 0x31010F7E: cmp eax, ecx */ 15985 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 15986 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15987 _flag_k = FK_CMP; 15988 if (CMP_GE(_flag_a, _flag_b)) goto L_3101100B; /* 0x31010F80: jge 0x3101100b */ 15989 L_31010F86: 15990 /* cmp eax, 4 */ /* 0x31010F86: cmp eax, 4 */ 15991 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 15992 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15993 _flag_k = FK_CMP; 15994 if (CMP_L(_flag_a, _flag_b)) goto L_31010FD6; /* 0x31010F89: jl 0x31010fd6 */ 15995 L_31010F8B: 15996 eax = MEM32(ebp + (-0xC)); /* 0x31010F8B: mov eax, dword ptr [ebp - 0xc] */ 15997 /* test eax, eax */ /* 0x31010F8E: test eax, eax */ 15998 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 15999 _cf = 0; 16000 _flag_k = FK_TEST; 16001 if (TEST_NZ(_flag_a, _flag_b)) goto L_31010FD6; /* 0x31010F90: jne 0x31010fd6 */ 16002 L_31010F92: 16003 eax = ecx; /* 0x31010F92: mov eax, ecx */ 16004 /* cmp eax, 0x200u */ /* 0x31010F94: cmp eax, 0x200 */ 16005 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x200u); 16006 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16007 _flag_k = FK_CMP; 16008 if (CMP_BE(_flag_a, _flag_b)) goto L_31010FD6; /* 0x31010F99: jbe 0x31010fd6 */ 16009 L_31010F9B: 16010 ebx = eax; /* 0x31010F9B: mov ebx, eax */ 16011 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 16012 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16013 ebx = ebx - edi; /* 0x31010F9D: sub ebx, edi */ 16014 _flag_k = FK_CMP; 16015 PUSH32(esp, eax); /* 0x31010F9F: push eax */ 16016 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 16017 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16018 ebx = ebx + esi; /* 0x31010FA0: add ebx, esi */ 16019 _flag_k = FK_ADD; 16020 RECOMP_ICALL(0x310468DAu); /* 0x31010FA2: call 0x310468da */ /* not lifted */ 16021 RECOMP_FLAGS_IN(); 16022 ecx = MEM32(ebp + (-0x14)); /* 0x31010FA7: mov ecx, dword ptr [ebp - 0x14] */ 16023 edx = ecx; /* 0x31010FAA: mov edx, ecx */ 16024 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x31010FAC: shr ecx, 2 */ 16025 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16026 ecx = ecx >> 2u; /* 0x31010FAC: shr ecx, 2 */ 16027 edi = eax; /* 0x31010FAF: mov edi, eax */ 16028 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x31010FB1: 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; } 16029 ecx = edx; /* 0x31010FB3: mov ecx, edx */ 16030 edx = MEM32(ebp + (-0x4)); /* 0x31010FB5: mov edx, dword ptr [ebp - 4] */ 16031 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 16032 ecx = ecx & 3; /* 0x31010FB8: and ecx, 3 */ 16033 _cf = 0; 16034 _flag_k = FK_TEST; 16035 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x31010FBB: 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; } 16036 esi = MEM32(ebp + (-0x10)); /* 0x31010FBD: mov esi, dword ptr [ebp - 0x10] */ 16037 ecx = eax; /* 0x31010FC0: mov ecx, eax */ 16038 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 16039 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16040 ecx = ecx - esi; /* 0x31010FC2: sub ecx, esi */ 16041 _flag_k = FK_CMP; 16042 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16043 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16044 esp = esp + 4; /* 0x31010FC4: add esp, 4 */ 16045 _flag_k = FK_ADD; 16046 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 16047 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16048 edx = edx + ecx; /* 0x31010FC7: add edx, ecx */ 16049 _flag_k = FK_ADD; 16050 MEM32(ebp + (-0xC)) = eax; /* 0x31010FC9: mov dword ptr [ebp - 0xc], eax */ 16051 MEM32(ebp + (-0x4)) = edx; /* 0x31010FCC: mov dword ptr [ebp - 4], edx */ 16052 MEM32(ebp + (-0x10)) = eax; /* 0x31010FCF: mov dword ptr [ebp - 0x10], eax */ 16053 edi = edx; /* 0x31010FD2: mov edi, edx */ 16054 esi = eax; /* 0x31010FD4: mov esi, eax */ 16055 L_31010FD6: 16056 edx = MEM32(ebp + (-0x8)); /* 0x31010FD6: mov edx, dword ptr [ebp - 8] */ 16057 eax = MEM32(edx + 0x4); /* 0x31010FD9: mov eax, dword ptr [edx + 4] */ 16058 PUSH32(esp, 0); /* 0x31010FDC: push 0 */ 16059 PUSH32(esp, ebx); /* 0x31010FDE: push ebx */ 16060 PUSH32(esp, edi); /* 0x31010FDF: push edi */ 16061 PUSH32(esp, eax); /* 0x31010FE0: push eax */ 16062 RECOMP_ICALL(MEM32(0x31048280)); /* 0x31010FE1: call dword ptr [0x31048280] */ 16063 RECOMP_FLAGS_IN(); 16064 /* test eax, eax */ /* 0x31010FE7: test eax, eax */ 16065 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16066 _cf = 0; 16067 _flag_k = FK_TEST; 16068 if (TEST_G(_flag_a, _flag_b)) goto L_31010FFF; /* 0x31010FE9: jg 0x31010fff */ 16069 L_31010FEB: 16070 ecx = MEM32(ebp + (-0x8)); /* 0x31010FEB: mov ecx, dword ptr [ebp - 8] */ 16071 edx = MEM32(ecx); /* 0x31010FEE: mov edx, dword ptr [ecx] */ 16072 PUSH32(esp, 0); /* 0x31010FF0: push 0 */ 16073 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x31010FF2: call dword ptr [edx + 8] */ 16074 RECOMP_FLAGS_IN(); 16075 /* test LO8(eax), LO8(eax) */ /* 0x31010FF5: test al, al */ 16076 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 16077 _cf = 0; 16078 _flag_k = FK_NARROW(FK_TEST, 24); 16079 if (TEST_NZ(_flag_a, _flag_b)) goto L_3101108D; /* 0x31010FF7: jne 0x3101108d */ 16080 L_31010FFD: 16081 RECOMP_BACKEDGE(); 16082 goto L_31010FD6; /* 0x31010FFD: jmp 0x31010fd6 */ 16083 L_31010FFF: 16084 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 16085 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16086 edi = edi + eax; /* 0x31010FFF: add edi, eax */ 16087 _flag_k = FK_ADD; 16088 MEM32(ebp + (-0x4)) = edi; /* 0x31011001: mov dword ptr [ebp - 4], edi */ 16089 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 16090 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16091 ebx = ebx - eax; /* 0x31011004: sub ebx, eax */ 16092 _flag_k = FK_CMP; 16093 RECOMP_BACKEDGE(); 16094 goto L_31010F70; /* 0x31011006: jmp 0x31010f70 */ 16095 L_3101100B: 16096 ebx = MEM32(esi); /* 0x3101100B: mov ebx, dword ptr [esi] */ 16097 /* cmp ebx, 4 */ /* 0x3101100D: cmp ebx, 4 */ 16098 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 16099 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16100 _flag_k = FK_CMP; 16101 if (CMP_BE(_flag_a, _flag_b)) goto L_3101104B; /* 0x31011010: jbe 0x3101104b */ 16102 L_31011012: 16103 /* cmp ebx, 8 */ /* 0x31011012: cmp ebx, 8 */ 16104 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(8); 16105 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16106 _flag_k = FK_CMP; 16107 if (CMP_B(_flag_a, _flag_b)) goto L_3101103C; /* 0x31011015: jb 0x3101103c */ 16108 L_31011017: 16109 PUSH32(esp, ebx); /* 0x31011017: push ebx */ 16110 PUSH32(esp, esi); /* 0x31011018: push esi */ 16111 RECOMP_ICALL(0x310110B0u); /* 0x31011019: call 0x310110b0 */ /* not lifted */ 16112 RECOMP_FLAGS_IN(); 16113 ecx = MEM32(esi + 0x4); /* 0x3101101E: mov ecx, dword ptr [esi + 4] */ 16114 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 16115 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16116 esp = esp + 8; /* 0x31011021: add esp, 8 */ 16117 _flag_k = FK_ADD; 16118 /* cmp ecx, eax */ /* 0x31011024: cmp ecx, eax */ 16119 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 16120 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16121 _flag_k = FK_CMP; 16122 if (CMP_NE(_flag_a, _flag_b)) goto L_3101103C; /* 0x31011026: jne 0x3101103c */ 16123 L_31011028: 16124 edx = MEM32(esi); /* 0x31011028: mov edx, dword ptr [esi] */ 16125 ecx = MEM32(ebp + 0x8); /* 0x3101102A: mov ecx, dword ptr [ebp + 8] */ 16126 eax = MEM32(ecx); /* 0x3101102D: mov eax, dword ptr [ecx] */ 16127 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 16128 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16129 edx = edx - 4; /* 0x3101102F: sub edx, 4 */ 16130 _flag_k = FK_CMP; 16131 PUSH32(esp, edx); /* 0x31011032: push edx */ 16132 edx = esi + 0x8; /* 0x31011033: lea edx, [esi + 8] */ 16133 PUSH32(esp, edx); /* 0x31011036: push edx */ 16134 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x31011037: call dword ptr [eax + 0xc] */ 16135 RECOMP_FLAGS_IN(); 16136 goto L_3101104B; /* 0x3101103A: jmp 0x3101104b */ 16137 L_3101103C: 16138 PUSH32(esp, 1); /* 0x3101103C: push 1 */ 16139 PUSH32(esp, 0x31052524u); /* 0x3101103E: push 0x31052524 */ 16140 RECOMP_ICALL(0x310013E0u); /* 0x31011043: call 0x310013e0 */ /* not lifted */ 16141 RECOMP_FLAGS_IN(); 16142 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 16143 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16144 esp = esp + 8; /* 0x31011048: add esp, 8 */ 16145 _flag_k = FK_ADD; 16146 L_3101104B: 16147 eax = MEM32(ebp + (-0x8)); /* 0x3101104B: mov eax, dword ptr [ebp - 8] */ 16148 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 16149 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16150 edi = edi - ebx; /* 0x3101104E: sub edi, ebx */ 16151 _flag_k = FK_CMP; 16152 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 16153 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16154 edi = edi - esi; /* 0x31011050: sub edi, esi */ 16155 _flag_k = FK_CMP; 16156 MEM32(eax + 0x208) = edi; /* 0x31011052: mov dword ptr [eax + 0x208], edi */ 16157 ecx = edi; /* 0x31011058: mov ecx, edi */ 16158 edi = eax + 0x8; /* 0x3101105A: lea edi, [eax + 8] */ 16159 eax = ecx; /* 0x3101105D: mov eax, ecx */ 16160 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3101105F: shr ecx, 2 */ 16161 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16162 ecx = ecx >> 2u; /* 0x3101105F: shr ecx, 2 */ 16163 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 16164 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16165 esi = esi + ebx; /* 0x31011062: add esi, ebx */ 16166 _flag_k = FK_ADD; 16167 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x31011064: 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; } 16168 ecx = eax; /* 0x31011066: mov ecx, eax */ 16169 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 16170 ecx = ecx & 3; /* 0x31011068: and ecx, 3 */ 16171 _cf = 0; 16172 _flag_k = FK_TEST; 16173 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3101106B: 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; } 16174 ecx = MEM32(ebp + (-0xC)); /* 0x3101106D: mov ecx, dword ptr [ebp - 0xc] */ 16175 PUSH32(esp, ecx); /* 0x31011070: push ecx */ 16176 RECOMP_ICALL(0x31046858u); /* 0x31011071: call 0x31046858 */ /* not lifted */ 16177 RECOMP_FLAGS_IN(); 16178 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16179 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16180 esp = esp + 4; /* 0x31011076: add esp, 4 */ 16181 _flag_k = FK_ADD; 16182 /* cmp ebx, 4 */ /* 0x31011079: cmp ebx, 4 */ 16183 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 16184 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16185 _flag_k = FK_CMP; 16186 RECOMP_BACKEDGE(); 16187 if (CMP_BE(_flag_a, _flag_b)) goto L_31010F4C; /* 0x3101107C: jbe 0x31010f4c */ 16188 L_31011082: 16189 edi = POP32_VAL(esp); /* 0x31011082: pop edi */ 16190 esi = POP32_VAL(esp); /* 0x31011083: pop esi */ 16191 SET_LO8(eax, 1); /* 0x31011084: mov al, 1 */ 16192 ebx = POP32_VAL(esp); /* 0x31011086: pop ebx */ 16193 esp = ebp; /* 0x31011087: mov esp, ebp */ 16194 ebp = POP32_VAL(esp); /* 0x31011089: pop ebp */ 16195 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3101108A: ret 4 */ 16196 L_3101108D: 16197 edx = MEM32(ebp + (-0xC)); /* 0x3101108D: mov edx, dword ptr [ebp - 0xc] */ 16198 PUSH32(esp, edx); /* 0x31011090: push edx */ 16199 RECOMP_ICALL(0x31046858u); /* 0x31011091: call 0x31046858 */ /* not lifted */ 16200 RECOMP_FLAGS_IN(); 16201 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16202 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16203 esp = esp + 4; /* 0x31011096: add esp, 4 */ 16204 _flag_k = FK_ADD; 16205 edi = POP32_VAL(esp); /* 0x31011099: pop edi */ 16206 esi = POP32_VAL(esp); /* 0x3101109A: pop esi */ 16207 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 16208 SET_LO8(eax, 0); /* 0x3101109B: xor al, al */ 16209 _cf = 0; 16210 _flag_k = FK_NARROW(FK_TEST, 24); 16211 ebx = POP32_VAL(esp); /* 0x3101109D: pop ebx */ 16212 esp = ebp; /* 0x3101109E: mov esp, ebp */ 16213 ebp = POP32_VAL(esp); /* 0x310110A0: pop ebp */ 16214 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x310110A1: ret 4 */ 16215 RECOMP_REGS_OUT(); 16216 } 16217 16218 void sub_31010F70(void) { 16219 int _fpu_cmp = 0; 16220 uint32_t _cf = 0; 16221 int _df = 1; 16222 uint32_t _flag_k = FK_NONE; 16223 uint32_t _flag_a = 0, _flag_b = 0; 16224 uint32_t _itail_tgt = 0; 16225 RECOMP_REGS_LOCALS 16226 RECOMP_ENTER(0x31010F70u); 16227 16228 goto L_31010F70; 16229 L_31010F4C: 16230 eax = MEM32(ebp + (-0x8)); /* 0x31010F4C: mov eax, dword ptr [ebp - 8] */ 16231 ecx = MEM32(eax + 0x208); /* 0x31010F4F: mov ecx, dword ptr [eax + 0x208] */ 16232 edi = eax + ecx + 0x8; /* 0x31010F55: lea edi, [eax + ecx + 8] */ 16233 esi = eax + 0x8; /* 0x31010F59: lea esi, [eax + 8] */ 16234 ebx = 0x200u; /* 0x31010F5C: mov ebx, 0x200 */ 16235 MEM32(ebp + (-0x4)) = edi; /* 0x31010F61: mov dword ptr [ebp - 4], edi */ 16236 MEM32(ebp + (-0x10)) = esi; /* 0x31010F64: mov dword ptr [ebp - 0x10], esi */ 16237 MEM32(ebp + (-0xC)) = 0; /* 0x31010F67: mov dword ptr [ebp - 0xc], 0 */ 16238 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 16239 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16240 ebx = ebx - ecx; /* 0x31010F6E: sub ebx, ecx */ 16241 _flag_k = FK_CMP; 16242 L_31010F70: 16243 eax = edi; /* 0x31010F70: mov eax, edi */ 16244 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 16245 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16246 eax = eax - esi; /* 0x31010F72: sub eax, esi */ 16247 _flag_k = FK_CMP; 16248 /* cmp eax, 4 */ /* 0x31010F74: cmp eax, 4 */ 16249 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 16250 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16251 _flag_k = FK_CMP; 16252 MEM32(ebp + (-0x14)) = eax; /* 0x31010F77: mov dword ptr [ebp - 0x14], eax */ 16253 if (CMP_L(_flag_a, _flag_b)) goto L_31010FD6; /* 0x31010F7A: jl 0x31010fd6 */ 16254 L_31010F7C: 16255 ecx = MEM32(esi); /* 0x31010F7C: mov ecx, dword ptr [esi] */ 16256 /* cmp eax, ecx */ /* 0x31010F7E: cmp eax, ecx */ 16257 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 16258 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16259 _flag_k = FK_CMP; 16260 if (CMP_GE(_flag_a, _flag_b)) goto L_3101100B; /* 0x31010F80: jge 0x3101100b */ 16261 L_31010F86: 16262 /* cmp eax, 4 */ /* 0x31010F86: cmp eax, 4 */ 16263 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 16264 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16265 _flag_k = FK_CMP; 16266 if (CMP_L(_flag_a, _flag_b)) goto L_31010FD6; /* 0x31010F89: jl 0x31010fd6 */ 16267 L_31010F8B: 16268 eax = MEM32(ebp + (-0xC)); /* 0x31010F8B: mov eax, dword ptr [ebp - 0xc] */ 16269 /* test eax, eax */ /* 0x31010F8E: test eax, eax */ 16270 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16271 _cf = 0; 16272 _flag_k = FK_TEST; 16273 if (TEST_NZ(_flag_a, _flag_b)) goto L_31010FD6; /* 0x31010F90: jne 0x31010fd6 */ 16274 L_31010F92: 16275 eax = ecx; /* 0x31010F92: mov eax, ecx */ 16276 /* cmp eax, 0x200u */ /* 0x31010F94: cmp eax, 0x200 */ 16277 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x200u); 16278 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16279 _flag_k = FK_CMP; 16280 if (CMP_BE(_flag_a, _flag_b)) goto L_31010FD6; /* 0x31010F99: jbe 0x31010fd6 */ 16281 L_31010F9B: 16282 ebx = eax; /* 0x31010F9B: mov ebx, eax */ 16283 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 16284 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16285 ebx = ebx - edi; /* 0x31010F9D: sub ebx, edi */ 16286 _flag_k = FK_CMP; 16287 PUSH32(esp, eax); /* 0x31010F9F: push eax */ 16288 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 16289 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16290 ebx = ebx + esi; /* 0x31010FA0: add ebx, esi */ 16291 _flag_k = FK_ADD; 16292 RECOMP_ICALL(0x310468DAu); /* 0x31010FA2: call 0x310468da */ /* not lifted */ 16293 RECOMP_FLAGS_IN(); 16294 ecx = MEM32(ebp + (-0x14)); /* 0x31010FA7: mov ecx, dword ptr [ebp - 0x14] */ 16295 edx = ecx; /* 0x31010FAA: mov edx, ecx */ 16296 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x31010FAC: shr ecx, 2 */ 16297 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16298 ecx = ecx >> 2u; /* 0x31010FAC: shr ecx, 2 */ 16299 edi = eax; /* 0x31010FAF: mov edi, eax */ 16300 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x31010FB1: 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; } 16301 ecx = edx; /* 0x31010FB3: mov ecx, edx */ 16302 edx = MEM32(ebp + (-0x4)); /* 0x31010FB5: mov edx, dword ptr [ebp - 4] */ 16303 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 16304 ecx = ecx & 3; /* 0x31010FB8: and ecx, 3 */ 16305 _cf = 0; 16306 _flag_k = FK_TEST; 16307 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x31010FBB: 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; } 16308 esi = MEM32(ebp + (-0x10)); /* 0x31010FBD: mov esi, dword ptr [ebp - 0x10] */ 16309 ecx = eax; /* 0x31010FC0: mov ecx, eax */ 16310 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 16311 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16312 ecx = ecx - esi; /* 0x31010FC2: sub ecx, esi */ 16313 _flag_k = FK_CMP; 16314 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16315 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16316 esp = esp + 4; /* 0x31010FC4: add esp, 4 */ 16317 _flag_k = FK_ADD; 16318 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 16319 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16320 edx = edx + ecx; /* 0x31010FC7: add edx, ecx */ 16321 _flag_k = FK_ADD; 16322 MEM32(ebp + (-0xC)) = eax; /* 0x31010FC9: mov dword ptr [ebp - 0xc], eax */ 16323 MEM32(ebp + (-0x4)) = edx; /* 0x31010FCC: mov dword ptr [ebp - 4], edx */ 16324 MEM32(ebp + (-0x10)) = eax; /* 0x31010FCF: mov dword ptr [ebp - 0x10], eax */ 16325 edi = edx; /* 0x31010FD2: mov edi, edx */ 16326 esi = eax; /* 0x31010FD4: mov esi, eax */ 16327 L_31010FD6: 16328 edx = MEM32(ebp + (-0x8)); /* 0x31010FD6: mov edx, dword ptr [ebp - 8] */ 16329 eax = MEM32(edx + 0x4); /* 0x31010FD9: mov eax, dword ptr [edx + 4] */ 16330 PUSH32(esp, 0); /* 0x31010FDC: push 0 */ 16331 PUSH32(esp, ebx); /* 0x31010FDE: push ebx */ 16332 PUSH32(esp, edi); /* 0x31010FDF: push edi */ 16333 PUSH32(esp, eax); /* 0x31010FE0: push eax */ 16334 RECOMP_ICALL(MEM32(0x31048280)); /* 0x31010FE1: call dword ptr [0x31048280] */ 16335 RECOMP_FLAGS_IN(); 16336 /* test eax, eax */ /* 0x31010FE7: test eax, eax */ 16337 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16338 _cf = 0; 16339 _flag_k = FK_TEST; 16340 if (TEST_G(_flag_a, _flag_b)) goto L_31010FFF; /* 0x31010FE9: jg 0x31010fff */ 16341 L_31010FEB: 16342 ecx = MEM32(ebp + (-0x8)); /* 0x31010FEB: mov ecx, dword ptr [ebp - 8] */ 16343 edx = MEM32(ecx); /* 0x31010FEE: mov edx, dword ptr [ecx] */ 16344 PUSH32(esp, 0); /* 0x31010FF0: push 0 */ 16345 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x31010FF2: call dword ptr [edx + 8] */ 16346 RECOMP_FLAGS_IN(); 16347 /* test LO8(eax), LO8(eax) */ /* 0x31010FF5: test al, al */ 16348 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 16349 _cf = 0; 16350 _flag_k = FK_NARROW(FK_TEST, 24); 16351 if (TEST_NZ(_flag_a, _flag_b)) goto L_3101108D; /* 0x31010FF7: jne 0x3101108d */ 16352 L_31010FFD: 16353 RECOMP_BACKEDGE(); 16354 goto L_31010FD6; /* 0x31010FFD: jmp 0x31010fd6 */ 16355 L_31010FFF: 16356 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 16357 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16358 edi = edi + eax; /* 0x31010FFF: add edi, eax */ 16359 _flag_k = FK_ADD; 16360 MEM32(ebp + (-0x4)) = edi; /* 0x31011001: mov dword ptr [ebp - 4], edi */ 16361 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 16362 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16363 ebx = ebx - eax; /* 0x31011004: sub ebx, eax */ 16364 _flag_k = FK_CMP; 16365 RECOMP_BACKEDGE(); 16366 goto L_31010F70; /* 0x31011006: jmp 0x31010f70 */ 16367 L_3101100B: 16368 ebx = MEM32(esi); /* 0x3101100B: mov ebx, dword ptr [esi] */ 16369 /* cmp ebx, 4 */ /* 0x3101100D: cmp ebx, 4 */ 16370 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 16371 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16372 _flag_k = FK_CMP; 16373 if (CMP_BE(_flag_a, _flag_b)) goto L_3101104B; /* 0x31011010: jbe 0x3101104b */ 16374 L_31011012: 16375 /* cmp ebx, 8 */ /* 0x31011012: cmp ebx, 8 */ 16376 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(8); 16377 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16378 _flag_k = FK_CMP; 16379 if (CMP_B(_flag_a, _flag_b)) goto L_3101103C; /* 0x31011015: jb 0x3101103c */ 16380 L_31011017: 16381 PUSH32(esp, ebx); /* 0x31011017: push ebx */ 16382 PUSH32(esp, esi); /* 0x31011018: push esi */ 16383 RECOMP_ICALL(0x310110B0u); /* 0x31011019: call 0x310110b0 */ /* not lifted */ 16384 RECOMP_FLAGS_IN(); 16385 ecx = MEM32(esi + 0x4); /* 0x3101101E: mov ecx, dword ptr [esi + 4] */ 16386 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 16387 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16388 esp = esp + 8; /* 0x31011021: add esp, 8 */ 16389 _flag_k = FK_ADD; 16390 /* cmp ecx, eax */ /* 0x31011024: cmp ecx, eax */ 16391 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 16392 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16393 _flag_k = FK_CMP; 16394 if (CMP_NE(_flag_a, _flag_b)) goto L_3101103C; /* 0x31011026: jne 0x3101103c */ 16395 L_31011028: 16396 edx = MEM32(esi); /* 0x31011028: mov edx, dword ptr [esi] */ 16397 ecx = MEM32(ebp + 0x8); /* 0x3101102A: mov ecx, dword ptr [ebp + 8] */ 16398 eax = MEM32(ecx); /* 0x3101102D: mov eax, dword ptr [ecx] */ 16399 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 16400 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16401 edx = edx - 4; /* 0x3101102F: sub edx, 4 */ 16402 _flag_k = FK_CMP; 16403 PUSH32(esp, edx); /* 0x31011032: push edx */ 16404 edx = esi + 0x8; /* 0x31011033: lea edx, [esi + 8] */ 16405 PUSH32(esp, edx); /* 0x31011036: push edx */ 16406 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x31011037: call dword ptr [eax + 0xc] */ 16407 RECOMP_FLAGS_IN(); 16408 goto L_3101104B; /* 0x3101103A: jmp 0x3101104b */ 16409 L_3101103C: 16410 PUSH32(esp, 1); /* 0x3101103C: push 1 */ 16411 PUSH32(esp, 0x31052524u); /* 0x3101103E: push 0x31052524 */ 16412 RECOMP_ICALL(0x310013E0u); /* 0x31011043: call 0x310013e0 */ /* not lifted */ 16413 RECOMP_FLAGS_IN(); 16414 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 16415 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16416 esp = esp + 8; /* 0x31011048: add esp, 8 */ 16417 _flag_k = FK_ADD; 16418 L_3101104B: 16419 eax = MEM32(ebp + (-0x8)); /* 0x3101104B: mov eax, dword ptr [ebp - 8] */ 16420 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 16421 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16422 edi = edi - ebx; /* 0x3101104E: sub edi, ebx */ 16423 _flag_k = FK_CMP; 16424 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 16425 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16426 edi = edi - esi; /* 0x31011050: sub edi, esi */ 16427 _flag_k = FK_CMP; 16428 MEM32(eax + 0x208) = edi; /* 0x31011052: mov dword ptr [eax + 0x208], edi */ 16429 ecx = edi; /* 0x31011058: mov ecx, edi */ 16430 edi = eax + 0x8; /* 0x3101105A: lea edi, [eax + 8] */ 16431 eax = ecx; /* 0x3101105D: mov eax, ecx */ 16432 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3101105F: shr ecx, 2 */ 16433 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16434 ecx = ecx >> 2u; /* 0x3101105F: shr ecx, 2 */ 16435 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 16436 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16437 esi = esi + ebx; /* 0x31011062: add esi, ebx */ 16438 _flag_k = FK_ADD; 16439 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x31011064: 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; } 16440 ecx = eax; /* 0x31011066: mov ecx, eax */ 16441 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 16442 ecx = ecx & 3; /* 0x31011068: and ecx, 3 */ 16443 _cf = 0; 16444 _flag_k = FK_TEST; 16445 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3101106B: 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; } 16446 ecx = MEM32(ebp + (-0xC)); /* 0x3101106D: mov ecx, dword ptr [ebp - 0xc] */ 16447 PUSH32(esp, ecx); /* 0x31011070: push ecx */ 16448 RECOMP_ICALL(0x31046858u); /* 0x31011071: call 0x31046858 */ /* not lifted */ 16449 RECOMP_FLAGS_IN(); 16450 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16451 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16452 esp = esp + 4; /* 0x31011076: add esp, 4 */ 16453 _flag_k = FK_ADD; 16454 /* cmp ebx, 4 */ /* 0x31011079: cmp ebx, 4 */ 16455 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 16456 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16457 _flag_k = FK_CMP; 16458 RECOMP_BACKEDGE(); 16459 if (CMP_BE(_flag_a, _flag_b)) goto L_31010F4C; /* 0x3101107C: jbe 0x31010f4c */ 16460 L_31011082: 16461 edi = POP32_VAL(esp); /* 0x31011082: pop edi */ 16462 esi = POP32_VAL(esp); /* 0x31011083: pop esi */ 16463 SET_LO8(eax, 1); /* 0x31011084: mov al, 1 */ 16464 ebx = POP32_VAL(esp); /* 0x31011086: pop ebx */ 16465 esp = ebp; /* 0x31011087: mov esp, ebp */ 16466 ebp = POP32_VAL(esp); /* 0x31011089: pop ebp */ 16467 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3101108A: ret 4 */ 16468 L_3101108D: 16469 edx = MEM32(ebp + (-0xC)); /* 0x3101108D: mov edx, dword ptr [ebp - 0xc] */ 16470 PUSH32(esp, edx); /* 0x31011090: push edx */ 16471 RECOMP_ICALL(0x31046858u); /* 0x31011091: call 0x31046858 */ /* not lifted */ 16472 RECOMP_FLAGS_IN(); 16473 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16474 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16475 esp = esp + 4; /* 0x31011096: add esp, 4 */ 16476 _flag_k = FK_ADD; 16477 edi = POP32_VAL(esp); /* 0x31011099: pop edi */ 16478 esi = POP32_VAL(esp); /* 0x3101109A: pop esi */ 16479 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 16480 SET_LO8(eax, 0); /* 0x3101109B: xor al, al */ 16481 _cf = 0; 16482 _flag_k = FK_NARROW(FK_TEST, 24); 16483 ebx = POP32_VAL(esp); /* 0x3101109D: pop ebx */ 16484 esp = ebp; /* 0x3101109E: mov esp, ebp */ 16485 ebp = POP32_VAL(esp); /* 0x310110A0: pop ebp */ 16486 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x310110A1: ret 4 */ 16487 RECOMP_REGS_OUT(); 16488 } 16489 16490 void sub_31010FD6(void) { 16491 int _fpu_cmp = 0; 16492 uint32_t _cf = 0; 16493 int _df = 1; 16494 uint32_t _flag_k = FK_NONE; 16495 uint32_t _flag_a = 0, _flag_b = 0; 16496 uint32_t _itail_tgt = 0; 16497 RECOMP_REGS_LOCALS 16498 RECOMP_ENTER(0x31010FD6u); 16499 16500 goto L_31010FD6; 16501 L_31010F4C: 16502 eax = MEM32(ebp + (-0x8)); /* 0x31010F4C: mov eax, dword ptr [ebp - 8] */ 16503 ecx = MEM32(eax + 0x208); /* 0x31010F4F: mov ecx, dword ptr [eax + 0x208] */ 16504 edi = eax + ecx + 0x8; /* 0x31010F55: lea edi, [eax + ecx + 8] */ 16505 esi = eax + 0x8; /* 0x31010F59: lea esi, [eax + 8] */ 16506 ebx = 0x200u; /* 0x31010F5C: mov ebx, 0x200 */ 16507 MEM32(ebp + (-0x4)) = edi; /* 0x31010F61: mov dword ptr [ebp - 4], edi */ 16508 MEM32(ebp + (-0x10)) = esi; /* 0x31010F64: mov dword ptr [ebp - 0x10], esi */ 16509 MEM32(ebp + (-0xC)) = 0; /* 0x31010F67: mov dword ptr [ebp - 0xc], 0 */ 16510 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 16511 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16512 ebx = ebx - ecx; /* 0x31010F6E: sub ebx, ecx */ 16513 _flag_k = FK_CMP; 16514 L_31010F70: 16515 eax = edi; /* 0x31010F70: mov eax, edi */ 16516 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 16517 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16518 eax = eax - esi; /* 0x31010F72: sub eax, esi */ 16519 _flag_k = FK_CMP; 16520 /* cmp eax, 4 */ /* 0x31010F74: cmp eax, 4 */ 16521 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 16522 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16523 _flag_k = FK_CMP; 16524 MEM32(ebp + (-0x14)) = eax; /* 0x31010F77: mov dword ptr [ebp - 0x14], eax */ 16525 if (CMP_L(_flag_a, _flag_b)) goto L_31010FD6; /* 0x31010F7A: jl 0x31010fd6 */ 16526 L_31010F7C: 16527 ecx = MEM32(esi); /* 0x31010F7C: mov ecx, dword ptr [esi] */ 16528 /* cmp eax, ecx */ /* 0x31010F7E: cmp eax, ecx */ 16529 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 16530 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16531 _flag_k = FK_CMP; 16532 if (CMP_GE(_flag_a, _flag_b)) goto L_3101100B; /* 0x31010F80: jge 0x3101100b */ 16533 L_31010F86: 16534 /* cmp eax, 4 */ /* 0x31010F86: cmp eax, 4 */ 16535 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 16536 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16537 _flag_k = FK_CMP; 16538 if (CMP_L(_flag_a, _flag_b)) goto L_31010FD6; /* 0x31010F89: jl 0x31010fd6 */ 16539 L_31010F8B: 16540 eax = MEM32(ebp + (-0xC)); /* 0x31010F8B: mov eax, dword ptr [ebp - 0xc] */ 16541 /* test eax, eax */ /* 0x31010F8E: test eax, eax */ 16542 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16543 _cf = 0; 16544 _flag_k = FK_TEST; 16545 if (TEST_NZ(_flag_a, _flag_b)) goto L_31010FD6; /* 0x31010F90: jne 0x31010fd6 */ 16546 L_31010F92: 16547 eax = ecx; /* 0x31010F92: mov eax, ecx */ 16548 /* cmp eax, 0x200u */ /* 0x31010F94: cmp eax, 0x200 */ 16549 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x200u); 16550 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16551 _flag_k = FK_CMP; 16552 if (CMP_BE(_flag_a, _flag_b)) goto L_31010FD6; /* 0x31010F99: jbe 0x31010fd6 */ 16553 L_31010F9B: 16554 ebx = eax; /* 0x31010F9B: mov ebx, eax */ 16555 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 16556 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16557 ebx = ebx - edi; /* 0x31010F9D: sub ebx, edi */ 16558 _flag_k = FK_CMP; 16559 PUSH32(esp, eax); /* 0x31010F9F: push eax */ 16560 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 16561 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16562 ebx = ebx + esi; /* 0x31010FA0: add ebx, esi */ 16563 _flag_k = FK_ADD; 16564 RECOMP_ICALL(0x310468DAu); /* 0x31010FA2: call 0x310468da */ /* not lifted */ 16565 RECOMP_FLAGS_IN(); 16566 ecx = MEM32(ebp + (-0x14)); /* 0x31010FA7: mov ecx, dword ptr [ebp - 0x14] */ 16567 edx = ecx; /* 0x31010FAA: mov edx, ecx */ 16568 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x31010FAC: shr ecx, 2 */ 16569 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16570 ecx = ecx >> 2u; /* 0x31010FAC: shr ecx, 2 */ 16571 edi = eax; /* 0x31010FAF: mov edi, eax */ 16572 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x31010FB1: 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; } 16573 ecx = edx; /* 0x31010FB3: mov ecx, edx */ 16574 edx = MEM32(ebp + (-0x4)); /* 0x31010FB5: mov edx, dword ptr [ebp - 4] */ 16575 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 16576 ecx = ecx & 3; /* 0x31010FB8: and ecx, 3 */ 16577 _cf = 0; 16578 _flag_k = FK_TEST; 16579 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x31010FBB: 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; } 16580 esi = MEM32(ebp + (-0x10)); /* 0x31010FBD: mov esi, dword ptr [ebp - 0x10] */ 16581 ecx = eax; /* 0x31010FC0: mov ecx, eax */ 16582 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 16583 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16584 ecx = ecx - esi; /* 0x31010FC2: sub ecx, esi */ 16585 _flag_k = FK_CMP; 16586 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16587 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16588 esp = esp + 4; /* 0x31010FC4: add esp, 4 */ 16589 _flag_k = FK_ADD; 16590 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 16591 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16592 edx = edx + ecx; /* 0x31010FC7: add edx, ecx */ 16593 _flag_k = FK_ADD; 16594 MEM32(ebp + (-0xC)) = eax; /* 0x31010FC9: mov dword ptr [ebp - 0xc], eax */ 16595 MEM32(ebp + (-0x4)) = edx; /* 0x31010FCC: mov dword ptr [ebp - 4], edx */ 16596 MEM32(ebp + (-0x10)) = eax; /* 0x31010FCF: mov dword ptr [ebp - 0x10], eax */ 16597 edi = edx; /* 0x31010FD2: mov edi, edx */ 16598 esi = eax; /* 0x31010FD4: mov esi, eax */ 16599 L_31010FD6: 16600 edx = MEM32(ebp + (-0x8)); /* 0x31010FD6: mov edx, dword ptr [ebp - 8] */ 16601 eax = MEM32(edx + 0x4); /* 0x31010FD9: mov eax, dword ptr [edx + 4] */ 16602 PUSH32(esp, 0); /* 0x31010FDC: push 0 */ 16603 PUSH32(esp, ebx); /* 0x31010FDE: push ebx */ 16604 PUSH32(esp, edi); /* 0x31010FDF: push edi */ 16605 PUSH32(esp, eax); /* 0x31010FE0: push eax */ 16606 RECOMP_ICALL(MEM32(0x31048280)); /* 0x31010FE1: call dword ptr [0x31048280] */ 16607 RECOMP_FLAGS_IN(); 16608 /* test eax, eax */ /* 0x31010FE7: test eax, eax */ 16609 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16610 _cf = 0; 16611 _flag_k = FK_TEST; 16612 if (TEST_G(_flag_a, _flag_b)) goto L_31010FFF; /* 0x31010FE9: jg 0x31010fff */ 16613 L_31010FEB: 16614 ecx = MEM32(ebp + (-0x8)); /* 0x31010FEB: mov ecx, dword ptr [ebp - 8] */ 16615 edx = MEM32(ecx); /* 0x31010FEE: mov edx, dword ptr [ecx] */ 16616 PUSH32(esp, 0); /* 0x31010FF0: push 0 */ 16617 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x31010FF2: call dword ptr [edx + 8] */ 16618 RECOMP_FLAGS_IN(); 16619 /* test LO8(eax), LO8(eax) */ /* 0x31010FF5: test al, al */ 16620 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 16621 _cf = 0; 16622 _flag_k = FK_NARROW(FK_TEST, 24); 16623 if (TEST_NZ(_flag_a, _flag_b)) goto L_3101108D; /* 0x31010FF7: jne 0x3101108d */ 16624 L_31010FFD: 16625 RECOMP_BACKEDGE(); 16626 goto L_31010FD6; /* 0x31010FFD: jmp 0x31010fd6 */ 16627 L_31010FFF: 16628 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 16629 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16630 edi = edi + eax; /* 0x31010FFF: add edi, eax */ 16631 _flag_k = FK_ADD; 16632 MEM32(ebp + (-0x4)) = edi; /* 0x31011001: mov dword ptr [ebp - 4], edi */ 16633 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 16634 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16635 ebx = ebx - eax; /* 0x31011004: sub ebx, eax */ 16636 _flag_k = FK_CMP; 16637 RECOMP_BACKEDGE(); 16638 goto L_31010F70; /* 0x31011006: jmp 0x31010f70 */ 16639 L_3101100B: 16640 ebx = MEM32(esi); /* 0x3101100B: mov ebx, dword ptr [esi] */ 16641 /* cmp ebx, 4 */ /* 0x3101100D: cmp ebx, 4 */ 16642 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 16643 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16644 _flag_k = FK_CMP; 16645 if (CMP_BE(_flag_a, _flag_b)) goto L_3101104B; /* 0x31011010: jbe 0x3101104b */ 16646 L_31011012: 16647 /* cmp ebx, 8 */ /* 0x31011012: cmp ebx, 8 */ 16648 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(8); 16649 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16650 _flag_k = FK_CMP; 16651 if (CMP_B(_flag_a, _flag_b)) goto L_3101103C; /* 0x31011015: jb 0x3101103c */ 16652 L_31011017: 16653 PUSH32(esp, ebx); /* 0x31011017: push ebx */ 16654 PUSH32(esp, esi); /* 0x31011018: push esi */ 16655 RECOMP_ICALL(0x310110B0u); /* 0x31011019: call 0x310110b0 */ /* not lifted */ 16656 RECOMP_FLAGS_IN(); 16657 ecx = MEM32(esi + 0x4); /* 0x3101101E: mov ecx, dword ptr [esi + 4] */ 16658 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 16659 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16660 esp = esp + 8; /* 0x31011021: add esp, 8 */ 16661 _flag_k = FK_ADD; 16662 /* cmp ecx, eax */ /* 0x31011024: cmp ecx, eax */ 16663 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 16664 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16665 _flag_k = FK_CMP; 16666 if (CMP_NE(_flag_a, _flag_b)) goto L_3101103C; /* 0x31011026: jne 0x3101103c */ 16667 L_31011028: 16668 edx = MEM32(esi); /* 0x31011028: mov edx, dword ptr [esi] */ 16669 ecx = MEM32(ebp + 0x8); /* 0x3101102A: mov ecx, dword ptr [ebp + 8] */ 16670 eax = MEM32(ecx); /* 0x3101102D: mov eax, dword ptr [ecx] */ 16671 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 16672 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16673 edx = edx - 4; /* 0x3101102F: sub edx, 4 */ 16674 _flag_k = FK_CMP; 16675 PUSH32(esp, edx); /* 0x31011032: push edx */ 16676 edx = esi + 0x8; /* 0x31011033: lea edx, [esi + 8] */ 16677 PUSH32(esp, edx); /* 0x31011036: push edx */ 16678 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x31011037: call dword ptr [eax + 0xc] */ 16679 RECOMP_FLAGS_IN(); 16680 goto L_3101104B; /* 0x3101103A: jmp 0x3101104b */ 16681 L_3101103C: 16682 PUSH32(esp, 1); /* 0x3101103C: push 1 */ 16683 PUSH32(esp, 0x31052524u); /* 0x3101103E: push 0x31052524 */ 16684 RECOMP_ICALL(0x310013E0u); /* 0x31011043: call 0x310013e0 */ /* not lifted */ 16685 RECOMP_FLAGS_IN(); 16686 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 16687 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16688 esp = esp + 8; /* 0x31011048: add esp, 8 */ 16689 _flag_k = FK_ADD; 16690 L_3101104B: 16691 eax = MEM32(ebp + (-0x8)); /* 0x3101104B: mov eax, dword ptr [ebp - 8] */ 16692 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 16693 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16694 edi = edi - ebx; /* 0x3101104E: sub edi, ebx */ 16695 _flag_k = FK_CMP; 16696 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 16697 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16698 edi = edi - esi; /* 0x31011050: sub edi, esi */ 16699 _flag_k = FK_CMP; 16700 MEM32(eax + 0x208) = edi; /* 0x31011052: mov dword ptr [eax + 0x208], edi */ 16701 ecx = edi; /* 0x31011058: mov ecx, edi */ 16702 edi = eax + 0x8; /* 0x3101105A: lea edi, [eax + 8] */ 16703 eax = ecx; /* 0x3101105D: mov eax, ecx */ 16704 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3101105F: shr ecx, 2 */ 16705 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16706 ecx = ecx >> 2u; /* 0x3101105F: shr ecx, 2 */ 16707 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 16708 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16709 esi = esi + ebx; /* 0x31011062: add esi, ebx */ 16710 _flag_k = FK_ADD; 16711 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x31011064: 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; } 16712 ecx = eax; /* 0x31011066: mov ecx, eax */ 16713 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 16714 ecx = ecx & 3; /* 0x31011068: and ecx, 3 */ 16715 _cf = 0; 16716 _flag_k = FK_TEST; 16717 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3101106B: 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; } 16718 ecx = MEM32(ebp + (-0xC)); /* 0x3101106D: mov ecx, dword ptr [ebp - 0xc] */ 16719 PUSH32(esp, ecx); /* 0x31011070: push ecx */ 16720 RECOMP_ICALL(0x31046858u); /* 0x31011071: call 0x31046858 */ /* not lifted */ 16721 RECOMP_FLAGS_IN(); 16722 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16723 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16724 esp = esp + 4; /* 0x31011076: add esp, 4 */ 16725 _flag_k = FK_ADD; 16726 /* cmp ebx, 4 */ /* 0x31011079: cmp ebx, 4 */ 16727 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 16728 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16729 _flag_k = FK_CMP; 16730 RECOMP_BACKEDGE(); 16731 if (CMP_BE(_flag_a, _flag_b)) goto L_31010F4C; /* 0x3101107C: jbe 0x31010f4c */ 16732 L_31011082: 16733 edi = POP32_VAL(esp); /* 0x31011082: pop edi */ 16734 esi = POP32_VAL(esp); /* 0x31011083: pop esi */ 16735 SET_LO8(eax, 1); /* 0x31011084: mov al, 1 */ 16736 ebx = POP32_VAL(esp); /* 0x31011086: pop ebx */ 16737 esp = ebp; /* 0x31011087: mov esp, ebp */ 16738 ebp = POP32_VAL(esp); /* 0x31011089: pop ebp */ 16739 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3101108A: ret 4 */ 16740 L_3101108D: 16741 edx = MEM32(ebp + (-0xC)); /* 0x3101108D: mov edx, dword ptr [ebp - 0xc] */ 16742 PUSH32(esp, edx); /* 0x31011090: push edx */ 16743 RECOMP_ICALL(0x31046858u); /* 0x31011091: call 0x31046858 */ /* not lifted */ 16744 RECOMP_FLAGS_IN(); 16745 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16746 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16747 esp = esp + 4; /* 0x31011096: add esp, 4 */ 16748 _flag_k = FK_ADD; 16749 edi = POP32_VAL(esp); /* 0x31011099: pop edi */ 16750 esi = POP32_VAL(esp); /* 0x3101109A: pop esi */ 16751 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 16752 SET_LO8(eax, 0); /* 0x3101109B: xor al, al */ 16753 _cf = 0; 16754 _flag_k = FK_NARROW(FK_TEST, 24); 16755 ebx = POP32_VAL(esp); /* 0x3101109D: pop ebx */ 16756 esp = ebp; /* 0x3101109E: mov esp, ebp */ 16757 ebp = POP32_VAL(esp); /* 0x310110A0: pop ebp */ 16758 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x310110A1: ret 4 */ 16759 RECOMP_REGS_OUT(); 16760 } 16761 16762 void sub_3101104B(void) { 16763 int _fpu_cmp = 0; 16764 uint32_t _cf = 0; 16765 int _df = 1; 16766 uint32_t _flag_k = FK_NONE; 16767 uint32_t _flag_a = 0, _flag_b = 0; 16768 uint32_t _itail_tgt = 0; 16769 RECOMP_REGS_LOCALS 16770 RECOMP_ENTER(0x3101104Bu); 16771 16772 goto L_3101104B; 16773 L_31010F4C: 16774 eax = MEM32(ebp + (-0x8)); /* 0x31010F4C: mov eax, dword ptr [ebp - 8] */ 16775 ecx = MEM32(eax + 0x208); /* 0x31010F4F: mov ecx, dword ptr [eax + 0x208] */ 16776 edi = eax + ecx + 0x8; /* 0x31010F55: lea edi, [eax + ecx + 8] */ 16777 esi = eax + 0x8; /* 0x31010F59: lea esi, [eax + 8] */ 16778 ebx = 0x200u; /* 0x31010F5C: mov ebx, 0x200 */ 16779 MEM32(ebp + (-0x4)) = edi; /* 0x31010F61: mov dword ptr [ebp - 4], edi */ 16780 MEM32(ebp + (-0x10)) = esi; /* 0x31010F64: mov dword ptr [ebp - 0x10], esi */ 16781 MEM32(ebp + (-0xC)) = 0; /* 0x31010F67: mov dword ptr [ebp - 0xc], 0 */ 16782 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 16783 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16784 ebx = ebx - ecx; /* 0x31010F6E: sub ebx, ecx */ 16785 _flag_k = FK_CMP; 16786 L_31010F70: 16787 eax = edi; /* 0x31010F70: mov eax, edi */ 16788 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 16789 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16790 eax = eax - esi; /* 0x31010F72: sub eax, esi */ 16791 _flag_k = FK_CMP; 16792 /* cmp eax, 4 */ /* 0x31010F74: cmp eax, 4 */ 16793 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 16794 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16795 _flag_k = FK_CMP; 16796 MEM32(ebp + (-0x14)) = eax; /* 0x31010F77: mov dword ptr [ebp - 0x14], eax */ 16797 if (CMP_L(_flag_a, _flag_b)) goto L_31010FD6; /* 0x31010F7A: jl 0x31010fd6 */ 16798 L_31010F7C: 16799 ecx = MEM32(esi); /* 0x31010F7C: mov ecx, dword ptr [esi] */ 16800 /* cmp eax, ecx */ /* 0x31010F7E: cmp eax, ecx */ 16801 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 16802 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16803 _flag_k = FK_CMP; 16804 if (CMP_GE(_flag_a, _flag_b)) goto L_3101100B; /* 0x31010F80: jge 0x3101100b */ 16805 L_31010F86: 16806 /* cmp eax, 4 */ /* 0x31010F86: cmp eax, 4 */ 16807 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 16808 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16809 _flag_k = FK_CMP; 16810 if (CMP_L(_flag_a, _flag_b)) goto L_31010FD6; /* 0x31010F89: jl 0x31010fd6 */ 16811 L_31010F8B: 16812 eax = MEM32(ebp + (-0xC)); /* 0x31010F8B: mov eax, dword ptr [ebp - 0xc] */ 16813 /* test eax, eax */ /* 0x31010F8E: test eax, eax */ 16814 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16815 _cf = 0; 16816 _flag_k = FK_TEST; 16817 if (TEST_NZ(_flag_a, _flag_b)) goto L_31010FD6; /* 0x31010F90: jne 0x31010fd6 */ 16818 L_31010F92: 16819 eax = ecx; /* 0x31010F92: mov eax, ecx */ 16820 /* cmp eax, 0x200u */ /* 0x31010F94: cmp eax, 0x200 */ 16821 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x200u); 16822 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16823 _flag_k = FK_CMP; 16824 if (CMP_BE(_flag_a, _flag_b)) goto L_31010FD6; /* 0x31010F99: jbe 0x31010fd6 */ 16825 L_31010F9B: 16826 ebx = eax; /* 0x31010F9B: mov ebx, eax */ 16827 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 16828 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16829 ebx = ebx - edi; /* 0x31010F9D: sub ebx, edi */ 16830 _flag_k = FK_CMP; 16831 PUSH32(esp, eax); /* 0x31010F9F: push eax */ 16832 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 16833 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16834 ebx = ebx + esi; /* 0x31010FA0: add ebx, esi */ 16835 _flag_k = FK_ADD; 16836 RECOMP_ICALL(0x310468DAu); /* 0x31010FA2: call 0x310468da */ /* not lifted */ 16837 RECOMP_FLAGS_IN(); 16838 ecx = MEM32(ebp + (-0x14)); /* 0x31010FA7: mov ecx, dword ptr [ebp - 0x14] */ 16839 edx = ecx; /* 0x31010FAA: mov edx, ecx */ 16840 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x31010FAC: shr ecx, 2 */ 16841 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16842 ecx = ecx >> 2u; /* 0x31010FAC: shr ecx, 2 */ 16843 edi = eax; /* 0x31010FAF: mov edi, eax */ 16844 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x31010FB1: 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; } 16845 ecx = edx; /* 0x31010FB3: mov ecx, edx */ 16846 edx = MEM32(ebp + (-0x4)); /* 0x31010FB5: mov edx, dword ptr [ebp - 4] */ 16847 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 16848 ecx = ecx & 3; /* 0x31010FB8: and ecx, 3 */ 16849 _cf = 0; 16850 _flag_k = FK_TEST; 16851 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x31010FBB: 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; } 16852 esi = MEM32(ebp + (-0x10)); /* 0x31010FBD: mov esi, dword ptr [ebp - 0x10] */ 16853 ecx = eax; /* 0x31010FC0: mov ecx, eax */ 16854 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 16855 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16856 ecx = ecx - esi; /* 0x31010FC2: sub ecx, esi */ 16857 _flag_k = FK_CMP; 16858 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16859 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16860 esp = esp + 4; /* 0x31010FC4: add esp, 4 */ 16861 _flag_k = FK_ADD; 16862 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 16863 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16864 edx = edx + ecx; /* 0x31010FC7: add edx, ecx */ 16865 _flag_k = FK_ADD; 16866 MEM32(ebp + (-0xC)) = eax; /* 0x31010FC9: mov dword ptr [ebp - 0xc], eax */ 16867 MEM32(ebp + (-0x4)) = edx; /* 0x31010FCC: mov dword ptr [ebp - 4], edx */ 16868 MEM32(ebp + (-0x10)) = eax; /* 0x31010FCF: mov dword ptr [ebp - 0x10], eax */ 16869 edi = edx; /* 0x31010FD2: mov edi, edx */ 16870 esi = eax; /* 0x31010FD4: mov esi, eax */ 16871 L_31010FD6: 16872 edx = MEM32(ebp + (-0x8)); /* 0x31010FD6: mov edx, dword ptr [ebp - 8] */ 16873 eax = MEM32(edx + 0x4); /* 0x31010FD9: mov eax, dword ptr [edx + 4] */ 16874 PUSH32(esp, 0); /* 0x31010FDC: push 0 */ 16875 PUSH32(esp, ebx); /* 0x31010FDE: push ebx */ 16876 PUSH32(esp, edi); /* 0x31010FDF: push edi */ 16877 PUSH32(esp, eax); /* 0x31010FE0: push eax */ 16878 RECOMP_ICALL(MEM32(0x31048280)); /* 0x31010FE1: call dword ptr [0x31048280] */ 16879 RECOMP_FLAGS_IN(); 16880 /* test eax, eax */ /* 0x31010FE7: test eax, eax */ 16881 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16882 _cf = 0; 16883 _flag_k = FK_TEST; 16884 if (TEST_G(_flag_a, _flag_b)) goto L_31010FFF; /* 0x31010FE9: jg 0x31010fff */ 16885 L_31010FEB: 16886 ecx = MEM32(ebp + (-0x8)); /* 0x31010FEB: mov ecx, dword ptr [ebp - 8] */ 16887 edx = MEM32(ecx); /* 0x31010FEE: mov edx, dword ptr [ecx] */ 16888 PUSH32(esp, 0); /* 0x31010FF0: push 0 */ 16889 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x31010FF2: call dword ptr [edx + 8] */ 16890 RECOMP_FLAGS_IN(); 16891 /* test LO8(eax), LO8(eax) */ /* 0x31010FF5: test al, al */ 16892 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 16893 _cf = 0; 16894 _flag_k = FK_NARROW(FK_TEST, 24); 16895 if (TEST_NZ(_flag_a, _flag_b)) goto L_3101108D; /* 0x31010FF7: jne 0x3101108d */ 16896 L_31010FFD: 16897 RECOMP_BACKEDGE(); 16898 goto L_31010FD6; /* 0x31010FFD: jmp 0x31010fd6 */ 16899 L_31010FFF: 16900 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 16901 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16902 edi = edi + eax; /* 0x31010FFF: add edi, eax */ 16903 _flag_k = FK_ADD; 16904 MEM32(ebp + (-0x4)) = edi; /* 0x31011001: mov dword ptr [ebp - 4], edi */ 16905 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 16906 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16907 ebx = ebx - eax; /* 0x31011004: sub ebx, eax */ 16908 _flag_k = FK_CMP; 16909 RECOMP_BACKEDGE(); 16910 goto L_31010F70; /* 0x31011006: jmp 0x31010f70 */ 16911 L_3101100B: 16912 ebx = MEM32(esi); /* 0x3101100B: mov ebx, dword ptr [esi] */ 16913 /* cmp ebx, 4 */ /* 0x3101100D: cmp ebx, 4 */ 16914 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 16915 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16916 _flag_k = FK_CMP; 16917 if (CMP_BE(_flag_a, _flag_b)) goto L_3101104B; /* 0x31011010: jbe 0x3101104b */ 16918 L_31011012: 16919 /* cmp ebx, 8 */ /* 0x31011012: cmp ebx, 8 */ 16920 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(8); 16921 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16922 _flag_k = FK_CMP; 16923 if (CMP_B(_flag_a, _flag_b)) goto L_3101103C; /* 0x31011015: jb 0x3101103c */ 16924 L_31011017: 16925 PUSH32(esp, ebx); /* 0x31011017: push ebx */ 16926 PUSH32(esp, esi); /* 0x31011018: push esi */ 16927 RECOMP_ICALL(0x310110B0u); /* 0x31011019: call 0x310110b0 */ /* not lifted */ 16928 RECOMP_FLAGS_IN(); 16929 ecx = MEM32(esi + 0x4); /* 0x3101101E: mov ecx, dword ptr [esi + 4] */ 16930 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 16931 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16932 esp = esp + 8; /* 0x31011021: add esp, 8 */ 16933 _flag_k = FK_ADD; 16934 /* cmp ecx, eax */ /* 0x31011024: cmp ecx, eax */ 16935 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 16936 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16937 _flag_k = FK_CMP; 16938 if (CMP_NE(_flag_a, _flag_b)) goto L_3101103C; /* 0x31011026: jne 0x3101103c */ 16939 L_31011028: 16940 edx = MEM32(esi); /* 0x31011028: mov edx, dword ptr [esi] */ 16941 ecx = MEM32(ebp + 0x8); /* 0x3101102A: mov ecx, dword ptr [ebp + 8] */ 16942 eax = MEM32(ecx); /* 0x3101102D: mov eax, dword ptr [ecx] */ 16943 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 16944 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16945 edx = edx - 4; /* 0x3101102F: sub edx, 4 */ 16946 _flag_k = FK_CMP; 16947 PUSH32(esp, edx); /* 0x31011032: push edx */ 16948 edx = esi + 0x8; /* 0x31011033: lea edx, [esi + 8] */ 16949 PUSH32(esp, edx); /* 0x31011036: push edx */ 16950 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x31011037: call dword ptr [eax + 0xc] */ 16951 RECOMP_FLAGS_IN(); 16952 goto L_3101104B; /* 0x3101103A: jmp 0x3101104b */ 16953 L_3101103C: 16954 PUSH32(esp, 1); /* 0x3101103C: push 1 */ 16955 PUSH32(esp, 0x31052524u); /* 0x3101103E: push 0x31052524 */ 16956 RECOMP_ICALL(0x310013E0u); /* 0x31011043: call 0x310013e0 */ /* not lifted */ 16957 RECOMP_FLAGS_IN(); 16958 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 16959 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16960 esp = esp + 8; /* 0x31011048: add esp, 8 */ 16961 _flag_k = FK_ADD; 16962 L_3101104B: 16963 eax = MEM32(ebp + (-0x8)); /* 0x3101104B: mov eax, dword ptr [ebp - 8] */ 16964 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 16965 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16966 edi = edi - ebx; /* 0x3101104E: sub edi, ebx */ 16967 _flag_k = FK_CMP; 16968 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 16969 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16970 edi = edi - esi; /* 0x31011050: sub edi, esi */ 16971 _flag_k = FK_CMP; 16972 MEM32(eax + 0x208) = edi; /* 0x31011052: mov dword ptr [eax + 0x208], edi */ 16973 ecx = edi; /* 0x31011058: mov ecx, edi */ 16974 edi = eax + 0x8; /* 0x3101105A: lea edi, [eax + 8] */ 16975 eax = ecx; /* 0x3101105D: mov eax, ecx */ 16976 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3101105F: shr ecx, 2 */ 16977 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16978 ecx = ecx >> 2u; /* 0x3101105F: shr ecx, 2 */ 16979 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 16980 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16981 esi = esi + ebx; /* 0x31011062: add esi, ebx */ 16982 _flag_k = FK_ADD; 16983 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x31011064: 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; } 16984 ecx = eax; /* 0x31011066: mov ecx, eax */ 16985 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 16986 ecx = ecx & 3; /* 0x31011068: and ecx, 3 */ 16987 _cf = 0; 16988 _flag_k = FK_TEST; 16989 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3101106B: 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; } 16990 ecx = MEM32(ebp + (-0xC)); /* 0x3101106D: mov ecx, dword ptr [ebp - 0xc] */ 16991 PUSH32(esp, ecx); /* 0x31011070: push ecx */ 16992 RECOMP_ICALL(0x31046858u); /* 0x31011071: call 0x31046858 */ /* not lifted */ 16993 RECOMP_FLAGS_IN(); 16994 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16995 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16996 esp = esp + 4; /* 0x31011076: add esp, 4 */ 16997 _flag_k = FK_ADD; 16998 /* cmp ebx, 4 */ /* 0x31011079: cmp ebx, 4 */ 16999 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 17000 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17001 _flag_k = FK_CMP; 17002 RECOMP_BACKEDGE(); 17003 if (CMP_BE(_flag_a, _flag_b)) goto L_31010F4C; /* 0x3101107C: jbe 0x31010f4c */ 17004 L_31011082: 17005 edi = POP32_VAL(esp); /* 0x31011082: pop edi */ 17006 esi = POP32_VAL(esp); /* 0x31011083: pop esi */ 17007 SET_LO8(eax, 1); /* 0x31011084: mov al, 1 */ 17008 ebx = POP32_VAL(esp); /* 0x31011086: pop ebx */ 17009 esp = ebp; /* 0x31011087: mov esp, ebp */ 17010 ebp = POP32_VAL(esp); /* 0x31011089: pop ebp */ 17011 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3101108A: ret 4 */ 17012 L_3101108D: 17013 edx = MEM32(ebp + (-0xC)); /* 0x3101108D: mov edx, dword ptr [ebp - 0xc] */ 17014 PUSH32(esp, edx); /* 0x31011090: push edx */ 17015 RECOMP_ICALL(0x31046858u); /* 0x31011091: call 0x31046858 */ /* not lifted */ 17016 RECOMP_FLAGS_IN(); 17017 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 17018 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17019 esp = esp + 4; /* 0x31011096: add esp, 4 */ 17020 _flag_k = FK_ADD; 17021 edi = POP32_VAL(esp); /* 0x31011099: pop edi */ 17022 esi = POP32_VAL(esp); /* 0x3101109A: pop esi */ 17023 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 17024 SET_LO8(eax, 0); /* 0x3101109B: xor al, al */ 17025 _cf = 0; 17026 _flag_k = FK_NARROW(FK_TEST, 24); 17027 ebx = POP32_VAL(esp); /* 0x3101109D: pop ebx */ 17028 esp = ebp; /* 0x3101109E: mov esp, ebp */ 17029 ebp = POP32_VAL(esp); /* 0x310110A0: pop ebp */ 17030 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x310110A1: ret 4 */ 17031 RECOMP_REGS_OUT(); 17032 } 17033 17034 void sub_310110B0(void) { 17035 int _fpu_cmp = 0; 17036 uint32_t _cf = 0; 17037 int _df = 1; 17038 uint32_t _flag_k = FK_NONE; 17039 uint32_t _flag_a = 0, _flag_b = 0; 17040 uint32_t _itail_tgt = 0; 17041 RECOMP_REGS_LOCALS 17042 RECOMP_ENTER(0x310110B0u); 17043 17044 L_310110B0: 17045 PUSH32(esp, ebp); /* 0x310110B0: push ebp */ 17046 ebp = esp; /* 0x310110B1: mov ebp, esp */ 17047 edx = MEM32(ebp + 0xC); /* 0x310110B3: mov edx, dword ptr [ebp + 0xc] */ 17048 ecx = 8; /* 0x310110B6: mov ecx, 8 */ 17049 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 17050 eax = 0; /* 0x310110BB: xor eax, eax */ 17051 _cf = 0; 17052 _flag_k = FK_TEST; 17053 /* cmp edx, ecx */ /* 0x310110BD: cmp edx, ecx */ 17054 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 17055 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17056 _flag_k = FK_CMP; 17057 if (CMP_BE(_flag_a, _flag_b)) goto L_310110D4; /* 0x310110BF: jbe 0x310110d4 */ 17058 L_310110C1: 17059 PUSH32(esp, esi); /* 0x310110C1: push esi */ 17060 esi = MEM32(ebp + 0x8); /* 0x310110C2: mov esi, dword ptr [ebp + 8] */ 17061 PUSH32(esp, edi); /* 0x310110C5: push edi */ 17062 L_310110C6: 17063 edi = MEM32(ecx + esi); /* 0x310110C6: mov edi, dword ptr [ecx + esi] */ 17064 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 17065 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17066 ecx = ecx + 4; /* 0x310110C9: add ecx, 4 */ 17067 _flag_k = FK_ADD; 17068 _flag_a = (uint32_t)((eax ^ edi)); _flag_b = (uint32_t)((eax ^ edi)); 17069 eax = eax ^ edi; /* 0x310110CC: xor eax, edi */ 17070 _cf = 0; 17071 _flag_k = FK_TEST; 17072 /* cmp ecx, edx */ /* 0x310110CE: cmp ecx, edx */ 17073 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 17074 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17075 _flag_k = FK_CMP; 17076 RECOMP_BACKEDGE(); 17077 if (CMP_B(_flag_a, _flag_b)) goto L_310110C6; /* 0x310110D0: jb 0x310110c6 */ 17078 L_310110D2: 17079 edi = POP32_VAL(esp); /* 0x310110D2: pop edi */ 17080 esi = POP32_VAL(esp); /* 0x310110D3: pop esi */ 17081 L_310110D4: 17082 ebp = POP32_VAL(esp); /* 0x310110D4: pop ebp */ 17083 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x310110D5: ret */ 17084 RECOMP_REGS_OUT(); 17085 } 17086 17087 void sub_310110E0(void) { 17088 int _fpu_cmp = 0; 17089 uint32_t _cf = 0; 17090 int _df = 1; 17091 uint32_t _flag_k = FK_NONE; 17092 uint32_t _flag_a = 0, _flag_b = 0; 17093 uint32_t _itail_tgt = 0; 17094 RECOMP_REGS_LOCALS 17095 RECOMP_ENTER(0x310110E0u); 17096 17097 L_310110E0: 17098 RECOMP_ICALL(0x310110F0u); /* 0x310110E0: call 0x310110f0 */ /* not lifted */ 17099 RECOMP_FLAGS_IN(); 17100 goto L_31011100; /* 0x310110E5: jmp 0x31011100 */ 17101 L_31011100: 17102 PUSH32(esp, 0x31011110u); /* 0x31011100: push 0x31011110 */ 17103 RECOMP_ICALL(0x310468C8u); /* 0x31011105: call 0x310468c8 */ /* not lifted */ 17104 RECOMP_FLAGS_IN(); 17105 ecx = POP32_VAL(esp); /* 0x3101110A: pop ecx */ 17106 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3101110B: ret */ 17107 RECOMP_REGS_OUT(); 17108 } 17109 17110 void sub_310110F0(void) { 17111 int _fpu_cmp = 0; 17112 uint32_t _cf = 0; 17113 int _df = 1; 17114 uint32_t _flag_k = FK_NONE; 17115 uint32_t _flag_a = 0, _flag_b = 0; 17116 uint32_t _itail_tgt = 0; 17117 RECOMP_REGS_LOCALS 17118 RECOMP_ENTER(0x310110F0u); 17119 17120 L_310110F0: 17121 ecx = 0x31057E79u; /* 0x310110F0: mov ecx, 0x31057e79 */ 17122 L_310110F5: 17123 { _itail_tgt = (uint32_t)(MEM32(0x31048108)); goto _ljump; } 17124 { RECOMP_REGS_OUT(); return; } /* end of function */ 17125 _ljump: 17126 switch (_itail_tgt) { 17127 case 0x310110F0u: goto L_310110F0; 17128 case 0x310110F5u: goto L_310110F5; 17129 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 17130 } 17131 RECOMP_REGS_OUT(); 17132 } 17133 17134 void sub_31011100(void) { 17135 int _fpu_cmp = 0; 17136 uint32_t _cf = 0; 17137 int _df = 1; 17138 uint32_t _flag_k = FK_NONE; 17139 uint32_t _flag_a = 0, _flag_b = 0; 17140 uint32_t _itail_tgt = 0; 17141 RECOMP_REGS_LOCALS 17142 RECOMP_ENTER(0x31011100u); 17143 17144 L_31011100: 17145 PUSH32(esp, 0x31011110u); /* 0x31011100: push 0x31011110 */ 17146 RECOMP_ICALL(0x310468C8u); /* 0x31011105: call 0x310468c8 */ /* not lifted */ 17147 RECOMP_FLAGS_IN(); 17148 ecx = POP32_VAL(esp); /* 0x3101110A: pop ecx */ 17149 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3101110B: ret */ 17150 RECOMP_REGS_OUT(); 17151 } 17152 17153 void sub_31011110(void) { 17154 int _fpu_cmp = 0; 17155 uint32_t _cf = 0; 17156 int _df = 1; 17157 uint32_t _flag_k = FK_NONE; 17158 uint32_t _flag_a = 0, _flag_b = 0; 17159 uint32_t _itail_tgt = 0; 17160 RECOMP_REGS_LOCALS 17161 RECOMP_ENTER(0x31011110u); 17162 17163 L_31011110: 17164 ecx = 0x31057E79u; /* 0x31011110: mov ecx, 0x31057e79 */ 17165 L_31011115: 17166 { _itail_tgt = (uint32_t)(MEM32(0x3104807C)); goto _ljump; } 17167 { RECOMP_REGS_OUT(); return; } /* end of function */ 17168 _ljump: 17169 switch (_itail_tgt) { 17170 case 0x31011110u: goto L_31011110; 17171 case 0x31011115u: goto L_31011115; 17172 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 17173 } 17174 RECOMP_REGS_OUT(); 17175 }