client/game/ddr.dll/lifted-0014.c (325401B)
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_2B0396D0(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(0x2B0396D0u); 17 18 L_2B0396D0: 19 PUSH32(esp, esi); /* 0x2B0396D0: push esi */ 20 esi = MEM32(0x2B0EE90C); /* 0x2B0396D1: mov esi, dword ptr [0x2b0ee90c] */ 21 /* test esi, esi */ /* 0x2B0396D7: test esi, esi */ 22 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 23 _cf = 0; 24 _flag_k = FK_TEST; 25 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0396EC; /* 0x2B0396D9: je 0x2b0396ec */ 26 L_2B0396DB: 27 ecx = esi; /* 0x2B0396DB: mov ecx, esi */ 28 RECOMP_ICALL(MEM32(0x2B0B59D8)); /* 0x2B0396DD: call dword ptr [0x2b0b59d8] */ 29 RECOMP_FLAGS_IN(); 30 PUSH32(esp, esi); /* 0x2B0396E3: push esi */ 31 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0396E4: call 0x2b0ab1ba */ /* not lifted */ 32 RECOMP_FLAGS_IN(); 33 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 34 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35 esp = esp + 4; /* 0x2B0396E9: add esp, 4 */ 36 _flag_k = FK_ADD; 37 L_2B0396EC: 38 MEM32(0x2B0EE90C) = 0; /* 0x2B0396EC: mov dword ptr [0x2b0ee90c], 0 */ 39 esi = POP32_VAL(esp); /* 0x2B0396F6: pop esi */ 40 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0396F7: ret */ 41 RECOMP_REGS_OUT(); 42 } 43 44 void sub_2B039700(void) { 45 int _fpu_cmp = 0; 46 uint32_t _cf = 0; 47 int _df = 1; 48 uint32_t _flag_k = FK_NONE; 49 uint32_t _flag_a = 0, _flag_b = 0; 50 uint32_t _itail_tgt = 0; 51 RECOMP_REGS_LOCALS 52 RECOMP_ENTER(0x2B039700u); 53 54 L_2B039700: 55 goto L_2B039710; /* 0x2B039700: jmp 0x2b039710 */ 56 L_2B039710: 57 MEM32(0x2B0EE94C) = 0x2B0E1638u; /* 0x2B039710: mov dword ptr [0x2b0ee94c], 0x2b0e1638 */ 58 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03971A: ret */ 59 RECOMP_REGS_OUT(); 60 } 61 62 void sub_2B039710(void) { 63 int _fpu_cmp = 0; 64 uint32_t _cf = 0; 65 int _df = 1; 66 uint32_t _flag_k = FK_NONE; 67 uint32_t _flag_a = 0, _flag_b = 0; 68 uint32_t _itail_tgt = 0; 69 RECOMP_REGS_LOCALS 70 RECOMP_ENTER(0x2B039710u); 71 72 L_2B039710: 73 MEM32(0x2B0EE94C) = 0x2B0E1638u; /* 0x2B039710: mov dword ptr [0x2b0ee94c], 0x2b0e1638 */ 74 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03971A: ret */ 75 RECOMP_REGS_OUT(); 76 } 77 78 void sub_2B039720(void) { 79 int _fpu_cmp = 0; 80 uint32_t _cf = 0; 81 int _df = 1; 82 uint32_t _flag_k = FK_NONE; 83 uint32_t _flag_a = 0, _flag_b = 0; 84 uint32_t _itail_tgt = 0; 85 RECOMP_REGS_LOCALS 86 RECOMP_ENTER(0x2B039720u); 87 88 L_2B039720: 89 goto L_2B039730; /* 0x2B039720: jmp 0x2b039730 */ 90 L_2B039730: 91 MEM32(0x2B0EE948) = 0x2B0E166Cu; /* 0x2B039730: mov dword ptr [0x2b0ee948], 0x2b0e166c */ 92 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03973A: ret */ 93 RECOMP_REGS_OUT(); 94 } 95 96 void sub_2B039730(void) { 97 int _fpu_cmp = 0; 98 uint32_t _cf = 0; 99 int _df = 1; 100 uint32_t _flag_k = FK_NONE; 101 uint32_t _flag_a = 0, _flag_b = 0; 102 uint32_t _itail_tgt = 0; 103 RECOMP_REGS_LOCALS 104 RECOMP_ENTER(0x2B039730u); 105 106 L_2B039730: 107 MEM32(0x2B0EE948) = 0x2B0E166Cu; /* 0x2B039730: mov dword ptr [0x2b0ee948], 0x2b0e166c */ 108 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03973A: ret */ 109 RECOMP_REGS_OUT(); 110 } 111 112 void sub_2B039740(void) { 113 int _fpu_cmp = 0; 114 uint32_t _cf = 0; 115 int _df = 1; 116 uint32_t _flag_k = FK_NONE; 117 uint32_t _flag_a = 0, _flag_b = 0; 118 uint32_t _itail_tgt = 0; 119 RECOMP_REGS_LOCALS 120 RECOMP_ENTER(0x2B039740u); 121 122 L_2B039740: 123 goto L_2B039750; /* 0x2B039740: jmp 0x2b039750 */ 124 L_2B039750: 125 MEM32(0x2B0EE944) = 0x2B0E16A8u; /* 0x2B039750: mov dword ptr [0x2b0ee944], 0x2b0e16a8 */ 126 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03975A: ret */ 127 RECOMP_REGS_OUT(); 128 } 129 130 void sub_2B039750(void) { 131 int _fpu_cmp = 0; 132 uint32_t _cf = 0; 133 int _df = 1; 134 uint32_t _flag_k = FK_NONE; 135 uint32_t _flag_a = 0, _flag_b = 0; 136 uint32_t _itail_tgt = 0; 137 RECOMP_REGS_LOCALS 138 RECOMP_ENTER(0x2B039750u); 139 140 L_2B039750: 141 MEM32(0x2B0EE944) = 0x2B0E16A8u; /* 0x2B039750: mov dword ptr [0x2b0ee944], 0x2b0e16a8 */ 142 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03975A: ret */ 143 RECOMP_REGS_OUT(); 144 } 145 146 void sub_2B039760(void) { 147 int _fpu_cmp = 0; 148 uint32_t _cf = 0; 149 int _df = 1; 150 uint32_t _flag_k = FK_NONE; 151 uint32_t _flag_a = 0, _flag_b = 0; 152 uint32_t _itail_tgt = 0; 153 RECOMP_REGS_LOCALS 154 RECOMP_ENTER(0x2B039760u); 155 156 L_2B039760: 157 goto L_2B039770; /* 0x2B039760: jmp 0x2b039770 */ 158 L_2B039770: 159 MEM32(0x2B0EE940) = 0x2B0E16DCu; /* 0x2B039770: mov dword ptr [0x2b0ee940], 0x2b0e16dc */ 160 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03977A: ret */ 161 RECOMP_REGS_OUT(); 162 } 163 164 void sub_2B039770(void) { 165 int _fpu_cmp = 0; 166 uint32_t _cf = 0; 167 int _df = 1; 168 uint32_t _flag_k = FK_NONE; 169 uint32_t _flag_a = 0, _flag_b = 0; 170 uint32_t _itail_tgt = 0; 171 RECOMP_REGS_LOCALS 172 RECOMP_ENTER(0x2B039770u); 173 174 L_2B039770: 175 MEM32(0x2B0EE940) = 0x2B0E16DCu; /* 0x2B039770: mov dword ptr [0x2b0ee940], 0x2b0e16dc */ 176 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03977A: ret */ 177 RECOMP_REGS_OUT(); 178 } 179 180 void sub_2B039780(void) { 181 int _fpu_cmp = 0; 182 uint32_t _cf = 0; 183 int _df = 1; 184 uint32_t _flag_k = FK_NONE; 185 uint32_t _flag_a = 0, _flag_b = 0; 186 uint32_t _itail_tgt = 0; 187 RECOMP_REGS_LOCALS 188 RECOMP_ENTER(0x2B039780u); 189 190 L_2B039780: 191 goto L_2B039790; /* 0x2B039780: jmp 0x2b039790 */ 192 L_2B039790: 193 MEM32(0x2B0EE93C) = 0x2B0E1710u; /* 0x2B039790: mov dword ptr [0x2b0ee93c], 0x2b0e1710 */ 194 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03979A: ret */ 195 RECOMP_REGS_OUT(); 196 } 197 198 void sub_2B039790(void) { 199 int _fpu_cmp = 0; 200 uint32_t _cf = 0; 201 int _df = 1; 202 uint32_t _flag_k = FK_NONE; 203 uint32_t _flag_a = 0, _flag_b = 0; 204 uint32_t _itail_tgt = 0; 205 RECOMP_REGS_LOCALS 206 RECOMP_ENTER(0x2B039790u); 207 208 L_2B039790: 209 MEM32(0x2B0EE93C) = 0x2B0E1710u; /* 0x2B039790: mov dword ptr [0x2b0ee93c], 0x2b0e1710 */ 210 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03979A: ret */ 211 RECOMP_REGS_OUT(); 212 } 213 214 void sub_2B0397A0(void) { 215 int _fpu_cmp = 0; 216 uint32_t _cf = 0; 217 int _df = 1; 218 uint32_t _flag_k = FK_NONE; 219 uint32_t _flag_a = 0, _flag_b = 0; 220 uint32_t _itail_tgt = 0; 221 RECOMP_REGS_LOCALS 222 RECOMP_ENTER(0x2B0397A0u); 223 224 L_2B0397A0: 225 goto L_2B0397B0; /* 0x2B0397A0: jmp 0x2b0397b0 */ 226 L_2B0397B0: 227 MEM32(0x2B0EE938) = 0x2B0E1744u; /* 0x2B0397B0: mov dword ptr [0x2b0ee938], 0x2b0e1744 */ 228 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0397BA: ret */ 229 RECOMP_REGS_OUT(); 230 } 231 232 void sub_2B0397B0(void) { 233 int _fpu_cmp = 0; 234 uint32_t _cf = 0; 235 int _df = 1; 236 uint32_t _flag_k = FK_NONE; 237 uint32_t _flag_a = 0, _flag_b = 0; 238 uint32_t _itail_tgt = 0; 239 RECOMP_REGS_LOCALS 240 RECOMP_ENTER(0x2B0397B0u); 241 242 L_2B0397B0: 243 MEM32(0x2B0EE938) = 0x2B0E1744u; /* 0x2B0397B0: mov dword ptr [0x2b0ee938], 0x2b0e1744 */ 244 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0397BA: ret */ 245 RECOMP_REGS_OUT(); 246 } 247 248 void sub_2B0397C0(void) { 249 int _fpu_cmp = 0; 250 uint32_t _cf = 0; 251 int _df = 1; 252 uint32_t _flag_k = FK_NONE; 253 uint32_t _flag_a = 0, _flag_b = 0; 254 uint32_t _itail_tgt = 0; 255 RECOMP_REGS_LOCALS 256 RECOMP_ENTER(0x2B0397C0u); 257 258 L_2B0397C0: 259 goto L_2B0397D0; /* 0x2B0397C0: jmp 0x2b0397d0 */ 260 L_2B0397D0: 261 MEM32(0x2B0EE934) = 0x2B0E177Cu; /* 0x2B0397D0: mov dword ptr [0x2b0ee934], 0x2b0e177c */ 262 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0397DA: ret */ 263 RECOMP_REGS_OUT(); 264 } 265 266 void sub_2B0397D0(void) { 267 int _fpu_cmp = 0; 268 uint32_t _cf = 0; 269 int _df = 1; 270 uint32_t _flag_k = FK_NONE; 271 uint32_t _flag_a = 0, _flag_b = 0; 272 uint32_t _itail_tgt = 0; 273 RECOMP_REGS_LOCALS 274 RECOMP_ENTER(0x2B0397D0u); 275 276 L_2B0397D0: 277 MEM32(0x2B0EE934) = 0x2B0E177Cu; /* 0x2B0397D0: mov dword ptr [0x2b0ee934], 0x2b0e177c */ 278 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0397DA: ret */ 279 RECOMP_REGS_OUT(); 280 } 281 282 void sub_2B0397E0(void) { 283 int _fpu_cmp = 0; 284 uint32_t _cf = 0; 285 int _df = 1; 286 uint32_t _flag_k = FK_NONE; 287 uint32_t _flag_a = 0, _flag_b = 0; 288 uint32_t _itail_tgt = 0; 289 RECOMP_REGS_LOCALS 290 RECOMP_ENTER(0x2B0397E0u); 291 292 L_2B0397E0: 293 goto L_2B0397F0; /* 0x2B0397E0: jmp 0x2b0397f0 */ 294 L_2B0397F0: 295 MEM32(0x2B0EE930) = 0x2B0E17B4u; /* 0x2B0397F0: mov dword ptr [0x2b0ee930], 0x2b0e17b4 */ 296 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0397FA: ret */ 297 RECOMP_REGS_OUT(); 298 } 299 300 void sub_2B0397F0(void) { 301 int _fpu_cmp = 0; 302 uint32_t _cf = 0; 303 int _df = 1; 304 uint32_t _flag_k = FK_NONE; 305 uint32_t _flag_a = 0, _flag_b = 0; 306 uint32_t _itail_tgt = 0; 307 RECOMP_REGS_LOCALS 308 RECOMP_ENTER(0x2B0397F0u); 309 310 L_2B0397F0: 311 MEM32(0x2B0EE930) = 0x2B0E17B4u; /* 0x2B0397F0: mov dword ptr [0x2b0ee930], 0x2b0e17b4 */ 312 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0397FA: ret */ 313 RECOMP_REGS_OUT(); 314 } 315 316 void sub_2B039800(void) { 317 int _fpu_cmp = 0; 318 uint32_t _cf = 0; 319 int _df = 1; 320 uint32_t _flag_k = FK_NONE; 321 uint32_t _flag_a = 0, _flag_b = 0; 322 uint32_t _itail_tgt = 0; 323 RECOMP_REGS_LOCALS 324 RECOMP_ENTER(0x2B039800u); 325 326 L_2B039800: 327 goto L_2B039810; /* 0x2B039800: jmp 0x2b039810 */ 328 L_2B039810: 329 MEM32(0x2B0EE92C) = 0x2B0E17E8u; /* 0x2B039810: mov dword ptr [0x2b0ee92c], 0x2b0e17e8 */ 330 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03981A: ret */ 331 RECOMP_REGS_OUT(); 332 } 333 334 void sub_2B039810(void) { 335 int _fpu_cmp = 0; 336 uint32_t _cf = 0; 337 int _df = 1; 338 uint32_t _flag_k = FK_NONE; 339 uint32_t _flag_a = 0, _flag_b = 0; 340 uint32_t _itail_tgt = 0; 341 RECOMP_REGS_LOCALS 342 RECOMP_ENTER(0x2B039810u); 343 344 L_2B039810: 345 MEM32(0x2B0EE92C) = 0x2B0E17E8u; /* 0x2B039810: mov dword ptr [0x2b0ee92c], 0x2b0e17e8 */ 346 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03981A: ret */ 347 RECOMP_REGS_OUT(); 348 } 349 350 void sub_2B039820(void) { 351 int _fpu_cmp = 0; 352 uint32_t _cf = 0; 353 int _df = 1; 354 uint32_t _flag_k = FK_NONE; 355 uint32_t _flag_a = 0, _flag_b = 0; 356 uint32_t _itail_tgt = 0; 357 RECOMP_REGS_LOCALS 358 RECOMP_ENTER(0x2B039820u); 359 360 L_2B039820: 361 goto L_2B039830; /* 0x2B039820: jmp 0x2b039830 */ 362 L_2B039830: 363 MEM32(0x2B0EE928) = 0x2B0E1824u; /* 0x2B039830: mov dword ptr [0x2b0ee928], 0x2b0e1824 */ 364 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03983A: ret */ 365 RECOMP_REGS_OUT(); 366 } 367 368 void sub_2B039830(void) { 369 int _fpu_cmp = 0; 370 uint32_t _cf = 0; 371 int _df = 1; 372 uint32_t _flag_k = FK_NONE; 373 uint32_t _flag_a = 0, _flag_b = 0; 374 uint32_t _itail_tgt = 0; 375 RECOMP_REGS_LOCALS 376 RECOMP_ENTER(0x2B039830u); 377 378 L_2B039830: 379 MEM32(0x2B0EE928) = 0x2B0E1824u; /* 0x2B039830: mov dword ptr [0x2b0ee928], 0x2b0e1824 */ 380 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03983A: ret */ 381 RECOMP_REGS_OUT(); 382 } 383 384 void sub_2B039840(void) { 385 int _fpu_cmp = 0; 386 uint32_t _cf = 0; 387 int _df = 1; 388 uint32_t _flag_k = FK_NONE; 389 uint32_t _flag_a = 0, _flag_b = 0; 390 uint32_t _itail_tgt = 0; 391 RECOMP_REGS_LOCALS 392 RECOMP_ENTER(0x2B039840u); 393 394 L_2B039840: 395 goto L_2B039850; /* 0x2B039840: jmp 0x2b039850 */ 396 L_2B039850: 397 MEM32(0x2B0EE924) = 0x2B0E1860u; /* 0x2B039850: mov dword ptr [0x2b0ee924], 0x2b0e1860 */ 398 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03985A: ret */ 399 RECOMP_REGS_OUT(); 400 } 401 402 void sub_2B039850(void) { 403 int _fpu_cmp = 0; 404 uint32_t _cf = 0; 405 int _df = 1; 406 uint32_t _flag_k = FK_NONE; 407 uint32_t _flag_a = 0, _flag_b = 0; 408 uint32_t _itail_tgt = 0; 409 RECOMP_REGS_LOCALS 410 RECOMP_ENTER(0x2B039850u); 411 412 L_2B039850: 413 MEM32(0x2B0EE924) = 0x2B0E1860u; /* 0x2B039850: mov dword ptr [0x2b0ee924], 0x2b0e1860 */ 414 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03985A: ret */ 415 RECOMP_REGS_OUT(); 416 } 417 418 void sub_2B039860(void) { 419 int _fpu_cmp = 0; 420 uint32_t _cf = 0; 421 int _df = 1; 422 uint32_t _flag_k = FK_NONE; 423 uint32_t _flag_a = 0, _flag_b = 0; 424 uint32_t _itail_tgt = 0; 425 RECOMP_REGS_LOCALS 426 RECOMP_ENTER(0x2B039860u); 427 428 L_2B039860: 429 goto L_2B039870; /* 0x2B039860: jmp 0x2b039870 */ 430 L_2B039870: 431 MEM32(0x2B0EE920) = 0x2B0E189Cu; /* 0x2B039870: mov dword ptr [0x2b0ee920], 0x2b0e189c */ 432 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03987A: ret */ 433 RECOMP_REGS_OUT(); 434 } 435 436 void sub_2B039870(void) { 437 int _fpu_cmp = 0; 438 uint32_t _cf = 0; 439 int _df = 1; 440 uint32_t _flag_k = FK_NONE; 441 uint32_t _flag_a = 0, _flag_b = 0; 442 uint32_t _itail_tgt = 0; 443 RECOMP_REGS_LOCALS 444 RECOMP_ENTER(0x2B039870u); 445 446 L_2B039870: 447 MEM32(0x2B0EE920) = 0x2B0E189Cu; /* 0x2B039870: mov dword ptr [0x2b0ee920], 0x2b0e189c */ 448 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03987A: ret */ 449 RECOMP_REGS_OUT(); 450 } 451 452 void sub_2B039880(void) { 453 int _fpu_cmp = 0; 454 uint32_t _cf = 0; 455 int _df = 1; 456 uint32_t _flag_k = FK_NONE; 457 uint32_t _flag_a = 0, _flag_b = 0; 458 uint32_t _itail_tgt = 0; 459 RECOMP_REGS_LOCALS 460 RECOMP_ENTER(0x2B039880u); 461 462 L_2B039880: 463 goto L_2B039890; /* 0x2B039880: jmp 0x2b039890 */ 464 L_2B039890: 465 MEM32(0x2B0EE91C) = 0x2B0E18D4u; /* 0x2B039890: mov dword ptr [0x2b0ee91c], 0x2b0e18d4 */ 466 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03989A: ret */ 467 RECOMP_REGS_OUT(); 468 } 469 470 void sub_2B039890(void) { 471 int _fpu_cmp = 0; 472 uint32_t _cf = 0; 473 int _df = 1; 474 uint32_t _flag_k = FK_NONE; 475 uint32_t _flag_a = 0, _flag_b = 0; 476 uint32_t _itail_tgt = 0; 477 RECOMP_REGS_LOCALS 478 RECOMP_ENTER(0x2B039890u); 479 480 L_2B039890: 481 MEM32(0x2B0EE91C) = 0x2B0E18D4u; /* 0x2B039890: mov dword ptr [0x2b0ee91c], 0x2b0e18d4 */ 482 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03989A: ret */ 483 RECOMP_REGS_OUT(); 484 } 485 486 void sub_2B0398A0(void) { 487 int _fpu_cmp = 0; 488 uint32_t _cf = 0; 489 int _df = 1; 490 uint32_t _flag_k = FK_NONE; 491 uint32_t _flag_a = 0, _flag_b = 0; 492 uint32_t _itail_tgt = 0; 493 RECOMP_REGS_LOCALS 494 RECOMP_ENTER(0x2B0398A0u); 495 496 L_2B0398A0: 497 goto L_2B0398B0; /* 0x2B0398A0: jmp 0x2b0398b0 */ 498 L_2B0398B0: 499 MEM32(0x2B0EE918) = 0x2B0E1908u; /* 0x2B0398B0: mov dword ptr [0x2b0ee918], 0x2b0e1908 */ 500 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0398BA: ret */ 501 RECOMP_REGS_OUT(); 502 } 503 504 void sub_2B0398B0(void) { 505 int _fpu_cmp = 0; 506 uint32_t _cf = 0; 507 int _df = 1; 508 uint32_t _flag_k = FK_NONE; 509 uint32_t _flag_a = 0, _flag_b = 0; 510 uint32_t _itail_tgt = 0; 511 RECOMP_REGS_LOCALS 512 RECOMP_ENTER(0x2B0398B0u); 513 514 L_2B0398B0: 515 MEM32(0x2B0EE918) = 0x2B0E1908u; /* 0x2B0398B0: mov dword ptr [0x2b0ee918], 0x2b0e1908 */ 516 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0398BA: ret */ 517 RECOMP_REGS_OUT(); 518 } 519 520 void sub_2B0398C0(void) { 521 int _fpu_cmp = 0; 522 uint32_t _cf = 0; 523 int _df = 1; 524 uint32_t _flag_k = FK_NONE; 525 uint32_t _flag_a = 0, _flag_b = 0; 526 uint32_t _itail_tgt = 0; 527 RECOMP_REGS_LOCALS 528 RECOMP_ENTER(0x2B0398C0u); 529 530 L_2B0398C0: 531 goto L_2B0398D0; /* 0x2B0398C0: jmp 0x2b0398d0 */ 532 L_2B0398D0: 533 MEM32(0x2B0EE914) = 0x2B0E1944u; /* 0x2B0398D0: mov dword ptr [0x2b0ee914], 0x2b0e1944 */ 534 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0398DA: ret */ 535 RECOMP_REGS_OUT(); 536 } 537 538 void sub_2B0398D0(void) { 539 int _fpu_cmp = 0; 540 uint32_t _cf = 0; 541 int _df = 1; 542 uint32_t _flag_k = FK_NONE; 543 uint32_t _flag_a = 0, _flag_b = 0; 544 uint32_t _itail_tgt = 0; 545 RECOMP_REGS_LOCALS 546 RECOMP_ENTER(0x2B0398D0u); 547 548 L_2B0398D0: 549 MEM32(0x2B0EE914) = 0x2B0E1944u; /* 0x2B0398D0: mov dword ptr [0x2b0ee914], 0x2b0e1944 */ 550 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0398DA: ret */ 551 RECOMP_REGS_OUT(); 552 } 553 554 void sub_2B0398E0(void) { 555 int _fpu_cmp = 0; 556 uint32_t _cf = 0; 557 int _df = 1; 558 uint32_t _flag_k = FK_NONE; 559 uint32_t _flag_a = 0, _flag_b = 0; 560 uint32_t _itail_tgt = 0; 561 RECOMP_REGS_LOCALS 562 RECOMP_ENTER(0x2B0398E0u); 563 564 L_2B0398E0: 565 goto L_2B0398F0; /* 0x2B0398E0: jmp 0x2b0398f0 */ 566 L_2B0398F0: 567 MEM32(0x2B0EE910) = 0x2B0E1978u; /* 0x2B0398F0: mov dword ptr [0x2b0ee910], 0x2b0e1978 */ 568 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0398FA: ret */ 569 RECOMP_REGS_OUT(); 570 } 571 572 void sub_2B0398F0(void) { 573 int _fpu_cmp = 0; 574 uint32_t _cf = 0; 575 int _df = 1; 576 uint32_t _flag_k = FK_NONE; 577 uint32_t _flag_a = 0, _flag_b = 0; 578 uint32_t _itail_tgt = 0; 579 RECOMP_REGS_LOCALS 580 RECOMP_ENTER(0x2B0398F0u); 581 582 L_2B0398F0: 583 MEM32(0x2B0EE910) = 0x2B0E1978u; /* 0x2B0398F0: mov dword ptr [0x2b0ee910], 0x2b0e1978 */ 584 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0398FA: ret */ 585 RECOMP_REGS_OUT(); 586 } 587 588 void sub_2B039900(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(0x2B039900u); 597 598 L_2B039900: 599 PUSH32(esp, ebx); /* 0x2B039900: push ebx */ 600 PUSH32(esp, esi); /* 0x2B039901: push esi */ 601 esi = MEM32(0x2B0B53CC); /* 0x2B039902: mov esi, dword ptr [0x2b0b53cc] */ 602 PUSH32(esp, edi); /* 0x2B039908: push edi */ 603 ebx = ecx; /* 0x2B039909: mov ebx, ecx */ 604 RECOMP_ICALL(esi); /* 0x2B03990B: call esi */ 605 RECOMP_FLAGS_IN(); 606 ecx = eax; /* 0x2B03990D: mov ecx, eax */ 607 RECOMP_ICALL(MEM32(0x2B0B5374)); /* 0x2B03990F: call dword ptr [0x2b0b5374] */ 608 RECOMP_FLAGS_IN(); 609 PUSH32(esp, 0); /* 0x2B039915: push 0 */ 610 PUSH32(esp, 0x2Bu); /* 0x2B039917: push 0x2b */ 611 PUSH32(esp, 6); /* 0x2B039919: push 6 */ 612 RECOMP_ICALL(esi); /* 0x2B03991B: call esi */ 613 RECOMP_FLAGS_IN(); 614 ecx = eax; /* 0x2B03991D: mov ecx, eax */ 615 RECOMP_ICALL(MEM32(0x2B0B5378)); /* 0x2B03991F: call dword ptr [0x2b0b5378] */ 616 RECOMP_FLAGS_IN(); 617 PUSH32(esp, 0x2B03A030u); /* 0x2B039925: push 0x2b03a030 */ 618 RECOMP_ICALL(esi); /* 0x2B03992A: call esi */ 619 RECOMP_FLAGS_IN(); 620 ecx = eax; /* 0x2B03992C: mov ecx, eax */ 621 RECOMP_ICALL(MEM32(0x2B0B537C)); /* 0x2B03992E: call dword ptr [0x2b0b537c] */ 622 RECOMP_FLAGS_IN(); 623 PUSH32(esp, 0x2B039980u); /* 0x2B039934: push 0x2b039980 */ 624 PUSH32(esp, 5); /* 0x2B039939: push 5 */ 625 RECOMP_ICALL(esi); /* 0x2B03993B: call esi */ 626 RECOMP_FLAGS_IN(); 627 edi = MEM32(0x2B0B5324); /* 0x2B03993D: mov edi, dword ptr [0x2b0b5324] */ 628 ecx = eax; /* 0x2B039943: mov ecx, eax */ 629 RECOMP_ICALL(edi); /* 0x2B039945: call edi */ 630 RECOMP_FLAGS_IN(); 631 PUSH32(esp, 0x2B03A140u); /* 0x2B039947: push 0x2b03a140 */ 632 PUSH32(esp, 6); /* 0x2B03994C: push 6 */ 633 RECOMP_ICALL(esi); /* 0x2B03994E: call esi */ 634 RECOMP_FLAGS_IN(); 635 ecx = eax; /* 0x2B039950: mov ecx, eax */ 636 RECOMP_ICALL(edi); /* 0x2B039952: call edi */ 637 RECOMP_FLAGS_IN(); 638 PUSH32(esp, 0x2B03A170u); /* 0x2B039954: push 0x2b03a170 */ 639 PUSH32(esp, 0x109u); /* 0x2B039959: push 0x109 */ 640 RECOMP_ICALL(esi); /* 0x2B03995E: call esi */ 641 RECOMP_FLAGS_IN(); 642 ecx = eax; /* 0x2B039960: mov ecx, eax */ 643 RECOMP_ICALL(edi); /* 0x2B039962: call edi */ 644 RECOMP_FLAGS_IN(); 645 PUSH32(esp, 0x2B039FD0u); /* 0x2B039964: push 0x2b039fd0 */ 646 PUSH32(esp, 0x10Au); /* 0x2B039969: push 0x10a */ 647 RECOMP_ICALL(esi); /* 0x2B03996E: call esi */ 648 RECOMP_FLAGS_IN(); 649 ecx = eax; /* 0x2B039970: mov ecx, eax */ 650 RECOMP_ICALL(edi); /* 0x2B039972: call edi */ 651 RECOMP_FLAGS_IN(); 652 edi = POP32_VAL(esp); /* 0x2B039974: pop edi */ 653 esi = POP32_VAL(esp); /* 0x2B039975: pop esi */ 654 eax = ebx; /* 0x2B039976: mov eax, ebx */ 655 ebx = POP32_VAL(esp); /* 0x2B039978: pop ebx */ 656 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B039979: ret */ 657 RECOMP_REGS_OUT(); 658 } 659 660 void sub_2B039980(void) { 661 int _fpu_cmp = 0; 662 uint32_t _cf = 0; 663 int _df = 1; 664 uint32_t _flag_k = FK_NONE; 665 uint32_t _flag_a = 0, _flag_b = 0; 666 uint32_t _itail_tgt = 0; 667 RECOMP_REGS_LOCALS 668 RECOMP_ENTER(0x2B039980u); 669 670 L_2B039980: 671 PUSH32(esp, ebp); /* 0x2B039980: push ebp */ 672 ebp = esp; /* 0x2B039981: mov ebp, esp */ 673 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 674 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 675 esp = esp - 8; /* 0x2B039983: sub esp, 8 */ 676 _flag_k = FK_CMP; 677 PUSH32(esp, 7); /* 0x2B039986: push 7 */ 678 RECOMP_ICALL(MEM32(0x2B0B5B64)); /* 0x2B039988: call dword ptr [0x2b0b5b64] */ 679 RECOMP_FLAGS_IN(); 680 ecx = eax; /* 0x2B03998E: mov ecx, eax */ 681 RECOMP_ICALL(MEM32(0x2B0B5AA0)); /* 0x2B039990: call dword ptr [0x2b0b5aa0] */ 682 RECOMP_FLAGS_IN(); 683 RECOMP_ICALL(0x2B0399D0u); /* 0x2B039996: call 0x2b0399d0 */ /* not lifted */ 684 RECOMP_FLAGS_IN(); 685 SET_LO8(eax, 1); /* 0x2B03999B: mov al, 1 */ 686 MEM8(0x2B0EE96C) = (uint8_t)(LO8(eax)); /* 0x2B03999D: mov byte ptr [0x2b0ee96c], al */ 687 MEM8(0x2B0E6D0C) = (uint8_t)(LO8(eax)); /* 0x2B0399A2: mov byte ptr [0x2b0e6d0c], al */ 688 RECOMP_ICALL(MEM32(0x2B0B53BC)); /* 0x2B0399A7: call dword ptr [0x2b0b53bc] */ 689 RECOMP_FLAGS_IN(); 690 eax = MEM32(eax + 0x24); /* 0x2B0399AD: mov eax, dword ptr [eax + 0x24] */ 691 MEM32(ebp + (-0x8)) = eax; /* 0x2B0399B0: mov dword ptr [ebp - 8], eax */ 692 MEM32(ebp + (-0x4)) = 0; /* 0x2B0399B3: mov dword ptr [ebp - 4], 0 */ 693 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x2B0399BA: fild qword ptr [ebp - 8] */ 694 { float _v = (float)fp_pop(); *(float*)ADDR(0x2B0EE970) = _v; } /* 0x2B0399BD: fstp dword ptr [0x2b0ee970] */ 695 esp = ebp; /* 0x2B0399C3: mov esp, ebp */ 696 ebp = POP32_VAL(esp); /* 0x2B0399C5: pop ebp */ 697 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0399C6: ret */ 698 RECOMP_REGS_OUT(); 699 } 700 701 void sub_2B0399D0(void) { 702 int _fpu_cmp = 0; 703 uint32_t _cf = 0; 704 int _df = 1; 705 uint32_t _flag_k = FK_NONE; 706 uint32_t _flag_a = 0, _flag_b = 0; 707 uint32_t _itail_tgt = 0; 708 RECOMP_REGS_LOCALS 709 RECOMP_ENTER(0x2B0399D0u); 710 711 L_2B0399D0: 712 PUSH32(esp, ebp); /* 0x2B0399D0: push ebp */ 713 ebp = esp; /* 0x2B0399D1: mov ebp, esp */ 714 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B0399D3: push -1 */ 715 PUSH32(esp, 0x2B0AE816u); /* 0x2B0399D5: push 0x2b0ae816 */ 716 eax = MEM32(FS_BASE + (0)); /* 0x2B0399DA: mov eax, dword ptr fs:[0] */ 717 PUSH32(esp, eax); /* 0x2B0399E0: push eax */ 718 MEM32(FS_BASE + (0)) = esp; /* 0x2B0399E1: mov dword ptr fs:[0], esp */ 719 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x5Cu); 720 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 721 esp = esp - 0x5Cu; /* 0x2B0399E8: sub esp, 0x5c */ 722 _flag_k = FK_CMP; 723 PUSH32(esp, ebx); /* 0x2B0399EB: push ebx */ 724 PUSH32(esp, esi); /* 0x2B0399EC: push esi */ 725 PUSH32(esp, edi); /* 0x2B0399ED: push edi */ 726 RECOMP_ICALL(0x2B039EC0u); /* 0x2B0399EE: call 0x2b039ec0 */ /* not lifted */ 727 RECOMP_FLAGS_IN(); 728 esi = MEM32(0x2B0B5690); /* 0x2B0399F3: mov esi, dword ptr [0x2b0b5690] */ 729 RECOMP_ICALL(esi); /* 0x2B0399F9: call esi */ 730 RECOMP_FLAGS_IN(); 731 ecx = eax; /* 0x2B0399FB: mov ecx, eax */ 732 RECOMP_ICALL(MEM32(0x2B0B5688)); /* 0x2B0399FD: call dword ptr [0x2b0b5688] */ 733 RECOMP_FLAGS_IN(); 734 edi = eax; /* 0x2B039A03: mov edi, eax */ 735 MEM32(ebp + (-0x18)) = edi; /* 0x2B039A05: mov dword ptr [ebp - 0x18], edi */ 736 RECOMP_ICALL(esi); /* 0x2B039A08: call esi */ 737 RECOMP_FLAGS_IN(); 738 ecx = eax; /* 0x2B039A0A: mov ecx, eax */ 739 RECOMP_ICALL(MEM32(0x2B0B568C)); /* 0x2B039A0C: call dword ptr [0x2b0b568c] */ 740 RECOMP_FLAGS_IN(); 741 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 742 ebx = 0; /* 0x2B039A12: xor ebx, ebx */ 743 _cf = 0; 744 _flag_k = FK_TEST; 745 PUSH32(esp, 0x34u); /* 0x2B039A14: push 0x34 */ 746 MEM32(ebp + (-0x14)) = eax; /* 0x2B039A16: mov dword ptr [ebp - 0x14], eax */ 747 MEM32(ebp + (-0x2C)) = ebx; /* 0x2B039A19: mov dword ptr [ebp - 0x2c], ebx */ 748 MEM32(ebp + (-0x28)) = ebx; /* 0x2B039A1C: mov dword ptr [ebp - 0x28], ebx */ 749 RECOMP_ICALL(0x2B0AB212u); /* 0x2B039A1F: call 0x2b0ab212 */ /* not lifted */ 750 RECOMP_FLAGS_IN(); 751 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 752 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 753 esp = esp + 4; /* 0x2B039A24: add esp, 4 */ 754 _flag_k = FK_ADD; 755 MEM32(ebp + (-0x20)) = eax; /* 0x2B039A27: mov dword ptr [ebp - 0x20], eax */ 756 /* cmp eax, ebx */ /* 0x2B039A2A: cmp eax, ebx */ 757 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 758 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 759 _flag_k = FK_CMP; 760 MEM32(ebp + (-0x4)) = ebx; /* 0x2B039A2C: mov dword ptr [ebp - 4], ebx */ 761 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B039A41; /* 0x2B039A2F: je 0x2b039a41 */ 762 L_2B039A31: 763 PUSH32(esp, 2); /* 0x2B039A31: push 2 */ 764 PUSH32(esp, 0x10u); /* 0x2B039A33: push 0x10 */ 765 PUSH32(esp, 0x10u); /* 0x2B039A35: push 0x10 */ 766 ecx = eax; /* 0x2B039A37: mov ecx, eax */ 767 RECOMP_ICALL(MEM32(0x2B0B5650)); /* 0x2B039A39: call dword ptr [0x2b0b5650] */ 768 RECOMP_FLAGS_IN(); 769 goto L_2B039A43; /* 0x2B039A3F: jmp 0x2b039a43 */ 770 L_2B039A41: 771 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 772 eax = 0; /* 0x2B039A41: xor eax, eax */ 773 _cf = 0; 774 _flag_k = FK_TEST; 775 L_2B039A43: 776 PUSH32(esp, ebx); /* 0x2B039A43: push ebx */ 777 PUSH32(esp, ebx); /* 0x2B039A44: push ebx */ 778 PUSH32(esp, ebx); /* 0x2B039A45: push ebx */ 779 ecx = eax; /* 0x2B039A46: mov ecx, eax */ 780 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B039A48: mov dword ptr [ebp - 4], 0xffffffff */ 781 MEM32(0x2B0EE954) = eax; /* 0x2B039A4F: mov dword ptr [0x2b0ee954], eax */ 782 RECOMP_ICALL(MEM32(0x2B0B564C)); /* 0x2B039A54: call dword ptr [0x2b0b564c] */ 783 RECOMP_FLAGS_IN(); 784 PUSH32(esp, 0xD8u); /* 0x2B039A5A: push 0xd8 */ 785 RECOMP_ICALL(0x2B0AB212u); /* 0x2B039A5F: call 0x2b0ab212 */ /* not lifted */ 786 RECOMP_FLAGS_IN(); 787 esi = eax; /* 0x2B039A64: mov esi, eax */ 788 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 789 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 790 esp = esp + 4; /* 0x2B039A66: add esp, 4 */ 791 _flag_k = FK_ADD; 792 MEM32(ebp + (-0x24)) = esi; /* 0x2B039A69: mov dword ptr [ebp - 0x24], esi */ 793 /* cmp esi, ebx */ /* 0x2B039A6C: cmp esi, ebx */ 794 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 795 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 796 _flag_k = FK_CMP; 797 MEM32(ebp + (-0x4)) = 1; /* 0x2B039A6E: mov dword ptr [ebp - 4], 1 */ 798 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B039AB8; /* 0x2B039A75: je 0x2b039ab8 */ 799 L_2B039A77: 800 fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x2B039A77: fild dword ptr [ebp - 0x14] */ 801 edx = MEM32(0x2B0EE954); /* 0x2B039A7A: mov edx, dword ptr [0x2b0ee954] */ 802 eax = ebp + (-0x1C); /* 0x2B039A80: lea eax, [ebp - 0x1c] */ 803 PUSH32(esp, eax); /* 0x2B039A83: push eax */ 804 _st[0] *= (double)*(float*)ADDR(0x2B0B6184); /* 0x2B039A84: fmul dword ptr [0x2b0b6184] */ 805 ecx = ebp + (-0x20); /* 0x2B039A8A: lea ecx, [ebp - 0x20] */ 806 PUSH32(esp, ecx); /* 0x2B039A8D: push ecx */ 807 PUSH32(esp, ebx); /* 0x2B039A8E: push ebx */ 808 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x2B039A8F: fstp dword ptr [ebp - 0x1c] */ 809 PUSH32(esp, 0x000186A0u); /* 0x2B039A92: push 0x186a0 */ 810 fp_push((double)(int32_t)MEM32(ebp + (-0x18))); /* 0x2B039A97: fild dword ptr [ebp - 0x18] */ 811 PUSH32(esp, edx); /* 0x2B039A9A: push edx */ 812 eax = ebp + (-0x2C); /* 0x2B039A9B: lea eax, [ebp - 0x2c] */ 813 PUSH32(esp, eax); /* 0x2B039A9E: push eax */ 814 _st[0] *= (double)*(float*)ADDR(0x2B0B6184); /* 0x2B039A9F: fmul dword ptr [0x2b0b6184] */ 815 ecx = esi; /* 0x2B039AA5: mov ecx, esi */ 816 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x2B039AA7: fstp dword ptr [ebp - 0x20] */ 817 RECOMP_ICALL(MEM32(0x2B0B5654)); /* 0x2B039AAA: call dword ptr [0x2b0b5654] */ 818 RECOMP_FLAGS_IN(); 819 MEM32(esi) = 0x2B0B618Cu; /* 0x2B039AB0: mov dword ptr [esi], 0x2b0b618c */ 820 goto L_2B039ABA; /* 0x2B039AB6: jmp 0x2b039aba */ 821 L_2B039AB8: 822 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 823 esi = 0; /* 0x2B039AB8: xor esi, esi */ 824 _cf = 0; 825 _flag_k = FK_TEST; 826 L_2B039ABA: 827 ecx = MEM32(ebp + (-0x14)); /* 0x2B039ABA: mov ecx, dword ptr [ebp - 0x14] */ 828 PUSH32(esp, 0x9Cu); /* 0x2B039ABD: push 0x9c */ 829 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B039AC2: mov dword ptr [ebp - 4], 0xffffffff */ 830 MEM32(0x2B0EE958) = esi; /* 0x2B039AC9: mov dword ptr [0x2b0ee958], esi */ 831 MEM32(ebp + (-0x34)) = edi; /* 0x2B039ACF: mov dword ptr [ebp - 0x34], edi */ 832 MEM32(ebp + (-0x30)) = ecx; /* 0x2B039AD2: mov dword ptr [ebp - 0x30], ecx */ 833 RECOMP_ICALL(0x2B0AB212u); /* 0x2B039AD5: call 0x2b0ab212 */ /* not lifted */ 834 RECOMP_FLAGS_IN(); 835 esi = eax; /* 0x2B039ADA: mov esi, eax */ 836 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 837 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 838 esp = esp + 4; /* 0x2B039ADC: add esp, 4 */ 839 _flag_k = FK_ADD; 840 MEM32(ebp + (-0x24)) = esi; /* 0x2B039ADF: mov dword ptr [ebp - 0x24], esi */ 841 /* cmp esi, ebx */ /* 0x2B039AE2: cmp esi, ebx */ 842 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 843 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 844 _flag_k = FK_CMP; 845 MEM32(ebp + (-0x4)) = 2; /* 0x2B039AE4: mov dword ptr [ebp - 4], 2 */ 846 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B039B19; /* 0x2B039AEB: je 0x2b039b19 */ 847 L_2B039AED: 848 edx = MEM32(ebp + (-0x30)); /* 0x2B039AED: mov edx, dword ptr [ebp - 0x30] */ 849 eax = MEM32(ebp + (-0x34)); /* 0x2B039AF0: mov eax, dword ptr [ebp - 0x34] */ 850 ecx = MEM32(ebp + (-0x28)); /* 0x2B039AF3: mov ecx, dword ptr [ebp - 0x28] */ 851 PUSH32(esp, ebx); /* 0x2B039AF6: push ebx */ 852 PUSH32(esp, 4); /* 0x2B039AF7: push 4 */ 853 PUSH32(esp, ebx); /* 0x2B039AF9: push ebx */ 854 PUSH32(esp, 0x000186A0u); /* 0x2B039AFA: push 0x186a0 */ 855 PUSH32(esp, ebx); /* 0x2B039AFF: push ebx */ 856 PUSH32(esp, ebx); /* 0x2B039B00: push ebx */ 857 PUSH32(esp, ebx); /* 0x2B039B01: push ebx */ 858 PUSH32(esp, edx); /* 0x2B039B02: push edx */ 859 edx = MEM32(ebp + (-0x2C)); /* 0x2B039B03: mov edx, dword ptr [ebp - 0x2c] */ 860 PUSH32(esp, eax); /* 0x2B039B06: push eax */ 861 PUSH32(esp, ecx); /* 0x2B039B07: push ecx */ 862 PUSH32(esp, edx); /* 0x2B039B08: push edx */ 863 ecx = esi; /* 0x2B039B09: mov ecx, esi */ 864 RECOMP_ICALL(MEM32(0x2B0B5AF0)); /* 0x2B039B0B: call dword ptr [0x2b0b5af0] */ 865 RECOMP_FLAGS_IN(); 866 MEM32(esi) = 0x2B0B642Cu; /* 0x2B039B11: mov dword ptr [esi], 0x2b0b642c */ 867 goto L_2B039B1B; /* 0x2B039B17: jmp 0x2b039b1b */ 868 L_2B039B19: 869 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 870 esi = 0; /* 0x2B039B19: xor esi, esi */ 871 _cf = 0; 872 _flag_k = FK_TEST; 873 L_2B039B1B: 874 /* cmp MEM8(0x2B0EE96D), LO8(ebx) */ /* 0x2B039B1B: cmp byte ptr [0x2b0ee96d], bl */ 875 _flag_a = (uint32_t)(MEM8(0x2B0EE96D)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 876 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 877 _flag_k = FK_NARROW(FK_CMP, 24); 878 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B039B21: mov dword ptr [ebp - 4], 0xffffffff */ 879 MEM32(0x2B0EE95C) = esi; /* 0x2B039B28: mov dword ptr [0x2b0ee95c], esi */ 880 PUSH32(esp, 2); /* 0x2B039B2E: push 2 */ 881 if (CMP_NE(_flag_a, _flag_b)) goto L_2B039B39; /* 0x2B039B30: jne 0x2b039b39 */ 882 L_2B039B32: 883 PUSH32(esp, 0x105u); /* 0x2B039B32: push 0x105 */ 884 goto L_2B039B3E; /* 0x2B039B37: jmp 0x2b039b3e */ 885 L_2B039B39: 886 PUSH32(esp, 0x106u); /* 0x2B039B39: push 0x106 */ 887 L_2B039B3E: 888 RECOMP_ICALL(MEM32(0x2B0B5F80)); /* 0x2B039B3E: call dword ptr [0x2b0b5f80] */ 889 RECOMP_FLAGS_IN(); 890 ecx = eax; /* 0x2B039B44: mov ecx, eax */ 891 RECOMP_ICALL(MEM32(0x2B0B5FBC)); /* 0x2B039B46: call dword ptr [0x2b0b5fbc] */ 892 RECOMP_FLAGS_IN(); 893 esi = eax; /* 0x2B039B4C: mov esi, eax */ 894 ecx = MEM32(esi + 0xC); /* 0x2B039B4E: mov ecx, dword ptr [esi + 0xc] */ 895 eax = MEM32(ebp + (-0x18)); /* 0x2B039B51: mov eax, dword ptr [ebp - 0x18] */ 896 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 897 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 898 eax = eax - ecx; /* 0x2B039B54: sub eax, ecx */ 899 _flag_k = FK_CMP; 900 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B039B56: cdq */ 901 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 902 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 903 eax = eax - edx; /* 0x2B039B57: sub eax, edx */ 904 _flag_k = FK_CMP; 905 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2B039B59: sar eax, 1 */ 906 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 907 eax = (uint32_t)((int32_t)eax >> 1u); 908 MEM32(ebp + (-0x34)) = ecx; /* 0x2B039B5B: mov dword ptr [ebp - 0x34], ecx */ 909 edi = MEM32(esi + 0x8); /* 0x2B039B5E: mov edi, dword ptr [esi + 8] */ 910 MEM32(ebp + (-0x3C)) = eax; /* 0x2B039B61: mov dword ptr [ebp - 0x3c], eax */ 911 eax = MEM32(ebp + (-0x14)); /* 0x2B039B64: mov eax, dword ptr [ebp - 0x14] */ 912 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 913 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 914 eax = eax - edi; /* 0x2B039B67: sub eax, edi */ 915 _flag_k = FK_CMP; 916 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B039B69: cdq */ 917 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 918 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 919 eax = eax - edx; /* 0x2B039B6A: sub eax, edx */ 920 _flag_k = FK_CMP; 921 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2B039B6C: sar eax, 1 */ 922 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 923 eax = (uint32_t)((int32_t)eax >> 1u); 924 PUSH32(esp, 0x50u); /* 0x2B039B6E: push 0x50 */ 925 MEM32(ebp + (-0x30)) = edi; /* 0x2B039B70: mov dword ptr [ebp - 0x30], edi */ 926 MEM32(ebp + (-0x54)) = ebx; /* 0x2B039B73: mov dword ptr [ebp - 0x54], ebx */ 927 MEM32(ebp + (-0x50)) = ebx; /* 0x2B039B76: mov dword ptr [ebp - 0x50], ebx */ 928 MEM32(ebp + (-0x4C)) = ecx; /* 0x2B039B79: mov dword ptr [ebp - 0x4c], ecx */ 929 MEM32(ebp + (-0x48)) = edi; /* 0x2B039B7C: mov dword ptr [ebp - 0x48], edi */ 930 MEM32(ebp + (-0x38)) = eax; /* 0x2B039B7F: mov dword ptr [ebp - 0x38], eax */ 931 RECOMP_ICALL(0x2B0AB212u); /* 0x2B039B82: call 0x2b0ab212 */ /* not lifted */ 932 RECOMP_FLAGS_IN(); 933 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 934 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 935 esp = esp + 4; /* 0x2B039B87: add esp, 4 */ 936 _flag_k = FK_ADD; 937 MEM32(ebp + (-0x24)) = eax; /* 0x2B039B8A: mov dword ptr [ebp - 0x24], eax */ 938 /* cmp eax, ebx */ /* 0x2B039B8D: cmp eax, ebx */ 939 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 940 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 941 _flag_k = FK_CMP; 942 MEM32(ebp + (-0x4)) = 3; /* 0x2B039B8F: mov dword ptr [ebp - 4], 3 */ 943 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B039BBE; /* 0x2B039B96: je 0x2b039bbe */ 944 L_2B039B98: 945 PUSH32(esp, ebx); /* 0x2B039B98: push ebx */ 946 PUSH32(esp, 0x3F800000u); /* 0x2B039B99: push 0x3f800000 */ 947 PUSH32(esp, 0x3F800000u); /* 0x2B039B9E: push 0x3f800000 */ 948 PUSH32(esp, 0x000186A1u); /* 0x2B039BA3: push 0x186a1 */ 949 ecx = ebp + (-0x3C); /* 0x2B039BA8: lea ecx, [ebp - 0x3c] */ 950 PUSH32(esp, ecx); /* 0x2B039BAB: push ecx */ 951 edx = ebp + (-0x34); /* 0x2B039BAC: lea edx, [ebp - 0x34] */ 952 PUSH32(esp, edx); /* 0x2B039BAF: push edx */ 953 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B039BB0: push -1 */ 954 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B039BB2: push -1 */ 955 ecx = eax; /* 0x2B039BB4: mov ecx, eax */ 956 RECOMP_ICALL(MEM32(0x2B0B5BD8)); /* 0x2B039BB6: call dword ptr [0x2b0b5bd8] */ 957 RECOMP_FLAGS_IN(); 958 goto L_2B039BC0; /* 0x2B039BBC: jmp 0x2b039bc0 */ 959 L_2B039BBE: 960 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 961 eax = 0; /* 0x2B039BBE: xor eax, eax */ 962 _cf = 0; 963 _flag_k = FK_TEST; 964 L_2B039BC0: 965 PUSH32(esp, 1); /* 0x2B039BC0: push 1 */ 966 MEM32(0x2B0EE968) = eax; /* 0x2B039BC2: mov dword ptr [0x2b0ee968], eax */ 967 eax = MEM32(eax + 0x28); /* 0x2B039BC7: mov eax, dword ptr [eax + 0x28] */ 968 PUSH32(esp, ebx); /* 0x2B039BCA: push ebx */ 969 PUSH32(esp, ebx); /* 0x2B039BCB: push ebx */ 970 ecx = eax; /* 0x2B039BCC: mov ecx, eax */ 971 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B039BCE: mov dword ptr [ebp - 4], 0xffffffff */ 972 RECOMP_ICALL(MEM32(0x2B0B564C)); /* 0x2B039BD5: call dword ptr [0x2b0b564c] */ 973 RECOMP_FLAGS_IN(); 974 eax = MEM32(0x2B0EE968); /* 0x2B039BDB: mov eax, dword ptr [0x2b0ee968] */ 975 ecx = MEM32(eax + 0x28); /* 0x2B039BE0: mov ecx, dword ptr [eax + 0x28] */ 976 PUSH32(esp, esi); /* 0x2B039BE3: push esi */ 977 edx = ebp + (-0x2C); /* 0x2B039BE4: lea edx, [ebp - 0x2c] */ 978 PUSH32(esp, edx); /* 0x2B039BE7: push edx */ 979 eax = ebp + (-0x54); /* 0x2B039BE8: lea eax, [ebp - 0x54] */ 980 PUSH32(esp, eax); /* 0x2B039BEB: push eax */ 981 RECOMP_ICALL(MEM32(0x2B0B5560)); /* 0x2B039BEC: call dword ptr [0x2b0b5560] */ 982 RECOMP_FLAGS_IN(); 983 ecx = MEM32(0x2B0EE968); /* 0x2B039BF2: mov ecx, dword ptr [0x2b0ee968] */ 984 RECOMP_ICALL(MEM32(0x2B0B5BDC)); /* 0x2B039BF8: call dword ptr [0x2b0b5bdc] */ 985 RECOMP_FLAGS_IN(); 986 /* Fit the loading artwork uniformly inside its 1024x768 reference area. */ 987 ecx = MEM32(0x2B0EE968); 988 esp -= 4; 989 *(float *)ADDR(esp) = fminf((float)MEM32(ebp - 0x18) / 1024.0f, 990 (float)MEM32(ebp - 0x14) / 768.0f); 991 { 992 uint32_t scale = esp; 993 PUSH32(esp, scale); 994 PUSH32(esp, scale); 995 RECOMP_ICALL(0x27018AC0u); /* RenderWindow_t::SetScale */ 996 } 997 esp += 4; 998 RECOMP_FLAGS_IN(); 999 ecx = MEM32(0x2B0EE968); /* 0x2B039C14: mov ecx, dword ptr [0x2b0ee968] */ 1000 PUSH32(esp, 1); /* 0x2B039C1A: push 1 */ 1001 RECOMP_ICALL(MEM32(0x2B0B5B1C)); /* 0x2B039C1C: call dword ptr [0x2b0b5b1c] */ 1002 RECOMP_FLAGS_IN(); 1003 ecx = MEM32(0x2B0EE968); /* 0x2B039C22: mov ecx, dword ptr [0x2b0ee968] */ 1004 PUSH32(esp, 0x3F000000u); /* 0x2B039C28: push 0x3f000000 */ 1005 PUSH32(esp, 0x3F000000u); /* 0x2B039C2D: push 0x3f000000 */ 1006 RECOMP_ICALL(MEM32(0x2B0B5B14)); /* 0x2B039C32: call dword ptr [0x2b0b5b14] */ 1007 RECOMP_FLAGS_IN(); 1008 PUSH32(esp, esi); /* 0x2B039C38: push esi */ 1009 RECOMP_ICALL(MEM32(0x2B0B5F80)); /* 0x2B039C39: call dword ptr [0x2b0b5f80] */ 1010 RECOMP_FLAGS_IN(); 1011 ecx = eax; /* 0x2B039C3F: mov ecx, eax */ 1012 RECOMP_ICALL(MEM32(0x2B0B5FB8)); /* 0x2B039C41: call dword ptr [0x2b0b5fb8] */ 1013 RECOMP_FLAGS_IN(); 1014 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B039C47: mov cl, byte ptr [ebp - 0xd] */ 1015 MEM8(ebp + (-0x68)) = (uint8_t)(LO8(ecx)); /* 0x2B039C4A: mov byte ptr [ebp - 0x68], cl */ 1016 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1017 eax = 0; /* 0x2B039C4D: xor eax, eax */ 1018 _cf = 0; 1019 _flag_k = FK_TEST; 1020 edi = 0x2B0E6D2Cu; /* 0x2B039C4F: mov edi, 0x2b0e6d2c */ 1021 MEM32(ebp + (-0x64)) = ebx; /* 0x2B039C54: mov dword ptr [ebp - 0x64], ebx */ 1022 MEM32(ebp + (-0x60)) = ebx; /* 0x2B039C57: mov dword ptr [ebp - 0x60], ebx */ 1023 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B039C5A: mov dword ptr [ebp - 0x5c], ebx */ 1024 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1025 ecx = ecx | 0xFFFFFFFFu; /* 0x2B039C5D: or ecx, 0xffffffff */ 1026 _cf = 0; 1027 _flag_k = FK_TEST; 1028 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B039C60: repne scasb al, byte ptr es:[edi] */ 1029 ecx = ~ecx; /* 0x2B039C62: not ecx */ 1030 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1031 ecx = ecx - 1; /* 0x2B039C64: dec ecx */ 1032 _flag_k = FK_DEC; 1033 PUSH32(esp, ecx); /* 0x2B039C65: push ecx */ 1034 PUSH32(esp, 0x2B0E6D2Cu); /* 0x2B039C66: push 0x2b0e6d2c */ 1035 ecx = ebp + (-0x68); /* 0x2B039C6B: lea ecx, [ebp - 0x68] */ 1036 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B039C6E: call dword ptr [0x2b0b5148] */ 1037 RECOMP_FLAGS_IN(); 1038 MEM32(ebp + (-0x58)) = ebx; /* 0x2B039C74: mov dword ptr [ebp - 0x58], ebx */ 1039 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B039C77: push -1 */ 1040 PUSH32(esp, ebx); /* 0x2B039C79: push ebx */ 1041 PUSH32(esp, 5); /* 0x2B039C7A: push 5 */ 1042 ecx = ebp + (-0x68); /* 0x2B039C7C: lea ecx, [ebp - 0x68] */ 1043 MEM32(ebp + (-0x4)) = 4; /* 0x2B039C7F: mov dword ptr [ebp - 4], 4 */ 1044 RECOMP_ICALL(MEM32(0x2B0B59B8)); /* 0x2B039C86: call dword ptr [0x2b0b59b8] */ 1045 RECOMP_FLAGS_IN(); 1046 esi = eax; /* 0x2B039C8C: mov esi, eax */ 1047 eax = MEM32(ebp + (-0x18)); /* 0x2B039C8E: mov eax, dword ptr [ebp - 0x18] */ 1048 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1049 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1050 eax = eax - esi; /* 0x2B039C91: sub eax, esi */ 1051 _flag_k = FK_CMP; 1052 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B039C93: cdq */ 1053 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1054 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1055 eax = eax - edx; /* 0x2B039C94: sub eax, edx */ 1056 _flag_k = FK_CMP; 1057 edx = MEM32(ebp + (-0x14)); /* 0x2B039C96: mov edx, dword ptr [ebp - 0x14] */ 1058 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2B039C99: sar eax, 1 */ 1059 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1060 eax = (uint32_t)((int32_t)eax >> 1u); 1061 MEM32(ebp + (-0x3C)) = eax; /* 0x2B039C9B: mov dword ptr [ebp - 0x3c], eax */ 1062 eax = MEM32(0x2B0B5BCC); /* 0x2B039C9E: mov eax, dword ptr [0x2b0b5bcc] */ 1063 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFCEu); 1064 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1065 edx = edx + 0xFFFFFFCEu; /* 0x2B039CA3: add edx, -0x32 */ 1066 _flag_k = FK_ADD; 1067 MEM32(ebp + (-0x38)) = edx; /* 0x2B039CA6: mov dword ptr [ebp - 0x38], edx */ 1068 /* cmp MEM32(eax), ebx */ /* 0x2B039CA9: cmp dword ptr [eax], ebx */ 1069 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(ebx); 1070 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1071 _flag_k = FK_CMP; 1072 if (CMP_NE(_flag_a, _flag_b)) goto L_2B039CDA; /* 0x2B039CAB: jne 0x2b039cda */ 1073 L_2B039CAD: 1074 PUSH32(esp, 0x20u); /* 0x2B039CAD: push 0x20 */ 1075 RECOMP_ICALL(0x2B0AB212u); /* 0x2B039CAF: call 0x2b0ab212 */ /* not lifted */ 1076 RECOMP_FLAGS_IN(); 1077 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1078 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1079 esp = esp + 4; /* 0x2B039CB4: add esp, 4 */ 1080 _flag_k = FK_ADD; 1081 MEM32(ebp + (-0x24)) = eax; /* 0x2B039CB7: mov dword ptr [ebp - 0x24], eax */ 1082 /* cmp eax, ebx */ /* 0x2B039CBA: cmp eax, ebx */ 1083 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1084 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1085 _flag_k = FK_CMP; 1086 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B039CBC: mov byte ptr [ebp - 4], 5 */ 1087 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B039CCC; /* 0x2B039CC0: je 0x2b039ccc */ 1088 L_2B039CC2: 1089 ecx = eax; /* 0x2B039CC2: mov ecx, eax */ 1090 RECOMP_ICALL(MEM32(0x2B0B5BD0)); /* 0x2B039CC4: call dword ptr [0x2b0b5bd0] */ 1091 RECOMP_FLAGS_IN(); 1092 goto L_2B039CCE; /* 0x2B039CCA: jmp 0x2b039cce */ 1093 L_2B039CCC: 1094 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1095 eax = 0; /* 0x2B039CCC: xor eax, eax */ 1096 _cf = 0; 1097 _flag_k = FK_TEST; 1098 L_2B039CCE: 1099 ecx = MEM32(0x2B0B5BCC); /* 0x2B039CCE: mov ecx, dword ptr [0x2b0b5bcc] */ 1100 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B039CD4: mov byte ptr [ebp - 4], 4 */ 1101 MEM32(ecx) = eax; /* 0x2B039CD8: mov dword ptr [ecx], eax */ 1102 L_2B039CDA: 1103 edx = MEM32(0x2B0B5BCC); /* 0x2B039CDA: mov edx, dword ptr [0x2b0b5bcc] */ 1104 ecx = MEM32(edx); /* 0x2B039CE0: mov ecx, dword ptr [edx] */ 1105 PUSH32(esp, 5); /* 0x2B039CE2: push 5 */ 1106 RECOMP_ICALL(MEM32(0x2B0B5BD4)); /* 0x2B039CE4: call dword ptr [0x2b0b5bd4] */ 1107 RECOMP_FLAGS_IN(); 1108 PUSH32(esp, 0x50u); /* 0x2B039CEA: push 0x50 */ 1109 MEM32(ebp + (-0x44)) = esi; /* 0x2B039CEC: mov dword ptr [ebp - 0x44], esi */ 1110 MEM32(ebp + (-0x40)) = eax; /* 0x2B039CEF: mov dword ptr [ebp - 0x40], eax */ 1111 RECOMP_ICALL(0x2B0AB212u); /* 0x2B039CF2: call 0x2b0ab212 */ /* not lifted */ 1112 RECOMP_FLAGS_IN(); 1113 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1114 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1115 esp = esp + 4; /* 0x2B039CF7: add esp, 4 */ 1116 _flag_k = FK_ADD; 1117 MEM32(ebp + (-0x24)) = eax; /* 0x2B039CFA: mov dword ptr [ebp - 0x24], eax */ 1118 /* cmp eax, ebx */ /* 0x2B039CFD: cmp eax, ebx */ 1119 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1120 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1121 _flag_k = FK_CMP; 1122 MEM8(ebp + (-0x4)) = (uint8_t)(6); /* 0x2B039CFF: mov byte ptr [ebp - 4], 6 */ 1123 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B039D2B; /* 0x2B039D03: je 0x2b039d2b */ 1124 L_2B039D05: 1125 PUSH32(esp, ebx); /* 0x2B039D05: push ebx */ 1126 PUSH32(esp, 0x3F800000u); /* 0x2B039D06: push 0x3f800000 */ 1127 PUSH32(esp, 0x3F800000u); /* 0x2B039D0B: push 0x3f800000 */ 1128 PUSH32(esp, 0x000186A2u); /* 0x2B039D10: push 0x186a2 */ 1129 ecx = ebp + (-0x3C); /* 0x2B039D15: lea ecx, [ebp - 0x3c] */ 1130 PUSH32(esp, ecx); /* 0x2B039D18: push ecx */ 1131 edx = ebp + (-0x44); /* 0x2B039D19: lea edx, [ebp - 0x44] */ 1132 PUSH32(esp, edx); /* 0x2B039D1C: push edx */ 1133 PUSH32(esp, 6); /* 0x2B039D1D: push 6 */ 1134 PUSH32(esp, 6); /* 0x2B039D1F: push 6 */ 1135 ecx = eax; /* 0x2B039D21: mov ecx, eax */ 1136 RECOMP_ICALL(MEM32(0x2B0B5BD8)); /* 0x2B039D23: call dword ptr [0x2b0b5bd8] */ 1137 RECOMP_FLAGS_IN(); 1138 goto L_2B039D2D; /* 0x2B039D29: jmp 0x2b039d2d */ 1139 L_2B039D2B: 1140 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1141 eax = 0; /* 0x2B039D2B: xor eax, eax */ 1142 _cf = 0; 1143 _flag_k = FK_TEST; 1144 L_2B039D2D: 1145 PUSH32(esp, 1); /* 0x2B039D2D: push 1 */ 1146 MEM32(0x2B0EE960) = eax; /* 0x2B039D2F: mov dword ptr [0x2b0ee960], eax */ 1147 eax = MEM32(eax + 0x28); /* 0x2B039D34: mov eax, dword ptr [eax + 0x28] */ 1148 PUSH32(esp, ebx); /* 0x2B039D37: push ebx */ 1149 PUSH32(esp, ebx); /* 0x2B039D38: push ebx */ 1150 ecx = eax; /* 0x2B039D39: mov ecx, eax */ 1151 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B039D3B: mov byte ptr [ebp - 4], 4 */ 1152 RECOMP_ICALL(MEM32(0x2B0B564C)); /* 0x2B039D3F: call dword ptr [0x2b0b564c] */ 1153 RECOMP_FLAGS_IN(); 1154 PUSH32(esp, 0x50u); /* 0x2B039D45: push 0x50 */ 1155 RECOMP_ICALL(0x2B0AB212u); /* 0x2B039D47: call 0x2b0ab212 */ /* not lifted */ 1156 RECOMP_FLAGS_IN(); 1157 esi = eax; /* 0x2B039D4C: mov esi, eax */ 1158 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1159 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1160 esp = esp + 4; /* 0x2B039D4E: add esp, 4 */ 1161 _flag_k = FK_ADD; 1162 MEM32(ebp + (-0x24)) = esi; /* 0x2B039D51: mov dword ptr [ebp - 0x24], esi */ 1163 /* cmp esi, ebx */ /* 0x2B039D54: cmp esi, ebx */ 1164 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 1165 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1166 _flag_k = FK_CMP; 1167 MEM8(ebp + (-0x4)) = (uint8_t)(7); /* 0x2B039D56: mov byte ptr [ebp - 4], 7 */ 1168 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B039D86; /* 0x2B039D5A: je 0x2b039d86 */ 1169 L_2B039D5C: 1170 eax = MEM32(0x2B0EE960); /* 0x2B039D5C: mov eax, dword ptr [0x2b0ee960] */ 1171 ecx = MEM32(ebp + (-0x28)); /* 0x2B039D61: mov ecx, dword ptr [ebp - 0x28] */ 1172 edx = MEM32(ebp + (-0x2C)); /* 0x2B039D64: mov edx, dword ptr [ebp - 0x2c] */ 1173 PUSH32(esp, eax); /* 0x2B039D67: push eax */ 1174 PUSH32(esp, ebx); /* 0x2B039D68: push ebx */ 1175 PUSH32(esp, ecx); /* 0x2B039D69: push ecx */ 1176 PUSH32(esp, edx); /* 0x2B039D6A: push edx */ 1177 PUSH32(esp, 0xFA0u); /* 0x2B039D6B: push 0xfa0 */ 1178 eax = ebp + (-0x68); /* 0x2B039D70: lea eax, [ebp - 0x68] */ 1179 PUSH32(esp, eax); /* 0x2B039D73: push eax */ 1180 PUSH32(esp, 5); /* 0x2B039D74: push 5 */ 1181 ecx = esi; /* 0x2B039D76: mov ecx, esi */ 1182 RECOMP_ICALL(MEM32(0x2B0B59BC)); /* 0x2B039D78: call dword ptr [0x2b0b59bc] */ 1183 RECOMP_FLAGS_IN(); 1184 MEM32(esi) = 0x2B0B6878u; /* 0x2B039D7E: mov dword ptr [esi], 0x2b0b6878 */ 1185 goto L_2B039D88; /* 0x2B039D84: jmp 0x2b039d88 */ 1186 L_2B039D86: 1187 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1188 esi = 0; /* 0x2B039D86: xor esi, esi */ 1189 _cf = 0; 1190 _flag_k = FK_TEST; 1191 L_2B039D88: 1192 MEM32(0x2B0EE964) = esi; /* 0x2B039D88: mov dword ptr [0x2b0ee964], esi */ 1193 ecx = MEM32(esi + 0x34); /* 0x2B039D8E: mov ecx, dword ptr [esi + 0x34] */ 1194 esi = MEM32(0x2B0B5690); /* 0x2B039D91: mov esi, dword ptr [0x2b0b5690] */ 1195 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B039D97: mov byte ptr [ebp - 4], 4 */ 1196 MEM32(ecx + 0x30) = 0x00DDDDDDu; /* 0x2B039D9B: mov dword ptr [ecx + 0x30], 0xdddddd */ 1197 RECOMP_ICALL(esi); /* 0x2B039DA2: call esi */ 1198 RECOMP_FLAGS_IN(); 1199 ecx = eax; /* 0x2B039DA4: mov ecx, eax */ 1200 RECOMP_ICALL(MEM32(0x2B0B5588)); /* 0x2B039DA6: call dword ptr [0x2b0b5588] */ 1201 RECOMP_FLAGS_IN(); 1202 PUSH32(esp, ebx); /* 0x2B039DAC: push ebx */ 1203 PUSH32(esp, ebx); /* 0x2B039DAD: push ebx */ 1204 RECOMP_ICALL(0x2B039F80u); /* 0x2B039DAE: call 0x2b039f80 */ /* not lifted */ 1205 RECOMP_FLAGS_IN(); 1206 edi = MEM32(0x2B0B59C0); /* 0x2B039DB3: mov edi, dword ptr [0x2b0b59c0] */ 1207 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1208 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1209 esp = esp + 8; /* 0x2B039DB9: add esp, 8 */ 1210 _flag_k = FK_ADD; 1211 RECOMP_ICALL(edi); /* 0x2B039DBC: call edi */ 1212 RECOMP_FLAGS_IN(); 1213 RECOMP_ICALL(esi); /* 0x2B039DBE: call esi */ 1214 RECOMP_FLAGS_IN(); 1215 edx = MEM32(eax); /* 0x2B039DC0: mov edx, dword ptr [eax] */ 1216 ecx = eax; /* 0x2B039DC2: mov ecx, eax */ 1217 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x2B039DC4: call dword ptr [edx + 0x10] */ 1218 RECOMP_FLAGS_IN(); 1219 RECOMP_ICALL(edi); /* 0x2B039DC7: call edi */ 1220 RECOMP_FLAGS_IN(); 1221 RECOMP_ICALL(esi); /* 0x2B039DC9: call esi */ 1222 RECOMP_FLAGS_IN(); 1223 edx = MEM32(eax); /* 0x2B039DCB: mov edx, dword ptr [eax] */ 1224 ecx = eax; /* 0x2B039DCD: mov ecx, eax */ 1225 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x2B039DCF: call dword ptr [edx + 0x10] */ 1226 RECOMP_FLAGS_IN(); 1227 esi = MEM32(ebp + (-0x58)); /* 0x2B039DD2: mov esi, dword ptr [ebp - 0x58] */ 1228 /* cmp esi, ebx */ /* 0x2B039DD5: cmp esi, ebx */ 1229 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 1230 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1231 _flag_k = FK_CMP; 1232 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B039E4D; /* 0x2B039DD7: je 0x2b039e4d */ 1233 L_2B039DD9: 1234 edx = MEM32(esi + 0x2C); /* 0x2B039DD9: mov edx, dword ptr [esi + 0x2c] */ 1235 eax = esi + 0x2C; /* 0x2B039DDC: lea eax, [esi + 0x2c] */ 1236 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 1237 edx = edx - 1; /* 0x2B039DDF: dec edx */ 1238 _flag_k = FK_DEC; 1239 ecx = edx; /* 0x2B039DE0: mov ecx, edx */ 1240 /* cmp ecx, ebx */ /* 0x2B039DE2: cmp ecx, ebx */ 1241 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 1242 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1243 _flag_k = FK_CMP; 1244 MEM32(eax) = edx; /* 0x2B039DE4: mov dword ptr [eax], edx */ 1245 if (CMP_NE(_flag_a, _flag_b)) goto L_2B039E4D; /* 0x2B039DE6: jne 0x2b039e4d */ 1246 L_2B039DE8: 1247 /* cmp esi, ebx */ /* 0x2B039DE8: cmp esi, ebx */ 1248 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 1249 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1250 _flag_k = FK_CMP; 1251 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B039E4D; /* 0x2B039DEA: je 0x2b039e4d */ 1252 L_2B039DEC: 1253 eax = MEM32(esi + 0x20); /* 0x2B039DEC: mov eax, dword ptr [esi + 0x20] */ 1254 /* cmp eax, ebx */ /* 0x2B039DEF: cmp eax, ebx */ 1255 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1256 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1257 _flag_k = FK_CMP; 1258 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B039E0F; /* 0x2B039DF1: je 0x2b039e0f */ 1259 L_2B039DF3: 1260 ecx = eax + (-0x1); /* 0x2B039DF3: lea ecx, [eax - 1] */ 1261 SET_LO8(eax, MEM8(ecx)); /* 0x2B039DF6: mov al, byte ptr [ecx] */ 1262 /* cmp LO8(eax), LO8(ebx) */ /* 0x2B039DF8: cmp al, bl */ 1263 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1264 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1265 _flag_k = FK_NARROW(FK_CMP, 24); 1266 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B039E06; /* 0x2B039DFA: je 0x2b039e06 */ 1267 L_2B039DFC: 1268 /* cmp LO8(eax), 0xFFu */ /* 0x2B039DFC: cmp al, 0xff */ 1269 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 1270 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1271 _flag_k = FK_NARROW(FK_CMP, 24); 1272 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B039E06; /* 0x2B039DFE: je 0x2b039e06 */ 1273 L_2B039E00: 1274 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1275 SET_LO8(eax, LO8(eax) - 1); /* 0x2B039E00: dec al */ 1276 _flag_k = FK_NARROW(FK_DEC, 24); 1277 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B039E02: mov byte ptr [ecx], al */ 1278 goto L_2B039E0F; /* 0x2B039E04: jmp 0x2b039e0f */ 1279 L_2B039E06: 1280 PUSH32(esp, ecx); /* 0x2B039E06: push ecx */ 1281 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B039E07: call 0x2b0ab1ba */ /* not lifted */ 1282 RECOMP_FLAGS_IN(); 1283 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1284 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1285 esp = esp + 4; /* 0x2B039E0C: add esp, 4 */ 1286 _flag_k = FK_ADD; 1287 L_2B039E0F: 1288 MEM32(esi + 0x20) = ebx; /* 0x2B039E0F: mov dword ptr [esi + 0x20], ebx */ 1289 MEM32(esi + 0x24) = ebx; /* 0x2B039E12: mov dword ptr [esi + 0x24], ebx */ 1290 MEM32(esi + 0x28) = ebx; /* 0x2B039E15: mov dword ptr [esi + 0x28], ebx */ 1291 eax = MEM32(esi + 0x10); /* 0x2B039E18: mov eax, dword ptr [esi + 0x10] */ 1292 /* cmp eax, ebx */ /* 0x2B039E1B: cmp eax, ebx */ 1293 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1294 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1295 _flag_k = FK_CMP; 1296 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B039E3B; /* 0x2B039E1D: je 0x2b039e3b */ 1297 L_2B039E1F: 1298 ecx = eax + (-0x1); /* 0x2B039E1F: lea ecx, [eax - 1] */ 1299 SET_LO8(eax, MEM8(ecx)); /* 0x2B039E22: mov al, byte ptr [ecx] */ 1300 /* cmp LO8(eax), LO8(ebx) */ /* 0x2B039E24: cmp al, bl */ 1301 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1302 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1303 _flag_k = FK_NARROW(FK_CMP, 24); 1304 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B039E32; /* 0x2B039E26: je 0x2b039e32 */ 1305 L_2B039E28: 1306 /* cmp LO8(eax), 0xFFu */ /* 0x2B039E28: cmp al, 0xff */ 1307 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 1308 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1309 _flag_k = FK_NARROW(FK_CMP, 24); 1310 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B039E32; /* 0x2B039E2A: je 0x2b039e32 */ 1311 L_2B039E2C: 1312 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1313 SET_LO8(eax, LO8(eax) - 1); /* 0x2B039E2C: dec al */ 1314 _flag_k = FK_NARROW(FK_DEC, 24); 1315 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B039E2E: mov byte ptr [ecx], al */ 1316 goto L_2B039E3B; /* 0x2B039E30: jmp 0x2b039e3b */ 1317 L_2B039E32: 1318 PUSH32(esp, ecx); /* 0x2B039E32: push ecx */ 1319 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B039E33: call 0x2b0ab1ba */ /* not lifted */ 1320 RECOMP_FLAGS_IN(); 1321 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1322 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1323 esp = esp + 4; /* 0x2B039E38: add esp, 4 */ 1324 _flag_k = FK_ADD; 1325 L_2B039E3B: 1326 PUSH32(esp, esi); /* 0x2B039E3B: push esi */ 1327 MEM32(esi + 0x10) = ebx; /* 0x2B039E3C: mov dword ptr [esi + 0x10], ebx */ 1328 MEM32(esi + 0x14) = ebx; /* 0x2B039E3F: mov dword ptr [esi + 0x14], ebx */ 1329 MEM32(esi + 0x18) = ebx; /* 0x2B039E42: mov dword ptr [esi + 0x18], ebx */ 1330 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B039E45: call 0x2b0ab1ba */ /* not lifted */ 1331 RECOMP_FLAGS_IN(); 1332 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1333 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1334 esp = esp + 4; /* 0x2B039E4A: add esp, 4 */ 1335 _flag_k = FK_ADD; 1336 L_2B039E4D: 1337 ecx = MEM32(ebp + (-0x64)); /* 0x2B039E4D: mov ecx, dword ptr [ebp - 0x64] */ 1338 /* cmp ecx, ebx */ /* 0x2B039E50: cmp ecx, ebx */ 1339 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 1340 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1341 _flag_k = FK_CMP; 1342 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B039E7F; /* 0x2B039E52: je 0x2b039e7f */ 1343 L_2B039E54: 1344 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B039E54: mov al, byte ptr [ecx - 1] */ 1345 /* cmp LO8(eax), LO8(ebx) */ /* 0x2B039E57: cmp al, bl */ 1346 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1347 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1348 _flag_k = FK_NARROW(FK_CMP, 24); 1349 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B039E75; /* 0x2B039E59: je 0x2b039e75 */ 1350 L_2B039E5B: 1351 /* cmp LO8(eax), 0xFFu */ /* 0x2B039E5B: cmp al, 0xff */ 1352 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 1353 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1354 _flag_k = FK_NARROW(FK_CMP, 24); 1355 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B039E75; /* 0x2B039E5D: je 0x2b039e75 */ 1356 L_2B039E5F: 1357 edi = POP32_VAL(esp); /* 0x2B039E5F: pop edi */ 1358 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1359 SET_LO8(eax, LO8(eax) - 1); /* 0x2B039E60: dec al */ 1360 _flag_k = FK_NARROW(FK_DEC, 24); 1361 esi = POP32_VAL(esp); /* 0x2B039E62: pop esi */ 1362 MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x2B039E63: mov byte ptr [ecx - 1], al */ 1363 ebx = POP32_VAL(esp); /* 0x2B039E66: pop ebx */ 1364 ecx = MEM32(ebp + (-0xC)); /* 0x2B039E67: mov ecx, dword ptr [ebp - 0xc] */ 1365 MEM32(FS_BASE + (0)) = ecx; /* 0x2B039E6A: mov dword ptr fs:[0], ecx */ 1366 esp = ebp; /* 0x2B039E71: mov esp, ebp */ 1367 ebp = POP32_VAL(esp); /* 0x2B039E73: pop ebp */ 1368 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B039E74: ret */ 1369 L_2B039E75: 1370 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1371 ecx = ecx - 1; /* 0x2B039E75: dec ecx */ 1372 _flag_k = FK_DEC; 1373 PUSH32(esp, ecx); /* 0x2B039E76: push ecx */ 1374 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B039E77: call 0x2b0ab1ba */ /* not lifted */ 1375 RECOMP_FLAGS_IN(); 1376 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1377 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1378 esp = esp + 4; /* 0x2B039E7C: add esp, 4 */ 1379 _flag_k = FK_ADD; 1380 L_2B039E7F: 1381 ecx = MEM32(ebp + (-0xC)); /* 0x2B039E7F: mov ecx, dword ptr [ebp - 0xc] */ 1382 edi = POP32_VAL(esp); /* 0x2B039E82: pop edi */ 1383 esi = POP32_VAL(esp); /* 0x2B039E83: pop esi */ 1384 ebx = POP32_VAL(esp); /* 0x2B039E84: pop ebx */ 1385 MEM32(FS_BASE + (0)) = ecx; /* 0x2B039E85: mov dword ptr fs:[0], ecx */ 1386 esp = ebp; /* 0x2B039E8C: mov esp, ebp */ 1387 ebp = POP32_VAL(esp); /* 0x2B039E8E: pop ebp */ 1388 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B039E8F: ret */ 1389 RECOMP_REGS_OUT(); 1390 } 1391 1392 void sub_2B039E90(void) { 1393 int _fpu_cmp = 0; 1394 uint32_t _cf = 0; 1395 int _df = 1; 1396 uint32_t _flag_k = FK_NONE; 1397 uint32_t _flag_a = 0, _flag_b = 0; 1398 uint32_t _itail_tgt = 0; 1399 RECOMP_REGS_LOCALS 1400 RECOMP_ENTER(0x2B039E90u); 1401 1402 L_2B039E90: 1403 PUSH32(esp, ebp); /* 0x2B039E90: push ebp */ 1404 ebp = esp; /* 0x2B039E91: mov ebp, esp */ 1405 PUSH32(esp, esi); /* 0x2B039E93: push esi */ 1406 esi = ecx; /* 0x2B039E94: mov esi, ecx */ 1407 RECOMP_ICALL(MEM32(0x2B0B59B4)); /* 0x2B039E96: call dword ptr [0x2b0b59b4] */ 1408 RECOMP_FLAGS_IN(); 1409 /* test MEM8(ebp + 0x8), 1 */ /* 0x2B039E9C: test byte ptr [ebp + 8], 1 */ 1410 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 1411 _cf = 0; 1412 _flag_k = FK_NARROW(FK_TEST, 24); 1413 if (TEST_Z(_flag_a, _flag_b)) goto L_2B039EAB; /* 0x2B039EA0: je 0x2b039eab */ 1414 L_2B039EA2: 1415 PUSH32(esp, esi); /* 0x2B039EA2: push esi */ 1416 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B039EA3: call 0x2b0ab1ba */ /* not lifted */ 1417 RECOMP_FLAGS_IN(); 1418 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1419 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1420 esp = esp + 4; /* 0x2B039EA8: add esp, 4 */ 1421 _flag_k = FK_ADD; 1422 L_2B039EAB: 1423 eax = esi; /* 0x2B039EAB: mov eax, esi */ 1424 esi = POP32_VAL(esp); /* 0x2B039EAD: pop esi */ 1425 ebp = POP32_VAL(esp); /* 0x2B039EAE: pop ebp */ 1426 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B039EAF: ret 4 */ 1427 RECOMP_REGS_OUT(); 1428 } 1429 1430 void sub_2B039EC0(void) { 1431 int _fpu_cmp = 0; 1432 uint32_t _cf = 0; 1433 int _df = 1; 1434 uint32_t _flag_k = FK_NONE; 1435 uint32_t _flag_a = 0, _flag_b = 0; 1436 uint32_t _itail_tgt = 0; 1437 RECOMP_REGS_LOCALS 1438 RECOMP_ENTER(0x2B039EC0u); 1439 1440 L_2B039EC0: 1441 ecx = MEM32(0x2B0EE964); /* 0x2B039EC0: mov ecx, dword ptr [0x2b0ee964] */ 1442 PUSH32(esp, ebx); /* 0x2B039EC6: push ebx */ 1443 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1444 ebx = 0; /* 0x2B039EC7: xor ebx, ebx */ 1445 _cf = 0; 1446 _flag_k = FK_TEST; 1447 /* cmp ecx, ebx */ /* 0x2B039EC9: cmp ecx, ebx */ 1448 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 1449 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1450 _flag_k = FK_CMP; 1451 PUSH32(esp, esi); /* 0x2B039ECB: push esi */ 1452 PUSH32(esp, edi); /* 0x2B039ECC: push edi */ 1453 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B039ED5; /* 0x2B039ECD: je 0x2b039ed5 */ 1454 L_2B039ECF: 1455 eax = MEM32(ecx); /* 0x2B039ECF: mov eax, dword ptr [ecx] */ 1456 PUSH32(esp, 1); /* 0x2B039ED1: push 1 */ 1457 RECOMP_ICALL(MEM32(eax)); /* 0x2B039ED3: call dword ptr [eax] */ 1458 RECOMP_FLAGS_IN(); 1459 L_2B039ED5: 1460 ecx = MEM32(0x2B0EE960); /* 0x2B039ED5: mov ecx, dword ptr [0x2b0ee960] */ 1461 /* cmp ecx, ebx */ /* 0x2B039EDB: cmp ecx, ebx */ 1462 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 1463 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1464 _flag_k = FK_CMP; 1465 edi = MEM32(0x2B0B5BC4); /* 0x2B039EDD: mov edi, dword ptr [0x2b0b5bc4] */ 1466 MEM32(0x2B0EE964) = ebx; /* 0x2B039EE3: mov dword ptr [0x2b0ee964], ebx */ 1467 esi = ecx; /* 0x2B039EE9: mov esi, ecx */ 1468 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B039EF8; /* 0x2B039EEB: je 0x2b039ef8 */ 1469 L_2B039EED: 1470 RECOMP_ICALL(edi); /* 0x2B039EED: call edi */ 1471 RECOMP_FLAGS_IN(); 1472 PUSH32(esp, esi); /* 0x2B039EEF: push esi */ 1473 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B039EF0: call 0x2b0ab1ba */ /* not lifted */ 1474 RECOMP_FLAGS_IN(); 1475 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1476 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1477 esp = esp + 4; /* 0x2B039EF5: add esp, 4 */ 1478 _flag_k = FK_ADD; 1479 L_2B039EF8: 1480 ecx = MEM32(0x2B0EE958); /* 0x2B039EF8: mov ecx, dword ptr [0x2b0ee958] */ 1481 /* cmp ecx, ebx */ /* 0x2B039EFE: cmp ecx, ebx */ 1482 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 1483 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1484 _flag_k = FK_CMP; 1485 MEM32(0x2B0EE960) = ebx; /* 0x2B039F00: mov dword ptr [0x2b0ee960], ebx */ 1486 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B039F0E; /* 0x2B039F06: je 0x2b039f0e */ 1487 L_2B039F08: 1488 edx = MEM32(ecx); /* 0x2B039F08: mov edx, dword ptr [ecx] */ 1489 PUSH32(esp, 1); /* 0x2B039F0A: push 1 */ 1490 RECOMP_ICALL(MEM32(edx)); /* 0x2B039F0C: call dword ptr [edx] */ 1491 RECOMP_FLAGS_IN(); 1492 L_2B039F0E: 1493 ecx = MEM32(0x2B0EE954); /* 0x2B039F0E: mov ecx, dword ptr [0x2b0ee954] */ 1494 /* cmp ecx, ebx */ /* 0x2B039F14: cmp ecx, ebx */ 1495 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 1496 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1497 _flag_k = FK_CMP; 1498 MEM32(0x2B0EE958) = ebx; /* 0x2B039F16: mov dword ptr [0x2b0ee958], ebx */ 1499 esi = ecx; /* 0x2B039F1C: mov esi, ecx */ 1500 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B039F2F; /* 0x2B039F1E: je 0x2b039f2f */ 1501 L_2B039F20: 1502 RECOMP_ICALL(MEM32(0x2B0B5644)); /* 0x2B039F20: call dword ptr [0x2b0b5644] */ 1503 RECOMP_FLAGS_IN(); 1504 PUSH32(esp, esi); /* 0x2B039F26: push esi */ 1505 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B039F27: call 0x2b0ab1ba */ /* not lifted */ 1506 RECOMP_FLAGS_IN(); 1507 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1508 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1509 esp = esp + 4; /* 0x2B039F2C: add esp, 4 */ 1510 _flag_k = FK_ADD; 1511 L_2B039F2F: 1512 ecx = MEM32(0x2B0EE95C); /* 0x2B039F2F: mov ecx, dword ptr [0x2b0ee95c] */ 1513 /* cmp ecx, ebx */ /* 0x2B039F35: cmp ecx, ebx */ 1514 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 1515 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1516 _flag_k = FK_CMP; 1517 MEM32(0x2B0EE954) = ebx; /* 0x2B039F37: mov dword ptr [0x2b0ee954], ebx */ 1518 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B039F45; /* 0x2B039F3D: je 0x2b039f45 */ 1519 L_2B039F3F: 1520 eax = MEM32(ecx); /* 0x2B039F3F: mov eax, dword ptr [ecx] */ 1521 PUSH32(esp, 1); /* 0x2B039F41: push 1 */ 1522 RECOMP_ICALL(MEM32(eax)); /* 0x2B039F43: call dword ptr [eax] */ 1523 RECOMP_FLAGS_IN(); 1524 L_2B039F45: 1525 ecx = MEM32(0x2B0EE968); /* 0x2B039F45: mov ecx, dword ptr [0x2b0ee968] */ 1526 /* cmp ecx, ebx */ /* 0x2B039F4B: cmp ecx, ebx */ 1527 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 1528 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1529 _flag_k = FK_CMP; 1530 MEM32(0x2B0EE95C) = ebx; /* 0x2B039F4D: mov dword ptr [0x2b0ee95c], ebx */ 1531 esi = ecx; /* 0x2B039F53: mov esi, ecx */ 1532 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B039F62; /* 0x2B039F55: je 0x2b039f62 */ 1533 L_2B039F57: 1534 RECOMP_ICALL(edi); /* 0x2B039F57: call edi */ 1535 RECOMP_FLAGS_IN(); 1536 PUSH32(esp, esi); /* 0x2B039F59: push esi */ 1537 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B039F5A: call 0x2b0ab1ba */ /* not lifted */ 1538 RECOMP_FLAGS_IN(); 1539 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1540 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1541 esp = esp + 4; /* 0x2B039F5F: add esp, 4 */ 1542 _flag_k = FK_ADD; 1543 L_2B039F62: 1544 edi = POP32_VAL(esp); /* 0x2B039F62: pop edi */ 1545 esi = POP32_VAL(esp); /* 0x2B039F63: pop esi */ 1546 MEM32(0x2B0EE968) = ebx; /* 0x2B039F64: mov dword ptr [0x2b0ee968], ebx */ 1547 MEM8(0x2B0EE96C) = (uint8_t)(LO8(ebx)); /* 0x2B039F6A: mov byte ptr [0x2b0ee96c], bl */ 1548 ebx = POP32_VAL(esp); /* 0x2B039F70: pop ebx */ 1549 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B039F71: ret */ 1550 RECOMP_REGS_OUT(); 1551 } 1552 1553 void sub_2B039F80(void) { 1554 int _fpu_cmp = 0; 1555 uint32_t _cf = 0; 1556 int _df = 1; 1557 uint32_t _flag_k = FK_NONE; 1558 uint32_t _flag_a = 0, _flag_b = 0; 1559 uint32_t _itail_tgt = 0; 1560 RECOMP_REGS_LOCALS 1561 RECOMP_ENTER(0x2B039F80u); 1562 1563 L_2B039F80: 1564 PUSH32(esp, ebp); /* 0x2B039F80: push ebp */ 1565 ebp = esp; /* 0x2B039F81: mov ebp, esp */ 1566 PUSH32(esp, esi); /* 0x2B039F83: push esi */ 1567 PUSH32(esp, edi); /* 0x2B039F84: push edi */ 1568 edi = MEM32(0x2B0EE960); /* 0x2B039F85: mov edi, dword ptr [0x2b0ee960] */ 1569 /* test edi, edi */ /* 0x2B039F8B: test edi, edi */ 1570 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 1571 _cf = 0; 1572 _flag_k = FK_TEST; 1573 if (TEST_Z(_flag_a, _flag_b)) goto L_2B039FC7; /* 0x2B039F8D: je 0x2b039fc7 */ 1574 L_2B039F8F: 1575 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x2B039F8F: fld dword ptr [ebp + 8] */ 1576 _st[0] *= (double)*(float*)ADDR(0x2B0B6888); /* 0x2B039F92: fmul dword ptr [0x2b0b6888] */ 1577 RECOMP_ICALL(0x2B0AB220u); /* 0x2B039F98: call 0x2b0ab220 */ /* not lifted */ 1578 RECOMP_FLAGS_IN(); 1579 esi = eax; /* 0x2B039F9D: mov esi, eax */ 1580 ecx = edi; /* 0x2B039F9F: mov ecx, edi */ 1581 edi = MEM32(0x2B0B5BE0); /* 0x2B039FA1: mov edi, dword ptr [0x2b0b5be0] */ 1582 PUSH32(esp, esi); /* 0x2B039FA7: push esi */ 1583 RECOMP_ICALL(edi); /* 0x2B039FA8: call edi */ 1584 RECOMP_FLAGS_IN(); 1585 ecx = MEM32(0x2B0EE968); /* 0x2B039FAA: mov ecx, dword ptr [0x2b0ee968] */ 1586 PUSH32(esp, esi); /* 0x2B039FB0: push esi */ 1587 RECOMP_ICALL(edi); /* 0x2B039FB1: call edi */ 1588 RECOMP_FLAGS_IN(); 1589 SET_LO8(eax, MEM8(ebp + 0xC)); /* 0x2B039FB3: mov al, byte ptr [ebp + 0xc] */ 1590 /* test LO8(eax), LO8(eax) */ /* 0x2B039FB6: test al, al */ 1591 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1592 _cf = 0; 1593 _flag_k = FK_NARROW(FK_TEST, 24); 1594 if (TEST_Z(_flag_a, _flag_b)) goto L_2B039FC7; /* 0x2B039FB8: je 0x2b039fc7 */ 1595 L_2B039FBA: 1596 ecx = MEM32(0x2B0EE958); /* 0x2B039FBA: mov ecx, dword ptr [0x2b0ee958] */ 1597 PUSH32(esp, esi); /* 0x2B039FC0: push esi */ 1598 RECOMP_ICALL(MEM32(0x2B0B565C)); /* 0x2B039FC1: call dword ptr [0x2b0b565c] */ 1599 RECOMP_FLAGS_IN(); 1600 L_2B039FC7: 1601 edi = POP32_VAL(esp); /* 0x2B039FC7: pop edi */ 1602 esi = POP32_VAL(esp); /* 0x2B039FC8: pop esi */ 1603 ebp = POP32_VAL(esp); /* 0x2B039FC9: pop ebp */ 1604 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B039FCA: ret */ 1605 RECOMP_REGS_OUT(); 1606 } 1607 1608 void sub_2B039FD0(void) { 1609 int _fpu_cmp = 0; 1610 uint32_t _cf = 0; 1611 int _df = 1; 1612 uint32_t _flag_k = FK_NONE; 1613 uint32_t _flag_a = 0, _flag_b = 0; 1614 uint32_t _itail_tgt = 0; 1615 RECOMP_REGS_LOCALS 1616 RECOMP_ENTER(0x2B039FD0u); 1617 1618 L_2B039FD0: 1619 PUSH32(esp, ebp); /* 0x2B039FD0: push ebp */ 1620 ebp = esp; /* 0x2B039FD1: mov ebp, esp */ 1621 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1622 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1623 esp = esp - 8; /* 0x2B039FD3: sub esp, 8 */ 1624 _flag_k = FK_CMP; 1625 MEM8(0x2B0EE96C) = (uint8_t)(1); /* 0x2B039FD6: mov byte ptr [0x2b0ee96c], 1 */ 1626 MEM8(0x2B0E6D0C) = (uint8_t)(0); /* 0x2B039FDD: mov byte ptr [0x2b0e6d0c], 0 */ 1627 RECOMP_ICALL(MEM32(0x2B0B53BC)); /* 0x2B039FE4: call dword ptr [0x2b0b53bc] */ 1628 RECOMP_FLAGS_IN(); 1629 eax = MEM32(eax + 0x24); /* 0x2B039FEA: mov eax, dword ptr [eax + 0x24] */ 1630 ecx = MEM32(0x2B0EE95C); /* 0x2B039FED: mov ecx, dword ptr [0x2b0ee95c] */ 1631 /* test ecx, ecx */ /* 0x2B039FF3: test ecx, ecx */ 1632 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1633 _cf = 0; 1634 _flag_k = FK_TEST; 1635 MEM32(ebp + (-0x8)) = eax; /* 0x2B039FF5: mov dword ptr [ebp - 8], eax */ 1636 MEM32(ebp + (-0x4)) = 0; /* 0x2B039FF8: mov dword ptr [ebp - 4], 0 */ 1637 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x2B039FFF: fild qword ptr [ebp - 8] */ 1638 { float _v = (float)fp_pop(); *(float*)ADDR(0x2B0EE970) = _v; } /* 0x2B03A002: fstp dword ptr [0x2b0ee970] */ 1639 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03A010; /* 0x2B03A008: je 0x2b03a010 */ 1640 L_2B03A00A: 1641 edx = MEM32(ecx); /* 0x2B03A00A: mov edx, dword ptr [ecx] */ 1642 PUSH32(esp, 1); /* 0x2B03A00C: push 1 */ 1643 RECOMP_ICALL(MEM32(edx)); /* 0x2B03A00E: call dword ptr [edx] */ 1644 RECOMP_FLAGS_IN(); 1645 L_2B03A010: 1646 PUSH32(esp, 7); /* 0x2B03A010: push 7 */ 1647 MEM32(0x2B0EE95C) = 0; /* 0x2B03A012: mov dword ptr [0x2b0ee95c], 0 */ 1648 RECOMP_ICALL(MEM32(0x2B0B5B64)); /* 0x2B03A01C: call dword ptr [0x2b0b5b64] */ 1649 RECOMP_FLAGS_IN(); 1650 ecx = eax; /* 0x2B03A022: mov ecx, eax */ 1651 RECOMP_ICALL(MEM32(0x2B0B5B68)); /* 0x2B03A024: call dword ptr [0x2b0b5b68] */ 1652 RECOMP_FLAGS_IN(); 1653 esp = ebp; /* 0x2B03A02A: mov esp, ebp */ 1654 ebp = POP32_VAL(esp); /* 0x2B03A02C: pop ebp */ 1655 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A02D: ret */ 1656 RECOMP_REGS_OUT(); 1657 } 1658 1659 void sub_2B03A030(void) { 1660 /* Keep the connection and scene-reveal fades brief. Timer_t uses milliseconds. */ 1661 const double fade_ms = 150.0; 1662 int _fpu_cmp = 0; 1663 uint32_t _cf = 0; 1664 int _df = 1; 1665 uint32_t _flag_k = FK_NONE; 1666 uint32_t _flag_a = 0, _flag_b = 0; 1667 uint32_t _itail_tgt = 0; 1668 RECOMP_REGS_LOCALS 1669 RECOMP_ENTER(0x2B03A030u); 1670 1671 L_2B03A030: 1672 PUSH32(esp, ebp); /* 0x2B03A030: push ebp */ 1673 ebp = esp; /* 0x2B03A031: mov ebp, esp */ 1674 PUSH32(esp, ecx); /* 0x2B03A033: push ecx */ 1675 SET_LO8(eax, MEM8(0x2B0EE96C)); /* 0x2B03A034: mov al, byte ptr [0x2b0ee96c] */ 1676 /* test LO8(eax), LO8(eax) */ /* 0x2B03A039: test al, al */ 1677 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1678 _cf = 0; 1679 _flag_k = FK_NARROW(FK_TEST, 24); 1680 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03A133; /* 0x2B03A03B: je 0x2b03a133 */ 1681 L_2B03A041: 1682 SET_LO8(eax, MEM8(0x2B0E6D0C)); /* 0x2B03A041: mov al, byte ptr [0x2b0e6d0c] */ 1683 /* test LO8(eax), LO8(eax) */ /* 0x2B03A046: test al, al */ 1684 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1685 _cf = 0; 1686 _flag_k = FK_NARROW(FK_TEST, 24); 1687 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03A0C6; /* 0x2B03A048: je 0x2b03a0c6 */ 1688 L_2B03A04A: 1689 RECOMP_ICALL(MEM32(0x2B0B53BC)); /* 0x2B03A04A: call dword ptr [0x2b0b53bc] */ 1690 RECOMP_FLAGS_IN(); 1691 eax = MEM32(eax + 0x24); /* 0x2B03A050: mov eax, dword ptr [eax + 0x24] */ 1692 MEM32(ebp + (-0x4)) = eax; /* 0x2B03A053: mov dword ptr [ebp - 4], eax */ 1693 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x2B03A056: fild dword ptr [ebp - 4] */ 1694 fp_push(fade_ms); 1695 _st[0] += (double)*(float*)ADDR(0x2B0EE970); /* 0x2B03A05F: fadd dword ptr [0x2b0ee970] */ 1696 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x2B03A065: fcomp st(1) */ 1697 fp_pop(); 1698 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B03A067: fnstsw ax */ 1699 /* test HI8(eax), 1 */ /* 0x2B03A069: test ah, 1 */ 1700 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1701 _cf = 0; 1702 _flag_k = FK_NARROW(FK_TEST, 24); 1703 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03A0A8; /* 0x2B03A06C: je 0x2b03a0a8 */ 1704 L_2B03A06E: 1705 PUSH32(esp, 0); /* 0x2B03A06E: push 0 */ 1706 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B03A070: fstp st(0) */ 1707 PUSH32(esp, 0x3F800000u); /* 0x2B03A072: push 0x3f800000 */ 1708 RECOMP_ICALL(0x2B039F80u); /* 0x2B03A077: call 0x2b039f80 */ /* not lifted */ 1709 RECOMP_FLAGS_IN(); 1710 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1711 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1712 esp = esp + 8; /* 0x2B03A07C: add esp, 8 */ 1713 _flag_k = FK_ADD; 1714 PUSH32(esp, 7); /* 0x2B03A07F: push 7 */ 1715 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B03A081: call dword ptr [0x2b0b53cc] */ 1716 RECOMP_FLAGS_IN(); 1717 ecx = eax; /* 0x2B03A087: mov ecx, eax */ 1718 RECOMP_ICALL(MEM32(0x2B0B5394)); /* 0x2B03A089: call dword ptr [0x2b0b5394] */ 1719 RECOMP_FLAGS_IN(); 1720 MEM8(0x2B0EE96C) = (uint8_t)(0); /* 0x2B03A08F: mov byte ptr [0x2b0ee96c], 0 */ 1721 RECOMP_ICALL(MEM32(0x2B0B5F70)); /* 0x2B03A096: call dword ptr [0x2b0b5f70] */ 1722 RECOMP_FLAGS_IN(); 1723 ecx = eax; /* 0x2B03A09C: mov ecx, eax */ 1724 RECOMP_ICALL(MEM32(0x2B0B5F64)); /* 0x2B03A09E: call dword ptr [0x2b0b5f64] */ 1725 RECOMP_FLAGS_IN(); 1726 esp = ebp; /* 0x2B03A0A4: mov esp, ebp */ 1727 ebp = POP32_VAL(esp); /* 0x2B03A0A6: pop ebp */ 1728 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A0A7: ret */ 1729 L_2B03A0A8: 1730 _st[0] -= (double)*(float*)ADDR(0x2B0EE970); /* 0x2B03A0A8: fsub dword ptr [0x2b0ee970] */ 1731 PUSH32(esp, 0); /* 0x2B03A0AE: push 0 */ 1732 PUSH32(esp, ecx); /* 0x2B03A0B0: push ecx */ 1733 _st[0] /= fade_ms; 1734 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x2B03A0B7: fstp dword ptr [esp] */ 1735 RECOMP_ICALL(0x2B039F80u); /* 0x2B03A0BA: call 0x2b039f80 */ /* not lifted */ 1736 RECOMP_FLAGS_IN(); 1737 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1738 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1739 esp = esp + 8; /* 0x2B03A0BF: add esp, 8 */ 1740 _flag_k = FK_ADD; 1741 esp = ebp; /* 0x2B03A0C2: mov esp, ebp */ 1742 ebp = POP32_VAL(esp); /* 0x2B03A0C4: pop ebp */ 1743 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A0C5: ret */ 1744 L_2B03A0C6: 1745 RECOMP_ICALL(MEM32(0x2B0B53BC)); /* 0x2B03A0C6: call dword ptr [0x2b0b53bc] */ 1746 RECOMP_FLAGS_IN(); 1747 ecx = MEM32(eax + 0x24); /* 0x2B03A0CC: mov ecx, dword ptr [eax + 0x24] */ 1748 MEM32(ebp + (-0x4)) = ecx; /* 0x2B03A0CF: mov dword ptr [ebp - 4], ecx */ 1749 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x2B03A0D2: fild dword ptr [ebp - 4] */ 1750 fp_push(fade_ms); 1751 _st[0] += (double)*(float*)ADDR(0x2B0EE970); /* 0x2B03A0DB: fadd dword ptr [0x2b0ee970] */ 1752 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x2B03A0E1: fcomp st(1) */ 1753 fp_pop(); 1754 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B03A0E3: fnstsw ax */ 1755 /* test HI8(eax), 1 */ /* 0x2B03A0E5: test ah, 1 */ 1756 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1757 _cf = 0; 1758 _flag_k = FK_NARROW(FK_TEST, 24); 1759 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03A113; /* 0x2B03A0E8: je 0x2b03a113 */ 1760 L_2B03A0EA: 1761 PUSH32(esp, 1); /* 0x2B03A0EA: push 1 */ 1762 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B03A0EC: fstp st(0) */ 1763 PUSH32(esp, 0); /* 0x2B03A0EE: push 0 */ 1764 RECOMP_ICALL(0x2B039F80u); /* 0x2B03A0F0: call 0x2b039f80 */ /* not lifted */ 1765 RECOMP_FLAGS_IN(); 1766 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1767 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1768 esp = esp + 8; /* 0x2B03A0F5: add esp, 8 */ 1769 _flag_k = FK_ADD; 1770 PUSH32(esp, 6); /* 0x2B03A0F8: push 6 */ 1771 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B03A0FA: call dword ptr [0x2b0b53cc] */ 1772 RECOMP_FLAGS_IN(); 1773 ecx = eax; /* 0x2B03A100: mov ecx, eax */ 1774 RECOMP_ICALL(MEM32(0x2B0B5394)); /* 0x2B03A102: call dword ptr [0x2b0b5394] */ 1775 RECOMP_FLAGS_IN(); 1776 MEM8(0x2B0EE96C) = (uint8_t)(0); /* 0x2B03A108: mov byte ptr [0x2b0ee96c], 0 */ 1777 esp = ebp; /* 0x2B03A10F: mov esp, ebp */ 1778 ebp = POP32_VAL(esp); /* 0x2B03A111: pop ebp */ 1779 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A112: ret */ 1780 L_2B03A113: 1781 _st[0] -= (double)*(float*)ADDR(0x2B0EE970); /* 0x2B03A113: fsub dword ptr [0x2b0ee970] */ 1782 PUSH32(esp, 1); /* 0x2B03A119: push 1 */ 1783 PUSH32(esp, ecx); /* 0x2B03A11B: push ecx */ 1784 _st[0] /= fade_ms; 1785 _st[0] = (double)*(float*)ADDR(0x2B0B63D0) - _st[0]; /* 0x2B03A122: fsubr dword ptr [0x2b0b63d0] */ 1786 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x2B03A128: fstp dword ptr [esp] */ 1787 RECOMP_ICALL(0x2B039F80u); /* 0x2B03A12B: call 0x2b039f80 */ /* not lifted */ 1788 RECOMP_FLAGS_IN(); 1789 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1790 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1791 esp = esp + 8; /* 0x2B03A130: add esp, 8 */ 1792 _flag_k = FK_ADD; 1793 L_2B03A133: 1794 esp = ebp; /* 0x2B03A133: mov esp, ebp */ 1795 ebp = POP32_VAL(esp); /* 0x2B03A135: pop ebp */ 1796 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A136: ret */ 1797 RECOMP_REGS_OUT(); 1798 } 1799 1800 void sub_2B03A140(void) { 1801 int _fpu_cmp = 0; 1802 uint32_t _cf = 0; 1803 int _df = 1; 1804 uint32_t _flag_k = FK_NONE; 1805 uint32_t _flag_a = 0, _flag_b = 0; 1806 uint32_t _itail_tgt = 0; 1807 RECOMP_REGS_LOCALS 1808 RECOMP_ENTER(0x2B03A140u); 1809 1810 goto L_2B03A140; 1811 L_2B039EC0: 1812 ecx = MEM32(0x2B0EE964); /* 0x2B039EC0: mov ecx, dword ptr [0x2b0ee964] */ 1813 PUSH32(esp, ebx); /* 0x2B039EC6: push ebx */ 1814 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1815 ebx = 0; /* 0x2B039EC7: xor ebx, ebx */ 1816 _cf = 0; 1817 _flag_k = FK_TEST; 1818 /* cmp ecx, ebx */ /* 0x2B039EC9: cmp ecx, ebx */ 1819 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 1820 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1821 _flag_k = FK_CMP; 1822 PUSH32(esp, esi); /* 0x2B039ECB: push esi */ 1823 PUSH32(esp, edi); /* 0x2B039ECC: push edi */ 1824 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B039ED5; /* 0x2B039ECD: je 0x2b039ed5 */ 1825 L_2B039ECF: 1826 eax = MEM32(ecx); /* 0x2B039ECF: mov eax, dword ptr [ecx] */ 1827 PUSH32(esp, 1); /* 0x2B039ED1: push 1 */ 1828 RECOMP_ICALL(MEM32(eax)); /* 0x2B039ED3: call dword ptr [eax] */ 1829 RECOMP_FLAGS_IN(); 1830 L_2B039ED5: 1831 ecx = MEM32(0x2B0EE960); /* 0x2B039ED5: mov ecx, dword ptr [0x2b0ee960] */ 1832 /* cmp ecx, ebx */ /* 0x2B039EDB: cmp ecx, ebx */ 1833 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 1834 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1835 _flag_k = FK_CMP; 1836 edi = MEM32(0x2B0B5BC4); /* 0x2B039EDD: mov edi, dword ptr [0x2b0b5bc4] */ 1837 MEM32(0x2B0EE964) = ebx; /* 0x2B039EE3: mov dword ptr [0x2b0ee964], ebx */ 1838 esi = ecx; /* 0x2B039EE9: mov esi, ecx */ 1839 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B039EF8; /* 0x2B039EEB: je 0x2b039ef8 */ 1840 L_2B039EED: 1841 RECOMP_ICALL(edi); /* 0x2B039EED: call edi */ 1842 RECOMP_FLAGS_IN(); 1843 PUSH32(esp, esi); /* 0x2B039EEF: push esi */ 1844 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B039EF0: call 0x2b0ab1ba */ /* not lifted */ 1845 RECOMP_FLAGS_IN(); 1846 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1847 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1848 esp = esp + 4; /* 0x2B039EF5: add esp, 4 */ 1849 _flag_k = FK_ADD; 1850 L_2B039EF8: 1851 ecx = MEM32(0x2B0EE958); /* 0x2B039EF8: mov ecx, dword ptr [0x2b0ee958] */ 1852 /* cmp ecx, ebx */ /* 0x2B039EFE: cmp ecx, ebx */ 1853 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 1854 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1855 _flag_k = FK_CMP; 1856 MEM32(0x2B0EE960) = ebx; /* 0x2B039F00: mov dword ptr [0x2b0ee960], ebx */ 1857 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B039F0E; /* 0x2B039F06: je 0x2b039f0e */ 1858 L_2B039F08: 1859 edx = MEM32(ecx); /* 0x2B039F08: mov edx, dword ptr [ecx] */ 1860 PUSH32(esp, 1); /* 0x2B039F0A: push 1 */ 1861 RECOMP_ICALL(MEM32(edx)); /* 0x2B039F0C: call dword ptr [edx] */ 1862 RECOMP_FLAGS_IN(); 1863 L_2B039F0E: 1864 ecx = MEM32(0x2B0EE954); /* 0x2B039F0E: mov ecx, dword ptr [0x2b0ee954] */ 1865 /* cmp ecx, ebx */ /* 0x2B039F14: cmp ecx, ebx */ 1866 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 1867 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1868 _flag_k = FK_CMP; 1869 MEM32(0x2B0EE958) = ebx; /* 0x2B039F16: mov dword ptr [0x2b0ee958], ebx */ 1870 esi = ecx; /* 0x2B039F1C: mov esi, ecx */ 1871 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B039F2F; /* 0x2B039F1E: je 0x2b039f2f */ 1872 L_2B039F20: 1873 RECOMP_ICALL(MEM32(0x2B0B5644)); /* 0x2B039F20: call dword ptr [0x2b0b5644] */ 1874 RECOMP_FLAGS_IN(); 1875 PUSH32(esp, esi); /* 0x2B039F26: push esi */ 1876 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B039F27: call 0x2b0ab1ba */ /* not lifted */ 1877 RECOMP_FLAGS_IN(); 1878 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1879 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1880 esp = esp + 4; /* 0x2B039F2C: add esp, 4 */ 1881 _flag_k = FK_ADD; 1882 L_2B039F2F: 1883 ecx = MEM32(0x2B0EE95C); /* 0x2B039F2F: mov ecx, dword ptr [0x2b0ee95c] */ 1884 /* cmp ecx, ebx */ /* 0x2B039F35: cmp ecx, ebx */ 1885 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 1886 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1887 _flag_k = FK_CMP; 1888 MEM32(0x2B0EE954) = ebx; /* 0x2B039F37: mov dword ptr [0x2b0ee954], ebx */ 1889 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B039F45; /* 0x2B039F3D: je 0x2b039f45 */ 1890 L_2B039F3F: 1891 eax = MEM32(ecx); /* 0x2B039F3F: mov eax, dword ptr [ecx] */ 1892 PUSH32(esp, 1); /* 0x2B039F41: push 1 */ 1893 RECOMP_ICALL(MEM32(eax)); /* 0x2B039F43: call dword ptr [eax] */ 1894 RECOMP_FLAGS_IN(); 1895 L_2B039F45: 1896 ecx = MEM32(0x2B0EE968); /* 0x2B039F45: mov ecx, dword ptr [0x2b0ee968] */ 1897 /* cmp ecx, ebx */ /* 0x2B039F4B: cmp ecx, ebx */ 1898 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 1899 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1900 _flag_k = FK_CMP; 1901 MEM32(0x2B0EE95C) = ebx; /* 0x2B039F4D: mov dword ptr [0x2b0ee95c], ebx */ 1902 esi = ecx; /* 0x2B039F53: mov esi, ecx */ 1903 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B039F62; /* 0x2B039F55: je 0x2b039f62 */ 1904 L_2B039F57: 1905 RECOMP_ICALL(edi); /* 0x2B039F57: call edi */ 1906 RECOMP_FLAGS_IN(); 1907 PUSH32(esp, esi); /* 0x2B039F59: push esi */ 1908 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B039F5A: call 0x2b0ab1ba */ /* not lifted */ 1909 RECOMP_FLAGS_IN(); 1910 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1911 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1912 esp = esp + 4; /* 0x2B039F5F: add esp, 4 */ 1913 _flag_k = FK_ADD; 1914 L_2B039F62: 1915 edi = POP32_VAL(esp); /* 0x2B039F62: pop edi */ 1916 esi = POP32_VAL(esp); /* 0x2B039F63: pop esi */ 1917 MEM32(0x2B0EE968) = ebx; /* 0x2B039F64: mov dword ptr [0x2b0ee968], ebx */ 1918 MEM8(0x2B0EE96C) = (uint8_t)(LO8(ebx)); /* 0x2B039F6A: mov byte ptr [0x2b0ee96c], bl */ 1919 ebx = POP32_VAL(esp); /* 0x2B039F70: pop ebx */ 1920 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B039F71: ret */ 1921 L_2B03A140: 1922 PUSH32(esp, 7); /* 0x2B03A140: push 7 */ 1923 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B03A142: call dword ptr [0x2b0b53cc] */ 1924 RECOMP_FLAGS_IN(); 1925 ecx = eax; /* 0x2B03A148: mov ecx, eax */ 1926 RECOMP_ICALL(MEM32(0x2B0B5394)); /* 0x2B03A14A: call dword ptr [0x2b0b5394] */ 1927 RECOMP_FLAGS_IN(); 1928 PUSH32(esp, 7); /* 0x2B03A150: push 7 */ 1929 RECOMP_ICALL(MEM32(0x2B0B5B64)); /* 0x2B03A152: call dword ptr [0x2b0b5b64] */ 1930 RECOMP_FLAGS_IN(); 1931 ecx = eax; /* 0x2B03A158: mov ecx, eax */ 1932 RECOMP_ICALL(MEM32(0x2B0B5B68)); /* 0x2B03A15A: call dword ptr [0x2b0b5b68] */ 1933 RECOMP_FLAGS_IN(); 1934 RECOMP_BACKEDGE(); 1935 goto L_2B039EC0; /* 0x2B03A160: jmp 0x2b039ec0 */ 1936 { RECOMP_REGS_OUT(); return; } /* end of function */ 1937 RECOMP_REGS_OUT(); 1938 } 1939 1940 void sub_2B03A170(void) { 1941 int _fpu_cmp = 0; 1942 uint32_t _cf = 0; 1943 int _df = 1; 1944 uint32_t _flag_k = FK_NONE; 1945 uint32_t _flag_a = 0, _flag_b = 0; 1946 uint32_t _itail_tgt = 0; 1947 RECOMP_REGS_LOCALS 1948 RECOMP_ENTER(0x2B03A170u); 1949 1950 L_2B03A170: 1951 eax = MEM32(0x2B0B6118); /* 0x2B03A170: mov eax, dword ptr [0x2b0b6118] */ 1952 ecx = MEM32(eax); /* 0x2B03A175: mov ecx, dword ptr [eax] */ 1953 PUSH32(esp, ebx); /* 0x2B03A177: push ebx */ 1954 PUSH32(esp, esi); /* 0x2B03A178: push esi */ 1955 PUSH32(esp, edi); /* 0x2B03A179: push edi */ 1956 RECOMP_ICALL(MEM32(0x2B0B6108)); /* 0x2B03A17A: call dword ptr [0x2b0b6108] */ 1957 RECOMP_FLAGS_IN(); 1958 ecx = MEM32(0x2B0B6048); /* 0x2B03A180: mov ecx, dword ptr [0x2b0b6048] */ 1959 ecx = MEM32(ecx); /* 0x2B03A186: mov ecx, dword ptr [ecx] */ 1960 esi = MEM32(0x2B0B602C); /* 0x2B03A188: mov esi, dword ptr [0x2b0b602c] */ 1961 PUSH32(esp, 0); /* 0x2B03A18E: push 0 */ 1962 PUSH32(esp, 0x2B0E4438u); /* 0x2B03A190: push 0x2b0e4438 */ 1963 RECOMP_ICALL(esi); /* 0x2B03A195: call esi */ 1964 RECOMP_FLAGS_IN(); 1965 /* test eax, eax */ /* 0x2B03A197: test eax, eax */ 1966 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1967 _cf = 0; 1968 _flag_k = FK_TEST; 1969 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03A1BC; /* 0x2B03A199: je 0x2b03a1bc */ 1970 L_2B03A19B: 1971 RECOMP_ICALL(MEM32(0x2B0B60B0)); /* 0x2B03A19B: call dword ptr [0x2b0b60b0] */ 1972 RECOMP_FLAGS_IN(); 1973 edx = MEM32(0x2B0B6048); /* 0x2B03A1A1: mov edx, dword ptr [0x2b0b6048] */ 1974 ecx = MEM32(edx); /* 0x2B03A1A7: mov ecx, dword ptr [edx] */ 1975 PUSH32(esp, 1); /* 0x2B03A1A9: push 1 */ 1976 PUSH32(esp, 0x2B0E6D4Cu); /* 0x2B03A1AB: push 0x2b0e6d4c */ 1977 RECOMP_ICALL(esi); /* 0x2B03A1B0: call esi */ 1978 RECOMP_FLAGS_IN(); 1979 /* test eax, eax */ /* 0x2B03A1B2: test eax, eax */ 1980 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1981 _cf = 0; 1982 _flag_k = FK_TEST; 1983 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03A1BC; /* 0x2B03A1B4: je 0x2b03a1bc */ 1984 L_2B03A1B6: 1985 RECOMP_ICALL(MEM32(0x2B0B60AC)); /* 0x2B03A1B6: call dword ptr [0x2b0b60ac] */ 1986 RECOMP_FLAGS_IN(); 1987 L_2B03A1BC: 1988 eax = MEM32(0x2B0B6118); /* 0x2B03A1BC: mov eax, dword ptr [0x2b0b6118] */ 1989 ecx = MEM32(eax); /* 0x2B03A1C1: mov ecx, dword ptr [eax] */ 1990 esi = MEM32(0x2B0B53CC); /* 0x2B03A1C3: mov esi, dword ptr [0x2b0b53cc] */ 1991 edi = MEM32(ecx + 0x2C); /* 0x2B03A1C9: mov edi, dword ptr [ecx + 0x2c] */ 1992 PUSH32(esp, 8); /* 0x2B03A1CC: push 8 */ 1993 RECOMP_ICALL(esi); /* 0x2B03A1CE: call esi */ 1994 RECOMP_FLAGS_IN(); 1995 ecx = eax; /* 0x2B03A1D0: mov ecx, eax */ 1996 RECOMP_ICALL(MEM32(0x2B0B5390)); /* 0x2B03A1D2: call dword ptr [0x2b0b5390] */ 1997 RECOMP_FLAGS_IN(); 1998 PUSH32(esp, edi); /* 0x2B03A1D8: push edi */ 1999 PUSH32(esp, 0x10Bu); /* 0x2B03A1D9: push 0x10b */ 2000 PUSH32(esp, 7); /* 0x2B03A1DE: push 7 */ 2001 RECOMP_ICALL(esi); /* 0x2B03A1E0: call esi */ 2002 RECOMP_FLAGS_IN(); 2003 ebx = MEM32(0x2B0B536C); /* 0x2B03A1E2: mov ebx, dword ptr [0x2b0b536c] */ 2004 ecx = eax; /* 0x2B03A1E8: mov ecx, eax */ 2005 RECOMP_ICALL(ebx); /* 0x2B03A1EA: call ebx */ 2006 RECOMP_FLAGS_IN(); 2007 PUSH32(esp, edi); /* 0x2B03A1EC: push edi */ 2008 PUSH32(esp, 0x10Bu); /* 0x2B03A1ED: push 0x10b */ 2009 PUSH32(esp, 9); /* 0x2B03A1F2: push 9 */ 2010 RECOMP_ICALL(esi); /* 0x2B03A1F4: call esi */ 2011 RECOMP_FLAGS_IN(); 2012 ecx = eax; /* 0x2B03A1F6: mov ecx, eax */ 2013 RECOMP_ICALL(ebx); /* 0x2B03A1F8: call ebx */ 2014 RECOMP_FLAGS_IN(); 2015 PUSH32(esp, 0x10Cu); /* 0x2B03A1FA: push 0x10c */ 2016 PUSH32(esp, 9); /* 0x2B03A1FF: push 9 */ 2017 RECOMP_ICALL(esi); /* 0x2B03A201: call esi */ 2018 RECOMP_FLAGS_IN(); 2019 ecx = eax; /* 0x2B03A203: mov ecx, eax */ 2020 RECOMP_ICALL(MEM32(0x2B0B53C8)); /* 0x2B03A205: call dword ptr [0x2b0b53c8] */ 2021 RECOMP_FLAGS_IN(); 2022 edi = POP32_VAL(esp); /* 0x2B03A20B: pop edi */ 2023 esi = POP32_VAL(esp); /* 0x2B03A20C: pop esi */ 2024 ebx = POP32_VAL(esp); /* 0x2B03A20D: pop ebx */ 2025 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A20E: ret */ 2026 RECOMP_REGS_OUT(); 2027 } 2028 2029 void sub_2B03A210(void) { 2030 int _fpu_cmp = 0; 2031 uint32_t _cf = 0; 2032 int _df = 1; 2033 uint32_t _flag_k = FK_NONE; 2034 uint32_t _flag_a = 0, _flag_b = 0; 2035 uint32_t _itail_tgt = 0; 2036 RECOMP_REGS_LOCALS 2037 RECOMP_ENTER(0x2B03A210u); 2038 2039 L_2B03A210: 2040 MEM8(0x2B0EE96D) = (uint8_t)(1); /* 0x2B03A210: mov byte ptr [0x2b0ee96d], 1 */ 2041 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A217: ret */ 2042 RECOMP_REGS_OUT(); 2043 } 2044 2045 void sub_2B03A220(void) { 2046 int _fpu_cmp = 0; 2047 uint32_t _cf = 0; 2048 int _df = 1; 2049 uint32_t _flag_k = FK_NONE; 2050 uint32_t _flag_a = 0, _flag_b = 0; 2051 uint32_t _itail_tgt = 0; 2052 RECOMP_REGS_LOCALS 2053 RECOMP_ENTER(0x2B03A220u); 2054 2055 L_2B03A220: 2056 eax = ecx; /* 0x2B03A220: mov eax, ecx */ 2057 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2058 ecx = 0; /* 0x2B03A222: xor ecx, ecx */ 2059 _cf = 0; 2060 _flag_k = FK_TEST; 2061 SET_LO8(edx, 1); /* 0x2B03A224: mov dl, 1 */ 2062 PUSH32(esp, esi); /* 0x2B03A226: push esi */ 2063 MEM32(eax + 0x10) = ecx; /* 0x2B03A227: mov dword ptr [eax + 0x10], ecx */ 2064 MEM8(eax + 0x14) = (uint8_t)(LO8(ecx)); /* 0x2B03A22A: mov byte ptr [eax + 0x14], cl */ 2065 MEM8(eax + 0x24) = (uint8_t)(LO8(edx)); /* 0x2B03A22D: mov byte ptr [eax + 0x24], dl */ 2066 MEM8(eax + 0x25) = (uint8_t)(LO8(ecx)); /* 0x2B03A230: mov byte ptr [eax + 0x25], cl */ 2067 MEM32(eax) = 0x2B0B6890u; /* 0x2B03A233: mov dword ptr [eax], 0x2b0b6890 */ 2068 esi = MEM32(0x2B0EE9CC); /* 0x2B03A239: mov esi, dword ptr [0x2b0ee9cc] */ 2069 MEM32(eax + 0x4) = esi; /* 0x2B03A23F: mov dword ptr [eax + 4], esi */ 2070 esi = MEM32(0x2B0EE9D0); /* 0x2B03A242: mov esi, dword ptr [0x2b0ee9d0] */ 2071 MEM32(eax + 0x8) = esi; /* 0x2B03A248: mov dword ptr [eax + 8], esi */ 2072 MEM8(eax + 0xC) = (uint8_t)(LO8(ecx)); /* 0x2B03A24B: mov byte ptr [eax + 0xc], cl */ 2073 MEM8(eax + 0x1C) = (uint8_t)(LO8(edx)); /* 0x2B03A24E: mov byte ptr [eax + 0x1c], dl */ 2074 MEM32(eax + 0x18) = ecx; /* 0x2B03A251: mov dword ptr [eax + 0x18], ecx */ 2075 MEM32(eax + 0x20) = ecx; /* 0x2B03A254: mov dword ptr [eax + 0x20], ecx */ 2076 esi = POP32_VAL(esp); /* 0x2B03A257: pop esi */ 2077 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A258: ret */ 2078 RECOMP_REGS_OUT(); 2079 } 2080 2081 void sub_2B03A260(void) { 2082 int _fpu_cmp = 0; 2083 uint32_t _cf = 0; 2084 int _df = 1; 2085 uint32_t _flag_k = FK_NONE; 2086 uint32_t _flag_a = 0, _flag_b = 0; 2087 uint32_t _itail_tgt = 0; 2088 RECOMP_REGS_LOCALS 2089 RECOMP_ENTER(0x2B03A260u); 2090 2091 L_2B03A260: 2092 PUSH32(esp, ebp); /* 0x2B03A260: push ebp */ 2093 ebp = esp; /* 0x2B03A261: mov ebp, esp */ 2094 PUSH32(esp, esi); /* 0x2B03A263: push esi */ 2095 esi = ecx; /* 0x2B03A264: mov esi, ecx */ 2096 RECOMP_ICALL(0x2B03A290u); /* 0x2B03A266: call 0x2b03a290 */ /* not lifted */ 2097 RECOMP_FLAGS_IN(); 2098 /* test MEM8(ebp + 0x8), 1 */ /* 0x2B03A26B: test byte ptr [ebp + 8], 1 */ 2099 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 2100 _cf = 0; 2101 _flag_k = FK_NARROW(FK_TEST, 24); 2102 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03A27A; /* 0x2B03A26F: je 0x2b03a27a */ 2103 L_2B03A271: 2104 PUSH32(esp, esi); /* 0x2B03A271: push esi */ 2105 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B03A272: call 0x2b0ab1ba */ /* not lifted */ 2106 RECOMP_FLAGS_IN(); 2107 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2108 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2109 esp = esp + 4; /* 0x2B03A277: add esp, 4 */ 2110 _flag_k = FK_ADD; 2111 L_2B03A27A: 2112 eax = esi; /* 0x2B03A27A: mov eax, esi */ 2113 esi = POP32_VAL(esp); /* 0x2B03A27C: pop esi */ 2114 ebp = POP32_VAL(esp); /* 0x2B03A27D: pop ebp */ 2115 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B03A27E: ret 4 */ 2116 RECOMP_REGS_OUT(); 2117 } 2118 2119 void sub_2B03A290(void) { 2120 int _fpu_cmp = 0; 2121 uint32_t _cf = 0; 2122 int _df = 1; 2123 uint32_t _flag_k = FK_NONE; 2124 uint32_t _flag_a = 0, _flag_b = 0; 2125 uint32_t _itail_tgt = 0; 2126 RECOMP_REGS_LOCALS 2127 RECOMP_ENTER(0x2B03A290u); 2128 2129 L_2B03A290: 2130 MEM32(ecx) = 0x2B0B6890u; /* 0x2B03A290: mov dword ptr [ecx], 0x2b0b6890 */ 2131 ecx = MEM32(ecx + 0x10); /* 0x2B03A296: mov ecx, dword ptr [ecx + 0x10] */ 2132 /* test ecx, ecx */ /* 0x2B03A299: test ecx, ecx */ 2133 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2134 _cf = 0; 2135 _flag_k = FK_TEST; 2136 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03A2A3; /* 0x2B03A29B: je 0x2b03a2a3 */ 2137 L_2B03A29D: 2138 eax = MEM32(ecx); /* 0x2B03A29D: mov eax, dword ptr [ecx] */ 2139 PUSH32(esp, 1); /* 0x2B03A29F: push 1 */ 2140 RECOMP_ICALL(MEM32(eax)); /* 0x2B03A2A1: call dword ptr [eax] */ 2141 RECOMP_FLAGS_IN(); 2142 L_2B03A2A3: 2143 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A2A3: ret */ 2144 RECOMP_REGS_OUT(); 2145 } 2146 2147 void sub_2B03A2B0(void) { 2148 int _fpu_cmp = 0; 2149 uint32_t _cf = 0; 2150 int _df = 1; 2151 uint32_t _flag_k = FK_NONE; 2152 uint32_t _flag_a = 0, _flag_b = 0; 2153 uint32_t _itail_tgt = 0; 2154 RECOMP_REGS_LOCALS 2155 RECOMP_ENTER(0x2B03A2B0u); 2156 2157 L_2B03A2B0: 2158 SET_LO8(eax, MEM8(ecx + 0x1C)); /* 0x2B03A2B0: mov al, byte ptr [ecx + 0x1c] */ 2159 L_2B03A2B3: 2160 /* test LO8(eax), LO8(eax) */ /* 0x2B03A2B3: test al, al */ 2161 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2162 _cf = 0; 2163 _flag_k = FK_NARROW(FK_TEST, 24); 2164 L_2B03A2B5: 2165 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2B03A2C3; /* 0x2B03A2B5: je 0x2b03a2c3 */ 2166 L_2B03A2B7: 2167 SET_LO8(eax, MEM8(ecx + 0xC)); /* 0x2B03A2B7: mov al, byte ptr [ecx + 0xc] */ 2168 L_2B03A2BA: 2169 /* test LO8(eax), LO8(eax) */ /* 0x2B03A2BA: test al, al */ 2170 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2171 _cf = 0; 2172 _flag_k = FK_NARROW(FK_TEST, 24); 2173 L_2B03A2BC: 2174 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2B03A2C3; /* 0x2B03A2BC: je 0x2b03a2c3 */ 2175 L_2B03A2BE: 2176 eax = MEM32(ecx); /* 0x2B03A2BE: mov eax, dword ptr [ecx] */ 2177 L_2B03A2C0: 2178 { _itail_tgt = (uint32_t)(MEM32(eax + 0x4)); goto _ljump; } 2179 L_2B03A2C3: 2180 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A2C3: ret */ 2181 _ljump: 2182 switch (_itail_tgt) { 2183 case 0x2B03A2B0u: goto L_2B03A2B0; 2184 case 0x2B03A2B3u: goto L_2B03A2B3; 2185 case 0x2B03A2B5u: goto L_2B03A2B5; 2186 case 0x2B03A2B7u: goto L_2B03A2B7; 2187 case 0x2B03A2BAu: goto L_2B03A2BA; 2188 case 0x2B03A2BCu: goto L_2B03A2BC; 2189 case 0x2B03A2BEu: goto L_2B03A2BE; 2190 case 0x2B03A2C0u: goto L_2B03A2C0; 2191 case 0x2B03A2C3u: goto L_2B03A2C3; 2192 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2193 } 2194 RECOMP_REGS_OUT(); 2195 } 2196 2197 void sub_2B03A2D0(void) { 2198 int _fpu_cmp = 0; 2199 uint32_t _cf = 0; 2200 int _df = 1; 2201 uint32_t _flag_k = FK_NONE; 2202 uint32_t _flag_a = 0, _flag_b = 0; 2203 uint32_t _itail_tgt = 0; 2204 RECOMP_REGS_LOCALS 2205 RECOMP_ENTER(0x2B03A2D0u); 2206 2207 L_2B03A2D0: 2208 PUSH32(esp, ebp); /* 0x2B03A2D0: push ebp */ 2209 ebp = esp; /* 0x2B03A2D1: mov ebp, esp */ 2210 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B03A2D3: push -1 */ 2211 PUSH32(esp, 0x2B0AE82Bu); /* 0x2B03A2D5: push 0x2b0ae82b */ 2212 eax = MEM32(FS_BASE + (0)); /* 0x2B03A2DA: mov eax, dword ptr fs:[0] */ 2213 PUSH32(esp, eax); /* 0x2B03A2E0: push eax */ 2214 MEM32(FS_BASE + (0)) = esp; /* 0x2B03A2E1: mov dword ptr fs:[0], esp */ 2215 PUSH32(esp, ecx); /* 0x2B03A2E8: push ecx */ 2216 PUSH32(esp, esi); /* 0x2B03A2E9: push esi */ 2217 esi = ecx; /* 0x2B03A2EA: mov esi, ecx */ 2218 PUSH32(esp, 0x70u); /* 0x2B03A2EC: push 0x70 */ 2219 MEM8(esi + 0x24) = (uint8_t)(0); /* 0x2B03A2EE: mov byte ptr [esi + 0x24], 0 */ 2220 RECOMP_ICALL(0x2B0AB212u); /* 0x2B03A2F2: call 0x2b0ab212 */ /* not lifted */ 2221 RECOMP_FLAGS_IN(); 2222 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2223 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2224 esp = esp + 4; /* 0x2B03A2F7: add esp, 4 */ 2225 _flag_k = FK_ADD; 2226 MEM32(ebp + (-0x10)) = eax; /* 0x2B03A2FA: mov dword ptr [ebp - 0x10], eax */ 2227 /* test eax, eax */ /* 0x2B03A2FD: test eax, eax */ 2228 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2229 _cf = 0; 2230 _flag_k = FK_TEST; 2231 MEM32(ebp + (-0x4)) = 0; /* 0x2B03A2FF: mov dword ptr [ebp - 4], 0 */ 2232 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03A325; /* 0x2B03A306: je 0x2b03a325 */ 2233 L_2B03A308: 2234 ecx = MEM32(0x2B0EE9DC); /* 0x2B03A308: mov ecx, dword ptr [0x2b0ee9dc] */ 2235 edx = MEM32(ebp + 0xC); /* 0x2B03A30E: mov edx, dword ptr [ebp + 0xc] */ 2236 PUSH32(esp, ecx); /* 0x2B03A311: push ecx */ 2237 ecx = MEM32(esi + 0x8); /* 0x2B03A312: mov ecx, dword ptr [esi + 8] */ 2238 PUSH32(esp, esi); /* 0x2B03A315: push esi */ 2239 PUSH32(esp, edx); /* 0x2B03A316: push edx */ 2240 edx = MEM32(esi + 0x4); /* 0x2B03A317: mov edx, dword ptr [esi + 4] */ 2241 PUSH32(esp, ecx); /* 0x2B03A31A: push ecx */ 2242 PUSH32(esp, edx); /* 0x2B03A31B: push edx */ 2243 ecx = eax; /* 0x2B03A31C: mov ecx, eax */ 2244 RECOMP_ICALL(0x2B03CFD0u); /* 0x2B03A31E: call 0x2b03cfd0 */ /* not lifted */ 2245 RECOMP_FLAGS_IN(); 2246 goto L_2B03A327; /* 0x2B03A323: jmp 0x2b03a327 */ 2247 L_2B03A325: 2248 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2249 eax = 0; /* 0x2B03A325: xor eax, eax */ 2250 _cf = 0; 2251 _flag_k = FK_TEST; 2252 L_2B03A327: 2253 ecx = eax; /* 0x2B03A327: mov ecx, eax */ 2254 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B03A329: mov dword ptr [ebp - 4], 0xffffffff */ 2255 MEM32(esi + 0x10) = eax; /* 0x2B03A330: mov dword ptr [esi + 0x10], eax */ 2256 RECOMP_ICALL(0x2B03D580u); /* 0x2B03A333: call 0x2b03d580 */ /* not lifted */ 2257 RECOMP_FLAGS_IN(); 2258 ecx = MEM32(ebp + (-0xC)); /* 0x2B03A338: mov ecx, dword ptr [ebp - 0xc] */ 2259 esi = POP32_VAL(esp); /* 0x2B03A33B: pop esi */ 2260 MEM32(FS_BASE + (0)) = ecx; /* 0x2B03A33C: mov dword ptr fs:[0], ecx */ 2261 esp = ebp; /* 0x2B03A343: mov esp, ebp */ 2262 ebp = POP32_VAL(esp); /* 0x2B03A345: pop ebp */ 2263 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B03A346: ret 8 */ 2264 RECOMP_REGS_OUT(); 2265 } 2266 2267 void sub_2B03A350(void) { 2268 int _fpu_cmp = 0; 2269 uint32_t _cf = 0; 2270 int _df = 1; 2271 uint32_t _flag_k = FK_NONE; 2272 uint32_t _flag_a = 0, _flag_b = 0; 2273 uint32_t _itail_tgt = 0; 2274 RECOMP_REGS_LOCALS 2275 RECOMP_ENTER(0x2B03A350u); 2276 2277 L_2B03A350: 2278 PUSH32(esp, ebp); /* 0x2B03A350: push ebp */ 2279 ebp = esp; /* 0x2B03A351: mov ebp, esp */ 2280 eax = MEM32(ebp + 0x8); /* 0x2B03A353: mov eax, dword ptr [ebp + 8] */ 2281 /* test LO8(eax), LO8(eax) */ /* 0x2B03A356: test al, al */ 2282 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2283 _cf = 0; 2284 _flag_k = FK_NARROW(FK_TEST, 24); 2285 PUSH32(esp, esi); /* 0x2B03A358: push esi */ 2286 esi = ecx; /* 0x2B03A359: mov esi, ecx */ 2287 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03A390; /* 0x2B03A35B: jne 0x2b03a390 */ 2288 L_2B03A35D: 2289 SET_LO8(eax, MEM8(esi + 0x14)); /* 0x2B03A35D: mov al, byte ptr [esi + 0x14] */ 2290 /* test LO8(eax), LO8(eax) */ /* 0x2B03A360: test al, al */ 2291 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2292 _cf = 0; 2293 _flag_k = FK_NARROW(FK_TEST, 24); 2294 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03A3BB; /* 0x2B03A362: jne 0x2b03a3bb */ 2295 L_2B03A364: 2296 PUSH32(esp, 0); /* 0x2B03A364: push 0 */ 2297 PUSH32(esp, esi); /* 0x2B03A366: push esi */ 2298 RECOMP_ICALL(0x2B03AFB0u); /* 0x2B03A367: call 0x2b03afb0 */ /* not lifted */ 2299 RECOMP_FLAGS_IN(); 2300 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x2B03A36C: mov byte ptr [esi + 0x14], 1 */ 2301 eax = MEM32(0x2B0EE9C8); /* 0x2B03A370: mov eax, dword ptr [0x2b0ee9c8] */ 2302 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2303 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2304 esp = esp + 8; /* 0x2B03A375: add esp, 8 */ 2305 _flag_k = FK_ADD; 2306 /* test eax, eax */ /* 0x2B03A378: test eax, eax */ 2307 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2308 _cf = 0; 2309 _flag_k = FK_TEST; 2310 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03A384; /* 0x2B03A37A: jne 0x2b03a384 */ 2311 L_2B03A37C: 2312 ecx = MEM32(esi + 0x10); /* 0x2B03A37C: mov ecx, dword ptr [esi + 0x10] */ 2313 RECOMP_ICALL(0x2B03D560u); /* 0x2B03A37F: call 0x2b03d560 */ /* not lifted */ 2314 RECOMP_FLAGS_IN(); 2315 L_2B03A384: 2316 ecx = esi; /* 0x2B03A384: mov ecx, esi */ 2317 RECOMP_ICALL(0x2B03A490u); /* 0x2B03A386: call 0x2b03a490 */ /* not lifted */ 2318 RECOMP_FLAGS_IN(); 2319 esi = POP32_VAL(esp); /* 0x2B03A38B: pop esi */ 2320 ebp = POP32_VAL(esp); /* 0x2B03A38C: pop ebp */ 2321 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B03A38D: ret 4 */ 2322 L_2B03A390: 2323 SET_LO8(ecx, MEM8(esi + 0x25)); /* 0x2B03A390: mov cl, byte ptr [esi + 0x25] */ 2324 /* test LO8(ecx), LO8(ecx) */ /* 0x2B03A393: test cl, cl */ 2325 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2326 _cf = 0; 2327 _flag_k = FK_NARROW(FK_TEST, 24); 2328 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03A3BB; /* 0x2B03A395: jne 0x2b03a3bb */ 2329 L_2B03A397: 2330 PUSH32(esp, eax); /* 0x2B03A397: push eax */ 2331 PUSH32(esp, esi); /* 0x2B03A398: push esi */ 2332 RECOMP_ICALL(0x2B03AFB0u); /* 0x2B03A399: call 0x2b03afb0 */ /* not lifted */ 2333 RECOMP_FLAGS_IN(); 2334 eax = 1; /* 0x2B03A39E: mov eax, 1 */ 2335 MEM8(esi + 0x25) = (uint8_t)(LO8(eax)); /* 0x2B03A3A3: mov byte ptr [esi + 0x25], al */ 2336 ecx = MEM32(0x2B0EE9C8); /* 0x2B03A3A6: mov ecx, dword ptr [0x2b0ee9c8] */ 2337 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2338 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2339 esp = esp + 8; /* 0x2B03A3AC: add esp, 8 */ 2340 _flag_k = FK_ADD; 2341 /* cmp ecx, eax */ /* 0x2B03A3AF: cmp ecx, eax */ 2342 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2343 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2344 _flag_k = FK_CMP; 2345 if (CMP_NE(_flag_a, _flag_b)) goto L_2B03A3BB; /* 0x2B03A3B1: jne 0x2b03a3bb */ 2346 L_2B03A3B3: 2347 ecx = MEM32(esi + 0x10); /* 0x2B03A3B3: mov ecx, dword ptr [esi + 0x10] */ 2348 RECOMP_ICALL(0x2B03D560u); /* 0x2B03A3B6: call 0x2b03d560 */ /* not lifted */ 2349 RECOMP_FLAGS_IN(); 2350 L_2B03A3BB: 2351 esi = POP32_VAL(esp); /* 0x2B03A3BB: pop esi */ 2352 ebp = POP32_VAL(esp); /* 0x2B03A3BC: pop ebp */ 2353 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B03A3BD: ret 4 */ 2354 RECOMP_REGS_OUT(); 2355 } 2356 2357 void sub_2B03A3C0(void) { 2358 int _fpu_cmp = 0; 2359 uint32_t _cf = 0; 2360 int _df = 1; 2361 uint32_t _flag_k = FK_NONE; 2362 uint32_t _flag_a = 0, _flag_b = 0; 2363 uint32_t _itail_tgt = 0; 2364 RECOMP_REGS_LOCALS 2365 RECOMP_ENTER(0x2B03A3C0u); 2366 2367 L_2B03A3C0: 2368 PUSH32(esp, ebp); /* 0x2B03A3C0: push ebp */ 2369 ebp = esp; /* 0x2B03A3C1: mov ebp, esp */ 2370 PUSH32(esp, esi); /* 0x2B03A3C3: push esi */ 2371 esi = ecx; /* 0x2B03A3C4: mov esi, ecx */ 2372 SET_LO8(ecx, MEM8(ebp + 0x8)); /* 0x2B03A3C6: mov cl, byte ptr [ebp + 8] */ 2373 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2374 eax = 0; /* 0x2B03A3C9: xor eax, eax */ 2375 _cf = 0; 2376 _flag_k = FK_TEST; 2377 /* cmp LO8(ecx), LO8(eax) */ /* 0x2B03A3CB: cmp cl, al */ 2378 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2379 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2380 _flag_k = FK_NARROW(FK_CMP, 24); 2381 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B03A3DB; /* 0x2B03A3CD: je 0x2b03a3db */ 2382 L_2B03A3CF: 2383 /* cmp MEM8(esi + 0x25), LO8(eax) */ /* 0x2B03A3CF: cmp byte ptr [esi + 0x25], al */ 2384 _flag_a = (uint32_t)(MEM8(esi + 0x25)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2385 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2386 _flag_k = FK_NARROW(FK_CMP, 24); 2387 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B03A3F5; /* 0x2B03A3D2: je 0x2b03a3f5 */ 2388 L_2B03A3D4: 2389 MEM8(esi + 0x25) = (uint8_t)(LO8(eax)); /* 0x2B03A3D4: mov byte ptr [esi + 0x25], al */ 2390 PUSH32(esp, 1); /* 0x2B03A3D7: push 1 */ 2391 goto L_2B03A3E4; /* 0x2B03A3D9: jmp 0x2b03a3e4 */ 2392 L_2B03A3DB: 2393 /* cmp MEM8(esi + 0x14), LO8(eax) */ /* 0x2B03A3DB: cmp byte ptr [esi + 0x14], al */ 2394 _flag_a = (uint32_t)(MEM8(esi + 0x14)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2395 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2396 _flag_k = FK_NARROW(FK_CMP, 24); 2397 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B03A3F5; /* 0x2B03A3DE: je 0x2b03a3f5 */ 2398 L_2B03A3E0: 2399 MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x2B03A3E0: mov byte ptr [esi + 0x14], al */ 2400 PUSH32(esp, eax); /* 0x2B03A3E3: push eax */ 2401 L_2B03A3E4: 2402 PUSH32(esp, esi); /* 0x2B03A3E4: push esi */ 2403 RECOMP_ICALL(0x2B03B060u); /* 0x2B03A3E5: call 0x2b03b060 */ /* not lifted */ 2404 RECOMP_FLAGS_IN(); 2405 ecx = MEM32(esi + 0x10); /* 0x2B03A3EA: mov ecx, dword ptr [esi + 0x10] */ 2406 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2407 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2408 esp = esp + 8; /* 0x2B03A3ED: add esp, 8 */ 2409 _flag_k = FK_ADD; 2410 RECOMP_ICALL(0x2B03D580u); /* 0x2B03A3F0: call 0x2b03d580 */ /* not lifted */ 2411 RECOMP_FLAGS_IN(); 2412 L_2B03A3F5: 2413 esi = POP32_VAL(esp); /* 0x2B03A3F5: pop esi */ 2414 ebp = POP32_VAL(esp); /* 0x2B03A3F6: pop ebp */ 2415 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B03A3F7: ret 4 */ 2416 RECOMP_REGS_OUT(); 2417 } 2418 2419 void sub_2B03A400(void) { 2420 int _fpu_cmp = 0; 2421 uint32_t _cf = 0; 2422 int _df = 1; 2423 uint32_t _flag_k = FK_NONE; 2424 uint32_t _flag_a = 0, _flag_b = 0; 2425 uint32_t _itail_tgt = 0; 2426 RECOMP_REGS_LOCALS 2427 RECOMP_ENTER(0x2B03A400u); 2428 2429 L_2B03A400: 2430 PUSH32(esp, ebp); /* 0x2B03A400: push ebp */ 2431 ebp = esp; /* 0x2B03A401: mov ebp, esp */ 2432 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2433 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2434 esp = esp - 8; /* 0x2B03A403: sub esp, 8 */ 2435 _flag_k = FK_CMP; 2436 PUSH32(esp, esi); /* 0x2B03A406: push esi */ 2437 esi = ecx; /* 0x2B03A407: mov esi, ecx */ 2438 ecx = MEM32(esi + 0x10); /* 0x2B03A409: mov ecx, dword ptr [esi + 0x10] */ 2439 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2440 eax = 0; /* 0x2B03A40C: xor eax, eax */ 2441 _cf = 0; 2442 _flag_k = FK_TEST; 2443 SET_LO8(eax, MEM8(esi + 0xC)); /* 0x2B03A40E: mov al, byte ptr [esi + 0xc] */ 2444 PUSH32(esp, eax); /* 0x2B03A411: push eax */ 2445 RECOMP_ICALL(0x2B03D5A0u); /* 0x2B03A412: call 0x2b03d5a0 */ /* not lifted */ 2446 RECOMP_FLAGS_IN(); 2447 ecx = MEM32(esi + 0x10); /* 0x2B03A417: mov ecx, dword ptr [esi + 0x10] */ 2448 edx = MEM32(ecx + 0x3C); /* 0x2B03A41A: mov edx, dword ptr [ecx + 0x3c] */ 2449 eax = MEM32(esi + 0x8); /* 0x2B03A41D: mov eax, dword ptr [esi + 8] */ 2450 MEM32(ebp + (-0x8)) = edx; /* 0x2B03A420: mov dword ptr [ebp - 8], edx */ 2451 edx = ebp + (-0x8); /* 0x2B03A423: lea edx, [ebp - 8] */ 2452 PUSH32(esp, edx); /* 0x2B03A426: push edx */ 2453 MEM32(ebp + (-0x4)) = eax; /* 0x2B03A427: mov dword ptr [ebp - 4], eax */ 2454 RECOMP_ICALL(MEM32(0x2B0B5C18)); /* 0x2B03A42A: call dword ptr [0x2b0b5c18] */ 2455 RECOMP_FLAGS_IN(); 2456 ecx = MEM32(esi + 0x10); /* 0x2B03A430: mov ecx, dword ptr [esi + 0x10] */ 2457 RECOMP_ICALL(0x2B03D500u); /* 0x2B03A433: call 0x2b03d500 */ /* not lifted */ 2458 RECOMP_FLAGS_IN(); 2459 ecx = esi; /* 0x2B03A438: mov ecx, esi */ 2460 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B03A43A: call 0x2b03a2b0 */ /* not lifted */ 2461 RECOMP_FLAGS_IN(); 2462 esi = POP32_VAL(esp); /* 0x2B03A43F: pop esi */ 2463 esp = ebp; /* 0x2B03A440: mov esp, ebp */ 2464 ebp = POP32_VAL(esp); /* 0x2B03A442: pop ebp */ 2465 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A443: ret */ 2466 RECOMP_REGS_OUT(); 2467 } 2468 2469 void sub_2B03A450(void) { 2470 int _fpu_cmp = 0; 2471 uint32_t _cf = 0; 2472 int _df = 1; 2473 uint32_t _flag_k = FK_NONE; 2474 uint32_t _flag_a = 0, _flag_b = 0; 2475 uint32_t _itail_tgt = 0; 2476 RECOMP_REGS_LOCALS 2477 RECOMP_ENTER(0x2B03A450u); 2478 2479 L_2B03A450: 2480 PUSH32(esp, esi); /* 0x2B03A450: push esi */ 2481 esi = ecx; /* 0x2B03A451: mov esi, ecx */ 2482 SET_LO8(eax, MEM8(esi + 0x24)); /* 0x2B03A453: mov al, byte ptr [esi + 0x24] */ 2483 /* test LO8(eax), LO8(eax) */ /* 0x2B03A456: test al, al */ 2484 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2485 _cf = 0; 2486 _flag_k = FK_NARROW(FK_TEST, 24); 2487 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03A45F; /* 0x2B03A458: jne 0x2b03a45f */ 2488 L_2B03A45A: 2489 RECOMP_ICALL(0x2B03A590u); /* 0x2B03A45A: call 0x2b03a590 */ /* not lifted */ 2490 RECOMP_FLAGS_IN(); 2491 L_2B03A45F: 2492 SET_LO8(eax, MEM8(esi + 0xC)); /* 0x2B03A45F: mov al, byte ptr [esi + 0xc] */ 2493 /* test LO8(eax), LO8(eax) */ /* 0x2B03A462: test al, al */ 2494 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2495 _cf = 0; 2496 _flag_k = FK_NARROW(FK_TEST, 24); 2497 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03A46D; /* 0x2B03A464: je 0x2b03a46d */ 2498 L_2B03A466: 2499 eax = MEM32(esi); /* 0x2B03A466: mov eax, dword ptr [esi] */ 2500 ecx = esi; /* 0x2B03A468: mov ecx, esi */ 2501 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x2B03A46A: call dword ptr [eax + 8] */ 2502 RECOMP_FLAGS_IN(); 2503 L_2B03A46D: 2504 esi = POP32_VAL(esp); /* 0x2B03A46D: pop esi */ 2505 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A46E: ret */ 2506 RECOMP_REGS_OUT(); 2507 } 2508 2509 void sub_2B03A470(void) { 2510 int _fpu_cmp = 0; 2511 uint32_t _cf = 0; 2512 int _df = 1; 2513 uint32_t _flag_k = FK_NONE; 2514 uint32_t _flag_a = 0, _flag_b = 0; 2515 uint32_t _itail_tgt = 0; 2516 RECOMP_REGS_LOCALS 2517 RECOMP_ENTER(0x2B03A470u); 2518 2519 L_2B03A470: 2520 SET_LO8(eax, MEM8(ecx + 0xC)); /* 0x2B03A470: mov al, byte ptr [ecx + 0xc] */ 2521 /* test LO8(eax), LO8(eax) */ /* 0x2B03A473: test al, al */ 2522 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2523 _cf = 0; 2524 _flag_k = FK_NARROW(FK_TEST, 24); 2525 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03A47C; /* 0x2B03A475: je 0x2b03a47c */ 2526 L_2B03A477: 2527 goto L_2B03A510; /* 0x2B03A477: jmp 0x2b03a510 */ 2528 L_2B03A47C: 2529 goto L_2B03A490; /* 0x2B03A47C: jmp 0x2b03a490 */ 2530 L_2B03A490: 2531 PUSH32(esp, ebx); /* 0x2B03A490: push ebx */ 2532 PUSH32(esp, esi); /* 0x2B03A491: push esi */ 2533 esi = ecx; /* 0x2B03A492: mov esi, ecx */ 2534 eax = MEM32(esi); /* 0x2B03A494: mov eax, dword ptr [esi] */ 2535 RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x2B03A496: call dword ptr [eax + 0x18] */ 2536 RECOMP_FLAGS_IN(); 2537 SET_LO8(ebx, LO8(eax)); /* 0x2B03A499: mov bl, al */ 2538 /* test LO8(ebx), LO8(ebx) */ /* 0x2B03A49B: test bl, bl */ 2539 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2540 _cf = 0; 2541 _flag_k = FK_NARROW(FK_TEST, 24); 2542 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03A4FE; /* 0x2B03A49D: je 0x2b03a4fe */ 2543 L_2B03A49F: 2544 SET_LO8(eax, MEM8(esi + 0xC)); /* 0x2B03A49F: mov al, byte ptr [esi + 0xc] */ 2545 /* test LO8(eax), LO8(eax) */ /* 0x2B03A4A2: test al, al */ 2546 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2547 _cf = 0; 2548 _flag_k = FK_NARROW(FK_TEST, 24); 2549 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03A4FE; /* 0x2B03A4A4: jne 0x2b03a4fe */ 2550 L_2B03A4A6: 2551 SET_LO8(eax, MEM8(esi + 0x1C)); /* 0x2B03A4A6: mov al, byte ptr [esi + 0x1c] */ 2552 /* test LO8(eax), LO8(eax) */ /* 0x2B03A4A9: test al, al */ 2553 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2554 _cf = 0; 2555 _flag_k = FK_NARROW(FK_TEST, 24); 2556 ecx = MEM32(esi + 0x20); /* 0x2B03A4AB: mov ecx, dword ptr [esi + 0x20] */ 2557 MEM8(esi + 0xC) = (uint8_t)(1); /* 0x2B03A4AE: mov byte ptr [esi + 0xc], 1 */ 2558 MEM32(esi + 0x18) = ecx; /* 0x2B03A4B2: mov dword ptr [esi + 0x18], ecx */ 2559 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03A4F5; /* 0x2B03A4B5: je 0x2b03a4f5 */ 2560 L_2B03A4B7: 2561 edx = MEM32(esi); /* 0x2B03A4B7: mov edx, dword ptr [esi] */ 2562 ecx = esi; /* 0x2B03A4B9: mov ecx, esi */ 2563 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x2B03A4BB: call dword ptr [edx + 8] */ 2564 RECOMP_FLAGS_IN(); 2565 SET_LO8(eax, MEM8(0x2B0EE980)); /* 0x2B03A4BE: mov al, byte ptr [0x2b0ee980] */ 2566 /* test LO8(eax), 1 */ /* 0x2B03A4C3: test al, 1 */ 2567 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2568 _cf = 0; 2569 _flag_k = FK_NARROW(FK_TEST, 24); 2570 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03A4E1; /* 0x2B03A4C5: jne 0x2b03a4e1 */ 2571 L_2B03A4C7: 2572 _flag_a = (uint32_t)((LO8(eax) | 1)) << 24; _flag_b = (uint32_t)((LO8(eax) | 1)) << 24; 2573 SET_LO8(eax, LO8(eax) | 1); /* 0x2B03A4C7: or al, 1 */ 2574 _cf = 0; 2575 _flag_k = FK_NARROW(FK_TEST, 24); 2576 PUSH32(esp, 0x2B0E6D6Cu); /* 0x2B03A4C9: push 0x2b0e6d6c */ 2577 MEM8(0x2B0EE980) = (uint8_t)(LO8(eax)); /* 0x2B03A4CE: mov byte ptr [0x2b0ee980], al */ 2578 RECOMP_ICALL(MEM32(0x2B0B60BC)); /* 0x2B03A4D3: call dword ptr [0x2b0b60bc] */ 2579 RECOMP_FLAGS_IN(); 2580 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2581 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2582 esp = esp + 4; /* 0x2B03A4D9: add esp, 4 */ 2583 _flag_k = FK_ADD; 2584 MEM32(0x2B0EE97C) = eax; /* 0x2B03A4DC: mov dword ptr [0x2b0ee97c], eax */ 2585 L_2B03A4E1: 2586 eax = MEM32(0x2B0EE97C); /* 0x2B03A4E1: mov eax, dword ptr [0x2b0ee97c] */ 2587 PUSH32(esp, eax); /* 0x2B03A4E6: push eax */ 2588 RECOMP_ICALL(MEM32(0x2B0B60B8)); /* 0x2B03A4E7: call dword ptr [0x2b0b60b8] */ 2589 RECOMP_FLAGS_IN(); 2590 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2591 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2592 esp = esp + 4; /* 0x2B03A4ED: add esp, 4 */ 2593 _flag_k = FK_ADD; 2594 RECOMP_ICALL(0x2B03B100u); /* 0x2B03A4F0: call 0x2b03b100 */ /* not lifted */ 2595 RECOMP_FLAGS_IN(); 2596 L_2B03A4F5: 2597 PUSH32(esp, esi); /* 0x2B03A4F5: push esi */ 2598 RECOMP_ICALL(0x2B03BA50u); /* 0x2B03A4F6: call 0x2b03ba50 */ /* not lifted */ 2599 RECOMP_FLAGS_IN(); 2600 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2601 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2602 esp = esp + 4; /* 0x2B03A4FB: add esp, 4 */ 2603 _flag_k = FK_ADD; 2604 L_2B03A4FE: 2605 esi = POP32_VAL(esp); /* 0x2B03A4FE: pop esi */ 2606 SET_LO8(eax, LO8(ebx)); /* 0x2B03A4FF: mov al, bl */ 2607 ebx = POP32_VAL(esp); /* 0x2B03A501: pop ebx */ 2608 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A502: ret */ 2609 L_2B03A510: 2610 PUSH32(esp, ebx); /* 0x2B03A510: push ebx */ 2611 PUSH32(esp, esi); /* 0x2B03A511: push esi */ 2612 esi = ecx; /* 0x2B03A512: mov esi, ecx */ 2613 eax = MEM32(esi); /* 0x2B03A514: mov eax, dword ptr [esi] */ 2614 RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x2B03A516: call dword ptr [eax + 0x1c] */ 2615 RECOMP_FLAGS_IN(); 2616 SET_LO8(ebx, LO8(eax)); /* 0x2B03A519: mov bl, al */ 2617 /* test LO8(ebx), LO8(ebx) */ /* 0x2B03A51B: test bl, bl */ 2618 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2619 _cf = 0; 2620 _flag_k = FK_NARROW(FK_TEST, 24); 2621 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03A587; /* 0x2B03A51D: je 0x2b03a587 */ 2622 L_2B03A51F: 2623 SET_LO8(eax, MEM8(esi + 0x14)); /* 0x2B03A51F: mov al, byte ptr [esi + 0x14] */ 2624 /* test LO8(eax), LO8(eax) */ /* 0x2B03A522: test al, al */ 2625 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2626 _cf = 0; 2627 _flag_k = FK_NARROW(FK_TEST, 24); 2628 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03A52D; /* 0x2B03A524: jne 0x2b03a52d */ 2629 L_2B03A526: 2630 SET_LO8(eax, MEM8(esi + 0x25)); /* 0x2B03A526: mov al, byte ptr [esi + 0x25] */ 2631 /* test LO8(eax), LO8(eax) */ /* 0x2B03A529: test al, al */ 2632 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2633 _cf = 0; 2634 _flag_k = FK_NARROW(FK_TEST, 24); 2635 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03A587; /* 0x2B03A52B: je 0x2b03a587 */ 2636 L_2B03A52D: 2637 edx = MEM32(esi); /* 0x2B03A52D: mov edx, dword ptr [esi] */ 2638 ecx = esi; /* 0x2B03A52F: mov ecx, esi */ 2639 MEM8(esi + 0xC) = (uint8_t)(0); /* 0x2B03A531: mov byte ptr [esi + 0xc], 0 */ 2640 MEM32(esi + 0x18) = 0; /* 0x2B03A535: mov dword ptr [esi + 0x18], 0 */ 2641 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x2B03A53C: call dword ptr [edx + 0xc] */ 2642 RECOMP_FLAGS_IN(); 2643 SET_LO8(eax, MEM8(esi + 0x1C)); /* 0x2B03A53F: mov al, byte ptr [esi + 0x1c] */ 2644 /* test LO8(eax), LO8(eax) */ /* 0x2B03A542: test al, al */ 2645 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2646 _cf = 0; 2647 _flag_k = FK_NARROW(FK_TEST, 24); 2648 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03A587; /* 0x2B03A544: je 0x2b03a587 */ 2649 L_2B03A546: 2650 SET_LO8(ecx, MEM8(0x2B0EE978)); /* 0x2B03A546: mov cl, byte ptr [0x2b0ee978] */ 2651 SET_LO8(eax, 1); /* 0x2B03A54C: mov al, 1 */ 2652 /* test LO8(eax), LO8(ecx) */ /* 0x2B03A54E: test al, cl */ 2653 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2654 _cf = 0; 2655 _flag_k = FK_NARROW(FK_TEST, 24); 2656 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03A56D; /* 0x2B03A550: jne 0x2b03a56d */ 2657 L_2B03A552: 2658 _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; 2659 SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x2B03A552: or cl, al */ 2660 _cf = 0; 2661 _flag_k = FK_NARROW(FK_TEST, 24); 2662 PUSH32(esp, 0x2B0E6D88u); /* 0x2B03A554: push 0x2b0e6d88 */ 2663 MEM8(0x2B0EE978) = (uint8_t)(LO8(ecx)); /* 0x2B03A559: mov byte ptr [0x2b0ee978], cl */ 2664 RECOMP_ICALL(MEM32(0x2B0B60BC)); /* 0x2B03A55F: call dword ptr [0x2b0b60bc] */ 2665 RECOMP_FLAGS_IN(); 2666 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2667 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2668 esp = esp + 4; /* 0x2B03A565: add esp, 4 */ 2669 _flag_k = FK_ADD; 2670 MEM32(0x2B0EE974) = eax; /* 0x2B03A568: mov dword ptr [0x2b0ee974], eax */ 2671 L_2B03A56D: 2672 eax = MEM32(0x2B0EE974); /* 0x2B03A56D: mov eax, dword ptr [0x2b0ee974] */ 2673 PUSH32(esp, eax); /* 0x2B03A572: push eax */ 2674 RECOMP_ICALL(MEM32(0x2B0B60B8)); /* 0x2B03A573: call dword ptr [0x2b0b60b8] */ 2675 RECOMP_FLAGS_IN(); 2676 RECOMP_ICALL(0x2B03B100u); /* 0x2B03A579: call 0x2b03b100 */ /* not lifted */ 2677 RECOMP_FLAGS_IN(); 2678 PUSH32(esp, esi); /* 0x2B03A57E: push esi */ 2679 RECOMP_ICALL(0x2B03BA50u); /* 0x2B03A57F: call 0x2b03ba50 */ /* not lifted */ 2680 RECOMP_FLAGS_IN(); 2681 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2682 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2683 esp = esp + 8; /* 0x2B03A584: add esp, 8 */ 2684 _flag_k = FK_ADD; 2685 L_2B03A587: 2686 esi = POP32_VAL(esp); /* 0x2B03A587: pop esi */ 2687 SET_LO8(eax, LO8(ebx)); /* 0x2B03A588: mov al, bl */ 2688 ebx = POP32_VAL(esp); /* 0x2B03A58A: pop ebx */ 2689 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A58B: ret */ 2690 RECOMP_REGS_OUT(); 2691 } 2692 2693 void sub_2B03A490(void) { 2694 int _fpu_cmp = 0; 2695 uint32_t _cf = 0; 2696 int _df = 1; 2697 uint32_t _flag_k = FK_NONE; 2698 uint32_t _flag_a = 0, _flag_b = 0; 2699 uint32_t _itail_tgt = 0; 2700 RECOMP_REGS_LOCALS 2701 RECOMP_ENTER(0x2B03A490u); 2702 2703 L_2B03A490: 2704 PUSH32(esp, ebx); /* 0x2B03A490: push ebx */ 2705 PUSH32(esp, esi); /* 0x2B03A491: push esi */ 2706 esi = ecx; /* 0x2B03A492: mov esi, ecx */ 2707 eax = MEM32(esi); /* 0x2B03A494: mov eax, dword ptr [esi] */ 2708 RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x2B03A496: call dword ptr [eax + 0x18] */ 2709 RECOMP_FLAGS_IN(); 2710 SET_LO8(ebx, LO8(eax)); /* 0x2B03A499: mov bl, al */ 2711 /* test LO8(ebx), LO8(ebx) */ /* 0x2B03A49B: test bl, bl */ 2712 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2713 _cf = 0; 2714 _flag_k = FK_NARROW(FK_TEST, 24); 2715 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03A4FE; /* 0x2B03A49D: je 0x2b03a4fe */ 2716 L_2B03A49F: 2717 SET_LO8(eax, MEM8(esi + 0xC)); /* 0x2B03A49F: mov al, byte ptr [esi + 0xc] */ 2718 /* test LO8(eax), LO8(eax) */ /* 0x2B03A4A2: test al, al */ 2719 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2720 _cf = 0; 2721 _flag_k = FK_NARROW(FK_TEST, 24); 2722 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03A4FE; /* 0x2B03A4A4: jne 0x2b03a4fe */ 2723 L_2B03A4A6: 2724 SET_LO8(eax, MEM8(esi + 0x1C)); /* 0x2B03A4A6: mov al, byte ptr [esi + 0x1c] */ 2725 /* test LO8(eax), LO8(eax) */ /* 0x2B03A4A9: test al, al */ 2726 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2727 _cf = 0; 2728 _flag_k = FK_NARROW(FK_TEST, 24); 2729 ecx = MEM32(esi + 0x20); /* 0x2B03A4AB: mov ecx, dword ptr [esi + 0x20] */ 2730 MEM8(esi + 0xC) = (uint8_t)(1); /* 0x2B03A4AE: mov byte ptr [esi + 0xc], 1 */ 2731 MEM32(esi + 0x18) = ecx; /* 0x2B03A4B2: mov dword ptr [esi + 0x18], ecx */ 2732 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03A4F5; /* 0x2B03A4B5: je 0x2b03a4f5 */ 2733 L_2B03A4B7: 2734 edx = MEM32(esi); /* 0x2B03A4B7: mov edx, dword ptr [esi] */ 2735 ecx = esi; /* 0x2B03A4B9: mov ecx, esi */ 2736 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x2B03A4BB: call dword ptr [edx + 8] */ 2737 RECOMP_FLAGS_IN(); 2738 SET_LO8(eax, MEM8(0x2B0EE980)); /* 0x2B03A4BE: mov al, byte ptr [0x2b0ee980] */ 2739 /* test LO8(eax), 1 */ /* 0x2B03A4C3: test al, 1 */ 2740 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2741 _cf = 0; 2742 _flag_k = FK_NARROW(FK_TEST, 24); 2743 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03A4E1; /* 0x2B03A4C5: jne 0x2b03a4e1 */ 2744 L_2B03A4C7: 2745 _flag_a = (uint32_t)((LO8(eax) | 1)) << 24; _flag_b = (uint32_t)((LO8(eax) | 1)) << 24; 2746 SET_LO8(eax, LO8(eax) | 1); /* 0x2B03A4C7: or al, 1 */ 2747 _cf = 0; 2748 _flag_k = FK_NARROW(FK_TEST, 24); 2749 PUSH32(esp, 0x2B0E6D6Cu); /* 0x2B03A4C9: push 0x2b0e6d6c */ 2750 MEM8(0x2B0EE980) = (uint8_t)(LO8(eax)); /* 0x2B03A4CE: mov byte ptr [0x2b0ee980], al */ 2751 RECOMP_ICALL(MEM32(0x2B0B60BC)); /* 0x2B03A4D3: call dword ptr [0x2b0b60bc] */ 2752 RECOMP_FLAGS_IN(); 2753 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2754 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2755 esp = esp + 4; /* 0x2B03A4D9: add esp, 4 */ 2756 _flag_k = FK_ADD; 2757 MEM32(0x2B0EE97C) = eax; /* 0x2B03A4DC: mov dword ptr [0x2b0ee97c], eax */ 2758 L_2B03A4E1: 2759 eax = MEM32(0x2B0EE97C); /* 0x2B03A4E1: mov eax, dword ptr [0x2b0ee97c] */ 2760 PUSH32(esp, eax); /* 0x2B03A4E6: push eax */ 2761 RECOMP_ICALL(MEM32(0x2B0B60B8)); /* 0x2B03A4E7: call dword ptr [0x2b0b60b8] */ 2762 RECOMP_FLAGS_IN(); 2763 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2764 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2765 esp = esp + 4; /* 0x2B03A4ED: add esp, 4 */ 2766 _flag_k = FK_ADD; 2767 RECOMP_ICALL(0x2B03B100u); /* 0x2B03A4F0: call 0x2b03b100 */ /* not lifted */ 2768 RECOMP_FLAGS_IN(); 2769 L_2B03A4F5: 2770 PUSH32(esp, esi); /* 0x2B03A4F5: push esi */ 2771 RECOMP_ICALL(0x2B03BA50u); /* 0x2B03A4F6: call 0x2b03ba50 */ /* not lifted */ 2772 RECOMP_FLAGS_IN(); 2773 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2774 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2775 esp = esp + 4; /* 0x2B03A4FB: add esp, 4 */ 2776 _flag_k = FK_ADD; 2777 L_2B03A4FE: 2778 esi = POP32_VAL(esp); /* 0x2B03A4FE: pop esi */ 2779 SET_LO8(eax, LO8(ebx)); /* 0x2B03A4FF: mov al, bl */ 2780 ebx = POP32_VAL(esp); /* 0x2B03A501: pop ebx */ 2781 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A502: ret */ 2782 RECOMP_REGS_OUT(); 2783 } 2784 2785 void sub_2B03A510(void) { 2786 int _fpu_cmp = 0; 2787 uint32_t _cf = 0; 2788 int _df = 1; 2789 uint32_t _flag_k = FK_NONE; 2790 uint32_t _flag_a = 0, _flag_b = 0; 2791 uint32_t _itail_tgt = 0; 2792 RECOMP_REGS_LOCALS 2793 RECOMP_ENTER(0x2B03A510u); 2794 2795 L_2B03A510: 2796 PUSH32(esp, ebx); /* 0x2B03A510: push ebx */ 2797 PUSH32(esp, esi); /* 0x2B03A511: push esi */ 2798 esi = ecx; /* 0x2B03A512: mov esi, ecx */ 2799 eax = MEM32(esi); /* 0x2B03A514: mov eax, dword ptr [esi] */ 2800 RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x2B03A516: call dword ptr [eax + 0x1c] */ 2801 RECOMP_FLAGS_IN(); 2802 SET_LO8(ebx, LO8(eax)); /* 0x2B03A519: mov bl, al */ 2803 /* test LO8(ebx), LO8(ebx) */ /* 0x2B03A51B: test bl, bl */ 2804 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2805 _cf = 0; 2806 _flag_k = FK_NARROW(FK_TEST, 24); 2807 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03A587; /* 0x2B03A51D: je 0x2b03a587 */ 2808 L_2B03A51F: 2809 SET_LO8(eax, MEM8(esi + 0x14)); /* 0x2B03A51F: mov al, byte ptr [esi + 0x14] */ 2810 /* test LO8(eax), LO8(eax) */ /* 0x2B03A522: test al, al */ 2811 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2812 _cf = 0; 2813 _flag_k = FK_NARROW(FK_TEST, 24); 2814 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03A52D; /* 0x2B03A524: jne 0x2b03a52d */ 2815 L_2B03A526: 2816 SET_LO8(eax, MEM8(esi + 0x25)); /* 0x2B03A526: mov al, byte ptr [esi + 0x25] */ 2817 /* test LO8(eax), LO8(eax) */ /* 0x2B03A529: test al, al */ 2818 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2819 _cf = 0; 2820 _flag_k = FK_NARROW(FK_TEST, 24); 2821 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03A587; /* 0x2B03A52B: je 0x2b03a587 */ 2822 L_2B03A52D: 2823 edx = MEM32(esi); /* 0x2B03A52D: mov edx, dword ptr [esi] */ 2824 ecx = esi; /* 0x2B03A52F: mov ecx, esi */ 2825 MEM8(esi + 0xC) = (uint8_t)(0); /* 0x2B03A531: mov byte ptr [esi + 0xc], 0 */ 2826 MEM32(esi + 0x18) = 0; /* 0x2B03A535: mov dword ptr [esi + 0x18], 0 */ 2827 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x2B03A53C: call dword ptr [edx + 0xc] */ 2828 RECOMP_FLAGS_IN(); 2829 SET_LO8(eax, MEM8(esi + 0x1C)); /* 0x2B03A53F: mov al, byte ptr [esi + 0x1c] */ 2830 /* test LO8(eax), LO8(eax) */ /* 0x2B03A542: test al, al */ 2831 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2832 _cf = 0; 2833 _flag_k = FK_NARROW(FK_TEST, 24); 2834 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03A587; /* 0x2B03A544: je 0x2b03a587 */ 2835 L_2B03A546: 2836 SET_LO8(ecx, MEM8(0x2B0EE978)); /* 0x2B03A546: mov cl, byte ptr [0x2b0ee978] */ 2837 SET_LO8(eax, 1); /* 0x2B03A54C: mov al, 1 */ 2838 /* test LO8(eax), LO8(ecx) */ /* 0x2B03A54E: test al, cl */ 2839 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2840 _cf = 0; 2841 _flag_k = FK_NARROW(FK_TEST, 24); 2842 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03A56D; /* 0x2B03A550: jne 0x2b03a56d */ 2843 L_2B03A552: 2844 _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; 2845 SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x2B03A552: or cl, al */ 2846 _cf = 0; 2847 _flag_k = FK_NARROW(FK_TEST, 24); 2848 PUSH32(esp, 0x2B0E6D88u); /* 0x2B03A554: push 0x2b0e6d88 */ 2849 MEM8(0x2B0EE978) = (uint8_t)(LO8(ecx)); /* 0x2B03A559: mov byte ptr [0x2b0ee978], cl */ 2850 RECOMP_ICALL(MEM32(0x2B0B60BC)); /* 0x2B03A55F: call dword ptr [0x2b0b60bc] */ 2851 RECOMP_FLAGS_IN(); 2852 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2853 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2854 esp = esp + 4; /* 0x2B03A565: add esp, 4 */ 2855 _flag_k = FK_ADD; 2856 MEM32(0x2B0EE974) = eax; /* 0x2B03A568: mov dword ptr [0x2b0ee974], eax */ 2857 L_2B03A56D: 2858 eax = MEM32(0x2B0EE974); /* 0x2B03A56D: mov eax, dword ptr [0x2b0ee974] */ 2859 PUSH32(esp, eax); /* 0x2B03A572: push eax */ 2860 RECOMP_ICALL(MEM32(0x2B0B60B8)); /* 0x2B03A573: call dword ptr [0x2b0b60b8] */ 2861 RECOMP_FLAGS_IN(); 2862 RECOMP_ICALL(0x2B03B100u); /* 0x2B03A579: call 0x2b03b100 */ /* not lifted */ 2863 RECOMP_FLAGS_IN(); 2864 PUSH32(esp, esi); /* 0x2B03A57E: push esi */ 2865 RECOMP_ICALL(0x2B03BA50u); /* 0x2B03A57F: call 0x2b03ba50 */ /* not lifted */ 2866 RECOMP_FLAGS_IN(); 2867 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2868 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2869 esp = esp + 8; /* 0x2B03A584: add esp, 8 */ 2870 _flag_k = FK_ADD; 2871 L_2B03A587: 2872 esi = POP32_VAL(esp); /* 0x2B03A587: pop esi */ 2873 SET_LO8(eax, LO8(ebx)); /* 0x2B03A588: mov al, bl */ 2874 ebx = POP32_VAL(esp); /* 0x2B03A58A: pop ebx */ 2875 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A58B: ret */ 2876 RECOMP_REGS_OUT(); 2877 } 2878 2879 void sub_2B03A590(void) { 2880 int _fpu_cmp = 0; 2881 uint32_t _cf = 0; 2882 int _df = 1; 2883 uint32_t _flag_k = FK_NONE; 2884 uint32_t _flag_a = 0, _flag_b = 0; 2885 uint32_t _itail_tgt = 0; 2886 RECOMP_REGS_LOCALS 2887 RECOMP_ENTER(0x2B03A590u); 2888 2889 L_2B03A590: 2890 PUSH32(esp, esi); /* 0x2B03A590: push esi */ 2891 esi = ecx; /* 0x2B03A591: mov esi, ecx */ 2892 MEM8(esi + 0x1C) = (uint8_t)(1); /* 0x2B03A593: mov byte ptr [esi + 0x1c], 1 */ 2893 eax = MEM32(0x2B0EE9C8); /* 0x2B03A597: mov eax, dword ptr [0x2b0ee9c8] */ 2894 /* test eax, eax */ /* 0x2B03A59C: test eax, eax */ 2895 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2896 _cf = 0; 2897 _flag_k = FK_TEST; 2898 SET_LO8(eax, MEM8(esi + 0x25)); /* 0x2B03A59E: mov al, byte ptr [esi + 0x25] */ 2899 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03A5A9; /* 0x2B03A5A1: jne 0x2b03a5a9 */ 2900 L_2B03A5A3: 2901 /* test LO8(eax), LO8(eax) */ /* 0x2B03A5A3: test al, al */ 2902 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2903 _cf = 0; 2904 _flag_k = FK_NARROW(FK_TEST, 24); 2905 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03A5AD; /* 0x2B03A5A5: je 0x2b03a5ad */ 2906 L_2B03A5A7: 2907 goto L_2B03A5C3; /* 0x2B03A5A7: jmp 0x2b03a5c3 */ 2908 L_2B03A5A9: 2909 /* test LO8(eax), LO8(eax) */ /* 0x2B03A5A9: test al, al */ 2910 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2911 _cf = 0; 2912 _flag_k = FK_NARROW(FK_TEST, 24); 2913 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03A5C3; /* 0x2B03A5AB: je 0x2b03a5c3 */ 2914 L_2B03A5AD: 2915 ecx = MEM32(esi + 0x10); /* 0x2B03A5AD: mov ecx, dword ptr [esi + 0x10] */ 2916 RECOMP_ICALL(0x2B03D560u); /* 0x2B03A5B0: call 0x2b03d560 */ /* not lifted */ 2917 RECOMP_FLAGS_IN(); 2918 SET_LO8(eax, MEM8(esi + 0xC)); /* 0x2B03A5B5: mov al, byte ptr [esi + 0xc] */ 2919 /* test LO8(eax), LO8(eax) */ /* 0x2B03A5B8: test al, al */ 2920 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2921 _cf = 0; 2922 _flag_k = FK_NARROW(FK_TEST, 24); 2923 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03A5D0; /* 0x2B03A5BA: je 0x2b03a5d0 */ 2924 L_2B03A5BC: 2925 eax = MEM32(esi); /* 0x2B03A5BC: mov eax, dword ptr [esi] */ 2926 ecx = esi; /* 0x2B03A5BE: mov ecx, esi */ 2927 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x2B03A5C0: call dword ptr [eax + 8] */ 2928 RECOMP_FLAGS_IN(); 2929 L_2B03A5C3: 2930 SET_LO8(eax, MEM8(esi + 0xC)); /* 0x2B03A5C3: mov al, byte ptr [esi + 0xc] */ 2931 /* test LO8(eax), LO8(eax) */ /* 0x2B03A5C6: test al, al */ 2932 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2933 _cf = 0; 2934 _flag_k = FK_NARROW(FK_TEST, 24); 2935 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03A5D0; /* 0x2B03A5C8: je 0x2b03a5d0 */ 2936 L_2B03A5CA: 2937 ecx = MEM32(esi + 0x20); /* 0x2B03A5CA: mov ecx, dword ptr [esi + 0x20] */ 2938 MEM32(esi + 0x18) = ecx; /* 0x2B03A5CD: mov dword ptr [esi + 0x18], ecx */ 2939 L_2B03A5D0: 2940 RECOMP_ICALL(0x2B03B100u); /* 0x2B03A5D0: call 0x2b03b100 */ /* not lifted */ 2941 RECOMP_FLAGS_IN(); 2942 ecx = MEM32(0x2B0EE9C4); /* 0x2B03A5D5: mov ecx, dword ptr [0x2b0ee9c4] */ 2943 /* test ecx, ecx */ /* 0x2B03A5DB: test ecx, ecx */ 2944 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2945 _cf = 0; 2946 _flag_k = FK_TEST; 2947 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03A5EB; /* 0x2B03A5DD: je 0x2b03a5eb */ 2948 L_2B03A5DF: 2949 edx = MEM32(0x2B0EE9BC); /* 0x2B03A5DF: mov edx, dword ptr [0x2b0ee9bc] */ 2950 PUSH32(esp, edx); /* 0x2B03A5E5: push edx */ 2951 RECOMP_ICALL(0x2B03B9A0u); /* 0x2B03A5E6: call 0x2b03b9a0 */ /* not lifted */ 2952 RECOMP_FLAGS_IN(); 2953 L_2B03A5EB: 2954 PUSH32(esp, esi); /* 0x2B03A5EB: push esi */ 2955 RECOMP_ICALL(0x2B03BA50u); /* 0x2B03A5EC: call 0x2b03ba50 */ /* not lifted */ 2956 RECOMP_FLAGS_IN(); 2957 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2958 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2959 esp = esp + 4; /* 0x2B03A5F1: add esp, 4 */ 2960 _flag_k = FK_ADD; 2961 esi = POP32_VAL(esp); /* 0x2B03A5F4: pop esi */ 2962 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A5F5: ret */ 2963 RECOMP_REGS_OUT(); 2964 } 2965 2966 void sub_2B03A600(void) { 2967 int _fpu_cmp = 0; 2968 uint32_t _cf = 0; 2969 int _df = 1; 2970 uint32_t _flag_k = FK_NONE; 2971 uint32_t _flag_a = 0, _flag_b = 0; 2972 uint32_t _itail_tgt = 0; 2973 RECOMP_REGS_LOCALS 2974 RECOMP_ENTER(0x2B03A600u); 2975 2976 L_2B03A600: 2977 PUSH32(esp, esi); /* 0x2B03A600: push esi */ 2978 esi = ecx; /* 0x2B03A601: mov esi, ecx */ 2979 ecx = MEM32(esi + 0x10); /* 0x2B03A603: mov ecx, dword ptr [esi + 0x10] */ 2980 RECOMP_ICALL(0x2B03D580u); /* 0x2B03A606: call 0x2b03d580 */ /* not lifted */ 2981 RECOMP_FLAGS_IN(); 2982 eax = MEM32(esi); /* 0x2B03A60B: mov eax, dword ptr [esi] */ 2983 ecx = esi; /* 0x2B03A60D: mov ecx, esi */ 2984 MEM8(esi + 0x1C) = (uint8_t)(0); /* 0x2B03A60F: mov byte ptr [esi + 0x1c], 0 */ 2985 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x2B03A613: call dword ptr [eax + 0xc] */ 2986 RECOMP_FLAGS_IN(); 2987 RECOMP_ICALL(0x2B03B100u); /* 0x2B03A616: call 0x2b03b100 */ /* not lifted */ 2988 RECOMP_FLAGS_IN(); 2989 ecx = MEM32(0x2B0EE9C4); /* 0x2B03A61B: mov ecx, dword ptr [0x2b0ee9c4] */ 2990 /* test ecx, ecx */ /* 0x2B03A621: test ecx, ecx */ 2991 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2992 _cf = 0; 2993 _flag_k = FK_TEST; 2994 esi = POP32_VAL(esp); /* 0x2B03A623: pop esi */ 2995 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03A632; /* 0x2B03A624: je 0x2b03a632 */ 2996 L_2B03A626: 2997 edx = MEM32(0x2B0EE9BC); /* 0x2B03A626: mov edx, dword ptr [0x2b0ee9bc] */ 2998 PUSH32(esp, edx); /* 0x2B03A62C: push edx */ 2999 RECOMP_ICALL(0x2B03B9A0u); /* 0x2B03A62D: call 0x2b03b9a0 */ /* not lifted */ 3000 RECOMP_FLAGS_IN(); 3001 L_2B03A632: 3002 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A632: ret */ 3003 RECOMP_REGS_OUT(); 3004 } 3005 3006 void sub_2B03A640(void) { 3007 int _fpu_cmp = 0; 3008 uint32_t _cf = 0; 3009 int _df = 1; 3010 uint32_t _flag_k = FK_NONE; 3011 uint32_t _flag_a = 0, _flag_b = 0; 3012 uint32_t _itail_tgt = 0; 3013 RECOMP_REGS_LOCALS 3014 RECOMP_ENTER(0x2B03A640u); 3015 3016 L_2B03A640: 3017 RECOMP_ICALL(0x2B03A650u); /* 0x2B03A640: call 0x2b03a650 */ /* not lifted */ 3018 RECOMP_FLAGS_IN(); 3019 goto L_2B03A680; /* 0x2B03A645: jmp 0x2b03a680 */ 3020 L_2B03A680: 3021 PUSH32(esp, 0x2B03A690u); /* 0x2B03A680: push 0x2b03a690 */ 3022 RECOMP_ICALL(0x2B0AB39Fu); /* 0x2B03A685: call 0x2b0ab39f */ /* not lifted */ 3023 RECOMP_FLAGS_IN(); 3024 ecx = POP32_VAL(esp); /* 0x2B03A68A: pop ecx */ 3025 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A68B: ret */ 3026 RECOMP_REGS_OUT(); 3027 } 3028 3029 void sub_2B03A650(void) { 3030 int _fpu_cmp = 0; 3031 uint32_t _cf = 0; 3032 int _df = 1; 3033 uint32_t _flag_k = FK_NONE; 3034 uint32_t _flag_a = 0, _flag_b = 0; 3035 uint32_t _itail_tgt = 0; 3036 RECOMP_REGS_LOCALS 3037 RECOMP_ENTER(0x2B03A650u); 3038 3039 L_2B03A650: 3040 PUSH32(esp, ebp); /* 0x2B03A650: push ebp */ 3041 ebp = esp; /* 0x2B03A651: mov ebp, esp */ 3042 PUSH32(esp, ecx); /* 0x2B03A653: push ecx */ 3043 SET_LO8(eax, MEM8(ebp + (-0x1))); /* 0x2B03A654: mov al, byte ptr [ebp - 1] */ 3044 PUSH32(esp, 0xCu); /* 0x2B03A657: push 0xc */ 3045 MEM8(0x2B0EE9A8) = (uint8_t)(LO8(eax)); /* 0x2B03A659: mov byte ptr [0x2b0ee9a8], al */ 3046 RECOMP_ICALL(0x2B0AB212u); /* 0x2B03A65E: call 0x2b0ab212 */ /* not lifted */ 3047 RECOMP_FLAGS_IN(); 3048 MEM32(eax) = eax; /* 0x2B03A663: mov dword ptr [eax], eax */ 3049 MEM32(eax + 0x4) = eax; /* 0x2B03A665: mov dword ptr [eax + 4], eax */ 3050 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3051 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3052 esp = esp + 4; /* 0x2B03A668: add esp, 4 */ 3053 _flag_k = FK_ADD; 3054 MEM32(0x2B0EE9AC) = eax; /* 0x2B03A66B: mov dword ptr [0x2b0ee9ac], eax */ 3055 MEM32(0x2B0EE9B0) = 0; /* 0x2B03A670: mov dword ptr [0x2b0ee9b0], 0 */ 3056 esp = ebp; /* 0x2B03A67A: mov esp, ebp */ 3057 ebp = POP32_VAL(esp); /* 0x2B03A67C: pop ebp */ 3058 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A67D: ret */ 3059 RECOMP_REGS_OUT(); 3060 } 3061 3062 void sub_2B03A680(void) { 3063 int _fpu_cmp = 0; 3064 uint32_t _cf = 0; 3065 int _df = 1; 3066 uint32_t _flag_k = FK_NONE; 3067 uint32_t _flag_a = 0, _flag_b = 0; 3068 uint32_t _itail_tgt = 0; 3069 RECOMP_REGS_LOCALS 3070 RECOMP_ENTER(0x2B03A680u); 3071 3072 L_2B03A680: 3073 PUSH32(esp, 0x2B03A690u); /* 0x2B03A680: push 0x2b03a690 */ 3074 RECOMP_ICALL(0x2B0AB39Fu); /* 0x2B03A685: call 0x2b0ab39f */ /* not lifted */ 3075 RECOMP_FLAGS_IN(); 3076 ecx = POP32_VAL(esp); /* 0x2B03A68A: pop ecx */ 3077 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A68B: ret */ 3078 RECOMP_REGS_OUT(); 3079 } 3080 3081 void sub_2B03A690(void) { 3082 int _fpu_cmp = 0; 3083 uint32_t _cf = 0; 3084 int _df = 1; 3085 uint32_t _flag_k = FK_NONE; 3086 uint32_t _flag_a = 0, _flag_b = 0; 3087 uint32_t _itail_tgt = 0; 3088 RECOMP_REGS_LOCALS 3089 RECOMP_ENTER(0x2B03A690u); 3090 3091 L_2B03A690: 3092 SET_LO8(ecx, MEM8(0x2B0EE9A4)); /* 0x2B03A690: mov cl, byte ptr [0x2b0ee9a4] */ 3093 SET_LO8(eax, 1); /* 0x2B03A696: mov al, 1 */ 3094 /* test LO8(eax), LO8(ecx) */ /* 0x2B03A698: test al, cl */ 3095 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 3096 _cf = 0; 3097 _flag_k = FK_NARROW(FK_TEST, 24); 3098 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03A6FB; /* 0x2B03A69A: jne 0x2b03a6fb */ 3099 L_2B03A69C: 3100 PUSH32(esp, esi); /* 0x2B03A69C: push esi */ 3101 _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; 3102 SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x2B03A69D: or cl, al */ 3103 _cf = 0; 3104 _flag_k = FK_NARROW(FK_TEST, 24); 3105 PUSH32(esp, edi); /* 0x2B03A69F: push edi */ 3106 edi = MEM32(0x2B0EE9AC); /* 0x2B03A6A0: mov edi, dword ptr [0x2b0ee9ac] */ 3107 MEM8(0x2B0EE9A4) = (uint8_t)(LO8(ecx)); /* 0x2B03A6A6: mov byte ptr [0x2b0ee9a4], cl */ 3108 esi = MEM32(edi); /* 0x2B03A6AC: mov esi, dword ptr [edi] */ 3109 /* cmp esi, edi */ /* 0x2B03A6AE: cmp esi, edi */ 3110 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 3111 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3112 _flag_k = FK_CMP; 3113 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B03A6DF; /* 0x2B03A6B0: je 0x2b03a6df */ 3114 L_2B03A6B2: 3115 eax = esi; /* 0x2B03A6B2: mov eax, esi */ 3116 ecx = MEM32(eax + 0x4); /* 0x2B03A6B4: mov ecx, dword ptr [eax + 4] */ 3117 edx = MEM32(eax); /* 0x2B03A6B7: mov edx, dword ptr [eax] */ 3118 esi = MEM32(esi); /* 0x2B03A6B9: mov esi, dword ptr [esi] */ 3119 MEM32(ecx) = edx; /* 0x2B03A6BB: mov dword ptr [ecx], edx */ 3120 ecx = MEM32(eax); /* 0x2B03A6BD: mov ecx, dword ptr [eax] */ 3121 edx = MEM32(eax + 0x4); /* 0x2B03A6BF: mov edx, dword ptr [eax + 4] */ 3122 PUSH32(esp, eax); /* 0x2B03A6C2: push eax */ 3123 MEM32(ecx + 0x4) = edx; /* 0x2B03A6C3: mov dword ptr [ecx + 4], edx */ 3124 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B03A6C6: call 0x2b0ab1ba */ /* not lifted */ 3125 RECOMP_FLAGS_IN(); 3126 ecx = MEM32(0x2B0EE9B0); /* 0x2B03A6CB: mov ecx, dword ptr [0x2b0ee9b0] */ 3127 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3128 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3129 esp = esp + 4; /* 0x2B03A6D1: add esp, 4 */ 3130 _flag_k = FK_ADD; 3131 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3132 ecx = ecx - 1; /* 0x2B03A6D4: dec ecx */ 3133 _flag_k = FK_DEC; 3134 /* cmp esi, edi */ /* 0x2B03A6D5: cmp esi, edi */ 3135 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 3136 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3137 _flag_k = FK_CMP; 3138 MEM32(0x2B0EE9B0) = ecx; /* 0x2B03A6D7: mov dword ptr [0x2b0ee9b0], ecx */ 3139 RECOMP_BACKEDGE(); 3140 if (CMP_NE(_flag_a, _flag_b)) goto L_2B03A6B2; /* 0x2B03A6DD: jne 0x2b03a6b2 */ 3141 L_2B03A6DF: 3142 eax = MEM32(0x2B0EE9AC); /* 0x2B03A6DF: mov eax, dword ptr [0x2b0ee9ac] */ 3143 PUSH32(esp, eax); /* 0x2B03A6E4: push eax */ 3144 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B03A6E5: call 0x2b0ab1ba */ /* not lifted */ 3145 RECOMP_FLAGS_IN(); 3146 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3147 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3148 esp = esp + 4; /* 0x2B03A6EA: add esp, 4 */ 3149 _flag_k = FK_ADD; 3150 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3151 eax = 0; /* 0x2B03A6ED: xor eax, eax */ 3152 _cf = 0; 3153 _flag_k = FK_TEST; 3154 edi = POP32_VAL(esp); /* 0x2B03A6EF: pop edi */ 3155 MEM32(0x2B0EE9AC) = eax; /* 0x2B03A6F0: mov dword ptr [0x2b0ee9ac], eax */ 3156 MEM32(0x2B0EE9B0) = eax; /* 0x2B03A6F5: mov dword ptr [0x2b0ee9b0], eax */ 3157 esi = POP32_VAL(esp); /* 0x2B03A6FA: pop esi */ 3158 L_2B03A6FB: 3159 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A6FB: ret */ 3160 RECOMP_REGS_OUT(); 3161 } 3162 3163 void sub_2B03A700(void) { 3164 int _fpu_cmp = 0; 3165 uint32_t _cf = 0; 3166 int _df = 1; 3167 uint32_t _flag_k = FK_NONE; 3168 uint32_t _flag_a = 0, _flag_b = 0; 3169 uint32_t _itail_tgt = 0; 3170 RECOMP_REGS_LOCALS 3171 RECOMP_ENTER(0x2B03A700u); 3172 3173 L_2B03A700: 3174 RECOMP_ICALL(0x2B03A710u); /* 0x2B03A700: call 0x2b03a710 */ /* not lifted */ 3175 RECOMP_FLAGS_IN(); 3176 goto L_2B03A740; /* 0x2B03A705: jmp 0x2b03a740 */ 3177 L_2B03A740: 3178 PUSH32(esp, 0x2B03A750u); /* 0x2B03A740: push 0x2b03a750 */ 3179 RECOMP_ICALL(0x2B0AB39Fu); /* 0x2B03A745: call 0x2b0ab39f */ /* not lifted */ 3180 RECOMP_FLAGS_IN(); 3181 ecx = POP32_VAL(esp); /* 0x2B03A74A: pop ecx */ 3182 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A74B: ret */ 3183 RECOMP_REGS_OUT(); 3184 } 3185 3186 void sub_2B03A710(void) { 3187 int _fpu_cmp = 0; 3188 uint32_t _cf = 0; 3189 int _df = 1; 3190 uint32_t _flag_k = FK_NONE; 3191 uint32_t _flag_a = 0, _flag_b = 0; 3192 uint32_t _itail_tgt = 0; 3193 RECOMP_REGS_LOCALS 3194 RECOMP_ENTER(0x2B03A710u); 3195 3196 L_2B03A710: 3197 PUSH32(esp, ebp); /* 0x2B03A710: push ebp */ 3198 ebp = esp; /* 0x2B03A711: mov ebp, esp */ 3199 PUSH32(esp, ecx); /* 0x2B03A713: push ecx */ 3200 SET_LO8(eax, MEM8(ebp + (-0x1))); /* 0x2B03A714: mov al, byte ptr [ebp - 1] */ 3201 PUSH32(esp, 0xCu); /* 0x2B03A717: push 0xc */ 3202 MEM8(0x2B0EE998) = (uint8_t)(LO8(eax)); /* 0x2B03A719: mov byte ptr [0x2b0ee998], al */ 3203 RECOMP_ICALL(0x2B0AB212u); /* 0x2B03A71E: call 0x2b0ab212 */ /* not lifted */ 3204 RECOMP_FLAGS_IN(); 3205 MEM32(eax) = eax; /* 0x2B03A723: mov dword ptr [eax], eax */ 3206 MEM32(eax + 0x4) = eax; /* 0x2B03A725: mov dword ptr [eax + 4], eax */ 3207 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3208 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3209 esp = esp + 4; /* 0x2B03A728: add esp, 4 */ 3210 _flag_k = FK_ADD; 3211 MEM32(0x2B0EE99C) = eax; /* 0x2B03A72B: mov dword ptr [0x2b0ee99c], eax */ 3212 MEM32(0x2B0EE9A0) = 0; /* 0x2B03A730: mov dword ptr [0x2b0ee9a0], 0 */ 3213 esp = ebp; /* 0x2B03A73A: mov esp, ebp */ 3214 ebp = POP32_VAL(esp); /* 0x2B03A73C: pop ebp */ 3215 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A73D: ret */ 3216 RECOMP_REGS_OUT(); 3217 } 3218 3219 void sub_2B03A740(void) { 3220 int _fpu_cmp = 0; 3221 uint32_t _cf = 0; 3222 int _df = 1; 3223 uint32_t _flag_k = FK_NONE; 3224 uint32_t _flag_a = 0, _flag_b = 0; 3225 uint32_t _itail_tgt = 0; 3226 RECOMP_REGS_LOCALS 3227 RECOMP_ENTER(0x2B03A740u); 3228 3229 L_2B03A740: 3230 PUSH32(esp, 0x2B03A750u); /* 0x2B03A740: push 0x2b03a750 */ 3231 RECOMP_ICALL(0x2B0AB39Fu); /* 0x2B03A745: call 0x2b0ab39f */ /* not lifted */ 3232 RECOMP_FLAGS_IN(); 3233 ecx = POP32_VAL(esp); /* 0x2B03A74A: pop ecx */ 3234 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A74B: ret */ 3235 RECOMP_REGS_OUT(); 3236 } 3237 3238 void sub_2B03A750(void) { 3239 int _fpu_cmp = 0; 3240 uint32_t _cf = 0; 3241 int _df = 1; 3242 uint32_t _flag_k = FK_NONE; 3243 uint32_t _flag_a = 0, _flag_b = 0; 3244 uint32_t _itail_tgt = 0; 3245 RECOMP_REGS_LOCALS 3246 RECOMP_ENTER(0x2B03A750u); 3247 3248 L_2B03A750: 3249 SET_LO8(ecx, MEM8(0x2B0EE9A4)); /* 0x2B03A750: mov cl, byte ptr [0x2b0ee9a4] */ 3250 SET_LO8(eax, 2); /* 0x2B03A756: mov al, 2 */ 3251 /* test LO8(eax), LO8(ecx) */ /* 0x2B03A758: test al, cl */ 3252 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 3253 _cf = 0; 3254 _flag_k = FK_NARROW(FK_TEST, 24); 3255 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03A7BB; /* 0x2B03A75A: jne 0x2b03a7bb */ 3256 L_2B03A75C: 3257 PUSH32(esp, esi); /* 0x2B03A75C: push esi */ 3258 _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; 3259 SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x2B03A75D: or cl, al */ 3260 _cf = 0; 3261 _flag_k = FK_NARROW(FK_TEST, 24); 3262 PUSH32(esp, edi); /* 0x2B03A75F: push edi */ 3263 edi = MEM32(0x2B0EE99C); /* 0x2B03A760: mov edi, dword ptr [0x2b0ee99c] */ 3264 MEM8(0x2B0EE9A4) = (uint8_t)(LO8(ecx)); /* 0x2B03A766: mov byte ptr [0x2b0ee9a4], cl */ 3265 esi = MEM32(edi); /* 0x2B03A76C: mov esi, dword ptr [edi] */ 3266 /* cmp esi, edi */ /* 0x2B03A76E: cmp esi, edi */ 3267 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 3268 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3269 _flag_k = FK_CMP; 3270 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B03A79F; /* 0x2B03A770: je 0x2b03a79f */ 3271 L_2B03A772: 3272 eax = esi; /* 0x2B03A772: mov eax, esi */ 3273 ecx = MEM32(eax + 0x4); /* 0x2B03A774: mov ecx, dword ptr [eax + 4] */ 3274 edx = MEM32(eax); /* 0x2B03A777: mov edx, dword ptr [eax] */ 3275 esi = MEM32(esi); /* 0x2B03A779: mov esi, dword ptr [esi] */ 3276 MEM32(ecx) = edx; /* 0x2B03A77B: mov dword ptr [ecx], edx */ 3277 ecx = MEM32(eax); /* 0x2B03A77D: mov ecx, dword ptr [eax] */ 3278 edx = MEM32(eax + 0x4); /* 0x2B03A77F: mov edx, dword ptr [eax + 4] */ 3279 PUSH32(esp, eax); /* 0x2B03A782: push eax */ 3280 MEM32(ecx + 0x4) = edx; /* 0x2B03A783: mov dword ptr [ecx + 4], edx */ 3281 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B03A786: call 0x2b0ab1ba */ /* not lifted */ 3282 RECOMP_FLAGS_IN(); 3283 ecx = MEM32(0x2B0EE9A0); /* 0x2B03A78B: mov ecx, dword ptr [0x2b0ee9a0] */ 3284 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3285 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3286 esp = esp + 4; /* 0x2B03A791: add esp, 4 */ 3287 _flag_k = FK_ADD; 3288 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3289 ecx = ecx - 1; /* 0x2B03A794: dec ecx */ 3290 _flag_k = FK_DEC; 3291 /* cmp esi, edi */ /* 0x2B03A795: cmp esi, edi */ 3292 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 3293 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3294 _flag_k = FK_CMP; 3295 MEM32(0x2B0EE9A0) = ecx; /* 0x2B03A797: mov dword ptr [0x2b0ee9a0], ecx */ 3296 RECOMP_BACKEDGE(); 3297 if (CMP_NE(_flag_a, _flag_b)) goto L_2B03A772; /* 0x2B03A79D: jne 0x2b03a772 */ 3298 L_2B03A79F: 3299 eax = MEM32(0x2B0EE99C); /* 0x2B03A79F: mov eax, dword ptr [0x2b0ee99c] */ 3300 PUSH32(esp, eax); /* 0x2B03A7A4: push eax */ 3301 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B03A7A5: call 0x2b0ab1ba */ /* not lifted */ 3302 RECOMP_FLAGS_IN(); 3303 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3304 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3305 esp = esp + 4; /* 0x2B03A7AA: add esp, 4 */ 3306 _flag_k = FK_ADD; 3307 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3308 eax = 0; /* 0x2B03A7AD: xor eax, eax */ 3309 _cf = 0; 3310 _flag_k = FK_TEST; 3311 edi = POP32_VAL(esp); /* 0x2B03A7AF: pop edi */ 3312 MEM32(0x2B0EE99C) = eax; /* 0x2B03A7B0: mov dword ptr [0x2b0ee99c], eax */ 3313 MEM32(0x2B0EE9A0) = eax; /* 0x2B03A7B5: mov dword ptr [0x2b0ee9a0], eax */ 3314 esi = POP32_VAL(esp); /* 0x2B03A7BA: pop esi */ 3315 L_2B03A7BB: 3316 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A7BB: ret */ 3317 RECOMP_REGS_OUT(); 3318 } 3319 3320 void sub_2B03A7C0(void) { 3321 int _fpu_cmp = 0; 3322 uint32_t _cf = 0; 3323 int _df = 1; 3324 uint32_t _flag_k = FK_NONE; 3325 uint32_t _flag_a = 0, _flag_b = 0; 3326 uint32_t _itail_tgt = 0; 3327 RECOMP_REGS_LOCALS 3328 RECOMP_ENTER(0x2B03A7C0u); 3329 3330 L_2B03A7C0: 3331 PUSH32(esp, ebx); /* 0x2B03A7C0: push ebx */ 3332 PUSH32(esp, esi); /* 0x2B03A7C1: push esi */ 3333 esi = MEM32(0x2B0B53CC); /* 0x2B03A7C2: mov esi, dword ptr [0x2b0b53cc] */ 3334 PUSH32(esp, edi); /* 0x2B03A7C8: push edi */ 3335 ebx = ecx; /* 0x2B03A7C9: mov ebx, ecx */ 3336 RECOMP_ICALL(esi); /* 0x2B03A7CB: call esi */ 3337 RECOMP_FLAGS_IN(); 3338 ecx = eax; /* 0x2B03A7CD: mov ecx, eax */ 3339 RECOMP_ICALL(MEM32(0x2B0B5374)); /* 0x2B03A7CF: call dword ptr [0x2b0b5374] */ 3340 RECOMP_FLAGS_IN(); 3341 PUSH32(esp, 0); /* 0x2B03A7D5: push 0 */ 3342 PUSH32(esp, 4); /* 0x2B03A7D7: push 4 */ 3343 PUSH32(esp, 1); /* 0x2B03A7D9: push 1 */ 3344 RECOMP_ICALL(esi); /* 0x2B03A7DB: call esi */ 3345 RECOMP_FLAGS_IN(); 3346 ecx = eax; /* 0x2B03A7DD: mov ecx, eax */ 3347 RECOMP_ICALL(MEM32(0x2B0B5378)); /* 0x2B03A7DF: call dword ptr [0x2b0b5378] */ 3348 RECOMP_FLAGS_IN(); 3349 PUSH32(esp, 0x2B001520u); /* 0x2B03A7E5: push 0x2b001520 */ 3350 RECOMP_ICALL(esi); /* 0x2B03A7EA: call esi */ 3351 RECOMP_FLAGS_IN(); 3352 ecx = eax; /* 0x2B03A7EC: mov ecx, eax */ 3353 RECOMP_ICALL(MEM32(0x2B0B537C)); /* 0x2B03A7EE: call dword ptr [0x2b0b537c] */ 3354 RECOMP_FLAGS_IN(); 3355 PUSH32(esp, 0x2B03A960u); /* 0x2B03A7F4: push 0x2b03a960 */ 3356 PUSH32(esp, 5); /* 0x2B03A7F9: push 5 */ 3357 RECOMP_ICALL(esi); /* 0x2B03A7FB: call esi */ 3358 RECOMP_FLAGS_IN(); 3359 edi = MEM32(0x2B0B5324); /* 0x2B03A7FD: mov edi, dword ptr [0x2b0b5324] */ 3360 ecx = eax; /* 0x2B03A803: mov ecx, eax */ 3361 RECOMP_ICALL(edi); /* 0x2B03A805: call edi */ 3362 RECOMP_FLAGS_IN(); 3363 PUSH32(esp, 0x2B03A9C0u); /* 0x2B03A807: push 0x2b03a9c0 */ 3364 PUSH32(esp, 6); /* 0x2B03A80C: push 6 */ 3365 RECOMP_ICALL(esi); /* 0x2B03A80E: call esi */ 3366 RECOMP_FLAGS_IN(); 3367 ecx = eax; /* 0x2B03A810: mov ecx, eax */ 3368 RECOMP_ICALL(edi); /* 0x2B03A812: call edi */ 3369 RECOMP_FLAGS_IN(); 3370 PUSH32(esp, 0x2B03AA00u); /* 0x2B03A814: push 0x2b03aa00 */ 3371 PUSH32(esp, 2); /* 0x2B03A819: push 2 */ 3372 RECOMP_ICALL(esi); /* 0x2B03A81B: call esi */ 3373 RECOMP_FLAGS_IN(); 3374 ecx = eax; /* 0x2B03A81D: mov ecx, eax */ 3375 RECOMP_ICALL(edi); /* 0x2B03A81F: call edi */ 3376 RECOMP_FLAGS_IN(); 3377 PUSH32(esp, 0x2B03A9E0u); /* 0x2B03A821: push 0x2b03a9e0 */ 3378 PUSH32(esp, 4); /* 0x2B03A826: push 4 */ 3379 RECOMP_ICALL(esi); /* 0x2B03A828: call esi */ 3380 RECOMP_FLAGS_IN(); 3381 ecx = eax; /* 0x2B03A82A: mov ecx, eax */ 3382 RECOMP_ICALL(edi); /* 0x2B03A82C: call edi */ 3383 RECOMP_FLAGS_IN(); 3384 PUSH32(esp, 0x2B03AA10u); /* 0x2B03A82E: push 0x2b03aa10 */ 3385 PUSH32(esp, 7); /* 0x2B03A833: push 7 */ 3386 RECOMP_ICALL(esi); /* 0x2B03A835: call esi */ 3387 RECOMP_FLAGS_IN(); 3388 ecx = eax; /* 0x2B03A837: mov ecx, eax */ 3389 RECOMP_ICALL(edi); /* 0x2B03A839: call edi */ 3390 RECOMP_FLAGS_IN(); 3391 PUSH32(esp, 0x2B03AA30u); /* 0x2B03A83B: push 0x2b03aa30 */ 3392 PUSH32(esp, 8); /* 0x2B03A840: push 8 */ 3393 RECOMP_ICALL(esi); /* 0x2B03A842: call esi */ 3394 RECOMP_FLAGS_IN(); 3395 ecx = eax; /* 0x2B03A844: mov ecx, eax */ 3396 RECOMP_ICALL(edi); /* 0x2B03A846: call edi */ 3397 RECOMP_FLAGS_IN(); 3398 PUSH32(esp, 0x2B03AA20u); /* 0x2B03A848: push 0x2b03aa20 */ 3399 PUSH32(esp, 9); /* 0x2B03A84D: push 9 */ 3400 RECOMP_ICALL(esi); /* 0x2B03A84F: call esi */ 3401 RECOMP_FLAGS_IN(); 3402 ecx = eax; /* 0x2B03A851: mov ecx, eax */ 3403 RECOMP_ICALL(edi); /* 0x2B03A853: call edi */ 3404 RECOMP_FLAGS_IN(); 3405 PUSH32(esp, 0x2B03AA40u); /* 0x2B03A855: push 0x2b03aa40 */ 3406 PUSH32(esp, 0xAu); /* 0x2B03A85A: push 0xa */ 3407 RECOMP_ICALL(esi); /* 0x2B03A85C: call esi */ 3408 RECOMP_FLAGS_IN(); 3409 ecx = eax; /* 0x2B03A85E: mov ecx, eax */ 3410 RECOMP_ICALL(edi); /* 0x2B03A860: call edi */ 3411 RECOMP_FLAGS_IN(); 3412 PUSH32(esp, 0x2B03AA50u); /* 0x2B03A862: push 0x2b03aa50 */ 3413 PUSH32(esp, 0xBu); /* 0x2B03A867: push 0xb */ 3414 RECOMP_ICALL(esi); /* 0x2B03A869: call esi */ 3415 RECOMP_FLAGS_IN(); 3416 ecx = eax; /* 0x2B03A86B: mov ecx, eax */ 3417 RECOMP_ICALL(edi); /* 0x2B03A86D: call edi */ 3418 RECOMP_FLAGS_IN(); 3419 PUSH32(esp, 0x2B03AA60u); /* 0x2B03A86F: push 0x2b03aa60 */ 3420 PUSH32(esp, 0xCu); /* 0x2B03A874: push 0xc */ 3421 RECOMP_ICALL(esi); /* 0x2B03A876: call esi */ 3422 RECOMP_FLAGS_IN(); 3423 ecx = eax; /* 0x2B03A878: mov ecx, eax */ 3424 RECOMP_ICALL(edi); /* 0x2B03A87A: call edi */ 3425 RECOMP_FLAGS_IN(); 3426 PUSH32(esp, 0x2B03AA90u); /* 0x2B03A87C: push 0x2b03aa90 */ 3427 PUSH32(esp, 0xDu); /* 0x2B03A881: push 0xd */ 3428 RECOMP_ICALL(esi); /* 0x2B03A883: call esi */ 3429 RECOMP_FLAGS_IN(); 3430 ecx = eax; /* 0x2B03A885: mov ecx, eax */ 3431 RECOMP_ICALL(edi); /* 0x2B03A887: call edi */ 3432 RECOMP_FLAGS_IN(); 3433 PUSH32(esp, 0x2B03AAA0u); /* 0x2B03A889: push 0x2b03aaa0 */ 3434 PUSH32(esp, 0xEu); /* 0x2B03A88E: push 0xe */ 3435 RECOMP_ICALL(esi); /* 0x2B03A890: call esi */ 3436 RECOMP_FLAGS_IN(); 3437 ecx = eax; /* 0x2B03A892: mov ecx, eax */ 3438 RECOMP_ICALL(edi); /* 0x2B03A894: call edi */ 3439 RECOMP_FLAGS_IN(); 3440 PUSH32(esp, 0x2B03AAB0u); /* 0x2B03A896: push 0x2b03aab0 */ 3441 PUSH32(esp, 0xFu); /* 0x2B03A89B: push 0xf */ 3442 RECOMP_ICALL(esi); /* 0x2B03A89D: call esi */ 3443 RECOMP_FLAGS_IN(); 3444 ecx = eax; /* 0x2B03A89F: mov ecx, eax */ 3445 RECOMP_ICALL(edi); /* 0x2B03A8A1: call edi */ 3446 RECOMP_FLAGS_IN(); 3447 PUSH32(esp, 0x2B03BBB0u); /* 0x2B03A8A3: push 0x2b03bbb0 */ 3448 PUSH32(esp, 0x10u); /* 0x2B03A8A8: push 0x10 */ 3449 RECOMP_ICALL(esi); /* 0x2B03A8AA: call esi */ 3450 RECOMP_FLAGS_IN(); 3451 ecx = eax; /* 0x2B03A8AC: mov ecx, eax */ 3452 RECOMP_ICALL(edi); /* 0x2B03A8AE: call edi */ 3453 RECOMP_FLAGS_IN(); 3454 PUSH32(esp, 0x2B03BBD0u); /* 0x2B03A8B0: push 0x2b03bbd0 */ 3455 PUSH32(esp, 0x11u); /* 0x2B03A8B5: push 0x11 */ 3456 RECOMP_ICALL(esi); /* 0x2B03A8B7: call esi */ 3457 RECOMP_FLAGS_IN(); 3458 ecx = eax; /* 0x2B03A8B9: mov ecx, eax */ 3459 RECOMP_ICALL(edi); /* 0x2B03A8BB: call edi */ 3460 RECOMP_FLAGS_IN(); 3461 edi = POP32_VAL(esp); /* 0x2B03A8BD: pop edi */ 3462 esi = POP32_VAL(esp); /* 0x2B03A8BE: pop esi */ 3463 eax = ebx; /* 0x2B03A8BF: mov eax, ebx */ 3464 ebx = POP32_VAL(esp); /* 0x2B03A8C1: pop ebx */ 3465 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A8C2: ret */ 3466 RECOMP_REGS_OUT(); 3467 } 3468 3469 void sub_2B03A8D0(void) { 3470 int _fpu_cmp = 0; 3471 uint32_t _cf = 0; 3472 int _df = 1; 3473 uint32_t _flag_k = FK_NONE; 3474 uint32_t _flag_a = 0, _flag_b = 0; 3475 uint32_t _itail_tgt = 0; 3476 RECOMP_REGS_LOCALS 3477 RECOMP_ENTER(0x2B03A8D0u); 3478 3479 L_2B03A8D0: 3480 RECOMP_ICALL(0x2B03A9C0u); /* 0x2B03A8D0: call 0x2b03a9c0 */ /* not lifted */ 3481 RECOMP_FLAGS_IN(); 3482 MEM32(0x2B0EE9B4) = 0; /* 0x2B03A8D5: mov dword ptr [0x2b0ee9b4], 0 */ 3483 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A8DF: ret */ 3484 RECOMP_REGS_OUT(); 3485 } 3486 3487 void sub_2B03A8E0(void) { 3488 int _fpu_cmp = 0; 3489 uint32_t _cf = 0; 3490 int _df = 1; 3491 uint32_t _flag_k = FK_NONE; 3492 uint32_t _flag_a = 0, _flag_b = 0; 3493 uint32_t _itail_tgt = 0; 3494 RECOMP_REGS_LOCALS 3495 RECOMP_ENTER(0x2B03A8E0u); 3496 3497 L_2B03A8E0: 3498 PUSH32(esp, ebp); /* 0x2B03A8E0: push ebp */ 3499 ebp = esp; /* 0x2B03A8E1: mov ebp, esp */ 3500 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B03A8E3: push -1 */ 3501 PUSH32(esp, 0x2B0AE84Bu); /* 0x2B03A8E5: push 0x2b0ae84b */ 3502 eax = MEM32(FS_BASE + (0)); /* 0x2B03A8EA: mov eax, dword ptr fs:[0] */ 3503 PUSH32(esp, eax); /* 0x2B03A8F0: push eax */ 3504 MEM32(FS_BASE + (0)) = esp; /* 0x2B03A8F1: mov dword ptr fs:[0], esp */ 3505 PUSH32(esp, ecx); /* 0x2B03A8F8: push ecx */ 3506 eax = MEM32(0x2B0EE9B4); /* 0x2B03A8F9: mov eax, dword ptr [0x2b0ee9b4] */ 3507 /* test eax, eax */ /* 0x2B03A8FE: test eax, eax */ 3508 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3509 _cf = 0; 3510 _flag_k = FK_TEST; 3511 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03A93B; /* 0x2B03A900: jne 0x2b03a93b */ 3512 L_2B03A902: 3513 PUSH32(esp, 1); /* 0x2B03A902: push 1 */ 3514 RECOMP_ICALL(0x2B0AB212u); /* 0x2B03A904: call 0x2b0ab212 */ /* not lifted */ 3515 RECOMP_FLAGS_IN(); 3516 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3517 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3518 esp = esp + 4; /* 0x2B03A909: add esp, 4 */ 3519 _flag_k = FK_ADD; 3520 MEM32(ebp + (-0x10)) = eax; /* 0x2B03A90C: mov dword ptr [ebp - 0x10], eax */ 3521 /* test eax, eax */ /* 0x2B03A90F: test eax, eax */ 3522 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3523 _cf = 0; 3524 _flag_k = FK_TEST; 3525 MEM32(ebp + (-0x4)) = 0; /* 0x2B03A911: mov dword ptr [ebp - 4], 0 */ 3526 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03A934; /* 0x2B03A918: je 0x2b03a934 */ 3527 L_2B03A91A: 3528 ecx = eax; /* 0x2B03A91A: mov ecx, eax */ 3529 RECOMP_ICALL(0x2B03A7C0u); /* 0x2B03A91C: call 0x2b03a7c0 */ /* not lifted */ 3530 RECOMP_FLAGS_IN(); 3531 MEM32(0x2B0EE9B4) = eax; /* 0x2B03A921: mov dword ptr [0x2b0ee9b4], eax */ 3532 ecx = MEM32(ebp + (-0xC)); /* 0x2B03A926: mov ecx, dword ptr [ebp - 0xc] */ 3533 MEM32(FS_BASE + (0)) = ecx; /* 0x2B03A929: mov dword ptr fs:[0], ecx */ 3534 esp = ebp; /* 0x2B03A930: mov esp, ebp */ 3535 ebp = POP32_VAL(esp); /* 0x2B03A932: pop ebp */ 3536 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A933: ret */ 3537 L_2B03A934: 3538 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3539 eax = 0; /* 0x2B03A934: xor eax, eax */ 3540 _cf = 0; 3541 _flag_k = FK_TEST; 3542 MEM32(0x2B0EE9B4) = eax; /* 0x2B03A936: mov dword ptr [0x2b0ee9b4], eax */ 3543 L_2B03A93B: 3544 ecx = MEM32(ebp + (-0xC)); /* 0x2B03A93B: mov ecx, dword ptr [ebp - 0xc] */ 3545 MEM32(FS_BASE + (0)) = ecx; /* 0x2B03A93E: mov dword ptr fs:[0], ecx */ 3546 esp = ebp; /* 0x2B03A945: mov esp, ebp */ 3547 ebp = POP32_VAL(esp); /* 0x2B03A947: pop ebp */ 3548 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A948: ret */ 3549 RECOMP_REGS_OUT(); 3550 } 3551 3552 void sub_2B03A950(void) { 3553 int _fpu_cmp = 0; 3554 uint32_t _cf = 0; 3555 int _df = 1; 3556 uint32_t _flag_k = FK_NONE; 3557 uint32_t _flag_a = 0, _flag_b = 0; 3558 uint32_t _itail_tgt = 0; 3559 RECOMP_REGS_LOCALS 3560 RECOMP_ENTER(0x2B03A950u); 3561 3562 L_2B03A950: 3563 eax = MEM32(0x2B0EE9B4); /* 0x2B03A950: mov eax, dword ptr [0x2b0ee9b4] */ 3564 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A955: ret */ 3565 RECOMP_REGS_OUT(); 3566 } 3567 3568 void sub_2B03A960(void) { 3569 int _fpu_cmp = 0; 3570 uint32_t _cf = 0; 3571 int _df = 1; 3572 uint32_t _flag_k = FK_NONE; 3573 uint32_t _flag_a = 0, _flag_b = 0; 3574 uint32_t _itail_tgt = 0; 3575 RECOMP_REGS_LOCALS 3576 RECOMP_ENTER(0x2B03A960u); 3577 3578 L_2B03A960: 3579 PUSH32(esp, ebp); /* 0x2B03A960: push ebp */ 3580 ebp = esp; /* 0x2B03A961: mov ebp, esp */ 3581 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B03A963: push -1 */ 3582 PUSH32(esp, 0x2B0AE86Bu); /* 0x2B03A965: push 0x2b0ae86b */ 3583 eax = MEM32(FS_BASE + (0)); /* 0x2B03A96A: mov eax, dword ptr fs:[0] */ 3584 PUSH32(esp, eax); /* 0x2B03A970: push eax */ 3585 MEM32(FS_BASE + (0)) = esp; /* 0x2B03A971: mov dword ptr fs:[0], esp */ 3586 PUSH32(esp, ecx); /* 0x2B03A978: push ecx */ 3587 eax = MEM32(0x2B0EE9B8); /* 0x2B03A979: mov eax, dword ptr [0x2b0ee9b8] */ 3588 /* test eax, eax */ /* 0x2B03A97E: test eax, eax */ 3589 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3590 _cf = 0; 3591 _flag_k = FK_TEST; 3592 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03A9B1; /* 0x2B03A980: jne 0x2b03a9b1 */ 3593 L_2B03A982: 3594 PUSH32(esp, 0x74u); /* 0x2B03A982: push 0x74 */ 3595 RECOMP_ICALL(0x2B0AB212u); /* 0x2B03A984: call 0x2b0ab212 */ /* not lifted */ 3596 RECOMP_FLAGS_IN(); 3597 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3598 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3599 esp = esp + 4; /* 0x2B03A989: add esp, 4 */ 3600 _flag_k = FK_ADD; 3601 MEM32(ebp + (-0x10)) = eax; /* 0x2B03A98C: mov dword ptr [ebp - 0x10], eax */ 3602 /* test eax, eax */ /* 0x2B03A98F: test eax, eax */ 3603 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3604 _cf = 0; 3605 _flag_k = FK_TEST; 3606 MEM32(ebp + (-0x4)) = 0; /* 0x2B03A991: mov dword ptr [ebp - 4], 0 */ 3607 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03A9A3; /* 0x2B03A998: je 0x2b03a9a3 */ 3608 L_2B03A99A: 3609 ecx = eax; /* 0x2B03A99A: mov ecx, eax */ 3610 RECOMP_ICALL(0x2B03AAF0u); /* 0x2B03A99C: call 0x2b03aaf0 */ /* not lifted */ 3611 RECOMP_FLAGS_IN(); 3612 goto L_2B03A9A5; /* 0x2B03A9A1: jmp 0x2b03a9a5 */ 3613 L_2B03A9A3: 3614 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3615 eax = 0; /* 0x2B03A9A3: xor eax, eax */ 3616 _cf = 0; 3617 _flag_k = FK_TEST; 3618 L_2B03A9A5: 3619 MEM32(0x2B0EE9B8) = eax; /* 0x2B03A9A5: mov dword ptr [0x2b0ee9b8], eax */ 3620 MEM8(0x2B0EE9E0) = (uint8_t)(0); /* 0x2B03A9AA: mov byte ptr [0x2b0ee9e0], 0 */ 3621 L_2B03A9B1: 3622 ecx = MEM32(ebp + (-0xC)); /* 0x2B03A9B1: mov ecx, dword ptr [ebp - 0xc] */ 3623 MEM32(FS_BASE + (0)) = ecx; /* 0x2B03A9B4: mov dword ptr fs:[0], ecx */ 3624 esp = ebp; /* 0x2B03A9BB: mov esp, ebp */ 3625 ebp = POP32_VAL(esp); /* 0x2B03A9BD: pop ebp */ 3626 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A9BE: ret */ 3627 RECOMP_REGS_OUT(); 3628 } 3629 3630 void sub_2B03A9C0(void) { 3631 int _fpu_cmp = 0; 3632 uint32_t _cf = 0; 3633 int _df = 1; 3634 uint32_t _flag_k = FK_NONE; 3635 uint32_t _flag_a = 0, _flag_b = 0; 3636 uint32_t _itail_tgt = 0; 3637 RECOMP_REGS_LOCALS 3638 RECOMP_ENTER(0x2B03A9C0u); 3639 3640 L_2B03A9C0: 3641 ecx = MEM32(0x2B0EE9B8); /* 0x2B03A9C0: mov ecx, dword ptr [0x2b0ee9b8] */ 3642 /* test ecx, ecx */ /* 0x2B03A9C6: test ecx, ecx */ 3643 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3644 _cf = 0; 3645 _flag_k = FK_TEST; 3646 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03A9D0; /* 0x2B03A9C8: je 0x2b03a9d0 */ 3647 L_2B03A9CA: 3648 eax = MEM32(ecx); /* 0x2B03A9CA: mov eax, dword ptr [ecx] */ 3649 PUSH32(esp, 1); /* 0x2B03A9CC: push 1 */ 3650 RECOMP_ICALL(MEM32(eax)); /* 0x2B03A9CE: call dword ptr [eax] */ 3651 RECOMP_FLAGS_IN(); 3652 L_2B03A9D0: 3653 MEM32(0x2B0EE9B8) = 0; /* 0x2B03A9D0: mov dword ptr [0x2b0ee9b8], 0 */ 3654 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A9DA: ret */ 3655 RECOMP_REGS_OUT(); 3656 } 3657 3658 void sub_2B03A9E0(void) { 3659 int _fpu_cmp = 0; 3660 uint32_t _cf = 0; 3661 int _df = 1; 3662 uint32_t _flag_k = FK_NONE; 3663 uint32_t _flag_a = 0, _flag_b = 0; 3664 uint32_t _itail_tgt = 0; 3665 RECOMP_REGS_LOCALS 3666 RECOMP_ENTER(0x2B03A9E0u); 3667 3668 L_2B03A9E0: 3669 SET_LO8(edx, MEM8(0x2B0EE9E0)); /* 0x2B03A9E0: mov dl, byte ptr [0x2b0ee9e0] */ 3670 ecx = MEM32(0x2B0EE9B8); /* 0x2B03A9E6: mov ecx, dword ptr [0x2b0ee9b8] */ 3671 /* test LO8(edx), LO8(edx) */ /* 0x2B03A9EC: test dl, dl */ 3672 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3673 _cf = 0; 3674 _flag_k = FK_NARROW(FK_TEST, 24); 3675 SET_LO8(eax, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x2B03A9EE: sete al */ 3676 MEM8(0x2B0EE9E0) = (uint8_t)(LO8(eax)); /* 0x2B03A9F1: mov byte ptr [0x2b0ee9e0], al */ 3677 PUSH32(esp, eax); /* 0x2B03A9F6: push eax */ 3678 RECOMP_ICALL(0x2B03B330u); /* 0x2B03A9F7: call 0x2b03b330 */ /* not lifted */ 3679 RECOMP_FLAGS_IN(); 3680 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03A9FC: ret */ 3681 RECOMP_REGS_OUT(); 3682 } 3683 3684 void sub_2B03AA00(void) { 3685 int _fpu_cmp = 0; 3686 uint32_t _cf = 0; 3687 int _df = 1; 3688 uint32_t _flag_k = FK_NONE; 3689 uint32_t _flag_a = 0, _flag_b = 0; 3690 uint32_t _itail_tgt = 0; 3691 RECOMP_REGS_LOCALS 3692 RECOMP_ENTER(0x2B03AA00u); 3693 3694 L_2B03AA00: 3695 ecx = MEM32(0x2B0EE9B8); /* 0x2B03AA00: mov ecx, dword ptr [0x2b0ee9b8] */ 3696 /* test ecx, ecx */ /* 0x2B03AA06: test ecx, ecx */ 3697 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3698 _cf = 0; 3699 _flag_k = FK_TEST; 3700 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03AA0F; /* 0x2B03AA08: je 0x2b03aa0f */ 3701 L_2B03AA0A: 3702 goto L_2B03B110; /* 0x2B03AA0A: jmp 0x2b03b110 */ 3703 L_2B03AA0F: 3704 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03AA0F: ret */ 3705 L_2B03B110: 3706 PUSH32(esp, ebp); /* 0x2B03B110: push ebp */ 3707 ebp = esp; /* 0x2B03B111: mov ebp, esp */ 3708 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 3709 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3710 esp = esp - 0x18u; /* 0x2B03B113: sub esp, 0x18 */ 3711 _flag_k = FK_CMP; 3712 eax = MEM32(0x2B0EE9C8); /* 0x2B03B116: mov eax, dword ptr [0x2b0ee9c8] */ 3713 /* test eax, eax */ /* 0x2B03B11B: test eax, eax */ 3714 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3715 _cf = 0; 3716 _flag_k = FK_TEST; 3717 PUSH32(esp, ebx); /* 0x2B03B11D: push ebx */ 3718 PUSH32(esp, esi); /* 0x2B03B11E: push esi */ 3719 PUSH32(esp, edi); /* 0x2B03B11F: push edi */ 3720 MEM32(ebp + (-0x8)) = ecx; /* 0x2B03B120: mov dword ptr [ebp - 8], ecx */ 3721 edi = 0x14u; /* 0x2B03B123: mov edi, 0x14 */ 3722 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B136; /* 0x2B03B128: jne 0x2b03b136 */ 3723 L_2B03B12A: 3724 eax = MEM32(0x2B0EE9AC); /* 0x2B03B12A: mov eax, dword ptr [0x2b0ee9ac] */ 3725 esi = MEM32(eax); /* 0x2B03B12F: mov esi, dword ptr [eax] */ 3726 MEM32(ebp + (-0x4)) = eax; /* 0x2B03B131: mov dword ptr [ebp - 4], eax */ 3727 goto L_2B03B142; /* 0x2B03B134: jmp 0x2b03b142 */ 3728 L_2B03B136: 3729 eax = MEM32(0x2B0EE99C); /* 0x2B03B136: mov eax, dword ptr [0x2b0ee99c] */ 3730 esi = MEM32(eax); /* 0x2B03B13B: mov esi, dword ptr [eax] */ 3731 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3732 edi = 0; /* 0x2B03B13D: xor edi, edi */ 3733 _cf = 0; 3734 _flag_k = FK_TEST; 3735 MEM32(ebp + (-0x4)) = eax; /* 0x2B03B13F: mov dword ptr [ebp - 4], eax */ 3736 L_2B03B142: 3737 /* cmp esi, eax */ /* 0x2B03B142: cmp esi, eax */ 3738 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3739 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3740 _flag_k = FK_CMP; 3741 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B03B197; /* 0x2B03B144: je 0x2b03b197 */ 3742 L_2B03B146: 3743 ebx = MEM32(0x2B0B5C18); /* 0x2B03B146: mov ebx, dword ptr [0x2b0b5c18] */ 3744 L_2B03B14C: 3745 eax = MEM32(0x2B0EE9BC); /* 0x2B03B14C: mov eax, dword ptr [0x2b0ee9bc] */ 3746 ecx = MEM32(esi + 0x8); /* 0x2B03B151: mov ecx, dword ptr [esi + 8] */ 3747 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3748 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3749 eax = eax + edi; /* 0x2B03B154: add eax, edi */ 3750 _flag_k = FK_ADD; 3751 MEM32(ecx + 0x8) = eax; /* 0x2B03B156: mov dword ptr [ecx + 8], eax */ 3752 ecx = MEM32(ecx + 0x10); /* 0x2B03B159: mov ecx, dword ptr [ecx + 0x10] */ 3753 edx = MEM32(ecx + 0x3C); /* 0x2B03B15C: mov edx, dword ptr [ecx + 0x3c] */ 3754 MEM32(ebp + (-0x14)) = eax; /* 0x2B03B15F: mov dword ptr [ebp - 0x14], eax */ 3755 eax = ebp + (-0x18); /* 0x2B03B162: lea eax, [ebp - 0x18] */ 3756 PUSH32(esp, eax); /* 0x2B03B165: push eax */ 3757 MEM32(ebp + (-0x18)) = edx; /* 0x2B03B166: mov dword ptr [ebp - 0x18], edx */ 3758 RECOMP_ICALL(ebx); /* 0x2B03B169: call ebx */ 3759 RECOMP_FLAGS_IN(); 3760 ecx = MEM32(esi + 0x8); /* 0x2B03B16B: mov ecx, dword ptr [esi + 8] */ 3761 RECOMP_ICALL(0x2B03A400u); /* 0x2B03B16E: call 0x2b03a400 */ /* not lifted */ 3762 RECOMP_FLAGS_IN(); 3763 eax = MEM32(esi + 0x8); /* 0x2B03B173: mov eax, dword ptr [esi + 8] */ 3764 SET_LO8(ecx, MEM8(eax + 0x1C)); /* 0x2B03B176: mov cl, byte ptr [eax + 0x1c] */ 3765 /* test LO8(ecx), LO8(ecx) */ /* 0x2B03B179: test cl, cl */ 3766 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 3767 _cf = 0; 3768 _flag_k = FK_NARROW(FK_TEST, 24); 3769 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B181; /* 0x2B03B17B: jne 0x2b03b181 */ 3770 L_2B03B17D: 3771 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3772 eax = 0; /* 0x2B03B17D: xor eax, eax */ 3773 _cf = 0; 3774 _flag_k = FK_TEST; 3775 goto L_2B03B18E; /* 0x2B03B17F: jmp 0x2b03b18e */ 3776 L_2B03B181: 3777 SET_LO8(ecx, MEM8(eax + 0x24)); /* 0x2B03B181: mov cl, byte ptr [eax + 0x24] */ 3778 /* test LO8(ecx), LO8(ecx) */ /* 0x2B03B184: test cl, cl */ 3779 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 3780 _cf = 0; 3781 _flag_k = FK_NARROW(FK_TEST, 24); 3782 eax = MEM32(eax + 0x18); /* 0x2B03B186: mov eax, dword ptr [eax + 0x18] */ 3783 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B18E; /* 0x2B03B189: jne 0x2b03b18e */ 3784 L_2B03B18B: 3785 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u); 3786 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3787 eax = eax + 0x14u; /* 0x2B03B18B: add eax, 0x14 */ 3788 _flag_k = FK_ADD; 3789 L_2B03B18E: 3790 esi = MEM32(esi); /* 0x2B03B18E: mov esi, dword ptr [esi] */ 3791 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3792 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3793 edi = edi + eax; /* 0x2B03B190: add edi, eax */ 3794 _flag_k = FK_ADD; 3795 /* cmp esi, MEM32(ebp + (-0x4)) */ /* 0x2B03B192: cmp esi, dword ptr [ebp - 4] */ 3796 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + (-0x4))); 3797 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3798 _flag_k = FK_CMP; 3799 RECOMP_BACKEDGE(); 3800 if (CMP_NE(_flag_a, _flag_b)) goto L_2B03B14C; /* 0x2B03B195: jne 0x2b03b14c */ 3801 L_2B03B197: 3802 ecx = MEM32(0x2B0EE9D8); /* 0x2B03B197: mov ecx, dword ptr [0x2b0ee9d8] */ 3803 edx = MEM32(0x2B0EE9BC); /* 0x2B03B19D: mov edx, dword ptr [0x2b0ee9bc] */ 3804 MEM32(ebp + (-0x10)) = ecx; /* 0x2B03B1A3: mov dword ptr [ebp - 0x10], ecx */ 3805 ecx = MEM32(0x2B0EE9D4); /* 0x2B03B1A6: mov ecx, dword ptr [0x2b0ee9d4] */ 3806 eax = edx + edi; /* 0x2B03B1AC: lea eax, [edx + edi] */ 3807 /* cmp eax, ecx */ /* 0x2B03B1AF: cmp eax, ecx */ 3808 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3809 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3810 _flag_k = FK_CMP; 3811 MEM32(ebp + (-0xC)) = eax; /* 0x2B03B1B1: mov dword ptr [ebp - 0xc], eax */ 3812 if (CMP_LE(_flag_a, _flag_b)) goto L_2B03B1BB; /* 0x2B03B1B4: jle 0x2b03b1bb */ 3813 L_2B03B1B6: 3814 MEM32(ebp + (-0xC)) = ecx; /* 0x2B03B1B6: mov dword ptr [ebp - 0xc], ecx */ 3815 goto L_2B03B1C6; /* 0x2B03B1B9: jmp 0x2b03b1c6 */ 3816 L_2B03B1BB: 3817 /* test eax, eax */ /* 0x2B03B1BB: test eax, eax */ 3818 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3819 _cf = 0; 3820 _flag_k = FK_TEST; 3821 if (TEST_NS(_flag_a, _flag_b)) goto L_2B03B1C6; /* 0x2B03B1BD: jge 0x2b03b1c6 */ 3822 L_2B03B1BF: 3823 MEM32(ebp + (-0xC)) = 0; /* 0x2B03B1BF: mov dword ptr [ebp - 0xc], 0 */ 3824 L_2B03B1C6: 3825 ecx = MEM32(0x2B0EE9DC); /* 0x2B03B1C6: mov ecx, dword ptr [0x2b0ee9dc] */ 3826 eax = ebp + (-0x10); /* 0x2B03B1CC: lea eax, [ebp - 0x10] */ 3827 PUSH32(esp, eax); /* 0x2B03B1CF: push eax */ 3828 RECOMP_ICALL(MEM32(0x2B0B5978)); /* 0x2B03B1D0: call dword ptr [0x2b0b5978] */ 3829 RECOMP_FLAGS_IN(); 3830 esi = MEM32(ebp + (-0x8)); /* 0x2B03B1D6: mov esi, dword ptr [ebp - 8] */ 3831 ecx = MEM32(esi + 0x58); /* 0x2B03B1D9: mov ecx, dword ptr [esi + 0x58] */ 3832 edx = MEM32(ecx); /* 0x2B03B1DC: mov edx, dword ptr [ecx] */ 3833 eax = ebp + (-0x10); /* 0x2B03B1DE: lea eax, [ebp - 0x10] */ 3834 PUSH32(esp, eax); /* 0x2B03B1E1: push eax */ 3835 RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x2B03B1E2: call dword ptr [edx + 0x18] */ 3836 RECOMP_FLAGS_IN(); 3837 ecx = ebp + (-0x10); /* 0x2B03B1E5: lea ecx, [ebp - 0x10] */ 3838 PUSH32(esp, ecx); /* 0x2B03B1E8: push ecx */ 3839 ecx = esi; /* 0x2B03B1E9: mov ecx, esi */ 3840 RECOMP_ICALL(MEM32(0x2B0B5C1C)); /* 0x2B03B1EB: call dword ptr [0x2b0b5c1c] */ 3841 RECOMP_FLAGS_IN(); 3842 SET_LO8(eax, MEM8(esi + 0x6C)); /* 0x2B03B1F1: mov al, byte ptr [esi + 0x6c] */ 3843 /* test LO8(eax), LO8(eax) */ /* 0x2B03B1F4: test al, al */ 3844 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3845 _cf = 0; 3846 _flag_k = FK_NARROW(FK_TEST, 24); 3847 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B240; /* 0x2B03B1F6: jne 0x2b03b240 */ 3848 L_2B03B1F8: 3849 eax = MEM32(0x2B0EE9BC); /* 0x2B03B1F8: mov eax, dword ptr [0x2b0ee9bc] */ 3850 esi = MEM32(0x2B0EE9D0); /* 0x2B03B1FD: mov esi, dword ptr [0x2b0ee9d0] */ 3851 ecx = MEM32(0x2B0EE9D4); /* 0x2B03B203: mov ecx, dword ptr [0x2b0ee9d4] */ 3852 edx = MEM32(0x2B0EE9DC); /* 0x2B03B209: mov edx, dword ptr [0x2b0ee9dc] */ 3853 ebx = MEM32(0x2B0EE9D8); /* 0x2B03B20F: mov ebx, dword ptr [0x2b0ee9d8] */ 3854 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3855 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3856 esi = esi - eax; /* 0x2B03B215: sub esi, eax */ 3857 _flag_k = FK_CMP; 3858 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 3859 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3860 esi = esi - edi; /* 0x2B03B217: sub esi, edi */ 3861 _flag_k = FK_CMP; 3862 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3863 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3864 edi = edi + eax; /* 0x2B03B219: add edi, eax */ 3865 _flag_k = FK_ADD; 3866 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 3867 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3868 esi = esi + ecx; /* 0x2B03B21B: add esi, ecx */ 3869 _flag_k = FK_ADD; 3870 ecx = MEM32(edx + 0x2C); /* 0x2B03B21D: mov ecx, dword ptr [edx + 0x2c] */ 3871 PUSH32(esp, edi); /* 0x2B03B220: push edi */ 3872 edi = MEM32(ebp + (-0x8)); /* 0x2B03B221: mov edi, dword ptr [ebp - 8] */ 3873 PUSH32(esp, ecx); /* 0x2B03B224: push ecx */ 3874 ecx = MEM32(edi + 0x5C); /* 0x2B03B225: mov ecx, dword ptr [edi + 0x5c] */ 3875 RECOMP_ICALL(MEM32(0x2B0B597C)); /* 0x2B03B228: call dword ptr [0x2b0b597c] */ 3876 RECOMP_FLAGS_IN(); 3877 ecx = MEM32(edi + 0x5C); /* 0x2B03B22E: mov ecx, dword ptr [edi + 0x5c] */ 3878 PUSH32(esp, esi); /* 0x2B03B231: push esi */ 3879 PUSH32(esp, ebx); /* 0x2B03B232: push ebx */ 3880 RECOMP_ICALL(MEM32(0x2B0B5980)); /* 0x2B03B233: call dword ptr [0x2b0b5980] */ 3881 RECOMP_FLAGS_IN(); 3882 eax = MEM32(edi + 0x5C); /* 0x2B03B239: mov eax, dword ptr [edi + 0x5c] */ 3883 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B03B23C: mov byte ptr [eax + 9], 1 */ 3884 L_2B03B240: 3885 edi = POP32_VAL(esp); /* 0x2B03B240: pop edi */ 3886 esi = POP32_VAL(esp); /* 0x2B03B241: pop esi */ 3887 ebx = POP32_VAL(esp); /* 0x2B03B242: pop ebx */ 3888 esp = ebp; /* 0x2B03B243: mov esp, ebp */ 3889 ebp = POP32_VAL(esp); /* 0x2B03B245: pop ebp */ 3890 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03B246: ret */ 3891 RECOMP_REGS_OUT(); 3892 } 3893 3894 void sub_2B03AA10(void) { 3895 int _fpu_cmp = 0; 3896 uint32_t _cf = 0; 3897 int _df = 1; 3898 uint32_t _flag_k = FK_NONE; 3899 uint32_t _flag_a = 0, _flag_b = 0; 3900 uint32_t _itail_tgt = 0; 3901 RECOMP_REGS_LOCALS 3902 RECOMP_ENTER(0x2B03AA10u); 3903 3904 L_2B03AA10: 3905 ecx = MEM32(0x2B0EE9B8); /* 0x2B03AA10: mov ecx, dword ptr [0x2b0ee9b8] */ 3906 /* test ecx, ecx */ /* 0x2B03AA16: test ecx, ecx */ 3907 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3908 _cf = 0; 3909 _flag_k = FK_TEST; 3910 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03AA1F; /* 0x2B03AA18: je 0x2b03aa1f */ 3911 L_2B03AA1A: 3912 goto L_2B03B4A0; /* 0x2B03AA1A: jmp 0x2b03b4a0 */ 3913 L_2B03AA1F: 3914 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03AA1F: ret */ 3915 L_2B03B4A0: 3916 PUSH32(esp, ebp); /* 0x2B03B4A0: push ebp */ 3917 ebp = esp; /* 0x2B03B4A1: mov ebp, esp */ 3918 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3919 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3920 esp = esp - 0x10u; /* 0x2B03B4A3: sub esp, 0x10 */ 3921 _flag_k = FK_CMP; 3922 eax = MEM32(0x2B0EE9C8); /* 0x2B03B4A6: mov eax, dword ptr [0x2b0ee9c8] */ 3923 /* test eax, eax */ /* 0x2B03B4AB: test eax, eax */ 3924 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3925 _cf = 0; 3926 _flag_k = FK_TEST; 3927 PUSH32(esp, ebx); /* 0x2B03B4AD: push ebx */ 3928 PUSH32(esp, edi); /* 0x2B03B4AE: push edi */ 3929 edi = MEM32(0x2B0EE9AC); /* 0x2B03B4AF: mov edi, dword ptr [0x2b0ee9ac] */ 3930 MEM32(ebp + (-0xC)) = ecx; /* 0x2B03B4B5: mov dword ptr [ebp - 0xc], ecx */ 3931 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03B4C0; /* 0x2B03B4B8: je 0x2b03b4c0 */ 3932 L_2B03B4BA: 3933 edi = MEM32(0x2B0EE99C); /* 0x2B03B4BA: mov edi, dword ptr [0x2b0ee99c] */ 3934 L_2B03B4C0: 3935 eax = MEM32(edi); /* 0x2B03B4C0: mov eax, dword ptr [edi] */ 3936 /* cmp eax, edi */ /* 0x2B03B4C2: cmp eax, edi */ 3937 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3938 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3939 _flag_k = FK_CMP; 3940 MEM32(ebp + (-0x8)) = 0; /* 0x2B03B4C4: mov dword ptr [ebp - 8], 0 */ 3941 MEM8(ebp + (-0x1)) = (uint8_t)(1); /* 0x2B03B4CB: mov byte ptr [ebp - 1], 1 */ 3942 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B03B6CE; /* 0x2B03B4CF: je 0x2b03b6ce */ 3943 L_2B03B4D5: 3944 ecx = MEM32(eax + 0x8); /* 0x2B03B4D5: mov ecx, dword ptr [eax + 8] */ 3945 edx = MEM32(ecx + 0x10); /* 0x2B03B4D8: mov edx, dword ptr [ecx + 0x10] */ 3946 SET_LO8(ecx, MEM8(edx + 0x68)); /* 0x2B03B4DB: mov cl, byte ptr [edx + 0x68] */ 3947 /* test LO8(ecx), LO8(ecx) */ /* 0x2B03B4DE: test cl, cl */ 3948 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 3949 _cf = 0; 3950 _flag_k = FK_NARROW(FK_TEST, 24); 3951 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B4EE; /* 0x2B03B4E0: jne 0x2b03b4ee */ 3952 L_2B03B4E2: 3953 eax = MEM32(eax); /* 0x2B03B4E2: mov eax, dword ptr [eax] */ 3954 /* cmp eax, edi */ /* 0x2B03B4E4: cmp eax, edi */ 3955 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3956 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3957 _flag_k = FK_CMP; 3958 RECOMP_BACKEDGE(); 3959 if (CMP_NE(_flag_a, _flag_b)) goto L_2B03B4D5; /* 0x2B03B4E6: jne 0x2b03b4d5 */ 3960 L_2B03B4E8: 3961 edi = POP32_VAL(esp); /* 0x2B03B4E8: pop edi */ 3962 ebx = POP32_VAL(esp); /* 0x2B03B4E9: pop ebx */ 3963 esp = ebp; /* 0x2B03B4EA: mov esp, ebp */ 3964 ebp = POP32_VAL(esp); /* 0x2B03B4EC: pop ebp */ 3965 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03B4ED: ret */ 3966 L_2B03B4EE: 3967 ecx = MEM32(eax + 0x8); /* 0x2B03B4EE: mov ecx, dword ptr [eax + 8] */ 3968 MEM32(ebp + (-0x8)) = ecx; /* 0x2B03B4F1: mov dword ptr [ebp - 8], ecx */ 3969 edx = MEM32(eax + 0x8); /* 0x2B03B4F4: mov edx, dword ptr [eax + 8] */ 3970 ecx = MEM32(edx + 0x10); /* 0x2B03B4F7: mov ecx, dword ptr [edx + 0x10] */ 3971 ebx = MEM32(ecx + 0x60); /* 0x2B03B4FA: mov ebx, dword ptr [ecx + 0x60] */ 3972 MEM8(ecx + 0x68) = (uint8_t)(0); /* 0x2B03B4FD: mov byte ptr [ecx + 0x68], 0 */ 3973 ecx = MEM32(eax + 0x4); /* 0x2B03B501: mov ecx, dword ptr [eax + 4] */ 3974 edx = MEM32(eax); /* 0x2B03B504: mov edx, dword ptr [eax] */ 3975 MEM32(ecx) = edx; /* 0x2B03B506: mov dword ptr [ecx], edx */ 3976 ecx = MEM32(eax); /* 0x2B03B508: mov ecx, dword ptr [eax] */ 3977 edx = MEM32(eax + 0x4); /* 0x2B03B50A: mov edx, dword ptr [eax + 4] */ 3978 PUSH32(esp, eax); /* 0x2B03B50D: push eax */ 3979 MEM32(ecx + 0x4) = edx; /* 0x2B03B50E: mov dword ptr [ecx + 4], edx */ 3980 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B03B511: call 0x2b0ab1ba */ /* not lifted */ 3981 RECOMP_FLAGS_IN(); 3982 ecx = MEM32(0x2B0EE9B0); /* 0x2B03B516: mov ecx, dword ptr [0x2b0ee9b0] */ 3983 eax = MEM32(ebp + (-0x8)); /* 0x2B03B51C: mov eax, dword ptr [ebp - 8] */ 3984 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3985 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3986 esp = esp + 4; /* 0x2B03B51F: add esp, 4 */ 3987 _flag_k = FK_ADD; 3988 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3989 ecx = ecx - 1; /* 0x2B03B522: dec ecx */ 3990 _flag_k = FK_DEC; 3991 /* test eax, eax */ /* 0x2B03B523: test eax, eax */ 3992 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3993 _cf = 0; 3994 _flag_k = FK_TEST; 3995 MEM32(0x2B0EE9B0) = ecx; /* 0x2B03B525: mov dword ptr [0x2b0ee9b0], ecx */ 3996 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03B6CE; /* 0x2B03B52B: je 0x2b03b6ce */ 3997 L_2B03B531: 3998 ecx = MEM32(0x2B0EE9C8); /* 0x2B03B531: mov ecx, dword ptr [0x2b0ee9c8] */ 3999 /* test ecx, ecx */ /* 0x2B03B537: test ecx, ecx */ 4000 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4001 _cf = 0; 4002 _flag_k = FK_TEST; 4003 edx = MEM32(0x2B0EE9AC); /* 0x2B03B539: mov edx, dword ptr [0x2b0ee9ac] */ 4004 PUSH32(esp, esi); /* 0x2B03B53F: push esi */ 4005 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B546; /* 0x2B03B540: jne 0x2b03b546 */ 4006 L_2B03B542: 4007 esi = MEM32(edx); /* 0x2B03B542: mov esi, dword ptr [edx] */ 4008 goto L_2B03B54D; /* 0x2B03B544: jmp 0x2b03b54d */ 4009 L_2B03B546: 4010 eax = MEM32(0x2B0EE99C); /* 0x2B03B546: mov eax, dword ptr [0x2b0ee99c] */ 4011 esi = MEM32(eax); /* 0x2B03B54B: mov esi, dword ptr [eax] */ 4012 L_2B03B54D: 4013 /* cmp esi, edi */ /* 0x2B03B54D: cmp esi, edi */ 4014 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4015 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4016 _flag_k = FK_CMP; 4017 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B03B573; /* 0x2B03B54F: je 0x2b03b573 */ 4018 L_2B03B551: 4019 eax = MEM32(esi + 0x8); /* 0x2B03B551: mov eax, dword ptr [esi + 8] */ 4020 eax = MEM32(eax + 0x8); /* 0x2B03B554: mov eax, dword ptr [eax + 8] */ 4021 /* cmp eax, ebx */ /* 0x2B03B557: cmp eax, ebx */ 4022 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4023 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4024 _flag_k = FK_CMP; 4025 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B03B58F; /* 0x2B03B559: je 0x2b03b58f */ 4026 L_2B03B55B: 4027 /* cmp MEM8(ebp + (-0x1)), 0 */ /* 0x2B03B55B: cmp byte ptr [ebp - 1], 0 */ 4028 _flag_a = (uint32_t)(MEM8(ebp + (-0x1))) << 24; _flag_b = (uint32_t)(0) << 24; 4029 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4030 _flag_k = FK_NARROW(FK_CMP, 24); 4031 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B03B56D; /* 0x2B03B55F: je 0x2b03b56d */ 4032 L_2B03B561: 4033 /* cmp ebx, eax */ /* 0x2B03B561: cmp ebx, eax */ 4034 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 4035 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4036 _flag_k = FK_CMP; 4037 if (CMP_L(_flag_a, _flag_b)) goto L_2B03B636; /* 0x2B03B563: jl 0x2b03b636 */ 4038 L_2B03B569: 4039 MEM8(ebp + (-0x1)) = (uint8_t)(0); /* 0x2B03B569: mov byte ptr [ebp - 1], 0 */ 4040 L_2B03B56D: 4041 esi = MEM32(esi); /* 0x2B03B56D: mov esi, dword ptr [esi] */ 4042 /* cmp esi, edi */ /* 0x2B03B56F: cmp esi, edi */ 4043 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4044 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4045 _flag_k = FK_CMP; 4046 RECOMP_BACKEDGE(); 4047 if (CMP_NE(_flag_a, _flag_b)) goto L_2B03B551; /* 0x2B03B571: jne 0x2b03b551 */ 4048 L_2B03B573: 4049 /* test ecx, ecx */ /* 0x2B03B573: test ecx, ecx */ 4050 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4051 _cf = 0; 4052 _flag_k = FK_TEST; 4053 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B6B2; /* 0x2B03B575: jne 0x2b03b6b2 */ 4054 L_2B03B57B: 4055 eax = MEM32(edi + 0x4); /* 0x2B03B57B: mov eax, dword ptr [edi + 4] */ 4056 PUSH32(esp, eax); /* 0x2B03B57E: push eax */ 4057 PUSH32(esp, edi); /* 0x2B03B57F: push edi */ 4058 ecx = 0x2B0EE9A8u; /* 0x2B03B580: mov ecx, 0x2b0ee9a8 */ 4059 RECOMP_ICALL(0x2B03BC90u); /* 0x2B03B585: call 0x2b03bc90 */ /* not lifted */ 4060 RECOMP_FLAGS_IN(); 4061 MEM32(edi + 0x4) = eax; /* 0x2B03B58A: mov dword ptr [edi + 4], eax */ 4062 goto L_2B03B5B8; /* 0x2B03B58D: jmp 0x2b03b5b8 */ 4063 L_2B03B58F: 4064 /* test ecx, ecx */ /* 0x2B03B58F: test ecx, ecx */ 4065 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4066 _cf = 0; 4067 _flag_k = FK_TEST; 4068 edi = MEM32(esi + 0x4); /* 0x2B03B591: mov edi, dword ptr [esi + 4] */ 4069 PUSH32(esp, 0xCu); /* 0x2B03B594: push 0xc */ 4070 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B5E7; /* 0x2B03B596: jne 0x2b03b5e7 */ 4071 L_2B03B598: 4072 RECOMP_ICALL(0x2B0AB212u); /* 0x2B03B598: call 0x2b0ab212 */ /* not lifted */ 4073 RECOMP_FLAGS_IN(); 4074 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4075 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4076 esp = esp + 4; /* 0x2B03B59D: add esp, 4 */ 4077 _flag_k = FK_ADD; 4078 /* test esi, esi */ /* 0x2B03B5A0: test esi, esi */ 4079 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4080 _cf = 0; 4081 _flag_k = FK_TEST; 4082 ecx = esi; /* 0x2B03B5A2: mov ecx, esi */ 4083 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B5A8; /* 0x2B03B5A4: jne 0x2b03b5a8 */ 4084 L_2B03B5A6: 4085 ecx = eax; /* 0x2B03B5A6: mov ecx, eax */ 4086 L_2B03B5A8: 4087 /* test edi, edi */ /* 0x2B03B5A8: test edi, edi */ 4088 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4089 _cf = 0; 4090 _flag_k = FK_TEST; 4091 MEM32(eax) = ecx; /* 0x2B03B5AA: mov dword ptr [eax], ecx */ 4092 ecx = edi; /* 0x2B03B5AC: mov ecx, edi */ 4093 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B5B2; /* 0x2B03B5AE: jne 0x2b03b5b2 */ 4094 L_2B03B5B0: 4095 ecx = eax; /* 0x2B03B5B0: mov ecx, eax */ 4096 L_2B03B5B2: 4097 MEM32(eax + 0x4) = ecx; /* 0x2B03B5B2: mov dword ptr [eax + 4], ecx */ 4098 MEM32(esi + 0x4) = eax; /* 0x2B03B5B5: mov dword ptr [esi + 4], eax */ 4099 L_2B03B5B8: 4100 ecx = MEM32(eax + 0x4); /* 0x2B03B5B8: mov ecx, dword ptr [eax + 4] */ 4101 edx = ebp + (-0x8); /* 0x2B03B5BB: lea edx, [ebp - 8] */ 4102 MEM32(ecx) = eax; /* 0x2B03B5BE: mov dword ptr [ecx], eax */ 4103 PUSH32(esp, edx); /* 0x2B03B5C0: push edx */ 4104 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 4105 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4106 eax = eax + 8; /* 0x2B03B5C1: add eax, 8 */ 4107 _flag_k = FK_ADD; 4108 PUSH32(esp, eax); /* 0x2B03B5C4: push eax */ 4109 RECOMP_ICALL(0x2B02AAE0u); /* 0x2B03B5C5: call 0x2b02aae0 */ /* not lifted */ 4110 RECOMP_FLAGS_IN(); 4111 eax = MEM32(0x2B0EE9B0); /* 0x2B03B5CA: mov eax, dword ptr [0x2b0ee9b0] */ 4112 ecx = MEM32(ebp + (-0xC)); /* 0x2B03B5CF: mov ecx, dword ptr [ebp - 0xc] */ 4113 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4114 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4115 esp = esp + 8; /* 0x2B03B5D2: add esp, 8 */ 4116 _flag_k = FK_ADD; 4117 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4118 eax = eax + 1; /* 0x2B03B5D5: inc eax */ 4119 _flag_k = FK_INC; 4120 MEM32(0x2B0EE9B0) = eax; /* 0x2B03B5D6: mov dword ptr [0x2b0ee9b0], eax */ 4121 RECOMP_ICALL(0x2B03B110u); /* 0x2B03B5DB: call 0x2b03b110 */ /* not lifted */ 4122 RECOMP_FLAGS_IN(); 4123 esi = POP32_VAL(esp); /* 0x2B03B5E0: pop esi */ 4124 edi = POP32_VAL(esp); /* 0x2B03B5E1: pop edi */ 4125 ebx = POP32_VAL(esp); /* 0x2B03B5E2: pop ebx */ 4126 esp = ebp; /* 0x2B03B5E3: mov esp, ebp */ 4127 ebp = POP32_VAL(esp); /* 0x2B03B5E5: pop ebp */ 4128 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03B5E6: ret */ 4129 L_2B03B5E7: 4130 RECOMP_ICALL(0x2B0AB212u); /* 0x2B03B5E7: call 0x2b0ab212 */ /* not lifted */ 4131 RECOMP_FLAGS_IN(); 4132 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4133 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4134 esp = esp + 4; /* 0x2B03B5EC: add esp, 4 */ 4135 _flag_k = FK_ADD; 4136 /* test esi, esi */ /* 0x2B03B5EF: test esi, esi */ 4137 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4138 _cf = 0; 4139 _flag_k = FK_TEST; 4140 ecx = esi; /* 0x2B03B5F1: mov ecx, esi */ 4141 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B5F7; /* 0x2B03B5F3: jne 0x2b03b5f7 */ 4142 L_2B03B5F5: 4143 ecx = eax; /* 0x2B03B5F5: mov ecx, eax */ 4144 L_2B03B5F7: 4145 /* test edi, edi */ /* 0x2B03B5F7: test edi, edi */ 4146 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4147 _cf = 0; 4148 _flag_k = FK_TEST; 4149 MEM32(eax) = ecx; /* 0x2B03B5F9: mov dword ptr [eax], ecx */ 4150 ecx = edi; /* 0x2B03B5FB: mov ecx, edi */ 4151 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B601; /* 0x2B03B5FD: jne 0x2b03b601 */ 4152 L_2B03B5FF: 4153 ecx = eax; /* 0x2B03B5FF: mov ecx, eax */ 4154 L_2B03B601: 4155 MEM32(eax + 0x4) = ecx; /* 0x2B03B601: mov dword ptr [eax + 4], ecx */ 4156 MEM32(esi + 0x4) = eax; /* 0x2B03B604: mov dword ptr [esi + 4], eax */ 4157 ecx = MEM32(eax + 0x4); /* 0x2B03B607: mov ecx, dword ptr [eax + 4] */ 4158 edx = ebp + (-0x8); /* 0x2B03B60A: lea edx, [ebp - 8] */ 4159 MEM32(ecx) = eax; /* 0x2B03B60D: mov dword ptr [ecx], eax */ 4160 PUSH32(esp, edx); /* 0x2B03B60F: push edx */ 4161 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 4162 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4163 eax = eax + 8; /* 0x2B03B610: add eax, 8 */ 4164 _flag_k = FK_ADD; 4165 PUSH32(esp, eax); /* 0x2B03B613: push eax */ 4166 RECOMP_ICALL(0x2B02AAE0u); /* 0x2B03B614: call 0x2b02aae0 */ /* not lifted */ 4167 RECOMP_FLAGS_IN(); 4168 eax = MEM32(0x2B0EE9A0); /* 0x2B03B619: mov eax, dword ptr [0x2b0ee9a0] */ 4169 ecx = MEM32(ebp + (-0xC)); /* 0x2B03B61E: mov ecx, dword ptr [ebp - 0xc] */ 4170 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4171 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4172 esp = esp + 8; /* 0x2B03B621: add esp, 8 */ 4173 _flag_k = FK_ADD; 4174 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4175 eax = eax + 1; /* 0x2B03B624: inc eax */ 4176 _flag_k = FK_INC; 4177 MEM32(0x2B0EE9A0) = eax; /* 0x2B03B625: mov dword ptr [0x2b0ee9a0], eax */ 4178 RECOMP_ICALL(0x2B03B110u); /* 0x2B03B62A: call 0x2b03b110 */ /* not lifted */ 4179 RECOMP_FLAGS_IN(); 4180 esi = POP32_VAL(esp); /* 0x2B03B62F: pop esi */ 4181 edi = POP32_VAL(esp); /* 0x2B03B630: pop edi */ 4182 ebx = POP32_VAL(esp); /* 0x2B03B631: pop ebx */ 4183 esp = ebp; /* 0x2B03B632: mov esp, ebp */ 4184 ebp = POP32_VAL(esp); /* 0x2B03B634: pop ebp */ 4185 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03B635: ret */ 4186 L_2B03B636: 4187 /* test ecx, ecx */ /* 0x2B03B636: test ecx, ecx */ 4188 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4189 _cf = 0; 4190 _flag_k = FK_TEST; 4191 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B65E; /* 0x2B03B638: jne 0x2b03b65e */ 4192 L_2B03B63A: 4193 eax = MEM32(edx); /* 0x2B03B63A: mov eax, dword ptr [edx] */ 4194 ecx = ebp + (-0x8); /* 0x2B03B63C: lea ecx, [ebp - 8] */ 4195 PUSH32(esp, ecx); /* 0x2B03B63F: push ecx */ 4196 PUSH32(esp, eax); /* 0x2B03B640: push eax */ 4197 edx = ebp + (-0x10); /* 0x2B03B641: lea edx, [ebp - 0x10] */ 4198 PUSH32(esp, edx); /* 0x2B03B644: push edx */ 4199 ecx = 0x2B0EE9A8u; /* 0x2B03B645: mov ecx, 0x2b0ee9a8 */ 4200 RECOMP_ICALL(0x2B03BBF0u); /* 0x2B03B64A: call 0x2b03bbf0 */ /* not lifted */ 4201 RECOMP_FLAGS_IN(); 4202 ecx = MEM32(ebp + (-0xC)); /* 0x2B03B64F: mov ecx, dword ptr [ebp - 0xc] */ 4203 RECOMP_ICALL(0x2B03B110u); /* 0x2B03B652: call 0x2b03b110 */ /* not lifted */ 4204 RECOMP_FLAGS_IN(); 4205 esi = POP32_VAL(esp); /* 0x2B03B657: pop esi */ 4206 edi = POP32_VAL(esp); /* 0x2B03B658: pop edi */ 4207 ebx = POP32_VAL(esp); /* 0x2B03B659: pop ebx */ 4208 esp = ebp; /* 0x2B03B65A: mov esp, ebp */ 4209 ebp = POP32_VAL(esp); /* 0x2B03B65C: pop ebp */ 4210 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03B65D: ret */ 4211 L_2B03B65E: 4212 edi = MEM32(esi + 0x4); /* 0x2B03B65E: mov edi, dword ptr [esi + 4] */ 4213 PUSH32(esp, 0xCu); /* 0x2B03B661: push 0xc */ 4214 RECOMP_ICALL(0x2B0AB212u); /* 0x2B03B663: call 0x2b0ab212 */ /* not lifted */ 4215 RECOMP_FLAGS_IN(); 4216 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4217 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4218 esp = esp + 4; /* 0x2B03B668: add esp, 4 */ 4219 _flag_k = FK_ADD; 4220 /* test esi, esi */ /* 0x2B03B66B: test esi, esi */ 4221 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4222 _cf = 0; 4223 _flag_k = FK_TEST; 4224 ecx = esi; /* 0x2B03B66D: mov ecx, esi */ 4225 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B673; /* 0x2B03B66F: jne 0x2b03b673 */ 4226 L_2B03B671: 4227 ecx = eax; /* 0x2B03B671: mov ecx, eax */ 4228 L_2B03B673: 4229 /* test edi, edi */ /* 0x2B03B673: test edi, edi */ 4230 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4231 _cf = 0; 4232 _flag_k = FK_TEST; 4233 MEM32(eax) = ecx; /* 0x2B03B675: mov dword ptr [eax], ecx */ 4234 ecx = edi; /* 0x2B03B677: mov ecx, edi */ 4235 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B67D; /* 0x2B03B679: jne 0x2b03b67d */ 4236 L_2B03B67B: 4237 ecx = eax; /* 0x2B03B67B: mov ecx, eax */ 4238 L_2B03B67D: 4239 MEM32(eax + 0x4) = ecx; /* 0x2B03B67D: mov dword ptr [eax + 4], ecx */ 4240 MEM32(esi + 0x4) = eax; /* 0x2B03B680: mov dword ptr [esi + 4], eax */ 4241 ecx = MEM32(eax + 0x4); /* 0x2B03B683: mov ecx, dword ptr [eax + 4] */ 4242 edx = ebp + (-0x8); /* 0x2B03B686: lea edx, [ebp - 8] */ 4243 MEM32(ecx) = eax; /* 0x2B03B689: mov dword ptr [ecx], eax */ 4244 PUSH32(esp, edx); /* 0x2B03B68B: push edx */ 4245 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 4246 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4247 eax = eax + 8; /* 0x2B03B68C: add eax, 8 */ 4248 _flag_k = FK_ADD; 4249 PUSH32(esp, eax); /* 0x2B03B68F: push eax */ 4250 RECOMP_ICALL(0x2B02AAE0u); /* 0x2B03B690: call 0x2b02aae0 */ /* not lifted */ 4251 RECOMP_FLAGS_IN(); 4252 eax = MEM32(0x2B0EE9A0); /* 0x2B03B695: mov eax, dword ptr [0x2b0ee9a0] */ 4253 ecx = MEM32(ebp + (-0xC)); /* 0x2B03B69A: mov ecx, dword ptr [ebp - 0xc] */ 4254 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4255 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4256 esp = esp + 8; /* 0x2B03B69D: add esp, 8 */ 4257 _flag_k = FK_ADD; 4258 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4259 eax = eax + 1; /* 0x2B03B6A0: inc eax */ 4260 _flag_k = FK_INC; 4261 MEM32(0x2B0EE9A0) = eax; /* 0x2B03B6A1: mov dword ptr [0x2b0ee9a0], eax */ 4262 RECOMP_ICALL(0x2B03B110u); /* 0x2B03B6A6: call 0x2b03b110 */ /* not lifted */ 4263 RECOMP_FLAGS_IN(); 4264 esi = POP32_VAL(esp); /* 0x2B03B6AB: pop esi */ 4265 edi = POP32_VAL(esp); /* 0x2B03B6AC: pop edi */ 4266 ebx = POP32_VAL(esp); /* 0x2B03B6AD: pop ebx */ 4267 esp = ebp; /* 0x2B03B6AE: mov esp, ebp */ 4268 ebp = POP32_VAL(esp); /* 0x2B03B6B0: pop ebp */ 4269 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03B6B1: ret */ 4270 L_2B03B6B2: 4271 eax = ebp + (-0x8); /* 0x2B03B6B2: lea eax, [ebp - 8] */ 4272 PUSH32(esp, eax); /* 0x2B03B6B5: push eax */ 4273 PUSH32(esp, edi); /* 0x2B03B6B6: push edi */ 4274 ecx = ebp + (-0x10); /* 0x2B03B6B7: lea ecx, [ebp - 0x10] */ 4275 PUSH32(esp, ecx); /* 0x2B03B6BA: push ecx */ 4276 ecx = 0x2B0EE998u; /* 0x2B03B6BB: mov ecx, 0x2b0ee998 */ 4277 RECOMP_ICALL(0x2B03BBF0u); /* 0x2B03B6C0: call 0x2b03bbf0 */ /* not lifted */ 4278 RECOMP_FLAGS_IN(); 4279 ecx = MEM32(ebp + (-0xC)); /* 0x2B03B6C5: mov ecx, dword ptr [ebp - 0xc] */ 4280 RECOMP_ICALL(0x2B03B110u); /* 0x2B03B6C8: call 0x2b03b110 */ /* not lifted */ 4281 RECOMP_FLAGS_IN(); 4282 esi = POP32_VAL(esp); /* 0x2B03B6CD: pop esi */ 4283 L_2B03B6CE: 4284 edi = POP32_VAL(esp); /* 0x2B03B6CE: pop edi */ 4285 ebx = POP32_VAL(esp); /* 0x2B03B6CF: pop ebx */ 4286 esp = ebp; /* 0x2B03B6D0: mov esp, ebp */ 4287 ebp = POP32_VAL(esp); /* 0x2B03B6D2: pop ebp */ 4288 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03B6D3: ret */ 4289 RECOMP_REGS_OUT(); 4290 } 4291 4292 void sub_2B03AA20(void) { 4293 int _fpu_cmp = 0; 4294 uint32_t _cf = 0; 4295 int _df = 1; 4296 uint32_t _flag_k = FK_NONE; 4297 uint32_t _flag_a = 0, _flag_b = 0; 4298 uint32_t _itail_tgt = 0; 4299 RECOMP_REGS_LOCALS 4300 RECOMP_ENTER(0x2B03AA20u); 4301 4302 L_2B03AA20: 4303 ecx = MEM32(0x2B0EE9B8); /* 0x2B03AA20: mov ecx, dword ptr [0x2b0ee9b8] */ 4304 /* test ecx, ecx */ /* 0x2B03AA26: test ecx, ecx */ 4305 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4306 _cf = 0; 4307 _flag_k = FK_TEST; 4308 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03AA2F; /* 0x2B03AA28: je 0x2b03aa2f */ 4309 L_2B03AA2A: 4310 goto L_2B03B830; /* 0x2B03AA2A: jmp 0x2b03b830 */ 4311 L_2B03AA2F: 4312 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03AA2F: ret */ 4313 L_2B03B830: 4314 PUSH32(esp, esi); /* 0x2B03B830: push esi */ 4315 PUSH32(esp, edi); /* 0x2B03B831: push edi */ 4316 edi = MEM32(0x2B0EE9AC); /* 0x2B03B832: mov edi, dword ptr [0x2b0ee9ac] */ 4317 MEM8(0x2B0EE981) = (uint8_t)(0); /* 0x2B03B838: mov byte ptr [0x2b0ee981], 0 */ 4318 esi = MEM32(edi); /* 0x2B03B83F: mov esi, dword ptr [edi] */ 4319 /* cmp esi, edi */ /* 0x2B03B841: cmp esi, edi */ 4320 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4321 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4322 _flag_k = FK_CMP; 4323 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B03B853; /* 0x2B03B843: je 0x2b03b853 */ 4324 L_2B03B845: 4325 ecx = MEM32(esi + 0x8); /* 0x2B03B845: mov ecx, dword ptr [esi + 8] */ 4326 eax = MEM32(ecx); /* 0x2B03B848: mov eax, dword ptr [ecx] */ 4327 RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x2B03B84A: call dword ptr [eax + 0x14] */ 4328 RECOMP_FLAGS_IN(); 4329 esi = MEM32(esi); /* 0x2B03B84D: mov esi, dword ptr [esi] */ 4330 /* cmp esi, edi */ /* 0x2B03B84F: cmp esi, edi */ 4331 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4332 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4333 _flag_k = FK_CMP; 4334 RECOMP_BACKEDGE(); 4335 if (CMP_NE(_flag_a, _flag_b)) goto L_2B03B845; /* 0x2B03B851: jne 0x2b03b845 */ 4336 L_2B03B853: 4337 edi = MEM32(0x2B0EE99C); /* 0x2B03B853: mov edi, dword ptr [0x2b0ee99c] */ 4338 esi = MEM32(edi); /* 0x2B03B859: mov esi, dword ptr [edi] */ 4339 /* cmp esi, edi */ /* 0x2B03B85B: cmp esi, edi */ 4340 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4341 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4342 _flag_k = FK_CMP; 4343 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B03B86D; /* 0x2B03B85D: je 0x2b03b86d */ 4344 L_2B03B85F: 4345 ecx = MEM32(esi + 0x8); /* 0x2B03B85F: mov ecx, dword ptr [esi + 8] */ 4346 edx = MEM32(ecx); /* 0x2B03B862: mov edx, dword ptr [ecx] */ 4347 RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x2B03B864: call dword ptr [edx + 0x14] */ 4348 RECOMP_FLAGS_IN(); 4349 esi = MEM32(esi); /* 0x2B03B867: mov esi, dword ptr [esi] */ 4350 /* cmp esi, edi */ /* 0x2B03B869: cmp esi, edi */ 4351 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4352 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4353 _flag_k = FK_CMP; 4354 RECOMP_BACKEDGE(); 4355 if (CMP_NE(_flag_a, _flag_b)) goto L_2B03B85F; /* 0x2B03B86B: jne 0x2b03b85f */ 4356 L_2B03B86D: 4357 edi = POP32_VAL(esp); /* 0x2B03B86D: pop edi */ 4358 esi = POP32_VAL(esp); /* 0x2B03B86E: pop esi */ 4359 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03B86F: ret */ 4360 RECOMP_REGS_OUT(); 4361 } 4362 4363 void sub_2B03AA30(void) { 4364 int _fpu_cmp = 0; 4365 uint32_t _cf = 0; 4366 int _df = 1; 4367 uint32_t _flag_k = FK_NONE; 4368 uint32_t _flag_a = 0, _flag_b = 0; 4369 uint32_t _itail_tgt = 0; 4370 RECOMP_REGS_LOCALS 4371 RECOMP_ENTER(0x2B03AA30u); 4372 4373 L_2B03AA30: 4374 ecx = MEM32(0x2B0EE9B8); /* 0x2B03AA30: mov ecx, dword ptr [0x2b0ee9b8] */ 4375 L_2B03AA36: 4376 /* test ecx, ecx */ /* 0x2B03AA36: test ecx, ecx */ 4377 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4378 _cf = 0; 4379 _flag_k = FK_TEST; 4380 L_2B03AA38: 4381 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2B03AA3F; /* 0x2B03AA38: je 0x2b03aa3f */ 4382 L_2B03AA3A: 4383 goto L_2B03B7A0; /* 0x2B03AA3A: jmp 0x2b03b7a0 */ 4384 L_2B03AA3F: 4385 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03AA3F: ret */ 4386 L_2B03B7A0: 4387 PUSH32(esp, esi); /* 0x2B03B7A0: push esi */ 4388 L_2B03B7A1: 4389 PUSH32(esp, edi); /* 0x2B03B7A1: push edi */ 4390 L_2B03B7A2: 4391 edi = MEM32(0x2B0EE9AC); /* 0x2B03B7A2: mov edi, dword ptr [0x2b0ee9ac] */ 4392 L_2B03B7A8: 4393 MEM8(0x2B0EE981) = (uint8_t)(1); /* 0x2B03B7A8: mov byte ptr [0x2b0ee981], 1 */ 4394 L_2B03B7AF: 4395 esi = MEM32(edi); /* 0x2B03B7AF: mov esi, dword ptr [edi] */ 4396 L_2B03B7B1: 4397 /* cmp esi, edi */ /* 0x2B03B7B1: cmp esi, edi */ 4398 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4399 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4400 _flag_k = FK_CMP; 4401 L_2B03B7B3: 4402 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2B03B7C3; /* 0x2B03B7B3: je 0x2b03b7c3 */ 4403 L_2B03B7B5: 4404 ecx = MEM32(esi + 0x8); /* 0x2B03B7B5: mov ecx, dword ptr [esi + 8] */ 4405 L_2B03B7B8: 4406 eax = MEM32(ecx); /* 0x2B03B7B8: mov eax, dword ptr [ecx] */ 4407 L_2B03B7BA: 4408 RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x2B03B7BA: call dword ptr [eax + 0x10] */ 4409 RECOMP_FLAGS_IN(); 4410 L_2B03B7BD: 4411 esi = MEM32(esi); /* 0x2B03B7BD: mov esi, dword ptr [esi] */ 4412 L_2B03B7BF: 4413 /* cmp esi, edi */ /* 0x2B03B7BF: cmp esi, edi */ 4414 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4415 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4416 _flag_k = FK_CMP; 4417 L_2B03B7C1: 4418 RECOMP_BACKEDGE(); 4419 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_2B03B7B5; /* 0x2B03B7C1: jne 0x2b03b7b5 */ 4420 L_2B03B7C3: 4421 edi = MEM32(0x2B0EE99C); /* 0x2B03B7C3: mov edi, dword ptr [0x2b0ee99c] */ 4422 L_2B03B7C9: 4423 esi = MEM32(edi); /* 0x2B03B7C9: mov esi, dword ptr [edi] */ 4424 L_2B03B7CB: 4425 /* cmp esi, edi */ /* 0x2B03B7CB: cmp esi, edi */ 4426 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4427 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4428 _flag_k = FK_CMP; 4429 L_2B03B7CD: 4430 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2B03B7DD; /* 0x2B03B7CD: je 0x2b03b7dd */ 4431 L_2B03B7CF: 4432 ecx = MEM32(esi + 0x8); /* 0x2B03B7CF: mov ecx, dword ptr [esi + 8] */ 4433 L_2B03B7D2: 4434 edx = MEM32(ecx); /* 0x2B03B7D2: mov edx, dword ptr [ecx] */ 4435 L_2B03B7D4: 4436 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x2B03B7D4: call dword ptr [edx + 0x10] */ 4437 RECOMP_FLAGS_IN(); 4438 L_2B03B7D7: 4439 esi = MEM32(esi); /* 0x2B03B7D7: mov esi, dword ptr [esi] */ 4440 L_2B03B7D9: 4441 /* cmp esi, edi */ /* 0x2B03B7D9: cmp esi, edi */ 4442 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4443 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4444 _flag_k = FK_CMP; 4445 L_2B03B7DB: 4446 RECOMP_BACKEDGE(); 4447 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_2B03B7CF; /* 0x2B03B7DB: jne 0x2b03b7cf */ 4448 L_2B03B7DD: 4449 eax = MEM32(0x2B0B6048); /* 0x2B03B7DD: mov eax, dword ptr [0x2b0b6048] */ 4450 L_2B03B7E2: 4451 ecx = MEM32(eax); /* 0x2B03B7E2: mov ecx, dword ptr [eax] */ 4452 L_2B03B7E4: 4453 PUSH32(esp, 1); /* 0x2B03B7E4: push 1 */ 4454 L_2B03B7E6: 4455 PUSH32(esp, 0x2B0E6DDCu); /* 0x2B03B7E6: push 0x2b0e6ddc */ 4456 L_2B03B7EB: 4457 RECOMP_ICALL(MEM32(0x2B0B602C)); /* 0x2B03B7EB: call dword ptr [0x2b0b602c] */ 4458 RECOMP_FLAGS_IN(); 4459 L_2B03B7F1: 4460 /* test eax, eax */ /* 0x2B03B7F1: test eax, eax */ 4461 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4462 _cf = 0; 4463 _flag_k = FK_TEST; 4464 L_2B03B7F3: 4465 edi = POP32_VAL(esp); /* 0x2B03B7F3: pop edi */ 4466 L_2B03B7F4: 4467 esi = POP32_VAL(esp); /* 0x2B03B7F4: pop esi */ 4468 L_2B03B7F5: 4469 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2B03B813; /* 0x2B03B7F5: je 0x2b03b813 */ 4470 L_2B03B7F7: 4471 PUSH32(esp, 1); /* 0x2B03B7F7: push 1 */ 4472 L_2B03B7F9: 4473 RECOMP_ICALL(MEM32(0x2B0B5AAC)); /* 0x2B03B7F9: call dword ptr [0x2b0b5aac] */ 4474 RECOMP_FLAGS_IN(); 4475 L_2B03B7FF: 4476 ecx = eax; /* 0x2B03B7FF: mov ecx, eax */ 4477 L_2B03B801: 4478 RECOMP_ICALL(MEM32(0x2B0B5AA8)); /* 0x2B03B801: call dword ptr [0x2b0b5aa8] */ 4479 RECOMP_FLAGS_IN(); 4480 L_2B03B807: 4481 /* test eax, eax */ /* 0x2B03B807: test eax, eax */ 4482 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4483 _cf = 0; 4484 _flag_k = FK_TEST; 4485 L_2B03B809: 4486 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2B03B82F; /* 0x2B03B809: je 0x2b03b82f */ 4487 L_2B03B80B: 4488 ecx = eax; /* 0x2B03B80B: mov ecx, eax */ 4489 L_2B03B80D: 4490 { _itail_tgt = (uint32_t)(MEM32(0x2B0B5AA4)); goto _ljump; } 4491 L_2B03B813: 4492 PUSH32(esp, 2); /* 0x2B03B813: push 2 */ 4493 L_2B03B815: 4494 RECOMP_ICALL(MEM32(0x2B0B5AAC)); /* 0x2B03B815: call dword ptr [0x2b0b5aac] */ 4495 RECOMP_FLAGS_IN(); 4496 L_2B03B81B: 4497 ecx = eax; /* 0x2B03B81B: mov ecx, eax */ 4498 L_2B03B81D: 4499 RECOMP_ICALL(MEM32(0x2B0B5AA8)); /* 0x2B03B81D: call dword ptr [0x2b0b5aa8] */ 4500 RECOMP_FLAGS_IN(); 4501 L_2B03B823: 4502 /* test eax, eax */ /* 0x2B03B823: test eax, eax */ 4503 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4504 _cf = 0; 4505 _flag_k = FK_TEST; 4506 L_2B03B825: 4507 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2B03B82F; /* 0x2B03B825: je 0x2b03b82f */ 4508 L_2B03B827: 4509 ecx = eax; /* 0x2B03B827: mov ecx, eax */ 4510 L_2B03B829: 4511 { _itail_tgt = (uint32_t)(MEM32(0x2B0B5AA4)); goto _ljump; } 4512 L_2B03B82F: 4513 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03B82F: ret */ 4514 _ljump: 4515 switch (_itail_tgt) { 4516 case 0x2B03AA30u: goto L_2B03AA30; 4517 case 0x2B03AA36u: goto L_2B03AA36; 4518 case 0x2B03AA38u: goto L_2B03AA38; 4519 case 0x2B03AA3Au: goto L_2B03AA3A; 4520 case 0x2B03AA3Fu: goto L_2B03AA3F; 4521 case 0x2B03B7A0u: goto L_2B03B7A0; 4522 case 0x2B03B7A1u: goto L_2B03B7A1; 4523 case 0x2B03B7A2u: goto L_2B03B7A2; 4524 case 0x2B03B7A8u: goto L_2B03B7A8; 4525 case 0x2B03B7AFu: goto L_2B03B7AF; 4526 case 0x2B03B7B1u: goto L_2B03B7B1; 4527 case 0x2B03B7B3u: goto L_2B03B7B3; 4528 case 0x2B03B7B5u: goto L_2B03B7B5; 4529 case 0x2B03B7B8u: goto L_2B03B7B8; 4530 case 0x2B03B7BAu: goto L_2B03B7BA; 4531 case 0x2B03B7BDu: goto L_2B03B7BD; 4532 case 0x2B03B7BFu: goto L_2B03B7BF; 4533 case 0x2B03B7C1u: goto L_2B03B7C1; 4534 case 0x2B03B7C3u: goto L_2B03B7C3; 4535 case 0x2B03B7C9u: goto L_2B03B7C9; 4536 case 0x2B03B7CBu: goto L_2B03B7CB; 4537 case 0x2B03B7CDu: goto L_2B03B7CD; 4538 case 0x2B03B7CFu: goto L_2B03B7CF; 4539 case 0x2B03B7D2u: goto L_2B03B7D2; 4540 case 0x2B03B7D4u: goto L_2B03B7D4; 4541 case 0x2B03B7D7u: goto L_2B03B7D7; 4542 case 0x2B03B7D9u: goto L_2B03B7D9; 4543 case 0x2B03B7DBu: goto L_2B03B7DB; 4544 case 0x2B03B7DDu: goto L_2B03B7DD; 4545 case 0x2B03B7E2u: goto L_2B03B7E2; 4546 case 0x2B03B7E4u: goto L_2B03B7E4; 4547 case 0x2B03B7E6u: goto L_2B03B7E6; 4548 case 0x2B03B7EBu: goto L_2B03B7EB; 4549 case 0x2B03B7F1u: goto L_2B03B7F1; 4550 case 0x2B03B7F3u: goto L_2B03B7F3; 4551 case 0x2B03B7F4u: goto L_2B03B7F4; 4552 case 0x2B03B7F5u: goto L_2B03B7F5; 4553 case 0x2B03B7F7u: goto L_2B03B7F7; 4554 case 0x2B03B7F9u: goto L_2B03B7F9; 4555 case 0x2B03B7FFu: goto L_2B03B7FF; 4556 case 0x2B03B801u: goto L_2B03B801; 4557 case 0x2B03B807u: goto L_2B03B807; 4558 case 0x2B03B809u: goto L_2B03B809; 4559 case 0x2B03B80Bu: goto L_2B03B80B; 4560 case 0x2B03B80Du: goto L_2B03B80D; 4561 case 0x2B03B813u: goto L_2B03B813; 4562 case 0x2B03B815u: goto L_2B03B815; 4563 case 0x2B03B81Bu: goto L_2B03B81B; 4564 case 0x2B03B81Du: goto L_2B03B81D; 4565 case 0x2B03B823u: goto L_2B03B823; 4566 case 0x2B03B825u: goto L_2B03B825; 4567 case 0x2B03B827u: goto L_2B03B827; 4568 case 0x2B03B829u: goto L_2B03B829; 4569 case 0x2B03B82Fu: goto L_2B03B82F; 4570 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4571 } 4572 RECOMP_REGS_OUT(); 4573 } 4574 4575 void sub_2B03AA40(void) { 4576 int _fpu_cmp = 0; 4577 uint32_t _cf = 0; 4578 int _df = 1; 4579 uint32_t _flag_k = FK_NONE; 4580 uint32_t _flag_a = 0, _flag_b = 0; 4581 uint32_t _itail_tgt = 0; 4582 RECOMP_REGS_LOCALS 4583 RECOMP_ENTER(0x2B03AA40u); 4584 4585 L_2B03AA40: 4586 ecx = MEM32(0x2B0EE9B8); /* 0x2B03AA40: mov ecx, dword ptr [0x2b0ee9b8] */ 4587 /* test ecx, ecx */ /* 0x2B03AA46: test ecx, ecx */ 4588 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4589 _cf = 0; 4590 _flag_k = FK_TEST; 4591 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03AA4F; /* 0x2B03AA48: je 0x2b03aa4f */ 4592 L_2B03AA4A: 4593 goto L_2B03B870; /* 0x2B03AA4A: jmp 0x2b03b870 */ 4594 L_2B03AA4F: 4595 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03AA4F: ret */ 4596 L_2B03B870: 4597 eax = MEM32(0x2B0EE9C8); /* 0x2B03B870: mov eax, dword ptr [0x2b0ee9c8] */ 4598 /* test eax, eax */ /* 0x2B03B875: test eax, eax */ 4599 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4600 _cf = 0; 4601 _flag_k = FK_TEST; 4602 PUSH32(esp, ebx); /* 0x2B03B877: push ebx */ 4603 PUSH32(esp, esi); /* 0x2B03B878: push esi */ 4604 PUSH32(esp, edi); /* 0x2B03B879: push edi */ 4605 edi = MEM32(0x2B0EE9AC); /* 0x2B03B87A: mov edi, dword ptr [0x2b0ee9ac] */ 4606 ebx = ecx; /* 0x2B03B880: mov ebx, ecx */ 4607 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03B88A; /* 0x2B03B882: je 0x2b03b88a */ 4608 L_2B03B884: 4609 edi = MEM32(0x2B0EE99C); /* 0x2B03B884: mov edi, dword ptr [0x2b0ee99c] */ 4610 L_2B03B88A: 4611 esi = MEM32(edi); /* 0x2B03B88A: mov esi, dword ptr [edi] */ 4612 /* cmp esi, edi */ /* 0x2B03B88C: cmp esi, edi */ 4613 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4614 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4615 _flag_k = FK_CMP; 4616 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B03B89E; /* 0x2B03B88E: je 0x2b03b89e */ 4617 L_2B03B890: 4618 ecx = MEM32(esi + 0x8); /* 0x2B03B890: mov ecx, dword ptr [esi + 8] */ 4619 RECOMP_ICALL(0x2B03A490u); /* 0x2B03B893: call 0x2b03a490 */ /* not lifted */ 4620 RECOMP_FLAGS_IN(); 4621 esi = MEM32(esi); /* 0x2B03B898: mov esi, dword ptr [esi] */ 4622 /* cmp esi, edi */ /* 0x2B03B89A: cmp esi, edi */ 4623 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4624 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4625 _flag_k = FK_CMP; 4626 RECOMP_BACKEDGE(); 4627 if (CMP_NE(_flag_a, _flag_b)) goto L_2B03B890; /* 0x2B03B89C: jne 0x2b03b890 */ 4628 L_2B03B89E: 4629 ecx = ebx; /* 0x2B03B89E: mov ecx, ebx */ 4630 RECOMP_ICALL(0x2B03B110u); /* 0x2B03B8A0: call 0x2b03b110 */ /* not lifted */ 4631 RECOMP_FLAGS_IN(); 4632 edi = POP32_VAL(esp); /* 0x2B03B8A5: pop edi */ 4633 esi = POP32_VAL(esp); /* 0x2B03B8A6: pop esi */ 4634 ebx = POP32_VAL(esp); /* 0x2B03B8A7: pop ebx */ 4635 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03B8A8: ret */ 4636 RECOMP_REGS_OUT(); 4637 } 4638 4639 void sub_2B03AA50(void) { 4640 int _fpu_cmp = 0; 4641 uint32_t _cf = 0; 4642 int _df = 1; 4643 uint32_t _flag_k = FK_NONE; 4644 uint32_t _flag_a = 0, _flag_b = 0; 4645 uint32_t _itail_tgt = 0; 4646 RECOMP_REGS_LOCALS 4647 RECOMP_ENTER(0x2B03AA50u); 4648 4649 L_2B03AA50: 4650 ecx = MEM32(0x2B0EE9B8); /* 0x2B03AA50: mov ecx, dword ptr [0x2b0ee9b8] */ 4651 /* test ecx, ecx */ /* 0x2B03AA56: test ecx, ecx */ 4652 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4653 _cf = 0; 4654 _flag_k = FK_TEST; 4655 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03AA5F; /* 0x2B03AA58: je 0x2b03aa5f */ 4656 L_2B03AA5A: 4657 goto L_2B03B8B0; /* 0x2B03AA5A: jmp 0x2b03b8b0 */ 4658 L_2B03AA5F: 4659 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03AA5F: ret */ 4660 L_2B03B8B0: 4661 eax = MEM32(0x2B0EE9C8); /* 0x2B03B8B0: mov eax, dword ptr [0x2b0ee9c8] */ 4662 /* test eax, eax */ /* 0x2B03B8B5: test eax, eax */ 4663 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4664 _cf = 0; 4665 _flag_k = FK_TEST; 4666 PUSH32(esp, ebx); /* 0x2B03B8B7: push ebx */ 4667 PUSH32(esp, esi); /* 0x2B03B8B8: push esi */ 4668 PUSH32(esp, edi); /* 0x2B03B8B9: push edi */ 4669 edi = MEM32(0x2B0EE9AC); /* 0x2B03B8BA: mov edi, dword ptr [0x2b0ee9ac] */ 4670 ebx = ecx; /* 0x2B03B8C0: mov ebx, ecx */ 4671 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03B8CA; /* 0x2B03B8C2: je 0x2b03b8ca */ 4672 L_2B03B8C4: 4673 edi = MEM32(0x2B0EE99C); /* 0x2B03B8C4: mov edi, dword ptr [0x2b0ee99c] */ 4674 L_2B03B8CA: 4675 esi = MEM32(edi); /* 0x2B03B8CA: mov esi, dword ptr [edi] */ 4676 /* cmp esi, edi */ /* 0x2B03B8CC: cmp esi, edi */ 4677 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4678 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4679 _flag_k = FK_CMP; 4680 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B03B8DE; /* 0x2B03B8CE: je 0x2b03b8de */ 4681 L_2B03B8D0: 4682 ecx = MEM32(esi + 0x8); /* 0x2B03B8D0: mov ecx, dword ptr [esi + 8] */ 4683 RECOMP_ICALL(0x2B03A510u); /* 0x2B03B8D3: call 0x2b03a510 */ /* not lifted */ 4684 RECOMP_FLAGS_IN(); 4685 esi = MEM32(esi); /* 0x2B03B8D8: mov esi, dword ptr [esi] */ 4686 /* cmp esi, edi */ /* 0x2B03B8DA: cmp esi, edi */ 4687 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4688 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4689 _flag_k = FK_CMP; 4690 RECOMP_BACKEDGE(); 4691 if (CMP_NE(_flag_a, _flag_b)) goto L_2B03B8D0; /* 0x2B03B8DC: jne 0x2b03b8d0 */ 4692 L_2B03B8DE: 4693 ecx = ebx; /* 0x2B03B8DE: mov ecx, ebx */ 4694 RECOMP_ICALL(0x2B03B110u); /* 0x2B03B8E0: call 0x2b03b110 */ /* not lifted */ 4695 RECOMP_FLAGS_IN(); 4696 edi = POP32_VAL(esp); /* 0x2B03B8E5: pop edi */ 4697 esi = POP32_VAL(esp); /* 0x2B03B8E6: pop esi */ 4698 ebx = POP32_VAL(esp); /* 0x2B03B8E7: pop ebx */ 4699 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03B8E8: ret */ 4700 RECOMP_REGS_OUT(); 4701 } 4702 4703 void sub_2B03AA60(void) { 4704 int _fpu_cmp = 0; 4705 uint32_t _cf = 0; 4706 int _df = 1; 4707 uint32_t _flag_k = FK_NONE; 4708 uint32_t _flag_a = 0, _flag_b = 0; 4709 uint32_t _itail_tgt = 0; 4710 RECOMP_REGS_LOCALS 4711 RECOMP_ENTER(0x2B03AA60u); 4712 4713 L_2B03AA60: 4714 RECOMP_ICALL(MEM32(0x2B0B5B64)); /* 0x2B03AA60: call dword ptr [0x2b0b5b64] */ 4715 RECOMP_FLAGS_IN(); 4716 eax = MEM32(eax + 0x110); /* 0x2B03AA66: mov eax, dword ptr [eax + 0x110] */ 4717 ecx = MEM32(0x2B0EE9BC); /* 0x2B03AA6C: mov ecx, dword ptr [0x2b0ee9bc] */ 4718 eax = eax + eax * 4; /* 0x2B03AA72: lea eax, [eax + eax*4] */ 4719 eax = eax + eax * 4; /* 0x2B03AA75: lea eax, [eax + eax*4] */ 4720 edx = ecx + eax * 2; /* 0x2B03AA78: lea edx, [ecx + eax*2] */ 4721 ecx = MEM32(0x2B0EE9B8); /* 0x2B03AA7B: mov ecx, dword ptr [0x2b0ee9b8] */ 4722 PUSH32(esp, edx); /* 0x2B03AA81: push edx */ 4723 RECOMP_ICALL(0x2B03B9A0u); /* 0x2B03AA82: call 0x2b03b9a0 */ /* not lifted */ 4724 RECOMP_FLAGS_IN(); 4725 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03AA87: ret */ 4726 RECOMP_REGS_OUT(); 4727 } 4728 4729 void sub_2B03AA90(void) { 4730 int _fpu_cmp = 0; 4731 uint32_t _cf = 0; 4732 int _df = 1; 4733 uint32_t _flag_k = FK_NONE; 4734 uint32_t _flag_a = 0, _flag_b = 0; 4735 uint32_t _itail_tgt = 0; 4736 RECOMP_REGS_LOCALS 4737 RECOMP_ENTER(0x2B03AA90u); 4738 4739 L_2B03AA90: 4740 ecx = MEM32(0x2B0EE9B8); /* 0x2B03AA90: mov ecx, dword ptr [0x2b0ee9b8] */ 4741 /* test ecx, ecx */ /* 0x2B03AA96: test ecx, ecx */ 4742 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4743 _cf = 0; 4744 _flag_k = FK_TEST; 4745 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03AA9F; /* 0x2B03AA98: je 0x2b03aa9f */ 4746 L_2B03AA9A: 4747 goto L_2B03B8F0; /* 0x2B03AA9A: jmp 0x2b03b8f0 */ 4748 L_2B03AA9F: 4749 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03AA9F: ret */ 4750 L_2B03B8F0: 4751 eax = MEM32(0x2B0EE9C8); /* 0x2B03B8F0: mov eax, dword ptr [0x2b0ee9c8] */ 4752 PUSH32(esp, esi); /* 0x2B03B8F5: push esi */ 4753 /* test eax, eax */ /* 0x2B03B8F6: test eax, eax */ 4754 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4755 _cf = 0; 4756 _flag_k = FK_TEST; 4757 eax = MEM32(0x2B0EE9BC); /* 0x2B03B8F8: mov eax, dword ptr [0x2b0ee9bc] */ 4758 esi = ecx; /* 0x2B03B8FD: mov esi, ecx */ 4759 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B947; /* 0x2B03B8FF: jne 0x2b03b947 */ 4760 L_2B03B901: 4761 ecx = MEM32(0x2B0EE9C0); /* 0x2B03B901: mov ecx, dword ptr [0x2b0ee9c0] */ 4762 MEM32(0x2B0EE9BC) = ecx; /* 0x2B03B907: mov dword ptr [0x2b0ee9bc], ecx */ 4763 ecx = esi; /* 0x2B03B90D: mov ecx, esi */ 4764 MEM32(0x2B0EE9C0) = eax; /* 0x2B03B90F: mov dword ptr [0x2b0ee9c0], eax */ 4765 MEM32(0x2B0EE9C8) = 1; /* 0x2B03B914: mov dword ptr [0x2b0ee9c8], 1 */ 4766 RECOMP_ICALL(0x2B03B740u); /* 0x2B03B91E: call 0x2b03b740 */ /* not lifted */ 4767 RECOMP_FLAGS_IN(); 4768 ecx = esi; /* 0x2B03B923: mov ecx, esi */ 4769 RECOMP_ICALL(0x2B03B720u); /* 0x2B03B925: call 0x2b03b720 */ /* not lifted */ 4770 RECOMP_FLAGS_IN(); 4771 eax = MEM32(0x2B0EF09C); /* 0x2B03B92A: mov eax, dword ptr [0x2b0ef09c] */ 4772 /* test eax, eax */ /* 0x2B03B92F: test eax, eax */ 4773 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4774 _cf = 0; 4775 _flag_k = FK_TEST; 4776 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03B995; /* 0x2B03B931: je 0x2b03b995 */ 4777 L_2B03B933: 4778 ecx = MEM32(eax + 0x4); /* 0x2B03B933: mov ecx, dword ptr [eax + 4] */ 4779 PUSH32(esp, 2); /* 0x2B03B936: push 2 */ 4780 RECOMP_ICALL(MEM32(0x2B0B5AB4)); /* 0x2B03B938: call dword ptr [0x2b0b5ab4] */ 4781 RECOMP_FLAGS_IN(); 4782 ecx = esi; /* 0x2B03B93E: mov ecx, esi */ 4783 RECOMP_ICALL(0x2B03B110u); /* 0x2B03B940: call 0x2b03b110 */ /* not lifted */ 4784 RECOMP_FLAGS_IN(); 4785 esi = POP32_VAL(esp); /* 0x2B03B945: pop esi */ 4786 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03B946: ret */ 4787 L_2B03B947: 4788 edx = MEM32(0x2B0EE9C0); /* 0x2B03B947: mov edx, dword ptr [0x2b0ee9c0] */ 4789 ecx = esi; /* 0x2B03B94D: mov ecx, esi */ 4790 MEM32(0x2B0EE9BC) = edx; /* 0x2B03B94F: mov dword ptr [0x2b0ee9bc], edx */ 4791 MEM32(0x2B0EE9C0) = eax; /* 0x2B03B955: mov dword ptr [0x2b0ee9c0], eax */ 4792 MEM32(0x2B0EE9C8) = 0; /* 0x2B03B95A: mov dword ptr [0x2b0ee9c8], 0 */ 4793 RECOMP_ICALL(0x2B03B770u); /* 0x2B03B964: call 0x2b03b770 */ /* not lifted */ 4794 RECOMP_FLAGS_IN(); 4795 ecx = esi; /* 0x2B03B969: mov ecx, esi */ 4796 RECOMP_ICALL(0x2B03B6E0u); /* 0x2B03B96B: call 0x2b03b6e0 */ /* not lifted */ 4797 RECOMP_FLAGS_IN(); 4798 eax = MEM32(0x2B0EF09C); /* 0x2B03B970: mov eax, dword ptr [0x2b0ef09c] */ 4799 /* test eax, eax */ /* 0x2B03B975: test eax, eax */ 4800 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4801 _cf = 0; 4802 _flag_k = FK_TEST; 4803 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03B984; /* 0x2B03B977: je 0x2b03b984 */ 4804 L_2B03B979: 4805 ecx = MEM32(eax + 0x4); /* 0x2B03B979: mov ecx, dword ptr [eax + 4] */ 4806 PUSH32(esp, 1); /* 0x2B03B97C: push 1 */ 4807 RECOMP_ICALL(MEM32(0x2B0B5AB4)); /* 0x2B03B97E: call dword ptr [0x2b0b5ab4] */ 4808 RECOMP_FLAGS_IN(); 4809 L_2B03B984: 4810 eax = MEM32(0x2B0B6118); /* 0x2B03B984: mov eax, dword ptr [0x2b0b6118] */ 4811 ecx = MEM32(eax); /* 0x2B03B989: mov ecx, dword ptr [eax] */ 4812 /* test ecx, ecx */ /* 0x2B03B98B: test ecx, ecx */ 4813 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4814 _cf = 0; 4815 _flag_k = FK_TEST; 4816 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03B995; /* 0x2B03B98D: je 0x2b03b995 */ 4817 L_2B03B98F: 4818 RECOMP_ICALL(MEM32(0x2B0B6120)); /* 0x2B03B98F: call dword ptr [0x2b0b6120] */ 4819 RECOMP_FLAGS_IN(); 4820 L_2B03B995: 4821 ecx = esi; /* 0x2B03B995: mov ecx, esi */ 4822 RECOMP_ICALL(0x2B03B110u); /* 0x2B03B997: call 0x2b03b110 */ /* not lifted */ 4823 RECOMP_FLAGS_IN(); 4824 esi = POP32_VAL(esp); /* 0x2B03B99C: pop esi */ 4825 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03B99D: ret */ 4826 RECOMP_REGS_OUT(); 4827 } 4828 4829 void sub_2B03AAA0(void) { 4830 int _fpu_cmp = 0; 4831 uint32_t _cf = 0; 4832 int _df = 1; 4833 uint32_t _flag_k = FK_NONE; 4834 uint32_t _flag_a = 0, _flag_b = 0; 4835 uint32_t _itail_tgt = 0; 4836 RECOMP_REGS_LOCALS 4837 RECOMP_ENTER(0x2B03AAA0u); 4838 4839 L_2B03AAA0: 4840 ecx = MEM32(0x2B0EE9B8); /* 0x2B03AAA0: mov ecx, dword ptr [0x2b0ee9b8] */ 4841 /* test ecx, ecx */ /* 0x2B03AAA6: test ecx, ecx */ 4842 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4843 _cf = 0; 4844 _flag_k = FK_TEST; 4845 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03AAAF; /* 0x2B03AAA8: je 0x2b03aaaf */ 4846 L_2B03AAAA: 4847 goto L_2B03BB50; /* 0x2B03AAAA: jmp 0x2b03bb50 */ 4848 L_2B03AAAF: 4849 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03AAAF: ret */ 4850 L_2B03BB50: 4851 eax = MEM32(0x2B0EE9C8); /* 0x2B03BB50: mov eax, dword ptr [0x2b0ee9c8] */ 4852 /* test eax, eax */ /* 0x2B03BB55: test eax, eax */ 4853 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4854 _cf = 0; 4855 _flag_k = FK_TEST; 4856 PUSH32(esp, ebx); /* 0x2B03BB57: push ebx */ 4857 PUSH32(esp, esi); /* 0x2B03BB58: push esi */ 4858 PUSH32(esp, edi); /* 0x2B03BB59: push edi */ 4859 ebx = ecx; /* 0x2B03BB5A: mov ebx, ecx */ 4860 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03BB7A; /* 0x2B03BB5C: jne 0x2b03bb7a */ 4861 L_2B03BB5E: 4862 edi = MEM32(0x2B0EE9AC); /* 0x2B03BB5E: mov edi, dword ptr [0x2b0ee9ac] */ 4863 esi = MEM32(edi); /* 0x2B03BB64: mov esi, dword ptr [edi] */ 4864 /* cmp esi, edi */ /* 0x2B03BB66: cmp esi, edi */ 4865 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4866 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4867 _flag_k = FK_CMP; 4868 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B03BB94; /* 0x2B03BB68: je 0x2b03bb94 */ 4869 L_2B03BB6A: 4870 ecx = MEM32(esi + 0x8); /* 0x2B03BB6A: mov ecx, dword ptr [esi + 8] */ 4871 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B03BB6D: call 0x2b03a2b0 */ /* not lifted */ 4872 RECOMP_FLAGS_IN(); 4873 esi = MEM32(esi); /* 0x2B03BB72: mov esi, dword ptr [esi] */ 4874 /* cmp esi, edi */ /* 0x2B03BB74: cmp esi, edi */ 4875 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4876 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4877 _flag_k = FK_CMP; 4878 RECOMP_BACKEDGE(); 4879 if (CMP_NE(_flag_a, _flag_b)) goto L_2B03BB6A; /* 0x2B03BB76: jne 0x2b03bb6a */ 4880 L_2B03BB78: 4881 goto L_2B03BB94; /* 0x2B03BB78: jmp 0x2b03bb94 */ 4882 L_2B03BB7A: 4883 edi = MEM32(0x2B0EE99C); /* 0x2B03BB7A: mov edi, dword ptr [0x2b0ee99c] */ 4884 esi = MEM32(edi); /* 0x2B03BB80: mov esi, dword ptr [edi] */ 4885 /* cmp esi, edi */ /* 0x2B03BB82: cmp esi, edi */ 4886 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4887 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4888 _flag_k = FK_CMP; 4889 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B03BB94; /* 0x2B03BB84: je 0x2b03bb94 */ 4890 L_2B03BB86: 4891 ecx = MEM32(esi + 0x8); /* 0x2B03BB86: mov ecx, dword ptr [esi + 8] */ 4892 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B03BB89: call 0x2b03a2b0 */ /* not lifted */ 4893 RECOMP_FLAGS_IN(); 4894 esi = MEM32(esi); /* 0x2B03BB8E: mov esi, dword ptr [esi] */ 4895 /* cmp esi, edi */ /* 0x2B03BB90: cmp esi, edi */ 4896 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4897 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4898 _flag_k = FK_CMP; 4899 RECOMP_BACKEDGE(); 4900 if (CMP_NE(_flag_a, _flag_b)) goto L_2B03BB86; /* 0x2B03BB92: jne 0x2b03bb86 */ 4901 L_2B03BB94: 4902 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4903 eax = 0; /* 0x2B03BB94: xor eax, eax */ 4904 _cf = 0; 4905 _flag_k = FK_TEST; 4906 SET_LO8(eax, MEM8(0x2B0EE9E0)); /* 0x2B03BB96: mov al, byte ptr [0x2b0ee9e0] */ 4907 ecx = ebx; /* 0x2B03BB9B: mov ecx, ebx */ 4908 PUSH32(esp, eax); /* 0x2B03BB9D: push eax */ 4909 RECOMP_ICALL(0x2B03B330u); /* 0x2B03BB9E: call 0x2b03b330 */ /* not lifted */ 4910 RECOMP_FLAGS_IN(); 4911 ecx = ebx; /* 0x2B03BBA3: mov ecx, ebx */ 4912 RECOMP_ICALL(0x2B03B110u); /* 0x2B03BBA5: call 0x2b03b110 */ /* not lifted */ 4913 RECOMP_FLAGS_IN(); 4914 edi = POP32_VAL(esp); /* 0x2B03BBAA: pop edi */ 4915 esi = POP32_VAL(esp); /* 0x2B03BBAB: pop esi */ 4916 ebx = POP32_VAL(esp); /* 0x2B03BBAC: pop ebx */ 4917 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03BBAD: ret */ 4918 RECOMP_REGS_OUT(); 4919 } 4920 4921 void sub_2B03AAB0(void) { 4922 int _fpu_cmp = 0; 4923 uint32_t _cf = 0; 4924 int _df = 1; 4925 uint32_t _flag_k = FK_NONE; 4926 uint32_t _flag_a = 0, _flag_b = 0; 4927 uint32_t _itail_tgt = 0; 4928 RECOMP_REGS_LOCALS 4929 RECOMP_ENTER(0x2B03AAB0u); 4930 4931 L_2B03AAB0: 4932 eax = MEM32(0x2B0EE9B8); /* 0x2B03AAB0: mov eax, dword ptr [0x2b0ee9b8] */ 4933 /* test eax, eax */ /* 0x2B03AAB5: test eax, eax */ 4934 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4935 _cf = 0; 4936 _flag_k = FK_TEST; 4937 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03AAE4; /* 0x2B03AAB7: je 0x2b03aae4 */ 4938 L_2B03AAB9: 4939 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B03AAB9: call dword ptr [0x2b0b53cc] */ 4940 RECOMP_FLAGS_IN(); 4941 ecx = eax; /* 0x2B03AABF: mov ecx, eax */ 4942 RECOMP_ICALL(MEM32(0x2B0B53A4)); /* 0x2B03AAC1: call dword ptr [0x2b0b53a4] */ 4943 RECOMP_FLAGS_IN(); 4944 /* test eax, eax */ /* 0x2B03AAC7: test eax, eax */ 4945 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4946 _cf = 0; 4947 _flag_k = FK_TEST; 4948 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03AAE4; /* 0x2B03AAC9: je 0x2b03aae4 */ 4949 L_2B03AACB: 4950 eax = MEM32(eax + 0x8); /* 0x2B03AACB: mov eax, dword ptr [eax + 8] */ 4951 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 4952 eax = eax & 0xFFFFu; /* 0x2B03AACE: and eax, 0xffff */ 4953 _cf = 0; 4954 _flag_k = FK_TEST; 4955 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x6Cu); 4956 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4957 eax = eax - 0x6Cu; /* 0x2B03AAD3: sub eax, 0x6c */ 4958 _flag_k = FK_CMP; 4959 if (/* sub result */ CMP_S(_flag_a, _flag_b)) goto L_2B03AAE4; /* 0x2B03AAD6: js 0x2b03aae4 */ 4960 L_2B03AAD8: 4961 /* cmp eax, 9 */ /* 0x2B03AAD8: cmp eax, 9 */ 4962 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(9); 4963 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4964 _flag_k = FK_CMP; 4965 if (CMP_G(_flag_a, _flag_b)) goto L_2B03AAE4; /* 0x2B03AADB: jg 0x2b03aae4 */ 4966 L_2B03AADD: 4967 PUSH32(esp, eax); /* 0x2B03AADD: push eax */ 4968 RECOMP_ICALL(0x2B03C230u); /* 0x2B03AADE: call 0x2b03c230 */ /* not lifted */ 4969 RECOMP_FLAGS_IN(); 4970 ecx = POP32_VAL(esp); /* 0x2B03AAE3: pop ecx */ 4971 L_2B03AAE4: 4972 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03AAE4: ret */ 4973 RECOMP_REGS_OUT(); 4974 } 4975 4976 void sub_2B03AAF0(void) { 4977 int _fpu_cmp = 0; 4978 uint32_t _cf = 0; 4979 int _df = 1; 4980 uint32_t _flag_k = FK_NONE; 4981 uint32_t _flag_a = 0, _flag_b = 0; 4982 uint32_t _itail_tgt = 0; 4983 RECOMP_REGS_LOCALS 4984 RECOMP_ENTER(0x2B03AAF0u); 4985 4986 L_2B03AAF0: 4987 PUSH32(esp, ebp); /* 0x2B03AAF0: push ebp */ 4988 ebp = esp; /* 0x2B03AAF1: mov ebp, esp */ 4989 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B03AAF3: push -1 */ 4990 PUSH32(esp, 0x2B0AE8C0u); /* 0x2B03AAF5: push 0x2b0ae8c0 */ 4991 eax = MEM32(FS_BASE + (0)); /* 0x2B03AAFA: mov eax, dword ptr fs:[0] */ 4992 PUSH32(esp, eax); /* 0x2B03AB00: push eax */ 4993 MEM32(FS_BASE + (0)) = esp; /* 0x2B03AB01: mov dword ptr fs:[0], esp */ 4994 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 4995 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4996 esp = esp - 0x38u; /* 0x2B03AB08: sub esp, 0x38 */ 4997 _flag_k = FK_CMP; 4998 PUSH32(esp, ebx); /* 0x2B03AB0B: push ebx */ 4999 PUSH32(esp, esi); /* 0x2B03AB0C: push esi */ 5000 PUSH32(esp, edi); /* 0x2B03AB0D: push edi */ 5001 esi = ecx; /* 0x2B03AB0E: mov esi, ecx */ 5002 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5003 ebx = 0; /* 0x2B03AB10: xor ebx, ebx */ 5004 _cf = 0; 5005 _flag_k = FK_TEST; 5006 PUSH32(esp, ebx); /* 0x2B03AB12: push ebx */ 5007 MEM32(ebp + (-0x18)) = esi; /* 0x2B03AB13: mov dword ptr [ebp - 0x18], esi */ 5008 RECOMP_ICALL(MEM32(0x2B0B5990)); /* 0x2B03AB16: call dword ptr [0x2b0b5990] */ 5009 RECOMP_FLAGS_IN(); 5010 MEM32(esi) = 0x2B0B68C8u; /* 0x2B03AB1C: mov dword ptr [esi], 0x2b0b68c8 */ 5011 MEM32(0x2B0EE9C4) = esi; /* 0x2B03AB22: mov dword ptr [0x2b0ee9c4], esi */ 5012 MEM32(0x2B0EE9C8) = ebx; /* 0x2B03AB28: mov dword ptr [0x2b0ee9c8], ebx */ 5013 MEM32(0x2B0EE9D0) = ebx; /* 0x2B03AB2E: mov dword ptr [0x2b0ee9d0], ebx */ 5014 MEM32(0x2B0EE9CC) = ebx; /* 0x2B03AB34: mov dword ptr [0x2b0ee9cc], ebx */ 5015 MEM32(esi + 0x54) = ebx; /* 0x2B03AB3A: mov dword ptr [esi + 0x54], ebx */ 5016 MEM32(esi + 0x5C) = ebx; /* 0x2B03AB3D: mov dword ptr [esi + 0x5c], ebx */ 5017 eax = MEM32(0x2B0EE9AC); /* 0x2B03AB40: mov eax, dword ptr [0x2b0ee9ac] */ 5018 edi = MEM32(eax); /* 0x2B03AB45: mov edi, dword ptr [eax] */ 5019 /* cmp edi, eax */ /* 0x2B03AB47: cmp edi, eax */ 5020 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5021 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5022 _flag_k = FK_CMP; 5023 MEM32(ebp + (-0x4)) = ebx; /* 0x2B03AB49: mov dword ptr [ebp - 4], ebx */ 5024 MEM32(ebp + (-0x10)) = eax; /* 0x2B03AB4C: mov dword ptr [ebp - 0x10], eax */ 5025 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B03AB69; /* 0x2B03AB4F: je 0x2b03ab69 */ 5026 L_2B03AB51: 5027 eax = edi; /* 0x2B03AB51: mov eax, edi */ 5028 edi = MEM32(edi); /* 0x2B03AB53: mov edi, dword ptr [edi] */ 5029 PUSH32(esp, eax); /* 0x2B03AB55: push eax */ 5030 eax = ebp + (-0x14); /* 0x2B03AB56: lea eax, [ebp - 0x14] */ 5031 PUSH32(esp, eax); /* 0x2B03AB59: push eax */ 5032 ecx = 0x2B0EE9A8u; /* 0x2B03AB5A: mov ecx, 0x2b0ee9a8 */ 5033 RECOMP_ICALL(0x2B03BC50u); /* 0x2B03AB5F: call 0x2b03bc50 */ /* not lifted */ 5034 RECOMP_FLAGS_IN(); 5035 /* cmp edi, MEM32(ebp + (-0x10)) */ /* 0x2B03AB64: cmp edi, dword ptr [ebp - 0x10] */ 5036 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 5037 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5038 _flag_k = FK_CMP; 5039 RECOMP_BACKEDGE(); 5040 if (CMP_NE(_flag_a, _flag_b)) goto L_2B03AB51; /* 0x2B03AB67: jne 0x2b03ab51 */ 5041 L_2B03AB69: 5042 eax = MEM32(0x2B0EE99C); /* 0x2B03AB69: mov eax, dword ptr [0x2b0ee99c] */ 5043 edi = MEM32(eax); /* 0x2B03AB6E: mov edi, dword ptr [eax] */ 5044 /* cmp edi, eax */ /* 0x2B03AB70: cmp edi, eax */ 5045 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5046 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5047 _flag_k = FK_CMP; 5048 MEM32(ebp + (-0x10)) = eax; /* 0x2B03AB72: mov dword ptr [ebp - 0x10], eax */ 5049 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B03AB8F; /* 0x2B03AB75: je 0x2b03ab8f */ 5050 L_2B03AB77: 5051 eax = edi; /* 0x2B03AB77: mov eax, edi */ 5052 edi = MEM32(edi); /* 0x2B03AB79: mov edi, dword ptr [edi] */ 5053 PUSH32(esp, eax); /* 0x2B03AB7B: push eax */ 5054 ecx = ebp + (-0x14); /* 0x2B03AB7C: lea ecx, [ebp - 0x14] */ 5055 PUSH32(esp, ecx); /* 0x2B03AB7F: push ecx */ 5056 ecx = 0x2B0EE998u; /* 0x2B03AB80: mov ecx, 0x2b0ee998 */ 5057 RECOMP_ICALL(0x2B03BC50u); /* 0x2B03AB85: call 0x2b03bc50 */ /* not lifted */ 5058 RECOMP_FLAGS_IN(); 5059 /* cmp edi, MEM32(ebp + (-0x10)) */ /* 0x2B03AB8A: cmp edi, dword ptr [ebp - 0x10] */ 5060 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 5061 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5062 _flag_k = FK_CMP; 5063 RECOMP_BACKEDGE(); 5064 if (CMP_NE(_flag_a, _flag_b)) goto L_2B03AB77; /* 0x2B03AB8D: jne 0x2b03ab77 */ 5065 L_2B03AB8F: 5066 edi = MEM32(0x2B0B5690); /* 0x2B03AB8F: mov edi, dword ptr [0x2b0b5690] */ 5067 MEM8(esi + 0x6C) = (uint8_t)(LO8(ebx)); /* 0x2B03AB95: mov byte ptr [esi + 0x6c], bl */ 5068 MEM32(0x2B0EE9BC) = ebx; /* 0x2B03AB98: mov dword ptr [0x2b0ee9bc], ebx */ 5069 MEM32(0x2B0EE9C0) = ebx; /* 0x2B03AB9E: mov dword ptr [0x2b0ee9c0], ebx */ 5070 MEM8(esi + 0x24) = (uint8_t)(1); /* 0x2B03ABA4: mov byte ptr [esi + 0x24], 1 */ 5071 MEM8(esi + 0x25) = (uint8_t)(1); /* 0x2B03ABA8: mov byte ptr [esi + 0x25], 1 */ 5072 MEM32(esi + 0x58) = ebx; /* 0x2B03ABAC: mov dword ptr [esi + 0x58], ebx */ 5073 RECOMP_ICALL(edi); /* 0x2B03ABAF: call edi */ 5074 RECOMP_FLAGS_IN(); 5075 ecx = eax; /* 0x2B03ABB1: mov ecx, eax */ 5076 RECOMP_ICALL(MEM32(0x2B0B5688)); /* 0x2B03ABB3: call dword ptr [0x2b0b5688] */ 5077 RECOMP_FLAGS_IN(); 5078 MEM32(ebp + (-0x10)) = eax; /* 0x2B03ABB9: mov dword ptr [ebp - 0x10], eax */ 5079 RECOMP_ICALL(edi); /* 0x2B03ABBC: call edi */ 5080 RECOMP_FLAGS_IN(); 5081 ecx = eax; /* 0x2B03ABBE: mov ecx, eax */ 5082 RECOMP_ICALL(MEM32(0x2B0B568C)); /* 0x2B03ABC0: call dword ptr [0x2b0b568c] */ 5083 RECOMP_FLAGS_IN(); 5084 edx = MEM32(ebp + (-0x10)); /* 0x2B03ABC6: mov edx, dword ptr [ebp - 0x10] */ 5085 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu); 5086 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5087 eax = eax + 0xFFFFFFECu; /* 0x2B03ABC9: add eax, -0x14 */ 5088 _flag_k = FK_ADD; 5089 ecx = 0xC0u; /* 0x2B03ABCC: mov ecx, 0xc0 */ 5090 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFF40u); 5091 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5092 edx = edx + 0xFFFFFF40u; /* 0x2B03ABD1: add edx, 0xffffff40 */ 5093 _flag_k = FK_ADD; 5094 PUSH32(esp, 0x50u); /* 0x2B03ABD7: push 0x50 */ 5095 MEM32(0x2B0EE9D8) = ecx; /* 0x2B03ABD9: mov dword ptr [0x2b0ee9d8], ecx */ 5096 MEM32(ebp + (-0x14)) = eax; /* 0x2B03ABDF: mov dword ptr [ebp - 0x14], eax */ 5097 MEM32(0x2B0EE9D4) = eax; /* 0x2B03ABE2: mov dword ptr [0x2b0ee9d4], eax */ 5098 MEM32(ebp + (-0x2C)) = ecx; /* 0x2B03ABE7: mov dword ptr [ebp - 0x2c], ecx */ 5099 MEM32(ebp + (-0x28)) = eax; /* 0x2B03ABEA: mov dword ptr [ebp - 0x28], eax */ 5100 MEM32(0x2B0EE9CC) = ebx; /* 0x2B03ABED: mov dword ptr [0x2b0ee9cc], ebx */ 5101 MEM32(0x2B0EE9D0) = ebx; /* 0x2B03ABF3: mov dword ptr [0x2b0ee9d0], ebx */ 5102 MEM32(ebp + (-0x24)) = edx; /* 0x2B03ABF9: mov dword ptr [ebp - 0x24], edx */ 5103 MEM32(ebp + (-0x20)) = ebx; /* 0x2B03ABFC: mov dword ptr [ebp - 0x20], ebx */ 5104 MEM32(0x2B0EE9DC) = ebx; /* 0x2B03ABFF: mov dword ptr [0x2b0ee9dc], ebx */ 5105 RECOMP_ICALL(0x2B0AB212u); /* 0x2B03AC05: call 0x2b0ab212 */ /* not lifted */ 5106 RECOMP_FLAGS_IN(); 5107 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5108 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5109 esp = esp + 4; /* 0x2B03AC0A: add esp, 4 */ 5110 _flag_k = FK_ADD; 5111 MEM32(ebp + (-0x1C)) = eax; /* 0x2B03AC0D: mov dword ptr [ebp - 0x1c], eax */ 5112 /* cmp eax, ebx */ /* 0x2B03AC10: cmp eax, ebx */ 5113 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5114 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5115 _flag_k = FK_CMP; 5116 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B03AC12: mov byte ptr [ebp - 4], 1 */ 5117 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B03AC3F; /* 0x2B03AC16: je 0x2b03ac3f */ 5118 L_2B03AC18: 5119 PUSH32(esp, 1); /* 0x2B03AC18: push 1 */ 5120 PUSH32(esp, 0x3F800000u); /* 0x2B03AC1A: push 0x3f800000 */ 5121 PUSH32(esp, 0x3F800000u); /* 0x2B03AC1F: push 0x3f800000 */ 5122 PUSH32(esp, 0xBBAu); /* 0x2B03AC24: push 0xbba */ 5123 ecx = ebp + (-0x24); /* 0x2B03AC29: lea ecx, [ebp - 0x24] */ 5124 PUSH32(esp, ecx); /* 0x2B03AC2C: push ecx */ 5125 edx = ebp + (-0x2C); /* 0x2B03AC2D: lea edx, [ebp - 0x2c] */ 5126 PUSH32(esp, edx); /* 0x2B03AC30: push edx */ 5127 PUSH32(esp, 6); /* 0x2B03AC31: push 6 */ 5128 PUSH32(esp, 6); /* 0x2B03AC33: push 6 */ 5129 ecx = eax; /* 0x2B03AC35: mov ecx, eax */ 5130 RECOMP_ICALL(MEM32(0x2B0B5BD8)); /* 0x2B03AC37: call dword ptr [0x2b0b5bd8] */ 5131 RECOMP_FLAGS_IN(); 5132 goto L_2B03AC41; /* 0x2B03AC3D: jmp 0x2b03ac41 */ 5133 L_2B03AC3F: 5134 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5135 eax = 0; /* 0x2B03AC3F: xor eax, eax */ 5136 _cf = 0; 5137 _flag_k = FK_TEST; 5138 L_2B03AC41: 5139 PUSH32(esp, 1); /* 0x2B03AC41: push 1 */ 5140 MEM32(0x2B0EE9DC) = eax; /* 0x2B03AC43: mov dword ptr [0x2b0ee9dc], eax */ 5141 eax = MEM32(eax + 0x28); /* 0x2B03AC48: mov eax, dword ptr [eax + 0x28] */ 5142 PUSH32(esp, ebx); /* 0x2B03AC4B: push ebx */ 5143 PUSH32(esp, ebx); /* 0x2B03AC4C: push ebx */ 5144 ecx = eax; /* 0x2B03AC4D: mov ecx, eax */ 5145 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B03AC4F: mov byte ptr [ebp - 4], bl */ 5146 RECOMP_ICALL(MEM32(0x2B0B564C)); /* 0x2B03AC52: call dword ptr [0x2b0b564c] */ 5147 RECOMP_FLAGS_IN(); 5148 eax = MEM32(0x2B0EE9DC); /* 0x2B03AC58: mov eax, dword ptr [0x2b0ee9dc] */ 5149 PUSH32(esp, 0x9Cu); /* 0x2B03AC5D: push 0x9c */ 5150 MEM32(esi + 0x28) = eax; /* 0x2B03AC62: mov dword ptr [esi + 0x28], eax */ 5151 MEM32(ebp + (-0x24)) = ebx; /* 0x2B03AC65: mov dword ptr [ebp - 0x24], ebx */ 5152 MEM32(ebp + (-0x20)) = ebx; /* 0x2B03AC68: mov dword ptr [ebp - 0x20], ebx */ 5153 RECOMP_ICALL(0x2B0AB212u); /* 0x2B03AC6B: call 0x2b0ab212 */ /* not lifted */ 5154 RECOMP_FLAGS_IN(); 5155 edi = eax; /* 0x2B03AC70: mov edi, eax */ 5156 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5157 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5158 esp = esp + 4; /* 0x2B03AC72: add esp, 4 */ 5159 _flag_k = FK_ADD; 5160 MEM32(ebp + (-0x1C)) = edi; /* 0x2B03AC75: mov dword ptr [ebp - 0x1c], edi */ 5161 /* cmp edi, ebx */ /* 0x2B03AC78: cmp edi, ebx */ 5162 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 5163 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5164 _flag_k = FK_CMP; 5165 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B03AC7A: mov byte ptr [ebp - 4], 2 */ 5166 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B03ACB2; /* 0x2B03AC7E: je 0x2b03acb2 */ 5167 L_2B03AC80: 5168 ecx = MEM32(0x2B0EE9DC); /* 0x2B03AC80: mov ecx, dword ptr [0x2b0ee9dc] */ 5169 edx = MEM32(ebp + (-0x28)); /* 0x2B03AC86: mov edx, dword ptr [ebp - 0x28] */ 5170 eax = MEM32(ebp + (-0x2C)); /* 0x2B03AC89: mov eax, dword ptr [ebp - 0x2c] */ 5171 PUSH32(esp, ecx); /* 0x2B03AC8C: push ecx */ 5172 ecx = MEM32(ebp + (-0x20)); /* 0x2B03AC8D: mov ecx, dword ptr [ebp - 0x20] */ 5173 PUSH32(esp, 4); /* 0x2B03AC90: push 4 */ 5174 PUSH32(esp, ebx); /* 0x2B03AC92: push ebx */ 5175 PUSH32(esp, 0xBB8u); /* 0x2B03AC93: push 0xbb8 */ 5176 PUSH32(esp, ebx); /* 0x2B03AC98: push ebx */ 5177 PUSH32(esp, ebx); /* 0x2B03AC99: push ebx */ 5178 PUSH32(esp, ebx); /* 0x2B03AC9A: push ebx */ 5179 PUSH32(esp, edx); /* 0x2B03AC9B: push edx */ 5180 edx = MEM32(ebp + (-0x24)); /* 0x2B03AC9C: mov edx, dword ptr [ebp - 0x24] */ 5181 PUSH32(esp, eax); /* 0x2B03AC9F: push eax */ 5182 PUSH32(esp, ecx); /* 0x2B03ACA0: push ecx */ 5183 PUSH32(esp, edx); /* 0x2B03ACA1: push edx */ 5184 ecx = edi; /* 0x2B03ACA2: mov ecx, edi */ 5185 RECOMP_ICALL(MEM32(0x2B0B5AF0)); /* 0x2B03ACA4: call dword ptr [0x2b0b5af0] */ 5186 RECOMP_FLAGS_IN(); 5187 MEM32(edi) = 0x2B0B642Cu; /* 0x2B03ACAA: mov dword ptr [edi], 0x2b0b642c */ 5188 goto L_2B03ACB4; /* 0x2B03ACB0: jmp 0x2b03acb4 */ 5189 L_2B03ACB2: 5190 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5191 edi = 0; /* 0x2B03ACB2: xor edi, edi */ 5192 _cf = 0; 5193 _flag_k = FK_TEST; 5194 L_2B03ACB4: 5195 eax = MEM32(ebp + (-0x10)); /* 0x2B03ACB4: mov eax, dword ptr [ebp - 0x10] */ 5196 MEM32(esi + 0x58) = edi; /* 0x2B03ACB7: mov dword ptr [esi + 0x58], edi */ 5197 PUSH32(esp, 0x10u); /* 0x2B03ACBA: push 0x10 */ 5198 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B03ACBC: mov byte ptr [ebp - 4], bl */ 5199 edi = eax + (-0xC5); /* 0x2B03ACBF: lea edi, [eax - 0xc5] */ 5200 RECOMP_ICALL(0x2B0AB212u); /* 0x2B03ACC5: call 0x2b0ab212 */ /* not lifted */ 5201 RECOMP_FLAGS_IN(); 5202 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5203 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5204 esp = esp + 4; /* 0x2B03ACCA: add esp, 4 */ 5205 _flag_k = FK_ADD; 5206 MEM32(ebp + (-0x1C)) = eax; /* 0x2B03ACCD: mov dword ptr [ebp - 0x1c], eax */ 5207 /* cmp eax, ebx */ /* 0x2B03ACD0: cmp eax, ebx */ 5208 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5209 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5210 _flag_k = FK_CMP; 5211 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B03ACD2: mov byte ptr [ebp - 4], 3 */ 5212 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B03ACF4; /* 0x2B03ACD6: je 0x2b03acf4 */ 5213 L_2B03ACD8: 5214 ecx = MEM32(ebp + (-0x14)); /* 0x2B03ACD8: mov ecx, dword ptr [ebp - 0x14] */ 5215 PUSH32(esp, 0xFA0u); /* 0x2B03ACDB: push 0xfa0 */ 5216 PUSH32(esp, 0x16u); /* 0x2B03ACE0: push 0x16 */ 5217 PUSH32(esp, 0x16u); /* 0x2B03ACE2: push 0x16 */ 5218 PUSH32(esp, 0x16u); /* 0x2B03ACE4: push 0x16 */ 5219 PUSH32(esp, ebx); /* 0x2B03ACE6: push ebx */ 5220 PUSH32(esp, ecx); /* 0x2B03ACE7: push ecx */ 5221 PUSH32(esp, ebx); /* 0x2B03ACE8: push ebx */ 5222 PUSH32(esp, edi); /* 0x2B03ACE9: push edi */ 5223 ecx = eax; /* 0x2B03ACEA: mov ecx, eax */ 5224 RECOMP_ICALL(MEM32(0x2B0B5994)); /* 0x2B03ACEC: call dword ptr [0x2b0b5994] */ 5225 RECOMP_FLAGS_IN(); 5226 goto L_2B03ACF6; /* 0x2B03ACF2: jmp 0x2b03acf6 */ 5227 L_2B03ACF4: 5228 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5229 eax = 0; /* 0x2B03ACF4: xor eax, eax */ 5230 _cf = 0; 5231 _flag_k = FK_TEST; 5232 L_2B03ACF6: 5233 ecx = eax; /* 0x2B03ACF6: mov ecx, eax */ 5234 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B03ACF8: mov byte ptr [ebp - 4], bl */ 5235 MEM32(esi + 0x54) = eax; /* 0x2B03ACFB: mov dword ptr [esi + 0x54], eax */ 5236 RECOMP_ICALL(MEM32(0x2B0B5998)); /* 0x2B03ACFE: call dword ptr [0x2b0b5998] */ 5237 RECOMP_FLAGS_IN(); 5238 eax = MEM32(0x2B0EE9D0); /* 0x2B03AD04: mov eax, dword ptr [0x2b0ee9d0] */ 5239 edx = MEM32(0x2B0EE9D4); /* 0x2B03AD09: mov edx, dword ptr [0x2b0ee9d4] */ 5240 ecx = MEM32(0x2B0EE9CC); /* 0x2B03AD0F: mov ecx, dword ptr [0x2b0ee9cc] */ 5241 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 5242 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5243 edx = edx + eax; /* 0x2B03AD15: add edx, eax */ 5244 _flag_k = FK_ADD; 5245 MEM32(ebp + (-0x10)) = edx; /* 0x2B03AD17: mov dword ptr [ebp - 0x10], edx */ 5246 edx = MEM32(0x2B0EE9D8); /* 0x2B03AD1A: mov edx, dword ptr [0x2b0ee9d8] */ 5247 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 5248 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5249 edx = edx + ecx; /* 0x2B03AD20: add edx, ecx */ 5250 _flag_k = FK_ADD; 5251 PUSH32(esp, 0x28u); /* 0x2B03AD22: push 0x28 */ 5252 MEM32(ebp + (-0x14)) = edx; /* 0x2B03AD24: mov dword ptr [ebp - 0x14], edx */ 5253 MEM32(ebp + (-0x44)) = ecx; /* 0x2B03AD27: mov dword ptr [ebp - 0x44], ecx */ 5254 MEM32(ebp + (-0x40)) = eax; /* 0x2B03AD2A: mov dword ptr [ebp - 0x40], eax */ 5255 RECOMP_ICALL(0x2B0AB212u); /* 0x2B03AD2D: call 0x2b0ab212 */ /* not lifted */ 5256 RECOMP_FLAGS_IN(); 5257 edi = eax; /* 0x2B03AD32: mov edi, eax */ 5258 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5259 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5260 esp = esp + 4; /* 0x2B03AD34: add esp, 4 */ 5261 _flag_k = FK_ADD; 5262 MEM32(ebp + (-0x1C)) = edi; /* 0x2B03AD37: mov dword ptr [ebp - 0x1c], edi */ 5263 /* cmp edi, ebx */ /* 0x2B03AD3A: cmp edi, ebx */ 5264 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 5265 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5266 _flag_k = FK_CMP; 5267 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B03AD3C: mov byte ptr [ebp - 4], 4 */ 5268 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B03AD75; /* 0x2B03AD40: je 0x2b03ad75 */ 5269 L_2B03AD42: 5270 ecx = MEM32(ebp + (-0x44)); /* 0x2B03AD42: mov ecx, dword ptr [ebp - 0x44] */ 5271 edx = MEM32(ebp + (-0x40)); /* 0x2B03AD45: mov edx, dword ptr [ebp - 0x40] */ 5272 PUSH32(esp, ebx); /* 0x2B03AD48: push ebx */ 5273 PUSH32(esp, 0xFA0u); /* 0x2B03AD49: push 0xfa0 */ 5274 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5275 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5276 esp = esp - 0x10u; /* 0x2B03AD4E: sub esp, 0x10 */ 5277 _flag_k = FK_CMP; 5278 eax = esp; /* 0x2B03AD51: mov eax, esp */ 5279 MEM32(eax) = ecx; /* 0x2B03AD53: mov dword ptr [eax], ecx */ 5280 ecx = MEM32(ebp + (-0x14)); /* 0x2B03AD55: mov ecx, dword ptr [ebp - 0x14] */ 5281 MEM32(eax + 0x4) = edx; /* 0x2B03AD58: mov dword ptr [eax + 4], edx */ 5282 edx = MEM32(ebp + (-0x10)); /* 0x2B03AD5B: mov edx, dword ptr [ebp - 0x10] */ 5283 MEM32(eax + 0x8) = ecx; /* 0x2B03AD5E: mov dword ptr [eax + 8], ecx */ 5284 PUSH32(esp, ebx); /* 0x2B03AD61: push ebx */ 5285 ecx = edi; /* 0x2B03AD62: mov ecx, edi */ 5286 MEM32(eax + 0xC) = edx; /* 0x2B03AD64: mov dword ptr [eax + 0xc], edx */ 5287 RECOMP_ICALL(MEM32(0x2B0B599C)); /* 0x2B03AD67: call dword ptr [0x2b0b599c] */ 5288 RECOMP_FLAGS_IN(); 5289 MEM32(edi) = 0x2B0B68B4u; /* 0x2B03AD6D: mov dword ptr [edi], 0x2b0b68b4 */ 5290 goto L_2B03AD77; /* 0x2B03AD73: jmp 0x2b03ad77 */ 5291 L_2B03AD75: 5292 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5293 edi = 0; /* 0x2B03AD75: xor edi, edi */ 5294 _cf = 0; 5295 _flag_k = FK_TEST; 5296 L_2B03AD77: 5297 PUSH32(esp, 0x10u); /* 0x2B03AD77: push 0x10 */ 5298 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B03AD79: mov byte ptr [ebp - 4], bl */ 5299 MEM32(esi + 0x5C) = edi; /* 0x2B03AD7C: mov dword ptr [esi + 0x5c], edi */ 5300 RECOMP_ICALL(0x2B0AB212u); /* 0x2B03AD7F: call 0x2b0ab212 */ /* not lifted */ 5301 RECOMP_FLAGS_IN(); 5302 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5303 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5304 esp = esp + 4; /* 0x2B03AD84: add esp, 4 */ 5305 _flag_k = FK_ADD; 5306 MEM32(ebp + (-0x1C)) = eax; /* 0x2B03AD87: mov dword ptr [ebp - 0x1c], eax */ 5307 /* cmp eax, ebx */ /* 0x2B03AD8A: cmp eax, ebx */ 5308 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5309 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5310 _flag_k = FK_CMP; 5311 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B03AD8C: mov byte ptr [ebp - 4], 5 */ 5312 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B03AD9B; /* 0x2B03AD90: je 0x2b03ad9b */ 5313 L_2B03AD92: 5314 ecx = eax; /* 0x2B03AD92: mov ecx, eax */ 5315 RECOMP_ICALL(0x2B03BCC0u); /* 0x2B03AD94: call 0x2b03bcc0 */ /* not lifted */ 5316 RECOMP_FLAGS_IN(); 5317 goto L_2B03AD9D; /* 0x2B03AD99: jmp 0x2b03ad9d */ 5318 L_2B03AD9B: 5319 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5320 eax = 0; /* 0x2B03AD9B: xor eax, eax */ 5321 _cf = 0; 5322 _flag_k = FK_TEST; 5323 L_2B03AD9D: 5324 PUSH32(esp, 0xBB9u); /* 0x2B03AD9D: push 0xbb9 */ 5325 ecx = esi; /* 0x2B03ADA2: mov ecx, esi */ 5326 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B03ADA4: mov byte ptr [ebp - 4], bl */ 5327 MEM32(esi + 0x70) = eax; /* 0x2B03ADA7: mov dword ptr [esi + 0x70], eax */ 5328 RECOMP_ICALL(MEM32(0x2B0B59A0)); /* 0x2B03ADAA: call dword ptr [0x2b0b59a0] */ 5329 RECOMP_FLAGS_IN(); 5330 ecx = MEM32(0x2B0EE9D0); /* 0x2B03ADB0: mov ecx, dword ptr [0x2b0ee9d0] */ 5331 eax = MEM32(0x2B0EE9CC); /* 0x2B03ADB6: mov eax, dword ptr [0x2b0ee9cc] */ 5332 edx = ebp + (-0x34); /* 0x2B03ADBB: lea edx, [ebp - 0x34] */ 5333 MEM32(ebp + (-0x30)) = ecx; /* 0x2B03ADBE: mov dword ptr [ebp - 0x30], ecx */ 5334 PUSH32(esp, edx); /* 0x2B03ADC1: push edx */ 5335 ecx = esi; /* 0x2B03ADC2: mov ecx, esi */ 5336 MEM32(ebp + (-0x34)) = eax; /* 0x2B03ADC4: mov dword ptr [ebp - 0x34], eax */ 5337 RECOMP_ICALL(MEM32(0x2B0B5C18)); /* 0x2B03ADC7: call dword ptr [0x2b0b5c18] */ 5338 RECOMP_FLAGS_IN(); 5339 eax = ebp + (-0x2C); /* 0x2B03ADCD: lea eax, [ebp - 0x2c] */ 5340 PUSH32(esp, eax); /* 0x2B03ADD0: push eax */ 5341 ecx = esi; /* 0x2B03ADD1: mov ecx, esi */ 5342 RECOMP_ICALL(MEM32(0x2B0B5C1C)); /* 0x2B03ADD3: call dword ptr [0x2b0b5c1c] */ 5343 RECOMP_FLAGS_IN(); 5344 ecx = MEM32(ebp + (-0xC)); /* 0x2B03ADD9: mov ecx, dword ptr [ebp - 0xc] */ 5345 edi = POP32_VAL(esp); /* 0x2B03ADDC: pop edi */ 5346 eax = esi; /* 0x2B03ADDD: mov eax, esi */ 5347 esi = POP32_VAL(esp); /* 0x2B03ADDF: pop esi */ 5348 MEM32(FS_BASE + (0)) = ecx; /* 0x2B03ADE0: mov dword ptr fs:[0], ecx */ 5349 ebx = POP32_VAL(esp); /* 0x2B03ADE7: pop ebx */ 5350 esp = ebp; /* 0x2B03ADE8: mov esp, ebp */ 5351 ebp = POP32_VAL(esp); /* 0x2B03ADEA: pop ebp */ 5352 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03ADEB: ret */ 5353 RECOMP_REGS_OUT(); 5354 } 5355 5356 void sub_2B03ADF0(void) { 5357 int _fpu_cmp = 0; 5358 uint32_t _cf = 0; 5359 int _df = 1; 5360 uint32_t _flag_k = FK_NONE; 5361 uint32_t _flag_a = 0, _flag_b = 0; 5362 uint32_t _itail_tgt = 0; 5363 RECOMP_REGS_LOCALS 5364 RECOMP_ENTER(0x2B03ADF0u); 5365 5366 L_2B03ADF0: 5367 eax = 0x2B0B68E8u; /* 0x2B03ADF0: mov eax, 0x2b0b68e8 */ 5368 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03ADF5: ret */ 5369 RECOMP_REGS_OUT(); 5370 } 5371 5372 void sub_2B03AE00(void) { 5373 int _fpu_cmp = 0; 5374 uint32_t _cf = 0; 5375 int _df = 1; 5376 uint32_t _flag_k = FK_NONE; 5377 uint32_t _flag_a = 0, _flag_b = 0; 5378 uint32_t _itail_tgt = 0; 5379 RECOMP_REGS_LOCALS 5380 RECOMP_ENTER(0x2B03AE00u); 5381 5382 L_2B03AE00: 5383 PUSH32(esp, ebp); /* 0x2B03AE00: push ebp */ 5384 ebp = esp; /* 0x2B03AE01: mov ebp, esp */ 5385 PUSH32(esp, esi); /* 0x2B03AE03: push esi */ 5386 esi = ecx; /* 0x2B03AE04: mov esi, ecx */ 5387 RECOMP_ICALL(0x2B03AE60u); /* 0x2B03AE06: call 0x2b03ae60 */ /* not lifted */ 5388 RECOMP_FLAGS_IN(); 5389 /* test MEM8(ebp + 0x8), 1 */ /* 0x2B03AE0B: test byte ptr [ebp + 8], 1 */ 5390 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 5391 _cf = 0; 5392 _flag_k = FK_NARROW(FK_TEST, 24); 5393 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03AE1A; /* 0x2B03AE0F: je 0x2b03ae1a */ 5394 L_2B03AE11: 5395 PUSH32(esp, esi); /* 0x2B03AE11: push esi */ 5396 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B03AE12: call 0x2b0ab1ba */ /* not lifted */ 5397 RECOMP_FLAGS_IN(); 5398 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5399 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5400 esp = esp + 4; /* 0x2B03AE17: add esp, 4 */ 5401 _flag_k = FK_ADD; 5402 L_2B03AE1A: 5403 eax = esi; /* 0x2B03AE1A: mov eax, esi */ 5404 esi = POP32_VAL(esp); /* 0x2B03AE1C: pop esi */ 5405 ebp = POP32_VAL(esp); /* 0x2B03AE1D: pop ebp */ 5406 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B03AE1E: ret 4 */ 5407 RECOMP_REGS_OUT(); 5408 } 5409 5410 void sub_2B03AE30(void) { 5411 int _fpu_cmp = 0; 5412 uint32_t _cf = 0; 5413 int _df = 1; 5414 uint32_t _flag_k = FK_NONE; 5415 uint32_t _flag_a = 0, _flag_b = 0; 5416 uint32_t _itail_tgt = 0; 5417 RECOMP_REGS_LOCALS 5418 RECOMP_ENTER(0x2B03AE30u); 5419 5420 L_2B03AE30: 5421 PUSH32(esp, ebp); /* 0x2B03AE30: push ebp */ 5422 ebp = esp; /* 0x2B03AE31: mov ebp, esp */ 5423 PUSH32(esp, esi); /* 0x2B03AE33: push esi */ 5424 esi = ecx; /* 0x2B03AE34: mov esi, ecx */ 5425 RECOMP_ICALL(MEM32(0x2B0B598C)); /* 0x2B03AE36: call dword ptr [0x2b0b598c] */ 5426 RECOMP_FLAGS_IN(); 5427 /* test MEM8(ebp + 0x8), 1 */ /* 0x2B03AE3C: test byte ptr [ebp + 8], 1 */ 5428 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 5429 _cf = 0; 5430 _flag_k = FK_NARROW(FK_TEST, 24); 5431 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03AE4B; /* 0x2B03AE40: je 0x2b03ae4b */ 5432 L_2B03AE42: 5433 PUSH32(esp, esi); /* 0x2B03AE42: push esi */ 5434 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B03AE43: call 0x2b0ab1ba */ /* not lifted */ 5435 RECOMP_FLAGS_IN(); 5436 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5437 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5438 esp = esp + 4; /* 0x2B03AE48: add esp, 4 */ 5439 _flag_k = FK_ADD; 5440 L_2B03AE4B: 5441 eax = esi; /* 0x2B03AE4B: mov eax, esi */ 5442 esi = POP32_VAL(esp); /* 0x2B03AE4D: pop esi */ 5443 ebp = POP32_VAL(esp); /* 0x2B03AE4E: pop ebp */ 5444 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B03AE4F: ret 4 */ 5445 RECOMP_REGS_OUT(); 5446 } 5447 5448 void sub_2B03AE60(void) { 5449 int _fpu_cmp = 0; 5450 uint32_t _cf = 0; 5451 int _df = 1; 5452 uint32_t _flag_k = FK_NONE; 5453 uint32_t _flag_a = 0, _flag_b = 0; 5454 uint32_t _itail_tgt = 0; 5455 RECOMP_REGS_LOCALS 5456 RECOMP_ENTER(0x2B03AE60u); 5457 5458 L_2B03AE60: 5459 PUSH32(esp, ebp); /* 0x2B03AE60: push ebp */ 5460 ebp = esp; /* 0x2B03AE61: mov ebp, esp */ 5461 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B03AE63: push -1 */ 5462 PUSH32(esp, 0x2B0AE8D9u); /* 0x2B03AE65: push 0x2b0ae8d9 */ 5463 eax = MEM32(FS_BASE + (0)); /* 0x2B03AE6A: mov eax, dword ptr fs:[0] */ 5464 PUSH32(esp, eax); /* 0x2B03AE70: push eax */ 5465 MEM32(FS_BASE + (0)) = esp; /* 0x2B03AE71: mov dword ptr fs:[0], esp */ 5466 PUSH32(esp, ecx); /* 0x2B03AE78: push ecx */ 5467 PUSH32(esp, esi); /* 0x2B03AE79: push esi */ 5468 esi = ecx; /* 0x2B03AE7A: mov esi, ecx */ 5469 PUSH32(esp, edi); /* 0x2B03AE7C: push edi */ 5470 MEM32(ebp + (-0x10)) = esi; /* 0x2B03AE7D: mov dword ptr [ebp - 0x10], esi */ 5471 MEM32(esi) = 0x2B0B68C8u; /* 0x2B03AE80: mov dword ptr [esi], 0x2b0b68c8 */ 5472 ecx = MEM32(esi + 0x58); /* 0x2B03AE86: mov ecx, dword ptr [esi + 0x58] */ 5473 /* test ecx, ecx */ /* 0x2B03AE89: test ecx, ecx */ 5474 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5475 _cf = 0; 5476 _flag_k = FK_TEST; 5477 MEM32(ebp + (-0x4)) = 0; /* 0x2B03AE8B: mov dword ptr [ebp - 4], 0 */ 5478 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03AE9A; /* 0x2B03AE92: je 0x2b03ae9a */ 5479 L_2B03AE94: 5480 eax = MEM32(ecx); /* 0x2B03AE94: mov eax, dword ptr [ecx] */ 5481 PUSH32(esp, 1); /* 0x2B03AE96: push 1 */ 5482 RECOMP_ICALL(MEM32(eax)); /* 0x2B03AE98: call dword ptr [eax] */ 5483 RECOMP_FLAGS_IN(); 5484 L_2B03AE9A: 5485 edi = MEM32(esi + 0x70); /* 0x2B03AE9A: mov edi, dword ptr [esi + 0x70] */ 5486 /* test edi, edi */ /* 0x2B03AE9D: test edi, edi */ 5487 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5488 _cf = 0; 5489 _flag_k = FK_TEST; 5490 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03AEB1; /* 0x2B03AE9F: je 0x2b03aeb1 */ 5491 L_2B03AEA1: 5492 ecx = edi; /* 0x2B03AEA1: mov ecx, edi */ 5493 RECOMP_ICALL(0x2B03BE00u); /* 0x2B03AEA3: call 0x2b03be00 */ /* not lifted */ 5494 RECOMP_FLAGS_IN(); 5495 PUSH32(esp, edi); /* 0x2B03AEA8: push edi */ 5496 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B03AEA9: call 0x2b0ab1ba */ /* not lifted */ 5497 RECOMP_FLAGS_IN(); 5498 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5499 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5500 esp = esp + 4; /* 0x2B03AEAE: add esp, 4 */ 5501 _flag_k = FK_ADD; 5502 L_2B03AEB1: 5503 edi = MEM32(esi + 0x54); /* 0x2B03AEB1: mov edi, dword ptr [esi + 0x54] */ 5504 /* test edi, edi */ /* 0x2B03AEB4: test edi, edi */ 5505 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5506 _cf = 0; 5507 _flag_k = FK_TEST; 5508 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03AEC9; /* 0x2B03AEB6: je 0x2b03aec9 */ 5509 L_2B03AEB8: 5510 ecx = edi; /* 0x2B03AEB8: mov ecx, edi */ 5511 RECOMP_ICALL(MEM32(0x2B0B5984)); /* 0x2B03AEBA: call dword ptr [0x2b0b5984] */ 5512 RECOMP_FLAGS_IN(); 5513 PUSH32(esp, edi); /* 0x2B03AEC0: push edi */ 5514 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B03AEC1: call 0x2b0ab1ba */ /* not lifted */ 5515 RECOMP_FLAGS_IN(); 5516 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5517 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5518 esp = esp + 4; /* 0x2B03AEC6: add esp, 4 */ 5519 _flag_k = FK_ADD; 5520 L_2B03AEC9: 5521 ecx = MEM32(esi + 0x5C); /* 0x2B03AEC9: mov ecx, dword ptr [esi + 0x5c] */ 5522 /* test ecx, ecx */ /* 0x2B03AECC: test ecx, ecx */ 5523 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5524 _cf = 0; 5525 _flag_k = FK_TEST; 5526 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03AED6; /* 0x2B03AECE: je 0x2b03aed6 */ 5527 L_2B03AED0: 5528 edx = MEM32(ecx); /* 0x2B03AED0: mov edx, dword ptr [ecx] */ 5529 PUSH32(esp, 1); /* 0x2B03AED2: push 1 */ 5530 RECOMP_ICALL(MEM32(edx)); /* 0x2B03AED4: call dword ptr [edx] */ 5531 RECOMP_FLAGS_IN(); 5532 L_2B03AED6: 5533 ecx = esi; /* 0x2B03AED6: mov ecx, esi */ 5534 RECOMP_ICALL(0x2B03AF30u); /* 0x2B03AED8: call 0x2b03af30 */ /* not lifted */ 5535 RECOMP_FLAGS_IN(); 5536 PUSH32(esp, 0); /* 0x2B03AEDD: push 0 */ 5537 ecx = esi; /* 0x2B03AEDF: mov ecx, esi */ 5538 RECOMP_ICALL(MEM32(0x2B0B5988)); /* 0x2B03AEE1: call dword ptr [0x2b0b5988] */ 5539 RECOMP_FLAGS_IN(); 5540 edi = MEM32(0x2B0EE9DC); /* 0x2B03AEE7: mov edi, dword ptr [0x2b0ee9dc] */ 5541 /* test edi, edi */ /* 0x2B03AEED: test edi, edi */ 5542 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5543 _cf = 0; 5544 _flag_k = FK_TEST; 5545 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03AF02; /* 0x2B03AEEF: je 0x2b03af02 */ 5546 L_2B03AEF1: 5547 ecx = edi; /* 0x2B03AEF1: mov ecx, edi */ 5548 RECOMP_ICALL(MEM32(0x2B0B5BC4)); /* 0x2B03AEF3: call dword ptr [0x2b0b5bc4] */ 5549 RECOMP_FLAGS_IN(); 5550 PUSH32(esp, edi); /* 0x2B03AEF9: push edi */ 5551 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B03AEFA: call 0x2b0ab1ba */ /* not lifted */ 5552 RECOMP_FLAGS_IN(); 5553 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5554 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5555 esp = esp + 4; /* 0x2B03AEFF: add esp, 4 */ 5556 _flag_k = FK_ADD; 5557 L_2B03AF02: 5558 ecx = esi; /* 0x2B03AF02: mov ecx, esi */ 5559 MEM32(0x2B0EE9DC) = 0; /* 0x2B03AF04: mov dword ptr [0x2b0ee9dc], 0 */ 5560 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B03AF0E: mov dword ptr [ebp - 4], 0xffffffff */ 5561 RECOMP_ICALL(MEM32(0x2B0B59A4)); /* 0x2B03AF15: call dword ptr [0x2b0b59a4] */ 5562 RECOMP_FLAGS_IN(); 5563 ecx = MEM32(ebp + (-0xC)); /* 0x2B03AF1B: mov ecx, dword ptr [ebp - 0xc] */ 5564 edi = POP32_VAL(esp); /* 0x2B03AF1E: pop edi */ 5565 esi = POP32_VAL(esp); /* 0x2B03AF1F: pop esi */ 5566 MEM32(FS_BASE + (0)) = ecx; /* 0x2B03AF20: mov dword ptr fs:[0], ecx */ 5567 esp = ebp; /* 0x2B03AF27: mov esp, ebp */ 5568 ebp = POP32_VAL(esp); /* 0x2B03AF29: pop ebp */ 5569 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03AF2A: ret */ 5570 RECOMP_REGS_OUT(); 5571 } 5572 5573 void sub_2B03AF30(void) { 5574 int _fpu_cmp = 0; 5575 uint32_t _cf = 0; 5576 int _df = 1; 5577 uint32_t _flag_k = FK_NONE; 5578 uint32_t _flag_a = 0, _flag_b = 0; 5579 uint32_t _itail_tgt = 0; 5580 RECOMP_REGS_LOCALS 5581 RECOMP_ENTER(0x2B03AF30u); 5582 5583 L_2B03AF30: 5584 PUSH32(esp, esi); /* 0x2B03AF30: push esi */ 5585 PUSH32(esp, edi); /* 0x2B03AF31: push edi */ 5586 edi = MEM32(0x2B0EE9AC); /* 0x2B03AF32: mov edi, dword ptr [0x2b0ee9ac] */ 5587 esi = MEM32(edi); /* 0x2B03AF38: mov esi, dword ptr [edi] */ 5588 /* cmp esi, edi */ /* 0x2B03AF3A: cmp esi, edi */ 5589 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 5590 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5591 _flag_k = FK_CMP; 5592 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B03AF6B; /* 0x2B03AF3C: je 0x2b03af6b */ 5593 L_2B03AF3E: 5594 eax = esi; /* 0x2B03AF3E: mov eax, esi */ 5595 ecx = MEM32(eax + 0x4); /* 0x2B03AF40: mov ecx, dword ptr [eax + 4] */ 5596 edx = MEM32(eax); /* 0x2B03AF43: mov edx, dword ptr [eax] */ 5597 esi = MEM32(esi); /* 0x2B03AF45: mov esi, dword ptr [esi] */ 5598 MEM32(ecx) = edx; /* 0x2B03AF47: mov dword ptr [ecx], edx */ 5599 ecx = MEM32(eax); /* 0x2B03AF49: mov ecx, dword ptr [eax] */ 5600 edx = MEM32(eax + 0x4); /* 0x2B03AF4B: mov edx, dword ptr [eax + 4] */ 5601 PUSH32(esp, eax); /* 0x2B03AF4E: push eax */ 5602 MEM32(ecx + 0x4) = edx; /* 0x2B03AF4F: mov dword ptr [ecx + 4], edx */ 5603 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B03AF52: call 0x2b0ab1ba */ /* not lifted */ 5604 RECOMP_FLAGS_IN(); 5605 ecx = MEM32(0x2B0EE9B0); /* 0x2B03AF57: mov ecx, dword ptr [0x2b0ee9b0] */ 5606 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5607 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5608 esp = esp + 4; /* 0x2B03AF5D: add esp, 4 */ 5609 _flag_k = FK_ADD; 5610 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5611 ecx = ecx - 1; /* 0x2B03AF60: dec ecx */ 5612 _flag_k = FK_DEC; 5613 /* cmp esi, edi */ /* 0x2B03AF61: cmp esi, edi */ 5614 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 5615 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5616 _flag_k = FK_CMP; 5617 MEM32(0x2B0EE9B0) = ecx; /* 0x2B03AF63: mov dword ptr [0x2b0ee9b0], ecx */ 5618 RECOMP_BACKEDGE(); 5619 if (CMP_NE(_flag_a, _flag_b)) goto L_2B03AF3E; /* 0x2B03AF69: jne 0x2b03af3e */ 5620 L_2B03AF6B: 5621 edi = MEM32(0x2B0EE99C); /* 0x2B03AF6B: mov edi, dword ptr [0x2b0ee99c] */ 5622 esi = MEM32(edi); /* 0x2B03AF71: mov esi, dword ptr [edi] */ 5623 /* cmp esi, edi */ /* 0x2B03AF73: cmp esi, edi */ 5624 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 5625 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5626 _flag_k = FK_CMP; 5627 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B03AFA4; /* 0x2B03AF75: je 0x2b03afa4 */ 5628 L_2B03AF77: 5629 eax = esi; /* 0x2B03AF77: mov eax, esi */ 5630 ecx = MEM32(eax + 0x4); /* 0x2B03AF79: mov ecx, dword ptr [eax + 4] */ 5631 edx = MEM32(eax); /* 0x2B03AF7C: mov edx, dword ptr [eax] */ 5632 esi = MEM32(esi); /* 0x2B03AF7E: mov esi, dword ptr [esi] */ 5633 MEM32(ecx) = edx; /* 0x2B03AF80: mov dword ptr [ecx], edx */ 5634 ecx = MEM32(eax); /* 0x2B03AF82: mov ecx, dword ptr [eax] */ 5635 edx = MEM32(eax + 0x4); /* 0x2B03AF84: mov edx, dword ptr [eax + 4] */ 5636 PUSH32(esp, eax); /* 0x2B03AF87: push eax */ 5637 MEM32(ecx + 0x4) = edx; /* 0x2B03AF88: mov dword ptr [ecx + 4], edx */ 5638 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B03AF8B: call 0x2b0ab1ba */ /* not lifted */ 5639 RECOMP_FLAGS_IN(); 5640 ecx = MEM32(0x2B0EE9A0); /* 0x2B03AF90: mov ecx, dword ptr [0x2b0ee9a0] */ 5641 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5642 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5643 esp = esp + 4; /* 0x2B03AF96: add esp, 4 */ 5644 _flag_k = FK_ADD; 5645 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5646 ecx = ecx - 1; /* 0x2B03AF99: dec ecx */ 5647 _flag_k = FK_DEC; 5648 /* cmp esi, edi */ /* 0x2B03AF9A: cmp esi, edi */ 5649 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 5650 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5651 _flag_k = FK_CMP; 5652 MEM32(0x2B0EE9A0) = ecx; /* 0x2B03AF9C: mov dword ptr [0x2b0ee9a0], ecx */ 5653 RECOMP_BACKEDGE(); 5654 if (CMP_NE(_flag_a, _flag_b)) goto L_2B03AF77; /* 0x2B03AFA2: jne 0x2b03af77 */ 5655 L_2B03AFA4: 5656 edi = POP32_VAL(esp); /* 0x2B03AFA4: pop edi */ 5657 esi = POP32_VAL(esp); /* 0x2B03AFA5: pop esi */ 5658 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03AFA6: ret */ 5659 RECOMP_REGS_OUT(); 5660 } 5661 5662 void sub_2B03AFB0(void) { 5663 int _fpu_cmp = 0; 5664 uint32_t _cf = 0; 5665 int _df = 1; 5666 uint32_t _flag_k = FK_NONE; 5667 uint32_t _flag_a = 0, _flag_b = 0; 5668 uint32_t _itail_tgt = 0; 5669 RECOMP_REGS_LOCALS 5670 RECOMP_ENTER(0x2B03AFB0u); 5671 5672 L_2B03AFB0: 5673 PUSH32(esp, ebp); /* 0x2B03AFB0: push ebp */ 5674 ebp = esp; /* 0x2B03AFB1: mov ebp, esp */ 5675 SET_LO8(eax, MEM8(ebp + 0xC)); /* 0x2B03AFB3: mov al, byte ptr [ebp + 0xc] */ 5676 /* test LO8(eax), LO8(eax) */ /* 0x2B03AFB6: test al, al */ 5677 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5678 _cf = 0; 5679 _flag_k = FK_NARROW(FK_TEST, 24); 5680 PUSH32(esp, esi); /* 0x2B03AFB8: push esi */ 5681 PUSH32(esp, edi); /* 0x2B03AFB9: push edi */ 5682 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B007; /* 0x2B03AFBA: jne 0x2b03b007 */ 5683 L_2B03AFBC: 5684 esi = MEM32(0x2B0EE9AC); /* 0x2B03AFBC: mov esi, dword ptr [0x2b0ee9ac] */ 5685 edi = MEM32(esi + 0x4); /* 0x2B03AFC2: mov edi, dword ptr [esi + 4] */ 5686 PUSH32(esp, 0xCu); /* 0x2B03AFC5: push 0xc */ 5687 RECOMP_ICALL(0x2B0AB212u); /* 0x2B03AFC7: call 0x2b0ab212 */ /* not lifted */ 5688 RECOMP_FLAGS_IN(); 5689 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5690 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5691 esp = esp + 4; /* 0x2B03AFCC: add esp, 4 */ 5692 _flag_k = FK_ADD; 5693 /* test esi, esi */ /* 0x2B03AFCF: test esi, esi */ 5694 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 5695 _cf = 0; 5696 _flag_k = FK_TEST; 5697 ecx = esi; /* 0x2B03AFD1: mov ecx, esi */ 5698 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03AFD7; /* 0x2B03AFD3: jne 0x2b03afd7 */ 5699 L_2B03AFD5: 5700 ecx = eax; /* 0x2B03AFD5: mov ecx, eax */ 5701 L_2B03AFD7: 5702 /* test edi, edi */ /* 0x2B03AFD7: test edi, edi */ 5703 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5704 _cf = 0; 5705 _flag_k = FK_TEST; 5706 MEM32(eax) = ecx; /* 0x2B03AFD9: mov dword ptr [eax], ecx */ 5707 ecx = edi; /* 0x2B03AFDB: mov ecx, edi */ 5708 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03AFE1; /* 0x2B03AFDD: jne 0x2b03afe1 */ 5709 L_2B03AFDF: 5710 ecx = eax; /* 0x2B03AFDF: mov ecx, eax */ 5711 L_2B03AFE1: 5712 MEM32(eax + 0x4) = ecx; /* 0x2B03AFE1: mov dword ptr [eax + 4], ecx */ 5713 MEM32(esi + 0x4) = eax; /* 0x2B03AFE4: mov dword ptr [esi + 4], eax */ 5714 ecx = MEM32(eax + 0x4); /* 0x2B03AFE7: mov ecx, dword ptr [eax + 4] */ 5715 MEM32(ecx) = eax; /* 0x2B03AFEA: mov dword ptr [ecx], eax */ 5716 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 5717 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5718 eax = eax + 8; /* 0x2B03AFEC: add eax, 8 */ 5719 _flag_k = FK_ADD; 5720 /* test eax, eax */ /* 0x2B03AFEF: test eax, eax */ 5721 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5722 _cf = 0; 5723 _flag_k = FK_TEST; 5724 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03AFF8; /* 0x2B03AFF1: je 0x2b03aff8 */ 5725 L_2B03AFF3: 5726 edx = MEM32(ebp + 0x8); /* 0x2B03AFF3: mov edx, dword ptr [ebp + 8] */ 5727 MEM32(eax) = edx; /* 0x2B03AFF6: mov dword ptr [eax], edx */ 5728 L_2B03AFF8: 5729 _flag_a = (uint32_t)(MEM32(0x2B0EE9B0)); _flag_b = (uint32_t)(1); 5730 MEM32(0x2B0EE9B0) = MEM32(0x2B0EE9B0) + 1; /* 0x2B03AFF8: inc dword ptr [0x2b0ee9b0] */ 5731 _flag_k = FK_INC; 5732 RECOMP_ICALL(0x2B03B100u); /* 0x2B03AFFE: call 0x2b03b100 */ /* not lifted */ 5733 RECOMP_FLAGS_IN(); 5734 edi = POP32_VAL(esp); /* 0x2B03B003: pop edi */ 5735 esi = POP32_VAL(esp); /* 0x2B03B004: pop esi */ 5736 ebp = POP32_VAL(esp); /* 0x2B03B005: pop ebp */ 5737 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03B006: ret */ 5738 L_2B03B007: 5739 esi = MEM32(0x2B0EE99C); /* 0x2B03B007: mov esi, dword ptr [0x2b0ee99c] */ 5740 edi = MEM32(esi + 0x4); /* 0x2B03B00D: mov edi, dword ptr [esi + 4] */ 5741 PUSH32(esp, 0xCu); /* 0x2B03B010: push 0xc */ 5742 RECOMP_ICALL(0x2B0AB212u); /* 0x2B03B012: call 0x2b0ab212 */ /* not lifted */ 5743 RECOMP_FLAGS_IN(); 5744 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5745 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5746 esp = esp + 4; /* 0x2B03B017: add esp, 4 */ 5747 _flag_k = FK_ADD; 5748 /* test esi, esi */ /* 0x2B03B01A: test esi, esi */ 5749 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 5750 _cf = 0; 5751 _flag_k = FK_TEST; 5752 ecx = esi; /* 0x2B03B01C: mov ecx, esi */ 5753 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B022; /* 0x2B03B01E: jne 0x2b03b022 */ 5754 L_2B03B020: 5755 ecx = eax; /* 0x2B03B020: mov ecx, eax */ 5756 L_2B03B022: 5757 /* test edi, edi */ /* 0x2B03B022: test edi, edi */ 5758 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5759 _cf = 0; 5760 _flag_k = FK_TEST; 5761 MEM32(eax) = ecx; /* 0x2B03B024: mov dword ptr [eax], ecx */ 5762 ecx = edi; /* 0x2B03B026: mov ecx, edi */ 5763 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B02C; /* 0x2B03B028: jne 0x2b03b02c */ 5764 L_2B03B02A: 5765 ecx = eax; /* 0x2B03B02A: mov ecx, eax */ 5766 L_2B03B02C: 5767 MEM32(eax + 0x4) = ecx; /* 0x2B03B02C: mov dword ptr [eax + 4], ecx */ 5768 MEM32(esi + 0x4) = eax; /* 0x2B03B02F: mov dword ptr [esi + 4], eax */ 5769 ecx = MEM32(eax + 0x4); /* 0x2B03B032: mov ecx, dword ptr [eax + 4] */ 5770 MEM32(ecx) = eax; /* 0x2B03B035: mov dword ptr [ecx], eax */ 5771 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 5772 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5773 eax = eax + 8; /* 0x2B03B037: add eax, 8 */ 5774 _flag_k = FK_ADD; 5775 /* test eax, eax */ /* 0x2B03B03A: test eax, eax */ 5776 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5777 _cf = 0; 5778 _flag_k = FK_TEST; 5779 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03B043; /* 0x2B03B03C: je 0x2b03b043 */ 5780 L_2B03B03E: 5781 edx = MEM32(ebp + 0x8); /* 0x2B03B03E: mov edx, dword ptr [ebp + 8] */ 5782 MEM32(eax) = edx; /* 0x2B03B041: mov dword ptr [eax], edx */ 5783 L_2B03B043: 5784 _flag_a = (uint32_t)(MEM32(0x2B0EE9A0)); _flag_b = (uint32_t)(1); 5785 MEM32(0x2B0EE9A0) = MEM32(0x2B0EE9A0) + 1; /* 0x2B03B043: inc dword ptr [0x2b0ee9a0] */ 5786 _flag_k = FK_INC; 5787 RECOMP_ICALL(0x2B03B100u); /* 0x2B03B049: call 0x2b03b100 */ /* not lifted */ 5788 RECOMP_FLAGS_IN(); 5789 edi = POP32_VAL(esp); /* 0x2B03B04E: pop edi */ 5790 esi = POP32_VAL(esp); /* 0x2B03B04F: pop esi */ 5791 ebp = POP32_VAL(esp); /* 0x2B03B050: pop ebp */ 5792 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03B051: ret */ 5793 RECOMP_REGS_OUT(); 5794 } 5795 5796 void sub_2B03B060(void) { 5797 int _fpu_cmp = 0; 5798 uint32_t _cf = 0; 5799 int _df = 1; 5800 uint32_t _flag_k = FK_NONE; 5801 uint32_t _flag_a = 0, _flag_b = 0; 5802 uint32_t _itail_tgt = 0; 5803 RECOMP_REGS_LOCALS 5804 RECOMP_ENTER(0x2B03B060u); 5805 5806 L_2B03B060: 5807 PUSH32(esp, ebp); /* 0x2B03B060: push ebp */ 5808 ebp = esp; /* 0x2B03B061: mov ebp, esp */ 5809 SET_LO8(eax, MEM8(ebp + 0xC)); /* 0x2B03B063: mov al, byte ptr [ebp + 0xc] */ 5810 /* test LO8(eax), LO8(eax) */ /* 0x2B03B066: test al, al */ 5811 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5812 _cf = 0; 5813 _flag_k = FK_NARROW(FK_TEST, 24); 5814 PUSH32(esp, ebx); /* 0x2B03B068: push ebx */ 5815 PUSH32(esp, esi); /* 0x2B03B069: push esi */ 5816 PUSH32(esp, edi); /* 0x2B03B06A: push edi */ 5817 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B0B5; /* 0x2B03B06B: jne 0x2b03b0b5 */ 5818 L_2B03B06D: 5819 edi = MEM32(0x2B0EE9AC); /* 0x2B03B06D: mov edi, dword ptr [0x2b0ee9ac] */ 5820 esi = MEM32(edi); /* 0x2B03B073: mov esi, dword ptr [edi] */ 5821 /* cmp esi, edi */ /* 0x2B03B075: cmp esi, edi */ 5822 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 5823 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5824 _flag_k = FK_CMP; 5825 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B03B0F8; /* 0x2B03B077: je 0x2b03b0f8 */ 5826 L_2B03B079: 5827 ebx = MEM32(ebp + 0x8); /* 0x2B03B079: mov ebx, dword ptr [ebp + 8] */ 5828 L_2B03B07C: 5829 /* cmp MEM32(esi + 0x8), ebx */ /* 0x2B03B07C: cmp dword ptr [esi + 8], ebx */ 5830 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(ebx); 5831 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5832 _flag_k = FK_CMP; 5833 if (CMP_NE(_flag_a, _flag_b)) goto L_2B03B0AA; /* 0x2B03B07F: jne 0x2b03b0aa */ 5834 L_2B03B081: 5835 eax = esi; /* 0x2B03B081: mov eax, esi */ 5836 ecx = MEM32(eax + 0x4); /* 0x2B03B083: mov ecx, dword ptr [eax + 4] */ 5837 edx = MEM32(eax); /* 0x2B03B086: mov edx, dword ptr [eax] */ 5838 esi = MEM32(esi); /* 0x2B03B088: mov esi, dword ptr [esi] */ 5839 MEM32(ecx) = edx; /* 0x2B03B08A: mov dword ptr [ecx], edx */ 5840 ecx = MEM32(eax); /* 0x2B03B08C: mov ecx, dword ptr [eax] */ 5841 edx = MEM32(eax + 0x4); /* 0x2B03B08E: mov edx, dword ptr [eax + 4] */ 5842 PUSH32(esp, eax); /* 0x2B03B091: push eax */ 5843 MEM32(ecx + 0x4) = edx; /* 0x2B03B092: mov dword ptr [ecx + 4], edx */ 5844 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B03B095: call 0x2b0ab1ba */ /* not lifted */ 5845 RECOMP_FLAGS_IN(); 5846 eax = MEM32(0x2B0EE9B0); /* 0x2B03B09A: mov eax, dword ptr [0x2b0ee9b0] */ 5847 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5848 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5849 esp = esp + 4; /* 0x2B03B09F: add esp, 4 */ 5850 _flag_k = FK_ADD; 5851 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5852 eax = eax - 1; /* 0x2B03B0A2: dec eax */ 5853 _flag_k = FK_DEC; 5854 MEM32(0x2B0EE9B0) = eax; /* 0x2B03B0A3: mov dword ptr [0x2b0ee9b0], eax */ 5855 goto L_2B03B0AC; /* 0x2B03B0A8: jmp 0x2b03b0ac */ 5856 L_2B03B0AA: 5857 esi = MEM32(esi); /* 0x2B03B0AA: mov esi, dword ptr [esi] */ 5858 L_2B03B0AC: 5859 /* cmp esi, edi */ /* 0x2B03B0AC: cmp esi, edi */ 5860 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 5861 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5862 _flag_k = FK_CMP; 5863 RECOMP_BACKEDGE(); 5864 if (CMP_NE(_flag_a, _flag_b)) goto L_2B03B07C; /* 0x2B03B0AE: jne 0x2b03b07c */ 5865 L_2B03B0B0: 5866 edi = POP32_VAL(esp); /* 0x2B03B0B0: pop edi */ 5867 esi = POP32_VAL(esp); /* 0x2B03B0B1: pop esi */ 5868 ebx = POP32_VAL(esp); /* 0x2B03B0B2: pop ebx */ 5869 ebp = POP32_VAL(esp); /* 0x2B03B0B3: pop ebp */ 5870 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03B0B4: ret */ 5871 L_2B03B0B5: 5872 edi = MEM32(0x2B0EE99C); /* 0x2B03B0B5: mov edi, dword ptr [0x2b0ee99c] */ 5873 esi = MEM32(edi); /* 0x2B03B0BB: mov esi, dword ptr [edi] */ 5874 /* cmp esi, edi */ /* 0x2B03B0BD: cmp esi, edi */ 5875 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 5876 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5877 _flag_k = FK_CMP; 5878 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B03B0F8; /* 0x2B03B0BF: je 0x2b03b0f8 */ 5879 L_2B03B0C1: 5880 ebx = MEM32(ebp + 0x8); /* 0x2B03B0C1: mov ebx, dword ptr [ebp + 8] */ 5881 L_2B03B0C4: 5882 /* cmp MEM32(esi + 0x8), ebx */ /* 0x2B03B0C4: cmp dword ptr [esi + 8], ebx */ 5883 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(ebx); 5884 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5885 _flag_k = FK_CMP; 5886 if (CMP_NE(_flag_a, _flag_b)) goto L_2B03B0F2; /* 0x2B03B0C7: jne 0x2b03b0f2 */ 5887 L_2B03B0C9: 5888 eax = esi; /* 0x2B03B0C9: mov eax, esi */ 5889 ecx = MEM32(eax + 0x4); /* 0x2B03B0CB: mov ecx, dword ptr [eax + 4] */ 5890 edx = MEM32(eax); /* 0x2B03B0CE: mov edx, dword ptr [eax] */ 5891 esi = MEM32(esi); /* 0x2B03B0D0: mov esi, dword ptr [esi] */ 5892 MEM32(ecx) = edx; /* 0x2B03B0D2: mov dword ptr [ecx], edx */ 5893 ecx = MEM32(eax); /* 0x2B03B0D4: mov ecx, dword ptr [eax] */ 5894 edx = MEM32(eax + 0x4); /* 0x2B03B0D6: mov edx, dword ptr [eax + 4] */ 5895 PUSH32(esp, eax); /* 0x2B03B0D9: push eax */ 5896 MEM32(ecx + 0x4) = edx; /* 0x2B03B0DA: mov dword ptr [ecx + 4], edx */ 5897 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B03B0DD: call 0x2b0ab1ba */ /* not lifted */ 5898 RECOMP_FLAGS_IN(); 5899 eax = MEM32(0x2B0EE9A0); /* 0x2B03B0E2: mov eax, dword ptr [0x2b0ee9a0] */ 5900 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5901 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5902 esp = esp + 4; /* 0x2B03B0E7: add esp, 4 */ 5903 _flag_k = FK_ADD; 5904 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5905 eax = eax - 1; /* 0x2B03B0EA: dec eax */ 5906 _flag_k = FK_DEC; 5907 MEM32(0x2B0EE9A0) = eax; /* 0x2B03B0EB: mov dword ptr [0x2b0ee9a0], eax */ 5908 goto L_2B03B0F4; /* 0x2B03B0F0: jmp 0x2b03b0f4 */ 5909 L_2B03B0F2: 5910 esi = MEM32(esi); /* 0x2B03B0F2: mov esi, dword ptr [esi] */ 5911 L_2B03B0F4: 5912 /* cmp esi, edi */ /* 0x2B03B0F4: cmp esi, edi */ 5913 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 5914 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5915 _flag_k = FK_CMP; 5916 RECOMP_BACKEDGE(); 5917 if (CMP_NE(_flag_a, _flag_b)) goto L_2B03B0C4; /* 0x2B03B0F6: jne 0x2b03b0c4 */ 5918 L_2B03B0F8: 5919 edi = POP32_VAL(esp); /* 0x2B03B0F8: pop edi */ 5920 esi = POP32_VAL(esp); /* 0x2B03B0F9: pop esi */ 5921 ebx = POP32_VAL(esp); /* 0x2B03B0FA: pop ebx */ 5922 ebp = POP32_VAL(esp); /* 0x2B03B0FB: pop ebp */ 5923 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03B0FC: ret */ 5924 RECOMP_REGS_OUT(); 5925 } 5926 5927 void sub_2B03B100(void) { 5928 int _fpu_cmp = 0; 5929 uint32_t _cf = 0; 5930 int _df = 1; 5931 uint32_t _flag_k = FK_NONE; 5932 uint32_t _flag_a = 0, _flag_b = 0; 5933 uint32_t _itail_tgt = 0; 5934 RECOMP_REGS_LOCALS 5935 RECOMP_ENTER(0x2B03B100u); 5936 5937 L_2B03B100: 5938 ecx = MEM32(0x2B0EE9C4); /* 0x2B03B100: mov ecx, dword ptr [0x2b0ee9c4] */ 5939 goto L_2B03B110; /* 0x2B03B106: jmp 0x2b03b110 */ 5940 L_2B03B110: 5941 PUSH32(esp, ebp); /* 0x2B03B110: push ebp */ 5942 ebp = esp; /* 0x2B03B111: mov ebp, esp */ 5943 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 5944 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5945 esp = esp - 0x18u; /* 0x2B03B113: sub esp, 0x18 */ 5946 _flag_k = FK_CMP; 5947 eax = MEM32(0x2B0EE9C8); /* 0x2B03B116: mov eax, dword ptr [0x2b0ee9c8] */ 5948 /* test eax, eax */ /* 0x2B03B11B: test eax, eax */ 5949 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5950 _cf = 0; 5951 _flag_k = FK_TEST; 5952 PUSH32(esp, ebx); /* 0x2B03B11D: push ebx */ 5953 PUSH32(esp, esi); /* 0x2B03B11E: push esi */ 5954 PUSH32(esp, edi); /* 0x2B03B11F: push edi */ 5955 MEM32(ebp + (-0x8)) = ecx; /* 0x2B03B120: mov dword ptr [ebp - 8], ecx */ 5956 edi = 0x14u; /* 0x2B03B123: mov edi, 0x14 */ 5957 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B136; /* 0x2B03B128: jne 0x2b03b136 */ 5958 L_2B03B12A: 5959 eax = MEM32(0x2B0EE9AC); /* 0x2B03B12A: mov eax, dword ptr [0x2b0ee9ac] */ 5960 esi = MEM32(eax); /* 0x2B03B12F: mov esi, dword ptr [eax] */ 5961 MEM32(ebp + (-0x4)) = eax; /* 0x2B03B131: mov dword ptr [ebp - 4], eax */ 5962 goto L_2B03B142; /* 0x2B03B134: jmp 0x2b03b142 */ 5963 L_2B03B136: 5964 eax = MEM32(0x2B0EE99C); /* 0x2B03B136: mov eax, dword ptr [0x2b0ee99c] */ 5965 esi = MEM32(eax); /* 0x2B03B13B: mov esi, dword ptr [eax] */ 5966 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5967 edi = 0; /* 0x2B03B13D: xor edi, edi */ 5968 _cf = 0; 5969 _flag_k = FK_TEST; 5970 MEM32(ebp + (-0x4)) = eax; /* 0x2B03B13F: mov dword ptr [ebp - 4], eax */ 5971 L_2B03B142: 5972 /* cmp esi, eax */ /* 0x2B03B142: cmp esi, eax */ 5973 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 5974 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5975 _flag_k = FK_CMP; 5976 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B03B197; /* 0x2B03B144: je 0x2b03b197 */ 5977 L_2B03B146: 5978 ebx = MEM32(0x2B0B5C18); /* 0x2B03B146: mov ebx, dword ptr [0x2b0b5c18] */ 5979 L_2B03B14C: 5980 eax = MEM32(0x2B0EE9BC); /* 0x2B03B14C: mov eax, dword ptr [0x2b0ee9bc] */ 5981 ecx = MEM32(esi + 0x8); /* 0x2B03B151: mov ecx, dword ptr [esi + 8] */ 5982 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5983 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5984 eax = eax + edi; /* 0x2B03B154: add eax, edi */ 5985 _flag_k = FK_ADD; 5986 MEM32(ecx + 0x8) = eax; /* 0x2B03B156: mov dword ptr [ecx + 8], eax */ 5987 ecx = MEM32(ecx + 0x10); /* 0x2B03B159: mov ecx, dword ptr [ecx + 0x10] */ 5988 edx = MEM32(ecx + 0x3C); /* 0x2B03B15C: mov edx, dword ptr [ecx + 0x3c] */ 5989 MEM32(ebp + (-0x14)) = eax; /* 0x2B03B15F: mov dword ptr [ebp - 0x14], eax */ 5990 eax = ebp + (-0x18); /* 0x2B03B162: lea eax, [ebp - 0x18] */ 5991 PUSH32(esp, eax); /* 0x2B03B165: push eax */ 5992 MEM32(ebp + (-0x18)) = edx; /* 0x2B03B166: mov dword ptr [ebp - 0x18], edx */ 5993 RECOMP_ICALL(ebx); /* 0x2B03B169: call ebx */ 5994 RECOMP_FLAGS_IN(); 5995 ecx = MEM32(esi + 0x8); /* 0x2B03B16B: mov ecx, dword ptr [esi + 8] */ 5996 RECOMP_ICALL(0x2B03A400u); /* 0x2B03B16E: call 0x2b03a400 */ /* not lifted */ 5997 RECOMP_FLAGS_IN(); 5998 eax = MEM32(esi + 0x8); /* 0x2B03B173: mov eax, dword ptr [esi + 8] */ 5999 SET_LO8(ecx, MEM8(eax + 0x1C)); /* 0x2B03B176: mov cl, byte ptr [eax + 0x1c] */ 6000 /* test LO8(ecx), LO8(ecx) */ /* 0x2B03B179: test cl, cl */ 6001 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6002 _cf = 0; 6003 _flag_k = FK_NARROW(FK_TEST, 24); 6004 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B181; /* 0x2B03B17B: jne 0x2b03b181 */ 6005 L_2B03B17D: 6006 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6007 eax = 0; /* 0x2B03B17D: xor eax, eax */ 6008 _cf = 0; 6009 _flag_k = FK_TEST; 6010 goto L_2B03B18E; /* 0x2B03B17F: jmp 0x2b03b18e */ 6011 L_2B03B181: 6012 SET_LO8(ecx, MEM8(eax + 0x24)); /* 0x2B03B181: mov cl, byte ptr [eax + 0x24] */ 6013 /* test LO8(ecx), LO8(ecx) */ /* 0x2B03B184: test cl, cl */ 6014 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6015 _cf = 0; 6016 _flag_k = FK_NARROW(FK_TEST, 24); 6017 eax = MEM32(eax + 0x18); /* 0x2B03B186: mov eax, dword ptr [eax + 0x18] */ 6018 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B18E; /* 0x2B03B189: jne 0x2b03b18e */ 6019 L_2B03B18B: 6020 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u); 6021 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6022 eax = eax + 0x14u; /* 0x2B03B18B: add eax, 0x14 */ 6023 _flag_k = FK_ADD; 6024 L_2B03B18E: 6025 esi = MEM32(esi); /* 0x2B03B18E: mov esi, dword ptr [esi] */ 6026 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6027 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6028 edi = edi + eax; /* 0x2B03B190: add edi, eax */ 6029 _flag_k = FK_ADD; 6030 /* cmp esi, MEM32(ebp + (-0x4)) */ /* 0x2B03B192: cmp esi, dword ptr [ebp - 4] */ 6031 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + (-0x4))); 6032 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6033 _flag_k = FK_CMP; 6034 RECOMP_BACKEDGE(); 6035 if (CMP_NE(_flag_a, _flag_b)) goto L_2B03B14C; /* 0x2B03B195: jne 0x2b03b14c */ 6036 L_2B03B197: 6037 ecx = MEM32(0x2B0EE9D8); /* 0x2B03B197: mov ecx, dword ptr [0x2b0ee9d8] */ 6038 edx = MEM32(0x2B0EE9BC); /* 0x2B03B19D: mov edx, dword ptr [0x2b0ee9bc] */ 6039 MEM32(ebp + (-0x10)) = ecx; /* 0x2B03B1A3: mov dword ptr [ebp - 0x10], ecx */ 6040 ecx = MEM32(0x2B0EE9D4); /* 0x2B03B1A6: mov ecx, dword ptr [0x2b0ee9d4] */ 6041 eax = edx + edi; /* 0x2B03B1AC: lea eax, [edx + edi] */ 6042 /* cmp eax, ecx */ /* 0x2B03B1AF: cmp eax, ecx */ 6043 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6044 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6045 _flag_k = FK_CMP; 6046 MEM32(ebp + (-0xC)) = eax; /* 0x2B03B1B1: mov dword ptr [ebp - 0xc], eax */ 6047 if (CMP_LE(_flag_a, _flag_b)) goto L_2B03B1BB; /* 0x2B03B1B4: jle 0x2b03b1bb */ 6048 L_2B03B1B6: 6049 MEM32(ebp + (-0xC)) = ecx; /* 0x2B03B1B6: mov dword ptr [ebp - 0xc], ecx */ 6050 goto L_2B03B1C6; /* 0x2B03B1B9: jmp 0x2b03b1c6 */ 6051 L_2B03B1BB: 6052 /* test eax, eax */ /* 0x2B03B1BB: test eax, eax */ 6053 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6054 _cf = 0; 6055 _flag_k = FK_TEST; 6056 if (TEST_NS(_flag_a, _flag_b)) goto L_2B03B1C6; /* 0x2B03B1BD: jge 0x2b03b1c6 */ 6057 L_2B03B1BF: 6058 MEM32(ebp + (-0xC)) = 0; /* 0x2B03B1BF: mov dword ptr [ebp - 0xc], 0 */ 6059 L_2B03B1C6: 6060 ecx = MEM32(0x2B0EE9DC); /* 0x2B03B1C6: mov ecx, dword ptr [0x2b0ee9dc] */ 6061 eax = ebp + (-0x10); /* 0x2B03B1CC: lea eax, [ebp - 0x10] */ 6062 PUSH32(esp, eax); /* 0x2B03B1CF: push eax */ 6063 RECOMP_ICALL(MEM32(0x2B0B5978)); /* 0x2B03B1D0: call dword ptr [0x2b0b5978] */ 6064 RECOMP_FLAGS_IN(); 6065 esi = MEM32(ebp + (-0x8)); /* 0x2B03B1D6: mov esi, dword ptr [ebp - 8] */ 6066 ecx = MEM32(esi + 0x58); /* 0x2B03B1D9: mov ecx, dword ptr [esi + 0x58] */ 6067 edx = MEM32(ecx); /* 0x2B03B1DC: mov edx, dword ptr [ecx] */ 6068 eax = ebp + (-0x10); /* 0x2B03B1DE: lea eax, [ebp - 0x10] */ 6069 PUSH32(esp, eax); /* 0x2B03B1E1: push eax */ 6070 RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x2B03B1E2: call dword ptr [edx + 0x18] */ 6071 RECOMP_FLAGS_IN(); 6072 ecx = ebp + (-0x10); /* 0x2B03B1E5: lea ecx, [ebp - 0x10] */ 6073 PUSH32(esp, ecx); /* 0x2B03B1E8: push ecx */ 6074 ecx = esi; /* 0x2B03B1E9: mov ecx, esi */ 6075 RECOMP_ICALL(MEM32(0x2B0B5C1C)); /* 0x2B03B1EB: call dword ptr [0x2b0b5c1c] */ 6076 RECOMP_FLAGS_IN(); 6077 SET_LO8(eax, MEM8(esi + 0x6C)); /* 0x2B03B1F1: mov al, byte ptr [esi + 0x6c] */ 6078 /* test LO8(eax), LO8(eax) */ /* 0x2B03B1F4: test al, al */ 6079 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6080 _cf = 0; 6081 _flag_k = FK_NARROW(FK_TEST, 24); 6082 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B240; /* 0x2B03B1F6: jne 0x2b03b240 */ 6083 L_2B03B1F8: 6084 eax = MEM32(0x2B0EE9BC); /* 0x2B03B1F8: mov eax, dword ptr [0x2b0ee9bc] */ 6085 esi = MEM32(0x2B0EE9D0); /* 0x2B03B1FD: mov esi, dword ptr [0x2b0ee9d0] */ 6086 ecx = MEM32(0x2B0EE9D4); /* 0x2B03B203: mov ecx, dword ptr [0x2b0ee9d4] */ 6087 edx = MEM32(0x2B0EE9DC); /* 0x2B03B209: mov edx, dword ptr [0x2b0ee9dc] */ 6088 ebx = MEM32(0x2B0EE9D8); /* 0x2B03B20F: mov ebx, dword ptr [0x2b0ee9d8] */ 6089 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 6090 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6091 esi = esi - eax; /* 0x2B03B215: sub esi, eax */ 6092 _flag_k = FK_CMP; 6093 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 6094 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6095 esi = esi - edi; /* 0x2B03B217: sub esi, edi */ 6096 _flag_k = FK_CMP; 6097 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6098 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6099 edi = edi + eax; /* 0x2B03B219: add edi, eax */ 6100 _flag_k = FK_ADD; 6101 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 6102 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6103 esi = esi + ecx; /* 0x2B03B21B: add esi, ecx */ 6104 _flag_k = FK_ADD; 6105 ecx = MEM32(edx + 0x2C); /* 0x2B03B21D: mov ecx, dword ptr [edx + 0x2c] */ 6106 PUSH32(esp, edi); /* 0x2B03B220: push edi */ 6107 edi = MEM32(ebp + (-0x8)); /* 0x2B03B221: mov edi, dword ptr [ebp - 8] */ 6108 PUSH32(esp, ecx); /* 0x2B03B224: push ecx */ 6109 ecx = MEM32(edi + 0x5C); /* 0x2B03B225: mov ecx, dword ptr [edi + 0x5c] */ 6110 RECOMP_ICALL(MEM32(0x2B0B597C)); /* 0x2B03B228: call dword ptr [0x2b0b597c] */ 6111 RECOMP_FLAGS_IN(); 6112 ecx = MEM32(edi + 0x5C); /* 0x2B03B22E: mov ecx, dword ptr [edi + 0x5c] */ 6113 PUSH32(esp, esi); /* 0x2B03B231: push esi */ 6114 PUSH32(esp, ebx); /* 0x2B03B232: push ebx */ 6115 RECOMP_ICALL(MEM32(0x2B0B5980)); /* 0x2B03B233: call dword ptr [0x2b0b5980] */ 6116 RECOMP_FLAGS_IN(); 6117 eax = MEM32(edi + 0x5C); /* 0x2B03B239: mov eax, dword ptr [edi + 0x5c] */ 6118 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B03B23C: mov byte ptr [eax + 9], 1 */ 6119 L_2B03B240: 6120 edi = POP32_VAL(esp); /* 0x2B03B240: pop edi */ 6121 esi = POP32_VAL(esp); /* 0x2B03B241: pop esi */ 6122 ebx = POP32_VAL(esp); /* 0x2B03B242: pop ebx */ 6123 esp = ebp; /* 0x2B03B243: mov esp, ebp */ 6124 ebp = POP32_VAL(esp); /* 0x2B03B245: pop ebp */ 6125 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03B246: ret */ 6126 RECOMP_REGS_OUT(); 6127 } 6128 6129 void sub_2B03B110(void) { 6130 int _fpu_cmp = 0; 6131 uint32_t _cf = 0; 6132 int _df = 1; 6133 uint32_t _flag_k = FK_NONE; 6134 uint32_t _flag_a = 0, _flag_b = 0; 6135 uint32_t _itail_tgt = 0; 6136 RECOMP_REGS_LOCALS 6137 RECOMP_ENTER(0x2B03B110u); 6138 6139 L_2B03B110: 6140 PUSH32(esp, ebp); /* 0x2B03B110: push ebp */ 6141 ebp = esp; /* 0x2B03B111: mov ebp, esp */ 6142 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 6143 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6144 esp = esp - 0x18u; /* 0x2B03B113: sub esp, 0x18 */ 6145 _flag_k = FK_CMP; 6146 eax = MEM32(0x2B0EE9C8); /* 0x2B03B116: mov eax, dword ptr [0x2b0ee9c8] */ 6147 /* test eax, eax */ /* 0x2B03B11B: test eax, eax */ 6148 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6149 _cf = 0; 6150 _flag_k = FK_TEST; 6151 PUSH32(esp, ebx); /* 0x2B03B11D: push ebx */ 6152 PUSH32(esp, esi); /* 0x2B03B11E: push esi */ 6153 PUSH32(esp, edi); /* 0x2B03B11F: push edi */ 6154 MEM32(ebp + (-0x8)) = ecx; /* 0x2B03B120: mov dword ptr [ebp - 8], ecx */ 6155 edi = 0x14u; /* 0x2B03B123: mov edi, 0x14 */ 6156 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B136; /* 0x2B03B128: jne 0x2b03b136 */ 6157 L_2B03B12A: 6158 eax = MEM32(0x2B0EE9AC); /* 0x2B03B12A: mov eax, dword ptr [0x2b0ee9ac] */ 6159 esi = MEM32(eax); /* 0x2B03B12F: mov esi, dword ptr [eax] */ 6160 MEM32(ebp + (-0x4)) = eax; /* 0x2B03B131: mov dword ptr [ebp - 4], eax */ 6161 goto L_2B03B142; /* 0x2B03B134: jmp 0x2b03b142 */ 6162 L_2B03B136: 6163 eax = MEM32(0x2B0EE99C); /* 0x2B03B136: mov eax, dword ptr [0x2b0ee99c] */ 6164 esi = MEM32(eax); /* 0x2B03B13B: mov esi, dword ptr [eax] */ 6165 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6166 edi = 0; /* 0x2B03B13D: xor edi, edi */ 6167 _cf = 0; 6168 _flag_k = FK_TEST; 6169 MEM32(ebp + (-0x4)) = eax; /* 0x2B03B13F: mov dword ptr [ebp - 4], eax */ 6170 L_2B03B142: 6171 /* cmp esi, eax */ /* 0x2B03B142: cmp esi, eax */ 6172 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 6173 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6174 _flag_k = FK_CMP; 6175 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B03B197; /* 0x2B03B144: je 0x2b03b197 */ 6176 L_2B03B146: 6177 ebx = MEM32(0x2B0B5C18); /* 0x2B03B146: mov ebx, dword ptr [0x2b0b5c18] */ 6178 L_2B03B14C: 6179 eax = MEM32(0x2B0EE9BC); /* 0x2B03B14C: mov eax, dword ptr [0x2b0ee9bc] */ 6180 ecx = MEM32(esi + 0x8); /* 0x2B03B151: mov ecx, dword ptr [esi + 8] */ 6181 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 6182 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6183 eax = eax + edi; /* 0x2B03B154: add eax, edi */ 6184 _flag_k = FK_ADD; 6185 MEM32(ecx + 0x8) = eax; /* 0x2B03B156: mov dword ptr [ecx + 8], eax */ 6186 ecx = MEM32(ecx + 0x10); /* 0x2B03B159: mov ecx, dword ptr [ecx + 0x10] */ 6187 edx = MEM32(ecx + 0x3C); /* 0x2B03B15C: mov edx, dword ptr [ecx + 0x3c] */ 6188 MEM32(ebp + (-0x14)) = eax; /* 0x2B03B15F: mov dword ptr [ebp - 0x14], eax */ 6189 eax = ebp + (-0x18); /* 0x2B03B162: lea eax, [ebp - 0x18] */ 6190 PUSH32(esp, eax); /* 0x2B03B165: push eax */ 6191 MEM32(ebp + (-0x18)) = edx; /* 0x2B03B166: mov dword ptr [ebp - 0x18], edx */ 6192 RECOMP_ICALL(ebx); /* 0x2B03B169: call ebx */ 6193 RECOMP_FLAGS_IN(); 6194 ecx = MEM32(esi + 0x8); /* 0x2B03B16B: mov ecx, dword ptr [esi + 8] */ 6195 RECOMP_ICALL(0x2B03A400u); /* 0x2B03B16E: call 0x2b03a400 */ /* not lifted */ 6196 RECOMP_FLAGS_IN(); 6197 eax = MEM32(esi + 0x8); /* 0x2B03B173: mov eax, dword ptr [esi + 8] */ 6198 SET_LO8(ecx, MEM8(eax + 0x1C)); /* 0x2B03B176: mov cl, byte ptr [eax + 0x1c] */ 6199 /* test LO8(ecx), LO8(ecx) */ /* 0x2B03B179: test cl, cl */ 6200 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6201 _cf = 0; 6202 _flag_k = FK_NARROW(FK_TEST, 24); 6203 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B181; /* 0x2B03B17B: jne 0x2b03b181 */ 6204 L_2B03B17D: 6205 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6206 eax = 0; /* 0x2B03B17D: xor eax, eax */ 6207 _cf = 0; 6208 _flag_k = FK_TEST; 6209 goto L_2B03B18E; /* 0x2B03B17F: jmp 0x2b03b18e */ 6210 L_2B03B181: 6211 SET_LO8(ecx, MEM8(eax + 0x24)); /* 0x2B03B181: mov cl, byte ptr [eax + 0x24] */ 6212 /* test LO8(ecx), LO8(ecx) */ /* 0x2B03B184: test cl, cl */ 6213 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6214 _cf = 0; 6215 _flag_k = FK_NARROW(FK_TEST, 24); 6216 eax = MEM32(eax + 0x18); /* 0x2B03B186: mov eax, dword ptr [eax + 0x18] */ 6217 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B18E; /* 0x2B03B189: jne 0x2b03b18e */ 6218 L_2B03B18B: 6219 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u); 6220 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6221 eax = eax + 0x14u; /* 0x2B03B18B: add eax, 0x14 */ 6222 _flag_k = FK_ADD; 6223 L_2B03B18E: 6224 esi = MEM32(esi); /* 0x2B03B18E: mov esi, dword ptr [esi] */ 6225 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6226 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6227 edi = edi + eax; /* 0x2B03B190: add edi, eax */ 6228 _flag_k = FK_ADD; 6229 /* cmp esi, MEM32(ebp + (-0x4)) */ /* 0x2B03B192: cmp esi, dword ptr [ebp - 4] */ 6230 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + (-0x4))); 6231 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6232 _flag_k = FK_CMP; 6233 RECOMP_BACKEDGE(); 6234 if (CMP_NE(_flag_a, _flag_b)) goto L_2B03B14C; /* 0x2B03B195: jne 0x2b03b14c */ 6235 L_2B03B197: 6236 ecx = MEM32(0x2B0EE9D8); /* 0x2B03B197: mov ecx, dword ptr [0x2b0ee9d8] */ 6237 edx = MEM32(0x2B0EE9BC); /* 0x2B03B19D: mov edx, dword ptr [0x2b0ee9bc] */ 6238 MEM32(ebp + (-0x10)) = ecx; /* 0x2B03B1A3: mov dword ptr [ebp - 0x10], ecx */ 6239 ecx = MEM32(0x2B0EE9D4); /* 0x2B03B1A6: mov ecx, dword ptr [0x2b0ee9d4] */ 6240 eax = edx + edi; /* 0x2B03B1AC: lea eax, [edx + edi] */ 6241 /* cmp eax, ecx */ /* 0x2B03B1AF: cmp eax, ecx */ 6242 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6243 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6244 _flag_k = FK_CMP; 6245 MEM32(ebp + (-0xC)) = eax; /* 0x2B03B1B1: mov dword ptr [ebp - 0xc], eax */ 6246 if (CMP_LE(_flag_a, _flag_b)) goto L_2B03B1BB; /* 0x2B03B1B4: jle 0x2b03b1bb */ 6247 L_2B03B1B6: 6248 MEM32(ebp + (-0xC)) = ecx; /* 0x2B03B1B6: mov dword ptr [ebp - 0xc], ecx */ 6249 goto L_2B03B1C6; /* 0x2B03B1B9: jmp 0x2b03b1c6 */ 6250 L_2B03B1BB: 6251 /* test eax, eax */ /* 0x2B03B1BB: test eax, eax */ 6252 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6253 _cf = 0; 6254 _flag_k = FK_TEST; 6255 if (TEST_NS(_flag_a, _flag_b)) goto L_2B03B1C6; /* 0x2B03B1BD: jge 0x2b03b1c6 */ 6256 L_2B03B1BF: 6257 MEM32(ebp + (-0xC)) = 0; /* 0x2B03B1BF: mov dword ptr [ebp - 0xc], 0 */ 6258 L_2B03B1C6: 6259 ecx = MEM32(0x2B0EE9DC); /* 0x2B03B1C6: mov ecx, dword ptr [0x2b0ee9dc] */ 6260 eax = ebp + (-0x10); /* 0x2B03B1CC: lea eax, [ebp - 0x10] */ 6261 PUSH32(esp, eax); /* 0x2B03B1CF: push eax */ 6262 RECOMP_ICALL(MEM32(0x2B0B5978)); /* 0x2B03B1D0: call dword ptr [0x2b0b5978] */ 6263 RECOMP_FLAGS_IN(); 6264 esi = MEM32(ebp + (-0x8)); /* 0x2B03B1D6: mov esi, dword ptr [ebp - 8] */ 6265 ecx = MEM32(esi + 0x58); /* 0x2B03B1D9: mov ecx, dword ptr [esi + 0x58] */ 6266 edx = MEM32(ecx); /* 0x2B03B1DC: mov edx, dword ptr [ecx] */ 6267 eax = ebp + (-0x10); /* 0x2B03B1DE: lea eax, [ebp - 0x10] */ 6268 PUSH32(esp, eax); /* 0x2B03B1E1: push eax */ 6269 RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x2B03B1E2: call dword ptr [edx + 0x18] */ 6270 RECOMP_FLAGS_IN(); 6271 ecx = ebp + (-0x10); /* 0x2B03B1E5: lea ecx, [ebp - 0x10] */ 6272 PUSH32(esp, ecx); /* 0x2B03B1E8: push ecx */ 6273 ecx = esi; /* 0x2B03B1E9: mov ecx, esi */ 6274 RECOMP_ICALL(MEM32(0x2B0B5C1C)); /* 0x2B03B1EB: call dword ptr [0x2b0b5c1c] */ 6275 RECOMP_FLAGS_IN(); 6276 SET_LO8(eax, MEM8(esi + 0x6C)); /* 0x2B03B1F1: mov al, byte ptr [esi + 0x6c] */ 6277 /* test LO8(eax), LO8(eax) */ /* 0x2B03B1F4: test al, al */ 6278 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6279 _cf = 0; 6280 _flag_k = FK_NARROW(FK_TEST, 24); 6281 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B240; /* 0x2B03B1F6: jne 0x2b03b240 */ 6282 L_2B03B1F8: 6283 eax = MEM32(0x2B0EE9BC); /* 0x2B03B1F8: mov eax, dword ptr [0x2b0ee9bc] */ 6284 esi = MEM32(0x2B0EE9D0); /* 0x2B03B1FD: mov esi, dword ptr [0x2b0ee9d0] */ 6285 ecx = MEM32(0x2B0EE9D4); /* 0x2B03B203: mov ecx, dword ptr [0x2b0ee9d4] */ 6286 edx = MEM32(0x2B0EE9DC); /* 0x2B03B209: mov edx, dword ptr [0x2b0ee9dc] */ 6287 ebx = MEM32(0x2B0EE9D8); /* 0x2B03B20F: mov ebx, dword ptr [0x2b0ee9d8] */ 6288 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 6289 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6290 esi = esi - eax; /* 0x2B03B215: sub esi, eax */ 6291 _flag_k = FK_CMP; 6292 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 6293 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6294 esi = esi - edi; /* 0x2B03B217: sub esi, edi */ 6295 _flag_k = FK_CMP; 6296 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6297 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6298 edi = edi + eax; /* 0x2B03B219: add edi, eax */ 6299 _flag_k = FK_ADD; 6300 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 6301 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6302 esi = esi + ecx; /* 0x2B03B21B: add esi, ecx */ 6303 _flag_k = FK_ADD; 6304 ecx = MEM32(edx + 0x2C); /* 0x2B03B21D: mov ecx, dword ptr [edx + 0x2c] */ 6305 PUSH32(esp, edi); /* 0x2B03B220: push edi */ 6306 edi = MEM32(ebp + (-0x8)); /* 0x2B03B221: mov edi, dword ptr [ebp - 8] */ 6307 PUSH32(esp, ecx); /* 0x2B03B224: push ecx */ 6308 ecx = MEM32(edi + 0x5C); /* 0x2B03B225: mov ecx, dword ptr [edi + 0x5c] */ 6309 RECOMP_ICALL(MEM32(0x2B0B597C)); /* 0x2B03B228: call dword ptr [0x2b0b597c] */ 6310 RECOMP_FLAGS_IN(); 6311 ecx = MEM32(edi + 0x5C); /* 0x2B03B22E: mov ecx, dword ptr [edi + 0x5c] */ 6312 PUSH32(esp, esi); /* 0x2B03B231: push esi */ 6313 PUSH32(esp, ebx); /* 0x2B03B232: push ebx */ 6314 RECOMP_ICALL(MEM32(0x2B0B5980)); /* 0x2B03B233: call dword ptr [0x2b0b5980] */ 6315 RECOMP_FLAGS_IN(); 6316 eax = MEM32(edi + 0x5C); /* 0x2B03B239: mov eax, dword ptr [edi + 0x5c] */ 6317 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B03B23C: mov byte ptr [eax + 9], 1 */ 6318 L_2B03B240: 6319 edi = POP32_VAL(esp); /* 0x2B03B240: pop edi */ 6320 esi = POP32_VAL(esp); /* 0x2B03B241: pop esi */ 6321 ebx = POP32_VAL(esp); /* 0x2B03B242: pop ebx */ 6322 esp = ebp; /* 0x2B03B243: mov esp, ebp */ 6323 ebp = POP32_VAL(esp); /* 0x2B03B245: pop ebp */ 6324 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03B246: ret */ 6325 RECOMP_REGS_OUT(); 6326 } 6327 6328 void sub_2B03B142(void) { 6329 int _fpu_cmp = 0; 6330 uint32_t _cf = 0; 6331 int _df = 1; 6332 uint32_t _flag_k = FK_NONE; 6333 uint32_t _flag_a = 0, _flag_b = 0; 6334 uint32_t _itail_tgt = 0; 6335 RECOMP_REGS_LOCALS 6336 RECOMP_ENTER(0x2B03B142u); 6337 6338 L_2B03B142: 6339 /* cmp esi, eax */ /* 0x2B03B142: cmp esi, eax */ 6340 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 6341 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6342 _flag_k = FK_CMP; 6343 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B03B197; /* 0x2B03B144: je 0x2b03b197 */ 6344 L_2B03B146: 6345 ebx = MEM32(0x2B0B5C18); /* 0x2B03B146: mov ebx, dword ptr [0x2b0b5c18] */ 6346 L_2B03B14C: 6347 eax = MEM32(0x2B0EE9BC); /* 0x2B03B14C: mov eax, dword ptr [0x2b0ee9bc] */ 6348 ecx = MEM32(esi + 0x8); /* 0x2B03B151: mov ecx, dword ptr [esi + 8] */ 6349 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 6350 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6351 eax = eax + edi; /* 0x2B03B154: add eax, edi */ 6352 _flag_k = FK_ADD; 6353 MEM32(ecx + 0x8) = eax; /* 0x2B03B156: mov dword ptr [ecx + 8], eax */ 6354 ecx = MEM32(ecx + 0x10); /* 0x2B03B159: mov ecx, dword ptr [ecx + 0x10] */ 6355 edx = MEM32(ecx + 0x3C); /* 0x2B03B15C: mov edx, dword ptr [ecx + 0x3c] */ 6356 MEM32(ebp + (-0x14)) = eax; /* 0x2B03B15F: mov dword ptr [ebp - 0x14], eax */ 6357 eax = ebp + (-0x18); /* 0x2B03B162: lea eax, [ebp - 0x18] */ 6358 PUSH32(esp, eax); /* 0x2B03B165: push eax */ 6359 MEM32(ebp + (-0x18)) = edx; /* 0x2B03B166: mov dword ptr [ebp - 0x18], edx */ 6360 RECOMP_ICALL(ebx); /* 0x2B03B169: call ebx */ 6361 RECOMP_FLAGS_IN(); 6362 ecx = MEM32(esi + 0x8); /* 0x2B03B16B: mov ecx, dword ptr [esi + 8] */ 6363 RECOMP_ICALL(0x2B03A400u); /* 0x2B03B16E: call 0x2b03a400 */ /* not lifted */ 6364 RECOMP_FLAGS_IN(); 6365 eax = MEM32(esi + 0x8); /* 0x2B03B173: mov eax, dword ptr [esi + 8] */ 6366 SET_LO8(ecx, MEM8(eax + 0x1C)); /* 0x2B03B176: mov cl, byte ptr [eax + 0x1c] */ 6367 /* test LO8(ecx), LO8(ecx) */ /* 0x2B03B179: test cl, cl */ 6368 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6369 _cf = 0; 6370 _flag_k = FK_NARROW(FK_TEST, 24); 6371 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B181; /* 0x2B03B17B: jne 0x2b03b181 */ 6372 L_2B03B17D: 6373 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6374 eax = 0; /* 0x2B03B17D: xor eax, eax */ 6375 _cf = 0; 6376 _flag_k = FK_TEST; 6377 goto L_2B03B18E; /* 0x2B03B17F: jmp 0x2b03b18e */ 6378 L_2B03B181: 6379 SET_LO8(ecx, MEM8(eax + 0x24)); /* 0x2B03B181: mov cl, byte ptr [eax + 0x24] */ 6380 /* test LO8(ecx), LO8(ecx) */ /* 0x2B03B184: test cl, cl */ 6381 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6382 _cf = 0; 6383 _flag_k = FK_NARROW(FK_TEST, 24); 6384 eax = MEM32(eax + 0x18); /* 0x2B03B186: mov eax, dword ptr [eax + 0x18] */ 6385 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B18E; /* 0x2B03B189: jne 0x2b03b18e */ 6386 L_2B03B18B: 6387 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u); 6388 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6389 eax = eax + 0x14u; /* 0x2B03B18B: add eax, 0x14 */ 6390 _flag_k = FK_ADD; 6391 L_2B03B18E: 6392 esi = MEM32(esi); /* 0x2B03B18E: mov esi, dword ptr [esi] */ 6393 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6394 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6395 edi = edi + eax; /* 0x2B03B190: add edi, eax */ 6396 _flag_k = FK_ADD; 6397 /* cmp esi, MEM32(ebp + (-0x4)) */ /* 0x2B03B192: cmp esi, dword ptr [ebp - 4] */ 6398 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + (-0x4))); 6399 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6400 _flag_k = FK_CMP; 6401 RECOMP_BACKEDGE(); 6402 if (CMP_NE(_flag_a, _flag_b)) goto L_2B03B14C; /* 0x2B03B195: jne 0x2b03b14c */ 6403 L_2B03B197: 6404 ecx = MEM32(0x2B0EE9D8); /* 0x2B03B197: mov ecx, dword ptr [0x2b0ee9d8] */ 6405 edx = MEM32(0x2B0EE9BC); /* 0x2B03B19D: mov edx, dword ptr [0x2b0ee9bc] */ 6406 MEM32(ebp + (-0x10)) = ecx; /* 0x2B03B1A3: mov dword ptr [ebp - 0x10], ecx */ 6407 ecx = MEM32(0x2B0EE9D4); /* 0x2B03B1A6: mov ecx, dword ptr [0x2b0ee9d4] */ 6408 eax = edx + edi; /* 0x2B03B1AC: lea eax, [edx + edi] */ 6409 /* cmp eax, ecx */ /* 0x2B03B1AF: cmp eax, ecx */ 6410 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6411 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6412 _flag_k = FK_CMP; 6413 MEM32(ebp + (-0xC)) = eax; /* 0x2B03B1B1: mov dword ptr [ebp - 0xc], eax */ 6414 if (CMP_LE(_flag_a, _flag_b)) goto L_2B03B1BB; /* 0x2B03B1B4: jle 0x2b03b1bb */ 6415 L_2B03B1B6: 6416 MEM32(ebp + (-0xC)) = ecx; /* 0x2B03B1B6: mov dword ptr [ebp - 0xc], ecx */ 6417 goto L_2B03B1C6; /* 0x2B03B1B9: jmp 0x2b03b1c6 */ 6418 L_2B03B1BB: 6419 /* test eax, eax */ /* 0x2B03B1BB: test eax, eax */ 6420 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6421 _cf = 0; 6422 _flag_k = FK_TEST; 6423 if (TEST_NS(_flag_a, _flag_b)) goto L_2B03B1C6; /* 0x2B03B1BD: jge 0x2b03b1c6 */ 6424 L_2B03B1BF: 6425 MEM32(ebp + (-0xC)) = 0; /* 0x2B03B1BF: mov dword ptr [ebp - 0xc], 0 */ 6426 L_2B03B1C6: 6427 ecx = MEM32(0x2B0EE9DC); /* 0x2B03B1C6: mov ecx, dword ptr [0x2b0ee9dc] */ 6428 eax = ebp + (-0x10); /* 0x2B03B1CC: lea eax, [ebp - 0x10] */ 6429 PUSH32(esp, eax); /* 0x2B03B1CF: push eax */ 6430 RECOMP_ICALL(MEM32(0x2B0B5978)); /* 0x2B03B1D0: call dword ptr [0x2b0b5978] */ 6431 RECOMP_FLAGS_IN(); 6432 esi = MEM32(ebp + (-0x8)); /* 0x2B03B1D6: mov esi, dword ptr [ebp - 8] */ 6433 ecx = MEM32(esi + 0x58); /* 0x2B03B1D9: mov ecx, dword ptr [esi + 0x58] */ 6434 edx = MEM32(ecx); /* 0x2B03B1DC: mov edx, dword ptr [ecx] */ 6435 eax = ebp + (-0x10); /* 0x2B03B1DE: lea eax, [ebp - 0x10] */ 6436 PUSH32(esp, eax); /* 0x2B03B1E1: push eax */ 6437 RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x2B03B1E2: call dword ptr [edx + 0x18] */ 6438 RECOMP_FLAGS_IN(); 6439 ecx = ebp + (-0x10); /* 0x2B03B1E5: lea ecx, [ebp - 0x10] */ 6440 PUSH32(esp, ecx); /* 0x2B03B1E8: push ecx */ 6441 ecx = esi; /* 0x2B03B1E9: mov ecx, esi */ 6442 RECOMP_ICALL(MEM32(0x2B0B5C1C)); /* 0x2B03B1EB: call dword ptr [0x2b0b5c1c] */ 6443 RECOMP_FLAGS_IN(); 6444 SET_LO8(eax, MEM8(esi + 0x6C)); /* 0x2B03B1F1: mov al, byte ptr [esi + 0x6c] */ 6445 /* test LO8(eax), LO8(eax) */ /* 0x2B03B1F4: test al, al */ 6446 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6447 _cf = 0; 6448 _flag_k = FK_NARROW(FK_TEST, 24); 6449 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B240; /* 0x2B03B1F6: jne 0x2b03b240 */ 6450 L_2B03B1F8: 6451 eax = MEM32(0x2B0EE9BC); /* 0x2B03B1F8: mov eax, dword ptr [0x2b0ee9bc] */ 6452 esi = MEM32(0x2B0EE9D0); /* 0x2B03B1FD: mov esi, dword ptr [0x2b0ee9d0] */ 6453 ecx = MEM32(0x2B0EE9D4); /* 0x2B03B203: mov ecx, dword ptr [0x2b0ee9d4] */ 6454 edx = MEM32(0x2B0EE9DC); /* 0x2B03B209: mov edx, dword ptr [0x2b0ee9dc] */ 6455 ebx = MEM32(0x2B0EE9D8); /* 0x2B03B20F: mov ebx, dword ptr [0x2b0ee9d8] */ 6456 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 6457 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6458 esi = esi - eax; /* 0x2B03B215: sub esi, eax */ 6459 _flag_k = FK_CMP; 6460 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 6461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6462 esi = esi - edi; /* 0x2B03B217: sub esi, edi */ 6463 _flag_k = FK_CMP; 6464 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6465 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6466 edi = edi + eax; /* 0x2B03B219: add edi, eax */ 6467 _flag_k = FK_ADD; 6468 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 6469 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6470 esi = esi + ecx; /* 0x2B03B21B: add esi, ecx */ 6471 _flag_k = FK_ADD; 6472 ecx = MEM32(edx + 0x2C); /* 0x2B03B21D: mov ecx, dword ptr [edx + 0x2c] */ 6473 PUSH32(esp, edi); /* 0x2B03B220: push edi */ 6474 edi = MEM32(ebp + (-0x8)); /* 0x2B03B221: mov edi, dword ptr [ebp - 8] */ 6475 PUSH32(esp, ecx); /* 0x2B03B224: push ecx */ 6476 ecx = MEM32(edi + 0x5C); /* 0x2B03B225: mov ecx, dword ptr [edi + 0x5c] */ 6477 RECOMP_ICALL(MEM32(0x2B0B597C)); /* 0x2B03B228: call dword ptr [0x2b0b597c] */ 6478 RECOMP_FLAGS_IN(); 6479 ecx = MEM32(edi + 0x5C); /* 0x2B03B22E: mov ecx, dword ptr [edi + 0x5c] */ 6480 PUSH32(esp, esi); /* 0x2B03B231: push esi */ 6481 PUSH32(esp, ebx); /* 0x2B03B232: push ebx */ 6482 RECOMP_ICALL(MEM32(0x2B0B5980)); /* 0x2B03B233: call dword ptr [0x2b0b5980] */ 6483 RECOMP_FLAGS_IN(); 6484 eax = MEM32(edi + 0x5C); /* 0x2B03B239: mov eax, dword ptr [edi + 0x5c] */ 6485 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B03B23C: mov byte ptr [eax + 9], 1 */ 6486 L_2B03B240: 6487 edi = POP32_VAL(esp); /* 0x2B03B240: pop edi */ 6488 esi = POP32_VAL(esp); /* 0x2B03B241: pop esi */ 6489 ebx = POP32_VAL(esp); /* 0x2B03B242: pop ebx */ 6490 esp = ebp; /* 0x2B03B243: mov esp, ebp */ 6491 ebp = POP32_VAL(esp); /* 0x2B03B245: pop ebp */ 6492 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03B246: ret */ 6493 RECOMP_REGS_OUT(); 6494 } 6495 6496 void sub_2B03B14C(void) { 6497 int _fpu_cmp = 0; 6498 uint32_t _cf = 0; 6499 int _df = 1; 6500 uint32_t _flag_k = FK_NONE; 6501 uint32_t _flag_a = 0, _flag_b = 0; 6502 uint32_t _itail_tgt = 0; 6503 RECOMP_REGS_LOCALS 6504 RECOMP_ENTER(0x2B03B14Cu); 6505 6506 L_2B03B14C: 6507 eax = MEM32(0x2B0EE9BC); /* 0x2B03B14C: mov eax, dword ptr [0x2b0ee9bc] */ 6508 ecx = MEM32(esi + 0x8); /* 0x2B03B151: mov ecx, dword ptr [esi + 8] */ 6509 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 6510 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6511 eax = eax + edi; /* 0x2B03B154: add eax, edi */ 6512 _flag_k = FK_ADD; 6513 MEM32(ecx + 0x8) = eax; /* 0x2B03B156: mov dword ptr [ecx + 8], eax */ 6514 ecx = MEM32(ecx + 0x10); /* 0x2B03B159: mov ecx, dword ptr [ecx + 0x10] */ 6515 edx = MEM32(ecx + 0x3C); /* 0x2B03B15C: mov edx, dword ptr [ecx + 0x3c] */ 6516 MEM32(ebp + (-0x14)) = eax; /* 0x2B03B15F: mov dword ptr [ebp - 0x14], eax */ 6517 eax = ebp + (-0x18); /* 0x2B03B162: lea eax, [ebp - 0x18] */ 6518 PUSH32(esp, eax); /* 0x2B03B165: push eax */ 6519 MEM32(ebp + (-0x18)) = edx; /* 0x2B03B166: mov dword ptr [ebp - 0x18], edx */ 6520 RECOMP_ICALL(ebx); /* 0x2B03B169: call ebx */ 6521 RECOMP_FLAGS_IN(); 6522 ecx = MEM32(esi + 0x8); /* 0x2B03B16B: mov ecx, dword ptr [esi + 8] */ 6523 RECOMP_ICALL(0x2B03A400u); /* 0x2B03B16E: call 0x2b03a400 */ /* not lifted */ 6524 RECOMP_FLAGS_IN(); 6525 eax = MEM32(esi + 0x8); /* 0x2B03B173: mov eax, dword ptr [esi + 8] */ 6526 SET_LO8(ecx, MEM8(eax + 0x1C)); /* 0x2B03B176: mov cl, byte ptr [eax + 0x1c] */ 6527 /* test LO8(ecx), LO8(ecx) */ /* 0x2B03B179: test cl, cl */ 6528 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6529 _cf = 0; 6530 _flag_k = FK_NARROW(FK_TEST, 24); 6531 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B181; /* 0x2B03B17B: jne 0x2b03b181 */ 6532 L_2B03B17D: 6533 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6534 eax = 0; /* 0x2B03B17D: xor eax, eax */ 6535 _cf = 0; 6536 _flag_k = FK_TEST; 6537 goto L_2B03B18E; /* 0x2B03B17F: jmp 0x2b03b18e */ 6538 L_2B03B181: 6539 SET_LO8(ecx, MEM8(eax + 0x24)); /* 0x2B03B181: mov cl, byte ptr [eax + 0x24] */ 6540 /* test LO8(ecx), LO8(ecx) */ /* 0x2B03B184: test cl, cl */ 6541 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6542 _cf = 0; 6543 _flag_k = FK_NARROW(FK_TEST, 24); 6544 eax = MEM32(eax + 0x18); /* 0x2B03B186: mov eax, dword ptr [eax + 0x18] */ 6545 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B18E; /* 0x2B03B189: jne 0x2b03b18e */ 6546 L_2B03B18B: 6547 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u); 6548 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6549 eax = eax + 0x14u; /* 0x2B03B18B: add eax, 0x14 */ 6550 _flag_k = FK_ADD; 6551 L_2B03B18E: 6552 esi = MEM32(esi); /* 0x2B03B18E: mov esi, dword ptr [esi] */ 6553 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6554 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6555 edi = edi + eax; /* 0x2B03B190: add edi, eax */ 6556 _flag_k = FK_ADD; 6557 /* cmp esi, MEM32(ebp + (-0x4)) */ /* 0x2B03B192: cmp esi, dword ptr [ebp - 4] */ 6558 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + (-0x4))); 6559 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6560 _flag_k = FK_CMP; 6561 RECOMP_BACKEDGE(); 6562 if (CMP_NE(_flag_a, _flag_b)) goto L_2B03B14C; /* 0x2B03B195: jne 0x2b03b14c */ 6563 L_2B03B197: 6564 ecx = MEM32(0x2B0EE9D8); /* 0x2B03B197: mov ecx, dword ptr [0x2b0ee9d8] */ 6565 edx = MEM32(0x2B0EE9BC); /* 0x2B03B19D: mov edx, dword ptr [0x2b0ee9bc] */ 6566 MEM32(ebp + (-0x10)) = ecx; /* 0x2B03B1A3: mov dword ptr [ebp - 0x10], ecx */ 6567 ecx = MEM32(0x2B0EE9D4); /* 0x2B03B1A6: mov ecx, dword ptr [0x2b0ee9d4] */ 6568 eax = edx + edi; /* 0x2B03B1AC: lea eax, [edx + edi] */ 6569 /* cmp eax, ecx */ /* 0x2B03B1AF: cmp eax, ecx */ 6570 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6571 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6572 _flag_k = FK_CMP; 6573 MEM32(ebp + (-0xC)) = eax; /* 0x2B03B1B1: mov dword ptr [ebp - 0xc], eax */ 6574 if (CMP_LE(_flag_a, _flag_b)) goto L_2B03B1BB; /* 0x2B03B1B4: jle 0x2b03b1bb */ 6575 L_2B03B1B6: 6576 MEM32(ebp + (-0xC)) = ecx; /* 0x2B03B1B6: mov dword ptr [ebp - 0xc], ecx */ 6577 goto L_2B03B1C6; /* 0x2B03B1B9: jmp 0x2b03b1c6 */ 6578 L_2B03B1BB: 6579 /* test eax, eax */ /* 0x2B03B1BB: test eax, eax */ 6580 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6581 _cf = 0; 6582 _flag_k = FK_TEST; 6583 if (TEST_NS(_flag_a, _flag_b)) goto L_2B03B1C6; /* 0x2B03B1BD: jge 0x2b03b1c6 */ 6584 L_2B03B1BF: 6585 MEM32(ebp + (-0xC)) = 0; /* 0x2B03B1BF: mov dword ptr [ebp - 0xc], 0 */ 6586 L_2B03B1C6: 6587 ecx = MEM32(0x2B0EE9DC); /* 0x2B03B1C6: mov ecx, dword ptr [0x2b0ee9dc] */ 6588 eax = ebp + (-0x10); /* 0x2B03B1CC: lea eax, [ebp - 0x10] */ 6589 PUSH32(esp, eax); /* 0x2B03B1CF: push eax */ 6590 RECOMP_ICALL(MEM32(0x2B0B5978)); /* 0x2B03B1D0: call dword ptr [0x2b0b5978] */ 6591 RECOMP_FLAGS_IN(); 6592 esi = MEM32(ebp + (-0x8)); /* 0x2B03B1D6: mov esi, dword ptr [ebp - 8] */ 6593 ecx = MEM32(esi + 0x58); /* 0x2B03B1D9: mov ecx, dword ptr [esi + 0x58] */ 6594 edx = MEM32(ecx); /* 0x2B03B1DC: mov edx, dword ptr [ecx] */ 6595 eax = ebp + (-0x10); /* 0x2B03B1DE: lea eax, [ebp - 0x10] */ 6596 PUSH32(esp, eax); /* 0x2B03B1E1: push eax */ 6597 RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x2B03B1E2: call dword ptr [edx + 0x18] */ 6598 RECOMP_FLAGS_IN(); 6599 ecx = ebp + (-0x10); /* 0x2B03B1E5: lea ecx, [ebp - 0x10] */ 6600 PUSH32(esp, ecx); /* 0x2B03B1E8: push ecx */ 6601 ecx = esi; /* 0x2B03B1E9: mov ecx, esi */ 6602 RECOMP_ICALL(MEM32(0x2B0B5C1C)); /* 0x2B03B1EB: call dword ptr [0x2b0b5c1c] */ 6603 RECOMP_FLAGS_IN(); 6604 SET_LO8(eax, MEM8(esi + 0x6C)); /* 0x2B03B1F1: mov al, byte ptr [esi + 0x6c] */ 6605 /* test LO8(eax), LO8(eax) */ /* 0x2B03B1F4: test al, al */ 6606 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6607 _cf = 0; 6608 _flag_k = FK_NARROW(FK_TEST, 24); 6609 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B240; /* 0x2B03B1F6: jne 0x2b03b240 */ 6610 L_2B03B1F8: 6611 eax = MEM32(0x2B0EE9BC); /* 0x2B03B1F8: mov eax, dword ptr [0x2b0ee9bc] */ 6612 esi = MEM32(0x2B0EE9D0); /* 0x2B03B1FD: mov esi, dword ptr [0x2b0ee9d0] */ 6613 ecx = MEM32(0x2B0EE9D4); /* 0x2B03B203: mov ecx, dword ptr [0x2b0ee9d4] */ 6614 edx = MEM32(0x2B0EE9DC); /* 0x2B03B209: mov edx, dword ptr [0x2b0ee9dc] */ 6615 ebx = MEM32(0x2B0EE9D8); /* 0x2B03B20F: mov ebx, dword ptr [0x2b0ee9d8] */ 6616 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 6617 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6618 esi = esi - eax; /* 0x2B03B215: sub esi, eax */ 6619 _flag_k = FK_CMP; 6620 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 6621 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6622 esi = esi - edi; /* 0x2B03B217: sub esi, edi */ 6623 _flag_k = FK_CMP; 6624 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6625 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6626 edi = edi + eax; /* 0x2B03B219: add edi, eax */ 6627 _flag_k = FK_ADD; 6628 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 6629 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6630 esi = esi + ecx; /* 0x2B03B21B: add esi, ecx */ 6631 _flag_k = FK_ADD; 6632 ecx = MEM32(edx + 0x2C); /* 0x2B03B21D: mov ecx, dword ptr [edx + 0x2c] */ 6633 PUSH32(esp, edi); /* 0x2B03B220: push edi */ 6634 edi = MEM32(ebp + (-0x8)); /* 0x2B03B221: mov edi, dword ptr [ebp - 8] */ 6635 PUSH32(esp, ecx); /* 0x2B03B224: push ecx */ 6636 ecx = MEM32(edi + 0x5C); /* 0x2B03B225: mov ecx, dword ptr [edi + 0x5c] */ 6637 RECOMP_ICALL(MEM32(0x2B0B597C)); /* 0x2B03B228: call dword ptr [0x2b0b597c] */ 6638 RECOMP_FLAGS_IN(); 6639 ecx = MEM32(edi + 0x5C); /* 0x2B03B22E: mov ecx, dword ptr [edi + 0x5c] */ 6640 PUSH32(esp, esi); /* 0x2B03B231: push esi */ 6641 PUSH32(esp, ebx); /* 0x2B03B232: push ebx */ 6642 RECOMP_ICALL(MEM32(0x2B0B5980)); /* 0x2B03B233: call dword ptr [0x2b0b5980] */ 6643 RECOMP_FLAGS_IN(); 6644 eax = MEM32(edi + 0x5C); /* 0x2B03B239: mov eax, dword ptr [edi + 0x5c] */ 6645 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B03B23C: mov byte ptr [eax + 9], 1 */ 6646 L_2B03B240: 6647 edi = POP32_VAL(esp); /* 0x2B03B240: pop edi */ 6648 esi = POP32_VAL(esp); /* 0x2B03B241: pop esi */ 6649 ebx = POP32_VAL(esp); /* 0x2B03B242: pop ebx */ 6650 esp = ebp; /* 0x2B03B243: mov esp, ebp */ 6651 ebp = POP32_VAL(esp); /* 0x2B03B245: pop ebp */ 6652 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03B246: ret */ 6653 RECOMP_REGS_OUT(); 6654 } 6655 6656 void sub_2B03B18E(void) { 6657 int _fpu_cmp = 0; 6658 uint32_t _cf = 0; 6659 int _df = 1; 6660 uint32_t _flag_k = FK_NONE; 6661 uint32_t _flag_a = 0, _flag_b = 0; 6662 uint32_t _itail_tgt = 0; 6663 RECOMP_REGS_LOCALS 6664 RECOMP_ENTER(0x2B03B18Eu); 6665 6666 goto L_2B03B18E; 6667 L_2B03B14C: 6668 eax = MEM32(0x2B0EE9BC); /* 0x2B03B14C: mov eax, dword ptr [0x2b0ee9bc] */ 6669 ecx = MEM32(esi + 0x8); /* 0x2B03B151: mov ecx, dword ptr [esi + 8] */ 6670 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 6671 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6672 eax = eax + edi; /* 0x2B03B154: add eax, edi */ 6673 _flag_k = FK_ADD; 6674 MEM32(ecx + 0x8) = eax; /* 0x2B03B156: mov dword ptr [ecx + 8], eax */ 6675 ecx = MEM32(ecx + 0x10); /* 0x2B03B159: mov ecx, dword ptr [ecx + 0x10] */ 6676 edx = MEM32(ecx + 0x3C); /* 0x2B03B15C: mov edx, dword ptr [ecx + 0x3c] */ 6677 MEM32(ebp + (-0x14)) = eax; /* 0x2B03B15F: mov dword ptr [ebp - 0x14], eax */ 6678 eax = ebp + (-0x18); /* 0x2B03B162: lea eax, [ebp - 0x18] */ 6679 PUSH32(esp, eax); /* 0x2B03B165: push eax */ 6680 MEM32(ebp + (-0x18)) = edx; /* 0x2B03B166: mov dword ptr [ebp - 0x18], edx */ 6681 RECOMP_ICALL(ebx); /* 0x2B03B169: call ebx */ 6682 RECOMP_FLAGS_IN(); 6683 ecx = MEM32(esi + 0x8); /* 0x2B03B16B: mov ecx, dword ptr [esi + 8] */ 6684 RECOMP_ICALL(0x2B03A400u); /* 0x2B03B16E: call 0x2b03a400 */ /* not lifted */ 6685 RECOMP_FLAGS_IN(); 6686 eax = MEM32(esi + 0x8); /* 0x2B03B173: mov eax, dword ptr [esi + 8] */ 6687 SET_LO8(ecx, MEM8(eax + 0x1C)); /* 0x2B03B176: mov cl, byte ptr [eax + 0x1c] */ 6688 /* test LO8(ecx), LO8(ecx) */ /* 0x2B03B179: test cl, cl */ 6689 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6690 _cf = 0; 6691 _flag_k = FK_NARROW(FK_TEST, 24); 6692 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B181; /* 0x2B03B17B: jne 0x2b03b181 */ 6693 L_2B03B17D: 6694 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6695 eax = 0; /* 0x2B03B17D: xor eax, eax */ 6696 _cf = 0; 6697 _flag_k = FK_TEST; 6698 goto L_2B03B18E; /* 0x2B03B17F: jmp 0x2b03b18e */ 6699 L_2B03B181: 6700 SET_LO8(ecx, MEM8(eax + 0x24)); /* 0x2B03B181: mov cl, byte ptr [eax + 0x24] */ 6701 /* test LO8(ecx), LO8(ecx) */ /* 0x2B03B184: test cl, cl */ 6702 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6703 _cf = 0; 6704 _flag_k = FK_NARROW(FK_TEST, 24); 6705 eax = MEM32(eax + 0x18); /* 0x2B03B186: mov eax, dword ptr [eax + 0x18] */ 6706 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B18E; /* 0x2B03B189: jne 0x2b03b18e */ 6707 L_2B03B18B: 6708 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u); 6709 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6710 eax = eax + 0x14u; /* 0x2B03B18B: add eax, 0x14 */ 6711 _flag_k = FK_ADD; 6712 L_2B03B18E: 6713 esi = MEM32(esi); /* 0x2B03B18E: mov esi, dword ptr [esi] */ 6714 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6715 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6716 edi = edi + eax; /* 0x2B03B190: add edi, eax */ 6717 _flag_k = FK_ADD; 6718 /* cmp esi, MEM32(ebp + (-0x4)) */ /* 0x2B03B192: cmp esi, dword ptr [ebp - 4] */ 6719 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + (-0x4))); 6720 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6721 _flag_k = FK_CMP; 6722 RECOMP_BACKEDGE(); 6723 if (CMP_NE(_flag_a, _flag_b)) goto L_2B03B14C; /* 0x2B03B195: jne 0x2b03b14c */ 6724 L_2B03B197: 6725 ecx = MEM32(0x2B0EE9D8); /* 0x2B03B197: mov ecx, dword ptr [0x2b0ee9d8] */ 6726 edx = MEM32(0x2B0EE9BC); /* 0x2B03B19D: mov edx, dword ptr [0x2b0ee9bc] */ 6727 MEM32(ebp + (-0x10)) = ecx; /* 0x2B03B1A3: mov dword ptr [ebp - 0x10], ecx */ 6728 ecx = MEM32(0x2B0EE9D4); /* 0x2B03B1A6: mov ecx, dword ptr [0x2b0ee9d4] */ 6729 eax = edx + edi; /* 0x2B03B1AC: lea eax, [edx + edi] */ 6730 /* cmp eax, ecx */ /* 0x2B03B1AF: cmp eax, ecx */ 6731 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6732 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6733 _flag_k = FK_CMP; 6734 MEM32(ebp + (-0xC)) = eax; /* 0x2B03B1B1: mov dword ptr [ebp - 0xc], eax */ 6735 if (CMP_LE(_flag_a, _flag_b)) goto L_2B03B1BB; /* 0x2B03B1B4: jle 0x2b03b1bb */ 6736 L_2B03B1B6: 6737 MEM32(ebp + (-0xC)) = ecx; /* 0x2B03B1B6: mov dword ptr [ebp - 0xc], ecx */ 6738 goto L_2B03B1C6; /* 0x2B03B1B9: jmp 0x2b03b1c6 */ 6739 L_2B03B1BB: 6740 /* test eax, eax */ /* 0x2B03B1BB: test eax, eax */ 6741 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6742 _cf = 0; 6743 _flag_k = FK_TEST; 6744 if (TEST_NS(_flag_a, _flag_b)) goto L_2B03B1C6; /* 0x2B03B1BD: jge 0x2b03b1c6 */ 6745 L_2B03B1BF: 6746 MEM32(ebp + (-0xC)) = 0; /* 0x2B03B1BF: mov dword ptr [ebp - 0xc], 0 */ 6747 L_2B03B1C6: 6748 ecx = MEM32(0x2B0EE9DC); /* 0x2B03B1C6: mov ecx, dword ptr [0x2b0ee9dc] */ 6749 eax = ebp + (-0x10); /* 0x2B03B1CC: lea eax, [ebp - 0x10] */ 6750 PUSH32(esp, eax); /* 0x2B03B1CF: push eax */ 6751 RECOMP_ICALL(MEM32(0x2B0B5978)); /* 0x2B03B1D0: call dword ptr [0x2b0b5978] */ 6752 RECOMP_FLAGS_IN(); 6753 esi = MEM32(ebp + (-0x8)); /* 0x2B03B1D6: mov esi, dword ptr [ebp - 8] */ 6754 ecx = MEM32(esi + 0x58); /* 0x2B03B1D9: mov ecx, dword ptr [esi + 0x58] */ 6755 edx = MEM32(ecx); /* 0x2B03B1DC: mov edx, dword ptr [ecx] */ 6756 eax = ebp + (-0x10); /* 0x2B03B1DE: lea eax, [ebp - 0x10] */ 6757 PUSH32(esp, eax); /* 0x2B03B1E1: push eax */ 6758 RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x2B03B1E2: call dword ptr [edx + 0x18] */ 6759 RECOMP_FLAGS_IN(); 6760 ecx = ebp + (-0x10); /* 0x2B03B1E5: lea ecx, [ebp - 0x10] */ 6761 PUSH32(esp, ecx); /* 0x2B03B1E8: push ecx */ 6762 ecx = esi; /* 0x2B03B1E9: mov ecx, esi */ 6763 RECOMP_ICALL(MEM32(0x2B0B5C1C)); /* 0x2B03B1EB: call dword ptr [0x2b0b5c1c] */ 6764 RECOMP_FLAGS_IN(); 6765 SET_LO8(eax, MEM8(esi + 0x6C)); /* 0x2B03B1F1: mov al, byte ptr [esi + 0x6c] */ 6766 /* test LO8(eax), LO8(eax) */ /* 0x2B03B1F4: test al, al */ 6767 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6768 _cf = 0; 6769 _flag_k = FK_NARROW(FK_TEST, 24); 6770 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B240; /* 0x2B03B1F6: jne 0x2b03b240 */ 6771 L_2B03B1F8: 6772 eax = MEM32(0x2B0EE9BC); /* 0x2B03B1F8: mov eax, dword ptr [0x2b0ee9bc] */ 6773 esi = MEM32(0x2B0EE9D0); /* 0x2B03B1FD: mov esi, dword ptr [0x2b0ee9d0] */ 6774 ecx = MEM32(0x2B0EE9D4); /* 0x2B03B203: mov ecx, dword ptr [0x2b0ee9d4] */ 6775 edx = MEM32(0x2B0EE9DC); /* 0x2B03B209: mov edx, dword ptr [0x2b0ee9dc] */ 6776 ebx = MEM32(0x2B0EE9D8); /* 0x2B03B20F: mov ebx, dword ptr [0x2b0ee9d8] */ 6777 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 6778 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6779 esi = esi - eax; /* 0x2B03B215: sub esi, eax */ 6780 _flag_k = FK_CMP; 6781 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 6782 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6783 esi = esi - edi; /* 0x2B03B217: sub esi, edi */ 6784 _flag_k = FK_CMP; 6785 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6786 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6787 edi = edi + eax; /* 0x2B03B219: add edi, eax */ 6788 _flag_k = FK_ADD; 6789 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 6790 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6791 esi = esi + ecx; /* 0x2B03B21B: add esi, ecx */ 6792 _flag_k = FK_ADD; 6793 ecx = MEM32(edx + 0x2C); /* 0x2B03B21D: mov ecx, dword ptr [edx + 0x2c] */ 6794 PUSH32(esp, edi); /* 0x2B03B220: push edi */ 6795 edi = MEM32(ebp + (-0x8)); /* 0x2B03B221: mov edi, dword ptr [ebp - 8] */ 6796 PUSH32(esp, ecx); /* 0x2B03B224: push ecx */ 6797 ecx = MEM32(edi + 0x5C); /* 0x2B03B225: mov ecx, dword ptr [edi + 0x5c] */ 6798 RECOMP_ICALL(MEM32(0x2B0B597C)); /* 0x2B03B228: call dword ptr [0x2b0b597c] */ 6799 RECOMP_FLAGS_IN(); 6800 ecx = MEM32(edi + 0x5C); /* 0x2B03B22E: mov ecx, dword ptr [edi + 0x5c] */ 6801 PUSH32(esp, esi); /* 0x2B03B231: push esi */ 6802 PUSH32(esp, ebx); /* 0x2B03B232: push ebx */ 6803 RECOMP_ICALL(MEM32(0x2B0B5980)); /* 0x2B03B233: call dword ptr [0x2b0b5980] */ 6804 RECOMP_FLAGS_IN(); 6805 eax = MEM32(edi + 0x5C); /* 0x2B03B239: mov eax, dword ptr [edi + 0x5c] */ 6806 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B03B23C: mov byte ptr [eax + 9], 1 */ 6807 L_2B03B240: 6808 edi = POP32_VAL(esp); /* 0x2B03B240: pop edi */ 6809 esi = POP32_VAL(esp); /* 0x2B03B241: pop esi */ 6810 ebx = POP32_VAL(esp); /* 0x2B03B242: pop ebx */ 6811 esp = ebp; /* 0x2B03B243: mov esp, ebp */ 6812 ebp = POP32_VAL(esp); /* 0x2B03B245: pop ebp */ 6813 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03B246: ret */ 6814 RECOMP_REGS_OUT(); 6815 } 6816 6817 void sub_2B03B1C6(void) { 6818 int _fpu_cmp = 0; 6819 uint32_t _cf = 0; 6820 int _df = 1; 6821 uint32_t _flag_k = FK_NONE; 6822 uint32_t _flag_a = 0, _flag_b = 0; 6823 uint32_t _itail_tgt = 0; 6824 RECOMP_REGS_LOCALS 6825 RECOMP_ENTER(0x2B03B1C6u); 6826 6827 L_2B03B1C6: 6828 ecx = MEM32(0x2B0EE9DC); /* 0x2B03B1C6: mov ecx, dword ptr [0x2b0ee9dc] */ 6829 eax = ebp + (-0x10); /* 0x2B03B1CC: lea eax, [ebp - 0x10] */ 6830 PUSH32(esp, eax); /* 0x2B03B1CF: push eax */ 6831 RECOMP_ICALL(MEM32(0x2B0B5978)); /* 0x2B03B1D0: call dword ptr [0x2b0b5978] */ 6832 RECOMP_FLAGS_IN(); 6833 esi = MEM32(ebp + (-0x8)); /* 0x2B03B1D6: mov esi, dword ptr [ebp - 8] */ 6834 ecx = MEM32(esi + 0x58); /* 0x2B03B1D9: mov ecx, dword ptr [esi + 0x58] */ 6835 edx = MEM32(ecx); /* 0x2B03B1DC: mov edx, dword ptr [ecx] */ 6836 eax = ebp + (-0x10); /* 0x2B03B1DE: lea eax, [ebp - 0x10] */ 6837 PUSH32(esp, eax); /* 0x2B03B1E1: push eax */ 6838 RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x2B03B1E2: call dword ptr [edx + 0x18] */ 6839 RECOMP_FLAGS_IN(); 6840 ecx = ebp + (-0x10); /* 0x2B03B1E5: lea ecx, [ebp - 0x10] */ 6841 PUSH32(esp, ecx); /* 0x2B03B1E8: push ecx */ 6842 ecx = esi; /* 0x2B03B1E9: mov ecx, esi */ 6843 RECOMP_ICALL(MEM32(0x2B0B5C1C)); /* 0x2B03B1EB: call dword ptr [0x2b0b5c1c] */ 6844 RECOMP_FLAGS_IN(); 6845 SET_LO8(eax, MEM8(esi + 0x6C)); /* 0x2B03B1F1: mov al, byte ptr [esi + 0x6c] */ 6846 /* test LO8(eax), LO8(eax) */ /* 0x2B03B1F4: test al, al */ 6847 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6848 _cf = 0; 6849 _flag_k = FK_NARROW(FK_TEST, 24); 6850 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B240; /* 0x2B03B1F6: jne 0x2b03b240 */ 6851 L_2B03B1F8: 6852 eax = MEM32(0x2B0EE9BC); /* 0x2B03B1F8: mov eax, dword ptr [0x2b0ee9bc] */ 6853 esi = MEM32(0x2B0EE9D0); /* 0x2B03B1FD: mov esi, dword ptr [0x2b0ee9d0] */ 6854 ecx = MEM32(0x2B0EE9D4); /* 0x2B03B203: mov ecx, dword ptr [0x2b0ee9d4] */ 6855 edx = MEM32(0x2B0EE9DC); /* 0x2B03B209: mov edx, dword ptr [0x2b0ee9dc] */ 6856 ebx = MEM32(0x2B0EE9D8); /* 0x2B03B20F: mov ebx, dword ptr [0x2b0ee9d8] */ 6857 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 6858 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6859 esi = esi - eax; /* 0x2B03B215: sub esi, eax */ 6860 _flag_k = FK_CMP; 6861 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 6862 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6863 esi = esi - edi; /* 0x2B03B217: sub esi, edi */ 6864 _flag_k = FK_CMP; 6865 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6866 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6867 edi = edi + eax; /* 0x2B03B219: add edi, eax */ 6868 _flag_k = FK_ADD; 6869 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 6870 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6871 esi = esi + ecx; /* 0x2B03B21B: add esi, ecx */ 6872 _flag_k = FK_ADD; 6873 ecx = MEM32(edx + 0x2C); /* 0x2B03B21D: mov ecx, dword ptr [edx + 0x2c] */ 6874 PUSH32(esp, edi); /* 0x2B03B220: push edi */ 6875 edi = MEM32(ebp + (-0x8)); /* 0x2B03B221: mov edi, dword ptr [ebp - 8] */ 6876 PUSH32(esp, ecx); /* 0x2B03B224: push ecx */ 6877 ecx = MEM32(edi + 0x5C); /* 0x2B03B225: mov ecx, dword ptr [edi + 0x5c] */ 6878 RECOMP_ICALL(MEM32(0x2B0B597C)); /* 0x2B03B228: call dword ptr [0x2b0b597c] */ 6879 RECOMP_FLAGS_IN(); 6880 ecx = MEM32(edi + 0x5C); /* 0x2B03B22E: mov ecx, dword ptr [edi + 0x5c] */ 6881 PUSH32(esp, esi); /* 0x2B03B231: push esi */ 6882 PUSH32(esp, ebx); /* 0x2B03B232: push ebx */ 6883 RECOMP_ICALL(MEM32(0x2B0B5980)); /* 0x2B03B233: call dword ptr [0x2b0b5980] */ 6884 RECOMP_FLAGS_IN(); 6885 eax = MEM32(edi + 0x5C); /* 0x2B03B239: mov eax, dword ptr [edi + 0x5c] */ 6886 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B03B23C: mov byte ptr [eax + 9], 1 */ 6887 L_2B03B240: 6888 edi = POP32_VAL(esp); /* 0x2B03B240: pop edi */ 6889 esi = POP32_VAL(esp); /* 0x2B03B241: pop esi */ 6890 ebx = POP32_VAL(esp); /* 0x2B03B242: pop ebx */ 6891 esp = ebp; /* 0x2B03B243: mov esp, ebp */ 6892 ebp = POP32_VAL(esp); /* 0x2B03B245: pop ebp */ 6893 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03B246: ret */ 6894 RECOMP_REGS_OUT(); 6895 } 6896 6897 void sub_2B03B250(void) { 6898 int _fpu_cmp = 0; 6899 uint32_t _cf = 0; 6900 int _df = 1; 6901 uint32_t _flag_k = FK_NONE; 6902 uint32_t _flag_a = 0, _flag_b = 0; 6903 uint32_t _itail_tgt = 0; 6904 RECOMP_REGS_LOCALS 6905 RECOMP_ENTER(0x2B03B250u); 6906 6907 L_2B03B250: 6908 PUSH32(esp, ebp); /* 0x2B03B250: push ebp */ 6909 ebp = esp; /* 0x2B03B251: mov ebp, esp */ 6910 SET_LO8(eax, MEM8(ebp + 0x14)); /* 0x2B03B253: mov al, byte ptr [ebp + 0x14] */ 6911 /* test LO8(eax), LO8(eax) */ /* 0x2B03B256: test al, al */ 6912 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6913 _cf = 0; 6914 _flag_k = FK_NARROW(FK_TEST, 24); 6915 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B272; /* 0x2B03B258: jne 0x2b03b272 */ 6916 L_2B03B25A: 6917 eax = MEM32(ebp + 0xC); /* 0x2B03B25A: mov eax, dword ptr [ebp + 0xc] */ 6918 edx = MEM32(ebp + 0x8); /* 0x2B03B25D: mov edx, dword ptr [ebp + 8] */ 6919 PUSH32(esp, eax); /* 0x2B03B260: push eax */ 6920 PUSH32(esp, edx); /* 0x2B03B261: push edx */ 6921 RECOMP_ICALL(MEM32(0x2B0B5974)); /* 0x2B03B262: call dword ptr [0x2b0b5974] */ 6922 RECOMP_FLAGS_IN(); 6923 /* test LO8(eax), LO8(eax) */ /* 0x2B03B268: test al, al */ 6924 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6925 _cf = 0; 6926 _flag_k = FK_NARROW(FK_TEST, 24); 6927 if (TEST_Z(_flag_a, _flag_b)) goto L_2B03B272; /* 0x2B03B26A: je 0x2b03b272 */ 6928 L_2B03B26C: 6929 SET_LO8(eax, 1); /* 0x2B03B26C: mov al, 1 */ 6930 ebp = POP32_VAL(esp); /* 0x2B03B26E: pop ebp */ 6931 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2B03B26F: ret 0x10 */ 6932 L_2B03B272: 6933 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 6934 SET_LO8(eax, 0); /* 0x2B03B272: xor al, al */ 6935 _cf = 0; 6936 _flag_k = FK_NARROW(FK_TEST, 24); 6937 ebp = POP32_VAL(esp); /* 0x2B03B274: pop ebp */ 6938 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2B03B275: ret 0x10 */ 6939 RECOMP_REGS_OUT(); 6940 } 6941 6942 void sub_2B03B280(void) { 6943 int _fpu_cmp = 0; 6944 uint32_t _cf = 0; 6945 int _df = 1; 6946 uint32_t _flag_k = FK_NONE; 6947 uint32_t _flag_a = 0, _flag_b = 0; 6948 uint32_t _itail_tgt = 0; 6949 RECOMP_REGS_LOCALS 6950 RECOMP_ENTER(0x2B03B280u); 6951 6952 L_2B03B280: 6953 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x64u); 6954 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6955 ecx = ecx + 0x64u; /* 0x2B03B280: add ecx, 0x64 */ 6956 _flag_k = FK_ADD; 6957 PUSH32(esp, ecx); /* 0x2B03B283: push ecx */ 6958 RECOMP_ICALL(MEM32(0x2B0B596C)); /* 0x2B03B284: call dword ptr [0x2b0b596c] */ 6959 RECOMP_FLAGS_IN(); 6960 ecx = eax; /* 0x2B03B28A: mov ecx, eax */ 6961 RECOMP_ICALL(MEM32(0x2B0B5970)); /* 0x2B03B28C: call dword ptr [0x2b0b5970] */ 6962 RECOMP_FLAGS_IN(); 6963 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B03B292: ret */ 6964 RECOMP_REGS_OUT(); 6965 } 6966 6967 void sub_2B03B2A0(void) { 6968 int _fpu_cmp = 0; 6969 uint32_t _cf = 0; 6970 int _df = 1; 6971 uint32_t _flag_k = FK_NONE; 6972 uint32_t _flag_a = 0, _flag_b = 0; 6973 uint32_t _itail_tgt = 0; 6974 RECOMP_REGS_LOCALS 6975 RECOMP_ENTER(0x2B03B2A0u); 6976 6977 L_2B03B2A0: 6978 PUSH32(esp, ebp); /* 0x2B03B2A0: push ebp */ 6979 ebp = esp; /* 0x2B03B2A1: mov ebp, esp */ 6980 eax = MEM32(0x2B0EE9BC); /* 0x2B03B2A3: mov eax, dword ptr [0x2b0ee9bc] */ 6981 PUSH32(esp, ebx); /* 0x2B03B2A8: push ebx */ 6982 PUSH32(esp, esi); /* 0x2B03B2A9: push esi */ 6983 esi = ecx; /* 0x2B03B2AA: mov esi, ecx */ 6984 ecx = MEM32(esi + 0x68); /* 0x2B03B2AC: mov ecx, dword ptr [esi + 0x68] */ 6985 PUSH32(esp, edi); /* 0x2B03B2AF: push edi */ 6986 edi = MEM32(ebp + 0xC); /* 0x2B03B2B0: mov edi, dword ptr [ebp + 0xc] */ 6987 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6988 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6989 eax = eax - ecx; /* 0x2B03B2B3: sub eax, ecx */ 6990 _flag_k = FK_CMP; 6991 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 6992 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6993 eax = eax + edi; /* 0x2B03B2B5: add eax, edi */ 6994 _flag_k = FK_ADD; 6995 PUSH32(esp, eax); /* 0x2B03B2B7: push eax */ 6996 ecx = esi; /* 0x2B03B2B8: mov ecx, esi */ 6997 RECOMP_ICALL(0x2B03B9A0u); /* 0x2B03B2BA: call 0x2b03b9a0 */ /* not lifted */ 6998 RECOMP_FLAGS_IN(); 6999 ebx = MEM32(0x2B0B5690); /* 0x2B03B2BF: mov ebx, dword ptr [0x2b0b5690] */ 7000 MEM32(esi + 0x68) = edi; /* 0x2B03B2C5: mov dword ptr [esi + 0x68], edi */ 7001 RECOMP_ICALL(ebx); /* 0x2B03B2C8: call ebx */ 7002 RECOMP_FLAGS_IN(); 7003 ecx = eax; /* 0x2B03B2CA: mov ecx, eax */ 7004 RECOMP_ICALL(MEM32(0x2B0B5688)); /* 0x2B03B2CC: call dword ptr [0x2b0b5688] */ 7005 RECOMP_FLAGS_IN(); 7006 RECOMP_ICALL(ebx); /* 0x2B03B2D2: call ebx */ 7007 RECOMP_FLAGS_IN(); 7008 ecx = eax; /* 0x2B03B2D4: mov ecx, eax */ 7009 RECOMP_ICALL(MEM32(0x2B0B568C)); /* 0x2B03B2D6: call dword ptr [0x2b0b568c] */ 7010 RECOMP_FLAGS_IN(); 7011 /* test edi, edi */ /* 0x2B03B2DC: test edi, edi */ 7012 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 7013 _cf = 0; 7014 _flag_k = FK_TEST; 7015 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B03B2EB; /* 0x2B03B2DE: jne 0x2b03b2eb */ 7016 L_2B03B2E0: 7017 ecx = MEM32(esi + 0x64); /* 0x2B03B2E0: mov ecx, dword ptr [esi + 0x64] */ 7018 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7019 eax = eax - 1; /* 0x2B03B2E3: dec eax */ 7020 _flag_k = FK_DEC; 7021 PUSH32(esp, eax); /* 0x2B03B2E4: push eax */ 7022 MEM32(esi + 0x68) = eax; /* 0x2B03B2E5: mov dword ptr [esi + 0x68], eax */ 7023 PUSH32(esp, ecx); /* 0x2B03B2E8: push ecx */ 7024 goto L_2B03B2FC; /* 0x2B03B2E9: jmp 0x2b03b2fc */ 7025 L_2B03B2EB: 7026 /* cmp edi, eax */ /* 0x2B03B2EB: cmp edi, eax */ 7027 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7028 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7029 _flag_k = FK_CMP; 7030 if (CMP_L(_flag_a, _flag_b)) goto L_2B03B302; /* 0x2B03B2ED: jl 0x2b03b302 */ 7031 L_2B03B2EF: 7032 edx = MEM32(esi + 0x64); /* 0x2B03B2EF: mov edx, dword ptr [esi + 0x64] */ 7033 PUSH32(esp, 1); /* 0x2B03B2F2: push 1 */ 7034 MEM32(esi + 0x68) = 1; /* 0x2B03B2F4: mov dword ptr [esi + 0x68], 1 */ 7035 PUSH32(esp, edx); /* 0x2B03B2FB: push edx */ 7036 L_2B03B2FC: 7037 RECOMP_ICALL(MEM32(0x2B0B52D4)); /* 0x2B03B2FC: call dword ptr [0x2b0b52d4] */ 7038 RECOMP_FLAGS_IN(); 7039 L_2B03B302: 7040 PUSH32(esp, 3); /* 0x2B03B302: push 3 */ 7041 PUSH32(esp, 2); /* 0x2B03B304: push 2 */ 7042 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B03B306: call dword ptr [0x2b0b53cc] */ 7043 RECOMP_FLAGS_IN(); 7044 ecx = eax; /* 0x2B03B30C: mov ecx, eax */ 7045 RECOMP_ICALL(MEM32(0x2B0B53C8)); /* 0x2B03B30E: call dword ptr [0x2b0b53c8] */ 7046 RECOMP_FLAGS_IN(); 7047 edi = POP32_VAL(esp); /* 0x2B03B314: pop edi */ 7048 esi = POP32_VAL(esp); /* 0x2B03B315: pop esi */ 7049 SET_LO8(eax, 1); /* 0x2B03B316: mov al, 1 */ 7050 ebx = POP32_VAL(esp); /* 0x2B03B318: pop ebx */ 7051 ebp = POP32_VAL(esp); /* 0x2B03B319: pop ebp */ 7052 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B03B31A: ret 8 */ 7053 RECOMP_REGS_OUT(); 7054 }