client/vendor/ace/source/lifted-0040.c (308761B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 4 void sub_47059940(void) { 5 int _fpu_cmp = 0; 6 uint32_t _cf = 0; 7 int _df = 1; 8 uint32_t _flag_k = FK_NONE; 9 uint32_t _flag_a = 0, _flag_b = 0; 10 uint32_t _itail_tgt = 0; 11 RECOMP_REGS_LOCALS 12 RECOMP_ENTER(0x47059940u); 13 14 L_47059940: 15 MEM32(0x4710EA00) = 0x47105224u; /* 0x47059940: mov dword ptr [0x4710ea00], 0x47105224 */ 16 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705994A: ret */ 17 RECOMP_REGS_OUT(); 18 } 19 20 void sub_47059950(void) { 21 int _fpu_cmp = 0; 22 uint32_t _cf = 0; 23 int _df = 1; 24 uint32_t _flag_k = FK_NONE; 25 uint32_t _flag_a = 0, _flag_b = 0; 26 uint32_t _itail_tgt = 0; 27 RECOMP_REGS_LOCALS 28 RECOMP_ENTER(0x47059950u); 29 30 L_47059950: 31 MEM32(0x4710E9EC) = 0x47108CC8u; /* 0x47059950: mov dword ptr [0x4710e9ec], 0x47108cc8 */ 32 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705995A: ret */ 33 RECOMP_REGS_OUT(); 34 } 35 36 void sub_47059960(void) { 37 int _fpu_cmp = 0; 38 uint32_t _cf = 0; 39 int _df = 1; 40 uint32_t _flag_k = FK_NONE; 41 uint32_t _flag_a = 0, _flag_b = 0; 42 uint32_t _itail_tgt = 0; 43 RECOMP_REGS_LOCALS 44 RECOMP_ENTER(0x47059960u); 45 46 L_47059960: 47 MEM32(0x4710E9E0) = 0x47108D04u; /* 0x47059960: mov dword ptr [0x4710e9e0], 0x47108d04 */ 48 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705996A: ret */ 49 RECOMP_REGS_OUT(); 50 } 51 52 void sub_47059970(void) { 53 int _fpu_cmp = 0; 54 uint32_t _cf = 0; 55 int _df = 1; 56 uint32_t _flag_k = FK_NONE; 57 uint32_t _flag_a = 0, _flag_b = 0; 58 uint32_t _itail_tgt = 0; 59 RECOMP_REGS_LOCALS 60 RECOMP_ENTER(0x47059970u); 61 62 L_47059970: 63 MEM32(0x4710EA08) = 0x47108D38u; /* 0x47059970: mov dword ptr [0x4710ea08], 0x47108d38 */ 64 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705997A: ret */ 65 RECOMP_REGS_OUT(); 66 } 67 68 void sub_47059980(void) { 69 int _fpu_cmp = 0; 70 uint32_t _cf = 0; 71 int _df = 1; 72 uint32_t _flag_k = FK_NONE; 73 uint32_t _flag_a = 0, _flag_b = 0; 74 uint32_t _itail_tgt = 0; 75 RECOMP_REGS_LOCALS 76 RECOMP_ENTER(0x47059980u); 77 78 L_47059980: 79 eax = ecx; /* 0x47059980: mov eax, ecx */ 80 ecx = MEM32(esp + 0x4); /* 0x47059982: mov ecx, dword ptr [esp + 4] */ 81 edx = MEM32(ecx + 0x4); /* 0x47059986: mov edx, dword ptr [ecx + 4] */ 82 MEM32(eax + 0x4) = edx; /* 0x47059989: mov dword ptr [eax + 4], edx */ 83 ecx = MEM32(ecx + 0x8); /* 0x4705998C: mov ecx, dword ptr [ecx + 8] */ 84 MEM32(eax + 0x8) = ecx; /* 0x4705998F: mov dword ptr [eax + 8], ecx */ 85 MEM32(eax) = 0x470ADCC8u; /* 0x47059992: mov dword ptr [eax], 0x470adcc8 */ 86 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059998: ret 4 */ 87 RECOMP_REGS_OUT(); 88 } 89 90 void sub_470599A0(void) { 91 int _fpu_cmp = 0; 92 uint32_t _cf = 0; 93 int _df = 1; 94 uint32_t _flag_k = FK_NONE; 95 uint32_t _flag_a = 0, _flag_b = 0; 96 uint32_t _itail_tgt = 0; 97 RECOMP_REGS_LOCALS 98 RECOMP_ENTER(0x470599A0u); 99 100 L_470599A0: 101 PUSH32(esp, ebx); /* 0x470599A0: push ebx */ 102 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x470599A1: mov bl, byte ptr [esp + 8] */ 103 /* test LO8(ebx), 2 */ /* 0x470599A5: test bl, 2 */ 104 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 105 _cf = 0; 106 _flag_k = FK_NARROW(FK_TEST, 24); 107 PUSH32(esp, esi); /* 0x470599A8: push esi */ 108 esi = ecx; /* 0x470599A9: mov esi, ecx */ 109 if (TEST_Z(_flag_a, _flag_b)) goto L_470599D8; /* 0x470599AB: je 0x470599d8 */ 110 L_470599AD: 111 eax = MEM32(esi + (-0x4)); /* 0x470599AD: mov eax, dword ptr [esi - 4] */ 112 PUSH32(esp, edi); /* 0x470599B0: push edi */ 113 PUSH32(esp, 0x4705A2C0u); /* 0x470599B1: push 0x4705a2c0 */ 114 edi = esi + (-0x4); /* 0x470599B6: lea edi, [esi - 4] */ 115 PUSH32(esp, eax); /* 0x470599B9: push eax */ 116 PUSH32(esp, 0xCu); /* 0x470599BA: push 0xc */ 117 PUSH32(esp, esi); /* 0x470599BC: push esi */ 118 RECOMP_ICALL(0x470A32EBu); /* 0x470599BD: call 0x470a32eb */ /* not lifted */ 119 RECOMP_FLAGS_IN(); 120 /* test LO8(ebx), 1 */ /* 0x470599C2: test bl, 1 */ 121 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 122 _cf = 0; 123 _flag_k = FK_NARROW(FK_TEST, 24); 124 if (TEST_Z(_flag_a, _flag_b)) goto L_470599D0; /* 0x470599C5: je 0x470599d0 */ 125 L_470599C7: 126 PUSH32(esp, edi); /* 0x470599C7: push edi */ 127 RECOMP_ICALL(0x470A32A2u); /* 0x470599C8: call 0x470a32a2 */ /* not lifted */ 128 RECOMP_FLAGS_IN(); 129 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 130 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 131 esp = esp + 4; /* 0x470599CD: add esp, 4 */ 132 _flag_k = FK_ADD; 133 L_470599D0: 134 eax = edi; /* 0x470599D0: mov eax, edi */ 135 edi = POP32_VAL(esp); /* 0x470599D2: pop edi */ 136 esi = POP32_VAL(esp); /* 0x470599D3: pop esi */ 137 ebx = POP32_VAL(esp); /* 0x470599D4: pop ebx */ 138 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470599D5: ret 4 */ 139 L_470599D8: 140 ecx = MEM32(esi + 0x4); /* 0x470599D8: mov ecx, dword ptr [esi + 4] */ 141 PUSH32(esp, ecx); /* 0x470599DB: push ecx */ 142 MEM32(esi) = 0x470ADCC8u; /* 0x470599DC: mov dword ptr [esi], 0x470adcc8 */ 143 RECOMP_ICALL(0x470A32A2u); /* 0x470599E2: call 0x470a32a2 */ /* not lifted */ 144 RECOMP_FLAGS_IN(); 145 ecx = MEM32(esi + 0x8); /* 0x470599E7: mov ecx, dword ptr [esi + 8] */ 146 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 147 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 148 esp = esp + 4; /* 0x470599EA: add esp, 4 */ 149 _flag_k = FK_ADD; 150 /* test ecx, ecx */ /* 0x470599ED: test ecx, ecx */ 151 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 152 _cf = 0; 153 _flag_k = FK_TEST; 154 if (TEST_Z(_flag_a, _flag_b)) goto L_470599F7; /* 0x470599EF: je 0x470599f7 */ 155 L_470599F1: 156 edx = MEM32(ecx); /* 0x470599F1: mov edx, dword ptr [ecx] */ 157 PUSH32(esp, 1); /* 0x470599F3: push 1 */ 158 RECOMP_ICALL(MEM32(edx)); /* 0x470599F5: call dword ptr [edx] */ 159 RECOMP_FLAGS_IN(); 160 L_470599F7: 161 /* test LO8(ebx), 1 */ /* 0x470599F7: test bl, 1 */ 162 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 163 _cf = 0; 164 _flag_k = FK_NARROW(FK_TEST, 24); 165 if (TEST_Z(_flag_a, _flag_b)) goto L_47059A05; /* 0x470599FA: je 0x47059a05 */ 166 L_470599FC: 167 PUSH32(esp, esi); /* 0x470599FC: push esi */ 168 RECOMP_ICALL(0x470A32A2u); /* 0x470599FD: call 0x470a32a2 */ /* not lifted */ 169 RECOMP_FLAGS_IN(); 170 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 171 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 172 esp = esp + 4; /* 0x47059A02: add esp, 4 */ 173 _flag_k = FK_ADD; 174 L_47059A05: 175 eax = esi; /* 0x47059A05: mov eax, esi */ 176 esi = POP32_VAL(esp); /* 0x47059A07: pop esi */ 177 ebx = POP32_VAL(esp); /* 0x47059A08: pop ebx */ 178 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059A09: ret 4 */ 179 RECOMP_REGS_OUT(); 180 } 181 182 void sub_47059A10(void) { 183 int _fpu_cmp = 0; 184 uint32_t _cf = 0; 185 int _df = 1; 186 uint32_t _flag_k = FK_NONE; 187 uint32_t _flag_a = 0, _flag_b = 0; 188 uint32_t _itail_tgt = 0; 189 RECOMP_REGS_LOCALS 190 RECOMP_ENTER(0x47059A10u); 191 192 L_47059A10: 193 eax = ecx; /* 0x47059A10: mov eax, ecx */ 194 ecx = MEM32(esp + 0x4); /* 0x47059A12: mov ecx, dword ptr [esp + 4] */ 195 edx = MEM32(ecx + 0x4); /* 0x47059A16: mov edx, dword ptr [ecx + 4] */ 196 MEM32(eax + 0x4) = edx; /* 0x47059A19: mov dword ptr [eax + 4], edx */ 197 ecx = MEM32(ecx + 0x8); /* 0x47059A1C: mov ecx, dword ptr [ecx + 8] */ 198 MEM32(eax + 0x8) = ecx; /* 0x47059A1F: mov dword ptr [eax + 8], ecx */ 199 MEM32(eax) = 0x470ADCD0u; /* 0x47059A22: mov dword ptr [eax], 0x470adcd0 */ 200 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059A28: ret 4 */ 201 RECOMP_REGS_OUT(); 202 } 203 204 void sub_47059A30(void) { 205 int _fpu_cmp = 0; 206 uint32_t _cf = 0; 207 int _df = 1; 208 uint32_t _flag_k = FK_NONE; 209 uint32_t _flag_a = 0, _flag_b = 0; 210 uint32_t _itail_tgt = 0; 211 RECOMP_REGS_LOCALS 212 RECOMP_ENTER(0x47059A30u); 213 214 L_47059A30: 215 eax = ecx; /* 0x47059A30: mov eax, ecx */ 216 ecx = MEM32(esp + 0x4); /* 0x47059A32: mov ecx, dword ptr [esp + 4] */ 217 edx = MEM32(ecx + 0x4); /* 0x47059A36: mov edx, dword ptr [ecx + 4] */ 218 MEM32(eax + 0x4) = edx; /* 0x47059A39: mov dword ptr [eax + 4], edx */ 219 ecx = MEM32(ecx + 0x8); /* 0x47059A3C: mov ecx, dword ptr [ecx + 8] */ 220 MEM32(eax + 0x8) = ecx; /* 0x47059A3F: mov dword ptr [eax + 8], ecx */ 221 MEM32(eax) = 0x470ADCD8u; /* 0x47059A42: mov dword ptr [eax], 0x470adcd8 */ 222 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059A48: ret 4 */ 223 RECOMP_REGS_OUT(); 224 } 225 226 void sub_47059A50(void) { 227 int _fpu_cmp = 0; 228 uint32_t _cf = 0; 229 int _df = 1; 230 uint32_t _flag_k = FK_NONE; 231 uint32_t _flag_a = 0, _flag_b = 0; 232 uint32_t _itail_tgt = 0; 233 RECOMP_REGS_LOCALS 234 RECOMP_ENTER(0x47059A50u); 235 236 L_47059A50: 237 eax = ecx; /* 0x47059A50: mov eax, ecx */ 238 ecx = MEM32(esp + 0x4); /* 0x47059A52: mov ecx, dword ptr [esp + 4] */ 239 edx = MEM32(ecx + 0x4); /* 0x47059A56: mov edx, dword ptr [ecx + 4] */ 240 MEM32(eax + 0x4) = edx; /* 0x47059A59: mov dword ptr [eax + 4], edx */ 241 ecx = MEM32(ecx + 0x8); /* 0x47059A5C: mov ecx, dword ptr [ecx + 8] */ 242 MEM32(eax + 0x8) = ecx; /* 0x47059A5F: mov dword ptr [eax + 8], ecx */ 243 MEM32(eax) = 0x470ADCE0u; /* 0x47059A62: mov dword ptr [eax], 0x470adce0 */ 244 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059A68: ret 4 */ 245 RECOMP_REGS_OUT(); 246 } 247 248 void sub_47059A70(void) { 249 int _fpu_cmp = 0; 250 uint32_t _cf = 0; 251 int _df = 1; 252 uint32_t _flag_k = FK_NONE; 253 uint32_t _flag_a = 0, _flag_b = 0; 254 uint32_t _itail_tgt = 0; 255 RECOMP_REGS_LOCALS 256 RECOMP_ENTER(0x47059A70u); 257 258 L_47059A70: 259 PUSH32(esp, ebx); /* 0x47059A70: push ebx */ 260 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47059A71: mov bl, byte ptr [esp + 8] */ 261 /* test LO8(ebx), 2 */ /* 0x47059A75: test bl, 2 */ 262 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 263 _cf = 0; 264 _flag_k = FK_NARROW(FK_TEST, 24); 265 PUSH32(esp, esi); /* 0x47059A78: push esi */ 266 esi = ecx; /* 0x47059A79: mov esi, ecx */ 267 if (TEST_Z(_flag_a, _flag_b)) goto L_47059AA8; /* 0x47059A7B: je 0x47059aa8 */ 268 L_47059A7D: 269 eax = MEM32(esi + (-0x4)); /* 0x47059A7D: mov eax, dword ptr [esi - 4] */ 270 PUSH32(esp, edi); /* 0x47059A80: push edi */ 271 PUSH32(esp, 0x47059FC0u); /* 0x47059A81: push 0x47059fc0 */ 272 edi = esi + (-0x4); /* 0x47059A86: lea edi, [esi - 4] */ 273 PUSH32(esp, eax); /* 0x47059A89: push eax */ 274 PUSH32(esp, 0xCu); /* 0x47059A8A: push 0xc */ 275 PUSH32(esp, esi); /* 0x47059A8C: push esi */ 276 RECOMP_ICALL(0x470A32EBu); /* 0x47059A8D: call 0x470a32eb */ /* not lifted */ 277 RECOMP_FLAGS_IN(); 278 /* test LO8(ebx), 1 */ /* 0x47059A92: test bl, 1 */ 279 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 280 _cf = 0; 281 _flag_k = FK_NARROW(FK_TEST, 24); 282 if (TEST_Z(_flag_a, _flag_b)) goto L_47059AA0; /* 0x47059A95: je 0x47059aa0 */ 283 L_47059A97: 284 PUSH32(esp, edi); /* 0x47059A97: push edi */ 285 RECOMP_ICALL(0x470A32A2u); /* 0x47059A98: call 0x470a32a2 */ /* not lifted */ 286 RECOMP_FLAGS_IN(); 287 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 288 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 289 esp = esp + 4; /* 0x47059A9D: add esp, 4 */ 290 _flag_k = FK_ADD; 291 L_47059AA0: 292 eax = edi; /* 0x47059AA0: mov eax, edi */ 293 edi = POP32_VAL(esp); /* 0x47059AA2: pop edi */ 294 esi = POP32_VAL(esp); /* 0x47059AA3: pop esi */ 295 ebx = POP32_VAL(esp); /* 0x47059AA4: pop ebx */ 296 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059AA5: ret 4 */ 297 L_47059AA8: 298 ecx = esi; /* 0x47059AA8: mov ecx, esi */ 299 RECOMP_ICALL(0x47059FC0u); /* 0x47059AAA: call 0x47059fc0 */ /* not lifted */ 300 RECOMP_FLAGS_IN(); 301 /* test LO8(ebx), 1 */ /* 0x47059AAF: test bl, 1 */ 302 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 303 _cf = 0; 304 _flag_k = FK_NARROW(FK_TEST, 24); 305 if (TEST_Z(_flag_a, _flag_b)) goto L_47059ABD; /* 0x47059AB2: je 0x47059abd */ 306 L_47059AB4: 307 PUSH32(esp, esi); /* 0x47059AB4: push esi */ 308 RECOMP_ICALL(0x470A32A2u); /* 0x47059AB5: call 0x470a32a2 */ /* not lifted */ 309 RECOMP_FLAGS_IN(); 310 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 311 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 312 esp = esp + 4; /* 0x47059ABA: add esp, 4 */ 313 _flag_k = FK_ADD; 314 L_47059ABD: 315 eax = esi; /* 0x47059ABD: mov eax, esi */ 316 esi = POP32_VAL(esp); /* 0x47059ABF: pop esi */ 317 ebx = POP32_VAL(esp); /* 0x47059AC0: pop ebx */ 318 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059AC1: ret 4 */ 319 RECOMP_REGS_OUT(); 320 } 321 322 void sub_47059AD0(void) { 323 int _fpu_cmp = 0; 324 uint32_t _cf = 0; 325 int _df = 1; 326 uint32_t _flag_k = FK_NONE; 327 uint32_t _flag_a = 0, _flag_b = 0; 328 uint32_t _itail_tgt = 0; 329 RECOMP_REGS_LOCALS 330 RECOMP_ENTER(0x47059AD0u); 331 332 L_47059AD0: 333 eax = ecx; /* 0x47059AD0: mov eax, ecx */ 334 ecx = MEM32(esp + 0x4); /* 0x47059AD2: mov ecx, dword ptr [esp + 4] */ 335 edx = MEM32(ecx + 0x4); /* 0x47059AD6: mov edx, dword ptr [ecx + 4] */ 336 MEM32(eax + 0x4) = edx; /* 0x47059AD9: mov dword ptr [eax + 4], edx */ 337 edx = MEM32(ecx + 0x8); /* 0x47059ADC: mov edx, dword ptr [ecx + 8] */ 338 MEM32(eax) = 0x470ADCC8u; /* 0x47059ADF: mov dword ptr [eax], 0x470adcc8 */ 339 MEM32(eax + 0x8) = edx; /* 0x47059AE5: mov dword ptr [eax + 8], edx */ 340 ecx = MEM32(ecx + 0xC); /* 0x47059AE8: mov ecx, dword ptr [ecx + 0xc] */ 341 MEM32(eax + 0xC) = ecx; /* 0x47059AEB: mov dword ptr [eax + 0xc], ecx */ 342 MEM32(eax) = 0x470ADCE8u; /* 0x47059AEE: mov dword ptr [eax], 0x470adce8 */ 343 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059AF4: ret 4 */ 344 RECOMP_REGS_OUT(); 345 } 346 347 void sub_47059B00(void) { 348 int _fpu_cmp = 0; 349 uint32_t _cf = 0; 350 int _df = 1; 351 uint32_t _flag_k = FK_NONE; 352 uint32_t _flag_a = 0, _flag_b = 0; 353 uint32_t _itail_tgt = 0; 354 RECOMP_REGS_LOCALS 355 RECOMP_ENTER(0x47059B00u); 356 357 L_47059B00: 358 PUSH32(esp, ebx); /* 0x47059B00: push ebx */ 359 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47059B01: mov bl, byte ptr [esp + 8] */ 360 /* test LO8(ebx), 2 */ /* 0x47059B05: test bl, 2 */ 361 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 362 _cf = 0; 363 _flag_k = FK_NARROW(FK_TEST, 24); 364 PUSH32(esp, esi); /* 0x47059B08: push esi */ 365 esi = ecx; /* 0x47059B09: mov esi, ecx */ 366 if (TEST_Z(_flag_a, _flag_b)) goto L_47059B38; /* 0x47059B0B: je 0x47059b38 */ 367 L_47059B0D: 368 eax = MEM32(esi + (-0x4)); /* 0x47059B0D: mov eax, dword ptr [esi - 4] */ 369 PUSH32(esp, edi); /* 0x47059B10: push edi */ 370 PUSH32(esp, 0x4705A790u); /* 0x47059B11: push 0x4705a790 */ 371 edi = esi + (-0x4); /* 0x47059B16: lea edi, [esi - 4] */ 372 PUSH32(esp, eax); /* 0x47059B19: push eax */ 373 PUSH32(esp, 0x10u); /* 0x47059B1A: push 0x10 */ 374 PUSH32(esp, esi); /* 0x47059B1C: push esi */ 375 RECOMP_ICALL(0x470A32EBu); /* 0x47059B1D: call 0x470a32eb */ /* not lifted */ 376 RECOMP_FLAGS_IN(); 377 /* test LO8(ebx), 1 */ /* 0x47059B22: test bl, 1 */ 378 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 379 _cf = 0; 380 _flag_k = FK_NARROW(FK_TEST, 24); 381 if (TEST_Z(_flag_a, _flag_b)) goto L_47059B30; /* 0x47059B25: je 0x47059b30 */ 382 L_47059B27: 383 PUSH32(esp, edi); /* 0x47059B27: push edi */ 384 RECOMP_ICALL(0x470A32A2u); /* 0x47059B28: call 0x470a32a2 */ /* not lifted */ 385 RECOMP_FLAGS_IN(); 386 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 387 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 388 esp = esp + 4; /* 0x47059B2D: add esp, 4 */ 389 _flag_k = FK_ADD; 390 L_47059B30: 391 eax = edi; /* 0x47059B30: mov eax, edi */ 392 edi = POP32_VAL(esp); /* 0x47059B32: pop edi */ 393 esi = POP32_VAL(esp); /* 0x47059B33: pop esi */ 394 ebx = POP32_VAL(esp); /* 0x47059B34: pop ebx */ 395 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059B35: ret 4 */ 396 L_47059B38: 397 ecx = esi; /* 0x47059B38: mov ecx, esi */ 398 RECOMP_ICALL(0x4705A790u); /* 0x47059B3A: call 0x4705a790 */ /* not lifted */ 399 RECOMP_FLAGS_IN(); 400 /* test LO8(ebx), 1 */ /* 0x47059B3F: test bl, 1 */ 401 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 402 _cf = 0; 403 _flag_k = FK_NARROW(FK_TEST, 24); 404 if (TEST_Z(_flag_a, _flag_b)) goto L_47059B4D; /* 0x47059B42: je 0x47059b4d */ 405 L_47059B44: 406 PUSH32(esp, esi); /* 0x47059B44: push esi */ 407 RECOMP_ICALL(0x470A32A2u); /* 0x47059B45: call 0x470a32a2 */ /* not lifted */ 408 RECOMP_FLAGS_IN(); 409 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 410 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 411 esp = esp + 4; /* 0x47059B4A: add esp, 4 */ 412 _flag_k = FK_ADD; 413 L_47059B4D: 414 eax = esi; /* 0x47059B4D: mov eax, esi */ 415 esi = POP32_VAL(esp); /* 0x47059B4F: pop esi */ 416 ebx = POP32_VAL(esp); /* 0x47059B50: pop ebx */ 417 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059B51: ret 4 */ 418 RECOMP_REGS_OUT(); 419 } 420 421 void sub_47059B60(void) { 422 int _fpu_cmp = 0; 423 uint32_t _cf = 0; 424 int _df = 1; 425 uint32_t _flag_k = FK_NONE; 426 uint32_t _flag_a = 0, _flag_b = 0; 427 uint32_t _itail_tgt = 0; 428 RECOMP_REGS_LOCALS 429 RECOMP_ENTER(0x47059B60u); 430 431 L_47059B60: 432 eax = ecx; /* 0x47059B60: mov eax, ecx */ 433 ecx = MEM32(esp + 0x4); /* 0x47059B62: mov ecx, dword ptr [esp + 4] */ 434 edx = MEM32(ecx + 0x4); /* 0x47059B66: mov edx, dword ptr [ecx + 4] */ 435 MEM32(eax + 0x4) = edx; /* 0x47059B69: mov dword ptr [eax + 4], edx */ 436 edx = MEM32(ecx + 0x8); /* 0x47059B6C: mov edx, dword ptr [ecx + 8] */ 437 MEM32(eax) = 0x470ADCC8u; /* 0x47059B6F: mov dword ptr [eax], 0x470adcc8 */ 438 MEM32(eax + 0x8) = edx; /* 0x47059B75: mov dword ptr [eax + 8], edx */ 439 edx = MEM32(ecx + 0xC); /* 0x47059B78: mov edx, dword ptr [ecx + 0xc] */ 440 MEM32(eax) = 0x470ADCE8u; /* 0x47059B7B: mov dword ptr [eax], 0x470adce8 */ 441 MEM32(eax + 0xC) = edx; /* 0x47059B81: mov dword ptr [eax + 0xc], edx */ 442 ecx = MEM32(ecx + 0x10); /* 0x47059B84: mov ecx, dword ptr [ecx + 0x10] */ 443 MEM32(eax + 0x10) = ecx; /* 0x47059B87: mov dword ptr [eax + 0x10], ecx */ 444 MEM32(eax) = 0x470ADCF4u; /* 0x47059B8A: mov dword ptr [eax], 0x470adcf4 */ 445 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059B90: ret 4 */ 446 RECOMP_REGS_OUT(); 447 } 448 449 void sub_47059BA0(void) { 450 int _fpu_cmp = 0; 451 uint32_t _cf = 0; 452 int _df = 1; 453 uint32_t _flag_k = FK_NONE; 454 uint32_t _flag_a = 0, _flag_b = 0; 455 uint32_t _itail_tgt = 0; 456 RECOMP_REGS_LOCALS 457 RECOMP_ENTER(0x47059BA0u); 458 459 L_47059BA0: 460 PUSH32(esp, ebx); /* 0x47059BA0: push ebx */ 461 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47059BA1: mov bl, byte ptr [esp + 8] */ 462 /* test LO8(ebx), 2 */ /* 0x47059BA5: test bl, 2 */ 463 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 464 _cf = 0; 465 _flag_k = FK_NARROW(FK_TEST, 24); 466 PUSH32(esp, esi); /* 0x47059BA8: push esi */ 467 esi = ecx; /* 0x47059BA9: mov esi, ecx */ 468 if (TEST_Z(_flag_a, _flag_b)) goto L_47059BD8; /* 0x47059BAB: je 0x47059bd8 */ 469 L_47059BAD: 470 eax = MEM32(esi + (-0x4)); /* 0x47059BAD: mov eax, dword ptr [esi - 4] */ 471 PUSH32(esp, edi); /* 0x47059BB0: push edi */ 472 PUSH32(esp, 0x4705A790u); /* 0x47059BB1: push 0x4705a790 */ 473 edi = esi + (-0x4); /* 0x47059BB6: lea edi, [esi - 4] */ 474 PUSH32(esp, eax); /* 0x47059BB9: push eax */ 475 PUSH32(esp, 0x14u); /* 0x47059BBA: push 0x14 */ 476 PUSH32(esp, esi); /* 0x47059BBC: push esi */ 477 RECOMP_ICALL(0x470A32EBu); /* 0x47059BBD: call 0x470a32eb */ /* not lifted */ 478 RECOMP_FLAGS_IN(); 479 /* test LO8(ebx), 1 */ /* 0x47059BC2: test bl, 1 */ 480 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 481 _cf = 0; 482 _flag_k = FK_NARROW(FK_TEST, 24); 483 if (TEST_Z(_flag_a, _flag_b)) goto L_47059BD0; /* 0x47059BC5: je 0x47059bd0 */ 484 L_47059BC7: 485 PUSH32(esp, edi); /* 0x47059BC7: push edi */ 486 RECOMP_ICALL(0x470A32A2u); /* 0x47059BC8: call 0x470a32a2 */ /* not lifted */ 487 RECOMP_FLAGS_IN(); 488 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 489 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 490 esp = esp + 4; /* 0x47059BCD: add esp, 4 */ 491 _flag_k = FK_ADD; 492 L_47059BD0: 493 eax = edi; /* 0x47059BD0: mov eax, edi */ 494 edi = POP32_VAL(esp); /* 0x47059BD2: pop edi */ 495 esi = POP32_VAL(esp); /* 0x47059BD3: pop esi */ 496 ebx = POP32_VAL(esp); /* 0x47059BD4: pop ebx */ 497 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059BD5: ret 4 */ 498 L_47059BD8: 499 ecx = esi; /* 0x47059BD8: mov ecx, esi */ 500 RECOMP_ICALL(0x4705A790u); /* 0x47059BDA: call 0x4705a790 */ /* not lifted */ 501 RECOMP_FLAGS_IN(); 502 /* test LO8(ebx), 1 */ /* 0x47059BDF: test bl, 1 */ 503 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 504 _cf = 0; 505 _flag_k = FK_NARROW(FK_TEST, 24); 506 if (TEST_Z(_flag_a, _flag_b)) goto L_47059BED; /* 0x47059BE2: je 0x47059bed */ 507 L_47059BE4: 508 PUSH32(esp, esi); /* 0x47059BE4: push esi */ 509 RECOMP_ICALL(0x470A32A2u); /* 0x47059BE5: call 0x470a32a2 */ /* not lifted */ 510 RECOMP_FLAGS_IN(); 511 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 512 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 513 esp = esp + 4; /* 0x47059BEA: add esp, 4 */ 514 _flag_k = FK_ADD; 515 L_47059BED: 516 eax = esi; /* 0x47059BED: mov eax, esi */ 517 esi = POP32_VAL(esp); /* 0x47059BEF: pop esi */ 518 ebx = POP32_VAL(esp); /* 0x47059BF0: pop ebx */ 519 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059BF1: ret 4 */ 520 RECOMP_REGS_OUT(); 521 } 522 523 void sub_47059C00(void) { 524 int _fpu_cmp = 0; 525 uint32_t _cf = 0; 526 int _df = 1; 527 uint32_t _flag_k = FK_NONE; 528 uint32_t _flag_a = 0, _flag_b = 0; 529 uint32_t _itail_tgt = 0; 530 RECOMP_REGS_LOCALS 531 RECOMP_ENTER(0x47059C00u); 532 533 L_47059C00: 534 eax = ecx; /* 0x47059C00: mov eax, ecx */ 535 ecx = MEM32(esp + 0x4); /* 0x47059C02: mov ecx, dword ptr [esp + 4] */ 536 edx = MEM32(ecx + 0x4); /* 0x47059C06: mov edx, dword ptr [ecx + 4] */ 537 MEM32(eax + 0x4) = edx; /* 0x47059C09: mov dword ptr [eax + 4], edx */ 538 edx = MEM32(ecx + 0x8); /* 0x47059C0C: mov edx, dword ptr [ecx + 8] */ 539 MEM32(eax) = 0x470ADCC8u; /* 0x47059C0F: mov dword ptr [eax], 0x470adcc8 */ 540 MEM32(eax + 0x8) = edx; /* 0x47059C15: mov dword ptr [eax + 8], edx */ 541 edx = MEM32(ecx + 0xC); /* 0x47059C18: mov edx, dword ptr [ecx + 0xc] */ 542 MEM32(eax + 0xC) = edx; /* 0x47059C1B: mov dword ptr [eax + 0xc], edx */ 543 ecx = MEM32(ecx + 0x10); /* 0x47059C1E: mov ecx, dword ptr [ecx + 0x10] */ 544 MEM32(eax + 0x10) = ecx; /* 0x47059C21: mov dword ptr [eax + 0x10], ecx */ 545 MEM32(eax) = 0x470ADD00u; /* 0x47059C24: mov dword ptr [eax], 0x470add00 */ 546 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059C2A: ret 4 */ 547 RECOMP_REGS_OUT(); 548 } 549 550 void sub_47059C30(void) { 551 int _fpu_cmp = 0; 552 uint32_t _cf = 0; 553 int _df = 1; 554 uint32_t _flag_k = FK_NONE; 555 uint32_t _flag_a = 0, _flag_b = 0; 556 uint32_t _itail_tgt = 0; 557 RECOMP_REGS_LOCALS 558 RECOMP_ENTER(0x47059C30u); 559 560 L_47059C30: 561 PUSH32(esp, ebx); /* 0x47059C30: push ebx */ 562 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47059C31: mov bl, byte ptr [esp + 8] */ 563 /* test LO8(ebx), 2 */ /* 0x47059C35: test bl, 2 */ 564 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 565 _cf = 0; 566 _flag_k = FK_NARROW(FK_TEST, 24); 567 PUSH32(esp, esi); /* 0x47059C38: push esi */ 568 esi = ecx; /* 0x47059C39: mov esi, ecx */ 569 if (TEST_Z(_flag_a, _flag_b)) goto L_47059C68; /* 0x47059C3B: je 0x47059c68 */ 570 L_47059C3D: 571 eax = MEM32(esi + (-0x4)); /* 0x47059C3D: mov eax, dword ptr [esi - 4] */ 572 PUSH32(esp, edi); /* 0x47059C40: push edi */ 573 PUSH32(esp, 0x4705A130u); /* 0x47059C41: push 0x4705a130 */ 574 edi = esi + (-0x4); /* 0x47059C46: lea edi, [esi - 4] */ 575 PUSH32(esp, eax); /* 0x47059C49: push eax */ 576 PUSH32(esp, 0x14u); /* 0x47059C4A: push 0x14 */ 577 PUSH32(esp, esi); /* 0x47059C4C: push esi */ 578 RECOMP_ICALL(0x470A32EBu); /* 0x47059C4D: call 0x470a32eb */ /* not lifted */ 579 RECOMP_FLAGS_IN(); 580 /* test LO8(ebx), 1 */ /* 0x47059C52: test bl, 1 */ 581 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 582 _cf = 0; 583 _flag_k = FK_NARROW(FK_TEST, 24); 584 if (TEST_Z(_flag_a, _flag_b)) goto L_47059C60; /* 0x47059C55: je 0x47059c60 */ 585 L_47059C57: 586 PUSH32(esp, edi); /* 0x47059C57: push edi */ 587 RECOMP_ICALL(0x470A32A2u); /* 0x47059C58: call 0x470a32a2 */ /* not lifted */ 588 RECOMP_FLAGS_IN(); 589 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 590 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 591 esp = esp + 4; /* 0x47059C5D: add esp, 4 */ 592 _flag_k = FK_ADD; 593 L_47059C60: 594 eax = edi; /* 0x47059C60: mov eax, edi */ 595 edi = POP32_VAL(esp); /* 0x47059C62: pop edi */ 596 esi = POP32_VAL(esp); /* 0x47059C63: pop esi */ 597 ebx = POP32_VAL(esp); /* 0x47059C64: pop ebx */ 598 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059C65: ret 4 */ 599 L_47059C68: 600 ecx = esi; /* 0x47059C68: mov ecx, esi */ 601 RECOMP_ICALL(0x4705A130u); /* 0x47059C6A: call 0x4705a130 */ /* not lifted */ 602 RECOMP_FLAGS_IN(); 603 /* test LO8(ebx), 1 */ /* 0x47059C6F: test bl, 1 */ 604 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 605 _cf = 0; 606 _flag_k = FK_NARROW(FK_TEST, 24); 607 if (TEST_Z(_flag_a, _flag_b)) goto L_47059C7D; /* 0x47059C72: je 0x47059c7d */ 608 L_47059C74: 609 PUSH32(esp, esi); /* 0x47059C74: push esi */ 610 RECOMP_ICALL(0x470A32A2u); /* 0x47059C75: call 0x470a32a2 */ /* not lifted */ 611 RECOMP_FLAGS_IN(); 612 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 613 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 614 esp = esp + 4; /* 0x47059C7A: add esp, 4 */ 615 _flag_k = FK_ADD; 616 L_47059C7D: 617 eax = esi; /* 0x47059C7D: mov eax, esi */ 618 esi = POP32_VAL(esp); /* 0x47059C7F: pop esi */ 619 ebx = POP32_VAL(esp); /* 0x47059C80: pop ebx */ 620 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059C81: ret 4 */ 621 RECOMP_REGS_OUT(); 622 } 623 624 void sub_47059C90(void) { 625 int _fpu_cmp = 0; 626 uint32_t _cf = 0; 627 int _df = 1; 628 uint32_t _flag_k = FK_NONE; 629 uint32_t _flag_a = 0, _flag_b = 0; 630 uint32_t _itail_tgt = 0; 631 RECOMP_REGS_LOCALS 632 RECOMP_ENTER(0x47059C90u); 633 634 L_47059C90: 635 eax = ecx; /* 0x47059C90: mov eax, ecx */ 636 ecx = MEM32(esp + 0x4); /* 0x47059C92: mov ecx, dword ptr [esp + 4] */ 637 edx = MEM32(ecx + 0x4); /* 0x47059C96: mov edx, dword ptr [ecx + 4] */ 638 MEM32(eax + 0x4) = edx; /* 0x47059C99: mov dword ptr [eax + 4], edx */ 639 edx = MEM32(ecx + 0x8); /* 0x47059C9C: mov edx, dword ptr [ecx + 8] */ 640 MEM32(eax + 0x8) = edx; /* 0x47059C9F: mov dword ptr [eax + 8], edx */ 641 edx = MEM32(ecx + 0xC); /* 0x47059CA2: mov edx, dword ptr [ecx + 0xc] */ 642 MEM32(eax + 0xC) = edx; /* 0x47059CA5: mov dword ptr [eax + 0xc], edx */ 643 ecx = MEM32(ecx + 0x10); /* 0x47059CA8: mov ecx, dword ptr [ecx + 0x10] */ 644 MEM32(eax + 0x10) = ecx; /* 0x47059CAB: mov dword ptr [eax + 0x10], ecx */ 645 MEM32(eax) = 0x470ADD08u; /* 0x47059CAE: mov dword ptr [eax], 0x470add08 */ 646 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059CB4: ret 4 */ 647 RECOMP_REGS_OUT(); 648 } 649 650 void sub_47059CC0(void) { 651 int _fpu_cmp = 0; 652 uint32_t _cf = 0; 653 int _df = 1; 654 uint32_t _flag_k = FK_NONE; 655 uint32_t _flag_a = 0, _flag_b = 0; 656 uint32_t _itail_tgt = 0; 657 RECOMP_REGS_LOCALS 658 RECOMP_ENTER(0x47059CC0u); 659 660 L_47059CC0: 661 PUSH32(esp, ebx); /* 0x47059CC0: push ebx */ 662 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47059CC1: mov bl, byte ptr [esp + 8] */ 663 /* test LO8(ebx), 2 */ /* 0x47059CC5: test bl, 2 */ 664 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 665 _cf = 0; 666 _flag_k = FK_NARROW(FK_TEST, 24); 667 PUSH32(esp, esi); /* 0x47059CC8: push esi */ 668 esi = ecx; /* 0x47059CC9: mov esi, ecx */ 669 if (TEST_Z(_flag_a, _flag_b)) goto L_47059CF8; /* 0x47059CCB: je 0x47059cf8 */ 670 L_47059CCD: 671 eax = MEM32(esi + (-0x4)); /* 0x47059CCD: mov eax, dword ptr [esi - 4] */ 672 PUSH32(esp, edi); /* 0x47059CD0: push edi */ 673 PUSH32(esp, 0x4705A9A0u); /* 0x47059CD1: push 0x4705a9a0 */ 674 edi = esi + (-0x4); /* 0x47059CD6: lea edi, [esi - 4] */ 675 PUSH32(esp, eax); /* 0x47059CD9: push eax */ 676 PUSH32(esp, 0x14u); /* 0x47059CDA: push 0x14 */ 677 PUSH32(esp, esi); /* 0x47059CDC: push esi */ 678 RECOMP_ICALL(0x470A32EBu); /* 0x47059CDD: call 0x470a32eb */ /* not lifted */ 679 RECOMP_FLAGS_IN(); 680 /* test LO8(ebx), 1 */ /* 0x47059CE2: test bl, 1 */ 681 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 682 _cf = 0; 683 _flag_k = FK_NARROW(FK_TEST, 24); 684 if (TEST_Z(_flag_a, _flag_b)) goto L_47059CF0; /* 0x47059CE5: je 0x47059cf0 */ 685 L_47059CE7: 686 PUSH32(esp, edi); /* 0x47059CE7: push edi */ 687 RECOMP_ICALL(0x470A32A2u); /* 0x47059CE8: call 0x470a32a2 */ /* not lifted */ 688 RECOMP_FLAGS_IN(); 689 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 690 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 691 esp = esp + 4; /* 0x47059CED: add esp, 4 */ 692 _flag_k = FK_ADD; 693 L_47059CF0: 694 eax = edi; /* 0x47059CF0: mov eax, edi */ 695 edi = POP32_VAL(esp); /* 0x47059CF2: pop edi */ 696 esi = POP32_VAL(esp); /* 0x47059CF3: pop esi */ 697 ebx = POP32_VAL(esp); /* 0x47059CF4: pop ebx */ 698 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059CF5: ret 4 */ 699 L_47059CF8: 700 /* test LO8(ebx), 1 */ /* 0x47059CF8: test bl, 1 */ 701 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 702 _cf = 0; 703 _flag_k = FK_NARROW(FK_TEST, 24); 704 MEM32(esi) = 0x470ADD08u; /* 0x47059CFB: mov dword ptr [esi], 0x470add08 */ 705 if (TEST_Z(_flag_a, _flag_b)) goto L_47059D0C; /* 0x47059D01: je 0x47059d0c */ 706 L_47059D03: 707 PUSH32(esp, esi); /* 0x47059D03: push esi */ 708 RECOMP_ICALL(0x470A32A2u); /* 0x47059D04: call 0x470a32a2 */ /* not lifted */ 709 RECOMP_FLAGS_IN(); 710 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 711 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 712 esp = esp + 4; /* 0x47059D09: add esp, 4 */ 713 _flag_k = FK_ADD; 714 L_47059D0C: 715 eax = esi; /* 0x47059D0C: mov eax, esi */ 716 esi = POP32_VAL(esp); /* 0x47059D0E: pop esi */ 717 ebx = POP32_VAL(esp); /* 0x47059D0F: pop ebx */ 718 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059D10: ret 4 */ 719 RECOMP_REGS_OUT(); 720 } 721 722 void sub_47059D20(void) { 723 int _fpu_cmp = 0; 724 uint32_t _cf = 0; 725 int _df = 1; 726 uint32_t _flag_k = FK_NONE; 727 uint32_t _flag_a = 0, _flag_b = 0; 728 uint32_t _itail_tgt = 0; 729 RECOMP_REGS_LOCALS 730 RECOMP_ENTER(0x47059D20u); 731 732 L_47059D20: 733 eax = ecx; /* 0x47059D20: mov eax, ecx */ 734 ecx = MEM32(esp + 0x4); /* 0x47059D22: mov ecx, dword ptr [esp + 4] */ 735 edx = MEM32(ecx + 0x4); /* 0x47059D26: mov edx, dword ptr [ecx + 4] */ 736 MEM32(eax + 0x4) = edx; /* 0x47059D29: mov dword ptr [eax + 4], edx */ 737 edx = MEM32(ecx + 0x8); /* 0x47059D2C: mov edx, dword ptr [ecx + 8] */ 738 MEM32(eax + 0x8) = edx; /* 0x47059D2F: mov dword ptr [eax + 8], edx */ 739 edx = MEM32(ecx + 0xC); /* 0x47059D32: mov edx, dword ptr [ecx + 0xc] */ 740 MEM32(eax + 0xC) = edx; /* 0x47059D35: mov dword ptr [eax + 0xc], edx */ 741 edx = MEM32(ecx + 0x10); /* 0x47059D38: mov edx, dword ptr [ecx + 0x10] */ 742 MEM32(eax) = 0x470ADD08u; /* 0x47059D3B: mov dword ptr [eax], 0x470add08 */ 743 MEM32(eax + 0x10) = edx; /* 0x47059D41: mov dword ptr [eax + 0x10], edx */ 744 ecx = MEM32(ecx + 0x14); /* 0x47059D44: mov ecx, dword ptr [ecx + 0x14] */ 745 MEM32(eax + 0x14) = ecx; /* 0x47059D47: mov dword ptr [eax + 0x14], ecx */ 746 MEM32(eax) = 0x470ADD14u; /* 0x47059D4A: mov dword ptr [eax], 0x470add14 */ 747 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059D50: ret 4 */ 748 RECOMP_REGS_OUT(); 749 } 750 751 void sub_47059D60(void) { 752 int _fpu_cmp = 0; 753 uint32_t _cf = 0; 754 int _df = 1; 755 uint32_t _flag_k = FK_NONE; 756 uint32_t _flag_a = 0, _flag_b = 0; 757 uint32_t _itail_tgt = 0; 758 RECOMP_REGS_LOCALS 759 RECOMP_ENTER(0x47059D60u); 760 761 L_47059D60: 762 eax = ecx; /* 0x47059D60: mov eax, ecx */ 763 ecx = MEM32(esp + 0x4); /* 0x47059D62: mov ecx, dword ptr [esp + 4] */ 764 edx = MEM32(ecx + 0x4); /* 0x47059D66: mov edx, dword ptr [ecx + 4] */ 765 MEM32(eax + 0x4) = edx; /* 0x47059D69: mov dword ptr [eax + 4], edx */ 766 edx = MEM32(ecx + 0x8); /* 0x47059D6C: mov edx, dword ptr [ecx + 8] */ 767 MEM32(eax + 0x8) = edx; /* 0x47059D6F: mov dword ptr [eax + 8], edx */ 768 edx = MEM32(ecx + 0xC); /* 0x47059D72: mov edx, dword ptr [ecx + 0xc] */ 769 MEM32(eax + 0xC) = edx; /* 0x47059D75: mov dword ptr [eax + 0xc], edx */ 770 edx = MEM32(ecx + 0x10); /* 0x47059D78: mov edx, dword ptr [ecx + 0x10] */ 771 MEM32(eax + 0x10) = edx; /* 0x47059D7B: mov dword ptr [eax + 0x10], edx */ 772 ecx = MEM32(ecx + 0x14); /* 0x47059D7E: mov ecx, dword ptr [ecx + 0x14] */ 773 MEM32(eax + 0x14) = ecx; /* 0x47059D81: mov dword ptr [eax + 0x14], ecx */ 774 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059D84: ret 4 */ 775 RECOMP_REGS_OUT(); 776 } 777 778 void sub_47059D90(void) { 779 int _fpu_cmp = 0; 780 uint32_t _cf = 0; 781 int _df = 1; 782 uint32_t _flag_k = FK_NONE; 783 uint32_t _flag_a = 0, _flag_b = 0; 784 uint32_t _itail_tgt = 0; 785 RECOMP_REGS_LOCALS 786 RECOMP_ENTER(0x47059D90u); 787 788 L_47059D90: 789 PUSH32(esp, ebx); /* 0x47059D90: push ebx */ 790 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47059D91: mov bl, byte ptr [esp + 8] */ 791 /* test LO8(ebx), 2 */ /* 0x47059D95: test bl, 2 */ 792 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 793 _cf = 0; 794 _flag_k = FK_NARROW(FK_TEST, 24); 795 PUSH32(esp, esi); /* 0x47059D98: push esi */ 796 esi = ecx; /* 0x47059D99: mov esi, ecx */ 797 if (TEST_Z(_flag_a, _flag_b)) goto L_47059DC8; /* 0x47059D9B: je 0x47059dc8 */ 798 L_47059D9D: 799 eax = MEM32(esi + (-0x4)); /* 0x47059D9D: mov eax, dword ptr [esi - 4] */ 800 PUSH32(esp, edi); /* 0x47059DA0: push edi */ 801 PUSH32(esp, 0x4705AE40u); /* 0x47059DA1: push 0x4705ae40 */ 802 edi = esi + (-0x4); /* 0x47059DA6: lea edi, [esi - 4] */ 803 PUSH32(esp, eax); /* 0x47059DA9: push eax */ 804 PUSH32(esp, 0x18u); /* 0x47059DAA: push 0x18 */ 805 PUSH32(esp, esi); /* 0x47059DAC: push esi */ 806 RECOMP_ICALL(0x470A32EBu); /* 0x47059DAD: call 0x470a32eb */ /* not lifted */ 807 RECOMP_FLAGS_IN(); 808 /* test LO8(ebx), 1 */ /* 0x47059DB2: test bl, 1 */ 809 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 810 _cf = 0; 811 _flag_k = FK_NARROW(FK_TEST, 24); 812 if (TEST_Z(_flag_a, _flag_b)) goto L_47059DC0; /* 0x47059DB5: je 0x47059dc0 */ 813 L_47059DB7: 814 PUSH32(esp, edi); /* 0x47059DB7: push edi */ 815 RECOMP_ICALL(0x470A32A2u); /* 0x47059DB8: call 0x470a32a2 */ /* not lifted */ 816 RECOMP_FLAGS_IN(); 817 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 818 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 819 esp = esp + 4; /* 0x47059DBD: add esp, 4 */ 820 _flag_k = FK_ADD; 821 L_47059DC0: 822 eax = edi; /* 0x47059DC0: mov eax, edi */ 823 edi = POP32_VAL(esp); /* 0x47059DC2: pop edi */ 824 esi = POP32_VAL(esp); /* 0x47059DC3: pop esi */ 825 ebx = POP32_VAL(esp); /* 0x47059DC4: pop ebx */ 826 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059DC5: ret 4 */ 827 L_47059DC8: 828 ecx = esi; /* 0x47059DC8: mov ecx, esi */ 829 RECOMP_ICALL(0x4705AE40u); /* 0x47059DCA: call 0x4705ae40 */ /* not lifted */ 830 RECOMP_FLAGS_IN(); 831 /* test LO8(ebx), 1 */ /* 0x47059DCF: test bl, 1 */ 832 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 833 _cf = 0; 834 _flag_k = FK_NARROW(FK_TEST, 24); 835 if (TEST_Z(_flag_a, _flag_b)) goto L_47059DDD; /* 0x47059DD2: je 0x47059ddd */ 836 L_47059DD4: 837 PUSH32(esp, esi); /* 0x47059DD4: push esi */ 838 RECOMP_ICALL(0x470A32A2u); /* 0x47059DD5: call 0x470a32a2 */ /* not lifted */ 839 RECOMP_FLAGS_IN(); 840 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 841 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 842 esp = esp + 4; /* 0x47059DDA: add esp, 4 */ 843 _flag_k = FK_ADD; 844 L_47059DDD: 845 eax = esi; /* 0x47059DDD: mov eax, esi */ 846 esi = POP32_VAL(esp); /* 0x47059DDF: pop esi */ 847 ebx = POP32_VAL(esp); /* 0x47059DE0: pop ebx */ 848 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059DE1: ret 4 */ 849 RECOMP_REGS_OUT(); 850 } 851 852 void sub_47059DF0(void) { 853 int _fpu_cmp = 0; 854 uint32_t _cf = 0; 855 int _df = 1; 856 uint32_t _flag_k = FK_NONE; 857 uint32_t _flag_a = 0, _flag_b = 0; 858 uint32_t _itail_tgt = 0; 859 RECOMP_REGS_LOCALS 860 RECOMP_ENTER(0x47059DF0u); 861 862 L_47059DF0: 863 eax = ecx; /* 0x47059DF0: mov eax, ecx */ 864 ecx = MEM32(esp + 0x4); /* 0x47059DF2: mov ecx, dword ptr [esp + 4] */ 865 edx = MEM32(ecx + 0x4); /* 0x47059DF6: mov edx, dword ptr [ecx + 4] */ 866 MEM32(eax + 0x4) = edx; /* 0x47059DF9: mov dword ptr [eax + 4], edx */ 867 edx = MEM32(ecx + 0x8); /* 0x47059DFC: mov edx, dword ptr [ecx + 8] */ 868 MEM32(eax + 0x8) = edx; /* 0x47059DFF: mov dword ptr [eax + 8], edx */ 869 edx = MEM32(ecx + 0xC); /* 0x47059E02: mov edx, dword ptr [ecx + 0xc] */ 870 MEM32(eax + 0xC) = edx; /* 0x47059E05: mov dword ptr [eax + 0xc], edx */ 871 edx = MEM32(ecx + 0x10); /* 0x47059E08: mov edx, dword ptr [ecx + 0x10] */ 872 MEM32(eax) = 0x470ADD08u; /* 0x47059E0B: mov dword ptr [eax], 0x470add08 */ 873 MEM32(eax + 0x10) = edx; /* 0x47059E11: mov dword ptr [eax + 0x10], edx */ 874 ecx = MEM32(ecx + 0x14); /* 0x47059E14: mov ecx, dword ptr [ecx + 0x14] */ 875 MEM32(eax + 0x14) = ecx; /* 0x47059E17: mov dword ptr [eax + 0x14], ecx */ 876 MEM32(eax) = 0x470ADD20u; /* 0x47059E1A: mov dword ptr [eax], 0x470add20 */ 877 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059E20: ret 4 */ 878 RECOMP_REGS_OUT(); 879 } 880 881 void sub_47059E30(void) { 882 int _fpu_cmp = 0; 883 uint32_t _cf = 0; 884 int _df = 1; 885 uint32_t _flag_k = FK_NONE; 886 uint32_t _flag_a = 0, _flag_b = 0; 887 uint32_t _itail_tgt = 0; 888 RECOMP_REGS_LOCALS 889 RECOMP_ENTER(0x47059E30u); 890 891 L_47059E30: 892 PUSH32(esp, ebx); /* 0x47059E30: push ebx */ 893 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47059E31: mov bl, byte ptr [esp + 8] */ 894 /* test LO8(ebx), 2 */ /* 0x47059E35: test bl, 2 */ 895 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 896 _cf = 0; 897 _flag_k = FK_NARROW(FK_TEST, 24); 898 PUSH32(esp, esi); /* 0x47059E38: push esi */ 899 esi = ecx; /* 0x47059E39: mov esi, ecx */ 900 if (TEST_Z(_flag_a, _flag_b)) goto L_47059E68; /* 0x47059E3B: je 0x47059e68 */ 901 L_47059E3D: 902 eax = MEM32(esi + (-0x4)); /* 0x47059E3D: mov eax, dword ptr [esi - 4] */ 903 PUSH32(esp, edi); /* 0x47059E40: push edi */ 904 PUSH32(esp, 0x4705B160u); /* 0x47059E41: push 0x4705b160 */ 905 edi = esi + (-0x4); /* 0x47059E46: lea edi, [esi - 4] */ 906 PUSH32(esp, eax); /* 0x47059E49: push eax */ 907 PUSH32(esp, 0x18u); /* 0x47059E4A: push 0x18 */ 908 PUSH32(esp, esi); /* 0x47059E4C: push esi */ 909 RECOMP_ICALL(0x470A32EBu); /* 0x47059E4D: call 0x470a32eb */ /* not lifted */ 910 RECOMP_FLAGS_IN(); 911 /* test LO8(ebx), 1 */ /* 0x47059E52: test bl, 1 */ 912 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 913 _cf = 0; 914 _flag_k = FK_NARROW(FK_TEST, 24); 915 if (TEST_Z(_flag_a, _flag_b)) goto L_47059E60; /* 0x47059E55: je 0x47059e60 */ 916 L_47059E57: 917 PUSH32(esp, edi); /* 0x47059E57: push edi */ 918 RECOMP_ICALL(0x470A32A2u); /* 0x47059E58: call 0x470a32a2 */ /* not lifted */ 919 RECOMP_FLAGS_IN(); 920 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 921 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 922 esp = esp + 4; /* 0x47059E5D: add esp, 4 */ 923 _flag_k = FK_ADD; 924 L_47059E60: 925 eax = edi; /* 0x47059E60: mov eax, edi */ 926 edi = POP32_VAL(esp); /* 0x47059E62: pop edi */ 927 esi = POP32_VAL(esp); /* 0x47059E63: pop esi */ 928 ebx = POP32_VAL(esp); /* 0x47059E64: pop ebx */ 929 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059E65: ret 4 */ 930 L_47059E68: 931 ecx = esi; /* 0x47059E68: mov ecx, esi */ 932 RECOMP_ICALL(0x4705B160u); /* 0x47059E6A: call 0x4705b160 */ /* not lifted */ 933 RECOMP_FLAGS_IN(); 934 /* test LO8(ebx), 1 */ /* 0x47059E6F: test bl, 1 */ 935 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 936 _cf = 0; 937 _flag_k = FK_NARROW(FK_TEST, 24); 938 if (TEST_Z(_flag_a, _flag_b)) goto L_47059E7D; /* 0x47059E72: je 0x47059e7d */ 939 L_47059E74: 940 PUSH32(esp, esi); /* 0x47059E74: push esi */ 941 RECOMP_ICALL(0x470A32A2u); /* 0x47059E75: call 0x470a32a2 */ /* not lifted */ 942 RECOMP_FLAGS_IN(); 943 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 944 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 945 esp = esp + 4; /* 0x47059E7A: add esp, 4 */ 946 _flag_k = FK_ADD; 947 L_47059E7D: 948 eax = esi; /* 0x47059E7D: mov eax, esi */ 949 esi = POP32_VAL(esp); /* 0x47059E7F: pop esi */ 950 ebx = POP32_VAL(esp); /* 0x47059E80: pop ebx */ 951 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059E81: ret 4 */ 952 RECOMP_REGS_OUT(); 953 } 954 955 void sub_47059E90(void) { 956 int _fpu_cmp = 0; 957 uint32_t _cf = 0; 958 int _df = 1; 959 uint32_t _flag_k = FK_NONE; 960 uint32_t _flag_a = 0, _flag_b = 0; 961 uint32_t _itail_tgt = 0; 962 RECOMP_REGS_LOCALS 963 RECOMP_ENTER(0x47059E90u); 964 965 L_47059E90: 966 eax = ecx; /* 0x47059E90: mov eax, ecx */ 967 ecx = MEM32(esp + 0x4); /* 0x47059E92: mov ecx, dword ptr [esp + 4] */ 968 edx = MEM32(ecx + 0x4); /* 0x47059E96: mov edx, dword ptr [ecx + 4] */ 969 MEM32(eax + 0x4) = edx; /* 0x47059E99: mov dword ptr [eax + 4], edx */ 970 edx = MEM32(ecx + 0x8); /* 0x47059E9C: mov edx, dword ptr [ecx + 8] */ 971 MEM32(eax) = 0x470ADCC8u; /* 0x47059E9F: mov dword ptr [eax], 0x470adcc8 */ 972 MEM32(eax + 0x8) = edx; /* 0x47059EA5: mov dword ptr [eax + 8], edx */ 973 edx = MEM32(ecx + 0xC); /* 0x47059EA8: mov edx, dword ptr [ecx + 0xc] */ 974 MEM32(eax + 0xC) = edx; /* 0x47059EAB: mov dword ptr [eax + 0xc], edx */ 975 ecx = MEM32(ecx + 0x10); /* 0x47059EAE: mov ecx, dword ptr [ecx + 0x10] */ 976 MEM32(eax + 0x10) = ecx; /* 0x47059EB1: mov dword ptr [eax + 0x10], ecx */ 977 MEM32(eax) = 0x470ADD2Cu; /* 0x47059EB4: mov dword ptr [eax], 0x470add2c */ 978 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059EBA: ret 4 */ 979 RECOMP_REGS_OUT(); 980 } 981 982 void sub_47059EC0(void) { 983 int _fpu_cmp = 0; 984 uint32_t _cf = 0; 985 int _df = 1; 986 uint32_t _flag_k = FK_NONE; 987 uint32_t _flag_a = 0, _flag_b = 0; 988 uint32_t _itail_tgt = 0; 989 RECOMP_REGS_LOCALS 990 RECOMP_ENTER(0x47059EC0u); 991 992 L_47059EC0: 993 PUSH32(esp, ebx); /* 0x47059EC0: push ebx */ 994 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47059EC1: mov bl, byte ptr [esp + 8] */ 995 /* test LO8(ebx), 2 */ /* 0x47059EC5: test bl, 2 */ 996 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 997 _cf = 0; 998 _flag_k = FK_NARROW(FK_TEST, 24); 999 PUSH32(esp, esi); /* 0x47059EC8: push esi */ 1000 esi = ecx; /* 0x47059EC9: mov esi, ecx */ 1001 if (TEST_Z(_flag_a, _flag_b)) goto L_47059EF8; /* 0x47059ECB: je 0x47059ef8 */ 1002 L_47059ECD: 1003 eax = MEM32(esi + (-0x4)); /* 0x47059ECD: mov eax, dword ptr [esi - 4] */ 1004 PUSH32(esp, edi); /* 0x47059ED0: push edi */ 1005 PUSH32(esp, 0x4705B280u); /* 0x47059ED1: push 0x4705b280 */ 1006 edi = esi + (-0x4); /* 0x47059ED6: lea edi, [esi - 4] */ 1007 PUSH32(esp, eax); /* 0x47059ED9: push eax */ 1008 PUSH32(esp, 0x14u); /* 0x47059EDA: push 0x14 */ 1009 PUSH32(esp, esi); /* 0x47059EDC: push esi */ 1010 RECOMP_ICALL(0x470A32EBu); /* 0x47059EDD: call 0x470a32eb */ /* not lifted */ 1011 RECOMP_FLAGS_IN(); 1012 /* test LO8(ebx), 1 */ /* 0x47059EE2: test bl, 1 */ 1013 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1014 _cf = 0; 1015 _flag_k = FK_NARROW(FK_TEST, 24); 1016 if (TEST_Z(_flag_a, _flag_b)) goto L_47059EF0; /* 0x47059EE5: je 0x47059ef0 */ 1017 L_47059EE7: 1018 PUSH32(esp, edi); /* 0x47059EE7: push edi */ 1019 RECOMP_ICALL(0x470A32A2u); /* 0x47059EE8: call 0x470a32a2 */ /* not lifted */ 1020 RECOMP_FLAGS_IN(); 1021 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1022 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1023 esp = esp + 4; /* 0x47059EED: add esp, 4 */ 1024 _flag_k = FK_ADD; 1025 L_47059EF0: 1026 eax = edi; /* 0x47059EF0: mov eax, edi */ 1027 edi = POP32_VAL(esp); /* 0x47059EF2: pop edi */ 1028 esi = POP32_VAL(esp); /* 0x47059EF3: pop esi */ 1029 ebx = POP32_VAL(esp); /* 0x47059EF4: pop ebx */ 1030 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059EF5: ret 4 */ 1031 L_47059EF8: 1032 ecx = esi; /* 0x47059EF8: mov ecx, esi */ 1033 RECOMP_ICALL(0x4705B280u); /* 0x47059EFA: call 0x4705b280 */ /* not lifted */ 1034 RECOMP_FLAGS_IN(); 1035 /* test LO8(ebx), 1 */ /* 0x47059EFF: test bl, 1 */ 1036 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1037 _cf = 0; 1038 _flag_k = FK_NARROW(FK_TEST, 24); 1039 if (TEST_Z(_flag_a, _flag_b)) goto L_47059F0D; /* 0x47059F02: je 0x47059f0d */ 1040 L_47059F04: 1041 PUSH32(esp, esi); /* 0x47059F04: push esi */ 1042 RECOMP_ICALL(0x470A32A2u); /* 0x47059F05: call 0x470a32a2 */ /* not lifted */ 1043 RECOMP_FLAGS_IN(); 1044 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1045 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1046 esp = esp + 4; /* 0x47059F0A: add esp, 4 */ 1047 _flag_k = FK_ADD; 1048 L_47059F0D: 1049 eax = esi; /* 0x47059F0D: mov eax, esi */ 1050 esi = POP32_VAL(esp); /* 0x47059F0F: pop esi */ 1051 ebx = POP32_VAL(esp); /* 0x47059F10: pop ebx */ 1052 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059F11: ret 4 */ 1053 RECOMP_REGS_OUT(); 1054 } 1055 1056 void sub_47059F20(void) { 1057 int _fpu_cmp = 0; 1058 uint32_t _cf = 0; 1059 int _df = 1; 1060 uint32_t _flag_k = FK_NONE; 1061 uint32_t _flag_a = 0, _flag_b = 0; 1062 uint32_t _itail_tgt = 0; 1063 RECOMP_REGS_LOCALS 1064 RECOMP_ENTER(0x47059F20u); 1065 1066 L_47059F20: 1067 eax = ecx; /* 0x47059F20: mov eax, ecx */ 1068 ecx = MEM32(esp + 0x4); /* 0x47059F22: mov ecx, dword ptr [esp + 4] */ 1069 edx = MEM32(ecx + 0x4); /* 0x47059F26: mov edx, dword ptr [ecx + 4] */ 1070 MEM32(eax + 0x4) = edx; /* 0x47059F29: mov dword ptr [eax + 4], edx */ 1071 edx = MEM32(ecx + 0x8); /* 0x47059F2C: mov edx, dword ptr [ecx + 8] */ 1072 MEM32(eax + 0x8) = edx; /* 0x47059F2F: mov dword ptr [eax + 8], edx */ 1073 edx = MEM32(ecx + 0xC); /* 0x47059F32: mov edx, dword ptr [ecx + 0xc] */ 1074 MEM32(eax + 0xC) = edx; /* 0x47059F35: mov dword ptr [eax + 0xc], edx */ 1075 edx = MEM32(ecx + 0x10); /* 0x47059F38: mov edx, dword ptr [ecx + 0x10] */ 1076 MEM32(eax) = 0x470ADD08u; /* 0x47059F3B: mov dword ptr [eax], 0x470add08 */ 1077 MEM32(eax + 0x10) = edx; /* 0x47059F41: mov dword ptr [eax + 0x10], edx */ 1078 ecx = MEM32(ecx + 0x14); /* 0x47059F44: mov ecx, dword ptr [ecx + 0x14] */ 1079 MEM32(eax + 0x14) = ecx; /* 0x47059F47: mov dword ptr [eax + 0x14], ecx */ 1080 MEM32(eax) = 0x470ADD34u; /* 0x47059F4A: mov dword ptr [eax], 0x470add34 */ 1081 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059F50: ret 4 */ 1082 RECOMP_REGS_OUT(); 1083 } 1084 1085 void sub_47059F60(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(0x47059F60u); 1094 1095 L_47059F60: 1096 PUSH32(esp, ebx); /* 0x47059F60: push ebx */ 1097 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47059F61: mov bl, byte ptr [esp + 8] */ 1098 /* test LO8(ebx), 2 */ /* 0x47059F65: test bl, 2 */ 1099 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 1100 _cf = 0; 1101 _flag_k = FK_NARROW(FK_TEST, 24); 1102 PUSH32(esp, esi); /* 0x47059F68: push esi */ 1103 esi = ecx; /* 0x47059F69: mov esi, ecx */ 1104 if (TEST_Z(_flag_a, _flag_b)) goto L_47059F98; /* 0x47059F6B: je 0x47059f98 */ 1105 L_47059F6D: 1106 eax = MEM32(esi + (-0x4)); /* 0x47059F6D: mov eax, dword ptr [esi - 4] */ 1107 PUSH32(esp, edi); /* 0x47059F70: push edi */ 1108 PUSH32(esp, 0x4705B520u); /* 0x47059F71: push 0x4705b520 */ 1109 edi = esi + (-0x4); /* 0x47059F76: lea edi, [esi - 4] */ 1110 PUSH32(esp, eax); /* 0x47059F79: push eax */ 1111 PUSH32(esp, 0x18u); /* 0x47059F7A: push 0x18 */ 1112 PUSH32(esp, esi); /* 0x47059F7C: push esi */ 1113 RECOMP_ICALL(0x470A32EBu); /* 0x47059F7D: call 0x470a32eb */ /* not lifted */ 1114 RECOMP_FLAGS_IN(); 1115 /* test LO8(ebx), 1 */ /* 0x47059F82: test bl, 1 */ 1116 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1117 _cf = 0; 1118 _flag_k = FK_NARROW(FK_TEST, 24); 1119 if (TEST_Z(_flag_a, _flag_b)) goto L_47059F90; /* 0x47059F85: je 0x47059f90 */ 1120 L_47059F87: 1121 PUSH32(esp, edi); /* 0x47059F87: push edi */ 1122 RECOMP_ICALL(0x470A32A2u); /* 0x47059F88: call 0x470a32a2 */ /* not lifted */ 1123 RECOMP_FLAGS_IN(); 1124 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1125 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1126 esp = esp + 4; /* 0x47059F8D: add esp, 4 */ 1127 _flag_k = FK_ADD; 1128 L_47059F90: 1129 eax = edi; /* 0x47059F90: mov eax, edi */ 1130 edi = POP32_VAL(esp); /* 0x47059F92: pop edi */ 1131 esi = POP32_VAL(esp); /* 0x47059F93: pop esi */ 1132 ebx = POP32_VAL(esp); /* 0x47059F94: pop ebx */ 1133 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059F95: ret 4 */ 1134 L_47059F98: 1135 ecx = esi; /* 0x47059F98: mov ecx, esi */ 1136 RECOMP_ICALL(0x4705B520u); /* 0x47059F9A: call 0x4705b520 */ /* not lifted */ 1137 RECOMP_FLAGS_IN(); 1138 /* test LO8(ebx), 1 */ /* 0x47059F9F: test bl, 1 */ 1139 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1140 _cf = 0; 1141 _flag_k = FK_NARROW(FK_TEST, 24); 1142 if (TEST_Z(_flag_a, _flag_b)) goto L_47059FAD; /* 0x47059FA2: je 0x47059fad */ 1143 L_47059FA4: 1144 PUSH32(esp, esi); /* 0x47059FA4: push esi */ 1145 RECOMP_ICALL(0x470A32A2u); /* 0x47059FA5: call 0x470a32a2 */ /* not lifted */ 1146 RECOMP_FLAGS_IN(); 1147 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1148 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1149 esp = esp + 4; /* 0x47059FAA: add esp, 4 */ 1150 _flag_k = FK_ADD; 1151 L_47059FAD: 1152 eax = esi; /* 0x47059FAD: mov eax, esi */ 1153 esi = POP32_VAL(esp); /* 0x47059FAF: pop esi */ 1154 ebx = POP32_VAL(esp); /* 0x47059FB0: pop ebx */ 1155 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47059FB1: ret 4 */ 1156 RECOMP_REGS_OUT(); 1157 } 1158 1159 void sub_47059FC0(void) { 1160 int _fpu_cmp = 0; 1161 uint32_t _cf = 0; 1162 int _df = 1; 1163 uint32_t _flag_k = FK_NONE; 1164 uint32_t _flag_a = 0, _flag_b = 0; 1165 uint32_t _itail_tgt = 0; 1166 RECOMP_REGS_LOCALS 1167 RECOMP_ENTER(0x47059FC0u); 1168 1169 L_47059FC0: 1170 PUSH32(esp, esi); /* 0x47059FC0: push esi */ 1171 esi = ecx; /* 0x47059FC1: mov esi, ecx */ 1172 eax = MEM32(esi + 0x4); /* 0x47059FC3: mov eax, dword ptr [esi + 4] */ 1173 PUSH32(esp, eax); /* 0x47059FC6: push eax */ 1174 MEM32(esi) = 0x470ADCC8u; /* 0x47059FC7: mov dword ptr [esi], 0x470adcc8 */ 1175 RECOMP_ICALL(0x470A32A2u); /* 0x47059FCD: call 0x470a32a2 */ /* not lifted */ 1176 RECOMP_FLAGS_IN(); 1177 ecx = MEM32(esi + 0x8); /* 0x47059FD2: mov ecx, dword ptr [esi + 8] */ 1178 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1179 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1180 esp = esp + 4; /* 0x47059FD5: add esp, 4 */ 1181 _flag_k = FK_ADD; 1182 /* test ecx, ecx */ /* 0x47059FD8: test ecx, ecx */ 1183 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1184 _cf = 0; 1185 _flag_k = FK_TEST; 1186 esi = POP32_VAL(esp); /* 0x47059FDA: pop esi */ 1187 if (TEST_Z(_flag_a, _flag_b)) goto L_47059FE3; /* 0x47059FDB: je 0x47059fe3 */ 1188 L_47059FDD: 1189 edx = MEM32(ecx); /* 0x47059FDD: mov edx, dword ptr [ecx] */ 1190 PUSH32(esp, 1); /* 0x47059FDF: push 1 */ 1191 RECOMP_ICALL(MEM32(edx)); /* 0x47059FE1: call dword ptr [edx] */ 1192 RECOMP_FLAGS_IN(); 1193 L_47059FE3: 1194 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47059FE3: ret */ 1195 RECOMP_REGS_OUT(); 1196 } 1197 1198 void sub_47059FF0(void) { 1199 int _fpu_cmp = 0; 1200 uint32_t _cf = 0; 1201 int _df = 1; 1202 uint32_t _flag_k = FK_NONE; 1203 uint32_t _flag_a = 0, _flag_b = 0; 1204 uint32_t _itail_tgt = 0; 1205 RECOMP_REGS_LOCALS 1206 RECOMP_ENTER(0x47059FF0u); 1207 1208 L_47059FF0: 1209 MEM32(0x4710EA14) = 0x47109238u; /* 0x47059FF0: mov dword ptr [0x4710ea14], 0x47109238 */ 1210 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47059FFA: ret */ 1211 RECOMP_REGS_OUT(); 1212 } 1213 1214 void sub_4705A000(void) { 1215 int _fpu_cmp = 0; 1216 uint32_t _cf = 0; 1217 int _df = 1; 1218 uint32_t _flag_k = FK_NONE; 1219 uint32_t _flag_a = 0, _flag_b = 0; 1220 uint32_t _itail_tgt = 0; 1221 RECOMP_REGS_LOCALS 1222 RECOMP_ENTER(0x4705A000u); 1223 1224 L_4705A000: 1225 PUSH32(esp, ebx); /* 0x4705A000: push ebx */ 1226 ebx = ecx; /* 0x4705A001: mov ebx, ecx */ 1227 ecx = MEM32(ebx + 0xC); /* 0x4705A003: mov ecx, dword ptr [ebx + 0xc] */ 1228 eax = MEM32(ecx + 0xC); /* 0x4705A006: mov eax, dword ptr [ecx + 0xc] */ 1229 PUSH32(esp, eax); /* 0x4705A009: push eax */ 1230 eax = MEM32(ecx); /* 0x4705A00A: mov eax, dword ptr [ecx] */ 1231 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x4705A00C: call dword ptr [eax + 8] */ 1232 RECOMP_FLAGS_IN(); 1233 PUSH32(esp, eax); /* 0x4705A00F: push eax */ 1234 RECOMP_ICALL(0x47075020u); /* 0x4705A010: call 0x47075020 */ /* not lifted */ 1235 RECOMP_FLAGS_IN(); 1236 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1237 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1238 esp = esp + 8; /* 0x4705A015: add esp, 8 */ 1239 _flag_k = FK_ADD; 1240 /* cmp eax, 0xFFFFFFFFu */ /* 0x4705A018: cmp eax, -1 */ 1241 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 1242 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1243 _flag_k = FK_CMP; 1244 if (CMP_NE(_flag_a, _flag_b)) goto L_4705A023; /* 0x4705A01B: jne 0x4705a023 */ 1245 L_4705A01D: 1246 _flag_a = (uint32_t)(MEM32(0x4710F150)); _flag_b = (uint32_t)(1); 1247 MEM32(0x4710F150) = MEM32(0x4710F150) + 1; /* 0x4705A01D: inc dword ptr [0x4710f150] */ 1248 _flag_k = FK_INC; 1249 L_4705A023: 1250 SET_LO8(eax, MEM8(0x4710DE04)); /* 0x4705A023: mov al, byte ptr [0x4710de04] */ 1251 /* test LO8(eax), LO8(eax) */ /* 0x4705A028: test al, al */ 1252 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1253 _cf = 0; 1254 _flag_k = FK_NARROW(FK_TEST, 24); 1255 if (TEST_Z(_flag_a, _flag_b)) goto L_4705A094; /* 0x4705A02A: je 0x4705a094 */ 1256 L_4705A02C: 1257 PUSH32(esp, esi); /* 0x4705A02C: push esi */ 1258 PUSH32(esp, edi); /* 0x4705A02D: push edi */ 1259 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4705A02E: call dword ptr [0x470ac150] */ 1260 RECOMP_FLAGS_IN(); 1261 edi = eax; /* 0x4705A034: mov edi, eax */ 1262 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4705A036: call dword ptr [0x470ac3c8] */ 1263 RECOMP_FLAGS_IN(); 1264 eax = MEM32(eax); /* 0x4705A03C: mov eax, dword ptr [eax] */ 1265 /* test eax, eax */ /* 0x4705A03E: test eax, eax */ 1266 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1267 _cf = 0; 1268 _flag_k = FK_TEST; 1269 if (TEST_Z(_flag_a, _flag_b)) goto L_4705A044; /* 0x4705A040: je 0x4705a044 */ 1270 L_4705A042: 1271 edi = eax; /* 0x4705A042: mov edi, eax */ 1272 L_4705A044: 1273 RECOMP_ICALL(0x47039020u); /* 0x4705A044: call 0x47039020 */ /* not lifted */ 1274 RECOMP_FLAGS_IN(); 1275 esi = eax; /* 0x4705A049: mov esi, eax */ 1276 ecx = esi; /* 0x4705A04B: mov ecx, esi */ 1277 RECOMP_ICALL(0x4703B210u); /* 0x4705A04D: call 0x4703b210 */ /* not lifted */ 1278 RECOMP_FLAGS_IN(); 1279 PUSH32(esp, eax); /* 0x4705A052: push eax */ 1280 ecx = esi; /* 0x4705A053: mov ecx, esi */ 1281 RECOMP_ICALL(0x4703B240u); /* 0x4705A055: call 0x4703b240 */ /* not lifted */ 1282 RECOMP_FLAGS_IN(); 1283 PUSH32(esp, eax); /* 0x4705A05A: push eax */ 1284 ecx = esi; /* 0x4705A05B: mov ecx, esi */ 1285 RECOMP_ICALL(0x4703B080u); /* 0x4705A05D: call 0x4703b080 */ /* not lifted */ 1286 RECOMP_FLAGS_IN(); 1287 PUSH32(esp, eax); /* 0x4705A062: push eax */ 1288 PUSH32(esp, edi); /* 0x4705A063: push edi */ 1289 PUSH32(esp, 0); /* 0x4705A064: push 0 */ 1290 PUSH32(esp, 0x2Eu); /* 0x4705A066: push 0x2e */ 1291 PUSH32(esp, 0x47109290u); /* 0x4705A068: push 0x47109290 */ 1292 ecx = esi; /* 0x4705A06D: mov ecx, esi */ 1293 RECOMP_ICALL(0x4703A340u); /* 0x4705A06F: call 0x4703a340 */ /* not lifted */ 1294 RECOMP_FLAGS_IN(); 1295 ecx = MEM32(0x4710F150); /* 0x4705A074: mov ecx, dword ptr [0x4710f150] */ 1296 edx = MEM32(ebx + 0xC); /* 0x4705A07A: mov edx, dword ptr [ebx + 0xc] */ 1297 eax = MEM32(edx + 0x4); /* 0x4705A07D: mov eax, dword ptr [edx + 4] */ 1298 PUSH32(esp, ecx); /* 0x4705A080: push ecx */ 1299 PUSH32(esp, eax); /* 0x4705A081: push eax */ 1300 PUSH32(esp, 0x47109270u); /* 0x4705A082: push 0x47109270 */ 1301 PUSH32(esp, 4); /* 0x4705A087: push 4 */ 1302 PUSH32(esp, esi); /* 0x4705A089: push esi */ 1303 RECOMP_ICALL(0x47039830u); /* 0x4705A08A: call 0x47039830 */ /* not lifted */ 1304 RECOMP_FLAGS_IN(); 1305 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1306 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1307 esp = esp + 0x14u; /* 0x4705A08F: add esp, 0x14 */ 1308 _flag_k = FK_ADD; 1309 edi = POP32_VAL(esp); /* 0x4705A092: pop edi */ 1310 esi = POP32_VAL(esp); /* 0x4705A093: pop esi */ 1311 L_4705A094: 1312 ebx = POP32_VAL(esp); /* 0x4705A094: pop ebx */ 1313 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705A095: ret */ 1314 RECOMP_REGS_OUT(); 1315 } 1316 1317 void sub_4705A0A0(void) { 1318 int _fpu_cmp = 0; 1319 uint32_t _cf = 0; 1320 int _df = 1; 1321 uint32_t _flag_k = FK_NONE; 1322 uint32_t _flag_a = 0, _flag_b = 0; 1323 uint32_t _itail_tgt = 0; 1324 RECOMP_REGS_LOCALS 1325 RECOMP_ENTER(0x4705A0A0u); 1326 1327 L_4705A0A0: 1328 PUSH32(esp, ebx); /* 0x4705A0A0: push ebx */ 1329 PUSH32(esp, ebp); /* 0x4705A0A1: push ebp */ 1330 ebp = MEM32(esp + 0xC); /* 0x4705A0A2: mov ebp, dword ptr [esp + 0xc] */ 1331 /* test ebp, ebp */ /* 0x4705A0A6: test ebp, ebp */ 1332 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp); 1333 _cf = 0; 1334 _flag_k = FK_TEST; 1335 PUSH32(esp, esi); /* 0x4705A0A8: push esi */ 1336 PUSH32(esp, edi); /* 0x4705A0A9: push edi */ 1337 ebx = ecx; /* 0x4705A0AA: mov ebx, ecx */ 1338 esi = 0x47106AE0u; /* 0x4705A0AC: mov esi, 0x47106ae0 */ 1339 if (TEST_Z(_flag_a, _flag_b)) goto L_4705A0B6; /* 0x4705A0B1: je 0x4705a0b6 */ 1340 L_4705A0B3: 1341 esi = MEM32(ebp + 0x4); /* 0x4705A0B3: mov esi, dword ptr [ebp + 4] */ 1342 L_4705A0B6: 1343 /* test esi, esi */ /* 0x4705A0B6: test esi, esi */ 1344 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 1345 _cf = 0; 1346 _flag_k = FK_TEST; 1347 if (TEST_Z(_flag_a, _flag_b)) goto L_4705A0FD; /* 0x4705A0B8: je 0x4705a0fd */ 1348 L_4705A0BA: 1349 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1350 ecx = ecx | 0xFFFFFFFFu; /* 0x4705A0BA: or ecx, 0xffffffff */ 1351 _cf = 0; 1352 _flag_k = FK_TEST; 1353 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1354 eax = 0; /* 0x4705A0BD: xor eax, eax */ 1355 _cf = 0; 1356 _flag_k = FK_TEST; 1357 edi = esi; /* 0x4705A0BF: mov edi, esi */ 1358 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; } /* 0x4705A0C1: repne scasb al, byte ptr es:[edi] */ 1359 ecx = ~ecx; /* 0x4705A0C3: not ecx */ 1360 PUSH32(esp, ecx); /* 0x4705A0C5: push ecx */ 1361 RECOMP_ICALL(0x470A33F2u); /* 0x4705A0C6: call 0x470a33f2 */ /* not lifted */ 1362 RECOMP_FLAGS_IN(); 1363 edx = eax; /* 0x4705A0CB: mov edx, eax */ 1364 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1365 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1366 esp = esp + 4; /* 0x4705A0CD: add esp, 4 */ 1367 _flag_k = FK_ADD; 1368 /* test edx, edx */ /* 0x4705A0D0: test edx, edx */ 1369 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 1370 _cf = 0; 1371 _flag_k = FK_TEST; 1372 if (TEST_Z(_flag_a, _flag_b)) goto L_4705A0FD; /* 0x4705A0D2: je 0x4705a0fd */ 1373 L_4705A0D4: 1374 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1375 ecx = ecx | 0xFFFFFFFFu; /* 0x4705A0D4: or ecx, 0xffffffff */ 1376 _cf = 0; 1377 _flag_k = FK_TEST; 1378 edi = esi; /* 0x4705A0D7: mov edi, esi */ 1379 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1380 eax = 0; /* 0x4705A0D9: xor eax, eax */ 1381 _cf = 0; 1382 _flag_k = FK_TEST; 1383 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; } /* 0x4705A0DB: repne scasb al, byte ptr es:[edi] */ 1384 ecx = ~ecx; /* 0x4705A0DD: not ecx */ 1385 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 1386 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1387 edi = edi - ecx; /* 0x4705A0DF: sub edi, ecx */ 1388 _flag_k = FK_CMP; 1389 eax = ecx; /* 0x4705A0E1: mov eax, ecx */ 1390 esi = edi; /* 0x4705A0E3: mov esi, edi */ 1391 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4705A0E5: shr ecx, 2 */ 1392 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1393 ecx = ecx >> 2u; /* 0x4705A0E5: shr ecx, 2 */ 1394 edi = edx; /* 0x4705A0E8: mov edi, edx */ 1395 MEM32(esp + 0x14) = eax; /* 0x4705A0EA: mov dword ptr [esp + 0x14], eax */ 1396 eax = edi; /* 0x4705A0EE: mov eax, edi */ 1397 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4705A0F0: 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; } 1398 ecx = MEM32(esp + 0x14); /* 0x4705A0F2: mov ecx, dword ptr [esp + 0x14] */ 1399 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 1400 ecx = ecx & 3; /* 0x4705A0F6: and ecx, 3 */ 1401 _cf = 0; 1402 _flag_k = FK_TEST; 1403 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4705A0F9: 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; } 1404 goto L_4705A0FF; /* 0x4705A0FB: jmp 0x4705a0ff */ 1405 L_4705A0FD: 1406 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1407 eax = 0; /* 0x4705A0FD: xor eax, eax */ 1408 _cf = 0; 1409 _flag_k = FK_TEST; 1410 L_4705A0FF: 1411 edx = MEM32(esp + 0x18); /* 0x4705A0FF: mov edx, dword ptr [esp + 0x18] */ 1412 edi = POP32_VAL(esp); /* 0x4705A103: pop edi */ 1413 esi = POP32_VAL(esp); /* 0x4705A104: pop esi */ 1414 MEM32(ebx + 0xC) = ebp; /* 0x4705A105: mov dword ptr [ebx + 0xc], ebp */ 1415 MEM32(ebx + 0x4) = eax; /* 0x4705A108: mov dword ptr [ebx + 4], eax */ 1416 ebp = POP32_VAL(esp); /* 0x4705A10B: pop ebp */ 1417 MEM32(ebx + 0x8) = 0; /* 0x4705A10C: mov dword ptr [ebx + 8], 0 */ 1418 MEM32(ebx + 0x10) = edx; /* 0x4705A113: mov dword ptr [ebx + 0x10], edx */ 1419 MEM32(ebx) = 0x470ADD00u; /* 0x4705A116: mov dword ptr [ebx], 0x470add00 */ 1420 eax = ebx; /* 0x4705A11C: mov eax, ebx */ 1421 ebx = POP32_VAL(esp); /* 0x4705A11E: pop ebx */ 1422 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4705A11F: ret 8 */ 1423 RECOMP_REGS_OUT(); 1424 } 1425 1426 void sub_4705A130(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(0x4705A130u); 1435 1436 L_4705A130: 1437 PUSH32(esp, 0xFFFFFFFFu); /* 0x4705A130: push -1 */ 1438 PUSH32(esp, 0x470A7708u); /* 0x4705A132: push 0x470a7708 */ 1439 eax = MEM32(FS_BASE + (0)); /* 0x4705A137: mov eax, dword ptr fs:[0] */ 1440 PUSH32(esp, eax); /* 0x4705A13D: push eax */ 1441 MEM32(FS_BASE + (0)) = esp; /* 0x4705A13E: mov dword ptr fs:[0], esp */ 1442 PUSH32(esp, ecx); /* 0x4705A145: push ecx */ 1443 PUSH32(esp, esi); /* 0x4705A146: push esi */ 1444 esi = ecx; /* 0x4705A147: mov esi, ecx */ 1445 MEM32(esp + 0x4) = esi; /* 0x4705A149: mov dword ptr [esp + 4], esi */ 1446 MEM32(esi) = 0x470ADD00u; /* 0x4705A14D: mov dword ptr [esi], 0x470add00 */ 1447 ecx = MEM32(esi + 0xC); /* 0x4705A153: mov ecx, dword ptr [esi + 0xc] */ 1448 /* test ecx, ecx */ /* 0x4705A156: test ecx, ecx */ 1449 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1450 _cf = 0; 1451 _flag_k = FK_TEST; 1452 MEM32(esp + 0x10) = 0; /* 0x4705A158: mov dword ptr [esp + 0x10], 0 */ 1453 if (TEST_Z(_flag_a, _flag_b)) goto L_4705A168; /* 0x4705A160: je 0x4705a168 */ 1454 L_4705A162: 1455 eax = MEM32(ecx); /* 0x4705A162: mov eax, dword ptr [ecx] */ 1456 PUSH32(esp, 1); /* 0x4705A164: push 1 */ 1457 RECOMP_ICALL(MEM32(eax)); /* 0x4705A166: call dword ptr [eax] */ 1458 RECOMP_FLAGS_IN(); 1459 L_4705A168: 1460 ecx = MEM32(esi + 0x10); /* 0x4705A168: mov ecx, dword ptr [esi + 0x10] */ 1461 /* test ecx, ecx */ /* 0x4705A16B: test ecx, ecx */ 1462 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1463 _cf = 0; 1464 _flag_k = FK_TEST; 1465 if (TEST_Z(_flag_a, _flag_b)) goto L_4705A175; /* 0x4705A16D: je 0x4705a175 */ 1466 L_4705A16F: 1467 edx = MEM32(ecx); /* 0x4705A16F: mov edx, dword ptr [ecx] */ 1468 PUSH32(esp, 1); /* 0x4705A171: push 1 */ 1469 RECOMP_ICALL(MEM32(edx)); /* 0x4705A173: call dword ptr [edx] */ 1470 RECOMP_FLAGS_IN(); 1471 L_4705A175: 1472 eax = MEM32(esi + 0x4); /* 0x4705A175: mov eax, dword ptr [esi + 4] */ 1473 PUSH32(esp, eax); /* 0x4705A178: push eax */ 1474 MEM32(esp + 0x14) = 0xFFFFFFFFu; /* 0x4705A179: mov dword ptr [esp + 0x14], 0xffffffff */ 1475 MEM32(esi) = 0x470ADCC8u; /* 0x4705A181: mov dword ptr [esi], 0x470adcc8 */ 1476 RECOMP_ICALL(0x470A32A2u); /* 0x4705A187: call 0x470a32a2 */ /* not lifted */ 1477 RECOMP_FLAGS_IN(); 1478 ecx = MEM32(esi + 0x8); /* 0x4705A18C: mov ecx, dword ptr [esi + 8] */ 1479 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1480 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1481 esp = esp + 4; /* 0x4705A18F: add esp, 4 */ 1482 _flag_k = FK_ADD; 1483 /* test ecx, ecx */ /* 0x4705A192: test ecx, ecx */ 1484 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1485 _cf = 0; 1486 _flag_k = FK_TEST; 1487 esi = POP32_VAL(esp); /* 0x4705A194: pop esi */ 1488 if (TEST_Z(_flag_a, _flag_b)) goto L_4705A19D; /* 0x4705A195: je 0x4705a19d */ 1489 L_4705A197: 1490 edx = MEM32(ecx); /* 0x4705A197: mov edx, dword ptr [ecx] */ 1491 PUSH32(esp, 1); /* 0x4705A199: push 1 */ 1492 RECOMP_ICALL(MEM32(edx)); /* 0x4705A19B: call dword ptr [edx] */ 1493 RECOMP_FLAGS_IN(); 1494 L_4705A19D: 1495 ecx = MEM32(esp + 0x4); /* 0x4705A19D: mov ecx, dword ptr [esp + 4] */ 1496 MEM32(FS_BASE + (0)) = ecx; /* 0x4705A1A1: mov dword ptr fs:[0], ecx */ 1497 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1498 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1499 esp = esp + 0x10u; /* 0x4705A1A8: add esp, 0x10 */ 1500 _flag_k = FK_ADD; 1501 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705A1AB: ret */ 1502 RECOMP_REGS_OUT(); 1503 } 1504 1505 void sub_4705A1B0(void) { 1506 int _fpu_cmp = 0; 1507 uint32_t _cf = 0; 1508 int _df = 1; 1509 uint32_t _flag_k = FK_NONE; 1510 uint32_t _flag_a = 0, _flag_b = 0; 1511 uint32_t _itail_tgt = 0; 1512 RECOMP_REGS_LOCALS 1513 RECOMP_ENTER(0x4705A1B0u); 1514 1515 L_4705A1B0: 1516 eax = ecx; /* 0x4705A1B0: mov eax, ecx */ 1517 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1518 ecx = 0; /* 0x4705A1B2: xor ecx, ecx */ 1519 _cf = 0; 1520 _flag_k = FK_TEST; 1521 MEM32(eax + 0x4) = ecx; /* 0x4705A1B4: mov dword ptr [eax + 4], ecx */ 1522 MEM32(eax + 0x8) = ecx; /* 0x4705A1B7: mov dword ptr [eax + 8], ecx */ 1523 MEM32(eax) = 0x470ADCC8u; /* 0x4705A1BA: mov dword ptr [eax], 0x470adcc8 */ 1524 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705A1C0: ret */ 1525 RECOMP_REGS_OUT(); 1526 } 1527 1528 void sub_4705A1D0(void) { 1529 int _fpu_cmp = 0; 1530 uint32_t _cf = 0; 1531 int _df = 1; 1532 uint32_t _flag_k = FK_NONE; 1533 uint32_t _flag_a = 0, _flag_b = 0; 1534 uint32_t _itail_tgt = 0; 1535 RECOMP_REGS_LOCALS 1536 RECOMP_ENTER(0x4705A1D0u); 1537 1538 L_4705A1D0: 1539 PUSH32(esp, ebx); /* 0x4705A1D0: push ebx */ 1540 PUSH32(esp, esi); /* 0x4705A1D1: push esi */ 1541 esi = MEM32(esp + 0xC); /* 0x4705A1D2: mov esi, dword ptr [esp + 0xc] */ 1542 /* test esi, esi */ /* 0x4705A1D6: test esi, esi */ 1543 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 1544 _cf = 0; 1545 _flag_k = FK_TEST; 1546 PUSH32(esp, edi); /* 0x4705A1D8: push edi */ 1547 ebx = ecx; /* 0x4705A1D9: mov ebx, ecx */ 1548 if (TEST_Z(_flag_a, _flag_b)) goto L_4705A21C; /* 0x4705A1DB: je 0x4705a21c */ 1549 L_4705A1DD: 1550 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1551 ecx = ecx | 0xFFFFFFFFu; /* 0x4705A1DD: or ecx, 0xffffffff */ 1552 _cf = 0; 1553 _flag_k = FK_TEST; 1554 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1555 eax = 0; /* 0x4705A1E0: xor eax, eax */ 1556 _cf = 0; 1557 _flag_k = FK_TEST; 1558 edi = esi; /* 0x4705A1E2: mov edi, esi */ 1559 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; } /* 0x4705A1E4: repne scasb al, byte ptr es:[edi] */ 1560 ecx = ~ecx; /* 0x4705A1E6: not ecx */ 1561 PUSH32(esp, ecx); /* 0x4705A1E8: push ecx */ 1562 RECOMP_ICALL(0x470A33F2u); /* 0x4705A1E9: call 0x470a33f2 */ /* not lifted */ 1563 RECOMP_FLAGS_IN(); 1564 edx = eax; /* 0x4705A1EE: mov edx, eax */ 1565 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1566 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1567 esp = esp + 4; /* 0x4705A1F0: add esp, 4 */ 1568 _flag_k = FK_ADD; 1569 /* test edx, edx */ /* 0x4705A1F3: test edx, edx */ 1570 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 1571 _cf = 0; 1572 _flag_k = FK_TEST; 1573 if (TEST_Z(_flag_a, _flag_b)) goto L_4705A21C; /* 0x4705A1F5: je 0x4705a21c */ 1574 L_4705A1F7: 1575 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1576 ecx = ecx | 0xFFFFFFFFu; /* 0x4705A1F7: or ecx, 0xffffffff */ 1577 _cf = 0; 1578 _flag_k = FK_TEST; 1579 edi = esi; /* 0x4705A1FA: mov edi, esi */ 1580 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1581 eax = 0; /* 0x4705A1FC: xor eax, eax */ 1582 _cf = 0; 1583 _flag_k = FK_TEST; 1584 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; } /* 0x4705A1FE: repne scasb al, byte ptr es:[edi] */ 1585 ecx = ~ecx; /* 0x4705A200: not ecx */ 1586 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 1587 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1588 edi = edi - ecx; /* 0x4705A202: sub edi, ecx */ 1589 _flag_k = FK_CMP; 1590 esi = edi; /* 0x4705A204: mov esi, edi */ 1591 PUSH32(esp, ebp); /* 0x4705A206: push ebp */ 1592 ebp = ecx; /* 0x4705A207: mov ebp, ecx */ 1593 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4705A209: shr ecx, 2 */ 1594 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1595 ecx = ecx >> 2u; /* 0x4705A209: shr ecx, 2 */ 1596 edi = edx; /* 0x4705A20C: mov edi, edx */ 1597 eax = edi; /* 0x4705A20E: mov eax, edi */ 1598 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4705A210: 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; } 1599 ecx = ebp; /* 0x4705A212: mov ecx, ebp */ 1600 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 1601 ecx = ecx & 3; /* 0x4705A214: and ecx, 3 */ 1602 _cf = 0; 1603 _flag_k = FK_TEST; 1604 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4705A217: 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; } 1605 ebp = POP32_VAL(esp); /* 0x4705A219: pop ebp */ 1606 goto L_4705A21E; /* 0x4705A21A: jmp 0x4705a21e */ 1607 L_4705A21C: 1608 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1609 eax = 0; /* 0x4705A21C: xor eax, eax */ 1610 _cf = 0; 1611 _flag_k = FK_TEST; 1612 L_4705A21E: 1613 edi = POP32_VAL(esp); /* 0x4705A21E: pop edi */ 1614 MEM32(ebx + 0x4) = eax; /* 0x4705A21F: mov dword ptr [ebx + 4], eax */ 1615 esi = POP32_VAL(esp); /* 0x4705A222: pop esi */ 1616 MEM32(ebx + 0x8) = 0; /* 0x4705A223: mov dword ptr [ebx + 8], 0 */ 1617 MEM32(ebx) = 0x470ADCC8u; /* 0x4705A22A: mov dword ptr [ebx], 0x470adcc8 */ 1618 eax = ebx; /* 0x4705A230: mov eax, ebx */ 1619 ebx = POP32_VAL(esp); /* 0x4705A232: pop ebx */ 1620 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4705A233: ret 4 */ 1621 RECOMP_REGS_OUT(); 1622 } 1623 1624 void sub_4705A240(void) { 1625 int _fpu_cmp = 0; 1626 uint32_t _cf = 0; 1627 int _df = 1; 1628 uint32_t _flag_k = FK_NONE; 1629 uint32_t _flag_a = 0, _flag_b = 0; 1630 uint32_t _itail_tgt = 0; 1631 RECOMP_REGS_LOCALS 1632 RECOMP_ENTER(0x4705A240u); 1633 1634 L_4705A240: 1635 PUSH32(esp, ebx); /* 0x4705A240: push ebx */ 1636 PUSH32(esp, ebp); /* 0x4705A241: push ebp */ 1637 ebp = MEM32(0x470AC150); /* 0x4705A242: mov ebp, dword ptr [0x470ac150] */ 1638 PUSH32(esp, esi); /* 0x4705A248: push esi */ 1639 PUSH32(esp, edi); /* 0x4705A249: push edi */ 1640 edi = ecx; /* 0x4705A24A: mov edi, ecx */ 1641 L_4705A24C: 1642 RECOMP_ICALL(ebp); /* 0x4705A24C: call ebp */ 1643 RECOMP_FLAGS_IN(); 1644 ebx = eax; /* 0x4705A24E: mov ebx, eax */ 1645 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4705A250: call dword ptr [0x470ac3c8] */ 1646 RECOMP_FLAGS_IN(); 1647 eax = MEM32(eax); /* 0x4705A256: mov eax, dword ptr [eax] */ 1648 /* test eax, eax */ /* 0x4705A258: test eax, eax */ 1649 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1650 _cf = 0; 1651 _flag_k = FK_TEST; 1652 if (TEST_Z(_flag_a, _flag_b)) goto L_4705A25E; /* 0x4705A25A: je 0x4705a25e */ 1653 L_4705A25C: 1654 ebx = eax; /* 0x4705A25C: mov ebx, eax */ 1655 L_4705A25E: 1656 RECOMP_ICALL(0x47039020u); /* 0x4705A25E: call 0x47039020 */ /* not lifted */ 1657 RECOMP_FLAGS_IN(); 1658 esi = eax; /* 0x4705A263: mov esi, eax */ 1659 ecx = esi; /* 0x4705A265: mov ecx, esi */ 1660 RECOMP_ICALL(0x4703B210u); /* 0x4705A267: call 0x4703b210 */ /* not lifted */ 1661 RECOMP_FLAGS_IN(); 1662 PUSH32(esp, eax); /* 0x4705A26C: push eax */ 1663 ecx = esi; /* 0x4705A26D: mov ecx, esi */ 1664 RECOMP_ICALL(0x4703B240u); /* 0x4705A26F: call 0x4703b240 */ /* not lifted */ 1665 RECOMP_FLAGS_IN(); 1666 PUSH32(esp, eax); /* 0x4705A274: push eax */ 1667 ecx = esi; /* 0x4705A275: mov ecx, esi */ 1668 RECOMP_ICALL(0x4703B080u); /* 0x4705A277: call 0x4703b080 */ /* not lifted */ 1669 RECOMP_FLAGS_IN(); 1670 PUSH32(esp, eax); /* 0x4705A27C: push eax */ 1671 PUSH32(esp, ebx); /* 0x4705A27D: push ebx */ 1672 PUSH32(esp, 0); /* 0x4705A27E: push 0 */ 1673 PUSH32(esp, 0x80u); /* 0x4705A280: push 0x80 */ 1674 PUSH32(esp, 0x47109290u); /* 0x4705A285: push 0x47109290 */ 1675 ecx = esi; /* 0x4705A28A: mov ecx, esi */ 1676 RECOMP_ICALL(0x4703A340u); /* 0x4705A28C: call 0x4703a340 */ /* not lifted */ 1677 RECOMP_FLAGS_IN(); 1678 eax = MEM32(edi + 0x4); /* 0x4705A291: mov eax, dword ptr [edi + 4] */ 1679 PUSH32(esp, eax); /* 0x4705A294: push eax */ 1680 PUSH32(esp, 0x471092CCu); /* 0x4705A295: push 0x471092cc */ 1681 PUSH32(esp, 4); /* 0x4705A29A: push 4 */ 1682 PUSH32(esp, esi); /* 0x4705A29C: push esi */ 1683 RECOMP_ICALL(0x47039830u); /* 0x4705A29D: call 0x47039830 */ /* not lifted */ 1684 RECOMP_FLAGS_IN(); 1685 eax = MEM32(edi + 0x8); /* 0x4705A2A2: mov eax, dword ptr [edi + 8] */ 1686 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1687 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1688 esp = esp + 0x10u; /* 0x4705A2A5: add esp, 0x10 */ 1689 _flag_k = FK_ADD; 1690 /* test eax, eax */ /* 0x4705A2A8: test eax, eax */ 1691 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1692 _cf = 0; 1693 _flag_k = FK_TEST; 1694 if (TEST_Z(_flag_a, _flag_b)) goto L_4705A2B0; /* 0x4705A2AA: je 0x4705a2b0 */ 1695 L_4705A2AC: 1696 edi = eax; /* 0x4705A2AC: mov edi, eax */ 1697 RECOMP_BACKEDGE(); 1698 goto L_4705A24C; /* 0x4705A2AE: jmp 0x4705a24c */ 1699 L_4705A2B0: 1700 edi = POP32_VAL(esp); /* 0x4705A2B0: pop edi */ 1701 esi = POP32_VAL(esp); /* 0x4705A2B1: pop esi */ 1702 ebp = POP32_VAL(esp); /* 0x4705A2B2: pop ebp */ 1703 ebx = POP32_VAL(esp); /* 0x4705A2B3: pop ebx */ 1704 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705A2B4: ret */ 1705 RECOMP_REGS_OUT(); 1706 } 1707 1708 void sub_4705A2C0(void) { 1709 int _fpu_cmp = 0; 1710 uint32_t _cf = 0; 1711 int _df = 1; 1712 uint32_t _flag_k = FK_NONE; 1713 uint32_t _flag_a = 0, _flag_b = 0; 1714 uint32_t _itail_tgt = 0; 1715 RECOMP_REGS_LOCALS 1716 RECOMP_ENTER(0x4705A2C0u); 1717 1718 L_4705A2C0: 1719 PUSH32(esp, esi); /* 0x4705A2C0: push esi */ 1720 esi = ecx; /* 0x4705A2C1: mov esi, ecx */ 1721 eax = MEM32(esi + 0x4); /* 0x4705A2C3: mov eax, dword ptr [esi + 4] */ 1722 PUSH32(esp, eax); /* 0x4705A2C6: push eax */ 1723 MEM32(esi) = 0x470ADCC8u; /* 0x4705A2C7: mov dword ptr [esi], 0x470adcc8 */ 1724 RECOMP_ICALL(0x470A32A2u); /* 0x4705A2CD: call 0x470a32a2 */ /* not lifted */ 1725 RECOMP_FLAGS_IN(); 1726 ecx = MEM32(esi + 0x8); /* 0x4705A2D2: mov ecx, dword ptr [esi + 8] */ 1727 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1728 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1729 esp = esp + 4; /* 0x4705A2D5: add esp, 4 */ 1730 _flag_k = FK_ADD; 1731 /* test ecx, ecx */ /* 0x4705A2D8: test ecx, ecx */ 1732 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1733 _cf = 0; 1734 _flag_k = FK_TEST; 1735 esi = POP32_VAL(esp); /* 0x4705A2DA: pop esi */ 1736 if (TEST_Z(_flag_a, _flag_b)) goto L_4705A2E3; /* 0x4705A2DB: je 0x4705a2e3 */ 1737 L_4705A2DD: 1738 edx = MEM32(ecx); /* 0x4705A2DD: mov edx, dword ptr [ecx] */ 1739 PUSH32(esp, 1); /* 0x4705A2DF: push 1 */ 1740 RECOMP_ICALL(MEM32(edx)); /* 0x4705A2E1: call dword ptr [edx] */ 1741 RECOMP_FLAGS_IN(); 1742 L_4705A2E3: 1743 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705A2E3: ret */ 1744 RECOMP_REGS_OUT(); 1745 } 1746 1747 void sub_4705A2F0(void) { 1748 int _fpu_cmp = 0; 1749 uint32_t _cf = 0; 1750 int _df = 1; 1751 uint32_t _flag_k = FK_NONE; 1752 uint32_t _flag_a = 0, _flag_b = 0; 1753 uint32_t _itail_tgt = 0; 1754 RECOMP_REGS_LOCALS 1755 RECOMP_ENTER(0x4705A2F0u); 1756 1757 L_4705A2F0: 1758 PUSH32(esp, ebx); /* 0x4705A2F0: push ebx */ 1759 PUSH32(esp, esi); /* 0x4705A2F1: push esi */ 1760 esi = MEM32(esp + 0xC); /* 0x4705A2F2: mov esi, dword ptr [esp + 0xc] */ 1761 /* test esi, esi */ /* 0x4705A2F6: test esi, esi */ 1762 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 1763 _cf = 0; 1764 _flag_k = FK_TEST; 1765 PUSH32(esp, edi); /* 0x4705A2F8: push edi */ 1766 ebx = ecx; /* 0x4705A2F9: mov ebx, ecx */ 1767 if (TEST_Z(_flag_a, _flag_b)) goto L_4705A33C; /* 0x4705A2FB: je 0x4705a33c */ 1768 L_4705A2FD: 1769 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1770 ecx = ecx | 0xFFFFFFFFu; /* 0x4705A2FD: or ecx, 0xffffffff */ 1771 _cf = 0; 1772 _flag_k = FK_TEST; 1773 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1774 eax = 0; /* 0x4705A300: xor eax, eax */ 1775 _cf = 0; 1776 _flag_k = FK_TEST; 1777 edi = esi; /* 0x4705A302: mov edi, esi */ 1778 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; } /* 0x4705A304: repne scasb al, byte ptr es:[edi] */ 1779 ecx = ~ecx; /* 0x4705A306: not ecx */ 1780 PUSH32(esp, ecx); /* 0x4705A308: push ecx */ 1781 RECOMP_ICALL(0x470A33F2u); /* 0x4705A309: call 0x470a33f2 */ /* not lifted */ 1782 RECOMP_FLAGS_IN(); 1783 edx = eax; /* 0x4705A30E: mov edx, eax */ 1784 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1785 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1786 esp = esp + 4; /* 0x4705A310: add esp, 4 */ 1787 _flag_k = FK_ADD; 1788 /* test edx, edx */ /* 0x4705A313: test edx, edx */ 1789 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 1790 _cf = 0; 1791 _flag_k = FK_TEST; 1792 if (TEST_Z(_flag_a, _flag_b)) goto L_4705A33C; /* 0x4705A315: je 0x4705a33c */ 1793 L_4705A317: 1794 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1795 ecx = ecx | 0xFFFFFFFFu; /* 0x4705A317: or ecx, 0xffffffff */ 1796 _cf = 0; 1797 _flag_k = FK_TEST; 1798 edi = esi; /* 0x4705A31A: mov edi, esi */ 1799 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1800 eax = 0; /* 0x4705A31C: xor eax, eax */ 1801 _cf = 0; 1802 _flag_k = FK_TEST; 1803 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; } /* 0x4705A31E: repne scasb al, byte ptr es:[edi] */ 1804 ecx = ~ecx; /* 0x4705A320: not ecx */ 1805 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 1806 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1807 edi = edi - ecx; /* 0x4705A322: sub edi, ecx */ 1808 _flag_k = FK_CMP; 1809 esi = edi; /* 0x4705A324: mov esi, edi */ 1810 PUSH32(esp, ebp); /* 0x4705A326: push ebp */ 1811 ebp = ecx; /* 0x4705A327: mov ebp, ecx */ 1812 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4705A329: shr ecx, 2 */ 1813 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1814 ecx = ecx >> 2u; /* 0x4705A329: shr ecx, 2 */ 1815 edi = edx; /* 0x4705A32C: mov edi, edx */ 1816 eax = edi; /* 0x4705A32E: mov eax, edi */ 1817 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4705A330: 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; } 1818 ecx = ebp; /* 0x4705A332: mov ecx, ebp */ 1819 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 1820 ecx = ecx & 3; /* 0x4705A334: and ecx, 3 */ 1821 _cf = 0; 1822 _flag_k = FK_TEST; 1823 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4705A337: 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; } 1824 ebp = POP32_VAL(esp); /* 0x4705A339: pop ebp */ 1825 goto L_4705A33E; /* 0x4705A33A: jmp 0x4705a33e */ 1826 L_4705A33C: 1827 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1828 eax = 0; /* 0x4705A33C: xor eax, eax */ 1829 _cf = 0; 1830 _flag_k = FK_TEST; 1831 L_4705A33E: 1832 edi = POP32_VAL(esp); /* 0x4705A33E: pop edi */ 1833 MEM32(ebx + 0x4) = eax; /* 0x4705A33F: mov dword ptr [ebx + 4], eax */ 1834 esi = POP32_VAL(esp); /* 0x4705A342: pop esi */ 1835 MEM32(ebx + 0x8) = 0; /* 0x4705A343: mov dword ptr [ebx + 8], 0 */ 1836 MEM32(ebx) = 0x470ADCD0u; /* 0x4705A34A: mov dword ptr [ebx], 0x470adcd0 */ 1837 eax = ebx; /* 0x4705A350: mov eax, ebx */ 1838 ebx = POP32_VAL(esp); /* 0x4705A352: pop ebx */ 1839 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4705A353: ret 4 */ 1840 RECOMP_REGS_OUT(); 1841 } 1842 1843 void sub_4705A360(void) { 1844 int _fpu_cmp = 0; 1845 uint32_t _cf = 0; 1846 int _df = 1; 1847 uint32_t _flag_k = FK_NONE; 1848 uint32_t _flag_a = 0, _flag_b = 0; 1849 uint32_t _itail_tgt = 0; 1850 RECOMP_REGS_LOCALS 1851 RECOMP_ENTER(0x4705A360u); 1852 1853 L_4705A360: 1854 PUSH32(esp, ebx); /* 0x4705A360: push ebx */ 1855 PUSH32(esp, esi); /* 0x4705A361: push esi */ 1856 esi = MEM32(esp + 0xC); /* 0x4705A362: mov esi, dword ptr [esp + 0xc] */ 1857 /* test esi, esi */ /* 0x4705A366: test esi, esi */ 1858 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 1859 _cf = 0; 1860 _flag_k = FK_TEST; 1861 PUSH32(esp, edi); /* 0x4705A368: push edi */ 1862 ebx = ecx; /* 0x4705A369: mov ebx, ecx */ 1863 if (TEST_Z(_flag_a, _flag_b)) goto L_4705A3AC; /* 0x4705A36B: je 0x4705a3ac */ 1864 L_4705A36D: 1865 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1866 ecx = ecx | 0xFFFFFFFFu; /* 0x4705A36D: or ecx, 0xffffffff */ 1867 _cf = 0; 1868 _flag_k = FK_TEST; 1869 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1870 eax = 0; /* 0x4705A370: xor eax, eax */ 1871 _cf = 0; 1872 _flag_k = FK_TEST; 1873 edi = esi; /* 0x4705A372: mov edi, esi */ 1874 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; } /* 0x4705A374: repne scasb al, byte ptr es:[edi] */ 1875 ecx = ~ecx; /* 0x4705A376: not ecx */ 1876 PUSH32(esp, ecx); /* 0x4705A378: push ecx */ 1877 RECOMP_ICALL(0x470A33F2u); /* 0x4705A379: call 0x470a33f2 */ /* not lifted */ 1878 RECOMP_FLAGS_IN(); 1879 edx = eax; /* 0x4705A37E: mov edx, eax */ 1880 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1881 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1882 esp = esp + 4; /* 0x4705A380: add esp, 4 */ 1883 _flag_k = FK_ADD; 1884 /* test edx, edx */ /* 0x4705A383: test edx, edx */ 1885 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 1886 _cf = 0; 1887 _flag_k = FK_TEST; 1888 if (TEST_Z(_flag_a, _flag_b)) goto L_4705A3AC; /* 0x4705A385: je 0x4705a3ac */ 1889 L_4705A387: 1890 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1891 ecx = ecx | 0xFFFFFFFFu; /* 0x4705A387: or ecx, 0xffffffff */ 1892 _cf = 0; 1893 _flag_k = FK_TEST; 1894 edi = esi; /* 0x4705A38A: mov edi, esi */ 1895 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1896 eax = 0; /* 0x4705A38C: xor eax, eax */ 1897 _cf = 0; 1898 _flag_k = FK_TEST; 1899 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; } /* 0x4705A38E: repne scasb al, byte ptr es:[edi] */ 1900 ecx = ~ecx; /* 0x4705A390: not ecx */ 1901 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 1902 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1903 edi = edi - ecx; /* 0x4705A392: sub edi, ecx */ 1904 _flag_k = FK_CMP; 1905 esi = edi; /* 0x4705A394: mov esi, edi */ 1906 PUSH32(esp, ebp); /* 0x4705A396: push ebp */ 1907 ebp = ecx; /* 0x4705A397: mov ebp, ecx */ 1908 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4705A399: shr ecx, 2 */ 1909 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1910 ecx = ecx >> 2u; /* 0x4705A399: shr ecx, 2 */ 1911 edi = edx; /* 0x4705A39C: mov edi, edx */ 1912 eax = edi; /* 0x4705A39E: mov eax, edi */ 1913 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4705A3A0: 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; } 1914 ecx = ebp; /* 0x4705A3A2: mov ecx, ebp */ 1915 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 1916 ecx = ecx & 3; /* 0x4705A3A4: and ecx, 3 */ 1917 _cf = 0; 1918 _flag_k = FK_TEST; 1919 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4705A3A7: 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; } 1920 ebp = POP32_VAL(esp); /* 0x4705A3A9: pop ebp */ 1921 goto L_4705A3AE; /* 0x4705A3AA: jmp 0x4705a3ae */ 1922 L_4705A3AC: 1923 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1924 eax = 0; /* 0x4705A3AC: xor eax, eax */ 1925 _cf = 0; 1926 _flag_k = FK_TEST; 1927 L_4705A3AE: 1928 edi = POP32_VAL(esp); /* 0x4705A3AE: pop edi */ 1929 MEM32(ebx + 0x4) = eax; /* 0x4705A3AF: mov dword ptr [ebx + 4], eax */ 1930 esi = POP32_VAL(esp); /* 0x4705A3B2: pop esi */ 1931 MEM32(ebx + 0x8) = 0; /* 0x4705A3B3: mov dword ptr [ebx + 8], 0 */ 1932 MEM32(ebx) = 0x470ADCD8u; /* 0x4705A3BA: mov dword ptr [ebx], 0x470adcd8 */ 1933 eax = ebx; /* 0x4705A3C0: mov eax, ebx */ 1934 ebx = POP32_VAL(esp); /* 0x4705A3C2: pop ebx */ 1935 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4705A3C3: ret 4 */ 1936 RECOMP_REGS_OUT(); 1937 } 1938 1939 void sub_4705A3D0(void) { 1940 int _fpu_cmp = 0; 1941 uint32_t _cf = 0; 1942 int _df = 1; 1943 uint32_t _flag_k = FK_NONE; 1944 uint32_t _flag_a = 0, _flag_b = 0; 1945 uint32_t _itail_tgt = 0; 1946 RECOMP_REGS_LOCALS 1947 RECOMP_ENTER(0x4705A3D0u); 1948 1949 L_4705A3D0: 1950 PUSH32(esp, ebx); /* 0x4705A3D0: push ebx */ 1951 ebx = ecx; /* 0x4705A3D1: mov ebx, ecx */ 1952 eax = MEM32(ebx + 0x4); /* 0x4705A3D3: mov eax, dword ptr [ebx + 4] */ 1953 PUSH32(esp, eax); /* 0x4705A3D6: push eax */ 1954 RECOMP_ICALL(0x47074790u); /* 0x4705A3D7: call 0x47074790 */ /* not lifted */ 1955 RECOMP_FLAGS_IN(); 1956 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1957 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1958 esp = esp + 4; /* 0x4705A3DC: add esp, 4 */ 1959 _flag_k = FK_ADD; 1960 /* cmp eax, 0xFFFFFFFFu */ /* 0x4705A3DF: cmp eax, -1 */ 1961 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 1962 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1963 _flag_k = FK_CMP; 1964 if (CMP_NE(_flag_a, _flag_b)) goto L_4705A3EA; /* 0x4705A3E2: jne 0x4705a3ea */ 1965 L_4705A3E4: 1966 _flag_a = (uint32_t)(MEM32(0x4710F150)); _flag_b = (uint32_t)(1); 1967 MEM32(0x4710F150) = MEM32(0x4710F150) + 1; /* 0x4705A3E4: inc dword ptr [0x4710f150] */ 1968 _flag_k = FK_INC; 1969 L_4705A3EA: 1970 SET_LO8(eax, MEM8(0x4710DE04)); /* 0x4705A3EA: mov al, byte ptr [0x4710de04] */ 1971 /* test LO8(eax), LO8(eax) */ /* 0x4705A3EF: test al, al */ 1972 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1973 _cf = 0; 1974 _flag_k = FK_NARROW(FK_TEST, 24); 1975 if (TEST_Z(_flag_a, _flag_b)) goto L_4705A45A; /* 0x4705A3F1: je 0x4705a45a */ 1976 L_4705A3F3: 1977 PUSH32(esp, esi); /* 0x4705A3F3: push esi */ 1978 PUSH32(esp, edi); /* 0x4705A3F4: push edi */ 1979 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4705A3F5: call dword ptr [0x470ac150] */ 1980 RECOMP_FLAGS_IN(); 1981 edi = eax; /* 0x4705A3FB: mov edi, eax */ 1982 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4705A3FD: call dword ptr [0x470ac3c8] */ 1983 RECOMP_FLAGS_IN(); 1984 eax = MEM32(eax); /* 0x4705A403: mov eax, dword ptr [eax] */ 1985 /* test eax, eax */ /* 0x4705A405: test eax, eax */ 1986 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1987 _cf = 0; 1988 _flag_k = FK_TEST; 1989 if (TEST_Z(_flag_a, _flag_b)) goto L_4705A40B; /* 0x4705A407: je 0x4705a40b */ 1990 L_4705A409: 1991 edi = eax; /* 0x4705A409: mov edi, eax */ 1992 L_4705A40B: 1993 RECOMP_ICALL(0x47039020u); /* 0x4705A40B: call 0x47039020 */ /* not lifted */ 1994 RECOMP_FLAGS_IN(); 1995 esi = eax; /* 0x4705A410: mov esi, eax */ 1996 ecx = esi; /* 0x4705A412: mov ecx, esi */ 1997 RECOMP_ICALL(0x4703B210u); /* 0x4705A414: call 0x4703b210 */ /* not lifted */ 1998 RECOMP_FLAGS_IN(); 1999 PUSH32(esp, eax); /* 0x4705A419: push eax */ 2000 ecx = esi; /* 0x4705A41A: mov ecx, esi */ 2001 RECOMP_ICALL(0x4703B240u); /* 0x4705A41C: call 0x4703b240 */ /* not lifted */ 2002 RECOMP_FLAGS_IN(); 2003 PUSH32(esp, eax); /* 0x4705A421: push eax */ 2004 ecx = esi; /* 0x4705A422: mov ecx, esi */ 2005 RECOMP_ICALL(0x4703B080u); /* 0x4705A424: call 0x4703b080 */ /* not lifted */ 2006 RECOMP_FLAGS_IN(); 2007 PUSH32(esp, eax); /* 0x4705A429: push eax */ 2008 PUSH32(esp, edi); /* 0x4705A42A: push edi */ 2009 PUSH32(esp, 0); /* 0x4705A42B: push 0 */ 2010 PUSH32(esp, 0xB6u); /* 0x4705A42D: push 0xb6 */ 2011 PUSH32(esp, 0x47109290u); /* 0x4705A432: push 0x47109290 */ 2012 ecx = esi; /* 0x4705A437: mov ecx, esi */ 2013 RECOMP_ICALL(0x4703A340u); /* 0x4705A439: call 0x4703a340 */ /* not lifted */ 2014 RECOMP_FLAGS_IN(); 2015 eax = MEM32(0x4710F150); /* 0x4705A43E: mov eax, dword ptr [0x4710f150] */ 2016 ecx = MEM32(ebx + 0x4); /* 0x4705A443: mov ecx, dword ptr [ebx + 4] */ 2017 PUSH32(esp, eax); /* 0x4705A446: push eax */ 2018 PUSH32(esp, ecx); /* 0x4705A447: push ecx */ 2019 PUSH32(esp, 0x471092D8u); /* 0x4705A448: push 0x471092d8 */ 2020 PUSH32(esp, 4); /* 0x4705A44D: push 4 */ 2021 PUSH32(esp, esi); /* 0x4705A44F: push esi */ 2022 RECOMP_ICALL(0x47039830u); /* 0x4705A450: call 0x47039830 */ /* not lifted */ 2023 RECOMP_FLAGS_IN(); 2024 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2025 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2026 esp = esp + 0x14u; /* 0x4705A455: add esp, 0x14 */ 2027 _flag_k = FK_ADD; 2028 edi = POP32_VAL(esp); /* 0x4705A458: pop edi */ 2029 esi = POP32_VAL(esp); /* 0x4705A459: pop esi */ 2030 L_4705A45A: 2031 ebx = POP32_VAL(esp); /* 0x4705A45A: pop ebx */ 2032 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705A45B: ret */ 2033 RECOMP_REGS_OUT(); 2034 } 2035 2036 void sub_4705A460(void) { 2037 int _fpu_cmp = 0; 2038 uint32_t _cf = 0; 2039 int _df = 1; 2040 uint32_t _flag_k = FK_NONE; 2041 uint32_t _flag_a = 0, _flag_b = 0; 2042 uint32_t _itail_tgt = 0; 2043 RECOMP_REGS_LOCALS 2044 RECOMP_ENTER(0x4705A460u); 2045 2046 L_4705A460: 2047 PUSH32(esp, ebx); /* 0x4705A460: push ebx */ 2048 ebx = ecx; /* 0x4705A461: mov ebx, ecx */ 2049 eax = MEM32(ebx + 0x4); /* 0x4705A463: mov eax, dword ptr [ebx + 4] */ 2050 PUSH32(esp, eax); /* 0x4705A466: push eax */ 2051 RECOMP_ICALL(0x470747B0u); /* 0x4705A467: call 0x470747b0 */ /* not lifted */ 2052 RECOMP_FLAGS_IN(); 2053 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2054 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2055 esp = esp + 4; /* 0x4705A46C: add esp, 4 */ 2056 _flag_k = FK_ADD; 2057 /* cmp eax, 0xFFFFFFFFu */ /* 0x4705A46F: cmp eax, -1 */ 2058 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 2059 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2060 _flag_k = FK_CMP; 2061 if (CMP_NE(_flag_a, _flag_b)) goto L_4705A47A; /* 0x4705A472: jne 0x4705a47a */ 2062 L_4705A474: 2063 _flag_a = (uint32_t)(MEM32(0x4710F150)); _flag_b = (uint32_t)(1); 2064 MEM32(0x4710F150) = MEM32(0x4710F150) + 1; /* 0x4705A474: inc dword ptr [0x4710f150] */ 2065 _flag_k = FK_INC; 2066 L_4705A47A: 2067 SET_LO8(eax, MEM8(0x4710DE04)); /* 0x4705A47A: mov al, byte ptr [0x4710de04] */ 2068 /* test LO8(eax), LO8(eax) */ /* 0x4705A47F: test al, al */ 2069 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2070 _cf = 0; 2071 _flag_k = FK_NARROW(FK_TEST, 24); 2072 if (TEST_Z(_flag_a, _flag_b)) goto L_4705A4EA; /* 0x4705A481: je 0x4705a4ea */ 2073 L_4705A483: 2074 PUSH32(esp, esi); /* 0x4705A483: push esi */ 2075 PUSH32(esp, edi); /* 0x4705A484: push edi */ 2076 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4705A485: call dword ptr [0x470ac150] */ 2077 RECOMP_FLAGS_IN(); 2078 edi = eax; /* 0x4705A48B: mov edi, eax */ 2079 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4705A48D: call dword ptr [0x470ac3c8] */ 2080 RECOMP_FLAGS_IN(); 2081 eax = MEM32(eax); /* 0x4705A493: mov eax, dword ptr [eax] */ 2082 /* test eax, eax */ /* 0x4705A495: test eax, eax */ 2083 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2084 _cf = 0; 2085 _flag_k = FK_TEST; 2086 if (TEST_Z(_flag_a, _flag_b)) goto L_4705A49B; /* 0x4705A497: je 0x4705a49b */ 2087 L_4705A499: 2088 edi = eax; /* 0x4705A499: mov edi, eax */ 2089 L_4705A49B: 2090 RECOMP_ICALL(0x47039020u); /* 0x4705A49B: call 0x47039020 */ /* not lifted */ 2091 RECOMP_FLAGS_IN(); 2092 esi = eax; /* 0x4705A4A0: mov esi, eax */ 2093 ecx = esi; /* 0x4705A4A2: mov ecx, esi */ 2094 RECOMP_ICALL(0x4703B210u); /* 0x4705A4A4: call 0x4703b210 */ /* not lifted */ 2095 RECOMP_FLAGS_IN(); 2096 PUSH32(esp, eax); /* 0x4705A4A9: push eax */ 2097 ecx = esi; /* 0x4705A4AA: mov ecx, esi */ 2098 RECOMP_ICALL(0x4703B240u); /* 0x4705A4AC: call 0x4703b240 */ /* not lifted */ 2099 RECOMP_FLAGS_IN(); 2100 PUSH32(esp, eax); /* 0x4705A4B1: push eax */ 2101 ecx = esi; /* 0x4705A4B2: mov ecx, esi */ 2102 RECOMP_ICALL(0x4703B080u); /* 0x4705A4B4: call 0x4703b080 */ /* not lifted */ 2103 RECOMP_FLAGS_IN(); 2104 PUSH32(esp, eax); /* 0x4705A4B9: push eax */ 2105 PUSH32(esp, edi); /* 0x4705A4BA: push edi */ 2106 PUSH32(esp, 0); /* 0x4705A4BB: push 0 */ 2107 PUSH32(esp, 0xC4u); /* 0x4705A4BD: push 0xc4 */ 2108 PUSH32(esp, 0x47109290u); /* 0x4705A4C2: push 0x47109290 */ 2109 ecx = esi; /* 0x4705A4C7: mov ecx, esi */ 2110 RECOMP_ICALL(0x4703A340u); /* 0x4705A4C9: call 0x4703a340 */ /* not lifted */ 2111 RECOMP_FLAGS_IN(); 2112 eax = MEM32(0x4710F150); /* 0x4705A4CE: mov eax, dword ptr [0x4710f150] */ 2113 ecx = MEM32(ebx + 0x4); /* 0x4705A4D3: mov ecx, dword ptr [ebx + 4] */ 2114 PUSH32(esp, eax); /* 0x4705A4D6: push eax */ 2115 PUSH32(esp, ecx); /* 0x4705A4D7: push ecx */ 2116 PUSH32(esp, 0x471092F8u); /* 0x4705A4D8: push 0x471092f8 */ 2117 PUSH32(esp, 4); /* 0x4705A4DD: push 4 */ 2118 PUSH32(esp, esi); /* 0x4705A4DF: push esi */ 2119 RECOMP_ICALL(0x47039830u); /* 0x4705A4E0: call 0x47039830 */ /* not lifted */ 2120 RECOMP_FLAGS_IN(); 2121 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2122 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2123 esp = esp + 0x14u; /* 0x4705A4E5: add esp, 0x14 */ 2124 _flag_k = FK_ADD; 2125 edi = POP32_VAL(esp); /* 0x4705A4E8: pop edi */ 2126 esi = POP32_VAL(esp); /* 0x4705A4E9: pop esi */ 2127 L_4705A4EA: 2128 ebx = POP32_VAL(esp); /* 0x4705A4EA: pop ebx */ 2129 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705A4EB: ret */ 2130 RECOMP_REGS_OUT(); 2131 } 2132 2133 void sub_4705A4F0(void) { 2134 int _fpu_cmp = 0; 2135 uint32_t _cf = 0; 2136 int _df = 1; 2137 uint32_t _flag_k = FK_NONE; 2138 uint32_t _flag_a = 0, _flag_b = 0; 2139 uint32_t _itail_tgt = 0; 2140 RECOMP_REGS_LOCALS 2141 RECOMP_ENTER(0x4705A4F0u); 2142 2143 L_4705A4F0: 2144 PUSH32(esp, ebx); /* 0x4705A4F0: push ebx */ 2145 PUSH32(esp, esi); /* 0x4705A4F1: push esi */ 2146 esi = MEM32(esp + 0xC); /* 0x4705A4F2: mov esi, dword ptr [esp + 0xc] */ 2147 /* test esi, esi */ /* 0x4705A4F6: test esi, esi */ 2148 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 2149 _cf = 0; 2150 _flag_k = FK_TEST; 2151 PUSH32(esp, edi); /* 0x4705A4F8: push edi */ 2152 ebx = ecx; /* 0x4705A4F9: mov ebx, ecx */ 2153 if (TEST_Z(_flag_a, _flag_b)) goto L_4705A53C; /* 0x4705A4FB: je 0x4705a53c */ 2154 L_4705A4FD: 2155 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2156 ecx = ecx | 0xFFFFFFFFu; /* 0x4705A4FD: or ecx, 0xffffffff */ 2157 _cf = 0; 2158 _flag_k = FK_TEST; 2159 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2160 eax = 0; /* 0x4705A500: xor eax, eax */ 2161 _cf = 0; 2162 _flag_k = FK_TEST; 2163 edi = esi; /* 0x4705A502: mov edi, esi */ 2164 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; } /* 0x4705A504: repne scasb al, byte ptr es:[edi] */ 2165 ecx = ~ecx; /* 0x4705A506: not ecx */ 2166 PUSH32(esp, ecx); /* 0x4705A508: push ecx */ 2167 RECOMP_ICALL(0x470A33F2u); /* 0x4705A509: call 0x470a33f2 */ /* not lifted */ 2168 RECOMP_FLAGS_IN(); 2169 edx = eax; /* 0x4705A50E: mov edx, eax */ 2170 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2171 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2172 esp = esp + 4; /* 0x4705A510: add esp, 4 */ 2173 _flag_k = FK_ADD; 2174 /* test edx, edx */ /* 0x4705A513: test edx, edx */ 2175 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 2176 _cf = 0; 2177 _flag_k = FK_TEST; 2178 if (TEST_Z(_flag_a, _flag_b)) goto L_4705A53C; /* 0x4705A515: je 0x4705a53c */ 2179 L_4705A517: 2180 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2181 ecx = ecx | 0xFFFFFFFFu; /* 0x4705A517: or ecx, 0xffffffff */ 2182 _cf = 0; 2183 _flag_k = FK_TEST; 2184 edi = esi; /* 0x4705A51A: mov edi, esi */ 2185 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2186 eax = 0; /* 0x4705A51C: xor eax, eax */ 2187 _cf = 0; 2188 _flag_k = FK_TEST; 2189 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; } /* 0x4705A51E: repne scasb al, byte ptr es:[edi] */ 2190 ecx = ~ecx; /* 0x4705A520: not ecx */ 2191 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 2192 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2193 edi = edi - ecx; /* 0x4705A522: sub edi, ecx */ 2194 _flag_k = FK_CMP; 2195 esi = edi; /* 0x4705A524: mov esi, edi */ 2196 PUSH32(esp, ebp); /* 0x4705A526: push ebp */ 2197 ebp = ecx; /* 0x4705A527: mov ebp, ecx */ 2198 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4705A529: shr ecx, 2 */ 2199 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2200 ecx = ecx >> 2u; /* 0x4705A529: shr ecx, 2 */ 2201 edi = edx; /* 0x4705A52C: mov edi, edx */ 2202 eax = edi; /* 0x4705A52E: mov eax, edi */ 2203 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4705A530: 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; } 2204 ecx = ebp; /* 0x4705A532: mov ecx, ebp */ 2205 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 2206 ecx = ecx & 3; /* 0x4705A534: and ecx, 3 */ 2207 _cf = 0; 2208 _flag_k = FK_TEST; 2209 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4705A537: 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; } 2210 ebp = POP32_VAL(esp); /* 0x4705A539: pop ebp */ 2211 goto L_4705A53E; /* 0x4705A53A: jmp 0x4705a53e */ 2212 L_4705A53C: 2213 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2214 eax = 0; /* 0x4705A53C: xor eax, eax */ 2215 _cf = 0; 2216 _flag_k = FK_TEST; 2217 L_4705A53E: 2218 edi = POP32_VAL(esp); /* 0x4705A53E: pop edi */ 2219 MEM32(ebx + 0x4) = eax; /* 0x4705A53F: mov dword ptr [ebx + 4], eax */ 2220 esi = POP32_VAL(esp); /* 0x4705A542: pop esi */ 2221 MEM32(ebx + 0x8) = 0; /* 0x4705A543: mov dword ptr [ebx + 8], 0 */ 2222 MEM32(ebx) = 0x470ADCE0u; /* 0x4705A54A: mov dword ptr [ebx], 0x470adce0 */ 2223 eax = ebx; /* 0x4705A550: mov eax, ebx */ 2224 ebx = POP32_VAL(esp); /* 0x4705A552: pop ebx */ 2225 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4705A553: ret 4 */ 2226 RECOMP_REGS_OUT(); 2227 } 2228 2229 void sub_4705A560(void) { 2230 int _fpu_cmp = 0; 2231 uint32_t _cf = 0; 2232 int _df = 1; 2233 uint32_t _flag_k = FK_NONE; 2234 uint32_t _flag_a = 0, _flag_b = 0; 2235 uint32_t _itail_tgt = 0; 2236 RECOMP_REGS_LOCALS 2237 RECOMP_ENTER(0x4705A560u); 2238 2239 L_4705A560: 2240 PUSH32(esp, ebx); /* 0x4705A560: push ebx */ 2241 ebx = ecx; /* 0x4705A561: mov ebx, ecx */ 2242 eax = MEM32(ebx + 0x4); /* 0x4705A563: mov eax, dword ptr [ebx + 4] */ 2243 PUSH32(esp, eax); /* 0x4705A566: push eax */ 2244 RECOMP_ICALL(0x47074770u); /* 0x4705A567: call 0x47074770 */ /* not lifted */ 2245 RECOMP_FLAGS_IN(); 2246 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2247 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2248 esp = esp + 4; /* 0x4705A56C: add esp, 4 */ 2249 _flag_k = FK_ADD; 2250 /* cmp eax, 0xFFFFFFFFu */ /* 0x4705A56F: cmp eax, -1 */ 2251 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 2252 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2253 _flag_k = FK_CMP; 2254 if (CMP_NE(_flag_a, _flag_b)) goto L_4705A57A; /* 0x4705A572: jne 0x4705a57a */ 2255 L_4705A574: 2256 _flag_a = (uint32_t)(MEM32(0x4710F150)); _flag_b = (uint32_t)(1); 2257 MEM32(0x4710F150) = MEM32(0x4710F150) + 1; /* 0x4705A574: inc dword ptr [0x4710f150] */ 2258 _flag_k = FK_INC; 2259 L_4705A57A: 2260 SET_LO8(eax, MEM8(0x4710DE04)); /* 0x4705A57A: mov al, byte ptr [0x4710de04] */ 2261 /* test LO8(eax), LO8(eax) */ /* 0x4705A57F: test al, al */ 2262 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2263 _cf = 0; 2264 _flag_k = FK_NARROW(FK_TEST, 24); 2265 if (TEST_Z(_flag_a, _flag_b)) goto L_4705A5EA; /* 0x4705A581: je 0x4705a5ea */ 2266 L_4705A583: 2267 PUSH32(esp, esi); /* 0x4705A583: push esi */ 2268 PUSH32(esp, edi); /* 0x4705A584: push edi */ 2269 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4705A585: call dword ptr [0x470ac150] */ 2270 RECOMP_FLAGS_IN(); 2271 edi = eax; /* 0x4705A58B: mov edi, eax */ 2272 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4705A58D: call dword ptr [0x470ac3c8] */ 2273 RECOMP_FLAGS_IN(); 2274 eax = MEM32(eax); /* 0x4705A593: mov eax, dword ptr [eax] */ 2275 /* test eax, eax */ /* 0x4705A595: test eax, eax */ 2276 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2277 _cf = 0; 2278 _flag_k = FK_TEST; 2279 if (TEST_Z(_flag_a, _flag_b)) goto L_4705A59B; /* 0x4705A597: je 0x4705a59b */ 2280 L_4705A599: 2281 edi = eax; /* 0x4705A599: mov edi, eax */ 2282 L_4705A59B: 2283 RECOMP_ICALL(0x47039020u); /* 0x4705A59B: call 0x47039020 */ /* not lifted */ 2284 RECOMP_FLAGS_IN(); 2285 esi = eax; /* 0x4705A5A0: mov esi, eax */ 2286 ecx = esi; /* 0x4705A5A2: mov ecx, esi */ 2287 RECOMP_ICALL(0x4703B210u); /* 0x4705A5A4: call 0x4703b210 */ /* not lifted */ 2288 RECOMP_FLAGS_IN(); 2289 PUSH32(esp, eax); /* 0x4705A5A9: push eax */ 2290 ecx = esi; /* 0x4705A5AA: mov ecx, esi */ 2291 RECOMP_ICALL(0x4703B240u); /* 0x4705A5AC: call 0x4703b240 */ /* not lifted */ 2292 RECOMP_FLAGS_IN(); 2293 PUSH32(esp, eax); /* 0x4705A5B1: push eax */ 2294 ecx = esi; /* 0x4705A5B2: mov ecx, esi */ 2295 RECOMP_ICALL(0x4703B080u); /* 0x4705A5B4: call 0x4703b080 */ /* not lifted */ 2296 RECOMP_FLAGS_IN(); 2297 PUSH32(esp, eax); /* 0x4705A5B9: push eax */ 2298 PUSH32(esp, edi); /* 0x4705A5BA: push edi */ 2299 PUSH32(esp, 0); /* 0x4705A5BB: push 0 */ 2300 PUSH32(esp, 0xE0u); /* 0x4705A5BD: push 0xe0 */ 2301 PUSH32(esp, 0x47109290u); /* 0x4705A5C2: push 0x47109290 */ 2302 ecx = esi; /* 0x4705A5C7: mov ecx, esi */ 2303 RECOMP_ICALL(0x4703A340u); /* 0x4705A5C9: call 0x4703a340 */ /* not lifted */ 2304 RECOMP_FLAGS_IN(); 2305 eax = MEM32(0x4710F150); /* 0x4705A5CE: mov eax, dword ptr [0x4710f150] */ 2306 ecx = MEM32(ebx + 0x4); /* 0x4705A5D3: mov ecx, dword ptr [ebx + 4] */ 2307 PUSH32(esp, eax); /* 0x4705A5D6: push eax */ 2308 PUSH32(esp, ecx); /* 0x4705A5D7: push ecx */ 2309 PUSH32(esp, 0x47109318u); /* 0x4705A5D8: push 0x47109318 */ 2310 PUSH32(esp, 4); /* 0x4705A5DD: push 4 */ 2311 PUSH32(esp, esi); /* 0x4705A5DF: push esi */ 2312 RECOMP_ICALL(0x47039830u); /* 0x4705A5E0: call 0x47039830 */ /* not lifted */ 2313 RECOMP_FLAGS_IN(); 2314 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2315 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2316 esp = esp + 0x14u; /* 0x4705A5E5: add esp, 0x14 */ 2317 _flag_k = FK_ADD; 2318 edi = POP32_VAL(esp); /* 0x4705A5E8: pop edi */ 2319 esi = POP32_VAL(esp); /* 0x4705A5E9: pop esi */ 2320 L_4705A5EA: 2321 ebx = POP32_VAL(esp); /* 0x4705A5EA: pop ebx */ 2322 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705A5EB: ret */ 2323 RECOMP_REGS_OUT(); 2324 } 2325 2326 void sub_4705A5F0(void) { 2327 int _fpu_cmp = 0; 2328 uint32_t _cf = 0; 2329 int _df = 1; 2330 uint32_t _flag_k = FK_NONE; 2331 uint32_t _flag_a = 0, _flag_b = 0; 2332 uint32_t _itail_tgt = 0; 2333 RECOMP_REGS_LOCALS 2334 RECOMP_ENTER(0x4705A5F0u); 2335 2336 L_4705A5F0: 2337 PUSH32(esp, 0xFFFFFFFFu); /* 0x4705A5F0: push -1 */ 2338 PUSH32(esp, 0x470A7728u); /* 0x4705A5F2: push 0x470a7728 */ 2339 eax = MEM32(FS_BASE + (0)); /* 0x4705A5F7: mov eax, dword ptr fs:[0] */ 2340 PUSH32(esp, eax); /* 0x4705A5FD: push eax */ 2341 MEM32(FS_BASE + (0)) = esp; /* 0x4705A5FE: mov dword ptr fs:[0], esp */ 2342 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2343 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2344 esp = esp - 8; /* 0x4705A605: sub esp, 8 */ 2345 _flag_k = FK_CMP; 2346 eax = MEM32(esp + 0x18); /* 0x4705A608: mov eax, dword ptr [esp + 0x18] */ 2347 PUSH32(esp, ebx); /* 0x4705A60C: push ebx */ 2348 PUSH32(esp, ebp); /* 0x4705A60D: push ebp */ 2349 PUSH32(esp, esi); /* 0x4705A60E: push esi */ 2350 esi = MEM32(eax); /* 0x4705A60F: mov esi, dword ptr [eax] */ 2351 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2352 ebp = 0; /* 0x4705A611: xor ebp, ebp */ 2353 _cf = 0; 2354 _flag_k = FK_TEST; 2355 /* cmp esi, ebp */ /* 0x4705A613: cmp esi, ebp */ 2356 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp); 2357 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2358 _flag_k = FK_CMP; 2359 ebx = ecx; /* 0x4705A615: mov ebx, ecx */ 2360 PUSH32(esp, edi); /* 0x4705A617: push edi */ 2361 MEM32(esp + 0x14) = ebx; /* 0x4705A618: mov dword ptr [esp + 0x14], ebx */ 2362 if (CMP_EQ(_flag_a, _flag_b)) goto L_4705A661; /* 0x4705A61C: je 0x4705a661 */ 2363 L_4705A61E: 2364 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2365 ecx = ecx | 0xFFFFFFFFu; /* 0x4705A61E: or ecx, 0xffffffff */ 2366 _cf = 0; 2367 _flag_k = FK_TEST; 2368 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2369 eax = 0; /* 0x4705A621: xor eax, eax */ 2370 _cf = 0; 2371 _flag_k = FK_TEST; 2372 edi = esi; /* 0x4705A623: mov edi, esi */ 2373 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; } /* 0x4705A625: repne scasb al, byte ptr es:[edi] */ 2374 ecx = ~ecx; /* 0x4705A627: not ecx */ 2375 PUSH32(esp, ecx); /* 0x4705A629: push ecx */ 2376 RECOMP_ICALL(0x470A33F2u); /* 0x4705A62A: call 0x470a33f2 */ /* not lifted */ 2377 RECOMP_FLAGS_IN(); 2378 edx = eax; /* 0x4705A62F: mov edx, eax */ 2379 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2380 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2381 esp = esp + 4; /* 0x4705A631: add esp, 4 */ 2382 _flag_k = FK_ADD; 2383 /* cmp edx, ebp */ /* 0x4705A634: cmp edx, ebp */ 2384 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebp); 2385 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2386 _flag_k = FK_CMP; 2387 if (CMP_EQ(_flag_a, _flag_b)) goto L_4705A661; /* 0x4705A636: je 0x4705a661 */ 2388 L_4705A638: 2389 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2390 ecx = ecx | 0xFFFFFFFFu; /* 0x4705A638: or ecx, 0xffffffff */ 2391 _cf = 0; 2392 _flag_k = FK_TEST; 2393 edi = esi; /* 0x4705A63B: mov edi, esi */ 2394 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2395 eax = 0; /* 0x4705A63D: xor eax, eax */ 2396 _cf = 0; 2397 _flag_k = FK_TEST; 2398 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; } /* 0x4705A63F: repne scasb al, byte ptr es:[edi] */ 2399 ecx = ~ecx; /* 0x4705A641: not ecx */ 2400 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 2401 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2402 edi = edi - ecx; /* 0x4705A643: sub edi, ecx */ 2403 _flag_k = FK_CMP; 2404 eax = ecx; /* 0x4705A645: mov eax, ecx */ 2405 esi = edi; /* 0x4705A647: mov esi, edi */ 2406 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4705A649: shr ecx, 2 */ 2407 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2408 ecx = ecx >> 2u; /* 0x4705A649: shr ecx, 2 */ 2409 edi = edx; /* 0x4705A64C: mov edi, edx */ 2410 MEM32(esp + 0x10) = eax; /* 0x4705A64E: mov dword ptr [esp + 0x10], eax */ 2411 eax = edi; /* 0x4705A652: mov eax, edi */ 2412 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4705A654: 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; } 2413 ecx = MEM32(esp + 0x10); /* 0x4705A656: mov ecx, dword ptr [esp + 0x10] */ 2414 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 2415 ecx = ecx & 3; /* 0x4705A65A: and ecx, 3 */ 2416 _cf = 0; 2417 _flag_k = FK_TEST; 2418 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4705A65D: 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; } 2419 goto L_4705A663; /* 0x4705A65F: jmp 0x4705a663 */ 2420 L_4705A661: 2421 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2422 eax = 0; /* 0x4705A661: xor eax, eax */ 2423 _cf = 0; 2424 _flag_k = FK_TEST; 2425 L_4705A663: 2426 MEM32(ebx + 0x4) = eax; /* 0x4705A663: mov dword ptr [ebx + 4], eax */ 2427 MEM32(ebx + 0x8) = ebp; /* 0x4705A666: mov dword ptr [ebx + 8], ebp */ 2428 MEM32(ebx) = 0x470ADCC8u; /* 0x4705A669: mov dword ptr [ebx], 0x470adcc8 */ 2429 esi = MEM32(esp + 0x2C); /* 0x4705A66F: mov esi, dword ptr [esp + 0x2c] */ 2430 /* cmp esi, ebp */ /* 0x4705A673: cmp esi, ebp */ 2431 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp); 2432 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2433 _flag_k = FK_CMP; 2434 MEM32(esp + 0x20) = ebp; /* 0x4705A675: mov dword ptr [esp + 0x20], ebp */ 2435 if (CMP_EQ(_flag_a, _flag_b)) goto L_4705A6B8; /* 0x4705A679: je 0x4705a6b8 */ 2436 L_4705A67B: 2437 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2438 ecx = ecx | 0xFFFFFFFFu; /* 0x4705A67B: or ecx, 0xffffffff */ 2439 _cf = 0; 2440 _flag_k = FK_TEST; 2441 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2442 eax = 0; /* 0x4705A67E: xor eax, eax */ 2443 _cf = 0; 2444 _flag_k = FK_TEST; 2445 edi = esi; /* 0x4705A680: mov edi, esi */ 2446 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; } /* 0x4705A682: repne scasb al, byte ptr es:[edi] */ 2447 ecx = ~ecx; /* 0x4705A684: not ecx */ 2448 PUSH32(esp, ecx); /* 0x4705A686: push ecx */ 2449 RECOMP_ICALL(0x470A33F2u); /* 0x4705A687: call 0x470a33f2 */ /* not lifted */ 2450 RECOMP_FLAGS_IN(); 2451 edx = eax; /* 0x4705A68C: mov edx, eax */ 2452 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2453 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2454 esp = esp + 4; /* 0x4705A68E: add esp, 4 */ 2455 _flag_k = FK_ADD; 2456 /* cmp edx, ebp */ /* 0x4705A691: cmp edx, ebp */ 2457 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebp); 2458 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2459 _flag_k = FK_CMP; 2460 if (CMP_EQ(_flag_a, _flag_b)) goto L_4705A6B8; /* 0x4705A693: je 0x4705a6b8 */ 2461 L_4705A695: 2462 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2463 ecx = ecx | 0xFFFFFFFFu; /* 0x4705A695: or ecx, 0xffffffff */ 2464 _cf = 0; 2465 _flag_k = FK_TEST; 2466 edi = esi; /* 0x4705A698: mov edi, esi */ 2467 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2468 eax = 0; /* 0x4705A69A: xor eax, eax */ 2469 _cf = 0; 2470 _flag_k = FK_TEST; 2471 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; } /* 0x4705A69C: repne scasb al, byte ptr es:[edi] */ 2472 ecx = ~ecx; /* 0x4705A69E: not ecx */ 2473 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 2474 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2475 edi = edi - ecx; /* 0x4705A6A0: sub edi, ecx */ 2476 _flag_k = FK_CMP; 2477 ebp = ecx; /* 0x4705A6A2: mov ebp, ecx */ 2478 esi = edi; /* 0x4705A6A4: mov esi, edi */ 2479 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4705A6A6: shr ecx, 2 */ 2480 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2481 ecx = ecx >> 2u; /* 0x4705A6A6: shr ecx, 2 */ 2482 edi = edx; /* 0x4705A6A9: mov edi, edx */ 2483 eax = edi; /* 0x4705A6AB: mov eax, edi */ 2484 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4705A6AD: 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; } 2485 ecx = ebp; /* 0x4705A6AF: mov ecx, ebp */ 2486 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 2487 ecx = ecx & 3; /* 0x4705A6B1: and ecx, 3 */ 2488 _cf = 0; 2489 _flag_k = FK_TEST; 2490 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4705A6B4: 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; } 2491 goto L_4705A6BA; /* 0x4705A6B6: jmp 0x4705a6ba */ 2492 L_4705A6B8: 2493 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2494 eax = 0; /* 0x4705A6B8: xor eax, eax */ 2495 _cf = 0; 2496 _flag_k = FK_TEST; 2497 L_4705A6BA: 2498 edx = MEM32(esp + 0x28); /* 0x4705A6BA: mov edx, dword ptr [esp + 0x28] */ 2499 ecx = MEM32(esp + 0x18); /* 0x4705A6BE: mov ecx, dword ptr [esp + 0x18] */ 2500 edi = POP32_VAL(esp); /* 0x4705A6C2: pop edi */ 2501 esi = POP32_VAL(esp); /* 0x4705A6C3: pop esi */ 2502 MEM32(ebx + 0xC) = eax; /* 0x4705A6C4: mov dword ptr [ebx + 0xc], eax */ 2503 MEM32(ebx + 0x10) = edx; /* 0x4705A6C7: mov dword ptr [ebx + 0x10], edx */ 2504 MEM32(ebx) = 0x470ADCF4u; /* 0x4705A6CA: mov dword ptr [ebx], 0x470adcf4 */ 2505 ebp = POP32_VAL(esp); /* 0x4705A6D0: pop ebp */ 2506 eax = ebx; /* 0x4705A6D1: mov eax, ebx */ 2507 ebx = POP32_VAL(esp); /* 0x4705A6D3: pop ebx */ 2508 MEM32(FS_BASE + (0)) = ecx; /* 0x4705A6D4: mov dword ptr fs:[0], ecx */ 2509 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2510 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2511 esp = esp + 0x14u; /* 0x4705A6DB: add esp, 0x14 */ 2512 _flag_k = FK_ADD; 2513 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4705A6DE: ret 8 */ 2514 RECOMP_REGS_OUT(); 2515 } 2516 2517 void sub_4705A6F0(void) { 2518 int _fpu_cmp = 0; 2519 uint32_t _cf = 0; 2520 int _df = 1; 2521 uint32_t _flag_k = FK_NONE; 2522 uint32_t _flag_a = 0, _flag_b = 0; 2523 uint32_t _itail_tgt = 0; 2524 RECOMP_REGS_LOCALS 2525 RECOMP_ENTER(0x4705A6F0u); 2526 2527 L_4705A6F0: 2528 PUSH32(esp, ebx); /* 0x4705A6F0: push ebx */ 2529 ebx = ecx; /* 0x4705A6F1: mov ebx, ecx */ 2530 eax = MEM32(ebx + 0xC); /* 0x4705A6F3: mov eax, dword ptr [ebx + 0xc] */ 2531 PUSH32(esp, eax); /* 0x4705A6F6: push eax */ 2532 eax = MEM32(ebx); /* 0x4705A6F7: mov eax, dword ptr [ebx] */ 2533 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x4705A6F9: call dword ptr [eax + 8] */ 2534 RECOMP_FLAGS_IN(); 2535 PUSH32(esp, eax); /* 0x4705A6FC: push eax */ 2536 RECOMP_ICALL(0x47075020u); /* 0x4705A6FD: call 0x47075020 */ /* not lifted */ 2537 RECOMP_FLAGS_IN(); 2538 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2539 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2540 esp = esp + 8; /* 0x4705A702: add esp, 8 */ 2541 _flag_k = FK_ADD; 2542 /* cmp eax, 0xFFFFFFFFu */ /* 0x4705A705: cmp eax, -1 */ 2543 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 2544 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2545 _flag_k = FK_CMP; 2546 if (CMP_NE(_flag_a, _flag_b)) goto L_4705A710; /* 0x4705A708: jne 0x4705a710 */ 2547 L_4705A70A: 2548 _flag_a = (uint32_t)(MEM32(0x4710F150)); _flag_b = (uint32_t)(1); 2549 MEM32(0x4710F150) = MEM32(0x4710F150) + 1; /* 0x4705A70A: inc dword ptr [0x4710f150] */ 2550 _flag_k = FK_INC; 2551 L_4705A710: 2552 SET_LO8(eax, MEM8(0x4710DE04)); /* 0x4705A710: mov al, byte ptr [0x4710de04] */ 2553 /* test LO8(eax), LO8(eax) */ /* 0x4705A715: test al, al */ 2554 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2555 _cf = 0; 2556 _flag_k = FK_NARROW(FK_TEST, 24); 2557 if (TEST_Z(_flag_a, _flag_b)) goto L_4705A781; /* 0x4705A717: je 0x4705a781 */ 2558 L_4705A719: 2559 PUSH32(esp, esi); /* 0x4705A719: push esi */ 2560 PUSH32(esp, edi); /* 0x4705A71A: push edi */ 2561 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4705A71B: call dword ptr [0x470ac150] */ 2562 RECOMP_FLAGS_IN(); 2563 edi = eax; /* 0x4705A721: mov edi, eax */ 2564 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4705A723: call dword ptr [0x470ac3c8] */ 2565 RECOMP_FLAGS_IN(); 2566 eax = MEM32(eax); /* 0x4705A729: mov eax, dword ptr [eax] */ 2567 /* test eax, eax */ /* 0x4705A72B: test eax, eax */ 2568 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2569 _cf = 0; 2570 _flag_k = FK_TEST; 2571 if (TEST_Z(_flag_a, _flag_b)) goto L_4705A731; /* 0x4705A72D: je 0x4705a731 */ 2572 L_4705A72F: 2573 edi = eax; /* 0x4705A72F: mov edi, eax */ 2574 L_4705A731: 2575 RECOMP_ICALL(0x47039020u); /* 0x4705A731: call 0x47039020 */ /* not lifted */ 2576 RECOMP_FLAGS_IN(); 2577 esi = eax; /* 0x4705A736: mov esi, eax */ 2578 ecx = esi; /* 0x4705A738: mov ecx, esi */ 2579 RECOMP_ICALL(0x4703B210u); /* 0x4705A73A: call 0x4703b210 */ /* not lifted */ 2580 RECOMP_FLAGS_IN(); 2581 PUSH32(esp, eax); /* 0x4705A73F: push eax */ 2582 ecx = esi; /* 0x4705A740: mov ecx, esi */ 2583 RECOMP_ICALL(0x4703B240u); /* 0x4705A742: call 0x4703b240 */ /* not lifted */ 2584 RECOMP_FLAGS_IN(); 2585 PUSH32(esp, eax); /* 0x4705A747: push eax */ 2586 ecx = esi; /* 0x4705A748: mov ecx, esi */ 2587 RECOMP_ICALL(0x4703B080u); /* 0x4705A74A: call 0x4703b080 */ /* not lifted */ 2588 RECOMP_FLAGS_IN(); 2589 PUSH32(esp, eax); /* 0x4705A74F: push eax */ 2590 PUSH32(esp, edi); /* 0x4705A750: push edi */ 2591 PUSH32(esp, 0); /* 0x4705A751: push 0 */ 2592 PUSH32(esp, 0xFFu); /* 0x4705A753: push 0xff */ 2593 PUSH32(esp, 0x47109290u); /* 0x4705A758: push 0x47109290 */ 2594 ecx = esi; /* 0x4705A75D: mov ecx, esi */ 2595 RECOMP_ICALL(0x4703A340u); /* 0x4705A75F: call 0x4703a340 */ /* not lifted */ 2596 RECOMP_FLAGS_IN(); 2597 ecx = MEM32(0x4710F150); /* 0x4705A764: mov ecx, dword ptr [0x4710f150] */ 2598 edx = MEM32(ebx + 0x4); /* 0x4705A76A: mov edx, dword ptr [ebx + 4] */ 2599 PUSH32(esp, ecx); /* 0x4705A76D: push ecx */ 2600 PUSH32(esp, edx); /* 0x4705A76E: push edx */ 2601 PUSH32(esp, 0x47109338u); /* 0x4705A76F: push 0x47109338 */ 2602 PUSH32(esp, 4); /* 0x4705A774: push 4 */ 2603 PUSH32(esp, esi); /* 0x4705A776: push esi */ 2604 RECOMP_ICALL(0x47039830u); /* 0x4705A777: call 0x47039830 */ /* not lifted */ 2605 RECOMP_FLAGS_IN(); 2606 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2607 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2608 esp = esp + 0x14u; /* 0x4705A77C: add esp, 0x14 */ 2609 _flag_k = FK_ADD; 2610 edi = POP32_VAL(esp); /* 0x4705A77F: pop edi */ 2611 esi = POP32_VAL(esp); /* 0x4705A780: pop esi */ 2612 L_4705A781: 2613 ebx = POP32_VAL(esp); /* 0x4705A781: pop ebx */ 2614 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705A782: ret */ 2615 RECOMP_REGS_OUT(); 2616 } 2617 2618 void sub_4705A790(void) { 2619 int _fpu_cmp = 0; 2620 uint32_t _cf = 0; 2621 int _df = 1; 2622 uint32_t _flag_k = FK_NONE; 2623 uint32_t _flag_a = 0, _flag_b = 0; 2624 uint32_t _itail_tgt = 0; 2625 RECOMP_REGS_LOCALS 2626 RECOMP_ENTER(0x4705A790u); 2627 2628 L_4705A790: 2629 PUSH32(esp, esi); /* 0x4705A790: push esi */ 2630 esi = ecx; /* 0x4705A791: mov esi, ecx */ 2631 eax = MEM32(esi + 0xC); /* 0x4705A793: mov eax, dword ptr [esi + 0xc] */ 2632 PUSH32(esp, eax); /* 0x4705A796: push eax */ 2633 MEM32(esi) = 0x470ADCE8u; /* 0x4705A797: mov dword ptr [esi], 0x470adce8 */ 2634 RECOMP_ICALL(0x470A32A2u); /* 0x4705A79D: call 0x470a32a2 */ /* not lifted */ 2635 RECOMP_FLAGS_IN(); 2636 ecx = MEM32(esi + 0x4); /* 0x4705A7A2: mov ecx, dword ptr [esi + 4] */ 2637 PUSH32(esp, ecx); /* 0x4705A7A5: push ecx */ 2638 MEM32(esi) = 0x470ADCC8u; /* 0x4705A7A6: mov dword ptr [esi], 0x470adcc8 */ 2639 RECOMP_ICALL(0x470A32A2u); /* 0x4705A7AC: call 0x470a32a2 */ /* not lifted */ 2640 RECOMP_FLAGS_IN(); 2641 ecx = MEM32(esi + 0x8); /* 0x4705A7B1: mov ecx, dword ptr [esi + 8] */ 2642 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2643 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2644 esp = esp + 8; /* 0x4705A7B4: add esp, 8 */ 2645 _flag_k = FK_ADD; 2646 /* test ecx, ecx */ /* 0x4705A7B7: test ecx, ecx */ 2647 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2648 _cf = 0; 2649 _flag_k = FK_TEST; 2650 esi = POP32_VAL(esp); /* 0x4705A7B9: pop esi */ 2651 if (TEST_Z(_flag_a, _flag_b)) goto L_4705A7C2; /* 0x4705A7BA: je 0x4705a7c2 */ 2652 L_4705A7BC: 2653 edx = MEM32(ecx); /* 0x4705A7BC: mov edx, dword ptr [ecx] */ 2654 PUSH32(esp, 1); /* 0x4705A7BE: push 1 */ 2655 RECOMP_ICALL(MEM32(edx)); /* 0x4705A7C0: call dword ptr [edx] */ 2656 RECOMP_FLAGS_IN(); 2657 L_4705A7C2: 2658 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705A7C2: ret */ 2659 RECOMP_REGS_OUT(); 2660 } 2661 2662 void sub_4705A7D0(void) { 2663 int _fpu_cmp = 0; 2664 uint32_t _cf = 0; 2665 int _df = 1; 2666 uint32_t _flag_k = FK_NONE; 2667 uint32_t _flag_a = 0, _flag_b = 0; 2668 uint32_t _itail_tgt = 0; 2669 RECOMP_REGS_LOCALS 2670 RECOMP_ENTER(0x4705A7D0u); 2671 2672 L_4705A7D0: 2673 PUSH32(esp, 0xFFFFFFFFu); /* 0x4705A7D0: push -1 */ 2674 PUSH32(esp, 0x470A7748u); /* 0x4705A7D2: push 0x470a7748 */ 2675 eax = MEM32(FS_BASE + (0)); /* 0x4705A7D7: mov eax, dword ptr fs:[0] */ 2676 PUSH32(esp, eax); /* 0x4705A7DD: push eax */ 2677 MEM32(FS_BASE + (0)) = esp; /* 0x4705A7DE: mov dword ptr fs:[0], esp */ 2678 PUSH32(esp, ecx); /* 0x4705A7E5: push ecx */ 2679 PUSH32(esp, ebx); /* 0x4705A7E6: push ebx */ 2680 PUSH32(esp, ebp); /* 0x4705A7E7: push ebp */ 2681 PUSH32(esp, esi); /* 0x4705A7E8: push esi */ 2682 esi = MEM32(esp + 0x20); /* 0x4705A7E9: mov esi, dword ptr [esp + 0x20] */ 2683 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2684 ebp = 0; /* 0x4705A7ED: xor ebp, ebp */ 2685 _cf = 0; 2686 _flag_k = FK_TEST; 2687 /* cmp esi, ebp */ /* 0x4705A7EF: cmp esi, ebp */ 2688 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp); 2689 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2690 _flag_k = FK_CMP; 2691 ebx = ecx; /* 0x4705A7F1: mov ebx, ecx */ 2692 PUSH32(esp, edi); /* 0x4705A7F3: push edi */ 2693 MEM32(esp + 0x10) = ebx; /* 0x4705A7F4: mov dword ptr [esp + 0x10], ebx */ 2694 if (CMP_EQ(_flag_a, _flag_b)) goto L_4705A83D; /* 0x4705A7F8: je 0x4705a83d */ 2695 L_4705A7FA: 2696 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2697 ecx = ecx | 0xFFFFFFFFu; /* 0x4705A7FA: or ecx, 0xffffffff */ 2698 _cf = 0; 2699 _flag_k = FK_TEST; 2700 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2701 eax = 0; /* 0x4705A7FD: xor eax, eax */ 2702 _cf = 0; 2703 _flag_k = FK_TEST; 2704 edi = esi; /* 0x4705A7FF: mov edi, esi */ 2705 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; } /* 0x4705A801: repne scasb al, byte ptr es:[edi] */ 2706 ecx = ~ecx; /* 0x4705A803: not ecx */ 2707 PUSH32(esp, ecx); /* 0x4705A805: push ecx */ 2708 RECOMP_ICALL(0x470A33F2u); /* 0x4705A806: call 0x470a33f2 */ /* not lifted */ 2709 RECOMP_FLAGS_IN(); 2710 edx = eax; /* 0x4705A80B: mov edx, eax */ 2711 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2712 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2713 esp = esp + 4; /* 0x4705A80D: add esp, 4 */ 2714 _flag_k = FK_ADD; 2715 /* cmp edx, ebp */ /* 0x4705A810: cmp edx, ebp */ 2716 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebp); 2717 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2718 _flag_k = FK_CMP; 2719 if (CMP_EQ(_flag_a, _flag_b)) goto L_4705A83D; /* 0x4705A812: je 0x4705a83d */ 2720 L_4705A814: 2721 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2722 ecx = ecx | 0xFFFFFFFFu; /* 0x4705A814: or ecx, 0xffffffff */ 2723 _cf = 0; 2724 _flag_k = FK_TEST; 2725 edi = esi; /* 0x4705A817: mov edi, esi */ 2726 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2727 eax = 0; /* 0x4705A819: xor eax, eax */ 2728 _cf = 0; 2729 _flag_k = FK_TEST; 2730 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; } /* 0x4705A81B: repne scasb al, byte ptr es:[edi] */ 2731 ecx = ~ecx; /* 0x4705A81D: not ecx */ 2732 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 2733 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2734 edi = edi - ecx; /* 0x4705A81F: sub edi, ecx */ 2735 _flag_k = FK_CMP; 2736 eax = ecx; /* 0x4705A821: mov eax, ecx */ 2737 esi = edi; /* 0x4705A823: mov esi, edi */ 2738 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4705A825: shr ecx, 2 */ 2739 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2740 ecx = ecx >> 2u; /* 0x4705A825: shr ecx, 2 */ 2741 edi = edx; /* 0x4705A828: mov edi, edx */ 2742 MEM32(esp + 0x24) = eax; /* 0x4705A82A: mov dword ptr [esp + 0x24], eax */ 2743 eax = edi; /* 0x4705A82E: mov eax, edi */ 2744 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4705A830: 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; } 2745 ecx = MEM32(esp + 0x24); /* 0x4705A832: mov ecx, dword ptr [esp + 0x24] */ 2746 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 2747 ecx = ecx & 3; /* 0x4705A836: and ecx, 3 */ 2748 _cf = 0; 2749 _flag_k = FK_TEST; 2750 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4705A839: 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; } 2751 goto L_4705A83F; /* 0x4705A83B: jmp 0x4705a83f */ 2752 L_4705A83D: 2753 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2754 eax = 0; /* 0x4705A83D: xor eax, eax */ 2755 _cf = 0; 2756 _flag_k = FK_TEST; 2757 L_4705A83F: 2758 MEM32(ebx + 0x4) = eax; /* 0x4705A83F: mov dword ptr [ebx + 4], eax */ 2759 MEM32(ebx + 0x8) = ebp; /* 0x4705A842: mov dword ptr [ebx + 8], ebp */ 2760 MEM32(ebx) = 0x470ADCC8u; /* 0x4705A845: mov dword ptr [ebx], 0x470adcc8 */ 2761 esi = MEM32(esp + 0x28); /* 0x4705A84B: mov esi, dword ptr [esp + 0x28] */ 2762 /* cmp esi, ebp */ /* 0x4705A84F: cmp esi, ebp */ 2763 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp); 2764 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2765 _flag_k = FK_CMP; 2766 MEM32(esp + 0x1C) = ebp; /* 0x4705A851: mov dword ptr [esp + 0x1c], ebp */ 2767 if (CMP_EQ(_flag_a, _flag_b)) goto L_4705A894; /* 0x4705A855: je 0x4705a894 */ 2768 L_4705A857: 2769 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2770 ecx = ecx | 0xFFFFFFFFu; /* 0x4705A857: or ecx, 0xffffffff */ 2771 _cf = 0; 2772 _flag_k = FK_TEST; 2773 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2774 eax = 0; /* 0x4705A85A: xor eax, eax */ 2775 _cf = 0; 2776 _flag_k = FK_TEST; 2777 edi = esi; /* 0x4705A85C: mov edi, esi */ 2778 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; } /* 0x4705A85E: repne scasb al, byte ptr es:[edi] */ 2779 ecx = ~ecx; /* 0x4705A860: not ecx */ 2780 PUSH32(esp, ecx); /* 0x4705A862: push ecx */ 2781 RECOMP_ICALL(0x470A33F2u); /* 0x4705A863: call 0x470a33f2 */ /* not lifted */ 2782 RECOMP_FLAGS_IN(); 2783 edx = eax; /* 0x4705A868: mov edx, eax */ 2784 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2785 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2786 esp = esp + 4; /* 0x4705A86A: add esp, 4 */ 2787 _flag_k = FK_ADD; 2788 /* cmp edx, ebp */ /* 0x4705A86D: cmp edx, ebp */ 2789 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebp); 2790 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2791 _flag_k = FK_CMP; 2792 if (CMP_EQ(_flag_a, _flag_b)) goto L_4705A894; /* 0x4705A86F: je 0x4705a894 */ 2793 L_4705A871: 2794 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2795 ecx = ecx | 0xFFFFFFFFu; /* 0x4705A871: or ecx, 0xffffffff */ 2796 _cf = 0; 2797 _flag_k = FK_TEST; 2798 edi = esi; /* 0x4705A874: mov edi, esi */ 2799 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2800 eax = 0; /* 0x4705A876: xor eax, eax */ 2801 _cf = 0; 2802 _flag_k = FK_TEST; 2803 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; } /* 0x4705A878: repne scasb al, byte ptr es:[edi] */ 2804 ecx = ~ecx; /* 0x4705A87A: not ecx */ 2805 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 2806 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2807 edi = edi - ecx; /* 0x4705A87C: sub edi, ecx */ 2808 _flag_k = FK_CMP; 2809 ebp = ecx; /* 0x4705A87E: mov ebp, ecx */ 2810 esi = edi; /* 0x4705A880: mov esi, edi */ 2811 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4705A882: shr ecx, 2 */ 2812 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2813 ecx = ecx >> 2u; /* 0x4705A882: shr ecx, 2 */ 2814 edi = edx; /* 0x4705A885: mov edi, edx */ 2815 eax = edi; /* 0x4705A887: mov eax, edi */ 2816 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4705A889: 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; } 2817 ecx = ebp; /* 0x4705A88B: mov ecx, ebp */ 2818 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 2819 ecx = ecx & 3; /* 0x4705A88D: and ecx, 3 */ 2820 _cf = 0; 2821 _flag_k = FK_TEST; 2822 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4705A890: 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; } 2823 goto L_4705A896; /* 0x4705A892: jmp 0x4705a896 */ 2824 L_4705A894: 2825 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2826 eax = 0; /* 0x4705A894: xor eax, eax */ 2827 _cf = 0; 2828 _flag_k = FK_TEST; 2829 L_4705A896: 2830 ecx = MEM32(esp + 0x14); /* 0x4705A896: mov ecx, dword ptr [esp + 0x14] */ 2831 edi = POP32_VAL(esp); /* 0x4705A89A: pop edi */ 2832 esi = POP32_VAL(esp); /* 0x4705A89B: pop esi */ 2833 MEM32(ebx + 0xC) = eax; /* 0x4705A89C: mov dword ptr [ebx + 0xc], eax */ 2834 MEM32(ebx) = 0x470ADCE8u; /* 0x4705A89F: mov dword ptr [ebx], 0x470adce8 */ 2835 ebp = POP32_VAL(esp); /* 0x4705A8A5: pop ebp */ 2836 eax = ebx; /* 0x4705A8A6: mov eax, ebx */ 2837 ebx = POP32_VAL(esp); /* 0x4705A8A8: pop ebx */ 2838 MEM32(FS_BASE + (0)) = ecx; /* 0x4705A8A9: mov dword ptr fs:[0], ecx */ 2839 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2840 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2841 esp = esp + 0x10u; /* 0x4705A8B0: add esp, 0x10 */ 2842 _flag_k = FK_ADD; 2843 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4705A8B3: ret 8 */ 2844 RECOMP_REGS_OUT(); 2845 } 2846 2847 void sub_4705A8C0(void) { 2848 int _fpu_cmp = 0; 2849 uint32_t _cf = 0; 2850 int _df = 1; 2851 uint32_t _flag_k = FK_NONE; 2852 uint32_t _flag_a = 0, _flag_b = 0; 2853 uint32_t _itail_tgt = 0; 2854 RECOMP_REGS_LOCALS 2855 RECOMP_ENTER(0x4705A8C0u); 2856 2857 L_4705A8C0: 2858 PUSH32(esp, ecx); /* 0x4705A8C0: push ecx */ 2859 ecx = MEM32(ecx + 0x4); /* 0x4705A8C1: mov ecx, dword ptr [ecx + 4] */ 2860 PUSH32(esp, 1); /* 0x4705A8C4: push 1 */ 2861 eax = esp + 0x4; /* 0x4705A8C6: lea eax, [esp + 4] */ 2862 PUSH32(esp, eax); /* 0x4705A8CA: push eax */ 2863 PUSH32(esp, ecx); /* 0x4705A8CB: push ecx */ 2864 PUSH32(esp, 0x400u); /* 0x4705A8CC: push 0x400 */ 2865 RECOMP_ICALL(0x47076EE0u); /* 0x4705A8D1: call 0x47076ee0 */ /* not lifted */ 2866 RECOMP_FLAGS_IN(); 2867 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2868 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2869 esp = esp + 4; /* 0x4705A8D6: add esp, 4 */ 2870 _flag_k = FK_ADD; 2871 ecx = eax; /* 0x4705A8D9: mov ecx, eax */ 2872 RECOMP_ICALL(0x47077550u); /* 0x4705A8DB: call 0x47077550 */ /* not lifted */ 2873 RECOMP_FLAGS_IN(); 2874 ecx = MEM32(esp); /* 0x4705A8E0: mov ecx, dword ptr [esp] */ 2875 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2876 eax = eax + 1; /* 0x4705A8E4: inc eax */ 2877 _flag_k = FK_INC; 2878 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 2879 _cf = (eax) != 0; 2880 eax = (uint32_t)(-(int32_t)eax); /* 0x4705A8E5: neg eax */ 2881 _flag_k = FK_CMP; 2882 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x4705A8E7: sbb eax, eax */ 2883 eax = _sc ? 0xFFFFFFFFu : 0; 2884 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2885 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2886 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2887 eax = eax & ecx; /* 0x4705A8E9: and eax, ecx */ 2888 _cf = 0; 2889 _flag_k = FK_TEST; 2890 ecx = POP32_VAL(esp); /* 0x4705A8EB: pop ecx */ 2891 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705A8EC: ret */ 2892 RECOMP_REGS_OUT(); 2893 } 2894 2895 void sub_4705A8F0(void) { 2896 int _fpu_cmp = 0; 2897 uint32_t _cf = 0; 2898 int _df = 1; 2899 uint32_t _flag_k = FK_NONE; 2900 uint32_t _flag_a = 0, _flag_b = 0; 2901 uint32_t _itail_tgt = 0; 2902 RECOMP_REGS_LOCALS 2903 RECOMP_ENTER(0x4705A8F0u); 2904 2905 L_4705A8F0: 2906 PUSH32(esp, edi); /* 0x4705A8F0: push edi */ 2907 edi = ecx; /* 0x4705A8F1: mov edi, ecx */ 2908 eax = MEM32(edi + 0xC); /* 0x4705A8F3: mov eax, dword ptr [edi + 0xc] */ 2909 ecx = MEM32(edi + 0x4); /* 0x4705A8F6: mov ecx, dword ptr [edi + 4] */ 2910 PUSH32(esp, eax); /* 0x4705A8F9: push eax */ 2911 PUSH32(esp, ecx); /* 0x4705A8FA: push ecx */ 2912 RECOMP_ICALL(0x47074DC0u); /* 0x4705A8FB: call 0x47074dc0 */ /* not lifted */ 2913 RECOMP_FLAGS_IN(); 2914 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2915 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2916 esp = esp + 8; /* 0x4705A900: add esp, 8 */ 2917 _flag_k = FK_ADD; 2918 /* cmp eax, 0xFFFFFFFFu */ /* 0x4705A903: cmp eax, -1 */ 2919 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 2920 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2921 _flag_k = FK_CMP; 2922 if (CMP_NE(_flag_a, _flag_b)) goto L_4705A90E; /* 0x4705A906: jne 0x4705a90e */ 2923 L_4705A908: 2924 _flag_a = (uint32_t)(MEM32(0x4710F150)); _flag_b = (uint32_t)(1); 2925 MEM32(0x4710F150) = MEM32(0x4710F150) + 1; /* 0x4705A908: inc dword ptr [0x4710f150] */ 2926 _flag_k = FK_INC; 2927 L_4705A90E: 2928 SET_LO8(eax, MEM8(0x4710DE04)); /* 0x4705A90E: mov al, byte ptr [0x4710de04] */ 2929 /* test LO8(eax), LO8(eax) */ /* 0x4705A913: test al, al */ 2930 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2931 _cf = 0; 2932 _flag_k = FK_NARROW(FK_TEST, 24); 2933 if (TEST_Z(_flag_a, _flag_b)) goto L_4705A97E; /* 0x4705A915: je 0x4705a97e */ 2934 L_4705A917: 2935 PUSH32(esp, ebx); /* 0x4705A917: push ebx */ 2936 PUSH32(esp, esi); /* 0x4705A918: push esi */ 2937 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4705A919: call dword ptr [0x470ac150] */ 2938 RECOMP_FLAGS_IN(); 2939 ebx = eax; /* 0x4705A91F: mov ebx, eax */ 2940 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4705A921: call dword ptr [0x470ac3c8] */ 2941 RECOMP_FLAGS_IN(); 2942 eax = MEM32(eax); /* 0x4705A927: mov eax, dword ptr [eax] */ 2943 /* test eax, eax */ /* 0x4705A929: test eax, eax */ 2944 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2945 _cf = 0; 2946 _flag_k = FK_TEST; 2947 if (TEST_Z(_flag_a, _flag_b)) goto L_4705A92F; /* 0x4705A92B: je 0x4705a92f */ 2948 L_4705A92D: 2949 ebx = eax; /* 0x4705A92D: mov ebx, eax */ 2950 L_4705A92F: 2951 RECOMP_ICALL(0x47039020u); /* 0x4705A92F: call 0x47039020 */ /* not lifted */ 2952 RECOMP_FLAGS_IN(); 2953 esi = eax; /* 0x4705A934: mov esi, eax */ 2954 ecx = esi; /* 0x4705A936: mov ecx, esi */ 2955 RECOMP_ICALL(0x4703B210u); /* 0x4705A938: call 0x4703b210 */ /* not lifted */ 2956 RECOMP_FLAGS_IN(); 2957 PUSH32(esp, eax); /* 0x4705A93D: push eax */ 2958 ecx = esi; /* 0x4705A93E: mov ecx, esi */ 2959 RECOMP_ICALL(0x4703B240u); /* 0x4705A940: call 0x4703b240 */ /* not lifted */ 2960 RECOMP_FLAGS_IN(); 2961 PUSH32(esp, eax); /* 0x4705A945: push eax */ 2962 ecx = esi; /* 0x4705A946: mov ecx, esi */ 2963 RECOMP_ICALL(0x4703B080u); /* 0x4705A948: call 0x4703b080 */ /* not lifted */ 2964 RECOMP_FLAGS_IN(); 2965 PUSH32(esp, eax); /* 0x4705A94D: push eax */ 2966 PUSH32(esp, ebx); /* 0x4705A94E: push ebx */ 2967 PUSH32(esp, 0); /* 0x4705A94F: push 0 */ 2968 PUSH32(esp, 0x140u); /* 0x4705A951: push 0x140 */ 2969 PUSH32(esp, 0x47109290u); /* 0x4705A956: push 0x47109290 */ 2970 ecx = esi; /* 0x4705A95B: mov ecx, esi */ 2971 RECOMP_ICALL(0x4703A340u); /* 0x4705A95D: call 0x4703a340 */ /* not lifted */ 2972 RECOMP_FLAGS_IN(); 2973 eax = MEM32(0x4710F150); /* 0x4705A962: mov eax, dword ptr [0x4710f150] */ 2974 ecx = MEM32(edi + 0x4); /* 0x4705A967: mov ecx, dword ptr [edi + 4] */ 2975 PUSH32(esp, eax); /* 0x4705A96A: push eax */ 2976 PUSH32(esp, ecx); /* 0x4705A96B: push ecx */ 2977 PUSH32(esp, 0x47109358u); /* 0x4705A96C: push 0x47109358 */ 2978 PUSH32(esp, 4); /* 0x4705A971: push 4 */ 2979 PUSH32(esp, esi); /* 0x4705A973: push esi */ 2980 RECOMP_ICALL(0x47039830u); /* 0x4705A974: call 0x47039830 */ /* not lifted */ 2981 RECOMP_FLAGS_IN(); 2982 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2983 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2984 esp = esp + 0x14u; /* 0x4705A979: add esp, 0x14 */ 2985 _flag_k = FK_ADD; 2986 esi = POP32_VAL(esp); /* 0x4705A97C: pop esi */ 2987 ebx = POP32_VAL(esp); /* 0x4705A97D: pop ebx */ 2988 L_4705A97E: 2989 edi = POP32_VAL(esp); /* 0x4705A97E: pop edi */ 2990 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705A97F: ret */ 2991 RECOMP_REGS_OUT(); 2992 } 2993 2994 void sub_4705A980(void) { 2995 int _fpu_cmp = 0; 2996 uint32_t _cf = 0; 2997 int _df = 1; 2998 uint32_t _flag_k = FK_NONE; 2999 uint32_t _flag_a = 0, _flag_b = 0; 3000 uint32_t _itail_tgt = 0; 3001 RECOMP_REGS_LOCALS 3002 RECOMP_ENTER(0x4705A980u); 3003 3004 L_4705A980: 3005 eax = ecx; /* 0x4705A980: mov eax, ecx */ 3006 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3007 ecx = 0; /* 0x4705A982: xor ecx, ecx */ 3008 _cf = 0; 3009 _flag_k = FK_TEST; 3010 MEM32(eax + 0x4) = ecx; /* 0x4705A984: mov dword ptr [eax + 4], ecx */ 3011 MEM32(eax + 0xC) = ecx; /* 0x4705A987: mov dword ptr [eax + 0xc], ecx */ 3012 MEM32(eax + 0x10) = ecx; /* 0x4705A98A: mov dword ptr [eax + 0x10], ecx */ 3013 MEM32(eax) = 0x470ADD08u; /* 0x4705A98D: mov dword ptr [eax], 0x470add08 */ 3014 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705A993: ret */ 3015 RECOMP_REGS_OUT(); 3016 } 3017 3018 void sub_4705A9A0(void) { 3019 int _fpu_cmp = 0; 3020 uint32_t _cf = 0; 3021 int _df = 1; 3022 uint32_t _flag_k = FK_NONE; 3023 uint32_t _flag_a = 0, _flag_b = 0; 3024 uint32_t _itail_tgt = 0; 3025 RECOMP_REGS_LOCALS 3026 RECOMP_ENTER(0x4705A9A0u); 3027 3028 L_4705A9A0: 3029 MEM32(ecx) = 0x470ADD08u; /* 0x4705A9A0: mov dword ptr [ecx], 0x470add08 */ 3030 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705A9A6: ret */ 3031 RECOMP_REGS_OUT(); 3032 } 3033 3034 void sub_4705A9B0(void) { 3035 int _fpu_cmp = 0; 3036 uint32_t _cf = 0; 3037 int _df = 1; 3038 uint32_t _flag_k = FK_NONE; 3039 uint32_t _flag_a = 0, _flag_b = 0; 3040 uint32_t _itail_tgt = 0; 3041 RECOMP_REGS_LOCALS 3042 RECOMP_ENTER(0x4705A9B0u); 3043 3044 L_4705A9B0: 3045 eax = MEM32(esp + 0x4); /* 0x4705A9B0: mov eax, dword ptr [esp + 4] */ 3046 MEM32(ecx + 0x10) = eax; /* 0x4705A9B4: mov dword ptr [ecx + 0x10], eax */ 3047 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4705A9B7: ret 4 */ 3048 RECOMP_REGS_OUT(); 3049 } 3050 3051 void sub_4705A9C0(void) { 3052 int _fpu_cmp = 0; 3053 uint32_t _cf = 0; 3054 int _df = 1; 3055 uint32_t _flag_k = FK_NONE; 3056 uint32_t _flag_a = 0, _flag_b = 0; 3057 uint32_t _itail_tgt = 0; 3058 RECOMP_REGS_LOCALS 3059 RECOMP_ENTER(0x4705A9C0u); 3060 3061 L_4705A9C0: 3062 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10Cu); 3063 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3064 esp = esp - 0x10Cu; /* 0x4705A9C0: sub esp, 0x10c */ 3065 _flag_k = FK_CMP; 3066 PUSH32(esp, ebx); /* 0x4705A9C6: push ebx */ 3067 PUSH32(esp, ebp); /* 0x4705A9C7: push ebp */ 3068 PUSH32(esp, esi); /* 0x4705A9C8: push esi */ 3069 PUSH32(esp, edi); /* 0x4705A9C9: push edi */ 3070 ebp = ecx; /* 0x4705A9CA: mov ebp, ecx */ 3071 eax = MEM32(ebp + 0x4); /* 0x4705A9CC: mov eax, dword ptr [ebp + 4] */ 3072 PUSH32(esp, 0x105u); /* 0x4705A9CF: push 0x105 */ 3073 ecx = esp + 0x18; /* 0x4705A9D4: lea ecx, [esp + 0x18] */ 3074 PUSH32(esp, ecx); /* 0x4705A9D8: push ecx */ 3075 PUSH32(esp, eax); /* 0x4705A9D9: push eax */ 3076 MEM32(esp + 0x1C) = ebp; /* 0x4705A9DA: mov dword ptr [esp + 0x1c], ebp */ 3077 RECOMP_ICALL(0x4700B6F0u); /* 0x4705A9DE: call 0x4700b6f0 */ /* not lifted */ 3078 RECOMP_FLAGS_IN(); 3079 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3080 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3081 esp = esp + 0xCu; /* 0x4705A9E3: add esp, 0xc */ 3082 _flag_k = FK_ADD; 3083 /* test eax, eax */ /* 0x4705A9E6: test eax, eax */ 3084 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3085 _cf = 0; 3086 _flag_k = FK_TEST; 3087 if (TEST_Z(_flag_a, _flag_b)) goto L_4705A9F7; /* 0x4705A9E8: je 0x4705a9f7 */ 3088 L_4705A9EA: 3089 edi = POP32_VAL(esp); /* 0x4705A9EA: pop edi */ 3090 esi = POP32_VAL(esp); /* 0x4705A9EB: pop esi */ 3091 ebp = POP32_VAL(esp); /* 0x4705A9EC: pop ebp */ 3092 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3093 eax = 0; /* 0x4705A9ED: xor eax, eax */ 3094 _cf = 0; 3095 _flag_k = FK_TEST; 3096 ebx = POP32_VAL(esp); /* 0x4705A9EF: pop ebx */ 3097 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10Cu); 3098 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3099 esp = esp + 0x10Cu; /* 0x4705A9F0: add esp, 0x10c */ 3100 _flag_k = FK_ADD; 3101 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705A9F6: ret */ 3102 L_4705A9F7: 3103 edx = esp + 0x14; /* 0x4705A9F7: lea edx, [esp + 0x14] */ 3104 PUSH32(esp, edx); /* 0x4705A9FB: push edx */ 3105 RECOMP_ICALL(MEM32(0x470AC11C)); /* 0x4705A9FC: call dword ptr [0x470ac11c] */ 3106 RECOMP_FLAGS_IN(); 3107 ebx = MEM32(0x470AC3C8); /* 0x4705AA02: mov ebx, dword ptr [0x470ac3c8] */ 3108 edi = MEM32(0x470AC150); /* 0x4705AA08: mov edi, dword ptr [0x470ac150] */ 3109 esi = eax; /* 0x4705AA0E: mov esi, eax */ 3110 /* test esi, esi */ /* 0x4705AA10: test esi, esi */ 3111 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3112 _cf = 0; 3113 _flag_k = FK_TEST; 3114 if (TEST_NZ(_flag_a, _flag_b)) goto L_4705AA21; /* 0x4705AA12: jne 0x4705aa21 */ 3115 L_4705AA14: 3116 RECOMP_ICALL(ebx); /* 0x4705AA14: call ebx */ 3117 RECOMP_FLAGS_IN(); 3118 ebp = eax; /* 0x4705AA16: mov ebp, eax */ 3119 RECOMP_ICALL(edi); /* 0x4705AA18: call edi */ 3120 RECOMP_FLAGS_IN(); 3121 MEM32(ebp) = eax; /* 0x4705AA1A: mov dword ptr [ebp], eax */ 3122 ebp = MEM32(esp + 0x10); /* 0x4705AA1D: mov ebp, dword ptr [esp + 0x10] */ 3123 L_4705AA21: 3124 /* test esi, esi */ /* 0x4705AA21: test esi, esi */ 3125 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3126 _cf = 0; 3127 _flag_k = FK_TEST; 3128 MEM32(ebp + 0xC) = esi; /* 0x4705AA23: mov dword ptr [ebp + 0xc], esi */ 3129 if (TEST_NZ(_flag_a, _flag_b)) goto L_4705AB79; /* 0x4705AA26: jne 0x4705ab79 */ 3130 L_4705AA2C: 3131 _flag_a = (uint32_t)(MEM32(0x4710F150)); _flag_b = (uint32_t)(1); 3132 MEM32(0x4710F150) = MEM32(0x4710F150) + 1; /* 0x4705AA2C: inc dword ptr [0x4710f150] */ 3133 _flag_k = FK_INC; 3134 RECOMP_ICALL(edi); /* 0x4705AA32: call edi */ 3135 RECOMP_FLAGS_IN(); 3136 ebp = eax; /* 0x4705AA34: mov ebp, eax */ 3137 RECOMP_ICALL(ebx); /* 0x4705AA36: call ebx */ 3138 RECOMP_FLAGS_IN(); 3139 eax = MEM32(eax); /* 0x4705AA38: mov eax, dword ptr [eax] */ 3140 /* test eax, eax */ /* 0x4705AA3A: test eax, eax */ 3141 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3142 _cf = 0; 3143 _flag_k = FK_TEST; 3144 if (TEST_Z(_flag_a, _flag_b)) goto L_4705AA40; /* 0x4705AA3C: je 0x4705aa40 */ 3145 L_4705AA3E: 3146 ebp = eax; /* 0x4705AA3E: mov ebp, eax */ 3147 L_4705AA40: 3148 RECOMP_ICALL(0x47039020u); /* 0x4705AA40: call 0x47039020 */ /* not lifted */ 3149 RECOMP_FLAGS_IN(); 3150 esi = eax; /* 0x4705AA45: mov esi, eax */ 3151 ecx = esi; /* 0x4705AA47: mov ecx, esi */ 3152 RECOMP_ICALL(0x4703B210u); /* 0x4705AA49: call 0x4703b210 */ /* not lifted */ 3153 RECOMP_FLAGS_IN(); 3154 PUSH32(esp, eax); /* 0x4705AA4E: push eax */ 3155 ecx = esi; /* 0x4705AA4F: mov ecx, esi */ 3156 RECOMP_ICALL(0x4703B240u); /* 0x4705AA51: call 0x4703b240 */ /* not lifted */ 3157 RECOMP_FLAGS_IN(); 3158 PUSH32(esp, eax); /* 0x4705AA56: push eax */ 3159 ecx = esi; /* 0x4705AA57: mov ecx, esi */ 3160 RECOMP_ICALL(0x4703B080u); /* 0x4705AA59: call 0x4703b080 */ /* not lifted */ 3161 RECOMP_FLAGS_IN(); 3162 PUSH32(esp, eax); /* 0x4705AA5E: push eax */ 3163 PUSH32(esp, ebp); /* 0x4705AA5F: push ebp */ 3164 PUSH32(esp, 0xFFFFFFFFu); /* 0x4705AA60: push -1 */ 3165 PUSH32(esp, 0x1A2u); /* 0x4705AA62: push 0x1a2 */ 3166 PUSH32(esp, 0x47109290u); /* 0x4705AA67: push 0x47109290 */ 3167 ecx = esi; /* 0x4705AA6C: mov ecx, esi */ 3168 RECOMP_ICALL(0x4703A340u); /* 0x4705AA6E: call 0x4703a340 */ /* not lifted */ 3169 RECOMP_FLAGS_IN(); 3170 eax = esp + 0x14; /* 0x4705AA73: lea eax, [esp + 0x14] */ 3171 PUSH32(esp, eax); /* 0x4705AA77: push eax */ 3172 PUSH32(esp, 0x47109380u); /* 0x4705AA78: push 0x47109380 */ 3173 PUSH32(esp, 0x80u); /* 0x4705AA7D: push 0x80 */ 3174 PUSH32(esp, esi); /* 0x4705AA82: push esi */ 3175 RECOMP_ICALL(0x47039830u); /* 0x4705AA83: call 0x47039830 */ /* not lifted */ 3176 RECOMP_FLAGS_IN(); 3177 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3178 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3179 esp = esp + 0x10u; /* 0x4705AA88: add esp, 0x10 */ 3180 _flag_k = FK_ADD; 3181 PUSH32(esp, 0); /* 0x4705AA8B: push 0 */ 3182 PUSH32(esp, 0x80u); /* 0x4705AA8D: push 0x80 */ 3183 PUSH32(esp, 0x4710DE10u); /* 0x4705AA92: push 0x4710de10 */ 3184 PUSH32(esp, 0); /* 0x4705AA97: push 0 */ 3185 RECOMP_ICALL(edi); /* 0x4705AA99: call edi */ 3186 RECOMP_FLAGS_IN(); 3187 PUSH32(esp, eax); /* 0x4705AA9B: push eax */ 3188 PUSH32(esp, 0); /* 0x4705AA9C: push 0 */ 3189 PUSH32(esp, 0x1000u); /* 0x4705AA9E: push 0x1000 */ 3190 RECOMP_ICALL(MEM32(0x470AC120)); /* 0x4705AAA3: call dword ptr [0x470ac120] */ 3191 RECOMP_FLAGS_IN(); 3192 ecx = 0x4710DE10u; /* 0x4705AAA9: mov ecx, 0x4710de10 */ 3193 /* test ecx, ecx */ /* 0x4705AAAE: test ecx, ecx */ 3194 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3195 _cf = 0; 3196 _flag_k = FK_TEST; 3197 if (TEST_Z(_flag_a, _flag_b)) goto L_4705AB18; /* 0x4705AAB0: je 0x4705ab18 */ 3198 L_4705AAB2: 3199 RECOMP_ICALL(edi); /* 0x4705AAB2: call edi */ 3200 RECOMP_FLAGS_IN(); 3201 edi = eax; /* 0x4705AAB4: mov edi, eax */ 3202 RECOMP_ICALL(ebx); /* 0x4705AAB6: call ebx */ 3203 RECOMP_FLAGS_IN(); 3204 eax = MEM32(eax); /* 0x4705AAB8: mov eax, dword ptr [eax] */ 3205 /* test eax, eax */ /* 0x4705AABA: test eax, eax */ 3206 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3207 _cf = 0; 3208 _flag_k = FK_TEST; 3209 if (TEST_Z(_flag_a, _flag_b)) goto L_4705AAC0; /* 0x4705AABC: je 0x4705aac0 */ 3210 L_4705AABE: 3211 edi = eax; /* 0x4705AABE: mov edi, eax */ 3212 L_4705AAC0: 3213 RECOMP_ICALL(0x47039020u); /* 0x4705AAC0: call 0x47039020 */ /* not lifted */ 3214 RECOMP_FLAGS_IN(); 3215 esi = eax; /* 0x4705AAC5: mov esi, eax */ 3216 ecx = esi; /* 0x4705AAC7: mov ecx, esi */ 3217 RECOMP_ICALL(0x4703B210u); /* 0x4705AAC9: call 0x4703b210 */ /* not lifted */ 3218 RECOMP_FLAGS_IN(); 3219 PUSH32(esp, eax); /* 0x4705AACE: push eax */ 3220 ecx = esi; /* 0x4705AACF: mov ecx, esi */ 3221 RECOMP_ICALL(0x4703B240u); /* 0x4705AAD1: call 0x4703b240 */ /* not lifted */ 3222 RECOMP_FLAGS_IN(); 3223 PUSH32(esp, eax); /* 0x4705AAD6: push eax */ 3224 ecx = esi; /* 0x4705AAD7: mov ecx, esi */ 3225 RECOMP_ICALL(0x4703B080u); /* 0x4705AAD9: call 0x4703b080 */ /* not lifted */ 3226 RECOMP_FLAGS_IN(); 3227 PUSH32(esp, eax); /* 0x4705AADE: push eax */ 3228 PUSH32(esp, edi); /* 0x4705AADF: push edi */ 3229 PUSH32(esp, 0); /* 0x4705AAE0: push 0 */ 3230 PUSH32(esp, 0x1AAu); /* 0x4705AAE2: push 0x1aa */ 3231 PUSH32(esp, 0x47109290u); /* 0x4705AAE7: push 0x47109290 */ 3232 ecx = esi; /* 0x4705AAEC: mov ecx, esi */ 3233 RECOMP_ICALL(0x4703A340u); /* 0x4705AAEE: call 0x4703a340 */ /* not lifted */ 3234 RECOMP_FLAGS_IN(); 3235 PUSH32(esp, 0x4710DE10u); /* 0x4705AAF3: push 0x4710de10 */ 3236 PUSH32(esp, 0x47109378u); /* 0x4705AAF8: push 0x47109378 */ 3237 PUSH32(esp, 0x80u); /* 0x4705AAFD: push 0x80 */ 3238 PUSH32(esp, esi); /* 0x4705AB02: push esi */ 3239 RECOMP_ICALL(0x47039830u); /* 0x4705AB03: call 0x47039830 */ /* not lifted */ 3240 RECOMP_FLAGS_IN(); 3241 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3242 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3243 esp = esp + 0x10u; /* 0x4705AB08: add esp, 0x10 */ 3244 _flag_k = FK_ADD; 3245 edi = POP32_VAL(esp); /* 0x4705AB0B: pop edi */ 3246 esi = POP32_VAL(esp); /* 0x4705AB0C: pop esi */ 3247 ebp = POP32_VAL(esp); /* 0x4705AB0D: pop ebp */ 3248 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3249 eax = 0; /* 0x4705AB0E: xor eax, eax */ 3250 _cf = 0; 3251 _flag_k = FK_TEST; 3252 ebx = POP32_VAL(esp); /* 0x4705AB10: pop ebx */ 3253 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10Cu); 3254 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3255 esp = esp + 0x10Cu; /* 0x4705AB11: add esp, 0x10c */ 3256 _flag_k = FK_ADD; 3257 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705AB17: ret */ 3258 L_4705AB18: 3259 RECOMP_ICALL(edi); /* 0x4705AB18: call edi */ 3260 RECOMP_FLAGS_IN(); 3261 edi = eax; /* 0x4705AB1A: mov edi, eax */ 3262 RECOMP_ICALL(ebx); /* 0x4705AB1C: call ebx */ 3263 RECOMP_FLAGS_IN(); 3264 eax = MEM32(eax); /* 0x4705AB1E: mov eax, dword ptr [eax] */ 3265 /* test eax, eax */ /* 0x4705AB20: test eax, eax */ 3266 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3267 _cf = 0; 3268 _flag_k = FK_TEST; 3269 if (TEST_Z(_flag_a, _flag_b)) goto L_4705AB26; /* 0x4705AB22: je 0x4705ab26 */ 3270 L_4705AB24: 3271 edi = eax; /* 0x4705AB24: mov edi, eax */ 3272 L_4705AB26: 3273 RECOMP_ICALL(0x47039020u); /* 0x4705AB26: call 0x47039020 */ /* not lifted */ 3274 RECOMP_FLAGS_IN(); 3275 esi = eax; /* 0x4705AB2B: mov esi, eax */ 3276 ecx = esi; /* 0x4705AB2D: mov ecx, esi */ 3277 RECOMP_ICALL(0x4703B210u); /* 0x4705AB2F: call 0x4703b210 */ /* not lifted */ 3278 RECOMP_FLAGS_IN(); 3279 PUSH32(esp, eax); /* 0x4705AB34: push eax */ 3280 ecx = esi; /* 0x4705AB35: mov ecx, esi */ 3281 RECOMP_ICALL(0x4703B240u); /* 0x4705AB37: call 0x4703b240 */ /* not lifted */ 3282 RECOMP_FLAGS_IN(); 3283 PUSH32(esp, eax); /* 0x4705AB3C: push eax */ 3284 ecx = esi; /* 0x4705AB3D: mov ecx, esi */ 3285 RECOMP_ICALL(0x4703B080u); /* 0x4705AB3F: call 0x4703b080 */ /* not lifted */ 3286 RECOMP_FLAGS_IN(); 3287 PUSH32(esp, eax); /* 0x4705AB44: push eax */ 3288 PUSH32(esp, edi); /* 0x4705AB45: push edi */ 3289 PUSH32(esp, 0); /* 0x4705AB46: push 0 */ 3290 PUSH32(esp, 0x1AEu); /* 0x4705AB48: push 0x1ae */ 3291 PUSH32(esp, 0x47109290u); /* 0x4705AB4D: push 0x47109290 */ 3292 ecx = esi; /* 0x4705AB52: mov ecx, esi */ 3293 RECOMP_ICALL(0x4703A340u); /* 0x4705AB54: call 0x4703a340 */ /* not lifted */ 3294 RECOMP_FLAGS_IN(); 3295 PUSH32(esp, 0x47105590u); /* 0x4705AB59: push 0x47105590 */ 3296 PUSH32(esp, 0x80u); /* 0x4705AB5E: push 0x80 */ 3297 PUSH32(esp, esi); /* 0x4705AB63: push esi */ 3298 RECOMP_ICALL(0x47039830u); /* 0x4705AB64: call 0x47039830 */ /* not lifted */ 3299 RECOMP_FLAGS_IN(); 3300 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3301 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3302 esp = esp + 0xCu; /* 0x4705AB69: add esp, 0xc */ 3303 _flag_k = FK_ADD; 3304 edi = POP32_VAL(esp); /* 0x4705AB6C: pop edi */ 3305 esi = POP32_VAL(esp); /* 0x4705AB6D: pop esi */ 3306 ebp = POP32_VAL(esp); /* 0x4705AB6E: pop ebp */ 3307 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3308 eax = 0; /* 0x4705AB6F: xor eax, eax */ 3309 _cf = 0; 3310 _flag_k = FK_TEST; 3311 ebx = POP32_VAL(esp); /* 0x4705AB71: pop ebx */ 3312 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10Cu); 3313 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3314 esp = esp + 0x10Cu; /* 0x4705AB72: add esp, 0x10c */ 3315 _flag_k = FK_ADD; 3316 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705AB78: ret */ 3317 L_4705AB79: 3318 edi = POP32_VAL(esp); /* 0x4705AB79: pop edi */ 3319 eax = esi; /* 0x4705AB7A: mov eax, esi */ 3320 esi = POP32_VAL(esp); /* 0x4705AB7C: pop esi */ 3321 ebp = POP32_VAL(esp); /* 0x4705AB7D: pop ebp */ 3322 ebx = POP32_VAL(esp); /* 0x4705AB7E: pop ebx */ 3323 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10Cu); 3324 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3325 esp = esp + 0x10Cu; /* 0x4705AB7F: add esp, 0x10c */ 3326 _flag_k = FK_ADD; 3327 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705AB85: ret */ 3328 RECOMP_REGS_OUT(); 3329 } 3330 3331 void sub_4705AB90(void) { 3332 int _fpu_cmp = 0; 3333 uint32_t _cf = 0; 3334 int _df = 1; 3335 uint32_t _flag_k = FK_NONE; 3336 uint32_t _flag_a = 0, _flag_b = 0; 3337 uint32_t _itail_tgt = 0; 3338 RECOMP_REGS_LOCALS 3339 RECOMP_ENTER(0x4705AB90u); 3340 3341 L_4705AB90: 3342 PUSH32(esp, 0xFFFFFFFFu); /* 0x4705AB90: push -1 */ 3343 PUSH32(esp, 0x470A7768u); /* 0x4705AB92: push 0x470a7768 */ 3344 eax = MEM32(FS_BASE + (0)); /* 0x4705AB97: mov eax, dword ptr fs:[0] */ 3345 PUSH32(esp, eax); /* 0x4705AB9D: push eax */ 3346 MEM32(FS_BASE + (0)) = esp; /* 0x4705AB9E: mov dword ptr fs:[0], esp */ 3347 PUSH32(esp, ecx); /* 0x4705ABA5: push ecx */ 3348 PUSH32(esp, ebx); /* 0x4705ABA6: push ebx */ 3349 PUSH32(esp, ebp); /* 0x4705ABA7: push ebp */ 3350 ebx = ecx; /* 0x4705ABA8: mov ebx, ecx */ 3351 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3352 ebp = 0; /* 0x4705ABAA: xor ebp, ebp */ 3353 _cf = 0; 3354 _flag_k = FK_TEST; 3355 PUSH32(esp, esi); /* 0x4705ABAC: push esi */ 3356 PUSH32(esp, edi); /* 0x4705ABAD: push edi */ 3357 MEM32(esp + 0x10) = ebx; /* 0x4705ABAE: mov dword ptr [esp + 0x10], ebx */ 3358 MEM32(ebx + 0x4) = ebp; /* 0x4705ABB2: mov dword ptr [ebx + 4], ebp */ 3359 MEM32(ebx + 0xC) = ebp; /* 0x4705ABB5: mov dword ptr [ebx + 0xc], ebp */ 3360 MEM32(ebx + 0x10) = ebp; /* 0x4705ABB8: mov dword ptr [ebx + 0x10], ebp */ 3361 MEM32(ebx) = 0x470ADD08u; /* 0x4705ABBB: mov dword ptr [ebx], 0x470add08 */ 3362 esi = MEM32(esp + 0x28); /* 0x4705ABC1: mov esi, dword ptr [esp + 0x28] */ 3363 /* cmp esi, ebp */ /* 0x4705ABC5: cmp esi, ebp */ 3364 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp); 3365 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3366 _flag_k = FK_CMP; 3367 MEM32(esp + 0x1C) = ebp; /* 0x4705ABC7: mov dword ptr [esp + 0x1c], ebp */ 3368 if (CMP_EQ(_flag_a, _flag_b)) goto L_4705AC10; /* 0x4705ABCB: je 0x4705ac10 */ 3369 L_4705ABCD: 3370 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3371 ecx = ecx | 0xFFFFFFFFu; /* 0x4705ABCD: or ecx, 0xffffffff */ 3372 _cf = 0; 3373 _flag_k = FK_TEST; 3374 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3375 eax = 0; /* 0x4705ABD0: xor eax, eax */ 3376 _cf = 0; 3377 _flag_k = FK_TEST; 3378 edi = esi; /* 0x4705ABD2: mov edi, esi */ 3379 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; } /* 0x4705ABD4: repne scasb al, byte ptr es:[edi] */ 3380 ecx = ~ecx; /* 0x4705ABD6: not ecx */ 3381 PUSH32(esp, ecx); /* 0x4705ABD8: push ecx */ 3382 RECOMP_ICALL(0x470A33F2u); /* 0x4705ABD9: call 0x470a33f2 */ /* not lifted */ 3383 RECOMP_FLAGS_IN(); 3384 edx = eax; /* 0x4705ABDE: mov edx, eax */ 3385 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3386 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3387 esp = esp + 4; /* 0x4705ABE0: add esp, 4 */ 3388 _flag_k = FK_ADD; 3389 /* cmp edx, ebp */ /* 0x4705ABE3: cmp edx, ebp */ 3390 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebp); 3391 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3392 _flag_k = FK_CMP; 3393 if (CMP_EQ(_flag_a, _flag_b)) goto L_4705AC10; /* 0x4705ABE5: je 0x4705ac10 */ 3394 L_4705ABE7: 3395 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3396 ecx = ecx | 0xFFFFFFFFu; /* 0x4705ABE7: or ecx, 0xffffffff */ 3397 _cf = 0; 3398 _flag_k = FK_TEST; 3399 edi = esi; /* 0x4705ABEA: mov edi, esi */ 3400 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3401 eax = 0; /* 0x4705ABEC: xor eax, eax */ 3402 _cf = 0; 3403 _flag_k = FK_TEST; 3404 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; } /* 0x4705ABEE: repne scasb al, byte ptr es:[edi] */ 3405 ecx = ~ecx; /* 0x4705ABF0: not ecx */ 3406 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 3407 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3408 edi = edi - ecx; /* 0x4705ABF2: sub edi, ecx */ 3409 _flag_k = FK_CMP; 3410 eax = ecx; /* 0x4705ABF4: mov eax, ecx */ 3411 esi = edi; /* 0x4705ABF6: mov esi, edi */ 3412 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4705ABF8: shr ecx, 2 */ 3413 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3414 ecx = ecx >> 2u; /* 0x4705ABF8: shr ecx, 2 */ 3415 edi = edx; /* 0x4705ABFB: mov edi, edx */ 3416 MEM32(esp + 0x28) = eax; /* 0x4705ABFD: mov dword ptr [esp + 0x28], eax */ 3417 eax = edi; /* 0x4705AC01: mov eax, edi */ 3418 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4705AC03: 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; } 3419 ecx = MEM32(esp + 0x28); /* 0x4705AC05: mov ecx, dword ptr [esp + 0x28] */ 3420 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 3421 ecx = ecx & 3; /* 0x4705AC09: and ecx, 3 */ 3422 _cf = 0; 3423 _flag_k = FK_TEST; 3424 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4705AC0C: 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; } 3425 goto L_4705AC12; /* 0x4705AC0E: jmp 0x4705ac12 */ 3426 L_4705AC10: 3427 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3428 eax = 0; /* 0x4705AC10: xor eax, eax */ 3429 _cf = 0; 3430 _flag_k = FK_TEST; 3431 L_4705AC12: 3432 esi = MEM32(esp + 0x24); /* 0x4705AC12: mov esi, dword ptr [esp + 0x24] */ 3433 /* cmp esi, ebp */ /* 0x4705AC16: cmp esi, ebp */ 3434 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp); 3435 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3436 _flag_k = FK_CMP; 3437 MEM32(ebx + 0x14) = eax; /* 0x4705AC18: mov dword ptr [ebx + 0x14], eax */ 3438 MEM32(ebx) = 0x470ADD14u; /* 0x4705AC1B: mov dword ptr [ebx], 0x470add14 */ 3439 if (CMP_EQ(_flag_a, _flag_b)) goto L_4705AC62; /* 0x4705AC21: je 0x4705ac62 */ 3440 L_4705AC23: 3441 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3442 ecx = ecx | 0xFFFFFFFFu; /* 0x4705AC23: or ecx, 0xffffffff */ 3443 _cf = 0; 3444 _flag_k = FK_TEST; 3445 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3446 eax = 0; /* 0x4705AC26: xor eax, eax */ 3447 _cf = 0; 3448 _flag_k = FK_TEST; 3449 edi = esi; /* 0x4705AC28: mov edi, esi */ 3450 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; } /* 0x4705AC2A: repne scasb al, byte ptr es:[edi] */ 3451 ecx = ~ecx; /* 0x4705AC2C: not ecx */ 3452 PUSH32(esp, ecx); /* 0x4705AC2E: push ecx */ 3453 RECOMP_ICALL(0x470A33F2u); /* 0x4705AC2F: call 0x470a33f2 */ /* not lifted */ 3454 RECOMP_FLAGS_IN(); 3455 edx = eax; /* 0x4705AC34: mov edx, eax */ 3456 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3457 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3458 esp = esp + 4; /* 0x4705AC36: add esp, 4 */ 3459 _flag_k = FK_ADD; 3460 /* cmp edx, ebp */ /* 0x4705AC39: cmp edx, ebp */ 3461 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebp); 3462 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3463 _flag_k = FK_CMP; 3464 if (CMP_EQ(_flag_a, _flag_b)) goto L_4705AC62; /* 0x4705AC3B: je 0x4705ac62 */ 3465 L_4705AC3D: 3466 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3467 ecx = ecx | 0xFFFFFFFFu; /* 0x4705AC3D: or ecx, 0xffffffff */ 3468 _cf = 0; 3469 _flag_k = FK_TEST; 3470 edi = esi; /* 0x4705AC40: mov edi, esi */ 3471 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3472 eax = 0; /* 0x4705AC42: xor eax, eax */ 3473 _cf = 0; 3474 _flag_k = FK_TEST; 3475 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; } /* 0x4705AC44: repne scasb al, byte ptr es:[edi] */ 3476 ecx = ~ecx; /* 0x4705AC46: not ecx */ 3477 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 3478 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3479 edi = edi - ecx; /* 0x4705AC48: sub edi, ecx */ 3480 _flag_k = FK_CMP; 3481 eax = ecx; /* 0x4705AC4A: mov eax, ecx */ 3482 esi = edi; /* 0x4705AC4C: mov esi, edi */ 3483 edi = edx; /* 0x4705AC4E: mov edi, edx */ 3484 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4705AC50: shr ecx, 2 */ 3485 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3486 ecx = ecx >> 2u; /* 0x4705AC50: shr ecx, 2 */ 3487 edx = eax; /* 0x4705AC53: mov edx, eax */ 3488 eax = edi; /* 0x4705AC55: mov eax, edi */ 3489 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4705AC57: 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; } 3490 ecx = edx; /* 0x4705AC59: mov ecx, edx */ 3491 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 3492 ecx = ecx & 3; /* 0x4705AC5B: and ecx, 3 */ 3493 _cf = 0; 3494 _flag_k = FK_TEST; 3495 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4705AC5E: 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; } 3496 goto L_4705AC64; /* 0x4705AC60: jmp 0x4705ac64 */ 3497 L_4705AC62: 3498 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3499 eax = 0; /* 0x4705AC62: xor eax, eax */ 3500 _cf = 0; 3501 _flag_k = FK_TEST; 3502 L_4705AC64: 3503 ecx = MEM32(esp + 0x14); /* 0x4705AC64: mov ecx, dword ptr [esp + 0x14] */ 3504 edi = POP32_VAL(esp); /* 0x4705AC68: pop edi */ 3505 MEM32(ebx + 0x8) = ebp; /* 0x4705AC69: mov dword ptr [ebx + 8], ebp */ 3506 esi = POP32_VAL(esp); /* 0x4705AC6C: pop esi */ 3507 MEM32(ebx + 0x4) = eax; /* 0x4705AC6D: mov dword ptr [ebx + 4], eax */ 3508 ebp = POP32_VAL(esp); /* 0x4705AC70: pop ebp */ 3509 eax = ebx; /* 0x4705AC71: mov eax, ebx */ 3510 ebx = POP32_VAL(esp); /* 0x4705AC73: pop ebx */ 3511 MEM32(FS_BASE + (0)) = ecx; /* 0x4705AC74: mov dword ptr fs:[0], ecx */ 3512 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3513 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3514 esp = esp + 0x10u; /* 0x4705AC7B: add esp, 0x10 */ 3515 _flag_k = FK_ADD; 3516 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4705AC7E: ret 8 */ 3517 RECOMP_REGS_OUT(); 3518 } 3519 3520 void sub_4705AC90(void) { 3521 int _fpu_cmp = 0; 3522 uint32_t _cf = 0; 3523 int _df = 1; 3524 uint32_t _flag_k = FK_NONE; 3525 uint32_t _flag_a = 0, _flag_b = 0; 3526 uint32_t _itail_tgt = 0; 3527 RECOMP_REGS_LOCALS 3528 RECOMP_ENTER(0x4705AC90u); 3529 3530 L_4705AC90: 3531 PUSH32(esp, ecx); /* 0x4705AC90: push ecx */ 3532 PUSH32(esp, ebx); /* 0x4705AC91: push ebx */ 3533 PUSH32(esp, ebp); /* 0x4705AC92: push ebp */ 3534 PUSH32(esp, esi); /* 0x4705AC93: push esi */ 3535 PUSH32(esp, edi); /* 0x4705AC94: push edi */ 3536 ebx = ecx; /* 0x4705AC95: mov ebx, ecx */ 3537 RECOMP_ICALL(0x4705A9C0u); /* 0x4705AC97: call 0x4705a9c0 */ /* not lifted */ 3538 RECOMP_FLAGS_IN(); 3539 /* test eax, eax */ /* 0x4705AC9C: test eax, eax */ 3540 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3541 _cf = 0; 3542 _flag_k = FK_TEST; 3543 if (TEST_Z(_flag_a, _flag_b)) goto L_4705ADBE; /* 0x4705AC9E: je 0x4705adbe */ 3544 L_4705ACA4: 3545 ebp = MEM32(ebx + 0x14); /* 0x4705ACA4: mov ebp, dword ptr [ebx + 0x14] */ 3546 eax = MEM32(ebx + 0xC); /* 0x4705ACA7: mov eax, dword ptr [ebx + 0xc] */ 3547 PUSH32(esp, ebp); /* 0x4705ACAA: push ebp */ 3548 PUSH32(esp, eax); /* 0x4705ACAB: push eax */ 3549 RECOMP_ICALL(MEM32(0x470AC118)); /* 0x4705ACAC: call dword ptr [0x470ac118] */ 3550 RECOMP_FLAGS_IN(); 3551 edi = MEM32(0x470AC150); /* 0x4705ACB2: mov edi, dword ptr [0x470ac150] */ 3552 esi = eax; /* 0x4705ACB8: mov esi, eax */ 3553 /* test esi, esi */ /* 0x4705ACBA: test esi, esi */ 3554 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3555 _cf = 0; 3556 _flag_k = FK_TEST; 3557 if (TEST_NZ(_flag_a, _flag_b)) goto L_4705ACD0; /* 0x4705ACBC: jne 0x4705acd0 */ 3558 L_4705ACBE: 3559 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4705ACBE: call dword ptr [0x470ac3c8] */ 3560 RECOMP_FLAGS_IN(); 3561 MEM32(esp + 0x10) = eax; /* 0x4705ACC4: mov dword ptr [esp + 0x10], eax */ 3562 RECOMP_ICALL(edi); /* 0x4705ACC8: call edi */ 3563 RECOMP_FLAGS_IN(); 3564 ecx = MEM32(esp + 0x10); /* 0x4705ACCA: mov ecx, dword ptr [esp + 0x10] */ 3565 MEM32(ecx) = eax; /* 0x4705ACCE: mov dword ptr [ecx], eax */ 3566 L_4705ACD0: 3567 /* test esi, esi */ /* 0x4705ACD0: test esi, esi */ 3568 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3569 _cf = 0; 3570 _flag_k = FK_TEST; 3571 MEM32(ebx + 0x10) = esi; /* 0x4705ACD2: mov dword ptr [ebx + 0x10], esi */ 3572 if (TEST_NZ(_flag_a, _flag_b)) goto L_4705AE2A; /* 0x4705ACD5: jne 0x4705ae2a */ 3573 L_4705ACDB: 3574 _flag_a = (uint32_t)(MEM32(0x4710F150)); _flag_b = (uint32_t)(1); 3575 MEM32(0x4710F150) = MEM32(0x4710F150) + 1; /* 0x4705ACDB: inc dword ptr [0x4710f150] */ 3576 _flag_k = FK_INC; 3577 RECOMP_ICALL(edi); /* 0x4705ACE1: call edi */ 3578 RECOMP_FLAGS_IN(); 3579 ebx = eax; /* 0x4705ACE3: mov ebx, eax */ 3580 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4705ACE5: call dword ptr [0x470ac3c8] */ 3581 RECOMP_FLAGS_IN(); 3582 eax = MEM32(eax); /* 0x4705ACEB: mov eax, dword ptr [eax] */ 3583 /* test eax, eax */ /* 0x4705ACED: test eax, eax */ 3584 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3585 _cf = 0; 3586 _flag_k = FK_TEST; 3587 if (TEST_Z(_flag_a, _flag_b)) goto L_4705ACF3; /* 0x4705ACEF: je 0x4705acf3 */ 3588 L_4705ACF1: 3589 ebx = eax; /* 0x4705ACF1: mov ebx, eax */ 3590 L_4705ACF3: 3591 RECOMP_ICALL(0x47039020u); /* 0x4705ACF3: call 0x47039020 */ /* not lifted */ 3592 RECOMP_FLAGS_IN(); 3593 esi = eax; /* 0x4705ACF8: mov esi, eax */ 3594 ecx = esi; /* 0x4705ACFA: mov ecx, esi */ 3595 RECOMP_ICALL(0x4703B210u); /* 0x4705ACFC: call 0x4703b210 */ /* not lifted */ 3596 RECOMP_FLAGS_IN(); 3597 PUSH32(esp, eax); /* 0x4705AD01: push eax */ 3598 ecx = esi; /* 0x4705AD02: mov ecx, esi */ 3599 RECOMP_ICALL(0x4703B240u); /* 0x4705AD04: call 0x4703b240 */ /* not lifted */ 3600 RECOMP_FLAGS_IN(); 3601 PUSH32(esp, eax); /* 0x4705AD09: push eax */ 3602 ecx = esi; /* 0x4705AD0A: mov ecx, esi */ 3603 RECOMP_ICALL(0x4703B080u); /* 0x4705AD0C: call 0x4703b080 */ /* not lifted */ 3604 RECOMP_FLAGS_IN(); 3605 PUSH32(esp, eax); /* 0x4705AD11: push eax */ 3606 PUSH32(esp, ebx); /* 0x4705AD12: push ebx */ 3607 PUSH32(esp, 0xFFFFFFFFu); /* 0x4705AD13: push -1 */ 3608 PUSH32(esp, 0x1D7u); /* 0x4705AD15: push 0x1d7 */ 3609 PUSH32(esp, 0x47109290u); /* 0x4705AD1A: push 0x47109290 */ 3610 ecx = esi; /* 0x4705AD1F: mov ecx, esi */ 3611 RECOMP_ICALL(0x4703A340u); /* 0x4705AD21: call 0x4703a340 */ /* not lifted */ 3612 RECOMP_FLAGS_IN(); 3613 PUSH32(esp, ebp); /* 0x4705AD26: push ebp */ 3614 PUSH32(esp, 0x47109398u); /* 0x4705AD27: push 0x47109398 */ 3615 PUSH32(esp, 0x80u); /* 0x4705AD2C: push 0x80 */ 3616 PUSH32(esp, esi); /* 0x4705AD31: push esi */ 3617 RECOMP_ICALL(0x47039830u); /* 0x4705AD32: call 0x47039830 */ /* not lifted */ 3618 RECOMP_FLAGS_IN(); 3619 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3620 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3621 esp = esp + 0x10u; /* 0x4705AD37: add esp, 0x10 */ 3622 _flag_k = FK_ADD; 3623 PUSH32(esp, 0); /* 0x4705AD3A: push 0 */ 3624 PUSH32(esp, 0x80u); /* 0x4705AD3C: push 0x80 */ 3625 PUSH32(esp, 0x4710DE10u); /* 0x4705AD41: push 0x4710de10 */ 3626 PUSH32(esp, 0); /* 0x4705AD46: push 0 */ 3627 RECOMP_ICALL(edi); /* 0x4705AD48: call edi */ 3628 RECOMP_FLAGS_IN(); 3629 PUSH32(esp, eax); /* 0x4705AD4A: push eax */ 3630 PUSH32(esp, 0); /* 0x4705AD4B: push 0 */ 3631 PUSH32(esp, 0x1000u); /* 0x4705AD4D: push 0x1000 */ 3632 RECOMP_ICALL(MEM32(0x470AC120)); /* 0x4705AD52: call dword ptr [0x470ac120] */ 3633 RECOMP_FLAGS_IN(); 3634 edx = 0x4710DE10u; /* 0x4705AD58: mov edx, 0x4710de10 */ 3635 /* test edx, edx */ /* 0x4705AD5D: test edx, edx */ 3636 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 3637 _cf = 0; 3638 _flag_k = FK_TEST; 3639 if (TEST_Z(_flag_a, _flag_b)) goto L_4705ADC8; /* 0x4705AD5F: je 0x4705adc8 */ 3640 L_4705AD61: 3641 RECOMP_ICALL(edi); /* 0x4705AD61: call edi */ 3642 RECOMP_FLAGS_IN(); 3643 edi = eax; /* 0x4705AD63: mov edi, eax */ 3644 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4705AD65: call dword ptr [0x470ac3c8] */ 3645 RECOMP_FLAGS_IN(); 3646 eax = MEM32(eax); /* 0x4705AD6B: mov eax, dword ptr [eax] */ 3647 /* test eax, eax */ /* 0x4705AD6D: test eax, eax */ 3648 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3649 _cf = 0; 3650 _flag_k = FK_TEST; 3651 if (TEST_Z(_flag_a, _flag_b)) goto L_4705AD73; /* 0x4705AD6F: je 0x4705ad73 */ 3652 L_4705AD71: 3653 edi = eax; /* 0x4705AD71: mov edi, eax */ 3654 L_4705AD73: 3655 RECOMP_ICALL(0x47039020u); /* 0x4705AD73: call 0x47039020 */ /* not lifted */ 3656 RECOMP_FLAGS_IN(); 3657 esi = eax; /* 0x4705AD78: mov esi, eax */ 3658 ecx = esi; /* 0x4705AD7A: mov ecx, esi */ 3659 RECOMP_ICALL(0x4703B210u); /* 0x4705AD7C: call 0x4703b210 */ /* not lifted */ 3660 RECOMP_FLAGS_IN(); 3661 PUSH32(esp, eax); /* 0x4705AD81: push eax */ 3662 ecx = esi; /* 0x4705AD82: mov ecx, esi */ 3663 RECOMP_ICALL(0x4703B240u); /* 0x4705AD84: call 0x4703b240 */ /* not lifted */ 3664 RECOMP_FLAGS_IN(); 3665 PUSH32(esp, eax); /* 0x4705AD89: push eax */ 3666 ecx = esi; /* 0x4705AD8A: mov ecx, esi */ 3667 RECOMP_ICALL(0x4703B080u); /* 0x4705AD8C: call 0x4703b080 */ /* not lifted */ 3668 RECOMP_FLAGS_IN(); 3669 PUSH32(esp, eax); /* 0x4705AD91: push eax */ 3670 PUSH32(esp, edi); /* 0x4705AD92: push edi */ 3671 PUSH32(esp, 0); /* 0x4705AD93: push 0 */ 3672 PUSH32(esp, 0x1DFu); /* 0x4705AD95: push 0x1df */ 3673 PUSH32(esp, 0x47109290u); /* 0x4705AD9A: push 0x47109290 */ 3674 ecx = esi; /* 0x4705AD9F: mov ecx, esi */ 3675 RECOMP_ICALL(0x4703A340u); /* 0x4705ADA1: call 0x4703a340 */ /* not lifted */ 3676 RECOMP_FLAGS_IN(); 3677 PUSH32(esp, 0x4710DE10u); /* 0x4705ADA6: push 0x4710de10 */ 3678 PUSH32(esp, 0x47109378u); /* 0x4705ADAB: push 0x47109378 */ 3679 PUSH32(esp, 0x80u); /* 0x4705ADB0: push 0x80 */ 3680 PUSH32(esp, esi); /* 0x4705ADB5: push esi */ 3681 RECOMP_ICALL(0x47039830u); /* 0x4705ADB6: call 0x47039830 */ /* not lifted */ 3682 RECOMP_FLAGS_IN(); 3683 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3684 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3685 esp = esp + 0x10u; /* 0x4705ADBB: add esp, 0x10 */ 3686 _flag_k = FK_ADD; 3687 L_4705ADBE: 3688 edi = POP32_VAL(esp); /* 0x4705ADBE: pop edi */ 3689 esi = POP32_VAL(esp); /* 0x4705ADBF: pop esi */ 3690 ebp = POP32_VAL(esp); /* 0x4705ADC0: pop ebp */ 3691 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3692 eax = 0; /* 0x4705ADC1: xor eax, eax */ 3693 _cf = 0; 3694 _flag_k = FK_TEST; 3695 ebx = POP32_VAL(esp); /* 0x4705ADC3: pop ebx */ 3696 ecx = POP32_VAL(esp); /* 0x4705ADC4: pop ecx */ 3697 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4705ADC5: ret 4 */ 3698 L_4705ADC8: 3699 RECOMP_ICALL(edi); /* 0x4705ADC8: call edi */ 3700 RECOMP_FLAGS_IN(); 3701 edi = eax; /* 0x4705ADCA: mov edi, eax */ 3702 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4705ADCC: call dword ptr [0x470ac3c8] */ 3703 RECOMP_FLAGS_IN(); 3704 eax = MEM32(eax); /* 0x4705ADD2: mov eax, dword ptr [eax] */ 3705 /* test eax, eax */ /* 0x4705ADD4: test eax, eax */ 3706 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3707 _cf = 0; 3708 _flag_k = FK_TEST; 3709 if (TEST_Z(_flag_a, _flag_b)) goto L_4705ADDA; /* 0x4705ADD6: je 0x4705adda */ 3710 L_4705ADD8: 3711 edi = eax; /* 0x4705ADD8: mov edi, eax */ 3712 L_4705ADDA: 3713 RECOMP_ICALL(0x47039020u); /* 0x4705ADDA: call 0x47039020 */ /* not lifted */ 3714 RECOMP_FLAGS_IN(); 3715 esi = eax; /* 0x4705ADDF: mov esi, eax */ 3716 ecx = esi; /* 0x4705ADE1: mov ecx, esi */ 3717 RECOMP_ICALL(0x4703B210u); /* 0x4705ADE3: call 0x4703b210 */ /* not lifted */ 3718 RECOMP_FLAGS_IN(); 3719 PUSH32(esp, eax); /* 0x4705ADE8: push eax */ 3720 ecx = esi; /* 0x4705ADE9: mov ecx, esi */ 3721 RECOMP_ICALL(0x4703B240u); /* 0x4705ADEB: call 0x4703b240 */ /* not lifted */ 3722 RECOMP_FLAGS_IN(); 3723 PUSH32(esp, eax); /* 0x4705ADF0: push eax */ 3724 ecx = esi; /* 0x4705ADF1: mov ecx, esi */ 3725 RECOMP_ICALL(0x4703B080u); /* 0x4705ADF3: call 0x4703b080 */ /* not lifted */ 3726 RECOMP_FLAGS_IN(); 3727 PUSH32(esp, eax); /* 0x4705ADF8: push eax */ 3728 PUSH32(esp, edi); /* 0x4705ADF9: push edi */ 3729 PUSH32(esp, 0); /* 0x4705ADFA: push 0 */ 3730 PUSH32(esp, 0x1E3u); /* 0x4705ADFC: push 0x1e3 */ 3731 PUSH32(esp, 0x47109290u); /* 0x4705AE01: push 0x47109290 */ 3732 ecx = esi; /* 0x4705AE06: mov ecx, esi */ 3733 RECOMP_ICALL(0x4703A340u); /* 0x4705AE08: call 0x4703a340 */ /* not lifted */ 3734 RECOMP_FLAGS_IN(); 3735 PUSH32(esp, 0x47105590u); /* 0x4705AE0D: push 0x47105590 */ 3736 PUSH32(esp, 0x80u); /* 0x4705AE12: push 0x80 */ 3737 PUSH32(esp, esi); /* 0x4705AE17: push esi */ 3738 RECOMP_ICALL(0x47039830u); /* 0x4705AE18: call 0x47039830 */ /* not lifted */ 3739 RECOMP_FLAGS_IN(); 3740 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3741 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3742 esp = esp + 0xCu; /* 0x4705AE1D: add esp, 0xc */ 3743 _flag_k = FK_ADD; 3744 edi = POP32_VAL(esp); /* 0x4705AE20: pop edi */ 3745 esi = POP32_VAL(esp); /* 0x4705AE21: pop esi */ 3746 ebp = POP32_VAL(esp); /* 0x4705AE22: pop ebp */ 3747 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3748 eax = 0; /* 0x4705AE23: xor eax, eax */ 3749 _cf = 0; 3750 _flag_k = FK_TEST; 3751 ebx = POP32_VAL(esp); /* 0x4705AE25: pop ebx */ 3752 ecx = POP32_VAL(esp); /* 0x4705AE26: pop ecx */ 3753 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4705AE27: ret 4 */ 3754 L_4705AE2A: 3755 edi = POP32_VAL(esp); /* 0x4705AE2A: pop edi */ 3756 eax = esi; /* 0x4705AE2B: mov eax, esi */ 3757 esi = POP32_VAL(esp); /* 0x4705AE2D: pop esi */ 3758 ebp = POP32_VAL(esp); /* 0x4705AE2E: pop ebp */ 3759 ebx = POP32_VAL(esp); /* 0x4705AE2F: pop ebx */ 3760 ecx = POP32_VAL(esp); /* 0x4705AE30: pop ecx */ 3761 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4705AE31: ret 4 */ 3762 RECOMP_REGS_OUT(); 3763 } 3764 3765 void sub_4705AE40(void) { 3766 int _fpu_cmp = 0; 3767 uint32_t _cf = 0; 3768 int _df = 1; 3769 uint32_t _flag_k = FK_NONE; 3770 uint32_t _flag_a = 0, _flag_b = 0; 3771 uint32_t _itail_tgt = 0; 3772 RECOMP_REGS_LOCALS 3773 RECOMP_ENTER(0x4705AE40u); 3774 3775 L_4705AE40: 3776 PUSH32(esp, esi); /* 0x4705AE40: push esi */ 3777 esi = ecx; /* 0x4705AE41: mov esi, ecx */ 3778 eax = MEM32(esi + 0x14); /* 0x4705AE43: mov eax, dword ptr [esi + 0x14] */ 3779 PUSH32(esp, eax); /* 0x4705AE46: push eax */ 3780 MEM32(esi) = 0x470ADD14u; /* 0x4705AE47: mov dword ptr [esi], 0x470add14 */ 3781 RECOMP_ICALL(0x470A32A2u); /* 0x4705AE4D: call 0x470a32a2 */ /* not lifted */ 3782 RECOMP_FLAGS_IN(); 3783 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3784 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3785 esp = esp + 4; /* 0x4705AE52: add esp, 4 */ 3786 _flag_k = FK_ADD; 3787 MEM32(esi) = 0x470ADD08u; /* 0x4705AE55: mov dword ptr [esi], 0x470add08 */ 3788 esi = POP32_VAL(esp); /* 0x4705AE5B: pop esi */ 3789 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705AE5C: ret */ 3790 RECOMP_REGS_OUT(); 3791 } 3792 3793 void sub_4705AE60(void) { 3794 int _fpu_cmp = 0; 3795 uint32_t _cf = 0; 3796 int _df = 1; 3797 uint32_t _flag_k = FK_NONE; 3798 uint32_t _flag_a = 0, _flag_b = 0; 3799 uint32_t _itail_tgt = 0; 3800 RECOMP_REGS_LOCALS 3801 RECOMP_ENTER(0x4705AE60u); 3802 3803 L_4705AE60: 3804 PUSH32(esp, 0xFFFFFFFFu); /* 0x4705AE60: push -1 */ 3805 PUSH32(esp, 0x470A7788u); /* 0x4705AE62: push 0x470a7788 */ 3806 eax = MEM32(FS_BASE + (0)); /* 0x4705AE67: mov eax, dword ptr fs:[0] */ 3807 PUSH32(esp, eax); /* 0x4705AE6D: push eax */ 3808 MEM32(FS_BASE + (0)) = esp; /* 0x4705AE6E: mov dword ptr fs:[0], esp */ 3809 PUSH32(esp, ecx); /* 0x4705AE75: push ecx */ 3810 PUSH32(esp, ebx); /* 0x4705AE76: push ebx */ 3811 PUSH32(esp, ebp); /* 0x4705AE77: push ebp */ 3812 ebx = ecx; /* 0x4705AE78: mov ebx, ecx */ 3813 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3814 ebp = 0; /* 0x4705AE7A: xor ebp, ebp */ 3815 _cf = 0; 3816 _flag_k = FK_TEST; 3817 PUSH32(esp, esi); /* 0x4705AE7C: push esi */ 3818 PUSH32(esp, edi); /* 0x4705AE7D: push edi */ 3819 MEM32(esp + 0x10) = ebx; /* 0x4705AE7E: mov dword ptr [esp + 0x10], ebx */ 3820 MEM32(ebx + 0x4) = ebp; /* 0x4705AE82: mov dword ptr [ebx + 4], ebp */ 3821 MEM32(ebx + 0xC) = ebp; /* 0x4705AE85: mov dword ptr [ebx + 0xc], ebp */ 3822 MEM32(ebx + 0x10) = ebp; /* 0x4705AE88: mov dword ptr [ebx + 0x10], ebp */ 3823 MEM32(ebx) = 0x470ADD08u; /* 0x4705AE8B: mov dword ptr [ebx], 0x470add08 */ 3824 esi = MEM32(esp + 0x28); /* 0x4705AE91: mov esi, dword ptr [esp + 0x28] */ 3825 /* cmp esi, ebp */ /* 0x4705AE95: cmp esi, ebp */ 3826 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp); 3827 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3828 _flag_k = FK_CMP; 3829 MEM32(esp + 0x1C) = ebp; /* 0x4705AE97: mov dword ptr [esp + 0x1c], ebp */ 3830 if (CMP_EQ(_flag_a, _flag_b)) goto L_4705AEDA; /* 0x4705AE9B: je 0x4705aeda */ 3831 L_4705AE9D: 3832 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3833 ecx = ecx | 0xFFFFFFFFu; /* 0x4705AE9D: or ecx, 0xffffffff */ 3834 _cf = 0; 3835 _flag_k = FK_TEST; 3836 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3837 eax = 0; /* 0x4705AEA0: xor eax, eax */ 3838 _cf = 0; 3839 _flag_k = FK_TEST; 3840 edi = esi; /* 0x4705AEA2: mov edi, esi */ 3841 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; } /* 0x4705AEA4: repne scasb al, byte ptr es:[edi] */ 3842 ecx = ~ecx; /* 0x4705AEA6: not ecx */ 3843 PUSH32(esp, ecx); /* 0x4705AEA8: push ecx */ 3844 RECOMP_ICALL(0x470A33F2u); /* 0x4705AEA9: call 0x470a33f2 */ /* not lifted */ 3845 RECOMP_FLAGS_IN(); 3846 edx = eax; /* 0x4705AEAE: mov edx, eax */ 3847 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3848 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3849 esp = esp + 4; /* 0x4705AEB0: add esp, 4 */ 3850 _flag_k = FK_ADD; 3851 /* cmp edx, ebp */ /* 0x4705AEB3: cmp edx, ebp */ 3852 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebp); 3853 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3854 _flag_k = FK_CMP; 3855 if (CMP_EQ(_flag_a, _flag_b)) goto L_4705AEDA; /* 0x4705AEB5: je 0x4705aeda */ 3856 L_4705AEB7: 3857 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3858 ecx = ecx | 0xFFFFFFFFu; /* 0x4705AEB7: or ecx, 0xffffffff */ 3859 _cf = 0; 3860 _flag_k = FK_TEST; 3861 edi = esi; /* 0x4705AEBA: mov edi, esi */ 3862 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3863 eax = 0; /* 0x4705AEBC: xor eax, eax */ 3864 _cf = 0; 3865 _flag_k = FK_TEST; 3866 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; } /* 0x4705AEBE: repne scasb al, byte ptr es:[edi] */ 3867 ecx = ~ecx; /* 0x4705AEC0: not ecx */ 3868 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 3869 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3870 edi = edi - ecx; /* 0x4705AEC2: sub edi, ecx */ 3871 _flag_k = FK_CMP; 3872 ebp = ecx; /* 0x4705AEC4: mov ebp, ecx */ 3873 esi = edi; /* 0x4705AEC6: mov esi, edi */ 3874 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4705AEC8: shr ecx, 2 */ 3875 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3876 ecx = ecx >> 2u; /* 0x4705AEC8: shr ecx, 2 */ 3877 edi = edx; /* 0x4705AECB: mov edi, edx */ 3878 eax = edi; /* 0x4705AECD: mov eax, edi */ 3879 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4705AECF: 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; } 3880 ecx = ebp; /* 0x4705AED1: mov ecx, ebp */ 3881 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 3882 ecx = ecx & 3; /* 0x4705AED3: and ecx, 3 */ 3883 _cf = 0; 3884 _flag_k = FK_TEST; 3885 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4705AED6: 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; } 3886 goto L_4705AEDC; /* 0x4705AED8: jmp 0x4705aedc */ 3887 L_4705AEDA: 3888 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3889 eax = 0; /* 0x4705AEDA: xor eax, eax */ 3890 _cf = 0; 3891 _flag_k = FK_TEST; 3892 L_4705AEDC: 3893 ecx = MEM32(esp + 0x14); /* 0x4705AEDC: mov ecx, dword ptr [esp + 0x14] */ 3894 MEM32(ebx + 0x14) = eax; /* 0x4705AEE0: mov dword ptr [ebx + 0x14], eax */ 3895 eax = MEM32(esp + 0x24); /* 0x4705AEE3: mov eax, dword ptr [esp + 0x24] */ 3896 edi = POP32_VAL(esp); /* 0x4705AEE7: pop edi */ 3897 esi = POP32_VAL(esp); /* 0x4705AEE8: pop esi */ 3898 MEM32(ebx + 0x4) = eax; /* 0x4705AEE9: mov dword ptr [ebx + 4], eax */ 3899 MEM32(ebx) = 0x470ADD20u; /* 0x4705AEEC: mov dword ptr [ebx], 0x470add20 */ 3900 MEM32(ebx + 0x8) = 1; /* 0x4705AEF2: mov dword ptr [ebx + 8], 1 */ 3901 ebp = POP32_VAL(esp); /* 0x4705AEF9: pop ebp */ 3902 eax = ebx; /* 0x4705AEFA: mov eax, ebx */ 3903 ebx = POP32_VAL(esp); /* 0x4705AEFC: pop ebx */ 3904 MEM32(FS_BASE + (0)) = ecx; /* 0x4705AEFD: mov dword ptr fs:[0], ecx */ 3905 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3906 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3907 esp = esp + 0x10u; /* 0x4705AF04: add esp, 0x10 */ 3908 _flag_k = FK_ADD; 3909 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4705AF07: ret 8 */ 3910 RECOMP_REGS_OUT(); 3911 } 3912 3913 void sub_4705AF10(void) { 3914 int _fpu_cmp = 0; 3915 uint32_t _cf = 0; 3916 int _df = 1; 3917 uint32_t _flag_k = FK_NONE; 3918 uint32_t _flag_a = 0, _flag_b = 0; 3919 uint32_t _itail_tgt = 0; 3920 RECOMP_REGS_LOCALS 3921 RECOMP_ENTER(0x4705AF10u); 3922 3923 L_4705AF10: 3924 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3925 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3926 esp = esp - 8; /* 0x4705AF10: sub esp, 8 */ 3927 _flag_k = FK_CMP; 3928 PUSH32(esp, ebx); /* 0x4705AF13: push ebx */ 3929 PUSH32(esp, ebp); /* 0x4705AF14: push ebp */ 3930 PUSH32(esp, esi); /* 0x4705AF15: push esi */ 3931 PUSH32(esp, edi); /* 0x4705AF16: push edi */ 3932 esi = ecx; /* 0x4705AF17: mov esi, ecx */ 3933 RECOMP_ICALL(0x4705A9C0u); /* 0x4705AF19: call 0x4705a9c0 */ /* not lifted */ 3934 RECOMP_FLAGS_IN(); 3935 /* test eax, eax */ /* 0x4705AF1E: test eax, eax */ 3936 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3937 _cf = 0; 3938 _flag_k = FK_TEST; 3939 if (TEST_Z(_flag_a, _flag_b)) goto L_4705B146; /* 0x4705AF20: je 0x4705b146 */ 3940 L_4705AF26: 3941 eax = MEM32(esi + 0x14); /* 0x4705AF26: mov eax, dword ptr [esi + 0x14] */ 3942 ecx = MEM32(esi + 0xC); /* 0x4705AF29: mov ecx, dword ptr [esi + 0xc] */ 3943 PUSH32(esp, eax); /* 0x4705AF2C: push eax */ 3944 PUSH32(esp, ecx); /* 0x4705AF2D: push ecx */ 3945 MEM32(esi + 0x10) = 0; /* 0x4705AF2E: mov dword ptr [esi + 0x10], 0 */ 3946 MEM32(esp + 0x1C) = eax; /* 0x4705AF35: mov dword ptr [esp + 0x1c], eax */ 3947 RECOMP_ICALL(MEM32(0x470AC118)); /* 0x4705AF39: call dword ptr [0x470ac118] */ 3948 RECOMP_FLAGS_IN(); 3949 ebx = MEM32(0x470AC3C8); /* 0x4705AF3F: mov ebx, dword ptr [0x470ac3c8] */ 3950 edi = MEM32(0x470AC150); /* 0x4705AF45: mov edi, dword ptr [0x470ac150] */ 3951 ebp = eax; /* 0x4705AF4B: mov ebp, eax */ 3952 /* test ebp, ebp */ /* 0x4705AF4D: test ebp, ebp */ 3953 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp); 3954 _cf = 0; 3955 _flag_k = FK_TEST; 3956 if (TEST_NZ(_flag_a, _flag_b)) goto L_4705B0C9; /* 0x4705AF4F: jne 0x4705b0c9 */ 3957 L_4705AF55: 3958 RECOMP_ICALL(ebx); /* 0x4705AF55: call ebx */ 3959 RECOMP_FLAGS_IN(); 3960 MEM32(esp + 0x10) = eax; /* 0x4705AF57: mov dword ptr [esp + 0x10], eax */ 3961 RECOMP_ICALL(edi); /* 0x4705AF5B: call edi */ 3962 RECOMP_FLAGS_IN(); 3963 ecx = MEM32(esp + 0x10); /* 0x4705AF5D: mov ecx, dword ptr [esp + 0x10] */ 3964 MEM32(ecx) = eax; /* 0x4705AF61: mov dword ptr [ecx], eax */ 3965 ecx = MEM32(0x4710F150); /* 0x4705AF63: mov ecx, dword ptr [0x4710f150] */ 3966 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3967 ecx = ecx + 1; /* 0x4705AF69: inc ecx */ 3968 _flag_k = FK_INC; 3969 MEM32(0x4710F150) = ecx; /* 0x4705AF6A: mov dword ptr [0x4710f150], ecx */ 3970 eax = MEM32(esi + 0x10); /* 0x4705AF70: mov eax, dword ptr [esi + 0x10] */ 3971 /* test eax, eax */ /* 0x4705AF73: test eax, eax */ 3972 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3973 _cf = 0; 3974 _flag_k = FK_TEST; 3975 if (TEST_NZ(_flag_a, _flag_b)) goto L_4705B0C9; /* 0x4705AF75: jne 0x4705b0c9 */ 3976 L_4705AF7B: 3977 edx = ecx; /* 0x4705AF7B: mov edx, ecx */ 3978 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3979 edx = edx + 1; /* 0x4705AF7D: inc edx */ 3980 _flag_k = FK_INC; 3981 MEM32(0x4710F150) = edx; /* 0x4705AF7E: mov dword ptr [0x4710f150], edx */ 3982 RECOMP_ICALL(edi); /* 0x4705AF84: call edi */ 3983 RECOMP_FLAGS_IN(); 3984 ebp = eax; /* 0x4705AF86: mov ebp, eax */ 3985 RECOMP_ICALL(ebx); /* 0x4705AF88: call ebx */ 3986 RECOMP_FLAGS_IN(); 3987 eax = MEM32(eax); /* 0x4705AF8A: mov eax, dword ptr [eax] */ 3988 /* test eax, eax */ /* 0x4705AF8C: test eax, eax */ 3989 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3990 _cf = 0; 3991 _flag_k = FK_TEST; 3992 if (TEST_Z(_flag_a, _flag_b)) goto L_4705AF92; /* 0x4705AF8E: je 0x4705af92 */ 3993 L_4705AF90: 3994 ebp = eax; /* 0x4705AF90: mov ebp, eax */ 3995 L_4705AF92: 3996 RECOMP_ICALL(0x47039020u); /* 0x4705AF92: call 0x47039020 */ /* not lifted */ 3997 RECOMP_FLAGS_IN(); 3998 esi = eax; /* 0x4705AF97: mov esi, eax */ 3999 ecx = esi; /* 0x4705AF99: mov ecx, esi */ 4000 RECOMP_ICALL(0x4703B210u); /* 0x4705AF9B: call 0x4703b210 */ /* not lifted */ 4001 RECOMP_FLAGS_IN(); 4002 PUSH32(esp, eax); /* 0x4705AFA0: push eax */ 4003 ecx = esi; /* 0x4705AFA1: mov ecx, esi */ 4004 RECOMP_ICALL(0x4703B240u); /* 0x4705AFA3: call 0x4703b240 */ /* not lifted */ 4005 RECOMP_FLAGS_IN(); 4006 PUSH32(esp, eax); /* 0x4705AFA8: push eax */ 4007 ecx = esi; /* 0x4705AFA9: mov ecx, esi */ 4008 RECOMP_ICALL(0x4703B080u); /* 0x4705AFAB: call 0x4703b080 */ /* not lifted */ 4009 RECOMP_FLAGS_IN(); 4010 PUSH32(esp, eax); /* 0x4705AFB0: push eax */ 4011 PUSH32(esp, ebp); /* 0x4705AFB1: push ebp */ 4012 PUSH32(esp, 0xFFFFFFFFu); /* 0x4705AFB2: push -1 */ 4013 PUSH32(esp, 0x22Du); /* 0x4705AFB4: push 0x22d */ 4014 PUSH32(esp, 0x47109290u); /* 0x4705AFB9: push 0x47109290 */ 4015 ecx = esi; /* 0x4705AFBE: mov ecx, esi */ 4016 RECOMP_ICALL(0x4703A340u); /* 0x4705AFC0: call 0x4703a340 */ /* not lifted */ 4017 RECOMP_FLAGS_IN(); 4018 edx = MEM32(esp + 0x14); /* 0x4705AFC5: mov edx, dword ptr [esp + 0x14] */ 4019 PUSH32(esp, edx); /* 0x4705AFC9: push edx */ 4020 PUSH32(esp, 0x471093B4u); /* 0x4705AFCA: push 0x471093b4 */ 4021 PUSH32(esp, 0x80u); /* 0x4705AFCF: push 0x80 */ 4022 PUSH32(esp, esi); /* 0x4705AFD4: push esi */ 4023 RECOMP_ICALL(0x47039830u); /* 0x4705AFD5: call 0x47039830 */ /* not lifted */ 4024 RECOMP_FLAGS_IN(); 4025 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4026 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4027 esp = esp + 0x10u; /* 0x4705AFDA: add esp, 0x10 */ 4028 _flag_k = FK_ADD; 4029 PUSH32(esp, 0); /* 0x4705AFDD: push 0 */ 4030 PUSH32(esp, 0x80u); /* 0x4705AFDF: push 0x80 */ 4031 PUSH32(esp, 0x4710DE10u); /* 0x4705AFE4: push 0x4710de10 */ 4032 PUSH32(esp, 0); /* 0x4705AFE9: push 0 */ 4033 RECOMP_ICALL(edi); /* 0x4705AFEB: call edi */ 4034 RECOMP_FLAGS_IN(); 4035 PUSH32(esp, eax); /* 0x4705AFED: push eax */ 4036 PUSH32(esp, 0); /* 0x4705AFEE: push 0 */ 4037 PUSH32(esp, 0x1000u); /* 0x4705AFF0: push 0x1000 */ 4038 RECOMP_ICALL(MEM32(0x470AC120)); /* 0x4705AFF5: call dword ptr [0x470ac120] */ 4039 RECOMP_FLAGS_IN(); 4040 eax = 0x4710DE10u; /* 0x4705AFFB: mov eax, 0x4710de10 */ 4041 /* test eax, eax */ /* 0x4705B000: test eax, eax */ 4042 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4043 _cf = 0; 4044 _flag_k = FK_TEST; 4045 if (TEST_Z(_flag_a, _flag_b)) goto L_4705B069; /* 0x4705B002: je 0x4705b069 */ 4046 L_4705B004: 4047 RECOMP_ICALL(edi); /* 0x4705B004: call edi */ 4048 RECOMP_FLAGS_IN(); 4049 edi = eax; /* 0x4705B006: mov edi, eax */ 4050 RECOMP_ICALL(ebx); /* 0x4705B008: call ebx */ 4051 RECOMP_FLAGS_IN(); 4052 eax = MEM32(eax); /* 0x4705B00A: mov eax, dword ptr [eax] */ 4053 /* test eax, eax */ /* 0x4705B00C: test eax, eax */ 4054 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4055 _cf = 0; 4056 _flag_k = FK_TEST; 4057 if (TEST_Z(_flag_a, _flag_b)) goto L_4705B012; /* 0x4705B00E: je 0x4705b012 */ 4058 L_4705B010: 4059 edi = eax; /* 0x4705B010: mov edi, eax */ 4060 L_4705B012: 4061 RECOMP_ICALL(0x47039020u); /* 0x4705B012: call 0x47039020 */ /* not lifted */ 4062 RECOMP_FLAGS_IN(); 4063 esi = eax; /* 0x4705B017: mov esi, eax */ 4064 ecx = esi; /* 0x4705B019: mov ecx, esi */ 4065 RECOMP_ICALL(0x4703B210u); /* 0x4705B01B: call 0x4703b210 */ /* not lifted */ 4066 RECOMP_FLAGS_IN(); 4067 PUSH32(esp, eax); /* 0x4705B020: push eax */ 4068 ecx = esi; /* 0x4705B021: mov ecx, esi */ 4069 RECOMP_ICALL(0x4703B240u); /* 0x4705B023: call 0x4703b240 */ /* not lifted */ 4070 RECOMP_FLAGS_IN(); 4071 PUSH32(esp, eax); /* 0x4705B028: push eax */ 4072 ecx = esi; /* 0x4705B029: mov ecx, esi */ 4073 RECOMP_ICALL(0x4703B080u); /* 0x4705B02B: call 0x4703b080 */ /* not lifted */ 4074 RECOMP_FLAGS_IN(); 4075 PUSH32(esp, eax); /* 0x4705B030: push eax */ 4076 PUSH32(esp, edi); /* 0x4705B031: push edi */ 4077 PUSH32(esp, 0); /* 0x4705B032: push 0 */ 4078 PUSH32(esp, 0x235u); /* 0x4705B034: push 0x235 */ 4079 PUSH32(esp, 0x47109290u); /* 0x4705B039: push 0x47109290 */ 4080 ecx = esi; /* 0x4705B03E: mov ecx, esi */ 4081 RECOMP_ICALL(0x4703A340u); /* 0x4705B040: call 0x4703a340 */ /* not lifted */ 4082 RECOMP_FLAGS_IN(); 4083 PUSH32(esp, 0x4710DE10u); /* 0x4705B045: push 0x4710de10 */ 4084 PUSH32(esp, 0x47109378u); /* 0x4705B04A: push 0x47109378 */ 4085 PUSH32(esp, 0x80u); /* 0x4705B04F: push 0x80 */ 4086 PUSH32(esp, esi); /* 0x4705B054: push esi */ 4087 RECOMP_ICALL(0x47039830u); /* 0x4705B055: call 0x47039830 */ /* not lifted */ 4088 RECOMP_FLAGS_IN(); 4089 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4090 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4091 esp = esp + 0x10u; /* 0x4705B05A: add esp, 0x10 */ 4092 _flag_k = FK_ADD; 4093 edi = POP32_VAL(esp); /* 0x4705B05D: pop edi */ 4094 esi = POP32_VAL(esp); /* 0x4705B05E: pop esi */ 4095 ebp = POP32_VAL(esp); /* 0x4705B05F: pop ebp */ 4096 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4097 eax = 0; /* 0x4705B060: xor eax, eax */ 4098 _cf = 0; 4099 _flag_k = FK_TEST; 4100 ebx = POP32_VAL(esp); /* 0x4705B062: pop ebx */ 4101 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4102 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4103 esp = esp + 8; /* 0x4705B063: add esp, 8 */ 4104 _flag_k = FK_ADD; 4105 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4705B066: ret 4 */ 4106 L_4705B069: 4107 RECOMP_ICALL(edi); /* 0x4705B069: call edi */ 4108 RECOMP_FLAGS_IN(); 4109 edi = eax; /* 0x4705B06B: mov edi, eax */ 4110 RECOMP_ICALL(ebx); /* 0x4705B06D: call ebx */ 4111 RECOMP_FLAGS_IN(); 4112 eax = MEM32(eax); /* 0x4705B06F: mov eax, dword ptr [eax] */ 4113 /* test eax, eax */ /* 0x4705B071: test eax, eax */ 4114 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4115 _cf = 0; 4116 _flag_k = FK_TEST; 4117 if (TEST_Z(_flag_a, _flag_b)) goto L_4705B077; /* 0x4705B073: je 0x4705b077 */ 4118 L_4705B075: 4119 edi = eax; /* 0x4705B075: mov edi, eax */ 4120 L_4705B077: 4121 RECOMP_ICALL(0x47039020u); /* 0x4705B077: call 0x47039020 */ /* not lifted */ 4122 RECOMP_FLAGS_IN(); 4123 esi = eax; /* 0x4705B07C: mov esi, eax */ 4124 ecx = esi; /* 0x4705B07E: mov ecx, esi */ 4125 RECOMP_ICALL(0x4703B210u); /* 0x4705B080: call 0x4703b210 */ /* not lifted */ 4126 RECOMP_FLAGS_IN(); 4127 PUSH32(esp, eax); /* 0x4705B085: push eax */ 4128 ecx = esi; /* 0x4705B086: mov ecx, esi */ 4129 RECOMP_ICALL(0x4703B240u); /* 0x4705B088: call 0x4703b240 */ /* not lifted */ 4130 RECOMP_FLAGS_IN(); 4131 PUSH32(esp, eax); /* 0x4705B08D: push eax */ 4132 ecx = esi; /* 0x4705B08E: mov ecx, esi */ 4133 RECOMP_ICALL(0x4703B080u); /* 0x4705B090: call 0x4703b080 */ /* not lifted */ 4134 RECOMP_FLAGS_IN(); 4135 PUSH32(esp, eax); /* 0x4705B095: push eax */ 4136 PUSH32(esp, edi); /* 0x4705B096: push edi */ 4137 PUSH32(esp, 0); /* 0x4705B097: push 0 */ 4138 PUSH32(esp, 0x239u); /* 0x4705B099: push 0x239 */ 4139 PUSH32(esp, 0x47109290u); /* 0x4705B09E: push 0x47109290 */ 4140 ecx = esi; /* 0x4705B0A3: mov ecx, esi */ 4141 RECOMP_ICALL(0x4703A340u); /* 0x4705B0A5: call 0x4703a340 */ /* not lifted */ 4142 RECOMP_FLAGS_IN(); 4143 PUSH32(esp, 0x47105590u); /* 0x4705B0AA: push 0x47105590 */ 4144 PUSH32(esp, 0x80u); /* 0x4705B0AF: push 0x80 */ 4145 PUSH32(esp, esi); /* 0x4705B0B4: push esi */ 4146 RECOMP_ICALL(0x47039830u); /* 0x4705B0B5: call 0x47039830 */ /* not lifted */ 4147 RECOMP_FLAGS_IN(); 4148 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4149 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4150 esp = esp + 0xCu; /* 0x4705B0BA: add esp, 0xc */ 4151 _flag_k = FK_ADD; 4152 edi = POP32_VAL(esp); /* 0x4705B0BD: pop edi */ 4153 esi = POP32_VAL(esp); /* 0x4705B0BE: pop esi */ 4154 ebp = POP32_VAL(esp); /* 0x4705B0BF: pop ebp */ 4155 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4156 eax = 0; /* 0x4705B0C0: xor eax, eax */ 4157 _cf = 0; 4158 _flag_k = FK_TEST; 4159 ebx = POP32_VAL(esp); /* 0x4705B0C2: pop ebx */ 4160 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4161 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4162 esp = esp + 8; /* 0x4705B0C3: add esp, 8 */ 4163 _flag_k = FK_ADD; 4164 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4705B0C6: ret 4 */ 4165 L_4705B0C9: 4166 ecx = MEM32(esp + 0x1C); /* 0x4705B0C9: mov ecx, dword ptr [esp + 0x1c] */ 4167 PUSH32(esp, ecx); /* 0x4705B0CD: push ecx */ 4168 RECOMP_ICALL(ebp); /* 0x4705B0CE: call ebp */ 4169 RECOMP_FLAGS_IN(); 4170 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4171 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4172 esp = esp + 4; /* 0x4705B0D0: add esp, 4 */ 4173 _flag_k = FK_ADD; 4174 /* test eax, eax */ /* 0x4705B0D3: test eax, eax */ 4175 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4176 _cf = 0; 4177 _flag_k = FK_TEST; 4178 MEM32(esi + 0x10) = eax; /* 0x4705B0D5: mov dword ptr [esi + 0x10], eax */ 4179 if (TEST_NZ(_flag_a, _flag_b)) goto L_4705B146; /* 0x4705B0D8: jne 0x4705b146 */ 4180 L_4705B0DA: 4181 _flag_a = (uint32_t)(MEM32(0x4710F150)); _flag_b = (uint32_t)(1); 4182 MEM32(0x4710F150) = MEM32(0x4710F150) + 1; /* 0x4705B0DA: inc dword ptr [0x4710f150] */ 4183 _flag_k = FK_INC; 4184 RECOMP_ICALL(edi); /* 0x4705B0E0: call edi */ 4185 RECOMP_FLAGS_IN(); 4186 edi = eax; /* 0x4705B0E2: mov edi, eax */ 4187 RECOMP_ICALL(ebx); /* 0x4705B0E4: call ebx */ 4188 RECOMP_FLAGS_IN(); 4189 eax = MEM32(eax); /* 0x4705B0E6: mov eax, dword ptr [eax] */ 4190 /* test eax, eax */ /* 0x4705B0E8: test eax, eax */ 4191 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4192 _cf = 0; 4193 _flag_k = FK_TEST; 4194 ebx = edi; /* 0x4705B0EA: mov ebx, edi */ 4195 if (TEST_Z(_flag_a, _flag_b)) goto L_4705B0F0; /* 0x4705B0EC: je 0x4705b0f0 */ 4196 L_4705B0EE: 4197 ebx = eax; /* 0x4705B0EE: mov ebx, eax */ 4198 L_4705B0F0: 4199 RECOMP_ICALL(0x47039020u); /* 0x4705B0F0: call 0x47039020 */ /* not lifted */ 4200 RECOMP_FLAGS_IN(); 4201 edi = eax; /* 0x4705B0F5: mov edi, eax */ 4202 ecx = edi; /* 0x4705B0F7: mov ecx, edi */ 4203 RECOMP_ICALL(0x4703B210u); /* 0x4705B0F9: call 0x4703b210 */ /* not lifted */ 4204 RECOMP_FLAGS_IN(); 4205 PUSH32(esp, eax); /* 0x4705B0FE: push eax */ 4206 ecx = edi; /* 0x4705B0FF: mov ecx, edi */ 4207 RECOMP_ICALL(0x4703B240u); /* 0x4705B101: call 0x4703b240 */ /* not lifted */ 4208 RECOMP_FLAGS_IN(); 4209 PUSH32(esp, eax); /* 0x4705B106: push eax */ 4210 ecx = edi; /* 0x4705B107: mov ecx, edi */ 4211 RECOMP_ICALL(0x4703B080u); /* 0x4705B109: call 0x4703b080 */ /* not lifted */ 4212 RECOMP_FLAGS_IN(); 4213 PUSH32(esp, eax); /* 0x4705B10E: push eax */ 4214 PUSH32(esp, ebx); /* 0x4705B10F: push ebx */ 4215 PUSH32(esp, 0); /* 0x4705B110: push 0 */ 4216 PUSH32(esp, 0x245u); /* 0x4705B112: push 0x245 */ 4217 PUSH32(esp, 0x47109290u); /* 0x4705B117: push 0x47109290 */ 4218 ecx = edi; /* 0x4705B11C: mov ecx, edi */ 4219 RECOMP_ICALL(0x4703A340u); /* 0x4705B11E: call 0x4703a340 */ /* not lifted */ 4220 RECOMP_FLAGS_IN(); 4221 edx = MEM32(esi + 0x14); /* 0x4705B123: mov edx, dword ptr [esi + 0x14] */ 4222 PUSH32(esp, edx); /* 0x4705B126: push edx */ 4223 PUSH32(esp, 0x471055F0u); /* 0x4705B127: push 0x471055f0 */ 4224 PUSH32(esp, 0x80u); /* 0x4705B12C: push 0x80 */ 4225 PUSH32(esp, edi); /* 0x4705B131: push edi */ 4226 RECOMP_ICALL(0x47039830u); /* 0x4705B132: call 0x47039830 */ /* not lifted */ 4227 RECOMP_FLAGS_IN(); 4228 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4229 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4230 esp = esp + 0x10u; /* 0x4705B137: add esp, 0x10 */ 4231 _flag_k = FK_ADD; 4232 edi = POP32_VAL(esp); /* 0x4705B13A: pop edi */ 4233 esi = POP32_VAL(esp); /* 0x4705B13B: pop esi */ 4234 ebp = POP32_VAL(esp); /* 0x4705B13C: pop ebp */ 4235 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4236 eax = 0; /* 0x4705B13D: xor eax, eax */ 4237 _cf = 0; 4238 _flag_k = FK_TEST; 4239 ebx = POP32_VAL(esp); /* 0x4705B13F: pop ebx */ 4240 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4241 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4242 esp = esp + 8; /* 0x4705B140: add esp, 8 */ 4243 _flag_k = FK_ADD; 4244 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4705B143: ret 4 */ 4245 L_4705B146: 4246 eax = MEM32(esi + 0x10); /* 0x4705B146: mov eax, dword ptr [esi + 0x10] */ 4247 edi = POP32_VAL(esp); /* 0x4705B149: pop edi */ 4248 esi = POP32_VAL(esp); /* 0x4705B14A: pop esi */ 4249 ebp = POP32_VAL(esp); /* 0x4705B14B: pop ebp */ 4250 ebx = POP32_VAL(esp); /* 0x4705B14C: pop ebx */ 4251 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4252 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4253 esp = esp + 8; /* 0x4705B14D: add esp, 8 */ 4254 _flag_k = FK_ADD; 4255 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4705B150: ret 4 */ 4256 RECOMP_REGS_OUT(); 4257 } 4258 4259 void sub_4705B160(void) { 4260 int _fpu_cmp = 0; 4261 uint32_t _cf = 0; 4262 int _df = 1; 4263 uint32_t _flag_k = FK_NONE; 4264 uint32_t _flag_a = 0, _flag_b = 0; 4265 uint32_t _itail_tgt = 0; 4266 RECOMP_REGS_LOCALS 4267 RECOMP_ENTER(0x4705B160u); 4268 4269 L_4705B160: 4270 PUSH32(esp, esi); /* 0x4705B160: push esi */ 4271 esi = ecx; /* 0x4705B161: mov esi, ecx */ 4272 eax = MEM32(esi + 0x14); /* 0x4705B163: mov eax, dword ptr [esi + 0x14] */ 4273 PUSH32(esp, eax); /* 0x4705B166: push eax */ 4274 MEM32(esi) = 0x470ADD20u; /* 0x4705B167: mov dword ptr [esi], 0x470add20 */ 4275 RECOMP_ICALL(0x470A32A2u); /* 0x4705B16D: call 0x470a32a2 */ /* not lifted */ 4276 RECOMP_FLAGS_IN(); 4277 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4278 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4279 esp = esp + 4; /* 0x4705B172: add esp, 4 */ 4280 _flag_k = FK_ADD; 4281 MEM32(esi) = 0x470ADD08u; /* 0x4705B175: mov dword ptr [esi], 0x470add08 */ 4282 esi = POP32_VAL(esp); /* 0x4705B17B: pop esi */ 4283 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705B17C: ret */ 4284 RECOMP_REGS_OUT(); 4285 } 4286 4287 void sub_4705B180(void) { 4288 int _fpu_cmp = 0; 4289 uint32_t _cf = 0; 4290 int _df = 1; 4291 uint32_t _flag_k = FK_NONE; 4292 uint32_t _flag_a = 0, _flag_b = 0; 4293 uint32_t _itail_tgt = 0; 4294 RECOMP_REGS_LOCALS 4295 RECOMP_ENTER(0x4705B180u); 4296 4297 L_4705B180: 4298 PUSH32(esp, ebx); /* 0x4705B180: push ebx */ 4299 PUSH32(esp, ebp); /* 0x4705B181: push ebp */ 4300 ebp = MEM32(esp + 0xC); /* 0x4705B182: mov ebp, dword ptr [esp + 0xc] */ 4301 PUSH32(esp, esi); /* 0x4705B186: push esi */ 4302 esi = MEM32(ebp + 0x4); /* 0x4705B187: mov esi, dword ptr [ebp + 4] */ 4303 /* test esi, esi */ /* 0x4705B18A: test esi, esi */ 4304 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4305 _cf = 0; 4306 _flag_k = FK_TEST; 4307 PUSH32(esp, edi); /* 0x4705B18C: push edi */ 4308 ebx = ecx; /* 0x4705B18D: mov ebx, ecx */ 4309 if (TEST_Z(_flag_a, _flag_b)) goto L_4705B1D4; /* 0x4705B18F: je 0x4705b1d4 */ 4310 L_4705B191: 4311 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4312 ecx = ecx | 0xFFFFFFFFu; /* 0x4705B191: or ecx, 0xffffffff */ 4313 _cf = 0; 4314 _flag_k = FK_TEST; 4315 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4316 eax = 0; /* 0x4705B194: xor eax, eax */ 4317 _cf = 0; 4318 _flag_k = FK_TEST; 4319 edi = esi; /* 0x4705B196: mov edi, esi */ 4320 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; } /* 0x4705B198: repne scasb al, byte ptr es:[edi] */ 4321 ecx = ~ecx; /* 0x4705B19A: not ecx */ 4322 PUSH32(esp, ecx); /* 0x4705B19C: push ecx */ 4323 RECOMP_ICALL(0x470A33F2u); /* 0x4705B19D: call 0x470a33f2 */ /* not lifted */ 4324 RECOMP_FLAGS_IN(); 4325 edx = eax; /* 0x4705B1A2: mov edx, eax */ 4326 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4327 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4328 esp = esp + 4; /* 0x4705B1A4: add esp, 4 */ 4329 _flag_k = FK_ADD; 4330 /* test edx, edx */ /* 0x4705B1A7: test edx, edx */ 4331 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 4332 _cf = 0; 4333 _flag_k = FK_TEST; 4334 if (TEST_Z(_flag_a, _flag_b)) goto L_4705B1D4; /* 0x4705B1A9: je 0x4705b1d4 */ 4335 L_4705B1AB: 4336 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4337 ecx = ecx | 0xFFFFFFFFu; /* 0x4705B1AB: or ecx, 0xffffffff */ 4338 _cf = 0; 4339 _flag_k = FK_TEST; 4340 edi = esi; /* 0x4705B1AE: mov edi, esi */ 4341 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4342 eax = 0; /* 0x4705B1B0: xor eax, eax */ 4343 _cf = 0; 4344 _flag_k = FK_TEST; 4345 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; } /* 0x4705B1B2: repne scasb al, byte ptr es:[edi] */ 4346 ecx = ~ecx; /* 0x4705B1B4: not ecx */ 4347 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 4348 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4349 edi = edi - ecx; /* 0x4705B1B6: sub edi, ecx */ 4350 _flag_k = FK_CMP; 4351 eax = ecx; /* 0x4705B1B8: mov eax, ecx */ 4352 esi = edi; /* 0x4705B1BA: mov esi, edi */ 4353 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4705B1BC: shr ecx, 2 */ 4354 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4355 ecx = ecx >> 2u; /* 0x4705B1BC: shr ecx, 2 */ 4356 edi = edx; /* 0x4705B1BF: mov edi, edx */ 4357 MEM32(esp + 0x14) = eax; /* 0x4705B1C1: mov dword ptr [esp + 0x14], eax */ 4358 eax = edi; /* 0x4705B1C5: mov eax, edi */ 4359 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4705B1C7: 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; } 4360 ecx = MEM32(esp + 0x14); /* 0x4705B1C9: mov ecx, dword ptr [esp + 0x14] */ 4361 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 4362 ecx = ecx & 3; /* 0x4705B1CD: and ecx, 3 */ 4363 _cf = 0; 4364 _flag_k = FK_TEST; 4365 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4705B1D0: 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; } 4366 goto L_4705B1D6; /* 0x4705B1D2: jmp 0x4705b1d6 */ 4367 L_4705B1D4: 4368 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4369 eax = 0; /* 0x4705B1D4: xor eax, eax */ 4370 _cf = 0; 4371 _flag_k = FK_TEST; 4372 L_4705B1D6: 4373 edx = MEM32(esp + 0x18); /* 0x4705B1D6: mov edx, dword ptr [esp + 0x18] */ 4374 edi = POP32_VAL(esp); /* 0x4705B1DA: pop edi */ 4375 esi = POP32_VAL(esp); /* 0x4705B1DB: pop esi */ 4376 MEM32(ebx + 0xC) = ebp; /* 0x4705B1DC: mov dword ptr [ebx + 0xc], ebp */ 4377 MEM32(ebx + 0x4) = eax; /* 0x4705B1DF: mov dword ptr [ebx + 4], eax */ 4378 ebp = POP32_VAL(esp); /* 0x4705B1E2: pop ebp */ 4379 MEM32(ebx + 0x8) = 0; /* 0x4705B1E3: mov dword ptr [ebx + 8], 0 */ 4380 MEM32(ebx + 0x10) = edx; /* 0x4705B1EA: mov dword ptr [ebx + 0x10], edx */ 4381 MEM32(ebx) = 0x470ADD2Cu; /* 0x4705B1ED: mov dword ptr [ebx], 0x470add2c */ 4382 eax = ebx; /* 0x4705B1F3: mov eax, ebx */ 4383 ebx = POP32_VAL(esp); /* 0x4705B1F5: pop ebx */ 4384 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4705B1F6: ret 8 */ 4385 RECOMP_REGS_OUT(); 4386 } 4387 4388 void sub_4705B200(void) { 4389 int _fpu_cmp = 0; 4390 uint32_t _cf = 0; 4391 int _df = 1; 4392 uint32_t _flag_k = FK_NONE; 4393 uint32_t _flag_a = 0, _flag_b = 0; 4394 uint32_t _itail_tgt = 0; 4395 RECOMP_REGS_LOCALS 4396 RECOMP_ENTER(0x4705B200u); 4397 4398 L_4705B200: 4399 SET_LO8(eax, MEM8(0x4710DE04)); /* 0x4705B200: mov al, byte ptr [0x4710de04] */ 4400 /* test LO8(eax), LO8(eax) */ /* 0x4705B205: test al, al */ 4401 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4402 _cf = 0; 4403 _flag_k = FK_NARROW(FK_TEST, 24); 4404 PUSH32(esp, ebx); /* 0x4705B207: push ebx */ 4405 ebx = ecx; /* 0x4705B208: mov ebx, ecx */ 4406 if (TEST_Z(_flag_a, _flag_b)) goto L_4705B273; /* 0x4705B20A: je 0x4705b273 */ 4407 L_4705B20C: 4408 PUSH32(esp, esi); /* 0x4705B20C: push esi */ 4409 PUSH32(esp, edi); /* 0x4705B20D: push edi */ 4410 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4705B20E: call dword ptr [0x470ac150] */ 4411 RECOMP_FLAGS_IN(); 4412 edi = eax; /* 0x4705B214: mov edi, eax */ 4413 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4705B216: call dword ptr [0x470ac3c8] */ 4414 RECOMP_FLAGS_IN(); 4415 eax = MEM32(eax); /* 0x4705B21C: mov eax, dword ptr [eax] */ 4416 /* test eax, eax */ /* 0x4705B21E: test eax, eax */ 4417 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4418 _cf = 0; 4419 _flag_k = FK_TEST; 4420 if (TEST_Z(_flag_a, _flag_b)) goto L_4705B224; /* 0x4705B220: je 0x4705b224 */ 4421 L_4705B222: 4422 edi = eax; /* 0x4705B222: mov edi, eax */ 4423 L_4705B224: 4424 RECOMP_ICALL(0x47039020u); /* 0x4705B224: call 0x47039020 */ /* not lifted */ 4425 RECOMP_FLAGS_IN(); 4426 esi = eax; /* 0x4705B229: mov esi, eax */ 4427 ecx = esi; /* 0x4705B22B: mov ecx, esi */ 4428 RECOMP_ICALL(0x4703B210u); /* 0x4705B22D: call 0x4703b210 */ /* not lifted */ 4429 RECOMP_FLAGS_IN(); 4430 PUSH32(esp, eax); /* 0x4705B232: push eax */ 4431 ecx = esi; /* 0x4705B233: mov ecx, esi */ 4432 RECOMP_ICALL(0x4703B240u); /* 0x4705B235: call 0x4703b240 */ /* not lifted */ 4433 RECOMP_FLAGS_IN(); 4434 PUSH32(esp, eax); /* 0x4705B23A: push eax */ 4435 ecx = esi; /* 0x4705B23B: mov ecx, esi */ 4436 RECOMP_ICALL(0x4703B080u); /* 0x4705B23D: call 0x4703b080 */ /* not lifted */ 4437 RECOMP_FLAGS_IN(); 4438 PUSH32(esp, eax); /* 0x4705B242: push eax */ 4439 PUSH32(esp, edi); /* 0x4705B243: push edi */ 4440 PUSH32(esp, 0); /* 0x4705B244: push 0 */ 4441 PUSH32(esp, 0x26Bu); /* 0x4705B246: push 0x26b */ 4442 PUSH32(esp, 0x47109290u); /* 0x4705B24B: push 0x47109290 */ 4443 ecx = esi; /* 0x4705B250: mov ecx, esi */ 4444 RECOMP_ICALL(0x4703A340u); /* 0x4705B252: call 0x4703a340 */ /* not lifted */ 4445 RECOMP_FLAGS_IN(); 4446 eax = MEM32(0x4710F150); /* 0x4705B257: mov eax, dword ptr [0x4710f150] */ 4447 ecx = MEM32(ebx + 0x4); /* 0x4705B25C: mov ecx, dword ptr [ebx + 4] */ 4448 PUSH32(esp, eax); /* 0x4705B25F: push eax */ 4449 PUSH32(esp, ecx); /* 0x4705B260: push ecx */ 4450 PUSH32(esp, 0x471093D4u); /* 0x4705B261: push 0x471093d4 */ 4451 PUSH32(esp, 4); /* 0x4705B266: push 4 */ 4452 PUSH32(esp, esi); /* 0x4705B268: push esi */ 4453 RECOMP_ICALL(0x47039830u); /* 0x4705B269: call 0x47039830 */ /* not lifted */ 4454 RECOMP_FLAGS_IN(); 4455 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 4456 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4457 esp = esp + 0x14u; /* 0x4705B26E: add esp, 0x14 */ 4458 _flag_k = FK_ADD; 4459 edi = POP32_VAL(esp); /* 0x4705B271: pop edi */ 4460 esi = POP32_VAL(esp); /* 0x4705B272: pop esi */ 4461 L_4705B273: 4462 ebx = POP32_VAL(esp); /* 0x4705B273: pop ebx */ 4463 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705B274: ret */ 4464 RECOMP_REGS_OUT(); 4465 } 4466 4467 void sub_4705B280(void) { 4468 int _fpu_cmp = 0; 4469 uint32_t _cf = 0; 4470 int _df = 1; 4471 uint32_t _flag_k = FK_NONE; 4472 uint32_t _flag_a = 0, _flag_b = 0; 4473 uint32_t _itail_tgt = 0; 4474 RECOMP_REGS_LOCALS 4475 RECOMP_ENTER(0x4705B280u); 4476 4477 L_4705B280: 4478 PUSH32(esp, 0xFFFFFFFFu); /* 0x4705B280: push -1 */ 4479 PUSH32(esp, 0x470A77A8u); /* 0x4705B282: push 0x470a77a8 */ 4480 eax = MEM32(FS_BASE + (0)); /* 0x4705B287: mov eax, dword ptr fs:[0] */ 4481 PUSH32(esp, eax); /* 0x4705B28D: push eax */ 4482 MEM32(FS_BASE + (0)) = esp; /* 0x4705B28E: mov dword ptr fs:[0], esp */ 4483 PUSH32(esp, ecx); /* 0x4705B295: push ecx */ 4484 PUSH32(esp, esi); /* 0x4705B296: push esi */ 4485 esi = ecx; /* 0x4705B297: mov esi, ecx */ 4486 MEM32(esp + 0x4) = esi; /* 0x4705B299: mov dword ptr [esp + 4], esi */ 4487 MEM32(esi) = 0x470ADD2Cu; /* 0x4705B29D: mov dword ptr [esi], 0x470add2c */ 4488 ecx = MEM32(esi + 0xC); /* 0x4705B2A3: mov ecx, dword ptr [esi + 0xc] */ 4489 /* test ecx, ecx */ /* 0x4705B2A6: test ecx, ecx */ 4490 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4491 _cf = 0; 4492 _flag_k = FK_TEST; 4493 MEM32(esp + 0x10) = 0; /* 0x4705B2A8: mov dword ptr [esp + 0x10], 0 */ 4494 if (TEST_Z(_flag_a, _flag_b)) goto L_4705B2B8; /* 0x4705B2B0: je 0x4705b2b8 */ 4495 L_4705B2B2: 4496 eax = MEM32(ecx); /* 0x4705B2B2: mov eax, dword ptr [ecx] */ 4497 PUSH32(esp, 1); /* 0x4705B2B4: push 1 */ 4498 RECOMP_ICALL(MEM32(eax)); /* 0x4705B2B6: call dword ptr [eax] */ 4499 RECOMP_FLAGS_IN(); 4500 L_4705B2B8: 4501 ecx = MEM32(esi + 0x10); /* 0x4705B2B8: mov ecx, dword ptr [esi + 0x10] */ 4502 /* test ecx, ecx */ /* 0x4705B2BB: test ecx, ecx */ 4503 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4504 _cf = 0; 4505 _flag_k = FK_TEST; 4506 if (TEST_Z(_flag_a, _flag_b)) goto L_4705B2C5; /* 0x4705B2BD: je 0x4705b2c5 */ 4507 L_4705B2BF: 4508 edx = MEM32(ecx); /* 0x4705B2BF: mov edx, dword ptr [ecx] */ 4509 PUSH32(esp, 1); /* 0x4705B2C1: push 1 */ 4510 RECOMP_ICALL(MEM32(edx)); /* 0x4705B2C3: call dword ptr [edx] */ 4511 RECOMP_FLAGS_IN(); 4512 L_4705B2C5: 4513 eax = MEM32(esi + 0x4); /* 0x4705B2C5: mov eax, dword ptr [esi + 4] */ 4514 PUSH32(esp, eax); /* 0x4705B2C8: push eax */ 4515 MEM32(esp + 0x14) = 0xFFFFFFFFu; /* 0x4705B2C9: mov dword ptr [esp + 0x14], 0xffffffff */ 4516 MEM32(esi) = 0x470ADCC8u; /* 0x4705B2D1: mov dword ptr [esi], 0x470adcc8 */ 4517 RECOMP_ICALL(0x470A32A2u); /* 0x4705B2D7: call 0x470a32a2 */ /* not lifted */ 4518 RECOMP_FLAGS_IN(); 4519 ecx = MEM32(esi + 0x8); /* 0x4705B2DC: mov ecx, dword ptr [esi + 8] */ 4520 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4521 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4522 esp = esp + 4; /* 0x4705B2DF: add esp, 4 */ 4523 _flag_k = FK_ADD; 4524 /* test ecx, ecx */ /* 0x4705B2E2: test ecx, ecx */ 4525 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4526 _cf = 0; 4527 _flag_k = FK_TEST; 4528 esi = POP32_VAL(esp); /* 0x4705B2E4: pop esi */ 4529 if (TEST_Z(_flag_a, _flag_b)) goto L_4705B2ED; /* 0x4705B2E5: je 0x4705b2ed */ 4530 L_4705B2E7: 4531 edx = MEM32(ecx); /* 0x4705B2E7: mov edx, dword ptr [ecx] */ 4532 PUSH32(esp, 1); /* 0x4705B2E9: push 1 */ 4533 RECOMP_ICALL(MEM32(edx)); /* 0x4705B2EB: call dword ptr [edx] */ 4534 RECOMP_FLAGS_IN(); 4535 L_4705B2ED: 4536 ecx = MEM32(esp + 0x4); /* 0x4705B2ED: mov ecx, dword ptr [esp + 4] */ 4537 MEM32(FS_BASE + (0)) = ecx; /* 0x4705B2F1: mov dword ptr fs:[0], ecx */ 4538 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4539 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4540 esp = esp + 0x10u; /* 0x4705B2F8: add esp, 0x10 */ 4541 _flag_k = FK_ADD; 4542 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705B2FB: ret */ 4543 RECOMP_REGS_OUT(); 4544 } 4545 4546 void sub_4705B300(void) { 4547 int _fpu_cmp = 0; 4548 uint32_t _cf = 0; 4549 int _df = 1; 4550 uint32_t _flag_k = FK_NONE; 4551 uint32_t _flag_a = 0, _flag_b = 0; 4552 uint32_t _itail_tgt = 0; 4553 RECOMP_REGS_LOCALS 4554 RECOMP_ENTER(0x4705B300u); 4555 4556 L_4705B300: 4557 PUSH32(esp, 0xFFFFFFFFu); /* 0x4705B300: push -1 */ 4558 PUSH32(esp, 0x470A77C8u); /* 0x4705B302: push 0x470a77c8 */ 4559 eax = MEM32(FS_BASE + (0)); /* 0x4705B307: mov eax, dword ptr fs:[0] */ 4560 PUSH32(esp, eax); /* 0x4705B30D: push eax */ 4561 MEM32(FS_BASE + (0)) = esp; /* 0x4705B30E: mov dword ptr fs:[0], esp */ 4562 PUSH32(esp, ecx); /* 0x4705B315: push ecx */ 4563 PUSH32(esp, ebx); /* 0x4705B316: push ebx */ 4564 PUSH32(esp, ebp); /* 0x4705B317: push ebp */ 4565 ebx = ecx; /* 0x4705B318: mov ebx, ecx */ 4566 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4567 ebp = 0; /* 0x4705B31A: xor ebp, ebp */ 4568 _cf = 0; 4569 _flag_k = FK_TEST; 4570 PUSH32(esp, esi); /* 0x4705B31C: push esi */ 4571 PUSH32(esp, edi); /* 0x4705B31D: push edi */ 4572 MEM32(esp + 0x10) = ebx; /* 0x4705B31E: mov dword ptr [esp + 0x10], ebx */ 4573 MEM32(ebx + 0x4) = ebp; /* 0x4705B322: mov dword ptr [ebx + 4], ebp */ 4574 MEM32(ebx + 0xC) = ebp; /* 0x4705B325: mov dword ptr [ebx + 0xc], ebp */ 4575 MEM32(ebx + 0x10) = ebp; /* 0x4705B328: mov dword ptr [ebx + 0x10], ebp */ 4576 MEM32(ebx) = 0x470ADD08u; /* 0x4705B32B: mov dword ptr [ebx], 0x470add08 */ 4577 esi = MEM32(esp + 0x24); /* 0x4705B331: mov esi, dword ptr [esp + 0x24] */ 4578 /* cmp esi, ebp */ /* 0x4705B335: cmp esi, ebp */ 4579 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp); 4580 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4581 _flag_k = FK_CMP; 4582 MEM32(esp + 0x1C) = ebp; /* 0x4705B337: mov dword ptr [esp + 0x1c], ebp */ 4583 if (CMP_EQ(_flag_a, _flag_b)) goto L_4705B37A; /* 0x4705B33B: je 0x4705b37a */ 4584 L_4705B33D: 4585 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4586 ecx = ecx | 0xFFFFFFFFu; /* 0x4705B33D: or ecx, 0xffffffff */ 4587 _cf = 0; 4588 _flag_k = FK_TEST; 4589 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4590 eax = 0; /* 0x4705B340: xor eax, eax */ 4591 _cf = 0; 4592 _flag_k = FK_TEST; 4593 edi = esi; /* 0x4705B342: mov edi, esi */ 4594 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; } /* 0x4705B344: repne scasb al, byte ptr es:[edi] */ 4595 ecx = ~ecx; /* 0x4705B346: not ecx */ 4596 PUSH32(esp, ecx); /* 0x4705B348: push ecx */ 4597 RECOMP_ICALL(0x470A33F2u); /* 0x4705B349: call 0x470a33f2 */ /* not lifted */ 4598 RECOMP_FLAGS_IN(); 4599 edx = eax; /* 0x4705B34E: mov edx, eax */ 4600 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4601 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4602 esp = esp + 4; /* 0x4705B350: add esp, 4 */ 4603 _flag_k = FK_ADD; 4604 /* cmp edx, ebp */ /* 0x4705B353: cmp edx, ebp */ 4605 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebp); 4606 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4607 _flag_k = FK_CMP; 4608 if (CMP_EQ(_flag_a, _flag_b)) goto L_4705B37A; /* 0x4705B355: je 0x4705b37a */ 4609 L_4705B357: 4610 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4611 ecx = ecx | 0xFFFFFFFFu; /* 0x4705B357: or ecx, 0xffffffff */ 4612 _cf = 0; 4613 _flag_k = FK_TEST; 4614 edi = esi; /* 0x4705B35A: mov edi, esi */ 4615 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4616 eax = 0; /* 0x4705B35C: xor eax, eax */ 4617 _cf = 0; 4618 _flag_k = FK_TEST; 4619 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; } /* 0x4705B35E: repne scasb al, byte ptr es:[edi] */ 4620 ecx = ~ecx; /* 0x4705B360: not ecx */ 4621 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 4622 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4623 edi = edi - ecx; /* 0x4705B362: sub edi, ecx */ 4624 _flag_k = FK_CMP; 4625 ebp = ecx; /* 0x4705B364: mov ebp, ecx */ 4626 esi = edi; /* 0x4705B366: mov esi, edi */ 4627 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4705B368: shr ecx, 2 */ 4628 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4629 ecx = ecx >> 2u; /* 0x4705B368: shr ecx, 2 */ 4630 edi = edx; /* 0x4705B36B: mov edi, edx */ 4631 eax = edi; /* 0x4705B36D: mov eax, edi */ 4632 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4705B36F: 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; } 4633 ecx = ebp; /* 0x4705B371: mov ecx, ebp */ 4634 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 4635 ecx = ecx & 3; /* 0x4705B373: and ecx, 3 */ 4636 _cf = 0; 4637 _flag_k = FK_TEST; 4638 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4705B376: 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; } 4639 goto L_4705B37C; /* 0x4705B378: jmp 0x4705b37c */ 4640 L_4705B37A: 4641 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4642 eax = 0; /* 0x4705B37A: xor eax, eax */ 4643 _cf = 0; 4644 _flag_k = FK_TEST; 4645 L_4705B37C: 4646 ecx = MEM32(esp + 0x14); /* 0x4705B37C: mov ecx, dword ptr [esp + 0x14] */ 4647 edi = POP32_VAL(esp); /* 0x4705B380: pop edi */ 4648 esi = POP32_VAL(esp); /* 0x4705B381: pop esi */ 4649 MEM32(ebx + 0x14) = eax; /* 0x4705B382: mov dword ptr [ebx + 0x14], eax */ 4650 MEM32(ebx) = 0x470ADD34u; /* 0x4705B385: mov dword ptr [ebx], 0x470add34 */ 4651 MEM32(ebx + 0x8) = 1; /* 0x4705B38B: mov dword ptr [ebx + 8], 1 */ 4652 ebp = POP32_VAL(esp); /* 0x4705B392: pop ebp */ 4653 eax = ebx; /* 0x4705B393: mov eax, ebx */ 4654 ebx = POP32_VAL(esp); /* 0x4705B395: pop ebx */ 4655 MEM32(FS_BASE + (0)) = ecx; /* 0x4705B396: mov dword ptr fs:[0], ecx */ 4656 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4657 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4658 esp = esp + 0x10u; /* 0x4705B39D: add esp, 0x10 */ 4659 _flag_k = FK_ADD; 4660 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4705B3A0: ret 4 */ 4661 RECOMP_REGS_OUT(); 4662 } 4663 4664 void sub_4705B3B0(void) { 4665 int _fpu_cmp = 0; 4666 uint32_t _cf = 0; 4667 int _df = 1; 4668 uint32_t _flag_k = FK_NONE; 4669 uint32_t _flag_a = 0, _flag_b = 0; 4670 uint32_t _itail_tgt = 0; 4671 RECOMP_REGS_LOCALS 4672 RECOMP_ENTER(0x4705B3B0u); 4673 4674 L_4705B3B0: 4675 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4676 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4677 esp = esp - 0xCu; /* 0x4705B3B0: sub esp, 0xc */ 4678 _flag_k = FK_CMP; 4679 PUSH32(esp, ebx); /* 0x4705B3B3: push ebx */ 4680 PUSH32(esp, ebp); /* 0x4705B3B4: push ebp */ 4681 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4682 eax = 0; /* 0x4705B3B5: xor eax, eax */ 4683 _cf = 0; 4684 _flag_k = FK_TEST; 4685 PUSH32(esp, esi); /* 0x4705B3B7: push esi */ 4686 ebx = ecx; /* 0x4705B3B8: mov ebx, ecx */ 4687 PUSH32(esp, edi); /* 0x4705B3BA: push edi */ 4688 MEM32(esp + 0x10) = eax; /* 0x4705B3BB: mov dword ptr [esp + 0x10], eax */ 4689 MEM32(ebx + 0x10) = eax; /* 0x4705B3BF: mov dword ptr [ebx + 0x10], eax */ 4690 RECOMP_ICALL(0x47074640u); /* 0x4705B3C2: call 0x47074640 */ /* not lifted */ 4691 RECOMP_FLAGS_IN(); 4692 eax = MEM32(eax); /* 0x4705B3C7: mov eax, dword ptr [eax] */ 4693 ecx = MEM32(ebx + 0x14); /* 0x4705B3C9: mov ecx, dword ptr [ebx + 0x14] */ 4694 ebp = MEM32(eax); /* 0x4705B3CC: mov ebp, dword ptr [eax] */ 4695 MEM32(esp + 0x14) = ecx; /* 0x4705B3CE: mov dword ptr [esp + 0x14], ecx */ 4696 MEM32(esp + 0x18) = eax; /* 0x4705B3D2: mov dword ptr [esp + 0x18], eax */ 4697 L_4705B3D6: 4698 /* cmp ebp, eax */ /* 0x4705B3D6: cmp ebp, eax */ 4699 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(eax); 4700 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4701 _flag_k = FK_CMP; 4702 if (CMP_EQ(_flag_a, _flag_b)) goto L_4705B420; /* 0x4705B3D8: je 0x4705b420 */ 4703 L_4705B3DA: 4704 edi = MEM32(ebp + 0x4); /* 0x4705B3DA: mov edi, dword ptr [ebp + 4] */ 4705 esi = MEM32(esp + 0x14); /* 0x4705B3DD: mov esi, dword ptr [esp + 0x14] */ 4706 eax = MEM32(edi); /* 0x4705B3E1: mov eax, dword ptr [edi] */ 4707 L_4705B3E3: 4708 SET_LO8(edx, MEM8(eax)); /* 0x4705B3E3: mov dl, byte ptr [eax] */ 4709 SET_LO8(ecx, LO8(edx)); /* 0x4705B3E5: mov cl, dl */ 4710 /* cmp LO8(edx), MEM8(esi) */ /* 0x4705B3E7: cmp dl, byte ptr [esi] */ 4711 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(MEM8(esi)) << 24; 4712 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4713 _flag_k = FK_NARROW(FK_CMP, 24); 4714 if (CMP_NE(_flag_a, _flag_b)) goto L_4705B407; /* 0x4705B3E9: jne 0x4705b407 */ 4715 L_4705B3EB: 4716 /* test LO8(ecx), LO8(ecx) */ /* 0x4705B3EB: test cl, cl */ 4717 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 4718 _cf = 0; 4719 _flag_k = FK_NARROW(FK_TEST, 24); 4720 if (TEST_Z(_flag_a, _flag_b)) goto L_4705B403; /* 0x4705B3ED: je 0x4705b403 */ 4721 L_4705B3EF: 4722 SET_LO8(edx, MEM8(eax + 0x1)); /* 0x4705B3EF: mov dl, byte ptr [eax + 1] */ 4723 SET_LO8(ecx, LO8(edx)); /* 0x4705B3F2: mov cl, dl */ 4724 /* cmp LO8(edx), MEM8(esi + 0x1) */ /* 0x4705B3F4: cmp dl, byte ptr [esi + 1] */ 4725 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(MEM8(esi + 0x1)) << 24; 4726 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4727 _flag_k = FK_NARROW(FK_CMP, 24); 4728 if (CMP_NE(_flag_a, _flag_b)) goto L_4705B407; /* 0x4705B3F7: jne 0x4705b407 */ 4729 L_4705B3F9: 4730 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 4731 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4732 eax = eax + 2; /* 0x4705B3F9: add eax, 2 */ 4733 _flag_k = FK_ADD; 4734 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 4735 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4736 esi = esi + 2; /* 0x4705B3FC: add esi, 2 */ 4737 _flag_k = FK_ADD; 4738 /* test LO8(ecx), LO8(ecx) */ /* 0x4705B3FF: test cl, cl */ 4739 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 4740 _cf = 0; 4741 _flag_k = FK_NARROW(FK_TEST, 24); 4742 RECOMP_BACKEDGE(); 4743 if (TEST_NZ(_flag_a, _flag_b)) goto L_4705B3E3; /* 0x4705B401: jne 0x4705b3e3 */ 4744 L_4705B403: 4745 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4746 eax = 0; /* 0x4705B403: xor eax, eax */ 4747 _cf = 0; 4748 _flag_k = FK_TEST; 4749 goto L_4705B40C; /* 0x4705B405: jmp 0x4705b40c */ 4750 L_4705B407: 4751 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x4705B407: sbb eax, eax */ 4752 eax = _sc ? 0xFFFFFFFFu : 0; 4753 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 4754 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 4755 { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x4705B409: sbb eax, -1 */ 4756 eax = _sa - _sb - _sc; 4757 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 4758 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 4759 L_4705B40C: 4760 /* test eax, eax */ /* 0x4705B40C: test eax, eax */ 4761 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4762 _cf = 0; 4763 _flag_k = FK_TEST; 4764 if (TEST_NZ(_flag_a, _flag_b)) goto L_4705B417; /* 0x4705B40E: jne 0x4705b417 */ 4765 L_4705B410: 4766 eax = MEM32(edi + 0x8); /* 0x4705B410: mov eax, dword ptr [edi + 8] */ 4767 MEM32(esp + 0x10) = eax; /* 0x4705B413: mov dword ptr [esp + 0x10], eax */ 4768 L_4705B417: 4769 ebp = MEM32(ebp); /* 0x4705B417: mov ebp, dword ptr [ebp] */ 4770 eax = MEM32(esp + 0x18); /* 0x4705B41A: mov eax, dword ptr [esp + 0x18] */ 4771 RECOMP_BACKEDGE(); 4772 goto L_4705B3D6; /* 0x4705B41E: jmp 0x4705b3d6 */ 4773 L_4705B420: 4774 eax = MEM32(esp + 0x10); /* 0x4705B420: mov eax, dword ptr [esp + 0x10] */ 4775 /* test eax, eax */ /* 0x4705B424: test eax, eax */ 4776 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4777 _cf = 0; 4778 _flag_k = FK_TEST; 4779 if (TEST_NZ(_flag_a, _flag_b)) goto L_4705B498; /* 0x4705B426: jne 0x4705b498 */ 4780 L_4705B428: 4781 edx = MEM32(0x4710F150); /* 0x4705B428: mov edx, dword ptr [0x4710f150] */ 4782 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4783 edx = edx + 1; /* 0x4705B42E: inc edx */ 4784 _flag_k = FK_INC; 4785 MEM32(0x4710F150) = edx; /* 0x4705B42F: mov dword ptr [0x4710f150], edx */ 4786 ecx = MEM32(ebx + 0x10); /* 0x4705B435: mov ecx, dword ptr [ebx + 0x10] */ 4787 /* test ecx, ecx */ /* 0x4705B438: test ecx, ecx */ 4788 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4789 _cf = 0; 4790 _flag_k = FK_TEST; 4791 if (TEST_NZ(_flag_a, _flag_b)) goto L_4705B498; /* 0x4705B43A: jne 0x4705b498 */ 4792 L_4705B43C: 4793 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4794 edx = edx + 1; /* 0x4705B43C: inc edx */ 4795 _flag_k = FK_INC; 4796 MEM32(0x4710F150) = edx; /* 0x4705B43D: mov dword ptr [0x4710f150], edx */ 4797 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4705B443: call dword ptr [0x470ac150] */ 4798 RECOMP_FLAGS_IN(); 4799 edi = eax; /* 0x4705B449: mov edi, eax */ 4800 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4705B44B: call dword ptr [0x470ac3c8] */ 4801 RECOMP_FLAGS_IN(); 4802 eax = MEM32(eax); /* 0x4705B451: mov eax, dword ptr [eax] */ 4803 /* test eax, eax */ /* 0x4705B453: test eax, eax */ 4804 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4805 _cf = 0; 4806 _flag_k = FK_TEST; 4807 if (TEST_Z(_flag_a, _flag_b)) goto L_4705B459; /* 0x4705B455: je 0x4705b459 */ 4808 L_4705B457: 4809 edi = eax; /* 0x4705B457: mov edi, eax */ 4810 L_4705B459: 4811 RECOMP_ICALL(0x47039020u); /* 0x4705B459: call 0x47039020 */ /* not lifted */ 4812 RECOMP_FLAGS_IN(); 4813 esi = eax; /* 0x4705B45E: mov esi, eax */ 4814 ecx = esi; /* 0x4705B460: mov ecx, esi */ 4815 RECOMP_ICALL(0x4703B210u); /* 0x4705B462: call 0x4703b210 */ /* not lifted */ 4816 RECOMP_FLAGS_IN(); 4817 PUSH32(esp, eax); /* 0x4705B467: push eax */ 4818 ecx = esi; /* 0x4705B468: mov ecx, esi */ 4819 RECOMP_ICALL(0x4703B240u); /* 0x4705B46A: call 0x4703b240 */ /* not lifted */ 4820 RECOMP_FLAGS_IN(); 4821 PUSH32(esp, eax); /* 0x4705B46F: push eax */ 4822 ecx = esi; /* 0x4705B470: mov ecx, esi */ 4823 RECOMP_ICALL(0x4703B080u); /* 0x4705B472: call 0x4703b080 */ /* not lifted */ 4824 RECOMP_FLAGS_IN(); 4825 PUSH32(esp, eax); /* 0x4705B477: push eax */ 4826 PUSH32(esp, edi); /* 0x4705B478: push edi */ 4827 PUSH32(esp, 0); /* 0x4705B479: push 0 */ 4828 PUSH32(esp, 0x2ACu); /* 0x4705B47B: push 0x2ac */ 4829 PUSH32(esp, 0x47109290u); /* 0x4705B480: push 0x47109290 */ 4830 ecx = esi; /* 0x4705B485: mov ecx, esi */ 4831 RECOMP_ICALL(0x4703A340u); /* 0x4705B487: call 0x4703a340 */ /* not lifted */ 4832 RECOMP_FLAGS_IN(); 4833 ecx = MEM32(esp + 0x14); /* 0x4705B48C: mov ecx, dword ptr [esp + 0x14] */ 4834 PUSH32(esp, ecx); /* 0x4705B490: push ecx */ 4835 PUSH32(esp, 0x47109400u); /* 0x4705B491: push 0x47109400 */ 4836 goto L_4705B501; /* 0x4705B496: jmp 0x4705b501 */ 4837 L_4705B498: 4838 edx = MEM32(esp + 0x20); /* 0x4705B498: mov edx, dword ptr [esp + 0x20] */ 4839 PUSH32(esp, edx); /* 0x4705B49C: push edx */ 4840 RECOMP_ICALL(eax); /* 0x4705B49D: call eax */ 4841 RECOMP_FLAGS_IN(); 4842 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4843 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4844 esp = esp + 4; /* 0x4705B49F: add esp, 4 */ 4845 _flag_k = FK_ADD; 4846 /* test eax, eax */ /* 0x4705B4A2: test eax, eax */ 4847 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4848 _cf = 0; 4849 _flag_k = FK_TEST; 4850 MEM32(ebx + 0x10) = eax; /* 0x4705B4A4: mov dword ptr [ebx + 0x10], eax */ 4851 if (TEST_NZ(_flag_a, _flag_b)) goto L_4705B511; /* 0x4705B4A7: jne 0x4705b511 */ 4852 L_4705B4A9: 4853 _flag_a = (uint32_t)(MEM32(0x4710F150)); _flag_b = (uint32_t)(1); 4854 MEM32(0x4710F150) = MEM32(0x4710F150) + 1; /* 0x4705B4A9: inc dword ptr [0x4710f150] */ 4855 _flag_k = FK_INC; 4856 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4705B4AF: call dword ptr [0x470ac150] */ 4857 RECOMP_FLAGS_IN(); 4858 edi = eax; /* 0x4705B4B5: mov edi, eax */ 4859 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4705B4B7: call dword ptr [0x470ac3c8] */ 4860 RECOMP_FLAGS_IN(); 4861 eax = MEM32(eax); /* 0x4705B4BD: mov eax, dword ptr [eax] */ 4862 /* test eax, eax */ /* 0x4705B4BF: test eax, eax */ 4863 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4864 _cf = 0; 4865 _flag_k = FK_TEST; 4866 if (TEST_Z(_flag_a, _flag_b)) goto L_4705B4C5; /* 0x4705B4C1: je 0x4705b4c5 */ 4867 L_4705B4C3: 4868 edi = eax; /* 0x4705B4C3: mov edi, eax */ 4869 L_4705B4C5: 4870 RECOMP_ICALL(0x47039020u); /* 0x4705B4C5: call 0x47039020 */ /* not lifted */ 4871 RECOMP_FLAGS_IN(); 4872 esi = eax; /* 0x4705B4CA: mov esi, eax */ 4873 ecx = esi; /* 0x4705B4CC: mov ecx, esi */ 4874 RECOMP_ICALL(0x4703B210u); /* 0x4705B4CE: call 0x4703b210 */ /* not lifted */ 4875 RECOMP_FLAGS_IN(); 4876 PUSH32(esp, eax); /* 0x4705B4D3: push eax */ 4877 ecx = esi; /* 0x4705B4D4: mov ecx, esi */ 4878 RECOMP_ICALL(0x4703B240u); /* 0x4705B4D6: call 0x4703b240 */ /* not lifted */ 4879 RECOMP_FLAGS_IN(); 4880 PUSH32(esp, eax); /* 0x4705B4DB: push eax */ 4881 ecx = esi; /* 0x4705B4DC: mov ecx, esi */ 4882 RECOMP_ICALL(0x4703B080u); /* 0x4705B4DE: call 0x4703b080 */ /* not lifted */ 4883 RECOMP_FLAGS_IN(); 4884 PUSH32(esp, eax); /* 0x4705B4E3: push eax */ 4885 PUSH32(esp, edi); /* 0x4705B4E4: push edi */ 4886 PUSH32(esp, 0); /* 0x4705B4E5: push 0 */ 4887 PUSH32(esp, 0x2B9u); /* 0x4705B4E7: push 0x2b9 */ 4888 PUSH32(esp, 0x47109290u); /* 0x4705B4EC: push 0x47109290 */ 4889 ecx = esi; /* 0x4705B4F1: mov ecx, esi */ 4890 RECOMP_ICALL(0x4703A340u); /* 0x4705B4F3: call 0x4703a340 */ /* not lifted */ 4891 RECOMP_FLAGS_IN(); 4892 eax = MEM32(ebx + 0x14); /* 0x4705B4F8: mov eax, dword ptr [ebx + 0x14] */ 4893 PUSH32(esp, eax); /* 0x4705B4FB: push eax */ 4894 PUSH32(esp, 0x471055F0u); /* 0x4705B4FC: push 0x471055f0 */ 4895 L_4705B501: 4896 PUSH32(esp, 0x80u); /* 0x4705B501: push 0x80 */ 4897 PUSH32(esp, esi); /* 0x4705B506: push esi */ 4898 RECOMP_ICALL(0x47039830u); /* 0x4705B507: call 0x47039830 */ /* not lifted */ 4899 RECOMP_FLAGS_IN(); 4900 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4901 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4902 esp = esp + 0x10u; /* 0x4705B50C: add esp, 0x10 */ 4903 _flag_k = FK_ADD; 4904 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4905 eax = 0; /* 0x4705B50F: xor eax, eax */ 4906 _cf = 0; 4907 _flag_k = FK_TEST; 4908 L_4705B511: 4909 edi = POP32_VAL(esp); /* 0x4705B511: pop edi */ 4910 esi = POP32_VAL(esp); /* 0x4705B512: pop esi */ 4911 ebp = POP32_VAL(esp); /* 0x4705B513: pop ebp */ 4912 ebx = POP32_VAL(esp); /* 0x4705B514: pop ebx */ 4913 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4914 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4915 esp = esp + 0xCu; /* 0x4705B515: add esp, 0xc */ 4916 _flag_k = FK_ADD; 4917 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4705B518: ret 4 */ 4918 RECOMP_REGS_OUT(); 4919 } 4920 4921 void sub_4705B520(void) { 4922 int _fpu_cmp = 0; 4923 uint32_t _cf = 0; 4924 int _df = 1; 4925 uint32_t _flag_k = FK_NONE; 4926 uint32_t _flag_a = 0, _flag_b = 0; 4927 uint32_t _itail_tgt = 0; 4928 RECOMP_REGS_LOCALS 4929 RECOMP_ENTER(0x4705B520u); 4930 4931 L_4705B520: 4932 PUSH32(esp, esi); /* 0x4705B520: push esi */ 4933 esi = ecx; /* 0x4705B521: mov esi, ecx */ 4934 eax = MEM32(esi + 0x14); /* 0x4705B523: mov eax, dword ptr [esi + 0x14] */ 4935 PUSH32(esp, eax); /* 0x4705B526: push eax */ 4936 MEM32(esi) = 0x470ADD34u; /* 0x4705B527: mov dword ptr [esi], 0x470add34 */ 4937 RECOMP_ICALL(0x470A32A2u); /* 0x4705B52D: call 0x470a32a2 */ /* not lifted */ 4938 RECOMP_FLAGS_IN(); 4939 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4940 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4941 esp = esp + 4; /* 0x4705B532: add esp, 4 */ 4942 _flag_k = FK_ADD; 4943 MEM32(esi) = 0x470ADD08u; /* 0x4705B535: mov dword ptr [esi], 0x470add08 */ 4944 esi = POP32_VAL(esp); /* 0x4705B53B: pop esi */ 4945 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705B53C: ret */ 4946 RECOMP_REGS_OUT(); 4947 } 4948 4949 void sub_4705B540(void) { 4950 int _fpu_cmp = 0; 4951 uint32_t _cf = 0; 4952 int _df = 1; 4953 uint32_t _flag_k = FK_NONE; 4954 uint32_t _flag_a = 0, _flag_b = 0; 4955 uint32_t _itail_tgt = 0; 4956 RECOMP_REGS_LOCALS 4957 RECOMP_ENTER(0x4705B540u); 4958 4959 L_4705B540: 4960 ecx = 0x4710EA29u; /* 0x4705B540: mov ecx, 0x4710ea29 */ 4961 RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x4705B545: call dword ptr [0x470ac1c8] */ 4962 RECOMP_FLAGS_IN(); 4963 PUSH32(esp, 0x4705B560u); /* 0x4705B54B: push 0x4705b560 */ 4964 RECOMP_ICALL(0x470A32D9u); /* 0x4705B550: call 0x470a32d9 */ /* not lifted */ 4965 RECOMP_FLAGS_IN(); 4966 ecx = POP32_VAL(esp); /* 0x4705B555: pop ecx */ 4967 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705B556: ret */ 4968 RECOMP_REGS_OUT(); 4969 } 4970 4971 void sub_4705B560(void) { 4972 int _fpu_cmp = 0; 4973 uint32_t _cf = 0; 4974 int _df = 1; 4975 uint32_t _flag_k = FK_NONE; 4976 uint32_t _flag_a = 0, _flag_b = 0; 4977 uint32_t _itail_tgt = 0; 4978 RECOMP_REGS_LOCALS 4979 RECOMP_ENTER(0x4705B560u); 4980 4981 L_4705B560: 4982 ecx = 0x4710EA29u; /* 0x4705B560: mov ecx, 0x4710ea29 */ 4983 L_4705B565: 4984 { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; } 4985 { RECOMP_REGS_OUT(); return; } /* end of function */ 4986 _ljump: 4987 switch (_itail_tgt) { 4988 case 0x4705B560u: goto L_4705B560; 4989 case 0x4705B565u: goto L_4705B565; 4990 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4991 } 4992 RECOMP_REGS_OUT(); 4993 } 4994 4995 void sub_4705B570(void) { 4996 int _fpu_cmp = 0; 4997 uint32_t _cf = 0; 4998 int _df = 1; 4999 uint32_t _flag_k = FK_NONE; 5000 uint32_t _flag_a = 0, _flag_b = 0; 5001 uint32_t _itail_tgt = 0; 5002 RECOMP_REGS_LOCALS 5003 RECOMP_ENTER(0x4705B570u); 5004 5005 L_4705B570: 5006 ecx = 0x4710EA28u; /* 0x4705B570: mov ecx, 0x4710ea28 */ 5007 RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x4705B575: call dword ptr [0x470ac1c4] */ 5008 RECOMP_FLAGS_IN(); 5009 PUSH32(esp, 0x4705B590u); /* 0x4705B57B: push 0x4705b590 */ 5010 RECOMP_ICALL(0x470A32D9u); /* 0x4705B580: call 0x470a32d9 */ /* not lifted */ 5011 RECOMP_FLAGS_IN(); 5012 ecx = POP32_VAL(esp); /* 0x4705B585: pop ecx */ 5013 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705B586: ret */ 5014 RECOMP_REGS_OUT(); 5015 } 5016 5017 void sub_4705B590(void) { 5018 int _fpu_cmp = 0; 5019 uint32_t _cf = 0; 5020 int _df = 1; 5021 uint32_t _flag_k = FK_NONE; 5022 uint32_t _flag_a = 0, _flag_b = 0; 5023 uint32_t _itail_tgt = 0; 5024 RECOMP_REGS_LOCALS 5025 RECOMP_ENTER(0x4705B590u); 5026 5027 L_4705B590: 5028 ecx = 0x4710EA28u; /* 0x4705B590: mov ecx, 0x4710ea28 */ 5029 L_4705B595: 5030 { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; } 5031 { RECOMP_REGS_OUT(); return; } /* end of function */ 5032 _ljump: 5033 switch (_itail_tgt) { 5034 case 0x4705B590u: goto L_4705B590; 5035 case 0x4705B595u: goto L_4705B595; 5036 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5037 } 5038 RECOMP_REGS_OUT(); 5039 } 5040 5041 void sub_4705B5A0(void) { 5042 int _fpu_cmp = 0; 5043 uint32_t _cf = 0; 5044 int _df = 1; 5045 uint32_t _flag_k = FK_NONE; 5046 uint32_t _flag_a = 0, _flag_b = 0; 5047 uint32_t _itail_tgt = 0; 5048 RECOMP_REGS_LOCALS 5049 RECOMP_ENTER(0x4705B5A0u); 5050 5051 L_4705B5A0: 5052 MEM32(0x4710EA20) = 0x47104A3Cu; /* 0x4705B5A0: mov dword ptr [0x4710ea20], 0x47104a3c */ 5053 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705B5AA: ret */ 5054 RECOMP_REGS_OUT(); 5055 } 5056 5057 void sub_4705B5B0(void) { 5058 int _fpu_cmp = 0; 5059 uint32_t _cf = 0; 5060 int _df = 1; 5061 uint32_t _flag_k = FK_NONE; 5062 uint32_t _flag_a = 0, _flag_b = 0; 5063 uint32_t _itail_tgt = 0; 5064 RECOMP_REGS_LOCALS 5065 RECOMP_ENTER(0x4705B5B0u); 5066 5067 L_4705B5B0: 5068 MEM32(0x4710EA34) = 0x47104A00u; /* 0x4705B5B0: mov dword ptr [0x4710ea34], 0x47104a00 */ 5069 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705B5BA: ret */ 5070 RECOMP_REGS_OUT(); 5071 } 5072 5073 void sub_4705B5C0(void) { 5074 int _fpu_cmp = 0; 5075 uint32_t _cf = 0; 5076 int _df = 1; 5077 uint32_t _flag_k = FK_NONE; 5078 uint32_t _flag_a = 0, _flag_b = 0; 5079 uint32_t _itail_tgt = 0; 5080 RECOMP_REGS_LOCALS 5081 RECOMP_ENTER(0x4705B5C0u); 5082 5083 L_4705B5C0: 5084 MEM32(0x4710EA30) = 0x47104A70u; /* 0x4705B5C0: mov dword ptr [0x4710ea30], 0x47104a70 */ 5085 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705B5CA: ret */ 5086 RECOMP_REGS_OUT(); 5087 } 5088 5089 void sub_4705B5D0(void) { 5090 int _fpu_cmp = 0; 5091 uint32_t _cf = 0; 5092 int _df = 1; 5093 uint32_t _flag_k = FK_NONE; 5094 uint32_t _flag_a = 0, _flag_b = 0; 5095 uint32_t _itail_tgt = 0; 5096 RECOMP_REGS_LOCALS 5097 RECOMP_ENTER(0x4705B5D0u); 5098 5099 L_4705B5D0: 5100 MEM32(0x4710EA3C) = 0x47104B6Cu; /* 0x4705B5D0: mov dword ptr [0x4710ea3c], 0x47104b6c */ 5101 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705B5DA: ret */ 5102 RECOMP_REGS_OUT(); 5103 } 5104 5105 void sub_4705B5E0(void) { 5106 int _fpu_cmp = 0; 5107 uint32_t _cf = 0; 5108 int _df = 1; 5109 uint32_t _flag_k = FK_NONE; 5110 uint32_t _flag_a = 0, _flag_b = 0; 5111 uint32_t _itail_tgt = 0; 5112 RECOMP_REGS_LOCALS 5113 RECOMP_ENTER(0x4705B5E0u); 5114 5115 L_4705B5E0: 5116 MEM32(0x4710EA24) = 0x47104BA0u; /* 0x4705B5E0: mov dword ptr [0x4710ea24], 0x47104ba0 */ 5117 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705B5EA: ret */ 5118 RECOMP_REGS_OUT(); 5119 } 5120 5121 void sub_4705B5F0(void) { 5122 int _fpu_cmp = 0; 5123 uint32_t _cf = 0; 5124 int _df = 1; 5125 uint32_t _flag_k = FK_NONE; 5126 uint32_t _flag_a = 0, _flag_b = 0; 5127 uint32_t _itail_tgt = 0; 5128 RECOMP_REGS_LOCALS 5129 RECOMP_ENTER(0x4705B5F0u); 5130 5131 L_4705B5F0: 5132 MEM32(0x4710EA38) = 0x47104BD4u; /* 0x4705B5F0: mov dword ptr [0x4710ea38], 0x47104bd4 */ 5133 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705B5FA: ret */ 5134 RECOMP_REGS_OUT(); 5135 } 5136 5137 void sub_4705B600(void) { 5138 int _fpu_cmp = 0; 5139 uint32_t _cf = 0; 5140 int _df = 1; 5141 uint32_t _flag_k = FK_NONE; 5142 uint32_t _flag_a = 0, _flag_b = 0; 5143 uint32_t _itail_tgt = 0; 5144 RECOMP_REGS_LOCALS 5145 RECOMP_ENTER(0x4705B600u); 5146 5147 L_4705B600: 5148 MEM32(0x4710EA2C) = 0x47109430u; /* 0x4705B600: mov dword ptr [0x4710ea2c], 0x47109430 */ 5149 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705B60A: ret */ 5150 RECOMP_REGS_OUT(); 5151 } 5152 5153 void sub_4705B610(void) { 5154 int _fpu_cmp = 0; 5155 uint32_t _cf = 0; 5156 int _df = 1; 5157 uint32_t _flag_k = FK_NONE; 5158 uint32_t _flag_a = 0, _flag_b = 0; 5159 uint32_t _itail_tgt = 0; 5160 RECOMP_REGS_LOCALS 5161 RECOMP_ENTER(0x4705B610u); 5162 5163 L_4705B610: 5164 PUSH32(esp, ecx); /* 0x4705B610: push ecx */ 5165 PUSH32(esp, ebx); /* 0x4705B611: push ebx */ 5166 PUSH32(esp, ebp); /* 0x4705B612: push ebp */ 5167 PUSH32(esp, esi); /* 0x4705B613: push esi */ 5168 PUSH32(esp, edi); /* 0x4705B614: push edi */ 5169 edi = MEM32(0x470AC150); /* 0x4705B615: mov edi, dword ptr [0x470ac150] */ 5170 ebp = ecx; /* 0x4705B61B: mov ebp, ecx */ 5171 RECOMP_ICALL(edi); /* 0x4705B61D: call edi */ 5172 RECOMP_FLAGS_IN(); 5173 ebx = MEM32(0x470AC3C8); /* 0x4705B61F: mov ebx, dword ptr [0x470ac3c8] */ 5174 esi = eax; /* 0x4705B625: mov esi, eax */ 5175 RECOMP_ICALL(ebx); /* 0x4705B627: call ebx */ 5176 RECOMP_FLAGS_IN(); 5177 eax = MEM32(eax); /* 0x4705B629: mov eax, dword ptr [eax] */ 5178 /* test eax, eax */ /* 0x4705B62B: test eax, eax */ 5179 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5180 _cf = 0; 5181 _flag_k = FK_TEST; 5182 MEM32(esp + 0x10) = esi; /* 0x4705B62D: mov dword ptr [esp + 0x10], esi */ 5183 if (TEST_Z(_flag_a, _flag_b)) goto L_4705B637; /* 0x4705B631: je 0x4705b637 */ 5184 L_4705B633: 5185 MEM32(esp + 0x10) = eax; /* 0x4705B633: mov dword ptr [esp + 0x10], eax */ 5186 L_4705B637: 5187 RECOMP_ICALL(0x47039020u); /* 0x4705B637: call 0x47039020 */ /* not lifted */ 5188 RECOMP_FLAGS_IN(); 5189 esi = eax; /* 0x4705B63C: mov esi, eax */ 5190 ecx = esi; /* 0x4705B63E: mov ecx, esi */ 5191 RECOMP_ICALL(0x4703B210u); /* 0x4705B640: call 0x4703b210 */ /* not lifted */ 5192 RECOMP_FLAGS_IN(); 5193 PUSH32(esp, eax); /* 0x4705B645: push eax */ 5194 ecx = esi; /* 0x4705B646: mov ecx, esi */ 5195 RECOMP_ICALL(0x4703B240u); /* 0x4705B648: call 0x4703b240 */ /* not lifted */ 5196 RECOMP_FLAGS_IN(); 5197 PUSH32(esp, eax); /* 0x4705B64D: push eax */ 5198 ecx = esi; /* 0x4705B64E: mov ecx, esi */ 5199 RECOMP_ICALL(0x4703B080u); /* 0x4705B650: call 0x4703b080 */ /* not lifted */ 5200 RECOMP_FLAGS_IN(); 5201 PUSH32(esp, eax); /* 0x4705B655: push eax */ 5202 eax = MEM32(esp + 0x1C); /* 0x4705B656: mov eax, dword ptr [esp + 0x1c] */ 5203 PUSH32(esp, eax); /* 0x4705B65A: push eax */ 5204 PUSH32(esp, 0); /* 0x4705B65B: push 0 */ 5205 PUSH32(esp, 0x12u); /* 0x4705B65D: push 0x12 */ 5206 PUSH32(esp, 0x47109488u); /* 0x4705B65F: push 0x47109488 */ 5207 ecx = esi; /* 0x4705B664: mov ecx, esi */ 5208 RECOMP_ICALL(0x4703A340u); /* 0x4705B666: call 0x4703a340 */ /* not lifted */ 5209 RECOMP_FLAGS_IN(); 5210 PUSH32(esp, ebp); /* 0x4705B66B: push ebp */ 5211 PUSH32(esp, 0x471052CCu); /* 0x4705B66C: push 0x471052cc */ 5212 PUSH32(esp, 4); /* 0x4705B671: push 4 */ 5213 PUSH32(esp, esi); /* 0x4705B673: push esi */ 5214 RECOMP_ICALL(0x47039830u); /* 0x4705B674: call 0x47039830 */ /* not lifted */ 5215 RECOMP_FLAGS_IN(); 5216 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5217 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5218 esp = esp + 0x10u; /* 0x4705B679: add esp, 0x10 */ 5219 _flag_k = FK_ADD; 5220 RECOMP_ICALL(edi); /* 0x4705B67C: call edi */ 5221 RECOMP_FLAGS_IN(); 5222 esi = eax; /* 0x4705B67E: mov esi, eax */ 5223 RECOMP_ICALL(ebx); /* 0x4705B680: call ebx */ 5224 RECOMP_FLAGS_IN(); 5225 eax = MEM32(eax); /* 0x4705B682: mov eax, dword ptr [eax] */ 5226 /* test eax, eax */ /* 0x4705B684: test eax, eax */ 5227 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5228 _cf = 0; 5229 _flag_k = FK_TEST; 5230 MEM32(esp + 0x10) = esi; /* 0x4705B686: mov dword ptr [esp + 0x10], esi */ 5231 if (TEST_Z(_flag_a, _flag_b)) goto L_4705B690; /* 0x4705B68A: je 0x4705b690 */ 5232 L_4705B68C: 5233 MEM32(esp + 0x10) = eax; /* 0x4705B68C: mov dword ptr [esp + 0x10], eax */ 5234 L_4705B690: 5235 RECOMP_ICALL(0x47039020u); /* 0x4705B690: call 0x47039020 */ /* not lifted */ 5236 RECOMP_FLAGS_IN(); 5237 esi = eax; /* 0x4705B695: mov esi, eax */ 5238 ecx = esi; /* 0x4705B697: mov ecx, esi */ 5239 RECOMP_ICALL(0x4703B210u); /* 0x4705B699: call 0x4703b210 */ /* not lifted */ 5240 RECOMP_FLAGS_IN(); 5241 PUSH32(esp, eax); /* 0x4705B69E: push eax */ 5242 ecx = esi; /* 0x4705B69F: mov ecx, esi */ 5243 RECOMP_ICALL(0x4703B240u); /* 0x4705B6A1: call 0x4703b240 */ /* not lifted */ 5244 RECOMP_FLAGS_IN(); 5245 PUSH32(esp, eax); /* 0x4705B6A6: push eax */ 5246 ecx = esi; /* 0x4705B6A7: mov ecx, esi */ 5247 RECOMP_ICALL(0x4703B080u); /* 0x4705B6A9: call 0x4703b080 */ /* not lifted */ 5248 RECOMP_FLAGS_IN(); 5249 ecx = MEM32(esp + 0x18); /* 0x4705B6AE: mov ecx, dword ptr [esp + 0x18] */ 5250 PUSH32(esp, eax); /* 0x4705B6B2: push eax */ 5251 PUSH32(esp, ecx); /* 0x4705B6B3: push ecx */ 5252 PUSH32(esp, 0); /* 0x4705B6B4: push 0 */ 5253 PUSH32(esp, 0x13u); /* 0x4705B6B6: push 0x13 */ 5254 PUSH32(esp, 0x47109488u); /* 0x4705B6B8: push 0x47109488 */ 5255 ecx = esi; /* 0x4705B6BD: mov ecx, esi */ 5256 RECOMP_ICALL(0x4703A340u); /* 0x4705B6BF: call 0x4703a340 */ /* not lifted */ 5257 RECOMP_FLAGS_IN(); 5258 edx = MEM32(ebp); /* 0x4705B6C4: mov edx, dword ptr [ebp] */ 5259 PUSH32(esp, edx); /* 0x4705B6C7: push edx */ 5260 PUSH32(esp, 0x47109474u); /* 0x4705B6C8: push 0x47109474 */ 5261 PUSH32(esp, 4); /* 0x4705B6CD: push 4 */ 5262 PUSH32(esp, esi); /* 0x4705B6CF: push esi */ 5263 RECOMP_ICALL(0x47039830u); /* 0x4705B6D0: call 0x47039830 */ /* not lifted */ 5264 RECOMP_FLAGS_IN(); 5265 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5266 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5267 esp = esp + 0x10u; /* 0x4705B6D5: add esp, 0x10 */ 5268 _flag_k = FK_ADD; 5269 RECOMP_ICALL(edi); /* 0x4705B6D8: call edi */ 5270 RECOMP_FLAGS_IN(); 5271 esi = eax; /* 0x4705B6DA: mov esi, eax */ 5272 RECOMP_ICALL(ebx); /* 0x4705B6DC: call ebx */ 5273 RECOMP_FLAGS_IN(); 5274 eax = MEM32(eax); /* 0x4705B6DE: mov eax, dword ptr [eax] */ 5275 /* test eax, eax */ /* 0x4705B6E0: test eax, eax */ 5276 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5277 _cf = 0; 5278 _flag_k = FK_TEST; 5279 MEM32(esp + 0x10) = esi; /* 0x4705B6E2: mov dword ptr [esp + 0x10], esi */ 5280 if (TEST_Z(_flag_a, _flag_b)) goto L_4705B6EC; /* 0x4705B6E6: je 0x4705b6ec */ 5281 L_4705B6E8: 5282 MEM32(esp + 0x10) = eax; /* 0x4705B6E8: mov dword ptr [esp + 0x10], eax */ 5283 L_4705B6EC: 5284 RECOMP_ICALL(0x47039020u); /* 0x4705B6EC: call 0x47039020 */ /* not lifted */ 5285 RECOMP_FLAGS_IN(); 5286 esi = eax; /* 0x4705B6F1: mov esi, eax */ 5287 ecx = esi; /* 0x4705B6F3: mov ecx, esi */ 5288 RECOMP_ICALL(0x4703B210u); /* 0x4705B6F5: call 0x4703b210 */ /* not lifted */ 5289 RECOMP_FLAGS_IN(); 5290 PUSH32(esp, eax); /* 0x4705B6FA: push eax */ 5291 ecx = esi; /* 0x4705B6FB: mov ecx, esi */ 5292 RECOMP_ICALL(0x4703B240u); /* 0x4705B6FD: call 0x4703b240 */ /* not lifted */ 5293 RECOMP_FLAGS_IN(); 5294 PUSH32(esp, eax); /* 0x4705B702: push eax */ 5295 ecx = esi; /* 0x4705B703: mov ecx, esi */ 5296 RECOMP_ICALL(0x4703B080u); /* 0x4705B705: call 0x4703b080 */ /* not lifted */ 5297 RECOMP_FLAGS_IN(); 5298 PUSH32(esp, eax); /* 0x4705B70A: push eax */ 5299 eax = MEM32(esp + 0x1C); /* 0x4705B70B: mov eax, dword ptr [esp + 0x1c] */ 5300 PUSH32(esp, eax); /* 0x4705B70F: push eax */ 5301 PUSH32(esp, 0); /* 0x4705B710: push 0 */ 5302 PUSH32(esp, 0x14u); /* 0x4705B712: push 0x14 */ 5303 PUSH32(esp, 0x47109488u); /* 0x4705B714: push 0x47109488 */ 5304 ecx = esi; /* 0x4705B719: mov ecx, esi */ 5305 RECOMP_ICALL(0x4703A340u); /* 0x4705B71B: call 0x4703a340 */ /* not lifted */ 5306 RECOMP_FLAGS_IN(); 5307 ecx = MEM32(ebp + 0x4); /* 0x4705B720: mov ecx, dword ptr [ebp + 4] */ 5308 PUSH32(esp, ecx); /* 0x4705B723: push ecx */ 5309 PUSH32(esp, 0x47109460u); /* 0x4705B724: push 0x47109460 */ 5310 PUSH32(esp, 4); /* 0x4705B729: push 4 */ 5311 PUSH32(esp, esi); /* 0x4705B72B: push esi */ 5312 RECOMP_ICALL(0x47039830u); /* 0x4705B72C: call 0x47039830 */ /* not lifted */ 5313 RECOMP_FLAGS_IN(); 5314 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5315 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5316 esp = esp + 0x10u; /* 0x4705B731: add esp, 0x10 */ 5317 _flag_k = FK_ADD; 5318 RECOMP_ICALL(edi); /* 0x4705B734: call edi */ 5319 RECOMP_FLAGS_IN(); 5320 ebp = eax; /* 0x4705B736: mov ebp, eax */ 5321 RECOMP_ICALL(ebx); /* 0x4705B738: call ebx */ 5322 RECOMP_FLAGS_IN(); 5323 eax = MEM32(eax); /* 0x4705B73A: mov eax, dword ptr [eax] */ 5324 /* test eax, eax */ /* 0x4705B73C: test eax, eax */ 5325 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5326 _cf = 0; 5327 _flag_k = FK_TEST; 5328 if (TEST_Z(_flag_a, _flag_b)) goto L_4705B742; /* 0x4705B73E: je 0x4705b742 */ 5329 L_4705B740: 5330 ebp = eax; /* 0x4705B740: mov ebp, eax */ 5331 L_4705B742: 5332 RECOMP_ICALL(0x47039020u); /* 0x4705B742: call 0x47039020 */ /* not lifted */ 5333 RECOMP_FLAGS_IN(); 5334 esi = eax; /* 0x4705B747: mov esi, eax */ 5335 ecx = esi; /* 0x4705B749: mov ecx, esi */ 5336 RECOMP_ICALL(0x4703B210u); /* 0x4705B74B: call 0x4703b210 */ /* not lifted */ 5337 RECOMP_FLAGS_IN(); 5338 PUSH32(esp, eax); /* 0x4705B750: push eax */ 5339 ecx = esi; /* 0x4705B751: mov ecx, esi */ 5340 RECOMP_ICALL(0x4703B240u); /* 0x4705B753: call 0x4703b240 */ /* not lifted */ 5341 RECOMP_FLAGS_IN(); 5342 PUSH32(esp, eax); /* 0x4705B758: push eax */ 5343 ecx = esi; /* 0x4705B759: mov ecx, esi */ 5344 RECOMP_ICALL(0x4703B080u); /* 0x4705B75B: call 0x4703b080 */ /* not lifted */ 5345 RECOMP_FLAGS_IN(); 5346 PUSH32(esp, eax); /* 0x4705B760: push eax */ 5347 PUSH32(esp, ebp); /* 0x4705B761: push ebp */ 5348 PUSH32(esp, 0); /* 0x4705B762: push 0 */ 5349 PUSH32(esp, 0x15u); /* 0x4705B764: push 0x15 */ 5350 PUSH32(esp, 0x47109488u); /* 0x4705B766: push 0x47109488 */ 5351 ecx = esi; /* 0x4705B76B: mov ecx, esi */ 5352 RECOMP_ICALL(0x4703A340u); /* 0x4705B76D: call 0x4703a340 */ /* not lifted */ 5353 RECOMP_FLAGS_IN(); 5354 PUSH32(esp, 0x47105590u); /* 0x4705B772: push 0x47105590 */ 5355 PUSH32(esp, 4); /* 0x4705B777: push 4 */ 5356 PUSH32(esp, esi); /* 0x4705B779: push esi */ 5357 RECOMP_ICALL(0x47039830u); /* 0x4705B77A: call 0x47039830 */ /* not lifted */ 5358 RECOMP_FLAGS_IN(); 5359 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5360 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5361 esp = esp + 0xCu; /* 0x4705B77F: add esp, 0xc */ 5362 _flag_k = FK_ADD; 5363 RECOMP_ICALL(edi); /* 0x4705B782: call edi */ 5364 RECOMP_FLAGS_IN(); 5365 esi = eax; /* 0x4705B784: mov esi, eax */ 5366 RECOMP_ICALL(ebx); /* 0x4705B786: call ebx */ 5367 RECOMP_FLAGS_IN(); 5368 eax = MEM32(eax); /* 0x4705B788: mov eax, dword ptr [eax] */ 5369 /* test eax, eax */ /* 0x4705B78A: test eax, eax */ 5370 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5371 _cf = 0; 5372 _flag_k = FK_TEST; 5373 edi = esi; /* 0x4705B78C: mov edi, esi */ 5374 if (TEST_Z(_flag_a, _flag_b)) goto L_4705B792; /* 0x4705B78E: je 0x4705b792 */ 5375 L_4705B790: 5376 edi = eax; /* 0x4705B790: mov edi, eax */ 5377 L_4705B792: 5378 RECOMP_ICALL(0x47039020u); /* 0x4705B792: call 0x47039020 */ /* not lifted */ 5379 RECOMP_FLAGS_IN(); 5380 esi = eax; /* 0x4705B797: mov esi, eax */ 5381 ecx = esi; /* 0x4705B799: mov ecx, esi */ 5382 RECOMP_ICALL(0x4703B210u); /* 0x4705B79B: call 0x4703b210 */ /* not lifted */ 5383 RECOMP_FLAGS_IN(); 5384 PUSH32(esp, eax); /* 0x4705B7A0: push eax */ 5385 ecx = esi; /* 0x4705B7A1: mov ecx, esi */ 5386 RECOMP_ICALL(0x4703B240u); /* 0x4705B7A3: call 0x4703b240 */ /* not lifted */ 5387 RECOMP_FLAGS_IN(); 5388 PUSH32(esp, eax); /* 0x4705B7A8: push eax */ 5389 ecx = esi; /* 0x4705B7A9: mov ecx, esi */ 5390 RECOMP_ICALL(0x4703B080u); /* 0x4705B7AB: call 0x4703b080 */ /* not lifted */ 5391 RECOMP_FLAGS_IN(); 5392 PUSH32(esp, eax); /* 0x4705B7B0: push eax */ 5393 PUSH32(esp, edi); /* 0x4705B7B1: push edi */ 5394 PUSH32(esp, 0); /* 0x4705B7B2: push 0 */ 5395 PUSH32(esp, 0x16u); /* 0x4705B7B4: push 0x16 */ 5396 PUSH32(esp, 0x47109488u); /* 0x4705B7B6: push 0x47109488 */ 5397 ecx = esi; /* 0x4705B7BB: mov ecx, esi */ 5398 RECOMP_ICALL(0x4703A340u); /* 0x4705B7BD: call 0x4703a340 */ /* not lifted */ 5399 RECOMP_FLAGS_IN(); 5400 PUSH32(esp, 0x4710529Cu); /* 0x4705B7C2: push 0x4710529c */ 5401 PUSH32(esp, 4); /* 0x4705B7C7: push 4 */ 5402 PUSH32(esp, esi); /* 0x4705B7C9: push esi */ 5403 RECOMP_ICALL(0x47039830u); /* 0x4705B7CA: call 0x47039830 */ /* not lifted */ 5404 RECOMP_FLAGS_IN(); 5405 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5406 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5407 esp = esp + 0xCu; /* 0x4705B7CF: add esp, 0xc */ 5408 _flag_k = FK_ADD; 5409 edi = POP32_VAL(esp); /* 0x4705B7D2: pop edi */ 5410 esi = POP32_VAL(esp); /* 0x4705B7D3: pop esi */ 5411 ebp = POP32_VAL(esp); /* 0x4705B7D4: pop ebp */ 5412 ebx = POP32_VAL(esp); /* 0x4705B7D5: pop ebx */ 5413 ecx = POP32_VAL(esp); /* 0x4705B7D6: pop ecx */ 5414 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705B7D7: ret */ 5415 RECOMP_REGS_OUT(); 5416 } 5417 5418 void sub_4705B648(void) { 5419 int _fpu_cmp = 0; 5420 uint32_t _cf = 0; 5421 int _df = 1; 5422 uint32_t _flag_k = FK_NONE; 5423 uint32_t _flag_a = 0, _flag_b = 0; 5424 uint32_t _itail_tgt = 0; 5425 RECOMP_REGS_LOCALS 5426 RECOMP_ENTER(0x4705B648u); 5427 5428 L_4705B648: 5429 RECOMP_ICALL(0x4703B240u); /* 0x4705B648: call 0x4703b240 */ /* not lifted */ 5430 RECOMP_FLAGS_IN(); 5431 PUSH32(esp, eax); /* 0x4705B64D: push eax */ 5432 ecx = esi; /* 0x4705B64E: mov ecx, esi */ 5433 RECOMP_ICALL(0x4703B080u); /* 0x4705B650: call 0x4703b080 */ /* not lifted */ 5434 RECOMP_FLAGS_IN(); 5435 PUSH32(esp, eax); /* 0x4705B655: push eax */ 5436 eax = MEM32(esp + 0x1C); /* 0x4705B656: mov eax, dword ptr [esp + 0x1c] */ 5437 PUSH32(esp, eax); /* 0x4705B65A: push eax */ 5438 PUSH32(esp, 0); /* 0x4705B65B: push 0 */ 5439 PUSH32(esp, 0x12u); /* 0x4705B65D: push 0x12 */ 5440 PUSH32(esp, 0x47109488u); /* 0x4705B65F: push 0x47109488 */ 5441 ecx = esi; /* 0x4705B664: mov ecx, esi */ 5442 RECOMP_ICALL(0x4703A340u); /* 0x4705B666: call 0x4703a340 */ /* not lifted */ 5443 RECOMP_FLAGS_IN(); 5444 PUSH32(esp, ebp); /* 0x4705B66B: push ebp */ 5445 PUSH32(esp, 0x471052CCu); /* 0x4705B66C: push 0x471052cc */ 5446 PUSH32(esp, 4); /* 0x4705B671: push 4 */ 5447 PUSH32(esp, esi); /* 0x4705B673: push esi */ 5448 RECOMP_ICALL(0x47039830u); /* 0x4705B674: call 0x47039830 */ /* not lifted */ 5449 RECOMP_FLAGS_IN(); 5450 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5451 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5452 esp = esp + 0x10u; /* 0x4705B679: add esp, 0x10 */ 5453 _flag_k = FK_ADD; 5454 RECOMP_ICALL(edi); /* 0x4705B67C: call edi */ 5455 RECOMP_FLAGS_IN(); 5456 esi = eax; /* 0x4705B67E: mov esi, eax */ 5457 RECOMP_ICALL(ebx); /* 0x4705B680: call ebx */ 5458 RECOMP_FLAGS_IN(); 5459 eax = MEM32(eax); /* 0x4705B682: mov eax, dword ptr [eax] */ 5460 /* test eax, eax */ /* 0x4705B684: test eax, eax */ 5461 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5462 _cf = 0; 5463 _flag_k = FK_TEST; 5464 MEM32(esp + 0x10) = esi; /* 0x4705B686: mov dword ptr [esp + 0x10], esi */ 5465 if (TEST_Z(_flag_a, _flag_b)) goto L_4705B690; /* 0x4705B68A: je 0x4705b690 */ 5466 L_4705B68C: 5467 MEM32(esp + 0x10) = eax; /* 0x4705B68C: mov dword ptr [esp + 0x10], eax */ 5468 L_4705B690: 5469 RECOMP_ICALL(0x47039020u); /* 0x4705B690: call 0x47039020 */ /* not lifted */ 5470 RECOMP_FLAGS_IN(); 5471 esi = eax; /* 0x4705B695: mov esi, eax */ 5472 ecx = esi; /* 0x4705B697: mov ecx, esi */ 5473 RECOMP_ICALL(0x4703B210u); /* 0x4705B699: call 0x4703b210 */ /* not lifted */ 5474 RECOMP_FLAGS_IN(); 5475 PUSH32(esp, eax); /* 0x4705B69E: push eax */ 5476 ecx = esi; /* 0x4705B69F: mov ecx, esi */ 5477 RECOMP_ICALL(0x4703B240u); /* 0x4705B6A1: call 0x4703b240 */ /* not lifted */ 5478 RECOMP_FLAGS_IN(); 5479 PUSH32(esp, eax); /* 0x4705B6A6: push eax */ 5480 ecx = esi; /* 0x4705B6A7: mov ecx, esi */ 5481 RECOMP_ICALL(0x4703B080u); /* 0x4705B6A9: call 0x4703b080 */ /* not lifted */ 5482 RECOMP_FLAGS_IN(); 5483 ecx = MEM32(esp + 0x18); /* 0x4705B6AE: mov ecx, dword ptr [esp + 0x18] */ 5484 PUSH32(esp, eax); /* 0x4705B6B2: push eax */ 5485 PUSH32(esp, ecx); /* 0x4705B6B3: push ecx */ 5486 PUSH32(esp, 0); /* 0x4705B6B4: push 0 */ 5487 PUSH32(esp, 0x13u); /* 0x4705B6B6: push 0x13 */ 5488 PUSH32(esp, 0x47109488u); /* 0x4705B6B8: push 0x47109488 */ 5489 ecx = esi; /* 0x4705B6BD: mov ecx, esi */ 5490 RECOMP_ICALL(0x4703A340u); /* 0x4705B6BF: call 0x4703a340 */ /* not lifted */ 5491 RECOMP_FLAGS_IN(); 5492 edx = MEM32(ebp); /* 0x4705B6C4: mov edx, dword ptr [ebp] */ 5493 PUSH32(esp, edx); /* 0x4705B6C7: push edx */ 5494 PUSH32(esp, 0x47109474u); /* 0x4705B6C8: push 0x47109474 */ 5495 PUSH32(esp, 4); /* 0x4705B6CD: push 4 */ 5496 PUSH32(esp, esi); /* 0x4705B6CF: push esi */ 5497 RECOMP_ICALL(0x47039830u); /* 0x4705B6D0: call 0x47039830 */ /* not lifted */ 5498 RECOMP_FLAGS_IN(); 5499 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5500 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5501 esp = esp + 0x10u; /* 0x4705B6D5: add esp, 0x10 */ 5502 _flag_k = FK_ADD; 5503 RECOMP_ICALL(edi); /* 0x4705B6D8: call edi */ 5504 RECOMP_FLAGS_IN(); 5505 esi = eax; /* 0x4705B6DA: mov esi, eax */ 5506 RECOMP_ICALL(ebx); /* 0x4705B6DC: call ebx */ 5507 RECOMP_FLAGS_IN(); 5508 eax = MEM32(eax); /* 0x4705B6DE: mov eax, dword ptr [eax] */ 5509 /* test eax, eax */ /* 0x4705B6E0: test eax, eax */ 5510 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5511 _cf = 0; 5512 _flag_k = FK_TEST; 5513 MEM32(esp + 0x10) = esi; /* 0x4705B6E2: mov dword ptr [esp + 0x10], esi */ 5514 if (TEST_Z(_flag_a, _flag_b)) goto L_4705B6EC; /* 0x4705B6E6: je 0x4705b6ec */ 5515 L_4705B6E8: 5516 MEM32(esp + 0x10) = eax; /* 0x4705B6E8: mov dword ptr [esp + 0x10], eax */ 5517 L_4705B6EC: 5518 RECOMP_ICALL(0x47039020u); /* 0x4705B6EC: call 0x47039020 */ /* not lifted */ 5519 RECOMP_FLAGS_IN(); 5520 esi = eax; /* 0x4705B6F1: mov esi, eax */ 5521 ecx = esi; /* 0x4705B6F3: mov ecx, esi */ 5522 RECOMP_ICALL(0x4703B210u); /* 0x4705B6F5: call 0x4703b210 */ /* not lifted */ 5523 RECOMP_FLAGS_IN(); 5524 PUSH32(esp, eax); /* 0x4705B6FA: push eax */ 5525 ecx = esi; /* 0x4705B6FB: mov ecx, esi */ 5526 RECOMP_ICALL(0x4703B240u); /* 0x4705B6FD: call 0x4703b240 */ /* not lifted */ 5527 RECOMP_FLAGS_IN(); 5528 PUSH32(esp, eax); /* 0x4705B702: push eax */ 5529 ecx = esi; /* 0x4705B703: mov ecx, esi */ 5530 RECOMP_ICALL(0x4703B080u); /* 0x4705B705: call 0x4703b080 */ /* not lifted */ 5531 RECOMP_FLAGS_IN(); 5532 PUSH32(esp, eax); /* 0x4705B70A: push eax */ 5533 eax = MEM32(esp + 0x1C); /* 0x4705B70B: mov eax, dword ptr [esp + 0x1c] */ 5534 PUSH32(esp, eax); /* 0x4705B70F: push eax */ 5535 PUSH32(esp, 0); /* 0x4705B710: push 0 */ 5536 PUSH32(esp, 0x14u); /* 0x4705B712: push 0x14 */ 5537 PUSH32(esp, 0x47109488u); /* 0x4705B714: push 0x47109488 */ 5538 ecx = esi; /* 0x4705B719: mov ecx, esi */ 5539 RECOMP_ICALL(0x4703A340u); /* 0x4705B71B: call 0x4703a340 */ /* not lifted */ 5540 RECOMP_FLAGS_IN(); 5541 ecx = MEM32(ebp + 0x4); /* 0x4705B720: mov ecx, dword ptr [ebp + 4] */ 5542 PUSH32(esp, ecx); /* 0x4705B723: push ecx */ 5543 PUSH32(esp, 0x47109460u); /* 0x4705B724: push 0x47109460 */ 5544 PUSH32(esp, 4); /* 0x4705B729: push 4 */ 5545 PUSH32(esp, esi); /* 0x4705B72B: push esi */ 5546 RECOMP_ICALL(0x47039830u); /* 0x4705B72C: call 0x47039830 */ /* not lifted */ 5547 RECOMP_FLAGS_IN(); 5548 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5549 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5550 esp = esp + 0x10u; /* 0x4705B731: add esp, 0x10 */ 5551 _flag_k = FK_ADD; 5552 RECOMP_ICALL(edi); /* 0x4705B734: call edi */ 5553 RECOMP_FLAGS_IN(); 5554 ebp = eax; /* 0x4705B736: mov ebp, eax */ 5555 RECOMP_ICALL(ebx); /* 0x4705B738: call ebx */ 5556 RECOMP_FLAGS_IN(); 5557 eax = MEM32(eax); /* 0x4705B73A: mov eax, dword ptr [eax] */ 5558 /* test eax, eax */ /* 0x4705B73C: test eax, eax */ 5559 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5560 _cf = 0; 5561 _flag_k = FK_TEST; 5562 if (TEST_Z(_flag_a, _flag_b)) goto L_4705B742; /* 0x4705B73E: je 0x4705b742 */ 5563 L_4705B740: 5564 ebp = eax; /* 0x4705B740: mov ebp, eax */ 5565 L_4705B742: 5566 RECOMP_ICALL(0x47039020u); /* 0x4705B742: call 0x47039020 */ /* not lifted */ 5567 RECOMP_FLAGS_IN(); 5568 esi = eax; /* 0x4705B747: mov esi, eax */ 5569 ecx = esi; /* 0x4705B749: mov ecx, esi */ 5570 RECOMP_ICALL(0x4703B210u); /* 0x4705B74B: call 0x4703b210 */ /* not lifted */ 5571 RECOMP_FLAGS_IN(); 5572 PUSH32(esp, eax); /* 0x4705B750: push eax */ 5573 ecx = esi; /* 0x4705B751: mov ecx, esi */ 5574 RECOMP_ICALL(0x4703B240u); /* 0x4705B753: call 0x4703b240 */ /* not lifted */ 5575 RECOMP_FLAGS_IN(); 5576 PUSH32(esp, eax); /* 0x4705B758: push eax */ 5577 ecx = esi; /* 0x4705B759: mov ecx, esi */ 5578 RECOMP_ICALL(0x4703B080u); /* 0x4705B75B: call 0x4703b080 */ /* not lifted */ 5579 RECOMP_FLAGS_IN(); 5580 PUSH32(esp, eax); /* 0x4705B760: push eax */ 5581 PUSH32(esp, ebp); /* 0x4705B761: push ebp */ 5582 PUSH32(esp, 0); /* 0x4705B762: push 0 */ 5583 PUSH32(esp, 0x15u); /* 0x4705B764: push 0x15 */ 5584 PUSH32(esp, 0x47109488u); /* 0x4705B766: push 0x47109488 */ 5585 ecx = esi; /* 0x4705B76B: mov ecx, esi */ 5586 RECOMP_ICALL(0x4703A340u); /* 0x4705B76D: call 0x4703a340 */ /* not lifted */ 5587 RECOMP_FLAGS_IN(); 5588 PUSH32(esp, 0x47105590u); /* 0x4705B772: push 0x47105590 */ 5589 PUSH32(esp, 4); /* 0x4705B777: push 4 */ 5590 PUSH32(esp, esi); /* 0x4705B779: push esi */ 5591 RECOMP_ICALL(0x47039830u); /* 0x4705B77A: call 0x47039830 */ /* not lifted */ 5592 RECOMP_FLAGS_IN(); 5593 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5594 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5595 esp = esp + 0xCu; /* 0x4705B77F: add esp, 0xc */ 5596 _flag_k = FK_ADD; 5597 RECOMP_ICALL(edi); /* 0x4705B782: call edi */ 5598 RECOMP_FLAGS_IN(); 5599 esi = eax; /* 0x4705B784: mov esi, eax */ 5600 RECOMP_ICALL(ebx); /* 0x4705B786: call ebx */ 5601 RECOMP_FLAGS_IN(); 5602 eax = MEM32(eax); /* 0x4705B788: mov eax, dword ptr [eax] */ 5603 /* test eax, eax */ /* 0x4705B78A: test eax, eax */ 5604 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5605 _cf = 0; 5606 _flag_k = FK_TEST; 5607 edi = esi; /* 0x4705B78C: mov edi, esi */ 5608 if (TEST_Z(_flag_a, _flag_b)) goto L_4705B792; /* 0x4705B78E: je 0x4705b792 */ 5609 L_4705B790: 5610 edi = eax; /* 0x4705B790: mov edi, eax */ 5611 L_4705B792: 5612 RECOMP_ICALL(0x47039020u); /* 0x4705B792: call 0x47039020 */ /* not lifted */ 5613 RECOMP_FLAGS_IN(); 5614 esi = eax; /* 0x4705B797: mov esi, eax */ 5615 ecx = esi; /* 0x4705B799: mov ecx, esi */ 5616 RECOMP_ICALL(0x4703B210u); /* 0x4705B79B: call 0x4703b210 */ /* not lifted */ 5617 RECOMP_FLAGS_IN(); 5618 PUSH32(esp, eax); /* 0x4705B7A0: push eax */ 5619 ecx = esi; /* 0x4705B7A1: mov ecx, esi */ 5620 RECOMP_ICALL(0x4703B240u); /* 0x4705B7A3: call 0x4703b240 */ /* not lifted */ 5621 RECOMP_FLAGS_IN(); 5622 PUSH32(esp, eax); /* 0x4705B7A8: push eax */ 5623 ecx = esi; /* 0x4705B7A9: mov ecx, esi */ 5624 RECOMP_ICALL(0x4703B080u); /* 0x4705B7AB: call 0x4703b080 */ /* not lifted */ 5625 RECOMP_FLAGS_IN(); 5626 PUSH32(esp, eax); /* 0x4705B7B0: push eax */ 5627 PUSH32(esp, edi); /* 0x4705B7B1: push edi */ 5628 PUSH32(esp, 0); /* 0x4705B7B2: push 0 */ 5629 PUSH32(esp, 0x16u); /* 0x4705B7B4: push 0x16 */ 5630 PUSH32(esp, 0x47109488u); /* 0x4705B7B6: push 0x47109488 */ 5631 ecx = esi; /* 0x4705B7BB: mov ecx, esi */ 5632 RECOMP_ICALL(0x4703A340u); /* 0x4705B7BD: call 0x4703a340 */ /* not lifted */ 5633 RECOMP_FLAGS_IN(); 5634 PUSH32(esp, 0x4710529Cu); /* 0x4705B7C2: push 0x4710529c */ 5635 PUSH32(esp, 4); /* 0x4705B7C7: push 4 */ 5636 PUSH32(esp, esi); /* 0x4705B7C9: push esi */ 5637 RECOMP_ICALL(0x47039830u); /* 0x4705B7CA: call 0x47039830 */ /* not lifted */ 5638 RECOMP_FLAGS_IN(); 5639 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5640 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5641 esp = esp + 0xCu; /* 0x4705B7CF: add esp, 0xc */ 5642 _flag_k = FK_ADD; 5643 edi = POP32_VAL(esp); /* 0x4705B7D2: pop edi */ 5644 esi = POP32_VAL(esp); /* 0x4705B7D3: pop esi */ 5645 ebp = POP32_VAL(esp); /* 0x4705B7D4: pop ebp */ 5646 ebx = POP32_VAL(esp); /* 0x4705B7D5: pop ebx */ 5647 ecx = POP32_VAL(esp); /* 0x4705B7D6: pop ecx */ 5648 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705B7D7: ret */ 5649 RECOMP_REGS_OUT(); 5650 } 5651 5652 void sub_4705B7E0(void) { 5653 int _fpu_cmp = 0; 5654 uint32_t _cf = 0; 5655 int _df = 1; 5656 uint32_t _flag_k = FK_NONE; 5657 uint32_t _flag_a = 0, _flag_b = 0; 5658 uint32_t _itail_tgt = 0; 5659 RECOMP_REGS_LOCALS 5660 RECOMP_ENTER(0x4705B7E0u); 5661 5662 L_4705B7E0: 5663 PUSH32(esp, 0xFFFFFFFFu); /* 0x4705B7E0: push -1 */ 5664 PUSH32(esp, 0x470A7840u); /* 0x4705B7E2: push 0x470a7840 */ 5665 eax = MEM32(FS_BASE + (0)); /* 0x4705B7E7: mov eax, dword ptr fs:[0] */ 5666 PUSH32(esp, eax); /* 0x4705B7ED: push eax */ 5667 MEM32(FS_BASE + (0)) = esp; /* 0x4705B7EE: mov dword ptr fs:[0], esp */ 5668 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x70u); 5669 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5670 esp = esp - 0x70u; /* 0x4705B7F5: sub esp, 0x70 */ 5671 _flag_k = FK_CMP; 5672 PUSH32(esp, ebx); /* 0x4705B7F8: push ebx */ 5673 PUSH32(esp, ebp); /* 0x4705B7F9: push ebp */ 5674 PUSH32(esp, esi); /* 0x4705B7FA: push esi */ 5675 ebp = ecx; /* 0x4705B7FB: mov ebp, ecx */ 5676 PUSH32(esp, edi); /* 0x4705B7FD: push edi */ 5677 ecx = esp + 0x48; /* 0x4705B7FE: lea ecx, [esp + 0x48] */ 5678 RECOMP_ICALL(0x470317B0u); /* 0x4705B802: call 0x470317b0 */ /* not lifted */ 5679 RECOMP_FLAGS_IN(); 5680 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5681 esi = 0; /* 0x4705B807: xor esi, esi */ 5682 _cf = 0; 5683 _flag_k = FK_TEST; 5684 ecx = esp + 0x18; /* 0x4705B809: lea ecx, [esp + 0x18] */ 5685 MEM32(esp + 0x88) = esi; /* 0x4705B80D: mov dword ptr [esp + 0x88], esi */ 5686 RECOMP_ICALL(0x4707ADF0u); /* 0x4705B814: call 0x4707adf0 */ /* not lifted */ 5687 RECOMP_FLAGS_IN(); 5688 ebx = 2; /* 0x4705B819: mov ebx, 2 */ 5689 ecx = esp + 0x38; /* 0x4705B81E: lea ecx, [esp + 0x38] */ 5690 MEM8(esp + 0x88) = (uint8_t)(LO8(ebx)); /* 0x4705B822: mov byte ptr [esp + 0x88], bl */ 5691 RECOMP_ICALL(0x47032D40u); /* 0x4705B829: call 0x47032d40 */ /* not lifted */ 5692 RECOMP_FLAGS_IN(); 5693 ecx = esp + 0x28; /* 0x4705B82E: lea ecx, [esp + 0x28] */ 5694 MEM8(esp + 0x88) = (uint8_t)(3); /* 0x4705B832: mov byte ptr [esp + 0x88], 3 */ 5695 RECOMP_ICALL(0x47032D40u); /* 0x4705B83A: call 0x47032d40 */ /* not lifted */ 5696 RECOMP_FLAGS_IN(); 5697 PUSH32(esp, esi); /* 0x4705B83F: push esi */ 5698 PUSH32(esp, 5); /* 0x4705B840: push 5 */ 5699 PUSH32(esp, ebx); /* 0x4705B842: push ebx */ 5700 PUSH32(esp, esi); /* 0x4705B843: push esi */ 5701 PUSH32(esp, 0x4710DF08u); /* 0x4705B844: push 0x4710df08 */ 5702 ecx = esp + 0x2C; /* 0x4705B849: lea ecx, [esp + 0x2c] */ 5703 MEM8(esp + 0x9C) = (uint8_t)(4); /* 0x4705B84D: mov byte ptr [esp + 0x9c], 4 */ 5704 RECOMP_ICALL(0x4707B3A0u); /* 0x4705B855: call 0x4707b3a0 */ /* not lifted */ 5705 RECOMP_FLAGS_IN(); 5706 _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu)); 5707 edi = edi | 0xFFFFFFFFu; /* 0x4705B85A: or edi, 0xffffffff */ 5708 _cf = 0; 5709 _flag_k = FK_TEST; 5710 /* cmp eax, edi */ /* 0x4705B85D: cmp eax, edi */ 5711 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5712 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5713 _flag_k = FK_CMP; 5714 if (CMP_EQ(_flag_a, _flag_b)) goto L_4705B8FF; /* 0x4705B85F: je 0x4705b8ff */ 5715 L_4705B865: 5716 eax = esp + 0x48; /* 0x4705B865: lea eax, [esp + 0x48] */ 5717 PUSH32(esp, eax); /* 0x4705B869: push eax */ 5718 ecx = esp + 0x1C; /* 0x4705B86A: lea ecx, [esp + 0x1c] */ 5719 RECOMP_ICALL(0x4707A5F0u); /* 0x4705B86E: call 0x4707a5f0 */ /* not lifted */ 5720 RECOMP_FLAGS_IN(); 5721 /* cmp eax, edi */ /* 0x4705B873: cmp eax, edi */ 5722 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5723 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5724 _flag_k = FK_CMP; 5725 if (CMP_EQ(_flag_a, _flag_b)) goto L_4705B8FF; /* 0x4705B875: je 0x4705b8ff */ 5726 L_4705B87B: 5727 ecx = MEM32(esp + 0x56); /* 0x4705B87B: mov ecx, dword ptr [esp + 0x56] */ 5728 PUSH32(esp, ecx); /* 0x4705B87F: push ecx */ 5729 RECOMP_ICALL(MEM32(0x470AC460)); /* 0x4705B880: call dword ptr [0x470ac460] */ 5730 RECOMP_FLAGS_IN(); 5731 PUSH32(esp, 0x47107E20u); /* 0x4705B886: push 0x47107e20 */ 5732 ecx = esp + 0x68; /* 0x4705B88B: lea ecx, [esp + 0x68] */ 5733 PUSH32(esp, eax); /* 0x4705B88F: push eax */ 5734 RECOMP_ICALL(0x47031DA0u); /* 0x4705B890: call 0x47031da0 */ /* not lifted */ 5735 RECOMP_FLAGS_IN(); 5736 PUSH32(esp, esi); /* 0x4705B895: push esi */ 5737 PUSH32(esp, ebx); /* 0x4705B896: push ebx */ 5738 PUSH32(esp, esi); /* 0x4705B897: push esi */ 5739 PUSH32(esp, esi); /* 0x4705B898: push esi */ 5740 PUSH32(esp, esi); /* 0x4705B899: push esi */ 5741 PUSH32(esp, 0x4710DF08u); /* 0x4705B89A: push 0x4710df08 */ 5742 PUSH32(esp, esi); /* 0x4705B89F: push esi */ 5743 edx = esp + 0x80; /* 0x4705B8A0: lea edx, [esp + 0x80] */ 5744 PUSH32(esp, edx); /* 0x4705B8A7: push edx */ 5745 eax = esp + 0x48; /* 0x4705B8A8: lea eax, [esp + 0x48] */ 5746 PUSH32(esp, eax); /* 0x4705B8AC: push eax */ 5747 ecx = esp + 0x38; /* 0x4705B8AD: lea ecx, [esp + 0x38] */ 5748 MEM8(esp + 0xAC) = (uint8_t)(5); /* 0x4705B8B1: mov byte ptr [esp + 0xac], 5 */ 5749 RECOMP_ICALL(0x4707BAD0u); /* 0x4705B8B9: call 0x4707bad0 */ /* not lifted */ 5750 RECOMP_FLAGS_IN(); 5751 /* cmp eax, edi */ /* 0x4705B8BE: cmp eax, edi */ 5752 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5753 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5754 _flag_k = FK_CMP; 5755 if (CMP_EQ(_flag_a, _flag_b)) goto L_4705B8E2; /* 0x4705B8C0: je 0x4705b8e2 */ 5756 L_4705B8C2: 5757 PUSH32(esp, esi); /* 0x4705B8C2: push esi */ 5758 PUSH32(esp, 1); /* 0x4705B8C3: push 1 */ 5759 PUSH32(esp, esi); /* 0x4705B8C5: push esi */ 5760 PUSH32(esp, esi); /* 0x4705B8C6: push esi */ 5761 ecx = esp + 0x48; /* 0x4705B8C7: lea ecx, [esp + 0x48] */ 5762 PUSH32(esp, ecx); /* 0x4705B8CB: push ecx */ 5763 ecx = esp + 0x2C; /* 0x4705B8CC: lea ecx, [esp + 0x2c] */ 5764 RECOMP_ICALL(0x4707AF30u); /* 0x4705B8D0: call 0x4707af30 */ /* not lifted */ 5765 RECOMP_FLAGS_IN(); 5766 /* cmp eax, edi */ /* 0x4705B8D5: cmp eax, edi */ 5767 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5768 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5769 _flag_k = FK_CMP; 5770 if (CMP_NE(_flag_a, _flag_b)) goto L_4705B8E4; /* 0x4705B8D7: jne 0x4705b8e4 */ 5771 L_4705B8D9: 5772 ecx = esp + 0x28; /* 0x4705B8D9: lea ecx, [esp + 0x28] */ 5773 RECOMP_ICALL(0x4707E7D0u); /* 0x4705B8DD: call 0x4707e7d0 */ /* not lifted */ 5774 RECOMP_FLAGS_IN(); 5775 L_4705B8E2: 5776 esi = edi; /* 0x4705B8E2: mov esi, edi */ 5777 L_4705B8E4: 5778 ecx = esp + 0x64; /* 0x4705B8E4: lea ecx, [esp + 0x64] */ 5779 MEM8(esp + 0x88) = (uint8_t)(4); /* 0x4705B8E8: mov byte ptr [esp + 0x88], 4 */ 5780 MEM32(esp + 0x64) = 0x470AC520u; /* 0x4705B8F0: mov dword ptr [esp + 0x64], 0x470ac520 */ 5781 RECOMP_ICALL(0x47014F70u); /* 0x4705B8F8: call 0x47014f70 */ /* not lifted */ 5782 RECOMP_FLAGS_IN(); 5783 goto L_4705B901; /* 0x4705B8FD: jmp 0x4705b901 */ 5784 L_4705B8FF: 5785 esi = edi; /* 0x4705B8FF: mov esi, edi */ 5786 L_4705B901: 5787 ecx = esp + 0x18; /* 0x4705B901: lea ecx, [esp + 0x18] */ 5788 RECOMP_ICALL(0x4707A640u); /* 0x4705B905: call 0x4707a640 */ /* not lifted */ 5789 RECOMP_FLAGS_IN(); 5790 /* cmp esi, edi */ /* 0x4705B90A: cmp esi, edi */ 5791 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 5792 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5793 _flag_k = FK_CMP; 5794 if (CMP_NE(_flag_a, _flag_b)) goto L_4705B945; /* 0x4705B90C: jne 0x4705b945 */ 5795 L_4705B90E: 5796 ecx = esp + 0x28; /* 0x4705B90E: lea ecx, [esp + 0x28] */ 5797 MEM8(esp + 0x88) = (uint8_t)(3); /* 0x4705B912: mov byte ptr [esp + 0x88], 3 */ 5798 RECOMP_ICALL(0x47032AF0u); /* 0x4705B91A: call 0x47032af0 */ /* not lifted */ 5799 RECOMP_FLAGS_IN(); 5800 ecx = esp + 0x38; /* 0x4705B91F: lea ecx, [esp + 0x38] */ 5801 MEM8(esp + 0x88) = (uint8_t)(LO8(ebx)); /* 0x4705B923: mov byte ptr [esp + 0x88], bl */ 5802 RECOMP_ICALL(0x47032AF0u); /* 0x4705B92A: call 0x47032af0 */ /* not lifted */ 5803 RECOMP_FLAGS_IN(); 5804 ecx = esp + 0x18; /* 0x4705B92F: lea ecx, [esp + 0x18] */ 5805 MEM8(esp + 0x88) = (uint8_t)(0); /* 0x4705B933: mov byte ptr [esp + 0x88], 0 */ 5806 RECOMP_ICALL(0x47032AF0u); /* 0x4705B93B: call 0x47032af0 */ /* not lifted */ 5807 RECOMP_FLAGS_IN(); 5808 goto L_4705B9FE; /* 0x4705B940: jmp 0x4705b9fe */ 5809 L_4705B945: 5810 eax = MEM32(esp + 0x28); /* 0x4705B945: mov eax, dword ptr [esp + 0x28] */ 5811 PUSH32(esp, 4); /* 0x4705B949: push 4 */ 5812 edx = esp + 0x14; /* 0x4705B94B: lea edx, [esp + 0x14] */ 5813 PUSH32(esp, edx); /* 0x4705B94F: push edx */ 5814 PUSH32(esp, 1); /* 0x4705B950: push 1 */ 5815 PUSH32(esp, 6); /* 0x4705B952: push 6 */ 5816 PUSH32(esp, eax); /* 0x4705B954: push eax */ 5817 MEM32(esp + 0x24) = 1; /* 0x4705B955: mov dword ptr [esp + 0x24], 1 */ 5818 RECOMP_ICALL(0x47003DE0u); /* 0x4705B95D: call 0x47003de0 */ /* not lifted */ 5819 RECOMP_FLAGS_IN(); 5820 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 5821 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5822 esp = esp + 0x14u; /* 0x4705B962: add esp, 0x14 */ 5823 _flag_k = FK_ADD; 5824 /* cmp eax, edi */ /* 0x4705B965: cmp eax, edi */ 5825 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5826 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5827 _flag_k = FK_CMP; 5828 RECOMP_BACKEDGE(); 5829 if (CMP_EQ(_flag_a, _flag_b)) goto L_4705B90E; /* 0x4705B967: je 0x4705b90e */ 5830 L_4705B969: 5831 edx = MEM32(esp + 0x38); /* 0x4705B969: mov edx, dword ptr [esp + 0x38] */ 5832 PUSH32(esp, 4); /* 0x4705B96D: push 4 */ 5833 ecx = esp + 0x94; /* 0x4705B96F: lea ecx, [esp + 0x94] */ 5834 PUSH32(esp, ecx); /* 0x4705B976: push ecx */ 5835 PUSH32(esp, 0x1001u); /* 0x4705B977: push 0x1001 */ 5836 PUSH32(esp, 0xFFFFu); /* 0x4705B97C: push 0xffff */ 5837 PUSH32(esp, edx); /* 0x4705B981: push edx */ 5838 RECOMP_ICALL(0x47003DE0u); /* 0x4705B982: call 0x47003de0 */ /* not lifted */ 5839 RECOMP_FLAGS_IN(); 5840 esi = MEM32(0x470AC3C8); /* 0x4705B987: mov esi, dword ptr [0x470ac3c8] */ 5841 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 5842 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5843 esp = esp + 0x14u; /* 0x4705B98D: add esp, 0x14 */ 5844 _flag_k = FK_ADD; 5845 /* cmp eax, edi */ /* 0x4705B990: cmp eax, edi */ 5846 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5847 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5848 _flag_k = FK_CMP; 5849 if (CMP_NE(_flag_a, _flag_b)) goto L_4705B99F; /* 0x4705B992: jne 0x4705b99f */ 5850 L_4705B994: 5851 RECOMP_ICALL(esi); /* 0x4705B994: call esi */ 5852 RECOMP_FLAGS_IN(); 5853 /* cmp MEM32(eax), 0x28u */ /* 0x4705B996: cmp dword ptr [eax], 0x28 */ 5854 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0x28u); 5855 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5856 _flag_k = FK_CMP; 5857 RECOMP_BACKEDGE(); 5858 if (CMP_NE(_flag_a, _flag_b)) goto L_4705B90E; /* 0x4705B999: jne 0x4705b90e */ 5859 L_4705B99F: 5860 ecx = MEM32(esp + 0x28); /* 0x4705B99F: mov ecx, dword ptr [esp + 0x28] */ 5861 PUSH32(esp, 4); /* 0x4705B9A3: push 4 */ 5862 eax = esp + 0x94; /* 0x4705B9A5: lea eax, [esp + 0x94] */ 5863 PUSH32(esp, eax); /* 0x4705B9AC: push eax */ 5864 PUSH32(esp, 0x1002u); /* 0x4705B9AD: push 0x1002 */ 5865 PUSH32(esp, 0xFFFFu); /* 0x4705B9B2: push 0xffff */ 5866 PUSH32(esp, ecx); /* 0x4705B9B7: push ecx */ 5867 RECOMP_ICALL(0x47003DE0u); /* 0x4705B9B8: call 0x47003de0 */ /* not lifted */ 5868 RECOMP_FLAGS_IN(); 5869 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 5870 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5871 esp = esp + 0x14u; /* 0x4705B9BD: add esp, 0x14 */ 5872 _flag_k = FK_ADD; 5873 /* cmp eax, edi */ /* 0x4705B9C0: cmp eax, edi */ 5874 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5875 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5876 _flag_k = FK_CMP; 5877 if (CMP_NE(_flag_a, _flag_b)) goto L_4705BA1D; /* 0x4705B9C2: jne 0x4705ba1d */ 5878 L_4705B9C4: 5879 RECOMP_ICALL(esi); /* 0x4705B9C4: call esi */ 5880 RECOMP_FLAGS_IN(); 5881 /* cmp MEM32(eax), 0x28u */ /* 0x4705B9C6: cmp dword ptr [eax], 0x28 */ 5882 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0x28u); 5883 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5884 _flag_k = FK_CMP; 5885 if (CMP_EQ(_flag_a, _flag_b)) goto L_4705BA1D; /* 0x4705B9C9: je 0x4705ba1d */ 5886 L_4705B9CB: 5887 ecx = esp + 0x2C; /* 0x4705B9CB: lea ecx, [esp + 0x2c] */ 5888 MEM8(esp + 0x88) = (uint8_t)(6); /* 0x4705B9CF: mov byte ptr [esp + 0x88], 6 */ 5889 RECOMP_ICALL(0x47061AE0u); /* 0x4705B9D7: call 0x47061ae0 */ /* not lifted */ 5890 RECOMP_FLAGS_IN(); 5891 ecx = esp + 0x3C; /* 0x4705B9DC: lea ecx, [esp + 0x3c] */ 5892 MEM8(esp + 0x88) = (uint8_t)(7); /* 0x4705B9E0: mov byte ptr [esp + 0x88], 7 */ 5893 RECOMP_ICALL(0x47061AE0u); /* 0x4705B9E8: call 0x47061ae0 */ /* not lifted */ 5894 RECOMP_FLAGS_IN(); 5895 ecx = esp + 0x1C; /* 0x4705B9ED: lea ecx, [esp + 0x1c] */ 5896 MEM8(esp + 0x88) = (uint8_t)(8); /* 0x4705B9F1: mov byte ptr [esp + 0x88], 8 */ 5897 RECOMP_ICALL(0x47061AE0u); /* 0x4705B9F9: call 0x47061ae0 */ /* not lifted */ 5898 RECOMP_FLAGS_IN(); 5899 L_4705B9FE: 5900 ecx = esp + 0x48; /* 0x4705B9FE: lea ecx, [esp + 0x48] */ 5901 MEM32(esp + 0x88) = edi; /* 0x4705BA02: mov dword ptr [esp + 0x88], edi */ 5902 MEM32(esp + 0x48) = 0x470AC520u; /* 0x4705BA09: mov dword ptr [esp + 0x48], 0x470ac520 */ 5903 RECOMP_ICALL(0x47014F70u); /* 0x4705BA11: call 0x47014f70 */ /* not lifted */ 5904 RECOMP_FLAGS_IN(); 5905 eax = edi; /* 0x4705BA16: mov eax, edi */ 5906 goto L_4705BA9D; /* 0x4705BA18: jmp 0x4705ba9d */ 5907 L_4705BA1D: 5908 edx = MEM32(esp + 0x38); /* 0x4705BA1D: mov edx, dword ptr [esp + 0x38] */ 5909 eax = MEM32(esp + 0x28); /* 0x4705BA21: mov eax, dword ptr [esp + 0x28] */ 5910 MEM32(ebp) = edx; /* 0x4705BA25: mov dword ptr [ebp], edx */ 5911 MEM32(ebp + 0x4) = eax; /* 0x4705BA28: mov dword ptr [ebp + 4], eax */ 5912 ecx = esp + 0x2C; /* 0x4705BA2B: lea ecx, [esp + 0x2c] */ 5913 MEM8(esp + 0x88) = (uint8_t)(9); /* 0x4705BA2F: mov byte ptr [esp + 0x88], 9 */ 5914 RECOMP_ICALL(0x47061AE0u); /* 0x4705BA37: call 0x47061ae0 */ /* not lifted */ 5915 RECOMP_FLAGS_IN(); 5916 ecx = esp + 0x3C; /* 0x4705BA3C: lea ecx, [esp + 0x3c] */ 5917 MEM8(esp + 0x88) = (uint8_t)(0xAu); /* 0x4705BA40: mov byte ptr [esp + 0x88], 0xa */ 5918 RECOMP_ICALL(0x47061AE0u); /* 0x4705BA48: call 0x47061ae0 */ /* not lifted */ 5919 RECOMP_FLAGS_IN(); 5920 ecx = esp + 0x1C; /* 0x4705BA4D: lea ecx, [esp + 0x1c] */ 5921 MEM8(esp + 0x88) = (uint8_t)(0xBu); /* 0x4705BA51: mov byte ptr [esp + 0x88], 0xb */ 5922 RECOMP_ICALL(0x4703B380u); /* 0x4705BA59: call 0x4703b380 */ /* not lifted */ 5923 RECOMP_FLAGS_IN(); 5924 ecx = MEM32(esp + 0x1C); /* 0x4705BA5E: mov ecx, dword ptr [esp + 0x1c] */ 5925 /* test ecx, ecx */ /* 0x4705BA62: test ecx, ecx */ 5926 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5927 _cf = 0; 5928 _flag_k = FK_TEST; 5929 if (TEST_Z(_flag_a, _flag_b)) goto L_4705BA7B; /* 0x4705BA64: je 0x4705ba7b */ 5930 L_4705BA66: 5931 PUSH32(esp, 0); /* 0x4705BA66: push 0 */ 5932 RECOMP_ICALL(0x4708CFB0u); /* 0x4705BA68: call 0x4708cfb0 */ /* not lifted */ 5933 RECOMP_FLAGS_IN(); 5934 ecx = MEM32(esp + 0x24); /* 0x4705BA6D: mov ecx, dword ptr [esp + 0x24] */ 5935 eax = MEM32(esp + 0x1C); /* 0x4705BA71: mov eax, dword ptr [esp + 0x1c] */ 5936 edx = MEM32(ecx); /* 0x4705BA75: mov edx, dword ptr [ecx] */ 5937 PUSH32(esp, eax); /* 0x4705BA77: push eax */ 5938 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4705BA78: call dword ptr [edx + 0xc] */ 5939 RECOMP_FLAGS_IN(); 5940 L_4705BA7B: 5941 ecx = esp + 0x48; /* 0x4705BA7B: lea ecx, [esp + 0x48] */ 5942 MEM32(esp + 0x1C) = 0; /* 0x4705BA7F: mov dword ptr [esp + 0x1c], 0 */ 5943 MEM32(esp + 0x88) = edi; /* 0x4705BA87: mov dword ptr [esp + 0x88], edi */ 5944 MEM32(esp + 0x48) = 0x470AC520u; /* 0x4705BA8E: mov dword ptr [esp + 0x48], 0x470ac520 */ 5945 RECOMP_ICALL(0x47014F70u); /* 0x4705BA96: call 0x47014f70 */ /* not lifted */ 5946 RECOMP_FLAGS_IN(); 5947 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5948 eax = 0; /* 0x4705BA9B: xor eax, eax */ 5949 _cf = 0; 5950 _flag_k = FK_TEST; 5951 L_4705BA9D: 5952 ecx = MEM32(esp + 0x80); /* 0x4705BA9D: mov ecx, dword ptr [esp + 0x80] */ 5953 edi = POP32_VAL(esp); /* 0x4705BAA4: pop edi */ 5954 esi = POP32_VAL(esp); /* 0x4705BAA5: pop esi */ 5955 ebp = POP32_VAL(esp); /* 0x4705BAA6: pop ebp */ 5956 ebx = POP32_VAL(esp); /* 0x4705BAA7: pop ebx */ 5957 MEM32(FS_BASE + (0)) = ecx; /* 0x4705BAA8: mov dword ptr fs:[0], ecx */ 5958 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x7Cu); 5959 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5960 esp = esp + 0x7Cu; /* 0x4705BAAF: add esp, 0x7c */ 5961 _flag_k = FK_ADD; 5962 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4705BAB2: ret 4 */ 5963 RECOMP_REGS_OUT(); 5964 } 5965 5966 void sub_4705B9FE(void) { 5967 int _fpu_cmp = 0; 5968 uint32_t _cf = 0; 5969 int _df = 1; 5970 uint32_t _flag_k = FK_NONE; 5971 uint32_t _flag_a = 0, _flag_b = 0; 5972 uint32_t _itail_tgt = 0; 5973 RECOMP_REGS_LOCALS 5974 RECOMP_ENTER(0x4705B9FEu); 5975 5976 L_4705B9FE: 5977 ecx = esp + 0x48; /* 0x4705B9FE: lea ecx, [esp + 0x48] */ 5978 MEM32(esp + 0x88) = edi; /* 0x4705BA02: mov dword ptr [esp + 0x88], edi */ 5979 MEM32(esp + 0x48) = 0x470AC520u; /* 0x4705BA09: mov dword ptr [esp + 0x48], 0x470ac520 */ 5980 RECOMP_ICALL(0x47014F70u); /* 0x4705BA11: call 0x47014f70 */ /* not lifted */ 5981 RECOMP_FLAGS_IN(); 5982 eax = edi; /* 0x4705BA16: mov eax, edi */ 5983 goto L_4705BA9D; /* 0x4705BA18: jmp 0x4705ba9d */ 5984 L_4705BA9D: 5985 ecx = MEM32(esp + 0x80); /* 0x4705BA9D: mov ecx, dword ptr [esp + 0x80] */ 5986 edi = POP32_VAL(esp); /* 0x4705BAA4: pop edi */ 5987 esi = POP32_VAL(esp); /* 0x4705BAA5: pop esi */ 5988 ebp = POP32_VAL(esp); /* 0x4705BAA6: pop ebp */ 5989 ebx = POP32_VAL(esp); /* 0x4705BAA7: pop ebx */ 5990 MEM32(FS_BASE + (0)) = ecx; /* 0x4705BAA8: mov dword ptr fs:[0], ecx */ 5991 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x7Cu); 5992 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5993 esp = esp + 0x7Cu; /* 0x4705BAAF: add esp, 0x7c */ 5994 _flag_k = FK_ADD; 5995 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4705BAB2: ret 4 */ 5996 RECOMP_REGS_OUT(); 5997 } 5998 5999 void sub_4705BA1D(void) { 6000 int _fpu_cmp = 0; 6001 uint32_t _cf = 0; 6002 int _df = 1; 6003 uint32_t _flag_k = FK_NONE; 6004 uint32_t _flag_a = 0, _flag_b = 0; 6005 uint32_t _itail_tgt = 0; 6006 RECOMP_REGS_LOCALS 6007 RECOMP_ENTER(0x4705BA1Du); 6008 6009 L_4705BA1D: 6010 edx = MEM32(esp + 0x38); /* 0x4705BA1D: mov edx, dword ptr [esp + 0x38] */ 6011 eax = MEM32(esp + 0x28); /* 0x4705BA21: mov eax, dword ptr [esp + 0x28] */ 6012 MEM32(ebp) = edx; /* 0x4705BA25: mov dword ptr [ebp], edx */ 6013 MEM32(ebp + 0x4) = eax; /* 0x4705BA28: mov dword ptr [ebp + 4], eax */ 6014 ecx = esp + 0x2C; /* 0x4705BA2B: lea ecx, [esp + 0x2c] */ 6015 MEM8(esp + 0x88) = (uint8_t)(9); /* 0x4705BA2F: mov byte ptr [esp + 0x88], 9 */ 6016 RECOMP_ICALL(0x47061AE0u); /* 0x4705BA37: call 0x47061ae0 */ /* not lifted */ 6017 RECOMP_FLAGS_IN(); 6018 ecx = esp + 0x3C; /* 0x4705BA3C: lea ecx, [esp + 0x3c] */ 6019 MEM8(esp + 0x88) = (uint8_t)(0xAu); /* 0x4705BA40: mov byte ptr [esp + 0x88], 0xa */ 6020 RECOMP_ICALL(0x47061AE0u); /* 0x4705BA48: call 0x47061ae0 */ /* not lifted */ 6021 RECOMP_FLAGS_IN(); 6022 ecx = esp + 0x1C; /* 0x4705BA4D: lea ecx, [esp + 0x1c] */ 6023 MEM8(esp + 0x88) = (uint8_t)(0xBu); /* 0x4705BA51: mov byte ptr [esp + 0x88], 0xb */ 6024 RECOMP_ICALL(0x4703B380u); /* 0x4705BA59: call 0x4703b380 */ /* not lifted */ 6025 RECOMP_FLAGS_IN(); 6026 ecx = MEM32(esp + 0x1C); /* 0x4705BA5E: mov ecx, dword ptr [esp + 0x1c] */ 6027 /* test ecx, ecx */ /* 0x4705BA62: test ecx, ecx */ 6028 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6029 _cf = 0; 6030 _flag_k = FK_TEST; 6031 if (TEST_Z(_flag_a, _flag_b)) goto L_4705BA7B; /* 0x4705BA64: je 0x4705ba7b */ 6032 L_4705BA66: 6033 PUSH32(esp, 0); /* 0x4705BA66: push 0 */ 6034 RECOMP_ICALL(0x4708CFB0u); /* 0x4705BA68: call 0x4708cfb0 */ /* not lifted */ 6035 RECOMP_FLAGS_IN(); 6036 ecx = MEM32(esp + 0x24); /* 0x4705BA6D: mov ecx, dword ptr [esp + 0x24] */ 6037 eax = MEM32(esp + 0x1C); /* 0x4705BA71: mov eax, dword ptr [esp + 0x1c] */ 6038 edx = MEM32(ecx); /* 0x4705BA75: mov edx, dword ptr [ecx] */ 6039 PUSH32(esp, eax); /* 0x4705BA77: push eax */ 6040 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4705BA78: call dword ptr [edx + 0xc] */ 6041 RECOMP_FLAGS_IN(); 6042 L_4705BA7B: 6043 ecx = esp + 0x48; /* 0x4705BA7B: lea ecx, [esp + 0x48] */ 6044 MEM32(esp + 0x1C) = 0; /* 0x4705BA7F: mov dword ptr [esp + 0x1c], 0 */ 6045 MEM32(esp + 0x88) = edi; /* 0x4705BA87: mov dword ptr [esp + 0x88], edi */ 6046 MEM32(esp + 0x48) = 0x470AC520u; /* 0x4705BA8E: mov dword ptr [esp + 0x48], 0x470ac520 */ 6047 RECOMP_ICALL(0x47014F70u); /* 0x4705BA96: call 0x47014f70 */ /* not lifted */ 6048 RECOMP_FLAGS_IN(); 6049 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6050 eax = 0; /* 0x4705BA9B: xor eax, eax */ 6051 _cf = 0; 6052 _flag_k = FK_TEST; 6053 ecx = MEM32(esp + 0x80); /* 0x4705BA9D: mov ecx, dword ptr [esp + 0x80] */ 6054 edi = POP32_VAL(esp); /* 0x4705BAA4: pop edi */ 6055 esi = POP32_VAL(esp); /* 0x4705BAA5: pop esi */ 6056 ebp = POP32_VAL(esp); /* 0x4705BAA6: pop ebp */ 6057 ebx = POP32_VAL(esp); /* 0x4705BAA7: pop ebx */ 6058 MEM32(FS_BASE + (0)) = ecx; /* 0x4705BAA8: mov dword ptr fs:[0], ecx */ 6059 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x7Cu); 6060 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6061 esp = esp + 0x7Cu; /* 0x4705BAAF: add esp, 0x7c */ 6062 _flag_k = FK_ADD; 6063 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4705BAB2: ret 4 */ 6064 RECOMP_REGS_OUT(); 6065 } 6066 6067 void sub_4705BA9D(void) { 6068 int _fpu_cmp = 0; 6069 uint32_t _cf = 0; 6070 int _df = 1; 6071 uint32_t _flag_k = FK_NONE; 6072 uint32_t _flag_a = 0, _flag_b = 0; 6073 uint32_t _itail_tgt = 0; 6074 RECOMP_REGS_LOCALS 6075 RECOMP_ENTER(0x4705BA9Du); 6076 6077 L_4705BA9D: 6078 ecx = MEM32(esp + 0x80); /* 0x4705BA9D: mov ecx, dword ptr [esp + 0x80] */ 6079 edi = POP32_VAL(esp); /* 0x4705BAA4: pop edi */ 6080 esi = POP32_VAL(esp); /* 0x4705BAA5: pop esi */ 6081 ebp = POP32_VAL(esp); /* 0x4705BAA6: pop ebp */ 6082 ebx = POP32_VAL(esp); /* 0x4705BAA7: pop ebx */ 6083 MEM32(FS_BASE + (0)) = ecx; /* 0x4705BAA8: mov dword ptr fs:[0], ecx */ 6084 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x7Cu); 6085 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6086 esp = esp + 0x7Cu; /* 0x4705BAAF: add esp, 0x7c */ 6087 _flag_k = FK_ADD; 6088 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4705BAB2: ret 4 */ 6089 RECOMP_REGS_OUT(); 6090 } 6091 6092 void sub_4705BAC0(void) { 6093 int _fpu_cmp = 0; 6094 uint32_t _cf = 0; 6095 int _df = 1; 6096 uint32_t _flag_k = FK_NONE; 6097 uint32_t _flag_a = 0, _flag_b = 0; 6098 uint32_t _itail_tgt = 0; 6099 RECOMP_REGS_LOCALS 6100 RECOMP_ENTER(0x4705BAC0u); 6101 6102 L_4705BAC0: 6103 PUSH32(esp, esi); /* 0x4705BAC0: push esi */ 6104 esi = ecx; /* 0x4705BAC1: mov esi, ecx */ 6105 PUSH32(esp, 0xFFFFu); /* 0x4705BAC3: push 0xffff */ 6106 RECOMP_ICALL(0x4705B7E0u); /* 0x4705BAC8: call 0x4705b7e0 */ /* not lifted */ 6107 RECOMP_FLAGS_IN(); 6108 /* cmp eax, 0xFFFFFFFFu */ /* 0x4705BACD: cmp eax, -1 */ 6109 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 6110 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6111 _flag_k = FK_CMP; 6112 if (CMP_NE(_flag_a, _flag_b)) goto L_4705BAD8; /* 0x4705BAD0: jne 0x4705bad8 */ 6113 L_4705BAD2: 6114 _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax)); 6115 eax = eax | eax; /* 0x4705BAD2: or eax, eax */ 6116 _cf = 0; 6117 _flag_k = FK_TEST; 6118 esi = POP32_VAL(esp); /* 0x4705BAD4: pop esi */ 6119 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4705BAD5: ret 4 */ 6120 L_4705BAD8: 6121 ecx = MEM32(esi); /* 0x4705BAD8: mov ecx, dword ptr [esi] */ 6122 eax = MEM32(esp + 0x8); /* 0x4705BADA: mov eax, dword ptr [esp + 8] */ 6123 MEM32(eax) = ecx; /* 0x4705BADE: mov dword ptr [eax], ecx */ 6124 edx = MEM32(esi + 0x4); /* 0x4705BAE0: mov edx, dword ptr [esi + 4] */ 6125 MEM32(eax + 0x4) = edx; /* 0x4705BAE3: mov dword ptr [eax + 4], edx */ 6126 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6127 eax = 0; /* 0x4705BAE6: xor eax, eax */ 6128 _cf = 0; 6129 _flag_k = FK_TEST; 6130 esi = POP32_VAL(esp); /* 0x4705BAE8: pop esi */ 6131 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4705BAE9: ret 4 */ 6132 RECOMP_REGS_OUT(); 6133 } 6134 6135 void sub_4705BAF0(void) { 6136 int _fpu_cmp = 0; 6137 uint32_t _cf = 0; 6138 int _df = 1; 6139 uint32_t _flag_k = FK_NONE; 6140 uint32_t _flag_a = 0, _flag_b = 0; 6141 uint32_t _itail_tgt = 0; 6142 RECOMP_REGS_LOCALS 6143 RECOMP_ENTER(0x4705BAF0u); 6144 6145 L_4705BAF0: 6146 eax = ecx; /* 0x4705BAF0: mov eax, ecx */ 6147 MEM32(eax) = 0xFFFFFFFFu; /* 0x4705BAF2: mov dword ptr [eax], 0xffffffff */ 6148 MEM32(eax + 0x4) = 0xFFFFFFFFu; /* 0x4705BAF8: mov dword ptr [eax + 4], 0xffffffff */ 6149 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705BAFF: ret */ 6150 RECOMP_REGS_OUT(); 6151 } 6152 6153 void sub_4705BB00(void) { 6154 int _fpu_cmp = 0; 6155 uint32_t _cf = 0; 6156 int _df = 1; 6157 uint32_t _flag_k = FK_NONE; 6158 uint32_t _flag_a = 0, _flag_b = 0; 6159 uint32_t _itail_tgt = 0; 6160 RECOMP_REGS_LOCALS 6161 RECOMP_ENTER(0x4705BB00u); 6162 6163 L_4705BB00: 6164 PUSH32(esp, edi); /* 0x4705BB00: push edi */ 6165 edi = ecx; /* 0x4705BB01: mov edi, ecx */ 6166 PUSH32(esp, 0xFFFFu); /* 0x4705BB03: push 0xffff */ 6167 RECOMP_ICALL(0x4705B7E0u); /* 0x4705BB08: call 0x4705b7e0 */ /* not lifted */ 6168 RECOMP_FLAGS_IN(); 6169 /* cmp eax, 0xFFFFFFFFu */ /* 0x4705BB0D: cmp eax, -1 */ 6170 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 6171 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6172 _flag_k = FK_CMP; 6173 if (CMP_EQ(_flag_a, _flag_b)) goto L_4705BB26; /* 0x4705BB10: je 0x4705bb26 */ 6174 L_4705BB12: 6175 ecx = MEM32(edi); /* 0x4705BB12: mov ecx, dword ptr [edi] */ 6176 eax = MEM32(esp + 0x8); /* 0x4705BB14: mov eax, dword ptr [esp + 8] */ 6177 MEM32(eax) = ecx; /* 0x4705BB18: mov dword ptr [eax], ecx */ 6178 edx = MEM32(edi + 0x4); /* 0x4705BB1A: mov edx, dword ptr [edi + 4] */ 6179 MEM32(eax + 0x4) = edx; /* 0x4705BB1D: mov dword ptr [eax + 4], edx */ 6180 eax = edi; /* 0x4705BB20: mov eax, edi */ 6181 edi = POP32_VAL(esp); /* 0x4705BB22: pop edi */ 6182 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4705BB23: ret 4 */ 6183 L_4705BB26: 6184 PUSH32(esp, ebx); /* 0x4705BB26: push ebx */ 6185 PUSH32(esp, esi); /* 0x4705BB27: push esi */ 6186 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4705BB28: call dword ptr [0x470ac150] */ 6187 RECOMP_FLAGS_IN(); 6188 ebx = eax; /* 0x4705BB2E: mov ebx, eax */ 6189 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4705BB30: call dword ptr [0x470ac3c8] */ 6190 RECOMP_FLAGS_IN(); 6191 eax = MEM32(eax); /* 0x4705BB36: mov eax, dword ptr [eax] */ 6192 /* test eax, eax */ /* 0x4705BB38: test eax, eax */ 6193 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6194 _cf = 0; 6195 _flag_k = FK_TEST; 6196 if (TEST_Z(_flag_a, _flag_b)) goto L_4705BB3E; /* 0x4705BB3A: je 0x4705bb3e */ 6197 L_4705BB3C: 6198 ebx = eax; /* 0x4705BB3C: mov ebx, eax */ 6199 L_4705BB3E: 6200 RECOMP_ICALL(0x47039020u); /* 0x4705BB3E: call 0x47039020 */ /* not lifted */ 6201 RECOMP_FLAGS_IN(); 6202 esi = eax; /* 0x4705BB43: mov esi, eax */ 6203 ecx = esi; /* 0x4705BB45: mov ecx, esi */ 6204 RECOMP_ICALL(0x4703B210u); /* 0x4705BB47: call 0x4703b210 */ /* not lifted */ 6205 RECOMP_FLAGS_IN(); 6206 PUSH32(esp, eax); /* 0x4705BB4C: push eax */ 6207 ecx = esi; /* 0x4705BB4D: mov ecx, esi */ 6208 RECOMP_ICALL(0x4703B240u); /* 0x4705BB4F: call 0x4703b240 */ /* not lifted */ 6209 RECOMP_FLAGS_IN(); 6210 PUSH32(esp, eax); /* 0x4705BB54: push eax */ 6211 ecx = esi; /* 0x4705BB55: mov ecx, esi */ 6212 RECOMP_ICALL(0x4703B080u); /* 0x4705BB57: call 0x4703b080 */ /* not lifted */ 6213 RECOMP_FLAGS_IN(); 6214 PUSH32(esp, eax); /* 0x4705BB5C: push eax */ 6215 PUSH32(esp, ebx); /* 0x4705BB5D: push ebx */ 6216 PUSH32(esp, 0xFFFFFFFFu); /* 0x4705BB5E: push -1 */ 6217 PUSH32(esp, 0xB6u); /* 0x4705BB60: push 0xb6 */ 6218 PUSH32(esp, 0x47109488u); /* 0x4705BB65: push 0x47109488 */ 6219 ecx = esi; /* 0x4705BB6A: mov ecx, esi */ 6220 RECOMP_ICALL(0x4703A340u); /* 0x4705BB6C: call 0x4703a340 */ /* not lifted */ 6221 RECOMP_FLAGS_IN(); 6222 PUSH32(esp, 0x471094BCu); /* 0x4705BB71: push 0x471094bc */ 6223 PUSH32(esp, 0x80u); /* 0x4705BB76: push 0x80 */ 6224 PUSH32(esp, esi); /* 0x4705BB7B: push esi */ 6225 RECOMP_ICALL(0x47039830u); /* 0x4705BB7C: call 0x47039830 */ /* not lifted */ 6226 RECOMP_FLAGS_IN(); 6227 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6228 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6229 esp = esp + 0xCu; /* 0x4705BB81: add esp, 0xc */ 6230 _flag_k = FK_ADD; 6231 esi = POP32_VAL(esp); /* 0x4705BB84: pop esi */ 6232 ebx = POP32_VAL(esp); /* 0x4705BB85: pop ebx */ 6233 eax = edi; /* 0x4705BB86: mov eax, edi */ 6234 edi = POP32_VAL(esp); /* 0x4705BB88: pop edi */ 6235 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4705BB89: ret 4 */ 6236 RECOMP_REGS_OUT(); 6237 } 6238 6239 void sub_4705BB90(void) { 6240 int _fpu_cmp = 0; 6241 uint32_t _cf = 0; 6242 int _df = 1; 6243 uint32_t _flag_k = FK_NONE; 6244 uint32_t _flag_a = 0, _flag_b = 0; 6245 uint32_t _itail_tgt = 0; 6246 RECOMP_REGS_LOCALS 6247 RECOMP_ENTER(0x4705BB90u); 6248 6249 L_4705BB90: 6250 PUSH32(esp, ebx); /* 0x4705BB90: push ebx */ 6251 ebx = MEM32(0x470AC4A4); /* 0x4705BB91: mov ebx, dword ptr [0x470ac4a4] */ 6252 PUSH32(esp, ebp); /* 0x4705BB97: push ebp */ 6253 ebp = MEM32(0x470AC3C8); /* 0x4705BB98: mov ebp, dword ptr [0x470ac3c8] */ 6254 PUSH32(esp, esi); /* 0x4705BB9E: push esi */ 6255 PUSH32(esp, edi); /* 0x4705BB9F: push edi */ 6256 edi = ecx; /* 0x4705BBA0: mov edi, ecx */ 6257 eax = MEM32(edi); /* 0x4705BBA2: mov eax, dword ptr [edi] */ 6258 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6259 esi = 0; /* 0x4705BBA4: xor esi, esi */ 6260 _cf = 0; 6261 _flag_k = FK_TEST; 6262 /* cmp eax, 0xFFFFFFFFu */ /* 0x4705BBA6: cmp eax, -1 */ 6263 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 6264 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6265 _flag_k = FK_CMP; 6266 if (CMP_EQ(_flag_a, _flag_b)) goto L_4705BBC6; /* 0x4705BBA9: je 0x4705bbc6 */ 6267 L_4705BBAB: 6268 PUSH32(esp, eax); /* 0x4705BBAB: push eax */ 6269 RECOMP_ICALL(MEM32(0x470AC428)); /* 0x4705BBAC: call dword ptr [0x470ac428] */ 6270 RECOMP_FLAGS_IN(); 6271 /* cmp eax, 0xFFFFFFFFu */ /* 0x4705BBB2: cmp eax, -1 */ 6272 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 6273 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6274 _flag_k = FK_CMP; 6275 if (CMP_NE(_flag_a, _flag_b)) goto L_4705BBC4; /* 0x4705BBB5: jne 0x4705bbc4 */ 6276 L_4705BBB7: 6277 RECOMP_ICALL(ebx); /* 0x4705BBB7: call ebx */ 6278 RECOMP_FLAGS_IN(); 6279 esi = eax; /* 0x4705BBB9: mov esi, eax */ 6280 RECOMP_ICALL(ebp); /* 0x4705BBBB: call ebp */ 6281 RECOMP_FLAGS_IN(); 6282 MEM32(eax) = esi; /* 0x4705BBBD: mov dword ptr [eax], esi */ 6283 _flag_a = (uint32_t)((esi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((esi | 0xFFFFFFFFu)); 6284 esi = esi | 0xFFFFFFFFu; /* 0x4705BBBF: or esi, 0xffffffff */ 6285 _cf = 0; 6286 _flag_k = FK_TEST; 6287 goto L_4705BBC6; /* 0x4705BBC2: jmp 0x4705bbc6 */ 6288 L_4705BBC4: 6289 esi = eax; /* 0x4705BBC4: mov esi, eax */ 6290 L_4705BBC6: 6291 eax = MEM32(edi + 0x4); /* 0x4705BBC6: mov eax, dword ptr [edi + 4] */ 6292 /* cmp eax, 0xFFFFFFFFu */ /* 0x4705BBC9: cmp eax, -1 */ 6293 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 6294 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6295 _flag_k = FK_CMP; 6296 MEM32(edi) = 0xFFFFFFFFu; /* 0x4705BBCC: mov dword ptr [edi], 0xffffffff */ 6297 if (CMP_EQ(_flag_a, _flag_b)) goto L_4705BBED; /* 0x4705BBD2: je 0x4705bbed */ 6298 L_4705BBD4: 6299 PUSH32(esp, eax); /* 0x4705BBD4: push eax */ 6300 RECOMP_ICALL(MEM32(0x470AC428)); /* 0x4705BBD5: call dword ptr [0x470ac428] */ 6301 RECOMP_FLAGS_IN(); 6302 /* cmp eax, 0xFFFFFFFFu */ /* 0x4705BBDB: cmp eax, -1 */ 6303 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 6304 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6305 _flag_k = FK_CMP; 6306 if (CMP_NE(_flag_a, _flag_b)) goto L_4705BBEB; /* 0x4705BBDE: jne 0x4705bbeb */ 6307 L_4705BBE0: 6308 RECOMP_ICALL(ebx); /* 0x4705BBE0: call ebx */ 6309 RECOMP_FLAGS_IN(); 6310 ebx = eax; /* 0x4705BBE2: mov ebx, eax */ 6311 RECOMP_ICALL(ebp); /* 0x4705BBE4: call ebp */ 6312 RECOMP_FLAGS_IN(); 6313 MEM32(eax) = ebx; /* 0x4705BBE6: mov dword ptr [eax], ebx */ 6314 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6315 eax = eax | 0xFFFFFFFFu; /* 0x4705BBE8: or eax, 0xffffffff */ 6316 _cf = 0; 6317 _flag_k = FK_TEST; 6318 L_4705BBEB: 6319 _flag_a = (uint32_t)((esi | eax)); _flag_b = (uint32_t)((esi | eax)); 6320 esi = esi | eax; /* 0x4705BBEB: or esi, eax */ 6321 _cf = 0; 6322 _flag_k = FK_TEST; 6323 L_4705BBED: 6324 MEM32(edi + 0x4) = 0xFFFFFFFFu; /* 0x4705BBED: mov dword ptr [edi + 4], 0xffffffff */ 6325 edi = POP32_VAL(esp); /* 0x4705BBF4: pop edi */ 6326 eax = esi; /* 0x4705BBF5: mov eax, esi */ 6327 esi = POP32_VAL(esp); /* 0x4705BBF7: pop esi */ 6328 ebp = POP32_VAL(esp); /* 0x4705BBF8: pop ebp */ 6329 ebx = POP32_VAL(esp); /* 0x4705BBF9: pop ebx */ 6330 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705BBFA: ret */ 6331 RECOMP_REGS_OUT(); 6332 } 6333 6334 void sub_4705BBC6(void) { 6335 int _fpu_cmp = 0; 6336 uint32_t _cf = 0; 6337 int _df = 1; 6338 uint32_t _flag_k = FK_NONE; 6339 uint32_t _flag_a = 0, _flag_b = 0; 6340 uint32_t _itail_tgt = 0; 6341 RECOMP_REGS_LOCALS 6342 RECOMP_ENTER(0x4705BBC6u); 6343 6344 L_4705BBC6: 6345 eax = MEM32(edi + 0x4); /* 0x4705BBC6: mov eax, dword ptr [edi + 4] */ 6346 /* cmp eax, 0xFFFFFFFFu */ /* 0x4705BBC9: cmp eax, -1 */ 6347 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 6348 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6349 _flag_k = FK_CMP; 6350 MEM32(edi) = 0xFFFFFFFFu; /* 0x4705BBCC: mov dword ptr [edi], 0xffffffff */ 6351 if (CMP_EQ(_flag_a, _flag_b)) goto L_4705BBED; /* 0x4705BBD2: je 0x4705bbed */ 6352 L_4705BBD4: 6353 PUSH32(esp, eax); /* 0x4705BBD4: push eax */ 6354 RECOMP_ICALL(MEM32(0x470AC428)); /* 0x4705BBD5: call dword ptr [0x470ac428] */ 6355 RECOMP_FLAGS_IN(); 6356 /* cmp eax, 0xFFFFFFFFu */ /* 0x4705BBDB: cmp eax, -1 */ 6357 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 6358 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6359 _flag_k = FK_CMP; 6360 if (CMP_NE(_flag_a, _flag_b)) goto L_4705BBEB; /* 0x4705BBDE: jne 0x4705bbeb */ 6361 L_4705BBE0: 6362 RECOMP_ICALL(ebx); /* 0x4705BBE0: call ebx */ 6363 RECOMP_FLAGS_IN(); 6364 ebx = eax; /* 0x4705BBE2: mov ebx, eax */ 6365 RECOMP_ICALL(ebp); /* 0x4705BBE4: call ebp */ 6366 RECOMP_FLAGS_IN(); 6367 MEM32(eax) = ebx; /* 0x4705BBE6: mov dword ptr [eax], ebx */ 6368 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6369 eax = eax | 0xFFFFFFFFu; /* 0x4705BBE8: or eax, 0xffffffff */ 6370 _cf = 0; 6371 _flag_k = FK_TEST; 6372 L_4705BBEB: 6373 _flag_a = (uint32_t)((esi | eax)); _flag_b = (uint32_t)((esi | eax)); 6374 esi = esi | eax; /* 0x4705BBEB: or esi, eax */ 6375 _cf = 0; 6376 _flag_k = FK_TEST; 6377 L_4705BBED: 6378 MEM32(edi + 0x4) = 0xFFFFFFFFu; /* 0x4705BBED: mov dword ptr [edi + 4], 0xffffffff */ 6379 edi = POP32_VAL(esp); /* 0x4705BBF4: pop edi */ 6380 eax = esi; /* 0x4705BBF5: mov eax, esi */ 6381 esi = POP32_VAL(esp); /* 0x4705BBF7: pop esi */ 6382 ebp = POP32_VAL(esp); /* 0x4705BBF8: pop ebp */ 6383 ebx = POP32_VAL(esp); /* 0x4705BBF9: pop ebx */ 6384 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705BBFA: ret */ 6385 RECOMP_REGS_OUT(); 6386 } 6387 6388 void sub_4705BC00(void) { 6389 int _fpu_cmp = 0; 6390 uint32_t _cf = 0; 6391 int _df = 1; 6392 uint32_t _flag_k = FK_NONE; 6393 uint32_t _flag_a = 0, _flag_b = 0; 6394 uint32_t _itail_tgt = 0; 6395 RECOMP_REGS_LOCALS 6396 RECOMP_ENTER(0x4705BC00u); 6397 6398 L_4705BC00: 6399 ecx = 0x4710EA51u; /* 0x4705BC00: mov ecx, 0x4710ea51 */ 6400 RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x4705BC05: call dword ptr [0x470ac1c8] */ 6401 RECOMP_FLAGS_IN(); 6402 PUSH32(esp, 0x4705BC20u); /* 0x4705BC0B: push 0x4705bc20 */ 6403 RECOMP_ICALL(0x470A32D9u); /* 0x4705BC10: call 0x470a32d9 */ /* not lifted */ 6404 RECOMP_FLAGS_IN(); 6405 ecx = POP32_VAL(esp); /* 0x4705BC15: pop ecx */ 6406 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705BC16: ret */ 6407 RECOMP_REGS_OUT(); 6408 } 6409 6410 void sub_4705BC20(void) { 6411 int _fpu_cmp = 0; 6412 uint32_t _cf = 0; 6413 int _df = 1; 6414 uint32_t _flag_k = FK_NONE; 6415 uint32_t _flag_a = 0, _flag_b = 0; 6416 uint32_t _itail_tgt = 0; 6417 RECOMP_REGS_LOCALS 6418 RECOMP_ENTER(0x4705BC20u); 6419 6420 L_4705BC20: 6421 ecx = 0x4710EA51u; /* 0x4705BC20: mov ecx, 0x4710ea51 */ 6422 L_4705BC25: 6423 { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; } 6424 { RECOMP_REGS_OUT(); return; } /* end of function */ 6425 _ljump: 6426 switch (_itail_tgt) { 6427 case 0x4705BC20u: goto L_4705BC20; 6428 case 0x4705BC25u: goto L_4705BC25; 6429 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6430 } 6431 RECOMP_REGS_OUT(); 6432 } 6433 6434 void sub_4705BC30(void) { 6435 int _fpu_cmp = 0; 6436 uint32_t _cf = 0; 6437 int _df = 1; 6438 uint32_t _flag_k = FK_NONE; 6439 uint32_t _flag_a = 0, _flag_b = 0; 6440 uint32_t _itail_tgt = 0; 6441 RECOMP_REGS_LOCALS 6442 RECOMP_ENTER(0x4705BC30u); 6443 6444 L_4705BC30: 6445 ecx = 0x4710EA50u; /* 0x4705BC30: mov ecx, 0x4710ea50 */ 6446 RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x4705BC35: call dword ptr [0x470ac1c4] */ 6447 RECOMP_FLAGS_IN(); 6448 PUSH32(esp, 0x4705BC50u); /* 0x4705BC3B: push 0x4705bc50 */ 6449 RECOMP_ICALL(0x470A32D9u); /* 0x4705BC40: call 0x470a32d9 */ /* not lifted */ 6450 RECOMP_FLAGS_IN(); 6451 ecx = POP32_VAL(esp); /* 0x4705BC45: pop ecx */ 6452 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705BC46: ret */ 6453 RECOMP_REGS_OUT(); 6454 } 6455 6456 void sub_4705BC50(void) { 6457 int _fpu_cmp = 0; 6458 uint32_t _cf = 0; 6459 int _df = 1; 6460 uint32_t _flag_k = FK_NONE; 6461 uint32_t _flag_a = 0, _flag_b = 0; 6462 uint32_t _itail_tgt = 0; 6463 RECOMP_REGS_LOCALS 6464 RECOMP_ENTER(0x4705BC50u); 6465 6466 L_4705BC50: 6467 ecx = 0x4710EA50u; /* 0x4705BC50: mov ecx, 0x4710ea50 */ 6468 L_4705BC55: 6469 { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; } 6470 { RECOMP_REGS_OUT(); return; } /* end of function */ 6471 _ljump: 6472 switch (_itail_tgt) { 6473 case 0x4705BC50u: goto L_4705BC50; 6474 case 0x4705BC55u: goto L_4705BC55; 6475 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6476 } 6477 RECOMP_REGS_OUT(); 6478 } 6479 6480 void sub_4705BC60(void) { 6481 int _fpu_cmp = 0; 6482 uint32_t _cf = 0; 6483 int _df = 1; 6484 uint32_t _flag_k = FK_NONE; 6485 uint32_t _flag_a = 0, _flag_b = 0; 6486 uint32_t _itail_tgt = 0; 6487 RECOMP_REGS_LOCALS 6488 RECOMP_ENTER(0x4705BC60u); 6489 6490 L_4705BC60: 6491 MEM32(0x4710EA40) = 0x47104A3Cu; /* 0x4705BC60: mov dword ptr [0x4710ea40], 0x47104a3c */ 6492 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705BC6A: ret */ 6493 RECOMP_REGS_OUT(); 6494 } 6495 6496 void sub_4705BC70(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(0x4705BC70u); 6505 6506 L_4705BC70: 6507 MEM32(0x4710EA5C) = 0x47104A00u; /* 0x4705BC70: mov dword ptr [0x4710ea5c], 0x47104a00 */ 6508 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705BC7A: ret */ 6509 RECOMP_REGS_OUT(); 6510 } 6511 6512 void sub_4705BC80(void) { 6513 int _fpu_cmp = 0; 6514 uint32_t _cf = 0; 6515 int _df = 1; 6516 uint32_t _flag_k = FK_NONE; 6517 uint32_t _flag_a = 0, _flag_b = 0; 6518 uint32_t _itail_tgt = 0; 6519 RECOMP_REGS_LOCALS 6520 RECOMP_ENTER(0x4705BC80u); 6521 6522 L_4705BC80: 6523 MEM32(0x4710EA54) = 0x47104A70u; /* 0x4705BC80: mov dword ptr [0x4710ea54], 0x47104a70 */ 6524 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705BC8A: ret */ 6525 RECOMP_REGS_OUT(); 6526 } 6527 6528 void sub_4705BC90(void) { 6529 int _fpu_cmp = 0; 6530 uint32_t _cf = 0; 6531 int _df = 1; 6532 uint32_t _flag_k = FK_NONE; 6533 uint32_t _flag_a = 0, _flag_b = 0; 6534 uint32_t _itail_tgt = 0; 6535 RECOMP_REGS_LOCALS 6536 RECOMP_ENTER(0x4705BC90u); 6537 6538 L_4705BC90: 6539 MEM32(0x4710EA68) = 0x47104B6Cu; /* 0x4705BC90: mov dword ptr [0x4710ea68], 0x47104b6c */ 6540 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705BC9A: ret */ 6541 RECOMP_REGS_OUT(); 6542 } 6543 6544 void sub_4705BCA0(void) { 6545 int _fpu_cmp = 0; 6546 uint32_t _cf = 0; 6547 int _df = 1; 6548 uint32_t _flag_k = FK_NONE; 6549 uint32_t _flag_a = 0, _flag_b = 0; 6550 uint32_t _itail_tgt = 0; 6551 RECOMP_REGS_LOCALS 6552 RECOMP_ENTER(0x4705BCA0u); 6553 6554 L_4705BCA0: 6555 MEM32(0x4710EA48) = 0x47104BA0u; /* 0x4705BCA0: mov dword ptr [0x4710ea48], 0x47104ba0 */ 6556 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705BCAA: ret */ 6557 RECOMP_REGS_OUT(); 6558 } 6559 6560 void sub_4705BCB0(void) { 6561 int _fpu_cmp = 0; 6562 uint32_t _cf = 0; 6563 int _df = 1; 6564 uint32_t _flag_k = FK_NONE; 6565 uint32_t _flag_a = 0, _flag_b = 0; 6566 uint32_t _itail_tgt = 0; 6567 RECOMP_REGS_LOCALS 6568 RECOMP_ENTER(0x4705BCB0u); 6569 6570 L_4705BCB0: 6571 MEM32(0x4710EA64) = 0x47104BD4u; /* 0x4705BCB0: mov dword ptr [0x4710ea64], 0x47104bd4 */ 6572 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705BCBA: ret */ 6573 RECOMP_REGS_OUT(); 6574 } 6575 6576 void sub_4705BCC0(void) { 6577 int _fpu_cmp = 0; 6578 uint32_t _cf = 0; 6579 int _df = 1; 6580 uint32_t _flag_k = FK_NONE; 6581 uint32_t _flag_a = 0, _flag_b = 0; 6582 uint32_t _itail_tgt = 0; 6583 RECOMP_REGS_LOCALS 6584 RECOMP_ENTER(0x4705BCC0u); 6585 6586 L_4705BCC0: 6587 MEM32(0x4710EA60) = 0x471050FCu; /* 0x4705BCC0: mov dword ptr [0x4710ea60], 0x471050fc */ 6588 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705BCCA: ret */ 6589 RECOMP_REGS_OUT(); 6590 } 6591 6592 void sub_4705BCD0(void) { 6593 int _fpu_cmp = 0; 6594 uint32_t _cf = 0; 6595 int _df = 1; 6596 uint32_t _flag_k = FK_NONE; 6597 uint32_t _flag_a = 0, _flag_b = 0; 6598 uint32_t _itail_tgt = 0; 6599 RECOMP_REGS_LOCALS 6600 RECOMP_ENTER(0x4705BCD0u); 6601 6602 L_4705BCD0: 6603 PUSH32(esp, 0); /* 0x4705BCD0: push 0 */ 6604 PUSH32(esp, 0); /* 0x4705BCD2: push 0 */ 6605 RECOMP_ICALL(0x4708FA90u); /* 0x4705BCD4: call 0x4708fa90 */ /* not lifted */ 6606 RECOMP_FLAGS_IN(); 6607 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705BCD9: ret */ 6608 RECOMP_REGS_OUT(); 6609 } 6610 6611 void sub_4705BCE0(void) { 6612 int _fpu_cmp = 0; 6613 uint32_t _cf = 0; 6614 int _df = 1; 6615 uint32_t _flag_k = FK_NONE; 6616 uint32_t _flag_a = 0, _flag_b = 0; 6617 uint32_t _itail_tgt = 0; 6618 RECOMP_REGS_LOCALS 6619 RECOMP_ENTER(0x4705BCE0u); 6620 6621 L_4705BCE0: 6622 PUSH32(esp, esi); /* 0x4705BCE0: push esi */ 6623 PUSH32(esp, edi); /* 0x4705BCE1: push edi */ 6624 esi = ecx; /* 0x4705BCE2: mov esi, ecx */ 6625 edi = esi + 0x14; /* 0x4705BCE4: lea edi, [esi + 0x14] */ 6626 PUSH32(esp, edi); /* 0x4705BCE7: push edi */ 6627 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x4705BCE8: call dword ptr [0x470ac180] */ 6628 RECOMP_FLAGS_IN(); 6629 esi = MEM32(esi + 0x38); /* 0x4705BCEE: mov esi, dword ptr [esi + 0x38] */ 6630 PUSH32(esp, edi); /* 0x4705BCF1: push edi */ 6631 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4705BCF2: call dword ptr [0x470ac190] */ 6632 RECOMP_FLAGS_IN(); 6633 edi = POP32_VAL(esp); /* 0x4705BCF8: pop edi */ 6634 eax = esi; /* 0x4705BCF9: mov eax, esi */ 6635 esi = POP32_VAL(esp); /* 0x4705BCFB: pop esi */ 6636 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705BCFC: ret */ 6637 RECOMP_REGS_OUT(); 6638 } 6639 6640 void sub_4705BD00(void) { 6641 int _fpu_cmp = 0; 6642 uint32_t _cf = 0; 6643 int _df = 1; 6644 uint32_t _flag_k = FK_NONE; 6645 uint32_t _flag_a = 0, _flag_b = 0; 6646 uint32_t _itail_tgt = 0; 6647 RECOMP_REGS_LOCALS 6648 RECOMP_ENTER(0x4705BD00u); 6649 6650 L_4705BD00: 6651 PUSH32(esp, esi); /* 0x4705BD00: push esi */ 6652 PUSH32(esp, edi); /* 0x4705BD01: push edi */ 6653 esi = ecx; /* 0x4705BD02: mov esi, ecx */ 6654 edi = esi + 0x14; /* 0x4705BD04: lea edi, [esi + 0x14] */ 6655 PUSH32(esp, edi); /* 0x4705BD07: push edi */ 6656 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x4705BD08: call dword ptr [0x470ac180] */ 6657 RECOMP_FLAGS_IN(); 6658 esi = MEM32(esi + 0x30); /* 0x4705BD0E: mov esi, dword ptr [esi + 0x30] */ 6659 PUSH32(esp, edi); /* 0x4705BD11: push edi */ 6660 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4705BD12: call dword ptr [0x470ac190] */ 6661 RECOMP_FLAGS_IN(); 6662 edi = POP32_VAL(esp); /* 0x4705BD18: pop edi */ 6663 eax = esi; /* 0x4705BD19: mov eax, esi */ 6664 esi = POP32_VAL(esp); /* 0x4705BD1B: pop esi */ 6665 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705BD1C: ret */ 6666 RECOMP_REGS_OUT(); 6667 }