client/vendor/ace/source/lifted-0043.c (294761B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 4 void sub_47062050(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(0x47062050u); 13 14 L_47062050: 15 MEM32(0x4710EAB4) = 0x47104B6Cu; /* 0x47062050: mov dword ptr [0x4710eab4], 0x47104b6c */ 16 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706205A: ret */ 17 RECOMP_REGS_OUT(); 18 } 19 20 void sub_47062060(void) { 21 int _fpu_cmp = 0; 22 uint32_t _cf = 0; 23 int _df = 1; 24 uint32_t _flag_k = FK_NONE; 25 uint32_t _flag_a = 0, _flag_b = 0; 26 uint32_t _itail_tgt = 0; 27 RECOMP_REGS_LOCALS 28 RECOMP_ENTER(0x47062060u); 29 30 L_47062060: 31 MEM32(0x4710EA7C) = 0x47104BA0u; /* 0x47062060: mov dword ptr [0x4710ea7c], 0x47104ba0 */ 32 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706206A: ret */ 33 RECOMP_REGS_OUT(); 34 } 35 36 void sub_47062070(void) { 37 int _fpu_cmp = 0; 38 uint32_t _cf = 0; 39 int _df = 1; 40 uint32_t _flag_k = FK_NONE; 41 uint32_t _flag_a = 0, _flag_b = 0; 42 uint32_t _itail_tgt = 0; 43 RECOMP_REGS_LOCALS 44 RECOMP_ENTER(0x47062070u); 45 46 L_47062070: 47 MEM32(0x4710EAA8) = 0x47104BD4u; /* 0x47062070: mov dword ptr [0x4710eaa8], 0x47104bd4 */ 48 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706207A: ret */ 49 RECOMP_REGS_OUT(); 50 } 51 52 void sub_47062080(void) { 53 int _fpu_cmp = 0; 54 uint32_t _cf = 0; 55 int _df = 1; 56 uint32_t _flag_k = FK_NONE; 57 uint32_t _flag_a = 0, _flag_b = 0; 58 uint32_t _itail_tgt = 0; 59 RECOMP_REGS_LOCALS 60 RECOMP_ENTER(0x47062080u); 61 62 L_47062080: 63 MEM32(0x4710EAA4) = 0x471050FCu; /* 0x47062080: mov dword ptr [0x4710eaa4], 0x471050fc */ 64 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706208A: ret */ 65 RECOMP_REGS_OUT(); 66 } 67 68 void sub_47062090(void) { 69 int _fpu_cmp = 0; 70 uint32_t _cf = 0; 71 int _df = 1; 72 uint32_t _flag_k = FK_NONE; 73 uint32_t _flag_a = 0, _flag_b = 0; 74 uint32_t _itail_tgt = 0; 75 RECOMP_REGS_LOCALS 76 RECOMP_ENTER(0x47062090u); 77 78 L_47062090: 79 MEM32(0x4710EAA0) = 0x47105658u; /* 0x47062090: mov dword ptr [0x4710eaa0], 0x47105658 */ 80 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706209A: ret */ 81 RECOMP_REGS_OUT(); 82 } 83 84 void sub_470620A0(void) { 85 int _fpu_cmp = 0; 86 uint32_t _cf = 0; 87 int _df = 1; 88 uint32_t _flag_k = FK_NONE; 89 uint32_t _flag_a = 0, _flag_b = 0; 90 uint32_t _itail_tgt = 0; 91 RECOMP_REGS_LOCALS 92 RECOMP_ENTER(0x470620A0u); 93 94 L_470620A0: 95 MEM32(0x4710EA70) = 0x47105690u; /* 0x470620A0: mov dword ptr [0x4710ea70], 0x47105690 */ 96 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470620AA: ret */ 97 RECOMP_REGS_OUT(); 98 } 99 100 void sub_470620B0(void) { 101 int _fpu_cmp = 0; 102 uint32_t _cf = 0; 103 int _df = 1; 104 uint32_t _flag_k = FK_NONE; 105 uint32_t _flag_a = 0, _flag_b = 0; 106 uint32_t _itail_tgt = 0; 107 RECOMP_REGS_LOCALS 108 RECOMP_ENTER(0x470620B0u); 109 110 L_470620B0: 111 MEM32(0x4710EAB8) = 0x471056C8u; /* 0x470620B0: mov dword ptr [0x4710eab8], 0x471056c8 */ 112 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470620BA: ret */ 113 RECOMP_REGS_OUT(); 114 } 115 116 void sub_470620C0(void) { 117 int _fpu_cmp = 0; 118 uint32_t _cf = 0; 119 int _df = 1; 120 uint32_t _flag_k = FK_NONE; 121 uint32_t _flag_a = 0, _flag_b = 0; 122 uint32_t _itail_tgt = 0; 123 RECOMP_REGS_LOCALS 124 RECOMP_ENTER(0x470620C0u); 125 126 goto L_470620C0; 127 L_4702A7B0: 128 MEM32(ecx) = 0x470AC5C0u; /* 0x4702A7B0: mov dword ptr [ecx], 0x470ac5c0 */ 129 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702A7B6: ret */ 130 L_470620C0: 131 MEM32(ecx) = 0x470AE2C8u; /* 0x470620C0: mov dword ptr [ecx], 0x470ae2c8 */ 132 RECOMP_BACKEDGE(); 133 goto L_4702A7B0; /* 0x470620C6: jmp 0x4702a7b0 */ 134 { RECOMP_REGS_OUT(); return; } /* end of function */ 135 RECOMP_REGS_OUT(); 136 } 137 138 void sub_470620D0(void) { 139 int _fpu_cmp = 0; 140 uint32_t _cf = 0; 141 int _df = 1; 142 uint32_t _flag_k = FK_NONE; 143 uint32_t _flag_a = 0, _flag_b = 0; 144 uint32_t _itail_tgt = 0; 145 RECOMP_REGS_LOCALS 146 RECOMP_ENTER(0x470620D0u); 147 148 L_470620D0: 149 PUSH32(esp, esi); /* 0x470620D0: push esi */ 150 PUSH32(esp, 0); /* 0x470620D1: push 0 */ 151 esi = ecx; /* 0x470620D3: mov esi, ecx */ 152 PUSH32(esp, 0); /* 0x470620D5: push 0 */ 153 RECOMP_ICALL(0x4702A790u); /* 0x470620D7: call 0x4702a790 */ /* not lifted */ 154 RECOMP_FLAGS_IN(); 155 MEM32(esi) = 0x470AE2C8u; /* 0x470620DC: mov dword ptr [esi], 0x470ae2c8 */ 156 eax = esi; /* 0x470620E2: mov eax, esi */ 157 esi = POP32_VAL(esp); /* 0x470620E4: pop esi */ 158 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470620E5: ret */ 159 RECOMP_REGS_OUT(); 160 } 161 162 void sub_470620F0(void) { 163 int _fpu_cmp = 0; 164 uint32_t _cf = 0; 165 int _df = 1; 166 uint32_t _flag_k = FK_NONE; 167 uint32_t _flag_a = 0, _flag_b = 0; 168 uint32_t _itail_tgt = 0; 169 RECOMP_REGS_LOCALS 170 RECOMP_ENTER(0x470620F0u); 171 172 L_470620F0: 173 eax = ecx; /* 0x470620F0: mov eax, ecx */ 174 ecx = MEM32(esp + 0x4); /* 0x470620F2: mov ecx, dword ptr [esp + 4] */ 175 edx = MEM32(ecx + 0x4); /* 0x470620F6: mov edx, dword ptr [ecx + 4] */ 176 MEM32(eax + 0x4) = edx; /* 0x470620F9: mov dword ptr [eax + 4], edx */ 177 ecx = MEM32(ecx + 0x8); /* 0x470620FC: mov ecx, dword ptr [ecx + 8] */ 178 MEM32(eax + 0x8) = ecx; /* 0x470620FF: mov dword ptr [eax + 8], ecx */ 179 MEM32(eax) = 0x470AE2C8u; /* 0x47062102: mov dword ptr [eax], 0x470ae2c8 */ 180 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47062108: ret 4 */ 181 RECOMP_REGS_OUT(); 182 } 183 184 void sub_47062110(void) { 185 int _fpu_cmp = 0; 186 uint32_t _cf = 0; 187 int _df = 1; 188 uint32_t _flag_k = FK_NONE; 189 uint32_t _flag_a = 0, _flag_b = 0; 190 uint32_t _itail_tgt = 0; 191 RECOMP_REGS_LOCALS 192 RECOMP_ENTER(0x47062110u); 193 194 L_47062110: 195 PUSH32(esp, ebx); /* 0x47062110: push ebx */ 196 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47062111: mov bl, byte ptr [esp + 8] */ 197 /* test LO8(ebx), 2 */ /* 0x47062115: test bl, 2 */ 198 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 199 _cf = 0; 200 _flag_k = FK_NARROW(FK_TEST, 24); 201 PUSH32(esp, esi); /* 0x47062118: push esi */ 202 esi = ecx; /* 0x47062119: mov esi, ecx */ 203 if (TEST_Z(_flag_a, _flag_b)) goto L_47062148; /* 0x4706211B: je 0x47062148 */ 204 L_4706211D: 205 eax = MEM32(esi + (-0x4)); /* 0x4706211D: mov eax, dword ptr [esi - 4] */ 206 PUSH32(esp, edi); /* 0x47062120: push edi */ 207 PUSH32(esp, 0x470620C0u); /* 0x47062121: push 0x470620c0 */ 208 edi = esi + (-0x4); /* 0x47062126: lea edi, [esi - 4] */ 209 PUSH32(esp, eax); /* 0x47062129: push eax */ 210 PUSH32(esp, 0xCu); /* 0x4706212A: push 0xc */ 211 PUSH32(esp, esi); /* 0x4706212C: push esi */ 212 RECOMP_ICALL(0x470A32EBu); /* 0x4706212D: call 0x470a32eb */ /* not lifted */ 213 RECOMP_FLAGS_IN(); 214 /* test LO8(ebx), 1 */ /* 0x47062132: test bl, 1 */ 215 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 216 _cf = 0; 217 _flag_k = FK_NARROW(FK_TEST, 24); 218 if (TEST_Z(_flag_a, _flag_b)) goto L_47062140; /* 0x47062135: je 0x47062140 */ 219 L_47062137: 220 PUSH32(esp, edi); /* 0x47062137: push edi */ 221 RECOMP_ICALL(0x470A32A2u); /* 0x47062138: call 0x470a32a2 */ /* not lifted */ 222 RECOMP_FLAGS_IN(); 223 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 224 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 225 esp = esp + 4; /* 0x4706213D: add esp, 4 */ 226 _flag_k = FK_ADD; 227 L_47062140: 228 eax = edi; /* 0x47062140: mov eax, edi */ 229 edi = POP32_VAL(esp); /* 0x47062142: pop edi */ 230 esi = POP32_VAL(esp); /* 0x47062143: pop esi */ 231 ebx = POP32_VAL(esp); /* 0x47062144: pop ebx */ 232 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47062145: ret 4 */ 233 L_47062148: 234 ecx = esi; /* 0x47062148: mov ecx, esi */ 235 RECOMP_ICALL(0x470620C0u); /* 0x4706214A: call 0x470620c0 */ /* not lifted */ 236 RECOMP_FLAGS_IN(); 237 /* test LO8(ebx), 1 */ /* 0x4706214F: test bl, 1 */ 238 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 239 _cf = 0; 240 _flag_k = FK_NARROW(FK_TEST, 24); 241 if (TEST_Z(_flag_a, _flag_b)) goto L_4706215D; /* 0x47062152: je 0x4706215d */ 242 L_47062154: 243 PUSH32(esp, esi); /* 0x47062154: push esi */ 244 RECOMP_ICALL(0x470A32A2u); /* 0x47062155: call 0x470a32a2 */ /* not lifted */ 245 RECOMP_FLAGS_IN(); 246 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 247 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 248 esp = esp + 4; /* 0x4706215A: add esp, 4 */ 249 _flag_k = FK_ADD; 250 L_4706215D: 251 eax = esi; /* 0x4706215D: mov eax, esi */ 252 esi = POP32_VAL(esp); /* 0x4706215F: pop esi */ 253 ebx = POP32_VAL(esp); /* 0x47062160: pop ebx */ 254 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47062161: ret 4 */ 255 RECOMP_REGS_OUT(); 256 } 257 258 void sub_47062170(void) { 259 int _fpu_cmp = 0; 260 uint32_t _cf = 0; 261 int _df = 1; 262 uint32_t _flag_k = FK_NONE; 263 uint32_t _flag_a = 0, _flag_b = 0; 264 uint32_t _itail_tgt = 0; 265 RECOMP_REGS_LOCALS 266 RECOMP_ENTER(0x47062170u); 267 268 L_47062170: 269 MEM32(0x4710EA98) = 0x47104C0Cu; /* 0x47062170: mov dword ptr [0x4710ea98], 0x47104c0c */ 270 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706217A: ret */ 271 RECOMP_REGS_OUT(); 272 } 273 274 void sub_47062180(void) { 275 int _fpu_cmp = 0; 276 uint32_t _cf = 0; 277 int _df = 1; 278 uint32_t _flag_k = FK_NONE; 279 uint32_t _flag_a = 0, _flag_b = 0; 280 uint32_t _itail_tgt = 0; 281 RECOMP_REGS_LOCALS 282 RECOMP_ENTER(0x47062180u); 283 284 L_47062180: 285 MEM32(0x4710EA88) = 0x47105158u; /* 0x47062180: mov dword ptr [0x4710ea88], 0x47105158 */ 286 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706218A: ret */ 287 RECOMP_REGS_OUT(); 288 } 289 290 void sub_47062190(void) { 291 int _fpu_cmp = 0; 292 uint32_t _cf = 0; 293 int _df = 1; 294 uint32_t _flag_k = FK_NONE; 295 uint32_t _flag_a = 0, _flag_b = 0; 296 uint32_t _itail_tgt = 0; 297 RECOMP_REGS_LOCALS 298 RECOMP_ENTER(0x47062190u); 299 300 L_47062190: 301 MEM32(0x4710EA78) = 0x4710518Cu; /* 0x47062190: mov dword ptr [0x4710ea78], 0x4710518c */ 302 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706219A: ret */ 303 RECOMP_REGS_OUT(); 304 } 305 306 void sub_470621A0(void) { 307 int _fpu_cmp = 0; 308 uint32_t _cf = 0; 309 int _df = 1; 310 uint32_t _flag_k = FK_NONE; 311 uint32_t _flag_a = 0, _flag_b = 0; 312 uint32_t _itail_tgt = 0; 313 RECOMP_REGS_LOCALS 314 RECOMP_ENTER(0x470621A0u); 315 316 L_470621A0: 317 MEM32(0x4710EAB0) = 0x471051ECu; /* 0x470621A0: mov dword ptr [0x4710eab0], 0x471051ec */ 318 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470621AA: ret */ 319 RECOMP_REGS_OUT(); 320 } 321 322 void sub_470621B0(void) { 323 int _fpu_cmp = 0; 324 uint32_t _cf = 0; 325 int _df = 1; 326 uint32_t _flag_k = FK_NONE; 327 uint32_t _flag_a = 0, _flag_b = 0; 328 uint32_t _itail_tgt = 0; 329 RECOMP_REGS_LOCALS 330 RECOMP_ENTER(0x470621B0u); 331 332 L_470621B0: 333 MEM32(0x4710EA94) = 0x47105224u; /* 0x470621B0: mov dword ptr [0x4710ea94], 0x47105224 */ 334 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470621BA: ret */ 335 RECOMP_REGS_OUT(); 336 } 337 338 void sub_470621C0(void) { 339 int _fpu_cmp = 0; 340 uint32_t _cf = 0; 341 int _df = 1; 342 uint32_t _flag_k = FK_NONE; 343 uint32_t _flag_a = 0, _flag_b = 0; 344 uint32_t _itail_tgt = 0; 345 RECOMP_REGS_LOCALS 346 RECOMP_ENTER(0x470621C0u); 347 348 L_470621C0: 349 MEM32(0x4710EA80) = 0x47108CC8u; /* 0x470621C0: mov dword ptr [0x4710ea80], 0x47108cc8 */ 350 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470621CA: ret */ 351 RECOMP_REGS_OUT(); 352 } 353 354 void sub_470621D0(void) { 355 int _fpu_cmp = 0; 356 uint32_t _cf = 0; 357 int _df = 1; 358 uint32_t _flag_k = FK_NONE; 359 uint32_t _flag_a = 0, _flag_b = 0; 360 uint32_t _itail_tgt = 0; 361 RECOMP_REGS_LOCALS 362 RECOMP_ENTER(0x470621D0u); 363 364 L_470621D0: 365 MEM32(0x4710EA74) = 0x47108D04u; /* 0x470621D0: mov dword ptr [0x4710ea74], 0x47108d04 */ 366 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470621DA: ret */ 367 RECOMP_REGS_OUT(); 368 } 369 370 void sub_470621E0(void) { 371 int _fpu_cmp = 0; 372 uint32_t _cf = 0; 373 int _df = 1; 374 uint32_t _flag_k = FK_NONE; 375 uint32_t _flag_a = 0, _flag_b = 0; 376 uint32_t _itail_tgt = 0; 377 RECOMP_REGS_LOCALS 378 RECOMP_ENTER(0x470621E0u); 379 380 L_470621E0: 381 MEM32(0x4710EA9C) = 0x47108D38u; /* 0x470621E0: mov dword ptr [0x4710ea9c], 0x47108d38 */ 382 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470621EA: ret */ 383 RECOMP_REGS_OUT(); 384 } 385 386 void sub_470621F0(void) { 387 int _fpu_cmp = 0; 388 uint32_t _cf = 0; 389 int _df = 1; 390 uint32_t _flag_k = FK_NONE; 391 uint32_t _flag_a = 0, _flag_b = 0; 392 uint32_t _itail_tgt = 0; 393 RECOMP_REGS_LOCALS 394 RECOMP_ENTER(0x470621F0u); 395 396 L_470621F0: 397 MEM32(0x4710EAAC) = 0x47109858u; /* 0x470621F0: mov dword ptr [0x4710eaac], 0x47109858 */ 398 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470621FA: ret */ 399 RECOMP_REGS_OUT(); 400 } 401 402 void sub_47062200(void) { 403 int _fpu_cmp = 0; 404 uint32_t _cf = 0; 405 int _df = 1; 406 uint32_t _flag_k = FK_NONE; 407 uint32_t _flag_a = 0, _flag_b = 0; 408 uint32_t _itail_tgt = 0; 409 RECOMP_REGS_LOCALS 410 RECOMP_ENTER(0x47062200u); 411 412 L_47062200: 413 PUSH32(esp, ecx); /* 0x47062200: push ecx */ 414 eax = ecx; /* 0x47062201: mov eax, ecx */ 415 ecx = MEM32(esp + 0xC); /* 0x47062203: mov ecx, dword ptr [esp + 0xc] */ 416 /* test ecx, ecx */ /* 0x47062207: test ecx, ecx */ 417 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 418 _cf = 0; 419 _flag_k = FK_TEST; 420 MEM32(esp) = 0; /* 0x47062209: mov dword ptr [esp], 0 */ 421 if (TEST_Z(_flag_a, _flag_b)) goto L_47062221; /* 0x47062211: je 0x47062221 */ 422 L_47062213: 423 MEM32(eax + 0x14) = 0x470AE394u; /* 0x47062213: mov dword ptr [eax + 0x14], 0x470ae394 */ 424 MEM32(eax + 0x34) = 0x470ACC18u; /* 0x4706221A: mov dword ptr [eax + 0x34], 0x470acc18 */ 425 L_47062221: 426 edx = MEM32(esp + 0x8); /* 0x47062221: mov edx, dword ptr [esp + 8] */ 427 PUSH32(esp, esi); /* 0x47062225: push esi */ 428 PUSH32(esp, edi); /* 0x47062226: push edi */ 429 esi = edx; /* 0x47062227: mov esi, edx */ 430 ecx = 5; /* 0x47062229: mov ecx, 5 */ 431 edi = eax; /* 0x4706222E: mov edi, eax */ 432 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47062230: 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; } 433 ecx = MEM32(edx + 0x18); /* 0x47062232: mov ecx, dword ptr [edx + 0x18] */ 434 MEM32(eax + 0x18) = ecx; /* 0x47062235: mov dword ptr [eax + 0x18], ecx */ 435 ecx = MEM32(edx + 0x1C); /* 0x47062238: mov ecx, dword ptr [edx + 0x1c] */ 436 MEM32(eax + 0x1C) = ecx; /* 0x4706223B: mov dword ptr [eax + 0x1c], ecx */ 437 ecx = MEM32(edx + 0x20); /* 0x4706223E: mov ecx, dword ptr [edx + 0x20] */ 438 MEM32(eax + 0x20) = ecx; /* 0x47062241: mov dword ptr [eax + 0x20], ecx */ 439 ecx = MEM32(edx + 0x24); /* 0x47062244: mov ecx, dword ptr [edx + 0x24] */ 440 MEM32(eax + 0x24) = ecx; /* 0x47062247: mov dword ptr [eax + 0x24], ecx */ 441 ecx = MEM32(edx + 0x28); /* 0x4706224A: mov ecx, dword ptr [edx + 0x28] */ 442 MEM32(eax + 0x28) = ecx; /* 0x4706224D: mov dword ptr [eax + 0x28], ecx */ 443 edx = MEM32(edx + 0x2C); /* 0x47062250: mov edx, dword ptr [edx + 0x2c] */ 444 ecx = MEM32(eax + 0x14); /* 0x47062253: mov ecx, dword ptr [eax + 0x14] */ 445 MEM32(eax + 0x2C) = edx; /* 0x47062256: mov dword ptr [eax + 0x2c], edx */ 446 edx = MEM32(ecx + 0x4); /* 0x47062259: mov edx, dword ptr [ecx + 4] */ 447 MEM32(edx + eax + 0x14) = 0x470AE360u; /* 0x4706225C: mov dword ptr [edx + eax + 0x14], 0x470ae360 */ 448 ecx = MEM32(eax + 0x14); /* 0x47062264: mov ecx, dword ptr [eax + 0x14] */ 449 edx = MEM32(ecx + 0x4); /* 0x47062267: mov edx, dword ptr [ecx + 4] */ 450 edi = POP32_VAL(esp); /* 0x4706226A: pop edi */ 451 MEM32(edx + eax + 0x10) = 0; /* 0x4706226B: mov dword ptr [edx + eax + 0x10], 0 */ 452 esi = POP32_VAL(esp); /* 0x47062273: pop esi */ 453 ecx = POP32_VAL(esp); /* 0x47062274: pop ecx */ 454 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47062275: ret 8 */ 455 RECOMP_REGS_OUT(); 456 } 457 458 void sub_47062280(void) { 459 int _fpu_cmp = 0; 460 uint32_t _cf = 0; 461 int _df = 1; 462 uint32_t _flag_k = FK_NONE; 463 uint32_t _flag_a = 0, _flag_b = 0; 464 uint32_t _itail_tgt = 0; 465 RECOMP_REGS_LOCALS 466 RECOMP_ENTER(0x47062280u); 467 468 L_47062280: 469 PUSH32(esp, esi); /* 0x47062280: push esi */ 470 esi = ecx + 0x34; /* 0x47062281: lea esi, [ecx + 0x34] */ 471 ecx = esi; /* 0x47062284: mov ecx, esi */ 472 RECOMP_ICALL(0x4709FC00u); /* 0x47062286: call 0x4709fc00 */ /* not lifted */ 473 RECOMP_FLAGS_IN(); 474 ecx = esi; /* 0x4706228B: mov ecx, esi */ 475 RECOMP_ICALL(0x47018740u); /* 0x4706228D: call 0x47018740 */ /* not lifted */ 476 RECOMP_FLAGS_IN(); 477 esi = POP32_VAL(esp); /* 0x47062292: pop esi */ 478 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47062293: ret */ 479 RECOMP_REGS_OUT(); 480 } 481 482 void sub_470622A0(void) { 483 int _fpu_cmp = 0; 484 uint32_t _cf = 0; 485 int _df = 1; 486 uint32_t _flag_k = FK_NONE; 487 uint32_t _flag_a = 0, _flag_b = 0; 488 uint32_t _itail_tgt = 0; 489 RECOMP_REGS_LOCALS 490 RECOMP_ENTER(0x470622A0u); 491 492 L_470622A0: 493 PUSH32(esp, ebx); /* 0x470622A0: push ebx */ 494 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x470622A1: mov bl, byte ptr [esp + 8] */ 495 /* test LO8(ebx), 2 */ /* 0x470622A5: test bl, 2 */ 496 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 497 _cf = 0; 498 _flag_k = FK_NARROW(FK_TEST, 24); 499 PUSH32(esp, esi); /* 0x470622A8: push esi */ 500 if (TEST_Z(_flag_a, _flag_b)) goto L_470622D7; /* 0x470622A9: je 0x470622d7 */ 501 L_470622AB: 502 eax = MEM32(ecx + (-0x38)); /* 0x470622AB: mov eax, dword ptr [ecx - 0x38] */ 503 esi = ecx + (-0x38); /* 0x470622AE: lea esi, [ecx - 0x38] */ 504 PUSH32(esp, 0x47062280u); /* 0x470622B1: push 0x47062280 */ 505 PUSH32(esp, eax); /* 0x470622B6: push eax */ 506 PUSH32(esp, 0x38u); /* 0x470622B7: push 0x38 */ 507 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFCCu); 508 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 509 ecx = ecx + 0xFFFFFFCCu; /* 0x470622B9: add ecx, -0x34 */ 510 _flag_k = FK_ADD; 511 PUSH32(esp, ecx); /* 0x470622BC: push ecx */ 512 RECOMP_ICALL(0x470A32EBu); /* 0x470622BD: call 0x470a32eb */ /* not lifted */ 513 RECOMP_FLAGS_IN(); 514 /* test LO8(ebx), 1 */ /* 0x470622C2: test bl, 1 */ 515 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 516 _cf = 0; 517 _flag_k = FK_NARROW(FK_TEST, 24); 518 if (TEST_Z(_flag_a, _flag_b)) goto L_470622D0; /* 0x470622C5: je 0x470622d0 */ 519 L_470622C7: 520 PUSH32(esp, esi); /* 0x470622C7: push esi */ 521 RECOMP_ICALL(0x470A32A2u); /* 0x470622C8: call 0x470a32a2 */ /* not lifted */ 522 RECOMP_FLAGS_IN(); 523 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 524 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 525 esp = esp + 4; /* 0x470622CD: add esp, 4 */ 526 _flag_k = FK_ADD; 527 L_470622D0: 528 eax = esi; /* 0x470622D0: mov eax, esi */ 529 esi = POP32_VAL(esp); /* 0x470622D2: pop esi */ 530 ebx = POP32_VAL(esp); /* 0x470622D3: pop ebx */ 531 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470622D4: ret 4 */ 532 L_470622D7: 533 PUSH32(esp, edi); /* 0x470622D7: push edi */ 534 edi = ecx + (-0x34); /* 0x470622D8: lea edi, [ecx - 0x34] */ 535 esi = edi + 0x34; /* 0x470622DB: lea esi, [edi + 0x34] */ 536 ecx = esi; /* 0x470622DE: mov ecx, esi */ 537 RECOMP_ICALL(0x4709FC00u); /* 0x470622E0: call 0x4709fc00 */ /* not lifted */ 538 RECOMP_FLAGS_IN(); 539 ecx = esi; /* 0x470622E5: mov ecx, esi */ 540 RECOMP_ICALL(0x47018740u); /* 0x470622E7: call 0x47018740 */ /* not lifted */ 541 RECOMP_FLAGS_IN(); 542 /* test LO8(ebx), 1 */ /* 0x470622EC: test bl, 1 */ 543 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 544 _cf = 0; 545 _flag_k = FK_NARROW(FK_TEST, 24); 546 if (TEST_Z(_flag_a, _flag_b)) goto L_470622FA; /* 0x470622EF: je 0x470622fa */ 547 L_470622F1: 548 PUSH32(esp, edi); /* 0x470622F1: push edi */ 549 RECOMP_ICALL(0x470A32A2u); /* 0x470622F2: call 0x470a32a2 */ /* not lifted */ 550 RECOMP_FLAGS_IN(); 551 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 552 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 553 esp = esp + 4; /* 0x470622F7: add esp, 4 */ 554 _flag_k = FK_ADD; 555 L_470622FA: 556 eax = edi; /* 0x470622FA: mov eax, edi */ 557 edi = POP32_VAL(esp); /* 0x470622FC: pop edi */ 558 esi = POP32_VAL(esp); /* 0x470622FD: pop esi */ 559 ebx = POP32_VAL(esp); /* 0x470622FE: pop ebx */ 560 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470622FF: ret 4 */ 561 RECOMP_REGS_OUT(); 562 } 563 564 void sub_47062310(void) { 565 int _fpu_cmp = 0; 566 uint32_t _cf = 0; 567 int _df = 1; 568 uint32_t _flag_k = FK_NONE; 569 uint32_t _flag_a = 0, _flag_b = 0; 570 uint32_t _itail_tgt = 0; 571 RECOMP_REGS_LOCALS 572 RECOMP_ENTER(0x47062310u); 573 574 L_47062310: 575 PUSH32(esp, ecx); /* 0x47062310: push ecx */ 576 eax = ecx; /* 0x47062311: mov eax, ecx */ 577 ecx = MEM32(esp + 0xC); /* 0x47062313: mov ecx, dword ptr [esp + 0xc] */ 578 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 579 edx = 0; /* 0x47062317: xor edx, edx */ 580 _cf = 0; 581 _flag_k = FK_TEST; 582 /* cmp ecx, edx */ /* 0x47062319: cmp ecx, edx */ 583 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 584 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 585 _flag_k = FK_CMP; 586 MEM32(esp) = edx; /* 0x4706231B: mov dword ptr [esp], edx */ 587 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706232E; /* 0x4706231F: je 0x4706232e */ 588 L_47062321: 589 MEM32(eax) = 0x470AE3ACu; /* 0x47062321: mov dword ptr [eax], 0x470ae3ac */ 590 MEM32(eax + 0x18) = 0x470ACC4Cu; /* 0x47062327: mov dword ptr [eax + 0x18], 0x470acc4c */ 591 L_4706232E: 592 ecx = MEM32(esp + 0x8); /* 0x4706232E: mov ecx, dword ptr [esp + 8] */ 593 PUSH32(esp, esi); /* 0x47062332: push esi */ 594 esi = MEM32(ecx + 0x4); /* 0x47062333: mov esi, dword ptr [ecx + 4] */ 595 MEM32(eax + 0x4) = esi; /* 0x47062336: mov dword ptr [eax + 4], esi */ 596 esi = MEM32(ecx + 0x8); /* 0x47062339: mov esi, dword ptr [ecx + 8] */ 597 MEM32(eax + 0x8) = esi; /* 0x4706233C: mov dword ptr [eax + 8], esi */ 598 esi = MEM32(ecx + 0xC); /* 0x4706233F: mov esi, dword ptr [ecx + 0xc] */ 599 MEM32(eax + 0xC) = esi; /* 0x47062342: mov dword ptr [eax + 0xc], esi */ 600 ecx = MEM32(ecx + 0x10); /* 0x47062345: mov ecx, dword ptr [ecx + 0x10] */ 601 MEM32(eax + 0x10) = ecx; /* 0x47062348: mov dword ptr [eax + 0x10], ecx */ 602 ecx = MEM32(eax); /* 0x4706234B: mov ecx, dword ptr [eax] */ 603 ecx = MEM32(ecx + 0x4); /* 0x4706234D: mov ecx, dword ptr [ecx + 4] */ 604 MEM32(ecx + eax) = 0x470AE39Cu; /* 0x47062350: mov dword ptr [ecx + eax], 0x470ae39c */ 605 ecx = MEM32(eax); /* 0x47062357: mov ecx, dword ptr [eax] */ 606 ecx = MEM32(ecx + 0x4); /* 0x47062359: mov ecx, dword ptr [ecx + 4] */ 607 MEM32(ecx + eax + (-0x4)) = edx; /* 0x4706235C: mov dword ptr [ecx + eax - 4], edx */ 608 esi = POP32_VAL(esp); /* 0x47062360: pop esi */ 609 ecx = POP32_VAL(esp); /* 0x47062361: pop ecx */ 610 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47062362: ret 8 */ 611 RECOMP_REGS_OUT(); 612 } 613 614 void sub_47062370(void) { 615 int _fpu_cmp = 0; 616 uint32_t _cf = 0; 617 int _df = 1; 618 uint32_t _flag_k = FK_NONE; 619 uint32_t _flag_a = 0, _flag_b = 0; 620 uint32_t _itail_tgt = 0; 621 RECOMP_REGS_LOCALS 622 RECOMP_ENTER(0x47062370u); 623 624 L_47062370: 625 PUSH32(esp, esi); /* 0x47062370: push esi */ 626 esi = ecx + 0x18; /* 0x47062371: lea esi, [ecx + 0x18] */ 627 ecx = esi; /* 0x47062374: mov ecx, esi */ 628 RECOMP_ICALL(0x4709FCF0u); /* 0x47062376: call 0x4709fcf0 */ /* not lifted */ 629 RECOMP_FLAGS_IN(); 630 ecx = esi; /* 0x4706237B: mov ecx, esi */ 631 RECOMP_ICALL(0x47018750u); /* 0x4706237D: call 0x47018750 */ /* not lifted */ 632 RECOMP_FLAGS_IN(); 633 esi = POP32_VAL(esp); /* 0x47062382: pop esi */ 634 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47062383: ret */ 635 RECOMP_REGS_OUT(); 636 } 637 638 void sub_47062390(void) { 639 int _fpu_cmp = 0; 640 uint32_t _cf = 0; 641 int _df = 1; 642 uint32_t _flag_k = FK_NONE; 643 uint32_t _flag_a = 0, _flag_b = 0; 644 uint32_t _itail_tgt = 0; 645 RECOMP_REGS_LOCALS 646 RECOMP_ENTER(0x47062390u); 647 648 L_47062390: 649 PUSH32(esp, ebx); /* 0x47062390: push ebx */ 650 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47062391: mov bl, byte ptr [esp + 8] */ 651 /* test LO8(ebx), 2 */ /* 0x47062395: test bl, 2 */ 652 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 653 _cf = 0; 654 _flag_k = FK_NARROW(FK_TEST, 24); 655 PUSH32(esp, esi); /* 0x47062398: push esi */ 656 if (TEST_Z(_flag_a, _flag_b)) goto L_470623C7; /* 0x47062399: je 0x470623c7 */ 657 L_4706239B: 658 eax = MEM32(ecx + (-0x1C)); /* 0x4706239B: mov eax, dword ptr [ecx - 0x1c] */ 659 esi = ecx + (-0x1C); /* 0x4706239E: lea esi, [ecx - 0x1c] */ 660 PUSH32(esp, 0x47062370u); /* 0x470623A1: push 0x47062370 */ 661 PUSH32(esp, eax); /* 0x470623A6: push eax */ 662 PUSH32(esp, 0x1Cu); /* 0x470623A7: push 0x1c */ 663 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFE8u); 664 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 665 ecx = ecx + 0xFFFFFFE8u; /* 0x470623A9: add ecx, -0x18 */ 666 _flag_k = FK_ADD; 667 PUSH32(esp, ecx); /* 0x470623AC: push ecx */ 668 RECOMP_ICALL(0x470A32EBu); /* 0x470623AD: call 0x470a32eb */ /* not lifted */ 669 RECOMP_FLAGS_IN(); 670 /* test LO8(ebx), 1 */ /* 0x470623B2: test bl, 1 */ 671 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 672 _cf = 0; 673 _flag_k = FK_NARROW(FK_TEST, 24); 674 if (TEST_Z(_flag_a, _flag_b)) goto L_470623C0; /* 0x470623B5: je 0x470623c0 */ 675 L_470623B7: 676 PUSH32(esp, esi); /* 0x470623B7: push esi */ 677 RECOMP_ICALL(0x470A32A2u); /* 0x470623B8: call 0x470a32a2 */ /* not lifted */ 678 RECOMP_FLAGS_IN(); 679 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 680 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 681 esp = esp + 4; /* 0x470623BD: add esp, 4 */ 682 _flag_k = FK_ADD; 683 L_470623C0: 684 eax = esi; /* 0x470623C0: mov eax, esi */ 685 esi = POP32_VAL(esp); /* 0x470623C2: pop esi */ 686 ebx = POP32_VAL(esp); /* 0x470623C3: pop ebx */ 687 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470623C4: ret 4 */ 688 L_470623C7: 689 PUSH32(esp, edi); /* 0x470623C7: push edi */ 690 edi = ecx + (-0x18); /* 0x470623C8: lea edi, [ecx - 0x18] */ 691 esi = edi + 0x18; /* 0x470623CB: lea esi, [edi + 0x18] */ 692 ecx = esi; /* 0x470623CE: mov ecx, esi */ 693 RECOMP_ICALL(0x4709FCF0u); /* 0x470623D0: call 0x4709fcf0 */ /* not lifted */ 694 RECOMP_FLAGS_IN(); 695 ecx = esi; /* 0x470623D5: mov ecx, esi */ 696 RECOMP_ICALL(0x47018750u); /* 0x470623D7: call 0x47018750 */ /* not lifted */ 697 RECOMP_FLAGS_IN(); 698 /* test LO8(ebx), 1 */ /* 0x470623DC: test bl, 1 */ 699 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 700 _cf = 0; 701 _flag_k = FK_NARROW(FK_TEST, 24); 702 if (TEST_Z(_flag_a, _flag_b)) goto L_470623EA; /* 0x470623DF: je 0x470623ea */ 703 L_470623E1: 704 PUSH32(esp, edi); /* 0x470623E1: push edi */ 705 RECOMP_ICALL(0x470A32A2u); /* 0x470623E2: call 0x470a32a2 */ /* not lifted */ 706 RECOMP_FLAGS_IN(); 707 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 708 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 709 esp = esp + 4; /* 0x470623E7: add esp, 4 */ 710 _flag_k = FK_ADD; 711 L_470623EA: 712 eax = edi; /* 0x470623EA: mov eax, edi */ 713 edi = POP32_VAL(esp); /* 0x470623EC: pop edi */ 714 esi = POP32_VAL(esp); /* 0x470623ED: pop esi */ 715 ebx = POP32_VAL(esp); /* 0x470623EE: pop ebx */ 716 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470623EF: ret 4 */ 717 RECOMP_REGS_OUT(); 718 } 719 720 void sub_47062400(void) { 721 int _fpu_cmp = 0; 722 uint32_t _cf = 0; 723 int _df = 1; 724 uint32_t _flag_k = FK_NONE; 725 uint32_t _flag_a = 0, _flag_b = 0; 726 uint32_t _itail_tgt = 0; 727 RECOMP_REGS_LOCALS 728 RECOMP_ENTER(0x47062400u); 729 730 L_47062400: 731 PUSH32(esp, ecx); /* 0x47062400: push ecx */ 732 PUSH32(esp, ebx); /* 0x47062401: push ebx */ 733 eax = ecx; /* 0x47062402: mov eax, ecx */ 734 ecx = MEM32(esp + 0x10); /* 0x47062404: mov ecx, dword ptr [esp + 0x10] */ 735 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 736 ebx = 0; /* 0x47062408: xor ebx, ebx */ 737 _cf = 0; 738 _flag_k = FK_TEST; 739 /* cmp ecx, ebx */ /* 0x4706240A: cmp ecx, ebx */ 740 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 741 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 742 _flag_k = FK_CMP; 743 PUSH32(esp, ebp); /* 0x4706240C: push ebp */ 744 ebp = MEM32(esp + 0x10); /* 0x4706240D: mov ebp, dword ptr [esp + 0x10] */ 745 MEM32(esp + 0x8) = ebx; /* 0x47062411: mov dword ptr [esp + 8], ebx */ 746 if (CMP_EQ(_flag_a, _flag_b)) goto L_470624AB; /* 0x47062415: je 0x470624ab */ 747 L_4706241B: 748 /* cmp ebp, ebx */ /* 0x4706241B: cmp ebp, ebx */ 749 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebx); 750 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 751 _flag_k = FK_CMP; 752 MEM32(eax) = 0x470AE404u; /* 0x4706241D: mov dword ptr [eax], 0x470ae404 */ 753 MEM32(eax + 0x20) = 0x470AE3FCu; /* 0x47062423: mov dword ptr [eax + 0x20], 0x470ae3fc */ 754 MEM32(eax + 0x38) = 0x470AE3F4u; /* 0x4706242A: mov dword ptr [eax + 0x38], 0x470ae3f4 */ 755 MEM32(eax + 0x14) = 0x470ACC18u; /* 0x47062431: mov dword ptr [eax + 0x14], 0x470acc18 */ 756 ecx = MEM32(eax + 0x20); /* 0x47062438: mov ecx, dword ptr [eax + 0x20] */ 757 MEM32(eax + 0x1C) = 0x470ACCACu; /* 0x4706243B: mov dword ptr [eax + 0x1c], 0x470accac */ 758 edx = MEM32(ecx + 0x4); /* 0x47062442: mov edx, dword ptr [ecx + 4] */ 759 MEM32(edx + eax + 0x20) = 0x470ACC78u; /* 0x47062445: mov dword ptr [edx + eax + 0x20], 0x470acc78 */ 760 if (CMP_EQ(_flag_a, _flag_b)) goto L_47062457; /* 0x4706244D: je 0x47062457 */ 761 L_4706244F: 762 ecx = MEM32(ebp); /* 0x4706244F: mov ecx, dword ptr [ebp] */ 763 ebx = MEM32(ecx + 0xC); /* 0x47062452: mov ebx, dword ptr [ecx + 0xc] */ 764 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebp); 765 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 766 ebx = ebx + ebp; /* 0x47062455: add ebx, ebp */ 767 _flag_k = FK_ADD; 768 L_47062457: 769 edx = eax + 0x24; /* 0x47062457: lea edx, [eax + 0x24] */ 770 PUSH32(esp, esi); /* 0x4706245A: push esi */ 771 PUSH32(esp, edi); /* 0x4706245B: push edi */ 772 esi = ebx; /* 0x4706245C: mov esi, ebx */ 773 ecx = 5; /* 0x4706245E: mov ecx, 5 */ 774 edi = edx; /* 0x47062463: mov edi, edx */ 775 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47062465: 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; } 776 ecx = MEM32(ebx + 0x18); /* 0x47062467: mov ecx, dword ptr [ebx + 0x18] */ 777 MEM32(edx + 0x18) = ecx; /* 0x4706246A: mov dword ptr [edx + 0x18], ecx */ 778 ecx = MEM32(ebx + 0x1C); /* 0x4706246D: mov ecx, dword ptr [ebx + 0x1c] */ 779 MEM32(edx + 0x1C) = ecx; /* 0x47062470: mov dword ptr [edx + 0x1c], ecx */ 780 ecx = MEM32(ebx + 0x20); /* 0x47062473: mov ecx, dword ptr [ebx + 0x20] */ 781 MEM32(edx + 0x20) = ecx; /* 0x47062476: mov dword ptr [edx + 0x20], ecx */ 782 ecx = MEM32(ebx + 0x24); /* 0x47062479: mov ecx, dword ptr [ebx + 0x24] */ 783 MEM32(edx + 0x24) = ecx; /* 0x4706247C: mov dword ptr [edx + 0x24], ecx */ 784 ecx = MEM32(ebx + 0x28); /* 0x4706247F: mov ecx, dword ptr [ebx + 0x28] */ 785 MEM32(edx + 0x28) = ecx; /* 0x47062482: mov dword ptr [edx + 0x28], ecx */ 786 ecx = MEM32(ebx + 0x2C); /* 0x47062485: mov ecx, dword ptr [ebx + 0x2c] */ 787 MEM32(edx + 0x2C) = ecx; /* 0x47062488: mov dword ptr [edx + 0x2c], ecx */ 788 ecx = MEM32(edx + 0x14); /* 0x4706248B: mov ecx, dword ptr [edx + 0x14] */ 789 ecx = MEM32(ecx + 0x4); /* 0x4706248E: mov ecx, dword ptr [ecx + 4] */ 790 MEM32(ecx + edx + 0x14) = 0x470AE360u; /* 0x47062491: mov dword ptr [ecx + edx + 0x14], 0x470ae360 */ 791 ecx = MEM32(edx + 0x14); /* 0x47062499: mov ecx, dword ptr [edx + 0x14] */ 792 ecx = MEM32(ecx + 0x4); /* 0x4706249C: mov ecx, dword ptr [ecx + 4] */ 793 edi = POP32_VAL(esp); /* 0x4706249F: pop edi */ 794 MEM32(ecx + edx + 0x10) = 0; /* 0x470624A0: mov dword ptr [ecx + edx + 0x10], 0 */ 795 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 796 ebx = 0; /* 0x470624A8: xor ebx, ebx */ 797 _cf = 0; 798 _flag_k = FK_TEST; 799 esi = POP32_VAL(esp); /* 0x470624AA: pop esi */ 800 L_470624AB: 801 edx = MEM32(ebp + 0x4); /* 0x470624AB: mov edx, dword ptr [ebp + 4] */ 802 MEM32(eax + 0x4) = edx; /* 0x470624AE: mov dword ptr [eax + 4], edx */ 803 ecx = MEM32(ebp + 0x8); /* 0x470624B1: mov ecx, dword ptr [ebp + 8] */ 804 MEM32(eax + 0x8) = ecx; /* 0x470624B4: mov dword ptr [eax + 8], ecx */ 805 edx = MEM32(ebp + 0xC); /* 0x470624B7: mov edx, dword ptr [ebp + 0xc] */ 806 ecx = MEM32(eax); /* 0x470624BA: mov ecx, dword ptr [eax] */ 807 MEM32(eax + 0xC) = edx; /* 0x470624BC: mov dword ptr [eax + 0xc], edx */ 808 edx = MEM32(ecx + 0x4); /* 0x470624BF: mov edx, dword ptr [ecx + 4] */ 809 MEM32(edx + eax) = 0x470AE3C0u; /* 0x470624C2: mov dword ptr [edx + eax], 0x470ae3c0 */ 810 ecx = MEM32(eax); /* 0x470624C9: mov ecx, dword ptr [eax] */ 811 edx = MEM32(ecx + 0x8); /* 0x470624CB: mov edx, dword ptr [ecx + 8] */ 812 MEM32(edx + eax) = 0x470AE3B4u; /* 0x470624CE: mov dword ptr [edx + eax], 0x470ae3b4 */ 813 ecx = MEM32(eax); /* 0x470624D5: mov ecx, dword ptr [eax] */ 814 edx = MEM32(ecx + 0x4); /* 0x470624D7: mov edx, dword ptr [ecx + 4] */ 815 MEM32(edx + eax + (-0x4)) = ebx; /* 0x470624DA: mov dword ptr [edx + eax - 4], ebx */ 816 ecx = MEM32(eax); /* 0x470624DE: mov ecx, dword ptr [eax] */ 817 edx = MEM32(ecx + 0x8); /* 0x470624E0: mov edx, dword ptr [ecx + 8] */ 818 ebp = POP32_VAL(esp); /* 0x470624E3: pop ebp */ 819 MEM32(edx + eax + (-0x4)) = ebx; /* 0x470624E4: mov dword ptr [edx + eax - 4], ebx */ 820 ebx = POP32_VAL(esp); /* 0x470624E8: pop ebx */ 821 ecx = POP32_VAL(esp); /* 0x470624E9: pop ecx */ 822 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470624EA: ret 8 */ 823 RECOMP_REGS_OUT(); 824 } 825 826 void sub_470624F0(void) { 827 int _fpu_cmp = 0; 828 uint32_t _cf = 0; 829 int _df = 1; 830 uint32_t _flag_k = FK_NONE; 831 uint32_t _flag_a = 0, _flag_b = 0; 832 uint32_t _itail_tgt = 0; 833 RECOMP_REGS_LOCALS 834 RECOMP_ENTER(0x470624F0u); 835 836 L_470624F0: 837 PUSH32(esp, esi); /* 0x470624F0: push esi */ 838 esi = ecx; /* 0x470624F1: mov esi, ecx */ 839 PUSH32(esp, edi); /* 0x470624F3: push edi */ 840 edi = esi + 0x14; /* 0x470624F4: lea edi, [esi + 0x14] */ 841 ecx = edi; /* 0x470624F7: mov ecx, edi */ 842 RECOMP_ICALL(0x4709FEB0u); /* 0x470624F9: call 0x4709feb0 */ /* not lifted */ 843 RECOMP_FLAGS_IN(); 844 ecx = esi + 0x58; /* 0x470624FE: lea ecx, [esi + 0x58] */ 845 RECOMP_ICALL(0x4709FC00u); /* 0x47062501: call 0x4709fc00 */ /* not lifted */ 846 RECOMP_FLAGS_IN(); 847 ecx = esi + 0x24; /* 0x47062506: lea ecx, [esi + 0x24] */ 848 RECOMP_ICALL(0x47018780u); /* 0x47062509: call 0x47018780 */ /* not lifted */ 849 RECOMP_FLAGS_IN(); 850 ecx = edi; /* 0x4706250E: mov ecx, edi */ 851 RECOMP_ICALL(0x47018740u); /* 0x47062510: call 0x47018740 */ /* not lifted */ 852 RECOMP_FLAGS_IN(); 853 edi = POP32_VAL(esp); /* 0x47062515: pop edi */ 854 esi = POP32_VAL(esp); /* 0x47062516: pop esi */ 855 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47062517: ret */ 856 RECOMP_REGS_OUT(); 857 } 858 859 void sub_47062520(void) { 860 int _fpu_cmp = 0; 861 uint32_t _cf = 0; 862 int _df = 1; 863 uint32_t _flag_k = FK_NONE; 864 uint32_t _flag_a = 0, _flag_b = 0; 865 uint32_t _itail_tgt = 0; 866 RECOMP_REGS_LOCALS 867 RECOMP_ENTER(0x47062520u); 868 869 L_47062520: 870 PUSH32(esp, ebx); /* 0x47062520: push ebx */ 871 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47062521: mov bl, byte ptr [esp + 8] */ 872 /* test LO8(ebx), 2 */ /* 0x47062525: test bl, 2 */ 873 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 874 _cf = 0; 875 _flag_k = FK_NARROW(FK_TEST, 24); 876 PUSH32(esp, esi); /* 0x47062528: push esi */ 877 if (TEST_Z(_flag_a, _flag_b)) goto L_47062557; /* 0x47062529: je 0x47062557 */ 878 L_4706252B: 879 eax = MEM32(ecx + (-0x18)); /* 0x4706252B: mov eax, dword ptr [ecx - 0x18] */ 880 esi = ecx + (-0x18); /* 0x4706252E: lea esi, [ecx - 0x18] */ 881 PUSH32(esp, 0x470624F0u); /* 0x47062531: push 0x470624f0 */ 882 PUSH32(esp, eax); /* 0x47062536: push eax */ 883 PUSH32(esp, 0x54u); /* 0x47062537: push 0x54 */ 884 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu); 885 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 886 ecx = ecx + 0xFFFFFFECu; /* 0x47062539: add ecx, -0x14 */ 887 _flag_k = FK_ADD; 888 PUSH32(esp, ecx); /* 0x4706253C: push ecx */ 889 RECOMP_ICALL(0x470A32EBu); /* 0x4706253D: call 0x470a32eb */ /* not lifted */ 890 RECOMP_FLAGS_IN(); 891 /* test LO8(ebx), 1 */ /* 0x47062542: test bl, 1 */ 892 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 893 _cf = 0; 894 _flag_k = FK_NARROW(FK_TEST, 24); 895 if (TEST_Z(_flag_a, _flag_b)) goto L_4706258B; /* 0x47062545: je 0x4706258b */ 896 L_47062547: 897 PUSH32(esp, esi); /* 0x47062547: push esi */ 898 RECOMP_ICALL(0x470A32A2u); /* 0x47062548: call 0x470a32a2 */ /* not lifted */ 899 RECOMP_FLAGS_IN(); 900 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 901 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 902 esp = esp + 4; /* 0x4706254D: add esp, 4 */ 903 _flag_k = FK_ADD; 904 eax = esi; /* 0x47062550: mov eax, esi */ 905 esi = POP32_VAL(esp); /* 0x47062552: pop esi */ 906 ebx = POP32_VAL(esp); /* 0x47062553: pop ebx */ 907 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47062554: ret 4 */ 908 L_47062557: 909 esi = ecx + (-0x14); /* 0x47062557: lea esi, [ecx - 0x14] */ 910 PUSH32(esp, edi); /* 0x4706255A: push edi */ 911 edi = esi + 0x14; /* 0x4706255B: lea edi, [esi + 0x14] */ 912 ecx = edi; /* 0x4706255E: mov ecx, edi */ 913 RECOMP_ICALL(0x4709FEB0u); /* 0x47062560: call 0x4709feb0 */ /* not lifted */ 914 RECOMP_FLAGS_IN(); 915 ecx = esi + 0x58; /* 0x47062565: lea ecx, [esi + 0x58] */ 916 RECOMP_ICALL(0x4709FC00u); /* 0x47062568: call 0x4709fc00 */ /* not lifted */ 917 RECOMP_FLAGS_IN(); 918 ecx = esi + 0x24; /* 0x4706256D: lea ecx, [esi + 0x24] */ 919 RECOMP_ICALL(0x47018780u); /* 0x47062570: call 0x47018780 */ /* not lifted */ 920 RECOMP_FLAGS_IN(); 921 ecx = edi; /* 0x47062575: mov ecx, edi */ 922 RECOMP_ICALL(0x47018740u); /* 0x47062577: call 0x47018740 */ /* not lifted */ 923 RECOMP_FLAGS_IN(); 924 /* test LO8(ebx), 1 */ /* 0x4706257C: test bl, 1 */ 925 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 926 _cf = 0; 927 _flag_k = FK_NARROW(FK_TEST, 24); 928 edi = POP32_VAL(esp); /* 0x4706257F: pop edi */ 929 if (TEST_Z(_flag_a, _flag_b)) goto L_4706258B; /* 0x47062580: je 0x4706258b */ 930 L_47062582: 931 PUSH32(esp, esi); /* 0x47062582: push esi */ 932 RECOMP_ICALL(0x470A32A2u); /* 0x47062583: call 0x470a32a2 */ /* not lifted */ 933 RECOMP_FLAGS_IN(); 934 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 935 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 936 esp = esp + 4; /* 0x47062588: add esp, 4 */ 937 _flag_k = FK_ADD; 938 L_4706258B: 939 eax = esi; /* 0x4706258B: mov eax, esi */ 940 esi = POP32_VAL(esp); /* 0x4706258D: pop esi */ 941 ebx = POP32_VAL(esp); /* 0x4706258E: pop ebx */ 942 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706258F: ret 4 */ 943 RECOMP_REGS_OUT(); 944 } 945 946 void sub_470625A0(void) { 947 int _fpu_cmp = 0; 948 uint32_t _cf = 0; 949 int _df = 1; 950 uint32_t _flag_k = FK_NONE; 951 uint32_t _flag_a = 0, _flag_b = 0; 952 uint32_t _itail_tgt = 0; 953 RECOMP_REGS_LOCALS 954 RECOMP_ENTER(0x470625A0u); 955 956 L_470625A0: 957 PUSH32(esp, ecx); /* 0x470625A0: push ecx */ 958 eax = ecx; /* 0x470625A1: mov eax, ecx */ 959 ecx = MEM32(esp + 0xC); /* 0x470625A3: mov ecx, dword ptr [esp + 0xc] */ 960 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 961 edx = 0; /* 0x470625A7: xor edx, edx */ 962 _cf = 0; 963 _flag_k = FK_TEST; 964 /* cmp ecx, edx */ /* 0x470625A9: cmp ecx, edx */ 965 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 966 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 967 _flag_k = FK_CMP; 968 MEM32(esp) = edx; /* 0x470625AB: mov dword ptr [esp], edx */ 969 if (CMP_EQ(_flag_a, _flag_b)) goto L_470625DA; /* 0x470625AF: je 0x470625da */ 970 L_470625B1: 971 MEM32(eax) = 0x470AE430u; /* 0x470625B1: mov dword ptr [eax], 0x470ae430 */ 972 MEM32(eax + 0x24) = 0x470AE428u; /* 0x470625B7: mov dword ptr [eax + 0x24], 0x470ae428 */ 973 MEM32(eax + 0x18) = 0x470ACC4Cu; /* 0x470625BE: mov dword ptr [eax + 0x18], 0x470acc4c */ 974 ecx = MEM32(eax + 0x24); /* 0x470625C5: mov ecx, dword ptr [eax + 0x24] */ 975 MEM32(eax + 0x20) = 0x470ACC6Cu; /* 0x470625C8: mov dword ptr [eax + 0x20], 0x470acc6c */ 976 ecx = MEM32(ecx + 0x4); /* 0x470625CF: mov ecx, dword ptr [ecx + 4] */ 977 MEM32(ecx + eax + 0x24) = 0x470ACC5Cu; /* 0x470625D2: mov dword ptr [ecx + eax + 0x24], 0x470acc5c */ 978 L_470625DA: 979 ecx = MEM32(esp + 0x8); /* 0x470625DA: mov ecx, dword ptr [esp + 8] */ 980 PUSH32(esp, esi); /* 0x470625DE: push esi */ 981 esi = MEM32(ecx + 0x4); /* 0x470625DF: mov esi, dword ptr [ecx + 4] */ 982 MEM32(eax + 0x4) = esi; /* 0x470625E2: mov dword ptr [eax + 4], esi */ 983 esi = MEM32(ecx + 0x8); /* 0x470625E5: mov esi, dword ptr [ecx + 8] */ 984 MEM32(eax + 0x8) = esi; /* 0x470625E8: mov dword ptr [eax + 8], esi */ 985 esi = MEM32(ecx + 0xC); /* 0x470625EB: mov esi, dword ptr [ecx + 0xc] */ 986 MEM32(eax + 0xC) = esi; /* 0x470625EE: mov dword ptr [eax + 0xc], esi */ 987 ecx = MEM32(ecx + 0x10); /* 0x470625F1: mov ecx, dword ptr [ecx + 0x10] */ 988 MEM32(eax + 0x10) = ecx; /* 0x470625F4: mov dword ptr [eax + 0x10], ecx */ 989 ecx = MEM32(eax); /* 0x470625F7: mov ecx, dword ptr [eax] */ 990 ecx = MEM32(ecx + 0x4); /* 0x470625F9: mov ecx, dword ptr [ecx + 4] */ 991 MEM32(ecx + eax) = 0x470AE39Cu; /* 0x470625FC: mov dword ptr [ecx + eax], 0x470ae39c */ 992 ecx = MEM32(eax); /* 0x47062603: mov ecx, dword ptr [eax] */ 993 ecx = MEM32(ecx + 0x4); /* 0x47062605: mov ecx, dword ptr [ecx + 4] */ 994 MEM32(ecx + eax + (-0x4)) = edx; /* 0x47062608: mov dword ptr [ecx + eax - 4], edx */ 995 ecx = MEM32(eax); /* 0x4706260C: mov ecx, dword ptr [eax] */ 996 ecx = MEM32(ecx + 0x4); /* 0x4706260E: mov ecx, dword ptr [ecx + 4] */ 997 MEM32(ecx + eax) = 0x470AE418u; /* 0x47062611: mov dword ptr [ecx + eax], 0x470ae418 */ 998 ecx = MEM32(eax); /* 0x47062618: mov ecx, dword ptr [eax] */ 999 ecx = MEM32(ecx + 0x8); /* 0x4706261A: mov ecx, dword ptr [ecx + 8] */ 1000 MEM32(ecx + eax) = 0x470AE414u; /* 0x4706261D: mov dword ptr [ecx + eax], 0x470ae414 */ 1001 ecx = MEM32(eax); /* 0x47062624: mov ecx, dword ptr [eax] */ 1002 ecx = MEM32(ecx + 0x4); /* 0x47062626: mov ecx, dword ptr [ecx + 4] */ 1003 MEM32(ecx + eax + (-0x4)) = edx; /* 0x47062629: mov dword ptr [ecx + eax - 4], edx */ 1004 ecx = MEM32(eax); /* 0x4706262D: mov ecx, dword ptr [eax] */ 1005 ecx = MEM32(ecx + 0x8); /* 0x4706262F: mov ecx, dword ptr [ecx + 8] */ 1006 MEM32(ecx + eax + (-0x4)) = edx; /* 0x47062632: mov dword ptr [ecx + eax - 4], edx */ 1007 esi = POP32_VAL(esp); /* 0x47062636: pop esi */ 1008 ecx = POP32_VAL(esp); /* 0x47062637: pop ecx */ 1009 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47062638: ret 8 */ 1010 RECOMP_REGS_OUT(); 1011 } 1012 1013 void sub_47062640(void) { 1014 int _fpu_cmp = 0; 1015 uint32_t _cf = 0; 1016 int _df = 1; 1017 uint32_t _flag_k = FK_NONE; 1018 uint32_t _flag_a = 0, _flag_b = 0; 1019 uint32_t _itail_tgt = 0; 1020 RECOMP_REGS_LOCALS 1021 RECOMP_ENTER(0x47062640u); 1022 1023 L_47062640: 1024 PUSH32(esp, esi); /* 0x47062640: push esi */ 1025 esi = ecx; /* 0x47062641: mov esi, ecx */ 1026 PUSH32(esp, edi); /* 0x47062643: push edi */ 1027 edi = esi + 0x18; /* 0x47062644: lea edi, [esi + 0x18] */ 1028 ecx = edi; /* 0x47062647: mov ecx, edi */ 1029 RECOMP_ICALL(0x470A0170u); /* 0x47062649: call 0x470a0170 */ /* not lifted */ 1030 RECOMP_FLAGS_IN(); 1031 ecx = esi + 0x28; /* 0x4706264E: lea ecx, [esi + 0x28] */ 1032 RECOMP_ICALL(0x47018760u); /* 0x47062651: call 0x47018760 */ /* not lifted */ 1033 RECOMP_FLAGS_IN(); 1034 ecx = edi; /* 0x47062656: mov ecx, edi */ 1035 RECOMP_ICALL(0x47018750u); /* 0x47062658: call 0x47018750 */ /* not lifted */ 1036 RECOMP_FLAGS_IN(); 1037 edi = POP32_VAL(esp); /* 0x4706265D: pop edi */ 1038 esi = POP32_VAL(esp); /* 0x4706265E: pop esi */ 1039 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706265F: ret */ 1040 RECOMP_REGS_OUT(); 1041 } 1042 1043 void sub_47062660(void) { 1044 int _fpu_cmp = 0; 1045 uint32_t _cf = 0; 1046 int _df = 1; 1047 uint32_t _flag_k = FK_NONE; 1048 uint32_t _flag_a = 0, _flag_b = 0; 1049 uint32_t _itail_tgt = 0; 1050 RECOMP_REGS_LOCALS 1051 RECOMP_ENTER(0x47062660u); 1052 1053 L_47062660: 1054 PUSH32(esp, ebx); /* 0x47062660: push ebx */ 1055 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47062661: mov bl, byte ptr [esp + 8] */ 1056 /* test LO8(ebx), 2 */ /* 0x47062665: test bl, 2 */ 1057 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 1058 _cf = 0; 1059 _flag_k = FK_NARROW(FK_TEST, 24); 1060 PUSH32(esp, esi); /* 0x47062668: push esi */ 1061 if (TEST_Z(_flag_a, _flag_b)) goto L_47062697; /* 0x47062669: je 0x47062697 */ 1062 L_4706266B: 1063 eax = MEM32(ecx + (-0x1C)); /* 0x4706266B: mov eax, dword ptr [ecx - 0x1c] */ 1064 esi = ecx + (-0x1C); /* 0x4706266E: lea esi, [ecx - 0x1c] */ 1065 PUSH32(esp, 0x47062640u); /* 0x47062671: push 0x47062640 */ 1066 PUSH32(esp, eax); /* 0x47062676: push eax */ 1067 PUSH32(esp, 0x28u); /* 0x47062677: push 0x28 */ 1068 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFE8u); 1069 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1070 ecx = ecx + 0xFFFFFFE8u; /* 0x47062679: add ecx, -0x18 */ 1071 _flag_k = FK_ADD; 1072 PUSH32(esp, ecx); /* 0x4706267C: push ecx */ 1073 RECOMP_ICALL(0x470A32EBu); /* 0x4706267D: call 0x470a32eb */ /* not lifted */ 1074 RECOMP_FLAGS_IN(); 1075 /* test LO8(ebx), 1 */ /* 0x47062682: test bl, 1 */ 1076 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1077 _cf = 0; 1078 _flag_k = FK_NARROW(FK_TEST, 24); 1079 if (TEST_Z(_flag_a, _flag_b)) goto L_470626C3; /* 0x47062685: je 0x470626c3 */ 1080 L_47062687: 1081 PUSH32(esp, esi); /* 0x47062687: push esi */ 1082 RECOMP_ICALL(0x470A32A2u); /* 0x47062688: call 0x470a32a2 */ /* not lifted */ 1083 RECOMP_FLAGS_IN(); 1084 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1085 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1086 esp = esp + 4; /* 0x4706268D: add esp, 4 */ 1087 _flag_k = FK_ADD; 1088 eax = esi; /* 0x47062690: mov eax, esi */ 1089 esi = POP32_VAL(esp); /* 0x47062692: pop esi */ 1090 ebx = POP32_VAL(esp); /* 0x47062693: pop ebx */ 1091 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47062694: ret 4 */ 1092 L_47062697: 1093 esi = ecx + (-0x18); /* 0x47062697: lea esi, [ecx - 0x18] */ 1094 PUSH32(esp, edi); /* 0x4706269A: push edi */ 1095 edi = esi + 0x18; /* 0x4706269B: lea edi, [esi + 0x18] */ 1096 ecx = edi; /* 0x4706269E: mov ecx, edi */ 1097 RECOMP_ICALL(0x470A0170u); /* 0x470626A0: call 0x470a0170 */ /* not lifted */ 1098 RECOMP_FLAGS_IN(); 1099 ecx = esi + 0x28; /* 0x470626A5: lea ecx, [esi + 0x28] */ 1100 RECOMP_ICALL(0x47018760u); /* 0x470626A8: call 0x47018760 */ /* not lifted */ 1101 RECOMP_FLAGS_IN(); 1102 ecx = edi; /* 0x470626AD: mov ecx, edi */ 1103 RECOMP_ICALL(0x47018750u); /* 0x470626AF: call 0x47018750 */ /* not lifted */ 1104 RECOMP_FLAGS_IN(); 1105 /* test LO8(ebx), 1 */ /* 0x470626B4: test bl, 1 */ 1106 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1107 _cf = 0; 1108 _flag_k = FK_NARROW(FK_TEST, 24); 1109 edi = POP32_VAL(esp); /* 0x470626B7: pop edi */ 1110 if (TEST_Z(_flag_a, _flag_b)) goto L_470626C3; /* 0x470626B8: je 0x470626c3 */ 1111 L_470626BA: 1112 PUSH32(esp, esi); /* 0x470626BA: push esi */ 1113 RECOMP_ICALL(0x470A32A2u); /* 0x470626BB: call 0x470a32a2 */ /* not lifted */ 1114 RECOMP_FLAGS_IN(); 1115 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1116 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1117 esp = esp + 4; /* 0x470626C0: add esp, 4 */ 1118 _flag_k = FK_ADD; 1119 L_470626C3: 1120 eax = esi; /* 0x470626C3: mov eax, esi */ 1121 esi = POP32_VAL(esp); /* 0x470626C5: pop esi */ 1122 ebx = POP32_VAL(esp); /* 0x470626C6: pop ebx */ 1123 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470626C7: ret 4 */ 1124 RECOMP_REGS_OUT(); 1125 } 1126 1127 void sub_470626D0(void) { 1128 int _fpu_cmp = 0; 1129 uint32_t _cf = 0; 1130 int _df = 1; 1131 uint32_t _flag_k = FK_NONE; 1132 uint32_t _flag_a = 0, _flag_b = 0; 1133 uint32_t _itail_tgt = 0; 1134 RECOMP_REGS_LOCALS 1135 RECOMP_ENTER(0x470626D0u); 1136 1137 L_470626D0: 1138 PUSH32(esp, ecx); /* 0x470626D0: push ecx */ 1139 PUSH32(esp, ebx); /* 0x470626D1: push ebx */ 1140 eax = ecx; /* 0x470626D2: mov eax, ecx */ 1141 ecx = MEM32(esp + 0x10); /* 0x470626D4: mov ecx, dword ptr [esp + 0x10] */ 1142 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1143 ebx = 0; /* 0x470626D8: xor ebx, ebx */ 1144 _cf = 0; 1145 _flag_k = FK_TEST; 1146 /* cmp ecx, ebx */ /* 0x470626DA: cmp ecx, ebx */ 1147 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 1148 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1149 _flag_k = FK_CMP; 1150 PUSH32(esp, esi); /* 0x470626DC: push esi */ 1151 PUSH32(esp, edi); /* 0x470626DD: push edi */ 1152 MEM32(esp + 0xC) = ebx; /* 0x470626DE: mov dword ptr [esp + 0xc], ebx */ 1153 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706270E; /* 0x470626E2: je 0x4706270e */ 1154 L_470626E4: 1155 MEM32(eax + 0x14) = 0x470AE484u; /* 0x470626E4: mov dword ptr [eax + 0x14], 0x470ae484 */ 1156 MEM32(eax + 0x4C) = 0x470AE47Cu; /* 0x470626EB: mov dword ptr [eax + 0x4c], 0x470ae47c */ 1157 MEM32(eax + 0x40) = 0x470ACC18u; /* 0x470626F2: mov dword ptr [eax + 0x40], 0x470acc18 */ 1158 ecx = MEM32(eax + 0x4C); /* 0x470626F9: mov ecx, dword ptr [eax + 0x4c] */ 1159 MEM32(eax + 0x48) = 0x470ACD10u; /* 0x470626FC: mov dword ptr [eax + 0x48], 0x470acd10 */ 1160 edx = MEM32(ecx + 0x4); /* 0x47062703: mov edx, dword ptr [ecx + 4] */ 1161 MEM32(edx + eax + 0x4C) = 0x470ACCDCu; /* 0x47062706: mov dword ptr [edx + eax + 0x4c], 0x470accdc */ 1162 L_4706270E: 1163 edx = MEM32(esp + 0x14); /* 0x4706270E: mov edx, dword ptr [esp + 0x14] */ 1164 esi = edx; /* 0x47062712: mov esi, edx */ 1165 ecx = 5; /* 0x47062714: mov ecx, 5 */ 1166 edi = eax; /* 0x47062719: mov edi, eax */ 1167 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4706271B: 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; } 1168 ecx = MEM32(edx + 0x18); /* 0x4706271D: mov ecx, dword ptr [edx + 0x18] */ 1169 MEM32(eax + 0x18) = ecx; /* 0x47062720: mov dword ptr [eax + 0x18], ecx */ 1170 ecx = MEM32(edx + 0x1C); /* 0x47062723: mov ecx, dword ptr [edx + 0x1c] */ 1171 MEM32(eax + 0x1C) = ecx; /* 0x47062726: mov dword ptr [eax + 0x1c], ecx */ 1172 ecx = MEM32(edx + 0x20); /* 0x47062729: mov ecx, dword ptr [edx + 0x20] */ 1173 MEM32(eax + 0x20) = ecx; /* 0x4706272C: mov dword ptr [eax + 0x20], ecx */ 1174 ecx = MEM32(edx + 0x24); /* 0x4706272F: mov ecx, dword ptr [edx + 0x24] */ 1175 MEM32(eax + 0x24) = ecx; /* 0x47062732: mov dword ptr [eax + 0x24], ecx */ 1176 ecx = MEM32(edx + 0x28); /* 0x47062735: mov ecx, dword ptr [edx + 0x28] */ 1177 MEM32(eax + 0x28) = ecx; /* 0x47062738: mov dword ptr [eax + 0x28], ecx */ 1178 ecx = MEM32(edx + 0x2C); /* 0x4706273B: mov ecx, dword ptr [edx + 0x2c] */ 1179 MEM32(eax + 0x2C) = ecx; /* 0x4706273E: mov dword ptr [eax + 0x2c], ecx */ 1180 ecx = MEM32(eax + 0x14); /* 0x47062741: mov ecx, dword ptr [eax + 0x14] */ 1181 ecx = MEM32(ecx + 0x4); /* 0x47062744: mov ecx, dword ptr [ecx + 4] */ 1182 MEM32(ecx + eax + 0x14) = 0x470AE360u; /* 0x47062747: mov dword ptr [ecx + eax + 0x14], 0x470ae360 */ 1183 ecx = MEM32(eax + 0x14); /* 0x4706274F: mov ecx, dword ptr [eax + 0x14] */ 1184 ecx = MEM32(ecx + 0x4); /* 0x47062752: mov ecx, dword ptr [ecx + 4] */ 1185 MEM32(ecx + eax + 0x10) = ebx; /* 0x47062755: mov dword ptr [ecx + eax + 0x10], ebx */ 1186 ecx = MEM32(edx + 0x30); /* 0x47062759: mov ecx, dword ptr [edx + 0x30] */ 1187 MEM32(eax + 0x30) = ecx; /* 0x4706275C: mov dword ptr [eax + 0x30], ecx */ 1188 ecx = MEM32(edx + 0x34); /* 0x4706275F: mov ecx, dword ptr [edx + 0x34] */ 1189 MEM32(eax + 0x34) = ecx; /* 0x47062762: mov dword ptr [eax + 0x34], ecx */ 1190 edx = MEM32(edx + 0x38); /* 0x47062765: mov edx, dword ptr [edx + 0x38] */ 1191 ecx = MEM32(eax + 0x14); /* 0x47062768: mov ecx, dword ptr [eax + 0x14] */ 1192 MEM32(eax + 0x38) = edx; /* 0x4706276B: mov dword ptr [eax + 0x38], edx */ 1193 edx = MEM32(ecx + 0x4); /* 0x4706276E: mov edx, dword ptr [ecx + 4] */ 1194 MEM32(edx + eax + 0x14) = 0x470AE448u; /* 0x47062771: mov dword ptr [edx + eax + 0x14], 0x470ae448 */ 1195 ecx = MEM32(eax + 0x14); /* 0x47062779: mov ecx, dword ptr [eax + 0x14] */ 1196 edx = MEM32(ecx + 0x8); /* 0x4706277C: mov edx, dword ptr [ecx + 8] */ 1197 MEM32(edx + eax + 0x14) = 0x470AE43Cu; /* 0x4706277F: mov dword ptr [edx + eax + 0x14], 0x470ae43c */ 1198 ecx = MEM32(eax + 0x14); /* 0x47062787: mov ecx, dword ptr [eax + 0x14] */ 1199 edx = MEM32(ecx + 0x4); /* 0x4706278A: mov edx, dword ptr [ecx + 4] */ 1200 MEM32(edx + eax + 0x10) = ebx; /* 0x4706278D: mov dword ptr [edx + eax + 0x10], ebx */ 1201 ecx = MEM32(eax + 0x14); /* 0x47062791: mov ecx, dword ptr [eax + 0x14] */ 1202 edx = MEM32(ecx + 0x8); /* 0x47062794: mov edx, dword ptr [ecx + 8] */ 1203 edi = POP32_VAL(esp); /* 0x47062797: pop edi */ 1204 esi = POP32_VAL(esp); /* 0x47062798: pop esi */ 1205 MEM32(edx + eax + 0x10) = ebx; /* 0x47062799: mov dword ptr [edx + eax + 0x10], ebx */ 1206 ebx = POP32_VAL(esp); /* 0x4706279D: pop ebx */ 1207 ecx = POP32_VAL(esp); /* 0x4706279E: pop ecx */ 1208 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4706279F: ret 8 */ 1209 RECOMP_REGS_OUT(); 1210 } 1211 1212 void sub_470627B0(void) { 1213 int _fpu_cmp = 0; 1214 uint32_t _cf = 0; 1215 int _df = 1; 1216 uint32_t _flag_k = FK_NONE; 1217 uint32_t _flag_a = 0, _flag_b = 0; 1218 uint32_t _itail_tgt = 0; 1219 RECOMP_REGS_LOCALS 1220 RECOMP_ENTER(0x470627B0u); 1221 1222 L_470627B0: 1223 PUSH32(esp, esi); /* 0x470627B0: push esi */ 1224 esi = ecx; /* 0x470627B1: mov esi, ecx */ 1225 PUSH32(esp, edi); /* 0x470627B3: push edi */ 1226 edi = esi + 0x40; /* 0x470627B4: lea edi, [esi + 0x40] */ 1227 ecx = edi; /* 0x470627B7: mov ecx, edi */ 1228 RECOMP_ICALL(0x470A0430u); /* 0x470627B9: call 0x470a0430 */ /* not lifted */ 1229 RECOMP_FLAGS_IN(); 1230 ecx = esi + 0x50; /* 0x470627BE: lea ecx, [esi + 0x50] */ 1231 RECOMP_ICALL(0x470187C0u); /* 0x470627C1: call 0x470187c0 */ /* not lifted */ 1232 RECOMP_FLAGS_IN(); 1233 ecx = edi; /* 0x470627C6: mov ecx, edi */ 1234 RECOMP_ICALL(0x47018740u); /* 0x470627C8: call 0x47018740 */ /* not lifted */ 1235 RECOMP_FLAGS_IN(); 1236 edi = POP32_VAL(esp); /* 0x470627CD: pop edi */ 1237 esi = POP32_VAL(esp); /* 0x470627CE: pop esi */ 1238 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470627CF: ret */ 1239 RECOMP_REGS_OUT(); 1240 } 1241 1242 void sub_470627D0(void) { 1243 int _fpu_cmp = 0; 1244 uint32_t _cf = 0; 1245 int _df = 1; 1246 uint32_t _flag_k = FK_NONE; 1247 uint32_t _flag_a = 0, _flag_b = 0; 1248 uint32_t _itail_tgt = 0; 1249 RECOMP_REGS_LOCALS 1250 RECOMP_ENTER(0x470627D0u); 1251 1252 L_470627D0: 1253 PUSH32(esp, ebx); /* 0x470627D0: push ebx */ 1254 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x470627D1: mov bl, byte ptr [esp + 8] */ 1255 /* test LO8(ebx), 2 */ /* 0x470627D5: test bl, 2 */ 1256 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 1257 _cf = 0; 1258 _flag_k = FK_NARROW(FK_TEST, 24); 1259 PUSH32(esp, esi); /* 0x470627D8: push esi */ 1260 if (TEST_Z(_flag_a, _flag_b)) goto L_47062807; /* 0x470627D9: je 0x47062807 */ 1261 L_470627DB: 1262 eax = MEM32(ecx + (-0x44)); /* 0x470627DB: mov eax, dword ptr [ecx - 0x44] */ 1263 esi = ecx + (-0x44); /* 0x470627DE: lea esi, [ecx - 0x44] */ 1264 PUSH32(esp, 0x470627B0u); /* 0x470627E1: push 0x470627b0 */ 1265 PUSH32(esp, eax); /* 0x470627E6: push eax */ 1266 PUSH32(esp, 0x50u); /* 0x470627E7: push 0x50 */ 1267 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFC0u); 1268 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1269 ecx = ecx + 0xFFFFFFC0u; /* 0x470627E9: add ecx, -0x40 */ 1270 _flag_k = FK_ADD; 1271 PUSH32(esp, ecx); /* 0x470627EC: push ecx */ 1272 RECOMP_ICALL(0x470A32EBu); /* 0x470627ED: call 0x470a32eb */ /* not lifted */ 1273 RECOMP_FLAGS_IN(); 1274 /* test LO8(ebx), 1 */ /* 0x470627F2: test bl, 1 */ 1275 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1276 _cf = 0; 1277 _flag_k = FK_NARROW(FK_TEST, 24); 1278 if (TEST_Z(_flag_a, _flag_b)) goto L_47062833; /* 0x470627F5: je 0x47062833 */ 1279 L_470627F7: 1280 PUSH32(esp, esi); /* 0x470627F7: push esi */ 1281 RECOMP_ICALL(0x470A32A2u); /* 0x470627F8: call 0x470a32a2 */ /* not lifted */ 1282 RECOMP_FLAGS_IN(); 1283 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1284 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1285 esp = esp + 4; /* 0x470627FD: add esp, 4 */ 1286 _flag_k = FK_ADD; 1287 eax = esi; /* 0x47062800: mov eax, esi */ 1288 esi = POP32_VAL(esp); /* 0x47062802: pop esi */ 1289 ebx = POP32_VAL(esp); /* 0x47062803: pop ebx */ 1290 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47062804: ret 4 */ 1291 L_47062807: 1292 esi = ecx + (-0x40); /* 0x47062807: lea esi, [ecx - 0x40] */ 1293 PUSH32(esp, edi); /* 0x4706280A: push edi */ 1294 edi = esi + 0x40; /* 0x4706280B: lea edi, [esi + 0x40] */ 1295 ecx = edi; /* 0x4706280E: mov ecx, edi */ 1296 RECOMP_ICALL(0x470A0430u); /* 0x47062810: call 0x470a0430 */ /* not lifted */ 1297 RECOMP_FLAGS_IN(); 1298 ecx = esi + 0x50; /* 0x47062815: lea ecx, [esi + 0x50] */ 1299 RECOMP_ICALL(0x470187C0u); /* 0x47062818: call 0x470187c0 */ /* not lifted */ 1300 RECOMP_FLAGS_IN(); 1301 ecx = edi; /* 0x4706281D: mov ecx, edi */ 1302 RECOMP_ICALL(0x47018740u); /* 0x4706281F: call 0x47018740 */ /* not lifted */ 1303 RECOMP_FLAGS_IN(); 1304 /* test LO8(ebx), 1 */ /* 0x47062824: test bl, 1 */ 1305 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1306 _cf = 0; 1307 _flag_k = FK_NARROW(FK_TEST, 24); 1308 edi = POP32_VAL(esp); /* 0x47062827: pop edi */ 1309 if (TEST_Z(_flag_a, _flag_b)) goto L_47062833; /* 0x47062828: je 0x47062833 */ 1310 L_4706282A: 1311 PUSH32(esp, esi); /* 0x4706282A: push esi */ 1312 RECOMP_ICALL(0x470A32A2u); /* 0x4706282B: call 0x470a32a2 */ /* not lifted */ 1313 RECOMP_FLAGS_IN(); 1314 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1315 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1316 esp = esp + 4; /* 0x47062830: add esp, 4 */ 1317 _flag_k = FK_ADD; 1318 L_47062833: 1319 eax = esi; /* 0x47062833: mov eax, esi */ 1320 esi = POP32_VAL(esp); /* 0x47062835: pop esi */ 1321 ebx = POP32_VAL(esp); /* 0x47062836: pop ebx */ 1322 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47062837: ret 4 */ 1323 RECOMP_REGS_OUT(); 1324 } 1325 1326 void sub_47062840(void) { 1327 int _fpu_cmp = 0; 1328 uint32_t _cf = 0; 1329 int _df = 1; 1330 uint32_t _flag_k = FK_NONE; 1331 uint32_t _flag_a = 0, _flag_b = 0; 1332 uint32_t _itail_tgt = 0; 1333 RECOMP_REGS_LOCALS 1334 RECOMP_ENTER(0x47062840u); 1335 1336 L_47062840: 1337 PUSH32(esp, ecx); /* 0x47062840: push ecx */ 1338 eax = ecx; /* 0x47062841: mov eax, ecx */ 1339 ecx = MEM32(esp + 0xC); /* 0x47062843: mov ecx, dword ptr [esp + 0xc] */ 1340 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1341 edx = 0; /* 0x47062847: xor edx, edx */ 1342 _cf = 0; 1343 _flag_k = FK_TEST; 1344 /* cmp ecx, edx */ /* 0x47062849: cmp ecx, edx */ 1345 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1346 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1347 _flag_k = FK_CMP; 1348 MEM32(esp) = edx; /* 0x4706284B: mov dword ptr [esp], edx */ 1349 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706287A; /* 0x4706284F: je 0x4706287a */ 1350 L_47062851: 1351 MEM32(eax) = 0x470AE4ACu; /* 0x47062851: mov dword ptr [eax], 0x470ae4ac */ 1352 MEM32(eax + 0x24) = 0x470AE4A4u; /* 0x47062857: mov dword ptr [eax + 0x24], 0x470ae4a4 */ 1353 MEM32(eax + 0x18) = 0x470ACC4Cu; /* 0x4706285E: mov dword ptr [eax + 0x18], 0x470acc4c */ 1354 ecx = MEM32(eax + 0x24); /* 0x47062865: mov ecx, dword ptr [eax + 0x24] */ 1355 MEM32(eax + 0x20) = 0x470ACCD0u; /* 0x47062868: mov dword ptr [eax + 0x20], 0x470accd0 */ 1356 ecx = MEM32(ecx + 0x4); /* 0x4706286F: mov ecx, dword ptr [ecx + 4] */ 1357 MEM32(ecx + eax + 0x24) = 0x470ACCC0u; /* 0x47062872: mov dword ptr [ecx + eax + 0x24], 0x470accc0 */ 1358 L_4706287A: 1359 ecx = MEM32(esp + 0x8); /* 0x4706287A: mov ecx, dword ptr [esp + 8] */ 1360 PUSH32(esp, esi); /* 0x4706287E: push esi */ 1361 esi = MEM32(ecx + 0x4); /* 0x4706287F: mov esi, dword ptr [ecx + 4] */ 1362 MEM32(eax + 0x4) = esi; /* 0x47062882: mov dword ptr [eax + 4], esi */ 1363 esi = MEM32(ecx + 0x8); /* 0x47062885: mov esi, dword ptr [ecx + 8] */ 1364 MEM32(eax + 0x8) = esi; /* 0x47062888: mov dword ptr [eax + 8], esi */ 1365 esi = MEM32(ecx + 0xC); /* 0x4706288B: mov esi, dword ptr [ecx + 0xc] */ 1366 MEM32(eax + 0xC) = esi; /* 0x4706288E: mov dword ptr [eax + 0xc], esi */ 1367 ecx = MEM32(ecx + 0x10); /* 0x47062891: mov ecx, dword ptr [ecx + 0x10] */ 1368 MEM32(eax + 0x10) = ecx; /* 0x47062894: mov dword ptr [eax + 0x10], ecx */ 1369 ecx = MEM32(eax); /* 0x47062897: mov ecx, dword ptr [eax] */ 1370 ecx = MEM32(ecx + 0x4); /* 0x47062899: mov ecx, dword ptr [ecx + 4] */ 1371 MEM32(ecx + eax) = 0x470AE39Cu; /* 0x4706289C: mov dword ptr [ecx + eax], 0x470ae39c */ 1372 ecx = MEM32(eax); /* 0x470628A3: mov ecx, dword ptr [eax] */ 1373 ecx = MEM32(ecx + 0x4); /* 0x470628A5: mov ecx, dword ptr [ecx + 4] */ 1374 MEM32(ecx + eax + (-0x4)) = edx; /* 0x470628A8: mov dword ptr [ecx + eax - 4], edx */ 1375 ecx = MEM32(eax); /* 0x470628AC: mov ecx, dword ptr [eax] */ 1376 ecx = MEM32(ecx + 0x4); /* 0x470628AE: mov ecx, dword ptr [ecx + 4] */ 1377 MEM32(ecx + eax) = 0x470AE494u; /* 0x470628B1: mov dword ptr [ecx + eax], 0x470ae494 */ 1378 ecx = MEM32(eax); /* 0x470628B8: mov ecx, dword ptr [eax] */ 1379 ecx = MEM32(ecx + 0x8); /* 0x470628BA: mov ecx, dword ptr [ecx + 8] */ 1380 MEM32(ecx + eax) = 0x470AE490u; /* 0x470628BD: mov dword ptr [ecx + eax], 0x470ae490 */ 1381 ecx = MEM32(eax); /* 0x470628C4: mov ecx, dword ptr [eax] */ 1382 ecx = MEM32(ecx + 0x4); /* 0x470628C6: mov ecx, dword ptr [ecx + 4] */ 1383 MEM32(ecx + eax + (-0x4)) = edx; /* 0x470628C9: mov dword ptr [ecx + eax - 4], edx */ 1384 ecx = MEM32(eax); /* 0x470628CD: mov ecx, dword ptr [eax] */ 1385 ecx = MEM32(ecx + 0x8); /* 0x470628CF: mov ecx, dword ptr [ecx + 8] */ 1386 MEM32(ecx + eax + (-0x4)) = edx; /* 0x470628D2: mov dword ptr [ecx + eax - 4], edx */ 1387 esi = POP32_VAL(esp); /* 0x470628D6: pop esi */ 1388 ecx = POP32_VAL(esp); /* 0x470628D7: pop ecx */ 1389 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470628D8: ret 8 */ 1390 RECOMP_REGS_OUT(); 1391 } 1392 1393 void sub_470628E0(void) { 1394 int _fpu_cmp = 0; 1395 uint32_t _cf = 0; 1396 int _df = 1; 1397 uint32_t _flag_k = FK_NONE; 1398 uint32_t _flag_a = 0, _flag_b = 0; 1399 uint32_t _itail_tgt = 0; 1400 RECOMP_REGS_LOCALS 1401 RECOMP_ENTER(0x470628E0u); 1402 1403 L_470628E0: 1404 PUSH32(esp, esi); /* 0x470628E0: push esi */ 1405 esi = ecx; /* 0x470628E1: mov esi, ecx */ 1406 PUSH32(esp, edi); /* 0x470628E3: push edi */ 1407 edi = esi + 0x18; /* 0x470628E4: lea edi, [esi + 0x18] */ 1408 ecx = edi; /* 0x470628E7: mov ecx, edi */ 1409 RECOMP_ICALL(0x470A0640u); /* 0x470628E9: call 0x470a0640 */ /* not lifted */ 1410 RECOMP_FLAGS_IN(); 1411 ecx = esi + 0x28; /* 0x470628EE: lea ecx, [esi + 0x28] */ 1412 RECOMP_ICALL(0x470187A0u); /* 0x470628F1: call 0x470187a0 */ /* not lifted */ 1413 RECOMP_FLAGS_IN(); 1414 ecx = edi; /* 0x470628F6: mov ecx, edi */ 1415 RECOMP_ICALL(0x47018750u); /* 0x470628F8: call 0x47018750 */ /* not lifted */ 1416 RECOMP_FLAGS_IN(); 1417 edi = POP32_VAL(esp); /* 0x470628FD: pop edi */ 1418 esi = POP32_VAL(esp); /* 0x470628FE: pop esi */ 1419 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470628FF: ret */ 1420 RECOMP_REGS_OUT(); 1421 } 1422 1423 void sub_47062900(void) { 1424 int _fpu_cmp = 0; 1425 uint32_t _cf = 0; 1426 int _df = 1; 1427 uint32_t _flag_k = FK_NONE; 1428 uint32_t _flag_a = 0, _flag_b = 0; 1429 uint32_t _itail_tgt = 0; 1430 RECOMP_REGS_LOCALS 1431 RECOMP_ENTER(0x47062900u); 1432 1433 L_47062900: 1434 PUSH32(esp, ebx); /* 0x47062900: push ebx */ 1435 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47062901: mov bl, byte ptr [esp + 8] */ 1436 /* test LO8(ebx), 2 */ /* 0x47062905: test bl, 2 */ 1437 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 1438 _cf = 0; 1439 _flag_k = FK_NARROW(FK_TEST, 24); 1440 PUSH32(esp, esi); /* 0x47062908: push esi */ 1441 if (TEST_Z(_flag_a, _flag_b)) goto L_47062937; /* 0x47062909: je 0x47062937 */ 1442 L_4706290B: 1443 eax = MEM32(ecx + (-0x1C)); /* 0x4706290B: mov eax, dword ptr [ecx - 0x1c] */ 1444 esi = ecx + (-0x1C); /* 0x4706290E: lea esi, [ecx - 0x1c] */ 1445 PUSH32(esp, 0x470628E0u); /* 0x47062911: push 0x470628e0 */ 1446 PUSH32(esp, eax); /* 0x47062916: push eax */ 1447 PUSH32(esp, 0x28u); /* 0x47062917: push 0x28 */ 1448 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFE8u); 1449 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1450 ecx = ecx + 0xFFFFFFE8u; /* 0x47062919: add ecx, -0x18 */ 1451 _flag_k = FK_ADD; 1452 PUSH32(esp, ecx); /* 0x4706291C: push ecx */ 1453 RECOMP_ICALL(0x470A32EBu); /* 0x4706291D: call 0x470a32eb */ /* not lifted */ 1454 RECOMP_FLAGS_IN(); 1455 /* test LO8(ebx), 1 */ /* 0x47062922: test bl, 1 */ 1456 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1457 _cf = 0; 1458 _flag_k = FK_NARROW(FK_TEST, 24); 1459 if (TEST_Z(_flag_a, _flag_b)) goto L_47062963; /* 0x47062925: je 0x47062963 */ 1460 L_47062927: 1461 PUSH32(esp, esi); /* 0x47062927: push esi */ 1462 RECOMP_ICALL(0x470A32A2u); /* 0x47062928: call 0x470a32a2 */ /* not lifted */ 1463 RECOMP_FLAGS_IN(); 1464 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1465 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1466 esp = esp + 4; /* 0x4706292D: add esp, 4 */ 1467 _flag_k = FK_ADD; 1468 eax = esi; /* 0x47062930: mov eax, esi */ 1469 esi = POP32_VAL(esp); /* 0x47062932: pop esi */ 1470 ebx = POP32_VAL(esp); /* 0x47062933: pop ebx */ 1471 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47062934: ret 4 */ 1472 L_47062937: 1473 esi = ecx + (-0x18); /* 0x47062937: lea esi, [ecx - 0x18] */ 1474 PUSH32(esp, edi); /* 0x4706293A: push edi */ 1475 edi = esi + 0x18; /* 0x4706293B: lea edi, [esi + 0x18] */ 1476 ecx = edi; /* 0x4706293E: mov ecx, edi */ 1477 RECOMP_ICALL(0x470A0640u); /* 0x47062940: call 0x470a0640 */ /* not lifted */ 1478 RECOMP_FLAGS_IN(); 1479 ecx = esi + 0x28; /* 0x47062945: lea ecx, [esi + 0x28] */ 1480 RECOMP_ICALL(0x470187A0u); /* 0x47062948: call 0x470187a0 */ /* not lifted */ 1481 RECOMP_FLAGS_IN(); 1482 ecx = edi; /* 0x4706294D: mov ecx, edi */ 1483 RECOMP_ICALL(0x47018750u); /* 0x4706294F: call 0x47018750 */ /* not lifted */ 1484 RECOMP_FLAGS_IN(); 1485 /* test LO8(ebx), 1 */ /* 0x47062954: test bl, 1 */ 1486 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1487 _cf = 0; 1488 _flag_k = FK_NARROW(FK_TEST, 24); 1489 edi = POP32_VAL(esp); /* 0x47062957: pop edi */ 1490 if (TEST_Z(_flag_a, _flag_b)) goto L_47062963; /* 0x47062958: je 0x47062963 */ 1491 L_4706295A: 1492 PUSH32(esp, esi); /* 0x4706295A: push esi */ 1493 RECOMP_ICALL(0x470A32A2u); /* 0x4706295B: call 0x470a32a2 */ /* not lifted */ 1494 RECOMP_FLAGS_IN(); 1495 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1496 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1497 esp = esp + 4; /* 0x47062960: add esp, 4 */ 1498 _flag_k = FK_ADD; 1499 L_47062963: 1500 eax = esi; /* 0x47062963: mov eax, esi */ 1501 esi = POP32_VAL(esp); /* 0x47062965: pop esi */ 1502 ebx = POP32_VAL(esp); /* 0x47062966: pop ebx */ 1503 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47062967: ret 4 */ 1504 RECOMP_REGS_OUT(); 1505 } 1506 1507 void sub_47062970(void) { 1508 int _fpu_cmp = 0; 1509 uint32_t _cf = 0; 1510 int _df = 1; 1511 uint32_t _flag_k = FK_NONE; 1512 uint32_t _flag_a = 0, _flag_b = 0; 1513 uint32_t _itail_tgt = 0; 1514 RECOMP_REGS_LOCALS 1515 RECOMP_ENTER(0x47062970u); 1516 1517 L_47062970: 1518 PUSH32(esp, ecx); /* 0x47062970: push ecx */ 1519 PUSH32(esp, ebx); /* 0x47062971: push ebx */ 1520 eax = ecx; /* 0x47062972: mov eax, ecx */ 1521 ecx = MEM32(esp + 0x10); /* 0x47062974: mov ecx, dword ptr [esp + 0x10] */ 1522 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1523 ebx = 0; /* 0x47062978: xor ebx, ebx */ 1524 _cf = 0; 1525 _flag_k = FK_TEST; 1526 /* cmp ecx, ebx */ /* 0x4706297A: cmp ecx, ebx */ 1527 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 1528 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1529 _flag_k = FK_CMP; 1530 PUSH32(esp, ebp); /* 0x4706297C: push ebp */ 1531 ebp = MEM32(esp + 0x10); /* 0x4706297D: mov ebp, dword ptr [esp + 0x10] */ 1532 MEM32(esp + 0x8) = ebx; /* 0x47062981: mov dword ptr [esp + 8], ebx */ 1533 if (CMP_EQ(_flag_a, _flag_b)) goto L_47062A3E; /* 0x47062985: je 0x47062a3e */ 1534 L_4706298B: 1535 /* cmp ebp, ebx */ /* 0x4706298B: cmp ebp, ebx */ 1536 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebx); 1537 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1538 _flag_k = FK_CMP; 1539 MEM32(eax) = 0x470AE514u; /* 0x4706298D: mov dword ptr [eax], 0x470ae514 */ 1540 MEM32(eax + 0x20) = 0x470AE50Cu; /* 0x47062993: mov dword ptr [eax + 0x20], 0x470ae50c */ 1541 MEM32(eax + 0x24) = 0x470AE500u; /* 0x4706299A: mov dword ptr [eax + 0x24], 0x470ae500 */ 1542 MEM32(eax + 0x3C) = 0x470AE4F8u; /* 0x470629A1: mov dword ptr [eax + 0x3c], 0x470ae4f8 */ 1543 MEM32(eax + 0x14) = 0x470ACC18u; /* 0x470629A8: mov dword ptr [eax + 0x14], 0x470acc18 */ 1544 ecx = MEM32(eax + 0x20); /* 0x470629AF: mov ecx, dword ptr [eax + 0x20] */ 1545 MEM32(eax + 0x1C) = 0x470ACCACu; /* 0x470629B2: mov dword ptr [eax + 0x1c], 0x470accac */ 1546 edx = MEM32(ecx + 0x4); /* 0x470629B9: mov edx, dword ptr [ecx + 4] */ 1547 MEM32(edx + eax + 0x20) = 0x470ACC78u; /* 0x470629BC: mov dword ptr [edx + eax + 0x20], 0x470acc78 */ 1548 ecx = MEM32(eax + 0x24); /* 0x470629C4: mov ecx, dword ptr [eax + 0x24] */ 1549 edx = MEM32(ecx + 0x4); /* 0x470629C7: mov edx, dword ptr [ecx + 4] */ 1550 MEM32(edx + eax + 0x24) = 0x470ACD5Cu; /* 0x470629CA: mov dword ptr [edx + eax + 0x24], 0x470acd5c */ 1551 ecx = MEM32(eax + 0x24); /* 0x470629D2: mov ecx, dword ptr [eax + 0x24] */ 1552 edx = MEM32(ecx + 0x8); /* 0x470629D5: mov edx, dword ptr [ecx + 8] */ 1553 MEM32(edx + eax + 0x24) = 0x470ACD50u; /* 0x470629D8: mov dword ptr [edx + eax + 0x24], 0x470acd50 */ 1554 if (CMP_EQ(_flag_a, _flag_b)) goto L_470629EA; /* 0x470629E0: je 0x470629ea */ 1555 L_470629E2: 1556 ecx = MEM32(ebp); /* 0x470629E2: mov ecx, dword ptr [ebp] */ 1557 ebx = MEM32(ecx + 0xC); /* 0x470629E5: mov ebx, dword ptr [ecx + 0xc] */ 1558 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebp); 1559 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1560 ebx = ebx + ebp; /* 0x470629E8: add ebx, ebp */ 1561 _flag_k = FK_ADD; 1562 L_470629EA: 1563 edx = eax + 0x28; /* 0x470629EA: lea edx, [eax + 0x28] */ 1564 PUSH32(esp, esi); /* 0x470629ED: push esi */ 1565 PUSH32(esp, edi); /* 0x470629EE: push edi */ 1566 esi = ebx; /* 0x470629EF: mov esi, ebx */ 1567 ecx = 5; /* 0x470629F1: mov ecx, 5 */ 1568 edi = edx; /* 0x470629F6: mov edi, edx */ 1569 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x470629F8: 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; } 1570 ecx = MEM32(ebx + 0x18); /* 0x470629FA: mov ecx, dword ptr [ebx + 0x18] */ 1571 MEM32(edx + 0x18) = ecx; /* 0x470629FD: mov dword ptr [edx + 0x18], ecx */ 1572 ecx = MEM32(ebx + 0x1C); /* 0x47062A00: mov ecx, dword ptr [ebx + 0x1c] */ 1573 MEM32(edx + 0x1C) = ecx; /* 0x47062A03: mov dword ptr [edx + 0x1c], ecx */ 1574 ecx = MEM32(ebx + 0x20); /* 0x47062A06: mov ecx, dword ptr [ebx + 0x20] */ 1575 MEM32(edx + 0x20) = ecx; /* 0x47062A09: mov dword ptr [edx + 0x20], ecx */ 1576 ecx = MEM32(ebx + 0x24); /* 0x47062A0C: mov ecx, dword ptr [ebx + 0x24] */ 1577 MEM32(edx + 0x24) = ecx; /* 0x47062A0F: mov dword ptr [edx + 0x24], ecx */ 1578 ecx = MEM32(ebx + 0x28); /* 0x47062A12: mov ecx, dword ptr [ebx + 0x28] */ 1579 MEM32(edx + 0x28) = ecx; /* 0x47062A15: mov dword ptr [edx + 0x28], ecx */ 1580 ecx = MEM32(ebx + 0x2C); /* 0x47062A18: mov ecx, dword ptr [ebx + 0x2c] */ 1581 MEM32(edx + 0x2C) = ecx; /* 0x47062A1B: mov dword ptr [edx + 0x2c], ecx */ 1582 ecx = MEM32(edx + 0x14); /* 0x47062A1E: mov ecx, dword ptr [edx + 0x14] */ 1583 ecx = MEM32(ecx + 0x4); /* 0x47062A21: mov ecx, dword ptr [ecx + 4] */ 1584 MEM32(ecx + edx + 0x14) = 0x470AE360u; /* 0x47062A24: mov dword ptr [ecx + edx + 0x14], 0x470ae360 */ 1585 ecx = MEM32(edx + 0x14); /* 0x47062A2C: mov ecx, dword ptr [edx + 0x14] */ 1586 ecx = MEM32(ecx + 0x4); /* 0x47062A2F: mov ecx, dword ptr [ecx + 4] */ 1587 edi = POP32_VAL(esp); /* 0x47062A32: pop edi */ 1588 MEM32(ecx + edx + 0x10) = 0; /* 0x47062A33: mov dword ptr [ecx + edx + 0x10], 0 */ 1589 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1590 ebx = 0; /* 0x47062A3B: xor ebx, ebx */ 1591 _cf = 0; 1592 _flag_k = FK_TEST; 1593 esi = POP32_VAL(esp); /* 0x47062A3D: pop esi */ 1594 L_47062A3E: 1595 edx = MEM32(ebp + 0x4); /* 0x47062A3E: mov edx, dword ptr [ebp + 4] */ 1596 MEM32(eax + 0x4) = edx; /* 0x47062A41: mov dword ptr [eax + 4], edx */ 1597 ecx = MEM32(ebp + 0x8); /* 0x47062A44: mov ecx, dword ptr [ebp + 8] */ 1598 MEM32(eax + 0x8) = ecx; /* 0x47062A47: mov dword ptr [eax + 8], ecx */ 1599 edx = MEM32(ebp + 0xC); /* 0x47062A4A: mov edx, dword ptr [ebp + 0xc] */ 1600 ecx = MEM32(eax); /* 0x47062A4D: mov ecx, dword ptr [eax] */ 1601 MEM32(eax + 0xC) = edx; /* 0x47062A4F: mov dword ptr [eax + 0xc], edx */ 1602 edx = MEM32(ecx + 0x4); /* 0x47062A52: mov edx, dword ptr [ecx + 4] */ 1603 MEM32(edx + eax) = 0x470AE3C0u; /* 0x47062A55: mov dword ptr [edx + eax], 0x470ae3c0 */ 1604 ecx = MEM32(eax); /* 0x47062A5C: mov ecx, dword ptr [eax] */ 1605 edx = MEM32(ecx + 0x8); /* 0x47062A5E: mov edx, dword ptr [ecx + 8] */ 1606 MEM32(edx + eax) = 0x470AE3B4u; /* 0x47062A61: mov dword ptr [edx + eax], 0x470ae3b4 */ 1607 ecx = MEM32(eax); /* 0x47062A68: mov ecx, dword ptr [eax] */ 1608 edx = MEM32(ecx + 0x4); /* 0x47062A6A: mov edx, dword ptr [ecx + 4] */ 1609 MEM32(edx + eax + (-0x4)) = ebx; /* 0x47062A6D: mov dword ptr [edx + eax - 4], ebx */ 1610 ecx = MEM32(eax); /* 0x47062A71: mov ecx, dword ptr [eax] */ 1611 edx = MEM32(ecx + 0x8); /* 0x47062A73: mov edx, dword ptr [ecx + 8] */ 1612 MEM32(edx + eax + (-0x4)) = ebx; /* 0x47062A76: mov dword ptr [edx + eax - 4], ebx */ 1613 ecx = MEM32(eax); /* 0x47062A7A: mov ecx, dword ptr [eax] */ 1614 edx = MEM32(ecx + 0x4); /* 0x47062A7C: mov edx, dword ptr [ecx + 4] */ 1615 MEM32(edx + eax) = 0x470AE4C4u; /* 0x47062A7F: mov dword ptr [edx + eax], 0x470ae4c4 */ 1616 ecx = MEM32(eax); /* 0x47062A86: mov ecx, dword ptr [eax] */ 1617 edx = MEM32(ecx + 0x8); /* 0x47062A88: mov edx, dword ptr [ecx + 8] */ 1618 MEM32(edx + eax) = 0x470AE4B8u; /* 0x47062A8B: mov dword ptr [edx + eax], 0x470ae4b8 */ 1619 ecx = MEM32(eax); /* 0x47062A92: mov ecx, dword ptr [eax] */ 1620 edx = MEM32(ecx + 0x4); /* 0x47062A94: mov edx, dword ptr [ecx + 4] */ 1621 MEM32(edx + eax + (-0x4)) = ebx; /* 0x47062A97: mov dword ptr [edx + eax - 4], ebx */ 1622 ecx = MEM32(eax); /* 0x47062A9B: mov ecx, dword ptr [eax] */ 1623 edx = MEM32(ecx + 0x8); /* 0x47062A9D: mov edx, dword ptr [ecx + 8] */ 1624 ebp = POP32_VAL(esp); /* 0x47062AA0: pop ebp */ 1625 MEM32(edx + eax + (-0x4)) = ebx; /* 0x47062AA1: mov dword ptr [edx + eax - 4], ebx */ 1626 ebx = POP32_VAL(esp); /* 0x47062AA5: pop ebx */ 1627 ecx = POP32_VAL(esp); /* 0x47062AA6: pop ecx */ 1628 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47062AA7: ret 8 */ 1629 RECOMP_REGS_OUT(); 1630 } 1631 1632 void sub_47062AB0(void) { 1633 int _fpu_cmp = 0; 1634 uint32_t _cf = 0; 1635 int _df = 1; 1636 uint32_t _flag_k = FK_NONE; 1637 uint32_t _flag_a = 0, _flag_b = 0; 1638 uint32_t _itail_tgt = 0; 1639 RECOMP_REGS_LOCALS 1640 RECOMP_ENTER(0x47062AB0u); 1641 1642 L_47062AB0: 1643 PUSH32(esp, esi); /* 0x47062AB0: push esi */ 1644 esi = ecx; /* 0x47062AB1: mov esi, ecx */ 1645 PUSH32(esp, edi); /* 0x47062AB3: push edi */ 1646 edi = esi + 0x14; /* 0x47062AB4: lea edi, [esi + 0x14] */ 1647 ecx = edi; /* 0x47062AB7: mov ecx, edi */ 1648 RECOMP_ICALL(0x470A0970u); /* 0x47062AB9: call 0x470a0970 */ /* not lifted */ 1649 RECOMP_FLAGS_IN(); 1650 ecx = esi + 0x5C; /* 0x47062ABE: lea ecx, [esi + 0x5c] */ 1651 RECOMP_ICALL(0x4709FC00u); /* 0x47062AC1: call 0x4709fc00 */ /* not lifted */ 1652 RECOMP_FLAGS_IN(); 1653 ecx = esi + 0x28; /* 0x47062AC6: lea ecx, [esi + 0x28] */ 1654 RECOMP_ICALL(0x47018840u); /* 0x47062AC9: call 0x47018840 */ /* not lifted */ 1655 RECOMP_FLAGS_IN(); 1656 ecx = esi + 0x24; /* 0x47062ACE: lea ecx, [esi + 0x24] */ 1657 RECOMP_ICALL(0x47018780u); /* 0x47062AD1: call 0x47018780 */ /* not lifted */ 1658 RECOMP_FLAGS_IN(); 1659 ecx = edi; /* 0x47062AD6: mov ecx, edi */ 1660 RECOMP_ICALL(0x47018740u); /* 0x47062AD8: call 0x47018740 */ /* not lifted */ 1661 RECOMP_FLAGS_IN(); 1662 edi = POP32_VAL(esp); /* 0x47062ADD: pop edi */ 1663 esi = POP32_VAL(esp); /* 0x47062ADE: pop esi */ 1664 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47062ADF: ret */ 1665 RECOMP_REGS_OUT(); 1666 } 1667 1668 void sub_47062AE0(void) { 1669 int _fpu_cmp = 0; 1670 uint32_t _cf = 0; 1671 int _df = 1; 1672 uint32_t _flag_k = FK_NONE; 1673 uint32_t _flag_a = 0, _flag_b = 0; 1674 uint32_t _itail_tgt = 0; 1675 RECOMP_REGS_LOCALS 1676 RECOMP_ENTER(0x47062AE0u); 1677 1678 L_47062AE0: 1679 PUSH32(esp, ebx); /* 0x47062AE0: push ebx */ 1680 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47062AE1: mov bl, byte ptr [esp + 8] */ 1681 /* test LO8(ebx), 2 */ /* 0x47062AE5: test bl, 2 */ 1682 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 1683 _cf = 0; 1684 _flag_k = FK_NARROW(FK_TEST, 24); 1685 PUSH32(esp, esi); /* 0x47062AE8: push esi */ 1686 if (TEST_Z(_flag_a, _flag_b)) goto L_47062B17; /* 0x47062AE9: je 0x47062b17 */ 1687 L_47062AEB: 1688 eax = MEM32(ecx + (-0x18)); /* 0x47062AEB: mov eax, dword ptr [ecx - 0x18] */ 1689 esi = ecx + (-0x18); /* 0x47062AEE: lea esi, [ecx - 0x18] */ 1690 PUSH32(esp, 0x47062AB0u); /* 0x47062AF1: push 0x47062ab0 */ 1691 PUSH32(esp, eax); /* 0x47062AF6: push eax */ 1692 PUSH32(esp, 0x58u); /* 0x47062AF7: push 0x58 */ 1693 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu); 1694 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1695 ecx = ecx + 0xFFFFFFECu; /* 0x47062AF9: add ecx, -0x14 */ 1696 _flag_k = FK_ADD; 1697 PUSH32(esp, ecx); /* 0x47062AFC: push ecx */ 1698 RECOMP_ICALL(0x470A32EBu); /* 0x47062AFD: call 0x470a32eb */ /* not lifted */ 1699 RECOMP_FLAGS_IN(); 1700 /* test LO8(ebx), 1 */ /* 0x47062B02: test bl, 1 */ 1701 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1702 _cf = 0; 1703 _flag_k = FK_NARROW(FK_TEST, 24); 1704 if (TEST_Z(_flag_a, _flag_b)) goto L_47062B53; /* 0x47062B05: je 0x47062b53 */ 1705 L_47062B07: 1706 PUSH32(esp, esi); /* 0x47062B07: push esi */ 1707 RECOMP_ICALL(0x470A32A2u); /* 0x47062B08: call 0x470a32a2 */ /* not lifted */ 1708 RECOMP_FLAGS_IN(); 1709 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1710 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1711 esp = esp + 4; /* 0x47062B0D: add esp, 4 */ 1712 _flag_k = FK_ADD; 1713 eax = esi; /* 0x47062B10: mov eax, esi */ 1714 esi = POP32_VAL(esp); /* 0x47062B12: pop esi */ 1715 ebx = POP32_VAL(esp); /* 0x47062B13: pop ebx */ 1716 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47062B14: ret 4 */ 1717 L_47062B17: 1718 esi = ecx + (-0x14); /* 0x47062B17: lea esi, [ecx - 0x14] */ 1719 PUSH32(esp, edi); /* 0x47062B1A: push edi */ 1720 edi = esi + 0x14; /* 0x47062B1B: lea edi, [esi + 0x14] */ 1721 ecx = edi; /* 0x47062B1E: mov ecx, edi */ 1722 RECOMP_ICALL(0x470A0970u); /* 0x47062B20: call 0x470a0970 */ /* not lifted */ 1723 RECOMP_FLAGS_IN(); 1724 ecx = esi + 0x5C; /* 0x47062B25: lea ecx, [esi + 0x5c] */ 1725 RECOMP_ICALL(0x4709FC00u); /* 0x47062B28: call 0x4709fc00 */ /* not lifted */ 1726 RECOMP_FLAGS_IN(); 1727 ecx = esi + 0x28; /* 0x47062B2D: lea ecx, [esi + 0x28] */ 1728 RECOMP_ICALL(0x47018840u); /* 0x47062B30: call 0x47018840 */ /* not lifted */ 1729 RECOMP_FLAGS_IN(); 1730 ecx = esi + 0x24; /* 0x47062B35: lea ecx, [esi + 0x24] */ 1731 RECOMP_ICALL(0x47018780u); /* 0x47062B38: call 0x47018780 */ /* not lifted */ 1732 RECOMP_FLAGS_IN(); 1733 ecx = edi; /* 0x47062B3D: mov ecx, edi */ 1734 RECOMP_ICALL(0x47018740u); /* 0x47062B3F: call 0x47018740 */ /* not lifted */ 1735 RECOMP_FLAGS_IN(); 1736 /* test LO8(ebx), 1 */ /* 0x47062B44: test bl, 1 */ 1737 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1738 _cf = 0; 1739 _flag_k = FK_NARROW(FK_TEST, 24); 1740 edi = POP32_VAL(esp); /* 0x47062B47: pop edi */ 1741 if (TEST_Z(_flag_a, _flag_b)) goto L_47062B53; /* 0x47062B48: je 0x47062b53 */ 1742 L_47062B4A: 1743 PUSH32(esp, esi); /* 0x47062B4A: push esi */ 1744 RECOMP_ICALL(0x470A32A2u); /* 0x47062B4B: call 0x470a32a2 */ /* not lifted */ 1745 RECOMP_FLAGS_IN(); 1746 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1747 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1748 esp = esp + 4; /* 0x47062B50: add esp, 4 */ 1749 _flag_k = FK_ADD; 1750 L_47062B53: 1751 eax = esi; /* 0x47062B53: mov eax, esi */ 1752 esi = POP32_VAL(esp); /* 0x47062B55: pop esi */ 1753 ebx = POP32_VAL(esp); /* 0x47062B56: pop ebx */ 1754 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47062B57: ret 4 */ 1755 RECOMP_REGS_OUT(); 1756 } 1757 1758 void sub_47062B60(void) { 1759 int _fpu_cmp = 0; 1760 uint32_t _cf = 0; 1761 int _df = 1; 1762 uint32_t _flag_k = FK_NONE; 1763 uint32_t _flag_a = 0, _flag_b = 0; 1764 uint32_t _itail_tgt = 0; 1765 RECOMP_REGS_LOCALS 1766 RECOMP_ENTER(0x47062B60u); 1767 1768 L_47062B60: 1769 PUSH32(esp, ecx); /* 0x47062B60: push ecx */ 1770 eax = ecx; /* 0x47062B61: mov eax, ecx */ 1771 ecx = MEM32(esp + 0xC); /* 0x47062B63: mov ecx, dword ptr [esp + 0xc] */ 1772 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1773 edx = 0; /* 0x47062B67: xor edx, edx */ 1774 _cf = 0; 1775 _flag_k = FK_TEST; 1776 /* cmp ecx, edx */ /* 0x47062B69: cmp ecx, edx */ 1777 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1778 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1779 _flag_k = FK_CMP; 1780 MEM32(esp) = edx; /* 0x47062B6B: mov dword ptr [esp], edx */ 1781 if (CMP_EQ(_flag_a, _flag_b)) goto L_47062BC4; /* 0x47062B6F: je 0x47062bc4 */ 1782 L_47062B71: 1783 MEM32(eax) = 0x470AE554u; /* 0x47062B71: mov dword ptr [eax], 0x470ae554 */ 1784 MEM32(eax + 0x24) = 0x470AE54Cu; /* 0x47062B77: mov dword ptr [eax + 0x24], 0x470ae54c */ 1785 MEM32(eax + 0x30) = 0x470AE540u; /* 0x47062B7E: mov dword ptr [eax + 0x30], 0x470ae540 */ 1786 MEM32(eax + 0x18) = 0x470ACC4Cu; /* 0x47062B85: mov dword ptr [eax + 0x18], 0x470acc4c */ 1787 ecx = MEM32(eax + 0x24); /* 0x47062B8C: mov ecx, dword ptr [eax + 0x24] */ 1788 MEM32(eax + 0x20) = 0x470ACC6Cu; /* 0x47062B8F: mov dword ptr [eax + 0x20], 0x470acc6c */ 1789 ecx = MEM32(ecx + 0x4); /* 0x47062B96: mov ecx, dword ptr [ecx + 4] */ 1790 MEM32(ecx + eax + 0x24) = 0x470ACC5Cu; /* 0x47062B99: mov dword ptr [ecx + eax + 0x24], 0x470acc5c */ 1791 ecx = MEM32(eax + 0x30); /* 0x47062BA1: mov ecx, dword ptr [eax + 0x30] */ 1792 MEM32(eax + 0x2C) = 0x470ACD38u; /* 0x47062BA4: mov dword ptr [eax + 0x2c], 0x470acd38 */ 1793 ecx = MEM32(ecx + 0x4); /* 0x47062BAB: mov ecx, dword ptr [ecx + 4] */ 1794 MEM32(ecx + eax + 0x30) = 0x470ACD28u; /* 0x47062BAE: mov dword ptr [ecx + eax + 0x30], 0x470acd28 */ 1795 ecx = MEM32(eax + 0x30); /* 0x47062BB6: mov ecx, dword ptr [eax + 0x30] */ 1796 ecx = MEM32(ecx + 0x8); /* 0x47062BB9: mov ecx, dword ptr [ecx + 8] */ 1797 MEM32(ecx + eax + 0x30) = 0x470ACD24u; /* 0x47062BBC: mov dword ptr [ecx + eax + 0x30], 0x470acd24 */ 1798 L_47062BC4: 1799 ecx = MEM32(esp + 0x8); /* 0x47062BC4: mov ecx, dword ptr [esp + 8] */ 1800 PUSH32(esp, esi); /* 0x47062BC8: push esi */ 1801 esi = MEM32(ecx + 0x4); /* 0x47062BC9: mov esi, dword ptr [ecx + 4] */ 1802 MEM32(eax + 0x4) = esi; /* 0x47062BCC: mov dword ptr [eax + 4], esi */ 1803 esi = MEM32(ecx + 0x8); /* 0x47062BCF: mov esi, dword ptr [ecx + 8] */ 1804 MEM32(eax + 0x8) = esi; /* 0x47062BD2: mov dword ptr [eax + 8], esi */ 1805 esi = MEM32(ecx + 0xC); /* 0x47062BD5: mov esi, dword ptr [ecx + 0xc] */ 1806 MEM32(eax + 0xC) = esi; /* 0x47062BD8: mov dword ptr [eax + 0xc], esi */ 1807 ecx = MEM32(ecx + 0x10); /* 0x47062BDB: mov ecx, dword ptr [ecx + 0x10] */ 1808 MEM32(eax + 0x10) = ecx; /* 0x47062BDE: mov dword ptr [eax + 0x10], ecx */ 1809 ecx = MEM32(eax); /* 0x47062BE1: mov ecx, dword ptr [eax] */ 1810 ecx = MEM32(ecx + 0x4); /* 0x47062BE3: mov ecx, dword ptr [ecx + 4] */ 1811 MEM32(ecx + eax) = 0x470AE39Cu; /* 0x47062BE6: mov dword ptr [ecx + eax], 0x470ae39c */ 1812 ecx = MEM32(eax); /* 0x47062BED: mov ecx, dword ptr [eax] */ 1813 ecx = MEM32(ecx + 0x4); /* 0x47062BEF: mov ecx, dword ptr [ecx + 4] */ 1814 MEM32(ecx + eax + (-0x4)) = edx; /* 0x47062BF2: mov dword ptr [ecx + eax - 4], edx */ 1815 ecx = MEM32(eax); /* 0x47062BF6: mov ecx, dword ptr [eax] */ 1816 ecx = MEM32(ecx + 0x4); /* 0x47062BF8: mov ecx, dword ptr [ecx + 4] */ 1817 MEM32(ecx + eax) = 0x470AE418u; /* 0x47062BFB: mov dword ptr [ecx + eax], 0x470ae418 */ 1818 ecx = MEM32(eax); /* 0x47062C02: mov ecx, dword ptr [eax] */ 1819 ecx = MEM32(ecx + 0x8); /* 0x47062C04: mov ecx, dword ptr [ecx + 8] */ 1820 MEM32(ecx + eax) = 0x470AE414u; /* 0x47062C07: mov dword ptr [ecx + eax], 0x470ae414 */ 1821 ecx = MEM32(eax); /* 0x47062C0E: mov ecx, dword ptr [eax] */ 1822 ecx = MEM32(ecx + 0x4); /* 0x47062C10: mov ecx, dword ptr [ecx + 4] */ 1823 MEM32(ecx + eax + (-0x4)) = edx; /* 0x47062C13: mov dword ptr [ecx + eax - 4], edx */ 1824 ecx = MEM32(eax); /* 0x47062C17: mov ecx, dword ptr [eax] */ 1825 ecx = MEM32(ecx + 0x8); /* 0x47062C19: mov ecx, dword ptr [ecx + 8] */ 1826 MEM32(ecx + eax + (-0x4)) = edx; /* 0x47062C1C: mov dword ptr [ecx + eax - 4], edx */ 1827 ecx = MEM32(eax); /* 0x47062C20: mov ecx, dword ptr [eax] */ 1828 ecx = MEM32(ecx + 0x4); /* 0x47062C22: mov ecx, dword ptr [ecx + 4] */ 1829 MEM32(ecx + eax) = 0x470AE530u; /* 0x47062C25: mov dword ptr [ecx + eax], 0x470ae530 */ 1830 ecx = MEM32(eax); /* 0x47062C2C: mov ecx, dword ptr [eax] */ 1831 ecx = MEM32(ecx + 0x8); /* 0x47062C2E: mov ecx, dword ptr [ecx + 8] */ 1832 MEM32(ecx + eax) = 0x470AE52Cu; /* 0x47062C31: mov dword ptr [ecx + eax], 0x470ae52c */ 1833 ecx = MEM32(eax); /* 0x47062C38: mov ecx, dword ptr [eax] */ 1834 ecx = MEM32(ecx + 0xC); /* 0x47062C3A: mov ecx, dword ptr [ecx + 0xc] */ 1835 MEM32(ecx + eax) = 0x470AE528u; /* 0x47062C3D: mov dword ptr [ecx + eax], 0x470ae528 */ 1836 ecx = MEM32(eax); /* 0x47062C44: mov ecx, dword ptr [eax] */ 1837 ecx = MEM32(ecx + 0x4); /* 0x47062C46: mov ecx, dword ptr [ecx + 4] */ 1838 MEM32(ecx + eax + (-0x4)) = edx; /* 0x47062C49: mov dword ptr [ecx + eax - 4], edx */ 1839 ecx = MEM32(eax); /* 0x47062C4D: mov ecx, dword ptr [eax] */ 1840 ecx = MEM32(ecx + 0x8); /* 0x47062C4F: mov ecx, dword ptr [ecx + 8] */ 1841 MEM32(ecx + eax + (-0x4)) = edx; /* 0x47062C52: mov dword ptr [ecx + eax - 4], edx */ 1842 ecx = MEM32(eax); /* 0x47062C56: mov ecx, dword ptr [eax] */ 1843 ecx = MEM32(ecx + 0xC); /* 0x47062C58: mov ecx, dword ptr [ecx + 0xc] */ 1844 MEM32(ecx + eax + (-0x4)) = edx; /* 0x47062C5B: mov dword ptr [ecx + eax - 4], edx */ 1845 esi = POP32_VAL(esp); /* 0x47062C5F: pop esi */ 1846 ecx = POP32_VAL(esp); /* 0x47062C60: pop ecx */ 1847 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47062C61: ret 8 */ 1848 RECOMP_REGS_OUT(); 1849 } 1850 1851 void sub_47062C70(void) { 1852 int _fpu_cmp = 0; 1853 uint32_t _cf = 0; 1854 int _df = 1; 1855 uint32_t _flag_k = FK_NONE; 1856 uint32_t _flag_a = 0, _flag_b = 0; 1857 uint32_t _itail_tgt = 0; 1858 RECOMP_REGS_LOCALS 1859 RECOMP_ENTER(0x47062C70u); 1860 1861 L_47062C70: 1862 PUSH32(esp, esi); /* 0x47062C70: push esi */ 1863 esi = ecx; /* 0x47062C71: mov esi, ecx */ 1864 PUSH32(esp, edi); /* 0x47062C73: push edi */ 1865 edi = esi + 0x18; /* 0x47062C74: lea edi, [esi + 0x18] */ 1866 ecx = edi; /* 0x47062C77: mov ecx, edi */ 1867 RECOMP_ICALL(0x470A0BA0u); /* 0x47062C79: call 0x470a0ba0 */ /* not lifted */ 1868 RECOMP_FLAGS_IN(); 1869 ecx = esi + 0x34; /* 0x47062C7E: lea ecx, [esi + 0x34] */ 1870 RECOMP_ICALL(0x470187E0u); /* 0x47062C81: call 0x470187e0 */ /* not lifted */ 1871 RECOMP_FLAGS_IN(); 1872 ecx = esi + 0x28; /* 0x47062C86: lea ecx, [esi + 0x28] */ 1873 RECOMP_ICALL(0x47018760u); /* 0x47062C89: call 0x47018760 */ /* not lifted */ 1874 RECOMP_FLAGS_IN(); 1875 ecx = edi; /* 0x47062C8E: mov ecx, edi */ 1876 RECOMP_ICALL(0x47018750u); /* 0x47062C90: call 0x47018750 */ /* not lifted */ 1877 RECOMP_FLAGS_IN(); 1878 edi = POP32_VAL(esp); /* 0x47062C95: pop edi */ 1879 esi = POP32_VAL(esp); /* 0x47062C96: pop esi */ 1880 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47062C97: ret */ 1881 RECOMP_REGS_OUT(); 1882 } 1883 1884 void sub_47062CA0(void) { 1885 int _fpu_cmp = 0; 1886 uint32_t _cf = 0; 1887 int _df = 1; 1888 uint32_t _flag_k = FK_NONE; 1889 uint32_t _flag_a = 0, _flag_b = 0; 1890 uint32_t _itail_tgt = 0; 1891 RECOMP_REGS_LOCALS 1892 RECOMP_ENTER(0x47062CA0u); 1893 1894 L_47062CA0: 1895 PUSH32(esp, ebx); /* 0x47062CA0: push ebx */ 1896 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47062CA1: mov bl, byte ptr [esp + 8] */ 1897 /* test LO8(ebx), 2 */ /* 0x47062CA5: test bl, 2 */ 1898 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 1899 _cf = 0; 1900 _flag_k = FK_NARROW(FK_TEST, 24); 1901 PUSH32(esp, esi); /* 0x47062CA8: push esi */ 1902 if (TEST_Z(_flag_a, _flag_b)) goto L_47062CD7; /* 0x47062CA9: je 0x47062cd7 */ 1903 L_47062CAB: 1904 eax = MEM32(ecx + (-0x1C)); /* 0x47062CAB: mov eax, dword ptr [ecx - 0x1c] */ 1905 esi = ecx + (-0x1C); /* 0x47062CAE: lea esi, [ecx - 0x1c] */ 1906 PUSH32(esp, 0x47062C70u); /* 0x47062CB1: push 0x47062c70 */ 1907 PUSH32(esp, eax); /* 0x47062CB6: push eax */ 1908 PUSH32(esp, 0x34u); /* 0x47062CB7: push 0x34 */ 1909 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFE8u); 1910 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1911 ecx = ecx + 0xFFFFFFE8u; /* 0x47062CB9: add ecx, -0x18 */ 1912 _flag_k = FK_ADD; 1913 PUSH32(esp, ecx); /* 0x47062CBC: push ecx */ 1914 RECOMP_ICALL(0x470A32EBu); /* 0x47062CBD: call 0x470a32eb */ /* not lifted */ 1915 RECOMP_FLAGS_IN(); 1916 /* test LO8(ebx), 1 */ /* 0x47062CC2: test bl, 1 */ 1917 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1918 _cf = 0; 1919 _flag_k = FK_NARROW(FK_TEST, 24); 1920 if (TEST_Z(_flag_a, _flag_b)) goto L_47062D0B; /* 0x47062CC5: je 0x47062d0b */ 1921 L_47062CC7: 1922 PUSH32(esp, esi); /* 0x47062CC7: push esi */ 1923 RECOMP_ICALL(0x470A32A2u); /* 0x47062CC8: call 0x470a32a2 */ /* not lifted */ 1924 RECOMP_FLAGS_IN(); 1925 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1926 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1927 esp = esp + 4; /* 0x47062CCD: add esp, 4 */ 1928 _flag_k = FK_ADD; 1929 eax = esi; /* 0x47062CD0: mov eax, esi */ 1930 esi = POP32_VAL(esp); /* 0x47062CD2: pop esi */ 1931 ebx = POP32_VAL(esp); /* 0x47062CD3: pop ebx */ 1932 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47062CD4: ret 4 */ 1933 L_47062CD7: 1934 esi = ecx + (-0x18); /* 0x47062CD7: lea esi, [ecx - 0x18] */ 1935 PUSH32(esp, edi); /* 0x47062CDA: push edi */ 1936 edi = esi + 0x18; /* 0x47062CDB: lea edi, [esi + 0x18] */ 1937 ecx = edi; /* 0x47062CDE: mov ecx, edi */ 1938 RECOMP_ICALL(0x470A0BA0u); /* 0x47062CE0: call 0x470a0ba0 */ /* not lifted */ 1939 RECOMP_FLAGS_IN(); 1940 ecx = esi + 0x34; /* 0x47062CE5: lea ecx, [esi + 0x34] */ 1941 RECOMP_ICALL(0x470187E0u); /* 0x47062CE8: call 0x470187e0 */ /* not lifted */ 1942 RECOMP_FLAGS_IN(); 1943 ecx = esi + 0x28; /* 0x47062CED: lea ecx, [esi + 0x28] */ 1944 RECOMP_ICALL(0x47018760u); /* 0x47062CF0: call 0x47018760 */ /* not lifted */ 1945 RECOMP_FLAGS_IN(); 1946 ecx = edi; /* 0x47062CF5: mov ecx, edi */ 1947 RECOMP_ICALL(0x47018750u); /* 0x47062CF7: call 0x47018750 */ /* not lifted */ 1948 RECOMP_FLAGS_IN(); 1949 /* test LO8(ebx), 1 */ /* 0x47062CFC: test bl, 1 */ 1950 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1951 _cf = 0; 1952 _flag_k = FK_NARROW(FK_TEST, 24); 1953 edi = POP32_VAL(esp); /* 0x47062CFF: pop edi */ 1954 if (TEST_Z(_flag_a, _flag_b)) goto L_47062D0B; /* 0x47062D00: je 0x47062d0b */ 1955 L_47062D02: 1956 PUSH32(esp, esi); /* 0x47062D02: push esi */ 1957 RECOMP_ICALL(0x470A32A2u); /* 0x47062D03: call 0x470a32a2 */ /* not lifted */ 1958 RECOMP_FLAGS_IN(); 1959 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1960 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1961 esp = esp + 4; /* 0x47062D08: add esp, 4 */ 1962 _flag_k = FK_ADD; 1963 L_47062D0B: 1964 eax = esi; /* 0x47062D0B: mov eax, esi */ 1965 esi = POP32_VAL(esp); /* 0x47062D0D: pop esi */ 1966 ebx = POP32_VAL(esp); /* 0x47062D0E: pop ebx */ 1967 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47062D0F: ret 4 */ 1968 RECOMP_REGS_OUT(); 1969 } 1970 1971 void sub_47062D20(void) { 1972 int _fpu_cmp = 0; 1973 uint32_t _cf = 0; 1974 int _df = 1; 1975 uint32_t _flag_k = FK_NONE; 1976 uint32_t _flag_a = 0, _flag_b = 0; 1977 uint32_t _itail_tgt = 0; 1978 RECOMP_REGS_LOCALS 1979 RECOMP_ENTER(0x47062D20u); 1980 1981 L_47062D20: 1982 PUSH32(esp, ecx); /* 0x47062D20: push ecx */ 1983 eax = MEM32(esp + 0xC); /* 0x47062D21: mov eax, dword ptr [esp + 0xc] */ 1984 PUSH32(esp, ebx); /* 0x47062D25: push ebx */ 1985 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1986 ebx = 0; /* 0x47062D26: xor ebx, ebx */ 1987 _cf = 0; 1988 _flag_k = FK_TEST; 1989 /* cmp eax, ebx */ /* 0x47062D28: cmp eax, ebx */ 1990 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1991 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1992 _flag_k = FK_CMP; 1993 PUSH32(esp, esi); /* 0x47062D2A: push esi */ 1994 PUSH32(esp, edi); /* 0x47062D2B: push edi */ 1995 esi = ecx; /* 0x47062D2C: mov esi, ecx */ 1996 MEM32(esp + 0xC) = ebx; /* 0x47062D2E: mov dword ptr [esp + 0xc], ebx */ 1997 if (CMP_EQ(_flag_a, _flag_b)) goto L_47062D81; /* 0x47062D32: je 0x47062d81 */ 1998 L_47062D34: 1999 MEM32(esi + 0x14) = 0x470AE5B8u; /* 0x47062D34: mov dword ptr [esi + 0x14], 0x470ae5b8 */ 2000 MEM32(esi + 0x4C) = 0x470AE5B0u; /* 0x47062D3B: mov dword ptr [esi + 0x4c], 0x470ae5b0 */ 2001 MEM32(esi + 0x50) = 0x470AE5A4u; /* 0x47062D42: mov dword ptr [esi + 0x50], 0x470ae5a4 */ 2002 MEM32(esi + 0x40) = 0x470ACC18u; /* 0x47062D49: mov dword ptr [esi + 0x40], 0x470acc18 */ 2003 eax = MEM32(esi + 0x4C); /* 0x47062D50: mov eax, dword ptr [esi + 0x4c] */ 2004 MEM32(esi + 0x48) = 0x470ACD10u; /* 0x47062D53: mov dword ptr [esi + 0x48], 0x470acd10 */ 2005 ecx = MEM32(eax + 0x4); /* 0x47062D5A: mov ecx, dword ptr [eax + 4] */ 2006 MEM32(ecx + esi + 0x4C) = 0x470ACCDCu; /* 0x47062D5D: mov dword ptr [ecx + esi + 0x4c], 0x470accdc */ 2007 edx = MEM32(esi + 0x50); /* 0x47062D65: mov edx, dword ptr [esi + 0x50] */ 2008 eax = MEM32(edx + 0x4); /* 0x47062D68: mov eax, dword ptr [edx + 4] */ 2009 MEM32(eax + esi + 0x50) = 0x470ACDDCu; /* 0x47062D6B: mov dword ptr [eax + esi + 0x50], 0x470acddc */ 2010 ecx = MEM32(esi + 0x50); /* 0x47062D73: mov ecx, dword ptr [esi + 0x50] */ 2011 edx = MEM32(ecx + 0x8); /* 0x47062D76: mov edx, dword ptr [ecx + 8] */ 2012 MEM32(edx + esi + 0x50) = 0x470ACDD0u; /* 0x47062D79: mov dword ptr [edx + esi + 0x50], 0x470acdd0 */ 2013 L_47062D81: 2014 edi = MEM32(esp + 0x14); /* 0x47062D81: mov edi, dword ptr [esp + 0x14] */ 2015 PUSH32(esp, ebx); /* 0x47062D85: push ebx */ 2016 PUSH32(esp, edi); /* 0x47062D86: push edi */ 2017 ecx = esi; /* 0x47062D87: mov ecx, esi */ 2018 RECOMP_ICALL(0x47062200u); /* 0x47062D89: call 0x47062200 */ /* not lifted */ 2019 RECOMP_FLAGS_IN(); 2020 eax = MEM32(edi + 0x30); /* 0x47062D8E: mov eax, dword ptr [edi + 0x30] */ 2021 MEM32(esi + 0x30) = eax; /* 0x47062D91: mov dword ptr [esi + 0x30], eax */ 2022 ecx = MEM32(edi + 0x34); /* 0x47062D94: mov ecx, dword ptr [edi + 0x34] */ 2023 eax = MEM32(esi + 0x14); /* 0x47062D97: mov eax, dword ptr [esi + 0x14] */ 2024 MEM32(esi + 0x34) = ecx; /* 0x47062D9A: mov dword ptr [esi + 0x34], ecx */ 2025 edx = MEM32(edi + 0x38); /* 0x47062D9D: mov edx, dword ptr [edi + 0x38] */ 2026 MEM32(esi + 0x38) = edx; /* 0x47062DA0: mov dword ptr [esi + 0x38], edx */ 2027 ecx = MEM32(eax + 0x4); /* 0x47062DA3: mov ecx, dword ptr [eax + 4] */ 2028 MEM32(ecx + esi + 0x14) = 0x470AE448u; /* 0x47062DA6: mov dword ptr [ecx + esi + 0x14], 0x470ae448 */ 2029 edx = MEM32(esi + 0x14); /* 0x47062DAE: mov edx, dword ptr [esi + 0x14] */ 2030 eax = MEM32(edx + 0x8); /* 0x47062DB1: mov eax, dword ptr [edx + 8] */ 2031 MEM32(eax + esi + 0x14) = 0x470AE43Cu; /* 0x47062DB4: mov dword ptr [eax + esi + 0x14], 0x470ae43c */ 2032 ecx = MEM32(esi + 0x14); /* 0x47062DBC: mov ecx, dword ptr [esi + 0x14] */ 2033 edx = MEM32(ecx + 0x4); /* 0x47062DBF: mov edx, dword ptr [ecx + 4] */ 2034 MEM32(edx + esi + 0x10) = ebx; /* 0x47062DC2: mov dword ptr [edx + esi + 0x10], ebx */ 2035 eax = MEM32(esi + 0x14); /* 0x47062DC6: mov eax, dword ptr [esi + 0x14] */ 2036 ecx = MEM32(eax + 0x8); /* 0x47062DC9: mov ecx, dword ptr [eax + 8] */ 2037 MEM32(ecx + esi + 0x10) = ebx; /* 0x47062DCC: mov dword ptr [ecx + esi + 0x10], ebx */ 2038 edx = MEM32(esi + 0x14); /* 0x47062DD0: mov edx, dword ptr [esi + 0x14] */ 2039 eax = MEM32(edx + 0x4); /* 0x47062DD3: mov eax, dword ptr [edx + 4] */ 2040 MEM32(eax + esi + 0x14) = 0x470AE570u; /* 0x47062DD6: mov dword ptr [eax + esi + 0x14], 0x470ae570 */ 2041 ecx = MEM32(esi + 0x14); /* 0x47062DDE: mov ecx, dword ptr [esi + 0x14] */ 2042 edx = MEM32(ecx + 0x8); /* 0x47062DE1: mov edx, dword ptr [ecx + 8] */ 2043 MEM32(edx + esi + 0x14) = 0x470AE564u; /* 0x47062DE4: mov dword ptr [edx + esi + 0x14], 0x470ae564 */ 2044 eax = MEM32(esi + 0x14); /* 0x47062DEC: mov eax, dword ptr [esi + 0x14] */ 2045 ecx = MEM32(eax + 0x4); /* 0x47062DEF: mov ecx, dword ptr [eax + 4] */ 2046 MEM32(ecx + esi + 0x10) = ebx; /* 0x47062DF2: mov dword ptr [ecx + esi + 0x10], ebx */ 2047 edx = MEM32(esi + 0x14); /* 0x47062DF6: mov edx, dword ptr [esi + 0x14] */ 2048 eax = MEM32(edx + 0x8); /* 0x47062DF9: mov eax, dword ptr [edx + 8] */ 2049 MEM32(eax + esi + 0x10) = ebx; /* 0x47062DFC: mov dword ptr [eax + esi + 0x10], ebx */ 2050 edi = POP32_VAL(esp); /* 0x47062E00: pop edi */ 2051 eax = esi; /* 0x47062E01: mov eax, esi */ 2052 esi = POP32_VAL(esp); /* 0x47062E03: pop esi */ 2053 ebx = POP32_VAL(esp); /* 0x47062E04: pop ebx */ 2054 ecx = POP32_VAL(esp); /* 0x47062E05: pop ecx */ 2055 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47062E06: ret 8 */ 2056 RECOMP_REGS_OUT(); 2057 } 2058 2059 void sub_47062E10(void) { 2060 int _fpu_cmp = 0; 2061 uint32_t _cf = 0; 2062 int _df = 1; 2063 uint32_t _flag_k = FK_NONE; 2064 uint32_t _flag_a = 0, _flag_b = 0; 2065 uint32_t _itail_tgt = 0; 2066 RECOMP_REGS_LOCALS 2067 RECOMP_ENTER(0x47062E10u); 2068 2069 L_47062E10: 2070 PUSH32(esp, esi); /* 0x47062E10: push esi */ 2071 esi = ecx; /* 0x47062E11: mov esi, ecx */ 2072 PUSH32(esp, edi); /* 0x47062E13: push edi */ 2073 edi = esi + 0x40; /* 0x47062E14: lea edi, [esi + 0x40] */ 2074 ecx = edi; /* 0x47062E17: mov ecx, edi */ 2075 RECOMP_ICALL(0x470A0E00u); /* 0x47062E19: call 0x470a0e00 */ /* not lifted */ 2076 RECOMP_FLAGS_IN(); 2077 ecx = esi + 0x54; /* 0x47062E1E: lea ecx, [esi + 0x54] */ 2078 RECOMP_ICALL(0x47018860u); /* 0x47062E21: call 0x47018860 */ /* not lifted */ 2079 RECOMP_FLAGS_IN(); 2080 ecx = esi + 0x50; /* 0x47062E26: lea ecx, [esi + 0x50] */ 2081 RECOMP_ICALL(0x470187C0u); /* 0x47062E29: call 0x470187c0 */ /* not lifted */ 2082 RECOMP_FLAGS_IN(); 2083 ecx = edi; /* 0x47062E2E: mov ecx, edi */ 2084 RECOMP_ICALL(0x47018740u); /* 0x47062E30: call 0x47018740 */ /* not lifted */ 2085 RECOMP_FLAGS_IN(); 2086 edi = POP32_VAL(esp); /* 0x47062E35: pop edi */ 2087 esi = POP32_VAL(esp); /* 0x47062E36: pop esi */ 2088 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47062E37: ret */ 2089 RECOMP_REGS_OUT(); 2090 } 2091 2092 void sub_47062E40(void) { 2093 int _fpu_cmp = 0; 2094 uint32_t _cf = 0; 2095 int _df = 1; 2096 uint32_t _flag_k = FK_NONE; 2097 uint32_t _flag_a = 0, _flag_b = 0; 2098 uint32_t _itail_tgt = 0; 2099 RECOMP_REGS_LOCALS 2100 RECOMP_ENTER(0x47062E40u); 2101 2102 L_47062E40: 2103 PUSH32(esp, ebx); /* 0x47062E40: push ebx */ 2104 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47062E41: mov bl, byte ptr [esp + 8] */ 2105 /* test LO8(ebx), 2 */ /* 0x47062E45: test bl, 2 */ 2106 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 2107 _cf = 0; 2108 _flag_k = FK_NARROW(FK_TEST, 24); 2109 PUSH32(esp, esi); /* 0x47062E48: push esi */ 2110 if (TEST_Z(_flag_a, _flag_b)) goto L_47062E77; /* 0x47062E49: je 0x47062e77 */ 2111 L_47062E4B: 2112 eax = MEM32(ecx + (-0x44)); /* 0x47062E4B: mov eax, dword ptr [ecx - 0x44] */ 2113 esi = ecx + (-0x44); /* 0x47062E4E: lea esi, [ecx - 0x44] */ 2114 PUSH32(esp, 0x47062E10u); /* 0x47062E51: push 0x47062e10 */ 2115 PUSH32(esp, eax); /* 0x47062E56: push eax */ 2116 PUSH32(esp, 0x54u); /* 0x47062E57: push 0x54 */ 2117 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFC0u); 2118 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2119 ecx = ecx + 0xFFFFFFC0u; /* 0x47062E59: add ecx, -0x40 */ 2120 _flag_k = FK_ADD; 2121 PUSH32(esp, ecx); /* 0x47062E5C: push ecx */ 2122 RECOMP_ICALL(0x470A32EBu); /* 0x47062E5D: call 0x470a32eb */ /* not lifted */ 2123 RECOMP_FLAGS_IN(); 2124 /* test LO8(ebx), 1 */ /* 0x47062E62: test bl, 1 */ 2125 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2126 _cf = 0; 2127 _flag_k = FK_NARROW(FK_TEST, 24); 2128 if (TEST_Z(_flag_a, _flag_b)) goto L_47062EAB; /* 0x47062E65: je 0x47062eab */ 2129 L_47062E67: 2130 PUSH32(esp, esi); /* 0x47062E67: push esi */ 2131 RECOMP_ICALL(0x470A32A2u); /* 0x47062E68: call 0x470a32a2 */ /* not lifted */ 2132 RECOMP_FLAGS_IN(); 2133 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2134 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2135 esp = esp + 4; /* 0x47062E6D: add esp, 4 */ 2136 _flag_k = FK_ADD; 2137 eax = esi; /* 0x47062E70: mov eax, esi */ 2138 esi = POP32_VAL(esp); /* 0x47062E72: pop esi */ 2139 ebx = POP32_VAL(esp); /* 0x47062E73: pop ebx */ 2140 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47062E74: ret 4 */ 2141 L_47062E77: 2142 esi = ecx + (-0x40); /* 0x47062E77: lea esi, [ecx - 0x40] */ 2143 PUSH32(esp, edi); /* 0x47062E7A: push edi */ 2144 edi = esi + 0x40; /* 0x47062E7B: lea edi, [esi + 0x40] */ 2145 ecx = edi; /* 0x47062E7E: mov ecx, edi */ 2146 RECOMP_ICALL(0x470A0E00u); /* 0x47062E80: call 0x470a0e00 */ /* not lifted */ 2147 RECOMP_FLAGS_IN(); 2148 ecx = esi + 0x54; /* 0x47062E85: lea ecx, [esi + 0x54] */ 2149 RECOMP_ICALL(0x47018860u); /* 0x47062E88: call 0x47018860 */ /* not lifted */ 2150 RECOMP_FLAGS_IN(); 2151 ecx = esi + 0x50; /* 0x47062E8D: lea ecx, [esi + 0x50] */ 2152 RECOMP_ICALL(0x470187C0u); /* 0x47062E90: call 0x470187c0 */ /* not lifted */ 2153 RECOMP_FLAGS_IN(); 2154 ecx = edi; /* 0x47062E95: mov ecx, edi */ 2155 RECOMP_ICALL(0x47018740u); /* 0x47062E97: call 0x47018740 */ /* not lifted */ 2156 RECOMP_FLAGS_IN(); 2157 /* test LO8(ebx), 1 */ /* 0x47062E9C: test bl, 1 */ 2158 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2159 _cf = 0; 2160 _flag_k = FK_NARROW(FK_TEST, 24); 2161 edi = POP32_VAL(esp); /* 0x47062E9F: pop edi */ 2162 if (TEST_Z(_flag_a, _flag_b)) goto L_47062EAB; /* 0x47062EA0: je 0x47062eab */ 2163 L_47062EA2: 2164 PUSH32(esp, esi); /* 0x47062EA2: push esi */ 2165 RECOMP_ICALL(0x470A32A2u); /* 0x47062EA3: call 0x470a32a2 */ /* not lifted */ 2166 RECOMP_FLAGS_IN(); 2167 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2168 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2169 esp = esp + 4; /* 0x47062EA8: add esp, 4 */ 2170 _flag_k = FK_ADD; 2171 L_47062EAB: 2172 eax = esi; /* 0x47062EAB: mov eax, esi */ 2173 esi = POP32_VAL(esp); /* 0x47062EAD: pop esi */ 2174 ebx = POP32_VAL(esp); /* 0x47062EAE: pop ebx */ 2175 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47062EAF: ret 4 */ 2176 RECOMP_REGS_OUT(); 2177 } 2178 2179 void sub_47062EC0(void) { 2180 int _fpu_cmp = 0; 2181 uint32_t _cf = 0; 2182 int _df = 1; 2183 uint32_t _flag_k = FK_NONE; 2184 uint32_t _flag_a = 0, _flag_b = 0; 2185 uint32_t _itail_tgt = 0; 2186 RECOMP_REGS_LOCALS 2187 RECOMP_ENTER(0x47062EC0u); 2188 2189 L_47062EC0: 2190 PUSH32(esp, ecx); /* 0x47062EC0: push ecx */ 2191 eax = ecx; /* 0x47062EC1: mov eax, ecx */ 2192 ecx = MEM32(esp + 0xC); /* 0x47062EC3: mov ecx, dword ptr [esp + 0xc] */ 2193 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2194 edx = 0; /* 0x47062EC7: xor edx, edx */ 2195 _cf = 0; 2196 _flag_k = FK_TEST; 2197 /* cmp ecx, edx */ /* 0x47062EC9: cmp ecx, edx */ 2198 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2199 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2200 _flag_k = FK_CMP; 2201 MEM32(esp) = edx; /* 0x47062ECB: mov dword ptr [esp], edx */ 2202 if (CMP_EQ(_flag_a, _flag_b)) goto L_47062F24; /* 0x47062ECF: je 0x47062f24 */ 2203 L_47062ED1: 2204 MEM32(eax) = 0x470AE5F4u; /* 0x47062ED1: mov dword ptr [eax], 0x470ae5f4 */ 2205 MEM32(eax + 0x24) = 0x470AE5ECu; /* 0x47062ED7: mov dword ptr [eax + 0x24], 0x470ae5ec */ 2206 MEM32(eax + 0x30) = 0x470AE5E0u; /* 0x47062EDE: mov dword ptr [eax + 0x30], 0x470ae5e0 */ 2207 MEM32(eax + 0x18) = 0x470ACC4Cu; /* 0x47062EE5: mov dword ptr [eax + 0x18], 0x470acc4c */ 2208 ecx = MEM32(eax + 0x24); /* 0x47062EEC: mov ecx, dword ptr [eax + 0x24] */ 2209 MEM32(eax + 0x20) = 0x470ACCD0u; /* 0x47062EEF: mov dword ptr [eax + 0x20], 0x470accd0 */ 2210 ecx = MEM32(ecx + 0x4); /* 0x47062EF6: mov ecx, dword ptr [ecx + 4] */ 2211 MEM32(ecx + eax + 0x24) = 0x470ACCC0u; /* 0x47062EF9: mov dword ptr [ecx + eax + 0x24], 0x470accc0 */ 2212 ecx = MEM32(eax + 0x30); /* 0x47062F01: mov ecx, dword ptr [eax + 0x30] */ 2213 MEM32(eax + 0x2C) = 0x470ACDB8u; /* 0x47062F04: mov dword ptr [eax + 0x2c], 0x470acdb8 */ 2214 ecx = MEM32(ecx + 0x4); /* 0x47062F0B: mov ecx, dword ptr [ecx + 4] */ 2215 MEM32(ecx + eax + 0x30) = 0x470ACDA8u; /* 0x47062F0E: mov dword ptr [ecx + eax + 0x30], 0x470acda8 */ 2216 ecx = MEM32(eax + 0x30); /* 0x47062F16: mov ecx, dword ptr [eax + 0x30] */ 2217 ecx = MEM32(ecx + 0x8); /* 0x47062F19: mov ecx, dword ptr [ecx + 8] */ 2218 MEM32(ecx + eax + 0x30) = 0x470ACDA4u; /* 0x47062F1C: mov dword ptr [ecx + eax + 0x30], 0x470acda4 */ 2219 L_47062F24: 2220 ecx = MEM32(esp + 0x8); /* 0x47062F24: mov ecx, dword ptr [esp + 8] */ 2221 PUSH32(esp, esi); /* 0x47062F28: push esi */ 2222 esi = MEM32(ecx + 0x4); /* 0x47062F29: mov esi, dword ptr [ecx + 4] */ 2223 MEM32(eax + 0x4) = esi; /* 0x47062F2C: mov dword ptr [eax + 4], esi */ 2224 esi = MEM32(ecx + 0x8); /* 0x47062F2F: mov esi, dword ptr [ecx + 8] */ 2225 MEM32(eax + 0x8) = esi; /* 0x47062F32: mov dword ptr [eax + 8], esi */ 2226 esi = MEM32(ecx + 0xC); /* 0x47062F35: mov esi, dword ptr [ecx + 0xc] */ 2227 MEM32(eax + 0xC) = esi; /* 0x47062F38: mov dword ptr [eax + 0xc], esi */ 2228 ecx = MEM32(ecx + 0x10); /* 0x47062F3B: mov ecx, dword ptr [ecx + 0x10] */ 2229 MEM32(eax + 0x10) = ecx; /* 0x47062F3E: mov dword ptr [eax + 0x10], ecx */ 2230 ecx = MEM32(eax); /* 0x47062F41: mov ecx, dword ptr [eax] */ 2231 ecx = MEM32(ecx + 0x4); /* 0x47062F43: mov ecx, dword ptr [ecx + 4] */ 2232 MEM32(ecx + eax) = 0x470AE39Cu; /* 0x47062F46: mov dword ptr [ecx + eax], 0x470ae39c */ 2233 ecx = MEM32(eax); /* 0x47062F4D: mov ecx, dword ptr [eax] */ 2234 ecx = MEM32(ecx + 0x4); /* 0x47062F4F: mov ecx, dword ptr [ecx + 4] */ 2235 MEM32(ecx + eax + (-0x4)) = edx; /* 0x47062F52: mov dword ptr [ecx + eax - 4], edx */ 2236 ecx = MEM32(eax); /* 0x47062F56: mov ecx, dword ptr [eax] */ 2237 ecx = MEM32(ecx + 0x4); /* 0x47062F58: mov ecx, dword ptr [ecx + 4] */ 2238 MEM32(ecx + eax) = 0x470AE494u; /* 0x47062F5B: mov dword ptr [ecx + eax], 0x470ae494 */ 2239 ecx = MEM32(eax); /* 0x47062F62: mov ecx, dword ptr [eax] */ 2240 ecx = MEM32(ecx + 0x8); /* 0x47062F64: mov ecx, dword ptr [ecx + 8] */ 2241 MEM32(ecx + eax) = 0x470AE490u; /* 0x47062F67: mov dword ptr [ecx + eax], 0x470ae490 */ 2242 ecx = MEM32(eax); /* 0x47062F6E: mov ecx, dword ptr [eax] */ 2243 ecx = MEM32(ecx + 0x4); /* 0x47062F70: mov ecx, dword ptr [ecx + 4] */ 2244 MEM32(ecx + eax + (-0x4)) = edx; /* 0x47062F73: mov dword ptr [ecx + eax - 4], edx */ 2245 ecx = MEM32(eax); /* 0x47062F77: mov ecx, dword ptr [eax] */ 2246 ecx = MEM32(ecx + 0x8); /* 0x47062F79: mov ecx, dword ptr [ecx + 8] */ 2247 MEM32(ecx + eax + (-0x4)) = edx; /* 0x47062F7C: mov dword ptr [ecx + eax - 4], edx */ 2248 ecx = MEM32(eax); /* 0x47062F80: mov ecx, dword ptr [eax] */ 2249 ecx = MEM32(ecx + 0x4); /* 0x47062F82: mov ecx, dword ptr [ecx + 4] */ 2250 MEM32(ecx + eax) = 0x470AE5D0u; /* 0x47062F85: mov dword ptr [ecx + eax], 0x470ae5d0 */ 2251 ecx = MEM32(eax); /* 0x47062F8C: mov ecx, dword ptr [eax] */ 2252 ecx = MEM32(ecx + 0x8); /* 0x47062F8E: mov ecx, dword ptr [ecx + 8] */ 2253 MEM32(ecx + eax) = 0x470AE5CCu; /* 0x47062F91: mov dword ptr [ecx + eax], 0x470ae5cc */ 2254 ecx = MEM32(eax); /* 0x47062F98: mov ecx, dword ptr [eax] */ 2255 ecx = MEM32(ecx + 0xC); /* 0x47062F9A: mov ecx, dword ptr [ecx + 0xc] */ 2256 MEM32(ecx + eax) = 0x470AE5C8u; /* 0x47062F9D: mov dword ptr [ecx + eax], 0x470ae5c8 */ 2257 ecx = MEM32(eax); /* 0x47062FA4: mov ecx, dword ptr [eax] */ 2258 ecx = MEM32(ecx + 0x4); /* 0x47062FA6: mov ecx, dword ptr [ecx + 4] */ 2259 MEM32(ecx + eax + (-0x4)) = edx; /* 0x47062FA9: mov dword ptr [ecx + eax - 4], edx */ 2260 ecx = MEM32(eax); /* 0x47062FAD: mov ecx, dword ptr [eax] */ 2261 ecx = MEM32(ecx + 0x8); /* 0x47062FAF: mov ecx, dword ptr [ecx + 8] */ 2262 MEM32(ecx + eax + (-0x4)) = edx; /* 0x47062FB2: mov dword ptr [ecx + eax - 4], edx */ 2263 ecx = MEM32(eax); /* 0x47062FB6: mov ecx, dword ptr [eax] */ 2264 ecx = MEM32(ecx + 0xC); /* 0x47062FB8: mov ecx, dword ptr [ecx + 0xc] */ 2265 MEM32(ecx + eax + (-0x4)) = edx; /* 0x47062FBB: mov dword ptr [ecx + eax - 4], edx */ 2266 esi = POP32_VAL(esp); /* 0x47062FBF: pop esi */ 2267 ecx = POP32_VAL(esp); /* 0x47062FC0: pop ecx */ 2268 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47062FC1: ret 8 */ 2269 RECOMP_REGS_OUT(); 2270 } 2271 2272 void sub_47062FD0(void) { 2273 int _fpu_cmp = 0; 2274 uint32_t _cf = 0; 2275 int _df = 1; 2276 uint32_t _flag_k = FK_NONE; 2277 uint32_t _flag_a = 0, _flag_b = 0; 2278 uint32_t _itail_tgt = 0; 2279 RECOMP_REGS_LOCALS 2280 RECOMP_ENTER(0x47062FD0u); 2281 2282 L_47062FD0: 2283 PUSH32(esp, esi); /* 0x47062FD0: push esi */ 2284 esi = ecx; /* 0x47062FD1: mov esi, ecx */ 2285 PUSH32(esp, edi); /* 0x47062FD3: push edi */ 2286 edi = esi + 0x18; /* 0x47062FD4: lea edi, [esi + 0x18] */ 2287 ecx = edi; /* 0x47062FD7: mov ecx, edi */ 2288 RECOMP_ICALL(0x470A10F0u); /* 0x47062FD9: call 0x470a10f0 */ /* not lifted */ 2289 RECOMP_FLAGS_IN(); 2290 ecx = esi + 0x34; /* 0x47062FDE: lea ecx, [esi + 0x34] */ 2291 RECOMP_ICALL(0x47018810u); /* 0x47062FE1: call 0x47018810 */ /* not lifted */ 2292 RECOMP_FLAGS_IN(); 2293 ecx = esi + 0x28; /* 0x47062FE6: lea ecx, [esi + 0x28] */ 2294 RECOMP_ICALL(0x470187A0u); /* 0x47062FE9: call 0x470187a0 */ /* not lifted */ 2295 RECOMP_FLAGS_IN(); 2296 ecx = edi; /* 0x47062FEE: mov ecx, edi */ 2297 RECOMP_ICALL(0x47018750u); /* 0x47062FF0: call 0x47018750 */ /* not lifted */ 2298 RECOMP_FLAGS_IN(); 2299 edi = POP32_VAL(esp); /* 0x47062FF5: pop edi */ 2300 esi = POP32_VAL(esp); /* 0x47062FF6: pop esi */ 2301 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47062FF7: ret */ 2302 RECOMP_REGS_OUT(); 2303 } 2304 2305 void sub_47063000(void) { 2306 int _fpu_cmp = 0; 2307 uint32_t _cf = 0; 2308 int _df = 1; 2309 uint32_t _flag_k = FK_NONE; 2310 uint32_t _flag_a = 0, _flag_b = 0; 2311 uint32_t _itail_tgt = 0; 2312 RECOMP_REGS_LOCALS 2313 RECOMP_ENTER(0x47063000u); 2314 2315 L_47063000: 2316 PUSH32(esp, ebx); /* 0x47063000: push ebx */ 2317 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47063001: mov bl, byte ptr [esp + 8] */ 2318 /* test LO8(ebx), 2 */ /* 0x47063005: test bl, 2 */ 2319 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 2320 _cf = 0; 2321 _flag_k = FK_NARROW(FK_TEST, 24); 2322 PUSH32(esp, esi); /* 0x47063008: push esi */ 2323 if (TEST_Z(_flag_a, _flag_b)) goto L_47063037; /* 0x47063009: je 0x47063037 */ 2324 L_4706300B: 2325 eax = MEM32(ecx + (-0x1C)); /* 0x4706300B: mov eax, dword ptr [ecx - 0x1c] */ 2326 esi = ecx + (-0x1C); /* 0x4706300E: lea esi, [ecx - 0x1c] */ 2327 PUSH32(esp, 0x47062FD0u); /* 0x47063011: push 0x47062fd0 */ 2328 PUSH32(esp, eax); /* 0x47063016: push eax */ 2329 PUSH32(esp, 0x34u); /* 0x47063017: push 0x34 */ 2330 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFE8u); 2331 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2332 ecx = ecx + 0xFFFFFFE8u; /* 0x47063019: add ecx, -0x18 */ 2333 _flag_k = FK_ADD; 2334 PUSH32(esp, ecx); /* 0x4706301C: push ecx */ 2335 RECOMP_ICALL(0x470A32EBu); /* 0x4706301D: call 0x470a32eb */ /* not lifted */ 2336 RECOMP_FLAGS_IN(); 2337 /* test LO8(ebx), 1 */ /* 0x47063022: test bl, 1 */ 2338 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2339 _cf = 0; 2340 _flag_k = FK_NARROW(FK_TEST, 24); 2341 if (TEST_Z(_flag_a, _flag_b)) goto L_4706306B; /* 0x47063025: je 0x4706306b */ 2342 L_47063027: 2343 PUSH32(esp, esi); /* 0x47063027: push esi */ 2344 RECOMP_ICALL(0x470A32A2u); /* 0x47063028: call 0x470a32a2 */ /* not lifted */ 2345 RECOMP_FLAGS_IN(); 2346 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2347 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2348 esp = esp + 4; /* 0x4706302D: add esp, 4 */ 2349 _flag_k = FK_ADD; 2350 eax = esi; /* 0x47063030: mov eax, esi */ 2351 esi = POP32_VAL(esp); /* 0x47063032: pop esi */ 2352 ebx = POP32_VAL(esp); /* 0x47063033: pop ebx */ 2353 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47063034: ret 4 */ 2354 L_47063037: 2355 esi = ecx + (-0x18); /* 0x47063037: lea esi, [ecx - 0x18] */ 2356 PUSH32(esp, edi); /* 0x4706303A: push edi */ 2357 edi = esi + 0x18; /* 0x4706303B: lea edi, [esi + 0x18] */ 2358 ecx = edi; /* 0x4706303E: mov ecx, edi */ 2359 RECOMP_ICALL(0x470A10F0u); /* 0x47063040: call 0x470a10f0 */ /* not lifted */ 2360 RECOMP_FLAGS_IN(); 2361 ecx = esi + 0x34; /* 0x47063045: lea ecx, [esi + 0x34] */ 2362 RECOMP_ICALL(0x47018810u); /* 0x47063048: call 0x47018810 */ /* not lifted */ 2363 RECOMP_FLAGS_IN(); 2364 ecx = esi + 0x28; /* 0x4706304D: lea ecx, [esi + 0x28] */ 2365 RECOMP_ICALL(0x470187A0u); /* 0x47063050: call 0x470187a0 */ /* not lifted */ 2366 RECOMP_FLAGS_IN(); 2367 ecx = edi; /* 0x47063055: mov ecx, edi */ 2368 RECOMP_ICALL(0x47018750u); /* 0x47063057: call 0x47018750 */ /* not lifted */ 2369 RECOMP_FLAGS_IN(); 2370 /* test LO8(ebx), 1 */ /* 0x4706305C: test bl, 1 */ 2371 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2372 _cf = 0; 2373 _flag_k = FK_NARROW(FK_TEST, 24); 2374 edi = POP32_VAL(esp); /* 0x4706305F: pop edi */ 2375 if (TEST_Z(_flag_a, _flag_b)) goto L_4706306B; /* 0x47063060: je 0x4706306b */ 2376 L_47063062: 2377 PUSH32(esp, esi); /* 0x47063062: push esi */ 2378 RECOMP_ICALL(0x470A32A2u); /* 0x47063063: call 0x470a32a2 */ /* not lifted */ 2379 RECOMP_FLAGS_IN(); 2380 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2381 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2382 esp = esp + 4; /* 0x47063068: add esp, 4 */ 2383 _flag_k = FK_ADD; 2384 L_4706306B: 2385 eax = esi; /* 0x4706306B: mov eax, esi */ 2386 esi = POP32_VAL(esp); /* 0x4706306D: pop esi */ 2387 ebx = POP32_VAL(esp); /* 0x4706306E: pop ebx */ 2388 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706306F: ret 4 */ 2389 RECOMP_REGS_OUT(); 2390 } 2391 2392 void sub_47063080(void) { 2393 int _fpu_cmp = 0; 2394 uint32_t _cf = 0; 2395 int _df = 1; 2396 uint32_t _flag_k = FK_NONE; 2397 uint32_t _flag_a = 0, _flag_b = 0; 2398 uint32_t _itail_tgt = 0; 2399 RECOMP_REGS_LOCALS 2400 RECOMP_ENTER(0x47063080u); 2401 2402 L_47063080: 2403 PUSH32(esp, ecx); /* 0x47063080: push ecx */ 2404 PUSH32(esp, ebx); /* 0x47063081: push ebx */ 2405 eax = ecx; /* 0x47063082: mov eax, ecx */ 2406 ecx = MEM32(esp + 0x10); /* 0x47063084: mov ecx, dword ptr [esp + 0x10] */ 2407 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2408 ebx = 0; /* 0x47063088: xor ebx, ebx */ 2409 _cf = 0; 2410 _flag_k = FK_TEST; 2411 /* cmp ecx, ebx */ /* 0x4706308A: cmp ecx, ebx */ 2412 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 2413 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2414 _flag_k = FK_CMP; 2415 PUSH32(esp, esi); /* 0x4706308C: push esi */ 2416 PUSH32(esp, edi); /* 0x4706308D: push edi */ 2417 MEM32(esp + 0xC) = ebx; /* 0x4706308E: mov dword ptr [esp + 0xc], ebx */ 2418 if (CMP_EQ(_flag_a, _flag_b)) goto L_470630BE; /* 0x47063092: je 0x470630be */ 2419 L_47063094: 2420 MEM32(eax + 0x14) = 0x470AE650u; /* 0x47063094: mov dword ptr [eax + 0x14], 0x470ae650 */ 2421 MEM32(eax + 0x50) = 0x470AE648u; /* 0x4706309B: mov dword ptr [eax + 0x50], 0x470ae648 */ 2422 MEM32(eax + 0x44) = 0x470ACC18u; /* 0x470630A2: mov dword ptr [eax + 0x44], 0x470acc18 */ 2423 ecx = MEM32(eax + 0x50); /* 0x470630A9: mov ecx, dword ptr [eax + 0x50] */ 2424 MEM32(eax + 0x4C) = 0x470ACE74u; /* 0x470630AC: mov dword ptr [eax + 0x4c], 0x470ace74 */ 2425 edx = MEM32(ecx + 0x4); /* 0x470630B3: mov edx, dword ptr [ecx + 4] */ 2426 MEM32(edx + eax + 0x50) = 0x470ACE40u; /* 0x470630B6: mov dword ptr [edx + eax + 0x50], 0x470ace40 */ 2427 L_470630BE: 2428 edx = MEM32(esp + 0x14); /* 0x470630BE: mov edx, dword ptr [esp + 0x14] */ 2429 esi = edx; /* 0x470630C2: mov esi, edx */ 2430 ecx = 5; /* 0x470630C4: mov ecx, 5 */ 2431 edi = eax; /* 0x470630C9: mov edi, eax */ 2432 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x470630CB: 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; } 2433 ecx = MEM32(edx + 0x18); /* 0x470630CD: mov ecx, dword ptr [edx + 0x18] */ 2434 MEM32(eax + 0x18) = ecx; /* 0x470630D0: mov dword ptr [eax + 0x18], ecx */ 2435 ecx = MEM32(edx + 0x1C); /* 0x470630D3: mov ecx, dword ptr [edx + 0x1c] */ 2436 MEM32(eax + 0x1C) = ecx; /* 0x470630D6: mov dword ptr [eax + 0x1c], ecx */ 2437 ecx = MEM32(edx + 0x20); /* 0x470630D9: mov ecx, dword ptr [edx + 0x20] */ 2438 MEM32(eax + 0x20) = ecx; /* 0x470630DC: mov dword ptr [eax + 0x20], ecx */ 2439 ecx = MEM32(edx + 0x24); /* 0x470630DF: mov ecx, dword ptr [edx + 0x24] */ 2440 MEM32(eax + 0x24) = ecx; /* 0x470630E2: mov dword ptr [eax + 0x24], ecx */ 2441 ecx = MEM32(edx + 0x28); /* 0x470630E5: mov ecx, dword ptr [edx + 0x28] */ 2442 MEM32(eax + 0x28) = ecx; /* 0x470630E8: mov dword ptr [eax + 0x28], ecx */ 2443 ecx = MEM32(edx + 0x2C); /* 0x470630EB: mov ecx, dword ptr [edx + 0x2c] */ 2444 MEM32(eax + 0x2C) = ecx; /* 0x470630EE: mov dword ptr [eax + 0x2c], ecx */ 2445 ecx = MEM32(eax + 0x14); /* 0x470630F1: mov ecx, dword ptr [eax + 0x14] */ 2446 ecx = MEM32(ecx + 0x4); /* 0x470630F4: mov ecx, dword ptr [ecx + 4] */ 2447 MEM32(ecx + eax + 0x14) = 0x470AE360u; /* 0x470630F7: mov dword ptr [ecx + eax + 0x14], 0x470ae360 */ 2448 ecx = MEM32(eax + 0x14); /* 0x470630FF: mov ecx, dword ptr [eax + 0x14] */ 2449 ecx = MEM32(ecx + 0x4); /* 0x47063102: mov ecx, dword ptr [ecx + 4] */ 2450 MEM32(ecx + eax + 0x10) = ebx; /* 0x47063105: mov dword ptr [ecx + eax + 0x10], ebx */ 2451 ecx = MEM32(edx + 0x30); /* 0x47063109: mov ecx, dword ptr [edx + 0x30] */ 2452 MEM32(eax + 0x30) = ecx; /* 0x4706310C: mov dword ptr [eax + 0x30], ecx */ 2453 ecx = MEM32(edx + 0x34); /* 0x4706310F: mov ecx, dword ptr [edx + 0x34] */ 2454 MEM32(eax + 0x34) = ecx; /* 0x47063112: mov dword ptr [eax + 0x34], ecx */ 2455 ecx = MEM32(edx + 0x38); /* 0x47063115: mov ecx, dword ptr [edx + 0x38] */ 2456 MEM32(eax + 0x38) = ecx; /* 0x47063118: mov dword ptr [eax + 0x38], ecx */ 2457 edx = MEM32(edx + 0x3C); /* 0x4706311B: mov edx, dword ptr [edx + 0x3c] */ 2458 ecx = MEM32(eax + 0x14); /* 0x4706311E: mov ecx, dword ptr [eax + 0x14] */ 2459 MEM32(eax + 0x3C) = edx; /* 0x47063121: mov dword ptr [eax + 0x3c], edx */ 2460 edx = MEM32(ecx + 0x4); /* 0x47063124: mov edx, dword ptr [ecx + 4] */ 2461 MEM32(edx + eax + 0x14) = 0x470AE614u; /* 0x47063127: mov dword ptr [edx + eax + 0x14], 0x470ae614 */ 2462 ecx = MEM32(eax + 0x14); /* 0x4706312F: mov ecx, dword ptr [eax + 0x14] */ 2463 edx = MEM32(ecx + 0x8); /* 0x47063132: mov edx, dword ptr [ecx + 8] */ 2464 MEM32(edx + eax + 0x14) = 0x470AE604u; /* 0x47063135: mov dword ptr [edx + eax + 0x14], 0x470ae604 */ 2465 ecx = MEM32(eax + 0x14); /* 0x4706313D: mov ecx, dword ptr [eax + 0x14] */ 2466 edx = MEM32(ecx + 0x4); /* 0x47063140: mov edx, dword ptr [ecx + 4] */ 2467 MEM32(edx + eax + 0x10) = ebx; /* 0x47063143: mov dword ptr [edx + eax + 0x10], ebx */ 2468 ecx = MEM32(eax + 0x14); /* 0x47063147: mov ecx, dword ptr [eax + 0x14] */ 2469 edx = MEM32(ecx + 0x8); /* 0x4706314A: mov edx, dword ptr [ecx + 8] */ 2470 edi = POP32_VAL(esp); /* 0x4706314D: pop edi */ 2471 esi = POP32_VAL(esp); /* 0x4706314E: pop esi */ 2472 MEM32(edx + eax + 0x10) = ebx; /* 0x4706314F: mov dword ptr [edx + eax + 0x10], ebx */ 2473 ebx = POP32_VAL(esp); /* 0x47063153: pop ebx */ 2474 ecx = POP32_VAL(esp); /* 0x47063154: pop ecx */ 2475 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47063155: ret 8 */ 2476 RECOMP_REGS_OUT(); 2477 } 2478 2479 void sub_47063160(void) { 2480 int _fpu_cmp = 0; 2481 uint32_t _cf = 0; 2482 int _df = 1; 2483 uint32_t _flag_k = FK_NONE; 2484 uint32_t _flag_a = 0, _flag_b = 0; 2485 uint32_t _itail_tgt = 0; 2486 RECOMP_REGS_LOCALS 2487 RECOMP_ENTER(0x47063160u); 2488 2489 L_47063160: 2490 PUSH32(esp, esi); /* 0x47063160: push esi */ 2491 esi = ecx; /* 0x47063161: mov esi, ecx */ 2492 PUSH32(esp, edi); /* 0x47063163: push edi */ 2493 edi = esi + 0x44; /* 0x47063164: lea edi, [esi + 0x44] */ 2494 ecx = edi; /* 0x47063167: mov ecx, edi */ 2495 RECOMP_ICALL(0x470A1330u); /* 0x47063169: call 0x470a1330 */ /* not lifted */ 2496 RECOMP_FLAGS_IN(); 2497 ecx = esi + 0x54; /* 0x4706316E: lea ecx, [esi + 0x54] */ 2498 RECOMP_ICALL(0x47018880u); /* 0x47063171: call 0x47018880 */ /* not lifted */ 2499 RECOMP_FLAGS_IN(); 2500 ecx = edi; /* 0x47063176: mov ecx, edi */ 2501 RECOMP_ICALL(0x47018740u); /* 0x47063178: call 0x47018740 */ /* not lifted */ 2502 RECOMP_FLAGS_IN(); 2503 edi = POP32_VAL(esp); /* 0x4706317D: pop edi */ 2504 esi = POP32_VAL(esp); /* 0x4706317E: pop esi */ 2505 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706317F: ret */ 2506 RECOMP_REGS_OUT(); 2507 } 2508 2509 void sub_47063180(void) { 2510 int _fpu_cmp = 0; 2511 uint32_t _cf = 0; 2512 int _df = 1; 2513 uint32_t _flag_k = FK_NONE; 2514 uint32_t _flag_a = 0, _flag_b = 0; 2515 uint32_t _itail_tgt = 0; 2516 RECOMP_REGS_LOCALS 2517 RECOMP_ENTER(0x47063180u); 2518 2519 L_47063180: 2520 PUSH32(esp, ebx); /* 0x47063180: push ebx */ 2521 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47063181: mov bl, byte ptr [esp + 8] */ 2522 /* test LO8(ebx), 2 */ /* 0x47063185: test bl, 2 */ 2523 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 2524 _cf = 0; 2525 _flag_k = FK_NARROW(FK_TEST, 24); 2526 PUSH32(esp, esi); /* 0x47063188: push esi */ 2527 if (TEST_Z(_flag_a, _flag_b)) goto L_470631B7; /* 0x47063189: je 0x470631b7 */ 2528 L_4706318B: 2529 eax = MEM32(ecx + (-0x48)); /* 0x4706318B: mov eax, dword ptr [ecx - 0x48] */ 2530 esi = ecx + (-0x48); /* 0x4706318E: lea esi, [ecx - 0x48] */ 2531 PUSH32(esp, 0x47063160u); /* 0x47063191: push 0x47063160 */ 2532 PUSH32(esp, eax); /* 0x47063196: push eax */ 2533 PUSH32(esp, 0x54u); /* 0x47063197: push 0x54 */ 2534 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFBCu); 2535 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2536 ecx = ecx + 0xFFFFFFBCu; /* 0x47063199: add ecx, -0x44 */ 2537 _flag_k = FK_ADD; 2538 PUSH32(esp, ecx); /* 0x4706319C: push ecx */ 2539 RECOMP_ICALL(0x470A32EBu); /* 0x4706319D: call 0x470a32eb */ /* not lifted */ 2540 RECOMP_FLAGS_IN(); 2541 /* test LO8(ebx), 1 */ /* 0x470631A2: test bl, 1 */ 2542 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2543 _cf = 0; 2544 _flag_k = FK_NARROW(FK_TEST, 24); 2545 if (TEST_Z(_flag_a, _flag_b)) goto L_470631E3; /* 0x470631A5: je 0x470631e3 */ 2546 L_470631A7: 2547 PUSH32(esp, esi); /* 0x470631A7: push esi */ 2548 RECOMP_ICALL(0x470A32A2u); /* 0x470631A8: call 0x470a32a2 */ /* not lifted */ 2549 RECOMP_FLAGS_IN(); 2550 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2551 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2552 esp = esp + 4; /* 0x470631AD: add esp, 4 */ 2553 _flag_k = FK_ADD; 2554 eax = esi; /* 0x470631B0: mov eax, esi */ 2555 esi = POP32_VAL(esp); /* 0x470631B2: pop esi */ 2556 ebx = POP32_VAL(esp); /* 0x470631B3: pop ebx */ 2557 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470631B4: ret 4 */ 2558 L_470631B7: 2559 esi = ecx + (-0x44); /* 0x470631B7: lea esi, [ecx - 0x44] */ 2560 PUSH32(esp, edi); /* 0x470631BA: push edi */ 2561 edi = esi + 0x44; /* 0x470631BB: lea edi, [esi + 0x44] */ 2562 ecx = edi; /* 0x470631BE: mov ecx, edi */ 2563 RECOMP_ICALL(0x470A1330u); /* 0x470631C0: call 0x470a1330 */ /* not lifted */ 2564 RECOMP_FLAGS_IN(); 2565 ecx = esi + 0x54; /* 0x470631C5: lea ecx, [esi + 0x54] */ 2566 RECOMP_ICALL(0x47018880u); /* 0x470631C8: call 0x47018880 */ /* not lifted */ 2567 RECOMP_FLAGS_IN(); 2568 ecx = edi; /* 0x470631CD: mov ecx, edi */ 2569 RECOMP_ICALL(0x47018740u); /* 0x470631CF: call 0x47018740 */ /* not lifted */ 2570 RECOMP_FLAGS_IN(); 2571 /* test LO8(ebx), 1 */ /* 0x470631D4: test bl, 1 */ 2572 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2573 _cf = 0; 2574 _flag_k = FK_NARROW(FK_TEST, 24); 2575 edi = POP32_VAL(esp); /* 0x470631D7: pop edi */ 2576 if (TEST_Z(_flag_a, _flag_b)) goto L_470631E3; /* 0x470631D8: je 0x470631e3 */ 2577 L_470631DA: 2578 PUSH32(esp, esi); /* 0x470631DA: push esi */ 2579 RECOMP_ICALL(0x470A32A2u); /* 0x470631DB: call 0x470a32a2 */ /* not lifted */ 2580 RECOMP_FLAGS_IN(); 2581 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2582 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2583 esp = esp + 4; /* 0x470631E0: add esp, 4 */ 2584 _flag_k = FK_ADD; 2585 L_470631E3: 2586 eax = esi; /* 0x470631E3: mov eax, esi */ 2587 esi = POP32_VAL(esp); /* 0x470631E5: pop esi */ 2588 ebx = POP32_VAL(esp); /* 0x470631E6: pop ebx */ 2589 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470631E7: ret 4 */ 2590 RECOMP_REGS_OUT(); 2591 } 2592 2593 void sub_470631F0(void) { 2594 int _fpu_cmp = 0; 2595 uint32_t _cf = 0; 2596 int _df = 1; 2597 uint32_t _flag_k = FK_NONE; 2598 uint32_t _flag_a = 0, _flag_b = 0; 2599 uint32_t _itail_tgt = 0; 2600 RECOMP_REGS_LOCALS 2601 RECOMP_ENTER(0x470631F0u); 2602 2603 L_470631F0: 2604 PUSH32(esp, ecx); /* 0x470631F0: push ecx */ 2605 eax = ecx; /* 0x470631F1: mov eax, ecx */ 2606 ecx = MEM32(esp + 0xC); /* 0x470631F3: mov ecx, dword ptr [esp + 0xc] */ 2607 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2608 edx = 0; /* 0x470631F7: xor edx, edx */ 2609 _cf = 0; 2610 _flag_k = FK_TEST; 2611 /* cmp ecx, edx */ /* 0x470631F9: cmp ecx, edx */ 2612 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2613 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2614 _flag_k = FK_CMP; 2615 MEM32(esp) = edx; /* 0x470631FB: mov dword ptr [esp], edx */ 2616 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706322A; /* 0x470631FF: je 0x4706322a */ 2617 L_47063201: 2618 MEM32(eax) = 0x470AE678u; /* 0x47063201: mov dword ptr [eax], 0x470ae678 */ 2619 MEM32(eax + 0x24) = 0x470AE670u; /* 0x47063207: mov dword ptr [eax + 0x24], 0x470ae670 */ 2620 MEM32(eax + 0x18) = 0x470ACC4Cu; /* 0x4706320E: mov dword ptr [eax + 0x18], 0x470acc4c */ 2621 ecx = MEM32(eax + 0x24); /* 0x47063215: mov ecx, dword ptr [eax + 0x24] */ 2622 MEM32(eax + 0x20) = 0x470ACE34u; /* 0x47063218: mov dword ptr [eax + 0x20], 0x470ace34 */ 2623 ecx = MEM32(ecx + 0x4); /* 0x4706321F: mov ecx, dword ptr [ecx + 4] */ 2624 MEM32(ecx + eax + 0x24) = 0x470ACE24u; /* 0x47063222: mov dword ptr [ecx + eax + 0x24], 0x470ace24 */ 2625 L_4706322A: 2626 ecx = MEM32(esp + 0x8); /* 0x4706322A: mov ecx, dword ptr [esp + 8] */ 2627 PUSH32(esp, esi); /* 0x4706322E: push esi */ 2628 esi = MEM32(ecx + 0x4); /* 0x4706322F: mov esi, dword ptr [ecx + 4] */ 2629 MEM32(eax + 0x4) = esi; /* 0x47063232: mov dword ptr [eax + 4], esi */ 2630 esi = MEM32(ecx + 0x8); /* 0x47063235: mov esi, dword ptr [ecx + 8] */ 2631 MEM32(eax + 0x8) = esi; /* 0x47063238: mov dword ptr [eax + 8], esi */ 2632 esi = MEM32(ecx + 0xC); /* 0x4706323B: mov esi, dword ptr [ecx + 0xc] */ 2633 MEM32(eax + 0xC) = esi; /* 0x4706323E: mov dword ptr [eax + 0xc], esi */ 2634 ecx = MEM32(ecx + 0x10); /* 0x47063241: mov ecx, dword ptr [ecx + 0x10] */ 2635 MEM32(eax + 0x10) = ecx; /* 0x47063244: mov dword ptr [eax + 0x10], ecx */ 2636 ecx = MEM32(eax); /* 0x47063247: mov ecx, dword ptr [eax] */ 2637 ecx = MEM32(ecx + 0x4); /* 0x47063249: mov ecx, dword ptr [ecx + 4] */ 2638 MEM32(ecx + eax) = 0x470AE39Cu; /* 0x4706324C: mov dword ptr [ecx + eax], 0x470ae39c */ 2639 ecx = MEM32(eax); /* 0x47063253: mov ecx, dword ptr [eax] */ 2640 ecx = MEM32(ecx + 0x4); /* 0x47063255: mov ecx, dword ptr [ecx + 4] */ 2641 MEM32(ecx + eax + (-0x4)) = edx; /* 0x47063258: mov dword ptr [ecx + eax - 4], edx */ 2642 ecx = MEM32(eax); /* 0x4706325C: mov ecx, dword ptr [eax] */ 2643 ecx = MEM32(ecx + 0x4); /* 0x4706325E: mov ecx, dword ptr [ecx + 4] */ 2644 MEM32(ecx + eax) = 0x470AE660u; /* 0x47063261: mov dword ptr [ecx + eax], 0x470ae660 */ 2645 ecx = MEM32(eax); /* 0x47063268: mov ecx, dword ptr [eax] */ 2646 ecx = MEM32(ecx + 0x8); /* 0x4706326A: mov ecx, dword ptr [ecx + 8] */ 2647 MEM32(ecx + eax) = 0x470AE65Cu; /* 0x4706326D: mov dword ptr [ecx + eax], 0x470ae65c */ 2648 ecx = MEM32(eax); /* 0x47063274: mov ecx, dword ptr [eax] */ 2649 ecx = MEM32(ecx + 0x4); /* 0x47063276: mov ecx, dword ptr [ecx + 4] */ 2650 MEM32(ecx + eax + (-0x4)) = edx; /* 0x47063279: mov dword ptr [ecx + eax - 4], edx */ 2651 ecx = MEM32(eax); /* 0x4706327D: mov ecx, dword ptr [eax] */ 2652 ecx = MEM32(ecx + 0x8); /* 0x4706327F: mov ecx, dword ptr [ecx + 8] */ 2653 MEM32(ecx + eax + (-0x4)) = edx; /* 0x47063282: mov dword ptr [ecx + eax - 4], edx */ 2654 esi = POP32_VAL(esp); /* 0x47063286: pop esi */ 2655 ecx = POP32_VAL(esp); /* 0x47063287: pop ecx */ 2656 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47063288: ret 8 */ 2657 RECOMP_REGS_OUT(); 2658 } 2659 2660 void sub_47063290(void) { 2661 int _fpu_cmp = 0; 2662 uint32_t _cf = 0; 2663 int _df = 1; 2664 uint32_t _flag_k = FK_NONE; 2665 uint32_t _flag_a = 0, _flag_b = 0; 2666 uint32_t _itail_tgt = 0; 2667 RECOMP_REGS_LOCALS 2668 RECOMP_ENTER(0x47063290u); 2669 2670 L_47063290: 2671 PUSH32(esp, esi); /* 0x47063290: push esi */ 2672 esi = ecx; /* 0x47063291: mov esi, ecx */ 2673 PUSH32(esp, edi); /* 0x47063293: push edi */ 2674 edi = esi + 0x18; /* 0x47063294: lea edi, [esi + 0x18] */ 2675 ecx = edi; /* 0x47063297: mov ecx, edi */ 2676 RECOMP_ICALL(0x470A17B0u); /* 0x47063299: call 0x470a17b0 */ /* not lifted */ 2677 RECOMP_FLAGS_IN(); 2678 ecx = esi + 0x28; /* 0x4706329E: lea ecx, [esi + 0x28] */ 2679 RECOMP_ICALL(0x470188A0u); /* 0x470632A1: call 0x470188a0 */ /* not lifted */ 2680 RECOMP_FLAGS_IN(); 2681 ecx = edi; /* 0x470632A6: mov ecx, edi */ 2682 RECOMP_ICALL(0x47018750u); /* 0x470632A8: call 0x47018750 */ /* not lifted */ 2683 RECOMP_FLAGS_IN(); 2684 edi = POP32_VAL(esp); /* 0x470632AD: pop edi */ 2685 esi = POP32_VAL(esp); /* 0x470632AE: pop esi */ 2686 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470632AF: ret */ 2687 RECOMP_REGS_OUT(); 2688 } 2689 2690 void sub_470632B0(void) { 2691 int _fpu_cmp = 0; 2692 uint32_t _cf = 0; 2693 int _df = 1; 2694 uint32_t _flag_k = FK_NONE; 2695 uint32_t _flag_a = 0, _flag_b = 0; 2696 uint32_t _itail_tgt = 0; 2697 RECOMP_REGS_LOCALS 2698 RECOMP_ENTER(0x470632B0u); 2699 2700 L_470632B0: 2701 PUSH32(esp, ebx); /* 0x470632B0: push ebx */ 2702 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x470632B1: mov bl, byte ptr [esp + 8] */ 2703 /* test LO8(ebx), 2 */ /* 0x470632B5: test bl, 2 */ 2704 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 2705 _cf = 0; 2706 _flag_k = FK_NARROW(FK_TEST, 24); 2707 PUSH32(esp, esi); /* 0x470632B8: push esi */ 2708 if (TEST_Z(_flag_a, _flag_b)) goto L_470632E7; /* 0x470632B9: je 0x470632e7 */ 2709 L_470632BB: 2710 eax = MEM32(ecx + (-0x1C)); /* 0x470632BB: mov eax, dword ptr [ecx - 0x1c] */ 2711 esi = ecx + (-0x1C); /* 0x470632BE: lea esi, [ecx - 0x1c] */ 2712 PUSH32(esp, 0x47063290u); /* 0x470632C1: push 0x47063290 */ 2713 PUSH32(esp, eax); /* 0x470632C6: push eax */ 2714 PUSH32(esp, 0x28u); /* 0x470632C7: push 0x28 */ 2715 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFE8u); 2716 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2717 ecx = ecx + 0xFFFFFFE8u; /* 0x470632C9: add ecx, -0x18 */ 2718 _flag_k = FK_ADD; 2719 PUSH32(esp, ecx); /* 0x470632CC: push ecx */ 2720 RECOMP_ICALL(0x470A32EBu); /* 0x470632CD: call 0x470a32eb */ /* not lifted */ 2721 RECOMP_FLAGS_IN(); 2722 /* test LO8(ebx), 1 */ /* 0x470632D2: test bl, 1 */ 2723 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2724 _cf = 0; 2725 _flag_k = FK_NARROW(FK_TEST, 24); 2726 if (TEST_Z(_flag_a, _flag_b)) goto L_47063313; /* 0x470632D5: je 0x47063313 */ 2727 L_470632D7: 2728 PUSH32(esp, esi); /* 0x470632D7: push esi */ 2729 RECOMP_ICALL(0x470A32A2u); /* 0x470632D8: call 0x470a32a2 */ /* not lifted */ 2730 RECOMP_FLAGS_IN(); 2731 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2732 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2733 esp = esp + 4; /* 0x470632DD: add esp, 4 */ 2734 _flag_k = FK_ADD; 2735 eax = esi; /* 0x470632E0: mov eax, esi */ 2736 esi = POP32_VAL(esp); /* 0x470632E2: pop esi */ 2737 ebx = POP32_VAL(esp); /* 0x470632E3: pop ebx */ 2738 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470632E4: ret 4 */ 2739 L_470632E7: 2740 esi = ecx + (-0x18); /* 0x470632E7: lea esi, [ecx - 0x18] */ 2741 PUSH32(esp, edi); /* 0x470632EA: push edi */ 2742 edi = esi + 0x18; /* 0x470632EB: lea edi, [esi + 0x18] */ 2743 ecx = edi; /* 0x470632EE: mov ecx, edi */ 2744 RECOMP_ICALL(0x470A17B0u); /* 0x470632F0: call 0x470a17b0 */ /* not lifted */ 2745 RECOMP_FLAGS_IN(); 2746 ecx = esi + 0x28; /* 0x470632F5: lea ecx, [esi + 0x28] */ 2747 RECOMP_ICALL(0x470188A0u); /* 0x470632F8: call 0x470188a0 */ /* not lifted */ 2748 RECOMP_FLAGS_IN(); 2749 ecx = edi; /* 0x470632FD: mov ecx, edi */ 2750 RECOMP_ICALL(0x47018750u); /* 0x470632FF: call 0x47018750 */ /* not lifted */ 2751 RECOMP_FLAGS_IN(); 2752 /* test LO8(ebx), 1 */ /* 0x47063304: test bl, 1 */ 2753 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2754 _cf = 0; 2755 _flag_k = FK_NARROW(FK_TEST, 24); 2756 edi = POP32_VAL(esp); /* 0x47063307: pop edi */ 2757 if (TEST_Z(_flag_a, _flag_b)) goto L_47063313; /* 0x47063308: je 0x47063313 */ 2758 L_4706330A: 2759 PUSH32(esp, esi); /* 0x4706330A: push esi */ 2760 RECOMP_ICALL(0x470A32A2u); /* 0x4706330B: call 0x470a32a2 */ /* not lifted */ 2761 RECOMP_FLAGS_IN(); 2762 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2763 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2764 esp = esp + 4; /* 0x47063310: add esp, 4 */ 2765 _flag_k = FK_ADD; 2766 L_47063313: 2767 eax = esi; /* 0x47063313: mov eax, esi */ 2768 esi = POP32_VAL(esp); /* 0x47063315: pop esi */ 2769 ebx = POP32_VAL(esp); /* 0x47063316: pop ebx */ 2770 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47063317: ret 4 */ 2771 RECOMP_REGS_OUT(); 2772 } 2773 2774 void sub_47063320(void) { 2775 int _fpu_cmp = 0; 2776 uint32_t _cf = 0; 2777 int _df = 1; 2778 uint32_t _flag_k = FK_NONE; 2779 uint32_t _flag_a = 0, _flag_b = 0; 2780 uint32_t _itail_tgt = 0; 2781 RECOMP_REGS_LOCALS 2782 RECOMP_ENTER(0x47063320u); 2783 2784 L_47063320: 2785 PUSH32(esp, ecx); /* 0x47063320: push ecx */ 2786 PUSH32(esp, ebx); /* 0x47063321: push ebx */ 2787 eax = ecx; /* 0x47063322: mov eax, ecx */ 2788 ecx = MEM32(esp + 0x10); /* 0x47063324: mov ecx, dword ptr [esp + 0x10] */ 2789 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2790 ebx = 0; /* 0x47063328: xor ebx, ebx */ 2791 _cf = 0; 2792 _flag_k = FK_TEST; 2793 /* cmp ecx, ebx */ /* 0x4706332A: cmp ecx, ebx */ 2794 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 2795 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2796 _flag_k = FK_CMP; 2797 PUSH32(esp, esi); /* 0x4706332C: push esi */ 2798 PUSH32(esp, edi); /* 0x4706332D: push edi */ 2799 MEM32(esp + 0xC) = ebx; /* 0x4706332E: mov dword ptr [esp + 0xc], ebx */ 2800 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706335E; /* 0x47063332: je 0x4706335e */ 2801 L_47063334: 2802 MEM32(eax + 0x14) = 0x470AE6D8u; /* 0x47063334: mov dword ptr [eax + 0x14], 0x470ae6d8 */ 2803 MEM32(eax + 0x58) = 0x470AE6D0u; /* 0x4706333B: mov dword ptr [eax + 0x58], 0x470ae6d0 */ 2804 MEM32(eax + 0x4C) = 0x470ACC18u; /* 0x47063342: mov dword ptr [eax + 0x4c], 0x470acc18 */ 2805 ecx = MEM32(eax + 0x58); /* 0x47063349: mov ecx, dword ptr [eax + 0x58] */ 2806 MEM32(eax + 0x54) = 0x470ACEC0u; /* 0x4706334C: mov dword ptr [eax + 0x54], 0x470acec0 */ 2807 edx = MEM32(ecx + 0x4); /* 0x47063353: mov edx, dword ptr [ecx + 4] */ 2808 MEM32(edx + eax + 0x58) = 0x470ACE8Cu; /* 0x47063356: mov dword ptr [edx + eax + 0x58], 0x470ace8c */ 2809 L_4706335E: 2810 edx = MEM32(esp + 0x14); /* 0x4706335E: mov edx, dword ptr [esp + 0x14] */ 2811 esi = edx; /* 0x47063362: mov esi, edx */ 2812 ecx = 5; /* 0x47063364: mov ecx, 5 */ 2813 edi = eax; /* 0x47063369: mov edi, eax */ 2814 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4706336B: 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; } 2815 ecx = MEM32(edx + 0x18); /* 0x4706336D: mov ecx, dword ptr [edx + 0x18] */ 2816 MEM32(eax + 0x18) = ecx; /* 0x47063370: mov dword ptr [eax + 0x18], ecx */ 2817 ecx = MEM32(edx + 0x1C); /* 0x47063373: mov ecx, dword ptr [edx + 0x1c] */ 2818 MEM32(eax + 0x1C) = ecx; /* 0x47063376: mov dword ptr [eax + 0x1c], ecx */ 2819 ecx = MEM32(edx + 0x20); /* 0x47063379: mov ecx, dword ptr [edx + 0x20] */ 2820 MEM32(eax + 0x20) = ecx; /* 0x4706337C: mov dword ptr [eax + 0x20], ecx */ 2821 ecx = MEM32(edx + 0x24); /* 0x4706337F: mov ecx, dword ptr [edx + 0x24] */ 2822 MEM32(eax + 0x24) = ecx; /* 0x47063382: mov dword ptr [eax + 0x24], ecx */ 2823 ecx = MEM32(edx + 0x28); /* 0x47063385: mov ecx, dword ptr [edx + 0x28] */ 2824 MEM32(eax + 0x28) = ecx; /* 0x47063388: mov dword ptr [eax + 0x28], ecx */ 2825 ecx = MEM32(edx + 0x2C); /* 0x4706338B: mov ecx, dword ptr [edx + 0x2c] */ 2826 MEM32(eax + 0x2C) = ecx; /* 0x4706338E: mov dword ptr [eax + 0x2c], ecx */ 2827 ecx = MEM32(eax + 0x14); /* 0x47063391: mov ecx, dword ptr [eax + 0x14] */ 2828 ecx = MEM32(ecx + 0x4); /* 0x47063394: mov ecx, dword ptr [ecx + 4] */ 2829 MEM32(ecx + eax + 0x14) = 0x470AE360u; /* 0x47063397: mov dword ptr [ecx + eax + 0x14], 0x470ae360 */ 2830 ecx = MEM32(eax + 0x14); /* 0x4706339F: mov ecx, dword ptr [eax + 0x14] */ 2831 ecx = MEM32(ecx + 0x4); /* 0x470633A2: mov ecx, dword ptr [ecx + 4] */ 2832 MEM32(ecx + eax + 0x10) = ebx; /* 0x470633A5: mov dword ptr [ecx + eax + 0x10], ebx */ 2833 ecx = MEM32(edx + 0x30); /* 0x470633A9: mov ecx, dword ptr [edx + 0x30] */ 2834 MEM32(eax + 0x30) = ecx; /* 0x470633AC: mov dword ptr [eax + 0x30], ecx */ 2835 ecx = MEM32(edx + 0x34); /* 0x470633AF: mov ecx, dword ptr [edx + 0x34] */ 2836 MEM32(eax + 0x34) = ecx; /* 0x470633B2: mov dword ptr [eax + 0x34], ecx */ 2837 ecx = MEM32(edx + 0x38); /* 0x470633B5: mov ecx, dword ptr [edx + 0x38] */ 2838 MEM32(eax + 0x38) = ecx; /* 0x470633B8: mov dword ptr [eax + 0x38], ecx */ 2839 ecx = MEM32(edx + 0x3C); /* 0x470633BB: mov ecx, dword ptr [edx + 0x3c] */ 2840 MEM32(eax + 0x3C) = ecx; /* 0x470633BE: mov dword ptr [eax + 0x3c], ecx */ 2841 ecx = MEM32(edx + 0x40); /* 0x470633C1: mov ecx, dword ptr [edx + 0x40] */ 2842 MEM32(eax + 0x40) = ecx; /* 0x470633C4: mov dword ptr [eax + 0x40], ecx */ 2843 edx = MEM32(edx + 0x44); /* 0x470633C7: mov edx, dword ptr [edx + 0x44] */ 2844 ecx = MEM32(eax + 0x14); /* 0x470633CA: mov ecx, dword ptr [eax + 0x14] */ 2845 MEM32(eax + 0x44) = edx; /* 0x470633CD: mov dword ptr [eax + 0x44], edx */ 2846 edx = MEM32(ecx + 0x4); /* 0x470633D0: mov edx, dword ptr [ecx + 4] */ 2847 MEM32(edx + eax + 0x14) = 0x470AE69Cu; /* 0x470633D3: mov dword ptr [edx + eax + 0x14], 0x470ae69c */ 2848 ecx = MEM32(eax + 0x14); /* 0x470633DB: mov ecx, dword ptr [eax + 0x14] */ 2849 edx = MEM32(ecx + 0x8); /* 0x470633DE: mov edx, dword ptr [ecx + 8] */ 2850 MEM32(edx + eax + 0x14) = 0x470AE684u; /* 0x470633E1: mov dword ptr [edx + eax + 0x14], 0x470ae684 */ 2851 ecx = MEM32(eax + 0x14); /* 0x470633E9: mov ecx, dword ptr [eax + 0x14] */ 2852 edx = MEM32(ecx + 0x4); /* 0x470633EC: mov edx, dword ptr [ecx + 4] */ 2853 MEM32(edx + eax + 0x10) = ebx; /* 0x470633EF: mov dword ptr [edx + eax + 0x10], ebx */ 2854 ecx = MEM32(eax + 0x14); /* 0x470633F3: mov ecx, dword ptr [eax + 0x14] */ 2855 edx = MEM32(ecx + 0x8); /* 0x470633F6: mov edx, dword ptr [ecx + 8] */ 2856 edi = POP32_VAL(esp); /* 0x470633F9: pop edi */ 2857 esi = POP32_VAL(esp); /* 0x470633FA: pop esi */ 2858 MEM32(edx + eax + 0x10) = ebx; /* 0x470633FB: mov dword ptr [edx + eax + 0x10], ebx */ 2859 ebx = POP32_VAL(esp); /* 0x470633FF: pop ebx */ 2860 ecx = POP32_VAL(esp); /* 0x47063400: pop ecx */ 2861 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47063401: ret 8 */ 2862 RECOMP_REGS_OUT(); 2863 } 2864 2865 void sub_47063410(void) { 2866 int _fpu_cmp = 0; 2867 uint32_t _cf = 0; 2868 int _df = 1; 2869 uint32_t _flag_k = FK_NONE; 2870 uint32_t _flag_a = 0, _flag_b = 0; 2871 uint32_t _itail_tgt = 0; 2872 RECOMP_REGS_LOCALS 2873 RECOMP_ENTER(0x47063410u); 2874 2875 L_47063410: 2876 PUSH32(esp, esi); /* 0x47063410: push esi */ 2877 esi = ecx; /* 0x47063411: mov esi, ecx */ 2878 PUSH32(esp, edi); /* 0x47063413: push edi */ 2879 edi = esi + 0x4C; /* 0x47063414: lea edi, [esi + 0x4c] */ 2880 ecx = edi; /* 0x47063417: mov ecx, edi */ 2881 RECOMP_ICALL(0x470A1980u); /* 0x47063419: call 0x470a1980 */ /* not lifted */ 2882 RECOMP_FLAGS_IN(); 2883 ecx = esi + 0x5C; /* 0x4706341E: lea ecx, [esi + 0x5c] */ 2884 RECOMP_ICALL(0x47018920u); /* 0x47063421: call 0x47018920 */ /* not lifted */ 2885 RECOMP_FLAGS_IN(); 2886 ecx = edi; /* 0x47063426: mov ecx, edi */ 2887 RECOMP_ICALL(0x47018740u); /* 0x47063428: call 0x47018740 */ /* not lifted */ 2888 RECOMP_FLAGS_IN(); 2889 edi = POP32_VAL(esp); /* 0x4706342D: pop edi */ 2890 esi = POP32_VAL(esp); /* 0x4706342E: pop esi */ 2891 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706342F: ret */ 2892 RECOMP_REGS_OUT(); 2893 } 2894 2895 void sub_47063430(void) { 2896 int _fpu_cmp = 0; 2897 uint32_t _cf = 0; 2898 int _df = 1; 2899 uint32_t _flag_k = FK_NONE; 2900 uint32_t _flag_a = 0, _flag_b = 0; 2901 uint32_t _itail_tgt = 0; 2902 RECOMP_REGS_LOCALS 2903 RECOMP_ENTER(0x47063430u); 2904 2905 L_47063430: 2906 PUSH32(esp, ebx); /* 0x47063430: push ebx */ 2907 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47063431: mov bl, byte ptr [esp + 8] */ 2908 /* test LO8(ebx), 2 */ /* 0x47063435: test bl, 2 */ 2909 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 2910 _cf = 0; 2911 _flag_k = FK_NARROW(FK_TEST, 24); 2912 PUSH32(esp, esi); /* 0x47063438: push esi */ 2913 if (TEST_Z(_flag_a, _flag_b)) goto L_47063467; /* 0x47063439: je 0x47063467 */ 2914 L_4706343B: 2915 eax = MEM32(ecx + (-0x50)); /* 0x4706343B: mov eax, dword ptr [ecx - 0x50] */ 2916 esi = ecx + (-0x50); /* 0x4706343E: lea esi, [ecx - 0x50] */ 2917 PUSH32(esp, 0x47063410u); /* 0x47063441: push 0x47063410 */ 2918 PUSH32(esp, eax); /* 0x47063446: push eax */ 2919 PUSH32(esp, 0x5Cu); /* 0x47063447: push 0x5c */ 2920 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFB4u); 2921 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2922 ecx = ecx + 0xFFFFFFB4u; /* 0x47063449: add ecx, -0x4c */ 2923 _flag_k = FK_ADD; 2924 PUSH32(esp, ecx); /* 0x4706344C: push ecx */ 2925 RECOMP_ICALL(0x470A32EBu); /* 0x4706344D: call 0x470a32eb */ /* not lifted */ 2926 RECOMP_FLAGS_IN(); 2927 /* test LO8(ebx), 1 */ /* 0x47063452: test bl, 1 */ 2928 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2929 _cf = 0; 2930 _flag_k = FK_NARROW(FK_TEST, 24); 2931 if (TEST_Z(_flag_a, _flag_b)) goto L_47063493; /* 0x47063455: je 0x47063493 */ 2932 L_47063457: 2933 PUSH32(esp, esi); /* 0x47063457: push esi */ 2934 RECOMP_ICALL(0x470A32A2u); /* 0x47063458: call 0x470a32a2 */ /* not lifted */ 2935 RECOMP_FLAGS_IN(); 2936 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2937 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2938 esp = esp + 4; /* 0x4706345D: add esp, 4 */ 2939 _flag_k = FK_ADD; 2940 eax = esi; /* 0x47063460: mov eax, esi */ 2941 esi = POP32_VAL(esp); /* 0x47063462: pop esi */ 2942 ebx = POP32_VAL(esp); /* 0x47063463: pop ebx */ 2943 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47063464: ret 4 */ 2944 L_47063467: 2945 esi = ecx + (-0x4C); /* 0x47063467: lea esi, [ecx - 0x4c] */ 2946 PUSH32(esp, edi); /* 0x4706346A: push edi */ 2947 edi = esi + 0x4C; /* 0x4706346B: lea edi, [esi + 0x4c] */ 2948 ecx = edi; /* 0x4706346E: mov ecx, edi */ 2949 RECOMP_ICALL(0x470A1980u); /* 0x47063470: call 0x470a1980 */ /* not lifted */ 2950 RECOMP_FLAGS_IN(); 2951 ecx = esi + 0x5C; /* 0x47063475: lea ecx, [esi + 0x5c] */ 2952 RECOMP_ICALL(0x47018920u); /* 0x47063478: call 0x47018920 */ /* not lifted */ 2953 RECOMP_FLAGS_IN(); 2954 ecx = edi; /* 0x4706347D: mov ecx, edi */ 2955 RECOMP_ICALL(0x47018740u); /* 0x4706347F: call 0x47018740 */ /* not lifted */ 2956 RECOMP_FLAGS_IN(); 2957 /* test LO8(ebx), 1 */ /* 0x47063484: test bl, 1 */ 2958 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2959 _cf = 0; 2960 _flag_k = FK_NARROW(FK_TEST, 24); 2961 edi = POP32_VAL(esp); /* 0x47063487: pop edi */ 2962 if (TEST_Z(_flag_a, _flag_b)) goto L_47063493; /* 0x47063488: je 0x47063493 */ 2963 L_4706348A: 2964 PUSH32(esp, esi); /* 0x4706348A: push esi */ 2965 RECOMP_ICALL(0x470A32A2u); /* 0x4706348B: call 0x470a32a2 */ /* not lifted */ 2966 RECOMP_FLAGS_IN(); 2967 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2968 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2969 esp = esp + 4; /* 0x47063490: add esp, 4 */ 2970 _flag_k = FK_ADD; 2971 L_47063493: 2972 eax = esi; /* 0x47063493: mov eax, esi */ 2973 esi = POP32_VAL(esp); /* 0x47063495: pop esi */ 2974 ebx = POP32_VAL(esp); /* 0x47063496: pop ebx */ 2975 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47063497: ret 4 */ 2976 RECOMP_REGS_OUT(); 2977 } 2978 2979 void sub_470634A0(void) { 2980 int _fpu_cmp = 0; 2981 uint32_t _cf = 0; 2982 int _df = 1; 2983 uint32_t _flag_k = FK_NONE; 2984 uint32_t _flag_a = 0, _flag_b = 0; 2985 uint32_t _itail_tgt = 0; 2986 RECOMP_REGS_LOCALS 2987 RECOMP_ENTER(0x470634A0u); 2988 2989 L_470634A0: 2990 PUSH32(esp, ecx); /* 0x470634A0: push ecx */ 2991 eax = ecx; /* 0x470634A1: mov eax, ecx */ 2992 ecx = MEM32(esp + 0xC); /* 0x470634A3: mov ecx, dword ptr [esp + 0xc] */ 2993 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2994 edx = 0; /* 0x470634A7: xor edx, edx */ 2995 _cf = 0; 2996 _flag_k = FK_TEST; 2997 /* cmp ecx, edx */ /* 0x470634A9: cmp ecx, edx */ 2998 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2999 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3000 _flag_k = FK_CMP; 3001 MEM32(esp) = edx; /* 0x470634AB: mov dword ptr [esp], edx */ 3002 if (CMP_EQ(_flag_a, _flag_b)) goto L_470634DA; /* 0x470634AF: je 0x470634da */ 3003 L_470634B1: 3004 MEM32(eax) = 0x470AE700u; /* 0x470634B1: mov dword ptr [eax], 0x470ae700 */ 3005 MEM32(eax + 0x24) = 0x470AE6F8u; /* 0x470634B7: mov dword ptr [eax + 0x24], 0x470ae6f8 */ 3006 MEM32(eax + 0x18) = 0x470ACC4Cu; /* 0x470634BE: mov dword ptr [eax + 0x18], 0x470acc4c */ 3007 ecx = MEM32(eax + 0x24); /* 0x470634C5: mov ecx, dword ptr [eax + 0x24] */ 3008 MEM32(eax + 0x20) = 0x470ACEF0u; /* 0x470634C8: mov dword ptr [eax + 0x20], 0x470acef0 */ 3009 ecx = MEM32(ecx + 0x4); /* 0x470634CF: mov ecx, dword ptr [ecx + 4] */ 3010 MEM32(ecx + eax + 0x24) = 0x470ACEE0u; /* 0x470634D2: mov dword ptr [ecx + eax + 0x24], 0x470acee0 */ 3011 L_470634DA: 3012 ecx = MEM32(esp + 0x8); /* 0x470634DA: mov ecx, dword ptr [esp + 8] */ 3013 PUSH32(esp, esi); /* 0x470634DE: push esi */ 3014 esi = MEM32(ecx + 0x4); /* 0x470634DF: mov esi, dword ptr [ecx + 4] */ 3015 MEM32(eax + 0x4) = esi; /* 0x470634E2: mov dword ptr [eax + 4], esi */ 3016 esi = MEM32(ecx + 0x8); /* 0x470634E5: mov esi, dword ptr [ecx + 8] */ 3017 MEM32(eax + 0x8) = esi; /* 0x470634E8: mov dword ptr [eax + 8], esi */ 3018 esi = MEM32(ecx + 0xC); /* 0x470634EB: mov esi, dword ptr [ecx + 0xc] */ 3019 MEM32(eax + 0xC) = esi; /* 0x470634EE: mov dword ptr [eax + 0xc], esi */ 3020 ecx = MEM32(ecx + 0x10); /* 0x470634F1: mov ecx, dword ptr [ecx + 0x10] */ 3021 MEM32(eax + 0x10) = ecx; /* 0x470634F4: mov dword ptr [eax + 0x10], ecx */ 3022 ecx = MEM32(eax); /* 0x470634F7: mov ecx, dword ptr [eax] */ 3023 ecx = MEM32(ecx + 0x4); /* 0x470634F9: mov ecx, dword ptr [ecx + 4] */ 3024 MEM32(ecx + eax) = 0x470AE39Cu; /* 0x470634FC: mov dword ptr [ecx + eax], 0x470ae39c */ 3025 ecx = MEM32(eax); /* 0x47063503: mov ecx, dword ptr [eax] */ 3026 ecx = MEM32(ecx + 0x4); /* 0x47063505: mov ecx, dword ptr [ecx + 4] */ 3027 MEM32(ecx + eax + (-0x4)) = edx; /* 0x47063508: mov dword ptr [ecx + eax - 4], edx */ 3028 ecx = MEM32(eax); /* 0x4706350C: mov ecx, dword ptr [eax] */ 3029 ecx = MEM32(ecx + 0x4); /* 0x4706350E: mov ecx, dword ptr [ecx + 4] */ 3030 MEM32(ecx + eax) = 0x470AE6E8u; /* 0x47063511: mov dword ptr [ecx + eax], 0x470ae6e8 */ 3031 ecx = MEM32(eax); /* 0x47063518: mov ecx, dword ptr [eax] */ 3032 ecx = MEM32(ecx + 0x8); /* 0x4706351A: mov ecx, dword ptr [ecx + 8] */ 3033 MEM32(ecx + eax) = 0x470AE6E4u; /* 0x4706351D: mov dword ptr [ecx + eax], 0x470ae6e4 */ 3034 ecx = MEM32(eax); /* 0x47063524: mov ecx, dword ptr [eax] */ 3035 ecx = MEM32(ecx + 0x4); /* 0x47063526: mov ecx, dword ptr [ecx + 4] */ 3036 MEM32(ecx + eax + (-0x4)) = edx; /* 0x47063529: mov dword ptr [ecx + eax - 4], edx */ 3037 ecx = MEM32(eax); /* 0x4706352D: mov ecx, dword ptr [eax] */ 3038 ecx = MEM32(ecx + 0x8); /* 0x4706352F: mov ecx, dword ptr [ecx + 8] */ 3039 MEM32(ecx + eax + (-0x4)) = edx; /* 0x47063532: mov dword ptr [ecx + eax - 4], edx */ 3040 esi = POP32_VAL(esp); /* 0x47063536: pop esi */ 3041 ecx = POP32_VAL(esp); /* 0x47063537: pop ecx */ 3042 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47063538: ret 8 */ 3043 RECOMP_REGS_OUT(); 3044 } 3045 3046 void sub_47063540(void) { 3047 int _fpu_cmp = 0; 3048 uint32_t _cf = 0; 3049 int _df = 1; 3050 uint32_t _flag_k = FK_NONE; 3051 uint32_t _flag_a = 0, _flag_b = 0; 3052 uint32_t _itail_tgt = 0; 3053 RECOMP_REGS_LOCALS 3054 RECOMP_ENTER(0x47063540u); 3055 3056 L_47063540: 3057 eax = ecx; /* 0x47063540: mov eax, ecx */ 3058 ecx = MEM32(esp + 0x4); /* 0x47063542: mov ecx, dword ptr [esp + 4] */ 3059 edx = MEM32(ecx + 0x4); /* 0x47063546: mov edx, dword ptr [ecx + 4] */ 3060 MEM32(eax + 0x4) = edx; /* 0x47063549: mov dword ptr [eax + 4], edx */ 3061 edx = MEM32(ecx + 0x8); /* 0x4706354C: mov edx, dword ptr [ecx + 8] */ 3062 MEM32(eax + 0x8) = edx; /* 0x4706354F: mov dword ptr [eax + 8], edx */ 3063 edx = MEM32(ecx + 0xC); /* 0x47063552: mov edx, dword ptr [ecx + 0xc] */ 3064 MEM32(eax + 0xC) = edx; /* 0x47063555: mov dword ptr [eax + 0xc], edx */ 3065 ecx = MEM32(ecx + 0x10); /* 0x47063558: mov ecx, dword ptr [ecx + 0x10] */ 3066 MEM32(eax + 0x10) = ecx; /* 0x4706355B: mov dword ptr [eax + 0x10], ecx */ 3067 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706355E: ret 4 */ 3068 RECOMP_REGS_OUT(); 3069 } 3070 3071 void sub_47063570(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(0x47063570u); 3080 3081 L_47063570: 3082 PUSH32(esp, esi); /* 0x47063570: push esi */ 3083 esi = ecx; /* 0x47063571: mov esi, ecx */ 3084 PUSH32(esp, edi); /* 0x47063573: push edi */ 3085 edi = esi + 0x18; /* 0x47063574: lea edi, [esi + 0x18] */ 3086 ecx = edi; /* 0x47063577: mov ecx, edi */ 3087 RECOMP_ICALL(0x470A1D30u); /* 0x47063579: call 0x470a1d30 */ /* not lifted */ 3088 RECOMP_FLAGS_IN(); 3089 ecx = esi + 0x28; /* 0x4706357E: lea ecx, [esi + 0x28] */ 3090 RECOMP_ICALL(0x470188C0u); /* 0x47063581: call 0x470188c0 */ /* not lifted */ 3091 RECOMP_FLAGS_IN(); 3092 ecx = edi; /* 0x47063586: mov ecx, edi */ 3093 RECOMP_ICALL(0x47018750u); /* 0x47063588: call 0x47018750 */ /* not lifted */ 3094 RECOMP_FLAGS_IN(); 3095 edi = POP32_VAL(esp); /* 0x4706358D: pop edi */ 3096 esi = POP32_VAL(esp); /* 0x4706358E: pop esi */ 3097 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706358F: ret */ 3098 RECOMP_REGS_OUT(); 3099 } 3100 3101 void sub_47063590(void) { 3102 int _fpu_cmp = 0; 3103 uint32_t _cf = 0; 3104 int _df = 1; 3105 uint32_t _flag_k = FK_NONE; 3106 uint32_t _flag_a = 0, _flag_b = 0; 3107 uint32_t _itail_tgt = 0; 3108 RECOMP_REGS_LOCALS 3109 RECOMP_ENTER(0x47063590u); 3110 3111 L_47063590: 3112 PUSH32(esp, ebx); /* 0x47063590: push ebx */ 3113 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47063591: mov bl, byte ptr [esp + 8] */ 3114 /* test LO8(ebx), 2 */ /* 0x47063595: test bl, 2 */ 3115 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 3116 _cf = 0; 3117 _flag_k = FK_NARROW(FK_TEST, 24); 3118 PUSH32(esp, esi); /* 0x47063598: push esi */ 3119 if (TEST_Z(_flag_a, _flag_b)) goto L_470635C7; /* 0x47063599: je 0x470635c7 */ 3120 L_4706359B: 3121 eax = MEM32(ecx + (-0x1C)); /* 0x4706359B: mov eax, dword ptr [ecx - 0x1c] */ 3122 esi = ecx + (-0x1C); /* 0x4706359E: lea esi, [ecx - 0x1c] */ 3123 PUSH32(esp, 0x47063570u); /* 0x470635A1: push 0x47063570 */ 3124 PUSH32(esp, eax); /* 0x470635A6: push eax */ 3125 PUSH32(esp, 0x28u); /* 0x470635A7: push 0x28 */ 3126 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFE8u); 3127 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3128 ecx = ecx + 0xFFFFFFE8u; /* 0x470635A9: add ecx, -0x18 */ 3129 _flag_k = FK_ADD; 3130 PUSH32(esp, ecx); /* 0x470635AC: push ecx */ 3131 RECOMP_ICALL(0x470A32EBu); /* 0x470635AD: call 0x470a32eb */ /* not lifted */ 3132 RECOMP_FLAGS_IN(); 3133 /* test LO8(ebx), 1 */ /* 0x470635B2: test bl, 1 */ 3134 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3135 _cf = 0; 3136 _flag_k = FK_NARROW(FK_TEST, 24); 3137 if (TEST_Z(_flag_a, _flag_b)) goto L_470635F3; /* 0x470635B5: je 0x470635f3 */ 3138 L_470635B7: 3139 PUSH32(esp, esi); /* 0x470635B7: push esi */ 3140 RECOMP_ICALL(0x470A32A2u); /* 0x470635B8: call 0x470a32a2 */ /* not lifted */ 3141 RECOMP_FLAGS_IN(); 3142 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3143 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3144 esp = esp + 4; /* 0x470635BD: add esp, 4 */ 3145 _flag_k = FK_ADD; 3146 eax = esi; /* 0x470635C0: mov eax, esi */ 3147 esi = POP32_VAL(esp); /* 0x470635C2: pop esi */ 3148 ebx = POP32_VAL(esp); /* 0x470635C3: pop ebx */ 3149 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470635C4: ret 4 */ 3150 L_470635C7: 3151 esi = ecx + (-0x18); /* 0x470635C7: lea esi, [ecx - 0x18] */ 3152 PUSH32(esp, edi); /* 0x470635CA: push edi */ 3153 edi = esi + 0x18; /* 0x470635CB: lea edi, [esi + 0x18] */ 3154 ecx = edi; /* 0x470635CE: mov ecx, edi */ 3155 RECOMP_ICALL(0x470A1D30u); /* 0x470635D0: call 0x470a1d30 */ /* not lifted */ 3156 RECOMP_FLAGS_IN(); 3157 ecx = esi + 0x28; /* 0x470635D5: lea ecx, [esi + 0x28] */ 3158 RECOMP_ICALL(0x470188C0u); /* 0x470635D8: call 0x470188c0 */ /* not lifted */ 3159 RECOMP_FLAGS_IN(); 3160 ecx = edi; /* 0x470635DD: mov ecx, edi */ 3161 RECOMP_ICALL(0x47018750u); /* 0x470635DF: call 0x47018750 */ /* not lifted */ 3162 RECOMP_FLAGS_IN(); 3163 /* test LO8(ebx), 1 */ /* 0x470635E4: test bl, 1 */ 3164 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3165 _cf = 0; 3166 _flag_k = FK_NARROW(FK_TEST, 24); 3167 edi = POP32_VAL(esp); /* 0x470635E7: pop edi */ 3168 if (TEST_Z(_flag_a, _flag_b)) goto L_470635F3; /* 0x470635E8: je 0x470635f3 */ 3169 L_470635EA: 3170 PUSH32(esp, esi); /* 0x470635EA: push esi */ 3171 RECOMP_ICALL(0x470A32A2u); /* 0x470635EB: call 0x470a32a2 */ /* not lifted */ 3172 RECOMP_FLAGS_IN(); 3173 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3174 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3175 esp = esp + 4; /* 0x470635F0: add esp, 4 */ 3176 _flag_k = FK_ADD; 3177 L_470635F3: 3178 eax = esi; /* 0x470635F3: mov eax, esi */ 3179 esi = POP32_VAL(esp); /* 0x470635F5: pop esi */ 3180 ebx = POP32_VAL(esp); /* 0x470635F6: pop ebx */ 3181 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470635F7: ret 4 */ 3182 RECOMP_REGS_OUT(); 3183 } 3184 3185 void sub_47063600(void) { 3186 int _fpu_cmp = 0; 3187 uint32_t _cf = 0; 3188 int _df = 1; 3189 uint32_t _flag_k = FK_NONE; 3190 uint32_t _flag_a = 0, _flag_b = 0; 3191 uint32_t _itail_tgt = 0; 3192 RECOMP_REGS_LOCALS 3193 RECOMP_ENTER(0x47063600u); 3194 3195 L_47063600: 3196 PUSH32(esp, 0); /* 0x47063600: push 0 */ 3197 PUSH32(esp, 0); /* 0x47063602: push 0 */ 3198 RECOMP_ICALL(0x470A1FE0u); /* 0x47063604: call 0x470a1fe0 */ /* not lifted */ 3199 RECOMP_FLAGS_IN(); 3200 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47063609: ret */ 3201 RECOMP_REGS_OUT(); 3202 } 3203 3204 void sub_47063610(void) { 3205 int _fpu_cmp = 0; 3206 uint32_t _cf = 0; 3207 int _df = 1; 3208 uint32_t _flag_k = FK_NONE; 3209 uint32_t _flag_a = 0, _flag_b = 0; 3210 uint32_t _itail_tgt = 0; 3211 RECOMP_REGS_LOCALS 3212 RECOMP_ENTER(0x47063610u); 3213 3214 L_47063610: 3215 PUSH32(esp, ecx); /* 0x47063610: push ecx */ 3216 eax = ecx; /* 0x47063611: mov eax, ecx */ 3217 ecx = MEM32(esp + 0xC); /* 0x47063613: mov ecx, dword ptr [esp + 0xc] */ 3218 /* test ecx, ecx */ /* 0x47063617: test ecx, ecx */ 3219 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3220 _cf = 0; 3221 _flag_k = FK_TEST; 3222 MEM32(esp) = 0; /* 0x47063619: mov dword ptr [esp], 0 */ 3223 if (TEST_Z(_flag_a, _flag_b)) goto L_47063631; /* 0x47063621: je 0x47063631 */ 3224 L_47063623: 3225 MEM32(eax + 0x14) = 0x470AE740u; /* 0x47063623: mov dword ptr [eax + 0x14], 0x470ae740 */ 3226 MEM32(eax + 0x3C) = 0x470ACC18u; /* 0x4706362A: mov dword ptr [eax + 0x3c], 0x470acc18 */ 3227 L_47063631: 3228 edx = MEM32(esp + 0x8); /* 0x47063631: mov edx, dword ptr [esp + 8] */ 3229 PUSH32(esp, esi); /* 0x47063635: push esi */ 3230 PUSH32(esp, edi); /* 0x47063636: push edi */ 3231 esi = edx; /* 0x47063637: mov esi, edx */ 3232 ecx = 5; /* 0x47063639: mov ecx, 5 */ 3233 edi = eax; /* 0x4706363E: mov edi, eax */ 3234 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47063640: 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; } 3235 ecx = MEM32(edx + 0x18); /* 0x47063642: mov ecx, dword ptr [edx + 0x18] */ 3236 MEM32(eax + 0x18) = ecx; /* 0x47063645: mov dword ptr [eax + 0x18], ecx */ 3237 ecx = MEM32(edx + 0x1C); /* 0x47063648: mov ecx, dword ptr [edx + 0x1c] */ 3238 MEM32(eax + 0x1C) = ecx; /* 0x4706364B: mov dword ptr [eax + 0x1c], ecx */ 3239 ecx = MEM32(edx + 0x20); /* 0x4706364E: mov ecx, dword ptr [edx + 0x20] */ 3240 MEM32(eax + 0x20) = ecx; /* 0x47063651: mov dword ptr [eax + 0x20], ecx */ 3241 ecx = MEM32(edx + 0x24); /* 0x47063654: mov ecx, dword ptr [edx + 0x24] */ 3242 MEM32(eax + 0x24) = ecx; /* 0x47063657: mov dword ptr [eax + 0x24], ecx */ 3243 ecx = MEM32(edx + 0x28); /* 0x4706365A: mov ecx, dword ptr [edx + 0x28] */ 3244 MEM32(eax + 0x28) = ecx; /* 0x4706365D: mov dword ptr [eax + 0x28], ecx */ 3245 ecx = MEM32(edx + 0x2C); /* 0x47063660: mov ecx, dword ptr [edx + 0x2c] */ 3246 MEM32(eax + 0x2C) = ecx; /* 0x47063663: mov dword ptr [eax + 0x2c], ecx */ 3247 ecx = MEM32(eax + 0x14); /* 0x47063666: mov ecx, dword ptr [eax + 0x14] */ 3248 ecx = MEM32(ecx + 0x4); /* 0x47063669: mov ecx, dword ptr [ecx + 4] */ 3249 MEM32(ecx + eax + 0x14) = 0x470AE360u; /* 0x4706366C: mov dword ptr [ecx + eax + 0x14], 0x470ae360 */ 3250 ecx = MEM32(eax + 0x14); /* 0x47063674: mov ecx, dword ptr [eax + 0x14] */ 3251 ecx = MEM32(ecx + 0x4); /* 0x47063677: mov ecx, dword ptr [ecx + 4] */ 3252 MEM32(ecx + eax + 0x10) = 0; /* 0x4706367A: mov dword ptr [ecx + eax + 0x10], 0 */ 3253 ecx = MEM32(edx + 0x30); /* 0x47063682: mov ecx, dword ptr [edx + 0x30] */ 3254 MEM32(eax + 0x30) = ecx; /* 0x47063685: mov dword ptr [eax + 0x30], ecx */ 3255 edx = MEM32(edx + 0x34); /* 0x47063688: mov edx, dword ptr [edx + 0x34] */ 3256 MEM32(eax + 0x34) = edx; /* 0x4706368B: mov dword ptr [eax + 0x34], edx */ 3257 ecx = MEM32(eax + 0x14); /* 0x4706368E: mov ecx, dword ptr [eax + 0x14] */ 3258 edx = MEM32(ecx + 0x4); /* 0x47063691: mov edx, dword ptr [ecx + 4] */ 3259 MEM32(edx + eax + 0x14) = 0x470AE70Cu; /* 0x47063694: mov dword ptr [edx + eax + 0x14], 0x470ae70c */ 3260 ecx = MEM32(eax + 0x14); /* 0x4706369C: mov ecx, dword ptr [eax + 0x14] */ 3261 edx = MEM32(ecx + 0x4); /* 0x4706369F: mov edx, dword ptr [ecx + 4] */ 3262 edi = POP32_VAL(esp); /* 0x470636A2: pop edi */ 3263 MEM32(edx + eax + 0x10) = 0; /* 0x470636A3: mov dword ptr [edx + eax + 0x10], 0 */ 3264 esi = POP32_VAL(esp); /* 0x470636AB: pop esi */ 3265 ecx = POP32_VAL(esp); /* 0x470636AC: pop ecx */ 3266 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470636AD: ret 8 */ 3267 RECOMP_REGS_OUT(); 3268 } 3269 3270 void sub_470636B0(void) { 3271 int _fpu_cmp = 0; 3272 uint32_t _cf = 0; 3273 int _df = 1; 3274 uint32_t _flag_k = FK_NONE; 3275 uint32_t _flag_a = 0, _flag_b = 0; 3276 uint32_t _itail_tgt = 0; 3277 RECOMP_REGS_LOCALS 3278 RECOMP_ENTER(0x470636B0u); 3279 3280 L_470636B0: 3281 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFF8u); 3282 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3283 ecx = ecx + 0xFFFFFFF8u; /* 0x470636B0: add ecx, -8 */ 3284 _flag_k = FK_ADD; 3285 goto L_4709FC00; /* 0x470636B3: jmp 0x4709fc00 */ 3286 L_4709FC00: 3287 eax = MEM32(ecx + (-0x20)); /* 0x4709FC00: mov eax, dword ptr [ecx - 0x20] */ 3288 edx = MEM32(eax + 0x4); /* 0x4709FC03: mov edx, dword ptr [eax + 4] */ 3289 MEM32(edx + ecx + (-0x20)) = 0x470AE360u; /* 0x4709FC06: mov dword ptr [edx + ecx - 0x20], 0x470ae360 */ 3290 eax = MEM32(ecx + (-0x20)); /* 0x4709FC0E: mov eax, dword ptr [ecx - 0x20] */ 3291 eax = MEM32(eax + 0x4); /* 0x4709FC11: mov eax, dword ptr [eax + 4] */ 3292 edx = eax + (-0x20); /* 0x4709FC14: lea edx, [eax - 0x20] */ 3293 MEM32(eax + ecx + (-0x24)) = edx; /* 0x4709FC17: mov dword ptr [eax + ecx - 0x24], edx */ 3294 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FC1B: ret */ 3295 RECOMP_REGS_OUT(); 3296 } 3297 3298 void sub_470636C0(void) { 3299 int _fpu_cmp = 0; 3300 uint32_t _cf = 0; 3301 int _df = 1; 3302 uint32_t _flag_k = FK_NONE; 3303 uint32_t _flag_a = 0, _flag_b = 0; 3304 uint32_t _itail_tgt = 0; 3305 RECOMP_REGS_LOCALS 3306 RECOMP_ENTER(0x470636C0u); 3307 3308 L_470636C0: 3309 PUSH32(esp, esi); /* 0x470636C0: push esi */ 3310 esi = ecx + 0x3C; /* 0x470636C1: lea esi, [ecx + 0x3c] */ 3311 ecx = esi; /* 0x470636C4: mov ecx, esi */ 3312 RECOMP_ICALL(0x470636B0u); /* 0x470636C6: call 0x470636b0 */ /* not lifted */ 3313 RECOMP_FLAGS_IN(); 3314 ecx = esi; /* 0x470636CB: mov ecx, esi */ 3315 RECOMP_ICALL(0x47018740u); /* 0x470636CD: call 0x47018740 */ /* not lifted */ 3316 RECOMP_FLAGS_IN(); 3317 esi = POP32_VAL(esp); /* 0x470636D2: pop esi */ 3318 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470636D3: ret */ 3319 RECOMP_REGS_OUT(); 3320 } 3321 3322 void sub_470636E0(void) { 3323 int _fpu_cmp = 0; 3324 uint32_t _cf = 0; 3325 int _df = 1; 3326 uint32_t _flag_k = FK_NONE; 3327 uint32_t _flag_a = 0, _flag_b = 0; 3328 uint32_t _itail_tgt = 0; 3329 RECOMP_REGS_LOCALS 3330 RECOMP_ENTER(0x470636E0u); 3331 3332 L_470636E0: 3333 PUSH32(esp, ebx); /* 0x470636E0: push ebx */ 3334 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x470636E1: mov bl, byte ptr [esp + 8] */ 3335 /* test LO8(ebx), 2 */ /* 0x470636E5: test bl, 2 */ 3336 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 3337 _cf = 0; 3338 _flag_k = FK_NARROW(FK_TEST, 24); 3339 PUSH32(esp, esi); /* 0x470636E8: push esi */ 3340 if (TEST_Z(_flag_a, _flag_b)) goto L_47063717; /* 0x470636E9: je 0x47063717 */ 3341 L_470636EB: 3342 eax = MEM32(ecx + (-0x40)); /* 0x470636EB: mov eax, dword ptr [ecx - 0x40] */ 3343 esi = ecx + (-0x40); /* 0x470636EE: lea esi, [ecx - 0x40] */ 3344 PUSH32(esp, 0x470636C0u); /* 0x470636F1: push 0x470636c0 */ 3345 PUSH32(esp, eax); /* 0x470636F6: push eax */ 3346 PUSH32(esp, 0x40u); /* 0x470636F7: push 0x40 */ 3347 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFC4u); 3348 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3349 ecx = ecx + 0xFFFFFFC4u; /* 0x470636F9: add ecx, -0x3c */ 3350 _flag_k = FK_ADD; 3351 PUSH32(esp, ecx); /* 0x470636FC: push ecx */ 3352 RECOMP_ICALL(0x470A32EBu); /* 0x470636FD: call 0x470a32eb */ /* not lifted */ 3353 RECOMP_FLAGS_IN(); 3354 /* test LO8(ebx), 1 */ /* 0x47063702: test bl, 1 */ 3355 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3356 _cf = 0; 3357 _flag_k = FK_NARROW(FK_TEST, 24); 3358 if (TEST_Z(_flag_a, _flag_b)) goto L_47063710; /* 0x47063705: je 0x47063710 */ 3359 L_47063707: 3360 PUSH32(esp, esi); /* 0x47063707: push esi */ 3361 RECOMP_ICALL(0x470A32A2u); /* 0x47063708: call 0x470a32a2 */ /* not lifted */ 3362 RECOMP_FLAGS_IN(); 3363 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3364 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3365 esp = esp + 4; /* 0x4706370D: add esp, 4 */ 3366 _flag_k = FK_ADD; 3367 L_47063710: 3368 eax = esi; /* 0x47063710: mov eax, esi */ 3369 esi = POP32_VAL(esp); /* 0x47063712: pop esi */ 3370 ebx = POP32_VAL(esp); /* 0x47063713: pop ebx */ 3371 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47063714: ret 4 */ 3372 L_47063717: 3373 PUSH32(esp, edi); /* 0x47063717: push edi */ 3374 edi = ecx + (-0x3C); /* 0x47063718: lea edi, [ecx - 0x3c] */ 3375 esi = edi + 0x3C; /* 0x4706371B: lea esi, [edi + 0x3c] */ 3376 ecx = esi; /* 0x4706371E: mov ecx, esi */ 3377 RECOMP_ICALL(0x470636B0u); /* 0x47063720: call 0x470636b0 */ /* not lifted */ 3378 RECOMP_FLAGS_IN(); 3379 ecx = esi; /* 0x47063725: mov ecx, esi */ 3380 RECOMP_ICALL(0x47018740u); /* 0x47063727: call 0x47018740 */ /* not lifted */ 3381 RECOMP_FLAGS_IN(); 3382 /* test LO8(ebx), 1 */ /* 0x4706372C: test bl, 1 */ 3383 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3384 _cf = 0; 3385 _flag_k = FK_NARROW(FK_TEST, 24); 3386 if (TEST_Z(_flag_a, _flag_b)) goto L_4706373A; /* 0x4706372F: je 0x4706373a */ 3387 L_47063731: 3388 PUSH32(esp, edi); /* 0x47063731: push edi */ 3389 RECOMP_ICALL(0x470A32A2u); /* 0x47063732: call 0x470a32a2 */ /* not lifted */ 3390 RECOMP_FLAGS_IN(); 3391 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3392 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3393 esp = esp + 4; /* 0x47063737: add esp, 4 */ 3394 _flag_k = FK_ADD; 3395 L_4706373A: 3396 eax = edi; /* 0x4706373A: mov eax, edi */ 3397 edi = POP32_VAL(esp); /* 0x4706373C: pop edi */ 3398 esi = POP32_VAL(esp); /* 0x4706373D: pop esi */ 3399 ebx = POP32_VAL(esp); /* 0x4706373E: pop ebx */ 3400 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706373F: ret 4 */ 3401 RECOMP_REGS_OUT(); 3402 } 3403 3404 void sub_47063750(void) { 3405 int _fpu_cmp = 0; 3406 uint32_t _cf = 0; 3407 int _df = 1; 3408 uint32_t _flag_k = FK_NONE; 3409 uint32_t _flag_a = 0, _flag_b = 0; 3410 uint32_t _itail_tgt = 0; 3411 RECOMP_REGS_LOCALS 3412 RECOMP_ENTER(0x47063750u); 3413 3414 L_47063750: 3415 PUSH32(esp, 0xFFFFFFFFu); /* 0x47063750: push -1 */ 3416 PUSH32(esp, 0x470A81A4u); /* 0x47063752: push 0x470a81a4 */ 3417 eax = MEM32(FS_BASE + (0)); /* 0x47063757: mov eax, dword ptr fs:[0] */ 3418 PUSH32(esp, eax); /* 0x4706375D: push eax */ 3419 MEM32(FS_BASE + (0)) = esp; /* 0x4706375E: mov dword ptr fs:[0], esp */ 3420 PUSH32(esp, ecx); /* 0x47063765: push ecx */ 3421 PUSH32(esp, ebx); /* 0x47063766: push ebx */ 3422 ebx = MEM32(esp + 0x18); /* 0x47063767: mov ebx, dword ptr [esp + 0x18] */ 3423 PUSH32(esp, esi); /* 0x4706376B: push esi */ 3424 PUSH32(esp, edi); /* 0x4706376C: push edi */ 3425 eax = ebx + 0x10; /* 0x4706376D: lea eax, [ebx + 0x10] */ 3426 esi = ecx; /* 0x47063770: mov esi, ecx */ 3427 PUSH32(esp, eax); /* 0x47063772: push eax */ 3428 MEM32(esp + 0x10) = esi; /* 0x47063773: mov dword ptr [esp + 0x10], esi */ 3429 RECOMP_ICALL(0x47089210u); /* 0x47063777: call 0x47089210 */ /* not lifted */ 3430 RECOMP_FLAGS_IN(); 3431 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3432 edi = 0; /* 0x4706377C: xor edi, edi */ 3433 _cf = 0; 3434 _flag_k = FK_TEST; 3435 PUSH32(esp, 0x34u); /* 0x4706377E: push 0x34 */ 3436 MEM32(esp + 0x1C) = edi; /* 0x47063780: mov dword ptr [esp + 0x1c], edi */ 3437 MEM32(esi + 0x3C) = edi; /* 0x47063784: mov dword ptr [esi + 0x3c], edi */ 3438 MEM32(esi + 0x40) = edi; /* 0x47063787: mov dword ptr [esi + 0x40], edi */ 3439 MEM32(esi + 0x44) = edi; /* 0x4706378A: mov dword ptr [esi + 0x44], edi */ 3440 MEM32(esi + 0x48) = edi; /* 0x4706378D: mov dword ptr [esi + 0x48], edi */ 3441 MEM32(esi) = 0x470AE86Cu; /* 0x47063790: mov dword ptr [esi], 0x470ae86c */ 3442 MEM32(esi + 0xC) = 0x470AE85Cu; /* 0x47063796: mov dword ptr [esi + 0xc], 0x470ae85c */ 3443 RECOMP_ICALL(0x470A33F2u); /* 0x4706379D: call 0x470a33f2 */ /* not lifted */ 3444 RECOMP_FLAGS_IN(); 3445 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3446 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3447 esp = esp + 4; /* 0x470637A2: add esp, 4 */ 3448 _flag_k = FK_ADD; 3449 /* cmp eax, edi */ /* 0x470637A5: cmp eax, edi */ 3450 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3451 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3452 _flag_k = FK_CMP; 3453 if (CMP_EQ(_flag_a, _flag_b)) goto L_47063820; /* 0x470637A7: je 0x47063820 */ 3454 L_470637A9: 3455 ecx = eax + 0x28; /* 0x470637A9: lea ecx, [eax + 0x28] */ 3456 MEM32(eax + 0x2C) = ecx; /* 0x470637AC: mov dword ptr [eax + 0x2c], ecx */ 3457 MEM32(eax + 0x30) = ecx; /* 0x470637AF: mov dword ptr [eax + 0x30], ecx */ 3458 ecx = 0x4000u; /* 0x470637B2: mov ecx, 0x4000 */ 3459 MEM32(eax) = 0x470AE7BCu; /* 0x470637B7: mov dword ptr [eax], 0x470ae7bc */ 3460 MEM32(eax + 0x10) = ecx; /* 0x470637BD: mov dword ptr [eax + 0x10], ecx */ 3461 MEM32(eax + 0xC) = ecx; /* 0x470637C0: mov dword ptr [eax + 0xc], ecx */ 3462 MEM32(eax + 0x20) = edi; /* 0x470637C3: mov dword ptr [eax + 0x20], edi */ 3463 MEM32(eax + 0x14) = edi; /* 0x470637C6: mov dword ptr [eax + 0x14], edi */ 3464 MEM32(eax + 0x18) = edi; /* 0x470637C9: mov dword ptr [eax + 0x18], edi */ 3465 MEM32(eax + 0x1C) = edi; /* 0x470637CC: mov dword ptr [eax + 0x1c], edi */ 3466 MEM32(eax + 0x8) = edi; /* 0x470637CF: mov dword ptr [eax + 8], edi */ 3467 MEM32(eax + 0x4) = edi; /* 0x470637D2: mov dword ptr [eax + 4], edi */ 3468 MEM32(eax + 0x24) = edi; /* 0x470637D5: mov dword ptr [eax + 0x24], edi */ 3469 MEM32(esi + 0x40) = 1; /* 0x470637D8: mov dword ptr [esi + 0x40], 1 */ 3470 MEM32(esi + 0x3C) = eax; /* 0x470637DF: mov dword ptr [esi + 0x3c], eax */ 3471 L_470637E2: 3472 PUSH32(esp, edi); /* 0x470637E2: push edi */ 3473 PUSH32(esp, edi); /* 0x470637E3: push edi */ 3474 PUSH32(esp, 1); /* 0x470637E4: push 1 */ 3475 PUSH32(esp, edi); /* 0x470637E6: push edi */ 3476 ecx = esi + 0x4C; /* 0x470637E7: lea ecx, [esi + 0x4c] */ 3477 MEM32(esp + 0x28) = 6; /* 0x470637EA: mov dword ptr [esp + 0x28], 6 */ 3478 RECOMP_ICALL(0x47086DB0u); /* 0x470637F2: call 0x47086db0 */ /* not lifted */ 3479 RECOMP_FLAGS_IN(); 3480 ecx = MEM32(esp + 0x10); /* 0x470637F7: mov ecx, dword ptr [esp + 0x10] */ 3481 MEM32(esi + 0x58) = edi; /* 0x470637FB: mov dword ptr [esi + 0x58], edi */ 3482 MEM32(esi + 0x54) = ebx; /* 0x470637FE: mov dword ptr [esi + 0x54], ebx */ 3483 edi = POP32_VAL(esp); /* 0x47063801: pop edi */ 3484 MEM32(esi) = 0x470AE758u; /* 0x47063802: mov dword ptr [esi], 0x470ae758 */ 3485 MEM32(esi + 0xC) = 0x470AE748u; /* 0x47063808: mov dword ptr [esi + 0xc], 0x470ae748 */ 3486 eax = esi; /* 0x4706380F: mov eax, esi */ 3487 esi = POP32_VAL(esp); /* 0x47063811: pop esi */ 3488 ebx = POP32_VAL(esp); /* 0x47063812: pop ebx */ 3489 MEM32(FS_BASE + (0)) = ecx; /* 0x47063813: mov dword ptr fs:[0], ecx */ 3490 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3491 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3492 esp = esp + 0x10u; /* 0x4706381A: add esp, 0x10 */ 3493 _flag_k = FK_ADD; 3494 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706381D: ret 4 */ 3495 L_47063820: 3496 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47063820: call dword ptr [0x470ac3c8] */ 3497 RECOMP_FLAGS_IN(); 3498 MEM32(eax) = 0xCu; /* 0x47063826: mov dword ptr [eax], 0xc */ 3499 RECOMP_BACKEDGE(); 3500 goto L_470637E2; /* 0x4706382C: jmp 0x470637e2 */ 3501 { RECOMP_REGS_OUT(); return; } /* end of function */ 3502 RECOMP_REGS_OUT(); 3503 } 3504 3505 void sub_47063830(void) { 3506 int _fpu_cmp = 0; 3507 uint32_t _cf = 0; 3508 int _df = 1; 3509 uint32_t _flag_k = FK_NONE; 3510 uint32_t _flag_a = 0, _flag_b = 0; 3511 uint32_t _itail_tgt = 0; 3512 RECOMP_REGS_LOCALS 3513 RECOMP_ENTER(0x47063830u); 3514 3515 L_47063830: 3516 PUSH32(esp, ebx); /* 0x47063830: push ebx */ 3517 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47063831: mov bl, byte ptr [esp + 8] */ 3518 /* test LO8(ebx), 2 */ /* 0x47063835: test bl, 2 */ 3519 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 3520 _cf = 0; 3521 _flag_k = FK_NARROW(FK_TEST, 24); 3522 PUSH32(esp, esi); /* 0x47063838: push esi */ 3523 esi = ecx; /* 0x47063839: mov esi, ecx */ 3524 if (TEST_Z(_flag_a, _flag_b)) goto L_47063868; /* 0x4706383B: je 0x47063868 */ 3525 L_4706383D: 3526 eax = MEM32(esi + (-0x4)); /* 0x4706383D: mov eax, dword ptr [esi - 4] */ 3527 PUSH32(esp, edi); /* 0x47063840: push edi */ 3528 PUSH32(esp, 0x47063890u); /* 0x47063841: push 0x47063890 */ 3529 edi = esi + (-0x4); /* 0x47063846: lea edi, [esi - 4] */ 3530 PUSH32(esp, eax); /* 0x47063849: push eax */ 3531 PUSH32(esp, 0x5Cu); /* 0x4706384A: push 0x5c */ 3532 PUSH32(esp, esi); /* 0x4706384C: push esi */ 3533 RECOMP_ICALL(0x470A32EBu); /* 0x4706384D: call 0x470a32eb */ /* not lifted */ 3534 RECOMP_FLAGS_IN(); 3535 /* test LO8(ebx), 1 */ /* 0x47063852: test bl, 1 */ 3536 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3537 _cf = 0; 3538 _flag_k = FK_NARROW(FK_TEST, 24); 3539 if (TEST_Z(_flag_a, _flag_b)) goto L_47063860; /* 0x47063855: je 0x47063860 */ 3540 L_47063857: 3541 PUSH32(esp, edi); /* 0x47063857: push edi */ 3542 RECOMP_ICALL(0x470A32A2u); /* 0x47063858: call 0x470a32a2 */ /* not lifted */ 3543 RECOMP_FLAGS_IN(); 3544 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3545 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3546 esp = esp + 4; /* 0x4706385D: add esp, 4 */ 3547 _flag_k = FK_ADD; 3548 L_47063860: 3549 eax = edi; /* 0x47063860: mov eax, edi */ 3550 edi = POP32_VAL(esp); /* 0x47063862: pop edi */ 3551 esi = POP32_VAL(esp); /* 0x47063863: pop esi */ 3552 ebx = POP32_VAL(esp); /* 0x47063864: pop ebx */ 3553 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47063865: ret 4 */ 3554 L_47063868: 3555 ecx = esi; /* 0x47063868: mov ecx, esi */ 3556 RECOMP_ICALL(0x47063890u); /* 0x4706386A: call 0x47063890 */ /* not lifted */ 3557 RECOMP_FLAGS_IN(); 3558 /* test LO8(ebx), 1 */ /* 0x4706386F: test bl, 1 */ 3559 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3560 _cf = 0; 3561 _flag_k = FK_NARROW(FK_TEST, 24); 3562 if (TEST_Z(_flag_a, _flag_b)) goto L_4706387D; /* 0x47063872: je 0x4706387d */ 3563 L_47063874: 3564 PUSH32(esp, esi); /* 0x47063874: push esi */ 3565 RECOMP_ICALL(0x470A32A2u); /* 0x47063875: call 0x470a32a2 */ /* not lifted */ 3566 RECOMP_FLAGS_IN(); 3567 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3568 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3569 esp = esp + 4; /* 0x4706387A: add esp, 4 */ 3570 _flag_k = FK_ADD; 3571 L_4706387D: 3572 eax = esi; /* 0x4706387D: mov eax, esi */ 3573 esi = POP32_VAL(esp); /* 0x4706387F: pop esi */ 3574 ebx = POP32_VAL(esp); /* 0x47063880: pop ebx */ 3575 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47063881: ret 4 */ 3576 RECOMP_REGS_OUT(); 3577 } 3578 3579 void sub_47063890(void) { 3580 int _fpu_cmp = 0; 3581 uint32_t _cf = 0; 3582 int _df = 1; 3583 uint32_t _flag_k = FK_NONE; 3584 uint32_t _flag_a = 0, _flag_b = 0; 3585 uint32_t _itail_tgt = 0; 3586 RECOMP_REGS_LOCALS 3587 RECOMP_ENTER(0x47063890u); 3588 3589 L_47063890: 3590 PUSH32(esp, 0xFFFFFFFFu); /* 0x47063890: push -1 */ 3591 PUSH32(esp, 0x470A81CBu); /* 0x47063892: push 0x470a81cb */ 3592 eax = MEM32(FS_BASE + (0)); /* 0x47063897: mov eax, dword ptr fs:[0] */ 3593 PUSH32(esp, eax); /* 0x4706389D: push eax */ 3594 MEM32(FS_BASE + (0)) = esp; /* 0x4706389E: mov dword ptr fs:[0], esp */ 3595 PUSH32(esp, ecx); /* 0x470638A5: push ecx */ 3596 PUSH32(esp, esi); /* 0x470638A6: push esi */ 3597 esi = ecx; /* 0x470638A7: mov esi, ecx */ 3598 PUSH32(esp, edi); /* 0x470638A9: push edi */ 3599 MEM32(esp + 0x8) = esi; /* 0x470638AA: mov dword ptr [esp + 8], esi */ 3600 MEM32(esi) = 0x470AE758u; /* 0x470638AE: mov dword ptr [esi], 0x470ae758 */ 3601 MEM32(esi + 0xC) = 0x470AE748u; /* 0x470638B4: mov dword ptr [esi + 0xc], 0x470ae748 */ 3602 edi = esi + 0x4C; /* 0x470638BB: lea edi, [esi + 0x4c] */ 3603 ecx = edi; /* 0x470638BE: mov ecx, edi */ 3604 MEM32(esp + 0x14) = 1; /* 0x470638C0: mov dword ptr [esp + 0x14], 1 */ 3605 MEM32(esi + 0x58) = 1; /* 0x470638C8: mov dword ptr [esi + 0x58], 1 */ 3606 RECOMP_ICALL(0x47086AE0u); /* 0x470638CF: call 0x47086ae0 */ /* not lifted */ 3607 RECOMP_FLAGS_IN(); 3608 ecx = MEM32(esi + 0x14); /* 0x470638D4: mov ecx, dword ptr [esi + 0x14] */ 3609 PUSH32(esp, 0); /* 0x470638D7: push 0 */ 3610 PUSH32(esp, 0); /* 0x470638D9: push 0 */ 3611 RECOMP_ICALL(0x4708D320u); /* 0x470638DB: call 0x4708d320 */ /* not lifted */ 3612 RECOMP_FLAGS_IN(); 3613 ecx = edi; /* 0x470638E0: mov ecx, edi */ 3614 MEM8(esp + 0x14) = (uint8_t)(0); /* 0x470638E2: mov byte ptr [esp + 0x14], 0 */ 3615 RECOMP_ICALL(0x47086020u); /* 0x470638E7: call 0x47086020 */ /* not lifted */ 3616 RECOMP_FLAGS_IN(); 3617 MEM32(esi) = 0x470AE86Cu; /* 0x470638EC: mov dword ptr [esi], 0x470ae86c */ 3618 MEM32(esi + 0xC) = 0x470AE85Cu; /* 0x470638F2: mov dword ptr [esi + 0xc], 0x470ae85c */ 3619 eax = MEM32(esi + 0x40); /* 0x470638F9: mov eax, dword ptr [esi + 0x40] */ 3620 /* test eax, eax */ /* 0x470638FC: test eax, eax */ 3621 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3622 _cf = 0; 3623 _flag_k = FK_TEST; 3624 MEM32(esp + 0x14) = 2; /* 0x470638FE: mov dword ptr [esp + 0x14], 2 */ 3625 if (TEST_Z(_flag_a, _flag_b)) goto L_47063916; /* 0x47063906: je 0x47063916 */ 3626 L_47063908: 3627 ecx = MEM32(esi + 0x3C); /* 0x47063908: mov ecx, dword ptr [esi + 0x3c] */ 3628 /* test ecx, ecx */ /* 0x4706390B: test ecx, ecx */ 3629 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3630 _cf = 0; 3631 _flag_k = FK_TEST; 3632 if (TEST_Z(_flag_a, _flag_b)) goto L_47063916; /* 0x4706390D: je 0x47063916 */ 3633 L_4706390F: 3634 eax = MEM32(ecx); /* 0x4706390F: mov eax, dword ptr [ecx] */ 3635 PUSH32(esp, 1); /* 0x47063911: push 1 */ 3636 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x47063913: call dword ptr [eax + 4] */ 3637 RECOMP_FLAGS_IN(); 3638 L_47063916: 3639 ecx = esi; /* 0x47063916: mov ecx, esi */ 3640 MEM32(esi + 0x40) = 0; /* 0x47063918: mov dword ptr [esi + 0x40], 0 */ 3641 MEM32(esp + 0x14) = 0xFFFFFFFFu; /* 0x4706391F: mov dword ptr [esp + 0x14], 0xffffffff */ 3642 RECOMP_ICALL(0x47089150u); /* 0x47063927: call 0x47089150 */ /* not lifted */ 3643 RECOMP_FLAGS_IN(); 3644 ecx = MEM32(esp + 0xC); /* 0x4706392C: mov ecx, dword ptr [esp + 0xc] */ 3645 edi = POP32_VAL(esp); /* 0x47063930: pop edi */ 3646 esi = POP32_VAL(esp); /* 0x47063931: pop esi */ 3647 MEM32(FS_BASE + (0)) = ecx; /* 0x47063932: mov dword ptr fs:[0], ecx */ 3648 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3649 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3650 esp = esp + 0x10u; /* 0x47063939: add esp, 0x10 */ 3651 _flag_k = FK_ADD; 3652 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706393C: ret */ 3653 RECOMP_REGS_OUT(); 3654 } 3655 3656 void sub_47063940(void) { 3657 int _fpu_cmp = 0; 3658 uint32_t _cf = 0; 3659 int _df = 1; 3660 uint32_t _flag_k = FK_NONE; 3661 uint32_t _flag_a = 0, _flag_b = 0; 3662 uint32_t _itail_tgt = 0; 3663 RECOMP_REGS_LOCALS 3664 RECOMP_ENTER(0x47063940u); 3665 3666 L_47063940: 3667 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 3668 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3669 esp = esp - 0x20u; /* 0x47063940: sub esp, 0x20 */ 3670 _flag_k = FK_CMP; 3671 PUSH32(esp, ebx); /* 0x47063943: push ebx */ 3672 PUSH32(esp, esi); /* 0x47063944: push esi */ 3673 PUSH32(esp, edi); /* 0x47063945: push edi */ 3674 edi = ecx; /* 0x47063946: mov edi, ecx */ 3675 eax = MEM32(edi + 0x58); /* 0x47063948: mov eax, dword ptr [edi + 0x58] */ 3676 /* test eax, eax */ /* 0x4706394B: test eax, eax */ 3677 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3678 _cf = 0; 3679 _flag_k = FK_TEST; 3680 MEM32(esp + 0x14) = 0; /* 0x4706394D: mov dword ptr [esp + 0x14], 0 */ 3681 MEM32(esp + 0x18) = 0; /* 0x47063955: mov dword ptr [esp + 0x18], 0 */ 3682 if (TEST_NZ(_flag_a, _flag_b)) goto L_47063A28; /* 0x4706395D: jne 0x47063a28 */ 3683 L_47063963: 3684 ebx = MEM32(0x470AC3C8); /* 0x47063963: mov ebx, dword ptr [0x470ac3c8] */ 3685 L_47063969: 3686 eax = MEM32(edi + 0x54); /* 0x47063969: mov eax, dword ptr [edi + 0x54] */ 3687 ecx = MEM32(eax + 0xC4); /* 0x4706396C: mov ecx, dword ptr [eax + 0xc4] */ 3688 edx = MEM32(ecx); /* 0x47063972: mov edx, dword ptr [ecx] */ 3689 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47063974: call dword ptr [edx + 4] */ 3690 RECOMP_FLAGS_IN(); 3691 /* test eax, eax */ /* 0x47063977: test eax, eax */ 3692 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3693 _cf = 0; 3694 _flag_k = FK_TEST; 3695 if (TEST_NZ(_flag_a, _flag_b)) goto L_470639A5; /* 0x47063979: jne 0x470639a5 */ 3696 L_4706397B: 3697 eax = MEM32(edi + 0x54); /* 0x4706397B: mov eax, dword ptr [edi + 0x54] */ 3698 ecx = MEM32(eax + 0xC4); /* 0x4706397E: mov ecx, dword ptr [eax + 0xc4] */ 3699 edx = MEM32(ecx); /* 0x47063984: mov edx, dword ptr [ecx] */ 3700 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x47063986: call dword ptr [edx + 8] */ 3701 RECOMP_FLAGS_IN(); 3702 ecx = MEM32(eax); /* 0x47063989: mov ecx, dword ptr [eax] */ 3703 MEM32(esp + 0x14) = ecx; /* 0x4706398B: mov dword ptr [esp + 0x14], ecx */ 3704 edx = MEM32(eax + 0x4); /* 0x4706398F: mov edx, dword ptr [eax + 4] */ 3705 eax = esp + 0x14; /* 0x47063992: lea eax, [esp + 0x14] */ 3706 PUSH32(esp, eax); /* 0x47063996: push eax */ 3707 ecx = edi + 0x4C; /* 0x47063997: lea ecx, [edi + 0x4c] */ 3708 MEM32(esp + 0x1C) = edx; /* 0x4706399A: mov dword ptr [esp + 0x1c], edx */ 3709 RECOMP_ICALL(0x470869D0u); /* 0x4706399E: call 0x470869d0 */ /* not lifted */ 3710 RECOMP_FLAGS_IN(); 3711 goto L_470639AD; /* 0x470639A3: jmp 0x470639ad */ 3712 L_470639A5: 3713 ecx = edi + 0x4C; /* 0x470639A5: lea ecx, [edi + 0x4c] */ 3714 RECOMP_ICALL(0x470869A0u); /* 0x470639A8: call 0x470869a0 */ /* not lifted */ 3715 RECOMP_FLAGS_IN(); 3716 L_470639AD: 3717 /* cmp eax, 0xFFFFFFFFu */ /* 0x470639AD: cmp eax, -1 */ 3718 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 3719 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3720 _flag_k = FK_CMP; 3721 if (CMP_NE(_flag_a, _flag_b)) goto L_47063A1D; /* 0x470639B0: jne 0x47063a1d */ 3722 L_470639B2: 3723 RECOMP_ICALL(ebx); /* 0x470639B2: call ebx */ 3724 RECOMP_FLAGS_IN(); 3725 /* cmp MEM32(eax), 0x79u */ /* 0x470639B4: cmp dword ptr [eax], 0x79 */ 3726 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0x79u); 3727 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3728 _flag_k = FK_CMP; 3729 if (CMP_NE(_flag_a, _flag_b)) goto L_47063A31; /* 0x470639B7: jne 0x47063a31 */ 3730 L_470639B9: 3731 ecx = MEM32(edi + 0x54); /* 0x470639B9: mov ecx, dword ptr [edi + 0x54] */ 3732 esi = MEM32(ecx + 0xC4); /* 0x470639BC: mov esi, dword ptr [ecx + 0xc4] */ 3733 edx = MEM32(esi); /* 0x470639C2: mov edx, dword ptr [esi] */ 3734 ecx = esi; /* 0x470639C4: mov ecx, esi */ 3735 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x470639C6: call dword ptr [edx + 4] */ 3736 RECOMP_FLAGS_IN(); 3737 /* test eax, eax */ /* 0x470639C9: test eax, eax */ 3738 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3739 _cf = 0; 3740 _flag_k = FK_TEST; 3741 if (TEST_NZ(_flag_a, _flag_b)) goto L_47063A1D; /* 0x470639CB: jne 0x47063a1d */ 3742 L_470639CD: 3743 eax = esp + 0x24; /* 0x470639CD: lea eax, [esp + 0x24] */ 3744 PUSH32(esp, eax); /* 0x470639D1: push eax */ 3745 RECOMP_ICALL(MEM32(esi + 0x24)); /* 0x470639D2: call dword ptr [esi + 0x24] */ 3746 RECOMP_FLAGS_IN(); 3747 ecx = MEM32(eax); /* 0x470639D5: mov ecx, dword ptr [eax] */ 3748 edx = MEM32(esi + 0x3C); /* 0x470639D7: mov edx, dword ptr [esi + 0x3c] */ 3749 eax = MEM32(eax + 0x4); /* 0x470639DA: mov eax, dword ptr [eax + 4] */ 3750 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3751 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3752 edx = edx + ecx; /* 0x470639DD: add edx, ecx */ 3753 _flag_k = FK_ADD; 3754 ecx = MEM32(esi + 0x40); /* 0x470639DF: mov ecx, dword ptr [esi + 0x40] */ 3755 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3756 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3757 ecx = ecx + eax; /* 0x470639E2: add ecx, eax */ 3758 _flag_k = FK_ADD; 3759 MEM32(esp + 0x14) = ecx; /* 0x470639E4: mov dword ptr [esp + 0x14], ecx */ 3760 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3761 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3762 esp = esp + 4; /* 0x470639E8: add esp, 4 */ 3763 _flag_k = FK_ADD; 3764 ecx = esp + 0xC; /* 0x470639EB: lea ecx, [esp + 0xc] */ 3765 MEM32(esp + 0xC) = edx; /* 0x470639EF: mov dword ptr [esp + 0xc], edx */ 3766 RECOMP_ICALL(0x470543C0u); /* 0x470639F3: call 0x470543c0 */ /* not lifted */ 3767 RECOMP_FLAGS_IN(); 3768 ecx = esp + 0xC; /* 0x470639F8: lea ecx, [esp + 0xc] */ 3769 RECOMP_ICALL(0x470543C0u); /* 0x470639FC: call 0x470543c0 */ /* not lifted */ 3770 RECOMP_FLAGS_IN(); 3771 eax = MEM32(esp + 0x10); /* 0x47063A01: mov eax, dword ptr [esp + 0x10] */ 3772 edx = MEM32(esp + 0xC); /* 0x47063A05: mov edx, dword ptr [esp + 0xc] */ 3773 MEM32(esp + 0x20) = eax; /* 0x47063A09: mov dword ptr [esp + 0x20], eax */ 3774 eax = esp + 0x1C; /* 0x47063A0D: lea eax, [esp + 0x1c] */ 3775 MEM32(esp + 0x1C) = edx; /* 0x47063A11: mov dword ptr [esp + 0x1c], edx */ 3776 edx = MEM32(esi); /* 0x47063A15: mov edx, dword ptr [esi] */ 3777 PUSH32(esp, eax); /* 0x47063A17: push eax */ 3778 ecx = esi; /* 0x47063A18: mov ecx, esi */ 3779 RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x47063A1A: call dword ptr [edx + 0x1c] */ 3780 RECOMP_FLAGS_IN(); 3781 L_47063A1D: 3782 eax = MEM32(edi + 0x58); /* 0x47063A1D: mov eax, dword ptr [edi + 0x58] */ 3783 /* test eax, eax */ /* 0x47063A20: test eax, eax */ 3784 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3785 _cf = 0; 3786 _flag_k = FK_TEST; 3787 RECOMP_BACKEDGE(); 3788 if (TEST_Z(_flag_a, _flag_b)) goto L_47063969; /* 0x47063A22: je 0x47063969 */ 3789 L_47063A28: 3790 edi = POP32_VAL(esp); /* 0x47063A28: pop edi */ 3791 esi = POP32_VAL(esp); /* 0x47063A29: pop esi */ 3792 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3793 eax = 0; /* 0x47063A2A: xor eax, eax */ 3794 _cf = 0; 3795 _flag_k = FK_TEST; 3796 ebx = POP32_VAL(esp); /* 0x47063A2C: pop ebx */ 3797 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 3798 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3799 esp = esp + 0x20u; /* 0x47063A2D: add esp, 0x20 */ 3800 _flag_k = FK_ADD; 3801 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47063A30: ret */ 3802 L_47063A31: 3803 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47063A31: call dword ptr [0x470ac150] */ 3804 RECOMP_FLAGS_IN(); 3805 edi = eax; /* 0x47063A37: mov edi, eax */ 3806 RECOMP_ICALL(ebx); /* 0x47063A39: call ebx */ 3807 RECOMP_FLAGS_IN(); 3808 eax = MEM32(eax); /* 0x47063A3B: mov eax, dword ptr [eax] */ 3809 /* test eax, eax */ /* 0x47063A3D: test eax, eax */ 3810 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3811 _cf = 0; 3812 _flag_k = FK_TEST; 3813 if (TEST_Z(_flag_a, _flag_b)) goto L_47063A43; /* 0x47063A3F: je 0x47063a43 */ 3814 L_47063A41: 3815 edi = eax; /* 0x47063A41: mov edi, eax */ 3816 L_47063A43: 3817 RECOMP_ICALL(0x47039020u); /* 0x47063A43: call 0x47039020 */ /* not lifted */ 3818 RECOMP_FLAGS_IN(); 3819 esi = eax; /* 0x47063A48: mov esi, eax */ 3820 ecx = esi; /* 0x47063A4A: mov ecx, esi */ 3821 RECOMP_ICALL(0x4703B210u); /* 0x47063A4C: call 0x4703b210 */ /* not lifted */ 3822 RECOMP_FLAGS_IN(); 3823 PUSH32(esp, eax); /* 0x47063A51: push eax */ 3824 ecx = esi; /* 0x47063A52: mov ecx, esi */ 3825 RECOMP_ICALL(0x4703B240u); /* 0x47063A54: call 0x4703b240 */ /* not lifted */ 3826 RECOMP_FLAGS_IN(); 3827 PUSH32(esp, eax); /* 0x47063A59: push eax */ 3828 ecx = esi; /* 0x47063A5A: mov ecx, esi */ 3829 RECOMP_ICALL(0x4703B080u); /* 0x47063A5C: call 0x4703b080 */ /* not lifted */ 3830 RECOMP_FLAGS_IN(); 3831 PUSH32(esp, eax); /* 0x47063A61: push eax */ 3832 PUSH32(esp, edi); /* 0x47063A62: push edi */ 3833 PUSH32(esp, 0xFFFFFFFFu); /* 0x47063A63: push -1 */ 3834 PUSH32(esp, 0x91u); /* 0x47063A65: push 0x91 */ 3835 PUSH32(esp, 0x471098D0u); /* 0x47063A6A: push 0x471098d0 */ 3836 ecx = esi; /* 0x47063A6F: mov ecx, esi */ 3837 RECOMP_ICALL(0x4703A340u); /* 0x47063A71: call 0x4703a340 */ /* not lifted */ 3838 RECOMP_FLAGS_IN(); 3839 PUSH32(esp, 0x471098A4u); /* 0x47063A76: push 0x471098a4 */ 3840 PUSH32(esp, 0x47109890u); /* 0x47063A7B: push 0x47109890 */ 3841 PUSH32(esp, 0x80u); /* 0x47063A80: push 0x80 */ 3842 PUSH32(esp, esi); /* 0x47063A85: push esi */ 3843 RECOMP_ICALL(0x47039830u); /* 0x47063A86: call 0x47039830 */ /* not lifted */ 3844 RECOMP_FLAGS_IN(); 3845 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3846 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3847 esp = esp + 0x10u; /* 0x47063A8B: add esp, 0x10 */ 3848 _flag_k = FK_ADD; 3849 edi = POP32_VAL(esp); /* 0x47063A8E: pop edi */ 3850 esi = POP32_VAL(esp); /* 0x47063A8F: pop esi */ 3851 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3852 eax = eax | 0xFFFFFFFFu; /* 0x47063A90: or eax, 0xffffffff */ 3853 _cf = 0; 3854 _flag_k = FK_TEST; 3855 ebx = POP32_VAL(esp); /* 0x47063A93: pop ebx */ 3856 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 3857 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3858 esp = esp + 0x20u; /* 0x47063A94: add esp, 0x20 */ 3859 _flag_k = FK_ADD; 3860 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47063A97: ret */ 3861 RECOMP_REGS_OUT(); 3862 } 3863 3864 void sub_47063AA0(void) { 3865 int _fpu_cmp = 0; 3866 uint32_t _cf = 0; 3867 int _df = 1; 3868 uint32_t _flag_k = FK_NONE; 3869 uint32_t _flag_a = 0, _flag_b = 0; 3870 uint32_t _itail_tgt = 0; 3871 RECOMP_REGS_LOCALS 3872 RECOMP_ENTER(0x47063AA0u); 3873 3874 L_47063AA0: 3875 PUSH32(esp, esi); /* 0x47063AA0: push esi */ 3876 PUSH32(esp, edi); /* 0x47063AA1: push edi */ 3877 edi = ecx; /* 0x47063AA2: mov edi, ecx */ 3878 ecx = MEM32(edi); /* 0x47063AA4: mov ecx, dword ptr [edi] */ 3879 /* test ecx, ecx */ /* 0x47063AA6: test ecx, ecx */ 3880 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3881 _cf = 0; 3882 _flag_k = FK_TEST; 3883 if (TEST_NZ(_flag_a, _flag_b)) goto L_47063AFD; /* 0x47063AA8: jne 0x47063afd */ 3884 L_47063AAA: 3885 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47063AAA: call dword ptr [0x470ac150] */ 3886 RECOMP_FLAGS_IN(); 3887 edi = eax; /* 0x47063AB0: mov edi, eax */ 3888 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47063AB2: call dword ptr [0x470ac3c8] */ 3889 RECOMP_FLAGS_IN(); 3890 eax = MEM32(eax); /* 0x47063AB8: mov eax, dword ptr [eax] */ 3891 /* test eax, eax */ /* 0x47063ABA: test eax, eax */ 3892 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3893 _cf = 0; 3894 _flag_k = FK_TEST; 3895 if (TEST_Z(_flag_a, _flag_b)) goto L_47063AC0; /* 0x47063ABC: je 0x47063ac0 */ 3896 L_47063ABE: 3897 edi = eax; /* 0x47063ABE: mov edi, eax */ 3898 L_47063AC0: 3899 RECOMP_ICALL(0x47039020u); /* 0x47063AC0: call 0x47039020 */ /* not lifted */ 3900 RECOMP_FLAGS_IN(); 3901 esi = eax; /* 0x47063AC5: mov esi, eax */ 3902 ecx = esi; /* 0x47063AC7: mov ecx, esi */ 3903 RECOMP_ICALL(0x4703B210u); /* 0x47063AC9: call 0x4703b210 */ /* not lifted */ 3904 RECOMP_FLAGS_IN(); 3905 PUSH32(esp, eax); /* 0x47063ACE: push eax */ 3906 ecx = esi; /* 0x47063ACF: mov ecx, esi */ 3907 RECOMP_ICALL(0x4703B240u); /* 0x47063AD1: call 0x4703b240 */ /* not lifted */ 3908 RECOMP_FLAGS_IN(); 3909 PUSH32(esp, eax); /* 0x47063AD6: push eax */ 3910 ecx = esi; /* 0x47063AD7: mov ecx, esi */ 3911 RECOMP_ICALL(0x4703B080u); /* 0x47063AD9: call 0x4703b080 */ /* not lifted */ 3912 RECOMP_FLAGS_IN(); 3913 PUSH32(esp, eax); /* 0x47063ADE: push eax */ 3914 PUSH32(esp, edi); /* 0x47063ADF: push edi */ 3915 PUSH32(esp, 0xFFFFFFFFu); /* 0x47063AE0: push -1 */ 3916 PUSH32(esp, 0xABu); /* 0x47063AE2: push 0xab */ 3917 PUSH32(esp, 0x471098D0u); /* 0x47063AE7: push 0x471098d0 */ 3918 ecx = esi; /* 0x47063AEC: mov ecx, esi */ 3919 RECOMP_ICALL(0x4703A340u); /* 0x47063AEE: call 0x4703a340 */ /* not lifted */ 3920 RECOMP_FLAGS_IN(); 3921 PUSH32(esp, 0x47109994u); /* 0x47063AF3: push 0x47109994 */ 3922 goto L_47063BE8; /* 0x47063AF8: jmp 0x47063be8 */ 3923 L_47063AFD: 3924 edx = MEM32(esp + 0x18); /* 0x47063AFD: mov edx, dword ptr [esp + 0x18] */ 3925 eax = MEM32(ecx); /* 0x47063B01: mov eax, dword ptr [ecx] */ 3926 PUSH32(esp, 0xFFFFFFFFu); /* 0x47063B03: push -1 */ 3927 PUSH32(esp, 0); /* 0x47063B05: push 0 */ 3928 PUSH32(esp, 0xFFFFFFFFu); /* 0x47063B07: push -1 */ 3929 PUSH32(esp, edx); /* 0x47063B09: push edx */ 3930 edx = MEM32(esp + 0x24); /* 0x47063B0A: mov edx, dword ptr [esp + 0x24] */ 3931 PUSH32(esp, edx); /* 0x47063B0E: push edx */ 3932 edx = MEM32(esp + 0x24); /* 0x47063B0F: mov edx, dword ptr [esp + 0x24] */ 3933 PUSH32(esp, edx); /* 0x47063B13: push edx */ 3934 RECOMP_ICALL(MEM32(eax + 0x64)); /* 0x47063B14: call dword ptr [eax + 0x64] */ 3935 RECOMP_FLAGS_IN(); 3936 esi = eax; /* 0x47063B17: mov esi, eax */ 3937 /* test esi, esi */ /* 0x47063B19: test esi, esi */ 3938 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3939 _cf = 0; 3940 _flag_k = FK_TEST; 3941 if (TEST_NZ(_flag_a, _flag_b)) goto L_47063B86; /* 0x47063B1B: jne 0x47063b86 */ 3942 L_47063B1D: 3943 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47063B1D: call dword ptr [0x470ac150] */ 3944 RECOMP_FLAGS_IN(); 3945 edi = eax; /* 0x47063B23: mov edi, eax */ 3946 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47063B25: call dword ptr [0x470ac3c8] */ 3947 RECOMP_FLAGS_IN(); 3948 eax = MEM32(eax); /* 0x47063B2B: mov eax, dword ptr [eax] */ 3949 /* test eax, eax */ /* 0x47063B2D: test eax, eax */ 3950 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3951 _cf = 0; 3952 _flag_k = FK_TEST; 3953 if (TEST_Z(_flag_a, _flag_b)) goto L_47063B33; /* 0x47063B2F: je 0x47063b33 */ 3954 L_47063B31: 3955 edi = eax; /* 0x47063B31: mov edi, eax */ 3956 L_47063B33: 3957 RECOMP_ICALL(0x47039020u); /* 0x47063B33: call 0x47039020 */ /* not lifted */ 3958 RECOMP_FLAGS_IN(); 3959 esi = eax; /* 0x47063B38: mov esi, eax */ 3960 ecx = esi; /* 0x47063B3A: mov ecx, esi */ 3961 RECOMP_ICALL(0x4703B210u); /* 0x47063B3C: call 0x4703b210 */ /* not lifted */ 3962 RECOMP_FLAGS_IN(); 3963 PUSH32(esp, eax); /* 0x47063B41: push eax */ 3964 ecx = esi; /* 0x47063B42: mov ecx, esi */ 3965 RECOMP_ICALL(0x4703B240u); /* 0x47063B44: call 0x4703b240 */ /* not lifted */ 3966 RECOMP_FLAGS_IN(); 3967 PUSH32(esp, eax); /* 0x47063B49: push eax */ 3968 ecx = esi; /* 0x47063B4A: mov ecx, esi */ 3969 RECOMP_ICALL(0x4703B080u); /* 0x47063B4C: call 0x4703b080 */ /* not lifted */ 3970 RECOMP_FLAGS_IN(); 3971 PUSH32(esp, eax); /* 0x47063B51: push eax */ 3972 PUSH32(esp, edi); /* 0x47063B52: push edi */ 3973 PUSH32(esp, 0xFFFFFFFFu); /* 0x47063B53: push -1 */ 3974 PUSH32(esp, 0xB9u); /* 0x47063B55: push 0xb9 */ 3975 PUSH32(esp, 0x471098D0u); /* 0x47063B5A: push 0x471098d0 */ 3976 ecx = esi; /* 0x47063B5F: mov ecx, esi */ 3977 RECOMP_ICALL(0x4703A340u); /* 0x47063B61: call 0x4703a340 */ /* not lifted */ 3978 RECOMP_FLAGS_IN(); 3979 PUSH32(esp, 0x4710994Cu); /* 0x47063B66: push 0x4710994c */ 3980 PUSH32(esp, 0x47109890u); /* 0x47063B6B: push 0x47109890 */ 3981 PUSH32(esp, 0x80u); /* 0x47063B70: push 0x80 */ 3982 PUSH32(esp, esi); /* 0x47063B75: push esi */ 3983 RECOMP_ICALL(0x47039830u); /* 0x47063B76: call 0x47039830 */ /* not lifted */ 3984 RECOMP_FLAGS_IN(); 3985 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3986 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3987 esp = esp + 0x10u; /* 0x47063B7B: add esp, 0x10 */ 3988 _flag_k = FK_ADD; 3989 edi = POP32_VAL(esp); /* 0x47063B7E: pop edi */ 3990 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3991 eax = eax | 0xFFFFFFFFu; /* 0x47063B7F: or eax, 0xffffffff */ 3992 _cf = 0; 3993 _flag_k = FK_TEST; 3994 esi = POP32_VAL(esp); /* 0x47063B82: pop esi */ 3995 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47063B83: ret 0x10 */ 3996 L_47063B86: 3997 ecx = MEM32(edi); /* 0x47063B86: mov ecx, dword ptr [edi] */ 3998 eax = MEM32(ecx); /* 0x47063B88: mov eax, dword ptr [ecx] */ 3999 edi = MEM32(esi); /* 0x47063B8A: mov edi, dword ptr [esi] */ 4000 RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x47063B8C: call dword ptr [eax + 0x30] */ 4001 RECOMP_FLAGS_IN(); 4002 PUSH32(esp, eax); /* 0x47063B8F: push eax */ 4003 ecx = esi; /* 0x47063B90: mov ecx, esi */ 4004 RECOMP_ICALL(MEM32(edi + 0x30)); /* 0x47063B92: call dword ptr [edi + 0x30] */ 4005 RECOMP_FLAGS_IN(); 4006 /* cmp eax, 0xFFFFFFFFu */ /* 0x47063B95: cmp eax, -1 */ 4007 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 4008 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4009 _flag_k = FK_CMP; 4010 if (CMP_NE(_flag_a, _flag_b)) goto L_47063BFE; /* 0x47063B98: jne 0x47063bfe */ 4011 L_47063B9A: 4012 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47063B9A: call dword ptr [0x470ac150] */ 4013 RECOMP_FLAGS_IN(); 4014 edi = eax; /* 0x47063BA0: mov edi, eax */ 4015 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47063BA2: call dword ptr [0x470ac3c8] */ 4016 RECOMP_FLAGS_IN(); 4017 eax = MEM32(eax); /* 0x47063BA8: mov eax, dword ptr [eax] */ 4018 /* test eax, eax */ /* 0x47063BAA: test eax, eax */ 4019 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4020 _cf = 0; 4021 _flag_k = FK_TEST; 4022 if (TEST_Z(_flag_a, _flag_b)) goto L_47063BB0; /* 0x47063BAC: je 0x47063bb0 */ 4023 L_47063BAE: 4024 edi = eax; /* 0x47063BAE: mov edi, eax */ 4025 L_47063BB0: 4026 RECOMP_ICALL(0x47039020u); /* 0x47063BB0: call 0x47039020 */ /* not lifted */ 4027 RECOMP_FLAGS_IN(); 4028 esi = eax; /* 0x47063BB5: mov esi, eax */ 4029 ecx = esi; /* 0x47063BB7: mov ecx, esi */ 4030 RECOMP_ICALL(0x4703B210u); /* 0x47063BB9: call 0x4703b210 */ /* not lifted */ 4031 RECOMP_FLAGS_IN(); 4032 PUSH32(esp, eax); /* 0x47063BBE: push eax */ 4033 ecx = esi; /* 0x47063BBF: mov ecx, esi */ 4034 RECOMP_ICALL(0x4703B240u); /* 0x47063BC1: call 0x4703b240 */ /* not lifted */ 4035 RECOMP_FLAGS_IN(); 4036 PUSH32(esp, eax); /* 0x47063BC6: push eax */ 4037 ecx = esi; /* 0x47063BC7: mov ecx, esi */ 4038 RECOMP_ICALL(0x4703B080u); /* 0x47063BC9: call 0x4703b080 */ /* not lifted */ 4039 RECOMP_FLAGS_IN(); 4040 PUSH32(esp, eax); /* 0x47063BCE: push eax */ 4041 PUSH32(esp, edi); /* 0x47063BCF: push edi */ 4042 PUSH32(esp, 0xFFFFFFFFu); /* 0x47063BD0: push -1 */ 4043 PUSH32(esp, 0xC0u); /* 0x47063BD2: push 0xc0 */ 4044 PUSH32(esp, 0x471098D0u); /* 0x47063BD7: push 0x471098d0 */ 4045 ecx = esi; /* 0x47063BDC: mov ecx, esi */ 4046 RECOMP_ICALL(0x4703A340u); /* 0x47063BDE: call 0x4703a340 */ /* not lifted */ 4047 RECOMP_FLAGS_IN(); 4048 PUSH32(esp, 0x47109908u); /* 0x47063BE3: push 0x47109908 */ 4049 L_47063BE8: 4050 PUSH32(esp, 0x80u); /* 0x47063BE8: push 0x80 */ 4051 PUSH32(esp, esi); /* 0x47063BED: push esi */ 4052 RECOMP_ICALL(0x47039830u); /* 0x47063BEE: call 0x47039830 */ /* not lifted */ 4053 RECOMP_FLAGS_IN(); 4054 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4055 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4056 esp = esp + 0xCu; /* 0x47063BF3: add esp, 0xc */ 4057 _flag_k = FK_ADD; 4058 edi = POP32_VAL(esp); /* 0x47063BF6: pop edi */ 4059 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4060 eax = eax | 0xFFFFFFFFu; /* 0x47063BF7: or eax, 0xffffffff */ 4061 _cf = 0; 4062 _flag_k = FK_TEST; 4063 esi = POP32_VAL(esp); /* 0x47063BFA: pop esi */ 4064 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47063BFB: ret 0x10 */ 4065 L_47063BFE: 4066 edi = POP32_VAL(esp); /* 0x47063BFE: pop edi */ 4067 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4068 eax = 0; /* 0x47063BFF: xor eax, eax */ 4069 _cf = 0; 4070 _flag_k = FK_TEST; 4071 esi = POP32_VAL(esp); /* 0x47063C01: pop esi */ 4072 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47063C02: ret 0x10 */ 4073 RECOMP_REGS_OUT(); 4074 } 4075 4076 void sub_47063BE8(void) { 4077 int _fpu_cmp = 0; 4078 uint32_t _cf = 0; 4079 int _df = 1; 4080 uint32_t _flag_k = FK_NONE; 4081 uint32_t _flag_a = 0, _flag_b = 0; 4082 uint32_t _itail_tgt = 0; 4083 RECOMP_REGS_LOCALS 4084 RECOMP_ENTER(0x47063BE8u); 4085 4086 L_47063BE8: 4087 PUSH32(esp, 0x80u); /* 0x47063BE8: push 0x80 */ 4088 PUSH32(esp, esi); /* 0x47063BED: push esi */ 4089 RECOMP_ICALL(0x47039830u); /* 0x47063BEE: call 0x47039830 */ /* not lifted */ 4090 RECOMP_FLAGS_IN(); 4091 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4092 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4093 esp = esp + 0xCu; /* 0x47063BF3: add esp, 0xc */ 4094 _flag_k = FK_ADD; 4095 edi = POP32_VAL(esp); /* 0x47063BF6: pop edi */ 4096 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4097 eax = eax | 0xFFFFFFFFu; /* 0x47063BF7: or eax, 0xffffffff */ 4098 _cf = 0; 4099 _flag_k = FK_TEST; 4100 esi = POP32_VAL(esp); /* 0x47063BFA: pop esi */ 4101 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47063BFB: ret 0x10 */ 4102 RECOMP_REGS_OUT(); 4103 } 4104 4105 void sub_47063C10(void) { 4106 int _fpu_cmp = 0; 4107 uint32_t _cf = 0; 4108 int _df = 1; 4109 uint32_t _flag_k = FK_NONE; 4110 uint32_t _flag_a = 0, _flag_b = 0; 4111 uint32_t _itail_tgt = 0; 4112 RECOMP_REGS_LOCALS 4113 RECOMP_ENTER(0x47063C10u); 4114 4115 L_47063C10: 4116 /* cmp MEM32(ecx), 0 */ /* 0x47063C10: cmp dword ptr [ecx], 0 */ 4117 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(0); 4118 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4119 _flag_k = FK_CMP; 4120 if (CMP_NE(_flag_a, _flag_b)) goto L_47063C20; /* 0x47063C13: jne 0x47063c20 */ 4121 L_47063C15: 4122 eax = MEM32(esp + 0x4); /* 0x47063C15: mov eax, dword ptr [esp + 4] */ 4123 MEM32(ecx) = eax; /* 0x47063C19: mov dword ptr [ecx], eax */ 4124 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4125 eax = 0; /* 0x47063C1B: xor eax, eax */ 4126 _cf = 0; 4127 _flag_k = FK_TEST; 4128 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47063C1D: ret 4 */ 4129 L_47063C20: 4130 PUSH32(esp, esi); /* 0x47063C20: push esi */ 4131 PUSH32(esp, edi); /* 0x47063C21: push edi */ 4132 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47063C22: call dword ptr [0x470ac150] */ 4133 RECOMP_FLAGS_IN(); 4134 edi = eax; /* 0x47063C28: mov edi, eax */ 4135 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47063C2A: call dword ptr [0x470ac3c8] */ 4136 RECOMP_FLAGS_IN(); 4137 eax = MEM32(eax); /* 0x47063C30: mov eax, dword ptr [eax] */ 4138 /* test eax, eax */ /* 0x47063C32: test eax, eax */ 4139 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4140 _cf = 0; 4141 _flag_k = FK_TEST; 4142 if (TEST_Z(_flag_a, _flag_b)) goto L_47063C38; /* 0x47063C34: je 0x47063c38 */ 4143 L_47063C36: 4144 edi = eax; /* 0x47063C36: mov edi, eax */ 4145 L_47063C38: 4146 RECOMP_ICALL(0x47039020u); /* 0x47063C38: call 0x47039020 */ /* not lifted */ 4147 RECOMP_FLAGS_IN(); 4148 esi = eax; /* 0x47063C3D: mov esi, eax */ 4149 ecx = esi; /* 0x47063C3F: mov ecx, esi */ 4150 RECOMP_ICALL(0x4703B210u); /* 0x47063C41: call 0x4703b210 */ /* not lifted */ 4151 RECOMP_FLAGS_IN(); 4152 PUSH32(esp, eax); /* 0x47063C46: push eax */ 4153 ecx = esi; /* 0x47063C47: mov ecx, esi */ 4154 RECOMP_ICALL(0x4703B240u); /* 0x47063C49: call 0x4703b240 */ /* not lifted */ 4155 RECOMP_FLAGS_IN(); 4156 PUSH32(esp, eax); /* 0x47063C4E: push eax */ 4157 ecx = esi; /* 0x47063C4F: mov ecx, esi */ 4158 RECOMP_ICALL(0x4703B080u); /* 0x47063C51: call 0x4703b080 */ /* not lifted */ 4159 RECOMP_FLAGS_IN(); 4160 PUSH32(esp, eax); /* 0x47063C56: push eax */ 4161 PUSH32(esp, edi); /* 0x47063C57: push edi */ 4162 PUSH32(esp, 0xFFFFFFFFu); /* 0x47063C58: push -1 */ 4163 PUSH32(esp, 0xE8u); /* 0x47063C5A: push 0xe8 */ 4164 PUSH32(esp, 0x471098D0u); /* 0x47063C5F: push 0x471098d0 */ 4165 ecx = esi; /* 0x47063C64: mov ecx, esi */ 4166 RECOMP_ICALL(0x4703A340u); /* 0x47063C66: call 0x4703a340 */ /* not lifted */ 4167 RECOMP_FLAGS_IN(); 4168 PUSH32(esp, 0x471099FCu); /* 0x47063C6B: push 0x471099fc */ 4169 PUSH32(esp, 0x80u); /* 0x47063C70: push 0x80 */ 4170 PUSH32(esp, esi); /* 0x47063C75: push esi */ 4171 RECOMP_ICALL(0x47039830u); /* 0x47063C76: call 0x47039830 */ /* not lifted */ 4172 RECOMP_FLAGS_IN(); 4173 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4174 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4175 esp = esp + 0xCu; /* 0x47063C7B: add esp, 0xc */ 4176 _flag_k = FK_ADD; 4177 edi = POP32_VAL(esp); /* 0x47063C7E: pop edi */ 4178 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4179 eax = eax | 0xFFFFFFFFu; /* 0x47063C7F: or eax, 0xffffffff */ 4180 _cf = 0; 4181 _flag_k = FK_TEST; 4182 esi = POP32_VAL(esp); /* 0x47063C82: pop esi */ 4183 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47063C83: ret 4 */ 4184 RECOMP_REGS_OUT(); 4185 } 4186 4187 void sub_47063C90(void) { 4188 int _fpu_cmp = 0; 4189 uint32_t _cf = 0; 4190 int _df = 1; 4191 uint32_t _flag_k = FK_NONE; 4192 uint32_t _flag_a = 0, _flag_b = 0; 4193 uint32_t _itail_tgt = 0; 4194 RECOMP_REGS_LOCALS 4195 RECOMP_ENTER(0x47063C90u); 4196 4197 L_47063C90: 4198 PUSH32(esp, 0xFFFFFFFFu); /* 0x47063C90: push -1 */ 4199 PUSH32(esp, 0x470A821Cu); /* 0x47063C92: push 0x470a821c */ 4200 eax = MEM32(FS_BASE + (0)); /* 0x47063C97: mov eax, dword ptr fs:[0] */ 4201 PUSH32(esp, eax); /* 0x47063C9D: push eax */ 4202 MEM32(FS_BASE + (0)) = esp; /* 0x47063C9E: mov dword ptr fs:[0], esp */ 4203 PUSH32(esp, ecx); /* 0x47063CA5: push ecx */ 4204 eax = MEM32(esp + 0x18); /* 0x47063CA6: mov eax, dword ptr [esp + 0x18] */ 4205 PUSH32(esp, ebx); /* 0x47063CAA: push ebx */ 4206 PUSH32(esp, ebp); /* 0x47063CAB: push ebp */ 4207 PUSH32(esp, esi); /* 0x47063CAC: push esi */ 4208 PUSH32(esp, edi); /* 0x47063CAD: push edi */ 4209 edi = ecx; /* 0x47063CAE: mov edi, ecx */ 4210 PUSH32(esp, 0x61A8u); /* 0x47063CB0: push 0x61a8 */ 4211 PUSH32(esp, 1); /* 0x47063CB5: push 1 */ 4212 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4213 ebx = 0; /* 0x47063CB7: xor ebx, ebx */ 4214 _cf = 0; 4215 _flag_k = FK_TEST; 4216 PUSH32(esp, 1); /* 0x47063CB9: push 1 */ 4217 ebp = edi + 0x10; /* 0x47063CBB: lea ebp, [edi + 0x10] */ 4218 PUSH32(esp, ebx); /* 0x47063CBE: push ebx */ 4219 ecx = ebp; /* 0x47063CBF: mov ecx, ebp */ 4220 MEM32(esp + 0x20) = edi; /* 0x47063CC1: mov dword ptr [esp + 0x20], edi */ 4221 MEM32(edi + 0x4) = ebx; /* 0x47063CC5: mov dword ptr [edi + 4], ebx */ 4222 MEM32(edi + 0x8) = eax; /* 0x47063CC8: mov dword ptr [edi + 8], eax */ 4223 MEM32(edi + 0xC) = ebx; /* 0x47063CCB: mov dword ptr [edi + 0xc], ebx */ 4224 RECOMP_ICALL(0x4708A4B0u); /* 0x47063CCE: call 0x4708a4b0 */ /* not lifted */ 4225 RECOMP_FLAGS_IN(); 4226 eax = MEM32(esp + 0x24); /* 0x47063CD3: mov eax, dword ptr [esp + 0x24] */ 4227 /* cmp eax, ebx */ /* 0x47063CD7: cmp eax, ebx */ 4228 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4229 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4230 _flag_k = FK_CMP; 4231 MEM32(esp + 0x1C) = ebx; /* 0x47063CD9: mov dword ptr [esp + 0x1c], ebx */ 4232 MEM32(edi + 0xC4) = ebx; /* 0x47063CDD: mov dword ptr [edi + 0xc4], ebx */ 4233 MEM32(edi + 0xC8) = ebx; /* 0x47063CE3: mov dword ptr [edi + 0xc8], ebx */ 4234 MEM32(edi) = 0x470AE8D0u; /* 0x47063CE9: mov dword ptr [edi], 0x470ae8d0 */ 4235 MEM32(edi + 0x4) = eax; /* 0x47063CEF: mov dword ptr [edi + 4], eax */ 4236 if (CMP_NE(_flag_a, _flag_b)) goto L_47063D3B; /* 0x47063CF2: jne 0x47063d3b */ 4237 L_47063CF4: 4238 PUSH32(esp, 0x28u); /* 0x47063CF4: push 0x28 */ 4239 RECOMP_ICALL(0x470A33F2u); /* 0x47063CF6: call 0x470a33f2 */ /* not lifted */ 4240 RECOMP_FLAGS_IN(); 4241 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4242 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4243 esp = esp + 4; /* 0x47063CFB: add esp, 4 */ 4244 _flag_k = FK_ADD; 4245 MEM32(esp + 0x28) = eax; /* 0x47063CFE: mov dword ptr [esp + 0x28], eax */ 4246 /* cmp eax, ebx */ /* 0x47063D02: cmp eax, ebx */ 4247 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4248 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4249 _flag_k = FK_CMP; 4250 MEM8(esp + 0x1C) = (uint8_t)(1); /* 0x47063D04: mov byte ptr [esp + 0x1c], 1 */ 4251 if (CMP_EQ(_flag_a, _flag_b)) goto L_47063D16; /* 0x47063D09: je 0x47063d16 */ 4252 L_47063D0B: 4253 PUSH32(esp, ebx); /* 0x47063D0B: push ebx */ 4254 PUSH32(esp, ebx); /* 0x47063D0C: push ebx */ 4255 ecx = eax; /* 0x47063D0D: mov ecx, eax */ 4256 RECOMP_ICALL(0x470A1FE0u); /* 0x47063D0F: call 0x470a1fe0 */ /* not lifted */ 4257 RECOMP_FLAGS_IN(); 4258 goto L_47063D18; /* 0x47063D14: jmp 0x47063d18 */ 4259 L_47063D16: 4260 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4261 eax = 0; /* 0x47063D16: xor eax, eax */ 4262 _cf = 0; 4263 _flag_k = FK_TEST; 4264 L_47063D18: 4265 /* cmp eax, ebx */ /* 0x47063D18: cmp eax, ebx */ 4266 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4267 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4268 _flag_k = FK_CMP; 4269 MEM8(esp + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x47063D1A: mov byte ptr [esp + 0x1c], bl */ 4270 if (CMP_NE(_flag_a, _flag_b)) goto L_47063D31; /* 0x47063D1E: jne 0x47063d31 */ 4271 L_47063D20: 4272 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47063D20: call dword ptr [0x470ac3c8] */ 4273 RECOMP_FLAGS_IN(); 4274 MEM32(eax) = 0xCu; /* 0x47063D26: mov dword ptr [eax], 0xc */ 4275 goto L_47063E90; /* 0x47063D2C: jmp 0x47063e90 */ 4276 L_47063D31: 4277 MEM32(edi + 0x4) = eax; /* 0x47063D31: mov dword ptr [edi + 4], eax */ 4278 MEM32(edi + 0x8) = 1; /* 0x47063D34: mov dword ptr [edi + 8], 1 */ 4279 L_47063D3B: 4280 ecx = MEM32(esp + 0x2C); /* 0x47063D3B: mov ecx, dword ptr [esp + 0x2c] */ 4281 PUSH32(esp, ecx); /* 0x47063D3F: push ecx */ 4282 ecx = edi; /* 0x47063D40: mov ecx, edi */ 4283 RECOMP_ICALL(0x47064690u); /* 0x47063D42: call 0x47064690 */ /* not lifted */ 4284 RECOMP_FLAGS_IN(); 4285 PUSH32(esp, 0x5Cu); /* 0x47063D47: push 0x5c */ 4286 RECOMP_ICALL(0x470A33F2u); /* 0x47063D49: call 0x470a33f2 */ /* not lifted */ 4287 RECOMP_FLAGS_IN(); 4288 esi = eax; /* 0x47063D4E: mov esi, eax */ 4289 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4290 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4291 esp = esp + 4; /* 0x47063D50: add esp, 4 */ 4292 _flag_k = FK_ADD; 4293 MEM32(esp + 0x28) = esi; /* 0x47063D53: mov dword ptr [esp + 0x28], esi */ 4294 /* cmp esi, ebx */ /* 0x47063D57: cmp esi, ebx */ 4295 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4296 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4297 _flag_k = FK_CMP; 4298 MEM8(esp + 0x1C) = (uint8_t)(2); /* 0x47063D59: mov byte ptr [esp + 0x1c], 2 */ 4299 if (CMP_EQ(_flag_a, _flag_b)) goto L_47063DF6; /* 0x47063D5E: je 0x47063df6 */ 4300 L_47063D64: 4301 PUSH32(esp, ebp); /* 0x47063D64: push ebp */ 4302 ecx = esi; /* 0x47063D65: mov ecx, esi */ 4303 RECOMP_ICALL(0x47089210u); /* 0x47063D67: call 0x47089210 */ /* not lifted */ 4304 RECOMP_FLAGS_IN(); 4305 PUSH32(esp, 0x34u); /* 0x47063D6C: push 0x34 */ 4306 MEM8(esp + 0x20) = (uint8_t)(3); /* 0x47063D6E: mov byte ptr [esp + 0x20], 3 */ 4307 MEM32(esi + 0x3C) = ebx; /* 0x47063D73: mov dword ptr [esi + 0x3c], ebx */ 4308 MEM32(esi + 0x40) = ebx; /* 0x47063D76: mov dword ptr [esi + 0x40], ebx */ 4309 MEM32(esi + 0x44) = ebx; /* 0x47063D79: mov dword ptr [esi + 0x44], ebx */ 4310 MEM32(esi + 0x48) = ebx; /* 0x47063D7C: mov dword ptr [esi + 0x48], ebx */ 4311 MEM32(esi) = 0x470AE86Cu; /* 0x47063D7F: mov dword ptr [esi], 0x470ae86c */ 4312 MEM32(esi + 0xC) = 0x470AE85Cu; /* 0x47063D85: mov dword ptr [esi + 0xc], 0x470ae85c */ 4313 RECOMP_ICALL(0x470A33F2u); /* 0x47063D8C: call 0x470a33f2 */ /* not lifted */ 4314 RECOMP_FLAGS_IN(); 4315 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4316 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4317 esp = esp + 4; /* 0x47063D91: add esp, 4 */ 4318 _flag_k = FK_ADD; 4319 MEM32(esp + 0x24) = eax; /* 0x47063D94: mov dword ptr [esp + 0x24], eax */ 4320 /* cmp eax, ebx */ /* 0x47063D98: cmp eax, ebx */ 4321 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4322 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4323 _flag_k = FK_CMP; 4324 MEM8(esp + 0x1C) = (uint8_t)(4); /* 0x47063D9A: mov byte ptr [esp + 0x1c], 4 */ 4325 if (CMP_EQ(_flag_a, _flag_b)) goto L_47063DB7; /* 0x47063D9F: je 0x47063db7 */ 4326 L_47063DA1: 4327 PUSH32(esp, ebx); /* 0x47063DA1: push ebx */ 4328 PUSH32(esp, 0x4000u); /* 0x47063DA2: push 0x4000 */ 4329 PUSH32(esp, 0x4000u); /* 0x47063DA7: push 0x4000 */ 4330 ecx = eax; /* 0x47063DAC: mov ecx, eax */ 4331 RECOMP_ICALL(0x470661B0u); /* 0x47063DAE: call 0x470661b0 */ /* not lifted */ 4332 RECOMP_FLAGS_IN(); 4333 /* cmp eax, ebx */ /* 0x47063DB3: cmp eax, ebx */ 4334 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4335 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4336 _flag_k = FK_CMP; 4337 if (CMP_NE(_flag_a, _flag_b)) goto L_47063DC5; /* 0x47063DB5: jne 0x47063dc5 */ 4338 L_47063DB7: 4339 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47063DB7: call dword ptr [0x470ac3c8] */ 4340 RECOMP_FLAGS_IN(); 4341 MEM32(eax) = 0xCu; /* 0x47063DBD: mov dword ptr [eax], 0xc */ 4342 goto L_47063DCF; /* 0x47063DC3: jmp 0x47063dcf */ 4343 L_47063DC5: 4344 MEM32(esi + 0x40) = 1; /* 0x47063DC5: mov dword ptr [esi + 0x40], 1 */ 4345 MEM32(esi + 0x3C) = eax; /* 0x47063DCC: mov dword ptr [esi + 0x3c], eax */ 4346 L_47063DCF: 4347 PUSH32(esp, ebx); /* 0x47063DCF: push ebx */ 4348 PUSH32(esp, ebx); /* 0x47063DD0: push ebx */ 4349 PUSH32(esp, 1); /* 0x47063DD1: push 1 */ 4350 PUSH32(esp, ebx); /* 0x47063DD3: push ebx */ 4351 ecx = esi + 0x4C; /* 0x47063DD4: lea ecx, [esi + 0x4c] */ 4352 MEM8(esp + 0x2C) = (uint8_t)(5); /* 0x47063DD7: mov byte ptr [esp + 0x2c], 5 */ 4353 RECOMP_ICALL(0x47086DB0u); /* 0x47063DDC: call 0x47086db0 */ /* not lifted */ 4354 RECOMP_FLAGS_IN(); 4355 MEM32(esi + 0x54) = edi; /* 0x47063DE1: mov dword ptr [esi + 0x54], edi */ 4356 MEM32(esi + 0x58) = ebx; /* 0x47063DE4: mov dword ptr [esi + 0x58], ebx */ 4357 MEM32(esi) = 0x470AE758u; /* 0x47063DE7: mov dword ptr [esi], 0x470ae758 */ 4358 MEM32(esi + 0xC) = 0x470AE748u; /* 0x47063DED: mov dword ptr [esi + 0xc], 0x470ae748 */ 4359 goto L_47063DF8; /* 0x47063DF4: jmp 0x47063df8 */ 4360 L_47063DF6: 4361 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4362 esi = 0; /* 0x47063DF6: xor esi, esi */ 4363 _cf = 0; 4364 _flag_k = FK_TEST; 4365 L_47063DF8: 4366 /* cmp esi, ebx */ /* 0x47063DF8: cmp esi, ebx */ 4367 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4368 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4369 _flag_k = FK_CMP; 4370 MEM8(esp + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x47063DFA: mov byte ptr [esp + 0x1c], bl */ 4371 MEM32(edi + 0xC) = esi; /* 0x47063DFE: mov dword ptr [edi + 0xc], esi */ 4372 if (CMP_NE(_flag_a, _flag_b)) goto L_47063E11; /* 0x47063E01: jne 0x47063e11 */ 4373 L_47063E03: 4374 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47063E03: call dword ptr [0x470ac3c8] */ 4375 RECOMP_FLAGS_IN(); 4376 MEM32(eax) = 0xCu; /* 0x47063E09: mov dword ptr [eax], 0xc */ 4377 goto L_47063E90; /* 0x47063E0F: jmp 0x47063e90 */ 4378 L_47063E11: 4379 edx = MEM32(esi); /* 0x47063E11: mov edx, dword ptr [esi] */ 4380 PUSH32(esp, ebx); /* 0x47063E13: push ebx */ 4381 PUSH32(esp, ebx); /* 0x47063E14: push ebx */ 4382 PUSH32(esp, ebx); /* 0x47063E15: push ebx */ 4383 PUSH32(esp, ebx); /* 0x47063E16: push ebx */ 4384 PUSH32(esp, ebx); /* 0x47063E17: push ebx */ 4385 PUSH32(esp, 0xFFFFFFFFu); /* 0x47063E18: push -1 */ 4386 PUSH32(esp, ebx); /* 0x47063E1A: push ebx */ 4387 PUSH32(esp, ebx); /* 0x47063E1B: push ebx */ 4388 PUSH32(esp, 1); /* 0x47063E1C: push 1 */ 4389 PUSH32(esp, 0x02000000u); /* 0x47063E1E: push 0x2000000 */ 4390 ecx = esi; /* 0x47063E23: mov ecx, esi */ 4391 RECOMP_ICALL(MEM32(edx + 0x5C)); /* 0x47063E25: call dword ptr [edx + 0x5c] */ 4392 RECOMP_FLAGS_IN(); 4393 /* cmp eax, 0xFFFFFFFFu */ /* 0x47063E28: cmp eax, -1 */ 4394 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 4395 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4396 _flag_k = FK_CMP; 4397 if (CMP_NE(_flag_a, _flag_b)) goto L_47063E90; /* 0x47063E2B: jne 0x47063e90 */ 4398 L_47063E2D: 4399 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47063E2D: call dword ptr [0x470ac150] */ 4400 RECOMP_FLAGS_IN(); 4401 esi = eax; /* 0x47063E33: mov esi, eax */ 4402 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47063E35: call dword ptr [0x470ac3c8] */ 4403 RECOMP_FLAGS_IN(); 4404 eax = MEM32(eax); /* 0x47063E3B: mov eax, dword ptr [eax] */ 4405 /* cmp eax, ebx */ /* 0x47063E3D: cmp eax, ebx */ 4406 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4407 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4408 _flag_k = FK_CMP; 4409 ebx = esi; /* 0x47063E3F: mov ebx, esi */ 4410 if (CMP_EQ(_flag_a, _flag_b)) goto L_47063E45; /* 0x47063E41: je 0x47063e45 */ 4411 L_47063E43: 4412 ebx = eax; /* 0x47063E43: mov ebx, eax */ 4413 L_47063E45: 4414 RECOMP_ICALL(0x47039020u); /* 0x47063E45: call 0x47039020 */ /* not lifted */ 4415 RECOMP_FLAGS_IN(); 4416 esi = eax; /* 0x47063E4A: mov esi, eax */ 4417 ecx = esi; /* 0x47063E4C: mov ecx, esi */ 4418 RECOMP_ICALL(0x4703B210u); /* 0x47063E4E: call 0x4703b210 */ /* not lifted */ 4419 RECOMP_FLAGS_IN(); 4420 PUSH32(esp, eax); /* 0x47063E53: push eax */ 4421 ecx = esi; /* 0x47063E54: mov ecx, esi */ 4422 RECOMP_ICALL(0x4703B240u); /* 0x47063E56: call 0x4703b240 */ /* not lifted */ 4423 RECOMP_FLAGS_IN(); 4424 PUSH32(esp, eax); /* 0x47063E5B: push eax */ 4425 ecx = esi; /* 0x47063E5C: mov ecx, esi */ 4426 RECOMP_ICALL(0x4703B080u); /* 0x47063E5E: call 0x4703b080 */ /* not lifted */ 4427 RECOMP_FLAGS_IN(); 4428 PUSH32(esp, eax); /* 0x47063E63: push eax */ 4429 PUSH32(esp, ebx); /* 0x47063E64: push ebx */ 4430 PUSH32(esp, 0xFFFFFFFFu); /* 0x47063E65: push -1 */ 4431 PUSH32(esp, 0x11Au); /* 0x47063E67: push 0x11a */ 4432 PUSH32(esp, 0x471098D0u); /* 0x47063E6C: push 0x471098d0 */ 4433 ecx = esi; /* 0x47063E71: mov ecx, esi */ 4434 RECOMP_ICALL(0x4703A340u); /* 0x47063E73: call 0x4703a340 */ /* not lifted */ 4435 RECOMP_FLAGS_IN(); 4436 PUSH32(esp, 0x47109A5Cu); /* 0x47063E78: push 0x47109a5c */ 4437 PUSH32(esp, 0x47109890u); /* 0x47063E7D: push 0x47109890 */ 4438 PUSH32(esp, 0x80u); /* 0x47063E82: push 0x80 */ 4439 PUSH32(esp, esi); /* 0x47063E87: push esi */ 4440 RECOMP_ICALL(0x47039830u); /* 0x47063E88: call 0x47039830 */ /* not lifted */ 4441 RECOMP_FLAGS_IN(); 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; /* 0x47063E8D: add esp, 0x10 */ 4445 _flag_k = FK_ADD; 4446 L_47063E90: 4447 ecx = MEM32(esp + 0x14); /* 0x47063E90: mov ecx, dword ptr [esp + 0x14] */ 4448 eax = edi; /* 0x47063E94: mov eax, edi */ 4449 edi = POP32_VAL(esp); /* 0x47063E96: pop edi */ 4450 esi = POP32_VAL(esp); /* 0x47063E97: pop esi */ 4451 ebp = POP32_VAL(esp); /* 0x47063E98: pop ebp */ 4452 ebx = POP32_VAL(esp); /* 0x47063E99: pop ebx */ 4453 MEM32(FS_BASE + (0)) = ecx; /* 0x47063E9A: mov dword ptr fs:[0], ecx */ 4454 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4455 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4456 esp = esp + 0x10u; /* 0x47063EA1: add esp, 0x10 */ 4457 _flag_k = FK_ADD; 4458 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47063EA4: ret 0xc */ 4459 RECOMP_REGS_OUT(); 4460 } 4461 4462 void sub_47063E90(void) { 4463 int _fpu_cmp = 0; 4464 uint32_t _cf = 0; 4465 int _df = 1; 4466 uint32_t _flag_k = FK_NONE; 4467 uint32_t _flag_a = 0, _flag_b = 0; 4468 uint32_t _itail_tgt = 0; 4469 RECOMP_REGS_LOCALS 4470 RECOMP_ENTER(0x47063E90u); 4471 4472 L_47063E90: 4473 ecx = MEM32(esp + 0x14); /* 0x47063E90: mov ecx, dword ptr [esp + 0x14] */ 4474 eax = edi; /* 0x47063E94: mov eax, edi */ 4475 edi = POP32_VAL(esp); /* 0x47063E96: pop edi */ 4476 esi = POP32_VAL(esp); /* 0x47063E97: pop esi */ 4477 ebp = POP32_VAL(esp); /* 0x47063E98: pop ebp */ 4478 ebx = POP32_VAL(esp); /* 0x47063E99: pop ebx */ 4479 MEM32(FS_BASE + (0)) = ecx; /* 0x47063E9A: mov dword ptr fs:[0], ecx */ 4480 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4481 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4482 esp = esp + 0x10u; /* 0x47063EA1: add esp, 0x10 */ 4483 _flag_k = FK_ADD; 4484 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47063EA4: ret 0xc */ 4485 RECOMP_REGS_OUT(); 4486 } 4487 4488 void sub_47063EB0(void) { 4489 int _fpu_cmp = 0; 4490 uint32_t _cf = 0; 4491 int _df = 1; 4492 uint32_t _flag_k = FK_NONE; 4493 uint32_t _flag_a = 0, _flag_b = 0; 4494 uint32_t _itail_tgt = 0; 4495 RECOMP_REGS_LOCALS 4496 RECOMP_ENTER(0x47063EB0u); 4497 4498 L_47063EB0: 4499 PUSH32(esp, ebx); /* 0x47063EB0: push ebx */ 4500 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47063EB1: mov bl, byte ptr [esp + 8] */ 4501 /* test LO8(ebx), 2 */ /* 0x47063EB5: test bl, 2 */ 4502 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 4503 _cf = 0; 4504 _flag_k = FK_NARROW(FK_TEST, 24); 4505 PUSH32(esp, esi); /* 0x47063EB8: push esi */ 4506 esi = ecx; /* 0x47063EB9: mov esi, ecx */ 4507 if (TEST_Z(_flag_a, _flag_b)) goto L_47063EEB; /* 0x47063EBB: je 0x47063eeb */ 4508 L_47063EBD: 4509 eax = MEM32(esi + (-0x4)); /* 0x47063EBD: mov eax, dword ptr [esi - 4] */ 4510 PUSH32(esp, edi); /* 0x47063EC0: push edi */ 4511 PUSH32(esp, 0x47063F10u); /* 0x47063EC1: push 0x47063f10 */ 4512 edi = esi + (-0x4); /* 0x47063EC6: lea edi, [esi - 4] */ 4513 PUSH32(esp, eax); /* 0x47063EC9: push eax */ 4514 PUSH32(esp, 0xCCu); /* 0x47063ECA: push 0xcc */ 4515 PUSH32(esp, esi); /* 0x47063ECF: push esi */ 4516 RECOMP_ICALL(0x470A32EBu); /* 0x47063ED0: call 0x470a32eb */ /* not lifted */ 4517 RECOMP_FLAGS_IN(); 4518 /* test LO8(ebx), 1 */ /* 0x47063ED5: test bl, 1 */ 4519 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 4520 _cf = 0; 4521 _flag_k = FK_NARROW(FK_TEST, 24); 4522 if (TEST_Z(_flag_a, _flag_b)) goto L_47063EE3; /* 0x47063ED8: je 0x47063ee3 */ 4523 L_47063EDA: 4524 PUSH32(esp, edi); /* 0x47063EDA: push edi */ 4525 RECOMP_ICALL(0x470A32A2u); /* 0x47063EDB: call 0x470a32a2 */ /* not lifted */ 4526 RECOMP_FLAGS_IN(); 4527 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4528 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4529 esp = esp + 4; /* 0x47063EE0: add esp, 4 */ 4530 _flag_k = FK_ADD; 4531 L_47063EE3: 4532 eax = edi; /* 0x47063EE3: mov eax, edi */ 4533 edi = POP32_VAL(esp); /* 0x47063EE5: pop edi */ 4534 esi = POP32_VAL(esp); /* 0x47063EE6: pop esi */ 4535 ebx = POP32_VAL(esp); /* 0x47063EE7: pop ebx */ 4536 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47063EE8: ret 4 */ 4537 L_47063EEB: 4538 ecx = esi; /* 0x47063EEB: mov ecx, esi */ 4539 RECOMP_ICALL(0x47063F10u); /* 0x47063EED: call 0x47063f10 */ /* not lifted */ 4540 RECOMP_FLAGS_IN(); 4541 /* test LO8(ebx), 1 */ /* 0x47063EF2: test bl, 1 */ 4542 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 4543 _cf = 0; 4544 _flag_k = FK_NARROW(FK_TEST, 24); 4545 if (TEST_Z(_flag_a, _flag_b)) goto L_47063F00; /* 0x47063EF5: je 0x47063f00 */ 4546 L_47063EF7: 4547 PUSH32(esp, esi); /* 0x47063EF7: push esi */ 4548 RECOMP_ICALL(0x470A32A2u); /* 0x47063EF8: call 0x470a32a2 */ /* not lifted */ 4549 RECOMP_FLAGS_IN(); 4550 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4551 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4552 esp = esp + 4; /* 0x47063EFD: add esp, 4 */ 4553 _flag_k = FK_ADD; 4554 L_47063F00: 4555 eax = esi; /* 0x47063F00: mov eax, esi */ 4556 esi = POP32_VAL(esp); /* 0x47063F02: pop esi */ 4557 ebx = POP32_VAL(esp); /* 0x47063F03: pop ebx */ 4558 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47063F04: ret 4 */ 4559 RECOMP_REGS_OUT(); 4560 } 4561 4562 void sub_47063F10(void) { 4563 int _fpu_cmp = 0; 4564 uint32_t _cf = 0; 4565 int _df = 1; 4566 uint32_t _flag_k = FK_NONE; 4567 uint32_t _flag_a = 0, _flag_b = 0; 4568 uint32_t _itail_tgt = 0; 4569 RECOMP_REGS_LOCALS 4570 RECOMP_ENTER(0x47063F10u); 4571 4572 L_47063F10: 4573 PUSH32(esp, 0xFFFFFFFFu); /* 0x47063F10: push -1 */ 4574 PUSH32(esp, 0x470A823Bu); /* 0x47063F12: push 0x470a823b */ 4575 eax = MEM32(FS_BASE + (0)); /* 0x47063F17: mov eax, dword ptr fs:[0] */ 4576 PUSH32(esp, eax); /* 0x47063F1D: push eax */ 4577 MEM32(FS_BASE + (0)) = esp; /* 0x47063F1E: mov dword ptr fs:[0], esp */ 4578 PUSH32(esp, ecx); /* 0x47063F25: push ecx */ 4579 PUSH32(esp, esi); /* 0x47063F26: push esi */ 4580 esi = ecx; /* 0x47063F27: mov esi, ecx */ 4581 MEM32(esp + 0x4) = esi; /* 0x47063F29: mov dword ptr [esp + 4], esi */ 4582 MEM32(esi) = 0x470AE8D0u; /* 0x47063F2D: mov dword ptr [esi], 0x470ae8d0 */ 4583 MEM32(esp + 0x10) = 0; /* 0x47063F33: mov dword ptr [esp + 0x10], 0 */ 4584 RECOMP_ICALL(0x47064360u); /* 0x47063F3B: call 0x47064360 */ /* not lifted */ 4585 RECOMP_FLAGS_IN(); 4586 ecx = esi + 0x10; /* 0x47063F40: lea ecx, [esi + 0x10] */ 4587 MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x47063F43: mov dword ptr [esp + 0x10], 0xffffffff */ 4588 RECOMP_ICALL(0x4708AA90u); /* 0x47063F4B: call 0x4708aa90 */ /* not lifted */ 4589 RECOMP_FLAGS_IN(); 4590 ecx = MEM32(esp + 0x8); /* 0x47063F50: mov ecx, dword ptr [esp + 8] */ 4591 esi = POP32_VAL(esp); /* 0x47063F54: pop esi */ 4592 MEM32(FS_BASE + (0)) = ecx; /* 0x47063F55: mov dword ptr fs:[0], ecx */ 4593 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4594 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4595 esp = esp + 0x10u; /* 0x47063F5C: add esp, 0x10 */ 4596 _flag_k = FK_ADD; 4597 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47063F5F: ret */ 4598 RECOMP_REGS_OUT(); 4599 } 4600 4601 void sub_47063F60(void) { 4602 int _fpu_cmp = 0; 4603 uint32_t _cf = 0; 4604 int _df = 1; 4605 uint32_t _flag_k = FK_NONE; 4606 uint32_t _flag_a = 0, _flag_b = 0; 4607 uint32_t _itail_tgt = 0; 4608 RECOMP_REGS_LOCALS 4609 RECOMP_ENTER(0x47063F60u); 4610 4611 L_47063F60: 4612 eax = MEM32(FS_BASE + (0)); /* 0x47063F60: mov eax, dword ptr fs:[0] */ 4613 PUSH32(esp, 0xFFFFFFFFu); /* 0x47063F66: push -1 */ 4614 PUSH32(esp, 0x470A8263u); /* 0x47063F68: push 0x470a8263 */ 4615 PUSH32(esp, eax); /* 0x47063F6D: push eax */ 4616 eax = MEM32(0x4710EABC); /* 0x47063F6E: mov eax, dword ptr [0x4710eabc] */ 4617 MEM32(FS_BASE + (0)) = esp; /* 0x47063F73: mov dword ptr fs:[0], esp */ 4618 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4619 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4620 esp = esp - 0xCu; /* 0x47063F7A: sub esp, 0xc */ 4621 _flag_k = FK_CMP; 4622 /* test eax, eax */ /* 0x47063F7D: test eax, eax */ 4623 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4624 _cf = 0; 4625 _flag_k = FK_TEST; 4626 PUSH32(esp, esi); /* 0x47063F7F: push esi */ 4627 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706403E; /* 0x47063F80: jne 0x4706403e */ 4628 L_47063F86: 4629 RECOMP_ICALL(0x47053420u); /* 0x47063F86: call 0x47053420 */ /* not lifted */ 4630 RECOMP_FLAGS_IN(); 4631 esi = eax; /* 0x47063F8B: mov esi, eax */ 4632 ecx = esi; /* 0x47063F8D: mov ecx, esi */ 4633 MEM32(esp + 0x8) = esi; /* 0x47063F8F: mov dword ptr [esp + 8], esi */ 4634 RECOMP_ICALL(0x470870D0u); /* 0x47063F93: call 0x470870d0 */ /* not lifted */ 4635 RECOMP_FLAGS_IN(); 4636 MEM32(esp + 0xC) = eax; /* 0x47063F98: mov dword ptr [esp + 0xc], eax */ 4637 /* cmp eax, 0xFFFFFFFFu */ /* 0x47063F9C: cmp eax, -1 */ 4638 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 4639 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4640 _flag_k = FK_CMP; 4641 MEM32(esp + 0x18) = 0; /* 0x47063F9F: mov dword ptr [esp + 0x18], 0 */ 4642 if (CMP_NE(_flag_a, _flag_b)) goto L_47063FBB; /* 0x47063FA7: jne 0x47063fbb */ 4643 L_47063FA9: 4644 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4645 eax = 0; /* 0x47063FA9: xor eax, eax */ 4646 _cf = 0; 4647 _flag_k = FK_TEST; 4648 esi = POP32_VAL(esp); /* 0x47063FAB: pop esi */ 4649 ecx = MEM32(esp + 0xC); /* 0x47063FAC: mov ecx, dword ptr [esp + 0xc] */ 4650 MEM32(FS_BASE + (0)) = ecx; /* 0x47063FB0: mov dword ptr fs:[0], ecx */ 4651 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 4652 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4653 esp = esp + 0x18u; /* 0x47063FB7: add esp, 0x18 */ 4654 _flag_k = FK_ADD; 4655 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47063FBA: ret */ 4656 L_47063FBB: 4657 eax = MEM32(0x4710EABC); /* 0x47063FBB: mov eax, dword ptr [0x4710eabc] */ 4658 /* test eax, eax */ /* 0x47063FC0: test eax, eax */ 4659 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4660 _cf = 0; 4661 _flag_k = FK_TEST; 4662 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706402F; /* 0x47063FC2: jne 0x4706402f */ 4663 L_47063FC4: 4664 PUSH32(esp, 0xCCu); /* 0x47063FC4: push 0xcc */ 4665 RECOMP_ICALL(0x470A33F2u); /* 0x47063FC9: call 0x470a33f2 */ /* not lifted */ 4666 RECOMP_FLAGS_IN(); 4667 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4668 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4669 esp = esp + 4; /* 0x47063FCE: add esp, 4 */ 4670 _flag_k = FK_ADD; 4671 MEM32(esp + 0x4) = eax; /* 0x47063FD1: mov dword ptr [esp + 4], eax */ 4672 /* test eax, eax */ /* 0x47063FD5: test eax, eax */ 4673 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4674 _cf = 0; 4675 _flag_k = FK_TEST; 4676 MEM8(esp + 0x18) = (uint8_t)(1); /* 0x47063FD7: mov byte ptr [esp + 0x18], 1 */ 4677 if (TEST_Z(_flag_a, _flag_b)) goto L_47063FED; /* 0x47063FDC: je 0x47063fed */ 4678 L_47063FDE: 4679 PUSH32(esp, 0); /* 0x47063FDE: push 0 */ 4680 PUSH32(esp, 0); /* 0x47063FE0: push 0 */ 4681 PUSH32(esp, 0); /* 0x47063FE2: push 0 */ 4682 ecx = eax; /* 0x47063FE4: mov ecx, eax */ 4683 RECOMP_ICALL(0x47063C90u); /* 0x47063FE6: call 0x47063c90 */ /* not lifted */ 4684 RECOMP_FLAGS_IN(); 4685 goto L_47063FEF; /* 0x47063FEB: jmp 0x47063fef */ 4686 L_47063FED: 4687 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4688 eax = 0; /* 0x47063FED: xor eax, eax */ 4689 _cf = 0; 4690 _flag_k = FK_TEST; 4691 L_47063FEF: 4692 /* test eax, eax */ /* 0x47063FEF: test eax, eax */ 4693 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4694 _cf = 0; 4695 _flag_k = FK_TEST; 4696 MEM32(0x4710EABC) = eax; /* 0x47063FF1: mov dword ptr [0x4710eabc], eax */ 4697 if (TEST_NZ(_flag_a, _flag_b)) goto L_47064025; /* 0x47063FF6: jne 0x47064025 */ 4698 L_47063FF8: 4699 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47063FF8: call dword ptr [0x470ac3c8] */ 4700 RECOMP_FLAGS_IN(); 4701 ecx = esi; /* 0x47063FFE: mov ecx, esi */ 4702 MEM32(eax) = 0xCu; /* 0x47064000: mov dword ptr [eax], 0xc */ 4703 MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x47064006: mov dword ptr [esp + 0x18], 0xffffffff */ 4704 RECOMP_ICALL(0x470870E0u); /* 0x4706400E: call 0x470870e0 */ /* not lifted */ 4705 RECOMP_FLAGS_IN(); 4706 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4707 eax = 0; /* 0x47064013: xor eax, eax */ 4708 _cf = 0; 4709 _flag_k = FK_TEST; 4710 esi = POP32_VAL(esp); /* 0x47064015: pop esi */ 4711 ecx = MEM32(esp + 0xC); /* 0x47064016: mov ecx, dword ptr [esp + 0xc] */ 4712 MEM32(FS_BASE + (0)) = ecx; /* 0x4706401A: mov dword ptr fs:[0], ecx */ 4713 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 4714 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4715 esp = esp + 0x18u; /* 0x47064021: add esp, 0x18 */ 4716 _flag_k = FK_ADD; 4717 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47064024: ret */ 4718 L_47064025: 4719 MEM32(0x4710EAC0) = 1; /* 0x47064025: mov dword ptr [0x4710eac0], 1 */ 4720 L_4706402F: 4721 ecx = esi; /* 0x4706402F: mov ecx, esi */ 4722 MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x47064031: mov dword ptr [esp + 0x18], 0xffffffff */ 4723 RECOMP_ICALL(0x470870E0u); /* 0x47064039: call 0x470870e0 */ /* not lifted */ 4724 RECOMP_FLAGS_IN(); 4725 L_4706403E: 4726 ecx = MEM32(esp + 0x10); /* 0x4706403E: mov ecx, dword ptr [esp + 0x10] */ 4727 eax = MEM32(0x4710EABC); /* 0x47064042: mov eax, dword ptr [0x4710eabc] */ 4728 esi = POP32_VAL(esp); /* 0x47064047: pop esi */ 4729 MEM32(FS_BASE + (0)) = ecx; /* 0x47064048: mov dword ptr fs:[0], ecx */ 4730 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 4731 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4732 esp = esp + 0x18u; /* 0x4706404F: add esp, 0x18 */ 4733 _flag_k = FK_ADD; 4734 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47064052: ret */ 4735 RECOMP_REGS_OUT(); 4736 } 4737 4738 void sub_47064060(void) { 4739 int _fpu_cmp = 0; 4740 uint32_t _cf = 0; 4741 int _df = 1; 4742 uint32_t _flag_k = FK_NONE; 4743 uint32_t _flag_a = 0, _flag_b = 0; 4744 uint32_t _itail_tgt = 0; 4745 RECOMP_REGS_LOCALS 4746 RECOMP_ENTER(0x47064060u); 4747 4748 L_47064060: 4749 eax = MEM32(FS_BASE + (0)); /* 0x47064060: mov eax, dword ptr fs:[0] */ 4750 PUSH32(esp, 0xFFFFFFFFu); /* 0x47064066: push -1 */ 4751 PUSH32(esp, 0x470A8278u); /* 0x47064068: push 0x470a8278 */ 4752 PUSH32(esp, eax); /* 0x4706406D: push eax */ 4753 MEM32(FS_BASE + (0)) = esp; /* 0x4706406E: mov dword ptr fs:[0], esp */ 4754 PUSH32(esp, esi); /* 0x47064075: push esi */ 4755 PUSH32(esp, edi); /* 0x47064076: push edi */ 4756 RECOMP_ICALL(0x47053420u); /* 0x47064077: call 0x47053420 */ /* not lifted */ 4757 RECOMP_FLAGS_IN(); 4758 esi = eax; /* 0x4706407C: mov esi, eax */ 4759 ecx = esi; /* 0x4706407E: mov ecx, esi */ 4760 RECOMP_ICALL(0x470870D0u); /* 0x47064080: call 0x470870d0 */ /* not lifted */ 4761 RECOMP_FLAGS_IN(); 4762 /* cmp eax, 0xFFFFFFFFu */ /* 0x47064085: 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_4706409D; /* 0x47064088: jne 0x4706409d */ 4767 L_4706408A: 4768 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4769 eax = 0; /* 0x4706408A: xor eax, eax */ 4770 _cf = 0; 4771 _flag_k = FK_TEST; 4772 ecx = MEM32(esp + 0x8); /* 0x4706408C: mov ecx, dword ptr [esp + 8] */ 4773 MEM32(FS_BASE + (0)) = ecx; /* 0x47064090: mov dword ptr fs:[0], ecx */ 4774 edi = POP32_VAL(esp); /* 0x47064097: pop edi */ 4775 esi = POP32_VAL(esp); /* 0x47064098: pop esi */ 4776 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4777 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4778 esp = esp + 0xCu; /* 0x47064099: add esp, 0xc */ 4779 _flag_k = FK_ADD; 4780 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706409C: ret */ 4781 L_4706409D: 4782 eax = MEM32(esp + 0x18); /* 0x4706409D: mov eax, dword ptr [esp + 0x18] */ 4783 edi = MEM32(0x4710EABC); /* 0x470640A1: mov edi, dword ptr [0x4710eabc] */ 4784 ecx = esi; /* 0x470640A7: mov ecx, esi */ 4785 MEM32(0x4710EAC0) = 0; /* 0x470640A9: mov dword ptr [0x4710eac0], 0 */ 4786 MEM32(0x4710EABC) = eax; /* 0x470640B3: mov dword ptr [0x4710eabc], eax */ 4787 MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x470640B8: mov dword ptr [esp + 0x10], 0xffffffff */ 4788 RECOMP_ICALL(0x470870E0u); /* 0x470640C0: call 0x470870e0 */ /* not lifted */ 4789 RECOMP_FLAGS_IN(); 4790 ecx = MEM32(esp + 0x8); /* 0x470640C5: mov ecx, dword ptr [esp + 8] */ 4791 eax = edi; /* 0x470640C9: mov eax, edi */ 4792 edi = POP32_VAL(esp); /* 0x470640CB: pop edi */ 4793 MEM32(FS_BASE + (0)) = ecx; /* 0x470640CC: mov dword ptr fs:[0], ecx */ 4794 esi = POP32_VAL(esp); /* 0x470640D3: pop esi */ 4795 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4796 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4797 esp = esp + 0xCu; /* 0x470640D4: add esp, 0xc */ 4798 _flag_k = FK_ADD; 4799 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470640D7: ret */ 4800 RECOMP_REGS_OUT(); 4801 } 4802 4803 void sub_470640E0(void) { 4804 int _fpu_cmp = 0; 4805 uint32_t _cf = 0; 4806 int _df = 1; 4807 uint32_t _flag_k = FK_NONE; 4808 uint32_t _flag_a = 0, _flag_b = 0; 4809 uint32_t _itail_tgt = 0; 4810 RECOMP_REGS_LOCALS 4811 RECOMP_ENTER(0x470640E0u); 4812 4813 L_470640E0: 4814 PUSH32(esp, 0xFFFFFFFFu); /* 0x470640E0: push -1 */ 4815 PUSH32(esp, 0x470A8298u); /* 0x470640E2: push 0x470a8298 */ 4816 eax = MEM32(FS_BASE + (0)); /* 0x470640E7: mov eax, dword ptr fs:[0] */ 4817 PUSH32(esp, eax); /* 0x470640ED: push eax */ 4818 MEM32(FS_BASE + (0)) = esp; /* 0x470640EE: mov dword ptr fs:[0], esp */ 4819 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4820 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4821 esp = esp - 8; /* 0x470640F5: sub esp, 8 */ 4822 _flag_k = FK_CMP; 4823 PUSH32(esp, esi); /* 0x470640F8: push esi */ 4824 RECOMP_ICALL(0x47053420u); /* 0x470640F9: call 0x47053420 */ /* not lifted */ 4825 RECOMP_FLAGS_IN(); 4826 esi = eax; /* 0x470640FE: mov esi, eax */ 4827 ecx = esi; /* 0x47064100: mov ecx, esi */ 4828 MEM32(esp + 0x4) = esi; /* 0x47064102: mov dword ptr [esp + 4], esi */ 4829 RECOMP_ICALL(0x470870D0u); /* 0x47064106: call 0x470870d0 */ /* not lifted */ 4830 RECOMP_FLAGS_IN(); 4831 MEM32(esp + 0x8) = eax; /* 0x4706410B: mov dword ptr [esp + 8], eax */ 4832 /* cmp eax, 0xFFFFFFFFu */ /* 0x4706410F: cmp eax, -1 */ 4833 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 4834 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4835 _flag_k = FK_CMP; 4836 MEM32(esp + 0x14) = 0; /* 0x47064112: mov dword ptr [esp + 0x14], 0 */ 4837 if (CMP_EQ(_flag_a, _flag_b)) goto L_47064158; /* 0x4706411A: je 0x47064158 */ 4838 L_4706411C: 4839 eax = MEM32(0x4710EAC0); /* 0x4706411C: mov eax, dword ptr [0x4710eac0] */ 4840 /* test eax, eax */ /* 0x47064121: test eax, eax */ 4841 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4842 _cf = 0; 4843 _flag_k = FK_TEST; 4844 if (TEST_Z(_flag_a, _flag_b)) goto L_47064149; /* 0x47064123: je 0x47064149 */ 4845 L_47064125: 4846 ecx = MEM32(0x4710EABC); /* 0x47064125: mov ecx, dword ptr [0x4710eabc] */ 4847 /* test ecx, ecx */ /* 0x4706412B: test ecx, ecx */ 4848 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4849 _cf = 0; 4850 _flag_k = FK_TEST; 4851 if (TEST_Z(_flag_a, _flag_b)) goto L_47064135; /* 0x4706412D: je 0x47064135 */ 4852 L_4706412F: 4853 eax = MEM32(ecx); /* 0x4706412F: mov eax, dword ptr [ecx] */ 4854 PUSH32(esp, 1); /* 0x47064131: push 1 */ 4855 RECOMP_ICALL(MEM32(eax)); /* 0x47064133: call dword ptr [eax] */ 4856 RECOMP_FLAGS_IN(); 4857 L_47064135: 4858 MEM32(0x4710EABC) = 0; /* 0x47064135: mov dword ptr [0x4710eabc], 0 */ 4859 MEM32(0x4710EAC0) = 0; /* 0x4706413F: mov dword ptr [0x4710eac0], 0 */ 4860 L_47064149: 4861 ecx = esi; /* 0x47064149: mov ecx, esi */ 4862 MEM32(esp + 0x14) = 0xFFFFFFFFu; /* 0x4706414B: mov dword ptr [esp + 0x14], 0xffffffff */ 4863 RECOMP_ICALL(0x470870E0u); /* 0x47064153: call 0x470870e0 */ /* not lifted */ 4864 RECOMP_FLAGS_IN(); 4865 L_47064158: 4866 ecx = MEM32(esp + 0xC); /* 0x47064158: mov ecx, dword ptr [esp + 0xc] */ 4867 esi = POP32_VAL(esp); /* 0x4706415C: pop esi */ 4868 MEM32(FS_BASE + (0)) = ecx; /* 0x4706415D: mov dword ptr fs:[0], ecx */ 4869 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 4870 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4871 esp = esp + 0x14u; /* 0x47064164: add esp, 0x14 */ 4872 _flag_k = FK_ADD; 4873 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47064167: ret */ 4874 RECOMP_REGS_OUT(); 4875 } 4876 4877 void sub_47064170(void) { 4878 int _fpu_cmp = 0; 4879 uint32_t _cf = 0; 4880 int _df = 1; 4881 uint32_t _flag_k = FK_NONE; 4882 uint32_t _flag_a = 0, _flag_b = 0; 4883 uint32_t _itail_tgt = 0; 4884 RECOMP_REGS_LOCALS 4885 RECOMP_ENTER(0x47064170u); 4886 4887 L_47064170: 4888 eax = MEM32(0x4710E8C0); /* 0x47064170: mov eax, dword ptr [0x4710e8c0] */ 4889 PUSH32(esp, esi); /* 0x47064175: push esi */ 4890 PUSH32(esp, edi); /* 0x47064176: push edi */ 4891 edi = eax + 0x4; /* 0x47064177: lea edi, [eax + 4] */ 4892 eax = MEM32(0x4710EAC4); /* 0x4706417A: mov eax, dword ptr [0x4710eac4] */ 4893 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4894 esi = 0; /* 0x4706417F: xor esi, esi */ 4895 _cf = 0; 4896 _flag_k = FK_TEST; 4897 /* test eax, eax */ /* 0x47064181: test eax, eax */ 4898 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4899 _cf = 0; 4900 _flag_k = FK_TEST; 4901 if (TEST_Z(_flag_a, _flag_b)) goto L_4706418A; /* 0x47064183: je 0x4706418a */ 4902 L_47064185: 4903 edi = POP32_VAL(esp); /* 0x47064185: pop edi */ 4904 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4905 eax = 0; /* 0x47064186: xor eax, eax */ 4906 _cf = 0; 4907 _flag_k = FK_TEST; 4908 esi = POP32_VAL(esp); /* 0x47064188: pop esi */ 4909 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47064189: ret */ 4910 L_4706418A: 4911 PUSH32(esp, ebx); /* 0x4706418A: push ebx */ 4912 ebx = MEM32(0x470AC180); /* 0x4706418B: mov ebx, dword ptr [0x470ac180] */ 4913 PUSH32(esp, ebp); /* 0x47064191: push ebp */ 4914 PUSH32(esp, edi); /* 0x47064192: push edi */ 4915 RECOMP_ICALL(ebx); /* 0x47064193: call ebx */ 4916 RECOMP_FLAGS_IN(); 4917 ecx = MEM32(0x4710EAC8); /* 0x47064195: mov ecx, dword ptr [0x4710eac8] */ 4918 ebp = MEM32(0x470AC190); /* 0x4706419B: mov ebp, dword ptr [0x470ac190] */ 4919 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4920 ecx = ecx + 1; /* 0x470641A1: inc ecx */ 4921 _flag_k = FK_INC; 4922 PUSH32(esp, edi); /* 0x470641A2: push edi */ 4923 MEM32(0x4710EAC8) = ecx; /* 0x470641A3: mov dword ptr [0x4710eac8], ecx */ 4924 RECOMP_ICALL(ebp); /* 0x470641A9: call ebp */ 4925 RECOMP_FLAGS_IN(); 4926 L_470641AB: 4927 eax = MEM32(0x4710EAC4); /* 0x470641AB: mov eax, dword ptr [0x4710eac4] */ 4928 /* test eax, eax */ /* 0x470641B0: test eax, eax */ 4929 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4930 _cf = 0; 4931 _flag_k = FK_TEST; 4932 if (TEST_NZ(_flag_a, _flag_b)) goto L_470641DC; /* 0x470641B2: jne 0x470641dc */ 4933 L_470641B4: 4934 PUSH32(esp, 0); /* 0x470641B4: push 0 */ 4935 RECOMP_ICALL(0x47063F60u); /* 0x470641B6: call 0x47063f60 */ /* not lifted */ 4936 RECOMP_FLAGS_IN(); 4937 edx = MEM32(eax); /* 0x470641BB: mov edx, dword ptr [eax] */ 4938 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4939 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4940 esp = esp + 4; /* 0x470641BD: add esp, 4 */ 4941 _flag_k = FK_ADD; 4942 ecx = eax; /* 0x470641C0: mov ecx, eax */ 4943 RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x470641C2: call dword ptr [edx + 0x20] */ 4944 RECOMP_FLAGS_IN(); 4945 esi = eax; /* 0x470641C5: mov esi, eax */ 4946 RECOMP_ICALL(0x47075F20u); /* 0x470641C7: call 0x47075f20 */ /* not lifted */ 4947 RECOMP_FLAGS_IN(); 4948 /* test eax, eax */ /* 0x470641CC: test eax, eax */ 4949 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4950 _cf = 0; 4951 _flag_k = FK_TEST; 4952 if (TEST_Z(_flag_a, _flag_b)) goto L_470641D7; /* 0x470641CE: je 0x470641d7 */ 4953 L_470641D0: 4954 RECOMP_ICALL(0x47075C30u); /* 0x470641D0: call 0x47075c30 */ /* not lifted */ 4955 RECOMP_FLAGS_IN(); 4956 RECOMP_BACKEDGE(); 4957 goto L_470641AB; /* 0x470641D5: jmp 0x470641ab */ 4958 L_470641D7: 4959 /* cmp esi, 0xFFFFFFFFu */ /* 0x470641D7: cmp esi, -1 */ 4960 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu); 4961 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4962 _flag_k = FK_CMP; 4963 RECOMP_BACKEDGE(); 4964 if (CMP_NE(_flag_a, _flag_b)) goto L_470641AB; /* 0x470641DA: jne 0x470641ab */ 4965 L_470641DC: 4966 PUSH32(esp, edi); /* 0x470641DC: push edi */ 4967 RECOMP_ICALL(ebx); /* 0x470641DD: call ebx */ 4968 RECOMP_FLAGS_IN(); 4969 ecx = MEM32(0x4710EAC8); /* 0x470641DF: mov ecx, dword ptr [0x4710eac8] */ 4970 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4971 ecx = ecx - 1; /* 0x470641E5: dec ecx */ 4972 _flag_k = FK_DEC; 4973 PUSH32(esp, edi); /* 0x470641E6: push edi */ 4974 MEM32(0x4710EAC8) = ecx; /* 0x470641E7: mov dword ptr [0x4710eac8], ecx */ 4975 RECOMP_ICALL(ebp); /* 0x470641ED: call ebp */ 4976 RECOMP_FLAGS_IN(); 4977 ebp = POP32_VAL(esp); /* 0x470641EF: pop ebp */ 4978 ebx = POP32_VAL(esp); /* 0x470641F0: pop ebx */ 4979 edi = POP32_VAL(esp); /* 0x470641F1: pop edi */ 4980 eax = esi; /* 0x470641F2: mov eax, esi */ 4981 esi = POP32_VAL(esp); /* 0x470641F4: pop esi */ 4982 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470641F5: ret */ 4983 RECOMP_REGS_OUT(); 4984 } 4985 4986 void sub_47064200(void) { 4987 int _fpu_cmp = 0; 4988 uint32_t _cf = 0; 4989 int _df = 1; 4990 uint32_t _flag_k = FK_NONE; 4991 uint32_t _flag_a = 0, _flag_b = 0; 4992 uint32_t _itail_tgt = 0; 4993 RECOMP_REGS_LOCALS 4994 RECOMP_ENTER(0x47064200u); 4995 4996 L_47064200: 4997 eax = MEM32(0x4710E8C0); /* 0x47064200: mov eax, dword ptr [0x4710e8c0] */ 4998 PUSH32(esp, ebx); /* 0x47064205: push ebx */ 4999 PUSH32(esp, esi); /* 0x47064206: push esi */ 5000 PUSH32(esp, edi); /* 0x47064207: push edi */ 5001 edi = eax + 0x4; /* 0x47064208: lea edi, [eax + 4] */ 5002 eax = MEM32(0x4710EAC4); /* 0x4706420B: mov eax, dword ptr [0x4710eac4] */ 5003 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5004 esi = 0; /* 0x47064210: xor esi, esi */ 5005 _cf = 0; 5006 _flag_k = FK_TEST; 5007 /* test eax, eax */ /* 0x47064212: test eax, eax */ 5008 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5009 _cf = 0; 5010 _flag_k = FK_TEST; 5011 if (TEST_NZ(_flag_a, _flag_b)) goto L_470642BA; /* 0x47064214: jne 0x470642ba */ 5012 L_4706421A: 5013 ebx = MEM32(esp + 0x10); /* 0x4706421A: mov ebx, dword ptr [esp + 0x10] */ 5014 ecx = MEM32(ebx); /* 0x4706421E: mov ecx, dword ptr [ebx] */ 5015 /* cmp ecx, MEM32(0x4710E9A8) */ /* 0x47064220: cmp ecx, dword ptr [0x4710e9a8] */ 5016 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(0x4710E9A8)); 5017 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5018 _flag_k = FK_CMP; 5019 if (CMP_NE(_flag_a, _flag_b)) goto L_47064237; /* 0x47064226: jne 0x47064237 */ 5020 L_47064228: 5021 edx = MEM32(ebx + 0x4); /* 0x47064228: mov edx, dword ptr [ebx + 4] */ 5022 /* cmp edx, MEM32(0x4710E9AC) */ /* 0x4706422B: cmp edx, dword ptr [0x4710e9ac] */ 5023 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(0x4710E9AC)); 5024 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5025 _flag_k = FK_CMP; 5026 if (CMP_EQ(_flag_a, _flag_b)) goto L_470642BA; /* 0x47064231: je 0x470642ba */ 5027 L_47064237: 5028 PUSH32(esp, ebp); /* 0x47064237: push ebp */ 5029 ebp = MEM32(0x470AC180); /* 0x47064238: mov ebp, dword ptr [0x470ac180] */ 5030 PUSH32(esp, edi); /* 0x4706423E: push edi */ 5031 RECOMP_ICALL(ebp); /* 0x4706423F: call ebp */ 5032 RECOMP_FLAGS_IN(); 5033 ecx = MEM32(0x4710EAC8); /* 0x47064241: mov ecx, dword ptr [0x4710eac8] */ 5034 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5035 ecx = ecx + 1; /* 0x47064247: inc ecx */ 5036 _flag_k = FK_INC; 5037 PUSH32(esp, edi); /* 0x47064248: push edi */ 5038 MEM32(0x4710EAC8) = ecx; /* 0x47064249: mov dword ptr [0x4710eac8], ecx */ 5039 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4706424F: call dword ptr [0x470ac190] */ 5040 RECOMP_FLAGS_IN(); 5041 L_47064255: 5042 eax = MEM32(0x4710EAC4); /* 0x47064255: mov eax, dword ptr [0x4710eac4] */ 5043 /* test eax, eax */ /* 0x4706425A: test eax, eax */ 5044 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5045 _cf = 0; 5046 _flag_k = FK_TEST; 5047 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706429C; /* 0x4706425C: jne 0x4706429c */ 5048 L_4706425E: 5049 eax = MEM32(ebx); /* 0x4706425E: mov eax, dword ptr [ebx] */ 5050 /* cmp eax, MEM32(0x4710E9A8) */ /* 0x47064260: cmp eax, dword ptr [0x4710e9a8] */ 5051 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(0x4710E9A8)); 5052 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5053 _flag_k = FK_CMP; 5054 if (CMP_NE(_flag_a, _flag_b)) goto L_47064273; /* 0x47064266: jne 0x47064273 */ 5055 L_47064268: 5056 ecx = MEM32(ebx + 0x4); /* 0x47064268: mov ecx, dword ptr [ebx + 4] */ 5057 /* cmp ecx, MEM32(0x4710E9AC) */ /* 0x4706426B: cmp ecx, dword ptr [0x4710e9ac] */ 5058 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(0x4710E9AC)); 5059 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5060 _flag_k = FK_CMP; 5061 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706429C; /* 0x47064271: je 0x4706429c */ 5062 L_47064273: 5063 PUSH32(esp, 0); /* 0x47064273: push 0 */ 5064 RECOMP_ICALL(0x47063F60u); /* 0x47064275: call 0x47063f60 */ /* not lifted */ 5065 RECOMP_FLAGS_IN(); 5066 edx = MEM32(eax); /* 0x4706427A: mov edx, dword ptr [eax] */ 5067 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5068 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5069 esp = esp + 4; /* 0x4706427C: add esp, 4 */ 5070 _flag_k = FK_ADD; 5071 PUSH32(esp, ebx); /* 0x4706427F: push ebx */ 5072 ecx = eax; /* 0x47064280: mov ecx, eax */ 5073 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x47064282: call dword ptr [edx + 0x24] */ 5074 RECOMP_FLAGS_IN(); 5075 esi = eax; /* 0x47064285: mov esi, eax */ 5076 RECOMP_ICALL(0x47075F20u); /* 0x47064287: call 0x47075f20 */ /* not lifted */ 5077 RECOMP_FLAGS_IN(); 5078 /* test eax, eax */ /* 0x4706428C: test eax, eax */ 5079 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5080 _cf = 0; 5081 _flag_k = FK_TEST; 5082 if (TEST_Z(_flag_a, _flag_b)) goto L_47064297; /* 0x4706428E: je 0x47064297 */ 5083 L_47064290: 5084 RECOMP_ICALL(0x47075C30u); /* 0x47064290: call 0x47075c30 */ /* not lifted */ 5085 RECOMP_FLAGS_IN(); 5086 RECOMP_BACKEDGE(); 5087 goto L_47064255; /* 0x47064295: jmp 0x47064255 */ 5088 L_47064297: 5089 /* cmp esi, 0xFFFFFFFFu */ /* 0x47064297: cmp esi, -1 */ 5090 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu); 5091 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5092 _flag_k = FK_CMP; 5093 RECOMP_BACKEDGE(); 5094 if (CMP_NE(_flag_a, _flag_b)) goto L_47064255; /* 0x4706429A: jne 0x47064255 */ 5095 L_4706429C: 5096 PUSH32(esp, edi); /* 0x4706429C: push edi */ 5097 RECOMP_ICALL(ebp); /* 0x4706429D: call ebp */ 5098 RECOMP_FLAGS_IN(); 5099 ecx = MEM32(0x4710EAC8); /* 0x4706429F: mov ecx, dword ptr [0x4710eac8] */ 5100 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5101 ecx = ecx - 1; /* 0x470642A5: dec ecx */ 5102 _flag_k = FK_DEC; 5103 PUSH32(esp, edi); /* 0x470642A6: push edi */ 5104 MEM32(0x4710EAC8) = ecx; /* 0x470642A7: mov dword ptr [0x4710eac8], ecx */ 5105 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470642AD: call dword ptr [0x470ac190] */ 5106 RECOMP_FLAGS_IN(); 5107 ebp = POP32_VAL(esp); /* 0x470642B3: pop ebp */ 5108 edi = POP32_VAL(esp); /* 0x470642B4: pop edi */ 5109 eax = esi; /* 0x470642B5: mov eax, esi */ 5110 esi = POP32_VAL(esp); /* 0x470642B7: pop esi */ 5111 ebx = POP32_VAL(esp); /* 0x470642B8: pop ebx */ 5112 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470642B9: ret */ 5113 L_470642BA: 5114 edi = POP32_VAL(esp); /* 0x470642BA: pop edi */ 5115 esi = POP32_VAL(esp); /* 0x470642BB: pop esi */ 5116 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5117 eax = 0; /* 0x470642BC: xor eax, eax */ 5118 _cf = 0; 5119 _flag_k = FK_TEST; 5120 ebx = POP32_VAL(esp); /* 0x470642BE: pop ebx */ 5121 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470642BF: ret */ 5122 RECOMP_REGS_OUT(); 5123 } 5124 5125 void sub_470642C0(void) { 5126 int _fpu_cmp = 0; 5127 uint32_t _cf = 0; 5128 int _df = 1; 5129 uint32_t _flag_k = FK_NONE; 5130 uint32_t _flag_a = 0, _flag_b = 0; 5131 uint32_t _itail_tgt = 0; 5132 RECOMP_REGS_LOCALS 5133 RECOMP_ENTER(0x470642C0u); 5134 5135 L_470642C0: 5136 PUSH32(esp, 0xFFFFFFFFu); /* 0x470642C0: push -1 */ 5137 PUSH32(esp, 0x470A82B8u); /* 0x470642C2: push 0x470a82b8 */ 5138 eax = MEM32(FS_BASE + (0)); /* 0x470642C7: mov eax, dword ptr fs:[0] */ 5139 PUSH32(esp, eax); /* 0x470642CD: push eax */ 5140 MEM32(FS_BASE + (0)) = esp; /* 0x470642CE: mov dword ptr fs:[0], esp */ 5141 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5142 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5143 esp = esp - 8; /* 0x470642D5: sub esp, 8 */ 5144 _flag_k = FK_CMP; 5145 eax = MEM32(0x4710E8C0); /* 0x470642D8: mov eax, dword ptr [0x4710e8c0] */ 5146 PUSH32(esp, esi); /* 0x470642DD: push esi */ 5147 esi = eax + 0x4; /* 0x470642DE: lea esi, [eax + 4] */ 5148 PUSH32(esp, edi); /* 0x470642E1: push edi */ 5149 PUSH32(esp, esi); /* 0x470642E2: push esi */ 5150 MEM32(esp + 0xC) = esi; /* 0x470642E3: mov dword ptr [esp + 0xc], esi */ 5151 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x470642E7: call dword ptr [0x470ac180] */ 5152 RECOMP_FLAGS_IN(); 5153 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5154 eax = 0; /* 0x470642ED: xor eax, eax */ 5155 _cf = 0; 5156 _flag_k = FK_TEST; 5157 MEM32(esp + 0xC) = eax; /* 0x470642EF: mov dword ptr [esp + 0xc], eax */ 5158 edi = MEM32(0x4710EAC8); /* 0x470642F3: mov edi, dword ptr [0x4710eac8] */ 5159 PUSH32(esp, eax); /* 0x470642F9: push eax */ 5160 MEM32(esp + 0x1C) = eax; /* 0x470642FA: mov dword ptr [esp + 0x1c], eax */ 5161 MEM32(0x4710EAC4) = 1; /* 0x470642FE: mov dword ptr [0x4710eac4], 1 */ 5162 MEM32(0x4710EAC8) = eax; /* 0x47064308: mov dword ptr [0x4710eac8], eax */ 5163 RECOMP_ICALL(0x47063F60u); /* 0x4706430D: call 0x47063f60 */ /* not lifted */ 5164 RECOMP_FLAGS_IN(); 5165 edx = MEM32(eax); /* 0x47064312: mov edx, dword ptr [eax] */ 5166 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5167 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5168 esp = esp + 4; /* 0x47064314: add esp, 4 */ 5169 _flag_k = FK_ADD; 5170 ecx = eax; /* 0x47064317: mov ecx, eax */ 5171 RECOMP_ICALL(MEM32(edx + 0x30)); /* 0x47064319: call dword ptr [edx + 0x30] */ 5172 RECOMP_FLAGS_IN(); 5173 edx = MEM32(eax); /* 0x4706431C: mov edx, dword ptr [eax] */ 5174 PUSH32(esp, edi); /* 0x4706431E: push edi */ 5175 ecx = eax; /* 0x4706431F: mov ecx, eax */ 5176 RECOMP_ICALL(MEM32(edx + 0x94)); /* 0x47064321: call dword ptr [edx + 0x94] */ 5177 RECOMP_FLAGS_IN(); 5178 PUSH32(esp, esi); /* 0x47064327: push esi */ 5179 edi = eax; /* 0x47064328: mov edi, eax */ 5180 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4706432A: call dword ptr [0x470ac190] */ 5181 RECOMP_FLAGS_IN(); 5182 ecx = MEM32(esp + 0x10); /* 0x47064330: mov ecx, dword ptr [esp + 0x10] */ 5183 eax = edi; /* 0x47064334: mov eax, edi */ 5184 edi = POP32_VAL(esp); /* 0x47064336: pop edi */ 5185 esi = POP32_VAL(esp); /* 0x47064337: pop esi */ 5186 MEM32(FS_BASE + (0)) = ecx; /* 0x47064338: mov dword ptr fs:[0], ecx */ 5187 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 5188 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5189 esp = esp + 0x14u; /* 0x4706433F: add esp, 0x14 */ 5190 _flag_k = FK_ADD; 5191 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47064342: ret */ 5192 RECOMP_REGS_OUT(); 5193 } 5194 5195 void sub_47064350(void) { 5196 int _fpu_cmp = 0; 5197 uint32_t _cf = 0; 5198 int _df = 1; 5199 uint32_t _flag_k = FK_NONE; 5200 uint32_t _flag_a = 0, _flag_b = 0; 5201 uint32_t _itail_tgt = 0; 5202 RECOMP_REGS_LOCALS 5203 RECOMP_ENTER(0x47064350u); 5204 5205 L_47064350: 5206 ecx = MEM32(0x4710EAC4); /* 0x47064350: mov ecx, dword ptr [0x4710eac4] */ 5207 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5208 eax = 0; /* 0x47064356: xor eax, eax */ 5209 _cf = 0; 5210 _flag_k = FK_TEST; 5211 /* test ecx, ecx */ /* 0x47064358: test ecx, ecx */ 5212 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5213 _cf = 0; 5214 _flag_k = FK_TEST; 5215 SET_LO8(eax, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x4706435A: setne al */ 5216 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706435D: ret */ 5217 RECOMP_REGS_OUT(); 5218 } 5219 5220 void sub_47064360(void) { 5221 int _fpu_cmp = 0; 5222 uint32_t _cf = 0; 5223 int _df = 1; 5224 uint32_t _flag_k = FK_NONE; 5225 uint32_t _flag_a = 0, _flag_b = 0; 5226 uint32_t _itail_tgt = 0; 5227 RECOMP_REGS_LOCALS 5228 RECOMP_ENTER(0x47064360u); 5229 5230 L_47064360: 5231 PUSH32(esp, esi); /* 0x47064360: push esi */ 5232 esi = ecx; /* 0x47064361: mov esi, ecx */ 5233 eax = MEM32(esi); /* 0x47064363: mov eax, dword ptr [esi] */ 5234 PUSH32(esp, edi); /* 0x47064365: push edi */ 5235 RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x47064366: call dword ptr [eax + 0x30] */ 5236 RECOMP_FLAGS_IN(); 5237 edx = MEM32(eax); /* 0x47064369: mov edx, dword ptr [eax] */ 5238 ecx = eax; /* 0x4706436B: mov ecx, eax */ 5239 RECOMP_ICALL(MEM32(edx + 0x40)); /* 0x4706436D: call dword ptr [edx + 0x40] */ 5240 RECOMP_FLAGS_IN(); 5241 /* cmp eax, 0xFFFFFFFFu */ /* 0x47064370: cmp eax, -1 */ 5242 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 5243 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5244 _flag_k = FK_CMP; 5245 if (CMP_NE(_flag_a, _flag_b)) goto L_470643DC; /* 0x47064373: jne 0x470643dc */ 5246 L_47064375: 5247 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47064375: call dword ptr [0x470ac150] */ 5248 RECOMP_FLAGS_IN(); 5249 edi = eax; /* 0x4706437B: mov edi, eax */ 5250 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706437D: call dword ptr [0x470ac3c8] */ 5251 RECOMP_FLAGS_IN(); 5252 eax = MEM32(eax); /* 0x47064383: mov eax, dword ptr [eax] */ 5253 /* test eax, eax */ /* 0x47064385: test eax, eax */ 5254 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5255 _cf = 0; 5256 _flag_k = FK_TEST; 5257 if (TEST_Z(_flag_a, _flag_b)) goto L_4706438B; /* 0x47064387: je 0x4706438b */ 5258 L_47064389: 5259 edi = eax; /* 0x47064389: mov edi, eax */ 5260 L_4706438B: 5261 RECOMP_ICALL(0x47039020u); /* 0x4706438B: call 0x47039020 */ /* not lifted */ 5262 RECOMP_FLAGS_IN(); 5263 esi = eax; /* 0x47064390: mov esi, eax */ 5264 ecx = esi; /* 0x47064392: mov ecx, esi */ 5265 RECOMP_ICALL(0x4703B210u); /* 0x47064394: call 0x4703b210 */ /* not lifted */ 5266 RECOMP_FLAGS_IN(); 5267 PUSH32(esp, eax); /* 0x47064399: push eax */ 5268 ecx = esi; /* 0x4706439A: mov ecx, esi */ 5269 RECOMP_ICALL(0x4703B240u); /* 0x4706439C: call 0x4703b240 */ /* not lifted */ 5270 RECOMP_FLAGS_IN(); 5271 PUSH32(esp, eax); /* 0x470643A1: push eax */ 5272 ecx = esi; /* 0x470643A2: mov ecx, esi */ 5273 RECOMP_ICALL(0x4703B080u); /* 0x470643A4: call 0x4703b080 */ /* not lifted */ 5274 RECOMP_FLAGS_IN(); 5275 PUSH32(esp, eax); /* 0x470643A9: push eax */ 5276 PUSH32(esp, edi); /* 0x470643AA: push edi */ 5277 PUSH32(esp, 0xFFFFFFFFu); /* 0x470643AB: push -1 */ 5278 PUSH32(esp, 0x204u); /* 0x470643AD: push 0x204 */ 5279 PUSH32(esp, 0x471098D0u); /* 0x470643B2: push 0x471098d0 */ 5280 ecx = esi; /* 0x470643B7: mov ecx, esi */ 5281 RECOMP_ICALL(0x4703A340u); /* 0x470643B9: call 0x4703a340 */ /* not lifted */ 5282 RECOMP_FLAGS_IN(); 5283 PUSH32(esp, 0x47109A84u); /* 0x470643BE: push 0x47109a84 */ 5284 PUSH32(esp, 0x47109890u); /* 0x470643C3: push 0x47109890 */ 5285 PUSH32(esp, 0x80u); /* 0x470643C8: push 0x80 */ 5286 PUSH32(esp, esi); /* 0x470643CD: push esi */ 5287 RECOMP_ICALL(0x47039830u); /* 0x470643CE: call 0x47039830 */ /* not lifted */ 5288 RECOMP_FLAGS_IN(); 5289 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5290 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5291 esp = esp + 0x10u; /* 0x470643D3: add esp, 0x10 */ 5292 _flag_k = FK_ADD; 5293 edi = POP32_VAL(esp); /* 0x470643D6: pop edi */ 5294 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5295 eax = eax | 0xFFFFFFFFu; /* 0x470643D7: or eax, 0xffffffff */ 5296 _cf = 0; 5297 _flag_k = FK_TEST; 5298 esi = POP32_VAL(esp); /* 0x470643DA: pop esi */ 5299 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470643DB: ret */ 5300 L_470643DC: 5301 eax = MEM32(esi + 0x8); /* 0x470643DC: mov eax, dword ptr [esi + 8] */ 5302 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5303 edi = 0; /* 0x470643DF: xor edi, edi */ 5304 _cf = 0; 5305 _flag_k = FK_TEST; 5306 /* cmp eax, edi */ /* 0x470643E1: cmp eax, edi */ 5307 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5308 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5309 _flag_k = FK_CMP; 5310 if (CMP_EQ(_flag_a, _flag_b)) goto L_470643FB; /* 0x470643E3: je 0x470643fb */ 5311 L_470643E5: 5312 eax = MEM32(esi); /* 0x470643E5: mov eax, dword ptr [esi] */ 5313 ecx = esi; /* 0x470643E7: mov ecx, esi */ 5314 RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x470643E9: call dword ptr [eax + 0x30] */ 5315 RECOMP_FLAGS_IN(); 5316 /* cmp eax, edi */ /* 0x470643EC: cmp eax, edi */ 5317 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5318 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5319 _flag_k = FK_CMP; 5320 if (CMP_EQ(_flag_a, _flag_b)) goto L_470643F8; /* 0x470643EE: je 0x470643f8 */ 5321 L_470643F0: 5322 edx = MEM32(eax); /* 0x470643F0: mov edx, dword ptr [eax] */ 5323 PUSH32(esp, 1); /* 0x470643F2: push 1 */ 5324 ecx = eax; /* 0x470643F4: mov ecx, eax */ 5325 RECOMP_ICALL(MEM32(edx)); /* 0x470643F6: call dword ptr [edx] */ 5326 RECOMP_FLAGS_IN(); 5327 L_470643F8: 5328 MEM32(esi + 0x4) = edi; /* 0x470643F8: mov dword ptr [esi + 4], edi */ 5329 L_470643FB: 5330 ecx = MEM32(esi + 0xC); /* 0x470643FB: mov ecx, dword ptr [esi + 0xc] */ 5331 /* cmp ecx, edi */ /* 0x470643FE: cmp ecx, edi */ 5332 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 5333 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5334 _flag_k = FK_CMP; 5335 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706440B; /* 0x47064400: je 0x4706440b */ 5336 L_47064402: 5337 eax = MEM32(ecx); /* 0x47064402: mov eax, dword ptr [ecx] */ 5338 PUSH32(esp, 1); /* 0x47064404: push 1 */ 5339 RECOMP_ICALL(MEM32(eax)); /* 0x47064406: call dword ptr [eax] */ 5340 RECOMP_FLAGS_IN(); 5341 MEM32(esi + 0xC) = edi; /* 0x47064408: mov dword ptr [esi + 0xc], edi */ 5342 L_4706440B: 5343 /* cmp MEM32(esi + 0xC8), edi */ /* 0x4706440B: cmp dword ptr [esi + 0xc8], edi */ 5344 _flag_a = (uint32_t)(MEM32(esi + 0xC8)); _flag_b = (uint32_t)(edi); 5345 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5346 _flag_k = FK_CMP; 5347 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706442F; /* 0x47064411: je 0x4706442f */ 5348 L_47064413: 5349 ecx = MEM32(esi + 0xC4); /* 0x47064413: mov ecx, dword ptr [esi + 0xc4] */ 5350 /* cmp ecx, edi */ /* 0x47064419: cmp ecx, edi */ 5351 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 5352 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5353 _flag_k = FK_CMP; 5354 if (CMP_EQ(_flag_a, _flag_b)) goto L_47064423; /* 0x4706441B: je 0x47064423 */ 5355 L_4706441D: 5356 edx = MEM32(ecx); /* 0x4706441D: mov edx, dword ptr [ecx] */ 5357 PUSH32(esp, 1); /* 0x4706441F: push 1 */ 5358 RECOMP_ICALL(MEM32(edx)); /* 0x47064421: call dword ptr [edx] */ 5359 RECOMP_FLAGS_IN(); 5360 L_47064423: 5361 MEM32(esi + 0xC4) = edi; /* 0x47064423: mov dword ptr [esi + 0xc4], edi */ 5362 MEM32(esi + 0xC8) = edi; /* 0x47064429: mov dword ptr [esi + 0xc8], edi */ 5363 L_4706442F: 5364 edi = POP32_VAL(esp); /* 0x4706442F: pop edi */ 5365 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5366 eax = 0; /* 0x47064430: xor eax, eax */ 5367 _cf = 0; 5368 _flag_k = FK_TEST; 5369 esi = POP32_VAL(esp); /* 0x47064432: pop esi */ 5370 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47064433: ret */ 5371 RECOMP_REGS_OUT(); 5372 } 5373 5374 void sub_47064440(void) { 5375 int _fpu_cmp = 0; 5376 uint32_t _cf = 0; 5377 int _df = 1; 5378 uint32_t _flag_k = FK_NONE; 5379 uint32_t _flag_a = 0, _flag_b = 0; 5380 uint32_t _itail_tgt = 0; 5381 RECOMP_REGS_LOCALS 5382 RECOMP_ENTER(0x47064440u); 5383 5384 L_47064440: 5385 eax = MEM32(ecx); /* 0x47064440: mov eax, dword ptr [ecx] */ 5386 RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x47064442: call dword ptr [eax + 0x30] */ 5387 RECOMP_FLAGS_IN(); 5388 ecx = MEM32(esp + 0x8); /* 0x47064445: mov ecx, dword ptr [esp + 8] */ 5389 edx = MEM32(eax); /* 0x47064449: mov edx, dword ptr [eax] */ 5390 PUSH32(esp, ecx); /* 0x4706444B: push ecx */ 5391 ecx = MEM32(esp + 0x8); /* 0x4706444C: mov ecx, dword ptr [esp + 8] */ 5392 PUSH32(esp, ecx); /* 0x47064450: push ecx */ 5393 ecx = eax; /* 0x47064451: mov ecx, eax */ 5394 RECOMP_ICALL(MEM32(edx + 0x44)); /* 0x47064453: call dword ptr [edx + 0x44] */ 5395 RECOMP_FLAGS_IN(); 5396 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47064456: ret 8 */ 5397 RECOMP_REGS_OUT(); 5398 } 5399 5400 void sub_47064460(void) { 5401 int _fpu_cmp = 0; 5402 uint32_t _cf = 0; 5403 int _df = 1; 5404 uint32_t _flag_k = FK_NONE; 5405 uint32_t _flag_a = 0, _flag_b = 0; 5406 uint32_t _itail_tgt = 0; 5407 RECOMP_REGS_LOCALS 5408 RECOMP_ENTER(0x47064460u); 5409 5410 L_47064460: 5411 edx = MEM32(esp + 0xC); /* 0x47064460: mov edx, dword ptr [esp + 0xc] */ 5412 eax = MEM32(ecx); /* 0x47064464: mov eax, dword ptr [ecx] */ 5413 PUSH32(esp, 0x4710E9A8u); /* 0x47064466: push 0x4710e9a8 */ 5414 PUSH32(esp, edx); /* 0x4706446B: push edx */ 5415 edx = MEM32(esp + 0x10); /* 0x4706446C: mov edx, dword ptr [esp + 0x10] */ 5416 PUSH32(esp, edx); /* 0x47064470: push edx */ 5417 edx = MEM32(esp + 0x10); /* 0x47064471: mov edx, dword ptr [esp + 0x10] */ 5418 PUSH32(esp, edx); /* 0x47064475: push edx */ 5419 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x47064476: call dword ptr [eax + 0xc] */ 5420 RECOMP_FLAGS_IN(); 5421 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47064479: ret 0xc */ 5422 RECOMP_REGS_OUT(); 5423 } 5424 5425 void sub_47064480(void) { 5426 int _fpu_cmp = 0; 5427 uint32_t _cf = 0; 5428 int _df = 1; 5429 uint32_t _flag_k = FK_NONE; 5430 uint32_t _flag_a = 0, _flag_b = 0; 5431 uint32_t _itail_tgt = 0; 5432 RECOMP_REGS_LOCALS 5433 RECOMP_ENTER(0x47064480u); 5434 5435 L_47064480: 5436 eax = MEM32(esp + 0xC); /* 0x47064480: mov eax, dword ptr [esp + 0xc] */ 5437 edx = MEM32(ecx); /* 0x47064484: mov edx, dword ptr [ecx] */ 5438 PUSH32(esp, eax); /* 0x47064486: push eax */ 5439 PUSH32(esp, eax); /* 0x47064487: push eax */ 5440 eax = MEM32(esp + 0x10); /* 0x47064488: mov eax, dword ptr [esp + 0x10] */ 5441 PUSH32(esp, eax); /* 0x4706448C: push eax */ 5442 eax = MEM32(esp + 0x10); /* 0x4706448D: mov eax, dword ptr [esp + 0x10] */ 5443 PUSH32(esp, eax); /* 0x47064491: push eax */ 5444 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47064492: call dword ptr [edx + 0xc] */ 5445 RECOMP_FLAGS_IN(); 5446 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47064495: ret 0xc */ 5447 RECOMP_REGS_OUT(); 5448 } 5449 5450 void sub_470644A0(void) { 5451 int _fpu_cmp = 0; 5452 uint32_t _cf = 0; 5453 int _df = 1; 5454 uint32_t _flag_k = FK_NONE; 5455 uint32_t _flag_a = 0, _flag_b = 0; 5456 uint32_t _itail_tgt = 0; 5457 RECOMP_REGS_LOCALS 5458 RECOMP_ENTER(0x470644A0u); 5459 5460 L_470644A0: 5461 PUSH32(esp, 0xFFFFFFFFu); /* 0x470644A0: push -1 */ 5462 PUSH32(esp, 0x470A82D8u); /* 0x470644A2: push 0x470a82d8 */ 5463 eax = MEM32(FS_BASE + (0)); /* 0x470644A7: mov eax, dword ptr fs:[0] */ 5464 PUSH32(esp, eax); /* 0x470644AD: push eax */ 5465 MEM32(FS_BASE + (0)) = esp; /* 0x470644AE: mov dword ptr fs:[0], esp */ 5466 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 5467 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5468 esp = esp - 0x18u; /* 0x470644B5: sub esp, 0x18 */ 5469 _flag_k = FK_CMP; 5470 PUSH32(esp, esi); /* 0x470644B8: push esi */ 5471 PUSH32(esp, edi); /* 0x470644B9: push edi */ 5472 edi = ecx; /* 0x470644BA: mov edi, ecx */ 5473 eax = MEM32(edi + 0xC4); /* 0x470644BC: mov eax, dword ptr [edi + 0xc4] */ 5474 ecx = esp + 0x18; /* 0x470644C2: lea ecx, [esp + 0x18] */ 5475 PUSH32(esp, ecx); /* 0x470644C6: push ecx */ 5476 RECOMP_ICALL(MEM32(eax + 0x24)); /* 0x470644C7: call dword ptr [eax + 0x24] */ 5477 RECOMP_FLAGS_IN(); 5478 edx = MEM32(esp + 0x3C); /* 0x470644CA: mov edx, dword ptr [esp + 0x3c] */ 5479 ecx = MEM32(eax); /* 0x470644CE: mov ecx, dword ptr [eax] */ 5480 esi = MEM32(edx + 0x4); /* 0x470644D0: mov esi, dword ptr [edx + 4] */ 5481 edx = MEM32(edx); /* 0x470644D3: mov edx, dword ptr [edx] */ 5482 eax = MEM32(eax + 0x4); /* 0x470644D5: mov eax, dword ptr [eax + 4] */ 5483 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 5484 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5485 ecx = ecx + edx; /* 0x470644D8: add ecx, edx */ 5486 _flag_k = FK_ADD; 5487 MEM32(esp + 0xC) = ecx; /* 0x470644DA: mov dword ptr [esp + 0xc], ecx */ 5488 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 5489 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5490 eax = eax + esi; /* 0x470644DE: add eax, esi */ 5491 _flag_k = FK_ADD; 5492 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5493 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5494 esp = esp + 4; /* 0x470644E0: add esp, 4 */ 5495 _flag_k = FK_ADD; 5496 ecx = esp + 0x8; /* 0x470644E3: lea ecx, [esp + 8] */ 5497 MEM32(esp + 0xC) = eax; /* 0x470644E7: mov dword ptr [esp + 0xc], eax */ 5498 RECOMP_ICALL(0x470543C0u); /* 0x470644EB: call 0x470543c0 */ /* not lifted */ 5499 RECOMP_FLAGS_IN(); 5500 ecx = esp + 0x8; /* 0x470644F0: lea ecx, [esp + 8] */ 5501 RECOMP_ICALL(0x470543C0u); /* 0x470644F4: call 0x470543c0 */ /* not lifted */ 5502 RECOMP_FLAGS_IN(); 5503 esi = MEM32(edi + 0xC4); /* 0x470644F9: mov esi, dword ptr [edi + 0xc4] */ 5504 edx = MEM32(esp + 0x8); /* 0x470644FF: mov edx, dword ptr [esp + 8] */ 5505 eax = MEM32(esp + 0xC); /* 0x47064503: mov eax, dword ptr [esp + 0xc] */ 5506 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 5507 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5508 esi = esi + 4; /* 0x47064507: add esi, 4 */ 5509 _flag_k = FK_ADD; 5510 ecx = esi; /* 0x4706450A: mov ecx, esi */ 5511 MEM32(esp + 0x10) = edx; /* 0x4706450C: mov dword ptr [esp + 0x10], edx */ 5512 MEM32(esp + 0x14) = eax; /* 0x47064510: mov dword ptr [esp + 0x14], eax */ 5513 MEM32(esp + 0x8) = esi; /* 0x47064514: mov dword ptr [esp + 8], esi */ 5514 RECOMP_ICALL(0x470870D0u); /* 0x47064518: call 0x470870d0 */ /* not lifted */ 5515 RECOMP_FLAGS_IN(); 5516 MEM32(esp + 0xC) = eax; /* 0x4706451D: mov dword ptr [esp + 0xc], eax */ 5517 /* cmp eax, 0xFFFFFFFFu */ /* 0x47064521: cmp eax, -1 */ 5518 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 5519 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5520 _flag_k = FK_CMP; 5521 MEM32(esp + 0x28) = 0; /* 0x47064524: mov dword ptr [esp + 0x28], 0 */ 5522 if (CMP_NE(_flag_a, _flag_b)) goto L_47064543; /* 0x4706452C: jne 0x47064543 */ 5523 L_4706452E: 5524 edi = POP32_VAL(esp); /* 0x4706452E: pop edi */ 5525 _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax)); 5526 eax = eax | eax; /* 0x4706452F: or eax, eax */ 5527 _cf = 0; 5528 _flag_k = FK_TEST; 5529 esi = POP32_VAL(esp); /* 0x47064531: pop esi */ 5530 ecx = MEM32(esp + 0x18); /* 0x47064532: mov ecx, dword ptr [esp + 0x18] */ 5531 MEM32(FS_BASE + (0)) = ecx; /* 0x47064536: mov dword ptr fs:[0], ecx */ 5532 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 5533 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5534 esp = esp + 0x24u; /* 0x4706453D: add esp, 0x24 */ 5535 _flag_k = FK_ADD; 5536 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47064540: ret 0x10 */ 5537 L_47064543: 5538 eax = MEM32(esp + 0x3C); /* 0x47064543: mov eax, dword ptr [esp + 0x3c] */ 5539 ecx = MEM32(esp + 0x30); /* 0x47064547: mov ecx, dword ptr [esp + 0x30] */ 5540 PUSH32(esp, ebx); /* 0x4706454B: push ebx */ 5541 PUSH32(esp, eax); /* 0x4706454C: push eax */ 5542 eax = esp + 0x18; /* 0x4706454D: lea eax, [esp + 0x18] */ 5543 PUSH32(esp, eax); /* 0x47064551: push eax */ 5544 eax = MEM32(esp + 0x40); /* 0x47064552: mov eax, dword ptr [esp + 0x40] */ 5545 MEM32(esp + 0x44) = ecx; /* 0x47064556: mov dword ptr [esp + 0x44], ecx */ 5546 ecx = MEM32(edi + 0xC4); /* 0x4706455A: mov ecx, dword ptr [edi + 0xc4] */ 5547 edx = MEM32(ecx); /* 0x47064560: mov edx, dword ptr [ecx] */ 5548 PUSH32(esp, eax); /* 0x47064562: push eax */ 5549 eax = esp + 0x48; /* 0x47064563: lea eax, [esp + 0x48] */ 5550 PUSH32(esp, eax); /* 0x47064567: push eax */ 5551 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47064568: call dword ptr [edx + 0xc] */ 5552 RECOMP_FLAGS_IN(); 5553 ebx = eax; /* 0x4706456B: mov ebx, eax */ 5554 /* cmp ebx, 0xFFFFFFFFu */ /* 0x4706456D: cmp ebx, -1 */ 5555 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFFu); 5556 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5557 _flag_k = FK_CMP; 5558 if (CMP_EQ(_flag_a, _flag_b)) goto L_470645B1; /* 0x47064570: je 0x470645b1 */ 5559 L_47064572: 5560 ecx = MEM32(edi + 0xC4); /* 0x47064572: mov ecx, dword ptr [edi + 0xc4] */ 5561 edx = MEM32(ecx); /* 0x47064578: mov edx, dword ptr [ecx] */ 5562 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x4706457A: call dword ptr [edx + 8] */ 5563 RECOMP_FLAGS_IN(); 5564 ecx = MEM32(eax); /* 0x4706457D: mov ecx, dword ptr [eax] */ 5565 /* cmp ecx, MEM32(esp + 0x14) */ /* 0x4706457F: cmp ecx, dword ptr [esp + 0x14] */ 5566 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esp + 0x14)); 5567 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5568 _flag_k = FK_CMP; 5569 if (CMP_NE(_flag_a, _flag_b)) goto L_470645B1; /* 0x47064583: jne 0x470645b1 */ 5570 L_47064585: 5571 eax = MEM32(eax + 0x4); /* 0x47064585: mov eax, dword ptr [eax + 4] */ 5572 /* cmp eax, MEM32(esp + 0x18) */ /* 0x47064588: cmp eax, dword ptr [esp + 0x18] */ 5573 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esp + 0x18)); 5574 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5575 _flag_k = FK_CMP; 5576 if (CMP_NE(_flag_a, _flag_b)) goto L_470645B1; /* 0x4706458C: jne 0x470645b1 */ 5577 L_4706458E: 5578 ecx = MEM32(edi + 0xC); /* 0x4706458E: mov ecx, dword ptr [edi + 0xc] */ 5579 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x4Cu); 5580 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5581 ecx = ecx + 0x4Cu; /* 0x47064591: add ecx, 0x4c */ 5582 _flag_k = FK_ADD; 5583 RECOMP_ICALL(0x47086AE0u); /* 0x47064594: call 0x47086ae0 */ /* not lifted */ 5584 RECOMP_FLAGS_IN(); 5585 /* cmp eax, 0xFFFFFFFFu */ /* 0x47064599: cmp eax, -1 */ 5586 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 5587 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5588 _flag_k = FK_CMP; 5589 if (CMP_NE(_flag_a, _flag_b)) goto L_470645B1; /* 0x4706459C: jne 0x470645b1 */ 5590 L_4706459E: 5591 ecx = MEM32(edi + 0xC4); /* 0x4706459E: mov ecx, dword ptr [edi + 0xc4] */ 5592 eax = MEM32(ecx); /* 0x470645A4: mov eax, dword ptr [ecx] */ 5593 PUSH32(esp, 1); /* 0x470645A6: push 1 */ 5594 PUSH32(esp, 0); /* 0x470645A8: push 0 */ 5595 PUSH32(esp, ebx); /* 0x470645AA: push ebx */ 5596 RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x470645AB: call dword ptr [eax + 0x14] */ 5597 RECOMP_FLAGS_IN(); 5598 _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu)); 5599 ebx = ebx | 0xFFFFFFFFu; /* 0x470645AE: or ebx, 0xffffffff */ 5600 _cf = 0; 5601 _flag_k = FK_TEST; 5602 L_470645B1: 5603 ecx = esi; /* 0x470645B1: mov ecx, esi */ 5604 MEM32(esp + 0x2C) = 0xFFFFFFFFu; /* 0x470645B3: mov dword ptr [esp + 0x2c], 0xffffffff */ 5605 RECOMP_ICALL(0x470870E0u); /* 0x470645BB: call 0x470870e0 */ /* not lifted */ 5606 RECOMP_FLAGS_IN(); 5607 ecx = MEM32(esp + 0x24); /* 0x470645C0: mov ecx, dword ptr [esp + 0x24] */ 5608 eax = ebx; /* 0x470645C4: mov eax, ebx */ 5609 ebx = POP32_VAL(esp); /* 0x470645C6: pop ebx */ 5610 edi = POP32_VAL(esp); /* 0x470645C7: pop edi */ 5611 esi = POP32_VAL(esp); /* 0x470645C8: pop esi */ 5612 MEM32(FS_BASE + (0)) = ecx; /* 0x470645C9: mov dword ptr fs:[0], ecx */ 5613 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 5614 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5615 esp = esp + 0x24u; /* 0x470645D0: add esp, 0x24 */ 5616 _flag_k = FK_ADD; 5617 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470645D3: ret 0x10 */ 5618 RECOMP_REGS_OUT(); 5619 } 5620 5621 void sub_470645E0(void) { 5622 int _fpu_cmp = 0; 5623 uint32_t _cf = 0; 5624 int _df = 1; 5625 uint32_t _flag_k = FK_NONE; 5626 uint32_t _flag_a = 0, _flag_b = 0; 5627 uint32_t _itail_tgt = 0; 5628 RECOMP_REGS_LOCALS 5629 RECOMP_ENTER(0x470645E0u); 5630 5631 L_470645E0: 5632 edx = MEM32(esp + 0xC); /* 0x470645E0: mov edx, dword ptr [esp + 0xc] */ 5633 ecx = MEM32(ecx + 0xC4); /* 0x470645E4: mov ecx, dword ptr [ecx + 0xc4] */ 5634 eax = MEM32(ecx); /* 0x470645EA: mov eax, dword ptr [ecx] */ 5635 PUSH32(esp, edx); /* 0x470645EC: push edx */ 5636 edx = MEM32(esp + 0xC); /* 0x470645ED: mov edx, dword ptr [esp + 0xc] */ 5637 PUSH32(esp, edx); /* 0x470645F1: push edx */ 5638 edx = MEM32(esp + 0xC); /* 0x470645F2: mov edx, dword ptr [esp + 0xc] */ 5639 PUSH32(esp, edx); /* 0x470645F6: push edx */ 5640 RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x470645F7: call dword ptr [eax + 0x14] */ 5641 RECOMP_FLAGS_IN(); 5642 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470645FA: ret 0xc */ 5643 RECOMP_REGS_OUT(); 5644 } 5645 5646 void sub_47064600(void) { 5647 int _fpu_cmp = 0; 5648 uint32_t _cf = 0; 5649 int _df = 1; 5650 uint32_t _flag_k = FK_NONE; 5651 uint32_t _flag_a = 0, _flag_b = 0; 5652 uint32_t _itail_tgt = 0; 5653 RECOMP_REGS_LOCALS 5654 RECOMP_ENTER(0x47064600u); 5655 5656 L_47064600: 5657 eax = MEM32(esp + 0x4); /* 0x47064600: mov eax, dword ptr [esp + 4] */ 5658 ecx = MEM32(ecx + 0xC4); /* 0x47064604: mov ecx, dword ptr [ecx + 0xc4] */ 5659 MEM32(esp + 0x4) = eax; /* 0x4706460A: mov dword ptr [esp + 4], eax */ 5660 eax = MEM32(esp + 0x8); /* 0x4706460E: mov eax, dword ptr [esp + 8] */ 5661 edx = MEM32(ecx); /* 0x47064612: mov edx, dword ptr [ecx] */ 5662 PUSH32(esp, eax); /* 0x47064614: push eax */ 5663 eax = esp + 0x8; /* 0x47064615: lea eax, [esp + 8] */ 5664 PUSH32(esp, eax); /* 0x47064619: push eax */ 5665 RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x4706461A: call dword ptr [edx + 0x18] */ 5666 RECOMP_FLAGS_IN(); 5667 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4706461D: ret 8 */ 5668 RECOMP_REGS_OUT(); 5669 } 5670 5671 void sub_47064620(void) { 5672 int _fpu_cmp = 0; 5673 uint32_t _cf = 0; 5674 int _df = 1; 5675 uint32_t _flag_k = FK_NONE; 5676 uint32_t _flag_a = 0, _flag_b = 0; 5677 uint32_t _itail_tgt = 0; 5678 RECOMP_REGS_LOCALS 5679 RECOMP_ENTER(0x47064620u); 5680 5681 L_47064620: 5682 eax = MEM32(ecx); /* 0x47064620: mov eax, dword ptr [ecx] */ 5683 RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x47064622: call dword ptr [eax + 0x30] */ 5684 RECOMP_FLAGS_IN(); 5685 ecx = MEM32(esp + 0x4); /* 0x47064625: mov ecx, dword ptr [esp + 4] */ 5686 edx = MEM32(eax); /* 0x47064629: mov edx, dword ptr [eax] */ 5687 PUSH32(esp, ecx); /* 0x4706462B: push ecx */ 5688 ecx = eax; /* 0x4706462C: mov ecx, eax */ 5689 RECOMP_ICALL(MEM32(edx + 0x4C)); /* 0x4706462E: call dword ptr [edx + 0x4c] */ 5690 RECOMP_FLAGS_IN(); 5691 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47064631: ret 4 */ 5692 RECOMP_REGS_OUT(); 5693 } 5694 5695 void sub_47064640(void) { 5696 int _fpu_cmp = 0; 5697 uint32_t _cf = 0; 5698 int _df = 1; 5699 uint32_t _flag_k = FK_NONE; 5700 uint32_t _flag_a = 0, _flag_b = 0; 5701 uint32_t _itail_tgt = 0; 5702 RECOMP_REGS_LOCALS 5703 RECOMP_ENTER(0x47064640u); 5704 5705 L_47064640: 5706 eax = MEM32(ecx); /* 0x47064640: mov eax, dword ptr [ecx] */ 5707 L_47064642: 5708 RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x47064642: call dword ptr [eax + 0x30] */ 5709 RECOMP_FLAGS_IN(); 5710 L_47064645: 5711 edx = MEM32(eax); /* 0x47064645: mov edx, dword ptr [eax] */ 5712 L_47064647: 5713 ecx = eax; /* 0x47064647: mov ecx, eax */ 5714 L_47064649: 5715 { _itail_tgt = (uint32_t)(MEM32(edx + 0x48)); goto _ljump; } 5716 { RECOMP_REGS_OUT(); return; } /* end of function */ 5717 _ljump: 5718 switch (_itail_tgt) { 5719 case 0x47064640u: goto L_47064640; 5720 case 0x47064642u: goto L_47064642; 5721 case 0x47064645u: goto L_47064645; 5722 case 0x47064647u: goto L_47064647; 5723 case 0x47064649u: goto L_47064649; 5724 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5725 } 5726 RECOMP_REGS_OUT(); 5727 } 5728 5729 void sub_47064650(void) { 5730 int _fpu_cmp = 0; 5731 uint32_t _cf = 0; 5732 int _df = 1; 5733 uint32_t _flag_k = FK_NONE; 5734 uint32_t _flag_a = 0, _flag_b = 0; 5735 uint32_t _itail_tgt = 0; 5736 RECOMP_REGS_LOCALS 5737 RECOMP_ENTER(0x47064650u); 5738 5739 L_47064650: 5740 eax = MEM32(ecx); /* 0x47064650: mov eax, dword ptr [ecx] */ 5741 L_47064652: 5742 RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x47064652: call dword ptr [eax + 0x30] */ 5743 RECOMP_FLAGS_IN(); 5744 L_47064655: 5745 edx = MEM32(eax); /* 0x47064655: mov edx, dword ptr [eax] */ 5746 L_47064657: 5747 ecx = eax; /* 0x47064657: mov ecx, eax */ 5748 L_47064659: 5749 { _itail_tgt = (uint32_t)(MEM32(edx + 0x5C)); goto _ljump; } 5750 { RECOMP_REGS_OUT(); return; } /* end of function */ 5751 _ljump: 5752 switch (_itail_tgt) { 5753 case 0x47064650u: goto L_47064650; 5754 case 0x47064652u: goto L_47064652; 5755 case 0x47064655u: goto L_47064655; 5756 case 0x47064657u: goto L_47064657; 5757 case 0x47064659u: goto L_47064659; 5758 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5759 } 5760 RECOMP_REGS_OUT(); 5761 } 5762 5763 void sub_47064660(void) { 5764 int _fpu_cmp = 0; 5765 uint32_t _cf = 0; 5766 int _df = 1; 5767 uint32_t _flag_k = FK_NONE; 5768 uint32_t _flag_a = 0, _flag_b = 0; 5769 uint32_t _itail_tgt = 0; 5770 RECOMP_REGS_LOCALS 5771 RECOMP_ENTER(0x47064660u); 5772 5773 L_47064660: 5774 eax = MEM32(ecx); /* 0x47064660: mov eax, dword ptr [ecx] */ 5775 RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x47064662: call dword ptr [eax + 0x30] */ 5776 RECOMP_FLAGS_IN(); 5777 ecx = MEM32(esp + 0x4); /* 0x47064665: mov ecx, dword ptr [esp + 4] */ 5778 edx = MEM32(eax); /* 0x47064669: mov edx, dword ptr [eax] */ 5779 PUSH32(esp, ecx); /* 0x4706466B: push ecx */ 5780 ecx = eax; /* 0x4706466C: mov ecx, eax */ 5781 RECOMP_ICALL(MEM32(edx + 0x58)); /* 0x4706466E: call dword ptr [edx + 0x58] */ 5782 RECOMP_FLAGS_IN(); 5783 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47064671: ret 4 */ 5784 RECOMP_REGS_OUT(); 5785 } 5786 5787 void sub_47064680(void) { 5788 int _fpu_cmp = 0; 5789 uint32_t _cf = 0; 5790 int _df = 1; 5791 uint32_t _flag_k = FK_NONE; 5792 uint32_t _flag_a = 0, _flag_b = 0; 5793 uint32_t _itail_tgt = 0; 5794 RECOMP_REGS_LOCALS 5795 RECOMP_ENTER(0x47064680u); 5796 5797 L_47064680: 5798 eax = MEM32(ecx + 0xC4); /* 0x47064680: mov eax, dword ptr [ecx + 0xc4] */ 5799 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47064686: ret */ 5800 RECOMP_REGS_OUT(); 5801 } 5802 5803 void sub_47064690(void) { 5804 int _fpu_cmp = 0; 5805 uint32_t _cf = 0; 5806 int _df = 1; 5807 uint32_t _flag_k = FK_NONE; 5808 uint32_t _flag_a = 0, _flag_b = 0; 5809 uint32_t _itail_tgt = 0; 5810 RECOMP_REGS_LOCALS 5811 RECOMP_ENTER(0x47064690u); 5812 5813 L_47064690: 5814 PUSH32(esp, 0xFFFFFFFFu); /* 0x47064690: push -1 */ 5815 PUSH32(esp, 0x470A8319u); /* 0x47064692: push 0x470a8319 */ 5816 eax = MEM32(FS_BASE + (0)); /* 0x47064697: mov eax, dword ptr fs:[0] */ 5817 PUSH32(esp, eax); /* 0x4706469D: push eax */ 5818 MEM32(FS_BASE + (0)) = esp; /* 0x4706469E: mov dword ptr fs:[0], esp */ 5819 PUSH32(esp, ecx); /* 0x470646A5: push ecx */ 5820 PUSH32(esp, ebx); /* 0x470646A6: push ebx */ 5821 PUSH32(esp, ebp); /* 0x470646A7: push ebp */ 5822 PUSH32(esp, esi); /* 0x470646A8: push esi */ 5823 PUSH32(esp, edi); /* 0x470646A9: push edi */ 5824 edi = ecx; /* 0x470646AA: mov edi, ecx */ 5825 eax = MEM32(edi + 0xC8); /* 0x470646AC: mov eax, dword ptr [edi + 0xc8] */ 5826 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5827 ebp = 0; /* 0x470646B2: xor ebp, ebp */ 5828 _cf = 0; 5829 _flag_k = FK_TEST; 5830 /* cmp eax, ebp */ /* 0x470646B4: cmp eax, ebp */ 5831 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 5832 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5833 _flag_k = FK_CMP; 5834 if (CMP_EQ(_flag_a, _flag_b)) goto L_470646CE; /* 0x470646B6: je 0x470646ce */ 5835 L_470646B8: 5836 ecx = MEM32(edi + 0xC4); /* 0x470646B8: mov ecx, dword ptr [edi + 0xc4] */ 5837 /* cmp ecx, ebp */ /* 0x470646BE: cmp ecx, ebp */ 5838 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebp); 5839 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5840 _flag_k = FK_CMP; 5841 if (CMP_EQ(_flag_a, _flag_b)) goto L_470646C8; /* 0x470646C0: je 0x470646c8 */ 5842 L_470646C2: 5843 eax = MEM32(ecx); /* 0x470646C2: mov eax, dword ptr [ecx] */ 5844 PUSH32(esp, 1); /* 0x470646C4: push 1 */ 5845 RECOMP_ICALL(MEM32(eax)); /* 0x470646C6: call dword ptr [eax] */ 5846 RECOMP_FLAGS_IN(); 5847 L_470646C8: 5848 MEM32(edi + 0xC8) = ebp; /* 0x470646C8: mov dword ptr [edi + 0xc8], ebp */ 5849 L_470646CE: 5850 eax = MEM32(esp + 0x24); /* 0x470646CE: mov eax, dword ptr [esp + 0x24] */ 5851 /* cmp eax, ebp */ /* 0x470646D2: cmp eax, ebp */ 5852 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 5853 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5854 _flag_k = FK_CMP; 5855 ebx = MEM32(0x470AC3C8); /* 0x470646D4: mov ebx, dword ptr [0x470ac3c8] */ 5856 if (CMP_NE(_flag_a, _flag_b)) goto L_47064806; /* 0x470646DA: jne 0x47064806 */ 5857 L_470646E0: 5858 PUSH32(esp, 0x70u); /* 0x470646E0: push 0x70 */ 5859 RECOMP_ICALL(0x470A33F2u); /* 0x470646E2: call 0x470a33f2 */ /* not lifted */ 5860 RECOMP_FLAGS_IN(); 5861 esi = eax; /* 0x470646E7: mov esi, eax */ 5862 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5863 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5864 esp = esp + 4; /* 0x470646E9: add esp, 4 */ 5865 _flag_k = FK_ADD; 5866 MEM32(esp + 0x24) = esi; /* 0x470646EC: mov dword ptr [esp + 0x24], esi */ 5867 /* cmp esi, ebp */ /* 0x470646F0: cmp esi, ebp */ 5868 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp); 5869 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5870 _flag_k = FK_CMP; 5871 MEM32(esp + 0x1C) = ebp; /* 0x470646F2: mov dword ptr [esp + 0x1c], ebp */ 5872 if (CMP_EQ(_flag_a, _flag_b)) goto L_470647D9; /* 0x470646F6: je 0x470647d9 */ 5873 L_470646FC: 5874 PUSH32(esp, ebp); /* 0x470646FC: push ebp */ 5875 PUSH32(esp, ebp); /* 0x470646FD: push ebp */ 5876 ecx = esi; /* 0x470646FE: mov ecx, esi */ 5877 RECOMP_ICALL(0x470669B0u); /* 0x47064700: call 0x470669b0 */ /* not lifted */ 5878 RECOMP_FLAGS_IN(); 5879 MEM32(esi + 0x44) = 0x2Cu; /* 0x47064705: mov dword ptr [esi + 0x44], 0x2c */ 5880 MEM32(esi + 0x48) = ebp; /* 0x4706470C: mov dword ptr [esi + 0x48], ebp */ 5881 MEM32(esi + 0x58) = 1; /* 0x4706470F: mov dword ptr [esi + 0x58], 1 */ 5882 MEM32(esi + 0x5C) = ebp; /* 0x47064716: mov dword ptr [esi + 0x5c], ebp */ 5883 MEM32(esi + 0x60) = ebp; /* 0x47064719: mov dword ptr [esi + 0x60], ebp */ 5884 MEM8(esp + 0x1C) = (uint8_t)(1); /* 0x4706471C: mov byte ptr [esp + 0x1c], 1 */ 5885 MEM32(esi + 0x64) = ebp; /* 0x47064721: mov dword ptr [esi + 0x64], ebp */ 5886 MEM32(esi + 0x68) = ebp; /* 0x47064724: mov dword ptr [esi + 0x68], ebp */ 5887 MEM32(esi + 0x6C) = ebp; /* 0x47064727: mov dword ptr [esi + 0x6c], ebp */ 5888 RECOMP_ICALL(0x4703DAC0u); /* 0x4706472A: call 0x4703dac0 */ /* not lifted */ 5889 RECOMP_FLAGS_IN(); 5890 MEM32(esi + 0x6C) = eax; /* 0x4706472F: mov dword ptr [esi + 0x6c], eax */ 5891 edx = MEM32(eax); /* 0x47064732: mov edx, dword ptr [eax] */ 5892 PUSH32(esp, 8); /* 0x47064734: push 8 */ 5893 ecx = eax; /* 0x47064736: mov ecx, eax */ 5894 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47064738: call dword ptr [edx + 4] */ 5895 RECOMP_FLAGS_IN(); 5896 /* cmp eax, ebp */ /* 0x4706473B: cmp eax, ebp */ 5897 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 5898 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5899 _flag_k = FK_CMP; 5900 MEM32(esi + 0x64) = eax; /* 0x4706473D: mov dword ptr [esi + 0x64], eax */ 5901 if (CMP_EQ(_flag_a, _flag_b)) goto L_470647BC; /* 0x47064740: je 0x470647bc */ 5902 L_47064742: 5903 MEM32(eax) = ebp; /* 0x47064742: mov dword ptr [eax], ebp */ 5904 eax = MEM32(esi + 0x64); /* 0x47064744: mov eax, dword ptr [esi + 0x64] */ 5905 MEM32(eax) = eax; /* 0x47064747: mov dword ptr [eax], eax */ 5906 L_47064749: 5907 eax = MEM32(esi + 0x44); /* 0x47064749: mov eax, dword ptr [esi + 0x44] */ 5908 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x4706474C: shl eax, 2 */ 5909 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5910 eax = eax << 2u; /* 0x4706474C: shl eax, 2 */ 5911 PUSH32(esp, eax); /* 0x4706474F: push eax */ 5912 MEM8(esp + 0x20) = (uint8_t)(2); /* 0x47064750: mov byte ptr [esp + 0x20], 2 */ 5913 MEM32(esi) = 0x470AE938u; /* 0x47064755: mov dword ptr [esi], 0x470ae938 */ 5914 RECOMP_ICALL(0x470A33F2u); /* 0x4706475B: call 0x470a33f2 */ /* not lifted */ 5915 RECOMP_FLAGS_IN(); 5916 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5917 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5918 esp = esp + 4; /* 0x47064760: add esp, 4 */ 5919 _flag_k = FK_ADD; 5920 /* cmp eax, ebp */ /* 0x47064763: cmp eax, ebp */ 5921 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 5922 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5923 _flag_k = FK_CMP; 5924 MEM32(esi + 0x50) = eax; /* 0x47064765: mov dword ptr [esi + 0x50], eax */ 5925 if (CMP_EQ(_flag_a, _flag_b)) goto L_470647CF; /* 0x47064768: je 0x470647cf */ 5926 L_4706476A: 5927 ecx = MEM32(esi + 0x44); /* 0x4706476A: mov ecx, dword ptr [esi + 0x44] */ 5928 if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x4706476D: shl ecx, 2 */ 5929 if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5930 ecx = ecx << 2u; /* 0x4706476D: shl ecx, 2 */ 5931 PUSH32(esp, ecx); /* 0x47064770: push ecx */ 5932 RECOMP_ICALL(0x470A33F2u); /* 0x47064771: call 0x470a33f2 */ /* not lifted */ 5933 RECOMP_FLAGS_IN(); 5934 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5935 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5936 esp = esp + 4; /* 0x47064776: add esp, 4 */ 5937 _flag_k = FK_ADD; 5938 /* cmp eax, ebp */ /* 0x47064779: cmp eax, ebp */ 5939 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 5940 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5941 _flag_k = FK_CMP; 5942 MEM32(esi + 0x54) = eax; /* 0x4706477B: mov dword ptr [esi + 0x54], eax */ 5943 if (CMP_EQ(_flag_a, _flag_b)) goto L_470647CF; /* 0x4706477E: je 0x470647cf */ 5944 L_47064780: 5945 ecx = MEM32(esi + 0x44); /* 0x47064780: mov ecx, dword ptr [esi + 0x44] */ 5946 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5947 eax = 0; /* 0x47064783: xor eax, eax */ 5948 _cf = 0; 5949 _flag_k = FK_TEST; 5950 /* cmp ecx, ebp */ /* 0x47064785: cmp ecx, ebp */ 5951 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebp); 5952 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5953 _flag_k = FK_CMP; 5954 if (CMP_BE(_flag_a, _flag_b)) goto L_4706479B; /* 0x47064787: jbe 0x4706479b */ 5955 L_47064789: 5956 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 5957 ecx = ecx | 0xFFFFFFFFu; /* 0x47064789: or ecx, 0xffffffff */ 5958 _cf = 0; 5959 _flag_k = FK_TEST; 5960 L_4706478C: 5961 edx = MEM32(esi + 0x54); /* 0x4706478C: mov edx, dword ptr [esi + 0x54] */ 5962 MEM32(edx + eax * 4) = ecx; /* 0x4706478F: mov dword ptr [edx + eax*4], ecx */ 5963 edx = MEM32(esi + 0x44); /* 0x47064792: mov edx, dword ptr [esi + 0x44] */ 5964 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5965 eax = eax + 1; /* 0x47064795: inc eax */ 5966 _flag_k = FK_INC; 5967 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5968 ecx = ecx - 1; /* 0x47064796: dec ecx */ 5969 _flag_k = FK_DEC; 5970 /* cmp eax, edx */ /* 0x47064797: cmp eax, edx */ 5971 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 5972 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5973 _flag_k = FK_CMP; 5974 RECOMP_BACKEDGE(); 5975 if (CMP_B(_flag_a, _flag_b)) goto L_4706478C; /* 0x47064799: jb 0x4706478c */ 5976 L_4706479B: 5977 PUSH32(esp, 0xCu); /* 0x4706479B: push 0xc */ 5978 RECOMP_ICALL(0x470A33F2u); /* 0x4706479D: call 0x470a33f2 */ /* not lifted */ 5979 RECOMP_FLAGS_IN(); 5980 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5981 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5982 esp = esp + 4; /* 0x470647A2: add esp, 4 */ 5983 _flag_k = FK_ADD; 5984 MEM32(esp + 0x10) = eax; /* 0x470647A5: mov dword ptr [esp + 0x10], eax */ 5985 /* cmp eax, ebp */ /* 0x470647A9: cmp eax, ebp */ 5986 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 5987 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5988 _flag_k = FK_CMP; 5989 MEM8(esp + 0x1C) = (uint8_t)(3); /* 0x470647AB: mov byte ptr [esp + 0x1c], 3 */ 5990 if (CMP_EQ(_flag_a, _flag_b)) goto L_470647C6; /* 0x470647B0: je 0x470647c6 */ 5991 L_470647B2: 5992 PUSH32(esp, esi); /* 0x470647B2: push esi */ 5993 ecx = eax; /* 0x470647B3: mov ecx, eax */ 5994 RECOMP_ICALL(0x47066CF0u); /* 0x470647B5: call 0x47066cf0 */ /* not lifted */ 5995 RECOMP_FLAGS_IN(); 5996 goto L_470647C8; /* 0x470647BA: jmp 0x470647c8 */ 5997 L_470647BC: 5998 RECOMP_ICALL(ebx); /* 0x470647BC: call ebx */ 5999 RECOMP_FLAGS_IN(); 6000 MEM32(eax) = 0xCu; /* 0x470647BE: mov dword ptr [eax], 0xc */ 6001 RECOMP_BACKEDGE(); 6002 goto L_47064749; /* 0x470647C4: jmp 0x47064749 */ 6003 L_470647C6: 6004 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6005 eax = 0; /* 0x470647C6: xor eax, eax */ 6006 _cf = 0; 6007 _flag_k = FK_TEST; 6008 L_470647C8: 6009 /* cmp eax, ebp */ /* 0x470647C8: cmp eax, ebp */ 6010 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 6011 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6012 _flag_k = FK_CMP; 6013 MEM32(esi + 0x4C) = eax; /* 0x470647CA: mov dword ptr [esi + 0x4c], eax */ 6014 if (CMP_NE(_flag_a, _flag_b)) goto L_470647DB; /* 0x470647CD: jne 0x470647db */ 6015 L_470647CF: 6016 RECOMP_ICALL(ebx); /* 0x470647CF: call ebx */ 6017 RECOMP_FLAGS_IN(); 6018 MEM32(eax) = 0xCu; /* 0x470647D1: mov dword ptr [eax], 0xc */ 6019 goto L_470647DB; /* 0x470647D7: jmp 0x470647db */ 6020 L_470647D9: 6021 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6022 esi = 0; /* 0x470647D9: xor esi, esi */ 6023 _cf = 0; 6024 _flag_k = FK_TEST; 6025 L_470647DB: 6026 /* cmp esi, ebp */ /* 0x470647DB: cmp esi, ebp */ 6027 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp); 6028 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6029 _flag_k = FK_CMP; 6030 MEM32(esp + 0x1C) = 0xFFFFFFFFu; /* 0x470647DD: mov dword ptr [esp + 0x1c], 0xffffffff */ 6031 MEM32(edi + 0xC4) = esi; /* 0x470647E5: mov dword ptr [edi + 0xc4], esi */ 6032 if (CMP_NE(_flag_a, _flag_b)) goto L_470647FA; /* 0x470647EB: jne 0x470647fa */ 6033 L_470647ED: 6034 RECOMP_ICALL(ebx); /* 0x470647ED: call ebx */ 6035 RECOMP_FLAGS_IN(); 6036 MEM32(eax) = 0xCu; /* 0x470647EF: mov dword ptr [eax], 0xc */ 6037 goto L_4706487B; /* 0x470647F5: jmp 0x4706487b */ 6038 L_470647FA: 6039 MEM32(edi + 0xC8) = 1; /* 0x470647FA: mov dword ptr [edi + 0xc8], 1 */ 6040 goto L_47064812; /* 0x47064804: jmp 0x47064812 */ 6041 L_47064806: 6042 MEM32(edi + 0xC4) = eax; /* 0x47064806: mov dword ptr [edi + 0xc4], eax */ 6043 MEM32(edi + 0xC8) = ebp; /* 0x4706480C: mov dword ptr [edi + 0xc8], ebp */ 6044 L_47064812: 6045 eax = MEM32(edi + 0xC4); /* 0x47064812: mov eax, dword ptr [edi + 0xc4] */ 6046 eax = MEM32(eax + 0x28); /* 0x47064818: mov eax, dword ptr [eax + 0x28] */ 6047 /* cmp MEM32(eax), ebp */ /* 0x4706481B: cmp dword ptr [eax], ebp */ 6048 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(ebp); 6049 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6050 _flag_k = FK_CMP; 6051 if (CMP_NE(_flag_a, _flag_b)) goto L_47064823; /* 0x4706481D: jne 0x47064823 */ 6052 L_4706481F: 6053 MEM32(eax) = edi; /* 0x4706481F: mov dword ptr [eax], edi */ 6054 goto L_4706487B; /* 0x47064821: jmp 0x4706487b */ 6055 L_47064823: 6056 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47064823: call dword ptr [0x470ac150] */ 6057 RECOMP_FLAGS_IN(); 6058 edi = eax; /* 0x47064829: mov edi, eax */ 6059 RECOMP_ICALL(ebx); /* 0x4706482B: call ebx */ 6060 RECOMP_FLAGS_IN(); 6061 eax = MEM32(eax); /* 0x4706482D: mov eax, dword ptr [eax] */ 6062 /* cmp eax, ebp */ /* 0x4706482F: cmp eax, ebp */ 6063 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 6064 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6065 _flag_k = FK_CMP; 6066 if (CMP_EQ(_flag_a, _flag_b)) goto L_47064835; /* 0x47064831: je 0x47064835 */ 6067 L_47064833: 6068 edi = eax; /* 0x47064833: mov edi, eax */ 6069 L_47064835: 6070 RECOMP_ICALL(0x47039020u); /* 0x47064835: call 0x47039020 */ /* not lifted */ 6071 RECOMP_FLAGS_IN(); 6072 esi = eax; /* 0x4706483A: mov esi, eax */ 6073 ecx = esi; /* 0x4706483C: mov ecx, esi */ 6074 RECOMP_ICALL(0x4703B210u); /* 0x4706483E: call 0x4703b210 */ /* not lifted */ 6075 RECOMP_FLAGS_IN(); 6076 PUSH32(esp, eax); /* 0x47064843: push eax */ 6077 ecx = esi; /* 0x47064844: mov ecx, esi */ 6078 RECOMP_ICALL(0x4703B240u); /* 0x47064846: call 0x4703b240 */ /* not lifted */ 6079 RECOMP_FLAGS_IN(); 6080 PUSH32(esp, eax); /* 0x4706484B: push eax */ 6081 ecx = esi; /* 0x4706484C: mov ecx, esi */ 6082 RECOMP_ICALL(0x4703B080u); /* 0x4706484E: call 0x4703b080 */ /* not lifted */ 6083 RECOMP_FLAGS_IN(); 6084 PUSH32(esp, eax); /* 0x47064853: push eax */ 6085 PUSH32(esp, edi); /* 0x47064854: push edi */ 6086 PUSH32(esp, 0xFFFFFFFFu); /* 0x47064855: push -1 */ 6087 PUSH32(esp, 0xE8u); /* 0x47064857: push 0xe8 */ 6088 PUSH32(esp, 0x471098D0u); /* 0x4706485C: push 0x471098d0 */ 6089 ecx = esi; /* 0x47064861: mov ecx, esi */ 6090 RECOMP_ICALL(0x4703A340u); /* 0x47064863: call 0x4703a340 */ /* not lifted */ 6091 RECOMP_FLAGS_IN(); 6092 PUSH32(esp, 0x471099FCu); /* 0x47064868: push 0x471099fc */ 6093 PUSH32(esp, 0x80u); /* 0x4706486D: push 0x80 */ 6094 PUSH32(esp, esi); /* 0x47064872: push esi */ 6095 RECOMP_ICALL(0x47039830u); /* 0x47064873: call 0x47039830 */ /* not lifted */ 6096 RECOMP_FLAGS_IN(); 6097 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6098 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6099 esp = esp + 0xCu; /* 0x47064878: add esp, 0xc */ 6100 _flag_k = FK_ADD; 6101 L_4706487B: 6102 ecx = MEM32(esp + 0x14); /* 0x4706487B: mov ecx, dword ptr [esp + 0x14] */ 6103 edi = POP32_VAL(esp); /* 0x4706487F: pop edi */ 6104 esi = POP32_VAL(esp); /* 0x47064880: pop esi */ 6105 ebp = POP32_VAL(esp); /* 0x47064881: pop ebp */ 6106 ebx = POP32_VAL(esp); /* 0x47064882: pop ebx */ 6107 MEM32(FS_BASE + (0)) = ecx; /* 0x47064883: mov dword ptr fs:[0], ecx */ 6108 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6109 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6110 esp = esp + 0x10u; /* 0x4706488A: add esp, 0x10 */ 6111 _flag_k = FK_ADD; 6112 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706488D: ret 4 */ 6113 RECOMP_REGS_OUT(); 6114 } 6115 6116 void sub_4706487B(void) { 6117 int _fpu_cmp = 0; 6118 uint32_t _cf = 0; 6119 int _df = 1; 6120 uint32_t _flag_k = FK_NONE; 6121 uint32_t _flag_a = 0, _flag_b = 0; 6122 uint32_t _itail_tgt = 0; 6123 RECOMP_REGS_LOCALS 6124 RECOMP_ENTER(0x4706487Bu); 6125 6126 L_4706487B: 6127 ecx = MEM32(esp + 0x14); /* 0x4706487B: mov ecx, dword ptr [esp + 0x14] */ 6128 edi = POP32_VAL(esp); /* 0x4706487F: pop edi */ 6129 esi = POP32_VAL(esp); /* 0x47064880: pop esi */ 6130 ebp = POP32_VAL(esp); /* 0x47064881: pop ebp */ 6131 ebx = POP32_VAL(esp); /* 0x47064882: pop ebx */ 6132 MEM32(FS_BASE + (0)) = ecx; /* 0x47064883: mov dword ptr fs:[0], ecx */ 6133 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6134 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6135 esp = esp + 0x10u; /* 0x4706488A: add esp, 0x10 */ 6136 _flag_k = FK_ADD; 6137 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706488D: ret 4 */ 6138 RECOMP_REGS_OUT(); 6139 }