client/game/bbr.dll/lifted-0087.c (178198B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 #include <math.h> 4 #include <stdio.h> 5 #include <stdlib.h> 6 #include <string.h> 7 8 void sub_251460B0(void) { 9 int _fpu_cmp = 0; 10 uint32_t _cf = 0; 11 int _df = 1; 12 uint32_t _flag_k = FK_NONE; 13 uint32_t _flag_a = 0, _flag_b = 0; 14 uint32_t _itail_tgt = 0; 15 RECOMP_REGS_LOCALS 16 RECOMP_ENTER(0x251460B0u); 17 18 L_251460B0: 19 ecx = MEM32(ebp + (-0x10)); /* 0x251460B0: mov ecx, dword ptr [ebp - 0x10] */ 20 goto L_2500B5A0; /* 0x251460B3: jmp 0x2500b5a0 */ 21 { RECOMP_REGS_OUT(); return; } /* end of function */ 22 L_2500B5A0: RECOMP_ITAIL(0x2500B5A0u); { RECOMP_REGS_OUT(); return; } 23 RECOMP_REGS_OUT(); 24 } 25 26 void sub_251460B8(void) { 27 int _fpu_cmp = 0; 28 uint32_t _cf = 0; 29 int _df = 1; 30 uint32_t _flag_k = FK_NONE; 31 uint32_t _flag_a = 0, _flag_b = 0; 32 uint32_t _itail_tgt = 0; 33 RECOMP_REGS_LOCALS 34 RECOMP_ENTER(0x251460B8u); 35 36 goto L_251460B8; 37 L_251380C4: 38 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 39 L_251460B8: 40 eax = 0x25166500u; /* 0x251460B8: mov eax, 0x25166500 */ 41 L_251460BD: 42 RECOMP_BACKEDGE(); 43 goto L_251380C4; /* 0x251460BD: jmp 0x251380c4 */ 44 { RECOMP_REGS_OUT(); return; } /* end of function */ 45 _ljump: 46 switch (_itail_tgt) { 47 case 0x251380C4u: goto L_251380C4; 48 case 0x251460B8u: goto L_251460B8; 49 case 0x251460BDu: goto L_251460BD; 50 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 51 } 52 RECOMP_REGS_OUT(); 53 } 54 55 void sub_251460D0(void) { 56 int _fpu_cmp = 0; 57 uint32_t _cf = 0; 58 int _df = 1; 59 uint32_t _flag_k = FK_NONE; 60 uint32_t _flag_a = 0, _flag_b = 0; 61 uint32_t _itail_tgt = 0; 62 RECOMP_REGS_LOCALS 63 RECOMP_ENTER(0x251460D0u); 64 65 L_251460D0: 66 ecx = ebp + (-0x64); /* 0x251460D0: lea ecx, [ebp - 0x64] */ 67 L_251460D3: 68 { _itail_tgt = (uint32_t)(MEM32(0x25151504)); goto _ljump; } 69 { RECOMP_REGS_OUT(); return; } /* end of function */ 70 _ljump: 71 switch (_itail_tgt) { 72 case 0x251460D0u: goto L_251460D0; 73 case 0x251460D3u: goto L_251460D3; 74 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 75 } 76 RECOMP_REGS_OUT(); 77 } 78 79 void sub_251460D9(void) { 80 int _fpu_cmp = 0; 81 uint32_t _cf = 0; 82 int _df = 1; 83 uint32_t _flag_k = FK_NONE; 84 uint32_t _flag_a = 0, _flag_b = 0; 85 uint32_t _itail_tgt = 0; 86 RECOMP_REGS_LOCALS 87 RECOMP_ENTER(0x251460D9u); 88 89 L_251460D9: 90 ecx = ebp + (-0xBC); /* 0x251460D9: lea ecx, [ebp - 0xbc] */ 91 L_251460DF: 92 { _itail_tgt = (uint32_t)(MEM32(0x25151504)); goto _ljump; } 93 { RECOMP_REGS_OUT(); return; } /* end of function */ 94 _ljump: 95 switch (_itail_tgt) { 96 case 0x251460D9u: goto L_251460D9; 97 case 0x251460DFu: goto L_251460DF; 98 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 99 } 100 RECOMP_REGS_OUT(); 101 } 102 103 void sub_251460E5(void) { 104 int _fpu_cmp = 0; 105 uint32_t _cf = 0; 106 int _df = 1; 107 uint32_t _flag_k = FK_NONE; 108 uint32_t _flag_a = 0, _flag_b = 0; 109 uint32_t _itail_tgt = 0; 110 RECOMP_REGS_LOCALS 111 RECOMP_ENTER(0x251460E5u); 112 113 goto L_251460E5; 114 L_251380C4: 115 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 116 L_251460E5: 117 eax = 0x25166528u; /* 0x251460E5: mov eax, 0x25166528 */ 118 L_251460EA: 119 RECOMP_BACKEDGE(); 120 goto L_251380C4; /* 0x251460EA: jmp 0x251380c4 */ 121 { RECOMP_REGS_OUT(); return; } /* end of function */ 122 _ljump: 123 switch (_itail_tgt) { 124 case 0x251380C4u: goto L_251380C4; 125 case 0x251460E5u: goto L_251460E5; 126 case 0x251460EAu: goto L_251460EA; 127 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 128 } 129 RECOMP_REGS_OUT(); 130 } 131 132 void sub_251460F0(void) { 133 int _fpu_cmp = 0; 134 uint32_t _cf = 0; 135 int _df = 1; 136 uint32_t _flag_k = FK_NONE; 137 uint32_t _flag_a = 0, _flag_b = 0; 138 uint32_t _itail_tgt = 0; 139 RECOMP_REGS_LOCALS 140 RECOMP_ENTER(0x251460F0u); 141 142 L_251460F0: 143 ecx = MEM32(ebp + (-0x10)); /* 0x251460F0: mov ecx, dword ptr [ebp - 0x10] */ 144 goto L_2500B5A0; /* 0x251460F3: jmp 0x2500b5a0 */ 145 { RECOMP_REGS_OUT(); return; } /* end of function */ 146 L_2500B5A0: RECOMP_ITAIL(0x2500B5A0u); { RECOMP_REGS_OUT(); return; } 147 RECOMP_REGS_OUT(); 148 } 149 150 void sub_251460F8(void) { 151 int _fpu_cmp = 0; 152 uint32_t _cf = 0; 153 int _df = 1; 154 uint32_t _flag_k = FK_NONE; 155 uint32_t _flag_a = 0, _flag_b = 0; 156 uint32_t _itail_tgt = 0; 157 RECOMP_REGS_LOCALS 158 RECOMP_ENTER(0x251460F8u); 159 160 L_251460F8: 161 eax = MEM32(ebp + 0x14); /* 0x251460F8: mov eax, dword ptr [ebp + 0x14] */ 162 PUSH32(esp, eax); /* 0x251460FB: push eax */ 163 RECOMP_ICALL(0x25137EECu); /* 0x251460FC: call 0x25137eec */ /* not lifted */ 164 RECOMP_FLAGS_IN(); 165 ecx = POP32_VAL(esp); /* 0x25146101: pop ecx */ 166 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25146102: ret */ 167 RECOMP_REGS_OUT(); 168 } 169 170 void sub_25146103(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(0x25146103u); 179 180 goto L_25146103; 181 L_251380C4: 182 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 183 L_25146103: 184 eax = 0x25166558u; /* 0x25146103: mov eax, 0x25166558 */ 185 L_25146108: 186 RECOMP_BACKEDGE(); 187 goto L_251380C4; /* 0x25146108: jmp 0x251380c4 */ 188 { RECOMP_REGS_OUT(); return; } /* end of function */ 189 _ljump: 190 switch (_itail_tgt) { 191 case 0x251380C4u: goto L_251380C4; 192 case 0x25146103u: goto L_25146103; 193 case 0x25146108u: goto L_25146108; 194 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 195 } 196 RECOMP_REGS_OUT(); 197 } 198 199 void sub_25146110(void) { 200 int _fpu_cmp = 0; 201 uint32_t _cf = 0; 202 int _df = 1; 203 uint32_t _flag_k = FK_NONE; 204 uint32_t _flag_a = 0, _flag_b = 0; 205 uint32_t _itail_tgt = 0; 206 RECOMP_REGS_LOCALS 207 RECOMP_ENTER(0x25146110u); 208 209 L_25146110: 210 ecx = ebp + (-0x84); /* 0x25146110: lea ecx, [ebp - 0x84] */ 211 L_25146116: 212 { _itail_tgt = (uint32_t)(MEM32(0x25151504)); goto _ljump; } 213 { RECOMP_REGS_OUT(); return; } /* end of function */ 214 _ljump: 215 switch (_itail_tgt) { 216 case 0x25146110u: goto L_25146110; 217 case 0x25146116u: goto L_25146116; 218 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 219 } 220 RECOMP_REGS_OUT(); 221 } 222 223 void sub_2514611C(void) { 224 int _fpu_cmp = 0; 225 uint32_t _cf = 0; 226 int _df = 1; 227 uint32_t _flag_k = FK_NONE; 228 uint32_t _flag_a = 0, _flag_b = 0; 229 uint32_t _itail_tgt = 0; 230 RECOMP_REGS_LOCALS 231 RECOMP_ENTER(0x2514611Cu); 232 233 L_2514611C: 234 ecx = ebp + (-0x124); /* 0x2514611C: lea ecx, [ebp - 0x124] */ 235 L_25146122: 236 { _itail_tgt = (uint32_t)(MEM32(0x25151504)); goto _ljump; } 237 { RECOMP_REGS_OUT(); return; } /* end of function */ 238 _ljump: 239 switch (_itail_tgt) { 240 case 0x2514611Cu: goto L_2514611C; 241 case 0x25146122u: goto L_25146122; 242 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 243 } 244 RECOMP_REGS_OUT(); 245 } 246 247 void sub_25146128(void) { 248 int _fpu_cmp = 0; 249 uint32_t _cf = 0; 250 int _df = 1; 251 uint32_t _flag_k = FK_NONE; 252 uint32_t _flag_a = 0, _flag_b = 0; 253 uint32_t _itail_tgt = 0; 254 RECOMP_REGS_LOCALS 255 RECOMP_ENTER(0x25146128u); 256 257 goto L_25146128; 258 L_251380C4: 259 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 260 L_25146128: 261 eax = 0x25166588u; /* 0x25146128: mov eax, 0x25166588 */ 262 L_2514612D: 263 RECOMP_BACKEDGE(); 264 goto L_251380C4; /* 0x2514612D: jmp 0x251380c4 */ 265 { RECOMP_REGS_OUT(); return; } /* end of function */ 266 _ljump: 267 switch (_itail_tgt) { 268 case 0x251380C4u: goto L_251380C4; 269 case 0x25146128u: goto L_25146128; 270 case 0x2514612Du: goto L_2514612D; 271 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 272 } 273 RECOMP_REGS_OUT(); 274 } 275 276 void sub_25146140(void) { 277 int _fpu_cmp = 0; 278 uint32_t _cf = 0; 279 int _df = 1; 280 uint32_t _flag_k = FK_NONE; 281 uint32_t _flag_a = 0, _flag_b = 0; 282 uint32_t _itail_tgt = 0; 283 RECOMP_REGS_LOCALS 284 RECOMP_ENTER(0x25146140u); 285 286 L_25146140: 287 ecx = MEM32(ebp + (-0x10)); /* 0x25146140: mov ecx, dword ptr [ebp - 0x10] */ 288 goto L_2500B5A0; /* 0x25146143: jmp 0x2500b5a0 */ 289 { RECOMP_REGS_OUT(); return; } /* end of function */ 290 L_2500B5A0: RECOMP_ITAIL(0x2500B5A0u); { RECOMP_REGS_OUT(); return; } 291 RECOMP_REGS_OUT(); 292 } 293 294 void sub_25146148(void) { 295 int _fpu_cmp = 0; 296 uint32_t _cf = 0; 297 int _df = 1; 298 uint32_t _flag_k = FK_NONE; 299 uint32_t _flag_a = 0, _flag_b = 0; 300 uint32_t _itail_tgt = 0; 301 RECOMP_REGS_LOCALS 302 RECOMP_ENTER(0x25146148u); 303 304 L_25146148: 305 eax = MEM32(ebp + 0x14); /* 0x25146148: mov eax, dword ptr [ebp + 0x14] */ 306 PUSH32(esp, eax); /* 0x2514614B: push eax */ 307 RECOMP_ICALL(0x25137EECu); /* 0x2514614C: call 0x25137eec */ /* not lifted */ 308 RECOMP_FLAGS_IN(); 309 ecx = POP32_VAL(esp); /* 0x25146151: pop ecx */ 310 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25146152: ret */ 311 RECOMP_REGS_OUT(); 312 } 313 314 void sub_25146153(void) { 315 int _fpu_cmp = 0; 316 uint32_t _cf = 0; 317 int _df = 1; 318 uint32_t _flag_k = FK_NONE; 319 uint32_t _flag_a = 0, _flag_b = 0; 320 uint32_t _itail_tgt = 0; 321 RECOMP_REGS_LOCALS 322 RECOMP_ENTER(0x25146153u); 323 324 goto L_25146153; 325 L_251380C4: 326 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 327 L_25146153: 328 eax = 0x251665B8u; /* 0x25146153: mov eax, 0x251665b8 */ 329 L_25146158: 330 RECOMP_BACKEDGE(); 331 goto L_251380C4; /* 0x25146158: jmp 0x251380c4 */ 332 { RECOMP_REGS_OUT(); return; } /* end of function */ 333 _ljump: 334 switch (_itail_tgt) { 335 case 0x251380C4u: goto L_251380C4; 336 case 0x25146153u: goto L_25146153; 337 case 0x25146158u: goto L_25146158; 338 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 339 } 340 RECOMP_REGS_OUT(); 341 } 342 343 void sub_25146160(void) { 344 int _fpu_cmp = 0; 345 uint32_t _cf = 0; 346 int _df = 1; 347 uint32_t _flag_k = FK_NONE; 348 uint32_t _flag_a = 0, _flag_b = 0; 349 uint32_t _itail_tgt = 0; 350 RECOMP_REGS_LOCALS 351 RECOMP_ENTER(0x25146160u); 352 353 L_25146160: 354 ecx = ebp + (-0xF8); /* 0x25146160: lea ecx, [ebp - 0xf8] */ 355 L_25146166: 356 { _itail_tgt = (uint32_t)(MEM32(0x25151504)); goto _ljump; } 357 { RECOMP_REGS_OUT(); return; } /* end of function */ 358 _ljump: 359 switch (_itail_tgt) { 360 case 0x25146160u: goto L_25146160; 361 case 0x25146166u: goto L_25146166; 362 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 363 } 364 RECOMP_REGS_OUT(); 365 } 366 367 void sub_2514616C(void) { 368 int _fpu_cmp = 0; 369 uint32_t _cf = 0; 370 int _df = 1; 371 uint32_t _flag_k = FK_NONE; 372 uint32_t _flag_a = 0, _flag_b = 0; 373 uint32_t _itail_tgt = 0; 374 RECOMP_REGS_LOCALS 375 RECOMP_ENTER(0x2514616Cu); 376 377 L_2514616C: 378 ecx = ebp + (-0x138); /* 0x2514616C: lea ecx, [ebp - 0x138] */ 379 L_25146172: 380 { _itail_tgt = (uint32_t)(MEM32(0x25151504)); goto _ljump; } 381 { RECOMP_REGS_OUT(); return; } /* end of function */ 382 _ljump: 383 switch (_itail_tgt) { 384 case 0x2514616Cu: goto L_2514616C; 385 case 0x25146172u: goto L_25146172; 386 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 387 } 388 RECOMP_REGS_OUT(); 389 } 390 391 void sub_25146178(void) { 392 int _fpu_cmp = 0; 393 uint32_t _cf = 0; 394 int _df = 1; 395 uint32_t _flag_k = FK_NONE; 396 uint32_t _flag_a = 0, _flag_b = 0; 397 uint32_t _itail_tgt = 0; 398 RECOMP_REGS_LOCALS 399 RECOMP_ENTER(0x25146178u); 400 401 goto L_25146178; 402 L_251380C4: 403 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 404 L_25146178: 405 eax = 0x251665E8u; /* 0x25146178: mov eax, 0x251665e8 */ 406 L_2514617D: 407 RECOMP_BACKEDGE(); 408 goto L_251380C4; /* 0x2514617D: jmp 0x251380c4 */ 409 { RECOMP_REGS_OUT(); return; } /* end of function */ 410 _ljump: 411 switch (_itail_tgt) { 412 case 0x251380C4u: goto L_251380C4; 413 case 0x25146178u: goto L_25146178; 414 case 0x2514617Du: goto L_2514617D; 415 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 416 } 417 RECOMP_REGS_OUT(); 418 } 419 420 void sub_25146190(void) { 421 int _fpu_cmp = 0; 422 uint32_t _cf = 0; 423 int _df = 1; 424 uint32_t _flag_k = FK_NONE; 425 uint32_t _flag_a = 0, _flag_b = 0; 426 uint32_t _itail_tgt = 0; 427 RECOMP_REGS_LOCALS 428 RECOMP_ENTER(0x25146190u); 429 430 L_25146190: 431 ecx = MEM32(ebp + (-0x10)); /* 0x25146190: mov ecx, dword ptr [ebp - 0x10] */ 432 goto L_2500B5A0; /* 0x25146193: jmp 0x2500b5a0 */ 433 { RECOMP_REGS_OUT(); return; } /* end of function */ 434 L_2500B5A0: RECOMP_ITAIL(0x2500B5A0u); { RECOMP_REGS_OUT(); return; } 435 RECOMP_REGS_OUT(); 436 } 437 438 void sub_25146198(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(0x25146198u); 447 448 L_25146198: 449 eax = MEM32(ebp + 0x14); /* 0x25146198: mov eax, dword ptr [ebp + 0x14] */ 450 PUSH32(esp, eax); /* 0x2514619B: push eax */ 451 RECOMP_ICALL(0x25137EECu); /* 0x2514619C: call 0x25137eec */ /* not lifted */ 452 RECOMP_FLAGS_IN(); 453 ecx = POP32_VAL(esp); /* 0x251461A1: pop ecx */ 454 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x251461A2: ret */ 455 RECOMP_REGS_OUT(); 456 } 457 458 void sub_251461A3(void) { 459 int _fpu_cmp = 0; 460 uint32_t _cf = 0; 461 int _df = 1; 462 uint32_t _flag_k = FK_NONE; 463 uint32_t _flag_a = 0, _flag_b = 0; 464 uint32_t _itail_tgt = 0; 465 RECOMP_REGS_LOCALS 466 RECOMP_ENTER(0x251461A3u); 467 468 goto L_251461A3; 469 L_251380C4: 470 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 471 L_251461A3: 472 eax = 0x25166618u; /* 0x251461A3: mov eax, 0x25166618 */ 473 L_251461A8: 474 RECOMP_BACKEDGE(); 475 goto L_251380C4; /* 0x251461A8: jmp 0x251380c4 */ 476 { RECOMP_REGS_OUT(); return; } /* end of function */ 477 _ljump: 478 switch (_itail_tgt) { 479 case 0x251380C4u: goto L_251380C4; 480 case 0x251461A3u: goto L_251461A3; 481 case 0x251461A8u: goto L_251461A8; 482 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 483 } 484 RECOMP_REGS_OUT(); 485 } 486 487 void sub_251461B0(void) { 488 int _fpu_cmp = 0; 489 uint32_t _cf = 0; 490 int _df = 1; 491 uint32_t _flag_k = FK_NONE; 492 uint32_t _flag_a = 0, _flag_b = 0; 493 uint32_t _itail_tgt = 0; 494 RECOMP_REGS_LOCALS 495 RECOMP_ENTER(0x251461B0u); 496 497 L_251461B0: 498 ecx = ebp + (-0x138); /* 0x251461B0: lea ecx, [ebp - 0x138] */ 499 L_251461B6: 500 { _itail_tgt = (uint32_t)(MEM32(0x25151504)); goto _ljump; } 501 { RECOMP_REGS_OUT(); return; } /* end of function */ 502 _ljump: 503 switch (_itail_tgt) { 504 case 0x251461B0u: goto L_251461B0; 505 case 0x251461B6u: goto L_251461B6; 506 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 507 } 508 RECOMP_REGS_OUT(); 509 } 510 511 void sub_251461BC(void) { 512 int _fpu_cmp = 0; 513 uint32_t _cf = 0; 514 int _df = 1; 515 uint32_t _flag_k = FK_NONE; 516 uint32_t _flag_a = 0, _flag_b = 0; 517 uint32_t _itail_tgt = 0; 518 RECOMP_REGS_LOCALS 519 RECOMP_ENTER(0x251461BCu); 520 521 L_251461BC: 522 ecx = ebp + (-0x190); /* 0x251461BC: lea ecx, [ebp - 0x190] */ 523 L_251461C2: 524 { _itail_tgt = (uint32_t)(MEM32(0x25151504)); goto _ljump; } 525 { RECOMP_REGS_OUT(); return; } /* end of function */ 526 _ljump: 527 switch (_itail_tgt) { 528 case 0x251461BCu: goto L_251461BC; 529 case 0x251461C2u: goto L_251461C2; 530 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 531 } 532 RECOMP_REGS_OUT(); 533 } 534 535 void sub_251461C8(void) { 536 int _fpu_cmp = 0; 537 uint32_t _cf = 0; 538 int _df = 1; 539 uint32_t _flag_k = FK_NONE; 540 uint32_t _flag_a = 0, _flag_b = 0; 541 uint32_t _itail_tgt = 0; 542 RECOMP_REGS_LOCALS 543 RECOMP_ENTER(0x251461C8u); 544 545 L_251461C8: 546 ecx = ebp + (-0x1D0); /* 0x251461C8: lea ecx, [ebp - 0x1d0] */ 547 L_251461CE: 548 { _itail_tgt = (uint32_t)(MEM32(0x25151504)); goto _ljump; } 549 { RECOMP_REGS_OUT(); return; } /* end of function */ 550 _ljump: 551 switch (_itail_tgt) { 552 case 0x251461C8u: goto L_251461C8; 553 case 0x251461CEu: goto L_251461CE; 554 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 555 } 556 RECOMP_REGS_OUT(); 557 } 558 559 void sub_251461D4(void) { 560 int _fpu_cmp = 0; 561 uint32_t _cf = 0; 562 int _df = 1; 563 uint32_t _flag_k = FK_NONE; 564 uint32_t _flag_a = 0, _flag_b = 0; 565 uint32_t _itail_tgt = 0; 566 RECOMP_REGS_LOCALS 567 RECOMP_ENTER(0x251461D4u); 568 569 goto L_251461D4; 570 L_251380C4: 571 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 572 L_251461D4: 573 eax = 0x25166648u; /* 0x251461D4: mov eax, 0x25166648 */ 574 L_251461D9: 575 RECOMP_BACKEDGE(); 576 goto L_251380C4; /* 0x251461D9: jmp 0x251380c4 */ 577 { RECOMP_REGS_OUT(); return; } /* end of function */ 578 _ljump: 579 switch (_itail_tgt) { 580 case 0x251380C4u: goto L_251380C4; 581 case 0x251461D4u: goto L_251461D4; 582 case 0x251461D9u: goto L_251461D9; 583 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 584 } 585 RECOMP_REGS_OUT(); 586 } 587 588 void sub_251461E0(void) { 589 int _fpu_cmp = 0; 590 uint32_t _cf = 0; 591 int _df = 1; 592 uint32_t _flag_k = FK_NONE; 593 uint32_t _flag_a = 0, _flag_b = 0; 594 uint32_t _itail_tgt = 0; 595 RECOMP_REGS_LOCALS 596 RECOMP_ENTER(0x251461E0u); 597 598 L_251461E0: 599 ecx = MEM32(ebp + (-0x10)); /* 0x251461E0: mov ecx, dword ptr [ebp - 0x10] */ 600 goto L_2500B5A0; /* 0x251461E3: jmp 0x2500b5a0 */ 601 { RECOMP_REGS_OUT(); return; } /* end of function */ 602 L_2500B5A0: RECOMP_ITAIL(0x2500B5A0u); { RECOMP_REGS_OUT(); return; } 603 RECOMP_REGS_OUT(); 604 } 605 606 void sub_251461E8(void) { 607 int _fpu_cmp = 0; 608 uint32_t _cf = 0; 609 int _df = 1; 610 uint32_t _flag_k = FK_NONE; 611 uint32_t _flag_a = 0, _flag_b = 0; 612 uint32_t _itail_tgt = 0; 613 RECOMP_REGS_LOCALS 614 RECOMP_ENTER(0x251461E8u); 615 616 L_251461E8: 617 eax = MEM32(ebp + 0x8); /* 0x251461E8: mov eax, dword ptr [ebp + 8] */ 618 PUSH32(esp, eax); /* 0x251461EB: push eax */ 619 RECOMP_ICALL(0x25137EECu); /* 0x251461EC: call 0x25137eec */ /* not lifted */ 620 RECOMP_FLAGS_IN(); 621 ecx = POP32_VAL(esp); /* 0x251461F1: pop ecx */ 622 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x251461F2: ret */ 623 RECOMP_REGS_OUT(); 624 } 625 626 void sub_251461F3(void) { 627 int _fpu_cmp = 0; 628 uint32_t _cf = 0; 629 int _df = 1; 630 uint32_t _flag_k = FK_NONE; 631 uint32_t _flag_a = 0, _flag_b = 0; 632 uint32_t _itail_tgt = 0; 633 RECOMP_REGS_LOCALS 634 RECOMP_ENTER(0x251461F3u); 635 636 goto L_251461F3; 637 L_251380C4: 638 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 639 L_251461F3: 640 eax = 0x25166680u; /* 0x251461F3: mov eax, 0x25166680 */ 641 L_251461F8: 642 RECOMP_BACKEDGE(); 643 goto L_251380C4; /* 0x251461F8: jmp 0x251380c4 */ 644 { RECOMP_REGS_OUT(); return; } /* end of function */ 645 _ljump: 646 switch (_itail_tgt) { 647 case 0x251380C4u: goto L_251380C4; 648 case 0x251461F3u: goto L_251461F3; 649 case 0x251461F8u: goto L_251461F8; 650 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 651 } 652 RECOMP_REGS_OUT(); 653 } 654 655 void sub_25146200(void) { 656 int _fpu_cmp = 0; 657 uint32_t _cf = 0; 658 int _df = 1; 659 uint32_t _flag_k = FK_NONE; 660 uint32_t _flag_a = 0, _flag_b = 0; 661 uint32_t _itail_tgt = 0; 662 RECOMP_REGS_LOCALS 663 RECOMP_ENTER(0x25146200u); 664 665 L_25146200: 666 ecx = MEM32(ebp + (-0x10)); /* 0x25146200: mov ecx, dword ptr [ebp - 0x10] */ 667 goto L_2500B5A0; /* 0x25146203: jmp 0x2500b5a0 */ 668 { RECOMP_REGS_OUT(); return; } /* end of function */ 669 L_2500B5A0: RECOMP_ITAIL(0x2500B5A0u); { RECOMP_REGS_OUT(); return; } 670 RECOMP_REGS_OUT(); 671 } 672 673 void sub_25146208(void) { 674 int _fpu_cmp = 0; 675 uint32_t _cf = 0; 676 int _df = 1; 677 uint32_t _flag_k = FK_NONE; 678 uint32_t _flag_a = 0, _flag_b = 0; 679 uint32_t _itail_tgt = 0; 680 RECOMP_REGS_LOCALS 681 RECOMP_ENTER(0x25146208u); 682 683 goto L_25146208; 684 L_251380C4: 685 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 686 L_25146208: 687 eax = 0x251666B0u; /* 0x25146208: mov eax, 0x251666b0 */ 688 L_2514620D: 689 RECOMP_BACKEDGE(); 690 goto L_251380C4; /* 0x2514620D: jmp 0x251380c4 */ 691 { RECOMP_REGS_OUT(); return; } /* end of function */ 692 _ljump: 693 switch (_itail_tgt) { 694 case 0x251380C4u: goto L_251380C4; 695 case 0x25146208u: goto L_25146208; 696 case 0x2514620Du: goto L_2514620D; 697 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 698 } 699 RECOMP_REGS_OUT(); 700 } 701 702 void sub_25146220(void) { 703 int _fpu_cmp = 0; 704 uint32_t _cf = 0; 705 int _df = 1; 706 uint32_t _flag_k = FK_NONE; 707 uint32_t _flag_a = 0, _flag_b = 0; 708 uint32_t _itail_tgt = 0; 709 RECOMP_REGS_LOCALS 710 RECOMP_ENTER(0x25146220u); 711 712 L_25146220: 713 ecx = ebp + (-0x110); /* 0x25146220: lea ecx, [ebp - 0x110] */ 714 L_25146226: 715 { _itail_tgt = (uint32_t)(MEM32(0x25151504)); goto _ljump; } 716 { RECOMP_REGS_OUT(); return; } /* end of function */ 717 _ljump: 718 switch (_itail_tgt) { 719 case 0x25146220u: goto L_25146220; 720 case 0x25146226u: goto L_25146226; 721 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 722 } 723 RECOMP_REGS_OUT(); 724 } 725 726 void sub_2514622C(void) { 727 int _fpu_cmp = 0; 728 uint32_t _cf = 0; 729 int _df = 1; 730 uint32_t _flag_k = FK_NONE; 731 uint32_t _flag_a = 0, _flag_b = 0; 732 uint32_t _itail_tgt = 0; 733 RECOMP_REGS_LOCALS 734 RECOMP_ENTER(0x2514622Cu); 735 736 goto L_2514622C; 737 L_251380C4: 738 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 739 L_2514622C: 740 eax = 0x251666D8u; /* 0x2514622C: mov eax, 0x251666d8 */ 741 L_25146231: 742 RECOMP_BACKEDGE(); 743 goto L_251380C4; /* 0x25146231: jmp 0x251380c4 */ 744 { RECOMP_REGS_OUT(); return; } /* end of function */ 745 _ljump: 746 switch (_itail_tgt) { 747 case 0x251380C4u: goto L_251380C4; 748 case 0x2514622Cu: goto L_2514622C; 749 case 0x25146231u: goto L_25146231; 750 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 751 } 752 RECOMP_REGS_OUT(); 753 } 754 755 void sub_25146240(void) { 756 int _fpu_cmp = 0; 757 uint32_t _cf = 0; 758 int _df = 1; 759 uint32_t _flag_k = FK_NONE; 760 uint32_t _flag_a = 0, _flag_b = 0; 761 uint32_t _itail_tgt = 0; 762 RECOMP_REGS_LOCALS 763 RECOMP_ENTER(0x25146240u); 764 765 L_25146240: 766 ecx = MEM32(ebp + (-0x10)); /* 0x25146240: mov ecx, dword ptr [ebp - 0x10] */ 767 goto L_2500B5A0; /* 0x25146243: jmp 0x2500b5a0 */ 768 { RECOMP_REGS_OUT(); return; } /* end of function */ 769 L_2500B5A0: RECOMP_ITAIL(0x2500B5A0u); { RECOMP_REGS_OUT(); return; } 770 RECOMP_REGS_OUT(); 771 } 772 773 void sub_25146248(void) { 774 int _fpu_cmp = 0; 775 uint32_t _cf = 0; 776 int _df = 1; 777 uint32_t _flag_k = FK_NONE; 778 uint32_t _flag_a = 0, _flag_b = 0; 779 uint32_t _itail_tgt = 0; 780 RECOMP_REGS_LOCALS 781 RECOMP_ENTER(0x25146248u); 782 783 L_25146248: 784 eax = MEM32(ebp + 0x8); /* 0x25146248: mov eax, dword ptr [ebp + 8] */ 785 PUSH32(esp, eax); /* 0x2514624B: push eax */ 786 RECOMP_ICALL(0x25137EECu); /* 0x2514624C: call 0x25137eec */ /* not lifted */ 787 RECOMP_FLAGS_IN(); 788 ecx = POP32_VAL(esp); /* 0x25146251: pop ecx */ 789 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25146252: ret */ 790 RECOMP_REGS_OUT(); 791 } 792 793 void sub_25146253(void) { 794 int _fpu_cmp = 0; 795 uint32_t _cf = 0; 796 int _df = 1; 797 uint32_t _flag_k = FK_NONE; 798 uint32_t _flag_a = 0, _flag_b = 0; 799 uint32_t _itail_tgt = 0; 800 RECOMP_REGS_LOCALS 801 RECOMP_ENTER(0x25146253u); 802 803 goto L_25146253; 804 L_251380C4: 805 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 806 L_25146253: 807 eax = 0x25166700u; /* 0x25146253: mov eax, 0x25166700 */ 808 L_25146258: 809 RECOMP_BACKEDGE(); 810 goto L_251380C4; /* 0x25146258: jmp 0x251380c4 */ 811 { RECOMP_REGS_OUT(); return; } /* end of function */ 812 _ljump: 813 switch (_itail_tgt) { 814 case 0x251380C4u: goto L_251380C4; 815 case 0x25146253u: goto L_25146253; 816 case 0x25146258u: goto L_25146258; 817 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 818 } 819 RECOMP_REGS_OUT(); 820 } 821 822 void sub_25146260(void) { 823 int _fpu_cmp = 0; 824 uint32_t _cf = 0; 825 int _df = 1; 826 uint32_t _flag_k = FK_NONE; 827 uint32_t _flag_a = 0, _flag_b = 0; 828 uint32_t _itail_tgt = 0; 829 RECOMP_REGS_LOCALS 830 RECOMP_ENTER(0x25146260u); 831 832 L_25146260: 833 ecx = MEM32(ebp + (-0x10)); /* 0x25146260: mov ecx, dword ptr [ebp - 0x10] */ 834 goto L_2500B5A0; /* 0x25146263: jmp 0x2500b5a0 */ 835 { RECOMP_REGS_OUT(); return; } /* end of function */ 836 L_2500B5A0: RECOMP_ITAIL(0x2500B5A0u); { RECOMP_REGS_OUT(); return; } 837 RECOMP_REGS_OUT(); 838 } 839 840 void sub_25146268(void) { 841 int _fpu_cmp = 0; 842 uint32_t _cf = 0; 843 int _df = 1; 844 uint32_t _flag_k = FK_NONE; 845 uint32_t _flag_a = 0, _flag_b = 0; 846 uint32_t _itail_tgt = 0; 847 RECOMP_REGS_LOCALS 848 RECOMP_ENTER(0x25146268u); 849 850 goto L_25146268; 851 L_251380C4: 852 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 853 L_25146268: 854 eax = 0x25166730u; /* 0x25146268: mov eax, 0x25166730 */ 855 L_2514626D: 856 RECOMP_BACKEDGE(); 857 goto L_251380C4; /* 0x2514626D: jmp 0x251380c4 */ 858 { RECOMP_REGS_OUT(); return; } /* end of function */ 859 _ljump: 860 switch (_itail_tgt) { 861 case 0x251380C4u: goto L_251380C4; 862 case 0x25146268u: goto L_25146268; 863 case 0x2514626Du: goto L_2514626D; 864 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 865 } 866 RECOMP_REGS_OUT(); 867 } 868 869 void sub_25146280(void) { 870 int _fpu_cmp = 0; 871 uint32_t _cf = 0; 872 int _df = 1; 873 uint32_t _flag_k = FK_NONE; 874 uint32_t _flag_a = 0, _flag_b = 0; 875 uint32_t _itail_tgt = 0; 876 RECOMP_REGS_LOCALS 877 RECOMP_ENTER(0x25146280u); 878 879 L_25146280: 880 ecx = ebp + (-0x110); /* 0x25146280: lea ecx, [ebp - 0x110] */ 881 L_25146286: 882 { _itail_tgt = (uint32_t)(MEM32(0x25151504)); goto _ljump; } 883 { RECOMP_REGS_OUT(); return; } /* end of function */ 884 _ljump: 885 switch (_itail_tgt) { 886 case 0x25146280u: goto L_25146280; 887 case 0x25146286u: goto L_25146286; 888 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 889 } 890 RECOMP_REGS_OUT(); 891 } 892 893 void sub_2514628C(void) { 894 int _fpu_cmp = 0; 895 uint32_t _cf = 0; 896 int _df = 1; 897 uint32_t _flag_k = FK_NONE; 898 uint32_t _flag_a = 0, _flag_b = 0; 899 uint32_t _itail_tgt = 0; 900 RECOMP_REGS_LOCALS 901 RECOMP_ENTER(0x2514628Cu); 902 903 L_2514628C: 904 ecx = ebp + (-0x150); /* 0x2514628C: lea ecx, [ebp - 0x150] */ 905 L_25146292: 906 { _itail_tgt = (uint32_t)(MEM32(0x25151504)); goto _ljump; } 907 { RECOMP_REGS_OUT(); return; } /* end of function */ 908 _ljump: 909 switch (_itail_tgt) { 910 case 0x2514628Cu: goto L_2514628C; 911 case 0x25146292u: goto L_25146292; 912 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 913 } 914 RECOMP_REGS_OUT(); 915 } 916 917 void sub_25146298(void) { 918 int _fpu_cmp = 0; 919 uint32_t _cf = 0; 920 int _df = 1; 921 uint32_t _flag_k = FK_NONE; 922 uint32_t _flag_a = 0, _flag_b = 0; 923 uint32_t _itail_tgt = 0; 924 RECOMP_REGS_LOCALS 925 RECOMP_ENTER(0x25146298u); 926 927 goto L_25146298; 928 L_251380C4: 929 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 930 L_25146298: 931 eax = 0x25166758u; /* 0x25146298: mov eax, 0x25166758 */ 932 L_2514629D: 933 RECOMP_BACKEDGE(); 934 goto L_251380C4; /* 0x2514629D: jmp 0x251380c4 */ 935 { RECOMP_REGS_OUT(); return; } /* end of function */ 936 _ljump: 937 switch (_itail_tgt) { 938 case 0x251380C4u: goto L_251380C4; 939 case 0x25146298u: goto L_25146298; 940 case 0x2514629Du: goto L_2514629D; 941 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 942 } 943 RECOMP_REGS_OUT(); 944 } 945 946 void sub_251462B0(void) { 947 int _fpu_cmp = 0; 948 uint32_t _cf = 0; 949 int _df = 1; 950 uint32_t _flag_k = FK_NONE; 951 uint32_t _flag_a = 0, _flag_b = 0; 952 uint32_t _itail_tgt = 0; 953 RECOMP_REGS_LOCALS 954 RECOMP_ENTER(0x251462B0u); 955 956 L_251462B0: 957 ecx = MEM32(ebp + (-0x10)); /* 0x251462B0: mov ecx, dword ptr [ebp - 0x10] */ 958 goto L_2500B5A0; /* 0x251462B3: jmp 0x2500b5a0 */ 959 { RECOMP_REGS_OUT(); return; } /* end of function */ 960 L_2500B5A0: RECOMP_ITAIL(0x2500B5A0u); { RECOMP_REGS_OUT(); return; } 961 RECOMP_REGS_OUT(); 962 } 963 964 void sub_251462B8(void) { 965 int _fpu_cmp = 0; 966 uint32_t _cf = 0; 967 int _df = 1; 968 uint32_t _flag_k = FK_NONE; 969 uint32_t _flag_a = 0, _flag_b = 0; 970 uint32_t _itail_tgt = 0; 971 RECOMP_REGS_LOCALS 972 RECOMP_ENTER(0x251462B8u); 973 974 L_251462B8: 975 eax = MEM32(ebp + 0x8); /* 0x251462B8: mov eax, dword ptr [ebp + 8] */ 976 PUSH32(esp, eax); /* 0x251462BB: push eax */ 977 RECOMP_ICALL(0x25137EECu); /* 0x251462BC: call 0x25137eec */ /* not lifted */ 978 RECOMP_FLAGS_IN(); 979 ecx = POP32_VAL(esp); /* 0x251462C1: pop ecx */ 980 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x251462C2: ret */ 981 RECOMP_REGS_OUT(); 982 } 983 984 void sub_251462C3(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(0x251462C3u); 993 994 goto L_251462C3; 995 L_251380C4: 996 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 997 L_251462C3: 998 eax = 0x25166788u; /* 0x251462C3: mov eax, 0x25166788 */ 999 L_251462C8: 1000 RECOMP_BACKEDGE(); 1001 goto L_251380C4; /* 0x251462C8: jmp 0x251380c4 */ 1002 { RECOMP_REGS_OUT(); return; } /* end of function */ 1003 _ljump: 1004 switch (_itail_tgt) { 1005 case 0x251380C4u: goto L_251380C4; 1006 case 0x251462C3u: goto L_251462C3; 1007 case 0x251462C8u: goto L_251462C8; 1008 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1009 } 1010 RECOMP_REGS_OUT(); 1011 } 1012 1013 void sub_251462D0(void) { 1014 int _fpu_cmp = 0; 1015 uint32_t _cf = 0; 1016 int _df = 1; 1017 uint32_t _flag_k = FK_NONE; 1018 uint32_t _flag_a = 0, _flag_b = 0; 1019 uint32_t _itail_tgt = 0; 1020 RECOMP_REGS_LOCALS 1021 RECOMP_ENTER(0x251462D0u); 1022 1023 L_251462D0: 1024 ecx = MEM32(ebp + (-0x10)); /* 0x251462D0: mov ecx, dword ptr [ebp - 0x10] */ 1025 goto L_2500B5A0; /* 0x251462D3: jmp 0x2500b5a0 */ 1026 { RECOMP_REGS_OUT(); return; } /* end of function */ 1027 L_2500B5A0: RECOMP_ITAIL(0x2500B5A0u); { RECOMP_REGS_OUT(); return; } 1028 RECOMP_REGS_OUT(); 1029 } 1030 1031 void sub_251462D8(void) { 1032 int _fpu_cmp = 0; 1033 uint32_t _cf = 0; 1034 int _df = 1; 1035 uint32_t _flag_k = FK_NONE; 1036 uint32_t _flag_a = 0, _flag_b = 0; 1037 uint32_t _itail_tgt = 0; 1038 RECOMP_REGS_LOCALS 1039 RECOMP_ENTER(0x251462D8u); 1040 1041 goto L_251462D8; 1042 L_251380C4: 1043 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 1044 L_251462D8: 1045 eax = 0x251667B8u; /* 0x251462D8: mov eax, 0x251667b8 */ 1046 L_251462DD: 1047 RECOMP_BACKEDGE(); 1048 goto L_251380C4; /* 0x251462DD: jmp 0x251380c4 */ 1049 { RECOMP_REGS_OUT(); return; } /* end of function */ 1050 _ljump: 1051 switch (_itail_tgt) { 1052 case 0x251380C4u: goto L_251380C4; 1053 case 0x251462D8u: goto L_251462D8; 1054 case 0x251462DDu: goto L_251462DD; 1055 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1056 } 1057 RECOMP_REGS_OUT(); 1058 } 1059 1060 void sub_251462F0(void) { 1061 int _fpu_cmp = 0; 1062 uint32_t _cf = 0; 1063 int _df = 1; 1064 uint32_t _flag_k = FK_NONE; 1065 uint32_t _flag_a = 0, _flag_b = 0; 1066 uint32_t _itail_tgt = 0; 1067 RECOMP_REGS_LOCALS 1068 RECOMP_ENTER(0x251462F0u); 1069 1070 L_251462F0: 1071 ecx = ebp + (-0xD0); /* 0x251462F0: lea ecx, [ebp - 0xd0] */ 1072 L_251462F6: 1073 { _itail_tgt = (uint32_t)(MEM32(0x25151504)); goto _ljump; } 1074 { RECOMP_REGS_OUT(); return; } /* end of function */ 1075 _ljump: 1076 switch (_itail_tgt) { 1077 case 0x251462F0u: goto L_251462F0; 1078 case 0x251462F6u: goto L_251462F6; 1079 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1080 } 1081 RECOMP_REGS_OUT(); 1082 } 1083 1084 void sub_251462FC(void) { 1085 int _fpu_cmp = 0; 1086 uint32_t _cf = 0; 1087 int _df = 1; 1088 uint32_t _flag_k = FK_NONE; 1089 uint32_t _flag_a = 0, _flag_b = 0; 1090 uint32_t _itail_tgt = 0; 1091 RECOMP_REGS_LOCALS 1092 RECOMP_ENTER(0x251462FCu); 1093 1094 goto L_251462FC; 1095 L_251380C4: 1096 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 1097 L_251462FC: 1098 eax = 0x251667E0u; /* 0x251462FC: mov eax, 0x251667e0 */ 1099 L_25146301: 1100 RECOMP_BACKEDGE(); 1101 goto L_251380C4; /* 0x25146301: jmp 0x251380c4 */ 1102 { RECOMP_REGS_OUT(); return; } /* end of function */ 1103 _ljump: 1104 switch (_itail_tgt) { 1105 case 0x251380C4u: goto L_251380C4; 1106 case 0x251462FCu: goto L_251462FC; 1107 case 0x25146301u: goto L_25146301; 1108 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1109 } 1110 RECOMP_REGS_OUT(); 1111 } 1112 1113 void sub_25146310(void) { 1114 int _fpu_cmp = 0; 1115 uint32_t _cf = 0; 1116 int _df = 1; 1117 uint32_t _flag_k = FK_NONE; 1118 uint32_t _flag_a = 0, _flag_b = 0; 1119 uint32_t _itail_tgt = 0; 1120 RECOMP_REGS_LOCALS 1121 RECOMP_ENTER(0x25146310u); 1122 1123 L_25146310: 1124 ecx = MEM32(ebp + (-0x10)); /* 0x25146310: mov ecx, dword ptr [ebp - 0x10] */ 1125 goto L_2500B5A0; /* 0x25146313: jmp 0x2500b5a0 */ 1126 { RECOMP_REGS_OUT(); return; } /* end of function */ 1127 L_2500B5A0: RECOMP_ITAIL(0x2500B5A0u); { RECOMP_REGS_OUT(); return; } 1128 RECOMP_REGS_OUT(); 1129 } 1130 1131 void sub_25146318(void) { 1132 int _fpu_cmp = 0; 1133 uint32_t _cf = 0; 1134 int _df = 1; 1135 uint32_t _flag_k = FK_NONE; 1136 uint32_t _flag_a = 0, _flag_b = 0; 1137 uint32_t _itail_tgt = 0; 1138 RECOMP_REGS_LOCALS 1139 RECOMP_ENTER(0x25146318u); 1140 1141 L_25146318: 1142 eax = MEM32(ebp + 0x14); /* 0x25146318: mov eax, dword ptr [ebp + 0x14] */ 1143 PUSH32(esp, eax); /* 0x2514631B: push eax */ 1144 RECOMP_ICALL(0x25137EECu); /* 0x2514631C: call 0x25137eec */ /* not lifted */ 1145 RECOMP_FLAGS_IN(); 1146 ecx = POP32_VAL(esp); /* 0x25146321: pop ecx */ 1147 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25146322: ret */ 1148 RECOMP_REGS_OUT(); 1149 } 1150 1151 void sub_25146323(void) { 1152 int _fpu_cmp = 0; 1153 uint32_t _cf = 0; 1154 int _df = 1; 1155 uint32_t _flag_k = FK_NONE; 1156 uint32_t _flag_a = 0, _flag_b = 0; 1157 uint32_t _itail_tgt = 0; 1158 RECOMP_REGS_LOCALS 1159 RECOMP_ENTER(0x25146323u); 1160 1161 goto L_25146323; 1162 L_251380C4: 1163 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 1164 L_25146323: 1165 eax = 0x25166808u; /* 0x25146323: mov eax, 0x25166808 */ 1166 L_25146328: 1167 RECOMP_BACKEDGE(); 1168 goto L_251380C4; /* 0x25146328: jmp 0x251380c4 */ 1169 { RECOMP_REGS_OUT(); return; } /* end of function */ 1170 _ljump: 1171 switch (_itail_tgt) { 1172 case 0x251380C4u: goto L_251380C4; 1173 case 0x25146323u: goto L_25146323; 1174 case 0x25146328u: goto L_25146328; 1175 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1176 } 1177 RECOMP_REGS_OUT(); 1178 } 1179 1180 void sub_25146330(void) { 1181 int _fpu_cmp = 0; 1182 uint32_t _cf = 0; 1183 int _df = 1; 1184 uint32_t _flag_k = FK_NONE; 1185 uint32_t _flag_a = 0, _flag_b = 0; 1186 uint32_t _itail_tgt = 0; 1187 RECOMP_REGS_LOCALS 1188 RECOMP_ENTER(0x25146330u); 1189 1190 L_25146330: 1191 ecx = MEM32(ebp + (-0x10)); /* 0x25146330: mov ecx, dword ptr [ebp - 0x10] */ 1192 goto L_2500B5A0; /* 0x25146333: jmp 0x2500b5a0 */ 1193 { RECOMP_REGS_OUT(); return; } /* end of function */ 1194 L_2500B5A0: RECOMP_ITAIL(0x2500B5A0u); { RECOMP_REGS_OUT(); return; } 1195 RECOMP_REGS_OUT(); 1196 } 1197 1198 void sub_25146338(void) { 1199 int _fpu_cmp = 0; 1200 uint32_t _cf = 0; 1201 int _df = 1; 1202 uint32_t _flag_k = FK_NONE; 1203 uint32_t _flag_a = 0, _flag_b = 0; 1204 uint32_t _itail_tgt = 0; 1205 RECOMP_REGS_LOCALS 1206 RECOMP_ENTER(0x25146338u); 1207 1208 L_25146338: 1209 PUSH32(esp, 0x2501C580u); /* 0x25146338: push 0x2501c580 */ 1210 PUSH32(esp, 0x40u); /* 0x2514633D: push 0x40 */ 1211 PUSH32(esp, 0x44u); /* 0x2514633F: push 0x44 */ 1212 eax = MEM32(ebp + (-0x10)); /* 0x25146341: mov eax, dword ptr [ebp - 0x10] */ 1213 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x200u); 1214 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1215 eax = eax + 0x200u; /* 0x25146344: add eax, 0x200 */ 1216 _flag_k = FK_ADD; 1217 PUSH32(esp, eax); /* 0x25146349: push eax */ 1218 RECOMP_ICALL(0x25137F92u); /* 0x2514634A: call 0x25137f92 */ /* not lifted */ 1219 RECOMP_FLAGS_IN(); 1220 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2514634F: ret */ 1221 RECOMP_REGS_OUT(); 1222 } 1223 1224 void sub_25146350(void) { 1225 int _fpu_cmp = 0; 1226 uint32_t _cf = 0; 1227 int _df = 1; 1228 uint32_t _flag_k = FK_NONE; 1229 uint32_t _flag_a = 0, _flag_b = 0; 1230 uint32_t _itail_tgt = 0; 1231 RECOMP_REGS_LOCALS 1232 RECOMP_ENTER(0x25146350u); 1233 1234 L_25146350: 1235 eax = MEM32(ebp + 0x8); /* 0x25146350: mov eax, dword ptr [ebp + 8] */ 1236 PUSH32(esp, eax); /* 0x25146353: push eax */ 1237 RECOMP_ICALL(0x25137EECu); /* 0x25146354: call 0x25137eec */ /* not lifted */ 1238 RECOMP_FLAGS_IN(); 1239 ecx = POP32_VAL(esp); /* 0x25146359: pop ecx */ 1240 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2514635A: ret */ 1241 RECOMP_REGS_OUT(); 1242 } 1243 1244 void sub_2514635B(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(0x2514635Bu); 1253 1254 goto L_2514635B; 1255 L_251380C4: 1256 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 1257 L_2514635B: 1258 eax = 0x25166838u; /* 0x2514635B: mov eax, 0x25166838 */ 1259 L_25146360: 1260 RECOMP_BACKEDGE(); 1261 goto L_251380C4; /* 0x25146360: jmp 0x251380c4 */ 1262 { RECOMP_REGS_OUT(); return; } /* end of function */ 1263 _ljump: 1264 switch (_itail_tgt) { 1265 case 0x251380C4u: goto L_251380C4; 1266 case 0x2514635Bu: goto L_2514635B; 1267 case 0x25146360u: goto L_25146360; 1268 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1269 } 1270 RECOMP_REGS_OUT(); 1271 } 1272 1273 void sub_25146370(void) { 1274 int _fpu_cmp = 0; 1275 uint32_t _cf = 0; 1276 int _df = 1; 1277 uint32_t _flag_k = FK_NONE; 1278 uint32_t _flag_a = 0, _flag_b = 0; 1279 uint32_t _itail_tgt = 0; 1280 RECOMP_REGS_LOCALS 1281 RECOMP_ENTER(0x25146370u); 1282 1283 L_25146370: 1284 ecx = MEM32(ebp + (-0x10)); /* 0x25146370: mov ecx, dword ptr [ebp - 0x10] */ 1285 goto L_2500B5A0; /* 0x25146373: jmp 0x2500b5a0 */ 1286 { RECOMP_REGS_OUT(); return; } /* end of function */ 1287 L_2500B5A0: RECOMP_ITAIL(0x2500B5A0u); { RECOMP_REGS_OUT(); return; } 1288 RECOMP_REGS_OUT(); 1289 } 1290 1291 void sub_25146378(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(0x25146378u); 1300 1301 L_25146378: 1302 PUSH32(esp, 0x2501C580u); /* 0x25146378: push 0x2501c580 */ 1303 PUSH32(esp, 0x40u); /* 0x2514637D: push 0x40 */ 1304 PUSH32(esp, 0x44u); /* 0x2514637F: push 0x44 */ 1305 eax = MEM32(ebp + (-0x10)); /* 0x25146381: mov eax, dword ptr [ebp - 0x10] */ 1306 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x200u); 1307 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1308 eax = eax + 0x200u; /* 0x25146384: add eax, 0x200 */ 1309 _flag_k = FK_ADD; 1310 PUSH32(esp, eax); /* 0x25146389: push eax */ 1311 RECOMP_ICALL(0x25137F92u); /* 0x2514638A: call 0x25137f92 */ /* not lifted */ 1312 RECOMP_FLAGS_IN(); 1313 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2514638F: ret */ 1314 RECOMP_REGS_OUT(); 1315 } 1316 1317 void sub_25146390(void) { 1318 int _fpu_cmp = 0; 1319 uint32_t _cf = 0; 1320 int _df = 1; 1321 uint32_t _flag_k = FK_NONE; 1322 uint32_t _flag_a = 0, _flag_b = 0; 1323 uint32_t _itail_tgt = 0; 1324 RECOMP_REGS_LOCALS 1325 RECOMP_ENTER(0x25146390u); 1326 1327 goto L_25146390; 1328 L_251380C4: 1329 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 1330 L_25146390: 1331 eax = 0x25166870u; /* 0x25146390: mov eax, 0x25166870 */ 1332 L_25146395: 1333 RECOMP_BACKEDGE(); 1334 goto L_251380C4; /* 0x25146395: jmp 0x251380c4 */ 1335 { RECOMP_REGS_OUT(); return; } /* end of function */ 1336 _ljump: 1337 switch (_itail_tgt) { 1338 case 0x251380C4u: goto L_251380C4; 1339 case 0x25146390u: goto L_25146390; 1340 case 0x25146395u: goto L_25146395; 1341 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1342 } 1343 RECOMP_REGS_OUT(); 1344 } 1345 1346 void sub_251463A0(void) { 1347 int _fpu_cmp = 0; 1348 uint32_t _cf = 0; 1349 int _df = 1; 1350 uint32_t _flag_k = FK_NONE; 1351 uint32_t _flag_a = 0, _flag_b = 0; 1352 uint32_t _itail_tgt = 0; 1353 RECOMP_REGS_LOCALS 1354 RECOMP_ENTER(0x251463A0u); 1355 1356 L_251463A0: 1357 ecx = MEM32(ebp + (-0x10)); /* 0x251463A0: mov ecx, dword ptr [ebp - 0x10] */ 1358 goto L_2500B5A0; /* 0x251463A3: jmp 0x2500b5a0 */ 1359 { RECOMP_REGS_OUT(); return; } /* end of function */ 1360 L_2500B5A0: RECOMP_ITAIL(0x2500B5A0u); { RECOMP_REGS_OUT(); return; } 1361 RECOMP_REGS_OUT(); 1362 } 1363 1364 void sub_251463A8(void) { 1365 int _fpu_cmp = 0; 1366 uint32_t _cf = 0; 1367 int _df = 1; 1368 uint32_t _flag_k = FK_NONE; 1369 uint32_t _flag_a = 0, _flag_b = 0; 1370 uint32_t _itail_tgt = 0; 1371 RECOMP_REGS_LOCALS 1372 RECOMP_ENTER(0x251463A8u); 1373 1374 L_251463A8: 1375 eax = MEM32(ebp + 0x14); /* 0x251463A8: mov eax, dword ptr [ebp + 0x14] */ 1376 PUSH32(esp, eax); /* 0x251463AB: push eax */ 1377 RECOMP_ICALL(0x25137EECu); /* 0x251463AC: call 0x25137eec */ /* not lifted */ 1378 RECOMP_FLAGS_IN(); 1379 ecx = POP32_VAL(esp); /* 0x251463B1: pop ecx */ 1380 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x251463B2: ret */ 1381 RECOMP_REGS_OUT(); 1382 } 1383 1384 void sub_251463B3(void) { 1385 int _fpu_cmp = 0; 1386 uint32_t _cf = 0; 1387 int _df = 1; 1388 uint32_t _flag_k = FK_NONE; 1389 uint32_t _flag_a = 0, _flag_b = 0; 1390 uint32_t _itail_tgt = 0; 1391 RECOMP_REGS_LOCALS 1392 RECOMP_ENTER(0x251463B3u); 1393 1394 goto L_251463B3; 1395 L_251380C4: 1396 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 1397 L_251463B3: 1398 eax = 0x251668A0u; /* 0x251463B3: mov eax, 0x251668a0 */ 1399 L_251463B8: 1400 RECOMP_BACKEDGE(); 1401 goto L_251380C4; /* 0x251463B8: jmp 0x251380c4 */ 1402 { RECOMP_REGS_OUT(); return; } /* end of function */ 1403 _ljump: 1404 switch (_itail_tgt) { 1405 case 0x251380C4u: goto L_251380C4; 1406 case 0x251463B3u: goto L_251463B3; 1407 case 0x251463B8u: goto L_251463B8; 1408 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1409 } 1410 RECOMP_REGS_OUT(); 1411 } 1412 1413 void sub_251463C0(void) { 1414 int _fpu_cmp = 0; 1415 uint32_t _cf = 0; 1416 int _df = 1; 1417 uint32_t _flag_k = FK_NONE; 1418 uint32_t _flag_a = 0, _flag_b = 0; 1419 uint32_t _itail_tgt = 0; 1420 RECOMP_REGS_LOCALS 1421 RECOMP_ENTER(0x251463C0u); 1422 1423 L_251463C0: 1424 ecx = ebp + (-0x160); /* 0x251463C0: lea ecx, [ebp - 0x160] */ 1425 L_251463C6: 1426 { _itail_tgt = (uint32_t)(MEM32(0x25151504)); goto _ljump; } 1427 { RECOMP_REGS_OUT(); return; } /* end of function */ 1428 _ljump: 1429 switch (_itail_tgt) { 1430 case 0x251463C0u: goto L_251463C0; 1431 case 0x251463C6u: goto L_251463C6; 1432 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1433 } 1434 RECOMP_REGS_OUT(); 1435 } 1436 1437 void sub_251463CC(void) { 1438 int _fpu_cmp = 0; 1439 uint32_t _cf = 0; 1440 int _df = 1; 1441 uint32_t _flag_k = FK_NONE; 1442 uint32_t _flag_a = 0, _flag_b = 0; 1443 uint32_t _itail_tgt = 0; 1444 RECOMP_REGS_LOCALS 1445 RECOMP_ENTER(0x251463CCu); 1446 1447 L_251463CC: 1448 ecx = ebp + (-0x1A0); /* 0x251463CC: lea ecx, [ebp - 0x1a0] */ 1449 L_251463D2: 1450 { _itail_tgt = (uint32_t)(MEM32(0x25151504)); goto _ljump; } 1451 { RECOMP_REGS_OUT(); return; } /* end of function */ 1452 _ljump: 1453 switch (_itail_tgt) { 1454 case 0x251463CCu: goto L_251463CC; 1455 case 0x251463D2u: goto L_251463D2; 1456 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1457 } 1458 RECOMP_REGS_OUT(); 1459 } 1460 1461 void sub_251463D8(void) { 1462 int _fpu_cmp = 0; 1463 uint32_t _cf = 0; 1464 int _df = 1; 1465 uint32_t _flag_k = FK_NONE; 1466 uint32_t _flag_a = 0, _flag_b = 0; 1467 uint32_t _itail_tgt = 0; 1468 RECOMP_REGS_LOCALS 1469 RECOMP_ENTER(0x251463D8u); 1470 1471 goto L_251463D8; 1472 L_251380C4: 1473 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 1474 L_251463D8: 1475 eax = 0x251668D0u; /* 0x251463D8: mov eax, 0x251668d0 */ 1476 L_251463DD: 1477 RECOMP_BACKEDGE(); 1478 goto L_251380C4; /* 0x251463DD: jmp 0x251380c4 */ 1479 { RECOMP_REGS_OUT(); return; } /* end of function */ 1480 _ljump: 1481 switch (_itail_tgt) { 1482 case 0x251380C4u: goto L_251380C4; 1483 case 0x251463D8u: goto L_251463D8; 1484 case 0x251463DDu: goto L_251463DD; 1485 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1486 } 1487 RECOMP_REGS_OUT(); 1488 } 1489 1490 void sub_251463F0(void) { 1491 int _fpu_cmp = 0; 1492 uint32_t _cf = 0; 1493 int _df = 1; 1494 uint32_t _flag_k = FK_NONE; 1495 uint32_t _flag_a = 0, _flag_b = 0; 1496 uint32_t _itail_tgt = 0; 1497 RECOMP_REGS_LOCALS 1498 RECOMP_ENTER(0x251463F0u); 1499 1500 L_251463F0: 1501 ecx = MEM32(ebp + (-0x10)); /* 0x251463F0: mov ecx, dword ptr [ebp - 0x10] */ 1502 goto L_2500B5A0; /* 0x251463F3: jmp 0x2500b5a0 */ 1503 { RECOMP_REGS_OUT(); return; } /* end of function */ 1504 L_2500B5A0: RECOMP_ITAIL(0x2500B5A0u); { RECOMP_REGS_OUT(); return; } 1505 RECOMP_REGS_OUT(); 1506 } 1507 1508 void sub_251463F8(void) { 1509 int _fpu_cmp = 0; 1510 uint32_t _cf = 0; 1511 int _df = 1; 1512 uint32_t _flag_k = FK_NONE; 1513 uint32_t _flag_a = 0, _flag_b = 0; 1514 uint32_t _itail_tgt = 0; 1515 RECOMP_REGS_LOCALS 1516 RECOMP_ENTER(0x251463F8u); 1517 1518 L_251463F8: 1519 eax = MEM32(ebp + 0x14); /* 0x251463F8: mov eax, dword ptr [ebp + 0x14] */ 1520 PUSH32(esp, eax); /* 0x251463FB: push eax */ 1521 RECOMP_ICALL(0x25137EECu); /* 0x251463FC: call 0x25137eec */ /* not lifted */ 1522 RECOMP_FLAGS_IN(); 1523 ecx = POP32_VAL(esp); /* 0x25146401: pop ecx */ 1524 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25146402: ret */ 1525 RECOMP_REGS_OUT(); 1526 } 1527 1528 void sub_25146403(void) { 1529 int _fpu_cmp = 0; 1530 uint32_t _cf = 0; 1531 int _df = 1; 1532 uint32_t _flag_k = FK_NONE; 1533 uint32_t _flag_a = 0, _flag_b = 0; 1534 uint32_t _itail_tgt = 0; 1535 RECOMP_REGS_LOCALS 1536 RECOMP_ENTER(0x25146403u); 1537 1538 goto L_25146403; 1539 L_251380C4: 1540 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 1541 L_25146403: 1542 eax = 0x25166900u; /* 0x25146403: mov eax, 0x25166900 */ 1543 L_25146408: 1544 RECOMP_BACKEDGE(); 1545 goto L_251380C4; /* 0x25146408: jmp 0x251380c4 */ 1546 { RECOMP_REGS_OUT(); return; } /* end of function */ 1547 _ljump: 1548 switch (_itail_tgt) { 1549 case 0x251380C4u: goto L_251380C4; 1550 case 0x25146403u: goto L_25146403; 1551 case 0x25146408u: goto L_25146408; 1552 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1553 } 1554 RECOMP_REGS_OUT(); 1555 } 1556 1557 void sub_25146410(void) { 1558 int _fpu_cmp = 0; 1559 uint32_t _cf = 0; 1560 int _df = 1; 1561 uint32_t _flag_k = FK_NONE; 1562 uint32_t _flag_a = 0, _flag_b = 0; 1563 uint32_t _itail_tgt = 0; 1564 RECOMP_REGS_LOCALS 1565 RECOMP_ENTER(0x25146410u); 1566 1567 L_25146410: 1568 ecx = MEM32(ebp + (-0x10)); /* 0x25146410: mov ecx, dword ptr [ebp - 0x10] */ 1569 goto L_2500B5A0; /* 0x25146413: jmp 0x2500b5a0 */ 1570 { RECOMP_REGS_OUT(); return; } /* end of function */ 1571 L_2500B5A0: RECOMP_ITAIL(0x2500B5A0u); { RECOMP_REGS_OUT(); return; } 1572 RECOMP_REGS_OUT(); 1573 } 1574 1575 void sub_25146418(void) { 1576 int _fpu_cmp = 0; 1577 uint32_t _cf = 0; 1578 int _df = 1; 1579 uint32_t _flag_k = FK_NONE; 1580 uint32_t _flag_a = 0, _flag_b = 0; 1581 uint32_t _itail_tgt = 0; 1582 RECOMP_REGS_LOCALS 1583 RECOMP_ENTER(0x25146418u); 1584 1585 goto L_25146418; 1586 L_251380C4: 1587 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 1588 L_25146418: 1589 eax = 0x25166930u; /* 0x25146418: mov eax, 0x25166930 */ 1590 L_2514641D: 1591 RECOMP_BACKEDGE(); 1592 goto L_251380C4; /* 0x2514641D: jmp 0x251380c4 */ 1593 { RECOMP_REGS_OUT(); return; } /* end of function */ 1594 _ljump: 1595 switch (_itail_tgt) { 1596 case 0x251380C4u: goto L_251380C4; 1597 case 0x25146418u: goto L_25146418; 1598 case 0x2514641Du: goto L_2514641D; 1599 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1600 } 1601 RECOMP_REGS_OUT(); 1602 } 1603 1604 void sub_25146430(void) { 1605 int _fpu_cmp = 0; 1606 uint32_t _cf = 0; 1607 int _df = 1; 1608 uint32_t _flag_k = FK_NONE; 1609 uint32_t _flag_a = 0, _flag_b = 0; 1610 uint32_t _itail_tgt = 0; 1611 RECOMP_REGS_LOCALS 1612 RECOMP_ENTER(0x25146430u); 1613 1614 L_25146430: 1615 eax = MEM32(ebp + (-0x10)); /* 0x25146430: mov eax, dword ptr [ebp - 0x10] */ 1616 PUSH32(esp, eax); /* 0x25146433: push eax */ 1617 RECOMP_ICALL(0x25137EECu); /* 0x25146434: call 0x25137eec */ /* not lifted */ 1618 RECOMP_FLAGS_IN(); 1619 ecx = POP32_VAL(esp); /* 0x25146439: pop ecx */ 1620 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2514643A: ret */ 1621 RECOMP_REGS_OUT(); 1622 } 1623 1624 void sub_2514643B(void) { 1625 int _fpu_cmp = 0; 1626 uint32_t _cf = 0; 1627 int _df = 1; 1628 uint32_t _flag_k = FK_NONE; 1629 uint32_t _flag_a = 0, _flag_b = 0; 1630 uint32_t _itail_tgt = 0; 1631 RECOMP_REGS_LOCALS 1632 RECOMP_ENTER(0x2514643Bu); 1633 1634 goto L_2514643B; 1635 L_251380C4: 1636 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 1637 L_2514643B: 1638 eax = 0x25166958u; /* 0x2514643B: mov eax, 0x25166958 */ 1639 L_25146440: 1640 RECOMP_BACKEDGE(); 1641 goto L_251380C4; /* 0x25146440: jmp 0x251380c4 */ 1642 { RECOMP_REGS_OUT(); return; } /* end of function */ 1643 _ljump: 1644 switch (_itail_tgt) { 1645 case 0x251380C4u: goto L_251380C4; 1646 case 0x2514643Bu: goto L_2514643B; 1647 case 0x25146440u: goto L_25146440; 1648 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1649 } 1650 RECOMP_REGS_OUT(); 1651 } 1652 1653 void sub_25146450(void) { 1654 int _fpu_cmp = 0; 1655 uint32_t _cf = 0; 1656 int _df = 1; 1657 uint32_t _flag_k = FK_NONE; 1658 uint32_t _flag_a = 0, _flag_b = 0; 1659 uint32_t _itail_tgt = 0; 1660 RECOMP_REGS_LOCALS 1661 RECOMP_ENTER(0x25146450u); 1662 1663 goto L_25146450; 1664 L_250DB0B0: 1665 PUSH32(esp, ebp); /* 0x250DB0B0: push ebp */ 1666 ebp = esp; /* 0x250DB0B1: mov ebp, esp */ 1667 PUSH32(esp, 0xFFFFFFFFu); /* 0x250DB0B3: push -1 */ 1668 PUSH32(esp, 0x2514AD21u); /* 0x250DB0B5: push 0x2514ad21 */ 1669 eax = MEM32(FS_BASE + (0)); /* 0x250DB0BA: mov eax, dword ptr fs:[0] */ 1670 PUSH32(esp, eax); /* 0x250DB0C0: push eax */ 1671 MEM32(FS_BASE + (0)) = esp; /* 0x250DB0C1: mov dword ptr fs:[0], esp */ 1672 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1673 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1674 esp = esp - 0x14u; /* 0x250DB0C8: sub esp, 0x14 */ 1675 _flag_k = FK_CMP; 1676 PUSH32(esp, ebx); /* 0x250DB0CB: push ebx */ 1677 PUSH32(esp, esi); /* 0x250DB0CC: push esi */ 1678 PUSH32(esp, edi); /* 0x250DB0CD: push edi */ 1679 edi = ecx; /* 0x250DB0CE: mov edi, ecx */ 1680 esi = edi + 0x150; /* 0x250DB0D0: lea esi, [edi + 0x150] */ 1681 MEM32(ebp + (-0x18)) = edi; /* 0x250DB0D6: mov dword ptr [ebp - 0x18], edi */ 1682 MEM32(edi) = 0x25158310u; /* 0x250DB0D9: mov dword ptr [edi], 0x25158310 */ 1683 MEM32(edi + 0x8) = 0x25158300u; /* 0x250DB0DF: mov dword ptr [edi + 8], 0x25158300 */ 1684 MEM32(edi + 0x20) = 0x251582F0u; /* 0x250DB0E6: mov dword ptr [edi + 0x20], 0x251582f0 */ 1685 MEM32(edi + 0x38) = 0x251582E0u; /* 0x250DB0ED: mov dword ptr [edi + 0x38], 0x251582e0 */ 1686 MEM32(edi + 0x50) = 0x251582D0u; /* 0x250DB0F4: mov dword ptr [edi + 0x50], 0x251582d0 */ 1687 MEM32(edi + 0x138) = 0x251582C0u; /* 0x250DB0FB: mov dword ptr [edi + 0x138], 0x251582c0 */ 1688 MEM32(esi) = 0x251582B0u; /* 0x250DB105: mov dword ptr [esi], 0x251582b0 */ 1689 ecx = MEM32(edi + 0x168); /* 0x250DB10B: mov ecx, dword ptr [edi + 0x168] */ 1690 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1691 ebx = 0; /* 0x250DB111: xor ebx, ebx */ 1692 _cf = 0; 1693 _flag_k = FK_TEST; 1694 /* cmp ecx, ebx */ /* 0x250DB113: cmp ecx, ebx */ 1695 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 1696 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1697 _flag_k = FK_CMP; 1698 MEM32(ebp + (-0x4)) = 3; /* 0x250DB115: mov dword ptr [ebp - 4], 3 */ 1699 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB123; /* 0x250DB11C: je 0x250db123 */ 1700 L_250DB11E: 1701 RECOMP_ICALL(0x250E6370u); /* 0x250DB11E: call 0x250e6370 */ /* not lifted */ 1702 RECOMP_FLAGS_IN(); 1703 L_250DB123: 1704 eax = MEM32(edi + 0x1BC); /* 0x250DB123: mov eax, dword ptr [edi + 0x1bc] */ 1705 PUSH32(esp, eax); /* 0x250DB129: push eax */ 1706 MEM32(ebp + (-0x14)) = eax; /* 0x250DB12A: mov dword ptr [ebp - 0x14], eax */ 1707 RECOMP_ICALL(0x25137EECu); /* 0x250DB12D: call 0x25137eec */ /* not lifted */ 1708 RECOMP_FLAGS_IN(); 1709 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1710 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1711 esp = esp + 4; /* 0x250DB132: add esp, 4 */ 1712 _flag_k = FK_ADD; 1713 eax = edi; /* 0x250DB135: mov eax, edi */ 1714 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 1715 _cf = (eax) != 0; 1716 eax = (uint32_t)(-(int32_t)eax); /* 0x250DB137: neg eax */ 1717 _flag_k = FK_CMP; 1718 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x250DB139: sbb eax, eax */ 1719 eax = _sc ? 0xFFFFFFFFu : 0; 1720 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1721 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1722 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1723 eax = eax & esi; /* 0x250DB13B: and eax, esi */ 1724 _cf = 0; 1725 _flag_k = FK_TEST; 1726 MEM32(edi + 0x1BC) = ebx; /* 0x250DB13D: mov dword ptr [edi + 0x1bc], ebx */ 1727 MEM32(edi + 0x1C0) = ebx; /* 0x250DB143: mov dword ptr [edi + 0x1c0], ebx */ 1728 MEM32(edi + 0x1C4) = ebx; /* 0x250DB149: mov dword ptr [edi + 0x1c4], ebx */ 1729 esi = eax + 0x4; /* 0x250DB14F: lea esi, [eax + 4] */ 1730 MEM32(eax) = 0x25158364u; /* 0x250DB152: mov dword ptr [eax], 0x25158364 */ 1731 eax = MEM32(esi + 0x4); /* 0x250DB158: mov eax, dword ptr [esi + 4] */ 1732 /* cmp MEM32(esi + 0x10), ebx */ /* 0x250DB15B: cmp dword ptr [esi + 0x10], ebx */ 1733 _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(ebx); 1734 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1735 _flag_k = FK_CMP; 1736 MEM32(ebp + (-0x10)) = eax; /* 0x250DB15E: mov dword ptr [ebp - 0x10], eax */ 1737 eax = MEM32(eax); /* 0x250DB161: mov eax, dword ptr [eax] */ 1738 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x250DB163: mov byte ptr [ebp - 4], 1 */ 1739 MEM32(ebp + (-0x14)) = eax; /* 0x250DB167: mov dword ptr [ebp - 0x14], eax */ 1740 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB16A: je 0x250db1be */ 1741 L_250DB16C: 1742 eax = ebp + (-0x1C); /* 0x250DB16C: lea eax, [ebp - 0x1c] */ 1743 PUSH32(esp, eax); /* 0x250DB16F: push eax */ 1744 ecx = esi; /* 0x250DB170: mov ecx, esi */ 1745 RECOMP_ICALL(0x25085270u); /* 0x250DB172: call 0x25085270 */ /* not lifted */ 1746 RECOMP_FLAGS_IN(); 1747 ecx = eax; /* 0x250DB177: mov ecx, eax */ 1748 edx = MEM32(ecx); /* 0x250DB179: mov edx, dword ptr [ecx] */ 1749 eax = MEM32(ebp + (-0x14)); /* 0x250DB17B: mov eax, dword ptr [ebp - 0x14] */ 1750 /* cmp eax, edx */ /* 0x250DB17E: cmp eax, edx */ 1751 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1752 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1753 _flag_k = FK_CMP; 1754 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x250DB180: setne cl */ 1755 /* cmp LO8(ecx), LO8(ebx) */ /* 0x250DB183: cmp cl, bl */ 1756 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1757 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1758 _flag_k = FK_NARROW(FK_CMP, 24); 1759 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB185: jne 0x250db1be */ 1760 L_250DB187: 1761 ecx = MEM32(esi + 0x4); /* 0x250DB187: mov ecx, dword ptr [esi + 4] */ 1762 /* cmp MEM32(ebp + (-0x10)), ecx */ /* 0x250DB18A: cmp dword ptr [ebp - 0x10], ecx */ 1763 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ecx); 1764 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1765 _flag_k = FK_CMP; 1766 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB18D: jne 0x250db1be */ 1767 L_250DB18F: 1768 edx = MEM32(ecx + 0x4); /* 0x250DB18F: mov edx, dword ptr [ecx + 4] */ 1769 PUSH32(esp, edx); /* 0x250DB192: push edx */ 1770 ecx = esi; /* 0x250DB193: mov ecx, esi */ 1771 RECOMP_ICALL(0x25006C00u); /* 0x250DB195: call 0x25006c00 */ /* not lifted */ 1772 RECOMP_FLAGS_IN(); 1773 eax = MEM32(esi + 0x4); /* 0x250DB19A: mov eax, dword ptr [esi + 4] */ 1774 ecx = MEM32(esi + 0x8); /* 0x250DB19D: mov ecx, dword ptr [esi + 8] */ 1775 MEM32(eax + 0x4) = ecx; /* 0x250DB1A0: mov dword ptr [eax + 4], ecx */ 1776 eax = MEM32(esi + 0x4); /* 0x250DB1A3: mov eax, dword ptr [esi + 4] */ 1777 MEM32(esi + 0x10) = ebx; /* 0x250DB1A6: mov dword ptr [esi + 0x10], ebx */ 1778 MEM32(eax) = eax; /* 0x250DB1A9: mov dword ptr [eax], eax */ 1779 eax = MEM32(esi + 0x4); /* 0x250DB1AB: mov eax, dword ptr [esi + 4] */ 1780 edx = ebp + (-0x1C); /* 0x250DB1AE: lea edx, [ebp - 0x1c] */ 1781 PUSH32(esp, edx); /* 0x250DB1B1: push edx */ 1782 ecx = esi; /* 0x250DB1B2: mov ecx, esi */ 1783 MEM32(eax + 0x8) = eax; /* 0x250DB1B4: mov dword ptr [eax + 8], eax */ 1784 RECOMP_ICALL(0x25085270u); /* 0x250DB1B7: call 0x25085270 */ /* not lifted */ 1785 RECOMP_FLAGS_IN(); 1786 goto L_250DB1E6; /* 0x250DB1BC: jmp 0x250db1e6 */ 1787 L_250DB1BE: 1788 /* cmp eax, MEM32(ebp + (-0x10)) */ /* 0x250DB1BE: cmp eax, dword ptr [ebp - 0x10] */ 1789 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 1790 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1791 _flag_k = FK_CMP; 1792 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB1E6; /* 0x250DB1C1: je 0x250db1e6 */ 1793 L_250DB1C3: 1794 PUSH32(esp, ebx); /* 0x250DB1C3: push ebx */ 1795 eax = ebp + (-0x1C); /* 0x250DB1C4: lea eax, [ebp - 0x1c] */ 1796 PUSH32(esp, eax); /* 0x250DB1C7: push eax */ 1797 ecx = ebp + (-0x14); /* 0x250DB1C8: lea ecx, [ebp - 0x14] */ 1798 RECOMP_ICALL(0x250076D0u); /* 0x250DB1CB: call 0x250076d0 */ /* not lifted */ 1799 RECOMP_FLAGS_IN(); 1800 ecx = MEM32(eax); /* 0x250DB1D0: mov ecx, dword ptr [eax] */ 1801 PUSH32(esp, ecx); /* 0x250DB1D2: push ecx */ 1802 edx = ebp + (-0x20); /* 0x250DB1D3: lea edx, [ebp - 0x20] */ 1803 PUSH32(esp, edx); /* 0x250DB1D6: push edx */ 1804 ecx = esi; /* 0x250DB1D7: mov ecx, esi */ 1805 RECOMP_ICALL(0x25006380u); /* 0x250DB1D9: call 0x25006380 */ /* not lifted */ 1806 RECOMP_FLAGS_IN(); 1807 eax = MEM32(ebp + (-0x10)); /* 0x250DB1DE: mov eax, dword ptr [ebp - 0x10] */ 1808 /* cmp MEM32(ebp + (-0x14)), eax */ /* 0x250DB1E1: cmp dword ptr [ebp - 0x14], eax */ 1809 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(eax); 1810 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1811 _flag_k = FK_CMP; 1812 RECOMP_BACKEDGE(); 1813 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1C3; /* 0x250DB1E4: jne 0x250db1c3 */ 1814 L_250DB1E6: 1815 eax = MEM32(esi + 0x4); /* 0x250DB1E6: mov eax, dword ptr [esi + 4] */ 1816 PUSH32(esp, eax); /* 0x250DB1E9: push eax */ 1817 RECOMP_ICALL(0x25137EECu); /* 0x250DB1EA: call 0x25137eec */ /* not lifted */ 1818 RECOMP_FLAGS_IN(); 1819 eax = MEM32(esi + 0x8); /* 0x250DB1EF: mov eax, dword ptr [esi + 8] */ 1820 PUSH32(esp, eax); /* 0x250DB1F2: push eax */ 1821 MEM32(esi + 0x4) = ebx; /* 0x250DB1F3: mov dword ptr [esi + 4], ebx */ 1822 MEM32(esi + 0x10) = ebx; /* 0x250DB1F6: mov dword ptr [esi + 0x10], ebx */ 1823 RECOMP_ICALL(0x25137EECu); /* 0x250DB1F9: call 0x25137eec */ /* not lifted */ 1824 RECOMP_FLAGS_IN(); 1825 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1826 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1827 esp = esp + 8; /* 0x250DB1FE: add esp, 8 */ 1828 _flag_k = FK_ADD; 1829 eax = edi; /* 0x250DB201: mov eax, edi */ 1830 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 1831 _cf = (eax) != 0; 1832 eax = (uint32_t)(-(int32_t)eax); /* 0x250DB203: neg eax */ 1833 _flag_k = FK_CMP; 1834 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x250DB205: sbb eax, eax */ 1835 eax = _sc ? 0xFFFFFFFFu : 0; 1836 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1837 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1838 MEM32(esi + 0x8) = ebx; /* 0x250DB207: mov dword ptr [esi + 8], ebx */ 1839 ecx = edi + 0x138; /* 0x250DB20A: lea ecx, [edi + 0x138] */ 1840 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1841 eax = eax & ecx; /* 0x250DB210: and eax, ecx */ 1842 _cf = 0; 1843 _flag_k = FK_TEST; 1844 esi = eax + 0x4; /* 0x250DB212: lea esi, [eax + 4] */ 1845 MEM32(eax) = 0x25158374u; /* 0x250DB215: mov dword ptr [eax], 0x25158374 */ 1846 eax = MEM32(esi + 0x4); /* 0x250DB21B: mov eax, dword ptr [esi + 4] */ 1847 /* cmp MEM32(esi + 0x10), ebx */ /* 0x250DB21E: cmp dword ptr [esi + 0x10], ebx */ 1848 _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(ebx); 1849 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1850 _flag_k = FK_CMP; 1851 MEM32(ebp + (-0x14)) = eax; /* 0x250DB221: mov dword ptr [ebp - 0x14], eax */ 1852 eax = MEM32(eax); /* 0x250DB224: mov eax, dword ptr [eax] */ 1853 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x250DB226: mov byte ptr [ebp - 4], bl */ 1854 MEM32(ebp + (-0x10)) = eax; /* 0x250DB229: mov dword ptr [ebp - 0x10], eax */ 1855 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB22C: je 0x250db280 */ 1856 L_250DB22E: 1857 ecx = ebp + (-0x20); /* 0x250DB22E: lea ecx, [ebp - 0x20] */ 1858 PUSH32(esp, ecx); /* 0x250DB231: push ecx */ 1859 ecx = esi; /* 0x250DB232: mov ecx, esi */ 1860 RECOMP_ICALL(0x25085270u); /* 0x250DB234: call 0x25085270 */ /* not lifted */ 1861 RECOMP_FLAGS_IN(); 1862 edx = eax; /* 0x250DB239: mov edx, eax */ 1863 ecx = MEM32(edx); /* 0x250DB23B: mov ecx, dword ptr [edx] */ 1864 eax = MEM32(ebp + (-0x10)); /* 0x250DB23D: mov eax, dword ptr [ebp - 0x10] */ 1865 /* cmp eax, ecx */ /* 0x250DB240: cmp eax, ecx */ 1866 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1867 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1868 _flag_k = FK_CMP; 1869 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x250DB242: setne cl */ 1870 /* cmp LO8(ecx), LO8(ebx) */ /* 0x250DB245: cmp cl, bl */ 1871 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1872 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1873 _flag_k = FK_NARROW(FK_CMP, 24); 1874 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB247: jne 0x250db280 */ 1875 L_250DB249: 1876 ecx = MEM32(esi + 0x4); /* 0x250DB249: mov ecx, dword ptr [esi + 4] */ 1877 /* cmp MEM32(ebp + (-0x14)), ecx */ /* 0x250DB24C: cmp dword ptr [ebp - 0x14], ecx */ 1878 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(ecx); 1879 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1880 _flag_k = FK_CMP; 1881 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB24F: jne 0x250db280 */ 1882 L_250DB251: 1883 eax = MEM32(ecx + 0x4); /* 0x250DB251: mov eax, dword ptr [ecx + 4] */ 1884 PUSH32(esp, eax); /* 0x250DB254: push eax */ 1885 ecx = esi; /* 0x250DB255: mov ecx, esi */ 1886 RECOMP_ICALL(0x250068F0u); /* 0x250DB257: call 0x250068f0 */ /* not lifted */ 1887 RECOMP_FLAGS_IN(); 1888 ecx = MEM32(esi + 0x4); /* 0x250DB25C: mov ecx, dword ptr [esi + 4] */ 1889 edx = MEM32(esi + 0x8); /* 0x250DB25F: mov edx, dword ptr [esi + 8] */ 1890 MEM32(ecx + 0x4) = edx; /* 0x250DB262: mov dword ptr [ecx + 4], edx */ 1891 eax = MEM32(esi + 0x4); /* 0x250DB265: mov eax, dword ptr [esi + 4] */ 1892 MEM32(esi + 0x10) = ebx; /* 0x250DB268: mov dword ptr [esi + 0x10], ebx */ 1893 MEM32(eax) = eax; /* 0x250DB26B: mov dword ptr [eax], eax */ 1894 eax = MEM32(esi + 0x4); /* 0x250DB26D: mov eax, dword ptr [esi + 4] */ 1895 MEM32(eax + 0x8) = eax; /* 0x250DB270: mov dword ptr [eax + 8], eax */ 1896 eax = ebp + (-0x20); /* 0x250DB273: lea eax, [ebp - 0x20] */ 1897 PUSH32(esp, eax); /* 0x250DB276: push eax */ 1898 ecx = esi; /* 0x250DB277: mov ecx, esi */ 1899 RECOMP_ICALL(0x25085270u); /* 0x250DB279: call 0x25085270 */ /* not lifted */ 1900 RECOMP_FLAGS_IN(); 1901 goto L_250DB2A8; /* 0x250DB27E: jmp 0x250db2a8 */ 1902 L_250DB280: 1903 /* cmp eax, MEM32(ebp + (-0x14)) */ /* 0x250DB280: cmp eax, dword ptr [ebp - 0x14] */ 1904 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 1905 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1906 _flag_k = FK_CMP; 1907 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB2A8; /* 0x250DB283: je 0x250db2a8 */ 1908 L_250DB285: 1909 PUSH32(esp, ebx); /* 0x250DB285: push ebx */ 1910 ecx = ebp + (-0x20); /* 0x250DB286: lea ecx, [ebp - 0x20] */ 1911 PUSH32(esp, ecx); /* 0x250DB289: push ecx */ 1912 ecx = ebp + (-0x10); /* 0x250DB28A: lea ecx, [ebp - 0x10] */ 1913 RECOMP_ICALL(0x250076D0u); /* 0x250DB28D: call 0x250076d0 */ /* not lifted */ 1914 RECOMP_FLAGS_IN(); 1915 edx = MEM32(eax); /* 0x250DB292: mov edx, dword ptr [eax] */ 1916 PUSH32(esp, edx); /* 0x250DB294: push edx */ 1917 eax = ebp + (-0x1C); /* 0x250DB295: lea eax, [ebp - 0x1c] */ 1918 PUSH32(esp, eax); /* 0x250DB298: push eax */ 1919 ecx = esi; /* 0x250DB299: mov ecx, esi */ 1920 RECOMP_ICALL(0x25006380u); /* 0x250DB29B: call 0x25006380 */ /* not lifted */ 1921 RECOMP_FLAGS_IN(); 1922 ecx = MEM32(ebp + (-0x14)); /* 0x250DB2A0: mov ecx, dword ptr [ebp - 0x14] */ 1923 /* cmp MEM32(ebp + (-0x10)), ecx */ /* 0x250DB2A3: cmp dword ptr [ebp - 0x10], ecx */ 1924 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ecx); 1925 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1926 _flag_k = FK_CMP; 1927 RECOMP_BACKEDGE(); 1928 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB285; /* 0x250DB2A6: jne 0x250db285 */ 1929 L_250DB2A8: 1930 eax = MEM32(esi + 0x4); /* 0x250DB2A8: mov eax, dword ptr [esi + 4] */ 1931 PUSH32(esp, eax); /* 0x250DB2AB: push eax */ 1932 RECOMP_ICALL(0x25137EECu); /* 0x250DB2AC: call 0x25137eec */ /* not lifted */ 1933 RECOMP_FLAGS_IN(); 1934 eax = MEM32(esi + 0x8); /* 0x250DB2B1: mov eax, dword ptr [esi + 8] */ 1935 PUSH32(esp, eax); /* 0x250DB2B4: push eax */ 1936 MEM32(esi + 0x4) = ebx; /* 0x250DB2B5: mov dword ptr [esi + 4], ebx */ 1937 MEM32(esi + 0x10) = ebx; /* 0x250DB2B8: mov dword ptr [esi + 0x10], ebx */ 1938 RECOMP_ICALL(0x25137EECu); /* 0x250DB2BB: call 0x25137eec */ /* not lifted */ 1939 RECOMP_FLAGS_IN(); 1940 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1941 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1942 esp = esp + 8; /* 0x250DB2C0: add esp, 8 */ 1943 _flag_k = FK_ADD; 1944 ecx = edi; /* 0x250DB2C3: mov ecx, edi */ 1945 MEM32(esi + 0x8) = ebx; /* 0x250DB2C5: mov dword ptr [esi + 8], ebx */ 1946 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x250DB2C8: mov dword ptr [ebp - 4], 0xffffffff */ 1947 RECOMP_ICALL(0x250E19E0u); /* 0x250DB2CF: call 0x250e19e0 */ /* not lifted */ 1948 RECOMP_FLAGS_IN(); 1949 ecx = MEM32(ebp + (-0xC)); /* 0x250DB2D4: mov ecx, dword ptr [ebp - 0xc] */ 1950 edi = POP32_VAL(esp); /* 0x250DB2D7: pop edi */ 1951 esi = POP32_VAL(esp); /* 0x250DB2D8: pop esi */ 1952 ebx = POP32_VAL(esp); /* 0x250DB2D9: pop ebx */ 1953 MEM32(FS_BASE + (0)) = ecx; /* 0x250DB2DA: mov dword ptr fs:[0], ecx */ 1954 esp = ebp; /* 0x250DB2E1: mov esp, ebp */ 1955 ebp = POP32_VAL(esp); /* 0x250DB2E3: pop ebp */ 1956 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250DB2E4: ret */ 1957 L_25146450: 1958 ecx = MEM32(ebp + (-0x20)); /* 0x25146450: mov ecx, dword ptr [ebp - 0x20] */ 1959 RECOMP_BACKEDGE(); 1960 goto L_250DB0B0; /* 0x25146453: jmp 0x250db0b0 */ 1961 { RECOMP_REGS_OUT(); return; } /* end of function */ 1962 RECOMP_REGS_OUT(); 1963 } 1964 1965 void sub_25146458(void) { 1966 int _fpu_cmp = 0; 1967 uint32_t _cf = 0; 1968 int _df = 1; 1969 uint32_t _flag_k = FK_NONE; 1970 uint32_t _flag_a = 0, _flag_b = 0; 1971 uint32_t _itail_tgt = 0; 1972 RECOMP_REGS_LOCALS 1973 RECOMP_ENTER(0x25146458u); 1974 1975 goto L_25146458; 1976 L_251380C4: 1977 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 1978 L_25146458: 1979 eax = 0x25166980u; /* 0x25146458: mov eax, 0x25166980 */ 1980 L_2514645D: 1981 RECOMP_BACKEDGE(); 1982 goto L_251380C4; /* 0x2514645D: jmp 0x251380c4 */ 1983 { RECOMP_REGS_OUT(); return; } /* end of function */ 1984 _ljump: 1985 switch (_itail_tgt) { 1986 case 0x251380C4u: goto L_251380C4; 1987 case 0x25146458u: goto L_25146458; 1988 case 0x2514645Du: goto L_2514645D; 1989 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1990 } 1991 RECOMP_REGS_OUT(); 1992 } 1993 1994 void sub_25146470(void) { 1995 int _fpu_cmp = 0; 1996 uint32_t _cf = 0; 1997 int _df = 1; 1998 uint32_t _flag_k = FK_NONE; 1999 uint32_t _flag_a = 0, _flag_b = 0; 2000 uint32_t _itail_tgt = 0; 2001 RECOMP_REGS_LOCALS 2002 RECOMP_ENTER(0x25146470u); 2003 2004 goto L_25146470; 2005 L_250DB0B0: 2006 PUSH32(esp, ebp); /* 0x250DB0B0: push ebp */ 2007 ebp = esp; /* 0x250DB0B1: mov ebp, esp */ 2008 PUSH32(esp, 0xFFFFFFFFu); /* 0x250DB0B3: push -1 */ 2009 PUSH32(esp, 0x2514AD21u); /* 0x250DB0B5: push 0x2514ad21 */ 2010 eax = MEM32(FS_BASE + (0)); /* 0x250DB0BA: mov eax, dword ptr fs:[0] */ 2011 PUSH32(esp, eax); /* 0x250DB0C0: push eax */ 2012 MEM32(FS_BASE + (0)) = esp; /* 0x250DB0C1: mov dword ptr fs:[0], esp */ 2013 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2014 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2015 esp = esp - 0x14u; /* 0x250DB0C8: sub esp, 0x14 */ 2016 _flag_k = FK_CMP; 2017 PUSH32(esp, ebx); /* 0x250DB0CB: push ebx */ 2018 PUSH32(esp, esi); /* 0x250DB0CC: push esi */ 2019 PUSH32(esp, edi); /* 0x250DB0CD: push edi */ 2020 edi = ecx; /* 0x250DB0CE: mov edi, ecx */ 2021 esi = edi + 0x150; /* 0x250DB0D0: lea esi, [edi + 0x150] */ 2022 MEM32(ebp + (-0x18)) = edi; /* 0x250DB0D6: mov dword ptr [ebp - 0x18], edi */ 2023 MEM32(edi) = 0x25158310u; /* 0x250DB0D9: mov dword ptr [edi], 0x25158310 */ 2024 MEM32(edi + 0x8) = 0x25158300u; /* 0x250DB0DF: mov dword ptr [edi + 8], 0x25158300 */ 2025 MEM32(edi + 0x20) = 0x251582F0u; /* 0x250DB0E6: mov dword ptr [edi + 0x20], 0x251582f0 */ 2026 MEM32(edi + 0x38) = 0x251582E0u; /* 0x250DB0ED: mov dword ptr [edi + 0x38], 0x251582e0 */ 2027 MEM32(edi + 0x50) = 0x251582D0u; /* 0x250DB0F4: mov dword ptr [edi + 0x50], 0x251582d0 */ 2028 MEM32(edi + 0x138) = 0x251582C0u; /* 0x250DB0FB: mov dword ptr [edi + 0x138], 0x251582c0 */ 2029 MEM32(esi) = 0x251582B0u; /* 0x250DB105: mov dword ptr [esi], 0x251582b0 */ 2030 ecx = MEM32(edi + 0x168); /* 0x250DB10B: mov ecx, dword ptr [edi + 0x168] */ 2031 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2032 ebx = 0; /* 0x250DB111: xor ebx, ebx */ 2033 _cf = 0; 2034 _flag_k = FK_TEST; 2035 /* cmp ecx, ebx */ /* 0x250DB113: cmp ecx, ebx */ 2036 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 2037 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2038 _flag_k = FK_CMP; 2039 MEM32(ebp + (-0x4)) = 3; /* 0x250DB115: mov dword ptr [ebp - 4], 3 */ 2040 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB123; /* 0x250DB11C: je 0x250db123 */ 2041 L_250DB11E: 2042 RECOMP_ICALL(0x250E6370u); /* 0x250DB11E: call 0x250e6370 */ /* not lifted */ 2043 RECOMP_FLAGS_IN(); 2044 L_250DB123: 2045 eax = MEM32(edi + 0x1BC); /* 0x250DB123: mov eax, dword ptr [edi + 0x1bc] */ 2046 PUSH32(esp, eax); /* 0x250DB129: push eax */ 2047 MEM32(ebp + (-0x14)) = eax; /* 0x250DB12A: mov dword ptr [ebp - 0x14], eax */ 2048 RECOMP_ICALL(0x25137EECu); /* 0x250DB12D: call 0x25137eec */ /* not lifted */ 2049 RECOMP_FLAGS_IN(); 2050 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2051 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2052 esp = esp + 4; /* 0x250DB132: add esp, 4 */ 2053 _flag_k = FK_ADD; 2054 eax = edi; /* 0x250DB135: mov eax, edi */ 2055 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 2056 _cf = (eax) != 0; 2057 eax = (uint32_t)(-(int32_t)eax); /* 0x250DB137: neg eax */ 2058 _flag_k = FK_CMP; 2059 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x250DB139: sbb eax, eax */ 2060 eax = _sc ? 0xFFFFFFFFu : 0; 2061 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2062 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2063 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 2064 eax = eax & esi; /* 0x250DB13B: and eax, esi */ 2065 _cf = 0; 2066 _flag_k = FK_TEST; 2067 MEM32(edi + 0x1BC) = ebx; /* 0x250DB13D: mov dword ptr [edi + 0x1bc], ebx */ 2068 MEM32(edi + 0x1C0) = ebx; /* 0x250DB143: mov dword ptr [edi + 0x1c0], ebx */ 2069 MEM32(edi + 0x1C4) = ebx; /* 0x250DB149: mov dword ptr [edi + 0x1c4], ebx */ 2070 esi = eax + 0x4; /* 0x250DB14F: lea esi, [eax + 4] */ 2071 MEM32(eax) = 0x25158364u; /* 0x250DB152: mov dword ptr [eax], 0x25158364 */ 2072 eax = MEM32(esi + 0x4); /* 0x250DB158: mov eax, dword ptr [esi + 4] */ 2073 /* cmp MEM32(esi + 0x10), ebx */ /* 0x250DB15B: cmp dword ptr [esi + 0x10], ebx */ 2074 _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(ebx); 2075 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2076 _flag_k = FK_CMP; 2077 MEM32(ebp + (-0x10)) = eax; /* 0x250DB15E: mov dword ptr [ebp - 0x10], eax */ 2078 eax = MEM32(eax); /* 0x250DB161: mov eax, dword ptr [eax] */ 2079 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x250DB163: mov byte ptr [ebp - 4], 1 */ 2080 MEM32(ebp + (-0x14)) = eax; /* 0x250DB167: mov dword ptr [ebp - 0x14], eax */ 2081 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB16A: je 0x250db1be */ 2082 L_250DB16C: 2083 eax = ebp + (-0x1C); /* 0x250DB16C: lea eax, [ebp - 0x1c] */ 2084 PUSH32(esp, eax); /* 0x250DB16F: push eax */ 2085 ecx = esi; /* 0x250DB170: mov ecx, esi */ 2086 RECOMP_ICALL(0x25085270u); /* 0x250DB172: call 0x25085270 */ /* not lifted */ 2087 RECOMP_FLAGS_IN(); 2088 ecx = eax; /* 0x250DB177: mov ecx, eax */ 2089 edx = MEM32(ecx); /* 0x250DB179: mov edx, dword ptr [ecx] */ 2090 eax = MEM32(ebp + (-0x14)); /* 0x250DB17B: mov eax, dword ptr [ebp - 0x14] */ 2091 /* cmp eax, edx */ /* 0x250DB17E: cmp eax, edx */ 2092 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2093 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2094 _flag_k = FK_CMP; 2095 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x250DB180: setne cl */ 2096 /* cmp LO8(ecx), LO8(ebx) */ /* 0x250DB183: cmp cl, bl */ 2097 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2098 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2099 _flag_k = FK_NARROW(FK_CMP, 24); 2100 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB185: jne 0x250db1be */ 2101 L_250DB187: 2102 ecx = MEM32(esi + 0x4); /* 0x250DB187: mov ecx, dword ptr [esi + 4] */ 2103 /* cmp MEM32(ebp + (-0x10)), ecx */ /* 0x250DB18A: cmp dword ptr [ebp - 0x10], ecx */ 2104 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ecx); 2105 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2106 _flag_k = FK_CMP; 2107 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB18D: jne 0x250db1be */ 2108 L_250DB18F: 2109 edx = MEM32(ecx + 0x4); /* 0x250DB18F: mov edx, dword ptr [ecx + 4] */ 2110 PUSH32(esp, edx); /* 0x250DB192: push edx */ 2111 ecx = esi; /* 0x250DB193: mov ecx, esi */ 2112 RECOMP_ICALL(0x25006C00u); /* 0x250DB195: call 0x25006c00 */ /* not lifted */ 2113 RECOMP_FLAGS_IN(); 2114 eax = MEM32(esi + 0x4); /* 0x250DB19A: mov eax, dword ptr [esi + 4] */ 2115 ecx = MEM32(esi + 0x8); /* 0x250DB19D: mov ecx, dword ptr [esi + 8] */ 2116 MEM32(eax + 0x4) = ecx; /* 0x250DB1A0: mov dword ptr [eax + 4], ecx */ 2117 eax = MEM32(esi + 0x4); /* 0x250DB1A3: mov eax, dword ptr [esi + 4] */ 2118 MEM32(esi + 0x10) = ebx; /* 0x250DB1A6: mov dword ptr [esi + 0x10], ebx */ 2119 MEM32(eax) = eax; /* 0x250DB1A9: mov dword ptr [eax], eax */ 2120 eax = MEM32(esi + 0x4); /* 0x250DB1AB: mov eax, dword ptr [esi + 4] */ 2121 edx = ebp + (-0x1C); /* 0x250DB1AE: lea edx, [ebp - 0x1c] */ 2122 PUSH32(esp, edx); /* 0x250DB1B1: push edx */ 2123 ecx = esi; /* 0x250DB1B2: mov ecx, esi */ 2124 MEM32(eax + 0x8) = eax; /* 0x250DB1B4: mov dword ptr [eax + 8], eax */ 2125 RECOMP_ICALL(0x25085270u); /* 0x250DB1B7: call 0x25085270 */ /* not lifted */ 2126 RECOMP_FLAGS_IN(); 2127 goto L_250DB1E6; /* 0x250DB1BC: jmp 0x250db1e6 */ 2128 L_250DB1BE: 2129 /* cmp eax, MEM32(ebp + (-0x10)) */ /* 0x250DB1BE: cmp eax, dword ptr [ebp - 0x10] */ 2130 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 2131 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2132 _flag_k = FK_CMP; 2133 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB1E6; /* 0x250DB1C1: je 0x250db1e6 */ 2134 L_250DB1C3: 2135 PUSH32(esp, ebx); /* 0x250DB1C3: push ebx */ 2136 eax = ebp + (-0x1C); /* 0x250DB1C4: lea eax, [ebp - 0x1c] */ 2137 PUSH32(esp, eax); /* 0x250DB1C7: push eax */ 2138 ecx = ebp + (-0x14); /* 0x250DB1C8: lea ecx, [ebp - 0x14] */ 2139 RECOMP_ICALL(0x250076D0u); /* 0x250DB1CB: call 0x250076d0 */ /* not lifted */ 2140 RECOMP_FLAGS_IN(); 2141 ecx = MEM32(eax); /* 0x250DB1D0: mov ecx, dword ptr [eax] */ 2142 PUSH32(esp, ecx); /* 0x250DB1D2: push ecx */ 2143 edx = ebp + (-0x20); /* 0x250DB1D3: lea edx, [ebp - 0x20] */ 2144 PUSH32(esp, edx); /* 0x250DB1D6: push edx */ 2145 ecx = esi; /* 0x250DB1D7: mov ecx, esi */ 2146 RECOMP_ICALL(0x25006380u); /* 0x250DB1D9: call 0x25006380 */ /* not lifted */ 2147 RECOMP_FLAGS_IN(); 2148 eax = MEM32(ebp + (-0x10)); /* 0x250DB1DE: mov eax, dword ptr [ebp - 0x10] */ 2149 /* cmp MEM32(ebp + (-0x14)), eax */ /* 0x250DB1E1: cmp dword ptr [ebp - 0x14], eax */ 2150 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(eax); 2151 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2152 _flag_k = FK_CMP; 2153 RECOMP_BACKEDGE(); 2154 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1C3; /* 0x250DB1E4: jne 0x250db1c3 */ 2155 L_250DB1E6: 2156 eax = MEM32(esi + 0x4); /* 0x250DB1E6: mov eax, dword ptr [esi + 4] */ 2157 PUSH32(esp, eax); /* 0x250DB1E9: push eax */ 2158 RECOMP_ICALL(0x25137EECu); /* 0x250DB1EA: call 0x25137eec */ /* not lifted */ 2159 RECOMP_FLAGS_IN(); 2160 eax = MEM32(esi + 0x8); /* 0x250DB1EF: mov eax, dword ptr [esi + 8] */ 2161 PUSH32(esp, eax); /* 0x250DB1F2: push eax */ 2162 MEM32(esi + 0x4) = ebx; /* 0x250DB1F3: mov dword ptr [esi + 4], ebx */ 2163 MEM32(esi + 0x10) = ebx; /* 0x250DB1F6: mov dword ptr [esi + 0x10], ebx */ 2164 RECOMP_ICALL(0x25137EECu); /* 0x250DB1F9: call 0x25137eec */ /* not lifted */ 2165 RECOMP_FLAGS_IN(); 2166 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2167 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2168 esp = esp + 8; /* 0x250DB1FE: add esp, 8 */ 2169 _flag_k = FK_ADD; 2170 eax = edi; /* 0x250DB201: mov eax, edi */ 2171 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 2172 _cf = (eax) != 0; 2173 eax = (uint32_t)(-(int32_t)eax); /* 0x250DB203: neg eax */ 2174 _flag_k = FK_CMP; 2175 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x250DB205: sbb eax, eax */ 2176 eax = _sc ? 0xFFFFFFFFu : 0; 2177 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2178 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2179 MEM32(esi + 0x8) = ebx; /* 0x250DB207: mov dword ptr [esi + 8], ebx */ 2180 ecx = edi + 0x138; /* 0x250DB20A: lea ecx, [edi + 0x138] */ 2181 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2182 eax = eax & ecx; /* 0x250DB210: and eax, ecx */ 2183 _cf = 0; 2184 _flag_k = FK_TEST; 2185 esi = eax + 0x4; /* 0x250DB212: lea esi, [eax + 4] */ 2186 MEM32(eax) = 0x25158374u; /* 0x250DB215: mov dword ptr [eax], 0x25158374 */ 2187 eax = MEM32(esi + 0x4); /* 0x250DB21B: mov eax, dword ptr [esi + 4] */ 2188 /* cmp MEM32(esi + 0x10), ebx */ /* 0x250DB21E: cmp dword ptr [esi + 0x10], ebx */ 2189 _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(ebx); 2190 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2191 _flag_k = FK_CMP; 2192 MEM32(ebp + (-0x14)) = eax; /* 0x250DB221: mov dword ptr [ebp - 0x14], eax */ 2193 eax = MEM32(eax); /* 0x250DB224: mov eax, dword ptr [eax] */ 2194 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x250DB226: mov byte ptr [ebp - 4], bl */ 2195 MEM32(ebp + (-0x10)) = eax; /* 0x250DB229: mov dword ptr [ebp - 0x10], eax */ 2196 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB22C: je 0x250db280 */ 2197 L_250DB22E: 2198 ecx = ebp + (-0x20); /* 0x250DB22E: lea ecx, [ebp - 0x20] */ 2199 PUSH32(esp, ecx); /* 0x250DB231: push ecx */ 2200 ecx = esi; /* 0x250DB232: mov ecx, esi */ 2201 RECOMP_ICALL(0x25085270u); /* 0x250DB234: call 0x25085270 */ /* not lifted */ 2202 RECOMP_FLAGS_IN(); 2203 edx = eax; /* 0x250DB239: mov edx, eax */ 2204 ecx = MEM32(edx); /* 0x250DB23B: mov ecx, dword ptr [edx] */ 2205 eax = MEM32(ebp + (-0x10)); /* 0x250DB23D: mov eax, dword ptr [ebp - 0x10] */ 2206 /* cmp eax, ecx */ /* 0x250DB240: cmp eax, ecx */ 2207 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2208 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2209 _flag_k = FK_CMP; 2210 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x250DB242: setne cl */ 2211 /* cmp LO8(ecx), LO8(ebx) */ /* 0x250DB245: cmp cl, bl */ 2212 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2213 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2214 _flag_k = FK_NARROW(FK_CMP, 24); 2215 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB247: jne 0x250db280 */ 2216 L_250DB249: 2217 ecx = MEM32(esi + 0x4); /* 0x250DB249: mov ecx, dword ptr [esi + 4] */ 2218 /* cmp MEM32(ebp + (-0x14)), ecx */ /* 0x250DB24C: cmp dword ptr [ebp - 0x14], ecx */ 2219 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(ecx); 2220 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2221 _flag_k = FK_CMP; 2222 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB24F: jne 0x250db280 */ 2223 L_250DB251: 2224 eax = MEM32(ecx + 0x4); /* 0x250DB251: mov eax, dword ptr [ecx + 4] */ 2225 PUSH32(esp, eax); /* 0x250DB254: push eax */ 2226 ecx = esi; /* 0x250DB255: mov ecx, esi */ 2227 RECOMP_ICALL(0x250068F0u); /* 0x250DB257: call 0x250068f0 */ /* not lifted */ 2228 RECOMP_FLAGS_IN(); 2229 ecx = MEM32(esi + 0x4); /* 0x250DB25C: mov ecx, dword ptr [esi + 4] */ 2230 edx = MEM32(esi + 0x8); /* 0x250DB25F: mov edx, dword ptr [esi + 8] */ 2231 MEM32(ecx + 0x4) = edx; /* 0x250DB262: mov dword ptr [ecx + 4], edx */ 2232 eax = MEM32(esi + 0x4); /* 0x250DB265: mov eax, dword ptr [esi + 4] */ 2233 MEM32(esi + 0x10) = ebx; /* 0x250DB268: mov dword ptr [esi + 0x10], ebx */ 2234 MEM32(eax) = eax; /* 0x250DB26B: mov dword ptr [eax], eax */ 2235 eax = MEM32(esi + 0x4); /* 0x250DB26D: mov eax, dword ptr [esi + 4] */ 2236 MEM32(eax + 0x8) = eax; /* 0x250DB270: mov dword ptr [eax + 8], eax */ 2237 eax = ebp + (-0x20); /* 0x250DB273: lea eax, [ebp - 0x20] */ 2238 PUSH32(esp, eax); /* 0x250DB276: push eax */ 2239 ecx = esi; /* 0x250DB277: mov ecx, esi */ 2240 RECOMP_ICALL(0x25085270u); /* 0x250DB279: call 0x25085270 */ /* not lifted */ 2241 RECOMP_FLAGS_IN(); 2242 goto L_250DB2A8; /* 0x250DB27E: jmp 0x250db2a8 */ 2243 L_250DB280: 2244 /* cmp eax, MEM32(ebp + (-0x14)) */ /* 0x250DB280: cmp eax, dword ptr [ebp - 0x14] */ 2245 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 2246 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2247 _flag_k = FK_CMP; 2248 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB2A8; /* 0x250DB283: je 0x250db2a8 */ 2249 L_250DB285: 2250 PUSH32(esp, ebx); /* 0x250DB285: push ebx */ 2251 ecx = ebp + (-0x20); /* 0x250DB286: lea ecx, [ebp - 0x20] */ 2252 PUSH32(esp, ecx); /* 0x250DB289: push ecx */ 2253 ecx = ebp + (-0x10); /* 0x250DB28A: lea ecx, [ebp - 0x10] */ 2254 RECOMP_ICALL(0x250076D0u); /* 0x250DB28D: call 0x250076d0 */ /* not lifted */ 2255 RECOMP_FLAGS_IN(); 2256 edx = MEM32(eax); /* 0x250DB292: mov edx, dword ptr [eax] */ 2257 PUSH32(esp, edx); /* 0x250DB294: push edx */ 2258 eax = ebp + (-0x1C); /* 0x250DB295: lea eax, [ebp - 0x1c] */ 2259 PUSH32(esp, eax); /* 0x250DB298: push eax */ 2260 ecx = esi; /* 0x250DB299: mov ecx, esi */ 2261 RECOMP_ICALL(0x25006380u); /* 0x250DB29B: call 0x25006380 */ /* not lifted */ 2262 RECOMP_FLAGS_IN(); 2263 ecx = MEM32(ebp + (-0x14)); /* 0x250DB2A0: mov ecx, dword ptr [ebp - 0x14] */ 2264 /* cmp MEM32(ebp + (-0x10)), ecx */ /* 0x250DB2A3: cmp dword ptr [ebp - 0x10], ecx */ 2265 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ecx); 2266 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2267 _flag_k = FK_CMP; 2268 RECOMP_BACKEDGE(); 2269 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB285; /* 0x250DB2A6: jne 0x250db285 */ 2270 L_250DB2A8: 2271 eax = MEM32(esi + 0x4); /* 0x250DB2A8: mov eax, dword ptr [esi + 4] */ 2272 PUSH32(esp, eax); /* 0x250DB2AB: push eax */ 2273 RECOMP_ICALL(0x25137EECu); /* 0x250DB2AC: call 0x25137eec */ /* not lifted */ 2274 RECOMP_FLAGS_IN(); 2275 eax = MEM32(esi + 0x8); /* 0x250DB2B1: mov eax, dword ptr [esi + 8] */ 2276 PUSH32(esp, eax); /* 0x250DB2B4: push eax */ 2277 MEM32(esi + 0x4) = ebx; /* 0x250DB2B5: mov dword ptr [esi + 4], ebx */ 2278 MEM32(esi + 0x10) = ebx; /* 0x250DB2B8: mov dword ptr [esi + 0x10], ebx */ 2279 RECOMP_ICALL(0x25137EECu); /* 0x250DB2BB: call 0x25137eec */ /* not lifted */ 2280 RECOMP_FLAGS_IN(); 2281 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2282 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2283 esp = esp + 8; /* 0x250DB2C0: add esp, 8 */ 2284 _flag_k = FK_ADD; 2285 ecx = edi; /* 0x250DB2C3: mov ecx, edi */ 2286 MEM32(esi + 0x8) = ebx; /* 0x250DB2C5: mov dword ptr [esi + 8], ebx */ 2287 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x250DB2C8: mov dword ptr [ebp - 4], 0xffffffff */ 2288 RECOMP_ICALL(0x250E19E0u); /* 0x250DB2CF: call 0x250e19e0 */ /* not lifted */ 2289 RECOMP_FLAGS_IN(); 2290 ecx = MEM32(ebp + (-0xC)); /* 0x250DB2D4: mov ecx, dword ptr [ebp - 0xc] */ 2291 edi = POP32_VAL(esp); /* 0x250DB2D7: pop edi */ 2292 esi = POP32_VAL(esp); /* 0x250DB2D8: pop esi */ 2293 ebx = POP32_VAL(esp); /* 0x250DB2D9: pop ebx */ 2294 MEM32(FS_BASE + (0)) = ecx; /* 0x250DB2DA: mov dword ptr fs:[0], ecx */ 2295 esp = ebp; /* 0x250DB2E1: mov esp, ebp */ 2296 ebp = POP32_VAL(esp); /* 0x250DB2E3: pop ebp */ 2297 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250DB2E4: ret */ 2298 L_25146470: 2299 ecx = MEM32(ebp + (-0x10)); /* 0x25146470: mov ecx, dword ptr [ebp - 0x10] */ 2300 RECOMP_BACKEDGE(); 2301 goto L_250DB0B0; /* 0x25146473: jmp 0x250db0b0 */ 2302 { RECOMP_REGS_OUT(); return; } /* end of function */ 2303 RECOMP_REGS_OUT(); 2304 } 2305 2306 void sub_25146478(void) { 2307 int _fpu_cmp = 0; 2308 uint32_t _cf = 0; 2309 int _df = 1; 2310 uint32_t _flag_k = FK_NONE; 2311 uint32_t _flag_a = 0, _flag_b = 0; 2312 uint32_t _itail_tgt = 0; 2313 RECOMP_REGS_LOCALS 2314 RECOMP_ENTER(0x25146478u); 2315 2316 goto L_25146478; 2317 L_25085170: 2318 PUSH32(esp, ebx); /* 0x25085170: push ebx */ 2319 PUSH32(esp, esi); /* 0x25085171: push esi */ 2320 PUSH32(esp, edi); /* 0x25085172: push edi */ 2321 edi = ecx; /* 0x25085173: mov edi, ecx */ 2322 ebx = MEM32(edi + 0x4); /* 0x25085175: mov ebx, dword ptr [edi + 4] */ 2323 esi = MEM32(ebx); /* 0x25085178: mov esi, dword ptr [ebx] */ 2324 /* cmp esi, ebx */ /* 0x2508517A: cmp esi, ebx */ 2325 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2326 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2327 _flag_k = FK_CMP; 2328 if (CMP_EQ(_flag_a, _flag_b)) goto L_250851A5; /* 0x2508517C: je 0x250851a5 */ 2329 L_2508517E: 2330 eax = esi; /* 0x2508517E: mov eax, esi */ 2331 ecx = MEM32(eax + 0x4); /* 0x25085180: mov ecx, dword ptr [eax + 4] */ 2332 edx = MEM32(eax); /* 0x25085183: mov edx, dword ptr [eax] */ 2333 esi = MEM32(esi); /* 0x25085185: mov esi, dword ptr [esi] */ 2334 MEM32(ecx) = edx; /* 0x25085187: mov dword ptr [ecx], edx */ 2335 ecx = MEM32(eax); /* 0x25085189: mov ecx, dword ptr [eax] */ 2336 edx = MEM32(eax + 0x4); /* 0x2508518B: mov edx, dword ptr [eax + 4] */ 2337 PUSH32(esp, eax); /* 0x2508518E: push eax */ 2338 MEM32(ecx + 0x4) = edx; /* 0x2508518F: mov dword ptr [ecx + 4], edx */ 2339 RECOMP_ICALL(0x25137EECu); /* 0x25085192: call 0x25137eec */ /* not lifted */ 2340 RECOMP_FLAGS_IN(); 2341 ecx = MEM32(edi + 0x8); /* 0x25085197: mov ecx, dword ptr [edi + 8] */ 2342 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2343 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2344 esp = esp + 4; /* 0x2508519A: add esp, 4 */ 2345 _flag_k = FK_ADD; 2346 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2347 ecx = ecx - 1; /* 0x2508519D: dec ecx */ 2348 _flag_k = FK_DEC; 2349 /* cmp esi, ebx */ /* 0x2508519E: cmp esi, ebx */ 2350 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2351 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2352 _flag_k = FK_CMP; 2353 MEM32(edi + 0x8) = ecx; /* 0x250851A0: mov dword ptr [edi + 8], ecx */ 2354 RECOMP_BACKEDGE(); 2355 if (CMP_NE(_flag_a, _flag_b)) goto L_2508517E; /* 0x250851A3: jne 0x2508517e */ 2356 L_250851A5: 2357 eax = MEM32(edi + 0x4); /* 0x250851A5: mov eax, dword ptr [edi + 4] */ 2358 PUSH32(esp, eax); /* 0x250851A8: push eax */ 2359 RECOMP_ICALL(0x25137EECu); /* 0x250851A9: call 0x25137eec */ /* not lifted */ 2360 RECOMP_FLAGS_IN(); 2361 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2362 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2363 esp = esp + 4; /* 0x250851AE: add esp, 4 */ 2364 _flag_k = FK_ADD; 2365 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2366 eax = 0; /* 0x250851B1: xor eax, eax */ 2367 _cf = 0; 2368 _flag_k = FK_TEST; 2369 MEM32(edi + 0x4) = eax; /* 0x250851B3: mov dword ptr [edi + 4], eax */ 2370 MEM32(edi + 0x8) = eax; /* 0x250851B6: mov dword ptr [edi + 8], eax */ 2371 edi = POP32_VAL(esp); /* 0x250851B9: pop edi */ 2372 esi = POP32_VAL(esp); /* 0x250851BA: pop esi */ 2373 ebx = POP32_VAL(esp); /* 0x250851BB: pop ebx */ 2374 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250851BC: ret */ 2375 L_25146478: 2376 ecx = MEM32(ebp + (-0x10)); /* 0x25146478: mov ecx, dword ptr [ebp - 0x10] */ 2377 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x204u); 2378 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2379 ecx = ecx + 0x204u; /* 0x2514647B: add ecx, 0x204 */ 2380 _flag_k = FK_ADD; 2381 RECOMP_BACKEDGE(); 2382 goto L_25085170; /* 0x25146481: jmp 0x25085170 */ 2383 { RECOMP_REGS_OUT(); return; } /* end of function */ 2384 RECOMP_REGS_OUT(); 2385 } 2386 2387 void sub_25146486(void) { 2388 int _fpu_cmp = 0; 2389 uint32_t _cf = 0; 2390 int _df = 1; 2391 uint32_t _flag_k = FK_NONE; 2392 uint32_t _flag_a = 0, _flag_b = 0; 2393 uint32_t _itail_tgt = 0; 2394 RECOMP_REGS_LOCALS 2395 RECOMP_ENTER(0x25146486u); 2396 2397 L_25146486: 2398 eax = MEM32(ebp + 0xC); /* 0x25146486: mov eax, dword ptr [ebp + 0xc] */ 2399 PUSH32(esp, eax); /* 0x25146489: push eax */ 2400 RECOMP_ICALL(0x25137EECu); /* 0x2514648A: call 0x25137eec */ /* not lifted */ 2401 RECOMP_FLAGS_IN(); 2402 ecx = POP32_VAL(esp); /* 0x2514648F: pop ecx */ 2403 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25146490: ret */ 2404 RECOMP_REGS_OUT(); 2405 } 2406 2407 void sub_25146491(void) { 2408 int _fpu_cmp = 0; 2409 uint32_t _cf = 0; 2410 int _df = 1; 2411 uint32_t _flag_k = FK_NONE; 2412 uint32_t _flag_a = 0, _flag_b = 0; 2413 uint32_t _itail_tgt = 0; 2414 RECOMP_REGS_LOCALS 2415 RECOMP_ENTER(0x25146491u); 2416 2417 L_25146491: 2418 eax = MEM32(ebp + 0xC); /* 0x25146491: mov eax, dword ptr [ebp + 0xc] */ 2419 PUSH32(esp, eax); /* 0x25146494: push eax */ 2420 RECOMP_ICALL(0x25137EECu); /* 0x25146495: call 0x25137eec */ /* not lifted */ 2421 RECOMP_FLAGS_IN(); 2422 ecx = POP32_VAL(esp); /* 0x2514649A: pop ecx */ 2423 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2514649B: ret */ 2424 RECOMP_REGS_OUT(); 2425 } 2426 2427 void sub_2514649C(void) { 2428 int _fpu_cmp = 0; 2429 uint32_t _cf = 0; 2430 int _df = 1; 2431 uint32_t _flag_k = FK_NONE; 2432 uint32_t _flag_a = 0, _flag_b = 0; 2433 uint32_t _itail_tgt = 0; 2434 RECOMP_REGS_LOCALS 2435 RECOMP_ENTER(0x2514649Cu); 2436 2437 goto L_2514649C; 2438 L_251380C4: 2439 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 2440 L_2514649C: 2441 eax = 0x251669A8u; /* 0x2514649C: mov eax, 0x251669a8 */ 2442 L_251464A1: 2443 RECOMP_BACKEDGE(); 2444 goto L_251380C4; /* 0x251464A1: jmp 0x251380c4 */ 2445 { RECOMP_REGS_OUT(); return; } /* end of function */ 2446 _ljump: 2447 switch (_itail_tgt) { 2448 case 0x251380C4u: goto L_251380C4; 2449 case 0x2514649Cu: goto L_2514649C; 2450 case 0x251464A1u: goto L_251464A1; 2451 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2452 } 2453 RECOMP_REGS_OUT(); 2454 } 2455 2456 void sub_251464B0(void) { 2457 int _fpu_cmp = 0; 2458 uint32_t _cf = 0; 2459 int _df = 1; 2460 uint32_t _flag_k = FK_NONE; 2461 uint32_t _flag_a = 0, _flag_b = 0; 2462 uint32_t _itail_tgt = 0; 2463 RECOMP_REGS_LOCALS 2464 RECOMP_ENTER(0x251464B0u); 2465 2466 goto L_251464B0; 2467 L_250DB0B0: 2468 PUSH32(esp, ebp); /* 0x250DB0B0: push ebp */ 2469 ebp = esp; /* 0x250DB0B1: mov ebp, esp */ 2470 PUSH32(esp, 0xFFFFFFFFu); /* 0x250DB0B3: push -1 */ 2471 PUSH32(esp, 0x2514AD21u); /* 0x250DB0B5: push 0x2514ad21 */ 2472 eax = MEM32(FS_BASE + (0)); /* 0x250DB0BA: mov eax, dword ptr fs:[0] */ 2473 PUSH32(esp, eax); /* 0x250DB0C0: push eax */ 2474 MEM32(FS_BASE + (0)) = esp; /* 0x250DB0C1: mov dword ptr fs:[0], esp */ 2475 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2476 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2477 esp = esp - 0x14u; /* 0x250DB0C8: sub esp, 0x14 */ 2478 _flag_k = FK_CMP; 2479 PUSH32(esp, ebx); /* 0x250DB0CB: push ebx */ 2480 PUSH32(esp, esi); /* 0x250DB0CC: push esi */ 2481 PUSH32(esp, edi); /* 0x250DB0CD: push edi */ 2482 edi = ecx; /* 0x250DB0CE: mov edi, ecx */ 2483 esi = edi + 0x150; /* 0x250DB0D0: lea esi, [edi + 0x150] */ 2484 MEM32(ebp + (-0x18)) = edi; /* 0x250DB0D6: mov dword ptr [ebp - 0x18], edi */ 2485 MEM32(edi) = 0x25158310u; /* 0x250DB0D9: mov dword ptr [edi], 0x25158310 */ 2486 MEM32(edi + 0x8) = 0x25158300u; /* 0x250DB0DF: mov dword ptr [edi + 8], 0x25158300 */ 2487 MEM32(edi + 0x20) = 0x251582F0u; /* 0x250DB0E6: mov dword ptr [edi + 0x20], 0x251582f0 */ 2488 MEM32(edi + 0x38) = 0x251582E0u; /* 0x250DB0ED: mov dword ptr [edi + 0x38], 0x251582e0 */ 2489 MEM32(edi + 0x50) = 0x251582D0u; /* 0x250DB0F4: mov dword ptr [edi + 0x50], 0x251582d0 */ 2490 MEM32(edi + 0x138) = 0x251582C0u; /* 0x250DB0FB: mov dword ptr [edi + 0x138], 0x251582c0 */ 2491 MEM32(esi) = 0x251582B0u; /* 0x250DB105: mov dword ptr [esi], 0x251582b0 */ 2492 ecx = MEM32(edi + 0x168); /* 0x250DB10B: mov ecx, dword ptr [edi + 0x168] */ 2493 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2494 ebx = 0; /* 0x250DB111: xor ebx, ebx */ 2495 _cf = 0; 2496 _flag_k = FK_TEST; 2497 /* cmp ecx, ebx */ /* 0x250DB113: cmp ecx, ebx */ 2498 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 2499 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2500 _flag_k = FK_CMP; 2501 MEM32(ebp + (-0x4)) = 3; /* 0x250DB115: mov dword ptr [ebp - 4], 3 */ 2502 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB123; /* 0x250DB11C: je 0x250db123 */ 2503 L_250DB11E: 2504 RECOMP_ICALL(0x250E6370u); /* 0x250DB11E: call 0x250e6370 */ /* not lifted */ 2505 RECOMP_FLAGS_IN(); 2506 L_250DB123: 2507 eax = MEM32(edi + 0x1BC); /* 0x250DB123: mov eax, dword ptr [edi + 0x1bc] */ 2508 PUSH32(esp, eax); /* 0x250DB129: push eax */ 2509 MEM32(ebp + (-0x14)) = eax; /* 0x250DB12A: mov dword ptr [ebp - 0x14], eax */ 2510 RECOMP_ICALL(0x25137EECu); /* 0x250DB12D: call 0x25137eec */ /* not lifted */ 2511 RECOMP_FLAGS_IN(); 2512 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2513 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2514 esp = esp + 4; /* 0x250DB132: add esp, 4 */ 2515 _flag_k = FK_ADD; 2516 eax = edi; /* 0x250DB135: mov eax, edi */ 2517 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 2518 _cf = (eax) != 0; 2519 eax = (uint32_t)(-(int32_t)eax); /* 0x250DB137: neg eax */ 2520 _flag_k = FK_CMP; 2521 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x250DB139: sbb eax, eax */ 2522 eax = _sc ? 0xFFFFFFFFu : 0; 2523 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2524 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2525 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 2526 eax = eax & esi; /* 0x250DB13B: and eax, esi */ 2527 _cf = 0; 2528 _flag_k = FK_TEST; 2529 MEM32(edi + 0x1BC) = ebx; /* 0x250DB13D: mov dword ptr [edi + 0x1bc], ebx */ 2530 MEM32(edi + 0x1C0) = ebx; /* 0x250DB143: mov dword ptr [edi + 0x1c0], ebx */ 2531 MEM32(edi + 0x1C4) = ebx; /* 0x250DB149: mov dword ptr [edi + 0x1c4], ebx */ 2532 esi = eax + 0x4; /* 0x250DB14F: lea esi, [eax + 4] */ 2533 MEM32(eax) = 0x25158364u; /* 0x250DB152: mov dword ptr [eax], 0x25158364 */ 2534 eax = MEM32(esi + 0x4); /* 0x250DB158: mov eax, dword ptr [esi + 4] */ 2535 /* cmp MEM32(esi + 0x10), ebx */ /* 0x250DB15B: cmp dword ptr [esi + 0x10], ebx */ 2536 _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(ebx); 2537 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2538 _flag_k = FK_CMP; 2539 MEM32(ebp + (-0x10)) = eax; /* 0x250DB15E: mov dword ptr [ebp - 0x10], eax */ 2540 eax = MEM32(eax); /* 0x250DB161: mov eax, dword ptr [eax] */ 2541 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x250DB163: mov byte ptr [ebp - 4], 1 */ 2542 MEM32(ebp + (-0x14)) = eax; /* 0x250DB167: mov dword ptr [ebp - 0x14], eax */ 2543 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB16A: je 0x250db1be */ 2544 L_250DB16C: 2545 eax = ebp + (-0x1C); /* 0x250DB16C: lea eax, [ebp - 0x1c] */ 2546 PUSH32(esp, eax); /* 0x250DB16F: push eax */ 2547 ecx = esi; /* 0x250DB170: mov ecx, esi */ 2548 RECOMP_ICALL(0x25085270u); /* 0x250DB172: call 0x25085270 */ /* not lifted */ 2549 RECOMP_FLAGS_IN(); 2550 ecx = eax; /* 0x250DB177: mov ecx, eax */ 2551 edx = MEM32(ecx); /* 0x250DB179: mov edx, dword ptr [ecx] */ 2552 eax = MEM32(ebp + (-0x14)); /* 0x250DB17B: mov eax, dword ptr [ebp - 0x14] */ 2553 /* cmp eax, edx */ /* 0x250DB17E: cmp eax, edx */ 2554 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2555 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2556 _flag_k = FK_CMP; 2557 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x250DB180: setne cl */ 2558 /* cmp LO8(ecx), LO8(ebx) */ /* 0x250DB183: cmp cl, bl */ 2559 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2560 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2561 _flag_k = FK_NARROW(FK_CMP, 24); 2562 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB185: jne 0x250db1be */ 2563 L_250DB187: 2564 ecx = MEM32(esi + 0x4); /* 0x250DB187: mov ecx, dword ptr [esi + 4] */ 2565 /* cmp MEM32(ebp + (-0x10)), ecx */ /* 0x250DB18A: cmp dword ptr [ebp - 0x10], ecx */ 2566 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ecx); 2567 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2568 _flag_k = FK_CMP; 2569 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB18D: jne 0x250db1be */ 2570 L_250DB18F: 2571 edx = MEM32(ecx + 0x4); /* 0x250DB18F: mov edx, dword ptr [ecx + 4] */ 2572 PUSH32(esp, edx); /* 0x250DB192: push edx */ 2573 ecx = esi; /* 0x250DB193: mov ecx, esi */ 2574 RECOMP_ICALL(0x25006C00u); /* 0x250DB195: call 0x25006c00 */ /* not lifted */ 2575 RECOMP_FLAGS_IN(); 2576 eax = MEM32(esi + 0x4); /* 0x250DB19A: mov eax, dword ptr [esi + 4] */ 2577 ecx = MEM32(esi + 0x8); /* 0x250DB19D: mov ecx, dword ptr [esi + 8] */ 2578 MEM32(eax + 0x4) = ecx; /* 0x250DB1A0: mov dword ptr [eax + 4], ecx */ 2579 eax = MEM32(esi + 0x4); /* 0x250DB1A3: mov eax, dword ptr [esi + 4] */ 2580 MEM32(esi + 0x10) = ebx; /* 0x250DB1A6: mov dword ptr [esi + 0x10], ebx */ 2581 MEM32(eax) = eax; /* 0x250DB1A9: mov dword ptr [eax], eax */ 2582 eax = MEM32(esi + 0x4); /* 0x250DB1AB: mov eax, dword ptr [esi + 4] */ 2583 edx = ebp + (-0x1C); /* 0x250DB1AE: lea edx, [ebp - 0x1c] */ 2584 PUSH32(esp, edx); /* 0x250DB1B1: push edx */ 2585 ecx = esi; /* 0x250DB1B2: mov ecx, esi */ 2586 MEM32(eax + 0x8) = eax; /* 0x250DB1B4: mov dword ptr [eax + 8], eax */ 2587 RECOMP_ICALL(0x25085270u); /* 0x250DB1B7: call 0x25085270 */ /* not lifted */ 2588 RECOMP_FLAGS_IN(); 2589 goto L_250DB1E6; /* 0x250DB1BC: jmp 0x250db1e6 */ 2590 L_250DB1BE: 2591 /* cmp eax, MEM32(ebp + (-0x10)) */ /* 0x250DB1BE: cmp eax, dword ptr [ebp - 0x10] */ 2592 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 2593 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2594 _flag_k = FK_CMP; 2595 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB1E6; /* 0x250DB1C1: je 0x250db1e6 */ 2596 L_250DB1C3: 2597 PUSH32(esp, ebx); /* 0x250DB1C3: push ebx */ 2598 eax = ebp + (-0x1C); /* 0x250DB1C4: lea eax, [ebp - 0x1c] */ 2599 PUSH32(esp, eax); /* 0x250DB1C7: push eax */ 2600 ecx = ebp + (-0x14); /* 0x250DB1C8: lea ecx, [ebp - 0x14] */ 2601 RECOMP_ICALL(0x250076D0u); /* 0x250DB1CB: call 0x250076d0 */ /* not lifted */ 2602 RECOMP_FLAGS_IN(); 2603 ecx = MEM32(eax); /* 0x250DB1D0: mov ecx, dword ptr [eax] */ 2604 PUSH32(esp, ecx); /* 0x250DB1D2: push ecx */ 2605 edx = ebp + (-0x20); /* 0x250DB1D3: lea edx, [ebp - 0x20] */ 2606 PUSH32(esp, edx); /* 0x250DB1D6: push edx */ 2607 ecx = esi; /* 0x250DB1D7: mov ecx, esi */ 2608 RECOMP_ICALL(0x25006380u); /* 0x250DB1D9: call 0x25006380 */ /* not lifted */ 2609 RECOMP_FLAGS_IN(); 2610 eax = MEM32(ebp + (-0x10)); /* 0x250DB1DE: mov eax, dword ptr [ebp - 0x10] */ 2611 /* cmp MEM32(ebp + (-0x14)), eax */ /* 0x250DB1E1: cmp dword ptr [ebp - 0x14], eax */ 2612 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(eax); 2613 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2614 _flag_k = FK_CMP; 2615 RECOMP_BACKEDGE(); 2616 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1C3; /* 0x250DB1E4: jne 0x250db1c3 */ 2617 L_250DB1E6: 2618 eax = MEM32(esi + 0x4); /* 0x250DB1E6: mov eax, dword ptr [esi + 4] */ 2619 PUSH32(esp, eax); /* 0x250DB1E9: push eax */ 2620 RECOMP_ICALL(0x25137EECu); /* 0x250DB1EA: call 0x25137eec */ /* not lifted */ 2621 RECOMP_FLAGS_IN(); 2622 eax = MEM32(esi + 0x8); /* 0x250DB1EF: mov eax, dword ptr [esi + 8] */ 2623 PUSH32(esp, eax); /* 0x250DB1F2: push eax */ 2624 MEM32(esi + 0x4) = ebx; /* 0x250DB1F3: mov dword ptr [esi + 4], ebx */ 2625 MEM32(esi + 0x10) = ebx; /* 0x250DB1F6: mov dword ptr [esi + 0x10], ebx */ 2626 RECOMP_ICALL(0x25137EECu); /* 0x250DB1F9: call 0x25137eec */ /* not lifted */ 2627 RECOMP_FLAGS_IN(); 2628 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2629 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2630 esp = esp + 8; /* 0x250DB1FE: add esp, 8 */ 2631 _flag_k = FK_ADD; 2632 eax = edi; /* 0x250DB201: mov eax, edi */ 2633 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 2634 _cf = (eax) != 0; 2635 eax = (uint32_t)(-(int32_t)eax); /* 0x250DB203: neg eax */ 2636 _flag_k = FK_CMP; 2637 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x250DB205: sbb eax, eax */ 2638 eax = _sc ? 0xFFFFFFFFu : 0; 2639 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2640 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2641 MEM32(esi + 0x8) = ebx; /* 0x250DB207: mov dword ptr [esi + 8], ebx */ 2642 ecx = edi + 0x138; /* 0x250DB20A: lea ecx, [edi + 0x138] */ 2643 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2644 eax = eax & ecx; /* 0x250DB210: and eax, ecx */ 2645 _cf = 0; 2646 _flag_k = FK_TEST; 2647 esi = eax + 0x4; /* 0x250DB212: lea esi, [eax + 4] */ 2648 MEM32(eax) = 0x25158374u; /* 0x250DB215: mov dword ptr [eax], 0x25158374 */ 2649 eax = MEM32(esi + 0x4); /* 0x250DB21B: mov eax, dword ptr [esi + 4] */ 2650 /* cmp MEM32(esi + 0x10), ebx */ /* 0x250DB21E: cmp dword ptr [esi + 0x10], ebx */ 2651 _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(ebx); 2652 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2653 _flag_k = FK_CMP; 2654 MEM32(ebp + (-0x14)) = eax; /* 0x250DB221: mov dword ptr [ebp - 0x14], eax */ 2655 eax = MEM32(eax); /* 0x250DB224: mov eax, dword ptr [eax] */ 2656 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x250DB226: mov byte ptr [ebp - 4], bl */ 2657 MEM32(ebp + (-0x10)) = eax; /* 0x250DB229: mov dword ptr [ebp - 0x10], eax */ 2658 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB22C: je 0x250db280 */ 2659 L_250DB22E: 2660 ecx = ebp + (-0x20); /* 0x250DB22E: lea ecx, [ebp - 0x20] */ 2661 PUSH32(esp, ecx); /* 0x250DB231: push ecx */ 2662 ecx = esi; /* 0x250DB232: mov ecx, esi */ 2663 RECOMP_ICALL(0x25085270u); /* 0x250DB234: call 0x25085270 */ /* not lifted */ 2664 RECOMP_FLAGS_IN(); 2665 edx = eax; /* 0x250DB239: mov edx, eax */ 2666 ecx = MEM32(edx); /* 0x250DB23B: mov ecx, dword ptr [edx] */ 2667 eax = MEM32(ebp + (-0x10)); /* 0x250DB23D: mov eax, dword ptr [ebp - 0x10] */ 2668 /* cmp eax, ecx */ /* 0x250DB240: cmp eax, ecx */ 2669 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2670 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2671 _flag_k = FK_CMP; 2672 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x250DB242: setne cl */ 2673 /* cmp LO8(ecx), LO8(ebx) */ /* 0x250DB245: cmp cl, bl */ 2674 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2675 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2676 _flag_k = FK_NARROW(FK_CMP, 24); 2677 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB247: jne 0x250db280 */ 2678 L_250DB249: 2679 ecx = MEM32(esi + 0x4); /* 0x250DB249: mov ecx, dword ptr [esi + 4] */ 2680 /* cmp MEM32(ebp + (-0x14)), ecx */ /* 0x250DB24C: cmp dword ptr [ebp - 0x14], ecx */ 2681 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(ecx); 2682 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2683 _flag_k = FK_CMP; 2684 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB24F: jne 0x250db280 */ 2685 L_250DB251: 2686 eax = MEM32(ecx + 0x4); /* 0x250DB251: mov eax, dword ptr [ecx + 4] */ 2687 PUSH32(esp, eax); /* 0x250DB254: push eax */ 2688 ecx = esi; /* 0x250DB255: mov ecx, esi */ 2689 RECOMP_ICALL(0x250068F0u); /* 0x250DB257: call 0x250068f0 */ /* not lifted */ 2690 RECOMP_FLAGS_IN(); 2691 ecx = MEM32(esi + 0x4); /* 0x250DB25C: mov ecx, dword ptr [esi + 4] */ 2692 edx = MEM32(esi + 0x8); /* 0x250DB25F: mov edx, dword ptr [esi + 8] */ 2693 MEM32(ecx + 0x4) = edx; /* 0x250DB262: mov dword ptr [ecx + 4], edx */ 2694 eax = MEM32(esi + 0x4); /* 0x250DB265: mov eax, dword ptr [esi + 4] */ 2695 MEM32(esi + 0x10) = ebx; /* 0x250DB268: mov dword ptr [esi + 0x10], ebx */ 2696 MEM32(eax) = eax; /* 0x250DB26B: mov dword ptr [eax], eax */ 2697 eax = MEM32(esi + 0x4); /* 0x250DB26D: mov eax, dword ptr [esi + 4] */ 2698 MEM32(eax + 0x8) = eax; /* 0x250DB270: mov dword ptr [eax + 8], eax */ 2699 eax = ebp + (-0x20); /* 0x250DB273: lea eax, [ebp - 0x20] */ 2700 PUSH32(esp, eax); /* 0x250DB276: push eax */ 2701 ecx = esi; /* 0x250DB277: mov ecx, esi */ 2702 RECOMP_ICALL(0x25085270u); /* 0x250DB279: call 0x25085270 */ /* not lifted */ 2703 RECOMP_FLAGS_IN(); 2704 goto L_250DB2A8; /* 0x250DB27E: jmp 0x250db2a8 */ 2705 L_250DB280: 2706 /* cmp eax, MEM32(ebp + (-0x14)) */ /* 0x250DB280: cmp eax, dword ptr [ebp - 0x14] */ 2707 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 2708 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2709 _flag_k = FK_CMP; 2710 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB2A8; /* 0x250DB283: je 0x250db2a8 */ 2711 L_250DB285: 2712 PUSH32(esp, ebx); /* 0x250DB285: push ebx */ 2713 ecx = ebp + (-0x20); /* 0x250DB286: lea ecx, [ebp - 0x20] */ 2714 PUSH32(esp, ecx); /* 0x250DB289: push ecx */ 2715 ecx = ebp + (-0x10); /* 0x250DB28A: lea ecx, [ebp - 0x10] */ 2716 RECOMP_ICALL(0x250076D0u); /* 0x250DB28D: call 0x250076d0 */ /* not lifted */ 2717 RECOMP_FLAGS_IN(); 2718 edx = MEM32(eax); /* 0x250DB292: mov edx, dword ptr [eax] */ 2719 PUSH32(esp, edx); /* 0x250DB294: push edx */ 2720 eax = ebp + (-0x1C); /* 0x250DB295: lea eax, [ebp - 0x1c] */ 2721 PUSH32(esp, eax); /* 0x250DB298: push eax */ 2722 ecx = esi; /* 0x250DB299: mov ecx, esi */ 2723 RECOMP_ICALL(0x25006380u); /* 0x250DB29B: call 0x25006380 */ /* not lifted */ 2724 RECOMP_FLAGS_IN(); 2725 ecx = MEM32(ebp + (-0x14)); /* 0x250DB2A0: mov ecx, dword ptr [ebp - 0x14] */ 2726 /* cmp MEM32(ebp + (-0x10)), ecx */ /* 0x250DB2A3: cmp dword ptr [ebp - 0x10], ecx */ 2727 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ecx); 2728 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2729 _flag_k = FK_CMP; 2730 RECOMP_BACKEDGE(); 2731 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB285; /* 0x250DB2A6: jne 0x250db285 */ 2732 L_250DB2A8: 2733 eax = MEM32(esi + 0x4); /* 0x250DB2A8: mov eax, dword ptr [esi + 4] */ 2734 PUSH32(esp, eax); /* 0x250DB2AB: push eax */ 2735 RECOMP_ICALL(0x25137EECu); /* 0x250DB2AC: call 0x25137eec */ /* not lifted */ 2736 RECOMP_FLAGS_IN(); 2737 eax = MEM32(esi + 0x8); /* 0x250DB2B1: mov eax, dword ptr [esi + 8] */ 2738 PUSH32(esp, eax); /* 0x250DB2B4: push eax */ 2739 MEM32(esi + 0x4) = ebx; /* 0x250DB2B5: mov dword ptr [esi + 4], ebx */ 2740 MEM32(esi + 0x10) = ebx; /* 0x250DB2B8: mov dword ptr [esi + 0x10], ebx */ 2741 RECOMP_ICALL(0x25137EECu); /* 0x250DB2BB: call 0x25137eec */ /* not lifted */ 2742 RECOMP_FLAGS_IN(); 2743 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2744 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2745 esp = esp + 8; /* 0x250DB2C0: add esp, 8 */ 2746 _flag_k = FK_ADD; 2747 ecx = edi; /* 0x250DB2C3: mov ecx, edi */ 2748 MEM32(esi + 0x8) = ebx; /* 0x250DB2C5: mov dword ptr [esi + 8], ebx */ 2749 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x250DB2C8: mov dword ptr [ebp - 4], 0xffffffff */ 2750 RECOMP_ICALL(0x250E19E0u); /* 0x250DB2CF: call 0x250e19e0 */ /* not lifted */ 2751 RECOMP_FLAGS_IN(); 2752 ecx = MEM32(ebp + (-0xC)); /* 0x250DB2D4: mov ecx, dword ptr [ebp - 0xc] */ 2753 edi = POP32_VAL(esp); /* 0x250DB2D7: pop edi */ 2754 esi = POP32_VAL(esp); /* 0x250DB2D8: pop esi */ 2755 ebx = POP32_VAL(esp); /* 0x250DB2D9: pop ebx */ 2756 MEM32(FS_BASE + (0)) = ecx; /* 0x250DB2DA: mov dword ptr fs:[0], ecx */ 2757 esp = ebp; /* 0x250DB2E1: mov esp, ebp */ 2758 ebp = POP32_VAL(esp); /* 0x250DB2E3: pop ebp */ 2759 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250DB2E4: ret */ 2760 L_251464B0: 2761 ecx = MEM32(ebp + (-0x10)); /* 0x251464B0: mov ecx, dword ptr [ebp - 0x10] */ 2762 RECOMP_BACKEDGE(); 2763 goto L_250DB0B0; /* 0x251464B3: jmp 0x250db0b0 */ 2764 { RECOMP_REGS_OUT(); return; } /* end of function */ 2765 RECOMP_REGS_OUT(); 2766 } 2767 2768 void sub_251464B8(void) { 2769 int _fpu_cmp = 0; 2770 uint32_t _cf = 0; 2771 int _df = 1; 2772 uint32_t _flag_k = FK_NONE; 2773 uint32_t _flag_a = 0, _flag_b = 0; 2774 uint32_t _itail_tgt = 0; 2775 RECOMP_REGS_LOCALS 2776 RECOMP_ENTER(0x251464B8u); 2777 2778 goto L_251464B8; 2779 L_25085170: 2780 PUSH32(esp, ebx); /* 0x25085170: push ebx */ 2781 PUSH32(esp, esi); /* 0x25085171: push esi */ 2782 PUSH32(esp, edi); /* 0x25085172: push edi */ 2783 edi = ecx; /* 0x25085173: mov edi, ecx */ 2784 ebx = MEM32(edi + 0x4); /* 0x25085175: mov ebx, dword ptr [edi + 4] */ 2785 esi = MEM32(ebx); /* 0x25085178: mov esi, dword ptr [ebx] */ 2786 /* cmp esi, ebx */ /* 0x2508517A: cmp esi, ebx */ 2787 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2788 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2789 _flag_k = FK_CMP; 2790 if (CMP_EQ(_flag_a, _flag_b)) goto L_250851A5; /* 0x2508517C: je 0x250851a5 */ 2791 L_2508517E: 2792 eax = esi; /* 0x2508517E: mov eax, esi */ 2793 ecx = MEM32(eax + 0x4); /* 0x25085180: mov ecx, dword ptr [eax + 4] */ 2794 edx = MEM32(eax); /* 0x25085183: mov edx, dword ptr [eax] */ 2795 esi = MEM32(esi); /* 0x25085185: mov esi, dword ptr [esi] */ 2796 MEM32(ecx) = edx; /* 0x25085187: mov dword ptr [ecx], edx */ 2797 ecx = MEM32(eax); /* 0x25085189: mov ecx, dword ptr [eax] */ 2798 edx = MEM32(eax + 0x4); /* 0x2508518B: mov edx, dword ptr [eax + 4] */ 2799 PUSH32(esp, eax); /* 0x2508518E: push eax */ 2800 MEM32(ecx + 0x4) = edx; /* 0x2508518F: mov dword ptr [ecx + 4], edx */ 2801 RECOMP_ICALL(0x25137EECu); /* 0x25085192: call 0x25137eec */ /* not lifted */ 2802 RECOMP_FLAGS_IN(); 2803 ecx = MEM32(edi + 0x8); /* 0x25085197: mov ecx, dword ptr [edi + 8] */ 2804 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2805 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2806 esp = esp + 4; /* 0x2508519A: add esp, 4 */ 2807 _flag_k = FK_ADD; 2808 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2809 ecx = ecx - 1; /* 0x2508519D: dec ecx */ 2810 _flag_k = FK_DEC; 2811 /* cmp esi, ebx */ /* 0x2508519E: cmp esi, ebx */ 2812 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2813 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2814 _flag_k = FK_CMP; 2815 MEM32(edi + 0x8) = ecx; /* 0x250851A0: mov dword ptr [edi + 8], ecx */ 2816 RECOMP_BACKEDGE(); 2817 if (CMP_NE(_flag_a, _flag_b)) goto L_2508517E; /* 0x250851A3: jne 0x2508517e */ 2818 L_250851A5: 2819 eax = MEM32(edi + 0x4); /* 0x250851A5: mov eax, dword ptr [edi + 4] */ 2820 PUSH32(esp, eax); /* 0x250851A8: push eax */ 2821 RECOMP_ICALL(0x25137EECu); /* 0x250851A9: call 0x25137eec */ /* not lifted */ 2822 RECOMP_FLAGS_IN(); 2823 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2824 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2825 esp = esp + 4; /* 0x250851AE: add esp, 4 */ 2826 _flag_k = FK_ADD; 2827 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2828 eax = 0; /* 0x250851B1: xor eax, eax */ 2829 _cf = 0; 2830 _flag_k = FK_TEST; 2831 MEM32(edi + 0x4) = eax; /* 0x250851B3: mov dword ptr [edi + 4], eax */ 2832 MEM32(edi + 0x8) = eax; /* 0x250851B6: mov dword ptr [edi + 8], eax */ 2833 edi = POP32_VAL(esp); /* 0x250851B9: pop edi */ 2834 esi = POP32_VAL(esp); /* 0x250851BA: pop esi */ 2835 ebx = POP32_VAL(esp); /* 0x250851BB: pop ebx */ 2836 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250851BC: ret */ 2837 L_251464B8: 2838 ecx = MEM32(ebp + (-0x10)); /* 0x251464B8: mov ecx, dword ptr [ebp - 0x10] */ 2839 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x204u); 2840 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2841 ecx = ecx + 0x204u; /* 0x251464BB: add ecx, 0x204 */ 2842 _flag_k = FK_ADD; 2843 RECOMP_BACKEDGE(); 2844 goto L_25085170; /* 0x251464C1: jmp 0x25085170 */ 2845 { RECOMP_REGS_OUT(); return; } /* end of function */ 2846 RECOMP_REGS_OUT(); 2847 } 2848 2849 void sub_251464C6(void) { 2850 int _fpu_cmp = 0; 2851 uint32_t _cf = 0; 2852 int _df = 1; 2853 uint32_t _flag_k = FK_NONE; 2854 uint32_t _flag_a = 0, _flag_b = 0; 2855 uint32_t _itail_tgt = 0; 2856 RECOMP_REGS_LOCALS 2857 RECOMP_ENTER(0x251464C6u); 2858 2859 goto L_251464C6; 2860 L_251380C4: 2861 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 2862 L_251464C6: 2863 eax = 0x251669E8u; /* 0x251464C6: mov eax, 0x251669e8 */ 2864 L_251464CB: 2865 RECOMP_BACKEDGE(); 2866 goto L_251380C4; /* 0x251464CB: jmp 0x251380c4 */ 2867 { RECOMP_REGS_OUT(); return; } /* end of function */ 2868 _ljump: 2869 switch (_itail_tgt) { 2870 case 0x251380C4u: goto L_251380C4; 2871 case 0x251464C6u: goto L_251464C6; 2872 case 0x251464CBu: goto L_251464CB; 2873 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2874 } 2875 RECOMP_REGS_OUT(); 2876 } 2877 2878 void sub_251464D0(void) { 2879 int _fpu_cmp = 0; 2880 uint32_t _cf = 0; 2881 int _df = 1; 2882 uint32_t _flag_k = FK_NONE; 2883 uint32_t _flag_a = 0, _flag_b = 0; 2884 uint32_t _itail_tgt = 0; 2885 RECOMP_REGS_LOCALS 2886 RECOMP_ENTER(0x251464D0u); 2887 2888 L_251464D0: 2889 ecx = ebp + (-0xB4); /* 0x251464D0: lea ecx, [ebp - 0xb4] */ 2890 L_251464D6: 2891 { _itail_tgt = (uint32_t)(MEM32(0x25151504)); goto _ljump; } 2892 { RECOMP_REGS_OUT(); return; } /* end of function */ 2893 _ljump: 2894 switch (_itail_tgt) { 2895 case 0x251464D0u: goto L_251464D0; 2896 case 0x251464D6u: goto L_251464D6; 2897 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2898 } 2899 RECOMP_REGS_OUT(); 2900 } 2901 2902 void sub_251464DC(void) { 2903 int _fpu_cmp = 0; 2904 uint32_t _cf = 0; 2905 int _df = 1; 2906 uint32_t _flag_k = FK_NONE; 2907 uint32_t _flag_a = 0, _flag_b = 0; 2908 uint32_t _itail_tgt = 0; 2909 RECOMP_REGS_LOCALS 2910 RECOMP_ENTER(0x251464DCu); 2911 2912 L_251464DC: 2913 ecx = ebp + (-0xF8); /* 0x251464DC: lea ecx, [ebp - 0xf8] */ 2914 L_251464E2: 2915 { _itail_tgt = (uint32_t)(MEM32(0x25151504)); goto _ljump; } 2916 { RECOMP_REGS_OUT(); return; } /* end of function */ 2917 _ljump: 2918 switch (_itail_tgt) { 2919 case 0x251464DCu: goto L_251464DC; 2920 case 0x251464E2u: goto L_251464E2; 2921 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2922 } 2923 RECOMP_REGS_OUT(); 2924 } 2925 2926 void sub_251464E8(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(0x251464E8u); 2935 2936 goto L_251464E8; 2937 L_251380C4: 2938 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 2939 L_251464E8: 2940 eax = 0x25166A18u; /* 0x251464E8: mov eax, 0x25166a18 */ 2941 L_251464ED: 2942 RECOMP_BACKEDGE(); 2943 goto L_251380C4; /* 0x251464ED: jmp 0x251380c4 */ 2944 { RECOMP_REGS_OUT(); return; } /* end of function */ 2945 _ljump: 2946 switch (_itail_tgt) { 2947 case 0x251380C4u: goto L_251380C4; 2948 case 0x251464E8u: goto L_251464E8; 2949 case 0x251464EDu: goto L_251464ED; 2950 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2951 } 2952 RECOMP_REGS_OUT(); 2953 } 2954 2955 void sub_25146500(void) { 2956 int _fpu_cmp = 0; 2957 uint32_t _cf = 0; 2958 int _df = 1; 2959 uint32_t _flag_k = FK_NONE; 2960 uint32_t _flag_a = 0, _flag_b = 0; 2961 uint32_t _itail_tgt = 0; 2962 RECOMP_REGS_LOCALS 2963 RECOMP_ENTER(0x25146500u); 2964 2965 goto L_25146500; 2966 L_250DB0B0: 2967 PUSH32(esp, ebp); /* 0x250DB0B0: push ebp */ 2968 ebp = esp; /* 0x250DB0B1: mov ebp, esp */ 2969 PUSH32(esp, 0xFFFFFFFFu); /* 0x250DB0B3: push -1 */ 2970 PUSH32(esp, 0x2514AD21u); /* 0x250DB0B5: push 0x2514ad21 */ 2971 eax = MEM32(FS_BASE + (0)); /* 0x250DB0BA: mov eax, dword ptr fs:[0] */ 2972 PUSH32(esp, eax); /* 0x250DB0C0: push eax */ 2973 MEM32(FS_BASE + (0)) = esp; /* 0x250DB0C1: mov dword ptr fs:[0], esp */ 2974 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2975 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2976 esp = esp - 0x14u; /* 0x250DB0C8: sub esp, 0x14 */ 2977 _flag_k = FK_CMP; 2978 PUSH32(esp, ebx); /* 0x250DB0CB: push ebx */ 2979 PUSH32(esp, esi); /* 0x250DB0CC: push esi */ 2980 PUSH32(esp, edi); /* 0x250DB0CD: push edi */ 2981 edi = ecx; /* 0x250DB0CE: mov edi, ecx */ 2982 esi = edi + 0x150; /* 0x250DB0D0: lea esi, [edi + 0x150] */ 2983 MEM32(ebp + (-0x18)) = edi; /* 0x250DB0D6: mov dword ptr [ebp - 0x18], edi */ 2984 MEM32(edi) = 0x25158310u; /* 0x250DB0D9: mov dword ptr [edi], 0x25158310 */ 2985 MEM32(edi + 0x8) = 0x25158300u; /* 0x250DB0DF: mov dword ptr [edi + 8], 0x25158300 */ 2986 MEM32(edi + 0x20) = 0x251582F0u; /* 0x250DB0E6: mov dword ptr [edi + 0x20], 0x251582f0 */ 2987 MEM32(edi + 0x38) = 0x251582E0u; /* 0x250DB0ED: mov dword ptr [edi + 0x38], 0x251582e0 */ 2988 MEM32(edi + 0x50) = 0x251582D0u; /* 0x250DB0F4: mov dword ptr [edi + 0x50], 0x251582d0 */ 2989 MEM32(edi + 0x138) = 0x251582C0u; /* 0x250DB0FB: mov dword ptr [edi + 0x138], 0x251582c0 */ 2990 MEM32(esi) = 0x251582B0u; /* 0x250DB105: mov dword ptr [esi], 0x251582b0 */ 2991 ecx = MEM32(edi + 0x168); /* 0x250DB10B: mov ecx, dword ptr [edi + 0x168] */ 2992 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2993 ebx = 0; /* 0x250DB111: xor ebx, ebx */ 2994 _cf = 0; 2995 _flag_k = FK_TEST; 2996 /* cmp ecx, ebx */ /* 0x250DB113: cmp ecx, ebx */ 2997 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 2998 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2999 _flag_k = FK_CMP; 3000 MEM32(ebp + (-0x4)) = 3; /* 0x250DB115: mov dword ptr [ebp - 4], 3 */ 3001 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB123; /* 0x250DB11C: je 0x250db123 */ 3002 L_250DB11E: 3003 RECOMP_ICALL(0x250E6370u); /* 0x250DB11E: call 0x250e6370 */ /* not lifted */ 3004 RECOMP_FLAGS_IN(); 3005 L_250DB123: 3006 eax = MEM32(edi + 0x1BC); /* 0x250DB123: mov eax, dword ptr [edi + 0x1bc] */ 3007 PUSH32(esp, eax); /* 0x250DB129: push eax */ 3008 MEM32(ebp + (-0x14)) = eax; /* 0x250DB12A: mov dword ptr [ebp - 0x14], eax */ 3009 RECOMP_ICALL(0x25137EECu); /* 0x250DB12D: call 0x25137eec */ /* not lifted */ 3010 RECOMP_FLAGS_IN(); 3011 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3012 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3013 esp = esp + 4; /* 0x250DB132: add esp, 4 */ 3014 _flag_k = FK_ADD; 3015 eax = edi; /* 0x250DB135: mov eax, edi */ 3016 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 3017 _cf = (eax) != 0; 3018 eax = (uint32_t)(-(int32_t)eax); /* 0x250DB137: neg eax */ 3019 _flag_k = FK_CMP; 3020 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x250DB139: sbb eax, eax */ 3021 eax = _sc ? 0xFFFFFFFFu : 0; 3022 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 3023 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 3024 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 3025 eax = eax & esi; /* 0x250DB13B: and eax, esi */ 3026 _cf = 0; 3027 _flag_k = FK_TEST; 3028 MEM32(edi + 0x1BC) = ebx; /* 0x250DB13D: mov dword ptr [edi + 0x1bc], ebx */ 3029 MEM32(edi + 0x1C0) = ebx; /* 0x250DB143: mov dword ptr [edi + 0x1c0], ebx */ 3030 MEM32(edi + 0x1C4) = ebx; /* 0x250DB149: mov dword ptr [edi + 0x1c4], ebx */ 3031 esi = eax + 0x4; /* 0x250DB14F: lea esi, [eax + 4] */ 3032 MEM32(eax) = 0x25158364u; /* 0x250DB152: mov dword ptr [eax], 0x25158364 */ 3033 eax = MEM32(esi + 0x4); /* 0x250DB158: mov eax, dword ptr [esi + 4] */ 3034 /* cmp MEM32(esi + 0x10), ebx */ /* 0x250DB15B: cmp dword ptr [esi + 0x10], ebx */ 3035 _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(ebx); 3036 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3037 _flag_k = FK_CMP; 3038 MEM32(ebp + (-0x10)) = eax; /* 0x250DB15E: mov dword ptr [ebp - 0x10], eax */ 3039 eax = MEM32(eax); /* 0x250DB161: mov eax, dword ptr [eax] */ 3040 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x250DB163: mov byte ptr [ebp - 4], 1 */ 3041 MEM32(ebp + (-0x14)) = eax; /* 0x250DB167: mov dword ptr [ebp - 0x14], eax */ 3042 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB16A: je 0x250db1be */ 3043 L_250DB16C: 3044 eax = ebp + (-0x1C); /* 0x250DB16C: lea eax, [ebp - 0x1c] */ 3045 PUSH32(esp, eax); /* 0x250DB16F: push eax */ 3046 ecx = esi; /* 0x250DB170: mov ecx, esi */ 3047 RECOMP_ICALL(0x25085270u); /* 0x250DB172: call 0x25085270 */ /* not lifted */ 3048 RECOMP_FLAGS_IN(); 3049 ecx = eax; /* 0x250DB177: mov ecx, eax */ 3050 edx = MEM32(ecx); /* 0x250DB179: mov edx, dword ptr [ecx] */ 3051 eax = MEM32(ebp + (-0x14)); /* 0x250DB17B: mov eax, dword ptr [ebp - 0x14] */ 3052 /* cmp eax, edx */ /* 0x250DB17E: cmp eax, edx */ 3053 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3054 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3055 _flag_k = FK_CMP; 3056 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x250DB180: setne cl */ 3057 /* cmp LO8(ecx), LO8(ebx) */ /* 0x250DB183: cmp cl, bl */ 3058 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3059 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3060 _flag_k = FK_NARROW(FK_CMP, 24); 3061 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB185: jne 0x250db1be */ 3062 L_250DB187: 3063 ecx = MEM32(esi + 0x4); /* 0x250DB187: mov ecx, dword ptr [esi + 4] */ 3064 /* cmp MEM32(ebp + (-0x10)), ecx */ /* 0x250DB18A: cmp dword ptr [ebp - 0x10], ecx */ 3065 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ecx); 3066 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3067 _flag_k = FK_CMP; 3068 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB18D: jne 0x250db1be */ 3069 L_250DB18F: 3070 edx = MEM32(ecx + 0x4); /* 0x250DB18F: mov edx, dword ptr [ecx + 4] */ 3071 PUSH32(esp, edx); /* 0x250DB192: push edx */ 3072 ecx = esi; /* 0x250DB193: mov ecx, esi */ 3073 RECOMP_ICALL(0x25006C00u); /* 0x250DB195: call 0x25006c00 */ /* not lifted */ 3074 RECOMP_FLAGS_IN(); 3075 eax = MEM32(esi + 0x4); /* 0x250DB19A: mov eax, dword ptr [esi + 4] */ 3076 ecx = MEM32(esi + 0x8); /* 0x250DB19D: mov ecx, dword ptr [esi + 8] */ 3077 MEM32(eax + 0x4) = ecx; /* 0x250DB1A0: mov dword ptr [eax + 4], ecx */ 3078 eax = MEM32(esi + 0x4); /* 0x250DB1A3: mov eax, dword ptr [esi + 4] */ 3079 MEM32(esi + 0x10) = ebx; /* 0x250DB1A6: mov dword ptr [esi + 0x10], ebx */ 3080 MEM32(eax) = eax; /* 0x250DB1A9: mov dword ptr [eax], eax */ 3081 eax = MEM32(esi + 0x4); /* 0x250DB1AB: mov eax, dword ptr [esi + 4] */ 3082 edx = ebp + (-0x1C); /* 0x250DB1AE: lea edx, [ebp - 0x1c] */ 3083 PUSH32(esp, edx); /* 0x250DB1B1: push edx */ 3084 ecx = esi; /* 0x250DB1B2: mov ecx, esi */ 3085 MEM32(eax + 0x8) = eax; /* 0x250DB1B4: mov dword ptr [eax + 8], eax */ 3086 RECOMP_ICALL(0x25085270u); /* 0x250DB1B7: call 0x25085270 */ /* not lifted */ 3087 RECOMP_FLAGS_IN(); 3088 goto L_250DB1E6; /* 0x250DB1BC: jmp 0x250db1e6 */ 3089 L_250DB1BE: 3090 /* cmp eax, MEM32(ebp + (-0x10)) */ /* 0x250DB1BE: cmp eax, dword ptr [ebp - 0x10] */ 3091 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 3092 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3093 _flag_k = FK_CMP; 3094 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB1E6; /* 0x250DB1C1: je 0x250db1e6 */ 3095 L_250DB1C3: 3096 PUSH32(esp, ebx); /* 0x250DB1C3: push ebx */ 3097 eax = ebp + (-0x1C); /* 0x250DB1C4: lea eax, [ebp - 0x1c] */ 3098 PUSH32(esp, eax); /* 0x250DB1C7: push eax */ 3099 ecx = ebp + (-0x14); /* 0x250DB1C8: lea ecx, [ebp - 0x14] */ 3100 RECOMP_ICALL(0x250076D0u); /* 0x250DB1CB: call 0x250076d0 */ /* not lifted */ 3101 RECOMP_FLAGS_IN(); 3102 ecx = MEM32(eax); /* 0x250DB1D0: mov ecx, dword ptr [eax] */ 3103 PUSH32(esp, ecx); /* 0x250DB1D2: push ecx */ 3104 edx = ebp + (-0x20); /* 0x250DB1D3: lea edx, [ebp - 0x20] */ 3105 PUSH32(esp, edx); /* 0x250DB1D6: push edx */ 3106 ecx = esi; /* 0x250DB1D7: mov ecx, esi */ 3107 RECOMP_ICALL(0x25006380u); /* 0x250DB1D9: call 0x25006380 */ /* not lifted */ 3108 RECOMP_FLAGS_IN(); 3109 eax = MEM32(ebp + (-0x10)); /* 0x250DB1DE: mov eax, dword ptr [ebp - 0x10] */ 3110 /* cmp MEM32(ebp + (-0x14)), eax */ /* 0x250DB1E1: cmp dword ptr [ebp - 0x14], eax */ 3111 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(eax); 3112 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3113 _flag_k = FK_CMP; 3114 RECOMP_BACKEDGE(); 3115 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1C3; /* 0x250DB1E4: jne 0x250db1c3 */ 3116 L_250DB1E6: 3117 eax = MEM32(esi + 0x4); /* 0x250DB1E6: mov eax, dword ptr [esi + 4] */ 3118 PUSH32(esp, eax); /* 0x250DB1E9: push eax */ 3119 RECOMP_ICALL(0x25137EECu); /* 0x250DB1EA: call 0x25137eec */ /* not lifted */ 3120 RECOMP_FLAGS_IN(); 3121 eax = MEM32(esi + 0x8); /* 0x250DB1EF: mov eax, dword ptr [esi + 8] */ 3122 PUSH32(esp, eax); /* 0x250DB1F2: push eax */ 3123 MEM32(esi + 0x4) = ebx; /* 0x250DB1F3: mov dword ptr [esi + 4], ebx */ 3124 MEM32(esi + 0x10) = ebx; /* 0x250DB1F6: mov dword ptr [esi + 0x10], ebx */ 3125 RECOMP_ICALL(0x25137EECu); /* 0x250DB1F9: call 0x25137eec */ /* not lifted */ 3126 RECOMP_FLAGS_IN(); 3127 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3128 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3129 esp = esp + 8; /* 0x250DB1FE: add esp, 8 */ 3130 _flag_k = FK_ADD; 3131 eax = edi; /* 0x250DB201: mov eax, edi */ 3132 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 3133 _cf = (eax) != 0; 3134 eax = (uint32_t)(-(int32_t)eax); /* 0x250DB203: neg eax */ 3135 _flag_k = FK_CMP; 3136 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x250DB205: sbb eax, eax */ 3137 eax = _sc ? 0xFFFFFFFFu : 0; 3138 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 3139 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 3140 MEM32(esi + 0x8) = ebx; /* 0x250DB207: mov dword ptr [esi + 8], ebx */ 3141 ecx = edi + 0x138; /* 0x250DB20A: lea ecx, [edi + 0x138] */ 3142 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3143 eax = eax & ecx; /* 0x250DB210: and eax, ecx */ 3144 _cf = 0; 3145 _flag_k = FK_TEST; 3146 esi = eax + 0x4; /* 0x250DB212: lea esi, [eax + 4] */ 3147 MEM32(eax) = 0x25158374u; /* 0x250DB215: mov dword ptr [eax], 0x25158374 */ 3148 eax = MEM32(esi + 0x4); /* 0x250DB21B: mov eax, dword ptr [esi + 4] */ 3149 /* cmp MEM32(esi + 0x10), ebx */ /* 0x250DB21E: cmp dword ptr [esi + 0x10], ebx */ 3150 _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(ebx); 3151 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3152 _flag_k = FK_CMP; 3153 MEM32(ebp + (-0x14)) = eax; /* 0x250DB221: mov dword ptr [ebp - 0x14], eax */ 3154 eax = MEM32(eax); /* 0x250DB224: mov eax, dword ptr [eax] */ 3155 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x250DB226: mov byte ptr [ebp - 4], bl */ 3156 MEM32(ebp + (-0x10)) = eax; /* 0x250DB229: mov dword ptr [ebp - 0x10], eax */ 3157 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB22C: je 0x250db280 */ 3158 L_250DB22E: 3159 ecx = ebp + (-0x20); /* 0x250DB22E: lea ecx, [ebp - 0x20] */ 3160 PUSH32(esp, ecx); /* 0x250DB231: push ecx */ 3161 ecx = esi; /* 0x250DB232: mov ecx, esi */ 3162 RECOMP_ICALL(0x25085270u); /* 0x250DB234: call 0x25085270 */ /* not lifted */ 3163 RECOMP_FLAGS_IN(); 3164 edx = eax; /* 0x250DB239: mov edx, eax */ 3165 ecx = MEM32(edx); /* 0x250DB23B: mov ecx, dword ptr [edx] */ 3166 eax = MEM32(ebp + (-0x10)); /* 0x250DB23D: mov eax, dword ptr [ebp - 0x10] */ 3167 /* cmp eax, ecx */ /* 0x250DB240: cmp eax, ecx */ 3168 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3169 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3170 _flag_k = FK_CMP; 3171 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x250DB242: setne cl */ 3172 /* cmp LO8(ecx), LO8(ebx) */ /* 0x250DB245: cmp cl, bl */ 3173 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3174 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3175 _flag_k = FK_NARROW(FK_CMP, 24); 3176 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB247: jne 0x250db280 */ 3177 L_250DB249: 3178 ecx = MEM32(esi + 0x4); /* 0x250DB249: mov ecx, dword ptr [esi + 4] */ 3179 /* cmp MEM32(ebp + (-0x14)), ecx */ /* 0x250DB24C: cmp dword ptr [ebp - 0x14], ecx */ 3180 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(ecx); 3181 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3182 _flag_k = FK_CMP; 3183 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB24F: jne 0x250db280 */ 3184 L_250DB251: 3185 eax = MEM32(ecx + 0x4); /* 0x250DB251: mov eax, dword ptr [ecx + 4] */ 3186 PUSH32(esp, eax); /* 0x250DB254: push eax */ 3187 ecx = esi; /* 0x250DB255: mov ecx, esi */ 3188 RECOMP_ICALL(0x250068F0u); /* 0x250DB257: call 0x250068f0 */ /* not lifted */ 3189 RECOMP_FLAGS_IN(); 3190 ecx = MEM32(esi + 0x4); /* 0x250DB25C: mov ecx, dword ptr [esi + 4] */ 3191 edx = MEM32(esi + 0x8); /* 0x250DB25F: mov edx, dword ptr [esi + 8] */ 3192 MEM32(ecx + 0x4) = edx; /* 0x250DB262: mov dword ptr [ecx + 4], edx */ 3193 eax = MEM32(esi + 0x4); /* 0x250DB265: mov eax, dword ptr [esi + 4] */ 3194 MEM32(esi + 0x10) = ebx; /* 0x250DB268: mov dword ptr [esi + 0x10], ebx */ 3195 MEM32(eax) = eax; /* 0x250DB26B: mov dword ptr [eax], eax */ 3196 eax = MEM32(esi + 0x4); /* 0x250DB26D: mov eax, dword ptr [esi + 4] */ 3197 MEM32(eax + 0x8) = eax; /* 0x250DB270: mov dword ptr [eax + 8], eax */ 3198 eax = ebp + (-0x20); /* 0x250DB273: lea eax, [ebp - 0x20] */ 3199 PUSH32(esp, eax); /* 0x250DB276: push eax */ 3200 ecx = esi; /* 0x250DB277: mov ecx, esi */ 3201 RECOMP_ICALL(0x25085270u); /* 0x250DB279: call 0x25085270 */ /* not lifted */ 3202 RECOMP_FLAGS_IN(); 3203 goto L_250DB2A8; /* 0x250DB27E: jmp 0x250db2a8 */ 3204 L_250DB280: 3205 /* cmp eax, MEM32(ebp + (-0x14)) */ /* 0x250DB280: cmp eax, dword ptr [ebp - 0x14] */ 3206 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 3207 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3208 _flag_k = FK_CMP; 3209 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB2A8; /* 0x250DB283: je 0x250db2a8 */ 3210 L_250DB285: 3211 PUSH32(esp, ebx); /* 0x250DB285: push ebx */ 3212 ecx = ebp + (-0x20); /* 0x250DB286: lea ecx, [ebp - 0x20] */ 3213 PUSH32(esp, ecx); /* 0x250DB289: push ecx */ 3214 ecx = ebp + (-0x10); /* 0x250DB28A: lea ecx, [ebp - 0x10] */ 3215 RECOMP_ICALL(0x250076D0u); /* 0x250DB28D: call 0x250076d0 */ /* not lifted */ 3216 RECOMP_FLAGS_IN(); 3217 edx = MEM32(eax); /* 0x250DB292: mov edx, dword ptr [eax] */ 3218 PUSH32(esp, edx); /* 0x250DB294: push edx */ 3219 eax = ebp + (-0x1C); /* 0x250DB295: lea eax, [ebp - 0x1c] */ 3220 PUSH32(esp, eax); /* 0x250DB298: push eax */ 3221 ecx = esi; /* 0x250DB299: mov ecx, esi */ 3222 RECOMP_ICALL(0x25006380u); /* 0x250DB29B: call 0x25006380 */ /* not lifted */ 3223 RECOMP_FLAGS_IN(); 3224 ecx = MEM32(ebp + (-0x14)); /* 0x250DB2A0: mov ecx, dword ptr [ebp - 0x14] */ 3225 /* cmp MEM32(ebp + (-0x10)), ecx */ /* 0x250DB2A3: cmp dword ptr [ebp - 0x10], ecx */ 3226 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ecx); 3227 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3228 _flag_k = FK_CMP; 3229 RECOMP_BACKEDGE(); 3230 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB285; /* 0x250DB2A6: jne 0x250db285 */ 3231 L_250DB2A8: 3232 eax = MEM32(esi + 0x4); /* 0x250DB2A8: mov eax, dword ptr [esi + 4] */ 3233 PUSH32(esp, eax); /* 0x250DB2AB: push eax */ 3234 RECOMP_ICALL(0x25137EECu); /* 0x250DB2AC: call 0x25137eec */ /* not lifted */ 3235 RECOMP_FLAGS_IN(); 3236 eax = MEM32(esi + 0x8); /* 0x250DB2B1: mov eax, dword ptr [esi + 8] */ 3237 PUSH32(esp, eax); /* 0x250DB2B4: push eax */ 3238 MEM32(esi + 0x4) = ebx; /* 0x250DB2B5: mov dword ptr [esi + 4], ebx */ 3239 MEM32(esi + 0x10) = ebx; /* 0x250DB2B8: mov dword ptr [esi + 0x10], ebx */ 3240 RECOMP_ICALL(0x25137EECu); /* 0x250DB2BB: call 0x25137eec */ /* not lifted */ 3241 RECOMP_FLAGS_IN(); 3242 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3243 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3244 esp = esp + 8; /* 0x250DB2C0: add esp, 8 */ 3245 _flag_k = FK_ADD; 3246 ecx = edi; /* 0x250DB2C3: mov ecx, edi */ 3247 MEM32(esi + 0x8) = ebx; /* 0x250DB2C5: mov dword ptr [esi + 8], ebx */ 3248 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x250DB2C8: mov dword ptr [ebp - 4], 0xffffffff */ 3249 RECOMP_ICALL(0x250E19E0u); /* 0x250DB2CF: call 0x250e19e0 */ /* not lifted */ 3250 RECOMP_FLAGS_IN(); 3251 ecx = MEM32(ebp + (-0xC)); /* 0x250DB2D4: mov ecx, dword ptr [ebp - 0xc] */ 3252 edi = POP32_VAL(esp); /* 0x250DB2D7: pop edi */ 3253 esi = POP32_VAL(esp); /* 0x250DB2D8: pop esi */ 3254 ebx = POP32_VAL(esp); /* 0x250DB2D9: pop ebx */ 3255 MEM32(FS_BASE + (0)) = ecx; /* 0x250DB2DA: mov dword ptr fs:[0], ecx */ 3256 esp = ebp; /* 0x250DB2E1: mov esp, ebp */ 3257 ebp = POP32_VAL(esp); /* 0x250DB2E3: pop ebp */ 3258 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250DB2E4: ret */ 3259 L_25146500: 3260 ecx = MEM32(ebp + (-0x10)); /* 0x25146500: mov ecx, dword ptr [ebp - 0x10] */ 3261 RECOMP_BACKEDGE(); 3262 goto L_250DB0B0; /* 0x25146503: jmp 0x250db0b0 */ 3263 { RECOMP_REGS_OUT(); return; } /* end of function */ 3264 RECOMP_REGS_OUT(); 3265 } 3266 3267 void sub_25146508(void) { 3268 int _fpu_cmp = 0; 3269 uint32_t _cf = 0; 3270 int _df = 1; 3271 uint32_t _flag_k = FK_NONE; 3272 uint32_t _flag_a = 0, _flag_b = 0; 3273 uint32_t _itail_tgt = 0; 3274 RECOMP_REGS_LOCALS 3275 RECOMP_ENTER(0x25146508u); 3276 3277 L_25146508: 3278 eax = MEM32(ebp + 0x8); /* 0x25146508: mov eax, dword ptr [ebp + 8] */ 3279 PUSH32(esp, eax); /* 0x2514650B: push eax */ 3280 RECOMP_ICALL(0x25137EECu); /* 0x2514650C: call 0x25137eec */ /* not lifted */ 3281 RECOMP_FLAGS_IN(); 3282 ecx = POP32_VAL(esp); /* 0x25146511: pop ecx */ 3283 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25146512: ret */ 3284 RECOMP_REGS_OUT(); 3285 } 3286 3287 void sub_25146513(void) { 3288 int _fpu_cmp = 0; 3289 uint32_t _cf = 0; 3290 int _df = 1; 3291 uint32_t _flag_k = FK_NONE; 3292 uint32_t _flag_a = 0, _flag_b = 0; 3293 uint32_t _itail_tgt = 0; 3294 RECOMP_REGS_LOCALS 3295 RECOMP_ENTER(0x25146513u); 3296 3297 L_25146513: 3298 eax = MEM32(ebp + 0x8); /* 0x25146513: mov eax, dword ptr [ebp + 8] */ 3299 PUSH32(esp, eax); /* 0x25146516: push eax */ 3300 RECOMP_ICALL(0x25137EECu); /* 0x25146517: call 0x25137eec */ /* not lifted */ 3301 RECOMP_FLAGS_IN(); 3302 ecx = POP32_VAL(esp); /* 0x2514651C: pop ecx */ 3303 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2514651D: ret */ 3304 RECOMP_REGS_OUT(); 3305 } 3306 3307 void sub_2514651E(void) { 3308 int _fpu_cmp = 0; 3309 uint32_t _cf = 0; 3310 int _df = 1; 3311 uint32_t _flag_k = FK_NONE; 3312 uint32_t _flag_a = 0, _flag_b = 0; 3313 uint32_t _itail_tgt = 0; 3314 RECOMP_REGS_LOCALS 3315 RECOMP_ENTER(0x2514651Eu); 3316 3317 goto L_2514651E; 3318 L_251380C4: 3319 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 3320 L_2514651E: 3321 eax = 0x25166A48u; /* 0x2514651E: mov eax, 0x25166a48 */ 3322 L_25146523: 3323 RECOMP_BACKEDGE(); 3324 goto L_251380C4; /* 0x25146523: jmp 0x251380c4 */ 3325 { RECOMP_REGS_OUT(); return; } /* end of function */ 3326 _ljump: 3327 switch (_itail_tgt) { 3328 case 0x251380C4u: goto L_251380C4; 3329 case 0x2514651Eu: goto L_2514651E; 3330 case 0x25146523u: goto L_25146523; 3331 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3332 } 3333 RECOMP_REGS_OUT(); 3334 } 3335 3336 void sub_25146530(void) { 3337 int _fpu_cmp = 0; 3338 uint32_t _cf = 0; 3339 int _df = 1; 3340 uint32_t _flag_k = FK_NONE; 3341 uint32_t _flag_a = 0, _flag_b = 0; 3342 uint32_t _itail_tgt = 0; 3343 RECOMP_REGS_LOCALS 3344 RECOMP_ENTER(0x25146530u); 3345 3346 goto L_25146530; 3347 L_250DB0B0: 3348 PUSH32(esp, ebp); /* 0x250DB0B0: push ebp */ 3349 ebp = esp; /* 0x250DB0B1: mov ebp, esp */ 3350 PUSH32(esp, 0xFFFFFFFFu); /* 0x250DB0B3: push -1 */ 3351 PUSH32(esp, 0x2514AD21u); /* 0x250DB0B5: push 0x2514ad21 */ 3352 eax = MEM32(FS_BASE + (0)); /* 0x250DB0BA: mov eax, dword ptr fs:[0] */ 3353 PUSH32(esp, eax); /* 0x250DB0C0: push eax */ 3354 MEM32(FS_BASE + (0)) = esp; /* 0x250DB0C1: mov dword ptr fs:[0], esp */ 3355 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3356 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3357 esp = esp - 0x14u; /* 0x250DB0C8: sub esp, 0x14 */ 3358 _flag_k = FK_CMP; 3359 PUSH32(esp, ebx); /* 0x250DB0CB: push ebx */ 3360 PUSH32(esp, esi); /* 0x250DB0CC: push esi */ 3361 PUSH32(esp, edi); /* 0x250DB0CD: push edi */ 3362 edi = ecx; /* 0x250DB0CE: mov edi, ecx */ 3363 esi = edi + 0x150; /* 0x250DB0D0: lea esi, [edi + 0x150] */ 3364 MEM32(ebp + (-0x18)) = edi; /* 0x250DB0D6: mov dword ptr [ebp - 0x18], edi */ 3365 MEM32(edi) = 0x25158310u; /* 0x250DB0D9: mov dword ptr [edi], 0x25158310 */ 3366 MEM32(edi + 0x8) = 0x25158300u; /* 0x250DB0DF: mov dword ptr [edi + 8], 0x25158300 */ 3367 MEM32(edi + 0x20) = 0x251582F0u; /* 0x250DB0E6: mov dword ptr [edi + 0x20], 0x251582f0 */ 3368 MEM32(edi + 0x38) = 0x251582E0u; /* 0x250DB0ED: mov dword ptr [edi + 0x38], 0x251582e0 */ 3369 MEM32(edi + 0x50) = 0x251582D0u; /* 0x250DB0F4: mov dword ptr [edi + 0x50], 0x251582d0 */ 3370 MEM32(edi + 0x138) = 0x251582C0u; /* 0x250DB0FB: mov dword ptr [edi + 0x138], 0x251582c0 */ 3371 MEM32(esi) = 0x251582B0u; /* 0x250DB105: mov dword ptr [esi], 0x251582b0 */ 3372 ecx = MEM32(edi + 0x168); /* 0x250DB10B: mov ecx, dword ptr [edi + 0x168] */ 3373 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3374 ebx = 0; /* 0x250DB111: xor ebx, ebx */ 3375 _cf = 0; 3376 _flag_k = FK_TEST; 3377 /* cmp ecx, ebx */ /* 0x250DB113: cmp ecx, ebx */ 3378 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 3379 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3380 _flag_k = FK_CMP; 3381 MEM32(ebp + (-0x4)) = 3; /* 0x250DB115: mov dword ptr [ebp - 4], 3 */ 3382 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB123; /* 0x250DB11C: je 0x250db123 */ 3383 L_250DB11E: 3384 RECOMP_ICALL(0x250E6370u); /* 0x250DB11E: call 0x250e6370 */ /* not lifted */ 3385 RECOMP_FLAGS_IN(); 3386 L_250DB123: 3387 eax = MEM32(edi + 0x1BC); /* 0x250DB123: mov eax, dword ptr [edi + 0x1bc] */ 3388 PUSH32(esp, eax); /* 0x250DB129: push eax */ 3389 MEM32(ebp + (-0x14)) = eax; /* 0x250DB12A: mov dword ptr [ebp - 0x14], eax */ 3390 RECOMP_ICALL(0x25137EECu); /* 0x250DB12D: call 0x25137eec */ /* not lifted */ 3391 RECOMP_FLAGS_IN(); 3392 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3393 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3394 esp = esp + 4; /* 0x250DB132: add esp, 4 */ 3395 _flag_k = FK_ADD; 3396 eax = edi; /* 0x250DB135: mov eax, edi */ 3397 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 3398 _cf = (eax) != 0; 3399 eax = (uint32_t)(-(int32_t)eax); /* 0x250DB137: neg eax */ 3400 _flag_k = FK_CMP; 3401 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x250DB139: sbb eax, eax */ 3402 eax = _sc ? 0xFFFFFFFFu : 0; 3403 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 3404 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 3405 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 3406 eax = eax & esi; /* 0x250DB13B: and eax, esi */ 3407 _cf = 0; 3408 _flag_k = FK_TEST; 3409 MEM32(edi + 0x1BC) = ebx; /* 0x250DB13D: mov dword ptr [edi + 0x1bc], ebx */ 3410 MEM32(edi + 0x1C0) = ebx; /* 0x250DB143: mov dword ptr [edi + 0x1c0], ebx */ 3411 MEM32(edi + 0x1C4) = ebx; /* 0x250DB149: mov dword ptr [edi + 0x1c4], ebx */ 3412 esi = eax + 0x4; /* 0x250DB14F: lea esi, [eax + 4] */ 3413 MEM32(eax) = 0x25158364u; /* 0x250DB152: mov dword ptr [eax], 0x25158364 */ 3414 eax = MEM32(esi + 0x4); /* 0x250DB158: mov eax, dword ptr [esi + 4] */ 3415 /* cmp MEM32(esi + 0x10), ebx */ /* 0x250DB15B: cmp dword ptr [esi + 0x10], ebx */ 3416 _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(ebx); 3417 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3418 _flag_k = FK_CMP; 3419 MEM32(ebp + (-0x10)) = eax; /* 0x250DB15E: mov dword ptr [ebp - 0x10], eax */ 3420 eax = MEM32(eax); /* 0x250DB161: mov eax, dword ptr [eax] */ 3421 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x250DB163: mov byte ptr [ebp - 4], 1 */ 3422 MEM32(ebp + (-0x14)) = eax; /* 0x250DB167: mov dword ptr [ebp - 0x14], eax */ 3423 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB16A: je 0x250db1be */ 3424 L_250DB16C: 3425 eax = ebp + (-0x1C); /* 0x250DB16C: lea eax, [ebp - 0x1c] */ 3426 PUSH32(esp, eax); /* 0x250DB16F: push eax */ 3427 ecx = esi; /* 0x250DB170: mov ecx, esi */ 3428 RECOMP_ICALL(0x25085270u); /* 0x250DB172: call 0x25085270 */ /* not lifted */ 3429 RECOMP_FLAGS_IN(); 3430 ecx = eax; /* 0x250DB177: mov ecx, eax */ 3431 edx = MEM32(ecx); /* 0x250DB179: mov edx, dword ptr [ecx] */ 3432 eax = MEM32(ebp + (-0x14)); /* 0x250DB17B: mov eax, dword ptr [ebp - 0x14] */ 3433 /* cmp eax, edx */ /* 0x250DB17E: cmp eax, edx */ 3434 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3435 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3436 _flag_k = FK_CMP; 3437 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x250DB180: setne cl */ 3438 /* cmp LO8(ecx), LO8(ebx) */ /* 0x250DB183: cmp cl, bl */ 3439 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3440 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3441 _flag_k = FK_NARROW(FK_CMP, 24); 3442 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB185: jne 0x250db1be */ 3443 L_250DB187: 3444 ecx = MEM32(esi + 0x4); /* 0x250DB187: mov ecx, dword ptr [esi + 4] */ 3445 /* cmp MEM32(ebp + (-0x10)), ecx */ /* 0x250DB18A: cmp dword ptr [ebp - 0x10], ecx */ 3446 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ecx); 3447 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3448 _flag_k = FK_CMP; 3449 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB18D: jne 0x250db1be */ 3450 L_250DB18F: 3451 edx = MEM32(ecx + 0x4); /* 0x250DB18F: mov edx, dword ptr [ecx + 4] */ 3452 PUSH32(esp, edx); /* 0x250DB192: push edx */ 3453 ecx = esi; /* 0x250DB193: mov ecx, esi */ 3454 RECOMP_ICALL(0x25006C00u); /* 0x250DB195: call 0x25006c00 */ /* not lifted */ 3455 RECOMP_FLAGS_IN(); 3456 eax = MEM32(esi + 0x4); /* 0x250DB19A: mov eax, dword ptr [esi + 4] */ 3457 ecx = MEM32(esi + 0x8); /* 0x250DB19D: mov ecx, dword ptr [esi + 8] */ 3458 MEM32(eax + 0x4) = ecx; /* 0x250DB1A0: mov dword ptr [eax + 4], ecx */ 3459 eax = MEM32(esi + 0x4); /* 0x250DB1A3: mov eax, dword ptr [esi + 4] */ 3460 MEM32(esi + 0x10) = ebx; /* 0x250DB1A6: mov dword ptr [esi + 0x10], ebx */ 3461 MEM32(eax) = eax; /* 0x250DB1A9: mov dword ptr [eax], eax */ 3462 eax = MEM32(esi + 0x4); /* 0x250DB1AB: mov eax, dword ptr [esi + 4] */ 3463 edx = ebp + (-0x1C); /* 0x250DB1AE: lea edx, [ebp - 0x1c] */ 3464 PUSH32(esp, edx); /* 0x250DB1B1: push edx */ 3465 ecx = esi; /* 0x250DB1B2: mov ecx, esi */ 3466 MEM32(eax + 0x8) = eax; /* 0x250DB1B4: mov dword ptr [eax + 8], eax */ 3467 RECOMP_ICALL(0x25085270u); /* 0x250DB1B7: call 0x25085270 */ /* not lifted */ 3468 RECOMP_FLAGS_IN(); 3469 goto L_250DB1E6; /* 0x250DB1BC: jmp 0x250db1e6 */ 3470 L_250DB1BE: 3471 /* cmp eax, MEM32(ebp + (-0x10)) */ /* 0x250DB1BE: cmp eax, dword ptr [ebp - 0x10] */ 3472 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 3473 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3474 _flag_k = FK_CMP; 3475 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB1E6; /* 0x250DB1C1: je 0x250db1e6 */ 3476 L_250DB1C3: 3477 PUSH32(esp, ebx); /* 0x250DB1C3: push ebx */ 3478 eax = ebp + (-0x1C); /* 0x250DB1C4: lea eax, [ebp - 0x1c] */ 3479 PUSH32(esp, eax); /* 0x250DB1C7: push eax */ 3480 ecx = ebp + (-0x14); /* 0x250DB1C8: lea ecx, [ebp - 0x14] */ 3481 RECOMP_ICALL(0x250076D0u); /* 0x250DB1CB: call 0x250076d0 */ /* not lifted */ 3482 RECOMP_FLAGS_IN(); 3483 ecx = MEM32(eax); /* 0x250DB1D0: mov ecx, dword ptr [eax] */ 3484 PUSH32(esp, ecx); /* 0x250DB1D2: push ecx */ 3485 edx = ebp + (-0x20); /* 0x250DB1D3: lea edx, [ebp - 0x20] */ 3486 PUSH32(esp, edx); /* 0x250DB1D6: push edx */ 3487 ecx = esi; /* 0x250DB1D7: mov ecx, esi */ 3488 RECOMP_ICALL(0x25006380u); /* 0x250DB1D9: call 0x25006380 */ /* not lifted */ 3489 RECOMP_FLAGS_IN(); 3490 eax = MEM32(ebp + (-0x10)); /* 0x250DB1DE: mov eax, dword ptr [ebp - 0x10] */ 3491 /* cmp MEM32(ebp + (-0x14)), eax */ /* 0x250DB1E1: cmp dword ptr [ebp - 0x14], eax */ 3492 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(eax); 3493 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3494 _flag_k = FK_CMP; 3495 RECOMP_BACKEDGE(); 3496 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1C3; /* 0x250DB1E4: jne 0x250db1c3 */ 3497 L_250DB1E6: 3498 eax = MEM32(esi + 0x4); /* 0x250DB1E6: mov eax, dword ptr [esi + 4] */ 3499 PUSH32(esp, eax); /* 0x250DB1E9: push eax */ 3500 RECOMP_ICALL(0x25137EECu); /* 0x250DB1EA: call 0x25137eec */ /* not lifted */ 3501 RECOMP_FLAGS_IN(); 3502 eax = MEM32(esi + 0x8); /* 0x250DB1EF: mov eax, dword ptr [esi + 8] */ 3503 PUSH32(esp, eax); /* 0x250DB1F2: push eax */ 3504 MEM32(esi + 0x4) = ebx; /* 0x250DB1F3: mov dword ptr [esi + 4], ebx */ 3505 MEM32(esi + 0x10) = ebx; /* 0x250DB1F6: mov dword ptr [esi + 0x10], ebx */ 3506 RECOMP_ICALL(0x25137EECu); /* 0x250DB1F9: call 0x25137eec */ /* not lifted */ 3507 RECOMP_FLAGS_IN(); 3508 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3509 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3510 esp = esp + 8; /* 0x250DB1FE: add esp, 8 */ 3511 _flag_k = FK_ADD; 3512 eax = edi; /* 0x250DB201: mov eax, edi */ 3513 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 3514 _cf = (eax) != 0; 3515 eax = (uint32_t)(-(int32_t)eax); /* 0x250DB203: neg eax */ 3516 _flag_k = FK_CMP; 3517 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x250DB205: sbb eax, eax */ 3518 eax = _sc ? 0xFFFFFFFFu : 0; 3519 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 3520 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 3521 MEM32(esi + 0x8) = ebx; /* 0x250DB207: mov dword ptr [esi + 8], ebx */ 3522 ecx = edi + 0x138; /* 0x250DB20A: lea ecx, [edi + 0x138] */ 3523 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3524 eax = eax & ecx; /* 0x250DB210: and eax, ecx */ 3525 _cf = 0; 3526 _flag_k = FK_TEST; 3527 esi = eax + 0x4; /* 0x250DB212: lea esi, [eax + 4] */ 3528 MEM32(eax) = 0x25158374u; /* 0x250DB215: mov dword ptr [eax], 0x25158374 */ 3529 eax = MEM32(esi + 0x4); /* 0x250DB21B: mov eax, dword ptr [esi + 4] */ 3530 /* cmp MEM32(esi + 0x10), ebx */ /* 0x250DB21E: cmp dword ptr [esi + 0x10], ebx */ 3531 _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(ebx); 3532 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3533 _flag_k = FK_CMP; 3534 MEM32(ebp + (-0x14)) = eax; /* 0x250DB221: mov dword ptr [ebp - 0x14], eax */ 3535 eax = MEM32(eax); /* 0x250DB224: mov eax, dword ptr [eax] */ 3536 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x250DB226: mov byte ptr [ebp - 4], bl */ 3537 MEM32(ebp + (-0x10)) = eax; /* 0x250DB229: mov dword ptr [ebp - 0x10], eax */ 3538 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB22C: je 0x250db280 */ 3539 L_250DB22E: 3540 ecx = ebp + (-0x20); /* 0x250DB22E: lea ecx, [ebp - 0x20] */ 3541 PUSH32(esp, ecx); /* 0x250DB231: push ecx */ 3542 ecx = esi; /* 0x250DB232: mov ecx, esi */ 3543 RECOMP_ICALL(0x25085270u); /* 0x250DB234: call 0x25085270 */ /* not lifted */ 3544 RECOMP_FLAGS_IN(); 3545 edx = eax; /* 0x250DB239: mov edx, eax */ 3546 ecx = MEM32(edx); /* 0x250DB23B: mov ecx, dword ptr [edx] */ 3547 eax = MEM32(ebp + (-0x10)); /* 0x250DB23D: mov eax, dword ptr [ebp - 0x10] */ 3548 /* cmp eax, ecx */ /* 0x250DB240: cmp eax, ecx */ 3549 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3550 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3551 _flag_k = FK_CMP; 3552 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x250DB242: setne cl */ 3553 /* cmp LO8(ecx), LO8(ebx) */ /* 0x250DB245: cmp cl, bl */ 3554 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3555 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3556 _flag_k = FK_NARROW(FK_CMP, 24); 3557 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB247: jne 0x250db280 */ 3558 L_250DB249: 3559 ecx = MEM32(esi + 0x4); /* 0x250DB249: mov ecx, dword ptr [esi + 4] */ 3560 /* cmp MEM32(ebp + (-0x14)), ecx */ /* 0x250DB24C: cmp dword ptr [ebp - 0x14], ecx */ 3561 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(ecx); 3562 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3563 _flag_k = FK_CMP; 3564 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB24F: jne 0x250db280 */ 3565 L_250DB251: 3566 eax = MEM32(ecx + 0x4); /* 0x250DB251: mov eax, dword ptr [ecx + 4] */ 3567 PUSH32(esp, eax); /* 0x250DB254: push eax */ 3568 ecx = esi; /* 0x250DB255: mov ecx, esi */ 3569 RECOMP_ICALL(0x250068F0u); /* 0x250DB257: call 0x250068f0 */ /* not lifted */ 3570 RECOMP_FLAGS_IN(); 3571 ecx = MEM32(esi + 0x4); /* 0x250DB25C: mov ecx, dword ptr [esi + 4] */ 3572 edx = MEM32(esi + 0x8); /* 0x250DB25F: mov edx, dword ptr [esi + 8] */ 3573 MEM32(ecx + 0x4) = edx; /* 0x250DB262: mov dword ptr [ecx + 4], edx */ 3574 eax = MEM32(esi + 0x4); /* 0x250DB265: mov eax, dword ptr [esi + 4] */ 3575 MEM32(esi + 0x10) = ebx; /* 0x250DB268: mov dword ptr [esi + 0x10], ebx */ 3576 MEM32(eax) = eax; /* 0x250DB26B: mov dword ptr [eax], eax */ 3577 eax = MEM32(esi + 0x4); /* 0x250DB26D: mov eax, dword ptr [esi + 4] */ 3578 MEM32(eax + 0x8) = eax; /* 0x250DB270: mov dword ptr [eax + 8], eax */ 3579 eax = ebp + (-0x20); /* 0x250DB273: lea eax, [ebp - 0x20] */ 3580 PUSH32(esp, eax); /* 0x250DB276: push eax */ 3581 ecx = esi; /* 0x250DB277: mov ecx, esi */ 3582 RECOMP_ICALL(0x25085270u); /* 0x250DB279: call 0x25085270 */ /* not lifted */ 3583 RECOMP_FLAGS_IN(); 3584 goto L_250DB2A8; /* 0x250DB27E: jmp 0x250db2a8 */ 3585 L_250DB280: 3586 /* cmp eax, MEM32(ebp + (-0x14)) */ /* 0x250DB280: cmp eax, dword ptr [ebp - 0x14] */ 3587 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 3588 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3589 _flag_k = FK_CMP; 3590 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB2A8; /* 0x250DB283: je 0x250db2a8 */ 3591 L_250DB285: 3592 PUSH32(esp, ebx); /* 0x250DB285: push ebx */ 3593 ecx = ebp + (-0x20); /* 0x250DB286: lea ecx, [ebp - 0x20] */ 3594 PUSH32(esp, ecx); /* 0x250DB289: push ecx */ 3595 ecx = ebp + (-0x10); /* 0x250DB28A: lea ecx, [ebp - 0x10] */ 3596 RECOMP_ICALL(0x250076D0u); /* 0x250DB28D: call 0x250076d0 */ /* not lifted */ 3597 RECOMP_FLAGS_IN(); 3598 edx = MEM32(eax); /* 0x250DB292: mov edx, dword ptr [eax] */ 3599 PUSH32(esp, edx); /* 0x250DB294: push edx */ 3600 eax = ebp + (-0x1C); /* 0x250DB295: lea eax, [ebp - 0x1c] */ 3601 PUSH32(esp, eax); /* 0x250DB298: push eax */ 3602 ecx = esi; /* 0x250DB299: mov ecx, esi */ 3603 RECOMP_ICALL(0x25006380u); /* 0x250DB29B: call 0x25006380 */ /* not lifted */ 3604 RECOMP_FLAGS_IN(); 3605 ecx = MEM32(ebp + (-0x14)); /* 0x250DB2A0: mov ecx, dword ptr [ebp - 0x14] */ 3606 /* cmp MEM32(ebp + (-0x10)), ecx */ /* 0x250DB2A3: cmp dword ptr [ebp - 0x10], ecx */ 3607 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ecx); 3608 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3609 _flag_k = FK_CMP; 3610 RECOMP_BACKEDGE(); 3611 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB285; /* 0x250DB2A6: jne 0x250db285 */ 3612 L_250DB2A8: 3613 eax = MEM32(esi + 0x4); /* 0x250DB2A8: mov eax, dword ptr [esi + 4] */ 3614 PUSH32(esp, eax); /* 0x250DB2AB: push eax */ 3615 RECOMP_ICALL(0x25137EECu); /* 0x250DB2AC: call 0x25137eec */ /* not lifted */ 3616 RECOMP_FLAGS_IN(); 3617 eax = MEM32(esi + 0x8); /* 0x250DB2B1: mov eax, dword ptr [esi + 8] */ 3618 PUSH32(esp, eax); /* 0x250DB2B4: push eax */ 3619 MEM32(esi + 0x4) = ebx; /* 0x250DB2B5: mov dword ptr [esi + 4], ebx */ 3620 MEM32(esi + 0x10) = ebx; /* 0x250DB2B8: mov dword ptr [esi + 0x10], ebx */ 3621 RECOMP_ICALL(0x25137EECu); /* 0x250DB2BB: call 0x25137eec */ /* not lifted */ 3622 RECOMP_FLAGS_IN(); 3623 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3624 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3625 esp = esp + 8; /* 0x250DB2C0: add esp, 8 */ 3626 _flag_k = FK_ADD; 3627 ecx = edi; /* 0x250DB2C3: mov ecx, edi */ 3628 MEM32(esi + 0x8) = ebx; /* 0x250DB2C5: mov dword ptr [esi + 8], ebx */ 3629 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x250DB2C8: mov dword ptr [ebp - 4], 0xffffffff */ 3630 RECOMP_ICALL(0x250E19E0u); /* 0x250DB2CF: call 0x250e19e0 */ /* not lifted */ 3631 RECOMP_FLAGS_IN(); 3632 ecx = MEM32(ebp + (-0xC)); /* 0x250DB2D4: mov ecx, dword ptr [ebp - 0xc] */ 3633 edi = POP32_VAL(esp); /* 0x250DB2D7: pop edi */ 3634 esi = POP32_VAL(esp); /* 0x250DB2D8: pop esi */ 3635 ebx = POP32_VAL(esp); /* 0x250DB2D9: pop ebx */ 3636 MEM32(FS_BASE + (0)) = ecx; /* 0x250DB2DA: mov dword ptr fs:[0], ecx */ 3637 esp = ebp; /* 0x250DB2E1: mov esp, ebp */ 3638 ebp = POP32_VAL(esp); /* 0x250DB2E3: pop ebp */ 3639 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250DB2E4: ret */ 3640 L_25146530: 3641 ecx = MEM32(ebp + (-0x10)); /* 0x25146530: mov ecx, dword ptr [ebp - 0x10] */ 3642 RECOMP_BACKEDGE(); 3643 goto L_250DB0B0; /* 0x25146533: jmp 0x250db0b0 */ 3644 { RECOMP_REGS_OUT(); return; } /* end of function */ 3645 RECOMP_REGS_OUT(); 3646 } 3647 3648 void sub_25146538(void) { 3649 int _fpu_cmp = 0; 3650 uint32_t _cf = 0; 3651 int _df = 1; 3652 uint32_t _flag_k = FK_NONE; 3653 uint32_t _flag_a = 0, _flag_b = 0; 3654 uint32_t _itail_tgt = 0; 3655 RECOMP_REGS_LOCALS 3656 RECOMP_ENTER(0x25146538u); 3657 3658 goto L_25146538; 3659 L_251380C4: 3660 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 3661 L_25146538: 3662 eax = 0x25166A80u; /* 0x25146538: mov eax, 0x25166a80 */ 3663 L_2514653D: 3664 RECOMP_BACKEDGE(); 3665 goto L_251380C4; /* 0x2514653D: jmp 0x251380c4 */ 3666 { RECOMP_REGS_OUT(); return; } /* end of function */ 3667 _ljump: 3668 switch (_itail_tgt) { 3669 case 0x251380C4u: goto L_251380C4; 3670 case 0x25146538u: goto L_25146538; 3671 case 0x2514653Du: goto L_2514653D; 3672 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3673 } 3674 RECOMP_REGS_OUT(); 3675 } 3676 3677 void sub_25146550(void) { 3678 int _fpu_cmp = 0; 3679 uint32_t _cf = 0; 3680 int _df = 1; 3681 uint32_t _flag_k = FK_NONE; 3682 uint32_t _flag_a = 0, _flag_b = 0; 3683 uint32_t _itail_tgt = 0; 3684 RECOMP_REGS_LOCALS 3685 RECOMP_ENTER(0x25146550u); 3686 3687 L_25146550: 3688 ecx = ebp + (-0x64); /* 0x25146550: lea ecx, [ebp - 0x64] */ 3689 L_25146553: 3690 { _itail_tgt = (uint32_t)(MEM32(0x25151504)); goto _ljump; } 3691 { RECOMP_REGS_OUT(); return; } /* end of function */ 3692 _ljump: 3693 switch (_itail_tgt) { 3694 case 0x25146550u: goto L_25146550; 3695 case 0x25146553u: goto L_25146553; 3696 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3697 } 3698 RECOMP_REGS_OUT(); 3699 } 3700 3701 void sub_25146559(void) { 3702 int _fpu_cmp = 0; 3703 uint32_t _cf = 0; 3704 int _df = 1; 3705 uint32_t _flag_k = FK_NONE; 3706 uint32_t _flag_a = 0, _flag_b = 0; 3707 uint32_t _itail_tgt = 0; 3708 RECOMP_REGS_LOCALS 3709 RECOMP_ENTER(0x25146559u); 3710 3711 goto L_25146559; 3712 L_251380C4: 3713 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 3714 L_25146559: 3715 eax = 0x25166AA8u; /* 0x25146559: mov eax, 0x25166aa8 */ 3716 L_2514655E: 3717 RECOMP_BACKEDGE(); 3718 goto L_251380C4; /* 0x2514655E: jmp 0x251380c4 */ 3719 { RECOMP_REGS_OUT(); return; } /* end of function */ 3720 _ljump: 3721 switch (_itail_tgt) { 3722 case 0x251380C4u: goto L_251380C4; 3723 case 0x25146559u: goto L_25146559; 3724 case 0x2514655Eu: goto L_2514655E; 3725 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3726 } 3727 RECOMP_REGS_OUT(); 3728 } 3729 3730 void sub_25146570(void) { 3731 int _fpu_cmp = 0; 3732 uint32_t _cf = 0; 3733 int _df = 1; 3734 uint32_t _flag_k = FK_NONE; 3735 uint32_t _flag_a = 0, _flag_b = 0; 3736 uint32_t _itail_tgt = 0; 3737 RECOMP_REGS_LOCALS 3738 RECOMP_ENTER(0x25146570u); 3739 3740 L_25146570: 3741 ecx = MEM32(ebp + (-0x10)); /* 0x25146570: mov ecx, dword ptr [ebp - 0x10] */ 3742 L_25146573: 3743 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 3744 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3745 ecx = ecx + 8; /* 0x25146573: add ecx, 8 */ 3746 _flag_k = FK_ADD; 3747 L_25146576: 3748 { _itail_tgt = (uint32_t)(MEM32(0x25151504)); goto _ljump; } 3749 { RECOMP_REGS_OUT(); return; } /* end of function */ 3750 _ljump: 3751 switch (_itail_tgt) { 3752 case 0x25146570u: goto L_25146570; 3753 case 0x25146573u: goto L_25146573; 3754 case 0x25146576u: goto L_25146576; 3755 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3756 } 3757 RECOMP_REGS_OUT(); 3758 } 3759 3760 void sub_2514657C(void) { 3761 int _fpu_cmp = 0; 3762 uint32_t _cf = 0; 3763 int _df = 1; 3764 uint32_t _flag_k = FK_NONE; 3765 uint32_t _flag_a = 0, _flag_b = 0; 3766 uint32_t _itail_tgt = 0; 3767 RECOMP_REGS_LOCALS 3768 RECOMP_ENTER(0x2514657Cu); 3769 3770 L_2514657C: 3771 eax = MEM32(ebp + 0xC); /* 0x2514657C: mov eax, dword ptr [ebp + 0xc] */ 3772 PUSH32(esp, eax); /* 0x2514657F: push eax */ 3773 RECOMP_ICALL(0x25137EECu); /* 0x25146580: call 0x25137eec */ /* not lifted */ 3774 RECOMP_FLAGS_IN(); 3775 ecx = POP32_VAL(esp); /* 0x25146585: pop ecx */ 3776 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25146586: ret */ 3777 RECOMP_REGS_OUT(); 3778 } 3779 3780 void sub_25146587(void) { 3781 int _fpu_cmp = 0; 3782 uint32_t _cf = 0; 3783 int _df = 1; 3784 uint32_t _flag_k = FK_NONE; 3785 uint32_t _flag_a = 0, _flag_b = 0; 3786 uint32_t _itail_tgt = 0; 3787 RECOMP_REGS_LOCALS 3788 RECOMP_ENTER(0x25146587u); 3789 3790 L_25146587: 3791 eax = MEM32(ebp + 0xC); /* 0x25146587: mov eax, dword ptr [ebp + 0xc] */ 3792 PUSH32(esp, eax); /* 0x2514658A: push eax */ 3793 RECOMP_ICALL(0x25137EECu); /* 0x2514658B: call 0x25137eec */ /* not lifted */ 3794 RECOMP_FLAGS_IN(); 3795 ecx = POP32_VAL(esp); /* 0x25146590: pop ecx */ 3796 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25146591: ret */ 3797 RECOMP_REGS_OUT(); 3798 } 3799 3800 void sub_25146592(void) { 3801 int _fpu_cmp = 0; 3802 uint32_t _cf = 0; 3803 int _df = 1; 3804 uint32_t _flag_k = FK_NONE; 3805 uint32_t _flag_a = 0, _flag_b = 0; 3806 uint32_t _itail_tgt = 0; 3807 RECOMP_REGS_LOCALS 3808 RECOMP_ENTER(0x25146592u); 3809 3810 goto L_25146592; 3811 L_251380C4: 3812 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 3813 L_25146592: 3814 eax = 0x25166AD0u; /* 0x25146592: mov eax, 0x25166ad0 */ 3815 L_25146597: 3816 RECOMP_BACKEDGE(); 3817 goto L_251380C4; /* 0x25146597: jmp 0x251380c4 */ 3818 { RECOMP_REGS_OUT(); return; } /* end of function */ 3819 _ljump: 3820 switch (_itail_tgt) { 3821 case 0x251380C4u: goto L_251380C4; 3822 case 0x25146592u: goto L_25146592; 3823 case 0x25146597u: goto L_25146597; 3824 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3825 } 3826 RECOMP_REGS_OUT(); 3827 } 3828 3829 void sub_251465A0(void) { 3830 int _fpu_cmp = 0; 3831 uint32_t _cf = 0; 3832 int _df = 1; 3833 uint32_t _flag_k = FK_NONE; 3834 uint32_t _flag_a = 0, _flag_b = 0; 3835 uint32_t _itail_tgt = 0; 3836 RECOMP_REGS_LOCALS 3837 RECOMP_ENTER(0x251465A0u); 3838 3839 L_251465A0: 3840 ecx = MEM32(ebp + (-0x10)); /* 0x251465A0: mov ecx, dword ptr [ebp - 0x10] */ 3841 L_251465A3: 3842 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 3843 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3844 ecx = ecx + 8; /* 0x251465A3: add ecx, 8 */ 3845 _flag_k = FK_ADD; 3846 L_251465A6: 3847 { _itail_tgt = (uint32_t)(MEM32(0x25151504)); goto _ljump; } 3848 { RECOMP_REGS_OUT(); return; } /* end of function */ 3849 _ljump: 3850 switch (_itail_tgt) { 3851 case 0x251465A0u: goto L_251465A0; 3852 case 0x251465A3u: goto L_251465A3; 3853 case 0x251465A6u: goto L_251465A6; 3854 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3855 } 3856 RECOMP_REGS_OUT(); 3857 } 3858 3859 void sub_251465AC(void) { 3860 int _fpu_cmp = 0; 3861 uint32_t _cf = 0; 3862 int _df = 1; 3863 uint32_t _flag_k = FK_NONE; 3864 uint32_t _flag_a = 0, _flag_b = 0; 3865 uint32_t _itail_tgt = 0; 3866 RECOMP_REGS_LOCALS 3867 RECOMP_ENTER(0x251465ACu); 3868 3869 goto L_251465AC; 3870 L_251380C4: 3871 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 3872 L_251465AC: 3873 eax = 0x25166B08u; /* 0x251465AC: mov eax, 0x25166b08 */ 3874 L_251465B1: 3875 RECOMP_BACKEDGE(); 3876 goto L_251380C4; /* 0x251465B1: jmp 0x251380c4 */ 3877 { RECOMP_REGS_OUT(); return; } /* end of function */ 3878 _ljump: 3879 switch (_itail_tgt) { 3880 case 0x251380C4u: goto L_251380C4; 3881 case 0x251465ACu: goto L_251465AC; 3882 case 0x251465B1u: goto L_251465B1; 3883 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3884 } 3885 RECOMP_REGS_OUT(); 3886 } 3887 3888 void sub_251465C0(void) { 3889 int _fpu_cmp = 0; 3890 uint32_t _cf = 0; 3891 int _df = 1; 3892 uint32_t _flag_k = FK_NONE; 3893 uint32_t _flag_a = 0, _flag_b = 0; 3894 uint32_t _itail_tgt = 0; 3895 RECOMP_REGS_LOCALS 3896 RECOMP_ENTER(0x251465C0u); 3897 3898 L_251465C0: 3899 eax = MEM32(ebp + (-0x10)); /* 0x251465C0: mov eax, dword ptr [ebp - 0x10] */ 3900 PUSH32(esp, eax); /* 0x251465C3: push eax */ 3901 RECOMP_ICALL(0x25137EECu); /* 0x251465C4: call 0x25137eec */ /* not lifted */ 3902 RECOMP_FLAGS_IN(); 3903 ecx = POP32_VAL(esp); /* 0x251465C9: pop ecx */ 3904 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x251465CA: ret */ 3905 RECOMP_REGS_OUT(); 3906 } 3907 3908 void sub_251465CB(void) { 3909 int _fpu_cmp = 0; 3910 uint32_t _cf = 0; 3911 int _df = 1; 3912 uint32_t _flag_k = FK_NONE; 3913 uint32_t _flag_a = 0, _flag_b = 0; 3914 uint32_t _itail_tgt = 0; 3915 RECOMP_REGS_LOCALS 3916 RECOMP_ENTER(0x251465CBu); 3917 3918 goto L_251465CB; 3919 L_251380C4: 3920 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 3921 L_251465CB: 3922 eax = 0x25166B30u; /* 0x251465CB: mov eax, 0x25166b30 */ 3923 L_251465D0: 3924 RECOMP_BACKEDGE(); 3925 goto L_251380C4; /* 0x251465D0: jmp 0x251380c4 */ 3926 { RECOMP_REGS_OUT(); return; } /* end of function */ 3927 _ljump: 3928 switch (_itail_tgt) { 3929 case 0x251380C4u: goto L_251380C4; 3930 case 0x251465CBu: goto L_251465CB; 3931 case 0x251465D0u: goto L_251465D0; 3932 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3933 } 3934 RECOMP_REGS_OUT(); 3935 } 3936 3937 void sub_251465E0(void) { 3938 int _fpu_cmp = 0; 3939 uint32_t _cf = 0; 3940 int _df = 1; 3941 uint32_t _flag_k = FK_NONE; 3942 uint32_t _flag_a = 0, _flag_b = 0; 3943 uint32_t _itail_tgt = 0; 3944 RECOMP_REGS_LOCALS 3945 RECOMP_ENTER(0x251465E0u); 3946 3947 goto L_251465E0; 3948 L_250DB0B0: 3949 PUSH32(esp, ebp); /* 0x250DB0B0: push ebp */ 3950 ebp = esp; /* 0x250DB0B1: mov ebp, esp */ 3951 PUSH32(esp, 0xFFFFFFFFu); /* 0x250DB0B3: push -1 */ 3952 PUSH32(esp, 0x2514AD21u); /* 0x250DB0B5: push 0x2514ad21 */ 3953 eax = MEM32(FS_BASE + (0)); /* 0x250DB0BA: mov eax, dword ptr fs:[0] */ 3954 PUSH32(esp, eax); /* 0x250DB0C0: push eax */ 3955 MEM32(FS_BASE + (0)) = esp; /* 0x250DB0C1: mov dword ptr fs:[0], esp */ 3956 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3957 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3958 esp = esp - 0x14u; /* 0x250DB0C8: sub esp, 0x14 */ 3959 _flag_k = FK_CMP; 3960 PUSH32(esp, ebx); /* 0x250DB0CB: push ebx */ 3961 PUSH32(esp, esi); /* 0x250DB0CC: push esi */ 3962 PUSH32(esp, edi); /* 0x250DB0CD: push edi */ 3963 edi = ecx; /* 0x250DB0CE: mov edi, ecx */ 3964 esi = edi + 0x150; /* 0x250DB0D0: lea esi, [edi + 0x150] */ 3965 MEM32(ebp + (-0x18)) = edi; /* 0x250DB0D6: mov dword ptr [ebp - 0x18], edi */ 3966 MEM32(edi) = 0x25158310u; /* 0x250DB0D9: mov dword ptr [edi], 0x25158310 */ 3967 MEM32(edi + 0x8) = 0x25158300u; /* 0x250DB0DF: mov dword ptr [edi + 8], 0x25158300 */ 3968 MEM32(edi + 0x20) = 0x251582F0u; /* 0x250DB0E6: mov dword ptr [edi + 0x20], 0x251582f0 */ 3969 MEM32(edi + 0x38) = 0x251582E0u; /* 0x250DB0ED: mov dword ptr [edi + 0x38], 0x251582e0 */ 3970 MEM32(edi + 0x50) = 0x251582D0u; /* 0x250DB0F4: mov dword ptr [edi + 0x50], 0x251582d0 */ 3971 MEM32(edi + 0x138) = 0x251582C0u; /* 0x250DB0FB: mov dword ptr [edi + 0x138], 0x251582c0 */ 3972 MEM32(esi) = 0x251582B0u; /* 0x250DB105: mov dword ptr [esi], 0x251582b0 */ 3973 ecx = MEM32(edi + 0x168); /* 0x250DB10B: mov ecx, dword ptr [edi + 0x168] */ 3974 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3975 ebx = 0; /* 0x250DB111: xor ebx, ebx */ 3976 _cf = 0; 3977 _flag_k = FK_TEST; 3978 /* cmp ecx, ebx */ /* 0x250DB113: cmp ecx, ebx */ 3979 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 3980 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3981 _flag_k = FK_CMP; 3982 MEM32(ebp + (-0x4)) = 3; /* 0x250DB115: mov dword ptr [ebp - 4], 3 */ 3983 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB123; /* 0x250DB11C: je 0x250db123 */ 3984 L_250DB11E: 3985 RECOMP_ICALL(0x250E6370u); /* 0x250DB11E: call 0x250e6370 */ /* not lifted */ 3986 RECOMP_FLAGS_IN(); 3987 L_250DB123: 3988 eax = MEM32(edi + 0x1BC); /* 0x250DB123: mov eax, dword ptr [edi + 0x1bc] */ 3989 PUSH32(esp, eax); /* 0x250DB129: push eax */ 3990 MEM32(ebp + (-0x14)) = eax; /* 0x250DB12A: mov dword ptr [ebp - 0x14], eax */ 3991 RECOMP_ICALL(0x25137EECu); /* 0x250DB12D: call 0x25137eec */ /* not lifted */ 3992 RECOMP_FLAGS_IN(); 3993 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3994 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3995 esp = esp + 4; /* 0x250DB132: add esp, 4 */ 3996 _flag_k = FK_ADD; 3997 eax = edi; /* 0x250DB135: mov eax, edi */ 3998 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 3999 _cf = (eax) != 0; 4000 eax = (uint32_t)(-(int32_t)eax); /* 0x250DB137: neg eax */ 4001 _flag_k = FK_CMP; 4002 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x250DB139: sbb eax, eax */ 4003 eax = _sc ? 0xFFFFFFFFu : 0; 4004 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 4005 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 4006 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 4007 eax = eax & esi; /* 0x250DB13B: and eax, esi */ 4008 _cf = 0; 4009 _flag_k = FK_TEST; 4010 MEM32(edi + 0x1BC) = ebx; /* 0x250DB13D: mov dword ptr [edi + 0x1bc], ebx */ 4011 MEM32(edi + 0x1C0) = ebx; /* 0x250DB143: mov dword ptr [edi + 0x1c0], ebx */ 4012 MEM32(edi + 0x1C4) = ebx; /* 0x250DB149: mov dword ptr [edi + 0x1c4], ebx */ 4013 esi = eax + 0x4; /* 0x250DB14F: lea esi, [eax + 4] */ 4014 MEM32(eax) = 0x25158364u; /* 0x250DB152: mov dword ptr [eax], 0x25158364 */ 4015 eax = MEM32(esi + 0x4); /* 0x250DB158: mov eax, dword ptr [esi + 4] */ 4016 /* cmp MEM32(esi + 0x10), ebx */ /* 0x250DB15B: cmp dword ptr [esi + 0x10], ebx */ 4017 _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(ebx); 4018 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4019 _flag_k = FK_CMP; 4020 MEM32(ebp + (-0x10)) = eax; /* 0x250DB15E: mov dword ptr [ebp - 0x10], eax */ 4021 eax = MEM32(eax); /* 0x250DB161: mov eax, dword ptr [eax] */ 4022 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x250DB163: mov byte ptr [ebp - 4], 1 */ 4023 MEM32(ebp + (-0x14)) = eax; /* 0x250DB167: mov dword ptr [ebp - 0x14], eax */ 4024 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB16A: je 0x250db1be */ 4025 L_250DB16C: 4026 eax = ebp + (-0x1C); /* 0x250DB16C: lea eax, [ebp - 0x1c] */ 4027 PUSH32(esp, eax); /* 0x250DB16F: push eax */ 4028 ecx = esi; /* 0x250DB170: mov ecx, esi */ 4029 RECOMP_ICALL(0x25085270u); /* 0x250DB172: call 0x25085270 */ /* not lifted */ 4030 RECOMP_FLAGS_IN(); 4031 ecx = eax; /* 0x250DB177: mov ecx, eax */ 4032 edx = MEM32(ecx); /* 0x250DB179: mov edx, dword ptr [ecx] */ 4033 eax = MEM32(ebp + (-0x14)); /* 0x250DB17B: mov eax, dword ptr [ebp - 0x14] */ 4034 /* cmp eax, edx */ /* 0x250DB17E: cmp eax, edx */ 4035 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4036 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4037 _flag_k = FK_CMP; 4038 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x250DB180: setne cl */ 4039 /* cmp LO8(ecx), LO8(ebx) */ /* 0x250DB183: cmp cl, bl */ 4040 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4041 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4042 _flag_k = FK_NARROW(FK_CMP, 24); 4043 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB185: jne 0x250db1be */ 4044 L_250DB187: 4045 ecx = MEM32(esi + 0x4); /* 0x250DB187: mov ecx, dword ptr [esi + 4] */ 4046 /* cmp MEM32(ebp + (-0x10)), ecx */ /* 0x250DB18A: cmp dword ptr [ebp - 0x10], ecx */ 4047 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ecx); 4048 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4049 _flag_k = FK_CMP; 4050 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB18D: jne 0x250db1be */ 4051 L_250DB18F: 4052 edx = MEM32(ecx + 0x4); /* 0x250DB18F: mov edx, dword ptr [ecx + 4] */ 4053 PUSH32(esp, edx); /* 0x250DB192: push edx */ 4054 ecx = esi; /* 0x250DB193: mov ecx, esi */ 4055 RECOMP_ICALL(0x25006C00u); /* 0x250DB195: call 0x25006c00 */ /* not lifted */ 4056 RECOMP_FLAGS_IN(); 4057 eax = MEM32(esi + 0x4); /* 0x250DB19A: mov eax, dword ptr [esi + 4] */ 4058 ecx = MEM32(esi + 0x8); /* 0x250DB19D: mov ecx, dword ptr [esi + 8] */ 4059 MEM32(eax + 0x4) = ecx; /* 0x250DB1A0: mov dword ptr [eax + 4], ecx */ 4060 eax = MEM32(esi + 0x4); /* 0x250DB1A3: mov eax, dword ptr [esi + 4] */ 4061 MEM32(esi + 0x10) = ebx; /* 0x250DB1A6: mov dword ptr [esi + 0x10], ebx */ 4062 MEM32(eax) = eax; /* 0x250DB1A9: mov dword ptr [eax], eax */ 4063 eax = MEM32(esi + 0x4); /* 0x250DB1AB: mov eax, dword ptr [esi + 4] */ 4064 edx = ebp + (-0x1C); /* 0x250DB1AE: lea edx, [ebp - 0x1c] */ 4065 PUSH32(esp, edx); /* 0x250DB1B1: push edx */ 4066 ecx = esi; /* 0x250DB1B2: mov ecx, esi */ 4067 MEM32(eax + 0x8) = eax; /* 0x250DB1B4: mov dword ptr [eax + 8], eax */ 4068 RECOMP_ICALL(0x25085270u); /* 0x250DB1B7: call 0x25085270 */ /* not lifted */ 4069 RECOMP_FLAGS_IN(); 4070 goto L_250DB1E6; /* 0x250DB1BC: jmp 0x250db1e6 */ 4071 L_250DB1BE: 4072 /* cmp eax, MEM32(ebp + (-0x10)) */ /* 0x250DB1BE: cmp eax, dword ptr [ebp - 0x10] */ 4073 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 4074 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4075 _flag_k = FK_CMP; 4076 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB1E6; /* 0x250DB1C1: je 0x250db1e6 */ 4077 L_250DB1C3: 4078 PUSH32(esp, ebx); /* 0x250DB1C3: push ebx */ 4079 eax = ebp + (-0x1C); /* 0x250DB1C4: lea eax, [ebp - 0x1c] */ 4080 PUSH32(esp, eax); /* 0x250DB1C7: push eax */ 4081 ecx = ebp + (-0x14); /* 0x250DB1C8: lea ecx, [ebp - 0x14] */ 4082 RECOMP_ICALL(0x250076D0u); /* 0x250DB1CB: call 0x250076d0 */ /* not lifted */ 4083 RECOMP_FLAGS_IN(); 4084 ecx = MEM32(eax); /* 0x250DB1D0: mov ecx, dword ptr [eax] */ 4085 PUSH32(esp, ecx); /* 0x250DB1D2: push ecx */ 4086 edx = ebp + (-0x20); /* 0x250DB1D3: lea edx, [ebp - 0x20] */ 4087 PUSH32(esp, edx); /* 0x250DB1D6: push edx */ 4088 ecx = esi; /* 0x250DB1D7: mov ecx, esi */ 4089 RECOMP_ICALL(0x25006380u); /* 0x250DB1D9: call 0x25006380 */ /* not lifted */ 4090 RECOMP_FLAGS_IN(); 4091 eax = MEM32(ebp + (-0x10)); /* 0x250DB1DE: mov eax, dword ptr [ebp - 0x10] */ 4092 /* cmp MEM32(ebp + (-0x14)), eax */ /* 0x250DB1E1: cmp dword ptr [ebp - 0x14], eax */ 4093 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(eax); 4094 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4095 _flag_k = FK_CMP; 4096 RECOMP_BACKEDGE(); 4097 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1C3; /* 0x250DB1E4: jne 0x250db1c3 */ 4098 L_250DB1E6: 4099 eax = MEM32(esi + 0x4); /* 0x250DB1E6: mov eax, dword ptr [esi + 4] */ 4100 PUSH32(esp, eax); /* 0x250DB1E9: push eax */ 4101 RECOMP_ICALL(0x25137EECu); /* 0x250DB1EA: call 0x25137eec */ /* not lifted */ 4102 RECOMP_FLAGS_IN(); 4103 eax = MEM32(esi + 0x8); /* 0x250DB1EF: mov eax, dword ptr [esi + 8] */ 4104 PUSH32(esp, eax); /* 0x250DB1F2: push eax */ 4105 MEM32(esi + 0x4) = ebx; /* 0x250DB1F3: mov dword ptr [esi + 4], ebx */ 4106 MEM32(esi + 0x10) = ebx; /* 0x250DB1F6: mov dword ptr [esi + 0x10], ebx */ 4107 RECOMP_ICALL(0x25137EECu); /* 0x250DB1F9: call 0x25137eec */ /* not lifted */ 4108 RECOMP_FLAGS_IN(); 4109 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4110 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4111 esp = esp + 8; /* 0x250DB1FE: add esp, 8 */ 4112 _flag_k = FK_ADD; 4113 eax = edi; /* 0x250DB201: mov eax, edi */ 4114 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 4115 _cf = (eax) != 0; 4116 eax = (uint32_t)(-(int32_t)eax); /* 0x250DB203: neg eax */ 4117 _flag_k = FK_CMP; 4118 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x250DB205: sbb eax, eax */ 4119 eax = _sc ? 0xFFFFFFFFu : 0; 4120 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 4121 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 4122 MEM32(esi + 0x8) = ebx; /* 0x250DB207: mov dword ptr [esi + 8], ebx */ 4123 ecx = edi + 0x138; /* 0x250DB20A: lea ecx, [edi + 0x138] */ 4124 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4125 eax = eax & ecx; /* 0x250DB210: and eax, ecx */ 4126 _cf = 0; 4127 _flag_k = FK_TEST; 4128 esi = eax + 0x4; /* 0x250DB212: lea esi, [eax + 4] */ 4129 MEM32(eax) = 0x25158374u; /* 0x250DB215: mov dword ptr [eax], 0x25158374 */ 4130 eax = MEM32(esi + 0x4); /* 0x250DB21B: mov eax, dword ptr [esi + 4] */ 4131 /* cmp MEM32(esi + 0x10), ebx */ /* 0x250DB21E: cmp dword ptr [esi + 0x10], ebx */ 4132 _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(ebx); 4133 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4134 _flag_k = FK_CMP; 4135 MEM32(ebp + (-0x14)) = eax; /* 0x250DB221: mov dword ptr [ebp - 0x14], eax */ 4136 eax = MEM32(eax); /* 0x250DB224: mov eax, dword ptr [eax] */ 4137 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x250DB226: mov byte ptr [ebp - 4], bl */ 4138 MEM32(ebp + (-0x10)) = eax; /* 0x250DB229: mov dword ptr [ebp - 0x10], eax */ 4139 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB22C: je 0x250db280 */ 4140 L_250DB22E: 4141 ecx = ebp + (-0x20); /* 0x250DB22E: lea ecx, [ebp - 0x20] */ 4142 PUSH32(esp, ecx); /* 0x250DB231: push ecx */ 4143 ecx = esi; /* 0x250DB232: mov ecx, esi */ 4144 RECOMP_ICALL(0x25085270u); /* 0x250DB234: call 0x25085270 */ /* not lifted */ 4145 RECOMP_FLAGS_IN(); 4146 edx = eax; /* 0x250DB239: mov edx, eax */ 4147 ecx = MEM32(edx); /* 0x250DB23B: mov ecx, dword ptr [edx] */ 4148 eax = MEM32(ebp + (-0x10)); /* 0x250DB23D: mov eax, dword ptr [ebp - 0x10] */ 4149 /* cmp eax, ecx */ /* 0x250DB240: cmp eax, ecx */ 4150 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4151 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4152 _flag_k = FK_CMP; 4153 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x250DB242: setne cl */ 4154 /* cmp LO8(ecx), LO8(ebx) */ /* 0x250DB245: cmp cl, bl */ 4155 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4156 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4157 _flag_k = FK_NARROW(FK_CMP, 24); 4158 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB247: jne 0x250db280 */ 4159 L_250DB249: 4160 ecx = MEM32(esi + 0x4); /* 0x250DB249: mov ecx, dword ptr [esi + 4] */ 4161 /* cmp MEM32(ebp + (-0x14)), ecx */ /* 0x250DB24C: cmp dword ptr [ebp - 0x14], ecx */ 4162 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(ecx); 4163 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4164 _flag_k = FK_CMP; 4165 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB24F: jne 0x250db280 */ 4166 L_250DB251: 4167 eax = MEM32(ecx + 0x4); /* 0x250DB251: mov eax, dword ptr [ecx + 4] */ 4168 PUSH32(esp, eax); /* 0x250DB254: push eax */ 4169 ecx = esi; /* 0x250DB255: mov ecx, esi */ 4170 RECOMP_ICALL(0x250068F0u); /* 0x250DB257: call 0x250068f0 */ /* not lifted */ 4171 RECOMP_FLAGS_IN(); 4172 ecx = MEM32(esi + 0x4); /* 0x250DB25C: mov ecx, dword ptr [esi + 4] */ 4173 edx = MEM32(esi + 0x8); /* 0x250DB25F: mov edx, dword ptr [esi + 8] */ 4174 MEM32(ecx + 0x4) = edx; /* 0x250DB262: mov dword ptr [ecx + 4], edx */ 4175 eax = MEM32(esi + 0x4); /* 0x250DB265: mov eax, dword ptr [esi + 4] */ 4176 MEM32(esi + 0x10) = ebx; /* 0x250DB268: mov dword ptr [esi + 0x10], ebx */ 4177 MEM32(eax) = eax; /* 0x250DB26B: mov dword ptr [eax], eax */ 4178 eax = MEM32(esi + 0x4); /* 0x250DB26D: mov eax, dword ptr [esi + 4] */ 4179 MEM32(eax + 0x8) = eax; /* 0x250DB270: mov dword ptr [eax + 8], eax */ 4180 eax = ebp + (-0x20); /* 0x250DB273: lea eax, [ebp - 0x20] */ 4181 PUSH32(esp, eax); /* 0x250DB276: push eax */ 4182 ecx = esi; /* 0x250DB277: mov ecx, esi */ 4183 RECOMP_ICALL(0x25085270u); /* 0x250DB279: call 0x25085270 */ /* not lifted */ 4184 RECOMP_FLAGS_IN(); 4185 goto L_250DB2A8; /* 0x250DB27E: jmp 0x250db2a8 */ 4186 L_250DB280: 4187 /* cmp eax, MEM32(ebp + (-0x14)) */ /* 0x250DB280: cmp eax, dword ptr [ebp - 0x14] */ 4188 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 4189 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4190 _flag_k = FK_CMP; 4191 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB2A8; /* 0x250DB283: je 0x250db2a8 */ 4192 L_250DB285: 4193 PUSH32(esp, ebx); /* 0x250DB285: push ebx */ 4194 ecx = ebp + (-0x20); /* 0x250DB286: lea ecx, [ebp - 0x20] */ 4195 PUSH32(esp, ecx); /* 0x250DB289: push ecx */ 4196 ecx = ebp + (-0x10); /* 0x250DB28A: lea ecx, [ebp - 0x10] */ 4197 RECOMP_ICALL(0x250076D0u); /* 0x250DB28D: call 0x250076d0 */ /* not lifted */ 4198 RECOMP_FLAGS_IN(); 4199 edx = MEM32(eax); /* 0x250DB292: mov edx, dword ptr [eax] */ 4200 PUSH32(esp, edx); /* 0x250DB294: push edx */ 4201 eax = ebp + (-0x1C); /* 0x250DB295: lea eax, [ebp - 0x1c] */ 4202 PUSH32(esp, eax); /* 0x250DB298: push eax */ 4203 ecx = esi; /* 0x250DB299: mov ecx, esi */ 4204 RECOMP_ICALL(0x25006380u); /* 0x250DB29B: call 0x25006380 */ /* not lifted */ 4205 RECOMP_FLAGS_IN(); 4206 ecx = MEM32(ebp + (-0x14)); /* 0x250DB2A0: mov ecx, dword ptr [ebp - 0x14] */ 4207 /* cmp MEM32(ebp + (-0x10)), ecx */ /* 0x250DB2A3: cmp dword ptr [ebp - 0x10], ecx */ 4208 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ecx); 4209 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4210 _flag_k = FK_CMP; 4211 RECOMP_BACKEDGE(); 4212 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB285; /* 0x250DB2A6: jne 0x250db285 */ 4213 L_250DB2A8: 4214 eax = MEM32(esi + 0x4); /* 0x250DB2A8: mov eax, dword ptr [esi + 4] */ 4215 PUSH32(esp, eax); /* 0x250DB2AB: push eax */ 4216 RECOMP_ICALL(0x25137EECu); /* 0x250DB2AC: call 0x25137eec */ /* not lifted */ 4217 RECOMP_FLAGS_IN(); 4218 eax = MEM32(esi + 0x8); /* 0x250DB2B1: mov eax, dword ptr [esi + 8] */ 4219 PUSH32(esp, eax); /* 0x250DB2B4: push eax */ 4220 MEM32(esi + 0x4) = ebx; /* 0x250DB2B5: mov dword ptr [esi + 4], ebx */ 4221 MEM32(esi + 0x10) = ebx; /* 0x250DB2B8: mov dword ptr [esi + 0x10], ebx */ 4222 RECOMP_ICALL(0x25137EECu); /* 0x250DB2BB: call 0x25137eec */ /* not lifted */ 4223 RECOMP_FLAGS_IN(); 4224 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4225 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4226 esp = esp + 8; /* 0x250DB2C0: add esp, 8 */ 4227 _flag_k = FK_ADD; 4228 ecx = edi; /* 0x250DB2C3: mov ecx, edi */ 4229 MEM32(esi + 0x8) = ebx; /* 0x250DB2C5: mov dword ptr [esi + 8], ebx */ 4230 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x250DB2C8: mov dword ptr [ebp - 4], 0xffffffff */ 4231 RECOMP_ICALL(0x250E19E0u); /* 0x250DB2CF: call 0x250e19e0 */ /* not lifted */ 4232 RECOMP_FLAGS_IN(); 4233 ecx = MEM32(ebp + (-0xC)); /* 0x250DB2D4: mov ecx, dword ptr [ebp - 0xc] */ 4234 edi = POP32_VAL(esp); /* 0x250DB2D7: pop edi */ 4235 esi = POP32_VAL(esp); /* 0x250DB2D8: pop esi */ 4236 ebx = POP32_VAL(esp); /* 0x250DB2D9: pop ebx */ 4237 MEM32(FS_BASE + (0)) = ecx; /* 0x250DB2DA: mov dword ptr fs:[0], ecx */ 4238 esp = ebp; /* 0x250DB2E1: mov esp, ebp */ 4239 ebp = POP32_VAL(esp); /* 0x250DB2E3: pop ebp */ 4240 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250DB2E4: ret */ 4241 L_251465E0: 4242 ecx = MEM32(ebp + (-0x10)); /* 0x251465E0: mov ecx, dword ptr [ebp - 0x10] */ 4243 RECOMP_BACKEDGE(); 4244 goto L_250DB0B0; /* 0x251465E3: jmp 0x250db0b0 */ 4245 { RECOMP_REGS_OUT(); return; } /* end of function */ 4246 RECOMP_REGS_OUT(); 4247 } 4248 4249 void sub_251465E8(void) { 4250 int _fpu_cmp = 0; 4251 uint32_t _cf = 0; 4252 int _df = 1; 4253 uint32_t _flag_k = FK_NONE; 4254 uint32_t _flag_a = 0, _flag_b = 0; 4255 uint32_t _itail_tgt = 0; 4256 RECOMP_REGS_LOCALS 4257 RECOMP_ENTER(0x251465E8u); 4258 4259 goto L_251465E8; 4260 L_25085240: 4261 PUSH32(esp, ebp); /* 0x25085240: push ebp */ 4262 ebp = esp; /* 0x25085241: mov ebp, esp */ 4263 PUSH32(esp, ecx); /* 0x25085243: push ecx */ 4264 PUSH32(esp, esi); /* 0x25085244: push esi */ 4265 esi = ecx; /* 0x25085245: mov esi, ecx */ 4266 eax = MEM32(esi + 0x4); /* 0x25085247: mov eax, dword ptr [esi + 4] */ 4267 PUSH32(esp, eax); /* 0x2508524A: push eax */ 4268 MEM32(ebp + (-0x4)) = eax; /* 0x2508524B: mov dword ptr [ebp - 4], eax */ 4269 RECOMP_ICALL(0x25137EECu); /* 0x2508524E: call 0x25137eec */ /* not lifted */ 4270 RECOMP_FLAGS_IN(); 4271 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4272 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4273 esp = esp + 4; /* 0x25085253: add esp, 4 */ 4274 _flag_k = FK_ADD; 4275 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4276 eax = 0; /* 0x25085256: xor eax, eax */ 4277 _cf = 0; 4278 _flag_k = FK_TEST; 4279 MEM32(esi + 0x4) = eax; /* 0x25085258: mov dword ptr [esi + 4], eax */ 4280 MEM32(esi + 0x8) = eax; /* 0x2508525B: mov dword ptr [esi + 8], eax */ 4281 MEM32(esi + 0xC) = eax; /* 0x2508525E: mov dword ptr [esi + 0xc], eax */ 4282 esi = POP32_VAL(esp); /* 0x25085261: pop esi */ 4283 esp = ebp; /* 0x25085262: mov esp, ebp */ 4284 ebp = POP32_VAL(esp); /* 0x25085264: pop ebp */ 4285 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25085265: ret */ 4286 L_251465E8: 4287 ecx = MEM32(ebp + (-0x10)); /* 0x251465E8: mov ecx, dword ptr [ebp - 0x10] */ 4288 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x204u); 4289 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4290 ecx = ecx + 0x204u; /* 0x251465EB: add ecx, 0x204 */ 4291 _flag_k = FK_ADD; 4292 RECOMP_BACKEDGE(); 4293 goto L_25085240; /* 0x251465F1: jmp 0x25085240 */ 4294 { RECOMP_REGS_OUT(); return; } /* end of function */ 4295 RECOMP_REGS_OUT(); 4296 }