client/vendor/ace/source/lifted-0029.c (352216B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 4 void sub_4703DF20(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(0x4703DF20u); 13 14 L_4703DF20: 15 ecx = 0x4710E605u; /* 0x4703DF20: mov ecx, 0x4710e605 */ 16 L_4703DF25: 17 { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; } 18 { RECOMP_REGS_OUT(); return; } /* end of function */ 19 _ljump: 20 switch (_itail_tgt) { 21 case 0x4703DF20u: goto L_4703DF20; 22 case 0x4703DF25u: goto L_4703DF25; 23 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 24 } 25 RECOMP_REGS_OUT(); 26 } 27 28 void sub_4703DF30(void) { 29 int _fpu_cmp = 0; 30 uint32_t _cf = 0; 31 int _df = 1; 32 uint32_t _flag_k = FK_NONE; 33 uint32_t _flag_a = 0, _flag_b = 0; 34 uint32_t _itail_tgt = 0; 35 RECOMP_REGS_LOCALS 36 RECOMP_ENTER(0x4703DF30u); 37 38 L_4703DF30: 39 ecx = 0x4710E604u; /* 0x4703DF30: mov ecx, 0x4710e604 */ 40 RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x4703DF35: call dword ptr [0x470ac1c4] */ 41 RECOMP_FLAGS_IN(); 42 PUSH32(esp, 0x4703DF50u); /* 0x4703DF3B: push 0x4703df50 */ 43 RECOMP_ICALL(0x470A32D9u); /* 0x4703DF40: call 0x470a32d9 */ /* not lifted */ 44 RECOMP_FLAGS_IN(); 45 ecx = POP32_VAL(esp); /* 0x4703DF45: pop ecx */ 46 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703DF46: ret */ 47 RECOMP_REGS_OUT(); 48 } 49 50 void sub_4703DF50(void) { 51 int _fpu_cmp = 0; 52 uint32_t _cf = 0; 53 int _df = 1; 54 uint32_t _flag_k = FK_NONE; 55 uint32_t _flag_a = 0, _flag_b = 0; 56 uint32_t _itail_tgt = 0; 57 RECOMP_REGS_LOCALS 58 RECOMP_ENTER(0x4703DF50u); 59 60 L_4703DF50: 61 ecx = 0x4710E604u; /* 0x4703DF50: mov ecx, 0x4710e604 */ 62 L_4703DF55: 63 { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; } 64 { RECOMP_REGS_OUT(); return; } /* end of function */ 65 _ljump: 66 switch (_itail_tgt) { 67 case 0x4703DF50u: goto L_4703DF50; 68 case 0x4703DF55u: goto L_4703DF55; 69 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 70 } 71 RECOMP_REGS_OUT(); 72 } 73 74 void sub_4703DF60(void) { 75 int _fpu_cmp = 0; 76 uint32_t _cf = 0; 77 int _df = 1; 78 uint32_t _flag_k = FK_NONE; 79 uint32_t _flag_a = 0, _flag_b = 0; 80 uint32_t _itail_tgt = 0; 81 RECOMP_REGS_LOCALS 82 RECOMP_ENTER(0x4703DF60u); 83 84 L_4703DF60: 85 MEM32(0x4710E624) = 0x47107C60u; /* 0x4703DF60: mov dword ptr [0x4710e624], 0x47107c60 */ 86 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703DF6A: ret */ 87 RECOMP_REGS_OUT(); 88 } 89 90 void sub_4703DF70(void) { 91 int _fpu_cmp = 0; 92 uint32_t _cf = 0; 93 int _df = 1; 94 uint32_t _flag_k = FK_NONE; 95 uint32_t _flag_a = 0, _flag_b = 0; 96 uint32_t _itail_tgt = 0; 97 RECOMP_REGS_LOCALS 98 RECOMP_ENTER(0x4703DF70u); 99 100 L_4703DF70: 101 MEM32(0x4710E5F0) = 0x47104A3Cu; /* 0x4703DF70: mov dword ptr [0x4710e5f0], 0x47104a3c */ 102 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703DF7A: ret */ 103 RECOMP_REGS_OUT(); 104 } 105 106 void sub_4703DF80(void) { 107 int _fpu_cmp = 0; 108 uint32_t _cf = 0; 109 int _df = 1; 110 uint32_t _flag_k = FK_NONE; 111 uint32_t _flag_a = 0, _flag_b = 0; 112 uint32_t _itail_tgt = 0; 113 RECOMP_REGS_LOCALS 114 RECOMP_ENTER(0x4703DF80u); 115 116 L_4703DF80: 117 MEM32(0x4710E610) = 0x47104A00u; /* 0x4703DF80: mov dword ptr [0x4710e610], 0x47104a00 */ 118 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703DF8A: ret */ 119 RECOMP_REGS_OUT(); 120 } 121 122 void sub_4703DF90(void) { 123 int _fpu_cmp = 0; 124 uint32_t _cf = 0; 125 int _df = 1; 126 uint32_t _flag_k = FK_NONE; 127 uint32_t _flag_a = 0, _flag_b = 0; 128 uint32_t _itail_tgt = 0; 129 RECOMP_REGS_LOCALS 130 RECOMP_ENTER(0x4703DF90u); 131 132 L_4703DF90: 133 MEM32(0x4710E60C) = 0x47104A70u; /* 0x4703DF90: mov dword ptr [0x4710e60c], 0x47104a70 */ 134 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703DF9A: ret */ 135 RECOMP_REGS_OUT(); 136 } 137 138 void sub_4703DFA0(void) { 139 int _fpu_cmp = 0; 140 uint32_t _cf = 0; 141 int _df = 1; 142 uint32_t _flag_k = FK_NONE; 143 uint32_t _flag_a = 0, _flag_b = 0; 144 uint32_t _itail_tgt = 0; 145 RECOMP_REGS_LOCALS 146 RECOMP_ENTER(0x4703DFA0u); 147 148 L_4703DFA0: 149 MEM32(0x4710E628) = 0x47104B6Cu; /* 0x4703DFA0: mov dword ptr [0x4710e628], 0x47104b6c */ 150 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703DFAA: ret */ 151 RECOMP_REGS_OUT(); 152 } 153 154 void sub_4703DFB0(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(0x4703DFB0u); 163 164 L_4703DFB0: 165 MEM32(0x4710E5FC) = 0x47104BA0u; /* 0x4703DFB0: mov dword ptr [0x4710e5fc], 0x47104ba0 */ 166 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703DFBA: ret */ 167 RECOMP_REGS_OUT(); 168 } 169 170 void sub_4703DFC0(void) { 171 int _fpu_cmp = 0; 172 uint32_t _cf = 0; 173 int _df = 1; 174 uint32_t _flag_k = FK_NONE; 175 uint32_t _flag_a = 0, _flag_b = 0; 176 uint32_t _itail_tgt = 0; 177 RECOMP_REGS_LOCALS 178 RECOMP_ENTER(0x4703DFC0u); 179 180 L_4703DFC0: 181 MEM32(0x4710E620) = 0x47104BD4u; /* 0x4703DFC0: mov dword ptr [0x4710e620], 0x47104bd4 */ 182 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703DFCA: ret */ 183 RECOMP_REGS_OUT(); 184 } 185 186 void sub_4703DFD0(void) { 187 int _fpu_cmp = 0; 188 uint32_t _cf = 0; 189 int _df = 1; 190 uint32_t _flag_k = FK_NONE; 191 uint32_t _flag_a = 0, _flag_b = 0; 192 uint32_t _itail_tgt = 0; 193 RECOMP_REGS_LOCALS 194 RECOMP_ENTER(0x4703DFD0u); 195 196 L_4703DFD0: 197 MEM32(0x4710E614) = 0x471050FCu; /* 0x4703DFD0: mov dword ptr [0x4710e614], 0x471050fc */ 198 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703DFDA: ret */ 199 RECOMP_REGS_OUT(); 200 } 201 202 void sub_4703DFE0(void) { 203 int _fpu_cmp = 0; 204 uint32_t _cf = 0; 205 int _df = 1; 206 uint32_t _flag_k = FK_NONE; 207 uint32_t _flag_a = 0, _flag_b = 0; 208 uint32_t _itail_tgt = 0; 209 RECOMP_REGS_LOCALS 210 RECOMP_ENTER(0x4703DFE0u); 211 212 L_4703DFE0: 213 MEM32(0x4710E61C) = 0x471053F0u; /* 0x4703DFE0: mov dword ptr [0x4710e61c], 0x471053f0 */ 214 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703DFEA: ret */ 215 RECOMP_REGS_OUT(); 216 } 217 218 void sub_4703DFF0(void) { 219 int _fpu_cmp = 0; 220 uint32_t _cf = 0; 221 int _df = 1; 222 uint32_t _flag_k = FK_NONE; 223 uint32_t _flag_a = 0, _flag_b = 0; 224 uint32_t _itail_tgt = 0; 225 RECOMP_REGS_LOCALS 226 RECOMP_ENTER(0x4703DFF0u); 227 228 L_4703DFF0: 229 MEM32(0x4710E608) = 0x47105158u; /* 0x4703DFF0: mov dword ptr [0x4710e608], 0x47105158 */ 230 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703DFFA: ret */ 231 RECOMP_REGS_OUT(); 232 } 233 234 void sub_4703E000(void) { 235 int _fpu_cmp = 0; 236 uint32_t _cf = 0; 237 int _df = 1; 238 uint32_t _flag_k = FK_NONE; 239 uint32_t _flag_a = 0, _flag_b = 0; 240 uint32_t _itail_tgt = 0; 241 RECOMP_REGS_LOCALS 242 RECOMP_ENTER(0x4703E000u); 243 244 L_4703E000: 245 MEM32(0x4710E5F4) = 0x4710518Cu; /* 0x4703E000: mov dword ptr [0x4710e5f4], 0x4710518c */ 246 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703E00A: ret */ 247 RECOMP_REGS_OUT(); 248 } 249 250 void sub_4703E010(void) { 251 int _fpu_cmp = 0; 252 uint32_t _cf = 0; 253 int _df = 1; 254 uint32_t _flag_k = FK_NONE; 255 uint32_t _flag_a = 0, _flag_b = 0; 256 uint32_t _itail_tgt = 0; 257 RECOMP_REGS_LOCALS 258 RECOMP_ENTER(0x4703E010u); 259 260 L_4703E010: 261 MEM32(0x4710E618) = 0x47105428u; /* 0x4703E010: mov dword ptr [0x4710e618], 0x47105428 */ 262 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703E01A: ret */ 263 RECOMP_REGS_OUT(); 264 } 265 266 void sub_4703E020(void) { 267 int _fpu_cmp = 0; 268 uint32_t _cf = 0; 269 int _df = 1; 270 uint32_t _flag_k = FK_NONE; 271 uint32_t _flag_a = 0, _flag_b = 0; 272 uint32_t _itail_tgt = 0; 273 RECOMP_REGS_LOCALS 274 RECOMP_ENTER(0x4703E020u); 275 276 L_4703E020: 277 MEM32(0x4710E600) = 0x47107C90u; /* 0x4703E020: mov dword ptr [0x4710e600], 0x47107c90 */ 278 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703E02A: ret */ 279 RECOMP_REGS_OUT(); 280 } 281 282 void sub_4703E030(void) { 283 int _fpu_cmp = 0; 284 uint32_t _cf = 0; 285 int _df = 1; 286 uint32_t _flag_k = FK_NONE; 287 uint32_t _flag_a = 0, _flag_b = 0; 288 uint32_t _itail_tgt = 0; 289 RECOMP_REGS_LOCALS 290 RECOMP_ENTER(0x4703E030u); 291 292 L_4703E030: 293 MEM32(0x4710E5F8) = 0x47107CC0u; /* 0x4703E030: mov dword ptr [0x4710e5f8], 0x47107cc0 */ 294 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703E03A: ret */ 295 RECOMP_REGS_OUT(); 296 } 297 298 void sub_4703E040(void) { 299 int _fpu_cmp = 0; 300 uint32_t _cf = 0; 301 int _df = 1; 302 uint32_t _flag_k = FK_NONE; 303 uint32_t _flag_a = 0, _flag_b = 0; 304 uint32_t _itail_tgt = 0; 305 RECOMP_REGS_LOCALS 306 RECOMP_ENTER(0x4703E040u); 307 308 L_4703E040: 309 ecx = 0x4710E639u; /* 0x4703E040: mov ecx, 0x4710e639 */ 310 RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x4703E045: call dword ptr [0x470ac1c8] */ 311 RECOMP_FLAGS_IN(); 312 PUSH32(esp, 0x4703E060u); /* 0x4703E04B: push 0x4703e060 */ 313 RECOMP_ICALL(0x470A32D9u); /* 0x4703E050: call 0x470a32d9 */ /* not lifted */ 314 RECOMP_FLAGS_IN(); 315 ecx = POP32_VAL(esp); /* 0x4703E055: pop ecx */ 316 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703E056: ret */ 317 RECOMP_REGS_OUT(); 318 } 319 320 void sub_4703E060(void) { 321 int _fpu_cmp = 0; 322 uint32_t _cf = 0; 323 int _df = 1; 324 uint32_t _flag_k = FK_NONE; 325 uint32_t _flag_a = 0, _flag_b = 0; 326 uint32_t _itail_tgt = 0; 327 RECOMP_REGS_LOCALS 328 RECOMP_ENTER(0x4703E060u); 329 330 L_4703E060: 331 ecx = 0x4710E639u; /* 0x4703E060: mov ecx, 0x4710e639 */ 332 L_4703E065: 333 { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; } 334 { RECOMP_REGS_OUT(); return; } /* end of function */ 335 _ljump: 336 switch (_itail_tgt) { 337 case 0x4703E060u: goto L_4703E060; 338 case 0x4703E065u: goto L_4703E065; 339 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 340 } 341 RECOMP_REGS_OUT(); 342 } 343 344 void sub_4703E070(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(0x4703E070u); 353 354 L_4703E070: 355 ecx = 0x4710E638u; /* 0x4703E070: mov ecx, 0x4710e638 */ 356 RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x4703E075: call dword ptr [0x470ac1c4] */ 357 RECOMP_FLAGS_IN(); 358 PUSH32(esp, 0x4703E090u); /* 0x4703E07B: push 0x4703e090 */ 359 RECOMP_ICALL(0x470A32D9u); /* 0x4703E080: call 0x470a32d9 */ /* not lifted */ 360 RECOMP_FLAGS_IN(); 361 ecx = POP32_VAL(esp); /* 0x4703E085: pop ecx */ 362 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703E086: ret */ 363 RECOMP_REGS_OUT(); 364 } 365 366 void sub_4703E090(void) { 367 int _fpu_cmp = 0; 368 uint32_t _cf = 0; 369 int _df = 1; 370 uint32_t _flag_k = FK_NONE; 371 uint32_t _flag_a = 0, _flag_b = 0; 372 uint32_t _itail_tgt = 0; 373 RECOMP_REGS_LOCALS 374 RECOMP_ENTER(0x4703E090u); 375 376 L_4703E090: 377 ecx = 0x4710E638u; /* 0x4703E090: mov ecx, 0x4710e638 */ 378 L_4703E095: 379 { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; } 380 { RECOMP_REGS_OUT(); return; } /* end of function */ 381 _ljump: 382 switch (_itail_tgt) { 383 case 0x4703E090u: goto L_4703E090; 384 case 0x4703E095u: goto L_4703E095; 385 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 386 } 387 RECOMP_REGS_OUT(); 388 } 389 390 void sub_4703E0A0(void) { 391 int _fpu_cmp = 0; 392 uint32_t _cf = 0; 393 int _df = 1; 394 uint32_t _flag_k = FK_NONE; 395 uint32_t _flag_a = 0, _flag_b = 0; 396 uint32_t _itail_tgt = 0; 397 RECOMP_REGS_LOCALS 398 RECOMP_ENTER(0x4703E0A0u); 399 400 L_4703E0A0: 401 MEM32(0x4710E62C) = 0x47104A3Cu; /* 0x4703E0A0: mov dword ptr [0x4710e62c], 0x47104a3c */ 402 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703E0AA: ret */ 403 RECOMP_REGS_OUT(); 404 } 405 406 void sub_4703E0B0(void) { 407 int _fpu_cmp = 0; 408 uint32_t _cf = 0; 409 int _df = 1; 410 uint32_t _flag_k = FK_NONE; 411 uint32_t _flag_a = 0, _flag_b = 0; 412 uint32_t _itail_tgt = 0; 413 RECOMP_REGS_LOCALS 414 RECOMP_ENTER(0x4703E0B0u); 415 416 L_4703E0B0: 417 MEM32(0x4710E640) = 0x47104A00u; /* 0x4703E0B0: mov dword ptr [0x4710e640], 0x47104a00 */ 418 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703E0BA: ret */ 419 RECOMP_REGS_OUT(); 420 } 421 422 void sub_4703E0C0(void) { 423 int _fpu_cmp = 0; 424 uint32_t _cf = 0; 425 int _df = 1; 426 uint32_t _flag_k = FK_NONE; 427 uint32_t _flag_a = 0, _flag_b = 0; 428 uint32_t _itail_tgt = 0; 429 RECOMP_REGS_LOCALS 430 RECOMP_ENTER(0x4703E0C0u); 431 432 L_4703E0C0: 433 MEM32(0x4710E63C) = 0x47104A70u; /* 0x4703E0C0: mov dword ptr [0x4710e63c], 0x47104a70 */ 434 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703E0CA: ret */ 435 RECOMP_REGS_OUT(); 436 } 437 438 void sub_4703E0D0(void) { 439 int _fpu_cmp = 0; 440 uint32_t _cf = 0; 441 int _df = 1; 442 uint32_t _flag_k = FK_NONE; 443 uint32_t _flag_a = 0, _flag_b = 0; 444 uint32_t _itail_tgt = 0; 445 RECOMP_REGS_LOCALS 446 RECOMP_ENTER(0x4703E0D0u); 447 448 L_4703E0D0: 449 MEM32(0x4710E64C) = 0x47104B6Cu; /* 0x4703E0D0: mov dword ptr [0x4710e64c], 0x47104b6c */ 450 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703E0DA: ret */ 451 RECOMP_REGS_OUT(); 452 } 453 454 void sub_4703E0E0(void) { 455 int _fpu_cmp = 0; 456 uint32_t _cf = 0; 457 int _df = 1; 458 uint32_t _flag_k = FK_NONE; 459 uint32_t _flag_a = 0, _flag_b = 0; 460 uint32_t _itail_tgt = 0; 461 RECOMP_REGS_LOCALS 462 RECOMP_ENTER(0x4703E0E0u); 463 464 L_4703E0E0: 465 MEM32(0x4710E630) = 0x47104BA0u; /* 0x4703E0E0: mov dword ptr [0x4710e630], 0x47104ba0 */ 466 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703E0EA: ret */ 467 RECOMP_REGS_OUT(); 468 } 469 470 void sub_4703E0F0(void) { 471 int _fpu_cmp = 0; 472 uint32_t _cf = 0; 473 int _df = 1; 474 uint32_t _flag_k = FK_NONE; 475 uint32_t _flag_a = 0, _flag_b = 0; 476 uint32_t _itail_tgt = 0; 477 RECOMP_REGS_LOCALS 478 RECOMP_ENTER(0x4703E0F0u); 479 480 L_4703E0F0: 481 MEM32(0x4710E648) = 0x47104BD4u; /* 0x4703E0F0: mov dword ptr [0x4710e648], 0x47104bd4 */ 482 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703E0FA: ret */ 483 RECOMP_REGS_OUT(); 484 } 485 486 void sub_4703E100(void) { 487 int _fpu_cmp = 0; 488 uint32_t _cf = 0; 489 int _df = 1; 490 uint32_t _flag_k = FK_NONE; 491 uint32_t _flag_a = 0, _flag_b = 0; 492 uint32_t _itail_tgt = 0; 493 RECOMP_REGS_LOCALS 494 RECOMP_ENTER(0x4703E100u); 495 496 L_4703E100: 497 PUSH32(esp, esi); /* 0x4703E100: push esi */ 498 esi = MEM32(ecx); /* 0x4703E101: mov esi, dword ptr [ecx] */ 499 /* test esi, esi */ /* 0x4703E103: test esi, esi */ 500 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 501 _cf = 0; 502 _flag_k = FK_TEST; 503 if (TEST_Z(_flag_a, _flag_b)) goto L_4703E117; /* 0x4703E105: je 0x4703e117 */ 504 L_4703E107: 505 ecx = esi; /* 0x4703E107: mov ecx, esi */ 506 RECOMP_ICALL(0x4703FCF0u); /* 0x4703E109: call 0x4703fcf0 */ /* not lifted */ 507 RECOMP_FLAGS_IN(); 508 PUSH32(esp, esi); /* 0x4703E10E: push esi */ 509 RECOMP_ICALL(0x470A32A2u); /* 0x4703E10F: call 0x470a32a2 */ /* not lifted */ 510 RECOMP_FLAGS_IN(); 511 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 512 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 513 esp = esp + 4; /* 0x4703E114: add esp, 4 */ 514 _flag_k = FK_ADD; 515 L_4703E117: 516 esi = POP32_VAL(esp); /* 0x4703E117: pop esi */ 517 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703E118: ret */ 518 RECOMP_REGS_OUT(); 519 } 520 521 void sub_4703E120(void) { 522 int _fpu_cmp = 0; 523 uint32_t _cf = 0; 524 int _df = 1; 525 uint32_t _flag_k = FK_NONE; 526 uint32_t _flag_a = 0, _flag_b = 0; 527 uint32_t _itail_tgt = 0; 528 RECOMP_REGS_LOCALS 529 RECOMP_ENTER(0x4703E120u); 530 531 L_4703E120: 532 ecx = MEM32(ecx); /* 0x4703E120: mov ecx, dword ptr [ecx] */ 533 /* test ecx, ecx */ /* 0x4703E122: test ecx, ecx */ 534 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 535 _cf = 0; 536 _flag_k = FK_TEST; 537 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703E12B; /* 0x4703E124: jne 0x4703e12b */ 538 L_4703E126: 539 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 540 eax = 0; /* 0x4703E126: xor eax, eax */ 541 _cf = 0; 542 _flag_k = FK_TEST; 543 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703E128: ret 4 */ 544 L_4703E12B: 545 PUSH32(esp, esi); /* 0x4703E12B: push esi */ 546 esi = MEM32(esp + 0x8); /* 0x4703E12C: mov esi, dword ptr [esp + 8] */ 547 eax = esi + 0x4; /* 0x4703E130: lea eax, [esi + 4] */ 548 PUSH32(esp, eax); /* 0x4703E133: push eax */ 549 RECOMP_ICALL(0x4703FD60u); /* 0x4703E134: call 0x4703fd60 */ /* not lifted */ 550 RECOMP_FLAGS_IN(); 551 MEM32(eax) = esi; /* 0x4703E139: mov dword ptr [eax], esi */ 552 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 553 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 554 eax = eax + 4; /* 0x4703E13B: add eax, 4 */ 555 _flag_k = FK_ADD; 556 esi = POP32_VAL(esp); /* 0x4703E13E: pop esi */ 557 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703E13F: ret 4 */ 558 RECOMP_REGS_OUT(); 559 } 560 561 void sub_4703E150(void) { 562 int _fpu_cmp = 0; 563 uint32_t _cf = 0; 564 int _df = 1; 565 uint32_t _flag_k = FK_NONE; 566 uint32_t _flag_a = 0, _flag_b = 0; 567 uint32_t _itail_tgt = 0; 568 RECOMP_REGS_LOCALS 569 RECOMP_ENTER(0x4703E150u); 570 571 L_4703E150: 572 ecx = MEM32(ecx); /* 0x4703E150: mov ecx, dword ptr [ecx] */ 573 /* test ecx, ecx */ /* 0x4703E152: test ecx, ecx */ 574 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 575 _cf = 0; 576 _flag_k = FK_TEST; 577 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703E15C; /* 0x4703E154: jne 0x4703e15c */ 578 L_4703E156: 579 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 580 eax = eax | 0xFFFFFFFFu; /* 0x4703E156: or eax, 0xffffffff */ 581 _cf = 0; 582 _flag_k = FK_TEST; 583 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703E159: ret 4 */ 584 L_4703E15C: 585 eax = MEM32(esp + 0x4); /* 0x4703E15C: mov eax, dword ptr [esp + 4] */ 586 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFCu); 587 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 588 eax = eax + 0xFFFFFFFCu; /* 0x4703E160: add eax, -4 */ 589 _flag_k = FK_ADD; 590 PUSH32(esp, eax); /* 0x4703E163: push eax */ 591 RECOMP_ICALL(0x4703FE50u); /* 0x4703E164: call 0x4703fe50 */ /* not lifted */ 592 RECOMP_FLAGS_IN(); 593 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 594 eax = 0; /* 0x4703E169: xor eax, eax */ 595 _cf = 0; 596 _flag_k = FK_TEST; 597 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703E16B: ret 4 */ 598 RECOMP_REGS_OUT(); 599 } 600 601 void sub_4703E170(void) { 602 int _fpu_cmp = 0; 603 uint32_t _cf = 0; 604 int _df = 1; 605 uint32_t _flag_k = FK_NONE; 606 uint32_t _flag_a = 0, _flag_b = 0; 607 uint32_t _itail_tgt = 0; 608 RECOMP_REGS_LOCALS 609 RECOMP_ENTER(0x4703E170u); 610 611 L_4703E170: 612 /* cmp MEM32(ecx), 0 */ /* 0x4703E170: cmp dword ptr [ecx], 0 */ 613 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(0); 614 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 615 _flag_k = FK_CMP; 616 if (CMP_NE(_flag_a, _flag_b)) goto L_4703E17B; /* 0x4703E173: jne 0x4703e17b */ 617 L_4703E175: 618 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 619 eax = eax | 0xFFFFFFFFu; /* 0x4703E175: or eax, 0xffffffff */ 620 _cf = 0; 621 _flag_k = FK_TEST; 622 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4703E178: ret 8 */ 623 L_4703E17B: 624 eax = MEM32(esp + 0x4); /* 0x4703E17B: mov eax, dword ptr [esp + 4] */ 625 edx = MEM32(eax + (-0x4)); /* 0x4703E17F: mov edx, dword ptr [eax - 4] */ 626 PUSH32(esp, esi); /* 0x4703E182: push esi */ 627 esi = eax + (-0x4); /* 0x4703E183: lea esi, [eax - 4] */ 628 eax = MEM32(esp + 0xC); /* 0x4703E186: mov eax, dword ptr [esp + 0xc] */ 629 /* cmp edx, eax */ /* 0x4703E18A: cmp edx, eax */ 630 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 631 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 632 _flag_k = FK_CMP; 633 if (CMP_B(_flag_a, _flag_b)) goto L_4703E190; /* 0x4703E18C: jb 0x4703e190 */ 634 L_4703E18E: 635 MEM32(esi) = eax; /* 0x4703E18E: mov dword ptr [esi], eax */ 636 L_4703E190: 637 eax = MEM32(ecx); /* 0x4703E190: mov eax, dword ptr [ecx] */ 638 edx = MEM32(eax + 0x4); /* 0x4703E192: mov edx, dword ptr [eax + 4] */ 639 ecx = eax + 0x4; /* 0x4703E195: lea ecx, [eax + 4] */ 640 RECOMP_ICALL(MEM32(edx + 0x64)); /* 0x4703E198: call dword ptr [edx + 0x64] */ 641 RECOMP_FLAGS_IN(); 642 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 643 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 644 esi = esi - eax; /* 0x4703E19B: sub esi, eax */ 645 _flag_k = FK_CMP; 646 eax = esi; /* 0x4703E19D: mov eax, esi */ 647 esi = POP32_VAL(esp); /* 0x4703E19F: pop esi */ 648 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4703E1A0: ret 8 */ 649 RECOMP_REGS_OUT(); 650 } 651 652 void sub_4703E1B0(void) { 653 int _fpu_cmp = 0; 654 uint32_t _cf = 0; 655 int _df = 1; 656 uint32_t _flag_k = FK_NONE; 657 uint32_t _flag_a = 0, _flag_b = 0; 658 uint32_t _itail_tgt = 0; 659 RECOMP_REGS_LOCALS 660 RECOMP_ENTER(0x4703E1B0u); 661 662 L_4703E1B0: 663 PUSH32(esp, ebp); /* 0x4703E1B0: push ebp */ 664 ebp = esp; /* 0x4703E1B1: mov ebp, esp */ 665 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703E1B3: push -1 */ 666 PUSH32(esp, 0x470AD5B8u); /* 0x4703E1B5: push 0x470ad5b8 */ 667 PUSH32(esp, 0x470A34B2u); /* 0x4703E1BA: push 0x470a34b2 */ 668 eax = MEM32(FS_BASE + (0)); /* 0x4703E1BF: mov eax, dword ptr fs:[0] */ 669 PUSH32(esp, eax); /* 0x4703E1C5: push eax */ 670 MEM32(FS_BASE + (0)) = esp; /* 0x4703E1C6: mov dword ptr fs:[0], esp */ 671 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 672 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 673 esp = esp - 0x18u; /* 0x4703E1CD: sub esp, 0x18 */ 674 _flag_k = FK_CMP; 675 PUSH32(esp, ebx); /* 0x4703E1D0: push ebx */ 676 PUSH32(esp, esi); /* 0x4703E1D1: push esi */ 677 PUSH32(esp, edi); /* 0x4703E1D2: push edi */ 678 MEM32(ebp + (-0x18)) = esp; /* 0x4703E1D3: mov dword ptr [ebp - 0x18], esp */ 679 MEM32(ebp + (-0x28)) = ecx; /* 0x4703E1D6: mov dword ptr [ebp - 0x28], ecx */ 680 eax = MEM32(ecx); /* 0x4703E1D9: mov eax, dword ptr [ecx] */ 681 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 682 ecx = 0; /* 0x4703E1DB: xor ecx, ecx */ 683 _cf = 0; 684 _flag_k = FK_TEST; 685 /* cmp eax, ecx */ /* 0x4703E1DD: cmp eax, ecx */ 686 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 687 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 688 _flag_k = FK_CMP; 689 if (CMP_NE(_flag_a, _flag_b)) goto L_4703E1F7; /* 0x4703E1DF: jne 0x4703e1f7 */ 690 L_4703E1E1: 691 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 692 eax = eax | 0xFFFFFFFFu; /* 0x4703E1E1: or eax, 0xffffffff */ 693 _cf = 0; 694 _flag_k = FK_TEST; 695 ecx = MEM32(ebp + (-0x10)); /* 0x4703E1E4: mov ecx, dword ptr [ebp - 0x10] */ 696 MEM32(FS_BASE + (0)) = ecx; /* 0x4703E1E7: mov dword ptr fs:[0], ecx */ 697 edi = POP32_VAL(esp); /* 0x4703E1EE: pop edi */ 698 esi = POP32_VAL(esp); /* 0x4703E1EF: pop esi */ 699 ebx = POP32_VAL(esp); /* 0x4703E1F0: pop ebx */ 700 esp = ebp; /* 0x4703E1F1: mov esp, ebp */ 701 ebp = POP32_VAL(esp); /* 0x4703E1F3: pop ebp */ 702 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4703E1F4: ret 8 */ 703 L_4703E1F7: 704 MEM32(ebp + (-0x1C)) = ecx; /* 0x4703E1F7: mov dword ptr [ebp - 0x1c], ecx */ 705 MEM32(ebp + (-0x4)) = ecx; /* 0x4703E1FA: mov dword ptr [ebp - 4], ecx */ 706 ecx = eax + 0x4; /* 0x4703E1FD: lea ecx, [eax + 4] */ 707 eax = MEM32(ecx); /* 0x4703E200: mov eax, dword ptr [ecx] */ 708 RECOMP_ICALL(MEM32(eax + 0x64)); /* 0x4703E202: call dword ptr [eax + 0x64] */ 709 RECOMP_FLAGS_IN(); 710 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + 0x8)); 711 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 712 eax = eax + MEM32(ebp + 0x8); /* 0x4703E205: add eax, dword ptr [ebp + 8] */ 713 _flag_k = FK_ADD; 714 MEM32(ebp + (-0x20)) = eax; /* 0x4703E208: mov dword ptr [ebp - 0x20], eax */ 715 ecx = eax + 0x4; /* 0x4703E20B: lea ecx, [eax + 4] */ 716 edx = MEM32(ebp + 0xC); /* 0x4703E20E: mov edx, dword ptr [ebp + 0xc] */ 717 MEM32(edx) = ecx; /* 0x4703E211: mov dword ptr [edx], ecx */ 718 eax = MEM32(eax); /* 0x4703E213: mov eax, dword ptr [eax] */ 719 MEM32(ebp + (-0x1C)) = eax; /* 0x4703E215: mov dword ptr [ebp - 0x1c], eax */ 720 goto L_4703E22F; /* 0x4703E218: jmp 0x4703e22f */ 721 L_4703E22F: 722 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x4703E22F: mov dword ptr [ebp - 4], 0xffffffff */ 723 eax = MEM32(ebp + (-0x1C)); /* 0x4703E236: mov eax, dword ptr [ebp - 0x1c] */ 724 ecx = MEM32(ebp + (-0x10)); /* 0x4703E239: mov ecx, dword ptr [ebp - 0x10] */ 725 MEM32(FS_BASE + (0)) = ecx; /* 0x4703E23C: mov dword ptr fs:[0], ecx */ 726 edi = POP32_VAL(esp); /* 0x4703E243: pop edi */ 727 esi = POP32_VAL(esp); /* 0x4703E244: pop esi */ 728 ebx = POP32_VAL(esp); /* 0x4703E245: pop ebx */ 729 esp = ebp; /* 0x4703E246: mov esp, ebp */ 730 ebp = POP32_VAL(esp); /* 0x4703E248: pop ebp */ 731 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4703E249: ret 8 */ 732 RECOMP_REGS_OUT(); 733 } 734 735 void sub_4703E21A(void) { 736 int _fpu_cmp = 0; 737 uint32_t _cf = 0; 738 int _df = 1; 739 uint32_t _flag_k = FK_NONE; 740 uint32_t _flag_a = 0, _flag_b = 0; 741 uint32_t _itail_tgt = 0; 742 RECOMP_REGS_LOCALS 743 RECOMP_ENTER(0x4703E21Au); 744 745 L_4703E21A: 746 ecx = MEM32(ebp + (-0x28)); /* 0x4703E21A: mov ecx, dword ptr [ebp - 0x28] */ 747 eax = MEM32(ecx); /* 0x4703E21D: mov eax, dword ptr [ecx] */ 748 ecx = eax + 0x4; /* 0x4703E21F: lea ecx, [eax + 4] */ 749 edx = MEM32(ecx); /* 0x4703E222: mov edx, dword ptr [ecx] */ 750 eax = MEM32(ebp + (-0x14)); /* 0x4703E224: mov eax, dword ptr [ebp - 0x14] */ 751 PUSH32(esp, eax); /* 0x4703E227: push eax */ 752 RECOMP_ICALL(MEM32(edx + 0x5C)); /* 0x4703E228: call dword ptr [edx + 0x5c] */ 753 RECOMP_FLAGS_IN(); 754 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703E22B: ret */ 755 RECOMP_REGS_OUT(); 756 } 757 758 void sub_4703E22C(void) { 759 int _fpu_cmp = 0; 760 uint32_t _cf = 0; 761 int _df = 1; 762 uint32_t _flag_k = FK_NONE; 763 uint32_t _flag_a = 0, _flag_b = 0; 764 uint32_t _itail_tgt = 0; 765 RECOMP_REGS_LOCALS 766 RECOMP_ENTER(0x4703E22Cu); 767 768 L_4703E22C: 769 esp = MEM32(ebp + (-0x18)); /* 0x4703E22C: mov esp, dword ptr [ebp - 0x18] */ 770 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x4703E22F: mov dword ptr [ebp - 4], 0xffffffff */ 771 eax = MEM32(ebp + (-0x1C)); /* 0x4703E236: mov eax, dword ptr [ebp - 0x1c] */ 772 ecx = MEM32(ebp + (-0x10)); /* 0x4703E239: mov ecx, dword ptr [ebp - 0x10] */ 773 MEM32(FS_BASE + (0)) = ecx; /* 0x4703E23C: mov dword ptr fs:[0], ecx */ 774 edi = POP32_VAL(esp); /* 0x4703E243: pop edi */ 775 esi = POP32_VAL(esp); /* 0x4703E244: pop esi */ 776 ebx = POP32_VAL(esp); /* 0x4703E245: pop ebx */ 777 esp = ebp; /* 0x4703E246: mov esp, ebp */ 778 ebp = POP32_VAL(esp); /* 0x4703E248: pop ebp */ 779 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4703E249: ret 8 */ 780 RECOMP_REGS_OUT(); 781 } 782 783 void sub_4703E22F(void) { 784 int _fpu_cmp = 0; 785 uint32_t _cf = 0; 786 int _df = 1; 787 uint32_t _flag_k = FK_NONE; 788 uint32_t _flag_a = 0, _flag_b = 0; 789 uint32_t _itail_tgt = 0; 790 RECOMP_REGS_LOCALS 791 RECOMP_ENTER(0x4703E22Fu); 792 793 L_4703E22F: 794 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x4703E22F: mov dword ptr [ebp - 4], 0xffffffff */ 795 eax = MEM32(ebp + (-0x1C)); /* 0x4703E236: mov eax, dword ptr [ebp - 0x1c] */ 796 ecx = MEM32(ebp + (-0x10)); /* 0x4703E239: mov ecx, dword ptr [ebp - 0x10] */ 797 MEM32(FS_BASE + (0)) = ecx; /* 0x4703E23C: mov dword ptr fs:[0], ecx */ 798 edi = POP32_VAL(esp); /* 0x4703E243: pop edi */ 799 esi = POP32_VAL(esp); /* 0x4703E244: pop esi */ 800 ebx = POP32_VAL(esp); /* 0x4703E245: pop ebx */ 801 esp = ebp; /* 0x4703E246: mov esp, ebp */ 802 ebp = POP32_VAL(esp); /* 0x4703E248: pop ebp */ 803 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4703E249: ret 8 */ 804 RECOMP_REGS_OUT(); 805 } 806 807 void sub_4703E250(void) { 808 int _fpu_cmp = 0; 809 uint32_t _cf = 0; 810 int _df = 1; 811 uint32_t _flag_k = FK_NONE; 812 uint32_t _flag_a = 0, _flag_b = 0; 813 uint32_t _itail_tgt = 0; 814 RECOMP_REGS_LOCALS 815 RECOMP_ENTER(0x4703E250u); 816 817 L_4703E250: 818 PUSH32(esp, 1); /* 0x4703E250: push 1 */ 819 RECOMP_ICALL(0x47042640u); /* 0x4703E252: call 0x47042640 */ /* not lifted */ 820 RECOMP_FLAGS_IN(); 821 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703E257: ret */ 822 RECOMP_REGS_OUT(); 823 } 824 825 void sub_4703E260(void) { 826 int _fpu_cmp = 0; 827 uint32_t _cf = 0; 828 int _df = 1; 829 uint32_t _flag_k = FK_NONE; 830 uint32_t _flag_a = 0, _flag_b = 0; 831 uint32_t _itail_tgt = 0; 832 RECOMP_REGS_LOCALS 833 RECOMP_ENTER(0x4703E260u); 834 835 L_4703E260: 836 MEM32(0x4710E644) = 0x47104C0Cu; /* 0x4703E260: mov dword ptr [0x4710e644], 0x47104c0c */ 837 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703E26A: ret */ 838 RECOMP_REGS_OUT(); 839 } 840 841 void sub_4703E270(void) { 842 int _fpu_cmp = 0; 843 uint32_t _cf = 0; 844 int _df = 1; 845 uint32_t _flag_k = FK_NONE; 846 uint32_t _flag_a = 0, _flag_b = 0; 847 uint32_t _itail_tgt = 0; 848 RECOMP_REGS_LOCALS 849 RECOMP_ENTER(0x4703E270u); 850 851 L_4703E270: 852 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703E270: push -1 */ 853 PUSH32(esp, 0x470A6118u); /* 0x4703E272: push 0x470a6118 */ 854 eax = MEM32(FS_BASE + (0)); /* 0x4703E277: mov eax, dword ptr fs:[0] */ 855 PUSH32(esp, eax); /* 0x4703E27D: push eax */ 856 MEM32(FS_BASE + (0)) = esp; /* 0x4703E27E: mov dword ptr fs:[0], esp */ 857 PUSH32(esp, ecx); /* 0x4703E285: push ecx */ 858 PUSH32(esp, ebx); /* 0x4703E286: push ebx */ 859 ebx = MEM32(esp + 0x18); /* 0x4703E287: mov ebx, dword ptr [esp + 0x18] */ 860 eax = MEM32(ebx); /* 0x4703E28B: mov eax, dword ptr [ebx] */ 861 PUSH32(esp, esi); /* 0x4703E28D: push esi */ 862 esi = ecx; /* 0x4703E28E: mov esi, ecx */ 863 MEM32(esp + 0x8) = esi; /* 0x4703E290: mov dword ptr [esp + 8], esi */ 864 MEM32(esi) = eax; /* 0x4703E294: mov dword ptr [esi], eax */ 865 MEM32(esi + 0x4) = 0; /* 0x4703E296: mov dword ptr [esi + 4], 0 */ 866 MEM32(esi + 0x8) = 0; /* 0x4703E29D: mov dword ptr [esi + 8], 0 */ 867 eax = MEM32(ebx + 0xC); /* 0x4703E2A4: mov eax, dword ptr [ebx + 0xc] */ 868 /* test eax, eax */ /* 0x4703E2A7: test eax, eax */ 869 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 870 _cf = 0; 871 _flag_k = FK_TEST; 872 MEM32(esp + 0x14) = 0; /* 0x4703E2A9: mov dword ptr [esp + 0x14], 0 */ 873 MEM32(esi + 0xC) = eax; /* 0x4703E2B1: mov dword ptr [esi + 0xc], eax */ 874 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703E2BE; /* 0x4703E2B4: jne 0x4703e2be */ 875 L_4703E2B6: 876 RECOMP_ICALL(0x4703DAC0u); /* 0x4703E2B6: call 0x4703dac0 */ /* not lifted */ 877 RECOMP_FLAGS_IN(); 878 MEM32(esi + 0xC) = eax; /* 0x4703E2BB: mov dword ptr [esi + 0xc], eax */ 879 L_4703E2BE: 880 ecx = MEM32(esi + 0xC); /* 0x4703E2BE: mov ecx, dword ptr [esi + 0xc] */ 881 edx = MEM32(ecx); /* 0x4703E2C1: mov edx, dword ptr [ecx] */ 882 PUSH32(esp, edi); /* 0x4703E2C3: push edi */ 883 PUSH32(esp, 8); /* 0x4703E2C4: push 8 */ 884 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4703E2C6: call dword ptr [edx + 4] */ 885 RECOMP_FLAGS_IN(); 886 /* test eax, eax */ /* 0x4703E2C9: test eax, eax */ 887 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 888 _cf = 0; 889 _flag_k = FK_TEST; 890 MEM32(esi + 0x4) = eax; /* 0x4703E2CB: mov dword ptr [esi + 4], eax */ 891 if (TEST_Z(_flag_a, _flag_b)) goto L_4703E304; /* 0x4703E2CE: je 0x4703e304 */ 892 L_4703E2D0: 893 MEM32(eax) = 0; /* 0x4703E2D0: mov dword ptr [eax], 0 */ 894 eax = MEM32(esi + 0x4); /* 0x4703E2D6: mov eax, dword ptr [esi + 4] */ 895 MEM32(eax) = eax; /* 0x4703E2D9: mov dword ptr [eax], eax */ 896 eax = MEM32(ebx + 0x4); /* 0x4703E2DB: mov eax, dword ptr [ebx + 4] */ 897 edi = MEM32(eax); /* 0x4703E2DE: mov edi, dword ptr [eax] */ 898 /* cmp edi, eax */ /* 0x4703E2E0: cmp edi, eax */ 899 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 900 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 901 _flag_k = FK_CMP; 902 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703E332; /* 0x4703E2E2: je 0x4703e332 */ 903 L_4703E2E4: 904 ecx = MEM32(edi + 0x4); /* 0x4703E2E4: mov ecx, dword ptr [edi + 4] */ 905 eax = MEM32(esi + 0x4); /* 0x4703E2E7: mov eax, dword ptr [esi + 4] */ 906 MEM32(eax + 0x4) = ecx; /* 0x4703E2EA: mov dword ptr [eax + 4], ecx */ 907 ecx = MEM32(esi + 0xC); /* 0x4703E2ED: mov ecx, dword ptr [esi + 0xc] */ 908 edx = MEM32(ecx); /* 0x4703E2F0: mov edx, dword ptr [ecx] */ 909 PUSH32(esp, 8); /* 0x4703E2F2: push 8 */ 910 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4703E2F4: call dword ptr [edx + 4] */ 911 RECOMP_FLAGS_IN(); 912 /* test eax, eax */ /* 0x4703E2F7: test eax, eax */ 913 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 914 _cf = 0; 915 _flag_k = FK_TEST; 916 if (TEST_Z(_flag_a, _flag_b)) goto L_4703E312; /* 0x4703E2F9: je 0x4703e312 */ 917 L_4703E2FB: 918 ecx = MEM32(esi + 0x4); /* 0x4703E2FB: mov ecx, dword ptr [esi + 4] */ 919 edx = MEM32(ecx); /* 0x4703E2FE: mov edx, dword ptr [ecx] */ 920 MEM32(eax) = edx; /* 0x4703E300: mov dword ptr [eax], edx */ 921 goto L_4703E320; /* 0x4703E302: jmp 0x4703e320 */ 922 L_4703E304: 923 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4703E304: call dword ptr [0x470ac3c8] */ 924 RECOMP_FLAGS_IN(); 925 MEM32(eax) = 0xCu; /* 0x4703E30A: mov dword ptr [eax], 0xc */ 926 goto L_4703E332; /* 0x4703E310: jmp 0x4703e332 */ 927 L_4703E312: 928 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4703E312: call dword ptr [0x470ac3c8] */ 929 RECOMP_FLAGS_IN(); 930 MEM32(eax) = 0xCu; /* 0x4703E318: mov dword ptr [eax], 0xc */ 931 goto L_4703E32B; /* 0x4703E31E: jmp 0x4703e32b */ 932 L_4703E320: 933 ecx = MEM32(esi + 0x4); /* 0x4703E320: mov ecx, dword ptr [esi + 4] */ 934 MEM32(ecx) = eax; /* 0x4703E323: mov dword ptr [ecx], eax */ 935 MEM32(esi + 0x4) = eax; /* 0x4703E325: mov dword ptr [esi + 4], eax */ 936 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(1); 937 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 1; /* 0x4703E328: inc dword ptr [esi + 8] */ 938 _flag_k = FK_INC; 939 L_4703E32B: 940 edi = MEM32(edi); /* 0x4703E32B: mov edi, dword ptr [edi] */ 941 /* cmp edi, MEM32(ebx + 0x4) */ /* 0x4703E32D: cmp edi, dword ptr [ebx + 4] */ 942 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebx + 0x4)); 943 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 944 _flag_k = FK_CMP; 945 RECOMP_BACKEDGE(); 946 if (CMP_NE(_flag_a, _flag_b)) goto L_4703E2E4; /* 0x4703E330: jne 0x4703e2e4 */ 947 L_4703E332: 948 /* test ebx, ebx */ /* 0x4703E332: test ebx, ebx */ 949 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 950 _cf = 0; 951 _flag_k = FK_TEST; 952 edi = POP32_VAL(esp); /* 0x4703E334: pop edi */ 953 if (TEST_Z(_flag_a, _flag_b)) goto L_4703E33C; /* 0x4703E335: je 0x4703e33c */ 954 L_4703E337: 955 eax = ebx + 0x10; /* 0x4703E337: lea eax, [ebx + 0x10] */ 956 goto L_4703E33E; /* 0x4703E33A: jmp 0x4703e33e */ 957 L_4703E33C: 958 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 959 eax = 0; /* 0x4703E33C: xor eax, eax */ 960 _cf = 0; 961 _flag_k = FK_TEST; 962 L_4703E33E: 963 edx = MEM32(eax); /* 0x4703E33E: mov edx, dword ptr [eax] */ 964 MEM32(esi + 0x10) = edx; /* 0x4703E340: mov dword ptr [esi + 0x10], edx */ 965 eax = MEM32(ebx + 0x14); /* 0x4703E343: mov eax, dword ptr [ebx + 0x14] */ 966 MEM32(esi + 0x14) = eax; /* 0x4703E346: mov dword ptr [esi + 0x14], eax */ 967 ecx = MEM32(ebx + 0x18); /* 0x4703E349: mov ecx, dword ptr [ebx + 0x18] */ 968 MEM32(esi + 0x18) = ecx; /* 0x4703E34C: mov dword ptr [esi + 0x18], ecx */ 969 edx = MEM32(ebx + 0x1C); /* 0x4703E34F: mov edx, dword ptr [ebx + 0x1c] */ 970 ecx = MEM32(esp + 0xC); /* 0x4703E352: mov ecx, dword ptr [esp + 0xc] */ 971 MEM32(esi + 0x1C) = edx; /* 0x4703E356: mov dword ptr [esi + 0x1c], edx */ 972 eax = esi; /* 0x4703E359: mov eax, esi */ 973 esi = POP32_VAL(esp); /* 0x4703E35B: pop esi */ 974 ebx = POP32_VAL(esp); /* 0x4703E35C: pop ebx */ 975 MEM32(FS_BASE + (0)) = ecx; /* 0x4703E35D: mov dword ptr fs:[0], ecx */ 976 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 977 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 978 esp = esp + 0x10u; /* 0x4703E364: add esp, 0x10 */ 979 _flag_k = FK_ADD; 980 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703E367: ret 4 */ 981 RECOMP_REGS_OUT(); 982 } 983 984 void sub_4703E2E4(void) { 985 int _fpu_cmp = 0; 986 uint32_t _cf = 0; 987 int _df = 1; 988 uint32_t _flag_k = FK_NONE; 989 uint32_t _flag_a = 0, _flag_b = 0; 990 uint32_t _itail_tgt = 0; 991 RECOMP_REGS_LOCALS 992 RECOMP_ENTER(0x4703E2E4u); 993 994 L_4703E2E4: 995 ecx = MEM32(edi + 0x4); /* 0x4703E2E4: mov ecx, dword ptr [edi + 4] */ 996 eax = MEM32(esi + 0x4); /* 0x4703E2E7: mov eax, dword ptr [esi + 4] */ 997 MEM32(eax + 0x4) = ecx; /* 0x4703E2EA: mov dword ptr [eax + 4], ecx */ 998 ecx = MEM32(esi + 0xC); /* 0x4703E2ED: mov ecx, dword ptr [esi + 0xc] */ 999 edx = MEM32(ecx); /* 0x4703E2F0: mov edx, dword ptr [ecx] */ 1000 PUSH32(esp, 8); /* 0x4703E2F2: push 8 */ 1001 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4703E2F4: call dword ptr [edx + 4] */ 1002 RECOMP_FLAGS_IN(); 1003 /* test eax, eax */ /* 0x4703E2F7: test eax, eax */ 1004 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1005 _cf = 0; 1006 _flag_k = FK_TEST; 1007 if (TEST_Z(_flag_a, _flag_b)) goto L_4703E312; /* 0x4703E2F9: je 0x4703e312 */ 1008 L_4703E2FB: 1009 ecx = MEM32(esi + 0x4); /* 0x4703E2FB: mov ecx, dword ptr [esi + 4] */ 1010 edx = MEM32(ecx); /* 0x4703E2FE: mov edx, dword ptr [ecx] */ 1011 MEM32(eax) = edx; /* 0x4703E300: mov dword ptr [eax], edx */ 1012 goto L_4703E320; /* 0x4703E302: jmp 0x4703e320 */ 1013 L_4703E312: 1014 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4703E312: call dword ptr [0x470ac3c8] */ 1015 RECOMP_FLAGS_IN(); 1016 MEM32(eax) = 0xCu; /* 0x4703E318: mov dword ptr [eax], 0xc */ 1017 goto L_4703E32B; /* 0x4703E31E: jmp 0x4703e32b */ 1018 L_4703E320: 1019 ecx = MEM32(esi + 0x4); /* 0x4703E320: mov ecx, dword ptr [esi + 4] */ 1020 MEM32(ecx) = eax; /* 0x4703E323: mov dword ptr [ecx], eax */ 1021 MEM32(esi + 0x4) = eax; /* 0x4703E325: mov dword ptr [esi + 4], eax */ 1022 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(1); 1023 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 1; /* 0x4703E328: inc dword ptr [esi + 8] */ 1024 _flag_k = FK_INC; 1025 L_4703E32B: 1026 edi = MEM32(edi); /* 0x4703E32B: mov edi, dword ptr [edi] */ 1027 /* cmp edi, MEM32(ebx + 0x4) */ /* 0x4703E32D: cmp edi, dword ptr [ebx + 4] */ 1028 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebx + 0x4)); 1029 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1030 _flag_k = FK_CMP; 1031 RECOMP_BACKEDGE(); 1032 if (CMP_NE(_flag_a, _flag_b)) goto L_4703E2E4; /* 0x4703E330: jne 0x4703e2e4 */ 1033 L_4703E332: 1034 /* test ebx, ebx */ /* 0x4703E332: test ebx, ebx */ 1035 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 1036 _cf = 0; 1037 _flag_k = FK_TEST; 1038 edi = POP32_VAL(esp); /* 0x4703E334: pop edi */ 1039 if (TEST_Z(_flag_a, _flag_b)) goto L_4703E33C; /* 0x4703E335: je 0x4703e33c */ 1040 L_4703E337: 1041 eax = ebx + 0x10; /* 0x4703E337: lea eax, [ebx + 0x10] */ 1042 goto L_4703E33E; /* 0x4703E33A: jmp 0x4703e33e */ 1043 L_4703E33C: 1044 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1045 eax = 0; /* 0x4703E33C: xor eax, eax */ 1046 _cf = 0; 1047 _flag_k = FK_TEST; 1048 L_4703E33E: 1049 edx = MEM32(eax); /* 0x4703E33E: mov edx, dword ptr [eax] */ 1050 MEM32(esi + 0x10) = edx; /* 0x4703E340: mov dword ptr [esi + 0x10], edx */ 1051 eax = MEM32(ebx + 0x14); /* 0x4703E343: mov eax, dword ptr [ebx + 0x14] */ 1052 MEM32(esi + 0x14) = eax; /* 0x4703E346: mov dword ptr [esi + 0x14], eax */ 1053 ecx = MEM32(ebx + 0x18); /* 0x4703E349: mov ecx, dword ptr [ebx + 0x18] */ 1054 MEM32(esi + 0x18) = ecx; /* 0x4703E34C: mov dword ptr [esi + 0x18], ecx */ 1055 edx = MEM32(ebx + 0x1C); /* 0x4703E34F: mov edx, dword ptr [ebx + 0x1c] */ 1056 ecx = MEM32(esp + 0xC); /* 0x4703E352: mov ecx, dword ptr [esp + 0xc] */ 1057 MEM32(esi + 0x1C) = edx; /* 0x4703E356: mov dword ptr [esi + 0x1c], edx */ 1058 eax = esi; /* 0x4703E359: mov eax, esi */ 1059 esi = POP32_VAL(esp); /* 0x4703E35B: pop esi */ 1060 ebx = POP32_VAL(esp); /* 0x4703E35C: pop ebx */ 1061 MEM32(FS_BASE + (0)) = ecx; /* 0x4703E35D: mov dword ptr fs:[0], ecx */ 1062 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1063 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1064 esp = esp + 0x10u; /* 0x4703E364: add esp, 0x10 */ 1065 _flag_k = FK_ADD; 1066 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703E367: ret 4 */ 1067 RECOMP_REGS_OUT(); 1068 } 1069 1070 void sub_4703E320(void) { 1071 int _fpu_cmp = 0; 1072 uint32_t _cf = 0; 1073 int _df = 1; 1074 uint32_t _flag_k = FK_NONE; 1075 uint32_t _flag_a = 0, _flag_b = 0; 1076 uint32_t _itail_tgt = 0; 1077 RECOMP_REGS_LOCALS 1078 RECOMP_ENTER(0x4703E320u); 1079 1080 goto L_4703E320; 1081 L_4703E2E4: 1082 ecx = MEM32(edi + 0x4); /* 0x4703E2E4: mov ecx, dword ptr [edi + 4] */ 1083 eax = MEM32(esi + 0x4); /* 0x4703E2E7: mov eax, dword ptr [esi + 4] */ 1084 MEM32(eax + 0x4) = ecx; /* 0x4703E2EA: mov dword ptr [eax + 4], ecx */ 1085 ecx = MEM32(esi + 0xC); /* 0x4703E2ED: mov ecx, dword ptr [esi + 0xc] */ 1086 edx = MEM32(ecx); /* 0x4703E2F0: mov edx, dword ptr [ecx] */ 1087 PUSH32(esp, 8); /* 0x4703E2F2: push 8 */ 1088 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4703E2F4: call dword ptr [edx + 4] */ 1089 RECOMP_FLAGS_IN(); 1090 /* test eax, eax */ /* 0x4703E2F7: test eax, eax */ 1091 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1092 _cf = 0; 1093 _flag_k = FK_TEST; 1094 if (TEST_Z(_flag_a, _flag_b)) goto L_4703E312; /* 0x4703E2F9: je 0x4703e312 */ 1095 L_4703E2FB: 1096 ecx = MEM32(esi + 0x4); /* 0x4703E2FB: mov ecx, dword ptr [esi + 4] */ 1097 edx = MEM32(ecx); /* 0x4703E2FE: mov edx, dword ptr [ecx] */ 1098 MEM32(eax) = edx; /* 0x4703E300: mov dword ptr [eax], edx */ 1099 goto L_4703E320; /* 0x4703E302: jmp 0x4703e320 */ 1100 L_4703E312: 1101 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4703E312: call dword ptr [0x470ac3c8] */ 1102 RECOMP_FLAGS_IN(); 1103 MEM32(eax) = 0xCu; /* 0x4703E318: mov dword ptr [eax], 0xc */ 1104 goto L_4703E32B; /* 0x4703E31E: jmp 0x4703e32b */ 1105 L_4703E320: 1106 ecx = MEM32(esi + 0x4); /* 0x4703E320: mov ecx, dword ptr [esi + 4] */ 1107 MEM32(ecx) = eax; /* 0x4703E323: mov dword ptr [ecx], eax */ 1108 MEM32(esi + 0x4) = eax; /* 0x4703E325: mov dword ptr [esi + 4], eax */ 1109 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(1); 1110 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 1; /* 0x4703E328: inc dword ptr [esi + 8] */ 1111 _flag_k = FK_INC; 1112 L_4703E32B: 1113 edi = MEM32(edi); /* 0x4703E32B: mov edi, dword ptr [edi] */ 1114 /* cmp edi, MEM32(ebx + 0x4) */ /* 0x4703E32D: cmp edi, dword ptr [ebx + 4] */ 1115 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebx + 0x4)); 1116 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1117 _flag_k = FK_CMP; 1118 RECOMP_BACKEDGE(); 1119 if (CMP_NE(_flag_a, _flag_b)) goto L_4703E2E4; /* 0x4703E330: jne 0x4703e2e4 */ 1120 L_4703E332: 1121 /* test ebx, ebx */ /* 0x4703E332: test ebx, ebx */ 1122 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 1123 _cf = 0; 1124 _flag_k = FK_TEST; 1125 edi = POP32_VAL(esp); /* 0x4703E334: pop edi */ 1126 if (TEST_Z(_flag_a, _flag_b)) goto L_4703E33C; /* 0x4703E335: je 0x4703e33c */ 1127 L_4703E337: 1128 eax = ebx + 0x10; /* 0x4703E337: lea eax, [ebx + 0x10] */ 1129 goto L_4703E33E; /* 0x4703E33A: jmp 0x4703e33e */ 1130 L_4703E33C: 1131 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1132 eax = 0; /* 0x4703E33C: xor eax, eax */ 1133 _cf = 0; 1134 _flag_k = FK_TEST; 1135 L_4703E33E: 1136 edx = MEM32(eax); /* 0x4703E33E: mov edx, dword ptr [eax] */ 1137 MEM32(esi + 0x10) = edx; /* 0x4703E340: mov dword ptr [esi + 0x10], edx */ 1138 eax = MEM32(ebx + 0x14); /* 0x4703E343: mov eax, dword ptr [ebx + 0x14] */ 1139 MEM32(esi + 0x14) = eax; /* 0x4703E346: mov dword ptr [esi + 0x14], eax */ 1140 ecx = MEM32(ebx + 0x18); /* 0x4703E349: mov ecx, dword ptr [ebx + 0x18] */ 1141 MEM32(esi + 0x18) = ecx; /* 0x4703E34C: mov dword ptr [esi + 0x18], ecx */ 1142 edx = MEM32(ebx + 0x1C); /* 0x4703E34F: mov edx, dword ptr [ebx + 0x1c] */ 1143 ecx = MEM32(esp + 0xC); /* 0x4703E352: mov ecx, dword ptr [esp + 0xc] */ 1144 MEM32(esi + 0x1C) = edx; /* 0x4703E356: mov dword ptr [esi + 0x1c], edx */ 1145 eax = esi; /* 0x4703E359: mov eax, esi */ 1146 esi = POP32_VAL(esp); /* 0x4703E35B: pop esi */ 1147 ebx = POP32_VAL(esp); /* 0x4703E35C: pop ebx */ 1148 MEM32(FS_BASE + (0)) = ecx; /* 0x4703E35D: mov dword ptr fs:[0], ecx */ 1149 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1150 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1151 esp = esp + 0x10u; /* 0x4703E364: add esp, 0x10 */ 1152 _flag_k = FK_ADD; 1153 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703E367: ret 4 */ 1154 RECOMP_REGS_OUT(); 1155 } 1156 1157 void sub_4703E32B(void) { 1158 int _fpu_cmp = 0; 1159 uint32_t _cf = 0; 1160 int _df = 1; 1161 uint32_t _flag_k = FK_NONE; 1162 uint32_t _flag_a = 0, _flag_b = 0; 1163 uint32_t _itail_tgt = 0; 1164 RECOMP_REGS_LOCALS 1165 RECOMP_ENTER(0x4703E32Bu); 1166 1167 goto L_4703E32B; 1168 L_4703E2E4: 1169 ecx = MEM32(edi + 0x4); /* 0x4703E2E4: mov ecx, dword ptr [edi + 4] */ 1170 eax = MEM32(esi + 0x4); /* 0x4703E2E7: mov eax, dword ptr [esi + 4] */ 1171 MEM32(eax + 0x4) = ecx; /* 0x4703E2EA: mov dword ptr [eax + 4], ecx */ 1172 ecx = MEM32(esi + 0xC); /* 0x4703E2ED: mov ecx, dword ptr [esi + 0xc] */ 1173 edx = MEM32(ecx); /* 0x4703E2F0: mov edx, dword ptr [ecx] */ 1174 PUSH32(esp, 8); /* 0x4703E2F2: push 8 */ 1175 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4703E2F4: call dword ptr [edx + 4] */ 1176 RECOMP_FLAGS_IN(); 1177 /* test eax, eax */ /* 0x4703E2F7: test eax, eax */ 1178 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1179 _cf = 0; 1180 _flag_k = FK_TEST; 1181 if (TEST_Z(_flag_a, _flag_b)) goto L_4703E312; /* 0x4703E2F9: je 0x4703e312 */ 1182 L_4703E2FB: 1183 ecx = MEM32(esi + 0x4); /* 0x4703E2FB: mov ecx, dword ptr [esi + 4] */ 1184 edx = MEM32(ecx); /* 0x4703E2FE: mov edx, dword ptr [ecx] */ 1185 MEM32(eax) = edx; /* 0x4703E300: mov dword ptr [eax], edx */ 1186 goto L_4703E320; /* 0x4703E302: jmp 0x4703e320 */ 1187 L_4703E312: 1188 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4703E312: call dword ptr [0x470ac3c8] */ 1189 RECOMP_FLAGS_IN(); 1190 MEM32(eax) = 0xCu; /* 0x4703E318: mov dword ptr [eax], 0xc */ 1191 goto L_4703E32B; /* 0x4703E31E: jmp 0x4703e32b */ 1192 L_4703E320: 1193 ecx = MEM32(esi + 0x4); /* 0x4703E320: mov ecx, dword ptr [esi + 4] */ 1194 MEM32(ecx) = eax; /* 0x4703E323: mov dword ptr [ecx], eax */ 1195 MEM32(esi + 0x4) = eax; /* 0x4703E325: mov dword ptr [esi + 4], eax */ 1196 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(1); 1197 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 1; /* 0x4703E328: inc dword ptr [esi + 8] */ 1198 _flag_k = FK_INC; 1199 L_4703E32B: 1200 edi = MEM32(edi); /* 0x4703E32B: mov edi, dword ptr [edi] */ 1201 /* cmp edi, MEM32(ebx + 0x4) */ /* 0x4703E32D: cmp edi, dword ptr [ebx + 4] */ 1202 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebx + 0x4)); 1203 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1204 _flag_k = FK_CMP; 1205 RECOMP_BACKEDGE(); 1206 if (CMP_NE(_flag_a, _flag_b)) goto L_4703E2E4; /* 0x4703E330: jne 0x4703e2e4 */ 1207 L_4703E332: 1208 /* test ebx, ebx */ /* 0x4703E332: test ebx, ebx */ 1209 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 1210 _cf = 0; 1211 _flag_k = FK_TEST; 1212 edi = POP32_VAL(esp); /* 0x4703E334: pop edi */ 1213 if (TEST_Z(_flag_a, _flag_b)) goto L_4703E33C; /* 0x4703E335: je 0x4703e33c */ 1214 L_4703E337: 1215 eax = ebx + 0x10; /* 0x4703E337: lea eax, [ebx + 0x10] */ 1216 goto L_4703E33E; /* 0x4703E33A: jmp 0x4703e33e */ 1217 L_4703E33C: 1218 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1219 eax = 0; /* 0x4703E33C: xor eax, eax */ 1220 _cf = 0; 1221 _flag_k = FK_TEST; 1222 L_4703E33E: 1223 edx = MEM32(eax); /* 0x4703E33E: mov edx, dword ptr [eax] */ 1224 MEM32(esi + 0x10) = edx; /* 0x4703E340: mov dword ptr [esi + 0x10], edx */ 1225 eax = MEM32(ebx + 0x14); /* 0x4703E343: mov eax, dword ptr [ebx + 0x14] */ 1226 MEM32(esi + 0x14) = eax; /* 0x4703E346: mov dword ptr [esi + 0x14], eax */ 1227 ecx = MEM32(ebx + 0x18); /* 0x4703E349: mov ecx, dword ptr [ebx + 0x18] */ 1228 MEM32(esi + 0x18) = ecx; /* 0x4703E34C: mov dword ptr [esi + 0x18], ecx */ 1229 edx = MEM32(ebx + 0x1C); /* 0x4703E34F: mov edx, dword ptr [ebx + 0x1c] */ 1230 ecx = MEM32(esp + 0xC); /* 0x4703E352: mov ecx, dword ptr [esp + 0xc] */ 1231 MEM32(esi + 0x1C) = edx; /* 0x4703E356: mov dword ptr [esi + 0x1c], edx */ 1232 eax = esi; /* 0x4703E359: mov eax, esi */ 1233 esi = POP32_VAL(esp); /* 0x4703E35B: pop esi */ 1234 ebx = POP32_VAL(esp); /* 0x4703E35C: pop ebx */ 1235 MEM32(FS_BASE + (0)) = ecx; /* 0x4703E35D: mov dword ptr fs:[0], ecx */ 1236 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1237 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1238 esp = esp + 0x10u; /* 0x4703E364: add esp, 0x10 */ 1239 _flag_k = FK_ADD; 1240 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703E367: ret 4 */ 1241 RECOMP_REGS_OUT(); 1242 } 1243 1244 void sub_4703E332(void) { 1245 int _fpu_cmp = 0; 1246 uint32_t _cf = 0; 1247 int _df = 1; 1248 uint32_t _flag_k = FK_NONE; 1249 uint32_t _flag_a = 0, _flag_b = 0; 1250 uint32_t _itail_tgt = 0; 1251 RECOMP_REGS_LOCALS 1252 RECOMP_ENTER(0x4703E332u); 1253 1254 L_4703E332: 1255 /* test ebx, ebx */ /* 0x4703E332: test ebx, ebx */ 1256 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 1257 _cf = 0; 1258 _flag_k = FK_TEST; 1259 edi = POP32_VAL(esp); /* 0x4703E334: pop edi */ 1260 if (TEST_Z(_flag_a, _flag_b)) goto L_4703E33C; /* 0x4703E335: je 0x4703e33c */ 1261 L_4703E337: 1262 eax = ebx + 0x10; /* 0x4703E337: lea eax, [ebx + 0x10] */ 1263 goto L_4703E33E; /* 0x4703E33A: jmp 0x4703e33e */ 1264 L_4703E33C: 1265 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1266 eax = 0; /* 0x4703E33C: xor eax, eax */ 1267 _cf = 0; 1268 _flag_k = FK_TEST; 1269 L_4703E33E: 1270 edx = MEM32(eax); /* 0x4703E33E: mov edx, dword ptr [eax] */ 1271 MEM32(esi + 0x10) = edx; /* 0x4703E340: mov dword ptr [esi + 0x10], edx */ 1272 eax = MEM32(ebx + 0x14); /* 0x4703E343: mov eax, dword ptr [ebx + 0x14] */ 1273 MEM32(esi + 0x14) = eax; /* 0x4703E346: mov dword ptr [esi + 0x14], eax */ 1274 ecx = MEM32(ebx + 0x18); /* 0x4703E349: mov ecx, dword ptr [ebx + 0x18] */ 1275 MEM32(esi + 0x18) = ecx; /* 0x4703E34C: mov dword ptr [esi + 0x18], ecx */ 1276 edx = MEM32(ebx + 0x1C); /* 0x4703E34F: mov edx, dword ptr [ebx + 0x1c] */ 1277 ecx = MEM32(esp + 0xC); /* 0x4703E352: mov ecx, dword ptr [esp + 0xc] */ 1278 MEM32(esi + 0x1C) = edx; /* 0x4703E356: mov dword ptr [esi + 0x1c], edx */ 1279 eax = esi; /* 0x4703E359: mov eax, esi */ 1280 esi = POP32_VAL(esp); /* 0x4703E35B: pop esi */ 1281 ebx = POP32_VAL(esp); /* 0x4703E35C: pop ebx */ 1282 MEM32(FS_BASE + (0)) = ecx; /* 0x4703E35D: mov dword ptr fs:[0], ecx */ 1283 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1284 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1285 esp = esp + 0x10u; /* 0x4703E364: add esp, 0x10 */ 1286 _flag_k = FK_ADD; 1287 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703E367: ret 4 */ 1288 RECOMP_REGS_OUT(); 1289 } 1290 1291 void sub_4703E33E(void) { 1292 int _fpu_cmp = 0; 1293 uint32_t _cf = 0; 1294 int _df = 1; 1295 uint32_t _flag_k = FK_NONE; 1296 uint32_t _flag_a = 0, _flag_b = 0; 1297 uint32_t _itail_tgt = 0; 1298 RECOMP_REGS_LOCALS 1299 RECOMP_ENTER(0x4703E33Eu); 1300 1301 L_4703E33E: 1302 edx = MEM32(eax); /* 0x4703E33E: mov edx, dword ptr [eax] */ 1303 MEM32(esi + 0x10) = edx; /* 0x4703E340: mov dword ptr [esi + 0x10], edx */ 1304 eax = MEM32(ebx + 0x14); /* 0x4703E343: mov eax, dword ptr [ebx + 0x14] */ 1305 MEM32(esi + 0x14) = eax; /* 0x4703E346: mov dword ptr [esi + 0x14], eax */ 1306 ecx = MEM32(ebx + 0x18); /* 0x4703E349: mov ecx, dword ptr [ebx + 0x18] */ 1307 MEM32(esi + 0x18) = ecx; /* 0x4703E34C: mov dword ptr [esi + 0x18], ecx */ 1308 edx = MEM32(ebx + 0x1C); /* 0x4703E34F: mov edx, dword ptr [ebx + 0x1c] */ 1309 ecx = MEM32(esp + 0xC); /* 0x4703E352: mov ecx, dword ptr [esp + 0xc] */ 1310 MEM32(esi + 0x1C) = edx; /* 0x4703E356: mov dword ptr [esi + 0x1c], edx */ 1311 eax = esi; /* 0x4703E359: mov eax, esi */ 1312 esi = POP32_VAL(esp); /* 0x4703E35B: pop esi */ 1313 ebx = POP32_VAL(esp); /* 0x4703E35C: pop ebx */ 1314 MEM32(FS_BASE + (0)) = ecx; /* 0x4703E35D: mov dword ptr fs:[0], ecx */ 1315 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1316 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1317 esp = esp + 0x10u; /* 0x4703E364: add esp, 0x10 */ 1318 _flag_k = FK_ADD; 1319 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703E367: ret 4 */ 1320 RECOMP_REGS_OUT(); 1321 } 1322 1323 void sub_4703E370(void) { 1324 int _fpu_cmp = 0; 1325 uint32_t _cf = 0; 1326 int _df = 1; 1327 uint32_t _flag_k = FK_NONE; 1328 uint32_t _flag_a = 0, _flag_b = 0; 1329 uint32_t _itail_tgt = 0; 1330 RECOMP_REGS_LOCALS 1331 RECOMP_ENTER(0x4703E370u); 1332 1333 L_4703E370: 1334 PUSH32(esp, ebx); /* 0x4703E370: push ebx */ 1335 PUSH32(esp, ebp); /* 0x4703E371: push ebp */ 1336 ebx = ecx; /* 0x4703E372: mov ebx, ecx */ 1337 ecx = MEM32(esp + 0xC); /* 0x4703E374: mov ecx, dword ptr [esp + 0xc] */ 1338 eax = MEM32(ecx); /* 0x4703E378: mov eax, dword ptr [ecx] */ 1339 PUSH32(esp, esi); /* 0x4703E37A: push esi */ 1340 ebp = ecx + 0x4; /* 0x4703E37B: lea ebp, [ecx + 4] */ 1341 esi = ebx + 0x4; /* 0x4703E37E: lea esi, [ebx + 4] */ 1342 /* cmp esi, ebp */ /* 0x4703E381: cmp esi, ebp */ 1343 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp); 1344 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1345 _flag_k = FK_CMP; 1346 PUSH32(esp, edi); /* 0x4703E383: push edi */ 1347 MEM32(ebx) = eax; /* 0x4703E384: mov dword ptr [ebx], eax */ 1348 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703E3D5; /* 0x4703E386: je 0x4703e3d5 */ 1349 L_4703E388: 1350 eax = MEM32(esi); /* 0x4703E388: mov eax, dword ptr [esi] */ 1351 edi = MEM32(eax); /* 0x4703E38A: mov edi, dword ptr [eax] */ 1352 /* cmp edi, eax */ /* 0x4703E38C: cmp edi, eax */ 1353 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1354 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1355 _flag_k = FK_CMP; 1356 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703E3B2; /* 0x4703E38E: je 0x4703e3b2 */ 1357 L_4703E390: 1358 eax = edi; /* 0x4703E390: mov eax, edi */ 1359 /* test eax, eax */ /* 0x4703E392: test eax, eax */ 1360 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1361 _cf = 0; 1362 _flag_k = FK_TEST; 1363 edi = MEM32(edi); /* 0x4703E394: mov edi, dword ptr [edi] */ 1364 if (TEST_Z(_flag_a, _flag_b)) goto L_4703E3A5; /* 0x4703E396: je 0x4703e3a5 */ 1365 L_4703E398: 1366 ecx = MEM32(esi + 0x8); /* 0x4703E398: mov ecx, dword ptr [esi + 8] */ 1367 edx = MEM32(ecx); /* 0x4703E39B: mov edx, dword ptr [ecx] */ 1368 PUSH32(esp, eax); /* 0x4703E39D: push eax */ 1369 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4703E39E: call dword ptr [edx + 0xc] */ 1370 RECOMP_FLAGS_IN(); 1371 ecx = MEM32(esp + 0x14); /* 0x4703E3A1: mov ecx, dword ptr [esp + 0x14] */ 1372 L_4703E3A5: 1373 edx = MEM32(esi + 0x4); /* 0x4703E3A5: mov edx, dword ptr [esi + 4] */ 1374 eax = MEM32(esi); /* 0x4703E3A8: mov eax, dword ptr [esi] */ 1375 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 1376 edx = edx - 1; /* 0x4703E3AA: dec edx */ 1377 _flag_k = FK_DEC; 1378 /* cmp edi, eax */ /* 0x4703E3AB: cmp edi, eax */ 1379 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1380 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1381 _flag_k = FK_CMP; 1382 MEM32(esi + 0x4) = edx; /* 0x4703E3AD: mov dword ptr [esi + 4], edx */ 1383 RECOMP_BACKEDGE(); 1384 if (CMP_NE(_flag_a, _flag_b)) goto L_4703E390; /* 0x4703E3B0: jne 0x4703e390 */ 1385 L_4703E3B2: 1386 eax = MEM32(esi); /* 0x4703E3B2: mov eax, dword ptr [esi] */ 1387 MEM32(eax) = eax; /* 0x4703E3B4: mov dword ptr [eax], eax */ 1388 eax = MEM32(ebp); /* 0x4703E3B6: mov eax, dword ptr [ebp] */ 1389 edi = MEM32(eax); /* 0x4703E3B9: mov edi, dword ptr [eax] */ 1390 /* cmp edi, eax */ /* 0x4703E3BB: cmp edi, eax */ 1391 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1392 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1393 _flag_k = FK_CMP; 1394 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703E3D5; /* 0x4703E3BD: je 0x4703e3d5 */ 1395 L_4703E3BF: 1396 eax = edi + 0x4; /* 0x4703E3BF: lea eax, [edi + 4] */ 1397 PUSH32(esp, eax); /* 0x4703E3C2: push eax */ 1398 ecx = esi; /* 0x4703E3C3: mov ecx, esi */ 1399 RECOMP_ICALL(0x47067230u); /* 0x4703E3C5: call 0x47067230 */ /* not lifted */ 1400 RECOMP_FLAGS_IN(); 1401 edi = MEM32(edi); /* 0x4703E3CA: mov edi, dword ptr [edi] */ 1402 /* cmp edi, MEM32(ebp) */ /* 0x4703E3CC: cmp edi, dword ptr [ebp] */ 1403 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp)); 1404 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1405 _flag_k = FK_CMP; 1406 RECOMP_BACKEDGE(); 1407 if (CMP_NE(_flag_a, _flag_b)) goto L_4703E3BF; /* 0x4703E3CF: jne 0x4703e3bf */ 1408 L_4703E3D1: 1409 ecx = MEM32(esp + 0x14); /* 0x4703E3D1: mov ecx, dword ptr [esp + 0x14] */ 1410 L_4703E3D5: 1411 /* test ecx, ecx */ /* 0x4703E3D5: test ecx, ecx */ 1412 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1413 _cf = 0; 1414 _flag_k = FK_TEST; 1415 if (TEST_Z(_flag_a, _flag_b)) goto L_4703E3DE; /* 0x4703E3D7: je 0x4703e3de */ 1416 L_4703E3D9: 1417 eax = ecx + 0x10; /* 0x4703E3D9: lea eax, [ecx + 0x10] */ 1418 goto L_4703E3E0; /* 0x4703E3DC: jmp 0x4703e3e0 */ 1419 L_4703E3DE: 1420 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1421 eax = 0; /* 0x4703E3DE: xor eax, eax */ 1422 _cf = 0; 1423 _flag_k = FK_TEST; 1424 L_4703E3E0: 1425 edx = MEM32(eax); /* 0x4703E3E0: mov edx, dword ptr [eax] */ 1426 MEM32(ebx + 0x10) = edx; /* 0x4703E3E2: mov dword ptr [ebx + 0x10], edx */ 1427 eax = MEM32(ecx + 0x14); /* 0x4703E3E5: mov eax, dword ptr [ecx + 0x14] */ 1428 MEM32(ebx + 0x14) = eax; /* 0x4703E3E8: mov dword ptr [ebx + 0x14], eax */ 1429 edx = MEM32(ecx + 0x18); /* 0x4703E3EB: mov edx, dword ptr [ecx + 0x18] */ 1430 edi = POP32_VAL(esp); /* 0x4703E3EE: pop edi */ 1431 MEM32(ebx + 0x18) = edx; /* 0x4703E3EF: mov dword ptr [ebx + 0x18], edx */ 1432 eax = MEM32(ecx + 0x1C); /* 0x4703E3F2: mov eax, dword ptr [ecx + 0x1c] */ 1433 esi = POP32_VAL(esp); /* 0x4703E3F5: pop esi */ 1434 MEM32(ebx + 0x1C) = eax; /* 0x4703E3F6: mov dword ptr [ebx + 0x1c], eax */ 1435 ebp = POP32_VAL(esp); /* 0x4703E3F9: pop ebp */ 1436 eax = ebx; /* 0x4703E3FA: mov eax, ebx */ 1437 ebx = POP32_VAL(esp); /* 0x4703E3FC: pop ebx */ 1438 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703E3FD: ret 4 */ 1439 RECOMP_REGS_OUT(); 1440 } 1441 1442 void sub_4703E400(void) { 1443 int _fpu_cmp = 0; 1444 uint32_t _cf = 0; 1445 int _df = 1; 1446 uint32_t _flag_k = FK_NONE; 1447 uint32_t _flag_a = 0, _flag_b = 0; 1448 uint32_t _itail_tgt = 0; 1449 RECOMP_REGS_LOCALS 1450 RECOMP_ENTER(0x4703E400u); 1451 1452 L_4703E400: 1453 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703E400: push -1 */ 1454 PUSH32(esp, 0x470A6138u); /* 0x4703E402: push 0x470a6138 */ 1455 eax = MEM32(FS_BASE + (0)); /* 0x4703E407: mov eax, dword ptr fs:[0] */ 1456 PUSH32(esp, eax); /* 0x4703E40D: push eax */ 1457 MEM32(FS_BASE + (0)) = esp; /* 0x4703E40E: mov dword ptr fs:[0], esp */ 1458 PUSH32(esp, ecx); /* 0x4703E415: push ecx */ 1459 PUSH32(esp, esi); /* 0x4703E416: push esi */ 1460 esi = ecx; /* 0x4703E417: mov esi, ecx */ 1461 PUSH32(esp, edi); /* 0x4703E419: push edi */ 1462 MEM32(esp + 0x8) = esi; /* 0x4703E41A: mov dword ptr [esp + 8], esi */ 1463 RECOMP_ICALL(0x4707A510u); /* 0x4703E41E: call 0x4707a510 */ /* not lifted */ 1464 RECOMP_FLAGS_IN(); 1465 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1466 edi = 0; /* 0x4703E423: xor edi, edi */ 1467 _cf = 0; 1468 _flag_k = FK_TEST; 1469 ecx = esi + 0x10; /* 0x4703E425: lea ecx, [esi + 0x10] */ 1470 MEM32(esp + 0x14) = edi; /* 0x4703E428: mov dword ptr [esp + 0x14], edi */ 1471 RECOMP_ICALL(0x47093090u); /* 0x4703E42C: call 0x47093090 */ /* not lifted */ 1472 RECOMP_FLAGS_IN(); 1473 ecx = MEM32(esp + 0xC); /* 0x4703E431: mov ecx, dword ptr [esp + 0xc] */ 1474 MEM32(esi + 0x14) = edi; /* 0x4703E435: mov dword ptr [esi + 0x14], edi */ 1475 MEM32(esi + 0x18) = edi; /* 0x4703E438: mov dword ptr [esi + 0x18], edi */ 1476 MEM32(esi + 0x1C) = edi; /* 0x4703E43B: mov dword ptr [esi + 0x1c], edi */ 1477 edi = POP32_VAL(esp); /* 0x4703E43E: pop edi */ 1478 eax = esi; /* 0x4703E43F: mov eax, esi */ 1479 esi = POP32_VAL(esp); /* 0x4703E441: pop esi */ 1480 MEM32(FS_BASE + (0)) = ecx; /* 0x4703E442: mov dword ptr fs:[0], ecx */ 1481 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1482 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1483 esp = esp + 0x10u; /* 0x4703E449: add esp, 0x10 */ 1484 _flag_k = FK_ADD; 1485 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703E44C: ret */ 1486 RECOMP_REGS_OUT(); 1487 } 1488 1489 void sub_4703E450(void) { 1490 int _fpu_cmp = 0; 1491 uint32_t _cf = 0; 1492 int _df = 1; 1493 uint32_t _flag_k = FK_NONE; 1494 uint32_t _flag_a = 0, _flag_b = 0; 1495 uint32_t _itail_tgt = 0; 1496 RECOMP_REGS_LOCALS 1497 RECOMP_ENTER(0x4703E450u); 1498 1499 L_4703E450: 1500 PUSH32(esp, ecx); /* 0x4703E450: push ecx */ 1501 PUSH32(esp, esi); /* 0x4703E451: push esi */ 1502 esi = ecx; /* 0x4703E452: mov esi, ecx */ 1503 eax = MEM32(esi + 0x18); /* 0x4703E454: mov eax, dword ptr [esi + 0x18] */ 1504 /* cmp eax, MEM32(esi + 0x1C) */ /* 0x4703E457: cmp eax, dword ptr [esi + 0x1c] */ 1505 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x1C)); 1506 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1507 _flag_k = FK_CMP; 1508 PUSH32(esp, edi); /* 0x4703E45A: push edi */ 1509 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703E4BF; /* 0x4703E45B: je 0x4703e4bf */ 1510 L_4703E45D: 1511 PUSH32(esp, ebx); /* 0x4703E45D: push ebx */ 1512 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4703E45E: call dword ptr [0x470ac150] */ 1513 RECOMP_FLAGS_IN(); 1514 ebx = eax; /* 0x4703E464: mov ebx, eax */ 1515 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4703E466: call dword ptr [0x470ac3c8] */ 1516 RECOMP_FLAGS_IN(); 1517 eax = MEM32(eax); /* 0x4703E46C: mov eax, dword ptr [eax] */ 1518 /* test eax, eax */ /* 0x4703E46E: test eax, eax */ 1519 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1520 _cf = 0; 1521 _flag_k = FK_TEST; 1522 if (TEST_Z(_flag_a, _flag_b)) goto L_4703E474; /* 0x4703E470: je 0x4703e474 */ 1523 L_4703E472: 1524 ebx = eax; /* 0x4703E472: mov ebx, eax */ 1525 L_4703E474: 1526 RECOMP_ICALL(0x47039020u); /* 0x4703E474: call 0x47039020 */ /* not lifted */ 1527 RECOMP_FLAGS_IN(); 1528 edi = eax; /* 0x4703E479: mov edi, eax */ 1529 ecx = edi; /* 0x4703E47B: mov ecx, edi */ 1530 RECOMP_ICALL(0x4703B210u); /* 0x4703E47D: call 0x4703b210 */ /* not lifted */ 1531 RECOMP_FLAGS_IN(); 1532 PUSH32(esp, eax); /* 0x4703E482: push eax */ 1533 ecx = edi; /* 0x4703E483: mov ecx, edi */ 1534 RECOMP_ICALL(0x4703B240u); /* 0x4703E485: call 0x4703b240 */ /* not lifted */ 1535 RECOMP_FLAGS_IN(); 1536 PUSH32(esp, eax); /* 0x4703E48A: push eax */ 1537 ecx = edi; /* 0x4703E48B: mov ecx, edi */ 1538 RECOMP_ICALL(0x4703B080u); /* 0x4703E48D: call 0x4703b080 */ /* not lifted */ 1539 RECOMP_FLAGS_IN(); 1540 PUSH32(esp, eax); /* 0x4703E492: push eax */ 1541 PUSH32(esp, ebx); /* 0x4703E493: push ebx */ 1542 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703E494: push -1 */ 1543 PUSH32(esp, 0x16u); /* 0x4703E496: push 0x16 */ 1544 PUSH32(esp, 0x47107D14u); /* 0x4703E498: push 0x47107d14 */ 1545 ecx = edi; /* 0x4703E49D: mov ecx, edi */ 1546 RECOMP_ICALL(0x4703A340u); /* 0x4703E49F: call 0x4703a340 */ /* not lifted */ 1547 RECOMP_FLAGS_IN(); 1548 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703E4A4: push -1 */ 1549 PUSH32(esp, 0x47107CECu); /* 0x4703E4A6: push 0x47107cec */ 1550 PUSH32(esp, 0x47104AA4u); /* 0x4703E4AB: push 0x47104aa4 */ 1551 PUSH32(esp, 0x80u); /* 0x4703E4B0: push 0x80 */ 1552 PUSH32(esp, edi); /* 0x4703E4B5: push edi */ 1553 RECOMP_ICALL(0x47039830u); /* 0x4703E4B6: call 0x47039830 */ /* not lifted */ 1554 RECOMP_FLAGS_IN(); 1555 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1556 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1557 esp = esp + 0x14u; /* 0x4703E4BB: add esp, 0x14 */ 1558 _flag_k = FK_ADD; 1559 ebx = POP32_VAL(esp); /* 0x4703E4BE: pop ebx */ 1560 L_4703E4BF: 1561 eax = MEM32(esi + 0x14); /* 0x4703E4BF: mov eax, dword ptr [esi + 0x14] */ 1562 /* test eax, eax */ /* 0x4703E4C2: test eax, eax */ 1563 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1564 _cf = 0; 1565 _flag_k = FK_TEST; 1566 edi = esi + 0x14; /* 0x4703E4C4: lea edi, [esi + 0x14] */ 1567 if (TEST_Z(_flag_a, _flag_b)) goto L_4703E4D9; /* 0x4703E4C7: je 0x4703e4d9 */ 1568 L_4703E4C9: 1569 ecx = MEM32(esi + 0x10); /* 0x4703E4C9: mov ecx, dword ptr [esi + 0x10] */ 1570 /* test ecx, ecx */ /* 0x4703E4CC: test ecx, ecx */ 1571 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1572 _cf = 0; 1573 _flag_k = FK_TEST; 1574 if (TEST_Z(_flag_a, _flag_b)) goto L_4703E4D9; /* 0x4703E4CE: je 0x4703e4d9 */ 1575 L_4703E4D0: 1576 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFCu); 1577 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1578 eax = eax + 0xFFFFFFFCu; /* 0x4703E4D0: add eax, -4 */ 1579 _flag_k = FK_ADD; 1580 PUSH32(esp, eax); /* 0x4703E4D3: push eax */ 1581 RECOMP_ICALL(0x4703FE50u); /* 0x4703E4D4: call 0x4703fe50 */ /* not lifted */ 1582 RECOMP_FLAGS_IN(); 1583 L_4703E4D9: 1584 ecx = MEM32(esp + 0x14); /* 0x4703E4D9: mov ecx, dword ptr [esp + 0x14] */ 1585 edx = MEM32(esp + 0x10); /* 0x4703E4DD: mov edx, dword ptr [esp + 0x10] */ 1586 eax = MEM32(esi); /* 0x4703E4E1: mov eax, dword ptr [esi] */ 1587 PUSH32(esp, ecx); /* 0x4703E4E3: push ecx */ 1588 PUSH32(esp, edx); /* 0x4703E4E4: push edx */ 1589 PUSH32(esp, 4); /* 0x4703E4E5: push 4 */ 1590 ecx = esp + 0x14; /* 0x4703E4E7: lea ecx, [esp + 0x14] */ 1591 PUSH32(esp, ecx); /* 0x4703E4EB: push ecx */ 1592 PUSH32(esp, eax); /* 0x4703E4EC: push eax */ 1593 MEM32(esi + 0x1C) = 0; /* 0x4703E4ED: mov dword ptr [esi + 0x1c], 0 */ 1594 MEM32(esp + 0x1C) = 0; /* 0x4703E4F4: mov dword ptr [esp + 0x1c], 0 */ 1595 RECOMP_ICALL(0x4700BD90u); /* 0x4703E4FC: call 0x4700bd90 */ /* not lifted */ 1596 RECOMP_FLAGS_IN(); 1597 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1598 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1599 esp = esp + 0x14u; /* 0x4703E501: add esp, 0x14 */ 1600 _flag_k = FK_ADD; 1601 /* cmp eax, 4 */ /* 0x4703E504: cmp eax, 4 */ 1602 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 1603 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1604 _flag_k = FK_CMP; 1605 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703E51F; /* 0x4703E507: je 0x4703e51f */ 1606 L_4703E509: 1607 MEM32(edi) = 0; /* 0x4703E509: mov dword ptr [edi], 0 */ 1608 edi = POP32_VAL(esp); /* 0x4703E50F: pop edi */ 1609 MEM32(esi + 0x18) = 0; /* 0x4703E510: mov dword ptr [esi + 0x18], 0 */ 1610 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1611 eax = eax | 0xFFFFFFFFu; /* 0x4703E517: or eax, 0xffffffff */ 1612 _cf = 0; 1613 _flag_k = FK_TEST; 1614 esi = POP32_VAL(esp); /* 0x4703E51A: pop esi */ 1615 ecx = POP32_VAL(esp); /* 0x4703E51B: pop ecx */ 1616 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4703E51C: ret 8 */ 1617 L_4703E51F: 1618 edx = MEM32(esp + 0x8); /* 0x4703E51F: mov edx, dword ptr [esp + 8] */ 1619 PUSH32(esp, edi); /* 0x4703E523: push edi */ 1620 PUSH32(esp, edx); /* 0x4703E524: push edx */ 1621 ecx = esi + 0x10; /* 0x4703E525: lea ecx, [esi + 0x10] */ 1622 RECOMP_ICALL(0x4703E1B0u); /* 0x4703E528: call 0x4703e1b0 */ /* not lifted */ 1623 RECOMP_FLAGS_IN(); 1624 edi = POP32_VAL(esp); /* 0x4703E52D: pop edi */ 1625 MEM32(esi + 0x18) = eax; /* 0x4703E52E: mov dword ptr [esi + 0x18], eax */ 1626 esi = POP32_VAL(esp); /* 0x4703E531: pop esi */ 1627 ecx = POP32_VAL(esp); /* 0x4703E532: pop ecx */ 1628 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4703E533: ret 8 */ 1629 RECOMP_REGS_OUT(); 1630 } 1631 1632 void sub_4703E540(void) { 1633 int _fpu_cmp = 0; 1634 uint32_t _cf = 0; 1635 int _df = 1; 1636 uint32_t _flag_k = FK_NONE; 1637 uint32_t _flag_a = 0, _flag_b = 0; 1638 uint32_t _itail_tgt = 0; 1639 RECOMP_REGS_LOCALS 1640 RECOMP_ENTER(0x4703E540u); 1641 1642 L_4703E540: 1643 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703E540: push -1 */ 1644 PUSH32(esp, 0x470A6173u); /* 0x4703E542: push 0x470a6173 */ 1645 eax = MEM32(FS_BASE + (0)); /* 0x4703E547: mov eax, dword ptr fs:[0] */ 1646 PUSH32(esp, eax); /* 0x4703E54D: push eax */ 1647 MEM32(FS_BASE + (0)) = esp; /* 0x4703E54E: mov dword ptr fs:[0], esp */ 1648 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1649 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1650 esp = esp - 8; /* 0x4703E555: sub esp, 8 */ 1651 _flag_k = FK_CMP; 1652 PUSH32(esp, ebx); /* 0x4703E558: push ebx */ 1653 PUSH32(esp, esi); /* 0x4703E559: push esi */ 1654 esi = ecx; /* 0x4703E55A: mov esi, ecx */ 1655 MEM32(esp + 0x8) = esi; /* 0x4703E55C: mov dword ptr [esp + 8], esi */ 1656 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1657 ebx = 0; /* 0x4703E560: xor ebx, ebx */ 1658 _cf = 0; 1659 _flag_k = FK_TEST; 1660 /* cmp esi, ebx */ /* 0x4703E562: cmp esi, ebx */ 1661 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 1662 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1663 _flag_k = FK_CMP; 1664 MEM32(esp + 0x18) = ebx; /* 0x4703E564: mov dword ptr [esp + 0x18], ebx */ 1665 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703E56F; /* 0x4703E568: je 0x4703e56f */ 1666 L_4703E56A: 1667 eax = esi + 0x10; /* 0x4703E56A: lea eax, [esi + 0x10] */ 1668 goto L_4703E571; /* 0x4703E56D: jmp 0x4703e571 */ 1669 L_4703E56F: 1670 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1671 eax = 0; /* 0x4703E56F: xor eax, eax */ 1672 _cf = 0; 1673 _flag_k = FK_TEST; 1674 L_4703E571: 1675 PUSH32(esp, edi); /* 0x4703E571: push edi */ 1676 edi = MEM32(eax); /* 0x4703E572: mov edi, dword ptr [eax] */ 1677 /* cmp edi, ebx */ /* 0x4703E574: cmp edi, ebx */ 1678 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1679 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1680 _flag_k = FK_CMP; 1681 MEM32(esp + 0x10) = edi; /* 0x4703E576: mov dword ptr [esp + 0x10], edi */ 1682 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703E5BD; /* 0x4703E57A: je 0x4703e5bd */ 1683 L_4703E57C: 1684 PUSH32(esp, ebp); /* 0x4703E57C: push ebp */ 1685 ecx = edi + 0x250; /* 0x4703E57D: lea ecx, [edi + 0x250] */ 1686 MEM8(esp + 0x20) = (uint8_t)(1); /* 0x4703E583: mov byte ptr [esp + 0x20], 1 */ 1687 RECOMP_ICALL(0x47086800u); /* 0x4703E588: call 0x47086800 */ /* not lifted */ 1688 RECOMP_FLAGS_IN(); 1689 ebp = edi + 0x4; /* 0x4703E58D: lea ebp, [edi + 4] */ 1690 MEM32(esp + 0x14) = ebp; /* 0x4703E590: mov dword ptr [esp + 0x14], ebp */ 1691 MEM32(ebp) = 0x470AC710u; /* 0x4703E594: mov dword ptr [ebp], 0x470ac710 */ 1692 ecx = ebp + 0x10; /* 0x4703E59B: lea ecx, [ebp + 0x10] */ 1693 MEM8(esp + 0x20) = (uint8_t)(2); /* 0x4703E59E: mov byte ptr [esp + 0x20], 2 */ 1694 RECOMP_ICALL(0x47041710u); /* 0x4703E5A3: call 0x47041710 */ /* not lifted */ 1695 RECOMP_FLAGS_IN(); 1696 ecx = ebp; /* 0x4703E5A8: mov ecx, ebp */ 1697 MEM8(esp + 0x20) = (uint8_t)(LO8(ebx)); /* 0x4703E5AA: mov byte ptr [esp + 0x20], bl */ 1698 RECOMP_ICALL(0x4702A7B0u); /* 0x4703E5AE: call 0x4702a7b0 */ /* not lifted */ 1699 RECOMP_FLAGS_IN(); 1700 PUSH32(esp, edi); /* 0x4703E5B3: push edi */ 1701 RECOMP_ICALL(0x470A32A2u); /* 0x4703E5B4: call 0x470a32a2 */ /* not lifted */ 1702 RECOMP_FLAGS_IN(); 1703 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1704 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1705 esp = esp + 4; /* 0x4703E5B9: add esp, 4 */ 1706 _flag_k = FK_ADD; 1707 ebp = POP32_VAL(esp); /* 0x4703E5BC: pop ebp */ 1708 L_4703E5BD: 1709 eax = MEM32(esi + 0x4); /* 0x4703E5BD: mov eax, dword ptr [esi + 4] */ 1710 edi = MEM32(eax); /* 0x4703E5C0: mov edi, dword ptr [eax] */ 1711 /* cmp edi, eax */ /* 0x4703E5C2: cmp edi, eax */ 1712 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1713 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1714 _flag_k = FK_CMP; 1715 MEM32(esp + 0x1C) = 3; /* 0x4703E5C4: mov dword ptr [esp + 0x1c], 3 */ 1716 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703E5ED; /* 0x4703E5CC: je 0x4703e5ed */ 1717 L_4703E5CE: 1718 eax = edi; /* 0x4703E5CE: mov eax, edi */ 1719 /* cmp eax, ebx */ /* 0x4703E5D0: cmp eax, ebx */ 1720 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1721 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1722 _flag_k = FK_CMP; 1723 edi = MEM32(edi); /* 0x4703E5D2: mov edi, dword ptr [edi] */ 1724 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703E5DF; /* 0x4703E5D4: je 0x4703e5df */ 1725 L_4703E5D6: 1726 ecx = MEM32(esi + 0xC); /* 0x4703E5D6: mov ecx, dword ptr [esi + 0xc] */ 1727 edx = MEM32(ecx); /* 0x4703E5D9: mov edx, dword ptr [ecx] */ 1728 PUSH32(esp, eax); /* 0x4703E5DB: push eax */ 1729 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4703E5DC: call dword ptr [edx + 0xc] */ 1730 RECOMP_FLAGS_IN(); 1731 L_4703E5DF: 1732 ecx = MEM32(esi + 0x8); /* 0x4703E5DF: mov ecx, dword ptr [esi + 8] */ 1733 eax = MEM32(esi + 0x4); /* 0x4703E5E2: mov eax, dword ptr [esi + 4] */ 1734 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1735 ecx = ecx - 1; /* 0x4703E5E5: dec ecx */ 1736 _flag_k = FK_DEC; 1737 /* cmp edi, eax */ /* 0x4703E5E6: cmp edi, eax */ 1738 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1739 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1740 _flag_k = FK_CMP; 1741 MEM32(esi + 0x8) = ecx; /* 0x4703E5E8: mov dword ptr [esi + 8], ecx */ 1742 RECOMP_BACKEDGE(); 1743 if (CMP_NE(_flag_a, _flag_b)) goto L_4703E5CE; /* 0x4703E5EB: jne 0x4703e5ce */ 1744 L_4703E5ED: 1745 eax = MEM32(esi + 0x4); /* 0x4703E5ED: mov eax, dword ptr [esi + 4] */ 1746 MEM32(eax) = eax; /* 0x4703E5F0: mov dword ptr [eax], eax */ 1747 eax = MEM32(esi + 0x4); /* 0x4703E5F2: mov eax, dword ptr [esi + 4] */ 1748 /* cmp eax, ebx */ /* 0x4703E5F5: cmp eax, ebx */ 1749 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1750 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1751 _flag_k = FK_CMP; 1752 edi = POP32_VAL(esp); /* 0x4703E5F7: pop edi */ 1753 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703E603; /* 0x4703E5F8: je 0x4703e603 */ 1754 L_4703E5FA: 1755 ecx = MEM32(esi + 0xC); /* 0x4703E5FA: mov ecx, dword ptr [esi + 0xc] */ 1756 edx = MEM32(ecx); /* 0x4703E5FD: mov edx, dword ptr [ecx] */ 1757 PUSH32(esp, eax); /* 0x4703E5FF: push eax */ 1758 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4703E600: call dword ptr [edx + 0xc] */ 1759 RECOMP_FLAGS_IN(); 1760 L_4703E603: 1761 ecx = MEM32(esp + 0x10); /* 0x4703E603: mov ecx, dword ptr [esp + 0x10] */ 1762 MEM32(esi + 0x4) = ebx; /* 0x4703E607: mov dword ptr [esi + 4], ebx */ 1763 esi = POP32_VAL(esp); /* 0x4703E60A: pop esi */ 1764 ebx = POP32_VAL(esp); /* 0x4703E60B: pop ebx */ 1765 MEM32(FS_BASE + (0)) = ecx; /* 0x4703E60C: mov dword ptr fs:[0], ecx */ 1766 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1767 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1768 esp = esp + 0x14u; /* 0x4703E613: add esp, 0x14 */ 1769 _flag_k = FK_ADD; 1770 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703E616: ret */ 1771 RECOMP_REGS_OUT(); 1772 } 1773 1774 void sub_4703E620(void) { 1775 int _fpu_cmp = 0; 1776 uint32_t _cf = 0; 1777 int _df = 1; 1778 uint32_t _flag_k = FK_NONE; 1779 uint32_t _flag_a = 0, _flag_b = 0; 1780 uint32_t _itail_tgt = 0; 1781 RECOMP_REGS_LOCALS 1782 RECOMP_ENTER(0x4703E620u); 1783 1784 L_4703E620: 1785 PUSH32(esp, ecx); /* 0x4703E620: push ecx */ 1786 PUSH32(esp, ebx); /* 0x4703E621: push ebx */ 1787 ebx = ecx; /* 0x4703E622: mov ebx, ecx */ 1788 ecx = MEM32(ebx + 0x10); /* 0x4703E624: mov ecx, dword ptr [ebx + 0x10] */ 1789 /* test ecx, ecx */ /* 0x4703E627: test ecx, ecx */ 1790 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1791 _cf = 0; 1792 _flag_k = FK_TEST; 1793 PUSH32(esp, ebp); /* 0x4703E629: push ebp */ 1794 if (TEST_Z(_flag_a, _flag_b)) goto L_4703E646; /* 0x4703E62A: je 0x4703e646 */ 1795 L_4703E62C: 1796 ebp = MEM32(esp + 0x14); /* 0x4703E62C: mov ebp, dword ptr [esp + 0x14] */ 1797 eax = ebp + 0x4; /* 0x4703E630: lea eax, [ebp + 4] */ 1798 PUSH32(esp, eax); /* 0x4703E633: push eax */ 1799 RECOMP_ICALL(0x4703FD60u); /* 0x4703E634: call 0x4703fd60 */ /* not lifted */ 1800 RECOMP_FLAGS_IN(); 1801 MEM32(eax) = ebp; /* 0x4703E639: mov dword ptr [eax], ebp */ 1802 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 1803 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1804 eax = eax + 4; /* 0x4703E63B: add eax, 4 */ 1805 _flag_k = FK_ADD; 1806 /* test eax, eax */ /* 0x4703E63E: test eax, eax */ 1807 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1808 _cf = 0; 1809 _flag_k = FK_TEST; 1810 MEM32(esp + 0x8) = eax; /* 0x4703E640: mov dword ptr [esp + 8], eax */ 1811 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703E64F; /* 0x4703E644: jne 0x4703e64f */ 1812 L_4703E646: 1813 ebp = POP32_VAL(esp); /* 0x4703E646: pop ebp */ 1814 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1815 eax = eax | 0xFFFFFFFFu; /* 0x4703E647: or eax, 0xffffffff */ 1816 _cf = 0; 1817 _flag_k = FK_TEST; 1818 ebx = POP32_VAL(esp); /* 0x4703E64A: pop ebx */ 1819 ecx = POP32_VAL(esp); /* 0x4703E64B: pop ecx */ 1820 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4703E64C: ret 0x10 */ 1821 L_4703E64F: 1822 PUSH32(esp, esi); /* 0x4703E64F: push esi */ 1823 esi = MEM32(esp + 0x14); /* 0x4703E650: mov esi, dword ptr [esp + 0x14] */ 1824 ecx = ebp; /* 0x4703E654: mov ecx, ebp */ 1825 edx = ecx; /* 0x4703E656: mov edx, ecx */ 1826 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4703E658: shr ecx, 2 */ 1827 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1828 ecx = ecx >> 2u; /* 0x4703E658: shr ecx, 2 */ 1829 PUSH32(esp, edi); /* 0x4703E65B: push edi */ 1830 edi = eax; /* 0x4703E65C: mov edi, eax */ 1831 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4703E65E: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 1832 ecx = edx; /* 0x4703E660: mov ecx, edx */ 1833 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 1834 ecx = ecx & 3; /* 0x4703E662: and ecx, 3 */ 1835 _cf = 0; 1836 _flag_k = FK_TEST; 1837 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4703E665: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 1838 ecx = MEM32(ebx + 0x10); /* 0x4703E667: mov ecx, dword ptr [ebx + 0x10] */ 1839 /* test ecx, ecx */ /* 0x4703E66A: test ecx, ecx */ 1840 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1841 _cf = 0; 1842 _flag_k = FK_TEST; 1843 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703E673; /* 0x4703E66C: jne 0x4703e673 */ 1844 L_4703E66E: 1845 _flag_a = (uint32_t)((esi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((esi | 0xFFFFFFFFu)); 1846 esi = esi | 0xFFFFFFFFu; /* 0x4703E66E: or esi, 0xffffffff */ 1847 _cf = 0; 1848 _flag_k = FK_TEST; 1849 goto L_4703E689; /* 0x4703E671: jmp 0x4703e689 */ 1850 L_4703E673: 1851 esi = eax + (-0x4); /* 0x4703E673: lea esi, [eax - 4] */ 1852 /* cmp MEM32(esi), ebp */ /* 0x4703E676: cmp dword ptr [esi], ebp */ 1853 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(ebp); 1854 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1855 _flag_k = FK_CMP; 1856 if (CMP_B(_flag_a, _flag_b)) goto L_4703E67C; /* 0x4703E678: jb 0x4703e67c */ 1857 L_4703E67A: 1858 MEM32(esi) = ebp; /* 0x4703E67A: mov dword ptr [esi], ebp */ 1859 L_4703E67C: 1860 eax = MEM32(ebx + 0x10); /* 0x4703E67C: mov eax, dword ptr [ebx + 0x10] */ 1861 ecx = eax + 0x4; /* 0x4703E67F: lea ecx, [eax + 4] */ 1862 eax = MEM32(ecx); /* 0x4703E682: mov eax, dword ptr [ecx] */ 1863 RECOMP_ICALL(MEM32(eax + 0x64)); /* 0x4703E684: call dword ptr [eax + 0x64] */ 1864 RECOMP_FLAGS_IN(); 1865 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 1866 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1867 esi = esi - eax; /* 0x4703E687: sub esi, eax */ 1868 _flag_k = FK_CMP; 1869 L_4703E689: 1870 ecx = MEM32(esp + 0x24); /* 0x4703E689: mov ecx, dword ptr [esp + 0x24] */ 1871 edx = MEM32(esp + 0x20); /* 0x4703E68D: mov edx, dword ptr [esp + 0x20] */ 1872 eax = MEM32(ebx); /* 0x4703E691: mov eax, dword ptr [ebx] */ 1873 PUSH32(esp, ecx); /* 0x4703E693: push ecx */ 1874 PUSH32(esp, edx); /* 0x4703E694: push edx */ 1875 PUSH32(esp, 4); /* 0x4703E695: push 4 */ 1876 ecx = esp + 0x28; /* 0x4703E697: lea ecx, [esp + 0x28] */ 1877 PUSH32(esp, ecx); /* 0x4703E69B: push ecx */ 1878 PUSH32(esp, eax); /* 0x4703E69C: push eax */ 1879 MEM32(esp + 0x30) = esi; /* 0x4703E69D: mov dword ptr [esp + 0x30], esi */ 1880 RECOMP_ICALL(0x4700CDC0u); /* 0x4703E6A1: call 0x4700cdc0 */ /* not lifted */ 1881 RECOMP_FLAGS_IN(); 1882 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1883 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1884 esp = esp + 0x14u; /* 0x4703E6A6: add esp, 0x14 */ 1885 _flag_k = FK_ADD; 1886 /* cmp eax, 4 */ /* 0x4703E6A9: cmp eax, 4 */ 1887 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 1888 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1889 _flag_k = FK_CMP; 1890 edi = POP32_VAL(esp); /* 0x4703E6AC: pop edi */ 1891 esi = POP32_VAL(esp); /* 0x4703E6AD: pop esi */ 1892 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703E6CF; /* 0x4703E6AE: je 0x4703e6cf */ 1893 L_4703E6B0: 1894 ebx = MEM32(ebx + 0x10); /* 0x4703E6B0: mov ebx, dword ptr [ebx + 0x10] */ 1895 /* test ebx, ebx */ /* 0x4703E6B3: test ebx, ebx */ 1896 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 1897 _cf = 0; 1898 _flag_k = FK_TEST; 1899 if (TEST_Z(_flag_a, _flag_b)) goto L_4703E6C6; /* 0x4703E6B5: je 0x4703e6c6 */ 1900 L_4703E6B7: 1901 edx = MEM32(esp + 0x8); /* 0x4703E6B7: mov edx, dword ptr [esp + 8] */ 1902 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFFCu); 1903 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1904 edx = edx + 0xFFFFFFFCu; /* 0x4703E6BB: add edx, -4 */ 1905 _flag_k = FK_ADD; 1906 PUSH32(esp, edx); /* 0x4703E6BE: push edx */ 1907 ecx = ebx; /* 0x4703E6BF: mov ecx, ebx */ 1908 RECOMP_ICALL(0x4703FE50u); /* 0x4703E6C1: call 0x4703fe50 */ /* not lifted */ 1909 RECOMP_FLAGS_IN(); 1910 L_4703E6C6: 1911 ebp = POP32_VAL(esp); /* 0x4703E6C6: pop ebp */ 1912 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1913 eax = eax | 0xFFFFFFFFu; /* 0x4703E6C7: or eax, 0xffffffff */ 1914 _cf = 0; 1915 _flag_k = FK_TEST; 1916 ebx = POP32_VAL(esp); /* 0x4703E6CA: pop ebx */ 1917 ecx = POP32_VAL(esp); /* 0x4703E6CB: pop ecx */ 1918 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4703E6CC: ret 0x10 */ 1919 L_4703E6CF: 1920 eax = ebp; /* 0x4703E6CF: mov eax, ebp */ 1921 ebp = POP32_VAL(esp); /* 0x4703E6D1: pop ebp */ 1922 ebx = POP32_VAL(esp); /* 0x4703E6D2: pop ebx */ 1923 ecx = POP32_VAL(esp); /* 0x4703E6D3: pop ecx */ 1924 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4703E6D4: ret 0x10 */ 1925 RECOMP_REGS_OUT(); 1926 } 1927 1928 void sub_4703E6E0(void) { 1929 int _fpu_cmp = 0; 1930 uint32_t _cf = 0; 1931 int _df = 1; 1932 uint32_t _flag_k = FK_NONE; 1933 uint32_t _flag_a = 0, _flag_b = 0; 1934 uint32_t _itail_tgt = 0; 1935 RECOMP_REGS_LOCALS 1936 RECOMP_ENTER(0x4703E6E0u); 1937 1938 L_4703E6E0: 1939 PUSH32(esp, ecx); /* 0x4703E6E0: push ecx */ 1940 PUSH32(esp, ebx); /* 0x4703E6E1: push ebx */ 1941 ebx = ecx; /* 0x4703E6E2: mov ebx, ecx */ 1942 ecx = MEM32(ebx + 0x18); /* 0x4703E6E4: mov ecx, dword ptr [ebx + 0x18] */ 1943 edx = MEM32(ebx + 0x1C); /* 0x4703E6E7: mov edx, dword ptr [ebx + 0x1c] */ 1944 eax = ecx; /* 0x4703E6EA: mov eax, ecx */ 1945 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1946 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1947 eax = eax - edx; /* 0x4703E6EC: sub eax, edx */ 1948 _flag_k = FK_CMP; 1949 PUSH32(esp, esi); /* 0x4703E6EE: push esi */ 1950 PUSH32(esp, edi); /* 0x4703E6EF: push edi */ 1951 if (/* sub result */ CMP_NE(_flag_a, _flag_b)) goto L_4703E7DA; /* 0x4703E6F0: jne 0x4703e7da */ 1952 L_4703E6F6: 1953 /* cmp ecx, edx */ /* 0x4703E6F6: cmp ecx, edx */ 1954 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1955 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1956 _flag_k = FK_CMP; 1957 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703E75A; /* 0x4703E6F8: je 0x4703e75a */ 1958 L_4703E6FA: 1959 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4703E6FA: call dword ptr [0x470ac150] */ 1960 RECOMP_FLAGS_IN(); 1961 edi = eax; /* 0x4703E700: mov edi, eax */ 1962 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4703E702: call dword ptr [0x470ac3c8] */ 1963 RECOMP_FLAGS_IN(); 1964 eax = MEM32(eax); /* 0x4703E708: mov eax, dword ptr [eax] */ 1965 /* test eax, eax */ /* 0x4703E70A: test eax, eax */ 1966 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1967 _cf = 0; 1968 _flag_k = FK_TEST; 1969 if (TEST_Z(_flag_a, _flag_b)) goto L_4703E710; /* 0x4703E70C: je 0x4703e710 */ 1970 L_4703E70E: 1971 edi = eax; /* 0x4703E70E: mov edi, eax */ 1972 L_4703E710: 1973 RECOMP_ICALL(0x47039020u); /* 0x4703E710: call 0x47039020 */ /* not lifted */ 1974 RECOMP_FLAGS_IN(); 1975 esi = eax; /* 0x4703E715: mov esi, eax */ 1976 ecx = esi; /* 0x4703E717: mov ecx, esi */ 1977 RECOMP_ICALL(0x4703B210u); /* 0x4703E719: call 0x4703b210 */ /* not lifted */ 1978 RECOMP_FLAGS_IN(); 1979 PUSH32(esp, eax); /* 0x4703E71E: push eax */ 1980 ecx = esi; /* 0x4703E71F: mov ecx, esi */ 1981 RECOMP_ICALL(0x4703B240u); /* 0x4703E721: call 0x4703b240 */ /* not lifted */ 1982 RECOMP_FLAGS_IN(); 1983 PUSH32(esp, eax); /* 0x4703E726: push eax */ 1984 ecx = esi; /* 0x4703E727: mov ecx, esi */ 1985 RECOMP_ICALL(0x4703B080u); /* 0x4703E729: call 0x4703b080 */ /* not lifted */ 1986 RECOMP_FLAGS_IN(); 1987 PUSH32(esp, eax); /* 0x4703E72E: push eax */ 1988 PUSH32(esp, edi); /* 0x4703E72F: push edi */ 1989 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703E730: push -1 */ 1990 PUSH32(esp, 0x16u); /* 0x4703E732: push 0x16 */ 1991 PUSH32(esp, 0x47107D14u); /* 0x4703E734: push 0x47107d14 */ 1992 ecx = esi; /* 0x4703E739: mov ecx, esi */ 1993 RECOMP_ICALL(0x4703A340u); /* 0x4703E73B: call 0x4703a340 */ /* not lifted */ 1994 RECOMP_FLAGS_IN(); 1995 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703E740: push -1 */ 1996 PUSH32(esp, 0x47107CECu); /* 0x4703E742: push 0x47107cec */ 1997 PUSH32(esp, 0x47104AA4u); /* 0x4703E747: push 0x47104aa4 */ 1998 PUSH32(esp, 0x80u); /* 0x4703E74C: push 0x80 */ 1999 PUSH32(esp, esi); /* 0x4703E751: push esi */ 2000 RECOMP_ICALL(0x47039830u); /* 0x4703E752: call 0x47039830 */ /* not lifted */ 2001 RECOMP_FLAGS_IN(); 2002 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2003 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2004 esp = esp + 0x14u; /* 0x4703E757: add esp, 0x14 */ 2005 _flag_k = FK_ADD; 2006 L_4703E75A: 2007 eax = MEM32(ebx + 0x14); /* 0x4703E75A: mov eax, dword ptr [ebx + 0x14] */ 2008 /* test eax, eax */ /* 0x4703E75D: test eax, eax */ 2009 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2010 _cf = 0; 2011 _flag_k = FK_TEST; 2012 esi = ebx + 0x14; /* 0x4703E75F: lea esi, [ebx + 0x14] */ 2013 if (TEST_Z(_flag_a, _flag_b)) goto L_4703E774; /* 0x4703E762: je 0x4703e774 */ 2014 L_4703E764: 2015 ecx = MEM32(ebx + 0x10); /* 0x4703E764: mov ecx, dword ptr [ebx + 0x10] */ 2016 /* test ecx, ecx */ /* 0x4703E767: test ecx, ecx */ 2017 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2018 _cf = 0; 2019 _flag_k = FK_TEST; 2020 if (TEST_Z(_flag_a, _flag_b)) goto L_4703E774; /* 0x4703E769: je 0x4703e774 */ 2021 L_4703E76B: 2022 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFCu); 2023 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2024 eax = eax + 0xFFFFFFFCu; /* 0x4703E76B: add eax, -4 */ 2025 _flag_k = FK_ADD; 2026 PUSH32(esp, eax); /* 0x4703E76E: push eax */ 2027 RECOMP_ICALL(0x4703FE50u); /* 0x4703E76F: call 0x4703fe50 */ /* not lifted */ 2028 RECOMP_FLAGS_IN(); 2029 L_4703E774: 2030 ecx = MEM32(esp + 0x20); /* 0x4703E774: mov ecx, dword ptr [esp + 0x20] */ 2031 edx = MEM32(esp + 0x1C); /* 0x4703E778: mov edx, dword ptr [esp + 0x1c] */ 2032 eax = MEM32(ebx); /* 0x4703E77C: mov eax, dword ptr [ebx] */ 2033 PUSH32(esp, ecx); /* 0x4703E77E: push ecx */ 2034 PUSH32(esp, edx); /* 0x4703E77F: push edx */ 2035 PUSH32(esp, 4); /* 0x4703E780: push 4 */ 2036 ecx = esp + 0x18; /* 0x4703E782: lea ecx, [esp + 0x18] */ 2037 PUSH32(esp, ecx); /* 0x4703E786: push ecx */ 2038 PUSH32(esp, eax); /* 0x4703E787: push eax */ 2039 MEM32(ebx + 0x1C) = 0; /* 0x4703E788: mov dword ptr [ebx + 0x1c], 0 */ 2040 MEM32(esp + 0x20) = 0; /* 0x4703E78F: mov dword ptr [esp + 0x20], 0 */ 2041 RECOMP_ICALL(0x4700BD90u); /* 0x4703E797: call 0x4700bd90 */ /* not lifted */ 2042 RECOMP_FLAGS_IN(); 2043 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2044 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2045 esp = esp + 0x14u; /* 0x4703E79C: add esp, 0x14 */ 2046 _flag_k = FK_ADD; 2047 /* cmp eax, 4 */ /* 0x4703E79F: cmp eax, 4 */ 2048 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2049 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2050 _flag_k = FK_CMP; 2051 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703E7BB; /* 0x4703E7A2: je 0x4703e7bb */ 2052 L_4703E7A4: 2053 edi = POP32_VAL(esp); /* 0x4703E7A4: pop edi */ 2054 MEM32(esi) = 0; /* 0x4703E7A5: mov dword ptr [esi], 0 */ 2055 esi = POP32_VAL(esp); /* 0x4703E7AB: pop esi */ 2056 MEM32(ebx + 0x18) = 0; /* 0x4703E7AC: mov dword ptr [ebx + 0x18], 0 */ 2057 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2058 eax = eax | 0xFFFFFFFFu; /* 0x4703E7B3: or eax, 0xffffffff */ 2059 _cf = 0; 2060 _flag_k = FK_TEST; 2061 ebx = POP32_VAL(esp); /* 0x4703E7B6: pop ebx */ 2062 ecx = POP32_VAL(esp); /* 0x4703E7B7: pop ecx */ 2063 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4703E7B8: ret 0x10 */ 2064 L_4703E7BB: 2065 edx = MEM32(esp + 0xC); /* 0x4703E7BB: mov edx, dword ptr [esp + 0xc] */ 2066 PUSH32(esp, esi); /* 0x4703E7BF: push esi */ 2067 PUSH32(esp, edx); /* 0x4703E7C0: push edx */ 2068 ecx = ebx + 0x10; /* 0x4703E7C1: lea ecx, [ebx + 0x10] */ 2069 RECOMP_ICALL(0x4703E1B0u); /* 0x4703E7C4: call 0x4703e1b0 */ /* not lifted */ 2070 RECOMP_FLAGS_IN(); 2071 /* cmp eax, 0xFFFFFFFFu */ /* 0x4703E7C9: cmp eax, -1 */ 2072 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 2073 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2074 _flag_k = FK_CMP; 2075 MEM32(ebx + 0x18) = eax; /* 0x4703E7CC: mov dword ptr [ebx + 0x18], eax */ 2076 if (CMP_NE(_flag_a, _flag_b)) goto L_4703E7DA; /* 0x4703E7CF: jne 0x4703e7da */ 2077 L_4703E7D1: 2078 edi = POP32_VAL(esp); /* 0x4703E7D1: pop edi */ 2079 esi = POP32_VAL(esp); /* 0x4703E7D2: pop esi */ 2080 _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax)); 2081 eax = eax | eax; /* 0x4703E7D3: or eax, eax */ 2082 _cf = 0; 2083 _flag_k = FK_TEST; 2084 ebx = POP32_VAL(esp); /* 0x4703E7D5: pop ebx */ 2085 ecx = POP32_VAL(esp); /* 0x4703E7D6: pop ecx */ 2086 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4703E7D7: ret 0x10 */ 2087 L_4703E7DA: 2088 ecx = MEM32(esp + 0x18); /* 0x4703E7DA: mov ecx, dword ptr [esp + 0x18] */ 2089 /* cmp ecx, eax */ /* 0x4703E7DE: cmp ecx, eax */ 2090 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2091 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2092 _flag_k = FK_CMP; 2093 if (CMP_A(_flag_a, _flag_b)) goto L_4703E7E4; /* 0x4703E7E0: ja 0x4703e7e4 */ 2094 L_4703E7E2: 2095 eax = ecx; /* 0x4703E7E2: mov eax, ecx */ 2096 L_4703E7E4: 2097 edx = MEM32(ebx + 0x1C); /* 0x4703E7E4: mov edx, dword ptr [ebx + 0x1c] */ 2098 esi = MEM32(ebx + 0x14); /* 0x4703E7E7: mov esi, dword ptr [ebx + 0x14] */ 2099 edi = MEM32(esp + 0x14); /* 0x4703E7EA: mov edi, dword ptr [esp + 0x14] */ 2100 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 2101 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2102 esi = esi + edx; /* 0x4703E7EE: add esi, edx */ 2103 _flag_k = FK_ADD; 2104 ecx = eax; /* 0x4703E7F0: mov ecx, eax */ 2105 edx = ecx; /* 0x4703E7F2: mov edx, ecx */ 2106 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4703E7F4: shr ecx, 2 */ 2107 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2108 ecx = ecx >> 2u; /* 0x4703E7F4: shr ecx, 2 */ 2109 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4703E7F7: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 2110 ecx = edx; /* 0x4703E7F9: mov ecx, edx */ 2111 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 2112 ecx = ecx & 3; /* 0x4703E7FB: and ecx, 3 */ 2113 _cf = 0; 2114 _flag_k = FK_TEST; 2115 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4703E7FE: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 2116 ecx = MEM32(ebx + 0x1C); /* 0x4703E800: mov ecx, dword ptr [ebx + 0x1c] */ 2117 edi = POP32_VAL(esp); /* 0x4703E803: pop edi */ 2118 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2119 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2120 ecx = ecx + eax; /* 0x4703E804: add ecx, eax */ 2121 _flag_k = FK_ADD; 2122 esi = POP32_VAL(esp); /* 0x4703E806: pop esi */ 2123 MEM32(ebx + 0x1C) = ecx; /* 0x4703E807: mov dword ptr [ebx + 0x1c], ecx */ 2124 ebx = POP32_VAL(esp); /* 0x4703E80A: pop ebx */ 2125 ecx = POP32_VAL(esp); /* 0x4703E80B: pop ecx */ 2126 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4703E80C: ret 0x10 */ 2127 RECOMP_REGS_OUT(); 2128 } 2129 2130 void sub_4703E810(void) { 2131 int _fpu_cmp = 0; 2132 uint32_t _cf = 0; 2133 int _df = 1; 2134 uint32_t _flag_k = FK_NONE; 2135 uint32_t _flag_a = 0, _flag_b = 0; 2136 uint32_t _itail_tgt = 0; 2137 RECOMP_REGS_LOCALS 2138 RECOMP_ENTER(0x4703E810u); 2139 2140 L_4703E810: 2141 PUSH32(esp, ecx); /* 0x4703E810: push ecx */ 2142 PUSH32(esp, ebx); /* 0x4703E811: push ebx */ 2143 ebx = ecx; /* 0x4703E812: mov ebx, ecx */ 2144 ecx = MEM32(ebx + 0x18); /* 0x4703E814: mov ecx, dword ptr [ebx + 0x18] */ 2145 edx = MEM32(ebx + 0x1C); /* 0x4703E817: mov edx, dword ptr [ebx + 0x1c] */ 2146 eax = ecx; /* 0x4703E81A: mov eax, ecx */ 2147 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2148 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2149 eax = eax - edx; /* 0x4703E81C: sub eax, edx */ 2150 _flag_k = FK_CMP; 2151 PUSH32(esp, esi); /* 0x4703E81E: push esi */ 2152 PUSH32(esp, edi); /* 0x4703E81F: push edi */ 2153 if (/* sub result */ CMP_NE(_flag_a, _flag_b)) goto L_4703E904; /* 0x4703E820: jne 0x4703e904 */ 2154 L_4703E826: 2155 /* cmp ecx, edx */ /* 0x4703E826: cmp ecx, edx */ 2156 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2157 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2158 _flag_k = FK_CMP; 2159 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703E88A; /* 0x4703E828: je 0x4703e88a */ 2160 L_4703E82A: 2161 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4703E82A: call dword ptr [0x470ac150] */ 2162 RECOMP_FLAGS_IN(); 2163 edi = eax; /* 0x4703E830: mov edi, eax */ 2164 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4703E832: call dword ptr [0x470ac3c8] */ 2165 RECOMP_FLAGS_IN(); 2166 eax = MEM32(eax); /* 0x4703E838: mov eax, dword ptr [eax] */ 2167 /* test eax, eax */ /* 0x4703E83A: test eax, eax */ 2168 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2169 _cf = 0; 2170 _flag_k = FK_TEST; 2171 if (TEST_Z(_flag_a, _flag_b)) goto L_4703E840; /* 0x4703E83C: je 0x4703e840 */ 2172 L_4703E83E: 2173 edi = eax; /* 0x4703E83E: mov edi, eax */ 2174 L_4703E840: 2175 RECOMP_ICALL(0x47039020u); /* 0x4703E840: call 0x47039020 */ /* not lifted */ 2176 RECOMP_FLAGS_IN(); 2177 esi = eax; /* 0x4703E845: mov esi, eax */ 2178 ecx = esi; /* 0x4703E847: mov ecx, esi */ 2179 RECOMP_ICALL(0x4703B210u); /* 0x4703E849: call 0x4703b210 */ /* not lifted */ 2180 RECOMP_FLAGS_IN(); 2181 PUSH32(esp, eax); /* 0x4703E84E: push eax */ 2182 ecx = esi; /* 0x4703E84F: mov ecx, esi */ 2183 RECOMP_ICALL(0x4703B240u); /* 0x4703E851: call 0x4703b240 */ /* not lifted */ 2184 RECOMP_FLAGS_IN(); 2185 PUSH32(esp, eax); /* 0x4703E856: push eax */ 2186 ecx = esi; /* 0x4703E857: mov ecx, esi */ 2187 RECOMP_ICALL(0x4703B080u); /* 0x4703E859: call 0x4703b080 */ /* not lifted */ 2188 RECOMP_FLAGS_IN(); 2189 PUSH32(esp, eax); /* 0x4703E85E: push eax */ 2190 PUSH32(esp, edi); /* 0x4703E85F: push edi */ 2191 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703E860: push -1 */ 2192 PUSH32(esp, 0x16u); /* 0x4703E862: push 0x16 */ 2193 PUSH32(esp, 0x47107D14u); /* 0x4703E864: push 0x47107d14 */ 2194 ecx = esi; /* 0x4703E869: mov ecx, esi */ 2195 RECOMP_ICALL(0x4703A340u); /* 0x4703E86B: call 0x4703a340 */ /* not lifted */ 2196 RECOMP_FLAGS_IN(); 2197 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703E870: push -1 */ 2198 PUSH32(esp, 0x47107CECu); /* 0x4703E872: push 0x47107cec */ 2199 PUSH32(esp, 0x47104AA4u); /* 0x4703E877: push 0x47104aa4 */ 2200 PUSH32(esp, 0x80u); /* 0x4703E87C: push 0x80 */ 2201 PUSH32(esp, esi); /* 0x4703E881: push esi */ 2202 RECOMP_ICALL(0x47039830u); /* 0x4703E882: call 0x47039830 */ /* not lifted */ 2203 RECOMP_FLAGS_IN(); 2204 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2205 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2206 esp = esp + 0x14u; /* 0x4703E887: add esp, 0x14 */ 2207 _flag_k = FK_ADD; 2208 L_4703E88A: 2209 eax = MEM32(ebx + 0x14); /* 0x4703E88A: mov eax, dword ptr [ebx + 0x14] */ 2210 /* test eax, eax */ /* 0x4703E88D: test eax, eax */ 2211 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2212 _cf = 0; 2213 _flag_k = FK_TEST; 2214 esi = ebx + 0x14; /* 0x4703E88F: lea esi, [ebx + 0x14] */ 2215 if (TEST_Z(_flag_a, _flag_b)) goto L_4703E8A4; /* 0x4703E892: je 0x4703e8a4 */ 2216 L_4703E894: 2217 ecx = MEM32(ebx + 0x10); /* 0x4703E894: mov ecx, dword ptr [ebx + 0x10] */ 2218 /* test ecx, ecx */ /* 0x4703E897: test ecx, ecx */ 2219 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2220 _cf = 0; 2221 _flag_k = FK_TEST; 2222 if (TEST_Z(_flag_a, _flag_b)) goto L_4703E8A4; /* 0x4703E899: je 0x4703e8a4 */ 2223 L_4703E89B: 2224 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFCu); 2225 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2226 eax = eax + 0xFFFFFFFCu; /* 0x4703E89B: add eax, -4 */ 2227 _flag_k = FK_ADD; 2228 PUSH32(esp, eax); /* 0x4703E89E: push eax */ 2229 RECOMP_ICALL(0x4703FE50u); /* 0x4703E89F: call 0x4703fe50 */ /* not lifted */ 2230 RECOMP_FLAGS_IN(); 2231 L_4703E8A4: 2232 eax = MEM32(ebx); /* 0x4703E8A4: mov eax, dword ptr [ebx] */ 2233 PUSH32(esp, 0); /* 0x4703E8A6: push 0 */ 2234 PUSH32(esp, 0); /* 0x4703E8A8: push 0 */ 2235 PUSH32(esp, 4); /* 0x4703E8AA: push 4 */ 2236 ecx = esp + 0x18; /* 0x4703E8AC: lea ecx, [esp + 0x18] */ 2237 PUSH32(esp, ecx); /* 0x4703E8B0: push ecx */ 2238 PUSH32(esp, eax); /* 0x4703E8B1: push eax */ 2239 MEM32(ebx + 0x1C) = 0; /* 0x4703E8B2: mov dword ptr [ebx + 0x1c], 0 */ 2240 MEM32(esp + 0x20) = 0; /* 0x4703E8B9: mov dword ptr [esp + 0x20], 0 */ 2241 RECOMP_ICALL(0x4700BD90u); /* 0x4703E8C1: call 0x4700bd90 */ /* not lifted */ 2242 RECOMP_FLAGS_IN(); 2243 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2244 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2245 esp = esp + 0x14u; /* 0x4703E8C6: add esp, 0x14 */ 2246 _flag_k = FK_ADD; 2247 /* cmp eax, 4 */ /* 0x4703E8C9: cmp eax, 4 */ 2248 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2249 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2250 _flag_k = FK_CMP; 2251 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703E8E5; /* 0x4703E8CC: je 0x4703e8e5 */ 2252 L_4703E8CE: 2253 edi = POP32_VAL(esp); /* 0x4703E8CE: pop edi */ 2254 MEM32(esi) = 0; /* 0x4703E8CF: mov dword ptr [esi], 0 */ 2255 esi = POP32_VAL(esp); /* 0x4703E8D5: pop esi */ 2256 MEM32(ebx + 0x18) = 0; /* 0x4703E8D6: mov dword ptr [ebx + 0x18], 0 */ 2257 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2258 eax = eax | 0xFFFFFFFFu; /* 0x4703E8DD: or eax, 0xffffffff */ 2259 _cf = 0; 2260 _flag_k = FK_TEST; 2261 ebx = POP32_VAL(esp); /* 0x4703E8E0: pop ebx */ 2262 ecx = POP32_VAL(esp); /* 0x4703E8E1: pop ecx */ 2263 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4703E8E2: ret 8 */ 2264 L_4703E8E5: 2265 edx = MEM32(esp + 0xC); /* 0x4703E8E5: mov edx, dword ptr [esp + 0xc] */ 2266 PUSH32(esp, esi); /* 0x4703E8E9: push esi */ 2267 PUSH32(esp, edx); /* 0x4703E8EA: push edx */ 2268 ecx = ebx + 0x10; /* 0x4703E8EB: lea ecx, [ebx + 0x10] */ 2269 RECOMP_ICALL(0x4703E1B0u); /* 0x4703E8EE: call 0x4703e1b0 */ /* not lifted */ 2270 RECOMP_FLAGS_IN(); 2271 /* cmp eax, 0xFFFFFFFFu */ /* 0x4703E8F3: cmp eax, -1 */ 2272 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 2273 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2274 _flag_k = FK_CMP; 2275 MEM32(ebx + 0x18) = eax; /* 0x4703E8F6: mov dword ptr [ebx + 0x18], eax */ 2276 if (CMP_NE(_flag_a, _flag_b)) goto L_4703E904; /* 0x4703E8F9: jne 0x4703e904 */ 2277 L_4703E8FB: 2278 edi = POP32_VAL(esp); /* 0x4703E8FB: pop edi */ 2279 esi = POP32_VAL(esp); /* 0x4703E8FC: pop esi */ 2280 _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax)); 2281 eax = eax | eax; /* 0x4703E8FD: or eax, eax */ 2282 _cf = 0; 2283 _flag_k = FK_TEST; 2284 ebx = POP32_VAL(esp); /* 0x4703E8FF: pop ebx */ 2285 ecx = POP32_VAL(esp); /* 0x4703E900: pop ecx */ 2286 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4703E901: ret 8 */ 2287 L_4703E904: 2288 ecx = MEM32(esp + 0x18); /* 0x4703E904: mov ecx, dword ptr [esp + 0x18] */ 2289 /* cmp ecx, eax */ /* 0x4703E908: cmp ecx, eax */ 2290 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2291 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2292 _flag_k = FK_CMP; 2293 if (CMP_A(_flag_a, _flag_b)) goto L_4703E90E; /* 0x4703E90A: ja 0x4703e90e */ 2294 L_4703E90C: 2295 eax = ecx; /* 0x4703E90C: mov eax, ecx */ 2296 L_4703E90E: 2297 edx = MEM32(ebx + 0x1C); /* 0x4703E90E: mov edx, dword ptr [ebx + 0x1c] */ 2298 esi = MEM32(ebx + 0x14); /* 0x4703E911: mov esi, dword ptr [ebx + 0x14] */ 2299 edi = MEM32(esp + 0x14); /* 0x4703E914: mov edi, dword ptr [esp + 0x14] */ 2300 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 2301 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2302 esi = esi + edx; /* 0x4703E918: add esi, edx */ 2303 _flag_k = FK_ADD; 2304 ecx = eax; /* 0x4703E91A: mov ecx, eax */ 2305 edx = ecx; /* 0x4703E91C: mov edx, ecx */ 2306 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4703E91E: shr ecx, 2 */ 2307 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2308 ecx = ecx >> 2u; /* 0x4703E91E: shr ecx, 2 */ 2309 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4703E921: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 2310 ecx = edx; /* 0x4703E923: mov ecx, edx */ 2311 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 2312 ecx = ecx & 3; /* 0x4703E925: and ecx, 3 */ 2313 _cf = 0; 2314 _flag_k = FK_TEST; 2315 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4703E928: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 2316 ecx = MEM32(ebx + 0x1C); /* 0x4703E92A: mov ecx, dword ptr [ebx + 0x1c] */ 2317 edi = POP32_VAL(esp); /* 0x4703E92D: pop edi */ 2318 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2319 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2320 ecx = ecx + eax; /* 0x4703E92E: add ecx, eax */ 2321 _flag_k = FK_ADD; 2322 esi = POP32_VAL(esp); /* 0x4703E930: pop esi */ 2323 MEM32(ebx + 0x1C) = ecx; /* 0x4703E931: mov dword ptr [ebx + 0x1c], ecx */ 2324 ebx = POP32_VAL(esp); /* 0x4703E934: pop ebx */ 2325 ecx = POP32_VAL(esp); /* 0x4703E935: pop ecx */ 2326 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4703E936: ret 8 */ 2327 RECOMP_REGS_OUT(); 2328 } 2329 2330 void sub_4703E940(void) { 2331 int _fpu_cmp = 0; 2332 uint32_t _cf = 0; 2333 int _df = 1; 2334 uint32_t _flag_k = FK_NONE; 2335 uint32_t _flag_a = 0, _flag_b = 0; 2336 uint32_t _itail_tgt = 0; 2337 RECOMP_REGS_LOCALS 2338 RECOMP_ENTER(0x4703E940u); 2339 2340 L_4703E940: 2341 PUSH32(esp, ecx); /* 0x4703E940: push ecx */ 2342 PUSH32(esp, ebx); /* 0x4703E941: push ebx */ 2343 ebx = ecx; /* 0x4703E942: mov ebx, ecx */ 2344 ecx = MEM32(ebx + 0x18); /* 0x4703E944: mov ecx, dword ptr [ebx + 0x18] */ 2345 edx = MEM32(ebx + 0x1C); /* 0x4703E947: mov edx, dword ptr [ebx + 0x1c] */ 2346 eax = ecx; /* 0x4703E94A: mov eax, ecx */ 2347 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2348 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2349 eax = eax - edx; /* 0x4703E94C: sub eax, edx */ 2350 _flag_k = FK_CMP; 2351 PUSH32(esp, esi); /* 0x4703E94E: push esi */ 2352 PUSH32(esp, edi); /* 0x4703E94F: push edi */ 2353 if (/* sub result */ CMP_NE(_flag_a, _flag_b)) goto L_4703EA37; /* 0x4703E950: jne 0x4703ea37 */ 2354 L_4703E956: 2355 /* cmp ecx, edx */ /* 0x4703E956: cmp ecx, edx */ 2356 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2357 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2358 _flag_k = FK_CMP; 2359 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703E9BA; /* 0x4703E958: je 0x4703e9ba */ 2360 L_4703E95A: 2361 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4703E95A: call dword ptr [0x470ac150] */ 2362 RECOMP_FLAGS_IN(); 2363 edi = eax; /* 0x4703E960: mov edi, eax */ 2364 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4703E962: call dword ptr [0x470ac3c8] */ 2365 RECOMP_FLAGS_IN(); 2366 eax = MEM32(eax); /* 0x4703E968: mov eax, dword ptr [eax] */ 2367 /* test eax, eax */ /* 0x4703E96A: test eax, eax */ 2368 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2369 _cf = 0; 2370 _flag_k = FK_TEST; 2371 if (TEST_Z(_flag_a, _flag_b)) goto L_4703E970; /* 0x4703E96C: je 0x4703e970 */ 2372 L_4703E96E: 2373 edi = eax; /* 0x4703E96E: mov edi, eax */ 2374 L_4703E970: 2375 RECOMP_ICALL(0x47039020u); /* 0x4703E970: call 0x47039020 */ /* not lifted */ 2376 RECOMP_FLAGS_IN(); 2377 esi = eax; /* 0x4703E975: mov esi, eax */ 2378 ecx = esi; /* 0x4703E977: mov ecx, esi */ 2379 RECOMP_ICALL(0x4703B210u); /* 0x4703E979: call 0x4703b210 */ /* not lifted */ 2380 RECOMP_FLAGS_IN(); 2381 PUSH32(esp, eax); /* 0x4703E97E: push eax */ 2382 ecx = esi; /* 0x4703E97F: mov ecx, esi */ 2383 RECOMP_ICALL(0x4703B240u); /* 0x4703E981: call 0x4703b240 */ /* not lifted */ 2384 RECOMP_FLAGS_IN(); 2385 PUSH32(esp, eax); /* 0x4703E986: push eax */ 2386 ecx = esi; /* 0x4703E987: mov ecx, esi */ 2387 RECOMP_ICALL(0x4703B080u); /* 0x4703E989: call 0x4703b080 */ /* not lifted */ 2388 RECOMP_FLAGS_IN(); 2389 PUSH32(esp, eax); /* 0x4703E98E: push eax */ 2390 PUSH32(esp, edi); /* 0x4703E98F: push edi */ 2391 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703E990: push -1 */ 2392 PUSH32(esp, 0x16u); /* 0x4703E992: push 0x16 */ 2393 PUSH32(esp, 0x47107D14u); /* 0x4703E994: push 0x47107d14 */ 2394 ecx = esi; /* 0x4703E999: mov ecx, esi */ 2395 RECOMP_ICALL(0x4703A340u); /* 0x4703E99B: call 0x4703a340 */ /* not lifted */ 2396 RECOMP_FLAGS_IN(); 2397 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703E9A0: push -1 */ 2398 PUSH32(esp, 0x47107CECu); /* 0x4703E9A2: push 0x47107cec */ 2399 PUSH32(esp, 0x47104AA4u); /* 0x4703E9A7: push 0x47104aa4 */ 2400 PUSH32(esp, 0x80u); /* 0x4703E9AC: push 0x80 */ 2401 PUSH32(esp, esi); /* 0x4703E9B1: push esi */ 2402 RECOMP_ICALL(0x47039830u); /* 0x4703E9B2: call 0x47039830 */ /* not lifted */ 2403 RECOMP_FLAGS_IN(); 2404 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2405 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2406 esp = esp + 0x14u; /* 0x4703E9B7: add esp, 0x14 */ 2407 _flag_k = FK_ADD; 2408 L_4703E9BA: 2409 eax = MEM32(ebx + 0x14); /* 0x4703E9BA: mov eax, dword ptr [ebx + 0x14] */ 2410 /* test eax, eax */ /* 0x4703E9BD: test eax, eax */ 2411 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2412 _cf = 0; 2413 _flag_k = FK_TEST; 2414 esi = ebx + 0x14; /* 0x4703E9BF: lea esi, [ebx + 0x14] */ 2415 if (TEST_Z(_flag_a, _flag_b)) goto L_4703E9D4; /* 0x4703E9C2: je 0x4703e9d4 */ 2416 L_4703E9C4: 2417 ecx = MEM32(ebx + 0x10); /* 0x4703E9C4: mov ecx, dword ptr [ebx + 0x10] */ 2418 /* test ecx, ecx */ /* 0x4703E9C7: test ecx, ecx */ 2419 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2420 _cf = 0; 2421 _flag_k = FK_TEST; 2422 if (TEST_Z(_flag_a, _flag_b)) goto L_4703E9D4; /* 0x4703E9C9: je 0x4703e9d4 */ 2423 L_4703E9CB: 2424 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFCu); 2425 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2426 eax = eax + 0xFFFFFFFCu; /* 0x4703E9CB: add eax, -4 */ 2427 _flag_k = FK_ADD; 2428 PUSH32(esp, eax); /* 0x4703E9CE: push eax */ 2429 RECOMP_ICALL(0x4703FE50u); /* 0x4703E9CF: call 0x4703fe50 */ /* not lifted */ 2430 RECOMP_FLAGS_IN(); 2431 L_4703E9D4: 2432 ecx = MEM32(esp + 0x1C); /* 0x4703E9D4: mov ecx, dword ptr [esp + 0x1c] */ 2433 eax = MEM32(ebx); /* 0x4703E9D8: mov eax, dword ptr [ebx] */ 2434 PUSH32(esp, ecx); /* 0x4703E9DA: push ecx */ 2435 PUSH32(esp, 0); /* 0x4703E9DB: push 0 */ 2436 PUSH32(esp, 4); /* 0x4703E9DD: push 4 */ 2437 edx = esp + 0x18; /* 0x4703E9DF: lea edx, [esp + 0x18] */ 2438 PUSH32(esp, edx); /* 0x4703E9E3: push edx */ 2439 PUSH32(esp, eax); /* 0x4703E9E4: push eax */ 2440 MEM32(ebx + 0x1C) = 0; /* 0x4703E9E5: mov dword ptr [ebx + 0x1c], 0 */ 2441 MEM32(esp + 0x20) = 0; /* 0x4703E9EC: mov dword ptr [esp + 0x20], 0 */ 2442 RECOMP_ICALL(0x4700BD90u); /* 0x4703E9F4: call 0x4700bd90 */ /* not lifted */ 2443 RECOMP_FLAGS_IN(); 2444 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2445 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2446 esp = esp + 0x14u; /* 0x4703E9F9: add esp, 0x14 */ 2447 _flag_k = FK_ADD; 2448 /* cmp eax, 4 */ /* 0x4703E9FC: cmp eax, 4 */ 2449 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2450 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2451 _flag_k = FK_CMP; 2452 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703EA18; /* 0x4703E9FF: je 0x4703ea18 */ 2453 L_4703EA01: 2454 edi = POP32_VAL(esp); /* 0x4703EA01: pop edi */ 2455 MEM32(esi) = 0; /* 0x4703EA02: mov dword ptr [esi], 0 */ 2456 esi = POP32_VAL(esp); /* 0x4703EA08: pop esi */ 2457 MEM32(ebx + 0x18) = 0; /* 0x4703EA09: mov dword ptr [ebx + 0x18], 0 */ 2458 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2459 eax = eax | 0xFFFFFFFFu; /* 0x4703EA10: or eax, 0xffffffff */ 2460 _cf = 0; 2461 _flag_k = FK_TEST; 2462 ebx = POP32_VAL(esp); /* 0x4703EA13: pop ebx */ 2463 ecx = POP32_VAL(esp); /* 0x4703EA14: pop ecx */ 2464 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4703EA15: ret 0xc */ 2465 L_4703EA18: 2466 eax = MEM32(esp + 0xC); /* 0x4703EA18: mov eax, dword ptr [esp + 0xc] */ 2467 PUSH32(esp, esi); /* 0x4703EA1C: push esi */ 2468 PUSH32(esp, eax); /* 0x4703EA1D: push eax */ 2469 ecx = ebx + 0x10; /* 0x4703EA1E: lea ecx, [ebx + 0x10] */ 2470 RECOMP_ICALL(0x4703E1B0u); /* 0x4703EA21: call 0x4703e1b0 */ /* not lifted */ 2471 RECOMP_FLAGS_IN(); 2472 /* cmp eax, 0xFFFFFFFFu */ /* 0x4703EA26: cmp eax, -1 */ 2473 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 2474 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2475 _flag_k = FK_CMP; 2476 MEM32(ebx + 0x18) = eax; /* 0x4703EA29: mov dword ptr [ebx + 0x18], eax */ 2477 if (CMP_NE(_flag_a, _flag_b)) goto L_4703EA37; /* 0x4703EA2C: jne 0x4703ea37 */ 2478 L_4703EA2E: 2479 edi = POP32_VAL(esp); /* 0x4703EA2E: pop edi */ 2480 esi = POP32_VAL(esp); /* 0x4703EA2F: pop esi */ 2481 _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax)); 2482 eax = eax | eax; /* 0x4703EA30: or eax, eax */ 2483 _cf = 0; 2484 _flag_k = FK_TEST; 2485 ebx = POP32_VAL(esp); /* 0x4703EA32: pop ebx */ 2486 ecx = POP32_VAL(esp); /* 0x4703EA33: pop ecx */ 2487 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4703EA34: ret 0xc */ 2488 L_4703EA37: 2489 ecx = MEM32(esp + 0x18); /* 0x4703EA37: mov ecx, dword ptr [esp + 0x18] */ 2490 /* cmp ecx, eax */ /* 0x4703EA3B: cmp ecx, eax */ 2491 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2492 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2493 _flag_k = FK_CMP; 2494 if (CMP_A(_flag_a, _flag_b)) goto L_4703EA41; /* 0x4703EA3D: ja 0x4703ea41 */ 2495 L_4703EA3F: 2496 eax = ecx; /* 0x4703EA3F: mov eax, ecx */ 2497 L_4703EA41: 2498 edx = MEM32(ebx + 0x1C); /* 0x4703EA41: mov edx, dword ptr [ebx + 0x1c] */ 2499 esi = MEM32(ebx + 0x14); /* 0x4703EA44: mov esi, dword ptr [ebx + 0x14] */ 2500 edi = MEM32(esp + 0x14); /* 0x4703EA47: mov edi, dword ptr [esp + 0x14] */ 2501 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 2502 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2503 esi = esi + edx; /* 0x4703EA4B: add esi, edx */ 2504 _flag_k = FK_ADD; 2505 ecx = eax; /* 0x4703EA4D: mov ecx, eax */ 2506 edx = ecx; /* 0x4703EA4F: mov edx, ecx */ 2507 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4703EA51: shr ecx, 2 */ 2508 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2509 ecx = ecx >> 2u; /* 0x4703EA51: shr ecx, 2 */ 2510 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4703EA54: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 2511 ecx = edx; /* 0x4703EA56: mov ecx, edx */ 2512 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 2513 ecx = ecx & 3; /* 0x4703EA58: and ecx, 3 */ 2514 _cf = 0; 2515 _flag_k = FK_TEST; 2516 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4703EA5B: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 2517 ecx = MEM32(ebx + 0x1C); /* 0x4703EA5D: mov ecx, dword ptr [ebx + 0x1c] */ 2518 edi = POP32_VAL(esp); /* 0x4703EA60: pop edi */ 2519 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2520 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2521 ecx = ecx + eax; /* 0x4703EA61: add ecx, eax */ 2522 _flag_k = FK_ADD; 2523 esi = POP32_VAL(esp); /* 0x4703EA63: pop esi */ 2524 MEM32(ebx + 0x1C) = ecx; /* 0x4703EA64: mov dword ptr [ebx + 0x1c], ecx */ 2525 ebx = POP32_VAL(esp); /* 0x4703EA67: pop ebx */ 2526 ecx = POP32_VAL(esp); /* 0x4703EA68: pop ecx */ 2527 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4703EA69: ret 0xc */ 2528 RECOMP_REGS_OUT(); 2529 } 2530 2531 void sub_4703EA70(void) { 2532 int _fpu_cmp = 0; 2533 uint32_t _cf = 0; 2534 int _df = 1; 2535 uint32_t _flag_k = FK_NONE; 2536 uint32_t _flag_a = 0, _flag_b = 0; 2537 uint32_t _itail_tgt = 0; 2538 RECOMP_REGS_LOCALS 2539 RECOMP_ENTER(0x4703EA70u); 2540 2541 L_4703EA70: 2542 PUSH32(esp, ecx); /* 0x4703EA70: push ecx */ 2543 PUSH32(esp, ebx); /* 0x4703EA71: push ebx */ 2544 ebx = ecx; /* 0x4703EA72: mov ebx, ecx */ 2545 ecx = MEM32(ebx + 0x10); /* 0x4703EA74: mov ecx, dword ptr [ebx + 0x10] */ 2546 /* test ecx, ecx */ /* 0x4703EA77: test ecx, ecx */ 2547 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2548 _cf = 0; 2549 _flag_k = FK_TEST; 2550 PUSH32(esp, ebp); /* 0x4703EA79: push ebp */ 2551 if (TEST_Z(_flag_a, _flag_b)) goto L_4703EA96; /* 0x4703EA7A: je 0x4703ea96 */ 2552 L_4703EA7C: 2553 ebp = MEM32(esp + 0x14); /* 0x4703EA7C: mov ebp, dword ptr [esp + 0x14] */ 2554 eax = ebp + 0x4; /* 0x4703EA80: lea eax, [ebp + 4] */ 2555 PUSH32(esp, eax); /* 0x4703EA83: push eax */ 2556 RECOMP_ICALL(0x4703FD60u); /* 0x4703EA84: call 0x4703fd60 */ /* not lifted */ 2557 RECOMP_FLAGS_IN(); 2558 MEM32(eax) = ebp; /* 0x4703EA89: mov dword ptr [eax], ebp */ 2559 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2560 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2561 eax = eax + 4; /* 0x4703EA8B: add eax, 4 */ 2562 _flag_k = FK_ADD; 2563 /* test eax, eax */ /* 0x4703EA8E: test eax, eax */ 2564 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2565 _cf = 0; 2566 _flag_k = FK_TEST; 2567 MEM32(esp + 0x8) = eax; /* 0x4703EA90: mov dword ptr [esp + 8], eax */ 2568 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703EA9F; /* 0x4703EA94: jne 0x4703ea9f */ 2569 L_4703EA96: 2570 ebp = POP32_VAL(esp); /* 0x4703EA96: pop ebp */ 2571 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2572 eax = eax | 0xFFFFFFFFu; /* 0x4703EA97: or eax, 0xffffffff */ 2573 _cf = 0; 2574 _flag_k = FK_TEST; 2575 ebx = POP32_VAL(esp); /* 0x4703EA9A: pop ebx */ 2576 ecx = POP32_VAL(esp); /* 0x4703EA9B: pop ecx */ 2577 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4703EA9C: ret 0xc */ 2578 L_4703EA9F: 2579 PUSH32(esp, esi); /* 0x4703EA9F: push esi */ 2580 esi = MEM32(esp + 0x14); /* 0x4703EAA0: mov esi, dword ptr [esp + 0x14] */ 2581 ecx = ebp; /* 0x4703EAA4: mov ecx, ebp */ 2582 edx = ecx; /* 0x4703EAA6: mov edx, ecx */ 2583 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4703EAA8: shr ecx, 2 */ 2584 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2585 ecx = ecx >> 2u; /* 0x4703EAA8: shr ecx, 2 */ 2586 PUSH32(esp, edi); /* 0x4703EAAB: push edi */ 2587 edi = eax; /* 0x4703EAAC: mov edi, eax */ 2588 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4703EAAE: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 2589 ecx = edx; /* 0x4703EAB0: mov ecx, edx */ 2590 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 2591 ecx = ecx & 3; /* 0x4703EAB2: and ecx, 3 */ 2592 _cf = 0; 2593 _flag_k = FK_TEST; 2594 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4703EAB5: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 2595 ecx = MEM32(ebx + 0x10); /* 0x4703EAB7: mov ecx, dword ptr [ebx + 0x10] */ 2596 /* test ecx, ecx */ /* 0x4703EABA: test ecx, ecx */ 2597 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2598 _cf = 0; 2599 _flag_k = FK_TEST; 2600 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703EAC3; /* 0x4703EABC: jne 0x4703eac3 */ 2601 L_4703EABE: 2602 _flag_a = (uint32_t)((esi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((esi | 0xFFFFFFFFu)); 2603 esi = esi | 0xFFFFFFFFu; /* 0x4703EABE: or esi, 0xffffffff */ 2604 _cf = 0; 2605 _flag_k = FK_TEST; 2606 goto L_4703EADA; /* 0x4703EAC1: jmp 0x4703eada */ 2607 L_4703EAC3: 2608 esi = eax + (-0x4); /* 0x4703EAC3: lea esi, [eax - 4] */ 2609 /* cmp MEM32(esi), ebp */ /* 0x4703EAC6: cmp dword ptr [esi], ebp */ 2610 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(ebp); 2611 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2612 _flag_k = FK_CMP; 2613 if (CMP_B(_flag_a, _flag_b)) goto L_4703EACC; /* 0x4703EAC8: jb 0x4703eacc */ 2614 L_4703EACA: 2615 MEM32(esi) = ebp; /* 0x4703EACA: mov dword ptr [esi], ebp */ 2616 L_4703EACC: 2617 ecx = MEM32(ebx + 0x10); /* 0x4703EACC: mov ecx, dword ptr [ebx + 0x10] */ 2618 eax = MEM32(ecx + 0x4); /* 0x4703EACF: mov eax, dword ptr [ecx + 4] */ 2619 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 2620 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2621 ecx = ecx + 4; /* 0x4703EAD2: add ecx, 4 */ 2622 _flag_k = FK_ADD; 2623 RECOMP_ICALL(MEM32(eax + 0x64)); /* 0x4703EAD5: call dword ptr [eax + 0x64] */ 2624 RECOMP_FLAGS_IN(); 2625 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 2626 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2627 esi = esi - eax; /* 0x4703EAD8: sub esi, eax */ 2628 _flag_k = FK_CMP; 2629 L_4703EADA: 2630 ecx = MEM32(esp + 0x20); /* 0x4703EADA: mov ecx, dword ptr [esp + 0x20] */ 2631 eax = MEM32(ebx); /* 0x4703EADE: mov eax, dword ptr [ebx] */ 2632 PUSH32(esp, ecx); /* 0x4703EAE0: push ecx */ 2633 PUSH32(esp, 0); /* 0x4703EAE1: push 0 */ 2634 PUSH32(esp, 4); /* 0x4703EAE3: push 4 */ 2635 edx = esp + 0x28; /* 0x4703EAE5: lea edx, [esp + 0x28] */ 2636 PUSH32(esp, edx); /* 0x4703EAE9: push edx */ 2637 PUSH32(esp, eax); /* 0x4703EAEA: push eax */ 2638 MEM32(esp + 0x30) = esi; /* 0x4703EAEB: mov dword ptr [esp + 0x30], esi */ 2639 RECOMP_ICALL(0x4700CDC0u); /* 0x4703EAEF: call 0x4700cdc0 */ /* not lifted */ 2640 RECOMP_FLAGS_IN(); 2641 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2642 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2643 esp = esp + 0x14u; /* 0x4703EAF4: add esp, 0x14 */ 2644 _flag_k = FK_ADD; 2645 /* cmp eax, 4 */ /* 0x4703EAF7: cmp eax, 4 */ 2646 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2647 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2648 _flag_k = FK_CMP; 2649 edi = POP32_VAL(esp); /* 0x4703EAFA: pop edi */ 2650 esi = POP32_VAL(esp); /* 0x4703EAFB: pop esi */ 2651 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703EB1D; /* 0x4703EAFC: je 0x4703eb1d */ 2652 L_4703EAFE: 2653 ebx = MEM32(ebx + 0x10); /* 0x4703EAFE: mov ebx, dword ptr [ebx + 0x10] */ 2654 /* test ebx, ebx */ /* 0x4703EB01: test ebx, ebx */ 2655 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 2656 _cf = 0; 2657 _flag_k = FK_TEST; 2658 if (TEST_Z(_flag_a, _flag_b)) goto L_4703EB14; /* 0x4703EB03: je 0x4703eb14 */ 2659 L_4703EB05: 2660 eax = MEM32(esp + 0x8); /* 0x4703EB05: mov eax, dword ptr [esp + 8] */ 2661 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFCu); 2662 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2663 eax = eax + 0xFFFFFFFCu; /* 0x4703EB09: add eax, -4 */ 2664 _flag_k = FK_ADD; 2665 PUSH32(esp, eax); /* 0x4703EB0C: push eax */ 2666 ecx = ebx; /* 0x4703EB0D: mov ecx, ebx */ 2667 RECOMP_ICALL(0x4703FE50u); /* 0x4703EB0F: call 0x4703fe50 */ /* not lifted */ 2668 RECOMP_FLAGS_IN(); 2669 L_4703EB14: 2670 ebp = POP32_VAL(esp); /* 0x4703EB14: pop ebp */ 2671 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2672 eax = eax | 0xFFFFFFFFu; /* 0x4703EB15: or eax, 0xffffffff */ 2673 _cf = 0; 2674 _flag_k = FK_TEST; 2675 ebx = POP32_VAL(esp); /* 0x4703EB18: pop ebx */ 2676 ecx = POP32_VAL(esp); /* 0x4703EB19: pop ecx */ 2677 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4703EB1A: ret 0xc */ 2678 L_4703EB1D: 2679 eax = ebp; /* 0x4703EB1D: mov eax, ebp */ 2680 ebp = POP32_VAL(esp); /* 0x4703EB1F: pop ebp */ 2681 ebx = POP32_VAL(esp); /* 0x4703EB20: pop ebx */ 2682 ecx = POP32_VAL(esp); /* 0x4703EB21: pop ecx */ 2683 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4703EB22: ret 0xc */ 2684 RECOMP_REGS_OUT(); 2685 } 2686 2687 void sub_4703EB30(void) { 2688 int _fpu_cmp = 0; 2689 uint32_t _cf = 0; 2690 int _df = 1; 2691 uint32_t _flag_k = FK_NONE; 2692 uint32_t _flag_a = 0, _flag_b = 0; 2693 uint32_t _itail_tgt = 0; 2694 RECOMP_REGS_LOCALS 2695 RECOMP_ENTER(0x4703EB30u); 2696 2697 L_4703EB30: 2698 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703EB30: push -1 */ 2699 PUSH32(esp, 0x470A6188u); /* 0x4703EB32: push 0x470a6188 */ 2700 eax = MEM32(FS_BASE + (0)); /* 0x4703EB37: mov eax, dword ptr fs:[0] */ 2701 PUSH32(esp, eax); /* 0x4703EB3D: push eax */ 2702 MEM32(FS_BASE + (0)) = esp; /* 0x4703EB3E: mov dword ptr fs:[0], esp */ 2703 PUSH32(esp, ecx); /* 0x4703EB45: push ecx */ 2704 PUSH32(esp, ebx); /* 0x4703EB46: push ebx */ 2705 ebx = MEM32(esp + 0x18); /* 0x4703EB47: mov ebx, dword ptr [esp + 0x18] */ 2706 eax = MEM32(ebx); /* 0x4703EB4B: mov eax, dword ptr [ebx] */ 2707 PUSH32(esp, esi); /* 0x4703EB4D: push esi */ 2708 esi = ecx; /* 0x4703EB4E: mov esi, ecx */ 2709 MEM32(esp + 0x8) = esi; /* 0x4703EB50: mov dword ptr [esp + 8], esi */ 2710 MEM32(esi) = eax; /* 0x4703EB54: mov dword ptr [esi], eax */ 2711 MEM32(esi + 0x4) = 0; /* 0x4703EB56: mov dword ptr [esi + 4], 0 */ 2712 MEM32(esi + 0x8) = 0; /* 0x4703EB5D: mov dword ptr [esi + 8], 0 */ 2713 eax = MEM32(ebx + 0xC); /* 0x4703EB64: mov eax, dword ptr [ebx + 0xc] */ 2714 /* test eax, eax */ /* 0x4703EB67: test eax, eax */ 2715 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2716 _cf = 0; 2717 _flag_k = FK_TEST; 2718 MEM32(esp + 0x14) = 0; /* 0x4703EB69: mov dword ptr [esp + 0x14], 0 */ 2719 MEM32(esi + 0xC) = eax; /* 0x4703EB71: mov dword ptr [esi + 0xc], eax */ 2720 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703EB7E; /* 0x4703EB74: jne 0x4703eb7e */ 2721 L_4703EB76: 2722 RECOMP_ICALL(0x4703DAC0u); /* 0x4703EB76: call 0x4703dac0 */ /* not lifted */ 2723 RECOMP_FLAGS_IN(); 2724 MEM32(esi + 0xC) = eax; /* 0x4703EB7B: mov dword ptr [esi + 0xc], eax */ 2725 L_4703EB7E: 2726 ecx = MEM32(esi + 0xC); /* 0x4703EB7E: mov ecx, dword ptr [esi + 0xc] */ 2727 edx = MEM32(ecx); /* 0x4703EB81: mov edx, dword ptr [ecx] */ 2728 PUSH32(esp, edi); /* 0x4703EB83: push edi */ 2729 PUSH32(esp, 8); /* 0x4703EB84: push 8 */ 2730 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4703EB86: call dword ptr [edx + 4] */ 2731 RECOMP_FLAGS_IN(); 2732 /* test eax, eax */ /* 0x4703EB89: test eax, eax */ 2733 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2734 _cf = 0; 2735 _flag_k = FK_TEST; 2736 MEM32(esi + 0x4) = eax; /* 0x4703EB8B: mov dword ptr [esi + 4], eax */ 2737 if (TEST_Z(_flag_a, _flag_b)) goto L_4703EBC4; /* 0x4703EB8E: je 0x4703ebc4 */ 2738 L_4703EB90: 2739 MEM32(eax) = 0; /* 0x4703EB90: mov dword ptr [eax], 0 */ 2740 eax = MEM32(esi + 0x4); /* 0x4703EB96: mov eax, dword ptr [esi + 4] */ 2741 MEM32(eax) = eax; /* 0x4703EB99: mov dword ptr [eax], eax */ 2742 eax = MEM32(ebx + 0x4); /* 0x4703EB9B: mov eax, dword ptr [ebx + 4] */ 2743 edi = MEM32(eax); /* 0x4703EB9E: mov edi, dword ptr [eax] */ 2744 /* cmp edi, eax */ /* 0x4703EBA0: cmp edi, eax */ 2745 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2746 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2747 _flag_k = FK_CMP; 2748 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703EBF2; /* 0x4703EBA2: je 0x4703ebf2 */ 2749 L_4703EBA4: 2750 ecx = MEM32(edi + 0x4); /* 0x4703EBA4: mov ecx, dword ptr [edi + 4] */ 2751 eax = MEM32(esi + 0x4); /* 0x4703EBA7: mov eax, dword ptr [esi + 4] */ 2752 MEM32(eax + 0x4) = ecx; /* 0x4703EBAA: mov dword ptr [eax + 4], ecx */ 2753 ecx = MEM32(esi + 0xC); /* 0x4703EBAD: mov ecx, dword ptr [esi + 0xc] */ 2754 edx = MEM32(ecx); /* 0x4703EBB0: mov edx, dword ptr [ecx] */ 2755 PUSH32(esp, 8); /* 0x4703EBB2: push 8 */ 2756 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4703EBB4: call dword ptr [edx + 4] */ 2757 RECOMP_FLAGS_IN(); 2758 /* test eax, eax */ /* 0x4703EBB7: test eax, eax */ 2759 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2760 _cf = 0; 2761 _flag_k = FK_TEST; 2762 if (TEST_Z(_flag_a, _flag_b)) goto L_4703EBD2; /* 0x4703EBB9: je 0x4703ebd2 */ 2763 L_4703EBBB: 2764 ecx = MEM32(esi + 0x4); /* 0x4703EBBB: mov ecx, dword ptr [esi + 4] */ 2765 edx = MEM32(ecx); /* 0x4703EBBE: mov edx, dword ptr [ecx] */ 2766 MEM32(eax) = edx; /* 0x4703EBC0: mov dword ptr [eax], edx */ 2767 goto L_4703EBE0; /* 0x4703EBC2: jmp 0x4703ebe0 */ 2768 L_4703EBC4: 2769 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4703EBC4: call dword ptr [0x470ac3c8] */ 2770 RECOMP_FLAGS_IN(); 2771 MEM32(eax) = 0xCu; /* 0x4703EBCA: mov dword ptr [eax], 0xc */ 2772 goto L_4703EBF2; /* 0x4703EBD0: jmp 0x4703ebf2 */ 2773 L_4703EBD2: 2774 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4703EBD2: call dword ptr [0x470ac3c8] */ 2775 RECOMP_FLAGS_IN(); 2776 MEM32(eax) = 0xCu; /* 0x4703EBD8: mov dword ptr [eax], 0xc */ 2777 goto L_4703EBEB; /* 0x4703EBDE: jmp 0x4703ebeb */ 2778 L_4703EBE0: 2779 ecx = MEM32(esi + 0x4); /* 0x4703EBE0: mov ecx, dword ptr [esi + 4] */ 2780 MEM32(ecx) = eax; /* 0x4703EBE3: mov dword ptr [ecx], eax */ 2781 MEM32(esi + 0x4) = eax; /* 0x4703EBE5: mov dword ptr [esi + 4], eax */ 2782 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(1); 2783 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 1; /* 0x4703EBE8: inc dword ptr [esi + 8] */ 2784 _flag_k = FK_INC; 2785 L_4703EBEB: 2786 edi = MEM32(edi); /* 0x4703EBEB: mov edi, dword ptr [edi] */ 2787 /* cmp edi, MEM32(ebx + 0x4) */ /* 0x4703EBED: cmp edi, dword ptr [ebx + 4] */ 2788 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebx + 0x4)); 2789 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2790 _flag_k = FK_CMP; 2791 RECOMP_BACKEDGE(); 2792 if (CMP_NE(_flag_a, _flag_b)) goto L_4703EBA4; /* 0x4703EBF0: jne 0x4703eba4 */ 2793 L_4703EBF2: 2794 /* test ebx, ebx */ /* 0x4703EBF2: test ebx, ebx */ 2795 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 2796 _cf = 0; 2797 _flag_k = FK_TEST; 2798 edi = POP32_VAL(esp); /* 0x4703EBF4: pop edi */ 2799 if (TEST_Z(_flag_a, _flag_b)) goto L_4703EBFC; /* 0x4703EBF5: je 0x4703ebfc */ 2800 L_4703EBF7: 2801 eax = ebx + 0x10; /* 0x4703EBF7: lea eax, [ebx + 0x10] */ 2802 goto L_4703EBFE; /* 0x4703EBFA: jmp 0x4703ebfe */ 2803 L_4703EBFC: 2804 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2805 eax = 0; /* 0x4703EBFC: xor eax, eax */ 2806 _cf = 0; 2807 _flag_k = FK_TEST; 2808 L_4703EBFE: 2809 edx = MEM32(eax); /* 0x4703EBFE: mov edx, dword ptr [eax] */ 2810 MEM32(esi + 0x10) = edx; /* 0x4703EC00: mov dword ptr [esi + 0x10], edx */ 2811 eax = MEM32(ebx + 0x14); /* 0x4703EC03: mov eax, dword ptr [ebx + 0x14] */ 2812 MEM32(esi + 0x14) = eax; /* 0x4703EC06: mov dword ptr [esi + 0x14], eax */ 2813 ecx = MEM32(ebx + 0x18); /* 0x4703EC09: mov ecx, dword ptr [ebx + 0x18] */ 2814 MEM32(esi + 0x18) = ecx; /* 0x4703EC0C: mov dword ptr [esi + 0x18], ecx */ 2815 edx = MEM32(ebx + 0x1C); /* 0x4703EC0F: mov edx, dword ptr [ebx + 0x1c] */ 2816 ecx = MEM32(esp + 0xC); /* 0x4703EC12: mov ecx, dword ptr [esp + 0xc] */ 2817 MEM32(esi + 0x1C) = edx; /* 0x4703EC16: mov dword ptr [esi + 0x1c], edx */ 2818 eax = esi; /* 0x4703EC19: mov eax, esi */ 2819 esi = POP32_VAL(esp); /* 0x4703EC1B: pop esi */ 2820 ebx = POP32_VAL(esp); /* 0x4703EC1C: pop ebx */ 2821 MEM32(FS_BASE + (0)) = ecx; /* 0x4703EC1D: mov dword ptr fs:[0], ecx */ 2822 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2823 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2824 esp = esp + 0x10u; /* 0x4703EC24: add esp, 0x10 */ 2825 _flag_k = FK_ADD; 2826 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703EC27: ret 4 */ 2827 RECOMP_REGS_OUT(); 2828 } 2829 2830 void sub_4703EC30(void) { 2831 int _fpu_cmp = 0; 2832 uint32_t _cf = 0; 2833 int _df = 1; 2834 uint32_t _flag_k = FK_NONE; 2835 uint32_t _flag_a = 0, _flag_b = 0; 2836 uint32_t _itail_tgt = 0; 2837 RECOMP_REGS_LOCALS 2838 RECOMP_ENTER(0x4703EC30u); 2839 2840 L_4703EC30: 2841 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703EC30: push -1 */ 2842 PUSH32(esp, 0x470A61A8u); /* 0x4703EC32: push 0x470a61a8 */ 2843 eax = MEM32(FS_BASE + (0)); /* 0x4703EC37: mov eax, dword ptr fs:[0] */ 2844 PUSH32(esp, eax); /* 0x4703EC3D: push eax */ 2845 MEM32(FS_BASE + (0)) = esp; /* 0x4703EC3E: mov dword ptr fs:[0], esp */ 2846 PUSH32(esp, ecx); /* 0x4703EC45: push ecx */ 2847 PUSH32(esp, esi); /* 0x4703EC46: push esi */ 2848 esi = ecx; /* 0x4703EC47: mov esi, ecx */ 2849 PUSH32(esp, edi); /* 0x4703EC49: push edi */ 2850 MEM32(esp + 0x8) = esi; /* 0x4703EC4A: mov dword ptr [esp + 8], esi */ 2851 RECOMP_ICALL(0x4707A510u); /* 0x4703EC4E: call 0x4707a510 */ /* not lifted */ 2852 RECOMP_FLAGS_IN(); 2853 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2854 edi = 0; /* 0x4703EC53: xor edi, edi */ 2855 _cf = 0; 2856 _flag_k = FK_TEST; 2857 ecx = esi + 0x10; /* 0x4703EC55: lea ecx, [esi + 0x10] */ 2858 MEM32(esp + 0x14) = edi; /* 0x4703EC58: mov dword ptr [esp + 0x14], edi */ 2859 RECOMP_ICALL(0x47093090u); /* 0x4703EC5C: call 0x47093090 */ /* not lifted */ 2860 RECOMP_FLAGS_IN(); 2861 ecx = MEM32(esp + 0xC); /* 0x4703EC61: mov ecx, dword ptr [esp + 0xc] */ 2862 MEM32(esi + 0x14) = edi; /* 0x4703EC65: mov dword ptr [esi + 0x14], edi */ 2863 MEM32(esi + 0x18) = edi; /* 0x4703EC68: mov dword ptr [esi + 0x18], edi */ 2864 MEM32(esi + 0x1C) = edi; /* 0x4703EC6B: mov dword ptr [esi + 0x1c], edi */ 2865 edi = POP32_VAL(esp); /* 0x4703EC6E: pop edi */ 2866 eax = esi; /* 0x4703EC6F: mov eax, esi */ 2867 esi = POP32_VAL(esp); /* 0x4703EC71: pop esi */ 2868 MEM32(FS_BASE + (0)) = ecx; /* 0x4703EC72: mov dword ptr fs:[0], ecx */ 2869 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2870 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2871 esp = esp + 0x10u; /* 0x4703EC79: add esp, 0x10 */ 2872 _flag_k = FK_ADD; 2873 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703EC7C: ret */ 2874 RECOMP_REGS_OUT(); 2875 } 2876 2877 void sub_4703EC80(void) { 2878 int _fpu_cmp = 0; 2879 uint32_t _cf = 0; 2880 int _df = 1; 2881 uint32_t _flag_k = FK_NONE; 2882 uint32_t _flag_a = 0, _flag_b = 0; 2883 uint32_t _itail_tgt = 0; 2884 RECOMP_REGS_LOCALS 2885 RECOMP_ENTER(0x4703EC80u); 2886 2887 L_4703EC80: 2888 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703EC80: push -1 */ 2889 PUSH32(esp, 0x470A61C8u); /* 0x4703EC82: push 0x470a61c8 */ 2890 eax = MEM32(FS_BASE + (0)); /* 0x4703EC87: mov eax, dword ptr fs:[0] */ 2891 PUSH32(esp, eax); /* 0x4703EC8D: push eax */ 2892 MEM32(FS_BASE + (0)) = esp; /* 0x4703EC8E: mov dword ptr fs:[0], esp */ 2893 PUSH32(esp, ecx); /* 0x4703EC95: push ecx */ 2894 PUSH32(esp, esi); /* 0x4703EC96: push esi */ 2895 esi = ecx; /* 0x4703EC97: mov esi, ecx */ 2896 PUSH32(esp, edi); /* 0x4703EC99: push edi */ 2897 MEM32(esp + 0x8) = esi; /* 0x4703EC9A: mov dword ptr [esp + 8], esi */ 2898 RECOMP_ICALL(0x4707A510u); /* 0x4703EC9E: call 0x4707a510 */ /* not lifted */ 2899 RECOMP_FLAGS_IN(); 2900 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2901 edi = 0; /* 0x4703ECA3: xor edi, edi */ 2902 _cf = 0; 2903 _flag_k = FK_TEST; 2904 ecx = esi + 0x10; /* 0x4703ECA5: lea ecx, [esi + 0x10] */ 2905 MEM32(esp + 0x14) = edi; /* 0x4703ECA8: mov dword ptr [esp + 0x14], edi */ 2906 RECOMP_ICALL(0x47093090u); /* 0x4703ECAC: call 0x47093090 */ /* not lifted */ 2907 RECOMP_FLAGS_IN(); 2908 eax = MEM32(esp + 0x1C); /* 0x4703ECB1: mov eax, dword ptr [esp + 0x1c] */ 2909 ecx = MEM32(esp + 0xC); /* 0x4703ECB5: mov ecx, dword ptr [esp + 0xc] */ 2910 MEM32(esi + 0x14) = edi; /* 0x4703ECB9: mov dword ptr [esi + 0x14], edi */ 2911 MEM32(esi + 0x18) = edi; /* 0x4703ECBC: mov dword ptr [esi + 0x18], edi */ 2912 MEM32(esi + 0x1C) = edi; /* 0x4703ECBF: mov dword ptr [esi + 0x1c], edi */ 2913 MEM32(esi) = eax; /* 0x4703ECC2: mov dword ptr [esi], eax */ 2914 edi = POP32_VAL(esp); /* 0x4703ECC4: pop edi */ 2915 eax = esi; /* 0x4703ECC5: mov eax, esi */ 2916 esi = POP32_VAL(esp); /* 0x4703ECC7: pop esi */ 2917 MEM32(FS_BASE + (0)) = ecx; /* 0x4703ECC8: mov dword ptr fs:[0], ecx */ 2918 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2919 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2920 esp = esp + 0x10u; /* 0x4703ECCF: add esp, 0x10 */ 2921 _flag_k = FK_ADD; 2922 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703ECD2: ret 4 */ 2923 RECOMP_REGS_OUT(); 2924 } 2925 2926 void sub_4703ECE0(void) { 2927 int _fpu_cmp = 0; 2928 uint32_t _cf = 0; 2929 int _df = 1; 2930 uint32_t _flag_k = FK_NONE; 2931 uint32_t _flag_a = 0, _flag_b = 0; 2932 uint32_t _itail_tgt = 0; 2933 RECOMP_REGS_LOCALS 2934 RECOMP_ENTER(0x4703ECE0u); 2935 2936 L_4703ECE0: 2937 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703ECE0: push -1 */ 2938 PUSH32(esp, 0x470A6203u); /* 0x4703ECE2: push 0x470a6203 */ 2939 eax = MEM32(FS_BASE + (0)); /* 0x4703ECE7: mov eax, dword ptr fs:[0] */ 2940 PUSH32(esp, eax); /* 0x4703ECED: push eax */ 2941 MEM32(FS_BASE + (0)) = esp; /* 0x4703ECEE: mov dword ptr fs:[0], esp */ 2942 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2943 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2944 esp = esp - 8; /* 0x4703ECF5: sub esp, 8 */ 2945 _flag_k = FK_CMP; 2946 PUSH32(esp, ebx); /* 0x4703ECF8: push ebx */ 2947 PUSH32(esp, esi); /* 0x4703ECF9: push esi */ 2948 esi = ecx; /* 0x4703ECFA: mov esi, ecx */ 2949 MEM32(esp + 0x8) = esi; /* 0x4703ECFC: mov dword ptr [esp + 8], esi */ 2950 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2951 ebx = 0; /* 0x4703ED00: xor ebx, ebx */ 2952 _cf = 0; 2953 _flag_k = FK_TEST; 2954 /* cmp esi, ebx */ /* 0x4703ED02: cmp esi, ebx */ 2955 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2956 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2957 _flag_k = FK_CMP; 2958 MEM32(esp + 0x18) = ebx; /* 0x4703ED04: mov dword ptr [esp + 0x18], ebx */ 2959 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703ED0F; /* 0x4703ED08: je 0x4703ed0f */ 2960 L_4703ED0A: 2961 eax = esi + 0x10; /* 0x4703ED0A: lea eax, [esi + 0x10] */ 2962 goto L_4703ED11; /* 0x4703ED0D: jmp 0x4703ed11 */ 2963 L_4703ED0F: 2964 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2965 eax = 0; /* 0x4703ED0F: xor eax, eax */ 2966 _cf = 0; 2967 _flag_k = FK_TEST; 2968 L_4703ED11: 2969 PUSH32(esp, edi); /* 0x4703ED11: push edi */ 2970 edi = MEM32(eax); /* 0x4703ED12: mov edi, dword ptr [eax] */ 2971 /* cmp edi, ebx */ /* 0x4703ED14: cmp edi, ebx */ 2972 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2973 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2974 _flag_k = FK_CMP; 2975 MEM32(esp + 0x10) = edi; /* 0x4703ED16: mov dword ptr [esp + 0x10], edi */ 2976 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703ED5D; /* 0x4703ED1A: je 0x4703ed5d */ 2977 L_4703ED1C: 2978 PUSH32(esp, ebp); /* 0x4703ED1C: push ebp */ 2979 ecx = edi + 0x250; /* 0x4703ED1D: lea ecx, [edi + 0x250] */ 2980 MEM8(esp + 0x20) = (uint8_t)(1); /* 0x4703ED23: mov byte ptr [esp + 0x20], 1 */ 2981 RECOMP_ICALL(0x47086800u); /* 0x4703ED28: call 0x47086800 */ /* not lifted */ 2982 RECOMP_FLAGS_IN(); 2983 ebp = edi + 0x4; /* 0x4703ED2D: lea ebp, [edi + 4] */ 2984 MEM32(esp + 0x14) = ebp; /* 0x4703ED30: mov dword ptr [esp + 0x14], ebp */ 2985 MEM32(ebp) = 0x470AC710u; /* 0x4703ED34: mov dword ptr [ebp], 0x470ac710 */ 2986 ecx = ebp + 0x10; /* 0x4703ED3B: lea ecx, [ebp + 0x10] */ 2987 MEM8(esp + 0x20) = (uint8_t)(2); /* 0x4703ED3E: mov byte ptr [esp + 0x20], 2 */ 2988 RECOMP_ICALL(0x47041710u); /* 0x4703ED43: call 0x47041710 */ /* not lifted */ 2989 RECOMP_FLAGS_IN(); 2990 ecx = ebp; /* 0x4703ED48: mov ecx, ebp */ 2991 MEM8(esp + 0x20) = (uint8_t)(LO8(ebx)); /* 0x4703ED4A: mov byte ptr [esp + 0x20], bl */ 2992 RECOMP_ICALL(0x4702A7B0u); /* 0x4703ED4E: call 0x4702a7b0 */ /* not lifted */ 2993 RECOMP_FLAGS_IN(); 2994 PUSH32(esp, edi); /* 0x4703ED53: push edi */ 2995 RECOMP_ICALL(0x470A32A2u); /* 0x4703ED54: call 0x470a32a2 */ /* not lifted */ 2996 RECOMP_FLAGS_IN(); 2997 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2998 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2999 esp = esp + 4; /* 0x4703ED59: add esp, 4 */ 3000 _flag_k = FK_ADD; 3001 ebp = POP32_VAL(esp); /* 0x4703ED5C: pop ebp */ 3002 L_4703ED5D: 3003 eax = MEM32(esi + 0x4); /* 0x4703ED5D: mov eax, dword ptr [esi + 4] */ 3004 edi = MEM32(eax); /* 0x4703ED60: mov edi, dword ptr [eax] */ 3005 /* cmp edi, eax */ /* 0x4703ED62: cmp edi, eax */ 3006 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3007 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3008 _flag_k = FK_CMP; 3009 MEM32(esp + 0x1C) = 3; /* 0x4703ED64: mov dword ptr [esp + 0x1c], 3 */ 3010 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703ED8D; /* 0x4703ED6C: je 0x4703ed8d */ 3011 L_4703ED6E: 3012 eax = edi; /* 0x4703ED6E: mov eax, edi */ 3013 /* cmp eax, ebx */ /* 0x4703ED70: cmp eax, ebx */ 3014 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3015 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3016 _flag_k = FK_CMP; 3017 edi = MEM32(edi); /* 0x4703ED72: mov edi, dword ptr [edi] */ 3018 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703ED7F; /* 0x4703ED74: je 0x4703ed7f */ 3019 L_4703ED76: 3020 ecx = MEM32(esi + 0xC); /* 0x4703ED76: mov ecx, dword ptr [esi + 0xc] */ 3021 edx = MEM32(ecx); /* 0x4703ED79: mov edx, dword ptr [ecx] */ 3022 PUSH32(esp, eax); /* 0x4703ED7B: push eax */ 3023 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4703ED7C: call dword ptr [edx + 0xc] */ 3024 RECOMP_FLAGS_IN(); 3025 L_4703ED7F: 3026 ecx = MEM32(esi + 0x8); /* 0x4703ED7F: mov ecx, dword ptr [esi + 8] */ 3027 eax = MEM32(esi + 0x4); /* 0x4703ED82: mov eax, dword ptr [esi + 4] */ 3028 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3029 ecx = ecx - 1; /* 0x4703ED85: dec ecx */ 3030 _flag_k = FK_DEC; 3031 /* cmp edi, eax */ /* 0x4703ED86: cmp edi, eax */ 3032 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3033 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3034 _flag_k = FK_CMP; 3035 MEM32(esi + 0x8) = ecx; /* 0x4703ED88: mov dword ptr [esi + 8], ecx */ 3036 RECOMP_BACKEDGE(); 3037 if (CMP_NE(_flag_a, _flag_b)) goto L_4703ED6E; /* 0x4703ED8B: jne 0x4703ed6e */ 3038 L_4703ED8D: 3039 eax = MEM32(esi + 0x4); /* 0x4703ED8D: mov eax, dword ptr [esi + 4] */ 3040 MEM32(eax) = eax; /* 0x4703ED90: mov dword ptr [eax], eax */ 3041 eax = MEM32(esi + 0x4); /* 0x4703ED92: mov eax, dword ptr [esi + 4] */ 3042 /* cmp eax, ebx */ /* 0x4703ED95: cmp eax, ebx */ 3043 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3044 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3045 _flag_k = FK_CMP; 3046 edi = POP32_VAL(esp); /* 0x4703ED97: pop edi */ 3047 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703EDA3; /* 0x4703ED98: je 0x4703eda3 */ 3048 L_4703ED9A: 3049 ecx = MEM32(esi + 0xC); /* 0x4703ED9A: mov ecx, dword ptr [esi + 0xc] */ 3050 edx = MEM32(ecx); /* 0x4703ED9D: mov edx, dword ptr [ecx] */ 3051 PUSH32(esp, eax); /* 0x4703ED9F: push eax */ 3052 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4703EDA0: call dword ptr [edx + 0xc] */ 3053 RECOMP_FLAGS_IN(); 3054 L_4703EDA3: 3055 ecx = MEM32(esp + 0x10); /* 0x4703EDA3: mov ecx, dword ptr [esp + 0x10] */ 3056 MEM32(esi + 0x4) = ebx; /* 0x4703EDA7: mov dword ptr [esi + 4], ebx */ 3057 esi = POP32_VAL(esp); /* 0x4703EDAA: pop esi */ 3058 ebx = POP32_VAL(esp); /* 0x4703EDAB: pop ebx */ 3059 MEM32(FS_BASE + (0)) = ecx; /* 0x4703EDAC: mov dword ptr fs:[0], ecx */ 3060 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3061 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3062 esp = esp + 0x14u; /* 0x4703EDB3: add esp, 0x14 */ 3063 _flag_k = FK_ADD; 3064 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703EDB6: ret */ 3065 RECOMP_REGS_OUT(); 3066 } 3067 3068 void sub_4703ED11(void) { 3069 int _fpu_cmp = 0; 3070 uint32_t _cf = 0; 3071 int _df = 1; 3072 uint32_t _flag_k = FK_NONE; 3073 uint32_t _flag_a = 0, _flag_b = 0; 3074 uint32_t _itail_tgt = 0; 3075 RECOMP_REGS_LOCALS 3076 RECOMP_ENTER(0x4703ED11u); 3077 3078 L_4703ED11: 3079 PUSH32(esp, edi); /* 0x4703ED11: push edi */ 3080 edi = MEM32(eax); /* 0x4703ED12: mov edi, dword ptr [eax] */ 3081 /* cmp edi, ebx */ /* 0x4703ED14: cmp edi, ebx */ 3082 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 3083 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3084 _flag_k = FK_CMP; 3085 MEM32(esp + 0x10) = edi; /* 0x4703ED16: mov dword ptr [esp + 0x10], edi */ 3086 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703ED5D; /* 0x4703ED1A: je 0x4703ed5d */ 3087 L_4703ED1C: 3088 PUSH32(esp, ebp); /* 0x4703ED1C: push ebp */ 3089 ecx = edi + 0x250; /* 0x4703ED1D: lea ecx, [edi + 0x250] */ 3090 MEM8(esp + 0x20) = (uint8_t)(1); /* 0x4703ED23: mov byte ptr [esp + 0x20], 1 */ 3091 RECOMP_ICALL(0x47086800u); /* 0x4703ED28: call 0x47086800 */ /* not lifted */ 3092 RECOMP_FLAGS_IN(); 3093 ebp = edi + 0x4; /* 0x4703ED2D: lea ebp, [edi + 4] */ 3094 MEM32(esp + 0x14) = ebp; /* 0x4703ED30: mov dword ptr [esp + 0x14], ebp */ 3095 MEM32(ebp) = 0x470AC710u; /* 0x4703ED34: mov dword ptr [ebp], 0x470ac710 */ 3096 ecx = ebp + 0x10; /* 0x4703ED3B: lea ecx, [ebp + 0x10] */ 3097 MEM8(esp + 0x20) = (uint8_t)(2); /* 0x4703ED3E: mov byte ptr [esp + 0x20], 2 */ 3098 RECOMP_ICALL(0x47041710u); /* 0x4703ED43: call 0x47041710 */ /* not lifted */ 3099 RECOMP_FLAGS_IN(); 3100 ecx = ebp; /* 0x4703ED48: mov ecx, ebp */ 3101 MEM8(esp + 0x20) = (uint8_t)(LO8(ebx)); /* 0x4703ED4A: mov byte ptr [esp + 0x20], bl */ 3102 RECOMP_ICALL(0x4702A7B0u); /* 0x4703ED4E: call 0x4702a7b0 */ /* not lifted */ 3103 RECOMP_FLAGS_IN(); 3104 PUSH32(esp, edi); /* 0x4703ED53: push edi */ 3105 RECOMP_ICALL(0x470A32A2u); /* 0x4703ED54: call 0x470a32a2 */ /* not lifted */ 3106 RECOMP_FLAGS_IN(); 3107 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3108 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3109 esp = esp + 4; /* 0x4703ED59: add esp, 4 */ 3110 _flag_k = FK_ADD; 3111 ebp = POP32_VAL(esp); /* 0x4703ED5C: pop ebp */ 3112 L_4703ED5D: 3113 eax = MEM32(esi + 0x4); /* 0x4703ED5D: mov eax, dword ptr [esi + 4] */ 3114 edi = MEM32(eax); /* 0x4703ED60: mov edi, dword ptr [eax] */ 3115 /* cmp edi, eax */ /* 0x4703ED62: cmp edi, eax */ 3116 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3117 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3118 _flag_k = FK_CMP; 3119 MEM32(esp + 0x1C) = 3; /* 0x4703ED64: mov dword ptr [esp + 0x1c], 3 */ 3120 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703ED8D; /* 0x4703ED6C: je 0x4703ed8d */ 3121 L_4703ED6E: 3122 eax = edi; /* 0x4703ED6E: mov eax, edi */ 3123 /* cmp eax, ebx */ /* 0x4703ED70: cmp eax, ebx */ 3124 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3125 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3126 _flag_k = FK_CMP; 3127 edi = MEM32(edi); /* 0x4703ED72: mov edi, dword ptr [edi] */ 3128 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703ED7F; /* 0x4703ED74: je 0x4703ed7f */ 3129 L_4703ED76: 3130 ecx = MEM32(esi + 0xC); /* 0x4703ED76: mov ecx, dword ptr [esi + 0xc] */ 3131 edx = MEM32(ecx); /* 0x4703ED79: mov edx, dword ptr [ecx] */ 3132 PUSH32(esp, eax); /* 0x4703ED7B: push eax */ 3133 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4703ED7C: call dword ptr [edx + 0xc] */ 3134 RECOMP_FLAGS_IN(); 3135 L_4703ED7F: 3136 ecx = MEM32(esi + 0x8); /* 0x4703ED7F: mov ecx, dword ptr [esi + 8] */ 3137 eax = MEM32(esi + 0x4); /* 0x4703ED82: mov eax, dword ptr [esi + 4] */ 3138 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3139 ecx = ecx - 1; /* 0x4703ED85: dec ecx */ 3140 _flag_k = FK_DEC; 3141 /* cmp edi, eax */ /* 0x4703ED86: cmp edi, eax */ 3142 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3143 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3144 _flag_k = FK_CMP; 3145 MEM32(esi + 0x8) = ecx; /* 0x4703ED88: mov dword ptr [esi + 8], ecx */ 3146 RECOMP_BACKEDGE(); 3147 if (CMP_NE(_flag_a, _flag_b)) goto L_4703ED6E; /* 0x4703ED8B: jne 0x4703ed6e */ 3148 L_4703ED8D: 3149 eax = MEM32(esi + 0x4); /* 0x4703ED8D: mov eax, dword ptr [esi + 4] */ 3150 MEM32(eax) = eax; /* 0x4703ED90: mov dword ptr [eax], eax */ 3151 eax = MEM32(esi + 0x4); /* 0x4703ED92: mov eax, dword ptr [esi + 4] */ 3152 /* cmp eax, ebx */ /* 0x4703ED95: cmp eax, ebx */ 3153 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3154 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3155 _flag_k = FK_CMP; 3156 edi = POP32_VAL(esp); /* 0x4703ED97: pop edi */ 3157 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703EDA3; /* 0x4703ED98: je 0x4703eda3 */ 3158 L_4703ED9A: 3159 ecx = MEM32(esi + 0xC); /* 0x4703ED9A: mov ecx, dword ptr [esi + 0xc] */ 3160 edx = MEM32(ecx); /* 0x4703ED9D: mov edx, dword ptr [ecx] */ 3161 PUSH32(esp, eax); /* 0x4703ED9F: push eax */ 3162 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4703EDA0: call dword ptr [edx + 0xc] */ 3163 RECOMP_FLAGS_IN(); 3164 L_4703EDA3: 3165 ecx = MEM32(esp + 0x10); /* 0x4703EDA3: mov ecx, dword ptr [esp + 0x10] */ 3166 MEM32(esi + 0x4) = ebx; /* 0x4703EDA7: mov dword ptr [esi + 4], ebx */ 3167 esi = POP32_VAL(esp); /* 0x4703EDAA: pop esi */ 3168 ebx = POP32_VAL(esp); /* 0x4703EDAB: pop ebx */ 3169 MEM32(FS_BASE + (0)) = ecx; /* 0x4703EDAC: mov dword ptr fs:[0], ecx */ 3170 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3171 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3172 esp = esp + 0x14u; /* 0x4703EDB3: add esp, 0x14 */ 3173 _flag_k = FK_ADD; 3174 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703EDB6: ret */ 3175 RECOMP_REGS_OUT(); 3176 } 3177 3178 void sub_4703EDC0(void) { 3179 int _fpu_cmp = 0; 3180 uint32_t _cf = 0; 3181 int _df = 1; 3182 uint32_t _flag_k = FK_NONE; 3183 uint32_t _flag_a = 0, _flag_b = 0; 3184 uint32_t _itail_tgt = 0; 3185 RECOMP_REGS_LOCALS 3186 RECOMP_ENTER(0x4703EDC0u); 3187 3188 L_4703EDC0: 3189 PUSH32(esp, ecx); /* 0x4703EDC0: push ecx */ 3190 PUSH32(esp, ebx); /* 0x4703EDC1: push ebx */ 3191 ebx = ecx; /* 0x4703EDC2: mov ebx, ecx */ 3192 ecx = MEM32(ebx + 0x10); /* 0x4703EDC4: mov ecx, dword ptr [ebx + 0x10] */ 3193 /* test ecx, ecx */ /* 0x4703EDC7: test ecx, ecx */ 3194 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3195 _cf = 0; 3196 _flag_k = FK_TEST; 3197 PUSH32(esp, ebp); /* 0x4703EDC9: push ebp */ 3198 if (TEST_Z(_flag_a, _flag_b)) goto L_4703EDE6; /* 0x4703EDCA: je 0x4703ede6 */ 3199 L_4703EDCC: 3200 ebp = MEM32(esp + 0x14); /* 0x4703EDCC: mov ebp, dword ptr [esp + 0x14] */ 3201 eax = ebp + 0x4; /* 0x4703EDD0: lea eax, [ebp + 4] */ 3202 PUSH32(esp, eax); /* 0x4703EDD3: push eax */ 3203 RECOMP_ICALL(0x4703FD60u); /* 0x4703EDD4: call 0x4703fd60 */ /* not lifted */ 3204 RECOMP_FLAGS_IN(); 3205 MEM32(eax) = ebp; /* 0x4703EDD9: mov dword ptr [eax], ebp */ 3206 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 3207 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3208 eax = eax + 4; /* 0x4703EDDB: add eax, 4 */ 3209 _flag_k = FK_ADD; 3210 /* test eax, eax */ /* 0x4703EDDE: test eax, eax */ 3211 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3212 _cf = 0; 3213 _flag_k = FK_TEST; 3214 MEM32(esp + 0x8) = eax; /* 0x4703EDE0: mov dword ptr [esp + 8], eax */ 3215 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703EDEF; /* 0x4703EDE4: jne 0x4703edef */ 3216 L_4703EDE6: 3217 ebp = POP32_VAL(esp); /* 0x4703EDE6: pop ebp */ 3218 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3219 eax = eax | 0xFFFFFFFFu; /* 0x4703EDE7: or eax, 0xffffffff */ 3220 _cf = 0; 3221 _flag_k = FK_TEST; 3222 ebx = POP32_VAL(esp); /* 0x4703EDEA: pop ebx */ 3223 ecx = POP32_VAL(esp); /* 0x4703EDEB: pop ecx */ 3224 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4703EDEC: ret 8 */ 3225 L_4703EDEF: 3226 PUSH32(esp, esi); /* 0x4703EDEF: push esi */ 3227 esi = MEM32(esp + 0x14); /* 0x4703EDF0: mov esi, dword ptr [esp + 0x14] */ 3228 ecx = ebp; /* 0x4703EDF4: mov ecx, ebp */ 3229 edx = ecx; /* 0x4703EDF6: mov edx, ecx */ 3230 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4703EDF8: shr ecx, 2 */ 3231 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3232 ecx = ecx >> 2u; /* 0x4703EDF8: shr ecx, 2 */ 3233 PUSH32(esp, edi); /* 0x4703EDFB: push edi */ 3234 edi = eax; /* 0x4703EDFC: mov edi, eax */ 3235 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4703EDFE: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 3236 ecx = edx; /* 0x4703EE00: mov ecx, edx */ 3237 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 3238 ecx = ecx & 3; /* 0x4703EE02: and ecx, 3 */ 3239 _cf = 0; 3240 _flag_k = FK_TEST; 3241 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4703EE05: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 3242 ecx = MEM32(ebx + 0x10); /* 0x4703EE07: mov ecx, dword ptr [ebx + 0x10] */ 3243 /* test ecx, ecx */ /* 0x4703EE0A: test ecx, ecx */ 3244 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3245 _cf = 0; 3246 _flag_k = FK_TEST; 3247 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703EE13; /* 0x4703EE0C: jne 0x4703ee13 */ 3248 L_4703EE0E: 3249 _flag_a = (uint32_t)((esi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((esi | 0xFFFFFFFFu)); 3250 esi = esi | 0xFFFFFFFFu; /* 0x4703EE0E: or esi, 0xffffffff */ 3251 _cf = 0; 3252 _flag_k = FK_TEST; 3253 goto L_4703EE2A; /* 0x4703EE11: jmp 0x4703ee2a */ 3254 L_4703EE13: 3255 esi = eax + (-0x4); /* 0x4703EE13: lea esi, [eax - 4] */ 3256 /* cmp MEM32(esi), ebp */ /* 0x4703EE16: cmp dword ptr [esi], ebp */ 3257 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(ebp); 3258 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3259 _flag_k = FK_CMP; 3260 if (CMP_B(_flag_a, _flag_b)) goto L_4703EE1C; /* 0x4703EE18: jb 0x4703ee1c */ 3261 L_4703EE1A: 3262 MEM32(esi) = ebp; /* 0x4703EE1A: mov dword ptr [esi], ebp */ 3263 L_4703EE1C: 3264 ecx = MEM32(ebx + 0x10); /* 0x4703EE1C: mov ecx, dword ptr [ebx + 0x10] */ 3265 eax = MEM32(ecx + 0x4); /* 0x4703EE1F: mov eax, dword ptr [ecx + 4] */ 3266 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 3267 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3268 ecx = ecx + 4; /* 0x4703EE22: add ecx, 4 */ 3269 _flag_k = FK_ADD; 3270 RECOMP_ICALL(MEM32(eax + 0x64)); /* 0x4703EE25: call dword ptr [eax + 0x64] */ 3271 RECOMP_FLAGS_IN(); 3272 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3273 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3274 esi = esi - eax; /* 0x4703EE28: sub esi, eax */ 3275 _flag_k = FK_CMP; 3276 L_4703EE2A: 3277 eax = MEM32(ebx); /* 0x4703EE2A: mov eax, dword ptr [ebx] */ 3278 PUSH32(esp, 0); /* 0x4703EE2C: push 0 */ 3279 PUSH32(esp, 0); /* 0x4703EE2E: push 0 */ 3280 PUSH32(esp, 4); /* 0x4703EE30: push 4 */ 3281 ecx = esp + 0x28; /* 0x4703EE32: lea ecx, [esp + 0x28] */ 3282 PUSH32(esp, ecx); /* 0x4703EE36: push ecx */ 3283 PUSH32(esp, eax); /* 0x4703EE37: push eax */ 3284 MEM32(esp + 0x30) = esi; /* 0x4703EE38: mov dword ptr [esp + 0x30], esi */ 3285 RECOMP_ICALL(0x4700CDC0u); /* 0x4703EE3C: call 0x4700cdc0 */ /* not lifted */ 3286 RECOMP_FLAGS_IN(); 3287 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3288 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3289 esp = esp + 0x14u; /* 0x4703EE41: add esp, 0x14 */ 3290 _flag_k = FK_ADD; 3291 /* cmp eax, 4 */ /* 0x4703EE44: cmp eax, 4 */ 3292 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 3293 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3294 _flag_k = FK_CMP; 3295 edi = POP32_VAL(esp); /* 0x4703EE47: pop edi */ 3296 esi = POP32_VAL(esp); /* 0x4703EE48: pop esi */ 3297 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703EE6A; /* 0x4703EE49: je 0x4703ee6a */ 3298 L_4703EE4B: 3299 ebx = MEM32(ebx + 0x10); /* 0x4703EE4B: mov ebx, dword ptr [ebx + 0x10] */ 3300 /* test ebx, ebx */ /* 0x4703EE4E: test ebx, ebx */ 3301 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 3302 _cf = 0; 3303 _flag_k = FK_TEST; 3304 if (TEST_Z(_flag_a, _flag_b)) goto L_4703EE61; /* 0x4703EE50: je 0x4703ee61 */ 3305 L_4703EE52: 3306 edx = MEM32(esp + 0x8); /* 0x4703EE52: mov edx, dword ptr [esp + 8] */ 3307 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFFCu); 3308 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3309 edx = edx + 0xFFFFFFFCu; /* 0x4703EE56: add edx, -4 */ 3310 _flag_k = FK_ADD; 3311 PUSH32(esp, edx); /* 0x4703EE59: push edx */ 3312 ecx = ebx; /* 0x4703EE5A: mov ecx, ebx */ 3313 RECOMP_ICALL(0x4703FE50u); /* 0x4703EE5C: call 0x4703fe50 */ /* not lifted */ 3314 RECOMP_FLAGS_IN(); 3315 L_4703EE61: 3316 ebp = POP32_VAL(esp); /* 0x4703EE61: pop ebp */ 3317 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3318 eax = eax | 0xFFFFFFFFu; /* 0x4703EE62: or eax, 0xffffffff */ 3319 _cf = 0; 3320 _flag_k = FK_TEST; 3321 ebx = POP32_VAL(esp); /* 0x4703EE65: pop ebx */ 3322 ecx = POP32_VAL(esp); /* 0x4703EE66: pop ecx */ 3323 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4703EE67: ret 8 */ 3324 L_4703EE6A: 3325 eax = ebp; /* 0x4703EE6A: mov eax, ebp */ 3326 ebp = POP32_VAL(esp); /* 0x4703EE6C: pop ebp */ 3327 ebx = POP32_VAL(esp); /* 0x4703EE6D: pop ebx */ 3328 ecx = POP32_VAL(esp); /* 0x4703EE6E: pop ecx */ 3329 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4703EE6F: ret 8 */ 3330 RECOMP_REGS_OUT(); 3331 } 3332 3333 void sub_4703EE80(void) { 3334 int _fpu_cmp = 0; 3335 uint32_t _cf = 0; 3336 int _df = 1; 3337 uint32_t _flag_k = FK_NONE; 3338 uint32_t _flag_a = 0, _flag_b = 0; 3339 uint32_t _itail_tgt = 0; 3340 RECOMP_REGS_LOCALS 3341 RECOMP_ENTER(0x4703EE80u); 3342 3343 L_4703EE80: 3344 PUSH32(esp, ecx); /* 0x4703EE80: push ecx */ 3345 PUSH32(esp, ebx); /* 0x4703EE81: push ebx */ 3346 ebx = ecx; /* 0x4703EE82: mov ebx, ecx */ 3347 ecx = MEM32(ebx + 0x10); /* 0x4703EE84: mov ecx, dword ptr [ebx + 0x10] */ 3348 /* test ecx, ecx */ /* 0x4703EE87: test ecx, ecx */ 3349 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3350 _cf = 0; 3351 _flag_k = FK_TEST; 3352 PUSH32(esp, ebp); /* 0x4703EE89: push ebp */ 3353 if (TEST_Z(_flag_a, _flag_b)) goto L_4703EEA6; /* 0x4703EE8A: je 0x4703eea6 */ 3354 L_4703EE8C: 3355 ebp = MEM32(esp + 0x14); /* 0x4703EE8C: mov ebp, dword ptr [esp + 0x14] */ 3356 eax = ebp + 0x4; /* 0x4703EE90: lea eax, [ebp + 4] */ 3357 PUSH32(esp, eax); /* 0x4703EE93: push eax */ 3358 RECOMP_ICALL(0x4703FD60u); /* 0x4703EE94: call 0x4703fd60 */ /* not lifted */ 3359 RECOMP_FLAGS_IN(); 3360 MEM32(eax) = ebp; /* 0x4703EE99: mov dword ptr [eax], ebp */ 3361 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 3362 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3363 eax = eax + 4; /* 0x4703EE9B: add eax, 4 */ 3364 _flag_k = FK_ADD; 3365 /* test eax, eax */ /* 0x4703EE9E: test eax, eax */ 3366 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3367 _cf = 0; 3368 _flag_k = FK_TEST; 3369 MEM32(esp + 0x8) = eax; /* 0x4703EEA0: mov dword ptr [esp + 8], eax */ 3370 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703EEAF; /* 0x4703EEA4: jne 0x4703eeaf */ 3371 L_4703EEA6: 3372 ebp = POP32_VAL(esp); /* 0x4703EEA6: pop ebp */ 3373 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3374 eax = eax | 0xFFFFFFFFu; /* 0x4703EEA7: or eax, 0xffffffff */ 3375 _cf = 0; 3376 _flag_k = FK_TEST; 3377 ebx = POP32_VAL(esp); /* 0x4703EEAA: pop ebx */ 3378 ecx = POP32_VAL(esp); /* 0x4703EEAB: pop ecx */ 3379 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4703EEAC: ret 0xc */ 3380 L_4703EEAF: 3381 PUSH32(esp, esi); /* 0x4703EEAF: push esi */ 3382 esi = MEM32(esp + 0x14); /* 0x4703EEB0: mov esi, dword ptr [esp + 0x14] */ 3383 ecx = ebp; /* 0x4703EEB4: mov ecx, ebp */ 3384 edx = ecx; /* 0x4703EEB6: mov edx, ecx */ 3385 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4703EEB8: shr ecx, 2 */ 3386 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3387 ecx = ecx >> 2u; /* 0x4703EEB8: shr ecx, 2 */ 3388 PUSH32(esp, edi); /* 0x4703EEBB: push edi */ 3389 edi = eax; /* 0x4703EEBC: mov edi, eax */ 3390 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4703EEBE: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 3391 ecx = edx; /* 0x4703EEC0: mov ecx, edx */ 3392 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 3393 ecx = ecx & 3; /* 0x4703EEC2: and ecx, 3 */ 3394 _cf = 0; 3395 _flag_k = FK_TEST; 3396 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4703EEC5: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 3397 ecx = MEM32(ebx + 0x10); /* 0x4703EEC7: mov ecx, dword ptr [ebx + 0x10] */ 3398 /* test ecx, ecx */ /* 0x4703EECA: test ecx, ecx */ 3399 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3400 _cf = 0; 3401 _flag_k = FK_TEST; 3402 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703EED3; /* 0x4703EECC: jne 0x4703eed3 */ 3403 L_4703EECE: 3404 _flag_a = (uint32_t)((esi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((esi | 0xFFFFFFFFu)); 3405 esi = esi | 0xFFFFFFFFu; /* 0x4703EECE: or esi, 0xffffffff */ 3406 _cf = 0; 3407 _flag_k = FK_TEST; 3408 goto L_4703EEEA; /* 0x4703EED1: jmp 0x4703eeea */ 3409 L_4703EED3: 3410 esi = eax + (-0x4); /* 0x4703EED3: lea esi, [eax - 4] */ 3411 /* cmp MEM32(esi), ebp */ /* 0x4703EED6: cmp dword ptr [esi], ebp */ 3412 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(ebp); 3413 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3414 _flag_k = FK_CMP; 3415 if (CMP_B(_flag_a, _flag_b)) goto L_4703EEDC; /* 0x4703EED8: jb 0x4703eedc */ 3416 L_4703EEDA: 3417 MEM32(esi) = ebp; /* 0x4703EEDA: mov dword ptr [esi], ebp */ 3418 L_4703EEDC: 3419 ecx = MEM32(ebx + 0x10); /* 0x4703EEDC: mov ecx, dword ptr [ebx + 0x10] */ 3420 eax = MEM32(ecx + 0x4); /* 0x4703EEDF: mov eax, dword ptr [ecx + 4] */ 3421 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 3422 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3423 ecx = ecx + 4; /* 0x4703EEE2: add ecx, 4 */ 3424 _flag_k = FK_ADD; 3425 RECOMP_ICALL(MEM32(eax + 0x64)); /* 0x4703EEE5: call dword ptr [eax + 0x64] */ 3426 RECOMP_FLAGS_IN(); 3427 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3428 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3429 esi = esi - eax; /* 0x4703EEE8: sub esi, eax */ 3430 _flag_k = FK_CMP; 3431 L_4703EEEA: 3432 ecx = MEM32(esp + 0x20); /* 0x4703EEEA: mov ecx, dword ptr [esp + 0x20] */ 3433 eax = MEM32(ebx); /* 0x4703EEEE: mov eax, dword ptr [ebx] */ 3434 PUSH32(esp, 0); /* 0x4703EEF0: push 0 */ 3435 PUSH32(esp, ecx); /* 0x4703EEF2: push ecx */ 3436 PUSH32(esp, 4); /* 0x4703EEF3: push 4 */ 3437 edx = esp + 0x28; /* 0x4703EEF5: lea edx, [esp + 0x28] */ 3438 PUSH32(esp, edx); /* 0x4703EEF9: push edx */ 3439 PUSH32(esp, eax); /* 0x4703EEFA: push eax */ 3440 MEM32(esp + 0x30) = esi; /* 0x4703EEFB: mov dword ptr [esp + 0x30], esi */ 3441 RECOMP_ICALL(0x4700CDC0u); /* 0x4703EEFF: call 0x4700cdc0 */ /* not lifted */ 3442 RECOMP_FLAGS_IN(); 3443 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3444 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3445 esp = esp + 0x14u; /* 0x4703EF04: add esp, 0x14 */ 3446 _flag_k = FK_ADD; 3447 /* cmp eax, 4 */ /* 0x4703EF07: cmp eax, 4 */ 3448 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 3449 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3450 _flag_k = FK_CMP; 3451 edi = POP32_VAL(esp); /* 0x4703EF0A: pop edi */ 3452 esi = POP32_VAL(esp); /* 0x4703EF0B: pop esi */ 3453 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703EF2D; /* 0x4703EF0C: je 0x4703ef2d */ 3454 L_4703EF0E: 3455 ebx = MEM32(ebx + 0x10); /* 0x4703EF0E: mov ebx, dword ptr [ebx + 0x10] */ 3456 /* test ebx, ebx */ /* 0x4703EF11: test ebx, ebx */ 3457 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 3458 _cf = 0; 3459 _flag_k = FK_TEST; 3460 if (TEST_Z(_flag_a, _flag_b)) goto L_4703EF24; /* 0x4703EF13: je 0x4703ef24 */ 3461 L_4703EF15: 3462 eax = MEM32(esp + 0x8); /* 0x4703EF15: mov eax, dword ptr [esp + 8] */ 3463 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFCu); 3464 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3465 eax = eax + 0xFFFFFFFCu; /* 0x4703EF19: add eax, -4 */ 3466 _flag_k = FK_ADD; 3467 PUSH32(esp, eax); /* 0x4703EF1C: push eax */ 3468 ecx = ebx; /* 0x4703EF1D: mov ecx, ebx */ 3469 RECOMP_ICALL(0x4703FE50u); /* 0x4703EF1F: call 0x4703fe50 */ /* not lifted */ 3470 RECOMP_FLAGS_IN(); 3471 L_4703EF24: 3472 ebp = POP32_VAL(esp); /* 0x4703EF24: pop ebp */ 3473 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3474 eax = eax | 0xFFFFFFFFu; /* 0x4703EF25: or eax, 0xffffffff */ 3475 _cf = 0; 3476 _flag_k = FK_TEST; 3477 ebx = POP32_VAL(esp); /* 0x4703EF28: pop ebx */ 3478 ecx = POP32_VAL(esp); /* 0x4703EF29: pop ecx */ 3479 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4703EF2A: ret 0xc */ 3480 L_4703EF2D: 3481 eax = ebp; /* 0x4703EF2D: mov eax, ebp */ 3482 ebp = POP32_VAL(esp); /* 0x4703EF2F: pop ebp */ 3483 ebx = POP32_VAL(esp); /* 0x4703EF30: pop ebx */ 3484 ecx = POP32_VAL(esp); /* 0x4703EF31: pop ecx */ 3485 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4703EF32: ret 0xc */ 3486 RECOMP_REGS_OUT(); 3487 } 3488 3489 void sub_4703EF40(void) { 3490 int _fpu_cmp = 0; 3491 uint32_t _cf = 0; 3492 int _df = 1; 3493 uint32_t _flag_k = FK_NONE; 3494 uint32_t _flag_a = 0, _flag_b = 0; 3495 uint32_t _itail_tgt = 0; 3496 RECOMP_REGS_LOCALS 3497 RECOMP_ENTER(0x4703EF40u); 3498 3499 L_4703EF40: 3500 PUSH32(esp, ecx); /* 0x4703EF40: push ecx */ 3501 PUSH32(esp, ebx); /* 0x4703EF41: push ebx */ 3502 ebx = ecx; /* 0x4703EF42: mov ebx, ecx */ 3503 ecx = MEM32(ebx + 0x18); /* 0x4703EF44: mov ecx, dword ptr [ebx + 0x18] */ 3504 edx = MEM32(ebx + 0x1C); /* 0x4703EF47: mov edx, dword ptr [ebx + 0x1c] */ 3505 eax = ecx; /* 0x4703EF4A: mov eax, ecx */ 3506 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3507 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3508 eax = eax - edx; /* 0x4703EF4C: sub eax, edx */ 3509 _flag_k = FK_CMP; 3510 PUSH32(esp, esi); /* 0x4703EF4E: push esi */ 3511 PUSH32(esp, edi); /* 0x4703EF4F: push edi */ 3512 if (/* sub result */ CMP_NE(_flag_a, _flag_b)) goto L_4703F037; /* 0x4703EF50: jne 0x4703f037 */ 3513 L_4703EF56: 3514 /* cmp ecx, edx */ /* 0x4703EF56: cmp ecx, edx */ 3515 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3516 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3517 _flag_k = FK_CMP; 3518 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703EFBA; /* 0x4703EF58: je 0x4703efba */ 3519 L_4703EF5A: 3520 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4703EF5A: call dword ptr [0x470ac150] */ 3521 RECOMP_FLAGS_IN(); 3522 edi = eax; /* 0x4703EF60: mov edi, eax */ 3523 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4703EF62: call dword ptr [0x470ac3c8] */ 3524 RECOMP_FLAGS_IN(); 3525 eax = MEM32(eax); /* 0x4703EF68: mov eax, dword ptr [eax] */ 3526 /* test eax, eax */ /* 0x4703EF6A: test eax, eax */ 3527 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3528 _cf = 0; 3529 _flag_k = FK_TEST; 3530 if (TEST_Z(_flag_a, _flag_b)) goto L_4703EF70; /* 0x4703EF6C: je 0x4703ef70 */ 3531 L_4703EF6E: 3532 edi = eax; /* 0x4703EF6E: mov edi, eax */ 3533 L_4703EF70: 3534 RECOMP_ICALL(0x47039020u); /* 0x4703EF70: call 0x47039020 */ /* not lifted */ 3535 RECOMP_FLAGS_IN(); 3536 esi = eax; /* 0x4703EF75: mov esi, eax */ 3537 ecx = esi; /* 0x4703EF77: mov ecx, esi */ 3538 RECOMP_ICALL(0x4703B210u); /* 0x4703EF79: call 0x4703b210 */ /* not lifted */ 3539 RECOMP_FLAGS_IN(); 3540 PUSH32(esp, eax); /* 0x4703EF7E: push eax */ 3541 ecx = esi; /* 0x4703EF7F: mov ecx, esi */ 3542 RECOMP_ICALL(0x4703B240u); /* 0x4703EF81: call 0x4703b240 */ /* not lifted */ 3543 RECOMP_FLAGS_IN(); 3544 PUSH32(esp, eax); /* 0x4703EF86: push eax */ 3545 ecx = esi; /* 0x4703EF87: mov ecx, esi */ 3546 RECOMP_ICALL(0x4703B080u); /* 0x4703EF89: call 0x4703b080 */ /* not lifted */ 3547 RECOMP_FLAGS_IN(); 3548 PUSH32(esp, eax); /* 0x4703EF8E: push eax */ 3549 PUSH32(esp, edi); /* 0x4703EF8F: push edi */ 3550 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703EF90: push -1 */ 3551 PUSH32(esp, 0x16u); /* 0x4703EF92: push 0x16 */ 3552 PUSH32(esp, 0x47107D14u); /* 0x4703EF94: push 0x47107d14 */ 3553 ecx = esi; /* 0x4703EF99: mov ecx, esi */ 3554 RECOMP_ICALL(0x4703A340u); /* 0x4703EF9B: call 0x4703a340 */ /* not lifted */ 3555 RECOMP_FLAGS_IN(); 3556 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703EFA0: push -1 */ 3557 PUSH32(esp, 0x47107CECu); /* 0x4703EFA2: push 0x47107cec */ 3558 PUSH32(esp, 0x47104AA4u); /* 0x4703EFA7: push 0x47104aa4 */ 3559 PUSH32(esp, 0x80u); /* 0x4703EFAC: push 0x80 */ 3560 PUSH32(esp, esi); /* 0x4703EFB1: push esi */ 3561 RECOMP_ICALL(0x47039830u); /* 0x4703EFB2: call 0x47039830 */ /* not lifted */ 3562 RECOMP_FLAGS_IN(); 3563 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3564 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3565 esp = esp + 0x14u; /* 0x4703EFB7: add esp, 0x14 */ 3566 _flag_k = FK_ADD; 3567 L_4703EFBA: 3568 eax = MEM32(ebx + 0x14); /* 0x4703EFBA: mov eax, dword ptr [ebx + 0x14] */ 3569 /* test eax, eax */ /* 0x4703EFBD: test eax, eax */ 3570 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3571 _cf = 0; 3572 _flag_k = FK_TEST; 3573 esi = ebx + 0x14; /* 0x4703EFBF: lea esi, [ebx + 0x14] */ 3574 if (TEST_Z(_flag_a, _flag_b)) goto L_4703EFD4; /* 0x4703EFC2: je 0x4703efd4 */ 3575 L_4703EFC4: 3576 ecx = MEM32(ebx + 0x10); /* 0x4703EFC4: mov ecx, dword ptr [ebx + 0x10] */ 3577 /* test ecx, ecx */ /* 0x4703EFC7: test ecx, ecx */ 3578 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3579 _cf = 0; 3580 _flag_k = FK_TEST; 3581 if (TEST_Z(_flag_a, _flag_b)) goto L_4703EFD4; /* 0x4703EFC9: je 0x4703efd4 */ 3582 L_4703EFCB: 3583 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFCu); 3584 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3585 eax = eax + 0xFFFFFFFCu; /* 0x4703EFCB: add eax, -4 */ 3586 _flag_k = FK_ADD; 3587 PUSH32(esp, eax); /* 0x4703EFCE: push eax */ 3588 RECOMP_ICALL(0x4703FE50u); /* 0x4703EFCF: call 0x4703fe50 */ /* not lifted */ 3589 RECOMP_FLAGS_IN(); 3590 L_4703EFD4: 3591 ecx = MEM32(esp + 0x1C); /* 0x4703EFD4: mov ecx, dword ptr [esp + 0x1c] */ 3592 eax = MEM32(ebx); /* 0x4703EFD8: mov eax, dword ptr [ebx] */ 3593 PUSH32(esp, 0); /* 0x4703EFDA: push 0 */ 3594 PUSH32(esp, ecx); /* 0x4703EFDC: push ecx */ 3595 PUSH32(esp, 4); /* 0x4703EFDD: push 4 */ 3596 edx = esp + 0x18; /* 0x4703EFDF: lea edx, [esp + 0x18] */ 3597 PUSH32(esp, edx); /* 0x4703EFE3: push edx */ 3598 PUSH32(esp, eax); /* 0x4703EFE4: push eax */ 3599 MEM32(ebx + 0x1C) = 0; /* 0x4703EFE5: mov dword ptr [ebx + 0x1c], 0 */ 3600 MEM32(esp + 0x20) = 0; /* 0x4703EFEC: mov dword ptr [esp + 0x20], 0 */ 3601 RECOMP_ICALL(0x4700BD90u); /* 0x4703EFF4: call 0x4700bd90 */ /* not lifted */ 3602 RECOMP_FLAGS_IN(); 3603 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3604 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3605 esp = esp + 0x14u; /* 0x4703EFF9: add esp, 0x14 */ 3606 _flag_k = FK_ADD; 3607 /* cmp eax, 4 */ /* 0x4703EFFC: cmp eax, 4 */ 3608 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 3609 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3610 _flag_k = FK_CMP; 3611 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703F018; /* 0x4703EFFF: je 0x4703f018 */ 3612 L_4703F001: 3613 edi = POP32_VAL(esp); /* 0x4703F001: pop edi */ 3614 MEM32(esi) = 0; /* 0x4703F002: mov dword ptr [esi], 0 */ 3615 esi = POP32_VAL(esp); /* 0x4703F008: pop esi */ 3616 MEM32(ebx + 0x18) = 0; /* 0x4703F009: mov dword ptr [ebx + 0x18], 0 */ 3617 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3618 eax = eax | 0xFFFFFFFFu; /* 0x4703F010: or eax, 0xffffffff */ 3619 _cf = 0; 3620 _flag_k = FK_TEST; 3621 ebx = POP32_VAL(esp); /* 0x4703F013: pop ebx */ 3622 ecx = POP32_VAL(esp); /* 0x4703F014: pop ecx */ 3623 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4703F015: ret 0xc */ 3624 L_4703F018: 3625 eax = MEM32(esp + 0xC); /* 0x4703F018: mov eax, dword ptr [esp + 0xc] */ 3626 PUSH32(esp, esi); /* 0x4703F01C: push esi */ 3627 PUSH32(esp, eax); /* 0x4703F01D: push eax */ 3628 ecx = ebx + 0x10; /* 0x4703F01E: lea ecx, [ebx + 0x10] */ 3629 RECOMP_ICALL(0x4703E1B0u); /* 0x4703F021: call 0x4703e1b0 */ /* not lifted */ 3630 RECOMP_FLAGS_IN(); 3631 /* cmp eax, 0xFFFFFFFFu */ /* 0x4703F026: cmp eax, -1 */ 3632 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 3633 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3634 _flag_k = FK_CMP; 3635 MEM32(ebx + 0x18) = eax; /* 0x4703F029: mov dword ptr [ebx + 0x18], eax */ 3636 if (CMP_NE(_flag_a, _flag_b)) goto L_4703F037; /* 0x4703F02C: jne 0x4703f037 */ 3637 L_4703F02E: 3638 edi = POP32_VAL(esp); /* 0x4703F02E: pop edi */ 3639 esi = POP32_VAL(esp); /* 0x4703F02F: pop esi */ 3640 _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax)); 3641 eax = eax | eax; /* 0x4703F030: or eax, eax */ 3642 _cf = 0; 3643 _flag_k = FK_TEST; 3644 ebx = POP32_VAL(esp); /* 0x4703F032: pop ebx */ 3645 ecx = POP32_VAL(esp); /* 0x4703F033: pop ecx */ 3646 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4703F034: ret 0xc */ 3647 L_4703F037: 3648 ecx = MEM32(esp + 0x18); /* 0x4703F037: mov ecx, dword ptr [esp + 0x18] */ 3649 /* cmp ecx, eax */ /* 0x4703F03B: cmp ecx, eax */ 3650 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3651 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3652 _flag_k = FK_CMP; 3653 if (CMP_A(_flag_a, _flag_b)) goto L_4703F041; /* 0x4703F03D: ja 0x4703f041 */ 3654 L_4703F03F: 3655 eax = ecx; /* 0x4703F03F: mov eax, ecx */ 3656 L_4703F041: 3657 edx = MEM32(ebx + 0x1C); /* 0x4703F041: mov edx, dword ptr [ebx + 0x1c] */ 3658 esi = MEM32(ebx + 0x14); /* 0x4703F044: mov esi, dword ptr [ebx + 0x14] */ 3659 edi = MEM32(esp + 0x14); /* 0x4703F047: mov edi, dword ptr [esp + 0x14] */ 3660 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 3661 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3662 esi = esi + edx; /* 0x4703F04B: add esi, edx */ 3663 _flag_k = FK_ADD; 3664 ecx = eax; /* 0x4703F04D: mov ecx, eax */ 3665 edx = ecx; /* 0x4703F04F: mov edx, ecx */ 3666 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4703F051: shr ecx, 2 */ 3667 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3668 ecx = ecx >> 2u; /* 0x4703F051: shr ecx, 2 */ 3669 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4703F054: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 3670 ecx = edx; /* 0x4703F056: mov ecx, edx */ 3671 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 3672 ecx = ecx & 3; /* 0x4703F058: and ecx, 3 */ 3673 _cf = 0; 3674 _flag_k = FK_TEST; 3675 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4703F05B: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 3676 ecx = MEM32(ebx + 0x1C); /* 0x4703F05D: mov ecx, dword ptr [ebx + 0x1c] */ 3677 edi = POP32_VAL(esp); /* 0x4703F060: pop edi */ 3678 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3679 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3680 ecx = ecx + eax; /* 0x4703F061: add ecx, eax */ 3681 _flag_k = FK_ADD; 3682 esi = POP32_VAL(esp); /* 0x4703F063: pop esi */ 3683 MEM32(ebx + 0x1C) = ecx; /* 0x4703F064: mov dword ptr [ebx + 0x1c], ecx */ 3684 ebx = POP32_VAL(esp); /* 0x4703F067: pop ebx */ 3685 ecx = POP32_VAL(esp); /* 0x4703F068: pop ecx */ 3686 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4703F069: ret 0xc */ 3687 RECOMP_REGS_OUT(); 3688 } 3689 3690 void sub_4703F070(void) { 3691 int _fpu_cmp = 0; 3692 uint32_t _cf = 0; 3693 int _df = 1; 3694 uint32_t _flag_k = FK_NONE; 3695 uint32_t _flag_a = 0, _flag_b = 0; 3696 uint32_t _itail_tgt = 0; 3697 RECOMP_REGS_LOCALS 3698 RECOMP_ENTER(0x4703F070u); 3699 3700 L_4703F070: 3701 eax = ecx; /* 0x4703F070: mov eax, ecx */ 3702 ecx = MEM32(esp + 0x4); /* 0x4703F072: mov ecx, dword ptr [esp + 4] */ 3703 edx = MEM32(ecx + 0x4); /* 0x4703F076: mov edx, dword ptr [ecx + 4] */ 3704 MEM32(eax + 0x4) = edx; /* 0x4703F079: mov dword ptr [eax + 4], edx */ 3705 edx = MEM32(ecx + 0x8); /* 0x4703F07C: mov edx, dword ptr [ecx + 8] */ 3706 MEM32(eax + 0x8) = edx; /* 0x4703F07F: mov dword ptr [eax + 8], edx */ 3707 edx = MEM32(ecx + 0x10); /* 0x4703F082: mov edx, dword ptr [ecx + 0x10] */ 3708 MEM32(eax + 0x10) = edx; /* 0x4703F085: mov dword ptr [eax + 0x10], edx */ 3709 edx = MEM32(ecx + 0x14); /* 0x4703F088: mov edx, dword ptr [ecx + 0x14] */ 3710 MEM32(eax + 0x14) = edx; /* 0x4703F08B: mov dword ptr [eax + 0x14], edx */ 3711 PUSH32(esp, esi); /* 0x4703F08E: push esi */ 3712 edx = ecx + 0x18; /* 0x4703F08F: lea edx, [ecx + 0x18] */ 3713 PUSH32(esp, edi); /* 0x4703F092: push edi */ 3714 edi = MEM32(edx); /* 0x4703F093: mov edi, dword ptr [edx] */ 3715 esi = eax + 0x18; /* 0x4703F095: lea esi, [eax + 0x18] */ 3716 MEM32(esi) = edi; /* 0x4703F098: mov dword ptr [esi], edi */ 3717 edi = MEM32(edx + 0x4); /* 0x4703F09A: mov edi, dword ptr [edx + 4] */ 3718 MEM32(esi + 0x4) = edi; /* 0x4703F09D: mov dword ptr [esi + 4], edi */ 3719 edi = MEM32(edx + 0x8); /* 0x4703F0A0: mov edi, dword ptr [edx + 8] */ 3720 MEM32(esi + 0x8) = edi; /* 0x4703F0A3: mov dword ptr [esi + 8], edi */ 3721 edx = MEM32(edx + 0xC); /* 0x4703F0A6: mov edx, dword ptr [edx + 0xc] */ 3722 MEM32(esi + 0xC) = edx; /* 0x4703F0A9: mov dword ptr [esi + 0xc], edx */ 3723 edx = MEM32(ecx + 0x2C); /* 0x4703F0AC: mov edx, dword ptr [ecx + 0x2c] */ 3724 MEM32(eax + 0x2C) = edx; /* 0x4703F0AF: mov dword ptr [eax + 0x2c], edx */ 3725 edx = MEM32(ecx + 0x30); /* 0x4703F0B2: mov edx, dword ptr [ecx + 0x30] */ 3726 MEM32(eax + 0x30) = edx; /* 0x4703F0B5: mov dword ptr [eax + 0x30], edx */ 3727 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x34u); 3728 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3729 ecx = ecx + 0x34u; /* 0x4703F0B8: add ecx, 0x34 */ 3730 _flag_k = FK_ADD; 3731 esi = MEM32(ecx); /* 0x4703F0BB: mov esi, dword ptr [ecx] */ 3732 edx = eax + 0x34; /* 0x4703F0BD: lea edx, [eax + 0x34] */ 3733 MEM32(edx) = esi; /* 0x4703F0C0: mov dword ptr [edx], esi */ 3734 esi = MEM32(ecx + 0x4); /* 0x4703F0C2: mov esi, dword ptr [ecx + 4] */ 3735 MEM32(edx + 0x4) = esi; /* 0x4703F0C5: mov dword ptr [edx + 4], esi */ 3736 esi = MEM32(ecx + 0x8); /* 0x4703F0C8: mov esi, dword ptr [ecx + 8] */ 3737 MEM32(edx + 0x8) = esi; /* 0x4703F0CB: mov dword ptr [edx + 8], esi */ 3738 ecx = MEM32(ecx + 0xC); /* 0x4703F0CE: mov ecx, dword ptr [ecx + 0xc] */ 3739 edi = POP32_VAL(esp); /* 0x4703F0D1: pop edi */ 3740 MEM32(edx + 0xC) = ecx; /* 0x4703F0D2: mov dword ptr [edx + 0xc], ecx */ 3741 esi = POP32_VAL(esp); /* 0x4703F0D5: pop esi */ 3742 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703F0D6: ret 4 */ 3743 RECOMP_REGS_OUT(); 3744 } 3745 3746 void sub_4703F0E0(void) { 3747 int _fpu_cmp = 0; 3748 uint32_t _cf = 0; 3749 int _df = 1; 3750 uint32_t _flag_k = FK_NONE; 3751 uint32_t _flag_a = 0, _flag_b = 0; 3752 uint32_t _itail_tgt = 0; 3753 RECOMP_REGS_LOCALS 3754 RECOMP_ENTER(0x4703F0E0u); 3755 3756 L_4703F0E0: 3757 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703F0E0: push -1 */ 3758 PUSH32(esp, 0x470A6223u); /* 0x4703F0E2: push 0x470a6223 */ 3759 eax = MEM32(FS_BASE + (0)); /* 0x4703F0E7: mov eax, dword ptr fs:[0] */ 3760 PUSH32(esp, eax); /* 0x4703F0ED: push eax */ 3761 MEM32(FS_BASE + (0)) = esp; /* 0x4703F0EE: mov dword ptr fs:[0], esp */ 3762 PUSH32(esp, ecx); /* 0x4703F0F5: push ecx */ 3763 PUSH32(esp, esi); /* 0x4703F0F6: push esi */ 3764 esi = ecx; /* 0x4703F0F7: mov esi, ecx */ 3765 MEM32(esp + 0x4) = esi; /* 0x4703F0F9: mov dword ptr [esp + 4], esi */ 3766 MEM32(esi) = 0x470AD5C4u; /* 0x4703F0FD: mov dword ptr [esi], 0x470ad5c4 */ 3767 ecx = esi + 0x28; /* 0x4703F103: lea ecx, [esi + 0x28] */ 3768 MEM32(esp + 0x10) = 1; /* 0x4703F106: mov dword ptr [esp + 0x10], 1 */ 3769 MEM32(ecx) = 0x470AC520u; /* 0x4703F10E: mov dword ptr [ecx], 0x470ac520 */ 3770 RECOMP_ICALL(0x47014F70u); /* 0x4703F114: call 0x47014f70 */ /* not lifted */ 3771 RECOMP_FLAGS_IN(); 3772 ecx = esi + 0xC; /* 0x4703F119: lea ecx, [esi + 0xc] */ 3773 MEM8(esp + 0x10) = (uint8_t)(0); /* 0x4703F11C: mov byte ptr [esp + 0x10], 0 */ 3774 MEM32(ecx) = 0x470AC520u; /* 0x4703F121: mov dword ptr [ecx], 0x470ac520 */ 3775 RECOMP_ICALL(0x47014F70u); /* 0x4703F127: call 0x47014f70 */ /* not lifted */ 3776 RECOMP_FLAGS_IN(); 3777 ecx = esi; /* 0x4703F12C: mov ecx, esi */ 3778 MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x4703F12E: mov dword ptr [esp + 0x10], 0xffffffff */ 3779 RECOMP_ICALL(0x47014F70u); /* 0x4703F136: call 0x47014f70 */ /* not lifted */ 3780 RECOMP_FLAGS_IN(); 3781 ecx = MEM32(esp + 0x8); /* 0x4703F13B: mov ecx, dword ptr [esp + 8] */ 3782 esi = POP32_VAL(esp); /* 0x4703F13F: pop esi */ 3783 MEM32(FS_BASE + (0)) = ecx; /* 0x4703F140: mov dword ptr fs:[0], ecx */ 3784 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3785 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3786 esp = esp + 0x10u; /* 0x4703F147: add esp, 0x10 */ 3787 _flag_k = FK_ADD; 3788 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703F14A: ret */ 3789 RECOMP_REGS_OUT(); 3790 } 3791 3792 void sub_4703F150(void) { 3793 int _fpu_cmp = 0; 3794 uint32_t _cf = 0; 3795 int _df = 1; 3796 uint32_t _flag_k = FK_NONE; 3797 uint32_t _flag_a = 0, _flag_b = 0; 3798 uint32_t _itail_tgt = 0; 3799 RECOMP_REGS_LOCALS 3800 RECOMP_ENTER(0x4703F150u); 3801 3802 L_4703F150: 3803 PUSH32(esp, ebx); /* 0x4703F150: push ebx */ 3804 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x4703F151: mov bl, byte ptr [esp + 8] */ 3805 /* test LO8(ebx), 2 */ /* 0x4703F155: test bl, 2 */ 3806 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 3807 _cf = 0; 3808 _flag_k = FK_NARROW(FK_TEST, 24); 3809 PUSH32(esp, esi); /* 0x4703F158: push esi */ 3810 esi = ecx; /* 0x4703F159: mov esi, ecx */ 3811 if (TEST_Z(_flag_a, _flag_b)) goto L_4703F188; /* 0x4703F15B: je 0x4703f188 */ 3812 L_4703F15D: 3813 eax = MEM32(esi + (-0x4)); /* 0x4703F15D: mov eax, dword ptr [esi - 4] */ 3814 PUSH32(esp, edi); /* 0x4703F160: push edi */ 3815 PUSH32(esp, 0x4703F0E0u); /* 0x4703F161: push 0x4703f0e0 */ 3816 edi = esi + (-0x4); /* 0x4703F166: lea edi, [esi - 4] */ 3817 PUSH32(esp, eax); /* 0x4703F169: push eax */ 3818 PUSH32(esp, 0x44u); /* 0x4703F16A: push 0x44 */ 3819 PUSH32(esp, esi); /* 0x4703F16C: push esi */ 3820 RECOMP_ICALL(0x470A32EBu); /* 0x4703F16D: call 0x470a32eb */ /* not lifted */ 3821 RECOMP_FLAGS_IN(); 3822 /* test LO8(ebx), 1 */ /* 0x4703F172: test bl, 1 */ 3823 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3824 _cf = 0; 3825 _flag_k = FK_NARROW(FK_TEST, 24); 3826 if (TEST_Z(_flag_a, _flag_b)) goto L_4703F180; /* 0x4703F175: je 0x4703f180 */ 3827 L_4703F177: 3828 PUSH32(esp, edi); /* 0x4703F177: push edi */ 3829 RECOMP_ICALL(0x470A32A2u); /* 0x4703F178: call 0x470a32a2 */ /* not lifted */ 3830 RECOMP_FLAGS_IN(); 3831 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3832 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3833 esp = esp + 4; /* 0x4703F17D: add esp, 4 */ 3834 _flag_k = FK_ADD; 3835 L_4703F180: 3836 eax = edi; /* 0x4703F180: mov eax, edi */ 3837 edi = POP32_VAL(esp); /* 0x4703F182: pop edi */ 3838 esi = POP32_VAL(esp); /* 0x4703F183: pop esi */ 3839 ebx = POP32_VAL(esp); /* 0x4703F184: pop ebx */ 3840 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703F185: ret 4 */ 3841 L_4703F188: 3842 ecx = esi; /* 0x4703F188: mov ecx, esi */ 3843 RECOMP_ICALL(0x4703F0E0u); /* 0x4703F18A: call 0x4703f0e0 */ /* not lifted */ 3844 RECOMP_FLAGS_IN(); 3845 /* test LO8(ebx), 1 */ /* 0x4703F18F: test bl, 1 */ 3846 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3847 _cf = 0; 3848 _flag_k = FK_NARROW(FK_TEST, 24); 3849 if (TEST_Z(_flag_a, _flag_b)) goto L_4703F19D; /* 0x4703F192: je 0x4703f19d */ 3850 L_4703F194: 3851 PUSH32(esp, esi); /* 0x4703F194: push esi */ 3852 RECOMP_ICALL(0x470A32A2u); /* 0x4703F195: call 0x470a32a2 */ /* not lifted */ 3853 RECOMP_FLAGS_IN(); 3854 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3855 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3856 esp = esp + 4; /* 0x4703F19A: add esp, 4 */ 3857 _flag_k = FK_ADD; 3858 L_4703F19D: 3859 eax = esi; /* 0x4703F19D: mov eax, esi */ 3860 esi = POP32_VAL(esp); /* 0x4703F19F: pop esi */ 3861 ebx = POP32_VAL(esp); /* 0x4703F1A0: pop ebx */ 3862 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703F1A1: ret 4 */ 3863 RECOMP_REGS_OUT(); 3864 } 3865 3866 void sub_4703F1B0(void) { 3867 int _fpu_cmp = 0; 3868 uint32_t _cf = 0; 3869 int _df = 1; 3870 uint32_t _flag_k = FK_NONE; 3871 uint32_t _flag_a = 0, _flag_b = 0; 3872 uint32_t _itail_tgt = 0; 3873 RECOMP_REGS_LOCALS 3874 RECOMP_ENTER(0x4703F1B0u); 3875 3876 L_4703F1B0: 3877 PUSH32(esp, ebx); /* 0x4703F1B0: push ebx */ 3878 ebx = MEM32(esp + 0x8); /* 0x4703F1B1: mov ebx, dword ptr [esp + 8] */ 3879 PUSH32(esp, esi); /* 0x4703F1B5: push esi */ 3880 PUSH32(esp, edi); /* 0x4703F1B6: push edi */ 3881 edi = MEM32(esp + 0x14); /* 0x4703F1B7: mov edi, dword ptr [esp + 0x14] */ 3882 esi = ecx; /* 0x4703F1BB: mov esi, ecx */ 3883 PUSH32(esp, edi); /* 0x4703F1BD: push edi */ 3884 PUSH32(esp, ebx); /* 0x4703F1BE: push ebx */ 3885 ecx = esi + 0xC; /* 0x4703F1BF: lea ecx, [esi + 0xc] */ 3886 RECOMP_ICALL(0x47032340u); /* 0x4703F1C2: call 0x47032340 */ /* not lifted */ 3887 RECOMP_FLAGS_IN(); 3888 PUSH32(esp, edi); /* 0x4703F1C7: push edi */ 3889 PUSH32(esp, ebx); /* 0x4703F1C8: push ebx */ 3890 ecx = esi + 0x28; /* 0x4703F1C9: lea ecx, [esi + 0x28] */ 3891 RECOMP_ICALL(0x47032340u); /* 0x4703F1CC: call 0x47032340 */ /* not lifted */ 3892 RECOMP_FLAGS_IN(); 3893 edi = POP32_VAL(esp); /* 0x4703F1D1: pop edi */ 3894 esi = POP32_VAL(esp); /* 0x4703F1D2: pop esi */ 3895 ebx = POP32_VAL(esp); /* 0x4703F1D3: pop ebx */ 3896 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4703F1D4: ret 8 */ 3897 RECOMP_REGS_OUT(); 3898 } 3899 3900 void sub_4703F1E0(void) { 3901 int _fpu_cmp = 0; 3902 uint32_t _cf = 0; 3903 int _df = 1; 3904 uint32_t _flag_k = FK_NONE; 3905 uint32_t _flag_a = 0, _flag_b = 0; 3906 uint32_t _itail_tgt = 0; 3907 RECOMP_REGS_LOCALS 3908 RECOMP_ENTER(0x4703F1E0u); 3909 3910 L_4703F1E0: 3911 PUSH32(esp, ebx); /* 0x4703F1E0: push ebx */ 3912 ebx = MEM32(esp + 0x8); /* 0x4703F1E1: mov ebx, dword ptr [esp + 8] */ 3913 PUSH32(esp, esi); /* 0x4703F1E5: push esi */ 3914 PUSH32(esp, edi); /* 0x4703F1E6: push edi */ 3915 edi = MEM32(esp + 0x14); /* 0x4703F1E7: mov edi, dword ptr [esp + 0x14] */ 3916 esi = ecx; /* 0x4703F1EB: mov esi, ecx */ 3917 PUSH32(esp, edi); /* 0x4703F1ED: push edi */ 3918 PUSH32(esp, ebx); /* 0x4703F1EE: push ebx */ 3919 ecx = esi + 0xC; /* 0x4703F1EF: lea ecx, [esi + 0xc] */ 3920 RECOMP_ICALL(0x47032340u); /* 0x4703F1F2: call 0x47032340 */ /* not lifted */ 3921 RECOMP_FLAGS_IN(); 3922 PUSH32(esp, edi); /* 0x4703F1F7: push edi */ 3923 PUSH32(esp, ebx); /* 0x4703F1F8: push ebx */ 3924 ecx = esi + 0x28; /* 0x4703F1F9: lea ecx, [esi + 0x28] */ 3925 RECOMP_ICALL(0x47032340u); /* 0x4703F1FC: call 0x47032340 */ /* not lifted */ 3926 RECOMP_FLAGS_IN(); 3927 edi = POP32_VAL(esp); /* 0x4703F201: pop edi */ 3928 esi = POP32_VAL(esp); /* 0x4703F202: pop esi */ 3929 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3930 eax = 0; /* 0x4703F203: xor eax, eax */ 3931 _cf = 0; 3932 _flag_k = FK_TEST; 3933 ebx = POP32_VAL(esp); /* 0x4703F205: pop ebx */ 3934 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4703F206: ret 8 */ 3935 RECOMP_REGS_OUT(); 3936 } 3937 3938 void sub_4703F210(void) { 3939 int _fpu_cmp = 0; 3940 uint32_t _cf = 0; 3941 int _df = 1; 3942 uint32_t _flag_k = FK_NONE; 3943 uint32_t _flag_a = 0, _flag_b = 0; 3944 uint32_t _itail_tgt = 0; 3945 RECOMP_REGS_LOCALS 3946 RECOMP_ENTER(0x4703F210u); 3947 3948 L_4703F210: 3949 edx = MEM32(esp + 0x4); /* 0x4703F210: mov edx, dword ptr [esp + 4] */ 3950 eax = MEM32(ecx); /* 0x4703F214: mov eax, dword ptr [ecx] */ 3951 PUSH32(esp, edx); /* 0x4703F216: push edx */ 3952 RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x4703F217: call dword ptr [eax + 0x14] */ 3953 RECOMP_FLAGS_IN(); 3954 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703F21A: ret 4 */ 3955 RECOMP_REGS_OUT(); 3956 } 3957 3958 void sub_4703F220(void) { 3959 int _fpu_cmp = 0; 3960 uint32_t _cf = 0; 3961 int _df = 1; 3962 uint32_t _flag_k = FK_NONE; 3963 uint32_t _flag_a = 0, _flag_b = 0; 3964 uint32_t _itail_tgt = 0; 3965 RECOMP_REGS_LOCALS 3966 RECOMP_ENTER(0x4703F220u); 3967 3968 L_4703F220: 3969 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3970 eax = 0; /* 0x4703F220: xor eax, eax */ 3971 _cf = 0; 3972 _flag_k = FK_TEST; 3973 SET_LO16(eax, MEM16(ecx + 0x36)); /* 0x4703F222: mov ax, word ptr [ecx + 0x36] */ 3974 PUSH32(esp, eax); /* 0x4703F226: push eax */ 3975 RECOMP_ICALL(MEM32(0x470AC460)); /* 0x4703F227: call dword ptr [0x470ac460] */ 3976 RECOMP_FLAGS_IN(); 3977 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703F22D: ret */ 3978 RECOMP_REGS_OUT(); 3979 } 3980 3981 void sub_4703F230(void) { 3982 int _fpu_cmp = 0; 3983 uint32_t _cf = 0; 3984 int _df = 1; 3985 uint32_t _flag_k = FK_NONE; 3986 uint32_t _flag_a = 0, _flag_b = 0; 3987 uint32_t _itail_tgt = 0; 3988 RECOMP_REGS_LOCALS 3989 RECOMP_ENTER(0x4703F230u); 3990 3991 L_4703F230: 3992 ecx = MEM32(ecx + 0x38); /* 0x4703F230: mov ecx, dword ptr [ecx + 0x38] */ 3993 PUSH32(esp, ecx); /* 0x4703F233: push ecx */ 3994 RECOMP_ICALL(MEM32(0x470AC42C)); /* 0x4703F234: call dword ptr [0x470ac42c] */ 3995 RECOMP_FLAGS_IN(); 3996 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703F23A: ret */ 3997 RECOMP_REGS_OUT(); 3998 } 3999 4000 void sub_4703F240(void) { 4001 int _fpu_cmp = 0; 4002 uint32_t _cf = 0; 4003 int _df = 1; 4004 uint32_t _flag_k = FK_NONE; 4005 uint32_t _flag_a = 0, _flag_b = 0; 4006 uint32_t _itail_tgt = 0; 4007 RECOMP_REGS_LOCALS 4008 RECOMP_ENTER(0x4703F240u); 4009 4010 L_4703F240: 4011 eax = MEM32(ecx + 0x1C); /* 0x4703F240: mov eax, dword ptr [ecx + 0x1c] */ 4012 PUSH32(esp, eax); /* 0x4703F243: push eax */ 4013 RECOMP_ICALL(MEM32(0x470AC4B0)); /* 0x4703F244: call dword ptr [0x470ac4b0] */ 4014 RECOMP_FLAGS_IN(); 4015 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703F24A: ret */ 4016 RECOMP_REGS_OUT(); 4017 } 4018 4019 void sub_4703F250(void) { 4020 int _fpu_cmp = 0; 4021 uint32_t _cf = 0; 4022 int _df = 1; 4023 uint32_t _flag_k = FK_NONE; 4024 uint32_t _flag_a = 0, _flag_b = 0; 4025 uint32_t _itail_tgt = 0; 4026 RECOMP_REGS_LOCALS 4027 RECOMP_ENTER(0x4703F250u); 4028 4029 L_4703F250: 4030 eax = ecx + 0x28; /* 0x4703F250: lea eax, [ecx + 0x28] */ 4031 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703F253: ret */ 4032 RECOMP_REGS_OUT(); 4033 } 4034 4035 void sub_4703F260(void) { 4036 int _fpu_cmp = 0; 4037 uint32_t _cf = 0; 4038 int _df = 1; 4039 uint32_t _flag_k = FK_NONE; 4040 uint32_t _flag_a = 0, _flag_b = 0; 4041 uint32_t _itail_tgt = 0; 4042 RECOMP_REGS_LOCALS 4043 RECOMP_ENTER(0x4703F260u); 4044 4045 L_4703F260: 4046 PUSH32(esp, esi); /* 0x4703F260: push esi */ 4047 PUSH32(esp, edi); /* 0x4703F261: push edi */ 4048 edi = MEM32(esp + 0xC); /* 0x4703F262: mov edi, dword ptr [esp + 0xc] */ 4049 esi = ecx; /* 0x4703F266: mov esi, ecx */ 4050 eax = edi + 0xC; /* 0x4703F268: lea eax, [edi + 0xc] */ 4051 PUSH32(esp, eax); /* 0x4703F26B: push eax */ 4052 ecx = esi + 0xC; /* 0x4703F26C: lea ecx, [esi + 0xc] */ 4053 RECOMP_ICALL(0x47031780u); /* 0x4703F26F: call 0x47031780 */ /* not lifted */ 4054 RECOMP_FLAGS_IN(); 4055 /* test eax, eax */ /* 0x4703F274: test eax, eax */ 4056 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4057 _cf = 0; 4058 _flag_k = FK_TEST; 4059 if (TEST_Z(_flag_a, _flag_b)) goto L_4703F292; /* 0x4703F276: je 0x4703f292 */ 4060 L_4703F278: 4061 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x28u); 4062 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4063 edi = edi + 0x28u; /* 0x4703F278: add edi, 0x28 */ 4064 _flag_k = FK_ADD; 4065 PUSH32(esp, edi); /* 0x4703F27B: push edi */ 4066 ecx = esi + 0x28; /* 0x4703F27C: lea ecx, [esi + 0x28] */ 4067 RECOMP_ICALL(0x47031780u); /* 0x4703F27F: call 0x47031780 */ /* not lifted */ 4068 RECOMP_FLAGS_IN(); 4069 /* test eax, eax */ /* 0x4703F284: test eax, eax */ 4070 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4071 _cf = 0; 4072 _flag_k = FK_TEST; 4073 if (TEST_Z(_flag_a, _flag_b)) goto L_4703F292; /* 0x4703F286: je 0x4703f292 */ 4074 L_4703F288: 4075 edi = POP32_VAL(esp); /* 0x4703F288: pop edi */ 4076 eax = 1; /* 0x4703F289: mov eax, 1 */ 4077 esi = POP32_VAL(esp); /* 0x4703F28E: pop esi */ 4078 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703F28F: ret 4 */ 4079 L_4703F292: 4080 edi = POP32_VAL(esp); /* 0x4703F292: pop edi */ 4081 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4082 eax = 0; /* 0x4703F293: xor eax, eax */ 4083 _cf = 0; 4084 _flag_k = FK_TEST; 4085 esi = POP32_VAL(esp); /* 0x4703F295: pop esi */ 4086 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703F296: ret 4 */ 4087 RECOMP_REGS_OUT(); 4088 } 4089 4090 void sub_4703F2A0(void) { 4091 int _fpu_cmp = 0; 4092 uint32_t _cf = 0; 4093 int _df = 1; 4094 uint32_t _flag_k = FK_NONE; 4095 uint32_t _flag_a = 0, _flag_b = 0; 4096 uint32_t _itail_tgt = 0; 4097 RECOMP_REGS_LOCALS 4098 RECOMP_ENTER(0x4703F2A0u); 4099 4100 L_4703F2A0: 4101 eax = MEM32(esp + 0x4); /* 0x4703F2A0: mov eax, dword ptr [esp + 4] */ 4102 PUSH32(esp, eax); /* 0x4703F2A4: push eax */ 4103 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 4104 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4105 ecx = ecx + 0xCu; /* 0x4703F2A5: add ecx, 0xc */ 4106 _flag_k = FK_ADD; 4107 RECOMP_ICALL(0x47031780u); /* 0x4703F2A8: call 0x47031780 */ /* not lifted */ 4108 RECOMP_FLAGS_IN(); 4109 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703F2AD: ret 4 */ 4110 RECOMP_REGS_OUT(); 4111 } 4112 4113 void sub_4703F2B0(void) { 4114 int _fpu_cmp = 0; 4115 uint32_t _cf = 0; 4116 int _df = 1; 4117 uint32_t _flag_k = FK_NONE; 4118 uint32_t _flag_a = 0, _flag_b = 0; 4119 uint32_t _itail_tgt = 0; 4120 RECOMP_REGS_LOCALS 4121 RECOMP_ENTER(0x4703F2B0u); 4122 4123 L_4703F2B0: 4124 PUSH32(esp, esi); /* 0x4703F2B0: push esi */ 4125 PUSH32(esp, edi); /* 0x4703F2B1: push edi */ 4126 edi = MEM32(esp + 0xC); /* 0x4703F2B2: mov edi, dword ptr [esp + 0xc] */ 4127 esi = ecx; /* 0x4703F2B6: mov esi, ecx */ 4128 eax = edi + 0xC; /* 0x4703F2B8: lea eax, [edi + 0xc] */ 4129 PUSH32(esp, eax); /* 0x4703F2BB: push eax */ 4130 ecx = esi + 0xC; /* 0x4703F2BC: lea ecx, [esi + 0xc] */ 4131 RECOMP_ICALL(0x47031780u); /* 0x4703F2BF: call 0x47031780 */ /* not lifted */ 4132 RECOMP_FLAGS_IN(); 4133 /* test eax, eax */ /* 0x4703F2C4: test eax, eax */ 4134 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4135 _cf = 0; 4136 _flag_k = FK_TEST; 4137 if (TEST_Z(_flag_a, _flag_b)) goto L_4703F2EB; /* 0x4703F2C6: je 0x4703f2eb */ 4138 L_4703F2C8: 4139 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x28u); 4140 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4141 edi = edi + 0x28u; /* 0x4703F2C8: add edi, 0x28 */ 4142 _flag_k = FK_ADD; 4143 PUSH32(esp, edi); /* 0x4703F2CB: push edi */ 4144 ecx = esi + 0x28; /* 0x4703F2CC: lea ecx, [esi + 0x28] */ 4145 RECOMP_ICALL(0x47031780u); /* 0x4703F2CF: call 0x47031780 */ /* not lifted */ 4146 RECOMP_FLAGS_IN(); 4147 /* test eax, eax */ /* 0x4703F2D4: test eax, eax */ 4148 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4149 _cf = 0; 4150 _flag_k = FK_TEST; 4151 if (TEST_Z(_flag_a, _flag_b)) goto L_4703F2EB; /* 0x4703F2D6: je 0x4703f2eb */ 4152 L_4703F2D8: 4153 eax = 1; /* 0x4703F2D8: mov eax, 1 */ 4154 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4155 ecx = 0; /* 0x4703F2DD: xor ecx, ecx */ 4156 _cf = 0; 4157 _flag_k = FK_TEST; 4158 /* test eax, eax */ /* 0x4703F2DF: test eax, eax */ 4159 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4160 _cf = 0; 4161 _flag_k = FK_TEST; 4162 SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x4703F2E1: sete cl */ 4163 edi = POP32_VAL(esp); /* 0x4703F2E4: pop edi */ 4164 esi = POP32_VAL(esp); /* 0x4703F2E5: pop esi */ 4165 eax = ecx; /* 0x4703F2E6: mov eax, ecx */ 4166 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703F2E8: ret 4 */ 4167 L_4703F2EB: 4168 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4169 eax = 0; /* 0x4703F2EB: xor eax, eax */ 4170 _cf = 0; 4171 _flag_k = FK_TEST; 4172 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4173 ecx = 0; /* 0x4703F2ED: xor ecx, ecx */ 4174 _cf = 0; 4175 _flag_k = FK_TEST; 4176 /* test eax, eax */ /* 0x4703F2EF: test eax, eax */ 4177 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4178 _cf = 0; 4179 _flag_k = FK_TEST; 4180 SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x4703F2F1: sete cl */ 4181 edi = POP32_VAL(esp); /* 0x4703F2F4: pop edi */ 4182 esi = POP32_VAL(esp); /* 0x4703F2F5: pop esi */ 4183 eax = ecx; /* 0x4703F2F6: mov eax, ecx */ 4184 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703F2F8: ret 4 */ 4185 RECOMP_REGS_OUT(); 4186 } 4187 4188 void sub_4703F300(void) { 4189 int _fpu_cmp = 0; 4190 uint32_t _cf = 0; 4191 int _df = 1; 4192 uint32_t _flag_k = FK_NONE; 4193 uint32_t _flag_a = 0, _flag_b = 0; 4194 uint32_t _itail_tgt = 0; 4195 RECOMP_REGS_LOCALS 4196 RECOMP_ENTER(0x4703F300u); 4197 4198 L_4703F300: 4199 eax = MEM32(esp + 0x4); /* 0x4703F300: mov eax, dword ptr [esp + 4] */ 4200 PUSH32(esp, eax); /* 0x4703F304: push eax */ 4201 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 4202 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4203 ecx = ecx + 0xCu; /* 0x4703F305: add ecx, 0xc */ 4204 _flag_k = FK_ADD; 4205 RECOMP_ICALL(0x47031780u); /* 0x4703F308: call 0x47031780 */ /* not lifted */ 4206 RECOMP_FLAGS_IN(); 4207 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 4208 _cf = (eax) != 0; 4209 eax = (uint32_t)(-(int32_t)eax); /* 0x4703F30D: neg eax */ 4210 _flag_k = FK_CMP; 4211 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x4703F30F: sbb eax, eax */ 4212 eax = _sc ? 0xFFFFFFFFu : 0; 4213 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 4214 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 4215 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4216 eax = eax + 1; /* 0x4703F311: inc eax */ 4217 _flag_k = FK_INC; 4218 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703F312: ret 4 */ 4219 RECOMP_REGS_OUT(); 4220 } 4221 4222 void sub_4703F320(void) { 4223 int _fpu_cmp = 0; 4224 uint32_t _cf = 0; 4225 int _df = 1; 4226 uint32_t _flag_k = FK_NONE; 4227 uint32_t _flag_a = 0, _flag_b = 0; 4228 uint32_t _itail_tgt = 0; 4229 RECOMP_REGS_LOCALS 4230 RECOMP_ENTER(0x4703F320u); 4231 4232 L_4703F320: 4233 eax = MEM32(ecx + 0xC); /* 0x4703F320: mov eax, dword ptr [ecx + 0xc] */ 4234 L_4703F323: 4235 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 4236 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4237 ecx = ecx + 0xCu; /* 0x4703F323: add ecx, 0xc */ 4238 _flag_k = FK_ADD; 4239 L_4703F326: 4240 { _itail_tgt = (uint32_t)(MEM32(eax + 0xC)); goto _ljump; } 4241 { RECOMP_REGS_OUT(); return; } /* end of function */ 4242 _ljump: 4243 switch (_itail_tgt) { 4244 case 0x4703F320u: goto L_4703F320; 4245 case 0x4703F323u: goto L_4703F323; 4246 case 0x4703F326u: goto L_4703F326; 4247 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4248 } 4249 RECOMP_REGS_OUT(); 4250 } 4251 4252 void sub_4703F330(void) { 4253 int _fpu_cmp = 0; 4254 uint32_t _cf = 0; 4255 int _df = 1; 4256 uint32_t _flag_k = FK_NONE; 4257 uint32_t _flag_a = 0, _flag_b = 0; 4258 uint32_t _itail_tgt = 0; 4259 RECOMP_REGS_LOCALS 4260 RECOMP_ENTER(0x4703F330u); 4261 4262 L_4703F330: 4263 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703F330: push -1 */ 4264 PUSH32(esp, 0x470A6238u); /* 0x4703F332: push 0x470a6238 */ 4265 eax = MEM32(FS_BASE + (0)); /* 0x4703F337: mov eax, dword ptr fs:[0] */ 4266 PUSH32(esp, eax); /* 0x4703F33D: push eax */ 4267 MEM32(FS_BASE + (0)) = esp; /* 0x4703F33E: mov dword ptr fs:[0], esp */ 4268 PUSH32(esp, ecx); /* 0x4703F345: push ecx */ 4269 PUSH32(esp, ebx); /* 0x4703F346: push ebx */ 4270 PUSH32(esp, esi); /* 0x4703F347: push esi */ 4271 PUSH32(esp, edi); /* 0x4703F348: push edi */ 4272 edi = MEM32(esp + 0x20); /* 0x4703F349: mov edi, dword ptr [esp + 0x20] */ 4273 eax = MEM32(edi); /* 0x4703F34D: mov eax, dword ptr [edi] */ 4274 ebx = ecx; /* 0x4703F34F: mov ebx, ecx */ 4275 MEM32(esp + 0xC) = ebx; /* 0x4703F351: mov dword ptr [esp + 0xc], ebx */ 4276 MEM32(ebx) = eax; /* 0x4703F355: mov dword ptr [ebx], eax */ 4277 MEM32(ebx + 0x4) = 0; /* 0x4703F357: mov dword ptr [ebx + 4], 0 */ 4278 MEM32(ebx + 0x8) = 0; /* 0x4703F35E: mov dword ptr [ebx + 8], 0 */ 4279 eax = MEM32(edi + 0xC); /* 0x4703F365: mov eax, dword ptr [edi + 0xc] */ 4280 /* test eax, eax */ /* 0x4703F368: test eax, eax */ 4281 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4282 _cf = 0; 4283 _flag_k = FK_TEST; 4284 MEM32(esp + 0x18) = 0; /* 0x4703F36A: mov dword ptr [esp + 0x18], 0 */ 4285 MEM32(ebx + 0xC) = eax; /* 0x4703F372: mov dword ptr [ebx + 0xc], eax */ 4286 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703F37F; /* 0x4703F375: jne 0x4703f37f */ 4287 L_4703F377: 4288 RECOMP_ICALL(0x4703DAC0u); /* 0x4703F377: call 0x4703dac0 */ /* not lifted */ 4289 RECOMP_FLAGS_IN(); 4290 MEM32(ebx + 0xC) = eax; /* 0x4703F37C: mov dword ptr [ebx + 0xc], eax */ 4291 L_4703F37F: 4292 ecx = MEM32(ebx + 0xC); /* 0x4703F37F: mov ecx, dword ptr [ebx + 0xc] */ 4293 edx = MEM32(ecx); /* 0x4703F382: mov edx, dword ptr [ecx] */ 4294 PUSH32(esp, 8); /* 0x4703F384: push 8 */ 4295 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4703F386: call dword ptr [edx + 4] */ 4296 RECOMP_FLAGS_IN(); 4297 /* test eax, eax */ /* 0x4703F389: test eax, eax */ 4298 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4299 _cf = 0; 4300 _flag_k = FK_TEST; 4301 MEM32(ebx + 0x4) = eax; /* 0x4703F38B: mov dword ptr [ebx + 4], eax */ 4302 if (TEST_Z(_flag_a, _flag_b)) goto L_4703F3C4; /* 0x4703F38E: je 0x4703f3c4 */ 4303 L_4703F390: 4304 MEM32(eax) = 0; /* 0x4703F390: mov dword ptr [eax], 0 */ 4305 eax = MEM32(ebx + 0x4); /* 0x4703F396: mov eax, dword ptr [ebx + 4] */ 4306 MEM32(eax) = eax; /* 0x4703F399: mov dword ptr [eax], eax */ 4307 eax = MEM32(edi + 0x4); /* 0x4703F39B: mov eax, dword ptr [edi + 4] */ 4308 esi = MEM32(eax); /* 0x4703F39E: mov esi, dword ptr [eax] */ 4309 /* cmp esi, eax */ /* 0x4703F3A0: cmp esi, eax */ 4310 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 4311 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4312 _flag_k = FK_CMP; 4313 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703F3F2; /* 0x4703F3A2: je 0x4703f3f2 */ 4314 L_4703F3A4: 4315 ecx = MEM32(esi + 0x4); /* 0x4703F3A4: mov ecx, dword ptr [esi + 4] */ 4316 eax = MEM32(ebx + 0x4); /* 0x4703F3A7: mov eax, dword ptr [ebx + 4] */ 4317 MEM32(eax + 0x4) = ecx; /* 0x4703F3AA: mov dword ptr [eax + 4], ecx */ 4318 ecx = MEM32(ebx + 0xC); /* 0x4703F3AD: mov ecx, dword ptr [ebx + 0xc] */ 4319 edx = MEM32(ecx); /* 0x4703F3B0: mov edx, dword ptr [ecx] */ 4320 PUSH32(esp, 8); /* 0x4703F3B2: push 8 */ 4321 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4703F3B4: call dword ptr [edx + 4] */ 4322 RECOMP_FLAGS_IN(); 4323 /* test eax, eax */ /* 0x4703F3B7: test eax, eax */ 4324 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4325 _cf = 0; 4326 _flag_k = FK_TEST; 4327 if (TEST_Z(_flag_a, _flag_b)) goto L_4703F3D2; /* 0x4703F3B9: je 0x4703f3d2 */ 4328 L_4703F3BB: 4329 ecx = MEM32(ebx + 0x4); /* 0x4703F3BB: mov ecx, dword ptr [ebx + 4] */ 4330 edx = MEM32(ecx); /* 0x4703F3BE: mov edx, dword ptr [ecx] */ 4331 MEM32(eax) = edx; /* 0x4703F3C0: mov dword ptr [eax], edx */ 4332 goto L_4703F3E0; /* 0x4703F3C2: jmp 0x4703f3e0 */ 4333 L_4703F3C4: 4334 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4703F3C4: call dword ptr [0x470ac3c8] */ 4335 RECOMP_FLAGS_IN(); 4336 MEM32(eax) = 0xCu; /* 0x4703F3CA: mov dword ptr [eax], 0xc */ 4337 goto L_4703F3F2; /* 0x4703F3D0: jmp 0x4703f3f2 */ 4338 L_4703F3D2: 4339 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4703F3D2: call dword ptr [0x470ac3c8] */ 4340 RECOMP_FLAGS_IN(); 4341 MEM32(eax) = 0xCu; /* 0x4703F3D8: mov dword ptr [eax], 0xc */ 4342 goto L_4703F3EB; /* 0x4703F3DE: jmp 0x4703f3eb */ 4343 L_4703F3E0: 4344 ecx = MEM32(ebx + 0x4); /* 0x4703F3E0: mov ecx, dword ptr [ebx + 4] */ 4345 MEM32(ecx) = eax; /* 0x4703F3E3: mov dword ptr [ecx], eax */ 4346 MEM32(ebx + 0x4) = eax; /* 0x4703F3E5: mov dword ptr [ebx + 4], eax */ 4347 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(1); 4348 MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 1; /* 0x4703F3E8: inc dword ptr [ebx + 8] */ 4349 _flag_k = FK_INC; 4350 L_4703F3EB: 4351 esi = MEM32(esi); /* 0x4703F3EB: mov esi, dword ptr [esi] */ 4352 /* cmp esi, MEM32(edi + 0x4) */ /* 0x4703F3ED: cmp esi, dword ptr [edi + 4] */ 4353 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 4354 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4355 _flag_k = FK_CMP; 4356 RECOMP_BACKEDGE(); 4357 if (CMP_NE(_flag_a, _flag_b)) goto L_4703F3A4; /* 0x4703F3F0: jne 0x4703f3a4 */ 4358 L_4703F3F2: 4359 edx = MEM32(edi + 0x10); /* 0x4703F3F2: mov edx, dword ptr [edi + 0x10] */ 4360 esi = edi + 0x14; /* 0x4703F3F5: lea esi, [edi + 0x14] */ 4361 MEM32(ebx + 0x10) = edx; /* 0x4703F3F8: mov dword ptr [ebx + 0x10], edx */ 4362 edi = ebx + 0x14; /* 0x4703F3FB: lea edi, [ebx + 0x14] */ 4363 ecx = 7; /* 0x4703F3FE: mov ecx, 7 */ 4364 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4703F403: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 4365 ecx = MEM32(esp + 0x10); /* 0x4703F405: mov ecx, dword ptr [esp + 0x10] */ 4366 edi = POP32_VAL(esp); /* 0x4703F409: pop edi */ 4367 esi = POP32_VAL(esp); /* 0x4703F40A: pop esi */ 4368 eax = ebx; /* 0x4703F40B: mov eax, ebx */ 4369 ebx = POP32_VAL(esp); /* 0x4703F40D: pop ebx */ 4370 MEM32(FS_BASE + (0)) = ecx; /* 0x4703F40E: mov dword ptr fs:[0], ecx */ 4371 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4372 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4373 esp = esp + 0x10u; /* 0x4703F415: add esp, 0x10 */ 4374 _flag_k = FK_ADD; 4375 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703F418: ret 4 */ 4376 RECOMP_REGS_OUT(); 4377 } 4378 4379 void sub_4703F420(void) { 4380 int _fpu_cmp = 0; 4381 uint32_t _cf = 0; 4382 int _df = 1; 4383 uint32_t _flag_k = FK_NONE; 4384 uint32_t _flag_a = 0, _flag_b = 0; 4385 uint32_t _itail_tgt = 0; 4386 RECOMP_REGS_LOCALS 4387 RECOMP_ENTER(0x4703F420u); 4388 4389 L_4703F420: 4390 PUSH32(esp, ebx); /* 0x4703F420: push ebx */ 4391 ebx = MEM32(esp + 0x8); /* 0x4703F421: mov ebx, dword ptr [esp + 8] */ 4392 eax = MEM32(ebx); /* 0x4703F425: mov eax, dword ptr [ebx] */ 4393 PUSH32(esp, ebp); /* 0x4703F427: push ebp */ 4394 ebp = ecx; /* 0x4703F428: mov ebp, ecx */ 4395 PUSH32(esp, esi); /* 0x4703F42A: push esi */ 4396 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 4397 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4398 ebx = ebx + 4; /* 0x4703F42B: add ebx, 4 */ 4399 _flag_k = FK_ADD; 4400 esi = ebp + 0x4; /* 0x4703F42E: lea esi, [ebp + 4] */ 4401 /* cmp esi, ebx */ /* 0x4703F431: cmp esi, ebx */ 4402 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4403 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4404 _flag_k = FK_CMP; 4405 PUSH32(esp, edi); /* 0x4703F433: push edi */ 4406 MEM32(ebp) = eax; /* 0x4703F434: mov dword ptr [ebp], eax */ 4407 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703F47C; /* 0x4703F437: je 0x4703f47c */ 4408 L_4703F439: 4409 eax = MEM32(esi); /* 0x4703F439: mov eax, dword ptr [esi] */ 4410 edi = MEM32(eax); /* 0x4703F43B: mov edi, dword ptr [eax] */ 4411 /* cmp edi, eax */ /* 0x4703F43D: cmp edi, eax */ 4412 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4413 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4414 _flag_k = FK_CMP; 4415 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703F45F; /* 0x4703F43F: je 0x4703f45f */ 4416 L_4703F441: 4417 eax = edi; /* 0x4703F441: mov eax, edi */ 4418 /* test eax, eax */ /* 0x4703F443: test eax, eax */ 4419 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4420 _cf = 0; 4421 _flag_k = FK_TEST; 4422 edi = MEM32(edi); /* 0x4703F445: mov edi, dword ptr [edi] */ 4423 if (TEST_Z(_flag_a, _flag_b)) goto L_4703F452; /* 0x4703F447: je 0x4703f452 */ 4424 L_4703F449: 4425 ecx = MEM32(esi + 0x8); /* 0x4703F449: mov ecx, dword ptr [esi + 8] */ 4426 edx = MEM32(ecx); /* 0x4703F44C: mov edx, dword ptr [ecx] */ 4427 PUSH32(esp, eax); /* 0x4703F44E: push eax */ 4428 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4703F44F: call dword ptr [edx + 0xc] */ 4429 RECOMP_FLAGS_IN(); 4430 L_4703F452: 4431 ecx = MEM32(esi + 0x4); /* 0x4703F452: mov ecx, dword ptr [esi + 4] */ 4432 eax = MEM32(esi); /* 0x4703F455: mov eax, dword ptr [esi] */ 4433 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4434 ecx = ecx - 1; /* 0x4703F457: dec ecx */ 4435 _flag_k = FK_DEC; 4436 /* cmp edi, eax */ /* 0x4703F458: cmp edi, eax */ 4437 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4438 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4439 _flag_k = FK_CMP; 4440 MEM32(esi + 0x4) = ecx; /* 0x4703F45A: mov dword ptr [esi + 4], ecx */ 4441 RECOMP_BACKEDGE(); 4442 if (CMP_NE(_flag_a, _flag_b)) goto L_4703F441; /* 0x4703F45D: jne 0x4703f441 */ 4443 L_4703F45F: 4444 eax = MEM32(esi); /* 0x4703F45F: mov eax, dword ptr [esi] */ 4445 MEM32(eax) = eax; /* 0x4703F461: mov dword ptr [eax], eax */ 4446 eax = MEM32(ebx); /* 0x4703F463: mov eax, dword ptr [ebx] */ 4447 edi = MEM32(eax); /* 0x4703F465: mov edi, dword ptr [eax] */ 4448 /* cmp edi, eax */ /* 0x4703F467: cmp edi, eax */ 4449 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4450 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4451 _flag_k = FK_CMP; 4452 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703F47C; /* 0x4703F469: je 0x4703f47c */ 4453 L_4703F46B: 4454 eax = edi + 0x4; /* 0x4703F46B: lea eax, [edi + 4] */ 4455 PUSH32(esp, eax); /* 0x4703F46E: push eax */ 4456 ecx = esi; /* 0x4703F46F: mov ecx, esi */ 4457 RECOMP_ICALL(0x47067230u); /* 0x4703F471: call 0x47067230 */ /* not lifted */ 4458 RECOMP_FLAGS_IN(); 4459 edi = MEM32(edi); /* 0x4703F476: mov edi, dword ptr [edi] */ 4460 /* cmp edi, MEM32(ebx) */ /* 0x4703F478: cmp edi, dword ptr [ebx] */ 4461 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebx)); 4462 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4463 _flag_k = FK_CMP; 4464 RECOMP_BACKEDGE(); 4465 if (CMP_NE(_flag_a, _flag_b)) goto L_4703F46B; /* 0x4703F47A: jne 0x4703f46b */ 4466 L_4703F47C: 4467 eax = MEM32(esp + 0x14); /* 0x4703F47C: mov eax, dword ptr [esp + 0x14] */ 4468 ecx = MEM32(eax + 0x10); /* 0x4703F480: mov ecx, dword ptr [eax + 0x10] */ 4469 MEM32(ebp + 0x10) = ecx; /* 0x4703F483: mov dword ptr [ebp + 0x10], ecx */ 4470 esi = eax + 0x14; /* 0x4703F486: lea esi, [eax + 0x14] */ 4471 edi = ebp + 0x14; /* 0x4703F489: lea edi, [ebp + 0x14] */ 4472 ecx = 7; /* 0x4703F48C: mov ecx, 7 */ 4473 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4703F491: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 4474 edi = POP32_VAL(esp); /* 0x4703F493: pop edi */ 4475 esi = POP32_VAL(esp); /* 0x4703F494: pop esi */ 4476 eax = ebp; /* 0x4703F495: mov eax, ebp */ 4477 ebp = POP32_VAL(esp); /* 0x4703F497: pop ebp */ 4478 ebx = POP32_VAL(esp); /* 0x4703F498: pop ebx */ 4479 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703F499: ret 4 */ 4480 RECOMP_REGS_OUT(); 4481 } 4482 4483 void sub_4703F4A0(void) { 4484 int _fpu_cmp = 0; 4485 uint32_t _cf = 0; 4486 int _df = 1; 4487 uint32_t _flag_k = FK_NONE; 4488 uint32_t _flag_a = 0, _flag_b = 0; 4489 uint32_t _itail_tgt = 0; 4490 RECOMP_REGS_LOCALS 4491 RECOMP_ENTER(0x4703F4A0u); 4492 4493 L_4703F4A0: 4494 eax = MEM32(esp + 0x20); /* 0x4703F4A0: mov eax, dword ptr [esp + 0x20] */ 4495 edx = MEM32(esp + 0x1C); /* 0x4703F4A4: mov edx, dword ptr [esp + 0x1c] */ 4496 PUSH32(esp, eax); /* 0x4703F4A8: push eax */ 4497 eax = MEM32(esp + 0x1C); /* 0x4703F4A9: mov eax, dword ptr [esp + 0x1c] */ 4498 PUSH32(esp, edx); /* 0x4703F4AD: push edx */ 4499 edx = MEM32(esp + 0x1C); /* 0x4703F4AE: mov edx, dword ptr [esp + 0x1c] */ 4500 PUSH32(esp, eax); /* 0x4703F4B2: push eax */ 4501 eax = MEM32(esp + 0x1C); /* 0x4703F4B3: mov eax, dword ptr [esp + 0x1c] */ 4502 PUSH32(esp, edx); /* 0x4703F4B7: push edx */ 4503 edx = MEM32(esp + 0x1C); /* 0x4703F4B8: mov edx, dword ptr [esp + 0x1c] */ 4504 PUSH32(esp, eax); /* 0x4703F4BC: push eax */ 4505 eax = MEM32(esp + 0x1C); /* 0x4703F4BD: mov eax, dword ptr [esp + 0x1c] */ 4506 PUSH32(esp, edx); /* 0x4703F4C1: push edx */ 4507 edx = MEM32(esp + 0x1C); /* 0x4703F4C2: mov edx, dword ptr [esp + 0x1c] */ 4508 PUSH32(esp, eax); /* 0x4703F4C6: push eax */ 4509 PUSH32(esp, edx); /* 0x4703F4C7: push edx */ 4510 RECOMP_ICALL(0x4707B250u); /* 0x4703F4C8: call 0x4707b250 */ /* not lifted */ 4511 RECOMP_FLAGS_IN(); 4512 RECOMP_FLAGS_OUT(); esp += 36; { RECOMP_REGS_OUT(); return; } /* 0x4703F4CD: ret 0x20 */ 4513 RECOMP_REGS_OUT(); 4514 } 4515 4516 void sub_4703F4D0(void) { 4517 int _fpu_cmp = 0; 4518 uint32_t _cf = 0; 4519 int _df = 1; 4520 uint32_t _flag_k = FK_NONE; 4521 uint32_t _flag_a = 0, _flag_b = 0; 4522 uint32_t _itail_tgt = 0; 4523 RECOMP_REGS_LOCALS 4524 RECOMP_ENTER(0x4703F4D0u); 4525 4526 L_4703F4D0: 4527 eax = MEM32(esp + 0x14); /* 0x4703F4D0: mov eax, dword ptr [esp + 0x14] */ 4528 edx = MEM32(esp + 0x10); /* 0x4703F4D4: mov edx, dword ptr [esp + 0x10] */ 4529 PUSH32(esp, eax); /* 0x4703F4D8: push eax */ 4530 eax = MEM32(esp + 0x10); /* 0x4703F4D9: mov eax, dword ptr [esp + 0x10] */ 4531 PUSH32(esp, edx); /* 0x4703F4DD: push edx */ 4532 edx = MEM32(esp + 0x10); /* 0x4703F4DE: mov edx, dword ptr [esp + 0x10] */ 4533 PUSH32(esp, eax); /* 0x4703F4E2: push eax */ 4534 eax = MEM32(esp + 0x10); /* 0x4703F4E3: mov eax, dword ptr [esp + 0x10] */ 4535 PUSH32(esp, edx); /* 0x4703F4E7: push edx */ 4536 PUSH32(esp, eax); /* 0x4703F4E8: push eax */ 4537 RECOMP_ICALL(0x4707AF30u); /* 0x4703F4E9: call 0x4707af30 */ /* not lifted */ 4538 RECOMP_FLAGS_IN(); 4539 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x4703F4EE: ret 0x14 */ 4540 RECOMP_REGS_OUT(); 4541 } 4542 4543 void sub_4703F500(void) { 4544 int _fpu_cmp = 0; 4545 uint32_t _cf = 0; 4546 int _df = 1; 4547 uint32_t _flag_k = FK_NONE; 4548 uint32_t _flag_a = 0, _flag_b = 0; 4549 uint32_t _itail_tgt = 0; 4550 RECOMP_REGS_LOCALS 4551 RECOMP_ENTER(0x4703F500u); 4552 4553 L_4703F500: 4554 eax = MEM32(esp + 0x1C); /* 0x4703F500: mov eax, dword ptr [esp + 0x1c] */ 4555 edx = MEM32(esp + 0x18); /* 0x4703F504: mov edx, dword ptr [esp + 0x18] */ 4556 PUSH32(esp, eax); /* 0x4703F508: push eax */ 4557 eax = MEM32(esp + 0x18); /* 0x4703F509: mov eax, dword ptr [esp + 0x18] */ 4558 PUSH32(esp, edx); /* 0x4703F50D: push edx */ 4559 edx = MEM32(esp + 0x18); /* 0x4703F50E: mov edx, dword ptr [esp + 0x18] */ 4560 PUSH32(esp, eax); /* 0x4703F512: push eax */ 4561 eax = MEM32(esp + 0x18); /* 0x4703F513: mov eax, dword ptr [esp + 0x18] */ 4562 PUSH32(esp, edx); /* 0x4703F517: push edx */ 4563 edx = MEM32(esp + 0x18); /* 0x4703F518: mov edx, dword ptr [esp + 0x18] */ 4564 PUSH32(esp, eax); /* 0x4703F51C: push eax */ 4565 eax = MEM32(esp + 0x18); /* 0x4703F51D: mov eax, dword ptr [esp + 0x18] */ 4566 PUSH32(esp, edx); /* 0x4703F521: push edx */ 4567 PUSH32(esp, eax); /* 0x4703F522: push eax */ 4568 RECOMP_ICALL(0x4707B030u); /* 0x4703F523: call 0x4707b030 */ /* not lifted */ 4569 RECOMP_FLAGS_IN(); 4570 RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x4703F528: ret 0x1c */ 4571 RECOMP_REGS_OUT(); 4572 } 4573 4574 void sub_4703F530(void) { 4575 int _fpu_cmp = 0; 4576 uint32_t _cf = 0; 4577 int _df = 1; 4578 uint32_t _flag_k = FK_NONE; 4579 uint32_t _flag_a = 0, _flag_b = 0; 4580 uint32_t _itail_tgt = 0; 4581 RECOMP_REGS_LOCALS 4582 RECOMP_ENTER(0x4703F530u); 4583 4584 L_4703F530: 4585 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703F530: push -1 */ 4586 PUSH32(esp, 0x470A6258u); /* 0x4703F532: push 0x470a6258 */ 4587 eax = MEM32(FS_BASE + (0)); /* 0x4703F537: mov eax, dword ptr fs:[0] */ 4588 PUSH32(esp, eax); /* 0x4703F53D: push eax */ 4589 MEM32(FS_BASE + (0)) = esp; /* 0x4703F53E: mov dword ptr fs:[0], esp */ 4590 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 4591 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4592 esp = esp - 0x1Cu; /* 0x4703F545: sub esp, 0x1c */ 4593 _flag_k = FK_CMP; 4594 PUSH32(esp, esi); /* 0x4703F548: push esi */ 4595 esi = ecx; /* 0x4703F549: mov esi, ecx */ 4596 PUSH32(esp, edi); /* 0x4703F54B: push edi */ 4597 ecx = esp + 0x8; /* 0x4703F54C: lea ecx, [esp + 8] */ 4598 RECOMP_ICALL(0x470317B0u); /* 0x4703F550: call 0x470317b0 */ /* not lifted */ 4599 RECOMP_FLAGS_IN(); 4600 eax = esp + 0x8; /* 0x4703F555: lea eax, [esp + 8] */ 4601 PUSH32(esp, eax); /* 0x4703F559: push eax */ 4602 ecx = esi; /* 0x4703F55A: mov ecx, esi */ 4603 MEM32(esp + 0x30) = 0; /* 0x4703F55C: mov dword ptr [esp + 0x30], 0 */ 4604 RECOMP_ICALL(0x4707A5F0u); /* 0x4703F564: call 0x4707a5f0 */ /* not lifted */ 4605 RECOMP_FLAGS_IN(); 4606 ecx = MEM32(esp + 0x16); /* 0x4703F569: mov ecx, dword ptr [esp + 0x16] */ 4607 PUSH32(esp, ecx); /* 0x4703F56D: push ecx */ 4608 RECOMP_ICALL(MEM32(0x470AC460)); /* 0x4703F56E: call dword ptr [0x470ac460] */ 4609 RECOMP_FLAGS_IN(); 4610 edi = MEM32(esp + 0x34); /* 0x4703F574: mov edi, dword ptr [esp + 0x34] */ 4611 PUSH32(esp, 1); /* 0x4703F578: push 1 */ 4612 ecx = edi + 0xC; /* 0x4703F57A: lea ecx, [edi + 0xc] */ 4613 esi = eax; /* 0x4703F57D: mov esi, eax */ 4614 PUSH32(esp, esi); /* 0x4703F57F: push esi */ 4615 RECOMP_ICALL(0x47032340u); /* 0x4703F580: call 0x47032340 */ /* not lifted */ 4616 RECOMP_FLAGS_IN(); 4617 PUSH32(esp, 1); /* 0x4703F585: push 1 */ 4618 PUSH32(esp, esi); /* 0x4703F587: push esi */ 4619 ecx = edi + 0x28; /* 0x4703F588: lea ecx, [edi + 0x28] */ 4620 RECOMP_ICALL(0x47032340u); /* 0x4703F58B: call 0x47032340 */ /* not lifted */ 4621 RECOMP_FLAGS_IN(); 4622 ecx = esp + 0x8; /* 0x4703F590: lea ecx, [esp + 8] */ 4623 MEM32(esp + 0x2C) = 0xFFFFFFFFu; /* 0x4703F594: mov dword ptr [esp + 0x2c], 0xffffffff */ 4624 MEM32(esp + 0x8) = 0x470AC520u; /* 0x4703F59C: mov dword ptr [esp + 8], 0x470ac520 */ 4625 RECOMP_ICALL(0x47014F70u); /* 0x4703F5A4: call 0x47014f70 */ /* not lifted */ 4626 RECOMP_FLAGS_IN(); 4627 ecx = MEM32(esp + 0x24); /* 0x4703F5A9: mov ecx, dword ptr [esp + 0x24] */ 4628 edi = POP32_VAL(esp); /* 0x4703F5AD: pop edi */ 4629 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4630 eax = 0; /* 0x4703F5AE: xor eax, eax */ 4631 _cf = 0; 4632 _flag_k = FK_TEST; 4633 esi = POP32_VAL(esp); /* 0x4703F5B0: pop esi */ 4634 MEM32(FS_BASE + (0)) = ecx; /* 0x4703F5B1: mov dword ptr fs:[0], ecx */ 4635 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u); 4636 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4637 esp = esp + 0x28u; /* 0x4703F5B8: add esp, 0x28 */ 4638 _flag_k = FK_ADD; 4639 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703F5BB: ret 4 */ 4640 RECOMP_REGS_OUT(); 4641 } 4642 4643 void sub_4703F5C0(void) { 4644 int _fpu_cmp = 0; 4645 uint32_t _cf = 0; 4646 int _df = 1; 4647 uint32_t _flag_k = FK_NONE; 4648 uint32_t _flag_a = 0, _flag_b = 0; 4649 uint32_t _itail_tgt = 0; 4650 RECOMP_REGS_LOCALS 4651 RECOMP_ENTER(0x4703F5C0u); 4652 4653 L_4703F5C0: 4654 PUSH32(esp, ebx); /* 0x4703F5C0: push ebx */ 4655 PUSH32(esp, esi); /* 0x4703F5C1: push esi */ 4656 esi = MEM32(esp + 0xC); /* 0x4703F5C2: mov esi, dword ptr [esp + 0xc] */ 4657 ebx = ecx; /* 0x4703F5C6: mov ebx, ecx */ 4658 PUSH32(esp, edi); /* 0x4703F5C8: push edi */ 4659 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4660 ecx = ecx | 0xFFFFFFFFu; /* 0x4703F5C9: or ecx, 0xffffffff */ 4661 _cf = 0; 4662 _flag_k = FK_TEST; 4663 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4664 eax = 0; /* 0x4703F5CC: xor eax, eax */ 4665 _cf = 0; 4666 _flag_k = FK_TEST; 4667 edi = esi; /* 0x4703F5CE: mov edi, esi */ 4668 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x4703F5D0: repne scasb al, byte ptr es:[edi] */ 4669 ecx = ~ecx; /* 0x4703F5D2: not ecx */ 4670 PUSH32(esp, ecx); /* 0x4703F5D4: push ecx */ 4671 RECOMP_ICALL(0x470A33F2u); /* 0x4703F5D5: call 0x470a33f2 */ /* not lifted */ 4672 RECOMP_FLAGS_IN(); 4673 edx = eax; /* 0x4703F5DA: mov edx, eax */ 4674 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4675 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4676 esp = esp + 4; /* 0x4703F5DC: add esp, 4 */ 4677 _flag_k = FK_ADD; 4678 /* test edx, edx */ /* 0x4703F5DF: test edx, edx */ 4679 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 4680 _cf = 0; 4681 _flag_k = FK_TEST; 4682 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703F5EC; /* 0x4703F5E1: jne 0x4703f5ec */ 4683 L_4703F5E3: 4684 edi = POP32_VAL(esp); /* 0x4703F5E3: pop edi */ 4685 esi = POP32_VAL(esp); /* 0x4703F5E4: pop esi */ 4686 MEM32(ebx + 0x10) = eax; /* 0x4703F5E5: mov dword ptr [ebx + 0x10], eax */ 4687 ebx = POP32_VAL(esp); /* 0x4703F5E8: pop ebx */ 4688 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703F5E9: ret 4 */ 4689 L_4703F5EC: 4690 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4691 ecx = ecx | 0xFFFFFFFFu; /* 0x4703F5EC: or ecx, 0xffffffff */ 4692 _cf = 0; 4693 _flag_k = FK_TEST; 4694 edi = esi; /* 0x4703F5EF: mov edi, esi */ 4695 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4696 eax = 0; /* 0x4703F5F1: xor eax, eax */ 4697 _cf = 0; 4698 _flag_k = FK_TEST; 4699 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x4703F5F3: repne scasb al, byte ptr es:[edi] */ 4700 ecx = ~ecx; /* 0x4703F5F5: not ecx */ 4701 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 4702 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4703 edi = edi - ecx; /* 0x4703F5F7: sub edi, ecx */ 4704 _flag_k = FK_CMP; 4705 PUSH32(esp, ebp); /* 0x4703F5F9: push ebp */ 4706 ebp = ecx; /* 0x4703F5FA: mov ebp, ecx */ 4707 esi = edi; /* 0x4703F5FC: mov esi, edi */ 4708 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4703F5FE: shr ecx, 2 */ 4709 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4710 ecx = ecx >> 2u; /* 0x4703F5FE: shr ecx, 2 */ 4711 edi = edx; /* 0x4703F601: mov edi, edx */ 4712 eax = edi; /* 0x4703F603: mov eax, edi */ 4713 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4703F605: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 4714 ecx = ebp; /* 0x4703F607: mov ecx, ebp */ 4715 ebp = POP32_VAL(esp); /* 0x4703F609: pop ebp */ 4716 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 4717 ecx = ecx & 3; /* 0x4703F60A: and ecx, 3 */ 4718 _cf = 0; 4719 _flag_k = FK_TEST; 4720 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4703F60D: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 4721 edi = POP32_VAL(esp); /* 0x4703F60F: pop edi */ 4722 esi = POP32_VAL(esp); /* 0x4703F610: pop esi */ 4723 MEM32(ebx + 0x10) = eax; /* 0x4703F611: mov dword ptr [ebx + 0x10], eax */ 4724 ebx = POP32_VAL(esp); /* 0x4703F614: pop ebx */ 4725 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703F615: ret 4 */ 4726 RECOMP_REGS_OUT(); 4727 } 4728 4729 void sub_4703F620(void) { 4730 int _fpu_cmp = 0; 4731 uint32_t _cf = 0; 4732 int _df = 1; 4733 uint32_t _flag_k = FK_NONE; 4734 uint32_t _flag_a = 0, _flag_b = 0; 4735 uint32_t _itail_tgt = 0; 4736 RECOMP_REGS_LOCALS 4737 RECOMP_ENTER(0x4703F620u); 4738 4739 L_4703F620: 4740 MEM32(0x4710E634) = 0x47107D24u; /* 0x4703F620: mov dword ptr [0x4710e634], 0x47107d24 */ 4741 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703F62A: ret */ 4742 RECOMP_REGS_OUT(); 4743 } 4744 4745 void sub_4703F630(void) { 4746 int _fpu_cmp = 0; 4747 uint32_t _cf = 0; 4748 int _df = 1; 4749 uint32_t _flag_k = FK_NONE; 4750 uint32_t _flag_a = 0, _flag_b = 0; 4751 uint32_t _itail_tgt = 0; 4752 RECOMP_REGS_LOCALS 4753 RECOMP_ENTER(0x4703F630u); 4754 4755 L_4703F630: 4756 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703F630: push -1 */ 4757 PUSH32(esp, 0x470A6278u); /* 0x4703F632: push 0x470a6278 */ 4758 eax = MEM32(FS_BASE + (0)); /* 0x4703F637: mov eax, dword ptr fs:[0] */ 4759 PUSH32(esp, eax); /* 0x4703F63D: push eax */ 4760 MEM32(FS_BASE + (0)) = esp; /* 0x4703F63E: mov dword ptr fs:[0], esp */ 4761 PUSH32(esp, ecx); /* 0x4703F645: push ecx */ 4762 PUSH32(esp, esi); /* 0x4703F646: push esi */ 4763 esi = ecx; /* 0x4703F647: mov esi, ecx */ 4764 MEM32(esp + 0x4) = esi; /* 0x4703F649: mov dword ptr [esp + 4], esi */ 4765 RECOMP_ICALL(0x4707ADF0u); /* 0x4703F64D: call 0x4707adf0 */ /* not lifted */ 4766 RECOMP_FLAGS_IN(); 4767 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4768 eax = 0; /* 0x4703F652: xor eax, eax */ 4769 _cf = 0; 4770 _flag_k = FK_TEST; 4771 PUSH32(esp, eax); /* 0x4703F654: push eax */ 4772 PUSH32(esp, 1); /* 0x4703F655: push 1 */ 4773 PUSH32(esp, eax); /* 0x4703F657: push eax */ 4774 PUSH32(esp, eax); /* 0x4703F658: push eax */ 4775 PUSH32(esp, 1); /* 0x4703F659: push 1 */ 4776 PUSH32(esp, 1); /* 0x4703F65B: push 1 */ 4777 PUSH32(esp, 0x04000000u); /* 0x4703F65D: push 0x4000000 */ 4778 ecx = esi + 0x14; /* 0x4703F662: lea ecx, [esi + 0x14] */ 4779 MEM32(esp + 0x2C) = eax; /* 0x4703F665: mov dword ptr [esp + 0x2c], eax */ 4780 MEM32(esi + 0x10) = eax; /* 0x4703F669: mov dword ptr [esi + 0x10], eax */ 4781 RECOMP_ICALL(0x47043560u); /* 0x4703F66C: call 0x47043560 */ /* not lifted */ 4782 RECOMP_FLAGS_IN(); 4783 ecx = MEM32(esp + 0x8); /* 0x4703F671: mov ecx, dword ptr [esp + 8] */ 4784 eax = esi; /* 0x4703F675: mov eax, esi */ 4785 esi = POP32_VAL(esp); /* 0x4703F677: pop esi */ 4786 MEM32(FS_BASE + (0)) = ecx; /* 0x4703F678: mov dword ptr fs:[0], ecx */ 4787 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4788 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4789 esp = esp + 0x10u; /* 0x4703F67F: add esp, 0x10 */ 4790 _flag_k = FK_ADD; 4791 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703F682: ret */ 4792 RECOMP_REGS_OUT(); 4793 } 4794 4795 void sub_4703F690(void) { 4796 int _fpu_cmp = 0; 4797 uint32_t _cf = 0; 4798 int _df = 1; 4799 uint32_t _flag_k = FK_NONE; 4800 uint32_t _flag_a = 0, _flag_b = 0; 4801 uint32_t _itail_tgt = 0; 4802 RECOMP_REGS_LOCALS 4803 RECOMP_ENTER(0x4703F690u); 4804 4805 L_4703F690: 4806 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703F690: push -1 */ 4807 PUSH32(esp, 0x470A6298u); /* 0x4703F692: push 0x470a6298 */ 4808 eax = MEM32(FS_BASE + (0)); /* 0x4703F697: mov eax, dword ptr fs:[0] */ 4809 PUSH32(esp, eax); /* 0x4703F69D: push eax */ 4810 MEM32(FS_BASE + (0)) = esp; /* 0x4703F69E: mov dword ptr fs:[0], esp */ 4811 PUSH32(esp, ecx); /* 0x4703F6A5: push ecx */ 4812 PUSH32(esp, esi); /* 0x4703F6A6: push esi */ 4813 esi = ecx; /* 0x4703F6A7: mov esi, ecx */ 4814 eax = MEM32(esi + 0x10); /* 0x4703F6A9: mov eax, dword ptr [esi + 0x10] */ 4815 PUSH32(esp, edi); /* 0x4703F6AC: push edi */ 4816 PUSH32(esp, eax); /* 0x4703F6AD: push eax */ 4817 MEM32(esp + 0xC) = esi; /* 0x4703F6AE: mov dword ptr [esp + 0xc], esi */ 4818 RECOMP_ICALL(0x470A32A2u); /* 0x4703F6B2: call 0x470a32a2 */ /* not lifted */ 4819 RECOMP_FLAGS_IN(); 4820 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4821 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4822 esp = esp + 4; /* 0x4703F6B7: add esp, 4 */ 4823 _flag_k = FK_ADD; 4824 eax = MEM32(esi + 0x4); /* 0x4703F6BA: mov eax, dword ptr [esi + 4] */ 4825 edi = MEM32(eax); /* 0x4703F6BD: mov edi, dword ptr [eax] */ 4826 /* cmp edi, eax */ /* 0x4703F6BF: cmp edi, eax */ 4827 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4828 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4829 _flag_k = FK_CMP; 4830 MEM32(esp + 0x14) = 0; /* 0x4703F6C1: mov dword ptr [esp + 0x14], 0 */ 4831 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703F6EA; /* 0x4703F6C9: je 0x4703f6ea */ 4832 L_4703F6CB: 4833 eax = edi; /* 0x4703F6CB: mov eax, edi */ 4834 /* test eax, eax */ /* 0x4703F6CD: test eax, eax */ 4835 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4836 _cf = 0; 4837 _flag_k = FK_TEST; 4838 edi = MEM32(edi); /* 0x4703F6CF: mov edi, dword ptr [edi] */ 4839 if (TEST_Z(_flag_a, _flag_b)) goto L_4703F6DC; /* 0x4703F6D1: je 0x4703f6dc */ 4840 L_4703F6D3: 4841 ecx = MEM32(esi + 0xC); /* 0x4703F6D3: mov ecx, dword ptr [esi + 0xc] */ 4842 edx = MEM32(ecx); /* 0x4703F6D6: mov edx, dword ptr [ecx] */ 4843 PUSH32(esp, eax); /* 0x4703F6D8: push eax */ 4844 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4703F6D9: call dword ptr [edx + 0xc] */ 4845 RECOMP_FLAGS_IN(); 4846 L_4703F6DC: 4847 ecx = MEM32(esi + 0x8); /* 0x4703F6DC: mov ecx, dword ptr [esi + 8] */ 4848 eax = MEM32(esi + 0x4); /* 0x4703F6DF: mov eax, dword ptr [esi + 4] */ 4849 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4850 ecx = ecx - 1; /* 0x4703F6E2: dec ecx */ 4851 _flag_k = FK_DEC; 4852 /* cmp edi, eax */ /* 0x4703F6E3: cmp edi, eax */ 4853 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4854 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4855 _flag_k = FK_CMP; 4856 MEM32(esi + 0x8) = ecx; /* 0x4703F6E5: mov dword ptr [esi + 8], ecx */ 4857 RECOMP_BACKEDGE(); 4858 if (CMP_NE(_flag_a, _flag_b)) goto L_4703F6CB; /* 0x4703F6E8: jne 0x4703f6cb */ 4859 L_4703F6EA: 4860 eax = MEM32(esi + 0x4); /* 0x4703F6EA: mov eax, dword ptr [esi + 4] */ 4861 MEM32(eax) = eax; /* 0x4703F6ED: mov dword ptr [eax], eax */ 4862 eax = MEM32(esi + 0x4); /* 0x4703F6EF: mov eax, dword ptr [esi + 4] */ 4863 /* test eax, eax */ /* 0x4703F6F2: test eax, eax */ 4864 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4865 _cf = 0; 4866 _flag_k = FK_TEST; 4867 if (TEST_Z(_flag_a, _flag_b)) goto L_4703F6FF; /* 0x4703F6F4: je 0x4703f6ff */ 4868 L_4703F6F6: 4869 ecx = MEM32(esi + 0xC); /* 0x4703F6F6: mov ecx, dword ptr [esi + 0xc] */ 4870 edx = MEM32(ecx); /* 0x4703F6F9: mov edx, dword ptr [ecx] */ 4871 PUSH32(esp, eax); /* 0x4703F6FB: push eax */ 4872 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4703F6FC: call dword ptr [edx + 0xc] */ 4873 RECOMP_FLAGS_IN(); 4874 L_4703F6FF: 4875 ecx = MEM32(esp + 0xC); /* 0x4703F6FF: mov ecx, dword ptr [esp + 0xc] */ 4876 MEM32(esi + 0x4) = 0; /* 0x4703F703: mov dword ptr [esi + 4], 0 */ 4877 edi = POP32_VAL(esp); /* 0x4703F70A: pop edi */ 4878 esi = POP32_VAL(esp); /* 0x4703F70B: pop esi */ 4879 MEM32(FS_BASE + (0)) = ecx; /* 0x4703F70C: mov dword ptr fs:[0], ecx */ 4880 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4881 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4882 esp = esp + 0x10u; /* 0x4703F713: add esp, 0x10 */ 4883 _flag_k = FK_ADD; 4884 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703F716: ret */ 4885 RECOMP_REGS_OUT(); 4886 } 4887 4888 void sub_4703F720(void) { 4889 int _fpu_cmp = 0; 4890 uint32_t _cf = 0; 4891 int _df = 1; 4892 uint32_t _flag_k = FK_NONE; 4893 uint32_t _flag_a = 0, _flag_b = 0; 4894 uint32_t _itail_tgt = 0; 4895 RECOMP_REGS_LOCALS 4896 RECOMP_ENTER(0x4703F720u); 4897 4898 L_4703F720: 4899 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703F720: push -1 */ 4900 PUSH32(esp, 0x470A62B8u); /* 0x4703F722: push 0x470a62b8 */ 4901 eax = MEM32(FS_BASE + (0)); /* 0x4703F727: mov eax, dword ptr fs:[0] */ 4902 PUSH32(esp, eax); /* 0x4703F72D: push eax */ 4903 MEM32(FS_BASE + (0)) = esp; /* 0x4703F72E: mov dword ptr fs:[0], esp */ 4904 PUSH32(esp, ecx); /* 0x4703F735: push ecx */ 4905 PUSH32(esp, esi); /* 0x4703F736: push esi */ 4906 esi = ecx; /* 0x4703F737: mov esi, ecx */ 4907 PUSH32(esp, edi); /* 0x4703F739: push edi */ 4908 MEM32(esp + 0x8) = esi; /* 0x4703F73A: mov dword ptr [esp + 8], esi */ 4909 RECOMP_ICALL(0x4707ADF0u); /* 0x4703F73E: call 0x4707adf0 */ /* not lifted */ 4910 RECOMP_FLAGS_IN(); 4911 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4912 edi = 0; /* 0x4703F743: xor edi, edi */ 4913 _cf = 0; 4914 _flag_k = FK_TEST; 4915 PUSH32(esp, edi); /* 0x4703F745: push edi */ 4916 PUSH32(esp, 1); /* 0x4703F746: push 1 */ 4917 PUSH32(esp, edi); /* 0x4703F748: push edi */ 4918 PUSH32(esp, edi); /* 0x4703F749: push edi */ 4919 PUSH32(esp, 1); /* 0x4703F74A: push 1 */ 4920 PUSH32(esp, 1); /* 0x4703F74C: push 1 */ 4921 PUSH32(esp, 0x04000000u); /* 0x4703F74E: push 0x4000000 */ 4922 ecx = esi + 0x14; /* 0x4703F753: lea ecx, [esi + 0x14] */ 4923 MEM32(esp + 0x30) = edi; /* 0x4703F756: mov dword ptr [esp + 0x30], edi */ 4924 MEM32(esi + 0x10) = edi; /* 0x4703F75A: mov dword ptr [esi + 0x10], edi */ 4925 RECOMP_ICALL(0x47043560u); /* 0x4703F75D: call 0x47043560 */ /* not lifted */ 4926 RECOMP_FLAGS_IN(); 4927 eax = MEM32(esp + 0x28); /* 0x4703F762: mov eax, dword ptr [esp + 0x28] */ 4928 ecx = MEM32(esp + 0x24); /* 0x4703F766: mov ecx, dword ptr [esp + 0x24] */ 4929 edx = MEM32(esp + 0x20); /* 0x4703F76A: mov edx, dword ptr [esp + 0x20] */ 4930 PUSH32(esp, eax); /* 0x4703F76E: push eax */ 4931 eax = MEM32(esp + 0x20); /* 0x4703F76F: mov eax, dword ptr [esp + 0x20] */ 4932 PUSH32(esp, ecx); /* 0x4703F773: push ecx */ 4933 PUSH32(esp, 2); /* 0x4703F774: push 2 */ 4934 PUSH32(esp, edx); /* 0x4703F776: push edx */ 4935 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x28u); 4936 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4937 eax = eax + 0x28u; /* 0x4703F777: add eax, 0x28 */ 4938 _flag_k = FK_ADD; 4939 PUSH32(esp, eax); /* 0x4703F77A: push eax */ 4940 ecx = esi; /* 0x4703F77B: mov ecx, esi */ 4941 RECOMP_ICALL(0x4707B3A0u); /* 0x4703F77D: call 0x4707b3a0 */ /* not lifted */ 4942 RECOMP_FLAGS_IN(); 4943 /* cmp eax, 0xFFFFFFFFu */ /* 0x4703F782: cmp eax, -1 */ 4944 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 4945 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4946 _flag_k = FK_CMP; 4947 if (CMP_NE(_flag_a, _flag_b)) goto L_4703F7F7; /* 0x4703F785: jne 0x4703f7f7 */ 4948 L_4703F787: 4949 PUSH32(esp, ebx); /* 0x4703F787: push ebx */ 4950 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4703F788: call dword ptr [0x470ac150] */ 4951 RECOMP_FLAGS_IN(); 4952 ebx = eax; /* 0x4703F78E: mov ebx, eax */ 4953 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4703F790: call dword ptr [0x470ac3c8] */ 4954 RECOMP_FLAGS_IN(); 4955 eax = MEM32(eax); /* 0x4703F796: mov eax, dword ptr [eax] */ 4956 /* cmp eax, edi */ /* 0x4703F798: cmp eax, edi */ 4957 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4958 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4959 _flag_k = FK_CMP; 4960 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703F79E; /* 0x4703F79A: je 0x4703f79e */ 4961 L_4703F79C: 4962 ebx = eax; /* 0x4703F79C: mov ebx, eax */ 4963 L_4703F79E: 4964 RECOMP_ICALL(0x47039020u); /* 0x4703F79E: call 0x47039020 */ /* not lifted */ 4965 RECOMP_FLAGS_IN(); 4966 edi = eax; /* 0x4703F7A3: mov edi, eax */ 4967 ecx = edi; /* 0x4703F7A5: mov ecx, edi */ 4968 RECOMP_ICALL(0x4703B210u); /* 0x4703F7A7: call 0x4703b210 */ /* not lifted */ 4969 RECOMP_FLAGS_IN(); 4970 PUSH32(esp, eax); /* 0x4703F7AC: push eax */ 4971 ecx = edi; /* 0x4703F7AD: mov ecx, edi */ 4972 RECOMP_ICALL(0x4703B240u); /* 0x4703F7AF: call 0x4703b240 */ /* not lifted */ 4973 RECOMP_FLAGS_IN(); 4974 PUSH32(esp, eax); /* 0x4703F7B4: push eax */ 4975 ecx = edi; /* 0x4703F7B5: mov ecx, edi */ 4976 RECOMP_ICALL(0x4703B080u); /* 0x4703F7B7: call 0x4703b080 */ /* not lifted */ 4977 RECOMP_FLAGS_IN(); 4978 PUSH32(esp, eax); /* 0x4703F7BC: push eax */ 4979 PUSH32(esp, ebx); /* 0x4703F7BD: push ebx */ 4980 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703F7BE: push -1 */ 4981 PUSH32(esp, 0x31u); /* 0x4703F7C0: push 0x31 */ 4982 PUSH32(esp, 0x47107D80u); /* 0x4703F7C2: push 0x47107d80 */ 4983 ecx = edi; /* 0x4703F7C7: mov ecx, edi */ 4984 RECOMP_ICALL(0x4703A340u); /* 0x4703F7C9: call 0x4703a340 */ /* not lifted */ 4985 RECOMP_FLAGS_IN(); 4986 PUSH32(esp, 0x47107D5Cu); /* 0x4703F7CE: push 0x47107d5c */ 4987 PUSH32(esp, 0x80u); /* 0x4703F7D3: push 0x80 */ 4988 PUSH32(esp, edi); /* 0x4703F7D8: push edi */ 4989 RECOMP_ICALL(0x47039830u); /* 0x4703F7D9: call 0x47039830 */ /* not lifted */ 4990 RECOMP_FLAGS_IN(); 4991 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4992 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4993 esp = esp + 0xCu; /* 0x4703F7DE: add esp, 0xc */ 4994 _flag_k = FK_ADD; 4995 ebx = POP32_VAL(esp); /* 0x4703F7E1: pop ebx */ 4996 edi = POP32_VAL(esp); /* 0x4703F7E2: pop edi */ 4997 eax = esi; /* 0x4703F7E3: mov eax, esi */ 4998 esi = POP32_VAL(esp); /* 0x4703F7E5: pop esi */ 4999 ecx = MEM32(esp + 0x4); /* 0x4703F7E6: mov ecx, dword ptr [esp + 4] */ 5000 MEM32(FS_BASE + (0)) = ecx; /* 0x4703F7EA: mov dword ptr fs:[0], ecx */ 5001 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5002 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5003 esp = esp + 0x10u; /* 0x4703F7F1: add esp, 0x10 */ 5004 _flag_k = FK_ADD; 5005 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4703F7F4: ret 0x10 */ 5006 L_4703F7F7: 5007 ecx = MEM32(esp + 0xC); /* 0x4703F7F7: mov ecx, dword ptr [esp + 0xc] */ 5008 edi = POP32_VAL(esp); /* 0x4703F7FB: pop edi */ 5009 eax = esi; /* 0x4703F7FC: mov eax, esi */ 5010 esi = POP32_VAL(esp); /* 0x4703F7FE: pop esi */ 5011 MEM32(FS_BASE + (0)) = ecx; /* 0x4703F7FF: mov dword ptr fs:[0], ecx */ 5012 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5013 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5014 esp = esp + 0x10u; /* 0x4703F806: add esp, 0x10 */ 5015 _flag_k = FK_ADD; 5016 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4703F809: ret 0x10 */ 5017 RECOMP_REGS_OUT(); 5018 } 5019 5020 void sub_4703F810(void) { 5021 int _fpu_cmp = 0; 5022 uint32_t _cf = 0; 5023 int _df = 1; 5024 uint32_t _flag_k = FK_NONE; 5025 uint32_t _flag_a = 0, _flag_b = 0; 5026 uint32_t _itail_tgt = 0; 5027 RECOMP_REGS_LOCALS 5028 RECOMP_ENTER(0x4703F810u); 5029 5030 L_4703F810: 5031 eax = MEM32(esp + 0x10); /* 0x4703F810: mov eax, dword ptr [esp + 0x10] */ 5032 edx = MEM32(esp + 0xC); /* 0x4703F814: mov edx, dword ptr [esp + 0xc] */ 5033 PUSH32(esp, eax); /* 0x4703F818: push eax */ 5034 eax = MEM32(esp + 0xC); /* 0x4703F819: mov eax, dword ptr [esp + 0xc] */ 5035 PUSH32(esp, edx); /* 0x4703F81D: push edx */ 5036 edx = MEM32(esp + 0xC); /* 0x4703F81E: mov edx, dword ptr [esp + 0xc] */ 5037 PUSH32(esp, 2); /* 0x4703F822: push 2 */ 5038 PUSH32(esp, eax); /* 0x4703F824: push eax */ 5039 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x28u); 5040 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5041 edx = edx + 0x28u; /* 0x4703F825: add edx, 0x28 */ 5042 _flag_k = FK_ADD; 5043 PUSH32(esp, edx); /* 0x4703F828: push edx */ 5044 RECOMP_ICALL(0x4707B3A0u); /* 0x4703F829: call 0x4707b3a0 */ /* not lifted */ 5045 RECOMP_FLAGS_IN(); 5046 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4703F82E: ret 0x10 */ 5047 RECOMP_REGS_OUT(); 5048 } 5049 5050 void sub_4703F840(void) { 5051 int _fpu_cmp = 0; 5052 uint32_t _cf = 0; 5053 int _df = 1; 5054 uint32_t _flag_k = FK_NONE; 5055 uint32_t _flag_a = 0, _flag_b = 0; 5056 uint32_t _itail_tgt = 0; 5057 RECOMP_REGS_LOCALS 5058 RECOMP_ENTER(0x4703F840u); 5059 5060 L_4703F840: 5061 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703F840: push -1 */ 5062 PUSH32(esp, 0x470A62E6u); /* 0x4703F842: push 0x470a62e6 */ 5063 eax = MEM32(FS_BASE + (0)); /* 0x4703F847: mov eax, dword ptr fs:[0] */ 5064 PUSH32(esp, eax); /* 0x4703F84D: push eax */ 5065 MEM32(FS_BASE + (0)) = esp; /* 0x4703F84E: mov dword ptr fs:[0], esp */ 5066 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24Cu); 5067 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5068 esp = esp - 0x24Cu; /* 0x4703F855: sub esp, 0x24c */ 5069 _flag_k = FK_CMP; 5070 edx = MEM32(esp + 0x264); /* 0x4703F85B: mov edx, dword ptr [esp + 0x264] */ 5071 PUSH32(esp, ebx); /* 0x4703F862: push ebx */ 5072 PUSH32(esp, ebp); /* 0x4703F863: push ebp */ 5073 PUSH32(esp, esi); /* 0x4703F864: push esi */ 5074 PUSH32(esp, edi); /* 0x4703F865: push edi */ 5075 ebp = ecx; /* 0x4703F866: mov ebp, ecx */ 5076 ecx = MEM32(esp + 0x278); /* 0x4703F868: mov ecx, dword ptr [esp + 0x278] */ 5077 eax = esp + 0x10; /* 0x4703F86F: lea eax, [esp + 0x10] */ 5078 PUSH32(esp, eax); /* 0x4703F873: push eax */ 5079 PUSH32(esp, ecx); /* 0x4703F874: push ecx */ 5080 PUSH32(esp, edx); /* 0x4703F875: push edx */ 5081 ecx = ebp; /* 0x4703F876: mov ecx, ebp */ 5082 MEM32(esp + 0x1C) = 0; /* 0x4703F878: mov dword ptr [esp + 0x1c], 0 */ 5083 RECOMP_ICALL(0x4707AE00u); /* 0x4703F880: call 0x4707ae00 */ /* not lifted */ 5084 RECOMP_FLAGS_IN(); 5085 /* cmp eax, 0xFFFFFFFFu */ /* 0x4703F885: cmp eax, -1 */ 5086 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 5087 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5088 _flag_k = FK_CMP; 5089 if (CMP_NE(_flag_a, _flag_b)) goto L_4703F891; /* 0x4703F888: jne 0x4703f891 */ 5090 L_4703F88A: 5091 _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax)); 5092 eax = eax | eax; /* 0x4703F88A: or eax, eax */ 5093 _cf = 0; 5094 _flag_k = FK_TEST; 5095 goto L_4703FB27; /* 0x4703F88C: jmp 0x4703fb27 */ 5096 L_4703F891: 5097 edi = MEM32(0x470AC3C8); /* 0x4703F891: mov edi, dword ptr [0x470ac3c8] */ 5098 ebx = MEM32(0x470AC4A0); /* 0x4703F897: mov ebx, dword ptr [0x470ac4a0] */ 5099 L_4703F89D: 5100 eax = MEM32(ebp); /* 0x4703F89D: mov eax, dword ptr [ebp] */ 5101 PUSH32(esp, 0); /* 0x4703F8A0: push 0 */ 5102 PUSH32(esp, 0); /* 0x4703F8A2: push 0 */ 5103 PUSH32(esp, eax); /* 0x4703F8A4: push eax */ 5104 RECOMP_ICALL(ebx); /* 0x4703F8A5: call ebx */ 5105 RECOMP_FLAGS_IN(); 5106 /* cmp eax, 0xFFFFFFFFu */ /* 0x4703F8A7: cmp eax, -1 */ 5107 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 5108 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5109 _flag_k = FK_CMP; 5110 if (CMP_NE(_flag_a, _flag_b)) goto L_4703F8BB; /* 0x4703F8AA: jne 0x4703f8bb */ 5111 L_4703F8AC: 5112 RECOMP_ICALL(MEM32(0x470AC4A4)); /* 0x4703F8AC: call dword ptr [0x470ac4a4] */ 5113 RECOMP_FLAGS_IN(); 5114 esi = eax; /* 0x4703F8B2: mov esi, eax */ 5115 RECOMP_ICALL(edi); /* 0x4703F8B4: call edi */ 5116 RECOMP_FLAGS_IN(); 5117 MEM32(eax) = esi; /* 0x4703F8B6: mov dword ptr [eax], esi */ 5118 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5119 eax = eax | 0xFFFFFFFFu; /* 0x4703F8B8: or eax, 0xffffffff */ 5120 _cf = 0; 5121 _flag_k = FK_TEST; 5122 L_4703F8BB: 5123 /* cmp eax, 0xFFFFFFFFu */ /* 0x4703F8BB: cmp eax, -1 */ 5124 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 5125 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5126 _flag_k = FK_CMP; 5127 ecx = MEM32(esp + 0x26C); /* 0x4703F8BE: mov ecx, dword ptr [esp + 0x26c] */ 5128 MEM32(ecx) = eax; /* 0x4703F8C5: mov dword ptr [ecx], eax */ 5129 if (CMP_NE(_flag_a, _flag_b)) goto L_4703F8E6; /* 0x4703F8C7: jne 0x4703f8e6 */ 5130 L_4703F8C9: 5131 eax = MEM32(esp + 0x278); /* 0x4703F8C9: mov eax, dword ptr [esp + 0x278] */ 5132 /* test eax, eax */ /* 0x4703F8D0: test eax, eax */ 5133 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5134 _cf = 0; 5135 _flag_k = FK_TEST; 5136 if (TEST_Z(_flag_a, _flag_b)) goto L_4703F8E6; /* 0x4703F8D2: je 0x4703f8e6 */ 5137 L_4703F8D4: 5138 RECOMP_ICALL(edi); /* 0x4703F8D4: call edi */ 5139 RECOMP_FLAGS_IN(); 5140 /* cmp MEM32(eax), 4 */ /* 0x4703F8D6: cmp dword ptr [eax], 4 */ 5141 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(4); 5142 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5143 _flag_k = FK_CMP; 5144 if (CMP_NE(_flag_a, _flag_b)) goto L_4703F8E6; /* 0x4703F8D9: jne 0x4703f8e6 */ 5145 L_4703F8DB: 5146 eax = MEM32(esp + 0x274); /* 0x4703F8DB: mov eax, dword ptr [esp + 0x274] */ 5147 /* test eax, eax */ /* 0x4703F8E2: test eax, eax */ 5148 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5149 _cf = 0; 5150 _flag_k = FK_TEST; 5151 RECOMP_BACKEDGE(); 5152 if (TEST_Z(_flag_a, _flag_b)) goto L_4703F89D; /* 0x4703F8E4: je 0x4703f89d */ 5153 L_4703F8E6: 5154 edi = MEM32(esp + 0x270); /* 0x4703F8E6: mov edi, dword ptr [esp + 0x270] */ 5155 /* test edi, edi */ /* 0x4703F8ED: test edi, edi */ 5156 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5157 _cf = 0; 5158 _flag_k = FK_TEST; 5159 ebx = MEM32(0x470AC460); /* 0x4703F8EF: mov ebx, dword ptr [0x470ac460] */ 5160 if (TEST_Z(_flag_a, _flag_b)) goto L_4703F94C; /* 0x4703F8F5: je 0x4703f94c */ 5161 L_4703F8F7: 5162 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5163 eax = 0; /* 0x4703F8F7: xor eax, eax */ 5164 _cf = 0; 5165 _flag_k = FK_TEST; 5166 edx = MEM32(eax); /* 0x4703F8F9: mov edx, dword ptr [eax] */ 5167 PUSH32(esp, edx); /* 0x4703F8FB: push edx */ 5168 PUSH32(esp, eax); /* 0x4703F8FC: push eax */ 5169 ecx = esp + 0x40; /* 0x4703F8FD: lea ecx, [esp + 0x40] */ 5170 RECOMP_ICALL(0x47031EF0u); /* 0x4703F901: call 0x47031ef0 */ /* not lifted */ 5171 RECOMP_FLAGS_IN(); 5172 eax = MEM32(esp + 0x46); /* 0x4703F906: mov eax, dword ptr [esp + 0x46] */ 5173 PUSH32(esp, eax); /* 0x4703F90A: push eax */ 5174 MEM32(esp + 0x268) = 0; /* 0x4703F90B: mov dword ptr [esp + 0x268], 0 */ 5175 RECOMP_ICALL(ebx); /* 0x4703F916: call ebx */ 5176 RECOMP_FLAGS_IN(); 5177 PUSH32(esp, 1); /* 0x4703F918: push 1 */ 5178 ecx = edi + 0xC; /* 0x4703F91A: lea ecx, [edi + 0xc] */ 5179 esi = eax; /* 0x4703F91D: mov esi, eax */ 5180 PUSH32(esp, esi); /* 0x4703F91F: push esi */ 5181 RECOMP_ICALL(0x47032340u); /* 0x4703F920: call 0x47032340 */ /* not lifted */ 5182 RECOMP_FLAGS_IN(); 5183 PUSH32(esp, 1); /* 0x4703F925: push 1 */ 5184 PUSH32(esp, esi); /* 0x4703F927: push esi */ 5185 ecx = edi + 0x28; /* 0x4703F928: lea ecx, [edi + 0x28] */ 5186 RECOMP_ICALL(0x47032340u); /* 0x4703F92B: call 0x47032340 */ /* not lifted */ 5187 RECOMP_FLAGS_IN(); 5188 ecx = esp + 0x38; /* 0x4703F930: lea ecx, [esp + 0x38] */ 5189 MEM32(esp + 0x264) = 0xFFFFFFFFu; /* 0x4703F934: mov dword ptr [esp + 0x264], 0xffffffff */ 5190 MEM32(esp + 0x38) = 0x470AC520u; /* 0x4703F93F: mov dword ptr [esp + 0x38], 0x470ac520 */ 5191 RECOMP_ICALL(0x47014F70u); /* 0x4703F947: call 0x47014f70 */ /* not lifted */ 5192 RECOMP_FLAGS_IN(); 5193 L_4703F94C: 5194 ecx = MEM32(esp + 0x27C); /* 0x4703F94C: mov ecx, dword ptr [esp + 0x27c] */ 5195 edx = MEM32(esp + 0x10); /* 0x4703F953: mov edx, dword ptr [esp + 0x10] */ 5196 esi = MEM32(esp + 0x26C); /* 0x4703F957: mov esi, dword ptr [esp + 0x26c] */ 5197 PUSH32(esp, ecx); /* 0x4703F95E: push ecx */ 5198 PUSH32(esp, edx); /* 0x4703F95F: push edx */ 5199 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 5200 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5201 esp = esp - 0x20u; /* 0x4703F960: sub esp, 0x20 */ 5202 _flag_k = FK_CMP; 5203 ecx = esp; /* 0x4703F963: mov ecx, esp */ 5204 MEM32(esp + 0x5C) = esp; /* 0x4703F965: mov dword ptr [esp + 0x5c], esp */ 5205 PUSH32(esp, esi); /* 0x4703F969: push esi */ 5206 RECOMP_ICALL(0x4703EB30u); /* 0x4703F96A: call 0x4703eb30 */ /* not lifted */ 5207 RECOMP_FLAGS_IN(); 5208 ecx = ebp; /* 0x4703F96F: mov ecx, ebp */ 5209 RECOMP_ICALL(0x4703FB50u); /* 0x4703F971: call 0x4703fb50 */ /* not lifted */ 5210 RECOMP_FLAGS_IN(); 5211 /* cmp eax, 0xFFFFFFFFu */ /* 0x4703F976: cmp eax, -1 */ 5212 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 5213 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5214 _flag_k = FK_CMP; 5215 if (CMP_NE(_flag_a, _flag_b)) goto L_4703F982; /* 0x4703F979: jne 0x4703f982 */ 5216 L_4703F97B: 5217 _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax)); 5218 eax = eax | eax; /* 0x4703F97B: or eax, eax */ 5219 _cf = 0; 5220 _flag_k = FK_TEST; 5221 goto L_4703FB27; /* 0x4703F97D: jmp 0x4703fb27 */ 5222 L_4703F982: 5223 ecx = esp + 0x18; /* 0x4703F982: lea ecx, [esp + 0x18] */ 5224 RECOMP_ICALL(0x470317B0u); /* 0x4703F986: call 0x470317b0 */ /* not lifted */ 5225 RECOMP_FLAGS_IN(); 5226 eax = esp + 0x18; /* 0x4703F98B: lea eax, [esp + 0x18] */ 5227 PUSH32(esp, eax); /* 0x4703F98F: push eax */ 5228 ecx = esi; /* 0x4703F990: mov ecx, esi */ 5229 MEM32(esp + 0x268) = 1; /* 0x4703F992: mov dword ptr [esp + 0x268], 1 */ 5230 RECOMP_ICALL(0x4707A5F0u); /* 0x4703F99D: call 0x4707a5f0 */ /* not lifted */ 5231 RECOMP_FLAGS_IN(); 5232 /* cmp eax, 0xFFFFFFFFu */ /* 0x4703F9A2: cmp eax, -1 */ 5233 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 5234 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5235 _flag_k = FK_CMP; 5236 if (CMP_NE(_flag_a, _flag_b)) goto L_4703F9C7; /* 0x4703F9A5: jne 0x4703f9c7 */ 5237 L_4703F9A7: 5238 ecx = esp + 0x18; /* 0x4703F9A7: lea ecx, [esp + 0x18] */ 5239 MEM32(esp + 0x264) = eax; /* 0x4703F9AB: mov dword ptr [esp + 0x264], eax */ 5240 MEM32(esp + 0x18) = 0x470AC520u; /* 0x4703F9B2: mov dword ptr [esp + 0x18], 0x470ac520 */ 5241 RECOMP_ICALL(0x47014F70u); /* 0x4703F9BA: call 0x47014f70 */ /* not lifted */ 5242 RECOMP_FLAGS_IN(); 5243 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5244 eax = eax | 0xFFFFFFFFu; /* 0x4703F9BF: or eax, 0xffffffff */ 5245 _cf = 0; 5246 _flag_k = FK_TEST; 5247 goto L_4703FB27; /* 0x4703F9C2: jmp 0x4703fb27 */ 5248 L_4703F9C7: 5249 eax = MEM32(ebp + 0x10); /* 0x4703F9C7: mov eax, dword ptr [ebp + 0x10] */ 5250 /* test eax, eax */ /* 0x4703F9CA: test eax, eax */ 5251 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5252 _cf = 0; 5253 _flag_k = FK_TEST; 5254 if (TEST_Z(_flag_a, _flag_b)) goto L_4703F9F3; /* 0x4703F9CC: je 0x4703f9f3 */ 5255 L_4703F9CE: 5256 ecx = MEM32(esp + 0x26); /* 0x4703F9CE: mov ecx, dword ptr [esp + 0x26] */ 5257 PUSH32(esp, ecx); /* 0x4703F9D2: push ecx */ 5258 RECOMP_ICALL(ebx); /* 0x4703F9D3: call ebx */ 5259 RECOMP_FLAGS_IN(); 5260 edx = MEM32(ebp + 0x10); /* 0x4703F9D5: mov edx, dword ptr [ebp + 0x10] */ 5261 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 5262 eax = eax & 0xFFFFu; /* 0x4703F9D8: and eax, 0xffff */ 5263 _cf = 0; 5264 _flag_k = FK_TEST; 5265 PUSH32(esp, eax); /* 0x4703F9DD: push eax */ 5266 PUSH32(esp, edx); /* 0x4703F9DE: push edx */ 5267 eax = esp + 0x5C; /* 0x4703F9DF: lea eax, [esp + 0x5c] */ 5268 PUSH32(esp, 0x47107DE4u); /* 0x4703F9E3: push 0x47107de4 */ 5269 PUSH32(esp, eax); /* 0x4703F9E8: push eax */ 5270 RECOMP_ICALL(0x47054FC0u); /* 0x4703F9E9: call 0x47054fc0 */ /* not lifted */ 5271 RECOMP_FLAGS_IN(); 5272 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5273 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5274 esp = esp + 0x10u; /* 0x4703F9EE: add esp, 0x10 */ 5275 _flag_k = FK_ADD; 5276 goto L_4703FA2E; /* 0x4703F9F1: jmp 0x4703fa2e */ 5277 L_4703F9F3: 5278 PUSH32(esp, 0x47107DDCu); /* 0x4703F9F3: push 0x47107ddc */ 5279 RECOMP_ICALL(MEM32(0x470AC268)); /* 0x4703F9F8: call dword ptr [0x470ac268] */ 5280 RECOMP_FLAGS_IN(); 5281 esi = eax; /* 0x4703F9FE: mov esi, eax */ 5282 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5283 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5284 esp = esp + 4; /* 0x4703FA00: add esp, 4 */ 5285 _flag_k = FK_ADD; 5286 /* test esi, esi */ /* 0x4703FA03: test esi, esi */ 5287 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 5288 _cf = 0; 5289 _flag_k = FK_TEST; 5290 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703FA0C; /* 0x4703FA05: jne 0x4703fa0c */ 5291 L_4703FA07: 5292 esi = 0x47107DD4u; /* 0x4703FA07: mov esi, 0x47107dd4 */ 5293 L_4703FA0C: 5294 ecx = MEM32(esp + 0x26); /* 0x4703FA0C: mov ecx, dword ptr [esp + 0x26] */ 5295 PUSH32(esp, ecx); /* 0x4703FA10: push ecx */ 5296 RECOMP_ICALL(ebx); /* 0x4703FA11: call ebx */ 5297 RECOMP_FLAGS_IN(); 5298 edx = esp + 0x54; /* 0x4703FA13: lea edx, [esp + 0x54] */ 5299 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 5300 eax = eax & 0xFFFFu; /* 0x4703FA17: and eax, 0xffff */ 5301 _cf = 0; 5302 _flag_k = FK_TEST; 5303 PUSH32(esp, eax); /* 0x4703FA1C: push eax */ 5304 PUSH32(esp, 0x5Cu); /* 0x4703FA1D: push 0x5c */ 5305 PUSH32(esp, esi); /* 0x4703FA1F: push esi */ 5306 PUSH32(esp, 0x47107DBCu); /* 0x4703FA20: push 0x47107dbc */ 5307 PUSH32(esp, edx); /* 0x4703FA25: push edx */ 5308 RECOMP_ICALL(0x47054FC0u); /* 0x4703FA26: call 0x47054fc0 */ /* not lifted */ 5309 RECOMP_FLAGS_IN(); 5310 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 5311 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5312 esp = esp + 0x14u; /* 0x4703FA2B: add esp, 0x14 */ 5313 _flag_k = FK_ADD; 5314 L_4703FA2E: 5315 ecx = MEM32(esp + 0x26C); /* 0x4703FA2E: mov ecx, dword ptr [esp + 0x26c] */ 5316 PUSH32(esp, 0x104u); /* 0x4703FA35: push 0x104 */ 5317 eax = esp + 0x15C; /* 0x4703FA3A: lea eax, [esp + 0x15c] */ 5318 PUSH32(esp, eax); /* 0x4703FA41: push eax */ 5319 PUSH32(esp, ecx); /* 0x4703FA42: push ecx */ 5320 RECOMP_ICALL(0x470562C0u); /* 0x4703FA43: call 0x470562c0 */ /* not lifted */ 5321 RECOMP_FLAGS_IN(); 5322 _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu)); 5323 ebx = ebx | 0xFFFFFFFFu; /* 0x4703FA48: or ebx, 0xffffffff */ 5324 _cf = 0; 5325 _flag_k = FK_TEST; 5326 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5327 eax = 0; /* 0x4703FA4B: xor eax, eax */ 5328 _cf = 0; 5329 _flag_k = FK_TEST; 5330 edi = esp + 0x164; /* 0x4703FA4D: lea edi, [esp + 0x164] */ 5331 ecx = ebx; /* 0x4703FA54: mov ecx, ebx */ 5332 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x4703FA56: repne scasb al, byte ptr es:[edi] */ 5333 ecx = ~ecx; /* 0x4703FA58: not ecx */ 5334 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 5335 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5336 edi = edi - ecx; /* 0x4703FA5A: sub edi, ecx */ 5337 _flag_k = FK_CMP; 5338 esi = edi; /* 0x4703FA5C: mov esi, edi */ 5339 edx = esp + 0x60; /* 0x4703FA5E: lea edx, [esp + 0x60] */ 5340 edi = edx; /* 0x4703FA62: mov edi, edx */ 5341 edx = ecx; /* 0x4703FA64: mov edx, ecx */ 5342 ecx = ebx; /* 0x4703FA66: mov ecx, ebx */ 5343 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x4703FA68: repne scasb al, byte ptr es:[edi] */ 5344 ecx = edx; /* 0x4703FA6A: mov ecx, edx */ 5345 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4703FA6C: shr ecx, 2 */ 5346 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5347 ecx = ecx >> 2u; /* 0x4703FA6C: shr ecx, 2 */ 5348 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 5349 edi = edi - 1; /* 0x4703FA6F: dec edi */ 5350 _flag_k = FK_DEC; 5351 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4703FA70: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 5352 ecx = edx; /* 0x4703FA72: mov ecx, edx */ 5353 eax = esp + 0x60; /* 0x4703FA74: lea eax, [esp + 0x60] */ 5354 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 5355 ecx = ecx & 3; /* 0x4703FA78: and ecx, 3 */ 5356 _cf = 0; 5357 _flag_k = FK_TEST; 5358 PUSH32(esp, eax); /* 0x4703FA7B: push eax */ 5359 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4703FA7C: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 5360 RECOMP_ICALL(MEM32(0x470AC3F8)); /* 0x4703FA7E: call dword ptr [0x470ac3f8] */ 5361 RECOMP_FLAGS_IN(); 5362 esi = MEM32(esp + 0x27C); /* 0x4703FA84: mov esi, dword ptr [esp + 0x27c] */ 5363 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5364 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5365 esp = esp + 0x10u; /* 0x4703FA8B: add esp, 0x10 */ 5366 _flag_k = FK_ADD; 5367 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(0x14u); 5368 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5369 ebp = ebp + 0x14u; /* 0x4703FA8E: add ebp, 0x14 */ 5370 _flag_k = FK_ADD; 5371 PUSH32(esp, ebp); /* 0x4703FA91: push ebp */ 5372 ecx = esp + 0x58; /* 0x4703FA92: lea ecx, [esp + 0x58] */ 5373 PUSH32(esp, ecx); /* 0x4703FA96: push ecx */ 5374 ecx = esi + 0x10; /* 0x4703FA97: lea ecx, [esi + 0x10] */ 5375 RECOMP_ICALL(0x47042370u); /* 0x4703FA9A: call 0x47042370 */ /* not lifted */ 5376 RECOMP_FLAGS_IN(); 5377 /* cmp eax, ebx */ /* 0x4703FA9F: cmp eax, ebx */ 5378 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5379 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5380 _flag_k = FK_CMP; 5381 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703FACA; /* 0x4703FAA1: je 0x4703faca */ 5382 L_4703FAA3: 5383 esi = MEM32(esi); /* 0x4703FAA3: mov esi, dword ptr [esi] */ 5384 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5385 eax = 0; /* 0x4703FAA5: xor eax, eax */ 5386 _cf = 0; 5387 _flag_k = FK_TEST; 5388 edi = esp + 0x54; /* 0x4703FAA7: lea edi, [esp + 0x54] */ 5389 ecx = ebx; /* 0x4703FAAB: mov ecx, ebx */ 5390 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x4703FAAD: repne scasb al, byte ptr es:[edi] */ 5391 PUSH32(esp, eax); /* 0x4703FAAF: push eax */ 5392 PUSH32(esp, 2); /* 0x4703FAB0: push 2 */ 5393 edx = esp + 0x1C; /* 0x4703FAB2: lea edx, [esp + 0x1c] */ 5394 PUSH32(esp, edx); /* 0x4703FAB6: push edx */ 5395 ecx = ~ecx; /* 0x4703FAB7: not ecx */ 5396 PUSH32(esp, esi); /* 0x4703FAB9: push esi */ 5397 MEM32(esp + 0x24) = ecx; /* 0x4703FABA: mov dword ptr [esp + 0x24], ecx */ 5398 RECOMP_ICALL(0x4700CF00u); /* 0x4703FABE: call 0x4700cf00 */ /* not lifted */ 5399 RECOMP_FLAGS_IN(); 5400 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5401 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5402 esp = esp + 0x10u; /* 0x4703FAC3: add esp, 0x10 */ 5403 _flag_k = FK_ADD; 5404 /* cmp eax, ebx */ /* 0x4703FAC6: cmp eax, ebx */ 5405 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5406 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5407 _flag_k = FK_CMP; 5408 if (CMP_NE(_flag_a, _flag_b)) goto L_4703FAE6; /* 0x4703FAC8: jne 0x4703fae6 */ 5409 L_4703FACA: 5410 ecx = esp + 0x18; /* 0x4703FACA: lea ecx, [esp + 0x18] */ 5411 MEM32(esp + 0x264) = ebx; /* 0x4703FACE: mov dword ptr [esp + 0x264], ebx */ 5412 MEM32(esp + 0x18) = 0x470AC520u; /* 0x4703FAD5: mov dword ptr [esp + 0x18], 0x470ac520 */ 5413 RECOMP_ICALL(0x47014F70u); /* 0x4703FADD: call 0x47014f70 */ /* not lifted */ 5414 RECOMP_FLAGS_IN(); 5415 eax = ebx; /* 0x4703FAE2: mov eax, ebx */ 5416 goto L_4703FB27; /* 0x4703FAE4: jmp 0x4703fb27 */ 5417 L_4703FAE6: 5418 eax = MEM32(esp + 0x14); /* 0x4703FAE6: mov eax, dword ptr [esp + 0x14] */ 5419 PUSH32(esp, 0); /* 0x4703FAEA: push 0 */ 5420 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 5421 eax = eax & 0xFFFFu; /* 0x4703FAEC: and eax, 0xffff */ 5422 _cf = 0; 5423 _flag_k = FK_TEST; 5424 PUSH32(esp, eax); /* 0x4703FAF1: push eax */ 5425 ecx = esp + 0x5C; /* 0x4703FAF2: lea ecx, [esp + 0x5c] */ 5426 PUSH32(esp, ecx); /* 0x4703FAF6: push ecx */ 5427 PUSH32(esp, esi); /* 0x4703FAF7: push esi */ 5428 RECOMP_ICALL(0x4700CF00u); /* 0x4703FAF8: call 0x4700cf00 */ /* not lifted */ 5429 RECOMP_FLAGS_IN(); 5430 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5431 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5432 esp = esp + 0x10u; /* 0x4703FAFD: add esp, 0x10 */ 5433 _flag_k = FK_ADD; 5434 /* cmp eax, ebx */ /* 0x4703FB00: cmp eax, ebx */ 5435 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5436 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5437 _flag_k = FK_CMP; 5438 MEM32(esp + 0x264) = ebx; /* 0x4703FB02: mov dword ptr [esp + 0x264], ebx */ 5439 MEM32(esp + 0x18) = 0x470AC520u; /* 0x4703FB09: mov dword ptr [esp + 0x18], 0x470ac520 */ 5440 ecx = esp + 0x18; /* 0x4703FB11: lea ecx, [esp + 0x18] */ 5441 if (CMP_NE(_flag_a, _flag_b)) goto L_4703FB20; /* 0x4703FB15: jne 0x4703fb20 */ 5442 L_4703FB17: 5443 RECOMP_ICALL(0x47014F70u); /* 0x4703FB17: call 0x47014f70 */ /* not lifted */ 5444 RECOMP_FLAGS_IN(); 5445 eax = ebx; /* 0x4703FB1C: mov eax, ebx */ 5446 goto L_4703FB27; /* 0x4703FB1E: jmp 0x4703fb27 */ 5447 L_4703FB20: 5448 RECOMP_ICALL(0x47014F70u); /* 0x4703FB20: call 0x47014f70 */ /* not lifted */ 5449 RECOMP_FLAGS_IN(); 5450 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5451 eax = 0; /* 0x4703FB25: xor eax, eax */ 5452 _cf = 0; 5453 _flag_k = FK_TEST; 5454 L_4703FB27: 5455 ecx = MEM32(esp + 0x25C); /* 0x4703FB27: mov ecx, dword ptr [esp + 0x25c] */ 5456 edi = POP32_VAL(esp); /* 0x4703FB2E: pop edi */ 5457 esi = POP32_VAL(esp); /* 0x4703FB2F: pop esi */ 5458 ebp = POP32_VAL(esp); /* 0x4703FB30: pop ebp */ 5459 MEM32(FS_BASE + (0)) = ecx; /* 0x4703FB31: mov dword ptr fs:[0], ecx */ 5460 ebx = POP32_VAL(esp); /* 0x4703FB38: pop ebx */ 5461 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x258u); 5462 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5463 esp = esp + 0x258u; /* 0x4703FB39: add esp, 0x258 */ 5464 _flag_k = FK_ADD; 5465 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x4703FB3F: ret 0x14 */ 5466 RECOMP_REGS_OUT(); 5467 } 5468 5469 void sub_4703FB27(void) { 5470 int _fpu_cmp = 0; 5471 uint32_t _cf = 0; 5472 int _df = 1; 5473 uint32_t _flag_k = FK_NONE; 5474 uint32_t _flag_a = 0, _flag_b = 0; 5475 uint32_t _itail_tgt = 0; 5476 RECOMP_REGS_LOCALS 5477 RECOMP_ENTER(0x4703FB27u); 5478 5479 L_4703FB27: 5480 ecx = MEM32(esp + 0x25C); /* 0x4703FB27: mov ecx, dword ptr [esp + 0x25c] */ 5481 edi = POP32_VAL(esp); /* 0x4703FB2E: pop edi */ 5482 esi = POP32_VAL(esp); /* 0x4703FB2F: pop esi */ 5483 ebp = POP32_VAL(esp); /* 0x4703FB30: pop ebp */ 5484 MEM32(FS_BASE + (0)) = ecx; /* 0x4703FB31: mov dword ptr fs:[0], ecx */ 5485 ebx = POP32_VAL(esp); /* 0x4703FB38: pop ebx */ 5486 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x258u); 5487 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5488 esp = esp + 0x258u; /* 0x4703FB39: add esp, 0x258 */ 5489 _flag_k = FK_ADD; 5490 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x4703FB3F: ret 0x14 */ 5491 RECOMP_REGS_OUT(); 5492 } 5493 5494 void sub_4703FB50(void) { 5495 int _fpu_cmp = 0; 5496 uint32_t _cf = 0; 5497 int _df = 1; 5498 uint32_t _flag_k = FK_NONE; 5499 uint32_t _flag_a = 0, _flag_b = 0; 5500 uint32_t _itail_tgt = 0; 5501 RECOMP_REGS_LOCALS 5502 RECOMP_ENTER(0x4703FB50u); 5503 5504 L_4703FB50: 5505 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703FB50: push -1 */ 5506 PUSH32(esp, 0x470A6346u); /* 0x4703FB52: push 0x470a6346 */ 5507 eax = MEM32(FS_BASE + (0)); /* 0x4703FB57: mov eax, dword ptr fs:[0] */ 5508 PUSH32(esp, eax); /* 0x4703FB5D: push eax */ 5509 MEM32(FS_BASE + (0)) = esp; /* 0x4703FB5E: mov dword ptr fs:[0], esp */ 5510 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5511 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5512 esp = esp - 8; /* 0x4703FB65: sub esp, 8 */ 5513 _flag_k = FK_CMP; 5514 PUSH32(esp, ebx); /* 0x4703FB68: push ebx */ 5515 PUSH32(esp, ebp); /* 0x4703FB69: push ebp */ 5516 PUSH32(esp, esi); /* 0x4703FB6A: push esi */ 5517 PUSH32(esp, edi); /* 0x4703FB6B: push edi */ 5518 ebp = ecx; /* 0x4703FB6C: mov ebp, ecx */ 5519 eax = MEM32(esp + 0x48); /* 0x4703FB6E: mov eax, dword ptr [esp + 0x48] */ 5520 /* test eax, eax */ /* 0x4703FB72: test eax, eax */ 5521 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5522 _cf = 0; 5523 _flag_k = FK_TEST; 5524 edi = MEM32(esp + 0x28); /* 0x4703FB74: mov edi, dword ptr [esp + 0x28] */ 5525 MEM32(esp + 0x20) = 0; /* 0x4703FB78: mov dword ptr [esp + 0x20], 0 */ 5526 if (TEST_Z(_flag_a, _flag_b)) goto L_4703FBB1; /* 0x4703FB80: je 0x4703fbb1 */ 5527 L_4703FB82: 5528 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4703FB82: call dword ptr [0x470ac3c8] */ 5529 RECOMP_FLAGS_IN(); 5530 esi = eax; /* 0x4703FB88: mov esi, eax */ 5531 ebx = MEM32(esi); /* 0x4703FB8A: mov ebx, dword ptr [esi] */ 5532 MEM32(esp + 0x10) = esi; /* 0x4703FB8C: mov dword ptr [esp + 0x10], esi */ 5533 MEM32(esp + 0x14) = ebx; /* 0x4703FB90: mov dword ptr [esp + 0x14], ebx */ 5534 eax = MEM32(ebp); /* 0x4703FB94: mov eax, dword ptr [ebp] */ 5535 PUSH32(esp, 1); /* 0x4703FB97: push 1 */ 5536 PUSH32(esp, eax); /* 0x4703FB99: push eax */ 5537 MEM8(esp + 0x28) = (uint8_t)(1); /* 0x4703FB9A: mov byte ptr [esp + 0x28], 1 */ 5538 RECOMP_ICALL(0x4700EA10u); /* 0x4703FB9F: call 0x4700ea10 */ /* not lifted */ 5539 RECOMP_FLAGS_IN(); 5540 PUSH32(esp, 1); /* 0x4703FBA4: push 1 */ 5541 PUSH32(esp, edi); /* 0x4703FBA6: push edi */ 5542 RECOMP_ICALL(0x4700EA10u); /* 0x4703FBA7: call 0x4700ea10 */ /* not lifted */ 5543 RECOMP_FLAGS_IN(); 5544 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5545 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5546 esp = esp + 0x10u; /* 0x4703FBAC: add esp, 0x10 */ 5547 _flag_k = FK_ADD; 5548 MEM32(esi) = ebx; /* 0x4703FBAF: mov dword ptr [esi], ebx */ 5549 L_4703FBB1: 5550 eax = MEM32(esp + 0x4C); /* 0x4703FBB1: mov eax, dword ptr [esp + 0x4c] */ 5551 /* test eax, eax */ /* 0x4703FBB5: test eax, eax */ 5552 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5553 _cf = 0; 5554 _flag_k = FK_TEST; 5555 if (TEST_Z(_flag_a, _flag_b)) goto L_4703FBC4; /* 0x4703FBB7: je 0x4703fbc4 */ 5556 L_4703FBB9: 5557 PUSH32(esp, 0); /* 0x4703FBB9: push 0 */ 5558 PUSH32(esp, 0); /* 0x4703FBBB: push 0 */ 5559 PUSH32(esp, edi); /* 0x4703FBBD: push edi */ 5560 RECOMP_ICALL(MEM32(0x470AC4C4)); /* 0x4703FBBE: call dword ptr [0x470ac4c4] */ 5561 RECOMP_FLAGS_IN(); 5562 L_4703FBC4: 5563 /* cmp edi, 0xFFFFFFFFu */ /* 0x4703FBC4: cmp edi, -1 */ 5564 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu); 5565 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5566 _flag_k = FK_CMP; 5567 if (CMP_NE(_flag_a, _flag_b)) goto L_4703FC57; /* 0x4703FBC7: jne 0x4703fc57 */ 5568 L_4703FBCD: 5569 eax = esp + 0x28; /* 0x4703FBCD: lea eax, [esp + 0x28] */ 5570 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 5571 _cf = (eax) != 0; 5572 eax = (uint32_t)(-(int32_t)eax); /* 0x4703FBD1: neg eax */ 5573 _flag_k = FK_CMP; 5574 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x4703FBD3: sbb eax, eax */ 5575 eax = _sc ? 0xFFFFFFFFu : 0; 5576 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 5577 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 5578 ecx = esp + 0x38; /* 0x4703FBD5: lea ecx, [esp + 0x38] */ 5579 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5580 eax = eax & ecx; /* 0x4703FBD9: and eax, ecx */ 5581 _cf = 0; 5582 _flag_k = FK_TEST; 5583 esi = MEM32(eax); /* 0x4703FBDB: mov esi, dword ptr [eax] */ 5584 /* test esi, esi */ /* 0x4703FBDD: test esi, esi */ 5585 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 5586 _cf = 0; 5587 _flag_k = FK_TEST; 5588 ebx = 2; /* 0x4703FBDF: mov ebx, 2 */ 5589 MEM32(esp + 0x20) = ebx; /* 0x4703FBE4: mov dword ptr [esp + 0x20], ebx */ 5590 MEM32(esp + 0x48) = esi; /* 0x4703FBE8: mov dword ptr [esp + 0x48], esi */ 5591 if (TEST_Z(_flag_a, _flag_b)) goto L_4703FC2C; /* 0x4703FBEC: je 0x4703fc2c */ 5592 L_4703FBEE: 5593 ecx = esi + 0x250; /* 0x4703FBEE: lea ecx, [esi + 0x250] */ 5594 MEM8(esp + 0x20) = (uint8_t)(3); /* 0x4703FBF4: mov byte ptr [esp + 0x20], 3 */ 5595 RECOMP_ICALL(0x47086800u); /* 0x4703FBF9: call 0x47086800 */ /* not lifted */ 5596 RECOMP_FLAGS_IN(); 5597 edi = esi + 0x4; /* 0x4703FBFE: lea edi, [esi + 4] */ 5598 MEM32(esp + 0x48) = edi; /* 0x4703FC01: mov dword ptr [esp + 0x48], edi */ 5599 MEM32(edi) = 0x470AC710u; /* 0x4703FC05: mov dword ptr [edi], 0x470ac710 */ 5600 ecx = edi + 0x10; /* 0x4703FC0B: lea ecx, [edi + 0x10] */ 5601 MEM8(esp + 0x20) = (uint8_t)(4); /* 0x4703FC0E: mov byte ptr [esp + 0x20], 4 */ 5602 RECOMP_ICALL(0x47041710u); /* 0x4703FC13: call 0x47041710 */ /* not lifted */ 5603 RECOMP_FLAGS_IN(); 5604 ecx = edi; /* 0x4703FC18: mov ecx, edi */ 5605 MEM8(esp + 0x20) = (uint8_t)(LO8(ebx)); /* 0x4703FC1A: mov byte ptr [esp + 0x20], bl */ 5606 RECOMP_ICALL(0x4702A7B0u); /* 0x4703FC1E: call 0x4702a7b0 */ /* not lifted */ 5607 RECOMP_FLAGS_IN(); 5608 PUSH32(esp, esi); /* 0x4703FC23: push esi */ 5609 RECOMP_ICALL(0x470A32A2u); /* 0x4703FC24: call 0x470a32a2 */ /* not lifted */ 5610 RECOMP_FLAGS_IN(); 5611 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5612 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5613 esp = esp + 4; /* 0x4703FC29: add esp, 4 */ 5614 _flag_k = FK_ADD; 5615 L_4703FC2C: 5616 ecx = esp + 0x2C; /* 0x4703FC2C: lea ecx, [esp + 0x2c] */ 5617 MEM32(esp + 0x20) = 5; /* 0x4703FC30: mov dword ptr [esp + 0x20], 5 */ 5618 RECOMP_ICALL(0x4703B380u); /* 0x4703FC38: call 0x4703b380 */ /* not lifted */ 5619 RECOMP_FLAGS_IN(); 5620 eax = MEM32(esp + 0x2C); /* 0x4703FC3D: mov eax, dword ptr [esp + 0x2c] */ 5621 /* test eax, eax */ /* 0x4703FC41: test eax, eax */ 5622 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5623 _cf = 0; 5624 _flag_k = FK_TEST; 5625 if (TEST_Z(_flag_a, _flag_b)) goto L_4703FC4F; /* 0x4703FC43: je 0x4703fc4f */ 5626 L_4703FC45: 5627 ecx = MEM32(esp + 0x34); /* 0x4703FC45: mov ecx, dword ptr [esp + 0x34] */ 5628 edx = MEM32(ecx); /* 0x4703FC49: mov edx, dword ptr [ecx] */ 5629 PUSH32(esp, eax); /* 0x4703FC4B: push eax */ 5630 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4703FC4C: call dword ptr [edx + 0xc] */ 5631 RECOMP_FLAGS_IN(); 5632 L_4703FC4F: 5633 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5634 eax = eax | 0xFFFFFFFFu; /* 0x4703FC4F: or eax, 0xffffffff */ 5635 _cf = 0; 5636 _flag_k = FK_TEST; 5637 goto L_4703FCDB; /* 0x4703FC52: jmp 0x4703fcdb */ 5638 L_4703FC57: 5639 eax = esp + 0x28; /* 0x4703FC57: lea eax, [esp + 0x28] */ 5640 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 5641 _cf = (eax) != 0; 5642 eax = (uint32_t)(-(int32_t)eax); /* 0x4703FC5B: neg eax */ 5643 _flag_k = FK_CMP; 5644 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x4703FC5D: sbb eax, eax */ 5645 eax = _sc ? 0xFFFFFFFFu : 0; 5646 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 5647 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 5648 ecx = esp + 0x38; /* 0x4703FC5F: lea ecx, [esp + 0x38] */ 5649 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5650 eax = eax & ecx; /* 0x4703FC63: and eax, ecx */ 5651 _cf = 0; 5652 _flag_k = FK_TEST; 5653 esi = MEM32(eax); /* 0x4703FC65: mov esi, dword ptr [eax] */ 5654 /* test esi, esi */ /* 0x4703FC67: test esi, esi */ 5655 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 5656 _cf = 0; 5657 _flag_k = FK_TEST; 5658 ebx = 6; /* 0x4703FC69: mov ebx, 6 */ 5659 MEM32(esp + 0x20) = ebx; /* 0x4703FC6E: mov dword ptr [esp + 0x20], ebx */ 5660 MEM32(esp + 0x48) = esi; /* 0x4703FC72: mov dword ptr [esp + 0x48], esi */ 5661 if (TEST_Z(_flag_a, _flag_b)) goto L_4703FCB6; /* 0x4703FC76: je 0x4703fcb6 */ 5662 L_4703FC78: 5663 ecx = esi + 0x250; /* 0x4703FC78: lea ecx, [esi + 0x250] */ 5664 MEM8(esp + 0x20) = (uint8_t)(7); /* 0x4703FC7E: mov byte ptr [esp + 0x20], 7 */ 5665 RECOMP_ICALL(0x47086800u); /* 0x4703FC83: call 0x47086800 */ /* not lifted */ 5666 RECOMP_FLAGS_IN(); 5667 edi = esi + 0x4; /* 0x4703FC88: lea edi, [esi + 4] */ 5668 MEM32(esp + 0x48) = edi; /* 0x4703FC8B: mov dword ptr [esp + 0x48], edi */ 5669 MEM32(edi) = 0x470AC710u; /* 0x4703FC8F: mov dword ptr [edi], 0x470ac710 */ 5670 ecx = edi + 0x10; /* 0x4703FC95: lea ecx, [edi + 0x10] */ 5671 MEM8(esp + 0x20) = (uint8_t)(8); /* 0x4703FC98: mov byte ptr [esp + 0x20], 8 */ 5672 RECOMP_ICALL(0x47041710u); /* 0x4703FC9D: call 0x47041710 */ /* not lifted */ 5673 RECOMP_FLAGS_IN(); 5674 ecx = edi; /* 0x4703FCA2: mov ecx, edi */ 5675 MEM8(esp + 0x20) = (uint8_t)(LO8(ebx)); /* 0x4703FCA4: mov byte ptr [esp + 0x20], bl */ 5676 RECOMP_ICALL(0x4702A7B0u); /* 0x4703FCA8: call 0x4702a7b0 */ /* not lifted */ 5677 RECOMP_FLAGS_IN(); 5678 PUSH32(esp, esi); /* 0x4703FCAD: push esi */ 5679 RECOMP_ICALL(0x470A32A2u); /* 0x4703FCAE: call 0x470a32a2 */ /* not lifted */ 5680 RECOMP_FLAGS_IN(); 5681 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5682 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5683 esp = esp + 4; /* 0x4703FCB3: add esp, 4 */ 5684 _flag_k = FK_ADD; 5685 L_4703FCB6: 5686 ecx = esp + 0x2C; /* 0x4703FCB6: lea ecx, [esp + 0x2c] */ 5687 MEM32(esp + 0x20) = 9; /* 0x4703FCBA: mov dword ptr [esp + 0x20], 9 */ 5688 RECOMP_ICALL(0x4703B380u); /* 0x4703FCC2: call 0x4703b380 */ /* not lifted */ 5689 RECOMP_FLAGS_IN(); 5690 eax = MEM32(esp + 0x2C); /* 0x4703FCC7: mov eax, dword ptr [esp + 0x2c] */ 5691 /* test eax, eax */ /* 0x4703FCCB: test eax, eax */ 5692 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5693 _cf = 0; 5694 _flag_k = FK_TEST; 5695 if (TEST_Z(_flag_a, _flag_b)) goto L_4703FCD9; /* 0x4703FCCD: je 0x4703fcd9 */ 5696 L_4703FCCF: 5697 ecx = MEM32(esp + 0x34); /* 0x4703FCCF: mov ecx, dword ptr [esp + 0x34] */ 5698 edx = MEM32(ecx); /* 0x4703FCD3: mov edx, dword ptr [ecx] */ 5699 PUSH32(esp, eax); /* 0x4703FCD5: push eax */ 5700 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4703FCD6: call dword ptr [edx + 0xc] */ 5701 RECOMP_FLAGS_IN(); 5702 L_4703FCD9: 5703 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5704 eax = 0; /* 0x4703FCD9: xor eax, eax */ 5705 _cf = 0; 5706 _flag_k = FK_TEST; 5707 L_4703FCDB: 5708 ecx = MEM32(esp + 0x18); /* 0x4703FCDB: mov ecx, dword ptr [esp + 0x18] */ 5709 edi = POP32_VAL(esp); /* 0x4703FCDF: pop edi */ 5710 esi = POP32_VAL(esp); /* 0x4703FCE0: pop esi */ 5711 ebp = POP32_VAL(esp); /* 0x4703FCE1: pop ebp */ 5712 ebx = POP32_VAL(esp); /* 0x4703FCE2: pop ebx */ 5713 MEM32(FS_BASE + (0)) = ecx; /* 0x4703FCE3: mov dword ptr fs:[0], ecx */ 5714 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 5715 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5716 esp = esp + 0x14u; /* 0x4703FCEA: add esp, 0x14 */ 5717 _flag_k = FK_ADD; 5718 RECOMP_FLAGS_OUT(); esp += 44; { RECOMP_REGS_OUT(); return; } /* 0x4703FCED: ret 0x28 */ 5719 RECOMP_REGS_OUT(); 5720 } 5721 5722 void sub_4703FCDB(void) { 5723 int _fpu_cmp = 0; 5724 uint32_t _cf = 0; 5725 int _df = 1; 5726 uint32_t _flag_k = FK_NONE; 5727 uint32_t _flag_a = 0, _flag_b = 0; 5728 uint32_t _itail_tgt = 0; 5729 RECOMP_REGS_LOCALS 5730 RECOMP_ENTER(0x4703FCDBu); 5731 5732 L_4703FCDB: 5733 ecx = MEM32(esp + 0x18); /* 0x4703FCDB: mov ecx, dword ptr [esp + 0x18] */ 5734 edi = POP32_VAL(esp); /* 0x4703FCDF: pop edi */ 5735 esi = POP32_VAL(esp); /* 0x4703FCE0: pop esi */ 5736 ebp = POP32_VAL(esp); /* 0x4703FCE1: pop ebp */ 5737 ebx = POP32_VAL(esp); /* 0x4703FCE2: pop ebx */ 5738 MEM32(FS_BASE + (0)) = ecx; /* 0x4703FCE3: mov dword ptr fs:[0], ecx */ 5739 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 5740 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5741 esp = esp + 0x14u; /* 0x4703FCEA: add esp, 0x14 */ 5742 _flag_k = FK_ADD; 5743 RECOMP_FLAGS_OUT(); esp += 44; { RECOMP_REGS_OUT(); return; } /* 0x4703FCED: ret 0x28 */ 5744 RECOMP_REGS_OUT(); 5745 } 5746 5747 void sub_4703FCF0(void) { 5748 int _fpu_cmp = 0; 5749 uint32_t _cf = 0; 5750 int _df = 1; 5751 uint32_t _flag_k = FK_NONE; 5752 uint32_t _flag_a = 0, _flag_b = 0; 5753 uint32_t _itail_tgt = 0; 5754 RECOMP_REGS_LOCALS 5755 RECOMP_ENTER(0x4703FCF0u); 5756 5757 L_4703FCF0: 5758 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703FCF0: push -1 */ 5759 PUSH32(esp, 0x470A6363u); /* 0x4703FCF2: push 0x470a6363 */ 5760 eax = MEM32(FS_BASE + (0)); /* 0x4703FCF7: mov eax, dword ptr fs:[0] */ 5761 PUSH32(esp, eax); /* 0x4703FCFD: push eax */ 5762 MEM32(FS_BASE + (0)) = esp; /* 0x4703FCFE: mov dword ptr fs:[0], esp */ 5763 PUSH32(esp, ecx); /* 0x4703FD05: push ecx */ 5764 PUSH32(esp, esi); /* 0x4703FD06: push esi */ 5765 esi = ecx; /* 0x4703FD07: mov esi, ecx */ 5766 MEM32(esp + 0x4) = esi; /* 0x4703FD09: mov dword ptr [esp + 4], esi */ 5767 ecx = esi + 0x250; /* 0x4703FD0D: lea ecx, [esi + 0x250] */ 5768 MEM32(esp + 0x10) = 0; /* 0x4703FD13: mov dword ptr [esp + 0x10], 0 */ 5769 RECOMP_ICALL(0x47086800u); /* 0x4703FD1B: call 0x47086800 */ /* not lifted */ 5770 RECOMP_FLAGS_IN(); 5771 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 5772 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5773 esi = esi + 4; /* 0x4703FD20: add esi, 4 */ 5774 _flag_k = FK_ADD; 5775 MEM32(esp + 0x4) = esi; /* 0x4703FD23: mov dword ptr [esp + 4], esi */ 5776 MEM32(esi) = 0x470AC710u; /* 0x4703FD27: mov dword ptr [esi], 0x470ac710 */ 5777 ecx = esi + 0x10; /* 0x4703FD2D: lea ecx, [esi + 0x10] */ 5778 MEM32(esp + 0x10) = 1; /* 0x4703FD30: mov dword ptr [esp + 0x10], 1 */ 5779 RECOMP_ICALL(0x47041710u); /* 0x4703FD38: call 0x47041710 */ /* not lifted */ 5780 RECOMP_FLAGS_IN(); 5781 ecx = esi; /* 0x4703FD3D: mov ecx, esi */ 5782 MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x4703FD3F: mov dword ptr [esp + 0x10], 0xffffffff */ 5783 RECOMP_ICALL(0x4702A7B0u); /* 0x4703FD47: call 0x4702a7b0 */ /* not lifted */ 5784 RECOMP_FLAGS_IN(); 5785 ecx = MEM32(esp + 0x8); /* 0x4703FD4C: mov ecx, dword ptr [esp + 8] */ 5786 esi = POP32_VAL(esp); /* 0x4703FD50: pop esi */ 5787 MEM32(FS_BASE + (0)) = ecx; /* 0x4703FD51: mov dword ptr fs:[0], ecx */ 5788 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5789 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5790 esp = esp + 0x10u; /* 0x4703FD58: add esp, 0x10 */ 5791 _flag_k = FK_ADD; 5792 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703FD5B: ret */ 5793 RECOMP_REGS_OUT(); 5794 } 5795 5796 void sub_4703FD60(void) { 5797 int _fpu_cmp = 0; 5798 uint32_t _cf = 0; 5799 int _df = 1; 5800 uint32_t _flag_k = FK_NONE; 5801 uint32_t _flag_a = 0, _flag_b = 0; 5802 uint32_t _itail_tgt = 0; 5803 RECOMP_REGS_LOCALS 5804 RECOMP_ENTER(0x4703FD60u); 5805 5806 L_4703FD60: 5807 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703FD60: push -1 */ 5808 PUSH32(esp, 0x470A6378u); /* 0x4703FD62: push 0x470a6378 */ 5809 eax = MEM32(FS_BASE + (0)); /* 0x4703FD67: mov eax, dword ptr fs:[0] */ 5810 PUSH32(esp, eax); /* 0x4703FD6D: push eax */ 5811 MEM32(FS_BASE + (0)) = esp; /* 0x4703FD6E: mov dword ptr fs:[0], esp */ 5812 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5813 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5814 esp = esp - 8; /* 0x4703FD75: sub esp, 8 */ 5815 _flag_k = FK_CMP; 5816 PUSH32(esp, ebx); /* 0x4703FD78: push ebx */ 5817 PUSH32(esp, ebp); /* 0x4703FD79: push ebp */ 5818 ebp = MEM32(0x470AC3C8); /* 0x4703FD7A: mov ebp, dword ptr [0x470ac3c8] */ 5819 PUSH32(esp, esi); /* 0x4703FD80: push esi */ 5820 ebx = ecx; /* 0x4703FD81: mov ebx, ecx */ 5821 eax = MEM32(ebx + 0x250); /* 0x4703FD83: mov eax, dword ptr [ebx + 0x250] */ 5822 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5823 eax = eax - 1; /* 0x4703FD89: dec eax */ 5824 _flag_k = FK_DEC; 5825 esi = ebx + 0x250; /* 0x4703FD8A: lea esi, [ebx + 0x250] */ 5826 PUSH32(esp, edi); /* 0x4703FD90: push edi */ 5827 MEM32(esp + 0x10) = esi; /* 0x4703FD91: mov dword ptr [esp + 0x10], esi */ 5828 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_4703FDCF; /* 0x4703FD95: je 0x4703fdcf */ 5829 L_4703FD97: 5830 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5831 eax = eax - 1; /* 0x4703FD97: dec eax */ 5832 _flag_k = FK_DEC; 5833 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_4703FDA7; /* 0x4703FD98: je 0x4703fda7 */ 5834 L_4703FD9A: 5835 RECOMP_ICALL(ebp); /* 0x4703FD9A: call ebp */ 5836 RECOMP_FLAGS_IN(); 5837 MEM32(eax) = 0x16u; /* 0x4703FD9C: mov dword ptr [eax], 0x16 */ 5838 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5839 eax = eax | 0xFFFFFFFFu; /* 0x4703FDA2: or eax, 0xffffffff */ 5840 _cf = 0; 5841 _flag_k = FK_TEST; 5842 goto L_4703FDDB; /* 0x4703FDA5: jmp 0x4703fddb */ 5843 L_4703FDA7: 5844 eax = MEM32(esi + 0x4); /* 0x4703FDA7: mov eax, dword ptr [esi + 4] */ 5845 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703FDAA: push -1 */ 5846 PUSH32(esp, eax); /* 0x4703FDAC: push eax */ 5847 RECOMP_ICALL(MEM32(0x470AC194)); /* 0x4703FDAD: call dword ptr [0x470ac194] */ 5848 RECOMP_FLAGS_IN(); 5849 /* test eax, eax */ /* 0x4703FDB3: test eax, eax */ 5850 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5851 _cf = 0; 5852 _flag_k = FK_TEST; 5853 if (TEST_Z(_flag_a, _flag_b)) goto L_4703FDD9; /* 0x4703FDB5: je 0x4703fdd9 */ 5854 L_4703FDB7: 5855 /* cmp eax, 0x80u */ /* 0x4703FDB7: cmp eax, 0x80 */ 5856 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x80u); 5857 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5858 _flag_k = FK_CMP; 5859 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703FDD9; /* 0x4703FDBC: je 0x4703fdd9 */ 5860 L_4703FDBE: 5861 RECOMP_ICALL(ebp); /* 0x4703FDBE: call ebp */ 5862 RECOMP_FLAGS_IN(); 5863 edi = eax; /* 0x4703FDC0: mov edi, eax */ 5864 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4703FDC2: call dword ptr [0x470ac150] */ 5865 RECOMP_FLAGS_IN(); 5866 MEM32(edi) = eax; /* 0x4703FDC8: mov dword ptr [edi], eax */ 5867 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5868 eax = eax | 0xFFFFFFFFu; /* 0x4703FDCA: or eax, 0xffffffff */ 5869 _cf = 0; 5870 _flag_k = FK_TEST; 5871 goto L_4703FDDB; /* 0x4703FDCD: jmp 0x4703fddb */ 5872 L_4703FDCF: 5873 ecx = esi + 0x4; /* 0x4703FDCF: lea ecx, [esi + 4] */ 5874 PUSH32(esp, ecx); /* 0x4703FDD2: push ecx */ 5875 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x4703FDD3: call dword ptr [0x470ac180] */ 5876 RECOMP_FLAGS_IN(); 5877 L_4703FDD9: 5878 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5879 eax = 0; /* 0x4703FDD9: xor eax, eax */ 5880 _cf = 0; 5881 _flag_k = FK_TEST; 5882 L_4703FDDB: 5883 MEM32(esp + 0x14) = eax; /* 0x4703FDDB: mov dword ptr [esp + 0x14], eax */ 5884 /* cmp eax, 0xFFFFFFFFu */ /* 0x4703FDDF: cmp eax, -1 */ 5885 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 5886 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5887 _flag_k = FK_CMP; 5888 MEM32(esp + 0x20) = 0; /* 0x4703FDE2: mov dword ptr [esp + 0x20], 0 */ 5889 if (CMP_NE(_flag_a, _flag_b)) goto L_4703FDF0; /* 0x4703FDEA: jne 0x4703fdf0 */ 5890 L_4703FDEC: 5891 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5892 eax = 0; /* 0x4703FDEC: xor eax, eax */ 5893 _cf = 0; 5894 _flag_k = FK_TEST; 5895 goto L_4703FE38; /* 0x4703FDEE: jmp 0x4703fe38 */ 5896 L_4703FDF0: 5897 edx = MEM32(esp + 0x28); /* 0x4703FDF0: mov edx, dword ptr [esp + 0x28] */ 5898 PUSH32(esp, edx); /* 0x4703FDF4: push edx */ 5899 ecx = ebx; /* 0x4703FDF5: mov ecx, ebx */ 5900 RECOMP_ICALL(0x4703FF60u); /* 0x4703FDF7: call 0x4703ff60 */ /* not lifted */ 5901 RECOMP_FLAGS_IN(); 5902 edi = eax; /* 0x4703FDFC: mov edi, eax */ 5903 eax = MEM32(esi); /* 0x4703FDFE: mov eax, dword ptr [esi] */ 5904 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5905 eax = eax - 1; /* 0x4703FE00: dec eax */ 5906 _flag_k = FK_DEC; 5907 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_4703FE2C; /* 0x4703FE01: je 0x4703fe2c */ 5908 L_4703FE03: 5909 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5910 eax = eax - 1; /* 0x4703FE03: dec eax */ 5911 _flag_k = FK_DEC; 5912 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_4703FE10; /* 0x4703FE04: je 0x4703fe10 */ 5913 L_4703FE06: 5914 RECOMP_ICALL(ebp); /* 0x4703FE06: call ebp */ 5915 RECOMP_FLAGS_IN(); 5916 MEM32(eax) = 0x16u; /* 0x4703FE08: mov dword ptr [eax], 0x16 */ 5917 goto L_4703FE36; /* 0x4703FE0E: jmp 0x4703fe36 */ 5918 L_4703FE10: 5919 eax = MEM32(esi + 0x4); /* 0x4703FE10: mov eax, dword ptr [esi + 4] */ 5920 PUSH32(esp, eax); /* 0x4703FE13: push eax */ 5921 RECOMP_ICALL(MEM32(0x470AC18C)); /* 0x4703FE14: call dword ptr [0x470ac18c] */ 5922 RECOMP_FLAGS_IN(); 5923 /* test eax, eax */ /* 0x4703FE1A: test eax, eax */ 5924 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5925 _cf = 0; 5926 _flag_k = FK_TEST; 5927 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703FE36; /* 0x4703FE1C: jne 0x4703fe36 */ 5928 L_4703FE1E: 5929 RECOMP_ICALL(ebp); /* 0x4703FE1E: call ebp */ 5930 RECOMP_FLAGS_IN(); 5931 esi = eax; /* 0x4703FE20: mov esi, eax */ 5932 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4703FE22: call dword ptr [0x470ac150] */ 5933 RECOMP_FLAGS_IN(); 5934 MEM32(esi) = eax; /* 0x4703FE28: mov dword ptr [esi], eax */ 5935 goto L_4703FE36; /* 0x4703FE2A: jmp 0x4703fe36 */ 5936 L_4703FE2C: 5937 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 5938 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5939 esi = esi + 4; /* 0x4703FE2C: add esi, 4 */ 5940 _flag_k = FK_ADD; 5941 PUSH32(esp, esi); /* 0x4703FE2F: push esi */ 5942 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4703FE30: call dword ptr [0x470ac190] */ 5943 RECOMP_FLAGS_IN(); 5944 L_4703FE36: 5945 eax = edi; /* 0x4703FE36: mov eax, edi */ 5946 L_4703FE38: 5947 ecx = MEM32(esp + 0x18); /* 0x4703FE38: mov ecx, dword ptr [esp + 0x18] */ 5948 edi = POP32_VAL(esp); /* 0x4703FE3C: pop edi */ 5949 esi = POP32_VAL(esp); /* 0x4703FE3D: pop esi */ 5950 ebp = POP32_VAL(esp); /* 0x4703FE3E: pop ebp */ 5951 ebx = POP32_VAL(esp); /* 0x4703FE3F: pop ebx */ 5952 MEM32(FS_BASE + (0)) = ecx; /* 0x4703FE40: mov dword ptr fs:[0], ecx */ 5953 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 5954 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5955 esp = esp + 0x14u; /* 0x4703FE47: add esp, 0x14 */ 5956 _flag_k = FK_ADD; 5957 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703FE4A: ret 4 */ 5958 RECOMP_REGS_OUT(); 5959 } 5960 5961 void sub_4703FE50(void) { 5962 int _fpu_cmp = 0; 5963 uint32_t _cf = 0; 5964 int _df = 1; 5965 uint32_t _flag_k = FK_NONE; 5966 uint32_t _flag_a = 0, _flag_b = 0; 5967 uint32_t _itail_tgt = 0; 5968 RECOMP_REGS_LOCALS 5969 RECOMP_ENTER(0x4703FE50u); 5970 5971 L_4703FE50: 5972 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703FE50: push -1 */ 5973 PUSH32(esp, 0x470A6398u); /* 0x4703FE52: push 0x470a6398 */ 5974 eax = MEM32(FS_BASE + (0)); /* 0x4703FE57: mov eax, dword ptr fs:[0] */ 5975 PUSH32(esp, eax); /* 0x4703FE5D: push eax */ 5976 MEM32(FS_BASE + (0)) = esp; /* 0x4703FE5E: mov dword ptr fs:[0], esp */ 5977 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5978 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5979 esp = esp - 8; /* 0x4703FE65: sub esp, 8 */ 5980 _flag_k = FK_CMP; 5981 PUSH32(esp, ebx); /* 0x4703FE68: push ebx */ 5982 PUSH32(esp, ebp); /* 0x4703FE69: push ebp */ 5983 ebp = MEM32(0x470AC3C8); /* 0x4703FE6A: mov ebp, dword ptr [0x470ac3c8] */ 5984 ebx = ecx; /* 0x4703FE70: mov ebx, ecx */ 5985 eax = MEM32(ebx + 0x250); /* 0x4703FE72: mov eax, dword ptr [ebx + 0x250] */ 5986 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5987 eax = eax - 1; /* 0x4703FE78: dec eax */ 5988 _flag_k = FK_DEC; 5989 PUSH32(esp, esi); /* 0x4703FE79: push esi */ 5990 esi = ebx + 0x250; /* 0x4703FE7A: lea esi, [ebx + 0x250] */ 5991 MEM32(esp + 0xC) = esi; /* 0x4703FE80: mov dword ptr [esp + 0xc], esi */ 5992 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_4703FEC0; /* 0x4703FE84: je 0x4703fec0 */ 5993 L_4703FE86: 5994 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5995 eax = eax - 1; /* 0x4703FE86: dec eax */ 5996 _flag_k = FK_DEC; 5997 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_4703FE96; /* 0x4703FE87: je 0x4703fe96 */ 5998 L_4703FE89: 5999 RECOMP_ICALL(ebp); /* 0x4703FE89: call ebp */ 6000 RECOMP_FLAGS_IN(); 6001 MEM32(eax) = 0x16u; /* 0x4703FE8B: mov dword ptr [eax], 0x16 */ 6002 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6003 eax = eax | 0xFFFFFFFFu; /* 0x4703FE91: or eax, 0xffffffff */ 6004 _cf = 0; 6005 _flag_k = FK_TEST; 6006 goto L_4703FECC; /* 0x4703FE94: jmp 0x4703fecc */ 6007 L_4703FE96: 6008 eax = MEM32(esi + 0x4); /* 0x4703FE96: mov eax, dword ptr [esi + 4] */ 6009 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703FE99: push -1 */ 6010 PUSH32(esp, eax); /* 0x4703FE9B: push eax */ 6011 RECOMP_ICALL(MEM32(0x470AC194)); /* 0x4703FE9C: call dword ptr [0x470ac194] */ 6012 RECOMP_FLAGS_IN(); 6013 /* test eax, eax */ /* 0x4703FEA2: test eax, eax */ 6014 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6015 _cf = 0; 6016 _flag_k = FK_TEST; 6017 if (TEST_Z(_flag_a, _flag_b)) goto L_4703FECA; /* 0x4703FEA4: je 0x4703feca */ 6018 L_4703FEA6: 6019 /* cmp eax, 0x80u */ /* 0x4703FEA6: cmp eax, 0x80 */ 6020 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x80u); 6021 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6022 _flag_k = FK_CMP; 6023 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703FECA; /* 0x4703FEAB: je 0x4703feca */ 6024 L_4703FEAD: 6025 PUSH32(esp, edi); /* 0x4703FEAD: push edi */ 6026 RECOMP_ICALL(ebp); /* 0x4703FEAE: call ebp */ 6027 RECOMP_FLAGS_IN(); 6028 edi = eax; /* 0x4703FEB0: mov edi, eax */ 6029 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4703FEB2: call dword ptr [0x470ac150] */ 6030 RECOMP_FLAGS_IN(); 6031 MEM32(edi) = eax; /* 0x4703FEB8: mov dword ptr [edi], eax */ 6032 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6033 eax = eax | 0xFFFFFFFFu; /* 0x4703FEBA: or eax, 0xffffffff */ 6034 _cf = 0; 6035 _flag_k = FK_TEST; 6036 edi = POP32_VAL(esp); /* 0x4703FEBD: pop edi */ 6037 goto L_4703FECC; /* 0x4703FEBE: jmp 0x4703fecc */ 6038 L_4703FEC0: 6039 ecx = esi + 0x4; /* 0x4703FEC0: lea ecx, [esi + 4] */ 6040 PUSH32(esp, ecx); /* 0x4703FEC3: push ecx */ 6041 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x4703FEC4: call dword ptr [0x470ac180] */ 6042 RECOMP_FLAGS_IN(); 6043 L_4703FECA: 6044 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6045 eax = 0; /* 0x4703FECA: xor eax, eax */ 6046 _cf = 0; 6047 _flag_k = FK_TEST; 6048 L_4703FECC: 6049 MEM32(esp + 0x10) = eax; /* 0x4703FECC: mov dword ptr [esp + 0x10], eax */ 6050 /* cmp eax, 0xFFFFFFFFu */ /* 0x4703FED0: cmp eax, -1 */ 6051 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 6052 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6053 _flag_k = FK_CMP; 6054 MEM32(esp + 0x1C) = 0; /* 0x4703FED3: mov dword ptr [esp + 0x1c], 0 */ 6055 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703FF45; /* 0x4703FEDB: je 0x4703ff45 */ 6056 L_4703FEDD: 6057 edx = MEM32(esp + 0x24); /* 0x4703FEDD: mov edx, dword ptr [esp + 0x24] */ 6058 PUSH32(esp, edx); /* 0x4703FEE1: push edx */ 6059 ecx = ebx; /* 0x4703FEE2: mov ecx, ebx */ 6060 RECOMP_ICALL(0x47040220u); /* 0x4703FEE4: call 0x47040220 */ /* not lifted */ 6061 RECOMP_FLAGS_IN(); 6062 eax = MEM32(esi); /* 0x4703FEE9: mov eax, dword ptr [esi] */ 6063 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6064 eax = eax - 1; /* 0x4703FEEB: dec eax */ 6065 _flag_k = FK_DEC; 6066 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_4703FF3B; /* 0x4703FEEC: je 0x4703ff3b */ 6067 L_4703FEEE: 6068 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6069 eax = eax - 1; /* 0x4703FEEE: dec eax */ 6070 _flag_k = FK_DEC; 6071 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_4703FF0D; /* 0x4703FEEF: je 0x4703ff0d */ 6072 L_4703FEF1: 6073 RECOMP_ICALL(ebp); /* 0x4703FEF1: call ebp */ 6074 RECOMP_FLAGS_IN(); 6075 esi = POP32_VAL(esp); /* 0x4703FEF3: pop esi */ 6076 ebp = POP32_VAL(esp); /* 0x4703FEF4: pop ebp */ 6077 MEM32(eax) = 0x16u; /* 0x4703FEF5: mov dword ptr [eax], 0x16 */ 6078 ebx = POP32_VAL(esp); /* 0x4703FEFB: pop ebx */ 6079 ecx = MEM32(esp + 0x8); /* 0x4703FEFC: mov ecx, dword ptr [esp + 8] */ 6080 MEM32(FS_BASE + (0)) = ecx; /* 0x4703FF00: mov dword ptr fs:[0], ecx */ 6081 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 6082 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6083 esp = esp + 0x14u; /* 0x4703FF07: add esp, 0x14 */ 6084 _flag_k = FK_ADD; 6085 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703FF0A: ret 4 */ 6086 L_4703FF0D: 6087 eax = MEM32(esi + 0x4); /* 0x4703FF0D: mov eax, dword ptr [esi + 4] */ 6088 PUSH32(esp, eax); /* 0x4703FF10: push eax */ 6089 RECOMP_ICALL(MEM32(0x470AC18C)); /* 0x4703FF11: call dword ptr [0x470ac18c] */ 6090 RECOMP_FLAGS_IN(); 6091 /* test eax, eax */ /* 0x4703FF17: test eax, eax */ 6092 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6093 _cf = 0; 6094 _flag_k = FK_TEST; 6095 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703FF45; /* 0x4703FF19: jne 0x4703ff45 */ 6096 L_4703FF1B: 6097 RECOMP_ICALL(ebp); /* 0x4703FF1B: call ebp */ 6098 RECOMP_FLAGS_IN(); 6099 esi = eax; /* 0x4703FF1D: mov esi, eax */ 6100 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4703FF1F: call dword ptr [0x470ac150] */ 6101 RECOMP_FLAGS_IN(); 6102 MEM32(esi) = eax; /* 0x4703FF25: mov dword ptr [esi], eax */ 6103 esi = POP32_VAL(esp); /* 0x4703FF27: pop esi */ 6104 ebp = POP32_VAL(esp); /* 0x4703FF28: pop ebp */ 6105 ebx = POP32_VAL(esp); /* 0x4703FF29: pop ebx */ 6106 ecx = MEM32(esp + 0x8); /* 0x4703FF2A: mov ecx, dword ptr [esp + 8] */ 6107 MEM32(FS_BASE + (0)) = ecx; /* 0x4703FF2E: mov dword ptr fs:[0], ecx */ 6108 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 6109 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6110 esp = esp + 0x14u; /* 0x4703FF35: add esp, 0x14 */ 6111 _flag_k = FK_ADD; 6112 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703FF38: ret 4 */ 6113 L_4703FF3B: 6114 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 6115 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6116 esi = esi + 4; /* 0x4703FF3B: add esi, 4 */ 6117 _flag_k = FK_ADD; 6118 PUSH32(esp, esi); /* 0x4703FF3E: push esi */ 6119 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4703FF3F: call dword ptr [0x470ac190] */ 6120 RECOMP_FLAGS_IN(); 6121 L_4703FF45: 6122 ecx = MEM32(esp + 0x14); /* 0x4703FF45: mov ecx, dword ptr [esp + 0x14] */ 6123 esi = POP32_VAL(esp); /* 0x4703FF49: pop esi */ 6124 ebp = POP32_VAL(esp); /* 0x4703FF4A: pop ebp */ 6125 ebx = POP32_VAL(esp); /* 0x4703FF4B: pop ebx */ 6126 MEM32(FS_BASE + (0)) = ecx; /* 0x4703FF4C: mov dword ptr fs:[0], ecx */ 6127 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 6128 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6129 esp = esp + 0x14u; /* 0x4703FF53: add esp, 0x14 */ 6130 _flag_k = FK_ADD; 6131 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703FF56: ret 4 */ 6132 RECOMP_REGS_OUT(); 6133 } 6134 6135 void sub_4703FF60(void) { 6136 int _fpu_cmp = 0; 6137 uint32_t _cf = 0; 6138 int _df = 1; 6139 uint32_t _flag_k = FK_NONE; 6140 uint32_t _flag_a = 0, _flag_b = 0; 6141 uint32_t _itail_tgt = 0; 6142 RECOMP_REGS_LOCALS 6143 RECOMP_ENTER(0x4703FF60u); 6144 6145 L_4703FF60: 6146 PUSH32(esp, ebp); /* 0x4703FF60: push ebp */ 6147 ebp = esp; /* 0x4703FF61: mov ebp, esp */ 6148 PUSH32(esp, 0xFFFFFFFFu); /* 0x4703FF63: push -1 */ 6149 PUSH32(esp, 0x470AD5E0u); /* 0x4703FF65: push 0x470ad5e0 */ 6150 PUSH32(esp, 0x470A34B2u); /* 0x4703FF6A: push 0x470a34b2 */ 6151 eax = MEM32(FS_BASE + (0)); /* 0x4703FF6F: mov eax, dword ptr fs:[0] */ 6152 PUSH32(esp, eax); /* 0x4703FF75: push eax */ 6153 MEM32(FS_BASE + (0)) = esp; /* 0x4703FF76: mov dword ptr fs:[0], esp */ 6154 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x54u); 6155 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6156 esp = esp - 0x54u; /* 0x4703FF7D: sub esp, 0x54 */ 6157 _flag_k = FK_CMP; 6158 PUSH32(esp, ebx); /* 0x4703FF80: push ebx */ 6159 PUSH32(esp, esi); /* 0x4703FF81: push esi */ 6160 PUSH32(esp, edi); /* 0x4703FF82: push edi */ 6161 MEM32(ebp + (-0x18)) = esp; /* 0x4703FF83: mov dword ptr [ebp - 0x18], esp */ 6162 edi = ecx; /* 0x4703FF86: mov edi, ecx */ 6163 MEM32(ebp + (-0x64)) = edi; /* 0x4703FF88: mov dword ptr [ebp - 0x64], edi */ 6164 eax = MEM32(edi); /* 0x4703FF8B: mov eax, dword ptr [edi] */ 6165 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6166 esi = 0; /* 0x4703FF8D: xor esi, esi */ 6167 _cf = 0; 6168 _flag_k = FK_TEST; 6169 /* cmp eax, esi */ /* 0x4703FF8F: cmp eax, esi */ 6170 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 6171 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6172 _flag_k = FK_CMP; 6173 if (CMP_EQ(_flag_a, _flag_b)) goto L_470401D7; /* 0x4703FF91: je 0x470401d7 */ 6174 L_4703FF97: 6175 ecx = MEM32(ebp + 0x8); /* 0x4703FF97: mov ecx, dword ptr [ebp + 8] */ 6176 edx = ecx + 0xF; /* 0x4703FF9A: lea edx, [ecx + 0xf] */ 6177 if (4u) _cf = (((edx) >> 3) & 1u); /* 0x4703FF9D: shr edx, 4 */ 6178 if (4u) { _flag_a = recomp_flags_pack((edx >> 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6179 edx = edx >> 4u; /* 0x4703FF9D: shr edx, 4 */ 6180 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 6181 edx = edx + 1; /* 0x4703FFA0: inc edx */ 6182 _flag_k = FK_INC; 6183 MEM32(ebp + (-0x24)) = edx; /* 0x4703FFA1: mov dword ptr [ebp - 0x24], edx */ 6184 MEM32(ebp + (-0x20)) = esi; /* 0x4703FFA4: mov dword ptr [ebp - 0x20], esi */ 6185 MEM32(ebp + (-0x1C)) = esi; /* 0x4703FFA7: mov dword ptr [ebp - 0x1c], esi */ 6186 MEM32(ebp + (-0x4)) = esi; /* 0x4703FFAA: mov dword ptr [ebp - 4], esi */ 6187 ecx = eax + 0x8; /* 0x4703FFAD: lea ecx, [eax + 8] */ 6188 MEM32(ebp + (-0x38)) = ecx; /* 0x4703FFB0: mov dword ptr [ebp - 0x38], ecx */ 6189 eax = MEM32(ecx); /* 0x4703FFB3: mov eax, dword ptr [ecx] */ 6190 /* cmp eax, 0xFFFFFFFFu */ /* 0x4703FFB5: cmp eax, -1 */ 6191 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 6192 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6193 _flag_k = FK_CMP; 6194 if (CMP_NE(_flag_a, _flag_b)) goto L_4703FFBE; /* 0x4703FFB8: jne 0x4703ffbe */ 6195 L_4703FFBA: 6196 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6197 ecx = 0; /* 0x4703FFBA: xor ecx, ecx */ 6198 _cf = 0; 6199 _flag_k = FK_TEST; 6200 goto L_4703FFC5; /* 0x4703FFBC: jmp 0x4703ffc5 */ 6201 L_4703FFBE: 6202 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 6203 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6204 eax = eax - MEM32(ecx + 0x4); /* 0x4703FFBE: sub eax, dword ptr [ecx + 4] */ 6205 _flag_k = FK_CMP; 6206 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6207 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6208 eax = eax + ecx; /* 0x4703FFC1: add eax, ecx */ 6209 _flag_k = FK_ADD; 6210 ecx = eax; /* 0x4703FFC3: mov ecx, eax */ 6211 L_4703FFC5: 6212 MEM32(ebp + (-0x34)) = ecx; /* 0x4703FFC5: mov dword ptr [ebp - 0x34], ecx */ 6213 ebx = ecx; /* 0x4703FFC8: mov ebx, ecx */ 6214 MEM32(ebp + (-0x20)) = ebx; /* 0x4703FFCA: mov dword ptr [ebp - 0x20], ebx */ 6215 eax = MEM32(ecx); /* 0x4703FFCD: mov eax, dword ptr [ecx] */ 6216 /* cmp eax, 0xFFFFFFFFu */ /* 0x4703FFCF: cmp eax, -1 */ 6217 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 6218 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6219 _flag_k = FK_CMP; 6220 if (CMP_NE(_flag_a, _flag_b)) goto L_4703FFD8; /* 0x4703FFD2: jne 0x4703ffd8 */ 6221 L_4703FFD4: 6222 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6223 eax = 0; /* 0x4703FFD4: xor eax, eax */ 6224 _cf = 0; 6225 _flag_k = FK_TEST; 6226 goto L_4703FFDD; /* 0x4703FFD6: jmp 0x4703ffdd */ 6227 L_4703FFD8: 6228 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 6229 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6230 eax = eax - MEM32(ecx + 0x4); /* 0x4703FFD8: sub eax, dword ptr [ecx + 4] */ 6231 _flag_k = FK_CMP; 6232 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6233 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6234 eax = eax + ecx; /* 0x4703FFDB: add eax, ecx */ 6235 _flag_k = FK_ADD; 6236 L_4703FFDD: 6237 MEM32(ebp + (-0x3C)) = eax; /* 0x4703FFDD: mov dword ptr [ebp - 0x3c], eax */ 6238 esi = eax; /* 0x4703FFE0: mov esi, eax */ 6239 MEM32(ebp + (-0x1C)) = esi; /* 0x4703FFE2: mov dword ptr [ebp - 0x1c], esi */ 6240 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x4703FFE5: mov dword ptr [ebp - 4], 0xffffffff */ 6241 goto L_47040014; /* 0x4703FFEC: jmp 0x47040014 */ 6242 L_47040014: 6243 MEM32(ebp + (-0x4)) = 1; /* 0x47040014: mov dword ptr [ebp - 4], 1 */ 6244 eax = MEM32(esi + 0x8); /* 0x4704001B: mov eax, dword ptr [esi + 8] */ 6245 /* cmp eax, edx */ /* 0x4704001E: cmp eax, edx */ 6246 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6247 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6248 _flag_k = FK_CMP; 6249 if (CMP_B(_flag_a, _flag_b)) goto L_470400C8; /* 0x47040020: jb 0x470400c8 */ 6250 L_47040026: 6251 if (CMP_NE(_flag_a, _flag_b)) goto L_47040052; /* 0x47040026: jne 0x47040052 */ 6252 L_47040028: 6253 eax = MEM32(esi); /* 0x47040028: mov eax, dword ptr [esi] */ 6254 /* cmp eax, 0xFFFFFFFFu */ /* 0x4704002A: cmp eax, -1 */ 6255 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 6256 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6257 _flag_k = FK_CMP; 6258 if (CMP_NE(_flag_a, _flag_b)) goto L_47040033; /* 0x4704002D: jne 0x47040033 */ 6259 L_4704002F: 6260 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6261 eax = 0; /* 0x4704002F: xor eax, eax */ 6262 _cf = 0; 6263 _flag_k = FK_TEST; 6264 goto L_47040038; /* 0x47040031: jmp 0x47040038 */ 6265 L_47040033: 6266 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6267 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6268 eax = eax - MEM32(esi + 0x4); /* 0x47040033: sub eax, dword ptr [esi + 4] */ 6269 _flag_k = FK_CMP; 6270 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 6271 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6272 eax = eax + esi; /* 0x47040036: add eax, esi */ 6273 _flag_k = FK_ADD; 6274 L_47040038: 6275 MEM32(ebp + (-0x40)) = eax; /* 0x47040038: mov dword ptr [ebp - 0x40], eax */ 6276 /* test eax, eax */ /* 0x4704003B: test eax, eax */ 6277 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6278 _cf = 0; 6279 _flag_k = FK_TEST; 6280 if (TEST_NZ(_flag_a, _flag_b)) goto L_47040047; /* 0x4704003D: jne 0x47040047 */ 6281 L_4704003F: 6282 MEM32(ebx) = 0xFFFFFFFFu; /* 0x4704003F: mov dword ptr [ebx], 0xffffffff */ 6283 goto L_47040073; /* 0x47040045: jmp 0x47040073 */ 6284 L_47040047: 6285 ecx = MEM32(ebx + 0x4); /* 0x47040047: mov ecx, dword ptr [ebx + 4] */ 6286 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 6287 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6288 ecx = ecx - ebx; /* 0x4704004A: sub ecx, ebx */ 6289 _flag_k = FK_CMP; 6290 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6291 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6292 ecx = ecx + eax; /* 0x4704004C: add ecx, eax */ 6293 _flag_k = FK_ADD; 6294 MEM32(ebx) = ecx; /* 0x4704004E: mov dword ptr [ebx], ecx */ 6295 goto L_47040073; /* 0x47040050: jmp 0x47040073 */ 6296 L_47040052: 6297 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6298 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6299 eax = eax - edx; /* 0x47040052: sub eax, edx */ 6300 _flag_k = FK_CMP; 6301 MEM32(esi + 0x8) = eax; /* 0x47040054: mov dword ptr [esi + 8], eax */ 6302 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x47040057: shl eax, 4 */ 6303 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6304 eax = eax << 4u; /* 0x47040057: shl eax, 4 */ 6305 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 6306 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6307 esi = esi + eax; /* 0x4704005A: add esi, eax */ 6308 _flag_k = FK_ADD; 6309 MEM32(ebp + (-0x1C)) = esi; /* 0x4704005C: mov dword ptr [ebp - 0x1c], esi */ 6310 edx = MEM32(edi); /* 0x4704005F: mov edx, dword ptr [edi] */ 6311 PUSH32(esp, edx); /* 0x47040061: push edx */ 6312 PUSH32(esp, 0); /* 0x47040062: push 0 */ 6313 PUSH32(esp, esi); /* 0x47040064: push esi */ 6314 RECOMP_ICALL(0x47009A00u); /* 0x47040065: call 0x47009a00 */ /* not lifted */ 6315 RECOMP_FLAGS_IN(); 6316 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6317 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6318 esp = esp + 0xCu; /* 0x4704006A: add esp, 0xc */ 6319 _flag_k = FK_ADD; 6320 eax = MEM32(ebp + (-0x24)); /* 0x4704006D: mov eax, dword ptr [ebp - 0x24] */ 6321 MEM32(esi + 0x8) = eax; /* 0x47040070: mov dword ptr [esi + 8], eax */ 6322 L_47040073: 6323 eax = MEM32(edi); /* 0x47040073: mov eax, dword ptr [edi] */ 6324 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 6325 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6326 eax = eax + 8; /* 0x47040075: add eax, 8 */ 6327 _flag_k = FK_ADD; 6328 MEM32(ebp + (-0x44)) = eax; /* 0x47040078: mov dword ptr [ebp - 0x44], eax */ 6329 /* test ebx, ebx */ /* 0x4704007B: test ebx, ebx */ 6330 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 6331 _cf = 0; 6332 _flag_k = FK_TEST; 6333 if (TEST_NZ(_flag_a, _flag_b)) goto L_470400A2; /* 0x4704007D: jne 0x470400a2 */ 6334 L_4704007F: 6335 MEM32(eax) = 0xFFFFFFFFu; /* 0x4704007F: mov dword ptr [eax], 0xffffffff */ 6336 eax = esi + 0x10; /* 0x47040085: lea eax, [esi + 0x10] */ 6337 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47040088: mov dword ptr [ebp - 4], 0xffffffff */ 6338 ecx = MEM32(ebp + (-0x10)); /* 0x4704008F: mov ecx, dword ptr [ebp - 0x10] */ 6339 MEM32(FS_BASE + (0)) = ecx; /* 0x47040092: mov dword ptr fs:[0], ecx */ 6340 edi = POP32_VAL(esp); /* 0x47040099: pop edi */ 6341 esi = POP32_VAL(esp); /* 0x4704009A: pop esi */ 6342 ebx = POP32_VAL(esp); /* 0x4704009B: pop ebx */ 6343 esp = ebp; /* 0x4704009C: mov esp, ebp */ 6344 ebp = POP32_VAL(esp); /* 0x4704009E: pop ebp */ 6345 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4704009F: ret 4 */ 6346 L_470400A2: 6347 ecx = MEM32(eax + 0x4); /* 0x470400A2: mov ecx, dword ptr [eax + 4] */ 6348 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6349 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6350 ecx = ecx - eax; /* 0x470400A5: sub ecx, eax */ 6351 _flag_k = FK_CMP; 6352 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 6353 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6354 ecx = ecx + ebx; /* 0x470400A7: add ecx, ebx */ 6355 _flag_k = FK_ADD; 6356 MEM32(eax) = ecx; /* 0x470400A9: mov dword ptr [eax], ecx */ 6357 eax = esi + 0x10; /* 0x470400AB: lea eax, [esi + 0x10] */ 6358 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x470400AE: mov dword ptr [ebp - 4], 0xffffffff */ 6359 ecx = MEM32(ebp + (-0x10)); /* 0x470400B5: mov ecx, dword ptr [ebp - 0x10] */ 6360 MEM32(FS_BASE + (0)) = ecx; /* 0x470400B8: mov dword ptr fs:[0], ecx */ 6361 edi = POP32_VAL(esp); /* 0x470400BF: pop edi */ 6362 esi = POP32_VAL(esp); /* 0x470400C0: pop esi */ 6363 ebx = POP32_VAL(esp); /* 0x470400C1: pop ebx */ 6364 esp = ebp; /* 0x470400C2: mov esp, ebp */ 6365 ebp = POP32_VAL(esp); /* 0x470400C4: pop ebp */ 6366 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470400C5: ret 4 */ 6367 L_470400C8: 6368 eax = MEM32(edi); /* 0x470400C8: mov eax, dword ptr [edi] */ 6369 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 6370 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6371 eax = eax + 8; /* 0x470400CA: add eax, 8 */ 6372 _flag_k = FK_ADD; 6373 MEM32(ebp + (-0x4C)) = eax; /* 0x470400CD: mov dword ptr [ebp - 0x4c], eax */ 6374 ecx = MEM32(eax); /* 0x470400D0: mov ecx, dword ptr [eax] */ 6375 /* cmp ecx, 0xFFFFFFFFu */ /* 0x470400D2: cmp ecx, -1 */ 6376 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFFu); 6377 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6378 _flag_k = FK_CMP; 6379 if (CMP_NE(_flag_a, _flag_b)) goto L_470400DB; /* 0x470400D5: jne 0x470400db */ 6380 L_470400D7: 6381 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6382 ecx = 0; /* 0x470400D7: xor ecx, ecx */ 6383 _cf = 0; 6384 _flag_k = FK_TEST; 6385 goto L_470400E0; /* 0x470400D9: jmp 0x470400e0 */ 6386 L_470400DB: 6387 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x4)); 6388 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6389 ecx = ecx - MEM32(eax + 0x4); /* 0x470400DB: sub ecx, dword ptr [eax + 4] */ 6390 _flag_k = FK_CMP; 6391 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6392 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6393 ecx = ecx + eax; /* 0x470400DE: add ecx, eax */ 6394 _flag_k = FK_ADD; 6395 L_470400E0: 6396 MEM32(ebp + (-0x48)) = ecx; /* 0x470400E0: mov dword ptr [ebp - 0x48], ecx */ 6397 /* cmp esi, ecx */ /* 0x470400E3: cmp esi, ecx */ 6398 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 6399 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6400 _flag_k = FK_CMP; 6401 if (CMP_NE(_flag_a, _flag_b)) goto L_4704014C; /* 0x470400E5: jne 0x4704014c */ 6402 L_470400E7: 6403 MEM32(ebp + (-0x28)) = 0; /* 0x470400E7: mov dword ptr [ebp - 0x28], 0 */ 6404 ecx = edi + 0x4; /* 0x470400EE: lea ecx, [edi + 4] */ 6405 eax = MEM32(ecx); /* 0x470400F1: mov eax, dword ptr [ecx] */ 6406 esi = ebp + (-0x28); /* 0x470400F3: lea esi, [ebp - 0x28] */ 6407 PUSH32(esp, esi); /* 0x470400F6: push esi */ 6408 if (4u) _cf = (((edx) >> 28) & 1u); /* 0x470400F7: shl edx, 4 */ 6409 if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6410 edx = edx << 4u; /* 0x470400F7: shl edx, 4 */ 6411 PUSH32(esp, edx); /* 0x470400FA: push edx */ 6412 RECOMP_ICALL(MEM32(eax + 0x44)); /* 0x470400FB: call dword ptr [eax + 0x44] */ 6413 RECOMP_FLAGS_IN(); 6414 esi = eax; /* 0x470400FE: mov esi, eax */ 6415 MEM32(ebp + (-0x1C)) = esi; /* 0x47040100: mov dword ptr [ebp - 0x1c], esi */ 6416 /* test esi, esi */ /* 0x47040103: test esi, esi */ 6417 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 6418 _cf = 0; 6419 _flag_k = FK_TEST; 6420 if (TEST_Z(_flag_a, _flag_b)) goto L_47040163; /* 0x47040105: je 0x47040163 */ 6421 L_47040107: 6422 ecx = MEM32(edi); /* 0x47040107: mov ecx, dword ptr [edi] */ 6423 PUSH32(esp, ecx); /* 0x47040109: push ecx */ 6424 PUSH32(esp, 0); /* 0x4704010A: push 0 */ 6425 PUSH32(esp, esi); /* 0x4704010C: push esi */ 6426 RECOMP_ICALL(0x47009A00u); /* 0x4704010D: call 0x47009a00 */ /* not lifted */ 6427 RECOMP_FLAGS_IN(); 6428 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6429 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6430 esp = esp + 0xCu; /* 0x47040112: add esp, 0xc */ 6431 _flag_k = FK_ADD; 6432 edx = MEM32(ebp + (-0x28)); /* 0x47040115: mov edx, dword ptr [ebp - 0x28] */ 6433 if (4u) _cf = (((edx) >> 3) & 1u); /* 0x47040118: shr edx, 4 */ 6434 if (4u) { _flag_a = recomp_flags_pack((edx >> 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6435 edx = edx >> 4u; /* 0x47040118: shr edx, 4 */ 6436 MEM32(esi + 0x8) = edx; /* 0x4704011B: mov dword ptr [esi + 8], edx */ 6437 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 6438 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6439 esi = esi + 0x10u; /* 0x4704011E: add esi, 0x10 */ 6440 _flag_k = FK_ADD; 6441 PUSH32(esp, esi); /* 0x47040121: push esi */ 6442 ecx = edi; /* 0x47040122: mov ecx, edi */ 6443 RECOMP_ICALL(0x47040220u); /* 0x47040124: call 0x47040220 */ /* not lifted */ 6444 RECOMP_FLAGS_IN(); 6445 eax = MEM32(edi); /* 0x47040129: mov eax, dword ptr [edi] */ 6446 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 6447 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6448 eax = eax + 8; /* 0x4704012B: add eax, 8 */ 6449 _flag_k = FK_ADD; 6450 MEM32(ebp + (-0x54)) = eax; /* 0x4704012E: mov dword ptr [ebp - 0x54], eax */ 6451 ecx = MEM32(eax); /* 0x47040131: mov ecx, dword ptr [eax] */ 6452 /* cmp ecx, 0xFFFFFFFFu */ /* 0x47040133: cmp ecx, -1 */ 6453 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFFu); 6454 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6455 _flag_k = FK_CMP; 6456 if (CMP_NE(_flag_a, _flag_b)) goto L_4704013C; /* 0x47040136: jne 0x4704013c */ 6457 L_47040138: 6458 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6459 ecx = 0; /* 0x47040138: xor ecx, ecx */ 6460 _cf = 0; 6461 _flag_k = FK_TEST; 6462 goto L_47040141; /* 0x4704013A: jmp 0x47040141 */ 6463 L_4704013C: 6464 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x4)); 6465 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6466 ecx = ecx - MEM32(eax + 0x4); /* 0x4704013C: sub ecx, dword ptr [eax + 4] */ 6467 _flag_k = FK_CMP; 6468 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6469 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6470 ecx = ecx + eax; /* 0x4704013F: add ecx, eax */ 6471 _flag_k = FK_ADD; 6472 L_47040141: 6473 MEM32(ebp + (-0x50)) = ecx; /* 0x47040141: mov dword ptr [ebp - 0x50], ecx */ 6474 esi = ecx; /* 0x47040144: mov esi, ecx */ 6475 MEM32(ebp + (-0x1C)) = esi; /* 0x47040146: mov dword ptr [ebp - 0x1c], esi */ 6476 edx = MEM32(ebp + (-0x24)); /* 0x47040149: mov edx, dword ptr [ebp - 0x24] */ 6477 L_4704014C: 6478 ebx = esi; /* 0x4704014C: mov ebx, esi */ 6479 MEM32(ebp + (-0x20)) = ebx; /* 0x4704014E: mov dword ptr [ebp - 0x20], ebx */ 6480 eax = MEM32(esi); /* 0x47040151: mov eax, dword ptr [esi] */ 6481 /* cmp eax, 0xFFFFFFFFu */ /* 0x47040153: cmp eax, -1 */ 6482 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 6483 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6484 _flag_k = FK_CMP; 6485 if (CMP_NE(_flag_a, _flag_b)) goto L_470401EC; /* 0x47040156: jne 0x470401ec */ 6486 L_4704015C: 6487 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6488 eax = 0; /* 0x4704015C: xor eax, eax */ 6489 _cf = 0; 6490 _flag_k = FK_TEST; 6491 goto L_470401F1; /* 0x4704015E: jmp 0x470401f1 */ 6492 L_47040163: 6493 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47040163: call dword ptr [0x470ac150] */ 6494 RECOMP_FLAGS_IN(); 6495 edi = eax; /* 0x47040169: mov edi, eax */ 6496 MEM32(ebp + (-0x58)) = edi; /* 0x4704016B: mov dword ptr [ebp - 0x58], edi */ 6497 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704016E: call dword ptr [0x470ac3c8] */ 6498 RECOMP_FLAGS_IN(); 6499 eax = MEM32(eax); /* 0x47040174: mov eax, dword ptr [eax] */ 6500 MEM32(ebp + (-0x5C)) = eax; /* 0x47040176: mov dword ptr [ebp - 0x5c], eax */ 6501 /* test eax, eax */ /* 0x47040179: test eax, eax */ 6502 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6503 _cf = 0; 6504 _flag_k = FK_TEST; 6505 if (TEST_Z(_flag_a, _flag_b)) goto L_4704017F; /* 0x4704017B: je 0x4704017f */ 6506 L_4704017D: 6507 edi = eax; /* 0x4704017D: mov edi, eax */ 6508 L_4704017F: 6509 MEM32(ebp + (-0x2C)) = edi; /* 0x4704017F: mov dword ptr [ebp - 0x2c], edi */ 6510 RECOMP_ICALL(0x47039020u); /* 0x47040182: call 0x47039020 */ /* not lifted */ 6511 RECOMP_FLAGS_IN(); 6512 esi = eax; /* 0x47040187: mov esi, eax */ 6513 MEM32(ebp + (-0x30)) = esi; /* 0x47040189: mov dword ptr [ebp - 0x30], esi */ 6514 ecx = esi; /* 0x4704018C: mov ecx, esi */ 6515 RECOMP_ICALL(0x4703B210u); /* 0x4704018E: call 0x4703b210 */ /* not lifted */ 6516 RECOMP_FLAGS_IN(); 6517 PUSH32(esp, eax); /* 0x47040193: push eax */ 6518 ecx = esi; /* 0x47040194: mov ecx, esi */ 6519 RECOMP_ICALL(0x4703B240u); /* 0x47040196: call 0x4703b240 */ /* not lifted */ 6520 RECOMP_FLAGS_IN(); 6521 PUSH32(esp, eax); /* 0x4704019B: push eax */ 6522 ecx = esi; /* 0x4704019C: mov ecx, esi */ 6523 RECOMP_ICALL(0x4703B080u); /* 0x4704019E: call 0x4703b080 */ /* not lifted */ 6524 RECOMP_FLAGS_IN(); 6525 PUSH32(esp, eax); /* 0x470401A3: push eax */ 6526 PUSH32(esp, edi); /* 0x470401A4: push edi */ 6527 PUSH32(esp, 0); /* 0x470401A5: push 0 */ 6528 PUSH32(esp, 0x188u); /* 0x470401A7: push 0x188 */ 6529 PUSH32(esp, 0x47105B2Cu); /* 0x470401AC: push 0x47105b2c */ 6530 ecx = esi; /* 0x470401B1: mov ecx, esi */ 6531 RECOMP_ICALL(0x4703A340u); /* 0x470401B3: call 0x4703a340 */ /* not lifted */ 6532 RECOMP_FLAGS_IN(); 6533 PUSH32(esp, 0x47105BB8u); /* 0x470401B8: push 0x47105bb8 */ 6534 PUSH32(esp, 0x47105B0Cu); /* 0x470401BD: push 0x47105b0c */ 6535 PUSH32(esp, 0x80u); /* 0x470401C2: push 0x80 */ 6536 PUSH32(esp, esi); /* 0x470401C7: push esi */ 6537 RECOMP_ICALL(0x47039830u); /* 0x470401C8: call 0x47039830 */ /* not lifted */ 6538 RECOMP_FLAGS_IN(); 6539 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6540 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6541 esp = esp + 0x10u; /* 0x470401CD: add esp, 0x10 */ 6542 _flag_k = FK_ADD; 6543 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x470401D0: mov dword ptr [ebp - 4], 0xffffffff */ 6544 L_470401D7: 6545 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6546 eax = 0; /* 0x470401D7: xor eax, eax */ 6547 _cf = 0; 6548 _flag_k = FK_TEST; 6549 ecx = MEM32(ebp + (-0x10)); /* 0x470401D9: mov ecx, dword ptr [ebp - 0x10] */ 6550 MEM32(FS_BASE + (0)) = ecx; /* 0x470401DC: mov dword ptr fs:[0], ecx */ 6551 edi = POP32_VAL(esp); /* 0x470401E3: pop edi */ 6552 esi = POP32_VAL(esp); /* 0x470401E4: pop esi */ 6553 ebx = POP32_VAL(esp); /* 0x470401E5: pop ebx */ 6554 esp = ebp; /* 0x470401E6: mov esp, ebp */ 6555 ebp = POP32_VAL(esp); /* 0x470401E8: pop ebp */ 6556 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470401E9: ret 4 */ 6557 L_470401EC: 6558 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6559 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6560 eax = eax - MEM32(esi + 0x4); /* 0x470401EC: sub eax, dword ptr [esi + 4] */ 6561 _flag_k = FK_CMP; 6562 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 6563 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6564 eax = eax + esi; /* 0x470401EF: add eax, esi */ 6565 _flag_k = FK_ADD; 6566 L_470401F1: 6567 MEM32(ebp + (-0x60)) = eax; /* 0x470401F1: mov dword ptr [ebp - 0x60], eax */ 6568 esi = eax; /* 0x470401F4: mov esi, eax */ 6569 MEM32(ebp + (-0x1C)) = esi; /* 0x470401F6: mov dword ptr [ebp - 0x1c], esi */ 6570 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x470401F9: mov dword ptr [ebp - 4], 0xffffffff */ 6571 RECOMP_BACKEDGE(); 6572 goto L_47040014; /* 0x47040200: jmp 0x47040014 */ 6573 { RECOMP_REGS_OUT(); return; } /* end of function */ 6574 RECOMP_REGS_OUT(); 6575 } 6576 6577 void sub_4703FFEE(void) { 6578 int _fpu_cmp = 0; 6579 uint32_t _cf = 0; 6580 int _df = 1; 6581 uint32_t _flag_k = FK_NONE; 6582 uint32_t _flag_a = 0, _flag_b = 0; 6583 uint32_t _itail_tgt = 0; 6584 RECOMP_REGS_LOCALS 6585 RECOMP_ENTER(0x4703FFEEu); 6586 6587 L_4703FFEE: 6588 edx = MEM32(ebp + (-0x64)); /* 0x4703FFEE: mov edx, dword ptr [ebp - 0x64] */ 6589 ecx = edx + 0x4; /* 0x4703FFF1: lea ecx, [edx + 4] */ 6590 eax = MEM32(ecx); /* 0x4703FFF4: mov eax, dword ptr [ecx] */ 6591 edx = MEM32(ebp + (-0x14)); /* 0x4703FFF6: mov edx, dword ptr [ebp - 0x14] */ 6592 PUSH32(esp, edx); /* 0x4703FFF9: push edx */ 6593 RECOMP_ICALL(MEM32(eax + 0x5C)); /* 0x4703FFFA: call dword ptr [eax + 0x5c] */ 6594 RECOMP_FLAGS_IN(); 6595 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703FFFD: ret */ 6596 RECOMP_REGS_OUT(); 6597 } 6598 6599 void sub_4703FFFE(void) { 6600 int _fpu_cmp = 0; 6601 uint32_t _cf = 0; 6602 int _df = 1; 6603 uint32_t _flag_k = FK_NONE; 6604 uint32_t _flag_a = 0, _flag_b = 0; 6605 uint32_t _itail_tgt = 0; 6606 RECOMP_REGS_LOCALS 6607 RECOMP_ENTER(0x4703FFFEu); 6608 6609 L_4703FFFE: 6610 esp = MEM32(ebp + (-0x18)); /* 0x4703FFFE: mov esp, dword ptr [ebp - 0x18] */ 6611 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47040001: mov dword ptr [ebp - 4], 0xffffffff */ 6612 edi = MEM32(ebp + (-0x64)); /* 0x47040008: mov edi, dword ptr [ebp - 0x64] */ 6613 ebx = MEM32(ebp + (-0x20)); /* 0x4704000B: mov ebx, dword ptr [ebp - 0x20] */ 6614 esi = MEM32(ebp + (-0x1C)); /* 0x4704000E: mov esi, dword ptr [ebp - 0x1c] */ 6615 edx = MEM32(ebp + (-0x24)); /* 0x47040011: mov edx, dword ptr [ebp - 0x24] */ 6616 L_47040014: 6617 MEM32(ebp + (-0x4)) = 1; /* 0x47040014: mov dword ptr [ebp - 4], 1 */ 6618 eax = MEM32(esi + 0x8); /* 0x4704001B: mov eax, dword ptr [esi + 8] */ 6619 /* cmp eax, edx */ /* 0x4704001E: cmp eax, edx */ 6620 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6621 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6622 _flag_k = FK_CMP; 6623 if (CMP_B(_flag_a, _flag_b)) goto L_470400C8; /* 0x47040020: jb 0x470400c8 */ 6624 L_47040026: 6625 if (CMP_NE(_flag_a, _flag_b)) goto L_47040052; /* 0x47040026: jne 0x47040052 */ 6626 L_47040028: 6627 eax = MEM32(esi); /* 0x47040028: mov eax, dword ptr [esi] */ 6628 /* cmp eax, 0xFFFFFFFFu */ /* 0x4704002A: cmp eax, -1 */ 6629 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 6630 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6631 _flag_k = FK_CMP; 6632 if (CMP_NE(_flag_a, _flag_b)) goto L_47040033; /* 0x4704002D: jne 0x47040033 */ 6633 L_4704002F: 6634 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6635 eax = 0; /* 0x4704002F: xor eax, eax */ 6636 _cf = 0; 6637 _flag_k = FK_TEST; 6638 goto L_47040038; /* 0x47040031: jmp 0x47040038 */ 6639 L_47040033: 6640 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6641 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6642 eax = eax - MEM32(esi + 0x4); /* 0x47040033: sub eax, dword ptr [esi + 4] */ 6643 _flag_k = FK_CMP; 6644 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 6645 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6646 eax = eax + esi; /* 0x47040036: add eax, esi */ 6647 _flag_k = FK_ADD; 6648 L_47040038: 6649 MEM32(ebp + (-0x40)) = eax; /* 0x47040038: mov dword ptr [ebp - 0x40], eax */ 6650 /* test eax, eax */ /* 0x4704003B: test eax, eax */ 6651 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6652 _cf = 0; 6653 _flag_k = FK_TEST; 6654 if (TEST_NZ(_flag_a, _flag_b)) goto L_47040047; /* 0x4704003D: jne 0x47040047 */ 6655 L_4704003F: 6656 MEM32(ebx) = 0xFFFFFFFFu; /* 0x4704003F: mov dword ptr [ebx], 0xffffffff */ 6657 goto L_47040073; /* 0x47040045: jmp 0x47040073 */ 6658 L_47040047: 6659 ecx = MEM32(ebx + 0x4); /* 0x47040047: mov ecx, dword ptr [ebx + 4] */ 6660 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 6661 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6662 ecx = ecx - ebx; /* 0x4704004A: sub ecx, ebx */ 6663 _flag_k = FK_CMP; 6664 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6665 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6666 ecx = ecx + eax; /* 0x4704004C: add ecx, eax */ 6667 _flag_k = FK_ADD; 6668 MEM32(ebx) = ecx; /* 0x4704004E: mov dword ptr [ebx], ecx */ 6669 goto L_47040073; /* 0x47040050: jmp 0x47040073 */ 6670 L_47040052: 6671 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6672 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6673 eax = eax - edx; /* 0x47040052: sub eax, edx */ 6674 _flag_k = FK_CMP; 6675 MEM32(esi + 0x8) = eax; /* 0x47040054: mov dword ptr [esi + 8], eax */ 6676 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x47040057: shl eax, 4 */ 6677 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6678 eax = eax << 4u; /* 0x47040057: shl eax, 4 */ 6679 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 6680 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6681 esi = esi + eax; /* 0x4704005A: add esi, eax */ 6682 _flag_k = FK_ADD; 6683 MEM32(ebp + (-0x1C)) = esi; /* 0x4704005C: mov dword ptr [ebp - 0x1c], esi */ 6684 edx = MEM32(edi); /* 0x4704005F: mov edx, dword ptr [edi] */ 6685 PUSH32(esp, edx); /* 0x47040061: push edx */ 6686 PUSH32(esp, 0); /* 0x47040062: push 0 */ 6687 PUSH32(esp, esi); /* 0x47040064: push esi */ 6688 RECOMP_ICALL(0x47009A00u); /* 0x47040065: call 0x47009a00 */ /* not lifted */ 6689 RECOMP_FLAGS_IN(); 6690 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6691 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6692 esp = esp + 0xCu; /* 0x4704006A: add esp, 0xc */ 6693 _flag_k = FK_ADD; 6694 eax = MEM32(ebp + (-0x24)); /* 0x4704006D: mov eax, dword ptr [ebp - 0x24] */ 6695 MEM32(esi + 0x8) = eax; /* 0x47040070: mov dword ptr [esi + 8], eax */ 6696 L_47040073: 6697 eax = MEM32(edi); /* 0x47040073: mov eax, dword ptr [edi] */ 6698 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 6699 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6700 eax = eax + 8; /* 0x47040075: add eax, 8 */ 6701 _flag_k = FK_ADD; 6702 MEM32(ebp + (-0x44)) = eax; /* 0x47040078: mov dword ptr [ebp - 0x44], eax */ 6703 /* test ebx, ebx */ /* 0x4704007B: test ebx, ebx */ 6704 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 6705 _cf = 0; 6706 _flag_k = FK_TEST; 6707 if (TEST_NZ(_flag_a, _flag_b)) goto L_470400A2; /* 0x4704007D: jne 0x470400a2 */ 6708 L_4704007F: 6709 MEM32(eax) = 0xFFFFFFFFu; /* 0x4704007F: mov dword ptr [eax], 0xffffffff */ 6710 eax = esi + 0x10; /* 0x47040085: lea eax, [esi + 0x10] */ 6711 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47040088: mov dword ptr [ebp - 4], 0xffffffff */ 6712 ecx = MEM32(ebp + (-0x10)); /* 0x4704008F: mov ecx, dword ptr [ebp - 0x10] */ 6713 MEM32(FS_BASE + (0)) = ecx; /* 0x47040092: mov dword ptr fs:[0], ecx */ 6714 edi = POP32_VAL(esp); /* 0x47040099: pop edi */ 6715 esi = POP32_VAL(esp); /* 0x4704009A: pop esi */ 6716 ebx = POP32_VAL(esp); /* 0x4704009B: pop ebx */ 6717 esp = ebp; /* 0x4704009C: mov esp, ebp */ 6718 ebp = POP32_VAL(esp); /* 0x4704009E: pop ebp */ 6719 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4704009F: ret 4 */ 6720 L_470400A2: 6721 ecx = MEM32(eax + 0x4); /* 0x470400A2: mov ecx, dword ptr [eax + 4] */ 6722 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6723 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6724 ecx = ecx - eax; /* 0x470400A5: sub ecx, eax */ 6725 _flag_k = FK_CMP; 6726 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 6727 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6728 ecx = ecx + ebx; /* 0x470400A7: add ecx, ebx */ 6729 _flag_k = FK_ADD; 6730 MEM32(eax) = ecx; /* 0x470400A9: mov dword ptr [eax], ecx */ 6731 eax = esi + 0x10; /* 0x470400AB: lea eax, [esi + 0x10] */ 6732 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x470400AE: mov dword ptr [ebp - 4], 0xffffffff */ 6733 ecx = MEM32(ebp + (-0x10)); /* 0x470400B5: mov ecx, dword ptr [ebp - 0x10] */ 6734 MEM32(FS_BASE + (0)) = ecx; /* 0x470400B8: mov dword ptr fs:[0], ecx */ 6735 edi = POP32_VAL(esp); /* 0x470400BF: pop edi */ 6736 esi = POP32_VAL(esp); /* 0x470400C0: pop esi */ 6737 ebx = POP32_VAL(esp); /* 0x470400C1: pop ebx */ 6738 esp = ebp; /* 0x470400C2: mov esp, ebp */ 6739 ebp = POP32_VAL(esp); /* 0x470400C4: pop ebp */ 6740 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470400C5: ret 4 */ 6741 L_470400C8: 6742 eax = MEM32(edi); /* 0x470400C8: mov eax, dword ptr [edi] */ 6743 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 6744 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6745 eax = eax + 8; /* 0x470400CA: add eax, 8 */ 6746 _flag_k = FK_ADD; 6747 MEM32(ebp + (-0x4C)) = eax; /* 0x470400CD: mov dword ptr [ebp - 0x4c], eax */ 6748 ecx = MEM32(eax); /* 0x470400D0: mov ecx, dword ptr [eax] */ 6749 /* cmp ecx, 0xFFFFFFFFu */ /* 0x470400D2: cmp ecx, -1 */ 6750 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFFu); 6751 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6752 _flag_k = FK_CMP; 6753 if (CMP_NE(_flag_a, _flag_b)) goto L_470400DB; /* 0x470400D5: jne 0x470400db */ 6754 L_470400D7: 6755 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6756 ecx = 0; /* 0x470400D7: xor ecx, ecx */ 6757 _cf = 0; 6758 _flag_k = FK_TEST; 6759 goto L_470400E0; /* 0x470400D9: jmp 0x470400e0 */ 6760 L_470400DB: 6761 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x4)); 6762 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6763 ecx = ecx - MEM32(eax + 0x4); /* 0x470400DB: sub ecx, dword ptr [eax + 4] */ 6764 _flag_k = FK_CMP; 6765 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6766 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6767 ecx = ecx + eax; /* 0x470400DE: add ecx, eax */ 6768 _flag_k = FK_ADD; 6769 L_470400E0: 6770 MEM32(ebp + (-0x48)) = ecx; /* 0x470400E0: mov dword ptr [ebp - 0x48], ecx */ 6771 /* cmp esi, ecx */ /* 0x470400E3: cmp esi, ecx */ 6772 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 6773 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6774 _flag_k = FK_CMP; 6775 if (CMP_NE(_flag_a, _flag_b)) goto L_4704014C; /* 0x470400E5: jne 0x4704014c */ 6776 L_470400E7: 6777 MEM32(ebp + (-0x28)) = 0; /* 0x470400E7: mov dword ptr [ebp - 0x28], 0 */ 6778 ecx = edi + 0x4; /* 0x470400EE: lea ecx, [edi + 4] */ 6779 eax = MEM32(ecx); /* 0x470400F1: mov eax, dword ptr [ecx] */ 6780 esi = ebp + (-0x28); /* 0x470400F3: lea esi, [ebp - 0x28] */ 6781 PUSH32(esp, esi); /* 0x470400F6: push esi */ 6782 if (4u) _cf = (((edx) >> 28) & 1u); /* 0x470400F7: shl edx, 4 */ 6783 if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6784 edx = edx << 4u; /* 0x470400F7: shl edx, 4 */ 6785 PUSH32(esp, edx); /* 0x470400FA: push edx */ 6786 RECOMP_ICALL(MEM32(eax + 0x44)); /* 0x470400FB: call dword ptr [eax + 0x44] */ 6787 RECOMP_FLAGS_IN(); 6788 esi = eax; /* 0x470400FE: mov esi, eax */ 6789 MEM32(ebp + (-0x1C)) = esi; /* 0x47040100: mov dword ptr [ebp - 0x1c], esi */ 6790 /* test esi, esi */ /* 0x47040103: test esi, esi */ 6791 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 6792 _cf = 0; 6793 _flag_k = FK_TEST; 6794 if (TEST_Z(_flag_a, _flag_b)) goto L_47040163; /* 0x47040105: je 0x47040163 */ 6795 L_47040107: 6796 ecx = MEM32(edi); /* 0x47040107: mov ecx, dword ptr [edi] */ 6797 PUSH32(esp, ecx); /* 0x47040109: push ecx */ 6798 PUSH32(esp, 0); /* 0x4704010A: push 0 */ 6799 PUSH32(esp, esi); /* 0x4704010C: push esi */ 6800 RECOMP_ICALL(0x47009A00u); /* 0x4704010D: call 0x47009a00 */ /* not lifted */ 6801 RECOMP_FLAGS_IN(); 6802 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6803 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6804 esp = esp + 0xCu; /* 0x47040112: add esp, 0xc */ 6805 _flag_k = FK_ADD; 6806 edx = MEM32(ebp + (-0x28)); /* 0x47040115: mov edx, dword ptr [ebp - 0x28] */ 6807 if (4u) _cf = (((edx) >> 3) & 1u); /* 0x47040118: shr edx, 4 */ 6808 if (4u) { _flag_a = recomp_flags_pack((edx >> 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6809 edx = edx >> 4u; /* 0x47040118: shr edx, 4 */ 6810 MEM32(esi + 0x8) = edx; /* 0x4704011B: mov dword ptr [esi + 8], edx */ 6811 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 6812 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6813 esi = esi + 0x10u; /* 0x4704011E: add esi, 0x10 */ 6814 _flag_k = FK_ADD; 6815 PUSH32(esp, esi); /* 0x47040121: push esi */ 6816 ecx = edi; /* 0x47040122: mov ecx, edi */ 6817 RECOMP_ICALL(0x47040220u); /* 0x47040124: call 0x47040220 */ /* not lifted */ 6818 RECOMP_FLAGS_IN(); 6819 eax = MEM32(edi); /* 0x47040129: mov eax, dword ptr [edi] */ 6820 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 6821 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6822 eax = eax + 8; /* 0x4704012B: add eax, 8 */ 6823 _flag_k = FK_ADD; 6824 MEM32(ebp + (-0x54)) = eax; /* 0x4704012E: mov dword ptr [ebp - 0x54], eax */ 6825 ecx = MEM32(eax); /* 0x47040131: mov ecx, dword ptr [eax] */ 6826 /* cmp ecx, 0xFFFFFFFFu */ /* 0x47040133: cmp ecx, -1 */ 6827 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFFu); 6828 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6829 _flag_k = FK_CMP; 6830 if (CMP_NE(_flag_a, _flag_b)) goto L_4704013C; /* 0x47040136: jne 0x4704013c */ 6831 L_47040138: 6832 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6833 ecx = 0; /* 0x47040138: xor ecx, ecx */ 6834 _cf = 0; 6835 _flag_k = FK_TEST; 6836 goto L_47040141; /* 0x4704013A: jmp 0x47040141 */ 6837 L_4704013C: 6838 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x4)); 6839 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6840 ecx = ecx - MEM32(eax + 0x4); /* 0x4704013C: sub ecx, dword ptr [eax + 4] */ 6841 _flag_k = FK_CMP; 6842 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6843 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6844 ecx = ecx + eax; /* 0x4704013F: add ecx, eax */ 6845 _flag_k = FK_ADD; 6846 L_47040141: 6847 MEM32(ebp + (-0x50)) = ecx; /* 0x47040141: mov dword ptr [ebp - 0x50], ecx */ 6848 esi = ecx; /* 0x47040144: mov esi, ecx */ 6849 MEM32(ebp + (-0x1C)) = esi; /* 0x47040146: mov dword ptr [ebp - 0x1c], esi */ 6850 edx = MEM32(ebp + (-0x24)); /* 0x47040149: mov edx, dword ptr [ebp - 0x24] */ 6851 L_4704014C: 6852 ebx = esi; /* 0x4704014C: mov ebx, esi */ 6853 MEM32(ebp + (-0x20)) = ebx; /* 0x4704014E: mov dword ptr [ebp - 0x20], ebx */ 6854 eax = MEM32(esi); /* 0x47040151: mov eax, dword ptr [esi] */ 6855 /* cmp eax, 0xFFFFFFFFu */ /* 0x47040153: cmp eax, -1 */ 6856 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 6857 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6858 _flag_k = FK_CMP; 6859 if (CMP_NE(_flag_a, _flag_b)) goto L_470401EC; /* 0x47040156: jne 0x470401ec */ 6860 L_4704015C: 6861 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6862 eax = 0; /* 0x4704015C: xor eax, eax */ 6863 _cf = 0; 6864 _flag_k = FK_TEST; 6865 goto L_470401F1; /* 0x4704015E: jmp 0x470401f1 */ 6866 L_47040163: 6867 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47040163: call dword ptr [0x470ac150] */ 6868 RECOMP_FLAGS_IN(); 6869 edi = eax; /* 0x47040169: mov edi, eax */ 6870 MEM32(ebp + (-0x58)) = edi; /* 0x4704016B: mov dword ptr [ebp - 0x58], edi */ 6871 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704016E: call dword ptr [0x470ac3c8] */ 6872 RECOMP_FLAGS_IN(); 6873 eax = MEM32(eax); /* 0x47040174: mov eax, dword ptr [eax] */ 6874 MEM32(ebp + (-0x5C)) = eax; /* 0x47040176: mov dword ptr [ebp - 0x5c], eax */ 6875 /* test eax, eax */ /* 0x47040179: test eax, eax */ 6876 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6877 _cf = 0; 6878 _flag_k = FK_TEST; 6879 if (TEST_Z(_flag_a, _flag_b)) goto L_4704017F; /* 0x4704017B: je 0x4704017f */ 6880 L_4704017D: 6881 edi = eax; /* 0x4704017D: mov edi, eax */ 6882 L_4704017F: 6883 MEM32(ebp + (-0x2C)) = edi; /* 0x4704017F: mov dword ptr [ebp - 0x2c], edi */ 6884 RECOMP_ICALL(0x47039020u); /* 0x47040182: call 0x47039020 */ /* not lifted */ 6885 RECOMP_FLAGS_IN(); 6886 esi = eax; /* 0x47040187: mov esi, eax */ 6887 MEM32(ebp + (-0x30)) = esi; /* 0x47040189: mov dword ptr [ebp - 0x30], esi */ 6888 ecx = esi; /* 0x4704018C: mov ecx, esi */ 6889 RECOMP_ICALL(0x4703B210u); /* 0x4704018E: call 0x4703b210 */ /* not lifted */ 6890 RECOMP_FLAGS_IN(); 6891 PUSH32(esp, eax); /* 0x47040193: push eax */ 6892 ecx = esi; /* 0x47040194: mov ecx, esi */ 6893 RECOMP_ICALL(0x4703B240u); /* 0x47040196: call 0x4703b240 */ /* not lifted */ 6894 RECOMP_FLAGS_IN(); 6895 PUSH32(esp, eax); /* 0x4704019B: push eax */ 6896 ecx = esi; /* 0x4704019C: mov ecx, esi */ 6897 RECOMP_ICALL(0x4703B080u); /* 0x4704019E: call 0x4703b080 */ /* not lifted */ 6898 RECOMP_FLAGS_IN(); 6899 PUSH32(esp, eax); /* 0x470401A3: push eax */ 6900 PUSH32(esp, edi); /* 0x470401A4: push edi */ 6901 PUSH32(esp, 0); /* 0x470401A5: push 0 */ 6902 PUSH32(esp, 0x188u); /* 0x470401A7: push 0x188 */ 6903 PUSH32(esp, 0x47105B2Cu); /* 0x470401AC: push 0x47105b2c */ 6904 ecx = esi; /* 0x470401B1: mov ecx, esi */ 6905 RECOMP_ICALL(0x4703A340u); /* 0x470401B3: call 0x4703a340 */ /* not lifted */ 6906 RECOMP_FLAGS_IN(); 6907 PUSH32(esp, 0x47105BB8u); /* 0x470401B8: push 0x47105bb8 */ 6908 PUSH32(esp, 0x47105B0Cu); /* 0x470401BD: push 0x47105b0c */ 6909 PUSH32(esp, 0x80u); /* 0x470401C2: push 0x80 */ 6910 PUSH32(esp, esi); /* 0x470401C7: push esi */ 6911 RECOMP_ICALL(0x47039830u); /* 0x470401C8: call 0x47039830 */ /* not lifted */ 6912 RECOMP_FLAGS_IN(); 6913 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6914 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6915 esp = esp + 0x10u; /* 0x470401CD: add esp, 0x10 */ 6916 _flag_k = FK_ADD; 6917 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x470401D0: mov dword ptr [ebp - 4], 0xffffffff */ 6918 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6919 eax = 0; /* 0x470401D7: xor eax, eax */ 6920 _cf = 0; 6921 _flag_k = FK_TEST; 6922 ecx = MEM32(ebp + (-0x10)); /* 0x470401D9: mov ecx, dword ptr [ebp - 0x10] */ 6923 MEM32(FS_BASE + (0)) = ecx; /* 0x470401DC: mov dword ptr fs:[0], ecx */ 6924 edi = POP32_VAL(esp); /* 0x470401E3: pop edi */ 6925 esi = POP32_VAL(esp); /* 0x470401E4: pop esi */ 6926 ebx = POP32_VAL(esp); /* 0x470401E5: pop ebx */ 6927 esp = ebp; /* 0x470401E6: mov esp, ebp */ 6928 ebp = POP32_VAL(esp); /* 0x470401E8: pop ebp */ 6929 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470401E9: ret 4 */ 6930 L_470401EC: 6931 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6932 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6933 eax = eax - MEM32(esi + 0x4); /* 0x470401EC: sub eax, dword ptr [esi + 4] */ 6934 _flag_k = FK_CMP; 6935 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 6936 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6937 eax = eax + esi; /* 0x470401EF: add eax, esi */ 6938 _flag_k = FK_ADD; 6939 L_470401F1: 6940 MEM32(ebp + (-0x60)) = eax; /* 0x470401F1: mov dword ptr [ebp - 0x60], eax */ 6941 esi = eax; /* 0x470401F4: mov esi, eax */ 6942 MEM32(ebp + (-0x1C)) = esi; /* 0x470401F6: mov dword ptr [ebp - 0x1c], esi */ 6943 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x470401F9: mov dword ptr [ebp - 4], 0xffffffff */ 6944 RECOMP_BACKEDGE(); 6945 goto L_47040014; /* 0x47040200: jmp 0x47040014 */ 6946 { RECOMP_REGS_OUT(); return; } /* end of function */ 6947 RECOMP_REGS_OUT(); 6948 } 6949 6950 void sub_47040014(void) { 6951 int _fpu_cmp = 0; 6952 uint32_t _cf = 0; 6953 int _df = 1; 6954 uint32_t _flag_k = FK_NONE; 6955 uint32_t _flag_a = 0, _flag_b = 0; 6956 uint32_t _itail_tgt = 0; 6957 RECOMP_REGS_LOCALS 6958 RECOMP_ENTER(0x47040014u); 6959 6960 L_47040014: 6961 MEM32(ebp + (-0x4)) = 1; /* 0x47040014: mov dword ptr [ebp - 4], 1 */ 6962 eax = MEM32(esi + 0x8); /* 0x4704001B: mov eax, dword ptr [esi + 8] */ 6963 /* cmp eax, edx */ /* 0x4704001E: cmp eax, edx */ 6964 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6965 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6966 _flag_k = FK_CMP; 6967 if (CMP_B(_flag_a, _flag_b)) goto L_470400C8; /* 0x47040020: jb 0x470400c8 */ 6968 L_47040026: 6969 if (CMP_NE(_flag_a, _flag_b)) goto L_47040052; /* 0x47040026: jne 0x47040052 */ 6970 L_47040028: 6971 eax = MEM32(esi); /* 0x47040028: mov eax, dword ptr [esi] */ 6972 /* cmp eax, 0xFFFFFFFFu */ /* 0x4704002A: cmp eax, -1 */ 6973 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 6974 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6975 _flag_k = FK_CMP; 6976 if (CMP_NE(_flag_a, _flag_b)) goto L_47040033; /* 0x4704002D: jne 0x47040033 */ 6977 L_4704002F: 6978 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6979 eax = 0; /* 0x4704002F: xor eax, eax */ 6980 _cf = 0; 6981 _flag_k = FK_TEST; 6982 goto L_47040038; /* 0x47040031: jmp 0x47040038 */ 6983 L_47040033: 6984 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6985 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6986 eax = eax - MEM32(esi + 0x4); /* 0x47040033: sub eax, dword ptr [esi + 4] */ 6987 _flag_k = FK_CMP; 6988 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 6989 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6990 eax = eax + esi; /* 0x47040036: add eax, esi */ 6991 _flag_k = FK_ADD; 6992 L_47040038: 6993 MEM32(ebp + (-0x40)) = eax; /* 0x47040038: mov dword ptr [ebp - 0x40], eax */ 6994 /* test eax, eax */ /* 0x4704003B: test eax, eax */ 6995 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6996 _cf = 0; 6997 _flag_k = FK_TEST; 6998 if (TEST_NZ(_flag_a, _flag_b)) goto L_47040047; /* 0x4704003D: jne 0x47040047 */ 6999 L_4704003F: 7000 MEM32(ebx) = 0xFFFFFFFFu; /* 0x4704003F: mov dword ptr [ebx], 0xffffffff */ 7001 goto L_47040073; /* 0x47040045: jmp 0x47040073 */ 7002 L_47040047: 7003 ecx = MEM32(ebx + 0x4); /* 0x47040047: mov ecx, dword ptr [ebx + 4] */ 7004 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 7005 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7006 ecx = ecx - ebx; /* 0x4704004A: sub ecx, ebx */ 7007 _flag_k = FK_CMP; 7008 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 7009 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7010 ecx = ecx + eax; /* 0x4704004C: add ecx, eax */ 7011 _flag_k = FK_ADD; 7012 MEM32(ebx) = ecx; /* 0x4704004E: mov dword ptr [ebx], ecx */ 7013 goto L_47040073; /* 0x47040050: jmp 0x47040073 */ 7014 L_47040052: 7015 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 7016 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7017 eax = eax - edx; /* 0x47040052: sub eax, edx */ 7018 _flag_k = FK_CMP; 7019 MEM32(esi + 0x8) = eax; /* 0x47040054: mov dword ptr [esi + 8], eax */ 7020 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x47040057: shl eax, 4 */ 7021 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7022 eax = eax << 4u; /* 0x47040057: shl eax, 4 */ 7023 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7024 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7025 esi = esi + eax; /* 0x4704005A: add esi, eax */ 7026 _flag_k = FK_ADD; 7027 MEM32(ebp + (-0x1C)) = esi; /* 0x4704005C: mov dword ptr [ebp - 0x1c], esi */ 7028 edx = MEM32(edi); /* 0x4704005F: mov edx, dword ptr [edi] */ 7029 PUSH32(esp, edx); /* 0x47040061: push edx */ 7030 PUSH32(esp, 0); /* 0x47040062: push 0 */ 7031 PUSH32(esp, esi); /* 0x47040064: push esi */ 7032 RECOMP_ICALL(0x47009A00u); /* 0x47040065: call 0x47009a00 */ /* not lifted */ 7033 RECOMP_FLAGS_IN(); 7034 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7035 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7036 esp = esp + 0xCu; /* 0x4704006A: add esp, 0xc */ 7037 _flag_k = FK_ADD; 7038 eax = MEM32(ebp + (-0x24)); /* 0x4704006D: mov eax, dword ptr [ebp - 0x24] */ 7039 MEM32(esi + 0x8) = eax; /* 0x47040070: mov dword ptr [esi + 8], eax */ 7040 L_47040073: 7041 eax = MEM32(edi); /* 0x47040073: mov eax, dword ptr [edi] */ 7042 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 7043 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7044 eax = eax + 8; /* 0x47040075: add eax, 8 */ 7045 _flag_k = FK_ADD; 7046 MEM32(ebp + (-0x44)) = eax; /* 0x47040078: mov dword ptr [ebp - 0x44], eax */ 7047 /* test ebx, ebx */ /* 0x4704007B: test ebx, ebx */ 7048 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 7049 _cf = 0; 7050 _flag_k = FK_TEST; 7051 if (TEST_NZ(_flag_a, _flag_b)) goto L_470400A2; /* 0x4704007D: jne 0x470400a2 */ 7052 L_4704007F: 7053 MEM32(eax) = 0xFFFFFFFFu; /* 0x4704007F: mov dword ptr [eax], 0xffffffff */ 7054 eax = esi + 0x10; /* 0x47040085: lea eax, [esi + 0x10] */ 7055 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47040088: mov dword ptr [ebp - 4], 0xffffffff */ 7056 ecx = MEM32(ebp + (-0x10)); /* 0x4704008F: mov ecx, dword ptr [ebp - 0x10] */ 7057 MEM32(FS_BASE + (0)) = ecx; /* 0x47040092: mov dword ptr fs:[0], ecx */ 7058 edi = POP32_VAL(esp); /* 0x47040099: pop edi */ 7059 esi = POP32_VAL(esp); /* 0x4704009A: pop esi */ 7060 ebx = POP32_VAL(esp); /* 0x4704009B: pop ebx */ 7061 esp = ebp; /* 0x4704009C: mov esp, ebp */ 7062 ebp = POP32_VAL(esp); /* 0x4704009E: pop ebp */ 7063 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4704009F: ret 4 */ 7064 L_470400A2: 7065 ecx = MEM32(eax + 0x4); /* 0x470400A2: mov ecx, dword ptr [eax + 4] */ 7066 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 7067 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7068 ecx = ecx - eax; /* 0x470400A5: sub ecx, eax */ 7069 _flag_k = FK_CMP; 7070 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 7071 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7072 ecx = ecx + ebx; /* 0x470400A7: add ecx, ebx */ 7073 _flag_k = FK_ADD; 7074 MEM32(eax) = ecx; /* 0x470400A9: mov dword ptr [eax], ecx */ 7075 eax = esi + 0x10; /* 0x470400AB: lea eax, [esi + 0x10] */ 7076 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x470400AE: mov dword ptr [ebp - 4], 0xffffffff */ 7077 ecx = MEM32(ebp + (-0x10)); /* 0x470400B5: mov ecx, dword ptr [ebp - 0x10] */ 7078 MEM32(FS_BASE + (0)) = ecx; /* 0x470400B8: mov dword ptr fs:[0], ecx */ 7079 edi = POP32_VAL(esp); /* 0x470400BF: pop edi */ 7080 esi = POP32_VAL(esp); /* 0x470400C0: pop esi */ 7081 ebx = POP32_VAL(esp); /* 0x470400C1: pop ebx */ 7082 esp = ebp; /* 0x470400C2: mov esp, ebp */ 7083 ebp = POP32_VAL(esp); /* 0x470400C4: pop ebp */ 7084 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470400C5: ret 4 */ 7085 L_470400C8: 7086 eax = MEM32(edi); /* 0x470400C8: mov eax, dword ptr [edi] */ 7087 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 7088 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7089 eax = eax + 8; /* 0x470400CA: add eax, 8 */ 7090 _flag_k = FK_ADD; 7091 MEM32(ebp + (-0x4C)) = eax; /* 0x470400CD: mov dword ptr [ebp - 0x4c], eax */ 7092 ecx = MEM32(eax); /* 0x470400D0: mov ecx, dword ptr [eax] */ 7093 /* cmp ecx, 0xFFFFFFFFu */ /* 0x470400D2: cmp ecx, -1 */ 7094 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFFu); 7095 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7096 _flag_k = FK_CMP; 7097 if (CMP_NE(_flag_a, _flag_b)) goto L_470400DB; /* 0x470400D5: jne 0x470400db */ 7098 L_470400D7: 7099 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7100 ecx = 0; /* 0x470400D7: xor ecx, ecx */ 7101 _cf = 0; 7102 _flag_k = FK_TEST; 7103 goto L_470400E0; /* 0x470400D9: jmp 0x470400e0 */ 7104 L_470400DB: 7105 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x4)); 7106 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7107 ecx = ecx - MEM32(eax + 0x4); /* 0x470400DB: sub ecx, dword ptr [eax + 4] */ 7108 _flag_k = FK_CMP; 7109 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 7110 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7111 ecx = ecx + eax; /* 0x470400DE: add ecx, eax */ 7112 _flag_k = FK_ADD; 7113 L_470400E0: 7114 MEM32(ebp + (-0x48)) = ecx; /* 0x470400E0: mov dword ptr [ebp - 0x48], ecx */ 7115 /* cmp esi, ecx */ /* 0x470400E3: cmp esi, ecx */ 7116 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 7117 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7118 _flag_k = FK_CMP; 7119 if (CMP_NE(_flag_a, _flag_b)) goto L_4704014C; /* 0x470400E5: jne 0x4704014c */ 7120 L_470400E7: 7121 MEM32(ebp + (-0x28)) = 0; /* 0x470400E7: mov dword ptr [ebp - 0x28], 0 */ 7122 ecx = edi + 0x4; /* 0x470400EE: lea ecx, [edi + 4] */ 7123 eax = MEM32(ecx); /* 0x470400F1: mov eax, dword ptr [ecx] */ 7124 esi = ebp + (-0x28); /* 0x470400F3: lea esi, [ebp - 0x28] */ 7125 PUSH32(esp, esi); /* 0x470400F6: push esi */ 7126 if (4u) _cf = (((edx) >> 28) & 1u); /* 0x470400F7: shl edx, 4 */ 7127 if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7128 edx = edx << 4u; /* 0x470400F7: shl edx, 4 */ 7129 PUSH32(esp, edx); /* 0x470400FA: push edx */ 7130 RECOMP_ICALL(MEM32(eax + 0x44)); /* 0x470400FB: call dword ptr [eax + 0x44] */ 7131 RECOMP_FLAGS_IN(); 7132 esi = eax; /* 0x470400FE: mov esi, eax */ 7133 MEM32(ebp + (-0x1C)) = esi; /* 0x47040100: mov dword ptr [ebp - 0x1c], esi */ 7134 /* test esi, esi */ /* 0x47040103: test esi, esi */ 7135 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 7136 _cf = 0; 7137 _flag_k = FK_TEST; 7138 if (TEST_Z(_flag_a, _flag_b)) goto L_47040163; /* 0x47040105: je 0x47040163 */ 7139 L_47040107: 7140 ecx = MEM32(edi); /* 0x47040107: mov ecx, dword ptr [edi] */ 7141 PUSH32(esp, ecx); /* 0x47040109: push ecx */ 7142 PUSH32(esp, 0); /* 0x4704010A: push 0 */ 7143 PUSH32(esp, esi); /* 0x4704010C: push esi */ 7144 RECOMP_ICALL(0x47009A00u); /* 0x4704010D: call 0x47009a00 */ /* not lifted */ 7145 RECOMP_FLAGS_IN(); 7146 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7147 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7148 esp = esp + 0xCu; /* 0x47040112: add esp, 0xc */ 7149 _flag_k = FK_ADD; 7150 edx = MEM32(ebp + (-0x28)); /* 0x47040115: mov edx, dword ptr [ebp - 0x28] */ 7151 if (4u) _cf = (((edx) >> 3) & 1u); /* 0x47040118: shr edx, 4 */ 7152 if (4u) { _flag_a = recomp_flags_pack((edx >> 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7153 edx = edx >> 4u; /* 0x47040118: shr edx, 4 */ 7154 MEM32(esi + 0x8) = edx; /* 0x4704011B: mov dword ptr [esi + 8], edx */ 7155 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 7156 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7157 esi = esi + 0x10u; /* 0x4704011E: add esi, 0x10 */ 7158 _flag_k = FK_ADD; 7159 PUSH32(esp, esi); /* 0x47040121: push esi */ 7160 ecx = edi; /* 0x47040122: mov ecx, edi */ 7161 RECOMP_ICALL(0x47040220u); /* 0x47040124: call 0x47040220 */ /* not lifted */ 7162 RECOMP_FLAGS_IN(); 7163 eax = MEM32(edi); /* 0x47040129: mov eax, dword ptr [edi] */ 7164 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 7165 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7166 eax = eax + 8; /* 0x4704012B: add eax, 8 */ 7167 _flag_k = FK_ADD; 7168 MEM32(ebp + (-0x54)) = eax; /* 0x4704012E: mov dword ptr [ebp - 0x54], eax */ 7169 ecx = MEM32(eax); /* 0x47040131: mov ecx, dword ptr [eax] */ 7170 /* cmp ecx, 0xFFFFFFFFu */ /* 0x47040133: cmp ecx, -1 */ 7171 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFFu); 7172 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7173 _flag_k = FK_CMP; 7174 if (CMP_NE(_flag_a, _flag_b)) goto L_4704013C; /* 0x47040136: jne 0x4704013c */ 7175 L_47040138: 7176 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7177 ecx = 0; /* 0x47040138: xor ecx, ecx */ 7178 _cf = 0; 7179 _flag_k = FK_TEST; 7180 goto L_47040141; /* 0x4704013A: jmp 0x47040141 */ 7181 L_4704013C: 7182 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x4)); 7183 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7184 ecx = ecx - MEM32(eax + 0x4); /* 0x4704013C: sub ecx, dword ptr [eax + 4] */ 7185 _flag_k = FK_CMP; 7186 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 7187 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7188 ecx = ecx + eax; /* 0x4704013F: add ecx, eax */ 7189 _flag_k = FK_ADD; 7190 L_47040141: 7191 MEM32(ebp + (-0x50)) = ecx; /* 0x47040141: mov dword ptr [ebp - 0x50], ecx */ 7192 esi = ecx; /* 0x47040144: mov esi, ecx */ 7193 MEM32(ebp + (-0x1C)) = esi; /* 0x47040146: mov dword ptr [ebp - 0x1c], esi */ 7194 edx = MEM32(ebp + (-0x24)); /* 0x47040149: mov edx, dword ptr [ebp - 0x24] */ 7195 L_4704014C: 7196 ebx = esi; /* 0x4704014C: mov ebx, esi */ 7197 MEM32(ebp + (-0x20)) = ebx; /* 0x4704014E: mov dword ptr [ebp - 0x20], ebx */ 7198 eax = MEM32(esi); /* 0x47040151: mov eax, dword ptr [esi] */ 7199 /* cmp eax, 0xFFFFFFFFu */ /* 0x47040153: cmp eax, -1 */ 7200 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 7201 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7202 _flag_k = FK_CMP; 7203 if (CMP_NE(_flag_a, _flag_b)) goto L_470401EC; /* 0x47040156: jne 0x470401ec */ 7204 L_4704015C: 7205 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7206 eax = 0; /* 0x4704015C: xor eax, eax */ 7207 _cf = 0; 7208 _flag_k = FK_TEST; 7209 goto L_470401F1; /* 0x4704015E: jmp 0x470401f1 */ 7210 L_47040163: 7211 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47040163: call dword ptr [0x470ac150] */ 7212 RECOMP_FLAGS_IN(); 7213 edi = eax; /* 0x47040169: mov edi, eax */ 7214 MEM32(ebp + (-0x58)) = edi; /* 0x4704016B: mov dword ptr [ebp - 0x58], edi */ 7215 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704016E: call dword ptr [0x470ac3c8] */ 7216 RECOMP_FLAGS_IN(); 7217 eax = MEM32(eax); /* 0x47040174: mov eax, dword ptr [eax] */ 7218 MEM32(ebp + (-0x5C)) = eax; /* 0x47040176: mov dword ptr [ebp - 0x5c], eax */ 7219 /* test eax, eax */ /* 0x47040179: test eax, eax */ 7220 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7221 _cf = 0; 7222 _flag_k = FK_TEST; 7223 if (TEST_Z(_flag_a, _flag_b)) goto L_4704017F; /* 0x4704017B: je 0x4704017f */ 7224 L_4704017D: 7225 edi = eax; /* 0x4704017D: mov edi, eax */ 7226 L_4704017F: 7227 MEM32(ebp + (-0x2C)) = edi; /* 0x4704017F: mov dword ptr [ebp - 0x2c], edi */ 7228 RECOMP_ICALL(0x47039020u); /* 0x47040182: call 0x47039020 */ /* not lifted */ 7229 RECOMP_FLAGS_IN(); 7230 esi = eax; /* 0x47040187: mov esi, eax */ 7231 MEM32(ebp + (-0x30)) = esi; /* 0x47040189: mov dword ptr [ebp - 0x30], esi */ 7232 ecx = esi; /* 0x4704018C: mov ecx, esi */ 7233 RECOMP_ICALL(0x4703B210u); /* 0x4704018E: call 0x4703b210 */ /* not lifted */ 7234 RECOMP_FLAGS_IN(); 7235 PUSH32(esp, eax); /* 0x47040193: push eax */ 7236 ecx = esi; /* 0x47040194: mov ecx, esi */ 7237 RECOMP_ICALL(0x4703B240u); /* 0x47040196: call 0x4703b240 */ /* not lifted */ 7238 RECOMP_FLAGS_IN(); 7239 PUSH32(esp, eax); /* 0x4704019B: push eax */ 7240 ecx = esi; /* 0x4704019C: mov ecx, esi */ 7241 RECOMP_ICALL(0x4703B080u); /* 0x4704019E: call 0x4703b080 */ /* not lifted */ 7242 RECOMP_FLAGS_IN(); 7243 PUSH32(esp, eax); /* 0x470401A3: push eax */ 7244 PUSH32(esp, edi); /* 0x470401A4: push edi */ 7245 PUSH32(esp, 0); /* 0x470401A5: push 0 */ 7246 PUSH32(esp, 0x188u); /* 0x470401A7: push 0x188 */ 7247 PUSH32(esp, 0x47105B2Cu); /* 0x470401AC: push 0x47105b2c */ 7248 ecx = esi; /* 0x470401B1: mov ecx, esi */ 7249 RECOMP_ICALL(0x4703A340u); /* 0x470401B3: call 0x4703a340 */ /* not lifted */ 7250 RECOMP_FLAGS_IN(); 7251 PUSH32(esp, 0x47105BB8u); /* 0x470401B8: push 0x47105bb8 */ 7252 PUSH32(esp, 0x47105B0Cu); /* 0x470401BD: push 0x47105b0c */ 7253 PUSH32(esp, 0x80u); /* 0x470401C2: push 0x80 */ 7254 PUSH32(esp, esi); /* 0x470401C7: push esi */ 7255 RECOMP_ICALL(0x47039830u); /* 0x470401C8: call 0x47039830 */ /* not lifted */ 7256 RECOMP_FLAGS_IN(); 7257 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7258 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7259 esp = esp + 0x10u; /* 0x470401CD: add esp, 0x10 */ 7260 _flag_k = FK_ADD; 7261 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x470401D0: mov dword ptr [ebp - 4], 0xffffffff */ 7262 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7263 eax = 0; /* 0x470401D7: xor eax, eax */ 7264 _cf = 0; 7265 _flag_k = FK_TEST; 7266 ecx = MEM32(ebp + (-0x10)); /* 0x470401D9: mov ecx, dword ptr [ebp - 0x10] */ 7267 MEM32(FS_BASE + (0)) = ecx; /* 0x470401DC: mov dword ptr fs:[0], ecx */ 7268 edi = POP32_VAL(esp); /* 0x470401E3: pop edi */ 7269 esi = POP32_VAL(esp); /* 0x470401E4: pop esi */ 7270 ebx = POP32_VAL(esp); /* 0x470401E5: pop ebx */ 7271 esp = ebp; /* 0x470401E6: mov esp, ebp */ 7272 ebp = POP32_VAL(esp); /* 0x470401E8: pop ebp */ 7273 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470401E9: ret 4 */ 7274 L_470401EC: 7275 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7276 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7277 eax = eax - MEM32(esi + 0x4); /* 0x470401EC: sub eax, dword ptr [esi + 4] */ 7278 _flag_k = FK_CMP; 7279 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 7280 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7281 eax = eax + esi; /* 0x470401EF: add eax, esi */ 7282 _flag_k = FK_ADD; 7283 L_470401F1: 7284 MEM32(ebp + (-0x60)) = eax; /* 0x470401F1: mov dword ptr [ebp - 0x60], eax */ 7285 esi = eax; /* 0x470401F4: mov esi, eax */ 7286 MEM32(ebp + (-0x1C)) = esi; /* 0x470401F6: mov dword ptr [ebp - 0x1c], esi */ 7287 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x470401F9: mov dword ptr [ebp - 4], 0xffffffff */ 7288 RECOMP_BACKEDGE(); 7289 goto L_47040014; /* 0x47040200: jmp 0x47040014 */ 7290 { RECOMP_REGS_OUT(); return; } /* end of function */ 7291 RECOMP_REGS_OUT(); 7292 } 7293 7294 void sub_47040038(void) { 7295 int _fpu_cmp = 0; 7296 uint32_t _cf = 0; 7297 int _df = 1; 7298 uint32_t _flag_k = FK_NONE; 7299 uint32_t _flag_a = 0, _flag_b = 0; 7300 uint32_t _itail_tgt = 0; 7301 RECOMP_REGS_LOCALS 7302 RECOMP_ENTER(0x47040038u); 7303 7304 L_47040038: 7305 MEM32(ebp + (-0x40)) = eax; /* 0x47040038: mov dword ptr [ebp - 0x40], eax */ 7306 /* test eax, eax */ /* 0x4704003B: test eax, eax */ 7307 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7308 _cf = 0; 7309 _flag_k = FK_TEST; 7310 if (TEST_NZ(_flag_a, _flag_b)) goto L_47040047; /* 0x4704003D: jne 0x47040047 */ 7311 L_4704003F: 7312 MEM32(ebx) = 0xFFFFFFFFu; /* 0x4704003F: mov dword ptr [ebx], 0xffffffff */ 7313 goto L_47040073; /* 0x47040045: jmp 0x47040073 */ 7314 L_47040047: 7315 ecx = MEM32(ebx + 0x4); /* 0x47040047: mov ecx, dword ptr [ebx + 4] */ 7316 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 7317 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7318 ecx = ecx - ebx; /* 0x4704004A: sub ecx, ebx */ 7319 _flag_k = FK_CMP; 7320 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 7321 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7322 ecx = ecx + eax; /* 0x4704004C: add ecx, eax */ 7323 _flag_k = FK_ADD; 7324 MEM32(ebx) = ecx; /* 0x4704004E: mov dword ptr [ebx], ecx */ 7325 goto L_47040073; /* 0x47040050: jmp 0x47040073 */ 7326 L_47040073: 7327 eax = MEM32(edi); /* 0x47040073: mov eax, dword ptr [edi] */ 7328 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 7329 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7330 eax = eax + 8; /* 0x47040075: add eax, 8 */ 7331 _flag_k = FK_ADD; 7332 MEM32(ebp + (-0x44)) = eax; /* 0x47040078: mov dword ptr [ebp - 0x44], eax */ 7333 /* test ebx, ebx */ /* 0x4704007B: test ebx, ebx */ 7334 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 7335 _cf = 0; 7336 _flag_k = FK_TEST; 7337 if (TEST_NZ(_flag_a, _flag_b)) goto L_470400A2; /* 0x4704007D: jne 0x470400a2 */ 7338 L_4704007F: 7339 MEM32(eax) = 0xFFFFFFFFu; /* 0x4704007F: mov dword ptr [eax], 0xffffffff */ 7340 eax = esi + 0x10; /* 0x47040085: lea eax, [esi + 0x10] */ 7341 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47040088: mov dword ptr [ebp - 4], 0xffffffff */ 7342 ecx = MEM32(ebp + (-0x10)); /* 0x4704008F: mov ecx, dword ptr [ebp - 0x10] */ 7343 MEM32(FS_BASE + (0)) = ecx; /* 0x47040092: mov dword ptr fs:[0], ecx */ 7344 edi = POP32_VAL(esp); /* 0x47040099: pop edi */ 7345 esi = POP32_VAL(esp); /* 0x4704009A: pop esi */ 7346 ebx = POP32_VAL(esp); /* 0x4704009B: pop ebx */ 7347 esp = ebp; /* 0x4704009C: mov esp, ebp */ 7348 ebp = POP32_VAL(esp); /* 0x4704009E: pop ebp */ 7349 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4704009F: ret 4 */ 7350 L_470400A2: 7351 ecx = MEM32(eax + 0x4); /* 0x470400A2: mov ecx, dword ptr [eax + 4] */ 7352 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 7353 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7354 ecx = ecx - eax; /* 0x470400A5: sub ecx, eax */ 7355 _flag_k = FK_CMP; 7356 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 7357 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7358 ecx = ecx + ebx; /* 0x470400A7: add ecx, ebx */ 7359 _flag_k = FK_ADD; 7360 MEM32(eax) = ecx; /* 0x470400A9: mov dword ptr [eax], ecx */ 7361 eax = esi + 0x10; /* 0x470400AB: lea eax, [esi + 0x10] */ 7362 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x470400AE: mov dword ptr [ebp - 4], 0xffffffff */ 7363 ecx = MEM32(ebp + (-0x10)); /* 0x470400B5: mov ecx, dword ptr [ebp - 0x10] */ 7364 MEM32(FS_BASE + (0)) = ecx; /* 0x470400B8: mov dword ptr fs:[0], ecx */ 7365 edi = POP32_VAL(esp); /* 0x470400BF: pop edi */ 7366 esi = POP32_VAL(esp); /* 0x470400C0: pop esi */ 7367 ebx = POP32_VAL(esp); /* 0x470400C1: pop ebx */ 7368 esp = ebp; /* 0x470400C2: mov esp, ebp */ 7369 ebp = POP32_VAL(esp); /* 0x470400C4: pop ebp */ 7370 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470400C5: ret 4 */ 7371 RECOMP_REGS_OUT(); 7372 } 7373 7374 void sub_47040073(void) { 7375 int _fpu_cmp = 0; 7376 uint32_t _cf = 0; 7377 int _df = 1; 7378 uint32_t _flag_k = FK_NONE; 7379 uint32_t _flag_a = 0, _flag_b = 0; 7380 uint32_t _itail_tgt = 0; 7381 RECOMP_REGS_LOCALS 7382 RECOMP_ENTER(0x47040073u); 7383 7384 L_47040073: 7385 eax = MEM32(edi); /* 0x47040073: mov eax, dword ptr [edi] */ 7386 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 7387 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7388 eax = eax + 8; /* 0x47040075: add eax, 8 */ 7389 _flag_k = FK_ADD; 7390 MEM32(ebp + (-0x44)) = eax; /* 0x47040078: mov dword ptr [ebp - 0x44], eax */ 7391 /* test ebx, ebx */ /* 0x4704007B: test ebx, ebx */ 7392 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 7393 _cf = 0; 7394 _flag_k = FK_TEST; 7395 if (TEST_NZ(_flag_a, _flag_b)) goto L_470400A2; /* 0x4704007D: jne 0x470400a2 */ 7396 L_4704007F: 7397 MEM32(eax) = 0xFFFFFFFFu; /* 0x4704007F: mov dword ptr [eax], 0xffffffff */ 7398 eax = esi + 0x10; /* 0x47040085: lea eax, [esi + 0x10] */ 7399 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47040088: mov dword ptr [ebp - 4], 0xffffffff */ 7400 ecx = MEM32(ebp + (-0x10)); /* 0x4704008F: mov ecx, dword ptr [ebp - 0x10] */ 7401 MEM32(FS_BASE + (0)) = ecx; /* 0x47040092: mov dword ptr fs:[0], ecx */ 7402 edi = POP32_VAL(esp); /* 0x47040099: pop edi */ 7403 esi = POP32_VAL(esp); /* 0x4704009A: pop esi */ 7404 ebx = POP32_VAL(esp); /* 0x4704009B: pop ebx */ 7405 esp = ebp; /* 0x4704009C: mov esp, ebp */ 7406 ebp = POP32_VAL(esp); /* 0x4704009E: pop ebp */ 7407 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4704009F: ret 4 */ 7408 L_470400A2: 7409 ecx = MEM32(eax + 0x4); /* 0x470400A2: mov ecx, dword ptr [eax + 4] */ 7410 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 7411 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7412 ecx = ecx - eax; /* 0x470400A5: sub ecx, eax */ 7413 _flag_k = FK_CMP; 7414 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 7415 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7416 ecx = ecx + ebx; /* 0x470400A7: add ecx, ebx */ 7417 _flag_k = FK_ADD; 7418 MEM32(eax) = ecx; /* 0x470400A9: mov dword ptr [eax], ecx */ 7419 eax = esi + 0x10; /* 0x470400AB: lea eax, [esi + 0x10] */ 7420 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x470400AE: mov dword ptr [ebp - 4], 0xffffffff */ 7421 ecx = MEM32(ebp + (-0x10)); /* 0x470400B5: mov ecx, dword ptr [ebp - 0x10] */ 7422 MEM32(FS_BASE + (0)) = ecx; /* 0x470400B8: mov dword ptr fs:[0], ecx */ 7423 edi = POP32_VAL(esp); /* 0x470400BF: pop edi */ 7424 esi = POP32_VAL(esp); /* 0x470400C0: pop esi */ 7425 ebx = POP32_VAL(esp); /* 0x470400C1: pop ebx */ 7426 esp = ebp; /* 0x470400C2: mov esp, ebp */ 7427 ebp = POP32_VAL(esp); /* 0x470400C4: pop ebp */ 7428 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470400C5: ret 4 */ 7429 RECOMP_REGS_OUT(); 7430 }