client/game/hhr.dll/lifted-0001.c (324188B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 #include <math.h> 4 #include <stdio.h> 5 #include <stdlib.h> 6 #include <string.h> 7 8 void sub_31004AD0(void) { 9 int _fpu_cmp = 0; 10 uint32_t _cf = 0; 11 int _df = 1; 12 uint32_t _flag_k = FK_NONE; 13 uint32_t _flag_a = 0, _flag_b = 0; 14 uint32_t _itail_tgt = 0; 15 RECOMP_REGS_LOCALS 16 RECOMP_ENTER(0x31004AD0u); 17 18 L_31004AD0: 19 PUSH32(esp, ebp); /* 0x31004AD0: push ebp */ 20 ebp = esp; /* 0x31004AD1: mov ebp, esp */ 21 PUSH32(esp, ebx); /* 0x31004AD3: push ebx */ 22 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x31004AD4: mov bl, byte ptr [ebp + 8] */ 23 /* test LO8(ebx), 2 */ /* 0x31004AD7: test bl, 2 */ 24 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 25 _cf = 0; 26 _flag_k = FK_NARROW(FK_TEST, 24); 27 PUSH32(esp, esi); /* 0x31004ADA: push esi */ 28 esi = ecx; /* 0x31004ADB: mov esi, ecx */ 29 if (TEST_Z(_flag_a, _flag_b)) goto L_31004B0B; /* 0x31004ADD: je 0x31004b0b */ 30 L_31004ADF: 31 eax = MEM32(esi + (-0x4)); /* 0x31004ADF: mov eax, dword ptr [esi - 4] */ 32 PUSH32(esp, edi); /* 0x31004AE2: push edi */ 33 PUSH32(esp, 0x31004B40u); /* 0x31004AE3: push 0x31004b40 */ 34 edi = esi + (-0x4); /* 0x31004AE8: lea edi, [esi - 4] */ 35 PUSH32(esp, eax); /* 0x31004AEB: push eax */ 36 PUSH32(esp, 4); /* 0x31004AEC: push 4 */ 37 PUSH32(esp, esi); /* 0x31004AEE: push esi */ 38 RECOMP_ICALL(0x310468E0u); /* 0x31004AEF: call 0x310468e0 */ /* not lifted */ 39 RECOMP_FLAGS_IN(); 40 /* test LO8(ebx), 1 */ /* 0x31004AF4: test bl, 1 */ 41 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 42 _cf = 0; 43 _flag_k = FK_NARROW(FK_TEST, 24); 44 if (TEST_Z(_flag_a, _flag_b)) goto L_31004B02; /* 0x31004AF7: je 0x31004b02 */ 45 L_31004AF9: 46 PUSH32(esp, edi); /* 0x31004AF9: push edi */ 47 RECOMP_ICALL(0x31046858u); /* 0x31004AFA: call 0x31046858 */ /* not lifted */ 48 RECOMP_FLAGS_IN(); 49 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 50 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 51 esp = esp + 4; /* 0x31004AFF: add esp, 4 */ 52 _flag_k = FK_ADD; 53 L_31004B02: 54 eax = edi; /* 0x31004B02: mov eax, edi */ 55 edi = POP32_VAL(esp); /* 0x31004B04: pop edi */ 56 esi = POP32_VAL(esp); /* 0x31004B05: pop esi */ 57 ebx = POP32_VAL(esp); /* 0x31004B06: pop ebx */ 58 ebp = POP32_VAL(esp); /* 0x31004B07: pop ebp */ 59 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31004B08: ret 4 */ 60 L_31004B0B: 61 ecx = esi; /* 0x31004B0B: mov ecx, esi */ 62 RECOMP_ICALL(0x31004B40u); /* 0x31004B0D: call 0x31004b40 */ /* not lifted */ 63 RECOMP_FLAGS_IN(); 64 /* test LO8(ebx), 1 */ /* 0x31004B12: test bl, 1 */ 65 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 66 _cf = 0; 67 _flag_k = FK_NARROW(FK_TEST, 24); 68 if (TEST_Z(_flag_a, _flag_b)) goto L_31004B20; /* 0x31004B15: je 0x31004b20 */ 69 L_31004B17: 70 PUSH32(esp, esi); /* 0x31004B17: push esi */ 71 RECOMP_ICALL(0x31046858u); /* 0x31004B18: call 0x31046858 */ /* not lifted */ 72 RECOMP_FLAGS_IN(); 73 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 74 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 75 esp = esp + 4; /* 0x31004B1D: add esp, 4 */ 76 _flag_k = FK_ADD; 77 L_31004B20: 78 eax = esi; /* 0x31004B20: mov eax, esi */ 79 esi = POP32_VAL(esp); /* 0x31004B22: pop esi */ 80 ebx = POP32_VAL(esp); /* 0x31004B23: pop ebx */ 81 ebp = POP32_VAL(esp); /* 0x31004B24: pop ebp */ 82 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31004B25: ret 4 */ 83 RECOMP_REGS_OUT(); 84 } 85 86 void sub_31004B30(void) { 87 int _fpu_cmp = 0; 88 uint32_t _cf = 0; 89 int _df = 1; 90 uint32_t _flag_k = FK_NONE; 91 uint32_t _flag_a = 0, _flag_b = 0; 92 uint32_t _itail_tgt = 0; 93 RECOMP_REGS_LOCALS 94 RECOMP_ENTER(0x31004B30u); 95 96 L_31004B30: 97 eax = ecx; /* 0x31004B30: mov eax, ecx */ 98 MEM32(eax) = 0x3104838Cu; /* 0x31004B32: mov dword ptr [eax], 0x3104838c */ 99 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31004B38: ret */ 100 RECOMP_REGS_OUT(); 101 } 102 103 void sub_31004B40(void) { 104 int _fpu_cmp = 0; 105 uint32_t _cf = 0; 106 int _df = 1; 107 uint32_t _flag_k = FK_NONE; 108 uint32_t _flag_a = 0, _flag_b = 0; 109 uint32_t _itail_tgt = 0; 110 RECOMP_REGS_LOCALS 111 RECOMP_ENTER(0x31004B40u); 112 113 L_31004B40: 114 MEM32(ecx) = 0x3104838Cu; /* 0x31004B40: mov dword ptr [ecx], 0x3104838c */ 115 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31004B46: ret */ 116 RECOMP_REGS_OUT(); 117 } 118 119 void sub_31004B50(void) { 120 int _fpu_cmp = 0; 121 uint32_t _cf = 0; 122 int _df = 1; 123 uint32_t _flag_k = FK_NONE; 124 uint32_t _flag_a = 0, _flag_b = 0; 125 uint32_t _itail_tgt = 0; 126 RECOMP_REGS_LOCALS 127 RECOMP_ENTER(0x31004B50u); 128 129 L_31004B50: 130 RECOMP_ICALL(0x31004B60u); /* 0x31004B50: call 0x31004b60 */ /* not lifted */ 131 RECOMP_FLAGS_IN(); 132 goto L_31004B70; /* 0x31004B55: jmp 0x31004b70 */ 133 L_31004B70: 134 PUSH32(esp, 0x31004B80u); /* 0x31004B70: push 0x31004b80 */ 135 RECOMP_ICALL(0x310468C8u); /* 0x31004B75: call 0x310468c8 */ /* not lifted */ 136 RECOMP_FLAGS_IN(); 137 ecx = POP32_VAL(esp); /* 0x31004B7A: pop ecx */ 138 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31004B7B: ret */ 139 RECOMP_REGS_OUT(); 140 } 141 142 void sub_31004B60(void) { 143 int _fpu_cmp = 0; 144 uint32_t _cf = 0; 145 int _df = 1; 146 uint32_t _flag_k = FK_NONE; 147 uint32_t _flag_a = 0, _flag_b = 0; 148 uint32_t _itail_tgt = 0; 149 RECOMP_REGS_LOCALS 150 RECOMP_ENTER(0x31004B60u); 151 152 L_31004B60: 153 ecx = 0x31057DA1u; /* 0x31004B60: mov ecx, 0x31057da1 */ 154 L_31004B65: 155 { _itail_tgt = (uint32_t)(MEM32(0x31048108)); goto _ljump; } 156 { RECOMP_REGS_OUT(); return; } /* end of function */ 157 _ljump: 158 switch (_itail_tgt) { 159 case 0x31004B60u: goto L_31004B60; 160 case 0x31004B65u: goto L_31004B65; 161 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 162 } 163 RECOMP_REGS_OUT(); 164 } 165 166 void sub_31004B70(void) { 167 int _fpu_cmp = 0; 168 uint32_t _cf = 0; 169 int _df = 1; 170 uint32_t _flag_k = FK_NONE; 171 uint32_t _flag_a = 0, _flag_b = 0; 172 uint32_t _itail_tgt = 0; 173 RECOMP_REGS_LOCALS 174 RECOMP_ENTER(0x31004B70u); 175 176 L_31004B70: 177 PUSH32(esp, 0x31004B80u); /* 0x31004B70: push 0x31004b80 */ 178 RECOMP_ICALL(0x310468C8u); /* 0x31004B75: call 0x310468c8 */ /* not lifted */ 179 RECOMP_FLAGS_IN(); 180 ecx = POP32_VAL(esp); /* 0x31004B7A: pop ecx */ 181 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31004B7B: ret */ 182 RECOMP_REGS_OUT(); 183 } 184 185 void sub_31004B80(void) { 186 int _fpu_cmp = 0; 187 uint32_t _cf = 0; 188 int _df = 1; 189 uint32_t _flag_k = FK_NONE; 190 uint32_t _flag_a = 0, _flag_b = 0; 191 uint32_t _itail_tgt = 0; 192 RECOMP_REGS_LOCALS 193 RECOMP_ENTER(0x31004B80u); 194 195 L_31004B80: 196 ecx = 0x31057DA1u; /* 0x31004B80: mov ecx, 0x31057da1 */ 197 L_31004B85: 198 { _itail_tgt = (uint32_t)(MEM32(0x3104807C)); goto _ljump; } 199 { RECOMP_REGS_OUT(); return; } /* end of function */ 200 _ljump: 201 switch (_itail_tgt) { 202 case 0x31004B80u: goto L_31004B80; 203 case 0x31004B85u: goto L_31004B85; 204 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 205 } 206 RECOMP_REGS_OUT(); 207 } 208 209 void sub_31004B90(void) { 210 int _fpu_cmp = 0; 211 uint32_t _cf = 0; 212 int _df = 1; 213 uint32_t _flag_k = FK_NONE; 214 uint32_t _flag_a = 0, _flag_b = 0; 215 uint32_t _itail_tgt = 0; 216 RECOMP_REGS_LOCALS 217 RECOMP_ENTER(0x31004B90u); 218 219 L_31004B90: 220 RECOMP_ICALL(0x31004BA0u); /* 0x31004B90: call 0x31004ba0 */ /* not lifted */ 221 RECOMP_FLAGS_IN(); 222 goto L_31004BB0; /* 0x31004B95: jmp 0x31004bb0 */ 223 L_31004BB0: 224 PUSH32(esp, 0x31004BC0u); /* 0x31004BB0: push 0x31004bc0 */ 225 RECOMP_ICALL(0x310468C8u); /* 0x31004BB5: call 0x310468c8 */ /* not lifted */ 226 RECOMP_FLAGS_IN(); 227 ecx = POP32_VAL(esp); /* 0x31004BBA: pop ecx */ 228 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31004BBB: ret */ 229 RECOMP_REGS_OUT(); 230 } 231 232 void sub_31004BA0(void) { 233 int _fpu_cmp = 0; 234 uint32_t _cf = 0; 235 int _df = 1; 236 uint32_t _flag_k = FK_NONE; 237 uint32_t _flag_a = 0, _flag_b = 0; 238 uint32_t _itail_tgt = 0; 239 RECOMP_REGS_LOCALS 240 RECOMP_ENTER(0x31004BA0u); 241 242 L_31004BA0: 243 ecx = 0x31057DA0u; /* 0x31004BA0: mov ecx, 0x31057da0 */ 244 L_31004BA5: 245 { _itail_tgt = (uint32_t)(MEM32(0x31048104)); goto _ljump; } 246 { RECOMP_REGS_OUT(); return; } /* end of function */ 247 _ljump: 248 switch (_itail_tgt) { 249 case 0x31004BA0u: goto L_31004BA0; 250 case 0x31004BA5u: goto L_31004BA5; 251 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 252 } 253 RECOMP_REGS_OUT(); 254 } 255 256 void sub_31004BB0(void) { 257 int _fpu_cmp = 0; 258 uint32_t _cf = 0; 259 int _df = 1; 260 uint32_t _flag_k = FK_NONE; 261 uint32_t _flag_a = 0, _flag_b = 0; 262 uint32_t _itail_tgt = 0; 263 RECOMP_REGS_LOCALS 264 RECOMP_ENTER(0x31004BB0u); 265 266 L_31004BB0: 267 PUSH32(esp, 0x31004BC0u); /* 0x31004BB0: push 0x31004bc0 */ 268 RECOMP_ICALL(0x310468C8u); /* 0x31004BB5: call 0x310468c8 */ /* not lifted */ 269 RECOMP_FLAGS_IN(); 270 ecx = POP32_VAL(esp); /* 0x31004BBA: pop ecx */ 271 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31004BBB: ret */ 272 RECOMP_REGS_OUT(); 273 } 274 275 void sub_31004BC0(void) { 276 int _fpu_cmp = 0; 277 uint32_t _cf = 0; 278 int _df = 1; 279 uint32_t _flag_k = FK_NONE; 280 uint32_t _flag_a = 0, _flag_b = 0; 281 uint32_t _itail_tgt = 0; 282 RECOMP_REGS_LOCALS 283 RECOMP_ENTER(0x31004BC0u); 284 285 L_31004BC0: 286 ecx = 0x31057DA0u; /* 0x31004BC0: mov ecx, 0x31057da0 */ 287 L_31004BC5: 288 { _itail_tgt = (uint32_t)(MEM32(0x31048080)); goto _ljump; } 289 { RECOMP_REGS_OUT(); return; } /* end of function */ 290 _ljump: 291 switch (_itail_tgt) { 292 case 0x31004BC0u: goto L_31004BC0; 293 case 0x31004BC5u: goto L_31004BC5; 294 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 295 } 296 RECOMP_REGS_OUT(); 297 } 298 299 void sub_31004BD0(void) { 300 int _fpu_cmp = 0; 301 uint32_t _cf = 0; 302 int _df = 1; 303 uint32_t _flag_k = FK_NONE; 304 uint32_t _flag_a = 0, _flag_b = 0; 305 uint32_t _itail_tgt = 0; 306 RECOMP_REGS_LOCALS 307 RECOMP_ENTER(0x31004BD0u); 308 309 L_31004BD0: 310 goto L_31004BE0; /* 0x31004BD0: jmp 0x31004be0 */ 311 L_31004BE0: 312 MEM32(0x31057D9C) = 0x31051998u; /* 0x31004BE0: mov dword ptr [0x31057d9c], 0x31051998 */ 313 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31004BEA: ret */ 314 RECOMP_REGS_OUT(); 315 } 316 317 void sub_31004BE0(void) { 318 int _fpu_cmp = 0; 319 uint32_t _cf = 0; 320 int _df = 1; 321 uint32_t _flag_k = FK_NONE; 322 uint32_t _flag_a = 0, _flag_b = 0; 323 uint32_t _itail_tgt = 0; 324 RECOMP_REGS_LOCALS 325 RECOMP_ENTER(0x31004BE0u); 326 327 L_31004BE0: 328 MEM32(0x31057D9C) = 0x31051998u; /* 0x31004BE0: mov dword ptr [0x31057d9c], 0x31051998 */ 329 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31004BEA: ret */ 330 RECOMP_REGS_OUT(); 331 } 332 333 void sub_31004BF0(void) { 334 int _fpu_cmp = 0; 335 uint32_t _cf = 0; 336 int _df = 1; 337 uint32_t _flag_k = FK_NONE; 338 uint32_t _flag_a = 0, _flag_b = 0; 339 uint32_t _itail_tgt = 0; 340 RECOMP_REGS_LOCALS 341 RECOMP_ENTER(0x31004BF0u); 342 343 L_31004BF0: 344 PUSH32(esp, ebp); /* 0x31004BF0: push ebp */ 345 ebp = esp; /* 0x31004BF1: mov ebp, esp */ 346 edx = MEM32(ebp + 0xC); /* 0x31004BF3: mov edx, dword ptr [ebp + 0xc] */ 347 eax = ecx; /* 0x31004BF6: mov eax, ecx */ 348 ecx = MEM32(ebp + 0x8); /* 0x31004BF8: mov ecx, dword ptr [ebp + 8] */ 349 MEM32(eax + 0x4) = ecx; /* 0x31004BFB: mov dword ptr [eax + 4], ecx */ 350 MEM32(eax + 0x8) = edx; /* 0x31004BFE: mov dword ptr [eax + 8], edx */ 351 edx = MEM32(ebp + 0x10); /* 0x31004C01: mov edx, dword ptr [ebp + 0x10] */ 352 ecx = 1; /* 0x31004C04: mov ecx, 1 */ 353 MEM32(eax + 0xC) = ecx; /* 0x31004C09: mov dword ptr [eax + 0xc], ecx */ 354 MEM32(eax + 0x10) = edx; /* 0x31004C0C: mov dword ptr [eax + 0x10], edx */ 355 MEM8(eax + 0x14) = (uint8_t)(0); /* 0x31004C0F: mov byte ptr [eax + 0x14], 0 */ 356 MEM8(eax + 0x15) = (uint8_t)(LO8(ecx)); /* 0x31004C13: mov byte ptr [eax + 0x15], cl */ 357 MEM32(eax) = 0x310483DCu; /* 0x31004C16: mov dword ptr [eax], 0x310483dc */ 358 ebp = POP32_VAL(esp); /* 0x31004C1C: pop ebp */ 359 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x31004C1D: ret 0xc */ 360 RECOMP_REGS_OUT(); 361 } 362 363 void sub_31004C20(void) { 364 int _fpu_cmp = 0; 365 uint32_t _cf = 0; 366 int _df = 1; 367 uint32_t _flag_k = FK_NONE; 368 uint32_t _flag_a = 0, _flag_b = 0; 369 uint32_t _itail_tgt = 0; 370 RECOMP_REGS_LOCALS 371 RECOMP_ENTER(0x31004C20u); 372 373 L_31004C20: 374 PUSH32(esp, ebp); /* 0x31004C20: push ebp */ 375 ebp = esp; /* 0x31004C21: mov ebp, esp */ 376 edx = MEM32(ebp + 0x8); /* 0x31004C23: mov edx, dword ptr [ebp + 8] */ 377 eax = ecx; /* 0x31004C26: mov eax, ecx */ 378 ecx = eax + 0x4; /* 0x31004C28: lea ecx, [eax + 4] */ 379 /* cmp ecx, edx */ /* 0x31004C2B: cmp ecx, edx */ 380 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 381 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 382 _flag_k = FK_CMP; 383 if (CMP_EQ(_flag_a, _flag_b)) goto L_31004C3B; /* 0x31004C2D: je 0x31004c3b */ 384 L_31004C2F: 385 PUSH32(esp, esi); /* 0x31004C2F: push esi */ 386 esi = MEM32(edx); /* 0x31004C30: mov esi, dword ptr [edx] */ 387 MEM32(ecx) = esi; /* 0x31004C32: mov dword ptr [ecx], esi */ 388 edx = MEM32(edx + 0x4); /* 0x31004C34: mov edx, dword ptr [edx + 4] */ 389 MEM32(ecx + 0x4) = edx; /* 0x31004C37: mov dword ptr [ecx + 4], edx */ 390 esi = POP32_VAL(esp); /* 0x31004C3A: pop esi */ 391 L_31004C3B: 392 edx = MEM32(ebp + 0xC); /* 0x31004C3B: mov edx, dword ptr [ebp + 0xc] */ 393 ecx = 1; /* 0x31004C3E: mov ecx, 1 */ 394 MEM32(eax + 0xC) = ecx; /* 0x31004C43: mov dword ptr [eax + 0xc], ecx */ 395 MEM32(eax + 0x10) = edx; /* 0x31004C46: mov dword ptr [eax + 0x10], edx */ 396 MEM8(eax + 0x14) = (uint8_t)(0); /* 0x31004C49: mov byte ptr [eax + 0x14], 0 */ 397 MEM8(eax + 0x15) = (uint8_t)(LO8(ecx)); /* 0x31004C4D: mov byte ptr [eax + 0x15], cl */ 398 MEM32(eax) = 0x310483DCu; /* 0x31004C50: mov dword ptr [eax], 0x310483dc */ 399 ebp = POP32_VAL(esp); /* 0x31004C56: pop ebp */ 400 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x31004C57: ret 8 */ 401 RECOMP_REGS_OUT(); 402 } 403 404 void sub_31004C60(void) { 405 int _fpu_cmp = 0; 406 uint32_t _cf = 0; 407 int _df = 1; 408 uint32_t _flag_k = FK_NONE; 409 uint32_t _flag_a = 0, _flag_b = 0; 410 uint32_t _itail_tgt = 0; 411 RECOMP_REGS_LOCALS 412 RECOMP_ENTER(0x31004C60u); 413 414 L_31004C60: 415 eax = MEM32(ecx + 0x4); /* 0x31004C60: mov eax, dword ptr [ecx + 4] */ 416 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31004C63: ret */ 417 RECOMP_REGS_OUT(); 418 } 419 420 void sub_31004C70(void) { 421 int _fpu_cmp = 0; 422 uint32_t _cf = 0; 423 int _df = 1; 424 uint32_t _flag_k = FK_NONE; 425 uint32_t _flag_a = 0, _flag_b = 0; 426 uint32_t _itail_tgt = 0; 427 RECOMP_REGS_LOCALS 428 RECOMP_ENTER(0x31004C70u); 429 430 L_31004C70: 431 eax = MEM32(ecx + 0x8); /* 0x31004C70: mov eax, dword ptr [ecx + 8] */ 432 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31004C73: ret */ 433 RECOMP_REGS_OUT(); 434 } 435 436 void sub_31004C80(void) { 437 int _fpu_cmp = 0; 438 uint32_t _cf = 0; 439 int _df = 1; 440 uint32_t _flag_k = FK_NONE; 441 uint32_t _flag_a = 0, _flag_b = 0; 442 uint32_t _itail_tgt = 0; 443 RECOMP_REGS_LOCALS 444 RECOMP_ENTER(0x31004C80u); 445 446 L_31004C80: 447 eax = MEM32(ecx + 0x10); /* 0x31004C80: mov eax, dword ptr [ecx + 0x10] */ 448 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31004C83: ret */ 449 RECOMP_REGS_OUT(); 450 } 451 452 void sub_31004C90(void) { 453 int _fpu_cmp = 0; 454 uint32_t _cf = 0; 455 int _df = 1; 456 uint32_t _flag_k = FK_NONE; 457 uint32_t _flag_a = 0, _flag_b = 0; 458 uint32_t _itail_tgt = 0; 459 RECOMP_REGS_LOCALS 460 RECOMP_ENTER(0x31004C90u); 461 462 L_31004C90: 463 PUSH32(esp, ebp); /* 0x31004C90: push ebp */ 464 ebp = esp; /* 0x31004C91: mov ebp, esp */ 465 eax = MEM32(ebp + 0x8); /* 0x31004C93: mov eax, dword ptr [ebp + 8] */ 466 MEM32(ecx + 0x10) = eax; /* 0x31004C96: mov dword ptr [ecx + 0x10], eax */ 467 ebp = POP32_VAL(esp); /* 0x31004C99: pop ebp */ 468 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31004C9A: ret 4 */ 469 RECOMP_REGS_OUT(); 470 } 471 472 void sub_31004CA0(void) { 473 int _fpu_cmp = 0; 474 uint32_t _cf = 0; 475 int _df = 1; 476 uint32_t _flag_k = FK_NONE; 477 uint32_t _flag_a = 0, _flag_b = 0; 478 uint32_t _itail_tgt = 0; 479 RECOMP_REGS_LOCALS 480 RECOMP_ENTER(0x31004CA0u); 481 482 L_31004CA0: 483 eax = MEM32(ecx + 0x10); /* 0x31004CA0: mov eax, dword ptr [ecx + 0x10] */ 484 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 485 eax = eax + 1; /* 0x31004CA3: inc eax */ 486 _flag_k = FK_INC; 487 MEM32(ecx + 0x10) = eax; /* 0x31004CA4: mov dword ptr [ecx + 0x10], eax */ 488 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31004CA7: ret */ 489 RECOMP_REGS_OUT(); 490 } 491 492 void sub_31004CB0(void) { 493 int _fpu_cmp = 0; 494 uint32_t _cf = 0; 495 int _df = 1; 496 uint32_t _flag_k = FK_NONE; 497 uint32_t _flag_a = 0, _flag_b = 0; 498 uint32_t _itail_tgt = 0; 499 RECOMP_REGS_LOCALS 500 RECOMP_ENTER(0x31004CB0u); 501 502 L_31004CB0: 503 eax = MEM32(ecx + 0xC); /* 0x31004CB0: mov eax, dword ptr [ecx + 0xc] */ 504 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31004CB3: ret */ 505 RECOMP_REGS_OUT(); 506 } 507 508 void sub_31004CC0(void) { 509 int _fpu_cmp = 0; 510 uint32_t _cf = 0; 511 int _df = 1; 512 uint32_t _flag_k = FK_NONE; 513 uint32_t _flag_a = 0, _flag_b = 0; 514 uint32_t _itail_tgt = 0; 515 RECOMP_REGS_LOCALS 516 RECOMP_ENTER(0x31004CC0u); 517 518 L_31004CC0: 519 _flag_a = (uint32_t)(MEM32(ecx + 0xC)); _flag_b = (uint32_t)(1); 520 MEM32(ecx + 0xC) = MEM32(ecx + 0xC) + 1; /* 0x31004CC0: inc dword ptr [ecx + 0xc] */ 521 _flag_k = FK_INC; 522 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31004CC3: ret */ 523 RECOMP_REGS_OUT(); 524 } 525 526 void sub_31004CD0(void) { 527 int _fpu_cmp = 0; 528 uint32_t _cf = 0; 529 int _df = 1; 530 uint32_t _flag_k = FK_NONE; 531 uint32_t _flag_a = 0, _flag_b = 0; 532 uint32_t _itail_tgt = 0; 533 RECOMP_REGS_LOCALS 534 RECOMP_ENTER(0x31004CD0u); 535 536 L_31004CD0: 537 PUSH32(esp, ebp); /* 0x31004CD0: push ebp */ 538 ebp = esp; /* 0x31004CD1: mov ebp, esp */ 539 eax = MEM32(ecx + 0x4); /* 0x31004CD3: mov eax, dword ptr [ecx + 4] */ 540 PUSH32(esp, esi); /* 0x31004CD6: push esi */ 541 esi = MEM32(ebp + 0x8); /* 0x31004CD7: mov esi, dword ptr [ebp + 8] */ 542 edx = MEM32(esi + 0x4); /* 0x31004CDA: mov edx, dword ptr [esi + 4] */ 543 /* cmp eax, edx */ /* 0x31004CDD: cmp eax, edx */ 544 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 545 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 546 _flag_k = FK_CMP; 547 if (CMP_NE(_flag_a, _flag_b)) goto L_31004CEF; /* 0x31004CDF: jne 0x31004cef */ 548 L_31004CE1: 549 eax = MEM32(ecx + 0x8); /* 0x31004CE1: mov eax, dword ptr [ecx + 8] */ 550 /* cmp eax, MEM32(esi + 0x8) */ /* 0x31004CE4: cmp eax, dword ptr [esi + 8] */ 551 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 552 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 553 _flag_k = FK_CMP; 554 SET_LO8(eax, (CMP_B(_flag_a, _flag_b)) ? 1 : 0); /* 0x31004CE7: setb al */ 555 esi = POP32_VAL(esp); /* 0x31004CEA: pop esi */ 556 ebp = POP32_VAL(esp); /* 0x31004CEB: pop ebp */ 557 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31004CEC: ret 4 */ 558 L_31004CEF: 559 SET_LO8(eax, (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) ? 1 : 0); /* 0x31004CEF: setl al */ 560 esi = POP32_VAL(esp); /* 0x31004CF2: pop esi */ 561 ebp = POP32_VAL(esp); /* 0x31004CF3: pop ebp */ 562 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31004CF4: ret 4 */ 563 RECOMP_REGS_OUT(); 564 } 565 566 void sub_31004D00(void) { 567 int _fpu_cmp = 0; 568 uint32_t _cf = 0; 569 int _df = 1; 570 uint32_t _flag_k = FK_NONE; 571 uint32_t _flag_a = 0, _flag_b = 0; 572 uint32_t _itail_tgt = 0; 573 RECOMP_REGS_LOCALS 574 RECOMP_ENTER(0x31004D00u); 575 576 L_31004D00: 577 PUSH32(esp, ebp); /* 0x31004D00: push ebp */ 578 ebp = esp; /* 0x31004D01: mov ebp, esp */ 579 SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x31004D03: mov al, byte ptr [ebp + 8] */ 580 MEM8(ecx + 0x15) = (uint8_t)(LO8(eax)); /* 0x31004D06: mov byte ptr [ecx + 0x15], al */ 581 ebp = POP32_VAL(esp); /* 0x31004D09: pop ebp */ 582 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31004D0A: ret 4 */ 583 RECOMP_REGS_OUT(); 584 } 585 586 void sub_31004D10(void) { 587 int _fpu_cmp = 0; 588 uint32_t _cf = 0; 589 int _df = 1; 590 uint32_t _flag_k = FK_NONE; 591 uint32_t _flag_a = 0, _flag_b = 0; 592 uint32_t _itail_tgt = 0; 593 RECOMP_REGS_LOCALS 594 RECOMP_ENTER(0x31004D10u); 595 596 L_31004D10: 597 SET_LO8(eax, MEM8(ecx + 0x15)); /* 0x31004D10: mov al, byte ptr [ecx + 0x15] */ 598 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31004D13: ret */ 599 RECOMP_REGS_OUT(); 600 } 601 602 void sub_31004D20(void) { 603 int _fpu_cmp = 0; 604 uint32_t _cf = 0; 605 int _df = 1; 606 uint32_t _flag_k = FK_NONE; 607 uint32_t _flag_a = 0, _flag_b = 0; 608 uint32_t _itail_tgt = 0; 609 RECOMP_REGS_LOCALS 610 RECOMP_ENTER(0x31004D20u); 611 612 L_31004D20: 613 PUSH32(esp, ebp); /* 0x31004D20: push ebp */ 614 ebp = esp; /* 0x31004D21: mov ebp, esp */ 615 SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x31004D23: mov al, byte ptr [ebp + 8] */ 616 MEM8(ecx + 0x14) = (uint8_t)(LO8(eax)); /* 0x31004D26: mov byte ptr [ecx + 0x14], al */ 617 ebp = POP32_VAL(esp); /* 0x31004D29: pop ebp */ 618 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31004D2A: ret 4 */ 619 RECOMP_REGS_OUT(); 620 } 621 622 void sub_31004D30(void) { 623 int _fpu_cmp = 0; 624 uint32_t _cf = 0; 625 int _df = 1; 626 uint32_t _flag_k = FK_NONE; 627 uint32_t _flag_a = 0, _flag_b = 0; 628 uint32_t _itail_tgt = 0; 629 RECOMP_REGS_LOCALS 630 RECOMP_ENTER(0x31004D30u); 631 632 L_31004D30: 633 SET_LO8(eax, MEM8(ecx + 0x14)); /* 0x31004D30: mov al, byte ptr [ecx + 0x14] */ 634 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31004D33: ret */ 635 RECOMP_REGS_OUT(); 636 } 637 638 void sub_31004D40(void) { 639 int _fpu_cmp = 0; 640 uint32_t _cf = 0; 641 int _df = 1; 642 uint32_t _flag_k = FK_NONE; 643 uint32_t _flag_a = 0, _flag_b = 0; 644 uint32_t _itail_tgt = 0; 645 RECOMP_REGS_LOCALS 646 RECOMP_ENTER(0x31004D40u); 647 648 L_31004D40: 649 PUSH32(esp, ebp); /* 0x31004D40: push ebp */ 650 ebp = esp; /* 0x31004D41: mov ebp, esp */ 651 PUSH32(esp, ebx); /* 0x31004D43: push ebx */ 652 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x31004D44: mov bl, byte ptr [ebp + 8] */ 653 /* test LO8(ebx), 2 */ /* 0x31004D47: test bl, 2 */ 654 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 655 _cf = 0; 656 _flag_k = FK_NARROW(FK_TEST, 24); 657 PUSH32(esp, esi); /* 0x31004D4A: push esi */ 658 esi = ecx; /* 0x31004D4B: mov esi, ecx */ 659 if (TEST_Z(_flag_a, _flag_b)) goto L_31004D7B; /* 0x31004D4D: je 0x31004d7b */ 660 L_31004D4F: 661 eax = MEM32(esi + (-0x4)); /* 0x31004D4F: mov eax, dword ptr [esi - 4] */ 662 PUSH32(esp, edi); /* 0x31004D52: push edi */ 663 PUSH32(esp, 0x310050D0u); /* 0x31004D53: push 0x310050d0 */ 664 edi = esi + (-0x4); /* 0x31004D58: lea edi, [esi - 4] */ 665 PUSH32(esp, eax); /* 0x31004D5B: push eax */ 666 PUSH32(esp, 0x18u); /* 0x31004D5C: push 0x18 */ 667 PUSH32(esp, esi); /* 0x31004D5E: push esi */ 668 RECOMP_ICALL(0x310468E0u); /* 0x31004D5F: call 0x310468e0 */ /* not lifted */ 669 RECOMP_FLAGS_IN(); 670 /* test LO8(ebx), 1 */ /* 0x31004D64: test bl, 1 */ 671 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 672 _cf = 0; 673 _flag_k = FK_NARROW(FK_TEST, 24); 674 if (TEST_Z(_flag_a, _flag_b)) goto L_31004D72; /* 0x31004D67: je 0x31004d72 */ 675 L_31004D69: 676 PUSH32(esp, edi); /* 0x31004D69: push edi */ 677 RECOMP_ICALL(0x31046858u); /* 0x31004D6A: call 0x31046858 */ /* not lifted */ 678 RECOMP_FLAGS_IN(); 679 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 680 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 681 esp = esp + 4; /* 0x31004D6F: add esp, 4 */ 682 _flag_k = FK_ADD; 683 L_31004D72: 684 eax = edi; /* 0x31004D72: mov eax, edi */ 685 edi = POP32_VAL(esp); /* 0x31004D74: pop edi */ 686 esi = POP32_VAL(esp); /* 0x31004D75: pop esi */ 687 ebx = POP32_VAL(esp); /* 0x31004D76: pop ebx */ 688 ebp = POP32_VAL(esp); /* 0x31004D77: pop ebp */ 689 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31004D78: ret 4 */ 690 L_31004D7B: 691 ecx = esi; /* 0x31004D7B: mov ecx, esi */ 692 RECOMP_ICALL(0x310050D0u); /* 0x31004D7D: call 0x310050d0 */ /* not lifted */ 693 RECOMP_FLAGS_IN(); 694 /* test LO8(ebx), 1 */ /* 0x31004D82: test bl, 1 */ 695 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 696 _cf = 0; 697 _flag_k = FK_NARROW(FK_TEST, 24); 698 if (TEST_Z(_flag_a, _flag_b)) goto L_31004D90; /* 0x31004D85: je 0x31004d90 */ 699 L_31004D87: 700 PUSH32(esp, esi); /* 0x31004D87: push esi */ 701 RECOMP_ICALL(0x31046858u); /* 0x31004D88: call 0x31046858 */ /* not lifted */ 702 RECOMP_FLAGS_IN(); 703 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 704 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 705 esp = esp + 4; /* 0x31004D8D: add esp, 4 */ 706 _flag_k = FK_ADD; 707 L_31004D90: 708 eax = esi; /* 0x31004D90: mov eax, esi */ 709 esi = POP32_VAL(esp); /* 0x31004D92: pop esi */ 710 ebx = POP32_VAL(esp); /* 0x31004D93: pop ebx */ 711 ebp = POP32_VAL(esp); /* 0x31004D94: pop ebp */ 712 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31004D95: ret 4 */ 713 RECOMP_REGS_OUT(); 714 } 715 716 void sub_31004DA0(void) { 717 int _fpu_cmp = 0; 718 uint32_t _cf = 0; 719 int _df = 1; 720 uint32_t _flag_k = FK_NONE; 721 uint32_t _flag_a = 0, _flag_b = 0; 722 uint32_t _itail_tgt = 0; 723 RECOMP_REGS_LOCALS 724 RECOMP_ENTER(0x31004DA0u); 725 726 L_31004DA0: 727 PUSH32(esp, esi); /* 0x31004DA0: push esi */ 728 esi = ecx; /* 0x31004DA1: mov esi, ecx */ 729 MEM32(esi) = 0x310483FCu; /* 0x31004DA3: mov dword ptr [esi], 0x310483fc */ 730 RECOMP_ICALL(0x31004E30u); /* 0x31004DA9: call 0x31004e30 */ /* not lifted */ 731 RECOMP_FLAGS_IN(); 732 eax = esi; /* 0x31004DAE: mov eax, esi */ 733 esi = POP32_VAL(esp); /* 0x31004DB0: pop esi */ 734 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31004DB1: ret */ 735 RECOMP_REGS_OUT(); 736 } 737 738 void sub_31004DC0(void) { 739 int _fpu_cmp = 0; 740 uint32_t _cf = 0; 741 int _df = 1; 742 uint32_t _flag_k = FK_NONE; 743 uint32_t _flag_a = 0, _flag_b = 0; 744 uint32_t _itail_tgt = 0; 745 RECOMP_REGS_LOCALS 746 RECOMP_ENTER(0x31004DC0u); 747 748 L_31004DC0: 749 PUSH32(esp, ebp); /* 0x31004DC0: push ebp */ 750 ebp = esp; /* 0x31004DC1: mov ebp, esp */ 751 PUSH32(esp, ebx); /* 0x31004DC3: push ebx */ 752 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x31004DC4: mov bl, byte ptr [ebp + 8] */ 753 /* test LO8(ebx), 2 */ /* 0x31004DC7: test bl, 2 */ 754 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 755 _cf = 0; 756 _flag_k = FK_NARROW(FK_TEST, 24); 757 PUSH32(esp, esi); /* 0x31004DCA: push esi */ 758 esi = ecx; /* 0x31004DCB: mov esi, ecx */ 759 if (TEST_Z(_flag_a, _flag_b)) goto L_31004DFB; /* 0x31004DCD: je 0x31004dfb */ 760 L_31004DCF: 761 eax = MEM32(esi + (-0x4)); /* 0x31004DCF: mov eax, dword ptr [esi - 4] */ 762 PUSH32(esp, edi); /* 0x31004DD2: push edi */ 763 PUSH32(esp, 0x31004E20u); /* 0x31004DD3: push 0x31004e20 */ 764 edi = esi + (-0x4); /* 0x31004DD8: lea edi, [esi - 4] */ 765 PUSH32(esp, eax); /* 0x31004DDB: push eax */ 766 PUSH32(esp, 8); /* 0x31004DDC: push 8 */ 767 PUSH32(esp, esi); /* 0x31004DDE: push esi */ 768 RECOMP_ICALL(0x310468E0u); /* 0x31004DDF: call 0x310468e0 */ /* not lifted */ 769 RECOMP_FLAGS_IN(); 770 /* test LO8(ebx), 1 */ /* 0x31004DE4: test bl, 1 */ 771 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 772 _cf = 0; 773 _flag_k = FK_NARROW(FK_TEST, 24); 774 if (TEST_Z(_flag_a, _flag_b)) goto L_31004DF2; /* 0x31004DE7: je 0x31004df2 */ 775 L_31004DE9: 776 PUSH32(esp, edi); /* 0x31004DE9: push edi */ 777 RECOMP_ICALL(0x31046858u); /* 0x31004DEA: call 0x31046858 */ /* not lifted */ 778 RECOMP_FLAGS_IN(); 779 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 780 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 781 esp = esp + 4; /* 0x31004DEF: add esp, 4 */ 782 _flag_k = FK_ADD; 783 L_31004DF2: 784 eax = edi; /* 0x31004DF2: mov eax, edi */ 785 edi = POP32_VAL(esp); /* 0x31004DF4: pop edi */ 786 esi = POP32_VAL(esp); /* 0x31004DF5: pop esi */ 787 ebx = POP32_VAL(esp); /* 0x31004DF6: pop ebx */ 788 ebp = POP32_VAL(esp); /* 0x31004DF7: pop ebp */ 789 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31004DF8: ret 4 */ 790 L_31004DFB: 791 ecx = esi; /* 0x31004DFB: mov ecx, esi */ 792 RECOMP_ICALL(0x31004E20u); /* 0x31004DFD: call 0x31004e20 */ /* not lifted */ 793 RECOMP_FLAGS_IN(); 794 /* test LO8(ebx), 1 */ /* 0x31004E02: test bl, 1 */ 795 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 796 _cf = 0; 797 _flag_k = FK_NARROW(FK_TEST, 24); 798 if (TEST_Z(_flag_a, _flag_b)) goto L_31004E10; /* 0x31004E05: je 0x31004e10 */ 799 L_31004E07: 800 PUSH32(esp, esi); /* 0x31004E07: push esi */ 801 RECOMP_ICALL(0x31046858u); /* 0x31004E08: call 0x31046858 */ /* not lifted */ 802 RECOMP_FLAGS_IN(); 803 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 804 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 805 esp = esp + 4; /* 0x31004E0D: add esp, 4 */ 806 _flag_k = FK_ADD; 807 L_31004E10: 808 eax = esi; /* 0x31004E10: mov eax, esi */ 809 esi = POP32_VAL(esp); /* 0x31004E12: pop esi */ 810 ebx = POP32_VAL(esp); /* 0x31004E13: pop ebx */ 811 ebp = POP32_VAL(esp); /* 0x31004E14: pop ebp */ 812 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31004E15: ret 4 */ 813 RECOMP_REGS_OUT(); 814 } 815 816 void sub_31004E20(void) { 817 int _fpu_cmp = 0; 818 uint32_t _cf = 0; 819 int _df = 1; 820 uint32_t _flag_k = FK_NONE; 821 uint32_t _flag_a = 0, _flag_b = 0; 822 uint32_t _itail_tgt = 0; 823 RECOMP_REGS_LOCALS 824 RECOMP_ENTER(0x31004E20u); 825 826 L_31004E20: 827 MEM32(ecx) = 0x310483FCu; /* 0x31004E20: mov dword ptr [ecx], 0x310483fc */ 828 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31004E26: ret */ 829 RECOMP_REGS_OUT(); 830 } 831 832 void sub_31004E30(void) { 833 int _fpu_cmp = 0; 834 uint32_t _cf = 0; 835 int _df = 1; 836 uint32_t _flag_k = FK_NONE; 837 uint32_t _flag_a = 0, _flag_b = 0; 838 uint32_t _itail_tgt = 0; 839 RECOMP_REGS_LOCALS 840 RECOMP_ENTER(0x31004E30u); 841 842 L_31004E30: 843 MEM8(ecx + 0x4) = (uint8_t)(0); /* 0x31004E30: mov byte ptr [ecx + 4], 0 */ 844 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31004E34: ret */ 845 RECOMP_REGS_OUT(); 846 } 847 848 void sub_31004E40(void) { 849 int _fpu_cmp = 0; 850 uint32_t _cf = 0; 851 int _df = 1; 852 uint32_t _flag_k = FK_NONE; 853 uint32_t _flag_a = 0, _flag_b = 0; 854 uint32_t _itail_tgt = 0; 855 RECOMP_REGS_LOCALS 856 RECOMP_ENTER(0x31004E40u); 857 858 L_31004E40: 859 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 860 eax = 0; /* 0x31004E40: xor eax, eax */ 861 _cf = 0; 862 _flag_k = FK_TEST; 863 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31004E42: ret 4 */ 864 RECOMP_REGS_OUT(); 865 } 866 867 void sub_31004E50(void) { 868 int _fpu_cmp = 0; 869 uint32_t _cf = 0; 870 int _df = 1; 871 uint32_t _flag_k = FK_NONE; 872 uint32_t _flag_a = 0, _flag_b = 0; 873 uint32_t _itail_tgt = 0; 874 RECOMP_REGS_LOCALS 875 RECOMP_ENTER(0x31004E50u); 876 877 L_31004E50: 878 PUSH32(esp, ebp); /* 0x31004E50: push ebp */ 879 ebp = esp; /* 0x31004E51: mov ebp, esp */ 880 edx = MEM32(ebp + 0x8); /* 0x31004E53: mov edx, dword ptr [ebp + 8] */ 881 eax = MEM32(ecx); /* 0x31004E56: mov eax, dword ptr [ecx] */ 882 PUSH32(esp, esi); /* 0x31004E58: push esi */ 883 PUSH32(esp, edx); /* 0x31004E59: push edx */ 884 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 885 esi = 0; /* 0x31004E5A: xor esi, esi */ 886 _cf = 0; 887 _flag_k = FK_TEST; 888 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x31004E5C: call dword ptr [eax + 8] */ 889 RECOMP_FLAGS_IN(); 890 /* test eax, eax */ /* 0x31004E5F: test eax, eax */ 891 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 892 _cf = 0; 893 _flag_k = FK_TEST; 894 if (TEST_Z(_flag_a, _flag_b)) goto L_31004E6D; /* 0x31004E61: je 0x31004e6d */ 895 L_31004E63: 896 esi = MEM32(eax + 0x10); /* 0x31004E63: mov esi, dword ptr [eax + 0x10] */ 897 ecx = eax; /* 0x31004E66: mov ecx, eax */ 898 RECOMP_ICALL(0x310050E0u); /* 0x31004E68: call 0x310050e0 */ /* not lifted */ 899 RECOMP_FLAGS_IN(); 900 L_31004E6D: 901 eax = esi; /* 0x31004E6D: mov eax, esi */ 902 esi = POP32_VAL(esp); /* 0x31004E6F: pop esi */ 903 ebp = POP32_VAL(esp); /* 0x31004E70: pop ebp */ 904 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31004E71: ret 4 */ 905 RECOMP_REGS_OUT(); 906 } 907 908 void sub_31004E80(void) { 909 int _fpu_cmp = 0; 910 uint32_t _cf = 0; 911 int _df = 1; 912 uint32_t _flag_k = FK_NONE; 913 uint32_t _flag_a = 0, _flag_b = 0; 914 uint32_t _itail_tgt = 0; 915 RECOMP_REGS_LOCALS 916 RECOMP_ENTER(0x31004E80u); 917 918 L_31004E80: 919 PUSH32(esp, ebp); /* 0x31004E80: push ebp */ 920 ebp = esp; /* 0x31004E81: mov ebp, esp */ 921 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 922 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 923 esp = esp - 0x18u; /* 0x31004E83: sub esp, 0x18 */ 924 _flag_k = FK_CMP; 925 eax = ebp + (-0x8); /* 0x31004E86: lea eax, [ebp - 8] */ 926 PUSH32(esp, eax); /* 0x31004E89: push eax */ 927 RECOMP_ICALL(MEM32(0x3104804C)); /* 0x31004E8A: call dword ptr [0x3104804c] */ 928 RECOMP_FLAGS_IN(); 929 ecx = ebp + (-0x8); /* 0x31004E90: lea ecx, [ebp - 8] */ 930 PUSH32(esp, ecx); /* 0x31004E93: push ecx */ 931 ecx = ebp + (-0x10); /* 0x31004E94: lea ecx, [ebp - 0x10] */ 932 RECOMP_ICALL(MEM32(0x31048298)); /* 0x31004E97: call dword ptr [0x31048298] */ 933 RECOMP_FLAGS_IN(); 934 ecx = MEM32(eax); /* 0x31004E9D: mov ecx, dword ptr [eax] */ 935 MEM32(ebp + (-0x18)) = ecx; /* 0x31004E9F: mov dword ptr [ebp - 0x18], ecx */ 936 edx = MEM32(eax + 0x4); /* 0x31004EA2: mov edx, dword ptr [eax + 4] */ 937 eax = MEM32(ebp + 0x8); /* 0x31004EA5: mov eax, dword ptr [ebp + 8] */ 938 MEM32(eax) = ecx; /* 0x31004EA8: mov dword ptr [eax], ecx */ 939 MEM32(eax + 0x4) = edx; /* 0x31004EAA: mov dword ptr [eax + 4], edx */ 940 esp = ebp; /* 0x31004EAD: mov esp, ebp */ 941 ebp = POP32_VAL(esp); /* 0x31004EAF: pop ebp */ 942 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31004EB0: ret 4 */ 943 RECOMP_REGS_OUT(); 944 } 945 946 void sub_31004EC0(void) { 947 int _fpu_cmp = 0; 948 uint32_t _cf = 0; 949 int _df = 1; 950 uint32_t _flag_k = FK_NONE; 951 uint32_t _flag_a = 0, _flag_b = 0; 952 uint32_t _itail_tgt = 0; 953 RECOMP_REGS_LOCALS 954 RECOMP_ENTER(0x31004EC0u); 955 956 L_31004EC0: 957 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 958 eax = 0; /* 0x31004EC0: xor eax, eax */ 959 _cf = 0; 960 _flag_k = FK_TEST; 961 SET_LO8(eax, MEM8(ecx + 0x4)); /* 0x31004EC2: mov al, byte ptr [ecx + 4] */ 962 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31004EC5: ret */ 963 RECOMP_REGS_OUT(); 964 } 965 966 void sub_31004ED0(void) { 967 int _fpu_cmp = 0; 968 uint32_t _cf = 0; 969 int _df = 1; 970 uint32_t _flag_k = FK_NONE; 971 uint32_t _flag_a = 0, _flag_b = 0; 972 uint32_t _itail_tgt = 0; 973 RECOMP_REGS_LOCALS 974 RECOMP_ENTER(0x31004ED0u); 975 976 L_31004ED0: 977 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 978 eax = 0; /* 0x31004ED0: xor eax, eax */ 979 _cf = 0; 980 _flag_k = FK_TEST; 981 SET_LO8(eax, MEM8(ecx + 0x4)); /* 0x31004ED2: mov al, byte ptr [ecx + 4] */ 982 eax = MEM32(eax * 8 + 0x31048394); /* 0x31004ED5: mov eax, dword ptr [eax*8 + 0x31048394] */ 983 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31004EDC: ret */ 984 RECOMP_REGS_OUT(); 985 } 986 987 void sub_31004EE0(void) { 988 int _fpu_cmp = 0; 989 uint32_t _cf = 0; 990 int _df = 1; 991 uint32_t _flag_k = FK_NONE; 992 uint32_t _flag_a = 0, _flag_b = 0; 993 uint32_t _itail_tgt = 0; 994 RECOMP_REGS_LOCALS 995 RECOMP_ENTER(0x31004EE0u); 996 997 L_31004EE0: 998 PUSH32(esp, ebp); /* 0x31004EE0: push ebp */ 999 ebp = esp; /* 0x31004EE1: mov ebp, esp */ 1000 SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x31004EE3: mov al, byte ptr [ebp + 8] */ 1001 MEM8(ecx + 0x4) = (uint8_t)(LO8(eax)); /* 0x31004EE6: mov byte ptr [ecx + 4], al */ 1002 ebp = POP32_VAL(esp); /* 0x31004EE9: pop ebp */ 1003 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31004EEA: ret 4 */ 1004 RECOMP_REGS_OUT(); 1005 } 1006 1007 void sub_31004EF0(void) { 1008 int _fpu_cmp = 0; 1009 uint32_t _cf = 0; 1010 int _df = 1; 1011 uint32_t _flag_k = FK_NONE; 1012 uint32_t _flag_a = 0, _flag_b = 0; 1013 uint32_t _itail_tgt = 0; 1014 RECOMP_REGS_LOCALS 1015 RECOMP_ENTER(0x31004EF0u); 1016 1017 L_31004EF0: 1018 PUSH32(esp, ebp); /* 0x31004EF0: push ebp */ 1019 ebp = esp; /* 0x31004EF1: mov ebp, esp */ 1020 eax = MEM32(ebp + 0x8); /* 0x31004EF3: mov eax, dword ptr [ebp + 8] */ 1021 PUSH32(esp, esi); /* 0x31004EF6: push esi */ 1022 PUSH32(esp, edi); /* 0x31004EF7: push edi */ 1023 PUSH32(esp, eax); /* 0x31004EF8: push eax */ 1024 edi = ecx; /* 0x31004EF9: mov edi, ecx */ 1025 RECOMP_ICALL(0x31005380u); /* 0x31004EFB: call 0x31005380 */ /* not lifted */ 1026 RECOMP_FLAGS_IN(); 1027 esi = eax; /* 0x31004F00: mov esi, eax */ 1028 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1029 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1030 esp = esp + 4; /* 0x31004F02: add esp, 4 */ 1031 _flag_k = FK_ADD; 1032 /* test esi, esi */ /* 0x31004F05: test esi, esi */ 1033 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 1034 _cf = 0; 1035 _flag_k = FK_TEST; 1036 if (TEST_NZ(_flag_a, _flag_b)) goto L_31004F12; /* 0x31004F07: jne 0x31004f12 */ 1037 L_31004F09: 1038 edx = MEM32(edi); /* 0x31004F09: mov edx, dword ptr [edi] */ 1039 PUSH32(esp, 8); /* 0x31004F0B: push 8 */ 1040 ecx = edi; /* 0x31004F0D: mov ecx, edi */ 1041 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x31004F0F: call dword ptr [edx + 0x2c] */ 1042 RECOMP_FLAGS_IN(); 1043 L_31004F12: 1044 edi = POP32_VAL(esp); /* 0x31004F12: pop edi */ 1045 eax = esi; /* 0x31004F13: mov eax, esi */ 1046 esi = POP32_VAL(esp); /* 0x31004F15: pop esi */ 1047 ebp = POP32_VAL(esp); /* 0x31004F16: pop ebp */ 1048 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31004F17: ret 4 */ 1049 RECOMP_REGS_OUT(); 1050 } 1051 1052 void sub_31004F20(void) { 1053 int _fpu_cmp = 0; 1054 uint32_t _cf = 0; 1055 int _df = 1; 1056 uint32_t _flag_k = FK_NONE; 1057 uint32_t _flag_a = 0, _flag_b = 0; 1058 uint32_t _itail_tgt = 0; 1059 RECOMP_REGS_LOCALS 1060 RECOMP_ENTER(0x31004F20u); 1061 1062 L_31004F20: 1063 eax = ecx; /* 0x31004F20: mov eax, ecx */ 1064 MEM32(eax) = 0x31048430u; /* 0x31004F22: mov dword ptr [eax], 0x31048430 */ 1065 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31004F28: ret */ 1066 RECOMP_REGS_OUT(); 1067 } 1068 1069 void sub_31004F30(void) { 1070 int _fpu_cmp = 0; 1071 uint32_t _cf = 0; 1072 int _df = 1; 1073 uint32_t _flag_k = FK_NONE; 1074 uint32_t _flag_a = 0, _flag_b = 0; 1075 uint32_t _itail_tgt = 0; 1076 RECOMP_REGS_LOCALS 1077 RECOMP_ENTER(0x31004F30u); 1078 1079 L_31004F30: 1080 MEM32(ecx) = 0x31048430u; /* 0x31004F30: mov dword ptr [ecx], 0x31048430 */ 1081 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31004F36: ret */ 1082 RECOMP_REGS_OUT(); 1083 } 1084 1085 void sub_31004F40(void) { 1086 int _fpu_cmp = 0; 1087 uint32_t _cf = 0; 1088 int _df = 1; 1089 uint32_t _flag_k = FK_NONE; 1090 uint32_t _flag_a = 0, _flag_b = 0; 1091 uint32_t _itail_tgt = 0; 1092 RECOMP_REGS_LOCALS 1093 RECOMP_ENTER(0x31004F40u); 1094 1095 L_31004F40: 1096 eax = ecx; /* 0x31004F40: mov eax, ecx */ 1097 MEM32(eax) = 0x31048430u; /* 0x31004F42: mov dword ptr [eax], 0x31048430 */ 1098 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31004F48: ret 4 */ 1099 RECOMP_REGS_OUT(); 1100 } 1101 1102 void sub_31004F50(void) { 1103 int _fpu_cmp = 0; 1104 uint32_t _cf = 0; 1105 int _df = 1; 1106 uint32_t _flag_k = FK_NONE; 1107 uint32_t _flag_a = 0, _flag_b = 0; 1108 uint32_t _itail_tgt = 0; 1109 RECOMP_REGS_LOCALS 1110 RECOMP_ENTER(0x31004F50u); 1111 1112 L_31004F50: 1113 eax = ecx; /* 0x31004F50: mov eax, ecx */ 1114 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31004F52: ret 4 */ 1115 RECOMP_REGS_OUT(); 1116 } 1117 1118 void sub_31004F60(void) { 1119 int _fpu_cmp = 0; 1120 uint32_t _cf = 0; 1121 int _df = 1; 1122 uint32_t _flag_k = FK_NONE; 1123 uint32_t _flag_a = 0, _flag_b = 0; 1124 uint32_t _itail_tgt = 0; 1125 RECOMP_REGS_LOCALS 1126 RECOMP_ENTER(0x31004F60u); 1127 1128 L_31004F60: 1129 PUSH32(esp, ebp); /* 0x31004F60: push ebp */ 1130 ebp = esp; /* 0x31004F61: mov ebp, esp */ 1131 PUSH32(esp, ebx); /* 0x31004F63: push ebx */ 1132 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x31004F64: mov bl, byte ptr [ebp + 8] */ 1133 /* test LO8(ebx), 2 */ /* 0x31004F67: test bl, 2 */ 1134 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 1135 _cf = 0; 1136 _flag_k = FK_NARROW(FK_TEST, 24); 1137 PUSH32(esp, esi); /* 0x31004F6A: push esi */ 1138 esi = ecx; /* 0x31004F6B: mov esi, ecx */ 1139 if (TEST_Z(_flag_a, _flag_b)) goto L_31004F9B; /* 0x31004F6D: je 0x31004f9b */ 1140 L_31004F6F: 1141 eax = MEM32(esi + (-0x4)); /* 0x31004F6F: mov eax, dword ptr [esi - 4] */ 1142 PUSH32(esp, edi); /* 0x31004F72: push edi */ 1143 PUSH32(esp, 0x31004F30u); /* 0x31004F73: push 0x31004f30 */ 1144 edi = esi + (-0x4); /* 0x31004F78: lea edi, [esi - 4] */ 1145 PUSH32(esp, eax); /* 0x31004F7B: push eax */ 1146 PUSH32(esp, 4); /* 0x31004F7C: push 4 */ 1147 PUSH32(esp, esi); /* 0x31004F7E: push esi */ 1148 RECOMP_ICALL(0x310468E0u); /* 0x31004F7F: call 0x310468e0 */ /* not lifted */ 1149 RECOMP_FLAGS_IN(); 1150 /* test LO8(ebx), 1 */ /* 0x31004F84: test bl, 1 */ 1151 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1152 _cf = 0; 1153 _flag_k = FK_NARROW(FK_TEST, 24); 1154 if (TEST_Z(_flag_a, _flag_b)) goto L_31004F92; /* 0x31004F87: je 0x31004f92 */ 1155 L_31004F89: 1156 PUSH32(esp, edi); /* 0x31004F89: push edi */ 1157 RECOMP_ICALL(0x31046858u); /* 0x31004F8A: call 0x31046858 */ /* not lifted */ 1158 RECOMP_FLAGS_IN(); 1159 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1160 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1161 esp = esp + 4; /* 0x31004F8F: add esp, 4 */ 1162 _flag_k = FK_ADD; 1163 L_31004F92: 1164 eax = edi; /* 0x31004F92: mov eax, edi */ 1165 edi = POP32_VAL(esp); /* 0x31004F94: pop edi */ 1166 esi = POP32_VAL(esp); /* 0x31004F95: pop esi */ 1167 ebx = POP32_VAL(esp); /* 0x31004F96: pop ebx */ 1168 ebp = POP32_VAL(esp); /* 0x31004F97: pop ebp */ 1169 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31004F98: ret 4 */ 1170 L_31004F9B: 1171 /* test LO8(ebx), 1 */ /* 0x31004F9B: test bl, 1 */ 1172 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1173 _cf = 0; 1174 _flag_k = FK_NARROW(FK_TEST, 24); 1175 MEM32(esi) = 0x31048430u; /* 0x31004F9E: mov dword ptr [esi], 0x31048430 */ 1176 if (TEST_Z(_flag_a, _flag_b)) goto L_31004FAF; /* 0x31004FA4: je 0x31004faf */ 1177 L_31004FA6: 1178 PUSH32(esp, esi); /* 0x31004FA6: push esi */ 1179 RECOMP_ICALL(0x31046858u); /* 0x31004FA7: call 0x31046858 */ /* not lifted */ 1180 RECOMP_FLAGS_IN(); 1181 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1182 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1183 esp = esp + 4; /* 0x31004FAC: add esp, 4 */ 1184 _flag_k = FK_ADD; 1185 L_31004FAF: 1186 eax = esi; /* 0x31004FAF: mov eax, esi */ 1187 esi = POP32_VAL(esp); /* 0x31004FB1: pop esi */ 1188 ebx = POP32_VAL(esp); /* 0x31004FB2: pop ebx */ 1189 ebp = POP32_VAL(esp); /* 0x31004FB3: pop ebp */ 1190 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31004FB4: ret 4 */ 1191 RECOMP_REGS_OUT(); 1192 } 1193 1194 void sub_31004FC0(void) { 1195 int _fpu_cmp = 0; 1196 uint32_t _cf = 0; 1197 int _df = 1; 1198 uint32_t _flag_k = FK_NONE; 1199 uint32_t _flag_a = 0, _flag_b = 0; 1200 uint32_t _itail_tgt = 0; 1201 RECOMP_REGS_LOCALS 1202 RECOMP_ENTER(0x31004FC0u); 1203 1204 L_31004FC0: 1205 eax = ecx; /* 0x31004FC0: mov eax, ecx */ 1206 MEM32(eax) = 0x31048474u; /* 0x31004FC2: mov dword ptr [eax], 0x31048474 */ 1207 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31004FC8: ret 4 */ 1208 RECOMP_REGS_OUT(); 1209 } 1210 1211 void sub_31004FD0(void) { 1212 int _fpu_cmp = 0; 1213 uint32_t _cf = 0; 1214 int _df = 1; 1215 uint32_t _flag_k = FK_NONE; 1216 uint32_t _flag_a = 0, _flag_b = 0; 1217 uint32_t _itail_tgt = 0; 1218 RECOMP_REGS_LOCALS 1219 RECOMP_ENTER(0x31004FD0u); 1220 1221 L_31004FD0: 1222 PUSH32(esp, ebp); /* 0x31004FD0: push ebp */ 1223 ebp = esp; /* 0x31004FD1: mov ebp, esp */ 1224 PUSH32(esp, ebx); /* 0x31004FD3: push ebx */ 1225 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x31004FD4: mov bl, byte ptr [ebp + 8] */ 1226 /* test LO8(ebx), 2 */ /* 0x31004FD7: test bl, 2 */ 1227 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 1228 _cf = 0; 1229 _flag_k = FK_NARROW(FK_TEST, 24); 1230 PUSH32(esp, esi); /* 0x31004FDA: push esi */ 1231 esi = ecx; /* 0x31004FDB: mov esi, ecx */ 1232 if (TEST_Z(_flag_a, _flag_b)) goto L_3100500B; /* 0x31004FDD: je 0x3100500b */ 1233 L_31004FDF: 1234 eax = MEM32(esi + (-0x4)); /* 0x31004FDF: mov eax, dword ptr [esi - 4] */ 1235 PUSH32(esp, edi); /* 0x31004FE2: push edi */ 1236 PUSH32(esp, 0x31006250u); /* 0x31004FE3: push 0x31006250 */ 1237 edi = esi + (-0x4); /* 0x31004FE8: lea edi, [esi - 4] */ 1238 PUSH32(esp, eax); /* 0x31004FEB: push eax */ 1239 PUSH32(esp, 4); /* 0x31004FEC: push 4 */ 1240 PUSH32(esp, esi); /* 0x31004FEE: push esi */ 1241 RECOMP_ICALL(0x310468E0u); /* 0x31004FEF: call 0x310468e0 */ /* not lifted */ 1242 RECOMP_FLAGS_IN(); 1243 /* test LO8(ebx), 1 */ /* 0x31004FF4: test bl, 1 */ 1244 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1245 _cf = 0; 1246 _flag_k = FK_NARROW(FK_TEST, 24); 1247 if (TEST_Z(_flag_a, _flag_b)) goto L_31005002; /* 0x31004FF7: je 0x31005002 */ 1248 L_31004FF9: 1249 PUSH32(esp, edi); /* 0x31004FF9: push edi */ 1250 RECOMP_ICALL(0x31046858u); /* 0x31004FFA: call 0x31046858 */ /* not lifted */ 1251 RECOMP_FLAGS_IN(); 1252 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1253 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1254 esp = esp + 4; /* 0x31004FFF: add esp, 4 */ 1255 _flag_k = FK_ADD; 1256 L_31005002: 1257 eax = edi; /* 0x31005002: mov eax, edi */ 1258 edi = POP32_VAL(esp); /* 0x31005004: pop edi */ 1259 esi = POP32_VAL(esp); /* 0x31005005: pop esi */ 1260 ebx = POP32_VAL(esp); /* 0x31005006: pop ebx */ 1261 ebp = POP32_VAL(esp); /* 0x31005007: pop ebp */ 1262 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31005008: ret 4 */ 1263 L_3100500B: 1264 ecx = esi; /* 0x3100500B: mov ecx, esi */ 1265 RECOMP_ICALL(0x31006250u); /* 0x3100500D: call 0x31006250 */ /* not lifted */ 1266 RECOMP_FLAGS_IN(); 1267 /* test LO8(ebx), 1 */ /* 0x31005012: test bl, 1 */ 1268 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1269 _cf = 0; 1270 _flag_k = FK_NARROW(FK_TEST, 24); 1271 if (TEST_Z(_flag_a, _flag_b)) goto L_31005020; /* 0x31005015: je 0x31005020 */ 1272 L_31005017: 1273 PUSH32(esp, esi); /* 0x31005017: push esi */ 1274 RECOMP_ICALL(0x31046858u); /* 0x31005018: call 0x31046858 */ /* not lifted */ 1275 RECOMP_FLAGS_IN(); 1276 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1277 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1278 esp = esp + 4; /* 0x3100501D: add esp, 4 */ 1279 _flag_k = FK_ADD; 1280 L_31005020: 1281 eax = esi; /* 0x31005020: mov eax, esi */ 1282 esi = POP32_VAL(esp); /* 0x31005022: pop esi */ 1283 ebx = POP32_VAL(esp); /* 0x31005023: pop ebx */ 1284 ebp = POP32_VAL(esp); /* 0x31005024: pop ebp */ 1285 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31005025: ret 4 */ 1286 RECOMP_REGS_OUT(); 1287 } 1288 1289 void sub_31005030(void) { 1290 int _fpu_cmp = 0; 1291 uint32_t _cf = 0; 1292 int _df = 1; 1293 uint32_t _flag_k = FK_NONE; 1294 uint32_t _flag_a = 0, _flag_b = 0; 1295 uint32_t _itail_tgt = 0; 1296 RECOMP_REGS_LOCALS 1297 RECOMP_ENTER(0x31005030u); 1298 1299 L_31005030: 1300 RECOMP_ICALL(0x31005040u); /* 0x31005030: call 0x31005040 */ /* not lifted */ 1301 RECOMP_FLAGS_IN(); 1302 goto L_31005050; /* 0x31005035: jmp 0x31005050 */ 1303 L_31005050: 1304 PUSH32(esp, 0x31005060u); /* 0x31005050: push 0x31005060 */ 1305 RECOMP_ICALL(0x310468C8u); /* 0x31005055: call 0x310468c8 */ /* not lifted */ 1306 RECOMP_FLAGS_IN(); 1307 ecx = POP32_VAL(esp); /* 0x3100505A: pop ecx */ 1308 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100505B: ret */ 1309 RECOMP_REGS_OUT(); 1310 } 1311 1312 void sub_31005040(void) { 1313 int _fpu_cmp = 0; 1314 uint32_t _cf = 0; 1315 int _df = 1; 1316 uint32_t _flag_k = FK_NONE; 1317 uint32_t _flag_a = 0, _flag_b = 0; 1318 uint32_t _itail_tgt = 0; 1319 RECOMP_REGS_LOCALS 1320 RECOMP_ENTER(0x31005040u); 1321 1322 L_31005040: 1323 ecx = 0x31057DA5u; /* 0x31005040: mov ecx, 0x31057da5 */ 1324 L_31005045: 1325 { _itail_tgt = (uint32_t)(MEM32(0x31048108)); goto _ljump; } 1326 { RECOMP_REGS_OUT(); return; } /* end of function */ 1327 _ljump: 1328 switch (_itail_tgt) { 1329 case 0x31005040u: goto L_31005040; 1330 case 0x31005045u: goto L_31005045; 1331 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1332 } 1333 RECOMP_REGS_OUT(); 1334 } 1335 1336 void sub_31005050(void) { 1337 int _fpu_cmp = 0; 1338 uint32_t _cf = 0; 1339 int _df = 1; 1340 uint32_t _flag_k = FK_NONE; 1341 uint32_t _flag_a = 0, _flag_b = 0; 1342 uint32_t _itail_tgt = 0; 1343 RECOMP_REGS_LOCALS 1344 RECOMP_ENTER(0x31005050u); 1345 1346 L_31005050: 1347 PUSH32(esp, 0x31005060u); /* 0x31005050: push 0x31005060 */ 1348 RECOMP_ICALL(0x310468C8u); /* 0x31005055: call 0x310468c8 */ /* not lifted */ 1349 RECOMP_FLAGS_IN(); 1350 ecx = POP32_VAL(esp); /* 0x3100505A: pop ecx */ 1351 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100505B: ret */ 1352 RECOMP_REGS_OUT(); 1353 } 1354 1355 void sub_31005060(void) { 1356 int _fpu_cmp = 0; 1357 uint32_t _cf = 0; 1358 int _df = 1; 1359 uint32_t _flag_k = FK_NONE; 1360 uint32_t _flag_a = 0, _flag_b = 0; 1361 uint32_t _itail_tgt = 0; 1362 RECOMP_REGS_LOCALS 1363 RECOMP_ENTER(0x31005060u); 1364 1365 L_31005060: 1366 ecx = 0x31057DA5u; /* 0x31005060: mov ecx, 0x31057da5 */ 1367 L_31005065: 1368 { _itail_tgt = (uint32_t)(MEM32(0x3104807C)); goto _ljump; } 1369 { RECOMP_REGS_OUT(); return; } /* end of function */ 1370 _ljump: 1371 switch (_itail_tgt) { 1372 case 0x31005060u: goto L_31005060; 1373 case 0x31005065u: goto L_31005065; 1374 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1375 } 1376 RECOMP_REGS_OUT(); 1377 } 1378 1379 void sub_31005070(void) { 1380 int _fpu_cmp = 0; 1381 uint32_t _cf = 0; 1382 int _df = 1; 1383 uint32_t _flag_k = FK_NONE; 1384 uint32_t _flag_a = 0, _flag_b = 0; 1385 uint32_t _itail_tgt = 0; 1386 RECOMP_REGS_LOCALS 1387 RECOMP_ENTER(0x31005070u); 1388 1389 L_31005070: 1390 RECOMP_ICALL(0x31005080u); /* 0x31005070: call 0x31005080 */ /* not lifted */ 1391 RECOMP_FLAGS_IN(); 1392 goto L_31005090; /* 0x31005075: jmp 0x31005090 */ 1393 L_31005090: 1394 PUSH32(esp, 0x310050A0u); /* 0x31005090: push 0x310050a0 */ 1395 RECOMP_ICALL(0x310468C8u); /* 0x31005095: call 0x310468c8 */ /* not lifted */ 1396 RECOMP_FLAGS_IN(); 1397 ecx = POP32_VAL(esp); /* 0x3100509A: pop ecx */ 1398 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100509B: ret */ 1399 RECOMP_REGS_OUT(); 1400 } 1401 1402 void sub_31005080(void) { 1403 int _fpu_cmp = 0; 1404 uint32_t _cf = 0; 1405 int _df = 1; 1406 uint32_t _flag_k = FK_NONE; 1407 uint32_t _flag_a = 0, _flag_b = 0; 1408 uint32_t _itail_tgt = 0; 1409 RECOMP_REGS_LOCALS 1410 RECOMP_ENTER(0x31005080u); 1411 1412 L_31005080: 1413 ecx = 0x31057DA4u; /* 0x31005080: mov ecx, 0x31057da4 */ 1414 L_31005085: 1415 { _itail_tgt = (uint32_t)(MEM32(0x31048104)); goto _ljump; } 1416 { RECOMP_REGS_OUT(); return; } /* end of function */ 1417 _ljump: 1418 switch (_itail_tgt) { 1419 case 0x31005080u: goto L_31005080; 1420 case 0x31005085u: goto L_31005085; 1421 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1422 } 1423 RECOMP_REGS_OUT(); 1424 } 1425 1426 void sub_31005090(void) { 1427 int _fpu_cmp = 0; 1428 uint32_t _cf = 0; 1429 int _df = 1; 1430 uint32_t _flag_k = FK_NONE; 1431 uint32_t _flag_a = 0, _flag_b = 0; 1432 uint32_t _itail_tgt = 0; 1433 RECOMP_REGS_LOCALS 1434 RECOMP_ENTER(0x31005090u); 1435 1436 L_31005090: 1437 PUSH32(esp, 0x310050A0u); /* 0x31005090: push 0x310050a0 */ 1438 RECOMP_ICALL(0x310468C8u); /* 0x31005095: call 0x310468c8 */ /* not lifted */ 1439 RECOMP_FLAGS_IN(); 1440 ecx = POP32_VAL(esp); /* 0x3100509A: pop ecx */ 1441 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100509B: ret */ 1442 RECOMP_REGS_OUT(); 1443 } 1444 1445 void sub_310050A0(void) { 1446 int _fpu_cmp = 0; 1447 uint32_t _cf = 0; 1448 int _df = 1; 1449 uint32_t _flag_k = FK_NONE; 1450 uint32_t _flag_a = 0, _flag_b = 0; 1451 uint32_t _itail_tgt = 0; 1452 RECOMP_REGS_LOCALS 1453 RECOMP_ENTER(0x310050A0u); 1454 1455 L_310050A0: 1456 ecx = 0x31057DA4u; /* 0x310050A0: mov ecx, 0x31057da4 */ 1457 L_310050A5: 1458 { _itail_tgt = (uint32_t)(MEM32(0x31048080)); goto _ljump; } 1459 { RECOMP_REGS_OUT(); return; } /* end of function */ 1460 _ljump: 1461 switch (_itail_tgt) { 1462 case 0x310050A0u: goto L_310050A0; 1463 case 0x310050A5u: goto L_310050A5; 1464 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1465 } 1466 RECOMP_REGS_OUT(); 1467 } 1468 1469 void sub_310050B0(void) { 1470 int _fpu_cmp = 0; 1471 uint32_t _cf = 0; 1472 int _df = 1; 1473 uint32_t _flag_k = FK_NONE; 1474 uint32_t _flag_a = 0, _flag_b = 0; 1475 uint32_t _itail_tgt = 0; 1476 RECOMP_REGS_LOCALS 1477 RECOMP_ENTER(0x310050B0u); 1478 1479 L_310050B0: 1480 eax = ecx; /* 0x310050B0: mov eax, ecx */ 1481 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1482 ecx = 0; /* 0x310050B2: xor ecx, ecx */ 1483 _cf = 0; 1484 _flag_k = FK_TEST; 1485 MEM32(eax + 0x4) = ecx; /* 0x310050B4: mov dword ptr [eax + 4], ecx */ 1486 MEM32(eax + 0x8) = ecx; /* 0x310050B7: mov dword ptr [eax + 8], ecx */ 1487 MEM32(eax) = 0x310483DCu; /* 0x310050BA: mov dword ptr [eax], 0x310483dc */ 1488 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x310050C0: ret 4 */ 1489 RECOMP_REGS_OUT(); 1490 } 1491 1492 void sub_310050D0(void) { 1493 int _fpu_cmp = 0; 1494 uint32_t _cf = 0; 1495 int _df = 1; 1496 uint32_t _flag_k = FK_NONE; 1497 uint32_t _flag_a = 0, _flag_b = 0; 1498 uint32_t _itail_tgt = 0; 1499 RECOMP_REGS_LOCALS 1500 RECOMP_ENTER(0x310050D0u); 1501 1502 L_310050D0: 1503 MEM32(ecx) = 0x310483DCu; /* 0x310050D0: mov dword ptr [ecx], 0x310483dc */ 1504 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x310050D6: ret */ 1505 RECOMP_REGS_OUT(); 1506 } 1507 1508 void sub_310050E0(void) { 1509 int _fpu_cmp = 0; 1510 uint32_t _cf = 0; 1511 int _df = 1; 1512 uint32_t _flag_k = FK_NONE; 1513 uint32_t _flag_a = 0, _flag_b = 0; 1514 uint32_t _itail_tgt = 0; 1515 RECOMP_REGS_LOCALS 1516 RECOMP_ENTER(0x310050E0u); 1517 1518 L_310050E0: 1519 _flag_a = (uint32_t)(MEM32(ecx + 0xC)); _flag_b = (uint32_t)(1); 1520 MEM32(ecx + 0xC) = MEM32(ecx + 0xC) - 1; /* 0x310050E0: dec dword ptr [ecx + 0xc] */ 1521 _flag_k = FK_DEC; 1522 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_310050F0; /* 0x310050E3: jne 0x310050f0 */ 1523 L_310050E5: 1524 /* test ecx, ecx */ /* 0x310050E5: test ecx, ecx */ 1525 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1526 _cf = 0; 1527 _flag_k = FK_TEST; 1528 if (TEST_Z(_flag_a, _flag_b)) goto L_310050F0; /* 0x310050E7: je 0x310050f0 */ 1529 L_310050E9: 1530 eax = MEM32(ecx); /* 0x310050E9: mov eax, dword ptr [ecx] */ 1531 PUSH32(esp, 1); /* 0x310050EB: push 1 */ 1532 RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x310050ED: call dword ptr [eax + 0x18] */ 1533 RECOMP_FLAGS_IN(); 1534 L_310050F0: 1535 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x310050F0: ret */ 1536 RECOMP_REGS_OUT(); 1537 } 1538 1539 void sub_31005100(void) { 1540 int _fpu_cmp = 0; 1541 uint32_t _cf = 0; 1542 int _df = 1; 1543 uint32_t _flag_k = FK_NONE; 1544 uint32_t _flag_a = 0, _flag_b = 0; 1545 uint32_t _itail_tgt = 0; 1546 RECOMP_REGS_LOCALS 1547 RECOMP_ENTER(0x31005100u); 1548 1549 L_31005100: 1550 PUSH32(esp, ebp); /* 0x31005100: push ebp */ 1551 ebp = esp; /* 0x31005101: mov ebp, esp */ 1552 PUSH32(esp, 0xFFFFFFFFu); /* 0x31005103: push -1 */ 1553 PUSH32(esp, 0x31046F4Bu); /* 0x31005105: push 0x31046f4b */ 1554 eax = MEM32(FS_BASE + (0)); /* 0x3100510A: mov eax, dword ptr fs:[0] */ 1555 PUSH32(esp, eax); /* 0x31005110: push eax */ 1556 MEM32(FS_BASE + (0)) = esp; /* 0x31005111: mov dword ptr fs:[0], esp */ 1557 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 1558 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1559 esp = esp - 0x18u; /* 0x31005118: sub esp, 0x18 */ 1560 _flag_k = FK_CMP; 1561 ecx = MEM32(0x31057DA8); /* 0x3100511B: mov ecx, dword ptr [0x31057da8] */ 1562 /* test ecx, ecx */ /* 0x31005121: test ecx, ecx */ 1563 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1564 _cf = 0; 1565 _flag_k = FK_TEST; 1566 PUSH32(esp, esi); /* 0x31005123: push esi */ 1567 if (TEST_NZ(_flag_a, _flag_b)) goto L_31005169; /* 0x31005124: jne 0x31005169 */ 1568 L_31005126: 1569 PUSH32(esp, 0x14u); /* 0x31005126: push 0x14 */ 1570 RECOMP_ICALL(0x310468DAu); /* 0x31005128: call 0x310468da */ /* not lifted */ 1571 RECOMP_FLAGS_IN(); 1572 esi = eax; /* 0x3100512D: mov esi, eax */ 1573 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1574 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1575 esp = esp + 4; /* 0x3100512F: add esp, 4 */ 1576 _flag_k = FK_ADD; 1577 MEM32(ebp + (-0x10)) = esi; /* 0x31005132: mov dword ptr [ebp - 0x10], esi */ 1578 /* test esi, esi */ /* 0x31005135: test esi, esi */ 1579 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 1580 _cf = 0; 1581 _flag_k = FK_TEST; 1582 MEM32(ebp + (-0x4)) = 0; /* 0x31005137: mov dword ptr [ebp - 4], 0 */ 1583 if (TEST_Z(_flag_a, _flag_b)) goto L_3100515A; /* 0x3100513E: je 0x3100515a */ 1584 L_31005140: 1585 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x31005140: mov cl, byte ptr [ebp + 0xb] */ 1586 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x31005143: mov al, byte ptr [ebp + 0xb] */ 1587 MEM8(esi + 0x1) = (uint8_t)(LO8(ecx)); /* 0x31005146: mov byte ptr [esi + 1], cl */ 1588 ecx = esi; /* 0x31005149: mov ecx, esi */ 1589 MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x3100514B: mov byte ptr [esi], al */ 1590 MEM8(esi + 0xC) = (uint8_t)(0); /* 0x3100514D: mov byte ptr [esi + 0xc], 0 */ 1591 RECOMP_ICALL(0x31005AF0u); /* 0x31005151: call 0x31005af0 */ /* not lifted */ 1592 RECOMP_FLAGS_IN(); 1593 ecx = esi; /* 0x31005156: mov ecx, esi */ 1594 goto L_3100515C; /* 0x31005158: jmp 0x3100515c */ 1595 L_3100515A: 1596 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1597 ecx = 0; /* 0x3100515A: xor ecx, ecx */ 1598 _cf = 0; 1599 _flag_k = FK_TEST; 1600 L_3100515C: 1601 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3100515C: mov dword ptr [ebp - 4], 0xffffffff */ 1602 MEM32(0x31057DA8) = ecx; /* 0x31005163: mov dword ptr [0x31057da8], ecx */ 1603 L_31005169: 1604 edx = MEM32(ebp + 0xC); /* 0x31005169: mov edx, dword ptr [ebp + 0xc] */ 1605 esi = MEM32(ebp + 0x8); /* 0x3100516C: mov esi, dword ptr [ebp + 8] */ 1606 eax = ebp + (-0x14); /* 0x3100516F: lea eax, [ebp - 0x14] */ 1607 MEM32(ebp + (-0x10)) = edx; /* 0x31005172: mov dword ptr [ebp - 0x10], edx */ 1608 PUSH32(esp, eax); /* 0x31005175: push eax */ 1609 edx = ebp + (-0x1C); /* 0x31005176: lea edx, [ebp - 0x1c] */ 1610 PUSH32(esp, edx); /* 0x31005179: push edx */ 1611 MEM32(ebp + (-0x14)) = esi; /* 0x3100517A: mov dword ptr [ebp - 0x14], esi */ 1612 RECOMP_ICALL(0x310056B0u); /* 0x3100517D: call 0x310056b0 */ /* not lifted */ 1613 RECOMP_FLAGS_IN(); 1614 ecx = MEM32(eax); /* 0x31005182: mov ecx, dword ptr [eax] */ 1615 MEM32(ebp + (-0x24)) = ecx; /* 0x31005184: mov dword ptr [ebp - 0x24], ecx */ 1616 SET_LO8(ecx, MEM8(eax + 0x4)); /* 0x31005187: mov cl, byte ptr [eax + 4] */ 1617 /* test LO8(ecx), LO8(ecx) */ /* 0x3100518A: test cl, cl */ 1618 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 1619 _cf = 0; 1620 _flag_k = FK_NARROW(FK_TEST, 24); 1621 if (TEST_NZ(_flag_a, _flag_b)) goto L_310051B6; /* 0x3100518C: jne 0x310051b6 */ 1622 L_3100518E: 1623 edx = MEM32(0x310480F4); /* 0x3100518E: mov edx, dword ptr [0x310480f4] */ 1624 PUSH32(esp, esi); /* 0x31005194: push esi */ 1625 PUSH32(esp, 0x31051C34u); /* 0x31005195: push 0x31051c34 */ 1626 PUSH32(esp, edx); /* 0x3100519A: push edx */ 1627 RECOMP_ICALL(MEM32(0x31048098)); /* 0x3100519B: call dword ptr [0x31048098] */ 1628 RECOMP_FLAGS_IN(); 1629 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1630 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1631 esp = esp + 8; /* 0x310051A1: add esp, 8 */ 1632 _flag_k = FK_ADD; 1633 ecx = eax; /* 0x310051A4: mov ecx, eax */ 1634 RECOMP_ICALL(MEM32(0x310480C0)); /* 0x310051A6: call dword ptr [0x310480c0] */ 1635 RECOMP_FLAGS_IN(); 1636 PUSH32(esp, eax); /* 0x310051AC: push eax */ 1637 RECOMP_ICALL(MEM32(0x31048138)); /* 0x310051AD: call dword ptr [0x31048138] */ 1638 RECOMP_FLAGS_IN(); 1639 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1640 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1641 esp = esp + 4; /* 0x310051B3: add esp, 4 */ 1642 _flag_k = FK_ADD; 1643 L_310051B6: 1644 ecx = MEM32(ebp + (-0xC)); /* 0x310051B6: mov ecx, dword ptr [ebp - 0xc] */ 1645 esi = POP32_VAL(esp); /* 0x310051B9: pop esi */ 1646 MEM32(FS_BASE + (0)) = ecx; /* 0x310051BA: mov dword ptr fs:[0], ecx */ 1647 esp = ebp; /* 0x310051C1: mov esp, ebp */ 1648 ebp = POP32_VAL(esp); /* 0x310051C3: pop ebp */ 1649 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x310051C4: ret */ 1650 RECOMP_REGS_OUT(); 1651 } 1652 1653 void sub_310051D0(void) { 1654 int _fpu_cmp = 0; 1655 uint32_t _cf = 0; 1656 int _df = 1; 1657 uint32_t _flag_k = FK_NONE; 1658 uint32_t _flag_a = 0, _flag_b = 0; 1659 uint32_t _itail_tgt = 0; 1660 RECOMP_REGS_LOCALS 1661 RECOMP_ENTER(0x310051D0u); 1662 1663 L_310051D0: 1664 PUSH32(esp, ebp); /* 0x310051D0: push ebp */ 1665 ebp = esp; /* 0x310051D1: mov ebp, esp */ 1666 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1667 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1668 esp = esp - 0xCu; /* 0x310051D3: sub esp, 0xc */ 1669 _flag_k = FK_CMP; 1670 PUSH32(esp, esi); /* 0x310051D6: push esi */ 1671 esi = MEM32(0x31057DA8); /* 0x310051D7: mov esi, dword ptr [0x31057da8] */ 1672 /* test esi, esi */ /* 0x310051DD: test esi, esi */ 1673 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 1674 _cf = 0; 1675 _flag_k = FK_TEST; 1676 if (TEST_Z(_flag_a, _flag_b)) goto L_3100524F; /* 0x310051DF: je 0x3100524f */ 1677 L_310051E1: 1678 PUSH32(esp, ebx); /* 0x310051E1: push ebx */ 1679 PUSH32(esp, edi); /* 0x310051E2: push edi */ 1680 eax = ebp + 0x8; /* 0x310051E3: lea eax, [ebp + 8] */ 1681 PUSH32(esp, eax); /* 0x310051E6: push eax */ 1682 ecx = esi; /* 0x310051E7: mov ecx, esi */ 1683 RECOMP_ICALL(0x31005E10u); /* 0x310051E9: call 0x31005e10 */ /* not lifted */ 1684 RECOMP_FLAGS_IN(); 1685 ecx = ebp + 0x8; /* 0x310051EE: lea ecx, [ebp + 8] */ 1686 PUSH32(esp, ecx); /* 0x310051F1: push ecx */ 1687 edx = ebp + (-0x8); /* 0x310051F2: lea edx, [ebp - 8] */ 1688 PUSH32(esp, edx); /* 0x310051F5: push edx */ 1689 ecx = esi; /* 0x310051F6: mov ecx, esi */ 1690 ebx = eax; /* 0x310051F8: mov ebx, eax */ 1691 RECOMP_ICALL(0x31005A70u); /* 0x310051FA: call 0x31005a70 */ /* not lifted */ 1692 RECOMP_FLAGS_IN(); 1693 edi = MEM32(eax); /* 0x310051FF: mov edi, dword ptr [eax] */ 1694 /* cmp edi, ebx */ /* 0x31005201: cmp edi, ebx */ 1695 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1696 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1697 _flag_k = FK_CMP; 1698 MEM32(ebp + (-0x4)) = edi; /* 0x31005203: mov dword ptr [ebp - 4], edi */ 1699 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005215; /* 0x31005206: je 0x31005215 */ 1700 L_31005208: 1701 ecx = ebp + (-0x4); /* 0x31005208: lea ecx, [ebp - 4] */ 1702 RECOMP_ICALL(0x31005A20u); /* 0x3100520B: call 0x31005a20 */ /* not lifted */ 1703 RECOMP_FLAGS_IN(); 1704 /* cmp MEM32(ebp + (-0x4)), ebx */ /* 0x31005210: cmp dword ptr [ebp - 4], ebx */ 1705 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(ebx); 1706 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1707 _flag_k = FK_CMP; 1708 RECOMP_BACKEDGE(); 1709 if (CMP_NE(_flag_a, _flag_b)) goto L_31005208; /* 0x31005213: jne 0x31005208 */ 1710 L_31005215: 1711 PUSH32(esp, ebx); /* 0x31005215: push ebx */ 1712 PUSH32(esp, edi); /* 0x31005216: push edi */ 1713 eax = ebp + (-0xC); /* 0x31005217: lea eax, [ebp - 0xc] */ 1714 PUSH32(esp, eax); /* 0x3100521A: push eax */ 1715 ecx = esi; /* 0x3100521B: mov ecx, esi */ 1716 RECOMP_ICALL(0x31005900u); /* 0x3100521D: call 0x31005900 */ /* not lifted */ 1717 RECOMP_FLAGS_IN(); 1718 esi = MEM32(0x31057DA8); /* 0x31005222: mov esi, dword ptr [0x31057da8] */ 1719 eax = MEM32(esi + 0x10); /* 0x31005228: mov eax, dword ptr [esi + 0x10] */ 1720 /* test eax, eax */ /* 0x3100522B: test eax, eax */ 1721 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1722 _cf = 0; 1723 _flag_k = FK_TEST; 1724 edi = POP32_VAL(esp); /* 0x3100522D: pop edi */ 1725 ebx = POP32_VAL(esp); /* 0x3100522E: pop ebx */ 1726 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100524F; /* 0x3100522F: jne 0x3100524f */ 1727 L_31005231: 1728 /* test esi, esi */ /* 0x31005231: test esi, esi */ 1729 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 1730 _cf = 0; 1731 _flag_k = FK_TEST; 1732 if (TEST_Z(_flag_a, _flag_b)) goto L_31005245; /* 0x31005233: je 0x31005245 */ 1733 L_31005235: 1734 ecx = esi; /* 0x31005235: mov ecx, esi */ 1735 RECOMP_ICALL(0x31005260u); /* 0x31005237: call 0x31005260 */ /* not lifted */ 1736 RECOMP_FLAGS_IN(); 1737 PUSH32(esp, esi); /* 0x3100523C: push esi */ 1738 RECOMP_ICALL(0x31046858u); /* 0x3100523D: call 0x31046858 */ /* not lifted */ 1739 RECOMP_FLAGS_IN(); 1740 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1741 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1742 esp = esp + 4; /* 0x31005242: add esp, 4 */ 1743 _flag_k = FK_ADD; 1744 L_31005245: 1745 MEM32(0x31057DA8) = 0; /* 0x31005245: mov dword ptr [0x31057da8], 0 */ 1746 L_3100524F: 1747 esi = POP32_VAL(esp); /* 0x3100524F: pop esi */ 1748 esp = ebp; /* 0x31005250: mov esp, ebp */ 1749 ebp = POP32_VAL(esp); /* 0x31005252: pop ebp */ 1750 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31005253: ret */ 1751 RECOMP_REGS_OUT(); 1752 } 1753 1754 void sub_31005260(void) { 1755 int _fpu_cmp = 0; 1756 uint32_t _cf = 0; 1757 int _df = 1; 1758 uint32_t _flag_k = FK_NONE; 1759 uint32_t _flag_a = 0, _flag_b = 0; 1760 uint32_t _itail_tgt = 0; 1761 RECOMP_REGS_LOCALS 1762 RECOMP_ENTER(0x31005260u); 1763 1764 L_31005260: 1765 PUSH32(esp, ebp); /* 0x31005260: push ebp */ 1766 ebp = esp; /* 0x31005261: mov ebp, esp */ 1767 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1768 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1769 esp = esp - 8; /* 0x31005263: sub esp, 8 */ 1770 _flag_k = FK_CMP; 1771 PUSH32(esp, ebx); /* 0x31005266: push ebx */ 1772 PUSH32(esp, esi); /* 0x31005267: push esi */ 1773 esi = ecx; /* 0x31005268: mov esi, ecx */ 1774 ecx = MEM32(esi + 0x10); /* 0x3100526A: mov ecx, dword ptr [esi + 0x10] */ 1775 /* test ecx, ecx */ /* 0x3100526D: test ecx, ecx */ 1776 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1777 _cf = 0; 1778 _flag_k = FK_TEST; 1779 PUSH32(esp, edi); /* 0x3100526F: push edi */ 1780 edi = MEM32(esi + 0x4); /* 0x31005270: mov edi, dword ptr [esi + 4] */ 1781 eax = MEM32(edi); /* 0x31005273: mov eax, dword ptr [edi] */ 1782 MEM32(ebp + (-0x4)) = eax; /* 0x31005275: mov dword ptr [ebp - 4], eax */ 1783 if (TEST_Z(_flag_a, _flag_b)) goto L_310052D5; /* 0x31005278: je 0x310052d5 */ 1784 L_3100527A: 1785 ecx = eax; /* 0x3100527A: mov ecx, eax */ 1786 /* cmp eax, ecx */ /* 0x3100527C: cmp eax, ecx */ 1787 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1788 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1789 _flag_k = FK_CMP; 1790 if (CMP_NE(_flag_a, _flag_b)) goto L_310052D5; /* 0x3100527E: jne 0x310052d5 */ 1791 L_31005280: 1792 /* cmp edi, edi */ /* 0x31005280: cmp edi, edi */ 1793 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 1794 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1795 _flag_k = FK_CMP; 1796 if (CMP_NE(_flag_a, _flag_b)) goto L_310052D5; /* 0x31005282: jne 0x310052d5 */ 1797 L_31005284: 1798 ebx = MEM32(edi + 0x4); /* 0x31005284: mov ebx, dword ptr [edi + 4] */ 1799 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x31005287: cmp ebx, dword ptr [esi + 8] */ 1800 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1801 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1802 _flag_k = FK_CMP; 1803 edi = ebx; /* 0x3100528A: mov edi, ebx */ 1804 if (CMP_EQ(_flag_a, _flag_b)) goto L_310052AD; /* 0x3100528C: je 0x310052ad */ 1805 L_3100528E: 1806 eax = MEM32(edi + 0x8); /* 0x3100528E: mov eax, dword ptr [edi + 8] */ 1807 PUSH32(esp, eax); /* 0x31005291: push eax */ 1808 ecx = esi; /* 0x31005292: mov ecx, esi */ 1809 RECOMP_ICALL(0x31005AB0u); /* 0x31005294: call 0x31005ab0 */ /* not lifted */ 1810 RECOMP_FLAGS_IN(); 1811 edi = MEM32(edi); /* 0x31005299: mov edi, dword ptr [edi] */ 1812 PUSH32(esp, ebx); /* 0x3100529B: push ebx */ 1813 RECOMP_ICALL(0x31046858u); /* 0x3100529C: call 0x31046858 */ /* not lifted */ 1814 RECOMP_FLAGS_IN(); 1815 eax = MEM32(esi + 0x8); /* 0x310052A1: mov eax, dword ptr [esi + 8] */ 1816 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1817 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1818 esp = esp + 4; /* 0x310052A4: add esp, 4 */ 1819 _flag_k = FK_ADD; 1820 /* cmp edi, eax */ /* 0x310052A7: cmp edi, eax */ 1821 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1822 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1823 _flag_k = FK_CMP; 1824 ebx = edi; /* 0x310052A9: mov ebx, edi */ 1825 RECOMP_BACKEDGE(); 1826 if (CMP_NE(_flag_a, _flag_b)) goto L_3100528E; /* 0x310052AB: jne 0x3100528e */ 1827 L_310052AD: 1828 ecx = MEM32(esi + 0x4); /* 0x310052AD: mov ecx, dword ptr [esi + 4] */ 1829 edx = MEM32(esi + 0x8); /* 0x310052B0: mov edx, dword ptr [esi + 8] */ 1830 MEM32(ecx + 0x4) = edx; /* 0x310052B3: mov dword ptr [ecx + 4], edx */ 1831 eax = MEM32(esi + 0x4); /* 0x310052B6: mov eax, dword ptr [esi + 4] */ 1832 MEM32(esi + 0x10) = 0; /* 0x310052B9: mov dword ptr [esi + 0x10], 0 */ 1833 MEM32(eax) = eax; /* 0x310052C0: mov dword ptr [eax], eax */ 1834 eax = MEM32(esi + 0x4); /* 0x310052C2: mov eax, dword ptr [esi + 4] */ 1835 MEM32(eax + 0x8) = eax; /* 0x310052C5: mov dword ptr [eax + 8], eax */ 1836 eax = ebp + (-0x8); /* 0x310052C8: lea eax, [ebp - 8] */ 1837 PUSH32(esp, eax); /* 0x310052CB: push eax */ 1838 ecx = esi; /* 0x310052CC: mov ecx, esi */ 1839 RECOMP_ICALL(0x3100E400u); /* 0x310052CE: call 0x3100e400 */ /* not lifted */ 1840 RECOMP_FLAGS_IN(); 1841 goto L_310052F6; /* 0x310052D3: jmp 0x310052f6 */ 1842 L_310052D5: 1843 /* cmp eax, edi */ /* 0x310052D5: cmp eax, edi */ 1844 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 1845 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1846 _flag_k = FK_CMP; 1847 if (CMP_EQ(_flag_a, _flag_b)) goto L_310052F6; /* 0x310052D7: je 0x310052f6 */ 1848 L_310052D9: 1849 ecx = ebp + (-0x4); /* 0x310052D9: lea ecx, [ebp - 4] */ 1850 ebx = eax; /* 0x310052DC: mov ebx, eax */ 1851 RECOMP_ICALL(0x31005A20u); /* 0x310052DE: call 0x31005a20 */ /* not lifted */ 1852 RECOMP_FLAGS_IN(); 1853 PUSH32(esp, ebx); /* 0x310052E3: push ebx */ 1854 ecx = ebp + (-0x8); /* 0x310052E4: lea ecx, [ebp - 8] */ 1855 PUSH32(esp, ecx); /* 0x310052E7: push ecx */ 1856 ecx = esi; /* 0x310052E8: mov ecx, esi */ 1857 RECOMP_ICALL(0x310099F0u); /* 0x310052EA: call 0x310099f0 */ /* not lifted */ 1858 RECOMP_FLAGS_IN(); 1859 eax = MEM32(ebp + (-0x4)); /* 0x310052EF: mov eax, dword ptr [ebp - 4] */ 1860 /* cmp eax, edi */ /* 0x310052F2: cmp eax, edi */ 1861 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 1862 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1863 _flag_k = FK_CMP; 1864 RECOMP_BACKEDGE(); 1865 if (CMP_NE(_flag_a, _flag_b)) goto L_310052D9; /* 0x310052F4: jne 0x310052d9 */ 1866 L_310052F6: 1867 edx = MEM32(esi + 0x4); /* 0x310052F6: mov edx, dword ptr [esi + 4] */ 1868 PUSH32(esp, edx); /* 0x310052F9: push edx */ 1869 RECOMP_ICALL(0x31046858u); /* 0x310052FA: call 0x31046858 */ /* not lifted */ 1870 RECOMP_FLAGS_IN(); 1871 eax = MEM32(esi + 0x8); /* 0x310052FF: mov eax, dword ptr [esi + 8] */ 1872 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1873 edi = 0; /* 0x31005302: xor edi, edi */ 1874 _cf = 0; 1875 _flag_k = FK_TEST; 1876 PUSH32(esp, eax); /* 0x31005304: push eax */ 1877 MEM32(esi + 0x4) = edi; /* 0x31005305: mov dword ptr [esi + 4], edi */ 1878 MEM32(esi + 0x10) = edi; /* 0x31005308: mov dword ptr [esi + 0x10], edi */ 1879 RECOMP_ICALL(0x31046858u); /* 0x3100530B: call 0x31046858 */ /* not lifted */ 1880 RECOMP_FLAGS_IN(); 1881 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1882 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1883 esp = esp + 8; /* 0x31005310: add esp, 8 */ 1884 _flag_k = FK_ADD; 1885 MEM32(esi + 0x8) = edi; /* 0x31005313: mov dword ptr [esi + 8], edi */ 1886 edi = POP32_VAL(esp); /* 0x31005316: pop edi */ 1887 esi = POP32_VAL(esp); /* 0x31005317: pop esi */ 1888 ebx = POP32_VAL(esp); /* 0x31005318: pop ebx */ 1889 esp = ebp; /* 0x31005319: mov esp, ebp */ 1890 ebp = POP32_VAL(esp); /* 0x3100531B: pop ebp */ 1891 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100531C: ret */ 1892 RECOMP_REGS_OUT(); 1893 } 1894 1895 void sub_31005320(void) { 1896 int _fpu_cmp = 0; 1897 uint32_t _cf = 0; 1898 int _df = 1; 1899 uint32_t _flag_k = FK_NONE; 1900 uint32_t _flag_a = 0, _flag_b = 0; 1901 uint32_t _itail_tgt = 0; 1902 RECOMP_REGS_LOCALS 1903 RECOMP_ENTER(0x31005320u); 1904 1905 L_31005320: 1906 PUSH32(esp, ebp); /* 0x31005320: push ebp */ 1907 ebp = esp; /* 0x31005321: mov ebp, esp */ 1908 PUSH32(esp, ecx); /* 0x31005323: push ecx */ 1909 PUSH32(esp, ebx); /* 0x31005324: push ebx */ 1910 PUSH32(esp, esi); /* 0x31005325: push esi */ 1911 esi = MEM32(0x31057DA8); /* 0x31005326: mov esi, dword ptr [0x31057da8] */ 1912 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 1913 SET_LO8(ebx, 0); /* 0x3100532C: xor bl, bl */ 1914 _cf = 0; 1915 _flag_k = FK_NARROW(FK_TEST, 24); 1916 /* test esi, esi */ /* 0x3100532E: test esi, esi */ 1917 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 1918 _cf = 0; 1919 _flag_k = FK_TEST; 1920 if (TEST_Z(_flag_a, _flag_b)) goto L_31005365; /* 0x31005330: je 0x31005365 */ 1921 L_31005332: 1922 PUSH32(esp, edi); /* 0x31005332: push edi */ 1923 edi = MEM32(esi + 0x4); /* 0x31005333: mov edi, dword ptr [esi + 4] */ 1924 eax = ebp + 0x8; /* 0x31005336: lea eax, [ebp + 8] */ 1925 PUSH32(esp, eax); /* 0x31005339: push eax */ 1926 ecx = esi; /* 0x3100533A: mov ecx, esi */ 1927 RECOMP_ICALL(0x31005DB0u); /* 0x3100533C: call 0x31005db0 */ /* not lifted */ 1928 RECOMP_FLAGS_IN(); 1929 esi = MEM32(esi + 0x4); /* 0x31005341: mov esi, dword ptr [esi + 4] */ 1930 /* cmp eax, esi */ /* 0x31005344: cmp eax, esi */ 1931 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1932 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1933 _flag_k = FK_CMP; 1934 MEM32(ebp + (-0x4)) = eax; /* 0x31005346: mov dword ptr [ebp - 4], eax */ 1935 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005358; /* 0x31005349: je 0x31005358 */ 1936 L_3100534B: 1937 ecx = MEM32(ebp + 0x8); /* 0x3100534B: mov ecx, dword ptr [ebp + 8] */ 1938 /* cmp ecx, MEM32(eax + 0xC) */ /* 0x3100534E: cmp ecx, dword ptr [eax + 0xc] */ 1939 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0xC)); 1940 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1941 _flag_k = FK_CMP; 1942 if (CMP_L(_flag_a, _flag_b)) goto L_31005358; /* 0x31005351: jl 0x31005358 */ 1943 L_31005353: 1944 eax = ebp + (-0x4); /* 0x31005353: lea eax, [ebp - 4] */ 1945 goto L_3100535E; /* 0x31005356: jmp 0x3100535e */ 1946 L_31005358: 1947 MEM32(ebp + 0x8) = esi; /* 0x31005358: mov dword ptr [ebp + 8], esi */ 1948 eax = ebp + 0x8; /* 0x3100535B: lea eax, [ebp + 8] */ 1949 L_3100535E: 1950 /* cmp MEM32(eax), edi */ /* 0x3100535E: cmp dword ptr [eax], edi */ 1951 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(edi); 1952 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1953 _flag_k = FK_CMP; 1954 edi = POP32_VAL(esp); /* 0x31005360: pop edi */ 1955 SET_LO8(eax, 1); /* 0x31005361: mov al, 1 */ 1956 if (CMP_NE(_flag_a, _flag_b)) goto L_31005367; /* 0x31005363: jne 0x31005367 */ 1957 L_31005365: 1958 SET_LO8(eax, LO8(ebx)); /* 0x31005365: mov al, bl */ 1959 L_31005367: 1960 esi = POP32_VAL(esp); /* 0x31005367: pop esi */ 1961 ebx = POP32_VAL(esp); /* 0x31005368: pop ebx */ 1962 esp = ebp; /* 0x31005369: mov esp, ebp */ 1963 ebp = POP32_VAL(esp); /* 0x3100536B: pop ebp */ 1964 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100536C: ret */ 1965 RECOMP_REGS_OUT(); 1966 } 1967 1968 void sub_31005370(void) { 1969 int _fpu_cmp = 0; 1970 uint32_t _cf = 0; 1971 int _df = 1; 1972 uint32_t _flag_k = FK_NONE; 1973 uint32_t _flag_a = 0, _flag_b = 0; 1974 uint32_t _itail_tgt = 0; 1975 RECOMP_REGS_LOCALS 1976 RECOMP_ENTER(0x31005370u); 1977 1978 L_31005370: 1979 PUSH32(esp, ebp); /* 0x31005370: push ebp */ 1980 ebp = esp; /* 0x31005371: mov ebp, esp */ 1981 eax = MEM32(ebp + 0x8); /* 0x31005373: mov eax, dword ptr [ebp + 8] */ 1982 edx = MEM32(eax); /* 0x31005376: mov edx, dword ptr [eax] */ 1983 MEM32(ecx + 0x8) = edx; /* 0x31005378: mov dword ptr [ecx + 8], edx */ 1984 ebp = POP32_VAL(esp); /* 0x3100537B: pop ebp */ 1985 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3100537C: ret 4 */ 1986 RECOMP_REGS_OUT(); 1987 } 1988 1989 void sub_31005380(void) { 1990 int _fpu_cmp = 0; 1991 uint32_t _cf = 0; 1992 int _df = 1; 1993 uint32_t _flag_k = FK_NONE; 1994 uint32_t _flag_a = 0, _flag_b = 0; 1995 uint32_t _itail_tgt = 0; 1996 RECOMP_REGS_LOCALS 1997 RECOMP_ENTER(0x31005380u); 1998 1999 L_31005380: 2000 PUSH32(esp, ebp); /* 0x31005380: push ebp */ 2001 ebp = esp; /* 0x31005381: mov ebp, esp */ 2002 PUSH32(esp, ecx); /* 0x31005383: push ecx */ 2003 ecx = MEM32(0x31057DA8); /* 0x31005384: mov ecx, dword ptr [0x31057da8] */ 2004 /* test ecx, ecx */ /* 0x3100538A: test ecx, ecx */ 2005 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2006 _cf = 0; 2007 _flag_k = FK_TEST; 2008 if (TEST_NZ(_flag_a, _flag_b)) goto L_31005394; /* 0x3100538C: jne 0x31005394 */ 2009 L_3100538E: 2010 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2011 eax = 0; /* 0x3100538E: xor eax, eax */ 2012 _cf = 0; 2013 _flag_k = FK_TEST; 2014 esp = ebp; /* 0x31005390: mov esp, ebp */ 2015 ebp = POP32_VAL(esp); /* 0x31005392: pop ebp */ 2016 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31005393: ret */ 2017 L_31005394: 2018 PUSH32(esp, esi); /* 0x31005394: push esi */ 2019 esi = MEM32(ebp + 0x8); /* 0x31005395: mov esi, dword ptr [ebp + 8] */ 2020 eax = MEM32(esi); /* 0x31005398: mov eax, dword ptr [esi] */ 2021 PUSH32(esp, edi); /* 0x3100539A: push edi */ 2022 edx = ebp + 0x8; /* 0x3100539B: lea edx, [ebp + 8] */ 2023 MEM32(ebp + 0x8) = eax; /* 0x3100539E: mov dword ptr [ebp + 8], eax */ 2024 PUSH32(esp, edx); /* 0x310053A1: push edx */ 2025 eax = ebp + (-0x4); /* 0x310053A2: lea eax, [ebp - 4] */ 2026 PUSH32(esp, eax); /* 0x310053A5: push eax */ 2027 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2028 edi = 0; /* 0x310053A6: xor edi, edi */ 2029 _cf = 0; 2030 _flag_k = FK_TEST; 2031 RECOMP_ICALL(0x310059B0u); /* 0x310053A8: call 0x310059b0 */ /* not lifted */ 2032 RECOMP_FLAGS_IN(); 2033 ecx = MEM32(0x31057DA8); /* 0x310053AD: mov ecx, dword ptr [0x31057da8] */ 2034 eax = MEM32(eax); /* 0x310053B3: mov eax, dword ptr [eax] */ 2035 ecx = MEM32(ecx + 0x4); /* 0x310053B5: mov ecx, dword ptr [ecx + 4] */ 2036 /* cmp eax, ecx */ /* 0x310053B8: cmp eax, ecx */ 2037 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2038 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2039 _flag_k = FK_CMP; 2040 if (CMP_NE(_flag_a, _flag_b)) goto L_31005403; /* 0x310053BA: jne 0x31005403 */ 2041 L_310053BC: 2042 eax = MEM32(ecx); /* 0x310053BC: mov eax, dword ptr [ecx] */ 2043 /* cmp eax, ecx */ /* 0x310053BE: cmp eax, ecx */ 2044 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2045 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2046 _flag_k = FK_CMP; 2047 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005412; /* 0x310053C0: je 0x31005412 */ 2048 L_310053C2: 2049 ecx = MEM32(eax + 0x8); /* 0x310053C2: mov ecx, dword ptr [eax + 8] */ 2050 SET_LO8(edx, MEM8(ecx + 0x15)); /* 0x310053C5: mov dl, byte ptr [ecx + 0x15] */ 2051 /* test LO8(edx), LO8(edx) */ /* 0x310053C8: test dl, dl */ 2052 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2053 _cf = 0; 2054 _flag_k = FK_NARROW(FK_TEST, 24); 2055 if (TEST_NZ(_flag_a, _flag_b)) goto L_310053D7; /* 0x310053CA: jne 0x310053d7 */ 2056 L_310053CC: 2057 PUSH32(esp, ecx); /* 0x310053CC: push ecx */ 2058 RECOMP_ICALL(0x31005D90u); /* 0x310053CD: call 0x31005d90 */ /* not lifted */ 2059 RECOMP_FLAGS_IN(); 2060 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2061 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2062 esp = esp + 4; /* 0x310053D2: add esp, 4 */ 2063 _flag_k = FK_ADD; 2064 goto L_310053F0; /* 0x310053D5: jmp 0x310053f0 */ 2065 L_310053D7: 2066 ecx = MEM32(eax + 0x4); /* 0x310053D7: mov ecx, dword ptr [eax + 4] */ 2067 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x310053DA: cmp eax, dword ptr [ecx + 8] */ 2068 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 2069 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2070 _flag_k = FK_CMP; 2071 if (CMP_NE(_flag_a, _flag_b)) goto L_310053E9; /* 0x310053DD: jne 0x310053e9 */ 2072 L_310053DF: 2073 eax = ecx; /* 0x310053DF: mov eax, ecx */ 2074 ecx = MEM32(ecx + 0x4); /* 0x310053E1: mov ecx, dword ptr [ecx + 4] */ 2075 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x310053E4: cmp eax, dword ptr [ecx + 8] */ 2076 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 2077 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2078 _flag_k = FK_CMP; 2079 RECOMP_BACKEDGE(); 2080 if (CMP_EQ(_flag_a, _flag_b)) goto L_310053DF; /* 0x310053E7: je 0x310053df */ 2081 L_310053E9: 2082 /* cmp MEM32(eax + 0x8), ecx */ /* 0x310053E9: cmp dword ptr [eax + 8], ecx */ 2083 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ecx); 2084 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2085 _flag_k = FK_CMP; 2086 if (CMP_EQ(_flag_a, _flag_b)) goto L_310053F0; /* 0x310053EC: je 0x310053f0 */ 2087 L_310053EE: 2088 eax = ecx; /* 0x310053EE: mov eax, ecx */ 2089 L_310053F0: 2090 edx = MEM32(0x31057DA8); /* 0x310053F0: mov edx, dword ptr [0x31057da8] */ 2091 /* cmp eax, MEM32(edx + 0x4) */ /* 0x310053F6: cmp eax, dword ptr [edx + 4] */ 2092 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2093 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2094 _flag_k = FK_CMP; 2095 RECOMP_BACKEDGE(); 2096 if (CMP_NE(_flag_a, _flag_b)) goto L_310053C2; /* 0x310053F9: jne 0x310053c2 */ 2097 L_310053FB: 2098 eax = edi; /* 0x310053FB: mov eax, edi */ 2099 edi = POP32_VAL(esp); /* 0x310053FD: pop edi */ 2100 esi = POP32_VAL(esp); /* 0x310053FE: pop esi */ 2101 esp = ebp; /* 0x310053FF: mov esp, ebp */ 2102 ebp = POP32_VAL(esp); /* 0x31005401: pop ebp */ 2103 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31005402: ret */ 2104 L_31005403: 2105 ecx = MEM32(esi + 0x4); /* 0x31005403: mov ecx, dword ptr [esi + 4] */ 2106 esi = MEM32(esi); /* 0x31005406: mov esi, dword ptr [esi] */ 2107 PUSH32(esp, ecx); /* 0x31005408: push ecx */ 2108 PUSH32(esp, esi); /* 0x31005409: push esi */ 2109 RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x3100540A: call dword ptr [eax + 0x10] */ 2110 RECOMP_FLAGS_IN(); 2111 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2112 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2113 esp = esp + 8; /* 0x3100540D: add esp, 8 */ 2114 _flag_k = FK_ADD; 2115 edi = eax; /* 0x31005410: mov edi, eax */ 2116 L_31005412: 2117 eax = edi; /* 0x31005412: mov eax, edi */ 2118 edi = POP32_VAL(esp); /* 0x31005414: pop edi */ 2119 esi = POP32_VAL(esp); /* 0x31005415: pop esi */ 2120 esp = ebp; /* 0x31005416: mov esp, ebp */ 2121 ebp = POP32_VAL(esp); /* 0x31005418: pop ebp */ 2122 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31005419: ret */ 2123 RECOMP_REGS_OUT(); 2124 } 2125 2126 void sub_31005420(void) { 2127 int _fpu_cmp = 0; 2128 uint32_t _cf = 0; 2129 int _df = 1; 2130 uint32_t _flag_k = FK_NONE; 2131 uint32_t _flag_a = 0, _flag_b = 0; 2132 uint32_t _itail_tgt = 0; 2133 RECOMP_REGS_LOCALS 2134 RECOMP_ENTER(0x31005420u); 2135 2136 L_31005420: 2137 PUSH32(esp, ebp); /* 0x31005420: push ebp */ 2138 ebp = esp; /* 0x31005421: mov ebp, esp */ 2139 PUSH32(esp, 0xFFFFFFFFu); /* 0x31005423: push -1 */ 2140 PUSH32(esp, 0x31046F7Bu); /* 0x31005425: push 0x31046f7b */ 2141 eax = MEM32(FS_BASE + (0)); /* 0x3100542A: mov eax, dword ptr fs:[0] */ 2142 PUSH32(esp, eax); /* 0x31005430: push eax */ 2143 MEM32(FS_BASE + (0)) = esp; /* 0x31005431: mov dword ptr fs:[0], esp */ 2144 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 2145 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2146 esp = esp - 0x20u; /* 0x31005438: sub esp, 0x20 */ 2147 _flag_k = FK_CMP; 2148 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3100543B: mov al, byte ptr [ebp + 0xb] */ 2149 PUSH32(esp, ebx); /* 0x3100543E: push ebx */ 2150 PUSH32(esp, esi); /* 0x3100543F: push esi */ 2151 PUSH32(esp, edi); /* 0x31005440: push edi */ 2152 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2153 ecx = ecx | 0xFFFFFFFFu; /* 0x31005441: or ecx, 0xffffffff */ 2154 _cf = 0; 2155 _flag_k = FK_TEST; 2156 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2157 ebx = 0; /* 0x31005444: xor ebx, ebx */ 2158 _cf = 0; 2159 _flag_k = FK_TEST; 2160 MEM8(ebp + (-0x1C)) = (uint8_t)(LO8(eax)); /* 0x31005446: mov byte ptr [ebp - 0x1c], al */ 2161 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2162 eax = 0; /* 0x31005449: xor eax, eax */ 2163 _cf = 0; 2164 _flag_k = FK_TEST; 2165 edi = 0x31051C8Cu; /* 0x3100544B: mov edi, 0x31051c8c */ 2166 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x31005450: repne scasb al, byte ptr es:[edi] */ 2167 ecx = ~ecx; /* 0x31005452: not ecx */ 2168 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2169 ecx = ecx - 1; /* 0x31005454: dec ecx */ 2170 _flag_k = FK_DEC; 2171 PUSH32(esp, ecx); /* 0x31005455: push ecx */ 2172 PUSH32(esp, 0x31051C8Cu); /* 0x31005456: push 0x31051c8c */ 2173 ecx = ebp + (-0x1C); /* 0x3100545B: lea ecx, [ebp - 0x1c] */ 2174 MEM32(ebp + (-0x18)) = ebx; /* 0x3100545E: mov dword ptr [ebp - 0x18], ebx */ 2175 MEM32(ebp + (-0x14)) = ebx; /* 0x31005461: mov dword ptr [ebp - 0x14], ebx */ 2176 MEM32(ebp + (-0x10)) = ebx; /* 0x31005464: mov dword ptr [ebp - 0x10], ebx */ 2177 RECOMP_ICALL(MEM32(0x310480F0)); /* 0x31005467: call dword ptr [0x310480f0] */ 2178 RECOMP_FLAGS_IN(); 2179 esi = MEM32(ebp + 0x8); /* 0x3100546D: mov esi, dword ptr [ebp + 8] */ 2180 edx = MEM32(esi); /* 0x31005470: mov edx, dword ptr [esi] */ 2181 PUSH32(esp, ebx); /* 0x31005472: push ebx */ 2182 PUSH32(esp, 2); /* 0x31005473: push 2 */ 2183 eax = ebp + (-0x1C); /* 0x31005475: lea eax, [ebp - 0x1c] */ 2184 PUSH32(esp, eax); /* 0x31005478: push eax */ 2185 ecx = esi; /* 0x31005479: mov ecx, esi */ 2186 MEM32(ebp + (-0x4)) = ebx; /* 0x3100547B: mov dword ptr [ebp - 4], ebx */ 2187 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x3100547E: call dword ptr [edx + 0x10] */ 2188 RECOMP_FLAGS_IN(); 2189 eax = MEM32(ebp + (-0x18)); /* 0x31005481: mov eax, dword ptr [ebp - 0x18] */ 2190 /* cmp eax, ebx */ /* 0x31005484: cmp eax, ebx */ 2191 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2192 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2193 _flag_k = FK_CMP; 2194 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x31005486: mov dword ptr [ebp - 4], 0xffffffff */ 2195 if (CMP_EQ(_flag_a, _flag_b)) goto L_310054AB; /* 0x3100548D: je 0x310054ab */ 2196 L_3100548F: 2197 ecx = eax + (-0x1); /* 0x3100548F: lea ecx, [eax - 1] */ 2198 SET_LO8(eax, MEM8(ecx)); /* 0x31005492: mov al, byte ptr [ecx] */ 2199 /* test LO8(eax), LO8(eax) */ /* 0x31005494: test al, al */ 2200 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2201 _cf = 0; 2202 _flag_k = FK_NARROW(FK_TEST, 24); 2203 if (TEST_Z(_flag_a, _flag_b)) goto L_310054A2; /* 0x31005496: je 0x310054a2 */ 2204 L_31005498: 2205 /* cmp LO8(eax), 0xFFu */ /* 0x31005498: cmp al, 0xff */ 2206 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 2207 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2208 _flag_k = FK_NARROW(FK_CMP, 24); 2209 if (CMP_EQ(_flag_a, _flag_b)) goto L_310054A2; /* 0x3100549A: je 0x310054a2 */ 2210 L_3100549C: 2211 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2212 SET_LO8(eax, LO8(eax) - 1); /* 0x3100549C: dec al */ 2213 _flag_k = FK_NARROW(FK_DEC, 24); 2214 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3100549E: mov byte ptr [ecx], al */ 2215 goto L_310054AB; /* 0x310054A0: jmp 0x310054ab */ 2216 L_310054A2: 2217 PUSH32(esp, ecx); /* 0x310054A2: push ecx */ 2218 RECOMP_ICALL(0x31046858u); /* 0x310054A3: call 0x31046858 */ /* not lifted */ 2219 RECOMP_FLAGS_IN(); 2220 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2221 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2222 esp = esp + 4; /* 0x310054A8: add esp, 4 */ 2223 _flag_k = FK_ADD; 2224 L_310054AB: 2225 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x310054AB: mov cl, byte ptr [ebp + 0xb] */ 2226 MEM8(ebp + (-0x1C)) = (uint8_t)(LO8(ecx)); /* 0x310054AE: mov byte ptr [ebp - 0x1c], cl */ 2227 PUSH32(esp, ebx); /* 0x310054B1: push ebx */ 2228 ecx = ebp + (-0x1C); /* 0x310054B2: lea ecx, [ebp - 0x1c] */ 2229 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x310054B5: call dword ptr [0x310480d4] */ 2230 RECOMP_FLAGS_IN(); 2231 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2232 ecx = ecx | 0xFFFFFFFFu; /* 0x310054BB: or ecx, 0xffffffff */ 2233 _cf = 0; 2234 _flag_k = FK_TEST; 2235 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2236 eax = 0; /* 0x310054BE: xor eax, eax */ 2237 _cf = 0; 2238 _flag_k = FK_TEST; 2239 edi = 0x31051C80u; /* 0x310054C0: mov edi, 0x31051c80 */ 2240 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x310054C5: repne scasb al, byte ptr es:[edi] */ 2241 ecx = ~ecx; /* 0x310054C7: not ecx */ 2242 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2243 ecx = ecx - 1; /* 0x310054C9: dec ecx */ 2244 _flag_k = FK_DEC; 2245 ebx = ecx; /* 0x310054CA: mov ebx, ecx */ 2246 PUSH32(esp, 1); /* 0x310054CC: push 1 */ 2247 PUSH32(esp, ebx); /* 0x310054CE: push ebx */ 2248 ecx = ebp + (-0x1C); /* 0x310054CF: lea ecx, [ebp - 0x1c] */ 2249 RECOMP_ICALL(MEM32(0x31048070)); /* 0x310054D2: call dword ptr [0x31048070] */ 2250 RECOMP_FLAGS_IN(); 2251 /* test LO8(eax), LO8(eax) */ /* 0x310054D8: test al, al */ 2252 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2253 _cf = 0; 2254 _flag_k = FK_NARROW(FK_TEST, 24); 2255 if (TEST_Z(_flag_a, _flag_b)) goto L_31005501; /* 0x310054DA: je 0x31005501 */ 2256 L_310054DC: 2257 edi = MEM32(ebp + (-0x18)); /* 0x310054DC: mov edi, dword ptr [ebp - 0x18] */ 2258 ecx = ebx; /* 0x310054DF: mov ecx, ebx */ 2259 edx = ecx; /* 0x310054E1: mov edx, ecx */ 2260 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x310054E3: shr ecx, 2 */ 2261 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2262 ecx = ecx >> 2u; /* 0x310054E3: shr ecx, 2 */ 2263 esi = 0x31051C80u; /* 0x310054E6: mov esi, 0x31051c80 */ 2264 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x310054EB: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 2265 ecx = edx; /* 0x310054ED: mov ecx, edx */ 2266 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 2267 ecx = ecx & 3; /* 0x310054EF: and ecx, 3 */ 2268 _cf = 0; 2269 _flag_k = FK_TEST; 2270 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x310054F2: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 2271 eax = MEM32(ebp + (-0x18)); /* 0x310054F4: mov eax, dword ptr [ebp - 0x18] */ 2272 esi = MEM32(ebp + 0x8); /* 0x310054F7: mov esi, dword ptr [ebp + 8] */ 2273 MEM32(ebp + (-0x14)) = ebx; /* 0x310054FA: mov dword ptr [ebp - 0x14], ebx */ 2274 MEM8(eax + ebx) = (uint8_t)(0); /* 0x310054FD: mov byte ptr [eax + ebx], 0 */ 2275 L_31005501: 2276 edx = MEM32(esi); /* 0x31005501: mov edx, dword ptr [esi] */ 2277 PUSH32(esp, 0); /* 0x31005503: push 0 */ 2278 PUSH32(esp, 2); /* 0x31005505: push 2 */ 2279 eax = ebp + (-0x1C); /* 0x31005507: lea eax, [ebp - 0x1c] */ 2280 PUSH32(esp, eax); /* 0x3100550A: push eax */ 2281 ecx = esi; /* 0x3100550B: mov ecx, esi */ 2282 MEM32(ebp + (-0x4)) = 1; /* 0x3100550D: mov dword ptr [ebp - 4], 1 */ 2283 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x31005514: call dword ptr [edx + 0x10] */ 2284 RECOMP_FLAGS_IN(); 2285 eax = MEM32(ebp + (-0x18)); /* 0x31005517: mov eax, dword ptr [ebp - 0x18] */ 2286 /* test eax, eax */ /* 0x3100551A: test eax, eax */ 2287 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2288 _cf = 0; 2289 _flag_k = FK_TEST; 2290 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3100551C: mov dword ptr [ebp - 4], 0xffffffff */ 2291 if (TEST_Z(_flag_a, _flag_b)) goto L_31005541; /* 0x31005523: je 0x31005541 */ 2292 L_31005525: 2293 ecx = eax + (-0x1); /* 0x31005525: lea ecx, [eax - 1] */ 2294 SET_LO8(eax, MEM8(ecx)); /* 0x31005528: mov al, byte ptr [ecx] */ 2295 /* test LO8(eax), LO8(eax) */ /* 0x3100552A: test al, al */ 2296 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2297 _cf = 0; 2298 _flag_k = FK_NARROW(FK_TEST, 24); 2299 if (TEST_Z(_flag_a, _flag_b)) goto L_31005538; /* 0x3100552C: je 0x31005538 */ 2300 L_3100552E: 2301 /* cmp LO8(eax), 0xFFu */ /* 0x3100552E: cmp al, 0xff */ 2302 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 2303 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2304 _flag_k = FK_NARROW(FK_CMP, 24); 2305 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005538; /* 0x31005530: je 0x31005538 */ 2306 L_31005532: 2307 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2308 SET_LO8(eax, LO8(eax) - 1); /* 0x31005532: dec al */ 2309 _flag_k = FK_NARROW(FK_DEC, 24); 2310 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x31005534: mov byte ptr [ecx], al */ 2311 goto L_31005541; /* 0x31005536: jmp 0x31005541 */ 2312 L_31005538: 2313 PUSH32(esp, ecx); /* 0x31005538: push ecx */ 2314 RECOMP_ICALL(0x31046858u); /* 0x31005539: call 0x31046858 */ /* not lifted */ 2315 RECOMP_FLAGS_IN(); 2316 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2317 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2318 esp = esp + 4; /* 0x3100553E: add esp, 4 */ 2319 _flag_k = FK_ADD; 2320 L_31005541: 2321 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x31005541: mov cl, byte ptr [ebp + 0xb] */ 2322 MEM8(ebp + (-0x2C)) = (uint8_t)(LO8(ecx)); /* 0x31005544: mov byte ptr [ebp - 0x2c], cl */ 2323 PUSH32(esp, 0); /* 0x31005547: push 0 */ 2324 ecx = ebp + (-0x2C); /* 0x31005549: lea ecx, [ebp - 0x2c] */ 2325 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x3100554C: call dword ptr [0x310480d4] */ 2326 RECOMP_FLAGS_IN(); 2327 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2328 ecx = ecx | 0xFFFFFFFFu; /* 0x31005552: or ecx, 0xffffffff */ 2329 _cf = 0; 2330 _flag_k = FK_TEST; 2331 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2332 eax = 0; /* 0x31005555: xor eax, eax */ 2333 _cf = 0; 2334 _flag_k = FK_TEST; 2335 edi = 0x31051C74u; /* 0x31005557: mov edi, 0x31051c74 */ 2336 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x3100555C: repne scasb al, byte ptr es:[edi] */ 2337 ecx = ~ecx; /* 0x3100555E: not ecx */ 2338 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2339 ecx = ecx - 1; /* 0x31005560: dec ecx */ 2340 _flag_k = FK_DEC; 2341 ebx = ecx; /* 0x31005561: mov ebx, ecx */ 2342 PUSH32(esp, 1); /* 0x31005563: push 1 */ 2343 PUSH32(esp, ebx); /* 0x31005565: push ebx */ 2344 ecx = ebp + (-0x2C); /* 0x31005566: lea ecx, [ebp - 0x2c] */ 2345 RECOMP_ICALL(MEM32(0x31048070)); /* 0x31005569: call dword ptr [0x31048070] */ 2346 RECOMP_FLAGS_IN(); 2347 /* test LO8(eax), LO8(eax) */ /* 0x3100556F: test al, al */ 2348 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2349 _cf = 0; 2350 _flag_k = FK_NARROW(FK_TEST, 24); 2351 if (TEST_Z(_flag_a, _flag_b)) goto L_31005598; /* 0x31005571: je 0x31005598 */ 2352 L_31005573: 2353 edi = MEM32(ebp + (-0x28)); /* 0x31005573: mov edi, dword ptr [ebp - 0x28] */ 2354 ecx = ebx; /* 0x31005576: mov ecx, ebx */ 2355 edx = ecx; /* 0x31005578: mov edx, ecx */ 2356 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3100557A: shr ecx, 2 */ 2357 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2358 ecx = ecx >> 2u; /* 0x3100557A: shr ecx, 2 */ 2359 esi = 0x31051C74u; /* 0x3100557D: mov esi, 0x31051c74 */ 2360 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x31005582: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 2361 ecx = edx; /* 0x31005584: mov ecx, edx */ 2362 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 2363 ecx = ecx & 3; /* 0x31005586: and ecx, 3 */ 2364 _cf = 0; 2365 _flag_k = FK_TEST; 2366 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x31005589: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 2367 eax = MEM32(ebp + (-0x28)); /* 0x3100558B: mov eax, dword ptr [ebp - 0x28] */ 2368 esi = MEM32(ebp + 0x8); /* 0x3100558E: mov esi, dword ptr [ebp + 8] */ 2369 MEM32(ebp + (-0x24)) = ebx; /* 0x31005591: mov dword ptr [ebp - 0x24], ebx */ 2370 MEM8(eax + ebx) = (uint8_t)(0); /* 0x31005594: mov byte ptr [eax + ebx], 0 */ 2371 L_31005598: 2372 edx = MEM32(esi); /* 0x31005598: mov edx, dword ptr [esi] */ 2373 PUSH32(esp, 0); /* 0x3100559A: push 0 */ 2374 PUSH32(esp, 2); /* 0x3100559C: push 2 */ 2375 eax = ebp + (-0x2C); /* 0x3100559E: lea eax, [ebp - 0x2c] */ 2376 PUSH32(esp, eax); /* 0x310055A1: push eax */ 2377 ecx = esi; /* 0x310055A2: mov ecx, esi */ 2378 MEM32(ebp + (-0x4)) = 2; /* 0x310055A4: mov dword ptr [ebp - 4], 2 */ 2379 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x310055AB: call dword ptr [edx + 0x10] */ 2380 RECOMP_FLAGS_IN(); 2381 PUSH32(esp, 1); /* 0x310055AE: push 1 */ 2382 ecx = ebp + (-0x2C); /* 0x310055B0: lea ecx, [ebp - 0x2c] */ 2383 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x310055B3: mov dword ptr [ebp - 4], 0xffffffff */ 2384 RECOMP_ICALL(MEM32(0x310480D4)); /* 0x310055BA: call dword ptr [0x310480d4] */ 2385 RECOMP_FLAGS_IN(); 2386 ecx = MEM32(ebp + (-0xC)); /* 0x310055C0: mov ecx, dword ptr [ebp - 0xc] */ 2387 edi = POP32_VAL(esp); /* 0x310055C3: pop edi */ 2388 esi = POP32_VAL(esp); /* 0x310055C4: pop esi */ 2389 ebx = POP32_VAL(esp); /* 0x310055C5: pop ebx */ 2390 MEM32(FS_BASE + (0)) = ecx; /* 0x310055C6: mov dword ptr fs:[0], ecx */ 2391 esp = ebp; /* 0x310055CD: mov esp, ebp */ 2392 ebp = POP32_VAL(esp); /* 0x310055CF: pop ebp */ 2393 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x310055D0: ret 4 */ 2394 RECOMP_REGS_OUT(); 2395 } 2396 2397 void sub_310055E0(void) { 2398 int _fpu_cmp = 0; 2399 uint32_t _cf = 0; 2400 int _df = 1; 2401 uint32_t _flag_k = FK_NONE; 2402 uint32_t _flag_a = 0, _flag_b = 0; 2403 uint32_t _itail_tgt = 0; 2404 RECOMP_REGS_LOCALS 2405 RECOMP_ENTER(0x310055E0u); 2406 2407 L_310055E0: 2408 PUSH32(esp, ebp); /* 0x310055E0: push ebp */ 2409 ebp = esp; /* 0x310055E1: mov ebp, esp */ 2410 eax = MEM32(ebp + 0x8); /* 0x310055E3: mov eax, dword ptr [ebp + 8] */ 2411 PUSH32(esp, esi); /* 0x310055E6: push esi */ 2412 esi = MEM32(ecx + 0x10); /* 0x310055E7: mov esi, dword ptr [ecx + 0x10] */ 2413 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 2414 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2415 ecx = ecx + 4; /* 0x310055EA: add ecx, 4 */ 2416 _flag_k = FK_ADD; 2417 PUSH32(esp, ecx); /* 0x310055ED: push ecx */ 2418 PUSH32(esp, eax); /* 0x310055EE: push eax */ 2419 RECOMP_ICALL(0x31011180u); /* 0x310055EF: call 0x31011180 */ /* not lifted */ 2420 RECOMP_FLAGS_IN(); 2421 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2422 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2423 esp = esp + 8; /* 0x310055F4: add esp, 8 */ 2424 _flag_k = FK_ADD; 2425 PUSH32(esp, esi); /* 0x310055F7: push esi */ 2426 ecx = eax; /* 0x310055F8: mov ecx, eax */ 2427 RECOMP_ICALL(MEM32(0x3104831C)); /* 0x310055FA: call dword ptr [0x3104831c] */ 2428 RECOMP_FLAGS_IN(); 2429 esi = POP32_VAL(esp); /* 0x31005600: pop esi */ 2430 ebp = POP32_VAL(esp); /* 0x31005601: pop ebp */ 2431 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31005602: ret 4 */ 2432 RECOMP_REGS_OUT(); 2433 } 2434 2435 void sub_31005610(void) { 2436 int _fpu_cmp = 0; 2437 uint32_t _cf = 0; 2438 int _df = 1; 2439 uint32_t _flag_k = FK_NONE; 2440 uint32_t _flag_a = 0, _flag_b = 0; 2441 uint32_t _itail_tgt = 0; 2442 RECOMP_REGS_LOCALS 2443 RECOMP_ENTER(0x31005610u); 2444 2445 L_31005610: 2446 PUSH32(esp, ebp); /* 0x31005610: push ebp */ 2447 ebp = esp; /* 0x31005611: mov ebp, esp */ 2448 PUSH32(esp, esi); /* 0x31005613: push esi */ 2449 esi = ecx; /* 0x31005614: mov esi, ecx */ 2450 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2451 ecx = 0; /* 0x31005616: xor ecx, ecx */ 2452 _cf = 0; 2453 _flag_k = FK_TEST; 2454 SET_LO8(ecx, MEM8(esi + 0x14)); /* 0x31005618: mov cl, byte ptr [esi + 0x14] */ 2455 PUSH32(esp, edi); /* 0x3100561B: push edi */ 2456 edi = MEM32(ebp + 0x8); /* 0x3100561C: mov edi, dword ptr [ebp + 8] */ 2457 eax = MEM32(edi); /* 0x3100561F: mov eax, dword ptr [edi] */ 2458 PUSH32(esp, ecx); /* 0x31005621: push ecx */ 2459 ecx = edi; /* 0x31005622: mov ecx, edi */ 2460 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x31005624: call dword ptr [eax + 4] */ 2461 RECOMP_FLAGS_IN(); 2462 edx = MEM32(esi + 0x10); /* 0x31005627: mov edx, dword ptr [esi + 0x10] */ 2463 PUSH32(esp, edx); /* 0x3100562A: push edx */ 2464 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 2465 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2466 esi = esi + 4; /* 0x3100562B: add esi, 4 */ 2467 _flag_k = FK_ADD; 2468 PUSH32(esp, esi); /* 0x3100562E: push esi */ 2469 PUSH32(esp, edi); /* 0x3100562F: push edi */ 2470 RECOMP_ICALL(0x31006480u); /* 0x31005630: call 0x31006480 */ /* not lifted */ 2471 RECOMP_FLAGS_IN(); 2472 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2473 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2474 esp = esp + 8; /* 0x31005635: add esp, 8 */ 2475 _flag_k = FK_ADD; 2476 PUSH32(esp, eax); /* 0x31005638: push eax */ 2477 RECOMP_ICALL(0x310062B0u); /* 0x31005639: call 0x310062b0 */ /* not lifted */ 2478 RECOMP_FLAGS_IN(); 2479 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2480 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2481 esp = esp + 8; /* 0x3100563E: add esp, 8 */ 2482 _flag_k = FK_ADD; 2483 edi = POP32_VAL(esp); /* 0x31005641: pop edi */ 2484 esi = POP32_VAL(esp); /* 0x31005642: pop esi */ 2485 ebp = POP32_VAL(esp); /* 0x31005643: pop ebp */ 2486 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31005644: ret 4 */ 2487 RECOMP_REGS_OUT(); 2488 } 2489 2490 void sub_31005650(void) { 2491 int _fpu_cmp = 0; 2492 uint32_t _cf = 0; 2493 int _df = 1; 2494 uint32_t _flag_k = FK_NONE; 2495 uint32_t _flag_a = 0, _flag_b = 0; 2496 uint32_t _itail_tgt = 0; 2497 RECOMP_REGS_LOCALS 2498 RECOMP_ENTER(0x31005650u); 2499 2500 L_31005650: 2501 PUSH32(esp, ebp); /* 0x31005650: push ebp */ 2502 ebp = esp; /* 0x31005651: mov ebp, esp */ 2503 PUSH32(esp, esi); /* 0x31005653: push esi */ 2504 esi = ecx; /* 0x31005654: mov esi, ecx */ 2505 ecx = MEM32(ebp + 0x8); /* 0x31005656: mov ecx, dword ptr [ebp + 8] */ 2506 eax = esi + 0x4; /* 0x31005659: lea eax, [esi + 4] */ 2507 PUSH32(esp, eax); /* 0x3100565C: push eax */ 2508 PUSH32(esp, ecx); /* 0x3100565D: push ecx */ 2509 RECOMP_ICALL(0x310111B0u); /* 0x3100565E: call 0x310111b0 */ /* not lifted */ 2510 RECOMP_FLAGS_IN(); 2511 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2512 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2513 esp = esp + 8; /* 0x31005663: add esp, 8 */ 2514 _flag_k = FK_ADD; 2515 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 2516 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2517 esi = esi + 0x10u; /* 0x31005666: add esi, 0x10 */ 2518 _flag_k = FK_ADD; 2519 PUSH32(esp, esi); /* 0x31005669: push esi */ 2520 ecx = eax; /* 0x3100566A: mov ecx, eax */ 2521 RECOMP_ICALL(MEM32(0x31048324)); /* 0x3100566C: call dword ptr [0x31048324] */ 2522 RECOMP_FLAGS_IN(); 2523 SET_LO8(eax, 1); /* 0x31005672: mov al, 1 */ 2524 esi = POP32_VAL(esp); /* 0x31005674: pop esi */ 2525 ebp = POP32_VAL(esp); /* 0x31005675: pop ebp */ 2526 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31005676: ret 4 */ 2527 RECOMP_REGS_OUT(); 2528 } 2529 2530 void sub_31005680(void) { 2531 int _fpu_cmp = 0; 2532 uint32_t _cf = 0; 2533 int _df = 1; 2534 uint32_t _flag_k = FK_NONE; 2535 uint32_t _flag_a = 0, _flag_b = 0; 2536 uint32_t _itail_tgt = 0; 2537 RECOMP_REGS_LOCALS 2538 RECOMP_ENTER(0x31005680u); 2539 2540 L_31005680: 2541 PUSH32(esp, ebp); /* 0x31005680: push ebp */ 2542 ebp = esp; /* 0x31005681: mov ebp, esp */ 2543 eax = ecx + 0x10; /* 0x31005683: lea eax, [ecx + 0x10] */ 2544 PUSH32(esp, eax); /* 0x31005686: push eax */ 2545 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 2546 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2547 ecx = ecx + 4; /* 0x31005687: add ecx, 4 */ 2548 _flag_k = FK_ADD; 2549 PUSH32(esp, ecx); /* 0x3100568A: push ecx */ 2550 ecx = MEM32(ebp + 0x8); /* 0x3100568B: mov ecx, dword ptr [ebp + 8] */ 2551 PUSH32(esp, ecx); /* 0x3100568E: push ecx */ 2552 RECOMP_ICALL(0x310064B0u); /* 0x3100568F: call 0x310064b0 */ /* not lifted */ 2553 RECOMP_FLAGS_IN(); 2554 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2555 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2556 esp = esp + 8; /* 0x31005694: add esp, 8 */ 2557 _flag_k = FK_ADD; 2558 PUSH32(esp, eax); /* 0x31005697: push eax */ 2559 RECOMP_ICALL(0x310062D0u); /* 0x31005698: call 0x310062d0 */ /* not lifted */ 2560 RECOMP_FLAGS_IN(); 2561 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2562 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2563 esp = esp + 8; /* 0x3100569D: add esp, 8 */ 2564 _flag_k = FK_ADD; 2565 SET_LO8(eax, 1); /* 0x310056A0: mov al, 1 */ 2566 ebp = POP32_VAL(esp); /* 0x310056A2: pop ebp */ 2567 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x310056A3: ret 4 */ 2568 RECOMP_REGS_OUT(); 2569 } 2570 2571 void sub_310056B0(void) { 2572 int _fpu_cmp = 0; 2573 uint32_t _cf = 0; 2574 int _df = 1; 2575 uint32_t _flag_k = FK_NONE; 2576 uint32_t _flag_a = 0, _flag_b = 0; 2577 uint32_t _itail_tgt = 0; 2578 RECOMP_REGS_LOCALS 2579 RECOMP_ENTER(0x310056B0u); 2580 2581 L_310056B0: 2582 PUSH32(esp, ebp); /* 0x310056B0: push ebp */ 2583 ebp = esp; /* 0x310056B1: mov ebp, esp */ 2584 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2585 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2586 esp = esp - 0xCu; /* 0x310056B3: sub esp, 0xc */ 2587 _flag_k = FK_CMP; 2588 PUSH32(esp, ebx); /* 0x310056B6: push ebx */ 2589 PUSH32(esp, esi); /* 0x310056B7: push esi */ 2590 PUSH32(esp, edi); /* 0x310056B8: push edi */ 2591 edi = ecx; /* 0x310056B9: mov edi, ecx */ 2592 ecx = MEM32(edi + 0x4); /* 0x310056BB: mov ecx, dword ptr [edi + 4] */ 2593 ebx = MEM32(ecx + 0x4); /* 0x310056BE: mov ebx, dword ptr [ecx + 4] */ 2594 edx = MEM32(edi + 0x8); /* 0x310056C1: mov edx, dword ptr [edi + 8] */ 2595 /* cmp ebx, edx */ /* 0x310056C4: cmp ebx, edx */ 2596 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 2597 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2598 _flag_k = FK_CMP; 2599 esi = ecx; /* 0x310056C6: mov esi, ecx */ 2600 SET_LO8(eax, 1); /* 0x310056C8: mov al, 1 */ 2601 if (CMP_EQ(_flag_a, _flag_b)) goto L_310056EE; /* 0x310056CA: je 0x310056ee */ 2602 L_310056CC: 2603 eax = MEM32(ebp + 0xC); /* 0x310056CC: mov eax, dword ptr [ebp + 0xc] */ 2604 eax = MEM32(eax); /* 0x310056CF: mov eax, dword ptr [eax] */ 2605 MEM32(ebp + (-0x8)) = eax; /* 0x310056D1: mov dword ptr [ebp - 8], eax */ 2606 L_310056D4: 2607 eax = MEM32(ebp + (-0x8)); /* 0x310056D4: mov eax, dword ptr [ebp - 8] */ 2608 /* cmp eax, MEM32(ebx + 0xC) */ /* 0x310056D7: cmp eax, dword ptr [ebx + 0xc] */ 2609 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0xC)); 2610 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2611 _flag_k = FK_CMP; 2612 esi = ebx; /* 0x310056DA: mov esi, ebx */ 2613 SET_LO8(eax, (CMP_L(_flag_a, _flag_b)) ? 1 : 0); /* 0x310056DC: setl al */ 2614 /* test LO8(eax), LO8(eax) */ /* 0x310056DF: test al, al */ 2615 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2616 _cf = 0; 2617 _flag_k = FK_NARROW(FK_TEST, 24); 2618 if (TEST_Z(_flag_a, _flag_b)) goto L_310056E7; /* 0x310056E1: je 0x310056e7 */ 2619 L_310056E3: 2620 ebx = MEM32(ebx); /* 0x310056E3: mov ebx, dword ptr [ebx] */ 2621 goto L_310056EA; /* 0x310056E5: jmp 0x310056ea */ 2622 L_310056E7: 2623 ebx = MEM32(ebx + 0x8); /* 0x310056E7: mov ebx, dword ptr [ebx + 8] */ 2624 L_310056EA: 2625 /* cmp ebx, edx */ /* 0x310056EA: cmp ebx, edx */ 2626 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 2627 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2628 _flag_k = FK_CMP; 2629 RECOMP_BACKEDGE(); 2630 if (CMP_NE(_flag_a, _flag_b)) goto L_310056D4; /* 0x310056EC: jne 0x310056d4 */ 2631 L_310056EE: 2632 SET_LO8(edx, MEM8(edi + 0xC)); /* 0x310056EE: mov dl, byte ptr [edi + 0xc] */ 2633 /* test LO8(edx), LO8(edx) */ /* 0x310056F1: test dl, dl */ 2634 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2635 _cf = 0; 2636 _flag_k = FK_NARROW(FK_TEST, 24); 2637 if (TEST_Z(_flag_a, _flag_b)) goto L_31005869; /* 0x310056F3: je 0x31005869 */ 2638 L_310056F9: 2639 PUSH32(esp, 0); /* 0x310056F9: push 0 */ 2640 PUSH32(esp, esi); /* 0x310056FB: push esi */ 2641 ecx = edi; /* 0x310056FC: mov ecx, edi */ 2642 RECOMP_ICALL(0x31005DE0u); /* 0x310056FE: call 0x31005de0 */ /* not lifted */ 2643 RECOMP_FLAGS_IN(); 2644 ecx = MEM32(edi + 0x8); /* 0x31005703: mov ecx, dword ptr [edi + 8] */ 2645 MEM32(eax) = ecx; /* 0x31005706: mov dword ptr [eax], ecx */ 2646 edx = MEM32(edi + 0x8); /* 0x31005708: mov edx, dword ptr [edi + 8] */ 2647 ecx = MEM32(ebp + 0xC); /* 0x3100570B: mov ecx, dword ptr [ebp + 0xc] */ 2648 MEM32(ebp + (-0x4)) = eax; /* 0x3100570E: mov dword ptr [ebp - 4], eax */ 2649 MEM32(eax + 0x8) = edx; /* 0x31005711: mov dword ptr [eax + 8], edx */ 2650 PUSH32(esp, ecx); /* 0x31005714: push ecx */ 2651 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 2652 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2653 eax = eax + 0xCu; /* 0x31005715: add eax, 0xc */ 2654 _flag_k = FK_ADD; 2655 PUSH32(esp, eax); /* 0x31005718: push eax */ 2656 RECOMP_ICALL(0x31005E40u); /* 0x31005719: call 0x31005e40 */ /* not lifted */ 2657 RECOMP_FLAGS_IN(); 2658 ecx = MEM32(edi + 0x10); /* 0x3100571E: mov ecx, dword ptr [edi + 0x10] */ 2659 eax = MEM32(edi + 0x4); /* 0x31005721: mov eax, dword ptr [edi + 4] */ 2660 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2661 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2662 esp = esp + 8; /* 0x31005724: add esp, 8 */ 2663 _flag_k = FK_ADD; 2664 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2665 ecx = ecx + 1; /* 0x31005727: inc ecx */ 2666 _flag_k = FK_INC; 2667 /* cmp esi, eax */ /* 0x31005728: cmp esi, eax */ 2668 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 2669 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2670 _flag_k = FK_CMP; 2671 MEM32(edi + 0x10) = ecx; /* 0x3100572A: mov dword ptr [edi + 0x10], ecx */ 2672 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005751; /* 0x3100572D: je 0x31005751 */ 2673 L_3100572F: 2674 /* cmp ebx, MEM32(edi + 0x8) */ /* 0x3100572F: cmp ebx, dword ptr [edi + 8] */ 2675 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2676 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2677 _flag_k = FK_CMP; 2678 if (CMP_NE(_flag_a, _flag_b)) goto L_31005751; /* 0x31005732: jne 0x31005751 */ 2679 L_31005734: 2680 edx = MEM32(ebp + 0xC); /* 0x31005734: mov edx, dword ptr [ebp + 0xc] */ 2681 eax = MEM32(edx); /* 0x31005737: mov eax, dword ptr [edx] */ 2682 /* cmp eax, MEM32(esi + 0xC) */ /* 0x31005739: cmp eax, dword ptr [esi + 0xc] */ 2683 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC)); 2684 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2685 _flag_k = FK_CMP; 2686 if (CMP_L(_flag_a, _flag_b)) goto L_31005751; /* 0x3100573C: jl 0x31005751 */ 2687 L_3100573E: 2688 ebx = MEM32(ebp + (-0x4)); /* 0x3100573E: mov ebx, dword ptr [ebp - 4] */ 2689 MEM32(esi + 0x8) = ebx; /* 0x31005741: mov dword ptr [esi + 8], ebx */ 2690 eax = MEM32(edi + 0x4); /* 0x31005744: mov eax, dword ptr [edi + 4] */ 2691 /* cmp esi, MEM32(eax + 0x8) */ /* 0x31005747: cmp esi, dword ptr [eax + 8] */ 2692 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 2693 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2694 _flag_k = FK_CMP; 2695 if (CMP_NE(_flag_a, _flag_b)) goto L_31005774; /* 0x3100574A: jne 0x31005774 */ 2696 L_3100574C: 2697 MEM32(eax + 0x8) = ebx; /* 0x3100574C: mov dword ptr [eax + 8], ebx */ 2698 goto L_31005774; /* 0x3100574F: jmp 0x31005774 */ 2699 L_31005751: 2700 ecx = MEM32(ebp + (-0x4)); /* 0x31005751: mov ecx, dword ptr [ebp - 4] */ 2701 MEM32(esi) = ecx; /* 0x31005754: mov dword ptr [esi], ecx */ 2702 eax = MEM32(edi + 0x4); /* 0x31005756: mov eax, dword ptr [edi + 4] */ 2703 /* cmp esi, eax */ /* 0x31005759: cmp esi, eax */ 2704 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 2705 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2706 _flag_k = FK_CMP; 2707 if (CMP_NE(_flag_a, _flag_b)) goto L_31005768; /* 0x3100575B: jne 0x31005768 */ 2708 L_3100575D: 2709 MEM32(eax + 0x4) = ecx; /* 0x3100575D: mov dword ptr [eax + 4], ecx */ 2710 edx = MEM32(edi + 0x4); /* 0x31005760: mov edx, dword ptr [edi + 4] */ 2711 MEM32(edx + 0x8) = ecx; /* 0x31005763: mov dword ptr [edx + 8], ecx */ 2712 goto L_31005771; /* 0x31005766: jmp 0x31005771 */ 2713 L_31005768: 2714 /* cmp esi, MEM32(eax) */ /* 0x31005768: cmp esi, dword ptr [eax] */ 2715 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax)); 2716 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2717 _flag_k = FK_CMP; 2718 if (CMP_NE(_flag_a, _flag_b)) goto L_31005771; /* 0x3100576A: jne 0x31005771 */ 2719 L_3100576C: 2720 ecx = MEM32(ebp + (-0x4)); /* 0x3100576C: mov ecx, dword ptr [ebp - 4] */ 2721 MEM32(eax) = ecx; /* 0x3100576F: mov dword ptr [eax], ecx */ 2722 L_31005771: 2723 ebx = MEM32(ebp + (-0x4)); /* 0x31005771: mov ebx, dword ptr [ebp - 4] */ 2724 L_31005774: 2725 edx = MEM32(edi + 0x4); /* 0x31005774: mov edx, dword ptr [edi + 4] */ 2726 /* cmp ebx, MEM32(edx + 0x4) */ /* 0x31005777: cmp ebx, dword ptr [edx + 4] */ 2727 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2728 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2729 _flag_k = FK_CMP; 2730 esi = ebx; /* 0x3100577A: mov esi, ebx */ 2731 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005847; /* 0x3100577C: je 0x31005847 */ 2732 L_31005782: 2733 eax = MEM32(esi + 0x4); /* 0x31005782: mov eax, dword ptr [esi + 4] */ 2734 SET_LO8(ecx, MEM8(eax + 0x14)); /* 0x31005785: mov cl, byte ptr [eax + 0x14] */ 2735 /* test LO8(ecx), LO8(ecx) */ /* 0x31005788: test cl, cl */ 2736 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2737 _cf = 0; 2738 _flag_k = FK_NARROW(FK_TEST, 24); 2739 if (TEST_NZ(_flag_a, _flag_b)) goto L_31005847; /* 0x3100578A: jne 0x31005847 */ 2740 L_31005790: 2741 edx = MEM32(eax + 0x4); /* 0x31005790: mov edx, dword ptr [eax + 4] */ 2742 ecx = MEM32(edx); /* 0x31005793: mov ecx, dword ptr [edx] */ 2743 /* cmp eax, ecx */ /* 0x31005795: cmp eax, ecx */ 2744 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2745 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2746 _flag_k = FK_CMP; 2747 if (CMP_NE(_flag_a, _flag_b)) goto L_310057ED; /* 0x31005797: jne 0x310057ed */ 2748 L_31005799: 2749 ecx = MEM32(edx + 0x8); /* 0x31005799: mov ecx, dword ptr [edx + 8] */ 2750 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3100579C: mov dl, byte ptr [ecx + 0x14] */ 2751 /* test LO8(edx), LO8(edx) */ /* 0x3100579F: test dl, dl */ 2752 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2753 _cf = 0; 2754 _flag_k = FK_NARROW(FK_TEST, 24); 2755 if (TEST_NZ(_flag_a, _flag_b)) goto L_310057BD; /* 0x310057A1: jne 0x310057bd */ 2756 L_310057A3: 2757 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x310057A3: mov byte ptr [eax + 0x14], 1 */ 2758 MEM8(ecx + 0x14) = (uint8_t)(1); /* 0x310057A7: mov byte ptr [ecx + 0x14], 1 */ 2759 eax = MEM32(esi + 0x4); /* 0x310057AB: mov eax, dword ptr [esi + 4] */ 2760 ecx = MEM32(eax + 0x4); /* 0x310057AE: mov ecx, dword ptr [eax + 4] */ 2761 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x310057B1: mov byte ptr [ecx + 0x14], 0 */ 2762 edx = MEM32(esi + 0x4); /* 0x310057B5: mov edx, dword ptr [esi + 4] */ 2763 esi = MEM32(edx + 0x4); /* 0x310057B8: mov esi, dword ptr [edx + 4] */ 2764 goto L_3100583B; /* 0x310057BB: jmp 0x3100583b */ 2765 L_310057BD: 2766 /* cmp esi, MEM32(eax + 0x8) */ /* 0x310057BD: cmp esi, dword ptr [eax + 8] */ 2767 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 2768 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2769 _flag_k = FK_CMP; 2770 if (CMP_NE(_flag_a, _flag_b)) goto L_310057CC; /* 0x310057C0: jne 0x310057cc */ 2771 L_310057C2: 2772 esi = eax; /* 0x310057C2: mov esi, eax */ 2773 PUSH32(esp, esi); /* 0x310057C4: push esi */ 2774 ecx = edi; /* 0x310057C5: mov ecx, edi */ 2775 RECOMP_ICALL(0x3100FC90u); /* 0x310057C7: call 0x3100fc90 */ /* not lifted */ 2776 RECOMP_FLAGS_IN(); 2777 L_310057CC: 2778 eax = MEM32(esi + 0x4); /* 0x310057CC: mov eax, dword ptr [esi + 4] */ 2779 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x310057CF: mov byte ptr [eax + 0x14], 1 */ 2780 ecx = MEM32(esi + 0x4); /* 0x310057D3: mov ecx, dword ptr [esi + 4] */ 2781 edx = MEM32(ecx + 0x4); /* 0x310057D6: mov edx, dword ptr [ecx + 4] */ 2782 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x310057D9: mov byte ptr [edx + 0x14], 0 */ 2783 eax = MEM32(esi + 0x4); /* 0x310057DD: mov eax, dword ptr [esi + 4] */ 2784 ecx = MEM32(eax + 0x4); /* 0x310057E0: mov ecx, dword ptr [eax + 4] */ 2785 PUSH32(esp, ecx); /* 0x310057E3: push ecx */ 2786 ecx = edi; /* 0x310057E4: mov ecx, edi */ 2787 RECOMP_ICALL(0x3100FCF0u); /* 0x310057E6: call 0x3100fcf0 */ /* not lifted */ 2788 RECOMP_FLAGS_IN(); 2789 goto L_3100583B; /* 0x310057EB: jmp 0x3100583b */ 2790 L_310057ED: 2791 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x310057ED: mov dl, byte ptr [ecx + 0x14] */ 2792 /* test LO8(edx), LO8(edx) */ /* 0x310057F0: test dl, dl */ 2793 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2794 _cf = 0; 2795 _flag_k = FK_NARROW(FK_TEST, 24); 2796 if (TEST_NZ(_flag_a, _flag_b)) goto L_3100580E; /* 0x310057F2: jne 0x3100580e */ 2797 L_310057F4: 2798 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x310057F4: mov byte ptr [eax + 0x14], 1 */ 2799 MEM8(ecx + 0x14) = (uint8_t)(1); /* 0x310057F8: mov byte ptr [ecx + 0x14], 1 */ 2800 edx = MEM32(esi + 0x4); /* 0x310057FC: mov edx, dword ptr [esi + 4] */ 2801 eax = MEM32(edx + 0x4); /* 0x310057FF: mov eax, dword ptr [edx + 4] */ 2802 MEM8(eax + 0x14) = (uint8_t)(0); /* 0x31005802: mov byte ptr [eax + 0x14], 0 */ 2803 ecx = MEM32(esi + 0x4); /* 0x31005806: mov ecx, dword ptr [esi + 4] */ 2804 esi = MEM32(ecx + 0x4); /* 0x31005809: mov esi, dword ptr [ecx + 4] */ 2805 goto L_3100583B; /* 0x3100580C: jmp 0x3100583b */ 2806 L_3100580E: 2807 /* cmp esi, MEM32(eax) */ /* 0x3100580E: cmp esi, dword ptr [eax] */ 2808 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax)); 2809 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2810 _flag_k = FK_CMP; 2811 if (CMP_NE(_flag_a, _flag_b)) goto L_3100581C; /* 0x31005810: jne 0x3100581c */ 2812 L_31005812: 2813 esi = eax; /* 0x31005812: mov esi, eax */ 2814 PUSH32(esp, esi); /* 0x31005814: push esi */ 2815 ecx = edi; /* 0x31005815: mov ecx, edi */ 2816 RECOMP_ICALL(0x3100FCF0u); /* 0x31005817: call 0x3100fcf0 */ /* not lifted */ 2817 RECOMP_FLAGS_IN(); 2818 L_3100581C: 2819 edx = MEM32(esi + 0x4); /* 0x3100581C: mov edx, dword ptr [esi + 4] */ 2820 MEM8(edx + 0x14) = (uint8_t)(1); /* 0x3100581F: mov byte ptr [edx + 0x14], 1 */ 2821 eax = MEM32(esi + 0x4); /* 0x31005823: mov eax, dword ptr [esi + 4] */ 2822 ecx = MEM32(eax + 0x4); /* 0x31005826: mov ecx, dword ptr [eax + 4] */ 2823 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x31005829: mov byte ptr [ecx + 0x14], 0 */ 2824 edx = MEM32(esi + 0x4); /* 0x3100582D: mov edx, dword ptr [esi + 4] */ 2825 eax = MEM32(edx + 0x4); /* 0x31005830: mov eax, dword ptr [edx + 4] */ 2826 PUSH32(esp, eax); /* 0x31005833: push eax */ 2827 ecx = edi; /* 0x31005834: mov ecx, edi */ 2828 RECOMP_ICALL(0x3100FC90u); /* 0x31005836: call 0x3100fc90 */ /* not lifted */ 2829 RECOMP_FLAGS_IN(); 2830 L_3100583B: 2831 ecx = MEM32(edi + 0x4); /* 0x3100583B: mov ecx, dword ptr [edi + 4] */ 2832 /* cmp esi, MEM32(ecx + 0x4) */ /* 0x3100583E: cmp esi, dword ptr [ecx + 4] */ 2833 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 2834 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2835 _flag_k = FK_CMP; 2836 RECOMP_BACKEDGE(); 2837 if (CMP_NE(_flag_a, _flag_b)) goto L_31005782; /* 0x31005841: jne 0x31005782 */ 2838 L_31005847: 2839 edx = MEM32(edi + 0x4); /* 0x31005847: mov edx, dword ptr [edi + 4] */ 2840 eax = MEM32(edx + 0x4); /* 0x3100584A: mov eax, dword ptr [edx + 4] */ 2841 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x3100584D: mov byte ptr [eax + 0x14], 1 */ 2842 eax = MEM32(ebp + 0x8); /* 0x31005851: mov eax, dword ptr [ebp + 8] */ 2843 edi = POP32_VAL(esp); /* 0x31005854: pop edi */ 2844 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x31005855: mov byte ptr [ebp - 8], 1 */ 2845 ecx = MEM32(ebp + (-0x8)); /* 0x31005859: mov ecx, dword ptr [ebp - 8] */ 2846 MEM32(eax) = ebx; /* 0x3100585C: mov dword ptr [eax], ebx */ 2847 esi = POP32_VAL(esp); /* 0x3100585E: pop esi */ 2848 MEM32(eax + 0x4) = ecx; /* 0x3100585F: mov dword ptr [eax + 4], ecx */ 2849 ebx = POP32_VAL(esp); /* 0x31005862: pop ebx */ 2850 esp = ebp; /* 0x31005863: mov esp, ebp */ 2851 ebp = POP32_VAL(esp); /* 0x31005865: pop ebp */ 2852 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x31005866: ret 8 */ 2853 L_31005869: 2854 /* test LO8(eax), LO8(eax) */ /* 0x31005869: test al, al */ 2855 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2856 _cf = 0; 2857 _flag_k = FK_NARROW(FK_TEST, 24); 2858 edx = esi; /* 0x3100586B: mov edx, esi */ 2859 MEM32(ebp + (-0x8)) = edx; /* 0x3100586D: mov dword ptr [ebp - 8], edx */ 2860 if (TEST_Z(_flag_a, _flag_b)) goto L_310058AC; /* 0x31005870: je 0x310058ac */ 2861 L_31005872: 2862 /* cmp esi, MEM32(ecx) */ /* 0x31005872: cmp esi, dword ptr [ecx] */ 2863 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx)); 2864 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2865 _flag_k = FK_CMP; 2866 if (CMP_NE(_flag_a, _flag_b)) goto L_310058A1; /* 0x31005874: jne 0x310058a1 */ 2867 L_31005876: 2868 edx = MEM32(ebp + 0xC); /* 0x31005876: mov edx, dword ptr [ebp + 0xc] */ 2869 PUSH32(esp, edx); /* 0x31005879: push edx */ 2870 PUSH32(esp, esi); /* 0x3100587A: push esi */ 2871 PUSH32(esp, ebx); /* 0x3100587B: push ebx */ 2872 eax = ebp + 0xC; /* 0x3100587C: lea eax, [ebp + 0xc] */ 2873 PUSH32(esp, eax); /* 0x3100587F: push eax */ 2874 ecx = edi; /* 0x31005880: mov ecx, edi */ 2875 RECOMP_ICALL(0x31005B50u); /* 0x31005882: call 0x31005b50 */ /* not lifted */ 2876 RECOMP_FLAGS_IN(); 2877 ecx = MEM32(eax); /* 0x31005887: mov ecx, dword ptr [eax] */ 2878 eax = MEM32(ebp + 0x8); /* 0x31005889: mov eax, dword ptr [ebp + 8] */ 2879 edi = POP32_VAL(esp); /* 0x3100588C: pop edi */ 2880 MEM32(eax) = ecx; /* 0x3100588D: mov dword ptr [eax], ecx */ 2881 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x3100588F: mov byte ptr [ebp - 8], 1 */ 2882 ecx = MEM32(ebp + (-0x8)); /* 0x31005893: mov ecx, dword ptr [ebp - 8] */ 2883 esi = POP32_VAL(esp); /* 0x31005896: pop esi */ 2884 MEM32(eax + 0x4) = ecx; /* 0x31005897: mov dword ptr [eax + 4], ecx */ 2885 ebx = POP32_VAL(esp); /* 0x3100589A: pop ebx */ 2886 esp = ebp; /* 0x3100589B: mov esp, ebp */ 2887 ebp = POP32_VAL(esp); /* 0x3100589D: pop ebp */ 2888 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3100589E: ret 8 */ 2889 L_310058A1: 2890 ecx = ebp + (-0x8); /* 0x310058A1: lea ecx, [ebp - 8] */ 2891 RECOMP_ICALL(0x31010B60u); /* 0x310058A4: call 0x31010b60 */ /* not lifted */ 2892 RECOMP_FLAGS_IN(); 2893 edx = MEM32(ebp + (-0x8)); /* 0x310058A9: mov edx, dword ptr [ebp - 8] */ 2894 L_310058AC: 2895 ecx = MEM32(edx + 0xC); /* 0x310058AC: mov ecx, dword ptr [edx + 0xc] */ 2896 eax = MEM32(ebp + 0xC); /* 0x310058AF: mov eax, dword ptr [ebp + 0xc] */ 2897 /* cmp ecx, MEM32(eax) */ /* 0x310058B2: cmp ecx, dword ptr [eax] */ 2898 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 2899 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2900 _flag_k = FK_CMP; 2901 if (CMP_GE(_flag_a, _flag_b)) goto L_310058DE; /* 0x310058B4: jge 0x310058de */ 2902 L_310058B6: 2903 PUSH32(esp, eax); /* 0x310058B6: push eax */ 2904 PUSH32(esp, esi); /* 0x310058B7: push esi */ 2905 PUSH32(esp, ebx); /* 0x310058B8: push ebx */ 2906 edx = ebp + 0xC; /* 0x310058B9: lea edx, [ebp + 0xc] */ 2907 PUSH32(esp, edx); /* 0x310058BC: push edx */ 2908 ecx = edi; /* 0x310058BD: mov ecx, edi */ 2909 RECOMP_ICALL(0x31005B50u); /* 0x310058BF: call 0x31005b50 */ /* not lifted */ 2910 RECOMP_FLAGS_IN(); 2911 ecx = MEM32(eax); /* 0x310058C4: mov ecx, dword ptr [eax] */ 2912 eax = MEM32(ebp + 0x8); /* 0x310058C6: mov eax, dword ptr [ebp + 8] */ 2913 edi = POP32_VAL(esp); /* 0x310058C9: pop edi */ 2914 MEM32(eax) = ecx; /* 0x310058CA: mov dword ptr [eax], ecx */ 2915 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x310058CC: mov byte ptr [ebp - 8], 1 */ 2916 ecx = MEM32(ebp + (-0x8)); /* 0x310058D0: mov ecx, dword ptr [ebp - 8] */ 2917 esi = POP32_VAL(esp); /* 0x310058D3: pop esi */ 2918 MEM32(eax + 0x4) = ecx; /* 0x310058D4: mov dword ptr [eax + 4], ecx */ 2919 ebx = POP32_VAL(esp); /* 0x310058D7: pop ebx */ 2920 esp = ebp; /* 0x310058D8: mov esp, ebp */ 2921 ebp = POP32_VAL(esp); /* 0x310058DA: pop ebp */ 2922 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x310058DB: ret 8 */ 2923 L_310058DE: 2924 eax = MEM32(ebp + 0x8); /* 0x310058DE: mov eax, dword ptr [ebp + 8] */ 2925 edi = POP32_VAL(esp); /* 0x310058E1: pop edi */ 2926 MEM32(eax) = edx; /* 0x310058E2: mov dword ptr [eax], edx */ 2927 MEM8(ebp + (-0x8)) = (uint8_t)(0); /* 0x310058E4: mov byte ptr [ebp - 8], 0 */ 2928 edx = MEM32(ebp + (-0x8)); /* 0x310058E8: mov edx, dword ptr [ebp - 8] */ 2929 esi = POP32_VAL(esp); /* 0x310058EB: pop esi */ 2930 MEM32(eax + 0x4) = edx; /* 0x310058EC: mov dword ptr [eax + 4], edx */ 2931 ebx = POP32_VAL(esp); /* 0x310058EF: pop ebx */ 2932 esp = ebp; /* 0x310058F0: mov esp, ebp */ 2933 ebp = POP32_VAL(esp); /* 0x310058F2: pop ebp */ 2934 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x310058F3: ret 8 */ 2935 RECOMP_REGS_OUT(); 2936 } 2937 2938 void sub_31005900(void) { 2939 int _fpu_cmp = 0; 2940 uint32_t _cf = 0; 2941 int _df = 1; 2942 uint32_t _flag_k = FK_NONE; 2943 uint32_t _flag_a = 0, _flag_b = 0; 2944 uint32_t _itail_tgt = 0; 2945 RECOMP_REGS_LOCALS 2946 RECOMP_ENTER(0x31005900u); 2947 2948 L_31005900: 2949 PUSH32(esp, ebp); /* 0x31005900: push ebp */ 2950 ebp = esp; /* 0x31005901: mov ebp, esp */ 2951 PUSH32(esp, ebx); /* 0x31005903: push ebx */ 2952 ebx = MEM32(ebp + 0x10); /* 0x31005904: mov ebx, dword ptr [ebp + 0x10] */ 2953 PUSH32(esp, esi); /* 0x31005907: push esi */ 2954 esi = ecx; /* 0x31005908: mov esi, ecx */ 2955 eax = MEM32(esi + 0x10); /* 0x3100590A: mov eax, dword ptr [esi + 0x10] */ 2956 /* test eax, eax */ /* 0x3100590D: test eax, eax */ 2957 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2958 _cf = 0; 2959 _flag_k = FK_TEST; 2960 ecx = MEM32(ebp + 0xC); /* 0x3100590F: mov ecx, dword ptr [ebp + 0xc] */ 2961 PUSH32(esp, edi); /* 0x31005912: push edi */ 2962 if (TEST_Z(_flag_a, _flag_b)) goto L_31005975; /* 0x31005913: je 0x31005975 */ 2963 L_31005915: 2964 eax = MEM32(esi + 0x4); /* 0x31005915: mov eax, dword ptr [esi + 4] */ 2965 /* cmp ecx, MEM32(eax) */ /* 0x31005918: cmp ecx, dword ptr [eax] */ 2966 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 2967 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2968 _flag_k = FK_CMP; 2969 if (CMP_NE(_flag_a, _flag_b)) goto L_31005975; /* 0x3100591A: jne 0x31005975 */ 2970 L_3100591C: 2971 /* cmp ebx, eax */ /* 0x3100591C: cmp ebx, eax */ 2972 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 2973 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2974 _flag_k = FK_CMP; 2975 if (CMP_NE(_flag_a, _flag_b)) goto L_31005975; /* 0x3100591E: jne 0x31005975 */ 2976 L_31005920: 2977 ebx = MEM32(eax + 0x4); /* 0x31005920: mov ebx, dword ptr [eax + 4] */ 2978 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x31005923: cmp ebx, dword ptr [esi + 8] */ 2979 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2980 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2981 _flag_k = FK_CMP; 2982 edi = ebx; /* 0x31005926: mov edi, ebx */ 2983 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005949; /* 0x31005928: je 0x31005949 */ 2984 L_3100592A: 2985 eax = MEM32(edi + 0x8); /* 0x3100592A: mov eax, dword ptr [edi + 8] */ 2986 PUSH32(esp, eax); /* 0x3100592D: push eax */ 2987 ecx = esi; /* 0x3100592E: mov ecx, esi */ 2988 RECOMP_ICALL(0x31005AB0u); /* 0x31005930: call 0x31005ab0 */ /* not lifted */ 2989 RECOMP_FLAGS_IN(); 2990 edi = MEM32(edi); /* 0x31005935: mov edi, dword ptr [edi] */ 2991 PUSH32(esp, ebx); /* 0x31005937: push ebx */ 2992 RECOMP_ICALL(0x31046858u); /* 0x31005938: call 0x31046858 */ /* not lifted */ 2993 RECOMP_FLAGS_IN(); 2994 eax = MEM32(esi + 0x8); /* 0x3100593D: mov eax, dword ptr [esi + 8] */ 2995 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2996 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2997 esp = esp + 4; /* 0x31005940: add esp, 4 */ 2998 _flag_k = FK_ADD; 2999 /* cmp edi, eax */ /* 0x31005943: cmp edi, eax */ 3000 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3001 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3002 _flag_k = FK_CMP; 3003 ebx = edi; /* 0x31005945: mov ebx, edi */ 3004 RECOMP_BACKEDGE(); 3005 if (CMP_NE(_flag_a, _flag_b)) goto L_3100592A; /* 0x31005947: jne 0x3100592a */ 3006 L_31005949: 3007 ecx = MEM32(esi + 0x4); /* 0x31005949: mov ecx, dword ptr [esi + 4] */ 3008 edx = MEM32(esi + 0x8); /* 0x3100594C: mov edx, dword ptr [esi + 8] */ 3009 MEM32(ecx + 0x4) = edx; /* 0x3100594F: mov dword ptr [ecx + 4], edx */ 3010 eax = MEM32(esi + 0x4); /* 0x31005952: mov eax, dword ptr [esi + 4] */ 3011 MEM32(esi + 0x10) = 0; /* 0x31005955: mov dword ptr [esi + 0x10], 0 */ 3012 MEM32(eax) = eax; /* 0x3100595C: mov dword ptr [eax], eax */ 3013 eax = MEM32(esi + 0x4); /* 0x3100595E: mov eax, dword ptr [esi + 4] */ 3014 MEM32(eax + 0x8) = eax; /* 0x31005961: mov dword ptr [eax + 8], eax */ 3015 eax = MEM32(esi + 0x4); /* 0x31005964: mov eax, dword ptr [esi + 4] */ 3016 ecx = MEM32(eax); /* 0x31005967: mov ecx, dword ptr [eax] */ 3017 eax = MEM32(ebp + 0x8); /* 0x31005969: mov eax, dword ptr [ebp + 8] */ 3018 edi = POP32_VAL(esp); /* 0x3100596C: pop edi */ 3019 esi = POP32_VAL(esp); /* 0x3100596D: pop esi */ 3020 MEM32(eax) = ecx; /* 0x3100596E: mov dword ptr [eax], ecx */ 3021 ebx = POP32_VAL(esp); /* 0x31005970: pop ebx */ 3022 ebp = POP32_VAL(esp); /* 0x31005971: pop ebp */ 3023 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x31005972: ret 0xc */ 3024 L_31005975: 3025 /* cmp ecx, ebx */ /* 0x31005975: cmp ecx, ebx */ 3026 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 3027 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3028 _flag_k = FK_CMP; 3029 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005996; /* 0x31005977: je 0x31005996 */ 3030 L_31005979: 3031 edi = ecx; /* 0x31005979: mov edi, ecx */ 3032 ecx = ebp + 0xC; /* 0x3100597B: lea ecx, [ebp + 0xc] */ 3033 RECOMP_ICALL(0x31005A20u); /* 0x3100597E: call 0x31005a20 */ /* not lifted */ 3034 RECOMP_FLAGS_IN(); 3035 PUSH32(esp, edi); /* 0x31005983: push edi */ 3036 ecx = ebp + 0x10; /* 0x31005984: lea ecx, [ebp + 0x10] */ 3037 PUSH32(esp, ecx); /* 0x31005987: push ecx */ 3038 ecx = esi; /* 0x31005988: mov ecx, esi */ 3039 RECOMP_ICALL(0x310099F0u); /* 0x3100598A: call 0x310099f0 */ /* not lifted */ 3040 RECOMP_FLAGS_IN(); 3041 ecx = MEM32(ebp + 0xC); /* 0x3100598F: mov ecx, dword ptr [ebp + 0xc] */ 3042 /* cmp ecx, ebx */ /* 0x31005992: cmp ecx, ebx */ 3043 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 3044 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3045 _flag_k = FK_CMP; 3046 RECOMP_BACKEDGE(); 3047 if (CMP_NE(_flag_a, _flag_b)) goto L_31005979; /* 0x31005994: jne 0x31005979 */ 3048 L_31005996: 3049 eax = MEM32(ebp + 0x8); /* 0x31005996: mov eax, dword ptr [ebp + 8] */ 3050 edi = POP32_VAL(esp); /* 0x31005999: pop edi */ 3051 esi = POP32_VAL(esp); /* 0x3100599A: pop esi */ 3052 MEM32(eax) = ecx; /* 0x3100599B: mov dword ptr [eax], ecx */ 3053 ebx = POP32_VAL(esp); /* 0x3100599D: pop ebx */ 3054 ebp = POP32_VAL(esp); /* 0x3100599E: pop ebp */ 3055 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3100599F: ret 0xc */ 3056 RECOMP_REGS_OUT(); 3057 } 3058 3059 void sub_310059B0(void) { 3060 int _fpu_cmp = 0; 3061 uint32_t _cf = 0; 3062 int _df = 1; 3063 uint32_t _flag_k = FK_NONE; 3064 uint32_t _flag_a = 0, _flag_b = 0; 3065 uint32_t _itail_tgt = 0; 3066 RECOMP_REGS_LOCALS 3067 RECOMP_ENTER(0x310059B0u); 3068 3069 L_310059B0: 3070 PUSH32(esp, ebp); /* 0x310059B0: push ebp */ 3071 ebp = esp; /* 0x310059B1: mov ebp, esp */ 3072 PUSH32(esp, ecx); /* 0x310059B3: push ecx */ 3073 edx = MEM32(ecx + 0x4); /* 0x310059B4: mov edx, dword ptr [ecx + 4] */ 3074 eax = MEM32(edx + 0x4); /* 0x310059B7: mov eax, dword ptr [edx + 4] */ 3075 ecx = MEM32(ecx + 0x8); /* 0x310059BA: mov ecx, dword ptr [ecx + 8] */ 3076 /* cmp eax, ecx */ /* 0x310059BD: cmp eax, ecx */ 3077 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3078 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3079 _flag_k = FK_CMP; 3080 PUSH32(esp, ebx); /* 0x310059BF: push ebx */ 3081 ebx = MEM32(ebp + 0xC); /* 0x310059C0: mov ebx, dword ptr [ebp + 0xc] */ 3082 PUSH32(esp, esi); /* 0x310059C3: push esi */ 3083 esi = edx; /* 0x310059C4: mov esi, edx */ 3084 if (CMP_EQ(_flag_a, _flag_b)) goto L_310059DE; /* 0x310059C6: je 0x310059de */ 3085 L_310059C8: 3086 PUSH32(esp, edi); /* 0x310059C8: push edi */ 3087 edi = MEM32(ebx); /* 0x310059C9: mov edi, dword ptr [ebx] */ 3088 L_310059CB: 3089 /* cmp MEM32(eax + 0xC), edi */ /* 0x310059CB: cmp dword ptr [eax + 0xc], edi */ 3090 _flag_a = (uint32_t)(MEM32(eax + 0xC)); _flag_b = (uint32_t)(edi); 3091 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3092 _flag_k = FK_CMP; 3093 if (CMP_GE(_flag_a, _flag_b)) goto L_310059D5; /* 0x310059CE: jge 0x310059d5 */ 3094 L_310059D0: 3095 eax = MEM32(eax + 0x8); /* 0x310059D0: mov eax, dword ptr [eax + 8] */ 3096 goto L_310059D9; /* 0x310059D3: jmp 0x310059d9 */ 3097 L_310059D5: 3098 esi = eax; /* 0x310059D5: mov esi, eax */ 3099 eax = MEM32(eax); /* 0x310059D7: mov eax, dword ptr [eax] */ 3100 L_310059D9: 3101 /* cmp eax, ecx */ /* 0x310059D9: cmp eax, ecx */ 3102 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3103 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3104 _flag_k = FK_CMP; 3105 RECOMP_BACKEDGE(); 3106 if (CMP_NE(_flag_a, _flag_b)) goto L_310059CB; /* 0x310059DB: jne 0x310059cb */ 3107 L_310059DD: 3108 edi = POP32_VAL(esp); /* 0x310059DD: pop edi */ 3109 L_310059DE: 3110 /* cmp esi, edx */ /* 0x310059DE: cmp esi, edx */ 3111 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 3112 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3113 _flag_k = FK_CMP; 3114 MEM32(ebp + 0xC) = esi; /* 0x310059E0: mov dword ptr [ebp + 0xc], esi */ 3115 if (CMP_EQ(_flag_a, _flag_b)) goto L_310059FE; /* 0x310059E3: je 0x310059fe */ 3116 L_310059E5: 3117 eax = MEM32(ebx); /* 0x310059E5: mov eax, dword ptr [ebx] */ 3118 /* cmp eax, MEM32(esi + 0xC) */ /* 0x310059E7: cmp eax, dword ptr [esi + 0xc] */ 3119 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC)); 3120 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3121 _flag_k = FK_CMP; 3122 if (CMP_L(_flag_a, _flag_b)) goto L_310059FE; /* 0x310059EA: jl 0x310059fe */ 3123 L_310059EC: 3124 eax = ebp + 0xC; /* 0x310059EC: lea eax, [ebp + 0xc] */ 3125 ecx = MEM32(eax); /* 0x310059EF: mov ecx, dword ptr [eax] */ 3126 eax = MEM32(ebp + 0x8); /* 0x310059F1: mov eax, dword ptr [ebp + 8] */ 3127 esi = POP32_VAL(esp); /* 0x310059F4: pop esi */ 3128 MEM32(eax) = ecx; /* 0x310059F5: mov dword ptr [eax], ecx */ 3129 ebx = POP32_VAL(esp); /* 0x310059F7: pop ebx */ 3130 esp = ebp; /* 0x310059F8: mov esp, ebp */ 3131 ebp = POP32_VAL(esp); /* 0x310059FA: pop ebp */ 3132 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x310059FB: ret 8 */ 3133 L_310059FE: 3134 eax = ebp + (-0x4); /* 0x310059FE: lea eax, [ebp - 4] */ 3135 MEM32(ebp + (-0x4)) = edx; /* 0x31005A01: mov dword ptr [ebp - 4], edx */ 3136 ecx = MEM32(eax); /* 0x31005A04: mov ecx, dword ptr [eax] */ 3137 eax = MEM32(ebp + 0x8); /* 0x31005A06: mov eax, dword ptr [ebp + 8] */ 3138 esi = POP32_VAL(esp); /* 0x31005A09: pop esi */ 3139 MEM32(eax) = ecx; /* 0x31005A0A: mov dword ptr [eax], ecx */ 3140 ebx = POP32_VAL(esp); /* 0x31005A0C: pop ebx */ 3141 esp = ebp; /* 0x31005A0D: mov esp, ebp */ 3142 ebp = POP32_VAL(esp); /* 0x31005A0F: pop ebp */ 3143 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x31005A10: ret 8 */ 3144 RECOMP_REGS_OUT(); 3145 } 3146 3147 void sub_31005A20(void) { 3148 int _fpu_cmp = 0; 3149 uint32_t _cf = 0; 3150 int _df = 1; 3151 uint32_t _flag_k = FK_NONE; 3152 uint32_t _flag_a = 0, _flag_b = 0; 3153 uint32_t _itail_tgt = 0; 3154 RECOMP_REGS_LOCALS 3155 RECOMP_ENTER(0x31005A20u); 3156 3157 L_31005A20: 3158 eax = MEM32(ecx); /* 0x31005A20: mov eax, dword ptr [ecx] */ 3159 edx = MEM32(eax + 0x8); /* 0x31005A22: mov edx, dword ptr [eax + 8] */ 3160 PUSH32(esp, ebx); /* 0x31005A25: push ebx */ 3161 SET_LO8(ebx, MEM8(edx + 0x15)); /* 0x31005A26: mov bl, byte ptr [edx + 0x15] */ 3162 /* test LO8(ebx), LO8(ebx) */ /* 0x31005A29: test bl, bl */ 3163 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3164 _cf = 0; 3165 _flag_k = FK_NARROW(FK_TEST, 24); 3166 if (TEST_NZ(_flag_a, _flag_b)) goto L_31005A45; /* 0x31005A2B: jne 0x31005a45 */ 3167 L_31005A2D: 3168 eax = MEM32(edx); /* 0x31005A2D: mov eax, dword ptr [edx] */ 3169 SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x31005A2F: mov bl, byte ptr [eax + 0x15] */ 3170 /* test LO8(ebx), LO8(ebx) */ /* 0x31005A32: test bl, bl */ 3171 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3172 _cf = 0; 3173 _flag_k = FK_NARROW(FK_TEST, 24); 3174 if (TEST_NZ(_flag_a, _flag_b)) goto L_31005A41; /* 0x31005A34: jne 0x31005a41 */ 3175 L_31005A36: 3176 edx = eax; /* 0x31005A36: mov edx, eax */ 3177 eax = MEM32(edx); /* 0x31005A38: mov eax, dword ptr [edx] */ 3178 SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x31005A3A: mov bl, byte ptr [eax + 0x15] */ 3179 /* test LO8(ebx), LO8(ebx) */ /* 0x31005A3D: test bl, bl */ 3180 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3181 _cf = 0; 3182 _flag_k = FK_NARROW(FK_TEST, 24); 3183 RECOMP_BACKEDGE(); 3184 if (TEST_Z(_flag_a, _flag_b)) goto L_31005A36; /* 0x31005A3F: je 0x31005a36 */ 3185 L_31005A41: 3186 MEM32(ecx) = edx; /* 0x31005A41: mov dword ptr [ecx], edx */ 3187 ebx = POP32_VAL(esp); /* 0x31005A43: pop ebx */ 3188 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31005A44: ret */ 3189 L_31005A45: 3190 eax = MEM32(eax + 0x4); /* 0x31005A45: mov eax, dword ptr [eax + 4] */ 3191 edx = MEM32(ecx); /* 0x31005A48: mov edx, dword ptr [ecx] */ 3192 /* cmp edx, MEM32(eax + 0x8) */ /* 0x31005A4A: cmp edx, dword ptr [eax + 8] */ 3193 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 3194 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3195 _flag_k = FK_CMP; 3196 if (CMP_NE(_flag_a, _flag_b)) goto L_31005A5B; /* 0x31005A4D: jne 0x31005a5b */ 3197 L_31005A4F: 3198 MEM32(ecx) = eax; /* 0x31005A4F: mov dword ptr [ecx], eax */ 3199 eax = MEM32(eax + 0x4); /* 0x31005A51: mov eax, dword ptr [eax + 4] */ 3200 edx = MEM32(ecx); /* 0x31005A54: mov edx, dword ptr [ecx] */ 3201 /* cmp edx, MEM32(eax + 0x8) */ /* 0x31005A56: cmp edx, dword ptr [eax + 8] */ 3202 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 3203 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3204 _flag_k = FK_CMP; 3205 RECOMP_BACKEDGE(); 3206 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005A4F; /* 0x31005A59: je 0x31005a4f */ 3207 L_31005A5B: 3208 edx = MEM32(ecx); /* 0x31005A5B: mov edx, dword ptr [ecx] */ 3209 /* cmp MEM32(edx + 0x8), eax */ /* 0x31005A5D: cmp dword ptr [edx + 8], eax */ 3210 _flag_a = (uint32_t)(MEM32(edx + 0x8)); _flag_b = (uint32_t)(eax); 3211 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3212 _flag_k = FK_CMP; 3213 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005A64; /* 0x31005A60: je 0x31005a64 */ 3214 L_31005A62: 3215 MEM32(ecx) = eax; /* 0x31005A62: mov dword ptr [ecx], eax */ 3216 L_31005A64: 3217 ebx = POP32_VAL(esp); /* 0x31005A64: pop ebx */ 3218 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31005A65: ret */ 3219 RECOMP_REGS_OUT(); 3220 } 3221 3222 void sub_31005A70(void) { 3223 int _fpu_cmp = 0; 3224 uint32_t _cf = 0; 3225 int _df = 1; 3226 uint32_t _flag_k = FK_NONE; 3227 uint32_t _flag_a = 0, _flag_b = 0; 3228 uint32_t _itail_tgt = 0; 3229 RECOMP_REGS_LOCALS 3230 RECOMP_ENTER(0x31005A70u); 3231 3232 L_31005A70: 3233 PUSH32(esp, ebp); /* 0x31005A70: push ebp */ 3234 ebp = esp; /* 0x31005A71: mov ebp, esp */ 3235 edx = MEM32(ecx + 0x4); /* 0x31005A73: mov edx, dword ptr [ecx + 4] */ 3236 eax = MEM32(edx + 0x4); /* 0x31005A76: mov eax, dword ptr [edx + 4] */ 3237 ecx = MEM32(ecx + 0x8); /* 0x31005A79: mov ecx, dword ptr [ecx + 8] */ 3238 /* cmp eax, ecx */ /* 0x31005A7C: cmp eax, ecx */ 3239 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3240 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3241 _flag_k = FK_CMP; 3242 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005AA2; /* 0x31005A7E: je 0x31005aa2 */ 3243 L_31005A80: 3244 PUSH32(esp, esi); /* 0x31005A80: push esi */ 3245 esi = MEM32(ebp + 0xC); /* 0x31005A81: mov esi, dword ptr [ebp + 0xc] */ 3246 esi = MEM32(esi); /* 0x31005A84: mov esi, dword ptr [esi] */ 3247 L_31005A86: 3248 /* cmp MEM32(eax + 0xC), esi */ /* 0x31005A86: cmp dword ptr [eax + 0xc], esi */ 3249 _flag_a = (uint32_t)(MEM32(eax + 0xC)); _flag_b = (uint32_t)(esi); 3250 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3251 _flag_k = FK_CMP; 3252 if (CMP_GE(_flag_a, _flag_b)) goto L_31005A90; /* 0x31005A89: jge 0x31005a90 */ 3253 L_31005A8B: 3254 eax = MEM32(eax + 0x8); /* 0x31005A8B: mov eax, dword ptr [eax + 8] */ 3255 goto L_31005A94; /* 0x31005A8E: jmp 0x31005a94 */ 3256 L_31005A90: 3257 edx = eax; /* 0x31005A90: mov edx, eax */ 3258 eax = MEM32(eax); /* 0x31005A92: mov eax, dword ptr [eax] */ 3259 L_31005A94: 3260 /* cmp eax, ecx */ /* 0x31005A94: cmp eax, ecx */ 3261 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3262 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3263 _flag_k = FK_CMP; 3264 RECOMP_BACKEDGE(); 3265 if (CMP_NE(_flag_a, _flag_b)) goto L_31005A86; /* 0x31005A96: jne 0x31005a86 */ 3266 L_31005A98: 3267 eax = MEM32(ebp + 0x8); /* 0x31005A98: mov eax, dword ptr [ebp + 8] */ 3268 MEM32(eax) = edx; /* 0x31005A9B: mov dword ptr [eax], edx */ 3269 esi = POP32_VAL(esp); /* 0x31005A9D: pop esi */ 3270 ebp = POP32_VAL(esp); /* 0x31005A9E: pop ebp */ 3271 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x31005A9F: ret 8 */ 3272 L_31005AA2: 3273 eax = MEM32(ebp + 0x8); /* 0x31005AA2: mov eax, dword ptr [ebp + 8] */ 3274 MEM32(eax) = edx; /* 0x31005AA5: mov dword ptr [eax], edx */ 3275 ebp = POP32_VAL(esp); /* 0x31005AA7: pop ebp */ 3276 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x31005AA8: ret 8 */ 3277 RECOMP_REGS_OUT(); 3278 } 3279 3280 void sub_31005AB0(void) { 3281 int _fpu_cmp = 0; 3282 uint32_t _cf = 0; 3283 int _df = 1; 3284 uint32_t _flag_k = FK_NONE; 3285 uint32_t _flag_a = 0, _flag_b = 0; 3286 uint32_t _itail_tgt = 0; 3287 RECOMP_REGS_LOCALS 3288 RECOMP_ENTER(0x31005AB0u); 3289 3290 L_31005AB0: 3291 PUSH32(esp, ebp); /* 0x31005AB0: push ebp */ 3292 ebp = esp; /* 0x31005AB1: mov ebp, esp */ 3293 PUSH32(esp, ebx); /* 0x31005AB3: push ebx */ 3294 PUSH32(esp, esi); /* 0x31005AB4: push esi */ 3295 ebx = ecx; /* 0x31005AB5: mov ebx, ecx */ 3296 eax = MEM32(ebx + 0x8); /* 0x31005AB7: mov eax, dword ptr [ebx + 8] */ 3297 PUSH32(esp, edi); /* 0x31005ABA: push edi */ 3298 edi = MEM32(ebp + 0x8); /* 0x31005ABB: mov edi, dword ptr [ebp + 8] */ 3299 /* cmp edi, eax */ /* 0x31005ABE: cmp edi, eax */ 3300 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3301 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3302 _flag_k = FK_CMP; 3303 esi = edi; /* 0x31005AC0: mov esi, edi */ 3304 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005AE3; /* 0x31005AC2: je 0x31005ae3 */ 3305 L_31005AC4: 3306 eax = MEM32(esi + 0x8); /* 0x31005AC4: mov eax, dword ptr [esi + 8] */ 3307 PUSH32(esp, eax); /* 0x31005AC7: push eax */ 3308 ecx = ebx; /* 0x31005AC8: mov ecx, ebx */ 3309 RECOMP_ICALL(0x31005AB0u); /* 0x31005ACA: call 0x31005ab0 */ /* not lifted */ 3310 RECOMP_FLAGS_IN(); 3311 esi = MEM32(esi); /* 0x31005ACF: mov esi, dword ptr [esi] */ 3312 PUSH32(esp, edi); /* 0x31005AD1: push edi */ 3313 RECOMP_ICALL(0x31046858u); /* 0x31005AD2: call 0x31046858 */ /* not lifted */ 3314 RECOMP_FLAGS_IN(); 3315 eax = MEM32(ebx + 0x8); /* 0x31005AD7: mov eax, dword ptr [ebx + 8] */ 3316 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3317 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3318 esp = esp + 4; /* 0x31005ADA: add esp, 4 */ 3319 _flag_k = FK_ADD; 3320 /* cmp esi, eax */ /* 0x31005ADD: cmp esi, eax */ 3321 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3322 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3323 _flag_k = FK_CMP; 3324 edi = esi; /* 0x31005ADF: mov edi, esi */ 3325 RECOMP_BACKEDGE(); 3326 if (CMP_NE(_flag_a, _flag_b)) goto L_31005AC4; /* 0x31005AE1: jne 0x31005ac4 */ 3327 L_31005AE3: 3328 edi = POP32_VAL(esp); /* 0x31005AE3: pop edi */ 3329 esi = POP32_VAL(esp); /* 0x31005AE4: pop esi */ 3330 ebx = POP32_VAL(esp); /* 0x31005AE5: pop ebx */ 3331 ebp = POP32_VAL(esp); /* 0x31005AE6: pop ebp */ 3332 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31005AE7: ret 4 */ 3333 RECOMP_REGS_OUT(); 3334 } 3335 3336 void sub_31005AF0(void) { 3337 int _fpu_cmp = 0; 3338 uint32_t _cf = 0; 3339 int _df = 1; 3340 uint32_t _flag_k = FK_NONE; 3341 uint32_t _flag_a = 0, _flag_b = 0; 3342 uint32_t _itail_tgt = 0; 3343 RECOMP_REGS_LOCALS 3344 RECOMP_ENTER(0x31005AF0u); 3345 3346 L_31005AF0: 3347 PUSH32(esp, ebx); /* 0x31005AF0: push ebx */ 3348 PUSH32(esp, esi); /* 0x31005AF1: push esi */ 3349 PUSH32(esp, edi); /* 0x31005AF2: push edi */ 3350 PUSH32(esp, 0x18u); /* 0x31005AF3: push 0x18 */ 3351 esi = ecx; /* 0x31005AF5: mov esi, ecx */ 3352 RECOMP_ICALL(0x310468DAu); /* 0x31005AF7: call 0x310468da */ /* not lifted */ 3353 RECOMP_FLAGS_IN(); 3354 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3355 ebx = 0; /* 0x31005AFC: xor ebx, ebx */ 3356 _cf = 0; 3357 _flag_k = FK_TEST; 3358 MEM32(eax + 0x4) = ebx; /* 0x31005AFE: mov dword ptr [eax + 4], ebx */ 3359 MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x31005B01: mov byte ptr [eax + 0x15], bl */ 3360 SET_LO8(ecx, 1); /* 0x31005B04: mov cl, 1 */ 3361 MEM8(eax + 0x14) = (uint8_t)(LO8(ecx)); /* 0x31005B06: mov byte ptr [eax + 0x14], cl */ 3362 MEM32(esi + 0x8) = eax; /* 0x31005B09: mov dword ptr [esi + 8], eax */ 3363 MEM8(eax + 0x15) = (uint8_t)(LO8(ecx)); /* 0x31005B0C: mov byte ptr [eax + 0x15], cl */ 3364 eax = MEM32(esi + 0x8); /* 0x31005B0F: mov eax, dword ptr [esi + 8] */ 3365 MEM32(eax) = ebx; /* 0x31005B12: mov dword ptr [eax], ebx */ 3366 ecx = MEM32(esi + 0x8); /* 0x31005B14: mov ecx, dword ptr [esi + 8] */ 3367 MEM32(ecx + 0x8) = ebx; /* 0x31005B17: mov dword ptr [ecx + 8], ebx */ 3368 edi = MEM32(esi + 0x8); /* 0x31005B1A: mov edi, dword ptr [esi + 8] */ 3369 PUSH32(esp, 0x18u); /* 0x31005B1D: push 0x18 */ 3370 RECOMP_ICALL(0x310468DAu); /* 0x31005B1F: call 0x310468da */ /* not lifted */ 3371 RECOMP_FLAGS_IN(); 3372 MEM32(eax + 0x4) = edi; /* 0x31005B24: mov dword ptr [eax + 4], edi */ 3373 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005B27: mov byte ptr [eax + 0x14], bl */ 3374 MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x31005B2A: mov byte ptr [eax + 0x15], bl */ 3375 MEM32(esi + 0x4) = eax; /* 0x31005B2D: mov dword ptr [esi + 4], eax */ 3376 MEM32(eax) = eax; /* 0x31005B30: mov dword ptr [eax], eax */ 3377 eax = MEM32(esi + 0x4); /* 0x31005B32: mov eax, dword ptr [esi + 4] */ 3378 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3379 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3380 esp = esp + 8; /* 0x31005B35: add esp, 8 */ 3381 _flag_k = FK_ADD; 3382 edi = POP32_VAL(esp); /* 0x31005B38: pop edi */ 3383 MEM32(eax + 0x8) = eax; /* 0x31005B39: mov dword ptr [eax + 8], eax */ 3384 MEM32(esi + 0x10) = ebx; /* 0x31005B3C: mov dword ptr [esi + 0x10], ebx */ 3385 esi = POP32_VAL(esp); /* 0x31005B3F: pop esi */ 3386 ebx = POP32_VAL(esp); /* 0x31005B40: pop ebx */ 3387 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31005B41: ret */ 3388 RECOMP_REGS_OUT(); 3389 } 3390 3391 void sub_31005B50(void) { 3392 int _fpu_cmp = 0; 3393 uint32_t _cf = 0; 3394 int _df = 1; 3395 uint32_t _flag_k = FK_NONE; 3396 uint32_t _flag_a = 0, _flag_b = 0; 3397 uint32_t _itail_tgt = 0; 3398 RECOMP_REGS_LOCALS 3399 RECOMP_ENTER(0x31005B50u); 3400 3401 L_31005B50: 3402 PUSH32(esp, ebp); /* 0x31005B50: push ebp */ 3403 ebp = esp; /* 0x31005B51: mov ebp, esp */ 3404 PUSH32(esp, ecx); /* 0x31005B53: push ecx */ 3405 PUSH32(esp, ebx); /* 0x31005B54: push ebx */ 3406 PUSH32(esp, esi); /* 0x31005B55: push esi */ 3407 PUSH32(esp, edi); /* 0x31005B56: push edi */ 3408 PUSH32(esp, 0x18u); /* 0x31005B57: push 0x18 */ 3409 esi = ecx; /* 0x31005B59: mov esi, ecx */ 3410 RECOMP_ICALL(0x310468DAu); /* 0x31005B5B: call 0x310468da */ /* not lifted */ 3411 RECOMP_FLAGS_IN(); 3412 edi = MEM32(ebp + 0x10); /* 0x31005B60: mov edi, dword ptr [ebp + 0x10] */ 3413 ebx = MEM32(ebp + 0x14); /* 0x31005B63: mov ebx, dword ptr [ebp + 0x14] */ 3414 MEM32(eax + 0x4) = edi; /* 0x31005B66: mov dword ptr [eax + 4], edi */ 3415 MEM8(eax + 0x14) = (uint8_t)(0); /* 0x31005B69: mov byte ptr [eax + 0x14], 0 */ 3416 MEM8(eax + 0x15) = (uint8_t)(0); /* 0x31005B6D: mov byte ptr [eax + 0x15], 0 */ 3417 ecx = MEM32(esi + 0x8); /* 0x31005B71: mov ecx, dword ptr [esi + 8] */ 3418 MEM32(eax) = ecx; /* 0x31005B74: mov dword ptr [eax], ecx */ 3419 edx = MEM32(esi + 0x8); /* 0x31005B76: mov edx, dword ptr [esi + 8] */ 3420 MEM32(ebp + (-0x4)) = eax; /* 0x31005B79: mov dword ptr [ebp - 4], eax */ 3421 MEM32(eax + 0x8) = edx; /* 0x31005B7C: mov dword ptr [eax + 8], edx */ 3422 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 3423 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3424 eax = eax + 0xCu; /* 0x31005B7F: add eax, 0xc */ 3425 _flag_k = FK_ADD; 3426 PUSH32(esp, ebx); /* 0x31005B82: push ebx */ 3427 PUSH32(esp, eax); /* 0x31005B83: push eax */ 3428 RECOMP_ICALL(0x31005E40u); /* 0x31005B84: call 0x31005e40 */ /* not lifted */ 3429 RECOMP_FLAGS_IN(); 3430 ecx = MEM32(esi + 0x10); /* 0x31005B89: mov ecx, dword ptr [esi + 0x10] */ 3431 eax = MEM32(esi + 0x4); /* 0x31005B8C: mov eax, dword ptr [esi + 4] */ 3432 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3433 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3434 esp = esp + 0xCu; /* 0x31005B8F: add esp, 0xc */ 3435 _flag_k = FK_ADD; 3436 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3437 ecx = ecx + 1; /* 0x31005B92: inc ecx */ 3438 _flag_k = FK_INC; 3439 /* cmp edi, eax */ /* 0x31005B93: cmp edi, eax */ 3440 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3441 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3442 _flag_k = FK_CMP; 3443 MEM32(esi + 0x10) = ecx; /* 0x31005B95: mov dword ptr [esi + 0x10], ecx */ 3444 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005BBC; /* 0x31005B98: je 0x31005bbc */ 3445 L_31005B9A: 3446 eax = MEM32(ebp + 0xC); /* 0x31005B9A: mov eax, dword ptr [ebp + 0xc] */ 3447 /* cmp eax, MEM32(esi + 0x8) */ /* 0x31005B9D: cmp eax, dword ptr [esi + 8] */ 3448 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3449 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3450 _flag_k = FK_CMP; 3451 if (CMP_NE(_flag_a, _flag_b)) goto L_31005BBC; /* 0x31005BA0: jne 0x31005bbc */ 3452 L_31005BA2: 3453 ecx = MEM32(ebx); /* 0x31005BA2: mov ecx, dword ptr [ebx] */ 3454 /* cmp ecx, MEM32(edi + 0xC) */ /* 0x31005BA4: cmp ecx, dword ptr [edi + 0xc] */ 3455 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0xC)); 3456 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3457 _flag_k = FK_CMP; 3458 if (CMP_L(_flag_a, _flag_b)) goto L_31005BBC; /* 0x31005BA7: jl 0x31005bbc */ 3459 L_31005BA9: 3460 ecx = MEM32(ebp + (-0x4)); /* 0x31005BA9: mov ecx, dword ptr [ebp - 4] */ 3461 MEM32(edi + 0x8) = ecx; /* 0x31005BAC: mov dword ptr [edi + 8], ecx */ 3462 eax = MEM32(esi + 0x4); /* 0x31005BAF: mov eax, dword ptr [esi + 4] */ 3463 /* cmp edi, MEM32(eax + 0x8) */ /* 0x31005BB2: cmp edi, dword ptr [eax + 8] */ 3464 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 3465 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3466 _flag_k = FK_CMP; 3467 if (CMP_NE(_flag_a, _flag_b)) goto L_31005BDC; /* 0x31005BB5: jne 0x31005bdc */ 3468 L_31005BB7: 3469 MEM32(eax + 0x8) = ecx; /* 0x31005BB7: mov dword ptr [eax + 8], ecx */ 3470 goto L_31005BDC; /* 0x31005BBA: jmp 0x31005bdc */ 3471 L_31005BBC: 3472 ecx = MEM32(ebp + (-0x4)); /* 0x31005BBC: mov ecx, dword ptr [ebp - 4] */ 3473 MEM32(edi) = ecx; /* 0x31005BBF: mov dword ptr [edi], ecx */ 3474 eax = MEM32(esi + 0x4); /* 0x31005BC1: mov eax, dword ptr [esi + 4] */ 3475 /* cmp edi, eax */ /* 0x31005BC4: cmp edi, eax */ 3476 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3477 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3478 _flag_k = FK_CMP; 3479 if (CMP_NE(_flag_a, _flag_b)) goto L_31005BD3; /* 0x31005BC6: jne 0x31005bd3 */ 3480 L_31005BC8: 3481 MEM32(eax + 0x4) = ecx; /* 0x31005BC8: mov dword ptr [eax + 4], ecx */ 3482 edx = MEM32(esi + 0x4); /* 0x31005BCB: mov edx, dword ptr [esi + 4] */ 3483 MEM32(edx + 0x8) = ecx; /* 0x31005BCE: mov dword ptr [edx + 8], ecx */ 3484 goto L_31005BDC; /* 0x31005BD1: jmp 0x31005bdc */ 3485 L_31005BD3: 3486 /* cmp edi, MEM32(eax) */ /* 0x31005BD3: cmp edi, dword ptr [eax] */ 3487 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax)); 3488 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3489 _flag_k = FK_CMP; 3490 if (CMP_NE(_flag_a, _flag_b)) goto L_31005BDC; /* 0x31005BD5: jne 0x31005bdc */ 3491 L_31005BD7: 3492 ecx = MEM32(ebp + (-0x4)); /* 0x31005BD7: mov ecx, dword ptr [ebp - 4] */ 3493 MEM32(eax) = ecx; /* 0x31005BDA: mov dword ptr [eax], ecx */ 3494 L_31005BDC: 3495 edx = MEM32(esi + 0x4); /* 0x31005BDC: mov edx, dword ptr [esi + 4] */ 3496 eax = MEM32(ebp + (-0x4)); /* 0x31005BDF: mov eax, dword ptr [ebp - 4] */ 3497 /* cmp eax, MEM32(edx + 0x4) */ /* 0x31005BE2: cmp eax, dword ptr [edx + 4] */ 3498 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 3499 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3500 _flag_k = FK_CMP; 3501 SET_LO8(ebx, 1); /* 0x31005BE5: mov bl, 1 */ 3502 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005D6D; /* 0x31005BE7: je 0x31005d6d */ 3503 L_31005BED: 3504 ecx = MEM32(eax + 0x4); /* 0x31005BED: mov ecx, dword ptr [eax + 4] */ 3505 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x31005BF0: mov dl, byte ptr [ecx + 0x14] */ 3506 /* test LO8(edx), LO8(edx) */ /* 0x31005BF3: test dl, dl */ 3507 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3508 _cf = 0; 3509 _flag_k = FK_NARROW(FK_TEST, 24); 3510 if (TEST_NZ(_flag_a, _flag_b)) goto L_31005D6D; /* 0x31005BF5: jne 0x31005d6d */ 3511 L_31005BFB: 3512 edi = MEM32(ecx + 0x4); /* 0x31005BFB: mov edi, dword ptr [ecx + 4] */ 3513 edx = MEM32(edi); /* 0x31005BFE: mov edx, dword ptr [edi] */ 3514 /* cmp ecx, edx */ /* 0x31005C00: cmp ecx, edx */ 3515 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3516 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3517 _flag_k = FK_CMP; 3518 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CC9; /* 0x31005C02: jne 0x31005cc9 */ 3519 L_31005C08: 3520 edx = MEM32(edi + 0x8); /* 0x31005C08: mov edx, dword ptr [edi + 8] */ 3521 /* cmp MEM8(edx + 0x14), 0 */ /* 0x31005C0B: cmp byte ptr [edx + 0x14], 0 */ 3522 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 3523 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3524 _flag_k = FK_NARROW(FK_CMP, 24); 3525 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C2C; /* 0x31005C0F: jne 0x31005c2c */ 3526 L_31005C11: 3527 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C11: mov byte ptr [ecx + 0x14], bl */ 3528 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C14: mov byte ptr [edx + 0x14], bl */ 3529 ecx = MEM32(eax + 0x4); /* 0x31005C17: mov ecx, dword ptr [eax + 4] */ 3530 edx = MEM32(ecx + 0x4); /* 0x31005C1A: mov edx, dword ptr [ecx + 4] */ 3531 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x31005C1D: mov byte ptr [edx + 0x14], 0 */ 3532 eax = MEM32(eax + 0x4); /* 0x31005C21: mov eax, dword ptr [eax + 4] */ 3533 eax = MEM32(eax + 0x4); /* 0x31005C24: mov eax, dword ptr [eax + 4] */ 3534 goto L_31005D61; /* 0x31005C27: jmp 0x31005d61 */ 3535 L_31005C2C: 3536 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x31005C2C: cmp eax, dword ptr [ecx + 8] */ 3537 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 3538 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3539 _flag_k = FK_CMP; 3540 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C6B; /* 0x31005C2F: jne 0x31005c6b */ 3541 L_31005C31: 3542 eax = ecx; /* 0x31005C31: mov eax, ecx */ 3543 ecx = MEM32(eax + 0x8); /* 0x31005C33: mov ecx, dword ptr [eax + 8] */ 3544 edx = MEM32(ecx); /* 0x31005C36: mov edx, dword ptr [ecx] */ 3545 MEM32(eax + 0x8) = edx; /* 0x31005C38: mov dword ptr [eax + 8], edx */ 3546 edx = MEM32(ecx); /* 0x31005C3B: mov edx, dword ptr [ecx] */ 3547 /* cmp edx, MEM32(esi + 0x8) */ /* 0x31005C3D: cmp edx, dword ptr [esi + 8] */ 3548 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3549 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3550 _flag_k = FK_CMP; 3551 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C45; /* 0x31005C40: je 0x31005c45 */ 3552 L_31005C42: 3553 MEM32(edx + 0x4) = eax; /* 0x31005C42: mov dword ptr [edx + 4], eax */ 3554 L_31005C45: 3555 edx = MEM32(eax + 0x4); /* 0x31005C45: mov edx, dword ptr [eax + 4] */ 3556 MEM32(ecx + 0x4) = edx; /* 0x31005C48: mov dword ptr [ecx + 4], edx */ 3557 edx = MEM32(esi + 0x4); /* 0x31005C4B: mov edx, dword ptr [esi + 4] */ 3558 /* cmp eax, MEM32(edx + 0x4) */ /* 0x31005C4E: cmp eax, dword ptr [edx + 4] */ 3559 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 3560 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3561 _flag_k = FK_CMP; 3562 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C58; /* 0x31005C51: jne 0x31005c58 */ 3563 L_31005C53: 3564 MEM32(edx + 0x4) = ecx; /* 0x31005C53: mov dword ptr [edx + 4], ecx */ 3565 goto L_31005C66; /* 0x31005C56: jmp 0x31005c66 */ 3566 L_31005C58: 3567 edx = MEM32(eax + 0x4); /* 0x31005C58: mov edx, dword ptr [eax + 4] */ 3568 /* cmp eax, MEM32(edx) */ /* 0x31005C5B: cmp eax, dword ptr [edx] */ 3569 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 3570 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3571 _flag_k = FK_CMP; 3572 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C63; /* 0x31005C5D: jne 0x31005c63 */ 3573 L_31005C5F: 3574 MEM32(edx) = ecx; /* 0x31005C5F: mov dword ptr [edx], ecx */ 3575 goto L_31005C66; /* 0x31005C61: jmp 0x31005c66 */ 3576 L_31005C63: 3577 MEM32(edx + 0x8) = ecx; /* 0x31005C63: mov dword ptr [edx + 8], ecx */ 3578 L_31005C66: 3579 MEM32(ecx) = eax; /* 0x31005C66: mov dword ptr [ecx], eax */ 3580 MEM32(eax + 0x4) = ecx; /* 0x31005C68: mov dword ptr [eax + 4], ecx */ 3581 L_31005C6B: 3582 ecx = MEM32(eax + 0x4); /* 0x31005C6B: mov ecx, dword ptr [eax + 4] */ 3583 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C6E: mov byte ptr [ecx + 0x14], bl */ 3584 edx = MEM32(eax + 0x4); /* 0x31005C71: mov edx, dword ptr [eax + 4] */ 3585 ecx = MEM32(edx + 0x4); /* 0x31005C74: mov ecx, dword ptr [edx + 4] */ 3586 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x31005C77: mov byte ptr [ecx + 0x14], 0 */ 3587 edx = MEM32(eax + 0x4); /* 0x31005C7B: mov edx, dword ptr [eax + 4] */ 3588 ecx = MEM32(edx + 0x4); /* 0x31005C7E: mov ecx, dword ptr [edx + 4] */ 3589 edx = MEM32(ecx); /* 0x31005C81: mov edx, dword ptr [ecx] */ 3590 edi = MEM32(edx + 0x8); /* 0x31005C83: mov edi, dword ptr [edx + 8] */ 3591 MEM32(ecx) = edi; /* 0x31005C86: mov dword ptr [ecx], edi */ 3592 edi = MEM32(edx + 0x8); /* 0x31005C88: mov edi, dword ptr [edx + 8] */ 3593 /* cmp edi, MEM32(esi + 0x8) */ /* 0x31005C8B: cmp edi, dword ptr [esi + 8] */ 3594 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3595 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3596 _flag_k = FK_CMP; 3597 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C93; /* 0x31005C8E: je 0x31005c93 */ 3598 L_31005C90: 3599 MEM32(edi + 0x4) = ecx; /* 0x31005C90: mov dword ptr [edi + 4], ecx */ 3600 L_31005C93: 3601 edi = MEM32(ecx + 0x4); /* 0x31005C93: mov edi, dword ptr [ecx + 4] */ 3602 MEM32(edx + 0x4) = edi; /* 0x31005C96: mov dword ptr [edx + 4], edi */ 3603 edi = MEM32(esi + 0x4); /* 0x31005C99: mov edi, dword ptr [esi + 4] */ 3604 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x31005C9C: cmp ecx, dword ptr [edi + 4] */ 3605 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 3606 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3607 _flag_k = FK_CMP; 3608 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CAC; /* 0x31005C9F: jne 0x31005cac */ 3609 L_31005CA1: 3610 MEM32(edi + 0x4) = edx; /* 0x31005CA1: mov dword ptr [edi + 4], edx */ 3611 MEM32(edx + 0x8) = ecx; /* 0x31005CA4: mov dword ptr [edx + 8], ecx */ 3612 goto L_31005D5E; /* 0x31005CA7: jmp 0x31005d5e */ 3613 L_31005CAC: 3614 edi = MEM32(ecx + 0x4); /* 0x31005CAC: mov edi, dword ptr [ecx + 4] */ 3615 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x31005CAF: cmp ecx, dword ptr [edi + 8] */ 3616 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3617 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3618 _flag_k = FK_CMP; 3619 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CBF; /* 0x31005CB2: jne 0x31005cbf */ 3620 L_31005CB4: 3621 MEM32(edi + 0x8) = edx; /* 0x31005CB4: mov dword ptr [edi + 8], edx */ 3622 MEM32(edx + 0x8) = ecx; /* 0x31005CB7: mov dword ptr [edx + 8], ecx */ 3623 goto L_31005D5E; /* 0x31005CBA: jmp 0x31005d5e */ 3624 L_31005CBF: 3625 MEM32(edi) = edx; /* 0x31005CBF: mov dword ptr [edi], edx */ 3626 MEM32(edx + 0x8) = ecx; /* 0x31005CC1: mov dword ptr [edx + 8], ecx */ 3627 goto L_31005D5E; /* 0x31005CC4: jmp 0x31005d5e */ 3628 L_31005CC9: 3629 /* cmp MEM8(edx + 0x14), 0 */ /* 0x31005CC9: cmp byte ptr [edx + 0x14], 0 */ 3630 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 3631 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3632 _flag_k = FK_NARROW(FK_CMP, 24); 3633 RECOMP_BACKEDGE(); 3634 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C11; /* 0x31005CCD: je 0x31005c11 */ 3635 L_31005CD3: 3636 /* cmp eax, MEM32(ecx) */ /* 0x31005CD3: cmp eax, dword ptr [ecx] */ 3637 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 3638 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3639 _flag_k = FK_CMP; 3640 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D13; /* 0x31005CD5: jne 0x31005d13 */ 3641 L_31005CD7: 3642 eax = ecx; /* 0x31005CD7: mov eax, ecx */ 3643 ecx = MEM32(eax); /* 0x31005CD9: mov ecx, dword ptr [eax] */ 3644 edx = MEM32(ecx + 0x8); /* 0x31005CDB: mov edx, dword ptr [ecx + 8] */ 3645 MEM32(eax) = edx; /* 0x31005CDE: mov dword ptr [eax], edx */ 3646 edx = MEM32(ecx + 0x8); /* 0x31005CE0: mov edx, dword ptr [ecx + 8] */ 3647 /* cmp edx, MEM32(esi + 0x8) */ /* 0x31005CE3: cmp edx, dword ptr [esi + 8] */ 3648 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3649 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3650 _flag_k = FK_CMP; 3651 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005CEB; /* 0x31005CE6: je 0x31005ceb */ 3652 L_31005CE8: 3653 MEM32(edx + 0x4) = eax; /* 0x31005CE8: mov dword ptr [edx + 4], eax */ 3654 L_31005CEB: 3655 edx = MEM32(eax + 0x4); /* 0x31005CEB: mov edx, dword ptr [eax + 4] */ 3656 MEM32(ecx + 0x4) = edx; /* 0x31005CEE: mov dword ptr [ecx + 4], edx */ 3657 edx = MEM32(esi + 0x4); /* 0x31005CF1: mov edx, dword ptr [esi + 4] */ 3658 /* cmp eax, MEM32(edx + 0x4) */ /* 0x31005CF4: cmp eax, dword ptr [edx + 4] */ 3659 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 3660 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3661 _flag_k = FK_CMP; 3662 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CFE; /* 0x31005CF7: jne 0x31005cfe */ 3663 L_31005CF9: 3664 MEM32(edx + 0x4) = ecx; /* 0x31005CF9: mov dword ptr [edx + 4], ecx */ 3665 goto L_31005D0D; /* 0x31005CFC: jmp 0x31005d0d */ 3666 L_31005CFE: 3667 edx = MEM32(eax + 0x4); /* 0x31005CFE: mov edx, dword ptr [eax + 4] */ 3668 /* cmp eax, MEM32(edx + 0x8) */ /* 0x31005D01: cmp eax, dword ptr [edx + 8] */ 3669 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 3670 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3671 _flag_k = FK_CMP; 3672 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D0B; /* 0x31005D04: jne 0x31005d0b */ 3673 L_31005D06: 3674 MEM32(edx + 0x8) = ecx; /* 0x31005D06: mov dword ptr [edx + 8], ecx */ 3675 goto L_31005D0D; /* 0x31005D09: jmp 0x31005d0d */ 3676 L_31005D0B: 3677 MEM32(edx) = ecx; /* 0x31005D0B: mov dword ptr [edx], ecx */ 3678 L_31005D0D: 3679 MEM32(ecx + 0x8) = eax; /* 0x31005D0D: mov dword ptr [ecx + 8], eax */ 3680 MEM32(eax + 0x4) = ecx; /* 0x31005D10: mov dword ptr [eax + 4], ecx */ 3681 L_31005D13: 3682 ecx = MEM32(eax + 0x4); /* 0x31005D13: mov ecx, dword ptr [eax + 4] */ 3683 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005D16: mov byte ptr [ecx + 0x14], bl */ 3684 edx = MEM32(eax + 0x4); /* 0x31005D19: mov edx, dword ptr [eax + 4] */ 3685 ecx = MEM32(edx + 0x4); /* 0x31005D1C: mov ecx, dword ptr [edx + 4] */ 3686 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x31005D1F: mov byte ptr [ecx + 0x14], 0 */ 3687 edx = MEM32(eax + 0x4); /* 0x31005D23: mov edx, dword ptr [eax + 4] */ 3688 ecx = MEM32(edx + 0x4); /* 0x31005D26: mov ecx, dword ptr [edx + 4] */ 3689 edx = MEM32(ecx + 0x8); /* 0x31005D29: mov edx, dword ptr [ecx + 8] */ 3690 edi = MEM32(edx); /* 0x31005D2C: mov edi, dword ptr [edx] */ 3691 MEM32(ecx + 0x8) = edi; /* 0x31005D2E: mov dword ptr [ecx + 8], edi */ 3692 edi = MEM32(edx); /* 0x31005D31: mov edi, dword ptr [edx] */ 3693 /* cmp edi, MEM32(esi + 0x8) */ /* 0x31005D33: cmp edi, dword ptr [esi + 8] */ 3694 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3695 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3696 _flag_k = FK_CMP; 3697 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005D3B; /* 0x31005D36: je 0x31005d3b */ 3698 L_31005D38: 3699 MEM32(edi + 0x4) = ecx; /* 0x31005D38: mov dword ptr [edi + 4], ecx */ 3700 L_31005D3B: 3701 edi = MEM32(ecx + 0x4); /* 0x31005D3B: mov edi, dword ptr [ecx + 4] */ 3702 MEM32(edx + 0x4) = edi; /* 0x31005D3E: mov dword ptr [edx + 4], edi */ 3703 edi = MEM32(esi + 0x4); /* 0x31005D41: mov edi, dword ptr [esi + 4] */ 3704 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x31005D44: cmp ecx, dword ptr [edi + 4] */ 3705 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 3706 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3707 _flag_k = FK_CMP; 3708 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D4E; /* 0x31005D47: jne 0x31005d4e */ 3709 L_31005D49: 3710 MEM32(edi + 0x4) = edx; /* 0x31005D49: mov dword ptr [edi + 4], edx */ 3711 goto L_31005D5C; /* 0x31005D4C: jmp 0x31005d5c */ 3712 L_31005D4E: 3713 edi = MEM32(ecx + 0x4); /* 0x31005D4E: mov edi, dword ptr [ecx + 4] */ 3714 /* cmp ecx, MEM32(edi) */ /* 0x31005D51: cmp ecx, dword ptr [edi] */ 3715 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 3716 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3717 _flag_k = FK_CMP; 3718 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D59; /* 0x31005D53: jne 0x31005d59 */ 3719 L_31005D55: 3720 MEM32(edi) = edx; /* 0x31005D55: mov dword ptr [edi], edx */ 3721 goto L_31005D5C; /* 0x31005D57: jmp 0x31005d5c */ 3722 L_31005D59: 3723 MEM32(edi + 0x8) = edx; /* 0x31005D59: mov dword ptr [edi + 8], edx */ 3724 L_31005D5C: 3725 MEM32(edx) = ecx; /* 0x31005D5C: mov dword ptr [edx], ecx */ 3726 L_31005D5E: 3727 MEM32(ecx + 0x4) = edx; /* 0x31005D5E: mov dword ptr [ecx + 4], edx */ 3728 L_31005D61: 3729 ecx = MEM32(esi + 0x4); /* 0x31005D61: mov ecx, dword ptr [esi + 4] */ 3730 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x31005D64: cmp eax, dword ptr [ecx + 4] */ 3731 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 3732 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3733 _flag_k = FK_CMP; 3734 RECOMP_BACKEDGE(); 3735 if (CMP_NE(_flag_a, _flag_b)) goto L_31005BED; /* 0x31005D67: jne 0x31005bed */ 3736 L_31005D6D: 3737 edx = MEM32(esi + 0x4); /* 0x31005D6D: mov edx, dword ptr [esi + 4] */ 3738 eax = MEM32(edx + 0x4); /* 0x31005D70: mov eax, dword ptr [edx + 4] */ 3739 ecx = MEM32(ebp + (-0x4)); /* 0x31005D73: mov ecx, dword ptr [ebp - 4] */ 3740 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005D76: mov byte ptr [eax + 0x14], bl */ 3741 eax = MEM32(ebp + 0x8); /* 0x31005D79: mov eax, dword ptr [ebp + 8] */ 3742 edi = POP32_VAL(esp); /* 0x31005D7C: pop edi */ 3743 esi = POP32_VAL(esp); /* 0x31005D7D: pop esi */ 3744 MEM32(eax) = ecx; /* 0x31005D7E: mov dword ptr [eax], ecx */ 3745 ebx = POP32_VAL(esp); /* 0x31005D80: pop ebx */ 3746 esp = ebp; /* 0x31005D81: mov esp, ebp */ 3747 ebp = POP32_VAL(esp); /* 0x31005D83: pop ebp */ 3748 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x31005D84: ret 0x10 */ 3749 RECOMP_REGS_OUT(); 3750 } 3751 3752 void sub_31005BED(void) { 3753 int _fpu_cmp = 0; 3754 uint32_t _cf = 0; 3755 int _df = 1; 3756 uint32_t _flag_k = FK_NONE; 3757 uint32_t _flag_a = 0, _flag_b = 0; 3758 uint32_t _itail_tgt = 0; 3759 RECOMP_REGS_LOCALS 3760 RECOMP_ENTER(0x31005BEDu); 3761 3762 L_31005BED: 3763 ecx = MEM32(eax + 0x4); /* 0x31005BED: mov ecx, dword ptr [eax + 4] */ 3764 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x31005BF0: mov dl, byte ptr [ecx + 0x14] */ 3765 /* test LO8(edx), LO8(edx) */ /* 0x31005BF3: test dl, dl */ 3766 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3767 _cf = 0; 3768 _flag_k = FK_NARROW(FK_TEST, 24); 3769 if (TEST_NZ(_flag_a, _flag_b)) goto L_31005D6D; /* 0x31005BF5: jne 0x31005d6d */ 3770 L_31005BFB: 3771 edi = MEM32(ecx + 0x4); /* 0x31005BFB: mov edi, dword ptr [ecx + 4] */ 3772 edx = MEM32(edi); /* 0x31005BFE: mov edx, dword ptr [edi] */ 3773 /* cmp ecx, edx */ /* 0x31005C00: cmp ecx, edx */ 3774 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3775 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3776 _flag_k = FK_CMP; 3777 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CC9; /* 0x31005C02: jne 0x31005cc9 */ 3778 L_31005C08: 3779 edx = MEM32(edi + 0x8); /* 0x31005C08: mov edx, dword ptr [edi + 8] */ 3780 /* cmp MEM8(edx + 0x14), 0 */ /* 0x31005C0B: cmp byte ptr [edx + 0x14], 0 */ 3781 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 3782 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3783 _flag_k = FK_NARROW(FK_CMP, 24); 3784 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C2C; /* 0x31005C0F: jne 0x31005c2c */ 3785 L_31005C11: 3786 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C11: mov byte ptr [ecx + 0x14], bl */ 3787 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C14: mov byte ptr [edx + 0x14], bl */ 3788 ecx = MEM32(eax + 0x4); /* 0x31005C17: mov ecx, dword ptr [eax + 4] */ 3789 edx = MEM32(ecx + 0x4); /* 0x31005C1A: mov edx, dword ptr [ecx + 4] */ 3790 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x31005C1D: mov byte ptr [edx + 0x14], 0 */ 3791 eax = MEM32(eax + 0x4); /* 0x31005C21: mov eax, dword ptr [eax + 4] */ 3792 eax = MEM32(eax + 0x4); /* 0x31005C24: mov eax, dword ptr [eax + 4] */ 3793 goto L_31005D61; /* 0x31005C27: jmp 0x31005d61 */ 3794 L_31005C2C: 3795 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x31005C2C: cmp eax, dword ptr [ecx + 8] */ 3796 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 3797 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3798 _flag_k = FK_CMP; 3799 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C6B; /* 0x31005C2F: jne 0x31005c6b */ 3800 L_31005C31: 3801 eax = ecx; /* 0x31005C31: mov eax, ecx */ 3802 ecx = MEM32(eax + 0x8); /* 0x31005C33: mov ecx, dword ptr [eax + 8] */ 3803 edx = MEM32(ecx); /* 0x31005C36: mov edx, dword ptr [ecx] */ 3804 MEM32(eax + 0x8) = edx; /* 0x31005C38: mov dword ptr [eax + 8], edx */ 3805 edx = MEM32(ecx); /* 0x31005C3B: mov edx, dword ptr [ecx] */ 3806 /* cmp edx, MEM32(esi + 0x8) */ /* 0x31005C3D: cmp edx, dword ptr [esi + 8] */ 3807 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3808 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3809 _flag_k = FK_CMP; 3810 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C45; /* 0x31005C40: je 0x31005c45 */ 3811 L_31005C42: 3812 MEM32(edx + 0x4) = eax; /* 0x31005C42: mov dword ptr [edx + 4], eax */ 3813 L_31005C45: 3814 edx = MEM32(eax + 0x4); /* 0x31005C45: mov edx, dword ptr [eax + 4] */ 3815 MEM32(ecx + 0x4) = edx; /* 0x31005C48: mov dword ptr [ecx + 4], edx */ 3816 edx = MEM32(esi + 0x4); /* 0x31005C4B: mov edx, dword ptr [esi + 4] */ 3817 /* cmp eax, MEM32(edx + 0x4) */ /* 0x31005C4E: cmp eax, dword ptr [edx + 4] */ 3818 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 3819 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3820 _flag_k = FK_CMP; 3821 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C58; /* 0x31005C51: jne 0x31005c58 */ 3822 L_31005C53: 3823 MEM32(edx + 0x4) = ecx; /* 0x31005C53: mov dword ptr [edx + 4], ecx */ 3824 goto L_31005C66; /* 0x31005C56: jmp 0x31005c66 */ 3825 L_31005C58: 3826 edx = MEM32(eax + 0x4); /* 0x31005C58: mov edx, dword ptr [eax + 4] */ 3827 /* cmp eax, MEM32(edx) */ /* 0x31005C5B: cmp eax, dword ptr [edx] */ 3828 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 3829 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3830 _flag_k = FK_CMP; 3831 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C63; /* 0x31005C5D: jne 0x31005c63 */ 3832 L_31005C5F: 3833 MEM32(edx) = ecx; /* 0x31005C5F: mov dword ptr [edx], ecx */ 3834 goto L_31005C66; /* 0x31005C61: jmp 0x31005c66 */ 3835 L_31005C63: 3836 MEM32(edx + 0x8) = ecx; /* 0x31005C63: mov dword ptr [edx + 8], ecx */ 3837 L_31005C66: 3838 MEM32(ecx) = eax; /* 0x31005C66: mov dword ptr [ecx], eax */ 3839 MEM32(eax + 0x4) = ecx; /* 0x31005C68: mov dword ptr [eax + 4], ecx */ 3840 L_31005C6B: 3841 ecx = MEM32(eax + 0x4); /* 0x31005C6B: mov ecx, dword ptr [eax + 4] */ 3842 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C6E: mov byte ptr [ecx + 0x14], bl */ 3843 edx = MEM32(eax + 0x4); /* 0x31005C71: mov edx, dword ptr [eax + 4] */ 3844 ecx = MEM32(edx + 0x4); /* 0x31005C74: mov ecx, dword ptr [edx + 4] */ 3845 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x31005C77: mov byte ptr [ecx + 0x14], 0 */ 3846 edx = MEM32(eax + 0x4); /* 0x31005C7B: mov edx, dword ptr [eax + 4] */ 3847 ecx = MEM32(edx + 0x4); /* 0x31005C7E: mov ecx, dword ptr [edx + 4] */ 3848 edx = MEM32(ecx); /* 0x31005C81: mov edx, dword ptr [ecx] */ 3849 edi = MEM32(edx + 0x8); /* 0x31005C83: mov edi, dword ptr [edx + 8] */ 3850 MEM32(ecx) = edi; /* 0x31005C86: mov dword ptr [ecx], edi */ 3851 edi = MEM32(edx + 0x8); /* 0x31005C88: mov edi, dword ptr [edx + 8] */ 3852 /* cmp edi, MEM32(esi + 0x8) */ /* 0x31005C8B: cmp edi, dword ptr [esi + 8] */ 3853 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3854 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3855 _flag_k = FK_CMP; 3856 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C93; /* 0x31005C8E: je 0x31005c93 */ 3857 L_31005C90: 3858 MEM32(edi + 0x4) = ecx; /* 0x31005C90: mov dword ptr [edi + 4], ecx */ 3859 L_31005C93: 3860 edi = MEM32(ecx + 0x4); /* 0x31005C93: mov edi, dword ptr [ecx + 4] */ 3861 MEM32(edx + 0x4) = edi; /* 0x31005C96: mov dword ptr [edx + 4], edi */ 3862 edi = MEM32(esi + 0x4); /* 0x31005C99: mov edi, dword ptr [esi + 4] */ 3863 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x31005C9C: cmp ecx, dword ptr [edi + 4] */ 3864 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 3865 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3866 _flag_k = FK_CMP; 3867 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CAC; /* 0x31005C9F: jne 0x31005cac */ 3868 L_31005CA1: 3869 MEM32(edi + 0x4) = edx; /* 0x31005CA1: mov dword ptr [edi + 4], edx */ 3870 MEM32(edx + 0x8) = ecx; /* 0x31005CA4: mov dword ptr [edx + 8], ecx */ 3871 goto L_31005D5E; /* 0x31005CA7: jmp 0x31005d5e */ 3872 L_31005CAC: 3873 edi = MEM32(ecx + 0x4); /* 0x31005CAC: mov edi, dword ptr [ecx + 4] */ 3874 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x31005CAF: cmp ecx, dword ptr [edi + 8] */ 3875 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3876 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3877 _flag_k = FK_CMP; 3878 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CBF; /* 0x31005CB2: jne 0x31005cbf */ 3879 L_31005CB4: 3880 MEM32(edi + 0x8) = edx; /* 0x31005CB4: mov dword ptr [edi + 8], edx */ 3881 MEM32(edx + 0x8) = ecx; /* 0x31005CB7: mov dword ptr [edx + 8], ecx */ 3882 goto L_31005D5E; /* 0x31005CBA: jmp 0x31005d5e */ 3883 L_31005CBF: 3884 MEM32(edi) = edx; /* 0x31005CBF: mov dword ptr [edi], edx */ 3885 MEM32(edx + 0x8) = ecx; /* 0x31005CC1: mov dword ptr [edx + 8], ecx */ 3886 goto L_31005D5E; /* 0x31005CC4: jmp 0x31005d5e */ 3887 L_31005CC9: 3888 /* cmp MEM8(edx + 0x14), 0 */ /* 0x31005CC9: cmp byte ptr [edx + 0x14], 0 */ 3889 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 3890 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3891 _flag_k = FK_NARROW(FK_CMP, 24); 3892 RECOMP_BACKEDGE(); 3893 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C11; /* 0x31005CCD: je 0x31005c11 */ 3894 L_31005CD3: 3895 /* cmp eax, MEM32(ecx) */ /* 0x31005CD3: cmp eax, dword ptr [ecx] */ 3896 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 3897 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3898 _flag_k = FK_CMP; 3899 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D13; /* 0x31005CD5: jne 0x31005d13 */ 3900 L_31005CD7: 3901 eax = ecx; /* 0x31005CD7: mov eax, ecx */ 3902 ecx = MEM32(eax); /* 0x31005CD9: mov ecx, dword ptr [eax] */ 3903 edx = MEM32(ecx + 0x8); /* 0x31005CDB: mov edx, dword ptr [ecx + 8] */ 3904 MEM32(eax) = edx; /* 0x31005CDE: mov dword ptr [eax], edx */ 3905 edx = MEM32(ecx + 0x8); /* 0x31005CE0: mov edx, dword ptr [ecx + 8] */ 3906 /* cmp edx, MEM32(esi + 0x8) */ /* 0x31005CE3: cmp edx, dword ptr [esi + 8] */ 3907 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3908 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3909 _flag_k = FK_CMP; 3910 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005CEB; /* 0x31005CE6: je 0x31005ceb */ 3911 L_31005CE8: 3912 MEM32(edx + 0x4) = eax; /* 0x31005CE8: mov dword ptr [edx + 4], eax */ 3913 L_31005CEB: 3914 edx = MEM32(eax + 0x4); /* 0x31005CEB: mov edx, dword ptr [eax + 4] */ 3915 MEM32(ecx + 0x4) = edx; /* 0x31005CEE: mov dword ptr [ecx + 4], edx */ 3916 edx = MEM32(esi + 0x4); /* 0x31005CF1: mov edx, dword ptr [esi + 4] */ 3917 /* cmp eax, MEM32(edx + 0x4) */ /* 0x31005CF4: cmp eax, dword ptr [edx + 4] */ 3918 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 3919 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3920 _flag_k = FK_CMP; 3921 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CFE; /* 0x31005CF7: jne 0x31005cfe */ 3922 L_31005CF9: 3923 MEM32(edx + 0x4) = ecx; /* 0x31005CF9: mov dword ptr [edx + 4], ecx */ 3924 goto L_31005D0D; /* 0x31005CFC: jmp 0x31005d0d */ 3925 L_31005CFE: 3926 edx = MEM32(eax + 0x4); /* 0x31005CFE: mov edx, dword ptr [eax + 4] */ 3927 /* cmp eax, MEM32(edx + 0x8) */ /* 0x31005D01: cmp eax, dword ptr [edx + 8] */ 3928 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 3929 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3930 _flag_k = FK_CMP; 3931 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D0B; /* 0x31005D04: jne 0x31005d0b */ 3932 L_31005D06: 3933 MEM32(edx + 0x8) = ecx; /* 0x31005D06: mov dword ptr [edx + 8], ecx */ 3934 goto L_31005D0D; /* 0x31005D09: jmp 0x31005d0d */ 3935 L_31005D0B: 3936 MEM32(edx) = ecx; /* 0x31005D0B: mov dword ptr [edx], ecx */ 3937 L_31005D0D: 3938 MEM32(ecx + 0x8) = eax; /* 0x31005D0D: mov dword ptr [ecx + 8], eax */ 3939 MEM32(eax + 0x4) = ecx; /* 0x31005D10: mov dword ptr [eax + 4], ecx */ 3940 L_31005D13: 3941 ecx = MEM32(eax + 0x4); /* 0x31005D13: mov ecx, dword ptr [eax + 4] */ 3942 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005D16: mov byte ptr [ecx + 0x14], bl */ 3943 edx = MEM32(eax + 0x4); /* 0x31005D19: mov edx, dword ptr [eax + 4] */ 3944 ecx = MEM32(edx + 0x4); /* 0x31005D1C: mov ecx, dword ptr [edx + 4] */ 3945 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x31005D1F: mov byte ptr [ecx + 0x14], 0 */ 3946 edx = MEM32(eax + 0x4); /* 0x31005D23: mov edx, dword ptr [eax + 4] */ 3947 ecx = MEM32(edx + 0x4); /* 0x31005D26: mov ecx, dword ptr [edx + 4] */ 3948 edx = MEM32(ecx + 0x8); /* 0x31005D29: mov edx, dword ptr [ecx + 8] */ 3949 edi = MEM32(edx); /* 0x31005D2C: mov edi, dword ptr [edx] */ 3950 MEM32(ecx + 0x8) = edi; /* 0x31005D2E: mov dword ptr [ecx + 8], edi */ 3951 edi = MEM32(edx); /* 0x31005D31: mov edi, dword ptr [edx] */ 3952 /* cmp edi, MEM32(esi + 0x8) */ /* 0x31005D33: cmp edi, dword ptr [esi + 8] */ 3953 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3954 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3955 _flag_k = FK_CMP; 3956 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005D3B; /* 0x31005D36: je 0x31005d3b */ 3957 L_31005D38: 3958 MEM32(edi + 0x4) = ecx; /* 0x31005D38: mov dword ptr [edi + 4], ecx */ 3959 L_31005D3B: 3960 edi = MEM32(ecx + 0x4); /* 0x31005D3B: mov edi, dword ptr [ecx + 4] */ 3961 MEM32(edx + 0x4) = edi; /* 0x31005D3E: mov dword ptr [edx + 4], edi */ 3962 edi = MEM32(esi + 0x4); /* 0x31005D41: mov edi, dword ptr [esi + 4] */ 3963 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x31005D44: cmp ecx, dword ptr [edi + 4] */ 3964 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 3965 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3966 _flag_k = FK_CMP; 3967 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D4E; /* 0x31005D47: jne 0x31005d4e */ 3968 L_31005D49: 3969 MEM32(edi + 0x4) = edx; /* 0x31005D49: mov dword ptr [edi + 4], edx */ 3970 goto L_31005D5C; /* 0x31005D4C: jmp 0x31005d5c */ 3971 L_31005D4E: 3972 edi = MEM32(ecx + 0x4); /* 0x31005D4E: mov edi, dword ptr [ecx + 4] */ 3973 /* cmp ecx, MEM32(edi) */ /* 0x31005D51: cmp ecx, dword ptr [edi] */ 3974 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 3975 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3976 _flag_k = FK_CMP; 3977 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D59; /* 0x31005D53: jne 0x31005d59 */ 3978 L_31005D55: 3979 MEM32(edi) = edx; /* 0x31005D55: mov dword ptr [edi], edx */ 3980 goto L_31005D5C; /* 0x31005D57: jmp 0x31005d5c */ 3981 L_31005D59: 3982 MEM32(edi + 0x8) = edx; /* 0x31005D59: mov dword ptr [edi + 8], edx */ 3983 L_31005D5C: 3984 MEM32(edx) = ecx; /* 0x31005D5C: mov dword ptr [edx], ecx */ 3985 L_31005D5E: 3986 MEM32(ecx + 0x4) = edx; /* 0x31005D5E: mov dword ptr [ecx + 4], edx */ 3987 L_31005D61: 3988 ecx = MEM32(esi + 0x4); /* 0x31005D61: mov ecx, dword ptr [esi + 4] */ 3989 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x31005D64: cmp eax, dword ptr [ecx + 4] */ 3990 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 3991 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3992 _flag_k = FK_CMP; 3993 RECOMP_BACKEDGE(); 3994 if (CMP_NE(_flag_a, _flag_b)) goto L_31005BED; /* 0x31005D67: jne 0x31005bed */ 3995 L_31005D6D: 3996 edx = MEM32(esi + 0x4); /* 0x31005D6D: mov edx, dword ptr [esi + 4] */ 3997 eax = MEM32(edx + 0x4); /* 0x31005D70: mov eax, dword ptr [edx + 4] */ 3998 ecx = MEM32(ebp + (-0x4)); /* 0x31005D73: mov ecx, dword ptr [ebp - 4] */ 3999 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005D76: mov byte ptr [eax + 0x14], bl */ 4000 eax = MEM32(ebp + 0x8); /* 0x31005D79: mov eax, dword ptr [ebp + 8] */ 4001 edi = POP32_VAL(esp); /* 0x31005D7C: pop edi */ 4002 esi = POP32_VAL(esp); /* 0x31005D7D: pop esi */ 4003 MEM32(eax) = ecx; /* 0x31005D7E: mov dword ptr [eax], ecx */ 4004 ebx = POP32_VAL(esp); /* 0x31005D80: pop ebx */ 4005 esp = ebp; /* 0x31005D81: mov esp, ebp */ 4006 ebp = POP32_VAL(esp); /* 0x31005D83: pop ebp */ 4007 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x31005D84: ret 0x10 */ 4008 RECOMP_REGS_OUT(); 4009 } 4010 4011 void sub_31005C11(void) { 4012 int _fpu_cmp = 0; 4013 uint32_t _cf = 0; 4014 int _df = 1; 4015 uint32_t _flag_k = FK_NONE; 4016 uint32_t _flag_a = 0, _flag_b = 0; 4017 uint32_t _itail_tgt = 0; 4018 RECOMP_REGS_LOCALS 4019 RECOMP_ENTER(0x31005C11u); 4020 4021 goto L_31005C11; 4022 L_31005BED: 4023 ecx = MEM32(eax + 0x4); /* 0x31005BED: mov ecx, dword ptr [eax + 4] */ 4024 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x31005BF0: mov dl, byte ptr [ecx + 0x14] */ 4025 /* test LO8(edx), LO8(edx) */ /* 0x31005BF3: test dl, dl */ 4026 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4027 _cf = 0; 4028 _flag_k = FK_NARROW(FK_TEST, 24); 4029 if (TEST_NZ(_flag_a, _flag_b)) goto L_31005D6D; /* 0x31005BF5: jne 0x31005d6d */ 4030 L_31005BFB: 4031 edi = MEM32(ecx + 0x4); /* 0x31005BFB: mov edi, dword ptr [ecx + 4] */ 4032 edx = MEM32(edi); /* 0x31005BFE: mov edx, dword ptr [edi] */ 4033 /* cmp ecx, edx */ /* 0x31005C00: cmp ecx, edx */ 4034 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 4035 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4036 _flag_k = FK_CMP; 4037 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CC9; /* 0x31005C02: jne 0x31005cc9 */ 4038 L_31005C08: 4039 edx = MEM32(edi + 0x8); /* 0x31005C08: mov edx, dword ptr [edi + 8] */ 4040 /* cmp MEM8(edx + 0x14), 0 */ /* 0x31005C0B: cmp byte ptr [edx + 0x14], 0 */ 4041 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 4042 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4043 _flag_k = FK_NARROW(FK_CMP, 24); 4044 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C2C; /* 0x31005C0F: jne 0x31005c2c */ 4045 L_31005C11: 4046 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C11: mov byte ptr [ecx + 0x14], bl */ 4047 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C14: mov byte ptr [edx + 0x14], bl */ 4048 ecx = MEM32(eax + 0x4); /* 0x31005C17: mov ecx, dword ptr [eax + 4] */ 4049 edx = MEM32(ecx + 0x4); /* 0x31005C1A: mov edx, dword ptr [ecx + 4] */ 4050 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x31005C1D: mov byte ptr [edx + 0x14], 0 */ 4051 eax = MEM32(eax + 0x4); /* 0x31005C21: mov eax, dword ptr [eax + 4] */ 4052 eax = MEM32(eax + 0x4); /* 0x31005C24: mov eax, dword ptr [eax + 4] */ 4053 goto L_31005D61; /* 0x31005C27: jmp 0x31005d61 */ 4054 L_31005C2C: 4055 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x31005C2C: cmp eax, dword ptr [ecx + 8] */ 4056 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 4057 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4058 _flag_k = FK_CMP; 4059 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C6B; /* 0x31005C2F: jne 0x31005c6b */ 4060 L_31005C31: 4061 eax = ecx; /* 0x31005C31: mov eax, ecx */ 4062 ecx = MEM32(eax + 0x8); /* 0x31005C33: mov ecx, dword ptr [eax + 8] */ 4063 edx = MEM32(ecx); /* 0x31005C36: mov edx, dword ptr [ecx] */ 4064 MEM32(eax + 0x8) = edx; /* 0x31005C38: mov dword ptr [eax + 8], edx */ 4065 edx = MEM32(ecx); /* 0x31005C3B: mov edx, dword ptr [ecx] */ 4066 /* cmp edx, MEM32(esi + 0x8) */ /* 0x31005C3D: cmp edx, dword ptr [esi + 8] */ 4067 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4068 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4069 _flag_k = FK_CMP; 4070 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C45; /* 0x31005C40: je 0x31005c45 */ 4071 L_31005C42: 4072 MEM32(edx + 0x4) = eax; /* 0x31005C42: mov dword ptr [edx + 4], eax */ 4073 L_31005C45: 4074 edx = MEM32(eax + 0x4); /* 0x31005C45: mov edx, dword ptr [eax + 4] */ 4075 MEM32(ecx + 0x4) = edx; /* 0x31005C48: mov dword ptr [ecx + 4], edx */ 4076 edx = MEM32(esi + 0x4); /* 0x31005C4B: mov edx, dword ptr [esi + 4] */ 4077 /* cmp eax, MEM32(edx + 0x4) */ /* 0x31005C4E: cmp eax, dword ptr [edx + 4] */ 4078 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 4079 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4080 _flag_k = FK_CMP; 4081 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C58; /* 0x31005C51: jne 0x31005c58 */ 4082 L_31005C53: 4083 MEM32(edx + 0x4) = ecx; /* 0x31005C53: mov dword ptr [edx + 4], ecx */ 4084 goto L_31005C66; /* 0x31005C56: jmp 0x31005c66 */ 4085 L_31005C58: 4086 edx = MEM32(eax + 0x4); /* 0x31005C58: mov edx, dword ptr [eax + 4] */ 4087 /* cmp eax, MEM32(edx) */ /* 0x31005C5B: cmp eax, dword ptr [edx] */ 4088 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 4089 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4090 _flag_k = FK_CMP; 4091 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C63; /* 0x31005C5D: jne 0x31005c63 */ 4092 L_31005C5F: 4093 MEM32(edx) = ecx; /* 0x31005C5F: mov dword ptr [edx], ecx */ 4094 goto L_31005C66; /* 0x31005C61: jmp 0x31005c66 */ 4095 L_31005C63: 4096 MEM32(edx + 0x8) = ecx; /* 0x31005C63: mov dword ptr [edx + 8], ecx */ 4097 L_31005C66: 4098 MEM32(ecx) = eax; /* 0x31005C66: mov dword ptr [ecx], eax */ 4099 MEM32(eax + 0x4) = ecx; /* 0x31005C68: mov dword ptr [eax + 4], ecx */ 4100 L_31005C6B: 4101 ecx = MEM32(eax + 0x4); /* 0x31005C6B: mov ecx, dword ptr [eax + 4] */ 4102 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C6E: mov byte ptr [ecx + 0x14], bl */ 4103 edx = MEM32(eax + 0x4); /* 0x31005C71: mov edx, dword ptr [eax + 4] */ 4104 ecx = MEM32(edx + 0x4); /* 0x31005C74: mov ecx, dword ptr [edx + 4] */ 4105 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x31005C77: mov byte ptr [ecx + 0x14], 0 */ 4106 edx = MEM32(eax + 0x4); /* 0x31005C7B: mov edx, dword ptr [eax + 4] */ 4107 ecx = MEM32(edx + 0x4); /* 0x31005C7E: mov ecx, dword ptr [edx + 4] */ 4108 edx = MEM32(ecx); /* 0x31005C81: mov edx, dword ptr [ecx] */ 4109 edi = MEM32(edx + 0x8); /* 0x31005C83: mov edi, dword ptr [edx + 8] */ 4110 MEM32(ecx) = edi; /* 0x31005C86: mov dword ptr [ecx], edi */ 4111 edi = MEM32(edx + 0x8); /* 0x31005C88: mov edi, dword ptr [edx + 8] */ 4112 /* cmp edi, MEM32(esi + 0x8) */ /* 0x31005C8B: cmp edi, dword ptr [esi + 8] */ 4113 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4114 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4115 _flag_k = FK_CMP; 4116 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C93; /* 0x31005C8E: je 0x31005c93 */ 4117 L_31005C90: 4118 MEM32(edi + 0x4) = ecx; /* 0x31005C90: mov dword ptr [edi + 4], ecx */ 4119 L_31005C93: 4120 edi = MEM32(ecx + 0x4); /* 0x31005C93: mov edi, dword ptr [ecx + 4] */ 4121 MEM32(edx + 0x4) = edi; /* 0x31005C96: mov dword ptr [edx + 4], edi */ 4122 edi = MEM32(esi + 0x4); /* 0x31005C99: mov edi, dword ptr [esi + 4] */ 4123 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x31005C9C: cmp ecx, dword ptr [edi + 4] */ 4124 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 4125 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4126 _flag_k = FK_CMP; 4127 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CAC; /* 0x31005C9F: jne 0x31005cac */ 4128 L_31005CA1: 4129 MEM32(edi + 0x4) = edx; /* 0x31005CA1: mov dword ptr [edi + 4], edx */ 4130 MEM32(edx + 0x8) = ecx; /* 0x31005CA4: mov dword ptr [edx + 8], ecx */ 4131 goto L_31005D5E; /* 0x31005CA7: jmp 0x31005d5e */ 4132 L_31005CAC: 4133 edi = MEM32(ecx + 0x4); /* 0x31005CAC: mov edi, dword ptr [ecx + 4] */ 4134 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x31005CAF: cmp ecx, dword ptr [edi + 8] */ 4135 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4136 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4137 _flag_k = FK_CMP; 4138 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CBF; /* 0x31005CB2: jne 0x31005cbf */ 4139 L_31005CB4: 4140 MEM32(edi + 0x8) = edx; /* 0x31005CB4: mov dword ptr [edi + 8], edx */ 4141 MEM32(edx + 0x8) = ecx; /* 0x31005CB7: mov dword ptr [edx + 8], ecx */ 4142 goto L_31005D5E; /* 0x31005CBA: jmp 0x31005d5e */ 4143 L_31005CBF: 4144 MEM32(edi) = edx; /* 0x31005CBF: mov dword ptr [edi], edx */ 4145 MEM32(edx + 0x8) = ecx; /* 0x31005CC1: mov dword ptr [edx + 8], ecx */ 4146 goto L_31005D5E; /* 0x31005CC4: jmp 0x31005d5e */ 4147 L_31005CC9: 4148 /* cmp MEM8(edx + 0x14), 0 */ /* 0x31005CC9: cmp byte ptr [edx + 0x14], 0 */ 4149 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 4150 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4151 _flag_k = FK_NARROW(FK_CMP, 24); 4152 RECOMP_BACKEDGE(); 4153 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C11; /* 0x31005CCD: je 0x31005c11 */ 4154 L_31005CD3: 4155 /* cmp eax, MEM32(ecx) */ /* 0x31005CD3: cmp eax, dword ptr [ecx] */ 4156 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 4157 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4158 _flag_k = FK_CMP; 4159 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D13; /* 0x31005CD5: jne 0x31005d13 */ 4160 L_31005CD7: 4161 eax = ecx; /* 0x31005CD7: mov eax, ecx */ 4162 ecx = MEM32(eax); /* 0x31005CD9: mov ecx, dword ptr [eax] */ 4163 edx = MEM32(ecx + 0x8); /* 0x31005CDB: mov edx, dword ptr [ecx + 8] */ 4164 MEM32(eax) = edx; /* 0x31005CDE: mov dword ptr [eax], edx */ 4165 edx = MEM32(ecx + 0x8); /* 0x31005CE0: mov edx, dword ptr [ecx + 8] */ 4166 /* cmp edx, MEM32(esi + 0x8) */ /* 0x31005CE3: cmp edx, dword ptr [esi + 8] */ 4167 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4168 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4169 _flag_k = FK_CMP; 4170 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005CEB; /* 0x31005CE6: je 0x31005ceb */ 4171 L_31005CE8: 4172 MEM32(edx + 0x4) = eax; /* 0x31005CE8: mov dword ptr [edx + 4], eax */ 4173 L_31005CEB: 4174 edx = MEM32(eax + 0x4); /* 0x31005CEB: mov edx, dword ptr [eax + 4] */ 4175 MEM32(ecx + 0x4) = edx; /* 0x31005CEE: mov dword ptr [ecx + 4], edx */ 4176 edx = MEM32(esi + 0x4); /* 0x31005CF1: mov edx, dword ptr [esi + 4] */ 4177 /* cmp eax, MEM32(edx + 0x4) */ /* 0x31005CF4: cmp eax, dword ptr [edx + 4] */ 4178 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 4179 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4180 _flag_k = FK_CMP; 4181 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CFE; /* 0x31005CF7: jne 0x31005cfe */ 4182 L_31005CF9: 4183 MEM32(edx + 0x4) = ecx; /* 0x31005CF9: mov dword ptr [edx + 4], ecx */ 4184 goto L_31005D0D; /* 0x31005CFC: jmp 0x31005d0d */ 4185 L_31005CFE: 4186 edx = MEM32(eax + 0x4); /* 0x31005CFE: mov edx, dword ptr [eax + 4] */ 4187 /* cmp eax, MEM32(edx + 0x8) */ /* 0x31005D01: cmp eax, dword ptr [edx + 8] */ 4188 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 4189 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4190 _flag_k = FK_CMP; 4191 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D0B; /* 0x31005D04: jne 0x31005d0b */ 4192 L_31005D06: 4193 MEM32(edx + 0x8) = ecx; /* 0x31005D06: mov dword ptr [edx + 8], ecx */ 4194 goto L_31005D0D; /* 0x31005D09: jmp 0x31005d0d */ 4195 L_31005D0B: 4196 MEM32(edx) = ecx; /* 0x31005D0B: mov dword ptr [edx], ecx */ 4197 L_31005D0D: 4198 MEM32(ecx + 0x8) = eax; /* 0x31005D0D: mov dword ptr [ecx + 8], eax */ 4199 MEM32(eax + 0x4) = ecx; /* 0x31005D10: mov dword ptr [eax + 4], ecx */ 4200 L_31005D13: 4201 ecx = MEM32(eax + 0x4); /* 0x31005D13: mov ecx, dword ptr [eax + 4] */ 4202 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005D16: mov byte ptr [ecx + 0x14], bl */ 4203 edx = MEM32(eax + 0x4); /* 0x31005D19: mov edx, dword ptr [eax + 4] */ 4204 ecx = MEM32(edx + 0x4); /* 0x31005D1C: mov ecx, dword ptr [edx + 4] */ 4205 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x31005D1F: mov byte ptr [ecx + 0x14], 0 */ 4206 edx = MEM32(eax + 0x4); /* 0x31005D23: mov edx, dword ptr [eax + 4] */ 4207 ecx = MEM32(edx + 0x4); /* 0x31005D26: mov ecx, dword ptr [edx + 4] */ 4208 edx = MEM32(ecx + 0x8); /* 0x31005D29: mov edx, dword ptr [ecx + 8] */ 4209 edi = MEM32(edx); /* 0x31005D2C: mov edi, dword ptr [edx] */ 4210 MEM32(ecx + 0x8) = edi; /* 0x31005D2E: mov dword ptr [ecx + 8], edi */ 4211 edi = MEM32(edx); /* 0x31005D31: mov edi, dword ptr [edx] */ 4212 /* cmp edi, MEM32(esi + 0x8) */ /* 0x31005D33: cmp edi, dword ptr [esi + 8] */ 4213 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4214 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4215 _flag_k = FK_CMP; 4216 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005D3B; /* 0x31005D36: je 0x31005d3b */ 4217 L_31005D38: 4218 MEM32(edi + 0x4) = ecx; /* 0x31005D38: mov dword ptr [edi + 4], ecx */ 4219 L_31005D3B: 4220 edi = MEM32(ecx + 0x4); /* 0x31005D3B: mov edi, dword ptr [ecx + 4] */ 4221 MEM32(edx + 0x4) = edi; /* 0x31005D3E: mov dword ptr [edx + 4], edi */ 4222 edi = MEM32(esi + 0x4); /* 0x31005D41: mov edi, dword ptr [esi + 4] */ 4223 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x31005D44: cmp ecx, dword ptr [edi + 4] */ 4224 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 4225 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4226 _flag_k = FK_CMP; 4227 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D4E; /* 0x31005D47: jne 0x31005d4e */ 4228 L_31005D49: 4229 MEM32(edi + 0x4) = edx; /* 0x31005D49: mov dword ptr [edi + 4], edx */ 4230 goto L_31005D5C; /* 0x31005D4C: jmp 0x31005d5c */ 4231 L_31005D4E: 4232 edi = MEM32(ecx + 0x4); /* 0x31005D4E: mov edi, dword ptr [ecx + 4] */ 4233 /* cmp ecx, MEM32(edi) */ /* 0x31005D51: cmp ecx, dword ptr [edi] */ 4234 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 4235 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4236 _flag_k = FK_CMP; 4237 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D59; /* 0x31005D53: jne 0x31005d59 */ 4238 L_31005D55: 4239 MEM32(edi) = edx; /* 0x31005D55: mov dword ptr [edi], edx */ 4240 goto L_31005D5C; /* 0x31005D57: jmp 0x31005d5c */ 4241 L_31005D59: 4242 MEM32(edi + 0x8) = edx; /* 0x31005D59: mov dword ptr [edi + 8], edx */ 4243 L_31005D5C: 4244 MEM32(edx) = ecx; /* 0x31005D5C: mov dword ptr [edx], ecx */ 4245 L_31005D5E: 4246 MEM32(ecx + 0x4) = edx; /* 0x31005D5E: mov dword ptr [ecx + 4], edx */ 4247 L_31005D61: 4248 ecx = MEM32(esi + 0x4); /* 0x31005D61: mov ecx, dword ptr [esi + 4] */ 4249 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x31005D64: cmp eax, dword ptr [ecx + 4] */ 4250 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 4251 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4252 _flag_k = FK_CMP; 4253 RECOMP_BACKEDGE(); 4254 if (CMP_NE(_flag_a, _flag_b)) goto L_31005BED; /* 0x31005D67: jne 0x31005bed */ 4255 L_31005D6D: 4256 edx = MEM32(esi + 0x4); /* 0x31005D6D: mov edx, dword ptr [esi + 4] */ 4257 eax = MEM32(edx + 0x4); /* 0x31005D70: mov eax, dword ptr [edx + 4] */ 4258 ecx = MEM32(ebp + (-0x4)); /* 0x31005D73: mov ecx, dword ptr [ebp - 4] */ 4259 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005D76: mov byte ptr [eax + 0x14], bl */ 4260 eax = MEM32(ebp + 0x8); /* 0x31005D79: mov eax, dword ptr [ebp + 8] */ 4261 edi = POP32_VAL(esp); /* 0x31005D7C: pop edi */ 4262 esi = POP32_VAL(esp); /* 0x31005D7D: pop esi */ 4263 MEM32(eax) = ecx; /* 0x31005D7E: mov dword ptr [eax], ecx */ 4264 ebx = POP32_VAL(esp); /* 0x31005D80: pop ebx */ 4265 esp = ebp; /* 0x31005D81: mov esp, ebp */ 4266 ebp = POP32_VAL(esp); /* 0x31005D83: pop ebp */ 4267 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x31005D84: ret 0x10 */ 4268 RECOMP_REGS_OUT(); 4269 } 4270 4271 void sub_31005C66(void) { 4272 int _fpu_cmp = 0; 4273 uint32_t _cf = 0; 4274 int _df = 1; 4275 uint32_t _flag_k = FK_NONE; 4276 uint32_t _flag_a = 0, _flag_b = 0; 4277 uint32_t _itail_tgt = 0; 4278 RECOMP_REGS_LOCALS 4279 RECOMP_ENTER(0x31005C66u); 4280 4281 goto L_31005C66; 4282 L_31005BED: 4283 ecx = MEM32(eax + 0x4); /* 0x31005BED: mov ecx, dword ptr [eax + 4] */ 4284 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x31005BF0: mov dl, byte ptr [ecx + 0x14] */ 4285 /* test LO8(edx), LO8(edx) */ /* 0x31005BF3: test dl, dl */ 4286 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4287 _cf = 0; 4288 _flag_k = FK_NARROW(FK_TEST, 24); 4289 if (TEST_NZ(_flag_a, _flag_b)) goto L_31005D6D; /* 0x31005BF5: jne 0x31005d6d */ 4290 L_31005BFB: 4291 edi = MEM32(ecx + 0x4); /* 0x31005BFB: mov edi, dword ptr [ecx + 4] */ 4292 edx = MEM32(edi); /* 0x31005BFE: mov edx, dword ptr [edi] */ 4293 /* cmp ecx, edx */ /* 0x31005C00: cmp ecx, edx */ 4294 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 4295 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4296 _flag_k = FK_CMP; 4297 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CC9; /* 0x31005C02: jne 0x31005cc9 */ 4298 L_31005C08: 4299 edx = MEM32(edi + 0x8); /* 0x31005C08: mov edx, dword ptr [edi + 8] */ 4300 /* cmp MEM8(edx + 0x14), 0 */ /* 0x31005C0B: cmp byte ptr [edx + 0x14], 0 */ 4301 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 4302 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4303 _flag_k = FK_NARROW(FK_CMP, 24); 4304 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C2C; /* 0x31005C0F: jne 0x31005c2c */ 4305 L_31005C11: 4306 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C11: mov byte ptr [ecx + 0x14], bl */ 4307 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C14: mov byte ptr [edx + 0x14], bl */ 4308 ecx = MEM32(eax + 0x4); /* 0x31005C17: mov ecx, dword ptr [eax + 4] */ 4309 edx = MEM32(ecx + 0x4); /* 0x31005C1A: mov edx, dword ptr [ecx + 4] */ 4310 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x31005C1D: mov byte ptr [edx + 0x14], 0 */ 4311 eax = MEM32(eax + 0x4); /* 0x31005C21: mov eax, dword ptr [eax + 4] */ 4312 eax = MEM32(eax + 0x4); /* 0x31005C24: mov eax, dword ptr [eax + 4] */ 4313 goto L_31005D61; /* 0x31005C27: jmp 0x31005d61 */ 4314 L_31005C2C: 4315 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x31005C2C: cmp eax, dword ptr [ecx + 8] */ 4316 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 4317 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4318 _flag_k = FK_CMP; 4319 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C6B; /* 0x31005C2F: jne 0x31005c6b */ 4320 L_31005C31: 4321 eax = ecx; /* 0x31005C31: mov eax, ecx */ 4322 ecx = MEM32(eax + 0x8); /* 0x31005C33: mov ecx, dword ptr [eax + 8] */ 4323 edx = MEM32(ecx); /* 0x31005C36: mov edx, dword ptr [ecx] */ 4324 MEM32(eax + 0x8) = edx; /* 0x31005C38: mov dword ptr [eax + 8], edx */ 4325 edx = MEM32(ecx); /* 0x31005C3B: mov edx, dword ptr [ecx] */ 4326 /* cmp edx, MEM32(esi + 0x8) */ /* 0x31005C3D: cmp edx, dword ptr [esi + 8] */ 4327 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4328 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4329 _flag_k = FK_CMP; 4330 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C45; /* 0x31005C40: je 0x31005c45 */ 4331 L_31005C42: 4332 MEM32(edx + 0x4) = eax; /* 0x31005C42: mov dword ptr [edx + 4], eax */ 4333 L_31005C45: 4334 edx = MEM32(eax + 0x4); /* 0x31005C45: mov edx, dword ptr [eax + 4] */ 4335 MEM32(ecx + 0x4) = edx; /* 0x31005C48: mov dword ptr [ecx + 4], edx */ 4336 edx = MEM32(esi + 0x4); /* 0x31005C4B: mov edx, dword ptr [esi + 4] */ 4337 /* cmp eax, MEM32(edx + 0x4) */ /* 0x31005C4E: cmp eax, dword ptr [edx + 4] */ 4338 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 4339 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4340 _flag_k = FK_CMP; 4341 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C58; /* 0x31005C51: jne 0x31005c58 */ 4342 L_31005C53: 4343 MEM32(edx + 0x4) = ecx; /* 0x31005C53: mov dword ptr [edx + 4], ecx */ 4344 goto L_31005C66; /* 0x31005C56: jmp 0x31005c66 */ 4345 L_31005C58: 4346 edx = MEM32(eax + 0x4); /* 0x31005C58: mov edx, dword ptr [eax + 4] */ 4347 /* cmp eax, MEM32(edx) */ /* 0x31005C5B: cmp eax, dword ptr [edx] */ 4348 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 4349 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4350 _flag_k = FK_CMP; 4351 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C63; /* 0x31005C5D: jne 0x31005c63 */ 4352 L_31005C5F: 4353 MEM32(edx) = ecx; /* 0x31005C5F: mov dword ptr [edx], ecx */ 4354 goto L_31005C66; /* 0x31005C61: jmp 0x31005c66 */ 4355 L_31005C63: 4356 MEM32(edx + 0x8) = ecx; /* 0x31005C63: mov dword ptr [edx + 8], ecx */ 4357 L_31005C66: 4358 MEM32(ecx) = eax; /* 0x31005C66: mov dword ptr [ecx], eax */ 4359 MEM32(eax + 0x4) = ecx; /* 0x31005C68: mov dword ptr [eax + 4], ecx */ 4360 L_31005C6B: 4361 ecx = MEM32(eax + 0x4); /* 0x31005C6B: mov ecx, dword ptr [eax + 4] */ 4362 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C6E: mov byte ptr [ecx + 0x14], bl */ 4363 edx = MEM32(eax + 0x4); /* 0x31005C71: mov edx, dword ptr [eax + 4] */ 4364 ecx = MEM32(edx + 0x4); /* 0x31005C74: mov ecx, dword ptr [edx + 4] */ 4365 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x31005C77: mov byte ptr [ecx + 0x14], 0 */ 4366 edx = MEM32(eax + 0x4); /* 0x31005C7B: mov edx, dword ptr [eax + 4] */ 4367 ecx = MEM32(edx + 0x4); /* 0x31005C7E: mov ecx, dword ptr [edx + 4] */ 4368 edx = MEM32(ecx); /* 0x31005C81: mov edx, dword ptr [ecx] */ 4369 edi = MEM32(edx + 0x8); /* 0x31005C83: mov edi, dword ptr [edx + 8] */ 4370 MEM32(ecx) = edi; /* 0x31005C86: mov dword ptr [ecx], edi */ 4371 edi = MEM32(edx + 0x8); /* 0x31005C88: mov edi, dword ptr [edx + 8] */ 4372 /* cmp edi, MEM32(esi + 0x8) */ /* 0x31005C8B: cmp edi, dword ptr [esi + 8] */ 4373 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4374 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4375 _flag_k = FK_CMP; 4376 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C93; /* 0x31005C8E: je 0x31005c93 */ 4377 L_31005C90: 4378 MEM32(edi + 0x4) = ecx; /* 0x31005C90: mov dword ptr [edi + 4], ecx */ 4379 L_31005C93: 4380 edi = MEM32(ecx + 0x4); /* 0x31005C93: mov edi, dword ptr [ecx + 4] */ 4381 MEM32(edx + 0x4) = edi; /* 0x31005C96: mov dword ptr [edx + 4], edi */ 4382 edi = MEM32(esi + 0x4); /* 0x31005C99: mov edi, dword ptr [esi + 4] */ 4383 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x31005C9C: cmp ecx, dword ptr [edi + 4] */ 4384 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 4385 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4386 _flag_k = FK_CMP; 4387 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CAC; /* 0x31005C9F: jne 0x31005cac */ 4388 L_31005CA1: 4389 MEM32(edi + 0x4) = edx; /* 0x31005CA1: mov dword ptr [edi + 4], edx */ 4390 MEM32(edx + 0x8) = ecx; /* 0x31005CA4: mov dword ptr [edx + 8], ecx */ 4391 goto L_31005D5E; /* 0x31005CA7: jmp 0x31005d5e */ 4392 L_31005CAC: 4393 edi = MEM32(ecx + 0x4); /* 0x31005CAC: mov edi, dword ptr [ecx + 4] */ 4394 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x31005CAF: cmp ecx, dword ptr [edi + 8] */ 4395 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4396 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4397 _flag_k = FK_CMP; 4398 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CBF; /* 0x31005CB2: jne 0x31005cbf */ 4399 L_31005CB4: 4400 MEM32(edi + 0x8) = edx; /* 0x31005CB4: mov dword ptr [edi + 8], edx */ 4401 MEM32(edx + 0x8) = ecx; /* 0x31005CB7: mov dword ptr [edx + 8], ecx */ 4402 goto L_31005D5E; /* 0x31005CBA: jmp 0x31005d5e */ 4403 L_31005CBF: 4404 MEM32(edi) = edx; /* 0x31005CBF: mov dword ptr [edi], edx */ 4405 MEM32(edx + 0x8) = ecx; /* 0x31005CC1: mov dword ptr [edx + 8], ecx */ 4406 goto L_31005D5E; /* 0x31005CC4: jmp 0x31005d5e */ 4407 L_31005CC9: 4408 /* cmp MEM8(edx + 0x14), 0 */ /* 0x31005CC9: cmp byte ptr [edx + 0x14], 0 */ 4409 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 4410 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4411 _flag_k = FK_NARROW(FK_CMP, 24); 4412 RECOMP_BACKEDGE(); 4413 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C11; /* 0x31005CCD: je 0x31005c11 */ 4414 L_31005CD3: 4415 /* cmp eax, MEM32(ecx) */ /* 0x31005CD3: cmp eax, dword ptr [ecx] */ 4416 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 4417 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4418 _flag_k = FK_CMP; 4419 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D13; /* 0x31005CD5: jne 0x31005d13 */ 4420 L_31005CD7: 4421 eax = ecx; /* 0x31005CD7: mov eax, ecx */ 4422 ecx = MEM32(eax); /* 0x31005CD9: mov ecx, dword ptr [eax] */ 4423 edx = MEM32(ecx + 0x8); /* 0x31005CDB: mov edx, dword ptr [ecx + 8] */ 4424 MEM32(eax) = edx; /* 0x31005CDE: mov dword ptr [eax], edx */ 4425 edx = MEM32(ecx + 0x8); /* 0x31005CE0: mov edx, dword ptr [ecx + 8] */ 4426 /* cmp edx, MEM32(esi + 0x8) */ /* 0x31005CE3: cmp edx, dword ptr [esi + 8] */ 4427 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4428 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4429 _flag_k = FK_CMP; 4430 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005CEB; /* 0x31005CE6: je 0x31005ceb */ 4431 L_31005CE8: 4432 MEM32(edx + 0x4) = eax; /* 0x31005CE8: mov dword ptr [edx + 4], eax */ 4433 L_31005CEB: 4434 edx = MEM32(eax + 0x4); /* 0x31005CEB: mov edx, dword ptr [eax + 4] */ 4435 MEM32(ecx + 0x4) = edx; /* 0x31005CEE: mov dword ptr [ecx + 4], edx */ 4436 edx = MEM32(esi + 0x4); /* 0x31005CF1: mov edx, dword ptr [esi + 4] */ 4437 /* cmp eax, MEM32(edx + 0x4) */ /* 0x31005CF4: cmp eax, dword ptr [edx + 4] */ 4438 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 4439 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4440 _flag_k = FK_CMP; 4441 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CFE; /* 0x31005CF7: jne 0x31005cfe */ 4442 L_31005CF9: 4443 MEM32(edx + 0x4) = ecx; /* 0x31005CF9: mov dword ptr [edx + 4], ecx */ 4444 goto L_31005D0D; /* 0x31005CFC: jmp 0x31005d0d */ 4445 L_31005CFE: 4446 edx = MEM32(eax + 0x4); /* 0x31005CFE: mov edx, dword ptr [eax + 4] */ 4447 /* cmp eax, MEM32(edx + 0x8) */ /* 0x31005D01: cmp eax, dword ptr [edx + 8] */ 4448 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 4449 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4450 _flag_k = FK_CMP; 4451 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D0B; /* 0x31005D04: jne 0x31005d0b */ 4452 L_31005D06: 4453 MEM32(edx + 0x8) = ecx; /* 0x31005D06: mov dword ptr [edx + 8], ecx */ 4454 goto L_31005D0D; /* 0x31005D09: jmp 0x31005d0d */ 4455 L_31005D0B: 4456 MEM32(edx) = ecx; /* 0x31005D0B: mov dword ptr [edx], ecx */ 4457 L_31005D0D: 4458 MEM32(ecx + 0x8) = eax; /* 0x31005D0D: mov dword ptr [ecx + 8], eax */ 4459 MEM32(eax + 0x4) = ecx; /* 0x31005D10: mov dword ptr [eax + 4], ecx */ 4460 L_31005D13: 4461 ecx = MEM32(eax + 0x4); /* 0x31005D13: mov ecx, dword ptr [eax + 4] */ 4462 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005D16: mov byte ptr [ecx + 0x14], bl */ 4463 edx = MEM32(eax + 0x4); /* 0x31005D19: mov edx, dword ptr [eax + 4] */ 4464 ecx = MEM32(edx + 0x4); /* 0x31005D1C: mov ecx, dword ptr [edx + 4] */ 4465 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x31005D1F: mov byte ptr [ecx + 0x14], 0 */ 4466 edx = MEM32(eax + 0x4); /* 0x31005D23: mov edx, dword ptr [eax + 4] */ 4467 ecx = MEM32(edx + 0x4); /* 0x31005D26: mov ecx, dword ptr [edx + 4] */ 4468 edx = MEM32(ecx + 0x8); /* 0x31005D29: mov edx, dword ptr [ecx + 8] */ 4469 edi = MEM32(edx); /* 0x31005D2C: mov edi, dword ptr [edx] */ 4470 MEM32(ecx + 0x8) = edi; /* 0x31005D2E: mov dword ptr [ecx + 8], edi */ 4471 edi = MEM32(edx); /* 0x31005D31: mov edi, dword ptr [edx] */ 4472 /* cmp edi, MEM32(esi + 0x8) */ /* 0x31005D33: cmp edi, dword ptr [esi + 8] */ 4473 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4474 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4475 _flag_k = FK_CMP; 4476 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005D3B; /* 0x31005D36: je 0x31005d3b */ 4477 L_31005D38: 4478 MEM32(edi + 0x4) = ecx; /* 0x31005D38: mov dword ptr [edi + 4], ecx */ 4479 L_31005D3B: 4480 edi = MEM32(ecx + 0x4); /* 0x31005D3B: mov edi, dword ptr [ecx + 4] */ 4481 MEM32(edx + 0x4) = edi; /* 0x31005D3E: mov dword ptr [edx + 4], edi */ 4482 edi = MEM32(esi + 0x4); /* 0x31005D41: mov edi, dword ptr [esi + 4] */ 4483 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x31005D44: cmp ecx, dword ptr [edi + 4] */ 4484 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 4485 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4486 _flag_k = FK_CMP; 4487 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D4E; /* 0x31005D47: jne 0x31005d4e */ 4488 L_31005D49: 4489 MEM32(edi + 0x4) = edx; /* 0x31005D49: mov dword ptr [edi + 4], edx */ 4490 goto L_31005D5C; /* 0x31005D4C: jmp 0x31005d5c */ 4491 L_31005D4E: 4492 edi = MEM32(ecx + 0x4); /* 0x31005D4E: mov edi, dword ptr [ecx + 4] */ 4493 /* cmp ecx, MEM32(edi) */ /* 0x31005D51: cmp ecx, dword ptr [edi] */ 4494 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 4495 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4496 _flag_k = FK_CMP; 4497 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D59; /* 0x31005D53: jne 0x31005d59 */ 4498 L_31005D55: 4499 MEM32(edi) = edx; /* 0x31005D55: mov dword ptr [edi], edx */ 4500 goto L_31005D5C; /* 0x31005D57: jmp 0x31005d5c */ 4501 L_31005D59: 4502 MEM32(edi + 0x8) = edx; /* 0x31005D59: mov dword ptr [edi + 8], edx */ 4503 L_31005D5C: 4504 MEM32(edx) = ecx; /* 0x31005D5C: mov dword ptr [edx], ecx */ 4505 L_31005D5E: 4506 MEM32(ecx + 0x4) = edx; /* 0x31005D5E: mov dword ptr [ecx + 4], edx */ 4507 L_31005D61: 4508 ecx = MEM32(esi + 0x4); /* 0x31005D61: mov ecx, dword ptr [esi + 4] */ 4509 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x31005D64: cmp eax, dword ptr [ecx + 4] */ 4510 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 4511 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4512 _flag_k = FK_CMP; 4513 RECOMP_BACKEDGE(); 4514 if (CMP_NE(_flag_a, _flag_b)) goto L_31005BED; /* 0x31005D67: jne 0x31005bed */ 4515 L_31005D6D: 4516 edx = MEM32(esi + 0x4); /* 0x31005D6D: mov edx, dword ptr [esi + 4] */ 4517 eax = MEM32(edx + 0x4); /* 0x31005D70: mov eax, dword ptr [edx + 4] */ 4518 ecx = MEM32(ebp + (-0x4)); /* 0x31005D73: mov ecx, dword ptr [ebp - 4] */ 4519 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005D76: mov byte ptr [eax + 0x14], bl */ 4520 eax = MEM32(ebp + 0x8); /* 0x31005D79: mov eax, dword ptr [ebp + 8] */ 4521 edi = POP32_VAL(esp); /* 0x31005D7C: pop edi */ 4522 esi = POP32_VAL(esp); /* 0x31005D7D: pop esi */ 4523 MEM32(eax) = ecx; /* 0x31005D7E: mov dword ptr [eax], ecx */ 4524 ebx = POP32_VAL(esp); /* 0x31005D80: pop ebx */ 4525 esp = ebp; /* 0x31005D81: mov esp, ebp */ 4526 ebp = POP32_VAL(esp); /* 0x31005D83: pop ebp */ 4527 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x31005D84: ret 0x10 */ 4528 RECOMP_REGS_OUT(); 4529 } 4530 4531 void sub_31005C6B(void) { 4532 int _fpu_cmp = 0; 4533 uint32_t _cf = 0; 4534 int _df = 1; 4535 uint32_t _flag_k = FK_NONE; 4536 uint32_t _flag_a = 0, _flag_b = 0; 4537 uint32_t _itail_tgt = 0; 4538 RECOMP_REGS_LOCALS 4539 RECOMP_ENTER(0x31005C6Bu); 4540 4541 goto L_31005C6B; 4542 L_31005BED: 4543 ecx = MEM32(eax + 0x4); /* 0x31005BED: mov ecx, dword ptr [eax + 4] */ 4544 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x31005BF0: mov dl, byte ptr [ecx + 0x14] */ 4545 /* test LO8(edx), LO8(edx) */ /* 0x31005BF3: test dl, dl */ 4546 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4547 _cf = 0; 4548 _flag_k = FK_NARROW(FK_TEST, 24); 4549 if (TEST_NZ(_flag_a, _flag_b)) goto L_31005D6D; /* 0x31005BF5: jne 0x31005d6d */ 4550 L_31005BFB: 4551 edi = MEM32(ecx + 0x4); /* 0x31005BFB: mov edi, dword ptr [ecx + 4] */ 4552 edx = MEM32(edi); /* 0x31005BFE: mov edx, dword ptr [edi] */ 4553 /* cmp ecx, edx */ /* 0x31005C00: cmp ecx, edx */ 4554 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 4555 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4556 _flag_k = FK_CMP; 4557 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CC9; /* 0x31005C02: jne 0x31005cc9 */ 4558 L_31005C08: 4559 edx = MEM32(edi + 0x8); /* 0x31005C08: mov edx, dword ptr [edi + 8] */ 4560 /* cmp MEM8(edx + 0x14), 0 */ /* 0x31005C0B: cmp byte ptr [edx + 0x14], 0 */ 4561 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 4562 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4563 _flag_k = FK_NARROW(FK_CMP, 24); 4564 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C2C; /* 0x31005C0F: jne 0x31005c2c */ 4565 L_31005C11: 4566 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C11: mov byte ptr [ecx + 0x14], bl */ 4567 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C14: mov byte ptr [edx + 0x14], bl */ 4568 ecx = MEM32(eax + 0x4); /* 0x31005C17: mov ecx, dword ptr [eax + 4] */ 4569 edx = MEM32(ecx + 0x4); /* 0x31005C1A: mov edx, dword ptr [ecx + 4] */ 4570 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x31005C1D: mov byte ptr [edx + 0x14], 0 */ 4571 eax = MEM32(eax + 0x4); /* 0x31005C21: mov eax, dword ptr [eax + 4] */ 4572 eax = MEM32(eax + 0x4); /* 0x31005C24: mov eax, dword ptr [eax + 4] */ 4573 goto L_31005D61; /* 0x31005C27: jmp 0x31005d61 */ 4574 L_31005C2C: 4575 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x31005C2C: cmp eax, dword ptr [ecx + 8] */ 4576 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 4577 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4578 _flag_k = FK_CMP; 4579 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C6B; /* 0x31005C2F: jne 0x31005c6b */ 4580 L_31005C31: 4581 eax = ecx; /* 0x31005C31: mov eax, ecx */ 4582 ecx = MEM32(eax + 0x8); /* 0x31005C33: mov ecx, dword ptr [eax + 8] */ 4583 edx = MEM32(ecx); /* 0x31005C36: mov edx, dword ptr [ecx] */ 4584 MEM32(eax + 0x8) = edx; /* 0x31005C38: mov dword ptr [eax + 8], edx */ 4585 edx = MEM32(ecx); /* 0x31005C3B: mov edx, dword ptr [ecx] */ 4586 /* cmp edx, MEM32(esi + 0x8) */ /* 0x31005C3D: cmp edx, dword ptr [esi + 8] */ 4587 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4588 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4589 _flag_k = FK_CMP; 4590 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C45; /* 0x31005C40: je 0x31005c45 */ 4591 L_31005C42: 4592 MEM32(edx + 0x4) = eax; /* 0x31005C42: mov dword ptr [edx + 4], eax */ 4593 L_31005C45: 4594 edx = MEM32(eax + 0x4); /* 0x31005C45: mov edx, dword ptr [eax + 4] */ 4595 MEM32(ecx + 0x4) = edx; /* 0x31005C48: mov dword ptr [ecx + 4], edx */ 4596 edx = MEM32(esi + 0x4); /* 0x31005C4B: mov edx, dword ptr [esi + 4] */ 4597 /* cmp eax, MEM32(edx + 0x4) */ /* 0x31005C4E: cmp eax, dword ptr [edx + 4] */ 4598 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 4599 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4600 _flag_k = FK_CMP; 4601 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C58; /* 0x31005C51: jne 0x31005c58 */ 4602 L_31005C53: 4603 MEM32(edx + 0x4) = ecx; /* 0x31005C53: mov dword ptr [edx + 4], ecx */ 4604 goto L_31005C66; /* 0x31005C56: jmp 0x31005c66 */ 4605 L_31005C58: 4606 edx = MEM32(eax + 0x4); /* 0x31005C58: mov edx, dword ptr [eax + 4] */ 4607 /* cmp eax, MEM32(edx) */ /* 0x31005C5B: cmp eax, dword ptr [edx] */ 4608 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 4609 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4610 _flag_k = FK_CMP; 4611 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C63; /* 0x31005C5D: jne 0x31005c63 */ 4612 L_31005C5F: 4613 MEM32(edx) = ecx; /* 0x31005C5F: mov dword ptr [edx], ecx */ 4614 goto L_31005C66; /* 0x31005C61: jmp 0x31005c66 */ 4615 L_31005C63: 4616 MEM32(edx + 0x8) = ecx; /* 0x31005C63: mov dword ptr [edx + 8], ecx */ 4617 L_31005C66: 4618 MEM32(ecx) = eax; /* 0x31005C66: mov dword ptr [ecx], eax */ 4619 MEM32(eax + 0x4) = ecx; /* 0x31005C68: mov dword ptr [eax + 4], ecx */ 4620 L_31005C6B: 4621 ecx = MEM32(eax + 0x4); /* 0x31005C6B: mov ecx, dword ptr [eax + 4] */ 4622 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C6E: mov byte ptr [ecx + 0x14], bl */ 4623 edx = MEM32(eax + 0x4); /* 0x31005C71: mov edx, dword ptr [eax + 4] */ 4624 ecx = MEM32(edx + 0x4); /* 0x31005C74: mov ecx, dword ptr [edx + 4] */ 4625 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x31005C77: mov byte ptr [ecx + 0x14], 0 */ 4626 edx = MEM32(eax + 0x4); /* 0x31005C7B: mov edx, dword ptr [eax + 4] */ 4627 ecx = MEM32(edx + 0x4); /* 0x31005C7E: mov ecx, dword ptr [edx + 4] */ 4628 edx = MEM32(ecx); /* 0x31005C81: mov edx, dword ptr [ecx] */ 4629 edi = MEM32(edx + 0x8); /* 0x31005C83: mov edi, dword ptr [edx + 8] */ 4630 MEM32(ecx) = edi; /* 0x31005C86: mov dword ptr [ecx], edi */ 4631 edi = MEM32(edx + 0x8); /* 0x31005C88: mov edi, dword ptr [edx + 8] */ 4632 /* cmp edi, MEM32(esi + 0x8) */ /* 0x31005C8B: cmp edi, dword ptr [esi + 8] */ 4633 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4634 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4635 _flag_k = FK_CMP; 4636 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C93; /* 0x31005C8E: je 0x31005c93 */ 4637 L_31005C90: 4638 MEM32(edi + 0x4) = ecx; /* 0x31005C90: mov dword ptr [edi + 4], ecx */ 4639 L_31005C93: 4640 edi = MEM32(ecx + 0x4); /* 0x31005C93: mov edi, dword ptr [ecx + 4] */ 4641 MEM32(edx + 0x4) = edi; /* 0x31005C96: mov dword ptr [edx + 4], edi */ 4642 edi = MEM32(esi + 0x4); /* 0x31005C99: mov edi, dword ptr [esi + 4] */ 4643 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x31005C9C: cmp ecx, dword ptr [edi + 4] */ 4644 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 4645 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4646 _flag_k = FK_CMP; 4647 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CAC; /* 0x31005C9F: jne 0x31005cac */ 4648 L_31005CA1: 4649 MEM32(edi + 0x4) = edx; /* 0x31005CA1: mov dword ptr [edi + 4], edx */ 4650 MEM32(edx + 0x8) = ecx; /* 0x31005CA4: mov dword ptr [edx + 8], ecx */ 4651 goto L_31005D5E; /* 0x31005CA7: jmp 0x31005d5e */ 4652 L_31005CAC: 4653 edi = MEM32(ecx + 0x4); /* 0x31005CAC: mov edi, dword ptr [ecx + 4] */ 4654 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x31005CAF: cmp ecx, dword ptr [edi + 8] */ 4655 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4656 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4657 _flag_k = FK_CMP; 4658 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CBF; /* 0x31005CB2: jne 0x31005cbf */ 4659 L_31005CB4: 4660 MEM32(edi + 0x8) = edx; /* 0x31005CB4: mov dword ptr [edi + 8], edx */ 4661 MEM32(edx + 0x8) = ecx; /* 0x31005CB7: mov dword ptr [edx + 8], ecx */ 4662 goto L_31005D5E; /* 0x31005CBA: jmp 0x31005d5e */ 4663 L_31005CBF: 4664 MEM32(edi) = edx; /* 0x31005CBF: mov dword ptr [edi], edx */ 4665 MEM32(edx + 0x8) = ecx; /* 0x31005CC1: mov dword ptr [edx + 8], ecx */ 4666 goto L_31005D5E; /* 0x31005CC4: jmp 0x31005d5e */ 4667 L_31005CC9: 4668 /* cmp MEM8(edx + 0x14), 0 */ /* 0x31005CC9: cmp byte ptr [edx + 0x14], 0 */ 4669 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 4670 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4671 _flag_k = FK_NARROW(FK_CMP, 24); 4672 RECOMP_BACKEDGE(); 4673 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C11; /* 0x31005CCD: je 0x31005c11 */ 4674 L_31005CD3: 4675 /* cmp eax, MEM32(ecx) */ /* 0x31005CD3: cmp eax, dword ptr [ecx] */ 4676 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 4677 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4678 _flag_k = FK_CMP; 4679 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D13; /* 0x31005CD5: jne 0x31005d13 */ 4680 L_31005CD7: 4681 eax = ecx; /* 0x31005CD7: mov eax, ecx */ 4682 ecx = MEM32(eax); /* 0x31005CD9: mov ecx, dword ptr [eax] */ 4683 edx = MEM32(ecx + 0x8); /* 0x31005CDB: mov edx, dword ptr [ecx + 8] */ 4684 MEM32(eax) = edx; /* 0x31005CDE: mov dword ptr [eax], edx */ 4685 edx = MEM32(ecx + 0x8); /* 0x31005CE0: mov edx, dword ptr [ecx + 8] */ 4686 /* cmp edx, MEM32(esi + 0x8) */ /* 0x31005CE3: cmp edx, dword ptr [esi + 8] */ 4687 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4688 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4689 _flag_k = FK_CMP; 4690 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005CEB; /* 0x31005CE6: je 0x31005ceb */ 4691 L_31005CE8: 4692 MEM32(edx + 0x4) = eax; /* 0x31005CE8: mov dword ptr [edx + 4], eax */ 4693 L_31005CEB: 4694 edx = MEM32(eax + 0x4); /* 0x31005CEB: mov edx, dword ptr [eax + 4] */ 4695 MEM32(ecx + 0x4) = edx; /* 0x31005CEE: mov dword ptr [ecx + 4], edx */ 4696 edx = MEM32(esi + 0x4); /* 0x31005CF1: mov edx, dword ptr [esi + 4] */ 4697 /* cmp eax, MEM32(edx + 0x4) */ /* 0x31005CF4: cmp eax, dword ptr [edx + 4] */ 4698 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 4699 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4700 _flag_k = FK_CMP; 4701 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CFE; /* 0x31005CF7: jne 0x31005cfe */ 4702 L_31005CF9: 4703 MEM32(edx + 0x4) = ecx; /* 0x31005CF9: mov dword ptr [edx + 4], ecx */ 4704 goto L_31005D0D; /* 0x31005CFC: jmp 0x31005d0d */ 4705 L_31005CFE: 4706 edx = MEM32(eax + 0x4); /* 0x31005CFE: mov edx, dword ptr [eax + 4] */ 4707 /* cmp eax, MEM32(edx + 0x8) */ /* 0x31005D01: cmp eax, dword ptr [edx + 8] */ 4708 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 4709 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4710 _flag_k = FK_CMP; 4711 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D0B; /* 0x31005D04: jne 0x31005d0b */ 4712 L_31005D06: 4713 MEM32(edx + 0x8) = ecx; /* 0x31005D06: mov dword ptr [edx + 8], ecx */ 4714 goto L_31005D0D; /* 0x31005D09: jmp 0x31005d0d */ 4715 L_31005D0B: 4716 MEM32(edx) = ecx; /* 0x31005D0B: mov dword ptr [edx], ecx */ 4717 L_31005D0D: 4718 MEM32(ecx + 0x8) = eax; /* 0x31005D0D: mov dword ptr [ecx + 8], eax */ 4719 MEM32(eax + 0x4) = ecx; /* 0x31005D10: mov dword ptr [eax + 4], ecx */ 4720 L_31005D13: 4721 ecx = MEM32(eax + 0x4); /* 0x31005D13: mov ecx, dword ptr [eax + 4] */ 4722 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005D16: mov byte ptr [ecx + 0x14], bl */ 4723 edx = MEM32(eax + 0x4); /* 0x31005D19: mov edx, dword ptr [eax + 4] */ 4724 ecx = MEM32(edx + 0x4); /* 0x31005D1C: mov ecx, dword ptr [edx + 4] */ 4725 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x31005D1F: mov byte ptr [ecx + 0x14], 0 */ 4726 edx = MEM32(eax + 0x4); /* 0x31005D23: mov edx, dword ptr [eax + 4] */ 4727 ecx = MEM32(edx + 0x4); /* 0x31005D26: mov ecx, dword ptr [edx + 4] */ 4728 edx = MEM32(ecx + 0x8); /* 0x31005D29: mov edx, dword ptr [ecx + 8] */ 4729 edi = MEM32(edx); /* 0x31005D2C: mov edi, dword ptr [edx] */ 4730 MEM32(ecx + 0x8) = edi; /* 0x31005D2E: mov dword ptr [ecx + 8], edi */ 4731 edi = MEM32(edx); /* 0x31005D31: mov edi, dword ptr [edx] */ 4732 /* cmp edi, MEM32(esi + 0x8) */ /* 0x31005D33: cmp edi, dword ptr [esi + 8] */ 4733 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4734 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4735 _flag_k = FK_CMP; 4736 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005D3B; /* 0x31005D36: je 0x31005d3b */ 4737 L_31005D38: 4738 MEM32(edi + 0x4) = ecx; /* 0x31005D38: mov dword ptr [edi + 4], ecx */ 4739 L_31005D3B: 4740 edi = MEM32(ecx + 0x4); /* 0x31005D3B: mov edi, dword ptr [ecx + 4] */ 4741 MEM32(edx + 0x4) = edi; /* 0x31005D3E: mov dword ptr [edx + 4], edi */ 4742 edi = MEM32(esi + 0x4); /* 0x31005D41: mov edi, dword ptr [esi + 4] */ 4743 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x31005D44: cmp ecx, dword ptr [edi + 4] */ 4744 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 4745 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4746 _flag_k = FK_CMP; 4747 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D4E; /* 0x31005D47: jne 0x31005d4e */ 4748 L_31005D49: 4749 MEM32(edi + 0x4) = edx; /* 0x31005D49: mov dword ptr [edi + 4], edx */ 4750 goto L_31005D5C; /* 0x31005D4C: jmp 0x31005d5c */ 4751 L_31005D4E: 4752 edi = MEM32(ecx + 0x4); /* 0x31005D4E: mov edi, dword ptr [ecx + 4] */ 4753 /* cmp ecx, MEM32(edi) */ /* 0x31005D51: cmp ecx, dword ptr [edi] */ 4754 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 4755 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4756 _flag_k = FK_CMP; 4757 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D59; /* 0x31005D53: jne 0x31005d59 */ 4758 L_31005D55: 4759 MEM32(edi) = edx; /* 0x31005D55: mov dword ptr [edi], edx */ 4760 goto L_31005D5C; /* 0x31005D57: jmp 0x31005d5c */ 4761 L_31005D59: 4762 MEM32(edi + 0x8) = edx; /* 0x31005D59: mov dword ptr [edi + 8], edx */ 4763 L_31005D5C: 4764 MEM32(edx) = ecx; /* 0x31005D5C: mov dword ptr [edx], ecx */ 4765 L_31005D5E: 4766 MEM32(ecx + 0x4) = edx; /* 0x31005D5E: mov dword ptr [ecx + 4], edx */ 4767 L_31005D61: 4768 ecx = MEM32(esi + 0x4); /* 0x31005D61: mov ecx, dword ptr [esi + 4] */ 4769 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x31005D64: cmp eax, dword ptr [ecx + 4] */ 4770 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 4771 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4772 _flag_k = FK_CMP; 4773 RECOMP_BACKEDGE(); 4774 if (CMP_NE(_flag_a, _flag_b)) goto L_31005BED; /* 0x31005D67: jne 0x31005bed */ 4775 L_31005D6D: 4776 edx = MEM32(esi + 0x4); /* 0x31005D6D: mov edx, dword ptr [esi + 4] */ 4777 eax = MEM32(edx + 0x4); /* 0x31005D70: mov eax, dword ptr [edx + 4] */ 4778 ecx = MEM32(ebp + (-0x4)); /* 0x31005D73: mov ecx, dword ptr [ebp - 4] */ 4779 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005D76: mov byte ptr [eax + 0x14], bl */ 4780 eax = MEM32(ebp + 0x8); /* 0x31005D79: mov eax, dword ptr [ebp + 8] */ 4781 edi = POP32_VAL(esp); /* 0x31005D7C: pop edi */ 4782 esi = POP32_VAL(esp); /* 0x31005D7D: pop esi */ 4783 MEM32(eax) = ecx; /* 0x31005D7E: mov dword ptr [eax], ecx */ 4784 ebx = POP32_VAL(esp); /* 0x31005D80: pop ebx */ 4785 esp = ebp; /* 0x31005D81: mov esp, ebp */ 4786 ebp = POP32_VAL(esp); /* 0x31005D83: pop ebp */ 4787 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x31005D84: ret 0x10 */ 4788 RECOMP_REGS_OUT(); 4789 } 4790 4791 void sub_31005CC9(void) { 4792 int _fpu_cmp = 0; 4793 uint32_t _cf = 0; 4794 int _df = 1; 4795 uint32_t _flag_k = FK_NONE; 4796 uint32_t _flag_a = 0, _flag_b = 0; 4797 uint32_t _itail_tgt = 0; 4798 RECOMP_REGS_LOCALS 4799 RECOMP_ENTER(0x31005CC9u); 4800 4801 goto L_31005CC9; 4802 L_31005BED: 4803 ecx = MEM32(eax + 0x4); /* 0x31005BED: mov ecx, dword ptr [eax + 4] */ 4804 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x31005BF0: mov dl, byte ptr [ecx + 0x14] */ 4805 /* test LO8(edx), LO8(edx) */ /* 0x31005BF3: test dl, dl */ 4806 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4807 _cf = 0; 4808 _flag_k = FK_NARROW(FK_TEST, 24); 4809 if (TEST_NZ(_flag_a, _flag_b)) goto L_31005D6D; /* 0x31005BF5: jne 0x31005d6d */ 4810 L_31005BFB: 4811 edi = MEM32(ecx + 0x4); /* 0x31005BFB: mov edi, dword ptr [ecx + 4] */ 4812 edx = MEM32(edi); /* 0x31005BFE: mov edx, dword ptr [edi] */ 4813 /* cmp ecx, edx */ /* 0x31005C00: cmp ecx, edx */ 4814 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 4815 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4816 _flag_k = FK_CMP; 4817 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CC9; /* 0x31005C02: jne 0x31005cc9 */ 4818 L_31005C08: 4819 edx = MEM32(edi + 0x8); /* 0x31005C08: mov edx, dword ptr [edi + 8] */ 4820 /* cmp MEM8(edx + 0x14), 0 */ /* 0x31005C0B: cmp byte ptr [edx + 0x14], 0 */ 4821 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 4822 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4823 _flag_k = FK_NARROW(FK_CMP, 24); 4824 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C2C; /* 0x31005C0F: jne 0x31005c2c */ 4825 L_31005C11: 4826 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C11: mov byte ptr [ecx + 0x14], bl */ 4827 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C14: mov byte ptr [edx + 0x14], bl */ 4828 ecx = MEM32(eax + 0x4); /* 0x31005C17: mov ecx, dword ptr [eax + 4] */ 4829 edx = MEM32(ecx + 0x4); /* 0x31005C1A: mov edx, dword ptr [ecx + 4] */ 4830 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x31005C1D: mov byte ptr [edx + 0x14], 0 */ 4831 eax = MEM32(eax + 0x4); /* 0x31005C21: mov eax, dword ptr [eax + 4] */ 4832 eax = MEM32(eax + 0x4); /* 0x31005C24: mov eax, dword ptr [eax + 4] */ 4833 goto L_31005D61; /* 0x31005C27: jmp 0x31005d61 */ 4834 L_31005C2C: 4835 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x31005C2C: cmp eax, dword ptr [ecx + 8] */ 4836 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 4837 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4838 _flag_k = FK_CMP; 4839 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C6B; /* 0x31005C2F: jne 0x31005c6b */ 4840 L_31005C31: 4841 eax = ecx; /* 0x31005C31: mov eax, ecx */ 4842 ecx = MEM32(eax + 0x8); /* 0x31005C33: mov ecx, dword ptr [eax + 8] */ 4843 edx = MEM32(ecx); /* 0x31005C36: mov edx, dword ptr [ecx] */ 4844 MEM32(eax + 0x8) = edx; /* 0x31005C38: mov dword ptr [eax + 8], edx */ 4845 edx = MEM32(ecx); /* 0x31005C3B: mov edx, dword ptr [ecx] */ 4846 /* cmp edx, MEM32(esi + 0x8) */ /* 0x31005C3D: cmp edx, dword ptr [esi + 8] */ 4847 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4848 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4849 _flag_k = FK_CMP; 4850 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C45; /* 0x31005C40: je 0x31005c45 */ 4851 L_31005C42: 4852 MEM32(edx + 0x4) = eax; /* 0x31005C42: mov dword ptr [edx + 4], eax */ 4853 L_31005C45: 4854 edx = MEM32(eax + 0x4); /* 0x31005C45: mov edx, dword ptr [eax + 4] */ 4855 MEM32(ecx + 0x4) = edx; /* 0x31005C48: mov dword ptr [ecx + 4], edx */ 4856 edx = MEM32(esi + 0x4); /* 0x31005C4B: mov edx, dword ptr [esi + 4] */ 4857 /* cmp eax, MEM32(edx + 0x4) */ /* 0x31005C4E: cmp eax, dword ptr [edx + 4] */ 4858 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 4859 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4860 _flag_k = FK_CMP; 4861 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C58; /* 0x31005C51: jne 0x31005c58 */ 4862 L_31005C53: 4863 MEM32(edx + 0x4) = ecx; /* 0x31005C53: mov dword ptr [edx + 4], ecx */ 4864 goto L_31005C66; /* 0x31005C56: jmp 0x31005c66 */ 4865 L_31005C58: 4866 edx = MEM32(eax + 0x4); /* 0x31005C58: mov edx, dword ptr [eax + 4] */ 4867 /* cmp eax, MEM32(edx) */ /* 0x31005C5B: cmp eax, dword ptr [edx] */ 4868 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 4869 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4870 _flag_k = FK_CMP; 4871 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C63; /* 0x31005C5D: jne 0x31005c63 */ 4872 L_31005C5F: 4873 MEM32(edx) = ecx; /* 0x31005C5F: mov dword ptr [edx], ecx */ 4874 goto L_31005C66; /* 0x31005C61: jmp 0x31005c66 */ 4875 L_31005C63: 4876 MEM32(edx + 0x8) = ecx; /* 0x31005C63: mov dword ptr [edx + 8], ecx */ 4877 L_31005C66: 4878 MEM32(ecx) = eax; /* 0x31005C66: mov dword ptr [ecx], eax */ 4879 MEM32(eax + 0x4) = ecx; /* 0x31005C68: mov dword ptr [eax + 4], ecx */ 4880 L_31005C6B: 4881 ecx = MEM32(eax + 0x4); /* 0x31005C6B: mov ecx, dword ptr [eax + 4] */ 4882 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C6E: mov byte ptr [ecx + 0x14], bl */ 4883 edx = MEM32(eax + 0x4); /* 0x31005C71: mov edx, dword ptr [eax + 4] */ 4884 ecx = MEM32(edx + 0x4); /* 0x31005C74: mov ecx, dword ptr [edx + 4] */ 4885 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x31005C77: mov byte ptr [ecx + 0x14], 0 */ 4886 edx = MEM32(eax + 0x4); /* 0x31005C7B: mov edx, dword ptr [eax + 4] */ 4887 ecx = MEM32(edx + 0x4); /* 0x31005C7E: mov ecx, dword ptr [edx + 4] */ 4888 edx = MEM32(ecx); /* 0x31005C81: mov edx, dword ptr [ecx] */ 4889 edi = MEM32(edx + 0x8); /* 0x31005C83: mov edi, dword ptr [edx + 8] */ 4890 MEM32(ecx) = edi; /* 0x31005C86: mov dword ptr [ecx], edi */ 4891 edi = MEM32(edx + 0x8); /* 0x31005C88: mov edi, dword ptr [edx + 8] */ 4892 /* cmp edi, MEM32(esi + 0x8) */ /* 0x31005C8B: cmp edi, dword ptr [esi + 8] */ 4893 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4894 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4895 _flag_k = FK_CMP; 4896 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C93; /* 0x31005C8E: je 0x31005c93 */ 4897 L_31005C90: 4898 MEM32(edi + 0x4) = ecx; /* 0x31005C90: mov dword ptr [edi + 4], ecx */ 4899 L_31005C93: 4900 edi = MEM32(ecx + 0x4); /* 0x31005C93: mov edi, dword ptr [ecx + 4] */ 4901 MEM32(edx + 0x4) = edi; /* 0x31005C96: mov dword ptr [edx + 4], edi */ 4902 edi = MEM32(esi + 0x4); /* 0x31005C99: mov edi, dword ptr [esi + 4] */ 4903 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x31005C9C: cmp ecx, dword ptr [edi + 4] */ 4904 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 4905 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4906 _flag_k = FK_CMP; 4907 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CAC; /* 0x31005C9F: jne 0x31005cac */ 4908 L_31005CA1: 4909 MEM32(edi + 0x4) = edx; /* 0x31005CA1: mov dword ptr [edi + 4], edx */ 4910 MEM32(edx + 0x8) = ecx; /* 0x31005CA4: mov dword ptr [edx + 8], ecx */ 4911 goto L_31005D5E; /* 0x31005CA7: jmp 0x31005d5e */ 4912 L_31005CAC: 4913 edi = MEM32(ecx + 0x4); /* 0x31005CAC: mov edi, dword ptr [ecx + 4] */ 4914 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x31005CAF: cmp ecx, dword ptr [edi + 8] */ 4915 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4916 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4917 _flag_k = FK_CMP; 4918 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CBF; /* 0x31005CB2: jne 0x31005cbf */ 4919 L_31005CB4: 4920 MEM32(edi + 0x8) = edx; /* 0x31005CB4: mov dword ptr [edi + 8], edx */ 4921 MEM32(edx + 0x8) = ecx; /* 0x31005CB7: mov dword ptr [edx + 8], ecx */ 4922 goto L_31005D5E; /* 0x31005CBA: jmp 0x31005d5e */ 4923 L_31005CBF: 4924 MEM32(edi) = edx; /* 0x31005CBF: mov dword ptr [edi], edx */ 4925 MEM32(edx + 0x8) = ecx; /* 0x31005CC1: mov dword ptr [edx + 8], ecx */ 4926 goto L_31005D5E; /* 0x31005CC4: jmp 0x31005d5e */ 4927 L_31005CC9: 4928 /* cmp MEM8(edx + 0x14), 0 */ /* 0x31005CC9: cmp byte ptr [edx + 0x14], 0 */ 4929 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 4930 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4931 _flag_k = FK_NARROW(FK_CMP, 24); 4932 RECOMP_BACKEDGE(); 4933 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C11; /* 0x31005CCD: je 0x31005c11 */ 4934 L_31005CD3: 4935 /* cmp eax, MEM32(ecx) */ /* 0x31005CD3: cmp eax, dword ptr [ecx] */ 4936 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 4937 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4938 _flag_k = FK_CMP; 4939 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D13; /* 0x31005CD5: jne 0x31005d13 */ 4940 L_31005CD7: 4941 eax = ecx; /* 0x31005CD7: mov eax, ecx */ 4942 ecx = MEM32(eax); /* 0x31005CD9: mov ecx, dword ptr [eax] */ 4943 edx = MEM32(ecx + 0x8); /* 0x31005CDB: mov edx, dword ptr [ecx + 8] */ 4944 MEM32(eax) = edx; /* 0x31005CDE: mov dword ptr [eax], edx */ 4945 edx = MEM32(ecx + 0x8); /* 0x31005CE0: mov edx, dword ptr [ecx + 8] */ 4946 /* cmp edx, MEM32(esi + 0x8) */ /* 0x31005CE3: cmp edx, dword ptr [esi + 8] */ 4947 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4948 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4949 _flag_k = FK_CMP; 4950 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005CEB; /* 0x31005CE6: je 0x31005ceb */ 4951 L_31005CE8: 4952 MEM32(edx + 0x4) = eax; /* 0x31005CE8: mov dword ptr [edx + 4], eax */ 4953 L_31005CEB: 4954 edx = MEM32(eax + 0x4); /* 0x31005CEB: mov edx, dword ptr [eax + 4] */ 4955 MEM32(ecx + 0x4) = edx; /* 0x31005CEE: mov dword ptr [ecx + 4], edx */ 4956 edx = MEM32(esi + 0x4); /* 0x31005CF1: mov edx, dword ptr [esi + 4] */ 4957 /* cmp eax, MEM32(edx + 0x4) */ /* 0x31005CF4: cmp eax, dword ptr [edx + 4] */ 4958 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 4959 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4960 _flag_k = FK_CMP; 4961 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CFE; /* 0x31005CF7: jne 0x31005cfe */ 4962 L_31005CF9: 4963 MEM32(edx + 0x4) = ecx; /* 0x31005CF9: mov dword ptr [edx + 4], ecx */ 4964 goto L_31005D0D; /* 0x31005CFC: jmp 0x31005d0d */ 4965 L_31005CFE: 4966 edx = MEM32(eax + 0x4); /* 0x31005CFE: mov edx, dword ptr [eax + 4] */ 4967 /* cmp eax, MEM32(edx + 0x8) */ /* 0x31005D01: cmp eax, dword ptr [edx + 8] */ 4968 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 4969 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4970 _flag_k = FK_CMP; 4971 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D0B; /* 0x31005D04: jne 0x31005d0b */ 4972 L_31005D06: 4973 MEM32(edx + 0x8) = ecx; /* 0x31005D06: mov dword ptr [edx + 8], ecx */ 4974 goto L_31005D0D; /* 0x31005D09: jmp 0x31005d0d */ 4975 L_31005D0B: 4976 MEM32(edx) = ecx; /* 0x31005D0B: mov dword ptr [edx], ecx */ 4977 L_31005D0D: 4978 MEM32(ecx + 0x8) = eax; /* 0x31005D0D: mov dword ptr [ecx + 8], eax */ 4979 MEM32(eax + 0x4) = ecx; /* 0x31005D10: mov dword ptr [eax + 4], ecx */ 4980 L_31005D13: 4981 ecx = MEM32(eax + 0x4); /* 0x31005D13: mov ecx, dword ptr [eax + 4] */ 4982 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005D16: mov byte ptr [ecx + 0x14], bl */ 4983 edx = MEM32(eax + 0x4); /* 0x31005D19: mov edx, dword ptr [eax + 4] */ 4984 ecx = MEM32(edx + 0x4); /* 0x31005D1C: mov ecx, dword ptr [edx + 4] */ 4985 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x31005D1F: mov byte ptr [ecx + 0x14], 0 */ 4986 edx = MEM32(eax + 0x4); /* 0x31005D23: mov edx, dword ptr [eax + 4] */ 4987 ecx = MEM32(edx + 0x4); /* 0x31005D26: mov ecx, dword ptr [edx + 4] */ 4988 edx = MEM32(ecx + 0x8); /* 0x31005D29: mov edx, dword ptr [ecx + 8] */ 4989 edi = MEM32(edx); /* 0x31005D2C: mov edi, dword ptr [edx] */ 4990 MEM32(ecx + 0x8) = edi; /* 0x31005D2E: mov dword ptr [ecx + 8], edi */ 4991 edi = MEM32(edx); /* 0x31005D31: mov edi, dword ptr [edx] */ 4992 /* cmp edi, MEM32(esi + 0x8) */ /* 0x31005D33: cmp edi, dword ptr [esi + 8] */ 4993 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4994 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4995 _flag_k = FK_CMP; 4996 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005D3B; /* 0x31005D36: je 0x31005d3b */ 4997 L_31005D38: 4998 MEM32(edi + 0x4) = ecx; /* 0x31005D38: mov dword ptr [edi + 4], ecx */ 4999 L_31005D3B: 5000 edi = MEM32(ecx + 0x4); /* 0x31005D3B: mov edi, dword ptr [ecx + 4] */ 5001 MEM32(edx + 0x4) = edi; /* 0x31005D3E: mov dword ptr [edx + 4], edi */ 5002 edi = MEM32(esi + 0x4); /* 0x31005D41: mov edi, dword ptr [esi + 4] */ 5003 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x31005D44: cmp ecx, dword ptr [edi + 4] */ 5004 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 5005 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5006 _flag_k = FK_CMP; 5007 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D4E; /* 0x31005D47: jne 0x31005d4e */ 5008 L_31005D49: 5009 MEM32(edi + 0x4) = edx; /* 0x31005D49: mov dword ptr [edi + 4], edx */ 5010 goto L_31005D5C; /* 0x31005D4C: jmp 0x31005d5c */ 5011 L_31005D4E: 5012 edi = MEM32(ecx + 0x4); /* 0x31005D4E: mov edi, dword ptr [ecx + 4] */ 5013 /* cmp ecx, MEM32(edi) */ /* 0x31005D51: cmp ecx, dword ptr [edi] */ 5014 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 5015 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5016 _flag_k = FK_CMP; 5017 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D59; /* 0x31005D53: jne 0x31005d59 */ 5018 L_31005D55: 5019 MEM32(edi) = edx; /* 0x31005D55: mov dword ptr [edi], edx */ 5020 goto L_31005D5C; /* 0x31005D57: jmp 0x31005d5c */ 5021 L_31005D59: 5022 MEM32(edi + 0x8) = edx; /* 0x31005D59: mov dword ptr [edi + 8], edx */ 5023 L_31005D5C: 5024 MEM32(edx) = ecx; /* 0x31005D5C: mov dword ptr [edx], ecx */ 5025 L_31005D5E: 5026 MEM32(ecx + 0x4) = edx; /* 0x31005D5E: mov dword ptr [ecx + 4], edx */ 5027 L_31005D61: 5028 ecx = MEM32(esi + 0x4); /* 0x31005D61: mov ecx, dword ptr [esi + 4] */ 5029 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x31005D64: cmp eax, dword ptr [ecx + 4] */ 5030 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 5031 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5032 _flag_k = FK_CMP; 5033 RECOMP_BACKEDGE(); 5034 if (CMP_NE(_flag_a, _flag_b)) goto L_31005BED; /* 0x31005D67: jne 0x31005bed */ 5035 L_31005D6D: 5036 edx = MEM32(esi + 0x4); /* 0x31005D6D: mov edx, dword ptr [esi + 4] */ 5037 eax = MEM32(edx + 0x4); /* 0x31005D70: mov eax, dword ptr [edx + 4] */ 5038 ecx = MEM32(ebp + (-0x4)); /* 0x31005D73: mov ecx, dword ptr [ebp - 4] */ 5039 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005D76: mov byte ptr [eax + 0x14], bl */ 5040 eax = MEM32(ebp + 0x8); /* 0x31005D79: mov eax, dword ptr [ebp + 8] */ 5041 edi = POP32_VAL(esp); /* 0x31005D7C: pop edi */ 5042 esi = POP32_VAL(esp); /* 0x31005D7D: pop esi */ 5043 MEM32(eax) = ecx; /* 0x31005D7E: mov dword ptr [eax], ecx */ 5044 ebx = POP32_VAL(esp); /* 0x31005D80: pop ebx */ 5045 esp = ebp; /* 0x31005D81: mov esp, ebp */ 5046 ebp = POP32_VAL(esp); /* 0x31005D83: pop ebp */ 5047 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x31005D84: ret 0x10 */ 5048 RECOMP_REGS_OUT(); 5049 } 5050 5051 void sub_31005D0D(void) { 5052 int _fpu_cmp = 0; 5053 uint32_t _cf = 0; 5054 int _df = 1; 5055 uint32_t _flag_k = FK_NONE; 5056 uint32_t _flag_a = 0, _flag_b = 0; 5057 uint32_t _itail_tgt = 0; 5058 RECOMP_REGS_LOCALS 5059 RECOMP_ENTER(0x31005D0Du); 5060 5061 goto L_31005D0D; 5062 L_31005BED: 5063 ecx = MEM32(eax + 0x4); /* 0x31005BED: mov ecx, dword ptr [eax + 4] */ 5064 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x31005BF0: mov dl, byte ptr [ecx + 0x14] */ 5065 /* test LO8(edx), LO8(edx) */ /* 0x31005BF3: test dl, dl */ 5066 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5067 _cf = 0; 5068 _flag_k = FK_NARROW(FK_TEST, 24); 5069 if (TEST_NZ(_flag_a, _flag_b)) goto L_31005D6D; /* 0x31005BF5: jne 0x31005d6d */ 5070 L_31005BFB: 5071 edi = MEM32(ecx + 0x4); /* 0x31005BFB: mov edi, dword ptr [ecx + 4] */ 5072 edx = MEM32(edi); /* 0x31005BFE: mov edx, dword ptr [edi] */ 5073 /* cmp ecx, edx */ /* 0x31005C00: cmp ecx, edx */ 5074 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 5075 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5076 _flag_k = FK_CMP; 5077 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CC9; /* 0x31005C02: jne 0x31005cc9 */ 5078 L_31005C08: 5079 edx = MEM32(edi + 0x8); /* 0x31005C08: mov edx, dword ptr [edi + 8] */ 5080 /* cmp MEM8(edx + 0x14), 0 */ /* 0x31005C0B: cmp byte ptr [edx + 0x14], 0 */ 5081 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 5082 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5083 _flag_k = FK_NARROW(FK_CMP, 24); 5084 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C2C; /* 0x31005C0F: jne 0x31005c2c */ 5085 L_31005C11: 5086 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C11: mov byte ptr [ecx + 0x14], bl */ 5087 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C14: mov byte ptr [edx + 0x14], bl */ 5088 ecx = MEM32(eax + 0x4); /* 0x31005C17: mov ecx, dword ptr [eax + 4] */ 5089 edx = MEM32(ecx + 0x4); /* 0x31005C1A: mov edx, dword ptr [ecx + 4] */ 5090 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x31005C1D: mov byte ptr [edx + 0x14], 0 */ 5091 eax = MEM32(eax + 0x4); /* 0x31005C21: mov eax, dword ptr [eax + 4] */ 5092 eax = MEM32(eax + 0x4); /* 0x31005C24: mov eax, dword ptr [eax + 4] */ 5093 goto L_31005D61; /* 0x31005C27: jmp 0x31005d61 */ 5094 L_31005C2C: 5095 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x31005C2C: cmp eax, dword ptr [ecx + 8] */ 5096 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 5097 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5098 _flag_k = FK_CMP; 5099 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C6B; /* 0x31005C2F: jne 0x31005c6b */ 5100 L_31005C31: 5101 eax = ecx; /* 0x31005C31: mov eax, ecx */ 5102 ecx = MEM32(eax + 0x8); /* 0x31005C33: mov ecx, dword ptr [eax + 8] */ 5103 edx = MEM32(ecx); /* 0x31005C36: mov edx, dword ptr [ecx] */ 5104 MEM32(eax + 0x8) = edx; /* 0x31005C38: mov dword ptr [eax + 8], edx */ 5105 edx = MEM32(ecx); /* 0x31005C3B: mov edx, dword ptr [ecx] */ 5106 /* cmp edx, MEM32(esi + 0x8) */ /* 0x31005C3D: cmp edx, dword ptr [esi + 8] */ 5107 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5108 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5109 _flag_k = FK_CMP; 5110 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C45; /* 0x31005C40: je 0x31005c45 */ 5111 L_31005C42: 5112 MEM32(edx + 0x4) = eax; /* 0x31005C42: mov dword ptr [edx + 4], eax */ 5113 L_31005C45: 5114 edx = MEM32(eax + 0x4); /* 0x31005C45: mov edx, dword ptr [eax + 4] */ 5115 MEM32(ecx + 0x4) = edx; /* 0x31005C48: mov dword ptr [ecx + 4], edx */ 5116 edx = MEM32(esi + 0x4); /* 0x31005C4B: mov edx, dword ptr [esi + 4] */ 5117 /* cmp eax, MEM32(edx + 0x4) */ /* 0x31005C4E: cmp eax, dword ptr [edx + 4] */ 5118 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 5119 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5120 _flag_k = FK_CMP; 5121 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C58; /* 0x31005C51: jne 0x31005c58 */ 5122 L_31005C53: 5123 MEM32(edx + 0x4) = ecx; /* 0x31005C53: mov dword ptr [edx + 4], ecx */ 5124 goto L_31005C66; /* 0x31005C56: jmp 0x31005c66 */ 5125 L_31005C58: 5126 edx = MEM32(eax + 0x4); /* 0x31005C58: mov edx, dword ptr [eax + 4] */ 5127 /* cmp eax, MEM32(edx) */ /* 0x31005C5B: cmp eax, dword ptr [edx] */ 5128 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 5129 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5130 _flag_k = FK_CMP; 5131 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C63; /* 0x31005C5D: jne 0x31005c63 */ 5132 L_31005C5F: 5133 MEM32(edx) = ecx; /* 0x31005C5F: mov dword ptr [edx], ecx */ 5134 goto L_31005C66; /* 0x31005C61: jmp 0x31005c66 */ 5135 L_31005C63: 5136 MEM32(edx + 0x8) = ecx; /* 0x31005C63: mov dword ptr [edx + 8], ecx */ 5137 L_31005C66: 5138 MEM32(ecx) = eax; /* 0x31005C66: mov dword ptr [ecx], eax */ 5139 MEM32(eax + 0x4) = ecx; /* 0x31005C68: mov dword ptr [eax + 4], ecx */ 5140 L_31005C6B: 5141 ecx = MEM32(eax + 0x4); /* 0x31005C6B: mov ecx, dword ptr [eax + 4] */ 5142 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C6E: mov byte ptr [ecx + 0x14], bl */ 5143 edx = MEM32(eax + 0x4); /* 0x31005C71: mov edx, dword ptr [eax + 4] */ 5144 ecx = MEM32(edx + 0x4); /* 0x31005C74: mov ecx, dword ptr [edx + 4] */ 5145 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x31005C77: mov byte ptr [ecx + 0x14], 0 */ 5146 edx = MEM32(eax + 0x4); /* 0x31005C7B: mov edx, dword ptr [eax + 4] */ 5147 ecx = MEM32(edx + 0x4); /* 0x31005C7E: mov ecx, dword ptr [edx + 4] */ 5148 edx = MEM32(ecx); /* 0x31005C81: mov edx, dword ptr [ecx] */ 5149 edi = MEM32(edx + 0x8); /* 0x31005C83: mov edi, dword ptr [edx + 8] */ 5150 MEM32(ecx) = edi; /* 0x31005C86: mov dword ptr [ecx], edi */ 5151 edi = MEM32(edx + 0x8); /* 0x31005C88: mov edi, dword ptr [edx + 8] */ 5152 /* cmp edi, MEM32(esi + 0x8) */ /* 0x31005C8B: cmp edi, dword ptr [esi + 8] */ 5153 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5154 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5155 _flag_k = FK_CMP; 5156 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C93; /* 0x31005C8E: je 0x31005c93 */ 5157 L_31005C90: 5158 MEM32(edi + 0x4) = ecx; /* 0x31005C90: mov dword ptr [edi + 4], ecx */ 5159 L_31005C93: 5160 edi = MEM32(ecx + 0x4); /* 0x31005C93: mov edi, dword ptr [ecx + 4] */ 5161 MEM32(edx + 0x4) = edi; /* 0x31005C96: mov dword ptr [edx + 4], edi */ 5162 edi = MEM32(esi + 0x4); /* 0x31005C99: mov edi, dword ptr [esi + 4] */ 5163 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x31005C9C: cmp ecx, dword ptr [edi + 4] */ 5164 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 5165 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5166 _flag_k = FK_CMP; 5167 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CAC; /* 0x31005C9F: jne 0x31005cac */ 5168 L_31005CA1: 5169 MEM32(edi + 0x4) = edx; /* 0x31005CA1: mov dword ptr [edi + 4], edx */ 5170 MEM32(edx + 0x8) = ecx; /* 0x31005CA4: mov dword ptr [edx + 8], ecx */ 5171 goto L_31005D5E; /* 0x31005CA7: jmp 0x31005d5e */ 5172 L_31005CAC: 5173 edi = MEM32(ecx + 0x4); /* 0x31005CAC: mov edi, dword ptr [ecx + 4] */ 5174 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x31005CAF: cmp ecx, dword ptr [edi + 8] */ 5175 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5176 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5177 _flag_k = FK_CMP; 5178 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CBF; /* 0x31005CB2: jne 0x31005cbf */ 5179 L_31005CB4: 5180 MEM32(edi + 0x8) = edx; /* 0x31005CB4: mov dword ptr [edi + 8], edx */ 5181 MEM32(edx + 0x8) = ecx; /* 0x31005CB7: mov dword ptr [edx + 8], ecx */ 5182 goto L_31005D5E; /* 0x31005CBA: jmp 0x31005d5e */ 5183 L_31005CBF: 5184 MEM32(edi) = edx; /* 0x31005CBF: mov dword ptr [edi], edx */ 5185 MEM32(edx + 0x8) = ecx; /* 0x31005CC1: mov dword ptr [edx + 8], ecx */ 5186 goto L_31005D5E; /* 0x31005CC4: jmp 0x31005d5e */ 5187 L_31005CC9: 5188 /* cmp MEM8(edx + 0x14), 0 */ /* 0x31005CC9: cmp byte ptr [edx + 0x14], 0 */ 5189 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 5190 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5191 _flag_k = FK_NARROW(FK_CMP, 24); 5192 RECOMP_BACKEDGE(); 5193 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C11; /* 0x31005CCD: je 0x31005c11 */ 5194 L_31005CD3: 5195 /* cmp eax, MEM32(ecx) */ /* 0x31005CD3: cmp eax, dword ptr [ecx] */ 5196 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 5197 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5198 _flag_k = FK_CMP; 5199 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D13; /* 0x31005CD5: jne 0x31005d13 */ 5200 L_31005CD7: 5201 eax = ecx; /* 0x31005CD7: mov eax, ecx */ 5202 ecx = MEM32(eax); /* 0x31005CD9: mov ecx, dword ptr [eax] */ 5203 edx = MEM32(ecx + 0x8); /* 0x31005CDB: mov edx, dword ptr [ecx + 8] */ 5204 MEM32(eax) = edx; /* 0x31005CDE: mov dword ptr [eax], edx */ 5205 edx = MEM32(ecx + 0x8); /* 0x31005CE0: mov edx, dword ptr [ecx + 8] */ 5206 /* cmp edx, MEM32(esi + 0x8) */ /* 0x31005CE3: cmp edx, dword ptr [esi + 8] */ 5207 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5208 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5209 _flag_k = FK_CMP; 5210 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005CEB; /* 0x31005CE6: je 0x31005ceb */ 5211 L_31005CE8: 5212 MEM32(edx + 0x4) = eax; /* 0x31005CE8: mov dword ptr [edx + 4], eax */ 5213 L_31005CEB: 5214 edx = MEM32(eax + 0x4); /* 0x31005CEB: mov edx, dword ptr [eax + 4] */ 5215 MEM32(ecx + 0x4) = edx; /* 0x31005CEE: mov dword ptr [ecx + 4], edx */ 5216 edx = MEM32(esi + 0x4); /* 0x31005CF1: mov edx, dword ptr [esi + 4] */ 5217 /* cmp eax, MEM32(edx + 0x4) */ /* 0x31005CF4: cmp eax, dword ptr [edx + 4] */ 5218 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 5219 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5220 _flag_k = FK_CMP; 5221 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CFE; /* 0x31005CF7: jne 0x31005cfe */ 5222 L_31005CF9: 5223 MEM32(edx + 0x4) = ecx; /* 0x31005CF9: mov dword ptr [edx + 4], ecx */ 5224 goto L_31005D0D; /* 0x31005CFC: jmp 0x31005d0d */ 5225 L_31005CFE: 5226 edx = MEM32(eax + 0x4); /* 0x31005CFE: mov edx, dword ptr [eax + 4] */ 5227 /* cmp eax, MEM32(edx + 0x8) */ /* 0x31005D01: cmp eax, dword ptr [edx + 8] */ 5228 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 5229 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5230 _flag_k = FK_CMP; 5231 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D0B; /* 0x31005D04: jne 0x31005d0b */ 5232 L_31005D06: 5233 MEM32(edx + 0x8) = ecx; /* 0x31005D06: mov dword ptr [edx + 8], ecx */ 5234 goto L_31005D0D; /* 0x31005D09: jmp 0x31005d0d */ 5235 L_31005D0B: 5236 MEM32(edx) = ecx; /* 0x31005D0B: mov dword ptr [edx], ecx */ 5237 L_31005D0D: 5238 MEM32(ecx + 0x8) = eax; /* 0x31005D0D: mov dword ptr [ecx + 8], eax */ 5239 MEM32(eax + 0x4) = ecx; /* 0x31005D10: mov dword ptr [eax + 4], ecx */ 5240 L_31005D13: 5241 ecx = MEM32(eax + 0x4); /* 0x31005D13: mov ecx, dword ptr [eax + 4] */ 5242 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005D16: mov byte ptr [ecx + 0x14], bl */ 5243 edx = MEM32(eax + 0x4); /* 0x31005D19: mov edx, dword ptr [eax + 4] */ 5244 ecx = MEM32(edx + 0x4); /* 0x31005D1C: mov ecx, dword ptr [edx + 4] */ 5245 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x31005D1F: mov byte ptr [ecx + 0x14], 0 */ 5246 edx = MEM32(eax + 0x4); /* 0x31005D23: mov edx, dword ptr [eax + 4] */ 5247 ecx = MEM32(edx + 0x4); /* 0x31005D26: mov ecx, dword ptr [edx + 4] */ 5248 edx = MEM32(ecx + 0x8); /* 0x31005D29: mov edx, dword ptr [ecx + 8] */ 5249 edi = MEM32(edx); /* 0x31005D2C: mov edi, dword ptr [edx] */ 5250 MEM32(ecx + 0x8) = edi; /* 0x31005D2E: mov dword ptr [ecx + 8], edi */ 5251 edi = MEM32(edx); /* 0x31005D31: mov edi, dword ptr [edx] */ 5252 /* cmp edi, MEM32(esi + 0x8) */ /* 0x31005D33: cmp edi, dword ptr [esi + 8] */ 5253 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5254 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5255 _flag_k = FK_CMP; 5256 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005D3B; /* 0x31005D36: je 0x31005d3b */ 5257 L_31005D38: 5258 MEM32(edi + 0x4) = ecx; /* 0x31005D38: mov dword ptr [edi + 4], ecx */ 5259 L_31005D3B: 5260 edi = MEM32(ecx + 0x4); /* 0x31005D3B: mov edi, dword ptr [ecx + 4] */ 5261 MEM32(edx + 0x4) = edi; /* 0x31005D3E: mov dword ptr [edx + 4], edi */ 5262 edi = MEM32(esi + 0x4); /* 0x31005D41: mov edi, dword ptr [esi + 4] */ 5263 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x31005D44: cmp ecx, dword ptr [edi + 4] */ 5264 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 5265 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5266 _flag_k = FK_CMP; 5267 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D4E; /* 0x31005D47: jne 0x31005d4e */ 5268 L_31005D49: 5269 MEM32(edi + 0x4) = edx; /* 0x31005D49: mov dword ptr [edi + 4], edx */ 5270 goto L_31005D5C; /* 0x31005D4C: jmp 0x31005d5c */ 5271 L_31005D4E: 5272 edi = MEM32(ecx + 0x4); /* 0x31005D4E: mov edi, dword ptr [ecx + 4] */ 5273 /* cmp ecx, MEM32(edi) */ /* 0x31005D51: cmp ecx, dword ptr [edi] */ 5274 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 5275 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5276 _flag_k = FK_CMP; 5277 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D59; /* 0x31005D53: jne 0x31005d59 */ 5278 L_31005D55: 5279 MEM32(edi) = edx; /* 0x31005D55: mov dword ptr [edi], edx */ 5280 goto L_31005D5C; /* 0x31005D57: jmp 0x31005d5c */ 5281 L_31005D59: 5282 MEM32(edi + 0x8) = edx; /* 0x31005D59: mov dword ptr [edi + 8], edx */ 5283 L_31005D5C: 5284 MEM32(edx) = ecx; /* 0x31005D5C: mov dword ptr [edx], ecx */ 5285 L_31005D5E: 5286 MEM32(ecx + 0x4) = edx; /* 0x31005D5E: mov dword ptr [ecx + 4], edx */ 5287 L_31005D61: 5288 ecx = MEM32(esi + 0x4); /* 0x31005D61: mov ecx, dword ptr [esi + 4] */ 5289 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x31005D64: cmp eax, dword ptr [ecx + 4] */ 5290 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 5291 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5292 _flag_k = FK_CMP; 5293 RECOMP_BACKEDGE(); 5294 if (CMP_NE(_flag_a, _flag_b)) goto L_31005BED; /* 0x31005D67: jne 0x31005bed */ 5295 L_31005D6D: 5296 edx = MEM32(esi + 0x4); /* 0x31005D6D: mov edx, dword ptr [esi + 4] */ 5297 eax = MEM32(edx + 0x4); /* 0x31005D70: mov eax, dword ptr [edx + 4] */ 5298 ecx = MEM32(ebp + (-0x4)); /* 0x31005D73: mov ecx, dword ptr [ebp - 4] */ 5299 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005D76: mov byte ptr [eax + 0x14], bl */ 5300 eax = MEM32(ebp + 0x8); /* 0x31005D79: mov eax, dword ptr [ebp + 8] */ 5301 edi = POP32_VAL(esp); /* 0x31005D7C: pop edi */ 5302 esi = POP32_VAL(esp); /* 0x31005D7D: pop esi */ 5303 MEM32(eax) = ecx; /* 0x31005D7E: mov dword ptr [eax], ecx */ 5304 ebx = POP32_VAL(esp); /* 0x31005D80: pop ebx */ 5305 esp = ebp; /* 0x31005D81: mov esp, ebp */ 5306 ebp = POP32_VAL(esp); /* 0x31005D83: pop ebp */ 5307 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x31005D84: ret 0x10 */ 5308 RECOMP_REGS_OUT(); 5309 } 5310 5311 void sub_31005D13(void) { 5312 int _fpu_cmp = 0; 5313 uint32_t _cf = 0; 5314 int _df = 1; 5315 uint32_t _flag_k = FK_NONE; 5316 uint32_t _flag_a = 0, _flag_b = 0; 5317 uint32_t _itail_tgt = 0; 5318 RECOMP_REGS_LOCALS 5319 RECOMP_ENTER(0x31005D13u); 5320 5321 goto L_31005D13; 5322 L_31005BED: 5323 ecx = MEM32(eax + 0x4); /* 0x31005BED: mov ecx, dword ptr [eax + 4] */ 5324 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x31005BF0: mov dl, byte ptr [ecx + 0x14] */ 5325 /* test LO8(edx), LO8(edx) */ /* 0x31005BF3: test dl, dl */ 5326 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5327 _cf = 0; 5328 _flag_k = FK_NARROW(FK_TEST, 24); 5329 if (TEST_NZ(_flag_a, _flag_b)) goto L_31005D6D; /* 0x31005BF5: jne 0x31005d6d */ 5330 L_31005BFB: 5331 edi = MEM32(ecx + 0x4); /* 0x31005BFB: mov edi, dword ptr [ecx + 4] */ 5332 edx = MEM32(edi); /* 0x31005BFE: mov edx, dword ptr [edi] */ 5333 /* cmp ecx, edx */ /* 0x31005C00: cmp ecx, edx */ 5334 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 5335 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5336 _flag_k = FK_CMP; 5337 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CC9; /* 0x31005C02: jne 0x31005cc9 */ 5338 L_31005C08: 5339 edx = MEM32(edi + 0x8); /* 0x31005C08: mov edx, dword ptr [edi + 8] */ 5340 /* cmp MEM8(edx + 0x14), 0 */ /* 0x31005C0B: cmp byte ptr [edx + 0x14], 0 */ 5341 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 5342 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5343 _flag_k = FK_NARROW(FK_CMP, 24); 5344 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C2C; /* 0x31005C0F: jne 0x31005c2c */ 5345 L_31005C11: 5346 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C11: mov byte ptr [ecx + 0x14], bl */ 5347 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C14: mov byte ptr [edx + 0x14], bl */ 5348 ecx = MEM32(eax + 0x4); /* 0x31005C17: mov ecx, dword ptr [eax + 4] */ 5349 edx = MEM32(ecx + 0x4); /* 0x31005C1A: mov edx, dword ptr [ecx + 4] */ 5350 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x31005C1D: mov byte ptr [edx + 0x14], 0 */ 5351 eax = MEM32(eax + 0x4); /* 0x31005C21: mov eax, dword ptr [eax + 4] */ 5352 eax = MEM32(eax + 0x4); /* 0x31005C24: mov eax, dword ptr [eax + 4] */ 5353 goto L_31005D61; /* 0x31005C27: jmp 0x31005d61 */ 5354 L_31005C2C: 5355 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x31005C2C: cmp eax, dword ptr [ecx + 8] */ 5356 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 5357 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5358 _flag_k = FK_CMP; 5359 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C6B; /* 0x31005C2F: jne 0x31005c6b */ 5360 L_31005C31: 5361 eax = ecx; /* 0x31005C31: mov eax, ecx */ 5362 ecx = MEM32(eax + 0x8); /* 0x31005C33: mov ecx, dword ptr [eax + 8] */ 5363 edx = MEM32(ecx); /* 0x31005C36: mov edx, dword ptr [ecx] */ 5364 MEM32(eax + 0x8) = edx; /* 0x31005C38: mov dword ptr [eax + 8], edx */ 5365 edx = MEM32(ecx); /* 0x31005C3B: mov edx, dword ptr [ecx] */ 5366 /* cmp edx, MEM32(esi + 0x8) */ /* 0x31005C3D: cmp edx, dword ptr [esi + 8] */ 5367 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5368 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5369 _flag_k = FK_CMP; 5370 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C45; /* 0x31005C40: je 0x31005c45 */ 5371 L_31005C42: 5372 MEM32(edx + 0x4) = eax; /* 0x31005C42: mov dword ptr [edx + 4], eax */ 5373 L_31005C45: 5374 edx = MEM32(eax + 0x4); /* 0x31005C45: mov edx, dword ptr [eax + 4] */ 5375 MEM32(ecx + 0x4) = edx; /* 0x31005C48: mov dword ptr [ecx + 4], edx */ 5376 edx = MEM32(esi + 0x4); /* 0x31005C4B: mov edx, dword ptr [esi + 4] */ 5377 /* cmp eax, MEM32(edx + 0x4) */ /* 0x31005C4E: cmp eax, dword ptr [edx + 4] */ 5378 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 5379 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5380 _flag_k = FK_CMP; 5381 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C58; /* 0x31005C51: jne 0x31005c58 */ 5382 L_31005C53: 5383 MEM32(edx + 0x4) = ecx; /* 0x31005C53: mov dword ptr [edx + 4], ecx */ 5384 goto L_31005C66; /* 0x31005C56: jmp 0x31005c66 */ 5385 L_31005C58: 5386 edx = MEM32(eax + 0x4); /* 0x31005C58: mov edx, dword ptr [eax + 4] */ 5387 /* cmp eax, MEM32(edx) */ /* 0x31005C5B: cmp eax, dword ptr [edx] */ 5388 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 5389 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5390 _flag_k = FK_CMP; 5391 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C63; /* 0x31005C5D: jne 0x31005c63 */ 5392 L_31005C5F: 5393 MEM32(edx) = ecx; /* 0x31005C5F: mov dword ptr [edx], ecx */ 5394 goto L_31005C66; /* 0x31005C61: jmp 0x31005c66 */ 5395 L_31005C63: 5396 MEM32(edx + 0x8) = ecx; /* 0x31005C63: mov dword ptr [edx + 8], ecx */ 5397 L_31005C66: 5398 MEM32(ecx) = eax; /* 0x31005C66: mov dword ptr [ecx], eax */ 5399 MEM32(eax + 0x4) = ecx; /* 0x31005C68: mov dword ptr [eax + 4], ecx */ 5400 L_31005C6B: 5401 ecx = MEM32(eax + 0x4); /* 0x31005C6B: mov ecx, dword ptr [eax + 4] */ 5402 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C6E: mov byte ptr [ecx + 0x14], bl */ 5403 edx = MEM32(eax + 0x4); /* 0x31005C71: mov edx, dword ptr [eax + 4] */ 5404 ecx = MEM32(edx + 0x4); /* 0x31005C74: mov ecx, dword ptr [edx + 4] */ 5405 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x31005C77: mov byte ptr [ecx + 0x14], 0 */ 5406 edx = MEM32(eax + 0x4); /* 0x31005C7B: mov edx, dword ptr [eax + 4] */ 5407 ecx = MEM32(edx + 0x4); /* 0x31005C7E: mov ecx, dword ptr [edx + 4] */ 5408 edx = MEM32(ecx); /* 0x31005C81: mov edx, dword ptr [ecx] */ 5409 edi = MEM32(edx + 0x8); /* 0x31005C83: mov edi, dword ptr [edx + 8] */ 5410 MEM32(ecx) = edi; /* 0x31005C86: mov dword ptr [ecx], edi */ 5411 edi = MEM32(edx + 0x8); /* 0x31005C88: mov edi, dword ptr [edx + 8] */ 5412 /* cmp edi, MEM32(esi + 0x8) */ /* 0x31005C8B: cmp edi, dword ptr [esi + 8] */ 5413 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5414 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5415 _flag_k = FK_CMP; 5416 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C93; /* 0x31005C8E: je 0x31005c93 */ 5417 L_31005C90: 5418 MEM32(edi + 0x4) = ecx; /* 0x31005C90: mov dword ptr [edi + 4], ecx */ 5419 L_31005C93: 5420 edi = MEM32(ecx + 0x4); /* 0x31005C93: mov edi, dword ptr [ecx + 4] */ 5421 MEM32(edx + 0x4) = edi; /* 0x31005C96: mov dword ptr [edx + 4], edi */ 5422 edi = MEM32(esi + 0x4); /* 0x31005C99: mov edi, dword ptr [esi + 4] */ 5423 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x31005C9C: cmp ecx, dword ptr [edi + 4] */ 5424 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 5425 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5426 _flag_k = FK_CMP; 5427 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CAC; /* 0x31005C9F: jne 0x31005cac */ 5428 L_31005CA1: 5429 MEM32(edi + 0x4) = edx; /* 0x31005CA1: mov dword ptr [edi + 4], edx */ 5430 MEM32(edx + 0x8) = ecx; /* 0x31005CA4: mov dword ptr [edx + 8], ecx */ 5431 goto L_31005D5E; /* 0x31005CA7: jmp 0x31005d5e */ 5432 L_31005CAC: 5433 edi = MEM32(ecx + 0x4); /* 0x31005CAC: mov edi, dword ptr [ecx + 4] */ 5434 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x31005CAF: cmp ecx, dword ptr [edi + 8] */ 5435 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5436 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5437 _flag_k = FK_CMP; 5438 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CBF; /* 0x31005CB2: jne 0x31005cbf */ 5439 L_31005CB4: 5440 MEM32(edi + 0x8) = edx; /* 0x31005CB4: mov dword ptr [edi + 8], edx */ 5441 MEM32(edx + 0x8) = ecx; /* 0x31005CB7: mov dword ptr [edx + 8], ecx */ 5442 goto L_31005D5E; /* 0x31005CBA: jmp 0x31005d5e */ 5443 L_31005CBF: 5444 MEM32(edi) = edx; /* 0x31005CBF: mov dword ptr [edi], edx */ 5445 MEM32(edx + 0x8) = ecx; /* 0x31005CC1: mov dword ptr [edx + 8], ecx */ 5446 goto L_31005D5E; /* 0x31005CC4: jmp 0x31005d5e */ 5447 L_31005CC9: 5448 /* cmp MEM8(edx + 0x14), 0 */ /* 0x31005CC9: cmp byte ptr [edx + 0x14], 0 */ 5449 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 5450 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5451 _flag_k = FK_NARROW(FK_CMP, 24); 5452 RECOMP_BACKEDGE(); 5453 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C11; /* 0x31005CCD: je 0x31005c11 */ 5454 L_31005CD3: 5455 /* cmp eax, MEM32(ecx) */ /* 0x31005CD3: cmp eax, dword ptr [ecx] */ 5456 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 5457 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5458 _flag_k = FK_CMP; 5459 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D13; /* 0x31005CD5: jne 0x31005d13 */ 5460 L_31005CD7: 5461 eax = ecx; /* 0x31005CD7: mov eax, ecx */ 5462 ecx = MEM32(eax); /* 0x31005CD9: mov ecx, dword ptr [eax] */ 5463 edx = MEM32(ecx + 0x8); /* 0x31005CDB: mov edx, dword ptr [ecx + 8] */ 5464 MEM32(eax) = edx; /* 0x31005CDE: mov dword ptr [eax], edx */ 5465 edx = MEM32(ecx + 0x8); /* 0x31005CE0: mov edx, dword ptr [ecx + 8] */ 5466 /* cmp edx, MEM32(esi + 0x8) */ /* 0x31005CE3: cmp edx, dword ptr [esi + 8] */ 5467 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5468 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5469 _flag_k = FK_CMP; 5470 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005CEB; /* 0x31005CE6: je 0x31005ceb */ 5471 L_31005CE8: 5472 MEM32(edx + 0x4) = eax; /* 0x31005CE8: mov dword ptr [edx + 4], eax */ 5473 L_31005CEB: 5474 edx = MEM32(eax + 0x4); /* 0x31005CEB: mov edx, dword ptr [eax + 4] */ 5475 MEM32(ecx + 0x4) = edx; /* 0x31005CEE: mov dword ptr [ecx + 4], edx */ 5476 edx = MEM32(esi + 0x4); /* 0x31005CF1: mov edx, dword ptr [esi + 4] */ 5477 /* cmp eax, MEM32(edx + 0x4) */ /* 0x31005CF4: cmp eax, dword ptr [edx + 4] */ 5478 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 5479 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5480 _flag_k = FK_CMP; 5481 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CFE; /* 0x31005CF7: jne 0x31005cfe */ 5482 L_31005CF9: 5483 MEM32(edx + 0x4) = ecx; /* 0x31005CF9: mov dword ptr [edx + 4], ecx */ 5484 goto L_31005D0D; /* 0x31005CFC: jmp 0x31005d0d */ 5485 L_31005CFE: 5486 edx = MEM32(eax + 0x4); /* 0x31005CFE: mov edx, dword ptr [eax + 4] */ 5487 /* cmp eax, MEM32(edx + 0x8) */ /* 0x31005D01: cmp eax, dword ptr [edx + 8] */ 5488 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 5489 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5490 _flag_k = FK_CMP; 5491 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D0B; /* 0x31005D04: jne 0x31005d0b */ 5492 L_31005D06: 5493 MEM32(edx + 0x8) = ecx; /* 0x31005D06: mov dword ptr [edx + 8], ecx */ 5494 goto L_31005D0D; /* 0x31005D09: jmp 0x31005d0d */ 5495 L_31005D0B: 5496 MEM32(edx) = ecx; /* 0x31005D0B: mov dword ptr [edx], ecx */ 5497 L_31005D0D: 5498 MEM32(ecx + 0x8) = eax; /* 0x31005D0D: mov dword ptr [ecx + 8], eax */ 5499 MEM32(eax + 0x4) = ecx; /* 0x31005D10: mov dword ptr [eax + 4], ecx */ 5500 L_31005D13: 5501 ecx = MEM32(eax + 0x4); /* 0x31005D13: mov ecx, dword ptr [eax + 4] */ 5502 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005D16: mov byte ptr [ecx + 0x14], bl */ 5503 edx = MEM32(eax + 0x4); /* 0x31005D19: mov edx, dword ptr [eax + 4] */ 5504 ecx = MEM32(edx + 0x4); /* 0x31005D1C: mov ecx, dword ptr [edx + 4] */ 5505 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x31005D1F: mov byte ptr [ecx + 0x14], 0 */ 5506 edx = MEM32(eax + 0x4); /* 0x31005D23: mov edx, dword ptr [eax + 4] */ 5507 ecx = MEM32(edx + 0x4); /* 0x31005D26: mov ecx, dword ptr [edx + 4] */ 5508 edx = MEM32(ecx + 0x8); /* 0x31005D29: mov edx, dword ptr [ecx + 8] */ 5509 edi = MEM32(edx); /* 0x31005D2C: mov edi, dword ptr [edx] */ 5510 MEM32(ecx + 0x8) = edi; /* 0x31005D2E: mov dword ptr [ecx + 8], edi */ 5511 edi = MEM32(edx); /* 0x31005D31: mov edi, dword ptr [edx] */ 5512 /* cmp edi, MEM32(esi + 0x8) */ /* 0x31005D33: cmp edi, dword ptr [esi + 8] */ 5513 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5514 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5515 _flag_k = FK_CMP; 5516 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005D3B; /* 0x31005D36: je 0x31005d3b */ 5517 L_31005D38: 5518 MEM32(edi + 0x4) = ecx; /* 0x31005D38: mov dword ptr [edi + 4], ecx */ 5519 L_31005D3B: 5520 edi = MEM32(ecx + 0x4); /* 0x31005D3B: mov edi, dword ptr [ecx + 4] */ 5521 MEM32(edx + 0x4) = edi; /* 0x31005D3E: mov dword ptr [edx + 4], edi */ 5522 edi = MEM32(esi + 0x4); /* 0x31005D41: mov edi, dword ptr [esi + 4] */ 5523 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x31005D44: cmp ecx, dword ptr [edi + 4] */ 5524 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 5525 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5526 _flag_k = FK_CMP; 5527 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D4E; /* 0x31005D47: jne 0x31005d4e */ 5528 L_31005D49: 5529 MEM32(edi + 0x4) = edx; /* 0x31005D49: mov dword ptr [edi + 4], edx */ 5530 goto L_31005D5C; /* 0x31005D4C: jmp 0x31005d5c */ 5531 L_31005D4E: 5532 edi = MEM32(ecx + 0x4); /* 0x31005D4E: mov edi, dword ptr [ecx + 4] */ 5533 /* cmp ecx, MEM32(edi) */ /* 0x31005D51: cmp ecx, dword ptr [edi] */ 5534 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 5535 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5536 _flag_k = FK_CMP; 5537 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D59; /* 0x31005D53: jne 0x31005d59 */ 5538 L_31005D55: 5539 MEM32(edi) = edx; /* 0x31005D55: mov dword ptr [edi], edx */ 5540 goto L_31005D5C; /* 0x31005D57: jmp 0x31005d5c */ 5541 L_31005D59: 5542 MEM32(edi + 0x8) = edx; /* 0x31005D59: mov dword ptr [edi + 8], edx */ 5543 L_31005D5C: 5544 MEM32(edx) = ecx; /* 0x31005D5C: mov dword ptr [edx], ecx */ 5545 L_31005D5E: 5546 MEM32(ecx + 0x4) = edx; /* 0x31005D5E: mov dword ptr [ecx + 4], edx */ 5547 L_31005D61: 5548 ecx = MEM32(esi + 0x4); /* 0x31005D61: mov ecx, dword ptr [esi + 4] */ 5549 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x31005D64: cmp eax, dword ptr [ecx + 4] */ 5550 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 5551 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5552 _flag_k = FK_CMP; 5553 RECOMP_BACKEDGE(); 5554 if (CMP_NE(_flag_a, _flag_b)) goto L_31005BED; /* 0x31005D67: jne 0x31005bed */ 5555 L_31005D6D: 5556 edx = MEM32(esi + 0x4); /* 0x31005D6D: mov edx, dword ptr [esi + 4] */ 5557 eax = MEM32(edx + 0x4); /* 0x31005D70: mov eax, dword ptr [edx + 4] */ 5558 ecx = MEM32(ebp + (-0x4)); /* 0x31005D73: mov ecx, dword ptr [ebp - 4] */ 5559 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005D76: mov byte ptr [eax + 0x14], bl */ 5560 eax = MEM32(ebp + 0x8); /* 0x31005D79: mov eax, dword ptr [ebp + 8] */ 5561 edi = POP32_VAL(esp); /* 0x31005D7C: pop edi */ 5562 esi = POP32_VAL(esp); /* 0x31005D7D: pop esi */ 5563 MEM32(eax) = ecx; /* 0x31005D7E: mov dword ptr [eax], ecx */ 5564 ebx = POP32_VAL(esp); /* 0x31005D80: pop ebx */ 5565 esp = ebp; /* 0x31005D81: mov esp, ebp */ 5566 ebp = POP32_VAL(esp); /* 0x31005D83: pop ebp */ 5567 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x31005D84: ret 0x10 */ 5568 RECOMP_REGS_OUT(); 5569 } 5570 5571 void sub_31005D5C(void) { 5572 int _fpu_cmp = 0; 5573 uint32_t _cf = 0; 5574 int _df = 1; 5575 uint32_t _flag_k = FK_NONE; 5576 uint32_t _flag_a = 0, _flag_b = 0; 5577 uint32_t _itail_tgt = 0; 5578 RECOMP_REGS_LOCALS 5579 RECOMP_ENTER(0x31005D5Cu); 5580 5581 goto L_31005D5C; 5582 L_31005BED: 5583 ecx = MEM32(eax + 0x4); /* 0x31005BED: mov ecx, dword ptr [eax + 4] */ 5584 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x31005BF0: mov dl, byte ptr [ecx + 0x14] */ 5585 /* test LO8(edx), LO8(edx) */ /* 0x31005BF3: test dl, dl */ 5586 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5587 _cf = 0; 5588 _flag_k = FK_NARROW(FK_TEST, 24); 5589 if (TEST_NZ(_flag_a, _flag_b)) goto L_31005D6D; /* 0x31005BF5: jne 0x31005d6d */ 5590 L_31005BFB: 5591 edi = MEM32(ecx + 0x4); /* 0x31005BFB: mov edi, dword ptr [ecx + 4] */ 5592 edx = MEM32(edi); /* 0x31005BFE: mov edx, dword ptr [edi] */ 5593 /* cmp ecx, edx */ /* 0x31005C00: cmp ecx, edx */ 5594 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 5595 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5596 _flag_k = FK_CMP; 5597 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CC9; /* 0x31005C02: jne 0x31005cc9 */ 5598 L_31005C08: 5599 edx = MEM32(edi + 0x8); /* 0x31005C08: mov edx, dword ptr [edi + 8] */ 5600 /* cmp MEM8(edx + 0x14), 0 */ /* 0x31005C0B: cmp byte ptr [edx + 0x14], 0 */ 5601 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 5602 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5603 _flag_k = FK_NARROW(FK_CMP, 24); 5604 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C2C; /* 0x31005C0F: jne 0x31005c2c */ 5605 L_31005C11: 5606 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C11: mov byte ptr [ecx + 0x14], bl */ 5607 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C14: mov byte ptr [edx + 0x14], bl */ 5608 ecx = MEM32(eax + 0x4); /* 0x31005C17: mov ecx, dword ptr [eax + 4] */ 5609 edx = MEM32(ecx + 0x4); /* 0x31005C1A: mov edx, dword ptr [ecx + 4] */ 5610 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x31005C1D: mov byte ptr [edx + 0x14], 0 */ 5611 eax = MEM32(eax + 0x4); /* 0x31005C21: mov eax, dword ptr [eax + 4] */ 5612 eax = MEM32(eax + 0x4); /* 0x31005C24: mov eax, dword ptr [eax + 4] */ 5613 goto L_31005D61; /* 0x31005C27: jmp 0x31005d61 */ 5614 L_31005C2C: 5615 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x31005C2C: cmp eax, dword ptr [ecx + 8] */ 5616 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 5617 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5618 _flag_k = FK_CMP; 5619 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C6B; /* 0x31005C2F: jne 0x31005c6b */ 5620 L_31005C31: 5621 eax = ecx; /* 0x31005C31: mov eax, ecx */ 5622 ecx = MEM32(eax + 0x8); /* 0x31005C33: mov ecx, dword ptr [eax + 8] */ 5623 edx = MEM32(ecx); /* 0x31005C36: mov edx, dword ptr [ecx] */ 5624 MEM32(eax + 0x8) = edx; /* 0x31005C38: mov dword ptr [eax + 8], edx */ 5625 edx = MEM32(ecx); /* 0x31005C3B: mov edx, dword ptr [ecx] */ 5626 /* cmp edx, MEM32(esi + 0x8) */ /* 0x31005C3D: cmp edx, dword ptr [esi + 8] */ 5627 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5628 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5629 _flag_k = FK_CMP; 5630 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C45; /* 0x31005C40: je 0x31005c45 */ 5631 L_31005C42: 5632 MEM32(edx + 0x4) = eax; /* 0x31005C42: mov dword ptr [edx + 4], eax */ 5633 L_31005C45: 5634 edx = MEM32(eax + 0x4); /* 0x31005C45: mov edx, dword ptr [eax + 4] */ 5635 MEM32(ecx + 0x4) = edx; /* 0x31005C48: mov dword ptr [ecx + 4], edx */ 5636 edx = MEM32(esi + 0x4); /* 0x31005C4B: mov edx, dword ptr [esi + 4] */ 5637 /* cmp eax, MEM32(edx + 0x4) */ /* 0x31005C4E: cmp eax, dword ptr [edx + 4] */ 5638 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 5639 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5640 _flag_k = FK_CMP; 5641 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C58; /* 0x31005C51: jne 0x31005c58 */ 5642 L_31005C53: 5643 MEM32(edx + 0x4) = ecx; /* 0x31005C53: mov dword ptr [edx + 4], ecx */ 5644 goto L_31005C66; /* 0x31005C56: jmp 0x31005c66 */ 5645 L_31005C58: 5646 edx = MEM32(eax + 0x4); /* 0x31005C58: mov edx, dword ptr [eax + 4] */ 5647 /* cmp eax, MEM32(edx) */ /* 0x31005C5B: cmp eax, dword ptr [edx] */ 5648 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 5649 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5650 _flag_k = FK_CMP; 5651 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C63; /* 0x31005C5D: jne 0x31005c63 */ 5652 L_31005C5F: 5653 MEM32(edx) = ecx; /* 0x31005C5F: mov dword ptr [edx], ecx */ 5654 goto L_31005C66; /* 0x31005C61: jmp 0x31005c66 */ 5655 L_31005C63: 5656 MEM32(edx + 0x8) = ecx; /* 0x31005C63: mov dword ptr [edx + 8], ecx */ 5657 L_31005C66: 5658 MEM32(ecx) = eax; /* 0x31005C66: mov dword ptr [ecx], eax */ 5659 MEM32(eax + 0x4) = ecx; /* 0x31005C68: mov dword ptr [eax + 4], ecx */ 5660 L_31005C6B: 5661 ecx = MEM32(eax + 0x4); /* 0x31005C6B: mov ecx, dword ptr [eax + 4] */ 5662 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C6E: mov byte ptr [ecx + 0x14], bl */ 5663 edx = MEM32(eax + 0x4); /* 0x31005C71: mov edx, dword ptr [eax + 4] */ 5664 ecx = MEM32(edx + 0x4); /* 0x31005C74: mov ecx, dword ptr [edx + 4] */ 5665 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x31005C77: mov byte ptr [ecx + 0x14], 0 */ 5666 edx = MEM32(eax + 0x4); /* 0x31005C7B: mov edx, dword ptr [eax + 4] */ 5667 ecx = MEM32(edx + 0x4); /* 0x31005C7E: mov ecx, dword ptr [edx + 4] */ 5668 edx = MEM32(ecx); /* 0x31005C81: mov edx, dword ptr [ecx] */ 5669 edi = MEM32(edx + 0x8); /* 0x31005C83: mov edi, dword ptr [edx + 8] */ 5670 MEM32(ecx) = edi; /* 0x31005C86: mov dword ptr [ecx], edi */ 5671 edi = MEM32(edx + 0x8); /* 0x31005C88: mov edi, dword ptr [edx + 8] */ 5672 /* cmp edi, MEM32(esi + 0x8) */ /* 0x31005C8B: cmp edi, dword ptr [esi + 8] */ 5673 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5674 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5675 _flag_k = FK_CMP; 5676 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C93; /* 0x31005C8E: je 0x31005c93 */ 5677 L_31005C90: 5678 MEM32(edi + 0x4) = ecx; /* 0x31005C90: mov dword ptr [edi + 4], ecx */ 5679 L_31005C93: 5680 edi = MEM32(ecx + 0x4); /* 0x31005C93: mov edi, dword ptr [ecx + 4] */ 5681 MEM32(edx + 0x4) = edi; /* 0x31005C96: mov dword ptr [edx + 4], edi */ 5682 edi = MEM32(esi + 0x4); /* 0x31005C99: mov edi, dword ptr [esi + 4] */ 5683 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x31005C9C: cmp ecx, dword ptr [edi + 4] */ 5684 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 5685 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5686 _flag_k = FK_CMP; 5687 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CAC; /* 0x31005C9F: jne 0x31005cac */ 5688 L_31005CA1: 5689 MEM32(edi + 0x4) = edx; /* 0x31005CA1: mov dword ptr [edi + 4], edx */ 5690 MEM32(edx + 0x8) = ecx; /* 0x31005CA4: mov dword ptr [edx + 8], ecx */ 5691 goto L_31005D5E; /* 0x31005CA7: jmp 0x31005d5e */ 5692 L_31005CAC: 5693 edi = MEM32(ecx + 0x4); /* 0x31005CAC: mov edi, dword ptr [ecx + 4] */ 5694 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x31005CAF: cmp ecx, dword ptr [edi + 8] */ 5695 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5696 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5697 _flag_k = FK_CMP; 5698 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CBF; /* 0x31005CB2: jne 0x31005cbf */ 5699 L_31005CB4: 5700 MEM32(edi + 0x8) = edx; /* 0x31005CB4: mov dword ptr [edi + 8], edx */ 5701 MEM32(edx + 0x8) = ecx; /* 0x31005CB7: mov dword ptr [edx + 8], ecx */ 5702 goto L_31005D5E; /* 0x31005CBA: jmp 0x31005d5e */ 5703 L_31005CBF: 5704 MEM32(edi) = edx; /* 0x31005CBF: mov dword ptr [edi], edx */ 5705 MEM32(edx + 0x8) = ecx; /* 0x31005CC1: mov dword ptr [edx + 8], ecx */ 5706 goto L_31005D5E; /* 0x31005CC4: jmp 0x31005d5e */ 5707 L_31005CC9: 5708 /* cmp MEM8(edx + 0x14), 0 */ /* 0x31005CC9: cmp byte ptr [edx + 0x14], 0 */ 5709 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 5710 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5711 _flag_k = FK_NARROW(FK_CMP, 24); 5712 RECOMP_BACKEDGE(); 5713 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C11; /* 0x31005CCD: je 0x31005c11 */ 5714 L_31005CD3: 5715 /* cmp eax, MEM32(ecx) */ /* 0x31005CD3: cmp eax, dword ptr [ecx] */ 5716 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 5717 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5718 _flag_k = FK_CMP; 5719 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D13; /* 0x31005CD5: jne 0x31005d13 */ 5720 L_31005CD7: 5721 eax = ecx; /* 0x31005CD7: mov eax, ecx */ 5722 ecx = MEM32(eax); /* 0x31005CD9: mov ecx, dword ptr [eax] */ 5723 edx = MEM32(ecx + 0x8); /* 0x31005CDB: mov edx, dword ptr [ecx + 8] */ 5724 MEM32(eax) = edx; /* 0x31005CDE: mov dword ptr [eax], edx */ 5725 edx = MEM32(ecx + 0x8); /* 0x31005CE0: mov edx, dword ptr [ecx + 8] */ 5726 /* cmp edx, MEM32(esi + 0x8) */ /* 0x31005CE3: cmp edx, dword ptr [esi + 8] */ 5727 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5728 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5729 _flag_k = FK_CMP; 5730 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005CEB; /* 0x31005CE6: je 0x31005ceb */ 5731 L_31005CE8: 5732 MEM32(edx + 0x4) = eax; /* 0x31005CE8: mov dword ptr [edx + 4], eax */ 5733 L_31005CEB: 5734 edx = MEM32(eax + 0x4); /* 0x31005CEB: mov edx, dword ptr [eax + 4] */ 5735 MEM32(ecx + 0x4) = edx; /* 0x31005CEE: mov dword ptr [ecx + 4], edx */ 5736 edx = MEM32(esi + 0x4); /* 0x31005CF1: mov edx, dword ptr [esi + 4] */ 5737 /* cmp eax, MEM32(edx + 0x4) */ /* 0x31005CF4: cmp eax, dword ptr [edx + 4] */ 5738 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 5739 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5740 _flag_k = FK_CMP; 5741 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CFE; /* 0x31005CF7: jne 0x31005cfe */ 5742 L_31005CF9: 5743 MEM32(edx + 0x4) = ecx; /* 0x31005CF9: mov dword ptr [edx + 4], ecx */ 5744 goto L_31005D0D; /* 0x31005CFC: jmp 0x31005d0d */ 5745 L_31005CFE: 5746 edx = MEM32(eax + 0x4); /* 0x31005CFE: mov edx, dword ptr [eax + 4] */ 5747 /* cmp eax, MEM32(edx + 0x8) */ /* 0x31005D01: cmp eax, dword ptr [edx + 8] */ 5748 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 5749 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5750 _flag_k = FK_CMP; 5751 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D0B; /* 0x31005D04: jne 0x31005d0b */ 5752 L_31005D06: 5753 MEM32(edx + 0x8) = ecx; /* 0x31005D06: mov dword ptr [edx + 8], ecx */ 5754 goto L_31005D0D; /* 0x31005D09: jmp 0x31005d0d */ 5755 L_31005D0B: 5756 MEM32(edx) = ecx; /* 0x31005D0B: mov dword ptr [edx], ecx */ 5757 L_31005D0D: 5758 MEM32(ecx + 0x8) = eax; /* 0x31005D0D: mov dword ptr [ecx + 8], eax */ 5759 MEM32(eax + 0x4) = ecx; /* 0x31005D10: mov dword ptr [eax + 4], ecx */ 5760 L_31005D13: 5761 ecx = MEM32(eax + 0x4); /* 0x31005D13: mov ecx, dword ptr [eax + 4] */ 5762 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005D16: mov byte ptr [ecx + 0x14], bl */ 5763 edx = MEM32(eax + 0x4); /* 0x31005D19: mov edx, dword ptr [eax + 4] */ 5764 ecx = MEM32(edx + 0x4); /* 0x31005D1C: mov ecx, dword ptr [edx + 4] */ 5765 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x31005D1F: mov byte ptr [ecx + 0x14], 0 */ 5766 edx = MEM32(eax + 0x4); /* 0x31005D23: mov edx, dword ptr [eax + 4] */ 5767 ecx = MEM32(edx + 0x4); /* 0x31005D26: mov ecx, dword ptr [edx + 4] */ 5768 edx = MEM32(ecx + 0x8); /* 0x31005D29: mov edx, dword ptr [ecx + 8] */ 5769 edi = MEM32(edx); /* 0x31005D2C: mov edi, dword ptr [edx] */ 5770 MEM32(ecx + 0x8) = edi; /* 0x31005D2E: mov dword ptr [ecx + 8], edi */ 5771 edi = MEM32(edx); /* 0x31005D31: mov edi, dword ptr [edx] */ 5772 /* cmp edi, MEM32(esi + 0x8) */ /* 0x31005D33: cmp edi, dword ptr [esi + 8] */ 5773 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5774 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5775 _flag_k = FK_CMP; 5776 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005D3B; /* 0x31005D36: je 0x31005d3b */ 5777 L_31005D38: 5778 MEM32(edi + 0x4) = ecx; /* 0x31005D38: mov dword ptr [edi + 4], ecx */ 5779 L_31005D3B: 5780 edi = MEM32(ecx + 0x4); /* 0x31005D3B: mov edi, dword ptr [ecx + 4] */ 5781 MEM32(edx + 0x4) = edi; /* 0x31005D3E: mov dword ptr [edx + 4], edi */ 5782 edi = MEM32(esi + 0x4); /* 0x31005D41: mov edi, dword ptr [esi + 4] */ 5783 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x31005D44: cmp ecx, dword ptr [edi + 4] */ 5784 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 5785 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5786 _flag_k = FK_CMP; 5787 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D4E; /* 0x31005D47: jne 0x31005d4e */ 5788 L_31005D49: 5789 MEM32(edi + 0x4) = edx; /* 0x31005D49: mov dword ptr [edi + 4], edx */ 5790 goto L_31005D5C; /* 0x31005D4C: jmp 0x31005d5c */ 5791 L_31005D4E: 5792 edi = MEM32(ecx + 0x4); /* 0x31005D4E: mov edi, dword ptr [ecx + 4] */ 5793 /* cmp ecx, MEM32(edi) */ /* 0x31005D51: cmp ecx, dword ptr [edi] */ 5794 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 5795 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5796 _flag_k = FK_CMP; 5797 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D59; /* 0x31005D53: jne 0x31005d59 */ 5798 L_31005D55: 5799 MEM32(edi) = edx; /* 0x31005D55: mov dword ptr [edi], edx */ 5800 goto L_31005D5C; /* 0x31005D57: jmp 0x31005d5c */ 5801 L_31005D59: 5802 MEM32(edi + 0x8) = edx; /* 0x31005D59: mov dword ptr [edi + 8], edx */ 5803 L_31005D5C: 5804 MEM32(edx) = ecx; /* 0x31005D5C: mov dword ptr [edx], ecx */ 5805 L_31005D5E: 5806 MEM32(ecx + 0x4) = edx; /* 0x31005D5E: mov dword ptr [ecx + 4], edx */ 5807 L_31005D61: 5808 ecx = MEM32(esi + 0x4); /* 0x31005D61: mov ecx, dword ptr [esi + 4] */ 5809 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x31005D64: cmp eax, dword ptr [ecx + 4] */ 5810 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 5811 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5812 _flag_k = FK_CMP; 5813 RECOMP_BACKEDGE(); 5814 if (CMP_NE(_flag_a, _flag_b)) goto L_31005BED; /* 0x31005D67: jne 0x31005bed */ 5815 L_31005D6D: 5816 edx = MEM32(esi + 0x4); /* 0x31005D6D: mov edx, dword ptr [esi + 4] */ 5817 eax = MEM32(edx + 0x4); /* 0x31005D70: mov eax, dword ptr [edx + 4] */ 5818 ecx = MEM32(ebp + (-0x4)); /* 0x31005D73: mov ecx, dword ptr [ebp - 4] */ 5819 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005D76: mov byte ptr [eax + 0x14], bl */ 5820 eax = MEM32(ebp + 0x8); /* 0x31005D79: mov eax, dword ptr [ebp + 8] */ 5821 edi = POP32_VAL(esp); /* 0x31005D7C: pop edi */ 5822 esi = POP32_VAL(esp); /* 0x31005D7D: pop esi */ 5823 MEM32(eax) = ecx; /* 0x31005D7E: mov dword ptr [eax], ecx */ 5824 ebx = POP32_VAL(esp); /* 0x31005D80: pop ebx */ 5825 esp = ebp; /* 0x31005D81: mov esp, ebp */ 5826 ebp = POP32_VAL(esp); /* 0x31005D83: pop ebp */ 5827 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x31005D84: ret 0x10 */ 5828 RECOMP_REGS_OUT(); 5829 } 5830 5831 void sub_31005D5E(void) { 5832 int _fpu_cmp = 0; 5833 uint32_t _cf = 0; 5834 int _df = 1; 5835 uint32_t _flag_k = FK_NONE; 5836 uint32_t _flag_a = 0, _flag_b = 0; 5837 uint32_t _itail_tgt = 0; 5838 RECOMP_REGS_LOCALS 5839 RECOMP_ENTER(0x31005D5Eu); 5840 5841 goto L_31005D5E; 5842 L_31005BED: 5843 ecx = MEM32(eax + 0x4); /* 0x31005BED: mov ecx, dword ptr [eax + 4] */ 5844 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x31005BF0: mov dl, byte ptr [ecx + 0x14] */ 5845 /* test LO8(edx), LO8(edx) */ /* 0x31005BF3: test dl, dl */ 5846 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5847 _cf = 0; 5848 _flag_k = FK_NARROW(FK_TEST, 24); 5849 if (TEST_NZ(_flag_a, _flag_b)) goto L_31005D6D; /* 0x31005BF5: jne 0x31005d6d */ 5850 L_31005BFB: 5851 edi = MEM32(ecx + 0x4); /* 0x31005BFB: mov edi, dword ptr [ecx + 4] */ 5852 edx = MEM32(edi); /* 0x31005BFE: mov edx, dword ptr [edi] */ 5853 /* cmp ecx, edx */ /* 0x31005C00: cmp ecx, edx */ 5854 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 5855 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5856 _flag_k = FK_CMP; 5857 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CC9; /* 0x31005C02: jne 0x31005cc9 */ 5858 L_31005C08: 5859 edx = MEM32(edi + 0x8); /* 0x31005C08: mov edx, dword ptr [edi + 8] */ 5860 /* cmp MEM8(edx + 0x14), 0 */ /* 0x31005C0B: cmp byte ptr [edx + 0x14], 0 */ 5861 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 5862 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5863 _flag_k = FK_NARROW(FK_CMP, 24); 5864 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C2C; /* 0x31005C0F: jne 0x31005c2c */ 5865 L_31005C11: 5866 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C11: mov byte ptr [ecx + 0x14], bl */ 5867 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C14: mov byte ptr [edx + 0x14], bl */ 5868 ecx = MEM32(eax + 0x4); /* 0x31005C17: mov ecx, dword ptr [eax + 4] */ 5869 edx = MEM32(ecx + 0x4); /* 0x31005C1A: mov edx, dword ptr [ecx + 4] */ 5870 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x31005C1D: mov byte ptr [edx + 0x14], 0 */ 5871 eax = MEM32(eax + 0x4); /* 0x31005C21: mov eax, dword ptr [eax + 4] */ 5872 eax = MEM32(eax + 0x4); /* 0x31005C24: mov eax, dword ptr [eax + 4] */ 5873 goto L_31005D61; /* 0x31005C27: jmp 0x31005d61 */ 5874 L_31005C2C: 5875 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x31005C2C: cmp eax, dword ptr [ecx + 8] */ 5876 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 5877 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5878 _flag_k = FK_CMP; 5879 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C6B; /* 0x31005C2F: jne 0x31005c6b */ 5880 L_31005C31: 5881 eax = ecx; /* 0x31005C31: mov eax, ecx */ 5882 ecx = MEM32(eax + 0x8); /* 0x31005C33: mov ecx, dword ptr [eax + 8] */ 5883 edx = MEM32(ecx); /* 0x31005C36: mov edx, dword ptr [ecx] */ 5884 MEM32(eax + 0x8) = edx; /* 0x31005C38: mov dword ptr [eax + 8], edx */ 5885 edx = MEM32(ecx); /* 0x31005C3B: mov edx, dword ptr [ecx] */ 5886 /* cmp edx, MEM32(esi + 0x8) */ /* 0x31005C3D: cmp edx, dword ptr [esi + 8] */ 5887 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5888 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5889 _flag_k = FK_CMP; 5890 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C45; /* 0x31005C40: je 0x31005c45 */ 5891 L_31005C42: 5892 MEM32(edx + 0x4) = eax; /* 0x31005C42: mov dword ptr [edx + 4], eax */ 5893 L_31005C45: 5894 edx = MEM32(eax + 0x4); /* 0x31005C45: mov edx, dword ptr [eax + 4] */ 5895 MEM32(ecx + 0x4) = edx; /* 0x31005C48: mov dword ptr [ecx + 4], edx */ 5896 edx = MEM32(esi + 0x4); /* 0x31005C4B: mov edx, dword ptr [esi + 4] */ 5897 /* cmp eax, MEM32(edx + 0x4) */ /* 0x31005C4E: cmp eax, dword ptr [edx + 4] */ 5898 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 5899 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5900 _flag_k = FK_CMP; 5901 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C58; /* 0x31005C51: jne 0x31005c58 */ 5902 L_31005C53: 5903 MEM32(edx + 0x4) = ecx; /* 0x31005C53: mov dword ptr [edx + 4], ecx */ 5904 goto L_31005C66; /* 0x31005C56: jmp 0x31005c66 */ 5905 L_31005C58: 5906 edx = MEM32(eax + 0x4); /* 0x31005C58: mov edx, dword ptr [eax + 4] */ 5907 /* cmp eax, MEM32(edx) */ /* 0x31005C5B: cmp eax, dword ptr [edx] */ 5908 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 5909 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5910 _flag_k = FK_CMP; 5911 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C63; /* 0x31005C5D: jne 0x31005c63 */ 5912 L_31005C5F: 5913 MEM32(edx) = ecx; /* 0x31005C5F: mov dword ptr [edx], ecx */ 5914 goto L_31005C66; /* 0x31005C61: jmp 0x31005c66 */ 5915 L_31005C63: 5916 MEM32(edx + 0x8) = ecx; /* 0x31005C63: mov dword ptr [edx + 8], ecx */ 5917 L_31005C66: 5918 MEM32(ecx) = eax; /* 0x31005C66: mov dword ptr [ecx], eax */ 5919 MEM32(eax + 0x4) = ecx; /* 0x31005C68: mov dword ptr [eax + 4], ecx */ 5920 L_31005C6B: 5921 ecx = MEM32(eax + 0x4); /* 0x31005C6B: mov ecx, dword ptr [eax + 4] */ 5922 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C6E: mov byte ptr [ecx + 0x14], bl */ 5923 edx = MEM32(eax + 0x4); /* 0x31005C71: mov edx, dword ptr [eax + 4] */ 5924 ecx = MEM32(edx + 0x4); /* 0x31005C74: mov ecx, dword ptr [edx + 4] */ 5925 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x31005C77: mov byte ptr [ecx + 0x14], 0 */ 5926 edx = MEM32(eax + 0x4); /* 0x31005C7B: mov edx, dword ptr [eax + 4] */ 5927 ecx = MEM32(edx + 0x4); /* 0x31005C7E: mov ecx, dword ptr [edx + 4] */ 5928 edx = MEM32(ecx); /* 0x31005C81: mov edx, dword ptr [ecx] */ 5929 edi = MEM32(edx + 0x8); /* 0x31005C83: mov edi, dword ptr [edx + 8] */ 5930 MEM32(ecx) = edi; /* 0x31005C86: mov dword ptr [ecx], edi */ 5931 edi = MEM32(edx + 0x8); /* 0x31005C88: mov edi, dword ptr [edx + 8] */ 5932 /* cmp edi, MEM32(esi + 0x8) */ /* 0x31005C8B: cmp edi, dword ptr [esi + 8] */ 5933 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5934 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5935 _flag_k = FK_CMP; 5936 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C93; /* 0x31005C8E: je 0x31005c93 */ 5937 L_31005C90: 5938 MEM32(edi + 0x4) = ecx; /* 0x31005C90: mov dword ptr [edi + 4], ecx */ 5939 L_31005C93: 5940 edi = MEM32(ecx + 0x4); /* 0x31005C93: mov edi, dword ptr [ecx + 4] */ 5941 MEM32(edx + 0x4) = edi; /* 0x31005C96: mov dword ptr [edx + 4], edi */ 5942 edi = MEM32(esi + 0x4); /* 0x31005C99: mov edi, dword ptr [esi + 4] */ 5943 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x31005C9C: cmp ecx, dword ptr [edi + 4] */ 5944 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 5945 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5946 _flag_k = FK_CMP; 5947 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CAC; /* 0x31005C9F: jne 0x31005cac */ 5948 L_31005CA1: 5949 MEM32(edi + 0x4) = edx; /* 0x31005CA1: mov dword ptr [edi + 4], edx */ 5950 MEM32(edx + 0x8) = ecx; /* 0x31005CA4: mov dword ptr [edx + 8], ecx */ 5951 goto L_31005D5E; /* 0x31005CA7: jmp 0x31005d5e */ 5952 L_31005CAC: 5953 edi = MEM32(ecx + 0x4); /* 0x31005CAC: mov edi, dword ptr [ecx + 4] */ 5954 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x31005CAF: cmp ecx, dword ptr [edi + 8] */ 5955 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5956 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5957 _flag_k = FK_CMP; 5958 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CBF; /* 0x31005CB2: jne 0x31005cbf */ 5959 L_31005CB4: 5960 MEM32(edi + 0x8) = edx; /* 0x31005CB4: mov dword ptr [edi + 8], edx */ 5961 MEM32(edx + 0x8) = ecx; /* 0x31005CB7: mov dword ptr [edx + 8], ecx */ 5962 goto L_31005D5E; /* 0x31005CBA: jmp 0x31005d5e */ 5963 L_31005CBF: 5964 MEM32(edi) = edx; /* 0x31005CBF: mov dword ptr [edi], edx */ 5965 MEM32(edx + 0x8) = ecx; /* 0x31005CC1: mov dword ptr [edx + 8], ecx */ 5966 goto L_31005D5E; /* 0x31005CC4: jmp 0x31005d5e */ 5967 L_31005CC9: 5968 /* cmp MEM8(edx + 0x14), 0 */ /* 0x31005CC9: cmp byte ptr [edx + 0x14], 0 */ 5969 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 5970 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5971 _flag_k = FK_NARROW(FK_CMP, 24); 5972 RECOMP_BACKEDGE(); 5973 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C11; /* 0x31005CCD: je 0x31005c11 */ 5974 L_31005CD3: 5975 /* cmp eax, MEM32(ecx) */ /* 0x31005CD3: cmp eax, dword ptr [ecx] */ 5976 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 5977 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5978 _flag_k = FK_CMP; 5979 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D13; /* 0x31005CD5: jne 0x31005d13 */ 5980 L_31005CD7: 5981 eax = ecx; /* 0x31005CD7: mov eax, ecx */ 5982 ecx = MEM32(eax); /* 0x31005CD9: mov ecx, dword ptr [eax] */ 5983 edx = MEM32(ecx + 0x8); /* 0x31005CDB: mov edx, dword ptr [ecx + 8] */ 5984 MEM32(eax) = edx; /* 0x31005CDE: mov dword ptr [eax], edx */ 5985 edx = MEM32(ecx + 0x8); /* 0x31005CE0: mov edx, dword ptr [ecx + 8] */ 5986 /* cmp edx, MEM32(esi + 0x8) */ /* 0x31005CE3: cmp edx, dword ptr [esi + 8] */ 5987 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5988 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5989 _flag_k = FK_CMP; 5990 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005CEB; /* 0x31005CE6: je 0x31005ceb */ 5991 L_31005CE8: 5992 MEM32(edx + 0x4) = eax; /* 0x31005CE8: mov dword ptr [edx + 4], eax */ 5993 L_31005CEB: 5994 edx = MEM32(eax + 0x4); /* 0x31005CEB: mov edx, dword ptr [eax + 4] */ 5995 MEM32(ecx + 0x4) = edx; /* 0x31005CEE: mov dword ptr [ecx + 4], edx */ 5996 edx = MEM32(esi + 0x4); /* 0x31005CF1: mov edx, dword ptr [esi + 4] */ 5997 /* cmp eax, MEM32(edx + 0x4) */ /* 0x31005CF4: cmp eax, dword ptr [edx + 4] */ 5998 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 5999 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6000 _flag_k = FK_CMP; 6001 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CFE; /* 0x31005CF7: jne 0x31005cfe */ 6002 L_31005CF9: 6003 MEM32(edx + 0x4) = ecx; /* 0x31005CF9: mov dword ptr [edx + 4], ecx */ 6004 goto L_31005D0D; /* 0x31005CFC: jmp 0x31005d0d */ 6005 L_31005CFE: 6006 edx = MEM32(eax + 0x4); /* 0x31005CFE: mov edx, dword ptr [eax + 4] */ 6007 /* cmp eax, MEM32(edx + 0x8) */ /* 0x31005D01: cmp eax, dword ptr [edx + 8] */ 6008 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 6009 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6010 _flag_k = FK_CMP; 6011 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D0B; /* 0x31005D04: jne 0x31005d0b */ 6012 L_31005D06: 6013 MEM32(edx + 0x8) = ecx; /* 0x31005D06: mov dword ptr [edx + 8], ecx */ 6014 goto L_31005D0D; /* 0x31005D09: jmp 0x31005d0d */ 6015 L_31005D0B: 6016 MEM32(edx) = ecx; /* 0x31005D0B: mov dword ptr [edx], ecx */ 6017 L_31005D0D: 6018 MEM32(ecx + 0x8) = eax; /* 0x31005D0D: mov dword ptr [ecx + 8], eax */ 6019 MEM32(eax + 0x4) = ecx; /* 0x31005D10: mov dword ptr [eax + 4], ecx */ 6020 L_31005D13: 6021 ecx = MEM32(eax + 0x4); /* 0x31005D13: mov ecx, dword ptr [eax + 4] */ 6022 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005D16: mov byte ptr [ecx + 0x14], bl */ 6023 edx = MEM32(eax + 0x4); /* 0x31005D19: mov edx, dword ptr [eax + 4] */ 6024 ecx = MEM32(edx + 0x4); /* 0x31005D1C: mov ecx, dword ptr [edx + 4] */ 6025 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x31005D1F: mov byte ptr [ecx + 0x14], 0 */ 6026 edx = MEM32(eax + 0x4); /* 0x31005D23: mov edx, dword ptr [eax + 4] */ 6027 ecx = MEM32(edx + 0x4); /* 0x31005D26: mov ecx, dword ptr [edx + 4] */ 6028 edx = MEM32(ecx + 0x8); /* 0x31005D29: mov edx, dword ptr [ecx + 8] */ 6029 edi = MEM32(edx); /* 0x31005D2C: mov edi, dword ptr [edx] */ 6030 MEM32(ecx + 0x8) = edi; /* 0x31005D2E: mov dword ptr [ecx + 8], edi */ 6031 edi = MEM32(edx); /* 0x31005D31: mov edi, dword ptr [edx] */ 6032 /* cmp edi, MEM32(esi + 0x8) */ /* 0x31005D33: cmp edi, dword ptr [esi + 8] */ 6033 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6034 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6035 _flag_k = FK_CMP; 6036 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005D3B; /* 0x31005D36: je 0x31005d3b */ 6037 L_31005D38: 6038 MEM32(edi + 0x4) = ecx; /* 0x31005D38: mov dword ptr [edi + 4], ecx */ 6039 L_31005D3B: 6040 edi = MEM32(ecx + 0x4); /* 0x31005D3B: mov edi, dword ptr [ecx + 4] */ 6041 MEM32(edx + 0x4) = edi; /* 0x31005D3E: mov dword ptr [edx + 4], edi */ 6042 edi = MEM32(esi + 0x4); /* 0x31005D41: mov edi, dword ptr [esi + 4] */ 6043 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x31005D44: cmp ecx, dword ptr [edi + 4] */ 6044 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 6045 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6046 _flag_k = FK_CMP; 6047 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D4E; /* 0x31005D47: jne 0x31005d4e */ 6048 L_31005D49: 6049 MEM32(edi + 0x4) = edx; /* 0x31005D49: mov dword ptr [edi + 4], edx */ 6050 goto L_31005D5C; /* 0x31005D4C: jmp 0x31005d5c */ 6051 L_31005D4E: 6052 edi = MEM32(ecx + 0x4); /* 0x31005D4E: mov edi, dword ptr [ecx + 4] */ 6053 /* cmp ecx, MEM32(edi) */ /* 0x31005D51: cmp ecx, dword ptr [edi] */ 6054 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 6055 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6056 _flag_k = FK_CMP; 6057 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D59; /* 0x31005D53: jne 0x31005d59 */ 6058 L_31005D55: 6059 MEM32(edi) = edx; /* 0x31005D55: mov dword ptr [edi], edx */ 6060 goto L_31005D5C; /* 0x31005D57: jmp 0x31005d5c */ 6061 L_31005D59: 6062 MEM32(edi + 0x8) = edx; /* 0x31005D59: mov dword ptr [edi + 8], edx */ 6063 L_31005D5C: 6064 MEM32(edx) = ecx; /* 0x31005D5C: mov dword ptr [edx], ecx */ 6065 L_31005D5E: 6066 MEM32(ecx + 0x4) = edx; /* 0x31005D5E: mov dword ptr [ecx + 4], edx */ 6067 L_31005D61: 6068 ecx = MEM32(esi + 0x4); /* 0x31005D61: mov ecx, dword ptr [esi + 4] */ 6069 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x31005D64: cmp eax, dword ptr [ecx + 4] */ 6070 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 6071 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6072 _flag_k = FK_CMP; 6073 RECOMP_BACKEDGE(); 6074 if (CMP_NE(_flag_a, _flag_b)) goto L_31005BED; /* 0x31005D67: jne 0x31005bed */ 6075 L_31005D6D: 6076 edx = MEM32(esi + 0x4); /* 0x31005D6D: mov edx, dword ptr [esi + 4] */ 6077 eax = MEM32(edx + 0x4); /* 0x31005D70: mov eax, dword ptr [edx + 4] */ 6078 ecx = MEM32(ebp + (-0x4)); /* 0x31005D73: mov ecx, dword ptr [ebp - 4] */ 6079 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005D76: mov byte ptr [eax + 0x14], bl */ 6080 eax = MEM32(ebp + 0x8); /* 0x31005D79: mov eax, dword ptr [ebp + 8] */ 6081 edi = POP32_VAL(esp); /* 0x31005D7C: pop edi */ 6082 esi = POP32_VAL(esp); /* 0x31005D7D: pop esi */ 6083 MEM32(eax) = ecx; /* 0x31005D7E: mov dword ptr [eax], ecx */ 6084 ebx = POP32_VAL(esp); /* 0x31005D80: pop ebx */ 6085 esp = ebp; /* 0x31005D81: mov esp, ebp */ 6086 ebp = POP32_VAL(esp); /* 0x31005D83: pop ebp */ 6087 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x31005D84: ret 0x10 */ 6088 RECOMP_REGS_OUT(); 6089 } 6090 6091 void sub_31005D61(void) { 6092 int _fpu_cmp = 0; 6093 uint32_t _cf = 0; 6094 int _df = 1; 6095 uint32_t _flag_k = FK_NONE; 6096 uint32_t _flag_a = 0, _flag_b = 0; 6097 uint32_t _itail_tgt = 0; 6098 RECOMP_REGS_LOCALS 6099 RECOMP_ENTER(0x31005D61u); 6100 6101 goto L_31005D61; 6102 L_31005BED: 6103 ecx = MEM32(eax + 0x4); /* 0x31005BED: mov ecx, dword ptr [eax + 4] */ 6104 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x31005BF0: mov dl, byte ptr [ecx + 0x14] */ 6105 /* test LO8(edx), LO8(edx) */ /* 0x31005BF3: test dl, dl */ 6106 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6107 _cf = 0; 6108 _flag_k = FK_NARROW(FK_TEST, 24); 6109 if (TEST_NZ(_flag_a, _flag_b)) goto L_31005D6D; /* 0x31005BF5: jne 0x31005d6d */ 6110 L_31005BFB: 6111 edi = MEM32(ecx + 0x4); /* 0x31005BFB: mov edi, dword ptr [ecx + 4] */ 6112 edx = MEM32(edi); /* 0x31005BFE: mov edx, dword ptr [edi] */ 6113 /* cmp ecx, edx */ /* 0x31005C00: cmp ecx, edx */ 6114 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 6115 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6116 _flag_k = FK_CMP; 6117 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CC9; /* 0x31005C02: jne 0x31005cc9 */ 6118 L_31005C08: 6119 edx = MEM32(edi + 0x8); /* 0x31005C08: mov edx, dword ptr [edi + 8] */ 6120 /* cmp MEM8(edx + 0x14), 0 */ /* 0x31005C0B: cmp byte ptr [edx + 0x14], 0 */ 6121 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 6122 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6123 _flag_k = FK_NARROW(FK_CMP, 24); 6124 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C2C; /* 0x31005C0F: jne 0x31005c2c */ 6125 L_31005C11: 6126 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C11: mov byte ptr [ecx + 0x14], bl */ 6127 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C14: mov byte ptr [edx + 0x14], bl */ 6128 ecx = MEM32(eax + 0x4); /* 0x31005C17: mov ecx, dword ptr [eax + 4] */ 6129 edx = MEM32(ecx + 0x4); /* 0x31005C1A: mov edx, dword ptr [ecx + 4] */ 6130 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x31005C1D: mov byte ptr [edx + 0x14], 0 */ 6131 eax = MEM32(eax + 0x4); /* 0x31005C21: mov eax, dword ptr [eax + 4] */ 6132 eax = MEM32(eax + 0x4); /* 0x31005C24: mov eax, dword ptr [eax + 4] */ 6133 goto L_31005D61; /* 0x31005C27: jmp 0x31005d61 */ 6134 L_31005C2C: 6135 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x31005C2C: cmp eax, dword ptr [ecx + 8] */ 6136 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 6137 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6138 _flag_k = FK_CMP; 6139 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C6B; /* 0x31005C2F: jne 0x31005c6b */ 6140 L_31005C31: 6141 eax = ecx; /* 0x31005C31: mov eax, ecx */ 6142 ecx = MEM32(eax + 0x8); /* 0x31005C33: mov ecx, dword ptr [eax + 8] */ 6143 edx = MEM32(ecx); /* 0x31005C36: mov edx, dword ptr [ecx] */ 6144 MEM32(eax + 0x8) = edx; /* 0x31005C38: mov dword ptr [eax + 8], edx */ 6145 edx = MEM32(ecx); /* 0x31005C3B: mov edx, dword ptr [ecx] */ 6146 /* cmp edx, MEM32(esi + 0x8) */ /* 0x31005C3D: cmp edx, dword ptr [esi + 8] */ 6147 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6148 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6149 _flag_k = FK_CMP; 6150 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C45; /* 0x31005C40: je 0x31005c45 */ 6151 L_31005C42: 6152 MEM32(edx + 0x4) = eax; /* 0x31005C42: mov dword ptr [edx + 4], eax */ 6153 L_31005C45: 6154 edx = MEM32(eax + 0x4); /* 0x31005C45: mov edx, dword ptr [eax + 4] */ 6155 MEM32(ecx + 0x4) = edx; /* 0x31005C48: mov dword ptr [ecx + 4], edx */ 6156 edx = MEM32(esi + 0x4); /* 0x31005C4B: mov edx, dword ptr [esi + 4] */ 6157 /* cmp eax, MEM32(edx + 0x4) */ /* 0x31005C4E: cmp eax, dword ptr [edx + 4] */ 6158 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 6159 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6160 _flag_k = FK_CMP; 6161 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C58; /* 0x31005C51: jne 0x31005c58 */ 6162 L_31005C53: 6163 MEM32(edx + 0x4) = ecx; /* 0x31005C53: mov dword ptr [edx + 4], ecx */ 6164 goto L_31005C66; /* 0x31005C56: jmp 0x31005c66 */ 6165 L_31005C58: 6166 edx = MEM32(eax + 0x4); /* 0x31005C58: mov edx, dword ptr [eax + 4] */ 6167 /* cmp eax, MEM32(edx) */ /* 0x31005C5B: cmp eax, dword ptr [edx] */ 6168 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 6169 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6170 _flag_k = FK_CMP; 6171 if (CMP_NE(_flag_a, _flag_b)) goto L_31005C63; /* 0x31005C5D: jne 0x31005c63 */ 6172 L_31005C5F: 6173 MEM32(edx) = ecx; /* 0x31005C5F: mov dword ptr [edx], ecx */ 6174 goto L_31005C66; /* 0x31005C61: jmp 0x31005c66 */ 6175 L_31005C63: 6176 MEM32(edx + 0x8) = ecx; /* 0x31005C63: mov dword ptr [edx + 8], ecx */ 6177 L_31005C66: 6178 MEM32(ecx) = eax; /* 0x31005C66: mov dword ptr [ecx], eax */ 6179 MEM32(eax + 0x4) = ecx; /* 0x31005C68: mov dword ptr [eax + 4], ecx */ 6180 L_31005C6B: 6181 ecx = MEM32(eax + 0x4); /* 0x31005C6B: mov ecx, dword ptr [eax + 4] */ 6182 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005C6E: mov byte ptr [ecx + 0x14], bl */ 6183 edx = MEM32(eax + 0x4); /* 0x31005C71: mov edx, dword ptr [eax + 4] */ 6184 ecx = MEM32(edx + 0x4); /* 0x31005C74: mov ecx, dword ptr [edx + 4] */ 6185 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x31005C77: mov byte ptr [ecx + 0x14], 0 */ 6186 edx = MEM32(eax + 0x4); /* 0x31005C7B: mov edx, dword ptr [eax + 4] */ 6187 ecx = MEM32(edx + 0x4); /* 0x31005C7E: mov ecx, dword ptr [edx + 4] */ 6188 edx = MEM32(ecx); /* 0x31005C81: mov edx, dword ptr [ecx] */ 6189 edi = MEM32(edx + 0x8); /* 0x31005C83: mov edi, dword ptr [edx + 8] */ 6190 MEM32(ecx) = edi; /* 0x31005C86: mov dword ptr [ecx], edi */ 6191 edi = MEM32(edx + 0x8); /* 0x31005C88: mov edi, dword ptr [edx + 8] */ 6192 /* cmp edi, MEM32(esi + 0x8) */ /* 0x31005C8B: cmp edi, dword ptr [esi + 8] */ 6193 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6194 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6195 _flag_k = FK_CMP; 6196 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C93; /* 0x31005C8E: je 0x31005c93 */ 6197 L_31005C90: 6198 MEM32(edi + 0x4) = ecx; /* 0x31005C90: mov dword ptr [edi + 4], ecx */ 6199 L_31005C93: 6200 edi = MEM32(ecx + 0x4); /* 0x31005C93: mov edi, dword ptr [ecx + 4] */ 6201 MEM32(edx + 0x4) = edi; /* 0x31005C96: mov dword ptr [edx + 4], edi */ 6202 edi = MEM32(esi + 0x4); /* 0x31005C99: mov edi, dword ptr [esi + 4] */ 6203 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x31005C9C: cmp ecx, dword ptr [edi + 4] */ 6204 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 6205 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6206 _flag_k = FK_CMP; 6207 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CAC; /* 0x31005C9F: jne 0x31005cac */ 6208 L_31005CA1: 6209 MEM32(edi + 0x4) = edx; /* 0x31005CA1: mov dword ptr [edi + 4], edx */ 6210 MEM32(edx + 0x8) = ecx; /* 0x31005CA4: mov dword ptr [edx + 8], ecx */ 6211 goto L_31005D5E; /* 0x31005CA7: jmp 0x31005d5e */ 6212 L_31005CAC: 6213 edi = MEM32(ecx + 0x4); /* 0x31005CAC: mov edi, dword ptr [ecx + 4] */ 6214 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x31005CAF: cmp ecx, dword ptr [edi + 8] */ 6215 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6216 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6217 _flag_k = FK_CMP; 6218 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CBF; /* 0x31005CB2: jne 0x31005cbf */ 6219 L_31005CB4: 6220 MEM32(edi + 0x8) = edx; /* 0x31005CB4: mov dword ptr [edi + 8], edx */ 6221 MEM32(edx + 0x8) = ecx; /* 0x31005CB7: mov dword ptr [edx + 8], ecx */ 6222 goto L_31005D5E; /* 0x31005CBA: jmp 0x31005d5e */ 6223 L_31005CBF: 6224 MEM32(edi) = edx; /* 0x31005CBF: mov dword ptr [edi], edx */ 6225 MEM32(edx + 0x8) = ecx; /* 0x31005CC1: mov dword ptr [edx + 8], ecx */ 6226 goto L_31005D5E; /* 0x31005CC4: jmp 0x31005d5e */ 6227 L_31005CC9: 6228 /* cmp MEM8(edx + 0x14), 0 */ /* 0x31005CC9: cmp byte ptr [edx + 0x14], 0 */ 6229 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 6230 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6231 _flag_k = FK_NARROW(FK_CMP, 24); 6232 RECOMP_BACKEDGE(); 6233 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005C11; /* 0x31005CCD: je 0x31005c11 */ 6234 L_31005CD3: 6235 /* cmp eax, MEM32(ecx) */ /* 0x31005CD3: cmp eax, dword ptr [ecx] */ 6236 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 6237 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6238 _flag_k = FK_CMP; 6239 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D13; /* 0x31005CD5: jne 0x31005d13 */ 6240 L_31005CD7: 6241 eax = ecx; /* 0x31005CD7: mov eax, ecx */ 6242 ecx = MEM32(eax); /* 0x31005CD9: mov ecx, dword ptr [eax] */ 6243 edx = MEM32(ecx + 0x8); /* 0x31005CDB: mov edx, dword ptr [ecx + 8] */ 6244 MEM32(eax) = edx; /* 0x31005CDE: mov dword ptr [eax], edx */ 6245 edx = MEM32(ecx + 0x8); /* 0x31005CE0: mov edx, dword ptr [ecx + 8] */ 6246 /* cmp edx, MEM32(esi + 0x8) */ /* 0x31005CE3: cmp edx, dword ptr [esi + 8] */ 6247 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6248 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6249 _flag_k = FK_CMP; 6250 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005CEB; /* 0x31005CE6: je 0x31005ceb */ 6251 L_31005CE8: 6252 MEM32(edx + 0x4) = eax; /* 0x31005CE8: mov dword ptr [edx + 4], eax */ 6253 L_31005CEB: 6254 edx = MEM32(eax + 0x4); /* 0x31005CEB: mov edx, dword ptr [eax + 4] */ 6255 MEM32(ecx + 0x4) = edx; /* 0x31005CEE: mov dword ptr [ecx + 4], edx */ 6256 edx = MEM32(esi + 0x4); /* 0x31005CF1: mov edx, dword ptr [esi + 4] */ 6257 /* cmp eax, MEM32(edx + 0x4) */ /* 0x31005CF4: cmp eax, dword ptr [edx + 4] */ 6258 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 6259 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6260 _flag_k = FK_CMP; 6261 if (CMP_NE(_flag_a, _flag_b)) goto L_31005CFE; /* 0x31005CF7: jne 0x31005cfe */ 6262 L_31005CF9: 6263 MEM32(edx + 0x4) = ecx; /* 0x31005CF9: mov dword ptr [edx + 4], ecx */ 6264 goto L_31005D0D; /* 0x31005CFC: jmp 0x31005d0d */ 6265 L_31005CFE: 6266 edx = MEM32(eax + 0x4); /* 0x31005CFE: mov edx, dword ptr [eax + 4] */ 6267 /* cmp eax, MEM32(edx + 0x8) */ /* 0x31005D01: cmp eax, dword ptr [edx + 8] */ 6268 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 6269 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6270 _flag_k = FK_CMP; 6271 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D0B; /* 0x31005D04: jne 0x31005d0b */ 6272 L_31005D06: 6273 MEM32(edx + 0x8) = ecx; /* 0x31005D06: mov dword ptr [edx + 8], ecx */ 6274 goto L_31005D0D; /* 0x31005D09: jmp 0x31005d0d */ 6275 L_31005D0B: 6276 MEM32(edx) = ecx; /* 0x31005D0B: mov dword ptr [edx], ecx */ 6277 L_31005D0D: 6278 MEM32(ecx + 0x8) = eax; /* 0x31005D0D: mov dword ptr [ecx + 8], eax */ 6279 MEM32(eax + 0x4) = ecx; /* 0x31005D10: mov dword ptr [eax + 4], ecx */ 6280 L_31005D13: 6281 ecx = MEM32(eax + 0x4); /* 0x31005D13: mov ecx, dword ptr [eax + 4] */ 6282 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005D16: mov byte ptr [ecx + 0x14], bl */ 6283 edx = MEM32(eax + 0x4); /* 0x31005D19: mov edx, dword ptr [eax + 4] */ 6284 ecx = MEM32(edx + 0x4); /* 0x31005D1C: mov ecx, dword ptr [edx + 4] */ 6285 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x31005D1F: mov byte ptr [ecx + 0x14], 0 */ 6286 edx = MEM32(eax + 0x4); /* 0x31005D23: mov edx, dword ptr [eax + 4] */ 6287 ecx = MEM32(edx + 0x4); /* 0x31005D26: mov ecx, dword ptr [edx + 4] */ 6288 edx = MEM32(ecx + 0x8); /* 0x31005D29: mov edx, dword ptr [ecx + 8] */ 6289 edi = MEM32(edx); /* 0x31005D2C: mov edi, dword ptr [edx] */ 6290 MEM32(ecx + 0x8) = edi; /* 0x31005D2E: mov dword ptr [ecx + 8], edi */ 6291 edi = MEM32(edx); /* 0x31005D31: mov edi, dword ptr [edx] */ 6292 /* cmp edi, MEM32(esi + 0x8) */ /* 0x31005D33: cmp edi, dword ptr [esi + 8] */ 6293 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6294 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6295 _flag_k = FK_CMP; 6296 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005D3B; /* 0x31005D36: je 0x31005d3b */ 6297 L_31005D38: 6298 MEM32(edi + 0x4) = ecx; /* 0x31005D38: mov dword ptr [edi + 4], ecx */ 6299 L_31005D3B: 6300 edi = MEM32(ecx + 0x4); /* 0x31005D3B: mov edi, dword ptr [ecx + 4] */ 6301 MEM32(edx + 0x4) = edi; /* 0x31005D3E: mov dword ptr [edx + 4], edi */ 6302 edi = MEM32(esi + 0x4); /* 0x31005D41: mov edi, dword ptr [esi + 4] */ 6303 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x31005D44: cmp ecx, dword ptr [edi + 4] */ 6304 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 6305 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6306 _flag_k = FK_CMP; 6307 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D4E; /* 0x31005D47: jne 0x31005d4e */ 6308 L_31005D49: 6309 MEM32(edi + 0x4) = edx; /* 0x31005D49: mov dword ptr [edi + 4], edx */ 6310 goto L_31005D5C; /* 0x31005D4C: jmp 0x31005d5c */ 6311 L_31005D4E: 6312 edi = MEM32(ecx + 0x4); /* 0x31005D4E: mov edi, dword ptr [ecx + 4] */ 6313 /* cmp ecx, MEM32(edi) */ /* 0x31005D51: cmp ecx, dword ptr [edi] */ 6314 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 6315 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6316 _flag_k = FK_CMP; 6317 if (CMP_NE(_flag_a, _flag_b)) goto L_31005D59; /* 0x31005D53: jne 0x31005d59 */ 6318 L_31005D55: 6319 MEM32(edi) = edx; /* 0x31005D55: mov dword ptr [edi], edx */ 6320 goto L_31005D5C; /* 0x31005D57: jmp 0x31005d5c */ 6321 L_31005D59: 6322 MEM32(edi + 0x8) = edx; /* 0x31005D59: mov dword ptr [edi + 8], edx */ 6323 L_31005D5C: 6324 MEM32(edx) = ecx; /* 0x31005D5C: mov dword ptr [edx], ecx */ 6325 L_31005D5E: 6326 MEM32(ecx + 0x4) = edx; /* 0x31005D5E: mov dword ptr [ecx + 4], edx */ 6327 L_31005D61: 6328 ecx = MEM32(esi + 0x4); /* 0x31005D61: mov ecx, dword ptr [esi + 4] */ 6329 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x31005D64: cmp eax, dword ptr [ecx + 4] */ 6330 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 6331 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6332 _flag_k = FK_CMP; 6333 RECOMP_BACKEDGE(); 6334 if (CMP_NE(_flag_a, _flag_b)) goto L_31005BED; /* 0x31005D67: jne 0x31005bed */ 6335 L_31005D6D: 6336 edx = MEM32(esi + 0x4); /* 0x31005D6D: mov edx, dword ptr [esi + 4] */ 6337 eax = MEM32(edx + 0x4); /* 0x31005D70: mov eax, dword ptr [edx + 4] */ 6338 ecx = MEM32(ebp + (-0x4)); /* 0x31005D73: mov ecx, dword ptr [ebp - 4] */ 6339 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005D76: mov byte ptr [eax + 0x14], bl */ 6340 eax = MEM32(ebp + 0x8); /* 0x31005D79: mov eax, dword ptr [ebp + 8] */ 6341 edi = POP32_VAL(esp); /* 0x31005D7C: pop edi */ 6342 esi = POP32_VAL(esp); /* 0x31005D7D: pop esi */ 6343 MEM32(eax) = ecx; /* 0x31005D7E: mov dword ptr [eax], ecx */ 6344 ebx = POP32_VAL(esp); /* 0x31005D80: pop ebx */ 6345 esp = ebp; /* 0x31005D81: mov esp, ebp */ 6346 ebp = POP32_VAL(esp); /* 0x31005D83: pop ebp */ 6347 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x31005D84: ret 0x10 */ 6348 RECOMP_REGS_OUT(); 6349 } 6350 6351 void sub_31005D6D(void) { 6352 int _fpu_cmp = 0; 6353 uint32_t _cf = 0; 6354 int _df = 1; 6355 uint32_t _flag_k = FK_NONE; 6356 uint32_t _flag_a = 0, _flag_b = 0; 6357 uint32_t _itail_tgt = 0; 6358 RECOMP_REGS_LOCALS 6359 RECOMP_ENTER(0x31005D6Du); 6360 6361 L_31005D6D: 6362 edx = MEM32(esi + 0x4); /* 0x31005D6D: mov edx, dword ptr [esi + 4] */ 6363 eax = MEM32(edx + 0x4); /* 0x31005D70: mov eax, dword ptr [edx + 4] */ 6364 ecx = MEM32(ebp + (-0x4)); /* 0x31005D73: mov ecx, dword ptr [ebp - 4] */ 6365 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x31005D76: mov byte ptr [eax + 0x14], bl */ 6366 eax = MEM32(ebp + 0x8); /* 0x31005D79: mov eax, dword ptr [ebp + 8] */ 6367 edi = POP32_VAL(esp); /* 0x31005D7C: pop edi */ 6368 esi = POP32_VAL(esp); /* 0x31005D7D: pop esi */ 6369 MEM32(eax) = ecx; /* 0x31005D7E: mov dword ptr [eax], ecx */ 6370 ebx = POP32_VAL(esp); /* 0x31005D80: pop ebx */ 6371 esp = ebp; /* 0x31005D81: mov esp, ebp */ 6372 ebp = POP32_VAL(esp); /* 0x31005D83: pop ebp */ 6373 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x31005D84: ret 0x10 */ 6374 RECOMP_REGS_OUT(); 6375 } 6376 6377 void sub_31005D90(void) { 6378 int _fpu_cmp = 0; 6379 uint32_t _cf = 0; 6380 int _df = 1; 6381 uint32_t _flag_k = FK_NONE; 6382 uint32_t _flag_a = 0, _flag_b = 0; 6383 uint32_t _itail_tgt = 0; 6384 RECOMP_REGS_LOCALS 6385 RECOMP_ENTER(0x31005D90u); 6386 6387 L_31005D90: 6388 PUSH32(esp, ebp); /* 0x31005D90: push ebp */ 6389 ebp = esp; /* 0x31005D91: mov ebp, esp */ 6390 eax = MEM32(ebp + 0x8); /* 0x31005D93: mov eax, dword ptr [ebp + 8] */ 6391 ecx = MEM32(eax); /* 0x31005D96: mov ecx, dword ptr [eax] */ 6392 SET_LO8(edx, MEM8(ecx + 0x15)); /* 0x31005D98: mov dl, byte ptr [ecx + 0x15] */ 6393 /* test LO8(edx), LO8(edx) */ /* 0x31005D9B: test dl, dl */ 6394 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6395 _cf = 0; 6396 _flag_k = FK_NARROW(FK_TEST, 24); 6397 if (TEST_NZ(_flag_a, _flag_b)) goto L_31005DAA; /* 0x31005D9D: jne 0x31005daa */ 6398 L_31005D9F: 6399 eax = ecx; /* 0x31005D9F: mov eax, ecx */ 6400 ecx = MEM32(eax); /* 0x31005DA1: mov ecx, dword ptr [eax] */ 6401 SET_LO8(edx, MEM8(ecx + 0x15)); /* 0x31005DA3: mov dl, byte ptr [ecx + 0x15] */ 6402 /* test LO8(edx), LO8(edx) */ /* 0x31005DA6: test dl, dl */ 6403 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6404 _cf = 0; 6405 _flag_k = FK_NARROW(FK_TEST, 24); 6406 RECOMP_BACKEDGE(); 6407 if (TEST_Z(_flag_a, _flag_b)) goto L_31005D9F; /* 0x31005DA8: je 0x31005d9f */ 6408 L_31005DAA: 6409 ebp = POP32_VAL(esp); /* 0x31005DAA: pop ebp */ 6410 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31005DAB: ret */ 6411 RECOMP_REGS_OUT(); 6412 } 6413 6414 void sub_31005DB0(void) { 6415 int _fpu_cmp = 0; 6416 uint32_t _cf = 0; 6417 int _df = 1; 6418 uint32_t _flag_k = FK_NONE; 6419 uint32_t _flag_a = 0, _flag_b = 0; 6420 uint32_t _itail_tgt = 0; 6421 RECOMP_REGS_LOCALS 6422 RECOMP_ENTER(0x31005DB0u); 6423 6424 L_31005DB0: 6425 PUSH32(esp, ebp); /* 0x31005DB0: push ebp */ 6426 ebp = esp; /* 0x31005DB1: mov ebp, esp */ 6427 eax = MEM32(ecx + 0x4); /* 0x31005DB3: mov eax, dword ptr [ecx + 4] */ 6428 edx = MEM32(eax + 0x4); /* 0x31005DB6: mov edx, dword ptr [eax + 4] */ 6429 ecx = MEM32(ecx + 0x8); /* 0x31005DB9: mov ecx, dword ptr [ecx + 8] */ 6430 /* cmp edx, ecx */ /* 0x31005DBC: cmp edx, ecx */ 6431 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 6432 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6433 _flag_k = FK_CMP; 6434 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005DD9; /* 0x31005DBE: je 0x31005dd9 */ 6435 L_31005DC0: 6436 PUSH32(esp, esi); /* 0x31005DC0: push esi */ 6437 esi = MEM32(ebp + 0x8); /* 0x31005DC1: mov esi, dword ptr [ebp + 8] */ 6438 esi = MEM32(esi); /* 0x31005DC4: mov esi, dword ptr [esi] */ 6439 L_31005DC6: 6440 /* cmp MEM32(edx + 0xC), esi */ /* 0x31005DC6: cmp dword ptr [edx + 0xc], esi */ 6441 _flag_a = (uint32_t)(MEM32(edx + 0xC)); _flag_b = (uint32_t)(esi); 6442 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6443 _flag_k = FK_CMP; 6444 if (CMP_GE(_flag_a, _flag_b)) goto L_31005DD0; /* 0x31005DC9: jge 0x31005dd0 */ 6445 L_31005DCB: 6446 edx = MEM32(edx + 0x8); /* 0x31005DCB: mov edx, dword ptr [edx + 8] */ 6447 goto L_31005DD4; /* 0x31005DCE: jmp 0x31005dd4 */ 6448 L_31005DD0: 6449 eax = edx; /* 0x31005DD0: mov eax, edx */ 6450 edx = MEM32(edx); /* 0x31005DD2: mov edx, dword ptr [edx] */ 6451 L_31005DD4: 6452 /* cmp edx, ecx */ /* 0x31005DD4: cmp edx, ecx */ 6453 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 6454 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6455 _flag_k = FK_CMP; 6456 RECOMP_BACKEDGE(); 6457 if (CMP_NE(_flag_a, _flag_b)) goto L_31005DC6; /* 0x31005DD6: jne 0x31005dc6 */ 6458 L_31005DD8: 6459 esi = POP32_VAL(esp); /* 0x31005DD8: pop esi */ 6460 L_31005DD9: 6461 ebp = POP32_VAL(esp); /* 0x31005DD9: pop ebp */ 6462 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31005DDA: ret 4 */ 6463 RECOMP_REGS_OUT(); 6464 } 6465 6466 void sub_31005DE0(void) { 6467 int _fpu_cmp = 0; 6468 uint32_t _cf = 0; 6469 int _df = 1; 6470 uint32_t _flag_k = FK_NONE; 6471 uint32_t _flag_a = 0, _flag_b = 0; 6472 uint32_t _itail_tgt = 0; 6473 RECOMP_REGS_LOCALS 6474 RECOMP_ENTER(0x31005DE0u); 6475 6476 L_31005DE0: 6477 PUSH32(esp, ebp); /* 0x31005DE0: push ebp */ 6478 ebp = esp; /* 0x31005DE1: mov ebp, esp */ 6479 PUSH32(esp, 0x18u); /* 0x31005DE3: push 0x18 */ 6480 RECOMP_ICALL(0x310468DAu); /* 0x31005DE5: call 0x310468da */ /* not lifted */ 6481 RECOMP_FLAGS_IN(); 6482 ecx = MEM32(ebp + 0x8); /* 0x31005DEA: mov ecx, dword ptr [ebp + 8] */ 6483 SET_LO8(edx, MEM8(ebp + 0xC)); /* 0x31005DED: mov dl, byte ptr [ebp + 0xc] */ 6484 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6485 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6486 esp = esp + 4; /* 0x31005DF0: add esp, 4 */ 6487 _flag_k = FK_ADD; 6488 MEM32(eax + 0x4) = ecx; /* 0x31005DF3: mov dword ptr [eax + 4], ecx */ 6489 MEM8(eax + 0x14) = (uint8_t)(LO8(edx)); /* 0x31005DF6: mov byte ptr [eax + 0x14], dl */ 6490 MEM8(eax + 0x15) = (uint8_t)(0); /* 0x31005DF9: mov byte ptr [eax + 0x15], 0 */ 6491 ebp = POP32_VAL(esp); /* 0x31005DFD: pop ebp */ 6492 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x31005DFE: ret 8 */ 6493 RECOMP_REGS_OUT(); 6494 } 6495 6496 void sub_31005E10(void) { 6497 int _fpu_cmp = 0; 6498 uint32_t _cf = 0; 6499 int _df = 1; 6500 uint32_t _flag_k = FK_NONE; 6501 uint32_t _flag_a = 0, _flag_b = 0; 6502 uint32_t _itail_tgt = 0; 6503 RECOMP_REGS_LOCALS 6504 RECOMP_ENTER(0x31005E10u); 6505 6506 L_31005E10: 6507 PUSH32(esp, ebp); /* 0x31005E10: push ebp */ 6508 ebp = esp; /* 0x31005E11: mov ebp, esp */ 6509 eax = MEM32(ecx + 0x4); /* 0x31005E13: mov eax, dword ptr [ecx + 4] */ 6510 edx = MEM32(eax + 0x4); /* 0x31005E16: mov edx, dword ptr [eax + 4] */ 6511 ecx = MEM32(ecx + 0x8); /* 0x31005E19: mov ecx, dword ptr [ecx + 8] */ 6512 /* cmp edx, ecx */ /* 0x31005E1C: cmp edx, ecx */ 6513 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 6514 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6515 _flag_k = FK_CMP; 6516 if (CMP_EQ(_flag_a, _flag_b)) goto L_31005E39; /* 0x31005E1E: je 0x31005e39 */ 6517 L_31005E20: 6518 PUSH32(esp, esi); /* 0x31005E20: push esi */ 6519 esi = MEM32(ebp + 0x8); /* 0x31005E21: mov esi, dword ptr [ebp + 8] */ 6520 esi = MEM32(esi); /* 0x31005E24: mov esi, dword ptr [esi] */ 6521 L_31005E26: 6522 /* cmp esi, MEM32(edx + 0xC) */ /* 0x31005E26: cmp esi, dword ptr [edx + 0xc] */ 6523 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edx + 0xC)); 6524 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6525 _flag_k = FK_CMP; 6526 if (CMP_GE(_flag_a, _flag_b)) goto L_31005E31; /* 0x31005E29: jge 0x31005e31 */ 6527 L_31005E2B: 6528 eax = edx; /* 0x31005E2B: mov eax, edx */ 6529 edx = MEM32(edx); /* 0x31005E2D: mov edx, dword ptr [edx] */ 6530 goto L_31005E34; /* 0x31005E2F: jmp 0x31005e34 */ 6531 L_31005E31: 6532 edx = MEM32(edx + 0x8); /* 0x31005E31: mov edx, dword ptr [edx + 8] */ 6533 L_31005E34: 6534 /* cmp edx, ecx */ /* 0x31005E34: cmp edx, ecx */ 6535 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 6536 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6537 _flag_k = FK_CMP; 6538 RECOMP_BACKEDGE(); 6539 if (CMP_NE(_flag_a, _flag_b)) goto L_31005E26; /* 0x31005E36: jne 0x31005e26 */ 6540 L_31005E38: 6541 esi = POP32_VAL(esp); /* 0x31005E38: pop esi */ 6542 L_31005E39: 6543 ebp = POP32_VAL(esp); /* 0x31005E39: pop ebp */ 6544 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x31005E3A: ret 4 */ 6545 RECOMP_REGS_OUT(); 6546 } 6547 6548 void sub_31005E40(void) { 6549 int _fpu_cmp = 0; 6550 uint32_t _cf = 0; 6551 int _df = 1; 6552 uint32_t _flag_k = FK_NONE; 6553 uint32_t _flag_a = 0, _flag_b = 0; 6554 uint32_t _itail_tgt = 0; 6555 RECOMP_REGS_LOCALS 6556 RECOMP_ENTER(0x31005E40u); 6557 6558 L_31005E40: 6559 PUSH32(esp, ebp); /* 0x31005E40: push ebp */ 6560 ebp = esp; /* 0x31005E41: mov ebp, esp */ 6561 eax = MEM32(ebp + 0x8); /* 0x31005E43: mov eax, dword ptr [ebp + 8] */ 6562 /* test eax, eax */ /* 0x31005E46: test eax, eax */ 6563 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6564 _cf = 0; 6565 _flag_k = FK_TEST; 6566 if (TEST_Z(_flag_a, _flag_b)) goto L_31005E57; /* 0x31005E48: je 0x31005e57 */ 6567 L_31005E4A: 6568 ecx = MEM32(ebp + 0xC); /* 0x31005E4A: mov ecx, dword ptr [ebp + 0xc] */ 6569 edx = MEM32(ecx); /* 0x31005E4D: mov edx, dword ptr [ecx] */ 6570 MEM32(eax) = edx; /* 0x31005E4F: mov dword ptr [eax], edx */ 6571 ecx = MEM32(ecx + 0x4); /* 0x31005E51: mov ecx, dword ptr [ecx + 4] */ 6572 MEM32(eax + 0x4) = ecx; /* 0x31005E54: mov dword ptr [eax + 4], ecx */ 6573 L_31005E57: 6574 ebp = POP32_VAL(esp); /* 0x31005E57: pop ebp */ 6575 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31005E58: ret */ 6576 RECOMP_REGS_OUT(); 6577 } 6578 6579 void sub_31005E60(void) { 6580 int _fpu_cmp = 0; 6581 uint32_t _cf = 0; 6582 int _df = 1; 6583 uint32_t _flag_k = FK_NONE; 6584 uint32_t _flag_a = 0, _flag_b = 0; 6585 uint32_t _itail_tgt = 0; 6586 RECOMP_REGS_LOCALS 6587 RECOMP_ENTER(0x31005E60u); 6588 6589 L_31005E60: 6590 RECOMP_ICALL(0x31005E70u); /* 0x31005E60: call 0x31005e70 */ /* not lifted */ 6591 RECOMP_FLAGS_IN(); 6592 goto L_31005E80; /* 0x31005E65: jmp 0x31005e80 */ 6593 L_31005E80: 6594 PUSH32(esp, 0x31005E90u); /* 0x31005E80: push 0x31005e90 */ 6595 RECOMP_ICALL(0x310468C8u); /* 0x31005E85: call 0x310468c8 */ /* not lifted */ 6596 RECOMP_FLAGS_IN(); 6597 ecx = POP32_VAL(esp); /* 0x31005E8A: pop ecx */ 6598 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31005E8B: ret */ 6599 RECOMP_REGS_OUT(); 6600 } 6601 6602 void sub_31005E70(void) { 6603 int _fpu_cmp = 0; 6604 uint32_t _cf = 0; 6605 int _df = 1; 6606 uint32_t _flag_k = FK_NONE; 6607 uint32_t _flag_a = 0, _flag_b = 0; 6608 uint32_t _itail_tgt = 0; 6609 RECOMP_REGS_LOCALS 6610 RECOMP_ENTER(0x31005E70u); 6611 6612 L_31005E70: 6613 ecx = 0x31057DADu; /* 0x31005E70: mov ecx, 0x31057dad */ 6614 L_31005E75: 6615 { _itail_tgt = (uint32_t)(MEM32(0x31048108)); goto _ljump; } 6616 { RECOMP_REGS_OUT(); return; } /* end of function */ 6617 _ljump: 6618 switch (_itail_tgt) { 6619 case 0x31005E70u: goto L_31005E70; 6620 case 0x31005E75u: goto L_31005E75; 6621 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6622 } 6623 RECOMP_REGS_OUT(); 6624 } 6625 6626 void sub_31005E80(void) { 6627 int _fpu_cmp = 0; 6628 uint32_t _cf = 0; 6629 int _df = 1; 6630 uint32_t _flag_k = FK_NONE; 6631 uint32_t _flag_a = 0, _flag_b = 0; 6632 uint32_t _itail_tgt = 0; 6633 RECOMP_REGS_LOCALS 6634 RECOMP_ENTER(0x31005E80u); 6635 6636 L_31005E80: 6637 PUSH32(esp, 0x31005E90u); /* 0x31005E80: push 0x31005e90 */ 6638 RECOMP_ICALL(0x310468C8u); /* 0x31005E85: call 0x310468c8 */ /* not lifted */ 6639 RECOMP_FLAGS_IN(); 6640 ecx = POP32_VAL(esp); /* 0x31005E8A: pop ecx */ 6641 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31005E8B: ret */ 6642 RECOMP_REGS_OUT(); 6643 } 6644 6645 void sub_31005E90(void) { 6646 int _fpu_cmp = 0; 6647 uint32_t _cf = 0; 6648 int _df = 1; 6649 uint32_t _flag_k = FK_NONE; 6650 uint32_t _flag_a = 0, _flag_b = 0; 6651 uint32_t _itail_tgt = 0; 6652 RECOMP_REGS_LOCALS 6653 RECOMP_ENTER(0x31005E90u); 6654 6655 L_31005E90: 6656 ecx = 0x31057DADu; /* 0x31005E90: mov ecx, 0x31057dad */ 6657 L_31005E95: 6658 { _itail_tgt = (uint32_t)(MEM32(0x3104807C)); goto _ljump; } 6659 { RECOMP_REGS_OUT(); return; } /* end of function */ 6660 _ljump: 6661 switch (_itail_tgt) { 6662 case 0x31005E90u: goto L_31005E90; 6663 case 0x31005E95u: goto L_31005E95; 6664 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6665 } 6666 RECOMP_REGS_OUT(); 6667 } 6668 6669 void sub_31005EA0(void) { 6670 int _fpu_cmp = 0; 6671 uint32_t _cf = 0; 6672 int _df = 1; 6673 uint32_t _flag_k = FK_NONE; 6674 uint32_t _flag_a = 0, _flag_b = 0; 6675 uint32_t _itail_tgt = 0; 6676 RECOMP_REGS_LOCALS 6677 RECOMP_ENTER(0x31005EA0u); 6678 6679 L_31005EA0: 6680 RECOMP_ICALL(0x31005EB0u); /* 0x31005EA0: call 0x31005eb0 */ /* not lifted */ 6681 RECOMP_FLAGS_IN(); 6682 goto L_31005EC0; /* 0x31005EA5: jmp 0x31005ec0 */ 6683 L_31005EC0: 6684 PUSH32(esp, 0x31005ED0u); /* 0x31005EC0: push 0x31005ed0 */ 6685 RECOMP_ICALL(0x310468C8u); /* 0x31005EC5: call 0x310468c8 */ /* not lifted */ 6686 RECOMP_FLAGS_IN(); 6687 ecx = POP32_VAL(esp); /* 0x31005ECA: pop ecx */ 6688 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31005ECB: ret */ 6689 RECOMP_REGS_OUT(); 6690 } 6691 6692 void sub_31005EB0(void) { 6693 int _fpu_cmp = 0; 6694 uint32_t _cf = 0; 6695 int _df = 1; 6696 uint32_t _flag_k = FK_NONE; 6697 uint32_t _flag_a = 0, _flag_b = 0; 6698 uint32_t _itail_tgt = 0; 6699 RECOMP_REGS_LOCALS 6700 RECOMP_ENTER(0x31005EB0u); 6701 6702 L_31005EB0: 6703 ecx = 0x31057DACu; /* 0x31005EB0: mov ecx, 0x31057dac */ 6704 L_31005EB5: 6705 { _itail_tgt = (uint32_t)(MEM32(0x31048104)); goto _ljump; } 6706 { RECOMP_REGS_OUT(); return; } /* end of function */ 6707 _ljump: 6708 switch (_itail_tgt) { 6709 case 0x31005EB0u: goto L_31005EB0; 6710 case 0x31005EB5u: goto L_31005EB5; 6711 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6712 } 6713 RECOMP_REGS_OUT(); 6714 } 6715 6716 void sub_31005EC0(void) { 6717 int _fpu_cmp = 0; 6718 uint32_t _cf = 0; 6719 int _df = 1; 6720 uint32_t _flag_k = FK_NONE; 6721 uint32_t _flag_a = 0, _flag_b = 0; 6722 uint32_t _itail_tgt = 0; 6723 RECOMP_REGS_LOCALS 6724 RECOMP_ENTER(0x31005EC0u); 6725 6726 L_31005EC0: 6727 PUSH32(esp, 0x31005ED0u); /* 0x31005EC0: push 0x31005ed0 */ 6728 RECOMP_ICALL(0x310468C8u); /* 0x31005EC5: call 0x310468c8 */ /* not lifted */ 6729 RECOMP_FLAGS_IN(); 6730 ecx = POP32_VAL(esp); /* 0x31005ECA: pop ecx */ 6731 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31005ECB: ret */ 6732 RECOMP_REGS_OUT(); 6733 } 6734 6735 void sub_31005ED0(void) { 6736 int _fpu_cmp = 0; 6737 uint32_t _cf = 0; 6738 int _df = 1; 6739 uint32_t _flag_k = FK_NONE; 6740 uint32_t _flag_a = 0, _flag_b = 0; 6741 uint32_t _itail_tgt = 0; 6742 RECOMP_REGS_LOCALS 6743 RECOMP_ENTER(0x31005ED0u); 6744 6745 L_31005ED0: 6746 ecx = 0x31057DACu; /* 0x31005ED0: mov ecx, 0x31057dac */ 6747 L_31005ED5: 6748 { _itail_tgt = (uint32_t)(MEM32(0x31048080)); goto _ljump; } 6749 { RECOMP_REGS_OUT(); return; } /* end of function */ 6750 _ljump: 6751 switch (_itail_tgt) { 6752 case 0x31005ED0u: goto L_31005ED0; 6753 case 0x31005ED5u: goto L_31005ED5; 6754 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6755 } 6756 RECOMP_REGS_OUT(); 6757 }