client/vendor/ace/source/lifted-0024.c (333350B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 4 void sub_47030720(void) { 5 int _fpu_cmp = 0; 6 uint32_t _cf = 0; 7 int _df = 1; 8 uint32_t _flag_k = FK_NONE; 9 uint32_t _flag_a = 0, _flag_b = 0; 10 uint32_t _itail_tgt = 0; 11 RECOMP_REGS_LOCALS 12 RECOMP_ENTER(0x47030720u); 13 14 L_47030720: 15 eax = MEM32(0x470AC320); /* 0x47030720: mov eax, dword ptr [0x470ac320] */ 16 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x20u); 17 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18 eax = eax + 0x20u; /* 0x47030725: add eax, 0x20 */ 19 _flag_k = FK_ADD; 20 PUSH32(esp, eax); /* 0x47030728: push eax */ 21 PUSH32(esp, 1); /* 0x47030729: push 1 */ 22 PUSH32(esp, 3); /* 0x4703072B: push 3 */ 23 RECOMP_ICALL(0x47081660u); /* 0x4703072D: call 0x47081660 */ /* not lifted */ 24 RECOMP_FLAGS_IN(); 25 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47030732: ret */ 26 RECOMP_REGS_OUT(); 27 } 28 29 void sub_47030740(void) { 30 int _fpu_cmp = 0; 31 uint32_t _cf = 0; 32 int _df = 1; 33 uint32_t _flag_k = FK_NONE; 34 uint32_t _flag_a = 0, _flag_b = 0; 35 uint32_t _itail_tgt = 0; 36 RECOMP_REGS_LOCALS 37 RECOMP_ENTER(0x47030740u); 38 39 L_47030740: 40 MEM32(0x4710E320) = 0x471068D4u; /* 0x47030740: mov dword ptr [0x4710e320], 0x471068d4 */ 41 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703074A: ret */ 42 RECOMP_REGS_OUT(); 43 } 44 45 void sub_47030750(void) { 46 int _fpu_cmp = 0; 47 uint32_t _cf = 0; 48 int _df = 1; 49 uint32_t _flag_k = FK_NONE; 50 uint32_t _flag_a = 0, _flag_b = 0; 51 uint32_t _itail_tgt = 0; 52 RECOMP_REGS_LOCALS 53 RECOMP_ENTER(0x47030750u); 54 55 L_47030750: 56 eax = MEM32(FS_BASE + (0)); /* 0x47030750: mov eax, dword ptr fs:[0] */ 57 PUSH32(esp, 0xFFFFFFFFu); /* 0x47030756: push -1 */ 58 PUSH32(esp, 0x470A5618u); /* 0x47030758: push 0x470a5618 */ 59 PUSH32(esp, eax); /* 0x4703075D: push eax */ 60 eax = MEM32(0x4710E330); /* 0x4703075E: mov eax, dword ptr [0x4710e330] */ 61 MEM32(FS_BASE + (0)) = esp; /* 0x47030763: mov dword ptr fs:[0], esp */ 62 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 63 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 64 esp = esp - 8; /* 0x4703076A: sub esp, 8 */ 65 _flag_k = FK_CMP; 66 /* test eax, eax */ /* 0x4703076D: test eax, eax */ 67 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 68 _cf = 0; 69 _flag_k = FK_TEST; 70 PUSH32(esp, esi); /* 0x4703076F: push esi */ 71 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703081C; /* 0x47030770: jne 0x4703081c */ 72 L_47030776: 73 RECOMP_ICALL(0x47053420u); /* 0x47030776: call 0x47053420 */ /* not lifted */ 74 RECOMP_FLAGS_IN(); 75 esi = eax; /* 0x4703077B: mov esi, eax */ 76 ecx = esi; /* 0x4703077D: mov ecx, esi */ 77 RECOMP_ICALL(0x470870D0u); /* 0x4703077F: call 0x470870d0 */ /* not lifted */ 78 RECOMP_FLAGS_IN(); 79 /* cmp eax, 0xFFFFFFFFu */ /* 0x47030784: cmp eax, -1 */ 80 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 81 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 82 _flag_k = FK_CMP; 83 if (CMP_NE(_flag_a, _flag_b)) goto L_4703079B; /* 0x47030787: jne 0x4703079b */ 84 L_47030789: 85 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 86 eax = 0; /* 0x47030789: xor eax, eax */ 87 _cf = 0; 88 _flag_k = FK_TEST; 89 esi = POP32_VAL(esp); /* 0x4703078B: pop esi */ 90 ecx = MEM32(esp + 0x8); /* 0x4703078C: mov ecx, dword ptr [esp + 8] */ 91 MEM32(FS_BASE + (0)) = ecx; /* 0x47030790: mov dword ptr fs:[0], ecx */ 92 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 93 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 94 esp = esp + 0x14u; /* 0x47030797: add esp, 0x14 */ 95 _flag_k = FK_ADD; 96 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703079A: ret */ 97 L_4703079B: 98 eax = MEM32(0x4710E330); /* 0x4703079B: mov eax, dword ptr [0x4710e330] */ 99 /* test eax, eax */ /* 0x470307A0: test eax, eax */ 100 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 101 _cf = 0; 102 _flag_k = FK_TEST; 103 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703080D; /* 0x470307A2: jne 0x4703080d */ 104 L_470307A4: 105 eax = esp + 0x4; /* 0x470307A4: lea eax, [esp + 4] */ 106 PUSH32(esp, eax); /* 0x470307A8: push eax */ 107 RECOMP_ICALL(MEM32(0x470AC0C8)); /* 0x470307A9: call dword ptr [0x470ac0c8] */ 108 RECOMP_FLAGS_IN(); 109 /* test eax, eax */ /* 0x470307AF: test eax, eax */ 110 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 111 _cf = 0; 112 _flag_k = FK_TEST; 113 if (TEST_Z(_flag_a, _flag_b)) goto L_470307DA; /* 0x470307B1: je 0x470307da */ 114 L_470307B3: 115 ecx = MEM32(esp + 0x8); /* 0x470307B3: mov ecx, dword ptr [esp + 8] */ 116 edx = MEM32(esp + 0x4); /* 0x470307B7: mov edx, dword ptr [esp + 4] */ 117 PUSH32(esp, 0); /* 0x470307BB: push 0 */ 118 PUSH32(esp, 0x000F4240u); /* 0x470307BD: push 0xf4240 */ 119 PUSH32(esp, ecx); /* 0x470307C2: push ecx */ 120 PUSH32(esp, edx); /* 0x470307C3: push edx */ 121 MEM32(0x4710E330) = 1; /* 0x470307C4: mov dword ptr [0x4710e330], 1 */ 122 RECOMP_ICALL(0x470A3570u); /* 0x470307CE: call 0x470a3570 */ /* not lifted */ 123 RECOMP_FLAGS_IN(); 124 MEM32(0x4710688C) = eax; /* 0x470307D3: mov dword ptr [0x4710688c], eax */ 125 goto L_470307E4; /* 0x470307D8: jmp 0x470307e4 */ 126 L_470307DA: 127 MEM32(0x4710E330) = 0xFFFFFFFFu; /* 0x470307DA: mov dword ptr [0x4710e330], 0xffffffff */ 128 L_470307E4: 129 PUSH32(esp, edi); /* 0x470307E4: push edi */ 130 edi = MEM32(0x4710688C); /* 0x470307E5: mov edi, dword ptr [0x4710688c] */ 131 ecx = esi; /* 0x470307EB: mov ecx, esi */ 132 MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x470307ED: mov dword ptr [esp + 0x18], 0xffffffff */ 133 RECOMP_ICALL(0x470870E0u); /* 0x470307F5: call 0x470870e0 */ /* not lifted */ 134 RECOMP_FLAGS_IN(); 135 eax = edi; /* 0x470307FA: mov eax, edi */ 136 edi = POP32_VAL(esp); /* 0x470307FC: pop edi */ 137 esi = POP32_VAL(esp); /* 0x470307FD: pop esi */ 138 ecx = MEM32(esp + 0x8); /* 0x470307FE: mov ecx, dword ptr [esp + 8] */ 139 MEM32(FS_BASE + (0)) = ecx; /* 0x47030802: mov dword ptr fs:[0], ecx */ 140 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 141 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 142 esp = esp + 0x14u; /* 0x47030809: add esp, 0x14 */ 143 _flag_k = FK_ADD; 144 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703080C: ret */ 145 L_4703080D: 146 ecx = esi; /* 0x4703080D: mov ecx, esi */ 147 MEM32(esp + 0x14) = 0xFFFFFFFFu; /* 0x4703080F: mov dword ptr [esp + 0x14], 0xffffffff */ 148 RECOMP_ICALL(0x470870E0u); /* 0x47030817: call 0x470870e0 */ /* not lifted */ 149 RECOMP_FLAGS_IN(); 150 L_4703081C: 151 ecx = MEM32(esp + 0xC); /* 0x4703081C: mov ecx, dword ptr [esp + 0xc] */ 152 eax = MEM32(0x4710688C); /* 0x47030820: mov eax, dword ptr [0x4710688c] */ 153 MEM32(0x4710E330) = 1; /* 0x47030825: mov dword ptr [0x4710e330], 1 */ 154 esi = POP32_VAL(esp); /* 0x4703082F: pop esi */ 155 MEM32(FS_BASE + (0)) = ecx; /* 0x47030830: mov dword ptr fs:[0], ecx */ 156 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 157 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 158 esp = esp + 0x14u; /* 0x47030837: add esp, 0x14 */ 159 _flag_k = FK_ADD; 160 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703083A: ret */ 161 RECOMP_REGS_OUT(); 162 } 163 164 void sub_47030840(void) { 165 int _fpu_cmp = 0; 166 uint32_t _cf = 0; 167 int _df = 1; 168 uint32_t _flag_k = FK_NONE; 169 uint32_t _flag_a = 0, _flag_b = 0; 170 uint32_t _itail_tgt = 0; 171 RECOMP_REGS_LOCALS 172 RECOMP_ENTER(0x47030840u); 173 174 L_47030840: 175 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 176 eax = 0; /* 0x47030840: xor eax, eax */ 177 _cf = 0; 178 _flag_k = FK_TEST; 179 PUSH32(esp, esi); /* 0x47030842: push esi */ 180 esi = ecx; /* 0x47030843: mov esi, ecx */ 181 MEM32(esi) = eax; /* 0x47030845: mov dword ptr [esi], eax */ 182 MEM32(esi + 0x8) = eax; /* 0x47030847: mov dword ptr [esi + 8], eax */ 183 MEM32(esi + 0x10) = eax; /* 0x4703084A: mov dword ptr [esi + 0x10], eax */ 184 MEM32(esi + 0x18) = eax; /* 0x4703084D: mov dword ptr [esi + 0x18], eax */ 185 MEM32(esi + 0x4) = eax; /* 0x47030850: mov dword ptr [esi + 4], eax */ 186 MEM32(esi + 0xC) = eax; /* 0x47030853: mov dword ptr [esi + 0xc], eax */ 187 MEM32(esi + 0x14) = eax; /* 0x47030856: mov dword ptr [esi + 0x14], eax */ 188 MEM32(esi + 0x1C) = eax; /* 0x47030859: mov dword ptr [esi + 0x1c], eax */ 189 RECOMP_ICALL(0x47030750u); /* 0x4703085C: call 0x47030750 */ /* not lifted */ 190 RECOMP_FLAGS_IN(); 191 eax = esi; /* 0x47030861: mov eax, esi */ 192 esi = POP32_VAL(esp); /* 0x47030863: pop esi */ 193 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47030864: ret */ 194 RECOMP_REGS_OUT(); 195 } 196 197 void sub_47030870(void) { 198 int _fpu_cmp = 0; 199 uint32_t _cf = 0; 200 int _df = 1; 201 uint32_t _flag_k = FK_NONE; 202 uint32_t _flag_a = 0, _flag_b = 0; 203 uint32_t _itail_tgt = 0; 204 RECOMP_REGS_LOCALS 205 RECOMP_ENTER(0x47030870u); 206 207 L_47030870: 208 PUSH32(esp, 0xFFFFFFFFu); /* 0x47030870: push -1 */ 209 PUSH32(esp, 0x470A5656u); /* 0x47030872: push 0x470a5656 */ 210 eax = MEM32(FS_BASE + (0)); /* 0x47030877: mov eax, dword ptr fs:[0] */ 211 PUSH32(esp, eax); /* 0x4703087D: push eax */ 212 MEM32(FS_BASE + (0)) = esp; /* 0x4703087E: mov dword ptr fs:[0], esp */ 213 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xA4u); 214 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 215 esp = esp - 0xA4u; /* 0x47030885: sub esp, 0xa4 */ 216 _flag_k = FK_CMP; 217 eax = MEM32(esp + 0xB4); /* 0x4703088B: mov eax, dword ptr [esp + 0xb4] */ 218 PUSH32(esp, ebx); /* 0x47030892: push ebx */ 219 PUSH32(esp, ebp); /* 0x47030893: push ebp */ 220 PUSH32(esp, esi); /* 0x47030894: push esi */ 221 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 222 ebx = 0; /* 0x47030895: xor ebx, ebx */ 223 _cf = 0; 224 _flag_k = FK_TEST; 225 PUSH32(esp, edi); /* 0x47030897: push edi */ 226 ecx = esp + 0x14; /* 0x47030898: lea ecx, [esp + 0x14] */ 227 MEM32(esp + 0x14) = ebx; /* 0x4703089C: mov dword ptr [esp + 0x14], ebx */ 228 MEM32(esp + 0x18) = eax; /* 0x470308A0: mov dword ptr [esp + 0x18], eax */ 229 RECOMP_ICALL(0x470543C0u); /* 0x470308A4: call 0x470543c0 */ /* not lifted */ 230 RECOMP_FLAGS_IN(); 231 PUSH32(esp, ebx); /* 0x470308A9: push ebx */ 232 ecx = esp + 0x38; /* 0x470308AA: lea ecx, [esp + 0x38] */ 233 RECOMP_ICALL(0x47061A80u); /* 0x470308AE: call 0x47061a80 */ /* not lifted */ 234 RECOMP_FLAGS_IN(); 235 ecx = esp + 0x24; /* 0x470308B3: lea ecx, [esp + 0x24] */ 236 MEM32(esp + 0xBC) = ebx; /* 0x470308B7: mov dword ptr [esp + 0xbc], ebx */ 237 RECOMP_ICALL(0x47081610u); /* 0x470308BE: call 0x47081610 */ /* not lifted */ 238 RECOMP_FLAGS_IN(); 239 PUSH32(esp, ebx); /* 0x470308C3: push ebx */ 240 ecx = esp + 0x6C; /* 0x470308C4: lea ecx, [esp + 0x6c] */ 241 MEM32(esp + 0xC0) = 1; /* 0x470308C8: mov dword ptr [esp + 0xc0], 1 */ 242 RECOMP_ICALL(0x47061A80u); /* 0x470308D3: call 0x47061a80 */ /* not lifted */ 243 RECOMP_FLAGS_IN(); 244 ecx = esp + 0x58; /* 0x470308D8: lea ecx, [esp + 0x58] */ 245 MEM8(esp + 0xBC) = (uint8_t)(2); /* 0x470308DC: mov byte ptr [esp + 0xbc], 2 */ 246 RECOMP_ICALL(0x47081610u); /* 0x470308E4: call 0x47081610 */ /* not lifted */ 247 RECOMP_FLAGS_IN(); 248 eax = MEM32(esp + 0xC8); /* 0x470308E9: mov eax, dword ptr [esp + 0xc8] */ 249 /* cmp eax, ebx */ /* 0x470308F0: cmp eax, ebx */ 250 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 251 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 252 _flag_k = FK_CMP; 253 MEM8(esp + 0xBC) = (uint8_t)(3); /* 0x470308F2: mov byte ptr [esp + 0xbc], 3 */ 254 if (CMP_BE(_flag_a, _flag_b)) goto L_47030A24; /* 0x470308FA: jbe 0x47030a24 */ 255 L_47030900: 256 ebp = MEM32(0x470AC1A8); /* 0x47030900: mov ebp, dword ptr [0x470ac1a8] */ 257 ebx = MEM32(0x470AC0F0); /* 0x47030906: mov ebx, dword ptr [0x470ac0f0] */ 258 MEM32(esp + 0x10) = eax; /* 0x4703090C: mov dword ptr [esp + 0x10], eax */ 259 L_47030910: 260 ecx = esp + 0x94; /* 0x47030910: lea ecx, [esp + 0x94] */ 261 PUSH32(esp, ecx); /* 0x47030917: push ecx */ 262 RECOMP_ICALL(ebp); /* 0x47030918: call ebp */ 263 RECOMP_FLAGS_IN(); 264 edx = esp + 0x94; /* 0x4703091A: lea edx, [esp + 0x94] */ 265 PUSH32(esp, edx); /* 0x47030921: push edx */ 266 ecx = esp + 0xB0; /* 0x47030922: lea ecx, [esp + 0xb0] */ 267 RECOMP_ICALL(0x47053F10u); /* 0x47030929: call 0x47053f10 */ /* not lifted */ 268 RECOMP_FLAGS_IN(); 269 ecx = MEM32(eax); /* 0x4703092E: mov ecx, dword ptr [eax] */ 270 MEM32(esp + 0x7C) = ecx; /* 0x47030930: mov dword ptr [esp + 0x7c], ecx */ 271 edx = MEM32(eax + 0x4); /* 0x47030934: mov edx, dword ptr [eax + 4] */ 272 MEM32(esp + 0x80) = edx; /* 0x47030937: mov dword ptr [esp + 0x80], edx */ 273 esi = MEM32(eax); /* 0x4703093E: mov esi, dword ptr [eax] */ 274 edi = MEM32(eax + 0x4); /* 0x47030940: mov edi, dword ptr [eax + 4] */ 275 eax = esp + 0x84; /* 0x47030943: lea eax, [esp + 0x84] */ 276 PUSH32(esp, eax); /* 0x4703094A: push eax */ 277 RECOMP_ICALL(ebx); /* 0x4703094B: call ebx */ 278 RECOMP_FLAGS_IN(); 279 ecx = MEM32(esp + 0x18); /* 0x4703094D: mov ecx, dword ptr [esp + 0x18] */ 280 eax = 0x10624DD3u; /* 0x47030951: mov eax, 0x10624dd3 */ 281 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x47030956: imul ecx */ 282 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 283 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 284 eax = MEM32(esp + 0x14); /* 0x47030958: mov eax, dword ptr [esp + 0x14] */ 285 if (6u) _cf = (((edx) >> 5) & 1u); /* 0x4703095C: sar edx, 6 */ 286 if (6u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 6u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 287 edx = (uint32_t)((int32_t)edx >> 6u); 288 ecx = edx; /* 0x4703095F: mov ecx, edx */ 289 eax = eax + eax * 4; /* 0x47030961: lea eax, [eax + eax*4] */ 290 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x47030964: shr ecx, 0x1f */ 291 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 292 ecx = ecx >> 31u; /* 0x47030964: shr ecx, 0x1f */ 293 eax = eax + eax * 4; /* 0x47030967: lea eax, [eax + eax*4] */ 294 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 295 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 296 edx = edx + ecx; /* 0x4703096A: add edx, ecx */ 297 _flag_k = FK_ADD; 298 eax = eax + eax * 4; /* 0x4703096C: lea eax, [eax + eax*4] */ 299 ecx = edx + eax * 8; /* 0x4703096F: lea ecx, [edx + eax*8] */ 300 PUSH32(esp, ecx); /* 0x47030972: push ecx */ 301 RECOMP_ICALL(MEM32(0x470AC12C)); /* 0x47030973: call dword ptr [0x470ac12c] */ 302 RECOMP_FLAGS_IN(); 303 edx = esp + 0x74; /* 0x47030979: lea edx, [esp + 0x74] */ 304 PUSH32(esp, edx); /* 0x4703097D: push edx */ 305 RECOMP_ICALL(ebx); /* 0x4703097E: call ebx */ 306 RECOMP_FLAGS_IN(); 307 eax = esp + 0x8C; /* 0x47030980: lea eax, [esp + 0x8c] */ 308 PUSH32(esp, eax); /* 0x47030987: push eax */ 309 RECOMP_ICALL(ebp); /* 0x47030988: call ebp */ 310 RECOMP_FLAGS_IN(); 311 ecx = esp + 0x8C; /* 0x4703098A: lea ecx, [esp + 0x8c] */ 312 PUSH32(esp, ecx); /* 0x47030991: push ecx */ 313 ecx = esp + 0xA8; /* 0x47030992: lea ecx, [esp + 0xa8] */ 314 RECOMP_ICALL(0x47053F10u); /* 0x47030999: call 0x47053f10 */ /* not lifted */ 315 RECOMP_FLAGS_IN(); 316 ecx = MEM32(eax); /* 0x4703099E: mov ecx, dword ptr [eax] */ 317 MEM32(esp + 0x9C) = ecx; /* 0x470309A0: mov dword ptr [esp + 0x9c], ecx */ 318 eax = MEM32(eax + 0x4); /* 0x470309A7: mov eax, dword ptr [eax + 4] */ 319 MEM32(esp + 0xA0) = eax; /* 0x470309AA: mov dword ptr [esp + 0xa0], eax */ 320 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 321 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 322 eax = eax - edi; /* 0x470309B1: sub eax, edi */ 323 _flag_k = FK_CMP; 324 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 325 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 326 ecx = ecx - esi; /* 0x470309B3: sub ecx, esi */ 327 _flag_k = FK_CMP; 328 PUSH32(esp, eax); /* 0x470309B5: push eax */ 329 PUSH32(esp, ecx); /* 0x470309B6: push ecx */ 330 ecx = esp + 0x24; /* 0x470309B7: lea ecx, [esp + 0x24] */ 331 RECOMP_ICALL(0x47001330u); /* 0x470309BB: call 0x47001330 */ /* not lifted */ 332 RECOMP_FLAGS_IN(); 333 ecx = esp + 0x1C; /* 0x470309C0: lea ecx, [esp + 0x1c] */ 334 RECOMP_ICALL(0x470543C0u); /* 0x470309C4: call 0x470543c0 */ /* not lifted */ 335 RECOMP_FLAGS_IN(); 336 eax = MEM32(esp + 0x84); /* 0x470309C9: mov eax, dword ptr [esp + 0x84] */ 337 edx = MEM32(esp + 0x74); /* 0x470309D0: mov edx, dword ptr [esp + 0x74] */ 338 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 339 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 340 edx = edx - eax; /* 0x470309D4: sub edx, eax */ 341 _flag_k = FK_CMP; 342 PUSH32(esp, edx); /* 0x470309D6: push edx */ 343 ecx = esp + 0x28; /* 0x470309D7: lea ecx, [esp + 0x28] */ 344 RECOMP_ICALL(0x47081220u); /* 0x470309DB: call 0x47081220 */ /* not lifted */ 345 RECOMP_FLAGS_IN(); 346 ecx = MEM32(esp + 0x20); /* 0x470309E0: mov ecx, dword ptr [esp + 0x20] */ 347 eax = 0x10624DD3u; /* 0x470309E4: mov eax, 0x10624dd3 */ 348 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x470309E9: imul ecx */ 349 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 350 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 351 if (6u) _cf = (((edx) >> 5) & 1u); /* 0x470309EB: sar edx, 6 */ 352 if (6u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 6u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 353 edx = (uint32_t)((int32_t)edx >> 6u); 354 eax = edx; /* 0x470309EE: mov eax, edx */ 355 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x470309F0: shr eax, 0x1f */ 356 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 357 eax = eax >> 31u; /* 0x470309F0: shr eax, 0x1f */ 358 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 359 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 360 edx = edx + eax; /* 0x470309F3: add edx, eax */ 361 _flag_k = FK_ADD; 362 eax = MEM32(esp + 0x1C); /* 0x470309F5: mov eax, dword ptr [esp + 0x1c] */ 363 eax = eax + eax * 4; /* 0x470309F9: lea eax, [eax + eax*4] */ 364 eax = eax + eax * 4; /* 0x470309FC: lea eax, [eax + eax*4] */ 365 ecx = eax + eax * 4; /* 0x470309FF: lea ecx, [eax + eax*4] */ 366 eax = edx + ecx * 8; /* 0x47030A02: lea eax, [edx + ecx*8] */ 367 eax = eax + eax * 4; /* 0x47030A05: lea eax, [eax + eax*4] */ 368 edx = eax + eax * 4; /* 0x47030A08: lea edx, [eax + eax*4] */ 369 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x47030A0B: shl edx, 2 */ 370 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 371 edx = edx << 2u; /* 0x47030A0B: shl edx, 2 */ 372 PUSH32(esp, edx); /* 0x47030A0E: push edx */ 373 ecx = esp + 0x5C; /* 0x47030A0F: lea ecx, [esp + 0x5c] */ 374 RECOMP_ICALL(0x47081220u); /* 0x47030A13: call 0x47081220 */ /* not lifted */ 375 RECOMP_FLAGS_IN(); 376 _flag_a = (uint32_t)(MEM32(esp + 0x10)); _flag_b = (uint32_t)(1); 377 MEM32(esp + 0x10) = MEM32(esp + 0x10) - 1; /* 0x47030A18: dec dword ptr [esp + 0x10] */ 378 _flag_k = FK_DEC; 379 RECOMP_BACKEDGE(); 380 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_47030910; /* 0x47030A1C: jne 0x47030910 */ 381 L_47030A22: 382 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 383 ebx = 0; /* 0x47030A22: xor ebx, ebx */ 384 _cf = 0; 385 _flag_k = FK_TEST; 386 L_47030A24: 387 PUSH32(esp, 1); /* 0x47030A24: push 1 */ 388 eax = esp + 0x44; /* 0x47030A26: lea eax, [esp + 0x44] */ 389 PUSH32(esp, eax); /* 0x47030A2A: push eax */ 390 ecx = esp + 0x2C; /* 0x47030A2B: lea ecx, [esp + 0x2c] */ 391 MEM32(esp + 0x48) = ebx; /* 0x47030A2F: mov dword ptr [esp + 0x48], ebx */ 392 MEM32(esp + 0x4C) = ebx; /* 0x47030A33: mov dword ptr [esp + 0x4c], ebx */ 393 MEM32(esp + 0x50) = ebx; /* 0x47030A37: mov dword ptr [esp + 0x50], ebx */ 394 RECOMP_ICALL(0x47081280u); /* 0x47030A3B: call 0x47081280 */ /* not lifted */ 395 RECOMP_FLAGS_IN(); 396 PUSH32(esp, 1); /* 0x47030A40: push 1 */ 397 ecx = esp + 0x50; /* 0x47030A42: lea ecx, [esp + 0x50] */ 398 PUSH32(esp, ecx); /* 0x47030A46: push ecx */ 399 ecx = esp + 0x60; /* 0x47030A47: lea ecx, [esp + 0x60] */ 400 MEM32(esp + 0x54) = ebx; /* 0x47030A4B: mov dword ptr [esp + 0x54], ebx */ 401 MEM32(esp + 0x58) = ebx; /* 0x47030A4F: mov dword ptr [esp + 0x58], ebx */ 402 MEM32(esp + 0x5C) = ebx; /* 0x47030A53: mov dword ptr [esp + 0x5c], ebx */ 403 RECOMP_ICALL(0x47081280u); /* 0x47030A57: call 0x47081280 */ /* not lifted */ 404 RECOMP_FLAGS_IN(); 405 eax = MEM32(esp + 0x40); /* 0x47030A5C: mov eax, dword ptr [esp + 0x40] */ 406 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 407 edx = 0; /* 0x47030A60: xor edx, edx */ 408 _cf = 0; 409 _flag_k = FK_TEST; 410 { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)MEM32(esp + 0x4C); /* 0x47030A62: div dword ptr [esp + 0x4c] */ 411 if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); } 412 else { eax = 0; edx = 0; } } 413 ecx = esp + 0x68; /* 0x47030A66: lea ecx, [esp + 0x68] */ 414 MEM8(esp + 0xBC) = (uint8_t)(1); /* 0x47030A6A: mov byte ptr [esp + 0xbc], 1 */ 415 edx = eax; /* 0x47030A72: mov edx, eax */ 416 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(5); 417 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 418 edx = edx + 5; /* 0x47030A74: add edx, 5 */ 419 _flag_k = FK_ADD; 420 eax = 0xCCCCCCCDu; /* 0x47030A77: mov eax, 0xcccccccd */ 421 { uint64_t _r = (uint64_t)eax * (uint32_t)(edx); /* 0x47030A7C: mul edx */ 422 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = edx != 0; 423 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 424 ebp = edx; /* 0x47030A7E: mov ebp, edx */ 425 if (3u) _cf = (((ebp) >> 2) & 1u); /* 0x47030A80: shr ebp, 3 */ 426 if (3u) { _flag_a = recomp_flags_pack((ebp >> 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 427 ebp = ebp >> 3u; /* 0x47030A80: shr ebp, 3 */ 428 MEM32(0x4710688C) = ebp; /* 0x47030A83: mov dword ptr [0x4710688c], ebp */ 429 RECOMP_ICALL(0x4703B380u); /* 0x47030A89: call 0x4703b380 */ /* not lifted */ 430 RECOMP_FLAGS_IN(); 431 eax = MEM32(esp + 0x68); /* 0x47030A8E: mov eax, dword ptr [esp + 0x68] */ 432 /* cmp eax, ebx */ /* 0x47030A92: cmp eax, ebx */ 433 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 434 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 435 _flag_k = FK_CMP; 436 if (CMP_EQ(_flag_a, _flag_b)) goto L_47030AA0; /* 0x47030A94: je 0x47030aa0 */ 437 L_47030A96: 438 ecx = MEM32(esp + 0x70); /* 0x47030A96: mov ecx, dword ptr [esp + 0x70] */ 439 edx = MEM32(ecx); /* 0x47030A9A: mov edx, dword ptr [ecx] */ 440 PUSH32(esp, eax); /* 0x47030A9C: push eax */ 441 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47030A9D: call dword ptr [edx + 0xc] */ 442 RECOMP_FLAGS_IN(); 443 L_47030AA0: 444 eax = MEM32(esp + 0x34); /* 0x47030AA0: mov eax, dword ptr [esp + 0x34] */ 445 MEM32(esp + 0x68) = ebx; /* 0x47030AA4: mov dword ptr [esp + 0x68], ebx */ 446 edi = MEM32(eax); /* 0x47030AA8: mov edi, dword ptr [eax] */ 447 /* cmp edi, eax */ /* 0x47030AAA: cmp edi, eax */ 448 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 449 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 450 _flag_k = FK_CMP; 451 MEM32(esp + 0xBC) = 0xFFFFFFFFu; /* 0x47030AAC: mov dword ptr [esp + 0xbc], 0xffffffff */ 452 if (CMP_EQ(_flag_a, _flag_b)) goto L_47030AE4; /* 0x47030AB7: je 0x47030ae4 */ 453 L_47030AB9: 454 esi = edi; /* 0x47030AB9: mov esi, edi */ 455 /* cmp esi, ebx */ /* 0x47030ABB: cmp esi, ebx */ 456 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 457 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 458 _flag_k = FK_CMP; 459 edi = MEM32(edi); /* 0x47030ABD: mov edi, dword ptr [edi] */ 460 if (CMP_EQ(_flag_a, _flag_b)) goto L_47030AD7; /* 0x47030ABF: je 0x47030ad7 */ 461 L_47030AC1: 462 PUSH32(esp, ebx); /* 0x47030AC1: push ebx */ 463 ecx = esi; /* 0x47030AC2: mov ecx, esi */ 464 RECOMP_ICALL(0x4708CFB0u); /* 0x47030AC4: call 0x4708cfb0 */ /* not lifted */ 465 RECOMP_FLAGS_IN(); 466 ecx = MEM32(esp + 0x3C); /* 0x47030AC9: mov ecx, dword ptr [esp + 0x3c] */ 467 eax = MEM32(ecx); /* 0x47030ACD: mov eax, dword ptr [ecx] */ 468 PUSH32(esp, esi); /* 0x47030ACF: push esi */ 469 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x47030AD0: call dword ptr [eax + 0xc] */ 470 RECOMP_FLAGS_IN(); 471 eax = MEM32(esp + 0x34); /* 0x47030AD3: mov eax, dword ptr [esp + 0x34] */ 472 L_47030AD7: 473 edx = MEM32(esp + 0x38); /* 0x47030AD7: mov edx, dword ptr [esp + 0x38] */ 474 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 475 edx = edx - 1; /* 0x47030ADB: dec edx */ 476 _flag_k = FK_DEC; 477 /* cmp edi, eax */ /* 0x47030ADC: cmp edi, eax */ 478 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 479 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 480 _flag_k = FK_CMP; 481 MEM32(esp + 0x38) = edx; /* 0x47030ADE: mov dword ptr [esp + 0x38], edx */ 482 RECOMP_BACKEDGE(); 483 if (CMP_NE(_flag_a, _flag_b)) goto L_47030AB9; /* 0x47030AE2: jne 0x47030ab9 */ 484 L_47030AE4: 485 MEM32(eax) = eax; /* 0x47030AE4: mov dword ptr [eax], eax */ 486 ecx = MEM32(esp + 0x34); /* 0x47030AE6: mov ecx, dword ptr [esp + 0x34] */ 487 /* cmp ecx, ebx */ /* 0x47030AEA: cmp ecx, ebx */ 488 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 489 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 490 _flag_k = FK_CMP; 491 if (CMP_EQ(_flag_a, _flag_b)) goto L_47030B02; /* 0x47030AEC: je 0x47030b02 */ 492 L_47030AEE: 493 PUSH32(esp, ebx); /* 0x47030AEE: push ebx */ 494 RECOMP_ICALL(0x4708CFB0u); /* 0x47030AEF: call 0x4708cfb0 */ /* not lifted */ 495 RECOMP_FLAGS_IN(); 496 ecx = MEM32(esp + 0x3C); /* 0x47030AF4: mov ecx, dword ptr [esp + 0x3c] */ 497 eax = MEM32(esp + 0x34); /* 0x47030AF8: mov eax, dword ptr [esp + 0x34] */ 498 edx = MEM32(ecx); /* 0x47030AFC: mov edx, dword ptr [ecx] */ 499 PUSH32(esp, eax); /* 0x47030AFE: push eax */ 500 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47030AFF: call dword ptr [edx + 0xc] */ 501 RECOMP_FLAGS_IN(); 502 L_47030B02: 503 ecx = MEM32(esp + 0xB4); /* 0x47030B02: mov ecx, dword ptr [esp + 0xb4] */ 504 edi = POP32_VAL(esp); /* 0x47030B09: pop edi */ 505 esi = POP32_VAL(esp); /* 0x47030B0A: pop esi */ 506 eax = ebp; /* 0x47030B0B: mov eax, ebp */ 507 ebp = POP32_VAL(esp); /* 0x47030B0D: pop ebp */ 508 ebx = POP32_VAL(esp); /* 0x47030B0E: pop ebx */ 509 MEM32(FS_BASE + (0)) = ecx; /* 0x47030B0F: mov dword ptr fs:[0], ecx */ 510 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xB0u); 511 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 512 esp = esp + 0xB0u; /* 0x47030B16: add esp, 0xb0 */ 513 _flag_k = FK_ADD; 514 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47030B1C: ret */ 515 RECOMP_REGS_OUT(); 516 } 517 518 void sub_47030B20(void) { 519 int _fpu_cmp = 0; 520 uint32_t _cf = 0; 521 int _df = 1; 522 uint32_t _flag_k = FK_NONE; 523 uint32_t _flag_a = 0, _flag_b = 0; 524 uint32_t _itail_tgt = 0; 525 RECOMP_REGS_LOCALS 526 RECOMP_ENTER(0x47030B20u); 527 528 L_47030B20: 529 PUSH32(esp, ecx); /* 0x47030B20: push ecx */ 530 PUSH32(esp, ebx); /* 0x47030B21: push ebx */ 531 ebx = MEM32(0x470AC150); /* 0x47030B22: mov ebx, dword ptr [0x470ac150] */ 532 PUSH32(esp, ebp); /* 0x47030B28: push ebp */ 533 PUSH32(esp, esi); /* 0x47030B29: push esi */ 534 PUSH32(esp, edi); /* 0x47030B2A: push edi */ 535 esi = ecx; /* 0x47030B2B: mov esi, ecx */ 536 RECOMP_ICALL(ebx); /* 0x47030B2D: call ebx */ 537 RECOMP_FLAGS_IN(); 538 ebp = MEM32(0x470AC3C8); /* 0x47030B2F: mov ebp, dword ptr [0x470ac3c8] */ 539 edi = eax; /* 0x47030B35: mov edi, eax */ 540 RECOMP_ICALL(ebp); /* 0x47030B37: call ebp */ 541 RECOMP_FLAGS_IN(); 542 eax = MEM32(eax); /* 0x47030B39: mov eax, dword ptr [eax] */ 543 /* test eax, eax */ /* 0x47030B3B: test eax, eax */ 544 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 545 _cf = 0; 546 _flag_k = FK_TEST; 547 MEM32(esp + 0x10) = edi; /* 0x47030B3D: mov dword ptr [esp + 0x10], edi */ 548 if (TEST_Z(_flag_a, _flag_b)) goto L_47030B47; /* 0x47030B41: je 0x47030b47 */ 549 L_47030B43: 550 MEM32(esp + 0x10) = eax; /* 0x47030B43: mov dword ptr [esp + 0x10], eax */ 551 L_47030B47: 552 RECOMP_ICALL(0x47039020u); /* 0x47030B47: call 0x47039020 */ /* not lifted */ 553 RECOMP_FLAGS_IN(); 554 edi = eax; /* 0x47030B4C: mov edi, eax */ 555 ecx = edi; /* 0x47030B4E: mov ecx, edi */ 556 RECOMP_ICALL(0x4703B210u); /* 0x47030B50: call 0x4703b210 */ /* not lifted */ 557 RECOMP_FLAGS_IN(); 558 PUSH32(esp, eax); /* 0x47030B55: push eax */ 559 ecx = edi; /* 0x47030B56: mov ecx, edi */ 560 RECOMP_ICALL(0x4703B240u); /* 0x47030B58: call 0x4703b240 */ /* not lifted */ 561 RECOMP_FLAGS_IN(); 562 PUSH32(esp, eax); /* 0x47030B5D: push eax */ 563 ecx = edi; /* 0x47030B5E: mov ecx, edi */ 564 RECOMP_ICALL(0x4703B080u); /* 0x47030B60: call 0x4703b080 */ /* not lifted */ 565 RECOMP_FLAGS_IN(); 566 PUSH32(esp, eax); /* 0x47030B65: push eax */ 567 eax = MEM32(esp + 0x1C); /* 0x47030B66: mov eax, dword ptr [esp + 0x1c] */ 568 PUSH32(esp, eax); /* 0x47030B6A: push eax */ 569 PUSH32(esp, 0); /* 0x47030B6B: push 0 */ 570 PUSH32(esp, 0x109u); /* 0x47030B6D: push 0x109 */ 571 PUSH32(esp, 0x471069ECu); /* 0x47030B72: push 0x471069ec */ 572 ecx = edi; /* 0x47030B77: mov ecx, edi */ 573 RECOMP_ICALL(0x4703A340u); /* 0x47030B79: call 0x4703a340 */ /* not lifted */ 574 RECOMP_FLAGS_IN(); 575 PUSH32(esp, esi); /* 0x47030B7E: push esi */ 576 PUSH32(esp, 0x471052CCu); /* 0x47030B7F: push 0x471052cc */ 577 PUSH32(esp, 4); /* 0x47030B84: push 4 */ 578 PUSH32(esp, edi); /* 0x47030B86: push edi */ 579 RECOMP_ICALL(0x47039830u); /* 0x47030B87: call 0x47039830 */ /* not lifted */ 580 RECOMP_FLAGS_IN(); 581 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 582 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 583 esp = esp + 0x10u; /* 0x47030B8C: add esp, 0x10 */ 584 _flag_k = FK_ADD; 585 RECOMP_ICALL(ebx); /* 0x47030B8F: call ebx */ 586 RECOMP_FLAGS_IN(); 587 edi = eax; /* 0x47030B91: mov edi, eax */ 588 RECOMP_ICALL(ebp); /* 0x47030B93: call ebp */ 589 RECOMP_FLAGS_IN(); 590 eax = MEM32(eax); /* 0x47030B95: mov eax, dword ptr [eax] */ 591 /* test eax, eax */ /* 0x47030B97: test eax, eax */ 592 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 593 _cf = 0; 594 _flag_k = FK_TEST; 595 MEM32(esp + 0x10) = edi; /* 0x47030B99: mov dword ptr [esp + 0x10], edi */ 596 if (TEST_Z(_flag_a, _flag_b)) goto L_47030BA3; /* 0x47030B9D: je 0x47030ba3 */ 597 L_47030B9F: 598 MEM32(esp + 0x10) = eax; /* 0x47030B9F: mov dword ptr [esp + 0x10], eax */ 599 L_47030BA3: 600 RECOMP_ICALL(0x47039020u); /* 0x47030BA3: call 0x47039020 */ /* not lifted */ 601 RECOMP_FLAGS_IN(); 602 edi = eax; /* 0x47030BA8: mov edi, eax */ 603 ecx = edi; /* 0x47030BAA: mov ecx, edi */ 604 RECOMP_ICALL(0x4703B210u); /* 0x47030BAC: call 0x4703b210 */ /* not lifted */ 605 RECOMP_FLAGS_IN(); 606 PUSH32(esp, eax); /* 0x47030BB1: push eax */ 607 ecx = edi; /* 0x47030BB2: mov ecx, edi */ 608 RECOMP_ICALL(0x4703B240u); /* 0x47030BB4: call 0x4703b240 */ /* not lifted */ 609 RECOMP_FLAGS_IN(); 610 PUSH32(esp, eax); /* 0x47030BB9: push eax */ 611 ecx = edi; /* 0x47030BBA: mov ecx, edi */ 612 RECOMP_ICALL(0x4703B080u); /* 0x47030BBC: call 0x4703b080 */ /* not lifted */ 613 RECOMP_FLAGS_IN(); 614 ecx = MEM32(esp + 0x18); /* 0x47030BC1: mov ecx, dword ptr [esp + 0x18] */ 615 PUSH32(esp, eax); /* 0x47030BC5: push eax */ 616 PUSH32(esp, ecx); /* 0x47030BC6: push ecx */ 617 PUSH32(esp, 0); /* 0x47030BC7: push 0 */ 618 PUSH32(esp, 0x10Bu); /* 0x47030BC9: push 0x10b */ 619 PUSH32(esp, 0x471069ECu); /* 0x47030BCE: push 0x471069ec */ 620 ecx = edi; /* 0x47030BD3: mov ecx, edi */ 621 RECOMP_ICALL(0x4703A340u); /* 0x47030BD5: call 0x4703a340 */ /* not lifted */ 622 RECOMP_FLAGS_IN(); 623 RECOMP_ICALL(0x47030750u); /* 0x47030BDA: call 0x47030750 */ /* not lifted */ 624 RECOMP_FLAGS_IN(); 625 PUSH32(esp, eax); /* 0x47030BDF: push eax */ 626 PUSH32(esp, 0x471069D0u); /* 0x47030BE0: push 0x471069d0 */ 627 PUSH32(esp, 4); /* 0x47030BE5: push 4 */ 628 PUSH32(esp, edi); /* 0x47030BE7: push edi */ 629 RECOMP_ICALL(0x47039830u); /* 0x47030BE8: call 0x47039830 */ /* not lifted */ 630 RECOMP_FLAGS_IN(); 631 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 632 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 633 esp = esp + 0x10u; /* 0x47030BED: add esp, 0x10 */ 634 _flag_k = FK_ADD; 635 RECOMP_ICALL(ebx); /* 0x47030BF0: call ebx */ 636 RECOMP_FLAGS_IN(); 637 edi = eax; /* 0x47030BF2: mov edi, eax */ 638 RECOMP_ICALL(ebp); /* 0x47030BF4: call ebp */ 639 RECOMP_FLAGS_IN(); 640 eax = MEM32(eax); /* 0x47030BF6: mov eax, dword ptr [eax] */ 641 /* test eax, eax */ /* 0x47030BF8: test eax, eax */ 642 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 643 _cf = 0; 644 _flag_k = FK_TEST; 645 MEM32(esp + 0x10) = edi; /* 0x47030BFA: mov dword ptr [esp + 0x10], edi */ 646 if (TEST_Z(_flag_a, _flag_b)) goto L_47030C04; /* 0x47030BFE: je 0x47030c04 */ 647 L_47030C00: 648 MEM32(esp + 0x10) = eax; /* 0x47030C00: mov dword ptr [esp + 0x10], eax */ 649 L_47030C04: 650 RECOMP_ICALL(0x47039020u); /* 0x47030C04: call 0x47039020 */ /* not lifted */ 651 RECOMP_FLAGS_IN(); 652 edi = eax; /* 0x47030C09: mov edi, eax */ 653 ecx = edi; /* 0x47030C0B: mov ecx, edi */ 654 RECOMP_ICALL(0x4703B210u); /* 0x47030C0D: call 0x4703b210 */ /* not lifted */ 655 RECOMP_FLAGS_IN(); 656 PUSH32(esp, eax); /* 0x47030C12: push eax */ 657 ecx = edi; /* 0x47030C13: mov ecx, edi */ 658 RECOMP_ICALL(0x4703B240u); /* 0x47030C15: call 0x4703b240 */ /* not lifted */ 659 RECOMP_FLAGS_IN(); 660 PUSH32(esp, eax); /* 0x47030C1A: push eax */ 661 ecx = edi; /* 0x47030C1B: mov ecx, edi */ 662 RECOMP_ICALL(0x4703B080u); /* 0x47030C1D: call 0x4703b080 */ /* not lifted */ 663 RECOMP_FLAGS_IN(); 664 edx = MEM32(esp + 0x18); /* 0x47030C22: mov edx, dword ptr [esp + 0x18] */ 665 PUSH32(esp, eax); /* 0x47030C26: push eax */ 666 PUSH32(esp, edx); /* 0x47030C27: push edx */ 667 PUSH32(esp, 0); /* 0x47030C28: push 0 */ 668 PUSH32(esp, 0x123u); /* 0x47030C2A: push 0x123 */ 669 PUSH32(esp, 0x471069ECu); /* 0x47030C2F: push 0x471069ec */ 670 ecx = edi; /* 0x47030C34: mov ecx, edi */ 671 RECOMP_ICALL(0x4703A340u); /* 0x47030C36: call 0x4703a340 */ /* not lifted */ 672 RECOMP_FLAGS_IN(); 673 eax = MEM32(esi + 0x18); /* 0x47030C3B: mov eax, dword ptr [esi + 0x18] */ 674 edx = MEM32(esi + 0x1C); /* 0x47030C3E: mov edx, dword ptr [esi + 0x1c] */ 675 PUSH32(esp, eax); /* 0x47030C41: push eax */ 676 ecx = 0x20u; /* 0x47030C42: mov ecx, 0x20 */ 677 RECOMP_ICALL(0x470A3620u); /* 0x47030C47: call 0x470a3620 */ /* not lifted */ 678 RECOMP_FLAGS_IN(); 679 ecx = MEM32(esi + 0x10); /* 0x47030C4C: mov ecx, dword ptr [esi + 0x10] */ 680 edx = MEM32(esi + 0x14); /* 0x47030C4F: mov edx, dword ptr [esi + 0x14] */ 681 PUSH32(esp, eax); /* 0x47030C52: push eax */ 682 eax = MEM32(esi + 0x10); /* 0x47030C53: mov eax, dword ptr [esi + 0x10] */ 683 PUSH32(esp, ecx); /* 0x47030C56: push ecx */ 684 ecx = 0x20u; /* 0x47030C57: mov ecx, 0x20 */ 685 RECOMP_ICALL(0x470A3620u); /* 0x47030C5C: call 0x470a3620 */ /* not lifted */ 686 RECOMP_FLAGS_IN(); 687 edx = MEM32(esi + 0x8); /* 0x47030C61: mov edx, dword ptr [esi + 8] */ 688 PUSH32(esp, eax); /* 0x47030C64: push eax */ 689 PUSH32(esp, edx); /* 0x47030C65: push edx */ 690 eax = edx; /* 0x47030C66: mov eax, edx */ 691 edx = MEM32(esi + 0xC); /* 0x47030C68: mov edx, dword ptr [esi + 0xc] */ 692 ecx = 0x20u; /* 0x47030C6B: mov ecx, 0x20 */ 693 RECOMP_ICALL(0x470A3620u); /* 0x47030C70: call 0x470a3620 */ /* not lifted */ 694 RECOMP_FLAGS_IN(); 695 edx = MEM32(esi + 0x4); /* 0x47030C75: mov edx, dword ptr [esi + 4] */ 696 PUSH32(esp, eax); /* 0x47030C78: push eax */ 697 eax = MEM32(esi); /* 0x47030C79: mov eax, dword ptr [esi] */ 698 PUSH32(esp, eax); /* 0x47030C7B: push eax */ 699 ecx = 0x20u; /* 0x47030C7C: mov ecx, 0x20 */ 700 RECOMP_ICALL(0x470A3620u); /* 0x47030C81: call 0x470a3620 */ /* not lifted */ 701 RECOMP_FLAGS_IN(); 702 PUSH32(esp, eax); /* 0x47030C86: push eax */ 703 PUSH32(esp, 0x47106910u); /* 0x47030C87: push 0x47106910 */ 704 PUSH32(esp, 4); /* 0x47030C8C: push 4 */ 705 PUSH32(esp, edi); /* 0x47030C8E: push edi */ 706 RECOMP_ICALL(0x47039830u); /* 0x47030C8F: call 0x47039830 */ /* not lifted */ 707 RECOMP_FLAGS_IN(); 708 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu); 709 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 710 esp = esp + 0x2Cu; /* 0x47030C94: add esp, 0x2c */ 711 _flag_k = FK_ADD; 712 RECOMP_ICALL(ebx); /* 0x47030C97: call ebx */ 713 RECOMP_FLAGS_IN(); 714 esi = eax; /* 0x47030C99: mov esi, eax */ 715 RECOMP_ICALL(ebp); /* 0x47030C9B: call ebp */ 716 RECOMP_FLAGS_IN(); 717 eax = MEM32(eax); /* 0x47030C9D: mov eax, dword ptr [eax] */ 718 /* test eax, eax */ /* 0x47030C9F: test eax, eax */ 719 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 720 _cf = 0; 721 _flag_k = FK_TEST; 722 edi = esi; /* 0x47030CA1: mov edi, esi */ 723 if (TEST_Z(_flag_a, _flag_b)) goto L_47030CA7; /* 0x47030CA3: je 0x47030ca7 */ 724 L_47030CA5: 725 edi = eax; /* 0x47030CA5: mov edi, eax */ 726 L_47030CA7: 727 RECOMP_ICALL(0x47039020u); /* 0x47030CA7: call 0x47039020 */ /* not lifted */ 728 RECOMP_FLAGS_IN(); 729 esi = eax; /* 0x47030CAC: mov esi, eax */ 730 ecx = esi; /* 0x47030CAE: mov ecx, esi */ 731 RECOMP_ICALL(0x4703B210u); /* 0x47030CB0: call 0x4703b210 */ /* not lifted */ 732 RECOMP_FLAGS_IN(); 733 PUSH32(esp, eax); /* 0x47030CB5: push eax */ 734 ecx = esi; /* 0x47030CB6: mov ecx, esi */ 735 RECOMP_ICALL(0x4703B240u); /* 0x47030CB8: call 0x4703b240 */ /* not lifted */ 736 RECOMP_FLAGS_IN(); 737 PUSH32(esp, eax); /* 0x47030CBD: push eax */ 738 ecx = esi; /* 0x47030CBE: mov ecx, esi */ 739 RECOMP_ICALL(0x4703B080u); /* 0x47030CC0: call 0x4703b080 */ /* not lifted */ 740 RECOMP_FLAGS_IN(); 741 PUSH32(esp, eax); /* 0x47030CC5: push eax */ 742 PUSH32(esp, edi); /* 0x47030CC6: push edi */ 743 PUSH32(esp, 0); /* 0x47030CC7: push 0 */ 744 PUSH32(esp, 0x125u); /* 0x47030CC9: push 0x125 */ 745 PUSH32(esp, 0x471069ECu); /* 0x47030CCE: push 0x471069ec */ 746 ecx = esi; /* 0x47030CD3: mov ecx, esi */ 747 RECOMP_ICALL(0x4703A340u); /* 0x47030CD5: call 0x4703a340 */ /* not lifted */ 748 RECOMP_FLAGS_IN(); 749 PUSH32(esp, 0x4710529Cu); /* 0x47030CDA: push 0x4710529c */ 750 PUSH32(esp, 4); /* 0x47030CDF: push 4 */ 751 PUSH32(esp, esi); /* 0x47030CE1: push esi */ 752 RECOMP_ICALL(0x47039830u); /* 0x47030CE2: call 0x47039830 */ /* not lifted */ 753 RECOMP_FLAGS_IN(); 754 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 755 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 756 esp = esp + 0xCu; /* 0x47030CE7: add esp, 0xc */ 757 _flag_k = FK_ADD; 758 edi = POP32_VAL(esp); /* 0x47030CEA: pop edi */ 759 esi = POP32_VAL(esp); /* 0x47030CEB: pop esi */ 760 ebp = POP32_VAL(esp); /* 0x47030CEC: pop ebp */ 761 ebx = POP32_VAL(esp); /* 0x47030CED: pop ebx */ 762 ecx = POP32_VAL(esp); /* 0x47030CEE: pop ecx */ 763 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47030CEF: ret */ 764 RECOMP_REGS_OUT(); 765 } 766 767 void sub_47030CF0(void) { 768 int _fpu_cmp = 0; 769 uint32_t _cf = 0; 770 int _df = 1; 771 uint32_t _flag_k = FK_NONE; 772 uint32_t _flag_a = 0, _flag_b = 0; 773 uint32_t _itail_tgt = 0; 774 RECOMP_REGS_LOCALS 775 RECOMP_ENTER(0x47030CF0u); 776 777 L_47030CF0: 778 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 779 eax = 0; /* 0x47030CF0: xor eax, eax */ 780 _cf = 0; 781 _flag_k = FK_TEST; 782 MEM32(ecx) = eax; /* 0x47030CF2: mov dword ptr [ecx], eax */ 783 MEM32(ecx + 0x8) = eax; /* 0x47030CF4: mov dword ptr [ecx + 8], eax */ 784 MEM32(ecx + 0x10) = eax; /* 0x47030CF7: mov dword ptr [ecx + 0x10], eax */ 785 MEM32(ecx + 0x18) = eax; /* 0x47030CFA: mov dword ptr [ecx + 0x18], eax */ 786 MEM32(ecx + 0x4) = eax; /* 0x47030CFD: mov dword ptr [ecx + 4], eax */ 787 MEM32(ecx + 0xC) = eax; /* 0x47030D00: mov dword ptr [ecx + 0xc], eax */ 788 MEM32(ecx + 0x14) = eax; /* 0x47030D03: mov dword ptr [ecx + 0x14], eax */ 789 MEM32(ecx + 0x1C) = eax; /* 0x47030D06: mov dword ptr [ecx + 0x1c], eax */ 790 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47030D09: ret */ 791 RECOMP_REGS_OUT(); 792 } 793 794 void sub_47030D10(void) { 795 int _fpu_cmp = 0; 796 uint32_t _cf = 0; 797 int _df = 1; 798 uint32_t _flag_k = FK_NONE; 799 uint32_t _flag_a = 0, _flag_b = 0; 800 uint32_t _itail_tgt = 0; 801 RECOMP_REGS_LOCALS 802 RECOMP_ENTER(0x47030D10u); 803 804 L_47030D10: 805 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 806 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 807 esp = esp - 8; /* 0x47030D10: sub esp, 8 */ 808 _flag_k = FK_CMP; 809 edx = MEM32(ecx + 0x4); /* 0x47030D13: mov edx, dword ptr [ecx + 4] */ 810 PUSH32(esp, ebx); /* 0x47030D16: push ebx */ 811 PUSH32(esp, ebp); /* 0x47030D17: push ebp */ 812 PUSH32(esp, esi); /* 0x47030D18: push esi */ 813 esi = MEM32(ecx + 0x8); /* 0x47030D19: mov esi, dword ptr [ecx + 8] */ 814 PUSH32(esp, edi); /* 0x47030D1C: push edi */ 815 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx)); 816 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 817 esi = esi - MEM32(ecx); /* 0x47030D1D: sub esi, dword ptr [ecx] */ 818 _flag_k = FK_CMP; 819 edi = MEM32(ecx + 0xC); /* 0x47030D1F: mov edi, dword ptr [ecx + 0xc] */ 820 { uint32_t _sa = edi, _sb = edx, _sc = _cf; /* 0x47030D22: sbb edi, edx */ 821 edi = _sa - _sb - _sc; 822 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 823 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 824 RECOMP_ICALL(0x47030750u); /* 0x47030D24: call 0x47030750 */ /* not lifted */ 825 RECOMP_FLAGS_IN(); 826 PUSH32(esp, 0); /* 0x47030D29: push 0 */ 827 PUSH32(esp, 0x000F4240u); /* 0x47030D2B: push 0xf4240 */ 828 PUSH32(esp, edi); /* 0x47030D30: push edi */ 829 PUSH32(esp, esi); /* 0x47030D31: push esi */ 830 ebx = eax; /* 0x47030D32: mov ebx, eax */ 831 RECOMP_ICALL(0x470A3500u); /* 0x47030D34: call 0x470a3500 */ /* not lifted */ 832 RECOMP_FLAGS_IN(); 833 PUSH32(esp, 0); /* 0x47030D39: push 0 */ 834 PUSH32(esp, ebx); /* 0x47030D3B: push ebx */ 835 PUSH32(esp, edx); /* 0x47030D3C: push edx */ 836 PUSH32(esp, eax); /* 0x47030D3D: push eax */ 837 RECOMP_ICALL(0x470A3500u); /* 0x47030D3E: call 0x470a3500 */ /* not lifted */ 838 RECOMP_FLAGS_IN(); 839 ebp = MEM32(esp + 0x1C); /* 0x47030D43: mov ebp, dword ptr [esp + 0x1c] */ 840 ebx = eax; /* 0x47030D47: mov ebx, eax */ 841 MEM32(ebp) = ebx; /* 0x47030D49: mov dword ptr [ebp], ebx */ 842 RECOMP_ICALL(0x47030750u); /* 0x47030D4C: call 0x47030750 */ /* not lifted */ 843 RECOMP_FLAGS_IN(); 844 eax = eax + eax * 4; /* 0x47030D51: lea eax, [eax + eax*4] */ 845 eax = eax + eax * 4; /* 0x47030D54: lea eax, [eax + eax*4] */ 846 eax = eax + eax * 4; /* 0x47030D57: lea eax, [eax + eax*4] */ 847 eax = eax + eax * 4; /* 0x47030D5A: lea eax, [eax + eax*4] */ 848 eax = eax + eax * 4; /* 0x47030D5D: lea eax, [eax + eax*4] */ 849 ecx = eax + eax * 4; /* 0x47030D60: lea ecx, [eax + eax*4] */ 850 eax = ebx; /* 0x47030D63: mov eax, ebx */ 851 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x47030D65: cdq */ 852 PUSH32(esp, edx); /* 0x47030D66: push edx */ 853 PUSH32(esp, eax); /* 0x47030D67: push eax */ 854 if (6u) _cf = (((ecx) >> 26) & 1u); /* 0x47030D68: shl ecx, 6 */ 855 if (6u) { _flag_a = recomp_flags_pack((ecx << 6u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 856 ecx = ecx << 6u; /* 0x47030D68: shl ecx, 6 */ 857 PUSH32(esp, 0); /* 0x47030D6B: push 0 */ 858 PUSH32(esp, ecx); /* 0x47030D6D: push ecx */ 859 RECOMP_ICALL(0x470A34C0u); /* 0x47030D6E: call 0x470a34c0 */ /* not lifted */ 860 RECOMP_FLAGS_IN(); 861 ebx = eax; /* 0x47030D73: mov ebx, eax */ 862 MEM32(esp + 0x14) = edx; /* 0x47030D75: mov dword ptr [esp + 0x14], edx */ 863 RECOMP_ICALL(0x47030750u); /* 0x47030D79: call 0x47030750 */ /* not lifted */ 864 RECOMP_FLAGS_IN(); 865 ecx = MEM32(esp + 0x14); /* 0x47030D7E: mov ecx, dword ptr [esp + 0x14] */ 866 PUSH32(esp, 0); /* 0x47030D82: push 0 */ 867 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 868 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 869 esi = esi - ebx; /* 0x47030D84: sub esi, ebx */ 870 _flag_k = FK_CMP; 871 PUSH32(esp, eax); /* 0x47030D86: push eax */ 872 { uint32_t _sa = edi, _sb = ecx, _sc = _cf; /* 0x47030D87: sbb edi, ecx */ 873 edi = _sa - _sb - _sc; 874 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 875 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 876 PUSH32(esp, edi); /* 0x47030D89: push edi */ 877 PUSH32(esp, esi); /* 0x47030D8A: push esi */ 878 RECOMP_ICALL(0x470A3500u); /* 0x47030D8B: call 0x470a3500 */ /* not lifted */ 879 RECOMP_FLAGS_IN(); 880 edi = POP32_VAL(esp); /* 0x47030D90: pop edi */ 881 esi = POP32_VAL(esp); /* 0x47030D91: pop esi */ 882 MEM32(ebp + 0x4) = eax; /* 0x47030D92: mov dword ptr [ebp + 4], eax */ 883 ebp = POP32_VAL(esp); /* 0x47030D95: pop ebp */ 884 ebx = POP32_VAL(esp); /* 0x47030D96: pop ebx */ 885 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 886 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 887 esp = esp + 8; /* 0x47030D97: add esp, 8 */ 888 _flag_k = FK_ADD; 889 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47030D9A: ret 4 */ 890 RECOMP_REGS_OUT(); 891 } 892 893 void sub_47030DA0(void) { 894 int _fpu_cmp = 0; 895 uint32_t _cf = 0; 896 int _df = 1; 897 uint32_t _flag_k = FK_NONE; 898 uint32_t _flag_a = 0, _flag_b = 0; 899 uint32_t _itail_tgt = 0; 900 RECOMP_REGS_LOCALS 901 RECOMP_ENTER(0x47030DA0u); 902 903 L_47030DA0: 904 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 905 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 906 esp = esp - 8; /* 0x47030DA0: sub esp, 8 */ 907 _flag_k = FK_CMP; 908 PUSH32(esp, ebx); /* 0x47030DA3: push ebx */ 909 PUSH32(esp, ebp); /* 0x47030DA4: push ebp */ 910 PUSH32(esp, esi); /* 0x47030DA5: push esi */ 911 esi = MEM32(ecx + 0x10); /* 0x47030DA6: mov esi, dword ptr [ecx + 0x10] */ 912 PUSH32(esp, edi); /* 0x47030DA9: push edi */ 913 edi = MEM32(ecx + 0x14); /* 0x47030DAA: mov edi, dword ptr [ecx + 0x14] */ 914 RECOMP_ICALL(0x47030750u); /* 0x47030DAD: call 0x47030750 */ /* not lifted */ 915 RECOMP_FLAGS_IN(); 916 PUSH32(esp, 0); /* 0x47030DB2: push 0 */ 917 PUSH32(esp, 0x000F4240u); /* 0x47030DB4: push 0xf4240 */ 918 PUSH32(esp, edi); /* 0x47030DB9: push edi */ 919 PUSH32(esp, esi); /* 0x47030DBA: push esi */ 920 ebx = eax; /* 0x47030DBB: mov ebx, eax */ 921 RECOMP_ICALL(0x470A3500u); /* 0x47030DBD: call 0x470a3500 */ /* not lifted */ 922 RECOMP_FLAGS_IN(); 923 PUSH32(esp, 0); /* 0x47030DC2: push 0 */ 924 PUSH32(esp, ebx); /* 0x47030DC4: push ebx */ 925 PUSH32(esp, edx); /* 0x47030DC5: push edx */ 926 PUSH32(esp, eax); /* 0x47030DC6: push eax */ 927 RECOMP_ICALL(0x470A3500u); /* 0x47030DC7: call 0x470a3500 */ /* not lifted */ 928 RECOMP_FLAGS_IN(); 929 ebp = MEM32(esp + 0x1C); /* 0x47030DCC: mov ebp, dword ptr [esp + 0x1c] */ 930 ebx = eax; /* 0x47030DD0: mov ebx, eax */ 931 MEM32(ebp) = ebx; /* 0x47030DD2: mov dword ptr [ebp], ebx */ 932 RECOMP_ICALL(0x47030750u); /* 0x47030DD5: call 0x47030750 */ /* not lifted */ 933 RECOMP_FLAGS_IN(); 934 eax = eax + eax * 4; /* 0x47030DDA: lea eax, [eax + eax*4] */ 935 eax = eax + eax * 4; /* 0x47030DDD: lea eax, [eax + eax*4] */ 936 eax = eax + eax * 4; /* 0x47030DE0: lea eax, [eax + eax*4] */ 937 eax = eax + eax * 4; /* 0x47030DE3: lea eax, [eax + eax*4] */ 938 eax = eax + eax * 4; /* 0x47030DE6: lea eax, [eax + eax*4] */ 939 ecx = eax + eax * 4; /* 0x47030DE9: lea ecx, [eax + eax*4] */ 940 eax = ebx; /* 0x47030DEC: mov eax, ebx */ 941 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x47030DEE: cdq */ 942 PUSH32(esp, edx); /* 0x47030DEF: push edx */ 943 PUSH32(esp, eax); /* 0x47030DF0: push eax */ 944 if (6u) _cf = (((ecx) >> 26) & 1u); /* 0x47030DF1: shl ecx, 6 */ 945 if (6u) { _flag_a = recomp_flags_pack((ecx << 6u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 946 ecx = ecx << 6u; /* 0x47030DF1: shl ecx, 6 */ 947 PUSH32(esp, 0); /* 0x47030DF4: push 0 */ 948 PUSH32(esp, ecx); /* 0x47030DF6: push ecx */ 949 RECOMP_ICALL(0x470A34C0u); /* 0x47030DF7: call 0x470a34c0 */ /* not lifted */ 950 RECOMP_FLAGS_IN(); 951 ebx = eax; /* 0x47030DFC: mov ebx, eax */ 952 MEM32(esp + 0x14) = edx; /* 0x47030DFE: mov dword ptr [esp + 0x14], edx */ 953 RECOMP_ICALL(0x47030750u); /* 0x47030E02: call 0x47030750 */ /* not lifted */ 954 RECOMP_FLAGS_IN(); 955 ecx = MEM32(esp + 0x14); /* 0x47030E07: mov ecx, dword ptr [esp + 0x14] */ 956 PUSH32(esp, 0); /* 0x47030E0B: push 0 */ 957 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 958 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 959 esi = esi - ebx; /* 0x47030E0D: sub esi, ebx */ 960 _flag_k = FK_CMP; 961 PUSH32(esp, eax); /* 0x47030E0F: push eax */ 962 { uint32_t _sa = edi, _sb = ecx, _sc = _cf; /* 0x47030E10: sbb edi, ecx */ 963 edi = _sa - _sb - _sc; 964 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 965 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 966 PUSH32(esp, edi); /* 0x47030E12: push edi */ 967 PUSH32(esp, esi); /* 0x47030E13: push esi */ 968 RECOMP_ICALL(0x470A3500u); /* 0x47030E14: call 0x470a3500 */ /* not lifted */ 969 RECOMP_FLAGS_IN(); 970 edi = POP32_VAL(esp); /* 0x47030E19: pop edi */ 971 esi = POP32_VAL(esp); /* 0x47030E1A: pop esi */ 972 MEM32(ebp + 0x4) = eax; /* 0x47030E1B: mov dword ptr [ebp + 4], eax */ 973 ebp = POP32_VAL(esp); /* 0x47030E1E: pop ebp */ 974 ebx = POP32_VAL(esp); /* 0x47030E1F: pop ebx */ 975 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 976 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 977 esp = esp + 8; /* 0x47030E20: add esp, 8 */ 978 _flag_k = FK_ADD; 979 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47030E23: ret 4 */ 980 RECOMP_REGS_OUT(); 981 } 982 983 void sub_47030E30(void) { 984 int _fpu_cmp = 0; 985 uint32_t _cf = 0; 986 int _df = 1; 987 uint32_t _flag_k = FK_NONE; 988 uint32_t _flag_a = 0, _flag_b = 0; 989 uint32_t _itail_tgt = 0; 990 RECOMP_REGS_LOCALS 991 RECOMP_ENTER(0x47030E30u); 992 993 L_47030E30: 994 PUSH32(esp, esi); /* 0x47030E30: push esi */ 995 PUSH32(esp, edi); /* 0x47030E31: push edi */ 996 esi = ecx; /* 0x47030E32: mov esi, ecx */ 997 RECOMP_ICALL(0x47030750u); /* 0x47030E34: call 0x47030750 */ /* not lifted */ 998 RECOMP_FLAGS_IN(); 999 ecx = eax; /* 0x47030E39: mov ecx, eax */ 1000 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1001 edx = 0; /* 0x47030E3B: xor edx, edx */ 1002 _cf = 0; 1003 _flag_k = FK_TEST; 1004 eax = 0x3E8u; /* 0x47030E3D: mov eax, 0x3e8 */ 1005 { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)ecx; /* 0x47030E42: div ecx */ 1006 if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); } 1007 else { eax = 0; edx = 0; } } 1008 ecx = MEM32(esi); /* 0x47030E44: mov ecx, dword ptr [esi] */ 1009 edx = MEM32(esi + 0x8); /* 0x47030E46: mov edx, dword ptr [esi + 8] */ 1010 edi = MEM32(esi + 0x4); /* 0x47030E49: mov edi, dword ptr [esi + 4] */ 1011 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 1012 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1013 edx = edx - ecx; /* 0x47030E4C: sub edx, ecx */ 1014 _flag_k = FK_CMP; 1015 ecx = MEM32(esi + 0xC); /* 0x47030E4E: mov ecx, dword ptr [esi + 0xc] */ 1016 { uint32_t _sa = ecx, _sb = edi, _sc = _cf; /* 0x47030E51: sbb ecx, edi */ 1017 ecx = _sa - _sb - _sc; 1018 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1019 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1020 PUSH32(esp, ecx); /* 0x47030E53: push ecx */ 1021 PUSH32(esp, edx); /* 0x47030E54: push edx */ 1022 PUSH32(esp, 0); /* 0x47030E55: push 0 */ 1023 PUSH32(esp, eax); /* 0x47030E57: push eax */ 1024 RECOMP_ICALL(0x470A34C0u); /* 0x47030E58: call 0x470a34c0 */ /* not lifted */ 1025 RECOMP_FLAGS_IN(); 1026 ecx = MEM32(esp + 0xC); /* 0x47030E5D: mov ecx, dword ptr [esp + 0xc] */ 1027 edi = POP32_VAL(esp); /* 0x47030E61: pop edi */ 1028 MEM32(ecx) = eax; /* 0x47030E62: mov dword ptr [ecx], eax */ 1029 MEM32(ecx + 0x4) = edx; /* 0x47030E64: mov dword ptr [ecx + 4], edx */ 1030 esi = POP32_VAL(esp); /* 0x47030E67: pop esi */ 1031 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47030E68: ret 4 */ 1032 RECOMP_REGS_OUT(); 1033 } 1034 1035 void sub_47030E70(void) { 1036 int _fpu_cmp = 0; 1037 uint32_t _cf = 0; 1038 int _df = 1; 1039 uint32_t _flag_k = FK_NONE; 1040 uint32_t _flag_a = 0, _flag_b = 0; 1041 uint32_t _itail_tgt = 0; 1042 RECOMP_REGS_LOCALS 1043 RECOMP_ENTER(0x47030E70u); 1044 1045 L_47030E70: 1046 PUSH32(esp, esi); /* 0x47030E70: push esi */ 1047 esi = ecx; /* 0x47030E71: mov esi, ecx */ 1048 RECOMP_ICALL(0x47030750u); /* 0x47030E73: call 0x47030750 */ /* not lifted */ 1049 RECOMP_FLAGS_IN(); 1050 ecx = MEM32(esi + 0x10); /* 0x47030E78: mov ecx, dword ptr [esi + 0x10] */ 1051 PUSH32(esp, 0); /* 0x47030E7B: push 0 */ 1052 PUSH32(esp, eax); /* 0x47030E7D: push eax */ 1053 eax = MEM32(esi + 0x14); /* 0x47030E7E: mov eax, dword ptr [esi + 0x14] */ 1054 PUSH32(esp, eax); /* 0x47030E81: push eax */ 1055 PUSH32(esp, ecx); /* 0x47030E82: push ecx */ 1056 RECOMP_ICALL(0x470A3500u); /* 0x47030E83: call 0x470a3500 */ /* not lifted */ 1057 RECOMP_FLAGS_IN(); 1058 PUSH32(esp, 0); /* 0x47030E88: push 0 */ 1059 PUSH32(esp, 0x3E8u); /* 0x47030E8A: push 0x3e8 */ 1060 PUSH32(esp, edx); /* 0x47030E8F: push edx */ 1061 PUSH32(esp, eax); /* 0x47030E90: push eax */ 1062 RECOMP_ICALL(0x470A34C0u); /* 0x47030E91: call 0x470a34c0 */ /* not lifted */ 1063 RECOMP_FLAGS_IN(); 1064 ecx = MEM32(esp + 0x8); /* 0x47030E96: mov ecx, dword ptr [esp + 8] */ 1065 MEM32(ecx) = eax; /* 0x47030E9A: mov dword ptr [ecx], eax */ 1066 MEM32(ecx + 0x4) = edx; /* 0x47030E9C: mov dword ptr [ecx + 4], edx */ 1067 esi = POP32_VAL(esp); /* 0x47030E9F: pop esi */ 1068 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47030EA0: ret 4 */ 1069 RECOMP_REGS_OUT(); 1070 } 1071 1072 void sub_47030EB0(void) { 1073 int _fpu_cmp = 0; 1074 uint32_t _cf = 0; 1075 int _df = 1; 1076 uint32_t _flag_k = FK_NONE; 1077 uint32_t _flag_a = 0, _flag_b = 0; 1078 uint32_t _itail_tgt = 0; 1079 RECOMP_REGS_LOCALS 1080 RECOMP_ENTER(0x47030EB0u); 1081 1082 L_47030EB0: 1083 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x68u); 1084 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1085 esp = esp - 0x68u; /* 0x47030EB0: sub esp, 0x68 */ 1086 _flag_k = FK_CMP; 1087 L_47030EB3: 1088 PUSH32(esp, ebx); /* 0x47030EB3: push ebx */ 1089 L_47030EB4: 1090 PUSH32(esp, ebp); /* 0x47030EB4: push ebp */ 1091 L_47030EB5: 1092 PUSH32(esp, esi); /* 0x47030EB5: push esi */ 1093 L_47030EB6: 1094 PUSH32(esp, edi); /* 0x47030EB6: push edi */ 1095 L_47030EB7: 1096 esi = ecx; /* 0x47030EB7: mov esi, ecx */ 1097 L_47030EB9: 1098 RECOMP_ICALL(0x47030750u); /* 0x47030EB9: call 0x47030750 */ /* not lifted */ 1099 RECOMP_FLAGS_IN(); 1100 L_47030EBE: 1101 ecx = eax; /* 0x47030EBE: mov ecx, eax */ 1102 L_47030EC0: 1103 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1104 edx = 0; /* 0x47030EC0: xor edx, edx */ 1105 _cf = 0; 1106 _flag_k = FK_TEST; 1107 L_47030EC2: 1108 eax = 0x3E8u; /* 0x47030EC2: mov eax, 0x3e8 */ 1109 L_47030EC7: 1110 { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)ecx; /* 0x47030EC7: div ecx */ 1111 if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); } 1112 else { eax = 0; edx = 0; } } 1113 L_47030EC9: 1114 edx = MEM32(esi + 0x8); /* 0x47030EC9: mov edx, dword ptr [esi + 8] */ 1115 L_47030ECC: 1116 ebp = MEM32(esi); /* 0x47030ECC: mov ebp, dword ptr [esi] */ 1117 L_47030ECE: 1118 ecx = MEM32(esi + 0xC); /* 0x47030ECE: mov ecx, dword ptr [esi + 0xc] */ 1119 L_47030ED1: 1120 ebx = MEM32(esi + 0x4); /* 0x47030ED1: mov ebx, dword ptr [esi + 4] */ 1121 L_47030ED4: 1122 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebp); 1123 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1124 edx = edx - ebp; /* 0x47030ED4: sub edx, ebp */ 1125 _flag_k = FK_CMP; 1126 L_47030ED6: 1127 { uint32_t _sa = ecx, _sb = ebx, _sc = _cf; /* 0x47030ED6: sbb ecx, ebx */ 1128 ecx = _sa - _sb - _sc; 1129 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1130 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1131 L_47030ED8: 1132 PUSH32(esp, ecx); /* 0x47030ED8: push ecx */ 1133 L_47030ED9: 1134 PUSH32(esp, edx); /* 0x47030ED9: push edx */ 1135 L_47030EDA: 1136 PUSH32(esp, 0); /* 0x47030EDA: push 0 */ 1137 L_47030EDC: 1138 PUSH32(esp, eax); /* 0x47030EDC: push eax */ 1139 L_47030EDD: 1140 RECOMP_ICALL(0x470A34C0u); /* 0x47030EDD: call 0x470a34c0 */ /* not lifted */ 1141 RECOMP_FLAGS_IN(); 1142 L_47030EE2: 1143 PUSH32(esp, 0); /* 0x47030EE2: push 0 */ 1144 L_47030EE4: 1145 PUSH32(esp, 0x3B9ACA00u); /* 0x47030EE4: push 0x3b9aca00 */ 1146 L_47030EE9: 1147 edi = edx; /* 0x47030EE9: mov edi, edx */ 1148 L_47030EEB: 1149 esi = eax; /* 0x47030EEB: mov esi, eax */ 1150 L_47030EED: 1151 PUSH32(esp, edi); /* 0x47030EED: push edi */ 1152 L_47030EEE: 1153 PUSH32(esp, esi); /* 0x47030EEE: push esi */ 1154 L_47030EEF: 1155 RECOMP_ICALL(0x470A3500u); /* 0x47030EEF: call 0x470a3500 */ /* not lifted */ 1156 RECOMP_FLAGS_IN(); 1157 L_47030EF4: 1158 PUSH32(esp, 0); /* 0x47030EF4: push 0 */ 1159 L_47030EF6: 1160 PUSH32(esp, 0x3B9ACA00u); /* 0x47030EF6: push 0x3b9aca00 */ 1161 L_47030EFB: 1162 PUSH32(esp, edi); /* 0x47030EFB: push edi */ 1163 L_47030EFC: 1164 PUSH32(esp, esi); /* 0x47030EFC: push esi */ 1165 L_47030EFD: 1166 ebp = eax; /* 0x47030EFD: mov ebp, eax */ 1167 L_47030EFF: 1168 RECOMP_ICALL(0x470A3640u); /* 0x47030EFF: call 0x470a3640 */ /* not lifted */ 1169 RECOMP_FLAGS_IN(); 1170 L_47030F04: 1171 ebx = MEM32(esp + 0x80); /* 0x47030F04: mov ebx, dword ptr [esp + 0x80] */ 1172 L_47030F0B: 1173 /* cmp ebx, 1 */ /* 0x47030F0B: cmp ebx, 1 */ 1174 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 1175 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1176 _flag_k = FK_CMP; 1177 L_47030F0E: 1178 MEM32(esp + 0x10) = eax; /* 0x47030F0E: mov dword ptr [esp + 0x10], eax */ 1179 L_47030F12: 1180 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_LE, _cf)) goto L_47030F60; /* 0x47030F12: jle 0x47030f60 */ 1181 L_47030F14: 1182 PUSH32(esp, 0); /* 0x47030F14: push 0 */ 1183 L_47030F16: 1184 PUSH32(esp, ebx); /* 0x47030F16: push ebx */ 1185 L_47030F17: 1186 PUSH32(esp, edi); /* 0x47030F17: push edi */ 1187 L_47030F18: 1188 PUSH32(esp, esi); /* 0x47030F18: push esi */ 1189 L_47030F19: 1190 RECOMP_ICALL(0x470A3500u); /* 0x47030F19: call 0x470a3500 */ /* not lifted */ 1191 RECOMP_FLAGS_IN(); 1192 L_47030F1E: 1193 PUSH32(esp, 0); /* 0x47030F1E: push 0 */ 1194 L_47030F20: 1195 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1F4u); 1196 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1197 eax = eax + 0x1F4u; /* 0x47030F20: add eax, 0x1f4 */ 1198 _flag_k = FK_ADD; 1199 L_47030F25: 1200 PUSH32(esp, 0x3E8u); /* 0x47030F25: push 0x3e8 */ 1201 L_47030F2A: 1202 { uint32_t _aa = edx, _ab = 0, _ac = _cf; /* 0x47030F2A: adc edx, 0 */ 1203 edx = _aa + _ab + _ac; 1204 _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0; 1205 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1206 L_47030F2D: 1207 PUSH32(esp, edx); /* 0x47030F2D: push edx */ 1208 L_47030F2E: 1209 PUSH32(esp, eax); /* 0x47030F2E: push eax */ 1210 L_47030F2F: 1211 RECOMP_ICALL(0x470A3500u); /* 0x47030F2F: call 0x470a3500 */ /* not lifted */ 1212 RECOMP_FLAGS_IN(); 1213 L_47030F34: 1214 edx = MEM32(esp + 0x10); /* 0x47030F34: mov edx, dword ptr [esp + 0x10] */ 1215 L_47030F38: 1216 PUSH32(esp, eax); /* 0x47030F38: push eax */ 1217 L_47030F39: 1218 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x1F4u); 1219 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1220 edx = edx + 0x1F4u; /* 0x47030F39: add edx, 0x1f4 */ 1221 _flag_k = FK_ADD; 1222 L_47030F3F: 1223 eax = 0x10624DD3u; /* 0x47030F3F: mov eax, 0x10624dd3 */ 1224 L_47030F44: 1225 { uint64_t _r = (uint64_t)eax * (uint32_t)(edx); /* 0x47030F44: mul edx */ 1226 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = edx != 0; 1227 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 1228 L_47030F46: 1229 if (6u) _cf = (((edx) >> 5) & 1u); /* 0x47030F46: shr edx, 6 */ 1230 if (6u) { _flag_a = recomp_flags_pack((edx >> 6u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1231 edx = edx >> 6u; /* 0x47030F46: shr edx, 6 */ 1232 L_47030F49: 1233 PUSH32(esp, edx); /* 0x47030F49: push edx */ 1234 L_47030F4A: 1235 PUSH32(esp, ebp); /* 0x47030F4A: push ebp */ 1236 L_47030F4B: 1237 PUSH32(esp, ebx); /* 0x47030F4B: push ebx */ 1238 L_47030F4C: 1239 eax = esp + 0x24; /* 0x47030F4C: lea eax, [esp + 0x24] */ 1240 L_47030F50: 1241 PUSH32(esp, 0x47106A44u); /* 0x47030F50: push 0x47106a44 */ 1242 L_47030F55: 1243 PUSH32(esp, eax); /* 0x47030F55: push eax */ 1244 L_47030F56: 1245 RECOMP_ICALL(0x47054FC0u); /* 0x47030F56: call 0x47054fc0 */ /* not lifted */ 1246 RECOMP_FLAGS_IN(); 1247 L_47030F5B: 1248 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 1249 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1250 esp = esp + 0x18u; /* 0x47030F5B: add esp, 0x18 */ 1251 _flag_k = FK_ADD; 1252 L_47030F5E: 1253 goto L_47030F84; /* 0x47030F5E: jmp 0x47030f84 */ 1254 L_47030F60: 1255 ecx = eax + 0x1F4; /* 0x47030F60: lea ecx, [eax + 0x1f4] */ 1256 L_47030F66: 1257 eax = 0x10624DD3u; /* 0x47030F66: mov eax, 0x10624dd3 */ 1258 L_47030F6B: 1259 { uint64_t _r = (uint64_t)eax * (uint32_t)(ecx); /* 0x47030F6B: mul ecx */ 1260 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = edx != 0; 1261 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 1262 L_47030F6D: 1263 if (6u) _cf = (((edx) >> 5) & 1u); /* 0x47030F6D: shr edx, 6 */ 1264 if (6u) { _flag_a = recomp_flags_pack((edx >> 6u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1265 edx = edx >> 6u; /* 0x47030F6D: shr edx, 6 */ 1266 L_47030F70: 1267 PUSH32(esp, edx); /* 0x47030F70: push edx */ 1268 L_47030F71: 1269 PUSH32(esp, ebp); /* 0x47030F71: push ebp */ 1270 L_47030F72: 1271 edx = esp + 0x1C; /* 0x47030F72: lea edx, [esp + 0x1c] */ 1272 L_47030F76: 1273 PUSH32(esp, 0x47106A2Cu); /* 0x47030F76: push 0x47106a2c */ 1274 L_47030F7B: 1275 PUSH32(esp, edx); /* 0x47030F7B: push edx */ 1276 L_47030F7C: 1277 RECOMP_ICALL(0x47054FC0u); /* 0x47030F7C: call 0x47054fc0 */ /* not lifted */ 1278 RECOMP_FLAGS_IN(); 1279 L_47030F81: 1280 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1281 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1282 esp = esp + 0x10u; /* 0x47030F81: add esp, 0x10 */ 1283 _flag_k = FK_ADD; 1284 L_47030F84: 1285 edx = MEM32(esp + 0x7C); /* 0x47030F84: mov edx, dword ptr [esp + 0x7c] */ 1286 L_47030F88: 1287 ebx = MEM32(esp + 0x84); /* 0x47030F88: mov ebx, dword ptr [esp + 0x84] */ 1288 L_47030F8F: 1289 ebp = MEM32(0x470AC114); /* 0x47030F8F: mov ebp, dword ptr [0x470ac114] */ 1290 L_47030F95: 1291 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1292 eax = 0; /* 0x47030F95: xor eax, eax */ 1293 _cf = 0; 1294 _flag_k = FK_TEST; 1295 L_47030F97: 1296 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1297 ecx = ecx | 0xFFFFFFFFu; /* 0x47030F97: or ecx, 0xffffffff */ 1298 _cf = 0; 1299 _flag_k = FK_TEST; 1300 L_47030F9A: 1301 edi = edx; /* 0x47030F9A: mov edi, edx */ 1302 L_47030F9C: 1303 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; } /* 0x47030F9C: repne scasb al, byte ptr es:[edi] */ 1304 L_47030F9E: 1305 PUSH32(esp, eax); /* 0x47030F9E: push eax */ 1306 L_47030F9F: 1307 ecx = ~ecx; /* 0x47030F9F: not ecx */ 1308 L_47030FA1: 1309 eax = esp + 0x84; /* 0x47030FA1: lea eax, [esp + 0x84] */ 1310 L_47030FA8: 1311 PUSH32(esp, eax); /* 0x47030FA8: push eax */ 1312 L_47030FA9: 1313 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1314 ecx = ecx - 1; /* 0x47030FA9: dec ecx */ 1315 _flag_k = FK_DEC; 1316 L_47030FAA: 1317 PUSH32(esp, ecx); /* 0x47030FAA: push ecx */ 1318 L_47030FAB: 1319 PUSH32(esp, edx); /* 0x47030FAB: push edx */ 1320 L_47030FAC: 1321 PUSH32(esp, ebx); /* 0x47030FAC: push ebx */ 1322 L_47030FAD: 1323 RECOMP_ICALL(ebp); /* 0x47030FAD: call ebp */ 1324 RECOMP_FLAGS_IN(); 1325 L_47030FAF: 1326 /* test eax, eax */ /* 0x47030FAF: test eax, eax */ 1327 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1328 _cf = 0; 1329 _flag_k = FK_TEST; 1330 L_47030FB1: 1331 esi = MEM32(0x470AC3C8); /* 0x47030FB1: mov esi, dword ptr [0x470ac3c8] */ 1332 L_47030FB7: 1333 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47031002; /* 0x47030FB7: jne 0x47031002 */ 1334 L_47030FB9: 1335 RECOMP_ICALL(esi); /* 0x47030FB9: call esi */ 1336 RECOMP_FLAGS_IN(); 1337 L_47030FBB: 1338 edi = eax; /* 0x47030FBB: mov edi, eax */ 1339 L_47030FBD: 1340 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47030FBD: call dword ptr [0x470ac150] */ 1341 RECOMP_FLAGS_IN(); 1342 L_47030FC3: 1343 MEM32(edi) = eax; /* 0x47030FC3: mov dword ptr [edi], eax */ 1344 L_47030FC5: 1345 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu); 1346 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1347 eax = eax + 0xFFFFFFFDu; /* 0x47030FC5: add eax, -3 */ 1348 _flag_k = FK_ADD; 1349 L_47030FC8: 1350 /* cmp eax, 0x4Du */ /* 0x47030FC8: cmp eax, 0x4d */ 1351 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Du); 1352 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1353 _flag_k = FK_CMP; 1354 L_47030FCB: 1355 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_47031002; /* 0x47030FCB: ja 0x47031002 */ 1356 L_47030FCD: 1357 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1358 ecx = 0; /* 0x47030FCD: xor ecx, ecx */ 1359 _cf = 0; 1360 _flag_k = FK_TEST; 1361 L_47030FCF: 1362 SET_LO8(ecx, MEM8(eax + 0x470310A8)); /* 0x47030FCF: mov cl, byte ptr [eax + 0x470310a8] */ 1363 L_47030FD5: 1364 { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x47031094)); goto _ljump; } 1365 L_47030FDC: 1366 RECOMP_ICALL(esi); /* 0x47030FDC: call esi */ 1367 RECOMP_FLAGS_IN(); 1368 L_47030FDE: 1369 MEM32(eax) = 0xCu; /* 0x47030FDE: mov dword ptr [eax], 0xc */ 1370 L_47030FE4: 1371 goto L_47031002; /* 0x47030FE4: jmp 0x47031002 */ 1372 L_47030FE6: 1373 RECOMP_ICALL(esi); /* 0x47030FE6: call esi */ 1374 RECOMP_FLAGS_IN(); 1375 L_47030FE8: 1376 MEM32(eax) = 0x11u; /* 0x47030FE8: mov dword ptr [eax], 0x11 */ 1377 L_47030FEE: 1378 goto L_47031002; /* 0x47030FEE: jmp 0x47031002 */ 1379 L_47030FF0: 1380 RECOMP_ICALL(esi); /* 0x47030FF0: call esi */ 1381 RECOMP_FLAGS_IN(); 1382 L_47030FF2: 1383 MEM32(eax) = 0xDu; /* 0x47030FF2: mov dword ptr [eax], 0xd */ 1384 L_47030FF8: 1385 goto L_47031002; /* 0x47030FF8: jmp 0x47031002 */ 1386 L_47030FFA: 1387 RECOMP_ICALL(esi); /* 0x47030FFA: call esi */ 1388 RECOMP_FLAGS_IN(); 1389 L_47030FFC: 1390 MEM32(eax) = 2; /* 0x47030FFC: mov dword ptr [eax], 2 */ 1391 L_47031002: 1392 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1393 eax = 0; /* 0x47031002: xor eax, eax */ 1394 _cf = 0; 1395 _flag_k = FK_TEST; 1396 L_47031004: 1397 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1398 ecx = ecx | 0xFFFFFFFFu; /* 0x47031004: or ecx, 0xffffffff */ 1399 _cf = 0; 1400 _flag_k = FK_TEST; 1401 L_47031007: 1402 edi = esp + 0x14; /* 0x47031007: lea edi, [esp + 0x14] */ 1403 L_4703100B: 1404 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; } /* 0x4703100B: repne scasb al, byte ptr es:[edi] */ 1405 L_4703100D: 1406 PUSH32(esp, eax); /* 0x4703100D: push eax */ 1407 L_4703100E: 1408 ecx = ~ecx; /* 0x4703100E: not ecx */ 1409 L_47031010: 1410 edx = esp + 0x84; /* 0x47031010: lea edx, [esp + 0x84] */ 1411 L_47031017: 1412 PUSH32(esp, edx); /* 0x47031017: push edx */ 1413 L_47031018: 1414 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1415 ecx = ecx - 1; /* 0x47031018: dec ecx */ 1416 _flag_k = FK_DEC; 1417 L_47031019: 1418 PUSH32(esp, ecx); /* 0x47031019: push ecx */ 1419 L_4703101A: 1420 eax = esp + 0x20; /* 0x4703101A: lea eax, [esp + 0x20] */ 1421 L_4703101E: 1422 PUSH32(esp, eax); /* 0x4703101E: push eax */ 1423 L_4703101F: 1424 PUSH32(esp, ebx); /* 0x4703101F: push ebx */ 1425 L_47031020: 1426 RECOMP_ICALL(ebp); /* 0x47031020: call ebp */ 1427 RECOMP_FLAGS_IN(); 1428 L_47031022: 1429 /* test eax, eax */ /* 0x47031022: test eax, eax */ 1430 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1431 _cf = 0; 1432 _flag_k = FK_TEST; 1433 L_47031024: 1434 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47031087; /* 0x47031024: jne 0x47031087 */ 1435 L_47031026: 1436 RECOMP_ICALL(esi); /* 0x47031026: call esi */ 1437 RECOMP_FLAGS_IN(); 1438 L_47031028: 1439 edi = eax; /* 0x47031028: mov edi, eax */ 1440 L_4703102A: 1441 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4703102A: call dword ptr [0x470ac150] */ 1442 RECOMP_FLAGS_IN(); 1443 L_47031030: 1444 MEM32(edi) = eax; /* 0x47031030: mov dword ptr [edi], eax */ 1445 L_47031032: 1446 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu); 1447 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1448 eax = eax + 0xFFFFFFFDu; /* 0x47031032: add eax, -3 */ 1449 _flag_k = FK_ADD; 1450 L_47031035: 1451 /* cmp eax, 0x4Du */ /* 0x47031035: cmp eax, 0x4d */ 1452 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Du); 1453 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1454 _flag_k = FK_CMP; 1455 L_47031038: 1456 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_47031087; /* 0x47031038: ja 0x47031087 */ 1457 L_4703103A: 1458 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1459 ecx = 0; /* 0x4703103A: xor ecx, ecx */ 1460 _cf = 0; 1461 _flag_k = FK_TEST; 1462 L_4703103C: 1463 SET_LO8(ecx, MEM8(eax + 0x4703110C)); /* 0x4703103C: mov cl, byte ptr [eax + 0x4703110c] */ 1464 L_47031042: 1465 { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x470310F8)); goto _ljump; } 1466 L_47031049: 1467 RECOMP_ICALL(esi); /* 0x47031049: call esi */ 1468 RECOMP_FLAGS_IN(); 1469 L_4703104B: 1470 edi = POP32_VAL(esp); /* 0x4703104B: pop edi */ 1471 L_4703104C: 1472 esi = POP32_VAL(esp); /* 0x4703104C: pop esi */ 1473 L_4703104D: 1474 ebp = POP32_VAL(esp); /* 0x4703104D: pop ebp */ 1475 L_4703104E: 1476 MEM32(eax) = 0xCu; /* 0x4703104E: mov dword ptr [eax], 0xc */ 1477 L_47031054: 1478 ebx = POP32_VAL(esp); /* 0x47031054: pop ebx */ 1479 L_47031055: 1480 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x68u); 1481 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1482 esp = esp + 0x68u; /* 0x47031055: add esp, 0x68 */ 1483 _flag_k = FK_ADD; 1484 L_47031058: 1485 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47031058: ret 0xc */ 1486 L_4703105B: 1487 RECOMP_ICALL(esi); /* 0x4703105B: call esi */ 1488 RECOMP_FLAGS_IN(); 1489 L_4703105D: 1490 edi = POP32_VAL(esp); /* 0x4703105D: pop edi */ 1491 L_4703105E: 1492 esi = POP32_VAL(esp); /* 0x4703105E: pop esi */ 1493 L_4703105F: 1494 ebp = POP32_VAL(esp); /* 0x4703105F: pop ebp */ 1495 L_47031060: 1496 MEM32(eax) = 0x11u; /* 0x47031060: mov dword ptr [eax], 0x11 */ 1497 L_47031066: 1498 ebx = POP32_VAL(esp); /* 0x47031066: pop ebx */ 1499 L_47031067: 1500 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x68u); 1501 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1502 esp = esp + 0x68u; /* 0x47031067: add esp, 0x68 */ 1503 _flag_k = FK_ADD; 1504 L_4703106A: 1505 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4703106A: ret 0xc */ 1506 L_4703106D: 1507 RECOMP_ICALL(esi); /* 0x4703106D: call esi */ 1508 RECOMP_FLAGS_IN(); 1509 L_4703106F: 1510 edi = POP32_VAL(esp); /* 0x4703106F: pop edi */ 1511 L_47031070: 1512 esi = POP32_VAL(esp); /* 0x47031070: pop esi */ 1513 L_47031071: 1514 ebp = POP32_VAL(esp); /* 0x47031071: pop ebp */ 1515 L_47031072: 1516 MEM32(eax) = 0xDu; /* 0x47031072: mov dword ptr [eax], 0xd */ 1517 L_47031078: 1518 ebx = POP32_VAL(esp); /* 0x47031078: pop ebx */ 1519 L_47031079: 1520 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x68u); 1521 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1522 esp = esp + 0x68u; /* 0x47031079: add esp, 0x68 */ 1523 _flag_k = FK_ADD; 1524 L_4703107C: 1525 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4703107C: ret 0xc */ 1526 L_4703107F: 1527 RECOMP_ICALL(esi); /* 0x4703107F: call esi */ 1528 RECOMP_FLAGS_IN(); 1529 L_47031081: 1530 MEM32(eax) = 2; /* 0x47031081: mov dword ptr [eax], 2 */ 1531 L_47031087: 1532 edi = POP32_VAL(esp); /* 0x47031087: pop edi */ 1533 L_47031088: 1534 esi = POP32_VAL(esp); /* 0x47031088: pop esi */ 1535 L_47031089: 1536 ebp = POP32_VAL(esp); /* 0x47031089: pop ebp */ 1537 L_4703108A: 1538 ebx = POP32_VAL(esp); /* 0x4703108A: pop ebx */ 1539 L_4703108B: 1540 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x68u); 1541 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1542 esp = esp + 0x68u; /* 0x4703108B: add esp, 0x68 */ 1543 _flag_k = FK_ADD; 1544 L_4703108E: 1545 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4703108E: ret 0xc */ 1546 _ljump: 1547 switch (_itail_tgt) { 1548 case 0x47030EB0u: goto L_47030EB0; 1549 case 0x47030EB3u: goto L_47030EB3; 1550 case 0x47030EB4u: goto L_47030EB4; 1551 case 0x47030EB5u: goto L_47030EB5; 1552 case 0x47030EB6u: goto L_47030EB6; 1553 case 0x47030EB7u: goto L_47030EB7; 1554 case 0x47030EB9u: goto L_47030EB9; 1555 case 0x47030EBEu: goto L_47030EBE; 1556 case 0x47030EC0u: goto L_47030EC0; 1557 case 0x47030EC2u: goto L_47030EC2; 1558 case 0x47030EC7u: goto L_47030EC7; 1559 case 0x47030EC9u: goto L_47030EC9; 1560 case 0x47030ECCu: goto L_47030ECC; 1561 case 0x47030ECEu: goto L_47030ECE; 1562 case 0x47030ED1u: goto L_47030ED1; 1563 case 0x47030ED4u: goto L_47030ED4; 1564 case 0x47030ED6u: goto L_47030ED6; 1565 case 0x47030ED8u: goto L_47030ED8; 1566 case 0x47030ED9u: goto L_47030ED9; 1567 case 0x47030EDAu: goto L_47030EDA; 1568 case 0x47030EDCu: goto L_47030EDC; 1569 case 0x47030EDDu: goto L_47030EDD; 1570 case 0x47030EE2u: goto L_47030EE2; 1571 case 0x47030EE4u: goto L_47030EE4; 1572 case 0x47030EE9u: goto L_47030EE9; 1573 case 0x47030EEBu: goto L_47030EEB; 1574 case 0x47030EEDu: goto L_47030EED; 1575 case 0x47030EEEu: goto L_47030EEE; 1576 case 0x47030EEFu: goto L_47030EEF; 1577 case 0x47030EF4u: goto L_47030EF4; 1578 case 0x47030EF6u: goto L_47030EF6; 1579 case 0x47030EFBu: goto L_47030EFB; 1580 case 0x47030EFCu: goto L_47030EFC; 1581 case 0x47030EFDu: goto L_47030EFD; 1582 case 0x47030EFFu: goto L_47030EFF; 1583 case 0x47030F04u: goto L_47030F04; 1584 case 0x47030F0Bu: goto L_47030F0B; 1585 case 0x47030F0Eu: goto L_47030F0E; 1586 case 0x47030F12u: goto L_47030F12; 1587 case 0x47030F14u: goto L_47030F14; 1588 case 0x47030F16u: goto L_47030F16; 1589 case 0x47030F17u: goto L_47030F17; 1590 case 0x47030F18u: goto L_47030F18; 1591 case 0x47030F19u: goto L_47030F19; 1592 case 0x47030F1Eu: goto L_47030F1E; 1593 case 0x47030F20u: goto L_47030F20; 1594 case 0x47030F25u: goto L_47030F25; 1595 case 0x47030F2Au: goto L_47030F2A; 1596 case 0x47030F2Du: goto L_47030F2D; 1597 case 0x47030F2Eu: goto L_47030F2E; 1598 case 0x47030F2Fu: goto L_47030F2F; 1599 case 0x47030F34u: goto L_47030F34; 1600 case 0x47030F38u: goto L_47030F38; 1601 case 0x47030F39u: goto L_47030F39; 1602 case 0x47030F3Fu: goto L_47030F3F; 1603 case 0x47030F44u: goto L_47030F44; 1604 case 0x47030F46u: goto L_47030F46; 1605 case 0x47030F49u: goto L_47030F49; 1606 case 0x47030F4Au: goto L_47030F4A; 1607 case 0x47030F4Bu: goto L_47030F4B; 1608 case 0x47030F4Cu: goto L_47030F4C; 1609 case 0x47030F50u: goto L_47030F50; 1610 case 0x47030F55u: goto L_47030F55; 1611 case 0x47030F56u: goto L_47030F56; 1612 case 0x47030F5Bu: goto L_47030F5B; 1613 case 0x47030F5Eu: goto L_47030F5E; 1614 case 0x47030F60u: goto L_47030F60; 1615 case 0x47030F66u: goto L_47030F66; 1616 case 0x47030F6Bu: goto L_47030F6B; 1617 case 0x47030F6Du: goto L_47030F6D; 1618 case 0x47030F70u: goto L_47030F70; 1619 case 0x47030F71u: goto L_47030F71; 1620 case 0x47030F72u: goto L_47030F72; 1621 case 0x47030F76u: goto L_47030F76; 1622 case 0x47030F7Bu: goto L_47030F7B; 1623 case 0x47030F7Cu: goto L_47030F7C; 1624 case 0x47030F81u: goto L_47030F81; 1625 case 0x47030F84u: goto L_47030F84; 1626 case 0x47030F88u: goto L_47030F88; 1627 case 0x47030F8Fu: goto L_47030F8F; 1628 case 0x47030F95u: goto L_47030F95; 1629 case 0x47030F97u: goto L_47030F97; 1630 case 0x47030F9Au: goto L_47030F9A; 1631 case 0x47030F9Cu: goto L_47030F9C; 1632 case 0x47030F9Eu: goto L_47030F9E; 1633 case 0x47030F9Fu: goto L_47030F9F; 1634 case 0x47030FA1u: goto L_47030FA1; 1635 case 0x47030FA8u: goto L_47030FA8; 1636 case 0x47030FA9u: goto L_47030FA9; 1637 case 0x47030FAAu: goto L_47030FAA; 1638 case 0x47030FABu: goto L_47030FAB; 1639 case 0x47030FACu: goto L_47030FAC; 1640 case 0x47030FADu: goto L_47030FAD; 1641 case 0x47030FAFu: goto L_47030FAF; 1642 case 0x47030FB1u: goto L_47030FB1; 1643 case 0x47030FB7u: goto L_47030FB7; 1644 case 0x47030FB9u: goto L_47030FB9; 1645 case 0x47030FBBu: goto L_47030FBB; 1646 case 0x47030FBDu: goto L_47030FBD; 1647 case 0x47030FC3u: goto L_47030FC3; 1648 case 0x47030FC5u: goto L_47030FC5; 1649 case 0x47030FC8u: goto L_47030FC8; 1650 case 0x47030FCBu: goto L_47030FCB; 1651 case 0x47030FCDu: goto L_47030FCD; 1652 case 0x47030FCFu: goto L_47030FCF; 1653 case 0x47030FD5u: goto L_47030FD5; 1654 case 0x47030FDCu: goto L_47030FDC; 1655 case 0x47030FDEu: goto L_47030FDE; 1656 case 0x47030FE4u: goto L_47030FE4; 1657 case 0x47030FE6u: goto L_47030FE6; 1658 case 0x47030FE8u: goto L_47030FE8; 1659 case 0x47030FEEu: goto L_47030FEE; 1660 case 0x47030FF0u: goto L_47030FF0; 1661 case 0x47030FF2u: goto L_47030FF2; 1662 case 0x47030FF8u: goto L_47030FF8; 1663 case 0x47030FFAu: goto L_47030FFA; 1664 case 0x47030FFCu: goto L_47030FFC; 1665 case 0x47031002u: goto L_47031002; 1666 case 0x47031004u: goto L_47031004; 1667 case 0x47031007u: goto L_47031007; 1668 case 0x4703100Bu: goto L_4703100B; 1669 case 0x4703100Du: goto L_4703100D; 1670 case 0x4703100Eu: goto L_4703100E; 1671 case 0x47031010u: goto L_47031010; 1672 case 0x47031017u: goto L_47031017; 1673 case 0x47031018u: goto L_47031018; 1674 case 0x47031019u: goto L_47031019; 1675 case 0x4703101Au: goto L_4703101A; 1676 case 0x4703101Eu: goto L_4703101E; 1677 case 0x4703101Fu: goto L_4703101F; 1678 case 0x47031020u: goto L_47031020; 1679 case 0x47031022u: goto L_47031022; 1680 case 0x47031024u: goto L_47031024; 1681 case 0x47031026u: goto L_47031026; 1682 case 0x47031028u: goto L_47031028; 1683 case 0x4703102Au: goto L_4703102A; 1684 case 0x47031030u: goto L_47031030; 1685 case 0x47031032u: goto L_47031032; 1686 case 0x47031035u: goto L_47031035; 1687 case 0x47031038u: goto L_47031038; 1688 case 0x4703103Au: goto L_4703103A; 1689 case 0x4703103Cu: goto L_4703103C; 1690 case 0x47031042u: goto L_47031042; 1691 case 0x47031049u: goto L_47031049; 1692 case 0x4703104Bu: goto L_4703104B; 1693 case 0x4703104Cu: goto L_4703104C; 1694 case 0x4703104Du: goto L_4703104D; 1695 case 0x4703104Eu: goto L_4703104E; 1696 case 0x47031054u: goto L_47031054; 1697 case 0x47031055u: goto L_47031055; 1698 case 0x47031058u: goto L_47031058; 1699 case 0x4703105Bu: goto L_4703105B; 1700 case 0x4703105Du: goto L_4703105D; 1701 case 0x4703105Eu: goto L_4703105E; 1702 case 0x4703105Fu: goto L_4703105F; 1703 case 0x47031060u: goto L_47031060; 1704 case 0x47031066u: goto L_47031066; 1705 case 0x47031067u: goto L_47031067; 1706 case 0x4703106Au: goto L_4703106A; 1707 case 0x4703106Du: goto L_4703106D; 1708 case 0x4703106Fu: goto L_4703106F; 1709 case 0x47031070u: goto L_47031070; 1710 case 0x47031071u: goto L_47031071; 1711 case 0x47031072u: goto L_47031072; 1712 case 0x47031078u: goto L_47031078; 1713 case 0x47031079u: goto L_47031079; 1714 case 0x4703107Cu: goto L_4703107C; 1715 case 0x4703107Fu: goto L_4703107F; 1716 case 0x47031081u: goto L_47031081; 1717 case 0x47031087u: goto L_47031087; 1718 case 0x47031088u: goto L_47031088; 1719 case 0x47031089u: goto L_47031089; 1720 case 0x4703108Au: goto L_4703108A; 1721 case 0x4703108Bu: goto L_4703108B; 1722 case 0x4703108Eu: goto L_4703108E; 1723 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1724 } 1725 RECOMP_REGS_OUT(); 1726 } 1727 1728 void sub_47031160(void) { 1729 int _fpu_cmp = 0; 1730 uint32_t _cf = 0; 1731 int _df = 1; 1732 uint32_t _flag_k = FK_NONE; 1733 uint32_t _flag_a = 0, _flag_b = 0; 1734 uint32_t _itail_tgt = 0; 1735 RECOMP_REGS_LOCALS 1736 RECOMP_ENTER(0x47031160u); 1737 1738 L_47031160: 1739 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x64u); 1740 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1741 esp = esp - 0x64u; /* 0x47031160: sub esp, 0x64 */ 1742 _flag_k = FK_CMP; 1743 L_47031163: 1744 PUSH32(esp, ebx); /* 0x47031163: push ebx */ 1745 L_47031164: 1746 PUSH32(esp, ebp); /* 0x47031164: push ebp */ 1747 L_47031165: 1748 PUSH32(esp, esi); /* 0x47031165: push esi */ 1749 L_47031166: 1750 PUSH32(esp, edi); /* 0x47031166: push edi */ 1751 L_47031167: 1752 esi = ecx; /* 0x47031167: mov esi, ecx */ 1753 L_47031169: 1754 RECOMP_ICALL(0x47030750u); /* 0x47031169: call 0x47030750 */ /* not lifted */ 1755 RECOMP_FLAGS_IN(); 1756 L_4703116E: 1757 ecx = eax; /* 0x4703116E: mov ecx, eax */ 1758 L_47031170: 1759 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1760 edx = 0; /* 0x47031170: xor edx, edx */ 1761 _cf = 0; 1762 _flag_k = FK_TEST; 1763 L_47031172: 1764 eax = 0x3E8u; /* 0x47031172: mov eax, 0x3e8 */ 1765 L_47031177: 1766 { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)ecx; /* 0x47031177: div ecx */ 1767 if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); } 1768 else { eax = 0; edx = 0; } } 1769 L_47031179: 1770 edx = MEM32(esi + 0x8); /* 0x47031179: mov edx, dword ptr [esi + 8] */ 1771 L_4703117C: 1772 ebx = MEM32(esi); /* 0x4703117C: mov ebx, dword ptr [esi] */ 1773 L_4703117E: 1774 ecx = MEM32(esi + 0xC); /* 0x4703117E: mov ecx, dword ptr [esi + 0xc] */ 1775 L_47031181: 1776 edi = MEM32(esi + 0x4); /* 0x47031181: mov edi, dword ptr [esi + 4] */ 1777 L_47031184: 1778 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 1779 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1780 edx = edx - ebx; /* 0x47031184: sub edx, ebx */ 1781 _flag_k = FK_CMP; 1782 L_47031186: 1783 { uint32_t _sa = ecx, _sb = edi, _sc = _cf; /* 0x47031186: sbb ecx, edi */ 1784 ecx = _sa - _sb - _sc; 1785 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1786 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1787 L_47031188: 1788 PUSH32(esp, ecx); /* 0x47031188: push ecx */ 1789 L_47031189: 1790 PUSH32(esp, edx); /* 0x47031189: push edx */ 1791 L_4703118A: 1792 PUSH32(esp, 0); /* 0x4703118A: push 0 */ 1793 L_4703118C: 1794 PUSH32(esp, eax); /* 0x4703118C: push eax */ 1795 L_4703118D: 1796 RECOMP_ICALL(0x470A34C0u); /* 0x4703118D: call 0x470a34c0 */ /* not lifted */ 1797 RECOMP_FLAGS_IN(); 1798 L_47031192: 1799 PUSH32(esp, 0); /* 0x47031192: push 0 */ 1800 L_47031194: 1801 PUSH32(esp, 0x3B9ACA00u); /* 0x47031194: push 0x3b9aca00 */ 1802 L_47031199: 1803 ebx = edx; /* 0x47031199: mov ebx, edx */ 1804 L_4703119B: 1805 edi = eax; /* 0x4703119B: mov edi, eax */ 1806 L_4703119D: 1807 PUSH32(esp, ebx); /* 0x4703119D: push ebx */ 1808 L_4703119E: 1809 PUSH32(esp, edi); /* 0x4703119E: push edi */ 1810 L_4703119F: 1811 RECOMP_ICALL(0x470A3500u); /* 0x4703119F: call 0x470a3500 */ /* not lifted */ 1812 RECOMP_FLAGS_IN(); 1813 L_470311A4: 1814 PUSH32(esp, 0); /* 0x470311A4: push 0 */ 1815 L_470311A6: 1816 PUSH32(esp, 0x3B9ACA00u); /* 0x470311A6: push 0x3b9aca00 */ 1817 L_470311AB: 1818 PUSH32(esp, ebx); /* 0x470311AB: push ebx */ 1819 L_470311AC: 1820 PUSH32(esp, edi); /* 0x470311AC: push edi */ 1821 L_470311AD: 1822 ebp = eax; /* 0x470311AD: mov ebp, eax */ 1823 L_470311AF: 1824 RECOMP_ICALL(0x470A3640u); /* 0x470311AF: call 0x470a3640 */ /* not lifted */ 1825 RECOMP_FLAGS_IN(); 1826 L_470311B4: 1827 edi = MEM32(esp + 0x7C); /* 0x470311B4: mov edi, dword ptr [esp + 0x7c] */ 1828 L_470311B8: 1829 /* cmp edi, 1 */ /* 0x470311B8: cmp edi, 1 */ 1830 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 1831 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1832 _flag_k = FK_CMP; 1833 L_470311BB: 1834 ebx = eax; /* 0x470311BB: mov ebx, eax */ 1835 L_470311BD: 1836 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_LE, _cf)) goto L_4703120D; /* 0x470311BD: jle 0x4703120d */ 1837 L_470311BF: 1838 edx = MEM32(esi + 0x14); /* 0x470311BF: mov edx, dword ptr [esi + 0x14] */ 1839 L_470311C2: 1840 eax = MEM32(esi + 0x10); /* 0x470311C2: mov eax, dword ptr [esi + 0x10] */ 1841 L_470311C5: 1842 PUSH32(esp, 0); /* 0x470311C5: push 0 */ 1843 L_470311C7: 1844 PUSH32(esp, edi); /* 0x470311C7: push edi */ 1845 L_470311C8: 1846 PUSH32(esp, edx); /* 0x470311C8: push edx */ 1847 L_470311C9: 1848 PUSH32(esp, eax); /* 0x470311C9: push eax */ 1849 L_470311CA: 1850 RECOMP_ICALL(0x470A3500u); /* 0x470311CA: call 0x470a3500 */ /* not lifted */ 1851 RECOMP_FLAGS_IN(); 1852 L_470311CF: 1853 PUSH32(esp, 0); /* 0x470311CF: push 0 */ 1854 L_470311D1: 1855 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1F4u); 1856 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1857 eax = eax + 0x1F4u; /* 0x470311D1: add eax, 0x1f4 */ 1858 _flag_k = FK_ADD; 1859 L_470311D6: 1860 PUSH32(esp, 0x3E8u); /* 0x470311D6: push 0x3e8 */ 1861 L_470311DB: 1862 { uint32_t _aa = edx, _ab = 0, _ac = _cf; /* 0x470311DB: adc edx, 0 */ 1863 edx = _aa + _ab + _ac; 1864 _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0; 1865 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1866 L_470311DE: 1867 PUSH32(esp, edx); /* 0x470311DE: push edx */ 1868 L_470311DF: 1869 PUSH32(esp, eax); /* 0x470311DF: push eax */ 1870 L_470311E0: 1871 RECOMP_ICALL(0x470A3500u); /* 0x470311E0: call 0x470a3500 */ /* not lifted */ 1872 RECOMP_FLAGS_IN(); 1873 L_470311E5: 1874 PUSH32(esp, eax); /* 0x470311E5: push eax */ 1875 L_470311E6: 1876 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1F4u); 1877 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1878 ebx = ebx + 0x1F4u; /* 0x470311E6: add ebx, 0x1f4 */ 1879 _flag_k = FK_ADD; 1880 L_470311EC: 1881 eax = 0x10624DD3u; /* 0x470311EC: mov eax, 0x10624dd3 */ 1882 L_470311F1: 1883 { uint64_t _r = (uint64_t)eax * (uint32_t)(ebx); /* 0x470311F1: mul ebx */ 1884 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = edx != 0; 1885 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 1886 L_470311F3: 1887 if (6u) _cf = (((edx) >> 5) & 1u); /* 0x470311F3: shr edx, 6 */ 1888 if (6u) { _flag_a = recomp_flags_pack((edx >> 6u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1889 edx = edx >> 6u; /* 0x470311F3: shr edx, 6 */ 1890 L_470311F6: 1891 PUSH32(esp, edx); /* 0x470311F6: push edx */ 1892 L_470311F7: 1893 PUSH32(esp, ebp); /* 0x470311F7: push ebp */ 1894 L_470311F8: 1895 PUSH32(esp, edi); /* 0x470311F8: push edi */ 1896 L_470311F9: 1897 ecx = esp + 0x20; /* 0x470311F9: lea ecx, [esp + 0x20] */ 1898 L_470311FD: 1899 PUSH32(esp, 0x47106A44u); /* 0x470311FD: push 0x47106a44 */ 1900 L_47031202: 1901 PUSH32(esp, ecx); /* 0x47031202: push ecx */ 1902 L_47031203: 1903 RECOMP_ICALL(0x47054FC0u); /* 0x47031203: call 0x47054fc0 */ /* not lifted */ 1904 RECOMP_FLAGS_IN(); 1905 L_47031208: 1906 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 1907 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1908 esp = esp + 0x18u; /* 0x47031208: add esp, 0x18 */ 1909 _flag_k = FK_ADD; 1910 L_4703120B: 1911 goto L_47031231; /* 0x4703120B: jmp 0x47031231 */ 1912 L_4703120D: 1913 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1F4u); 1914 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1915 ebx = ebx + 0x1F4u; /* 0x4703120D: add ebx, 0x1f4 */ 1916 _flag_k = FK_ADD; 1917 L_47031213: 1918 eax = 0x10624DD3u; /* 0x47031213: mov eax, 0x10624dd3 */ 1919 L_47031218: 1920 { uint64_t _r = (uint64_t)eax * (uint32_t)(ebx); /* 0x47031218: mul ebx */ 1921 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = edx != 0; 1922 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 1923 L_4703121A: 1924 if (6u) _cf = (((edx) >> 5) & 1u); /* 0x4703121A: shr edx, 6 */ 1925 if (6u) { _flag_a = recomp_flags_pack((edx >> 6u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1926 edx = edx >> 6u; /* 0x4703121A: shr edx, 6 */ 1927 L_4703121D: 1928 PUSH32(esp, edx); /* 0x4703121D: push edx */ 1929 L_4703121E: 1930 PUSH32(esp, ebp); /* 0x4703121E: push ebp */ 1931 L_4703121F: 1932 edx = esp + 0x18; /* 0x4703121F: lea edx, [esp + 0x18] */ 1933 L_47031223: 1934 PUSH32(esp, 0x47106A80u); /* 0x47031223: push 0x47106a80 */ 1935 L_47031228: 1936 PUSH32(esp, edx); /* 0x47031228: push edx */ 1937 L_47031229: 1938 RECOMP_ICALL(0x47054FC0u); /* 0x47031229: call 0x47054fc0 */ /* not lifted */ 1939 RECOMP_FLAGS_IN(); 1940 L_4703122E: 1941 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1942 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1943 esp = esp + 0x10u; /* 0x4703122E: add esp, 0x10 */ 1944 _flag_k = FK_ADD; 1945 L_47031231: 1946 edx = MEM32(esp + 0x78); /* 0x47031231: mov edx, dword ptr [esp + 0x78] */ 1947 L_47031235: 1948 ebx = MEM32(esp + 0x80); /* 0x47031235: mov ebx, dword ptr [esp + 0x80] */ 1949 L_4703123C: 1950 ebp = MEM32(0x470AC114); /* 0x4703123C: mov ebp, dword ptr [0x470ac114] */ 1951 L_47031242: 1952 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1953 eax = 0; /* 0x47031242: xor eax, eax */ 1954 _cf = 0; 1955 _flag_k = FK_TEST; 1956 L_47031244: 1957 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1958 ecx = ecx | 0xFFFFFFFFu; /* 0x47031244: or ecx, 0xffffffff */ 1959 _cf = 0; 1960 _flag_k = FK_TEST; 1961 L_47031247: 1962 edi = edx; /* 0x47031247: mov edi, edx */ 1963 L_47031249: 1964 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; } /* 0x47031249: repne scasb al, byte ptr es:[edi] */ 1965 L_4703124B: 1966 PUSH32(esp, eax); /* 0x4703124B: push eax */ 1967 L_4703124C: 1968 ecx = ~ecx; /* 0x4703124C: not ecx */ 1969 L_4703124E: 1970 eax = esp + 0x80; /* 0x4703124E: lea eax, [esp + 0x80] */ 1971 L_47031255: 1972 PUSH32(esp, eax); /* 0x47031255: push eax */ 1973 L_47031256: 1974 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1975 ecx = ecx - 1; /* 0x47031256: dec ecx */ 1976 _flag_k = FK_DEC; 1977 L_47031257: 1978 PUSH32(esp, ecx); /* 0x47031257: push ecx */ 1979 L_47031258: 1980 PUSH32(esp, edx); /* 0x47031258: push edx */ 1981 L_47031259: 1982 PUSH32(esp, ebx); /* 0x47031259: push ebx */ 1983 L_4703125A: 1984 RECOMP_ICALL(ebp); /* 0x4703125A: call ebp */ 1985 RECOMP_FLAGS_IN(); 1986 L_4703125C: 1987 /* test eax, eax */ /* 0x4703125C: test eax, eax */ 1988 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1989 _cf = 0; 1990 _flag_k = FK_TEST; 1991 L_4703125E: 1992 esi = MEM32(0x470AC3C8); /* 0x4703125E: mov esi, dword ptr [0x470ac3c8] */ 1993 L_47031264: 1994 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_470312AF; /* 0x47031264: jne 0x470312af */ 1995 L_47031266: 1996 RECOMP_ICALL(esi); /* 0x47031266: call esi */ 1997 RECOMP_FLAGS_IN(); 1998 L_47031268: 1999 edi = eax; /* 0x47031268: mov edi, eax */ 2000 L_4703126A: 2001 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4703126A: call dword ptr [0x470ac150] */ 2002 RECOMP_FLAGS_IN(); 2003 L_47031270: 2004 MEM32(edi) = eax; /* 0x47031270: mov dword ptr [edi], eax */ 2005 L_47031272: 2006 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu); 2007 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2008 eax = eax + 0xFFFFFFFDu; /* 0x47031272: add eax, -3 */ 2009 _flag_k = FK_ADD; 2010 L_47031275: 2011 /* cmp eax, 0x4Du */ /* 0x47031275: cmp eax, 0x4d */ 2012 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Du); 2013 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2014 _flag_k = FK_CMP; 2015 L_47031278: 2016 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_470312AF; /* 0x47031278: ja 0x470312af */ 2017 L_4703127A: 2018 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2019 ecx = 0; /* 0x4703127A: xor ecx, ecx */ 2020 _cf = 0; 2021 _flag_k = FK_TEST; 2022 L_4703127C: 2023 SET_LO8(ecx, MEM8(eax + 0x47031354)); /* 0x4703127C: mov cl, byte ptr [eax + 0x47031354] */ 2024 L_47031282: 2025 { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x47031340)); goto _ljump; } 2026 L_47031289: 2027 RECOMP_ICALL(esi); /* 0x47031289: call esi */ 2028 RECOMP_FLAGS_IN(); 2029 L_4703128B: 2030 MEM32(eax) = 0xCu; /* 0x4703128B: mov dword ptr [eax], 0xc */ 2031 L_47031291: 2032 goto L_470312AF; /* 0x47031291: jmp 0x470312af */ 2033 L_47031293: 2034 RECOMP_ICALL(esi); /* 0x47031293: call esi */ 2035 RECOMP_FLAGS_IN(); 2036 L_47031295: 2037 MEM32(eax) = 0x11u; /* 0x47031295: mov dword ptr [eax], 0x11 */ 2038 L_4703129B: 2039 goto L_470312AF; /* 0x4703129B: jmp 0x470312af */ 2040 L_4703129D: 2041 RECOMP_ICALL(esi); /* 0x4703129D: call esi */ 2042 RECOMP_FLAGS_IN(); 2043 L_4703129F: 2044 MEM32(eax) = 0xDu; /* 0x4703129F: mov dword ptr [eax], 0xd */ 2045 L_470312A5: 2046 goto L_470312AF; /* 0x470312A5: jmp 0x470312af */ 2047 L_470312A7: 2048 RECOMP_ICALL(esi); /* 0x470312A7: call esi */ 2049 RECOMP_FLAGS_IN(); 2050 L_470312A9: 2051 MEM32(eax) = 2; /* 0x470312A9: mov dword ptr [eax], 2 */ 2052 L_470312AF: 2053 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2054 eax = 0; /* 0x470312AF: xor eax, eax */ 2055 _cf = 0; 2056 _flag_k = FK_TEST; 2057 L_470312B1: 2058 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2059 ecx = ecx | 0xFFFFFFFFu; /* 0x470312B1: or ecx, 0xffffffff */ 2060 _cf = 0; 2061 _flag_k = FK_TEST; 2062 L_470312B4: 2063 edi = esp + 0x10; /* 0x470312B4: lea edi, [esp + 0x10] */ 2064 L_470312B8: 2065 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; } /* 0x470312B8: repne scasb al, byte ptr es:[edi] */ 2066 L_470312BA: 2067 PUSH32(esp, eax); /* 0x470312BA: push eax */ 2068 L_470312BB: 2069 ecx = ~ecx; /* 0x470312BB: not ecx */ 2070 L_470312BD: 2071 edx = esp + 0x80; /* 0x470312BD: lea edx, [esp + 0x80] */ 2072 L_470312C4: 2073 PUSH32(esp, edx); /* 0x470312C4: push edx */ 2074 L_470312C5: 2075 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2076 ecx = ecx - 1; /* 0x470312C5: dec ecx */ 2077 _flag_k = FK_DEC; 2078 L_470312C6: 2079 PUSH32(esp, ecx); /* 0x470312C6: push ecx */ 2080 L_470312C7: 2081 eax = esp + 0x1C; /* 0x470312C7: lea eax, [esp + 0x1c] */ 2082 L_470312CB: 2083 PUSH32(esp, eax); /* 0x470312CB: push eax */ 2084 L_470312CC: 2085 PUSH32(esp, ebx); /* 0x470312CC: push ebx */ 2086 L_470312CD: 2087 RECOMP_ICALL(ebp); /* 0x470312CD: call ebp */ 2088 RECOMP_FLAGS_IN(); 2089 L_470312CF: 2090 /* test eax, eax */ /* 0x470312CF: test eax, eax */ 2091 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2092 _cf = 0; 2093 _flag_k = FK_TEST; 2094 L_470312D1: 2095 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47031334; /* 0x470312D1: jne 0x47031334 */ 2096 L_470312D3: 2097 RECOMP_ICALL(esi); /* 0x470312D3: call esi */ 2098 RECOMP_FLAGS_IN(); 2099 L_470312D5: 2100 edi = eax; /* 0x470312D5: mov edi, eax */ 2101 L_470312D7: 2102 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470312D7: call dword ptr [0x470ac150] */ 2103 RECOMP_FLAGS_IN(); 2104 L_470312DD: 2105 MEM32(edi) = eax; /* 0x470312DD: mov dword ptr [edi], eax */ 2106 L_470312DF: 2107 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu); 2108 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2109 eax = eax + 0xFFFFFFFDu; /* 0x470312DF: add eax, -3 */ 2110 _flag_k = FK_ADD; 2111 L_470312E2: 2112 /* cmp eax, 0x4Du */ /* 0x470312E2: cmp eax, 0x4d */ 2113 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Du); 2114 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2115 _flag_k = FK_CMP; 2116 L_470312E5: 2117 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_47031334; /* 0x470312E5: ja 0x47031334 */ 2118 L_470312E7: 2119 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2120 ecx = 0; /* 0x470312E7: xor ecx, ecx */ 2121 _cf = 0; 2122 _flag_k = FK_TEST; 2123 L_470312E9: 2124 SET_LO8(ecx, MEM8(eax + 0x470313B8)); /* 0x470312E9: mov cl, byte ptr [eax + 0x470313b8] */ 2125 L_470312EF: 2126 { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x470313A4)); goto _ljump; } 2127 L_470312F6: 2128 RECOMP_ICALL(esi); /* 0x470312F6: call esi */ 2129 RECOMP_FLAGS_IN(); 2130 L_470312F8: 2131 edi = POP32_VAL(esp); /* 0x470312F8: pop edi */ 2132 L_470312F9: 2133 esi = POP32_VAL(esp); /* 0x470312F9: pop esi */ 2134 L_470312FA: 2135 ebp = POP32_VAL(esp); /* 0x470312FA: pop ebp */ 2136 L_470312FB: 2137 MEM32(eax) = 0xCu; /* 0x470312FB: mov dword ptr [eax], 0xc */ 2138 L_47031301: 2139 ebx = POP32_VAL(esp); /* 0x47031301: pop ebx */ 2140 L_47031302: 2141 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x64u); 2142 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2143 esp = esp + 0x64u; /* 0x47031302: add esp, 0x64 */ 2144 _flag_k = FK_ADD; 2145 L_47031305: 2146 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47031305: ret 0xc */ 2147 L_47031308: 2148 RECOMP_ICALL(esi); /* 0x47031308: call esi */ 2149 RECOMP_FLAGS_IN(); 2150 L_4703130A: 2151 edi = POP32_VAL(esp); /* 0x4703130A: pop edi */ 2152 L_4703130B: 2153 esi = POP32_VAL(esp); /* 0x4703130B: pop esi */ 2154 L_4703130C: 2155 ebp = POP32_VAL(esp); /* 0x4703130C: pop ebp */ 2156 L_4703130D: 2157 MEM32(eax) = 0x11u; /* 0x4703130D: mov dword ptr [eax], 0x11 */ 2158 L_47031313: 2159 ebx = POP32_VAL(esp); /* 0x47031313: pop ebx */ 2160 L_47031314: 2161 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x64u); 2162 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2163 esp = esp + 0x64u; /* 0x47031314: add esp, 0x64 */ 2164 _flag_k = FK_ADD; 2165 L_47031317: 2166 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47031317: ret 0xc */ 2167 L_4703131A: 2168 RECOMP_ICALL(esi); /* 0x4703131A: call esi */ 2169 RECOMP_FLAGS_IN(); 2170 L_4703131C: 2171 edi = POP32_VAL(esp); /* 0x4703131C: pop edi */ 2172 L_4703131D: 2173 esi = POP32_VAL(esp); /* 0x4703131D: pop esi */ 2174 L_4703131E: 2175 ebp = POP32_VAL(esp); /* 0x4703131E: pop ebp */ 2176 L_4703131F: 2177 MEM32(eax) = 0xDu; /* 0x4703131F: mov dword ptr [eax], 0xd */ 2178 L_47031325: 2179 ebx = POP32_VAL(esp); /* 0x47031325: pop ebx */ 2180 L_47031326: 2181 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x64u); 2182 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2183 esp = esp + 0x64u; /* 0x47031326: add esp, 0x64 */ 2184 _flag_k = FK_ADD; 2185 L_47031329: 2186 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47031329: ret 0xc */ 2187 L_4703132C: 2188 RECOMP_ICALL(esi); /* 0x4703132C: call esi */ 2189 RECOMP_FLAGS_IN(); 2190 L_4703132E: 2191 MEM32(eax) = 2; /* 0x4703132E: mov dword ptr [eax], 2 */ 2192 L_47031334: 2193 edi = POP32_VAL(esp); /* 0x47031334: pop edi */ 2194 L_47031335: 2195 esi = POP32_VAL(esp); /* 0x47031335: pop esi */ 2196 L_47031336: 2197 ebp = POP32_VAL(esp); /* 0x47031336: pop ebp */ 2198 L_47031337: 2199 ebx = POP32_VAL(esp); /* 0x47031337: pop ebx */ 2200 L_47031338: 2201 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x64u); 2202 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2203 esp = esp + 0x64u; /* 0x47031338: add esp, 0x64 */ 2204 _flag_k = FK_ADD; 2205 L_4703133B: 2206 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4703133B: ret 0xc */ 2207 _ljump: 2208 switch (_itail_tgt) { 2209 case 0x47031160u: goto L_47031160; 2210 case 0x47031163u: goto L_47031163; 2211 case 0x47031164u: goto L_47031164; 2212 case 0x47031165u: goto L_47031165; 2213 case 0x47031166u: goto L_47031166; 2214 case 0x47031167u: goto L_47031167; 2215 case 0x47031169u: goto L_47031169; 2216 case 0x4703116Eu: goto L_4703116E; 2217 case 0x47031170u: goto L_47031170; 2218 case 0x47031172u: goto L_47031172; 2219 case 0x47031177u: goto L_47031177; 2220 case 0x47031179u: goto L_47031179; 2221 case 0x4703117Cu: goto L_4703117C; 2222 case 0x4703117Eu: goto L_4703117E; 2223 case 0x47031181u: goto L_47031181; 2224 case 0x47031184u: goto L_47031184; 2225 case 0x47031186u: goto L_47031186; 2226 case 0x47031188u: goto L_47031188; 2227 case 0x47031189u: goto L_47031189; 2228 case 0x4703118Au: goto L_4703118A; 2229 case 0x4703118Cu: goto L_4703118C; 2230 case 0x4703118Du: goto L_4703118D; 2231 case 0x47031192u: goto L_47031192; 2232 case 0x47031194u: goto L_47031194; 2233 case 0x47031199u: goto L_47031199; 2234 case 0x4703119Bu: goto L_4703119B; 2235 case 0x4703119Du: goto L_4703119D; 2236 case 0x4703119Eu: goto L_4703119E; 2237 case 0x4703119Fu: goto L_4703119F; 2238 case 0x470311A4u: goto L_470311A4; 2239 case 0x470311A6u: goto L_470311A6; 2240 case 0x470311ABu: goto L_470311AB; 2241 case 0x470311ACu: goto L_470311AC; 2242 case 0x470311ADu: goto L_470311AD; 2243 case 0x470311AFu: goto L_470311AF; 2244 case 0x470311B4u: goto L_470311B4; 2245 case 0x470311B8u: goto L_470311B8; 2246 case 0x470311BBu: goto L_470311BB; 2247 case 0x470311BDu: goto L_470311BD; 2248 case 0x470311BFu: goto L_470311BF; 2249 case 0x470311C2u: goto L_470311C2; 2250 case 0x470311C5u: goto L_470311C5; 2251 case 0x470311C7u: goto L_470311C7; 2252 case 0x470311C8u: goto L_470311C8; 2253 case 0x470311C9u: goto L_470311C9; 2254 case 0x470311CAu: goto L_470311CA; 2255 case 0x470311CFu: goto L_470311CF; 2256 case 0x470311D1u: goto L_470311D1; 2257 case 0x470311D6u: goto L_470311D6; 2258 case 0x470311DBu: goto L_470311DB; 2259 case 0x470311DEu: goto L_470311DE; 2260 case 0x470311DFu: goto L_470311DF; 2261 case 0x470311E0u: goto L_470311E0; 2262 case 0x470311E5u: goto L_470311E5; 2263 case 0x470311E6u: goto L_470311E6; 2264 case 0x470311ECu: goto L_470311EC; 2265 case 0x470311F1u: goto L_470311F1; 2266 case 0x470311F3u: goto L_470311F3; 2267 case 0x470311F6u: goto L_470311F6; 2268 case 0x470311F7u: goto L_470311F7; 2269 case 0x470311F8u: goto L_470311F8; 2270 case 0x470311F9u: goto L_470311F9; 2271 case 0x470311FDu: goto L_470311FD; 2272 case 0x47031202u: goto L_47031202; 2273 case 0x47031203u: goto L_47031203; 2274 case 0x47031208u: goto L_47031208; 2275 case 0x4703120Bu: goto L_4703120B; 2276 case 0x4703120Du: goto L_4703120D; 2277 case 0x47031213u: goto L_47031213; 2278 case 0x47031218u: goto L_47031218; 2279 case 0x4703121Au: goto L_4703121A; 2280 case 0x4703121Du: goto L_4703121D; 2281 case 0x4703121Eu: goto L_4703121E; 2282 case 0x4703121Fu: goto L_4703121F; 2283 case 0x47031223u: goto L_47031223; 2284 case 0x47031228u: goto L_47031228; 2285 case 0x47031229u: goto L_47031229; 2286 case 0x4703122Eu: goto L_4703122E; 2287 case 0x47031231u: goto L_47031231; 2288 case 0x47031235u: goto L_47031235; 2289 case 0x4703123Cu: goto L_4703123C; 2290 case 0x47031242u: goto L_47031242; 2291 case 0x47031244u: goto L_47031244; 2292 case 0x47031247u: goto L_47031247; 2293 case 0x47031249u: goto L_47031249; 2294 case 0x4703124Bu: goto L_4703124B; 2295 case 0x4703124Cu: goto L_4703124C; 2296 case 0x4703124Eu: goto L_4703124E; 2297 case 0x47031255u: goto L_47031255; 2298 case 0x47031256u: goto L_47031256; 2299 case 0x47031257u: goto L_47031257; 2300 case 0x47031258u: goto L_47031258; 2301 case 0x47031259u: goto L_47031259; 2302 case 0x4703125Au: goto L_4703125A; 2303 case 0x4703125Cu: goto L_4703125C; 2304 case 0x4703125Eu: goto L_4703125E; 2305 case 0x47031264u: goto L_47031264; 2306 case 0x47031266u: goto L_47031266; 2307 case 0x47031268u: goto L_47031268; 2308 case 0x4703126Au: goto L_4703126A; 2309 case 0x47031270u: goto L_47031270; 2310 case 0x47031272u: goto L_47031272; 2311 case 0x47031275u: goto L_47031275; 2312 case 0x47031278u: goto L_47031278; 2313 case 0x4703127Au: goto L_4703127A; 2314 case 0x4703127Cu: goto L_4703127C; 2315 case 0x47031282u: goto L_47031282; 2316 case 0x47031289u: goto L_47031289; 2317 case 0x4703128Bu: goto L_4703128B; 2318 case 0x47031291u: goto L_47031291; 2319 case 0x47031293u: goto L_47031293; 2320 case 0x47031295u: goto L_47031295; 2321 case 0x4703129Bu: goto L_4703129B; 2322 case 0x4703129Du: goto L_4703129D; 2323 case 0x4703129Fu: goto L_4703129F; 2324 case 0x470312A5u: goto L_470312A5; 2325 case 0x470312A7u: goto L_470312A7; 2326 case 0x470312A9u: goto L_470312A9; 2327 case 0x470312AFu: goto L_470312AF; 2328 case 0x470312B1u: goto L_470312B1; 2329 case 0x470312B4u: goto L_470312B4; 2330 case 0x470312B8u: goto L_470312B8; 2331 case 0x470312BAu: goto L_470312BA; 2332 case 0x470312BBu: goto L_470312BB; 2333 case 0x470312BDu: goto L_470312BD; 2334 case 0x470312C4u: goto L_470312C4; 2335 case 0x470312C5u: goto L_470312C5; 2336 case 0x470312C6u: goto L_470312C6; 2337 case 0x470312C7u: goto L_470312C7; 2338 case 0x470312CBu: goto L_470312CB; 2339 case 0x470312CCu: goto L_470312CC; 2340 case 0x470312CDu: goto L_470312CD; 2341 case 0x470312CFu: goto L_470312CF; 2342 case 0x470312D1u: goto L_470312D1; 2343 case 0x470312D3u: goto L_470312D3; 2344 case 0x470312D5u: goto L_470312D5; 2345 case 0x470312D7u: goto L_470312D7; 2346 case 0x470312DDu: goto L_470312DD; 2347 case 0x470312DFu: goto L_470312DF; 2348 case 0x470312E2u: goto L_470312E2; 2349 case 0x470312E5u: goto L_470312E5; 2350 case 0x470312E7u: goto L_470312E7; 2351 case 0x470312E9u: goto L_470312E9; 2352 case 0x470312EFu: goto L_470312EF; 2353 case 0x470312F6u: goto L_470312F6; 2354 case 0x470312F8u: goto L_470312F8; 2355 case 0x470312F9u: goto L_470312F9; 2356 case 0x470312FAu: goto L_470312FA; 2357 case 0x470312FBu: goto L_470312FB; 2358 case 0x47031301u: goto L_47031301; 2359 case 0x47031302u: goto L_47031302; 2360 case 0x47031305u: goto L_47031305; 2361 case 0x47031308u: goto L_47031308; 2362 case 0x4703130Au: goto L_4703130A; 2363 case 0x4703130Bu: goto L_4703130B; 2364 case 0x4703130Cu: goto L_4703130C; 2365 case 0x4703130Du: goto L_4703130D; 2366 case 0x47031313u: goto L_47031313; 2367 case 0x47031314u: goto L_47031314; 2368 case 0x47031317u: goto L_47031317; 2369 case 0x4703131Au: goto L_4703131A; 2370 case 0x4703131Cu: goto L_4703131C; 2371 case 0x4703131Du: goto L_4703131D; 2372 case 0x4703131Eu: goto L_4703131E; 2373 case 0x4703131Fu: goto L_4703131F; 2374 case 0x47031325u: goto L_47031325; 2375 case 0x47031326u: goto L_47031326; 2376 case 0x47031329u: goto L_47031329; 2377 case 0x4703132Cu: goto L_4703132C; 2378 case 0x4703132Eu: goto L_4703132E; 2379 case 0x47031334u: goto L_47031334; 2380 case 0x47031335u: goto L_47031335; 2381 case 0x47031336u: goto L_47031336; 2382 case 0x47031337u: goto L_47031337; 2383 case 0x47031338u: goto L_47031338; 2384 case 0x4703133Bu: goto L_4703133B; 2385 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2386 } 2387 RECOMP_REGS_OUT(); 2388 } 2389 2390 void sub_47031410(void) { 2391 int _fpu_cmp = 0; 2392 uint32_t _cf = 0; 2393 int _df = 1; 2394 uint32_t _flag_k = FK_NONE; 2395 uint32_t _flag_a = 0, _flag_b = 0; 2396 uint32_t _itail_tgt = 0; 2397 RECOMP_REGS_LOCALS 2398 RECOMP_ENTER(0x47031410u); 2399 2400 L_47031410: 2401 eax = MEM32(esp + 0x4); /* 0x47031410: mov eax, dword ptr [esp + 4] */ 2402 /* test eax, eax */ /* 0x47031414: test eax, eax */ 2403 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2404 _cf = 0; 2405 _flag_k = FK_TEST; 2406 if (TEST_Z(_flag_a, _flag_b)) goto L_4703143C; /* 0x47031416: je 0x4703143c */ 2407 L_47031418: 2408 PUSH32(esp, eax); /* 0x47031418: push eax */ 2409 RECOMP_ICALL(MEM32(0x470AC268)); /* 0x47031419: call dword ptr [0x470ac268] */ 2410 RECOMP_FLAGS_IN(); 2411 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2412 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2413 esp = esp + 4; /* 0x4703141F: add esp, 4 */ 2414 _flag_k = FK_ADD; 2415 /* test eax, eax */ /* 0x47031422: test eax, eax */ 2416 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2417 _cf = 0; 2418 _flag_k = FK_TEST; 2419 if (TEST_Z(_flag_a, _flag_b)) goto L_4703143C; /* 0x47031424: je 0x4703143c */ 2420 L_47031426: 2421 PUSH32(esp, eax); /* 0x47031426: push eax */ 2422 RECOMP_ICALL(MEM32(0x470AC3D8)); /* 0x47031427: call dword ptr [0x470ac3d8] */ 2423 RECOMP_FLAGS_IN(); 2424 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2425 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2426 esp = esp + 4; /* 0x4703142D: add esp, 4 */ 2427 _flag_k = FK_ADD; 2428 /* test eax, eax */ /* 0x47031430: test eax, eax */ 2429 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2430 _cf = 0; 2431 _flag_k = FK_TEST; 2432 if (TEST_LE(_flag_a, _flag_b)) goto L_4703143C; /* 0x47031432: jle 0x4703143c */ 2433 L_47031434: 2434 MEM32(0x4710688C) = eax; /* 0x47031434: mov dword ptr [0x4710688c], eax */ 2435 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2436 eax = 0; /* 0x47031439: xor eax, eax */ 2437 _cf = 0; 2438 _flag_k = FK_TEST; 2439 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703143B: ret */ 2440 L_4703143C: 2441 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2442 eax = eax | 0xFFFFFFFFu; /* 0x4703143C: or eax, 0xffffffff */ 2443 _cf = 0; 2444 _flag_k = FK_TEST; 2445 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703143F: ret */ 2446 RECOMP_REGS_OUT(); 2447 } 2448 2449 void sub_47031440(void) { 2450 int _fpu_cmp = 0; 2451 uint32_t _cf = 0; 2452 int _df = 1; 2453 uint32_t _flag_k = FK_NONE; 2454 uint32_t _flag_a = 0, _flag_b = 0; 2455 uint32_t _itail_tgt = 0; 2456 RECOMP_REGS_LOCALS 2457 RECOMP_ENTER(0x47031440u); 2458 2459 L_47031440: 2460 edx = MEM32(ecx + 0x4); /* 0x47031440: mov edx, dword ptr [ecx + 4] */ 2461 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2462 eax = eax | 0xFFFFFFFFu; /* 0x47031443: or eax, 0xffffffff */ 2463 _cf = 0; 2464 _flag_k = FK_TEST; 2465 /* cmp edx, eax */ /* 0x47031446: cmp edx, eax */ 2466 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2467 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2468 _flag_k = FK_CMP; 2469 if (CMP_EQ(_flag_a, _flag_b)) goto L_47031454; /* 0x47031448: je 0x47031454 */ 2470 L_4703144A: 2471 MEM32(ecx + 0x4) = eax; /* 0x4703144A: mov dword ptr [ecx + 4], eax */ 2472 ecx = MEM32(ecx); /* 0x4703144D: mov ecx, dword ptr [ecx] */ 2473 goto L_470870E0; /* 0x4703144F: jmp 0x470870e0 */ 2474 L_47031454: 2475 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47031454: ret */ 2476 L_470870E0: 2477 PUSH32(esp, ecx); /* 0x470870E0: push ecx */ 2478 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470870E1: call dword ptr [0x470ac190] */ 2479 RECOMP_FLAGS_IN(); 2480 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2481 eax = 0; /* 0x470870E7: xor eax, eax */ 2482 _cf = 0; 2483 _flag_k = FK_TEST; 2484 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470870E9: ret */ 2485 RECOMP_REGS_OUT(); 2486 } 2487 2488 void sub_47031460(void) { 2489 int _fpu_cmp = 0; 2490 uint32_t _cf = 0; 2491 int _df = 1; 2492 uint32_t _flag_k = FK_NONE; 2493 uint32_t _flag_a = 0, _flag_b = 0; 2494 uint32_t _itail_tgt = 0; 2495 RECOMP_REGS_LOCALS 2496 RECOMP_ENTER(0x47031460u); 2497 2498 L_47031460: 2499 ecx = 0x4710E335u; /* 0x47031460: mov ecx, 0x4710e335 */ 2500 RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47031465: call dword ptr [0x470ac1c8] */ 2501 RECOMP_FLAGS_IN(); 2502 PUSH32(esp, 0x47031480u); /* 0x4703146B: push 0x47031480 */ 2503 RECOMP_ICALL(0x470A32D9u); /* 0x47031470: call 0x470a32d9 */ /* not lifted */ 2504 RECOMP_FLAGS_IN(); 2505 ecx = POP32_VAL(esp); /* 0x47031475: pop ecx */ 2506 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47031476: ret */ 2507 RECOMP_REGS_OUT(); 2508 } 2509 2510 void sub_47031480(void) { 2511 int _fpu_cmp = 0; 2512 uint32_t _cf = 0; 2513 int _df = 1; 2514 uint32_t _flag_k = FK_NONE; 2515 uint32_t _flag_a = 0, _flag_b = 0; 2516 uint32_t _itail_tgt = 0; 2517 RECOMP_REGS_LOCALS 2518 RECOMP_ENTER(0x47031480u); 2519 2520 L_47031480: 2521 ecx = 0x4710E335u; /* 0x47031480: mov ecx, 0x4710e335 */ 2522 L_47031485: 2523 { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; } 2524 { RECOMP_REGS_OUT(); return; } /* end of function */ 2525 _ljump: 2526 switch (_itail_tgt) { 2527 case 0x47031480u: goto L_47031480; 2528 case 0x47031485u: goto L_47031485; 2529 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2530 } 2531 RECOMP_REGS_OUT(); 2532 } 2533 2534 void sub_47031490(void) { 2535 int _fpu_cmp = 0; 2536 uint32_t _cf = 0; 2537 int _df = 1; 2538 uint32_t _flag_k = FK_NONE; 2539 uint32_t _flag_a = 0, _flag_b = 0; 2540 uint32_t _itail_tgt = 0; 2541 RECOMP_REGS_LOCALS 2542 RECOMP_ENTER(0x47031490u); 2543 2544 L_47031490: 2545 ecx = 0x4710E334u; /* 0x47031490: mov ecx, 0x4710e334 */ 2546 RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x47031495: call dword ptr [0x470ac1c4] */ 2547 RECOMP_FLAGS_IN(); 2548 PUSH32(esp, 0x470314B0u); /* 0x4703149B: push 0x470314b0 */ 2549 RECOMP_ICALL(0x470A32D9u); /* 0x470314A0: call 0x470a32d9 */ /* not lifted */ 2550 RECOMP_FLAGS_IN(); 2551 ecx = POP32_VAL(esp); /* 0x470314A5: pop ecx */ 2552 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470314A6: ret */ 2553 RECOMP_REGS_OUT(); 2554 } 2555 2556 void sub_470314B0(void) { 2557 int _fpu_cmp = 0; 2558 uint32_t _cf = 0; 2559 int _df = 1; 2560 uint32_t _flag_k = FK_NONE; 2561 uint32_t _flag_a = 0, _flag_b = 0; 2562 uint32_t _itail_tgt = 0; 2563 RECOMP_REGS_LOCALS 2564 RECOMP_ENTER(0x470314B0u); 2565 2566 L_470314B0: 2567 ecx = 0x4710E334u; /* 0x470314B0: mov ecx, 0x4710e334 */ 2568 L_470314B5: 2569 { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; } 2570 { RECOMP_REGS_OUT(); return; } /* end of function */ 2571 _ljump: 2572 switch (_itail_tgt) { 2573 case 0x470314B0u: goto L_470314B0; 2574 case 0x470314B5u: goto L_470314B5; 2575 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2576 } 2577 RECOMP_REGS_OUT(); 2578 } 2579 2580 void sub_470314C0(void) { 2581 int _fpu_cmp = 0; 2582 uint32_t _cf = 0; 2583 int _df = 1; 2584 uint32_t _flag_k = FK_NONE; 2585 uint32_t _flag_a = 0, _flag_b = 0; 2586 uint32_t _itail_tgt = 0; 2587 RECOMP_REGS_LOCALS 2588 RECOMP_ENTER(0x470314C0u); 2589 2590 L_470314C0: 2591 MEM32(0x4710E338) = 0x47106A98u; /* 0x470314C0: mov dword ptr [0x4710e338], 0x47106a98 */ 2592 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470314CA: ret */ 2593 RECOMP_REGS_OUT(); 2594 } 2595 2596 void sub_470314D0(void) { 2597 int _fpu_cmp = 0; 2598 uint32_t _cf = 0; 2599 int _df = 1; 2600 uint32_t _flag_k = FK_NONE; 2601 uint32_t _flag_a = 0, _flag_b = 0; 2602 uint32_t _itail_tgt = 0; 2603 RECOMP_REGS_LOCALS 2604 RECOMP_ENTER(0x470314D0u); 2605 2606 L_470314D0: 2607 eax = MEM32(esp + 0xC); /* 0x470314D0: mov eax, dword ptr [esp + 0xc] */ 2608 /* test eax, eax */ /* 0x470314D4: test eax, eax */ 2609 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2610 _cf = 0; 2611 _flag_k = FK_TEST; 2612 PUSH32(esp, ebx); /* 0x470314D6: push ebx */ 2613 PUSH32(esp, ebp); /* 0x470314D7: push ebp */ 2614 ebp = MEM32(0x470AC42C); /* 0x470314D8: mov ebp, dword ptr [0x470ac42c] */ 2615 PUSH32(esp, esi); /* 0x470314DE: push esi */ 2616 PUSH32(esp, edi); /* 0x470314DF: push edi */ 2617 ebx = ecx; /* 0x470314E0: mov ebx, ecx */ 2618 if (TEST_NZ(_flag_a, _flag_b)) goto L_47031523; /* 0x470314E2: jne 0x47031523 */ 2619 L_470314E4: 2620 PUSH32(esp, 0x101u); /* 0x470314E4: push 0x101 */ 2621 PUSH32(esp, 0x4710E33Cu); /* 0x470314E9: push 0x4710e33c */ 2622 RECOMP_ICALL(0x47032210u); /* 0x470314EE: call 0x47032210 */ /* not lifted */ 2623 RECOMP_FLAGS_IN(); 2624 /* cmp eax, 0xFFFFFFFFu */ /* 0x470314F3: cmp eax, -1 */ 2625 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 2626 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2627 _flag_k = FK_CMP; 2628 if (CMP_NE(_flag_a, _flag_b)) goto L_4703151C; /* 0x470314F6: jne 0x4703151c */ 2629 L_470314F8: 2630 _flag_a = (uint32_t)((ecx | eax)); _flag_b = (uint32_t)((ecx | eax)); 2631 ecx = ecx | eax; /* 0x470314F8: or ecx, eax */ 2632 _cf = 0; 2633 _flag_k = FK_TEST; 2634 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2635 eax = 0; /* 0x470314FA: xor eax, eax */ 2636 _cf = 0; 2637 _flag_k = FK_TEST; 2638 edi = 0x47106AE0u; /* 0x470314FC: mov edi, 0x47106ae0 */ 2639 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; } /* 0x47031501: repne scasb al, byte ptr es:[edi] */ 2640 ecx = ~ecx; /* 0x47031503: not ecx */ 2641 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 2642 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2643 edi = edi - ecx; /* 0x47031505: sub edi, ecx */ 2644 _flag_k = FK_CMP; 2645 eax = ecx; /* 0x47031507: mov eax, ecx */ 2646 esi = edi; /* 0x47031509: mov esi, edi */ 2647 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4703150B: shr ecx, 2 */ 2648 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2649 ecx = ecx >> 2u; /* 0x4703150B: shr ecx, 2 */ 2650 edi = 0x4710E33Cu; /* 0x4703150E: mov edi, 0x4710e33c */ 2651 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47031513: 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; } 2652 ecx = eax; /* 0x47031515: mov ecx, eax */ 2653 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 2654 ecx = ecx & 3; /* 0x47031517: and ecx, 3 */ 2655 _cf = 0; 2656 _flag_k = FK_TEST; 2657 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4703151A: 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; } 2658 L_4703151C: 2659 edi = 0x4710E33Cu; /* 0x4703151C: mov edi, 0x4710e33c */ 2660 goto L_4703152B; /* 0x47031521: jmp 0x4703152b */ 2661 L_47031523: 2662 eax = MEM32(ebx + 0x10); /* 0x47031523: mov eax, dword ptr [ebx + 0x10] */ 2663 PUSH32(esp, eax); /* 0x47031526: push eax */ 2664 RECOMP_ICALL(ebp); /* 0x47031527: call ebp */ 2665 RECOMP_FLAGS_IN(); 2666 edi = eax; /* 0x47031529: mov edi, eax */ 2667 L_4703152B: 2668 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2669 ecx = ecx | 0xFFFFFFFFu; /* 0x4703152B: or ecx, 0xffffffff */ 2670 _cf = 0; 2671 _flag_k = FK_TEST; 2672 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2673 eax = 0; /* 0x4703152E: xor eax, eax */ 2674 _cf = 0; 2675 _flag_k = FK_TEST; 2676 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; } /* 0x47031530: repne scasb al, byte ptr es:[edi] */ 2677 ecx = ~ecx; /* 0x47031532: not ecx */ 2678 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2679 ecx = ecx - 1; /* 0x47031534: dec ecx */ 2680 _flag_k = FK_DEC; 2681 edx = ecx; /* 0x47031535: mov edx, ecx */ 2682 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2683 ecx = ecx | 0xFFFFFFFFu; /* 0x47031537: or ecx, 0xffffffff */ 2684 _cf = 0; 2685 _flag_k = FK_TEST; 2686 edi = 0x47106AD8u; /* 0x4703153A: mov edi, 0x47106ad8 */ 2687 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; } /* 0x4703153F: repne scasb al, byte ptr es:[edi] */ 2688 eax = MEM32(esp + 0x18); /* 0x47031541: mov eax, dword ptr [esp + 0x18] */ 2689 ecx = ~ecx; /* 0x47031545: not ecx */ 2690 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2691 ecx = ecx - 1; /* 0x47031547: dec ecx */ 2692 _flag_k = FK_DEC; 2693 ecx = ecx + edx + 0x2; /* 0x47031548: lea ecx, [ecx + edx + 2] */ 2694 /* cmp eax, ecx */ /* 0x4703154C: cmp eax, ecx */ 2695 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2696 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2697 _flag_k = FK_CMP; 2698 if (CMP_AE(_flag_a, _flag_b)) goto L_4703155A; /* 0x4703154E: jae 0x4703155a */ 2699 L_47031550: 2700 edi = POP32_VAL(esp); /* 0x47031550: pop edi */ 2701 esi = POP32_VAL(esp); /* 0x47031551: pop esi */ 2702 ebp = POP32_VAL(esp); /* 0x47031552: pop ebp */ 2703 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2704 eax = eax | 0xFFFFFFFFu; /* 0x47031553: or eax, 0xffffffff */ 2705 _cf = 0; 2706 _flag_k = FK_TEST; 2707 ebx = POP32_VAL(esp); /* 0x47031556: pop ebx */ 2708 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47031557: ret 0xc */ 2709 L_4703155A: 2710 eax = MEM32(esp + 0x1C); /* 0x4703155A: mov eax, dword ptr [esp + 0x1c] */ 2711 /* test eax, eax */ /* 0x4703155E: test eax, eax */ 2712 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2713 _cf = 0; 2714 _flag_k = FK_TEST; 2715 if (TEST_NZ(_flag_a, _flag_b)) goto L_470315A3; /* 0x47031560: jne 0x470315a3 */ 2716 L_47031562: 2717 PUSH32(esp, 0x101u); /* 0x47031562: push 0x101 */ 2718 PUSH32(esp, 0x4710E33Cu); /* 0x47031567: push 0x4710e33c */ 2719 ecx = ebx; /* 0x4703156C: mov ecx, ebx */ 2720 RECOMP_ICALL(0x47032210u); /* 0x4703156E: call 0x47032210 */ /* not lifted */ 2721 RECOMP_FLAGS_IN(); 2722 /* cmp eax, 0xFFFFFFFFu */ /* 0x47031573: cmp eax, -1 */ 2723 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 2724 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2725 _flag_k = FK_CMP; 2726 if (CMP_NE(_flag_a, _flag_b)) goto L_4703159C; /* 0x47031576: jne 0x4703159c */ 2727 L_47031578: 2728 _flag_a = (uint32_t)((ecx | eax)); _flag_b = (uint32_t)((ecx | eax)); 2729 ecx = ecx | eax; /* 0x47031578: or ecx, eax */ 2730 _cf = 0; 2731 _flag_k = FK_TEST; 2732 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2733 eax = 0; /* 0x4703157A: xor eax, eax */ 2734 _cf = 0; 2735 _flag_k = FK_TEST; 2736 edi = 0x47106AE0u; /* 0x4703157C: mov edi, 0x47106ae0 */ 2737 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; } /* 0x47031581: repne scasb al, byte ptr es:[edi] */ 2738 ecx = ~ecx; /* 0x47031583: not ecx */ 2739 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 2740 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2741 edi = edi - ecx; /* 0x47031585: sub edi, ecx */ 2742 _flag_k = FK_CMP; 2743 edx = ecx; /* 0x47031587: mov edx, ecx */ 2744 esi = edi; /* 0x47031589: mov esi, edi */ 2745 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4703158B: shr ecx, 2 */ 2746 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2747 ecx = ecx >> 2u; /* 0x4703158B: shr ecx, 2 */ 2748 edi = 0x4710E33Cu; /* 0x4703158E: mov edi, 0x4710e33c */ 2749 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47031593: 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; } 2750 ecx = edx; /* 0x47031595: mov ecx, edx */ 2751 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 2752 ecx = ecx & 3; /* 0x47031597: and ecx, 3 */ 2753 _cf = 0; 2754 _flag_k = FK_TEST; 2755 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4703159A: 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; } 2756 L_4703159C: 2757 esi = 0x4710E33Cu; /* 0x4703159C: mov esi, 0x4710e33c */ 2758 goto L_470315AB; /* 0x470315A1: jmp 0x470315ab */ 2759 L_470315A3: 2760 eax = MEM32(ebx + 0x10); /* 0x470315A3: mov eax, dword ptr [ebx + 0x10] */ 2761 PUSH32(esp, eax); /* 0x470315A6: push eax */ 2762 RECOMP_ICALL(ebp); /* 0x470315A7: call ebp */ 2763 RECOMP_FLAGS_IN(); 2764 esi = eax; /* 0x470315A9: mov esi, eax */ 2765 L_470315AB: 2766 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2767 eax = 0; /* 0x470315AB: xor eax, eax */ 2768 _cf = 0; 2769 _flag_k = FK_TEST; 2770 SET_LO16(eax, MEM16(ebx + 0xE)); /* 0x470315AD: mov ax, word ptr [ebx + 0xe] */ 2771 PUSH32(esp, eax); /* 0x470315B1: push eax */ 2772 RECOMP_ICALL(MEM32(0x470AC460)); /* 0x470315B2: call dword ptr [0x470ac460] */ 2773 RECOMP_FLAGS_IN(); 2774 ecx = MEM32(esp + 0x14); /* 0x470315B8: mov ecx, dword ptr [esp + 0x14] */ 2775 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 2776 eax = eax & 0xFFFFu; /* 0x470315BC: and eax, 0xffff */ 2777 _cf = 0; 2778 _flag_k = FK_TEST; 2779 PUSH32(esp, eax); /* 0x470315C1: push eax */ 2780 PUSH32(esp, esi); /* 0x470315C2: push esi */ 2781 PUSH32(esp, 0x47106AD0u); /* 0x470315C3: push 0x47106ad0 */ 2782 PUSH32(esp, ecx); /* 0x470315C8: push ecx */ 2783 RECOMP_ICALL(0x47054FC0u); /* 0x470315C9: call 0x47054fc0 */ /* not lifted */ 2784 RECOMP_FLAGS_IN(); 2785 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2786 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2787 esp = esp + 0x10u; /* 0x470315CE: add esp, 0x10 */ 2788 _flag_k = FK_ADD; 2789 edi = POP32_VAL(esp); /* 0x470315D1: pop edi */ 2790 esi = POP32_VAL(esp); /* 0x470315D2: pop esi */ 2791 ebp = POP32_VAL(esp); /* 0x470315D3: pop ebp */ 2792 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2793 eax = 0; /* 0x470315D4: xor eax, eax */ 2794 _cf = 0; 2795 _flag_k = FK_TEST; 2796 ebx = POP32_VAL(esp); /* 0x470315D6: pop ebx */ 2797 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470315D7: ret 0xc */ 2798 RECOMP_REGS_OUT(); 2799 } 2800 2801 void sub_470315E0(void) { 2802 int _fpu_cmp = 0; 2803 uint32_t _cf = 0; 2804 int _df = 1; 2805 uint32_t _flag_k = FK_NONE; 2806 uint32_t _flag_a = 0, _flag_b = 0; 2807 uint32_t _itail_tgt = 0; 2808 RECOMP_REGS_LOCALS 2809 RECOMP_ENTER(0x470315E0u); 2810 2811 L_470315E0: 2812 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x114u); 2813 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2814 esp = esp - 0x114u; /* 0x470315E0: sub esp, 0x114 */ 2815 _flag_k = FK_CMP; 2816 PUSH32(esp, ebx); /* 0x470315E6: push ebx */ 2817 ebx = MEM32(0x470AC150); /* 0x470315E7: mov ebx, dword ptr [0x470ac150] */ 2818 PUSH32(esp, ebp); /* 0x470315ED: push ebp */ 2819 PUSH32(esp, esi); /* 0x470315EE: push esi */ 2820 PUSH32(esp, edi); /* 0x470315EF: push edi */ 2821 edi = ecx; /* 0x470315F0: mov edi, ecx */ 2822 RECOMP_ICALL(ebx); /* 0x470315F2: call ebx */ 2823 RECOMP_FLAGS_IN(); 2824 ebp = MEM32(0x470AC3C8); /* 0x470315F4: mov ebp, dword ptr [0x470ac3c8] */ 2825 esi = eax; /* 0x470315FA: mov esi, eax */ 2826 RECOMP_ICALL(ebp); /* 0x470315FC: call ebp */ 2827 RECOMP_FLAGS_IN(); 2828 eax = MEM32(eax); /* 0x470315FE: mov eax, dword ptr [eax] */ 2829 /* test eax, eax */ /* 0x47031600: test eax, eax */ 2830 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2831 _cf = 0; 2832 _flag_k = FK_TEST; 2833 MEM32(esp + 0x10) = esi; /* 0x47031602: mov dword ptr [esp + 0x10], esi */ 2834 if (TEST_Z(_flag_a, _flag_b)) goto L_4703160C; /* 0x47031606: je 0x4703160c */ 2835 L_47031608: 2836 MEM32(esp + 0x10) = eax; /* 0x47031608: mov dword ptr [esp + 0x10], eax */ 2837 L_4703160C: 2838 RECOMP_ICALL(0x47039020u); /* 0x4703160C: call 0x47039020 */ /* not lifted */ 2839 RECOMP_FLAGS_IN(); 2840 esi = eax; /* 0x47031611: mov esi, eax */ 2841 ecx = esi; /* 0x47031613: mov ecx, esi */ 2842 RECOMP_ICALL(0x4703B210u); /* 0x47031615: call 0x4703b210 */ /* not lifted */ 2843 RECOMP_FLAGS_IN(); 2844 PUSH32(esp, eax); /* 0x4703161A: push eax */ 2845 ecx = esi; /* 0x4703161B: mov ecx, esi */ 2846 RECOMP_ICALL(0x4703B240u); /* 0x4703161D: call 0x4703b240 */ /* not lifted */ 2847 RECOMP_FLAGS_IN(); 2848 PUSH32(esp, eax); /* 0x47031622: push eax */ 2849 ecx = esi; /* 0x47031623: mov ecx, esi */ 2850 RECOMP_ICALL(0x4703B080u); /* 0x47031625: call 0x4703b080 */ /* not lifted */ 2851 RECOMP_FLAGS_IN(); 2852 PUSH32(esp, eax); /* 0x4703162A: push eax */ 2853 eax = MEM32(esp + 0x1C); /* 0x4703162B: mov eax, dword ptr [esp + 0x1c] */ 2854 PUSH32(esp, eax); /* 0x4703162F: push eax */ 2855 PUSH32(esp, 0); /* 0x47031630: push 0 */ 2856 PUSH32(esp, 0x33u); /* 0x47031632: push 0x33 */ 2857 PUSH32(esp, 0x47106AECu); /* 0x47031634: push 0x47106aec */ 2858 ecx = esi; /* 0x47031639: mov ecx, esi */ 2859 RECOMP_ICALL(0x4703A340u); /* 0x4703163B: call 0x4703a340 */ /* not lifted */ 2860 RECOMP_FLAGS_IN(); 2861 PUSH32(esp, edi); /* 0x47031640: push edi */ 2862 PUSH32(esp, 0x471052CCu); /* 0x47031641: push 0x471052cc */ 2863 PUSH32(esp, 4); /* 0x47031646: push 4 */ 2864 PUSH32(esp, esi); /* 0x47031648: push esi */ 2865 RECOMP_ICALL(0x47039830u); /* 0x47031649: call 0x47039830 */ /* not lifted */ 2866 RECOMP_FLAGS_IN(); 2867 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2868 ecx = 0; /* 0x4703164E: xor ecx, ecx */ 2869 _cf = 0; 2870 _flag_k = FK_TEST; 2871 SET_LO16(ecx, MEM16(edi + 0xE)); /* 0x47031650: mov cx, word ptr [edi + 0xe] */ 2872 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2873 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2874 esp = esp + 0x10u; /* 0x47031654: add esp, 0x10 */ 2875 _flag_k = FK_ADD; 2876 PUSH32(esp, ecx); /* 0x47031657: push ecx */ 2877 RECOMP_ICALL(MEM32(0x470AC460)); /* 0x47031658: call dword ptr [0x470ac460] */ 2878 RECOMP_FLAGS_IN(); 2879 edi = MEM32(edi + 0x10); /* 0x4703165E: mov edi, dword ptr [edi + 0x10] */ 2880 PUSH32(esp, edi); /* 0x47031661: push edi */ 2881 esi = eax; /* 0x47031662: mov esi, eax */ 2882 RECOMP_ICALL(MEM32(0x470AC42C)); /* 0x47031664: call dword ptr [0x470ac42c] */ 2883 RECOMP_FLAGS_IN(); 2884 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFu); 2885 esi = esi & 0xFFFFu; /* 0x4703166A: and esi, 0xffff */ 2886 _cf = 0; 2887 _flag_k = FK_TEST; 2888 PUSH32(esp, esi); /* 0x47031670: push esi */ 2889 PUSH32(esp, eax); /* 0x47031671: push eax */ 2890 edx = esp + 0x1C; /* 0x47031672: lea edx, [esp + 0x1c] */ 2891 PUSH32(esp, 0x47106AD0u); /* 0x47031676: push 0x47106ad0 */ 2892 PUSH32(esp, edx); /* 0x4703167B: push edx */ 2893 RECOMP_ICALL(0x47054FC0u); /* 0x4703167C: call 0x47054fc0 */ /* not lifted */ 2894 RECOMP_FLAGS_IN(); 2895 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2896 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2897 esp = esp + 0x10u; /* 0x47031681: add esp, 0x10 */ 2898 _flag_k = FK_ADD; 2899 RECOMP_ICALL(ebx); /* 0x47031684: call ebx */ 2900 RECOMP_FLAGS_IN(); 2901 esi = eax; /* 0x47031686: mov esi, eax */ 2902 RECOMP_ICALL(ebp); /* 0x47031688: call ebp */ 2903 RECOMP_FLAGS_IN(); 2904 eax = MEM32(eax); /* 0x4703168A: mov eax, dword ptr [eax] */ 2905 /* test eax, eax */ /* 0x4703168C: test eax, eax */ 2906 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2907 _cf = 0; 2908 _flag_k = FK_TEST; 2909 edi = esi; /* 0x4703168E: mov edi, esi */ 2910 if (TEST_Z(_flag_a, _flag_b)) goto L_47031694; /* 0x47031690: je 0x47031694 */ 2911 L_47031692: 2912 edi = eax; /* 0x47031692: mov edi, eax */ 2913 L_47031694: 2914 RECOMP_ICALL(0x47039020u); /* 0x47031694: call 0x47039020 */ /* not lifted */ 2915 RECOMP_FLAGS_IN(); 2916 esi = eax; /* 0x47031699: mov esi, eax */ 2917 ecx = esi; /* 0x4703169B: mov ecx, esi */ 2918 RECOMP_ICALL(0x4703B210u); /* 0x4703169D: call 0x4703b210 */ /* not lifted */ 2919 RECOMP_FLAGS_IN(); 2920 PUSH32(esp, eax); /* 0x470316A2: push eax */ 2921 ecx = esi; /* 0x470316A3: mov ecx, esi */ 2922 RECOMP_ICALL(0x4703B240u); /* 0x470316A5: call 0x4703b240 */ /* not lifted */ 2923 RECOMP_FLAGS_IN(); 2924 PUSH32(esp, eax); /* 0x470316AA: push eax */ 2925 ecx = esi; /* 0x470316AB: mov ecx, esi */ 2926 RECOMP_ICALL(0x4703B080u); /* 0x470316AD: call 0x4703b080 */ /* not lifted */ 2927 RECOMP_FLAGS_IN(); 2928 PUSH32(esp, eax); /* 0x470316B2: push eax */ 2929 PUSH32(esp, edi); /* 0x470316B3: push edi */ 2930 PUSH32(esp, 0); /* 0x470316B4: push 0 */ 2931 PUSH32(esp, 0x39u); /* 0x470316B6: push 0x39 */ 2932 PUSH32(esp, 0x47106AECu); /* 0x470316B8: push 0x47106aec */ 2933 ecx = esi; /* 0x470316BD: mov ecx, esi */ 2934 RECOMP_ICALL(0x4703A340u); /* 0x470316BF: call 0x4703a340 */ /* not lifted */ 2935 RECOMP_FLAGS_IN(); 2936 eax = esp + 0x14; /* 0x470316C4: lea eax, [esp + 0x14] */ 2937 PUSH32(esp, eax); /* 0x470316C8: push eax */ 2938 PUSH32(esp, 0x47105838u); /* 0x470316C9: push 0x47105838 */ 2939 PUSH32(esp, 4); /* 0x470316CE: push 4 */ 2940 PUSH32(esp, esi); /* 0x470316D0: push esi */ 2941 RECOMP_ICALL(0x47039830u); /* 0x470316D1: call 0x47039830 */ /* not lifted */ 2942 RECOMP_FLAGS_IN(); 2943 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2944 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2945 esp = esp + 0x10u; /* 0x470316D6: add esp, 0x10 */ 2946 _flag_k = FK_ADD; 2947 RECOMP_ICALL(ebx); /* 0x470316D9: call ebx */ 2948 RECOMP_FLAGS_IN(); 2949 esi = eax; /* 0x470316DB: mov esi, eax */ 2950 RECOMP_ICALL(ebp); /* 0x470316DD: call ebp */ 2951 RECOMP_FLAGS_IN(); 2952 eax = MEM32(eax); /* 0x470316DF: mov eax, dword ptr [eax] */ 2953 /* test eax, eax */ /* 0x470316E1: test eax, eax */ 2954 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2955 _cf = 0; 2956 _flag_k = FK_TEST; 2957 edi = esi; /* 0x470316E3: mov edi, esi */ 2958 if (TEST_Z(_flag_a, _flag_b)) goto L_470316E9; /* 0x470316E5: je 0x470316e9 */ 2959 L_470316E7: 2960 edi = eax; /* 0x470316E7: mov edi, eax */ 2961 L_470316E9: 2962 RECOMP_ICALL(0x47039020u); /* 0x470316E9: call 0x47039020 */ /* not lifted */ 2963 RECOMP_FLAGS_IN(); 2964 esi = eax; /* 0x470316EE: mov esi, eax */ 2965 ecx = esi; /* 0x470316F0: mov ecx, esi */ 2966 RECOMP_ICALL(0x4703B210u); /* 0x470316F2: call 0x4703b210 */ /* not lifted */ 2967 RECOMP_FLAGS_IN(); 2968 PUSH32(esp, eax); /* 0x470316F7: push eax */ 2969 ecx = esi; /* 0x470316F8: mov ecx, esi */ 2970 RECOMP_ICALL(0x4703B240u); /* 0x470316FA: call 0x4703b240 */ /* not lifted */ 2971 RECOMP_FLAGS_IN(); 2972 PUSH32(esp, eax); /* 0x470316FF: push eax */ 2973 ecx = esi; /* 0x47031700: mov ecx, esi */ 2974 RECOMP_ICALL(0x4703B080u); /* 0x47031702: call 0x4703b080 */ /* not lifted */ 2975 RECOMP_FLAGS_IN(); 2976 PUSH32(esp, eax); /* 0x47031707: push eax */ 2977 PUSH32(esp, edi); /* 0x47031708: push edi */ 2978 PUSH32(esp, 0); /* 0x47031709: push 0 */ 2979 PUSH32(esp, 0x3Au); /* 0x4703170B: push 0x3a */ 2980 PUSH32(esp, 0x47106AECu); /* 0x4703170D: push 0x47106aec */ 2981 ecx = esi; /* 0x47031712: mov ecx, esi */ 2982 RECOMP_ICALL(0x4703A340u); /* 0x47031714: call 0x4703a340 */ /* not lifted */ 2983 RECOMP_FLAGS_IN(); 2984 PUSH32(esp, 0x4710529Cu); /* 0x47031719: push 0x4710529c */ 2985 PUSH32(esp, 4); /* 0x4703171E: push 4 */ 2986 PUSH32(esp, esi); /* 0x47031720: push esi */ 2987 RECOMP_ICALL(0x47039830u); /* 0x47031721: call 0x47039830 */ /* not lifted */ 2988 RECOMP_FLAGS_IN(); 2989 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2990 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2991 esp = esp + 0xCu; /* 0x47031726: add esp, 0xc */ 2992 _flag_k = FK_ADD; 2993 edi = POP32_VAL(esp); /* 0x47031729: pop edi */ 2994 esi = POP32_VAL(esp); /* 0x4703172A: pop esi */ 2995 ebp = POP32_VAL(esp); /* 0x4703172B: pop ebp */ 2996 ebx = POP32_VAL(esp); /* 0x4703172C: pop ebx */ 2997 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x114u); 2998 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2999 esp = esp + 0x114u; /* 0x4703172D: add esp, 0x114 */ 3000 _flag_k = FK_ADD; 3001 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47031733: ret */ 3002 RECOMP_REGS_OUT(); 3003 } 3004 3005 void sub_47031740(void) { 3006 int _fpu_cmp = 0; 3007 uint32_t _cf = 0; 3008 int _df = 1; 3009 uint32_t _flag_k = FK_NONE; 3010 uint32_t _flag_a = 0, _flag_b = 0; 3011 uint32_t _itail_tgt = 0; 3012 RECOMP_REGS_LOCALS 3013 RECOMP_ENTER(0x47031740u); 3014 3015 L_47031740: 3016 SET_LO16(edx, MEM16(ecx + 0xE)); /* 0x47031740: mov dx, word ptr [ecx + 0xe] */ 3017 eax = MEM32(esp + 0x4); /* 0x47031744: mov eax, dword ptr [esp + 4] */ 3018 /* cmp LO16(edx), MEM16(eax + 0xE) */ /* 0x47031748: cmp dx, word ptr [eax + 0xe] */ 3019 _flag_a = (uint32_t)(LO16(edx)) << 16; _flag_b = (uint32_t)(MEM16(eax + 0xE)) << 16; 3020 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3021 _flag_k = FK_NARROW(FK_CMP, 16); 3022 if (CMP_NE(_flag_a, _flag_b)) goto L_4703176E; /* 0x4703174C: jne 0x4703176e */ 3023 L_4703174E: 3024 edx = MEM32(eax + 0x10); /* 0x4703174E: mov edx, dword ptr [eax + 0x10] */ 3025 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 3026 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3027 eax = eax + 0x10u; /* 0x47031751: add eax, 0x10 */ 3028 _flag_k = FK_ADD; 3029 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u); 3030 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3031 ecx = ecx + 0x10u; /* 0x47031754: add ecx, 0x10 */ 3032 _flag_k = FK_ADD; 3033 ecx = MEM32(ecx); /* 0x47031757: mov ecx, dword ptr [ecx] */ 3034 /* cmp ecx, edx */ /* 0x47031759: cmp ecx, edx */ 3035 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3036 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3037 _flag_k = FK_CMP; 3038 if (CMP_NE(_flag_a, _flag_b)) goto L_4703176E; /* 0x4703175B: jne 0x4703176e */ 3039 L_4703175D: 3040 eax = 1; /* 0x4703175D: mov eax, 1 */ 3041 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3042 edx = 0; /* 0x47031762: xor edx, edx */ 3043 _cf = 0; 3044 _flag_k = FK_TEST; 3045 /* test eax, eax */ /* 0x47031764: test eax, eax */ 3046 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3047 _cf = 0; 3048 _flag_k = FK_TEST; 3049 SET_LO8(edx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x47031766: sete dl */ 3050 eax = edx; /* 0x47031769: mov eax, edx */ 3051 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703176B: ret 4 */ 3052 L_4703176E: 3053 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3054 eax = 0; /* 0x4703176E: xor eax, eax */ 3055 _cf = 0; 3056 _flag_k = FK_TEST; 3057 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3058 edx = 0; /* 0x47031770: xor edx, edx */ 3059 _cf = 0; 3060 _flag_k = FK_TEST; 3061 /* test eax, eax */ /* 0x47031772: test eax, eax */ 3062 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3063 _cf = 0; 3064 _flag_k = FK_TEST; 3065 SET_LO8(edx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x47031774: sete dl */ 3066 eax = edx; /* 0x47031777: mov eax, edx */ 3067 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47031779: ret 4 */ 3068 RECOMP_REGS_OUT(); 3069 } 3070 3071 void sub_47031780(void) { 3072 int _fpu_cmp = 0; 3073 uint32_t _cf = 0; 3074 int _df = 1; 3075 uint32_t _flag_k = FK_NONE; 3076 uint32_t _flag_a = 0, _flag_b = 0; 3077 uint32_t _itail_tgt = 0; 3078 RECOMP_REGS_LOCALS 3079 RECOMP_ENTER(0x47031780u); 3080 3081 L_47031780: 3082 SET_LO16(edx, MEM16(ecx + 0xE)); /* 0x47031780: mov dx, word ptr [ecx + 0xe] */ 3083 eax = MEM32(esp + 0x4); /* 0x47031784: mov eax, dword ptr [esp + 4] */ 3084 /* cmp LO16(edx), MEM16(eax + 0xE) */ /* 0x47031788: cmp dx, word ptr [eax + 0xe] */ 3085 _flag_a = (uint32_t)(LO16(edx)) << 16; _flag_b = (uint32_t)(MEM16(eax + 0xE)) << 16; 3086 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3087 _flag_k = FK_NARROW(FK_CMP, 16); 3088 if (CMP_NE(_flag_a, _flag_b)) goto L_470317A5; /* 0x4703178C: jne 0x470317a5 */ 3089 L_4703178E: 3090 edx = MEM32(eax + 0x10); /* 0x4703178E: mov edx, dword ptr [eax + 0x10] */ 3091 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 3092 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3093 eax = eax + 0x10u; /* 0x47031791: add eax, 0x10 */ 3094 _flag_k = FK_ADD; 3095 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u); 3096 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3097 ecx = ecx + 0x10u; /* 0x47031794: add ecx, 0x10 */ 3098 _flag_k = FK_ADD; 3099 ecx = MEM32(ecx); /* 0x47031797: mov ecx, dword ptr [ecx] */ 3100 /* cmp ecx, edx */ /* 0x47031799: cmp ecx, edx */ 3101 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3102 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3103 _flag_k = FK_CMP; 3104 if (CMP_NE(_flag_a, _flag_b)) goto L_470317A5; /* 0x4703179B: jne 0x470317a5 */ 3105 L_4703179D: 3106 eax = 1; /* 0x4703179D: mov eax, 1 */ 3107 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470317A2: ret 4 */ 3108 L_470317A5: 3109 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3110 eax = 0; /* 0x470317A5: xor eax, eax */ 3111 _cf = 0; 3112 _flag_k = FK_TEST; 3113 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470317A7: ret 4 */ 3114 RECOMP_REGS_OUT(); 3115 } 3116 3117 void sub_470317B0(void) { 3118 int _fpu_cmp = 0; 3119 uint32_t _cf = 0; 3120 int _df = 1; 3121 uint32_t _flag_k = FK_NONE; 3122 uint32_t _flag_a = 0, _flag_b = 0; 3123 uint32_t _itail_tgt = 0; 3124 RECOMP_REGS_LOCALS 3125 RECOMP_ENTER(0x470317B0u); 3126 3127 L_470317B0: 3128 PUSH32(esp, esi); /* 0x470317B0: push esi */ 3129 PUSH32(esp, 0x10u); /* 0x470317B1: push 0x10 */ 3130 esi = ecx; /* 0x470317B3: mov esi, ecx */ 3131 PUSH32(esp, 2); /* 0x470317B5: push 2 */ 3132 RECOMP_ICALL(0x47014F50u); /* 0x470317B7: call 0x47014f50 */ /* not lifted */ 3133 RECOMP_FLAGS_IN(); 3134 MEM32(esi) = 0x470AC520u; /* 0x470317BC: mov dword ptr [esi], 0x470ac520 */ 3135 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3136 eax = 0; /* 0x470317C2: xor eax, eax */ 3137 _cf = 0; 3138 _flag_k = FK_TEST; 3139 ecx = esi + 0xC; /* 0x470317C4: lea ecx, [esi + 0xc] */ 3140 MEM32(ecx) = eax; /* 0x470317C7: mov dword ptr [ecx], eax */ 3141 MEM32(ecx + 0x4) = eax; /* 0x470317C9: mov dword ptr [ecx + 4], eax */ 3142 MEM32(ecx + 0x8) = eax; /* 0x470317CC: mov dword ptr [ecx + 8], eax */ 3143 MEM32(ecx + 0xC) = eax; /* 0x470317CF: mov dword ptr [ecx + 0xc], eax */ 3144 eax = esi; /* 0x470317D2: mov eax, esi */ 3145 esi = POP32_VAL(esp); /* 0x470317D4: pop esi */ 3146 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470317D5: ret */ 3147 RECOMP_REGS_OUT(); 3148 } 3149 3150 void sub_470317E0(void) { 3151 int _fpu_cmp = 0; 3152 uint32_t _cf = 0; 3153 int _df = 1; 3154 uint32_t _flag_k = FK_NONE; 3155 uint32_t _flag_a = 0, _flag_b = 0; 3156 uint32_t _itail_tgt = 0; 3157 RECOMP_REGS_LOCALS 3158 RECOMP_ENTER(0x470317E0u); 3159 3160 L_470317E0: 3161 PUSH32(esp, esi); /* 0x470317E0: push esi */ 3162 esi = MEM32(esp + 0x8); /* 0x470317E1: mov esi, dword ptr [esp + 8] */ 3163 eax = MEM32(esi + 0x8); /* 0x470317E5: mov eax, dword ptr [esi + 8] */ 3164 PUSH32(esp, edi); /* 0x470317E8: push edi */ 3165 edi = ecx; /* 0x470317E9: mov edi, ecx */ 3166 ecx = MEM32(esi + 0x4); /* 0x470317EB: mov ecx, dword ptr [esi + 4] */ 3167 PUSH32(esp, eax); /* 0x470317EE: push eax */ 3168 PUSH32(esp, ecx); /* 0x470317EF: push ecx */ 3169 ecx = edi; /* 0x470317F0: mov ecx, edi */ 3170 RECOMP_ICALL(0x47014F30u); /* 0x470317F2: call 0x47014f30 */ /* not lifted */ 3171 RECOMP_FLAGS_IN(); 3172 /* cmp MEM32(esi + 0x4), 0xFFFFFFFFu */ /* 0x470317F7: cmp dword ptr [esi + 4], -1 */ 3173 _flag_a = (uint32_t)(MEM32(esi + 0x4)); _flag_b = (uint32_t)(0xFFFFFFFFu); 3174 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3175 _flag_k = FK_CMP; 3176 if (CMP_NE(_flag_a, _flag_b)) goto L_47031814; /* 0x470317FB: jne 0x47031814 */ 3177 L_470317FD: 3178 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 3179 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3180 edi = edi + 0xCu; /* 0x470317FD: add edi, 0xc */ 3181 _flag_k = FK_ADD; 3182 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3183 edx = 0; /* 0x47031800: xor edx, edx */ 3184 _cf = 0; 3185 _flag_k = FK_TEST; 3186 MEM32(edi) = edx; /* 0x47031802: mov dword ptr [edi], edx */ 3187 MEM32(edi + 0x4) = edx; /* 0x47031804: mov dword ptr [edi + 4], edx */ 3188 MEM32(edi + 0x8) = edx; /* 0x47031807: mov dword ptr [edi + 8], edx */ 3189 MEM32(edi + 0xC) = edx; /* 0x4703180A: mov dword ptr [edi + 0xc], edx */ 3190 edi = POP32_VAL(esp); /* 0x4703180D: pop edi */ 3191 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3192 eax = 0; /* 0x4703180E: xor eax, eax */ 3193 _cf = 0; 3194 _flag_k = FK_TEST; 3195 esi = POP32_VAL(esp); /* 0x47031810: pop esi */ 3196 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47031811: ret 4 */ 3197 L_47031814: 3198 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 3199 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3200 esi = esi + 0xCu; /* 0x47031814: add esi, 0xc */ 3201 _flag_k = FK_ADD; 3202 eax = MEM32(esi); /* 0x47031817: mov eax, dword ptr [esi] */ 3203 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 3204 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3205 edi = edi + 0xCu; /* 0x47031819: add edi, 0xc */ 3206 _flag_k = FK_ADD; 3207 MEM32(edi) = eax; /* 0x4703181C: mov dword ptr [edi], eax */ 3208 ecx = MEM32(esi + 0x4); /* 0x4703181E: mov ecx, dword ptr [esi + 4] */ 3209 MEM32(edi + 0x4) = ecx; /* 0x47031821: mov dword ptr [edi + 4], ecx */ 3210 edx = MEM32(esi + 0x8); /* 0x47031824: mov edx, dword ptr [esi + 8] */ 3211 MEM32(edi + 0x8) = edx; /* 0x47031827: mov dword ptr [edi + 8], edx */ 3212 eax = MEM32(esi + 0xC); /* 0x4703182A: mov eax, dword ptr [esi + 0xc] */ 3213 MEM32(edi + 0xC) = eax; /* 0x4703182D: mov dword ptr [edi + 0xc], eax */ 3214 edi = POP32_VAL(esp); /* 0x47031830: pop edi */ 3215 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3216 eax = 0; /* 0x47031831: xor eax, eax */ 3217 _cf = 0; 3218 _flag_k = FK_TEST; 3219 esi = POP32_VAL(esp); /* 0x47031833: pop esi */ 3220 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47031834: ret 4 */ 3221 RECOMP_REGS_OUT(); 3222 } 3223 3224 void sub_47031840(void) { 3225 int _fpu_cmp = 0; 3226 uint32_t _cf = 0; 3227 int _df = 1; 3228 uint32_t _flag_k = FK_NONE; 3229 uint32_t _flag_a = 0, _flag_b = 0; 3230 uint32_t _itail_tgt = 0; 3231 RECOMP_REGS_LOCALS 3232 RECOMP_ENTER(0x47031840u); 3233 3234 L_47031840: 3235 eax = MEM32(esp + 0x4); /* 0x47031840: mov eax, dword ptr [esp + 4] */ 3236 PUSH32(esp, ebp); /* 0x47031844: push ebp */ 3237 PUSH32(esp, esi); /* 0x47031845: push esi */ 3238 PUSH32(esp, eax); /* 0x47031846: push eax */ 3239 esi = ecx; /* 0x47031847: mov esi, ecx */ 3240 RECOMP_ICALL(MEM32(0x470AC3F4)); /* 0x47031849: call dword ptr [0x470ac3f4] */ 3241 RECOMP_FLAGS_IN(); 3242 ebp = eax; /* 0x4703184F: mov ebp, eax */ 3243 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3244 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3245 esp = esp + 4; /* 0x47031851: add esp, 4 */ 3246 _flag_k = FK_ADD; 3247 /* test ebp, ebp */ /* 0x47031854: test ebp, ebp */ 3248 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp); 3249 _cf = 0; 3250 _flag_k = FK_TEST; 3251 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703186C; /* 0x47031856: jne 0x4703186c */ 3252 L_47031858: 3253 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47031858: call dword ptr [0x470ac3c8] */ 3254 RECOMP_FLAGS_IN(); 3255 esi = POP32_VAL(esp); /* 0x4703185E: pop esi */ 3256 MEM32(eax) = 0xCu; /* 0x4703185F: mov dword ptr [eax], 0xc */ 3257 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3258 eax = eax | 0xFFFFFFFFu; /* 0x47031865: or eax, 0xffffffff */ 3259 _cf = 0; 3260 _flag_k = FK_TEST; 3261 ebp = POP32_VAL(esp); /* 0x47031868: pop ebp */ 3262 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47031869: ret 4 */ 3263 L_4703186C: 3264 PUSH32(esp, ebx); /* 0x4703186C: push ebx */ 3265 PUSH32(esp, edi); /* 0x4703186D: push edi */ 3266 PUSH32(esp, 0x3Au); /* 0x4703186E: push 0x3a */ 3267 PUSH32(esp, ebp); /* 0x47031870: push ebp */ 3268 RECOMP_ICALL(MEM32(0x470AC380)); /* 0x47031871: call dword ptr [0x470ac380] */ 3269 RECOMP_FLAGS_IN(); 3270 ebx = eax; /* 0x47031877: mov ebx, eax */ 3271 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3272 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3273 esp = esp + 8; /* 0x47031879: add esp, 8 */ 3274 _flag_k = FK_ADD; 3275 /* test ebx, ebx */ /* 0x4703187C: test ebx, ebx */ 3276 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 3277 _cf = 0; 3278 _flag_k = FK_TEST; 3279 if (TEST_NZ(_flag_a, _flag_b)) goto L_47031947; /* 0x4703187E: jne 0x47031947 */ 3280 L_47031884: 3281 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3282 ecx = ecx | 0xFFFFFFFFu; /* 0x47031884: or ecx, 0xffffffff */ 3283 _cf = 0; 3284 _flag_k = FK_TEST; 3285 edi = ebp; /* 0x47031887: mov edi, ebp */ 3286 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; } /* 0x47031889: repne scasb al, byte ptr es:[edi] */ 3287 ecx = ~ecx; /* 0x4703188B: not ecx */ 3288 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3289 ecx = ecx - 1; /* 0x4703188D: dec ecx */ 3290 _flag_k = FK_DEC; 3291 PUSH32(esp, 0x47106B28u); /* 0x4703188E: push 0x47106b28 */ 3292 PUSH32(esp, ebp); /* 0x47031893: push ebp */ 3293 edi = ecx; /* 0x47031894: mov edi, ecx */ 3294 RECOMP_ICALL(MEM32(0x470AC384)); /* 0x47031896: call dword ptr [0x470ac384] */ 3295 RECOMP_FLAGS_IN(); 3296 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3297 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3298 esp = esp + 8; /* 0x4703189C: add esp, 8 */ 3299 _flag_k = FK_ADD; 3300 /* cmp eax, edi */ /* 0x4703189F: cmp eax, edi */ 3301 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3302 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3303 _flag_k = FK_CMP; 3304 if (CMP_NE(_flag_a, _flag_b)) goto L_470318FF; /* 0x470318A1: jne 0x470318ff */ 3305 L_470318A3: 3306 PUSH32(esp, ebp); /* 0x470318A3: push ebp */ 3307 RECOMP_ICALL(MEM32(0x470AC3D8)); /* 0x470318A4: call dword ptr [0x470ac3d8] */ 3308 RECOMP_FLAGS_IN(); 3309 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3310 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3311 esp = esp + 4; /* 0x470318AA: add esp, 4 */ 3312 _flag_k = FK_ADD; 3313 PUSH32(esp, 0x10u); /* 0x470318AD: push 0x10 */ 3314 PUSH32(esp, 2); /* 0x470318AF: push 2 */ 3315 ecx = esi; /* 0x470318B1: mov ecx, esi */ 3316 edi = eax; /* 0x470318B3: mov edi, eax */ 3317 RECOMP_ICALL(0x47014F30u); /* 0x470318B5: call 0x47014f30 */ /* not lifted */ 3318 RECOMP_FLAGS_IN(); 3319 eax = esi + 0xC; /* 0x470318BA: lea eax, [esi + 0xc] */ 3320 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3321 ecx = 0; /* 0x470318BD: xor ecx, ecx */ 3322 _cf = 0; 3323 _flag_k = FK_TEST; 3324 edx = eax; /* 0x470318BF: mov edx, eax */ 3325 MEM32(edx) = ecx; /* 0x470318C1: mov dword ptr [edx], ecx */ 3326 MEM32(edx + 0x4) = ecx; /* 0x470318C3: mov dword ptr [edx + 4], ecx */ 3327 MEM32(edx + 0x8) = ecx; /* 0x470318C6: mov dword ptr [edx + 8], ecx */ 3328 MEM32(edx + 0xC) = ecx; /* 0x470318C9: mov dword ptr [edx + 0xc], ecx */ 3329 PUSH32(esp, ecx); /* 0x470318CC: push ecx */ 3330 MEM16(eax) = (uint16_t)(2); /* 0x470318CD: mov word ptr [eax], 2 */ 3331 RECOMP_ICALL(MEM32(0x470AC4AC)); /* 0x470318D2: call dword ptr [0x470ac4ac] */ 3332 RECOMP_FLAGS_IN(); 3333 PUSH32(esp, edi); /* 0x470318D8: push edi */ 3334 ebx = eax; /* 0x470318D9: mov ebx, eax */ 3335 RECOMP_ICALL(MEM32(0x470AC4C0)); /* 0x470318DB: call dword ptr [0x470ac4c0] */ 3336 RECOMP_FLAGS_IN(); 3337 MEM16(esi + 0xE) = (uint16_t)(LO16(eax)); /* 0x470318E1: mov word ptr [esi + 0xe], ax */ 3338 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 3339 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3340 esi = esi + 0x10u; /* 0x470318E5: add esi, 0x10 */ 3341 _flag_k = FK_ADD; 3342 MEM32(esi) = ebx; /* 0x470318E8: mov dword ptr [esi], ebx */ 3343 PUSH32(esp, ebp); /* 0x470318EA: push ebp */ 3344 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3345 esi = 0; /* 0x470318EB: xor esi, esi */ 3346 _cf = 0; 3347 _flag_k = FK_TEST; 3348 RECOMP_ICALL(MEM32(0x470AC390)); /* 0x470318ED: call dword ptr [0x470ac390] */ 3349 RECOMP_FLAGS_IN(); 3350 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3351 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3352 esp = esp + 4; /* 0x470318F3: add esp, 4 */ 3353 _flag_k = FK_ADD; 3354 edi = POP32_VAL(esp); /* 0x470318F6: pop edi */ 3355 ebx = POP32_VAL(esp); /* 0x470318F7: pop ebx */ 3356 eax = esi; /* 0x470318F8: mov eax, esi */ 3357 esi = POP32_VAL(esp); /* 0x470318FA: pop esi */ 3358 ebp = POP32_VAL(esp); /* 0x470318FB: pop ebp */ 3359 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470318FC: ret 4 */ 3360 L_470318FF: 3361 PUSH32(esp, 0x47106B24u); /* 0x470318FF: push 0x47106b24 */ 3362 PUSH32(esp, ebp); /* 0x47031904: push ebp */ 3363 RECOMP_ICALL(MEM32(0x470AC450)); /* 0x47031905: call dword ptr [0x470ac450] */ 3364 RECOMP_FLAGS_IN(); 3365 /* test eax, eax */ /* 0x4703190B: test eax, eax */ 3366 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3367 _cf = 0; 3368 _flag_k = FK_TEST; 3369 if (TEST_NZ(_flag_a, _flag_b)) goto L_47031935; /* 0x4703190D: jne 0x47031935 */ 3370 L_4703190F: 3371 RECOMP_ICALL(MEM32(0x470AC4A4)); /* 0x4703190F: call dword ptr [0x470ac4a4] */ 3372 RECOMP_FLAGS_IN(); 3373 esi = eax; /* 0x47031915: mov esi, eax */ 3374 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47031917: call dword ptr [0x470ac3c8] */ 3375 RECOMP_FLAGS_IN(); 3376 MEM32(eax) = esi; /* 0x4703191D: mov dword ptr [eax], esi */ 3377 PUSH32(esp, ebp); /* 0x4703191F: push ebp */ 3378 _flag_a = (uint32_t)((esi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((esi | 0xFFFFFFFFu)); 3379 esi = esi | 0xFFFFFFFFu; /* 0x47031920: or esi, 0xffffffff */ 3380 _cf = 0; 3381 _flag_k = FK_TEST; 3382 RECOMP_ICALL(MEM32(0x470AC390)); /* 0x47031923: call dword ptr [0x470ac390] */ 3383 RECOMP_FLAGS_IN(); 3384 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3385 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3386 esp = esp + 4; /* 0x47031929: add esp, 4 */ 3387 _flag_k = FK_ADD; 3388 edi = POP32_VAL(esp); /* 0x4703192C: pop edi */ 3389 ebx = POP32_VAL(esp); /* 0x4703192D: pop ebx */ 3390 eax = esi; /* 0x4703192E: mov eax, esi */ 3391 esi = POP32_VAL(esp); /* 0x47031930: pop esi */ 3392 ebp = POP32_VAL(esp); /* 0x47031931: pop ebp */ 3393 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47031932: ret 4 */ 3394 L_47031935: 3395 SET_LO16(eax, MEM16(eax + 0x8)); /* 0x47031935: mov ax, word ptr [eax + 8] */ 3396 PUSH32(esp, 0); /* 0x47031939: push 0 */ 3397 PUSH32(esp, 0); /* 0x4703193B: push 0 */ 3398 ecx = esi; /* 0x4703193D: mov ecx, esi */ 3399 PUSH32(esp, eax); /* 0x4703193F: push eax */ 3400 RECOMP_ICALL(0x47031AD0u); /* 0x47031940: call 0x47031ad0 */ /* not lifted */ 3401 RECOMP_FLAGS_IN(); 3402 goto L_4703199D; /* 0x47031945: jmp 0x4703199d */ 3403 L_47031947: 3404 MEM8(ebx) = (uint8_t)(0); /* 0x47031947: mov byte ptr [ebx], 0 */ 3405 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 3406 ebx = ebx + 1; /* 0x4703194A: inc ebx */ 3407 _flag_k = FK_INC; 3408 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3409 ecx = ecx | 0xFFFFFFFFu; /* 0x4703194B: or ecx, 0xffffffff */ 3410 _cf = 0; 3411 _flag_k = FK_TEST; 3412 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3413 eax = 0; /* 0x4703194E: xor eax, eax */ 3414 _cf = 0; 3415 _flag_k = FK_TEST; 3416 edi = ebx; /* 0x47031950: mov edi, ebx */ 3417 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; } /* 0x47031952: repne scasb al, byte ptr es:[edi] */ 3418 ecx = ~ecx; /* 0x47031954: not ecx */ 3419 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3420 ecx = ecx - 1; /* 0x47031956: dec ecx */ 3421 _flag_k = FK_DEC; 3422 PUSH32(esp, 0x47106B28u); /* 0x47031957: push 0x47106b28 */ 3423 PUSH32(esp, ebx); /* 0x4703195C: push ebx */ 3424 edi = ecx; /* 0x4703195D: mov edi, ecx */ 3425 RECOMP_ICALL(MEM32(0x470AC384)); /* 0x4703195F: call dword ptr [0x470ac384] */ 3426 RECOMP_FLAGS_IN(); 3427 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3428 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3429 esp = esp + 8; /* 0x47031965: add esp, 8 */ 3430 _flag_k = FK_ADD; 3431 /* cmp eax, edi */ /* 0x47031968: cmp eax, edi */ 3432 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3433 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3434 _flag_k = FK_CMP; 3435 if (CMP_NE(_flag_a, _flag_b)) goto L_4703197C; /* 0x4703196A: jne 0x4703197c */ 3436 L_4703196C: 3437 PUSH32(esp, ebx); /* 0x4703196C: push ebx */ 3438 RECOMP_ICALL(MEM32(0x470AC3D8)); /* 0x4703196D: call dword ptr [0x470ac3d8] */ 3439 RECOMP_FLAGS_IN(); 3440 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3441 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3442 esp = esp + 4; /* 0x47031973: add esp, 4 */ 3443 _flag_k = FK_ADD; 3444 PUSH32(esp, 1); /* 0x47031976: push 1 */ 3445 PUSH32(esp, ebp); /* 0x47031978: push ebp */ 3446 PUSH32(esp, eax); /* 0x47031979: push eax */ 3447 goto L_47031996; /* 0x4703197A: jmp 0x47031996 */ 3448 L_4703197C: 3449 PUSH32(esp, 0x47106B24u); /* 0x4703197C: push 0x47106b24 */ 3450 PUSH32(esp, ebx); /* 0x47031981: push ebx */ 3451 RECOMP_ICALL(MEM32(0x470AC450)); /* 0x47031982: call dword ptr [0x470ac450] */ 3452 RECOMP_FLAGS_IN(); 3453 /* test eax, eax */ /* 0x47031988: test eax, eax */ 3454 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3455 _cf = 0; 3456 _flag_k = FK_TEST; 3457 RECOMP_BACKEDGE(); 3458 if (TEST_Z(_flag_a, _flag_b)) goto L_4703190F; /* 0x4703198A: je 0x4703190f */ 3459 L_4703198C: 3460 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3461 ecx = 0; /* 0x4703198C: xor ecx, ecx */ 3462 _cf = 0; 3463 _flag_k = FK_TEST; 3464 SET_LO16(ecx, MEM16(eax + 0x8)); /* 0x4703198E: mov cx, word ptr [eax + 8] */ 3465 PUSH32(esp, 0); /* 0x47031992: push 0 */ 3466 PUSH32(esp, ebp); /* 0x47031994: push ebp */ 3467 PUSH32(esp, ecx); /* 0x47031995: push ecx */ 3468 L_47031996: 3469 ecx = esi; /* 0x47031996: mov ecx, esi */ 3470 RECOMP_ICALL(0x47031B40u); /* 0x47031998: call 0x47031b40 */ /* not lifted */ 3471 RECOMP_FLAGS_IN(); 3472 L_4703199D: 3473 PUSH32(esp, ebp); /* 0x4703199D: push ebp */ 3474 esi = eax; /* 0x4703199E: mov esi, eax */ 3475 RECOMP_ICALL(MEM32(0x470AC390)); /* 0x470319A0: call dword ptr [0x470ac390] */ 3476 RECOMP_FLAGS_IN(); 3477 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3478 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3479 esp = esp + 4; /* 0x470319A6: add esp, 4 */ 3480 _flag_k = FK_ADD; 3481 edi = POP32_VAL(esp); /* 0x470319A9: pop edi */ 3482 ebx = POP32_VAL(esp); /* 0x470319AA: pop ebx */ 3483 eax = esi; /* 0x470319AB: mov eax, esi */ 3484 esi = POP32_VAL(esp); /* 0x470319AD: pop esi */ 3485 ebp = POP32_VAL(esp); /* 0x470319AE: pop ebp */ 3486 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470319AF: ret 4 */ 3487 RECOMP_REGS_OUT(); 3488 } 3489 3490 void sub_470319C0(void) { 3491 int _fpu_cmp = 0; 3492 uint32_t _cf = 0; 3493 int _df = 1; 3494 uint32_t _flag_k = FK_NONE; 3495 uint32_t _flag_a = 0, _flag_b = 0; 3496 uint32_t _itail_tgt = 0; 3497 RECOMP_REGS_LOCALS 3498 RECOMP_ENTER(0x470319C0u); 3499 3500 L_470319C0: 3501 edx = MEM32(esp + 0x4); /* 0x470319C0: mov edx, dword ptr [esp + 4] */ 3502 eax = MEM32(ecx); /* 0x470319C4: mov eax, dword ptr [ecx] */ 3503 PUSH32(esp, edx); /* 0x470319C6: push edx */ 3504 RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x470319C7: call dword ptr [eax + 0x14] */ 3505 RECOMP_FLAGS_IN(); 3506 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470319CA: ret 4 */ 3507 RECOMP_REGS_OUT(); 3508 } 3509 3510 void sub_470319D0(void) { 3511 int _fpu_cmp = 0; 3512 uint32_t _cf = 0; 3513 int _df = 1; 3514 uint32_t _flag_k = FK_NONE; 3515 uint32_t _flag_a = 0, _flag_b = 0; 3516 uint32_t _itail_tgt = 0; 3517 RECOMP_REGS_LOCALS 3518 RECOMP_ENTER(0x470319D0u); 3519 3520 L_470319D0: 3521 PUSH32(esp, 0xFFFFFFFFu); /* 0x470319D0: push -1 */ 3522 PUSH32(esp, 0x470A5668u); /* 0x470319D2: push 0x470a5668 */ 3523 eax = MEM32(FS_BASE + (0)); /* 0x470319D7: mov eax, dword ptr fs:[0] */ 3524 PUSH32(esp, eax); /* 0x470319DD: push eax */ 3525 MEM32(FS_BASE + (0)) = esp; /* 0x470319DE: mov dword ptr fs:[0], esp */ 3526 PUSH32(esp, ecx); /* 0x470319E5: push ecx */ 3527 PUSH32(esp, esi); /* 0x470319E6: push esi */ 3528 PUSH32(esp, 0x10u); /* 0x470319E7: push 0x10 */ 3529 esi = ecx; /* 0x470319E9: mov esi, ecx */ 3530 PUSH32(esp, 2); /* 0x470319EB: push 2 */ 3531 MEM32(esp + 0xC) = esi; /* 0x470319ED: mov dword ptr [esp + 0xc], esi */ 3532 RECOMP_ICALL(0x47014F50u); /* 0x470319F1: call 0x47014f50 */ /* not lifted */ 3533 RECOMP_FLAGS_IN(); 3534 eax = MEM32(esp + 0x18); /* 0x470319F6: mov eax, dword ptr [esp + 0x18] */ 3535 PUSH32(esp, eax); /* 0x470319FA: push eax */ 3536 ecx = esi; /* 0x470319FB: mov ecx, esi */ 3537 MEM32(esp + 0x14) = 0; /* 0x470319FD: mov dword ptr [esp + 0x14], 0 */ 3538 MEM32(esi) = 0x470AC520u; /* 0x47031A05: mov dword ptr [esi], 0x470ac520 */ 3539 RECOMP_ICALL(MEM32(0x470AC534)); /* 0x47031A0B: call dword ptr [0x470ac534] */ 3540 RECOMP_FLAGS_IN(); 3541 ecx = MEM32(esp + 0x8); /* 0x47031A11: mov ecx, dword ptr [esp + 8] */ 3542 eax = esi; /* 0x47031A15: mov eax, esi */ 3543 esi = POP32_VAL(esp); /* 0x47031A17: pop esi */ 3544 MEM32(FS_BASE + (0)) = ecx; /* 0x47031A18: mov dword ptr fs:[0], ecx */ 3545 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3546 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3547 esp = esp + 0x10u; /* 0x47031A1F: add esp, 0x10 */ 3548 _flag_k = FK_ADD; 3549 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47031A22: ret 4 */ 3550 RECOMP_REGS_OUT(); 3551 } 3552 3553 void sub_47031A30(void) { 3554 int _fpu_cmp = 0; 3555 uint32_t _cf = 0; 3556 int _df = 1; 3557 uint32_t _flag_k = FK_NONE; 3558 uint32_t _flag_a = 0, _flag_b = 0; 3559 uint32_t _itail_tgt = 0; 3560 RECOMP_REGS_LOCALS 3561 RECOMP_ENTER(0x47031A30u); 3562 3563 L_47031A30: 3564 PUSH32(esp, 0xFFFFFFFFu); /* 0x47031A30: push -1 */ 3565 PUSH32(esp, 0x470A5688u); /* 0x47031A32: push 0x470a5688 */ 3566 eax = MEM32(FS_BASE + (0)); /* 0x47031A37: mov eax, dword ptr fs:[0] */ 3567 PUSH32(esp, eax); /* 0x47031A3D: push eax */ 3568 MEM32(FS_BASE + (0)) = esp; /* 0x47031A3E: mov dword ptr fs:[0], esp */ 3569 PUSH32(esp, ecx); /* 0x47031A45: push ecx */ 3570 PUSH32(esp, esi); /* 0x47031A46: push esi */ 3571 PUSH32(esp, edi); /* 0x47031A47: push edi */ 3572 PUSH32(esp, 0x10u); /* 0x47031A48: push 0x10 */ 3573 esi = ecx; /* 0x47031A4A: mov esi, ecx */ 3574 PUSH32(esp, 2); /* 0x47031A4C: push 2 */ 3575 MEM32(esp + 0x10) = esi; /* 0x47031A4E: mov dword ptr [esp + 0x10], esi */ 3576 RECOMP_ICALL(0x47014F50u); /* 0x47031A52: call 0x47014f50 */ /* not lifted */ 3577 RECOMP_FLAGS_IN(); 3578 edi = MEM32(esp + 0x1C); /* 0x47031A57: mov edi, dword ptr [esp + 0x1c] */ 3579 MEM32(esi) = 0x470AC520u; /* 0x47031A5B: mov dword ptr [esi], 0x470ac520 */ 3580 eax = MEM32(edi + 0x8); /* 0x47031A61: mov eax, dword ptr [edi + 8] */ 3581 ecx = MEM32(edi + 0x4); /* 0x47031A64: mov ecx, dword ptr [edi + 4] */ 3582 PUSH32(esp, eax); /* 0x47031A67: push eax */ 3583 PUSH32(esp, ecx); /* 0x47031A68: push ecx */ 3584 ecx = esi; /* 0x47031A69: mov ecx, esi */ 3585 MEM32(esp + 0x1C) = 0; /* 0x47031A6B: mov dword ptr [esp + 0x1c], 0 */ 3586 RECOMP_ICALL(0x47014F30u); /* 0x47031A73: call 0x47014f30 */ /* not lifted */ 3587 RECOMP_FLAGS_IN(); 3588 /* cmp MEM32(edi + 0x4), 0xFFFFFFFFu */ /* 0x47031A78: cmp dword ptr [edi + 4], -1 */ 3589 _flag_a = (uint32_t)(MEM32(edi + 0x4)); _flag_b = (uint32_t)(0xFFFFFFFFu); 3590 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3591 _flag_k = FK_CMP; 3592 if (CMP_NE(_flag_a, _flag_b)) goto L_47031A90; /* 0x47031A7C: jne 0x47031a90 */ 3593 L_47031A7E: 3594 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3595 edx = 0; /* 0x47031A7E: xor edx, edx */ 3596 _cf = 0; 3597 _flag_k = FK_TEST; 3598 eax = esi + 0xC; /* 0x47031A80: lea eax, [esi + 0xc] */ 3599 MEM32(eax) = edx; /* 0x47031A83: mov dword ptr [eax], edx */ 3600 MEM32(eax + 0x4) = edx; /* 0x47031A85: mov dword ptr [eax + 4], edx */ 3601 MEM32(eax + 0x8) = edx; /* 0x47031A88: mov dword ptr [eax + 8], edx */ 3602 MEM32(eax + 0xC) = edx; /* 0x47031A8B: mov dword ptr [eax + 0xc], edx */ 3603 goto L_47031AAC; /* 0x47031A8E: jmp 0x47031aac */ 3604 L_47031A90: 3605 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 3606 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3607 edi = edi + 0xCu; /* 0x47031A90: add edi, 0xc */ 3608 _flag_k = FK_ADD; 3609 edx = MEM32(edi); /* 0x47031A93: mov edx, dword ptr [edi] */ 3610 ecx = esi + 0xC; /* 0x47031A95: lea ecx, [esi + 0xc] */ 3611 MEM32(ecx) = edx; /* 0x47031A98: mov dword ptr [ecx], edx */ 3612 eax = MEM32(edi + 0x4); /* 0x47031A9A: mov eax, dword ptr [edi + 4] */ 3613 MEM32(ecx + 0x4) = eax; /* 0x47031A9D: mov dword ptr [ecx + 4], eax */ 3614 edx = MEM32(edi + 0x8); /* 0x47031AA0: mov edx, dword ptr [edi + 8] */ 3615 MEM32(ecx + 0x8) = edx; /* 0x47031AA3: mov dword ptr [ecx + 8], edx */ 3616 eax = MEM32(edi + 0xC); /* 0x47031AA6: mov eax, dword ptr [edi + 0xc] */ 3617 MEM32(ecx + 0xC) = eax; /* 0x47031AA9: mov dword ptr [ecx + 0xc], eax */ 3618 L_47031AAC: 3619 ecx = MEM32(esp + 0xC); /* 0x47031AAC: mov ecx, dword ptr [esp + 0xc] */ 3620 edi = POP32_VAL(esp); /* 0x47031AB0: pop edi */ 3621 eax = esi; /* 0x47031AB1: mov eax, esi */ 3622 esi = POP32_VAL(esp); /* 0x47031AB3: pop esi */ 3623 MEM32(FS_BASE + (0)) = ecx; /* 0x47031AB4: mov dword ptr fs:[0], ecx */ 3624 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3625 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3626 esp = esp + 0x10u; /* 0x47031ABB: add esp, 0x10 */ 3627 _flag_k = FK_ADD; 3628 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47031ABE: ret 4 */ 3629 RECOMP_REGS_OUT(); 3630 } 3631 3632 void sub_47031AD0(void) { 3633 int _fpu_cmp = 0; 3634 uint32_t _cf = 0; 3635 int _df = 1; 3636 uint32_t _flag_k = FK_NONE; 3637 uint32_t _flag_a = 0, _flag_b = 0; 3638 uint32_t _itail_tgt = 0; 3639 RECOMP_REGS_LOCALS 3640 RECOMP_ENTER(0x47031AD0u); 3641 3642 L_47031AD0: 3643 PUSH32(esp, esi); /* 0x47031AD0: push esi */ 3644 PUSH32(esp, edi); /* 0x47031AD1: push edi */ 3645 PUSH32(esp, 0x10u); /* 0x47031AD2: push 0x10 */ 3646 esi = ecx; /* 0x47031AD4: mov esi, ecx */ 3647 PUSH32(esp, 2); /* 0x47031AD6: push 2 */ 3648 RECOMP_ICALL(0x47014F30u); /* 0x47031AD8: call 0x47014f30 */ /* not lifted */ 3649 RECOMP_FLAGS_IN(); 3650 eax = esi + 0xC; /* 0x47031ADD: lea eax, [esi + 0xc] */ 3651 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3652 ecx = 0; /* 0x47031AE0: xor ecx, ecx */ 3653 _cf = 0; 3654 _flag_k = FK_TEST; 3655 edx = eax; /* 0x47031AE2: mov edx, eax */ 3656 MEM32(edx) = ecx; /* 0x47031AE4: mov dword ptr [edx], ecx */ 3657 MEM32(edx + 0x4) = ecx; /* 0x47031AE6: mov dword ptr [edx + 4], ecx */ 3658 MEM32(edx + 0x8) = ecx; /* 0x47031AE9: mov dword ptr [edx + 8], ecx */ 3659 MEM32(edx + 0xC) = ecx; /* 0x47031AEC: mov dword ptr [edx + 0xc], ecx */ 3660 MEM16(eax) = (uint16_t)(2); /* 0x47031AEF: mov word ptr [eax], 2 */ 3661 eax = MEM32(esp + 0x14); /* 0x47031AF4: mov eax, dword ptr [esp + 0x14] */ 3662 /* test eax, eax */ /* 0x47031AF8: test eax, eax */ 3663 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3664 _cf = 0; 3665 _flag_k = FK_TEST; 3666 if (TEST_Z(_flag_a, _flag_b)) goto L_47031B24; /* 0x47031AFA: je 0x47031b24 */ 3667 L_47031AFC: 3668 eax = MEM32(esp + 0x10); /* 0x47031AFC: mov eax, dword ptr [esp + 0x10] */ 3669 PUSH32(esp, eax); /* 0x47031B00: push eax */ 3670 RECOMP_ICALL(MEM32(0x470AC4AC)); /* 0x47031B01: call dword ptr [0x470ac4ac] */ 3671 RECOMP_FLAGS_IN(); 3672 ecx = MEM32(esp + 0xC); /* 0x47031B07: mov ecx, dword ptr [esp + 0xc] */ 3673 PUSH32(esp, ecx); /* 0x47031B0B: push ecx */ 3674 edi = eax; /* 0x47031B0C: mov edi, eax */ 3675 RECOMP_ICALL(MEM32(0x470AC4C0)); /* 0x47031B0E: call dword ptr [0x470ac4c0] */ 3676 RECOMP_FLAGS_IN(); 3677 MEM16(esi + 0xE) = (uint16_t)(LO16(eax)); /* 0x47031B14: mov word ptr [esi + 0xe], ax */ 3678 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 3679 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3680 esi = esi + 0x10u; /* 0x47031B18: add esi, 0x10 */ 3681 _flag_k = FK_ADD; 3682 MEM32(esi) = edi; /* 0x47031B1B: mov dword ptr [esi], edi */ 3683 edi = POP32_VAL(esp); /* 0x47031B1D: pop edi */ 3684 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3685 eax = 0; /* 0x47031B1E: xor eax, eax */ 3686 _cf = 0; 3687 _flag_k = FK_TEST; 3688 esi = POP32_VAL(esp); /* 0x47031B20: pop esi */ 3689 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47031B21: ret 0xc */ 3690 L_47031B24: 3691 SET_LO16(edx, MEM16(esp + 0xC)); /* 0x47031B24: mov dx, word ptr [esp + 0xc] */ 3692 edi = MEM32(esp + 0x10); /* 0x47031B29: mov edi, dword ptr [esp + 0x10] */ 3693 MEM16(esi + 0xE) = (uint16_t)(LO16(edx)); /* 0x47031B2D: mov word ptr [esi + 0xe], dx */ 3694 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 3695 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3696 esi = esi + 0x10u; /* 0x47031B31: add esi, 0x10 */ 3697 _flag_k = FK_ADD; 3698 MEM32(esi) = edi; /* 0x47031B34: mov dword ptr [esi], edi */ 3699 edi = POP32_VAL(esp); /* 0x47031B36: pop edi */ 3700 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3701 eax = 0; /* 0x47031B37: xor eax, eax */ 3702 _cf = 0; 3703 _flag_k = FK_TEST; 3704 esi = POP32_VAL(esp); /* 0x47031B39: pop esi */ 3705 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47031B3A: ret 0xc */ 3706 RECOMP_REGS_OUT(); 3707 } 3708 3709 void sub_47031B40(void) { 3710 int _fpu_cmp = 0; 3711 uint32_t _cf = 0; 3712 int _df = 1; 3713 uint32_t _flag_k = FK_NONE; 3714 uint32_t _flag_a = 0, _flag_b = 0; 3715 uint32_t _itail_tgt = 0; 3716 RECOMP_REGS_LOCALS 3717 RECOMP_ENTER(0x47031B40u); 3718 3719 L_47031B40: 3720 PUSH32(esp, ecx); /* 0x47031B40: push ecx */ 3721 PUSH32(esp, ebx); /* 0x47031B41: push ebx */ 3722 PUSH32(esp, ebp); /* 0x47031B42: push ebp */ 3723 PUSH32(esp, esi); /* 0x47031B43: push esi */ 3724 PUSH32(esp, edi); /* 0x47031B44: push edi */ 3725 PUSH32(esp, 0x10u); /* 0x47031B45: push 0x10 */ 3726 ebx = ecx; /* 0x47031B47: mov ebx, ecx */ 3727 PUSH32(esp, 2); /* 0x47031B49: push 2 */ 3728 RECOMP_ICALL(0x47014F30u); /* 0x47031B4B: call 0x47014f30 */ /* not lifted */ 3729 RECOMP_FLAGS_IN(); 3730 esi = MEM32(esp + 0x1C); /* 0x47031B50: mov esi, dword ptr [esp + 0x1c] */ 3731 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3732 eax = 0; /* 0x47031B54: xor eax, eax */ 3733 _cf = 0; 3734 _flag_k = FK_TEST; 3735 /* test esi, esi */ /* 0x47031B56: test esi, esi */ 3736 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3737 _cf = 0; 3738 _flag_k = FK_TEST; 3739 ebp = ebx + 0xC; /* 0x47031B58: lea ebp, [ebx + 0xc] */ 3740 ecx = ebp; /* 0x47031B5B: mov ecx, ebp */ 3741 MEM32(ecx) = eax; /* 0x47031B5D: mov dword ptr [ecx], eax */ 3742 MEM32(ecx + 0x4) = eax; /* 0x47031B5F: mov dword ptr [ecx + 4], eax */ 3743 MEM32(ecx + 0x8) = eax; /* 0x47031B62: mov dword ptr [ecx + 8], eax */ 3744 MEM32(ecx + 0xC) = eax; /* 0x47031B65: mov dword ptr [ecx + 0xc], eax */ 3745 if (TEST_NZ(_flag_a, _flag_b)) goto L_47031B81; /* 0x47031B68: jne 0x47031b81 */ 3746 L_47031B6A: 3747 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47031B6A: call dword ptr [0x470ac3c8] */ 3748 RECOMP_FLAGS_IN(); 3749 edi = POP32_VAL(esp); /* 0x47031B70: pop edi */ 3750 esi = POP32_VAL(esp); /* 0x47031B71: pop esi */ 3751 ebp = POP32_VAL(esp); /* 0x47031B72: pop ebp */ 3752 MEM32(eax) = 0x16u; /* 0x47031B73: mov dword ptr [eax], 0x16 */ 3753 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3754 eax = eax | 0xFFFFFFFFu; /* 0x47031B79: or eax, 0xffffffff */ 3755 _cf = 0; 3756 _flag_k = FK_TEST; 3757 ebx = POP32_VAL(esp); /* 0x47031B7C: pop ebx */ 3758 ecx = POP32_VAL(esp); /* 0x47031B7D: pop ecx */ 3759 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47031B7E: ret 0xc */ 3760 L_47031B81: 3761 edx = esp + 0x10; /* 0x47031B81: lea edx, [esp + 0x10] */ 3762 PUSH32(esp, edx); /* 0x47031B85: push edx */ 3763 PUSH32(esp, esi); /* 0x47031B86: push esi */ 3764 RECOMP_ICALL(0x47056FE0u); /* 0x47031B87: call 0x47056fe0 */ /* not lifted */ 3765 RECOMP_FLAGS_IN(); 3766 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3767 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3768 esp = esp + 8; /* 0x47031B8C: add esp, 8 */ 3769 _flag_k = FK_ADD; 3770 /* cmp eax, 1 */ /* 0x47031B8F: cmp eax, 1 */ 3771 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3772 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3773 _flag_k = FK_CMP; 3774 if (CMP_NE(_flag_a, _flag_b)) goto L_47031C12; /* 0x47031B92: jne 0x47031c12 */ 3775 L_47031B94: 3776 esi = MEM32(esp + 0x20); /* 0x47031B94: mov esi, dword ptr [esp + 0x20] */ 3777 /* test esi, esi */ /* 0x47031B98: test esi, esi */ 3778 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3779 _cf = 0; 3780 _flag_k = FK_TEST; 3781 if (TEST_Z(_flag_a, _flag_b)) goto L_47031BAB; /* 0x47031B9A: je 0x47031bab */ 3782 L_47031B9C: 3783 eax = MEM32(esp + 0x10); /* 0x47031B9C: mov eax, dword ptr [esp + 0x10] */ 3784 PUSH32(esp, eax); /* 0x47031BA0: push eax */ 3785 RECOMP_ICALL(MEM32(0x470AC4B0)); /* 0x47031BA1: call dword ptr [0x470ac4b0] */ 3786 RECOMP_FLAGS_IN(); 3787 edi = eax; /* 0x47031BA7: mov edi, eax */ 3788 goto L_47031BAF; /* 0x47031BA9: jmp 0x47031baf */ 3789 L_47031BAB: 3790 edi = MEM32(esp + 0x10); /* 0x47031BAB: mov edi, dword ptr [esp + 0x10] */ 3791 L_47031BAF: 3792 PUSH32(esp, 0x10u); /* 0x47031BAF: push 0x10 */ 3793 PUSH32(esp, 2); /* 0x47031BB1: push 2 */ 3794 ecx = ebx; /* 0x47031BB3: mov ecx, ebx */ 3795 RECOMP_ICALL(0x47014F30u); /* 0x47031BB5: call 0x47014f30 */ /* not lifted */ 3796 RECOMP_FLAGS_IN(); 3797 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3798 ecx = 0; /* 0x47031BBA: xor ecx, ecx */ 3799 _cf = 0; 3800 _flag_k = FK_TEST; 3801 /* test esi, esi */ /* 0x47031BBC: test esi, esi */ 3802 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3803 _cf = 0; 3804 _flag_k = FK_TEST; 3805 edx = ebp; /* 0x47031BBE: mov edx, ebp */ 3806 MEM32(edx) = ecx; /* 0x47031BC0: mov dword ptr [edx], ecx */ 3807 MEM32(edx + 0x4) = ecx; /* 0x47031BC2: mov dword ptr [edx + 4], ecx */ 3808 MEM32(edx + 0x8) = ecx; /* 0x47031BC5: mov dword ptr [edx + 8], ecx */ 3809 MEM32(edx + 0xC) = ecx; /* 0x47031BC8: mov dword ptr [edx + 0xc], ecx */ 3810 MEM16(ebp) = (uint16_t)(2); /* 0x47031BCB: mov word ptr [ebp], 2 */ 3811 if (TEST_Z(_flag_a, _flag_b)) goto L_47031BFA; /* 0x47031BD1: je 0x47031bfa */ 3812 L_47031BD3: 3813 PUSH32(esp, edi); /* 0x47031BD3: push edi */ 3814 RECOMP_ICALL(MEM32(0x470AC4AC)); /* 0x47031BD4: call dword ptr [0x470ac4ac] */ 3815 RECOMP_FLAGS_IN(); 3816 edi = eax; /* 0x47031BDA: mov edi, eax */ 3817 eax = MEM32(esp + 0x18); /* 0x47031BDC: mov eax, dword ptr [esp + 0x18] */ 3818 PUSH32(esp, eax); /* 0x47031BE0: push eax */ 3819 RECOMP_ICALL(MEM32(0x470AC4C0)); /* 0x47031BE1: call dword ptr [0x470ac4c0] */ 3820 RECOMP_FLAGS_IN(); 3821 MEM16(ebx + 0xE) = (uint16_t)(LO16(eax)); /* 0x47031BE7: mov word ptr [ebx + 0xe], ax */ 3822 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 3823 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3824 ebx = ebx + 0x10u; /* 0x47031BEB: add ebx, 0x10 */ 3825 _flag_k = FK_ADD; 3826 MEM32(ebx) = edi; /* 0x47031BEE: mov dword ptr [ebx], edi */ 3827 edi = POP32_VAL(esp); /* 0x47031BF0: pop edi */ 3828 esi = POP32_VAL(esp); /* 0x47031BF1: pop esi */ 3829 ebp = POP32_VAL(esp); /* 0x47031BF2: pop ebp */ 3830 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3831 eax = 0; /* 0x47031BF3: xor eax, eax */ 3832 _cf = 0; 3833 _flag_k = FK_TEST; 3834 ebx = POP32_VAL(esp); /* 0x47031BF5: pop ebx */ 3835 ecx = POP32_VAL(esp); /* 0x47031BF6: pop ecx */ 3836 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47031BF7: ret 0xc */ 3837 L_47031BFA: 3838 SET_LO16(ecx, MEM16(esp + 0x18)); /* 0x47031BFA: mov cx, word ptr [esp + 0x18] */ 3839 MEM16(ebx + 0xE) = (uint16_t)(LO16(ecx)); /* 0x47031BFF: mov word ptr [ebx + 0xe], cx */ 3840 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 3841 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3842 ebx = ebx + 0x10u; /* 0x47031C03: add ebx, 0x10 */ 3843 _flag_k = FK_ADD; 3844 MEM32(ebx) = edi; /* 0x47031C06: mov dword ptr [ebx], edi */ 3845 edi = POP32_VAL(esp); /* 0x47031C08: pop edi */ 3846 esi = POP32_VAL(esp); /* 0x47031C09: pop esi */ 3847 ebp = POP32_VAL(esp); /* 0x47031C0A: pop ebp */ 3848 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3849 eax = 0; /* 0x47031C0B: xor eax, eax */ 3850 _cf = 0; 3851 _flag_k = FK_TEST; 3852 ebx = POP32_VAL(esp); /* 0x47031C0D: pop ebx */ 3853 ecx = POP32_VAL(esp); /* 0x47031C0E: pop ecx */ 3854 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47031C0F: ret 0xc */ 3855 L_47031C12: 3856 PUSH32(esp, esi); /* 0x47031C12: push esi */ 3857 RECOMP_ICALL(MEM32(0x470AC480)); /* 0x47031C13: call dword ptr [0x470ac480] */ 3858 RECOMP_FLAGS_IN(); 3859 /* test eax, eax */ /* 0x47031C19: test eax, eax */ 3860 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3861 _cf = 0; 3862 _flag_k = FK_TEST; 3863 if (TEST_NZ(_flag_a, _flag_b)) goto L_47031C42; /* 0x47031C1B: jne 0x47031c42 */ 3864 L_47031C1D: 3865 RECOMP_ICALL(MEM32(0x470AC4A4)); /* 0x47031C1D: call dword ptr [0x470ac4a4] */ 3866 RECOMP_FLAGS_IN(); 3867 edi = MEM32(0x470AC3C8); /* 0x47031C23: mov edi, dword ptr [0x470ac3c8] */ 3868 esi = eax; /* 0x47031C29: mov esi, eax */ 3869 RECOMP_ICALL(edi); /* 0x47031C2B: call edi */ 3870 RECOMP_FLAGS_IN(); 3871 MEM32(eax) = esi; /* 0x47031C2D: mov dword ptr [eax], esi */ 3872 RECOMP_ICALL(edi); /* 0x47031C2F: call edi */ 3873 RECOMP_FLAGS_IN(); 3874 edi = POP32_VAL(esp); /* 0x47031C31: pop edi */ 3875 esi = POP32_VAL(esp); /* 0x47031C32: pop esi */ 3876 ebp = POP32_VAL(esp); /* 0x47031C33: pop ebp */ 3877 MEM32(eax) = 0x16u; /* 0x47031C34: mov dword ptr [eax], 0x16 */ 3878 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3879 eax = eax | 0xFFFFFFFFu; /* 0x47031C3A: or eax, 0xffffffff */ 3880 _cf = 0; 3881 _flag_k = FK_TEST; 3882 ebx = POP32_VAL(esp); /* 0x47031C3D: pop ebx */ 3883 ecx = POP32_VAL(esp); /* 0x47031C3E: pop ecx */ 3884 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47031C3F: ret 0xc */ 3885 L_47031C42: 3886 ecx = (int32_t)(int16_t)MEM16(eax + 0xA); /* 0x47031C42: movsx ecx, word ptr [eax + 0xa] */ 3887 edx = MEM32(eax + 0xC); /* 0x47031C46: mov edx, dword ptr [eax + 0xc] */ 3888 esi = MEM32(edx); /* 0x47031C49: mov esi, dword ptr [edx] */ 3889 eax = ecx; /* 0x47031C4B: mov eax, ecx */ 3890 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47031C4D: shr ecx, 2 */ 3891 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3892 ecx = ecx >> 2u; /* 0x47031C4D: shr ecx, 2 */ 3893 edi = esp + 0x10; /* 0x47031C50: lea edi, [esp + 0x10] */ 3894 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47031C54: 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; } 3895 ecx = eax; /* 0x47031C56: mov ecx, eax */ 3896 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 3897 ecx = ecx & 3; /* 0x47031C58: and ecx, 3 */ 3898 _cf = 0; 3899 _flag_k = FK_TEST; 3900 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47031C5B: 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; } 3901 esi = MEM32(esp + 0x20); /* 0x47031C5D: mov esi, dword ptr [esp + 0x20] */ 3902 /* test esi, esi */ /* 0x47031C61: test esi, esi */ 3903 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3904 _cf = 0; 3905 _flag_k = FK_TEST; 3906 if (TEST_Z(_flag_a, _flag_b)) goto L_47031C74; /* 0x47031C63: je 0x47031c74 */ 3907 L_47031C65: 3908 ecx = MEM32(esp + 0x10); /* 0x47031C65: mov ecx, dword ptr [esp + 0x10] */ 3909 PUSH32(esp, ecx); /* 0x47031C69: push ecx */ 3910 RECOMP_ICALL(MEM32(0x470AC4B0)); /* 0x47031C6A: call dword ptr [0x470ac4b0] */ 3911 RECOMP_FLAGS_IN(); 3912 edi = eax; /* 0x47031C70: mov edi, eax */ 3913 goto L_47031C78; /* 0x47031C72: jmp 0x47031c78 */ 3914 L_47031C74: 3915 edi = MEM32(esp + 0x10); /* 0x47031C74: mov edi, dword ptr [esp + 0x10] */ 3916 L_47031C78: 3917 PUSH32(esp, 0x10u); /* 0x47031C78: push 0x10 */ 3918 PUSH32(esp, 2); /* 0x47031C7A: push 2 */ 3919 ecx = ebx; /* 0x47031C7C: mov ecx, ebx */ 3920 RECOMP_ICALL(0x47014F30u); /* 0x47031C7E: call 0x47014f30 */ /* not lifted */ 3921 RECOMP_FLAGS_IN(); 3922 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3923 edx = 0; /* 0x47031C83: xor edx, edx */ 3924 _cf = 0; 3925 _flag_k = FK_TEST; 3926 /* test esi, esi */ /* 0x47031C85: test esi, esi */ 3927 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3928 _cf = 0; 3929 _flag_k = FK_TEST; 3930 eax = ebp; /* 0x47031C87: mov eax, ebp */ 3931 MEM32(eax) = edx; /* 0x47031C89: mov dword ptr [eax], edx */ 3932 MEM32(eax + 0x4) = edx; /* 0x47031C8B: mov dword ptr [eax + 4], edx */ 3933 MEM32(eax + 0x8) = edx; /* 0x47031C8E: mov dword ptr [eax + 8], edx */ 3934 MEM32(eax + 0xC) = edx; /* 0x47031C91: mov dword ptr [eax + 0xc], edx */ 3935 MEM16(ebp) = (uint16_t)(2); /* 0x47031C94: mov word ptr [ebp], 2 */ 3936 if (TEST_Z(_flag_a, _flag_b)) goto L_47031CC3; /* 0x47031C9A: je 0x47031cc3 */ 3937 L_47031C9C: 3938 PUSH32(esp, edi); /* 0x47031C9C: push edi */ 3939 RECOMP_ICALL(MEM32(0x470AC4AC)); /* 0x47031C9D: call dword ptr [0x470ac4ac] */ 3940 RECOMP_FLAGS_IN(); 3941 ecx = MEM32(esp + 0x18); /* 0x47031CA3: mov ecx, dword ptr [esp + 0x18] */ 3942 PUSH32(esp, ecx); /* 0x47031CA7: push ecx */ 3943 edi = eax; /* 0x47031CA8: mov edi, eax */ 3944 RECOMP_ICALL(MEM32(0x470AC4C0)); /* 0x47031CAA: call dword ptr [0x470ac4c0] */ 3945 RECOMP_FLAGS_IN(); 3946 MEM16(ebx + 0xE) = (uint16_t)(LO16(eax)); /* 0x47031CB0: mov word ptr [ebx + 0xe], ax */ 3947 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 3948 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3949 ebx = ebx + 0x10u; /* 0x47031CB4: add ebx, 0x10 */ 3950 _flag_k = FK_ADD; 3951 MEM32(ebx) = edi; /* 0x47031CB7: mov dword ptr [ebx], edi */ 3952 edi = POP32_VAL(esp); /* 0x47031CB9: pop edi */ 3953 esi = POP32_VAL(esp); /* 0x47031CBA: pop esi */ 3954 ebp = POP32_VAL(esp); /* 0x47031CBB: pop ebp */ 3955 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3956 eax = 0; /* 0x47031CBC: xor eax, eax */ 3957 _cf = 0; 3958 _flag_k = FK_TEST; 3959 ebx = POP32_VAL(esp); /* 0x47031CBE: pop ebx */ 3960 ecx = POP32_VAL(esp); /* 0x47031CBF: pop ecx */ 3961 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47031CC0: ret 0xc */ 3962 L_47031CC3: 3963 SET_LO16(edx, MEM16(esp + 0x18)); /* 0x47031CC3: mov dx, word ptr [esp + 0x18] */ 3964 MEM16(ebx + 0xE) = (uint16_t)(LO16(edx)); /* 0x47031CC8: mov word ptr [ebx + 0xe], dx */ 3965 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 3966 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3967 ebx = ebx + 0x10u; /* 0x47031CCC: add ebx, 0x10 */ 3968 _flag_k = FK_ADD; 3969 MEM32(ebx) = edi; /* 0x47031CCF: mov dword ptr [ebx], edi */ 3970 edi = POP32_VAL(esp); /* 0x47031CD1: pop edi */ 3971 esi = POP32_VAL(esp); /* 0x47031CD2: pop esi */ 3972 ebp = POP32_VAL(esp); /* 0x47031CD3: pop ebp */ 3973 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3974 eax = 0; /* 0x47031CD4: xor eax, eax */ 3975 _cf = 0; 3976 _flag_k = FK_TEST; 3977 ebx = POP32_VAL(esp); /* 0x47031CD6: pop ebx */ 3978 ecx = POP32_VAL(esp); /* 0x47031CD7: pop ecx */ 3979 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47031CD8: ret 0xc */ 3980 RECOMP_REGS_OUT(); 3981 } 3982 3983 void sub_47031CE0(void) { 3984 int _fpu_cmp = 0; 3985 uint32_t _cf = 0; 3986 int _df = 1; 3987 uint32_t _flag_k = FK_NONE; 3988 uint32_t _flag_a = 0, _flag_b = 0; 3989 uint32_t _itail_tgt = 0; 3990 RECOMP_REGS_LOCALS 3991 RECOMP_ENTER(0x47031CE0u); 3992 3993 L_47031CE0: 3994 eax = MEM32(esp + 0xC); /* 0x47031CE0: mov eax, dword ptr [esp + 0xc] */ 3995 PUSH32(esp, esi); /* 0x47031CE4: push esi */ 3996 esi = ecx; /* 0x47031CE5: mov esi, ecx */ 3997 ecx = MEM32(esp + 0x8); /* 0x47031CE7: mov ecx, dword ptr [esp + 8] */ 3998 PUSH32(esp, eax); /* 0x47031CEB: push eax */ 3999 PUSH32(esp, ecx); /* 0x47031CEC: push ecx */ 4000 RECOMP_ICALL(MEM32(0x470AC450)); /* 0x47031CED: call dword ptr [0x470ac450] */ 4001 RECOMP_FLAGS_IN(); 4002 /* test eax, eax */ /* 0x47031CF3: test eax, eax */ 4003 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4004 _cf = 0; 4005 _flag_k = FK_TEST; 4006 if (TEST_NZ(_flag_a, _flag_b)) goto L_47031D0E; /* 0x47031CF5: jne 0x47031d0e */ 4007 L_47031CF7: 4008 RECOMP_ICALL(MEM32(0x470AC4A4)); /* 0x47031CF7: call dword ptr [0x470ac4a4] */ 4009 RECOMP_FLAGS_IN(); 4010 esi = eax; /* 0x47031CFD: mov esi, eax */ 4011 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47031CFF: call dword ptr [0x470ac3c8] */ 4012 RECOMP_FLAGS_IN(); 4013 MEM32(eax) = esi; /* 0x47031D05: mov dword ptr [eax], esi */ 4014 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4015 eax = eax | 0xFFFFFFFFu; /* 0x47031D07: or eax, 0xffffffff */ 4016 _cf = 0; 4017 _flag_k = FK_TEST; 4018 esi = POP32_VAL(esp); /* 0x47031D0A: pop esi */ 4019 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47031D0B: ret 0xc */ 4020 L_47031D0E: 4021 SET_LO16(eax, MEM16(eax + 0x8)); /* 0x47031D0E: mov ax, word ptr [eax + 8] */ 4022 edx = MEM32(esp + 0xC); /* 0x47031D12: mov edx, dword ptr [esp + 0xc] */ 4023 PUSH32(esp, 0); /* 0x47031D16: push 0 */ 4024 PUSH32(esp, edx); /* 0x47031D18: push edx */ 4025 ecx = esi; /* 0x47031D19: mov ecx, esi */ 4026 PUSH32(esp, eax); /* 0x47031D1B: push eax */ 4027 RECOMP_ICALL(0x47031B40u); /* 0x47031D1C: call 0x47031b40 */ /* not lifted */ 4028 RECOMP_FLAGS_IN(); 4029 esi = POP32_VAL(esp); /* 0x47031D21: pop esi */ 4030 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47031D22: ret 0xc */ 4031 RECOMP_REGS_OUT(); 4032 } 4033 4034 void sub_47031D30(void) { 4035 int _fpu_cmp = 0; 4036 uint32_t _cf = 0; 4037 int _df = 1; 4038 uint32_t _flag_k = FK_NONE; 4039 uint32_t _flag_a = 0, _flag_b = 0; 4040 uint32_t _itail_tgt = 0; 4041 RECOMP_REGS_LOCALS 4042 RECOMP_ENTER(0x47031D30u); 4043 4044 L_47031D30: 4045 eax = MEM32(esp + 0xC); /* 0x47031D30: mov eax, dword ptr [esp + 0xc] */ 4046 PUSH32(esp, esi); /* 0x47031D34: push esi */ 4047 esi = ecx; /* 0x47031D35: mov esi, ecx */ 4048 ecx = MEM32(esp + 0x8); /* 0x47031D37: mov ecx, dword ptr [esp + 8] */ 4049 PUSH32(esp, eax); /* 0x47031D3B: push eax */ 4050 PUSH32(esp, ecx); /* 0x47031D3C: push ecx */ 4051 RECOMP_ICALL(MEM32(0x470AC450)); /* 0x47031D3D: call dword ptr [0x470ac450] */ 4052 RECOMP_FLAGS_IN(); 4053 /* test eax, eax */ /* 0x47031D43: test eax, eax */ 4054 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4055 _cf = 0; 4056 _flag_k = FK_TEST; 4057 if (TEST_NZ(_flag_a, _flag_b)) goto L_47031D5E; /* 0x47031D45: jne 0x47031d5e */ 4058 L_47031D47: 4059 RECOMP_ICALL(MEM32(0x470AC4A4)); /* 0x47031D47: call dword ptr [0x470ac4a4] */ 4060 RECOMP_FLAGS_IN(); 4061 esi = eax; /* 0x47031D4D: mov esi, eax */ 4062 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47031D4F: call dword ptr [0x470ac3c8] */ 4063 RECOMP_FLAGS_IN(); 4064 MEM32(eax) = esi; /* 0x47031D55: mov dword ptr [eax], esi */ 4065 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4066 eax = eax | 0xFFFFFFFFu; /* 0x47031D57: or eax, 0xffffffff */ 4067 _cf = 0; 4068 _flag_k = FK_TEST; 4069 esi = POP32_VAL(esp); /* 0x47031D5A: pop esi */ 4070 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47031D5B: ret 0xc */ 4071 L_47031D5E: 4072 PUSH32(esp, ebx); /* 0x47031D5E: push ebx */ 4073 SET_LO16(ebx, MEM16(eax + 0x8)); /* 0x47031D5F: mov bx, word ptr [eax + 8] */ 4074 PUSH32(esp, edi); /* 0x47031D63: push edi */ 4075 edi = MEM32(esp + 0x14); /* 0x47031D64: mov edi, dword ptr [esp + 0x14] */ 4076 PUSH32(esp, 0x10u); /* 0x47031D68: push 0x10 */ 4077 PUSH32(esp, 2); /* 0x47031D6A: push 2 */ 4078 ecx = esi; /* 0x47031D6C: mov ecx, esi */ 4079 RECOMP_ICALL(0x47014F30u); /* 0x47031D6E: call 0x47014f30 */ /* not lifted */ 4080 RECOMP_FLAGS_IN(); 4081 eax = esi + 0xC; /* 0x47031D73: lea eax, [esi + 0xc] */ 4082 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4083 edx = 0; /* 0x47031D76: xor edx, edx */ 4084 _cf = 0; 4085 _flag_k = FK_TEST; 4086 ecx = eax; /* 0x47031D78: mov ecx, eax */ 4087 MEM32(ecx) = edx; /* 0x47031D7A: mov dword ptr [ecx], edx */ 4088 MEM32(ecx + 0x4) = edx; /* 0x47031D7C: mov dword ptr [ecx + 4], edx */ 4089 MEM32(ecx + 0x8) = edx; /* 0x47031D7F: mov dword ptr [ecx + 8], edx */ 4090 MEM32(ecx + 0xC) = edx; /* 0x47031D82: mov dword ptr [ecx + 0xc], edx */ 4091 MEM16(esi + 0xE) = (uint16_t)(LO16(ebx)); /* 0x47031D85: mov word ptr [esi + 0xe], bx */ 4092 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 4093 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4094 esi = esi + 0x10u; /* 0x47031D89: add esi, 0x10 */ 4095 _flag_k = FK_ADD; 4096 MEM16(eax) = (uint16_t)(2); /* 0x47031D8C: mov word ptr [eax], 2 */ 4097 MEM32(esi) = edi; /* 0x47031D91: mov dword ptr [esi], edi */ 4098 edi = POP32_VAL(esp); /* 0x47031D93: pop edi */ 4099 ebx = POP32_VAL(esp); /* 0x47031D94: pop ebx */ 4100 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4101 eax = 0; /* 0x47031D95: xor eax, eax */ 4102 _cf = 0; 4103 _flag_k = FK_TEST; 4104 esi = POP32_VAL(esp); /* 0x47031D97: pop esi */ 4105 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47031D98: ret 0xc */ 4106 RECOMP_REGS_OUT(); 4107 } 4108 4109 void sub_47031DA0(void) { 4110 int _fpu_cmp = 0; 4111 uint32_t _cf = 0; 4112 int _df = 1; 4113 uint32_t _flag_k = FK_NONE; 4114 uint32_t _flag_a = 0, _flag_b = 0; 4115 uint32_t _itail_tgt = 0; 4116 RECOMP_REGS_LOCALS 4117 RECOMP_ENTER(0x47031DA0u); 4118 4119 L_47031DA0: 4120 PUSH32(esp, 0xFFFFFFFFu); /* 0x47031DA0: push -1 */ 4121 PUSH32(esp, 0x470A56A8u); /* 0x47031DA2: push 0x470a56a8 */ 4122 eax = MEM32(FS_BASE + (0)); /* 0x47031DA7: mov eax, dword ptr fs:[0] */ 4123 PUSH32(esp, eax); /* 0x47031DAD: push eax */ 4124 MEM32(FS_BASE + (0)) = esp; /* 0x47031DAE: mov dword ptr fs:[0], esp */ 4125 PUSH32(esp, ecx); /* 0x47031DB5: push ecx */ 4126 PUSH32(esp, ebp); /* 0x47031DB6: push ebp */ 4127 PUSH32(esp, edi); /* 0x47031DB7: push edi */ 4128 PUSH32(esp, 0xFFFFFFFFu); /* 0x47031DB8: push -1 */ 4129 edi = ecx; /* 0x47031DBA: mov edi, ecx */ 4130 PUSH32(esp, 0xFFFFFFFFu); /* 0x47031DBC: push -1 */ 4131 MEM32(esp + 0x10) = edi; /* 0x47031DBE: mov dword ptr [esp + 0x10], edi */ 4132 RECOMP_ICALL(0x47014F50u); /* 0x47031DC2: call 0x47014f50 */ /* not lifted */ 4133 RECOMP_FLAGS_IN(); 4134 ebp = MEM32(esp + 0x20); /* 0x47031DC7: mov ebp, dword ptr [esp + 0x20] */ 4135 eax = MEM32(esp + 0x1C); /* 0x47031DCB: mov eax, dword ptr [esp + 0x1c] */ 4136 PUSH32(esp, 1); /* 0x47031DCF: push 1 */ 4137 PUSH32(esp, ebp); /* 0x47031DD1: push ebp */ 4138 PUSH32(esp, eax); /* 0x47031DD2: push eax */ 4139 ecx = edi; /* 0x47031DD3: mov ecx, edi */ 4140 MEM32(esp + 0x20) = 0; /* 0x47031DD5: mov dword ptr [esp + 0x20], 0 */ 4141 MEM32(edi) = 0x470AC520u; /* 0x47031DDD: mov dword ptr [edi], 0x470ac520 */ 4142 RECOMP_ICALL(0x47031B40u); /* 0x47031DE3: call 0x47031b40 */ /* not lifted */ 4143 RECOMP_FLAGS_IN(); 4144 /* cmp eax, 0xFFFFFFFFu */ /* 0x47031DE8: cmp eax, -1 */ 4145 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 4146 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4147 _flag_k = FK_CMP; 4148 if (CMP_NE(_flag_a, _flag_b)) goto L_47031E6C; /* 0x47031DEB: jne 0x47031e6c */ 4149 L_47031DED: 4150 PUSH32(esp, ebx); /* 0x47031DED: push ebx */ 4151 PUSH32(esp, esi); /* 0x47031DEE: push esi */ 4152 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47031DEF: call dword ptr [0x470ac150] */ 4153 RECOMP_FLAGS_IN(); 4154 ebx = eax; /* 0x47031DF5: mov ebx, eax */ 4155 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47031DF7: call dword ptr [0x470ac3c8] */ 4156 RECOMP_FLAGS_IN(); 4157 eax = MEM32(eax); /* 0x47031DFD: mov eax, dword ptr [eax] */ 4158 /* test eax, eax */ /* 0x47031DFF: test eax, eax */ 4159 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4160 _cf = 0; 4161 _flag_k = FK_TEST; 4162 if (TEST_Z(_flag_a, _flag_b)) goto L_47031E05; /* 0x47031E01: je 0x47031e05 */ 4163 L_47031E03: 4164 ebx = eax; /* 0x47031E03: mov ebx, eax */ 4165 L_47031E05: 4166 RECOMP_ICALL(0x47039020u); /* 0x47031E05: call 0x47039020 */ /* not lifted */ 4167 RECOMP_FLAGS_IN(); 4168 esi = eax; /* 0x47031E0A: mov esi, eax */ 4169 ecx = esi; /* 0x47031E0C: mov ecx, esi */ 4170 RECOMP_ICALL(0x4703B210u); /* 0x47031E0E: call 0x4703b210 */ /* not lifted */ 4171 RECOMP_FLAGS_IN(); 4172 PUSH32(esp, eax); /* 0x47031E13: push eax */ 4173 ecx = esi; /* 0x47031E14: mov ecx, esi */ 4174 RECOMP_ICALL(0x4703B240u); /* 0x47031E16: call 0x4703b240 */ /* not lifted */ 4175 RECOMP_FLAGS_IN(); 4176 PUSH32(esp, eax); /* 0x47031E1B: push eax */ 4177 ecx = esi; /* 0x47031E1C: mov ecx, esi */ 4178 RECOMP_ICALL(0x4703B080u); /* 0x47031E1E: call 0x4703b080 */ /* not lifted */ 4179 RECOMP_FLAGS_IN(); 4180 PUSH32(esp, eax); /* 0x47031E23: push eax */ 4181 PUSH32(esp, ebx); /* 0x47031E24: push ebx */ 4182 PUSH32(esp, 0xFFFFFFFFu); /* 0x47031E25: push -1 */ 4183 PUSH32(esp, 0x160u); /* 0x47031E27: push 0x160 */ 4184 PUSH32(esp, 0x47106AECu); /* 0x47031E2C: push 0x47106aec */ 4185 ecx = esi; /* 0x47031E31: mov ecx, esi */ 4186 RECOMP_ICALL(0x4703A340u); /* 0x47031E33: call 0x4703a340 */ /* not lifted */ 4187 RECOMP_FLAGS_IN(); 4188 /* test ebp, ebp */ /* 0x47031E38: test ebp, ebp */ 4189 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp); 4190 _cf = 0; 4191 _flag_k = FK_TEST; 4192 if (TEST_NZ(_flag_a, _flag_b)) goto L_47031E41; /* 0x47031E3A: jne 0x47031e41 */ 4193 L_47031E3C: 4194 ebp = 0x47106AE0u; /* 0x47031E3C: mov ebp, 0x47106ae0 */ 4195 L_47031E41: 4196 PUSH32(esp, ebp); /* 0x47031E41: push ebp */ 4197 PUSH32(esp, 0x47106B34u); /* 0x47031E42: push 0x47106b34 */ 4198 PUSH32(esp, 0x80u); /* 0x47031E47: push 0x80 */ 4199 PUSH32(esp, esi); /* 0x47031E4C: push esi */ 4200 RECOMP_ICALL(0x47039830u); /* 0x47031E4D: call 0x47039830 */ /* not lifted */ 4201 RECOMP_FLAGS_IN(); 4202 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4203 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4204 esp = esp + 0x10u; /* 0x47031E52: add esp, 0x10 */ 4205 _flag_k = FK_ADD; 4206 esi = POP32_VAL(esp); /* 0x47031E55: pop esi */ 4207 ebx = POP32_VAL(esp); /* 0x47031E56: pop ebx */ 4208 eax = edi; /* 0x47031E57: mov eax, edi */ 4209 edi = POP32_VAL(esp); /* 0x47031E59: pop edi */ 4210 ebp = POP32_VAL(esp); /* 0x47031E5A: pop ebp */ 4211 ecx = MEM32(esp + 0x4); /* 0x47031E5B: mov ecx, dword ptr [esp + 4] */ 4212 MEM32(FS_BASE + (0)) = ecx; /* 0x47031E5F: mov dword ptr fs:[0], ecx */ 4213 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4214 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4215 esp = esp + 0x10u; /* 0x47031E66: add esp, 0x10 */ 4216 _flag_k = FK_ADD; 4217 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47031E69: ret 8 */ 4218 L_47031E6C: 4219 ecx = MEM32(esp + 0xC); /* 0x47031E6C: mov ecx, dword ptr [esp + 0xc] */ 4220 eax = edi; /* 0x47031E70: mov eax, edi */ 4221 edi = POP32_VAL(esp); /* 0x47031E72: pop edi */ 4222 ebp = POP32_VAL(esp); /* 0x47031E73: pop ebp */ 4223 MEM32(FS_BASE + (0)) = ecx; /* 0x47031E74: mov dword ptr fs:[0], ecx */ 4224 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4225 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4226 esp = esp + 0x10u; /* 0x47031E7B: add esp, 0x10 */ 4227 _flag_k = FK_ADD; 4228 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47031E7E: ret 8 */ 4229 RECOMP_REGS_OUT(); 4230 } 4231 4232 void sub_47031E90(void) { 4233 int _fpu_cmp = 0; 4234 uint32_t _cf = 0; 4235 int _df = 1; 4236 uint32_t _flag_k = FK_NONE; 4237 uint32_t _flag_a = 0, _flag_b = 0; 4238 uint32_t _itail_tgt = 0; 4239 RECOMP_REGS_LOCALS 4240 RECOMP_ENTER(0x47031E90u); 4241 4242 L_47031E90: 4243 PUSH32(esp, esi); /* 0x47031E90: push esi */ 4244 esi = MEM32(esp + 0xC); /* 0x47031E91: mov esi, dword ptr [esp + 0xc] */ 4245 PUSH32(esp, edi); /* 0x47031E95: push edi */ 4246 PUSH32(esp, esi); /* 0x47031E96: push esi */ 4247 edi = ecx; /* 0x47031E97: mov edi, ecx */ 4248 PUSH32(esp, 2); /* 0x47031E99: push 2 */ 4249 RECOMP_ICALL(0x47014F30u); /* 0x47031E9B: call 0x47014f30 */ /* not lifted */ 4250 RECOMP_FLAGS_IN(); 4251 ecx = esi; /* 0x47031EA0: mov ecx, esi */ 4252 esi = MEM32(esp + 0xC); /* 0x47031EA2: mov esi, dword ptr [esp + 0xc] */ 4253 eax = ecx; /* 0x47031EA6: mov eax, ecx */ 4254 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47031EA8: shr ecx, 2 */ 4255 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4256 ecx = ecx >> 2u; /* 0x47031EA8: shr ecx, 2 */ 4257 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 4258 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4259 edi = edi + 0xCu; /* 0x47031EAB: add edi, 0xc */ 4260 _flag_k = FK_ADD; 4261 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47031EAE: 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; } 4262 ecx = eax; /* 0x47031EB0: mov ecx, eax */ 4263 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 4264 ecx = ecx & 3; /* 0x47031EB2: and ecx, 3 */ 4265 _cf = 0; 4266 _flag_k = FK_TEST; 4267 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47031EB5: 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; } 4268 edi = POP32_VAL(esp); /* 0x47031EB7: pop edi */ 4269 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4270 eax = 0; /* 0x47031EB8: xor eax, eax */ 4271 _cf = 0; 4272 _flag_k = FK_TEST; 4273 esi = POP32_VAL(esp); /* 0x47031EBA: pop esi */ 4274 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47031EBB: ret 8 */ 4275 RECOMP_REGS_OUT(); 4276 } 4277 4278 void sub_47031EC0(void) { 4279 int _fpu_cmp = 0; 4280 uint32_t _cf = 0; 4281 int _df = 1; 4282 uint32_t _flag_k = FK_NONE; 4283 uint32_t _flag_a = 0, _flag_b = 0; 4284 uint32_t _itail_tgt = 0; 4285 RECOMP_REGS_LOCALS 4286 RECOMP_ENTER(0x47031EC0u); 4287 4288 L_47031EC0: 4289 PUSH32(esp, esi); /* 0x47031EC0: push esi */ 4290 esi = MEM32(esp + 0xC); /* 0x47031EC1: mov esi, dword ptr [esp + 0xc] */ 4291 PUSH32(esp, edi); /* 0x47031EC5: push edi */ 4292 PUSH32(esp, esi); /* 0x47031EC6: push esi */ 4293 edi = ecx; /* 0x47031EC7: mov edi, ecx */ 4294 PUSH32(esp, 2); /* 0x47031EC9: push 2 */ 4295 RECOMP_ICALL(0x47014F30u); /* 0x47031ECB: call 0x47014f30 */ /* not lifted */ 4296 RECOMP_FLAGS_IN(); 4297 ecx = esi; /* 0x47031ED0: mov ecx, esi */ 4298 esi = MEM32(esp + 0xC); /* 0x47031ED2: mov esi, dword ptr [esp + 0xc] */ 4299 eax = ecx; /* 0x47031ED6: mov eax, ecx */ 4300 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47031ED8: shr ecx, 2 */ 4301 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4302 ecx = ecx >> 2u; /* 0x47031ED8: shr ecx, 2 */ 4303 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 4304 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4305 edi = edi + 0xCu; /* 0x47031EDB: add edi, 0xc */ 4306 _flag_k = FK_ADD; 4307 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47031EDE: 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; } 4308 ecx = eax; /* 0x47031EE0: mov ecx, eax */ 4309 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 4310 ecx = ecx & 3; /* 0x47031EE2: and ecx, 3 */ 4311 _cf = 0; 4312 _flag_k = FK_TEST; 4313 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47031EE5: 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; } 4314 edi = POP32_VAL(esp); /* 0x47031EE7: pop edi */ 4315 esi = POP32_VAL(esp); /* 0x47031EE8: pop esi */ 4316 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47031EE9: ret 8 */ 4317 RECOMP_REGS_OUT(); 4318 } 4319 4320 void sub_47031EF0(void) { 4321 int _fpu_cmp = 0; 4322 uint32_t _cf = 0; 4323 int _df = 1; 4324 uint32_t _flag_k = FK_NONE; 4325 uint32_t _flag_a = 0, _flag_b = 0; 4326 uint32_t _itail_tgt = 0; 4327 RECOMP_REGS_LOCALS 4328 RECOMP_ENTER(0x47031EF0u); 4329 4330 L_47031EF0: 4331 PUSH32(esp, 0xFFFFFFFFu); /* 0x47031EF0: push -1 */ 4332 PUSH32(esp, 0x470A56C8u); /* 0x47031EF2: push 0x470a56c8 */ 4333 eax = MEM32(FS_BASE + (0)); /* 0x47031EF7: mov eax, dword ptr fs:[0] */ 4334 PUSH32(esp, eax); /* 0x47031EFD: push eax */ 4335 MEM32(FS_BASE + (0)) = esp; /* 0x47031EFE: mov dword ptr fs:[0], esp */ 4336 PUSH32(esp, ecx); /* 0x47031F05: push ecx */ 4337 PUSH32(esp, ebx); /* 0x47031F06: push ebx */ 4338 PUSH32(esp, esi); /* 0x47031F07: push esi */ 4339 PUSH32(esp, edi); /* 0x47031F08: push edi */ 4340 PUSH32(esp, 0xFFFFFFFFu); /* 0x47031F09: push -1 */ 4341 ebx = ecx; /* 0x47031F0B: mov ebx, ecx */ 4342 PUSH32(esp, 0xFFFFFFFFu); /* 0x47031F0D: push -1 */ 4343 MEM32(esp + 0x14) = ebx; /* 0x47031F0F: mov dword ptr [esp + 0x14], ebx */ 4344 RECOMP_ICALL(0x47014F50u); /* 0x47031F13: call 0x47014f50 */ /* not lifted */ 4345 RECOMP_FLAGS_IN(); 4346 esi = MEM32(esp + 0x24); /* 0x47031F18: mov esi, dword ptr [esp + 0x24] */ 4347 PUSH32(esp, esi); /* 0x47031F1C: push esi */ 4348 PUSH32(esp, 2); /* 0x47031F1D: push 2 */ 4349 ecx = ebx; /* 0x47031F1F: mov ecx, ebx */ 4350 MEM32(esp + 0x20) = 0; /* 0x47031F21: mov dword ptr [esp + 0x20], 0 */ 4351 MEM32(ebx) = 0x470AC520u; /* 0x47031F29: mov dword ptr [ebx], 0x470ac520 */ 4352 RECOMP_ICALL(0x47014F30u); /* 0x47031F2F: call 0x47014f30 */ /* not lifted */ 4353 RECOMP_FLAGS_IN(); 4354 ecx = esi; /* 0x47031F34: mov ecx, esi */ 4355 esi = MEM32(esp + 0x20); /* 0x47031F36: mov esi, dword ptr [esp + 0x20] */ 4356 eax = ecx; /* 0x47031F3A: mov eax, ecx */ 4357 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47031F3C: shr ecx, 2 */ 4358 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4359 ecx = ecx >> 2u; /* 0x47031F3C: shr ecx, 2 */ 4360 edi = ebx + 0xC; /* 0x47031F3F: lea edi, [ebx + 0xc] */ 4361 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47031F42: 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; } 4362 ecx = eax; /* 0x47031F44: mov ecx, eax */ 4363 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 4364 ecx = ecx & 3; /* 0x47031F46: and ecx, 3 */ 4365 _cf = 0; 4366 _flag_k = FK_TEST; 4367 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47031F49: 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; } 4368 ecx = MEM32(esp + 0x10); /* 0x47031F4B: mov ecx, dword ptr [esp + 0x10] */ 4369 edi = POP32_VAL(esp); /* 0x47031F4F: pop edi */ 4370 esi = POP32_VAL(esp); /* 0x47031F50: pop esi */ 4371 eax = ebx; /* 0x47031F51: mov eax, ebx */ 4372 ebx = POP32_VAL(esp); /* 0x47031F53: pop ebx */ 4373 MEM32(FS_BASE + (0)) = ecx; /* 0x47031F54: mov dword ptr fs:[0], ecx */ 4374 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4375 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4376 esp = esp + 0x10u; /* 0x47031F5B: add esp, 0x10 */ 4377 _flag_k = FK_ADD; 4378 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47031F5E: ret 8 */ 4379 RECOMP_REGS_OUT(); 4380 } 4381 4382 void sub_47031F70(void) { 4383 int _fpu_cmp = 0; 4384 uint32_t _cf = 0; 4385 int _df = 1; 4386 uint32_t _flag_k = FK_NONE; 4387 uint32_t _flag_a = 0, _flag_b = 0; 4388 uint32_t _itail_tgt = 0; 4389 RECOMP_REGS_LOCALS 4390 RECOMP_ENTER(0x47031F70u); 4391 4392 L_47031F70: 4393 PUSH32(esp, 0xFFFFFFFFu); /* 0x47031F70: push -1 */ 4394 PUSH32(esp, 0x470A56E8u); /* 0x47031F72: push 0x470a56e8 */ 4395 eax = MEM32(FS_BASE + (0)); /* 0x47031F77: mov eax, dword ptr fs:[0] */ 4396 PUSH32(esp, eax); /* 0x47031F7D: push eax */ 4397 MEM32(FS_BASE + (0)) = esp; /* 0x47031F7E: mov dword ptr fs:[0], esp */ 4398 PUSH32(esp, ecx); /* 0x47031F85: push ecx */ 4399 PUSH32(esp, esi); /* 0x47031F86: push esi */ 4400 PUSH32(esp, edi); /* 0x47031F87: push edi */ 4401 PUSH32(esp, 0xFFFFFFFFu); /* 0x47031F88: push -1 */ 4402 esi = ecx; /* 0x47031F8A: mov esi, ecx */ 4403 PUSH32(esp, 0xFFFFFFFFu); /* 0x47031F8C: push -1 */ 4404 MEM32(esp + 0x10) = esi; /* 0x47031F8E: mov dword ptr [esp + 0x10], esi */ 4405 RECOMP_ICALL(0x47014F50u); /* 0x47031F92: call 0x47014f50 */ /* not lifted */ 4406 RECOMP_FLAGS_IN(); 4407 PUSH32(esp, 0x10u); /* 0x47031F97: push 0x10 */ 4408 PUSH32(esp, 2); /* 0x47031F99: push 2 */ 4409 ecx = esi; /* 0x47031F9B: mov ecx, esi */ 4410 MEM32(esp + 0x1C) = 0; /* 0x47031F9D: mov dword ptr [esp + 0x1c], 0 */ 4411 MEM32(esi) = 0x470AC520u; /* 0x47031FA5: mov dword ptr [esi], 0x470ac520 */ 4412 RECOMP_ICALL(0x47014F30u); /* 0x47031FAB: call 0x47014f30 */ /* not lifted */ 4413 RECOMP_FLAGS_IN(); 4414 eax = esi + 0xC; /* 0x47031FB0: lea eax, [esi + 0xc] */ 4415 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4416 ecx = 0; /* 0x47031FB3: xor ecx, ecx */ 4417 _cf = 0; 4418 _flag_k = FK_TEST; 4419 edx = eax; /* 0x47031FB5: mov edx, eax */ 4420 MEM32(edx) = ecx; /* 0x47031FB7: mov dword ptr [edx], ecx */ 4421 MEM32(edx + 0x4) = ecx; /* 0x47031FB9: mov dword ptr [edx + 4], ecx */ 4422 MEM32(edx + 0x8) = ecx; /* 0x47031FBC: mov dword ptr [edx + 8], ecx */ 4423 MEM32(edx + 0xC) = ecx; /* 0x47031FBF: mov dword ptr [edx + 0xc], ecx */ 4424 MEM16(eax) = (uint16_t)(2); /* 0x47031FC2: mov word ptr [eax], 2 */ 4425 eax = MEM32(esp + 0x20); /* 0x47031FC7: mov eax, dword ptr [esp + 0x20] */ 4426 PUSH32(esp, eax); /* 0x47031FCB: push eax */ 4427 RECOMP_ICALL(MEM32(0x470AC4AC)); /* 0x47031FCC: call dword ptr [0x470ac4ac] */ 4428 RECOMP_FLAGS_IN(); 4429 ecx = MEM32(esp + 0x1C); /* 0x47031FD2: mov ecx, dword ptr [esp + 0x1c] */ 4430 PUSH32(esp, ecx); /* 0x47031FD6: push ecx */ 4431 edi = eax; /* 0x47031FD7: mov edi, eax */ 4432 RECOMP_ICALL(MEM32(0x470AC4C0)); /* 0x47031FD9: call dword ptr [0x470ac4c0] */ 4433 RECOMP_FLAGS_IN(); 4434 ecx = MEM32(esp + 0xC); /* 0x47031FDF: mov ecx, dword ptr [esp + 0xc] */ 4435 MEM16(esi + 0xE) = (uint16_t)(LO16(eax)); /* 0x47031FE3: mov word ptr [esi + 0xe], ax */ 4436 edx = esi + 0x10; /* 0x47031FE7: lea edx, [esi + 0x10] */ 4437 MEM32(edx) = edi; /* 0x47031FEA: mov dword ptr [edx], edi */ 4438 edi = POP32_VAL(esp); /* 0x47031FEC: pop edi */ 4439 eax = esi; /* 0x47031FED: mov eax, esi */ 4440 esi = POP32_VAL(esp); /* 0x47031FEF: pop esi */ 4441 MEM32(FS_BASE + (0)) = ecx; /* 0x47031FF0: mov dword ptr fs:[0], ecx */ 4442 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4443 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4444 esp = esp + 0x10u; /* 0x47031FF7: add esp, 0x10 */ 4445 _flag_k = FK_ADD; 4446 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47031FFA: ret 8 */ 4447 RECOMP_REGS_OUT(); 4448 } 4449 4450 void sub_47032000(void) { 4451 int _fpu_cmp = 0; 4452 uint32_t _cf = 0; 4453 int _df = 1; 4454 uint32_t _flag_k = FK_NONE; 4455 uint32_t _flag_a = 0, _flag_b = 0; 4456 uint32_t _itail_tgt = 0; 4457 RECOMP_REGS_LOCALS 4458 RECOMP_ENTER(0x47032000u); 4459 4460 L_47032000: 4461 PUSH32(esp, 0xFFFFFFFFu); /* 0x47032000: push -1 */ 4462 PUSH32(esp, 0x470A5708u); /* 0x47032002: push 0x470a5708 */ 4463 eax = MEM32(FS_BASE + (0)); /* 0x47032007: mov eax, dword ptr fs:[0] */ 4464 PUSH32(esp, eax); /* 0x4703200D: push eax */ 4465 MEM32(FS_BASE + (0)) = esp; /* 0x4703200E: mov dword ptr fs:[0], esp */ 4466 PUSH32(esp, ecx); /* 0x47032015: push ecx */ 4467 PUSH32(esp, ebp); /* 0x47032016: push ebp */ 4468 PUSH32(esp, esi); /* 0x47032017: push esi */ 4469 PUSH32(esp, edi); /* 0x47032018: push edi */ 4470 PUSH32(esp, 0xFFFFFFFFu); /* 0x47032019: push -1 */ 4471 edi = ecx; /* 0x4703201B: mov edi, ecx */ 4472 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703201D: push -1 */ 4473 MEM32(esp + 0x14) = edi; /* 0x4703201F: mov dword ptr [esp + 0x14], edi */ 4474 RECOMP_ICALL(0x47014F50u); /* 0x47032023: call 0x47014f50 */ /* not lifted */ 4475 RECOMP_FLAGS_IN(); 4476 eax = MEM32(esp + 0x28); /* 0x47032028: mov eax, dword ptr [esp + 0x28] */ 4477 ecx = MEM32(esp + 0x20); /* 0x4703202C: mov ecx, dword ptr [esp + 0x20] */ 4478 PUSH32(esp, eax); /* 0x47032030: push eax */ 4479 PUSH32(esp, ecx); /* 0x47032031: push ecx */ 4480 MEM32(esp + 0x20) = 0; /* 0x47032032: mov dword ptr [esp + 0x20], 0 */ 4481 MEM32(edi) = 0x470AC520u; /* 0x4703203A: mov dword ptr [edi], 0x470ac520 */ 4482 RECOMP_ICALL(MEM32(0x470AC450)); /* 0x47032040: call dword ptr [0x470ac450] */ 4483 RECOMP_FLAGS_IN(); 4484 /* test eax, eax */ /* 0x47032046: test eax, eax */ 4485 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4486 _cf = 0; 4487 _flag_k = FK_TEST; 4488 ebp = MEM32(0x470AC3C8); /* 0x47032048: mov ebp, dword ptr [0x470ac3c8] */ 4489 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703205E; /* 0x4703204E: jne 0x4703205e */ 4490 L_47032050: 4491 RECOMP_ICALL(MEM32(0x470AC4A4)); /* 0x47032050: call dword ptr [0x470ac4a4] */ 4492 RECOMP_FLAGS_IN(); 4493 esi = eax; /* 0x47032056: mov esi, eax */ 4494 RECOMP_ICALL(ebp); /* 0x47032058: call ebp */ 4495 RECOMP_FLAGS_IN(); 4496 MEM32(eax) = esi; /* 0x4703205A: mov dword ptr [eax], esi */ 4497 goto L_47032076; /* 0x4703205C: jmp 0x47032076 */ 4498 L_4703205E: 4499 SET_LO16(eax, MEM16(eax + 0x8)); /* 0x4703205E: mov ax, word ptr [eax + 8] */ 4500 edx = MEM32(esp + 0x24); /* 0x47032062: mov edx, dword ptr [esp + 0x24] */ 4501 PUSH32(esp, 0); /* 0x47032066: push 0 */ 4502 PUSH32(esp, edx); /* 0x47032068: push edx */ 4503 ecx = edi; /* 0x47032069: mov ecx, edi */ 4504 PUSH32(esp, eax); /* 0x4703206B: push eax */ 4505 RECOMP_ICALL(0x47031B40u); /* 0x4703206C: call 0x47031b40 */ /* not lifted */ 4506 RECOMP_FLAGS_IN(); 4507 /* cmp eax, 0xFFFFFFFFu */ /* 0x47032071: cmp eax, -1 */ 4508 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 4509 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4510 _flag_k = FK_CMP; 4511 if (CMP_NE(_flag_a, _flag_b)) goto L_470320E6; /* 0x47032074: jne 0x470320e6 */ 4512 L_47032076: 4513 PUSH32(esp, ebx); /* 0x47032076: push ebx */ 4514 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47032077: call dword ptr [0x470ac150] */ 4515 RECOMP_FLAGS_IN(); 4516 ebx = eax; /* 0x4703207D: mov ebx, eax */ 4517 RECOMP_ICALL(ebp); /* 0x4703207F: call ebp */ 4518 RECOMP_FLAGS_IN(); 4519 eax = MEM32(eax); /* 0x47032081: mov eax, dword ptr [eax] */ 4520 /* test eax, eax */ /* 0x47032083: test eax, eax */ 4521 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4522 _cf = 0; 4523 _flag_k = FK_TEST; 4524 if (TEST_Z(_flag_a, _flag_b)) goto L_47032089; /* 0x47032085: je 0x47032089 */ 4525 L_47032087: 4526 ebx = eax; /* 0x47032087: mov ebx, eax */ 4527 L_47032089: 4528 RECOMP_ICALL(0x47039020u); /* 0x47032089: call 0x47039020 */ /* not lifted */ 4529 RECOMP_FLAGS_IN(); 4530 esi = eax; /* 0x4703208E: mov esi, eax */ 4531 ecx = esi; /* 0x47032090: mov ecx, esi */ 4532 RECOMP_ICALL(0x4703B210u); /* 0x47032092: call 0x4703b210 */ /* not lifted */ 4533 RECOMP_FLAGS_IN(); 4534 PUSH32(esp, eax); /* 0x47032097: push eax */ 4535 ecx = esi; /* 0x47032098: mov ecx, esi */ 4536 RECOMP_ICALL(0x4703B240u); /* 0x4703209A: call 0x4703b240 */ /* not lifted */ 4537 RECOMP_FLAGS_IN(); 4538 PUSH32(esp, eax); /* 0x4703209F: push eax */ 4539 ecx = esi; /* 0x470320A0: mov ecx, esi */ 4540 RECOMP_ICALL(0x4703B080u); /* 0x470320A2: call 0x4703b080 */ /* not lifted */ 4541 RECOMP_FLAGS_IN(); 4542 PUSH32(esp, eax); /* 0x470320A7: push eax */ 4543 PUSH32(esp, ebx); /* 0x470320A8: push ebx */ 4544 PUSH32(esp, 0xFFFFFFFFu); /* 0x470320A9: push -1 */ 4545 PUSH32(esp, 0x19Du); /* 0x470320AB: push 0x19d */ 4546 PUSH32(esp, 0x47106AECu); /* 0x470320B0: push 0x47106aec */ 4547 ecx = esi; /* 0x470320B5: mov ecx, esi */ 4548 RECOMP_ICALL(0x4703A340u); /* 0x470320B7: call 0x4703a340 */ /* not lifted */ 4549 RECOMP_FLAGS_IN(); 4550 PUSH32(esp, 0x47106B58u); /* 0x470320BC: push 0x47106b58 */ 4551 PUSH32(esp, 0x80u); /* 0x470320C1: push 0x80 */ 4552 PUSH32(esp, esi); /* 0x470320C6: push esi */ 4553 RECOMP_ICALL(0x47039830u); /* 0x470320C7: call 0x47039830 */ /* not lifted */ 4554 RECOMP_FLAGS_IN(); 4555 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4556 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4557 esp = esp + 0xCu; /* 0x470320CC: add esp, 0xc */ 4558 _flag_k = FK_ADD; 4559 ebx = POP32_VAL(esp); /* 0x470320CF: pop ebx */ 4560 eax = edi; /* 0x470320D0: mov eax, edi */ 4561 edi = POP32_VAL(esp); /* 0x470320D2: pop edi */ 4562 esi = POP32_VAL(esp); /* 0x470320D3: pop esi */ 4563 ebp = POP32_VAL(esp); /* 0x470320D4: pop ebp */ 4564 ecx = MEM32(esp + 0x4); /* 0x470320D5: mov ecx, dword ptr [esp + 4] */ 4565 MEM32(FS_BASE + (0)) = ecx; /* 0x470320D9: mov dword ptr fs:[0], ecx */ 4566 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4567 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4568 esp = esp + 0x10u; /* 0x470320E0: add esp, 0x10 */ 4569 _flag_k = FK_ADD; 4570 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470320E3: ret 0xc */ 4571 L_470320E6: 4572 ecx = MEM32(esp + 0x10); /* 0x470320E6: mov ecx, dword ptr [esp + 0x10] */ 4573 eax = edi; /* 0x470320EA: mov eax, edi */ 4574 edi = POP32_VAL(esp); /* 0x470320EC: pop edi */ 4575 esi = POP32_VAL(esp); /* 0x470320ED: pop esi */ 4576 ebp = POP32_VAL(esp); /* 0x470320EE: pop ebp */ 4577 MEM32(FS_BASE + (0)) = ecx; /* 0x470320EF: mov dword ptr fs:[0], ecx */ 4578 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4579 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4580 esp = esp + 0x10u; /* 0x470320F6: add esp, 0x10 */ 4581 _flag_k = FK_ADD; 4582 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470320F9: ret 0xc */ 4583 RECOMP_REGS_OUT(); 4584 } 4585 4586 void sub_47032100(void) { 4587 int _fpu_cmp = 0; 4588 uint32_t _cf = 0; 4589 int _df = 1; 4590 uint32_t _flag_k = FK_NONE; 4591 uint32_t _flag_a = 0, _flag_b = 0; 4592 uint32_t _itail_tgt = 0; 4593 RECOMP_REGS_LOCALS 4594 RECOMP_ENTER(0x47032100u); 4595 4596 L_47032100: 4597 PUSH32(esp, 0xFFFFFFFFu); /* 0x47032100: push -1 */ 4598 PUSH32(esp, 0x470A5728u); /* 0x47032102: push 0x470a5728 */ 4599 eax = MEM32(FS_BASE + (0)); /* 0x47032107: mov eax, dword ptr fs:[0] */ 4600 PUSH32(esp, eax); /* 0x4703210D: push eax */ 4601 MEM32(FS_BASE + (0)) = esp; /* 0x4703210E: mov dword ptr fs:[0], esp */ 4602 PUSH32(esp, ecx); /* 0x47032115: push ecx */ 4603 PUSH32(esp, ebx); /* 0x47032116: push ebx */ 4604 PUSH32(esp, esi); /* 0x47032117: push esi */ 4605 PUSH32(esp, edi); /* 0x47032118: push edi */ 4606 PUSH32(esp, 0xFFFFFFFFu); /* 0x47032119: push -1 */ 4607 esi = ecx; /* 0x4703211B: mov esi, ecx */ 4608 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703211D: push -1 */ 4609 MEM32(esp + 0x14) = esi; /* 0x4703211F: mov dword ptr [esp + 0x14], esi */ 4610 RECOMP_ICALL(0x47014F50u); /* 0x47032123: call 0x47014f50 */ /* not lifted */ 4611 RECOMP_FLAGS_IN(); 4612 eax = MEM32(esp + 0x28); /* 0x47032128: mov eax, dword ptr [esp + 0x28] */ 4613 ecx = MEM32(esp + 0x20); /* 0x4703212C: mov ecx, dword ptr [esp + 0x20] */ 4614 PUSH32(esp, eax); /* 0x47032130: push eax */ 4615 PUSH32(esp, ecx); /* 0x47032131: push ecx */ 4616 MEM32(esp + 0x20) = 0; /* 0x47032132: mov dword ptr [esp + 0x20], 0 */ 4617 MEM32(esi) = 0x470AC520u; /* 0x4703213A: mov dword ptr [esi], 0x470ac520 */ 4618 RECOMP_ICALL(MEM32(0x470AC450)); /* 0x47032140: call dword ptr [0x470ac450] */ 4619 RECOMP_FLAGS_IN(); 4620 /* test eax, eax */ /* 0x47032146: test eax, eax */ 4621 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4622 _cf = 0; 4623 _flag_k = FK_TEST; 4624 if (TEST_NZ(_flag_a, _flag_b)) goto L_470321CE; /* 0x47032148: jne 0x470321ce */ 4625 L_4703214E: 4626 RECOMP_ICALL(MEM32(0x470AC4A4)); /* 0x4703214E: call dword ptr [0x470ac4a4] */ 4627 RECOMP_FLAGS_IN(); 4628 edi = MEM32(0x470AC3C8); /* 0x47032154: mov edi, dword ptr [0x470ac3c8] */ 4629 ebx = eax; /* 0x4703215A: mov ebx, eax */ 4630 RECOMP_ICALL(edi); /* 0x4703215C: call edi */ 4631 RECOMP_FLAGS_IN(); 4632 MEM32(eax) = ebx; /* 0x4703215E: mov dword ptr [eax], ebx */ 4633 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47032160: call dword ptr [0x470ac150] */ 4634 RECOMP_FLAGS_IN(); 4635 ebx = eax; /* 0x47032166: mov ebx, eax */ 4636 RECOMP_ICALL(edi); /* 0x47032168: call edi */ 4637 RECOMP_FLAGS_IN(); 4638 eax = MEM32(eax); /* 0x4703216A: mov eax, dword ptr [eax] */ 4639 /* test eax, eax */ /* 0x4703216C: test eax, eax */ 4640 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4641 _cf = 0; 4642 _flag_k = FK_TEST; 4643 if (TEST_Z(_flag_a, _flag_b)) goto L_47032172; /* 0x4703216E: je 0x47032172 */ 4644 L_47032170: 4645 ebx = eax; /* 0x47032170: mov ebx, eax */ 4646 L_47032172: 4647 RECOMP_ICALL(0x47039020u); /* 0x47032172: call 0x47039020 */ /* not lifted */ 4648 RECOMP_FLAGS_IN(); 4649 edi = eax; /* 0x47032177: mov edi, eax */ 4650 ecx = edi; /* 0x47032179: mov ecx, edi */ 4651 RECOMP_ICALL(0x4703B210u); /* 0x4703217B: call 0x4703b210 */ /* not lifted */ 4652 RECOMP_FLAGS_IN(); 4653 PUSH32(esp, eax); /* 0x47032180: push eax */ 4654 ecx = edi; /* 0x47032181: mov ecx, edi */ 4655 RECOMP_ICALL(0x4703B240u); /* 0x47032183: call 0x4703b240 */ /* not lifted */ 4656 RECOMP_FLAGS_IN(); 4657 PUSH32(esp, eax); /* 0x47032188: push eax */ 4658 ecx = edi; /* 0x47032189: mov ecx, edi */ 4659 RECOMP_ICALL(0x4703B080u); /* 0x4703218B: call 0x4703b080 */ /* not lifted */ 4660 RECOMP_FLAGS_IN(); 4661 PUSH32(esp, eax); /* 0x47032190: push eax */ 4662 PUSH32(esp, ebx); /* 0x47032191: push ebx */ 4663 PUSH32(esp, 0xFFFFFFFFu); /* 0x47032192: push -1 */ 4664 PUSH32(esp, 0x1ACu); /* 0x47032194: push 0x1ac */ 4665 PUSH32(esp, 0x47106AECu); /* 0x47032199: push 0x47106aec */ 4666 ecx = edi; /* 0x4703219E: mov ecx, edi */ 4667 RECOMP_ICALL(0x4703A340u); /* 0x470321A0: call 0x4703a340 */ /* not lifted */ 4668 RECOMP_FLAGS_IN(); 4669 PUSH32(esp, 0x47106B58u); /* 0x470321A5: push 0x47106b58 */ 4670 PUSH32(esp, 0x80u); /* 0x470321AA: push 0x80 */ 4671 PUSH32(esp, edi); /* 0x470321AF: push edi */ 4672 RECOMP_ICALL(0x47039830u); /* 0x470321B0: call 0x47039830 */ /* not lifted */ 4673 RECOMP_FLAGS_IN(); 4674 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4675 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4676 esp = esp + 0xCu; /* 0x470321B5: add esp, 0xc */ 4677 _flag_k = FK_ADD; 4678 L_470321B8: 4679 ecx = MEM32(esp + 0x10); /* 0x470321B8: mov ecx, dword ptr [esp + 0x10] */ 4680 edi = POP32_VAL(esp); /* 0x470321BC: pop edi */ 4681 eax = esi; /* 0x470321BD: mov eax, esi */ 4682 esi = POP32_VAL(esp); /* 0x470321BF: pop esi */ 4683 ebx = POP32_VAL(esp); /* 0x470321C0: pop ebx */ 4684 MEM32(FS_BASE + (0)) = ecx; /* 0x470321C1: mov dword ptr fs:[0], ecx */ 4685 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4686 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4687 esp = esp + 0x10u; /* 0x470321C8: add esp, 0x10 */ 4688 _flag_k = FK_ADD; 4689 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470321CB: ret 0xc */ 4690 L_470321CE: 4691 edi = MEM32(esp + 0x24); /* 0x470321CE: mov edi, dword ptr [esp + 0x24] */ 4692 SET_LO16(ebx, MEM16(eax + 0x8)); /* 0x470321D2: mov bx, word ptr [eax + 8] */ 4693 PUSH32(esp, 0x10u); /* 0x470321D6: push 0x10 */ 4694 PUSH32(esp, 2); /* 0x470321D8: push 2 */ 4695 ecx = esi; /* 0x470321DA: mov ecx, esi */ 4696 RECOMP_ICALL(0x47014F30u); /* 0x470321DC: call 0x47014f30 */ /* not lifted */ 4697 RECOMP_FLAGS_IN(); 4698 eax = esi + 0xC; /* 0x470321E1: lea eax, [esi + 0xc] */ 4699 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4700 edx = 0; /* 0x470321E4: xor edx, edx */ 4701 _cf = 0; 4702 _flag_k = FK_TEST; 4703 ecx = eax; /* 0x470321E6: mov ecx, eax */ 4704 MEM32(ecx) = edx; /* 0x470321E8: mov dword ptr [ecx], edx */ 4705 MEM32(ecx + 0x4) = edx; /* 0x470321EA: mov dword ptr [ecx + 4], edx */ 4706 MEM32(ecx + 0x8) = edx; /* 0x470321ED: mov dword ptr [ecx + 8], edx */ 4707 MEM32(ecx + 0xC) = edx; /* 0x470321F0: mov dword ptr [ecx + 0xc], edx */ 4708 edx = esi + 0x10; /* 0x470321F3: lea edx, [esi + 0x10] */ 4709 MEM16(eax) = (uint16_t)(2); /* 0x470321F6: mov word ptr [eax], 2 */ 4710 MEM16(esi + 0xE) = (uint16_t)(LO16(ebx)); /* 0x470321FB: mov word ptr [esi + 0xe], bx */ 4711 MEM32(edx) = edi; /* 0x470321FF: mov dword ptr [edx], edi */ 4712 RECOMP_BACKEDGE(); 4713 goto L_470321B8; /* 0x47032201: jmp 0x470321b8 */ 4714 { RECOMP_REGS_OUT(); return; } /* end of function */ 4715 RECOMP_REGS_OUT(); 4716 } 4717 4718 void sub_47032210(void) { 4719 int _fpu_cmp = 0; 4720 uint32_t _cf = 0; 4721 int _df = 1; 4722 uint32_t _flag_k = FK_NONE; 4723 uint32_t _flag_a = 0, _flag_b = 0; 4724 uint32_t _itail_tgt = 0; 4725 RECOMP_REGS_LOCALS 4726 RECOMP_ENTER(0x47032210u); 4727 4728 L_47032210: 4729 edx = MEM32(ecx + 0x10); /* 0x47032210: mov edx, dword ptr [ecx + 0x10] */ 4730 /* test edx, edx */ /* 0x47032213: test edx, edx */ 4731 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 4732 _cf = 0; 4733 _flag_k = FK_TEST; 4734 eax = ecx + 0x10; /* 0x47032215: lea eax, [ecx + 0x10] */ 4735 PUSH32(esp, esi); /* 0x47032218: push esi */ 4736 PUSH32(esp, edi); /* 0x47032219: push edi */ 4737 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703225C; /* 0x4703221A: jne 0x4703225c */ 4738 L_4703221C: 4739 edx = MEM32(esp + 0xC); /* 0x4703221C: mov edx, dword ptr [esp + 0xc] */ 4740 eax = MEM32(esp + 0x10); /* 0x47032220: mov eax, dword ptr [esp + 0x10] */ 4741 ecx = esp + 0x10; /* 0x47032224: lea ecx, [esp + 0x10] */ 4742 PUSH32(esp, ecx); /* 0x47032228: push ecx */ 4743 PUSH32(esp, edx); /* 0x47032229: push edx */ 4744 MEM32(esp + 0x18) = eax; /* 0x4703222A: mov dword ptr [esp + 0x18], eax */ 4745 RECOMP_ICALL(MEM32(0x470AC128)); /* 0x4703222E: call dword ptr [0x470ac128] */ 4746 RECOMP_FLAGS_IN(); 4747 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 4748 _cf = (eax) != 0; 4749 eax = (uint32_t)(-(int32_t)eax); /* 0x47032234: neg eax */ 4750 _flag_k = FK_CMP; 4751 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x47032236: sbb eax, eax */ 4752 eax = _sc ? 0xFFFFFFFFu : 0; 4753 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 4754 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 4755 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 4756 _cf = (eax) != 0; 4757 eax = (uint32_t)(-(int32_t)eax); /* 0x47032238: neg eax */ 4758 _flag_k = FK_CMP; 4759 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4760 eax = eax - 1; /* 0x4703223A: dec eax */ 4761 _flag_k = FK_DEC; 4762 /* cmp eax, 0xFFFFFFFFu */ /* 0x4703223B: cmp eax, -1 */ 4763 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 4764 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4765 _flag_k = FK_CMP; 4766 if (CMP_NE(_flag_a, _flag_b)) goto L_470322E6; /* 0x4703223E: jne 0x470322e6 */ 4767 L_47032244: 4768 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47032244: call dword ptr [0x470ac3c8] */ 4769 RECOMP_FLAGS_IN(); 4770 esi = eax; /* 0x4703224A: mov esi, eax */ 4771 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4703224C: call dword ptr [0x470ac150] */ 4772 RECOMP_FLAGS_IN(); 4773 MEM32(esi) = eax; /* 0x47032252: mov dword ptr [esi], eax */ 4774 edi = POP32_VAL(esp); /* 0x47032254: pop edi */ 4775 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4776 eax = eax | 0xFFFFFFFFu; /* 0x47032255: or eax, 0xffffffff */ 4777 _cf = 0; 4778 _flag_k = FK_TEST; 4779 esi = POP32_VAL(esp); /* 0x47032258: pop esi */ 4780 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47032259: ret 8 */ 4781 L_4703225C: 4782 ecx = MEM32(ecx + 0x4); /* 0x4703225C: mov ecx, dword ptr [ecx + 4] */ 4783 PUSH32(esp, ecx); /* 0x4703225F: push ecx */ 4784 PUSH32(esp, 4); /* 0x47032260: push 4 */ 4785 PUSH32(esp, eax); /* 0x47032262: push eax */ 4786 RECOMP_ICALL(MEM32(0x470AC47C)); /* 0x47032263: call dword ptr [0x470ac47c] */ 4787 RECOMP_FLAGS_IN(); 4788 /* test eax, eax */ /* 0x47032269: test eax, eax */ 4789 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4790 _cf = 0; 4791 _flag_k = FK_TEST; 4792 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703228F; /* 0x4703226B: jne 0x4703228f */ 4793 L_4703226D: 4794 RECOMP_ICALL(MEM32(0x470AC4A4)); /* 0x4703226D: call dword ptr [0x470ac4a4] */ 4795 RECOMP_FLAGS_IN(); 4796 edi = MEM32(0x470AC3C8); /* 0x47032273: mov edi, dword ptr [0x470ac3c8] */ 4797 esi = eax; /* 0x47032279: mov esi, eax */ 4798 RECOMP_ICALL(edi); /* 0x4703227B: call edi */ 4799 RECOMP_FLAGS_IN(); 4800 MEM32(eax) = esi; /* 0x4703227D: mov dword ptr [eax], esi */ 4801 RECOMP_ICALL(edi); /* 0x4703227F: call edi */ 4802 RECOMP_FLAGS_IN(); 4803 edi = POP32_VAL(esp); /* 0x47032281: pop edi */ 4804 MEM32(eax) = 0; /* 0x47032282: mov dword ptr [eax], 0 */ 4805 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4806 eax = eax | 0xFFFFFFFFu; /* 0x47032288: or eax, 0xffffffff */ 4807 _cf = 0; 4808 _flag_k = FK_TEST; 4809 esi = POP32_VAL(esp); /* 0x4703228B: pop esi */ 4810 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4703228C: ret 8 */ 4811 L_4703228F: 4812 edx = MEM32(eax); /* 0x4703228F: mov edx, dword ptr [eax] */ 4813 /* test edx, edx */ /* 0x47032291: test edx, edx */ 4814 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 4815 _cf = 0; 4816 _flag_k = FK_TEST; 4817 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703229D; /* 0x47032293: jne 0x4703229d */ 4818 L_47032295: 4819 edi = POP32_VAL(esp); /* 0x47032295: pop edi */ 4820 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4821 eax = eax | 0xFFFFFFFFu; /* 0x47032296: or eax, 0xffffffff */ 4822 _cf = 0; 4823 _flag_k = FK_TEST; 4824 esi = POP32_VAL(esp); /* 0x47032299: pop esi */ 4825 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4703229A: ret 8 */ 4826 L_4703229D: 4827 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4828 ecx = ecx | 0xFFFFFFFFu; /* 0x4703229D: or ecx, 0xffffffff */ 4829 _cf = 0; 4830 _flag_k = FK_TEST; 4831 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4832 eax = 0; /* 0x470322A0: xor eax, eax */ 4833 _cf = 0; 4834 _flag_k = FK_TEST; 4835 edi = edx; /* 0x470322A2: mov edi, edx */ 4836 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; } /* 0x470322A4: repne scasb al, byte ptr es:[edi] */ 4837 eax = MEM32(esp + 0x10); /* 0x470322A6: mov eax, dword ptr [esp + 0x10] */ 4838 ecx = ~ecx; /* 0x470322AA: not ecx */ 4839 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4840 ecx = ecx - 1; /* 0x470322AC: dec ecx */ 4841 _flag_k = FK_DEC; 4842 /* cmp ecx, eax */ /* 0x470322AD: cmp ecx, eax */ 4843 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4844 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4845 _flag_k = FK_CMP; 4846 if (CMP_B(_flag_a, _flag_b)) goto L_470322C5; /* 0x470322AF: jb 0x470322c5 */ 4847 L_470322B1: 4848 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470322B1: call dword ptr [0x470ac3c8] */ 4849 RECOMP_FLAGS_IN(); 4850 edi = POP32_VAL(esp); /* 0x470322B7: pop edi */ 4851 MEM32(eax) = 0x1Cu; /* 0x470322B8: mov dword ptr [eax], 0x1c */ 4852 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4853 eax = eax | 0xFFFFFFFFu; /* 0x470322BE: or eax, 0xffffffff */ 4854 _cf = 0; 4855 _flag_k = FK_TEST; 4856 esi = POP32_VAL(esp); /* 0x470322C1: pop esi */ 4857 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470322C2: ret 8 */ 4858 L_470322C5: 4859 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4860 ecx = ecx | 0xFFFFFFFFu; /* 0x470322C5: or ecx, 0xffffffff */ 4861 _cf = 0; 4862 _flag_k = FK_TEST; 4863 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4864 eax = 0; /* 0x470322C8: xor eax, eax */ 4865 _cf = 0; 4866 _flag_k = FK_TEST; 4867 edi = edx; /* 0x470322CA: mov edi, edx */ 4868 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; } /* 0x470322CC: repne scasb al, byte ptr es:[edi] */ 4869 ecx = ~ecx; /* 0x470322CE: not ecx */ 4870 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 4871 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4872 edi = edi - ecx; /* 0x470322D0: sub edi, ecx */ 4873 _flag_k = FK_CMP; 4874 eax = ecx; /* 0x470322D2: mov eax, ecx */ 4875 esi = edi; /* 0x470322D4: mov esi, edi */ 4876 edi = MEM32(esp + 0xC); /* 0x470322D6: mov edi, dword ptr [esp + 0xc] */ 4877 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x470322DA: shr ecx, 2 */ 4878 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4879 ecx = ecx >> 2u; /* 0x470322DA: shr ecx, 2 */ 4880 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x470322DD: 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; } 4881 ecx = eax; /* 0x470322DF: mov ecx, eax */ 4882 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 4883 ecx = ecx & 3; /* 0x470322E1: and ecx, 3 */ 4884 _cf = 0; 4885 _flag_k = FK_TEST; 4886 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x470322E4: 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; } 4887 L_470322E6: 4888 edi = POP32_VAL(esp); /* 0x470322E6: pop edi */ 4889 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4890 eax = 0; /* 0x470322E7: xor eax, eax */ 4891 _cf = 0; 4892 _flag_k = FK_TEST; 4893 esi = POP32_VAL(esp); /* 0x470322E9: pop esi */ 4894 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470322EA: ret 8 */ 4895 RECOMP_REGS_OUT(); 4896 } 4897 4898 void sub_470322F0(void) { 4899 int _fpu_cmp = 0; 4900 uint32_t _cf = 0; 4901 int _df = 1; 4902 uint32_t _flag_k = FK_NONE; 4903 uint32_t _flag_a = 0, _flag_b = 0; 4904 uint32_t _itail_tgt = 0; 4905 RECOMP_REGS_LOCALS 4906 RECOMP_ENTER(0x470322F0u); 4907 4908 L_470322F0: 4909 PUSH32(esp, 0x101u); /* 0x470322F0: push 0x101 */ 4910 PUSH32(esp, 0x4710E33Cu); /* 0x470322F5: push 0x4710e33c */ 4911 RECOMP_ICALL(0x47032210u); /* 0x470322FA: call 0x47032210 */ /* not lifted */ 4912 RECOMP_FLAGS_IN(); 4913 /* cmp eax, 0xFFFFFFFFu */ /* 0x470322FF: cmp eax, -1 */ 4914 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 4915 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4916 _flag_k = FK_CMP; 4917 if (CMP_NE(_flag_a, _flag_b)) goto L_47032332; /* 0x47032302: jne 0x47032332 */ 4918 L_47032304: 4919 _flag_a = (uint32_t)((ecx | eax)); _flag_b = (uint32_t)((ecx | eax)); 4920 ecx = ecx | eax; /* 0x47032304: or ecx, eax */ 4921 _cf = 0; 4922 _flag_k = FK_TEST; 4923 PUSH32(esp, esi); /* 0x47032306: push esi */ 4924 PUSH32(esp, edi); /* 0x47032307: push edi */ 4925 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4926 eax = 0; /* 0x47032308: xor eax, eax */ 4927 _cf = 0; 4928 _flag_k = FK_TEST; 4929 edi = 0x47106AE0u; /* 0x4703230A: mov edi, 0x47106ae0 */ 4930 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; } /* 0x4703230F: repne scasb al, byte ptr es:[edi] */ 4931 ecx = ~ecx; /* 0x47032311: not ecx */ 4932 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 4933 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4934 edi = edi - ecx; /* 0x47032313: sub edi, ecx */ 4935 _flag_k = FK_CMP; 4936 eax = ecx; /* 0x47032315: mov eax, ecx */ 4937 esi = edi; /* 0x47032317: mov esi, edi */ 4938 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47032319: shr ecx, 2 */ 4939 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4940 ecx = ecx >> 2u; /* 0x47032319: shr ecx, 2 */ 4941 edi = 0x4710E33Cu; /* 0x4703231C: mov edi, 0x4710e33c */ 4942 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47032321: 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; } 4943 ecx = eax; /* 0x47032323: mov ecx, eax */ 4944 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 4945 ecx = ecx & 3; /* 0x47032325: and ecx, 3 */ 4946 _cf = 0; 4947 _flag_k = FK_TEST; 4948 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47032328: 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; } 4949 edi = POP32_VAL(esp); /* 0x4703232A: pop edi */ 4950 eax = 0x4710E33Cu; /* 0x4703232B: mov eax, 0x4710e33c */ 4951 esi = POP32_VAL(esp); /* 0x47032330: pop esi */ 4952 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47032331: ret */ 4953 L_47032332: 4954 eax = 0x4710E33Cu; /* 0x47032332: mov eax, 0x4710e33c */ 4955 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47032337: ret */ 4956 RECOMP_REGS_OUT(); 4957 } 4958 4959 void sub_47032340(void) { 4960 int _fpu_cmp = 0; 4961 uint32_t _cf = 0; 4962 int _df = 1; 4963 uint32_t _flag_k = FK_NONE; 4964 uint32_t _flag_a = 0, _flag_b = 0; 4965 uint32_t _itail_tgt = 0; 4966 RECOMP_REGS_LOCALS 4967 RECOMP_ENTER(0x47032340u); 4968 4969 L_47032340: 4970 eax = MEM32(esp + 0x8); /* 0x47032340: mov eax, dword ptr [esp + 8] */ 4971 /* test eax, eax */ /* 0x47032344: test eax, eax */ 4972 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4973 _cf = 0; 4974 _flag_k = FK_TEST; 4975 PUSH32(esp, esi); /* 0x47032346: push esi */ 4976 esi = ecx; /* 0x47032347: mov esi, ecx */ 4977 if (TEST_Z(_flag_a, _flag_b)) goto L_4703235E; /* 0x47032349: je 0x4703235e */ 4978 L_4703234B: 4979 eax = MEM32(esp + 0x8); /* 0x4703234B: mov eax, dword ptr [esp + 8] */ 4980 PUSH32(esp, eax); /* 0x4703234F: push eax */ 4981 RECOMP_ICALL(MEM32(0x470AC4C0)); /* 0x47032350: call dword ptr [0x470ac4c0] */ 4982 RECOMP_FLAGS_IN(); 4983 MEM16(esi + 0xE) = (uint16_t)(LO16(eax)); /* 0x47032356: mov word ptr [esi + 0xe], ax */ 4984 esi = POP32_VAL(esp); /* 0x4703235A: pop esi */ 4985 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4703235B: ret 8 */ 4986 L_4703235E: 4987 SET_LO16(ecx, MEM16(esp + 0x8)); /* 0x4703235E: mov cx, word ptr [esp + 8] */ 4988 MEM16(esi + 0xE) = (uint16_t)(LO16(ecx)); /* 0x47032363: mov word ptr [esi + 0xe], cx */ 4989 esi = POP32_VAL(esp); /* 0x47032367: pop esi */ 4990 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47032368: ret 8 */ 4991 RECOMP_REGS_OUT(); 4992 } 4993 4994 void sub_47032370(void) { 4995 int _fpu_cmp = 0; 4996 uint32_t _cf = 0; 4997 int _df = 1; 4998 uint32_t _flag_k = FK_NONE; 4999 uint32_t _flag_a = 0, _flag_b = 0; 5000 uint32_t _itail_tgt = 0; 5001 RECOMP_REGS_LOCALS 5002 RECOMP_ENTER(0x47032370u); 5003 5004 L_47032370: 5005 ecx = 0x4710E445u; /* 0x47032370: mov ecx, 0x4710e445 */ 5006 RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47032375: call dword ptr [0x470ac1c8] */ 5007 RECOMP_FLAGS_IN(); 5008 PUSH32(esp, 0x47032390u); /* 0x4703237B: push 0x47032390 */ 5009 RECOMP_ICALL(0x470A32D9u); /* 0x47032380: call 0x470a32d9 */ /* not lifted */ 5010 RECOMP_FLAGS_IN(); 5011 ecx = POP32_VAL(esp); /* 0x47032385: pop ecx */ 5012 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47032386: ret */ 5013 RECOMP_REGS_OUT(); 5014 } 5015 5016 void sub_47032390(void) { 5017 int _fpu_cmp = 0; 5018 uint32_t _cf = 0; 5019 int _df = 1; 5020 uint32_t _flag_k = FK_NONE; 5021 uint32_t _flag_a = 0, _flag_b = 0; 5022 uint32_t _itail_tgt = 0; 5023 RECOMP_REGS_LOCALS 5024 RECOMP_ENTER(0x47032390u); 5025 5026 L_47032390: 5027 ecx = 0x4710E445u; /* 0x47032390: mov ecx, 0x4710e445 */ 5028 L_47032395: 5029 { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; } 5030 { RECOMP_REGS_OUT(); return; } /* end of function */ 5031 _ljump: 5032 switch (_itail_tgt) { 5033 case 0x47032390u: goto L_47032390; 5034 case 0x47032395u: goto L_47032395; 5035 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5036 } 5037 RECOMP_REGS_OUT(); 5038 } 5039 5040 void sub_470323A0(void) { 5041 int _fpu_cmp = 0; 5042 uint32_t _cf = 0; 5043 int _df = 1; 5044 uint32_t _flag_k = FK_NONE; 5045 uint32_t _flag_a = 0, _flag_b = 0; 5046 uint32_t _itail_tgt = 0; 5047 RECOMP_REGS_LOCALS 5048 RECOMP_ENTER(0x470323A0u); 5049 5050 L_470323A0: 5051 ecx = 0x4710E444u; /* 0x470323A0: mov ecx, 0x4710e444 */ 5052 RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x470323A5: call dword ptr [0x470ac1c4] */ 5053 RECOMP_FLAGS_IN(); 5054 PUSH32(esp, 0x470323C0u); /* 0x470323AB: push 0x470323c0 */ 5055 RECOMP_ICALL(0x470A32D9u); /* 0x470323B0: call 0x470a32d9 */ /* not lifted */ 5056 RECOMP_FLAGS_IN(); 5057 ecx = POP32_VAL(esp); /* 0x470323B5: pop ecx */ 5058 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470323B6: ret */ 5059 RECOMP_REGS_OUT(); 5060 } 5061 5062 void sub_470323C0(void) { 5063 int _fpu_cmp = 0; 5064 uint32_t _cf = 0; 5065 int _df = 1; 5066 uint32_t _flag_k = FK_NONE; 5067 uint32_t _flag_a = 0, _flag_b = 0; 5068 uint32_t _itail_tgt = 0; 5069 RECOMP_REGS_LOCALS 5070 RECOMP_ENTER(0x470323C0u); 5071 5072 L_470323C0: 5073 ecx = 0x4710E444u; /* 0x470323C0: mov ecx, 0x4710e444 */ 5074 L_470323C5: 5075 { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; } 5076 { RECOMP_REGS_OUT(); return; } /* end of function */ 5077 _ljump: 5078 switch (_itail_tgt) { 5079 case 0x470323C0u: goto L_470323C0; 5080 case 0x470323C5u: goto L_470323C5; 5081 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5082 } 5083 RECOMP_REGS_OUT(); 5084 } 5085 5086 void sub_470323D0(void) { 5087 int _fpu_cmp = 0; 5088 uint32_t _cf = 0; 5089 int _df = 1; 5090 uint32_t _flag_k = FK_NONE; 5091 uint32_t _flag_a = 0, _flag_b = 0; 5092 uint32_t _itail_tgt = 0; 5093 RECOMP_REGS_LOCALS 5094 RECOMP_ENTER(0x470323D0u); 5095 5096 L_470323D0: 5097 MEM32(0x4710E440) = 0x47106B78u; /* 0x470323D0: mov dword ptr [0x4710e440], 0x47106b78 */ 5098 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470323DA: ret */ 5099 RECOMP_REGS_OUT(); 5100 } 5101 5102 void sub_470323E0(void) { 5103 int _fpu_cmp = 0; 5104 uint32_t _cf = 0; 5105 int _df = 1; 5106 uint32_t _flag_k = FK_NONE; 5107 uint32_t _flag_a = 0, _flag_b = 0; 5108 uint32_t _itail_tgt = 0; 5109 RECOMP_REGS_LOCALS 5110 RECOMP_ENTER(0x470323E0u); 5111 5112 L_470323E0: 5113 eax = ecx; /* 0x470323E0: mov eax, ecx */ 5114 MEM32(eax) = 0xFFFFFFFFu; /* 0x470323E2: mov dword ptr [eax], 0xffffffff */ 5115 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470323E8: ret */ 5116 RECOMP_REGS_OUT(); 5117 } 5118 5119 void sub_470323F0(void) { 5120 int _fpu_cmp = 0; 5121 uint32_t _cf = 0; 5122 int _df = 1; 5123 uint32_t _flag_k = FK_NONE; 5124 uint32_t _flag_a = 0, _flag_b = 0; 5125 uint32_t _itail_tgt = 0; 5126 RECOMP_REGS_LOCALS 5127 RECOMP_ENTER(0x470323F0u); 5128 5129 L_470323F0: 5130 PUSH32(esp, ecx); /* 0x470323F0: push ecx */ 5131 PUSH32(esp, ebx); /* 0x470323F1: push ebx */ 5132 PUSH32(esp, ebp); /* 0x470323F2: push ebp */ 5133 PUSH32(esp, esi); /* 0x470323F3: push esi */ 5134 PUSH32(esp, edi); /* 0x470323F4: push edi */ 5135 edi = MEM32(0x470AC150); /* 0x470323F5: mov edi, dword ptr [0x470ac150] */ 5136 ebp = ecx; /* 0x470323FB: mov ebp, ecx */ 5137 RECOMP_ICALL(edi); /* 0x470323FD: call edi */ 5138 RECOMP_FLAGS_IN(); 5139 ebx = MEM32(0x470AC3C8); /* 0x470323FF: mov ebx, dword ptr [0x470ac3c8] */ 5140 esi = eax; /* 0x47032405: mov esi, eax */ 5141 RECOMP_ICALL(ebx); /* 0x47032407: call ebx */ 5142 RECOMP_FLAGS_IN(); 5143 eax = MEM32(eax); /* 0x47032409: mov eax, dword ptr [eax] */ 5144 /* test eax, eax */ /* 0x4703240B: test eax, eax */ 5145 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5146 _cf = 0; 5147 _flag_k = FK_TEST; 5148 MEM32(esp + 0x10) = esi; /* 0x4703240D: mov dword ptr [esp + 0x10], esi */ 5149 if (TEST_Z(_flag_a, _flag_b)) goto L_47032417; /* 0x47032411: je 0x47032417 */ 5150 L_47032413: 5151 MEM32(esp + 0x10) = eax; /* 0x47032413: mov dword ptr [esp + 0x10], eax */ 5152 L_47032417: 5153 RECOMP_ICALL(0x47039020u); /* 0x47032417: call 0x47039020 */ /* not lifted */ 5154 RECOMP_FLAGS_IN(); 5155 esi = eax; /* 0x4703241C: mov esi, eax */ 5156 ecx = esi; /* 0x4703241E: mov ecx, esi */ 5157 RECOMP_ICALL(0x4703B210u); /* 0x47032420: call 0x4703b210 */ /* not lifted */ 5158 RECOMP_FLAGS_IN(); 5159 PUSH32(esp, eax); /* 0x47032425: push eax */ 5160 ecx = esi; /* 0x47032426: mov ecx, esi */ 5161 RECOMP_ICALL(0x4703B240u); /* 0x47032428: call 0x4703b240 */ /* not lifted */ 5162 RECOMP_FLAGS_IN(); 5163 PUSH32(esp, eax); /* 0x4703242D: push eax */ 5164 ecx = esi; /* 0x4703242E: mov ecx, esi */ 5165 RECOMP_ICALL(0x4703B080u); /* 0x47032430: call 0x4703b080 */ /* not lifted */ 5166 RECOMP_FLAGS_IN(); 5167 PUSH32(esp, eax); /* 0x47032435: push eax */ 5168 eax = MEM32(esp + 0x1C); /* 0x47032436: mov eax, dword ptr [esp + 0x1c] */ 5169 PUSH32(esp, eax); /* 0x4703243A: push eax */ 5170 PUSH32(esp, 0); /* 0x4703243B: push 0 */ 5171 PUSH32(esp, 0x1Du); /* 0x4703243D: push 0x1d */ 5172 PUSH32(esp, 0x47106BC8u); /* 0x4703243F: push 0x47106bc8 */ 5173 ecx = esi; /* 0x47032444: mov ecx, esi */ 5174 RECOMP_ICALL(0x4703A340u); /* 0x47032446: call 0x4703a340 */ /* not lifted */ 5175 RECOMP_FLAGS_IN(); 5176 PUSH32(esp, ebp); /* 0x4703244B: push ebp */ 5177 PUSH32(esp, 0x471052CCu); /* 0x4703244C: push 0x471052cc */ 5178 PUSH32(esp, 4); /* 0x47032451: push 4 */ 5179 PUSH32(esp, esi); /* 0x47032453: push esi */ 5180 RECOMP_ICALL(0x47039830u); /* 0x47032454: call 0x47039830 */ /* not lifted */ 5181 RECOMP_FLAGS_IN(); 5182 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5183 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5184 esp = esp + 0x10u; /* 0x47032459: add esp, 0x10 */ 5185 _flag_k = FK_ADD; 5186 RECOMP_ICALL(edi); /* 0x4703245C: call edi */ 5187 RECOMP_FLAGS_IN(); 5188 esi = eax; /* 0x4703245E: mov esi, eax */ 5189 RECOMP_ICALL(ebx); /* 0x47032460: call ebx */ 5190 RECOMP_FLAGS_IN(); 5191 eax = MEM32(eax); /* 0x47032462: mov eax, dword ptr [eax] */ 5192 /* test eax, eax */ /* 0x47032464: test eax, eax */ 5193 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5194 _cf = 0; 5195 _flag_k = FK_TEST; 5196 MEM32(esp + 0x10) = esi; /* 0x47032466: mov dword ptr [esp + 0x10], esi */ 5197 if (TEST_Z(_flag_a, _flag_b)) goto L_47032470; /* 0x4703246A: je 0x47032470 */ 5198 L_4703246C: 5199 MEM32(esp + 0x10) = eax; /* 0x4703246C: mov dword ptr [esp + 0x10], eax */ 5200 L_47032470: 5201 RECOMP_ICALL(0x47039020u); /* 0x47032470: call 0x47039020 */ /* not lifted */ 5202 RECOMP_FLAGS_IN(); 5203 esi = eax; /* 0x47032475: mov esi, eax */ 5204 ecx = esi; /* 0x47032477: mov ecx, esi */ 5205 RECOMP_ICALL(0x4703B210u); /* 0x47032479: call 0x4703b210 */ /* not lifted */ 5206 RECOMP_FLAGS_IN(); 5207 PUSH32(esp, eax); /* 0x4703247E: push eax */ 5208 ecx = esi; /* 0x4703247F: mov ecx, esi */ 5209 RECOMP_ICALL(0x4703B240u); /* 0x47032481: call 0x4703b240 */ /* not lifted */ 5210 RECOMP_FLAGS_IN(); 5211 PUSH32(esp, eax); /* 0x47032486: push eax */ 5212 ecx = esi; /* 0x47032487: mov ecx, esi */ 5213 RECOMP_ICALL(0x4703B080u); /* 0x47032489: call 0x4703b080 */ /* not lifted */ 5214 RECOMP_FLAGS_IN(); 5215 ecx = MEM32(esp + 0x18); /* 0x4703248E: mov ecx, dword ptr [esp + 0x18] */ 5216 PUSH32(esp, eax); /* 0x47032492: push eax */ 5217 PUSH32(esp, ecx); /* 0x47032493: push ecx */ 5218 PUSH32(esp, 0); /* 0x47032494: push 0 */ 5219 PUSH32(esp, 0x1Eu); /* 0x47032496: push 0x1e */ 5220 PUSH32(esp, 0x47106BC8u); /* 0x47032498: push 0x47106bc8 */ 5221 ecx = esi; /* 0x4703249D: mov ecx, esi */ 5222 RECOMP_ICALL(0x4703A340u); /* 0x4703249F: call 0x4703a340 */ /* not lifted */ 5223 RECOMP_FLAGS_IN(); 5224 edx = MEM32(ebp); /* 0x470324A4: mov edx, dword ptr [ebp] */ 5225 PUSH32(esp, edx); /* 0x470324A7: push edx */ 5226 PUSH32(esp, 0x47106BB8u); /* 0x470324A8: push 0x47106bb8 */ 5227 PUSH32(esp, 4); /* 0x470324AD: push 4 */ 5228 PUSH32(esp, esi); /* 0x470324AF: push esi */ 5229 RECOMP_ICALL(0x47039830u); /* 0x470324B0: call 0x47039830 */ /* not lifted */ 5230 RECOMP_FLAGS_IN(); 5231 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5232 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5233 esp = esp + 0x10u; /* 0x470324B5: add esp, 0x10 */ 5234 _flag_k = FK_ADD; 5235 RECOMP_ICALL(edi); /* 0x470324B8: call edi */ 5236 RECOMP_FLAGS_IN(); 5237 ebp = eax; /* 0x470324BA: mov ebp, eax */ 5238 RECOMP_ICALL(ebx); /* 0x470324BC: call ebx */ 5239 RECOMP_FLAGS_IN(); 5240 eax = MEM32(eax); /* 0x470324BE: mov eax, dword ptr [eax] */ 5241 /* test eax, eax */ /* 0x470324C0: test eax, eax */ 5242 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5243 _cf = 0; 5244 _flag_k = FK_TEST; 5245 if (TEST_Z(_flag_a, _flag_b)) goto L_470324C6; /* 0x470324C2: je 0x470324c6 */ 5246 L_470324C4: 5247 ebp = eax; /* 0x470324C4: mov ebp, eax */ 5248 L_470324C6: 5249 RECOMP_ICALL(0x47039020u); /* 0x470324C6: call 0x47039020 */ /* not lifted */ 5250 RECOMP_FLAGS_IN(); 5251 esi = eax; /* 0x470324CB: mov esi, eax */ 5252 ecx = esi; /* 0x470324CD: mov ecx, esi */ 5253 RECOMP_ICALL(0x4703B210u); /* 0x470324CF: call 0x4703b210 */ /* not lifted */ 5254 RECOMP_FLAGS_IN(); 5255 PUSH32(esp, eax); /* 0x470324D4: push eax */ 5256 ecx = esi; /* 0x470324D5: mov ecx, esi */ 5257 RECOMP_ICALL(0x4703B240u); /* 0x470324D7: call 0x4703b240 */ /* not lifted */ 5258 RECOMP_FLAGS_IN(); 5259 PUSH32(esp, eax); /* 0x470324DC: push eax */ 5260 ecx = esi; /* 0x470324DD: mov ecx, esi */ 5261 RECOMP_ICALL(0x4703B080u); /* 0x470324DF: call 0x4703b080 */ /* not lifted */ 5262 RECOMP_FLAGS_IN(); 5263 PUSH32(esp, eax); /* 0x470324E4: push eax */ 5264 PUSH32(esp, ebp); /* 0x470324E5: push ebp */ 5265 PUSH32(esp, 0); /* 0x470324E6: push 0 */ 5266 PUSH32(esp, 0x1Fu); /* 0x470324E8: push 0x1f */ 5267 PUSH32(esp, 0x47106BC8u); /* 0x470324EA: push 0x47106bc8 */ 5268 ecx = esi; /* 0x470324EF: mov ecx, esi */ 5269 RECOMP_ICALL(0x4703A340u); /* 0x470324F1: call 0x4703a340 */ /* not lifted */ 5270 RECOMP_FLAGS_IN(); 5271 eax = MEM32(0x4710E448); /* 0x470324F6: mov eax, dword ptr [0x4710e448] */ 5272 PUSH32(esp, eax); /* 0x470324FB: push eax */ 5273 PUSH32(esp, 0x47106BACu); /* 0x470324FC: push 0x47106bac */ 5274 PUSH32(esp, 4); /* 0x47032501: push 4 */ 5275 PUSH32(esp, esi); /* 0x47032503: push esi */ 5276 RECOMP_ICALL(0x47039830u); /* 0x47032504: call 0x47039830 */ /* not lifted */ 5277 RECOMP_FLAGS_IN(); 5278 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5279 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5280 esp = esp + 0x10u; /* 0x47032509: add esp, 0x10 */ 5281 _flag_k = FK_ADD; 5282 RECOMP_ICALL(edi); /* 0x4703250C: call edi */ 5283 RECOMP_FLAGS_IN(); 5284 esi = eax; /* 0x4703250E: mov esi, eax */ 5285 RECOMP_ICALL(ebx); /* 0x47032510: call ebx */ 5286 RECOMP_FLAGS_IN(); 5287 eax = MEM32(eax); /* 0x47032512: mov eax, dword ptr [eax] */ 5288 /* test eax, eax */ /* 0x47032514: test eax, eax */ 5289 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5290 _cf = 0; 5291 _flag_k = FK_TEST; 5292 edi = esi; /* 0x47032516: mov edi, esi */ 5293 if (TEST_Z(_flag_a, _flag_b)) goto L_4703251C; /* 0x47032518: je 0x4703251c */ 5294 L_4703251A: 5295 edi = eax; /* 0x4703251A: mov edi, eax */ 5296 L_4703251C: 5297 RECOMP_ICALL(0x47039020u); /* 0x4703251C: call 0x47039020 */ /* not lifted */ 5298 RECOMP_FLAGS_IN(); 5299 esi = eax; /* 0x47032521: mov esi, eax */ 5300 ecx = esi; /* 0x47032523: mov ecx, esi */ 5301 RECOMP_ICALL(0x4703B210u); /* 0x47032525: call 0x4703b210 */ /* not lifted */ 5302 RECOMP_FLAGS_IN(); 5303 PUSH32(esp, eax); /* 0x4703252A: push eax */ 5304 ecx = esi; /* 0x4703252B: mov ecx, esi */ 5305 RECOMP_ICALL(0x4703B240u); /* 0x4703252D: call 0x4703b240 */ /* not lifted */ 5306 RECOMP_FLAGS_IN(); 5307 PUSH32(esp, eax); /* 0x47032532: push eax */ 5308 ecx = esi; /* 0x47032533: mov ecx, esi */ 5309 RECOMP_ICALL(0x4703B080u); /* 0x47032535: call 0x4703b080 */ /* not lifted */ 5310 RECOMP_FLAGS_IN(); 5311 PUSH32(esp, eax); /* 0x4703253A: push eax */ 5312 PUSH32(esp, edi); /* 0x4703253B: push edi */ 5313 PUSH32(esp, 0); /* 0x4703253C: push 0 */ 5314 PUSH32(esp, 0x20u); /* 0x4703253E: push 0x20 */ 5315 PUSH32(esp, 0x47106BC8u); /* 0x47032540: push 0x47106bc8 */ 5316 ecx = esi; /* 0x47032545: mov ecx, esi */ 5317 RECOMP_ICALL(0x4703A340u); /* 0x47032547: call 0x4703a340 */ /* not lifted */ 5318 RECOMP_FLAGS_IN(); 5319 PUSH32(esp, 0x4710529Cu); /* 0x4703254C: push 0x4710529c */ 5320 PUSH32(esp, 4); /* 0x47032551: push 4 */ 5321 PUSH32(esp, esi); /* 0x47032553: push esi */ 5322 RECOMP_ICALL(0x47039830u); /* 0x47032554: call 0x47039830 */ /* not lifted */ 5323 RECOMP_FLAGS_IN(); 5324 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5325 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5326 esp = esp + 0xCu; /* 0x47032559: add esp, 0xc */ 5327 _flag_k = FK_ADD; 5328 edi = POP32_VAL(esp); /* 0x4703255C: pop edi */ 5329 esi = POP32_VAL(esp); /* 0x4703255D: pop esi */ 5330 ebp = POP32_VAL(esp); /* 0x4703255E: pop ebp */ 5331 ebx = POP32_VAL(esp); /* 0x4703255F: pop ebx */ 5332 ecx = POP32_VAL(esp); /* 0x47032560: pop ecx */ 5333 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47032561: ret */ 5334 RECOMP_REGS_OUT(); 5335 } 5336 5337 void sub_47032570(void) { 5338 int _fpu_cmp = 0; 5339 uint32_t _cf = 0; 5340 int _df = 1; 5341 uint32_t _flag_k = FK_NONE; 5342 uint32_t _flag_a = 0, _flag_b = 0; 5343 uint32_t _itail_tgt = 0; 5344 RECOMP_REGS_LOCALS 5345 RECOMP_ENTER(0x47032570u); 5346 5347 L_47032570: 5348 eax = MEM32(0x4710E448); /* 0x47032570: mov eax, dword ptr [0x4710e448] */ 5349 /* test eax, eax */ /* 0x47032575: test eax, eax */ 5350 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5351 _cf = 0; 5352 _flag_k = FK_TEST; 5353 if (TEST_NZ(_flag_a, _flag_b)) goto L_47032584; /* 0x47032577: jne 0x47032584 */ 5354 L_47032579: 5355 RECOMP_ICALL(MEM32(0x470AC0E8)); /* 0x47032579: call dword ptr [0x470ac0e8] */ 5356 RECOMP_FLAGS_IN(); 5357 MEM32(0x4710E448) = eax; /* 0x4703257F: mov dword ptr [0x4710e448], eax */ 5358 L_47032584: 5359 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5360 eax = 0; /* 0x47032584: xor eax, eax */ 5361 _cf = 0; 5362 _flag_k = FK_TEST; 5363 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47032586: ret 4 */ 5364 RECOMP_REGS_OUT(); 5365 } 5366 5367 void sub_47032590(void) { 5368 int _fpu_cmp = 0; 5369 uint32_t _cf = 0; 5370 int _df = 1; 5371 uint32_t _flag_k = FK_NONE; 5372 uint32_t _flag_a = 0, _flag_b = 0; 5373 uint32_t _itail_tgt = 0; 5374 RECOMP_REGS_LOCALS 5375 RECOMP_ENTER(0x47032590u); 5376 5377 L_47032590: 5378 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47032590: call dword ptr [0x470ac3c8] */ 5379 RECOMP_FLAGS_IN(); 5380 MEM32(eax) = 0x28u; /* 0x47032596: mov dword ptr [eax], 0x28 */ 5381 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5382 eax = eax | 0xFFFFFFFFu; /* 0x4703259C: or eax, 0xffffffff */ 5383 _cf = 0; 5384 _flag_k = FK_TEST; 5385 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703259F: ret 4 */ 5386 RECOMP_REGS_OUT(); 5387 } 5388 5389 void sub_470325B0(void) { 5390 int _fpu_cmp = 0; 5391 uint32_t _cf = 0; 5392 int _df = 1; 5393 uint32_t _flag_k = FK_NONE; 5394 uint32_t _flag_a = 0, _flag_b = 0; 5395 uint32_t _itail_tgt = 0; 5396 RECOMP_REGS_LOCALS 5397 RECOMP_ENTER(0x470325B0u); 5398 5399 L_470325B0: 5400 ecx = 0x4710E451u; /* 0x470325B0: mov ecx, 0x4710e451 */ 5401 RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x470325B5: call dword ptr [0x470ac1c8] */ 5402 RECOMP_FLAGS_IN(); 5403 PUSH32(esp, 0x470325D0u); /* 0x470325BB: push 0x470325d0 */ 5404 RECOMP_ICALL(0x470A32D9u); /* 0x470325C0: call 0x470a32d9 */ /* not lifted */ 5405 RECOMP_FLAGS_IN(); 5406 ecx = POP32_VAL(esp); /* 0x470325C5: pop ecx */ 5407 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470325C6: ret */ 5408 RECOMP_REGS_OUT(); 5409 } 5410 5411 void sub_470325D0(void) { 5412 int _fpu_cmp = 0; 5413 uint32_t _cf = 0; 5414 int _df = 1; 5415 uint32_t _flag_k = FK_NONE; 5416 uint32_t _flag_a = 0, _flag_b = 0; 5417 uint32_t _itail_tgt = 0; 5418 RECOMP_REGS_LOCALS 5419 RECOMP_ENTER(0x470325D0u); 5420 5421 L_470325D0: 5422 ecx = 0x4710E451u; /* 0x470325D0: mov ecx, 0x4710e451 */ 5423 L_470325D5: 5424 { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; } 5425 { RECOMP_REGS_OUT(); return; } /* end of function */ 5426 _ljump: 5427 switch (_itail_tgt) { 5428 case 0x470325D0u: goto L_470325D0; 5429 case 0x470325D5u: goto L_470325D5; 5430 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5431 } 5432 RECOMP_REGS_OUT(); 5433 } 5434 5435 void sub_470325E0(void) { 5436 int _fpu_cmp = 0; 5437 uint32_t _cf = 0; 5438 int _df = 1; 5439 uint32_t _flag_k = FK_NONE; 5440 uint32_t _flag_a = 0, _flag_b = 0; 5441 uint32_t _itail_tgt = 0; 5442 RECOMP_REGS_LOCALS 5443 RECOMP_ENTER(0x470325E0u); 5444 5445 L_470325E0: 5446 ecx = 0x4710E450u; /* 0x470325E0: mov ecx, 0x4710e450 */ 5447 RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x470325E5: call dword ptr [0x470ac1c4] */ 5448 RECOMP_FLAGS_IN(); 5449 PUSH32(esp, 0x47032600u); /* 0x470325EB: push 0x47032600 */ 5450 RECOMP_ICALL(0x470A32D9u); /* 0x470325F0: call 0x470a32d9 */ /* not lifted */ 5451 RECOMP_FLAGS_IN(); 5452 ecx = POP32_VAL(esp); /* 0x470325F5: pop ecx */ 5453 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470325F6: ret */ 5454 RECOMP_REGS_OUT(); 5455 } 5456 5457 void sub_47032600(void) { 5458 int _fpu_cmp = 0; 5459 uint32_t _cf = 0; 5460 int _df = 1; 5461 uint32_t _flag_k = FK_NONE; 5462 uint32_t _flag_a = 0, _flag_b = 0; 5463 uint32_t _itail_tgt = 0; 5464 RECOMP_REGS_LOCALS 5465 RECOMP_ENTER(0x47032600u); 5466 5467 L_47032600: 5468 ecx = 0x4710E450u; /* 0x47032600: mov ecx, 0x4710e450 */ 5469 L_47032605: 5470 { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; } 5471 { RECOMP_REGS_OUT(); return; } /* end of function */ 5472 _ljump: 5473 switch (_itail_tgt) { 5474 case 0x47032600u: goto L_47032600; 5475 case 0x47032605u: goto L_47032605; 5476 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5477 } 5478 RECOMP_REGS_OUT(); 5479 } 5480 5481 void sub_47032610(void) { 5482 int _fpu_cmp = 0; 5483 uint32_t _cf = 0; 5484 int _df = 1; 5485 uint32_t _flag_k = FK_NONE; 5486 uint32_t _flag_a = 0, _flag_b = 0; 5487 uint32_t _itail_tgt = 0; 5488 RECOMP_REGS_LOCALS 5489 RECOMP_ENTER(0x47032610u); 5490 5491 L_47032610: 5492 MEM32(0x4710E44C) = 0x47106C00u; /* 0x47032610: mov dword ptr [0x4710e44c], 0x47106c00 */ 5493 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703261A: ret */ 5494 RECOMP_REGS_OUT(); 5495 } 5496 5497 void sub_47032620(void) { 5498 int _fpu_cmp = 0; 5499 uint32_t _cf = 0; 5500 int _df = 1; 5501 uint32_t _flag_k = FK_NONE; 5502 uint32_t _flag_a = 0, _flag_b = 0; 5503 uint32_t _itail_tgt = 0; 5504 RECOMP_REGS_LOCALS 5505 RECOMP_ENTER(0x47032620u); 5506 5507 L_47032620: 5508 ecx = 0x4710E459u; /* 0x47032620: mov ecx, 0x4710e459 */ 5509 RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47032625: call dword ptr [0x470ac1c8] */ 5510 RECOMP_FLAGS_IN(); 5511 PUSH32(esp, 0x47032640u); /* 0x4703262B: push 0x47032640 */ 5512 RECOMP_ICALL(0x470A32D9u); /* 0x47032630: call 0x470a32d9 */ /* not lifted */ 5513 RECOMP_FLAGS_IN(); 5514 ecx = POP32_VAL(esp); /* 0x47032635: pop ecx */ 5515 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47032636: ret */ 5516 RECOMP_REGS_OUT(); 5517 } 5518 5519 void sub_47032640(void) { 5520 int _fpu_cmp = 0; 5521 uint32_t _cf = 0; 5522 int _df = 1; 5523 uint32_t _flag_k = FK_NONE; 5524 uint32_t _flag_a = 0, _flag_b = 0; 5525 uint32_t _itail_tgt = 0; 5526 RECOMP_REGS_LOCALS 5527 RECOMP_ENTER(0x47032640u); 5528 5529 L_47032640: 5530 ecx = 0x4710E459u; /* 0x47032640: mov ecx, 0x4710e459 */ 5531 L_47032645: 5532 { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; } 5533 { RECOMP_REGS_OUT(); return; } /* end of function */ 5534 _ljump: 5535 switch (_itail_tgt) { 5536 case 0x47032640u: goto L_47032640; 5537 case 0x47032645u: goto L_47032645; 5538 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5539 } 5540 RECOMP_REGS_OUT(); 5541 } 5542 5543 void sub_47032650(void) { 5544 int _fpu_cmp = 0; 5545 uint32_t _cf = 0; 5546 int _df = 1; 5547 uint32_t _flag_k = FK_NONE; 5548 uint32_t _flag_a = 0, _flag_b = 0; 5549 uint32_t _itail_tgt = 0; 5550 RECOMP_REGS_LOCALS 5551 RECOMP_ENTER(0x47032650u); 5552 5553 L_47032650: 5554 ecx = 0x4710E458u; /* 0x47032650: mov ecx, 0x4710e458 */ 5555 RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x47032655: call dword ptr [0x470ac1c4] */ 5556 RECOMP_FLAGS_IN(); 5557 PUSH32(esp, 0x47032670u); /* 0x4703265B: push 0x47032670 */ 5558 RECOMP_ICALL(0x470A32D9u); /* 0x47032660: call 0x470a32d9 */ /* not lifted */ 5559 RECOMP_FLAGS_IN(); 5560 ecx = POP32_VAL(esp); /* 0x47032665: pop ecx */ 5561 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47032666: ret */ 5562 RECOMP_REGS_OUT(); 5563 } 5564 5565 void sub_47032670(void) { 5566 int _fpu_cmp = 0; 5567 uint32_t _cf = 0; 5568 int _df = 1; 5569 uint32_t _flag_k = FK_NONE; 5570 uint32_t _flag_a = 0, _flag_b = 0; 5571 uint32_t _itail_tgt = 0; 5572 RECOMP_REGS_LOCALS 5573 RECOMP_ENTER(0x47032670u); 5574 5575 L_47032670: 5576 ecx = 0x4710E458u; /* 0x47032670: mov ecx, 0x4710e458 */ 5577 L_47032675: 5578 { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; } 5579 { RECOMP_REGS_OUT(); return; } /* end of function */ 5580 _ljump: 5581 switch (_itail_tgt) { 5582 case 0x47032670u: goto L_47032670; 5583 case 0x47032675u: goto L_47032675; 5584 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5585 } 5586 RECOMP_REGS_OUT(); 5587 } 5588 5589 void sub_47032680(void) { 5590 int _fpu_cmp = 0; 5591 uint32_t _cf = 0; 5592 int _df = 1; 5593 uint32_t _flag_k = FK_NONE; 5594 uint32_t _flag_a = 0, _flag_b = 0; 5595 uint32_t _itail_tgt = 0; 5596 RECOMP_REGS_LOCALS 5597 RECOMP_ENTER(0x47032680u); 5598 5599 L_47032680: 5600 MEM32(0x4710E454) = 0x47106C34u; /* 0x47032680: mov dword ptr [0x4710e454], 0x47106c34 */ 5601 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703268A: ret */ 5602 RECOMP_REGS_OUT(); 5603 } 5604 5605 void sub_47032690(void) { 5606 int _fpu_cmp = 0; 5607 uint32_t _cf = 0; 5608 int _df = 1; 5609 uint32_t _flag_k = FK_NONE; 5610 uint32_t _flag_a = 0, _flag_b = 0; 5611 uint32_t _itail_tgt = 0; 5612 RECOMP_REGS_LOCALS 5613 RECOMP_ENTER(0x47032690u); 5614 5615 L_47032690: 5616 PUSH32(esp, ecx); /* 0x47032690: push ecx */ 5617 PUSH32(esp, ebx); /* 0x47032691: push ebx */ 5618 PUSH32(esp, ebp); /* 0x47032692: push ebp */ 5619 PUSH32(esp, esi); /* 0x47032693: push esi */ 5620 PUSH32(esp, edi); /* 0x47032694: push edi */ 5621 edi = MEM32(0x470AC150); /* 0x47032695: mov edi, dword ptr [0x470ac150] */ 5622 ebp = ecx; /* 0x4703269B: mov ebp, ecx */ 5623 RECOMP_ICALL(edi); /* 0x4703269D: call edi */ 5624 RECOMP_FLAGS_IN(); 5625 ebx = MEM32(0x470AC3C8); /* 0x4703269F: mov ebx, dword ptr [0x470ac3c8] */ 5626 esi = eax; /* 0x470326A5: mov esi, eax */ 5627 RECOMP_ICALL(ebx); /* 0x470326A7: call ebx */ 5628 RECOMP_FLAGS_IN(); 5629 eax = MEM32(eax); /* 0x470326A9: mov eax, dword ptr [eax] */ 5630 /* test eax, eax */ /* 0x470326AB: test eax, eax */ 5631 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5632 _cf = 0; 5633 _flag_k = FK_TEST; 5634 MEM32(esp + 0x10) = esi; /* 0x470326AD: mov dword ptr [esp + 0x10], esi */ 5635 if (TEST_Z(_flag_a, _flag_b)) goto L_470326B7; /* 0x470326B1: je 0x470326b7 */ 5636 L_470326B3: 5637 MEM32(esp + 0x10) = eax; /* 0x470326B3: mov dword ptr [esp + 0x10], eax */ 5638 L_470326B7: 5639 RECOMP_ICALL(0x47039020u); /* 0x470326B7: call 0x47039020 */ /* not lifted */ 5640 RECOMP_FLAGS_IN(); 5641 esi = eax; /* 0x470326BC: mov esi, eax */ 5642 ecx = esi; /* 0x470326BE: mov ecx, esi */ 5643 RECOMP_ICALL(0x4703B210u); /* 0x470326C0: call 0x4703b210 */ /* not lifted */ 5644 RECOMP_FLAGS_IN(); 5645 PUSH32(esp, eax); /* 0x470326C5: push eax */ 5646 ecx = esi; /* 0x470326C6: mov ecx, esi */ 5647 RECOMP_ICALL(0x4703B240u); /* 0x470326C8: call 0x4703b240 */ /* not lifted */ 5648 RECOMP_FLAGS_IN(); 5649 PUSH32(esp, eax); /* 0x470326CD: push eax */ 5650 ecx = esi; /* 0x470326CE: mov ecx, esi */ 5651 RECOMP_ICALL(0x4703B080u); /* 0x470326D0: call 0x4703b080 */ /* not lifted */ 5652 RECOMP_FLAGS_IN(); 5653 PUSH32(esp, eax); /* 0x470326D5: push eax */ 5654 eax = MEM32(esp + 0x1C); /* 0x470326D6: mov eax, dword ptr [esp + 0x1c] */ 5655 PUSH32(esp, eax); /* 0x470326DA: push eax */ 5656 PUSH32(esp, 0); /* 0x470326DB: push 0 */ 5657 PUSH32(esp, 0x13u); /* 0x470326DD: push 0x13 */ 5658 PUSH32(esp, 0x47106C68u); /* 0x470326DF: push 0x47106c68 */ 5659 ecx = esi; /* 0x470326E4: mov ecx, esi */ 5660 RECOMP_ICALL(0x4703A340u); /* 0x470326E6: call 0x4703a340 */ /* not lifted */ 5661 RECOMP_FLAGS_IN(); 5662 PUSH32(esp, ebp); /* 0x470326EB: push ebp */ 5663 PUSH32(esp, 0x471052CCu); /* 0x470326EC: push 0x471052cc */ 5664 PUSH32(esp, 4); /* 0x470326F1: push 4 */ 5665 PUSH32(esp, esi); /* 0x470326F3: push esi */ 5666 RECOMP_ICALL(0x47039830u); /* 0x470326F4: call 0x47039830 */ /* not lifted */ 5667 RECOMP_FLAGS_IN(); 5668 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5669 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5670 esp = esp + 0x10u; /* 0x470326F9: add esp, 0x10 */ 5671 _flag_k = FK_ADD; 5672 RECOMP_ICALL(edi); /* 0x470326FC: call edi */ 5673 RECOMP_FLAGS_IN(); 5674 esi = eax; /* 0x470326FE: mov esi, eax */ 5675 RECOMP_ICALL(ebx); /* 0x47032700: call ebx */ 5676 RECOMP_FLAGS_IN(); 5677 eax = MEM32(eax); /* 0x47032702: mov eax, dword ptr [eax] */ 5678 /* test eax, eax */ /* 0x47032704: test eax, eax */ 5679 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5680 _cf = 0; 5681 _flag_k = FK_TEST; 5682 MEM32(esp + 0x10) = esi; /* 0x47032706: mov dword ptr [esp + 0x10], esi */ 5683 if (TEST_Z(_flag_a, _flag_b)) goto L_47032710; /* 0x4703270A: je 0x47032710 */ 5684 L_4703270C: 5685 MEM32(esp + 0x10) = eax; /* 0x4703270C: mov dword ptr [esp + 0x10], eax */ 5686 L_47032710: 5687 RECOMP_ICALL(0x47039020u); /* 0x47032710: call 0x47039020 */ /* not lifted */ 5688 RECOMP_FLAGS_IN(); 5689 esi = eax; /* 0x47032715: mov esi, eax */ 5690 ecx = esi; /* 0x47032717: mov ecx, esi */ 5691 RECOMP_ICALL(0x4703B210u); /* 0x47032719: call 0x4703b210 */ /* not lifted */ 5692 RECOMP_FLAGS_IN(); 5693 PUSH32(esp, eax); /* 0x4703271E: push eax */ 5694 ecx = esi; /* 0x4703271F: mov ecx, esi */ 5695 RECOMP_ICALL(0x4703B240u); /* 0x47032721: call 0x4703b240 */ /* not lifted */ 5696 RECOMP_FLAGS_IN(); 5697 PUSH32(esp, eax); /* 0x47032726: push eax */ 5698 ecx = esi; /* 0x47032727: mov ecx, esi */ 5699 RECOMP_ICALL(0x4703B080u); /* 0x47032729: call 0x4703b080 */ /* not lifted */ 5700 RECOMP_FLAGS_IN(); 5701 ecx = MEM32(esp + 0x18); /* 0x4703272E: mov ecx, dword ptr [esp + 0x18] */ 5702 PUSH32(esp, eax); /* 0x47032732: push eax */ 5703 PUSH32(esp, ecx); /* 0x47032733: push ecx */ 5704 PUSH32(esp, 0); /* 0x47032734: push 0 */ 5705 PUSH32(esp, 0x14u); /* 0x47032736: push 0x14 */ 5706 PUSH32(esp, 0x47106C68u); /* 0x47032738: push 0x47106c68 */ 5707 ecx = esi; /* 0x4703273D: mov ecx, esi */ 5708 RECOMP_ICALL(0x4703A340u); /* 0x4703273F: call 0x4703a340 */ /* not lifted */ 5709 RECOMP_FLAGS_IN(); 5710 edx = MEM32(ebp); /* 0x47032744: mov edx, dword ptr [ebp] */ 5711 PUSH32(esp, edx); /* 0x47032747: push edx */ 5712 PUSH32(esp, 0x47106BB8u); /* 0x47032748: push 0x47106bb8 */ 5713 PUSH32(esp, 4); /* 0x4703274D: push 4 */ 5714 PUSH32(esp, esi); /* 0x4703274F: push esi */ 5715 RECOMP_ICALL(0x47039830u); /* 0x47032750: call 0x47039830 */ /* not lifted */ 5716 RECOMP_FLAGS_IN(); 5717 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5718 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5719 esp = esp + 0x10u; /* 0x47032755: add esp, 0x10 */ 5720 _flag_k = FK_ADD; 5721 RECOMP_ICALL(edi); /* 0x47032758: call edi */ 5722 RECOMP_FLAGS_IN(); 5723 ebp = eax; /* 0x4703275A: mov ebp, eax */ 5724 RECOMP_ICALL(ebx); /* 0x4703275C: call ebx */ 5725 RECOMP_FLAGS_IN(); 5726 eax = MEM32(eax); /* 0x4703275E: mov eax, dword ptr [eax] */ 5727 /* test eax, eax */ /* 0x47032760: test eax, eax */ 5728 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5729 _cf = 0; 5730 _flag_k = FK_TEST; 5731 if (TEST_Z(_flag_a, _flag_b)) goto L_47032766; /* 0x47032762: je 0x47032766 */ 5732 L_47032764: 5733 ebp = eax; /* 0x47032764: mov ebp, eax */ 5734 L_47032766: 5735 RECOMP_ICALL(0x47039020u); /* 0x47032766: call 0x47039020 */ /* not lifted */ 5736 RECOMP_FLAGS_IN(); 5737 esi = eax; /* 0x4703276B: mov esi, eax */ 5738 ecx = esi; /* 0x4703276D: mov ecx, esi */ 5739 RECOMP_ICALL(0x4703B210u); /* 0x4703276F: call 0x4703b210 */ /* not lifted */ 5740 RECOMP_FLAGS_IN(); 5741 PUSH32(esp, eax); /* 0x47032774: push eax */ 5742 ecx = esi; /* 0x47032775: mov ecx, esi */ 5743 RECOMP_ICALL(0x4703B240u); /* 0x47032777: call 0x4703b240 */ /* not lifted */ 5744 RECOMP_FLAGS_IN(); 5745 PUSH32(esp, eax); /* 0x4703277C: push eax */ 5746 ecx = esi; /* 0x4703277D: mov ecx, esi */ 5747 RECOMP_ICALL(0x4703B080u); /* 0x4703277F: call 0x4703b080 */ /* not lifted */ 5748 RECOMP_FLAGS_IN(); 5749 PUSH32(esp, eax); /* 0x47032784: push eax */ 5750 PUSH32(esp, ebp); /* 0x47032785: push ebp */ 5751 PUSH32(esp, 0); /* 0x47032786: push 0 */ 5752 PUSH32(esp, 0x15u); /* 0x47032788: push 0x15 */ 5753 PUSH32(esp, 0x47106C68u); /* 0x4703278A: push 0x47106c68 */ 5754 ecx = esi; /* 0x4703278F: mov ecx, esi */ 5755 RECOMP_ICALL(0x4703A340u); /* 0x47032791: call 0x4703a340 */ /* not lifted */ 5756 RECOMP_FLAGS_IN(); 5757 eax = MEM32(0x4710E45C); /* 0x47032796: mov eax, dword ptr [0x4710e45c] */ 5758 PUSH32(esp, eax); /* 0x4703279B: push eax */ 5759 PUSH32(esp, 0x47106BACu); /* 0x4703279C: push 0x47106bac */ 5760 PUSH32(esp, 4); /* 0x470327A1: push 4 */ 5761 PUSH32(esp, esi); /* 0x470327A3: push esi */ 5762 RECOMP_ICALL(0x47039830u); /* 0x470327A4: call 0x47039830 */ /* not lifted */ 5763 RECOMP_FLAGS_IN(); 5764 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5765 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5766 esp = esp + 0x10u; /* 0x470327A9: add esp, 0x10 */ 5767 _flag_k = FK_ADD; 5768 RECOMP_ICALL(edi); /* 0x470327AC: call edi */ 5769 RECOMP_FLAGS_IN(); 5770 esi = eax; /* 0x470327AE: mov esi, eax */ 5771 RECOMP_ICALL(ebx); /* 0x470327B0: call ebx */ 5772 RECOMP_FLAGS_IN(); 5773 eax = MEM32(eax); /* 0x470327B2: mov eax, dword ptr [eax] */ 5774 /* test eax, eax */ /* 0x470327B4: test eax, eax */ 5775 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5776 _cf = 0; 5777 _flag_k = FK_TEST; 5778 edi = esi; /* 0x470327B6: mov edi, esi */ 5779 if (TEST_Z(_flag_a, _flag_b)) goto L_470327BC; /* 0x470327B8: je 0x470327bc */ 5780 L_470327BA: 5781 edi = eax; /* 0x470327BA: mov edi, eax */ 5782 L_470327BC: 5783 RECOMP_ICALL(0x47039020u); /* 0x470327BC: call 0x47039020 */ /* not lifted */ 5784 RECOMP_FLAGS_IN(); 5785 esi = eax; /* 0x470327C1: mov esi, eax */ 5786 ecx = esi; /* 0x470327C3: mov ecx, esi */ 5787 RECOMP_ICALL(0x4703B210u); /* 0x470327C5: call 0x4703b210 */ /* not lifted */ 5788 RECOMP_FLAGS_IN(); 5789 PUSH32(esp, eax); /* 0x470327CA: push eax */ 5790 ecx = esi; /* 0x470327CB: mov ecx, esi */ 5791 RECOMP_ICALL(0x4703B240u); /* 0x470327CD: call 0x4703b240 */ /* not lifted */ 5792 RECOMP_FLAGS_IN(); 5793 PUSH32(esp, eax); /* 0x470327D2: push eax */ 5794 ecx = esi; /* 0x470327D3: mov ecx, esi */ 5795 RECOMP_ICALL(0x4703B080u); /* 0x470327D5: call 0x4703b080 */ /* not lifted */ 5796 RECOMP_FLAGS_IN(); 5797 PUSH32(esp, eax); /* 0x470327DA: push eax */ 5798 PUSH32(esp, edi); /* 0x470327DB: push edi */ 5799 PUSH32(esp, 0); /* 0x470327DC: push 0 */ 5800 PUSH32(esp, 0x16u); /* 0x470327DE: push 0x16 */ 5801 PUSH32(esp, 0x47106C68u); /* 0x470327E0: push 0x47106c68 */ 5802 ecx = esi; /* 0x470327E5: mov ecx, esi */ 5803 RECOMP_ICALL(0x4703A340u); /* 0x470327E7: call 0x4703a340 */ /* not lifted */ 5804 RECOMP_FLAGS_IN(); 5805 PUSH32(esp, 0x4710529Cu); /* 0x470327EC: push 0x4710529c */ 5806 PUSH32(esp, 4); /* 0x470327F1: push 4 */ 5807 PUSH32(esp, esi); /* 0x470327F3: push esi */ 5808 RECOMP_ICALL(0x47039830u); /* 0x470327F4: call 0x47039830 */ /* not lifted */ 5809 RECOMP_FLAGS_IN(); 5810 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5811 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5812 esp = esp + 0xCu; /* 0x470327F9: add esp, 0xc */ 5813 _flag_k = FK_ADD; 5814 edi = POP32_VAL(esp); /* 0x470327FC: pop edi */ 5815 esi = POP32_VAL(esp); /* 0x470327FD: pop esi */ 5816 ebp = POP32_VAL(esp); /* 0x470327FE: pop ebp */ 5817 ebx = POP32_VAL(esp); /* 0x470327FF: pop ebx */ 5818 ecx = POP32_VAL(esp); /* 0x47032800: pop ecx */ 5819 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47032801: ret */ 5820 RECOMP_REGS_OUT(); 5821 } 5822 5823 void sub_47032810(void) { 5824 int _fpu_cmp = 0; 5825 uint32_t _cf = 0; 5826 int _df = 1; 5827 uint32_t _flag_k = FK_NONE; 5828 uint32_t _flag_a = 0, _flag_b = 0; 5829 uint32_t _itail_tgt = 0; 5830 RECOMP_REGS_LOCALS 5831 RECOMP_ENTER(0x47032810u); 5832 5833 L_47032810: 5834 eax = MEM32(0x4710E45C); /* 0x47032810: mov eax, dword ptr [0x4710e45c] */ 5835 /* test eax, eax */ /* 0x47032815: test eax, eax */ 5836 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5837 _cf = 0; 5838 _flag_k = FK_TEST; 5839 PUSH32(esp, esi); /* 0x47032817: push esi */ 5840 esi = ecx; /* 0x47032818: mov esi, ecx */ 5841 if (TEST_NZ(_flag_a, _flag_b)) goto L_47032827; /* 0x4703281A: jne 0x47032827 */ 5842 L_4703281C: 5843 RECOMP_ICALL(MEM32(0x470AC0E8)); /* 0x4703281C: call dword ptr [0x470ac0e8] */ 5844 RECOMP_FLAGS_IN(); 5845 MEM32(0x4710E45C) = eax; /* 0x47032822: mov dword ptr [0x4710e45c], eax */ 5846 L_47032827: 5847 eax = MEM32(esp + 0x8); /* 0x47032827: mov eax, dword ptr [esp + 8] */ 5848 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5849 eax = eax - 1; /* 0x4703282B: dec eax */ 5850 _flag_k = FK_DEC; 5851 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_47032841; /* 0x4703282C: je 0x47032841 */ 5852 L_4703282E: 5853 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4703282E: call dword ptr [0x470ac3c8] */ 5854 RECOMP_FLAGS_IN(); 5855 MEM32(eax) = 0x28u; /* 0x47032834: mov dword ptr [eax], 0x28 */ 5856 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5857 eax = eax | 0xFFFFFFFFu; /* 0x4703283A: or eax, 0xffffffff */ 5858 _cf = 0; 5859 _flag_k = FK_TEST; 5860 esi = POP32_VAL(esp); /* 0x4703283D: pop esi */ 5861 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703283E: ret 4 */ 5862 L_47032841: 5863 eax = MEM32(esi); /* 0x47032841: mov eax, dword ptr [esi] */ 5864 ecx = esp + 0x8; /* 0x47032843: lea ecx, [esp + 8] */ 5865 PUSH32(esp, ecx); /* 0x47032847: push ecx */ 5866 PUSH32(esp, 0x8004667Eu); /* 0x47032848: push 0x8004667e */ 5867 PUSH32(esp, eax); /* 0x4703284D: push eax */ 5868 MEM32(esp + 0x14) = 1; /* 0x4703284E: mov dword ptr [esp + 0x14], 1 */ 5869 RECOMP_ICALL(MEM32(0x470AC4A8)); /* 0x47032856: call dword ptr [0x470ac4a8] */ 5870 RECOMP_FLAGS_IN(); 5871 /* cmp eax, 0xFFFFFFFFu */ /* 0x4703285C: cmp eax, -1 */ 5872 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 5873 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5874 _flag_k = FK_CMP; 5875 if (CMP_NE(_flag_a, _flag_b)) goto L_47032874; /* 0x4703285F: jne 0x47032874 */ 5876 L_47032861: 5877 RECOMP_ICALL(MEM32(0x470AC4A4)); /* 0x47032861: call dword ptr [0x470ac4a4] */ 5878 RECOMP_FLAGS_IN(); 5879 esi = eax; /* 0x47032867: mov esi, eax */ 5880 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47032869: call dword ptr [0x470ac3c8] */ 5881 RECOMP_FLAGS_IN(); 5882 MEM32(eax) = esi; /* 0x4703286F: mov dword ptr [eax], esi */ 5883 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5884 eax = eax | 0xFFFFFFFFu; /* 0x47032871: or eax, 0xffffffff */ 5885 _cf = 0; 5886 _flag_k = FK_TEST; 5887 L_47032874: 5888 esi = POP32_VAL(esp); /* 0x47032874: pop esi */ 5889 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47032875: ret 4 */ 5890 RECOMP_REGS_OUT(); 5891 } 5892 5893 void sub_47032880(void) { 5894 int _fpu_cmp = 0; 5895 uint32_t _cf = 0; 5896 int _df = 1; 5897 uint32_t _flag_k = FK_NONE; 5898 uint32_t _flag_a = 0, _flag_b = 0; 5899 uint32_t _itail_tgt = 0; 5900 RECOMP_REGS_LOCALS 5901 RECOMP_ENTER(0x47032880u); 5902 5903 L_47032880: 5904 eax = MEM32(esp + 0x4); /* 0x47032880: mov eax, dword ptr [esp + 4] */ 5905 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5906 eax = eax - 1; /* 0x47032884: dec eax */ 5907 _flag_k = FK_DEC; 5908 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_47032899; /* 0x47032885: je 0x47032899 */ 5909 L_47032887: 5910 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47032887: call dword ptr [0x470ac3c8] */ 5911 RECOMP_FLAGS_IN(); 5912 MEM32(eax) = 0x28u; /* 0x4703288D: mov dword ptr [eax], 0x28 */ 5913 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5914 eax = eax | 0xFFFFFFFFu; /* 0x47032893: or eax, 0xffffffff */ 5915 _cf = 0; 5916 _flag_k = FK_TEST; 5917 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47032896: ret 4 */ 5918 L_47032899: 5919 eax = MEM32(ecx); /* 0x47032899: mov eax, dword ptr [ecx] */ 5920 ecx = esp + 0x4; /* 0x4703289B: lea ecx, [esp + 4] */ 5921 PUSH32(esp, ecx); /* 0x4703289F: push ecx */ 5922 PUSH32(esp, 0x8004667Eu); /* 0x470328A0: push 0x8004667e */ 5923 PUSH32(esp, eax); /* 0x470328A5: push eax */ 5924 MEM32(esp + 0x10) = 0; /* 0x470328A6: mov dword ptr [esp + 0x10], 0 */ 5925 RECOMP_ICALL(MEM32(0x470AC4A8)); /* 0x470328AE: call dword ptr [0x470ac4a8] */ 5926 RECOMP_FLAGS_IN(); 5927 /* cmp eax, 0xFFFFFFFFu */ /* 0x470328B4: cmp eax, -1 */ 5928 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 5929 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5930 _flag_k = FK_CMP; 5931 if (CMP_NE(_flag_a, _flag_b)) goto L_470328CE; /* 0x470328B7: jne 0x470328ce */ 5932 L_470328B9: 5933 PUSH32(esp, esi); /* 0x470328B9: push esi */ 5934 RECOMP_ICALL(MEM32(0x470AC4A4)); /* 0x470328BA: call dword ptr [0x470ac4a4] */ 5935 RECOMP_FLAGS_IN(); 5936 esi = eax; /* 0x470328C0: mov esi, eax */ 5937 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470328C2: call dword ptr [0x470ac3c8] */ 5938 RECOMP_FLAGS_IN(); 5939 MEM32(eax) = esi; /* 0x470328C8: mov dword ptr [eax], esi */ 5940 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5941 eax = eax | 0xFFFFFFFFu; /* 0x470328CA: or eax, 0xffffffff */ 5942 _cf = 0; 5943 _flag_k = FK_TEST; 5944 esi = POP32_VAL(esp); /* 0x470328CD: pop esi */ 5945 L_470328CE: 5946 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470328CE: ret 4 */ 5947 RECOMP_REGS_OUT(); 5948 } 5949 5950 void sub_470328E0(void) { 5951 int _fpu_cmp = 0; 5952 uint32_t _cf = 0; 5953 int _df = 1; 5954 uint32_t _flag_k = FK_NONE; 5955 uint32_t _flag_a = 0, _flag_b = 0; 5956 uint32_t _itail_tgt = 0; 5957 RECOMP_REGS_LOCALS 5958 RECOMP_ENTER(0x470328E0u); 5959 5960 L_470328E0: 5961 ecx = 0x4710E46Du; /* 0x470328E0: mov ecx, 0x4710e46d */ 5962 RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x470328E5: call dword ptr [0x470ac1c8] */ 5963 RECOMP_FLAGS_IN(); 5964 PUSH32(esp, 0x47032900u); /* 0x470328EB: push 0x47032900 */ 5965 RECOMP_ICALL(0x470A32D9u); /* 0x470328F0: call 0x470a32d9 */ /* not lifted */ 5966 RECOMP_FLAGS_IN(); 5967 ecx = POP32_VAL(esp); /* 0x470328F5: pop ecx */ 5968 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470328F6: ret */ 5969 RECOMP_REGS_OUT(); 5970 } 5971 5972 void sub_47032900(void) { 5973 int _fpu_cmp = 0; 5974 uint32_t _cf = 0; 5975 int _df = 1; 5976 uint32_t _flag_k = FK_NONE; 5977 uint32_t _flag_a = 0, _flag_b = 0; 5978 uint32_t _itail_tgt = 0; 5979 RECOMP_REGS_LOCALS 5980 RECOMP_ENTER(0x47032900u); 5981 5982 L_47032900: 5983 ecx = 0x4710E46Du; /* 0x47032900: mov ecx, 0x4710e46d */ 5984 L_47032905: 5985 { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; } 5986 { RECOMP_REGS_OUT(); return; } /* end of function */ 5987 _ljump: 5988 switch (_itail_tgt) { 5989 case 0x47032900u: goto L_47032900; 5990 case 0x47032905u: goto L_47032905; 5991 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5992 } 5993 RECOMP_REGS_OUT(); 5994 } 5995 5996 void sub_47032910(void) { 5997 int _fpu_cmp = 0; 5998 uint32_t _cf = 0; 5999 int _df = 1; 6000 uint32_t _flag_k = FK_NONE; 6001 uint32_t _flag_a = 0, _flag_b = 0; 6002 uint32_t _itail_tgt = 0; 6003 RECOMP_REGS_LOCALS 6004 RECOMP_ENTER(0x47032910u); 6005 6006 L_47032910: 6007 ecx = 0x4710E46Cu; /* 0x47032910: mov ecx, 0x4710e46c */ 6008 RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x47032915: call dword ptr [0x470ac1c4] */ 6009 RECOMP_FLAGS_IN(); 6010 PUSH32(esp, 0x47032930u); /* 0x4703291B: push 0x47032930 */ 6011 RECOMP_ICALL(0x470A32D9u); /* 0x47032920: call 0x470a32d9 */ /* not lifted */ 6012 RECOMP_FLAGS_IN(); 6013 ecx = POP32_VAL(esp); /* 0x47032925: pop ecx */ 6014 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47032926: ret */ 6015 RECOMP_REGS_OUT(); 6016 } 6017 6018 void sub_47032930(void) { 6019 int _fpu_cmp = 0; 6020 uint32_t _cf = 0; 6021 int _df = 1; 6022 uint32_t _flag_k = FK_NONE; 6023 uint32_t _flag_a = 0, _flag_b = 0; 6024 uint32_t _itail_tgt = 0; 6025 RECOMP_REGS_LOCALS 6026 RECOMP_ENTER(0x47032930u); 6027 6028 L_47032930: 6029 ecx = 0x4710E46Cu; /* 0x47032930: mov ecx, 0x4710e46c */ 6030 L_47032935: 6031 { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; } 6032 { RECOMP_REGS_OUT(); return; } /* end of function */ 6033 _ljump: 6034 switch (_itail_tgt) { 6035 case 0x47032930u: goto L_47032930; 6036 case 0x47032935u: goto L_47032935; 6037 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6038 } 6039 RECOMP_REGS_OUT(); 6040 } 6041 6042 void sub_47032940(void) { 6043 int _fpu_cmp = 0; 6044 uint32_t _cf = 0; 6045 int _df = 1; 6046 uint32_t _flag_k = FK_NONE; 6047 uint32_t _flag_a = 0, _flag_b = 0; 6048 uint32_t _itail_tgt = 0; 6049 RECOMP_REGS_LOCALS 6050 RECOMP_ENTER(0x47032940u); 6051 6052 L_47032940: 6053 MEM32(0x4710E460) = 0x47104A3Cu; /* 0x47032940: mov dword ptr [0x4710e460], 0x47104a3c */ 6054 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703294A: ret */ 6055 RECOMP_REGS_OUT(); 6056 } 6057 6058 void sub_47032950(void) { 6059 int _fpu_cmp = 0; 6060 uint32_t _cf = 0; 6061 int _df = 1; 6062 uint32_t _flag_k = FK_NONE; 6063 uint32_t _flag_a = 0, _flag_b = 0; 6064 uint32_t _itail_tgt = 0; 6065 RECOMP_REGS_LOCALS 6066 RECOMP_ENTER(0x47032950u); 6067 6068 L_47032950: 6069 MEM32(0x4710E480) = 0x47104A00u; /* 0x47032950: mov dword ptr [0x4710e480], 0x47104a00 */ 6070 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703295A: ret */ 6071 RECOMP_REGS_OUT(); 6072 } 6073 6074 void sub_47032960(void) { 6075 int _fpu_cmp = 0; 6076 uint32_t _cf = 0; 6077 int _df = 1; 6078 uint32_t _flag_k = FK_NONE; 6079 uint32_t _flag_a = 0, _flag_b = 0; 6080 uint32_t _itail_tgt = 0; 6081 RECOMP_REGS_LOCALS 6082 RECOMP_ENTER(0x47032960u); 6083 6084 L_47032960: 6085 MEM32(0x4710E474) = 0x47104A70u; /* 0x47032960: mov dword ptr [0x4710e474], 0x47104a70 */ 6086 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703296A: ret */ 6087 RECOMP_REGS_OUT(); 6088 } 6089 6090 void sub_47032970(void) { 6091 int _fpu_cmp = 0; 6092 uint32_t _cf = 0; 6093 int _df = 1; 6094 uint32_t _flag_k = FK_NONE; 6095 uint32_t _flag_a = 0, _flag_b = 0; 6096 uint32_t _itail_tgt = 0; 6097 RECOMP_REGS_LOCALS 6098 RECOMP_ENTER(0x47032970u); 6099 6100 L_47032970: 6101 MEM32(0x4710E48C) = 0x47104B6Cu; /* 0x47032970: mov dword ptr [0x4710e48c], 0x47104b6c */ 6102 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703297A: ret */ 6103 RECOMP_REGS_OUT(); 6104 } 6105 6106 void sub_47032980(void) { 6107 int _fpu_cmp = 0; 6108 uint32_t _cf = 0; 6109 int _df = 1; 6110 uint32_t _flag_k = FK_NONE; 6111 uint32_t _flag_a = 0, _flag_b = 0; 6112 uint32_t _itail_tgt = 0; 6113 RECOMP_REGS_LOCALS 6114 RECOMP_ENTER(0x47032980u); 6115 6116 L_47032980: 6117 MEM32(0x4710E468) = 0x47104BA0u; /* 0x47032980: mov dword ptr [0x4710e468], 0x47104ba0 */ 6118 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703298A: ret */ 6119 RECOMP_REGS_OUT(); 6120 } 6121 6122 void sub_47032990(void) { 6123 int _fpu_cmp = 0; 6124 uint32_t _cf = 0; 6125 int _df = 1; 6126 uint32_t _flag_k = FK_NONE; 6127 uint32_t _flag_a = 0, _flag_b = 0; 6128 uint32_t _itail_tgt = 0; 6129 RECOMP_REGS_LOCALS 6130 RECOMP_ENTER(0x47032990u); 6131 6132 L_47032990: 6133 MEM32(0x4710E488) = 0x47104BD4u; /* 0x47032990: mov dword ptr [0x4710e488], 0x47104bd4 */ 6134 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703299A: ret */ 6135 RECOMP_REGS_OUT(); 6136 } 6137 6138 void sub_470329A0(void) { 6139 int _fpu_cmp = 0; 6140 uint32_t _cf = 0; 6141 int _df = 1; 6142 uint32_t _flag_k = FK_NONE; 6143 uint32_t _flag_a = 0, _flag_b = 0; 6144 uint32_t _itail_tgt = 0; 6145 RECOMP_REGS_LOCALS 6146 RECOMP_ENTER(0x470329A0u); 6147 6148 L_470329A0: 6149 PUSH32(esp, esi); /* 0x470329A0: push esi */ 6150 esi = ecx; /* 0x470329A1: mov esi, ecx */ 6151 ecx = esi + 0x8; /* 0x470329A3: lea ecx, [esi + 8] */ 6152 RECOMP_ICALL(0x470317B0u); /* 0x470329A6: call 0x470317b0 */ /* not lifted */ 6153 RECOMP_FLAGS_IN(); 6154 MEM32(esi) = 0x470AD258u; /* 0x470329AB: mov dword ptr [esi], 0x470ad258 */ 6155 eax = esi; /* 0x470329B1: mov eax, esi */ 6156 esi = POP32_VAL(esp); /* 0x470329B3: pop esi */ 6157 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470329B4: ret */ 6158 RECOMP_REGS_OUT(); 6159 } 6160 6161 void sub_470329C0(void) { 6162 int _fpu_cmp = 0; 6163 uint32_t _cf = 0; 6164 int _df = 1; 6165 uint32_t _flag_k = FK_NONE; 6166 uint32_t _flag_a = 0, _flag_b = 0; 6167 uint32_t _itail_tgt = 0; 6168 RECOMP_REGS_LOCALS 6169 RECOMP_ENTER(0x470329C0u); 6170 6171 L_470329C0: 6172 PUSH32(esp, ebx); /* 0x470329C0: push ebx */ 6173 PUSH32(esp, ebp); /* 0x470329C1: push ebp */ 6174 ebp = MEM32(esp + 0xC); /* 0x470329C2: mov ebp, dword ptr [esp + 0xc] */ 6175 eax = MEM32(ebp + 0x4); /* 0x470329C6: mov eax, dword ptr [ebp + 4] */ 6176 PUSH32(esp, esi); /* 0x470329C9: push esi */ 6177 ebx = ecx; /* 0x470329CA: mov ebx, ecx */ 6178 PUSH32(esp, edi); /* 0x470329CC: push edi */ 6179 ecx = ebp + 0x8; /* 0x470329CD: lea ecx, [ebp + 8] */ 6180 PUSH32(esp, ecx); /* 0x470329D0: push ecx */ 6181 ecx = ebx + 0x8; /* 0x470329D1: lea ecx, [ebx + 8] */ 6182 MEM32(ebx + 0x4) = eax; /* 0x470329D4: mov dword ptr [ebx + 4], eax */ 6183 RECOMP_ICALL(0x47031A30u); /* 0x470329D7: call 0x47031a30 */ /* not lifted */ 6184 RECOMP_FLAGS_IN(); 6185 edx = MEM32(ebp + 0x24); /* 0x470329DC: mov edx, dword ptr [ebp + 0x24] */ 6186 MEM32(ebx + 0x24) = edx; /* 0x470329DF: mov dword ptr [ebx + 0x24], edx */ 6187 esi = ebp + 0x28; /* 0x470329E2: lea esi, [ebp + 0x28] */ 6188 edi = ebx + 0x28; /* 0x470329E5: lea edi, [ebx + 0x28] */ 6189 ecx = 0x12u; /* 0x470329E8: mov ecx, 0x12 */ 6190 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x470329ED: 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; } 6191 eax = MEM32(ebp + 0x70); /* 0x470329EF: mov eax, dword ptr [ebp + 0x70] */ 6192 edi = POP32_VAL(esp); /* 0x470329F2: pop edi */ 6193 esi = POP32_VAL(esp); /* 0x470329F3: pop esi */ 6194 MEM32(ebx + 0x70) = eax; /* 0x470329F4: mov dword ptr [ebx + 0x70], eax */ 6195 ebp = POP32_VAL(esp); /* 0x470329F7: pop ebp */ 6196 MEM32(ebx) = 0x470AD258u; /* 0x470329F8: mov dword ptr [ebx], 0x470ad258 */ 6197 eax = ebx; /* 0x470329FE: mov eax, ebx */ 6198 ebx = POP32_VAL(esp); /* 0x47032A00: pop ebx */ 6199 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47032A01: ret 4 */ 6200 RECOMP_REGS_OUT(); 6201 } 6202 6203 void sub_47032A10(void) { 6204 int _fpu_cmp = 0; 6205 uint32_t _cf = 0; 6206 int _df = 1; 6207 uint32_t _flag_k = FK_NONE; 6208 uint32_t _flag_a = 0, _flag_b = 0; 6209 uint32_t _itail_tgt = 0; 6210 RECOMP_REGS_LOCALS 6211 RECOMP_ENTER(0x47032A10u); 6212 6213 L_47032A10: 6214 PUSH32(esp, 0xFFFFFFFFu); /* 0x47032A10: push -1 */ 6215 PUSH32(esp, 0x470A5748u); /* 0x47032A12: push 0x470a5748 */ 6216 eax = MEM32(FS_BASE + (0)); /* 0x47032A17: mov eax, dword ptr fs:[0] */ 6217 PUSH32(esp, eax); /* 0x47032A1D: push eax */ 6218 MEM32(FS_BASE + (0)) = esp; /* 0x47032A1E: mov dword ptr fs:[0], esp */ 6219 PUSH32(esp, ecx); /* 0x47032A25: push ecx */ 6220 PUSH32(esp, ebx); /* 0x47032A26: push ebx */ 6221 ebx = MEM32(esp + 0x18); /* 0x47032A27: mov ebx, dword ptr [esp + 0x18] */ 6222 eax = MEM32(ebx); /* 0x47032A2B: mov eax, dword ptr [ebx] */ 6223 PUSH32(esp, esi); /* 0x47032A2D: push esi */ 6224 esi = ecx; /* 0x47032A2E: mov esi, ecx */ 6225 PUSH32(esp, edi); /* 0x47032A30: push edi */ 6226 MEM32(esp + 0xC) = esi; /* 0x47032A31: mov dword ptr [esp + 0xc], esi */ 6227 MEM32(esi) = eax; /* 0x47032A35: mov dword ptr [esi], eax */ 6228 MEM32(esi + 0x4) = 0; /* 0x47032A37: mov dword ptr [esi + 4], 0 */ 6229 MEM32(esi + 0x8) = 0; /* 0x47032A3E: mov dword ptr [esi + 8], 0 */ 6230 eax = MEM32(ebx + 0xC); /* 0x47032A45: mov eax, dword ptr [ebx + 0xc] */ 6231 /* test eax, eax */ /* 0x47032A48: test eax, eax */ 6232 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6233 _cf = 0; 6234 _flag_k = FK_TEST; 6235 MEM32(esp + 0x18) = 0; /* 0x47032A4A: mov dword ptr [esp + 0x18], 0 */ 6236 MEM32(esi + 0xC) = eax; /* 0x47032A52: mov dword ptr [esi + 0xc], eax */ 6237 if (TEST_NZ(_flag_a, _flag_b)) goto L_47032A5F; /* 0x47032A55: jne 0x47032a5f */ 6238 L_47032A57: 6239 RECOMP_ICALL(0x4703DAC0u); /* 0x47032A57: call 0x4703dac0 */ /* not lifted */ 6240 RECOMP_FLAGS_IN(); 6241 MEM32(esi + 0xC) = eax; /* 0x47032A5C: mov dword ptr [esi + 0xc], eax */ 6242 L_47032A5F: 6243 ecx = MEM32(esi + 0xC); /* 0x47032A5F: mov ecx, dword ptr [esi + 0xc] */ 6244 edx = MEM32(ecx); /* 0x47032A62: mov edx, dword ptr [ecx] */ 6245 PUSH32(esp, 8); /* 0x47032A64: push 8 */ 6246 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47032A66: call dword ptr [edx + 4] */ 6247 RECOMP_FLAGS_IN(); 6248 /* test eax, eax */ /* 0x47032A69: test eax, eax */ 6249 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6250 _cf = 0; 6251 _flag_k = FK_TEST; 6252 MEM32(esi + 0x4) = eax; /* 0x47032A6B: mov dword ptr [esi + 4], eax */ 6253 if (TEST_Z(_flag_a, _flag_b)) goto L_47032AA4; /* 0x47032A6E: je 0x47032aa4 */ 6254 L_47032A70: 6255 MEM32(eax) = 0; /* 0x47032A70: mov dword ptr [eax], 0 */ 6256 eax = MEM32(esi + 0x4); /* 0x47032A76: mov eax, dword ptr [esi + 4] */ 6257 MEM32(eax) = eax; /* 0x47032A79: mov dword ptr [eax], eax */ 6258 eax = MEM32(ebx + 0x4); /* 0x47032A7B: mov eax, dword ptr [ebx + 4] */ 6259 edi = MEM32(eax); /* 0x47032A7E: mov edi, dword ptr [eax] */ 6260 /* cmp edi, eax */ /* 0x47032A80: cmp edi, eax */ 6261 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6262 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6263 _flag_k = FK_CMP; 6264 if (CMP_EQ(_flag_a, _flag_b)) goto L_47032AD2; /* 0x47032A82: je 0x47032ad2 */ 6265 L_47032A84: 6266 ecx = MEM32(edi + 0x4); /* 0x47032A84: mov ecx, dword ptr [edi + 4] */ 6267 eax = MEM32(esi + 0x4); /* 0x47032A87: mov eax, dword ptr [esi + 4] */ 6268 MEM32(eax + 0x4) = ecx; /* 0x47032A8A: mov dword ptr [eax + 4], ecx */ 6269 ecx = MEM32(esi + 0xC); /* 0x47032A8D: mov ecx, dword ptr [esi + 0xc] */ 6270 edx = MEM32(ecx); /* 0x47032A90: mov edx, dword ptr [ecx] */ 6271 PUSH32(esp, 8); /* 0x47032A92: push 8 */ 6272 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47032A94: call dword ptr [edx + 4] */ 6273 RECOMP_FLAGS_IN(); 6274 /* test eax, eax */ /* 0x47032A97: test eax, eax */ 6275 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6276 _cf = 0; 6277 _flag_k = FK_TEST; 6278 if (TEST_Z(_flag_a, _flag_b)) goto L_47032AB2; /* 0x47032A99: je 0x47032ab2 */ 6279 L_47032A9B: 6280 ecx = MEM32(esi + 0x4); /* 0x47032A9B: mov ecx, dword ptr [esi + 4] */ 6281 edx = MEM32(ecx); /* 0x47032A9E: mov edx, dword ptr [ecx] */ 6282 MEM32(eax) = edx; /* 0x47032AA0: mov dword ptr [eax], edx */ 6283 goto L_47032AC0; /* 0x47032AA2: jmp 0x47032ac0 */ 6284 L_47032AA4: 6285 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47032AA4: call dword ptr [0x470ac3c8] */ 6286 RECOMP_FLAGS_IN(); 6287 MEM32(eax) = 0xCu; /* 0x47032AAA: mov dword ptr [eax], 0xc */ 6288 goto L_47032AD2; /* 0x47032AB0: jmp 0x47032ad2 */ 6289 L_47032AB2: 6290 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47032AB2: call dword ptr [0x470ac3c8] */ 6291 RECOMP_FLAGS_IN(); 6292 MEM32(eax) = 0xCu; /* 0x47032AB8: mov dword ptr [eax], 0xc */ 6293 goto L_47032ACB; /* 0x47032ABE: jmp 0x47032acb */ 6294 L_47032AC0: 6295 ecx = MEM32(esi + 0x4); /* 0x47032AC0: mov ecx, dword ptr [esi + 4] */ 6296 MEM32(ecx) = eax; /* 0x47032AC3: mov dword ptr [ecx], eax */ 6297 MEM32(esi + 0x4) = eax; /* 0x47032AC5: mov dword ptr [esi + 4], eax */ 6298 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(1); 6299 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 1; /* 0x47032AC8: inc dword ptr [esi + 8] */ 6300 _flag_k = FK_INC; 6301 L_47032ACB: 6302 edi = MEM32(edi); /* 0x47032ACB: mov edi, dword ptr [edi] */ 6303 /* cmp edi, MEM32(ebx + 0x4) */ /* 0x47032ACD: cmp edi, dword ptr [ebx + 4] */ 6304 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebx + 0x4)); 6305 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6306 _flag_k = FK_CMP; 6307 RECOMP_BACKEDGE(); 6308 if (CMP_NE(_flag_a, _flag_b)) goto L_47032A84; /* 0x47032AD0: jne 0x47032a84 */ 6309 L_47032AD2: 6310 ecx = MEM32(esp + 0x10); /* 0x47032AD2: mov ecx, dword ptr [esp + 0x10] */ 6311 edi = POP32_VAL(esp); /* 0x47032AD6: pop edi */ 6312 eax = esi; /* 0x47032AD7: mov eax, esi */ 6313 esi = POP32_VAL(esp); /* 0x47032AD9: pop esi */ 6314 ebx = POP32_VAL(esp); /* 0x47032ADA: pop ebx */ 6315 MEM32(FS_BASE + (0)) = ecx; /* 0x47032ADB: mov dword ptr fs:[0], ecx */ 6316 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6317 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6318 esp = esp + 0x10u; /* 0x47032AE2: add esp, 0x10 */ 6319 _flag_k = FK_ADD; 6320 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47032AE5: ret 4 */ 6321 RECOMP_REGS_OUT(); 6322 } 6323 6324 void sub_47032AF0(void) { 6325 int _fpu_cmp = 0; 6326 uint32_t _cf = 0; 6327 int _df = 1; 6328 uint32_t _flag_k = FK_NONE; 6329 uint32_t _flag_a = 0, _flag_b = 0; 6330 uint32_t _itail_tgt = 0; 6331 RECOMP_REGS_LOCALS 6332 RECOMP_ENTER(0x47032AF0u); 6333 6334 L_47032AF0: 6335 PUSH32(esp, 0xFFFFFFFFu); /* 0x47032AF0: push -1 */ 6336 PUSH32(esp, 0x470A5768u); /* 0x47032AF2: push 0x470a5768 */ 6337 eax = MEM32(FS_BASE + (0)); /* 0x47032AF7: mov eax, dword ptr fs:[0] */ 6338 PUSH32(esp, eax); /* 0x47032AFD: push eax */ 6339 MEM32(FS_BASE + (0)) = esp; /* 0x47032AFE: mov dword ptr fs:[0], esp */ 6340 PUSH32(esp, ecx); /* 0x47032B05: push ecx */ 6341 PUSH32(esp, esi); /* 0x47032B06: push esi */ 6342 esi = ecx; /* 0x47032B07: mov esi, ecx */ 6343 PUSH32(esp, edi); /* 0x47032B09: push edi */ 6344 MEM32(esp + 0x8) = esi; /* 0x47032B0A: mov dword ptr [esp + 8], esi */ 6345 eax = MEM32(esi + 0x4); /* 0x47032B0E: mov eax, dword ptr [esi + 4] */ 6346 edi = MEM32(eax); /* 0x47032B11: mov edi, dword ptr [eax] */ 6347 /* cmp edi, eax */ /* 0x47032B13: cmp edi, eax */ 6348 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6349 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6350 _flag_k = FK_CMP; 6351 MEM32(esp + 0x14) = 0; /* 0x47032B15: mov dword ptr [esp + 0x14], 0 */ 6352 if (CMP_EQ(_flag_a, _flag_b)) goto L_47032B3E; /* 0x47032B1D: je 0x47032b3e */ 6353 L_47032B1F: 6354 eax = edi; /* 0x47032B1F: mov eax, edi */ 6355 /* test eax, eax */ /* 0x47032B21: test eax, eax */ 6356 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6357 _cf = 0; 6358 _flag_k = FK_TEST; 6359 edi = MEM32(edi); /* 0x47032B23: mov edi, dword ptr [edi] */ 6360 if (TEST_Z(_flag_a, _flag_b)) goto L_47032B30; /* 0x47032B25: je 0x47032b30 */ 6361 L_47032B27: 6362 ecx = MEM32(esi + 0xC); /* 0x47032B27: mov ecx, dword ptr [esi + 0xc] */ 6363 edx = MEM32(ecx); /* 0x47032B2A: mov edx, dword ptr [ecx] */ 6364 PUSH32(esp, eax); /* 0x47032B2C: push eax */ 6365 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47032B2D: call dword ptr [edx + 0xc] */ 6366 RECOMP_FLAGS_IN(); 6367 L_47032B30: 6368 ecx = MEM32(esi + 0x8); /* 0x47032B30: mov ecx, dword ptr [esi + 8] */ 6369 eax = MEM32(esi + 0x4); /* 0x47032B33: mov eax, dword ptr [esi + 4] */ 6370 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6371 ecx = ecx - 1; /* 0x47032B36: dec ecx */ 6372 _flag_k = FK_DEC; 6373 /* cmp edi, eax */ /* 0x47032B37: cmp edi, eax */ 6374 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6375 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6376 _flag_k = FK_CMP; 6377 MEM32(esi + 0x8) = ecx; /* 0x47032B39: mov dword ptr [esi + 8], ecx */ 6378 RECOMP_BACKEDGE(); 6379 if (CMP_NE(_flag_a, _flag_b)) goto L_47032B1F; /* 0x47032B3C: jne 0x47032b1f */ 6380 L_47032B3E: 6381 eax = MEM32(esi + 0x4); /* 0x47032B3E: mov eax, dword ptr [esi + 4] */ 6382 MEM32(eax) = eax; /* 0x47032B41: mov dword ptr [eax], eax */ 6383 eax = MEM32(esi + 0x4); /* 0x47032B43: mov eax, dword ptr [esi + 4] */ 6384 /* test eax, eax */ /* 0x47032B46: test eax, eax */ 6385 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6386 _cf = 0; 6387 _flag_k = FK_TEST; 6388 if (TEST_Z(_flag_a, _flag_b)) goto L_47032B53; /* 0x47032B48: je 0x47032b53 */ 6389 L_47032B4A: 6390 ecx = MEM32(esi + 0xC); /* 0x47032B4A: mov ecx, dword ptr [esi + 0xc] */ 6391 edx = MEM32(ecx); /* 0x47032B4D: mov edx, dword ptr [ecx] */ 6392 PUSH32(esp, eax); /* 0x47032B4F: push eax */ 6393 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47032B50: call dword ptr [edx + 0xc] */ 6394 RECOMP_FLAGS_IN(); 6395 L_47032B53: 6396 ecx = MEM32(esp + 0xC); /* 0x47032B53: mov ecx, dword ptr [esp + 0xc] */ 6397 MEM32(esi + 0x4) = 0; /* 0x47032B57: mov dword ptr [esi + 4], 0 */ 6398 edi = POP32_VAL(esp); /* 0x47032B5E: pop edi */ 6399 esi = POP32_VAL(esp); /* 0x47032B5F: pop esi */ 6400 MEM32(FS_BASE + (0)) = ecx; /* 0x47032B60: mov dword ptr fs:[0], ecx */ 6401 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6402 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6403 esp = esp + 0x10u; /* 0x47032B67: add esp, 0x10 */ 6404 _flag_k = FK_ADD; 6405 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47032B6A: ret */ 6406 RECOMP_REGS_OUT(); 6407 } 6408 6409 void sub_47032B70(void) { 6410 int _fpu_cmp = 0; 6411 uint32_t _cf = 0; 6412 int _df = 1; 6413 uint32_t _flag_k = FK_NONE; 6414 uint32_t _flag_a = 0, _flag_b = 0; 6415 uint32_t _itail_tgt = 0; 6416 RECOMP_REGS_LOCALS 6417 RECOMP_ENTER(0x47032B70u); 6418 6419 L_47032B70: 6420 eax = MEM32(esp + 0x10); /* 0x47032B70: mov eax, dword ptr [esp + 0x10] */ 6421 edx = MEM32(esp + 0xC); /* 0x47032B74: mov edx, dword ptr [esp + 0xc] */ 6422 ecx = MEM32(ecx); /* 0x47032B78: mov ecx, dword ptr [ecx] */ 6423 PUSH32(esp, eax); /* 0x47032B7A: push eax */ 6424 eax = MEM32(esp + 0xC); /* 0x47032B7B: mov eax, dword ptr [esp + 0xc] */ 6425 PUSH32(esp, edx); /* 0x47032B7F: push edx */ 6426 edx = MEM32(esp + 0xC); /* 0x47032B80: mov edx, dword ptr [esp + 0xc] */ 6427 PUSH32(esp, eax); /* 0x47032B84: push eax */ 6428 PUSH32(esp, edx); /* 0x47032B85: push edx */ 6429 PUSH32(esp, ecx); /* 0x47032B86: push ecx */ 6430 RECOMP_ICALL(MEM32(0x470AC440)); /* 0x47032B87: call dword ptr [0x470ac440] */ 6431 RECOMP_FLAGS_IN(); 6432 /* cmp eax, 0xFFFFFFFFu */ /* 0x47032B8D: cmp eax, -1 */ 6433 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 6434 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6435 _flag_k = FK_CMP; 6436 if (CMP_NE(_flag_a, _flag_b)) goto L_47032BA7; /* 0x47032B90: jne 0x47032ba7 */ 6437 L_47032B92: 6438 PUSH32(esp, esi); /* 0x47032B92: push esi */ 6439 RECOMP_ICALL(MEM32(0x470AC4A4)); /* 0x47032B93: call dword ptr [0x470ac4a4] */ 6440 RECOMP_FLAGS_IN(); 6441 esi = eax; /* 0x47032B99: mov esi, eax */ 6442 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47032B9B: call dword ptr [0x470ac3c8] */ 6443 RECOMP_FLAGS_IN(); 6444 MEM32(eax) = esi; /* 0x47032BA1: mov dword ptr [eax], esi */ 6445 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6446 eax = eax | 0xFFFFFFFFu; /* 0x47032BA3: or eax, 0xffffffff */ 6447 _cf = 0; 6448 _flag_k = FK_TEST; 6449 esi = POP32_VAL(esp); /* 0x47032BA6: pop esi */ 6450 L_47032BA7: 6451 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47032BA7: ret 0x10 */ 6452 RECOMP_REGS_OUT(); 6453 } 6454 6455 void sub_47032BB0(void) { 6456 int _fpu_cmp = 0; 6457 uint32_t _cf = 0; 6458 int _df = 1; 6459 uint32_t _flag_k = FK_NONE; 6460 uint32_t _flag_a = 0, _flag_b = 0; 6461 uint32_t _itail_tgt = 0; 6462 RECOMP_REGS_LOCALS 6463 RECOMP_ENTER(0x47032BB0u); 6464 6465 L_47032BB0: 6466 eax = MEM32(esp + 0x10); /* 0x47032BB0: mov eax, dword ptr [esp + 0x10] */ 6467 edx = MEM32(esp + 0xC); /* 0x47032BB4: mov edx, dword ptr [esp + 0xc] */ 6468 ecx = MEM32(ecx); /* 0x47032BB8: mov ecx, dword ptr [ecx] */ 6469 PUSH32(esp, eax); /* 0x47032BBA: push eax */ 6470 eax = MEM32(esp + 0xC); /* 0x47032BBB: mov eax, dword ptr [esp + 0xc] */ 6471 PUSH32(esp, edx); /* 0x47032BBF: push edx */ 6472 edx = MEM32(esp + 0xC); /* 0x47032BC0: mov edx, dword ptr [esp + 0xc] */ 6473 PUSH32(esp, eax); /* 0x47032BC4: push eax */ 6474 PUSH32(esp, edx); /* 0x47032BC5: push edx */ 6475 PUSH32(esp, ecx); /* 0x47032BC6: push ecx */ 6476 RECOMP_ICALL(MEM32(0x470AC448)); /* 0x47032BC7: call dword ptr [0x470ac448] */ 6477 RECOMP_FLAGS_IN(); 6478 /* cmp eax, 0xFFFFFFFFu */ /* 0x47032BCD: cmp eax, -1 */ 6479 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 6480 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6481 _flag_k = FK_CMP; 6482 if (CMP_NE(_flag_a, _flag_b)) goto L_47032BE7; /* 0x47032BD0: jne 0x47032be7 */ 6483 L_47032BD2: 6484 PUSH32(esp, esi); /* 0x47032BD2: push esi */ 6485 RECOMP_ICALL(MEM32(0x470AC4A4)); /* 0x47032BD3: call dword ptr [0x470ac4a4] */ 6486 RECOMP_FLAGS_IN(); 6487 esi = eax; /* 0x47032BD9: mov esi, eax */ 6488 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47032BDB: call dword ptr [0x470ac3c8] */ 6489 RECOMP_FLAGS_IN(); 6490 MEM32(eax) = esi; /* 0x47032BE1: mov dword ptr [eax], esi */ 6491 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6492 eax = eax | 0xFFFFFFFFu; /* 0x47032BE3: or eax, 0xffffffff */ 6493 _cf = 0; 6494 _flag_k = FK_TEST; 6495 esi = POP32_VAL(esp); /* 0x47032BE6: pop esi */ 6496 L_47032BE7: 6497 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47032BE7: ret 0x10 */ 6498 RECOMP_REGS_OUT(); 6499 } 6500 6501 void sub_47032BF0(void) { 6502 int _fpu_cmp = 0; 6503 uint32_t _cf = 0; 6504 int _df = 1; 6505 uint32_t _flag_k = FK_NONE; 6506 uint32_t _flag_a = 0, _flag_b = 0; 6507 uint32_t _itail_tgt = 0; 6508 RECOMP_REGS_LOCALS 6509 RECOMP_ENTER(0x47032BF0u); 6510 6511 L_47032BF0: 6512 PUSH32(esp, 0xFFFFFFFFu); /* 0x47032BF0: push -1 */ 6513 PUSH32(esp, 0x470A5788u); /* 0x47032BF2: push 0x470a5788 */ 6514 eax = MEM32(FS_BASE + (0)); /* 0x47032BF7: mov eax, dword ptr fs:[0] */ 6515 PUSH32(esp, eax); /* 0x47032BFD: push eax */ 6516 MEM32(FS_BASE + (0)) = esp; /* 0x47032BFE: mov dword ptr fs:[0], esp */ 6517 PUSH32(esp, ecx); /* 0x47032C05: push ecx */ 6518 PUSH32(esp, ebx); /* 0x47032C06: push ebx */ 6519 ebx = MEM32(esp + 0x18); /* 0x47032C07: mov ebx, dword ptr [esp + 0x18] */ 6520 eax = MEM32(ebx); /* 0x47032C0B: mov eax, dword ptr [ebx] */ 6521 PUSH32(esp, esi); /* 0x47032C0D: push esi */ 6522 esi = ecx; /* 0x47032C0E: mov esi, ecx */ 6523 PUSH32(esp, edi); /* 0x47032C10: push edi */ 6524 MEM32(esp + 0xC) = esi; /* 0x47032C11: mov dword ptr [esp + 0xc], esi */ 6525 MEM32(esi) = eax; /* 0x47032C15: mov dword ptr [esi], eax */ 6526 MEM32(esi + 0x4) = 0; /* 0x47032C17: mov dword ptr [esi + 4], 0 */ 6527 MEM32(esi + 0x8) = 0; /* 0x47032C1E: mov dword ptr [esi + 8], 0 */ 6528 eax = MEM32(ebx + 0xC); /* 0x47032C25: mov eax, dword ptr [ebx + 0xc] */ 6529 /* test eax, eax */ /* 0x47032C28: test eax, eax */ 6530 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6531 _cf = 0; 6532 _flag_k = FK_TEST; 6533 MEM32(esp + 0x18) = 0; /* 0x47032C2A: mov dword ptr [esp + 0x18], 0 */ 6534 MEM32(esi + 0xC) = eax; /* 0x47032C32: mov dword ptr [esi + 0xc], eax */ 6535 if (TEST_NZ(_flag_a, _flag_b)) goto L_47032C3F; /* 0x47032C35: jne 0x47032c3f */ 6536 L_47032C37: 6537 RECOMP_ICALL(0x4703DAC0u); /* 0x47032C37: call 0x4703dac0 */ /* not lifted */ 6538 RECOMP_FLAGS_IN(); 6539 MEM32(esi + 0xC) = eax; /* 0x47032C3C: mov dword ptr [esi + 0xc], eax */ 6540 L_47032C3F: 6541 ecx = MEM32(esi + 0xC); /* 0x47032C3F: mov ecx, dword ptr [esi + 0xc] */ 6542 edx = MEM32(ecx); /* 0x47032C42: mov edx, dword ptr [ecx] */ 6543 PUSH32(esp, 8); /* 0x47032C44: push 8 */ 6544 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47032C46: call dword ptr [edx + 4] */ 6545 RECOMP_FLAGS_IN(); 6546 /* test eax, eax */ /* 0x47032C49: test eax, eax */ 6547 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6548 _cf = 0; 6549 _flag_k = FK_TEST; 6550 MEM32(esi + 0x4) = eax; /* 0x47032C4B: mov dword ptr [esi + 4], eax */ 6551 if (TEST_Z(_flag_a, _flag_b)) goto L_47032C84; /* 0x47032C4E: je 0x47032c84 */ 6552 L_47032C50: 6553 MEM32(eax) = 0; /* 0x47032C50: mov dword ptr [eax], 0 */ 6554 eax = MEM32(esi + 0x4); /* 0x47032C56: mov eax, dword ptr [esi + 4] */ 6555 MEM32(eax) = eax; /* 0x47032C59: mov dword ptr [eax], eax */ 6556 eax = MEM32(ebx + 0x4); /* 0x47032C5B: mov eax, dword ptr [ebx + 4] */ 6557 edi = MEM32(eax); /* 0x47032C5E: mov edi, dword ptr [eax] */ 6558 /* cmp edi, eax */ /* 0x47032C60: cmp edi, eax */ 6559 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6560 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6561 _flag_k = FK_CMP; 6562 if (CMP_EQ(_flag_a, _flag_b)) goto L_47032CB2; /* 0x47032C62: je 0x47032cb2 */ 6563 L_47032C64: 6564 ecx = MEM32(edi + 0x4); /* 0x47032C64: mov ecx, dword ptr [edi + 4] */ 6565 eax = MEM32(esi + 0x4); /* 0x47032C67: mov eax, dword ptr [esi + 4] */ 6566 MEM32(eax + 0x4) = ecx; /* 0x47032C6A: mov dword ptr [eax + 4], ecx */ 6567 ecx = MEM32(esi + 0xC); /* 0x47032C6D: mov ecx, dword ptr [esi + 0xc] */ 6568 edx = MEM32(ecx); /* 0x47032C70: mov edx, dword ptr [ecx] */ 6569 PUSH32(esp, 8); /* 0x47032C72: push 8 */ 6570 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47032C74: call dword ptr [edx + 4] */ 6571 RECOMP_FLAGS_IN(); 6572 /* test eax, eax */ /* 0x47032C77: test eax, eax */ 6573 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6574 _cf = 0; 6575 _flag_k = FK_TEST; 6576 if (TEST_Z(_flag_a, _flag_b)) goto L_47032C92; /* 0x47032C79: je 0x47032c92 */ 6577 L_47032C7B: 6578 ecx = MEM32(esi + 0x4); /* 0x47032C7B: mov ecx, dword ptr [esi + 4] */ 6579 edx = MEM32(ecx); /* 0x47032C7E: mov edx, dword ptr [ecx] */ 6580 MEM32(eax) = edx; /* 0x47032C80: mov dword ptr [eax], edx */ 6581 goto L_47032CA0; /* 0x47032C82: jmp 0x47032ca0 */ 6582 L_47032C84: 6583 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47032C84: call dword ptr [0x470ac3c8] */ 6584 RECOMP_FLAGS_IN(); 6585 MEM32(eax) = 0xCu; /* 0x47032C8A: mov dword ptr [eax], 0xc */ 6586 goto L_47032CB2; /* 0x47032C90: jmp 0x47032cb2 */ 6587 L_47032C92: 6588 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47032C92: call dword ptr [0x470ac3c8] */ 6589 RECOMP_FLAGS_IN(); 6590 MEM32(eax) = 0xCu; /* 0x47032C98: mov dword ptr [eax], 0xc */ 6591 goto L_47032CAB; /* 0x47032C9E: jmp 0x47032cab */ 6592 L_47032CA0: 6593 ecx = MEM32(esi + 0x4); /* 0x47032CA0: mov ecx, dword ptr [esi + 4] */ 6594 MEM32(ecx) = eax; /* 0x47032CA3: mov dword ptr [ecx], eax */ 6595 MEM32(esi + 0x4) = eax; /* 0x47032CA5: mov dword ptr [esi + 4], eax */ 6596 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(1); 6597 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 1; /* 0x47032CA8: inc dword ptr [esi + 8] */ 6598 _flag_k = FK_INC; 6599 L_47032CAB: 6600 edi = MEM32(edi); /* 0x47032CAB: mov edi, dword ptr [edi] */ 6601 /* cmp edi, MEM32(ebx + 0x4) */ /* 0x47032CAD: cmp edi, dword ptr [ebx + 4] */ 6602 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebx + 0x4)); 6603 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6604 _flag_k = FK_CMP; 6605 RECOMP_BACKEDGE(); 6606 if (CMP_NE(_flag_a, _flag_b)) goto L_47032C64; /* 0x47032CB0: jne 0x47032c64 */ 6607 L_47032CB2: 6608 ecx = MEM32(esp + 0x10); /* 0x47032CB2: mov ecx, dword ptr [esp + 0x10] */ 6609 edi = POP32_VAL(esp); /* 0x47032CB6: pop edi */ 6610 eax = esi; /* 0x47032CB7: mov eax, esi */ 6611 esi = POP32_VAL(esp); /* 0x47032CB9: pop esi */ 6612 ebx = POP32_VAL(esp); /* 0x47032CBA: pop ebx */ 6613 MEM32(FS_BASE + (0)) = ecx; /* 0x47032CBB: mov dword ptr fs:[0], ecx */ 6614 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6615 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6616 esp = esp + 0x10u; /* 0x47032CC2: add esp, 0x10 */ 6617 _flag_k = FK_ADD; 6618 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47032CC5: ret 4 */ 6619 RECOMP_REGS_OUT(); 6620 } 6621 6622 void sub_47032CD0(void) { 6623 int _fpu_cmp = 0; 6624 uint32_t _cf = 0; 6625 int _df = 1; 6626 uint32_t _flag_k = FK_NONE; 6627 uint32_t _flag_a = 0, _flag_b = 0; 6628 uint32_t _itail_tgt = 0; 6629 RECOMP_REGS_LOCALS 6630 RECOMP_ENTER(0x47032CD0u); 6631 6632 L_47032CD0: 6633 eax = MEM32(esp + 0x4); /* 0x47032CD0: mov eax, dword ptr [esp + 4] */ 6634 PUSH32(esp, ebx); /* 0x47032CD4: push ebx */ 6635 PUSH32(esp, ebp); /* 0x47032CD5: push ebp */ 6636 ebp = ecx; /* 0x47032CD6: mov ebp, ecx */ 6637 ecx = MEM32(eax); /* 0x47032CD8: mov ecx, dword ptr [eax] */ 6638 PUSH32(esp, esi); /* 0x47032CDA: push esi */ 6639 ebx = eax + 0x4; /* 0x47032CDB: lea ebx, [eax + 4] */ 6640 esi = ebp + 0x4; /* 0x47032CDE: lea esi, [ebp + 4] */ 6641 /* cmp esi, ebx */ /* 0x47032CE1: cmp esi, ebx */ 6642 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 6643 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6644 _flag_k = FK_CMP; 6645 PUSH32(esp, edi); /* 0x47032CE3: push edi */ 6646 MEM32(ebp) = ecx; /* 0x47032CE4: mov dword ptr [ebp], ecx */ 6647 if (CMP_EQ(_flag_a, _flag_b)) goto L_47032D2C; /* 0x47032CE7: je 0x47032d2c */ 6648 L_47032CE9: 6649 eax = MEM32(esi); /* 0x47032CE9: mov eax, dword ptr [esi] */ 6650 edi = MEM32(eax); /* 0x47032CEB: mov edi, dword ptr [eax] */ 6651 /* cmp edi, eax */ /* 0x47032CED: cmp edi, eax */ 6652 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6653 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6654 _flag_k = FK_CMP; 6655 if (CMP_EQ(_flag_a, _flag_b)) goto L_47032D0F; /* 0x47032CEF: je 0x47032d0f */ 6656 L_47032CF1: 6657 eax = edi; /* 0x47032CF1: mov eax, edi */ 6658 /* test eax, eax */ /* 0x47032CF3: test eax, eax */ 6659 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6660 _cf = 0; 6661 _flag_k = FK_TEST; 6662 edi = MEM32(edi); /* 0x47032CF5: mov edi, dword ptr [edi] */ 6663 if (TEST_Z(_flag_a, _flag_b)) goto L_47032D02; /* 0x47032CF7: je 0x47032d02 */ 6664 L_47032CF9: 6665 ecx = MEM32(esi + 0x8); /* 0x47032CF9: mov ecx, dword ptr [esi + 8] */ 6666 edx = MEM32(ecx); /* 0x47032CFC: mov edx, dword ptr [ecx] */ 6667 PUSH32(esp, eax); /* 0x47032CFE: push eax */ 6668 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47032CFF: call dword ptr [edx + 0xc] */ 6669 RECOMP_FLAGS_IN(); 6670 L_47032D02: 6671 ecx = MEM32(esi + 0x4); /* 0x47032D02: mov ecx, dword ptr [esi + 4] */ 6672 eax = MEM32(esi); /* 0x47032D05: mov eax, dword ptr [esi] */ 6673 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6674 ecx = ecx - 1; /* 0x47032D07: dec ecx */ 6675 _flag_k = FK_DEC; 6676 /* cmp edi, eax */ /* 0x47032D08: cmp edi, eax */ 6677 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6678 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6679 _flag_k = FK_CMP; 6680 MEM32(esi + 0x4) = ecx; /* 0x47032D0A: mov dword ptr [esi + 4], ecx */ 6681 RECOMP_BACKEDGE(); 6682 if (CMP_NE(_flag_a, _flag_b)) goto L_47032CF1; /* 0x47032D0D: jne 0x47032cf1 */ 6683 L_47032D0F: 6684 eax = MEM32(esi); /* 0x47032D0F: mov eax, dword ptr [esi] */ 6685 MEM32(eax) = eax; /* 0x47032D11: mov dword ptr [eax], eax */ 6686 eax = MEM32(ebx); /* 0x47032D13: mov eax, dword ptr [ebx] */ 6687 edi = MEM32(eax); /* 0x47032D15: mov edi, dword ptr [eax] */ 6688 /* cmp edi, eax */ /* 0x47032D17: cmp edi, eax */ 6689 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6690 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6691 _flag_k = FK_CMP; 6692 if (CMP_EQ(_flag_a, _flag_b)) goto L_47032D2C; /* 0x47032D19: je 0x47032d2c */ 6693 L_47032D1B: 6694 eax = edi + 0x4; /* 0x47032D1B: lea eax, [edi + 4] */ 6695 PUSH32(esp, eax); /* 0x47032D1E: push eax */ 6696 ecx = esi; /* 0x47032D1F: mov ecx, esi */ 6697 RECOMP_ICALL(0x47067230u); /* 0x47032D21: call 0x47067230 */ /* not lifted */ 6698 RECOMP_FLAGS_IN(); 6699 edi = MEM32(edi); /* 0x47032D26: mov edi, dword ptr [edi] */ 6700 /* cmp edi, MEM32(ebx) */ /* 0x47032D28: cmp edi, dword ptr [ebx] */ 6701 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebx)); 6702 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6703 _flag_k = FK_CMP; 6704 RECOMP_BACKEDGE(); 6705 if (CMP_NE(_flag_a, _flag_b)) goto L_47032D1B; /* 0x47032D2A: jne 0x47032d1b */ 6706 L_47032D2C: 6707 edi = POP32_VAL(esp); /* 0x47032D2C: pop edi */ 6708 esi = POP32_VAL(esp); /* 0x47032D2D: pop esi */ 6709 eax = ebp; /* 0x47032D2E: mov eax, ebp */ 6710 ebp = POP32_VAL(esp); /* 0x47032D30: pop ebp */ 6711 ebx = POP32_VAL(esp); /* 0x47032D31: pop ebx */ 6712 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47032D32: ret 4 */ 6713 RECOMP_REGS_OUT(); 6714 } 6715 6716 void sub_47032D40(void) { 6717 int _fpu_cmp = 0; 6718 uint32_t _cf = 0; 6719 int _df = 1; 6720 uint32_t _flag_k = FK_NONE; 6721 uint32_t _flag_a = 0, _flag_b = 0; 6722 uint32_t _itail_tgt = 0; 6723 RECOMP_REGS_LOCALS 6724 RECOMP_ENTER(0x47032D40u); 6725 6726 L_47032D40: 6727 PUSH32(esp, esi); /* 0x47032D40: push esi */ 6728 esi = ecx; /* 0x47032D41: mov esi, ecx */ 6729 RECOMP_ICALL(0x4707A510u); /* 0x47032D43: call 0x4707a510 */ /* not lifted */ 6730 RECOMP_FLAGS_IN(); 6731 eax = esi; /* 0x47032D48: mov eax, esi */ 6732 esi = POP32_VAL(esp); /* 0x47032D4A: pop esi */ 6733 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47032D4B: ret */ 6734 RECOMP_REGS_OUT(); 6735 } 6736 6737 void sub_47032D50(void) { 6738 int _fpu_cmp = 0; 6739 uint32_t _cf = 0; 6740 int _df = 1; 6741 uint32_t _flag_k = FK_NONE; 6742 uint32_t _flag_a = 0, _flag_b = 0; 6743 uint32_t _itail_tgt = 0; 6744 RECOMP_REGS_LOCALS 6745 RECOMP_ENTER(0x47032D50u); 6746 6747 L_47032D50: 6748 PUSH32(esp, 0xFFFFFFFFu); /* 0x47032D50: push -1 */ 6749 PUSH32(esp, 0x470A57A8u); /* 0x47032D52: push 0x470a57a8 */ 6750 eax = MEM32(FS_BASE + (0)); /* 0x47032D57: mov eax, dword ptr fs:[0] */ 6751 PUSH32(esp, eax); /* 0x47032D5D: push eax */ 6752 MEM32(FS_BASE + (0)) = esp; /* 0x47032D5E: mov dword ptr fs:[0], esp */ 6753 PUSH32(esp, ecx); /* 0x47032D65: push ecx */ 6754 PUSH32(esp, esi); /* 0x47032D66: push esi */ 6755 esi = ecx; /* 0x47032D67: mov esi, ecx */ 6756 PUSH32(esp, edi); /* 0x47032D69: push edi */ 6757 MEM32(esp + 0x8) = esi; /* 0x47032D6A: mov dword ptr [esp + 8], esi */ 6758 eax = MEM32(esi + 0x4); /* 0x47032D6E: mov eax, dword ptr [esi + 4] */ 6759 edi = MEM32(eax); /* 0x47032D71: mov edi, dword ptr [eax] */ 6760 /* cmp edi, eax */ /* 0x47032D73: cmp edi, eax */ 6761 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6762 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6763 _flag_k = FK_CMP; 6764 MEM32(esp + 0x14) = 0; /* 0x47032D75: mov dword ptr [esp + 0x14], 0 */ 6765 if (CMP_EQ(_flag_a, _flag_b)) goto L_47032D9E; /* 0x47032D7D: je 0x47032d9e */ 6766 L_47032D7F: 6767 eax = edi; /* 0x47032D7F: mov eax, edi */ 6768 /* test eax, eax */ /* 0x47032D81: test eax, eax */ 6769 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6770 _cf = 0; 6771 _flag_k = FK_TEST; 6772 edi = MEM32(edi); /* 0x47032D83: mov edi, dword ptr [edi] */ 6773 if (TEST_Z(_flag_a, _flag_b)) goto L_47032D90; /* 0x47032D85: je 0x47032d90 */ 6774 L_47032D87: 6775 ecx = MEM32(esi + 0xC); /* 0x47032D87: mov ecx, dword ptr [esi + 0xc] */ 6776 edx = MEM32(ecx); /* 0x47032D8A: mov edx, dword ptr [ecx] */ 6777 PUSH32(esp, eax); /* 0x47032D8C: push eax */ 6778 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47032D8D: call dword ptr [edx + 0xc] */ 6779 RECOMP_FLAGS_IN(); 6780 L_47032D90: 6781 ecx = MEM32(esi + 0x8); /* 0x47032D90: mov ecx, dword ptr [esi + 8] */ 6782 eax = MEM32(esi + 0x4); /* 0x47032D93: mov eax, dword ptr [esi + 4] */ 6783 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6784 ecx = ecx - 1; /* 0x47032D96: dec ecx */ 6785 _flag_k = FK_DEC; 6786 /* cmp edi, eax */ /* 0x47032D97: cmp edi, eax */ 6787 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6788 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6789 _flag_k = FK_CMP; 6790 MEM32(esi + 0x8) = ecx; /* 0x47032D99: mov dword ptr [esi + 8], ecx */ 6791 RECOMP_BACKEDGE(); 6792 if (CMP_NE(_flag_a, _flag_b)) goto L_47032D7F; /* 0x47032D9C: jne 0x47032d7f */ 6793 L_47032D9E: 6794 eax = MEM32(esi + 0x4); /* 0x47032D9E: mov eax, dword ptr [esi + 4] */ 6795 MEM32(eax) = eax; /* 0x47032DA1: mov dword ptr [eax], eax */ 6796 eax = MEM32(esi + 0x4); /* 0x47032DA3: mov eax, dword ptr [esi + 4] */ 6797 /* test eax, eax */ /* 0x47032DA6: test eax, eax */ 6798 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6799 _cf = 0; 6800 _flag_k = FK_TEST; 6801 if (TEST_Z(_flag_a, _flag_b)) goto L_47032DB3; /* 0x47032DA8: je 0x47032db3 */ 6802 L_47032DAA: 6803 ecx = MEM32(esi + 0xC); /* 0x47032DAA: mov ecx, dword ptr [esi + 0xc] */ 6804 edx = MEM32(ecx); /* 0x47032DAD: mov edx, dword ptr [ecx] */ 6805 PUSH32(esp, eax); /* 0x47032DAF: push eax */ 6806 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47032DB0: call dword ptr [edx + 0xc] */ 6807 RECOMP_FLAGS_IN(); 6808 L_47032DB3: 6809 ecx = MEM32(esp + 0xC); /* 0x47032DB3: mov ecx, dword ptr [esp + 0xc] */ 6810 MEM32(esi + 0x4) = 0; /* 0x47032DB7: mov dword ptr [esi + 4], 0 */ 6811 edi = POP32_VAL(esp); /* 0x47032DBE: pop edi */ 6812 esi = POP32_VAL(esp); /* 0x47032DBF: pop esi */ 6813 MEM32(FS_BASE + (0)) = ecx; /* 0x47032DC0: mov dword ptr fs:[0], ecx */ 6814 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6815 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6816 esp = esp + 0x10u; /* 0x47032DC7: add esp, 0x10 */ 6817 _flag_k = FK_ADD; 6818 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47032DCA: ret */ 6819 RECOMP_REGS_OUT(); 6820 } 6821 6822 void sub_47032DD0(void) { 6823 int _fpu_cmp = 0; 6824 uint32_t _cf = 0; 6825 int _df = 1; 6826 uint32_t _flag_k = FK_NONE; 6827 uint32_t _flag_a = 0, _flag_b = 0; 6828 uint32_t _itail_tgt = 0; 6829 RECOMP_REGS_LOCALS 6830 RECOMP_ENTER(0x47032DD0u); 6831 6832 L_47032DD0: 6833 eax = MEM32(esp + 0x10); /* 0x47032DD0: mov eax, dword ptr [esp + 0x10] */ 6834 edx = MEM32(esp + 0xC); /* 0x47032DD4: mov edx, dword ptr [esp + 0xc] */ 6835 ecx = MEM32(ecx); /* 0x47032DD8: mov ecx, dword ptr [ecx] */ 6836 PUSH32(esp, eax); /* 0x47032DDA: push eax */ 6837 eax = MEM32(esp + 0xC); /* 0x47032DDB: mov eax, dword ptr [esp + 0xc] */ 6838 PUSH32(esp, edx); /* 0x47032DDF: push edx */ 6839 edx = MEM32(esp + 0xC); /* 0x47032DE0: mov edx, dword ptr [esp + 0xc] */ 6840 PUSH32(esp, eax); /* 0x47032DE4: push eax */ 6841 PUSH32(esp, edx); /* 0x47032DE5: push edx */ 6842 PUSH32(esp, ecx); /* 0x47032DE6: push ecx */ 6843 RECOMP_ICALL(0x4700BD90u); /* 0x47032DE7: call 0x4700bd90 */ /* not lifted */ 6844 RECOMP_FLAGS_IN(); 6845 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 6846 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6847 esp = esp + 0x14u; /* 0x47032DEC: add esp, 0x14 */ 6848 _flag_k = FK_ADD; 6849 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47032DEF: ret 0x10 */ 6850 RECOMP_REGS_OUT(); 6851 } 6852 6853 void sub_47032E00(void) { 6854 int _fpu_cmp = 0; 6855 uint32_t _cf = 0; 6856 int _df = 1; 6857 uint32_t _flag_k = FK_NONE; 6858 uint32_t _flag_a = 0, _flag_b = 0; 6859 uint32_t _itail_tgt = 0; 6860 RECOMP_REGS_LOCALS 6861 RECOMP_ENTER(0x47032E00u); 6862 6863 L_47032E00: 6864 eax = MEM32(esp + 0xC); /* 0x47032E00: mov eax, dword ptr [esp + 0xc] */ 6865 edx = MEM32(esp + 0x8); /* 0x47032E04: mov edx, dword ptr [esp + 8] */ 6866 ecx = MEM32(ecx); /* 0x47032E08: mov ecx, dword ptr [ecx] */ 6867 PUSH32(esp, eax); /* 0x47032E0A: push eax */ 6868 eax = MEM32(esp + 0x8); /* 0x47032E0B: mov eax, dword ptr [esp + 8] */ 6869 PUSH32(esp, edx); /* 0x47032E0F: push edx */ 6870 PUSH32(esp, eax); /* 0x47032E10: push eax */ 6871 PUSH32(esp, ecx); /* 0x47032E11: push ecx */ 6872 RECOMP_ICALL(0x4700BED0u); /* 0x47032E12: call 0x4700bed0 */ /* not lifted */ 6873 RECOMP_FLAGS_IN(); 6874 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6875 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6876 esp = esp + 0x10u; /* 0x47032E17: add esp, 0x10 */ 6877 _flag_k = FK_ADD; 6878 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47032E1A: ret 0xc */ 6879 RECOMP_REGS_OUT(); 6880 } 6881 6882 void sub_47032E20(void) { 6883 int _fpu_cmp = 0; 6884 uint32_t _cf = 0; 6885 int _df = 1; 6886 uint32_t _flag_k = FK_NONE; 6887 uint32_t _flag_a = 0, _flag_b = 0; 6888 uint32_t _itail_tgt = 0; 6889 RECOMP_REGS_LOCALS 6890 RECOMP_ENTER(0x47032E20u); 6891 6892 L_47032E20: 6893 eax = MEM32(esp + 0xC); /* 0x47032E20: mov eax, dword ptr [esp + 0xc] */ 6894 edx = MEM32(esp + 0x8); /* 0x47032E24: mov edx, dword ptr [esp + 8] */ 6895 ecx = MEM32(ecx); /* 0x47032E28: mov ecx, dword ptr [ecx] */ 6896 PUSH32(esp, eax); /* 0x47032E2A: push eax */ 6897 eax = MEM32(esp + 0x8); /* 0x47032E2B: mov eax, dword ptr [esp + 8] */ 6898 PUSH32(esp, edx); /* 0x47032E2F: push edx */ 6899 PUSH32(esp, eax); /* 0x47032E30: push eax */ 6900 PUSH32(esp, ecx); /* 0x47032E31: push ecx */ 6901 RECOMP_ICALL(0x4700C880u); /* 0x47032E32: call 0x4700c880 */ /* not lifted */ 6902 RECOMP_FLAGS_IN(); 6903 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6904 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6905 esp = esp + 0x10u; /* 0x47032E37: add esp, 0x10 */ 6906 _flag_k = FK_ADD; 6907 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47032E3A: ret 0xc */ 6908 RECOMP_REGS_OUT(); 6909 } 6910 6911 void sub_47032E40(void) { 6912 int _fpu_cmp = 0; 6913 uint32_t _cf = 0; 6914 int _df = 1; 6915 uint32_t _flag_k = FK_NONE; 6916 uint32_t _flag_a = 0, _flag_b = 0; 6917 uint32_t _itail_tgt = 0; 6918 RECOMP_REGS_LOCALS 6919 RECOMP_ENTER(0x47032E40u); 6920 6921 L_47032E40: 6922 eax = MEM32(esp + 0x8); /* 0x47032E40: mov eax, dword ptr [esp + 8] */ 6923 edx = MEM32(esp + 0x4); /* 0x47032E44: mov edx, dword ptr [esp + 4] */ 6924 PUSH32(esp, eax); /* 0x47032E48: push eax */ 6925 PUSH32(esp, edx); /* 0x47032E49: push edx */ 6926 RECOMP_ICALL(0x4707E430u); /* 0x47032E4A: call 0x4707e430 */ /* not lifted */ 6927 RECOMP_FLAGS_IN(); 6928 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47032E4F: ret 8 */ 6929 RECOMP_REGS_OUT(); 6930 } 6931 6932 void sub_47032E60(void) { 6933 int _fpu_cmp = 0; 6934 uint32_t _cf = 0; 6935 int _df = 1; 6936 uint32_t _flag_k = FK_NONE; 6937 uint32_t _flag_a = 0, _flag_b = 0; 6938 uint32_t _itail_tgt = 0; 6939 RECOMP_REGS_LOCALS 6940 RECOMP_ENTER(0x47032E60u); 6941 6942 L_47032E60: 6943 eax = MEM32(esp + 0xC); /* 0x47032E60: mov eax, dword ptr [esp + 0xc] */ 6944 ecx = MEM32(ecx); /* 0x47032E64: mov ecx, dword ptr [ecx] */ 6945 PUSH32(esp, eax); /* 0x47032E66: push eax */ 6946 eax = MEM32(esp + 0xC); /* 0x47032E67: mov eax, dword ptr [esp + 0xc] */ 6947 edx = esp + 0x10; /* 0x47032E6B: lea edx, [esp + 0x10] */ 6948 PUSH32(esp, edx); /* 0x47032E6F: push edx */ 6949 edx = MEM32(esp + 0xC); /* 0x47032E70: mov edx, dword ptr [esp + 0xc] */ 6950 PUSH32(esp, eax); /* 0x47032E74: push eax */ 6951 PUSH32(esp, edx); /* 0x47032E75: push edx */ 6952 PUSH32(esp, ecx); /* 0x47032E76: push ecx */ 6953 RECOMP_ICALL(MEM32(0x470AC110)); /* 0x47032E77: call dword ptr [0x470ac110] */ 6954 RECOMP_FLAGS_IN(); 6955 /* test eax, eax */ /* 0x47032E7D: test eax, eax */ 6956 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6957 _cf = 0; 6958 _flag_k = FK_TEST; 6959 if (TEST_Z(_flag_a, _flag_b)) goto L_47032E88; /* 0x47032E7F: je 0x47032e88 */ 6960 L_47032E81: 6961 eax = MEM32(esp + 0xC); /* 0x47032E81: mov eax, dword ptr [esp + 0xc] */ 6962 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47032E85: ret 0xc */ 6963 L_47032E88: 6964 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6965 eax = eax | 0xFFFFFFFFu; /* 0x47032E88: or eax, 0xffffffff */ 6966 _cf = 0; 6967 _flag_k = FK_TEST; 6968 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47032E8B: ret 0xc */ 6969 RECOMP_REGS_OUT(); 6970 } 6971 6972 void sub_47032E90(void) { 6973 int _fpu_cmp = 0; 6974 uint32_t _cf = 0; 6975 int _df = 1; 6976 uint32_t _flag_k = FK_NONE; 6977 uint32_t _flag_a = 0, _flag_b = 0; 6978 uint32_t _itail_tgt = 0; 6979 RECOMP_REGS_LOCALS 6980 RECOMP_ENTER(0x47032E90u); 6981 6982 L_47032E90: 6983 eax = MEM32(esp + 0x10); /* 0x47032E90: mov eax, dword ptr [esp + 0x10] */ 6984 edx = MEM32(esp + 0xC); /* 0x47032E94: mov edx, dword ptr [esp + 0xc] */ 6985 ecx = MEM32(ecx); /* 0x47032E98: mov ecx, dword ptr [ecx] */ 6986 PUSH32(esp, eax); /* 0x47032E9A: push eax */ 6987 eax = MEM32(esp + 0xC); /* 0x47032E9B: mov eax, dword ptr [esp + 0xc] */ 6988 PUSH32(esp, edx); /* 0x47032E9F: push edx */ 6989 edx = MEM32(esp + 0xC); /* 0x47032EA0: mov edx, dword ptr [esp + 0xc] */ 6990 PUSH32(esp, eax); /* 0x47032EA4: push eax */ 6991 PUSH32(esp, edx); /* 0x47032EA5: push edx */ 6992 PUSH32(esp, ecx); /* 0x47032EA6: push ecx */ 6993 RECOMP_ICALL(0x4700CDC0u); /* 0x47032EA7: call 0x4700cdc0 */ /* not lifted */ 6994 RECOMP_FLAGS_IN(); 6995 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 6996 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6997 esp = esp + 0x14u; /* 0x47032EAC: add esp, 0x14 */ 6998 _flag_k = FK_ADD; 6999 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47032EAF: ret 0x10 */ 7000 RECOMP_REGS_OUT(); 7001 } 7002 7003 void sub_47032EC0(void) { 7004 int _fpu_cmp = 0; 7005 uint32_t _cf = 0; 7006 int _df = 1; 7007 uint32_t _flag_k = FK_NONE; 7008 uint32_t _flag_a = 0, _flag_b = 0; 7009 uint32_t _itail_tgt = 0; 7010 RECOMP_REGS_LOCALS 7011 RECOMP_ENTER(0x47032EC0u); 7012 7013 L_47032EC0: 7014 eax = MEM32(esp + 0xC); /* 0x47032EC0: mov eax, dword ptr [esp + 0xc] */ 7015 edx = MEM32(esp + 0x8); /* 0x47032EC4: mov edx, dword ptr [esp + 8] */ 7016 ecx = MEM32(ecx); /* 0x47032EC8: mov ecx, dword ptr [ecx] */ 7017 PUSH32(esp, eax); /* 0x47032ECA: push eax */ 7018 eax = MEM32(esp + 0x8); /* 0x47032ECB: mov eax, dword ptr [esp + 8] */ 7019 PUSH32(esp, edx); /* 0x47032ECF: push edx */ 7020 PUSH32(esp, eax); /* 0x47032ED0: push eax */ 7021 PUSH32(esp, ecx); /* 0x47032ED1: push ecx */ 7022 RECOMP_ICALL(0x4700CF00u); /* 0x47032ED2: call 0x4700cf00 */ /* not lifted */ 7023 RECOMP_FLAGS_IN(); 7024 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7025 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7026 esp = esp + 0x10u; /* 0x47032ED7: add esp, 0x10 */ 7027 _flag_k = FK_ADD; 7028 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47032EDA: ret 0xc */ 7029 RECOMP_REGS_OUT(); 7030 } 7031 7032 void sub_47032EE0(void) { 7033 int _fpu_cmp = 0; 7034 uint32_t _cf = 0; 7035 int _df = 1; 7036 uint32_t _flag_k = FK_NONE; 7037 uint32_t _flag_a = 0, _flag_b = 0; 7038 uint32_t _itail_tgt = 0; 7039 RECOMP_REGS_LOCALS 7040 RECOMP_ENTER(0x47032EE0u); 7041 7042 L_47032EE0: 7043 eax = MEM32(esp + 0xC); /* 0x47032EE0: mov eax, dword ptr [esp + 0xc] */ 7044 edx = MEM32(esp + 0x8); /* 0x47032EE4: mov edx, dword ptr [esp + 8] */ 7045 ecx = MEM32(ecx); /* 0x47032EE8: mov ecx, dword ptr [ecx] */ 7046 PUSH32(esp, eax); /* 0x47032EEA: push eax */ 7047 eax = MEM32(esp + 0x8); /* 0x47032EEB: mov eax, dword ptr [esp + 8] */ 7048 PUSH32(esp, edx); /* 0x47032EEF: push edx */ 7049 PUSH32(esp, eax); /* 0x47032EF0: push eax */ 7050 PUSH32(esp, ecx); /* 0x47032EF1: push ecx */ 7051 RECOMP_ICALL(0x4700D870u); /* 0x47032EF2: call 0x4700d870 */ /* not lifted */ 7052 RECOMP_FLAGS_IN(); 7053 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7054 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7055 esp = esp + 0x10u; /* 0x47032EF7: add esp, 0x10 */ 7056 _flag_k = FK_ADD; 7057 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47032EFA: ret 0xc */ 7058 RECOMP_REGS_OUT(); 7059 } 7060 7061 void sub_47032F00(void) { 7062 int _fpu_cmp = 0; 7063 uint32_t _cf = 0; 7064 int _df = 1; 7065 uint32_t _flag_k = FK_NONE; 7066 uint32_t _flag_a = 0, _flag_b = 0; 7067 uint32_t _itail_tgt = 0; 7068 RECOMP_REGS_LOCALS 7069 RECOMP_ENTER(0x47032F00u); 7070 7071 L_47032F00: 7072 eax = MEM32(esp + 0xC); /* 0x47032F00: mov eax, dword ptr [esp + 0xc] */ 7073 ecx = MEM32(ecx); /* 0x47032F04: mov ecx, dword ptr [ecx] */ 7074 PUSH32(esp, eax); /* 0x47032F06: push eax */ 7075 eax = MEM32(esp + 0xC); /* 0x47032F07: mov eax, dword ptr [esp + 0xc] */ 7076 edx = esp + 0x10; /* 0x47032F0B: lea edx, [esp + 0x10] */ 7077 PUSH32(esp, edx); /* 0x47032F0F: push edx */ 7078 edx = MEM32(esp + 0xC); /* 0x47032F10: mov edx, dword ptr [esp + 0xc] */ 7079 PUSH32(esp, eax); /* 0x47032F14: push eax */ 7080 PUSH32(esp, edx); /* 0x47032F15: push edx */ 7081 PUSH32(esp, ecx); /* 0x47032F16: push ecx */ 7082 RECOMP_ICALL(MEM32(0x470AC114)); /* 0x47032F17: call dword ptr [0x470ac114] */ 7083 RECOMP_FLAGS_IN(); 7084 /* test eax, eax */ /* 0x47032F1D: test eax, eax */ 7085 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7086 _cf = 0; 7087 _flag_k = FK_TEST; 7088 if (TEST_Z(_flag_a, _flag_b)) goto L_47032F28; /* 0x47032F1F: je 0x47032f28 */ 7089 L_47032F21: 7090 eax = MEM32(esp + 0xC); /* 0x47032F21: mov eax, dword ptr [esp + 0xc] */ 7091 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47032F25: ret 0xc */ 7092 L_47032F28: 7093 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 7094 eax = eax | 0xFFFFFFFFu; /* 0x47032F28: or eax, 0xffffffff */ 7095 _cf = 0; 7096 _flag_k = FK_TEST; 7097 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47032F2B: ret 0xc */ 7098 RECOMP_REGS_OUT(); 7099 } 7100 7101 void sub_47032F30(void) { 7102 int _fpu_cmp = 0; 7103 uint32_t _cf = 0; 7104 int _df = 1; 7105 uint32_t _flag_k = FK_NONE; 7106 uint32_t _flag_a = 0, _flag_b = 0; 7107 uint32_t _itail_tgt = 0; 7108 RECOMP_REGS_LOCALS 7109 RECOMP_ENTER(0x47032F30u); 7110 7111 L_47032F30: 7112 PUSH32(esp, 0xFFFFFFFFu); /* 0x47032F30: push -1 */ 7113 PUSH32(esp, 0x470A57C8u); /* 0x47032F32: push 0x470a57c8 */ 7114 eax = MEM32(FS_BASE + (0)); /* 0x47032F37: mov eax, dword ptr fs:[0] */ 7115 PUSH32(esp, eax); /* 0x47032F3D: push eax */ 7116 MEM32(FS_BASE + (0)) = esp; /* 0x47032F3E: mov dword ptr fs:[0], esp */ 7117 PUSH32(esp, ecx); /* 0x47032F45: push ecx */ 7118 PUSH32(esp, ebx); /* 0x47032F46: push ebx */ 7119 ebx = MEM32(esp + 0x18); /* 0x47032F47: mov ebx, dword ptr [esp + 0x18] */ 7120 eax = MEM32(ebx); /* 0x47032F4B: mov eax, dword ptr [ebx] */ 7121 PUSH32(esp, esi); /* 0x47032F4D: push esi */ 7122 esi = ecx; /* 0x47032F4E: mov esi, ecx */ 7123 PUSH32(esp, edi); /* 0x47032F50: push edi */ 7124 MEM32(esp + 0xC) = esi; /* 0x47032F51: mov dword ptr [esp + 0xc], esi */ 7125 MEM32(esi) = eax; /* 0x47032F55: mov dword ptr [esi], eax */ 7126 MEM32(esi + 0x4) = 0; /* 0x47032F57: mov dword ptr [esi + 4], 0 */ 7127 MEM32(esi + 0x8) = 0; /* 0x47032F5E: mov dword ptr [esi + 8], 0 */ 7128 eax = MEM32(ebx + 0xC); /* 0x47032F65: mov eax, dword ptr [ebx + 0xc] */ 7129 /* test eax, eax */ /* 0x47032F68: test eax, eax */ 7130 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7131 _cf = 0; 7132 _flag_k = FK_TEST; 7133 MEM32(esp + 0x18) = 0; /* 0x47032F6A: mov dword ptr [esp + 0x18], 0 */ 7134 MEM32(esi + 0xC) = eax; /* 0x47032F72: mov dword ptr [esi + 0xc], eax */ 7135 if (TEST_NZ(_flag_a, _flag_b)) goto L_47032F7F; /* 0x47032F75: jne 0x47032f7f */ 7136 L_47032F77: 7137 RECOMP_ICALL(0x4703DAC0u); /* 0x47032F77: call 0x4703dac0 */ /* not lifted */ 7138 RECOMP_FLAGS_IN(); 7139 MEM32(esi + 0xC) = eax; /* 0x47032F7C: mov dword ptr [esi + 0xc], eax */ 7140 L_47032F7F: 7141 ecx = MEM32(esi + 0xC); /* 0x47032F7F: mov ecx, dword ptr [esi + 0xc] */ 7142 edx = MEM32(ecx); /* 0x47032F82: mov edx, dword ptr [ecx] */ 7143 PUSH32(esp, 8); /* 0x47032F84: push 8 */ 7144 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47032F86: call dword ptr [edx + 4] */ 7145 RECOMP_FLAGS_IN(); 7146 /* test eax, eax */ /* 0x47032F89: test eax, eax */ 7147 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7148 _cf = 0; 7149 _flag_k = FK_TEST; 7150 MEM32(esi + 0x4) = eax; /* 0x47032F8B: mov dword ptr [esi + 4], eax */ 7151 if (TEST_Z(_flag_a, _flag_b)) goto L_47032FC4; /* 0x47032F8E: je 0x47032fc4 */ 7152 L_47032F90: 7153 MEM32(eax) = 0; /* 0x47032F90: mov dword ptr [eax], 0 */ 7154 eax = MEM32(esi + 0x4); /* 0x47032F96: mov eax, dword ptr [esi + 4] */ 7155 MEM32(eax) = eax; /* 0x47032F99: mov dword ptr [eax], eax */ 7156 eax = MEM32(ebx + 0x4); /* 0x47032F9B: mov eax, dword ptr [ebx + 4] */ 7157 edi = MEM32(eax); /* 0x47032F9E: mov edi, dword ptr [eax] */ 7158 /* cmp edi, eax */ /* 0x47032FA0: cmp edi, eax */ 7159 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7160 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7161 _flag_k = FK_CMP; 7162 if (CMP_EQ(_flag_a, _flag_b)) goto L_47032FF2; /* 0x47032FA2: je 0x47032ff2 */ 7163 L_47032FA4: 7164 ecx = MEM32(edi + 0x4); /* 0x47032FA4: mov ecx, dword ptr [edi + 4] */ 7165 eax = MEM32(esi + 0x4); /* 0x47032FA7: mov eax, dword ptr [esi + 4] */ 7166 MEM32(eax + 0x4) = ecx; /* 0x47032FAA: mov dword ptr [eax + 4], ecx */ 7167 ecx = MEM32(esi + 0xC); /* 0x47032FAD: mov ecx, dword ptr [esi + 0xc] */ 7168 edx = MEM32(ecx); /* 0x47032FB0: mov edx, dword ptr [ecx] */ 7169 PUSH32(esp, 8); /* 0x47032FB2: push 8 */ 7170 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47032FB4: call dword ptr [edx + 4] */ 7171 RECOMP_FLAGS_IN(); 7172 /* test eax, eax */ /* 0x47032FB7: test eax, eax */ 7173 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7174 _cf = 0; 7175 _flag_k = FK_TEST; 7176 if (TEST_Z(_flag_a, _flag_b)) goto L_47032FD2; /* 0x47032FB9: je 0x47032fd2 */ 7177 L_47032FBB: 7178 ecx = MEM32(esi + 0x4); /* 0x47032FBB: mov ecx, dword ptr [esi + 4] */ 7179 edx = MEM32(ecx); /* 0x47032FBE: mov edx, dword ptr [ecx] */ 7180 MEM32(eax) = edx; /* 0x47032FC0: mov dword ptr [eax], edx */ 7181 goto L_47032FE0; /* 0x47032FC2: jmp 0x47032fe0 */ 7182 L_47032FC4: 7183 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47032FC4: call dword ptr [0x470ac3c8] */ 7184 RECOMP_FLAGS_IN(); 7185 MEM32(eax) = 0xCu; /* 0x47032FCA: mov dword ptr [eax], 0xc */ 7186 goto L_47032FF2; /* 0x47032FD0: jmp 0x47032ff2 */ 7187 L_47032FD2: 7188 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47032FD2: call dword ptr [0x470ac3c8] */ 7189 RECOMP_FLAGS_IN(); 7190 MEM32(eax) = 0xCu; /* 0x47032FD8: mov dword ptr [eax], 0xc */ 7191 goto L_47032FEB; /* 0x47032FDE: jmp 0x47032feb */ 7192 L_47032FE0: 7193 ecx = MEM32(esi + 0x4); /* 0x47032FE0: mov ecx, dword ptr [esi + 4] */ 7194 MEM32(ecx) = eax; /* 0x47032FE3: mov dword ptr [ecx], eax */ 7195 MEM32(esi + 0x4) = eax; /* 0x47032FE5: mov dword ptr [esi + 4], eax */ 7196 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(1); 7197 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 1; /* 0x47032FE8: inc dword ptr [esi + 8] */ 7198 _flag_k = FK_INC; 7199 L_47032FEB: 7200 edi = MEM32(edi); /* 0x47032FEB: mov edi, dword ptr [edi] */ 7201 /* cmp edi, MEM32(ebx + 0x4) */ /* 0x47032FED: cmp edi, dword ptr [ebx + 4] */ 7202 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebx + 0x4)); 7203 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7204 _flag_k = FK_CMP; 7205 RECOMP_BACKEDGE(); 7206 if (CMP_NE(_flag_a, _flag_b)) goto L_47032FA4; /* 0x47032FF0: jne 0x47032fa4 */ 7207 L_47032FF2: 7208 ecx = MEM32(esp + 0x10); /* 0x47032FF2: mov ecx, dword ptr [esp + 0x10] */ 7209 edi = POP32_VAL(esp); /* 0x47032FF6: pop edi */ 7210 eax = esi; /* 0x47032FF7: mov eax, esi */ 7211 esi = POP32_VAL(esp); /* 0x47032FF9: pop esi */ 7212 ebx = POP32_VAL(esp); /* 0x47032FFA: pop ebx */ 7213 MEM32(FS_BASE + (0)) = ecx; /* 0x47032FFB: mov dword ptr fs:[0], ecx */ 7214 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7215 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7216 esp = esp + 0x10u; /* 0x47033002: add esp, 0x10 */ 7217 _flag_k = FK_ADD; 7218 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033005: ret 4 */ 7219 RECOMP_REGS_OUT(); 7220 } 7221 7222 void sub_47033010(void) { 7223 int _fpu_cmp = 0; 7224 uint32_t _cf = 0; 7225 int _df = 1; 7226 uint32_t _flag_k = FK_NONE; 7227 uint32_t _flag_a = 0, _flag_b = 0; 7228 uint32_t _itail_tgt = 0; 7229 RECOMP_REGS_LOCALS 7230 RECOMP_ENTER(0x47033010u); 7231 7232 L_47033010: 7233 PUSH32(esp, esi); /* 0x47033010: push esi */ 7234 esi = ecx; /* 0x47033011: mov esi, ecx */ 7235 RECOMP_ICALL(0x4707A510u); /* 0x47033013: call 0x4707a510 */ /* not lifted */ 7236 RECOMP_FLAGS_IN(); 7237 eax = MEM32(esp + 0x8); /* 0x47033018: mov eax, dword ptr [esp + 8] */ 7238 MEM32(esi) = eax; /* 0x4703301C: mov dword ptr [esi], eax */ 7239 eax = esi; /* 0x4703301E: mov eax, esi */ 7240 esi = POP32_VAL(esp); /* 0x47033020: pop esi */ 7241 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033021: ret 4 */ 7242 RECOMP_REGS_OUT(); 7243 } 7244 7245 void sub_47033030(void) { 7246 int _fpu_cmp = 0; 7247 uint32_t _cf = 0; 7248 int _df = 1; 7249 uint32_t _flag_k = FK_NONE; 7250 uint32_t _flag_a = 0, _flag_b = 0; 7251 uint32_t _itail_tgt = 0; 7252 RECOMP_REGS_LOCALS 7253 RECOMP_ENTER(0x47033030u); 7254 7255 L_47033030: 7256 PUSH32(esp, 0xFFFFFFFFu); /* 0x47033030: push -1 */ 7257 PUSH32(esp, 0x470A57E8u); /* 0x47033032: push 0x470a57e8 */ 7258 eax = MEM32(FS_BASE + (0)); /* 0x47033037: mov eax, dword ptr fs:[0] */ 7259 PUSH32(esp, eax); /* 0x4703303D: push eax */ 7260 MEM32(FS_BASE + (0)) = esp; /* 0x4703303E: mov dword ptr fs:[0], esp */ 7261 PUSH32(esp, ecx); /* 0x47033045: push ecx */ 7262 PUSH32(esp, esi); /* 0x47033046: push esi */ 7263 esi = ecx; /* 0x47033047: mov esi, ecx */ 7264 PUSH32(esp, edi); /* 0x47033049: push edi */ 7265 MEM32(esp + 0x8) = esi; /* 0x4703304A: mov dword ptr [esp + 8], esi */ 7266 eax = MEM32(esi + 0x4); /* 0x4703304E: mov eax, dword ptr [esi + 4] */ 7267 edi = MEM32(eax); /* 0x47033051: mov edi, dword ptr [eax] */ 7268 /* cmp edi, eax */ /* 0x47033053: cmp edi, eax */ 7269 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7270 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7271 _flag_k = FK_CMP; 7272 MEM32(esp + 0x14) = 0; /* 0x47033055: mov dword ptr [esp + 0x14], 0 */ 7273 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703307E; /* 0x4703305D: je 0x4703307e */ 7274 L_4703305F: 7275 eax = edi; /* 0x4703305F: mov eax, edi */ 7276 /* test eax, eax */ /* 0x47033061: test eax, eax */ 7277 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7278 _cf = 0; 7279 _flag_k = FK_TEST; 7280 edi = MEM32(edi); /* 0x47033063: mov edi, dword ptr [edi] */ 7281 if (TEST_Z(_flag_a, _flag_b)) goto L_47033070; /* 0x47033065: je 0x47033070 */ 7282 L_47033067: 7283 ecx = MEM32(esi + 0xC); /* 0x47033067: mov ecx, dword ptr [esi + 0xc] */ 7284 edx = MEM32(ecx); /* 0x4703306A: mov edx, dword ptr [ecx] */ 7285 PUSH32(esp, eax); /* 0x4703306C: push eax */ 7286 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4703306D: call dword ptr [edx + 0xc] */ 7287 RECOMP_FLAGS_IN(); 7288 L_47033070: 7289 ecx = MEM32(esi + 0x8); /* 0x47033070: mov ecx, dword ptr [esi + 8] */ 7290 eax = MEM32(esi + 0x4); /* 0x47033073: mov eax, dword ptr [esi + 4] */ 7291 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7292 ecx = ecx - 1; /* 0x47033076: dec ecx */ 7293 _flag_k = FK_DEC; 7294 /* cmp edi, eax */ /* 0x47033077: cmp edi, eax */ 7295 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7296 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7297 _flag_k = FK_CMP; 7298 MEM32(esi + 0x8) = ecx; /* 0x47033079: mov dword ptr [esi + 8], ecx */ 7299 RECOMP_BACKEDGE(); 7300 if (CMP_NE(_flag_a, _flag_b)) goto L_4703305F; /* 0x4703307C: jne 0x4703305f */ 7301 L_4703307E: 7302 eax = MEM32(esi + 0x4); /* 0x4703307E: mov eax, dword ptr [esi + 4] */ 7303 MEM32(eax) = eax; /* 0x47033081: mov dword ptr [eax], eax */ 7304 eax = MEM32(esi + 0x4); /* 0x47033083: mov eax, dword ptr [esi + 4] */ 7305 /* test eax, eax */ /* 0x47033086: test eax, eax */ 7306 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7307 _cf = 0; 7308 _flag_k = FK_TEST; 7309 if (TEST_Z(_flag_a, _flag_b)) goto L_47033093; /* 0x47033088: je 0x47033093 */ 7310 L_4703308A: 7311 ecx = MEM32(esi + 0xC); /* 0x4703308A: mov ecx, dword ptr [esi + 0xc] */ 7312 edx = MEM32(ecx); /* 0x4703308D: mov edx, dword ptr [ecx] */ 7313 PUSH32(esp, eax); /* 0x4703308F: push eax */ 7314 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47033090: call dword ptr [edx + 0xc] */ 7315 RECOMP_FLAGS_IN(); 7316 L_47033093: 7317 ecx = MEM32(esp + 0xC); /* 0x47033093: mov ecx, dword ptr [esp + 0xc] */ 7318 MEM32(esi + 0x4) = 0; /* 0x47033097: mov dword ptr [esi + 4], 0 */ 7319 edi = POP32_VAL(esp); /* 0x4703309E: pop edi */ 7320 esi = POP32_VAL(esp); /* 0x4703309F: pop esi */ 7321 MEM32(FS_BASE + (0)) = ecx; /* 0x470330A0: mov dword ptr fs:[0], ecx */ 7322 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7323 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7324 esp = esp + 0x10u; /* 0x470330A7: add esp, 0x10 */ 7325 _flag_k = FK_ADD; 7326 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470330AA: ret */ 7327 RECOMP_REGS_OUT(); 7328 } 7329 7330 void sub_470330B0(void) { 7331 int _fpu_cmp = 0; 7332 uint32_t _cf = 0; 7333 int _df = 1; 7334 uint32_t _flag_k = FK_NONE; 7335 uint32_t _flag_a = 0, _flag_b = 0; 7336 uint32_t _itail_tgt = 0; 7337 RECOMP_REGS_LOCALS 7338 RECOMP_ENTER(0x470330B0u); 7339 7340 L_470330B0: 7341 eax = MEM32(ecx); /* 0x470330B0: mov eax, dword ptr [ecx] */ 7342 /* cmp eax, 0xFFFFFFFFu */ /* 0x470330B2: cmp eax, -1 */ 7343 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 7344 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7345 _flag_k = FK_CMP; 7346 if (CMP_EQ(_flag_a, _flag_b)) goto L_470330DB; /* 0x470330B5: je 0x470330db */ 7347 L_470330B7: 7348 PUSH32(esp, 0); /* 0x470330B7: push 0 */ 7349 PUSH32(esp, eax); /* 0x470330B9: push eax */ 7350 RECOMP_ICALL(MEM32(0x470AC43C)); /* 0x470330BA: call dword ptr [0x470ac43c] */ 7351 RECOMP_FLAGS_IN(); 7352 /* cmp eax, 0xFFFFFFFFu */ /* 0x470330C0: cmp eax, -1 */ 7353 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 7354 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7355 _flag_k = FK_CMP; 7356 if (CMP_NE(_flag_a, _flag_b)) goto L_470330DD; /* 0x470330C3: jne 0x470330dd */ 7357 L_470330C5: 7358 PUSH32(esp, esi); /* 0x470330C5: push esi */ 7359 RECOMP_ICALL(MEM32(0x470AC4A4)); /* 0x470330C6: call dword ptr [0x470ac4a4] */ 7360 RECOMP_FLAGS_IN(); 7361 esi = eax; /* 0x470330CC: mov esi, eax */ 7362 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470330CE: call dword ptr [0x470ac3c8] */ 7363 RECOMP_FLAGS_IN(); 7364 MEM32(eax) = esi; /* 0x470330D4: mov dword ptr [eax], esi */ 7365 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 7366 eax = eax | 0xFFFFFFFFu; /* 0x470330D6: or eax, 0xffffffff */ 7367 _cf = 0; 7368 _flag_k = FK_TEST; 7369 esi = POP32_VAL(esp); /* 0x470330D9: pop esi */ 7370 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470330DA: ret */ 7371 L_470330DB: 7372 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7373 eax = 0; /* 0x470330DB: xor eax, eax */ 7374 _cf = 0; 7375 _flag_k = FK_TEST; 7376 L_470330DD: 7377 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470330DD: ret */ 7378 RECOMP_REGS_OUT(); 7379 } 7380 7381 void sub_470330E0(void) { 7382 int _fpu_cmp = 0; 7383 uint32_t _cf = 0; 7384 int _df = 1; 7385 uint32_t _flag_k = FK_NONE; 7386 uint32_t _flag_a = 0, _flag_b = 0; 7387 uint32_t _itail_tgt = 0; 7388 RECOMP_REGS_LOCALS 7389 RECOMP_ENTER(0x470330E0u); 7390 7391 L_470330E0: 7392 eax = MEM32(ecx); /* 0x470330E0: mov eax, dword ptr [ecx] */ 7393 /* cmp eax, 0xFFFFFFFFu */ /* 0x470330E2: cmp eax, -1 */ 7394 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 7395 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7396 _flag_k = FK_CMP; 7397 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703310B; /* 0x470330E5: je 0x4703310b */ 7398 L_470330E7: 7399 PUSH32(esp, 1); /* 0x470330E7: push 1 */ 7400 PUSH32(esp, eax); /* 0x470330E9: push eax */ 7401 RECOMP_ICALL(MEM32(0x470AC43C)); /* 0x470330EA: call dword ptr [0x470ac43c] */ 7402 RECOMP_FLAGS_IN(); 7403 /* cmp eax, 0xFFFFFFFFu */ /* 0x470330F0: cmp eax, -1 */ 7404 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 7405 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7406 _flag_k = FK_CMP; 7407 if (CMP_NE(_flag_a, _flag_b)) goto L_4703310D; /* 0x470330F3: jne 0x4703310d */ 7408 L_470330F5: 7409 PUSH32(esp, esi); /* 0x470330F5: push esi */ 7410 RECOMP_ICALL(MEM32(0x470AC4A4)); /* 0x470330F6: call dword ptr [0x470ac4a4] */ 7411 RECOMP_FLAGS_IN(); 7412 esi = eax; /* 0x470330FC: mov esi, eax */ 7413 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470330FE: call dword ptr [0x470ac3c8] */ 7414 RECOMP_FLAGS_IN(); 7415 MEM32(eax) = esi; /* 0x47033104: mov dword ptr [eax], esi */ 7416 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 7417 eax = eax | 0xFFFFFFFFu; /* 0x47033106: or eax, 0xffffffff */ 7418 _cf = 0; 7419 _flag_k = FK_TEST; 7420 esi = POP32_VAL(esp); /* 0x47033109: pop esi */ 7421 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703310A: ret */ 7422 L_4703310B: 7423 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7424 eax = 0; /* 0x4703310B: xor eax, eax */ 7425 _cf = 0; 7426 _flag_k = FK_TEST; 7427 L_4703310D: 7428 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703310D: ret */ 7429 RECOMP_REGS_OUT(); 7430 }