client/vendor/ace/source/lifted-0060.c (365468B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 4 void sub_47085550(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(0x47085550u); 13 14 L_47085550: 15 MEM32(0x4710F8E4) = 0x47105158u; /* 0x47085550: mov dword ptr [0x4710f8e4], 0x47105158 */ 16 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708555A: ret */ 17 RECOMP_REGS_OUT(); 18 } 19 20 void sub_47085560(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(0x47085560u); 29 30 L_47085560: 31 MEM32(0x4710F8D4) = 0x4710518Cu; /* 0x47085560: mov dword ptr [0x4710f8d4], 0x4710518c */ 32 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708556A: ret */ 33 RECOMP_REGS_OUT(); 34 } 35 36 void sub_47085570(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(0x47085570u); 45 46 L_47085570: 47 MEM32(0x4710F908) = 0x471051ECu; /* 0x47085570: mov dword ptr [0x4710f908], 0x471051ec */ 48 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708557A: ret */ 49 RECOMP_REGS_OUT(); 50 } 51 52 void sub_47085580(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(0x47085580u); 61 62 L_47085580: 63 MEM32(0x4710F8F4) = 0x47105224u; /* 0x47085580: mov dword ptr [0x4710f8f4], 0x47105224 */ 64 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708558A: ret */ 65 RECOMP_REGS_OUT(); 66 } 67 68 void sub_47085590(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(0x47085590u); 77 78 L_47085590: 79 MEM32(0x4710F8DC) = 0x47108CC8u; /* 0x47085590: mov dword ptr [0x4710f8dc], 0x47108cc8 */ 80 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708559A: ret */ 81 RECOMP_REGS_OUT(); 82 } 83 84 void sub_470855A0(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(0x470855A0u); 93 94 L_470855A0: 95 MEM32(0x4710F8D0) = 0x47108D04u; /* 0x470855A0: mov dword ptr [0x4710f8d0], 0x47108d04 */ 96 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470855AA: ret */ 97 RECOMP_REGS_OUT(); 98 } 99 100 void sub_470855B0(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(0x470855B0u); 109 110 L_470855B0: 111 MEM32(0x4710F8FC) = 0x47108D38u; /* 0x470855B0: mov dword ptr [0x4710f8fc], 0x47108d38 */ 112 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470855BA: ret */ 113 RECOMP_REGS_OUT(); 114 } 115 116 void sub_470855C0(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(0x470855C0u); 125 126 L_470855C0: 127 MEM32(0x4710F8E8) = 0x4710C5B8u; /* 0x470855C0: mov dword ptr [0x4710f8e8], 0x4710c5b8 */ 128 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470855CA: ret */ 129 RECOMP_REGS_OUT(); 130 } 131 132 void sub_470855D0(void) { 133 int _fpu_cmp = 0; 134 uint32_t _cf = 0; 135 int _df = 1; 136 uint32_t _flag_k = FK_NONE; 137 uint32_t _flag_a = 0, _flag_b = 0; 138 uint32_t _itail_tgt = 0; 139 RECOMP_REGS_LOCALS 140 RECOMP_ENTER(0x470855D0u); 141 142 L_470855D0: 143 ecx = 0x4710F919u; /* 0x470855D0: mov ecx, 0x4710f919 */ 144 RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x470855D5: call dword ptr [0x470ac1c8] */ 145 RECOMP_FLAGS_IN(); 146 PUSH32(esp, 0x470855F0u); /* 0x470855DB: push 0x470855f0 */ 147 RECOMP_ICALL(0x470A32D9u); /* 0x470855E0: call 0x470a32d9 */ /* not lifted */ 148 RECOMP_FLAGS_IN(); 149 ecx = POP32_VAL(esp); /* 0x470855E5: pop ecx */ 150 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470855E6: ret */ 151 RECOMP_REGS_OUT(); 152 } 153 154 void sub_470855F0(void) { 155 int _fpu_cmp = 0; 156 uint32_t _cf = 0; 157 int _df = 1; 158 uint32_t _flag_k = FK_NONE; 159 uint32_t _flag_a = 0, _flag_b = 0; 160 uint32_t _itail_tgt = 0; 161 RECOMP_REGS_LOCALS 162 RECOMP_ENTER(0x470855F0u); 163 164 L_470855F0: 165 ecx = 0x4710F919u; /* 0x470855F0: mov ecx, 0x4710f919 */ 166 L_470855F5: 167 { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; } 168 { RECOMP_REGS_OUT(); return; } /* end of function */ 169 _ljump: 170 switch (_itail_tgt) { 171 case 0x470855F0u: goto L_470855F0; 172 case 0x470855F5u: goto L_470855F5; 173 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 174 } 175 RECOMP_REGS_OUT(); 176 } 177 178 void sub_47085600(void) { 179 int _fpu_cmp = 0; 180 uint32_t _cf = 0; 181 int _df = 1; 182 uint32_t _flag_k = FK_NONE; 183 uint32_t _flag_a = 0, _flag_b = 0; 184 uint32_t _itail_tgt = 0; 185 RECOMP_REGS_LOCALS 186 RECOMP_ENTER(0x47085600u); 187 188 L_47085600: 189 ecx = 0x4710F918u; /* 0x47085600: mov ecx, 0x4710f918 */ 190 RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x47085605: call dword ptr [0x470ac1c4] */ 191 RECOMP_FLAGS_IN(); 192 PUSH32(esp, 0x47085620u); /* 0x4708560B: push 0x47085620 */ 193 RECOMP_ICALL(0x470A32D9u); /* 0x47085610: call 0x470a32d9 */ /* not lifted */ 194 RECOMP_FLAGS_IN(); 195 ecx = POP32_VAL(esp); /* 0x47085615: pop ecx */ 196 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47085616: ret */ 197 RECOMP_REGS_OUT(); 198 } 199 200 void sub_47085620(void) { 201 int _fpu_cmp = 0; 202 uint32_t _cf = 0; 203 int _df = 1; 204 uint32_t _flag_k = FK_NONE; 205 uint32_t _flag_a = 0, _flag_b = 0; 206 uint32_t _itail_tgt = 0; 207 RECOMP_REGS_LOCALS 208 RECOMP_ENTER(0x47085620u); 209 210 L_47085620: 211 ecx = 0x4710F918u; /* 0x47085620: mov ecx, 0x4710f918 */ 212 L_47085625: 213 { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; } 214 { RECOMP_REGS_OUT(); return; } /* end of function */ 215 _ljump: 216 switch (_itail_tgt) { 217 case 0x47085620u: goto L_47085620; 218 case 0x47085625u: goto L_47085625; 219 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 220 } 221 RECOMP_REGS_OUT(); 222 } 223 224 void sub_47085630(void) { 225 int _fpu_cmp = 0; 226 uint32_t _cf = 0; 227 int _df = 1; 228 uint32_t _flag_k = FK_NONE; 229 uint32_t _flag_a = 0, _flag_b = 0; 230 uint32_t _itail_tgt = 0; 231 RECOMP_REGS_LOCALS 232 RECOMP_ENTER(0x47085630u); 233 234 L_47085630: 235 MEM32(0x4710F910) = 0x47104A3Cu; /* 0x47085630: mov dword ptr [0x4710f910], 0x47104a3c */ 236 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708563A: ret */ 237 RECOMP_REGS_OUT(); 238 } 239 240 void sub_47085640(void) { 241 int _fpu_cmp = 0; 242 uint32_t _cf = 0; 243 int _df = 1; 244 uint32_t _flag_k = FK_NONE; 245 uint32_t _flag_a = 0, _flag_b = 0; 246 uint32_t _itail_tgt = 0; 247 RECOMP_REGS_LOCALS 248 RECOMP_ENTER(0x47085640u); 249 250 L_47085640: 251 MEM32(0x4710F914) = 0x4710C678u; /* 0x47085640: mov dword ptr [0x4710f914], 0x4710c678 */ 252 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708564A: ret */ 253 RECOMP_REGS_OUT(); 254 } 255 256 void sub_47085650(void) { 257 int _fpu_cmp = 0; 258 uint32_t _cf = 0; 259 int _df = 1; 260 uint32_t _flag_k = FK_NONE; 261 uint32_t _flag_a = 0, _flag_b = 0; 262 uint32_t _itail_tgt = 0; 263 RECOMP_REGS_LOCALS 264 RECOMP_ENTER(0x47085650u); 265 266 L_47085650: 267 eax = ecx; /* 0x47085650: mov eax, ecx */ 268 MEM32(eax + 0x4) = 0; /* 0x47085652: mov dword ptr [eax + 4], 0 */ 269 MEM32(eax) = 0x470AC59Cu; /* 0x47085659: mov dword ptr [eax], 0x470ac59c */ 270 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708565F: ret */ 271 RECOMP_REGS_OUT(); 272 } 273 274 void sub_47085660(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(0x47085660u); 283 284 L_47085660: 285 MEM32(ecx) = 0x470AC578u; /* 0x47085660: mov dword ptr [ecx], 0x470ac578 */ 286 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47085666: ret */ 287 RECOMP_REGS_OUT(); 288 } 289 290 void sub_47085670(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(0x47085670u); 299 300 L_47085670: 301 ecx = MEM32(ecx + 0x4); /* 0x47085670: mov ecx, dword ptr [ecx + 4] */ 302 L_47085673: 303 eax = MEM32(ecx); /* 0x47085673: mov eax, dword ptr [ecx] */ 304 L_47085675: 305 { _itail_tgt = (uint32_t)(MEM32(eax + 0x4)); goto _ljump; } 306 { RECOMP_REGS_OUT(); return; } /* end of function */ 307 _ljump: 308 switch (_itail_tgt) { 309 case 0x47085670u: goto L_47085670; 310 case 0x47085673u: goto L_47085673; 311 case 0x47085675u: goto L_47085675; 312 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 313 } 314 RECOMP_REGS_OUT(); 315 } 316 317 void sub_47085680(void) { 318 int _fpu_cmp = 0; 319 uint32_t _cf = 0; 320 int _df = 1; 321 uint32_t _flag_k = FK_NONE; 322 uint32_t _flag_a = 0, _flag_b = 0; 323 uint32_t _itail_tgt = 0; 324 RECOMP_REGS_LOCALS 325 RECOMP_ENTER(0x47085680u); 326 327 L_47085680: 328 ecx = MEM32(ecx + 0x4); /* 0x47085680: mov ecx, dword ptr [ecx + 4] */ 329 L_47085683: 330 eax = MEM32(ecx); /* 0x47085683: mov eax, dword ptr [ecx] */ 331 L_47085685: 332 { _itail_tgt = (uint32_t)(MEM32(eax + 0x8)); goto _ljump; } 333 { RECOMP_REGS_OUT(); return; } /* end of function */ 334 _ljump: 335 switch (_itail_tgt) { 336 case 0x47085680u: goto L_47085680; 337 case 0x47085683u: goto L_47085683; 338 case 0x47085685u: goto L_47085685; 339 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 340 } 341 RECOMP_REGS_OUT(); 342 } 343 344 void sub_47085690(void) { 345 int _fpu_cmp = 0; 346 uint32_t _cf = 0; 347 int _df = 1; 348 uint32_t _flag_k = FK_NONE; 349 uint32_t _flag_a = 0, _flag_b = 0; 350 uint32_t _itail_tgt = 0; 351 RECOMP_REGS_LOCALS 352 RECOMP_ENTER(0x47085690u); 353 354 L_47085690: 355 ecx = MEM32(ecx + 0x4); /* 0x47085690: mov ecx, dword ptr [ecx + 4] */ 356 L_47085693: 357 eax = MEM32(ecx); /* 0x47085693: mov eax, dword ptr [ecx] */ 358 L_47085695: 359 { _itail_tgt = (uint32_t)(MEM32(eax + 0xC)); goto _ljump; } 360 { RECOMP_REGS_OUT(); return; } /* end of function */ 361 _ljump: 362 switch (_itail_tgt) { 363 case 0x47085690u: goto L_47085690; 364 case 0x47085693u: goto L_47085693; 365 case 0x47085695u: goto L_47085695; 366 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 367 } 368 RECOMP_REGS_OUT(); 369 } 370 371 void sub_470856A0(void) { 372 int _fpu_cmp = 0; 373 uint32_t _cf = 0; 374 int _df = 1; 375 uint32_t _flag_k = FK_NONE; 376 uint32_t _flag_a = 0, _flag_b = 0; 377 uint32_t _itail_tgt = 0; 378 RECOMP_REGS_LOCALS 379 RECOMP_ENTER(0x470856A0u); 380 381 L_470856A0: 382 ecx = MEM32(ecx + 0x4); /* 0x470856A0: mov ecx, dword ptr [ecx + 4] */ 383 L_470856A3: 384 eax = MEM32(ecx); /* 0x470856A3: mov eax, dword ptr [ecx] */ 385 L_470856A5: 386 { _itail_tgt = (uint32_t)(MEM32(eax + 0x10)); goto _ljump; } 387 { RECOMP_REGS_OUT(); return; } /* end of function */ 388 _ljump: 389 switch (_itail_tgt) { 390 case 0x470856A0u: goto L_470856A0; 391 case 0x470856A3u: goto L_470856A3; 392 case 0x470856A5u: goto L_470856A5; 393 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 394 } 395 RECOMP_REGS_OUT(); 396 } 397 398 void sub_470856B0(void) { 399 int _fpu_cmp = 0; 400 uint32_t _cf = 0; 401 int _df = 1; 402 uint32_t _flag_k = FK_NONE; 403 uint32_t _flag_a = 0, _flag_b = 0; 404 uint32_t _itail_tgt = 0; 405 RECOMP_REGS_LOCALS 406 RECOMP_ENTER(0x470856B0u); 407 408 L_470856B0: 409 ecx = MEM32(ecx + 0x4); /* 0x470856B0: mov ecx, dword ptr [ecx + 4] */ 410 L_470856B3: 411 eax = MEM32(ecx); /* 0x470856B3: mov eax, dword ptr [ecx] */ 412 L_470856B5: 413 { _itail_tgt = (uint32_t)(MEM32(eax + 0x14)); goto _ljump; } 414 { RECOMP_REGS_OUT(); return; } /* end of function */ 415 _ljump: 416 switch (_itail_tgt) { 417 case 0x470856B0u: goto L_470856B0; 418 case 0x470856B3u: goto L_470856B3; 419 case 0x470856B5u: goto L_470856B5; 420 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 421 } 422 RECOMP_REGS_OUT(); 423 } 424 425 void sub_470856C0(void) { 426 int _fpu_cmp = 0; 427 uint32_t _cf = 0; 428 int _df = 1; 429 uint32_t _flag_k = FK_NONE; 430 uint32_t _flag_a = 0, _flag_b = 0; 431 uint32_t _itail_tgt = 0; 432 RECOMP_REGS_LOCALS 433 RECOMP_ENTER(0x470856C0u); 434 435 L_470856C0: 436 ecx = MEM32(ecx + 0x4); /* 0x470856C0: mov ecx, dword ptr [ecx + 4] */ 437 L_470856C3: 438 eax = MEM32(ecx); /* 0x470856C3: mov eax, dword ptr [ecx] */ 439 L_470856C5: 440 { _itail_tgt = (uint32_t)(MEM32(eax + 0x18)); goto _ljump; } 441 { RECOMP_REGS_OUT(); return; } /* end of function */ 442 _ljump: 443 switch (_itail_tgt) { 444 case 0x470856C0u: goto L_470856C0; 445 case 0x470856C3u: goto L_470856C3; 446 case 0x470856C5u: goto L_470856C5; 447 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 448 } 449 RECOMP_REGS_OUT(); 450 } 451 452 void sub_470856D0(void) { 453 int _fpu_cmp = 0; 454 uint32_t _cf = 0; 455 int _df = 1; 456 uint32_t _flag_k = FK_NONE; 457 uint32_t _flag_a = 0, _flag_b = 0; 458 uint32_t _itail_tgt = 0; 459 RECOMP_REGS_LOCALS 460 RECOMP_ENTER(0x470856D0u); 461 462 L_470856D0: 463 ecx = MEM32(ecx + 0x4); /* 0x470856D0: mov ecx, dword ptr [ecx + 4] */ 464 L_470856D3: 465 eax = MEM32(ecx); /* 0x470856D3: mov eax, dword ptr [ecx] */ 466 L_470856D5: 467 { _itail_tgt = (uint32_t)(MEM32(eax + 0x1C)); goto _ljump; } 468 { RECOMP_REGS_OUT(); return; } /* end of function */ 469 _ljump: 470 switch (_itail_tgt) { 471 case 0x470856D0u: goto L_470856D0; 472 case 0x470856D3u: goto L_470856D3; 473 case 0x470856D5u: goto L_470856D5; 474 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 475 } 476 RECOMP_REGS_OUT(); 477 } 478 479 void sub_470856E0(void) { 480 int _fpu_cmp = 0; 481 uint32_t _cf = 0; 482 int _df = 1; 483 uint32_t _flag_k = FK_NONE; 484 uint32_t _flag_a = 0, _flag_b = 0; 485 uint32_t _itail_tgt = 0; 486 RECOMP_REGS_LOCALS 487 RECOMP_ENTER(0x470856E0u); 488 489 L_470856E0: 490 ecx = MEM32(ecx + 0x4); /* 0x470856E0: mov ecx, dword ptr [ecx + 4] */ 491 L_470856E3: 492 eax = MEM32(ecx); /* 0x470856E3: mov eax, dword ptr [ecx] */ 493 L_470856E5: 494 { _itail_tgt = (uint32_t)(MEM32(eax + 0x20)); goto _ljump; } 495 { RECOMP_REGS_OUT(); return; } /* end of function */ 496 _ljump: 497 switch (_itail_tgt) { 498 case 0x470856E0u: goto L_470856E0; 499 case 0x470856E3u: goto L_470856E3; 500 case 0x470856E5u: goto L_470856E5; 501 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 502 } 503 RECOMP_REGS_OUT(); 504 } 505 506 void sub_470856F0(void) { 507 int _fpu_cmp = 0; 508 uint32_t _cf = 0; 509 int _df = 1; 510 uint32_t _flag_k = FK_NONE; 511 uint32_t _flag_a = 0, _flag_b = 0; 512 uint32_t _itail_tgt = 0; 513 RECOMP_REGS_LOCALS 514 RECOMP_ENTER(0x470856F0u); 515 516 L_470856F0: 517 eax = MEM32(ecx); /* 0x470856F0: mov eax, dword ptr [ecx] */ 518 PUSH32(esp, eax); /* 0x470856F2: push eax */ 519 RECOMP_ICALL(MEM32(ecx + 0x4)); /* 0x470856F3: call dword ptr [ecx + 4] */ 520 RECOMP_FLAGS_IN(); 521 ecx = POP32_VAL(esp); /* 0x470856F6: pop ecx */ 522 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470856F7: ret */ 523 RECOMP_REGS_OUT(); 524 } 525 526 void sub_47085700(void) { 527 int _fpu_cmp = 0; 528 uint32_t _cf = 0; 529 int _df = 1; 530 uint32_t _flag_k = FK_NONE; 531 uint32_t _flag_a = 0, _flag_b = 0; 532 uint32_t _itail_tgt = 0; 533 RECOMP_REGS_LOCALS 534 RECOMP_ENTER(0x47085700u); 535 536 L_47085700: 537 PUSH32(esp, ebx); /* 0x47085700: push ebx */ 538 PUSH32(esp, ebp); /* 0x47085701: push ebp */ 539 ebp = MEM32(0x470AC150); /* 0x47085702: mov ebp, dword ptr [0x470ac150] */ 540 PUSH32(esp, esi); /* 0x47085708: push esi */ 541 PUSH32(esp, edi); /* 0x47085709: push edi */ 542 edi = ecx; /* 0x4708570A: mov edi, ecx */ 543 RECOMP_ICALL(ebp); /* 0x4708570C: call ebp */ 544 RECOMP_FLAGS_IN(); 545 ebx = eax; /* 0x4708570E: mov ebx, eax */ 546 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47085710: call dword ptr [0x470ac3c8] */ 547 RECOMP_FLAGS_IN(); 548 eax = MEM32(eax); /* 0x47085716: mov eax, dword ptr [eax] */ 549 /* test eax, eax */ /* 0x47085718: test eax, eax */ 550 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 551 _cf = 0; 552 _flag_k = FK_TEST; 553 if (TEST_Z(_flag_a, _flag_b)) goto L_4708571E; /* 0x4708571A: je 0x4708571e */ 554 L_4708571C: 555 ebx = eax; /* 0x4708571C: mov ebx, eax */ 556 L_4708571E: 557 RECOMP_ICALL(0x47039020u); /* 0x4708571E: call 0x47039020 */ /* not lifted */ 558 RECOMP_FLAGS_IN(); 559 esi = eax; /* 0x47085723: mov esi, eax */ 560 ecx = esi; /* 0x47085725: mov ecx, esi */ 561 RECOMP_ICALL(0x4703B210u); /* 0x47085727: call 0x4703b210 */ /* not lifted */ 562 RECOMP_FLAGS_IN(); 563 PUSH32(esp, eax); /* 0x4708572C: push eax */ 564 ecx = esi; /* 0x4708572D: mov ecx, esi */ 565 RECOMP_ICALL(0x4703B240u); /* 0x4708572F: call 0x4703b240 */ /* not lifted */ 566 RECOMP_FLAGS_IN(); 567 PUSH32(esp, eax); /* 0x47085734: push eax */ 568 ecx = esi; /* 0x47085735: mov ecx, esi */ 569 RECOMP_ICALL(0x4703B080u); /* 0x47085737: call 0x4703b080 */ /* not lifted */ 570 RECOMP_FLAGS_IN(); 571 PUSH32(esp, eax); /* 0x4708573C: push eax */ 572 PUSH32(esp, ebx); /* 0x4708573D: push ebx */ 573 PUSH32(esp, 0); /* 0x4708573E: push 0 */ 574 PUSH32(esp, 0x7Eu); /* 0x47085740: push 0x7e */ 575 PUSH32(esp, 0x4710C610u); /* 0x47085742: push 0x4710c610 */ 576 ecx = esi; /* 0x47085747: mov ecx, esi */ 577 RECOMP_ICALL(0x4703A340u); /* 0x47085749: call 0x4703a340 */ /* not lifted */ 578 RECOMP_FLAGS_IN(); 579 PUSH32(esp, edi); /* 0x4708574E: push edi */ 580 PUSH32(esp, 0x471052CCu); /* 0x4708574F: push 0x471052cc */ 581 PUSH32(esp, 4); /* 0x47085754: push 4 */ 582 PUSH32(esp, esi); /* 0x47085756: push esi */ 583 RECOMP_ICALL(0x47039830u); /* 0x47085757: call 0x47039830 */ /* not lifted */ 584 RECOMP_FLAGS_IN(); 585 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 586 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 587 esp = esp + 0x10u; /* 0x4708575C: add esp, 0x10 */ 588 _flag_k = FK_ADD; 589 ecx = edi; /* 0x4708575F: mov ecx, edi */ 590 RECOMP_ICALL(0x47086560u); /* 0x47085761: call 0x47086560 */ /* not lifted */ 591 RECOMP_FLAGS_IN(); 592 RECOMP_ICALL(ebp); /* 0x47085766: call ebp */ 593 RECOMP_FLAGS_IN(); 594 esi = eax; /* 0x47085768: mov esi, eax */ 595 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4708576A: call dword ptr [0x470ac3c8] */ 596 RECOMP_FLAGS_IN(); 597 eax = MEM32(eax); /* 0x47085770: mov eax, dword ptr [eax] */ 598 /* test eax, eax */ /* 0x47085772: test eax, eax */ 599 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 600 _cf = 0; 601 _flag_k = FK_TEST; 602 edi = esi; /* 0x47085774: mov edi, esi */ 603 if (TEST_Z(_flag_a, _flag_b)) goto L_4708577A; /* 0x47085776: je 0x4708577a */ 604 L_47085778: 605 edi = eax; /* 0x47085778: mov edi, eax */ 606 L_4708577A: 607 RECOMP_ICALL(0x47039020u); /* 0x4708577A: call 0x47039020 */ /* not lifted */ 608 RECOMP_FLAGS_IN(); 609 esi = eax; /* 0x4708577F: mov esi, eax */ 610 ecx = esi; /* 0x47085781: mov ecx, esi */ 611 RECOMP_ICALL(0x4703B210u); /* 0x47085783: call 0x4703b210 */ /* not lifted */ 612 RECOMP_FLAGS_IN(); 613 PUSH32(esp, eax); /* 0x47085788: push eax */ 614 ecx = esi; /* 0x47085789: mov ecx, esi */ 615 RECOMP_ICALL(0x4703B240u); /* 0x4708578B: call 0x4703b240 */ /* not lifted */ 616 RECOMP_FLAGS_IN(); 617 PUSH32(esp, eax); /* 0x47085790: push eax */ 618 ecx = esi; /* 0x47085791: mov ecx, esi */ 619 RECOMP_ICALL(0x4703B080u); /* 0x47085793: call 0x4703b080 */ /* not lifted */ 620 RECOMP_FLAGS_IN(); 621 PUSH32(esp, eax); /* 0x47085798: push eax */ 622 PUSH32(esp, edi); /* 0x47085799: push edi */ 623 PUSH32(esp, 0); /* 0x4708579A: push 0 */ 624 PUSH32(esp, 0x80u); /* 0x4708579C: push 0x80 */ 625 PUSH32(esp, 0x4710C610u); /* 0x470857A1: push 0x4710c610 */ 626 ecx = esi; /* 0x470857A6: mov ecx, esi */ 627 RECOMP_ICALL(0x4703A340u); /* 0x470857A8: call 0x4703a340 */ /* not lifted */ 628 RECOMP_FLAGS_IN(); 629 PUSH32(esp, 0x4710529Cu); /* 0x470857AD: push 0x4710529c */ 630 PUSH32(esp, 4); /* 0x470857B2: push 4 */ 631 PUSH32(esp, esi); /* 0x470857B4: push esi */ 632 RECOMP_ICALL(0x47039830u); /* 0x470857B5: call 0x47039830 */ /* not lifted */ 633 RECOMP_FLAGS_IN(); 634 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 635 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 636 esp = esp + 0xCu; /* 0x470857BA: add esp, 0xc */ 637 _flag_k = FK_ADD; 638 edi = POP32_VAL(esp); /* 0x470857BD: pop edi */ 639 esi = POP32_VAL(esp); /* 0x470857BE: pop esi */ 640 ebp = POP32_VAL(esp); /* 0x470857BF: pop ebp */ 641 ebx = POP32_VAL(esp); /* 0x470857C0: pop ebx */ 642 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470857C1: ret */ 643 RECOMP_REGS_OUT(); 644 } 645 646 void sub_470857D0(void) { 647 int _fpu_cmp = 0; 648 uint32_t _cf = 0; 649 int _df = 1; 650 uint32_t _flag_k = FK_NONE; 651 uint32_t _flag_a = 0, _flag_b = 0; 652 uint32_t _itail_tgt = 0; 653 RECOMP_REGS_LOCALS 654 RECOMP_ENTER(0x470857D0u); 655 656 L_470857D0: 657 eax = MEM32(esp + 0x4); /* 0x470857D0: mov eax, dword ptr [esp + 4] */ 658 L_470857D4: 659 PUSH32(esp, ebx); /* 0x470857D4: push ebx */ 660 L_470857D5: 661 PUSH32(esp, eax); /* 0x470857D5: push eax */ 662 L_470857D6: 663 ebx = ecx; /* 0x470857D6: mov ebx, ecx */ 664 L_470857D8: 665 PUSH32(esp, 0); /* 0x470857D8: push 0 */ 666 L_470857DA: 667 PUSH32(esp, 0); /* 0x470857DA: push 0 */ 668 L_470857DC: 669 MEM32(ebx + 0x1C) = 0; /* 0x470857DC: mov dword ptr [ebx + 0x1c], 0 */ 670 L_470857E3: 671 MEM32(ebx) = 2; /* 0x470857E3: mov dword ptr [ebx], 2 */ 672 L_470857E9: 673 RECOMP_ICALL(MEM32(0x470AC1A0)); /* 0x470857E9: call dword ptr [0x470ac1a0] */ 674 RECOMP_FLAGS_IN(); 675 L_470857EF: 676 /* test eax, eax */ /* 0x470857EF: test eax, eax */ 677 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 678 _cf = 0; 679 _flag_k = FK_TEST; 680 L_470857F1: 681 MEM32(ebx + 0x4) = eax; /* 0x470857F1: mov dword ptr [ebx + 4], eax */ 682 L_470857F4: 683 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_470858B0; /* 0x470857F4: jne 0x470858b0 */ 684 L_470857FA: 685 PUSH32(esp, ebp); /* 0x470857FA: push ebp */ 686 L_470857FB: 687 PUSH32(esp, esi); /* 0x470857FB: push esi */ 688 L_470857FC: 689 esi = MEM32(0x470AC3C8); /* 0x470857FC: mov esi, dword ptr [0x470ac3c8] */ 690 L_47085802: 691 PUSH32(esp, edi); /* 0x47085802: push edi */ 692 L_47085803: 693 RECOMP_ICALL(esi); /* 0x47085803: call esi */ 694 RECOMP_FLAGS_IN(); 695 L_47085805: 696 ebp = MEM32(0x470AC150); /* 0x47085805: mov ebp, dword ptr [0x470ac150] */ 697 L_4708580B: 698 edi = eax; /* 0x4708580B: mov edi, eax */ 699 L_4708580D: 700 RECOMP_ICALL(ebp); /* 0x4708580D: call ebp */ 701 RECOMP_FLAGS_IN(); 702 L_4708580F: 703 MEM32(edi) = eax; /* 0x4708580F: mov dword ptr [edi], eax */ 704 L_47085811: 705 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu); 706 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 707 eax = eax + 0xFFFFFFFDu; /* 0x47085811: add eax, -3 */ 708 _flag_k = FK_ADD; 709 L_47085814: 710 /* cmp eax, 0x4Du */ /* 0x47085814: cmp eax, 0x4d */ 711 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Du); 712 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 713 _flag_k = FK_CMP; 714 L_47085817: 715 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_4708584E; /* 0x47085817: ja 0x4708584e */ 716 L_47085819: 717 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 718 ecx = 0; /* 0x47085819: xor ecx, ecx */ 719 _cf = 0; 720 _flag_k = FK_TEST; 721 L_4708581B: 722 SET_LO8(ecx, MEM8(eax + 0x470858CC)); /* 0x4708581B: mov cl, byte ptr [eax + 0x470858cc] */ 723 L_47085821: 724 { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x470858B8)); goto _ljump; } 725 L_47085828: 726 RECOMP_ICALL(esi); /* 0x47085828: call esi */ 727 RECOMP_FLAGS_IN(); 728 L_4708582A: 729 MEM32(eax) = 0xCu; /* 0x4708582A: mov dword ptr [eax], 0xc */ 730 L_47085830: 731 goto L_4708584E; /* 0x47085830: jmp 0x4708584e */ 732 L_47085832: 733 RECOMP_ICALL(esi); /* 0x47085832: call esi */ 734 RECOMP_FLAGS_IN(); 735 L_47085834: 736 MEM32(eax) = 0x11u; /* 0x47085834: mov dword ptr [eax], 0x11 */ 737 L_4708583A: 738 goto L_4708584E; /* 0x4708583A: jmp 0x4708584e */ 739 L_4708583C: 740 RECOMP_ICALL(esi); /* 0x4708583C: call esi */ 741 RECOMP_FLAGS_IN(); 742 L_4708583E: 743 MEM32(eax) = 0xDu; /* 0x4708583E: mov dword ptr [eax], 0xd */ 744 L_47085844: 745 goto L_4708584E; /* 0x47085844: jmp 0x4708584e */ 746 L_47085846: 747 RECOMP_ICALL(esi); /* 0x47085846: call esi */ 748 RECOMP_FLAGS_IN(); 749 L_47085848: 750 MEM32(eax) = 2; /* 0x47085848: mov dword ptr [eax], 2 */ 751 L_4708584E: 752 RECOMP_ICALL(ebp); /* 0x4708584E: call ebp */ 753 RECOMP_FLAGS_IN(); 754 L_47085850: 755 edi = eax; /* 0x47085850: mov edi, eax */ 756 L_47085852: 757 RECOMP_ICALL(esi); /* 0x47085852: call esi */ 758 RECOMP_FLAGS_IN(); 759 L_47085854: 760 eax = MEM32(eax); /* 0x47085854: mov eax, dword ptr [eax] */ 761 L_47085856: 762 /* test eax, eax */ /* 0x47085856: test eax, eax */ 763 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 764 _cf = 0; 765 _flag_k = FK_TEST; 766 L_47085858: 767 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_4708585C; /* 0x47085858: je 0x4708585c */ 768 L_4708585A: 769 edi = eax; /* 0x4708585A: mov edi, eax */ 770 L_4708585C: 771 RECOMP_ICALL(0x47039020u); /* 0x4708585C: call 0x47039020 */ /* not lifted */ 772 RECOMP_FLAGS_IN(); 773 L_47085861: 774 esi = eax; /* 0x47085861: mov esi, eax */ 775 L_47085863: 776 ecx = esi; /* 0x47085863: mov ecx, esi */ 777 L_47085865: 778 RECOMP_ICALL(0x4703B210u); /* 0x47085865: call 0x4703b210 */ /* not lifted */ 779 RECOMP_FLAGS_IN(); 780 L_4708586A: 781 PUSH32(esp, eax); /* 0x4708586A: push eax */ 782 L_4708586B: 783 ecx = esi; /* 0x4708586B: mov ecx, esi */ 784 L_4708586D: 785 RECOMP_ICALL(0x4703B240u); /* 0x4708586D: call 0x4703b240 */ /* not lifted */ 786 RECOMP_FLAGS_IN(); 787 L_47085872: 788 PUSH32(esp, eax); /* 0x47085872: push eax */ 789 L_47085873: 790 ecx = esi; /* 0x47085873: mov ecx, esi */ 791 L_47085875: 792 RECOMP_ICALL(0x4703B080u); /* 0x47085875: call 0x4703b080 */ /* not lifted */ 793 RECOMP_FLAGS_IN(); 794 L_4708587A: 795 PUSH32(esp, eax); /* 0x4708587A: push eax */ 796 L_4708587B: 797 PUSH32(esp, edi); /* 0x4708587B: push edi */ 798 L_4708587C: 799 PUSH32(esp, 0xFFFFFFFFu); /* 0x4708587C: push -1 */ 800 L_4708587E: 801 PUSH32(esp, 0x1C0u); /* 0x4708587E: push 0x1c0 */ 802 L_47085883: 803 PUSH32(esp, 0x4710C610u); /* 0x47085883: push 0x4710c610 */ 804 L_47085888: 805 ecx = esi; /* 0x47085888: mov ecx, esi */ 806 L_4708588A: 807 RECOMP_ICALL(0x4703A340u); /* 0x4708588A: call 0x4703a340 */ /* not lifted */ 808 RECOMP_FLAGS_IN(); 809 L_4708588F: 810 PUSH32(esp, 0x4710C6ACu); /* 0x4708588F: push 0x4710c6ac */ 811 L_47085894: 812 PUSH32(esp, 0x471055F0u); /* 0x47085894: push 0x471055f0 */ 813 L_47085899: 814 PUSH32(esp, 0x80u); /* 0x47085899: push 0x80 */ 815 L_4708589E: 816 PUSH32(esp, esi); /* 0x4708589E: push esi */ 817 L_4708589F: 818 RECOMP_ICALL(0x47039830u); /* 0x4708589F: call 0x47039830 */ /* not lifted */ 819 RECOMP_FLAGS_IN(); 820 L_470858A4: 821 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 822 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 823 esp = esp + 0x10u; /* 0x470858A4: add esp, 0x10 */ 824 _flag_k = FK_ADD; 825 L_470858A7: 826 edi = POP32_VAL(esp); /* 0x470858A7: pop edi */ 827 L_470858A8: 828 esi = POP32_VAL(esp); /* 0x470858A8: pop esi */ 829 L_470858A9: 830 ebp = POP32_VAL(esp); /* 0x470858A9: pop ebp */ 831 L_470858AA: 832 eax = ebx; /* 0x470858AA: mov eax, ebx */ 833 L_470858AC: 834 ebx = POP32_VAL(esp); /* 0x470858AC: pop ebx */ 835 L_470858AD: 836 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470858AD: ret 8 */ 837 L_470858B0: 838 eax = ebx; /* 0x470858B0: mov eax, ebx */ 839 L_470858B2: 840 ebx = POP32_VAL(esp); /* 0x470858B2: pop ebx */ 841 L_470858B3: 842 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470858B3: ret 8 */ 843 _ljump: 844 switch (_itail_tgt) { 845 case 0x470857D0u: goto L_470857D0; 846 case 0x470857D4u: goto L_470857D4; 847 case 0x470857D5u: goto L_470857D5; 848 case 0x470857D6u: goto L_470857D6; 849 case 0x470857D8u: goto L_470857D8; 850 case 0x470857DAu: goto L_470857DA; 851 case 0x470857DCu: goto L_470857DC; 852 case 0x470857E3u: goto L_470857E3; 853 case 0x470857E9u: goto L_470857E9; 854 case 0x470857EFu: goto L_470857EF; 855 case 0x470857F1u: goto L_470857F1; 856 case 0x470857F4u: goto L_470857F4; 857 case 0x470857FAu: goto L_470857FA; 858 case 0x470857FBu: goto L_470857FB; 859 case 0x470857FCu: goto L_470857FC; 860 case 0x47085802u: goto L_47085802; 861 case 0x47085803u: goto L_47085803; 862 case 0x47085805u: goto L_47085805; 863 case 0x4708580Bu: goto L_4708580B; 864 case 0x4708580Du: goto L_4708580D; 865 case 0x4708580Fu: goto L_4708580F; 866 case 0x47085811u: goto L_47085811; 867 case 0x47085814u: goto L_47085814; 868 case 0x47085817u: goto L_47085817; 869 case 0x47085819u: goto L_47085819; 870 case 0x4708581Bu: goto L_4708581B; 871 case 0x47085821u: goto L_47085821; 872 case 0x47085828u: goto L_47085828; 873 case 0x4708582Au: goto L_4708582A; 874 case 0x47085830u: goto L_47085830; 875 case 0x47085832u: goto L_47085832; 876 case 0x47085834u: goto L_47085834; 877 case 0x4708583Au: goto L_4708583A; 878 case 0x4708583Cu: goto L_4708583C; 879 case 0x4708583Eu: goto L_4708583E; 880 case 0x47085844u: goto L_47085844; 881 case 0x47085846u: goto L_47085846; 882 case 0x47085848u: goto L_47085848; 883 case 0x4708584Eu: goto L_4708584E; 884 case 0x47085850u: goto L_47085850; 885 case 0x47085852u: goto L_47085852; 886 case 0x47085854u: goto L_47085854; 887 case 0x47085856u: goto L_47085856; 888 case 0x47085858u: goto L_47085858; 889 case 0x4708585Au: goto L_4708585A; 890 case 0x4708585Cu: goto L_4708585C; 891 case 0x47085861u: goto L_47085861; 892 case 0x47085863u: goto L_47085863; 893 case 0x47085865u: goto L_47085865; 894 case 0x4708586Au: goto L_4708586A; 895 case 0x4708586Bu: goto L_4708586B; 896 case 0x4708586Du: goto L_4708586D; 897 case 0x47085872u: goto L_47085872; 898 case 0x47085873u: goto L_47085873; 899 case 0x47085875u: goto L_47085875; 900 case 0x4708587Au: goto L_4708587A; 901 case 0x4708587Bu: goto L_4708587B; 902 case 0x4708587Cu: goto L_4708587C; 903 case 0x4708587Eu: goto L_4708587E; 904 case 0x47085883u: goto L_47085883; 905 case 0x47085888u: goto L_47085888; 906 case 0x4708588Au: goto L_4708588A; 907 case 0x4708588Fu: goto L_4708588F; 908 case 0x47085894u: goto L_47085894; 909 case 0x47085899u: goto L_47085899; 910 case 0x4708589Eu: goto L_4708589E; 911 case 0x4708589Fu: goto L_4708589F; 912 case 0x470858A4u: goto L_470858A4; 913 case 0x470858A7u: goto L_470858A7; 914 case 0x470858A8u: goto L_470858A8; 915 case 0x470858A9u: goto L_470858A9; 916 case 0x470858AAu: goto L_470858AA; 917 case 0x470858ACu: goto L_470858AC; 918 case 0x470858ADu: goto L_470858AD; 919 case 0x470858B0u: goto L_470858B0; 920 case 0x470858B2u: goto L_470858B2; 921 case 0x470858B3u: goto L_470858B3; 922 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 923 } 924 RECOMP_REGS_OUT(); 925 } 926 927 void sub_47085920(void) { 928 int _fpu_cmp = 0; 929 uint32_t _cf = 0; 930 int _df = 1; 931 uint32_t _flag_k = FK_NONE; 932 uint32_t _flag_a = 0, _flag_b = 0; 933 uint32_t _itail_tgt = 0; 934 RECOMP_REGS_LOCALS 935 RECOMP_ENTER(0x47085920u); 936 937 L_47085920: 938 PUSH32(esp, ebx); /* 0x47085920: push ebx */ 939 ebx = MEM32(esp + 0x8); /* 0x47085921: mov ebx, dword ptr [esp + 8] */ 940 PUSH32(esp, ebp); /* 0x47085925: push ebp */ 941 PUSH32(esp, esi); /* 0x47085926: push esi */ 942 esi = ecx; /* 0x47085927: mov esi, ecx */ 943 PUSH32(esp, edi); /* 0x47085929: push edi */ 944 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 945 edi = 0; /* 0x4708592A: xor edi, edi */ 946 _cf = 0; 947 _flag_k = FK_TEST; 948 _flag_a = (uint32_t)((ebp | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebp | 0xFFFFFFFFu)); 949 ebp = ebp | 0xFFFFFFFFu; /* 0x4708592C: or ebp, 0xffffffff */ 950 _cf = 0; 951 _flag_k = FK_TEST; 952 /* cmp ebx, edi */ /* 0x4708592F: cmp ebx, edi */ 953 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 954 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 955 _flag_k = FK_CMP; 956 MEM32(esi + 0x1C) = edi; /* 0x47085931: mov dword ptr [esi + 0x1c], edi */ 957 MEM32(esi) = edi; /* 0x47085934: mov dword ptr [esi], edi */ 958 MEM32(esi + 0x4) = edi; /* 0x47085936: mov dword ptr [esi + 4], edi */ 959 MEM32(esi + 0xC) = edi; /* 0x47085939: mov dword ptr [esi + 0xc], edi */ 960 MEM32(esi + 0x10) = ebp; /* 0x4708593C: mov dword ptr [esi + 0x10], ebp */ 961 MEM32(esi + 0x18) = ebp; /* 0x4708593F: mov dword ptr [esi + 0x18], ebp */ 962 MEM32(esi + 0x14) = edi; /* 0x47085942: mov dword ptr [esi + 0x14], edi */ 963 if (CMP_EQ(_flag_a, _flag_b)) goto L_470859D9; /* 0x47085945: je 0x470859d9 */ 964 L_4708594B: 965 eax = MEM32(esp + 0x18); /* 0x4708594B: mov eax, dword ptr [esp + 0x18] */ 966 PUSH32(esp, edi); /* 0x4708594F: push edi */ 967 PUSH32(esp, edi); /* 0x47085950: push edi */ 968 PUSH32(esp, eax); /* 0x47085951: push eax */ 969 PUSH32(esp, ebx); /* 0x47085952: push ebx */ 970 RECOMP_ICALL(0x470571E0u); /* 0x47085953: call 0x470571e0 */ /* not lifted */ 971 RECOMP_FLAGS_IN(); 972 PUSH32(esp, ebx); /* 0x47085958: push ebx */ 973 MEM32(esi + 0x18) = eax; /* 0x47085959: mov dword ptr [esi + 0x18], eax */ 974 RECOMP_ICALL(MEM32(0x470AC3F4)); /* 0x4708595C: call dword ptr [0x470ac3f4] */ 975 RECOMP_FLAGS_IN(); 976 ecx = MEM32(esi + 0x18); /* 0x47085962: mov ecx, dword ptr [esi + 0x18] */ 977 MEM32(esi + 0x14) = eax; /* 0x47085965: mov dword ptr [esi + 0x14], eax */ 978 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 979 eax = 0; /* 0x47085968: xor eax, eax */ 980 _cf = 0; 981 _flag_k = FK_TEST; 982 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 983 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 984 esp = esp + 0x14u; /* 0x4708596A: add esp, 0x14 */ 985 _flag_k = FK_ADD; 986 /* cmp ecx, ebp */ /* 0x4708596D: cmp ecx, ebp */ 987 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebp); 988 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 989 _flag_k = FK_CMP; 990 SET_LO8(eax, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x4708596F: setne al */ 991 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 992 eax = eax - 1; /* 0x47085972: dec eax */ 993 _flag_k = FK_DEC; 994 /* cmp eax, ebp */ /* 0x47085973: cmp eax, ebp */ 995 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 996 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 997 _flag_k = FK_CMP; 998 if (CMP_NE(_flag_a, _flag_b)) goto L_470859D9; /* 0x47085975: jne 0x470859d9 */ 999 L_47085977: 1000 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47085977: call dword ptr [0x470ac150] */ 1001 RECOMP_FLAGS_IN(); 1002 ebp = eax; /* 0x4708597D: mov ebp, eax */ 1003 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4708597F: call dword ptr [0x470ac3c8] */ 1004 RECOMP_FLAGS_IN(); 1005 eax = MEM32(eax); /* 0x47085985: mov eax, dword ptr [eax] */ 1006 /* cmp eax, edi */ /* 0x47085987: cmp eax, edi */ 1007 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 1008 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1009 _flag_k = FK_CMP; 1010 if (CMP_EQ(_flag_a, _flag_b)) goto L_4708598D; /* 0x47085989: je 0x4708598d */ 1011 L_4708598B: 1012 ebp = eax; /* 0x4708598B: mov ebp, eax */ 1013 L_4708598D: 1014 RECOMP_ICALL(0x47039020u); /* 0x4708598D: call 0x47039020 */ /* not lifted */ 1015 RECOMP_FLAGS_IN(); 1016 edi = eax; /* 0x47085992: mov edi, eax */ 1017 ecx = edi; /* 0x47085994: mov ecx, edi */ 1018 RECOMP_ICALL(0x4703B210u); /* 0x47085996: call 0x4703b210 */ /* not lifted */ 1019 RECOMP_FLAGS_IN(); 1020 PUSH32(esp, eax); /* 0x4708599B: push eax */ 1021 ecx = edi; /* 0x4708599C: mov ecx, edi */ 1022 RECOMP_ICALL(0x4703B240u); /* 0x4708599E: call 0x4703b240 */ /* not lifted */ 1023 RECOMP_FLAGS_IN(); 1024 PUSH32(esp, eax); /* 0x470859A3: push eax */ 1025 ecx = edi; /* 0x470859A4: mov ecx, edi */ 1026 RECOMP_ICALL(0x4703B080u); /* 0x470859A6: call 0x4703b080 */ /* not lifted */ 1027 RECOMP_FLAGS_IN(); 1028 PUSH32(esp, eax); /* 0x470859AB: push eax */ 1029 PUSH32(esp, ebp); /* 0x470859AC: push ebp */ 1030 PUSH32(esp, 0xFFFFFFFFu); /* 0x470859AD: push -1 */ 1031 PUSH32(esp, 0x113u); /* 0x470859AF: push 0x113 */ 1032 PUSH32(esp, 0x4710C610u); /* 0x470859B4: push 0x4710c610 */ 1033 ecx = edi; /* 0x470859B9: mov ecx, edi */ 1034 RECOMP_ICALL(0x4703A340u); /* 0x470859BB: call 0x4703a340 */ /* not lifted */ 1035 RECOMP_FLAGS_IN(); 1036 PUSH32(esp, ebx); /* 0x470859C0: push ebx */ 1037 PUSH32(esp, 0x4710C6CCu); /* 0x470859C1: push 0x4710c6cc */ 1038 PUSH32(esp, 0x4710C6C4u); /* 0x470859C6: push 0x4710c6c4 */ 1039 PUSH32(esp, 0x80u); /* 0x470859CB: push 0x80 */ 1040 PUSH32(esp, edi); /* 0x470859D0: push edi */ 1041 RECOMP_ICALL(0x47039830u); /* 0x470859D1: call 0x47039830 */ /* not lifted */ 1042 RECOMP_FLAGS_IN(); 1043 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1044 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1045 esp = esp + 0x14u; /* 0x470859D6: add esp, 0x14 */ 1046 _flag_k = FK_ADD; 1047 L_470859D9: 1048 edi = POP32_VAL(esp); /* 0x470859D9: pop edi */ 1049 eax = esi; /* 0x470859DA: mov eax, esi */ 1050 esi = POP32_VAL(esp); /* 0x470859DC: pop esi */ 1051 ebp = POP32_VAL(esp); /* 0x470859DD: pop ebp */ 1052 ebx = POP32_VAL(esp); /* 0x470859DE: pop ebx */ 1053 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470859DF: ret 8 */ 1054 RECOMP_REGS_OUT(); 1055 } 1056 1057 void sub_470859F0(void) { 1058 int _fpu_cmp = 0; 1059 uint32_t _cf = 0; 1060 int _df = 1; 1061 uint32_t _flag_k = FK_NONE; 1062 uint32_t _flag_a = 0, _flag_b = 0; 1063 uint32_t _itail_tgt = 0; 1064 RECOMP_REGS_LOCALS 1065 RECOMP_ENTER(0x470859F0u); 1066 1067 L_470859F0: 1068 PUSH32(esp, esi); /* 0x470859F0: push esi */ 1069 esi = ecx; /* 0x470859F1: mov esi, ecx */ 1070 eax = MEM32(esi + 0x1C); /* 0x470859F3: mov eax, dword ptr [esi + 0x1c] */ 1071 /* test eax, eax */ /* 0x470859F6: test eax, eax */ 1072 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1073 _cf = 0; 1074 _flag_k = FK_TEST; 1075 if (TEST_NZ(_flag_a, _flag_b)) goto L_47085A91; /* 0x470859F8: jne 0x47085a91 */ 1076 L_470859FE: 1077 eax = MEM32(esi + 0x18); /* 0x470859FE: mov eax, dword ptr [esi + 0x18] */ 1078 /* cmp eax, 0xFFFFFFFFu */ /* 0x47085A01: cmp eax, -1 */ 1079 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 1080 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1081 _flag_k = FK_CMP; 1082 MEM32(esi + 0x1C) = 1; /* 0x47085A04: mov dword ptr [esi + 0x1c], 1 */ 1083 if (CMP_EQ(_flag_a, _flag_b)) goto L_47085A91; /* 0x47085A0B: je 0x47085a91 */ 1084 L_47085A11: 1085 PUSH32(esp, ebx); /* 0x47085A11: push ebx */ 1086 PUSH32(esp, ebp); /* 0x47085A12: push ebp */ 1087 PUSH32(esp, edi); /* 0x47085A13: push edi */ 1088 PUSH32(esp, 0); /* 0x47085A14: push 0 */ 1089 PUSH32(esp, eax); /* 0x47085A16: push eax */ 1090 MEM32(esi + 0x8) = 0; /* 0x47085A17: mov dword ptr [esi + 8], 0 */ 1091 RECOMP_ICALL(MEM32(0x470AC144)); /* 0x47085A1E: call dword ptr [0x470ac144] */ 1092 RECOMP_FLAGS_IN(); 1093 ecx = MEM32(esi + 0x18); /* 0x47085A24: mov ecx, dword ptr [esi + 0x18] */ 1094 PUSH32(esp, 0); /* 0x47085A27: push 0 */ 1095 PUSH32(esp, eax); /* 0x47085A29: push eax */ 1096 eax = MEM32(esi + 0x8); /* 0x47085A2A: mov eax, dword ptr [esi + 8] */ 1097 PUSH32(esp, 0); /* 0x47085A2D: push 0 */ 1098 PUSH32(esp, eax); /* 0x47085A2F: push eax */ 1099 PUSH32(esp, ecx); /* 0x47085A30: push ecx */ 1100 RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x47085A31: call dword ptr [0x470ac0fc] */ 1101 RECOMP_FLAGS_IN(); 1102 /* test eax, eax */ /* 0x47085A37: test eax, eax */ 1103 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1104 _cf = 0; 1105 _flag_k = FK_TEST; 1106 ebx = MEM32(0x470AC3C8); /* 0x47085A39: mov ebx, dword ptr [0x470ac3c8] */ 1107 ebp = MEM32(0x470AC150); /* 0x47085A3F: mov ebp, dword ptr [0x470ac150] */ 1108 if (TEST_NZ(_flag_a, _flag_b)) goto L_47085A4F; /* 0x47085A45: jne 0x47085a4f */ 1109 L_47085A47: 1110 RECOMP_ICALL(ebx); /* 0x47085A47: call ebx */ 1111 RECOMP_FLAGS_IN(); 1112 edi = eax; /* 0x47085A49: mov edi, eax */ 1113 RECOMP_ICALL(ebp); /* 0x47085A4B: call ebp */ 1114 RECOMP_FLAGS_IN(); 1115 MEM32(edi) = eax; /* 0x47085A4D: mov dword ptr [edi], eax */ 1116 L_47085A4F: 1117 eax = MEM32(esi + 0x18); /* 0x47085A4F: mov eax, dword ptr [esi + 0x18] */ 1118 PUSH32(esp, eax); /* 0x47085A52: push eax */ 1119 RECOMP_ICALL(MEM32(0x470AC198)); /* 0x47085A53: call dword ptr [0x470ac198] */ 1120 RECOMP_FLAGS_IN(); 1121 /* test eax, eax */ /* 0x47085A59: test eax, eax */ 1122 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1123 _cf = 0; 1124 _flag_k = FK_TEST; 1125 if (TEST_NZ(_flag_a, _flag_b)) goto L_47085A65; /* 0x47085A5B: jne 0x47085a65 */ 1126 L_47085A5D: 1127 RECOMP_ICALL(ebx); /* 0x47085A5D: call ebx */ 1128 RECOMP_FLAGS_IN(); 1129 edi = eax; /* 0x47085A5F: mov edi, eax */ 1130 RECOMP_ICALL(ebp); /* 0x47085A61: call ebp */ 1131 RECOMP_FLAGS_IN(); 1132 MEM32(edi) = eax; /* 0x47085A63: mov dword ptr [edi], eax */ 1133 L_47085A65: 1134 eax = MEM32(esi + 0x14); /* 0x47085A65: mov eax, dword ptr [esi + 0x14] */ 1135 /* test eax, eax */ /* 0x47085A68: test eax, eax */ 1136 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1137 _cf = 0; 1138 _flag_k = FK_TEST; 1139 edi = POP32_VAL(esp); /* 0x47085A6A: pop edi */ 1140 ebp = POP32_VAL(esp); /* 0x47085A6B: pop ebp */ 1141 MEM32(esi + 0x18) = 0xFFFFFFFFu; /* 0x47085A6C: mov dword ptr [esi + 0x18], 0xffffffff */ 1142 ebx = POP32_VAL(esp); /* 0x47085A73: pop ebx */ 1143 if (TEST_Z(_flag_a, _flag_b)) goto L_47085A8A; /* 0x47085A74: je 0x47085a8a */ 1144 L_47085A76: 1145 PUSH32(esp, eax); /* 0x47085A76: push eax */ 1146 RECOMP_ICALL(MEM32(0x470AC3F8)); /* 0x47085A77: call dword ptr [0x470ac3f8] */ 1147 RECOMP_FLAGS_IN(); 1148 edx = MEM32(esi + 0x14); /* 0x47085A7D: mov edx, dword ptr [esi + 0x14] */ 1149 PUSH32(esp, edx); /* 0x47085A80: push edx */ 1150 RECOMP_ICALL(MEM32(0x470AC390)); /* 0x47085A81: call dword ptr [0x470ac390] */ 1151 RECOMP_FLAGS_IN(); 1152 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1153 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1154 esp = esp + 8; /* 0x47085A87: add esp, 8 */ 1155 _flag_k = FK_ADD; 1156 L_47085A8A: 1157 MEM32(esi + 0x14) = 0; /* 0x47085A8A: mov dword ptr [esi + 0x14], 0 */ 1158 L_47085A91: 1159 esi = POP32_VAL(esp); /* 0x47085A91: pop esi */ 1160 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47085A92: ret */ 1161 RECOMP_REGS_OUT(); 1162 } 1163 1164 void sub_47085AA0(void) { 1165 int _fpu_cmp = 0; 1166 uint32_t _cf = 0; 1167 int _df = 1; 1168 uint32_t _flag_k = FK_NONE; 1169 uint32_t _flag_a = 0, _flag_b = 0; 1170 uint32_t _itail_tgt = 0; 1171 RECOMP_REGS_LOCALS 1172 RECOMP_ENTER(0x47085AA0u); 1173 1174 L_47085AA0: 1175 PUSH32(esp, ebx); /* 0x47085AA0: push ebx */ 1176 PUSH32(esp, ebp); /* 0x47085AA1: push ebp */ 1177 ebp = MEM32(0x470AC150); /* 0x47085AA2: mov ebp, dword ptr [0x470ac150] */ 1178 PUSH32(esp, esi); /* 0x47085AA8: push esi */ 1179 PUSH32(esp, edi); /* 0x47085AA9: push edi */ 1180 edi = ecx; /* 0x47085AAA: mov edi, ecx */ 1181 RECOMP_ICALL(ebp); /* 0x47085AAC: call ebp */ 1182 RECOMP_FLAGS_IN(); 1183 ebx = eax; /* 0x47085AAE: mov ebx, eax */ 1184 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47085AB0: call dword ptr [0x470ac3c8] */ 1185 RECOMP_FLAGS_IN(); 1186 eax = MEM32(eax); /* 0x47085AB6: mov eax, dword ptr [eax] */ 1187 /* test eax, eax */ /* 0x47085AB8: test eax, eax */ 1188 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1189 _cf = 0; 1190 _flag_k = FK_TEST; 1191 if (TEST_Z(_flag_a, _flag_b)) goto L_47085ABE; /* 0x47085ABA: je 0x47085abe */ 1192 L_47085ABC: 1193 ebx = eax; /* 0x47085ABC: mov ebx, eax */ 1194 L_47085ABE: 1195 RECOMP_ICALL(0x47039020u); /* 0x47085ABE: call 0x47039020 */ /* not lifted */ 1196 RECOMP_FLAGS_IN(); 1197 esi = eax; /* 0x47085AC3: mov esi, eax */ 1198 ecx = esi; /* 0x47085AC5: mov ecx, esi */ 1199 RECOMP_ICALL(0x4703B210u); /* 0x47085AC7: call 0x4703b210 */ /* not lifted */ 1200 RECOMP_FLAGS_IN(); 1201 PUSH32(esp, eax); /* 0x47085ACC: push eax */ 1202 ecx = esi; /* 0x47085ACD: mov ecx, esi */ 1203 RECOMP_ICALL(0x4703B240u); /* 0x47085ACF: call 0x4703b240 */ /* not lifted */ 1204 RECOMP_FLAGS_IN(); 1205 PUSH32(esp, eax); /* 0x47085AD4: push eax */ 1206 ecx = esi; /* 0x47085AD5: mov ecx, esi */ 1207 RECOMP_ICALL(0x4703B080u); /* 0x47085AD7: call 0x4703b080 */ /* not lifted */ 1208 RECOMP_FLAGS_IN(); 1209 PUSH32(esp, eax); /* 0x47085ADC: push eax */ 1210 PUSH32(esp, ebx); /* 0x47085ADD: push ebx */ 1211 PUSH32(esp, 0); /* 0x47085ADE: push 0 */ 1212 PUSH32(esp, 0xB4u); /* 0x47085AE0: push 0xb4 */ 1213 PUSH32(esp, 0x4710C610u); /* 0x47085AE5: push 0x4710c610 */ 1214 ecx = esi; /* 0x47085AEA: mov ecx, esi */ 1215 RECOMP_ICALL(0x4703A340u); /* 0x47085AEC: call 0x4703a340 */ /* not lifted */ 1216 RECOMP_FLAGS_IN(); 1217 PUSH32(esp, edi); /* 0x47085AF1: push edi */ 1218 PUSH32(esp, 0x471052CCu); /* 0x47085AF2: push 0x471052cc */ 1219 PUSH32(esp, 4); /* 0x47085AF7: push 4 */ 1220 PUSH32(esp, esi); /* 0x47085AF9: push esi */ 1221 RECOMP_ICALL(0x47039830u); /* 0x47085AFA: call 0x47039830 */ /* not lifted */ 1222 RECOMP_FLAGS_IN(); 1223 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1224 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1225 esp = esp + 0x10u; /* 0x47085AFF: add esp, 0x10 */ 1226 _flag_k = FK_ADD; 1227 ecx = edi; /* 0x47085B02: mov ecx, edi */ 1228 RECOMP_ICALL(0x47086050u); /* 0x47085B04: call 0x47086050 */ /* not lifted */ 1229 RECOMP_FLAGS_IN(); 1230 RECOMP_ICALL(ebp); /* 0x47085B09: call ebp */ 1231 RECOMP_FLAGS_IN(); 1232 esi = eax; /* 0x47085B0B: mov esi, eax */ 1233 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47085B0D: call dword ptr [0x470ac3c8] */ 1234 RECOMP_FLAGS_IN(); 1235 eax = MEM32(eax); /* 0x47085B13: mov eax, dword ptr [eax] */ 1236 /* test eax, eax */ /* 0x47085B15: test eax, eax */ 1237 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1238 _cf = 0; 1239 _flag_k = FK_TEST; 1240 edi = esi; /* 0x47085B17: mov edi, esi */ 1241 if (TEST_Z(_flag_a, _flag_b)) goto L_47085B1D; /* 0x47085B19: je 0x47085b1d */ 1242 L_47085B1B: 1243 edi = eax; /* 0x47085B1B: mov edi, eax */ 1244 L_47085B1D: 1245 RECOMP_ICALL(0x47039020u); /* 0x47085B1D: call 0x47039020 */ /* not lifted */ 1246 RECOMP_FLAGS_IN(); 1247 esi = eax; /* 0x47085B22: mov esi, eax */ 1248 ecx = esi; /* 0x47085B24: mov ecx, esi */ 1249 RECOMP_ICALL(0x4703B210u); /* 0x47085B26: call 0x4703b210 */ /* not lifted */ 1250 RECOMP_FLAGS_IN(); 1251 PUSH32(esp, eax); /* 0x47085B2B: push eax */ 1252 ecx = esi; /* 0x47085B2C: mov ecx, esi */ 1253 RECOMP_ICALL(0x4703B240u); /* 0x47085B2E: call 0x4703b240 */ /* not lifted */ 1254 RECOMP_FLAGS_IN(); 1255 PUSH32(esp, eax); /* 0x47085B33: push eax */ 1256 ecx = esi; /* 0x47085B34: mov ecx, esi */ 1257 RECOMP_ICALL(0x4703B080u); /* 0x47085B36: call 0x4703b080 */ /* not lifted */ 1258 RECOMP_FLAGS_IN(); 1259 PUSH32(esp, eax); /* 0x47085B3B: push eax */ 1260 PUSH32(esp, edi); /* 0x47085B3C: push edi */ 1261 PUSH32(esp, 0); /* 0x47085B3D: push 0 */ 1262 PUSH32(esp, 0xB6u); /* 0x47085B3F: push 0xb6 */ 1263 PUSH32(esp, 0x4710C610u); /* 0x47085B44: push 0x4710c610 */ 1264 ecx = esi; /* 0x47085B49: mov ecx, esi */ 1265 RECOMP_ICALL(0x4703A340u); /* 0x47085B4B: call 0x4703a340 */ /* not lifted */ 1266 RECOMP_FLAGS_IN(); 1267 PUSH32(esp, 0x4710529Cu); /* 0x47085B50: push 0x4710529c */ 1268 PUSH32(esp, 4); /* 0x47085B55: push 4 */ 1269 PUSH32(esp, esi); /* 0x47085B57: push esi */ 1270 RECOMP_ICALL(0x47039830u); /* 0x47085B58: call 0x47039830 */ /* not lifted */ 1271 RECOMP_FLAGS_IN(); 1272 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1273 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1274 esp = esp + 0xCu; /* 0x47085B5D: add esp, 0xc */ 1275 _flag_k = FK_ADD; 1276 edi = POP32_VAL(esp); /* 0x47085B60: pop edi */ 1277 esi = POP32_VAL(esp); /* 0x47085B61: pop esi */ 1278 ebp = POP32_VAL(esp); /* 0x47085B62: pop ebp */ 1279 ebx = POP32_VAL(esp); /* 0x47085B63: pop ebx */ 1280 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47085B64: ret */ 1281 RECOMP_REGS_OUT(); 1282 } 1283 1284 void sub_47085B70(void) { 1285 int _fpu_cmp = 0; 1286 uint32_t _cf = 0; 1287 int _df = 1; 1288 uint32_t _flag_k = FK_NONE; 1289 uint32_t _flag_a = 0, _flag_b = 0; 1290 uint32_t _itail_tgt = 0; 1291 RECOMP_REGS_LOCALS 1292 RECOMP_ENTER(0x47085B70u); 1293 1294 L_47085B70: 1295 PUSH32(esp, ecx); /* 0x47085B70: push ecx */ 1296 PUSH32(esp, ebx); /* 0x47085B71: push ebx */ 1297 PUSH32(esp, ebp); /* 0x47085B72: push ebp */ 1298 PUSH32(esp, esi); /* 0x47085B73: push esi */ 1299 PUSH32(esp, edi); /* 0x47085B74: push edi */ 1300 edi = MEM32(0x470AC150); /* 0x47085B75: mov edi, dword ptr [0x470ac150] */ 1301 MEM32(esp + 0x10) = ecx; /* 0x47085B7B: mov dword ptr [esp + 0x10], ecx */ 1302 RECOMP_ICALL(edi); /* 0x47085B7F: call edi */ 1303 RECOMP_FLAGS_IN(); 1304 ebx = MEM32(0x470AC3C8); /* 0x47085B81: mov ebx, dword ptr [0x470ac3c8] */ 1305 ebp = eax; /* 0x47085B87: mov ebp, eax */ 1306 RECOMP_ICALL(ebx); /* 0x47085B89: call ebx */ 1307 RECOMP_FLAGS_IN(); 1308 eax = MEM32(eax); /* 0x47085B8B: mov eax, dword ptr [eax] */ 1309 /* test eax, eax */ /* 0x47085B8D: test eax, eax */ 1310 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1311 _cf = 0; 1312 _flag_k = FK_TEST; 1313 if (TEST_Z(_flag_a, _flag_b)) goto L_47085B93; /* 0x47085B8F: je 0x47085b93 */ 1314 L_47085B91: 1315 ebp = eax; /* 0x47085B91: mov ebp, eax */ 1316 L_47085B93: 1317 RECOMP_ICALL(0x47039020u); /* 0x47085B93: call 0x47039020 */ /* not lifted */ 1318 RECOMP_FLAGS_IN(); 1319 esi = eax; /* 0x47085B98: mov esi, eax */ 1320 ecx = esi; /* 0x47085B9A: mov ecx, esi */ 1321 RECOMP_ICALL(0x4703B210u); /* 0x47085B9C: call 0x4703b210 */ /* not lifted */ 1322 RECOMP_FLAGS_IN(); 1323 PUSH32(esp, eax); /* 0x47085BA1: push eax */ 1324 ecx = esi; /* 0x47085BA2: mov ecx, esi */ 1325 RECOMP_ICALL(0x4703B240u); /* 0x47085BA4: call 0x4703b240 */ /* not lifted */ 1326 RECOMP_FLAGS_IN(); 1327 PUSH32(esp, eax); /* 0x47085BA9: push eax */ 1328 ecx = esi; /* 0x47085BAA: mov ecx, esi */ 1329 RECOMP_ICALL(0x4703B080u); /* 0x47085BAC: call 0x4703b080 */ /* not lifted */ 1330 RECOMP_FLAGS_IN(); 1331 PUSH32(esp, eax); /* 0x47085BB1: push eax */ 1332 PUSH32(esp, ebp); /* 0x47085BB2: push ebp */ 1333 PUSH32(esp, 0); /* 0x47085BB3: push 0 */ 1334 PUSH32(esp, 0xBEu); /* 0x47085BB5: push 0xbe */ 1335 PUSH32(esp, 0x4710C610u); /* 0x47085BBA: push 0x4710c610 */ 1336 ecx = esi; /* 0x47085BBF: mov ecx, esi */ 1337 RECOMP_ICALL(0x4703A340u); /* 0x47085BC1: call 0x4703a340 */ /* not lifted */ 1338 RECOMP_FLAGS_IN(); 1339 eax = MEM32(esp + 0x10); /* 0x47085BC6: mov eax, dword ptr [esp + 0x10] */ 1340 PUSH32(esp, eax); /* 0x47085BCA: push eax */ 1341 PUSH32(esp, 0x471052CCu); /* 0x47085BCB: push 0x471052cc */ 1342 PUSH32(esp, 4); /* 0x47085BD0: push 4 */ 1343 PUSH32(esp, esi); /* 0x47085BD2: push esi */ 1344 RECOMP_ICALL(0x47039830u); /* 0x47085BD3: call 0x47039830 */ /* not lifted */ 1345 RECOMP_FLAGS_IN(); 1346 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1347 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1348 esp = esp + 0x10u; /* 0x47085BD8: add esp, 0x10 */ 1349 _flag_k = FK_ADD; 1350 RECOMP_ICALL(edi); /* 0x47085BDB: call edi */ 1351 RECOMP_FLAGS_IN(); 1352 ebp = eax; /* 0x47085BDD: mov ebp, eax */ 1353 RECOMP_ICALL(ebx); /* 0x47085BDF: call ebx */ 1354 RECOMP_FLAGS_IN(); 1355 eax = MEM32(eax); /* 0x47085BE1: mov eax, dword ptr [eax] */ 1356 /* test eax, eax */ /* 0x47085BE3: test eax, eax */ 1357 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1358 _cf = 0; 1359 _flag_k = FK_TEST; 1360 if (TEST_Z(_flag_a, _flag_b)) goto L_47085BE9; /* 0x47085BE5: je 0x47085be9 */ 1361 L_47085BE7: 1362 ebp = eax; /* 0x47085BE7: mov ebp, eax */ 1363 L_47085BE9: 1364 RECOMP_ICALL(0x47039020u); /* 0x47085BE9: call 0x47039020 */ /* not lifted */ 1365 RECOMP_FLAGS_IN(); 1366 esi = eax; /* 0x47085BEE: mov esi, eax */ 1367 ecx = esi; /* 0x47085BF0: mov ecx, esi */ 1368 RECOMP_ICALL(0x4703B210u); /* 0x47085BF2: call 0x4703b210 */ /* not lifted */ 1369 RECOMP_FLAGS_IN(); 1370 PUSH32(esp, eax); /* 0x47085BF7: push eax */ 1371 ecx = esi; /* 0x47085BF8: mov ecx, esi */ 1372 RECOMP_ICALL(0x4703B240u); /* 0x47085BFA: call 0x4703b240 */ /* not lifted */ 1373 RECOMP_FLAGS_IN(); 1374 PUSH32(esp, eax); /* 0x47085BFF: push eax */ 1375 ecx = esi; /* 0x47085C00: mov ecx, esi */ 1376 RECOMP_ICALL(0x4703B080u); /* 0x47085C02: call 0x4703b080 */ /* not lifted */ 1377 RECOMP_FLAGS_IN(); 1378 PUSH32(esp, eax); /* 0x47085C07: push eax */ 1379 PUSH32(esp, ebp); /* 0x47085C08: push ebp */ 1380 PUSH32(esp, 0); /* 0x47085C09: push 0 */ 1381 PUSH32(esp, 0xBFu); /* 0x47085C0B: push 0xbf */ 1382 PUSH32(esp, 0x4710C610u); /* 0x47085C10: push 0x4710c610 */ 1383 ecx = esi; /* 0x47085C15: mov ecx, esi */ 1384 RECOMP_ICALL(0x4703A340u); /* 0x47085C17: call 0x4703a340 */ /* not lifted */ 1385 RECOMP_FLAGS_IN(); 1386 PUSH32(esp, 0x47105590u); /* 0x47085C1C: push 0x47105590 */ 1387 PUSH32(esp, 4); /* 0x47085C21: push 4 */ 1388 PUSH32(esp, esi); /* 0x47085C23: push esi */ 1389 RECOMP_ICALL(0x47039830u); /* 0x47085C24: call 0x47039830 */ /* not lifted */ 1390 RECOMP_FLAGS_IN(); 1391 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1392 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1393 esp = esp + 0xCu; /* 0x47085C29: add esp, 0xc */ 1394 _flag_k = FK_ADD; 1395 RECOMP_ICALL(edi); /* 0x47085C2C: call edi */ 1396 RECOMP_FLAGS_IN(); 1397 esi = eax; /* 0x47085C2E: mov esi, eax */ 1398 RECOMP_ICALL(ebx); /* 0x47085C30: call ebx */ 1399 RECOMP_FLAGS_IN(); 1400 eax = MEM32(eax); /* 0x47085C32: mov eax, dword ptr [eax] */ 1401 /* test eax, eax */ /* 0x47085C34: test eax, eax */ 1402 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1403 _cf = 0; 1404 _flag_k = FK_TEST; 1405 edi = esi; /* 0x47085C36: mov edi, esi */ 1406 if (TEST_Z(_flag_a, _flag_b)) goto L_47085C3C; /* 0x47085C38: je 0x47085c3c */ 1407 L_47085C3A: 1408 edi = eax; /* 0x47085C3A: mov edi, eax */ 1409 L_47085C3C: 1410 RECOMP_ICALL(0x47039020u); /* 0x47085C3C: call 0x47039020 */ /* not lifted */ 1411 RECOMP_FLAGS_IN(); 1412 esi = eax; /* 0x47085C41: mov esi, eax */ 1413 ecx = esi; /* 0x47085C43: mov ecx, esi */ 1414 RECOMP_ICALL(0x4703B210u); /* 0x47085C45: call 0x4703b210 */ /* not lifted */ 1415 RECOMP_FLAGS_IN(); 1416 PUSH32(esp, eax); /* 0x47085C4A: push eax */ 1417 ecx = esi; /* 0x47085C4B: mov ecx, esi */ 1418 RECOMP_ICALL(0x4703B240u); /* 0x47085C4D: call 0x4703b240 */ /* not lifted */ 1419 RECOMP_FLAGS_IN(); 1420 PUSH32(esp, eax); /* 0x47085C52: push eax */ 1421 ecx = esi; /* 0x47085C53: mov ecx, esi */ 1422 RECOMP_ICALL(0x4703B080u); /* 0x47085C55: call 0x4703b080 */ /* not lifted */ 1423 RECOMP_FLAGS_IN(); 1424 PUSH32(esp, eax); /* 0x47085C5A: push eax */ 1425 PUSH32(esp, edi); /* 0x47085C5B: push edi */ 1426 PUSH32(esp, 0); /* 0x47085C5C: push 0 */ 1427 PUSH32(esp, 0xC0u); /* 0x47085C5E: push 0xc0 */ 1428 PUSH32(esp, 0x4710C610u); /* 0x47085C63: push 0x4710c610 */ 1429 ecx = esi; /* 0x47085C68: mov ecx, esi */ 1430 RECOMP_ICALL(0x4703A340u); /* 0x47085C6A: call 0x4703a340 */ /* not lifted */ 1431 RECOMP_FLAGS_IN(); 1432 PUSH32(esp, 0x4710529Cu); /* 0x47085C6F: push 0x4710529c */ 1433 PUSH32(esp, 4); /* 0x47085C74: push 4 */ 1434 PUSH32(esp, esi); /* 0x47085C76: push esi */ 1435 RECOMP_ICALL(0x47039830u); /* 0x47085C77: call 0x47039830 */ /* not lifted */ 1436 RECOMP_FLAGS_IN(); 1437 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1438 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1439 esp = esp + 0xCu; /* 0x47085C7C: add esp, 0xc */ 1440 _flag_k = FK_ADD; 1441 edi = POP32_VAL(esp); /* 0x47085C7F: pop edi */ 1442 esi = POP32_VAL(esp); /* 0x47085C80: pop esi */ 1443 ebp = POP32_VAL(esp); /* 0x47085C81: pop ebp */ 1444 ebx = POP32_VAL(esp); /* 0x47085C82: pop ebx */ 1445 ecx = POP32_VAL(esp); /* 0x47085C83: pop ecx */ 1446 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47085C84: ret */ 1447 RECOMP_REGS_OUT(); 1448 } 1449 1450 void sub_47085C90(void) { 1451 int _fpu_cmp = 0; 1452 uint32_t _cf = 0; 1453 int _df = 1; 1454 uint32_t _flag_k = FK_NONE; 1455 uint32_t _flag_a = 0, _flag_b = 0; 1456 uint32_t _itail_tgt = 0; 1457 RECOMP_REGS_LOCALS 1458 RECOMP_ENTER(0x47085C90u); 1459 1460 L_47085C90: 1461 eax = MEM32(esp + 0xC); /* 0x47085C90: mov eax, dword ptr [esp + 0xc] */ 1462 edx = MEM32(esp + 0x4); /* 0x47085C94: mov edx, dword ptr [esp + 4] */ 1463 PUSH32(esp, ebx); /* 0x47085C98: push ebx */ 1464 ebx = ecx; /* 0x47085C99: mov ebx, ecx */ 1465 ecx = MEM32(esp + 0xC); /* 0x47085C9B: mov ecx, dword ptr [esp + 0xc] */ 1466 PUSH32(esp, eax); /* 0x47085C9F: push eax */ 1467 PUSH32(esp, ecx); /* 0x47085CA0: push ecx */ 1468 PUSH32(esp, edx); /* 0x47085CA1: push edx */ 1469 PUSH32(esp, ebx); /* 0x47085CA2: push ebx */ 1470 MEM32(ebx + 0xA4) = 0; /* 0x47085CA3: mov dword ptr [ebx + 0xa4], 0 */ 1471 RECOMP_ICALL(0x47057670u); /* 0x47085CAD: call 0x47057670 */ /* not lifted */ 1472 RECOMP_FLAGS_IN(); 1473 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1474 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1475 esp = esp + 0x10u; /* 0x47085CB2: add esp, 0x10 */ 1476 _flag_k = FK_ADD; 1477 /* test eax, eax */ /* 0x47085CB5: test eax, eax */ 1478 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1479 _cf = 0; 1480 _flag_k = FK_TEST; 1481 if (TEST_Z(_flag_a, _flag_b)) goto L_47085D24; /* 0x47085CB7: je 0x47085d24 */ 1482 L_47085CB9: 1483 PUSH32(esp, esi); /* 0x47085CB9: push esi */ 1484 PUSH32(esp, edi); /* 0x47085CBA: push edi */ 1485 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47085CBB: call dword ptr [0x470ac150] */ 1486 RECOMP_FLAGS_IN(); 1487 edi = eax; /* 0x47085CC1: mov edi, eax */ 1488 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47085CC3: call dword ptr [0x470ac3c8] */ 1489 RECOMP_FLAGS_IN(); 1490 eax = MEM32(eax); /* 0x47085CC9: mov eax, dword ptr [eax] */ 1491 /* test eax, eax */ /* 0x47085CCB: test eax, eax */ 1492 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1493 _cf = 0; 1494 _flag_k = FK_TEST; 1495 if (TEST_Z(_flag_a, _flag_b)) goto L_47085CD1; /* 0x47085CCD: je 0x47085cd1 */ 1496 L_47085CCF: 1497 edi = eax; /* 0x47085CCF: mov edi, eax */ 1498 L_47085CD1: 1499 RECOMP_ICALL(0x47039020u); /* 0x47085CD1: call 0x47039020 */ /* not lifted */ 1500 RECOMP_FLAGS_IN(); 1501 esi = eax; /* 0x47085CD6: mov esi, eax */ 1502 ecx = esi; /* 0x47085CD8: mov ecx, esi */ 1503 RECOMP_ICALL(0x4703B210u); /* 0x47085CDA: call 0x4703b210 */ /* not lifted */ 1504 RECOMP_FLAGS_IN(); 1505 PUSH32(esp, eax); /* 0x47085CDF: push eax */ 1506 ecx = esi; /* 0x47085CE0: mov ecx, esi */ 1507 RECOMP_ICALL(0x4703B240u); /* 0x47085CE2: call 0x4703b240 */ /* not lifted */ 1508 RECOMP_FLAGS_IN(); 1509 PUSH32(esp, eax); /* 0x47085CE7: push eax */ 1510 ecx = esi; /* 0x47085CE8: mov ecx, esi */ 1511 RECOMP_ICALL(0x4703B080u); /* 0x47085CEA: call 0x4703b080 */ /* not lifted */ 1512 RECOMP_FLAGS_IN(); 1513 PUSH32(esp, eax); /* 0x47085CEF: push eax */ 1514 PUSH32(esp, edi); /* 0x47085CF0: push edi */ 1515 PUSH32(esp, 0xFFFFFFFFu); /* 0x47085CF1: push -1 */ 1516 PUSH32(esp, 0xC8u); /* 0x47085CF3: push 0xc8 */ 1517 PUSH32(esp, 0x4710C610u); /* 0x47085CF8: push 0x4710c610 */ 1518 ecx = esi; /* 0x47085CFD: mov ecx, esi */ 1519 RECOMP_ICALL(0x4703A340u); /* 0x47085CFF: call 0x4703a340 */ /* not lifted */ 1520 RECOMP_FLAGS_IN(); 1521 PUSH32(esp, 0x4710C644u); /* 0x47085D04: push 0x4710c644 */ 1522 PUSH32(esp, 0x471055F0u); /* 0x47085D09: push 0x471055f0 */ 1523 PUSH32(esp, 0x80u); /* 0x47085D0E: push 0x80 */ 1524 PUSH32(esp, esi); /* 0x47085D13: push esi */ 1525 RECOMP_ICALL(0x47039830u); /* 0x47085D14: call 0x47039830 */ /* not lifted */ 1526 RECOMP_FLAGS_IN(); 1527 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1528 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1529 esp = esp + 0x10u; /* 0x47085D19: add esp, 0x10 */ 1530 _flag_k = FK_ADD; 1531 edi = POP32_VAL(esp); /* 0x47085D1C: pop edi */ 1532 esi = POP32_VAL(esp); /* 0x47085D1D: pop esi */ 1533 eax = ebx; /* 0x47085D1E: mov eax, ebx */ 1534 ebx = POP32_VAL(esp); /* 0x47085D20: pop ebx */ 1535 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47085D21: ret 0xc */ 1536 L_47085D24: 1537 eax = ebx; /* 0x47085D24: mov eax, ebx */ 1538 ebx = POP32_VAL(esp); /* 0x47085D26: pop ebx */ 1539 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47085D27: ret 0xc */ 1540 RECOMP_REGS_OUT(); 1541 } 1542 1543 void sub_47085D30(void) { 1544 int _fpu_cmp = 0; 1545 uint32_t _cf = 0; 1546 int _df = 1; 1547 uint32_t _flag_k = FK_NONE; 1548 uint32_t _flag_a = 0, _flag_b = 0; 1549 uint32_t _itail_tgt = 0; 1550 RECOMP_REGS_LOCALS 1551 RECOMP_ENTER(0x47085D30u); 1552 1553 L_47085D30: 1554 PUSH32(esp, esi); /* 0x47085D30: push esi */ 1555 esi = ecx; /* 0x47085D31: mov esi, ecx */ 1556 eax = MEM32(esi + 0xA4); /* 0x47085D33: mov eax, dword ptr [esi + 0xa4] */ 1557 /* test eax, eax */ /* 0x47085D39: test eax, eax */ 1558 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1559 _cf = 0; 1560 _flag_k = FK_TEST; 1561 if (TEST_NZ(_flag_a, _flag_b)) goto L_47085DA7; /* 0x47085D3B: jne 0x47085da7 */ 1562 L_47085D3D: 1563 eax = MEM32(esi); /* 0x47085D3D: mov eax, dword ptr [esi] */ 1564 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1565 eax = eax - 1; /* 0x47085D3F: dec eax */ 1566 _flag_k = FK_DEC; 1567 MEM32(esi + 0xA4) = 1; /* 0x47085D40: mov dword ptr [esi + 0xa4], 1 */ 1568 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_47085D7F; /* 0x47085D4A: je 0x47085d7f */ 1569 L_47085D4C: 1570 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1571 eax = eax - 1; /* 0x47085D4C: dec eax */ 1572 _flag_k = FK_DEC; 1573 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_47085D5D; /* 0x47085D4D: je 0x47085d5d */ 1574 L_47085D4F: 1575 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47085D4F: call dword ptr [0x470ac3c8] */ 1576 RECOMP_FLAGS_IN(); 1577 MEM32(eax) = 0x16u; /* 0x47085D55: mov dword ptr [eax], 0x16 */ 1578 goto L_47085D89; /* 0x47085D5B: jmp 0x47085d89 */ 1579 L_47085D5D: 1580 eax = MEM32(esi + 0x4); /* 0x47085D5D: mov eax, dword ptr [esi + 4] */ 1581 PUSH32(esp, eax); /* 0x47085D60: push eax */ 1582 RECOMP_ICALL(MEM32(0x470AC198)); /* 0x47085D61: call dword ptr [0x470ac198] */ 1583 RECOMP_FLAGS_IN(); 1584 /* test eax, eax */ /* 0x47085D67: test eax, eax */ 1585 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1586 _cf = 0; 1587 _flag_k = FK_TEST; 1588 if (TEST_NZ(_flag_a, _flag_b)) goto L_47085D89; /* 0x47085D69: jne 0x47085d89 */ 1589 L_47085D6B: 1590 PUSH32(esp, edi); /* 0x47085D6B: push edi */ 1591 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47085D6C: call dword ptr [0x470ac3c8] */ 1592 RECOMP_FLAGS_IN(); 1593 edi = eax; /* 0x47085D72: mov edi, eax */ 1594 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47085D74: call dword ptr [0x470ac150] */ 1595 RECOMP_FLAGS_IN(); 1596 MEM32(edi) = eax; /* 0x47085D7A: mov dword ptr [edi], eax */ 1597 edi = POP32_VAL(esp); /* 0x47085D7C: pop edi */ 1598 goto L_47085D89; /* 0x47085D7D: jmp 0x47085d89 */ 1599 L_47085D7F: 1600 ecx = esi + 0x4; /* 0x47085D7F: lea ecx, [esi + 4] */ 1601 PUSH32(esp, ecx); /* 0x47085D82: push ecx */ 1602 RECOMP_ICALL(MEM32(0x470AC19C)); /* 0x47085D83: call dword ptr [0x470ac19c] */ 1603 RECOMP_FLAGS_IN(); 1604 L_47085D89: 1605 edx = esi + 0x1C; /* 0x47085D89: lea edx, [esi + 0x1c] */ 1606 PUSH32(esp, edx); /* 0x47085D8C: push edx */ 1607 RECOMP_ICALL(0x47057A00u); /* 0x47085D8D: call 0x47057a00 */ /* not lifted */ 1608 RECOMP_FLAGS_IN(); 1609 eax = esi + 0x7C; /* 0x47085D92: lea eax, [esi + 0x7c] */ 1610 PUSH32(esp, eax); /* 0x47085D95: push eax */ 1611 RECOMP_ICALL(0x47057A00u); /* 0x47085D96: call 0x47057a00 */ /* not lifted */ 1612 RECOMP_FLAGS_IN(); 1613 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x48u); 1614 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1615 esi = esi + 0x48u; /* 0x47085D9B: add esi, 0x48 */ 1616 _flag_k = FK_ADD; 1617 PUSH32(esp, esi); /* 0x47085D9E: push esi */ 1618 RECOMP_ICALL(0x47057A00u); /* 0x47085D9F: call 0x47057a00 */ /* not lifted */ 1619 RECOMP_FLAGS_IN(); 1620 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1621 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1622 esp = esp + 0xCu; /* 0x47085DA4: add esp, 0xc */ 1623 _flag_k = FK_ADD; 1624 L_47085DA7: 1625 esi = POP32_VAL(esp); /* 0x47085DA7: pop esi */ 1626 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47085DA8: ret */ 1627 RECOMP_REGS_OUT(); 1628 } 1629 1630 void sub_47085D89(void) { 1631 int _fpu_cmp = 0; 1632 uint32_t _cf = 0; 1633 int _df = 1; 1634 uint32_t _flag_k = FK_NONE; 1635 uint32_t _flag_a = 0, _flag_b = 0; 1636 uint32_t _itail_tgt = 0; 1637 RECOMP_REGS_LOCALS 1638 RECOMP_ENTER(0x47085D89u); 1639 1640 L_47085D89: 1641 edx = esi + 0x1C; /* 0x47085D89: lea edx, [esi + 0x1c] */ 1642 PUSH32(esp, edx); /* 0x47085D8C: push edx */ 1643 RECOMP_ICALL(0x47057A00u); /* 0x47085D8D: call 0x47057a00 */ /* not lifted */ 1644 RECOMP_FLAGS_IN(); 1645 eax = esi + 0x7C; /* 0x47085D92: lea eax, [esi + 0x7c] */ 1646 PUSH32(esp, eax); /* 0x47085D95: push eax */ 1647 RECOMP_ICALL(0x47057A00u); /* 0x47085D96: call 0x47057a00 */ /* not lifted */ 1648 RECOMP_FLAGS_IN(); 1649 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x48u); 1650 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1651 esi = esi + 0x48u; /* 0x47085D9B: add esi, 0x48 */ 1652 _flag_k = FK_ADD; 1653 PUSH32(esp, esi); /* 0x47085D9E: push esi */ 1654 RECOMP_ICALL(0x47057A00u); /* 0x47085D9F: call 0x47057a00 */ /* not lifted */ 1655 RECOMP_FLAGS_IN(); 1656 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1657 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1658 esp = esp + 0xCu; /* 0x47085DA4: add esp, 0xc */ 1659 _flag_k = FK_ADD; 1660 esi = POP32_VAL(esp); /* 0x47085DA7: pop esi */ 1661 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47085DA8: ret */ 1662 RECOMP_REGS_OUT(); 1663 } 1664 1665 void sub_47085DB0(void) { 1666 int _fpu_cmp = 0; 1667 uint32_t _cf = 0; 1668 int _df = 1; 1669 uint32_t _flag_k = FK_NONE; 1670 uint32_t _flag_a = 0, _flag_b = 0; 1671 uint32_t _itail_tgt = 0; 1672 RECOMP_REGS_LOCALS 1673 RECOMP_ENTER(0x47085DB0u); 1674 1675 L_47085DB0: 1676 PUSH32(esp, ecx); /* 0x47085DB0: push ecx */ 1677 PUSH32(esp, ebx); /* 0x47085DB1: push ebx */ 1678 PUSH32(esp, ebp); /* 0x47085DB2: push ebp */ 1679 PUSH32(esp, esi); /* 0x47085DB3: push esi */ 1680 PUSH32(esp, edi); /* 0x47085DB4: push edi */ 1681 edi = MEM32(0x470AC150); /* 0x47085DB5: mov edi, dword ptr [0x470ac150] */ 1682 MEM32(esp + 0x10) = ecx; /* 0x47085DBB: mov dword ptr [esp + 0x10], ecx */ 1683 RECOMP_ICALL(edi); /* 0x47085DBF: call edi */ 1684 RECOMP_FLAGS_IN(); 1685 ebx = MEM32(0x470AC3C8); /* 0x47085DC1: mov ebx, dword ptr [0x470ac3c8] */ 1686 ebp = eax; /* 0x47085DC7: mov ebp, eax */ 1687 RECOMP_ICALL(ebx); /* 0x47085DC9: call ebx */ 1688 RECOMP_FLAGS_IN(); 1689 eax = MEM32(eax); /* 0x47085DCB: mov eax, dword ptr [eax] */ 1690 /* test eax, eax */ /* 0x47085DCD: test eax, eax */ 1691 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1692 _cf = 0; 1693 _flag_k = FK_TEST; 1694 if (TEST_Z(_flag_a, _flag_b)) goto L_47085DD3; /* 0x47085DCF: je 0x47085dd3 */ 1695 L_47085DD1: 1696 ebp = eax; /* 0x47085DD1: mov ebp, eax */ 1697 L_47085DD3: 1698 RECOMP_ICALL(0x47039020u); /* 0x47085DD3: call 0x47039020 */ /* not lifted */ 1699 RECOMP_FLAGS_IN(); 1700 esi = eax; /* 0x47085DD8: mov esi, eax */ 1701 ecx = esi; /* 0x47085DDA: mov ecx, esi */ 1702 RECOMP_ICALL(0x4703B210u); /* 0x47085DDC: call 0x4703b210 */ /* not lifted */ 1703 RECOMP_FLAGS_IN(); 1704 PUSH32(esp, eax); /* 0x47085DE1: push eax */ 1705 ecx = esi; /* 0x47085DE2: mov ecx, esi */ 1706 RECOMP_ICALL(0x4703B240u); /* 0x47085DE4: call 0x4703b240 */ /* not lifted */ 1707 RECOMP_FLAGS_IN(); 1708 PUSH32(esp, eax); /* 0x47085DE9: push eax */ 1709 ecx = esi; /* 0x47085DEA: mov ecx, esi */ 1710 RECOMP_ICALL(0x4703B080u); /* 0x47085DEC: call 0x4703b080 */ /* not lifted */ 1711 RECOMP_FLAGS_IN(); 1712 PUSH32(esp, eax); /* 0x47085DF1: push eax */ 1713 PUSH32(esp, ebp); /* 0x47085DF2: push ebp */ 1714 PUSH32(esp, 0); /* 0x47085DF3: push 0 */ 1715 PUSH32(esp, 0xD8u); /* 0x47085DF5: push 0xd8 */ 1716 PUSH32(esp, 0x4710C610u); /* 0x47085DFA: push 0x4710c610 */ 1717 ecx = esi; /* 0x47085DFF: mov ecx, esi */ 1718 RECOMP_ICALL(0x4703A340u); /* 0x47085E01: call 0x4703a340 */ /* not lifted */ 1719 RECOMP_FLAGS_IN(); 1720 eax = MEM32(esp + 0x10); /* 0x47085E06: mov eax, dword ptr [esp + 0x10] */ 1721 PUSH32(esp, eax); /* 0x47085E0A: push eax */ 1722 PUSH32(esp, 0x471052CCu); /* 0x47085E0B: push 0x471052cc */ 1723 PUSH32(esp, 4); /* 0x47085E10: push 4 */ 1724 PUSH32(esp, esi); /* 0x47085E12: push esi */ 1725 RECOMP_ICALL(0x47039830u); /* 0x47085E13: call 0x47039830 */ /* not lifted */ 1726 RECOMP_FLAGS_IN(); 1727 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1728 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1729 esp = esp + 0x10u; /* 0x47085E18: add esp, 0x10 */ 1730 _flag_k = FK_ADD; 1731 RECOMP_ICALL(edi); /* 0x47085E1B: call edi */ 1732 RECOMP_FLAGS_IN(); 1733 ebp = eax; /* 0x47085E1D: mov ebp, eax */ 1734 RECOMP_ICALL(ebx); /* 0x47085E1F: call ebx */ 1735 RECOMP_FLAGS_IN(); 1736 eax = MEM32(eax); /* 0x47085E21: mov eax, dword ptr [eax] */ 1737 /* test eax, eax */ /* 0x47085E23: test eax, eax */ 1738 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1739 _cf = 0; 1740 _flag_k = FK_TEST; 1741 if (TEST_Z(_flag_a, _flag_b)) goto L_47085E29; /* 0x47085E25: je 0x47085e29 */ 1742 L_47085E27: 1743 ebp = eax; /* 0x47085E27: mov ebp, eax */ 1744 L_47085E29: 1745 RECOMP_ICALL(0x47039020u); /* 0x47085E29: call 0x47039020 */ /* not lifted */ 1746 RECOMP_FLAGS_IN(); 1747 esi = eax; /* 0x47085E2E: mov esi, eax */ 1748 ecx = esi; /* 0x47085E30: mov ecx, esi */ 1749 RECOMP_ICALL(0x4703B210u); /* 0x47085E32: call 0x4703b210 */ /* not lifted */ 1750 RECOMP_FLAGS_IN(); 1751 PUSH32(esp, eax); /* 0x47085E37: push eax */ 1752 ecx = esi; /* 0x47085E38: mov ecx, esi */ 1753 RECOMP_ICALL(0x4703B240u); /* 0x47085E3A: call 0x4703b240 */ /* not lifted */ 1754 RECOMP_FLAGS_IN(); 1755 PUSH32(esp, eax); /* 0x47085E3F: push eax */ 1756 ecx = esi; /* 0x47085E40: mov ecx, esi */ 1757 RECOMP_ICALL(0x4703B080u); /* 0x47085E42: call 0x4703b080 */ /* not lifted */ 1758 RECOMP_FLAGS_IN(); 1759 PUSH32(esp, eax); /* 0x47085E47: push eax */ 1760 PUSH32(esp, ebp); /* 0x47085E48: push ebp */ 1761 PUSH32(esp, 0); /* 0x47085E49: push 0 */ 1762 PUSH32(esp, 0xD9u); /* 0x47085E4B: push 0xd9 */ 1763 PUSH32(esp, 0x4710C610u); /* 0x47085E50: push 0x4710c610 */ 1764 ecx = esi; /* 0x47085E55: mov ecx, esi */ 1765 RECOMP_ICALL(0x4703A340u); /* 0x47085E57: call 0x4703a340 */ /* not lifted */ 1766 RECOMP_FLAGS_IN(); 1767 PUSH32(esp, 0x47105590u); /* 0x47085E5C: push 0x47105590 */ 1768 PUSH32(esp, 4); /* 0x47085E61: push 4 */ 1769 PUSH32(esp, esi); /* 0x47085E63: push esi */ 1770 RECOMP_ICALL(0x47039830u); /* 0x47085E64: call 0x47039830 */ /* not lifted */ 1771 RECOMP_FLAGS_IN(); 1772 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1773 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1774 esp = esp + 0xCu; /* 0x47085E69: add esp, 0xc */ 1775 _flag_k = FK_ADD; 1776 RECOMP_ICALL(edi); /* 0x47085E6C: call edi */ 1777 RECOMP_FLAGS_IN(); 1778 esi = eax; /* 0x47085E6E: mov esi, eax */ 1779 RECOMP_ICALL(ebx); /* 0x47085E70: call ebx */ 1780 RECOMP_FLAGS_IN(); 1781 eax = MEM32(eax); /* 0x47085E72: mov eax, dword ptr [eax] */ 1782 /* test eax, eax */ /* 0x47085E74: test eax, eax */ 1783 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1784 _cf = 0; 1785 _flag_k = FK_TEST; 1786 edi = esi; /* 0x47085E76: mov edi, esi */ 1787 if (TEST_Z(_flag_a, _flag_b)) goto L_47085E7C; /* 0x47085E78: je 0x47085e7c */ 1788 L_47085E7A: 1789 edi = eax; /* 0x47085E7A: mov edi, eax */ 1790 L_47085E7C: 1791 RECOMP_ICALL(0x47039020u); /* 0x47085E7C: call 0x47039020 */ /* not lifted */ 1792 RECOMP_FLAGS_IN(); 1793 esi = eax; /* 0x47085E81: mov esi, eax */ 1794 ecx = esi; /* 0x47085E83: mov ecx, esi */ 1795 RECOMP_ICALL(0x4703B210u); /* 0x47085E85: call 0x4703b210 */ /* not lifted */ 1796 RECOMP_FLAGS_IN(); 1797 PUSH32(esp, eax); /* 0x47085E8A: push eax */ 1798 ecx = esi; /* 0x47085E8B: mov ecx, esi */ 1799 RECOMP_ICALL(0x4703B240u); /* 0x47085E8D: call 0x4703b240 */ /* not lifted */ 1800 RECOMP_FLAGS_IN(); 1801 PUSH32(esp, eax); /* 0x47085E92: push eax */ 1802 ecx = esi; /* 0x47085E93: mov ecx, esi */ 1803 RECOMP_ICALL(0x4703B080u); /* 0x47085E95: call 0x4703b080 */ /* not lifted */ 1804 RECOMP_FLAGS_IN(); 1805 PUSH32(esp, eax); /* 0x47085E9A: push eax */ 1806 PUSH32(esp, edi); /* 0x47085E9B: push edi */ 1807 PUSH32(esp, 0); /* 0x47085E9C: push 0 */ 1808 PUSH32(esp, 0xDAu); /* 0x47085E9E: push 0xda */ 1809 PUSH32(esp, 0x4710C610u); /* 0x47085EA3: push 0x4710c610 */ 1810 ecx = esi; /* 0x47085EA8: mov ecx, esi */ 1811 RECOMP_ICALL(0x4703A340u); /* 0x47085EAA: call 0x4703a340 */ /* not lifted */ 1812 RECOMP_FLAGS_IN(); 1813 PUSH32(esp, 0x4710529Cu); /* 0x47085EAF: push 0x4710529c */ 1814 PUSH32(esp, 4); /* 0x47085EB4: push 4 */ 1815 PUSH32(esp, esi); /* 0x47085EB6: push esi */ 1816 RECOMP_ICALL(0x47039830u); /* 0x47085EB7: call 0x47039830 */ /* not lifted */ 1817 RECOMP_FLAGS_IN(); 1818 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1819 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1820 esp = esp + 0xCu; /* 0x47085EBC: add esp, 0xc */ 1821 _flag_k = FK_ADD; 1822 edi = POP32_VAL(esp); /* 0x47085EBF: pop edi */ 1823 esi = POP32_VAL(esp); /* 0x47085EC0: pop esi */ 1824 ebp = POP32_VAL(esp); /* 0x47085EC1: pop ebp */ 1825 ebx = POP32_VAL(esp); /* 0x47085EC2: pop ebx */ 1826 ecx = POP32_VAL(esp); /* 0x47085EC3: pop ecx */ 1827 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47085EC4: ret */ 1828 RECOMP_REGS_OUT(); 1829 } 1830 1831 void sub_47085ED0(void) { 1832 int _fpu_cmp = 0; 1833 uint32_t _cf = 0; 1834 int _df = 1; 1835 uint32_t _flag_k = FK_NONE; 1836 uint32_t _flag_a = 0, _flag_b = 0; 1837 uint32_t _itail_tgt = 0; 1838 RECOMP_REGS_LOCALS 1839 RECOMP_ENTER(0x47085ED0u); 1840 1841 L_47085ED0: 1842 eax = MEM32(esp + 0xC); /* 0x47085ED0: mov eax, dword ptr [esp + 0xc] */ 1843 L_47085ED4: 1844 edx = MEM32(esp + 0x4); /* 0x47085ED4: mov edx, dword ptr [esp + 4] */ 1845 L_47085ED8: 1846 PUSH32(esp, ebp); /* 0x47085ED8: push ebp */ 1847 L_47085ED9: 1848 ebp = ecx; /* 0x47085ED9: mov ebp, ecx */ 1849 L_47085EDB: 1850 ecx = MEM32(esp + 0x18); /* 0x47085EDB: mov ecx, dword ptr [esp + 0x18] */ 1851 L_47085EDF: 1852 PUSH32(esp, eax); /* 0x47085EDF: push eax */ 1853 L_47085EE0: 1854 PUSH32(esp, ecx); /* 0x47085EE0: push ecx */ 1855 L_47085EE1: 1856 PUSH32(esp, edx); /* 0x47085EE1: push edx */ 1857 L_47085EE2: 1858 PUSH32(esp, 0); /* 0x47085EE2: push 0 */ 1859 L_47085EE4: 1860 MEM32(ebp + 0x4) = 0; /* 0x47085EE4: mov dword ptr [ebp + 4], 0 */ 1861 L_47085EEB: 1862 RECOMP_ICALL(MEM32(0x470AC16C)); /* 0x47085EEB: call dword ptr [0x470ac16c] */ 1863 RECOMP_FLAGS_IN(); 1864 L_47085EF1: 1865 /* test eax, eax */ /* 0x47085EF1: test eax, eax */ 1866 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1867 _cf = 0; 1868 _flag_k = FK_TEST; 1869 L_47085EF3: 1870 MEM32(ebp) = eax; /* 0x47085EF3: mov dword ptr [ebp], eax */ 1871 L_47085EF6: 1872 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47085FB2; /* 0x47085EF6: jne 0x47085fb2 */ 1873 L_47085EFC: 1874 PUSH32(esp, ebx); /* 0x47085EFC: push ebx */ 1875 L_47085EFD: 1876 PUSH32(esp, esi); /* 0x47085EFD: push esi */ 1877 L_47085EFE: 1878 esi = MEM32(0x470AC3C8); /* 0x47085EFE: mov esi, dword ptr [0x470ac3c8] */ 1879 L_47085F04: 1880 PUSH32(esp, edi); /* 0x47085F04: push edi */ 1881 L_47085F05: 1882 RECOMP_ICALL(esi); /* 0x47085F05: call esi */ 1883 RECOMP_FLAGS_IN(); 1884 L_47085F07: 1885 ebx = MEM32(0x470AC150); /* 0x47085F07: mov ebx, dword ptr [0x470ac150] */ 1886 L_47085F0D: 1887 edi = eax; /* 0x47085F0D: mov edi, eax */ 1888 L_47085F0F: 1889 RECOMP_ICALL(ebx); /* 0x47085F0F: call ebx */ 1890 RECOMP_FLAGS_IN(); 1891 L_47085F11: 1892 MEM32(edi) = eax; /* 0x47085F11: mov dword ptr [edi], eax */ 1893 L_47085F13: 1894 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu); 1895 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1896 eax = eax + 0xFFFFFFFDu; /* 0x47085F13: add eax, -3 */ 1897 _flag_k = FK_ADD; 1898 L_47085F16: 1899 /* cmp eax, 0x4Du */ /* 0x47085F16: cmp eax, 0x4d */ 1900 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Du); 1901 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1902 _flag_k = FK_CMP; 1903 L_47085F19: 1904 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_47085F50; /* 0x47085F19: ja 0x47085f50 */ 1905 L_47085F1B: 1906 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1907 ecx = 0; /* 0x47085F1B: xor ecx, ecx */ 1908 _cf = 0; 1909 _flag_k = FK_TEST; 1910 L_47085F1D: 1911 SET_LO8(ecx, MEM8(eax + 0x47085FCC)); /* 0x47085F1D: mov cl, byte ptr [eax + 0x47085fcc] */ 1912 L_47085F23: 1913 { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x47085FB8)); goto _ljump; } 1914 L_47085F2A: 1915 RECOMP_ICALL(esi); /* 0x47085F2A: call esi */ 1916 RECOMP_FLAGS_IN(); 1917 L_47085F2C: 1918 MEM32(eax) = 0xCu; /* 0x47085F2C: mov dword ptr [eax], 0xc */ 1919 L_47085F32: 1920 goto L_47085F50; /* 0x47085F32: jmp 0x47085f50 */ 1921 L_47085F34: 1922 RECOMP_ICALL(esi); /* 0x47085F34: call esi */ 1923 RECOMP_FLAGS_IN(); 1924 L_47085F36: 1925 MEM32(eax) = 0x11u; /* 0x47085F36: mov dword ptr [eax], 0x11 */ 1926 L_47085F3C: 1927 goto L_47085F50; /* 0x47085F3C: jmp 0x47085f50 */ 1928 L_47085F3E: 1929 RECOMP_ICALL(esi); /* 0x47085F3E: call esi */ 1930 RECOMP_FLAGS_IN(); 1931 L_47085F40: 1932 MEM32(eax) = 0xDu; /* 0x47085F40: mov dword ptr [eax], 0xd */ 1933 L_47085F46: 1934 goto L_47085F50; /* 0x47085F46: jmp 0x47085f50 */ 1935 L_47085F48: 1936 RECOMP_ICALL(esi); /* 0x47085F48: call esi */ 1937 RECOMP_FLAGS_IN(); 1938 L_47085F4A: 1939 MEM32(eax) = 2; /* 0x47085F4A: mov dword ptr [eax], 2 */ 1940 L_47085F50: 1941 RECOMP_ICALL(ebx); /* 0x47085F50: call ebx */ 1942 RECOMP_FLAGS_IN(); 1943 L_47085F52: 1944 edi = eax; /* 0x47085F52: mov edi, eax */ 1945 L_47085F54: 1946 RECOMP_ICALL(esi); /* 0x47085F54: call esi */ 1947 RECOMP_FLAGS_IN(); 1948 L_47085F56: 1949 eax = MEM32(eax); /* 0x47085F56: mov eax, dword ptr [eax] */ 1950 L_47085F58: 1951 /* test eax, eax */ /* 0x47085F58: test eax, eax */ 1952 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1953 _cf = 0; 1954 _flag_k = FK_TEST; 1955 L_47085F5A: 1956 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47085F5E; /* 0x47085F5A: je 0x47085f5e */ 1957 L_47085F5C: 1958 edi = eax; /* 0x47085F5C: mov edi, eax */ 1959 L_47085F5E: 1960 RECOMP_ICALL(0x47039020u); /* 0x47085F5E: call 0x47039020 */ /* not lifted */ 1961 RECOMP_FLAGS_IN(); 1962 L_47085F63: 1963 esi = eax; /* 0x47085F63: mov esi, eax */ 1964 L_47085F65: 1965 ecx = esi; /* 0x47085F65: mov ecx, esi */ 1966 L_47085F67: 1967 RECOMP_ICALL(0x4703B210u); /* 0x47085F67: call 0x4703b210 */ /* not lifted */ 1968 RECOMP_FLAGS_IN(); 1969 L_47085F6C: 1970 PUSH32(esp, eax); /* 0x47085F6C: push eax */ 1971 L_47085F6D: 1972 ecx = esi; /* 0x47085F6D: mov ecx, esi */ 1973 L_47085F6F: 1974 RECOMP_ICALL(0x4703B240u); /* 0x47085F6F: call 0x4703b240 */ /* not lifted */ 1975 RECOMP_FLAGS_IN(); 1976 L_47085F74: 1977 PUSH32(esp, eax); /* 0x47085F74: push eax */ 1978 L_47085F75: 1979 ecx = esi; /* 0x47085F75: mov ecx, esi */ 1980 L_47085F77: 1981 RECOMP_ICALL(0x4703B080u); /* 0x47085F77: call 0x4703b080 */ /* not lifted */ 1982 RECOMP_FLAGS_IN(); 1983 L_47085F7C: 1984 PUSH32(esp, eax); /* 0x47085F7C: push eax */ 1985 L_47085F7D: 1986 PUSH32(esp, edi); /* 0x47085F7D: push edi */ 1987 L_47085F7E: 1988 PUSH32(esp, 0xFFFFFFFFu); /* 0x47085F7E: push -1 */ 1989 L_47085F80: 1990 PUSH32(esp, 0xE9u); /* 0x47085F80: push 0xe9 */ 1991 L_47085F85: 1992 PUSH32(esp, 0x4710C610u); /* 0x47085F85: push 0x4710c610 */ 1993 L_47085F8A: 1994 ecx = esi; /* 0x47085F8A: mov ecx, esi */ 1995 L_47085F8C: 1996 RECOMP_ICALL(0x4703A340u); /* 0x47085F8C: call 0x4703a340 */ /* not lifted */ 1997 RECOMP_FLAGS_IN(); 1998 L_47085F91: 1999 PUSH32(esp, 0x4710C5F0u); /* 0x47085F91: push 0x4710c5f0 */ 2000 L_47085F96: 2001 PUSH32(esp, 0x471055F0u); /* 0x47085F96: push 0x471055f0 */ 2002 L_47085F9B: 2003 PUSH32(esp, 0x80u); /* 0x47085F9B: push 0x80 */ 2004 L_47085FA0: 2005 PUSH32(esp, esi); /* 0x47085FA0: push esi */ 2006 L_47085FA1: 2007 RECOMP_ICALL(0x47039830u); /* 0x47085FA1: call 0x47039830 */ /* not lifted */ 2008 RECOMP_FLAGS_IN(); 2009 L_47085FA6: 2010 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2011 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2012 esp = esp + 0x10u; /* 0x47085FA6: add esp, 0x10 */ 2013 _flag_k = FK_ADD; 2014 L_47085FA9: 2015 edi = POP32_VAL(esp); /* 0x47085FA9: pop edi */ 2016 L_47085FAA: 2017 esi = POP32_VAL(esp); /* 0x47085FAA: pop esi */ 2018 L_47085FAB: 2019 ebx = POP32_VAL(esp); /* 0x47085FAB: pop ebx */ 2020 L_47085FAC: 2021 eax = ebp; /* 0x47085FAC: mov eax, ebp */ 2022 L_47085FAE: 2023 ebp = POP32_VAL(esp); /* 0x47085FAE: pop ebp */ 2024 L_47085FAF: 2025 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x47085FAF: ret 0x14 */ 2026 L_47085FB2: 2027 eax = ebp; /* 0x47085FB2: mov eax, ebp */ 2028 L_47085FB4: 2029 ebp = POP32_VAL(esp); /* 0x47085FB4: pop ebp */ 2030 L_47085FB5: 2031 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x47085FB5: ret 0x14 */ 2032 _ljump: 2033 switch (_itail_tgt) { 2034 case 0x47085ED0u: goto L_47085ED0; 2035 case 0x47085ED4u: goto L_47085ED4; 2036 case 0x47085ED8u: goto L_47085ED8; 2037 case 0x47085ED9u: goto L_47085ED9; 2038 case 0x47085EDBu: goto L_47085EDB; 2039 case 0x47085EDFu: goto L_47085EDF; 2040 case 0x47085EE0u: goto L_47085EE0; 2041 case 0x47085EE1u: goto L_47085EE1; 2042 case 0x47085EE2u: goto L_47085EE2; 2043 case 0x47085EE4u: goto L_47085EE4; 2044 case 0x47085EEBu: goto L_47085EEB; 2045 case 0x47085EF1u: goto L_47085EF1; 2046 case 0x47085EF3u: goto L_47085EF3; 2047 case 0x47085EF6u: goto L_47085EF6; 2048 case 0x47085EFCu: goto L_47085EFC; 2049 case 0x47085EFDu: goto L_47085EFD; 2050 case 0x47085EFEu: goto L_47085EFE; 2051 case 0x47085F04u: goto L_47085F04; 2052 case 0x47085F05u: goto L_47085F05; 2053 case 0x47085F07u: goto L_47085F07; 2054 case 0x47085F0Du: goto L_47085F0D; 2055 case 0x47085F0Fu: goto L_47085F0F; 2056 case 0x47085F11u: goto L_47085F11; 2057 case 0x47085F13u: goto L_47085F13; 2058 case 0x47085F16u: goto L_47085F16; 2059 case 0x47085F19u: goto L_47085F19; 2060 case 0x47085F1Bu: goto L_47085F1B; 2061 case 0x47085F1Du: goto L_47085F1D; 2062 case 0x47085F23u: goto L_47085F23; 2063 case 0x47085F2Au: goto L_47085F2A; 2064 case 0x47085F2Cu: goto L_47085F2C; 2065 case 0x47085F32u: goto L_47085F32; 2066 case 0x47085F34u: goto L_47085F34; 2067 case 0x47085F36u: goto L_47085F36; 2068 case 0x47085F3Cu: goto L_47085F3C; 2069 case 0x47085F3Eu: goto L_47085F3E; 2070 case 0x47085F40u: goto L_47085F40; 2071 case 0x47085F46u: goto L_47085F46; 2072 case 0x47085F48u: goto L_47085F48; 2073 case 0x47085F4Au: goto L_47085F4A; 2074 case 0x47085F50u: goto L_47085F50; 2075 case 0x47085F52u: goto L_47085F52; 2076 case 0x47085F54u: goto L_47085F54; 2077 case 0x47085F56u: goto L_47085F56; 2078 case 0x47085F58u: goto L_47085F58; 2079 case 0x47085F5Au: goto L_47085F5A; 2080 case 0x47085F5Cu: goto L_47085F5C; 2081 case 0x47085F5Eu: goto L_47085F5E; 2082 case 0x47085F63u: goto L_47085F63; 2083 case 0x47085F65u: goto L_47085F65; 2084 case 0x47085F67u: goto L_47085F67; 2085 case 0x47085F6Cu: goto L_47085F6C; 2086 case 0x47085F6Du: goto L_47085F6D; 2087 case 0x47085F6Fu: goto L_47085F6F; 2088 case 0x47085F74u: goto L_47085F74; 2089 case 0x47085F75u: goto L_47085F75; 2090 case 0x47085F77u: goto L_47085F77; 2091 case 0x47085F7Cu: goto L_47085F7C; 2092 case 0x47085F7Du: goto L_47085F7D; 2093 case 0x47085F7Eu: goto L_47085F7E; 2094 case 0x47085F80u: goto L_47085F80; 2095 case 0x47085F85u: goto L_47085F85; 2096 case 0x47085F8Au: goto L_47085F8A; 2097 case 0x47085F8Cu: goto L_47085F8C; 2098 case 0x47085F91u: goto L_47085F91; 2099 case 0x47085F96u: goto L_47085F96; 2100 case 0x47085F9Bu: goto L_47085F9B; 2101 case 0x47085FA0u: goto L_47085FA0; 2102 case 0x47085FA1u: goto L_47085FA1; 2103 case 0x47085FA6u: goto L_47085FA6; 2104 case 0x47085FA9u: goto L_47085FA9; 2105 case 0x47085FAAu: goto L_47085FAA; 2106 case 0x47085FABu: goto L_47085FAB; 2107 case 0x47085FACu: goto L_47085FAC; 2108 case 0x47085FAEu: goto L_47085FAE; 2109 case 0x47085FAFu: goto L_47085FAF; 2110 case 0x47085FB2u: goto L_47085FB2; 2111 case 0x47085FB4u: goto L_47085FB4; 2112 case 0x47085FB5u: goto L_47085FB5; 2113 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2114 } 2115 RECOMP_REGS_OUT(); 2116 } 2117 2118 void sub_47086020(void) { 2119 int _fpu_cmp = 0; 2120 uint32_t _cf = 0; 2121 int _df = 1; 2122 uint32_t _flag_k = FK_NONE; 2123 uint32_t _flag_a = 0, _flag_b = 0; 2124 uint32_t _itail_tgt = 0; 2125 RECOMP_REGS_LOCALS 2126 RECOMP_ENTER(0x47086020u); 2127 2128 L_47086020: 2129 eax = MEM32(ecx + 0x4); /* 0x47086020: mov eax, dword ptr [ecx + 4] */ 2130 /* test eax, eax */ /* 0x47086023: test eax, eax */ 2131 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2132 _cf = 0; 2133 _flag_k = FK_TEST; 2134 if (TEST_NZ(_flag_a, _flag_b)) goto L_4708604D; /* 0x47086025: jne 0x4708604d */ 2135 L_47086027: 2136 eax = MEM32(ecx); /* 0x47086027: mov eax, dword ptr [ecx] */ 2137 PUSH32(esp, eax); /* 0x47086029: push eax */ 2138 MEM32(ecx + 0x4) = 1; /* 0x4708602A: mov dword ptr [ecx + 4], 1 */ 2139 RECOMP_ICALL(MEM32(0x470AC198)); /* 0x47086031: call dword ptr [0x470ac198] */ 2140 RECOMP_FLAGS_IN(); 2141 /* test eax, eax */ /* 0x47086037: test eax, eax */ 2142 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2143 _cf = 0; 2144 _flag_k = FK_TEST; 2145 if (TEST_NZ(_flag_a, _flag_b)) goto L_4708604D; /* 0x47086039: jne 0x4708604d */ 2146 L_4708603B: 2147 PUSH32(esp, esi); /* 0x4708603B: push esi */ 2148 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4708603C: call dword ptr [0x470ac3c8] */ 2149 RECOMP_FLAGS_IN(); 2150 esi = eax; /* 0x47086042: mov esi, eax */ 2151 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47086044: call dword ptr [0x470ac150] */ 2152 RECOMP_FLAGS_IN(); 2153 MEM32(esi) = eax; /* 0x4708604A: mov dword ptr [esi], eax */ 2154 esi = POP32_VAL(esp); /* 0x4708604C: pop esi */ 2155 L_4708604D: 2156 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708604D: ret */ 2157 RECOMP_REGS_OUT(); 2158 } 2159 2160 void sub_47086050(void) { 2161 int _fpu_cmp = 0; 2162 uint32_t _cf = 0; 2163 int _df = 1; 2164 uint32_t _flag_k = FK_NONE; 2165 uint32_t _flag_a = 0, _flag_b = 0; 2166 uint32_t _itail_tgt = 0; 2167 RECOMP_REGS_LOCALS 2168 RECOMP_ENTER(0x47086050u); 2169 2170 L_47086050: 2171 PUSH32(esp, ebx); /* 0x47086050: push ebx */ 2172 PUSH32(esp, ebp); /* 0x47086051: push ebp */ 2173 ebp = MEM32(0x470AC150); /* 0x47086052: mov ebp, dword ptr [0x470ac150] */ 2174 PUSH32(esp, esi); /* 0x47086058: push esi */ 2175 PUSH32(esp, edi); /* 0x47086059: push edi */ 2176 edi = ecx; /* 0x4708605A: mov edi, ecx */ 2177 RECOMP_ICALL(ebp); /* 0x4708605C: call ebp */ 2178 RECOMP_FLAGS_IN(); 2179 ebx = eax; /* 0x4708605E: mov ebx, eax */ 2180 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47086060: call dword ptr [0x470ac3c8] */ 2181 RECOMP_FLAGS_IN(); 2182 eax = MEM32(eax); /* 0x47086066: mov eax, dword ptr [eax] */ 2183 /* test eax, eax */ /* 0x47086068: test eax, eax */ 2184 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2185 _cf = 0; 2186 _flag_k = FK_TEST; 2187 if (TEST_Z(_flag_a, _flag_b)) goto L_4708606E; /* 0x4708606A: je 0x4708606e */ 2188 L_4708606C: 2189 ebx = eax; /* 0x4708606C: mov ebx, eax */ 2190 L_4708606E: 2191 RECOMP_ICALL(0x47039020u); /* 0x4708606E: call 0x47039020 */ /* not lifted */ 2192 RECOMP_FLAGS_IN(); 2193 esi = eax; /* 0x47086073: mov esi, eax */ 2194 ecx = esi; /* 0x47086075: mov ecx, esi */ 2195 RECOMP_ICALL(0x4703B210u); /* 0x47086077: call 0x4703b210 */ /* not lifted */ 2196 RECOMP_FLAGS_IN(); 2197 PUSH32(esp, eax); /* 0x4708607C: push eax */ 2198 ecx = esi; /* 0x4708607D: mov ecx, esi */ 2199 RECOMP_ICALL(0x4703B240u); /* 0x4708607F: call 0x4703b240 */ /* not lifted */ 2200 RECOMP_FLAGS_IN(); 2201 PUSH32(esp, eax); /* 0x47086084: push eax */ 2202 ecx = esi; /* 0x47086085: mov ecx, esi */ 2203 RECOMP_ICALL(0x4703B080u); /* 0x47086087: call 0x4703b080 */ /* not lifted */ 2204 RECOMP_FLAGS_IN(); 2205 PUSH32(esp, eax); /* 0x4708608C: push eax */ 2206 PUSH32(esp, ebx); /* 0x4708608D: push ebx */ 2207 PUSH32(esp, 0); /* 0x4708608E: push 0 */ 2208 PUSH32(esp, 0xF8u); /* 0x47086090: push 0xf8 */ 2209 PUSH32(esp, 0x4710C610u); /* 0x47086095: push 0x4710c610 */ 2210 ecx = esi; /* 0x4708609A: mov ecx, esi */ 2211 RECOMP_ICALL(0x4703A340u); /* 0x4708609C: call 0x4703a340 */ /* not lifted */ 2212 RECOMP_FLAGS_IN(); 2213 PUSH32(esp, edi); /* 0x470860A1: push edi */ 2214 PUSH32(esp, 0x471052CCu); /* 0x470860A2: push 0x471052cc */ 2215 PUSH32(esp, 4); /* 0x470860A7: push 4 */ 2216 PUSH32(esp, esi); /* 0x470860A9: push esi */ 2217 RECOMP_ICALL(0x47039830u); /* 0x470860AA: call 0x47039830 */ /* not lifted */ 2218 RECOMP_FLAGS_IN(); 2219 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2220 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2221 esp = esp + 0x10u; /* 0x470860AF: add esp, 0x10 */ 2222 _flag_k = FK_ADD; 2223 ecx = edi; /* 0x470860B2: mov ecx, edi */ 2224 RECOMP_ICALL(0x47054A10u); /* 0x470860B4: call 0x47054a10 */ /* not lifted */ 2225 RECOMP_FLAGS_IN(); 2226 RECOMP_ICALL(ebp); /* 0x470860B9: call ebp */ 2227 RECOMP_FLAGS_IN(); 2228 esi = eax; /* 0x470860BB: mov esi, eax */ 2229 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470860BD: call dword ptr [0x470ac3c8] */ 2230 RECOMP_FLAGS_IN(); 2231 eax = MEM32(eax); /* 0x470860C3: mov eax, dword ptr [eax] */ 2232 /* test eax, eax */ /* 0x470860C5: test eax, eax */ 2233 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2234 _cf = 0; 2235 _flag_k = FK_TEST; 2236 edi = esi; /* 0x470860C7: mov edi, esi */ 2237 if (TEST_Z(_flag_a, _flag_b)) goto L_470860CD; /* 0x470860C9: je 0x470860cd */ 2238 L_470860CB: 2239 edi = eax; /* 0x470860CB: mov edi, eax */ 2240 L_470860CD: 2241 RECOMP_ICALL(0x47039020u); /* 0x470860CD: call 0x47039020 */ /* not lifted */ 2242 RECOMP_FLAGS_IN(); 2243 esi = eax; /* 0x470860D2: mov esi, eax */ 2244 ecx = esi; /* 0x470860D4: mov ecx, esi */ 2245 RECOMP_ICALL(0x4703B210u); /* 0x470860D6: call 0x4703b210 */ /* not lifted */ 2246 RECOMP_FLAGS_IN(); 2247 PUSH32(esp, eax); /* 0x470860DB: push eax */ 2248 ecx = esi; /* 0x470860DC: mov ecx, esi */ 2249 RECOMP_ICALL(0x4703B240u); /* 0x470860DE: call 0x4703b240 */ /* not lifted */ 2250 RECOMP_FLAGS_IN(); 2251 PUSH32(esp, eax); /* 0x470860E3: push eax */ 2252 ecx = esi; /* 0x470860E4: mov ecx, esi */ 2253 RECOMP_ICALL(0x4703B080u); /* 0x470860E6: call 0x4703b080 */ /* not lifted */ 2254 RECOMP_FLAGS_IN(); 2255 PUSH32(esp, eax); /* 0x470860EB: push eax */ 2256 PUSH32(esp, edi); /* 0x470860EC: push edi */ 2257 PUSH32(esp, 0); /* 0x470860ED: push 0 */ 2258 PUSH32(esp, 0xFAu); /* 0x470860EF: push 0xfa */ 2259 PUSH32(esp, 0x4710C610u); /* 0x470860F4: push 0x4710c610 */ 2260 ecx = esi; /* 0x470860F9: mov ecx, esi */ 2261 RECOMP_ICALL(0x4703A340u); /* 0x470860FB: call 0x4703a340 */ /* not lifted */ 2262 RECOMP_FLAGS_IN(); 2263 PUSH32(esp, 0x4710529Cu); /* 0x47086100: push 0x4710529c */ 2264 PUSH32(esp, 4); /* 0x47086105: push 4 */ 2265 PUSH32(esp, esi); /* 0x47086107: push esi */ 2266 RECOMP_ICALL(0x47039830u); /* 0x47086108: call 0x47039830 */ /* not lifted */ 2267 RECOMP_FLAGS_IN(); 2268 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2269 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2270 esp = esp + 0xCu; /* 0x4708610D: add esp, 0xc */ 2271 _flag_k = FK_ADD; 2272 edi = POP32_VAL(esp); /* 0x47086110: pop edi */ 2273 esi = POP32_VAL(esp); /* 0x47086111: pop esi */ 2274 ebp = POP32_VAL(esp); /* 0x47086112: pop ebp */ 2275 ebx = POP32_VAL(esp); /* 0x47086113: pop ebx */ 2276 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47086114: ret */ 2277 RECOMP_REGS_OUT(); 2278 } 2279 2280 void sub_47086120(void) { 2281 int _fpu_cmp = 0; 2282 uint32_t _cf = 0; 2283 int _df = 1; 2284 uint32_t _flag_k = FK_NONE; 2285 uint32_t _flag_a = 0, _flag_b = 0; 2286 uint32_t _itail_tgt = 0; 2287 RECOMP_REGS_LOCALS 2288 RECOMP_ENTER(0x47086120u); 2289 2290 L_47086120: 2291 eax = ecx; /* 0x47086120: mov eax, ecx */ 2292 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2293 ecx = 0; /* 0x47086122: xor ecx, ecx */ 2294 _cf = 0; 2295 _flag_k = FK_TEST; 2296 MEM32(eax + 0x1C) = ecx; /* 0x47086124: mov dword ptr [eax + 0x1c], ecx */ 2297 MEM32(eax) = ecx; /* 0x47086127: mov dword ptr [eax], ecx */ 2298 MEM32(eax + 0x4) = ecx; /* 0x47086129: mov dword ptr [eax + 4], ecx */ 2299 MEM32(eax + 0xC) = ecx; /* 0x4708612C: mov dword ptr [eax + 0xc], ecx */ 2300 MEM32(eax + 0x14) = ecx; /* 0x4708612F: mov dword ptr [eax + 0x14], ecx */ 2301 ecx = MEM32(esp + 0x4); /* 0x47086132: mov ecx, dword ptr [esp + 4] */ 2302 MEM32(eax + 0x10) = 0xFFFFFFFFu; /* 0x47086136: mov dword ptr [eax + 0x10], 0xffffffff */ 2303 MEM32(eax + 0x18) = ecx; /* 0x4708613D: mov dword ptr [eax + 0x18], ecx */ 2304 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47086140: ret 4 */ 2305 RECOMP_REGS_OUT(); 2306 } 2307 2308 void sub_47086150(void) { 2309 int _fpu_cmp = 0; 2310 uint32_t _cf = 0; 2311 int _df = 1; 2312 uint32_t _flag_k = FK_NONE; 2313 uint32_t _flag_a = 0, _flag_b = 0; 2314 uint32_t _itail_tgt = 0; 2315 RECOMP_REGS_LOCALS 2316 RECOMP_ENTER(0x47086150u); 2317 2318 L_47086150: 2319 PUSH32(esp, ebx); /* 0x47086150: push ebx */ 2320 ebx = MEM32(esp + 0x8); /* 0x47086151: mov ebx, dword ptr [esp + 8] */ 2321 PUSH32(esp, ebp); /* 0x47086155: push ebp */ 2322 PUSH32(esp, esi); /* 0x47086156: push esi */ 2323 esi = ecx; /* 0x47086157: mov esi, ecx */ 2324 PUSH32(esp, edi); /* 0x47086159: push edi */ 2325 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2326 edi = 0; /* 0x4708615A: xor edi, edi */ 2327 _cf = 0; 2328 _flag_k = FK_TEST; 2329 _flag_a = (uint32_t)((ebp | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebp | 0xFFFFFFFFu)); 2330 ebp = ebp | 0xFFFFFFFFu; /* 0x4708615C: or ebp, 0xffffffff */ 2331 _cf = 0; 2332 _flag_k = FK_TEST; 2333 /* cmp ebx, edi */ /* 0x4708615F: cmp ebx, edi */ 2334 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 2335 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2336 _flag_k = FK_CMP; 2337 MEM32(esi + 0x1C) = edi; /* 0x47086161: mov dword ptr [esi + 0x1c], edi */ 2338 MEM32(esi) = edi; /* 0x47086164: mov dword ptr [esi], edi */ 2339 MEM32(esi + 0x4) = edi; /* 0x47086166: mov dword ptr [esi + 4], edi */ 2340 MEM32(esi + 0xC) = edi; /* 0x47086169: mov dword ptr [esi + 0xc], edi */ 2341 MEM32(esi + 0x10) = ebp; /* 0x4708616C: mov dword ptr [esi + 0x10], ebp */ 2342 MEM32(esi + 0x18) = ebp; /* 0x4708616F: mov dword ptr [esi + 0x18], ebp */ 2343 MEM32(esi + 0x14) = edi; /* 0x47086172: mov dword ptr [esi + 0x14], edi */ 2344 if (CMP_EQ(_flag_a, _flag_b)) goto L_4708620D; /* 0x47086175: je 0x4708620d */ 2345 L_4708617B: 2346 eax = MEM32(esp + 0x1C); /* 0x4708617B: mov eax, dword ptr [esp + 0x1c] */ 2347 ecx = MEM32(esp + 0x18); /* 0x4708617F: mov ecx, dword ptr [esp + 0x18] */ 2348 PUSH32(esp, edi); /* 0x47086183: push edi */ 2349 PUSH32(esp, eax); /* 0x47086184: push eax */ 2350 PUSH32(esp, ecx); /* 0x47086185: push ecx */ 2351 PUSH32(esp, ebx); /* 0x47086186: push ebx */ 2352 RECOMP_ICALL(0x470571E0u); /* 0x47086187: call 0x470571e0 */ /* not lifted */ 2353 RECOMP_FLAGS_IN(); 2354 PUSH32(esp, ebx); /* 0x4708618C: push ebx */ 2355 MEM32(esi + 0x18) = eax; /* 0x4708618D: mov dword ptr [esi + 0x18], eax */ 2356 RECOMP_ICALL(MEM32(0x470AC3F4)); /* 0x47086190: call dword ptr [0x470ac3f4] */ 2357 RECOMP_FLAGS_IN(); 2358 ecx = MEM32(esi + 0x18); /* 0x47086196: mov ecx, dword ptr [esi + 0x18] */ 2359 MEM32(esi + 0x14) = eax; /* 0x47086199: mov dword ptr [esi + 0x14], eax */ 2360 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2361 eax = 0; /* 0x4708619C: xor eax, eax */ 2362 _cf = 0; 2363 _flag_k = FK_TEST; 2364 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2365 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2366 esp = esp + 0x14u; /* 0x4708619E: add esp, 0x14 */ 2367 _flag_k = FK_ADD; 2368 /* cmp ecx, ebp */ /* 0x470861A1: cmp ecx, ebp */ 2369 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebp); 2370 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2371 _flag_k = FK_CMP; 2372 SET_LO8(eax, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x470861A3: setne al */ 2373 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2374 eax = eax - 1; /* 0x470861A6: dec eax */ 2375 _flag_k = FK_DEC; 2376 /* cmp eax, ebp */ /* 0x470861A7: cmp eax, ebp */ 2377 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 2378 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2379 _flag_k = FK_CMP; 2380 if (CMP_NE(_flag_a, _flag_b)) goto L_4708620D; /* 0x470861A9: jne 0x4708620d */ 2381 L_470861AB: 2382 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470861AB: call dword ptr [0x470ac150] */ 2383 RECOMP_FLAGS_IN(); 2384 ebp = eax; /* 0x470861B1: mov ebp, eax */ 2385 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470861B3: call dword ptr [0x470ac3c8] */ 2386 RECOMP_FLAGS_IN(); 2387 eax = MEM32(eax); /* 0x470861B9: mov eax, dword ptr [eax] */ 2388 /* cmp eax, edi */ /* 0x470861BB: cmp eax, edi */ 2389 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2390 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2391 _flag_k = FK_CMP; 2392 if (CMP_EQ(_flag_a, _flag_b)) goto L_470861C1; /* 0x470861BD: je 0x470861c1 */ 2393 L_470861BF: 2394 ebp = eax; /* 0x470861BF: mov ebp, eax */ 2395 L_470861C1: 2396 RECOMP_ICALL(0x47039020u); /* 0x470861C1: call 0x47039020 */ /* not lifted */ 2397 RECOMP_FLAGS_IN(); 2398 edi = eax; /* 0x470861C6: mov edi, eax */ 2399 ecx = edi; /* 0x470861C8: mov ecx, edi */ 2400 RECOMP_ICALL(0x4703B210u); /* 0x470861CA: call 0x4703b210 */ /* not lifted */ 2401 RECOMP_FLAGS_IN(); 2402 PUSH32(esp, eax); /* 0x470861CF: push eax */ 2403 ecx = edi; /* 0x470861D0: mov ecx, edi */ 2404 RECOMP_ICALL(0x4703B240u); /* 0x470861D2: call 0x4703b240 */ /* not lifted */ 2405 RECOMP_FLAGS_IN(); 2406 PUSH32(esp, eax); /* 0x470861D7: push eax */ 2407 ecx = edi; /* 0x470861D8: mov ecx, edi */ 2408 RECOMP_ICALL(0x4703B080u); /* 0x470861DA: call 0x4703b080 */ /* not lifted */ 2409 RECOMP_FLAGS_IN(); 2410 PUSH32(esp, eax); /* 0x470861DF: push eax */ 2411 PUSH32(esp, ebp); /* 0x470861E0: push ebp */ 2412 PUSH32(esp, 0xFFFFFFFFu); /* 0x470861E1: push -1 */ 2413 PUSH32(esp, 0x113u); /* 0x470861E3: push 0x113 */ 2414 PUSH32(esp, 0x4710C610u); /* 0x470861E8: push 0x4710c610 */ 2415 ecx = edi; /* 0x470861ED: mov ecx, edi */ 2416 RECOMP_ICALL(0x4703A340u); /* 0x470861EF: call 0x4703a340 */ /* not lifted */ 2417 RECOMP_FLAGS_IN(); 2418 PUSH32(esp, ebx); /* 0x470861F4: push ebx */ 2419 PUSH32(esp, 0x4710C6CCu); /* 0x470861F5: push 0x4710c6cc */ 2420 PUSH32(esp, 0x4710C6C4u); /* 0x470861FA: push 0x4710c6c4 */ 2421 PUSH32(esp, 0x80u); /* 0x470861FF: push 0x80 */ 2422 PUSH32(esp, edi); /* 0x47086204: push edi */ 2423 RECOMP_ICALL(0x47039830u); /* 0x47086205: call 0x47039830 */ /* not lifted */ 2424 RECOMP_FLAGS_IN(); 2425 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2426 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2427 esp = esp + 0x14u; /* 0x4708620A: add esp, 0x14 */ 2428 _flag_k = FK_ADD; 2429 L_4708620D: 2430 edi = POP32_VAL(esp); /* 0x4708620D: pop edi */ 2431 eax = esi; /* 0x4708620E: mov eax, esi */ 2432 esi = POP32_VAL(esp); /* 0x47086210: pop esi */ 2433 ebp = POP32_VAL(esp); /* 0x47086211: pop ebp */ 2434 ebx = POP32_VAL(esp); /* 0x47086212: pop ebx */ 2435 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47086213: ret 0xc */ 2436 RECOMP_REGS_OUT(); 2437 } 2438 2439 void sub_47086220(void) { 2440 int _fpu_cmp = 0; 2441 uint32_t _cf = 0; 2442 int _df = 1; 2443 uint32_t _flag_k = FK_NONE; 2444 uint32_t _flag_a = 0, _flag_b = 0; 2445 uint32_t _itail_tgt = 0; 2446 RECOMP_REGS_LOCALS 2447 RECOMP_ENTER(0x47086220u); 2448 2449 L_47086220: 2450 PUSH32(esp, esi); /* 0x47086220: push esi */ 2451 esi = ecx; /* 0x47086221: mov esi, ecx */ 2452 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2453 eax = 0; /* 0x47086223: xor eax, eax */ 2454 _cf = 0; 2455 _flag_k = FK_TEST; 2456 PUSH32(esp, edi); /* 0x47086225: push edi */ 2457 edi = MEM32(esp + 0xC); /* 0x47086226: mov edi, dword ptr [esp + 0xc] */ 2458 /* cmp edi, eax */ /* 0x4708622A: cmp edi, eax */ 2459 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2460 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2461 _flag_k = FK_CMP; 2462 MEM32(esi) = eax; /* 0x4708622C: mov dword ptr [esi], eax */ 2463 MEM32(esi + 0x4) = eax; /* 0x4708622E: mov dword ptr [esi + 4], eax */ 2464 MEM32(esi + 0xC) = eax; /* 0x47086231: mov dword ptr [esi + 0xc], eax */ 2465 MEM32(esi + 0x10) = 0xFFFFFFFFu; /* 0x47086234: mov dword ptr [esi + 0x10], 0xffffffff */ 2466 MEM32(esi + 0x18) = 0xFFFFFFFFu; /* 0x4708623B: mov dword ptr [esi + 0x18], 0xffffffff */ 2467 MEM32(esi + 0x14) = eax; /* 0x47086242: mov dword ptr [esi + 0x14], eax */ 2468 if (CMP_EQ(_flag_a, _flag_b)) goto L_47086274; /* 0x47086245: je 0x47086274 */ 2469 L_47086247: 2470 ecx = MEM32(esp + 0x10); /* 0x47086247: mov ecx, dword ptr [esp + 0x10] */ 2471 PUSH32(esp, eax); /* 0x4708624B: push eax */ 2472 eax = MEM32(esp + 0x18); /* 0x4708624C: mov eax, dword ptr [esp + 0x18] */ 2473 PUSH32(esp, eax); /* 0x47086250: push eax */ 2474 PUSH32(esp, ecx); /* 0x47086251: push ecx */ 2475 PUSH32(esp, edi); /* 0x47086252: push edi */ 2476 RECOMP_ICALL(0x470571E0u); /* 0x47086253: call 0x470571e0 */ /* not lifted */ 2477 RECOMP_FLAGS_IN(); 2478 PUSH32(esp, edi); /* 0x47086258: push edi */ 2479 MEM32(esi + 0x18) = eax; /* 0x47086259: mov dword ptr [esi + 0x18], eax */ 2480 RECOMP_ICALL(MEM32(0x470AC3F4)); /* 0x4708625C: call dword ptr [0x470ac3f4] */ 2481 RECOMP_FLAGS_IN(); 2482 edx = MEM32(esi + 0x18); /* 0x47086262: mov edx, dword ptr [esi + 0x18] */ 2483 MEM32(esi + 0x14) = eax; /* 0x47086265: mov dword ptr [esi + 0x14], eax */ 2484 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2485 eax = 0; /* 0x47086268: xor eax, eax */ 2486 _cf = 0; 2487 _flag_k = FK_TEST; 2488 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2489 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2490 esp = esp + 0x14u; /* 0x4708626A: add esp, 0x14 */ 2491 _flag_k = FK_ADD; 2492 /* cmp edx, 0xFFFFFFFFu */ /* 0x4708626D: cmp edx, -1 */ 2493 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFFFu); 2494 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2495 _flag_k = FK_CMP; 2496 SET_LO8(eax, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x47086270: setne al */ 2497 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2498 eax = eax - 1; /* 0x47086273: dec eax */ 2499 _flag_k = FK_DEC; 2500 L_47086274: 2501 edi = POP32_VAL(esp); /* 0x47086274: pop edi */ 2502 esi = POP32_VAL(esp); /* 0x47086275: pop esi */ 2503 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47086276: ret 0xc */ 2504 RECOMP_REGS_OUT(); 2505 } 2506 2507 void sub_47086280(void) { 2508 int _fpu_cmp = 0; 2509 uint32_t _cf = 0; 2510 int _df = 1; 2511 uint32_t _flag_k = FK_NONE; 2512 uint32_t _flag_a = 0, _flag_b = 0; 2513 uint32_t _itail_tgt = 0; 2514 RECOMP_REGS_LOCALS 2515 RECOMP_ENTER(0x47086280u); 2516 2517 L_47086280: 2518 PUSH32(esp, ebx); /* 0x47086280: push ebx */ 2519 PUSH32(esp, ebp); /* 0x47086281: push ebp */ 2520 ebp = MEM32(0x470AC150); /* 0x47086282: mov ebp, dword ptr [0x470ac150] */ 2521 PUSH32(esp, esi); /* 0x47086288: push esi */ 2522 PUSH32(esp, edi); /* 0x47086289: push edi */ 2523 edi = ecx; /* 0x4708628A: mov edi, ecx */ 2524 RECOMP_ICALL(ebp); /* 0x4708628C: call ebp */ 2525 RECOMP_FLAGS_IN(); 2526 ebx = eax; /* 0x4708628E: mov ebx, eax */ 2527 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47086290: call dword ptr [0x470ac3c8] */ 2528 RECOMP_FLAGS_IN(); 2529 eax = MEM32(eax); /* 0x47086296: mov eax, dword ptr [eax] */ 2530 /* test eax, eax */ /* 0x47086298: test eax, eax */ 2531 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2532 _cf = 0; 2533 _flag_k = FK_TEST; 2534 if (TEST_Z(_flag_a, _flag_b)) goto L_4708629E; /* 0x4708629A: je 0x4708629e */ 2535 L_4708629C: 2536 ebx = eax; /* 0x4708629C: mov ebx, eax */ 2537 L_4708629E: 2538 RECOMP_ICALL(0x47039020u); /* 0x4708629E: call 0x47039020 */ /* not lifted */ 2539 RECOMP_FLAGS_IN(); 2540 esi = eax; /* 0x470862A3: mov esi, eax */ 2541 ecx = esi; /* 0x470862A5: mov ecx, esi */ 2542 RECOMP_ICALL(0x4703B210u); /* 0x470862A7: call 0x4703b210 */ /* not lifted */ 2543 RECOMP_FLAGS_IN(); 2544 PUSH32(esp, eax); /* 0x470862AC: push eax */ 2545 ecx = esi; /* 0x470862AD: mov ecx, esi */ 2546 RECOMP_ICALL(0x4703B240u); /* 0x470862AF: call 0x4703b240 */ /* not lifted */ 2547 RECOMP_FLAGS_IN(); 2548 PUSH32(esp, eax); /* 0x470862B4: push eax */ 2549 ecx = esi; /* 0x470862B5: mov ecx, esi */ 2550 RECOMP_ICALL(0x4703B080u); /* 0x470862B7: call 0x4703b080 */ /* not lifted */ 2551 RECOMP_FLAGS_IN(); 2552 PUSH32(esp, eax); /* 0x470862BC: push eax */ 2553 PUSH32(esp, ebx); /* 0x470862BD: push ebx */ 2554 PUSH32(esp, 0); /* 0x470862BE: push 0 */ 2555 PUSH32(esp, 0x12Au); /* 0x470862C0: push 0x12a */ 2556 PUSH32(esp, 0x4710C610u); /* 0x470862C5: push 0x4710c610 */ 2557 ecx = esi; /* 0x470862CA: mov ecx, esi */ 2558 RECOMP_ICALL(0x4703A340u); /* 0x470862CC: call 0x4703a340 */ /* not lifted */ 2559 RECOMP_FLAGS_IN(); 2560 PUSH32(esp, edi); /* 0x470862D1: push edi */ 2561 PUSH32(esp, 0x471052CCu); /* 0x470862D2: push 0x471052cc */ 2562 PUSH32(esp, 4); /* 0x470862D7: push 4 */ 2563 PUSH32(esp, esi); /* 0x470862D9: push esi */ 2564 RECOMP_ICALL(0x47039830u); /* 0x470862DA: call 0x47039830 */ /* not lifted */ 2565 RECOMP_FLAGS_IN(); 2566 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2567 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2568 esp = esp + 0x10u; /* 0x470862DF: add esp, 0x10 */ 2569 _flag_k = FK_ADD; 2570 ecx = edi; /* 0x470862E2: mov ecx, edi */ 2571 RECOMP_ICALL(0x47085DB0u); /* 0x470862E4: call 0x47085db0 */ /* not lifted */ 2572 RECOMP_FLAGS_IN(); 2573 RECOMP_ICALL(ebp); /* 0x470862E9: call ebp */ 2574 RECOMP_FLAGS_IN(); 2575 esi = eax; /* 0x470862EB: mov esi, eax */ 2576 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470862ED: call dword ptr [0x470ac3c8] */ 2577 RECOMP_FLAGS_IN(); 2578 eax = MEM32(eax); /* 0x470862F3: mov eax, dword ptr [eax] */ 2579 /* test eax, eax */ /* 0x470862F5: test eax, eax */ 2580 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2581 _cf = 0; 2582 _flag_k = FK_TEST; 2583 edi = esi; /* 0x470862F7: mov edi, esi */ 2584 if (TEST_Z(_flag_a, _flag_b)) goto L_470862FD; /* 0x470862F9: je 0x470862fd */ 2585 L_470862FB: 2586 edi = eax; /* 0x470862FB: mov edi, eax */ 2587 L_470862FD: 2588 RECOMP_ICALL(0x47039020u); /* 0x470862FD: call 0x47039020 */ /* not lifted */ 2589 RECOMP_FLAGS_IN(); 2590 esi = eax; /* 0x47086302: mov esi, eax */ 2591 ecx = esi; /* 0x47086304: mov ecx, esi */ 2592 RECOMP_ICALL(0x4703B210u); /* 0x47086306: call 0x4703b210 */ /* not lifted */ 2593 RECOMP_FLAGS_IN(); 2594 PUSH32(esp, eax); /* 0x4708630B: push eax */ 2595 ecx = esi; /* 0x4708630C: mov ecx, esi */ 2596 RECOMP_ICALL(0x4703B240u); /* 0x4708630E: call 0x4703b240 */ /* not lifted */ 2597 RECOMP_FLAGS_IN(); 2598 PUSH32(esp, eax); /* 0x47086313: push eax */ 2599 ecx = esi; /* 0x47086314: mov ecx, esi */ 2600 RECOMP_ICALL(0x4703B080u); /* 0x47086316: call 0x4703b080 */ /* not lifted */ 2601 RECOMP_FLAGS_IN(); 2602 PUSH32(esp, eax); /* 0x4708631B: push eax */ 2603 PUSH32(esp, edi); /* 0x4708631C: push edi */ 2604 PUSH32(esp, 0); /* 0x4708631D: push 0 */ 2605 PUSH32(esp, 0x12Cu); /* 0x4708631F: push 0x12c */ 2606 PUSH32(esp, 0x4710C610u); /* 0x47086324: push 0x4710c610 */ 2607 ecx = esi; /* 0x47086329: mov ecx, esi */ 2608 RECOMP_ICALL(0x4703A340u); /* 0x4708632B: call 0x4703a340 */ /* not lifted */ 2609 RECOMP_FLAGS_IN(); 2610 PUSH32(esp, 0x4710529Cu); /* 0x47086330: push 0x4710529c */ 2611 PUSH32(esp, 4); /* 0x47086335: push 4 */ 2612 PUSH32(esp, esi); /* 0x47086337: push esi */ 2613 RECOMP_ICALL(0x47039830u); /* 0x47086338: call 0x47039830 */ /* not lifted */ 2614 RECOMP_FLAGS_IN(); 2615 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2616 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2617 esp = esp + 0xCu; /* 0x4708633D: add esp, 0xc */ 2618 _flag_k = FK_ADD; 2619 edi = POP32_VAL(esp); /* 0x47086340: pop edi */ 2620 esi = POP32_VAL(esp); /* 0x47086341: pop esi */ 2621 ebp = POP32_VAL(esp); /* 0x47086342: pop ebp */ 2622 ebx = POP32_VAL(esp); /* 0x47086343: pop ebx */ 2623 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47086344: ret */ 2624 RECOMP_REGS_OUT(); 2625 } 2626 2627 void sub_47086350(void) { 2628 int _fpu_cmp = 0; 2629 uint32_t _cf = 0; 2630 int _df = 1; 2631 uint32_t _flag_k = FK_NONE; 2632 uint32_t _flag_a = 0, _flag_b = 0; 2633 uint32_t _itail_tgt = 0; 2634 RECOMP_REGS_LOCALS 2635 RECOMP_ENTER(0x47086350u); 2636 2637 L_47086350: 2638 eax = MEM32(esp + 0x8); /* 0x47086350: mov eax, dword ptr [esp + 8] */ 2639 L_47086354: 2640 edx = MEM32(esp + 0x4); /* 0x47086354: mov edx, dword ptr [esp + 4] */ 2641 L_47086358: 2642 PUSH32(esp, ebp); /* 0x47086358: push ebp */ 2643 L_47086359: 2644 ebp = ecx; /* 0x47086359: mov ebp, ecx */ 2645 L_4708635B: 2646 ecx = MEM32(esp + 0x14); /* 0x4708635B: mov ecx, dword ptr [esp + 0x14] */ 2647 L_4708635F: 2648 PUSH32(esp, eax); /* 0x4708635F: push eax */ 2649 L_47086360: 2650 PUSH32(esp, ecx); /* 0x47086360: push ecx */ 2651 L_47086361: 2652 PUSH32(esp, edx); /* 0x47086361: push edx */ 2653 L_47086362: 2654 PUSH32(esp, 0); /* 0x47086362: push 0 */ 2655 L_47086364: 2656 MEM32(ebp + 0x4) = 0; /* 0x47086364: mov dword ptr [ebp + 4], 0 */ 2657 L_4708636B: 2658 RECOMP_ICALL(MEM32(0x470AC16C)); /* 0x4708636B: call dword ptr [0x470ac16c] */ 2659 RECOMP_FLAGS_IN(); 2660 L_47086371: 2661 /* test eax, eax */ /* 0x47086371: test eax, eax */ 2662 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2663 _cf = 0; 2664 _flag_k = FK_TEST; 2665 L_47086373: 2666 MEM32(ebp) = eax; /* 0x47086373: mov dword ptr [ebp], eax */ 2667 L_47086376: 2668 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47086432; /* 0x47086376: jne 0x47086432 */ 2669 L_4708637C: 2670 PUSH32(esp, ebx); /* 0x4708637C: push ebx */ 2671 L_4708637D: 2672 PUSH32(esp, esi); /* 0x4708637D: push esi */ 2673 L_4708637E: 2674 esi = MEM32(0x470AC3C8); /* 0x4708637E: mov esi, dword ptr [0x470ac3c8] */ 2675 L_47086384: 2676 PUSH32(esp, edi); /* 0x47086384: push edi */ 2677 L_47086385: 2678 RECOMP_ICALL(esi); /* 0x47086385: call esi */ 2679 RECOMP_FLAGS_IN(); 2680 L_47086387: 2681 ebx = MEM32(0x470AC150); /* 0x47086387: mov ebx, dword ptr [0x470ac150] */ 2682 L_4708638D: 2683 edi = eax; /* 0x4708638D: mov edi, eax */ 2684 L_4708638F: 2685 RECOMP_ICALL(ebx); /* 0x4708638F: call ebx */ 2686 RECOMP_FLAGS_IN(); 2687 L_47086391: 2688 MEM32(edi) = eax; /* 0x47086391: mov dword ptr [edi], eax */ 2689 L_47086393: 2690 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu); 2691 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2692 eax = eax + 0xFFFFFFFDu; /* 0x47086393: add eax, -3 */ 2693 _flag_k = FK_ADD; 2694 L_47086396: 2695 /* cmp eax, 0x4Du */ /* 0x47086396: cmp eax, 0x4d */ 2696 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Du); 2697 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2698 _flag_k = FK_CMP; 2699 L_47086399: 2700 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_470863D0; /* 0x47086399: ja 0x470863d0 */ 2701 L_4708639B: 2702 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2703 ecx = 0; /* 0x4708639B: xor ecx, ecx */ 2704 _cf = 0; 2705 _flag_k = FK_TEST; 2706 L_4708639D: 2707 SET_LO8(ecx, MEM8(eax + 0x4708644C)); /* 0x4708639D: mov cl, byte ptr [eax + 0x4708644c] */ 2708 L_470863A3: 2709 { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x47086438)); goto _ljump; } 2710 L_470863AA: 2711 RECOMP_ICALL(esi); /* 0x470863AA: call esi */ 2712 RECOMP_FLAGS_IN(); 2713 L_470863AC: 2714 MEM32(eax) = 0xCu; /* 0x470863AC: mov dword ptr [eax], 0xc */ 2715 L_470863B2: 2716 goto L_470863D0; /* 0x470863B2: jmp 0x470863d0 */ 2717 L_470863B4: 2718 RECOMP_ICALL(esi); /* 0x470863B4: call esi */ 2719 RECOMP_FLAGS_IN(); 2720 L_470863B6: 2721 MEM32(eax) = 0x11u; /* 0x470863B6: mov dword ptr [eax], 0x11 */ 2722 L_470863BC: 2723 goto L_470863D0; /* 0x470863BC: jmp 0x470863d0 */ 2724 L_470863BE: 2725 RECOMP_ICALL(esi); /* 0x470863BE: call esi */ 2726 RECOMP_FLAGS_IN(); 2727 L_470863C0: 2728 MEM32(eax) = 0xDu; /* 0x470863C0: mov dword ptr [eax], 0xd */ 2729 L_470863C6: 2730 goto L_470863D0; /* 0x470863C6: jmp 0x470863d0 */ 2731 L_470863C8: 2732 RECOMP_ICALL(esi); /* 0x470863C8: call esi */ 2733 RECOMP_FLAGS_IN(); 2734 L_470863CA: 2735 MEM32(eax) = 2; /* 0x470863CA: mov dword ptr [eax], 2 */ 2736 L_470863D0: 2737 RECOMP_ICALL(ebx); /* 0x470863D0: call ebx */ 2738 RECOMP_FLAGS_IN(); 2739 L_470863D2: 2740 edi = eax; /* 0x470863D2: mov edi, eax */ 2741 L_470863D4: 2742 RECOMP_ICALL(esi); /* 0x470863D4: call esi */ 2743 RECOMP_FLAGS_IN(); 2744 L_470863D6: 2745 eax = MEM32(eax); /* 0x470863D6: mov eax, dword ptr [eax] */ 2746 L_470863D8: 2747 /* test eax, eax */ /* 0x470863D8: test eax, eax */ 2748 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2749 _cf = 0; 2750 _flag_k = FK_TEST; 2751 L_470863DA: 2752 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_470863DE; /* 0x470863DA: je 0x470863de */ 2753 L_470863DC: 2754 edi = eax; /* 0x470863DC: mov edi, eax */ 2755 L_470863DE: 2756 RECOMP_ICALL(0x47039020u); /* 0x470863DE: call 0x47039020 */ /* not lifted */ 2757 RECOMP_FLAGS_IN(); 2758 L_470863E3: 2759 esi = eax; /* 0x470863E3: mov esi, eax */ 2760 L_470863E5: 2761 ecx = esi; /* 0x470863E5: mov ecx, esi */ 2762 L_470863E7: 2763 RECOMP_ICALL(0x4703B210u); /* 0x470863E7: call 0x4703b210 */ /* not lifted */ 2764 RECOMP_FLAGS_IN(); 2765 L_470863EC: 2766 PUSH32(esp, eax); /* 0x470863EC: push eax */ 2767 L_470863ED: 2768 ecx = esi; /* 0x470863ED: mov ecx, esi */ 2769 L_470863EF: 2770 RECOMP_ICALL(0x4703B240u); /* 0x470863EF: call 0x4703b240 */ /* not lifted */ 2771 RECOMP_FLAGS_IN(); 2772 L_470863F4: 2773 PUSH32(esp, eax); /* 0x470863F4: push eax */ 2774 L_470863F5: 2775 ecx = esi; /* 0x470863F5: mov ecx, esi */ 2776 L_470863F7: 2777 RECOMP_ICALL(0x4703B080u); /* 0x470863F7: call 0x4703b080 */ /* not lifted */ 2778 RECOMP_FLAGS_IN(); 2779 L_470863FC: 2780 PUSH32(esp, eax); /* 0x470863FC: push eax */ 2781 L_470863FD: 2782 PUSH32(esp, edi); /* 0x470863FD: push edi */ 2783 L_470863FE: 2784 PUSH32(esp, 0xFFFFFFFFu); /* 0x470863FE: push -1 */ 2785 L_47086400: 2786 PUSH32(esp, 0xE9u); /* 0x47086400: push 0xe9 */ 2787 L_47086405: 2788 PUSH32(esp, 0x4710C610u); /* 0x47086405: push 0x4710c610 */ 2789 L_4708640A: 2790 ecx = esi; /* 0x4708640A: mov ecx, esi */ 2791 L_4708640C: 2792 RECOMP_ICALL(0x4703A340u); /* 0x4708640C: call 0x4703a340 */ /* not lifted */ 2793 RECOMP_FLAGS_IN(); 2794 L_47086411: 2795 PUSH32(esp, 0x4710C5F0u); /* 0x47086411: push 0x4710c5f0 */ 2796 L_47086416: 2797 PUSH32(esp, 0x471055F0u); /* 0x47086416: push 0x471055f0 */ 2798 L_4708641B: 2799 PUSH32(esp, 0x80u); /* 0x4708641B: push 0x80 */ 2800 L_47086420: 2801 PUSH32(esp, esi); /* 0x47086420: push esi */ 2802 L_47086421: 2803 RECOMP_ICALL(0x47039830u); /* 0x47086421: call 0x47039830 */ /* not lifted */ 2804 RECOMP_FLAGS_IN(); 2805 L_47086426: 2806 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2807 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2808 esp = esp + 0x10u; /* 0x47086426: add esp, 0x10 */ 2809 _flag_k = FK_ADD; 2810 L_47086429: 2811 edi = POP32_VAL(esp); /* 0x47086429: pop edi */ 2812 L_4708642A: 2813 esi = POP32_VAL(esp); /* 0x4708642A: pop esi */ 2814 L_4708642B: 2815 ebx = POP32_VAL(esp); /* 0x4708642B: pop ebx */ 2816 L_4708642C: 2817 eax = ebp; /* 0x4708642C: mov eax, ebp */ 2818 L_4708642E: 2819 ebp = POP32_VAL(esp); /* 0x4708642E: pop ebp */ 2820 L_4708642F: 2821 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4708642F: ret 0x10 */ 2822 L_47086432: 2823 eax = ebp; /* 0x47086432: mov eax, ebp */ 2824 L_47086434: 2825 ebp = POP32_VAL(esp); /* 0x47086434: pop ebp */ 2826 L_47086435: 2827 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47086435: ret 0x10 */ 2828 _ljump: 2829 switch (_itail_tgt) { 2830 case 0x47086350u: goto L_47086350; 2831 case 0x47086354u: goto L_47086354; 2832 case 0x47086358u: goto L_47086358; 2833 case 0x47086359u: goto L_47086359; 2834 case 0x4708635Bu: goto L_4708635B; 2835 case 0x4708635Fu: goto L_4708635F; 2836 case 0x47086360u: goto L_47086360; 2837 case 0x47086361u: goto L_47086361; 2838 case 0x47086362u: goto L_47086362; 2839 case 0x47086364u: goto L_47086364; 2840 case 0x4708636Bu: goto L_4708636B; 2841 case 0x47086371u: goto L_47086371; 2842 case 0x47086373u: goto L_47086373; 2843 case 0x47086376u: goto L_47086376; 2844 case 0x4708637Cu: goto L_4708637C; 2845 case 0x4708637Du: goto L_4708637D; 2846 case 0x4708637Eu: goto L_4708637E; 2847 case 0x47086384u: goto L_47086384; 2848 case 0x47086385u: goto L_47086385; 2849 case 0x47086387u: goto L_47086387; 2850 case 0x4708638Du: goto L_4708638D; 2851 case 0x4708638Fu: goto L_4708638F; 2852 case 0x47086391u: goto L_47086391; 2853 case 0x47086393u: goto L_47086393; 2854 case 0x47086396u: goto L_47086396; 2855 case 0x47086399u: goto L_47086399; 2856 case 0x4708639Bu: goto L_4708639B; 2857 case 0x4708639Du: goto L_4708639D; 2858 case 0x470863A3u: goto L_470863A3; 2859 case 0x470863AAu: goto L_470863AA; 2860 case 0x470863ACu: goto L_470863AC; 2861 case 0x470863B2u: goto L_470863B2; 2862 case 0x470863B4u: goto L_470863B4; 2863 case 0x470863B6u: goto L_470863B6; 2864 case 0x470863BCu: goto L_470863BC; 2865 case 0x470863BEu: goto L_470863BE; 2866 case 0x470863C0u: goto L_470863C0; 2867 case 0x470863C6u: goto L_470863C6; 2868 case 0x470863C8u: goto L_470863C8; 2869 case 0x470863CAu: goto L_470863CA; 2870 case 0x470863D0u: goto L_470863D0; 2871 case 0x470863D2u: goto L_470863D2; 2872 case 0x470863D4u: goto L_470863D4; 2873 case 0x470863D6u: goto L_470863D6; 2874 case 0x470863D8u: goto L_470863D8; 2875 case 0x470863DAu: goto L_470863DA; 2876 case 0x470863DCu: goto L_470863DC; 2877 case 0x470863DEu: goto L_470863DE; 2878 case 0x470863E3u: goto L_470863E3; 2879 case 0x470863E5u: goto L_470863E5; 2880 case 0x470863E7u: goto L_470863E7; 2881 case 0x470863ECu: goto L_470863EC; 2882 case 0x470863EDu: goto L_470863ED; 2883 case 0x470863EFu: goto L_470863EF; 2884 case 0x470863F4u: goto L_470863F4; 2885 case 0x470863F5u: goto L_470863F5; 2886 case 0x470863F7u: goto L_470863F7; 2887 case 0x470863FCu: goto L_470863FC; 2888 case 0x470863FDu: goto L_470863FD; 2889 case 0x470863FEu: goto L_470863FE; 2890 case 0x47086400u: goto L_47086400; 2891 case 0x47086405u: goto L_47086405; 2892 case 0x4708640Au: goto L_4708640A; 2893 case 0x4708640Cu: goto L_4708640C; 2894 case 0x47086411u: goto L_47086411; 2895 case 0x47086416u: goto L_47086416; 2896 case 0x4708641Bu: goto L_4708641B; 2897 case 0x47086420u: goto L_47086420; 2898 case 0x47086421u: goto L_47086421; 2899 case 0x47086426u: goto L_47086426; 2900 case 0x47086429u: goto L_47086429; 2901 case 0x4708642Au: goto L_4708642A; 2902 case 0x4708642Bu: goto L_4708642B; 2903 case 0x4708642Cu: goto L_4708642C; 2904 case 0x4708642Eu: goto L_4708642E; 2905 case 0x4708642Fu: goto L_4708642F; 2906 case 0x47086432u: goto L_47086432; 2907 case 0x47086434u: goto L_47086434; 2908 case 0x47086435u: goto L_47086435; 2909 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2910 } 2911 RECOMP_REGS_OUT(); 2912 } 2913 2914 void sub_470864A0(void) { 2915 int _fpu_cmp = 0; 2916 uint32_t _cf = 0; 2917 int _df = 1; 2918 uint32_t _flag_k = FK_NONE; 2919 uint32_t _flag_a = 0, _flag_b = 0; 2920 uint32_t _itail_tgt = 0; 2921 RECOMP_REGS_LOCALS 2922 RECOMP_ENTER(0x470864A0u); 2923 2924 L_470864A0: 2925 edx = MEM32(ecx + 0x4); /* 0x470864A0: mov edx, dword ptr [ecx + 4] */ 2926 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2927 eax = 0; /* 0x470864A3: xor eax, eax */ 2928 _cf = 0; 2929 _flag_k = FK_TEST; 2930 /* test edx, edx */ /* 0x470864A5: test edx, edx */ 2931 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 2932 _cf = 0; 2933 _flag_k = FK_TEST; 2934 if (TEST_NZ(_flag_a, _flag_b)) goto L_470864DD; /* 0x470864A7: jne 0x470864dd */ 2935 L_470864A9: 2936 eax = MEM32(ecx); /* 0x470864A9: mov eax, dword ptr [ecx] */ 2937 PUSH32(esp, esi); /* 0x470864AB: push esi */ 2938 PUSH32(esp, eax); /* 0x470864AC: push eax */ 2939 MEM32(ecx + 0x4) = 1; /* 0x470864AD: mov dword ptr [ecx + 4], 1 */ 2940 RECOMP_ICALL(MEM32(0x470AC198)); /* 0x470864B4: call dword ptr [0x470ac198] */ 2941 RECOMP_FLAGS_IN(); 2942 esi = eax; /* 0x470864BA: mov esi, eax */ 2943 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi); 2944 _cf = (esi) != 0; 2945 esi = (uint32_t)(-(int32_t)esi); /* 0x470864BC: neg esi */ 2946 _flag_k = FK_CMP; 2947 { uint32_t _sa = esi, _sb = esi, _sc = _cf; /* 0x470864BE: sbb esi, esi */ 2948 esi = _sc ? 0xFFFFFFFFu : 0; 2949 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2950 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2951 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi); 2952 _cf = (esi) != 0; 2953 esi = (uint32_t)(-(int32_t)esi); /* 0x470864C0: neg esi */ 2954 _flag_k = FK_CMP; 2955 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 2956 esi = esi - 1; /* 0x470864C2: dec esi */ 2957 _flag_k = FK_DEC; 2958 /* cmp esi, 0xFFFFFFFFu */ /* 0x470864C3: cmp esi, -1 */ 2959 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu); 2960 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2961 _flag_k = FK_CMP; 2962 if (CMP_NE(_flag_a, _flag_b)) goto L_470864DA; /* 0x470864C6: jne 0x470864da */ 2963 L_470864C8: 2964 PUSH32(esp, edi); /* 0x470864C8: push edi */ 2965 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470864C9: call dword ptr [0x470ac3c8] */ 2966 RECOMP_FLAGS_IN(); 2967 edi = eax; /* 0x470864CF: mov edi, eax */ 2968 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470864D1: call dword ptr [0x470ac150] */ 2969 RECOMP_FLAGS_IN(); 2970 MEM32(edi) = eax; /* 0x470864D7: mov dword ptr [edi], eax */ 2971 edi = POP32_VAL(esp); /* 0x470864D9: pop edi */ 2972 L_470864DA: 2973 eax = esi; /* 0x470864DA: mov eax, esi */ 2974 esi = POP32_VAL(esp); /* 0x470864DC: pop esi */ 2975 L_470864DD: 2976 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470864DD: ret */ 2977 RECOMP_REGS_OUT(); 2978 } 2979 2980 void sub_470864E0(void) { 2981 int _fpu_cmp = 0; 2982 uint32_t _cf = 0; 2983 int _df = 1; 2984 uint32_t _flag_k = FK_NONE; 2985 uint32_t _flag_a = 0, _flag_b = 0; 2986 uint32_t _itail_tgt = 0; 2987 RECOMP_REGS_LOCALS 2988 RECOMP_ENTER(0x470864E0u); 2989 2990 L_470864E0: 2991 eax = MEM32(ecx); /* 0x470864E0: mov eax, dword ptr [ecx] */ 2992 PUSH32(esp, 0); /* 0x470864E2: push 0 */ 2993 PUSH32(esp, eax); /* 0x470864E4: push eax */ 2994 RECOMP_ICALL(MEM32(0x470AC194)); /* 0x470864E5: call dword ptr [0x470ac194] */ 2995 RECOMP_FLAGS_IN(); 2996 /* test eax, eax */ /* 0x470864EB: test eax, eax */ 2997 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2998 _cf = 0; 2999 _flag_k = FK_TEST; 3000 if (TEST_NZ(_flag_a, _flag_b)) goto L_470864F0; /* 0x470864ED: jne 0x470864f0 */ 3001 L_470864EF: 3002 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470864EF: ret */ 3003 L_470864F0: 3004 /* cmp eax, 0x102u */ /* 0x470864F0: cmp eax, 0x102 */ 3005 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x102u); 3006 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3007 _flag_k = FK_CMP; 3008 if (CMP_NE(_flag_a, _flag_b)) goto L_47086507; /* 0x470864F5: jne 0x47086507 */ 3009 L_470864F7: 3010 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470864F7: call dword ptr [0x470ac3c8] */ 3011 RECOMP_FLAGS_IN(); 3012 MEM32(eax) = 0x10u; /* 0x470864FD: mov dword ptr [eax], 0x10 */ 3013 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3014 eax = eax | 0xFFFFFFFFu; /* 0x47086503: or eax, 0xffffffff */ 3015 _cf = 0; 3016 _flag_k = FK_TEST; 3017 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47086506: ret */ 3018 L_47086507: 3019 PUSH32(esp, esi); /* 0x47086507: push esi */ 3020 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47086508: call dword ptr [0x470ac3c8] */ 3021 RECOMP_FLAGS_IN(); 3022 esi = eax; /* 0x4708650E: mov esi, eax */ 3023 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47086510: call dword ptr [0x470ac150] */ 3024 RECOMP_FLAGS_IN(); 3025 MEM32(esi) = eax; /* 0x47086516: mov dword ptr [esi], eax */ 3026 esi = POP32_VAL(esp); /* 0x47086518: pop esi */ 3027 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3028 eax = eax | 0xFFFFFFFFu; /* 0x47086519: or eax, 0xffffffff */ 3029 _cf = 0; 3030 _flag_k = FK_TEST; 3031 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708651C: ret */ 3032 RECOMP_REGS_OUT(); 3033 } 3034 3035 void sub_47086520(void) { 3036 int _fpu_cmp = 0; 3037 uint32_t _cf = 0; 3038 int _df = 1; 3039 uint32_t _flag_k = FK_NONE; 3040 uint32_t _flag_a = 0, _flag_b = 0; 3041 uint32_t _itail_tgt = 0; 3042 RECOMP_REGS_LOCALS 3043 RECOMP_ENTER(0x47086520u); 3044 3045 L_47086520: 3046 eax = MEM32(ecx); /* 0x47086520: mov eax, dword ptr [ecx] */ 3047 PUSH32(esp, esi); /* 0x47086522: push esi */ 3048 PUSH32(esp, 0); /* 0x47086523: push 0 */ 3049 PUSH32(esp, 1); /* 0x47086525: push 1 */ 3050 PUSH32(esp, eax); /* 0x47086527: push eax */ 3051 RECOMP_ICALL(MEM32(0x470AC168)); /* 0x47086528: call dword ptr [0x470ac168] */ 3052 RECOMP_FLAGS_IN(); 3053 esi = eax; /* 0x4708652E: mov esi, eax */ 3054 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi); 3055 _cf = (esi) != 0; 3056 esi = (uint32_t)(-(int32_t)esi); /* 0x47086530: neg esi */ 3057 _flag_k = FK_CMP; 3058 { uint32_t _sa = esi, _sb = esi, _sc = _cf; /* 0x47086532: sbb esi, esi */ 3059 esi = _sc ? 0xFFFFFFFFu : 0; 3060 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 3061 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 3062 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi); 3063 _cf = (esi) != 0; 3064 esi = (uint32_t)(-(int32_t)esi); /* 0x47086534: neg esi */ 3065 _flag_k = FK_CMP; 3066 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 3067 esi = esi - 1; /* 0x47086536: dec esi */ 3068 _flag_k = FK_DEC; 3069 /* cmp esi, 0xFFFFFFFFu */ /* 0x47086537: cmp esi, -1 */ 3070 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu); 3071 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3072 _flag_k = FK_CMP; 3073 if (CMP_NE(_flag_a, _flag_b)) goto L_47086552; /* 0x4708653A: jne 0x47086552 */ 3074 L_4708653C: 3075 PUSH32(esp, edi); /* 0x4708653C: push edi */ 3076 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4708653D: call dword ptr [0x470ac3c8] */ 3077 RECOMP_FLAGS_IN(); 3078 edi = eax; /* 0x47086543: mov edi, eax */ 3079 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47086545: call dword ptr [0x470ac150] */ 3080 RECOMP_FLAGS_IN(); 3081 MEM32(edi) = eax; /* 0x4708654B: mov dword ptr [edi], eax */ 3082 edi = POP32_VAL(esp); /* 0x4708654D: pop edi */ 3083 eax = esi; /* 0x4708654E: mov eax, esi */ 3084 esi = POP32_VAL(esp); /* 0x47086550: pop esi */ 3085 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47086551: ret */ 3086 L_47086552: 3087 eax = esi; /* 0x47086552: mov eax, esi */ 3088 esi = POP32_VAL(esp); /* 0x47086554: pop esi */ 3089 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47086555: ret */ 3090 RECOMP_REGS_OUT(); 3091 } 3092 3093 void sub_47086560(void) { 3094 int _fpu_cmp = 0; 3095 uint32_t _cf = 0; 3096 int _df = 1; 3097 uint32_t _flag_k = FK_NONE; 3098 uint32_t _flag_a = 0, _flag_b = 0; 3099 uint32_t _itail_tgt = 0; 3100 RECOMP_REGS_LOCALS 3101 RECOMP_ENTER(0x47086560u); 3102 3103 L_47086560: 3104 PUSH32(esp, ecx); /* 0x47086560: push ecx */ 3105 PUSH32(esp, ebx); /* 0x47086561: push ebx */ 3106 PUSH32(esp, ebp); /* 0x47086562: push ebp */ 3107 PUSH32(esp, esi); /* 0x47086563: push esi */ 3108 PUSH32(esp, edi); /* 0x47086564: push edi */ 3109 edi = MEM32(0x470AC150); /* 0x47086565: mov edi, dword ptr [0x470ac150] */ 3110 MEM32(esp + 0x10) = ecx; /* 0x4708656B: mov dword ptr [esp + 0x10], ecx */ 3111 RECOMP_ICALL(edi); /* 0x4708656F: call edi */ 3112 RECOMP_FLAGS_IN(); 3113 ebx = MEM32(0x470AC3C8); /* 0x47086571: mov ebx, dword ptr [0x470ac3c8] */ 3114 ebp = eax; /* 0x47086577: mov ebp, eax */ 3115 RECOMP_ICALL(ebx); /* 0x47086579: call ebx */ 3116 RECOMP_FLAGS_IN(); 3117 eax = MEM32(eax); /* 0x4708657B: mov eax, dword ptr [eax] */ 3118 /* test eax, eax */ /* 0x4708657D: test eax, eax */ 3119 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3120 _cf = 0; 3121 _flag_k = FK_TEST; 3122 if (TEST_Z(_flag_a, _flag_b)) goto L_47086583; /* 0x4708657F: je 0x47086583 */ 3123 L_47086581: 3124 ebp = eax; /* 0x47086581: mov ebp, eax */ 3125 L_47086583: 3126 RECOMP_ICALL(0x47039020u); /* 0x47086583: call 0x47039020 */ /* not lifted */ 3127 RECOMP_FLAGS_IN(); 3128 esi = eax; /* 0x47086588: mov esi, eax */ 3129 ecx = esi; /* 0x4708658A: mov ecx, esi */ 3130 RECOMP_ICALL(0x4703B210u); /* 0x4708658C: call 0x4703b210 */ /* not lifted */ 3131 RECOMP_FLAGS_IN(); 3132 PUSH32(esp, eax); /* 0x47086591: push eax */ 3133 ecx = esi; /* 0x47086592: mov ecx, esi */ 3134 RECOMP_ICALL(0x4703B240u); /* 0x47086594: call 0x4703b240 */ /* not lifted */ 3135 RECOMP_FLAGS_IN(); 3136 PUSH32(esp, eax); /* 0x47086599: push eax */ 3137 ecx = esi; /* 0x4708659A: mov ecx, esi */ 3138 RECOMP_ICALL(0x4703B080u); /* 0x4708659C: call 0x4703b080 */ /* not lifted */ 3139 RECOMP_FLAGS_IN(); 3140 PUSH32(esp, eax); /* 0x470865A1: push eax */ 3141 PUSH32(esp, ebp); /* 0x470865A2: push ebp */ 3142 PUSH32(esp, 0); /* 0x470865A3: push 0 */ 3143 PUSH32(esp, 0x171u); /* 0x470865A5: push 0x171 */ 3144 PUSH32(esp, 0x4710C610u); /* 0x470865AA: push 0x4710c610 */ 3145 ecx = esi; /* 0x470865AF: mov ecx, esi */ 3146 RECOMP_ICALL(0x4703A340u); /* 0x470865B1: call 0x4703a340 */ /* not lifted */ 3147 RECOMP_FLAGS_IN(); 3148 eax = MEM32(esp + 0x10); /* 0x470865B6: mov eax, dword ptr [esp + 0x10] */ 3149 PUSH32(esp, eax); /* 0x470865BA: push eax */ 3150 PUSH32(esp, 0x471052CCu); /* 0x470865BB: push 0x471052cc */ 3151 PUSH32(esp, 4); /* 0x470865C0: push 4 */ 3152 PUSH32(esp, esi); /* 0x470865C2: push esi */ 3153 RECOMP_ICALL(0x47039830u); /* 0x470865C3: call 0x47039830 */ /* not lifted */ 3154 RECOMP_FLAGS_IN(); 3155 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3156 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3157 esp = esp + 0x10u; /* 0x470865C8: add esp, 0x10 */ 3158 _flag_k = FK_ADD; 3159 RECOMP_ICALL(edi); /* 0x470865CB: call edi */ 3160 RECOMP_FLAGS_IN(); 3161 ebp = eax; /* 0x470865CD: mov ebp, eax */ 3162 RECOMP_ICALL(ebx); /* 0x470865CF: call ebx */ 3163 RECOMP_FLAGS_IN(); 3164 eax = MEM32(eax); /* 0x470865D1: mov eax, dword ptr [eax] */ 3165 /* test eax, eax */ /* 0x470865D3: test eax, eax */ 3166 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3167 _cf = 0; 3168 _flag_k = FK_TEST; 3169 if (TEST_Z(_flag_a, _flag_b)) goto L_470865D9; /* 0x470865D5: je 0x470865d9 */ 3170 L_470865D7: 3171 ebp = eax; /* 0x470865D7: mov ebp, eax */ 3172 L_470865D9: 3173 RECOMP_ICALL(0x47039020u); /* 0x470865D9: call 0x47039020 */ /* not lifted */ 3174 RECOMP_FLAGS_IN(); 3175 esi = eax; /* 0x470865DE: mov esi, eax */ 3176 ecx = esi; /* 0x470865E0: mov ecx, esi */ 3177 RECOMP_ICALL(0x4703B210u); /* 0x470865E2: call 0x4703b210 */ /* not lifted */ 3178 RECOMP_FLAGS_IN(); 3179 PUSH32(esp, eax); /* 0x470865E7: push eax */ 3180 ecx = esi; /* 0x470865E8: mov ecx, esi */ 3181 RECOMP_ICALL(0x4703B240u); /* 0x470865EA: call 0x4703b240 */ /* not lifted */ 3182 RECOMP_FLAGS_IN(); 3183 PUSH32(esp, eax); /* 0x470865EF: push eax */ 3184 ecx = esi; /* 0x470865F0: mov ecx, esi */ 3185 RECOMP_ICALL(0x4703B080u); /* 0x470865F2: call 0x4703b080 */ /* not lifted */ 3186 RECOMP_FLAGS_IN(); 3187 PUSH32(esp, eax); /* 0x470865F7: push eax */ 3188 PUSH32(esp, ebp); /* 0x470865F8: push ebp */ 3189 PUSH32(esp, 0); /* 0x470865F9: push 0 */ 3190 PUSH32(esp, 0x176u); /* 0x470865FB: push 0x176 */ 3191 PUSH32(esp, 0x4710C610u); /* 0x47086600: push 0x4710c610 */ 3192 ecx = esi; /* 0x47086605: mov ecx, esi */ 3193 RECOMP_ICALL(0x4703A340u); /* 0x47086607: call 0x4703a340 */ /* not lifted */ 3194 RECOMP_FLAGS_IN(); 3195 PUSH32(esp, 0x47105590u); /* 0x4708660C: push 0x47105590 */ 3196 PUSH32(esp, 4); /* 0x47086611: push 4 */ 3197 PUSH32(esp, esi); /* 0x47086613: push esi */ 3198 RECOMP_ICALL(0x47039830u); /* 0x47086614: call 0x47039830 */ /* not lifted */ 3199 RECOMP_FLAGS_IN(); 3200 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3201 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3202 esp = esp + 0xCu; /* 0x47086619: add esp, 0xc */ 3203 _flag_k = FK_ADD; 3204 RECOMP_ICALL(edi); /* 0x4708661C: call edi */ 3205 RECOMP_FLAGS_IN(); 3206 esi = eax; /* 0x4708661E: mov esi, eax */ 3207 RECOMP_ICALL(ebx); /* 0x47086620: call ebx */ 3208 RECOMP_FLAGS_IN(); 3209 eax = MEM32(eax); /* 0x47086622: mov eax, dword ptr [eax] */ 3210 /* test eax, eax */ /* 0x47086624: test eax, eax */ 3211 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3212 _cf = 0; 3213 _flag_k = FK_TEST; 3214 edi = esi; /* 0x47086626: mov edi, esi */ 3215 if (TEST_Z(_flag_a, _flag_b)) goto L_4708662C; /* 0x47086628: je 0x4708662c */ 3216 L_4708662A: 3217 edi = eax; /* 0x4708662A: mov edi, eax */ 3218 L_4708662C: 3219 RECOMP_ICALL(0x47039020u); /* 0x4708662C: call 0x47039020 */ /* not lifted */ 3220 RECOMP_FLAGS_IN(); 3221 esi = eax; /* 0x47086631: mov esi, eax */ 3222 ecx = esi; /* 0x47086633: mov ecx, esi */ 3223 RECOMP_ICALL(0x4703B210u); /* 0x47086635: call 0x4703b210 */ /* not lifted */ 3224 RECOMP_FLAGS_IN(); 3225 PUSH32(esp, eax); /* 0x4708663A: push eax */ 3226 ecx = esi; /* 0x4708663B: mov ecx, esi */ 3227 RECOMP_ICALL(0x4703B240u); /* 0x4708663D: call 0x4703b240 */ /* not lifted */ 3228 RECOMP_FLAGS_IN(); 3229 PUSH32(esp, eax); /* 0x47086642: push eax */ 3230 ecx = esi; /* 0x47086643: mov ecx, esi */ 3231 RECOMP_ICALL(0x4703B080u); /* 0x47086645: call 0x4703b080 */ /* not lifted */ 3232 RECOMP_FLAGS_IN(); 3233 PUSH32(esp, eax); /* 0x4708664A: push eax */ 3234 PUSH32(esp, edi); /* 0x4708664B: push edi */ 3235 PUSH32(esp, 0); /* 0x4708664C: push 0 */ 3236 PUSH32(esp, 0x177u); /* 0x4708664E: push 0x177 */ 3237 PUSH32(esp, 0x4710C610u); /* 0x47086653: push 0x4710c610 */ 3238 ecx = esi; /* 0x47086658: mov ecx, esi */ 3239 RECOMP_ICALL(0x4703A340u); /* 0x4708665A: call 0x4703a340 */ /* not lifted */ 3240 RECOMP_FLAGS_IN(); 3241 PUSH32(esp, 0x4710529Cu); /* 0x4708665F: push 0x4710529c */ 3242 PUSH32(esp, 4); /* 0x47086664: push 4 */ 3243 PUSH32(esp, esi); /* 0x47086666: push esi */ 3244 RECOMP_ICALL(0x47039830u); /* 0x47086667: call 0x47039830 */ /* not lifted */ 3245 RECOMP_FLAGS_IN(); 3246 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3247 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3248 esp = esp + 0xCu; /* 0x4708666C: add esp, 0xc */ 3249 _flag_k = FK_ADD; 3250 edi = POP32_VAL(esp); /* 0x4708666F: pop edi */ 3251 esi = POP32_VAL(esp); /* 0x47086670: pop esi */ 3252 ebp = POP32_VAL(esp); /* 0x47086671: pop ebp */ 3253 ebx = POP32_VAL(esp); /* 0x47086672: pop ebx */ 3254 ecx = POP32_VAL(esp); /* 0x47086673: pop ecx */ 3255 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47086674: ret */ 3256 RECOMP_REGS_OUT(); 3257 } 3258 3259 void sub_47086680(void) { 3260 int _fpu_cmp = 0; 3261 uint32_t _cf = 0; 3262 int _df = 1; 3263 uint32_t _flag_k = FK_NONE; 3264 uint32_t _flag_a = 0, _flag_b = 0; 3265 uint32_t _itail_tgt = 0; 3266 RECOMP_REGS_LOCALS 3267 RECOMP_ENTER(0x47086680u); 3268 3269 L_47086680: 3270 eax = MEM32(esp + 0x4); /* 0x47086680: mov eax, dword ptr [esp + 4] */ 3271 L_47086684: 3272 PUSH32(esp, ebx); /* 0x47086684: push ebx */ 3273 L_47086685: 3274 PUSH32(esp, ebp); /* 0x47086685: push ebp */ 3275 L_47086686: 3276 ebx = ecx; /* 0x47086686: mov ebx, ecx */ 3277 L_47086688: 3278 PUSH32(esp, esi); /* 0x47086688: push esi */ 3279 L_47086689: 3280 MEM32(ebx) = eax; /* 0x47086689: mov dword ptr [ebx], eax */ 3281 L_4708668B: 3282 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3283 eax = eax - 1; /* 0x4708668B: dec eax */ 3284 _flag_k = FK_DEC; 3285 L_4708668C: 3286 PUSH32(esp, edi); /* 0x4708668C: push edi */ 3287 L_4708668D: 3288 MEM32(ebx + 0x1C) = 0; /* 0x4708668D: mov dword ptr [ebx + 0x1c], 0 */ 3289 L_47086694: 3290 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47086786; /* 0x47086694: je 0x47086786 */ 3291 L_4708669A: 3292 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3293 eax = eax - 1; /* 0x4708669A: dec eax */ 3294 _flag_k = FK_DEC; 3295 L_4708669B: 3296 ebp = MEM32(0x470AC150); /* 0x4708669B: mov ebp, dword ptr [0x470ac150] */ 3297 L_470866A1: 3298 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47086713; /* 0x470866A1: je 0x47086713 */ 3299 L_470866A3: 3300 esi = MEM32(0x470AC3C8); /* 0x470866A3: mov esi, dword ptr [0x470ac3c8] */ 3301 L_470866A9: 3302 RECOMP_ICALL(esi); /* 0x470866A9: call esi */ 3303 RECOMP_FLAGS_IN(); 3304 L_470866AB: 3305 MEM32(eax) = 0x16u; /* 0x470866AB: mov dword ptr [eax], 0x16 */ 3306 L_470866B1: 3307 RECOMP_ICALL(ebp); /* 0x470866B1: call ebp */ 3308 RECOMP_FLAGS_IN(); 3309 L_470866B3: 3310 edi = eax; /* 0x470866B3: mov edi, eax */ 3311 L_470866B5: 3312 RECOMP_ICALL(esi); /* 0x470866B5: call esi */ 3313 RECOMP_FLAGS_IN(); 3314 L_470866B7: 3315 eax = MEM32(eax); /* 0x470866B7: mov eax, dword ptr [eax] */ 3316 L_470866B9: 3317 /* test eax, eax */ /* 0x470866B9: test eax, eax */ 3318 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3319 _cf = 0; 3320 _flag_k = FK_TEST; 3321 L_470866BB: 3322 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_470866BF; /* 0x470866BB: je 0x470866bf */ 3323 L_470866BD: 3324 edi = eax; /* 0x470866BD: mov edi, eax */ 3325 L_470866BF: 3326 RECOMP_ICALL(0x47039020u); /* 0x470866BF: call 0x47039020 */ /* not lifted */ 3327 RECOMP_FLAGS_IN(); 3328 L_470866C4: 3329 esi = eax; /* 0x470866C4: mov esi, eax */ 3330 L_470866C6: 3331 ecx = esi; /* 0x470866C6: mov ecx, esi */ 3332 L_470866C8: 3333 RECOMP_ICALL(0x4703B210u); /* 0x470866C8: call 0x4703b210 */ /* not lifted */ 3334 RECOMP_FLAGS_IN(); 3335 L_470866CD: 3336 PUSH32(esp, eax); /* 0x470866CD: push eax */ 3337 L_470866CE: 3338 ecx = esi; /* 0x470866CE: mov ecx, esi */ 3339 L_470866D0: 3340 RECOMP_ICALL(0x4703B240u); /* 0x470866D0: call 0x4703b240 */ /* not lifted */ 3341 RECOMP_FLAGS_IN(); 3342 L_470866D5: 3343 PUSH32(esp, eax); /* 0x470866D5: push eax */ 3344 L_470866D6: 3345 ecx = esi; /* 0x470866D6: mov ecx, esi */ 3346 L_470866D8: 3347 RECOMP_ICALL(0x4703B080u); /* 0x470866D8: call 0x4703b080 */ /* not lifted */ 3348 RECOMP_FLAGS_IN(); 3349 L_470866DD: 3350 PUSH32(esp, eax); /* 0x470866DD: push eax */ 3351 L_470866DE: 3352 PUSH32(esp, edi); /* 0x470866DE: push edi */ 3353 L_470866DF: 3354 PUSH32(esp, 0xFFFFFFFFu); /* 0x470866DF: push -1 */ 3355 L_470866E1: 3356 PUSH32(esp, 0x1C0u); /* 0x470866E1: push 0x1c0 */ 3357 L_470866E6: 3358 PUSH32(esp, 0x4710C610u); /* 0x470866E6: push 0x4710c610 */ 3359 L_470866EB: 3360 ecx = esi; /* 0x470866EB: mov ecx, esi */ 3361 L_470866ED: 3362 RECOMP_ICALL(0x4703A340u); /* 0x470866ED: call 0x4703a340 */ /* not lifted */ 3363 RECOMP_FLAGS_IN(); 3364 L_470866F2: 3365 PUSH32(esp, 0x4710C6ACu); /* 0x470866F2: push 0x4710c6ac */ 3366 L_470866F7: 3367 PUSH32(esp, 0x471055F0u); /* 0x470866F7: push 0x471055f0 */ 3368 L_470866FC: 3369 PUSH32(esp, 0x80u); /* 0x470866FC: push 0x80 */ 3370 L_47086701: 3371 PUSH32(esp, esi); /* 0x47086701: push esi */ 3372 L_47086702: 3373 RECOMP_ICALL(0x47039830u); /* 0x47086702: call 0x47039830 */ /* not lifted */ 3374 RECOMP_FLAGS_IN(); 3375 L_47086707: 3376 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3377 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3378 esp = esp + 0x10u; /* 0x47086707: add esp, 0x10 */ 3379 _flag_k = FK_ADD; 3380 L_4708670A: 3381 edi = POP32_VAL(esp); /* 0x4708670A: pop edi */ 3382 L_4708670B: 3383 esi = POP32_VAL(esp); /* 0x4708670B: pop esi */ 3384 L_4708670C: 3385 ebp = POP32_VAL(esp); /* 0x4708670C: pop ebp */ 3386 L_4708670D: 3387 eax = ebx; /* 0x4708670D: mov eax, ebx */ 3388 L_4708670F: 3389 ebx = POP32_VAL(esp); /* 0x4708670F: pop ebx */ 3390 L_47086710: 3391 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47086710: ret 0xc */ 3392 L_47086713: 3393 eax = MEM32(esp + 0x18); /* 0x47086713: mov eax, dword ptr [esp + 0x18] */ 3394 L_47086717: 3395 PUSH32(esp, eax); /* 0x47086717: push eax */ 3396 L_47086718: 3397 PUSH32(esp, 0); /* 0x47086718: push 0 */ 3398 L_4708671A: 3399 PUSH32(esp, 0); /* 0x4708671A: push 0 */ 3400 L_4708671C: 3401 RECOMP_ICALL(MEM32(0x470AC1A0)); /* 0x4708671C: call dword ptr [0x470ac1a0] */ 3402 RECOMP_FLAGS_IN(); 3403 L_47086722: 3404 /* test eax, eax */ /* 0x47086722: test eax, eax */ 3405 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3406 _cf = 0; 3407 _flag_k = FK_TEST; 3408 L_47086724: 3409 MEM32(ebx + 0x4) = eax; /* 0x47086724: mov dword ptr [ebx + 4], eax */ 3410 L_47086727: 3411 RECOMP_BACKEDGE(); 3412 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_4708670A; /* 0x47086727: jne 0x4708670a */ 3413 L_47086729: 3414 esi = MEM32(0x470AC3C8); /* 0x47086729: mov esi, dword ptr [0x470ac3c8] */ 3415 L_4708672F: 3416 RECOMP_ICALL(esi); /* 0x4708672F: call esi */ 3417 RECOMP_FLAGS_IN(); 3418 L_47086731: 3419 edi = eax; /* 0x47086731: mov edi, eax */ 3420 L_47086733: 3421 RECOMP_ICALL(ebp); /* 0x47086733: call ebp */ 3422 RECOMP_FLAGS_IN(); 3423 L_47086735: 3424 MEM32(edi) = eax; /* 0x47086735: mov dword ptr [edi], eax */ 3425 L_47086737: 3426 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu); 3427 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3428 eax = eax + 0xFFFFFFFDu; /* 0x47086737: add eax, -3 */ 3429 _flag_k = FK_ADD; 3430 L_4708673A: 3431 /* cmp eax, 0x4Du */ /* 0x4708673A: cmp eax, 0x4d */ 3432 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Du); 3433 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3434 _flag_k = FK_CMP; 3435 L_4708673D: 3436 RECOMP_BACKEDGE(); 3437 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_470866B1; /* 0x4708673D: ja 0x470866b1 */ 3438 L_47086743: 3439 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3440 ecx = 0; /* 0x47086743: xor ecx, ecx */ 3441 _cf = 0; 3442 _flag_k = FK_TEST; 3443 L_47086745: 3444 SET_LO8(ecx, MEM8(eax + 0x470867B0)); /* 0x47086745: mov cl, byte ptr [eax + 0x470867b0] */ 3445 L_4708674B: 3446 { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x4708679C)); goto _ljump; } 3447 L_47086752: 3448 RECOMP_ICALL(esi); /* 0x47086752: call esi */ 3449 RECOMP_FLAGS_IN(); 3450 L_47086754: 3451 MEM32(eax) = 0xCu; /* 0x47086754: mov dword ptr [eax], 0xc */ 3452 L_4708675A: 3453 RECOMP_BACKEDGE(); 3454 goto L_470866B1; /* 0x4708675A: jmp 0x470866b1 */ 3455 L_4708675F: 3456 RECOMP_ICALL(esi); /* 0x4708675F: call esi */ 3457 RECOMP_FLAGS_IN(); 3458 L_47086761: 3459 MEM32(eax) = 0x11u; /* 0x47086761: mov dword ptr [eax], 0x11 */ 3460 L_47086767: 3461 RECOMP_BACKEDGE(); 3462 goto L_470866B1; /* 0x47086767: jmp 0x470866b1 */ 3463 L_4708676C: 3464 RECOMP_ICALL(esi); /* 0x4708676C: call esi */ 3465 RECOMP_FLAGS_IN(); 3466 L_4708676E: 3467 MEM32(eax) = 0xDu; /* 0x4708676E: mov dword ptr [eax], 0xd */ 3468 L_47086774: 3469 RECOMP_BACKEDGE(); 3470 goto L_470866B1; /* 0x47086774: jmp 0x470866b1 */ 3471 L_47086779: 3472 RECOMP_ICALL(esi); /* 0x47086779: call esi */ 3473 RECOMP_FLAGS_IN(); 3474 L_4708677B: 3475 MEM32(eax) = 2; /* 0x4708677B: mov dword ptr [eax], 2 */ 3476 L_47086781: 3477 RECOMP_BACKEDGE(); 3478 goto L_470866B1; /* 0x47086781: jmp 0x470866b1 */ 3479 L_47086786: 3480 edx = ebx + 0x4; /* 0x47086786: lea edx, [ebx + 4] */ 3481 L_47086789: 3482 PUSH32(esp, edx); /* 0x47086789: push edx */ 3483 L_4708678A: 3484 RECOMP_ICALL(MEM32(0x470AC1A4)); /* 0x4708678A: call dword ptr [0x470ac1a4] */ 3485 RECOMP_FLAGS_IN(); 3486 L_47086790: 3487 edi = POP32_VAL(esp); /* 0x47086790: pop edi */ 3488 L_47086791: 3489 esi = POP32_VAL(esp); /* 0x47086791: pop esi */ 3490 L_47086792: 3491 ebp = POP32_VAL(esp); /* 0x47086792: pop ebp */ 3492 L_47086793: 3493 eax = ebx; /* 0x47086793: mov eax, ebx */ 3494 L_47086795: 3495 ebx = POP32_VAL(esp); /* 0x47086795: pop ebx */ 3496 L_47086796: 3497 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47086796: ret 0xc */ 3498 _ljump: 3499 switch (_itail_tgt) { 3500 case 0x47086680u: goto L_47086680; 3501 case 0x47086684u: goto L_47086684; 3502 case 0x47086685u: goto L_47086685; 3503 case 0x47086686u: goto L_47086686; 3504 case 0x47086688u: goto L_47086688; 3505 case 0x47086689u: goto L_47086689; 3506 case 0x4708668Bu: goto L_4708668B; 3507 case 0x4708668Cu: goto L_4708668C; 3508 case 0x4708668Du: goto L_4708668D; 3509 case 0x47086694u: goto L_47086694; 3510 case 0x4708669Au: goto L_4708669A; 3511 case 0x4708669Bu: goto L_4708669B; 3512 case 0x470866A1u: goto L_470866A1; 3513 case 0x470866A3u: goto L_470866A3; 3514 case 0x470866A9u: goto L_470866A9; 3515 case 0x470866ABu: goto L_470866AB; 3516 case 0x470866B1u: goto L_470866B1; 3517 case 0x470866B3u: goto L_470866B3; 3518 case 0x470866B5u: goto L_470866B5; 3519 case 0x470866B7u: goto L_470866B7; 3520 case 0x470866B9u: goto L_470866B9; 3521 case 0x470866BBu: goto L_470866BB; 3522 case 0x470866BDu: goto L_470866BD; 3523 case 0x470866BFu: goto L_470866BF; 3524 case 0x470866C4u: goto L_470866C4; 3525 case 0x470866C6u: goto L_470866C6; 3526 case 0x470866C8u: goto L_470866C8; 3527 case 0x470866CDu: goto L_470866CD; 3528 case 0x470866CEu: goto L_470866CE; 3529 case 0x470866D0u: goto L_470866D0; 3530 case 0x470866D5u: goto L_470866D5; 3531 case 0x470866D6u: goto L_470866D6; 3532 case 0x470866D8u: goto L_470866D8; 3533 case 0x470866DDu: goto L_470866DD; 3534 case 0x470866DEu: goto L_470866DE; 3535 case 0x470866DFu: goto L_470866DF; 3536 case 0x470866E1u: goto L_470866E1; 3537 case 0x470866E6u: goto L_470866E6; 3538 case 0x470866EBu: goto L_470866EB; 3539 case 0x470866EDu: goto L_470866ED; 3540 case 0x470866F2u: goto L_470866F2; 3541 case 0x470866F7u: goto L_470866F7; 3542 case 0x470866FCu: goto L_470866FC; 3543 case 0x47086701u: goto L_47086701; 3544 case 0x47086702u: goto L_47086702; 3545 case 0x47086707u: goto L_47086707; 3546 case 0x4708670Au: goto L_4708670A; 3547 case 0x4708670Bu: goto L_4708670B; 3548 case 0x4708670Cu: goto L_4708670C; 3549 case 0x4708670Du: goto L_4708670D; 3550 case 0x4708670Fu: goto L_4708670F; 3551 case 0x47086710u: goto L_47086710; 3552 case 0x47086713u: goto L_47086713; 3553 case 0x47086717u: goto L_47086717; 3554 case 0x47086718u: goto L_47086718; 3555 case 0x4708671Au: goto L_4708671A; 3556 case 0x4708671Cu: goto L_4708671C; 3557 case 0x47086722u: goto L_47086722; 3558 case 0x47086724u: goto L_47086724; 3559 case 0x47086727u: goto L_47086727; 3560 case 0x47086729u: goto L_47086729; 3561 case 0x4708672Fu: goto L_4708672F; 3562 case 0x47086731u: goto L_47086731; 3563 case 0x47086733u: goto L_47086733; 3564 case 0x47086735u: goto L_47086735; 3565 case 0x47086737u: goto L_47086737; 3566 case 0x4708673Au: goto L_4708673A; 3567 case 0x4708673Du: goto L_4708673D; 3568 case 0x47086743u: goto L_47086743; 3569 case 0x47086745u: goto L_47086745; 3570 case 0x4708674Bu: goto L_4708674B; 3571 case 0x47086752u: goto L_47086752; 3572 case 0x47086754u: goto L_47086754; 3573 case 0x4708675Au: goto L_4708675A; 3574 case 0x4708675Fu: goto L_4708675F; 3575 case 0x47086761u: goto L_47086761; 3576 case 0x47086767u: goto L_47086767; 3577 case 0x4708676Cu: goto L_4708676C; 3578 case 0x4708676Eu: goto L_4708676E; 3579 case 0x47086774u: goto L_47086774; 3580 case 0x47086779u: goto L_47086779; 3581 case 0x4708677Bu: goto L_4708677B; 3582 case 0x47086781u: goto L_47086781; 3583 case 0x47086786u: goto L_47086786; 3584 case 0x47086789u: goto L_47086789; 3585 case 0x4708678Au: goto L_4708678A; 3586 case 0x47086790u: goto L_47086790; 3587 case 0x47086791u: goto L_47086791; 3588 case 0x47086792u: goto L_47086792; 3589 case 0x47086793u: goto L_47086793; 3590 case 0x47086795u: goto L_47086795; 3591 case 0x47086796u: goto L_47086796; 3592 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3593 } 3594 RECOMP_REGS_OUT(); 3595 } 3596 3597 void sub_470866B1(void) { 3598 int _fpu_cmp = 0; 3599 uint32_t _cf = 0; 3600 int _df = 1; 3601 uint32_t _flag_k = FK_NONE; 3602 uint32_t _flag_a = 0, _flag_b = 0; 3603 uint32_t _itail_tgt = 0; 3604 RECOMP_REGS_LOCALS 3605 RECOMP_ENTER(0x470866B1u); 3606 3607 L_470866B1: 3608 RECOMP_ICALL(ebp); /* 0x470866B1: call ebp */ 3609 RECOMP_FLAGS_IN(); 3610 edi = eax; /* 0x470866B3: mov edi, eax */ 3611 RECOMP_ICALL(esi); /* 0x470866B5: call esi */ 3612 RECOMP_FLAGS_IN(); 3613 eax = MEM32(eax); /* 0x470866B7: mov eax, dword ptr [eax] */ 3614 /* test eax, eax */ /* 0x470866B9: test eax, eax */ 3615 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3616 _cf = 0; 3617 _flag_k = FK_TEST; 3618 if (TEST_Z(_flag_a, _flag_b)) goto L_470866BF; /* 0x470866BB: je 0x470866bf */ 3619 L_470866BD: 3620 edi = eax; /* 0x470866BD: mov edi, eax */ 3621 L_470866BF: 3622 RECOMP_ICALL(0x47039020u); /* 0x470866BF: call 0x47039020 */ /* not lifted */ 3623 RECOMP_FLAGS_IN(); 3624 esi = eax; /* 0x470866C4: mov esi, eax */ 3625 ecx = esi; /* 0x470866C6: mov ecx, esi */ 3626 RECOMP_ICALL(0x4703B210u); /* 0x470866C8: call 0x4703b210 */ /* not lifted */ 3627 RECOMP_FLAGS_IN(); 3628 PUSH32(esp, eax); /* 0x470866CD: push eax */ 3629 ecx = esi; /* 0x470866CE: mov ecx, esi */ 3630 RECOMP_ICALL(0x4703B240u); /* 0x470866D0: call 0x4703b240 */ /* not lifted */ 3631 RECOMP_FLAGS_IN(); 3632 PUSH32(esp, eax); /* 0x470866D5: push eax */ 3633 ecx = esi; /* 0x470866D6: mov ecx, esi */ 3634 RECOMP_ICALL(0x4703B080u); /* 0x470866D8: call 0x4703b080 */ /* not lifted */ 3635 RECOMP_FLAGS_IN(); 3636 PUSH32(esp, eax); /* 0x470866DD: push eax */ 3637 PUSH32(esp, edi); /* 0x470866DE: push edi */ 3638 PUSH32(esp, 0xFFFFFFFFu); /* 0x470866DF: push -1 */ 3639 PUSH32(esp, 0x1C0u); /* 0x470866E1: push 0x1c0 */ 3640 PUSH32(esp, 0x4710C610u); /* 0x470866E6: push 0x4710c610 */ 3641 ecx = esi; /* 0x470866EB: mov ecx, esi */ 3642 RECOMP_ICALL(0x4703A340u); /* 0x470866ED: call 0x4703a340 */ /* not lifted */ 3643 RECOMP_FLAGS_IN(); 3644 PUSH32(esp, 0x4710C6ACu); /* 0x470866F2: push 0x4710c6ac */ 3645 PUSH32(esp, 0x471055F0u); /* 0x470866F7: push 0x471055f0 */ 3646 PUSH32(esp, 0x80u); /* 0x470866FC: push 0x80 */ 3647 PUSH32(esp, esi); /* 0x47086701: push esi */ 3648 RECOMP_ICALL(0x47039830u); /* 0x47086702: call 0x47039830 */ /* not lifted */ 3649 RECOMP_FLAGS_IN(); 3650 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3651 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3652 esp = esp + 0x10u; /* 0x47086707: add esp, 0x10 */ 3653 _flag_k = FK_ADD; 3654 edi = POP32_VAL(esp); /* 0x4708670A: pop edi */ 3655 esi = POP32_VAL(esp); /* 0x4708670B: pop esi */ 3656 ebp = POP32_VAL(esp); /* 0x4708670C: pop ebp */ 3657 eax = ebx; /* 0x4708670D: mov eax, ebx */ 3658 ebx = POP32_VAL(esp); /* 0x4708670F: pop ebx */ 3659 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47086710: ret 0xc */ 3660 RECOMP_REGS_OUT(); 3661 } 3662 3663 void sub_47086800(void) { 3664 int _fpu_cmp = 0; 3665 uint32_t _cf = 0; 3666 int _df = 1; 3667 uint32_t _flag_k = FK_NONE; 3668 uint32_t _flag_a = 0, _flag_b = 0; 3669 uint32_t _itail_tgt = 0; 3670 RECOMP_REGS_LOCALS 3671 RECOMP_ENTER(0x47086800u); 3672 3673 L_47086800: 3674 eax = MEM32(ecx + 0x1C); /* 0x47086800: mov eax, dword ptr [ecx + 0x1c] */ 3675 /* test eax, eax */ /* 0x47086803: test eax, eax */ 3676 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3677 _cf = 0; 3678 _flag_k = FK_TEST; 3679 if (TEST_NZ(_flag_a, _flag_b)) goto L_4708684E; /* 0x47086805: jne 0x4708684e */ 3680 L_47086807: 3681 eax = MEM32(ecx); /* 0x47086807: mov eax, dword ptr [ecx] */ 3682 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3683 eax = eax - 1; /* 0x47086809: dec eax */ 3684 _flag_k = FK_DEC; 3685 MEM32(ecx + 0x1C) = 1; /* 0x4708680A: mov dword ptr [ecx + 0x1c], 1 */ 3686 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_47086844; /* 0x47086811: je 0x47086844 */ 3687 L_47086813: 3688 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3689 eax = eax - 1; /* 0x47086813: dec eax */ 3690 _flag_k = FK_DEC; 3691 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_47086823; /* 0x47086814: je 0x47086823 */ 3692 L_47086816: 3693 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47086816: call dword ptr [0x470ac3c8] */ 3694 RECOMP_FLAGS_IN(); 3695 MEM32(eax) = 0x16u; /* 0x4708681C: mov dword ptr [eax], 0x16 */ 3696 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47086822: ret */ 3697 L_47086823: 3698 eax = MEM32(ecx + 0x4); /* 0x47086823: mov eax, dword ptr [ecx + 4] */ 3699 PUSH32(esp, eax); /* 0x47086826: push eax */ 3700 RECOMP_ICALL(MEM32(0x470AC198)); /* 0x47086827: call dword ptr [0x470ac198] */ 3701 RECOMP_FLAGS_IN(); 3702 /* test eax, eax */ /* 0x4708682D: test eax, eax */ 3703 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3704 _cf = 0; 3705 _flag_k = FK_TEST; 3706 if (TEST_NZ(_flag_a, _flag_b)) goto L_4708684E; /* 0x4708682F: jne 0x4708684e */ 3707 L_47086831: 3708 PUSH32(esp, esi); /* 0x47086831: push esi */ 3709 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47086832: call dword ptr [0x470ac3c8] */ 3710 RECOMP_FLAGS_IN(); 3711 esi = eax; /* 0x47086838: mov esi, eax */ 3712 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4708683A: call dword ptr [0x470ac150] */ 3713 RECOMP_FLAGS_IN(); 3714 MEM32(esi) = eax; /* 0x47086840: mov dword ptr [esi], eax */ 3715 esi = POP32_VAL(esp); /* 0x47086842: pop esi */ 3716 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47086843: ret */ 3717 L_47086844: 3718 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 3719 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3720 ecx = ecx + 4; /* 0x47086844: add ecx, 4 */ 3721 _flag_k = FK_ADD; 3722 PUSH32(esp, ecx); /* 0x47086847: push ecx */ 3723 RECOMP_ICALL(MEM32(0x470AC19C)); /* 0x47086848: call dword ptr [0x470ac19c] */ 3724 RECOMP_FLAGS_IN(); 3725 L_4708684E: 3726 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708684E: ret */ 3727 RECOMP_REGS_OUT(); 3728 } 3729 3730 void sub_47086850(void) { 3731 int _fpu_cmp = 0; 3732 uint32_t _cf = 0; 3733 int _df = 1; 3734 uint32_t _flag_k = FK_NONE; 3735 uint32_t _flag_a = 0, _flag_b = 0; 3736 uint32_t _itail_tgt = 0; 3737 RECOMP_REGS_LOCALS 3738 RECOMP_ENTER(0x47086850u); 3739 3740 L_47086850: 3741 eax = MEM32(esp + 0x10); /* 0x47086850: mov eax, dword ptr [esp + 0x10] */ 3742 L_47086854: 3743 edx = MEM32(esp + 0x4); /* 0x47086854: mov edx, dword ptr [esp + 4] */ 3744 L_47086858: 3745 PUSH32(esp, ebp); /* 0x47086858: push ebp */ 3746 L_47086859: 3747 ebp = ecx; /* 0x47086859: mov ebp, ecx */ 3748 L_4708685B: 3749 ecx = MEM32(esp + 0xC); /* 0x4708685B: mov ecx, dword ptr [esp + 0xc] */ 3750 L_4708685F: 3751 PUSH32(esp, eax); /* 0x4708685F: push eax */ 3752 L_47086860: 3753 PUSH32(esp, ecx); /* 0x47086860: push ecx */ 3754 L_47086861: 3755 PUSH32(esp, edx); /* 0x47086861: push edx */ 3756 L_47086862: 3757 PUSH32(esp, 0); /* 0x47086862: push 0 */ 3758 L_47086864: 3759 MEM32(ebp + 0x4) = 0; /* 0x47086864: mov dword ptr [ebp + 4], 0 */ 3760 L_4708686B: 3761 RECOMP_ICALL(MEM32(0x470AC164)); /* 0x4708686B: call dword ptr [0x470ac164] */ 3762 RECOMP_FLAGS_IN(); 3763 L_47086871: 3764 /* test eax, eax */ /* 0x47086871: test eax, eax */ 3765 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3766 _cf = 0; 3767 _flag_k = FK_TEST; 3768 L_47086873: 3769 MEM32(ebp) = eax; /* 0x47086873: mov dword ptr [ebp], eax */ 3770 L_47086876: 3771 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47086932; /* 0x47086876: jne 0x47086932 */ 3772 L_4708687C: 3773 PUSH32(esp, ebx); /* 0x4708687C: push ebx */ 3774 L_4708687D: 3775 PUSH32(esp, esi); /* 0x4708687D: push esi */ 3776 L_4708687E: 3777 esi = MEM32(0x470AC3C8); /* 0x4708687E: mov esi, dword ptr [0x470ac3c8] */ 3778 L_47086884: 3779 PUSH32(esp, edi); /* 0x47086884: push edi */ 3780 L_47086885: 3781 RECOMP_ICALL(esi); /* 0x47086885: call esi */ 3782 RECOMP_FLAGS_IN(); 3783 L_47086887: 3784 ebx = MEM32(0x470AC150); /* 0x47086887: mov ebx, dword ptr [0x470ac150] */ 3785 L_4708688D: 3786 edi = eax; /* 0x4708688D: mov edi, eax */ 3787 L_4708688F: 3788 RECOMP_ICALL(ebx); /* 0x4708688F: call ebx */ 3789 RECOMP_FLAGS_IN(); 3790 L_47086891: 3791 MEM32(edi) = eax; /* 0x47086891: mov dword ptr [edi], eax */ 3792 L_47086893: 3793 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu); 3794 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3795 eax = eax + 0xFFFFFFFDu; /* 0x47086893: add eax, -3 */ 3796 _flag_k = FK_ADD; 3797 L_47086896: 3798 /* cmp eax, 0x4Du */ /* 0x47086896: cmp eax, 0x4d */ 3799 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Du); 3800 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3801 _flag_k = FK_CMP; 3802 L_47086899: 3803 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_470868D0; /* 0x47086899: ja 0x470868d0 */ 3804 L_4708689B: 3805 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3806 ecx = 0; /* 0x4708689B: xor ecx, ecx */ 3807 _cf = 0; 3808 _flag_k = FK_TEST; 3809 L_4708689D: 3810 SET_LO8(ecx, MEM8(eax + 0x4708694C)); /* 0x4708689D: mov cl, byte ptr [eax + 0x4708694c] */ 3811 L_470868A3: 3812 { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x47086938)); goto _ljump; } 3813 L_470868AA: 3814 RECOMP_ICALL(esi); /* 0x470868AA: call esi */ 3815 RECOMP_FLAGS_IN(); 3816 L_470868AC: 3817 MEM32(eax) = 0xCu; /* 0x470868AC: mov dword ptr [eax], 0xc */ 3818 L_470868B2: 3819 goto L_470868D0; /* 0x470868B2: jmp 0x470868d0 */ 3820 L_470868B4: 3821 RECOMP_ICALL(esi); /* 0x470868B4: call esi */ 3822 RECOMP_FLAGS_IN(); 3823 L_470868B6: 3824 MEM32(eax) = 0x11u; /* 0x470868B6: mov dword ptr [eax], 0x11 */ 3825 L_470868BC: 3826 goto L_470868D0; /* 0x470868BC: jmp 0x470868d0 */ 3827 L_470868BE: 3828 RECOMP_ICALL(esi); /* 0x470868BE: call esi */ 3829 RECOMP_FLAGS_IN(); 3830 L_470868C0: 3831 MEM32(eax) = 0xDu; /* 0x470868C0: mov dword ptr [eax], 0xd */ 3832 L_470868C6: 3833 goto L_470868D0; /* 0x470868C6: jmp 0x470868d0 */ 3834 L_470868C8: 3835 RECOMP_ICALL(esi); /* 0x470868C8: call esi */ 3836 RECOMP_FLAGS_IN(); 3837 L_470868CA: 3838 MEM32(eax) = 2; /* 0x470868CA: mov dword ptr [eax], 2 */ 3839 L_470868D0: 3840 RECOMP_ICALL(ebx); /* 0x470868D0: call ebx */ 3841 RECOMP_FLAGS_IN(); 3842 L_470868D2: 3843 edi = eax; /* 0x470868D2: mov edi, eax */ 3844 L_470868D4: 3845 RECOMP_ICALL(esi); /* 0x470868D4: call esi */ 3846 RECOMP_FLAGS_IN(); 3847 L_470868D6: 3848 eax = MEM32(eax); /* 0x470868D6: mov eax, dword ptr [eax] */ 3849 L_470868D8: 3850 /* test eax, eax */ /* 0x470868D8: test eax, eax */ 3851 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3852 _cf = 0; 3853 _flag_k = FK_TEST; 3854 L_470868DA: 3855 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_470868DE; /* 0x470868DA: je 0x470868de */ 3856 L_470868DC: 3857 edi = eax; /* 0x470868DC: mov edi, eax */ 3858 L_470868DE: 3859 RECOMP_ICALL(0x47039020u); /* 0x470868DE: call 0x47039020 */ /* not lifted */ 3860 RECOMP_FLAGS_IN(); 3861 L_470868E3: 3862 esi = eax; /* 0x470868E3: mov esi, eax */ 3863 L_470868E5: 3864 ecx = esi; /* 0x470868E5: mov ecx, esi */ 3865 L_470868E7: 3866 RECOMP_ICALL(0x4703B210u); /* 0x470868E7: call 0x4703b210 */ /* not lifted */ 3867 RECOMP_FLAGS_IN(); 3868 L_470868EC: 3869 PUSH32(esp, eax); /* 0x470868EC: push eax */ 3870 L_470868ED: 3871 ecx = esi; /* 0x470868ED: mov ecx, esi */ 3872 L_470868EF: 3873 RECOMP_ICALL(0x4703B240u); /* 0x470868EF: call 0x4703b240 */ /* not lifted */ 3874 RECOMP_FLAGS_IN(); 3875 L_470868F4: 3876 PUSH32(esp, eax); /* 0x470868F4: push eax */ 3877 L_470868F5: 3878 ecx = esi; /* 0x470868F5: mov ecx, esi */ 3879 L_470868F7: 3880 RECOMP_ICALL(0x4703B080u); /* 0x470868F7: call 0x4703b080 */ /* not lifted */ 3881 RECOMP_FLAGS_IN(); 3882 L_470868FC: 3883 PUSH32(esp, eax); /* 0x470868FC: push eax */ 3884 L_470868FD: 3885 PUSH32(esp, edi); /* 0x470868FD: push edi */ 3886 L_470868FE: 3887 PUSH32(esp, 0xFFFFFFFFu); /* 0x470868FE: push -1 */ 3888 L_47086900: 3889 PUSH32(esp, 0x1D8u); /* 0x47086900: push 0x1d8 */ 3890 L_47086905: 3891 PUSH32(esp, 0x4710C610u); /* 0x47086905: push 0x4710c610 */ 3892 L_4708690A: 3893 ecx = esi; /* 0x4708690A: mov ecx, esi */ 3894 L_4708690C: 3895 RECOMP_ICALL(0x4703A340u); /* 0x4708690C: call 0x4703a340 */ /* not lifted */ 3896 RECOMP_FLAGS_IN(); 3897 L_47086911: 3898 PUSH32(esp, 0x4710C660u); /* 0x47086911: push 0x4710c660 */ 3899 L_47086916: 3900 PUSH32(esp, 0x471055F0u); /* 0x47086916: push 0x471055f0 */ 3901 L_4708691B: 3902 PUSH32(esp, 0x80u); /* 0x4708691B: push 0x80 */ 3903 L_47086920: 3904 PUSH32(esp, esi); /* 0x47086920: push esi */ 3905 L_47086921: 3906 RECOMP_ICALL(0x47039830u); /* 0x47086921: call 0x47039830 */ /* not lifted */ 3907 RECOMP_FLAGS_IN(); 3908 L_47086926: 3909 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3910 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3911 esp = esp + 0x10u; /* 0x47086926: add esp, 0x10 */ 3912 _flag_k = FK_ADD; 3913 L_47086929: 3914 edi = POP32_VAL(esp); /* 0x47086929: pop edi */ 3915 L_4708692A: 3916 esi = POP32_VAL(esp); /* 0x4708692A: pop esi */ 3917 L_4708692B: 3918 ebx = POP32_VAL(esp); /* 0x4708692B: pop ebx */ 3919 L_4708692C: 3920 eax = ebp; /* 0x4708692C: mov eax, ebp */ 3921 L_4708692E: 3922 ebp = POP32_VAL(esp); /* 0x4708692E: pop ebp */ 3923 L_4708692F: 3924 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x4708692F: ret 0x14 */ 3925 L_47086932: 3926 eax = ebp; /* 0x47086932: mov eax, ebp */ 3927 L_47086934: 3928 ebp = POP32_VAL(esp); /* 0x47086934: pop ebp */ 3929 L_47086935: 3930 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x47086935: ret 0x14 */ 3931 _ljump: 3932 switch (_itail_tgt) { 3933 case 0x47086850u: goto L_47086850; 3934 case 0x47086854u: goto L_47086854; 3935 case 0x47086858u: goto L_47086858; 3936 case 0x47086859u: goto L_47086859; 3937 case 0x4708685Bu: goto L_4708685B; 3938 case 0x4708685Fu: goto L_4708685F; 3939 case 0x47086860u: goto L_47086860; 3940 case 0x47086861u: goto L_47086861; 3941 case 0x47086862u: goto L_47086862; 3942 case 0x47086864u: goto L_47086864; 3943 case 0x4708686Bu: goto L_4708686B; 3944 case 0x47086871u: goto L_47086871; 3945 case 0x47086873u: goto L_47086873; 3946 case 0x47086876u: goto L_47086876; 3947 case 0x4708687Cu: goto L_4708687C; 3948 case 0x4708687Du: goto L_4708687D; 3949 case 0x4708687Eu: goto L_4708687E; 3950 case 0x47086884u: goto L_47086884; 3951 case 0x47086885u: goto L_47086885; 3952 case 0x47086887u: goto L_47086887; 3953 case 0x4708688Du: goto L_4708688D; 3954 case 0x4708688Fu: goto L_4708688F; 3955 case 0x47086891u: goto L_47086891; 3956 case 0x47086893u: goto L_47086893; 3957 case 0x47086896u: goto L_47086896; 3958 case 0x47086899u: goto L_47086899; 3959 case 0x4708689Bu: goto L_4708689B; 3960 case 0x4708689Du: goto L_4708689D; 3961 case 0x470868A3u: goto L_470868A3; 3962 case 0x470868AAu: goto L_470868AA; 3963 case 0x470868ACu: goto L_470868AC; 3964 case 0x470868B2u: goto L_470868B2; 3965 case 0x470868B4u: goto L_470868B4; 3966 case 0x470868B6u: goto L_470868B6; 3967 case 0x470868BCu: goto L_470868BC; 3968 case 0x470868BEu: goto L_470868BE; 3969 case 0x470868C0u: goto L_470868C0; 3970 case 0x470868C6u: goto L_470868C6; 3971 case 0x470868C8u: goto L_470868C8; 3972 case 0x470868CAu: goto L_470868CA; 3973 case 0x470868D0u: goto L_470868D0; 3974 case 0x470868D2u: goto L_470868D2; 3975 case 0x470868D4u: goto L_470868D4; 3976 case 0x470868D6u: goto L_470868D6; 3977 case 0x470868D8u: goto L_470868D8; 3978 case 0x470868DAu: goto L_470868DA; 3979 case 0x470868DCu: goto L_470868DC; 3980 case 0x470868DEu: goto L_470868DE; 3981 case 0x470868E3u: goto L_470868E3; 3982 case 0x470868E5u: goto L_470868E5; 3983 case 0x470868E7u: goto L_470868E7; 3984 case 0x470868ECu: goto L_470868EC; 3985 case 0x470868EDu: goto L_470868ED; 3986 case 0x470868EFu: goto L_470868EF; 3987 case 0x470868F4u: goto L_470868F4; 3988 case 0x470868F5u: goto L_470868F5; 3989 case 0x470868F7u: goto L_470868F7; 3990 case 0x470868FCu: goto L_470868FC; 3991 case 0x470868FDu: goto L_470868FD; 3992 case 0x470868FEu: goto L_470868FE; 3993 case 0x47086900u: goto L_47086900; 3994 case 0x47086905u: goto L_47086905; 3995 case 0x4708690Au: goto L_4708690A; 3996 case 0x4708690Cu: goto L_4708690C; 3997 case 0x47086911u: goto L_47086911; 3998 case 0x47086916u: goto L_47086916; 3999 case 0x4708691Bu: goto L_4708691B; 4000 case 0x47086920u: goto L_47086920; 4001 case 0x47086921u: goto L_47086921; 4002 case 0x47086926u: goto L_47086926; 4003 case 0x47086929u: goto L_47086929; 4004 case 0x4708692Au: goto L_4708692A; 4005 case 0x4708692Bu: goto L_4708692B; 4006 case 0x4708692Cu: goto L_4708692C; 4007 case 0x4708692Eu: goto L_4708692E; 4008 case 0x4708692Fu: goto L_4708692F; 4009 case 0x47086932u: goto L_47086932; 4010 case 0x47086934u: goto L_47086934; 4011 case 0x47086935u: goto L_47086935; 4012 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4013 } 4014 RECOMP_REGS_OUT(); 4015 } 4016 4017 void sub_470869A0(void) { 4018 int _fpu_cmp = 0; 4019 uint32_t _cf = 0; 4020 int _df = 1; 4021 uint32_t _flag_k = FK_NONE; 4022 uint32_t _flag_a = 0, _flag_b = 0; 4023 uint32_t _itail_tgt = 0; 4024 RECOMP_REGS_LOCALS 4025 RECOMP_ENTER(0x470869A0u); 4026 4027 L_470869A0: 4028 eax = MEM32(ecx); /* 0x470869A0: mov eax, dword ptr [ecx] */ 4029 PUSH32(esp, 0xFFFFFFFFu); /* 0x470869A2: push -1 */ 4030 PUSH32(esp, eax); /* 0x470869A4: push eax */ 4031 RECOMP_ICALL(MEM32(0x470AC194)); /* 0x470869A5: call dword ptr [0x470ac194] */ 4032 RECOMP_FLAGS_IN(); 4033 /* test eax, eax */ /* 0x470869AB: test eax, eax */ 4034 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4035 _cf = 0; 4036 _flag_k = FK_TEST; 4037 if (TEST_Z(_flag_a, _flag_b)) goto L_470869C5; /* 0x470869AD: je 0x470869c5 */ 4038 L_470869AF: 4039 PUSH32(esp, esi); /* 0x470869AF: push esi */ 4040 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470869B0: call dword ptr [0x470ac3c8] */ 4041 RECOMP_FLAGS_IN(); 4042 esi = eax; /* 0x470869B6: mov esi, eax */ 4043 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470869B8: call dword ptr [0x470ac150] */ 4044 RECOMP_FLAGS_IN(); 4045 MEM32(esi) = eax; /* 0x470869BE: mov dword ptr [esi], eax */ 4046 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4047 eax = eax | 0xFFFFFFFFu; /* 0x470869C0: or eax, 0xffffffff */ 4048 _cf = 0; 4049 _flag_k = FK_TEST; 4050 esi = POP32_VAL(esp); /* 0x470869C3: pop esi */ 4051 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470869C4: ret */ 4052 L_470869C5: 4053 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4054 eax = 0; /* 0x470869C5: xor eax, eax */ 4055 _cf = 0; 4056 _flag_k = FK_TEST; 4057 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470869C7: ret */ 4058 RECOMP_REGS_OUT(); 4059 } 4060 4061 void sub_470869D0(void) { 4062 int _fpu_cmp = 0; 4063 uint32_t _cf = 0; 4064 int _df = 1; 4065 uint32_t _flag_k = FK_NONE; 4066 uint32_t _flag_a = 0, _flag_b = 0; 4067 uint32_t _itail_tgt = 0; 4068 RECOMP_REGS_LOCALS 4069 RECOMP_ENTER(0x470869D0u); 4070 4071 L_470869D0: 4072 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 4073 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4074 esp = esp - 0x20u; /* 0x470869D0: sub esp, 0x20 */ 4075 _flag_k = FK_CMP; 4076 PUSH32(esp, esi); /* 0x470869D3: push esi */ 4077 esi = MEM32(esp + 0x28); /* 0x470869D4: mov esi, dword ptr [esp + 0x28] */ 4078 /* test esi, esi */ /* 0x470869D8: test esi, esi */ 4079 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4080 _cf = 0; 4081 _flag_k = FK_TEST; 4082 PUSH32(esp, edi); /* 0x470869DA: push edi */ 4083 edi = ecx; /* 0x470869DB: mov edi, ecx */ 4084 if (TEST_NZ(_flag_a, _flag_b)) goto L_470869E9; /* 0x470869DD: jne 0x470869e9 */ 4085 L_470869DF: 4086 eax = MEM32(edi); /* 0x470869DF: mov eax, dword ptr [edi] */ 4087 PUSH32(esp, 0xFFFFFFFFu); /* 0x470869E1: push -1 */ 4088 PUSH32(esp, eax); /* 0x470869E3: push eax */ 4089 goto L_47086A86; /* 0x470869E4: jmp 0x47086a86 */ 4090 L_470869E9: 4091 /* cmp MEM32(esi), 0 */ /* 0x470869E9: cmp dword ptr [esi], 0 */ 4092 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(0); 4093 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4094 _flag_k = FK_CMP; 4095 if (CMP_NE(_flag_a, _flag_b)) goto L_470869FC; /* 0x470869EC: jne 0x470869fc */ 4096 L_470869EE: 4097 eax = MEM32(esi + 0x4); /* 0x470869EE: mov eax, dword ptr [esi + 4] */ 4098 /* test eax, eax */ /* 0x470869F1: test eax, eax */ 4099 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4100 _cf = 0; 4101 _flag_k = FK_TEST; 4102 if (TEST_NZ(_flag_a, _flag_b)) goto L_470869FC; /* 0x470869F3: jne 0x470869fc */ 4103 L_470869F5: 4104 PUSH32(esp, 0); /* 0x470869F5: push 0 */ 4105 goto L_47086A83; /* 0x470869F7: jmp 0x47086a83 */ 4106 L_470869FC: 4107 edx = esp + 0x10; /* 0x470869FC: lea edx, [esp + 0x10] */ 4108 PUSH32(esp, edx); /* 0x47086A00: push edx */ 4109 RECOMP_ICALL(MEM32(0x470AC1A8)); /* 0x47086A01: call dword ptr [0x470ac1a8] */ 4110 RECOMP_FLAGS_IN(); 4111 eax = esp + 0x10; /* 0x47086A07: lea eax, [esp + 0x10] */ 4112 PUSH32(esp, eax); /* 0x47086A0B: push eax */ 4113 ecx = esp + 0x24; /* 0x47086A0C: lea ecx, [esp + 0x24] */ 4114 RECOMP_ICALL(0x47053F10u); /* 0x47086A10: call 0x47053f10 */ /* not lifted */ 4115 RECOMP_FLAGS_IN(); 4116 ecx = MEM32(eax); /* 0x47086A15: mov ecx, dword ptr [eax] */ 4117 edx = MEM32(esi); /* 0x47086A17: mov edx, dword ptr [esi] */ 4118 MEM32(esp + 0x18) = ecx; /* 0x47086A19: mov dword ptr [esp + 0x18], ecx */ 4119 eax = MEM32(eax + 0x4); /* 0x47086A1D: mov eax, dword ptr [eax + 4] */ 4120 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 4121 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4122 edx = edx - ecx; /* 0x47086A20: sub edx, ecx */ 4123 _flag_k = FK_CMP; 4124 ecx = MEM32(esi + 0x4); /* 0x47086A22: mov ecx, dword ptr [esi + 4] */ 4125 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4126 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4127 ecx = ecx - eax; /* 0x47086A25: sub ecx, eax */ 4128 _flag_k = FK_CMP; 4129 MEM32(esp + 0xC) = ecx; /* 0x47086A27: mov dword ptr [esp + 0xc], ecx */ 4130 ecx = esp + 0x8; /* 0x47086A2B: lea ecx, [esp + 8] */ 4131 MEM32(esp + 0x1C) = eax; /* 0x47086A2F: mov dword ptr [esp + 0x1c], eax */ 4132 MEM32(esp + 0x8) = edx; /* 0x47086A33: mov dword ptr [esp + 8], edx */ 4133 RECOMP_ICALL(0x470543C0u); /* 0x47086A37: call 0x470543c0 */ /* not lifted */ 4134 RECOMP_FLAGS_IN(); 4135 ecx = esp + 0x8; /* 0x47086A3C: lea ecx, [esp + 8] */ 4136 RECOMP_ICALL(0x470543C0u); /* 0x47086A40: call 0x470543c0 */ /* not lifted */ 4137 RECOMP_FLAGS_IN(); 4138 ecx = MEM32(0x4710E9A8); /* 0x47086A45: mov ecx, dword ptr [0x4710e9a8] */ 4139 eax = MEM32(esp + 0x8); /* 0x47086A4B: mov eax, dword ptr [esp + 8] */ 4140 /* cmp ecx, eax */ /* 0x47086A4F: cmp ecx, eax */ 4141 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4142 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4143 _flag_k = FK_CMP; 4144 if (CMP_G(_flag_a, _flag_b)) goto L_47086A61; /* 0x47086A51: jg 0x47086a61 */ 4145 L_47086A53: 4146 ecx = MEM32(esp + 0xC); /* 0x47086A53: mov ecx, dword ptr [esp + 0xc] */ 4147 if (CMP_NE(_flag_a, _flag_b)) goto L_47086A65; /* 0x47086A57: jne 0x47086a65 */ 4148 L_47086A59: 4149 /* cmp MEM32(0x4710E9AC), ecx */ /* 0x47086A59: cmp dword ptr [0x4710e9ac], ecx */ 4150 _flag_a = (uint32_t)(MEM32(0x4710E9AC)); _flag_b = (uint32_t)(ecx); 4151 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4152 _flag_k = FK_CMP; 4153 if (CMP_LE(_flag_a, _flag_b)) goto L_47086A65; /* 0x47086A5F: jle 0x47086a65 */ 4154 L_47086A61: 4155 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4156 eax = 0; /* 0x47086A61: xor eax, eax */ 4157 _cf = 0; 4158 _flag_k = FK_TEST; 4159 goto L_47086A82; /* 0x47086A63: jmp 0x47086a82 */ 4160 L_47086A65: 4161 eax = eax + eax * 4; /* 0x47086A65: lea eax, [eax + eax*4] */ 4162 eax = eax + eax * 4; /* 0x47086A68: lea eax, [eax + eax*4] */ 4163 esi = eax + eax * 4; /* 0x47086A6B: lea esi, [eax + eax*4] */ 4164 eax = 0x10624DD3u; /* 0x47086A6E: mov eax, 0x10624dd3 */ 4165 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x47086A73: imul ecx */ 4166 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 4167 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 4168 if (6u) _cf = (((edx) >> 5) & 1u); /* 0x47086A75: sar edx, 6 */ 4169 if (6u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 6u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4170 edx = (uint32_t)((int32_t)edx >> 6u); 4171 eax = edx; /* 0x47086A78: mov eax, edx */ 4172 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x47086A7A: shr eax, 0x1f */ 4173 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4174 eax = eax >> 31u; /* 0x47086A7A: shr eax, 0x1f */ 4175 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4176 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4177 edx = edx + eax; /* 0x47086A7D: add edx, eax */ 4178 _flag_k = FK_ADD; 4179 eax = edx + esi * 8; /* 0x47086A7F: lea eax, [edx + esi*8] */ 4180 L_47086A82: 4181 PUSH32(esp, eax); /* 0x47086A82: push eax */ 4182 L_47086A83: 4183 ecx = MEM32(edi); /* 0x47086A83: mov ecx, dword ptr [edi] */ 4184 PUSH32(esp, ecx); /* 0x47086A85: push ecx */ 4185 L_47086A86: 4186 RECOMP_ICALL(MEM32(0x470AC194)); /* 0x47086A86: call dword ptr [0x470ac194] */ 4187 RECOMP_FLAGS_IN(); 4188 /* test eax, eax */ /* 0x47086A8C: test eax, eax */ 4189 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4190 _cf = 0; 4191 _flag_k = FK_TEST; 4192 if (TEST_Z(_flag_a, _flag_b)) goto L_47086AC9; /* 0x47086A8E: je 0x47086ac9 */ 4193 L_47086A90: 4194 /* cmp eax, 0x102u */ /* 0x47086A90: cmp eax, 0x102 */ 4195 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x102u); 4196 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4197 _flag_k = FK_CMP; 4198 if (CMP_EQ(_flag_a, _flag_b)) goto L_47086AB2; /* 0x47086A95: je 0x47086ab2 */ 4199 L_47086A97: 4200 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47086A97: call dword ptr [0x470ac3c8] */ 4201 RECOMP_FLAGS_IN(); 4202 esi = eax; /* 0x47086A9D: mov esi, eax */ 4203 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47086A9F: call dword ptr [0x470ac150] */ 4204 RECOMP_FLAGS_IN(); 4205 MEM32(esi) = eax; /* 0x47086AA5: mov dword ptr [esi], eax */ 4206 edi = POP32_VAL(esp); /* 0x47086AA7: pop edi */ 4207 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4208 eax = eax | 0xFFFFFFFFu; /* 0x47086AA8: or eax, 0xffffffff */ 4209 _cf = 0; 4210 _flag_k = FK_TEST; 4211 esi = POP32_VAL(esp); /* 0x47086AAB: pop esi */ 4212 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 4213 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4214 esp = esp + 0x20u; /* 0x47086AAC: add esp, 0x20 */ 4215 _flag_k = FK_ADD; 4216 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47086AAF: ret 4 */ 4217 L_47086AB2: 4218 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47086AB2: call dword ptr [0x470ac3c8] */ 4219 RECOMP_FLAGS_IN(); 4220 edi = POP32_VAL(esp); /* 0x47086AB8: pop edi */ 4221 MEM32(eax) = 0x79u; /* 0x47086AB9: mov dword ptr [eax], 0x79 */ 4222 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4223 eax = eax | 0xFFFFFFFFu; /* 0x47086ABF: or eax, 0xffffffff */ 4224 _cf = 0; 4225 _flag_k = FK_TEST; 4226 esi = POP32_VAL(esp); /* 0x47086AC2: pop esi */ 4227 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 4228 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4229 esp = esp + 0x20u; /* 0x47086AC3: add esp, 0x20 */ 4230 _flag_k = FK_ADD; 4231 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47086AC6: ret 4 */ 4232 L_47086AC9: 4233 edi = POP32_VAL(esp); /* 0x47086AC9: pop edi */ 4234 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4235 eax = 0; /* 0x47086ACA: xor eax, eax */ 4236 _cf = 0; 4237 _flag_k = FK_TEST; 4238 esi = POP32_VAL(esp); /* 0x47086ACC: pop esi */ 4239 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 4240 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4241 esp = esp + 0x20u; /* 0x47086ACD: add esp, 0x20 */ 4242 _flag_k = FK_ADD; 4243 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47086AD0: ret 4 */ 4244 RECOMP_REGS_OUT(); 4245 } 4246 4247 void sub_47086A83(void) { 4248 int _fpu_cmp = 0; 4249 uint32_t _cf = 0; 4250 int _df = 1; 4251 uint32_t _flag_k = FK_NONE; 4252 uint32_t _flag_a = 0, _flag_b = 0; 4253 uint32_t _itail_tgt = 0; 4254 RECOMP_REGS_LOCALS 4255 RECOMP_ENTER(0x47086A83u); 4256 4257 L_47086A83: 4258 ecx = MEM32(edi); /* 0x47086A83: mov ecx, dword ptr [edi] */ 4259 PUSH32(esp, ecx); /* 0x47086A85: push ecx */ 4260 RECOMP_ICALL(MEM32(0x470AC194)); /* 0x47086A86: call dword ptr [0x470ac194] */ 4261 RECOMP_FLAGS_IN(); 4262 /* test eax, eax */ /* 0x47086A8C: test eax, eax */ 4263 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4264 _cf = 0; 4265 _flag_k = FK_TEST; 4266 if (TEST_Z(_flag_a, _flag_b)) goto L_47086AC9; /* 0x47086A8E: je 0x47086ac9 */ 4267 L_47086A90: 4268 /* cmp eax, 0x102u */ /* 0x47086A90: cmp eax, 0x102 */ 4269 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x102u); 4270 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4271 _flag_k = FK_CMP; 4272 if (CMP_EQ(_flag_a, _flag_b)) goto L_47086AB2; /* 0x47086A95: je 0x47086ab2 */ 4273 L_47086A97: 4274 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47086A97: call dword ptr [0x470ac3c8] */ 4275 RECOMP_FLAGS_IN(); 4276 esi = eax; /* 0x47086A9D: mov esi, eax */ 4277 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47086A9F: call dword ptr [0x470ac150] */ 4278 RECOMP_FLAGS_IN(); 4279 MEM32(esi) = eax; /* 0x47086AA5: mov dword ptr [esi], eax */ 4280 edi = POP32_VAL(esp); /* 0x47086AA7: pop edi */ 4281 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4282 eax = eax | 0xFFFFFFFFu; /* 0x47086AA8: or eax, 0xffffffff */ 4283 _cf = 0; 4284 _flag_k = FK_TEST; 4285 esi = POP32_VAL(esp); /* 0x47086AAB: pop esi */ 4286 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 4287 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4288 esp = esp + 0x20u; /* 0x47086AAC: add esp, 0x20 */ 4289 _flag_k = FK_ADD; 4290 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47086AAF: ret 4 */ 4291 L_47086AB2: 4292 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47086AB2: call dword ptr [0x470ac3c8] */ 4293 RECOMP_FLAGS_IN(); 4294 edi = POP32_VAL(esp); /* 0x47086AB8: pop edi */ 4295 MEM32(eax) = 0x79u; /* 0x47086AB9: mov dword ptr [eax], 0x79 */ 4296 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4297 eax = eax | 0xFFFFFFFFu; /* 0x47086ABF: or eax, 0xffffffff */ 4298 _cf = 0; 4299 _flag_k = FK_TEST; 4300 esi = POP32_VAL(esp); /* 0x47086AC2: pop esi */ 4301 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 4302 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4303 esp = esp + 0x20u; /* 0x47086AC3: add esp, 0x20 */ 4304 _flag_k = FK_ADD; 4305 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47086AC6: ret 4 */ 4306 L_47086AC9: 4307 edi = POP32_VAL(esp); /* 0x47086AC9: pop edi */ 4308 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4309 eax = 0; /* 0x47086ACA: xor eax, eax */ 4310 _cf = 0; 4311 _flag_k = FK_TEST; 4312 esi = POP32_VAL(esp); /* 0x47086ACC: pop esi */ 4313 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 4314 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4315 esp = esp + 0x20u; /* 0x47086ACD: add esp, 0x20 */ 4316 _flag_k = FK_ADD; 4317 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47086AD0: ret 4 */ 4318 RECOMP_REGS_OUT(); 4319 } 4320 4321 void sub_47086A86(void) { 4322 int _fpu_cmp = 0; 4323 uint32_t _cf = 0; 4324 int _df = 1; 4325 uint32_t _flag_k = FK_NONE; 4326 uint32_t _flag_a = 0, _flag_b = 0; 4327 uint32_t _itail_tgt = 0; 4328 RECOMP_REGS_LOCALS 4329 RECOMP_ENTER(0x47086A86u); 4330 4331 L_47086A86: 4332 RECOMP_ICALL(MEM32(0x470AC194)); /* 0x47086A86: call dword ptr [0x470ac194] */ 4333 RECOMP_FLAGS_IN(); 4334 /* test eax, eax */ /* 0x47086A8C: test eax, eax */ 4335 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4336 _cf = 0; 4337 _flag_k = FK_TEST; 4338 if (TEST_Z(_flag_a, _flag_b)) goto L_47086AC9; /* 0x47086A8E: je 0x47086ac9 */ 4339 L_47086A90: 4340 /* cmp eax, 0x102u */ /* 0x47086A90: cmp eax, 0x102 */ 4341 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x102u); 4342 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4343 _flag_k = FK_CMP; 4344 if (CMP_EQ(_flag_a, _flag_b)) goto L_47086AB2; /* 0x47086A95: je 0x47086ab2 */ 4345 L_47086A97: 4346 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47086A97: call dword ptr [0x470ac3c8] */ 4347 RECOMP_FLAGS_IN(); 4348 esi = eax; /* 0x47086A9D: mov esi, eax */ 4349 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47086A9F: call dword ptr [0x470ac150] */ 4350 RECOMP_FLAGS_IN(); 4351 MEM32(esi) = eax; /* 0x47086AA5: mov dword ptr [esi], eax */ 4352 edi = POP32_VAL(esp); /* 0x47086AA7: pop edi */ 4353 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4354 eax = eax | 0xFFFFFFFFu; /* 0x47086AA8: or eax, 0xffffffff */ 4355 _cf = 0; 4356 _flag_k = FK_TEST; 4357 esi = POP32_VAL(esp); /* 0x47086AAB: pop esi */ 4358 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 4359 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4360 esp = esp + 0x20u; /* 0x47086AAC: add esp, 0x20 */ 4361 _flag_k = FK_ADD; 4362 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47086AAF: ret 4 */ 4363 L_47086AB2: 4364 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47086AB2: call dword ptr [0x470ac3c8] */ 4365 RECOMP_FLAGS_IN(); 4366 edi = POP32_VAL(esp); /* 0x47086AB8: pop edi */ 4367 MEM32(eax) = 0x79u; /* 0x47086AB9: mov dword ptr [eax], 0x79 */ 4368 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4369 eax = eax | 0xFFFFFFFFu; /* 0x47086ABF: or eax, 0xffffffff */ 4370 _cf = 0; 4371 _flag_k = FK_TEST; 4372 esi = POP32_VAL(esp); /* 0x47086AC2: pop esi */ 4373 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 4374 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4375 esp = esp + 0x20u; /* 0x47086AC3: add esp, 0x20 */ 4376 _flag_k = FK_ADD; 4377 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47086AC6: ret 4 */ 4378 L_47086AC9: 4379 edi = POP32_VAL(esp); /* 0x47086AC9: pop edi */ 4380 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4381 eax = 0; /* 0x47086ACA: xor eax, eax */ 4382 _cf = 0; 4383 _flag_k = FK_TEST; 4384 esi = POP32_VAL(esp); /* 0x47086ACC: pop esi */ 4385 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 4386 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4387 esp = esp + 0x20u; /* 0x47086ACD: add esp, 0x20 */ 4388 _flag_k = FK_ADD; 4389 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47086AD0: ret 4 */ 4390 RECOMP_REGS_OUT(); 4391 } 4392 4393 void sub_47086AE0(void) { 4394 int _fpu_cmp = 0; 4395 uint32_t _cf = 0; 4396 int _df = 1; 4397 uint32_t _flag_k = FK_NONE; 4398 uint32_t _flag_a = 0, _flag_b = 0; 4399 uint32_t _itail_tgt = 0; 4400 RECOMP_REGS_LOCALS 4401 RECOMP_ENTER(0x47086AE0u); 4402 4403 L_47086AE0: 4404 eax = MEM32(ecx); /* 0x47086AE0: mov eax, dword ptr [ecx] */ 4405 PUSH32(esp, esi); /* 0x47086AE2: push esi */ 4406 PUSH32(esp, eax); /* 0x47086AE3: push eax */ 4407 RECOMP_ICALL(MEM32(0x470AC160)); /* 0x47086AE4: call dword ptr [0x470ac160] */ 4408 RECOMP_FLAGS_IN(); 4409 esi = eax; /* 0x47086AEA: mov esi, eax */ 4410 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi); 4411 _cf = (esi) != 0; 4412 esi = (uint32_t)(-(int32_t)esi); /* 0x47086AEC: neg esi */ 4413 _flag_k = FK_CMP; 4414 { uint32_t _sa = esi, _sb = esi, _sc = _cf; /* 0x47086AEE: sbb esi, esi */ 4415 esi = _sc ? 0xFFFFFFFFu : 0; 4416 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 4417 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 4418 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi); 4419 _cf = (esi) != 0; 4420 esi = (uint32_t)(-(int32_t)esi); /* 0x47086AF0: neg esi */ 4421 _flag_k = FK_CMP; 4422 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 4423 esi = esi - 1; /* 0x47086AF2: dec esi */ 4424 _flag_k = FK_DEC; 4425 /* cmp esi, 0xFFFFFFFFu */ /* 0x47086AF3: cmp esi, -1 */ 4426 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu); 4427 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4428 _flag_k = FK_CMP; 4429 if (CMP_NE(_flag_a, _flag_b)) goto L_47086B0E; /* 0x47086AF6: jne 0x47086b0e */ 4430 L_47086AF8: 4431 PUSH32(esp, edi); /* 0x47086AF8: push edi */ 4432 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47086AF9: call dword ptr [0x470ac3c8] */ 4433 RECOMP_FLAGS_IN(); 4434 edi = eax; /* 0x47086AFF: mov edi, eax */ 4435 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47086B01: call dword ptr [0x470ac150] */ 4436 RECOMP_FLAGS_IN(); 4437 MEM32(edi) = eax; /* 0x47086B07: mov dword ptr [edi], eax */ 4438 edi = POP32_VAL(esp); /* 0x47086B09: pop edi */ 4439 eax = esi; /* 0x47086B0A: mov eax, esi */ 4440 esi = POP32_VAL(esp); /* 0x47086B0C: pop esi */ 4441 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47086B0D: ret */ 4442 L_47086B0E: 4443 eax = esi; /* 0x47086B0E: mov eax, esi */ 4444 esi = POP32_VAL(esp); /* 0x47086B10: pop esi */ 4445 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47086B11: ret */ 4446 RECOMP_REGS_OUT(); 4447 } 4448 4449 void sub_47086B20(void) { 4450 int _fpu_cmp = 0; 4451 uint32_t _cf = 0; 4452 int _df = 1; 4453 uint32_t _flag_k = FK_NONE; 4454 uint32_t _flag_a = 0, _flag_b = 0; 4455 uint32_t _itail_tgt = 0; 4456 RECOMP_REGS_LOCALS 4457 RECOMP_ENTER(0x47086B20u); 4458 4459 L_47086B20: 4460 eax = MEM32(ecx); /* 0x47086B20: mov eax, dword ptr [ecx] */ 4461 PUSH32(esp, esi); /* 0x47086B22: push esi */ 4462 PUSH32(esp, eax); /* 0x47086B23: push eax */ 4463 RECOMP_ICALL(MEM32(0x470AC15C)); /* 0x47086B24: call dword ptr [0x470ac15c] */ 4464 RECOMP_FLAGS_IN(); 4465 esi = eax; /* 0x47086B2A: mov esi, eax */ 4466 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi); 4467 _cf = (esi) != 0; 4468 esi = (uint32_t)(-(int32_t)esi); /* 0x47086B2C: neg esi */ 4469 _flag_k = FK_CMP; 4470 { uint32_t _sa = esi, _sb = esi, _sc = _cf; /* 0x47086B2E: sbb esi, esi */ 4471 esi = _sc ? 0xFFFFFFFFu : 0; 4472 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 4473 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 4474 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi); 4475 _cf = (esi) != 0; 4476 esi = (uint32_t)(-(int32_t)esi); /* 0x47086B30: neg esi */ 4477 _flag_k = FK_CMP; 4478 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 4479 esi = esi - 1; /* 0x47086B32: dec esi */ 4480 _flag_k = FK_DEC; 4481 /* cmp esi, 0xFFFFFFFFu */ /* 0x47086B33: cmp esi, -1 */ 4482 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu); 4483 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4484 _flag_k = FK_CMP; 4485 if (CMP_NE(_flag_a, _flag_b)) goto L_47086B4E; /* 0x47086B36: jne 0x47086b4e */ 4486 L_47086B38: 4487 PUSH32(esp, edi); /* 0x47086B38: push edi */ 4488 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47086B39: call dword ptr [0x470ac3c8] */ 4489 RECOMP_FLAGS_IN(); 4490 edi = eax; /* 0x47086B3F: mov edi, eax */ 4491 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47086B41: call dword ptr [0x470ac150] */ 4492 RECOMP_FLAGS_IN(); 4493 MEM32(edi) = eax; /* 0x47086B47: mov dword ptr [edi], eax */ 4494 edi = POP32_VAL(esp); /* 0x47086B49: pop edi */ 4495 eax = esi; /* 0x47086B4A: mov eax, esi */ 4496 esi = POP32_VAL(esp); /* 0x47086B4C: pop esi */ 4497 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47086B4D: ret */ 4498 L_47086B4E: 4499 eax = esi; /* 0x47086B4E: mov eax, esi */ 4500 esi = POP32_VAL(esp); /* 0x47086B50: pop esi */ 4501 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47086B51: ret */ 4502 RECOMP_REGS_OUT(); 4503 } 4504 4505 void sub_47086B60(void) { 4506 int _fpu_cmp = 0; 4507 uint32_t _cf = 0; 4508 int _df = 1; 4509 uint32_t _flag_k = FK_NONE; 4510 uint32_t _flag_a = 0, _flag_b = 0; 4511 uint32_t _itail_tgt = 0; 4512 RECOMP_REGS_LOCALS 4513 RECOMP_ENTER(0x47086B60u); 4514 4515 L_47086B60: 4516 eax = MEM32(ecx); /* 0x47086B60: mov eax, dword ptr [ecx] */ 4517 PUSH32(esp, esi); /* 0x47086B62: push esi */ 4518 PUSH32(esp, eax); /* 0x47086B63: push eax */ 4519 RECOMP_ICALL(MEM32(0x470AC158)); /* 0x47086B64: call dword ptr [0x470ac158] */ 4520 RECOMP_FLAGS_IN(); 4521 esi = eax; /* 0x47086B6A: mov esi, eax */ 4522 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi); 4523 _cf = (esi) != 0; 4524 esi = (uint32_t)(-(int32_t)esi); /* 0x47086B6C: neg esi */ 4525 _flag_k = FK_CMP; 4526 { uint32_t _sa = esi, _sb = esi, _sc = _cf; /* 0x47086B6E: sbb esi, esi */ 4527 esi = _sc ? 0xFFFFFFFFu : 0; 4528 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 4529 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 4530 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi); 4531 _cf = (esi) != 0; 4532 esi = (uint32_t)(-(int32_t)esi); /* 0x47086B70: neg esi */ 4533 _flag_k = FK_CMP; 4534 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 4535 esi = esi - 1; /* 0x47086B72: dec esi */ 4536 _flag_k = FK_DEC; 4537 /* cmp esi, 0xFFFFFFFFu */ /* 0x47086B73: cmp esi, -1 */ 4538 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu); 4539 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4540 _flag_k = FK_CMP; 4541 if (CMP_NE(_flag_a, _flag_b)) goto L_47086B8E; /* 0x47086B76: jne 0x47086b8e */ 4542 L_47086B78: 4543 PUSH32(esp, edi); /* 0x47086B78: push edi */ 4544 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47086B79: call dword ptr [0x470ac3c8] */ 4545 RECOMP_FLAGS_IN(); 4546 edi = eax; /* 0x47086B7F: mov edi, eax */ 4547 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47086B81: call dword ptr [0x470ac150] */ 4548 RECOMP_FLAGS_IN(); 4549 MEM32(edi) = eax; /* 0x47086B87: mov dword ptr [edi], eax */ 4550 edi = POP32_VAL(esp); /* 0x47086B89: pop edi */ 4551 eax = esi; /* 0x47086B8A: mov eax, esi */ 4552 esi = POP32_VAL(esp); /* 0x47086B8C: pop esi */ 4553 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47086B8D: ret */ 4554 L_47086B8E: 4555 eax = esi; /* 0x47086B8E: mov eax, esi */ 4556 esi = POP32_VAL(esp); /* 0x47086B90: pop esi */ 4557 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47086B91: ret */ 4558 RECOMP_REGS_OUT(); 4559 } 4560 4561 void sub_47086BA0(void) { 4562 int _fpu_cmp = 0; 4563 uint32_t _cf = 0; 4564 int _df = 1; 4565 uint32_t _flag_k = FK_NONE; 4566 uint32_t _flag_a = 0, _flag_b = 0; 4567 uint32_t _itail_tgt = 0; 4568 RECOMP_REGS_LOCALS 4569 RECOMP_ENTER(0x47086BA0u); 4570 4571 L_47086BA0: 4572 PUSH32(esp, ebx); /* 0x47086BA0: push ebx */ 4573 PUSH32(esp, ebp); /* 0x47086BA1: push ebp */ 4574 ebp = MEM32(0x470AC150); /* 0x47086BA2: mov ebp, dword ptr [0x470ac150] */ 4575 PUSH32(esp, esi); /* 0x47086BA8: push esi */ 4576 PUSH32(esp, edi); /* 0x47086BA9: push edi */ 4577 ebx = ecx; /* 0x47086BAA: mov ebx, ecx */ 4578 RECOMP_ICALL(ebp); /* 0x47086BAC: call ebp */ 4579 RECOMP_FLAGS_IN(); 4580 edi = eax; /* 0x47086BAE: mov edi, eax */ 4581 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47086BB0: call dword ptr [0x470ac3c8] */ 4582 RECOMP_FLAGS_IN(); 4583 eax = MEM32(eax); /* 0x47086BB6: mov eax, dword ptr [eax] */ 4584 /* test eax, eax */ /* 0x47086BB8: test eax, eax */ 4585 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4586 _cf = 0; 4587 _flag_k = FK_TEST; 4588 if (TEST_Z(_flag_a, _flag_b)) goto L_47086BBE; /* 0x47086BBA: je 0x47086bbe */ 4589 L_47086BBC: 4590 edi = eax; /* 0x47086BBC: mov edi, eax */ 4591 L_47086BBE: 4592 RECOMP_ICALL(0x47039020u); /* 0x47086BBE: call 0x47039020 */ /* not lifted */ 4593 RECOMP_FLAGS_IN(); 4594 esi = eax; /* 0x47086BC3: mov esi, eax */ 4595 ecx = esi; /* 0x47086BC5: mov ecx, esi */ 4596 RECOMP_ICALL(0x4703B210u); /* 0x47086BC7: call 0x4703b210 */ /* not lifted */ 4597 RECOMP_FLAGS_IN(); 4598 PUSH32(esp, eax); /* 0x47086BCC: push eax */ 4599 ecx = esi; /* 0x47086BCD: mov ecx, esi */ 4600 RECOMP_ICALL(0x4703B240u); /* 0x47086BCF: call 0x4703b240 */ /* not lifted */ 4601 RECOMP_FLAGS_IN(); 4602 PUSH32(esp, eax); /* 0x47086BD4: push eax */ 4603 ecx = esi; /* 0x47086BD5: mov ecx, esi */ 4604 RECOMP_ICALL(0x4703B080u); /* 0x47086BD7: call 0x4703b080 */ /* not lifted */ 4605 RECOMP_FLAGS_IN(); 4606 PUSH32(esp, eax); /* 0x47086BDC: push eax */ 4607 PUSH32(esp, edi); /* 0x47086BDD: push edi */ 4608 PUSH32(esp, 0); /* 0x47086BDE: push 0 */ 4609 PUSH32(esp, 0x21Au); /* 0x47086BE0: push 0x21a */ 4610 PUSH32(esp, 0x4710C610u); /* 0x47086BE5: push 0x4710c610 */ 4611 ecx = esi; /* 0x47086BEA: mov ecx, esi */ 4612 RECOMP_ICALL(0x4703A340u); /* 0x47086BEC: call 0x4703a340 */ /* not lifted */ 4613 RECOMP_FLAGS_IN(); 4614 PUSH32(esp, ebx); /* 0x47086BF1: push ebx */ 4615 PUSH32(esp, 0x471052CCu); /* 0x47086BF2: push 0x471052cc */ 4616 PUSH32(esp, 4); /* 0x47086BF7: push 4 */ 4617 PUSH32(esp, esi); /* 0x47086BF9: push esi */ 4618 RECOMP_ICALL(0x47039830u); /* 0x47086BFA: call 0x47039830 */ /* not lifted */ 4619 RECOMP_FLAGS_IN(); 4620 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4621 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4622 esp = esp + 0x10u; /* 0x47086BFF: add esp, 0x10 */ 4623 _flag_k = FK_ADD; 4624 RECOMP_ICALL(ebp); /* 0x47086C02: call ebp */ 4625 RECOMP_FLAGS_IN(); 4626 esi = eax; /* 0x47086C04: mov esi, eax */ 4627 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47086C06: call dword ptr [0x470ac3c8] */ 4628 RECOMP_FLAGS_IN(); 4629 eax = MEM32(eax); /* 0x47086C0C: mov eax, dword ptr [eax] */ 4630 /* test eax, eax */ /* 0x47086C0E: test eax, eax */ 4631 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4632 _cf = 0; 4633 _flag_k = FK_TEST; 4634 edi = esi; /* 0x47086C10: mov edi, esi */ 4635 if (TEST_Z(_flag_a, _flag_b)) goto L_47086C16; /* 0x47086C12: je 0x47086c16 */ 4636 L_47086C14: 4637 edi = eax; /* 0x47086C14: mov edi, eax */ 4638 L_47086C16: 4639 RECOMP_ICALL(0x47039020u); /* 0x47086C16: call 0x47039020 */ /* not lifted */ 4640 RECOMP_FLAGS_IN(); 4641 esi = eax; /* 0x47086C1B: mov esi, eax */ 4642 ecx = esi; /* 0x47086C1D: mov ecx, esi */ 4643 RECOMP_ICALL(0x4703B210u); /* 0x47086C1F: call 0x4703b210 */ /* not lifted */ 4644 RECOMP_FLAGS_IN(); 4645 PUSH32(esp, eax); /* 0x47086C24: push eax */ 4646 ecx = esi; /* 0x47086C25: mov ecx, esi */ 4647 RECOMP_ICALL(0x4703B240u); /* 0x47086C27: call 0x4703b240 */ /* not lifted */ 4648 RECOMP_FLAGS_IN(); 4649 PUSH32(esp, eax); /* 0x47086C2C: push eax */ 4650 ecx = esi; /* 0x47086C2D: mov ecx, esi */ 4651 RECOMP_ICALL(0x4703B080u); /* 0x47086C2F: call 0x4703b080 */ /* not lifted */ 4652 RECOMP_FLAGS_IN(); 4653 PUSH32(esp, eax); /* 0x47086C34: push eax */ 4654 PUSH32(esp, edi); /* 0x47086C35: push edi */ 4655 PUSH32(esp, 0); /* 0x47086C36: push 0 */ 4656 PUSH32(esp, 0x21Bu); /* 0x47086C38: push 0x21b */ 4657 PUSH32(esp, 0x4710C610u); /* 0x47086C3D: push 0x4710c610 */ 4658 ecx = esi; /* 0x47086C42: mov ecx, esi */ 4659 RECOMP_ICALL(0x4703A340u); /* 0x47086C44: call 0x4703a340 */ /* not lifted */ 4660 RECOMP_FLAGS_IN(); 4661 PUSH32(esp, 0x4710529Cu); /* 0x47086C49: push 0x4710529c */ 4662 PUSH32(esp, 4); /* 0x47086C4E: push 4 */ 4663 PUSH32(esp, esi); /* 0x47086C50: push esi */ 4664 RECOMP_ICALL(0x47039830u); /* 0x47086C51: call 0x47039830 */ /* not lifted */ 4665 RECOMP_FLAGS_IN(); 4666 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4667 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4668 esp = esp + 0xCu; /* 0x47086C56: add esp, 0xc */ 4669 _flag_k = FK_ADD; 4670 edi = POP32_VAL(esp); /* 0x47086C59: pop edi */ 4671 esi = POP32_VAL(esp); /* 0x47086C5A: pop esi */ 4672 ebp = POP32_VAL(esp); /* 0x47086C5B: pop ebp */ 4673 ebx = POP32_VAL(esp); /* 0x47086C5C: pop ebx */ 4674 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47086C5D: ret */ 4675 RECOMP_REGS_OUT(); 4676 } 4677 4678 void sub_47086C60(void) { 4679 int _fpu_cmp = 0; 4680 uint32_t _cf = 0; 4681 int _df = 1; 4682 uint32_t _flag_k = FK_NONE; 4683 uint32_t _flag_a = 0, _flag_b = 0; 4684 uint32_t _itail_tgt = 0; 4685 RECOMP_REGS_LOCALS 4686 RECOMP_ENTER(0x47086C60u); 4687 4688 L_47086C60: 4689 eax = MEM32(esp + 0xC); /* 0x47086C60: mov eax, dword ptr [esp + 0xc] */ 4690 L_47086C64: 4691 PUSH32(esp, ebp); /* 0x47086C64: push ebp */ 4692 L_47086C65: 4693 ebp = ecx; /* 0x47086C65: mov ebp, ecx */ 4694 L_47086C67: 4695 ecx = MEM32(esp + 0x8); /* 0x47086C67: mov ecx, dword ptr [esp + 8] */ 4696 L_47086C6B: 4697 PUSH32(esp, eax); /* 0x47086C6B: push eax */ 4698 L_47086C6C: 4699 PUSH32(esp, ecx); /* 0x47086C6C: push ecx */ 4700 L_47086C6D: 4701 PUSH32(esp, 1); /* 0x47086C6D: push 1 */ 4702 L_47086C6F: 4703 PUSH32(esp, 0); /* 0x47086C6F: push 0 */ 4704 L_47086C71: 4705 MEM32(ebp + 0x4) = 0; /* 0x47086C71: mov dword ptr [ebp + 4], 0 */ 4706 L_47086C78: 4707 RECOMP_ICALL(MEM32(0x470AC164)); /* 0x47086C78: call dword ptr [0x470ac164] */ 4708 RECOMP_FLAGS_IN(); 4709 L_47086C7E: 4710 /* test eax, eax */ /* 0x47086C7E: test eax, eax */ 4711 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4712 _cf = 0; 4713 _flag_k = FK_TEST; 4714 L_47086C80: 4715 MEM32(ebp) = eax; /* 0x47086C80: mov dword ptr [ebp], eax */ 4716 L_47086C83: 4717 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47086D3F; /* 0x47086C83: jne 0x47086d3f */ 4718 L_47086C89: 4719 PUSH32(esp, ebx); /* 0x47086C89: push ebx */ 4720 L_47086C8A: 4721 PUSH32(esp, esi); /* 0x47086C8A: push esi */ 4722 L_47086C8B: 4723 esi = MEM32(0x470AC3C8); /* 0x47086C8B: mov esi, dword ptr [0x470ac3c8] */ 4724 L_47086C91: 4725 PUSH32(esp, edi); /* 0x47086C91: push edi */ 4726 L_47086C92: 4727 RECOMP_ICALL(esi); /* 0x47086C92: call esi */ 4728 RECOMP_FLAGS_IN(); 4729 L_47086C94: 4730 ebx = MEM32(0x470AC150); /* 0x47086C94: mov ebx, dword ptr [0x470ac150] */ 4731 L_47086C9A: 4732 edi = eax; /* 0x47086C9A: mov edi, eax */ 4733 L_47086C9C: 4734 RECOMP_ICALL(ebx); /* 0x47086C9C: call ebx */ 4735 RECOMP_FLAGS_IN(); 4736 L_47086C9E: 4737 MEM32(edi) = eax; /* 0x47086C9E: mov dword ptr [edi], eax */ 4738 L_47086CA0: 4739 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu); 4740 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4741 eax = eax + 0xFFFFFFFDu; /* 0x47086CA0: add eax, -3 */ 4742 _flag_k = FK_ADD; 4743 L_47086CA3: 4744 /* cmp eax, 0x4Du */ /* 0x47086CA3: cmp eax, 0x4d */ 4745 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Du); 4746 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4747 _flag_k = FK_CMP; 4748 L_47086CA6: 4749 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_47086CDD; /* 0x47086CA6: ja 0x47086cdd */ 4750 L_47086CA8: 4751 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4752 edx = 0; /* 0x47086CA8: xor edx, edx */ 4753 _cf = 0; 4754 _flag_k = FK_TEST; 4755 L_47086CAA: 4756 SET_LO8(edx, MEM8(eax + 0x47086D5C)); /* 0x47086CAA: mov dl, byte ptr [eax + 0x47086d5c] */ 4757 L_47086CB0: 4758 { _itail_tgt = (uint32_t)(MEM32(edx * 4 + 0x47086D48)); goto _ljump; } 4759 L_47086CB7: 4760 RECOMP_ICALL(esi); /* 0x47086CB7: call esi */ 4761 RECOMP_FLAGS_IN(); 4762 L_47086CB9: 4763 MEM32(eax) = 0xCu; /* 0x47086CB9: mov dword ptr [eax], 0xc */ 4764 L_47086CBF: 4765 goto L_47086CDD; /* 0x47086CBF: jmp 0x47086cdd */ 4766 L_47086CC1: 4767 RECOMP_ICALL(esi); /* 0x47086CC1: call esi */ 4768 RECOMP_FLAGS_IN(); 4769 L_47086CC3: 4770 MEM32(eax) = 0x11u; /* 0x47086CC3: mov dword ptr [eax], 0x11 */ 4771 L_47086CC9: 4772 goto L_47086CDD; /* 0x47086CC9: jmp 0x47086cdd */ 4773 L_47086CCB: 4774 RECOMP_ICALL(esi); /* 0x47086CCB: call esi */ 4775 RECOMP_FLAGS_IN(); 4776 L_47086CCD: 4777 MEM32(eax) = 0xDu; /* 0x47086CCD: mov dword ptr [eax], 0xd */ 4778 L_47086CD3: 4779 goto L_47086CDD; /* 0x47086CD3: jmp 0x47086cdd */ 4780 L_47086CD5: 4781 RECOMP_ICALL(esi); /* 0x47086CD5: call esi */ 4782 RECOMP_FLAGS_IN(); 4783 L_47086CD7: 4784 MEM32(eax) = 2; /* 0x47086CD7: mov dword ptr [eax], 2 */ 4785 L_47086CDD: 4786 RECOMP_ICALL(ebx); /* 0x47086CDD: call ebx */ 4787 RECOMP_FLAGS_IN(); 4788 L_47086CDF: 4789 edi = eax; /* 0x47086CDF: mov edi, eax */ 4790 L_47086CE1: 4791 RECOMP_ICALL(esi); /* 0x47086CE1: call esi */ 4792 RECOMP_FLAGS_IN(); 4793 L_47086CE3: 4794 eax = MEM32(eax); /* 0x47086CE3: mov eax, dword ptr [eax] */ 4795 L_47086CE5: 4796 /* test eax, eax */ /* 0x47086CE5: test eax, eax */ 4797 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4798 _cf = 0; 4799 _flag_k = FK_TEST; 4800 L_47086CE7: 4801 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47086CEB; /* 0x47086CE7: je 0x47086ceb */ 4802 L_47086CE9: 4803 edi = eax; /* 0x47086CE9: mov edi, eax */ 4804 L_47086CEB: 4805 RECOMP_ICALL(0x47039020u); /* 0x47086CEB: call 0x47039020 */ /* not lifted */ 4806 RECOMP_FLAGS_IN(); 4807 L_47086CF0: 4808 esi = eax; /* 0x47086CF0: mov esi, eax */ 4809 L_47086CF2: 4810 ecx = esi; /* 0x47086CF2: mov ecx, esi */ 4811 L_47086CF4: 4812 RECOMP_ICALL(0x4703B210u); /* 0x47086CF4: call 0x4703b210 */ /* not lifted */ 4813 RECOMP_FLAGS_IN(); 4814 L_47086CF9: 4815 PUSH32(esp, eax); /* 0x47086CF9: push eax */ 4816 L_47086CFA: 4817 ecx = esi; /* 0x47086CFA: mov ecx, esi */ 4818 L_47086CFC: 4819 RECOMP_ICALL(0x4703B240u); /* 0x47086CFC: call 0x4703b240 */ /* not lifted */ 4820 RECOMP_FLAGS_IN(); 4821 L_47086D01: 4822 PUSH32(esp, eax); /* 0x47086D01: push eax */ 4823 L_47086D02: 4824 ecx = esi; /* 0x47086D02: mov ecx, esi */ 4825 L_47086D04: 4826 RECOMP_ICALL(0x4703B080u); /* 0x47086D04: call 0x4703b080 */ /* not lifted */ 4827 RECOMP_FLAGS_IN(); 4828 L_47086D09: 4829 PUSH32(esp, eax); /* 0x47086D09: push eax */ 4830 L_47086D0A: 4831 PUSH32(esp, edi); /* 0x47086D0A: push edi */ 4832 L_47086D0B: 4833 PUSH32(esp, 0xFFFFFFFFu); /* 0x47086D0B: push -1 */ 4834 L_47086D0D: 4835 PUSH32(esp, 0x1D8u); /* 0x47086D0D: push 0x1d8 */ 4836 L_47086D12: 4837 PUSH32(esp, 0x4710C610u); /* 0x47086D12: push 0x4710c610 */ 4838 L_47086D17: 4839 ecx = esi; /* 0x47086D17: mov ecx, esi */ 4840 L_47086D19: 4841 RECOMP_ICALL(0x4703A340u); /* 0x47086D19: call 0x4703a340 */ /* not lifted */ 4842 RECOMP_FLAGS_IN(); 4843 L_47086D1E: 4844 PUSH32(esp, 0x4710C660u); /* 0x47086D1E: push 0x4710c660 */ 4845 L_47086D23: 4846 PUSH32(esp, 0x471055F0u); /* 0x47086D23: push 0x471055f0 */ 4847 L_47086D28: 4848 PUSH32(esp, 0x80u); /* 0x47086D28: push 0x80 */ 4849 L_47086D2D: 4850 PUSH32(esp, esi); /* 0x47086D2D: push esi */ 4851 L_47086D2E: 4852 RECOMP_ICALL(0x47039830u); /* 0x47086D2E: call 0x47039830 */ /* not lifted */ 4853 RECOMP_FLAGS_IN(); 4854 L_47086D33: 4855 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4856 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4857 esp = esp + 0x10u; /* 0x47086D33: add esp, 0x10 */ 4858 _flag_k = FK_ADD; 4859 L_47086D36: 4860 edi = POP32_VAL(esp); /* 0x47086D36: pop edi */ 4861 L_47086D37: 4862 esi = POP32_VAL(esp); /* 0x47086D37: pop esi */ 4863 L_47086D38: 4864 ebx = POP32_VAL(esp); /* 0x47086D38: pop ebx */ 4865 L_47086D39: 4866 eax = ebp; /* 0x47086D39: mov eax, ebp */ 4867 L_47086D3B: 4868 ebp = POP32_VAL(esp); /* 0x47086D3B: pop ebp */ 4869 L_47086D3C: 4870 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47086D3C: ret 0x10 */ 4871 L_47086D3F: 4872 eax = ebp; /* 0x47086D3F: mov eax, ebp */ 4873 L_47086D41: 4874 ebp = POP32_VAL(esp); /* 0x47086D41: pop ebp */ 4875 L_47086D42: 4876 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47086D42: ret 0x10 */ 4877 _ljump: 4878 switch (_itail_tgt) { 4879 case 0x47086C60u: goto L_47086C60; 4880 case 0x47086C64u: goto L_47086C64; 4881 case 0x47086C65u: goto L_47086C65; 4882 case 0x47086C67u: goto L_47086C67; 4883 case 0x47086C6Bu: goto L_47086C6B; 4884 case 0x47086C6Cu: goto L_47086C6C; 4885 case 0x47086C6Du: goto L_47086C6D; 4886 case 0x47086C6Fu: goto L_47086C6F; 4887 case 0x47086C71u: goto L_47086C71; 4888 case 0x47086C78u: goto L_47086C78; 4889 case 0x47086C7Eu: goto L_47086C7E; 4890 case 0x47086C80u: goto L_47086C80; 4891 case 0x47086C83u: goto L_47086C83; 4892 case 0x47086C89u: goto L_47086C89; 4893 case 0x47086C8Au: goto L_47086C8A; 4894 case 0x47086C8Bu: goto L_47086C8B; 4895 case 0x47086C91u: goto L_47086C91; 4896 case 0x47086C92u: goto L_47086C92; 4897 case 0x47086C94u: goto L_47086C94; 4898 case 0x47086C9Au: goto L_47086C9A; 4899 case 0x47086C9Cu: goto L_47086C9C; 4900 case 0x47086C9Eu: goto L_47086C9E; 4901 case 0x47086CA0u: goto L_47086CA0; 4902 case 0x47086CA3u: goto L_47086CA3; 4903 case 0x47086CA6u: goto L_47086CA6; 4904 case 0x47086CA8u: goto L_47086CA8; 4905 case 0x47086CAAu: goto L_47086CAA; 4906 case 0x47086CB0u: goto L_47086CB0; 4907 case 0x47086CB7u: goto L_47086CB7; 4908 case 0x47086CB9u: goto L_47086CB9; 4909 case 0x47086CBFu: goto L_47086CBF; 4910 case 0x47086CC1u: goto L_47086CC1; 4911 case 0x47086CC3u: goto L_47086CC3; 4912 case 0x47086CC9u: goto L_47086CC9; 4913 case 0x47086CCBu: goto L_47086CCB; 4914 case 0x47086CCDu: goto L_47086CCD; 4915 case 0x47086CD3u: goto L_47086CD3; 4916 case 0x47086CD5u: goto L_47086CD5; 4917 case 0x47086CD7u: goto L_47086CD7; 4918 case 0x47086CDDu: goto L_47086CDD; 4919 case 0x47086CDFu: goto L_47086CDF; 4920 case 0x47086CE1u: goto L_47086CE1; 4921 case 0x47086CE3u: goto L_47086CE3; 4922 case 0x47086CE5u: goto L_47086CE5; 4923 case 0x47086CE7u: goto L_47086CE7; 4924 case 0x47086CE9u: goto L_47086CE9; 4925 case 0x47086CEBu: goto L_47086CEB; 4926 case 0x47086CF0u: goto L_47086CF0; 4927 case 0x47086CF2u: goto L_47086CF2; 4928 case 0x47086CF4u: goto L_47086CF4; 4929 case 0x47086CF9u: goto L_47086CF9; 4930 case 0x47086CFAu: goto L_47086CFA; 4931 case 0x47086CFCu: goto L_47086CFC; 4932 case 0x47086D01u: goto L_47086D01; 4933 case 0x47086D02u: goto L_47086D02; 4934 case 0x47086D04u: goto L_47086D04; 4935 case 0x47086D09u: goto L_47086D09; 4936 case 0x47086D0Au: goto L_47086D0A; 4937 case 0x47086D0Bu: goto L_47086D0B; 4938 case 0x47086D0Du: goto L_47086D0D; 4939 case 0x47086D12u: goto L_47086D12; 4940 case 0x47086D17u: goto L_47086D17; 4941 case 0x47086D19u: goto L_47086D19; 4942 case 0x47086D1Eu: goto L_47086D1E; 4943 case 0x47086D23u: goto L_47086D23; 4944 case 0x47086D28u: goto L_47086D28; 4945 case 0x47086D2Du: goto L_47086D2D; 4946 case 0x47086D2Eu: goto L_47086D2E; 4947 case 0x47086D33u: goto L_47086D33; 4948 case 0x47086D36u: goto L_47086D36; 4949 case 0x47086D37u: goto L_47086D37; 4950 case 0x47086D38u: goto L_47086D38; 4951 case 0x47086D39u: goto L_47086D39; 4952 case 0x47086D3Bu: goto L_47086D3B; 4953 case 0x47086D3Cu: goto L_47086D3C; 4954 case 0x47086D3Fu: goto L_47086D3F; 4955 case 0x47086D41u: goto L_47086D41; 4956 case 0x47086D42u: goto L_47086D42; 4957 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4958 } 4959 RECOMP_REGS_OUT(); 4960 } 4961 4962 void sub_47086DB0(void) { 4963 int _fpu_cmp = 0; 4964 uint32_t _cf = 0; 4965 int _df = 1; 4966 uint32_t _flag_k = FK_NONE; 4967 uint32_t _flag_a = 0, _flag_b = 0; 4968 uint32_t _itail_tgt = 0; 4969 RECOMP_REGS_LOCALS 4970 RECOMP_ENTER(0x47086DB0u); 4971 4972 L_47086DB0: 4973 eax = MEM32(esp + 0xC); /* 0x47086DB0: mov eax, dword ptr [esp + 0xc] */ 4974 L_47086DB4: 4975 PUSH32(esp, ebp); /* 0x47086DB4: push ebp */ 4976 L_47086DB5: 4977 ebp = ecx; /* 0x47086DB5: mov ebp, ecx */ 4978 L_47086DB7: 4979 ecx = MEM32(esp + 0x8); /* 0x47086DB7: mov ecx, dword ptr [esp + 8] */ 4980 L_47086DBB: 4981 PUSH32(esp, eax); /* 0x47086DBB: push eax */ 4982 L_47086DBC: 4983 PUSH32(esp, ecx); /* 0x47086DBC: push ecx */ 4984 L_47086DBD: 4985 PUSH32(esp, 0); /* 0x47086DBD: push 0 */ 4986 L_47086DBF: 4987 PUSH32(esp, 0); /* 0x47086DBF: push 0 */ 4988 L_47086DC1: 4989 MEM32(ebp + 0x4) = 0; /* 0x47086DC1: mov dword ptr [ebp + 4], 0 */ 4990 L_47086DC8: 4991 RECOMP_ICALL(MEM32(0x470AC164)); /* 0x47086DC8: call dword ptr [0x470ac164] */ 4992 RECOMP_FLAGS_IN(); 4993 L_47086DCE: 4994 /* test eax, eax */ /* 0x47086DCE: test eax, eax */ 4995 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4996 _cf = 0; 4997 _flag_k = FK_TEST; 4998 L_47086DD0: 4999 MEM32(ebp) = eax; /* 0x47086DD0: mov dword ptr [ebp], eax */ 5000 L_47086DD3: 5001 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47086E8F; /* 0x47086DD3: jne 0x47086e8f */ 5002 L_47086DD9: 5003 PUSH32(esp, ebx); /* 0x47086DD9: push ebx */ 5004 L_47086DDA: 5005 PUSH32(esp, esi); /* 0x47086DDA: push esi */ 5006 L_47086DDB: 5007 esi = MEM32(0x470AC3C8); /* 0x47086DDB: mov esi, dword ptr [0x470ac3c8] */ 5008 L_47086DE1: 5009 PUSH32(esp, edi); /* 0x47086DE1: push edi */ 5010 L_47086DE2: 5011 RECOMP_ICALL(esi); /* 0x47086DE2: call esi */ 5012 RECOMP_FLAGS_IN(); 5013 L_47086DE4: 5014 ebx = MEM32(0x470AC150); /* 0x47086DE4: mov ebx, dword ptr [0x470ac150] */ 5015 L_47086DEA: 5016 edi = eax; /* 0x47086DEA: mov edi, eax */ 5017 L_47086DEC: 5018 RECOMP_ICALL(ebx); /* 0x47086DEC: call ebx */ 5019 RECOMP_FLAGS_IN(); 5020 L_47086DEE: 5021 MEM32(edi) = eax; /* 0x47086DEE: mov dword ptr [edi], eax */ 5022 L_47086DF0: 5023 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu); 5024 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5025 eax = eax + 0xFFFFFFFDu; /* 0x47086DF0: add eax, -3 */ 5026 _flag_k = FK_ADD; 5027 L_47086DF3: 5028 /* cmp eax, 0x4Du */ /* 0x47086DF3: cmp eax, 0x4d */ 5029 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Du); 5030 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5031 _flag_k = FK_CMP; 5032 L_47086DF6: 5033 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_47086E2D; /* 0x47086DF6: ja 0x47086e2d */ 5034 L_47086DF8: 5035 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5036 edx = 0; /* 0x47086DF8: xor edx, edx */ 5037 _cf = 0; 5038 _flag_k = FK_TEST; 5039 L_47086DFA: 5040 SET_LO8(edx, MEM8(eax + 0x47086EAC)); /* 0x47086DFA: mov dl, byte ptr [eax + 0x47086eac] */ 5041 L_47086E00: 5042 { _itail_tgt = (uint32_t)(MEM32(edx * 4 + 0x47086E98)); goto _ljump; } 5043 L_47086E07: 5044 RECOMP_ICALL(esi); /* 0x47086E07: call esi */ 5045 RECOMP_FLAGS_IN(); 5046 L_47086E09: 5047 MEM32(eax) = 0xCu; /* 0x47086E09: mov dword ptr [eax], 0xc */ 5048 L_47086E0F: 5049 goto L_47086E2D; /* 0x47086E0F: jmp 0x47086e2d */ 5050 L_47086E11: 5051 RECOMP_ICALL(esi); /* 0x47086E11: call esi */ 5052 RECOMP_FLAGS_IN(); 5053 L_47086E13: 5054 MEM32(eax) = 0x11u; /* 0x47086E13: mov dword ptr [eax], 0x11 */ 5055 L_47086E19: 5056 goto L_47086E2D; /* 0x47086E19: jmp 0x47086e2d */ 5057 L_47086E1B: 5058 RECOMP_ICALL(esi); /* 0x47086E1B: call esi */ 5059 RECOMP_FLAGS_IN(); 5060 L_47086E1D: 5061 MEM32(eax) = 0xDu; /* 0x47086E1D: mov dword ptr [eax], 0xd */ 5062 L_47086E23: 5063 goto L_47086E2D; /* 0x47086E23: jmp 0x47086e2d */ 5064 L_47086E25: 5065 RECOMP_ICALL(esi); /* 0x47086E25: call esi */ 5066 RECOMP_FLAGS_IN(); 5067 L_47086E27: 5068 MEM32(eax) = 2; /* 0x47086E27: mov dword ptr [eax], 2 */ 5069 L_47086E2D: 5070 RECOMP_ICALL(ebx); /* 0x47086E2D: call ebx */ 5071 RECOMP_FLAGS_IN(); 5072 L_47086E2F: 5073 edi = eax; /* 0x47086E2F: mov edi, eax */ 5074 L_47086E31: 5075 RECOMP_ICALL(esi); /* 0x47086E31: call esi */ 5076 RECOMP_FLAGS_IN(); 5077 L_47086E33: 5078 eax = MEM32(eax); /* 0x47086E33: mov eax, dword ptr [eax] */ 5079 L_47086E35: 5080 /* test eax, eax */ /* 0x47086E35: test eax, eax */ 5081 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5082 _cf = 0; 5083 _flag_k = FK_TEST; 5084 L_47086E37: 5085 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47086E3B; /* 0x47086E37: je 0x47086e3b */ 5086 L_47086E39: 5087 edi = eax; /* 0x47086E39: mov edi, eax */ 5088 L_47086E3B: 5089 RECOMP_ICALL(0x47039020u); /* 0x47086E3B: call 0x47039020 */ /* not lifted */ 5090 RECOMP_FLAGS_IN(); 5091 L_47086E40: 5092 esi = eax; /* 0x47086E40: mov esi, eax */ 5093 L_47086E42: 5094 ecx = esi; /* 0x47086E42: mov ecx, esi */ 5095 L_47086E44: 5096 RECOMP_ICALL(0x4703B210u); /* 0x47086E44: call 0x4703b210 */ /* not lifted */ 5097 RECOMP_FLAGS_IN(); 5098 L_47086E49: 5099 PUSH32(esp, eax); /* 0x47086E49: push eax */ 5100 L_47086E4A: 5101 ecx = esi; /* 0x47086E4A: mov ecx, esi */ 5102 L_47086E4C: 5103 RECOMP_ICALL(0x4703B240u); /* 0x47086E4C: call 0x4703b240 */ /* not lifted */ 5104 RECOMP_FLAGS_IN(); 5105 L_47086E51: 5106 PUSH32(esp, eax); /* 0x47086E51: push eax */ 5107 L_47086E52: 5108 ecx = esi; /* 0x47086E52: mov ecx, esi */ 5109 L_47086E54: 5110 RECOMP_ICALL(0x4703B080u); /* 0x47086E54: call 0x4703b080 */ /* not lifted */ 5111 RECOMP_FLAGS_IN(); 5112 L_47086E59: 5113 PUSH32(esp, eax); /* 0x47086E59: push eax */ 5114 L_47086E5A: 5115 PUSH32(esp, edi); /* 0x47086E5A: push edi */ 5116 L_47086E5B: 5117 PUSH32(esp, 0xFFFFFFFFu); /* 0x47086E5B: push -1 */ 5118 L_47086E5D: 5119 PUSH32(esp, 0x1D8u); /* 0x47086E5D: push 0x1d8 */ 5120 L_47086E62: 5121 PUSH32(esp, 0x4710C610u); /* 0x47086E62: push 0x4710c610 */ 5122 L_47086E67: 5123 ecx = esi; /* 0x47086E67: mov ecx, esi */ 5124 L_47086E69: 5125 RECOMP_ICALL(0x4703A340u); /* 0x47086E69: call 0x4703a340 */ /* not lifted */ 5126 RECOMP_FLAGS_IN(); 5127 L_47086E6E: 5128 PUSH32(esp, 0x4710C660u); /* 0x47086E6E: push 0x4710c660 */ 5129 L_47086E73: 5130 PUSH32(esp, 0x471055F0u); /* 0x47086E73: push 0x471055f0 */ 5131 L_47086E78: 5132 PUSH32(esp, 0x80u); /* 0x47086E78: push 0x80 */ 5133 L_47086E7D: 5134 PUSH32(esp, esi); /* 0x47086E7D: push esi */ 5135 L_47086E7E: 5136 RECOMP_ICALL(0x47039830u); /* 0x47086E7E: call 0x47039830 */ /* not lifted */ 5137 RECOMP_FLAGS_IN(); 5138 L_47086E83: 5139 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5140 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5141 esp = esp + 0x10u; /* 0x47086E83: add esp, 0x10 */ 5142 _flag_k = FK_ADD; 5143 L_47086E86: 5144 edi = POP32_VAL(esp); /* 0x47086E86: pop edi */ 5145 L_47086E87: 5146 esi = POP32_VAL(esp); /* 0x47086E87: pop esi */ 5147 L_47086E88: 5148 ebx = POP32_VAL(esp); /* 0x47086E88: pop ebx */ 5149 L_47086E89: 5150 eax = ebp; /* 0x47086E89: mov eax, ebp */ 5151 L_47086E8B: 5152 ebp = POP32_VAL(esp); /* 0x47086E8B: pop ebp */ 5153 L_47086E8C: 5154 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47086E8C: ret 0x10 */ 5155 L_47086E8F: 5156 eax = ebp; /* 0x47086E8F: mov eax, ebp */ 5157 L_47086E91: 5158 ebp = POP32_VAL(esp); /* 0x47086E91: pop ebp */ 5159 L_47086E92: 5160 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47086E92: ret 0x10 */ 5161 _ljump: 5162 switch (_itail_tgt) { 5163 case 0x47086DB0u: goto L_47086DB0; 5164 case 0x47086DB4u: goto L_47086DB4; 5165 case 0x47086DB5u: goto L_47086DB5; 5166 case 0x47086DB7u: goto L_47086DB7; 5167 case 0x47086DBBu: goto L_47086DBB; 5168 case 0x47086DBCu: goto L_47086DBC; 5169 case 0x47086DBDu: goto L_47086DBD; 5170 case 0x47086DBFu: goto L_47086DBF; 5171 case 0x47086DC1u: goto L_47086DC1; 5172 case 0x47086DC8u: goto L_47086DC8; 5173 case 0x47086DCEu: goto L_47086DCE; 5174 case 0x47086DD0u: goto L_47086DD0; 5175 case 0x47086DD3u: goto L_47086DD3; 5176 case 0x47086DD9u: goto L_47086DD9; 5177 case 0x47086DDAu: goto L_47086DDA; 5178 case 0x47086DDBu: goto L_47086DDB; 5179 case 0x47086DE1u: goto L_47086DE1; 5180 case 0x47086DE2u: goto L_47086DE2; 5181 case 0x47086DE4u: goto L_47086DE4; 5182 case 0x47086DEAu: goto L_47086DEA; 5183 case 0x47086DECu: goto L_47086DEC; 5184 case 0x47086DEEu: goto L_47086DEE; 5185 case 0x47086DF0u: goto L_47086DF0; 5186 case 0x47086DF3u: goto L_47086DF3; 5187 case 0x47086DF6u: goto L_47086DF6; 5188 case 0x47086DF8u: goto L_47086DF8; 5189 case 0x47086DFAu: goto L_47086DFA; 5190 case 0x47086E00u: goto L_47086E00; 5191 case 0x47086E07u: goto L_47086E07; 5192 case 0x47086E09u: goto L_47086E09; 5193 case 0x47086E0Fu: goto L_47086E0F; 5194 case 0x47086E11u: goto L_47086E11; 5195 case 0x47086E13u: goto L_47086E13; 5196 case 0x47086E19u: goto L_47086E19; 5197 case 0x47086E1Bu: goto L_47086E1B; 5198 case 0x47086E1Du: goto L_47086E1D; 5199 case 0x47086E23u: goto L_47086E23; 5200 case 0x47086E25u: goto L_47086E25; 5201 case 0x47086E27u: goto L_47086E27; 5202 case 0x47086E2Du: goto L_47086E2D; 5203 case 0x47086E2Fu: goto L_47086E2F; 5204 case 0x47086E31u: goto L_47086E31; 5205 case 0x47086E33u: goto L_47086E33; 5206 case 0x47086E35u: goto L_47086E35; 5207 case 0x47086E37u: goto L_47086E37; 5208 case 0x47086E39u: goto L_47086E39; 5209 case 0x47086E3Bu: goto L_47086E3B; 5210 case 0x47086E40u: goto L_47086E40; 5211 case 0x47086E42u: goto L_47086E42; 5212 case 0x47086E44u: goto L_47086E44; 5213 case 0x47086E49u: goto L_47086E49; 5214 case 0x47086E4Au: goto L_47086E4A; 5215 case 0x47086E4Cu: goto L_47086E4C; 5216 case 0x47086E51u: goto L_47086E51; 5217 case 0x47086E52u: goto L_47086E52; 5218 case 0x47086E54u: goto L_47086E54; 5219 case 0x47086E59u: goto L_47086E59; 5220 case 0x47086E5Au: goto L_47086E5A; 5221 case 0x47086E5Bu: goto L_47086E5B; 5222 case 0x47086E5Du: goto L_47086E5D; 5223 case 0x47086E62u: goto L_47086E62; 5224 case 0x47086E67u: goto L_47086E67; 5225 case 0x47086E69u: goto L_47086E69; 5226 case 0x47086E6Eu: goto L_47086E6E; 5227 case 0x47086E73u: goto L_47086E73; 5228 case 0x47086E78u: goto L_47086E78; 5229 case 0x47086E7Du: goto L_47086E7D; 5230 case 0x47086E7Eu: goto L_47086E7E; 5231 case 0x47086E83u: goto L_47086E83; 5232 case 0x47086E86u: goto L_47086E86; 5233 case 0x47086E87u: goto L_47086E87; 5234 case 0x47086E88u: goto L_47086E88; 5235 case 0x47086E89u: goto L_47086E89; 5236 case 0x47086E8Bu: goto L_47086E8B; 5237 case 0x47086E8Cu: goto L_47086E8C; 5238 case 0x47086E8Fu: goto L_47086E8F; 5239 case 0x47086E91u: goto L_47086E91; 5240 case 0x47086E92u: goto L_47086E92; 5241 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5242 } 5243 RECOMP_REGS_OUT(); 5244 } 5245 5246 void sub_47086F00(void) { 5247 int _fpu_cmp = 0; 5248 uint32_t _cf = 0; 5249 int _df = 1; 5250 uint32_t _flag_k = FK_NONE; 5251 uint32_t _flag_a = 0, _flag_b = 0; 5252 uint32_t _itail_tgt = 0; 5253 RECOMP_REGS_LOCALS 5254 RECOMP_ENTER(0x47086F00u); 5255 5256 goto L_47086F00; 5257 L_47086BA0: 5258 PUSH32(esp, ebx); /* 0x47086BA0: push ebx */ 5259 PUSH32(esp, ebp); /* 0x47086BA1: push ebp */ 5260 ebp = MEM32(0x470AC150); /* 0x47086BA2: mov ebp, dword ptr [0x470ac150] */ 5261 PUSH32(esp, esi); /* 0x47086BA8: push esi */ 5262 PUSH32(esp, edi); /* 0x47086BA9: push edi */ 5263 ebx = ecx; /* 0x47086BAA: mov ebx, ecx */ 5264 RECOMP_ICALL(ebp); /* 0x47086BAC: call ebp */ 5265 RECOMP_FLAGS_IN(); 5266 edi = eax; /* 0x47086BAE: mov edi, eax */ 5267 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47086BB0: call dword ptr [0x470ac3c8] */ 5268 RECOMP_FLAGS_IN(); 5269 eax = MEM32(eax); /* 0x47086BB6: mov eax, dword ptr [eax] */ 5270 /* test eax, eax */ /* 0x47086BB8: test eax, eax */ 5271 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5272 _cf = 0; 5273 _flag_k = FK_TEST; 5274 if (TEST_Z(_flag_a, _flag_b)) goto L_47086BBE; /* 0x47086BBA: je 0x47086bbe */ 5275 L_47086BBC: 5276 edi = eax; /* 0x47086BBC: mov edi, eax */ 5277 L_47086BBE: 5278 RECOMP_ICALL(0x47039020u); /* 0x47086BBE: call 0x47039020 */ /* not lifted */ 5279 RECOMP_FLAGS_IN(); 5280 esi = eax; /* 0x47086BC3: mov esi, eax */ 5281 ecx = esi; /* 0x47086BC5: mov ecx, esi */ 5282 RECOMP_ICALL(0x4703B210u); /* 0x47086BC7: call 0x4703b210 */ /* not lifted */ 5283 RECOMP_FLAGS_IN(); 5284 PUSH32(esp, eax); /* 0x47086BCC: push eax */ 5285 ecx = esi; /* 0x47086BCD: mov ecx, esi */ 5286 RECOMP_ICALL(0x4703B240u); /* 0x47086BCF: call 0x4703b240 */ /* not lifted */ 5287 RECOMP_FLAGS_IN(); 5288 PUSH32(esp, eax); /* 0x47086BD4: push eax */ 5289 ecx = esi; /* 0x47086BD5: mov ecx, esi */ 5290 RECOMP_ICALL(0x4703B080u); /* 0x47086BD7: call 0x4703b080 */ /* not lifted */ 5291 RECOMP_FLAGS_IN(); 5292 PUSH32(esp, eax); /* 0x47086BDC: push eax */ 5293 PUSH32(esp, edi); /* 0x47086BDD: push edi */ 5294 PUSH32(esp, 0); /* 0x47086BDE: push 0 */ 5295 PUSH32(esp, 0x21Au); /* 0x47086BE0: push 0x21a */ 5296 PUSH32(esp, 0x4710C610u); /* 0x47086BE5: push 0x4710c610 */ 5297 ecx = esi; /* 0x47086BEA: mov ecx, esi */ 5298 RECOMP_ICALL(0x4703A340u); /* 0x47086BEC: call 0x4703a340 */ /* not lifted */ 5299 RECOMP_FLAGS_IN(); 5300 PUSH32(esp, ebx); /* 0x47086BF1: push ebx */ 5301 PUSH32(esp, 0x471052CCu); /* 0x47086BF2: push 0x471052cc */ 5302 PUSH32(esp, 4); /* 0x47086BF7: push 4 */ 5303 PUSH32(esp, esi); /* 0x47086BF9: push esi */ 5304 RECOMP_ICALL(0x47039830u); /* 0x47086BFA: call 0x47039830 */ /* not lifted */ 5305 RECOMP_FLAGS_IN(); 5306 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5307 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5308 esp = esp + 0x10u; /* 0x47086BFF: add esp, 0x10 */ 5309 _flag_k = FK_ADD; 5310 RECOMP_ICALL(ebp); /* 0x47086C02: call ebp */ 5311 RECOMP_FLAGS_IN(); 5312 esi = eax; /* 0x47086C04: mov esi, eax */ 5313 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47086C06: call dword ptr [0x470ac3c8] */ 5314 RECOMP_FLAGS_IN(); 5315 eax = MEM32(eax); /* 0x47086C0C: mov eax, dword ptr [eax] */ 5316 /* test eax, eax */ /* 0x47086C0E: test eax, eax */ 5317 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5318 _cf = 0; 5319 _flag_k = FK_TEST; 5320 edi = esi; /* 0x47086C10: mov edi, esi */ 5321 if (TEST_Z(_flag_a, _flag_b)) goto L_47086C16; /* 0x47086C12: je 0x47086c16 */ 5322 L_47086C14: 5323 edi = eax; /* 0x47086C14: mov edi, eax */ 5324 L_47086C16: 5325 RECOMP_ICALL(0x47039020u); /* 0x47086C16: call 0x47039020 */ /* not lifted */ 5326 RECOMP_FLAGS_IN(); 5327 esi = eax; /* 0x47086C1B: mov esi, eax */ 5328 ecx = esi; /* 0x47086C1D: mov ecx, esi */ 5329 RECOMP_ICALL(0x4703B210u); /* 0x47086C1F: call 0x4703b210 */ /* not lifted */ 5330 RECOMP_FLAGS_IN(); 5331 PUSH32(esp, eax); /* 0x47086C24: push eax */ 5332 ecx = esi; /* 0x47086C25: mov ecx, esi */ 5333 RECOMP_ICALL(0x4703B240u); /* 0x47086C27: call 0x4703b240 */ /* not lifted */ 5334 RECOMP_FLAGS_IN(); 5335 PUSH32(esp, eax); /* 0x47086C2C: push eax */ 5336 ecx = esi; /* 0x47086C2D: mov ecx, esi */ 5337 RECOMP_ICALL(0x4703B080u); /* 0x47086C2F: call 0x4703b080 */ /* not lifted */ 5338 RECOMP_FLAGS_IN(); 5339 PUSH32(esp, eax); /* 0x47086C34: push eax */ 5340 PUSH32(esp, edi); /* 0x47086C35: push edi */ 5341 PUSH32(esp, 0); /* 0x47086C36: push 0 */ 5342 PUSH32(esp, 0x21Bu); /* 0x47086C38: push 0x21b */ 5343 PUSH32(esp, 0x4710C610u); /* 0x47086C3D: push 0x4710c610 */ 5344 ecx = esi; /* 0x47086C42: mov ecx, esi */ 5345 RECOMP_ICALL(0x4703A340u); /* 0x47086C44: call 0x4703a340 */ /* not lifted */ 5346 RECOMP_FLAGS_IN(); 5347 PUSH32(esp, 0x4710529Cu); /* 0x47086C49: push 0x4710529c */ 5348 PUSH32(esp, 4); /* 0x47086C4E: push 4 */ 5349 PUSH32(esp, esi); /* 0x47086C50: push esi */ 5350 RECOMP_ICALL(0x47039830u); /* 0x47086C51: call 0x47039830 */ /* not lifted */ 5351 RECOMP_FLAGS_IN(); 5352 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5353 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5354 esp = esp + 0xCu; /* 0x47086C56: add esp, 0xc */ 5355 _flag_k = FK_ADD; 5356 edi = POP32_VAL(esp); /* 0x47086C59: pop edi */ 5357 esi = POP32_VAL(esp); /* 0x47086C5A: pop esi */ 5358 ebp = POP32_VAL(esp); /* 0x47086C5B: pop ebp */ 5359 ebx = POP32_VAL(esp); /* 0x47086C5C: pop ebx */ 5360 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47086C5D: ret */ 5361 L_47086F00: 5362 RECOMP_BACKEDGE(); 5363 goto L_47086BA0; /* 0x47086F00: jmp 0x47086ba0 */ 5364 { RECOMP_REGS_OUT(); return; } /* end of function */ 5365 RECOMP_REGS_OUT(); 5366 } 5367 5368 void sub_47086F10(void) { 5369 int _fpu_cmp = 0; 5370 uint32_t _cf = 0; 5371 int _df = 1; 5372 uint32_t _flag_k = FK_NONE; 5373 uint32_t _flag_a = 0, _flag_b = 0; 5374 uint32_t _itail_tgt = 0; 5375 RECOMP_REGS_LOCALS 5376 RECOMP_ENTER(0x47086F10u); 5377 5378 goto L_47086F10; 5379 L_47085DB0: 5380 PUSH32(esp, ecx); /* 0x47085DB0: push ecx */ 5381 PUSH32(esp, ebx); /* 0x47085DB1: push ebx */ 5382 PUSH32(esp, ebp); /* 0x47085DB2: push ebp */ 5383 PUSH32(esp, esi); /* 0x47085DB3: push esi */ 5384 PUSH32(esp, edi); /* 0x47085DB4: push edi */ 5385 edi = MEM32(0x470AC150); /* 0x47085DB5: mov edi, dword ptr [0x470ac150] */ 5386 MEM32(esp + 0x10) = ecx; /* 0x47085DBB: mov dword ptr [esp + 0x10], ecx */ 5387 RECOMP_ICALL(edi); /* 0x47085DBF: call edi */ 5388 RECOMP_FLAGS_IN(); 5389 ebx = MEM32(0x470AC3C8); /* 0x47085DC1: mov ebx, dword ptr [0x470ac3c8] */ 5390 ebp = eax; /* 0x47085DC7: mov ebp, eax */ 5391 RECOMP_ICALL(ebx); /* 0x47085DC9: call ebx */ 5392 RECOMP_FLAGS_IN(); 5393 eax = MEM32(eax); /* 0x47085DCB: mov eax, dword ptr [eax] */ 5394 /* test eax, eax */ /* 0x47085DCD: test eax, eax */ 5395 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5396 _cf = 0; 5397 _flag_k = FK_TEST; 5398 if (TEST_Z(_flag_a, _flag_b)) goto L_47085DD3; /* 0x47085DCF: je 0x47085dd3 */ 5399 L_47085DD1: 5400 ebp = eax; /* 0x47085DD1: mov ebp, eax */ 5401 L_47085DD3: 5402 RECOMP_ICALL(0x47039020u); /* 0x47085DD3: call 0x47039020 */ /* not lifted */ 5403 RECOMP_FLAGS_IN(); 5404 esi = eax; /* 0x47085DD8: mov esi, eax */ 5405 ecx = esi; /* 0x47085DDA: mov ecx, esi */ 5406 RECOMP_ICALL(0x4703B210u); /* 0x47085DDC: call 0x4703b210 */ /* not lifted */ 5407 RECOMP_FLAGS_IN(); 5408 PUSH32(esp, eax); /* 0x47085DE1: push eax */ 5409 ecx = esi; /* 0x47085DE2: mov ecx, esi */ 5410 RECOMP_ICALL(0x4703B240u); /* 0x47085DE4: call 0x4703b240 */ /* not lifted */ 5411 RECOMP_FLAGS_IN(); 5412 PUSH32(esp, eax); /* 0x47085DE9: push eax */ 5413 ecx = esi; /* 0x47085DEA: mov ecx, esi */ 5414 RECOMP_ICALL(0x4703B080u); /* 0x47085DEC: call 0x4703b080 */ /* not lifted */ 5415 RECOMP_FLAGS_IN(); 5416 PUSH32(esp, eax); /* 0x47085DF1: push eax */ 5417 PUSH32(esp, ebp); /* 0x47085DF2: push ebp */ 5418 PUSH32(esp, 0); /* 0x47085DF3: push 0 */ 5419 PUSH32(esp, 0xD8u); /* 0x47085DF5: push 0xd8 */ 5420 PUSH32(esp, 0x4710C610u); /* 0x47085DFA: push 0x4710c610 */ 5421 ecx = esi; /* 0x47085DFF: mov ecx, esi */ 5422 RECOMP_ICALL(0x4703A340u); /* 0x47085E01: call 0x4703a340 */ /* not lifted */ 5423 RECOMP_FLAGS_IN(); 5424 eax = MEM32(esp + 0x10); /* 0x47085E06: mov eax, dword ptr [esp + 0x10] */ 5425 PUSH32(esp, eax); /* 0x47085E0A: push eax */ 5426 PUSH32(esp, 0x471052CCu); /* 0x47085E0B: push 0x471052cc */ 5427 PUSH32(esp, 4); /* 0x47085E10: push 4 */ 5428 PUSH32(esp, esi); /* 0x47085E12: push esi */ 5429 RECOMP_ICALL(0x47039830u); /* 0x47085E13: call 0x47039830 */ /* not lifted */ 5430 RECOMP_FLAGS_IN(); 5431 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5432 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5433 esp = esp + 0x10u; /* 0x47085E18: add esp, 0x10 */ 5434 _flag_k = FK_ADD; 5435 RECOMP_ICALL(edi); /* 0x47085E1B: call edi */ 5436 RECOMP_FLAGS_IN(); 5437 ebp = eax; /* 0x47085E1D: mov ebp, eax */ 5438 RECOMP_ICALL(ebx); /* 0x47085E1F: call ebx */ 5439 RECOMP_FLAGS_IN(); 5440 eax = MEM32(eax); /* 0x47085E21: mov eax, dword ptr [eax] */ 5441 /* test eax, eax */ /* 0x47085E23: test eax, eax */ 5442 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5443 _cf = 0; 5444 _flag_k = FK_TEST; 5445 if (TEST_Z(_flag_a, _flag_b)) goto L_47085E29; /* 0x47085E25: je 0x47085e29 */ 5446 L_47085E27: 5447 ebp = eax; /* 0x47085E27: mov ebp, eax */ 5448 L_47085E29: 5449 RECOMP_ICALL(0x47039020u); /* 0x47085E29: call 0x47039020 */ /* not lifted */ 5450 RECOMP_FLAGS_IN(); 5451 esi = eax; /* 0x47085E2E: mov esi, eax */ 5452 ecx = esi; /* 0x47085E30: mov ecx, esi */ 5453 RECOMP_ICALL(0x4703B210u); /* 0x47085E32: call 0x4703b210 */ /* not lifted */ 5454 RECOMP_FLAGS_IN(); 5455 PUSH32(esp, eax); /* 0x47085E37: push eax */ 5456 ecx = esi; /* 0x47085E38: mov ecx, esi */ 5457 RECOMP_ICALL(0x4703B240u); /* 0x47085E3A: call 0x4703b240 */ /* not lifted */ 5458 RECOMP_FLAGS_IN(); 5459 PUSH32(esp, eax); /* 0x47085E3F: push eax */ 5460 ecx = esi; /* 0x47085E40: mov ecx, esi */ 5461 RECOMP_ICALL(0x4703B080u); /* 0x47085E42: call 0x4703b080 */ /* not lifted */ 5462 RECOMP_FLAGS_IN(); 5463 PUSH32(esp, eax); /* 0x47085E47: push eax */ 5464 PUSH32(esp, ebp); /* 0x47085E48: push ebp */ 5465 PUSH32(esp, 0); /* 0x47085E49: push 0 */ 5466 PUSH32(esp, 0xD9u); /* 0x47085E4B: push 0xd9 */ 5467 PUSH32(esp, 0x4710C610u); /* 0x47085E50: push 0x4710c610 */ 5468 ecx = esi; /* 0x47085E55: mov ecx, esi */ 5469 RECOMP_ICALL(0x4703A340u); /* 0x47085E57: call 0x4703a340 */ /* not lifted */ 5470 RECOMP_FLAGS_IN(); 5471 PUSH32(esp, 0x47105590u); /* 0x47085E5C: push 0x47105590 */ 5472 PUSH32(esp, 4); /* 0x47085E61: push 4 */ 5473 PUSH32(esp, esi); /* 0x47085E63: push esi */ 5474 RECOMP_ICALL(0x47039830u); /* 0x47085E64: call 0x47039830 */ /* not lifted */ 5475 RECOMP_FLAGS_IN(); 5476 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5477 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5478 esp = esp + 0xCu; /* 0x47085E69: add esp, 0xc */ 5479 _flag_k = FK_ADD; 5480 RECOMP_ICALL(edi); /* 0x47085E6C: call edi */ 5481 RECOMP_FLAGS_IN(); 5482 esi = eax; /* 0x47085E6E: mov esi, eax */ 5483 RECOMP_ICALL(ebx); /* 0x47085E70: call ebx */ 5484 RECOMP_FLAGS_IN(); 5485 eax = MEM32(eax); /* 0x47085E72: mov eax, dword ptr [eax] */ 5486 /* test eax, eax */ /* 0x47085E74: test eax, eax */ 5487 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5488 _cf = 0; 5489 _flag_k = FK_TEST; 5490 edi = esi; /* 0x47085E76: mov edi, esi */ 5491 if (TEST_Z(_flag_a, _flag_b)) goto L_47085E7C; /* 0x47085E78: je 0x47085e7c */ 5492 L_47085E7A: 5493 edi = eax; /* 0x47085E7A: mov edi, eax */ 5494 L_47085E7C: 5495 RECOMP_ICALL(0x47039020u); /* 0x47085E7C: call 0x47039020 */ /* not lifted */ 5496 RECOMP_FLAGS_IN(); 5497 esi = eax; /* 0x47085E81: mov esi, eax */ 5498 ecx = esi; /* 0x47085E83: mov ecx, esi */ 5499 RECOMP_ICALL(0x4703B210u); /* 0x47085E85: call 0x4703b210 */ /* not lifted */ 5500 RECOMP_FLAGS_IN(); 5501 PUSH32(esp, eax); /* 0x47085E8A: push eax */ 5502 ecx = esi; /* 0x47085E8B: mov ecx, esi */ 5503 RECOMP_ICALL(0x4703B240u); /* 0x47085E8D: call 0x4703b240 */ /* not lifted */ 5504 RECOMP_FLAGS_IN(); 5505 PUSH32(esp, eax); /* 0x47085E92: push eax */ 5506 ecx = esi; /* 0x47085E93: mov ecx, esi */ 5507 RECOMP_ICALL(0x4703B080u); /* 0x47085E95: call 0x4703b080 */ /* not lifted */ 5508 RECOMP_FLAGS_IN(); 5509 PUSH32(esp, eax); /* 0x47085E9A: push eax */ 5510 PUSH32(esp, edi); /* 0x47085E9B: push edi */ 5511 PUSH32(esp, 0); /* 0x47085E9C: push 0 */ 5512 PUSH32(esp, 0xDAu); /* 0x47085E9E: push 0xda */ 5513 PUSH32(esp, 0x4710C610u); /* 0x47085EA3: push 0x4710c610 */ 5514 ecx = esi; /* 0x47085EA8: mov ecx, esi */ 5515 RECOMP_ICALL(0x4703A340u); /* 0x47085EAA: call 0x4703a340 */ /* not lifted */ 5516 RECOMP_FLAGS_IN(); 5517 PUSH32(esp, 0x4710529Cu); /* 0x47085EAF: push 0x4710529c */ 5518 PUSH32(esp, 4); /* 0x47085EB4: push 4 */ 5519 PUSH32(esp, esi); /* 0x47085EB6: push esi */ 5520 RECOMP_ICALL(0x47039830u); /* 0x47085EB7: call 0x47039830 */ /* not lifted */ 5521 RECOMP_FLAGS_IN(); 5522 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5523 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5524 esp = esp + 0xCu; /* 0x47085EBC: add esp, 0xc */ 5525 _flag_k = FK_ADD; 5526 edi = POP32_VAL(esp); /* 0x47085EBF: pop edi */ 5527 esi = POP32_VAL(esp); /* 0x47085EC0: pop esi */ 5528 ebp = POP32_VAL(esp); /* 0x47085EC1: pop ebp */ 5529 ebx = POP32_VAL(esp); /* 0x47085EC2: pop ebx */ 5530 ecx = POP32_VAL(esp); /* 0x47085EC3: pop ecx */ 5531 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47085EC4: ret */ 5532 L_47086F10: 5533 RECOMP_BACKEDGE(); 5534 goto L_47085DB0; /* 0x47086F10: jmp 0x47085db0 */ 5535 { RECOMP_REGS_OUT(); return; } /* end of function */ 5536 RECOMP_REGS_OUT(); 5537 } 5538 5539 void sub_47086F20(void) { 5540 int _fpu_cmp = 0; 5541 uint32_t _cf = 0; 5542 int _df = 1; 5543 uint32_t _flag_k = FK_NONE; 5544 uint32_t _flag_a = 0, _flag_b = 0; 5545 uint32_t _itail_tgt = 0; 5546 RECOMP_REGS_LOCALS 5547 RECOMP_ENTER(0x47086F20u); 5548 5549 L_47086F20: 5550 eax = MEM32(esp + 0x8); /* 0x47086F20: mov eax, dword ptr [esp + 8] */ 5551 L_47086F24: 5552 edx = MEM32(esp + 0x4); /* 0x47086F24: mov edx, dword ptr [esp + 4] */ 5553 L_47086F28: 5554 PUSH32(esp, ebp); /* 0x47086F28: push ebp */ 5555 L_47086F29: 5556 ebp = ecx; /* 0x47086F29: mov ebp, ecx */ 5557 L_47086F2B: 5558 ecx = MEM32(esp + 0x14); /* 0x47086F2B: mov ecx, dword ptr [esp + 0x14] */ 5559 L_47086F2F: 5560 PUSH32(esp, eax); /* 0x47086F2F: push eax */ 5561 L_47086F30: 5562 PUSH32(esp, ecx); /* 0x47086F30: push ecx */ 5563 L_47086F31: 5564 PUSH32(esp, edx); /* 0x47086F31: push edx */ 5565 L_47086F32: 5566 PUSH32(esp, 0); /* 0x47086F32: push 0 */ 5567 L_47086F34: 5568 MEM32(ebp + 0x4) = 0; /* 0x47086F34: mov dword ptr [ebp + 4], 0 */ 5569 L_47086F3B: 5570 RECOMP_ICALL(MEM32(0x470AC16C)); /* 0x47086F3B: call dword ptr [0x470ac16c] */ 5571 RECOMP_FLAGS_IN(); 5572 L_47086F41: 5573 /* test eax, eax */ /* 0x47086F41: test eax, eax */ 5574 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5575 _cf = 0; 5576 _flag_k = FK_TEST; 5577 L_47086F43: 5578 MEM32(ebp) = eax; /* 0x47086F43: mov dword ptr [ebp], eax */ 5579 L_47086F46: 5580 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47087002; /* 0x47086F46: jne 0x47087002 */ 5581 L_47086F4C: 5582 PUSH32(esp, ebx); /* 0x47086F4C: push ebx */ 5583 L_47086F4D: 5584 PUSH32(esp, esi); /* 0x47086F4D: push esi */ 5585 L_47086F4E: 5586 esi = MEM32(0x470AC3C8); /* 0x47086F4E: mov esi, dword ptr [0x470ac3c8] */ 5587 L_47086F54: 5588 PUSH32(esp, edi); /* 0x47086F54: push edi */ 5589 L_47086F55: 5590 RECOMP_ICALL(esi); /* 0x47086F55: call esi */ 5591 RECOMP_FLAGS_IN(); 5592 L_47086F57: 5593 ebx = MEM32(0x470AC150); /* 0x47086F57: mov ebx, dword ptr [0x470ac150] */ 5594 L_47086F5D: 5595 edi = eax; /* 0x47086F5D: mov edi, eax */ 5596 L_47086F5F: 5597 RECOMP_ICALL(ebx); /* 0x47086F5F: call ebx */ 5598 RECOMP_FLAGS_IN(); 5599 L_47086F61: 5600 MEM32(edi) = eax; /* 0x47086F61: mov dword ptr [edi], eax */ 5601 L_47086F63: 5602 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu); 5603 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5604 eax = eax + 0xFFFFFFFDu; /* 0x47086F63: add eax, -3 */ 5605 _flag_k = FK_ADD; 5606 L_47086F66: 5607 /* cmp eax, 0x4Du */ /* 0x47086F66: cmp eax, 0x4d */ 5608 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Du); 5609 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5610 _flag_k = FK_CMP; 5611 L_47086F69: 5612 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_47086FA0; /* 0x47086F69: ja 0x47086fa0 */ 5613 L_47086F6B: 5614 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5615 ecx = 0; /* 0x47086F6B: xor ecx, ecx */ 5616 _cf = 0; 5617 _flag_k = FK_TEST; 5618 L_47086F6D: 5619 SET_LO8(ecx, MEM8(eax + 0x4708701C)); /* 0x47086F6D: mov cl, byte ptr [eax + 0x4708701c] */ 5620 L_47086F73: 5621 { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x47087008)); goto _ljump; } 5622 L_47086F7A: 5623 RECOMP_ICALL(esi); /* 0x47086F7A: call esi */ 5624 RECOMP_FLAGS_IN(); 5625 L_47086F7C: 5626 MEM32(eax) = 0xCu; /* 0x47086F7C: mov dword ptr [eax], 0xc */ 5627 L_47086F82: 5628 goto L_47086FA0; /* 0x47086F82: jmp 0x47086fa0 */ 5629 L_47086F84: 5630 RECOMP_ICALL(esi); /* 0x47086F84: call esi */ 5631 RECOMP_FLAGS_IN(); 5632 L_47086F86: 5633 MEM32(eax) = 0x11u; /* 0x47086F86: mov dword ptr [eax], 0x11 */ 5634 L_47086F8C: 5635 goto L_47086FA0; /* 0x47086F8C: jmp 0x47086fa0 */ 5636 L_47086F8E: 5637 RECOMP_ICALL(esi); /* 0x47086F8E: call esi */ 5638 RECOMP_FLAGS_IN(); 5639 L_47086F90: 5640 MEM32(eax) = 0xDu; /* 0x47086F90: mov dword ptr [eax], 0xd */ 5641 L_47086F96: 5642 goto L_47086FA0; /* 0x47086F96: jmp 0x47086fa0 */ 5643 L_47086F98: 5644 RECOMP_ICALL(esi); /* 0x47086F98: call esi */ 5645 RECOMP_FLAGS_IN(); 5646 L_47086F9A: 5647 MEM32(eax) = 2; /* 0x47086F9A: mov dword ptr [eax], 2 */ 5648 L_47086FA0: 5649 RECOMP_ICALL(ebx); /* 0x47086FA0: call ebx */ 5650 RECOMP_FLAGS_IN(); 5651 L_47086FA2: 5652 edi = eax; /* 0x47086FA2: mov edi, eax */ 5653 L_47086FA4: 5654 RECOMP_ICALL(esi); /* 0x47086FA4: call esi */ 5655 RECOMP_FLAGS_IN(); 5656 L_47086FA6: 5657 eax = MEM32(eax); /* 0x47086FA6: mov eax, dword ptr [eax] */ 5658 L_47086FA8: 5659 /* test eax, eax */ /* 0x47086FA8: test eax, eax */ 5660 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5661 _cf = 0; 5662 _flag_k = FK_TEST; 5663 L_47086FAA: 5664 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47086FAE; /* 0x47086FAA: je 0x47086fae */ 5665 L_47086FAC: 5666 edi = eax; /* 0x47086FAC: mov edi, eax */ 5667 L_47086FAE: 5668 RECOMP_ICALL(0x47039020u); /* 0x47086FAE: call 0x47039020 */ /* not lifted */ 5669 RECOMP_FLAGS_IN(); 5670 L_47086FB3: 5671 esi = eax; /* 0x47086FB3: mov esi, eax */ 5672 L_47086FB5: 5673 ecx = esi; /* 0x47086FB5: mov ecx, esi */ 5674 L_47086FB7: 5675 RECOMP_ICALL(0x4703B210u); /* 0x47086FB7: call 0x4703b210 */ /* not lifted */ 5676 RECOMP_FLAGS_IN(); 5677 L_47086FBC: 5678 PUSH32(esp, eax); /* 0x47086FBC: push eax */ 5679 L_47086FBD: 5680 ecx = esi; /* 0x47086FBD: mov ecx, esi */ 5681 L_47086FBF: 5682 RECOMP_ICALL(0x4703B240u); /* 0x47086FBF: call 0x4703b240 */ /* not lifted */ 5683 RECOMP_FLAGS_IN(); 5684 L_47086FC4: 5685 PUSH32(esp, eax); /* 0x47086FC4: push eax */ 5686 L_47086FC5: 5687 ecx = esi; /* 0x47086FC5: mov ecx, esi */ 5688 L_47086FC7: 5689 RECOMP_ICALL(0x4703B080u); /* 0x47086FC7: call 0x4703b080 */ /* not lifted */ 5690 RECOMP_FLAGS_IN(); 5691 L_47086FCC: 5692 PUSH32(esp, eax); /* 0x47086FCC: push eax */ 5693 L_47086FCD: 5694 PUSH32(esp, edi); /* 0x47086FCD: push edi */ 5695 L_47086FCE: 5696 PUSH32(esp, 0xFFFFFFFFu); /* 0x47086FCE: push -1 */ 5697 L_47086FD0: 5698 PUSH32(esp, 0xE9u); /* 0x47086FD0: push 0xe9 */ 5699 L_47086FD5: 5700 PUSH32(esp, 0x4710C610u); /* 0x47086FD5: push 0x4710c610 */ 5701 L_47086FDA: 5702 ecx = esi; /* 0x47086FDA: mov ecx, esi */ 5703 L_47086FDC: 5704 RECOMP_ICALL(0x4703A340u); /* 0x47086FDC: call 0x4703a340 */ /* not lifted */ 5705 RECOMP_FLAGS_IN(); 5706 L_47086FE1: 5707 PUSH32(esp, 0x4710C5F0u); /* 0x47086FE1: push 0x4710c5f0 */ 5708 L_47086FE6: 5709 PUSH32(esp, 0x471055F0u); /* 0x47086FE6: push 0x471055f0 */ 5710 L_47086FEB: 5711 PUSH32(esp, 0x80u); /* 0x47086FEB: push 0x80 */ 5712 L_47086FF0: 5713 PUSH32(esp, esi); /* 0x47086FF0: push esi */ 5714 L_47086FF1: 5715 RECOMP_ICALL(0x47039830u); /* 0x47086FF1: call 0x47039830 */ /* not lifted */ 5716 RECOMP_FLAGS_IN(); 5717 L_47086FF6: 5718 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5719 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5720 esp = esp + 0x10u; /* 0x47086FF6: add esp, 0x10 */ 5721 _flag_k = FK_ADD; 5722 L_47086FF9: 5723 edi = POP32_VAL(esp); /* 0x47086FF9: pop edi */ 5724 L_47086FFA: 5725 esi = POP32_VAL(esp); /* 0x47086FFA: pop esi */ 5726 L_47086FFB: 5727 ebx = POP32_VAL(esp); /* 0x47086FFB: pop ebx */ 5728 L_47086FFC: 5729 eax = ebp; /* 0x47086FFC: mov eax, ebp */ 5730 L_47086FFE: 5731 ebp = POP32_VAL(esp); /* 0x47086FFE: pop ebp */ 5732 L_47086FFF: 5733 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47086FFF: ret 0x10 */ 5734 L_47087002: 5735 eax = ebp; /* 0x47087002: mov eax, ebp */ 5736 L_47087004: 5737 ebp = POP32_VAL(esp); /* 0x47087004: pop ebp */ 5738 L_47087005: 5739 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47087005: ret 0x10 */ 5740 _ljump: 5741 switch (_itail_tgt) { 5742 case 0x47086F20u: goto L_47086F20; 5743 case 0x47086F24u: goto L_47086F24; 5744 case 0x47086F28u: goto L_47086F28; 5745 case 0x47086F29u: goto L_47086F29; 5746 case 0x47086F2Bu: goto L_47086F2B; 5747 case 0x47086F2Fu: goto L_47086F2F; 5748 case 0x47086F30u: goto L_47086F30; 5749 case 0x47086F31u: goto L_47086F31; 5750 case 0x47086F32u: goto L_47086F32; 5751 case 0x47086F34u: goto L_47086F34; 5752 case 0x47086F3Bu: goto L_47086F3B; 5753 case 0x47086F41u: goto L_47086F41; 5754 case 0x47086F43u: goto L_47086F43; 5755 case 0x47086F46u: goto L_47086F46; 5756 case 0x47086F4Cu: goto L_47086F4C; 5757 case 0x47086F4Du: goto L_47086F4D; 5758 case 0x47086F4Eu: goto L_47086F4E; 5759 case 0x47086F54u: goto L_47086F54; 5760 case 0x47086F55u: goto L_47086F55; 5761 case 0x47086F57u: goto L_47086F57; 5762 case 0x47086F5Du: goto L_47086F5D; 5763 case 0x47086F5Fu: goto L_47086F5F; 5764 case 0x47086F61u: goto L_47086F61; 5765 case 0x47086F63u: goto L_47086F63; 5766 case 0x47086F66u: goto L_47086F66; 5767 case 0x47086F69u: goto L_47086F69; 5768 case 0x47086F6Bu: goto L_47086F6B; 5769 case 0x47086F6Du: goto L_47086F6D; 5770 case 0x47086F73u: goto L_47086F73; 5771 case 0x47086F7Au: goto L_47086F7A; 5772 case 0x47086F7Cu: goto L_47086F7C; 5773 case 0x47086F82u: goto L_47086F82; 5774 case 0x47086F84u: goto L_47086F84; 5775 case 0x47086F86u: goto L_47086F86; 5776 case 0x47086F8Cu: goto L_47086F8C; 5777 case 0x47086F8Eu: goto L_47086F8E; 5778 case 0x47086F90u: goto L_47086F90; 5779 case 0x47086F96u: goto L_47086F96; 5780 case 0x47086F98u: goto L_47086F98; 5781 case 0x47086F9Au: goto L_47086F9A; 5782 case 0x47086FA0u: goto L_47086FA0; 5783 case 0x47086FA2u: goto L_47086FA2; 5784 case 0x47086FA4u: goto L_47086FA4; 5785 case 0x47086FA6u: goto L_47086FA6; 5786 case 0x47086FA8u: goto L_47086FA8; 5787 case 0x47086FAAu: goto L_47086FAA; 5788 case 0x47086FACu: goto L_47086FAC; 5789 case 0x47086FAEu: goto L_47086FAE; 5790 case 0x47086FB3u: goto L_47086FB3; 5791 case 0x47086FB5u: goto L_47086FB5; 5792 case 0x47086FB7u: goto L_47086FB7; 5793 case 0x47086FBCu: goto L_47086FBC; 5794 case 0x47086FBDu: goto L_47086FBD; 5795 case 0x47086FBFu: goto L_47086FBF; 5796 case 0x47086FC4u: goto L_47086FC4; 5797 case 0x47086FC5u: goto L_47086FC5; 5798 case 0x47086FC7u: goto L_47086FC7; 5799 case 0x47086FCCu: goto L_47086FCC; 5800 case 0x47086FCDu: goto L_47086FCD; 5801 case 0x47086FCEu: goto L_47086FCE; 5802 case 0x47086FD0u: goto L_47086FD0; 5803 case 0x47086FD5u: goto L_47086FD5; 5804 case 0x47086FDAu: goto L_47086FDA; 5805 case 0x47086FDCu: goto L_47086FDC; 5806 case 0x47086FE1u: goto L_47086FE1; 5807 case 0x47086FE6u: goto L_47086FE6; 5808 case 0x47086FEBu: goto L_47086FEB; 5809 case 0x47086FF0u: goto L_47086FF0; 5810 case 0x47086FF1u: goto L_47086FF1; 5811 case 0x47086FF6u: goto L_47086FF6; 5812 case 0x47086FF9u: goto L_47086FF9; 5813 case 0x47086FFAu: goto L_47086FFA; 5814 case 0x47086FFBu: goto L_47086FFB; 5815 case 0x47086FFCu: goto L_47086FFC; 5816 case 0x47086FFEu: goto L_47086FFE; 5817 case 0x47086FFFu: goto L_47086FFF; 5818 case 0x47087002u: goto L_47087002; 5819 case 0x47087004u: goto L_47087004; 5820 case 0x47087005u: goto L_47087005; 5821 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5822 } 5823 RECOMP_REGS_OUT(); 5824 } 5825 5826 void sub_47087070(void) { 5827 int _fpu_cmp = 0; 5828 uint32_t _cf = 0; 5829 int _df = 1; 5830 uint32_t _flag_k = FK_NONE; 5831 uint32_t _flag_a = 0, _flag_b = 0; 5832 uint32_t _itail_tgt = 0; 5833 RECOMP_REGS_LOCALS 5834 RECOMP_ENTER(0x47087070u); 5835 5836 L_47087070: 5837 eax = MEM32(ecx + 0x18); /* 0x47087070: mov eax, dword ptr [ecx + 0x18] */ 5838 /* test eax, eax */ /* 0x47087073: test eax, eax */ 5839 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5840 _cf = 0; 5841 _flag_k = FK_TEST; 5842 if (TEST_NZ(_flag_a, _flag_b)) goto L_47087085; /* 0x47087075: jne 0x47087085 */ 5843 L_47087077: 5844 PUSH32(esp, ecx); /* 0x47087077: push ecx */ 5845 MEM32(ecx + 0x18) = 1; /* 0x47087078: mov dword ptr [ecx + 0x18], 1 */ 5846 RECOMP_ICALL(MEM32(0x470AC19C)); /* 0x4708707F: call dword ptr [0x470ac19c] */ 5847 RECOMP_FLAGS_IN(); 5848 L_47087085: 5849 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5850 eax = 0; /* 0x47087085: xor eax, eax */ 5851 _cf = 0; 5852 _flag_k = FK_TEST; 5853 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47087087: ret */ 5854 RECOMP_REGS_OUT(); 5855 } 5856 5857 void sub_47087090(void) { 5858 int _fpu_cmp = 0; 5859 uint32_t _cf = 0; 5860 int _df = 1; 5861 uint32_t _flag_k = FK_NONE; 5862 uint32_t _flag_a = 0, _flag_b = 0; 5863 uint32_t _itail_tgt = 0; 5864 RECOMP_REGS_LOCALS 5865 RECOMP_ENTER(0x47087090u); 5866 5867 L_47087090: 5868 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47087090: call dword ptr [0x470ac3c8] */ 5869 RECOMP_FLAGS_IN(); 5870 MEM32(eax) = 0x28u; /* 0x47087096: mov dword ptr [eax], 0x28 */ 5871 eax = MEM32(0x4710E900); /* 0x4708709C: mov eax, dword ptr [0x4710e900] */ 5872 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470870A1: ret */ 5873 RECOMP_REGS_OUT(); 5874 } 5875 5876 void sub_470870B0(void) { 5877 int _fpu_cmp = 0; 5878 uint32_t _cf = 0; 5879 int _df = 1; 5880 uint32_t _flag_k = FK_NONE; 5881 uint32_t _flag_a = 0, _flag_b = 0; 5882 uint32_t _itail_tgt = 0; 5883 RECOMP_REGS_LOCALS 5884 RECOMP_ENTER(0x470870B0u); 5885 5886 L_470870B0: 5887 eax = MEM32(ecx + 0x8); /* 0x470870B0: mov eax, dword ptr [ecx + 8] */ 5888 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470870B3: ret */ 5889 RECOMP_REGS_OUT(); 5890 } 5891 5892 void sub_470870C0(void) { 5893 int _fpu_cmp = 0; 5894 uint32_t _cf = 0; 5895 int _df = 1; 5896 uint32_t _flag_k = FK_NONE; 5897 uint32_t _flag_a = 0, _flag_b = 0; 5898 uint32_t _itail_tgt = 0; 5899 RECOMP_REGS_LOCALS 5900 RECOMP_ENTER(0x470870C0u); 5901 5902 L_470870C0: 5903 eax = ecx; /* 0x470870C0: mov eax, ecx */ 5904 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470870C2: ret 4 */ 5905 RECOMP_REGS_OUT(); 5906 } 5907 5908 void sub_470870D0(void) { 5909 int _fpu_cmp = 0; 5910 uint32_t _cf = 0; 5911 int _df = 1; 5912 uint32_t _flag_k = FK_NONE; 5913 uint32_t _flag_a = 0, _flag_b = 0; 5914 uint32_t _itail_tgt = 0; 5915 RECOMP_REGS_LOCALS 5916 RECOMP_ENTER(0x470870D0u); 5917 5918 L_470870D0: 5919 PUSH32(esp, ecx); /* 0x470870D0: push ecx */ 5920 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x470870D1: call dword ptr [0x470ac180] */ 5921 RECOMP_FLAGS_IN(); 5922 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5923 eax = 0; /* 0x470870D7: xor eax, eax */ 5924 _cf = 0; 5925 _flag_k = FK_TEST; 5926 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470870D9: ret */ 5927 RECOMP_REGS_OUT(); 5928 } 5929 5930 void sub_470870E0(void) { 5931 int _fpu_cmp = 0; 5932 uint32_t _cf = 0; 5933 int _df = 1; 5934 uint32_t _flag_k = FK_NONE; 5935 uint32_t _flag_a = 0, _flag_b = 0; 5936 uint32_t _itail_tgt = 0; 5937 RECOMP_REGS_LOCALS 5938 RECOMP_ENTER(0x470870E0u); 5939 5940 L_470870E0: 5941 PUSH32(esp, ecx); /* 0x470870E0: push ecx */ 5942 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470870E1: call dword ptr [0x470ac190] */ 5943 RECOMP_FLAGS_IN(); 5944 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5945 eax = 0; /* 0x470870E7: xor eax, eax */ 5946 _cf = 0; 5947 _flag_k = FK_TEST; 5948 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470870E9: ret */ 5949 RECOMP_REGS_OUT(); 5950 } 5951 5952 void sub_470870F0(void) { 5953 int _fpu_cmp = 0; 5954 uint32_t _cf = 0; 5955 int _df = 1; 5956 uint32_t _flag_k = FK_NONE; 5957 uint32_t _flag_a = 0, _flag_b = 0; 5958 uint32_t _itail_tgt = 0; 5959 RECOMP_REGS_LOCALS 5960 RECOMP_ENTER(0x470870F0u); 5961 5962 L_470870F0: 5963 PUSH32(esp, ebx); /* 0x470870F0: push ebx */ 5964 PUSH32(esp, ebp); /* 0x470870F1: push ebp */ 5965 ebp = MEM32(0x470AC150); /* 0x470870F2: mov ebp, dword ptr [0x470ac150] */ 5966 PUSH32(esp, esi); /* 0x470870F8: push esi */ 5967 PUSH32(esp, edi); /* 0x470870F9: push edi */ 5968 ebx = ecx; /* 0x470870FA: mov ebx, ecx */ 5969 RECOMP_ICALL(ebp); /* 0x470870FC: call ebp */ 5970 RECOMP_FLAGS_IN(); 5971 edi = eax; /* 0x470870FE: mov edi, eax */ 5972 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47087100: call dword ptr [0x470ac3c8] */ 5973 RECOMP_FLAGS_IN(); 5974 eax = MEM32(eax); /* 0x47087106: mov eax, dword ptr [eax] */ 5975 /* test eax, eax */ /* 0x47087108: test eax, eax */ 5976 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5977 _cf = 0; 5978 _flag_k = FK_TEST; 5979 if (TEST_Z(_flag_a, _flag_b)) goto L_4708710E; /* 0x4708710A: je 0x4708710e */ 5980 L_4708710C: 5981 edi = eax; /* 0x4708710C: mov edi, eax */ 5982 L_4708710E: 5983 RECOMP_ICALL(0x47039020u); /* 0x4708710E: call 0x47039020 */ /* not lifted */ 5984 RECOMP_FLAGS_IN(); 5985 esi = eax; /* 0x47087113: mov esi, eax */ 5986 ecx = esi; /* 0x47087115: mov ecx, esi */ 5987 RECOMP_ICALL(0x4703B210u); /* 0x47087117: call 0x4703b210 */ /* not lifted */ 5988 RECOMP_FLAGS_IN(); 5989 PUSH32(esp, eax); /* 0x4708711C: push eax */ 5990 ecx = esi; /* 0x4708711D: mov ecx, esi */ 5991 RECOMP_ICALL(0x4703B240u); /* 0x4708711F: call 0x4703b240 */ /* not lifted */ 5992 RECOMP_FLAGS_IN(); 5993 PUSH32(esp, eax); /* 0x47087124: push eax */ 5994 ecx = esi; /* 0x47087125: mov ecx, esi */ 5995 RECOMP_ICALL(0x4703B080u); /* 0x47087127: call 0x4703b080 */ /* not lifted */ 5996 RECOMP_FLAGS_IN(); 5997 PUSH32(esp, eax); /* 0x4708712C: push eax */ 5998 PUSH32(esp, edi); /* 0x4708712D: push edi */ 5999 PUSH32(esp, 0); /* 0x4708712E: push 0 */ 6000 PUSH32(esp, 0x2CDu); /* 0x47087130: push 0x2cd */ 6001 PUSH32(esp, 0x4710C610u); /* 0x47087135: push 0x4710c610 */ 6002 ecx = esi; /* 0x4708713A: mov ecx, esi */ 6003 RECOMP_ICALL(0x4703A340u); /* 0x4708713C: call 0x4703a340 */ /* not lifted */ 6004 RECOMP_FLAGS_IN(); 6005 PUSH32(esp, ebx); /* 0x47087141: push ebx */ 6006 PUSH32(esp, 0x471052CCu); /* 0x47087142: push 0x471052cc */ 6007 PUSH32(esp, 4); /* 0x47087147: push 4 */ 6008 PUSH32(esp, esi); /* 0x47087149: push esi */ 6009 RECOMP_ICALL(0x47039830u); /* 0x4708714A: call 0x47039830 */ /* not lifted */ 6010 RECOMP_FLAGS_IN(); 6011 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6012 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6013 esp = esp + 0x10u; /* 0x4708714F: add esp, 0x10 */ 6014 _flag_k = FK_ADD; 6015 RECOMP_ICALL(ebp); /* 0x47087152: call ebp */ 6016 RECOMP_FLAGS_IN(); 6017 esi = eax; /* 0x47087154: mov esi, eax */ 6018 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47087156: call dword ptr [0x470ac3c8] */ 6019 RECOMP_FLAGS_IN(); 6020 eax = MEM32(eax); /* 0x4708715C: mov eax, dword ptr [eax] */ 6021 /* test eax, eax */ /* 0x4708715E: test eax, eax */ 6022 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6023 _cf = 0; 6024 _flag_k = FK_TEST; 6025 edi = esi; /* 0x47087160: mov edi, esi */ 6026 if (TEST_Z(_flag_a, _flag_b)) goto L_47087166; /* 0x47087162: je 0x47087166 */ 6027 L_47087164: 6028 edi = eax; /* 0x47087164: mov edi, eax */ 6029 L_47087166: 6030 RECOMP_ICALL(0x47039020u); /* 0x47087166: call 0x47039020 */ /* not lifted */ 6031 RECOMP_FLAGS_IN(); 6032 esi = eax; /* 0x4708716B: mov esi, eax */ 6033 ecx = esi; /* 0x4708716D: mov ecx, esi */ 6034 RECOMP_ICALL(0x4703B210u); /* 0x4708716F: call 0x4703b210 */ /* not lifted */ 6035 RECOMP_FLAGS_IN(); 6036 PUSH32(esp, eax); /* 0x47087174: push eax */ 6037 ecx = esi; /* 0x47087175: mov ecx, esi */ 6038 RECOMP_ICALL(0x4703B240u); /* 0x47087177: call 0x4703b240 */ /* not lifted */ 6039 RECOMP_FLAGS_IN(); 6040 PUSH32(esp, eax); /* 0x4708717C: push eax */ 6041 ecx = esi; /* 0x4708717D: mov ecx, esi */ 6042 RECOMP_ICALL(0x4703B080u); /* 0x4708717F: call 0x4703b080 */ /* not lifted */ 6043 RECOMP_FLAGS_IN(); 6044 PUSH32(esp, eax); /* 0x47087184: push eax */ 6045 PUSH32(esp, edi); /* 0x47087185: push edi */ 6046 PUSH32(esp, 0); /* 0x47087186: push 0 */ 6047 PUSH32(esp, 0x2CEu); /* 0x47087188: push 0x2ce */ 6048 PUSH32(esp, 0x4710C610u); /* 0x4708718D: push 0x4710c610 */ 6049 ecx = esi; /* 0x47087192: mov ecx, esi */ 6050 RECOMP_ICALL(0x4703A340u); /* 0x47087194: call 0x4703a340 */ /* not lifted */ 6051 RECOMP_FLAGS_IN(); 6052 PUSH32(esp, 0x4710529Cu); /* 0x47087199: push 0x4710529c */ 6053 PUSH32(esp, 4); /* 0x4708719E: push 4 */ 6054 PUSH32(esp, esi); /* 0x470871A0: push esi */ 6055 RECOMP_ICALL(0x47039830u); /* 0x470871A1: call 0x47039830 */ /* not lifted */ 6056 RECOMP_FLAGS_IN(); 6057 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6058 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6059 esp = esp + 0xCu; /* 0x470871A6: add esp, 0xc */ 6060 _flag_k = FK_ADD; 6061 edi = POP32_VAL(esp); /* 0x470871A9: pop edi */ 6062 esi = POP32_VAL(esp); /* 0x470871AA: pop esi */ 6063 ebp = POP32_VAL(esp); /* 0x470871AB: pop ebp */ 6064 ebx = POP32_VAL(esp); /* 0x470871AC: pop ebx */ 6065 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470871AD: ret */ 6066 RECOMP_REGS_OUT(); 6067 } 6068 6069 void sub_470871B0(void) { 6070 int _fpu_cmp = 0; 6071 uint32_t _cf = 0; 6072 int _df = 1; 6073 uint32_t _flag_k = FK_NONE; 6074 uint32_t _flag_a = 0, _flag_b = 0; 6075 uint32_t _itail_tgt = 0; 6076 RECOMP_REGS_LOCALS 6077 RECOMP_ENTER(0x470871B0u); 6078 6079 L_470871B0: 6080 PUSH32(esp, ecx); /* 0x470871B0: push ecx */ 6081 PUSH32(esp, ebx); /* 0x470871B1: push ebx */ 6082 PUSH32(esp, ebp); /* 0x470871B2: push ebp */ 6083 PUSH32(esp, esi); /* 0x470871B3: push esi */ 6084 PUSH32(esp, edi); /* 0x470871B4: push edi */ 6085 edi = MEM32(0x470AC150); /* 0x470871B5: mov edi, dword ptr [0x470ac150] */ 6086 ebp = ecx; /* 0x470871BB: mov ebp, ecx */ 6087 RECOMP_ICALL(edi); /* 0x470871BD: call edi */ 6088 RECOMP_FLAGS_IN(); 6089 ebx = MEM32(0x470AC3C8); /* 0x470871BF: mov ebx, dword ptr [0x470ac3c8] */ 6090 esi = eax; /* 0x470871C5: mov esi, eax */ 6091 RECOMP_ICALL(ebx); /* 0x470871C7: call ebx */ 6092 RECOMP_FLAGS_IN(); 6093 eax = MEM32(eax); /* 0x470871C9: mov eax, dword ptr [eax] */ 6094 /* test eax, eax */ /* 0x470871CB: test eax, eax */ 6095 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6096 _cf = 0; 6097 _flag_k = FK_TEST; 6098 MEM32(esp + 0x10) = esi; /* 0x470871CD: mov dword ptr [esp + 0x10], esi */ 6099 if (TEST_Z(_flag_a, _flag_b)) goto L_470871D7; /* 0x470871D1: je 0x470871d7 */ 6100 L_470871D3: 6101 MEM32(esp + 0x10) = eax; /* 0x470871D3: mov dword ptr [esp + 0x10], eax */ 6102 L_470871D7: 6103 RECOMP_ICALL(0x47039020u); /* 0x470871D7: call 0x47039020 */ /* not lifted */ 6104 RECOMP_FLAGS_IN(); 6105 esi = eax; /* 0x470871DC: mov esi, eax */ 6106 ecx = esi; /* 0x470871DE: mov ecx, esi */ 6107 RECOMP_ICALL(0x4703B210u); /* 0x470871E0: call 0x4703b210 */ /* not lifted */ 6108 RECOMP_FLAGS_IN(); 6109 PUSH32(esp, eax); /* 0x470871E5: push eax */ 6110 ecx = esi; /* 0x470871E6: mov ecx, esi */ 6111 RECOMP_ICALL(0x4703B240u); /* 0x470871E8: call 0x4703b240 */ /* not lifted */ 6112 RECOMP_FLAGS_IN(); 6113 PUSH32(esp, eax); /* 0x470871ED: push eax */ 6114 ecx = esi; /* 0x470871EE: mov ecx, esi */ 6115 RECOMP_ICALL(0x4703B080u); /* 0x470871F0: call 0x4703b080 */ /* not lifted */ 6116 RECOMP_FLAGS_IN(); 6117 PUSH32(esp, eax); /* 0x470871F5: push eax */ 6118 eax = MEM32(esp + 0x1C); /* 0x470871F6: mov eax, dword ptr [esp + 0x1c] */ 6119 PUSH32(esp, eax); /* 0x470871FA: push eax */ 6120 PUSH32(esp, 0); /* 0x470871FB: push 0 */ 6121 PUSH32(esp, 0x2D8u); /* 0x470871FD: push 0x2d8 */ 6122 PUSH32(esp, 0x4710C610u); /* 0x47087202: push 0x4710c610 */ 6123 ecx = esi; /* 0x47087207: mov ecx, esi */ 6124 RECOMP_ICALL(0x4703A340u); /* 0x47087209: call 0x4703a340 */ /* not lifted */ 6125 RECOMP_FLAGS_IN(); 6126 PUSH32(esp, ebp); /* 0x4708720E: push ebp */ 6127 PUSH32(esp, 0x471052CCu); /* 0x4708720F: push 0x471052cc */ 6128 PUSH32(esp, 4); /* 0x47087214: push 4 */ 6129 PUSH32(esp, esi); /* 0x47087216: push esi */ 6130 RECOMP_ICALL(0x47039830u); /* 0x47087217: call 0x47039830 */ /* not lifted */ 6131 RECOMP_FLAGS_IN(); 6132 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6133 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6134 esp = esp + 0x10u; /* 0x4708721C: add esp, 0x10 */ 6135 _flag_k = FK_ADD; 6136 RECOMP_ICALL(edi); /* 0x4708721F: call edi */ 6137 RECOMP_FLAGS_IN(); 6138 esi = eax; /* 0x47087221: mov esi, eax */ 6139 RECOMP_ICALL(ebx); /* 0x47087223: call ebx */ 6140 RECOMP_FLAGS_IN(); 6141 eax = MEM32(eax); /* 0x47087225: mov eax, dword ptr [eax] */ 6142 /* test eax, eax */ /* 0x47087227: test eax, eax */ 6143 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6144 _cf = 0; 6145 _flag_k = FK_TEST; 6146 MEM32(esp + 0x10) = esi; /* 0x47087229: mov dword ptr [esp + 0x10], esi */ 6147 if (TEST_Z(_flag_a, _flag_b)) goto L_47087233; /* 0x4708722D: je 0x47087233 */ 6148 L_4708722F: 6149 MEM32(esp + 0x10) = eax; /* 0x4708722F: mov dword ptr [esp + 0x10], eax */ 6150 L_47087233: 6151 RECOMP_ICALL(0x47039020u); /* 0x47087233: call 0x47039020 */ /* not lifted */ 6152 RECOMP_FLAGS_IN(); 6153 esi = eax; /* 0x47087238: mov esi, eax */ 6154 ecx = esi; /* 0x4708723A: mov ecx, esi */ 6155 RECOMP_ICALL(0x4703B210u); /* 0x4708723C: call 0x4703b210 */ /* not lifted */ 6156 RECOMP_FLAGS_IN(); 6157 PUSH32(esp, eax); /* 0x47087241: push eax */ 6158 ecx = esi; /* 0x47087242: mov ecx, esi */ 6159 RECOMP_ICALL(0x4703B240u); /* 0x47087244: call 0x4703b240 */ /* not lifted */ 6160 RECOMP_FLAGS_IN(); 6161 PUSH32(esp, eax); /* 0x47087249: push eax */ 6162 ecx = esi; /* 0x4708724A: mov ecx, esi */ 6163 RECOMP_ICALL(0x4703B080u); /* 0x4708724C: call 0x4703b080 */ /* not lifted */ 6164 RECOMP_FLAGS_IN(); 6165 ecx = MEM32(esp + 0x18); /* 0x47087251: mov ecx, dword ptr [esp + 0x18] */ 6166 PUSH32(esp, eax); /* 0x47087255: push eax */ 6167 PUSH32(esp, ecx); /* 0x47087256: push ecx */ 6168 PUSH32(esp, 0); /* 0x47087257: push 0 */ 6169 PUSH32(esp, 0x2D9u); /* 0x47087259: push 0x2d9 */ 6170 PUSH32(esp, 0x4710C610u); /* 0x4708725E: push 0x4710c610 */ 6171 ecx = esi; /* 0x47087263: mov ecx, esi */ 6172 RECOMP_ICALL(0x4703A340u); /* 0x47087265: call 0x4703a340 */ /* not lifted */ 6173 RECOMP_FLAGS_IN(); 6174 PUSH32(esp, 0x47105590u); /* 0x4708726A: push 0x47105590 */ 6175 PUSH32(esp, 4); /* 0x4708726F: push 4 */ 6176 PUSH32(esp, esi); /* 0x47087271: push esi */ 6177 RECOMP_ICALL(0x47039830u); /* 0x47087272: call 0x47039830 */ /* not lifted */ 6178 RECOMP_FLAGS_IN(); 6179 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6180 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6181 esp = esp + 0xCu; /* 0x47087277: add esp, 0xc */ 6182 _flag_k = FK_ADD; 6183 RECOMP_ICALL(edi); /* 0x4708727A: call edi */ 6184 RECOMP_FLAGS_IN(); 6185 esi = eax; /* 0x4708727C: mov esi, eax */ 6186 RECOMP_ICALL(ebx); /* 0x4708727E: call ebx */ 6187 RECOMP_FLAGS_IN(); 6188 eax = MEM32(eax); /* 0x47087280: mov eax, dword ptr [eax] */ 6189 /* test eax, eax */ /* 0x47087282: test eax, eax */ 6190 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6191 _cf = 0; 6192 _flag_k = FK_TEST; 6193 MEM32(esp + 0x10) = esi; /* 0x47087284: mov dword ptr [esp + 0x10], esi */ 6194 if (TEST_Z(_flag_a, _flag_b)) goto L_4708728E; /* 0x47087288: je 0x4708728e */ 6195 L_4708728A: 6196 MEM32(esp + 0x10) = eax; /* 0x4708728A: mov dword ptr [esp + 0x10], eax */ 6197 L_4708728E: 6198 RECOMP_ICALL(0x47039020u); /* 0x4708728E: call 0x47039020 */ /* not lifted */ 6199 RECOMP_FLAGS_IN(); 6200 esi = eax; /* 0x47087293: mov esi, eax */ 6201 ecx = esi; /* 0x47087295: mov ecx, esi */ 6202 RECOMP_ICALL(0x4703B210u); /* 0x47087297: call 0x4703b210 */ /* not lifted */ 6203 RECOMP_FLAGS_IN(); 6204 PUSH32(esp, eax); /* 0x4708729C: push eax */ 6205 ecx = esi; /* 0x4708729D: mov ecx, esi */ 6206 RECOMP_ICALL(0x4703B240u); /* 0x4708729F: call 0x4703b240 */ /* not lifted */ 6207 RECOMP_FLAGS_IN(); 6208 PUSH32(esp, eax); /* 0x470872A4: push eax */ 6209 ecx = esi; /* 0x470872A5: mov ecx, esi */ 6210 RECOMP_ICALL(0x4703B080u); /* 0x470872A7: call 0x4703b080 */ /* not lifted */ 6211 RECOMP_FLAGS_IN(); 6212 edx = MEM32(esp + 0x18); /* 0x470872AC: mov edx, dword ptr [esp + 0x18] */ 6213 PUSH32(esp, eax); /* 0x470872B0: push eax */ 6214 PUSH32(esp, edx); /* 0x470872B1: push edx */ 6215 PUSH32(esp, 0); /* 0x470872B2: push 0 */ 6216 PUSH32(esp, 0x2DDu); /* 0x470872B4: push 0x2dd */ 6217 PUSH32(esp, 0x4710C610u); /* 0x470872B9: push 0x4710c610 */ 6218 ecx = esi; /* 0x470872BE: mov ecx, esi */ 6219 RECOMP_ICALL(0x4703A340u); /* 0x470872C0: call 0x4703a340 */ /* not lifted */ 6220 RECOMP_FLAGS_IN(); 6221 eax = MEM32(ebp); /* 0x470872C5: mov eax, dword ptr [ebp] */ 6222 PUSH32(esp, eax); /* 0x470872C8: push eax */ 6223 PUSH32(esp, 0x4710C6ECu); /* 0x470872C9: push 0x4710c6ec */ 6224 PUSH32(esp, 4); /* 0x470872CE: push 4 */ 6225 PUSH32(esp, esi); /* 0x470872D0: push esi */ 6226 RECOMP_ICALL(0x47039830u); /* 0x470872D1: call 0x47039830 */ /* not lifted */ 6227 RECOMP_FLAGS_IN(); 6228 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6229 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6230 esp = esp + 0x10u; /* 0x470872D6: add esp, 0x10 */ 6231 _flag_k = FK_ADD; 6232 RECOMP_ICALL(edi); /* 0x470872D9: call edi */ 6233 RECOMP_FLAGS_IN(); 6234 esi = eax; /* 0x470872DB: mov esi, eax */ 6235 RECOMP_ICALL(ebx); /* 0x470872DD: call ebx */ 6236 RECOMP_FLAGS_IN(); 6237 eax = MEM32(eax); /* 0x470872DF: mov eax, dword ptr [eax] */ 6238 /* test eax, eax */ /* 0x470872E1: test eax, eax */ 6239 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6240 _cf = 0; 6241 _flag_k = FK_TEST; 6242 edi = esi; /* 0x470872E3: mov edi, esi */ 6243 if (TEST_Z(_flag_a, _flag_b)) goto L_470872E9; /* 0x470872E5: je 0x470872e9 */ 6244 L_470872E7: 6245 edi = eax; /* 0x470872E7: mov edi, eax */ 6246 L_470872E9: 6247 RECOMP_ICALL(0x47039020u); /* 0x470872E9: call 0x47039020 */ /* not lifted */ 6248 RECOMP_FLAGS_IN(); 6249 esi = eax; /* 0x470872EE: mov esi, eax */ 6250 ecx = esi; /* 0x470872F0: mov ecx, esi */ 6251 RECOMP_ICALL(0x4703B210u); /* 0x470872F2: call 0x4703b210 */ /* not lifted */ 6252 RECOMP_FLAGS_IN(); 6253 PUSH32(esp, eax); /* 0x470872F7: push eax */ 6254 ecx = esi; /* 0x470872F8: mov ecx, esi */ 6255 RECOMP_ICALL(0x4703B240u); /* 0x470872FA: call 0x4703b240 */ /* not lifted */ 6256 RECOMP_FLAGS_IN(); 6257 PUSH32(esp, eax); /* 0x470872FF: push eax */ 6258 ecx = esi; /* 0x47087300: mov ecx, esi */ 6259 RECOMP_ICALL(0x4703B080u); /* 0x47087302: call 0x4703b080 */ /* not lifted */ 6260 RECOMP_FLAGS_IN(); 6261 PUSH32(esp, eax); /* 0x47087307: push eax */ 6262 PUSH32(esp, edi); /* 0x47087308: push edi */ 6263 PUSH32(esp, 0); /* 0x47087309: push 0 */ 6264 PUSH32(esp, 0x2DFu); /* 0x4708730B: push 0x2df */ 6265 PUSH32(esp, 0x4710C610u); /* 0x47087310: push 0x4710c610 */ 6266 ecx = esi; /* 0x47087315: mov ecx, esi */ 6267 RECOMP_ICALL(0x4703A340u); /* 0x47087317: call 0x4703a340 */ /* not lifted */ 6268 RECOMP_FLAGS_IN(); 6269 PUSH32(esp, 0x4710529Cu); /* 0x4708731C: push 0x4710529c */ 6270 PUSH32(esp, 4); /* 0x47087321: push 4 */ 6271 PUSH32(esp, esi); /* 0x47087323: push esi */ 6272 RECOMP_ICALL(0x47039830u); /* 0x47087324: call 0x47039830 */ /* not lifted */ 6273 RECOMP_FLAGS_IN(); 6274 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6275 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6276 esp = esp + 0xCu; /* 0x47087329: add esp, 0xc */ 6277 _flag_k = FK_ADD; 6278 edi = POP32_VAL(esp); /* 0x4708732C: pop edi */ 6279 esi = POP32_VAL(esp); /* 0x4708732D: pop esi */ 6280 ebp = POP32_VAL(esp); /* 0x4708732E: pop ebp */ 6281 ebx = POP32_VAL(esp); /* 0x4708732F: pop ebx */ 6282 ecx = POP32_VAL(esp); /* 0x47087330: pop ecx */ 6283 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47087331: ret */ 6284 RECOMP_REGS_OUT(); 6285 } 6286 6287 void sub_47087340(void) { 6288 int _fpu_cmp = 0; 6289 uint32_t _cf = 0; 6290 int _df = 1; 6291 uint32_t _flag_k = FK_NONE; 6292 uint32_t _flag_a = 0, _flag_b = 0; 6293 uint32_t _itail_tgt = 0; 6294 RECOMP_REGS_LOCALS 6295 RECOMP_ENTER(0x47087340u); 6296 6297 L_47087340: 6298 edx = MEM32(esp + 0x8); /* 0x47087340: mov edx, dword ptr [esp + 8] */ 6299 eax = MEM32(esp + 0x4); /* 0x47087344: mov eax, dword ptr [esp + 4] */ 6300 PUSH32(esp, edi); /* 0x47087348: push edi */ 6301 edi = ecx; /* 0x47087349: mov edi, ecx */ 6302 ecx = MEM32(esp + 0x10); /* 0x4708734B: mov ecx, dword ptr [esp + 0x10] */ 6303 PUSH32(esp, ecx); /* 0x4708734F: push ecx */ 6304 PUSH32(esp, edx); /* 0x47087350: push edx */ 6305 PUSH32(esp, 1); /* 0x47087351: push 1 */ 6306 PUSH32(esp, edi); /* 0x47087353: push edi */ 6307 MEM32(edi + 0x28) = eax; /* 0x47087354: mov dword ptr [edi + 0x28], eax */ 6308 MEM32(edi + 0x2C) = 0; /* 0x47087357: mov dword ptr [edi + 0x2c], 0 */ 6309 RECOMP_ICALL(0x47057C10u); /* 0x4708735E: call 0x47057c10 */ /* not lifted */ 6310 RECOMP_FLAGS_IN(); 6311 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6312 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6313 esp = esp + 0x10u; /* 0x47087363: add esp, 0x10 */ 6314 _flag_k = FK_ADD; 6315 /* test eax, eax */ /* 0x47087366: test eax, eax */ 6316 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6317 _cf = 0; 6318 _flag_k = FK_TEST; 6319 if (TEST_Z(_flag_a, _flag_b)) goto L_470873D5; /* 0x47087368: je 0x470873d5 */ 6320 L_4708736A: 6321 PUSH32(esp, ebx); /* 0x4708736A: push ebx */ 6322 PUSH32(esp, esi); /* 0x4708736B: push esi */ 6323 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4708736C: call dword ptr [0x470ac150] */ 6324 RECOMP_FLAGS_IN(); 6325 ebx = eax; /* 0x47087372: mov ebx, eax */ 6326 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47087374: call dword ptr [0x470ac3c8] */ 6327 RECOMP_FLAGS_IN(); 6328 eax = MEM32(eax); /* 0x4708737A: mov eax, dword ptr [eax] */ 6329 /* test eax, eax */ /* 0x4708737C: test eax, eax */ 6330 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6331 _cf = 0; 6332 _flag_k = FK_TEST; 6333 if (TEST_Z(_flag_a, _flag_b)) goto L_47087382; /* 0x4708737E: je 0x47087382 */ 6334 L_47087380: 6335 ebx = eax; /* 0x47087380: mov ebx, eax */ 6336 L_47087382: 6337 RECOMP_ICALL(0x47039020u); /* 0x47087382: call 0x47039020 */ /* not lifted */ 6338 RECOMP_FLAGS_IN(); 6339 esi = eax; /* 0x47087387: mov esi, eax */ 6340 ecx = esi; /* 0x47087389: mov ecx, esi */ 6341 RECOMP_ICALL(0x4703B210u); /* 0x4708738B: call 0x4703b210 */ /* not lifted */ 6342 RECOMP_FLAGS_IN(); 6343 PUSH32(esp, eax); /* 0x47087390: push eax */ 6344 ecx = esi; /* 0x47087391: mov ecx, esi */ 6345 RECOMP_ICALL(0x4703B240u); /* 0x47087393: call 0x4703b240 */ /* not lifted */ 6346 RECOMP_FLAGS_IN(); 6347 PUSH32(esp, eax); /* 0x47087398: push eax */ 6348 ecx = esi; /* 0x47087399: mov ecx, esi */ 6349 RECOMP_ICALL(0x4703B080u); /* 0x4708739B: call 0x4703b080 */ /* not lifted */ 6350 RECOMP_FLAGS_IN(); 6351 PUSH32(esp, eax); /* 0x470873A0: push eax */ 6352 PUSH32(esp, ebx); /* 0x470873A1: push ebx */ 6353 PUSH32(esp, 0xFFFFFFFFu); /* 0x470873A2: push -1 */ 6354 PUSH32(esp, 0x2F6u); /* 0x470873A4: push 0x2f6 */ 6355 PUSH32(esp, 0x4710C610u); /* 0x470873A9: push 0x4710c610 */ 6356 ecx = esi; /* 0x470873AE: mov ecx, esi */ 6357 RECOMP_ICALL(0x4703A340u); /* 0x470873B0: call 0x4703a340 */ /* not lifted */ 6358 RECOMP_FLAGS_IN(); 6359 PUSH32(esp, 0x4710C6FCu); /* 0x470873B5: push 0x4710c6fc */ 6360 PUSH32(esp, 0x471055F0u); /* 0x470873BA: push 0x471055f0 */ 6361 PUSH32(esp, 0x80u); /* 0x470873BF: push 0x80 */ 6362 PUSH32(esp, esi); /* 0x470873C4: push esi */ 6363 RECOMP_ICALL(0x47039830u); /* 0x470873C5: call 0x47039830 */ /* not lifted */ 6364 RECOMP_FLAGS_IN(); 6365 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6366 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6367 esp = esp + 0x10u; /* 0x470873CA: add esp, 0x10 */ 6368 _flag_k = FK_ADD; 6369 esi = POP32_VAL(esp); /* 0x470873CD: pop esi */ 6370 ebx = POP32_VAL(esp); /* 0x470873CE: pop ebx */ 6371 eax = edi; /* 0x470873CF: mov eax, edi */ 6372 edi = POP32_VAL(esp); /* 0x470873D1: pop edi */ 6373 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470873D2: ret 0xc */ 6374 L_470873D5: 6375 eax = edi; /* 0x470873D5: mov eax, edi */ 6376 edi = POP32_VAL(esp); /* 0x470873D7: pop edi */ 6377 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470873D8: ret 0xc */ 6378 RECOMP_REGS_OUT(); 6379 } 6380 6381 void sub_470873E0(void) { 6382 int _fpu_cmp = 0; 6383 uint32_t _cf = 0; 6384 int _df = 1; 6385 uint32_t _flag_k = FK_NONE; 6386 uint32_t _flag_a = 0, _flag_b = 0; 6387 uint32_t _itail_tgt = 0; 6388 RECOMP_REGS_LOCALS 6389 RECOMP_ENTER(0x470873E0u); 6390 6391 L_470873E0: 6392 eax = MEM32(esp + 0x4); /* 0x470873E0: mov eax, dword ptr [esp + 4] */ 6393 edx = MEM32(esp + 0xC); /* 0x470873E4: mov edx, dword ptr [esp + 0xc] */ 6394 PUSH32(esp, edi); /* 0x470873E8: push edi */ 6395 edi = ecx; /* 0x470873E9: mov edi, ecx */ 6396 ecx = MEM32(esp + 0x14); /* 0x470873EB: mov ecx, dword ptr [esp + 0x14] */ 6397 PUSH32(esp, ecx); /* 0x470873EF: push ecx */ 6398 MEM32(edi + 0x28) = eax; /* 0x470873F0: mov dword ptr [edi + 0x28], eax */ 6399 eax = MEM32(esp + 0x10); /* 0x470873F3: mov eax, dword ptr [esp + 0x10] */ 6400 PUSH32(esp, edx); /* 0x470873F7: push edx */ 6401 PUSH32(esp, eax); /* 0x470873F8: push eax */ 6402 PUSH32(esp, edi); /* 0x470873F9: push edi */ 6403 MEM32(edi + 0x2C) = 0; /* 0x470873FA: mov dword ptr [edi + 0x2c], 0 */ 6404 RECOMP_ICALL(0x47057A70u); /* 0x47087401: call 0x47057a70 */ /* not lifted */ 6405 RECOMP_FLAGS_IN(); 6406 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6407 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6408 esp = esp + 0x10u; /* 0x47087406: add esp, 0x10 */ 6409 _flag_k = FK_ADD; 6410 /* test eax, eax */ /* 0x47087409: test eax, eax */ 6411 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6412 _cf = 0; 6413 _flag_k = FK_TEST; 6414 if (TEST_Z(_flag_a, _flag_b)) goto L_47087478; /* 0x4708740B: je 0x47087478 */ 6415 L_4708740D: 6416 PUSH32(esp, ebx); /* 0x4708740D: push ebx */ 6417 PUSH32(esp, esi); /* 0x4708740E: push esi */ 6418 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4708740F: call dword ptr [0x470ac150] */ 6419 RECOMP_FLAGS_IN(); 6420 ebx = eax; /* 0x47087415: mov ebx, eax */ 6421 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47087417: call dword ptr [0x470ac3c8] */ 6422 RECOMP_FLAGS_IN(); 6423 eax = MEM32(eax); /* 0x4708741D: mov eax, dword ptr [eax] */ 6424 /* test eax, eax */ /* 0x4708741F: test eax, eax */ 6425 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6426 _cf = 0; 6427 _flag_k = FK_TEST; 6428 if (TEST_Z(_flag_a, _flag_b)) goto L_47087425; /* 0x47087421: je 0x47087425 */ 6429 L_47087423: 6430 ebx = eax; /* 0x47087423: mov ebx, eax */ 6431 L_47087425: 6432 RECOMP_ICALL(0x47039020u); /* 0x47087425: call 0x47039020 */ /* not lifted */ 6433 RECOMP_FLAGS_IN(); 6434 esi = eax; /* 0x4708742A: mov esi, eax */ 6435 ecx = esi; /* 0x4708742C: mov ecx, esi */ 6436 RECOMP_ICALL(0x4703B210u); /* 0x4708742E: call 0x4703b210 */ /* not lifted */ 6437 RECOMP_FLAGS_IN(); 6438 PUSH32(esp, eax); /* 0x47087433: push eax */ 6439 ecx = esi; /* 0x47087434: mov ecx, esi */ 6440 RECOMP_ICALL(0x4703B240u); /* 0x47087436: call 0x4703b240 */ /* not lifted */ 6441 RECOMP_FLAGS_IN(); 6442 PUSH32(esp, eax); /* 0x4708743B: push eax */ 6443 ecx = esi; /* 0x4708743C: mov ecx, esi */ 6444 RECOMP_ICALL(0x4703B080u); /* 0x4708743E: call 0x4703b080 */ /* not lifted */ 6445 RECOMP_FLAGS_IN(); 6446 PUSH32(esp, eax); /* 0x47087443: push eax */ 6447 PUSH32(esp, ebx); /* 0x47087444: push ebx */ 6448 PUSH32(esp, 0xFFFFFFFFu); /* 0x47087445: push -1 */ 6449 PUSH32(esp, 0x30Cu); /* 0x47087447: push 0x30c */ 6450 PUSH32(esp, 0x4710C610u); /* 0x4708744C: push 0x4710c610 */ 6451 ecx = esi; /* 0x47087451: mov ecx, esi */ 6452 RECOMP_ICALL(0x4703A340u); /* 0x47087453: call 0x4703a340 */ /* not lifted */ 6453 RECOMP_FLAGS_IN(); 6454 PUSH32(esp, 0x4710C6FCu); /* 0x47087458: push 0x4710c6fc */ 6455 PUSH32(esp, 0x471055F0u); /* 0x4708745D: push 0x471055f0 */ 6456 PUSH32(esp, 0x80u); /* 0x47087462: push 0x80 */ 6457 PUSH32(esp, esi); /* 0x47087467: push esi */ 6458 RECOMP_ICALL(0x47039830u); /* 0x47087468: call 0x47039830 */ /* not lifted */ 6459 RECOMP_FLAGS_IN(); 6460 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6461 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6462 esp = esp + 0x10u; /* 0x4708746D: add esp, 0x10 */ 6463 _flag_k = FK_ADD; 6464 esi = POP32_VAL(esp); /* 0x47087470: pop esi */ 6465 ebx = POP32_VAL(esp); /* 0x47087471: pop ebx */ 6466 eax = edi; /* 0x47087472: mov eax, edi */ 6467 edi = POP32_VAL(esp); /* 0x47087474: pop edi */ 6468 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47087475: ret 0x10 */ 6469 L_47087478: 6470 eax = edi; /* 0x47087478: mov eax, edi */ 6471 edi = POP32_VAL(esp); /* 0x4708747A: pop edi */ 6472 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4708747B: ret 0x10 */ 6473 RECOMP_REGS_OUT(); 6474 } 6475 6476 void sub_47087480(void) { 6477 int _fpu_cmp = 0; 6478 uint32_t _cf = 0; 6479 int _df = 1; 6480 uint32_t _flag_k = FK_NONE; 6481 uint32_t _flag_a = 0, _flag_b = 0; 6482 uint32_t _itail_tgt = 0; 6483 RECOMP_REGS_LOCALS 6484 RECOMP_ENTER(0x47087480u); 6485 6486 L_47087480: 6487 PUSH32(esp, ebx); /* 0x47087480: push ebx */ 6488 PUSH32(esp, esi); /* 0x47087481: push esi */ 6489 esi = ecx; /* 0x47087482: mov esi, ecx */ 6490 eax = MEM32(esi + 0x2C); /* 0x47087484: mov eax, dword ptr [esi + 0x2c] */ 6491 /* test eax, eax */ /* 0x47087487: test eax, eax */ 6492 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6493 _cf = 0; 6494 _flag_k = FK_TEST; 6495 PUSH32(esp, edi); /* 0x47087489: push edi */ 6496 if (TEST_NZ(_flag_a, _flag_b)) goto L_470874CF; /* 0x4708748A: jne 0x470874cf */ 6497 L_4708748C: 6498 PUSH32(esp, esi); /* 0x4708748C: push esi */ 6499 MEM32(esi + 0x2C) = 1; /* 0x4708748D: mov dword ptr [esi + 0x2c], 1 */ 6500 RECOMP_ICALL(0x47057A00u); /* 0x47087494: call 0x47057a00 */ /* not lifted */ 6501 RECOMP_FLAGS_IN(); 6502 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6503 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6504 esp = esp + 4; /* 0x47087499: add esp, 4 */ 6505 _flag_k = FK_ADD; 6506 /* cmp eax, 0xFFFFFFFFu */ /* 0x4708749C: cmp eax, -1 */ 6507 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 6508 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6509 _flag_k = FK_CMP; 6510 if (CMP_NE(_flag_a, _flag_b)) goto L_470874CF; /* 0x4708749F: jne 0x470874cf */ 6511 L_470874A1: 6512 ebx = MEM32(0x470AC3C8); /* 0x470874A1: mov ebx, dword ptr [0x470ac3c8] */ 6513 edi = MEM32(0x470AC12C); /* 0x470874A7: mov edi, dword ptr [0x470ac12c] */ 6514 L_470874AD: 6515 RECOMP_ICALL(ebx); /* 0x470874AD: call ebx */ 6516 RECOMP_FLAGS_IN(); 6517 /* cmp MEM32(eax), 0x10u */ /* 0x470874AF: cmp dword ptr [eax], 0x10 */ 6518 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0x10u); 6519 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6520 _flag_k = FK_CMP; 6521 if (CMP_NE(_flag_a, _flag_b)) goto L_470874CF; /* 0x470874B2: jne 0x470874cf */ 6522 L_470874B4: 6523 PUSH32(esp, esi); /* 0x470874B4: push esi */ 6524 RECOMP_ICALL(0x47057E10u); /* 0x470874B5: call 0x47057e10 */ /* not lifted */ 6525 RECOMP_FLAGS_IN(); 6526 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6527 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6528 esp = esp + 4; /* 0x470874BA: add esp, 4 */ 6529 _flag_k = FK_ADD; 6530 PUSH32(esp, 0); /* 0x470874BD: push 0 */ 6531 RECOMP_ICALL(edi); /* 0x470874BF: call edi */ 6532 RECOMP_FLAGS_IN(); 6533 PUSH32(esp, esi); /* 0x470874C1: push esi */ 6534 RECOMP_ICALL(0x47057A00u); /* 0x470874C2: call 0x47057a00 */ /* not lifted */ 6535 RECOMP_FLAGS_IN(); 6536 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6537 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6538 esp = esp + 4; /* 0x470874C7: add esp, 4 */ 6539 _flag_k = FK_ADD; 6540 /* cmp eax, 0xFFFFFFFFu */ /* 0x470874CA: cmp eax, -1 */ 6541 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 6542 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6543 _flag_k = FK_CMP; 6544 RECOMP_BACKEDGE(); 6545 if (CMP_EQ(_flag_a, _flag_b)) goto L_470874AD; /* 0x470874CD: je 0x470874ad */ 6546 L_470874CF: 6547 edi = POP32_VAL(esp); /* 0x470874CF: pop edi */ 6548 esi = POP32_VAL(esp); /* 0x470874D0: pop esi */ 6549 ebx = POP32_VAL(esp); /* 0x470874D1: pop ebx */ 6550 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470874D2: ret */ 6551 RECOMP_REGS_OUT(); 6552 } 6553 6554 void sub_470874E0(void) { 6555 int _fpu_cmp = 0; 6556 uint32_t _cf = 0; 6557 int _df = 1; 6558 uint32_t _flag_k = FK_NONE; 6559 uint32_t _flag_a = 0, _flag_b = 0; 6560 uint32_t _itail_tgt = 0; 6561 RECOMP_REGS_LOCALS 6562 RECOMP_ENTER(0x470874E0u); 6563 6564 L_470874E0: 6565 eax = MEM32(ecx + 0x28); /* 0x470874E0: mov eax, dword ptr [ecx + 0x28] */ 6566 PUSH32(esp, eax); /* 0x470874E3: push eax */ 6567 PUSH32(esp, ecx); /* 0x470874E4: push ecx */ 6568 RECOMP_ICALL(0x470584E0u); /* 0x470874E5: call 0x470584e0 */ /* not lifted */ 6569 RECOMP_FLAGS_IN(); 6570 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6571 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6572 esp = esp + 8; /* 0x470874EA: add esp, 8 */ 6573 _flag_k = FK_ADD; 6574 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470874ED: ret */ 6575 RECOMP_REGS_OUT(); 6576 } 6577 6578 void sub_470874F0(void) { 6579 int _fpu_cmp = 0; 6580 uint32_t _cf = 0; 6581 int _df = 1; 6582 uint32_t _flag_k = FK_NONE; 6583 uint32_t _flag_a = 0, _flag_b = 0; 6584 uint32_t _itail_tgt = 0; 6585 RECOMP_REGS_LOCALS 6586 RECOMP_ENTER(0x470874F0u); 6587 6588 L_470874F0: 6589 eax = MEM32(esp + 0x8); /* 0x470874F0: mov eax, dword ptr [esp + 8] */ 6590 edx = MEM32(esp + 0x4); /* 0x470874F4: mov edx, dword ptr [esp + 4] */ 6591 PUSH32(esp, eax); /* 0x470874F8: push eax */ 6592 PUSH32(esp, edx); /* 0x470874F9: push edx */ 6593 PUSH32(esp, ecx); /* 0x470874FA: push ecx */ 6594 RECOMP_ICALL(0x47058350u); /* 0x470874FB: call 0x47058350 */ /* not lifted */ 6595 RECOMP_FLAGS_IN(); 6596 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6597 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6598 esp = esp + 0xCu; /* 0x47087500: add esp, 0xc */ 6599 _flag_k = FK_ADD; 6600 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47087503: ret 8 */ 6601 RECOMP_REGS_OUT(); 6602 } 6603 6604 void sub_47087510(void) { 6605 int _fpu_cmp = 0; 6606 uint32_t _cf = 0; 6607 int _df = 1; 6608 uint32_t _flag_k = FK_NONE; 6609 uint32_t _flag_a = 0, _flag_b = 0; 6610 uint32_t _itail_tgt = 0; 6611 RECOMP_REGS_LOCALS 6612 RECOMP_ENTER(0x47087510u); 6613 6614 L_47087510: 6615 edx = MEM32(esp + 0x4); /* 0x47087510: mov edx, dword ptr [esp + 4] */ 6616 eax = MEM32(ecx + 0x28); /* 0x47087514: mov eax, dword ptr [ecx + 0x28] */ 6617 PUSH32(esp, edx); /* 0x47087517: push edx */ 6618 PUSH32(esp, eax); /* 0x47087518: push eax */ 6619 PUSH32(esp, ecx); /* 0x47087519: push ecx */ 6620 RECOMP_ICALL(0x47058350u); /* 0x4708751A: call 0x47058350 */ /* not lifted */ 6621 RECOMP_FLAGS_IN(); 6622 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6623 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6624 esp = esp + 0xCu; /* 0x4708751F: add esp, 0xc */ 6625 _flag_k = FK_ADD; 6626 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47087522: ret 4 */ 6627 RECOMP_REGS_OUT(); 6628 } 6629 6630 void sub_47087530(void) { 6631 int _fpu_cmp = 0; 6632 uint32_t _cf = 0; 6633 int _df = 1; 6634 uint32_t _flag_k = FK_NONE; 6635 uint32_t _flag_a = 0, _flag_b = 0; 6636 uint32_t _itail_tgt = 0; 6637 RECOMP_REGS_LOCALS 6638 RECOMP_ENTER(0x47087530u); 6639 6640 L_47087530: 6641 PUSH32(esp, ecx); /* 0x47087530: push ecx */ 6642 RECOMP_ICALL(0x47057DB0u); /* 0x47087531: call 0x47057db0 */ /* not lifted */ 6643 RECOMP_FLAGS_IN(); 6644 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6645 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6646 esp = esp + 4; /* 0x47087536: add esp, 4 */ 6647 _flag_k = FK_ADD; 6648 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47087539: ret */ 6649 RECOMP_REGS_OUT(); 6650 } 6651 6652 void sub_47087540(void) { 6653 int _fpu_cmp = 0; 6654 uint32_t _cf = 0; 6655 int _df = 1; 6656 uint32_t _flag_k = FK_NONE; 6657 uint32_t _flag_a = 0, _flag_b = 0; 6658 uint32_t _itail_tgt = 0; 6659 RECOMP_REGS_LOCALS 6660 RECOMP_ENTER(0x47087540u); 6661 6662 L_47087540: 6663 PUSH32(esp, ecx); /* 0x47087540: push ecx */ 6664 RECOMP_ICALL(0x47057E10u); /* 0x47087541: call 0x47057e10 */ /* not lifted */ 6665 RECOMP_FLAGS_IN(); 6666 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6667 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6668 esp = esp + 4; /* 0x47087546: add esp, 4 */ 6669 _flag_k = FK_ADD; 6670 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47087549: ret */ 6671 RECOMP_REGS_OUT(); 6672 } 6673 6674 void sub_47087550(void) { 6675 int _fpu_cmp = 0; 6676 uint32_t _cf = 0; 6677 int _df = 1; 6678 uint32_t _flag_k = FK_NONE; 6679 uint32_t _flag_a = 0, _flag_b = 0; 6680 uint32_t _itail_tgt = 0; 6681 RECOMP_REGS_LOCALS 6682 RECOMP_ENTER(0x47087550u); 6683 6684 L_47087550: 6685 PUSH32(esp, ecx); /* 0x47087550: push ecx */ 6686 PUSH32(esp, ebx); /* 0x47087551: push ebx */ 6687 ebx = MEM32(0x470AC150); /* 0x47087552: mov ebx, dword ptr [0x470ac150] */ 6688 PUSH32(esp, ebp); /* 0x47087558: push ebp */ 6689 PUSH32(esp, esi); /* 0x47087559: push esi */ 6690 PUSH32(esp, edi); /* 0x4708755A: push edi */ 6691 edi = ecx; /* 0x4708755B: mov edi, ecx */ 6692 RECOMP_ICALL(ebx); /* 0x4708755D: call ebx */ 6693 RECOMP_FLAGS_IN(); 6694 ebp = MEM32(0x470AC3C8); /* 0x4708755F: mov ebp, dword ptr [0x470ac3c8] */ 6695 esi = eax; /* 0x47087565: mov esi, eax */ 6696 RECOMP_ICALL(ebp); /* 0x47087567: call ebp */ 6697 RECOMP_FLAGS_IN(); 6698 eax = MEM32(eax); /* 0x47087569: mov eax, dword ptr [eax] */ 6699 /* test eax, eax */ /* 0x4708756B: test eax, eax */ 6700 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6701 _cf = 0; 6702 _flag_k = FK_TEST; 6703 MEM32(esp + 0x10) = esi; /* 0x4708756D: mov dword ptr [esp + 0x10], esi */ 6704 if (TEST_Z(_flag_a, _flag_b)) goto L_47087577; /* 0x47087571: je 0x47087577 */ 6705 L_47087573: 6706 MEM32(esp + 0x10) = eax; /* 0x47087573: mov dword ptr [esp + 0x10], eax */ 6707 L_47087577: 6708 RECOMP_ICALL(0x47039020u); /* 0x47087577: call 0x47039020 */ /* not lifted */ 6709 RECOMP_FLAGS_IN(); 6710 esi = eax; /* 0x4708757C: mov esi, eax */ 6711 ecx = esi; /* 0x4708757E: mov ecx, esi */ 6712 RECOMP_ICALL(0x4703B210u); /* 0x47087580: call 0x4703b210 */ /* not lifted */ 6713 RECOMP_FLAGS_IN(); 6714 PUSH32(esp, eax); /* 0x47087585: push eax */ 6715 ecx = esi; /* 0x47087586: mov ecx, esi */ 6716 RECOMP_ICALL(0x4703B240u); /* 0x47087588: call 0x4703b240 */ /* not lifted */ 6717 RECOMP_FLAGS_IN(); 6718 PUSH32(esp, eax); /* 0x4708758D: push eax */ 6719 ecx = esi; /* 0x4708758E: mov ecx, esi */ 6720 RECOMP_ICALL(0x4703B080u); /* 0x47087590: call 0x4703b080 */ /* not lifted */ 6721 RECOMP_FLAGS_IN(); 6722 PUSH32(esp, eax); /* 0x47087595: push eax */ 6723 eax = MEM32(esp + 0x1C); /* 0x47087596: mov eax, dword ptr [esp + 0x1c] */ 6724 PUSH32(esp, eax); /* 0x4708759A: push eax */ 6725 PUSH32(esp, 0); /* 0x4708759B: push 0 */ 6726 PUSH32(esp, 0x346u); /* 0x4708759D: push 0x346 */ 6727 PUSH32(esp, 0x4710C610u); /* 0x470875A2: push 0x4710c610 */ 6728 ecx = esi; /* 0x470875A7: mov ecx, esi */ 6729 RECOMP_ICALL(0x4703A340u); /* 0x470875A9: call 0x4703a340 */ /* not lifted */ 6730 RECOMP_FLAGS_IN(); 6731 PUSH32(esp, edi); /* 0x470875AE: push edi */ 6732 PUSH32(esp, 0x471052CCu); /* 0x470875AF: push 0x471052cc */ 6733 PUSH32(esp, 4); /* 0x470875B4: push 4 */ 6734 PUSH32(esp, esi); /* 0x470875B6: push esi */ 6735 RECOMP_ICALL(0x47039830u); /* 0x470875B7: call 0x47039830 */ /* not lifted */ 6736 RECOMP_FLAGS_IN(); 6737 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6738 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6739 esp = esp + 0x10u; /* 0x470875BC: add esp, 0x10 */ 6740 _flag_k = FK_ADD; 6741 ecx = edi; /* 0x470875BF: mov ecx, edi */ 6742 RECOMP_ICALL(0x470871B0u); /* 0x470875C1: call 0x470871b0 */ /* not lifted */ 6743 RECOMP_FLAGS_IN(); 6744 RECOMP_ICALL(ebx); /* 0x470875C6: call ebx */ 6745 RECOMP_FLAGS_IN(); 6746 esi = eax; /* 0x470875C8: mov esi, eax */ 6747 RECOMP_ICALL(ebp); /* 0x470875CA: call ebp */ 6748 RECOMP_FLAGS_IN(); 6749 eax = MEM32(eax); /* 0x470875CC: mov eax, dword ptr [eax] */ 6750 /* test eax, eax */ /* 0x470875CE: test eax, eax */ 6751 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6752 _cf = 0; 6753 _flag_k = FK_TEST; 6754 MEM32(esp + 0x10) = esi; /* 0x470875D0: mov dword ptr [esp + 0x10], esi */ 6755 if (TEST_Z(_flag_a, _flag_b)) goto L_470875DA; /* 0x470875D4: je 0x470875da */ 6756 L_470875D6: 6757 MEM32(esp + 0x10) = eax; /* 0x470875D6: mov dword ptr [esp + 0x10], eax */ 6758 L_470875DA: 6759 RECOMP_ICALL(0x47039020u); /* 0x470875DA: call 0x47039020 */ /* not lifted */ 6760 RECOMP_FLAGS_IN(); 6761 esi = eax; /* 0x470875DF: mov esi, eax */ 6762 ecx = esi; /* 0x470875E1: mov ecx, esi */ 6763 RECOMP_ICALL(0x4703B210u); /* 0x470875E3: call 0x4703b210 */ /* not lifted */ 6764 RECOMP_FLAGS_IN(); 6765 PUSH32(esp, eax); /* 0x470875E8: push eax */ 6766 ecx = esi; /* 0x470875E9: mov ecx, esi */ 6767 RECOMP_ICALL(0x4703B240u); /* 0x470875EB: call 0x4703b240 */ /* not lifted */ 6768 RECOMP_FLAGS_IN(); 6769 PUSH32(esp, eax); /* 0x470875F0: push eax */ 6770 ecx = esi; /* 0x470875F1: mov ecx, esi */ 6771 RECOMP_ICALL(0x4703B080u); /* 0x470875F3: call 0x4703b080 */ /* not lifted */ 6772 RECOMP_FLAGS_IN(); 6773 ecx = MEM32(esp + 0x18); /* 0x470875F8: mov ecx, dword ptr [esp + 0x18] */ 6774 PUSH32(esp, eax); /* 0x470875FC: push eax */ 6775 PUSH32(esp, ecx); /* 0x470875FD: push ecx */ 6776 PUSH32(esp, 0); /* 0x470875FE: push 0 */ 6777 PUSH32(esp, 0x348u); /* 0x47087600: push 0x348 */ 6778 PUSH32(esp, 0x4710C610u); /* 0x47087605: push 0x4710c610 */ 6779 ecx = esi; /* 0x4708760A: mov ecx, esi */ 6780 RECOMP_ICALL(0x4703A340u); /* 0x4708760C: call 0x4703a340 */ /* not lifted */ 6781 RECOMP_FLAGS_IN(); 6782 edx = MEM32(edi + 0x30); /* 0x47087611: mov edx, dword ptr [edi + 0x30] */ 6783 PUSH32(esp, edx); /* 0x47087614: push edx */ 6784 PUSH32(esp, 0x4710C734u); /* 0x47087615: push 0x4710c734 */ 6785 PUSH32(esp, 4); /* 0x4708761A: push 4 */ 6786 PUSH32(esp, esi); /* 0x4708761C: push esi */ 6787 RECOMP_ICALL(0x47039830u); /* 0x4708761D: call 0x47039830 */ /* not lifted */ 6788 RECOMP_FLAGS_IN(); 6789 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6790 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6791 esp = esp + 0x10u; /* 0x47087622: add esp, 0x10 */ 6792 _flag_k = FK_ADD; 6793 RECOMP_ICALL(ebx); /* 0x47087625: call ebx */ 6794 RECOMP_FLAGS_IN(); 6795 edi = eax; /* 0x47087627: mov edi, eax */ 6796 RECOMP_ICALL(ebp); /* 0x47087629: call ebp */ 6797 RECOMP_FLAGS_IN(); 6798 eax = MEM32(eax); /* 0x4708762B: mov eax, dword ptr [eax] */ 6799 /* test eax, eax */ /* 0x4708762D: test eax, eax */ 6800 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6801 _cf = 0; 6802 _flag_k = FK_TEST; 6803 if (TEST_Z(_flag_a, _flag_b)) goto L_47087633; /* 0x4708762F: je 0x47087633 */ 6804 L_47087631: 6805 edi = eax; /* 0x47087631: mov edi, eax */ 6806 L_47087633: 6807 RECOMP_ICALL(0x47039020u); /* 0x47087633: call 0x47039020 */ /* not lifted */ 6808 RECOMP_FLAGS_IN(); 6809 esi = eax; /* 0x47087638: mov esi, eax */ 6810 ecx = esi; /* 0x4708763A: mov ecx, esi */ 6811 RECOMP_ICALL(0x4703B210u); /* 0x4708763C: call 0x4703b210 */ /* not lifted */ 6812 RECOMP_FLAGS_IN(); 6813 PUSH32(esp, eax); /* 0x47087641: push eax */ 6814 ecx = esi; /* 0x47087642: mov ecx, esi */ 6815 RECOMP_ICALL(0x4703B240u); /* 0x47087644: call 0x4703b240 */ /* not lifted */ 6816 RECOMP_FLAGS_IN(); 6817 PUSH32(esp, eax); /* 0x47087649: push eax */ 6818 ecx = esi; /* 0x4708764A: mov ecx, esi */ 6819 RECOMP_ICALL(0x4703B080u); /* 0x4708764C: call 0x4703b080 */ /* not lifted */ 6820 RECOMP_FLAGS_IN(); 6821 PUSH32(esp, eax); /* 0x47087651: push eax */ 6822 PUSH32(esp, edi); /* 0x47087652: push edi */ 6823 PUSH32(esp, 0); /* 0x47087653: push 0 */ 6824 PUSH32(esp, 0x349u); /* 0x47087655: push 0x349 */ 6825 PUSH32(esp, 0x4710C610u); /* 0x4708765A: push 0x4710c610 */ 6826 ecx = esi; /* 0x4708765F: mov ecx, esi */ 6827 RECOMP_ICALL(0x4703A340u); /* 0x47087661: call 0x4703a340 */ /* not lifted */ 6828 RECOMP_FLAGS_IN(); 6829 PUSH32(esp, 0x47105590u); /* 0x47087666: push 0x47105590 */ 6830 PUSH32(esp, 4); /* 0x4708766B: push 4 */ 6831 PUSH32(esp, esi); /* 0x4708766D: push esi */ 6832 RECOMP_ICALL(0x47039830u); /* 0x4708766E: call 0x47039830 */ /* not lifted */ 6833 RECOMP_FLAGS_IN(); 6834 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6835 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6836 esp = esp + 0xCu; /* 0x47087673: add esp, 0xc */ 6837 _flag_k = FK_ADD; 6838 RECOMP_ICALL(ebx); /* 0x47087676: call ebx */ 6839 RECOMP_FLAGS_IN(); 6840 esi = eax; /* 0x47087678: mov esi, eax */ 6841 RECOMP_ICALL(ebp); /* 0x4708767A: call ebp */ 6842 RECOMP_FLAGS_IN(); 6843 eax = MEM32(eax); /* 0x4708767C: mov eax, dword ptr [eax] */ 6844 /* test eax, eax */ /* 0x4708767E: test eax, eax */ 6845 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6846 _cf = 0; 6847 _flag_k = FK_TEST; 6848 edi = esi; /* 0x47087680: mov edi, esi */ 6849 if (TEST_Z(_flag_a, _flag_b)) goto L_47087686; /* 0x47087682: je 0x47087686 */ 6850 L_47087684: 6851 edi = eax; /* 0x47087684: mov edi, eax */ 6852 L_47087686: 6853 RECOMP_ICALL(0x47039020u); /* 0x47087686: call 0x47039020 */ /* not lifted */ 6854 RECOMP_FLAGS_IN(); 6855 esi = eax; /* 0x4708768B: mov esi, eax */ 6856 ecx = esi; /* 0x4708768D: mov ecx, esi */ 6857 RECOMP_ICALL(0x4703B210u); /* 0x4708768F: call 0x4703b210 */ /* not lifted */ 6858 RECOMP_FLAGS_IN(); 6859 PUSH32(esp, eax); /* 0x47087694: push eax */ 6860 ecx = esi; /* 0x47087695: mov ecx, esi */ 6861 RECOMP_ICALL(0x4703B240u); /* 0x47087697: call 0x4703b240 */ /* not lifted */ 6862 RECOMP_FLAGS_IN(); 6863 PUSH32(esp, eax); /* 0x4708769C: push eax */ 6864 ecx = esi; /* 0x4708769D: mov ecx, esi */ 6865 RECOMP_ICALL(0x4703B080u); /* 0x4708769F: call 0x4703b080 */ /* not lifted */ 6866 RECOMP_FLAGS_IN(); 6867 PUSH32(esp, eax); /* 0x470876A4: push eax */ 6868 PUSH32(esp, edi); /* 0x470876A5: push edi */ 6869 PUSH32(esp, 0); /* 0x470876A6: push 0 */ 6870 PUSH32(esp, 0x34Au); /* 0x470876A8: push 0x34a */ 6871 PUSH32(esp, 0x4710C610u); /* 0x470876AD: push 0x4710c610 */ 6872 ecx = esi; /* 0x470876B2: mov ecx, esi */ 6873 RECOMP_ICALL(0x4703A340u); /* 0x470876B4: call 0x4703a340 */ /* not lifted */ 6874 RECOMP_FLAGS_IN(); 6875 PUSH32(esp, 0x4710529Cu); /* 0x470876B9: push 0x4710529c */ 6876 PUSH32(esp, 4); /* 0x470876BE: push 4 */ 6877 PUSH32(esp, esi); /* 0x470876C0: push esi */ 6878 RECOMP_ICALL(0x47039830u); /* 0x470876C1: call 0x47039830 */ /* not lifted */ 6879 RECOMP_FLAGS_IN(); 6880 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6881 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6882 esp = esp + 0xCu; /* 0x470876C6: add esp, 0xc */ 6883 _flag_k = FK_ADD; 6884 edi = POP32_VAL(esp); /* 0x470876C9: pop edi */ 6885 esi = POP32_VAL(esp); /* 0x470876CA: pop esi */ 6886 ebp = POP32_VAL(esp); /* 0x470876CB: pop ebp */ 6887 ebx = POP32_VAL(esp); /* 0x470876CC: pop ebx */ 6888 ecx = POP32_VAL(esp); /* 0x470876CD: pop ecx */ 6889 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470876CE: ret */ 6890 RECOMP_REGS_OUT(); 6891 } 6892 6893 void sub_470876D0(void) { 6894 int _fpu_cmp = 0; 6895 uint32_t _cf = 0; 6896 int _df = 1; 6897 uint32_t _flag_k = FK_NONE; 6898 uint32_t _flag_a = 0, _flag_b = 0; 6899 uint32_t _itail_tgt = 0; 6900 RECOMP_REGS_LOCALS 6901 RECOMP_ENTER(0x470876D0u); 6902 6903 L_470876D0: 6904 edx = MEM32(esp + 0xC); /* 0x470876D0: mov edx, dword ptr [esp + 0xc] */ 6905 eax = MEM32(esp + 0x8); /* 0x470876D4: mov eax, dword ptr [esp + 8] */ 6906 PUSH32(esp, edi); /* 0x470876D8: push edi */ 6907 edi = ecx; /* 0x470876D9: mov edi, ecx */ 6908 ecx = MEM32(esp + 0x14); /* 0x470876DB: mov ecx, dword ptr [esp + 0x14] */ 6909 PUSH32(esp, ecx); /* 0x470876DF: push ecx */ 6910 PUSH32(esp, edx); /* 0x470876E0: push edx */ 6911 PUSH32(esp, 1); /* 0x470876E1: push 1 */ 6912 PUSH32(esp, edi); /* 0x470876E3: push edi */ 6913 MEM32(edi + 0x28) = eax; /* 0x470876E4: mov dword ptr [edi + 0x28], eax */ 6914 MEM32(edi + 0x2C) = 0; /* 0x470876E7: mov dword ptr [edi + 0x2c], 0 */ 6915 RECOMP_ICALL(0x47057C10u); /* 0x470876EE: call 0x47057c10 */ /* not lifted */ 6916 RECOMP_FLAGS_IN(); 6917 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6918 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6919 esp = esp + 0x10u; /* 0x470876F3: add esp, 0x10 */ 6920 _flag_k = FK_ADD; 6921 /* test eax, eax */ /* 0x470876F6: test eax, eax */ 6922 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6923 _cf = 0; 6924 _flag_k = FK_TEST; 6925 if (TEST_Z(_flag_a, _flag_b)) goto L_4708776C; /* 0x470876F8: je 0x4708776c */ 6926 L_470876FA: 6927 PUSH32(esp, ebx); /* 0x470876FA: push ebx */ 6928 PUSH32(esp, esi); /* 0x470876FB: push esi */ 6929 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470876FC: call dword ptr [0x470ac150] */ 6930 RECOMP_FLAGS_IN(); 6931 ebx = eax; /* 0x47087702: mov ebx, eax */ 6932 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47087704: call dword ptr [0x470ac3c8] */ 6933 RECOMP_FLAGS_IN(); 6934 eax = MEM32(eax); /* 0x4708770A: mov eax, dword ptr [eax] */ 6935 /* test eax, eax */ /* 0x4708770C: test eax, eax */ 6936 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6937 _cf = 0; 6938 _flag_k = FK_TEST; 6939 if (TEST_Z(_flag_a, _flag_b)) goto L_47087712; /* 0x4708770E: je 0x47087712 */ 6940 L_47087710: 6941 ebx = eax; /* 0x47087710: mov ebx, eax */ 6942 L_47087712: 6943 RECOMP_ICALL(0x47039020u); /* 0x47087712: call 0x47039020 */ /* not lifted */ 6944 RECOMP_FLAGS_IN(); 6945 esi = eax; /* 0x47087717: mov esi, eax */ 6946 ecx = esi; /* 0x47087719: mov ecx, esi */ 6947 RECOMP_ICALL(0x4703B210u); /* 0x4708771B: call 0x4703b210 */ /* not lifted */ 6948 RECOMP_FLAGS_IN(); 6949 PUSH32(esp, eax); /* 0x47087720: push eax */ 6950 ecx = esi; /* 0x47087721: mov ecx, esi */ 6951 RECOMP_ICALL(0x4703B240u); /* 0x47087723: call 0x4703b240 */ /* not lifted */ 6952 RECOMP_FLAGS_IN(); 6953 PUSH32(esp, eax); /* 0x47087728: push eax */ 6954 ecx = esi; /* 0x47087729: mov ecx, esi */ 6955 RECOMP_ICALL(0x4703B080u); /* 0x4708772B: call 0x4703b080 */ /* not lifted */ 6956 RECOMP_FLAGS_IN(); 6957 PUSH32(esp, eax); /* 0x47087730: push eax */ 6958 PUSH32(esp, ebx); /* 0x47087731: push ebx */ 6959 PUSH32(esp, 0xFFFFFFFFu); /* 0x47087732: push -1 */ 6960 PUSH32(esp, 0x2F6u); /* 0x47087734: push 0x2f6 */ 6961 PUSH32(esp, 0x4710C610u); /* 0x47087739: push 0x4710c610 */ 6962 ecx = esi; /* 0x4708773E: mov ecx, esi */ 6963 RECOMP_ICALL(0x4703A340u); /* 0x47087740: call 0x4703a340 */ /* not lifted */ 6964 RECOMP_FLAGS_IN(); 6965 PUSH32(esp, 0x4710C6FCu); /* 0x47087745: push 0x4710c6fc */ 6966 PUSH32(esp, 0x471055F0u); /* 0x4708774A: push 0x471055f0 */ 6967 PUSH32(esp, 0x80u); /* 0x4708774F: push 0x80 */ 6968 PUSH32(esp, esi); /* 0x47087754: push esi */ 6969 RECOMP_ICALL(0x47039830u); /* 0x47087755: call 0x47039830 */ /* not lifted */ 6970 RECOMP_FLAGS_IN(); 6971 eax = MEM32(esp + 0x20); /* 0x4708775A: mov eax, dword ptr [esp + 0x20] */ 6972 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6973 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6974 esp = esp + 0x10u; /* 0x4708775E: add esp, 0x10 */ 6975 _flag_k = FK_ADD; 6976 esi = POP32_VAL(esp); /* 0x47087761: pop esi */ 6977 MEM32(edi + 0x30) = eax; /* 0x47087762: mov dword ptr [edi + 0x30], eax */ 6978 ebx = POP32_VAL(esp); /* 0x47087765: pop ebx */ 6979 eax = edi; /* 0x47087766: mov eax, edi */ 6980 edi = POP32_VAL(esp); /* 0x47087768: pop edi */ 6981 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47087769: ret 0x10 */ 6982 L_4708776C: 6983 ecx = MEM32(esp + 0x8); /* 0x4708776C: mov ecx, dword ptr [esp + 8] */ 6984 MEM32(edi + 0x30) = ecx; /* 0x47087770: mov dword ptr [edi + 0x30], ecx */ 6985 eax = edi; /* 0x47087773: mov eax, edi */ 6986 edi = POP32_VAL(esp); /* 0x47087775: pop edi */ 6987 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47087776: ret 0x10 */ 6988 RECOMP_REGS_OUT(); 6989 } 6990 6991 void sub_47087780(void) { 6992 int _fpu_cmp = 0; 6993 uint32_t _cf = 0; 6994 int _df = 1; 6995 uint32_t _flag_k = FK_NONE; 6996 uint32_t _flag_a = 0, _flag_b = 0; 6997 uint32_t _itail_tgt = 0; 6998 RECOMP_REGS_LOCALS 6999 RECOMP_ENTER(0x47087780u); 7000 7001 L_47087780: 7002 PUSH32(esp, ecx); /* 0x47087780: push ecx */ 7003 PUSH32(esp, ebx); /* 0x47087781: push ebx */ 7004 ebx = MEM32(0x470AC150); /* 0x47087782: mov ebx, dword ptr [0x470ac150] */ 7005 PUSH32(esp, ebp); /* 0x47087788: push ebp */ 7006 PUSH32(esp, esi); /* 0x47087789: push esi */ 7007 PUSH32(esp, edi); /* 0x4708778A: push edi */ 7008 edi = ecx; /* 0x4708778B: mov edi, ecx */ 7009 RECOMP_ICALL(ebx); /* 0x4708778D: call ebx */ 7010 RECOMP_FLAGS_IN(); 7011 ebp = MEM32(0x470AC3C8); /* 0x4708778F: mov ebp, dword ptr [0x470ac3c8] */ 7012 esi = eax; /* 0x47087795: mov esi, eax */ 7013 RECOMP_ICALL(ebp); /* 0x47087797: call ebp */ 7014 RECOMP_FLAGS_IN(); 7015 eax = MEM32(eax); /* 0x47087799: mov eax, dword ptr [eax] */ 7016 /* test eax, eax */ /* 0x4708779B: test eax, eax */ 7017 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7018 _cf = 0; 7019 _flag_k = FK_TEST; 7020 MEM32(esp + 0x10) = esi; /* 0x4708779D: mov dword ptr [esp + 0x10], esi */ 7021 if (TEST_Z(_flag_a, _flag_b)) goto L_470877A7; /* 0x470877A1: je 0x470877a7 */ 7022 L_470877A3: 7023 MEM32(esp + 0x10) = eax; /* 0x470877A3: mov dword ptr [esp + 0x10], eax */ 7024 L_470877A7: 7025 RECOMP_ICALL(0x47039020u); /* 0x470877A7: call 0x47039020 */ /* not lifted */ 7026 RECOMP_FLAGS_IN(); 7027 esi = eax; /* 0x470877AC: mov esi, eax */ 7028 ecx = esi; /* 0x470877AE: mov ecx, esi */ 7029 RECOMP_ICALL(0x4703B210u); /* 0x470877B0: call 0x4703b210 */ /* not lifted */ 7030 RECOMP_FLAGS_IN(); 7031 PUSH32(esp, eax); /* 0x470877B5: push eax */ 7032 ecx = esi; /* 0x470877B6: mov ecx, esi */ 7033 RECOMP_ICALL(0x4703B240u); /* 0x470877B8: call 0x4703b240 */ /* not lifted */ 7034 RECOMP_FLAGS_IN(); 7035 PUSH32(esp, eax); /* 0x470877BD: push eax */ 7036 ecx = esi; /* 0x470877BE: mov ecx, esi */ 7037 RECOMP_ICALL(0x4703B080u); /* 0x470877C0: call 0x4703b080 */ /* not lifted */ 7038 RECOMP_FLAGS_IN(); 7039 PUSH32(esp, eax); /* 0x470877C5: push eax */ 7040 eax = MEM32(esp + 0x1C); /* 0x470877C6: mov eax, dword ptr [esp + 0x1c] */ 7041 PUSH32(esp, eax); /* 0x470877CA: push eax */ 7042 PUSH32(esp, 0); /* 0x470877CB: push 0 */ 7043 PUSH32(esp, 0x360u); /* 0x470877CD: push 0x360 */ 7044 PUSH32(esp, 0x4710C610u); /* 0x470877D2: push 0x4710c610 */ 7045 ecx = esi; /* 0x470877D7: mov ecx, esi */ 7046 RECOMP_ICALL(0x4703A340u); /* 0x470877D9: call 0x4703a340 */ /* not lifted */ 7047 RECOMP_FLAGS_IN(); 7048 PUSH32(esp, edi); /* 0x470877DE: push edi */ 7049 PUSH32(esp, 0x471052CCu); /* 0x470877DF: push 0x471052cc */ 7050 PUSH32(esp, 4); /* 0x470877E4: push 4 */ 7051 PUSH32(esp, esi); /* 0x470877E6: push esi */ 7052 RECOMP_ICALL(0x47039830u); /* 0x470877E7: call 0x47039830 */ /* not lifted */ 7053 RECOMP_FLAGS_IN(); 7054 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7055 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7056 esp = esp + 0x10u; /* 0x470877EC: add esp, 0x10 */ 7057 _flag_k = FK_ADD; 7058 ecx = edi; /* 0x470877EF: mov ecx, edi */ 7059 RECOMP_ICALL(0x47087D10u); /* 0x470877F1: call 0x47087d10 */ /* not lifted */ 7060 RECOMP_FLAGS_IN(); 7061 RECOMP_ICALL(ebx); /* 0x470877F6: call ebx */ 7062 RECOMP_FLAGS_IN(); 7063 esi = eax; /* 0x470877F8: mov esi, eax */ 7064 RECOMP_ICALL(ebp); /* 0x470877FA: call ebp */ 7065 RECOMP_FLAGS_IN(); 7066 eax = MEM32(eax); /* 0x470877FC: mov eax, dword ptr [eax] */ 7067 /* test eax, eax */ /* 0x470877FE: test eax, eax */ 7068 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7069 _cf = 0; 7070 _flag_k = FK_TEST; 7071 MEM32(esp + 0x10) = esi; /* 0x47087800: mov dword ptr [esp + 0x10], esi */ 7072 if (TEST_Z(_flag_a, _flag_b)) goto L_4708780A; /* 0x47087804: je 0x4708780a */ 7073 L_47087806: 7074 MEM32(esp + 0x10) = eax; /* 0x47087806: mov dword ptr [esp + 0x10], eax */ 7075 L_4708780A: 7076 RECOMP_ICALL(0x47039020u); /* 0x4708780A: call 0x47039020 */ /* not lifted */ 7077 RECOMP_FLAGS_IN(); 7078 esi = eax; /* 0x4708780F: mov esi, eax */ 7079 ecx = esi; /* 0x47087811: mov ecx, esi */ 7080 RECOMP_ICALL(0x4703B210u); /* 0x47087813: call 0x4703b210 */ /* not lifted */ 7081 RECOMP_FLAGS_IN(); 7082 PUSH32(esp, eax); /* 0x47087818: push eax */ 7083 ecx = esi; /* 0x47087819: mov ecx, esi */ 7084 RECOMP_ICALL(0x4703B240u); /* 0x4708781B: call 0x4703b240 */ /* not lifted */ 7085 RECOMP_FLAGS_IN(); 7086 PUSH32(esp, eax); /* 0x47087820: push eax */ 7087 ecx = esi; /* 0x47087821: mov ecx, esi */ 7088 RECOMP_ICALL(0x4703B080u); /* 0x47087823: call 0x4703b080 */ /* not lifted */ 7089 RECOMP_FLAGS_IN(); 7090 ecx = MEM32(esp + 0x18); /* 0x47087828: mov ecx, dword ptr [esp + 0x18] */ 7091 PUSH32(esp, eax); /* 0x4708782C: push eax */ 7092 PUSH32(esp, ecx); /* 0x4708782D: push ecx */ 7093 PUSH32(esp, 0); /* 0x4708782E: push 0 */ 7094 PUSH32(esp, 0x362u); /* 0x47087830: push 0x362 */ 7095 PUSH32(esp, 0x4710C610u); /* 0x47087835: push 0x4710c610 */ 7096 ecx = esi; /* 0x4708783A: mov ecx, esi */ 7097 RECOMP_ICALL(0x4703A340u); /* 0x4708783C: call 0x4703a340 */ /* not lifted */ 7098 RECOMP_FLAGS_IN(); 7099 edx = MEM32(edi + 0x1C); /* 0x47087841: mov edx, dword ptr [edi + 0x1c] */ 7100 PUSH32(esp, edx); /* 0x47087844: push edx */ 7101 PUSH32(esp, 0x4710C75Cu); /* 0x47087845: push 0x4710c75c */ 7102 PUSH32(esp, 4); /* 0x4708784A: push 4 */ 7103 PUSH32(esp, esi); /* 0x4708784C: push esi */ 7104 RECOMP_ICALL(0x47039830u); /* 0x4708784D: call 0x47039830 */ /* not lifted */ 7105 RECOMP_FLAGS_IN(); 7106 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7107 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7108 esp = esp + 0x10u; /* 0x47087852: add esp, 0x10 */ 7109 _flag_k = FK_ADD; 7110 RECOMP_ICALL(ebx); /* 0x47087855: call ebx */ 7111 RECOMP_FLAGS_IN(); 7112 esi = eax; /* 0x47087857: mov esi, eax */ 7113 RECOMP_ICALL(ebp); /* 0x47087859: call ebp */ 7114 RECOMP_FLAGS_IN(); 7115 eax = MEM32(eax); /* 0x4708785B: mov eax, dword ptr [eax] */ 7116 /* test eax, eax */ /* 0x4708785D: test eax, eax */ 7117 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7118 _cf = 0; 7119 _flag_k = FK_TEST; 7120 MEM32(esp + 0x10) = esi; /* 0x4708785F: mov dword ptr [esp + 0x10], esi */ 7121 if (TEST_Z(_flag_a, _flag_b)) goto L_47087869; /* 0x47087863: je 0x47087869 */ 7122 L_47087865: 7123 MEM32(esp + 0x10) = eax; /* 0x47087865: mov dword ptr [esp + 0x10], eax */ 7124 L_47087869: 7125 RECOMP_ICALL(0x47039020u); /* 0x47087869: call 0x47039020 */ /* not lifted */ 7126 RECOMP_FLAGS_IN(); 7127 esi = eax; /* 0x4708786E: mov esi, eax */ 7128 ecx = esi; /* 0x47087870: mov ecx, esi */ 7129 RECOMP_ICALL(0x4703B210u); /* 0x47087872: call 0x4703b210 */ /* not lifted */ 7130 RECOMP_FLAGS_IN(); 7131 PUSH32(esp, eax); /* 0x47087877: push eax */ 7132 ecx = esi; /* 0x47087878: mov ecx, esi */ 7133 RECOMP_ICALL(0x4703B240u); /* 0x4708787A: call 0x4703b240 */ /* not lifted */ 7134 RECOMP_FLAGS_IN(); 7135 PUSH32(esp, eax); /* 0x4708787F: push eax */ 7136 ecx = esi; /* 0x47087880: mov ecx, esi */ 7137 RECOMP_ICALL(0x4703B080u); /* 0x47087882: call 0x4703b080 */ /* not lifted */ 7138 RECOMP_FLAGS_IN(); 7139 PUSH32(esp, eax); /* 0x47087887: push eax */ 7140 eax = MEM32(esp + 0x1C); /* 0x47087888: mov eax, dword ptr [esp + 0x1c] */ 7141 PUSH32(esp, eax); /* 0x4708788C: push eax */ 7142 PUSH32(esp, 0); /* 0x4708788D: push 0 */ 7143 PUSH32(esp, 0x363u); /* 0x4708788F: push 0x363 */ 7144 PUSH32(esp, 0x4710C610u); /* 0x47087894: push 0x4710c610 */ 7145 ecx = esi; /* 0x47087899: mov ecx, esi */ 7146 RECOMP_ICALL(0x4703A340u); /* 0x4708789B: call 0x4703a340 */ /* not lifted */ 7147 RECOMP_FLAGS_IN(); 7148 ecx = MEM32(edi + 0x20); /* 0x470878A0: mov ecx, dword ptr [edi + 0x20] */ 7149 PUSH32(esp, ecx); /* 0x470878A3: push ecx */ 7150 PUSH32(esp, 0x4710C74Cu); /* 0x470878A4: push 0x4710c74c */ 7151 PUSH32(esp, 4); /* 0x470878A9: push 4 */ 7152 PUSH32(esp, esi); /* 0x470878AB: push esi */ 7153 RECOMP_ICALL(0x47039830u); /* 0x470878AC: call 0x47039830 */ /* not lifted */ 7154 RECOMP_FLAGS_IN(); 7155 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7156 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7157 esp = esp + 0x10u; /* 0x470878B1: add esp, 0x10 */ 7158 _flag_k = FK_ADD; 7159 ecx = edi + 0x24; /* 0x470878B4: lea ecx, [edi + 0x24] */ 7160 RECOMP_ICALL(0x47087550u); /* 0x470878B7: call 0x47087550 */ /* not lifted */ 7161 RECOMP_FLAGS_IN(); 7162 ecx = edi + 0x58; /* 0x470878BC: lea ecx, [edi + 0x58] */ 7163 RECOMP_ICALL(0x47087550u); /* 0x470878BF: call 0x47087550 */ /* not lifted */ 7164 RECOMP_FLAGS_IN(); 7165 RECOMP_ICALL(ebx); /* 0x470878C4: call ebx */ 7166 RECOMP_FLAGS_IN(); 7167 esi = eax; /* 0x470878C6: mov esi, eax */ 7168 RECOMP_ICALL(ebp); /* 0x470878C8: call ebp */ 7169 RECOMP_FLAGS_IN(); 7170 eax = MEM32(eax); /* 0x470878CA: mov eax, dword ptr [eax] */ 7171 /* test eax, eax */ /* 0x470878CC: test eax, eax */ 7172 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7173 _cf = 0; 7174 _flag_k = FK_TEST; 7175 edi = esi; /* 0x470878CE: mov edi, esi */ 7176 if (TEST_Z(_flag_a, _flag_b)) goto L_470878D4; /* 0x470878D0: je 0x470878d4 */ 7177 L_470878D2: 7178 edi = eax; /* 0x470878D2: mov edi, eax */ 7179 L_470878D4: 7180 RECOMP_ICALL(0x47039020u); /* 0x470878D4: call 0x47039020 */ /* not lifted */ 7181 RECOMP_FLAGS_IN(); 7182 esi = eax; /* 0x470878D9: mov esi, eax */ 7183 ecx = esi; /* 0x470878DB: mov ecx, esi */ 7184 RECOMP_ICALL(0x4703B210u); /* 0x470878DD: call 0x4703b210 */ /* not lifted */ 7185 RECOMP_FLAGS_IN(); 7186 PUSH32(esp, eax); /* 0x470878E2: push eax */ 7187 ecx = esi; /* 0x470878E3: mov ecx, esi */ 7188 RECOMP_ICALL(0x4703B240u); /* 0x470878E5: call 0x4703b240 */ /* not lifted */ 7189 RECOMP_FLAGS_IN(); 7190 PUSH32(esp, eax); /* 0x470878EA: push eax */ 7191 ecx = esi; /* 0x470878EB: mov ecx, esi */ 7192 RECOMP_ICALL(0x4703B080u); /* 0x470878ED: call 0x4703b080 */ /* not lifted */ 7193 RECOMP_FLAGS_IN(); 7194 PUSH32(esp, eax); /* 0x470878F2: push eax */ 7195 PUSH32(esp, edi); /* 0x470878F3: push edi */ 7196 PUSH32(esp, 0); /* 0x470878F4: push 0 */ 7197 PUSH32(esp, 0x366u); /* 0x470878F6: push 0x366 */ 7198 PUSH32(esp, 0x4710C610u); /* 0x470878FB: push 0x4710c610 */ 7199 ecx = esi; /* 0x47087900: mov ecx, esi */ 7200 RECOMP_ICALL(0x4703A340u); /* 0x47087902: call 0x4703a340 */ /* not lifted */ 7201 RECOMP_FLAGS_IN(); 7202 PUSH32(esp, 0x4710529Cu); /* 0x47087907: push 0x4710529c */ 7203 PUSH32(esp, 4); /* 0x4708790C: push 4 */ 7204 PUSH32(esp, esi); /* 0x4708790E: push esi */ 7205 RECOMP_ICALL(0x47039830u); /* 0x4708790F: call 0x47039830 */ /* not lifted */ 7206 RECOMP_FLAGS_IN(); 7207 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7208 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7209 esp = esp + 0xCu; /* 0x47087914: add esp, 0xc */ 7210 _flag_k = FK_ADD; 7211 edi = POP32_VAL(esp); /* 0x47087917: pop edi */ 7212 esi = POP32_VAL(esp); /* 0x47087918: pop esi */ 7213 ebp = POP32_VAL(esp); /* 0x47087919: pop ebp */ 7214 ebx = POP32_VAL(esp); /* 0x4708791A: pop ebx */ 7215 ecx = POP32_VAL(esp); /* 0x4708791B: pop ecx */ 7216 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708791C: ret */ 7217 RECOMP_REGS_OUT(); 7218 } 7219 7220 void sub_47087920(void) { 7221 int _fpu_cmp = 0; 7222 uint32_t _cf = 0; 7223 int _df = 1; 7224 uint32_t _flag_k = FK_NONE; 7225 uint32_t _flag_a = 0, _flag_b = 0; 7226 uint32_t _itail_tgt = 0; 7227 RECOMP_REGS_LOCALS 7228 RECOMP_ENTER(0x47087920u); 7229 7230 L_47087920: 7231 PUSH32(esp, 0xFFFFFFFFu); /* 0x47087920: push -1 */ 7232 PUSH32(esp, 0x470A9F83u); /* 0x47087922: push 0x470a9f83 */ 7233 eax = MEM32(FS_BASE + (0)); /* 0x47087927: mov eax, dword ptr fs:[0] */ 7234 PUSH32(esp, eax); /* 0x4708792D: push eax */ 7235 MEM32(FS_BASE + (0)) = esp; /* 0x4708792E: mov dword ptr fs:[0], esp */ 7236 PUSH32(esp, ecx); /* 0x47087935: push ecx */ 7237 PUSH32(esp, ebx); /* 0x47087936: push ebx */ 7238 PUSH32(esp, ebp); /* 0x47087937: push ebp */ 7239 PUSH32(esp, esi); /* 0x47087938: push esi */ 7240 esi = ecx; /* 0x47087939: mov esi, ecx */ 7241 PUSH32(esp, edi); /* 0x4708793B: push edi */ 7242 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7243 ebx = 0; /* 0x4708793C: xor ebx, ebx */ 7244 _cf = 0; 7245 _flag_k = FK_TEST; 7246 PUSH32(esp, esi); /* 0x4708793E: push esi */ 7247 MEM32(esp + 0x14) = esi; /* 0x4708793F: mov dword ptr [esp + 0x14], esi */ 7248 MEM32(esi + 0x18) = ebx; /* 0x47087943: mov dword ptr [esi + 0x18], ebx */ 7249 RECOMP_ICALL(MEM32(0x470AC1A4)); /* 0x47087946: call dword ptr [0x470ac1a4] */ 7250 RECOMP_FLAGS_IN(); 7251 ecx = MEM32(esp + 0x2C); /* 0x4708794C: mov ecx, dword ptr [esp + 0x2c] */ 7252 edx = MEM32(esp + 0x28); /* 0x47087950: mov edx, dword ptr [esp + 0x28] */ 7253 eax = MEM32(esp + 0x24); /* 0x47087954: mov eax, dword ptr [esp + 0x24] */ 7254 PUSH32(esp, ecx); /* 0x47087958: push ecx */ 7255 PUSH32(esp, edx); /* 0x47087959: push edx */ 7256 edi = esi + 0x24; /* 0x4708795A: lea edi, [esi + 0x24] */ 7257 MEM32(esi + 0x1C) = ebx; /* 0x4708795D: mov dword ptr [esi + 0x1c], ebx */ 7258 MEM32(esi + 0x20) = eax; /* 0x47087960: mov dword ptr [esi + 0x20], eax */ 7259 PUSH32(esp, 1); /* 0x47087963: push 1 */ 7260 PUSH32(esp, edi); /* 0x47087965: push edi */ 7261 MEM32(esp + 0x2C) = ebx; /* 0x47087966: mov dword ptr [esp + 0x2c], ebx */ 7262 MEM32(edi + 0x28) = esi; /* 0x4708796A: mov dword ptr [edi + 0x28], esi */ 7263 MEM32(edi + 0x2C) = ebx; /* 0x4708796D: mov dword ptr [edi + 0x2c], ebx */ 7264 RECOMP_ICALL(0x47057C10u); /* 0x47087970: call 0x47057c10 */ /* not lifted */ 7265 RECOMP_FLAGS_IN(); 7266 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7267 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7268 esp = esp + 0x10u; /* 0x47087975: add esp, 0x10 */ 7269 _flag_k = FK_ADD; 7270 /* test eax, eax */ /* 0x47087978: test eax, eax */ 7271 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7272 _cf = 0; 7273 _flag_k = FK_TEST; 7274 if (TEST_Z(_flag_a, _flag_b)) goto L_470879DF; /* 0x4708797A: je 0x470879df */ 7275 L_4708797C: 7276 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4708797C: call dword ptr [0x470ac150] */ 7277 RECOMP_FLAGS_IN(); 7278 ebp = eax; /* 0x47087982: mov ebp, eax */ 7279 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47087984: call dword ptr [0x470ac3c8] */ 7280 RECOMP_FLAGS_IN(); 7281 eax = MEM32(eax); /* 0x4708798A: mov eax, dword ptr [eax] */ 7282 /* cmp eax, ebx */ /* 0x4708798C: cmp eax, ebx */ 7283 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 7284 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7285 _flag_k = FK_CMP; 7286 if (CMP_EQ(_flag_a, _flag_b)) goto L_47087992; /* 0x4708798E: je 0x47087992 */ 7287 L_47087990: 7288 ebp = eax; /* 0x47087990: mov ebp, eax */ 7289 L_47087992: 7290 RECOMP_ICALL(0x47039020u); /* 0x47087992: call 0x47039020 */ /* not lifted */ 7291 RECOMP_FLAGS_IN(); 7292 ebx = eax; /* 0x47087997: mov ebx, eax */ 7293 ecx = ebx; /* 0x47087999: mov ecx, ebx */ 7294 RECOMP_ICALL(0x4703B210u); /* 0x4708799B: call 0x4703b210 */ /* not lifted */ 7295 RECOMP_FLAGS_IN(); 7296 PUSH32(esp, eax); /* 0x470879A0: push eax */ 7297 ecx = ebx; /* 0x470879A1: mov ecx, ebx */ 7298 RECOMP_ICALL(0x4703B240u); /* 0x470879A3: call 0x4703b240 */ /* not lifted */ 7299 RECOMP_FLAGS_IN(); 7300 PUSH32(esp, eax); /* 0x470879A8: push eax */ 7301 ecx = ebx; /* 0x470879A9: mov ecx, ebx */ 7302 RECOMP_ICALL(0x4703B080u); /* 0x470879AB: call 0x4703b080 */ /* not lifted */ 7303 RECOMP_FLAGS_IN(); 7304 PUSH32(esp, eax); /* 0x470879B0: push eax */ 7305 PUSH32(esp, ebp); /* 0x470879B1: push ebp */ 7306 PUSH32(esp, 0xFFFFFFFFu); /* 0x470879B2: push -1 */ 7307 PUSH32(esp, 0x2F6u); /* 0x470879B4: push 0x2f6 */ 7308 PUSH32(esp, 0x4710C610u); /* 0x470879B9: push 0x4710c610 */ 7309 ecx = ebx; /* 0x470879BE: mov ecx, ebx */ 7310 RECOMP_ICALL(0x4703A340u); /* 0x470879C0: call 0x4703a340 */ /* not lifted */ 7311 RECOMP_FLAGS_IN(); 7312 PUSH32(esp, 0x4710C6FCu); /* 0x470879C5: push 0x4710c6fc */ 7313 PUSH32(esp, 0x471055F0u); /* 0x470879CA: push 0x471055f0 */ 7314 PUSH32(esp, 0x80u); /* 0x470879CF: push 0x80 */ 7315 PUSH32(esp, ebx); /* 0x470879D4: push ebx */ 7316 RECOMP_ICALL(0x47039830u); /* 0x470879D5: call 0x47039830 */ /* not lifted */ 7317 RECOMP_FLAGS_IN(); 7318 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7319 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7320 esp = esp + 0x10u; /* 0x470879DA: add esp, 0x10 */ 7321 _flag_k = FK_ADD; 7322 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7323 ebx = 0; /* 0x470879DD: xor ebx, ebx */ 7324 _cf = 0; 7325 _flag_k = FK_TEST; 7326 L_470879DF: 7327 eax = MEM32(esp + 0x24); /* 0x470879DF: mov eax, dword ptr [esp + 0x24] */ 7328 MEM32(edi + 0x30) = eax; /* 0x470879E3: mov dword ptr [edi + 0x30], eax */ 7329 ecx = MEM32(esp + 0x2C); /* 0x470879E6: mov ecx, dword ptr [esp + 0x2c] */ 7330 edx = MEM32(esp + 0x28); /* 0x470879EA: mov edx, dword ptr [esp + 0x28] */ 7331 PUSH32(esp, ecx); /* 0x470879EE: push ecx */ 7332 PUSH32(esp, edx); /* 0x470879EF: push edx */ 7333 ebp = esi + 0x58; /* 0x470879F0: lea ebp, [esi + 0x58] */ 7334 PUSH32(esp, 1); /* 0x470879F3: push 1 */ 7335 PUSH32(esp, ebp); /* 0x470879F5: push ebp */ 7336 MEM8(esp + 0x2C) = (uint8_t)(1); /* 0x470879F6: mov byte ptr [esp + 0x2c], 1 */ 7337 MEM32(ebp + 0x28) = esi; /* 0x470879FB: mov dword ptr [ebp + 0x28], esi */ 7338 MEM32(ebp + 0x2C) = ebx; /* 0x470879FE: mov dword ptr [ebp + 0x2c], ebx */ 7339 RECOMP_ICALL(0x47057C10u); /* 0x47087A01: call 0x47057c10 */ /* not lifted */ 7340 RECOMP_FLAGS_IN(); 7341 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7342 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7343 esp = esp + 0x10u; /* 0x47087A06: add esp, 0x10 */ 7344 _flag_k = FK_ADD; 7345 /* test eax, eax */ /* 0x47087A09: test eax, eax */ 7346 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7347 _cf = 0; 7348 _flag_k = FK_TEST; 7349 if (TEST_Z(_flag_a, _flag_b)) goto L_47087A7A; /* 0x47087A0B: je 0x47087a7a */ 7350 L_47087A0D: 7351 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47087A0D: call dword ptr [0x470ac150] */ 7352 RECOMP_FLAGS_IN(); 7353 MEM32(esp + 0x2C) = eax; /* 0x47087A13: mov dword ptr [esp + 0x2c], eax */ 7354 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47087A17: call dword ptr [0x470ac3c8] */ 7355 RECOMP_FLAGS_IN(); 7356 eax = MEM32(eax); /* 0x47087A1D: mov eax, dword ptr [eax] */ 7357 /* cmp eax, ebx */ /* 0x47087A1F: cmp eax, ebx */ 7358 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 7359 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7360 _flag_k = FK_CMP; 7361 if (CMP_NE(_flag_a, _flag_b)) goto L_47087A27; /* 0x47087A21: jne 0x47087a27 */ 7362 L_47087A23: 7363 eax = MEM32(esp + 0x2C); /* 0x47087A23: mov eax, dword ptr [esp + 0x2c] */ 7364 L_47087A27: 7365 MEM32(esp + 0x2C) = eax; /* 0x47087A27: mov dword ptr [esp + 0x2c], eax */ 7366 RECOMP_ICALL(0x47039020u); /* 0x47087A2B: call 0x47039020 */ /* not lifted */ 7367 RECOMP_FLAGS_IN(); 7368 ebx = eax; /* 0x47087A30: mov ebx, eax */ 7369 ecx = ebx; /* 0x47087A32: mov ecx, ebx */ 7370 RECOMP_ICALL(0x4703B210u); /* 0x47087A34: call 0x4703b210 */ /* not lifted */ 7371 RECOMP_FLAGS_IN(); 7372 PUSH32(esp, eax); /* 0x47087A39: push eax */ 7373 ecx = ebx; /* 0x47087A3A: mov ecx, ebx */ 7374 RECOMP_ICALL(0x4703B240u); /* 0x47087A3C: call 0x4703b240 */ /* not lifted */ 7375 RECOMP_FLAGS_IN(); 7376 PUSH32(esp, eax); /* 0x47087A41: push eax */ 7377 ecx = ebx; /* 0x47087A42: mov ecx, ebx */ 7378 RECOMP_ICALL(0x4703B080u); /* 0x47087A44: call 0x4703b080 */ /* not lifted */ 7379 RECOMP_FLAGS_IN(); 7380 ecx = MEM32(esp + 0x34); /* 0x47087A49: mov ecx, dword ptr [esp + 0x34] */ 7381 PUSH32(esp, eax); /* 0x47087A4D: push eax */ 7382 PUSH32(esp, ecx); /* 0x47087A4E: push ecx */ 7383 PUSH32(esp, 0xFFFFFFFFu); /* 0x47087A4F: push -1 */ 7384 PUSH32(esp, 0x2F6u); /* 0x47087A51: push 0x2f6 */ 7385 PUSH32(esp, 0x4710C610u); /* 0x47087A56: push 0x4710c610 */ 7386 ecx = ebx; /* 0x47087A5B: mov ecx, ebx */ 7387 RECOMP_ICALL(0x4703A340u); /* 0x47087A5D: call 0x4703a340 */ /* not lifted */ 7388 RECOMP_FLAGS_IN(); 7389 PUSH32(esp, 0x4710C6FCu); /* 0x47087A62: push 0x4710c6fc */ 7390 PUSH32(esp, 0x471055F0u); /* 0x47087A67: push 0x471055f0 */ 7391 PUSH32(esp, 0x80u); /* 0x47087A6C: push 0x80 */ 7392 PUSH32(esp, ebx); /* 0x47087A71: push ebx */ 7393 RECOMP_ICALL(0x47039830u); /* 0x47087A72: call 0x47039830 */ /* not lifted */ 7394 RECOMP_FLAGS_IN(); 7395 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7396 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7397 esp = esp + 0x10u; /* 0x47087A77: add esp, 0x10 */ 7398 _flag_k = FK_ADD; 7399 L_47087A7A: 7400 edx = MEM32(esp + 0x24); /* 0x47087A7A: mov edx, dword ptr [esp + 0x24] */ 7401 ecx = MEM32(esp + 0x14); /* 0x47087A7E: mov ecx, dword ptr [esp + 0x14] */ 7402 MEM32(ebp + 0x30) = edx; /* 0x47087A82: mov dword ptr [ebp + 0x30], edx */ 7403 MEM32(esi + 0x8C) = edi; /* 0x47087A85: mov dword ptr [esi + 0x8c], edi */ 7404 edi = POP32_VAL(esp); /* 0x47087A8B: pop edi */ 7405 MEM32(esi + 0x90) = ebp; /* 0x47087A8C: mov dword ptr [esi + 0x90], ebp */ 7406 eax = esi; /* 0x47087A92: mov eax, esi */ 7407 esi = POP32_VAL(esp); /* 0x47087A94: pop esi */ 7408 ebp = POP32_VAL(esp); /* 0x47087A95: pop ebp */ 7409 ebx = POP32_VAL(esp); /* 0x47087A96: pop ebx */ 7410 MEM32(FS_BASE + (0)) = ecx; /* 0x47087A97: mov dword ptr fs:[0], ecx */ 7411 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7412 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7413 esp = esp + 0x10u; /* 0x47087A9E: add esp, 0x10 */ 7414 _flag_k = FK_ADD; 7415 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47087AA1: ret 0xc */ 7416 RECOMP_REGS_OUT(); 7417 } 7418 7419 void sub_47087AB0(void) { 7420 int _fpu_cmp = 0; 7421 uint32_t _cf = 0; 7422 int _df = 1; 7423 uint32_t _flag_k = FK_NONE; 7424 uint32_t _flag_a = 0, _flag_b = 0; 7425 uint32_t _itail_tgt = 0; 7426 RECOMP_REGS_LOCALS 7427 RECOMP_ENTER(0x47087AB0u); 7428 7429 L_47087AB0: 7430 PUSH32(esp, 0xFFFFFFFFu); /* 0x47087AB0: push -1 */ 7431 PUSH32(esp, 0x470A9F98u); /* 0x47087AB2: push 0x470a9f98 */ 7432 eax = MEM32(FS_BASE + (0)); /* 0x47087AB7: mov eax, dword ptr fs:[0] */ 7433 PUSH32(esp, eax); /* 0x47087ABD: push eax */ 7434 MEM32(FS_BASE + (0)) = esp; /* 0x47087ABE: mov dword ptr fs:[0], esp */ 7435 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7436 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7437 esp = esp - 8; /* 0x47087AC5: sub esp, 8 */ 7438 _flag_k = FK_CMP; 7439 PUSH32(esp, esi); /* 0x47087AC8: push esi */ 7440 esi = ecx; /* 0x47087AC9: mov esi, ecx */ 7441 PUSH32(esp, edi); /* 0x47087ACB: push edi */ 7442 PUSH32(esp, esi); /* 0x47087ACC: push esi */ 7443 MEM32(esp + 0xC) = esi; /* 0x47087ACD: mov dword ptr [esp + 0xc], esi */ 7444 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47087AD1: call dword ptr [0x470ac180] */ 7445 RECOMP_FLAGS_IN(); 7446 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7447 eax = 0; /* 0x47087AD7: xor eax, eax */ 7448 _cf = 0; 7449 _flag_k = FK_TEST; 7450 MEM32(esp + 0xC) = eax; /* 0x47087AD9: mov dword ptr [esp + 0xc], eax */ 7451 ecx = MEM32(esi + 0x1C); /* 0x47087ADD: mov ecx, dword ptr [esi + 0x1c] */ 7452 edi = MEM32(esi + ecx * 4 + 0x8C); /* 0x47087AE0: mov edi, dword ptr [esi + ecx*4 + 0x8c] */ 7453 /* cmp edi, eax */ /* 0x47087AE7: cmp edi, eax */ 7454 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7455 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7456 _flag_k = FK_CMP; 7457 MEM32(esp + 0x18) = eax; /* 0x47087AE9: mov dword ptr [esp + 0x18], eax */ 7458 if (CMP_NE(_flag_a, _flag_b)) goto L_47087B0A; /* 0x47087AED: jne 0x47087b0a */ 7459 L_47087AEF: 7460 PUSH32(esp, esi); /* 0x47087AEF: push esi */ 7461 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47087AF0: call dword ptr [0x470ac190] */ 7462 RECOMP_FLAGS_IN(); 7463 edi = POP32_VAL(esp); /* 0x47087AF6: pop edi */ 7464 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 7465 eax = eax | 0xFFFFFFFFu; /* 0x47087AF7: or eax, 0xffffffff */ 7466 _cf = 0; 7467 _flag_k = FK_TEST; 7468 esi = POP32_VAL(esp); /* 0x47087AFA: pop esi */ 7469 ecx = MEM32(esp + 0x8); /* 0x47087AFB: mov ecx, dword ptr [esp + 8] */ 7470 MEM32(FS_BASE + (0)) = ecx; /* 0x47087AFF: mov dword ptr fs:[0], ecx */ 7471 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 7472 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7473 esp = esp + 0x14u; /* 0x47087B06: add esp, 0x14 */ 7474 _flag_k = FK_ADD; 7475 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47087B09: ret */ 7476 L_47087B0A: 7477 eax = MEM32(edi + 0x30); /* 0x47087B0A: mov eax, dword ptr [edi + 0x30] */ 7478 /* cmp eax, 1 */ /* 0x47087B0D: cmp eax, 1 */ 7479 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7480 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7481 _flag_k = FK_CMP; 7482 if (CMP_NE(_flag_a, _flag_b)) goto L_47087B29; /* 0x47087B10: jne 0x47087b29 */ 7483 L_47087B12: 7484 edx = MEM32(esi + 0x20); /* 0x47087B12: mov edx, dword ptr [esi + 0x20] */ 7485 MEM32(edi + 0x30) = edx; /* 0x47087B15: mov dword ptr [edi + 0x30], edx */ 7486 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x1C)); 7487 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7488 eax = eax - MEM32(esi + 0x1C); /* 0x47087B18: sub eax, dword ptr [esi + 0x1c] */ 7489 _flag_k = FK_CMP; 7490 PUSH32(esp, edi); /* 0x47087B1B: push edi */ 7491 MEM32(esi + 0x1C) = eax; /* 0x47087B1C: mov dword ptr [esi + 0x1c], eax */ 7492 RECOMP_ICALL(0x47057E10u); /* 0x47087B1F: call 0x47057e10 */ /* not lifted */ 7493 RECOMP_FLAGS_IN(); 7494 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7495 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7496 esp = esp + 4; /* 0x47087B24: add esp, 4 */ 7497 _flag_k = FK_ADD; 7498 goto L_47087B49; /* 0x47087B27: jmp 0x47087b49 */ 7499 L_47087B29: 7500 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7501 eax = eax - 1; /* 0x47087B29: dec eax */ 7502 _flag_k = FK_DEC; 7503 MEM32(edi + 0x30) = eax; /* 0x47087B2A: mov dword ptr [edi + 0x30], eax */ 7504 /* cmp eax, MEM32(esi + 0x20) */ /* 0x47087B2D: cmp eax, dword ptr [esi + 0x20] */ 7505 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x20)); 7506 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7507 _flag_k = FK_CMP; 7508 if (CMP_EQ(_flag_a, _flag_b)) goto L_47087B49; /* 0x47087B30: je 0x47087b49 */ 7509 L_47087B32: 7510 ecx = MEM32(edi + 0x28); /* 0x47087B32: mov ecx, dword ptr [edi + 0x28] */ 7511 PUSH32(esp, ecx); /* 0x47087B35: push ecx */ 7512 PUSH32(esp, edi); /* 0x47087B36: push edi */ 7513 RECOMP_ICALL(0x470584E0u); /* 0x47087B37: call 0x470584e0 */ /* not lifted */ 7514 RECOMP_FLAGS_IN(); 7515 edx = MEM32(edi + 0x30); /* 0x47087B3C: mov edx, dword ptr [edi + 0x30] */ 7516 eax = MEM32(esi + 0x20); /* 0x47087B3F: mov eax, dword ptr [esi + 0x20] */ 7517 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7518 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7519 esp = esp + 8; /* 0x47087B42: add esp, 8 */ 7520 _flag_k = FK_ADD; 7521 /* cmp edx, eax */ /* 0x47087B45: cmp edx, eax */ 7522 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 7523 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7524 _flag_k = FK_CMP; 7525 RECOMP_BACKEDGE(); 7526 if (CMP_NE(_flag_a, _flag_b)) goto L_47087B32; /* 0x47087B47: jne 0x47087b32 */ 7527 L_47087B49: 7528 PUSH32(esp, esi); /* 0x47087B49: push esi */ 7529 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47087B4A: call dword ptr [0x470ac190] */ 7530 RECOMP_FLAGS_IN(); 7531 ecx = MEM32(esp + 0x10); /* 0x47087B50: mov ecx, dword ptr [esp + 0x10] */ 7532 edi = POP32_VAL(esp); /* 0x47087B54: pop edi */ 7533 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7534 eax = 0; /* 0x47087B55: xor eax, eax */ 7535 _cf = 0; 7536 _flag_k = FK_TEST; 7537 esi = POP32_VAL(esp); /* 0x47087B57: pop esi */ 7538 MEM32(FS_BASE + (0)) = ecx; /* 0x47087B58: mov dword ptr fs:[0], ecx */ 7539 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 7540 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7541 esp = esp + 0x14u; /* 0x47087B5F: add esp, 0x14 */ 7542 _flag_k = FK_ADD; 7543 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47087B62: ret */ 7544 RECOMP_REGS_OUT(); 7545 } 7546 7547 void sub_47087B70(void) { 7548 int _fpu_cmp = 0; 7549 uint32_t _cf = 0; 7550 int _df = 1; 7551 uint32_t _flag_k = FK_NONE; 7552 uint32_t _flag_a = 0, _flag_b = 0; 7553 uint32_t _itail_tgt = 0; 7554 RECOMP_REGS_LOCALS 7555 RECOMP_ENTER(0x47087B70u); 7556 7557 L_47087B70: 7558 PUSH32(esp, 0xFFFFFFFFu); /* 0x47087B70: push -1 */ 7559 PUSH32(esp, 0x470A9FC3u); /* 0x47087B72: push 0x470a9fc3 */ 7560 eax = MEM32(FS_BASE + (0)); /* 0x47087B77: mov eax, dword ptr fs:[0] */ 7561 PUSH32(esp, eax); /* 0x47087B7D: push eax */ 7562 MEM32(FS_BASE + (0)) = esp; /* 0x47087B7E: mov dword ptr fs:[0], esp */ 7563 PUSH32(esp, ecx); /* 0x47087B85: push ecx */ 7564 PUSH32(esp, ebx); /* 0x47087B86: push ebx */ 7565 PUSH32(esp, ebp); /* 0x47087B87: push ebp */ 7566 PUSH32(esp, esi); /* 0x47087B88: push esi */ 7567 esi = ecx; /* 0x47087B89: mov esi, ecx */ 7568 PUSH32(esp, edi); /* 0x47087B8B: push edi */ 7569 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7570 ebx = 0; /* 0x47087B8C: xor ebx, ebx */ 7571 _cf = 0; 7572 _flag_k = FK_TEST; 7573 PUSH32(esp, esi); /* 0x47087B8E: push esi */ 7574 MEM32(esp + 0x14) = esi; /* 0x47087B8F: mov dword ptr [esp + 0x14], esi */ 7575 MEM32(esi + 0x18) = ebx; /* 0x47087B93: mov dword ptr [esi + 0x18], ebx */ 7576 RECOMP_ICALL(MEM32(0x470AC1A4)); /* 0x47087B96: call dword ptr [0x470ac1a4] */ 7577 RECOMP_FLAGS_IN(); 7578 ecx = MEM32(esp + 0x28); /* 0x47087B9C: mov ecx, dword ptr [esp + 0x28] */ 7579 eax = MEM32(esp + 0x24); /* 0x47087BA0: mov eax, dword ptr [esp + 0x24] */ 7580 PUSH32(esp, ebx); /* 0x47087BA4: push ebx */ 7581 PUSH32(esp, ecx); /* 0x47087BA5: push ecx */ 7582 edi = esi + 0x24; /* 0x47087BA6: lea edi, [esi + 0x24] */ 7583 MEM32(esi + 0x1C) = ebx; /* 0x47087BA9: mov dword ptr [esi + 0x1c], ebx */ 7584 MEM32(esi + 0x20) = eax; /* 0x47087BAC: mov dword ptr [esi + 0x20], eax */ 7585 PUSH32(esp, 1); /* 0x47087BAF: push 1 */ 7586 PUSH32(esp, edi); /* 0x47087BB1: push edi */ 7587 MEM32(esp + 0x2C) = ebx; /* 0x47087BB2: mov dword ptr [esp + 0x2c], ebx */ 7588 MEM32(edi + 0x28) = esi; /* 0x47087BB6: mov dword ptr [edi + 0x28], esi */ 7589 MEM32(edi + 0x2C) = ebx; /* 0x47087BB9: mov dword ptr [edi + 0x2c], ebx */ 7590 RECOMP_ICALL(0x47057C10u); /* 0x47087BBC: call 0x47057c10 */ /* not lifted */ 7591 RECOMP_FLAGS_IN(); 7592 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7593 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7594 esp = esp + 0x10u; /* 0x47087BC1: add esp, 0x10 */ 7595 _flag_k = FK_ADD; 7596 /* test eax, eax */ /* 0x47087BC4: test eax, eax */ 7597 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7598 _cf = 0; 7599 _flag_k = FK_TEST; 7600 if (TEST_Z(_flag_a, _flag_b)) goto L_47087C2B; /* 0x47087BC6: je 0x47087c2b */ 7601 L_47087BC8: 7602 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47087BC8: call dword ptr [0x470ac150] */ 7603 RECOMP_FLAGS_IN(); 7604 ebp = eax; /* 0x47087BCE: mov ebp, eax */ 7605 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47087BD0: call dword ptr [0x470ac3c8] */ 7606 RECOMP_FLAGS_IN(); 7607 eax = MEM32(eax); /* 0x47087BD6: mov eax, dword ptr [eax] */ 7608 /* cmp eax, ebx */ /* 0x47087BD8: cmp eax, ebx */ 7609 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 7610 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7611 _flag_k = FK_CMP; 7612 if (CMP_EQ(_flag_a, _flag_b)) goto L_47087BDE; /* 0x47087BDA: je 0x47087bde */ 7613 L_47087BDC: 7614 ebp = eax; /* 0x47087BDC: mov ebp, eax */ 7615 L_47087BDE: 7616 RECOMP_ICALL(0x47039020u); /* 0x47087BDE: call 0x47039020 */ /* not lifted */ 7617 RECOMP_FLAGS_IN(); 7618 ebx = eax; /* 0x47087BE3: mov ebx, eax */ 7619 ecx = ebx; /* 0x47087BE5: mov ecx, ebx */ 7620 RECOMP_ICALL(0x4703B210u); /* 0x47087BE7: call 0x4703b210 */ /* not lifted */ 7621 RECOMP_FLAGS_IN(); 7622 PUSH32(esp, eax); /* 0x47087BEC: push eax */ 7623 ecx = ebx; /* 0x47087BED: mov ecx, ebx */ 7624 RECOMP_ICALL(0x4703B240u); /* 0x47087BEF: call 0x4703b240 */ /* not lifted */ 7625 RECOMP_FLAGS_IN(); 7626 PUSH32(esp, eax); /* 0x47087BF4: push eax */ 7627 ecx = ebx; /* 0x47087BF5: mov ecx, ebx */ 7628 RECOMP_ICALL(0x4703B080u); /* 0x47087BF7: call 0x4703b080 */ /* not lifted */ 7629 RECOMP_FLAGS_IN(); 7630 PUSH32(esp, eax); /* 0x47087BFC: push eax */ 7631 PUSH32(esp, ebp); /* 0x47087BFD: push ebp */ 7632 PUSH32(esp, 0xFFFFFFFFu); /* 0x47087BFE: push -1 */ 7633 PUSH32(esp, 0x2F6u); /* 0x47087C00: push 0x2f6 */ 7634 PUSH32(esp, 0x4710C610u); /* 0x47087C05: push 0x4710c610 */ 7635 ecx = ebx; /* 0x47087C0A: mov ecx, ebx */ 7636 RECOMP_ICALL(0x4703A340u); /* 0x47087C0C: call 0x4703a340 */ /* not lifted */ 7637 RECOMP_FLAGS_IN(); 7638 PUSH32(esp, 0x4710C6FCu); /* 0x47087C11: push 0x4710c6fc */ 7639 PUSH32(esp, 0x471055F0u); /* 0x47087C16: push 0x471055f0 */ 7640 PUSH32(esp, 0x80u); /* 0x47087C1B: push 0x80 */ 7641 PUSH32(esp, ebx); /* 0x47087C20: push ebx */ 7642 RECOMP_ICALL(0x47039830u); /* 0x47087C21: call 0x47039830 */ /* not lifted */ 7643 RECOMP_FLAGS_IN(); 7644 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7645 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7646 esp = esp + 0x10u; /* 0x47087C26: add esp, 0x10 */ 7647 _flag_k = FK_ADD; 7648 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7649 ebx = 0; /* 0x47087C29: xor ebx, ebx */ 7650 _cf = 0; 7651 _flag_k = FK_TEST; 7652 L_47087C2B: 7653 edx = MEM32(esp + 0x24); /* 0x47087C2B: mov edx, dword ptr [esp + 0x24] */ 7654 MEM32(edi + 0x30) = edx; /* 0x47087C2F: mov dword ptr [edi + 0x30], edx */ 7655 eax = MEM32(esp + 0x28); /* 0x47087C32: mov eax, dword ptr [esp + 0x28] */ 7656 PUSH32(esp, ebx); /* 0x47087C36: push ebx */ 7657 PUSH32(esp, eax); /* 0x47087C37: push eax */ 7658 ebp = esi + 0x58; /* 0x47087C38: lea ebp, [esi + 0x58] */ 7659 PUSH32(esp, 1); /* 0x47087C3B: push 1 */ 7660 PUSH32(esp, ebp); /* 0x47087C3D: push ebp */ 7661 MEM8(esp + 0x2C) = (uint8_t)(1); /* 0x47087C3E: mov byte ptr [esp + 0x2c], 1 */ 7662 MEM32(ebp + 0x28) = esi; /* 0x47087C43: mov dword ptr [ebp + 0x28], esi */ 7663 MEM32(ebp + 0x2C) = ebx; /* 0x47087C46: mov dword ptr [ebp + 0x2c], ebx */ 7664 RECOMP_ICALL(0x47057C10u); /* 0x47087C49: call 0x47057c10 */ /* not lifted */ 7665 RECOMP_FLAGS_IN(); 7666 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7667 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7668 esp = esp + 0x10u; /* 0x47087C4E: add esp, 0x10 */ 7669 _flag_k = FK_ADD; 7670 /* test eax, eax */ /* 0x47087C51: test eax, eax */ 7671 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7672 _cf = 0; 7673 _flag_k = FK_TEST; 7674 if (TEST_Z(_flag_a, _flag_b)) goto L_47087CC8; /* 0x47087C53: je 0x47087cc8 */ 7675 L_47087C55: 7676 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47087C55: call dword ptr [0x470ac150] */ 7677 RECOMP_FLAGS_IN(); 7678 MEM32(esp + 0x28) = eax; /* 0x47087C5B: mov dword ptr [esp + 0x28], eax */ 7679 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47087C5F: call dword ptr [0x470ac3c8] */ 7680 RECOMP_FLAGS_IN(); 7681 eax = MEM32(eax); /* 0x47087C65: mov eax, dword ptr [eax] */ 7682 /* cmp eax, ebx */ /* 0x47087C67: cmp eax, ebx */ 7683 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 7684 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7685 _flag_k = FK_CMP; 7686 if (CMP_NE(_flag_a, _flag_b)) goto L_47087C75; /* 0x47087C69: jne 0x47087c75 */ 7687 L_47087C6B: 7688 ecx = MEM32(esp + 0x28); /* 0x47087C6B: mov ecx, dword ptr [esp + 0x28] */ 7689 MEM32(esp + 0x28) = ecx; /* 0x47087C6F: mov dword ptr [esp + 0x28], ecx */ 7690 goto L_47087C79; /* 0x47087C73: jmp 0x47087c79 */ 7691 L_47087C75: 7692 MEM32(esp + 0x28) = eax; /* 0x47087C75: mov dword ptr [esp + 0x28], eax */ 7693 L_47087C79: 7694 RECOMP_ICALL(0x47039020u); /* 0x47087C79: call 0x47039020 */ /* not lifted */ 7695 RECOMP_FLAGS_IN(); 7696 ebx = eax; /* 0x47087C7E: mov ebx, eax */ 7697 ecx = ebx; /* 0x47087C80: mov ecx, ebx */ 7698 RECOMP_ICALL(0x4703B210u); /* 0x47087C82: call 0x4703b210 */ /* not lifted */ 7699 RECOMP_FLAGS_IN(); 7700 PUSH32(esp, eax); /* 0x47087C87: push eax */ 7701 ecx = ebx; /* 0x47087C88: mov ecx, ebx */ 7702 RECOMP_ICALL(0x4703B240u); /* 0x47087C8A: call 0x4703b240 */ /* not lifted */ 7703 RECOMP_FLAGS_IN(); 7704 PUSH32(esp, eax); /* 0x47087C8F: push eax */ 7705 ecx = ebx; /* 0x47087C90: mov ecx, ebx */ 7706 RECOMP_ICALL(0x4703B080u); /* 0x47087C92: call 0x4703b080 */ /* not lifted */ 7707 RECOMP_FLAGS_IN(); 7708 edx = MEM32(esp + 0x30); /* 0x47087C97: mov edx, dword ptr [esp + 0x30] */ 7709 PUSH32(esp, eax); /* 0x47087C9B: push eax */ 7710 PUSH32(esp, edx); /* 0x47087C9C: push edx */ 7711 PUSH32(esp, 0xFFFFFFFFu); /* 0x47087C9D: push -1 */ 7712 PUSH32(esp, 0x2F6u); /* 0x47087C9F: push 0x2f6 */ 7713 PUSH32(esp, 0x4710C610u); /* 0x47087CA4: push 0x4710c610 */ 7714 ecx = ebx; /* 0x47087CA9: mov ecx, ebx */ 7715 RECOMP_ICALL(0x4703A340u); /* 0x47087CAB: call 0x4703a340 */ /* not lifted */ 7716 RECOMP_FLAGS_IN(); 7717 PUSH32(esp, 0x4710C6FCu); /* 0x47087CB0: push 0x4710c6fc */ 7718 PUSH32(esp, 0x471055F0u); /* 0x47087CB5: push 0x471055f0 */ 7719 PUSH32(esp, 0x80u); /* 0x47087CBA: push 0x80 */ 7720 PUSH32(esp, ebx); /* 0x47087CBF: push ebx */ 7721 RECOMP_ICALL(0x47039830u); /* 0x47087CC0: call 0x47039830 */ /* not lifted */ 7722 RECOMP_FLAGS_IN(); 7723 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7724 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7725 esp = esp + 0x10u; /* 0x47087CC5: add esp, 0x10 */ 7726 _flag_k = FK_ADD; 7727 L_47087CC8: 7728 eax = MEM32(esp + 0x24); /* 0x47087CC8: mov eax, dword ptr [esp + 0x24] */ 7729 ecx = MEM32(esp + 0x14); /* 0x47087CCC: mov ecx, dword ptr [esp + 0x14] */ 7730 MEM32(ebp + 0x30) = eax; /* 0x47087CD0: mov dword ptr [ebp + 0x30], eax */ 7731 MEM32(esi + 0x8C) = edi; /* 0x47087CD3: mov dword ptr [esi + 0x8c], edi */ 7732 edi = POP32_VAL(esp); /* 0x47087CD9: pop edi */ 7733 MEM32(esi + 0x90) = ebp; /* 0x47087CDA: mov dword ptr [esi + 0x90], ebp */ 7734 eax = esi; /* 0x47087CE0: mov eax, esi */ 7735 esi = POP32_VAL(esp); /* 0x47087CE2: pop esi */ 7736 ebp = POP32_VAL(esp); /* 0x47087CE3: pop ebp */ 7737 ebx = POP32_VAL(esp); /* 0x47087CE4: pop ebx */ 7738 MEM32(FS_BASE + (0)) = ecx; /* 0x47087CE5: mov dword ptr fs:[0], ecx */ 7739 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7740 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7741 esp = esp + 0x10u; /* 0x47087CEC: add esp, 0x10 */ 7742 _flag_k = FK_ADD; 7743 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47087CEF: ret 8 */ 7744 RECOMP_REGS_OUT(); 7745 } 7746 7747 void sub_47087D00(void) { 7748 int _fpu_cmp = 0; 7749 uint32_t _cf = 0; 7750 int _df = 1; 7751 uint32_t _flag_k = FK_NONE; 7752 uint32_t _flag_a = 0, _flag_b = 0; 7753 uint32_t _itail_tgt = 0; 7754 RECOMP_REGS_LOCALS 7755 RECOMP_ENTER(0x47087D00u); 7756 7757 goto L_47087D00; 7758 L_47087780: 7759 PUSH32(esp, ecx); /* 0x47087780: push ecx */ 7760 PUSH32(esp, ebx); /* 0x47087781: push ebx */ 7761 ebx = MEM32(0x470AC150); /* 0x47087782: mov ebx, dword ptr [0x470ac150] */ 7762 PUSH32(esp, ebp); /* 0x47087788: push ebp */ 7763 PUSH32(esp, esi); /* 0x47087789: push esi */ 7764 PUSH32(esp, edi); /* 0x4708778A: push edi */ 7765 edi = ecx; /* 0x4708778B: mov edi, ecx */ 7766 RECOMP_ICALL(ebx); /* 0x4708778D: call ebx */ 7767 RECOMP_FLAGS_IN(); 7768 ebp = MEM32(0x470AC3C8); /* 0x4708778F: mov ebp, dword ptr [0x470ac3c8] */ 7769 esi = eax; /* 0x47087795: mov esi, eax */ 7770 RECOMP_ICALL(ebp); /* 0x47087797: call ebp */ 7771 RECOMP_FLAGS_IN(); 7772 eax = MEM32(eax); /* 0x47087799: mov eax, dword ptr [eax] */ 7773 /* test eax, eax */ /* 0x4708779B: test eax, eax */ 7774 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7775 _cf = 0; 7776 _flag_k = FK_TEST; 7777 MEM32(esp + 0x10) = esi; /* 0x4708779D: mov dword ptr [esp + 0x10], esi */ 7778 if (TEST_Z(_flag_a, _flag_b)) goto L_470877A7; /* 0x470877A1: je 0x470877a7 */ 7779 L_470877A3: 7780 MEM32(esp + 0x10) = eax; /* 0x470877A3: mov dword ptr [esp + 0x10], eax */ 7781 L_470877A7: 7782 RECOMP_ICALL(0x47039020u); /* 0x470877A7: call 0x47039020 */ /* not lifted */ 7783 RECOMP_FLAGS_IN(); 7784 esi = eax; /* 0x470877AC: mov esi, eax */ 7785 ecx = esi; /* 0x470877AE: mov ecx, esi */ 7786 RECOMP_ICALL(0x4703B210u); /* 0x470877B0: call 0x4703b210 */ /* not lifted */ 7787 RECOMP_FLAGS_IN(); 7788 PUSH32(esp, eax); /* 0x470877B5: push eax */ 7789 ecx = esi; /* 0x470877B6: mov ecx, esi */ 7790 RECOMP_ICALL(0x4703B240u); /* 0x470877B8: call 0x4703b240 */ /* not lifted */ 7791 RECOMP_FLAGS_IN(); 7792 PUSH32(esp, eax); /* 0x470877BD: push eax */ 7793 ecx = esi; /* 0x470877BE: mov ecx, esi */ 7794 RECOMP_ICALL(0x4703B080u); /* 0x470877C0: call 0x4703b080 */ /* not lifted */ 7795 RECOMP_FLAGS_IN(); 7796 PUSH32(esp, eax); /* 0x470877C5: push eax */ 7797 eax = MEM32(esp + 0x1C); /* 0x470877C6: mov eax, dword ptr [esp + 0x1c] */ 7798 PUSH32(esp, eax); /* 0x470877CA: push eax */ 7799 PUSH32(esp, 0); /* 0x470877CB: push 0 */ 7800 PUSH32(esp, 0x360u); /* 0x470877CD: push 0x360 */ 7801 PUSH32(esp, 0x4710C610u); /* 0x470877D2: push 0x4710c610 */ 7802 ecx = esi; /* 0x470877D7: mov ecx, esi */ 7803 RECOMP_ICALL(0x4703A340u); /* 0x470877D9: call 0x4703a340 */ /* not lifted */ 7804 RECOMP_FLAGS_IN(); 7805 PUSH32(esp, edi); /* 0x470877DE: push edi */ 7806 PUSH32(esp, 0x471052CCu); /* 0x470877DF: push 0x471052cc */ 7807 PUSH32(esp, 4); /* 0x470877E4: push 4 */ 7808 PUSH32(esp, esi); /* 0x470877E6: push esi */ 7809 RECOMP_ICALL(0x47039830u); /* 0x470877E7: call 0x47039830 */ /* not lifted */ 7810 RECOMP_FLAGS_IN(); 7811 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7812 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7813 esp = esp + 0x10u; /* 0x470877EC: add esp, 0x10 */ 7814 _flag_k = FK_ADD; 7815 ecx = edi; /* 0x470877EF: mov ecx, edi */ 7816 RECOMP_ICALL(0x47087D10u); /* 0x470877F1: call 0x47087d10 */ /* not lifted */ 7817 RECOMP_FLAGS_IN(); 7818 RECOMP_ICALL(ebx); /* 0x470877F6: call ebx */ 7819 RECOMP_FLAGS_IN(); 7820 esi = eax; /* 0x470877F8: mov esi, eax */ 7821 RECOMP_ICALL(ebp); /* 0x470877FA: call ebp */ 7822 RECOMP_FLAGS_IN(); 7823 eax = MEM32(eax); /* 0x470877FC: mov eax, dword ptr [eax] */ 7824 /* test eax, eax */ /* 0x470877FE: test eax, eax */ 7825 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7826 _cf = 0; 7827 _flag_k = FK_TEST; 7828 MEM32(esp + 0x10) = esi; /* 0x47087800: mov dword ptr [esp + 0x10], esi */ 7829 if (TEST_Z(_flag_a, _flag_b)) goto L_4708780A; /* 0x47087804: je 0x4708780a */ 7830 L_47087806: 7831 MEM32(esp + 0x10) = eax; /* 0x47087806: mov dword ptr [esp + 0x10], eax */ 7832 L_4708780A: 7833 RECOMP_ICALL(0x47039020u); /* 0x4708780A: call 0x47039020 */ /* not lifted */ 7834 RECOMP_FLAGS_IN(); 7835 esi = eax; /* 0x4708780F: mov esi, eax */ 7836 ecx = esi; /* 0x47087811: mov ecx, esi */ 7837 RECOMP_ICALL(0x4703B210u); /* 0x47087813: call 0x4703b210 */ /* not lifted */ 7838 RECOMP_FLAGS_IN(); 7839 PUSH32(esp, eax); /* 0x47087818: push eax */ 7840 ecx = esi; /* 0x47087819: mov ecx, esi */ 7841 RECOMP_ICALL(0x4703B240u); /* 0x4708781B: call 0x4703b240 */ /* not lifted */ 7842 RECOMP_FLAGS_IN(); 7843 PUSH32(esp, eax); /* 0x47087820: push eax */ 7844 ecx = esi; /* 0x47087821: mov ecx, esi */ 7845 RECOMP_ICALL(0x4703B080u); /* 0x47087823: call 0x4703b080 */ /* not lifted */ 7846 RECOMP_FLAGS_IN(); 7847 ecx = MEM32(esp + 0x18); /* 0x47087828: mov ecx, dword ptr [esp + 0x18] */ 7848 PUSH32(esp, eax); /* 0x4708782C: push eax */ 7849 PUSH32(esp, ecx); /* 0x4708782D: push ecx */ 7850 PUSH32(esp, 0); /* 0x4708782E: push 0 */ 7851 PUSH32(esp, 0x362u); /* 0x47087830: push 0x362 */ 7852 PUSH32(esp, 0x4710C610u); /* 0x47087835: push 0x4710c610 */ 7853 ecx = esi; /* 0x4708783A: mov ecx, esi */ 7854 RECOMP_ICALL(0x4703A340u); /* 0x4708783C: call 0x4703a340 */ /* not lifted */ 7855 RECOMP_FLAGS_IN(); 7856 edx = MEM32(edi + 0x1C); /* 0x47087841: mov edx, dword ptr [edi + 0x1c] */ 7857 PUSH32(esp, edx); /* 0x47087844: push edx */ 7858 PUSH32(esp, 0x4710C75Cu); /* 0x47087845: push 0x4710c75c */ 7859 PUSH32(esp, 4); /* 0x4708784A: push 4 */ 7860 PUSH32(esp, esi); /* 0x4708784C: push esi */ 7861 RECOMP_ICALL(0x47039830u); /* 0x4708784D: call 0x47039830 */ /* not lifted */ 7862 RECOMP_FLAGS_IN(); 7863 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7864 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7865 esp = esp + 0x10u; /* 0x47087852: add esp, 0x10 */ 7866 _flag_k = FK_ADD; 7867 RECOMP_ICALL(ebx); /* 0x47087855: call ebx */ 7868 RECOMP_FLAGS_IN(); 7869 esi = eax; /* 0x47087857: mov esi, eax */ 7870 RECOMP_ICALL(ebp); /* 0x47087859: call ebp */ 7871 RECOMP_FLAGS_IN(); 7872 eax = MEM32(eax); /* 0x4708785B: mov eax, dword ptr [eax] */ 7873 /* test eax, eax */ /* 0x4708785D: test eax, eax */ 7874 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7875 _cf = 0; 7876 _flag_k = FK_TEST; 7877 MEM32(esp + 0x10) = esi; /* 0x4708785F: mov dword ptr [esp + 0x10], esi */ 7878 if (TEST_Z(_flag_a, _flag_b)) goto L_47087869; /* 0x47087863: je 0x47087869 */ 7879 L_47087865: 7880 MEM32(esp + 0x10) = eax; /* 0x47087865: mov dword ptr [esp + 0x10], eax */ 7881 L_47087869: 7882 RECOMP_ICALL(0x47039020u); /* 0x47087869: call 0x47039020 */ /* not lifted */ 7883 RECOMP_FLAGS_IN(); 7884 esi = eax; /* 0x4708786E: mov esi, eax */ 7885 ecx = esi; /* 0x47087870: mov ecx, esi */ 7886 RECOMP_ICALL(0x4703B210u); /* 0x47087872: call 0x4703b210 */ /* not lifted */ 7887 RECOMP_FLAGS_IN(); 7888 PUSH32(esp, eax); /* 0x47087877: push eax */ 7889 ecx = esi; /* 0x47087878: mov ecx, esi */ 7890 RECOMP_ICALL(0x4703B240u); /* 0x4708787A: call 0x4703b240 */ /* not lifted */ 7891 RECOMP_FLAGS_IN(); 7892 PUSH32(esp, eax); /* 0x4708787F: push eax */ 7893 ecx = esi; /* 0x47087880: mov ecx, esi */ 7894 RECOMP_ICALL(0x4703B080u); /* 0x47087882: call 0x4703b080 */ /* not lifted */ 7895 RECOMP_FLAGS_IN(); 7896 PUSH32(esp, eax); /* 0x47087887: push eax */ 7897 eax = MEM32(esp + 0x1C); /* 0x47087888: mov eax, dword ptr [esp + 0x1c] */ 7898 PUSH32(esp, eax); /* 0x4708788C: push eax */ 7899 PUSH32(esp, 0); /* 0x4708788D: push 0 */ 7900 PUSH32(esp, 0x363u); /* 0x4708788F: push 0x363 */ 7901 PUSH32(esp, 0x4710C610u); /* 0x47087894: push 0x4710c610 */ 7902 ecx = esi; /* 0x47087899: mov ecx, esi */ 7903 RECOMP_ICALL(0x4703A340u); /* 0x4708789B: call 0x4703a340 */ /* not lifted */ 7904 RECOMP_FLAGS_IN(); 7905 ecx = MEM32(edi + 0x20); /* 0x470878A0: mov ecx, dword ptr [edi + 0x20] */ 7906 PUSH32(esp, ecx); /* 0x470878A3: push ecx */ 7907 PUSH32(esp, 0x4710C74Cu); /* 0x470878A4: push 0x4710c74c */ 7908 PUSH32(esp, 4); /* 0x470878A9: push 4 */ 7909 PUSH32(esp, esi); /* 0x470878AB: push esi */ 7910 RECOMP_ICALL(0x47039830u); /* 0x470878AC: call 0x47039830 */ /* not lifted */ 7911 RECOMP_FLAGS_IN(); 7912 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7913 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7914 esp = esp + 0x10u; /* 0x470878B1: add esp, 0x10 */ 7915 _flag_k = FK_ADD; 7916 ecx = edi + 0x24; /* 0x470878B4: lea ecx, [edi + 0x24] */ 7917 RECOMP_ICALL(0x47087550u); /* 0x470878B7: call 0x47087550 */ /* not lifted */ 7918 RECOMP_FLAGS_IN(); 7919 ecx = edi + 0x58; /* 0x470878BC: lea ecx, [edi + 0x58] */ 7920 RECOMP_ICALL(0x47087550u); /* 0x470878BF: call 0x47087550 */ /* not lifted */ 7921 RECOMP_FLAGS_IN(); 7922 RECOMP_ICALL(ebx); /* 0x470878C4: call ebx */ 7923 RECOMP_FLAGS_IN(); 7924 esi = eax; /* 0x470878C6: mov esi, eax */ 7925 RECOMP_ICALL(ebp); /* 0x470878C8: call ebp */ 7926 RECOMP_FLAGS_IN(); 7927 eax = MEM32(eax); /* 0x470878CA: mov eax, dword ptr [eax] */ 7928 /* test eax, eax */ /* 0x470878CC: test eax, eax */ 7929 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7930 _cf = 0; 7931 _flag_k = FK_TEST; 7932 edi = esi; /* 0x470878CE: mov edi, esi */ 7933 if (TEST_Z(_flag_a, _flag_b)) goto L_470878D4; /* 0x470878D0: je 0x470878d4 */ 7934 L_470878D2: 7935 edi = eax; /* 0x470878D2: mov edi, eax */ 7936 L_470878D4: 7937 RECOMP_ICALL(0x47039020u); /* 0x470878D4: call 0x47039020 */ /* not lifted */ 7938 RECOMP_FLAGS_IN(); 7939 esi = eax; /* 0x470878D9: mov esi, eax */ 7940 ecx = esi; /* 0x470878DB: mov ecx, esi */ 7941 RECOMP_ICALL(0x4703B210u); /* 0x470878DD: call 0x4703b210 */ /* not lifted */ 7942 RECOMP_FLAGS_IN(); 7943 PUSH32(esp, eax); /* 0x470878E2: push eax */ 7944 ecx = esi; /* 0x470878E3: mov ecx, esi */ 7945 RECOMP_ICALL(0x4703B240u); /* 0x470878E5: call 0x4703b240 */ /* not lifted */ 7946 RECOMP_FLAGS_IN(); 7947 PUSH32(esp, eax); /* 0x470878EA: push eax */ 7948 ecx = esi; /* 0x470878EB: mov ecx, esi */ 7949 RECOMP_ICALL(0x4703B080u); /* 0x470878ED: call 0x4703b080 */ /* not lifted */ 7950 RECOMP_FLAGS_IN(); 7951 PUSH32(esp, eax); /* 0x470878F2: push eax */ 7952 PUSH32(esp, edi); /* 0x470878F3: push edi */ 7953 PUSH32(esp, 0); /* 0x470878F4: push 0 */ 7954 PUSH32(esp, 0x366u); /* 0x470878F6: push 0x366 */ 7955 PUSH32(esp, 0x4710C610u); /* 0x470878FB: push 0x4710c610 */ 7956 ecx = esi; /* 0x47087900: mov ecx, esi */ 7957 RECOMP_ICALL(0x4703A340u); /* 0x47087902: call 0x4703a340 */ /* not lifted */ 7958 RECOMP_FLAGS_IN(); 7959 PUSH32(esp, 0x4710529Cu); /* 0x47087907: push 0x4710529c */ 7960 PUSH32(esp, 4); /* 0x4708790C: push 4 */ 7961 PUSH32(esp, esi); /* 0x4708790E: push esi */ 7962 RECOMP_ICALL(0x47039830u); /* 0x4708790F: call 0x47039830 */ /* not lifted */ 7963 RECOMP_FLAGS_IN(); 7964 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7965 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7966 esp = esp + 0xCu; /* 0x47087914: add esp, 0xc */ 7967 _flag_k = FK_ADD; 7968 edi = POP32_VAL(esp); /* 0x47087917: pop edi */ 7969 esi = POP32_VAL(esp); /* 0x47087918: pop esi */ 7970 ebp = POP32_VAL(esp); /* 0x47087919: pop ebp */ 7971 ebx = POP32_VAL(esp); /* 0x4708791A: pop ebx */ 7972 ecx = POP32_VAL(esp); /* 0x4708791B: pop ecx */ 7973 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708791C: ret */ 7974 L_47087D00: 7975 RECOMP_BACKEDGE(); 7976 goto L_47087780; /* 0x47087D00: jmp 0x47087780 */ 7977 { RECOMP_REGS_OUT(); return; } /* end of function */ 7978 RECOMP_REGS_OUT(); 7979 } 7980 7981 void sub_47087D10(void) { 7982 int _fpu_cmp = 0; 7983 uint32_t _cf = 0; 7984 int _df = 1; 7985 uint32_t _flag_k = FK_NONE; 7986 uint32_t _flag_a = 0, _flag_b = 0; 7987 uint32_t _itail_tgt = 0; 7988 RECOMP_REGS_LOCALS 7989 RECOMP_ENTER(0x47087D10u); 7990 7991 L_47087D10: 7992 PUSH32(esp, ecx); /* 0x47087D10: push ecx */ 7993 PUSH32(esp, ebx); /* 0x47087D11: push ebx */ 7994 PUSH32(esp, ebp); /* 0x47087D12: push ebp */ 7995 PUSH32(esp, esi); /* 0x47087D13: push esi */ 7996 PUSH32(esp, edi); /* 0x47087D14: push edi */ 7997 edi = MEM32(0x470AC150); /* 0x47087D15: mov edi, dword ptr [0x470ac150] */ 7998 MEM32(esp + 0x10) = ecx; /* 0x47087D1B: mov dword ptr [esp + 0x10], ecx */ 7999 RECOMP_ICALL(edi); /* 0x47087D1F: call edi */ 8000 RECOMP_FLAGS_IN(); 8001 ebx = MEM32(0x470AC3C8); /* 0x47087D21: mov ebx, dword ptr [0x470ac3c8] */ 8002 ebp = eax; /* 0x47087D27: mov ebp, eax */ 8003 RECOMP_ICALL(ebx); /* 0x47087D29: call ebx */ 8004 RECOMP_FLAGS_IN(); 8005 eax = MEM32(eax); /* 0x47087D2B: mov eax, dword ptr [eax] */ 8006 /* test eax, eax */ /* 0x47087D2D: test eax, eax */ 8007 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8008 _cf = 0; 8009 _flag_k = FK_TEST; 8010 if (TEST_Z(_flag_a, _flag_b)) goto L_47087D33; /* 0x47087D2F: je 0x47087d33 */ 8011 L_47087D31: 8012 ebp = eax; /* 0x47087D31: mov ebp, eax */ 8013 L_47087D33: 8014 RECOMP_ICALL(0x47039020u); /* 0x47087D33: call 0x47039020 */ /* not lifted */ 8015 RECOMP_FLAGS_IN(); 8016 esi = eax; /* 0x47087D38: mov esi, eax */ 8017 ecx = esi; /* 0x47087D3A: mov ecx, esi */ 8018 RECOMP_ICALL(0x4703B210u); /* 0x47087D3C: call 0x4703b210 */ /* not lifted */ 8019 RECOMP_FLAGS_IN(); 8020 PUSH32(esp, eax); /* 0x47087D41: push eax */ 8021 ecx = esi; /* 0x47087D42: mov ecx, esi */ 8022 RECOMP_ICALL(0x4703B240u); /* 0x47087D44: call 0x4703b240 */ /* not lifted */ 8023 RECOMP_FLAGS_IN(); 8024 PUSH32(esp, eax); /* 0x47087D49: push eax */ 8025 ecx = esi; /* 0x47087D4A: mov ecx, esi */ 8026 RECOMP_ICALL(0x4703B080u); /* 0x47087D4C: call 0x4703b080 */ /* not lifted */ 8027 RECOMP_FLAGS_IN(); 8028 PUSH32(esp, eax); /* 0x47087D51: push eax */ 8029 PUSH32(esp, ebp); /* 0x47087D52: push ebp */ 8030 PUSH32(esp, 0); /* 0x47087D53: push 0 */ 8031 PUSH32(esp, 0x3CFu); /* 0x47087D55: push 0x3cf */ 8032 PUSH32(esp, 0x4710C610u); /* 0x47087D5A: push 0x4710c610 */ 8033 ecx = esi; /* 0x47087D5F: mov ecx, esi */ 8034 RECOMP_ICALL(0x4703A340u); /* 0x47087D61: call 0x4703a340 */ /* not lifted */ 8035 RECOMP_FLAGS_IN(); 8036 eax = MEM32(esp + 0x10); /* 0x47087D66: mov eax, dword ptr [esp + 0x10] */ 8037 PUSH32(esp, eax); /* 0x47087D6A: push eax */ 8038 PUSH32(esp, 0x471052CCu); /* 0x47087D6B: push 0x471052cc */ 8039 PUSH32(esp, 4); /* 0x47087D70: push 4 */ 8040 PUSH32(esp, esi); /* 0x47087D72: push esi */ 8041 RECOMP_ICALL(0x47039830u); /* 0x47087D73: call 0x47039830 */ /* not lifted */ 8042 RECOMP_FLAGS_IN(); 8043 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 8044 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8045 esp = esp + 0x10u; /* 0x47087D78: add esp, 0x10 */ 8046 _flag_k = FK_ADD; 8047 RECOMP_ICALL(edi); /* 0x47087D7B: call edi */ 8048 RECOMP_FLAGS_IN(); 8049 ebp = eax; /* 0x47087D7D: mov ebp, eax */ 8050 RECOMP_ICALL(ebx); /* 0x47087D7F: call ebx */ 8051 RECOMP_FLAGS_IN(); 8052 eax = MEM32(eax); /* 0x47087D81: mov eax, dword ptr [eax] */ 8053 /* test eax, eax */ /* 0x47087D83: test eax, eax */ 8054 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8055 _cf = 0; 8056 _flag_k = FK_TEST; 8057 if (TEST_Z(_flag_a, _flag_b)) goto L_47087D89; /* 0x47087D85: je 0x47087d89 */ 8058 L_47087D87: 8059 ebp = eax; /* 0x47087D87: mov ebp, eax */ 8060 L_47087D89: 8061 RECOMP_ICALL(0x47039020u); /* 0x47087D89: call 0x47039020 */ /* not lifted */ 8062 RECOMP_FLAGS_IN(); 8063 esi = eax; /* 0x47087D8E: mov esi, eax */ 8064 ecx = esi; /* 0x47087D90: mov ecx, esi */ 8065 RECOMP_ICALL(0x4703B210u); /* 0x47087D92: call 0x4703b210 */ /* not lifted */ 8066 RECOMP_FLAGS_IN(); 8067 PUSH32(esp, eax); /* 0x47087D97: push eax */ 8068 ecx = esi; /* 0x47087D98: mov ecx, esi */ 8069 RECOMP_ICALL(0x4703B240u); /* 0x47087D9A: call 0x4703b240 */ /* not lifted */ 8070 RECOMP_FLAGS_IN(); 8071 PUSH32(esp, eax); /* 0x47087D9F: push eax */ 8072 ecx = esi; /* 0x47087DA0: mov ecx, esi */ 8073 RECOMP_ICALL(0x4703B080u); /* 0x47087DA2: call 0x4703b080 */ /* not lifted */ 8074 RECOMP_FLAGS_IN(); 8075 PUSH32(esp, eax); /* 0x47087DA7: push eax */ 8076 PUSH32(esp, ebp); /* 0x47087DA8: push ebp */ 8077 PUSH32(esp, 0); /* 0x47087DA9: push 0 */ 8078 PUSH32(esp, 0x3D0u); /* 0x47087DAB: push 0x3d0 */ 8079 PUSH32(esp, 0x4710C610u); /* 0x47087DB0: push 0x4710c610 */ 8080 ecx = esi; /* 0x47087DB5: mov ecx, esi */ 8081 RECOMP_ICALL(0x4703A340u); /* 0x47087DB7: call 0x4703a340 */ /* not lifted */ 8082 RECOMP_FLAGS_IN(); 8083 PUSH32(esp, 0x47105590u); /* 0x47087DBC: push 0x47105590 */ 8084 PUSH32(esp, 4); /* 0x47087DC1: push 4 */ 8085 PUSH32(esp, esi); /* 0x47087DC3: push esi */ 8086 RECOMP_ICALL(0x47039830u); /* 0x47087DC4: call 0x47039830 */ /* not lifted */ 8087 RECOMP_FLAGS_IN(); 8088 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8089 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8090 esp = esp + 0xCu; /* 0x47087DC9: add esp, 0xc */ 8091 _flag_k = FK_ADD; 8092 RECOMP_ICALL(edi); /* 0x47087DCC: call edi */ 8093 RECOMP_FLAGS_IN(); 8094 esi = eax; /* 0x47087DCE: mov esi, eax */ 8095 RECOMP_ICALL(ebx); /* 0x47087DD0: call ebx */ 8096 RECOMP_FLAGS_IN(); 8097 eax = MEM32(eax); /* 0x47087DD2: mov eax, dword ptr [eax] */ 8098 /* test eax, eax */ /* 0x47087DD4: test eax, eax */ 8099 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8100 _cf = 0; 8101 _flag_k = FK_TEST; 8102 edi = esi; /* 0x47087DD6: mov edi, esi */ 8103 if (TEST_Z(_flag_a, _flag_b)) goto L_47087DDC; /* 0x47087DD8: je 0x47087ddc */ 8104 L_47087DDA: 8105 edi = eax; /* 0x47087DDA: mov edi, eax */ 8106 L_47087DDC: 8107 RECOMP_ICALL(0x47039020u); /* 0x47087DDC: call 0x47039020 */ /* not lifted */ 8108 RECOMP_FLAGS_IN(); 8109 esi = eax; /* 0x47087DE1: mov esi, eax */ 8110 ecx = esi; /* 0x47087DE3: mov ecx, esi */ 8111 RECOMP_ICALL(0x4703B210u); /* 0x47087DE5: call 0x4703b210 */ /* not lifted */ 8112 RECOMP_FLAGS_IN(); 8113 PUSH32(esp, eax); /* 0x47087DEA: push eax */ 8114 ecx = esi; /* 0x47087DEB: mov ecx, esi */ 8115 RECOMP_ICALL(0x4703B240u); /* 0x47087DED: call 0x4703b240 */ /* not lifted */ 8116 RECOMP_FLAGS_IN(); 8117 PUSH32(esp, eax); /* 0x47087DF2: push eax */ 8118 ecx = esi; /* 0x47087DF3: mov ecx, esi */ 8119 RECOMP_ICALL(0x4703B080u); /* 0x47087DF5: call 0x4703b080 */ /* not lifted */ 8120 RECOMP_FLAGS_IN(); 8121 PUSH32(esp, eax); /* 0x47087DFA: push eax */ 8122 PUSH32(esp, edi); /* 0x47087DFB: push edi */ 8123 PUSH32(esp, 0); /* 0x47087DFC: push 0 */ 8124 PUSH32(esp, 0x3D1u); /* 0x47087DFE: push 0x3d1 */ 8125 PUSH32(esp, 0x4710C610u); /* 0x47087E03: push 0x4710c610 */ 8126 ecx = esi; /* 0x47087E08: mov ecx, esi */ 8127 RECOMP_ICALL(0x4703A340u); /* 0x47087E0A: call 0x4703a340 */ /* not lifted */ 8128 RECOMP_FLAGS_IN(); 8129 PUSH32(esp, 0x4710529Cu); /* 0x47087E0F: push 0x4710529c */ 8130 PUSH32(esp, 4); /* 0x47087E14: push 4 */ 8131 PUSH32(esp, esi); /* 0x47087E16: push esi */ 8132 RECOMP_ICALL(0x47039830u); /* 0x47087E17: call 0x47039830 */ /* not lifted */ 8133 RECOMP_FLAGS_IN(); 8134 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8135 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8136 esp = esp + 0xCu; /* 0x47087E1C: add esp, 0xc */ 8137 _flag_k = FK_ADD; 8138 edi = POP32_VAL(esp); /* 0x47087E1F: pop edi */ 8139 esi = POP32_VAL(esp); /* 0x47087E20: pop esi */ 8140 ebp = POP32_VAL(esp); /* 0x47087E21: pop ebp */ 8141 ebx = POP32_VAL(esp); /* 0x47087E22: pop ebx */ 8142 ecx = POP32_VAL(esp); /* 0x47087E23: pop ecx */ 8143 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47087E24: ret */ 8144 RECOMP_REGS_OUT(); 8145 } 8146 8147 void sub_47087E30(void) { 8148 int _fpu_cmp = 0; 8149 uint32_t _cf = 0; 8150 int _df = 1; 8151 uint32_t _flag_k = FK_NONE; 8152 uint32_t _flag_a = 0, _flag_b = 0; 8153 uint32_t _itail_tgt = 0; 8154 RECOMP_REGS_LOCALS 8155 RECOMP_ENTER(0x47087E30u); 8156 8157 L_47087E30: 8158 eax = MEM32(ecx + 0x18); /* 0x47087E30: mov eax, dword ptr [ecx + 0x18] */ 8159 /* test eax, eax */ /* 0x47087E33: test eax, eax */ 8160 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8161 _cf = 0; 8162 _flag_k = FK_TEST; 8163 if (TEST_NZ(_flag_a, _flag_b)) goto L_47087E45; /* 0x47087E35: jne 0x47087e45 */ 8164 L_47087E37: 8165 PUSH32(esp, ecx); /* 0x47087E37: push ecx */ 8166 MEM32(ecx + 0x18) = 1; /* 0x47087E38: mov dword ptr [ecx + 0x18], 1 */ 8167 RECOMP_ICALL(MEM32(0x470AC19C)); /* 0x47087E3F: call dword ptr [0x470ac19c] */ 8168 RECOMP_FLAGS_IN(); 8169 L_47087E45: 8170 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47087E45: ret */ 8171 RECOMP_REGS_OUT(); 8172 } 8173 8174 void sub_47087E50(void) { 8175 int _fpu_cmp = 0; 8176 uint32_t _cf = 0; 8177 int _df = 1; 8178 uint32_t _flag_k = FK_NONE; 8179 uint32_t _flag_a = 0, _flag_b = 0; 8180 uint32_t _itail_tgt = 0; 8181 RECOMP_REGS_LOCALS 8182 RECOMP_ENTER(0x47087E50u); 8183 8184 L_47087E50: 8185 PUSH32(esp, esi); /* 0x47087E50: push esi */ 8186 esi = ecx; /* 0x47087E51: mov esi, ecx */ 8187 PUSH32(esp, esi); /* 0x47087E53: push esi */ 8188 MEM32(esi + 0x18) = 0; /* 0x47087E54: mov dword ptr [esi + 0x18], 0 */ 8189 RECOMP_ICALL(MEM32(0x470AC1A4)); /* 0x47087E5B: call dword ptr [0x470ac1a4] */ 8190 RECOMP_FLAGS_IN(); 8191 eax = esi; /* 0x47087E61: mov eax, esi */ 8192 esi = POP32_VAL(esp); /* 0x47087E63: pop esi */ 8193 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47087E64: ret 8 */ 8194 RECOMP_REGS_OUT(); 8195 } 8196 8197 void sub_47087E70(void) { 8198 int _fpu_cmp = 0; 8199 uint32_t _cf = 0; 8200 int _df = 1; 8201 uint32_t _flag_k = FK_NONE; 8202 uint32_t _flag_a = 0, _flag_b = 0; 8203 uint32_t _itail_tgt = 0; 8204 RECOMP_REGS_LOCALS 8205 RECOMP_ENTER(0x47087E70u); 8206 8207 L_47087E70: 8208 eax = MEM32(esp + 0x8); /* 0x47087E70: mov eax, dword ptr [esp + 8] */ 8209 PUSH32(esp, ebx); /* 0x47087E74: push ebx */ 8210 ebx = ecx; /* 0x47087E75: mov ebx, ecx */ 8211 ecx = MEM32(esp + 0x8); /* 0x47087E77: mov ecx, dword ptr [esp + 8] */ 8212 PUSH32(esp, eax); /* 0x47087E7B: push eax */ 8213 PUSH32(esp, ecx); /* 0x47087E7C: push ecx */ 8214 PUSH32(esp, 1); /* 0x47087E7D: push 1 */ 8215 PUSH32(esp, ebx); /* 0x47087E7F: push ebx */ 8216 MEM32(ebx + 0xA4) = 0; /* 0x47087E80: mov dword ptr [ebx + 0xa4], 0 */ 8217 RECOMP_ICALL(0x47057670u); /* 0x47087E8A: call 0x47057670 */ /* not lifted */ 8218 RECOMP_FLAGS_IN(); 8219 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 8220 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8221 esp = esp + 0x10u; /* 0x47087E8F: add esp, 0x10 */ 8222 _flag_k = FK_ADD; 8223 /* test eax, eax */ /* 0x47087E92: test eax, eax */ 8224 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8225 _cf = 0; 8226 _flag_k = FK_TEST; 8227 if (TEST_Z(_flag_a, _flag_b)) goto L_47087F01; /* 0x47087E94: je 0x47087f01 */ 8228 L_47087E96: 8229 PUSH32(esp, esi); /* 0x47087E96: push esi */ 8230 PUSH32(esp, edi); /* 0x47087E97: push edi */ 8231 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47087E98: call dword ptr [0x470ac150] */ 8232 RECOMP_FLAGS_IN(); 8233 edi = eax; /* 0x47087E9E: mov edi, eax */ 8234 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47087EA0: call dword ptr [0x470ac3c8] */ 8235 RECOMP_FLAGS_IN(); 8236 eax = MEM32(eax); /* 0x47087EA6: mov eax, dword ptr [eax] */ 8237 /* test eax, eax */ /* 0x47087EA8: test eax, eax */ 8238 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8239 _cf = 0; 8240 _flag_k = FK_TEST; 8241 if (TEST_Z(_flag_a, _flag_b)) goto L_47087EAE; /* 0x47087EAA: je 0x47087eae */ 8242 L_47087EAC: 8243 edi = eax; /* 0x47087EAC: mov edi, eax */ 8244 L_47087EAE: 8245 RECOMP_ICALL(0x47039020u); /* 0x47087EAE: call 0x47039020 */ /* not lifted */ 8246 RECOMP_FLAGS_IN(); 8247 esi = eax; /* 0x47087EB3: mov esi, eax */ 8248 ecx = esi; /* 0x47087EB5: mov ecx, esi */ 8249 RECOMP_ICALL(0x4703B210u); /* 0x47087EB7: call 0x4703b210 */ /* not lifted */ 8250 RECOMP_FLAGS_IN(); 8251 PUSH32(esp, eax); /* 0x47087EBC: push eax */ 8252 ecx = esi; /* 0x47087EBD: mov ecx, esi */ 8253 RECOMP_ICALL(0x4703B240u); /* 0x47087EBF: call 0x4703b240 */ /* not lifted */ 8254 RECOMP_FLAGS_IN(); 8255 PUSH32(esp, eax); /* 0x47087EC4: push eax */ 8256 ecx = esi; /* 0x47087EC5: mov ecx, esi */ 8257 RECOMP_ICALL(0x4703B080u); /* 0x47087EC7: call 0x4703b080 */ /* not lifted */ 8258 RECOMP_FLAGS_IN(); 8259 PUSH32(esp, eax); /* 0x47087ECC: push eax */ 8260 PUSH32(esp, edi); /* 0x47087ECD: push edi */ 8261 PUSH32(esp, 0xFFFFFFFFu); /* 0x47087ECE: push -1 */ 8262 PUSH32(esp, 0xC8u); /* 0x47087ED0: push 0xc8 */ 8263 PUSH32(esp, 0x4710C610u); /* 0x47087ED5: push 0x4710c610 */ 8264 ecx = esi; /* 0x47087EDA: mov ecx, esi */ 8265 RECOMP_ICALL(0x4703A340u); /* 0x47087EDC: call 0x4703a340 */ /* not lifted */ 8266 RECOMP_FLAGS_IN(); 8267 PUSH32(esp, 0x4710C644u); /* 0x47087EE1: push 0x4710c644 */ 8268 PUSH32(esp, 0x471055F0u); /* 0x47087EE6: push 0x471055f0 */ 8269 PUSH32(esp, 0x80u); /* 0x47087EEB: push 0x80 */ 8270 PUSH32(esp, esi); /* 0x47087EF0: push esi */ 8271 RECOMP_ICALL(0x47039830u); /* 0x47087EF1: call 0x47039830 */ /* not lifted */ 8272 RECOMP_FLAGS_IN(); 8273 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 8274 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8275 esp = esp + 0x10u; /* 0x47087EF6: add esp, 0x10 */ 8276 _flag_k = FK_ADD; 8277 edi = POP32_VAL(esp); /* 0x47087EF9: pop edi */ 8278 esi = POP32_VAL(esp); /* 0x47087EFA: pop esi */ 8279 eax = ebx; /* 0x47087EFB: mov eax, ebx */ 8280 ebx = POP32_VAL(esp); /* 0x47087EFD: pop ebx */ 8281 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47087EFE: ret 8 */ 8282 L_47087F01: 8283 eax = ebx; /* 0x47087F01: mov eax, ebx */ 8284 ebx = POP32_VAL(esp); /* 0x47087F03: pop ebx */ 8285 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47087F04: ret 8 */ 8286 RECOMP_REGS_OUT(); 8287 } 8288 8289 void sub_47087F10(void) { 8290 int _fpu_cmp = 0; 8291 uint32_t _cf = 0; 8292 int _df = 1; 8293 uint32_t _flag_k = FK_NONE; 8294 uint32_t _flag_a = 0, _flag_b = 0; 8295 uint32_t _itail_tgt = 0; 8296 RECOMP_REGS_LOCALS 8297 RECOMP_ENTER(0x47087F10u); 8298 8299 goto L_47087F10; 8300 L_47085B70: 8301 PUSH32(esp, ecx); /* 0x47085B70: push ecx */ 8302 PUSH32(esp, ebx); /* 0x47085B71: push ebx */ 8303 PUSH32(esp, ebp); /* 0x47085B72: push ebp */ 8304 PUSH32(esp, esi); /* 0x47085B73: push esi */ 8305 PUSH32(esp, edi); /* 0x47085B74: push edi */ 8306 edi = MEM32(0x470AC150); /* 0x47085B75: mov edi, dword ptr [0x470ac150] */ 8307 MEM32(esp + 0x10) = ecx; /* 0x47085B7B: mov dword ptr [esp + 0x10], ecx */ 8308 RECOMP_ICALL(edi); /* 0x47085B7F: call edi */ 8309 RECOMP_FLAGS_IN(); 8310 ebx = MEM32(0x470AC3C8); /* 0x47085B81: mov ebx, dword ptr [0x470ac3c8] */ 8311 ebp = eax; /* 0x47085B87: mov ebp, eax */ 8312 RECOMP_ICALL(ebx); /* 0x47085B89: call ebx */ 8313 RECOMP_FLAGS_IN(); 8314 eax = MEM32(eax); /* 0x47085B8B: mov eax, dword ptr [eax] */ 8315 /* test eax, eax */ /* 0x47085B8D: test eax, eax */ 8316 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8317 _cf = 0; 8318 _flag_k = FK_TEST; 8319 if (TEST_Z(_flag_a, _flag_b)) goto L_47085B93; /* 0x47085B8F: je 0x47085b93 */ 8320 L_47085B91: 8321 ebp = eax; /* 0x47085B91: mov ebp, eax */ 8322 L_47085B93: 8323 RECOMP_ICALL(0x47039020u); /* 0x47085B93: call 0x47039020 */ /* not lifted */ 8324 RECOMP_FLAGS_IN(); 8325 esi = eax; /* 0x47085B98: mov esi, eax */ 8326 ecx = esi; /* 0x47085B9A: mov ecx, esi */ 8327 RECOMP_ICALL(0x4703B210u); /* 0x47085B9C: call 0x4703b210 */ /* not lifted */ 8328 RECOMP_FLAGS_IN(); 8329 PUSH32(esp, eax); /* 0x47085BA1: push eax */ 8330 ecx = esi; /* 0x47085BA2: mov ecx, esi */ 8331 RECOMP_ICALL(0x4703B240u); /* 0x47085BA4: call 0x4703b240 */ /* not lifted */ 8332 RECOMP_FLAGS_IN(); 8333 PUSH32(esp, eax); /* 0x47085BA9: push eax */ 8334 ecx = esi; /* 0x47085BAA: mov ecx, esi */ 8335 RECOMP_ICALL(0x4703B080u); /* 0x47085BAC: call 0x4703b080 */ /* not lifted */ 8336 RECOMP_FLAGS_IN(); 8337 PUSH32(esp, eax); /* 0x47085BB1: push eax */ 8338 PUSH32(esp, ebp); /* 0x47085BB2: push ebp */ 8339 PUSH32(esp, 0); /* 0x47085BB3: push 0 */ 8340 PUSH32(esp, 0xBEu); /* 0x47085BB5: push 0xbe */ 8341 PUSH32(esp, 0x4710C610u); /* 0x47085BBA: push 0x4710c610 */ 8342 ecx = esi; /* 0x47085BBF: mov ecx, esi */ 8343 RECOMP_ICALL(0x4703A340u); /* 0x47085BC1: call 0x4703a340 */ /* not lifted */ 8344 RECOMP_FLAGS_IN(); 8345 eax = MEM32(esp + 0x10); /* 0x47085BC6: mov eax, dword ptr [esp + 0x10] */ 8346 PUSH32(esp, eax); /* 0x47085BCA: push eax */ 8347 PUSH32(esp, 0x471052CCu); /* 0x47085BCB: push 0x471052cc */ 8348 PUSH32(esp, 4); /* 0x47085BD0: push 4 */ 8349 PUSH32(esp, esi); /* 0x47085BD2: push esi */ 8350 RECOMP_ICALL(0x47039830u); /* 0x47085BD3: call 0x47039830 */ /* not lifted */ 8351 RECOMP_FLAGS_IN(); 8352 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 8353 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8354 esp = esp + 0x10u; /* 0x47085BD8: add esp, 0x10 */ 8355 _flag_k = FK_ADD; 8356 RECOMP_ICALL(edi); /* 0x47085BDB: call edi */ 8357 RECOMP_FLAGS_IN(); 8358 ebp = eax; /* 0x47085BDD: mov ebp, eax */ 8359 RECOMP_ICALL(ebx); /* 0x47085BDF: call ebx */ 8360 RECOMP_FLAGS_IN(); 8361 eax = MEM32(eax); /* 0x47085BE1: mov eax, dword ptr [eax] */ 8362 /* test eax, eax */ /* 0x47085BE3: test eax, eax */ 8363 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8364 _cf = 0; 8365 _flag_k = FK_TEST; 8366 if (TEST_Z(_flag_a, _flag_b)) goto L_47085BE9; /* 0x47085BE5: je 0x47085be9 */ 8367 L_47085BE7: 8368 ebp = eax; /* 0x47085BE7: mov ebp, eax */ 8369 L_47085BE9: 8370 RECOMP_ICALL(0x47039020u); /* 0x47085BE9: call 0x47039020 */ /* not lifted */ 8371 RECOMP_FLAGS_IN(); 8372 esi = eax; /* 0x47085BEE: mov esi, eax */ 8373 ecx = esi; /* 0x47085BF0: mov ecx, esi */ 8374 RECOMP_ICALL(0x4703B210u); /* 0x47085BF2: call 0x4703b210 */ /* not lifted */ 8375 RECOMP_FLAGS_IN(); 8376 PUSH32(esp, eax); /* 0x47085BF7: push eax */ 8377 ecx = esi; /* 0x47085BF8: mov ecx, esi */ 8378 RECOMP_ICALL(0x4703B240u); /* 0x47085BFA: call 0x4703b240 */ /* not lifted */ 8379 RECOMP_FLAGS_IN(); 8380 PUSH32(esp, eax); /* 0x47085BFF: push eax */ 8381 ecx = esi; /* 0x47085C00: mov ecx, esi */ 8382 RECOMP_ICALL(0x4703B080u); /* 0x47085C02: call 0x4703b080 */ /* not lifted */ 8383 RECOMP_FLAGS_IN(); 8384 PUSH32(esp, eax); /* 0x47085C07: push eax */ 8385 PUSH32(esp, ebp); /* 0x47085C08: push ebp */ 8386 PUSH32(esp, 0); /* 0x47085C09: push 0 */ 8387 PUSH32(esp, 0xBFu); /* 0x47085C0B: push 0xbf */ 8388 PUSH32(esp, 0x4710C610u); /* 0x47085C10: push 0x4710c610 */ 8389 ecx = esi; /* 0x47085C15: mov ecx, esi */ 8390 RECOMP_ICALL(0x4703A340u); /* 0x47085C17: call 0x4703a340 */ /* not lifted */ 8391 RECOMP_FLAGS_IN(); 8392 PUSH32(esp, 0x47105590u); /* 0x47085C1C: push 0x47105590 */ 8393 PUSH32(esp, 4); /* 0x47085C21: push 4 */ 8394 PUSH32(esp, esi); /* 0x47085C23: push esi */ 8395 RECOMP_ICALL(0x47039830u); /* 0x47085C24: call 0x47039830 */ /* not lifted */ 8396 RECOMP_FLAGS_IN(); 8397 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8398 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8399 esp = esp + 0xCu; /* 0x47085C29: add esp, 0xc */ 8400 _flag_k = FK_ADD; 8401 RECOMP_ICALL(edi); /* 0x47085C2C: call edi */ 8402 RECOMP_FLAGS_IN(); 8403 esi = eax; /* 0x47085C2E: mov esi, eax */ 8404 RECOMP_ICALL(ebx); /* 0x47085C30: call ebx */ 8405 RECOMP_FLAGS_IN(); 8406 eax = MEM32(eax); /* 0x47085C32: mov eax, dword ptr [eax] */ 8407 /* test eax, eax */ /* 0x47085C34: test eax, eax */ 8408 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8409 _cf = 0; 8410 _flag_k = FK_TEST; 8411 edi = esi; /* 0x47085C36: mov edi, esi */ 8412 if (TEST_Z(_flag_a, _flag_b)) goto L_47085C3C; /* 0x47085C38: je 0x47085c3c */ 8413 L_47085C3A: 8414 edi = eax; /* 0x47085C3A: mov edi, eax */ 8415 L_47085C3C: 8416 RECOMP_ICALL(0x47039020u); /* 0x47085C3C: call 0x47039020 */ /* not lifted */ 8417 RECOMP_FLAGS_IN(); 8418 esi = eax; /* 0x47085C41: mov esi, eax */ 8419 ecx = esi; /* 0x47085C43: mov ecx, esi */ 8420 RECOMP_ICALL(0x4703B210u); /* 0x47085C45: call 0x4703b210 */ /* not lifted */ 8421 RECOMP_FLAGS_IN(); 8422 PUSH32(esp, eax); /* 0x47085C4A: push eax */ 8423 ecx = esi; /* 0x47085C4B: mov ecx, esi */ 8424 RECOMP_ICALL(0x4703B240u); /* 0x47085C4D: call 0x4703b240 */ /* not lifted */ 8425 RECOMP_FLAGS_IN(); 8426 PUSH32(esp, eax); /* 0x47085C52: push eax */ 8427 ecx = esi; /* 0x47085C53: mov ecx, esi */ 8428 RECOMP_ICALL(0x4703B080u); /* 0x47085C55: call 0x4703b080 */ /* not lifted */ 8429 RECOMP_FLAGS_IN(); 8430 PUSH32(esp, eax); /* 0x47085C5A: push eax */ 8431 PUSH32(esp, edi); /* 0x47085C5B: push edi */ 8432 PUSH32(esp, 0); /* 0x47085C5C: push 0 */ 8433 PUSH32(esp, 0xC0u); /* 0x47085C5E: push 0xc0 */ 8434 PUSH32(esp, 0x4710C610u); /* 0x47085C63: push 0x4710c610 */ 8435 ecx = esi; /* 0x47085C68: mov ecx, esi */ 8436 RECOMP_ICALL(0x4703A340u); /* 0x47085C6A: call 0x4703a340 */ /* not lifted */ 8437 RECOMP_FLAGS_IN(); 8438 PUSH32(esp, 0x4710529Cu); /* 0x47085C6F: push 0x4710529c */ 8439 PUSH32(esp, 4); /* 0x47085C74: push 4 */ 8440 PUSH32(esp, esi); /* 0x47085C76: push esi */ 8441 RECOMP_ICALL(0x47039830u); /* 0x47085C77: call 0x47039830 */ /* not lifted */ 8442 RECOMP_FLAGS_IN(); 8443 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8444 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8445 esp = esp + 0xCu; /* 0x47085C7C: add esp, 0xc */ 8446 _flag_k = FK_ADD; 8447 edi = POP32_VAL(esp); /* 0x47085C7F: pop edi */ 8448 esi = POP32_VAL(esp); /* 0x47085C80: pop esi */ 8449 ebp = POP32_VAL(esp); /* 0x47085C81: pop ebp */ 8450 ebx = POP32_VAL(esp); /* 0x47085C82: pop ebx */ 8451 ecx = POP32_VAL(esp); /* 0x47085C83: pop ecx */ 8452 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47085C84: ret */ 8453 L_47087F10: 8454 RECOMP_BACKEDGE(); 8455 goto L_47085B70; /* 0x47087F10: jmp 0x47085b70 */ 8456 { RECOMP_REGS_OUT(); return; } /* end of function */ 8457 RECOMP_REGS_OUT(); 8458 } 8459 8460 void sub_47087F20(void) { 8461 int _fpu_cmp = 0; 8462 uint32_t _cf = 0; 8463 int _df = 1; 8464 uint32_t _flag_k = FK_NONE; 8465 uint32_t _flag_a = 0, _flag_b = 0; 8466 uint32_t _itail_tgt = 0; 8467 RECOMP_REGS_LOCALS 8468 RECOMP_ENTER(0x47087F20u); 8469 8470 L_47087F20: 8471 ecx = 0x4710F931u; /* 0x47087F20: mov ecx, 0x4710f931 */ 8472 RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47087F25: call dword ptr [0x470ac1c8] */ 8473 RECOMP_FLAGS_IN(); 8474 PUSH32(esp, 0x47087F40u); /* 0x47087F2B: push 0x47087f40 */ 8475 RECOMP_ICALL(0x470A32D9u); /* 0x47087F30: call 0x470a32d9 */ /* not lifted */ 8476 RECOMP_FLAGS_IN(); 8477 ecx = POP32_VAL(esp); /* 0x47087F35: pop ecx */ 8478 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47087F36: ret */ 8479 RECOMP_REGS_OUT(); 8480 } 8481 8482 void sub_47087F40(void) { 8483 int _fpu_cmp = 0; 8484 uint32_t _cf = 0; 8485 int _df = 1; 8486 uint32_t _flag_k = FK_NONE; 8487 uint32_t _flag_a = 0, _flag_b = 0; 8488 uint32_t _itail_tgt = 0; 8489 RECOMP_REGS_LOCALS 8490 RECOMP_ENTER(0x47087F40u); 8491 8492 L_47087F40: 8493 ecx = 0x4710F931u; /* 0x47087F40: mov ecx, 0x4710f931 */ 8494 L_47087F45: 8495 { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; } 8496 { RECOMP_REGS_OUT(); return; } /* end of function */ 8497 _ljump: 8498 switch (_itail_tgt) { 8499 case 0x47087F40u: goto L_47087F40; 8500 case 0x47087F45u: goto L_47087F45; 8501 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 8502 } 8503 RECOMP_REGS_OUT(); 8504 } 8505 8506 void sub_47087F50(void) { 8507 int _fpu_cmp = 0; 8508 uint32_t _cf = 0; 8509 int _df = 1; 8510 uint32_t _flag_k = FK_NONE; 8511 uint32_t _flag_a = 0, _flag_b = 0; 8512 uint32_t _itail_tgt = 0; 8513 RECOMP_REGS_LOCALS 8514 RECOMP_ENTER(0x47087F50u); 8515 8516 L_47087F50: 8517 ecx = 0x4710F930u; /* 0x47087F50: mov ecx, 0x4710f930 */ 8518 RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x47087F55: call dword ptr [0x470ac1c4] */ 8519 RECOMP_FLAGS_IN(); 8520 PUSH32(esp, 0x47087F70u); /* 0x47087F5B: push 0x47087f70 */ 8521 RECOMP_ICALL(0x470A32D9u); /* 0x47087F60: call 0x470a32d9 */ /* not lifted */ 8522 RECOMP_FLAGS_IN(); 8523 ecx = POP32_VAL(esp); /* 0x47087F65: pop ecx */ 8524 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47087F66: ret */ 8525 RECOMP_REGS_OUT(); 8526 } 8527 8528 void sub_47087F70(void) { 8529 int _fpu_cmp = 0; 8530 uint32_t _cf = 0; 8531 int _df = 1; 8532 uint32_t _flag_k = FK_NONE; 8533 uint32_t _flag_a = 0, _flag_b = 0; 8534 uint32_t _itail_tgt = 0; 8535 RECOMP_REGS_LOCALS 8536 RECOMP_ENTER(0x47087F70u); 8537 8538 L_47087F70: 8539 ecx = 0x4710F930u; /* 0x47087F70: mov ecx, 0x4710f930 */ 8540 L_47087F75: 8541 { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; } 8542 { RECOMP_REGS_OUT(); return; } /* end of function */ 8543 _ljump: 8544 switch (_itail_tgt) { 8545 case 0x47087F70u: goto L_47087F70; 8546 case 0x47087F75u: goto L_47087F75; 8547 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 8548 } 8549 RECOMP_REGS_OUT(); 8550 } 8551 8552 void sub_47087F80(void) { 8553 int _fpu_cmp = 0; 8554 uint32_t _cf = 0; 8555 int _df = 1; 8556 uint32_t _flag_k = FK_NONE; 8557 uint32_t _flag_a = 0, _flag_b = 0; 8558 uint32_t _itail_tgt = 0; 8559 RECOMP_REGS_LOCALS 8560 RECOMP_ENTER(0x47087F80u); 8561 8562 L_47087F80: 8563 MEM32(0x4710F958) = 0x4710C778u; /* 0x47087F80: mov dword ptr [0x4710f958], 0x4710c778 */ 8564 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47087F8A: ret */ 8565 RECOMP_REGS_OUT(); 8566 } 8567 8568 void sub_47087F90(void) { 8569 int _fpu_cmp = 0; 8570 uint32_t _cf = 0; 8571 int _df = 1; 8572 uint32_t _flag_k = FK_NONE; 8573 uint32_t _flag_a = 0, _flag_b = 0; 8574 uint32_t _itail_tgt = 0; 8575 RECOMP_REGS_LOCALS 8576 RECOMP_ENTER(0x47087F90u); 8577 8578 L_47087F90: 8579 eax = MEM32(0x4710E9A8); /* 0x47087F90: mov eax, dword ptr [0x4710e9a8] */ 8580 ecx = MEM32(0x4710E9AC); /* 0x47087F95: mov ecx, dword ptr [0x4710e9ac] */ 8581 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8582 edx = 0; /* 0x47087F9B: xor edx, edx */ 8583 _cf = 0; 8584 _flag_k = FK_TEST; 8585 /* cmp eax, eax */ /* 0x47087F9D: cmp eax, eax */ 8586 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8587 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8588 _flag_k = FK_CMP; 8589 MEM32(0x4710F948) = edx; /* 0x47087F9F: mov dword ptr [0x4710f948], edx */ 8590 MEM32(0x4710F94C) = eax; /* 0x47087FA5: mov dword ptr [0x4710f94c], eax */ 8591 MEM32(0x4710F950) = ecx; /* 0x47087FAA: mov dword ptr [0x4710f950], ecx */ 8592 if (CMP_NE(_flag_a, _flag_b)) goto L_47087FB6; /* 0x47087FB0: jne 0x47087fb6 */ 8593 L_47087FB2: 8594 /* cmp ecx, ecx */ /* 0x47087FB2: cmp ecx, ecx */ 8595 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8596 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8597 _flag_k = FK_CMP; 8598 if (CMP_EQ(_flag_a, _flag_b)) goto L_47087FC0; /* 0x47087FB4: je 0x47087fc0 */ 8599 L_47087FB6: 8600 MEM32(0x4710F948) = 2; /* 0x47087FB6: mov dword ptr [0x4710f948], 2 */ 8601 L_47087FC0: 8602 PUSH32(esp, 0x47087FE0u); /* 0x47087FC0: push 0x47087fe0 */ 8603 MEM32(0x4710F954) = edx; /* 0x47087FC5: mov dword ptr [0x4710f954], edx */ 8604 RECOMP_ICALL(0x470A32D9u); /* 0x47087FCB: call 0x470a32d9 */ /* not lifted */ 8605 RECOMP_FLAGS_IN(); 8606 ecx = POP32_VAL(esp); /* 0x47087FD0: pop ecx */ 8607 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47087FD1: ret */ 8608 RECOMP_REGS_OUT(); 8609 } 8610 8611 void sub_47087FE0(void) { 8612 int _fpu_cmp = 0; 8613 uint32_t _cf = 0; 8614 int _df = 1; 8615 uint32_t _flag_k = FK_NONE; 8616 uint32_t _flag_a = 0, _flag_b = 0; 8617 uint32_t _itail_tgt = 0; 8618 RECOMP_REGS_LOCALS 8619 RECOMP_ENTER(0x47087FE0u); 8620 8621 L_47087FE0: 8622 SET_LO8(ecx, MEM8(0x4710F95C)); /* 0x47087FE0: mov cl, byte ptr [0x4710f95c] */ 8623 SET_LO8(eax, 1); /* 0x47087FE6: mov al, 1 */ 8624 /* test LO8(eax), LO8(ecx) */ /* 0x47087FE8: test al, cl */ 8625 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 8626 _cf = 0; 8627 _flag_k = FK_NARROW(FK_TEST, 24); 8628 if (TEST_NZ(_flag_a, _flag_b)) goto L_47087FF4; /* 0x47087FEA: jne 0x47087ff4 */ 8629 L_47087FEC: 8630 _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; 8631 SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x47087FEC: or cl, al */ 8632 _cf = 0; 8633 _flag_k = FK_NARROW(FK_TEST, 24); 8634 MEM8(0x4710F95C) = (uint8_t)(LO8(ecx)); /* 0x47087FEE: mov byte ptr [0x4710f95c], cl */ 8635 L_47087FF4: 8636 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47087FF4: ret */ 8637 RECOMP_REGS_OUT(); 8638 } 8639 8640 void sub_47088000(void) { 8641 int _fpu_cmp = 0; 8642 uint32_t _cf = 0; 8643 int _df = 1; 8644 uint32_t _flag_k = FK_NONE; 8645 uint32_t _flag_a = 0, _flag_b = 0; 8646 uint32_t _itail_tgt = 0; 8647 RECOMP_REGS_LOCALS 8648 RECOMP_ENTER(0x47088000u); 8649 8650 L_47088000: 8651 eax = MEM32(0x4710E9A8); /* 0x47088000: mov eax, dword ptr [0x4710e9a8] */ 8652 ecx = MEM32(0x4710E9AC); /* 0x47088005: mov ecx, dword ptr [0x4710e9ac] */ 8653 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8654 edx = 0; /* 0x4708800B: xor edx, edx */ 8655 _cf = 0; 8656 _flag_k = FK_TEST; 8657 /* cmp eax, eax */ /* 0x4708800D: cmp eax, eax */ 8658 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8659 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8660 _flag_k = FK_CMP; 8661 MEM32(0x4710F938) = edx; /* 0x4708800F: mov dword ptr [0x4710f938], edx */ 8662 MEM32(0x4710F93C) = eax; /* 0x47088015: mov dword ptr [0x4710f93c], eax */ 8663 MEM32(0x4710F940) = ecx; /* 0x4708801A: mov dword ptr [0x4710f940], ecx */ 8664 if (CMP_NE(_flag_a, _flag_b)) goto L_47088026; /* 0x47088020: jne 0x47088026 */ 8665 L_47088022: 8666 /* cmp ecx, ecx */ /* 0x47088022: cmp ecx, ecx */ 8667 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8668 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8669 _flag_k = FK_CMP; 8670 if (CMP_EQ(_flag_a, _flag_b)) goto L_47088030; /* 0x47088024: je 0x47088030 */ 8671 L_47088026: 8672 MEM32(0x4710F938) = 2; /* 0x47088026: mov dword ptr [0x4710f938], 2 */ 8673 L_47088030: 8674 PUSH32(esp, 0x47088050u); /* 0x47088030: push 0x47088050 */ 8675 MEM32(0x4710F944) = edx; /* 0x47088035: mov dword ptr [0x4710f944], edx */ 8676 RECOMP_ICALL(0x470A32D9u); /* 0x4708803B: call 0x470a32d9 */ /* not lifted */ 8677 RECOMP_FLAGS_IN(); 8678 ecx = POP32_VAL(esp); /* 0x47088040: pop ecx */ 8679 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47088041: ret */ 8680 RECOMP_REGS_OUT(); 8681 }