client/vendor/msvcp60/source/lifted-0036.c (153010B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 4 void sub_46029063(void) { 5 int _fpu_cmp = 0; 6 uint32_t _cf = 0; 7 int _df = 1; 8 uint32_t _flag_k = FK_NONE; 9 uint32_t _flag_a = 0, _flag_b = 0; 10 uint32_t _itail_tgt = 0; 11 RECOMP_REGS_LOCALS 12 RECOMP_ENTER(0x46029063u); 13 14 goto L_46029063; 15 L_46028258: 16 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 17 L_46029063: 18 eax = 0x46030398u; /* 0x46029063: mov eax, 0x46030398 */ 19 L_46029068: 20 RECOMP_BACKEDGE(); 21 goto L_46028258; /* 0x46029068: jmp 0x46028258 */ 22 { RECOMP_REGS_OUT(); return; } /* end of function */ 23 _ljump: 24 switch (_itail_tgt) { 25 case 0x46028258u: goto L_46028258; 26 case 0x46029063u: goto L_46029063; 27 case 0x46029068u: goto L_46029068; 28 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 29 } 30 RECOMP_REGS_OUT(); 31 } 32 33 void sub_4602906D(void) { 34 int _fpu_cmp = 0; 35 uint32_t _cf = 0; 36 int _df = 1; 37 uint32_t _flag_k = FK_NONE; 38 uint32_t _flag_a = 0, _flag_b = 0; 39 uint32_t _itail_tgt = 0; 40 RECOMP_REGS_LOCALS 41 RECOMP_ENTER(0x4602906Du); 42 43 goto L_4602906D; 44 L_46001C9F: 45 edx = MEM32(eax); /* 0x46001C9F: mov edx, dword ptr [eax] */ 46 PUSH32(esp, 1); /* 0x46001CA1: push 1 */ 47 ecx = eax; /* 0x46001CA3: mov ecx, eax */ 48 RECOMP_ICALL(MEM32(edx)); /* 0x46001CA5: call dword ptr [edx] */ 49 RECOMP_FLAGS_IN(); 50 goto L_46001CBD; /* 0x46001CA7: jmp 0x46001cbd */ 51 L_46001CAE: 52 ecx = MEM32(ecx); /* 0x46001CAE: mov ecx, dword ptr [ecx] */ 53 /* test ecx, ecx */ /* 0x46001CB0: test ecx, ecx */ 54 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 55 _cf = 0; 56 _flag_k = FK_TEST; 57 if (TEST_Z(_flag_a, _flag_b)) goto L_46001CBD; /* 0x46001CB2: je 0x46001cbd */ 58 L_46001CB4: 59 RECOMP_ICALL(0x46001CBEu); /* 0x46001CB4: call 0x46001cbe */ /* not lifted */ 60 RECOMP_FLAGS_IN(); 61 /* test eax, eax */ /* 0x46001CB9: test eax, eax */ 62 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 63 _cf = 0; 64 _flag_k = FK_TEST; 65 RECOMP_BACKEDGE(); 66 if (TEST_NZ(_flag_a, _flag_b)) goto L_46001C9F; /* 0x46001CBB: jne 0x46001c9f */ 67 L_46001CBD: 68 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46001CBD: ret */ 69 L_4602906D: 70 ecx = ebp + (-0x1C); /* 0x4602906D: lea ecx, [ebp - 0x1c] */ 71 RECOMP_BACKEDGE(); 72 goto L_46001CAE; /* 0x46029070: jmp 0x46001cae */ 73 { RECOMP_REGS_OUT(); return; } /* end of function */ 74 RECOMP_REGS_OUT(); 75 } 76 77 void sub_46029075(void) { 78 int _fpu_cmp = 0; 79 uint32_t _cf = 0; 80 int _df = 1; 81 uint32_t _flag_k = FK_NONE; 82 uint32_t _flag_a = 0, _flag_b = 0; 83 uint32_t _itail_tgt = 0; 84 RECOMP_REGS_LOCALS 85 RECOMP_ENTER(0x46029075u); 86 87 goto L_46029075; 88 L_46028258: 89 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 90 L_46029075: 91 eax = 0x460303F8u; /* 0x46029075: mov eax, 0x460303f8 */ 92 L_4602907A: 93 RECOMP_BACKEDGE(); 94 goto L_46028258; /* 0x4602907A: jmp 0x46028258 */ 95 { RECOMP_REGS_OUT(); return; } /* end of function */ 96 _ljump: 97 switch (_itail_tgt) { 98 case 0x46028258u: goto L_46028258; 99 case 0x46029075u: goto L_46029075; 100 case 0x4602907Au: goto L_4602907A; 101 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 102 } 103 RECOMP_REGS_OUT(); 104 } 105 106 void sub_4602907F(void) { 107 int _fpu_cmp = 0; 108 uint32_t _cf = 0; 109 int _df = 1; 110 uint32_t _flag_k = FK_NONE; 111 uint32_t _flag_a = 0, _flag_b = 0; 112 uint32_t _itail_tgt = 0; 113 RECOMP_REGS_LOCALS 114 RECOMP_ENTER(0x4602907Fu); 115 116 goto L_4602907F; 117 L_46001C9F: 118 edx = MEM32(eax); /* 0x46001C9F: mov edx, dword ptr [eax] */ 119 PUSH32(esp, 1); /* 0x46001CA1: push 1 */ 120 ecx = eax; /* 0x46001CA3: mov ecx, eax */ 121 RECOMP_ICALL(MEM32(edx)); /* 0x46001CA5: call dword ptr [edx] */ 122 RECOMP_FLAGS_IN(); 123 goto L_46001CBD; /* 0x46001CA7: jmp 0x46001cbd */ 124 L_46001CAE: 125 ecx = MEM32(ecx); /* 0x46001CAE: mov ecx, dword ptr [ecx] */ 126 /* test ecx, ecx */ /* 0x46001CB0: test ecx, ecx */ 127 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 128 _cf = 0; 129 _flag_k = FK_TEST; 130 if (TEST_Z(_flag_a, _flag_b)) goto L_46001CBD; /* 0x46001CB2: je 0x46001cbd */ 131 L_46001CB4: 132 RECOMP_ICALL(0x46001CBEu); /* 0x46001CB4: call 0x46001cbe */ /* not lifted */ 133 RECOMP_FLAGS_IN(); 134 /* test eax, eax */ /* 0x46001CB9: test eax, eax */ 135 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 136 _cf = 0; 137 _flag_k = FK_TEST; 138 RECOMP_BACKEDGE(); 139 if (TEST_NZ(_flag_a, _flag_b)) goto L_46001C9F; /* 0x46001CBB: jne 0x46001c9f */ 140 L_46001CBD: 141 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46001CBD: ret */ 142 L_4602907F: 143 ecx = ebp + (-0x1C); /* 0x4602907F: lea ecx, [ebp - 0x1c] */ 144 RECOMP_BACKEDGE(); 145 goto L_46001CAE; /* 0x46029082: jmp 0x46001cae */ 146 { RECOMP_REGS_OUT(); return; } /* end of function */ 147 RECOMP_REGS_OUT(); 148 } 149 150 void sub_46029087(void) { 151 int _fpu_cmp = 0; 152 uint32_t _cf = 0; 153 int _df = 1; 154 uint32_t _flag_k = FK_NONE; 155 uint32_t _flag_a = 0, _flag_b = 0; 156 uint32_t _itail_tgt = 0; 157 RECOMP_REGS_LOCALS 158 RECOMP_ENTER(0x46029087u); 159 160 goto L_46029087; 161 L_46028258: 162 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 163 L_46029087: 164 eax = 0x46030458u; /* 0x46029087: mov eax, 0x46030458 */ 165 L_4602908C: 166 RECOMP_BACKEDGE(); 167 goto L_46028258; /* 0x4602908C: jmp 0x46028258 */ 168 { RECOMP_REGS_OUT(); return; } /* end of function */ 169 _ljump: 170 switch (_itail_tgt) { 171 case 0x46028258u: goto L_46028258; 172 case 0x46029087u: goto L_46029087; 173 case 0x4602908Cu: goto L_4602908C; 174 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 175 } 176 RECOMP_REGS_OUT(); 177 } 178 179 void sub_46029091(void) { 180 int _fpu_cmp = 0; 181 uint32_t _cf = 0; 182 int _df = 1; 183 uint32_t _flag_k = FK_NONE; 184 uint32_t _flag_a = 0, _flag_b = 0; 185 uint32_t _itail_tgt = 0; 186 RECOMP_REGS_LOCALS 187 RECOMP_ENTER(0x46029091u); 188 189 goto L_46029091; 190 L_46001C9F: 191 edx = MEM32(eax); /* 0x46001C9F: mov edx, dword ptr [eax] */ 192 PUSH32(esp, 1); /* 0x46001CA1: push 1 */ 193 ecx = eax; /* 0x46001CA3: mov ecx, eax */ 194 RECOMP_ICALL(MEM32(edx)); /* 0x46001CA5: call dword ptr [edx] */ 195 RECOMP_FLAGS_IN(); 196 goto L_46001CBD; /* 0x46001CA7: jmp 0x46001cbd */ 197 L_46001CAE: 198 ecx = MEM32(ecx); /* 0x46001CAE: mov ecx, dword ptr [ecx] */ 199 /* test ecx, ecx */ /* 0x46001CB0: test ecx, ecx */ 200 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 201 _cf = 0; 202 _flag_k = FK_TEST; 203 if (TEST_Z(_flag_a, _flag_b)) goto L_46001CBD; /* 0x46001CB2: je 0x46001cbd */ 204 L_46001CB4: 205 RECOMP_ICALL(0x46001CBEu); /* 0x46001CB4: call 0x46001cbe */ /* not lifted */ 206 RECOMP_FLAGS_IN(); 207 /* test eax, eax */ /* 0x46001CB9: test eax, eax */ 208 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 209 _cf = 0; 210 _flag_k = FK_TEST; 211 RECOMP_BACKEDGE(); 212 if (TEST_NZ(_flag_a, _flag_b)) goto L_46001C9F; /* 0x46001CBB: jne 0x46001c9f */ 213 L_46001CBD: 214 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46001CBD: ret */ 215 L_46029091: 216 ecx = ebp + (-0x1C); /* 0x46029091: lea ecx, [ebp - 0x1c] */ 217 RECOMP_BACKEDGE(); 218 goto L_46001CAE; /* 0x46029094: jmp 0x46001cae */ 219 { RECOMP_REGS_OUT(); return; } /* end of function */ 220 RECOMP_REGS_OUT(); 221 } 222 223 void sub_46029099(void) { 224 int _fpu_cmp = 0; 225 uint32_t _cf = 0; 226 int _df = 1; 227 uint32_t _flag_k = FK_NONE; 228 uint32_t _flag_a = 0, _flag_b = 0; 229 uint32_t _itail_tgt = 0; 230 RECOMP_REGS_LOCALS 231 RECOMP_ENTER(0x46029099u); 232 233 goto L_46029099; 234 L_46028258: 235 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 236 L_46029099: 237 eax = 0x460304B8u; /* 0x46029099: mov eax, 0x460304b8 */ 238 L_4602909E: 239 RECOMP_BACKEDGE(); 240 goto L_46028258; /* 0x4602909E: jmp 0x46028258 */ 241 { RECOMP_REGS_OUT(); return; } /* end of function */ 242 _ljump: 243 switch (_itail_tgt) { 244 case 0x46028258u: goto L_46028258; 245 case 0x46029099u: goto L_46029099; 246 case 0x4602909Eu: goto L_4602909E; 247 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 248 } 249 RECOMP_REGS_OUT(); 250 } 251 252 void sub_460290A3(void) { 253 int _fpu_cmp = 0; 254 uint32_t _cf = 0; 255 int _df = 1; 256 uint32_t _flag_k = FK_NONE; 257 uint32_t _flag_a = 0, _flag_b = 0; 258 uint32_t _itail_tgt = 0; 259 RECOMP_REGS_LOCALS 260 RECOMP_ENTER(0x460290A3u); 261 262 goto L_460290A3; 263 L_46001C9F: 264 edx = MEM32(eax); /* 0x46001C9F: mov edx, dword ptr [eax] */ 265 PUSH32(esp, 1); /* 0x46001CA1: push 1 */ 266 ecx = eax; /* 0x46001CA3: mov ecx, eax */ 267 RECOMP_ICALL(MEM32(edx)); /* 0x46001CA5: call dword ptr [edx] */ 268 RECOMP_FLAGS_IN(); 269 goto L_46001CBD; /* 0x46001CA7: jmp 0x46001cbd */ 270 L_46001CAE: 271 ecx = MEM32(ecx); /* 0x46001CAE: mov ecx, dword ptr [ecx] */ 272 /* test ecx, ecx */ /* 0x46001CB0: test ecx, ecx */ 273 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 274 _cf = 0; 275 _flag_k = FK_TEST; 276 if (TEST_Z(_flag_a, _flag_b)) goto L_46001CBD; /* 0x46001CB2: je 0x46001cbd */ 277 L_46001CB4: 278 RECOMP_ICALL(0x46001CBEu); /* 0x46001CB4: call 0x46001cbe */ /* not lifted */ 279 RECOMP_FLAGS_IN(); 280 /* test eax, eax */ /* 0x46001CB9: test eax, eax */ 281 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 282 _cf = 0; 283 _flag_k = FK_TEST; 284 RECOMP_BACKEDGE(); 285 if (TEST_NZ(_flag_a, _flag_b)) goto L_46001C9F; /* 0x46001CBB: jne 0x46001c9f */ 286 L_46001CBD: 287 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46001CBD: ret */ 288 L_460290A3: 289 ecx = ebp + (-0x1C); /* 0x460290A3: lea ecx, [ebp - 0x1c] */ 290 RECOMP_BACKEDGE(); 291 goto L_46001CAE; /* 0x460290A6: jmp 0x46001cae */ 292 { RECOMP_REGS_OUT(); return; } /* end of function */ 293 RECOMP_REGS_OUT(); 294 } 295 296 void sub_460290AB(void) { 297 int _fpu_cmp = 0; 298 uint32_t _cf = 0; 299 int _df = 1; 300 uint32_t _flag_k = FK_NONE; 301 uint32_t _flag_a = 0, _flag_b = 0; 302 uint32_t _itail_tgt = 0; 303 RECOMP_REGS_LOCALS 304 RECOMP_ENTER(0x460290ABu); 305 306 goto L_460290AB; 307 L_46028258: 308 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 309 L_460290AB: 310 eax = 0x46030518u; /* 0x460290AB: mov eax, 0x46030518 */ 311 L_460290B0: 312 RECOMP_BACKEDGE(); 313 goto L_46028258; /* 0x460290B0: jmp 0x46028258 */ 314 { RECOMP_REGS_OUT(); return; } /* end of function */ 315 _ljump: 316 switch (_itail_tgt) { 317 case 0x46028258u: goto L_46028258; 318 case 0x460290ABu: goto L_460290AB; 319 case 0x460290B0u: goto L_460290B0; 320 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 321 } 322 RECOMP_REGS_OUT(); 323 } 324 325 void sub_460290B5(void) { 326 int _fpu_cmp = 0; 327 uint32_t _cf = 0; 328 int _df = 1; 329 uint32_t _flag_k = FK_NONE; 330 uint32_t _flag_a = 0, _flag_b = 0; 331 uint32_t _itail_tgt = 0; 332 RECOMP_REGS_LOCALS 333 RECOMP_ENTER(0x460290B5u); 334 335 goto L_460290B5; 336 L_46001C9F: 337 edx = MEM32(eax); /* 0x46001C9F: mov edx, dword ptr [eax] */ 338 PUSH32(esp, 1); /* 0x46001CA1: push 1 */ 339 ecx = eax; /* 0x46001CA3: mov ecx, eax */ 340 RECOMP_ICALL(MEM32(edx)); /* 0x46001CA5: call dword ptr [edx] */ 341 RECOMP_FLAGS_IN(); 342 goto L_46001CBD; /* 0x46001CA7: jmp 0x46001cbd */ 343 L_46001CAE: 344 ecx = MEM32(ecx); /* 0x46001CAE: mov ecx, dword ptr [ecx] */ 345 /* test ecx, ecx */ /* 0x46001CB0: test ecx, ecx */ 346 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 347 _cf = 0; 348 _flag_k = FK_TEST; 349 if (TEST_Z(_flag_a, _flag_b)) goto L_46001CBD; /* 0x46001CB2: je 0x46001cbd */ 350 L_46001CB4: 351 RECOMP_ICALL(0x46001CBEu); /* 0x46001CB4: call 0x46001cbe */ /* not lifted */ 352 RECOMP_FLAGS_IN(); 353 /* test eax, eax */ /* 0x46001CB9: test eax, eax */ 354 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 355 _cf = 0; 356 _flag_k = FK_TEST; 357 RECOMP_BACKEDGE(); 358 if (TEST_NZ(_flag_a, _flag_b)) goto L_46001C9F; /* 0x46001CBB: jne 0x46001c9f */ 359 L_46001CBD: 360 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46001CBD: ret */ 361 L_460290B5: 362 ecx = ebp + (-0x1C); /* 0x460290B5: lea ecx, [ebp - 0x1c] */ 363 RECOMP_BACKEDGE(); 364 goto L_46001CAE; /* 0x460290B8: jmp 0x46001cae */ 365 { RECOMP_REGS_OUT(); return; } /* end of function */ 366 RECOMP_REGS_OUT(); 367 } 368 369 void sub_460290BD(void) { 370 int _fpu_cmp = 0; 371 uint32_t _cf = 0; 372 int _df = 1; 373 uint32_t _flag_k = FK_NONE; 374 uint32_t _flag_a = 0, _flag_b = 0; 375 uint32_t _itail_tgt = 0; 376 RECOMP_REGS_LOCALS 377 RECOMP_ENTER(0x460290BDu); 378 379 goto L_460290BD; 380 L_46028258: 381 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 382 L_460290BD: 383 eax = 0x46030578u; /* 0x460290BD: mov eax, 0x46030578 */ 384 L_460290C2: 385 RECOMP_BACKEDGE(); 386 goto L_46028258; /* 0x460290C2: jmp 0x46028258 */ 387 { RECOMP_REGS_OUT(); return; } /* end of function */ 388 _ljump: 389 switch (_itail_tgt) { 390 case 0x46028258u: goto L_46028258; 391 case 0x460290BDu: goto L_460290BD; 392 case 0x460290C2u: goto L_460290C2; 393 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 394 } 395 RECOMP_REGS_OUT(); 396 } 397 398 void sub_460290C7(void) { 399 int _fpu_cmp = 0; 400 uint32_t _cf = 0; 401 int _df = 1; 402 uint32_t _flag_k = FK_NONE; 403 uint32_t _flag_a = 0, _flag_b = 0; 404 uint32_t _itail_tgt = 0; 405 RECOMP_REGS_LOCALS 406 RECOMP_ENTER(0x460290C7u); 407 408 goto L_460290C7; 409 L_46001C9F: 410 edx = MEM32(eax); /* 0x46001C9F: mov edx, dword ptr [eax] */ 411 PUSH32(esp, 1); /* 0x46001CA1: push 1 */ 412 ecx = eax; /* 0x46001CA3: mov ecx, eax */ 413 RECOMP_ICALL(MEM32(edx)); /* 0x46001CA5: call dword ptr [edx] */ 414 RECOMP_FLAGS_IN(); 415 goto L_46001CBD; /* 0x46001CA7: jmp 0x46001cbd */ 416 L_46001CAE: 417 ecx = MEM32(ecx); /* 0x46001CAE: mov ecx, dword ptr [ecx] */ 418 /* test ecx, ecx */ /* 0x46001CB0: test ecx, ecx */ 419 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 420 _cf = 0; 421 _flag_k = FK_TEST; 422 if (TEST_Z(_flag_a, _flag_b)) goto L_46001CBD; /* 0x46001CB2: je 0x46001cbd */ 423 L_46001CB4: 424 RECOMP_ICALL(0x46001CBEu); /* 0x46001CB4: call 0x46001cbe */ /* not lifted */ 425 RECOMP_FLAGS_IN(); 426 /* test eax, eax */ /* 0x46001CB9: test eax, eax */ 427 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 428 _cf = 0; 429 _flag_k = FK_TEST; 430 RECOMP_BACKEDGE(); 431 if (TEST_NZ(_flag_a, _flag_b)) goto L_46001C9F; /* 0x46001CBB: jne 0x46001c9f */ 432 L_46001CBD: 433 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46001CBD: ret */ 434 L_460290C7: 435 ecx = ebp + (-0x1C); /* 0x460290C7: lea ecx, [ebp - 0x1c] */ 436 RECOMP_BACKEDGE(); 437 goto L_46001CAE; /* 0x460290CA: jmp 0x46001cae */ 438 { RECOMP_REGS_OUT(); return; } /* end of function */ 439 RECOMP_REGS_OUT(); 440 } 441 442 void sub_460290CF(void) { 443 int _fpu_cmp = 0; 444 uint32_t _cf = 0; 445 int _df = 1; 446 uint32_t _flag_k = FK_NONE; 447 uint32_t _flag_a = 0, _flag_b = 0; 448 uint32_t _itail_tgt = 0; 449 RECOMP_REGS_LOCALS 450 RECOMP_ENTER(0x460290CFu); 451 452 goto L_460290CF; 453 L_46028258: 454 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 455 L_460290CF: 456 eax = 0x460305D8u; /* 0x460290CF: mov eax, 0x460305d8 */ 457 L_460290D4: 458 RECOMP_BACKEDGE(); 459 goto L_46028258; /* 0x460290D4: jmp 0x46028258 */ 460 { RECOMP_REGS_OUT(); return; } /* end of function */ 461 _ljump: 462 switch (_itail_tgt) { 463 case 0x46028258u: goto L_46028258; 464 case 0x460290CFu: goto L_460290CF; 465 case 0x460290D4u: goto L_460290D4; 466 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 467 } 468 RECOMP_REGS_OUT(); 469 } 470 471 void sub_460290D9(void) { 472 int _fpu_cmp = 0; 473 uint32_t _cf = 0; 474 int _df = 1; 475 uint32_t _flag_k = FK_NONE; 476 uint32_t _flag_a = 0, _flag_b = 0; 477 uint32_t _itail_tgt = 0; 478 RECOMP_REGS_LOCALS 479 RECOMP_ENTER(0x460290D9u); 480 481 goto L_460290D9; 482 L_46001C9F: 483 edx = MEM32(eax); /* 0x46001C9F: mov edx, dword ptr [eax] */ 484 PUSH32(esp, 1); /* 0x46001CA1: push 1 */ 485 ecx = eax; /* 0x46001CA3: mov ecx, eax */ 486 RECOMP_ICALL(MEM32(edx)); /* 0x46001CA5: call dword ptr [edx] */ 487 RECOMP_FLAGS_IN(); 488 goto L_46001CBD; /* 0x46001CA7: jmp 0x46001cbd */ 489 L_46001CAE: 490 ecx = MEM32(ecx); /* 0x46001CAE: mov ecx, dword ptr [ecx] */ 491 /* test ecx, ecx */ /* 0x46001CB0: test ecx, ecx */ 492 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 493 _cf = 0; 494 _flag_k = FK_TEST; 495 if (TEST_Z(_flag_a, _flag_b)) goto L_46001CBD; /* 0x46001CB2: je 0x46001cbd */ 496 L_46001CB4: 497 RECOMP_ICALL(0x46001CBEu); /* 0x46001CB4: call 0x46001cbe */ /* not lifted */ 498 RECOMP_FLAGS_IN(); 499 /* test eax, eax */ /* 0x46001CB9: test eax, eax */ 500 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 501 _cf = 0; 502 _flag_k = FK_TEST; 503 RECOMP_BACKEDGE(); 504 if (TEST_NZ(_flag_a, _flag_b)) goto L_46001C9F; /* 0x46001CBB: jne 0x46001c9f */ 505 L_46001CBD: 506 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46001CBD: ret */ 507 L_460290D9: 508 ecx = ebp + (-0x1C); /* 0x460290D9: lea ecx, [ebp - 0x1c] */ 509 RECOMP_BACKEDGE(); 510 goto L_46001CAE; /* 0x460290DC: jmp 0x46001cae */ 511 { RECOMP_REGS_OUT(); return; } /* end of function */ 512 RECOMP_REGS_OUT(); 513 } 514 515 void sub_460290E1(void) { 516 int _fpu_cmp = 0; 517 uint32_t _cf = 0; 518 int _df = 1; 519 uint32_t _flag_k = FK_NONE; 520 uint32_t _flag_a = 0, _flag_b = 0; 521 uint32_t _itail_tgt = 0; 522 RECOMP_REGS_LOCALS 523 RECOMP_ENTER(0x460290E1u); 524 525 goto L_460290E1; 526 L_46028258: 527 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 528 L_460290E1: 529 eax = 0x46030638u; /* 0x460290E1: mov eax, 0x46030638 */ 530 L_460290E6: 531 RECOMP_BACKEDGE(); 532 goto L_46028258; /* 0x460290E6: jmp 0x46028258 */ 533 { RECOMP_REGS_OUT(); return; } /* end of function */ 534 _ljump: 535 switch (_itail_tgt) { 536 case 0x46028258u: goto L_46028258; 537 case 0x460290E1u: goto L_460290E1; 538 case 0x460290E6u: goto L_460290E6; 539 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 540 } 541 RECOMP_REGS_OUT(); 542 } 543 544 void sub_460290EB(void) { 545 int _fpu_cmp = 0; 546 uint32_t _cf = 0; 547 int _df = 1; 548 uint32_t _flag_k = FK_NONE; 549 uint32_t _flag_a = 0, _flag_b = 0; 550 uint32_t _itail_tgt = 0; 551 RECOMP_REGS_LOCALS 552 RECOMP_ENTER(0x460290EBu); 553 554 goto L_460290EB; 555 L_46001C9F: 556 edx = MEM32(eax); /* 0x46001C9F: mov edx, dword ptr [eax] */ 557 PUSH32(esp, 1); /* 0x46001CA1: push 1 */ 558 ecx = eax; /* 0x46001CA3: mov ecx, eax */ 559 RECOMP_ICALL(MEM32(edx)); /* 0x46001CA5: call dword ptr [edx] */ 560 RECOMP_FLAGS_IN(); 561 goto L_46001CBD; /* 0x46001CA7: jmp 0x46001cbd */ 562 L_46001CAE: 563 ecx = MEM32(ecx); /* 0x46001CAE: mov ecx, dword ptr [ecx] */ 564 /* test ecx, ecx */ /* 0x46001CB0: test ecx, ecx */ 565 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 566 _cf = 0; 567 _flag_k = FK_TEST; 568 if (TEST_Z(_flag_a, _flag_b)) goto L_46001CBD; /* 0x46001CB2: je 0x46001cbd */ 569 L_46001CB4: 570 RECOMP_ICALL(0x46001CBEu); /* 0x46001CB4: call 0x46001cbe */ /* not lifted */ 571 RECOMP_FLAGS_IN(); 572 /* test eax, eax */ /* 0x46001CB9: test eax, eax */ 573 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 574 _cf = 0; 575 _flag_k = FK_TEST; 576 RECOMP_BACKEDGE(); 577 if (TEST_NZ(_flag_a, _flag_b)) goto L_46001C9F; /* 0x46001CBB: jne 0x46001c9f */ 578 L_46001CBD: 579 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46001CBD: ret */ 580 L_460290EB: 581 ecx = ebp + (-0x1C); /* 0x460290EB: lea ecx, [ebp - 0x1c] */ 582 RECOMP_BACKEDGE(); 583 goto L_46001CAE; /* 0x460290EE: jmp 0x46001cae */ 584 { RECOMP_REGS_OUT(); return; } /* end of function */ 585 RECOMP_REGS_OUT(); 586 } 587 588 void sub_460290F3(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(0x460290F3u); 597 598 goto L_460290F3; 599 L_46028258: 600 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 601 L_460290F3: 602 eax = 0x46030698u; /* 0x460290F3: mov eax, 0x46030698 */ 603 L_460290F8: 604 RECOMP_BACKEDGE(); 605 goto L_46028258; /* 0x460290F8: jmp 0x46028258 */ 606 { RECOMP_REGS_OUT(); return; } /* end of function */ 607 _ljump: 608 switch (_itail_tgt) { 609 case 0x46028258u: goto L_46028258; 610 case 0x460290F3u: goto L_460290F3; 611 case 0x460290F8u: goto L_460290F8; 612 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 613 } 614 RECOMP_REGS_OUT(); 615 } 616 617 void sub_460290FD(void) { 618 int _fpu_cmp = 0; 619 uint32_t _cf = 0; 620 int _df = 1; 621 uint32_t _flag_k = FK_NONE; 622 uint32_t _flag_a = 0, _flag_b = 0; 623 uint32_t _itail_tgt = 0; 624 RECOMP_REGS_LOCALS 625 RECOMP_ENTER(0x460290FDu); 626 627 goto L_460290FD; 628 L_46001C9F: 629 edx = MEM32(eax); /* 0x46001C9F: mov edx, dword ptr [eax] */ 630 PUSH32(esp, 1); /* 0x46001CA1: push 1 */ 631 ecx = eax; /* 0x46001CA3: mov ecx, eax */ 632 RECOMP_ICALL(MEM32(edx)); /* 0x46001CA5: call dword ptr [edx] */ 633 RECOMP_FLAGS_IN(); 634 goto L_46001CBD; /* 0x46001CA7: jmp 0x46001cbd */ 635 L_46001CAE: 636 ecx = MEM32(ecx); /* 0x46001CAE: mov ecx, dword ptr [ecx] */ 637 /* test ecx, ecx */ /* 0x46001CB0: test ecx, ecx */ 638 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 639 _cf = 0; 640 _flag_k = FK_TEST; 641 if (TEST_Z(_flag_a, _flag_b)) goto L_46001CBD; /* 0x46001CB2: je 0x46001cbd */ 642 L_46001CB4: 643 RECOMP_ICALL(0x46001CBEu); /* 0x46001CB4: call 0x46001cbe */ /* not lifted */ 644 RECOMP_FLAGS_IN(); 645 /* test eax, eax */ /* 0x46001CB9: test eax, eax */ 646 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 647 _cf = 0; 648 _flag_k = FK_TEST; 649 RECOMP_BACKEDGE(); 650 if (TEST_NZ(_flag_a, _flag_b)) goto L_46001C9F; /* 0x46001CBB: jne 0x46001c9f */ 651 L_46001CBD: 652 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46001CBD: ret */ 653 L_460290FD: 654 ecx = ebp + (-0x1C); /* 0x460290FD: lea ecx, [ebp - 0x1c] */ 655 RECOMP_BACKEDGE(); 656 goto L_46001CAE; /* 0x46029100: jmp 0x46001cae */ 657 { RECOMP_REGS_OUT(); return; } /* end of function */ 658 RECOMP_REGS_OUT(); 659 } 660 661 void sub_46029105(void) { 662 int _fpu_cmp = 0; 663 uint32_t _cf = 0; 664 int _df = 1; 665 uint32_t _flag_k = FK_NONE; 666 uint32_t _flag_a = 0, _flag_b = 0; 667 uint32_t _itail_tgt = 0; 668 RECOMP_REGS_LOCALS 669 RECOMP_ENTER(0x46029105u); 670 671 goto L_46029105; 672 L_46028258: 673 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 674 L_46029105: 675 eax = 0x460306F8u; /* 0x46029105: mov eax, 0x460306f8 */ 676 L_4602910A: 677 RECOMP_BACKEDGE(); 678 goto L_46028258; /* 0x4602910A: jmp 0x46028258 */ 679 { RECOMP_REGS_OUT(); return; } /* end of function */ 680 _ljump: 681 switch (_itail_tgt) { 682 case 0x46028258u: goto L_46028258; 683 case 0x46029105u: goto L_46029105; 684 case 0x4602910Au: goto L_4602910A; 685 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 686 } 687 RECOMP_REGS_OUT(); 688 } 689 690 void sub_4602910F(void) { 691 int _fpu_cmp = 0; 692 uint32_t _cf = 0; 693 int _df = 1; 694 uint32_t _flag_k = FK_NONE; 695 uint32_t _flag_a = 0, _flag_b = 0; 696 uint32_t _itail_tgt = 0; 697 RECOMP_REGS_LOCALS 698 RECOMP_ENTER(0x4602910Fu); 699 700 goto L_4602910F; 701 L_46028258: 702 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 703 L_4602910F: 704 eax = 0x46030758u; /* 0x4602910F: mov eax, 0x46030758 */ 705 L_46029114: 706 RECOMP_BACKEDGE(); 707 goto L_46028258; /* 0x46029114: jmp 0x46028258 */ 708 { RECOMP_REGS_OUT(); return; } /* end of function */ 709 _ljump: 710 switch (_itail_tgt) { 711 case 0x46028258u: goto L_46028258; 712 case 0x4602910Fu: goto L_4602910F; 713 case 0x46029114u: goto L_46029114; 714 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 715 } 716 RECOMP_REGS_OUT(); 717 } 718 719 void sub_46029119(void) { 720 int _fpu_cmp = 0; 721 uint32_t _cf = 0; 722 int _df = 1; 723 uint32_t _flag_k = FK_NONE; 724 uint32_t _flag_a = 0, _flag_b = 0; 725 uint32_t _itail_tgt = 0; 726 RECOMP_REGS_LOCALS 727 RECOMP_ENTER(0x46029119u); 728 729 goto L_46029119; 730 L_46028258: 731 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 732 L_46029119: 733 eax = 0x460307E0u; /* 0x46029119: mov eax, 0x460307e0 */ 734 L_4602911E: 735 RECOMP_BACKEDGE(); 736 goto L_46028258; /* 0x4602911E: jmp 0x46028258 */ 737 { RECOMP_REGS_OUT(); return; } /* end of function */ 738 _ljump: 739 switch (_itail_tgt) { 740 case 0x46028258u: goto L_46028258; 741 case 0x46029119u: goto L_46029119; 742 case 0x4602911Eu: goto L_4602911E; 743 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 744 } 745 RECOMP_REGS_OUT(); 746 } 747 748 void sub_46029123(void) { 749 int _fpu_cmp = 0; 750 uint32_t _cf = 0; 751 int _df = 1; 752 uint32_t _flag_k = FK_NONE; 753 uint32_t _flag_a = 0, _flag_b = 0; 754 uint32_t _itail_tgt = 0; 755 RECOMP_REGS_LOCALS 756 RECOMP_ENTER(0x46029123u); 757 758 goto L_46029123; 759 L_46028258: 760 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 761 L_46029123: 762 eax = 0x46030838u; /* 0x46029123: mov eax, 0x46030838 */ 763 L_46029128: 764 RECOMP_BACKEDGE(); 765 goto L_46028258; /* 0x46029128: jmp 0x46028258 */ 766 { RECOMP_REGS_OUT(); return; } /* end of function */ 767 _ljump: 768 switch (_itail_tgt) { 769 case 0x46028258u: goto L_46028258; 770 case 0x46029123u: goto L_46029123; 771 case 0x46029128u: goto L_46029128; 772 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 773 } 774 RECOMP_REGS_OUT(); 775 } 776 777 void sub_4602912D(void) { 778 int _fpu_cmp = 0; 779 uint32_t _cf = 0; 780 int _df = 1; 781 uint32_t _flag_k = FK_NONE; 782 uint32_t _flag_a = 0, _flag_b = 0; 783 uint32_t _itail_tgt = 0; 784 RECOMP_REGS_LOCALS 785 RECOMP_ENTER(0x4602912Du); 786 787 goto L_4602912D; 788 L_46028258: 789 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 790 L_4602912D: 791 eax = 0x46030890u; /* 0x4602912D: mov eax, 0x46030890 */ 792 L_46029132: 793 RECOMP_BACKEDGE(); 794 goto L_46028258; /* 0x46029132: jmp 0x46028258 */ 795 { RECOMP_REGS_OUT(); return; } /* end of function */ 796 _ljump: 797 switch (_itail_tgt) { 798 case 0x46028258u: goto L_46028258; 799 case 0x4602912Du: goto L_4602912D; 800 case 0x46029132u: goto L_46029132; 801 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 802 } 803 RECOMP_REGS_OUT(); 804 } 805 806 void sub_46029137(void) { 807 int _fpu_cmp = 0; 808 uint32_t _cf = 0; 809 int _df = 1; 810 uint32_t _flag_k = FK_NONE; 811 uint32_t _flag_a = 0, _flag_b = 0; 812 uint32_t _itail_tgt = 0; 813 RECOMP_REGS_LOCALS 814 RECOMP_ENTER(0x46029137u); 815 816 goto L_46029137; 817 L_46028258: 818 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 819 L_46029137: 820 eax = 0x46030918u; /* 0x46029137: mov eax, 0x46030918 */ 821 L_4602913C: 822 RECOMP_BACKEDGE(); 823 goto L_46028258; /* 0x4602913C: jmp 0x46028258 */ 824 { RECOMP_REGS_OUT(); return; } /* end of function */ 825 _ljump: 826 switch (_itail_tgt) { 827 case 0x46028258u: goto L_46028258; 828 case 0x46029137u: goto L_46029137; 829 case 0x4602913Cu: goto L_4602913C; 830 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 831 } 832 RECOMP_REGS_OUT(); 833 } 834 835 void sub_46029141(void) { 836 int _fpu_cmp = 0; 837 uint32_t _cf = 0; 838 int _df = 1; 839 uint32_t _flag_k = FK_NONE; 840 uint32_t _flag_a = 0, _flag_b = 0; 841 uint32_t _itail_tgt = 0; 842 RECOMP_REGS_LOCALS 843 RECOMP_ENTER(0x46029141u); 844 845 goto L_46029141; 846 L_46028258: 847 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 848 L_46029141: 849 eax = 0x46030970u; /* 0x46029141: mov eax, 0x46030970 */ 850 L_46029146: 851 RECOMP_BACKEDGE(); 852 goto L_46028258; /* 0x46029146: jmp 0x46028258 */ 853 { RECOMP_REGS_OUT(); return; } /* end of function */ 854 _ljump: 855 switch (_itail_tgt) { 856 case 0x46028258u: goto L_46028258; 857 case 0x46029141u: goto L_46029141; 858 case 0x46029146u: goto L_46029146; 859 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 860 } 861 RECOMP_REGS_OUT(); 862 } 863 864 void sub_4602914B(void) { 865 int _fpu_cmp = 0; 866 uint32_t _cf = 0; 867 int _df = 1; 868 uint32_t _flag_k = FK_NONE; 869 uint32_t _flag_a = 0, _flag_b = 0; 870 uint32_t _itail_tgt = 0; 871 RECOMP_REGS_LOCALS 872 RECOMP_ENTER(0x4602914Bu); 873 874 goto L_4602914B; 875 L_46028258: 876 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 877 L_4602914B: 878 eax = 0x460309C8u; /* 0x4602914B: mov eax, 0x460309c8 */ 879 L_46029150: 880 RECOMP_BACKEDGE(); 881 goto L_46028258; /* 0x46029150: jmp 0x46028258 */ 882 { RECOMP_REGS_OUT(); return; } /* end of function */ 883 _ljump: 884 switch (_itail_tgt) { 885 case 0x46028258u: goto L_46028258; 886 case 0x4602914Bu: goto L_4602914B; 887 case 0x46029150u: goto L_46029150; 888 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 889 } 890 RECOMP_REGS_OUT(); 891 } 892 893 void sub_46029155(void) { 894 int _fpu_cmp = 0; 895 uint32_t _cf = 0; 896 int _df = 1; 897 uint32_t _flag_k = FK_NONE; 898 uint32_t _flag_a = 0, _flag_b = 0; 899 uint32_t _itail_tgt = 0; 900 RECOMP_REGS_LOCALS 901 RECOMP_ENTER(0x46029155u); 902 903 goto L_46029155; 904 L_46028258: 905 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 906 L_46029155: 907 eax = 0x46030A20u; /* 0x46029155: mov eax, 0x46030a20 */ 908 L_4602915A: 909 RECOMP_BACKEDGE(); 910 goto L_46028258; /* 0x4602915A: jmp 0x46028258 */ 911 { RECOMP_REGS_OUT(); return; } /* end of function */ 912 _ljump: 913 switch (_itail_tgt) { 914 case 0x46028258u: goto L_46028258; 915 case 0x46029155u: goto L_46029155; 916 case 0x4602915Au: goto L_4602915A; 917 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 918 } 919 RECOMP_REGS_OUT(); 920 } 921 922 void sub_4602915F(void) { 923 int _fpu_cmp = 0; 924 uint32_t _cf = 0; 925 int _df = 1; 926 uint32_t _flag_k = FK_NONE; 927 uint32_t _flag_a = 0, _flag_b = 0; 928 uint32_t _itail_tgt = 0; 929 RECOMP_REGS_LOCALS 930 RECOMP_ENTER(0x4602915Fu); 931 932 goto L_4602915F; 933 L_46028258: 934 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 935 L_4602915F: 936 eax = 0x46030A78u; /* 0x4602915F: mov eax, 0x46030a78 */ 937 L_46029164: 938 RECOMP_BACKEDGE(); 939 goto L_46028258; /* 0x46029164: jmp 0x46028258 */ 940 { RECOMP_REGS_OUT(); return; } /* end of function */ 941 _ljump: 942 switch (_itail_tgt) { 943 case 0x46028258u: goto L_46028258; 944 case 0x4602915Fu: goto L_4602915F; 945 case 0x46029164u: goto L_46029164; 946 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 947 } 948 RECOMP_REGS_OUT(); 949 } 950 951 void sub_46029169(void) { 952 int _fpu_cmp = 0; 953 uint32_t _cf = 0; 954 int _df = 1; 955 uint32_t _flag_k = FK_NONE; 956 uint32_t _flag_a = 0, _flag_b = 0; 957 uint32_t _itail_tgt = 0; 958 RECOMP_REGS_LOCALS 959 RECOMP_ENTER(0x46029169u); 960 961 goto L_46029169; 962 L_46028258: 963 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 964 L_46029169: 965 eax = 0x46030AD0u; /* 0x46029169: mov eax, 0x46030ad0 */ 966 L_4602916E: 967 RECOMP_BACKEDGE(); 968 goto L_46028258; /* 0x4602916E: jmp 0x46028258 */ 969 { RECOMP_REGS_OUT(); return; } /* end of function */ 970 _ljump: 971 switch (_itail_tgt) { 972 case 0x46028258u: goto L_46028258; 973 case 0x46029169u: goto L_46029169; 974 case 0x4602916Eu: goto L_4602916E; 975 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 976 } 977 RECOMP_REGS_OUT(); 978 } 979 980 void sub_46029173(void) { 981 int _fpu_cmp = 0; 982 uint32_t _cf = 0; 983 int _df = 1; 984 uint32_t _flag_k = FK_NONE; 985 uint32_t _flag_a = 0, _flag_b = 0; 986 uint32_t _itail_tgt = 0; 987 RECOMP_REGS_LOCALS 988 RECOMP_ENTER(0x46029173u); 989 990 goto L_46029173; 991 L_46002DC1: 992 MEM32(ecx) = 0x4602B268u; /* 0x46002DC1: mov dword ptr [ecx], 0x4602b268 */ 993 eax = 0x4602A7C7u; /* 0x46002DC7: mov eax, 0x4602a7c7 */ 994 RECOMP_ICALL(0x46001535u); /* 0x46002DCC: call 0x46001535 */ /* not lifted */ 995 RECOMP_FLAGS_IN(); 996 PUSH32(esp, ecx); /* 0x46002DD1: push ecx */ 997 PUSH32(esp, esi); /* 0x46002DD2: push esi */ 998 esi = ecx; /* 0x46002DD3: mov esi, ecx */ 999 MEM32(ebp + (-0x10)) = esi; /* 0x46002DD5: mov dword ptr [ebp - 0x10], esi */ 1000 MEM32(esi) = 0x4602B708u; /* 0x46002DD8: mov dword ptr [esi], 0x4602b708 */ 1001 eax = MEM32(esi + 0x24); /* 0x46002DDE: mov eax, dword ptr [esi + 0x24] */ 1002 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 1003 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46002DE1: and dword ptr [ebp - 4], 0 */ 1004 _cf = 0; 1005 _flag_k = FK_TEST; 1006 /* test eax, eax */ /* 0x46002DE5: test eax, eax */ 1007 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1008 _cf = 0; 1009 _flag_k = FK_TEST; 1010 if (TEST_Z(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DE7: jbe 0x46002e10 */ 1011 L_46002DE9: 1012 _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(1) << 24; 1013 MEM8(eax + 0x4605B2C0) = (uint8_t)(MEM8(eax + 0x4605B2C0) - 1); /* 0x46002DE9: dec byte ptr [eax + 0x4605b2c0] */ 1014 _flag_k = FK_NARROW(FK_DEC, 24); 1015 eax = MEM32(esi + 0x24); /* 0x46002DEF: mov eax, dword ptr [esi + 0x24] */ 1016 /* cmp MEM8(eax + 0x4605B2C0), 0 */ /* 0x46002DF2: cmp byte ptr [eax + 0x4605b2c0], 0 */ 1017 _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(0) << 24; 1018 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1019 _flag_k = FK_NARROW(FK_CMP, 24); 1020 if (CMP_LE(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DF9: jle 0x46002e10 */ 1021 L_46002DFB: 1022 ecx = esi + 0x20; /* 0x46002DFB: lea ecx, [esi + 0x20] */ 1023 RECOMP_ICALL(0x46001CAEu); /* 0x46002DFE: call 0x46001cae */ /* not lifted */ 1024 RECOMP_FLAGS_IN(); 1025 ecx = MEM32(ebp + (-0xC)); /* 0x46002E03: mov ecx, dword ptr [ebp - 0xc] */ 1026 esi = POP32_VAL(esp); /* 0x46002E06: pop esi */ 1027 MEM32(FS_BASE + (0)) = ecx; /* 0x46002E07: mov dword ptr fs:[0], ecx */ 1028 esp = ebp; ebp = POP32_VAL(esp); /* 0x46002E0E: leave */ 1029 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002E0F: ret */ 1030 L_46002E10: 1031 ecx = esi; /* 0x46002E10: mov ecx, esi */ 1032 RECOMP_ICALL(0x46002F83u); /* 0x46002E12: call 0x46002f83 */ /* not lifted */ 1033 RECOMP_FLAGS_IN(); 1034 RECOMP_BACKEDGE(); 1035 goto L_46002DFB; /* 0x46002E17: jmp 0x46002dfb */ 1036 L_46029173: 1037 eax = MEM32(ebp + (-0x10)); /* 0x46029173: mov eax, dword ptr [ebp - 0x10] */ 1038 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1039 eax = eax & 1; /* 0x46029176: and eax, 1 */ 1040 _cf = 0; 1041 _flag_k = FK_TEST; 1042 /* test eax, eax */ /* 0x46029179: test eax, eax */ 1043 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1044 _cf = 0; 1045 _flag_k = FK_TEST; 1046 if (TEST_Z(_flag_a, _flag_b)) goto L_46029188; /* 0x4602917B: je 0x46029188 */ 1047 L_4602917D: 1048 ecx = MEM32(ebp + (-0x14)); /* 0x4602917D: mov ecx, dword ptr [ebp - 0x14] */ 1049 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 1050 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1051 ecx = ecx + 0xCu; /* 0x46029180: add ecx, 0xc */ 1052 _flag_k = FK_ADD; 1053 RECOMP_BACKEDGE(); 1054 goto L_46002DC1; /* 0x46029183: jmp 0x46002dc1 */ 1055 L_46029188: 1056 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46029188: ret */ 1057 RECOMP_REGS_OUT(); 1058 } 1059 1060 void sub_46029189(void) { 1061 int _fpu_cmp = 0; 1062 uint32_t _cf = 0; 1063 int _df = 1; 1064 uint32_t _flag_k = FK_NONE; 1065 uint32_t _flag_a = 0, _flag_b = 0; 1066 uint32_t _itail_tgt = 0; 1067 RECOMP_REGS_LOCALS 1068 RECOMP_ENTER(0x46029189u); 1069 1070 goto L_46029189; 1071 L_46028419: 1072 eax = MEM32(ecx + (-0x8)); /* 0x46028419: mov eax, dword ptr [ecx - 8] */ 1073 eax = MEM32(eax + 0x4); /* 0x4602841C: mov eax, dword ptr [eax + 4] */ 1074 MEM32(eax + ecx + (-0x8)) = 0x4602B258u; /* 0x4602841F: mov dword ptr [eax + ecx - 8], 0x4602b258 */ 1075 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46028427: ret */ 1076 L_46029189: 1077 ecx = MEM32(ebp + (-0x14)); /* 0x46029189: mov ecx, dword ptr [ebp - 0x14] */ 1078 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 1079 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1080 ecx = ecx + 8; /* 0x4602918C: add ecx, 8 */ 1081 _flag_k = FK_ADD; 1082 RECOMP_BACKEDGE(); 1083 goto L_46028419; /* 0x4602918F: jmp 0x46028419 */ 1084 { RECOMP_REGS_OUT(); return; } /* end of function */ 1085 RECOMP_REGS_OUT(); 1086 } 1087 1088 void sub_46029194(void) { 1089 int _fpu_cmp = 0; 1090 uint32_t _cf = 0; 1091 int _df = 1; 1092 uint32_t _flag_k = FK_NONE; 1093 uint32_t _flag_a = 0, _flag_b = 0; 1094 uint32_t _itail_tgt = 0; 1095 RECOMP_REGS_LOCALS 1096 RECOMP_ENTER(0x46029194u); 1097 1098 goto L_46029194; 1099 L_46028258: 1100 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 1101 L_46029194: 1102 eax = 0x46030B28u; /* 0x46029194: mov eax, 0x46030b28 */ 1103 L_46029199: 1104 RECOMP_BACKEDGE(); 1105 goto L_46028258; /* 0x46029199: jmp 0x46028258 */ 1106 { RECOMP_REGS_OUT(); return; } /* end of function */ 1107 _ljump: 1108 switch (_itail_tgt) { 1109 case 0x46028258u: goto L_46028258; 1110 case 0x46029194u: goto L_46029194; 1111 case 0x46029199u: goto L_46029199; 1112 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1113 } 1114 RECOMP_REGS_OUT(); 1115 } 1116 1117 void sub_4602919E(void) { 1118 int _fpu_cmp = 0; 1119 uint32_t _cf = 0; 1120 int _df = 1; 1121 uint32_t _flag_k = FK_NONE; 1122 uint32_t _flag_a = 0, _flag_b = 0; 1123 uint32_t _itail_tgt = 0; 1124 RECOMP_REGS_LOCALS 1125 RECOMP_ENTER(0x4602919Eu); 1126 1127 goto L_4602919E; 1128 L_46002DA4: 1129 MEM32(ecx) = 0x4602B5E8u; /* 0x46002DA4: mov dword ptr [ecx], 0x4602b5e8 */ 1130 goto L_46002DC7; /* 0x46002DAA: jmp 0x46002dc7 */ 1131 L_46002DC7: 1132 eax = 0x4602A7C7u; /* 0x46002DC7: mov eax, 0x4602a7c7 */ 1133 RECOMP_ICALL(0x46001535u); /* 0x46002DCC: call 0x46001535 */ /* not lifted */ 1134 RECOMP_FLAGS_IN(); 1135 PUSH32(esp, ecx); /* 0x46002DD1: push ecx */ 1136 PUSH32(esp, esi); /* 0x46002DD2: push esi */ 1137 esi = ecx; /* 0x46002DD3: mov esi, ecx */ 1138 MEM32(ebp + (-0x10)) = esi; /* 0x46002DD5: mov dword ptr [ebp - 0x10], esi */ 1139 MEM32(esi) = 0x4602B708u; /* 0x46002DD8: mov dword ptr [esi], 0x4602b708 */ 1140 eax = MEM32(esi + 0x24); /* 0x46002DDE: mov eax, dword ptr [esi + 0x24] */ 1141 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 1142 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46002DE1: and dword ptr [ebp - 4], 0 */ 1143 _cf = 0; 1144 _flag_k = FK_TEST; 1145 /* test eax, eax */ /* 0x46002DE5: test eax, eax */ 1146 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1147 _cf = 0; 1148 _flag_k = FK_TEST; 1149 if (TEST_Z(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DE7: jbe 0x46002e10 */ 1150 L_46002DE9: 1151 _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(1) << 24; 1152 MEM8(eax + 0x4605B2C0) = (uint8_t)(MEM8(eax + 0x4605B2C0) - 1); /* 0x46002DE9: dec byte ptr [eax + 0x4605b2c0] */ 1153 _flag_k = FK_NARROW(FK_DEC, 24); 1154 eax = MEM32(esi + 0x24); /* 0x46002DEF: mov eax, dword ptr [esi + 0x24] */ 1155 /* cmp MEM8(eax + 0x4605B2C0), 0 */ /* 0x46002DF2: cmp byte ptr [eax + 0x4605b2c0], 0 */ 1156 _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(0) << 24; 1157 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1158 _flag_k = FK_NARROW(FK_CMP, 24); 1159 if (CMP_LE(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DF9: jle 0x46002e10 */ 1160 L_46002DFB: 1161 ecx = esi + 0x20; /* 0x46002DFB: lea ecx, [esi + 0x20] */ 1162 RECOMP_ICALL(0x46001CAEu); /* 0x46002DFE: call 0x46001cae */ /* not lifted */ 1163 RECOMP_FLAGS_IN(); 1164 ecx = MEM32(ebp + (-0xC)); /* 0x46002E03: mov ecx, dword ptr [ebp - 0xc] */ 1165 esi = POP32_VAL(esp); /* 0x46002E06: pop esi */ 1166 MEM32(FS_BASE + (0)) = ecx; /* 0x46002E07: mov dword ptr fs:[0], ecx */ 1167 esp = ebp; ebp = POP32_VAL(esp); /* 0x46002E0E: leave */ 1168 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002E0F: ret */ 1169 L_46002E10: 1170 ecx = esi; /* 0x46002E10: mov ecx, esi */ 1171 RECOMP_ICALL(0x46002F83u); /* 0x46002E12: call 0x46002f83 */ /* not lifted */ 1172 RECOMP_FLAGS_IN(); 1173 RECOMP_BACKEDGE(); 1174 goto L_46002DFB; /* 0x46002E17: jmp 0x46002dfb */ 1175 L_4602919E: 1176 eax = MEM32(ebp + (-0x10)); /* 0x4602919E: mov eax, dword ptr [ebp - 0x10] */ 1177 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1178 eax = eax & 1; /* 0x460291A1: and eax, 1 */ 1179 _cf = 0; 1180 _flag_k = FK_TEST; 1181 /* test eax, eax */ /* 0x460291A4: test eax, eax */ 1182 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1183 _cf = 0; 1184 _flag_k = FK_TEST; 1185 if (TEST_Z(_flag_a, _flag_b)) goto L_460291B3; /* 0x460291A6: je 0x460291b3 */ 1186 L_460291A8: 1187 ecx = MEM32(ebp + (-0x14)); /* 0x460291A8: mov ecx, dword ptr [ebp - 0x14] */ 1188 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 1189 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1190 ecx = ecx + 0xCu; /* 0x460291AB: add ecx, 0xc */ 1191 _flag_k = FK_ADD; 1192 RECOMP_BACKEDGE(); 1193 goto L_46002DA4; /* 0x460291AE: jmp 0x46002da4 */ 1194 L_460291B3: 1195 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460291B3: ret */ 1196 RECOMP_REGS_OUT(); 1197 } 1198 1199 void sub_460291B4(void) { 1200 int _fpu_cmp = 0; 1201 uint32_t _cf = 0; 1202 int _df = 1; 1203 uint32_t _flag_k = FK_NONE; 1204 uint32_t _flag_a = 0, _flag_b = 0; 1205 uint32_t _itail_tgt = 0; 1206 RECOMP_REGS_LOCALS 1207 RECOMP_ENTER(0x460291B4u); 1208 1209 goto L_460291B4; 1210 L_4602844E: 1211 eax = MEM32(ecx + (-0x8)); /* 0x4602844E: mov eax, dword ptr [ecx - 8] */ 1212 eax = MEM32(eax + 0x4); /* 0x46028451: mov eax, dword ptr [eax + 4] */ 1213 MEM32(eax + ecx + (-0x8)) = 0x4602B5D8u; /* 0x46028454: mov dword ptr [eax + ecx - 8], 0x4602b5d8 */ 1214 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4602845C: ret */ 1215 L_460291B4: 1216 ecx = MEM32(ebp + (-0x14)); /* 0x460291B4: mov ecx, dword ptr [ebp - 0x14] */ 1217 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 1218 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1219 ecx = ecx + 8; /* 0x460291B7: add ecx, 8 */ 1220 _flag_k = FK_ADD; 1221 RECOMP_BACKEDGE(); 1222 goto L_4602844E; /* 0x460291BA: jmp 0x4602844e */ 1223 { RECOMP_REGS_OUT(); return; } /* end of function */ 1224 RECOMP_REGS_OUT(); 1225 } 1226 1227 void sub_460291BF(void) { 1228 int _fpu_cmp = 0; 1229 uint32_t _cf = 0; 1230 int _df = 1; 1231 uint32_t _flag_k = FK_NONE; 1232 uint32_t _flag_a = 0, _flag_b = 0; 1233 uint32_t _itail_tgt = 0; 1234 RECOMP_REGS_LOCALS 1235 RECOMP_ENTER(0x460291BFu); 1236 1237 goto L_460291BF; 1238 L_46028258: 1239 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 1240 L_460291BF: 1241 eax = 0x46030B58u; /* 0x460291BF: mov eax, 0x46030b58 */ 1242 L_460291C4: 1243 RECOMP_BACKEDGE(); 1244 goto L_46028258; /* 0x460291C4: jmp 0x46028258 */ 1245 { RECOMP_REGS_OUT(); return; } /* end of function */ 1246 _ljump: 1247 switch (_itail_tgt) { 1248 case 0x46028258u: goto L_46028258; 1249 case 0x460291BFu: goto L_460291BF; 1250 case 0x460291C4u: goto L_460291C4; 1251 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1252 } 1253 RECOMP_REGS_OUT(); 1254 } 1255 1256 void sub_460291C9(void) { 1257 int _fpu_cmp = 0; 1258 uint32_t _cf = 0; 1259 int _df = 1; 1260 uint32_t _flag_k = FK_NONE; 1261 uint32_t _flag_a = 0, _flag_b = 0; 1262 uint32_t _itail_tgt = 0; 1263 RECOMP_REGS_LOCALS 1264 RECOMP_ENTER(0x460291C9u); 1265 1266 goto L_460291C9; 1267 L_46001C9F: 1268 edx = MEM32(eax); /* 0x46001C9F: mov edx, dword ptr [eax] */ 1269 PUSH32(esp, 1); /* 0x46001CA1: push 1 */ 1270 ecx = eax; /* 0x46001CA3: mov ecx, eax */ 1271 RECOMP_ICALL(MEM32(edx)); /* 0x46001CA5: call dword ptr [edx] */ 1272 RECOMP_FLAGS_IN(); 1273 goto L_46001CBD; /* 0x46001CA7: jmp 0x46001cbd */ 1274 L_46001CAE: 1275 ecx = MEM32(ecx); /* 0x46001CAE: mov ecx, dword ptr [ecx] */ 1276 /* test ecx, ecx */ /* 0x46001CB0: test ecx, ecx */ 1277 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1278 _cf = 0; 1279 _flag_k = FK_TEST; 1280 if (TEST_Z(_flag_a, _flag_b)) goto L_46001CBD; /* 0x46001CB2: je 0x46001cbd */ 1281 L_46001CB4: 1282 RECOMP_ICALL(0x46001CBEu); /* 0x46001CB4: call 0x46001cbe */ /* not lifted */ 1283 RECOMP_FLAGS_IN(); 1284 /* test eax, eax */ /* 0x46001CB9: test eax, eax */ 1285 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1286 _cf = 0; 1287 _flag_k = FK_TEST; 1288 RECOMP_BACKEDGE(); 1289 if (TEST_NZ(_flag_a, _flag_b)) goto L_46001C9F; /* 0x46001CBB: jne 0x46001c9f */ 1290 L_46001CBD: 1291 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46001CBD: ret */ 1292 L_4602860E: 1293 MEM32(ecx) = 0x4602B3B8u; /* 0x4602860E: mov dword ptr [ecx], 0x4602b3b8 */ 1294 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x34u); 1295 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1296 ecx = ecx + 0x34u; /* 0x46028614: add ecx, 0x34 */ 1297 _flag_k = FK_ADD; 1298 RECOMP_BACKEDGE(); 1299 goto L_46001CAE; /* 0x46028617: jmp 0x46001cae */ 1300 L_460291C9: 1301 ecx = MEM32(ebp + (-0x10)); /* 0x460291C9: mov ecx, dword ptr [ebp - 0x10] */ 1302 RECOMP_BACKEDGE(); 1303 goto L_4602860E; /* 0x460291CC: jmp 0x4602860e */ 1304 { RECOMP_REGS_OUT(); return; } /* end of function */ 1305 RECOMP_REGS_OUT(); 1306 } 1307 1308 void sub_460291D1(void) { 1309 int _fpu_cmp = 0; 1310 uint32_t _cf = 0; 1311 int _df = 1; 1312 uint32_t _flag_k = FK_NONE; 1313 uint32_t _flag_a = 0, _flag_b = 0; 1314 uint32_t _itail_tgt = 0; 1315 RECOMP_REGS_LOCALS 1316 RECOMP_ENTER(0x460291D1u); 1317 1318 goto L_460291D1; 1319 L_46028258: 1320 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 1321 L_460291D1: 1322 eax = 0x46030B88u; /* 0x460291D1: mov eax, 0x46030b88 */ 1323 L_460291D6: 1324 RECOMP_BACKEDGE(); 1325 goto L_46028258; /* 0x460291D6: jmp 0x46028258 */ 1326 { RECOMP_REGS_OUT(); return; } /* end of function */ 1327 _ljump: 1328 switch (_itail_tgt) { 1329 case 0x46028258u: goto L_46028258; 1330 case 0x460291D1u: goto L_460291D1; 1331 case 0x460291D6u: goto L_460291D6; 1332 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1333 } 1334 RECOMP_REGS_OUT(); 1335 } 1336 1337 void sub_460291DB(void) { 1338 int _fpu_cmp = 0; 1339 uint32_t _cf = 0; 1340 int _df = 1; 1341 uint32_t _flag_k = FK_NONE; 1342 uint32_t _flag_a = 0, _flag_b = 0; 1343 uint32_t _itail_tgt = 0; 1344 RECOMP_REGS_LOCALS 1345 RECOMP_ENTER(0x460291DBu); 1346 1347 goto L_460291DB; 1348 L_46001C9F: 1349 edx = MEM32(eax); /* 0x46001C9F: mov edx, dword ptr [eax] */ 1350 PUSH32(esp, 1); /* 0x46001CA1: push 1 */ 1351 ecx = eax; /* 0x46001CA3: mov ecx, eax */ 1352 RECOMP_ICALL(MEM32(edx)); /* 0x46001CA5: call dword ptr [edx] */ 1353 RECOMP_FLAGS_IN(); 1354 goto L_46001CBD; /* 0x46001CA7: jmp 0x46001cbd */ 1355 L_46001CAE: 1356 ecx = MEM32(ecx); /* 0x46001CAE: mov ecx, dword ptr [ecx] */ 1357 /* test ecx, ecx */ /* 0x46001CB0: test ecx, ecx */ 1358 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1359 _cf = 0; 1360 _flag_k = FK_TEST; 1361 if (TEST_Z(_flag_a, _flag_b)) goto L_46001CBD; /* 0x46001CB2: je 0x46001cbd */ 1362 L_46001CB4: 1363 RECOMP_ICALL(0x46001CBEu); /* 0x46001CB4: call 0x46001cbe */ /* not lifted */ 1364 RECOMP_FLAGS_IN(); 1365 /* test eax, eax */ /* 0x46001CB9: test eax, eax */ 1366 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1367 _cf = 0; 1368 _flag_k = FK_TEST; 1369 RECOMP_BACKEDGE(); 1370 if (TEST_NZ(_flag_a, _flag_b)) goto L_46001C9F; /* 0x46001CBB: jne 0x46001c9f */ 1371 L_46001CBD: 1372 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46001CBD: ret */ 1373 L_4602860E: 1374 MEM32(ecx) = 0x4602B3B8u; /* 0x4602860E: mov dword ptr [ecx], 0x4602b3b8 */ 1375 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x34u); 1376 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1377 ecx = ecx + 0x34u; /* 0x46028614: add ecx, 0x34 */ 1378 _flag_k = FK_ADD; 1379 RECOMP_BACKEDGE(); 1380 goto L_46001CAE; /* 0x46028617: jmp 0x46001cae */ 1381 L_460291DB: 1382 ecx = MEM32(ebp + (-0x10)); /* 0x460291DB: mov ecx, dword ptr [ebp - 0x10] */ 1383 RECOMP_BACKEDGE(); 1384 goto L_4602860E; /* 0x460291DE: jmp 0x4602860e */ 1385 { RECOMP_REGS_OUT(); return; } /* end of function */ 1386 RECOMP_REGS_OUT(); 1387 } 1388 1389 void sub_460291E3(void) { 1390 int _fpu_cmp = 0; 1391 uint32_t _cf = 0; 1392 int _df = 1; 1393 uint32_t _flag_k = FK_NONE; 1394 uint32_t _flag_a = 0, _flag_b = 0; 1395 uint32_t _itail_tgt = 0; 1396 RECOMP_REGS_LOCALS 1397 RECOMP_ENTER(0x460291E3u); 1398 1399 goto L_460291E3; 1400 L_46028258: 1401 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 1402 L_460291E3: 1403 eax = 0x46030BB0u; /* 0x460291E3: mov eax, 0x46030bb0 */ 1404 L_460291E8: 1405 RECOMP_BACKEDGE(); 1406 goto L_46028258; /* 0x460291E8: jmp 0x46028258 */ 1407 { RECOMP_REGS_OUT(); return; } /* end of function */ 1408 _ljump: 1409 switch (_itail_tgt) { 1410 case 0x46028258u: goto L_46028258; 1411 case 0x460291E3u: goto L_460291E3; 1412 case 0x460291E8u: goto L_460291E8; 1413 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1414 } 1415 RECOMP_REGS_OUT(); 1416 } 1417 1418 void sub_460291ED(void) { 1419 int _fpu_cmp = 0; 1420 uint32_t _cf = 0; 1421 int _df = 1; 1422 uint32_t _flag_k = FK_NONE; 1423 uint32_t _flag_a = 0, _flag_b = 0; 1424 uint32_t _itail_tgt = 0; 1425 RECOMP_REGS_LOCALS 1426 RECOMP_ENTER(0x460291EDu); 1427 1428 goto L_460291ED; 1429 L_46001C9F: 1430 edx = MEM32(eax); /* 0x46001C9F: mov edx, dword ptr [eax] */ 1431 PUSH32(esp, 1); /* 0x46001CA1: push 1 */ 1432 ecx = eax; /* 0x46001CA3: mov ecx, eax */ 1433 RECOMP_ICALL(MEM32(edx)); /* 0x46001CA5: call dword ptr [edx] */ 1434 RECOMP_FLAGS_IN(); 1435 goto L_46001CBD; /* 0x46001CA7: jmp 0x46001cbd */ 1436 L_46001CAE: 1437 ecx = MEM32(ecx); /* 0x46001CAE: mov ecx, dword ptr [ecx] */ 1438 /* test ecx, ecx */ /* 0x46001CB0: test ecx, ecx */ 1439 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1440 _cf = 0; 1441 _flag_k = FK_TEST; 1442 if (TEST_Z(_flag_a, _flag_b)) goto L_46001CBD; /* 0x46001CB2: je 0x46001cbd */ 1443 L_46001CB4: 1444 RECOMP_ICALL(0x46001CBEu); /* 0x46001CB4: call 0x46001cbe */ /* not lifted */ 1445 RECOMP_FLAGS_IN(); 1446 /* test eax, eax */ /* 0x46001CB9: test eax, eax */ 1447 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1448 _cf = 0; 1449 _flag_k = FK_TEST; 1450 RECOMP_BACKEDGE(); 1451 if (TEST_NZ(_flag_a, _flag_b)) goto L_46001C9F; /* 0x46001CBB: jne 0x46001c9f */ 1452 L_46001CBD: 1453 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46001CBD: ret */ 1454 L_4602860E: 1455 MEM32(ecx) = 0x4602B3B8u; /* 0x4602860E: mov dword ptr [ecx], 0x4602b3b8 */ 1456 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x34u); 1457 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1458 ecx = ecx + 0x34u; /* 0x46028614: add ecx, 0x34 */ 1459 _flag_k = FK_ADD; 1460 RECOMP_BACKEDGE(); 1461 goto L_46001CAE; /* 0x46028617: jmp 0x46001cae */ 1462 L_460291ED: 1463 ecx = MEM32(ebp + (-0x10)); /* 0x460291ED: mov ecx, dword ptr [ebp - 0x10] */ 1464 RECOMP_BACKEDGE(); 1465 goto L_4602860E; /* 0x460291F0: jmp 0x4602860e */ 1466 { RECOMP_REGS_OUT(); return; } /* end of function */ 1467 RECOMP_REGS_OUT(); 1468 } 1469 1470 void sub_460291F5(void) { 1471 int _fpu_cmp = 0; 1472 uint32_t _cf = 0; 1473 int _df = 1; 1474 uint32_t _flag_k = FK_NONE; 1475 uint32_t _flag_a = 0, _flag_b = 0; 1476 uint32_t _itail_tgt = 0; 1477 RECOMP_REGS_LOCALS 1478 RECOMP_ENTER(0x460291F5u); 1479 1480 goto L_460291F5; 1481 L_46028258: 1482 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 1483 L_460291F5: 1484 eax = 0x46030BD8u; /* 0x460291F5: mov eax, 0x46030bd8 */ 1485 L_460291FA: 1486 RECOMP_BACKEDGE(); 1487 goto L_46028258; /* 0x460291FA: jmp 0x46028258 */ 1488 { RECOMP_REGS_OUT(); return; } /* end of function */ 1489 _ljump: 1490 switch (_itail_tgt) { 1491 case 0x46028258u: goto L_46028258; 1492 case 0x460291F5u: goto L_460291F5; 1493 case 0x460291FAu: goto L_460291FA; 1494 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1495 } 1496 RECOMP_REGS_OUT(); 1497 } 1498 1499 void sub_460291FF(void) { 1500 int _fpu_cmp = 0; 1501 uint32_t _cf = 0; 1502 int _df = 1; 1503 uint32_t _flag_k = FK_NONE; 1504 uint32_t _flag_a = 0, _flag_b = 0; 1505 uint32_t _itail_tgt = 0; 1506 RECOMP_REGS_LOCALS 1507 RECOMP_ENTER(0x460291FFu); 1508 1509 goto L_460291FF; 1510 L_46002CF0: 1511 PUSH32(esp, 1); /* 0x46002CF0: push 1 */ 1512 RECOMP_ICALL(0x46001A60u); /* 0x46002CF2: call 0x46001a60 */ /* not lifted */ 1513 RECOMP_FLAGS_IN(); 1514 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002CF7: ret */ 1515 L_460291FF: 1516 ecx = ebp + (-0x20); /* 0x460291FF: lea ecx, [ebp - 0x20] */ 1517 RECOMP_BACKEDGE(); 1518 goto L_46002CF0; /* 0x46029202: jmp 0x46002cf0 */ 1519 { RECOMP_REGS_OUT(); return; } /* end of function */ 1520 RECOMP_REGS_OUT(); 1521 } 1522 1523 void sub_46029207(void) { 1524 int _fpu_cmp = 0; 1525 uint32_t _cf = 0; 1526 int _df = 1; 1527 uint32_t _flag_k = FK_NONE; 1528 uint32_t _flag_a = 0, _flag_b = 0; 1529 uint32_t _itail_tgt = 0; 1530 RECOMP_REGS_LOCALS 1531 RECOMP_ENTER(0x46029207u); 1532 1533 goto L_46029207; 1534 L_46002CF0: 1535 PUSH32(esp, 1); /* 0x46002CF0: push 1 */ 1536 RECOMP_ICALL(0x46001A60u); /* 0x46002CF2: call 0x46001a60 */ /* not lifted */ 1537 RECOMP_FLAGS_IN(); 1538 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002CF7: ret */ 1539 L_46029207: 1540 ecx = ebp + (-0x20); /* 0x46029207: lea ecx, [ebp - 0x20] */ 1541 RECOMP_BACKEDGE(); 1542 goto L_46002CF0; /* 0x4602920A: jmp 0x46002cf0 */ 1543 { RECOMP_REGS_OUT(); return; } /* end of function */ 1544 RECOMP_REGS_OUT(); 1545 } 1546 1547 void sub_4602920F(void) { 1548 int _fpu_cmp = 0; 1549 uint32_t _cf = 0; 1550 int _df = 1; 1551 uint32_t _flag_k = FK_NONE; 1552 uint32_t _flag_a = 0, _flag_b = 0; 1553 uint32_t _itail_tgt = 0; 1554 RECOMP_REGS_LOCALS 1555 RECOMP_ENTER(0x4602920Fu); 1556 1557 goto L_4602920F; 1558 L_46002CF0: 1559 PUSH32(esp, 1); /* 0x46002CF0: push 1 */ 1560 RECOMP_ICALL(0x46001A60u); /* 0x46002CF2: call 0x46001a60 */ /* not lifted */ 1561 RECOMP_FLAGS_IN(); 1562 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002CF7: ret */ 1563 L_4602920F: 1564 ecx = ebp + (-0x30); /* 0x4602920F: lea ecx, [ebp - 0x30] */ 1565 RECOMP_BACKEDGE(); 1566 goto L_46002CF0; /* 0x46029212: jmp 0x46002cf0 */ 1567 { RECOMP_REGS_OUT(); return; } /* end of function */ 1568 RECOMP_REGS_OUT(); 1569 } 1570 1571 void sub_46029217(void) { 1572 int _fpu_cmp = 0; 1573 uint32_t _cf = 0; 1574 int _df = 1; 1575 uint32_t _flag_k = FK_NONE; 1576 uint32_t _flag_a = 0, _flag_b = 0; 1577 uint32_t _itail_tgt = 0; 1578 RECOMP_REGS_LOCALS 1579 RECOMP_ENTER(0x46029217u); 1580 1581 goto L_46029217; 1582 L_46028258: 1583 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 1584 L_46029217: 1585 eax = 0x46030C00u; /* 0x46029217: mov eax, 0x46030c00 */ 1586 L_4602921C: 1587 RECOMP_BACKEDGE(); 1588 goto L_46028258; /* 0x4602921C: jmp 0x46028258 */ 1589 { RECOMP_REGS_OUT(); return; } /* end of function */ 1590 _ljump: 1591 switch (_itail_tgt) { 1592 case 0x46028258u: goto L_46028258; 1593 case 0x46029217u: goto L_46029217; 1594 case 0x4602921Cu: goto L_4602921C; 1595 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1596 } 1597 RECOMP_REGS_OUT(); 1598 } 1599 1600 void sub_46029221(void) { 1601 int _fpu_cmp = 0; 1602 uint32_t _cf = 0; 1603 int _df = 1; 1604 uint32_t _flag_k = FK_NONE; 1605 uint32_t _flag_a = 0, _flag_b = 0; 1606 uint32_t _itail_tgt = 0; 1607 RECOMP_REGS_LOCALS 1608 RECOMP_ENTER(0x46029221u); 1609 1610 goto L_46029221; 1611 L_46001C9F: 1612 edx = MEM32(eax); /* 0x46001C9F: mov edx, dword ptr [eax] */ 1613 PUSH32(esp, 1); /* 0x46001CA1: push 1 */ 1614 ecx = eax; /* 0x46001CA3: mov ecx, eax */ 1615 RECOMP_ICALL(MEM32(edx)); /* 0x46001CA5: call dword ptr [edx] */ 1616 RECOMP_FLAGS_IN(); 1617 goto L_46001CBD; /* 0x46001CA7: jmp 0x46001cbd */ 1618 L_46001CAE: 1619 ecx = MEM32(ecx); /* 0x46001CAE: mov ecx, dword ptr [ecx] */ 1620 /* test ecx, ecx */ /* 0x46001CB0: test ecx, ecx */ 1621 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1622 _cf = 0; 1623 _flag_k = FK_TEST; 1624 if (TEST_Z(_flag_a, _flag_b)) goto L_46001CBD; /* 0x46001CB2: je 0x46001cbd */ 1625 L_46001CB4: 1626 RECOMP_ICALL(0x46001CBEu); /* 0x46001CB4: call 0x46001cbe */ /* not lifted */ 1627 RECOMP_FLAGS_IN(); 1628 /* test eax, eax */ /* 0x46001CB9: test eax, eax */ 1629 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1630 _cf = 0; 1631 _flag_k = FK_TEST; 1632 RECOMP_BACKEDGE(); 1633 if (TEST_NZ(_flag_a, _flag_b)) goto L_46001C9F; /* 0x46001CBB: jne 0x46001c9f */ 1634 L_46001CBD: 1635 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46001CBD: ret */ 1636 L_46028629: 1637 MEM32(ecx) = 0x4602B4D0u; /* 0x46028629: mov dword ptr [ecx], 0x4602b4d0 */ 1638 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x34u); 1639 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1640 ecx = ecx + 0x34u; /* 0x4602862F: add ecx, 0x34 */ 1641 _flag_k = FK_ADD; 1642 RECOMP_BACKEDGE(); 1643 goto L_46001CAE; /* 0x46028632: jmp 0x46001cae */ 1644 L_46029221: 1645 ecx = MEM32(ebp + (-0x10)); /* 0x46029221: mov ecx, dword ptr [ebp - 0x10] */ 1646 RECOMP_BACKEDGE(); 1647 goto L_46028629; /* 0x46029224: jmp 0x46028629 */ 1648 { RECOMP_REGS_OUT(); return; } /* end of function */ 1649 RECOMP_REGS_OUT(); 1650 } 1651 1652 void sub_46029229(void) { 1653 int _fpu_cmp = 0; 1654 uint32_t _cf = 0; 1655 int _df = 1; 1656 uint32_t _flag_k = FK_NONE; 1657 uint32_t _flag_a = 0, _flag_b = 0; 1658 uint32_t _itail_tgt = 0; 1659 RECOMP_REGS_LOCALS 1660 RECOMP_ENTER(0x46029229u); 1661 1662 goto L_46029229; 1663 L_46028258: 1664 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 1665 L_46029229: 1666 eax = 0x46030C38u; /* 0x46029229: mov eax, 0x46030c38 */ 1667 L_4602922E: 1668 RECOMP_BACKEDGE(); 1669 goto L_46028258; /* 0x4602922E: jmp 0x46028258 */ 1670 { RECOMP_REGS_OUT(); return; } /* end of function */ 1671 _ljump: 1672 switch (_itail_tgt) { 1673 case 0x46028258u: goto L_46028258; 1674 case 0x46029229u: goto L_46029229; 1675 case 0x4602922Eu: goto L_4602922E; 1676 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1677 } 1678 RECOMP_REGS_OUT(); 1679 } 1680 1681 void sub_46029233(void) { 1682 int _fpu_cmp = 0; 1683 uint32_t _cf = 0; 1684 int _df = 1; 1685 uint32_t _flag_k = FK_NONE; 1686 uint32_t _flag_a = 0, _flag_b = 0; 1687 uint32_t _itail_tgt = 0; 1688 RECOMP_REGS_LOCALS 1689 RECOMP_ENTER(0x46029233u); 1690 1691 goto L_46029233; 1692 L_46001C9F: 1693 edx = MEM32(eax); /* 0x46001C9F: mov edx, dword ptr [eax] */ 1694 PUSH32(esp, 1); /* 0x46001CA1: push 1 */ 1695 ecx = eax; /* 0x46001CA3: mov ecx, eax */ 1696 RECOMP_ICALL(MEM32(edx)); /* 0x46001CA5: call dword ptr [edx] */ 1697 RECOMP_FLAGS_IN(); 1698 goto L_46001CBD; /* 0x46001CA7: jmp 0x46001cbd */ 1699 L_46001CAE: 1700 ecx = MEM32(ecx); /* 0x46001CAE: mov ecx, dword ptr [ecx] */ 1701 /* test ecx, ecx */ /* 0x46001CB0: test ecx, ecx */ 1702 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1703 _cf = 0; 1704 _flag_k = FK_TEST; 1705 if (TEST_Z(_flag_a, _flag_b)) goto L_46001CBD; /* 0x46001CB2: je 0x46001cbd */ 1706 L_46001CB4: 1707 RECOMP_ICALL(0x46001CBEu); /* 0x46001CB4: call 0x46001cbe */ /* not lifted */ 1708 RECOMP_FLAGS_IN(); 1709 /* test eax, eax */ /* 0x46001CB9: test eax, eax */ 1710 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1711 _cf = 0; 1712 _flag_k = FK_TEST; 1713 RECOMP_BACKEDGE(); 1714 if (TEST_NZ(_flag_a, _flag_b)) goto L_46001C9F; /* 0x46001CBB: jne 0x46001c9f */ 1715 L_46001CBD: 1716 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46001CBD: ret */ 1717 L_46028629: 1718 MEM32(ecx) = 0x4602B4D0u; /* 0x46028629: mov dword ptr [ecx], 0x4602b4d0 */ 1719 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x34u); 1720 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1721 ecx = ecx + 0x34u; /* 0x4602862F: add ecx, 0x34 */ 1722 _flag_k = FK_ADD; 1723 RECOMP_BACKEDGE(); 1724 goto L_46001CAE; /* 0x46028632: jmp 0x46001cae */ 1725 L_46029233: 1726 ecx = MEM32(ebp + (-0x10)); /* 0x46029233: mov ecx, dword ptr [ebp - 0x10] */ 1727 RECOMP_BACKEDGE(); 1728 goto L_46028629; /* 0x46029236: jmp 0x46028629 */ 1729 { RECOMP_REGS_OUT(); return; } /* end of function */ 1730 RECOMP_REGS_OUT(); 1731 } 1732 1733 void sub_4602923B(void) { 1734 int _fpu_cmp = 0; 1735 uint32_t _cf = 0; 1736 int _df = 1; 1737 uint32_t _flag_k = FK_NONE; 1738 uint32_t _flag_a = 0, _flag_b = 0; 1739 uint32_t _itail_tgt = 0; 1740 RECOMP_REGS_LOCALS 1741 RECOMP_ENTER(0x4602923Bu); 1742 1743 goto L_4602923B; 1744 L_46028258: 1745 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 1746 L_4602923B: 1747 eax = 0x46030C60u; /* 0x4602923B: mov eax, 0x46030c60 */ 1748 L_46029240: 1749 RECOMP_BACKEDGE(); 1750 goto L_46028258; /* 0x46029240: jmp 0x46028258 */ 1751 { RECOMP_REGS_OUT(); return; } /* end of function */ 1752 _ljump: 1753 switch (_itail_tgt) { 1754 case 0x46028258u: goto L_46028258; 1755 case 0x4602923Bu: goto L_4602923B; 1756 case 0x46029240u: goto L_46029240; 1757 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1758 } 1759 RECOMP_REGS_OUT(); 1760 } 1761 1762 void sub_46029245(void) { 1763 int _fpu_cmp = 0; 1764 uint32_t _cf = 0; 1765 int _df = 1; 1766 uint32_t _flag_k = FK_NONE; 1767 uint32_t _flag_a = 0, _flag_b = 0; 1768 uint32_t _itail_tgt = 0; 1769 RECOMP_REGS_LOCALS 1770 RECOMP_ENTER(0x46029245u); 1771 1772 goto L_46029245; 1773 L_46001C9F: 1774 edx = MEM32(eax); /* 0x46001C9F: mov edx, dword ptr [eax] */ 1775 PUSH32(esp, 1); /* 0x46001CA1: push 1 */ 1776 ecx = eax; /* 0x46001CA3: mov ecx, eax */ 1777 RECOMP_ICALL(MEM32(edx)); /* 0x46001CA5: call dword ptr [edx] */ 1778 RECOMP_FLAGS_IN(); 1779 goto L_46001CBD; /* 0x46001CA7: jmp 0x46001cbd */ 1780 L_46001CAE: 1781 ecx = MEM32(ecx); /* 0x46001CAE: mov ecx, dword ptr [ecx] */ 1782 /* test ecx, ecx */ /* 0x46001CB0: test ecx, ecx */ 1783 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1784 _cf = 0; 1785 _flag_k = FK_TEST; 1786 if (TEST_Z(_flag_a, _flag_b)) goto L_46001CBD; /* 0x46001CB2: je 0x46001cbd */ 1787 L_46001CB4: 1788 RECOMP_ICALL(0x46001CBEu); /* 0x46001CB4: call 0x46001cbe */ /* not lifted */ 1789 RECOMP_FLAGS_IN(); 1790 /* test eax, eax */ /* 0x46001CB9: test eax, eax */ 1791 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1792 _cf = 0; 1793 _flag_k = FK_TEST; 1794 RECOMP_BACKEDGE(); 1795 if (TEST_NZ(_flag_a, _flag_b)) goto L_46001C9F; /* 0x46001CBB: jne 0x46001c9f */ 1796 L_46001CBD: 1797 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46001CBD: ret */ 1798 L_46028629: 1799 MEM32(ecx) = 0x4602B4D0u; /* 0x46028629: mov dword ptr [ecx], 0x4602b4d0 */ 1800 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x34u); 1801 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1802 ecx = ecx + 0x34u; /* 0x4602862F: add ecx, 0x34 */ 1803 _flag_k = FK_ADD; 1804 RECOMP_BACKEDGE(); 1805 goto L_46001CAE; /* 0x46028632: jmp 0x46001cae */ 1806 L_46029245: 1807 ecx = MEM32(ebp + (-0x10)); /* 0x46029245: mov ecx, dword ptr [ebp - 0x10] */ 1808 RECOMP_BACKEDGE(); 1809 goto L_46028629; /* 0x46029248: jmp 0x46028629 */ 1810 { RECOMP_REGS_OUT(); return; } /* end of function */ 1811 RECOMP_REGS_OUT(); 1812 } 1813 1814 void sub_4602924D(void) { 1815 int _fpu_cmp = 0; 1816 uint32_t _cf = 0; 1817 int _df = 1; 1818 uint32_t _flag_k = FK_NONE; 1819 uint32_t _flag_a = 0, _flag_b = 0; 1820 uint32_t _itail_tgt = 0; 1821 RECOMP_REGS_LOCALS 1822 RECOMP_ENTER(0x4602924Du); 1823 1824 goto L_4602924D; 1825 L_46028258: 1826 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 1827 L_4602924D: 1828 eax = 0x46030C88u; /* 0x4602924D: mov eax, 0x46030c88 */ 1829 L_46029252: 1830 RECOMP_BACKEDGE(); 1831 goto L_46028258; /* 0x46029252: jmp 0x46028258 */ 1832 { RECOMP_REGS_OUT(); return; } /* end of function */ 1833 _ljump: 1834 switch (_itail_tgt) { 1835 case 0x46028258u: goto L_46028258; 1836 case 0x4602924Du: goto L_4602924D; 1837 case 0x46029252u: goto L_46029252; 1838 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1839 } 1840 RECOMP_REGS_OUT(); 1841 } 1842 1843 void sub_46029257(void) { 1844 int _fpu_cmp = 0; 1845 uint32_t _cf = 0; 1846 int _df = 1; 1847 uint32_t _flag_k = FK_NONE; 1848 uint32_t _flag_a = 0, _flag_b = 0; 1849 uint32_t _itail_tgt = 0; 1850 RECOMP_REGS_LOCALS 1851 RECOMP_ENTER(0x46029257u); 1852 1853 goto L_46029257; 1854 L_46002CDC: 1855 PUSH32(esp, 1); /* 0x46002CDC: push 1 */ 1856 RECOMP_ICALL(0x46002532u); /* 0x46002CDE: call 0x46002532 */ /* not lifted */ 1857 RECOMP_FLAGS_IN(); 1858 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002CE3: ret */ 1859 L_46029257: 1860 ecx = ebp + (-0x20); /* 0x46029257: lea ecx, [ebp - 0x20] */ 1861 RECOMP_BACKEDGE(); 1862 goto L_46002CDC; /* 0x4602925A: jmp 0x46002cdc */ 1863 { RECOMP_REGS_OUT(); return; } /* end of function */ 1864 RECOMP_REGS_OUT(); 1865 } 1866 1867 void sub_4602925F(void) { 1868 int _fpu_cmp = 0; 1869 uint32_t _cf = 0; 1870 int _df = 1; 1871 uint32_t _flag_k = FK_NONE; 1872 uint32_t _flag_a = 0, _flag_b = 0; 1873 uint32_t _itail_tgt = 0; 1874 RECOMP_REGS_LOCALS 1875 RECOMP_ENTER(0x4602925Fu); 1876 1877 goto L_4602925F; 1878 L_46002CDC: 1879 PUSH32(esp, 1); /* 0x46002CDC: push 1 */ 1880 RECOMP_ICALL(0x46002532u); /* 0x46002CDE: call 0x46002532 */ /* not lifted */ 1881 RECOMP_FLAGS_IN(); 1882 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002CE3: ret */ 1883 L_4602925F: 1884 ecx = ebp + (-0x20); /* 0x4602925F: lea ecx, [ebp - 0x20] */ 1885 RECOMP_BACKEDGE(); 1886 goto L_46002CDC; /* 0x46029262: jmp 0x46002cdc */ 1887 { RECOMP_REGS_OUT(); return; } /* end of function */ 1888 RECOMP_REGS_OUT(); 1889 } 1890 1891 void sub_46029267(void) { 1892 int _fpu_cmp = 0; 1893 uint32_t _cf = 0; 1894 int _df = 1; 1895 uint32_t _flag_k = FK_NONE; 1896 uint32_t _flag_a = 0, _flag_b = 0; 1897 uint32_t _itail_tgt = 0; 1898 RECOMP_REGS_LOCALS 1899 RECOMP_ENTER(0x46029267u); 1900 1901 goto L_46029267; 1902 L_46002CDC: 1903 PUSH32(esp, 1); /* 0x46002CDC: push 1 */ 1904 RECOMP_ICALL(0x46002532u); /* 0x46002CDE: call 0x46002532 */ /* not lifted */ 1905 RECOMP_FLAGS_IN(); 1906 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002CE3: ret */ 1907 L_46029267: 1908 ecx = ebp + (-0x30); /* 0x46029267: lea ecx, [ebp - 0x30] */ 1909 RECOMP_BACKEDGE(); 1910 goto L_46002CDC; /* 0x4602926A: jmp 0x46002cdc */ 1911 { RECOMP_REGS_OUT(); return; } /* end of function */ 1912 RECOMP_REGS_OUT(); 1913 } 1914 1915 void sub_4602926F(void) { 1916 int _fpu_cmp = 0; 1917 uint32_t _cf = 0; 1918 int _df = 1; 1919 uint32_t _flag_k = FK_NONE; 1920 uint32_t _flag_a = 0, _flag_b = 0; 1921 uint32_t _itail_tgt = 0; 1922 RECOMP_REGS_LOCALS 1923 RECOMP_ENTER(0x4602926Fu); 1924 1925 goto L_4602926F; 1926 L_46028258: 1927 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 1928 L_4602926F: 1929 eax = 0x46030CB0u; /* 0x4602926F: mov eax, 0x46030cb0 */ 1930 L_46029274: 1931 RECOMP_BACKEDGE(); 1932 goto L_46028258; /* 0x46029274: jmp 0x46028258 */ 1933 { RECOMP_REGS_OUT(); return; } /* end of function */ 1934 _ljump: 1935 switch (_itail_tgt) { 1936 case 0x46028258u: goto L_46028258; 1937 case 0x4602926Fu: goto L_4602926F; 1938 case 0x46029274u: goto L_46029274; 1939 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1940 } 1941 RECOMP_REGS_OUT(); 1942 } 1943 1944 void sub_46029279(void) { 1945 int _fpu_cmp = 0; 1946 uint32_t _cf = 0; 1947 int _df = 1; 1948 uint32_t _flag_k = FK_NONE; 1949 uint32_t _flag_a = 0, _flag_b = 0; 1950 uint32_t _itail_tgt = 0; 1951 RECOMP_REGS_LOCALS 1952 RECOMP_ENTER(0x46029279u); 1953 1954 goto L_46029279; 1955 L_46002DC1: 1956 MEM32(ecx) = 0x4602B268u; /* 0x46002DC1: mov dword ptr [ecx], 0x4602b268 */ 1957 eax = 0x4602A7C7u; /* 0x46002DC7: mov eax, 0x4602a7c7 */ 1958 RECOMP_ICALL(0x46001535u); /* 0x46002DCC: call 0x46001535 */ /* not lifted */ 1959 RECOMP_FLAGS_IN(); 1960 PUSH32(esp, ecx); /* 0x46002DD1: push ecx */ 1961 PUSH32(esp, esi); /* 0x46002DD2: push esi */ 1962 esi = ecx; /* 0x46002DD3: mov esi, ecx */ 1963 MEM32(ebp + (-0x10)) = esi; /* 0x46002DD5: mov dword ptr [ebp - 0x10], esi */ 1964 MEM32(esi) = 0x4602B708u; /* 0x46002DD8: mov dword ptr [esi], 0x4602b708 */ 1965 eax = MEM32(esi + 0x24); /* 0x46002DDE: mov eax, dword ptr [esi + 0x24] */ 1966 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 1967 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46002DE1: and dword ptr [ebp - 4], 0 */ 1968 _cf = 0; 1969 _flag_k = FK_TEST; 1970 /* test eax, eax */ /* 0x46002DE5: test eax, eax */ 1971 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1972 _cf = 0; 1973 _flag_k = FK_TEST; 1974 if (TEST_Z(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DE7: jbe 0x46002e10 */ 1975 L_46002DE9: 1976 _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(1) << 24; 1977 MEM8(eax + 0x4605B2C0) = (uint8_t)(MEM8(eax + 0x4605B2C0) - 1); /* 0x46002DE9: dec byte ptr [eax + 0x4605b2c0] */ 1978 _flag_k = FK_NARROW(FK_DEC, 24); 1979 eax = MEM32(esi + 0x24); /* 0x46002DEF: mov eax, dword ptr [esi + 0x24] */ 1980 /* cmp MEM8(eax + 0x4605B2C0), 0 */ /* 0x46002DF2: cmp byte ptr [eax + 0x4605b2c0], 0 */ 1981 _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(0) << 24; 1982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1983 _flag_k = FK_NARROW(FK_CMP, 24); 1984 if (CMP_LE(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DF9: jle 0x46002e10 */ 1985 L_46002DFB: 1986 ecx = esi + 0x20; /* 0x46002DFB: lea ecx, [esi + 0x20] */ 1987 RECOMP_ICALL(0x46001CAEu); /* 0x46002DFE: call 0x46001cae */ /* not lifted */ 1988 RECOMP_FLAGS_IN(); 1989 ecx = MEM32(ebp + (-0xC)); /* 0x46002E03: mov ecx, dword ptr [ebp - 0xc] */ 1990 esi = POP32_VAL(esp); /* 0x46002E06: pop esi */ 1991 MEM32(FS_BASE + (0)) = ecx; /* 0x46002E07: mov dword ptr fs:[0], ecx */ 1992 esp = ebp; ebp = POP32_VAL(esp); /* 0x46002E0E: leave */ 1993 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002E0F: ret */ 1994 L_46002E10: 1995 ecx = esi; /* 0x46002E10: mov ecx, esi */ 1996 RECOMP_ICALL(0x46002F83u); /* 0x46002E12: call 0x46002f83 */ /* not lifted */ 1997 RECOMP_FLAGS_IN(); 1998 RECOMP_BACKEDGE(); 1999 goto L_46002DFB; /* 0x46002E17: jmp 0x46002dfb */ 2000 L_46029279: 2001 eax = MEM32(ebp + (-0x10)); /* 0x46029279: mov eax, dword ptr [ebp - 0x10] */ 2002 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2003 eax = eax & 1; /* 0x4602927C: and eax, 1 */ 2004 _cf = 0; 2005 _flag_k = FK_TEST; 2006 /* test eax, eax */ /* 0x4602927F: test eax, eax */ 2007 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2008 _cf = 0; 2009 _flag_k = FK_TEST; 2010 if (TEST_Z(_flag_a, _flag_b)) goto L_4602928E; /* 0x46029281: je 0x4602928e */ 2011 L_46029283: 2012 ecx = MEM32(ebp + (-0x14)); /* 0x46029283: mov ecx, dword ptr [ebp - 0x14] */ 2013 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x54u); 2014 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2015 ecx = ecx + 0x54u; /* 0x46029286: add ecx, 0x54 */ 2016 _flag_k = FK_ADD; 2017 RECOMP_BACKEDGE(); 2018 goto L_46002DC1; /* 0x46029289: jmp 0x46002dc1 */ 2019 L_4602928E: 2020 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4602928E: ret */ 2021 RECOMP_REGS_OUT(); 2022 } 2023 2024 void sub_4602928F(void) { 2025 int _fpu_cmp = 0; 2026 uint32_t _cf = 0; 2027 int _df = 1; 2028 uint32_t _flag_k = FK_NONE; 2029 uint32_t _flag_a = 0, _flag_b = 0; 2030 uint32_t _itail_tgt = 0; 2031 RECOMP_REGS_LOCALS 2032 RECOMP_ENTER(0x4602928Fu); 2033 2034 goto L_4602928F; 2035 L_46028419: 2036 eax = MEM32(ecx + (-0x8)); /* 0x46028419: mov eax, dword ptr [ecx - 8] */ 2037 eax = MEM32(eax + 0x4); /* 0x4602841C: mov eax, dword ptr [eax + 4] */ 2038 MEM32(eax + ecx + (-0x8)) = 0x4602B258u; /* 0x4602841F: mov dword ptr [eax + ecx - 8], 0x4602b258 */ 2039 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46028427: ret */ 2040 L_4602928F: 2041 ecx = MEM32(ebp + (-0x14)); /* 0x4602928F: mov ecx, dword ptr [ebp - 0x14] */ 2042 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 2043 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2044 ecx = ecx + 8; /* 0x46029292: add ecx, 8 */ 2045 _flag_k = FK_ADD; 2046 RECOMP_BACKEDGE(); 2047 goto L_46028419; /* 0x46029295: jmp 0x46028419 */ 2048 { RECOMP_REGS_OUT(); return; } /* end of function */ 2049 RECOMP_REGS_OUT(); 2050 } 2051 2052 void sub_4602929A(void) { 2053 int _fpu_cmp = 0; 2054 uint32_t _cf = 0; 2055 int _df = 1; 2056 uint32_t _flag_k = FK_NONE; 2057 uint32_t _flag_a = 0, _flag_b = 0; 2058 uint32_t _itail_tgt = 0; 2059 RECOMP_REGS_LOCALS 2060 RECOMP_ENTER(0x4602929Au); 2061 2062 goto L_4602929A; 2063 L_46028258: 2064 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 2065 L_4602929A: 2066 eax = 0x46030CE8u; /* 0x4602929A: mov eax, 0x46030ce8 */ 2067 L_4602929F: 2068 RECOMP_BACKEDGE(); 2069 goto L_46028258; /* 0x4602929F: jmp 0x46028258 */ 2070 { RECOMP_REGS_OUT(); return; } /* end of function */ 2071 _ljump: 2072 switch (_itail_tgt) { 2073 case 0x46028258u: goto L_46028258; 2074 case 0x4602929Au: goto L_4602929A; 2075 case 0x4602929Fu: goto L_4602929F; 2076 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2077 } 2078 RECOMP_REGS_OUT(); 2079 } 2080 2081 void sub_460292A4(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(0x460292A4u); 2090 2091 goto L_460292A4; 2092 L_46002DC1: 2093 MEM32(ecx) = 0x4602B268u; /* 0x46002DC1: mov dword ptr [ecx], 0x4602b268 */ 2094 eax = 0x4602A7C7u; /* 0x46002DC7: mov eax, 0x4602a7c7 */ 2095 RECOMP_ICALL(0x46001535u); /* 0x46002DCC: call 0x46001535 */ /* not lifted */ 2096 RECOMP_FLAGS_IN(); 2097 PUSH32(esp, ecx); /* 0x46002DD1: push ecx */ 2098 PUSH32(esp, esi); /* 0x46002DD2: push esi */ 2099 esi = ecx; /* 0x46002DD3: mov esi, ecx */ 2100 MEM32(ebp + (-0x10)) = esi; /* 0x46002DD5: mov dword ptr [ebp - 0x10], esi */ 2101 MEM32(esi) = 0x4602B708u; /* 0x46002DD8: mov dword ptr [esi], 0x4602b708 */ 2102 eax = MEM32(esi + 0x24); /* 0x46002DDE: mov eax, dword ptr [esi + 0x24] */ 2103 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 2104 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46002DE1: and dword ptr [ebp - 4], 0 */ 2105 _cf = 0; 2106 _flag_k = FK_TEST; 2107 /* test eax, eax */ /* 0x46002DE5: test eax, eax */ 2108 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2109 _cf = 0; 2110 _flag_k = FK_TEST; 2111 if (TEST_Z(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DE7: jbe 0x46002e10 */ 2112 L_46002DE9: 2113 _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(1) << 24; 2114 MEM8(eax + 0x4605B2C0) = (uint8_t)(MEM8(eax + 0x4605B2C0) - 1); /* 0x46002DE9: dec byte ptr [eax + 0x4605b2c0] */ 2115 _flag_k = FK_NARROW(FK_DEC, 24); 2116 eax = MEM32(esi + 0x24); /* 0x46002DEF: mov eax, dword ptr [esi + 0x24] */ 2117 /* cmp MEM8(eax + 0x4605B2C0), 0 */ /* 0x46002DF2: cmp byte ptr [eax + 0x4605b2c0], 0 */ 2118 _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(0) << 24; 2119 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2120 _flag_k = FK_NARROW(FK_CMP, 24); 2121 if (CMP_LE(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DF9: jle 0x46002e10 */ 2122 L_46002DFB: 2123 ecx = esi + 0x20; /* 0x46002DFB: lea ecx, [esi + 0x20] */ 2124 RECOMP_ICALL(0x46001CAEu); /* 0x46002DFE: call 0x46001cae */ /* not lifted */ 2125 RECOMP_FLAGS_IN(); 2126 ecx = MEM32(ebp + (-0xC)); /* 0x46002E03: mov ecx, dword ptr [ebp - 0xc] */ 2127 esi = POP32_VAL(esp); /* 0x46002E06: pop esi */ 2128 MEM32(FS_BASE + (0)) = ecx; /* 0x46002E07: mov dword ptr fs:[0], ecx */ 2129 esp = ebp; ebp = POP32_VAL(esp); /* 0x46002E0E: leave */ 2130 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002E0F: ret */ 2131 L_46002E10: 2132 ecx = esi; /* 0x46002E10: mov ecx, esi */ 2133 RECOMP_ICALL(0x46002F83u); /* 0x46002E12: call 0x46002f83 */ /* not lifted */ 2134 RECOMP_FLAGS_IN(); 2135 RECOMP_BACKEDGE(); 2136 goto L_46002DFB; /* 0x46002E17: jmp 0x46002dfb */ 2137 L_460292A4: 2138 eax = MEM32(ebp + (-0x10)); /* 0x460292A4: mov eax, dword ptr [ebp - 0x10] */ 2139 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2140 eax = eax & 1; /* 0x460292A7: and eax, 1 */ 2141 _cf = 0; 2142 _flag_k = FK_TEST; 2143 /* test eax, eax */ /* 0x460292AA: test eax, eax */ 2144 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2145 _cf = 0; 2146 _flag_k = FK_TEST; 2147 if (TEST_Z(_flag_a, _flag_b)) goto L_460292B9; /* 0x460292AC: je 0x460292b9 */ 2148 L_460292AE: 2149 ecx = MEM32(ebp + (-0x14)); /* 0x460292AE: mov ecx, dword ptr [ebp - 0x14] */ 2150 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x54u); 2151 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2152 ecx = ecx + 0x54u; /* 0x460292B1: add ecx, 0x54 */ 2153 _flag_k = FK_ADD; 2154 RECOMP_BACKEDGE(); 2155 goto L_46002DC1; /* 0x460292B4: jmp 0x46002dc1 */ 2156 L_460292B9: 2157 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460292B9: ret */ 2158 RECOMP_REGS_OUT(); 2159 } 2160 2161 void sub_460292BA(void) { 2162 int _fpu_cmp = 0; 2163 uint32_t _cf = 0; 2164 int _df = 1; 2165 uint32_t _flag_k = FK_NONE; 2166 uint32_t _flag_a = 0, _flag_b = 0; 2167 uint32_t _itail_tgt = 0; 2168 RECOMP_REGS_LOCALS 2169 RECOMP_ENTER(0x460292BAu); 2170 2171 goto L_460292BA; 2172 L_46028419: 2173 eax = MEM32(ecx + (-0x8)); /* 0x46028419: mov eax, dword ptr [ecx - 8] */ 2174 eax = MEM32(eax + 0x4); /* 0x4602841C: mov eax, dword ptr [eax + 4] */ 2175 MEM32(eax + ecx + (-0x8)) = 0x4602B258u; /* 0x4602841F: mov dword ptr [eax + ecx - 8], 0x4602b258 */ 2176 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46028427: ret */ 2177 L_460292BA: 2178 ecx = MEM32(ebp + (-0x14)); /* 0x460292BA: mov ecx, dword ptr [ebp - 0x14] */ 2179 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 2180 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2181 ecx = ecx + 8; /* 0x460292BD: add ecx, 8 */ 2182 _flag_k = FK_ADD; 2183 RECOMP_BACKEDGE(); 2184 goto L_46028419; /* 0x460292C0: jmp 0x46028419 */ 2185 { RECOMP_REGS_OUT(); return; } /* end of function */ 2186 RECOMP_REGS_OUT(); 2187 } 2188 2189 void sub_460292C5(void) { 2190 int _fpu_cmp = 0; 2191 uint32_t _cf = 0; 2192 int _df = 1; 2193 uint32_t _flag_k = FK_NONE; 2194 uint32_t _flag_a = 0, _flag_b = 0; 2195 uint32_t _itail_tgt = 0; 2196 RECOMP_REGS_LOCALS 2197 RECOMP_ENTER(0x460292C5u); 2198 2199 goto L_460292C5; 2200 L_46028258: 2201 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 2202 L_460292C5: 2203 eax = 0x46030D18u; /* 0x460292C5: mov eax, 0x46030d18 */ 2204 L_460292CA: 2205 RECOMP_BACKEDGE(); 2206 goto L_46028258; /* 0x460292CA: jmp 0x46028258 */ 2207 { RECOMP_REGS_OUT(); return; } /* end of function */ 2208 _ljump: 2209 switch (_itail_tgt) { 2210 case 0x46028258u: goto L_46028258; 2211 case 0x460292C5u: goto L_460292C5; 2212 case 0x460292CAu: goto L_460292CA; 2213 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2214 } 2215 RECOMP_REGS_OUT(); 2216 } 2217 2218 void sub_460292CF(void) { 2219 int _fpu_cmp = 0; 2220 uint32_t _cf = 0; 2221 int _df = 1; 2222 uint32_t _flag_k = FK_NONE; 2223 uint32_t _flag_a = 0, _flag_b = 0; 2224 uint32_t _itail_tgt = 0; 2225 RECOMP_REGS_LOCALS 2226 RECOMP_ENTER(0x460292CFu); 2227 2228 goto L_460292CF; 2229 L_46002DA4: 2230 MEM32(ecx) = 0x4602B5E8u; /* 0x46002DA4: mov dword ptr [ecx], 0x4602b5e8 */ 2231 goto L_46002DC7; /* 0x46002DAA: jmp 0x46002dc7 */ 2232 L_46002DC7: 2233 eax = 0x4602A7C7u; /* 0x46002DC7: mov eax, 0x4602a7c7 */ 2234 RECOMP_ICALL(0x46001535u); /* 0x46002DCC: call 0x46001535 */ /* not lifted */ 2235 RECOMP_FLAGS_IN(); 2236 PUSH32(esp, ecx); /* 0x46002DD1: push ecx */ 2237 PUSH32(esp, esi); /* 0x46002DD2: push esi */ 2238 esi = ecx; /* 0x46002DD3: mov esi, ecx */ 2239 MEM32(ebp + (-0x10)) = esi; /* 0x46002DD5: mov dword ptr [ebp - 0x10], esi */ 2240 MEM32(esi) = 0x4602B708u; /* 0x46002DD8: mov dword ptr [esi], 0x4602b708 */ 2241 eax = MEM32(esi + 0x24); /* 0x46002DDE: mov eax, dword ptr [esi + 0x24] */ 2242 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 2243 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46002DE1: and dword ptr [ebp - 4], 0 */ 2244 _cf = 0; 2245 _flag_k = FK_TEST; 2246 /* test eax, eax */ /* 0x46002DE5: test eax, eax */ 2247 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2248 _cf = 0; 2249 _flag_k = FK_TEST; 2250 if (TEST_Z(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DE7: jbe 0x46002e10 */ 2251 L_46002DE9: 2252 _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(1) << 24; 2253 MEM8(eax + 0x4605B2C0) = (uint8_t)(MEM8(eax + 0x4605B2C0) - 1); /* 0x46002DE9: dec byte ptr [eax + 0x4605b2c0] */ 2254 _flag_k = FK_NARROW(FK_DEC, 24); 2255 eax = MEM32(esi + 0x24); /* 0x46002DEF: mov eax, dword ptr [esi + 0x24] */ 2256 /* cmp MEM8(eax + 0x4605B2C0), 0 */ /* 0x46002DF2: cmp byte ptr [eax + 0x4605b2c0], 0 */ 2257 _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(0) << 24; 2258 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2259 _flag_k = FK_NARROW(FK_CMP, 24); 2260 if (CMP_LE(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DF9: jle 0x46002e10 */ 2261 L_46002DFB: 2262 ecx = esi + 0x20; /* 0x46002DFB: lea ecx, [esi + 0x20] */ 2263 RECOMP_ICALL(0x46001CAEu); /* 0x46002DFE: call 0x46001cae */ /* not lifted */ 2264 RECOMP_FLAGS_IN(); 2265 ecx = MEM32(ebp + (-0xC)); /* 0x46002E03: mov ecx, dword ptr [ebp - 0xc] */ 2266 esi = POP32_VAL(esp); /* 0x46002E06: pop esi */ 2267 MEM32(FS_BASE + (0)) = ecx; /* 0x46002E07: mov dword ptr fs:[0], ecx */ 2268 esp = ebp; ebp = POP32_VAL(esp); /* 0x46002E0E: leave */ 2269 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002E0F: ret */ 2270 L_46002E10: 2271 ecx = esi; /* 0x46002E10: mov ecx, esi */ 2272 RECOMP_ICALL(0x46002F83u); /* 0x46002E12: call 0x46002f83 */ /* not lifted */ 2273 RECOMP_FLAGS_IN(); 2274 RECOMP_BACKEDGE(); 2275 goto L_46002DFB; /* 0x46002E17: jmp 0x46002dfb */ 2276 L_460292CF: 2277 eax = MEM32(ebp + (-0x10)); /* 0x460292CF: mov eax, dword ptr [ebp - 0x10] */ 2278 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2279 eax = eax & 1; /* 0x460292D2: and eax, 1 */ 2280 _cf = 0; 2281 _flag_k = FK_TEST; 2282 /* test eax, eax */ /* 0x460292D5: test eax, eax */ 2283 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2284 _cf = 0; 2285 _flag_k = FK_TEST; 2286 if (TEST_Z(_flag_a, _flag_b)) goto L_460292E4; /* 0x460292D7: je 0x460292e4 */ 2287 L_460292D9: 2288 ecx = MEM32(ebp + (-0x14)); /* 0x460292D9: mov ecx, dword ptr [ebp - 0x14] */ 2289 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x54u); 2290 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2291 ecx = ecx + 0x54u; /* 0x460292DC: add ecx, 0x54 */ 2292 _flag_k = FK_ADD; 2293 RECOMP_BACKEDGE(); 2294 goto L_46002DA4; /* 0x460292DF: jmp 0x46002da4 */ 2295 L_460292E4: 2296 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460292E4: ret */ 2297 RECOMP_REGS_OUT(); 2298 } 2299 2300 void sub_460292E5(void) { 2301 int _fpu_cmp = 0; 2302 uint32_t _cf = 0; 2303 int _df = 1; 2304 uint32_t _flag_k = FK_NONE; 2305 uint32_t _flag_a = 0, _flag_b = 0; 2306 uint32_t _itail_tgt = 0; 2307 RECOMP_REGS_LOCALS 2308 RECOMP_ENTER(0x460292E5u); 2309 2310 goto L_460292E5; 2311 L_4602844E: 2312 eax = MEM32(ecx + (-0x8)); /* 0x4602844E: mov eax, dword ptr [ecx - 8] */ 2313 eax = MEM32(eax + 0x4); /* 0x46028451: mov eax, dword ptr [eax + 4] */ 2314 MEM32(eax + ecx + (-0x8)) = 0x4602B5D8u; /* 0x46028454: mov dword ptr [eax + ecx - 8], 0x4602b5d8 */ 2315 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4602845C: ret */ 2316 L_460292E5: 2317 ecx = MEM32(ebp + (-0x14)); /* 0x460292E5: mov ecx, dword ptr [ebp - 0x14] */ 2318 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 2319 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2320 ecx = ecx + 8; /* 0x460292E8: add ecx, 8 */ 2321 _flag_k = FK_ADD; 2322 RECOMP_BACKEDGE(); 2323 goto L_4602844E; /* 0x460292EB: jmp 0x4602844e */ 2324 { RECOMP_REGS_OUT(); return; } /* end of function */ 2325 RECOMP_REGS_OUT(); 2326 } 2327 2328 void sub_460292F0(void) { 2329 int _fpu_cmp = 0; 2330 uint32_t _cf = 0; 2331 int _df = 1; 2332 uint32_t _flag_k = FK_NONE; 2333 uint32_t _flag_a = 0, _flag_b = 0; 2334 uint32_t _itail_tgt = 0; 2335 RECOMP_REGS_LOCALS 2336 RECOMP_ENTER(0x460292F0u); 2337 2338 goto L_460292F0; 2339 L_46028258: 2340 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 2341 L_460292F0: 2342 eax = 0x46030D48u; /* 0x460292F0: mov eax, 0x46030d48 */ 2343 L_460292F5: 2344 RECOMP_BACKEDGE(); 2345 goto L_46028258; /* 0x460292F5: jmp 0x46028258 */ 2346 { RECOMP_REGS_OUT(); return; } /* end of function */ 2347 _ljump: 2348 switch (_itail_tgt) { 2349 case 0x46028258u: goto L_46028258; 2350 case 0x460292F0u: goto L_460292F0; 2351 case 0x460292F5u: goto L_460292F5; 2352 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2353 } 2354 RECOMP_REGS_OUT(); 2355 } 2356 2357 void sub_460292FA(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(0x460292FAu); 2366 2367 goto L_460292FA; 2368 L_46002DA4: 2369 MEM32(ecx) = 0x4602B5E8u; /* 0x46002DA4: mov dword ptr [ecx], 0x4602b5e8 */ 2370 goto L_46002DC7; /* 0x46002DAA: jmp 0x46002dc7 */ 2371 L_46002DC7: 2372 eax = 0x4602A7C7u; /* 0x46002DC7: mov eax, 0x4602a7c7 */ 2373 RECOMP_ICALL(0x46001535u); /* 0x46002DCC: call 0x46001535 */ /* not lifted */ 2374 RECOMP_FLAGS_IN(); 2375 PUSH32(esp, ecx); /* 0x46002DD1: push ecx */ 2376 PUSH32(esp, esi); /* 0x46002DD2: push esi */ 2377 esi = ecx; /* 0x46002DD3: mov esi, ecx */ 2378 MEM32(ebp + (-0x10)) = esi; /* 0x46002DD5: mov dword ptr [ebp - 0x10], esi */ 2379 MEM32(esi) = 0x4602B708u; /* 0x46002DD8: mov dword ptr [esi], 0x4602b708 */ 2380 eax = MEM32(esi + 0x24); /* 0x46002DDE: mov eax, dword ptr [esi + 0x24] */ 2381 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 2382 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46002DE1: and dword ptr [ebp - 4], 0 */ 2383 _cf = 0; 2384 _flag_k = FK_TEST; 2385 /* test eax, eax */ /* 0x46002DE5: test eax, eax */ 2386 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2387 _cf = 0; 2388 _flag_k = FK_TEST; 2389 if (TEST_Z(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DE7: jbe 0x46002e10 */ 2390 L_46002DE9: 2391 _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(1) << 24; 2392 MEM8(eax + 0x4605B2C0) = (uint8_t)(MEM8(eax + 0x4605B2C0) - 1); /* 0x46002DE9: dec byte ptr [eax + 0x4605b2c0] */ 2393 _flag_k = FK_NARROW(FK_DEC, 24); 2394 eax = MEM32(esi + 0x24); /* 0x46002DEF: mov eax, dword ptr [esi + 0x24] */ 2395 /* cmp MEM8(eax + 0x4605B2C0), 0 */ /* 0x46002DF2: cmp byte ptr [eax + 0x4605b2c0], 0 */ 2396 _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(0) << 24; 2397 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2398 _flag_k = FK_NARROW(FK_CMP, 24); 2399 if (CMP_LE(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DF9: jle 0x46002e10 */ 2400 L_46002DFB: 2401 ecx = esi + 0x20; /* 0x46002DFB: lea ecx, [esi + 0x20] */ 2402 RECOMP_ICALL(0x46001CAEu); /* 0x46002DFE: call 0x46001cae */ /* not lifted */ 2403 RECOMP_FLAGS_IN(); 2404 ecx = MEM32(ebp + (-0xC)); /* 0x46002E03: mov ecx, dword ptr [ebp - 0xc] */ 2405 esi = POP32_VAL(esp); /* 0x46002E06: pop esi */ 2406 MEM32(FS_BASE + (0)) = ecx; /* 0x46002E07: mov dword ptr fs:[0], ecx */ 2407 esp = ebp; ebp = POP32_VAL(esp); /* 0x46002E0E: leave */ 2408 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002E0F: ret */ 2409 L_46002E10: 2410 ecx = esi; /* 0x46002E10: mov ecx, esi */ 2411 RECOMP_ICALL(0x46002F83u); /* 0x46002E12: call 0x46002f83 */ /* not lifted */ 2412 RECOMP_FLAGS_IN(); 2413 RECOMP_BACKEDGE(); 2414 goto L_46002DFB; /* 0x46002E17: jmp 0x46002dfb */ 2415 L_460292FA: 2416 eax = MEM32(ebp + (-0x10)); /* 0x460292FA: mov eax, dword ptr [ebp - 0x10] */ 2417 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2418 eax = eax & 1; /* 0x460292FD: and eax, 1 */ 2419 _cf = 0; 2420 _flag_k = FK_TEST; 2421 /* test eax, eax */ /* 0x46029300: test eax, eax */ 2422 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2423 _cf = 0; 2424 _flag_k = FK_TEST; 2425 if (TEST_Z(_flag_a, _flag_b)) goto L_4602930F; /* 0x46029302: je 0x4602930f */ 2426 L_46029304: 2427 ecx = MEM32(ebp + (-0x14)); /* 0x46029304: mov ecx, dword ptr [ebp - 0x14] */ 2428 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x54u); 2429 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2430 ecx = ecx + 0x54u; /* 0x46029307: add ecx, 0x54 */ 2431 _flag_k = FK_ADD; 2432 RECOMP_BACKEDGE(); 2433 goto L_46002DA4; /* 0x4602930A: jmp 0x46002da4 */ 2434 L_4602930F: 2435 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4602930F: ret */ 2436 RECOMP_REGS_OUT(); 2437 } 2438 2439 void sub_46029310(void) { 2440 int _fpu_cmp = 0; 2441 uint32_t _cf = 0; 2442 int _df = 1; 2443 uint32_t _flag_k = FK_NONE; 2444 uint32_t _flag_a = 0, _flag_b = 0; 2445 uint32_t _itail_tgt = 0; 2446 RECOMP_REGS_LOCALS 2447 RECOMP_ENTER(0x46029310u); 2448 2449 goto L_46029310; 2450 L_4602844E: 2451 eax = MEM32(ecx + (-0x8)); /* 0x4602844E: mov eax, dword ptr [ecx - 8] */ 2452 eax = MEM32(eax + 0x4); /* 0x46028451: mov eax, dword ptr [eax + 4] */ 2453 MEM32(eax + ecx + (-0x8)) = 0x4602B5D8u; /* 0x46028454: mov dword ptr [eax + ecx - 8], 0x4602b5d8 */ 2454 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4602845C: ret */ 2455 L_46029310: 2456 ecx = MEM32(ebp + (-0x14)); /* 0x46029310: mov ecx, dword ptr [ebp - 0x14] */ 2457 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 2458 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2459 ecx = ecx + 8; /* 0x46029313: add ecx, 8 */ 2460 _flag_k = FK_ADD; 2461 RECOMP_BACKEDGE(); 2462 goto L_4602844E; /* 0x46029316: jmp 0x4602844e */ 2463 { RECOMP_REGS_OUT(); return; } /* end of function */ 2464 RECOMP_REGS_OUT(); 2465 } 2466 2467 void sub_4602931B(void) { 2468 int _fpu_cmp = 0; 2469 uint32_t _cf = 0; 2470 int _df = 1; 2471 uint32_t _flag_k = FK_NONE; 2472 uint32_t _flag_a = 0, _flag_b = 0; 2473 uint32_t _itail_tgt = 0; 2474 RECOMP_REGS_LOCALS 2475 RECOMP_ENTER(0x4602931Bu); 2476 2477 goto L_4602931B; 2478 L_46028258: 2479 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 2480 L_4602931B: 2481 eax = 0x46030D78u; /* 0x4602931B: mov eax, 0x46030d78 */ 2482 L_46029320: 2483 RECOMP_BACKEDGE(); 2484 goto L_46028258; /* 0x46029320: jmp 0x46028258 */ 2485 { RECOMP_REGS_OUT(); return; } /* end of function */ 2486 _ljump: 2487 switch (_itail_tgt) { 2488 case 0x46028258u: goto L_46028258; 2489 case 0x4602931Bu: goto L_4602931B; 2490 case 0x46029320u: goto L_46029320; 2491 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2492 } 2493 RECOMP_REGS_OUT(); 2494 } 2495 2496 void sub_46029325(void) { 2497 int _fpu_cmp = 0; 2498 uint32_t _cf = 0; 2499 int _df = 1; 2500 uint32_t _flag_k = FK_NONE; 2501 uint32_t _flag_a = 0, _flag_b = 0; 2502 uint32_t _itail_tgt = 0; 2503 RECOMP_REGS_LOCALS 2504 RECOMP_ENTER(0x46029325u); 2505 2506 goto L_46029325; 2507 L_46002DC1: 2508 MEM32(ecx) = 0x4602B268u; /* 0x46002DC1: mov dword ptr [ecx], 0x4602b268 */ 2509 eax = 0x4602A7C7u; /* 0x46002DC7: mov eax, 0x4602a7c7 */ 2510 RECOMP_ICALL(0x46001535u); /* 0x46002DCC: call 0x46001535 */ /* not lifted */ 2511 RECOMP_FLAGS_IN(); 2512 PUSH32(esp, ecx); /* 0x46002DD1: push ecx */ 2513 PUSH32(esp, esi); /* 0x46002DD2: push esi */ 2514 esi = ecx; /* 0x46002DD3: mov esi, ecx */ 2515 MEM32(ebp + (-0x10)) = esi; /* 0x46002DD5: mov dword ptr [ebp - 0x10], esi */ 2516 MEM32(esi) = 0x4602B708u; /* 0x46002DD8: mov dword ptr [esi], 0x4602b708 */ 2517 eax = MEM32(esi + 0x24); /* 0x46002DDE: mov eax, dword ptr [esi + 0x24] */ 2518 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 2519 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46002DE1: and dword ptr [ebp - 4], 0 */ 2520 _cf = 0; 2521 _flag_k = FK_TEST; 2522 /* test eax, eax */ /* 0x46002DE5: test eax, eax */ 2523 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2524 _cf = 0; 2525 _flag_k = FK_TEST; 2526 if (TEST_Z(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DE7: jbe 0x46002e10 */ 2527 L_46002DE9: 2528 _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(1) << 24; 2529 MEM8(eax + 0x4605B2C0) = (uint8_t)(MEM8(eax + 0x4605B2C0) - 1); /* 0x46002DE9: dec byte ptr [eax + 0x4605b2c0] */ 2530 _flag_k = FK_NARROW(FK_DEC, 24); 2531 eax = MEM32(esi + 0x24); /* 0x46002DEF: mov eax, dword ptr [esi + 0x24] */ 2532 /* cmp MEM8(eax + 0x4605B2C0), 0 */ /* 0x46002DF2: cmp byte ptr [eax + 0x4605b2c0], 0 */ 2533 _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(0) << 24; 2534 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2535 _flag_k = FK_NARROW(FK_CMP, 24); 2536 if (CMP_LE(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DF9: jle 0x46002e10 */ 2537 L_46002DFB: 2538 ecx = esi + 0x20; /* 0x46002DFB: lea ecx, [esi + 0x20] */ 2539 RECOMP_ICALL(0x46001CAEu); /* 0x46002DFE: call 0x46001cae */ /* not lifted */ 2540 RECOMP_FLAGS_IN(); 2541 ecx = MEM32(ebp + (-0xC)); /* 0x46002E03: mov ecx, dword ptr [ebp - 0xc] */ 2542 esi = POP32_VAL(esp); /* 0x46002E06: pop esi */ 2543 MEM32(FS_BASE + (0)) = ecx; /* 0x46002E07: mov dword ptr fs:[0], ecx */ 2544 esp = ebp; ebp = POP32_VAL(esp); /* 0x46002E0E: leave */ 2545 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002E0F: ret */ 2546 L_46002E10: 2547 ecx = esi; /* 0x46002E10: mov ecx, esi */ 2548 RECOMP_ICALL(0x46002F83u); /* 0x46002E12: call 0x46002f83 */ /* not lifted */ 2549 RECOMP_FLAGS_IN(); 2550 RECOMP_BACKEDGE(); 2551 goto L_46002DFB; /* 0x46002E17: jmp 0x46002dfb */ 2552 L_46029325: 2553 eax = MEM32(ebp + (-0x10)); /* 0x46029325: mov eax, dword ptr [ebp - 0x10] */ 2554 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2555 eax = eax & 1; /* 0x46029328: and eax, 1 */ 2556 _cf = 0; 2557 _flag_k = FK_TEST; 2558 /* test eax, eax */ /* 0x4602932B: test eax, eax */ 2559 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2560 _cf = 0; 2561 _flag_k = FK_TEST; 2562 if (TEST_Z(_flag_a, _flag_b)) goto L_4602933A; /* 0x4602932D: je 0x4602933a */ 2563 L_4602932F: 2564 ecx = MEM32(ebp + (-0x14)); /* 0x4602932F: mov ecx, dword ptr [ebp - 0x14] */ 2565 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x50u); 2566 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2567 ecx = ecx + 0x50u; /* 0x46029332: add ecx, 0x50 */ 2568 _flag_k = FK_ADD; 2569 RECOMP_BACKEDGE(); 2570 goto L_46002DC1; /* 0x46029335: jmp 0x46002dc1 */ 2571 L_4602933A: 2572 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4602933A: ret */ 2573 RECOMP_REGS_OUT(); 2574 } 2575 2576 void sub_4602933B(void) { 2577 int _fpu_cmp = 0; 2578 uint32_t _cf = 0; 2579 int _df = 1; 2580 uint32_t _flag_k = FK_NONE; 2581 uint32_t _flag_a = 0, _flag_b = 0; 2582 uint32_t _itail_tgt = 0; 2583 RECOMP_REGS_LOCALS 2584 RECOMP_ENTER(0x4602933Bu); 2585 2586 goto L_4602933B; 2587 L_460284FD: 2588 eax = MEM32(ecx + (-0x4)); /* 0x460284FD: mov eax, dword ptr [ecx - 4] */ 2589 eax = MEM32(eax + 0x4); /* 0x46028500: mov eax, dword ptr [eax + 4] */ 2590 MEM32(eax + ecx + (-0x4)) = 0x4602B358u; /* 0x46028503: mov dword ptr [eax + ecx - 4], 0x4602b358 */ 2591 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4602850B: ret */ 2592 L_4602933B: 2593 ecx = MEM32(ebp + (-0x14)); /* 0x4602933B: mov ecx, dword ptr [ebp - 0x14] */ 2594 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 2595 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2596 ecx = ecx + 4; /* 0x4602933E: add ecx, 4 */ 2597 _flag_k = FK_ADD; 2598 RECOMP_BACKEDGE(); 2599 goto L_460284FD; /* 0x46029341: jmp 0x460284fd */ 2600 { RECOMP_REGS_OUT(); return; } /* end of function */ 2601 RECOMP_REGS_OUT(); 2602 } 2603 2604 void sub_46029346(void) { 2605 int _fpu_cmp = 0; 2606 uint32_t _cf = 0; 2607 int _df = 1; 2608 uint32_t _flag_k = FK_NONE; 2609 uint32_t _flag_a = 0, _flag_b = 0; 2610 uint32_t _itail_tgt = 0; 2611 RECOMP_REGS_LOCALS 2612 RECOMP_ENTER(0x46029346u); 2613 2614 goto L_46029346; 2615 L_46028258: 2616 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 2617 L_46029346: 2618 eax = 0x46030DA8u; /* 0x46029346: mov eax, 0x46030da8 */ 2619 L_4602934B: 2620 RECOMP_BACKEDGE(); 2621 goto L_46028258; /* 0x4602934B: jmp 0x46028258 */ 2622 { RECOMP_REGS_OUT(); return; } /* end of function */ 2623 _ljump: 2624 switch (_itail_tgt) { 2625 case 0x46028258u: goto L_46028258; 2626 case 0x46029346u: goto L_46029346; 2627 case 0x4602934Bu: goto L_4602934B; 2628 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2629 } 2630 RECOMP_REGS_OUT(); 2631 } 2632 2633 void sub_46029350(void) { 2634 int _fpu_cmp = 0; 2635 uint32_t _cf = 0; 2636 int _df = 1; 2637 uint32_t _flag_k = FK_NONE; 2638 uint32_t _flag_a = 0, _flag_b = 0; 2639 uint32_t _itail_tgt = 0; 2640 RECOMP_REGS_LOCALS 2641 RECOMP_ENTER(0x46029350u); 2642 2643 goto L_46029350; 2644 L_46002DC1: 2645 MEM32(ecx) = 0x4602B268u; /* 0x46002DC1: mov dword ptr [ecx], 0x4602b268 */ 2646 eax = 0x4602A7C7u; /* 0x46002DC7: mov eax, 0x4602a7c7 */ 2647 RECOMP_ICALL(0x46001535u); /* 0x46002DCC: call 0x46001535 */ /* not lifted */ 2648 RECOMP_FLAGS_IN(); 2649 PUSH32(esp, ecx); /* 0x46002DD1: push ecx */ 2650 PUSH32(esp, esi); /* 0x46002DD2: push esi */ 2651 esi = ecx; /* 0x46002DD3: mov esi, ecx */ 2652 MEM32(ebp + (-0x10)) = esi; /* 0x46002DD5: mov dword ptr [ebp - 0x10], esi */ 2653 MEM32(esi) = 0x4602B708u; /* 0x46002DD8: mov dword ptr [esi], 0x4602b708 */ 2654 eax = MEM32(esi + 0x24); /* 0x46002DDE: mov eax, dword ptr [esi + 0x24] */ 2655 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 2656 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46002DE1: and dword ptr [ebp - 4], 0 */ 2657 _cf = 0; 2658 _flag_k = FK_TEST; 2659 /* test eax, eax */ /* 0x46002DE5: test eax, eax */ 2660 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2661 _cf = 0; 2662 _flag_k = FK_TEST; 2663 if (TEST_Z(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DE7: jbe 0x46002e10 */ 2664 L_46002DE9: 2665 _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(1) << 24; 2666 MEM8(eax + 0x4605B2C0) = (uint8_t)(MEM8(eax + 0x4605B2C0) - 1); /* 0x46002DE9: dec byte ptr [eax + 0x4605b2c0] */ 2667 _flag_k = FK_NARROW(FK_DEC, 24); 2668 eax = MEM32(esi + 0x24); /* 0x46002DEF: mov eax, dword ptr [esi + 0x24] */ 2669 /* cmp MEM8(eax + 0x4605B2C0), 0 */ /* 0x46002DF2: cmp byte ptr [eax + 0x4605b2c0], 0 */ 2670 _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(0) << 24; 2671 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2672 _flag_k = FK_NARROW(FK_CMP, 24); 2673 if (CMP_LE(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DF9: jle 0x46002e10 */ 2674 L_46002DFB: 2675 ecx = esi + 0x20; /* 0x46002DFB: lea ecx, [esi + 0x20] */ 2676 RECOMP_ICALL(0x46001CAEu); /* 0x46002DFE: call 0x46001cae */ /* not lifted */ 2677 RECOMP_FLAGS_IN(); 2678 ecx = MEM32(ebp + (-0xC)); /* 0x46002E03: mov ecx, dword ptr [ebp - 0xc] */ 2679 esi = POP32_VAL(esp); /* 0x46002E06: pop esi */ 2680 MEM32(FS_BASE + (0)) = ecx; /* 0x46002E07: mov dword ptr fs:[0], ecx */ 2681 esp = ebp; ebp = POP32_VAL(esp); /* 0x46002E0E: leave */ 2682 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002E0F: ret */ 2683 L_46002E10: 2684 ecx = esi; /* 0x46002E10: mov ecx, esi */ 2685 RECOMP_ICALL(0x46002F83u); /* 0x46002E12: call 0x46002f83 */ /* not lifted */ 2686 RECOMP_FLAGS_IN(); 2687 RECOMP_BACKEDGE(); 2688 goto L_46002DFB; /* 0x46002E17: jmp 0x46002dfb */ 2689 L_46029350: 2690 eax = MEM32(ebp + (-0x10)); /* 0x46029350: mov eax, dword ptr [ebp - 0x10] */ 2691 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2692 eax = eax & 1; /* 0x46029353: and eax, 1 */ 2693 _cf = 0; 2694 _flag_k = FK_TEST; 2695 /* test eax, eax */ /* 0x46029356: test eax, eax */ 2696 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2697 _cf = 0; 2698 _flag_k = FK_TEST; 2699 if (TEST_Z(_flag_a, _flag_b)) goto L_46029365; /* 0x46029358: je 0x46029365 */ 2700 L_4602935A: 2701 ecx = MEM32(ebp + (-0x14)); /* 0x4602935A: mov ecx, dword ptr [ebp - 0x14] */ 2702 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x50u); 2703 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2704 ecx = ecx + 0x50u; /* 0x4602935D: add ecx, 0x50 */ 2705 _flag_k = FK_ADD; 2706 RECOMP_BACKEDGE(); 2707 goto L_46002DC1; /* 0x46029360: jmp 0x46002dc1 */ 2708 L_46029365: 2709 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46029365: ret */ 2710 RECOMP_REGS_OUT(); 2711 } 2712 2713 void sub_46029366(void) { 2714 int _fpu_cmp = 0; 2715 uint32_t _cf = 0; 2716 int _df = 1; 2717 uint32_t _flag_k = FK_NONE; 2718 uint32_t _flag_a = 0, _flag_b = 0; 2719 uint32_t _itail_tgt = 0; 2720 RECOMP_REGS_LOCALS 2721 RECOMP_ENTER(0x46029366u); 2722 2723 goto L_46029366; 2724 L_460284FD: 2725 eax = MEM32(ecx + (-0x4)); /* 0x460284FD: mov eax, dword ptr [ecx - 4] */ 2726 eax = MEM32(eax + 0x4); /* 0x46028500: mov eax, dword ptr [eax + 4] */ 2727 MEM32(eax + ecx + (-0x4)) = 0x4602B358u; /* 0x46028503: mov dword ptr [eax + ecx - 4], 0x4602b358 */ 2728 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4602850B: ret */ 2729 L_46029366: 2730 ecx = MEM32(ebp + (-0x14)); /* 0x46029366: mov ecx, dword ptr [ebp - 0x14] */ 2731 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 2732 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2733 ecx = ecx + 4; /* 0x46029369: add ecx, 4 */ 2734 _flag_k = FK_ADD; 2735 RECOMP_BACKEDGE(); 2736 goto L_460284FD; /* 0x4602936C: jmp 0x460284fd */ 2737 { RECOMP_REGS_OUT(); return; } /* end of function */ 2738 RECOMP_REGS_OUT(); 2739 } 2740 2741 void sub_46029371(void) { 2742 int _fpu_cmp = 0; 2743 uint32_t _cf = 0; 2744 int _df = 1; 2745 uint32_t _flag_k = FK_NONE; 2746 uint32_t _flag_a = 0, _flag_b = 0; 2747 uint32_t _itail_tgt = 0; 2748 RECOMP_REGS_LOCALS 2749 RECOMP_ENTER(0x46029371u); 2750 2751 goto L_46029371; 2752 L_46028258: 2753 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 2754 L_46029371: 2755 eax = 0x46030DD8u; /* 0x46029371: mov eax, 0x46030dd8 */ 2756 L_46029376: 2757 RECOMP_BACKEDGE(); 2758 goto L_46028258; /* 0x46029376: jmp 0x46028258 */ 2759 { RECOMP_REGS_OUT(); return; } /* end of function */ 2760 _ljump: 2761 switch (_itail_tgt) { 2762 case 0x46028258u: goto L_46028258; 2763 case 0x46029371u: goto L_46029371; 2764 case 0x46029376u: goto L_46029376; 2765 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2766 } 2767 RECOMP_REGS_OUT(); 2768 } 2769 2770 void sub_4602937B(void) { 2771 int _fpu_cmp = 0; 2772 uint32_t _cf = 0; 2773 int _df = 1; 2774 uint32_t _flag_k = FK_NONE; 2775 uint32_t _flag_a = 0, _flag_b = 0; 2776 uint32_t _itail_tgt = 0; 2777 RECOMP_REGS_LOCALS 2778 RECOMP_ENTER(0x4602937Bu); 2779 2780 goto L_4602937B; 2781 L_46002DA4: 2782 MEM32(ecx) = 0x4602B5E8u; /* 0x46002DA4: mov dword ptr [ecx], 0x4602b5e8 */ 2783 goto L_46002DC7; /* 0x46002DAA: jmp 0x46002dc7 */ 2784 L_46002DC7: 2785 eax = 0x4602A7C7u; /* 0x46002DC7: mov eax, 0x4602a7c7 */ 2786 RECOMP_ICALL(0x46001535u); /* 0x46002DCC: call 0x46001535 */ /* not lifted */ 2787 RECOMP_FLAGS_IN(); 2788 PUSH32(esp, ecx); /* 0x46002DD1: push ecx */ 2789 PUSH32(esp, esi); /* 0x46002DD2: push esi */ 2790 esi = ecx; /* 0x46002DD3: mov esi, ecx */ 2791 MEM32(ebp + (-0x10)) = esi; /* 0x46002DD5: mov dword ptr [ebp - 0x10], esi */ 2792 MEM32(esi) = 0x4602B708u; /* 0x46002DD8: mov dword ptr [esi], 0x4602b708 */ 2793 eax = MEM32(esi + 0x24); /* 0x46002DDE: mov eax, dword ptr [esi + 0x24] */ 2794 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 2795 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46002DE1: and dword ptr [ebp - 4], 0 */ 2796 _cf = 0; 2797 _flag_k = FK_TEST; 2798 /* test eax, eax */ /* 0x46002DE5: test eax, eax */ 2799 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2800 _cf = 0; 2801 _flag_k = FK_TEST; 2802 if (TEST_Z(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DE7: jbe 0x46002e10 */ 2803 L_46002DE9: 2804 _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(1) << 24; 2805 MEM8(eax + 0x4605B2C0) = (uint8_t)(MEM8(eax + 0x4605B2C0) - 1); /* 0x46002DE9: dec byte ptr [eax + 0x4605b2c0] */ 2806 _flag_k = FK_NARROW(FK_DEC, 24); 2807 eax = MEM32(esi + 0x24); /* 0x46002DEF: mov eax, dword ptr [esi + 0x24] */ 2808 /* cmp MEM8(eax + 0x4605B2C0), 0 */ /* 0x46002DF2: cmp byte ptr [eax + 0x4605b2c0], 0 */ 2809 _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(0) << 24; 2810 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2811 _flag_k = FK_NARROW(FK_CMP, 24); 2812 if (CMP_LE(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DF9: jle 0x46002e10 */ 2813 L_46002DFB: 2814 ecx = esi + 0x20; /* 0x46002DFB: lea ecx, [esi + 0x20] */ 2815 RECOMP_ICALL(0x46001CAEu); /* 0x46002DFE: call 0x46001cae */ /* not lifted */ 2816 RECOMP_FLAGS_IN(); 2817 ecx = MEM32(ebp + (-0xC)); /* 0x46002E03: mov ecx, dword ptr [ebp - 0xc] */ 2818 esi = POP32_VAL(esp); /* 0x46002E06: pop esi */ 2819 MEM32(FS_BASE + (0)) = ecx; /* 0x46002E07: mov dword ptr fs:[0], ecx */ 2820 esp = ebp; ebp = POP32_VAL(esp); /* 0x46002E0E: leave */ 2821 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002E0F: ret */ 2822 L_46002E10: 2823 ecx = esi; /* 0x46002E10: mov ecx, esi */ 2824 RECOMP_ICALL(0x46002F83u); /* 0x46002E12: call 0x46002f83 */ /* not lifted */ 2825 RECOMP_FLAGS_IN(); 2826 RECOMP_BACKEDGE(); 2827 goto L_46002DFB; /* 0x46002E17: jmp 0x46002dfb */ 2828 L_4602937B: 2829 eax = MEM32(ebp + (-0x10)); /* 0x4602937B: mov eax, dword ptr [ebp - 0x10] */ 2830 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2831 eax = eax & 1; /* 0x4602937E: and eax, 1 */ 2832 _cf = 0; 2833 _flag_k = FK_TEST; 2834 /* test eax, eax */ /* 0x46029381: test eax, eax */ 2835 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2836 _cf = 0; 2837 _flag_k = FK_TEST; 2838 if (TEST_Z(_flag_a, _flag_b)) goto L_46029390; /* 0x46029383: je 0x46029390 */ 2839 L_46029385: 2840 ecx = MEM32(ebp + (-0x14)); /* 0x46029385: mov ecx, dword ptr [ebp - 0x14] */ 2841 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x50u); 2842 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2843 ecx = ecx + 0x50u; /* 0x46029388: add ecx, 0x50 */ 2844 _flag_k = FK_ADD; 2845 RECOMP_BACKEDGE(); 2846 goto L_46002DA4; /* 0x4602938B: jmp 0x46002da4 */ 2847 L_46029390: 2848 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46029390: ret */ 2849 RECOMP_REGS_OUT(); 2850 } 2851 2852 void sub_46029391(void) { 2853 int _fpu_cmp = 0; 2854 uint32_t _cf = 0; 2855 int _df = 1; 2856 uint32_t _flag_k = FK_NONE; 2857 uint32_t _flag_a = 0, _flag_b = 0; 2858 uint32_t _itail_tgt = 0; 2859 RECOMP_REGS_LOCALS 2860 RECOMP_ENTER(0x46029391u); 2861 2862 goto L_46029391; 2863 L_46028532: 2864 eax = MEM32(ecx + (-0x4)); /* 0x46028532: mov eax, dword ptr [ecx - 4] */ 2865 eax = MEM32(eax + 0x4); /* 0x46028535: mov eax, dword ptr [eax + 4] */ 2866 MEM32(eax + ecx + (-0x4)) = 0x4602B6A8u; /* 0x46028538: mov dword ptr [eax + ecx - 4], 0x4602b6a8 */ 2867 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46028540: ret */ 2868 L_46029391: 2869 ecx = MEM32(ebp + (-0x14)); /* 0x46029391: mov ecx, dword ptr [ebp - 0x14] */ 2870 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 2871 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2872 ecx = ecx + 4; /* 0x46029394: add ecx, 4 */ 2873 _flag_k = FK_ADD; 2874 RECOMP_BACKEDGE(); 2875 goto L_46028532; /* 0x46029397: jmp 0x46028532 */ 2876 { RECOMP_REGS_OUT(); return; } /* end of function */ 2877 RECOMP_REGS_OUT(); 2878 } 2879 2880 void sub_4602939C(void) { 2881 int _fpu_cmp = 0; 2882 uint32_t _cf = 0; 2883 int _df = 1; 2884 uint32_t _flag_k = FK_NONE; 2885 uint32_t _flag_a = 0, _flag_b = 0; 2886 uint32_t _itail_tgt = 0; 2887 RECOMP_REGS_LOCALS 2888 RECOMP_ENTER(0x4602939Cu); 2889 2890 goto L_4602939C; 2891 L_46028258: 2892 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 2893 L_4602939C: 2894 eax = 0x46030E08u; /* 0x4602939C: mov eax, 0x46030e08 */ 2895 L_460293A1: 2896 RECOMP_BACKEDGE(); 2897 goto L_46028258; /* 0x460293A1: jmp 0x46028258 */ 2898 { RECOMP_REGS_OUT(); return; } /* end of function */ 2899 _ljump: 2900 switch (_itail_tgt) { 2901 case 0x46028258u: goto L_46028258; 2902 case 0x4602939Cu: goto L_4602939C; 2903 case 0x460293A1u: goto L_460293A1; 2904 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2905 } 2906 RECOMP_REGS_OUT(); 2907 } 2908 2909 void sub_460293A6(void) { 2910 int _fpu_cmp = 0; 2911 uint32_t _cf = 0; 2912 int _df = 1; 2913 uint32_t _flag_k = FK_NONE; 2914 uint32_t _flag_a = 0, _flag_b = 0; 2915 uint32_t _itail_tgt = 0; 2916 RECOMP_REGS_LOCALS 2917 RECOMP_ENTER(0x460293A6u); 2918 2919 goto L_460293A6; 2920 L_46002DA4: 2921 MEM32(ecx) = 0x4602B5E8u; /* 0x46002DA4: mov dword ptr [ecx], 0x4602b5e8 */ 2922 goto L_46002DC7; /* 0x46002DAA: jmp 0x46002dc7 */ 2923 L_46002DC7: 2924 eax = 0x4602A7C7u; /* 0x46002DC7: mov eax, 0x4602a7c7 */ 2925 RECOMP_ICALL(0x46001535u); /* 0x46002DCC: call 0x46001535 */ /* not lifted */ 2926 RECOMP_FLAGS_IN(); 2927 PUSH32(esp, ecx); /* 0x46002DD1: push ecx */ 2928 PUSH32(esp, esi); /* 0x46002DD2: push esi */ 2929 esi = ecx; /* 0x46002DD3: mov esi, ecx */ 2930 MEM32(ebp + (-0x10)) = esi; /* 0x46002DD5: mov dword ptr [ebp - 0x10], esi */ 2931 MEM32(esi) = 0x4602B708u; /* 0x46002DD8: mov dword ptr [esi], 0x4602b708 */ 2932 eax = MEM32(esi + 0x24); /* 0x46002DDE: mov eax, dword ptr [esi + 0x24] */ 2933 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 2934 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46002DE1: and dword ptr [ebp - 4], 0 */ 2935 _cf = 0; 2936 _flag_k = FK_TEST; 2937 /* test eax, eax */ /* 0x46002DE5: test eax, eax */ 2938 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2939 _cf = 0; 2940 _flag_k = FK_TEST; 2941 if (TEST_Z(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DE7: jbe 0x46002e10 */ 2942 L_46002DE9: 2943 _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(1) << 24; 2944 MEM8(eax + 0x4605B2C0) = (uint8_t)(MEM8(eax + 0x4605B2C0) - 1); /* 0x46002DE9: dec byte ptr [eax + 0x4605b2c0] */ 2945 _flag_k = FK_NARROW(FK_DEC, 24); 2946 eax = MEM32(esi + 0x24); /* 0x46002DEF: mov eax, dword ptr [esi + 0x24] */ 2947 /* cmp MEM8(eax + 0x4605B2C0), 0 */ /* 0x46002DF2: cmp byte ptr [eax + 0x4605b2c0], 0 */ 2948 _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(0) << 24; 2949 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2950 _flag_k = FK_NARROW(FK_CMP, 24); 2951 if (CMP_LE(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DF9: jle 0x46002e10 */ 2952 L_46002DFB: 2953 ecx = esi + 0x20; /* 0x46002DFB: lea ecx, [esi + 0x20] */ 2954 RECOMP_ICALL(0x46001CAEu); /* 0x46002DFE: call 0x46001cae */ /* not lifted */ 2955 RECOMP_FLAGS_IN(); 2956 ecx = MEM32(ebp + (-0xC)); /* 0x46002E03: mov ecx, dword ptr [ebp - 0xc] */ 2957 esi = POP32_VAL(esp); /* 0x46002E06: pop esi */ 2958 MEM32(FS_BASE + (0)) = ecx; /* 0x46002E07: mov dword ptr fs:[0], ecx */ 2959 esp = ebp; ebp = POP32_VAL(esp); /* 0x46002E0E: leave */ 2960 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002E0F: ret */ 2961 L_46002E10: 2962 ecx = esi; /* 0x46002E10: mov ecx, esi */ 2963 RECOMP_ICALL(0x46002F83u); /* 0x46002E12: call 0x46002f83 */ /* not lifted */ 2964 RECOMP_FLAGS_IN(); 2965 RECOMP_BACKEDGE(); 2966 goto L_46002DFB; /* 0x46002E17: jmp 0x46002dfb */ 2967 L_460293A6: 2968 eax = MEM32(ebp + (-0x10)); /* 0x460293A6: mov eax, dword ptr [ebp - 0x10] */ 2969 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2970 eax = eax & 1; /* 0x460293A9: and eax, 1 */ 2971 _cf = 0; 2972 _flag_k = FK_TEST; 2973 /* test eax, eax */ /* 0x460293AC: test eax, eax */ 2974 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2975 _cf = 0; 2976 _flag_k = FK_TEST; 2977 if (TEST_Z(_flag_a, _flag_b)) goto L_460293BB; /* 0x460293AE: je 0x460293bb */ 2978 L_460293B0: 2979 ecx = MEM32(ebp + (-0x14)); /* 0x460293B0: mov ecx, dword ptr [ebp - 0x14] */ 2980 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x50u); 2981 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2982 ecx = ecx + 0x50u; /* 0x460293B3: add ecx, 0x50 */ 2983 _flag_k = FK_ADD; 2984 RECOMP_BACKEDGE(); 2985 goto L_46002DA4; /* 0x460293B6: jmp 0x46002da4 */ 2986 L_460293BB: 2987 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460293BB: ret */ 2988 RECOMP_REGS_OUT(); 2989 } 2990 2991 void sub_460293BC(void) { 2992 int _fpu_cmp = 0; 2993 uint32_t _cf = 0; 2994 int _df = 1; 2995 uint32_t _flag_k = FK_NONE; 2996 uint32_t _flag_a = 0, _flag_b = 0; 2997 uint32_t _itail_tgt = 0; 2998 RECOMP_REGS_LOCALS 2999 RECOMP_ENTER(0x460293BCu); 3000 3001 goto L_460293BC; 3002 L_46028532: 3003 eax = MEM32(ecx + (-0x4)); /* 0x46028532: mov eax, dword ptr [ecx - 4] */ 3004 eax = MEM32(eax + 0x4); /* 0x46028535: mov eax, dword ptr [eax + 4] */ 3005 MEM32(eax + ecx + (-0x4)) = 0x4602B6A8u; /* 0x46028538: mov dword ptr [eax + ecx - 4], 0x4602b6a8 */ 3006 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46028540: ret */ 3007 L_460293BC: 3008 ecx = MEM32(ebp + (-0x14)); /* 0x460293BC: mov ecx, dword ptr [ebp - 0x14] */ 3009 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 3010 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3011 ecx = ecx + 4; /* 0x460293BF: add ecx, 4 */ 3012 _flag_k = FK_ADD; 3013 RECOMP_BACKEDGE(); 3014 goto L_46028532; /* 0x460293C2: jmp 0x46028532 */ 3015 { RECOMP_REGS_OUT(); return; } /* end of function */ 3016 RECOMP_REGS_OUT(); 3017 } 3018 3019 void sub_460293C7(void) { 3020 int _fpu_cmp = 0; 3021 uint32_t _cf = 0; 3022 int _df = 1; 3023 uint32_t _flag_k = FK_NONE; 3024 uint32_t _flag_a = 0, _flag_b = 0; 3025 uint32_t _itail_tgt = 0; 3026 RECOMP_REGS_LOCALS 3027 RECOMP_ENTER(0x460293C7u); 3028 3029 goto L_460293C7; 3030 L_46028258: 3031 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 3032 L_460293C7: 3033 eax = 0x46030E38u; /* 0x460293C7: mov eax, 0x46030e38 */ 3034 L_460293CC: 3035 RECOMP_BACKEDGE(); 3036 goto L_46028258; /* 0x460293CC: jmp 0x46028258 */ 3037 { RECOMP_REGS_OUT(); return; } /* end of function */ 3038 _ljump: 3039 switch (_itail_tgt) { 3040 case 0x46028258u: goto L_46028258; 3041 case 0x460293C7u: goto L_460293C7; 3042 case 0x460293CCu: goto L_460293CC; 3043 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3044 } 3045 RECOMP_REGS_OUT(); 3046 } 3047 3048 void sub_460293D1(void) { 3049 int _fpu_cmp = 0; 3050 uint32_t _cf = 0; 3051 int _df = 1; 3052 uint32_t _flag_k = FK_NONE; 3053 uint32_t _flag_a = 0, _flag_b = 0; 3054 uint32_t _itail_tgt = 0; 3055 RECOMP_REGS_LOCALS 3056 RECOMP_ENTER(0x460293D1u); 3057 3058 goto L_460293D1; 3059 L_46002DC1: 3060 MEM32(ecx) = 0x4602B268u; /* 0x46002DC1: mov dword ptr [ecx], 0x4602b268 */ 3061 eax = 0x4602A7C7u; /* 0x46002DC7: mov eax, 0x4602a7c7 */ 3062 RECOMP_ICALL(0x46001535u); /* 0x46002DCC: call 0x46001535 */ /* not lifted */ 3063 RECOMP_FLAGS_IN(); 3064 PUSH32(esp, ecx); /* 0x46002DD1: push ecx */ 3065 PUSH32(esp, esi); /* 0x46002DD2: push esi */ 3066 esi = ecx; /* 0x46002DD3: mov esi, ecx */ 3067 MEM32(ebp + (-0x10)) = esi; /* 0x46002DD5: mov dword ptr [ebp - 0x10], esi */ 3068 MEM32(esi) = 0x4602B708u; /* 0x46002DD8: mov dword ptr [esi], 0x4602b708 */ 3069 eax = MEM32(esi + 0x24); /* 0x46002DDE: mov eax, dword ptr [esi + 0x24] */ 3070 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 3071 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46002DE1: and dword ptr [ebp - 4], 0 */ 3072 _cf = 0; 3073 _flag_k = FK_TEST; 3074 /* test eax, eax */ /* 0x46002DE5: test eax, eax */ 3075 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3076 _cf = 0; 3077 _flag_k = FK_TEST; 3078 if (TEST_Z(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DE7: jbe 0x46002e10 */ 3079 L_46002DE9: 3080 _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(1) << 24; 3081 MEM8(eax + 0x4605B2C0) = (uint8_t)(MEM8(eax + 0x4605B2C0) - 1); /* 0x46002DE9: dec byte ptr [eax + 0x4605b2c0] */ 3082 _flag_k = FK_NARROW(FK_DEC, 24); 3083 eax = MEM32(esi + 0x24); /* 0x46002DEF: mov eax, dword ptr [esi + 0x24] */ 3084 /* cmp MEM8(eax + 0x4605B2C0), 0 */ /* 0x46002DF2: cmp byte ptr [eax + 0x4605b2c0], 0 */ 3085 _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(0) << 24; 3086 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3087 _flag_k = FK_NARROW(FK_CMP, 24); 3088 if (CMP_LE(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DF9: jle 0x46002e10 */ 3089 L_46002DFB: 3090 ecx = esi + 0x20; /* 0x46002DFB: lea ecx, [esi + 0x20] */ 3091 RECOMP_ICALL(0x46001CAEu); /* 0x46002DFE: call 0x46001cae */ /* not lifted */ 3092 RECOMP_FLAGS_IN(); 3093 ecx = MEM32(ebp + (-0xC)); /* 0x46002E03: mov ecx, dword ptr [ebp - 0xc] */ 3094 esi = POP32_VAL(esp); /* 0x46002E06: pop esi */ 3095 MEM32(FS_BASE + (0)) = ecx; /* 0x46002E07: mov dword ptr fs:[0], ecx */ 3096 esp = ebp; ebp = POP32_VAL(esp); /* 0x46002E0E: leave */ 3097 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002E0F: ret */ 3098 L_46002E10: 3099 ecx = esi; /* 0x46002E10: mov ecx, esi */ 3100 RECOMP_ICALL(0x46002F83u); /* 0x46002E12: call 0x46002f83 */ /* not lifted */ 3101 RECOMP_FLAGS_IN(); 3102 RECOMP_BACKEDGE(); 3103 goto L_46002DFB; /* 0x46002E17: jmp 0x46002dfb */ 3104 L_460293D1: 3105 eax = MEM32(ebp + (-0x10)); /* 0x460293D1: mov eax, dword ptr [ebp - 0x10] */ 3106 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3107 eax = eax & 1; /* 0x460293D4: and eax, 1 */ 3108 _cf = 0; 3109 _flag_k = FK_TEST; 3110 /* test eax, eax */ /* 0x460293D7: test eax, eax */ 3111 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3112 _cf = 0; 3113 _flag_k = FK_TEST; 3114 if (TEST_Z(_flag_a, _flag_b)) goto L_460293E6; /* 0x460293D9: je 0x460293e6 */ 3115 L_460293DB: 3116 ecx = MEM32(ebp + (-0x14)); /* 0x460293DB: mov ecx, dword ptr [ebp - 0x14] */ 3117 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x58u); 3118 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3119 ecx = ecx + 0x58u; /* 0x460293DE: add ecx, 0x58 */ 3120 _flag_k = FK_ADD; 3121 RECOMP_BACKEDGE(); 3122 goto L_46002DC1; /* 0x460293E1: jmp 0x46002dc1 */ 3123 L_460293E6: 3124 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460293E6: ret */ 3125 RECOMP_REGS_OUT(); 3126 } 3127 3128 void sub_460293E7(void) { 3129 int _fpu_cmp = 0; 3130 uint32_t _cf = 0; 3131 int _df = 1; 3132 uint32_t _flag_k = FK_NONE; 3133 uint32_t _flag_a = 0, _flag_b = 0; 3134 uint32_t _itail_tgt = 0; 3135 RECOMP_REGS_LOCALS 3136 RECOMP_ENTER(0x460293E7u); 3137 3138 goto L_460293E7; 3139 L_46028567: 3140 eax = MEM32(ecx + (-0xC)); /* 0x46028567: mov eax, dword ptr [ecx - 0xc] */ 3141 edx = ecx + (-0x4); /* 0x4602856A: lea edx, [ecx - 4] */ 3142 eax = MEM32(eax + 0x4); /* 0x4602856D: mov eax, dword ptr [eax + 4] */ 3143 MEM32(eax + ecx + (-0xC)) = 0x4602B9D4u; /* 0x46028570: mov dword ptr [eax + ecx - 0xc], 0x4602b9d4 */ 3144 eax = ecx + (-0xC); /* 0x46028578: lea eax, [ecx - 0xc] */ 3145 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 3146 _cf = (eax) != 0; 3147 eax = (uint32_t)(-(int32_t)eax); /* 0x4602857B: neg eax */ 3148 _flag_k = FK_CMP; 3149 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x4602857D: sbb eax, eax */ 3150 eax = _sc ? 0xFFFFFFFFu : 0; 3151 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 3152 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 3153 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3154 eax = eax & edx; /* 0x4602857F: and eax, edx */ 3155 _cf = 0; 3156 _flag_k = FK_TEST; 3157 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 3158 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3159 eax = eax + 4; /* 0x46028581: add eax, 4 */ 3160 _flag_k = FK_ADD; 3161 ecx = MEM32(eax + (-0x4)); /* 0x46028584: mov ecx, dword ptr [eax - 4] */ 3162 ecx = MEM32(ecx + 0x4); /* 0x46028587: mov ecx, dword ptr [ecx + 4] */ 3163 MEM32(ecx + eax + (-0x4)) = 0x4602B358u; /* 0x4602858A: mov dword ptr [ecx + eax - 4], 0x4602b358 */ 3164 eax = MEM32(edx + (-0x8)); /* 0x46028592: mov eax, dword ptr [edx - 8] */ 3165 eax = MEM32(eax + 0x4); /* 0x46028595: mov eax, dword ptr [eax + 4] */ 3166 MEM32(eax + edx + (-0x8)) = 0x4602B258u; /* 0x46028598: mov dword ptr [eax + edx - 8], 0x4602b258 */ 3167 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460285A0: ret */ 3168 L_460293E7: 3169 ecx = MEM32(ebp + (-0x14)); /* 0x460293E7: mov ecx, dword ptr [ebp - 0x14] */ 3170 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 3171 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3172 ecx = ecx + 0xCu; /* 0x460293EA: add ecx, 0xc */ 3173 _flag_k = FK_ADD; 3174 RECOMP_BACKEDGE(); 3175 goto L_46028567; /* 0x460293ED: jmp 0x46028567 */ 3176 { RECOMP_REGS_OUT(); return; } /* end of function */ 3177 RECOMP_REGS_OUT(); 3178 } 3179 3180 void sub_460293F2(void) { 3181 int _fpu_cmp = 0; 3182 uint32_t _cf = 0; 3183 int _df = 1; 3184 uint32_t _flag_k = FK_NONE; 3185 uint32_t _flag_a = 0, _flag_b = 0; 3186 uint32_t _itail_tgt = 0; 3187 RECOMP_REGS_LOCALS 3188 RECOMP_ENTER(0x460293F2u); 3189 3190 goto L_460293F2; 3191 L_46028258: 3192 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 3193 L_460293F2: 3194 eax = 0x46030E68u; /* 0x460293F2: mov eax, 0x46030e68 */ 3195 L_460293F7: 3196 RECOMP_BACKEDGE(); 3197 goto L_46028258; /* 0x460293F7: jmp 0x46028258 */ 3198 { RECOMP_REGS_OUT(); return; } /* end of function */ 3199 _ljump: 3200 switch (_itail_tgt) { 3201 case 0x46028258u: goto L_46028258; 3202 case 0x460293F2u: goto L_460293F2; 3203 case 0x460293F7u: goto L_460293F7; 3204 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3205 } 3206 RECOMP_REGS_OUT(); 3207 } 3208 3209 void sub_460293FC(void) { 3210 int _fpu_cmp = 0; 3211 uint32_t _cf = 0; 3212 int _df = 1; 3213 uint32_t _flag_k = FK_NONE; 3214 uint32_t _flag_a = 0, _flag_b = 0; 3215 uint32_t _itail_tgt = 0; 3216 RECOMP_REGS_LOCALS 3217 RECOMP_ENTER(0x460293FCu); 3218 3219 goto L_460293FC; 3220 L_46002DC1: 3221 MEM32(ecx) = 0x4602B268u; /* 0x46002DC1: mov dword ptr [ecx], 0x4602b268 */ 3222 eax = 0x4602A7C7u; /* 0x46002DC7: mov eax, 0x4602a7c7 */ 3223 RECOMP_ICALL(0x46001535u); /* 0x46002DCC: call 0x46001535 */ /* not lifted */ 3224 RECOMP_FLAGS_IN(); 3225 PUSH32(esp, ecx); /* 0x46002DD1: push ecx */ 3226 PUSH32(esp, esi); /* 0x46002DD2: push esi */ 3227 esi = ecx; /* 0x46002DD3: mov esi, ecx */ 3228 MEM32(ebp + (-0x10)) = esi; /* 0x46002DD5: mov dword ptr [ebp - 0x10], esi */ 3229 MEM32(esi) = 0x4602B708u; /* 0x46002DD8: mov dword ptr [esi], 0x4602b708 */ 3230 eax = MEM32(esi + 0x24); /* 0x46002DDE: mov eax, dword ptr [esi + 0x24] */ 3231 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 3232 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46002DE1: and dword ptr [ebp - 4], 0 */ 3233 _cf = 0; 3234 _flag_k = FK_TEST; 3235 /* test eax, eax */ /* 0x46002DE5: test eax, eax */ 3236 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3237 _cf = 0; 3238 _flag_k = FK_TEST; 3239 if (TEST_Z(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DE7: jbe 0x46002e10 */ 3240 L_46002DE9: 3241 _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(1) << 24; 3242 MEM8(eax + 0x4605B2C0) = (uint8_t)(MEM8(eax + 0x4605B2C0) - 1); /* 0x46002DE9: dec byte ptr [eax + 0x4605b2c0] */ 3243 _flag_k = FK_NARROW(FK_DEC, 24); 3244 eax = MEM32(esi + 0x24); /* 0x46002DEF: mov eax, dword ptr [esi + 0x24] */ 3245 /* cmp MEM8(eax + 0x4605B2C0), 0 */ /* 0x46002DF2: cmp byte ptr [eax + 0x4605b2c0], 0 */ 3246 _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(0) << 24; 3247 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3248 _flag_k = FK_NARROW(FK_CMP, 24); 3249 if (CMP_LE(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DF9: jle 0x46002e10 */ 3250 L_46002DFB: 3251 ecx = esi + 0x20; /* 0x46002DFB: lea ecx, [esi + 0x20] */ 3252 RECOMP_ICALL(0x46001CAEu); /* 0x46002DFE: call 0x46001cae */ /* not lifted */ 3253 RECOMP_FLAGS_IN(); 3254 ecx = MEM32(ebp + (-0xC)); /* 0x46002E03: mov ecx, dword ptr [ebp - 0xc] */ 3255 esi = POP32_VAL(esp); /* 0x46002E06: pop esi */ 3256 MEM32(FS_BASE + (0)) = ecx; /* 0x46002E07: mov dword ptr fs:[0], ecx */ 3257 esp = ebp; ebp = POP32_VAL(esp); /* 0x46002E0E: leave */ 3258 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002E0F: ret */ 3259 L_46002E10: 3260 ecx = esi; /* 0x46002E10: mov ecx, esi */ 3261 RECOMP_ICALL(0x46002F83u); /* 0x46002E12: call 0x46002f83 */ /* not lifted */ 3262 RECOMP_FLAGS_IN(); 3263 RECOMP_BACKEDGE(); 3264 goto L_46002DFB; /* 0x46002E17: jmp 0x46002dfb */ 3265 L_460293FC: 3266 eax = MEM32(ebp + (-0x10)); /* 0x460293FC: mov eax, dword ptr [ebp - 0x10] */ 3267 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3268 eax = eax & 1; /* 0x460293FF: and eax, 1 */ 3269 _cf = 0; 3270 _flag_k = FK_TEST; 3271 /* test eax, eax */ /* 0x46029402: test eax, eax */ 3272 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3273 _cf = 0; 3274 _flag_k = FK_TEST; 3275 if (TEST_Z(_flag_a, _flag_b)) goto L_46029411; /* 0x46029404: je 0x46029411 */ 3276 L_46029406: 3277 ecx = MEM32(ebp + (-0x14)); /* 0x46029406: mov ecx, dword ptr [ebp - 0x14] */ 3278 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x58u); 3279 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3280 ecx = ecx + 0x58u; /* 0x46029409: add ecx, 0x58 */ 3281 _flag_k = FK_ADD; 3282 RECOMP_BACKEDGE(); 3283 goto L_46002DC1; /* 0x4602940C: jmp 0x46002dc1 */ 3284 L_46029411: 3285 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46029411: ret */ 3286 RECOMP_REGS_OUT(); 3287 } 3288 3289 void sub_46029412(void) { 3290 int _fpu_cmp = 0; 3291 uint32_t _cf = 0; 3292 int _df = 1; 3293 uint32_t _flag_k = FK_NONE; 3294 uint32_t _flag_a = 0, _flag_b = 0; 3295 uint32_t _itail_tgt = 0; 3296 RECOMP_REGS_LOCALS 3297 RECOMP_ENTER(0x46029412u); 3298 3299 goto L_46029412; 3300 L_46028567: 3301 eax = MEM32(ecx + (-0xC)); /* 0x46028567: mov eax, dword ptr [ecx - 0xc] */ 3302 edx = ecx + (-0x4); /* 0x4602856A: lea edx, [ecx - 4] */ 3303 eax = MEM32(eax + 0x4); /* 0x4602856D: mov eax, dword ptr [eax + 4] */ 3304 MEM32(eax + ecx + (-0xC)) = 0x4602B9D4u; /* 0x46028570: mov dword ptr [eax + ecx - 0xc], 0x4602b9d4 */ 3305 eax = ecx + (-0xC); /* 0x46028578: lea eax, [ecx - 0xc] */ 3306 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 3307 _cf = (eax) != 0; 3308 eax = (uint32_t)(-(int32_t)eax); /* 0x4602857B: neg eax */ 3309 _flag_k = FK_CMP; 3310 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x4602857D: sbb eax, eax */ 3311 eax = _sc ? 0xFFFFFFFFu : 0; 3312 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 3313 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 3314 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3315 eax = eax & edx; /* 0x4602857F: and eax, edx */ 3316 _cf = 0; 3317 _flag_k = FK_TEST; 3318 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 3319 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3320 eax = eax + 4; /* 0x46028581: add eax, 4 */ 3321 _flag_k = FK_ADD; 3322 ecx = MEM32(eax + (-0x4)); /* 0x46028584: mov ecx, dword ptr [eax - 4] */ 3323 ecx = MEM32(ecx + 0x4); /* 0x46028587: mov ecx, dword ptr [ecx + 4] */ 3324 MEM32(ecx + eax + (-0x4)) = 0x4602B358u; /* 0x4602858A: mov dword ptr [ecx + eax - 4], 0x4602b358 */ 3325 eax = MEM32(edx + (-0x8)); /* 0x46028592: mov eax, dword ptr [edx - 8] */ 3326 eax = MEM32(eax + 0x4); /* 0x46028595: mov eax, dword ptr [eax + 4] */ 3327 MEM32(eax + edx + (-0x8)) = 0x4602B258u; /* 0x46028598: mov dword ptr [eax + edx - 8], 0x4602b258 */ 3328 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460285A0: ret */ 3329 L_46029412: 3330 ecx = MEM32(ebp + (-0x14)); /* 0x46029412: mov ecx, dword ptr [ebp - 0x14] */ 3331 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 3332 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3333 ecx = ecx + 0xCu; /* 0x46029415: add ecx, 0xc */ 3334 _flag_k = FK_ADD; 3335 RECOMP_BACKEDGE(); 3336 goto L_46028567; /* 0x46029418: jmp 0x46028567 */ 3337 { RECOMP_REGS_OUT(); return; } /* end of function */ 3338 RECOMP_REGS_OUT(); 3339 } 3340 3341 void sub_4602941D(void) { 3342 int _fpu_cmp = 0; 3343 uint32_t _cf = 0; 3344 int _df = 1; 3345 uint32_t _flag_k = FK_NONE; 3346 uint32_t _flag_a = 0, _flag_b = 0; 3347 uint32_t _itail_tgt = 0; 3348 RECOMP_REGS_LOCALS 3349 RECOMP_ENTER(0x4602941Du); 3350 3351 goto L_4602941D; 3352 L_46028258: 3353 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 3354 L_4602941D: 3355 eax = 0x46030E98u; /* 0x4602941D: mov eax, 0x46030e98 */ 3356 L_46029422: 3357 RECOMP_BACKEDGE(); 3358 goto L_46028258; /* 0x46029422: jmp 0x46028258 */ 3359 { RECOMP_REGS_OUT(); return; } /* end of function */ 3360 _ljump: 3361 switch (_itail_tgt) { 3362 case 0x46028258u: goto L_46028258; 3363 case 0x4602941Du: goto L_4602941D; 3364 case 0x46029422u: goto L_46029422; 3365 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3366 } 3367 RECOMP_REGS_OUT(); 3368 } 3369 3370 void sub_46029427(void) { 3371 int _fpu_cmp = 0; 3372 uint32_t _cf = 0; 3373 int _df = 1; 3374 uint32_t _flag_k = FK_NONE; 3375 uint32_t _flag_a = 0, _flag_b = 0; 3376 uint32_t _itail_tgt = 0; 3377 RECOMP_REGS_LOCALS 3378 RECOMP_ENTER(0x46029427u); 3379 3380 goto L_46029427; 3381 L_46002DA4: 3382 MEM32(ecx) = 0x4602B5E8u; /* 0x46002DA4: mov dword ptr [ecx], 0x4602b5e8 */ 3383 goto L_46002DC7; /* 0x46002DAA: jmp 0x46002dc7 */ 3384 L_46002DC7: 3385 eax = 0x4602A7C7u; /* 0x46002DC7: mov eax, 0x4602a7c7 */ 3386 RECOMP_ICALL(0x46001535u); /* 0x46002DCC: call 0x46001535 */ /* not lifted */ 3387 RECOMP_FLAGS_IN(); 3388 PUSH32(esp, ecx); /* 0x46002DD1: push ecx */ 3389 PUSH32(esp, esi); /* 0x46002DD2: push esi */ 3390 esi = ecx; /* 0x46002DD3: mov esi, ecx */ 3391 MEM32(ebp + (-0x10)) = esi; /* 0x46002DD5: mov dword ptr [ebp - 0x10], esi */ 3392 MEM32(esi) = 0x4602B708u; /* 0x46002DD8: mov dword ptr [esi], 0x4602b708 */ 3393 eax = MEM32(esi + 0x24); /* 0x46002DDE: mov eax, dword ptr [esi + 0x24] */ 3394 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 3395 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46002DE1: and dword ptr [ebp - 4], 0 */ 3396 _cf = 0; 3397 _flag_k = FK_TEST; 3398 /* test eax, eax */ /* 0x46002DE5: test eax, eax */ 3399 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3400 _cf = 0; 3401 _flag_k = FK_TEST; 3402 if (TEST_Z(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DE7: jbe 0x46002e10 */ 3403 L_46002DE9: 3404 _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(1) << 24; 3405 MEM8(eax + 0x4605B2C0) = (uint8_t)(MEM8(eax + 0x4605B2C0) - 1); /* 0x46002DE9: dec byte ptr [eax + 0x4605b2c0] */ 3406 _flag_k = FK_NARROW(FK_DEC, 24); 3407 eax = MEM32(esi + 0x24); /* 0x46002DEF: mov eax, dword ptr [esi + 0x24] */ 3408 /* cmp MEM8(eax + 0x4605B2C0), 0 */ /* 0x46002DF2: cmp byte ptr [eax + 0x4605b2c0], 0 */ 3409 _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(0) << 24; 3410 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3411 _flag_k = FK_NARROW(FK_CMP, 24); 3412 if (CMP_LE(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DF9: jle 0x46002e10 */ 3413 L_46002DFB: 3414 ecx = esi + 0x20; /* 0x46002DFB: lea ecx, [esi + 0x20] */ 3415 RECOMP_ICALL(0x46001CAEu); /* 0x46002DFE: call 0x46001cae */ /* not lifted */ 3416 RECOMP_FLAGS_IN(); 3417 ecx = MEM32(ebp + (-0xC)); /* 0x46002E03: mov ecx, dword ptr [ebp - 0xc] */ 3418 esi = POP32_VAL(esp); /* 0x46002E06: pop esi */ 3419 MEM32(FS_BASE + (0)) = ecx; /* 0x46002E07: mov dword ptr fs:[0], ecx */ 3420 esp = ebp; ebp = POP32_VAL(esp); /* 0x46002E0E: leave */ 3421 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002E0F: ret */ 3422 L_46002E10: 3423 ecx = esi; /* 0x46002E10: mov ecx, esi */ 3424 RECOMP_ICALL(0x46002F83u); /* 0x46002E12: call 0x46002f83 */ /* not lifted */ 3425 RECOMP_FLAGS_IN(); 3426 RECOMP_BACKEDGE(); 3427 goto L_46002DFB; /* 0x46002E17: jmp 0x46002dfb */ 3428 L_46029427: 3429 eax = MEM32(ebp + (-0x10)); /* 0x46029427: mov eax, dword ptr [ebp - 0x10] */ 3430 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3431 eax = eax & 1; /* 0x4602942A: and eax, 1 */ 3432 _cf = 0; 3433 _flag_k = FK_TEST; 3434 /* test eax, eax */ /* 0x4602942D: test eax, eax */ 3435 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3436 _cf = 0; 3437 _flag_k = FK_TEST; 3438 if (TEST_Z(_flag_a, _flag_b)) goto L_4602943C; /* 0x4602942F: je 0x4602943c */ 3439 L_46029431: 3440 ecx = MEM32(ebp + (-0x14)); /* 0x46029431: mov ecx, dword ptr [ebp - 0x14] */ 3441 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x58u); 3442 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3443 ecx = ecx + 0x58u; /* 0x46029434: add ecx, 0x58 */ 3444 _flag_k = FK_ADD; 3445 RECOMP_BACKEDGE(); 3446 goto L_46002DA4; /* 0x46029437: jmp 0x46002da4 */ 3447 L_4602943C: 3448 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4602943C: ret */ 3449 RECOMP_REGS_OUT(); 3450 } 3451 3452 void sub_4602943D(void) { 3453 int _fpu_cmp = 0; 3454 uint32_t _cf = 0; 3455 int _df = 1; 3456 uint32_t _flag_k = FK_NONE; 3457 uint32_t _flag_a = 0, _flag_b = 0; 3458 uint32_t _itail_tgt = 0; 3459 RECOMP_REGS_LOCALS 3460 RECOMP_ENTER(0x4602943Du); 3461 3462 goto L_4602943D; 3463 L_460285C7: 3464 eax = MEM32(ecx + (-0xC)); /* 0x460285C7: mov eax, dword ptr [ecx - 0xc] */ 3465 edx = ecx + (-0x4); /* 0x460285CA: lea edx, [ecx - 4] */ 3466 eax = MEM32(eax + 0x4); /* 0x460285CD: mov eax, dword ptr [eax + 4] */ 3467 MEM32(eax + ecx + (-0xC)) = 0x4602B9ECu; /* 0x460285D0: mov dword ptr [eax + ecx - 0xc], 0x4602b9ec */ 3468 eax = ecx + (-0xC); /* 0x460285D8: lea eax, [ecx - 0xc] */ 3469 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 3470 _cf = (eax) != 0; 3471 eax = (uint32_t)(-(int32_t)eax); /* 0x460285DB: neg eax */ 3472 _flag_k = FK_CMP; 3473 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x460285DD: sbb eax, eax */ 3474 eax = _sc ? 0xFFFFFFFFu : 0; 3475 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 3476 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 3477 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3478 eax = eax & edx; /* 0x460285DF: and eax, edx */ 3479 _cf = 0; 3480 _flag_k = FK_TEST; 3481 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 3482 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3483 eax = eax + 4; /* 0x460285E1: add eax, 4 */ 3484 _flag_k = FK_ADD; 3485 ecx = MEM32(eax + (-0x4)); /* 0x460285E4: mov ecx, dword ptr [eax - 4] */ 3486 ecx = MEM32(ecx + 0x4); /* 0x460285E7: mov ecx, dword ptr [ecx + 4] */ 3487 MEM32(ecx + eax + (-0x4)) = 0x4602B6A8u; /* 0x460285EA: mov dword ptr [ecx + eax - 4], 0x4602b6a8 */ 3488 eax = MEM32(edx + (-0x8)); /* 0x460285F2: mov eax, dword ptr [edx - 8] */ 3489 eax = MEM32(eax + 0x4); /* 0x460285F5: mov eax, dword ptr [eax + 4] */ 3490 MEM32(eax + edx + (-0x8)) = 0x4602B5D8u; /* 0x460285F8: mov dword ptr [eax + edx - 8], 0x4602b5d8 */ 3491 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46028600: ret */ 3492 L_4602943D: 3493 ecx = MEM32(ebp + (-0x14)); /* 0x4602943D: mov ecx, dword ptr [ebp - 0x14] */ 3494 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 3495 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3496 ecx = ecx + 0xCu; /* 0x46029440: add ecx, 0xc */ 3497 _flag_k = FK_ADD; 3498 RECOMP_BACKEDGE(); 3499 goto L_460285C7; /* 0x46029443: jmp 0x460285c7 */ 3500 { RECOMP_REGS_OUT(); return; } /* end of function */ 3501 RECOMP_REGS_OUT(); 3502 } 3503 3504 void sub_46029448(void) { 3505 int _fpu_cmp = 0; 3506 uint32_t _cf = 0; 3507 int _df = 1; 3508 uint32_t _flag_k = FK_NONE; 3509 uint32_t _flag_a = 0, _flag_b = 0; 3510 uint32_t _itail_tgt = 0; 3511 RECOMP_REGS_LOCALS 3512 RECOMP_ENTER(0x46029448u); 3513 3514 goto L_46029448; 3515 L_46028258: 3516 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 3517 L_46029448: 3518 eax = 0x46030EC8u; /* 0x46029448: mov eax, 0x46030ec8 */ 3519 L_4602944D: 3520 RECOMP_BACKEDGE(); 3521 goto L_46028258; /* 0x4602944D: jmp 0x46028258 */ 3522 { RECOMP_REGS_OUT(); return; } /* end of function */ 3523 _ljump: 3524 switch (_itail_tgt) { 3525 case 0x46028258u: goto L_46028258; 3526 case 0x46029448u: goto L_46029448; 3527 case 0x4602944Du: goto L_4602944D; 3528 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3529 } 3530 RECOMP_REGS_OUT(); 3531 } 3532 3533 void sub_46029452(void) { 3534 int _fpu_cmp = 0; 3535 uint32_t _cf = 0; 3536 int _df = 1; 3537 uint32_t _flag_k = FK_NONE; 3538 uint32_t _flag_a = 0, _flag_b = 0; 3539 uint32_t _itail_tgt = 0; 3540 RECOMP_REGS_LOCALS 3541 RECOMP_ENTER(0x46029452u); 3542 3543 goto L_46029452; 3544 L_46002DA4: 3545 MEM32(ecx) = 0x4602B5E8u; /* 0x46002DA4: mov dword ptr [ecx], 0x4602b5e8 */ 3546 goto L_46002DC7; /* 0x46002DAA: jmp 0x46002dc7 */ 3547 L_46002DC7: 3548 eax = 0x4602A7C7u; /* 0x46002DC7: mov eax, 0x4602a7c7 */ 3549 RECOMP_ICALL(0x46001535u); /* 0x46002DCC: call 0x46001535 */ /* not lifted */ 3550 RECOMP_FLAGS_IN(); 3551 PUSH32(esp, ecx); /* 0x46002DD1: push ecx */ 3552 PUSH32(esp, esi); /* 0x46002DD2: push esi */ 3553 esi = ecx; /* 0x46002DD3: mov esi, ecx */ 3554 MEM32(ebp + (-0x10)) = esi; /* 0x46002DD5: mov dword ptr [ebp - 0x10], esi */ 3555 MEM32(esi) = 0x4602B708u; /* 0x46002DD8: mov dword ptr [esi], 0x4602b708 */ 3556 eax = MEM32(esi + 0x24); /* 0x46002DDE: mov eax, dword ptr [esi + 0x24] */ 3557 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 3558 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46002DE1: and dword ptr [ebp - 4], 0 */ 3559 _cf = 0; 3560 _flag_k = FK_TEST; 3561 /* test eax, eax */ /* 0x46002DE5: test eax, eax */ 3562 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3563 _cf = 0; 3564 _flag_k = FK_TEST; 3565 if (TEST_Z(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DE7: jbe 0x46002e10 */ 3566 L_46002DE9: 3567 _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(1) << 24; 3568 MEM8(eax + 0x4605B2C0) = (uint8_t)(MEM8(eax + 0x4605B2C0) - 1); /* 0x46002DE9: dec byte ptr [eax + 0x4605b2c0] */ 3569 _flag_k = FK_NARROW(FK_DEC, 24); 3570 eax = MEM32(esi + 0x24); /* 0x46002DEF: mov eax, dword ptr [esi + 0x24] */ 3571 /* cmp MEM8(eax + 0x4605B2C0), 0 */ /* 0x46002DF2: cmp byte ptr [eax + 0x4605b2c0], 0 */ 3572 _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(0) << 24; 3573 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3574 _flag_k = FK_NARROW(FK_CMP, 24); 3575 if (CMP_LE(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DF9: jle 0x46002e10 */ 3576 L_46002DFB: 3577 ecx = esi + 0x20; /* 0x46002DFB: lea ecx, [esi + 0x20] */ 3578 RECOMP_ICALL(0x46001CAEu); /* 0x46002DFE: call 0x46001cae */ /* not lifted */ 3579 RECOMP_FLAGS_IN(); 3580 ecx = MEM32(ebp + (-0xC)); /* 0x46002E03: mov ecx, dword ptr [ebp - 0xc] */ 3581 esi = POP32_VAL(esp); /* 0x46002E06: pop esi */ 3582 MEM32(FS_BASE + (0)) = ecx; /* 0x46002E07: mov dword ptr fs:[0], ecx */ 3583 esp = ebp; ebp = POP32_VAL(esp); /* 0x46002E0E: leave */ 3584 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002E0F: ret */ 3585 L_46002E10: 3586 ecx = esi; /* 0x46002E10: mov ecx, esi */ 3587 RECOMP_ICALL(0x46002F83u); /* 0x46002E12: call 0x46002f83 */ /* not lifted */ 3588 RECOMP_FLAGS_IN(); 3589 RECOMP_BACKEDGE(); 3590 goto L_46002DFB; /* 0x46002E17: jmp 0x46002dfb */ 3591 L_46029452: 3592 eax = MEM32(ebp + (-0x10)); /* 0x46029452: mov eax, dword ptr [ebp - 0x10] */ 3593 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3594 eax = eax & 1; /* 0x46029455: and eax, 1 */ 3595 _cf = 0; 3596 _flag_k = FK_TEST; 3597 /* test eax, eax */ /* 0x46029458: test eax, eax */ 3598 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3599 _cf = 0; 3600 _flag_k = FK_TEST; 3601 if (TEST_Z(_flag_a, _flag_b)) goto L_46029467; /* 0x4602945A: je 0x46029467 */ 3602 L_4602945C: 3603 ecx = MEM32(ebp + (-0x14)); /* 0x4602945C: mov ecx, dword ptr [ebp - 0x14] */ 3604 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x58u); 3605 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3606 ecx = ecx + 0x58u; /* 0x4602945F: add ecx, 0x58 */ 3607 _flag_k = FK_ADD; 3608 RECOMP_BACKEDGE(); 3609 goto L_46002DA4; /* 0x46029462: jmp 0x46002da4 */ 3610 L_46029467: 3611 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46029467: ret */ 3612 RECOMP_REGS_OUT(); 3613 } 3614 3615 void sub_46029468(void) { 3616 int _fpu_cmp = 0; 3617 uint32_t _cf = 0; 3618 int _df = 1; 3619 uint32_t _flag_k = FK_NONE; 3620 uint32_t _flag_a = 0, _flag_b = 0; 3621 uint32_t _itail_tgt = 0; 3622 RECOMP_REGS_LOCALS 3623 RECOMP_ENTER(0x46029468u); 3624 3625 goto L_46029468; 3626 L_460285C7: 3627 eax = MEM32(ecx + (-0xC)); /* 0x460285C7: mov eax, dword ptr [ecx - 0xc] */ 3628 edx = ecx + (-0x4); /* 0x460285CA: lea edx, [ecx - 4] */ 3629 eax = MEM32(eax + 0x4); /* 0x460285CD: mov eax, dword ptr [eax + 4] */ 3630 MEM32(eax + ecx + (-0xC)) = 0x4602B9ECu; /* 0x460285D0: mov dword ptr [eax + ecx - 0xc], 0x4602b9ec */ 3631 eax = ecx + (-0xC); /* 0x460285D8: lea eax, [ecx - 0xc] */ 3632 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 3633 _cf = (eax) != 0; 3634 eax = (uint32_t)(-(int32_t)eax); /* 0x460285DB: neg eax */ 3635 _flag_k = FK_CMP; 3636 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x460285DD: sbb eax, eax */ 3637 eax = _sc ? 0xFFFFFFFFu : 0; 3638 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 3639 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 3640 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3641 eax = eax & edx; /* 0x460285DF: and eax, edx */ 3642 _cf = 0; 3643 _flag_k = FK_TEST; 3644 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 3645 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3646 eax = eax + 4; /* 0x460285E1: add eax, 4 */ 3647 _flag_k = FK_ADD; 3648 ecx = MEM32(eax + (-0x4)); /* 0x460285E4: mov ecx, dword ptr [eax - 4] */ 3649 ecx = MEM32(ecx + 0x4); /* 0x460285E7: mov ecx, dword ptr [ecx + 4] */ 3650 MEM32(ecx + eax + (-0x4)) = 0x4602B6A8u; /* 0x460285EA: mov dword ptr [ecx + eax - 4], 0x4602b6a8 */ 3651 eax = MEM32(edx + (-0x8)); /* 0x460285F2: mov eax, dword ptr [edx - 8] */ 3652 eax = MEM32(eax + 0x4); /* 0x460285F5: mov eax, dword ptr [eax + 4] */ 3653 MEM32(eax + edx + (-0x8)) = 0x4602B5D8u; /* 0x460285F8: mov dword ptr [eax + edx - 8], 0x4602b5d8 */ 3654 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46028600: ret */ 3655 L_46029468: 3656 ecx = MEM32(ebp + (-0x14)); /* 0x46029468: mov ecx, dword ptr [ebp - 0x14] */ 3657 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 3658 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3659 ecx = ecx + 0xCu; /* 0x4602946B: add ecx, 0xc */ 3660 _flag_k = FK_ADD; 3661 RECOMP_BACKEDGE(); 3662 goto L_460285C7; /* 0x4602946E: jmp 0x460285c7 */ 3663 { RECOMP_REGS_OUT(); return; } /* end of function */ 3664 RECOMP_REGS_OUT(); 3665 } 3666 3667 void sub_46029473(void) { 3668 int _fpu_cmp = 0; 3669 uint32_t _cf = 0; 3670 int _df = 1; 3671 uint32_t _flag_k = FK_NONE; 3672 uint32_t _flag_a = 0, _flag_b = 0; 3673 uint32_t _itail_tgt = 0; 3674 RECOMP_REGS_LOCALS 3675 RECOMP_ENTER(0x46029473u); 3676 3677 goto L_46029473; 3678 L_46028258: 3679 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 3680 L_46029473: 3681 eax = 0x46030EF8u; /* 0x46029473: mov eax, 0x46030ef8 */ 3682 L_46029478: 3683 RECOMP_BACKEDGE(); 3684 goto L_46028258; /* 0x46029478: jmp 0x46028258 */ 3685 { RECOMP_REGS_OUT(); return; } /* end of function */ 3686 _ljump: 3687 switch (_itail_tgt) { 3688 case 0x46028258u: goto L_46028258; 3689 case 0x46029473u: goto L_46029473; 3690 case 0x46029478u: goto L_46029478; 3691 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3692 } 3693 RECOMP_REGS_OUT(); 3694 } 3695 3696 void sub_4602947D(void) { 3697 int _fpu_cmp = 0; 3698 uint32_t _cf = 0; 3699 int _df = 1; 3700 uint32_t _flag_k = FK_NONE; 3701 uint32_t _flag_a = 0, _flag_b = 0; 3702 uint32_t _itail_tgt = 0; 3703 RECOMP_REGS_LOCALS 3704 RECOMP_ENTER(0x4602947Du); 3705 3706 goto L_4602947D; 3707 L_46001C9F: 3708 edx = MEM32(eax); /* 0x46001C9F: mov edx, dword ptr [eax] */ 3709 PUSH32(esp, 1); /* 0x46001CA1: push 1 */ 3710 ecx = eax; /* 0x46001CA3: mov ecx, eax */ 3711 RECOMP_ICALL(MEM32(edx)); /* 0x46001CA5: call dword ptr [edx] */ 3712 RECOMP_FLAGS_IN(); 3713 goto L_46001CBD; /* 0x46001CA7: jmp 0x46001cbd */ 3714 L_46001CAE: 3715 ecx = MEM32(ecx); /* 0x46001CAE: mov ecx, dword ptr [ecx] */ 3716 /* test ecx, ecx */ /* 0x46001CB0: test ecx, ecx */ 3717 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3718 _cf = 0; 3719 _flag_k = FK_TEST; 3720 if (TEST_Z(_flag_a, _flag_b)) goto L_46001CBD; /* 0x46001CB2: je 0x46001cbd */ 3721 L_46001CB4: 3722 RECOMP_ICALL(0x46001CBEu); /* 0x46001CB4: call 0x46001cbe */ /* not lifted */ 3723 RECOMP_FLAGS_IN(); 3724 /* test eax, eax */ /* 0x46001CB9: test eax, eax */ 3725 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3726 _cf = 0; 3727 _flag_k = FK_TEST; 3728 RECOMP_BACKEDGE(); 3729 if (TEST_NZ(_flag_a, _flag_b)) goto L_46001C9F; /* 0x46001CBB: jne 0x46001c9f */ 3730 L_46001CBD: 3731 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46001CBD: ret */ 3732 L_4602860E: 3733 MEM32(ecx) = 0x4602B3B8u; /* 0x4602860E: mov dword ptr [ecx], 0x4602b3b8 */ 3734 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x34u); 3735 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3736 ecx = ecx + 0x34u; /* 0x46028614: add ecx, 0x34 */ 3737 _flag_k = FK_ADD; 3738 RECOMP_BACKEDGE(); 3739 goto L_46001CAE; /* 0x46028617: jmp 0x46001cae */ 3740 L_4602947D: 3741 ecx = MEM32(ebp + (-0x10)); /* 0x4602947D: mov ecx, dword ptr [ebp - 0x10] */ 3742 RECOMP_BACKEDGE(); 3743 goto L_4602860E; /* 0x46029480: jmp 0x4602860e */ 3744 { RECOMP_REGS_OUT(); return; } /* end of function */ 3745 RECOMP_REGS_OUT(); 3746 } 3747 3748 void sub_46029485(void) { 3749 int _fpu_cmp = 0; 3750 uint32_t _cf = 0; 3751 int _df = 1; 3752 uint32_t _flag_k = FK_NONE; 3753 uint32_t _flag_a = 0, _flag_b = 0; 3754 uint32_t _itail_tgt = 0; 3755 RECOMP_REGS_LOCALS 3756 RECOMP_ENTER(0x46029485u); 3757 3758 goto L_46029485; 3759 L_46001C9F: 3760 edx = MEM32(eax); /* 0x46001C9F: mov edx, dword ptr [eax] */ 3761 PUSH32(esp, 1); /* 0x46001CA1: push 1 */ 3762 ecx = eax; /* 0x46001CA3: mov ecx, eax */ 3763 RECOMP_ICALL(MEM32(edx)); /* 0x46001CA5: call dword ptr [edx] */ 3764 RECOMP_FLAGS_IN(); 3765 goto L_46001CBD; /* 0x46001CA7: jmp 0x46001cbd */ 3766 L_46001CAE: 3767 ecx = MEM32(ecx); /* 0x46001CAE: mov ecx, dword ptr [ecx] */ 3768 /* test ecx, ecx */ /* 0x46001CB0: test ecx, ecx */ 3769 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3770 _cf = 0; 3771 _flag_k = FK_TEST; 3772 if (TEST_Z(_flag_a, _flag_b)) goto L_46001CBD; /* 0x46001CB2: je 0x46001cbd */ 3773 L_46001CB4: 3774 RECOMP_ICALL(0x46001CBEu); /* 0x46001CB4: call 0x46001cbe */ /* not lifted */ 3775 RECOMP_FLAGS_IN(); 3776 /* test eax, eax */ /* 0x46001CB9: test eax, eax */ 3777 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3778 _cf = 0; 3779 _flag_k = FK_TEST; 3780 RECOMP_BACKEDGE(); 3781 if (TEST_NZ(_flag_a, _flag_b)) goto L_46001C9F; /* 0x46001CBB: jne 0x46001c9f */ 3782 L_46001CBD: 3783 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46001CBD: ret */ 3784 L_46029485: 3785 ecx = MEM32(ebp + (-0x10)); /* 0x46029485: mov ecx, dword ptr [ebp - 0x10] */ 3786 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x4Cu); 3787 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3788 ecx = ecx + 0x4Cu; /* 0x46029488: add ecx, 0x4c */ 3789 _flag_k = FK_ADD; 3790 RECOMP_BACKEDGE(); 3791 goto L_46001CAE; /* 0x4602948B: jmp 0x46001cae */ 3792 { RECOMP_REGS_OUT(); return; } /* end of function */ 3793 RECOMP_REGS_OUT(); 3794 } 3795 3796 void sub_46029490(void) { 3797 int _fpu_cmp = 0; 3798 uint32_t _cf = 0; 3799 int _df = 1; 3800 uint32_t _flag_k = FK_NONE; 3801 uint32_t _flag_a = 0, _flag_b = 0; 3802 uint32_t _itail_tgt = 0; 3803 RECOMP_REGS_LOCALS 3804 RECOMP_ENTER(0x46029490u); 3805 3806 goto L_46029490; 3807 L_46028258: 3808 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 3809 L_46029490: 3810 eax = 0x46030F28u; /* 0x46029490: mov eax, 0x46030f28 */ 3811 L_46029495: 3812 RECOMP_BACKEDGE(); 3813 goto L_46028258; /* 0x46029495: jmp 0x46028258 */ 3814 { RECOMP_REGS_OUT(); return; } /* end of function */ 3815 _ljump: 3816 switch (_itail_tgt) { 3817 case 0x46028258u: goto L_46028258; 3818 case 0x46029490u: goto L_46029490; 3819 case 0x46029495u: goto L_46029495; 3820 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3821 } 3822 RECOMP_REGS_OUT(); 3823 } 3824 3825 void sub_4602949A(void) { 3826 int _fpu_cmp = 0; 3827 uint32_t _cf = 0; 3828 int _df = 1; 3829 uint32_t _flag_k = FK_NONE; 3830 uint32_t _flag_a = 0, _flag_b = 0; 3831 uint32_t _itail_tgt = 0; 3832 RECOMP_REGS_LOCALS 3833 RECOMP_ENTER(0x4602949Au); 3834 3835 goto L_4602949A; 3836 L_46001C9F: 3837 edx = MEM32(eax); /* 0x46001C9F: mov edx, dword ptr [eax] */ 3838 PUSH32(esp, 1); /* 0x46001CA1: push 1 */ 3839 ecx = eax; /* 0x46001CA3: mov ecx, eax */ 3840 RECOMP_ICALL(MEM32(edx)); /* 0x46001CA5: call dword ptr [edx] */ 3841 RECOMP_FLAGS_IN(); 3842 goto L_46001CBD; /* 0x46001CA7: jmp 0x46001cbd */ 3843 L_46001CAE: 3844 ecx = MEM32(ecx); /* 0x46001CAE: mov ecx, dword ptr [ecx] */ 3845 /* test ecx, ecx */ /* 0x46001CB0: test ecx, ecx */ 3846 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3847 _cf = 0; 3848 _flag_k = FK_TEST; 3849 if (TEST_Z(_flag_a, _flag_b)) goto L_46001CBD; /* 0x46001CB2: je 0x46001cbd */ 3850 L_46001CB4: 3851 RECOMP_ICALL(0x46001CBEu); /* 0x46001CB4: call 0x46001cbe */ /* not lifted */ 3852 RECOMP_FLAGS_IN(); 3853 /* test eax, eax */ /* 0x46001CB9: test eax, eax */ 3854 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3855 _cf = 0; 3856 _flag_k = FK_TEST; 3857 RECOMP_BACKEDGE(); 3858 if (TEST_NZ(_flag_a, _flag_b)) goto L_46001C9F; /* 0x46001CBB: jne 0x46001c9f */ 3859 L_46001CBD: 3860 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46001CBD: ret */ 3861 L_4602860E: 3862 MEM32(ecx) = 0x4602B3B8u; /* 0x4602860E: mov dword ptr [ecx], 0x4602b3b8 */ 3863 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x34u); 3864 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3865 ecx = ecx + 0x34u; /* 0x46028614: add ecx, 0x34 */ 3866 _flag_k = FK_ADD; 3867 RECOMP_BACKEDGE(); 3868 goto L_46001CAE; /* 0x46028617: jmp 0x46001cae */ 3869 L_4602949A: 3870 ecx = MEM32(ebp + (-0x10)); /* 0x4602949A: mov ecx, dword ptr [ebp - 0x10] */ 3871 RECOMP_BACKEDGE(); 3872 goto L_4602860E; /* 0x4602949D: jmp 0x4602860e */ 3873 { RECOMP_REGS_OUT(); return; } /* end of function */ 3874 RECOMP_REGS_OUT(); 3875 } 3876 3877 void sub_460294A2(void) { 3878 int _fpu_cmp = 0; 3879 uint32_t _cf = 0; 3880 int _df = 1; 3881 uint32_t _flag_k = FK_NONE; 3882 uint32_t _flag_a = 0, _flag_b = 0; 3883 uint32_t _itail_tgt = 0; 3884 RECOMP_REGS_LOCALS 3885 RECOMP_ENTER(0x460294A2u); 3886 3887 goto L_460294A2; 3888 L_46001C9F: 3889 edx = MEM32(eax); /* 0x46001C9F: mov edx, dword ptr [eax] */ 3890 PUSH32(esp, 1); /* 0x46001CA1: push 1 */ 3891 ecx = eax; /* 0x46001CA3: mov ecx, eax */ 3892 RECOMP_ICALL(MEM32(edx)); /* 0x46001CA5: call dword ptr [edx] */ 3893 RECOMP_FLAGS_IN(); 3894 goto L_46001CBD; /* 0x46001CA7: jmp 0x46001cbd */ 3895 L_46001CAE: 3896 ecx = MEM32(ecx); /* 0x46001CAE: mov ecx, dword ptr [ecx] */ 3897 /* test ecx, ecx */ /* 0x46001CB0: test ecx, ecx */ 3898 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3899 _cf = 0; 3900 _flag_k = FK_TEST; 3901 if (TEST_Z(_flag_a, _flag_b)) goto L_46001CBD; /* 0x46001CB2: je 0x46001cbd */ 3902 L_46001CB4: 3903 RECOMP_ICALL(0x46001CBEu); /* 0x46001CB4: call 0x46001cbe */ /* not lifted */ 3904 RECOMP_FLAGS_IN(); 3905 /* test eax, eax */ /* 0x46001CB9: test eax, eax */ 3906 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3907 _cf = 0; 3908 _flag_k = FK_TEST; 3909 RECOMP_BACKEDGE(); 3910 if (TEST_NZ(_flag_a, _flag_b)) goto L_46001C9F; /* 0x46001CBB: jne 0x46001c9f */ 3911 L_46001CBD: 3912 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46001CBD: ret */ 3913 L_460294A2: 3914 ecx = MEM32(ebp + (-0x10)); /* 0x460294A2: mov ecx, dword ptr [ebp - 0x10] */ 3915 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x4Cu); 3916 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3917 ecx = ecx + 0x4Cu; /* 0x460294A5: add ecx, 0x4c */ 3918 _flag_k = FK_ADD; 3919 RECOMP_BACKEDGE(); 3920 goto L_46001CAE; /* 0x460294A8: jmp 0x46001cae */ 3921 { RECOMP_REGS_OUT(); return; } /* end of function */ 3922 RECOMP_REGS_OUT(); 3923 } 3924 3925 void sub_460294AD(void) { 3926 int _fpu_cmp = 0; 3927 uint32_t _cf = 0; 3928 int _df = 1; 3929 uint32_t _flag_k = FK_NONE; 3930 uint32_t _flag_a = 0, _flag_b = 0; 3931 uint32_t _itail_tgt = 0; 3932 RECOMP_REGS_LOCALS 3933 RECOMP_ENTER(0x460294ADu); 3934 3935 goto L_460294AD; 3936 L_46028258: 3937 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 3938 L_460294AD: 3939 eax = 0x46030F58u; /* 0x460294AD: mov eax, 0x46030f58 */ 3940 L_460294B2: 3941 RECOMP_BACKEDGE(); 3942 goto L_46028258; /* 0x460294B2: jmp 0x46028258 */ 3943 { RECOMP_REGS_OUT(); return; } /* end of function */ 3944 _ljump: 3945 switch (_itail_tgt) { 3946 case 0x46028258u: goto L_46028258; 3947 case 0x460294ADu: goto L_460294AD; 3948 case 0x460294B2u: goto L_460294B2; 3949 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3950 } 3951 RECOMP_REGS_OUT(); 3952 } 3953 3954 void sub_460294B7(void) { 3955 int _fpu_cmp = 0; 3956 uint32_t _cf = 0; 3957 int _df = 1; 3958 uint32_t _flag_k = FK_NONE; 3959 uint32_t _flag_a = 0, _flag_b = 0; 3960 uint32_t _itail_tgt = 0; 3961 RECOMP_REGS_LOCALS 3962 RECOMP_ENTER(0x460294B7u); 3963 3964 goto L_460294B7; 3965 L_46001C9F: 3966 edx = MEM32(eax); /* 0x46001C9F: mov edx, dword ptr [eax] */ 3967 PUSH32(esp, 1); /* 0x46001CA1: push 1 */ 3968 ecx = eax; /* 0x46001CA3: mov ecx, eax */ 3969 RECOMP_ICALL(MEM32(edx)); /* 0x46001CA5: call dword ptr [edx] */ 3970 RECOMP_FLAGS_IN(); 3971 goto L_46001CBD; /* 0x46001CA7: jmp 0x46001cbd */ 3972 L_46001CAE: 3973 ecx = MEM32(ecx); /* 0x46001CAE: mov ecx, dword ptr [ecx] */ 3974 /* test ecx, ecx */ /* 0x46001CB0: test ecx, ecx */ 3975 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3976 _cf = 0; 3977 _flag_k = FK_TEST; 3978 if (TEST_Z(_flag_a, _flag_b)) goto L_46001CBD; /* 0x46001CB2: je 0x46001cbd */ 3979 L_46001CB4: 3980 RECOMP_ICALL(0x46001CBEu); /* 0x46001CB4: call 0x46001cbe */ /* not lifted */ 3981 RECOMP_FLAGS_IN(); 3982 /* test eax, eax */ /* 0x46001CB9: test eax, eax */ 3983 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3984 _cf = 0; 3985 _flag_k = FK_TEST; 3986 RECOMP_BACKEDGE(); 3987 if (TEST_NZ(_flag_a, _flag_b)) goto L_46001C9F; /* 0x46001CBB: jne 0x46001c9f */ 3988 L_46001CBD: 3989 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46001CBD: ret */ 3990 L_460294B7: 3991 ecx = ebp + (-0x14); /* 0x460294B7: lea ecx, [ebp - 0x14] */ 3992 RECOMP_BACKEDGE(); 3993 goto L_46001CAE; /* 0x460294BA: jmp 0x46001cae */ 3994 { RECOMP_REGS_OUT(); return; } /* end of function */ 3995 RECOMP_REGS_OUT(); 3996 } 3997 3998 void sub_460294BF(void) { 3999 int _fpu_cmp = 0; 4000 uint32_t _cf = 0; 4001 int _df = 1; 4002 uint32_t _flag_k = FK_NONE; 4003 uint32_t _flag_a = 0, _flag_b = 0; 4004 uint32_t _itail_tgt = 0; 4005 RECOMP_REGS_LOCALS 4006 RECOMP_ENTER(0x460294BFu); 4007 4008 goto L_460294BF; 4009 L_46028258: 4010 { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; } 4011 L_460294BF: 4012 eax = 0x46030F88u; /* 0x460294BF: mov eax, 0x46030f88 */ 4013 L_460294C4: 4014 RECOMP_BACKEDGE(); 4015 goto L_46028258; /* 0x460294C4: jmp 0x46028258 */ 4016 { RECOMP_REGS_OUT(); return; } /* end of function */ 4017 _ljump: 4018 switch (_itail_tgt) { 4019 case 0x46028258u: goto L_46028258; 4020 case 0x460294BFu: goto L_460294BF; 4021 case 0x460294C4u: goto L_460294C4; 4022 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4023 } 4024 RECOMP_REGS_OUT(); 4025 } 4026 4027 void sub_460294C9(void) { 4028 int _fpu_cmp = 0; 4029 uint32_t _cf = 0; 4030 int _df = 1; 4031 uint32_t _flag_k = FK_NONE; 4032 uint32_t _flag_a = 0, _flag_b = 0; 4033 uint32_t _itail_tgt = 0; 4034 RECOMP_REGS_LOCALS 4035 RECOMP_ENTER(0x460294C9u); 4036 4037 goto L_460294C9; 4038 L_46001C9F: 4039 edx = MEM32(eax); /* 0x46001C9F: mov edx, dword ptr [eax] */ 4040 PUSH32(esp, 1); /* 0x46001CA1: push 1 */ 4041 ecx = eax; /* 0x46001CA3: mov ecx, eax */ 4042 RECOMP_ICALL(MEM32(edx)); /* 0x46001CA5: call dword ptr [edx] */ 4043 RECOMP_FLAGS_IN(); 4044 goto L_46001CBD; /* 0x46001CA7: jmp 0x46001cbd */ 4045 L_46001CAE: 4046 ecx = MEM32(ecx); /* 0x46001CAE: mov ecx, dword ptr [ecx] */ 4047 /* test ecx, ecx */ /* 0x46001CB0: test ecx, ecx */ 4048 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4049 _cf = 0; 4050 _flag_k = FK_TEST; 4051 if (TEST_Z(_flag_a, _flag_b)) goto L_46001CBD; /* 0x46001CB2: je 0x46001cbd */ 4052 L_46001CB4: 4053 RECOMP_ICALL(0x46001CBEu); /* 0x46001CB4: call 0x46001cbe */ /* not lifted */ 4054 RECOMP_FLAGS_IN(); 4055 /* test eax, eax */ /* 0x46001CB9: test eax, eax */ 4056 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4057 _cf = 0; 4058 _flag_k = FK_TEST; 4059 RECOMP_BACKEDGE(); 4060 if (TEST_NZ(_flag_a, _flag_b)) goto L_46001C9F; /* 0x46001CBB: jne 0x46001c9f */ 4061 L_46001CBD: 4062 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46001CBD: ret */ 4063 L_46028629: 4064 MEM32(ecx) = 0x4602B4D0u; /* 0x46028629: mov dword ptr [ecx], 0x4602b4d0 */ 4065 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x34u); 4066 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4067 ecx = ecx + 0x34u; /* 0x4602862F: add ecx, 0x34 */ 4068 _flag_k = FK_ADD; 4069 RECOMP_BACKEDGE(); 4070 goto L_46001CAE; /* 0x46028632: jmp 0x46001cae */ 4071 L_460294C9: 4072 ecx = MEM32(ebp + (-0x10)); /* 0x460294C9: mov ecx, dword ptr [ebp - 0x10] */ 4073 RECOMP_BACKEDGE(); 4074 goto L_46028629; /* 0x460294CC: jmp 0x46028629 */ 4075 { RECOMP_REGS_OUT(); return; } /* end of function */ 4076 RECOMP_REGS_OUT(); 4077 }