client/vendor/ace/source/lifted-0008.c (123804B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 4 void sub_4700F290(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(0x4700F290u); 13 14 L_4700F290: 15 edx = MEM32(ecx + 0x4); /* 0x4700F290: mov edx, dword ptr [ecx + 4] */ 16 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 17 eax = eax | 0xFFFFFFFFu; /* 0x4700F293: or eax, 0xffffffff */ 18 _cf = 0; 19 _flag_k = FK_TEST; 20 /* cmp edx, eax */ /* 0x4700F296: cmp edx, eax */ 21 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 22 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23 _flag_k = FK_CMP; 24 if (CMP_EQ(_flag_a, _flag_b)) goto L_4700F2A6; /* 0x4700F298: je 0x4700f2a6 */ 25 L_4700F29A: 26 MEM32(ecx + 0x4) = eax; /* 0x4700F29A: mov dword ptr [ecx + 4], eax */ 27 eax = MEM32(ecx); /* 0x4700F29D: mov eax, dword ptr [ecx] */ 28 PUSH32(esp, eax); /* 0x4700F29F: push eax */ 29 RECOMP_ICALL(0x47002D10u); /* 0x4700F2A0: call 0x47002d10 */ /* not lifted */ 30 RECOMP_FLAGS_IN(); 31 ecx = POP32_VAL(esp); /* 0x4700F2A5: pop ecx */ 32 L_4700F2A6: 33 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700F2A6: ret */ 34 RECOMP_REGS_OUT(); 35 } 36 37 void sub_4700F2B0(void) { 38 int _fpu_cmp = 0; 39 uint32_t _cf = 0; 40 int _df = 1; 41 uint32_t _flag_k = FK_NONE; 42 uint32_t _flag_a = 0, _flag_b = 0; 43 uint32_t _itail_tgt = 0; 44 RECOMP_REGS_LOCALS 45 RECOMP_ENTER(0x4700F2B0u); 46 47 L_4700F2B0: 48 PUSH32(esp, esi); /* 0x4700F2B0: push esi */ 49 esi = ecx; /* 0x4700F2B1: mov esi, ecx */ 50 RECOMP_ICALL(0x4700F2D0u); /* 0x4700F2B3: call 0x4700f2d0 */ /* not lifted */ 51 RECOMP_FLAGS_IN(); 52 /* test MEM8(esp + 0x8), 1 */ /* 0x4700F2B8: test byte ptr [esp + 8], 1 */ 53 _flag_a = (uint32_t)(MEM8(esp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 54 _cf = 0; 55 _flag_k = FK_NARROW(FK_TEST, 24); 56 if (TEST_Z(_flag_a, _flag_b)) goto L_4700F2C8; /* 0x4700F2BD: je 0x4700f2c8 */ 57 L_4700F2BF: 58 PUSH32(esp, esi); /* 0x4700F2BF: push esi */ 59 RECOMP_ICALL(0x470A32A2u); /* 0x4700F2C0: call 0x470a32a2 */ /* not lifted */ 60 RECOMP_FLAGS_IN(); 61 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 62 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 63 esp = esp + 4; /* 0x4700F2C5: add esp, 4 */ 64 _flag_k = FK_ADD; 65 L_4700F2C8: 66 eax = esi; /* 0x4700F2C8: mov eax, esi */ 67 esi = POP32_VAL(esp); /* 0x4700F2CA: pop esi */ 68 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F2CB: ret 4 */ 69 RECOMP_REGS_OUT(); 70 } 71 72 void sub_4700F2D0(void) { 73 int _fpu_cmp = 0; 74 uint32_t _cf = 0; 75 int _df = 1; 76 uint32_t _flag_k = FK_NONE; 77 uint32_t _flag_a = 0, _flag_b = 0; 78 uint32_t _itail_tgt = 0; 79 RECOMP_REGS_LOCALS 80 RECOMP_ENTER(0x4700F2D0u); 81 82 L_4700F2D0: 83 PUSH32(esp, 0xFFFFFFFFu); /* 0x4700F2D0: push -1 */ 84 PUSH32(esp, 0x470A39B8u); /* 0x4700F2D2: push 0x470a39b8 */ 85 eax = MEM32(FS_BASE + (0)); /* 0x4700F2D7: mov eax, dword ptr fs:[0] */ 86 PUSH32(esp, eax); /* 0x4700F2DD: push eax */ 87 MEM32(FS_BASE + (0)) = esp; /* 0x4700F2DE: mov dword ptr fs:[0], esp */ 88 PUSH32(esp, ecx); /* 0x4700F2E5: push ecx */ 89 PUSH32(esp, esi); /* 0x4700F2E6: push esi */ 90 esi = ecx; /* 0x4700F2E7: mov esi, ecx */ 91 MEM32(esp + 0x4) = esi; /* 0x4700F2E9: mov dword ptr [esp + 4], esi */ 92 ecx = esi + 0x4; /* 0x4700F2ED: lea ecx, [esi + 4] */ 93 MEM32(esp + 0x10) = 0; /* 0x4700F2F0: mov dword ptr [esp + 0x10], 0 */ 94 RECOMP_ICALL(0x47019270u); /* 0x4700F2F8: call 0x47019270 */ /* not lifted */ 95 RECOMP_FLAGS_IN(); 96 ecx = MEM32(esp + 0x8); /* 0x4700F2FD: mov ecx, dword ptr [esp + 8] */ 97 MEM32(esi) = 0x470AC4F4u; /* 0x4700F301: mov dword ptr [esi], 0x470ac4f4 */ 98 esi = POP32_VAL(esp); /* 0x4700F307: pop esi */ 99 MEM32(FS_BASE + (0)) = ecx; /* 0x4700F308: mov dword ptr fs:[0], ecx */ 100 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 101 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 102 esp = esp + 0x10u; /* 0x4700F30F: add esp, 0x10 */ 103 _flag_k = FK_ADD; 104 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700F312: ret */ 105 RECOMP_REGS_OUT(); 106 } 107 108 void sub_4700F320(void) { 109 int _fpu_cmp = 0; 110 uint32_t _cf = 0; 111 int _df = 1; 112 uint32_t _flag_k = FK_NONE; 113 uint32_t _flag_a = 0, _flag_b = 0; 114 uint32_t _itail_tgt = 0; 115 RECOMP_REGS_LOCALS 116 RECOMP_ENTER(0x4700F320u); 117 118 L_4700F320: 119 ecx = 0x4710DEADu; /* 0x4700F320: mov ecx, 0x4710dead */ 120 RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x4700F325: call dword ptr [0x470ac1c8] */ 121 RECOMP_FLAGS_IN(); 122 PUSH32(esp, 0x4700F340u); /* 0x4700F32B: push 0x4700f340 */ 123 RECOMP_ICALL(0x470A32D9u); /* 0x4700F330: call 0x470a32d9 */ /* not lifted */ 124 RECOMP_FLAGS_IN(); 125 ecx = POP32_VAL(esp); /* 0x4700F335: pop ecx */ 126 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700F336: ret */ 127 RECOMP_REGS_OUT(); 128 } 129 130 void sub_4700F340(void) { 131 int _fpu_cmp = 0; 132 uint32_t _cf = 0; 133 int _df = 1; 134 uint32_t _flag_k = FK_NONE; 135 uint32_t _flag_a = 0, _flag_b = 0; 136 uint32_t _itail_tgt = 0; 137 RECOMP_REGS_LOCALS 138 RECOMP_ENTER(0x4700F340u); 139 140 L_4700F340: 141 ecx = 0x4710DEADu; /* 0x4700F340: mov ecx, 0x4710dead */ 142 L_4700F345: 143 { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; } 144 { RECOMP_REGS_OUT(); return; } /* end of function */ 145 _ljump: 146 switch (_itail_tgt) { 147 case 0x4700F340u: goto L_4700F340; 148 case 0x4700F345u: goto L_4700F345; 149 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 150 } 151 RECOMP_REGS_OUT(); 152 } 153 154 void sub_4700F350(void) { 155 int _fpu_cmp = 0; 156 uint32_t _cf = 0; 157 int _df = 1; 158 uint32_t _flag_k = FK_NONE; 159 uint32_t _flag_a = 0, _flag_b = 0; 160 uint32_t _itail_tgt = 0; 161 RECOMP_REGS_LOCALS 162 RECOMP_ENTER(0x4700F350u); 163 164 L_4700F350: 165 ecx = 0x4710DEACu; /* 0x4700F350: mov ecx, 0x4710deac */ 166 RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x4700F355: call dword ptr [0x470ac1c4] */ 167 RECOMP_FLAGS_IN(); 168 PUSH32(esp, 0x4700F370u); /* 0x4700F35B: push 0x4700f370 */ 169 RECOMP_ICALL(0x470A32D9u); /* 0x4700F360: call 0x470a32d9 */ /* not lifted */ 170 RECOMP_FLAGS_IN(); 171 ecx = POP32_VAL(esp); /* 0x4700F365: pop ecx */ 172 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700F366: ret */ 173 RECOMP_REGS_OUT(); 174 } 175 176 void sub_4700F370(void) { 177 int _fpu_cmp = 0; 178 uint32_t _cf = 0; 179 int _df = 1; 180 uint32_t _flag_k = FK_NONE; 181 uint32_t _flag_a = 0, _flag_b = 0; 182 uint32_t _itail_tgt = 0; 183 RECOMP_REGS_LOCALS 184 RECOMP_ENTER(0x4700F370u); 185 186 L_4700F370: 187 ecx = 0x4710DEACu; /* 0x4700F370: mov ecx, 0x4710deac */ 188 L_4700F375: 189 { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; } 190 { RECOMP_REGS_OUT(); return; } /* end of function */ 191 _ljump: 192 switch (_itail_tgt) { 193 case 0x4700F370u: goto L_4700F370; 194 case 0x4700F375u: goto L_4700F375; 195 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 196 } 197 RECOMP_REGS_OUT(); 198 } 199 200 void sub_4700F380(void) { 201 int _fpu_cmp = 0; 202 uint32_t _cf = 0; 203 int _df = 1; 204 uint32_t _flag_k = FK_NONE; 205 uint32_t _flag_a = 0, _flag_b = 0; 206 uint32_t _itail_tgt = 0; 207 RECOMP_REGS_LOCALS 208 RECOMP_ENTER(0x4700F380u); 209 210 L_4700F380: 211 MEM32(0x4710DE9C) = 0x47104A3Cu; /* 0x4700F380: mov dword ptr [0x4710de9c], 0x47104a3c */ 212 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700F38A: ret */ 213 RECOMP_REGS_OUT(); 214 } 215 216 void sub_4700F390(void) { 217 int _fpu_cmp = 0; 218 uint32_t _cf = 0; 219 int _df = 1; 220 uint32_t _flag_k = FK_NONE; 221 uint32_t _flag_a = 0, _flag_b = 0; 222 uint32_t _itail_tgt = 0; 223 RECOMP_REGS_LOCALS 224 RECOMP_ENTER(0x4700F390u); 225 226 L_4700F390: 227 MEM32(0x4710DEB8) = 0x47104A00u; /* 0x4700F390: mov dword ptr [0x4710deb8], 0x47104a00 */ 228 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700F39A: ret */ 229 RECOMP_REGS_OUT(); 230 } 231 232 void sub_4700F3A0(void) { 233 int _fpu_cmp = 0; 234 uint32_t _cf = 0; 235 int _df = 1; 236 uint32_t _flag_k = FK_NONE; 237 uint32_t _flag_a = 0, _flag_b = 0; 238 uint32_t _itail_tgt = 0; 239 RECOMP_REGS_LOCALS 240 RECOMP_ENTER(0x4700F3A0u); 241 242 L_4700F3A0: 243 MEM32(0x4710DEB4) = 0x47104A70u; /* 0x4700F3A0: mov dword ptr [0x4710deb4], 0x47104a70 */ 244 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700F3AA: ret */ 245 RECOMP_REGS_OUT(); 246 } 247 248 void sub_4700F3B0(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(0x4700F3B0u); 257 258 L_4700F3B0: 259 MEM32(0x4710DED0) = 0x47104B6Cu; /* 0x4700F3B0: mov dword ptr [0x4710ded0], 0x47104b6c */ 260 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700F3BA: ret */ 261 RECOMP_REGS_OUT(); 262 } 263 264 void sub_4700F3C0(void) { 265 int _fpu_cmp = 0; 266 uint32_t _cf = 0; 267 int _df = 1; 268 uint32_t _flag_k = FK_NONE; 269 uint32_t _flag_a = 0, _flag_b = 0; 270 uint32_t _itail_tgt = 0; 271 RECOMP_REGS_LOCALS 272 RECOMP_ENTER(0x4700F3C0u); 273 274 L_4700F3C0: 275 MEM32(0x4710DEA4) = 0x47104BA0u; /* 0x4700F3C0: mov dword ptr [0x4710dea4], 0x47104ba0 */ 276 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700F3CA: ret */ 277 RECOMP_REGS_OUT(); 278 } 279 280 void sub_4700F3D0(void) { 281 int _fpu_cmp = 0; 282 uint32_t _cf = 0; 283 int _df = 1; 284 uint32_t _flag_k = FK_NONE; 285 uint32_t _flag_a = 0, _flag_b = 0; 286 uint32_t _itail_tgt = 0; 287 RECOMP_REGS_LOCALS 288 RECOMP_ENTER(0x4700F3D0u); 289 290 L_4700F3D0: 291 MEM32(0x4710DEC8) = 0x47104BD4u; /* 0x4700F3D0: mov dword ptr [0x4710dec8], 0x47104bd4 */ 292 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700F3DA: ret */ 293 RECOMP_REGS_OUT(); 294 } 295 296 void sub_4700F3E0(void) { 297 int _fpu_cmp = 0; 298 uint32_t _cf = 0; 299 int _df = 1; 300 uint32_t _flag_k = FK_NONE; 301 uint32_t _flag_a = 0, _flag_b = 0; 302 uint32_t _itail_tgt = 0; 303 RECOMP_REGS_LOCALS 304 RECOMP_ENTER(0x4700F3E0u); 305 306 L_4700F3E0: 307 MEM32(0x4710DEC0) = 0x47104C0Cu; /* 0x4700F3E0: mov dword ptr [0x4710dec0], 0x47104c0c */ 308 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700F3EA: ret */ 309 RECOMP_REGS_OUT(); 310 } 311 312 void sub_4700F3F0(void) { 313 int _fpu_cmp = 0; 314 uint32_t _cf = 0; 315 int _df = 1; 316 uint32_t _flag_k = FK_NONE; 317 uint32_t _flag_a = 0, _flag_b = 0; 318 uint32_t _itail_tgt = 0; 319 RECOMP_REGS_LOCALS 320 RECOMP_ENTER(0x4700F3F0u); 321 322 L_4700F3F0: 323 eax = ecx; /* 0x4700F3F0: mov eax, ecx */ 324 ecx = MEM32(esp + 0x4); /* 0x4700F3F2: mov ecx, dword ptr [esp + 4] */ 325 edx = MEM32(ecx + 0x4); /* 0x4700F3F6: mov edx, dword ptr [ecx + 4] */ 326 MEM32(eax + 0x4) = edx; /* 0x4700F3F9: mov dword ptr [eax + 4], edx */ 327 ecx = MEM32(ecx + 0x8); /* 0x4700F3FC: mov ecx, dword ptr [ecx + 8] */ 328 MEM32(eax + 0x8) = ecx; /* 0x4700F3FF: mov dword ptr [eax + 8], ecx */ 329 MEM32(eax) = 0x470AC7B4u; /* 0x4700F402: mov dword ptr [eax], 0x470ac7b4 */ 330 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F408: ret 4 */ 331 RECOMP_REGS_OUT(); 332 } 333 334 void sub_4700F410(void) { 335 int _fpu_cmp = 0; 336 uint32_t _cf = 0; 337 int _df = 1; 338 uint32_t _flag_k = FK_NONE; 339 uint32_t _flag_a = 0, _flag_b = 0; 340 uint32_t _itail_tgt = 0; 341 RECOMP_REGS_LOCALS 342 RECOMP_ENTER(0x4700F410u); 343 344 L_4700F410: 345 PUSH32(esp, ebx); /* 0x4700F410: push ebx */ 346 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x4700F411: mov bl, byte ptr [esp + 8] */ 347 /* test LO8(ebx), 2 */ /* 0x4700F415: test bl, 2 */ 348 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 349 _cf = 0; 350 _flag_k = FK_NARROW(FK_TEST, 24); 351 PUSH32(esp, esi); /* 0x4700F418: push esi */ 352 esi = ecx; /* 0x4700F419: mov esi, ecx */ 353 if (TEST_Z(_flag_a, _flag_b)) goto L_4700F448; /* 0x4700F41B: je 0x4700f448 */ 354 L_4700F41D: 355 eax = MEM32(esi + (-0x4)); /* 0x4700F41D: mov eax, dword ptr [esi - 4] */ 356 PUSH32(esp, edi); /* 0x4700F420: push edi */ 357 PUSH32(esp, 0x47082270u); /* 0x4700F421: push 0x47082270 */ 358 edi = esi + (-0x4); /* 0x4700F426: lea edi, [esi - 4] */ 359 PUSH32(esp, eax); /* 0x4700F429: push eax */ 360 PUSH32(esp, 0xCu); /* 0x4700F42A: push 0xc */ 361 PUSH32(esp, esi); /* 0x4700F42C: push esi */ 362 RECOMP_ICALL(0x470A32EBu); /* 0x4700F42D: call 0x470a32eb */ /* not lifted */ 363 RECOMP_FLAGS_IN(); 364 /* test LO8(ebx), 1 */ /* 0x4700F432: test bl, 1 */ 365 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 366 _cf = 0; 367 _flag_k = FK_NARROW(FK_TEST, 24); 368 if (TEST_Z(_flag_a, _flag_b)) goto L_4700F440; /* 0x4700F435: je 0x4700f440 */ 369 L_4700F437: 370 PUSH32(esp, edi); /* 0x4700F437: push edi */ 371 RECOMP_ICALL(0x470A32A2u); /* 0x4700F438: call 0x470a32a2 */ /* not lifted */ 372 RECOMP_FLAGS_IN(); 373 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 374 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 375 esp = esp + 4; /* 0x4700F43D: add esp, 4 */ 376 _flag_k = FK_ADD; 377 L_4700F440: 378 eax = edi; /* 0x4700F440: mov eax, edi */ 379 edi = POP32_VAL(esp); /* 0x4700F442: pop edi */ 380 esi = POP32_VAL(esp); /* 0x4700F443: pop esi */ 381 ebx = POP32_VAL(esp); /* 0x4700F444: pop ebx */ 382 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F445: ret 4 */ 383 L_4700F448: 384 ecx = esi; /* 0x4700F448: mov ecx, esi */ 385 RECOMP_ICALL(0x47082270u); /* 0x4700F44A: call 0x47082270 */ /* not lifted */ 386 RECOMP_FLAGS_IN(); 387 /* test LO8(ebx), 1 */ /* 0x4700F44F: test bl, 1 */ 388 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 389 _cf = 0; 390 _flag_k = FK_NARROW(FK_TEST, 24); 391 if (TEST_Z(_flag_a, _flag_b)) goto L_4700F45D; /* 0x4700F452: je 0x4700f45d */ 392 L_4700F454: 393 PUSH32(esp, esi); /* 0x4700F454: push esi */ 394 RECOMP_ICALL(0x470A32A2u); /* 0x4700F455: call 0x470a32a2 */ /* not lifted */ 395 RECOMP_FLAGS_IN(); 396 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 397 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 398 esp = esp + 4; /* 0x4700F45A: add esp, 4 */ 399 _flag_k = FK_ADD; 400 L_4700F45D: 401 eax = esi; /* 0x4700F45D: mov eax, esi */ 402 esi = POP32_VAL(esp); /* 0x4700F45F: pop esi */ 403 ebx = POP32_VAL(esp); /* 0x4700F460: pop ebx */ 404 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F461: ret 4 */ 405 RECOMP_REGS_OUT(); 406 } 407 408 void sub_4700F470(void) { 409 int _fpu_cmp = 0; 410 uint32_t _cf = 0; 411 int _df = 1; 412 uint32_t _flag_k = FK_NONE; 413 uint32_t _flag_a = 0, _flag_b = 0; 414 uint32_t _itail_tgt = 0; 415 RECOMP_REGS_LOCALS 416 RECOMP_ENTER(0x4700F470u); 417 418 L_4700F470: 419 eax = ecx; /* 0x4700F470: mov eax, ecx */ 420 ecx = MEM32(esp + 0x4); /* 0x4700F472: mov ecx, dword ptr [esp + 4] */ 421 edx = MEM32(ecx + 0x4); /* 0x4700F476: mov edx, dword ptr [ecx + 4] */ 422 MEM32(eax + 0x4) = edx; /* 0x4700F479: mov dword ptr [eax + 4], edx */ 423 edx = MEM32(ecx + 0x8); /* 0x4700F47C: mov edx, dword ptr [ecx + 8] */ 424 MEM32(eax) = 0x470AC7B4u; /* 0x4700F47F: mov dword ptr [eax], 0x470ac7b4 */ 425 MEM32(eax + 0x8) = edx; /* 0x4700F485: mov dword ptr [eax + 8], edx */ 426 ecx = MEM32(ecx + 0xC); /* 0x4700F488: mov ecx, dword ptr [ecx + 0xc] */ 427 MEM32(eax + 0xC) = ecx; /* 0x4700F48B: mov dword ptr [eax + 0xc], ecx */ 428 MEM32(eax) = 0x470AC7C0u; /* 0x4700F48E: mov dword ptr [eax], 0x470ac7c0 */ 429 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F494: ret 4 */ 430 RECOMP_REGS_OUT(); 431 } 432 433 void sub_4700F4A0(void) { 434 int _fpu_cmp = 0; 435 uint32_t _cf = 0; 436 int _df = 1; 437 uint32_t _flag_k = FK_NONE; 438 uint32_t _flag_a = 0, _flag_b = 0; 439 uint32_t _itail_tgt = 0; 440 RECOMP_REGS_LOCALS 441 RECOMP_ENTER(0x4700F4A0u); 442 443 L_4700F4A0: 444 PUSH32(esp, ebx); /* 0x4700F4A0: push ebx */ 445 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x4700F4A1: mov bl, byte ptr [esp + 8] */ 446 /* test LO8(ebx), 2 */ /* 0x4700F4A5: test bl, 2 */ 447 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 448 _cf = 0; 449 _flag_k = FK_NARROW(FK_TEST, 24); 450 PUSH32(esp, esi); /* 0x4700F4A8: push esi */ 451 esi = ecx; /* 0x4700F4A9: mov esi, ecx */ 452 if (TEST_Z(_flag_a, _flag_b)) goto L_4700F4D8; /* 0x4700F4AB: je 0x4700f4d8 */ 453 L_4700F4AD: 454 eax = MEM32(esi + (-0x4)); /* 0x4700F4AD: mov eax, dword ptr [esi - 4] */ 455 PUSH32(esp, edi); /* 0x4700F4B0: push edi */ 456 PUSH32(esp, 0x470132D0u); /* 0x4700F4B1: push 0x470132d0 */ 457 edi = esi + (-0x4); /* 0x4700F4B6: lea edi, [esi - 4] */ 458 PUSH32(esp, eax); /* 0x4700F4B9: push eax */ 459 PUSH32(esp, 0x10u); /* 0x4700F4BA: push 0x10 */ 460 PUSH32(esp, esi); /* 0x4700F4BC: push esi */ 461 RECOMP_ICALL(0x470A32EBu); /* 0x4700F4BD: call 0x470a32eb */ /* not lifted */ 462 RECOMP_FLAGS_IN(); 463 /* test LO8(ebx), 1 */ /* 0x4700F4C2: test bl, 1 */ 464 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 465 _cf = 0; 466 _flag_k = FK_NARROW(FK_TEST, 24); 467 if (TEST_Z(_flag_a, _flag_b)) goto L_4700F4D0; /* 0x4700F4C5: je 0x4700f4d0 */ 468 L_4700F4C7: 469 PUSH32(esp, edi); /* 0x4700F4C7: push edi */ 470 RECOMP_ICALL(0x470A32A2u); /* 0x4700F4C8: call 0x470a32a2 */ /* not lifted */ 471 RECOMP_FLAGS_IN(); 472 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 473 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 474 esp = esp + 4; /* 0x4700F4CD: add esp, 4 */ 475 _flag_k = FK_ADD; 476 L_4700F4D0: 477 eax = edi; /* 0x4700F4D0: mov eax, edi */ 478 edi = POP32_VAL(esp); /* 0x4700F4D2: pop edi */ 479 esi = POP32_VAL(esp); /* 0x4700F4D3: pop esi */ 480 ebx = POP32_VAL(esp); /* 0x4700F4D4: pop ebx */ 481 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F4D5: ret 4 */ 482 L_4700F4D8: 483 ecx = esi; /* 0x4700F4D8: mov ecx, esi */ 484 RECOMP_ICALL(0x470132D0u); /* 0x4700F4DA: call 0x470132d0 */ /* not lifted */ 485 RECOMP_FLAGS_IN(); 486 /* test LO8(ebx), 1 */ /* 0x4700F4DF: test bl, 1 */ 487 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 488 _cf = 0; 489 _flag_k = FK_NARROW(FK_TEST, 24); 490 if (TEST_Z(_flag_a, _flag_b)) goto L_4700F4ED; /* 0x4700F4E2: je 0x4700f4ed */ 491 L_4700F4E4: 492 PUSH32(esp, esi); /* 0x4700F4E4: push esi */ 493 RECOMP_ICALL(0x470A32A2u); /* 0x4700F4E5: call 0x470a32a2 */ /* not lifted */ 494 RECOMP_FLAGS_IN(); 495 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 496 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 497 esp = esp + 4; /* 0x4700F4EA: add esp, 4 */ 498 _flag_k = FK_ADD; 499 L_4700F4ED: 500 eax = esi; /* 0x4700F4ED: mov eax, esi */ 501 esi = POP32_VAL(esp); /* 0x4700F4EF: pop esi */ 502 ebx = POP32_VAL(esp); /* 0x4700F4F0: pop ebx */ 503 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F4F1: ret 4 */ 504 RECOMP_REGS_OUT(); 505 } 506 507 void sub_4700F500(void) { 508 int _fpu_cmp = 0; 509 uint32_t _cf = 0; 510 int _df = 1; 511 uint32_t _flag_k = FK_NONE; 512 uint32_t _flag_a = 0, _flag_b = 0; 513 uint32_t _itail_tgt = 0; 514 RECOMP_REGS_LOCALS 515 RECOMP_ENTER(0x4700F500u); 516 517 L_4700F500: 518 eax = ecx; /* 0x4700F500: mov eax, ecx */ 519 MEM32(eax) = 0x470AC7CCu; /* 0x4700F502: mov dword ptr [eax], 0x470ac7cc */ 520 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F508: ret 4 */ 521 RECOMP_REGS_OUT(); 522 } 523 524 void sub_4700F510(void) { 525 int _fpu_cmp = 0; 526 uint32_t _cf = 0; 527 int _df = 1; 528 uint32_t _flag_k = FK_NONE; 529 uint32_t _flag_a = 0, _flag_b = 0; 530 uint32_t _itail_tgt = 0; 531 RECOMP_REGS_LOCALS 532 RECOMP_ENTER(0x4700F510u); 533 534 L_4700F510: 535 PUSH32(esp, ebx); /* 0x4700F510: push ebx */ 536 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x4700F511: mov bl, byte ptr [esp + 8] */ 537 /* test LO8(ebx), 2 */ /* 0x4700F515: test bl, 2 */ 538 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 539 _cf = 0; 540 _flag_k = FK_NARROW(FK_TEST, 24); 541 PUSH32(esp, esi); /* 0x4700F518: push esi */ 542 esi = ecx; /* 0x4700F519: mov esi, ecx */ 543 if (TEST_Z(_flag_a, _flag_b)) goto L_4700F548; /* 0x4700F51B: je 0x4700f548 */ 544 L_4700F51D: 545 eax = MEM32(esi + (-0x4)); /* 0x4700F51D: mov eax, dword ptr [esi - 4] */ 546 PUSH32(esp, edi); /* 0x4700F520: push edi */ 547 PUSH32(esp, 0x470822F0u); /* 0x4700F521: push 0x470822f0 */ 548 edi = esi + (-0x4); /* 0x4700F526: lea edi, [esi - 4] */ 549 PUSH32(esp, eax); /* 0x4700F529: push eax */ 550 PUSH32(esp, 4); /* 0x4700F52A: push 4 */ 551 PUSH32(esp, esi); /* 0x4700F52C: push esi */ 552 RECOMP_ICALL(0x470A32EBu); /* 0x4700F52D: call 0x470a32eb */ /* not lifted */ 553 RECOMP_FLAGS_IN(); 554 /* test LO8(ebx), 1 */ /* 0x4700F532: test bl, 1 */ 555 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 556 _cf = 0; 557 _flag_k = FK_NARROW(FK_TEST, 24); 558 if (TEST_Z(_flag_a, _flag_b)) goto L_4700F540; /* 0x4700F535: je 0x4700f540 */ 559 L_4700F537: 560 PUSH32(esp, edi); /* 0x4700F537: push edi */ 561 RECOMP_ICALL(0x470A32A2u); /* 0x4700F538: call 0x470a32a2 */ /* not lifted */ 562 RECOMP_FLAGS_IN(); 563 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 564 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 565 esp = esp + 4; /* 0x4700F53D: add esp, 4 */ 566 _flag_k = FK_ADD; 567 L_4700F540: 568 eax = edi; /* 0x4700F540: mov eax, edi */ 569 edi = POP32_VAL(esp); /* 0x4700F542: pop edi */ 570 esi = POP32_VAL(esp); /* 0x4700F543: pop esi */ 571 ebx = POP32_VAL(esp); /* 0x4700F544: pop ebx */ 572 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F545: ret 4 */ 573 L_4700F548: 574 ecx = esi; /* 0x4700F548: mov ecx, esi */ 575 RECOMP_ICALL(0x470822F0u); /* 0x4700F54A: call 0x470822f0 */ /* not lifted */ 576 RECOMP_FLAGS_IN(); 577 /* test LO8(ebx), 1 */ /* 0x4700F54F: test bl, 1 */ 578 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 579 _cf = 0; 580 _flag_k = FK_NARROW(FK_TEST, 24); 581 if (TEST_Z(_flag_a, _flag_b)) goto L_4700F55D; /* 0x4700F552: je 0x4700f55d */ 582 L_4700F554: 583 PUSH32(esp, esi); /* 0x4700F554: push esi */ 584 RECOMP_ICALL(0x470A32A2u); /* 0x4700F555: call 0x470a32a2 */ /* not lifted */ 585 RECOMP_FLAGS_IN(); 586 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 587 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 588 esp = esp + 4; /* 0x4700F55A: add esp, 4 */ 589 _flag_k = FK_ADD; 590 L_4700F55D: 591 eax = esi; /* 0x4700F55D: mov eax, esi */ 592 esi = POP32_VAL(esp); /* 0x4700F55F: pop esi */ 593 ebx = POP32_VAL(esp); /* 0x4700F560: pop ebx */ 594 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F561: ret 4 */ 595 RECOMP_REGS_OUT(); 596 } 597 598 void sub_4700F570(void) { 599 int _fpu_cmp = 0; 600 uint32_t _cf = 0; 601 int _df = 1; 602 uint32_t _flag_k = FK_NONE; 603 uint32_t _flag_a = 0, _flag_b = 0; 604 uint32_t _itail_tgt = 0; 605 RECOMP_REGS_LOCALS 606 RECOMP_ENTER(0x4700F570u); 607 608 L_4700F570: 609 eax = ecx; /* 0x4700F570: mov eax, ecx */ 610 ecx = MEM32(esp + 0x4); /* 0x4700F572: mov ecx, dword ptr [esp + 4] */ 611 edx = MEM32(ecx + 0x4); /* 0x4700F576: mov edx, dword ptr [ecx + 4] */ 612 MEM32(eax + 0x4) = edx; /* 0x4700F579: mov dword ptr [eax + 4], edx */ 613 MEM32(eax) = 0x470AC7ECu; /* 0x4700F57C: mov dword ptr [eax], 0x470ac7ec */ 614 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F582: ret 4 */ 615 RECOMP_REGS_OUT(); 616 } 617 618 void sub_4700F590(void) { 619 int _fpu_cmp = 0; 620 uint32_t _cf = 0; 621 int _df = 1; 622 uint32_t _flag_k = FK_NONE; 623 uint32_t _flag_a = 0, _flag_b = 0; 624 uint32_t _itail_tgt = 0; 625 RECOMP_REGS_LOCALS 626 RECOMP_ENTER(0x4700F590u); 627 628 L_4700F590: 629 PUSH32(esp, ebx); /* 0x4700F590: push ebx */ 630 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x4700F591: mov bl, byte ptr [esp + 8] */ 631 /* test LO8(ebx), 2 */ /* 0x4700F595: test bl, 2 */ 632 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 633 _cf = 0; 634 _flag_k = FK_NARROW(FK_TEST, 24); 635 PUSH32(esp, esi); /* 0x4700F598: push esi */ 636 esi = ecx; /* 0x4700F599: mov esi, ecx */ 637 if (TEST_Z(_flag_a, _flag_b)) goto L_4700F5C8; /* 0x4700F59B: je 0x4700f5c8 */ 638 L_4700F59D: 639 eax = MEM32(esi + (-0x4)); /* 0x4700F59D: mov eax, dword ptr [esi - 4] */ 640 PUSH32(esp, edi); /* 0x4700F5A0: push edi */ 641 PUSH32(esp, 0x47013310u); /* 0x4700F5A1: push 0x47013310 */ 642 edi = esi + (-0x4); /* 0x4700F5A6: lea edi, [esi - 4] */ 643 PUSH32(esp, eax); /* 0x4700F5A9: push eax */ 644 PUSH32(esp, 8); /* 0x4700F5AA: push 8 */ 645 PUSH32(esp, esi); /* 0x4700F5AC: push esi */ 646 RECOMP_ICALL(0x470A32EBu); /* 0x4700F5AD: call 0x470a32eb */ /* not lifted */ 647 RECOMP_FLAGS_IN(); 648 /* test LO8(ebx), 1 */ /* 0x4700F5B2: test bl, 1 */ 649 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 650 _cf = 0; 651 _flag_k = FK_NARROW(FK_TEST, 24); 652 if (TEST_Z(_flag_a, _flag_b)) goto L_4700F5C0; /* 0x4700F5B5: je 0x4700f5c0 */ 653 L_4700F5B7: 654 PUSH32(esp, edi); /* 0x4700F5B7: push edi */ 655 RECOMP_ICALL(0x470A32A2u); /* 0x4700F5B8: call 0x470a32a2 */ /* not lifted */ 656 RECOMP_FLAGS_IN(); 657 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 658 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 659 esp = esp + 4; /* 0x4700F5BD: add esp, 4 */ 660 _flag_k = FK_ADD; 661 L_4700F5C0: 662 eax = edi; /* 0x4700F5C0: mov eax, edi */ 663 edi = POP32_VAL(esp); /* 0x4700F5C2: pop edi */ 664 esi = POP32_VAL(esp); /* 0x4700F5C3: pop esi */ 665 ebx = POP32_VAL(esp); /* 0x4700F5C4: pop ebx */ 666 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F5C5: ret 4 */ 667 L_4700F5C8: 668 /* test LO8(ebx), 1 */ /* 0x4700F5C8: test bl, 1 */ 669 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 670 _cf = 0; 671 _flag_k = FK_NARROW(FK_TEST, 24); 672 MEM32(esi) = 0x470AC7ECu; /* 0x4700F5CB: mov dword ptr [esi], 0x470ac7ec */ 673 if (TEST_Z(_flag_a, _flag_b)) goto L_4700F5DC; /* 0x4700F5D1: je 0x4700f5dc */ 674 L_4700F5D3: 675 PUSH32(esp, esi); /* 0x4700F5D3: push esi */ 676 RECOMP_ICALL(0x470A32A2u); /* 0x4700F5D4: call 0x470a32a2 */ /* not lifted */ 677 RECOMP_FLAGS_IN(); 678 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 679 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 680 esp = esp + 4; /* 0x4700F5D9: add esp, 4 */ 681 _flag_k = FK_ADD; 682 L_4700F5DC: 683 eax = esi; /* 0x4700F5DC: mov eax, esi */ 684 esi = POP32_VAL(esp); /* 0x4700F5DE: pop esi */ 685 ebx = POP32_VAL(esp); /* 0x4700F5DF: pop ebx */ 686 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F5E0: ret 4 */ 687 RECOMP_REGS_OUT(); 688 } 689 690 void sub_4700F5F0(void) { 691 int _fpu_cmp = 0; 692 uint32_t _cf = 0; 693 int _df = 1; 694 uint32_t _flag_k = FK_NONE; 695 uint32_t _flag_a = 0, _flag_b = 0; 696 uint32_t _itail_tgt = 0; 697 RECOMP_REGS_LOCALS 698 RECOMP_ENTER(0x4700F5F0u); 699 700 L_4700F5F0: 701 eax = ecx; /* 0x4700F5F0: mov eax, ecx */ 702 ecx = MEM32(esp + 0x4); /* 0x4700F5F2: mov ecx, dword ptr [esp + 4] */ 703 edx = MEM32(ecx + 0x4); /* 0x4700F5F6: mov edx, dword ptr [ecx + 4] */ 704 MEM32(eax + 0x4) = edx; /* 0x4700F5F9: mov dword ptr [eax + 4], edx */ 705 MEM32(eax) = 0x470AC7F0u; /* 0x4700F5FC: mov dword ptr [eax], 0x470ac7f0 */ 706 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F602: ret 4 */ 707 RECOMP_REGS_OUT(); 708 } 709 710 void sub_4700F610(void) { 711 int _fpu_cmp = 0; 712 uint32_t _cf = 0; 713 int _df = 1; 714 uint32_t _flag_k = FK_NONE; 715 uint32_t _flag_a = 0, _flag_b = 0; 716 uint32_t _itail_tgt = 0; 717 RECOMP_REGS_LOCALS 718 RECOMP_ENTER(0x4700F610u); 719 720 L_4700F610: 721 PUSH32(esp, ebx); /* 0x4700F610: push ebx */ 722 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x4700F611: mov bl, byte ptr [esp + 8] */ 723 /* test LO8(ebx), 2 */ /* 0x4700F615: test bl, 2 */ 724 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 725 _cf = 0; 726 _flag_k = FK_NARROW(FK_TEST, 24); 727 PUSH32(esp, esi); /* 0x4700F618: push esi */ 728 esi = ecx; /* 0x4700F619: mov esi, ecx */ 729 if (TEST_Z(_flag_a, _flag_b)) goto L_4700F648; /* 0x4700F61B: je 0x4700f648 */ 730 L_4700F61D: 731 eax = MEM32(esi + (-0x4)); /* 0x4700F61D: mov eax, dword ptr [esi - 4] */ 732 PUSH32(esp, edi); /* 0x4700F620: push edi */ 733 PUSH32(esp, 0x47013340u); /* 0x4700F621: push 0x47013340 */ 734 edi = esi + (-0x4); /* 0x4700F626: lea edi, [esi - 4] */ 735 PUSH32(esp, eax); /* 0x4700F629: push eax */ 736 PUSH32(esp, 8); /* 0x4700F62A: push 8 */ 737 PUSH32(esp, esi); /* 0x4700F62C: push esi */ 738 RECOMP_ICALL(0x470A32EBu); /* 0x4700F62D: call 0x470a32eb */ /* not lifted */ 739 RECOMP_FLAGS_IN(); 740 /* test LO8(ebx), 1 */ /* 0x4700F632: test bl, 1 */ 741 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 742 _cf = 0; 743 _flag_k = FK_NARROW(FK_TEST, 24); 744 if (TEST_Z(_flag_a, _flag_b)) goto L_4700F640; /* 0x4700F635: je 0x4700f640 */ 745 L_4700F637: 746 PUSH32(esp, edi); /* 0x4700F637: push edi */ 747 RECOMP_ICALL(0x470A32A2u); /* 0x4700F638: call 0x470a32a2 */ /* not lifted */ 748 RECOMP_FLAGS_IN(); 749 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 750 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 751 esp = esp + 4; /* 0x4700F63D: add esp, 4 */ 752 _flag_k = FK_ADD; 753 L_4700F640: 754 eax = edi; /* 0x4700F640: mov eax, edi */ 755 edi = POP32_VAL(esp); /* 0x4700F642: pop edi */ 756 esi = POP32_VAL(esp); /* 0x4700F643: pop esi */ 757 ebx = POP32_VAL(esp); /* 0x4700F644: pop ebx */ 758 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F645: ret 4 */ 759 L_4700F648: 760 /* test LO8(ebx), 1 */ /* 0x4700F648: test bl, 1 */ 761 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 762 _cf = 0; 763 _flag_k = FK_NARROW(FK_TEST, 24); 764 MEM32(esi) = 0x470AC7F0u; /* 0x4700F64B: mov dword ptr [esi], 0x470ac7f0 */ 765 if (TEST_Z(_flag_a, _flag_b)) goto L_4700F65C; /* 0x4700F651: je 0x4700f65c */ 766 L_4700F653: 767 PUSH32(esp, esi); /* 0x4700F653: push esi */ 768 RECOMP_ICALL(0x470A32A2u); /* 0x4700F654: call 0x470a32a2 */ /* not lifted */ 769 RECOMP_FLAGS_IN(); 770 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 771 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 772 esp = esp + 4; /* 0x4700F659: add esp, 4 */ 773 _flag_k = FK_ADD; 774 L_4700F65C: 775 eax = esi; /* 0x4700F65C: mov eax, esi */ 776 esi = POP32_VAL(esp); /* 0x4700F65E: pop esi */ 777 ebx = POP32_VAL(esp); /* 0x4700F65F: pop ebx */ 778 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F660: ret 4 */ 779 RECOMP_REGS_OUT(); 780 } 781 782 void sub_4700F670(void) { 783 int _fpu_cmp = 0; 784 uint32_t _cf = 0; 785 int _df = 1; 786 uint32_t _flag_k = FK_NONE; 787 uint32_t _flag_a = 0, _flag_b = 0; 788 uint32_t _itail_tgt = 0; 789 RECOMP_REGS_LOCALS 790 RECOMP_ENTER(0x4700F670u); 791 792 L_4700F670: 793 eax = ecx; /* 0x4700F670: mov eax, ecx */ 794 ecx = MEM32(esp + 0x4); /* 0x4700F672: mov ecx, dword ptr [esp + 4] */ 795 edx = MEM32(ecx + 0x4); /* 0x4700F676: mov edx, dword ptr [ecx + 4] */ 796 MEM32(eax + 0x4) = edx; /* 0x4700F679: mov dword ptr [eax + 4], edx */ 797 MEM32(eax) = 0x470AC7FCu; /* 0x4700F67C: mov dword ptr [eax], 0x470ac7fc */ 798 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F682: ret 4 */ 799 RECOMP_REGS_OUT(); 800 } 801 802 void sub_4700F690(void) { 803 int _fpu_cmp = 0; 804 uint32_t _cf = 0; 805 int _df = 1; 806 uint32_t _flag_k = FK_NONE; 807 uint32_t _flag_a = 0, _flag_b = 0; 808 uint32_t _itail_tgt = 0; 809 RECOMP_REGS_LOCALS 810 RECOMP_ENTER(0x4700F690u); 811 812 L_4700F690: 813 PUSH32(esp, ebx); /* 0x4700F690: push ebx */ 814 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x4700F691: mov bl, byte ptr [esp + 8] */ 815 /* test LO8(ebx), 2 */ /* 0x4700F695: test bl, 2 */ 816 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 817 _cf = 0; 818 _flag_k = FK_NARROW(FK_TEST, 24); 819 PUSH32(esp, esi); /* 0x4700F698: push esi */ 820 esi = ecx; /* 0x4700F699: mov esi, ecx */ 821 if (TEST_Z(_flag_a, _flag_b)) goto L_4700F6C8; /* 0x4700F69B: je 0x4700f6c8 */ 822 L_4700F69D: 823 eax = MEM32(esi + (-0x4)); /* 0x4700F69D: mov eax, dword ptr [esi - 4] */ 824 PUSH32(esp, edi); /* 0x4700F6A0: push edi */ 825 PUSH32(esp, 0x47013390u); /* 0x4700F6A1: push 0x47013390 */ 826 edi = esi + (-0x4); /* 0x4700F6A6: lea edi, [esi - 4] */ 827 PUSH32(esp, eax); /* 0x4700F6A9: push eax */ 828 PUSH32(esp, 8); /* 0x4700F6AA: push 8 */ 829 PUSH32(esp, esi); /* 0x4700F6AC: push esi */ 830 RECOMP_ICALL(0x470A32EBu); /* 0x4700F6AD: call 0x470a32eb */ /* not lifted */ 831 RECOMP_FLAGS_IN(); 832 /* test LO8(ebx), 1 */ /* 0x4700F6B2: test bl, 1 */ 833 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 834 _cf = 0; 835 _flag_k = FK_NARROW(FK_TEST, 24); 836 if (TEST_Z(_flag_a, _flag_b)) goto L_4700F6C0; /* 0x4700F6B5: je 0x4700f6c0 */ 837 L_4700F6B7: 838 PUSH32(esp, edi); /* 0x4700F6B7: push edi */ 839 RECOMP_ICALL(0x470A32A2u); /* 0x4700F6B8: call 0x470a32a2 */ /* not lifted */ 840 RECOMP_FLAGS_IN(); 841 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 842 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 843 esp = esp + 4; /* 0x4700F6BD: add esp, 4 */ 844 _flag_k = FK_ADD; 845 L_4700F6C0: 846 eax = edi; /* 0x4700F6C0: mov eax, edi */ 847 edi = POP32_VAL(esp); /* 0x4700F6C2: pop edi */ 848 esi = POP32_VAL(esp); /* 0x4700F6C3: pop esi */ 849 ebx = POP32_VAL(esp); /* 0x4700F6C4: pop ebx */ 850 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F6C5: ret 4 */ 851 L_4700F6C8: 852 /* test LO8(ebx), 1 */ /* 0x4700F6C8: test bl, 1 */ 853 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 854 _cf = 0; 855 _flag_k = FK_NARROW(FK_TEST, 24); 856 MEM32(esi) = 0x470AC7FCu; /* 0x4700F6CB: mov dword ptr [esi], 0x470ac7fc */ 857 if (TEST_Z(_flag_a, _flag_b)) goto L_4700F6DC; /* 0x4700F6D1: je 0x4700f6dc */ 858 L_4700F6D3: 859 PUSH32(esp, esi); /* 0x4700F6D3: push esi */ 860 RECOMP_ICALL(0x470A32A2u); /* 0x4700F6D4: call 0x470a32a2 */ /* not lifted */ 861 RECOMP_FLAGS_IN(); 862 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 863 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 864 esp = esp + 4; /* 0x4700F6D9: add esp, 4 */ 865 _flag_k = FK_ADD; 866 L_4700F6DC: 867 eax = esi; /* 0x4700F6DC: mov eax, esi */ 868 esi = POP32_VAL(esp); /* 0x4700F6DE: pop esi */ 869 ebx = POP32_VAL(esp); /* 0x4700F6DF: pop ebx */ 870 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F6E0: ret 4 */ 871 RECOMP_REGS_OUT(); 872 } 873 874 void sub_4700F6F0(void) { 875 int _fpu_cmp = 0; 876 uint32_t _cf = 0; 877 int _df = 1; 878 uint32_t _flag_k = FK_NONE; 879 uint32_t _flag_a = 0, _flag_b = 0; 880 uint32_t _itail_tgt = 0; 881 RECOMP_REGS_LOCALS 882 RECOMP_ENTER(0x4700F6F0u); 883 884 L_4700F6F0: 885 eax = ecx; /* 0x4700F6F0: mov eax, ecx */ 886 MEM32(eax) = 0x470AC800u; /* 0x4700F6F2: mov dword ptr [eax], 0x470ac800 */ 887 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F6F8: ret 4 */ 888 RECOMP_REGS_OUT(); 889 } 890 891 void sub_4700F700(void) { 892 int _fpu_cmp = 0; 893 uint32_t _cf = 0; 894 int _df = 1; 895 uint32_t _flag_k = FK_NONE; 896 uint32_t _flag_a = 0, _flag_b = 0; 897 uint32_t _itail_tgt = 0; 898 RECOMP_REGS_LOCALS 899 RECOMP_ENTER(0x4700F700u); 900 901 L_4700F700: 902 PUSH32(esp, ebx); /* 0x4700F700: push ebx */ 903 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x4700F701: mov bl, byte ptr [esp + 8] */ 904 /* test LO8(ebx), 2 */ /* 0x4700F705: test bl, 2 */ 905 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 906 _cf = 0; 907 _flag_k = FK_NARROW(FK_TEST, 24); 908 PUSH32(esp, esi); /* 0x4700F708: push esi */ 909 esi = ecx; /* 0x4700F709: mov esi, ecx */ 910 if (TEST_Z(_flag_a, _flag_b)) goto L_4700F738; /* 0x4700F70B: je 0x4700f738 */ 911 L_4700F70D: 912 eax = MEM32(esi + (-0x4)); /* 0x4700F70D: mov eax, dword ptr [esi - 4] */ 913 PUSH32(esp, edi); /* 0x4700F710: push edi */ 914 PUSH32(esp, 0x47078B30u); /* 0x4700F711: push 0x47078b30 */ 915 edi = esi + (-0x4); /* 0x4700F716: lea edi, [esi - 4] */ 916 PUSH32(esp, eax); /* 0x4700F719: push eax */ 917 PUSH32(esp, 4); /* 0x4700F71A: push 4 */ 918 PUSH32(esp, esi); /* 0x4700F71C: push esi */ 919 RECOMP_ICALL(0x470A32EBu); /* 0x4700F71D: call 0x470a32eb */ /* not lifted */ 920 RECOMP_FLAGS_IN(); 921 /* test LO8(ebx), 1 */ /* 0x4700F722: test bl, 1 */ 922 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 923 _cf = 0; 924 _flag_k = FK_NARROW(FK_TEST, 24); 925 if (TEST_Z(_flag_a, _flag_b)) goto L_4700F730; /* 0x4700F725: je 0x4700f730 */ 926 L_4700F727: 927 PUSH32(esp, edi); /* 0x4700F727: push edi */ 928 RECOMP_ICALL(0x470A32A2u); /* 0x4700F728: call 0x470a32a2 */ /* not lifted */ 929 RECOMP_FLAGS_IN(); 930 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 931 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 932 esp = esp + 4; /* 0x4700F72D: add esp, 4 */ 933 _flag_k = FK_ADD; 934 L_4700F730: 935 eax = edi; /* 0x4700F730: mov eax, edi */ 936 edi = POP32_VAL(esp); /* 0x4700F732: pop edi */ 937 esi = POP32_VAL(esp); /* 0x4700F733: pop esi */ 938 ebx = POP32_VAL(esp); /* 0x4700F734: pop ebx */ 939 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F735: ret 4 */ 940 L_4700F738: 941 ecx = esi; /* 0x4700F738: mov ecx, esi */ 942 RECOMP_ICALL(0x47078B30u); /* 0x4700F73A: call 0x47078b30 */ /* not lifted */ 943 RECOMP_FLAGS_IN(); 944 /* test LO8(ebx), 1 */ /* 0x4700F73F: test bl, 1 */ 945 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 946 _cf = 0; 947 _flag_k = FK_NARROW(FK_TEST, 24); 948 if (TEST_Z(_flag_a, _flag_b)) goto L_4700F74D; /* 0x4700F742: je 0x4700f74d */ 949 L_4700F744: 950 PUSH32(esp, esi); /* 0x4700F744: push esi */ 951 RECOMP_ICALL(0x470A32A2u); /* 0x4700F745: call 0x470a32a2 */ /* not lifted */ 952 RECOMP_FLAGS_IN(); 953 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 954 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 955 esp = esp + 4; /* 0x4700F74A: add esp, 4 */ 956 _flag_k = FK_ADD; 957 L_4700F74D: 958 eax = esi; /* 0x4700F74D: mov eax, esi */ 959 esi = POP32_VAL(esp); /* 0x4700F74F: pop esi */ 960 ebx = POP32_VAL(esp); /* 0x4700F750: pop ebx */ 961 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F751: ret 4 */ 962 RECOMP_REGS_OUT(); 963 } 964 965 void sub_4700F760(void) { 966 int _fpu_cmp = 0; 967 uint32_t _cf = 0; 968 int _df = 1; 969 uint32_t _flag_k = FK_NONE; 970 uint32_t _flag_a = 0, _flag_b = 0; 971 uint32_t _itail_tgt = 0; 972 RECOMP_REGS_LOCALS 973 RECOMP_ENTER(0x4700F760u); 974 975 L_4700F760: 976 eax = ecx; /* 0x4700F760: mov eax, ecx */ 977 MEM32(eax) = 0x470AC800u; /* 0x4700F762: mov dword ptr [eax], 0x470ac800 */ 978 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700F768: ret */ 979 RECOMP_REGS_OUT(); 980 } 981 982 void sub_4700F770(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(0x4700F770u); 991 992 L_4700F770: 993 eax = ecx; /* 0x4700F770: mov eax, ecx */ 994 ecx = MEM32(esp + 0x4); /* 0x4700F772: mov ecx, dword ptr [esp + 4] */ 995 edx = MEM32(ecx + 0x4); /* 0x4700F776: mov edx, dword ptr [ecx + 4] */ 996 MEM32(eax + 0x4) = edx; /* 0x4700F779: mov dword ptr [eax + 4], edx */ 997 ecx = MEM32(ecx + 0x8); /* 0x4700F77C: mov ecx, dword ptr [ecx + 8] */ 998 MEM32(eax) = 0x470AC5C0u; /* 0x4700F77F: mov dword ptr [eax], 0x470ac5c0 */ 999 MEM32(eax + 0x8) = ecx; /* 0x4700F785: mov dword ptr [eax + 8], ecx */ 1000 MEM32(eax + 0xC) = 0x470AC800u; /* 0x4700F788: mov dword ptr [eax + 0xc], 0x470ac800 */ 1001 MEM32(eax) = 0x470AC820u; /* 0x4700F78F: mov dword ptr [eax], 0x470ac820 */ 1002 MEM32(eax + 0xC) = 0x470AC810u; /* 0x4700F795: mov dword ptr [eax + 0xc], 0x470ac810 */ 1003 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F79C: ret 4 */ 1004 RECOMP_REGS_OUT(); 1005 } 1006 1007 void sub_4700F7A0(void) { 1008 int _fpu_cmp = 0; 1009 uint32_t _cf = 0; 1010 int _df = 1; 1011 uint32_t _flag_k = FK_NONE; 1012 uint32_t _flag_a = 0, _flag_b = 0; 1013 uint32_t _itail_tgt = 0; 1014 RECOMP_REGS_LOCALS 1015 RECOMP_ENTER(0x4700F7A0u); 1016 1017 L_4700F7A0: 1018 PUSH32(esp, 0); /* 0x4700F7A0: push 0 */ 1019 RECOMP_ICALL(0x47076DA0u); /* 0x4700F7A2: call 0x47076da0 */ /* not lifted */ 1020 RECOMP_FLAGS_IN(); 1021 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700F7A7: ret */ 1022 RECOMP_REGS_OUT(); 1023 } 1024 1025 void sub_4700F7B0(void) { 1026 int _fpu_cmp = 0; 1027 uint32_t _cf = 0; 1028 int _df = 1; 1029 uint32_t _flag_k = FK_NONE; 1030 uint32_t _flag_a = 0, _flag_b = 0; 1031 uint32_t _itail_tgt = 0; 1032 RECOMP_REGS_LOCALS 1033 RECOMP_ENTER(0x4700F7B0u); 1034 1035 L_4700F7B0: 1036 PUSH32(esp, ebx); /* 0x4700F7B0: push ebx */ 1037 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x4700F7B1: mov bl, byte ptr [esp + 8] */ 1038 /* test LO8(ebx), 2 */ /* 0x4700F7B5: test bl, 2 */ 1039 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 1040 _cf = 0; 1041 _flag_k = FK_NARROW(FK_TEST, 24); 1042 PUSH32(esp, esi); /* 0x4700F7B8: push esi */ 1043 esi = ecx; /* 0x4700F7B9: mov esi, ecx */ 1044 if (TEST_Z(_flag_a, _flag_b)) goto L_4700F7E8; /* 0x4700F7BB: je 0x4700f7e8 */ 1045 L_4700F7BD: 1046 eax = MEM32(esi + (-0x4)); /* 0x4700F7BD: mov eax, dword ptr [esi - 4] */ 1047 PUSH32(esp, edi); /* 0x4700F7C0: push edi */ 1048 PUSH32(esp, 0x47076DD0u); /* 0x4700F7C1: push 0x47076dd0 */ 1049 edi = esi + (-0x4); /* 0x4700F7C6: lea edi, [esi - 4] */ 1050 PUSH32(esp, eax); /* 0x4700F7C9: push eax */ 1051 PUSH32(esp, 0x10u); /* 0x4700F7CA: push 0x10 */ 1052 PUSH32(esp, esi); /* 0x4700F7CC: push esi */ 1053 RECOMP_ICALL(0x470A32EBu); /* 0x4700F7CD: call 0x470a32eb */ /* not lifted */ 1054 RECOMP_FLAGS_IN(); 1055 /* test LO8(ebx), 1 */ /* 0x4700F7D2: test bl, 1 */ 1056 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1057 _cf = 0; 1058 _flag_k = FK_NARROW(FK_TEST, 24); 1059 if (TEST_Z(_flag_a, _flag_b)) goto L_4700F7E0; /* 0x4700F7D5: je 0x4700f7e0 */ 1060 L_4700F7D7: 1061 PUSH32(esp, edi); /* 0x4700F7D7: push edi */ 1062 RECOMP_ICALL(0x470A32A2u); /* 0x4700F7D8: call 0x470a32a2 */ /* not lifted */ 1063 RECOMP_FLAGS_IN(); 1064 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1065 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1066 esp = esp + 4; /* 0x4700F7DD: add esp, 4 */ 1067 _flag_k = FK_ADD; 1068 L_4700F7E0: 1069 eax = edi; /* 0x4700F7E0: mov eax, edi */ 1070 edi = POP32_VAL(esp); /* 0x4700F7E2: pop edi */ 1071 esi = POP32_VAL(esp); /* 0x4700F7E3: pop esi */ 1072 ebx = POP32_VAL(esp); /* 0x4700F7E4: pop ebx */ 1073 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F7E5: ret 4 */ 1074 L_4700F7E8: 1075 ecx = esi; /* 0x4700F7E8: mov ecx, esi */ 1076 RECOMP_ICALL(0x47076DD0u); /* 0x4700F7EA: call 0x47076dd0 */ /* not lifted */ 1077 RECOMP_FLAGS_IN(); 1078 /* test LO8(ebx), 1 */ /* 0x4700F7EF: test bl, 1 */ 1079 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1080 _cf = 0; 1081 _flag_k = FK_NARROW(FK_TEST, 24); 1082 if (TEST_Z(_flag_a, _flag_b)) goto L_4700F7FD; /* 0x4700F7F2: je 0x4700f7fd */ 1083 L_4700F7F4: 1084 PUSH32(esp, esi); /* 0x4700F7F4: push esi */ 1085 RECOMP_ICALL(0x470A32A2u); /* 0x4700F7F5: call 0x470a32a2 */ /* not lifted */ 1086 RECOMP_FLAGS_IN(); 1087 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1088 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1089 esp = esp + 4; /* 0x4700F7FA: add esp, 4 */ 1090 _flag_k = FK_ADD; 1091 L_4700F7FD: 1092 eax = esi; /* 0x4700F7FD: mov eax, esi */ 1093 esi = POP32_VAL(esp); /* 0x4700F7FF: pop esi */ 1094 ebx = POP32_VAL(esp); /* 0x4700F800: pop ebx */ 1095 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F801: ret 4 */ 1096 RECOMP_REGS_OUT(); 1097 } 1098 1099 void sub_4700F800(void) { 1100 int _fpu_cmp = 0; 1101 uint32_t _cf = 0; 1102 int _df = 1; 1103 uint32_t _flag_k = FK_NONE; 1104 uint32_t _flag_a = 0, _flag_b = 0; 1105 uint32_t _itail_tgt = 0; 1106 RECOMP_REGS_LOCALS 1107 RECOMP_ENTER(0x4700F800u); 1108 1109 L_4700F800: 1110 ebx = POP32_VAL(esp); /* 0x4700F800: pop ebx */ 1111 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F801: ret 4 */ 1112 RECOMP_REGS_OUT(); 1113 } 1114 1115 void sub_4700F810(void) { 1116 int _fpu_cmp = 0; 1117 uint32_t _cf = 0; 1118 int _df = 1; 1119 uint32_t _flag_k = FK_NONE; 1120 uint32_t _flag_a = 0, _flag_b = 0; 1121 uint32_t _itail_tgt = 0; 1122 RECOMP_REGS_LOCALS 1123 RECOMP_ENTER(0x4700F810u); 1124 1125 L_4700F810: 1126 PUSH32(esp, esi); /* 0x4700F810: push esi */ 1127 esi = ecx; /* 0x4700F811: mov esi, ecx */ 1128 eax = MEM32(esi); /* 0x4700F813: mov eax, dword ptr [esi] */ 1129 ecx = eax + 0xC; /* 0x4700F815: lea ecx, [eax + 0xc] */ 1130 eax = MEM32(ecx); /* 0x4700F818: mov eax, dword ptr [ecx] */ 1131 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x4700F81A: call dword ptr [eax + 4] */ 1132 RECOMP_FLAGS_IN(); 1133 ecx = MEM32(esi); /* 0x4700F81D: mov ecx, dword ptr [esi] */ 1134 /* test ecx, ecx */ /* 0x4700F81F: test ecx, ecx */ 1135 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1136 _cf = 0; 1137 _flag_k = FK_TEST; 1138 esi = POP32_VAL(esp); /* 0x4700F821: pop esi */ 1139 if (TEST_Z(_flag_a, _flag_b)) goto L_4700F82A; /* 0x4700F822: je 0x4700f82a */ 1140 L_4700F824: 1141 edx = MEM32(ecx); /* 0x4700F824: mov edx, dword ptr [ecx] */ 1142 PUSH32(esp, 1); /* 0x4700F826: push 1 */ 1143 RECOMP_ICALL(MEM32(edx)); /* 0x4700F828: call dword ptr [edx] */ 1144 RECOMP_FLAGS_IN(); 1145 L_4700F82A: 1146 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700F82A: ret */ 1147 RECOMP_REGS_OUT(); 1148 } 1149 1150 void sub_4700F830(void) { 1151 int _fpu_cmp = 0; 1152 uint32_t _cf = 0; 1153 int _df = 1; 1154 uint32_t _flag_k = FK_NONE; 1155 uint32_t _flag_a = 0, _flag_b = 0; 1156 uint32_t _itail_tgt = 0; 1157 RECOMP_REGS_LOCALS 1158 RECOMP_ENTER(0x4700F830u); 1159 1160 L_4700F830: 1161 PUSH32(esp, ebx); /* 0x4700F830: push ebx */ 1162 PUSH32(esp, esi); /* 0x4700F831: push esi */ 1163 ebx = ecx; /* 0x4700F832: mov ebx, ecx */ 1164 eax = MEM32(ebx); /* 0x4700F834: mov eax, dword ptr [ebx] */ 1165 PUSH32(esp, edi); /* 0x4700F836: push edi */ 1166 PUSH32(esp, eax); /* 0x4700F837: push eax */ 1167 RECOMP_ICALL(0x470A32A2u); /* 0x4700F838: call 0x470a32a2 */ /* not lifted */ 1168 RECOMP_FLAGS_IN(); 1169 esi = MEM32(esp + 0x14); /* 0x4700F83D: mov esi, dword ptr [esp + 0x14] */ 1170 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1171 ecx = ecx | 0xFFFFFFFFu; /* 0x4700F841: or ecx, 0xffffffff */ 1172 _cf = 0; 1173 _flag_k = FK_TEST; 1174 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1175 eax = 0; /* 0x4700F844: xor eax, eax */ 1176 _cf = 0; 1177 _flag_k = FK_TEST; 1178 edi = esi; /* 0x4700F846: mov edi, esi */ 1179 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; } /* 0x4700F848: repne scasb al, byte ptr es:[edi] */ 1180 ecx = ~ecx; /* 0x4700F84A: not ecx */ 1181 PUSH32(esp, ecx); /* 0x4700F84C: push ecx */ 1182 RECOMP_ICALL(0x470A33F2u); /* 0x4700F84D: call 0x470a33f2 */ /* not lifted */ 1183 RECOMP_FLAGS_IN(); 1184 edx = eax; /* 0x4700F852: mov edx, eax */ 1185 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1186 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1187 esp = esp + 8; /* 0x4700F854: add esp, 8 */ 1188 _flag_k = FK_ADD; 1189 /* test edx, edx */ /* 0x4700F857: test edx, edx */ 1190 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 1191 _cf = 0; 1192 _flag_k = FK_TEST; 1193 if (TEST_NZ(_flag_a, _flag_b)) goto L_4700F863; /* 0x4700F859: jne 0x4700f863 */ 1194 L_4700F85B: 1195 edi = POP32_VAL(esp); /* 0x4700F85B: pop edi */ 1196 esi = POP32_VAL(esp); /* 0x4700F85C: pop esi */ 1197 MEM32(ebx) = eax; /* 0x4700F85D: mov dword ptr [ebx], eax */ 1198 ebx = POP32_VAL(esp); /* 0x4700F85F: pop ebx */ 1199 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F860: ret 4 */ 1200 L_4700F863: 1201 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1202 ecx = ecx | 0xFFFFFFFFu; /* 0x4700F863: or ecx, 0xffffffff */ 1203 _cf = 0; 1204 _flag_k = FK_TEST; 1205 edi = esi; /* 0x4700F866: mov edi, esi */ 1206 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1207 eax = 0; /* 0x4700F868: xor eax, eax */ 1208 _cf = 0; 1209 _flag_k = FK_TEST; 1210 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; } /* 0x4700F86A: repne scasb al, byte ptr es:[edi] */ 1211 ecx = ~ecx; /* 0x4700F86C: not ecx */ 1212 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 1213 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1214 edi = edi - ecx; /* 0x4700F86E: sub edi, ecx */ 1215 _flag_k = FK_CMP; 1216 PUSH32(esp, ebp); /* 0x4700F870: push ebp */ 1217 ebp = ecx; /* 0x4700F871: mov ebp, ecx */ 1218 esi = edi; /* 0x4700F873: mov esi, edi */ 1219 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4700F875: shr ecx, 2 */ 1220 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1221 ecx = ecx >> 2u; /* 0x4700F875: shr ecx, 2 */ 1222 edi = edx; /* 0x4700F878: mov edi, edx */ 1223 eax = edi; /* 0x4700F87A: mov eax, edi */ 1224 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4700F87C: 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; } 1225 ecx = ebp; /* 0x4700F87E: mov ecx, ebp */ 1226 ebp = POP32_VAL(esp); /* 0x4700F880: pop ebp */ 1227 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 1228 ecx = ecx & 3; /* 0x4700F881: and ecx, 3 */ 1229 _cf = 0; 1230 _flag_k = FK_TEST; 1231 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4700F884: 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; } 1232 edi = POP32_VAL(esp); /* 0x4700F886: pop edi */ 1233 esi = POP32_VAL(esp); /* 0x4700F887: pop esi */ 1234 MEM32(ebx) = eax; /* 0x4700F888: mov dword ptr [ebx], eax */ 1235 ebx = POP32_VAL(esp); /* 0x4700F88A: pop ebx */ 1236 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F88B: ret 4 */ 1237 RECOMP_REGS_OUT(); 1238 } 1239 1240 void sub_4700F890(void) { 1241 int _fpu_cmp = 0; 1242 uint32_t _cf = 0; 1243 int _df = 1; 1244 uint32_t _flag_k = FK_NONE; 1245 uint32_t _flag_a = 0, _flag_b = 0; 1246 uint32_t _itail_tgt = 0; 1247 RECOMP_REGS_LOCALS 1248 RECOMP_ENTER(0x4700F890u); 1249 1250 L_4700F890: 1251 eax = MEM32(esp + 0x4); /* 0x4700F890: mov eax, dword ptr [esp + 4] */ 1252 edx = MEM32(esp + 0x8); /* 0x4700F894: mov edx, dword ptr [esp + 8] */ 1253 MEM32(ecx + 0x4) = eax; /* 0x4700F898: mov dword ptr [ecx + 4], eax */ 1254 MEM32(ecx + 0xC) = edx; /* 0x4700F89B: mov dword ptr [ecx + 0xc], edx */ 1255 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4700F89E: ret 8 */ 1256 RECOMP_REGS_OUT(); 1257 } 1258 1259 void sub_4700F8B0(void) { 1260 int _fpu_cmp = 0; 1261 uint32_t _cf = 0; 1262 int _df = 1; 1263 uint32_t _flag_k = FK_NONE; 1264 uint32_t _flag_a = 0, _flag_b = 0; 1265 uint32_t _itail_tgt = 0; 1266 RECOMP_REGS_LOCALS 1267 RECOMP_ENTER(0x4700F8B0u); 1268 1269 L_4700F8B0: 1270 edx = MEM32(ecx + 0xC); /* 0x4700F8B0: mov edx, dword ptr [ecx + 0xc] */ 1271 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1272 eax = 0; /* 0x4700F8B3: xor eax, eax */ 1273 _cf = 0; 1274 _flag_k = FK_TEST; 1275 /* test edx, edx */ /* 0x4700F8B5: test edx, edx */ 1276 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 1277 _cf = 0; 1278 _flag_k = FK_TEST; 1279 SET_LO8(eax, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x4700F8B7: setne al */ 1280 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700F8BA: ret */ 1281 RECOMP_REGS_OUT(); 1282 } 1283 1284 void sub_4700F8C0(void) { 1285 int _fpu_cmp = 0; 1286 uint32_t _cf = 0; 1287 int _df = 1; 1288 uint32_t _flag_k = FK_NONE; 1289 uint32_t _flag_a = 0, _flag_b = 0; 1290 uint32_t _itail_tgt = 0; 1291 RECOMP_REGS_LOCALS 1292 RECOMP_ENTER(0x4700F8C0u); 1293 1294 L_4700F8C0: 1295 eax = ecx; /* 0x4700F8C0: mov eax, ecx */ 1296 MEM32(eax) = 0x470AC868u; /* 0x4700F8C2: mov dword ptr [eax], 0x470ac868 */ 1297 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F8C8: ret 4 */ 1298 RECOMP_REGS_OUT(); 1299 } 1300 1301 void sub_4700F8D0(void) { 1302 int _fpu_cmp = 0; 1303 uint32_t _cf = 0; 1304 int _df = 1; 1305 uint32_t _flag_k = FK_NONE; 1306 uint32_t _flag_a = 0, _flag_b = 0; 1307 uint32_t _itail_tgt = 0; 1308 RECOMP_REGS_LOCALS 1309 RECOMP_ENTER(0x4700F8D0u); 1310 1311 L_4700F8D0: 1312 PUSH32(esp, 0); /* 0x4700F8D0: push 0 */ 1313 PUSH32(esp, 0x400u); /* 0x4700F8D2: push 0x400 */ 1314 PUSH32(esp, 1); /* 0x4700F8D7: push 1 */ 1315 RECOMP_ICALL(0x470747D0u); /* 0x4700F8D9: call 0x470747d0 */ /* not lifted */ 1316 RECOMP_FLAGS_IN(); 1317 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700F8DE: ret */ 1318 RECOMP_REGS_OUT(); 1319 } 1320 1321 void sub_4700F8E0(void) { 1322 int _fpu_cmp = 0; 1323 uint32_t _cf = 0; 1324 int _df = 1; 1325 uint32_t _flag_k = FK_NONE; 1326 uint32_t _flag_a = 0, _flag_b = 0; 1327 uint32_t _itail_tgt = 0; 1328 RECOMP_REGS_LOCALS 1329 RECOMP_ENTER(0x4700F8E0u); 1330 1331 L_4700F8E0: 1332 PUSH32(esp, ebx); /* 0x4700F8E0: push ebx */ 1333 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x4700F8E1: mov bl, byte ptr [esp + 8] */ 1334 /* test LO8(ebx), 2 */ /* 0x4700F8E5: test bl, 2 */ 1335 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 1336 _cf = 0; 1337 _flag_k = FK_NARROW(FK_TEST, 24); 1338 PUSH32(esp, esi); /* 0x4700F8E8: push esi */ 1339 esi = ecx; /* 0x4700F8E9: mov esi, ecx */ 1340 if (TEST_Z(_flag_a, _flag_b)) goto L_4700F918; /* 0x4700F8EB: je 0x4700f918 */ 1341 L_4700F8ED: 1342 eax = MEM32(esi + (-0x4)); /* 0x4700F8ED: mov eax, dword ptr [esi - 4] */ 1343 PUSH32(esp, edi); /* 0x4700F8F0: push edi */ 1344 PUSH32(esp, 0x47075F10u); /* 0x4700F8F1: push 0x47075f10 */ 1345 edi = esi + (-0x4); /* 0x4700F8F6: lea edi, [esi - 4] */ 1346 PUSH32(esp, eax); /* 0x4700F8F9: push eax */ 1347 PUSH32(esp, 4); /* 0x4700F8FA: push 4 */ 1348 PUSH32(esp, esi); /* 0x4700F8FC: push esi */ 1349 RECOMP_ICALL(0x470A32EBu); /* 0x4700F8FD: call 0x470a32eb */ /* not lifted */ 1350 RECOMP_FLAGS_IN(); 1351 /* test LO8(ebx), 1 */ /* 0x4700F902: test bl, 1 */ 1352 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1353 _cf = 0; 1354 _flag_k = FK_NARROW(FK_TEST, 24); 1355 if (TEST_Z(_flag_a, _flag_b)) goto L_4700F910; /* 0x4700F905: je 0x4700f910 */ 1356 L_4700F907: 1357 PUSH32(esp, edi); /* 0x4700F907: push edi */ 1358 RECOMP_ICALL(0x470A32A2u); /* 0x4700F908: call 0x470a32a2 */ /* not lifted */ 1359 RECOMP_FLAGS_IN(); 1360 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1361 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1362 esp = esp + 4; /* 0x4700F90D: add esp, 4 */ 1363 _flag_k = FK_ADD; 1364 L_4700F910: 1365 eax = edi; /* 0x4700F910: mov eax, edi */ 1366 edi = POP32_VAL(esp); /* 0x4700F912: pop edi */ 1367 esi = POP32_VAL(esp); /* 0x4700F913: pop esi */ 1368 ebx = POP32_VAL(esp); /* 0x4700F914: pop ebx */ 1369 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F915: ret 4 */ 1370 L_4700F918: 1371 ecx = esi; /* 0x4700F918: mov ecx, esi */ 1372 RECOMP_ICALL(0x47075F10u); /* 0x4700F91A: call 0x47075f10 */ /* not lifted */ 1373 RECOMP_FLAGS_IN(); 1374 /* test LO8(ebx), 1 */ /* 0x4700F91F: test bl, 1 */ 1375 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1376 _cf = 0; 1377 _flag_k = FK_NARROW(FK_TEST, 24); 1378 if (TEST_Z(_flag_a, _flag_b)) goto L_4700F92D; /* 0x4700F922: je 0x4700f92d */ 1379 L_4700F924: 1380 PUSH32(esp, esi); /* 0x4700F924: push esi */ 1381 RECOMP_ICALL(0x470A32A2u); /* 0x4700F925: call 0x470a32a2 */ /* not lifted */ 1382 RECOMP_FLAGS_IN(); 1383 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1384 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1385 esp = esp + 4; /* 0x4700F92A: add esp, 4 */ 1386 _flag_k = FK_ADD; 1387 L_4700F92D: 1388 eax = esi; /* 0x4700F92D: mov eax, esi */ 1389 esi = POP32_VAL(esp); /* 0x4700F92F: pop esi */ 1390 ebx = POP32_VAL(esp); /* 0x4700F930: pop ebx */ 1391 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F931: ret 4 */ 1392 RECOMP_REGS_OUT(); 1393 } 1394 1395 void sub_4700F940(void) { 1396 int _fpu_cmp = 0; 1397 uint32_t _cf = 0; 1398 int _df = 1; 1399 uint32_t _flag_k = FK_NONE; 1400 uint32_t _flag_a = 0, _flag_b = 0; 1401 uint32_t _itail_tgt = 0; 1402 RECOMP_REGS_LOCALS 1403 RECOMP_ENTER(0x4700F940u); 1404 1405 L_4700F940: 1406 ecx = MEM32(esp + 0x14); /* 0x4700F940: mov ecx, dword ptr [esp + 0x14] */ 1407 SET_LO8(eax, MEM8(esp + 0xC)); /* 0x4700F944: mov al, byte ptr [esp + 0xc] */ 1408 edx = MEM32(esp + 0x10); /* 0x4700F948: mov edx, dword ptr [esp + 0x10] */ 1409 PUSH32(esp, ecx); /* 0x4700F94C: push ecx */ 1410 ecx = MEM32(esp + 0x8); /* 0x4700F94D: mov ecx, dword ptr [esp + 8] */ 1411 MEM8(0x4710A790) = (uint8_t)(LO8(eax)); /* 0x4700F951: mov byte ptr [0x4710a790], al */ 1412 eax = MEM32(esp + 0xC); /* 0x4700F956: mov eax, dword ptr [esp + 0xc] */ 1413 PUSH32(esp, edx); /* 0x4700F95A: push edx */ 1414 PUSH32(esp, eax); /* 0x4700F95B: push eax */ 1415 PUSH32(esp, ecx); /* 0x4700F95C: push ecx */ 1416 RECOMP_ICALL(0x47075720u); /* 0x4700F95D: call 0x47075720 */ /* not lifted */ 1417 RECOMP_FLAGS_IN(); 1418 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1419 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1420 esp = esp + 0x10u; /* 0x4700F962: add esp, 0x10 */ 1421 _flag_k = FK_ADD; 1422 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700F965: ret */ 1423 RECOMP_REGS_OUT(); 1424 } 1425 1426 void sub_4700F970(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(0x4700F970u); 1435 1436 L_4700F970: 1437 ecx = MEM32(esp + 0x4); /* 0x4700F970: mov ecx, dword ptr [esp + 4] */ 1438 SET_LO8(eax, MEM8(esp + 0x10)); /* 0x4700F974: mov al, byte ptr [esp + 0x10] */ 1439 PUSH32(esp, esi); /* 0x4700F978: push esi */ 1440 esi = MEM32(esp + 0xC); /* 0x4700F979: mov esi, dword ptr [esp + 0xc] */ 1441 PUSH32(esp, esi); /* 0x4700F97D: push esi */ 1442 PUSH32(esp, ecx); /* 0x4700F97E: push ecx */ 1443 MEM8(0x4710A790) = (uint8_t)(LO8(eax)); /* 0x4700F97F: mov byte ptr [0x4710a790], al */ 1444 RECOMP_ICALL(0x470748F0u); /* 0x4700F984: call 0x470748f0 */ /* not lifted */ 1445 RECOMP_FLAGS_IN(); 1446 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1447 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1448 esp = esp + 8; /* 0x4700F989: add esp, 8 */ 1449 _flag_k = FK_ADD; 1450 /* cmp eax, 0xFFFFFFFFu */ /* 0x4700F98C: cmp eax, -1 */ 1451 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 1452 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1453 _flag_k = FK_CMP; 1454 if (CMP_NE(_flag_a, _flag_b)) goto L_4700F995; /* 0x4700F98F: jne 0x4700f995 */ 1455 L_4700F991: 1456 _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax)); 1457 eax = eax | eax; /* 0x4700F991: or eax, eax */ 1458 _cf = 0; 1459 _flag_k = FK_TEST; 1460 esi = POP32_VAL(esp); /* 0x4700F993: pop esi */ 1461 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700F994: ret */ 1462 L_4700F995: 1463 edx = MEM32(esp + 0x1C); /* 0x4700F995: mov edx, dword ptr [esp + 0x1c] */ 1464 eax = MEM32(esp + 0x18); /* 0x4700F999: mov eax, dword ptr [esp + 0x18] */ 1465 ecx = MEM32(esp + 0x10); /* 0x4700F99D: mov ecx, dword ptr [esp + 0x10] */ 1466 PUSH32(esp, edx); /* 0x4700F9A1: push edx */ 1467 edx = MEM32(esi); /* 0x4700F9A2: mov edx, dword ptr [esi] */ 1468 PUSH32(esp, eax); /* 0x4700F9A4: push eax */ 1469 PUSH32(esp, ecx); /* 0x4700F9A5: push ecx */ 1470 PUSH32(esp, edx); /* 0x4700F9A6: push edx */ 1471 RECOMP_ICALL(0x47075720u); /* 0x4700F9A7: call 0x47075720 */ /* not lifted */ 1472 RECOMP_FLAGS_IN(); 1473 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1474 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1475 esp = esp + 0x10u; /* 0x4700F9AC: add esp, 0x10 */ 1476 _flag_k = FK_ADD; 1477 esi = POP32_VAL(esp); /* 0x4700F9AF: pop esi */ 1478 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700F9B0: ret */ 1479 RECOMP_REGS_OUT(); 1480 } 1481 1482 void sub_4700F9C0(void) { 1483 int _fpu_cmp = 0; 1484 uint32_t _cf = 0; 1485 int _df = 1; 1486 uint32_t _flag_k = FK_NONE; 1487 uint32_t _flag_a = 0, _flag_b = 0; 1488 uint32_t _itail_tgt = 0; 1489 RECOMP_REGS_LOCALS 1490 RECOMP_ENTER(0x4700F9C0u); 1491 1492 L_4700F9C0: 1493 eax = MEM32(esp + 0x4); /* 0x4700F9C0: mov eax, dword ptr [esp + 4] */ 1494 MEM32(0x4710ED3C) = eax; /* 0x4700F9C4: mov dword ptr [0x4710ed3c], eax */ 1495 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700F9C9: ret */ 1496 RECOMP_REGS_OUT(); 1497 } 1498 1499 void sub_4700F9D0(void) { 1500 int _fpu_cmp = 0; 1501 uint32_t _cf = 0; 1502 int _df = 1; 1503 uint32_t _flag_k = FK_NONE; 1504 uint32_t _flag_a = 0, _flag_b = 0; 1505 uint32_t _itail_tgt = 0; 1506 RECOMP_REGS_LOCALS 1507 RECOMP_ENTER(0x4700F9D0u); 1508 1509 L_4700F9D0: 1510 MEM32(0x4710DEC4) = 0x471050FCu; /* 0x4700F9D0: mov dword ptr [0x4710dec4], 0x471050fc */ 1511 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700F9DA: ret */ 1512 RECOMP_REGS_OUT(); 1513 } 1514 1515 void sub_4700F9E0(void) { 1516 int _fpu_cmp = 0; 1517 uint32_t _cf = 0; 1518 int _df = 1; 1519 uint32_t _flag_k = FK_NONE; 1520 uint32_t _flag_a = 0, _flag_b = 0; 1521 uint32_t _itail_tgt = 0; 1522 RECOMP_REGS_LOCALS 1523 RECOMP_ENTER(0x4700F9E0u); 1524 1525 L_4700F9E0: 1526 PUSH32(esp, 0); /* 0x4700F9E0: push 0 */ 1527 PUSH32(esp, 0); /* 0x4700F9E2: push 0 */ 1528 RECOMP_ICALL(0x4706B4F0u); /* 0x4700F9E4: call 0x4706b4f0 */ /* not lifted */ 1529 RECOMP_FLAGS_IN(); 1530 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700F9E9: ret */ 1531 RECOMP_REGS_OUT(); 1532 } 1533 1534 void sub_4700F9F0(void) { 1535 int _fpu_cmp = 0; 1536 uint32_t _cf = 0; 1537 int _df = 1; 1538 uint32_t _flag_k = FK_NONE; 1539 uint32_t _flag_a = 0, _flag_b = 0; 1540 uint32_t _itail_tgt = 0; 1541 RECOMP_REGS_LOCALS 1542 RECOMP_ENTER(0x4700F9F0u); 1543 1544 L_4700F9F0: 1545 PUSH32(esp, esi); /* 0x4700F9F0: push esi */ 1546 PUSH32(esp, 0); /* 0x4700F9F1: push 0 */ 1547 esi = ecx; /* 0x4700F9F3: mov esi, ecx */ 1548 PUSH32(esp, 0); /* 0x4700F9F5: push 0 */ 1549 RECOMP_ICALL(0x4702A790u); /* 0x4700F9F7: call 0x4702a790 */ /* not lifted */ 1550 RECOMP_FLAGS_IN(); 1551 MEM32(esi) = 0x470AC86Cu; /* 0x4700F9FC: mov dword ptr [esi], 0x470ac86c */ 1552 eax = esi; /* 0x4700FA02: mov eax, esi */ 1553 esi = POP32_VAL(esp); /* 0x4700FA04: pop esi */ 1554 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700FA05: ret */ 1555 RECOMP_REGS_OUT(); 1556 } 1557 1558 void sub_4700FA10(void) { 1559 int _fpu_cmp = 0; 1560 uint32_t _cf = 0; 1561 int _df = 1; 1562 uint32_t _flag_k = FK_NONE; 1563 uint32_t _flag_a = 0, _flag_b = 0; 1564 uint32_t _itail_tgt = 0; 1565 RECOMP_REGS_LOCALS 1566 RECOMP_ENTER(0x4700FA10u); 1567 1568 L_4700FA10: 1569 eax = ecx; /* 0x4700FA10: mov eax, ecx */ 1570 ecx = MEM32(esp + 0x4); /* 0x4700FA12: mov ecx, dword ptr [esp + 4] */ 1571 edx = MEM32(ecx + 0x4); /* 0x4700FA16: mov edx, dword ptr [ecx + 4] */ 1572 MEM32(eax + 0x4) = edx; /* 0x4700FA19: mov dword ptr [eax + 4], edx */ 1573 ecx = MEM32(ecx + 0x8); /* 0x4700FA1C: mov ecx, dword ptr [ecx + 8] */ 1574 MEM32(eax + 0x8) = ecx; /* 0x4700FA1F: mov dword ptr [eax + 8], ecx */ 1575 MEM32(eax) = 0x470AC86Cu; /* 0x4700FA22: mov dword ptr [eax], 0x470ac86c */ 1576 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700FA28: ret 4 */ 1577 RECOMP_REGS_OUT(); 1578 } 1579 1580 void sub_4700FA30(void) { 1581 int _fpu_cmp = 0; 1582 uint32_t _cf = 0; 1583 int _df = 1; 1584 uint32_t _flag_k = FK_NONE; 1585 uint32_t _flag_a = 0, _flag_b = 0; 1586 uint32_t _itail_tgt = 0; 1587 RECOMP_REGS_LOCALS 1588 RECOMP_ENTER(0x4700FA30u); 1589 1590 L_4700FA30: 1591 MEM32(ecx) = 0x470AC8C8u; /* 0x4700FA30: mov dword ptr [ecx], 0x470ac8c8 */ 1592 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700FA36: ret */ 1593 RECOMP_REGS_OUT(); 1594 } 1595 1596 void sub_4700FA40(void) { 1597 int _fpu_cmp = 0; 1598 uint32_t _cf = 0; 1599 int _df = 1; 1600 uint32_t _flag_k = FK_NONE; 1601 uint32_t _flag_a = 0, _flag_b = 0; 1602 uint32_t _itail_tgt = 0; 1603 RECOMP_REGS_LOCALS 1604 RECOMP_ENTER(0x4700FA40u); 1605 1606 L_4700FA40: 1607 eax = ecx; /* 0x4700FA40: mov eax, ecx */ 1608 MEM32(eax) = 0x470AC8C8u; /* 0x4700FA42: mov dword ptr [eax], 0x470ac8c8 */ 1609 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700FA48: ret */ 1610 RECOMP_REGS_OUT(); 1611 } 1612 1613 void sub_4700FA50(void) { 1614 int _fpu_cmp = 0; 1615 uint32_t _cf = 0; 1616 int _df = 1; 1617 uint32_t _flag_k = FK_NONE; 1618 uint32_t _flag_a = 0, _flag_b = 0; 1619 uint32_t _itail_tgt = 0; 1620 RECOMP_REGS_LOCALS 1621 RECOMP_ENTER(0x4700FA50u); 1622 1623 L_4700FA50: 1624 eax = ecx; /* 0x4700FA50: mov eax, ecx */ 1625 MEM32(eax) = 0x470AC8C8u; /* 0x4700FA52: mov dword ptr [eax], 0x470ac8c8 */ 1626 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700FA58: ret 4 */ 1627 RECOMP_REGS_OUT(); 1628 } 1629 1630 void sub_4700FA60(void) { 1631 int _fpu_cmp = 0; 1632 uint32_t _cf = 0; 1633 int _df = 1; 1634 uint32_t _flag_k = FK_NONE; 1635 uint32_t _flag_a = 0, _flag_b = 0; 1636 uint32_t _itail_tgt = 0; 1637 RECOMP_REGS_LOCALS 1638 RECOMP_ENTER(0x4700FA60u); 1639 1640 L_4700FA60: 1641 PUSH32(esp, ebx); /* 0x4700FA60: push ebx */ 1642 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x4700FA61: mov bl, byte ptr [esp + 8] */ 1643 /* test LO8(ebx), 2 */ /* 0x4700FA65: test bl, 2 */ 1644 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 1645 _cf = 0; 1646 _flag_k = FK_NARROW(FK_TEST, 24); 1647 PUSH32(esp, esi); /* 0x4700FA68: push esi */ 1648 esi = ecx; /* 0x4700FA69: mov esi, ecx */ 1649 if (TEST_Z(_flag_a, _flag_b)) goto L_4700FA98; /* 0x4700FA6B: je 0x4700fa98 */ 1650 L_4700FA6D: 1651 eax = MEM32(esi + (-0x4)); /* 0x4700FA6D: mov eax, dword ptr [esi - 4] */ 1652 PUSH32(esp, edi); /* 0x4700FA70: push edi */ 1653 PUSH32(esp, 0x4700FA30u); /* 0x4700FA71: push 0x4700fa30 */ 1654 edi = esi + (-0x4); /* 0x4700FA76: lea edi, [esi - 4] */ 1655 PUSH32(esp, eax); /* 0x4700FA79: push eax */ 1656 PUSH32(esp, 4); /* 0x4700FA7A: push 4 */ 1657 PUSH32(esp, esi); /* 0x4700FA7C: push esi */ 1658 RECOMP_ICALL(0x470A32EBu); /* 0x4700FA7D: call 0x470a32eb */ /* not lifted */ 1659 RECOMP_FLAGS_IN(); 1660 /* test LO8(ebx), 1 */ /* 0x4700FA82: test bl, 1 */ 1661 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1662 _cf = 0; 1663 _flag_k = FK_NARROW(FK_TEST, 24); 1664 if (TEST_Z(_flag_a, _flag_b)) goto L_4700FA90; /* 0x4700FA85: je 0x4700fa90 */ 1665 L_4700FA87: 1666 PUSH32(esp, edi); /* 0x4700FA87: push edi */ 1667 RECOMP_ICALL(0x470A32A2u); /* 0x4700FA88: call 0x470a32a2 */ /* not lifted */ 1668 RECOMP_FLAGS_IN(); 1669 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1670 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1671 esp = esp + 4; /* 0x4700FA8D: add esp, 4 */ 1672 _flag_k = FK_ADD; 1673 L_4700FA90: 1674 eax = edi; /* 0x4700FA90: mov eax, edi */ 1675 edi = POP32_VAL(esp); /* 0x4700FA92: pop edi */ 1676 esi = POP32_VAL(esp); /* 0x4700FA93: pop esi */ 1677 ebx = POP32_VAL(esp); /* 0x4700FA94: pop ebx */ 1678 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700FA95: ret 4 */ 1679 L_4700FA98: 1680 /* test LO8(ebx), 1 */ /* 0x4700FA98: test bl, 1 */ 1681 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1682 _cf = 0; 1683 _flag_k = FK_NARROW(FK_TEST, 24); 1684 MEM32(esi) = 0x470AC8C8u; /* 0x4700FA9B: mov dword ptr [esi], 0x470ac8c8 */ 1685 if (TEST_Z(_flag_a, _flag_b)) goto L_4700FAAC; /* 0x4700FAA1: je 0x4700faac */ 1686 L_4700FAA3: 1687 PUSH32(esp, esi); /* 0x4700FAA3: push esi */ 1688 RECOMP_ICALL(0x470A32A2u); /* 0x4700FAA4: call 0x470a32a2 */ /* not lifted */ 1689 RECOMP_FLAGS_IN(); 1690 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1691 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1692 esp = esp + 4; /* 0x4700FAA9: add esp, 4 */ 1693 _flag_k = FK_ADD; 1694 L_4700FAAC: 1695 eax = esi; /* 0x4700FAAC: mov eax, esi */ 1696 esi = POP32_VAL(esp); /* 0x4700FAAE: pop esi */ 1697 ebx = POP32_VAL(esp); /* 0x4700FAAF: pop ebx */ 1698 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700FAB0: ret 4 */ 1699 RECOMP_REGS_OUT(); 1700 } 1701 1702 void sub_4700FAC0(void) { 1703 int _fpu_cmp = 0; 1704 uint32_t _cf = 0; 1705 int _df = 1; 1706 uint32_t _flag_k = FK_NONE; 1707 uint32_t _flag_a = 0, _flag_b = 0; 1708 uint32_t _itail_tgt = 0; 1709 RECOMP_REGS_LOCALS 1710 RECOMP_ENTER(0x4700FAC0u); 1711 1712 L_4700FAC0: 1713 eax = MEM32(ecx); /* 0x4700FAC0: mov eax, dword ptr [ecx] */ 1714 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x4700FAC2: call dword ptr [eax + 0x104] */ 1715 RECOMP_FLAGS_IN(); 1716 ecx = MEM32(esp + 0x8); /* 0x4700FAC8: mov ecx, dword ptr [esp + 8] */ 1717 edx = MEM32(eax); /* 0x4700FACC: mov edx, dword ptr [eax] */ 1718 PUSH32(esp, ecx); /* 0x4700FACE: push ecx */ 1719 ecx = MEM32(esp + 0x8); /* 0x4700FACF: mov ecx, dword ptr [esp + 8] */ 1720 PUSH32(esp, ecx); /* 0x4700FAD3: push ecx */ 1721 ecx = eax; /* 0x4700FAD4: mov ecx, eax */ 1722 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x4700FAD6: call dword ptr [edx + 8] */ 1723 RECOMP_FLAGS_IN(); 1724 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4700FAD9: ret 8 */ 1725 RECOMP_REGS_OUT(); 1726 } 1727 1728 void sub_4700FAE0(void) { 1729 int _fpu_cmp = 0; 1730 uint32_t _cf = 0; 1731 int _df = 1; 1732 uint32_t _flag_k = FK_NONE; 1733 uint32_t _flag_a = 0, _flag_b = 0; 1734 uint32_t _itail_tgt = 0; 1735 RECOMP_REGS_LOCALS 1736 RECOMP_ENTER(0x4700FAE0u); 1737 1738 L_4700FAE0: 1739 RECOMP_ICALL(0x4706B620u); /* 0x4700FAE0: call 0x4706b620 */ /* not lifted */ 1740 RECOMP_FLAGS_IN(); 1741 edx = MEM32(eax); /* 0x4700FAE5: mov edx, dword ptr [eax] */ 1742 PUSH32(esp, 0x4706B820u); /* 0x4700FAE7: push 0x4706b820 */ 1743 ecx = eax; /* 0x4700FAEC: mov ecx, eax */ 1744 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4700FAEE: call dword ptr [edx + 4] */ 1745 RECOMP_FLAGS_IN(); 1746 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700FAF1: ret */ 1747 RECOMP_REGS_OUT(); 1748 } 1749 1750 void sub_4700FB00(void) { 1751 int _fpu_cmp = 0; 1752 uint32_t _cf = 0; 1753 int _df = 1; 1754 uint32_t _flag_k = FK_NONE; 1755 uint32_t _flag_a = 0, _flag_b = 0; 1756 uint32_t _itail_tgt = 0; 1757 RECOMP_REGS_LOCALS 1758 RECOMP_ENTER(0x4700FB00u); 1759 1760 L_4700FB00: 1761 RECOMP_ICALL(0x4706B620u); /* 0x4700FB00: call 0x4706b620 */ /* not lifted */ 1762 RECOMP_FLAGS_IN(); 1763 ecx = MEM32(esp + 0x4); /* 0x4700FB05: mov ecx, dword ptr [esp + 4] */ 1764 edx = MEM32(eax); /* 0x4700FB09: mov edx, dword ptr [eax] */ 1765 PUSH32(esp, 0x4706B820u); /* 0x4700FB0B: push 0x4706b820 */ 1766 PUSH32(esp, ecx); /* 0x4700FB10: push ecx */ 1767 ecx = eax; /* 0x4700FB11: mov ecx, eax */ 1768 RECOMP_ICALL(MEM32(edx)); /* 0x4700FB13: call dword ptr [edx] */ 1769 RECOMP_FLAGS_IN(); 1770 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700FB15: ret */ 1771 RECOMP_REGS_OUT(); 1772 } 1773 1774 void sub_4700FB20(void) { 1775 int _fpu_cmp = 0; 1776 uint32_t _cf = 0; 1777 int _df = 1; 1778 uint32_t _flag_k = FK_NONE; 1779 uint32_t _flag_a = 0, _flag_b = 0; 1780 uint32_t _itail_tgt = 0; 1781 RECOMP_REGS_LOCALS 1782 RECOMP_ENTER(0x4700FB20u); 1783 1784 L_4700FB20: 1785 RECOMP_ICALL(0x4706B620u); /* 0x4700FB20: call 0x4706b620 */ /* not lifted */ 1786 RECOMP_FLAGS_IN(); 1787 edx = MEM32(eax); /* 0x4700FB25: mov edx, dword ptr [eax] */ 1788 PUSH32(esp, 0x4706B820u); /* 0x4700FB27: push 0x4706b820 */ 1789 ecx = eax; /* 0x4700FB2C: mov ecx, eax */ 1790 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4700FB2E: call dword ptr [edx + 0xc] */ 1791 RECOMP_FLAGS_IN(); 1792 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700FB31: ret */ 1793 RECOMP_REGS_OUT(); 1794 } 1795 1796 void sub_4700FB40(void) { 1797 int _fpu_cmp = 0; 1798 uint32_t _cf = 0; 1799 int _df = 1; 1800 uint32_t _flag_k = FK_NONE; 1801 uint32_t _flag_a = 0, _flag_b = 0; 1802 uint32_t _itail_tgt = 0; 1803 RECOMP_REGS_LOCALS 1804 RECOMP_ENTER(0x4700FB40u); 1805 1806 L_4700FB40: 1807 RECOMP_ICALL(0x4706B620u); /* 0x4700FB40: call 0x4706b620 */ /* not lifted */ 1808 RECOMP_FLAGS_IN(); 1809 ecx = MEM32(esp + 0x4); /* 0x4700FB45: mov ecx, dword ptr [esp + 4] */ 1810 edx = MEM32(eax); /* 0x4700FB49: mov edx, dword ptr [eax] */ 1811 PUSH32(esp, 0x4706B820u); /* 0x4700FB4B: push 0x4706b820 */ 1812 PUSH32(esp, ecx); /* 0x4700FB50: push ecx */ 1813 ecx = eax; /* 0x4700FB51: mov ecx, eax */ 1814 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x4700FB53: call dword ptr [edx + 8] */ 1815 RECOMP_FLAGS_IN(); 1816 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700FB56: ret */ 1817 RECOMP_REGS_OUT(); 1818 } 1819 1820 void sub_4700FB60(void) { 1821 int _fpu_cmp = 0; 1822 uint32_t _cf = 0; 1823 int _df = 1; 1824 uint32_t _flag_k = FK_NONE; 1825 uint32_t _flag_a = 0, _flag_b = 0; 1826 uint32_t _itail_tgt = 0; 1827 RECOMP_REGS_LOCALS 1828 RECOMP_ENTER(0x4700FB60u); 1829 1830 L_4700FB60: 1831 RECOMP_ICALL(0x4706B620u); /* 0x4700FB60: call 0x4706b620 */ /* not lifted */ 1832 RECOMP_FLAGS_IN(); 1833 L_4700FB65: 1834 edx = MEM32(eax); /* 0x4700FB65: mov edx, dword ptr [eax] */ 1835 L_4700FB67: 1836 ecx = eax; /* 0x4700FB67: mov ecx, eax */ 1837 L_4700FB69: 1838 { _itail_tgt = (uint32_t)(MEM32(edx + 0x18)); goto _ljump; } 1839 { RECOMP_REGS_OUT(); return; } /* end of function */ 1840 _ljump: 1841 switch (_itail_tgt) { 1842 case 0x4700FB60u: goto L_4700FB60; 1843 case 0x4700FB65u: goto L_4700FB65; 1844 case 0x4700FB67u: goto L_4700FB67; 1845 case 0x4700FB69u: goto L_4700FB69; 1846 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1847 } 1848 RECOMP_REGS_OUT(); 1849 } 1850 1851 void sub_4700FB70(void) { 1852 int _fpu_cmp = 0; 1853 uint32_t _cf = 0; 1854 int _df = 1; 1855 uint32_t _flag_k = FK_NONE; 1856 uint32_t _flag_a = 0, _flag_b = 0; 1857 uint32_t _itail_tgt = 0; 1858 RECOMP_REGS_LOCALS 1859 RECOMP_ENTER(0x4700FB70u); 1860 1861 L_4700FB70: 1862 RECOMP_ICALL(0x4706B620u); /* 0x4700FB70: call 0x4706b620 */ /* not lifted */ 1863 RECOMP_FLAGS_IN(); 1864 edx = MEM32(eax); /* 0x4700FB75: mov edx, dword ptr [eax] */ 1865 ecx = eax; /* 0x4700FB77: mov ecx, eax */ 1866 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x4700FB79: call dword ptr [edx + 0x10] */ 1867 RECOMP_FLAGS_IN(); 1868 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1869 eax = 0; /* 0x4700FB7C: xor eax, eax */ 1870 _cf = 0; 1871 _flag_k = FK_TEST; 1872 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700FB7E: ret */ 1873 RECOMP_REGS_OUT(); 1874 } 1875 1876 void sub_4700FB80(void) { 1877 int _fpu_cmp = 0; 1878 uint32_t _cf = 0; 1879 int _df = 1; 1880 uint32_t _flag_k = FK_NONE; 1881 uint32_t _flag_a = 0, _flag_b = 0; 1882 uint32_t _itail_tgt = 0; 1883 RECOMP_REGS_LOCALS 1884 RECOMP_ENTER(0x4700FB80u); 1885 1886 L_4700FB80: 1887 RECOMP_ICALL(0x4706B620u); /* 0x4700FB80: call 0x4706b620 */ /* not lifted */ 1888 RECOMP_FLAGS_IN(); 1889 L_4700FB85: 1890 edx = MEM32(eax); /* 0x4700FB85: mov edx, dword ptr [eax] */ 1891 L_4700FB87: 1892 ecx = eax; /* 0x4700FB87: mov ecx, eax */ 1893 L_4700FB89: 1894 { _itail_tgt = (uint32_t)(MEM32(edx + 0x14)); goto _ljump; } 1895 { RECOMP_REGS_OUT(); return; } /* end of function */ 1896 _ljump: 1897 switch (_itail_tgt) { 1898 case 0x4700FB80u: goto L_4700FB80; 1899 case 0x4700FB85u: goto L_4700FB85; 1900 case 0x4700FB87u: goto L_4700FB87; 1901 case 0x4700FB89u: goto L_4700FB89; 1902 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1903 } 1904 RECOMP_REGS_OUT(); 1905 } 1906 1907 void sub_4700FB90(void) { 1908 int _fpu_cmp = 0; 1909 uint32_t _cf = 0; 1910 int _df = 1; 1911 uint32_t _flag_k = FK_NONE; 1912 uint32_t _flag_a = 0, _flag_b = 0; 1913 uint32_t _itail_tgt = 0; 1914 RECOMP_REGS_LOCALS 1915 RECOMP_ENTER(0x4700FB90u); 1916 1917 L_4700FB90: 1918 eax = MEM32(ecx); /* 0x4700FB90: mov eax, dword ptr [ecx] */ 1919 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x4700FB92: call dword ptr [eax + 0x104] */ 1920 RECOMP_FLAGS_IN(); 1921 ecx = MEM32(esp + 0x10); /* 0x4700FB98: mov ecx, dword ptr [esp + 0x10] */ 1922 edx = MEM32(eax); /* 0x4700FB9C: mov edx, dword ptr [eax] */ 1923 PUSH32(esp, 0); /* 0x4700FB9E: push 0 */ 1924 PUSH32(esp, 0); /* 0x4700FBA0: push 0 */ 1925 PUSH32(esp, ecx); /* 0x4700FBA2: push ecx */ 1926 ecx = MEM32(esp + 0x18); /* 0x4700FBA3: mov ecx, dword ptr [esp + 0x18] */ 1927 PUSH32(esp, ecx); /* 0x4700FBA7: push ecx */ 1928 ecx = MEM32(esp + 0x18); /* 0x4700FBA8: mov ecx, dword ptr [esp + 0x18] */ 1929 PUSH32(esp, ecx); /* 0x4700FBAC: push ecx */ 1930 ecx = MEM32(esp + 0x18); /* 0x4700FBAD: mov ecx, dword ptr [esp + 0x18] */ 1931 PUSH32(esp, ecx); /* 0x4700FBB1: push ecx */ 1932 ecx = eax; /* 0x4700FBB2: mov ecx, eax */ 1933 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4700FBB4: call dword ptr [edx + 4] */ 1934 RECOMP_FLAGS_IN(); 1935 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4700FBB7: ret 0x10 */ 1936 RECOMP_REGS_OUT(); 1937 } 1938 1939 void sub_4700FBC0(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(0x4700FBC0u); 1948 1949 L_4700FBC0: 1950 eax = MEM32(ecx); /* 0x4700FBC0: mov eax, dword ptr [ecx] */ 1951 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x4700FBC2: call dword ptr [eax + 0x104] */ 1952 RECOMP_FLAGS_IN(); 1953 ecx = MEM32(esp + 0x4); /* 0x4700FBC8: mov ecx, dword ptr [esp + 4] */ 1954 edx = MEM32(eax); /* 0x4700FBCC: mov edx, dword ptr [eax] */ 1955 PUSH32(esp, ecx); /* 0x4700FBCE: push ecx */ 1956 ecx = eax; /* 0x4700FBCF: mov ecx, eax */ 1957 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4700FBD1: call dword ptr [edx + 0xc] */ 1958 RECOMP_FLAGS_IN(); 1959 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700FBD4: ret 4 */ 1960 RECOMP_REGS_OUT(); 1961 } 1962 1963 void sub_4700FBE0(void) { 1964 int _fpu_cmp = 0; 1965 uint32_t _cf = 0; 1966 int _df = 1; 1967 uint32_t _flag_k = FK_NONE; 1968 uint32_t _flag_a = 0, _flag_b = 0; 1969 uint32_t _itail_tgt = 0; 1970 RECOMP_REGS_LOCALS 1971 RECOMP_ENTER(0x4700FBE0u); 1972 1973 L_4700FBE0: 1974 eax = MEM32(ecx); /* 0x4700FBE0: mov eax, dword ptr [ecx] */ 1975 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x4700FBE2: call dword ptr [eax + 0x104] */ 1976 RECOMP_FLAGS_IN(); 1977 ecx = MEM32(esp + 0x4); /* 0x4700FBE8: mov ecx, dword ptr [esp + 4] */ 1978 edx = MEM32(eax); /* 0x4700FBEC: mov edx, dword ptr [eax] */ 1979 PUSH32(esp, ecx); /* 0x4700FBEE: push ecx */ 1980 ecx = eax; /* 0x4700FBEF: mov ecx, eax */ 1981 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x4700FBF1: call dword ptr [edx + 0x10] */ 1982 RECOMP_FLAGS_IN(); 1983 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700FBF4: ret 4 */ 1984 RECOMP_REGS_OUT(); 1985 } 1986 1987 void sub_4700FC00(void) { 1988 int _fpu_cmp = 0; 1989 uint32_t _cf = 0; 1990 int _df = 1; 1991 uint32_t _flag_k = FK_NONE; 1992 uint32_t _flag_a = 0, _flag_b = 0; 1993 uint32_t _itail_tgt = 0; 1994 RECOMP_REGS_LOCALS 1995 RECOMP_ENTER(0x4700FC00u); 1996 1997 L_4700FC00: 1998 eax = MEM32(ecx); /* 0x4700FC00: mov eax, dword ptr [ecx] */ 1999 L_4700FC02: 2000 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x4700FC02: call dword ptr [eax + 0x104] */ 2001 RECOMP_FLAGS_IN(); 2002 L_4700FC08: 2003 edx = MEM32(eax); /* 0x4700FC08: mov edx, dword ptr [eax] */ 2004 L_4700FC0A: 2005 ecx = eax; /* 0x4700FC0A: mov ecx, eax */ 2006 L_4700FC0C: 2007 { _itail_tgt = (uint32_t)(MEM32(edx + 0x14)); goto _ljump; } 2008 { RECOMP_REGS_OUT(); return; } /* end of function */ 2009 _ljump: 2010 switch (_itail_tgt) { 2011 case 0x4700FC00u: goto L_4700FC00; 2012 case 0x4700FC02u: goto L_4700FC02; 2013 case 0x4700FC08u: goto L_4700FC08; 2014 case 0x4700FC0Au: goto L_4700FC0A; 2015 case 0x4700FC0Cu: goto L_4700FC0C; 2016 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2017 } 2018 RECOMP_REGS_OUT(); 2019 } 2020 2021 void sub_4700FC10(void) { 2022 int _fpu_cmp = 0; 2023 uint32_t _cf = 0; 2024 int _df = 1; 2025 uint32_t _flag_k = FK_NONE; 2026 uint32_t _flag_a = 0, _flag_b = 0; 2027 uint32_t _itail_tgt = 0; 2028 RECOMP_REGS_LOCALS 2029 RECOMP_ENTER(0x4700FC10u); 2030 2031 L_4700FC10: 2032 eax = MEM32(ecx); /* 0x4700FC10: mov eax, dword ptr [ecx] */ 2033 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x4700FC12: call dword ptr [eax + 0x104] */ 2034 RECOMP_FLAGS_IN(); 2035 ecx = MEM32(esp + 0x4); /* 0x4700FC18: mov ecx, dword ptr [esp + 4] */ 2036 edx = MEM32(eax); /* 0x4700FC1C: mov edx, dword ptr [eax] */ 2037 PUSH32(esp, ecx); /* 0x4700FC1E: push ecx */ 2038 ecx = eax; /* 0x4700FC1F: mov ecx, eax */ 2039 RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x4700FC21: call dword ptr [edx + 0x18] */ 2040 RECOMP_FLAGS_IN(); 2041 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700FC24: ret 4 */ 2042 RECOMP_REGS_OUT(); 2043 } 2044 2045 void sub_4700FC30(void) { 2046 int _fpu_cmp = 0; 2047 uint32_t _cf = 0; 2048 int _df = 1; 2049 uint32_t _flag_k = FK_NONE; 2050 uint32_t _flag_a = 0, _flag_b = 0; 2051 uint32_t _itail_tgt = 0; 2052 RECOMP_REGS_LOCALS 2053 RECOMP_ENTER(0x4700FC30u); 2054 2055 L_4700FC30: 2056 eax = MEM32(ecx); /* 0x4700FC30: mov eax, dword ptr [ecx] */ 2057 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x4700FC32: call dword ptr [eax + 0x104] */ 2058 RECOMP_FLAGS_IN(); 2059 ecx = MEM32(esp + 0x4); /* 0x4700FC38: mov ecx, dword ptr [esp + 4] */ 2060 edx = MEM32(eax); /* 0x4700FC3C: mov edx, dword ptr [eax] */ 2061 PUSH32(esp, ecx); /* 0x4700FC3E: push ecx */ 2062 ecx = eax; /* 0x4700FC3F: mov ecx, eax */ 2063 RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x4700FC41: call dword ptr [edx + 0x20] */ 2064 RECOMP_FLAGS_IN(); 2065 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700FC44: ret 4 */ 2066 RECOMP_REGS_OUT(); 2067 } 2068 2069 void sub_4700FC50(void) { 2070 int _fpu_cmp = 0; 2071 uint32_t _cf = 0; 2072 int _df = 1; 2073 uint32_t _flag_k = FK_NONE; 2074 uint32_t _flag_a = 0, _flag_b = 0; 2075 uint32_t _itail_tgt = 0; 2076 RECOMP_REGS_LOCALS 2077 RECOMP_ENTER(0x4700FC50u); 2078 2079 L_4700FC50: 2080 eax = MEM32(ecx); /* 0x4700FC50: mov eax, dword ptr [ecx] */ 2081 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x4700FC52: call dword ptr [eax + 0x104] */ 2082 RECOMP_FLAGS_IN(); 2083 ecx = MEM32(esp + 0x4); /* 0x4700FC58: mov ecx, dword ptr [esp + 4] */ 2084 edx = MEM32(eax); /* 0x4700FC5C: mov edx, dword ptr [eax] */ 2085 PUSH32(esp, ecx); /* 0x4700FC5E: push ecx */ 2086 ecx = eax; /* 0x4700FC5F: mov ecx, eax */ 2087 RECOMP_ICALL(MEM32(edx + 0x28)); /* 0x4700FC61: call dword ptr [edx + 0x28] */ 2088 RECOMP_FLAGS_IN(); 2089 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700FC64: ret 4 */ 2090 RECOMP_REGS_OUT(); 2091 } 2092 2093 void sub_4700FC70(void) { 2094 int _fpu_cmp = 0; 2095 uint32_t _cf = 0; 2096 int _df = 1; 2097 uint32_t _flag_k = FK_NONE; 2098 uint32_t _flag_a = 0, _flag_b = 0; 2099 uint32_t _itail_tgt = 0; 2100 RECOMP_REGS_LOCALS 2101 RECOMP_ENTER(0x4700FC70u); 2102 2103 L_4700FC70: 2104 eax = MEM32(ecx); /* 0x4700FC70: mov eax, dword ptr [ecx] */ 2105 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x4700FC72: call dword ptr [eax + 0x104] */ 2106 RECOMP_FLAGS_IN(); 2107 ecx = MEM32(esp + 0x4); /* 0x4700FC78: mov ecx, dword ptr [esp + 4] */ 2108 edx = MEM32(eax); /* 0x4700FC7C: mov edx, dword ptr [eax] */ 2109 PUSH32(esp, ecx); /* 0x4700FC7E: push ecx */ 2110 ecx = eax; /* 0x4700FC7F: mov ecx, eax */ 2111 RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x4700FC81: call dword ptr [edx + 0x1c] */ 2112 RECOMP_FLAGS_IN(); 2113 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700FC84: ret 4 */ 2114 RECOMP_REGS_OUT(); 2115 } 2116 2117 void sub_4700FC90(void) { 2118 int _fpu_cmp = 0; 2119 uint32_t _cf = 0; 2120 int _df = 1; 2121 uint32_t _flag_k = FK_NONE; 2122 uint32_t _flag_a = 0, _flag_b = 0; 2123 uint32_t _itail_tgt = 0; 2124 RECOMP_REGS_LOCALS 2125 RECOMP_ENTER(0x4700FC90u); 2126 2127 L_4700FC90: 2128 eax = MEM32(ecx); /* 0x4700FC90: mov eax, dword ptr [ecx] */ 2129 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x4700FC92: call dword ptr [eax + 0x104] */ 2130 RECOMP_FLAGS_IN(); 2131 ecx = MEM32(esp + 0x4); /* 0x4700FC98: mov ecx, dword ptr [esp + 4] */ 2132 edx = MEM32(eax); /* 0x4700FC9C: mov edx, dword ptr [eax] */ 2133 PUSH32(esp, ecx); /* 0x4700FC9E: push ecx */ 2134 ecx = eax; /* 0x4700FC9F: mov ecx, eax */ 2135 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x4700FCA1: call dword ptr [edx + 0x24] */ 2136 RECOMP_FLAGS_IN(); 2137 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700FCA4: ret 4 */ 2138 RECOMP_REGS_OUT(); 2139 } 2140 2141 void sub_4700FCB0(void) { 2142 int _fpu_cmp = 0; 2143 uint32_t _cf = 0; 2144 int _df = 1; 2145 uint32_t _flag_k = FK_NONE; 2146 uint32_t _flag_a = 0, _flag_b = 0; 2147 uint32_t _itail_tgt = 0; 2148 RECOMP_REGS_LOCALS 2149 RECOMP_ENTER(0x4700FCB0u); 2150 2151 L_4700FCB0: 2152 PUSH32(esp, ebx); /* 0x4700FCB0: push ebx */ 2153 PUSH32(esp, esi); /* 0x4700FCB1: push esi */ 2154 esi = ecx; /* 0x4700FCB2: mov esi, ecx */ 2155 eax = MEM32(esi); /* 0x4700FCB4: mov eax, dword ptr [esi] */ 2156 PUSH32(esp, edi); /* 0x4700FCB6: push edi */ 2157 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x4700FCB7: call dword ptr [eax + 0x104] */ 2158 RECOMP_FLAGS_IN(); 2159 ecx = MEM32(esp + 0x14); /* 0x4700FCBD: mov ecx, dword ptr [esp + 0x14] */ 2160 ebx = MEM32(esp + 0x10); /* 0x4700FCC1: mov ebx, dword ptr [esp + 0x10] */ 2161 edx = MEM32(eax); /* 0x4700FCC5: mov edx, dword ptr [eax] */ 2162 PUSH32(esp, ecx); /* 0x4700FCC7: push ecx */ 2163 PUSH32(esp, ebx); /* 0x4700FCC8: push ebx */ 2164 ecx = eax; /* 0x4700FCC9: mov ecx, eax */ 2165 RECOMP_ICALL(MEM32(edx + 0x4C)); /* 0x4700FCCB: call dword ptr [edx + 0x4c] */ 2166 RECOMP_FLAGS_IN(); 2167 edi = eax; /* 0x4700FCCE: mov edi, eax */ 2168 /* cmp edi, 0xFFFFFFFFu */ /* 0x4700FCD0: cmp edi, -1 */ 2169 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu); 2170 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2171 _flag_k = FK_CMP; 2172 if (CMP_EQ(_flag_a, _flag_b)) goto L_4700FCDD; /* 0x4700FCD3: je 0x4700fcdd */ 2173 L_4700FCD5: 2174 edx = MEM32(ebx); /* 0x4700FCD5: mov edx, dword ptr [ebx] */ 2175 PUSH32(esp, esi); /* 0x4700FCD7: push esi */ 2176 ecx = ebx; /* 0x4700FCD8: mov ecx, ebx */ 2177 RECOMP_ICALL(MEM32(edx + 0x3C)); /* 0x4700FCDA: call dword ptr [edx + 0x3c] */ 2178 RECOMP_FLAGS_IN(); 2179 L_4700FCDD: 2180 eax = edi; /* 0x4700FCDD: mov eax, edi */ 2181 edi = POP32_VAL(esp); /* 0x4700FCDF: pop edi */ 2182 esi = POP32_VAL(esp); /* 0x4700FCE0: pop esi */ 2183 ebx = POP32_VAL(esp); /* 0x4700FCE1: pop ebx */ 2184 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4700FCE2: ret 8 */ 2185 RECOMP_REGS_OUT(); 2186 } 2187 2188 void sub_4700FCF0(void) { 2189 int _fpu_cmp = 0; 2190 uint32_t _cf = 0; 2191 int _df = 1; 2192 uint32_t _flag_k = FK_NONE; 2193 uint32_t _flag_a = 0, _flag_b = 0; 2194 uint32_t _itail_tgt = 0; 2195 RECOMP_REGS_LOCALS 2196 RECOMP_ENTER(0x4700FCF0u); 2197 2198 L_4700FCF0: 2199 PUSH32(esp, ebx); /* 0x4700FCF0: push ebx */ 2200 PUSH32(esp, esi); /* 0x4700FCF1: push esi */ 2201 esi = ecx; /* 0x4700FCF2: mov esi, ecx */ 2202 eax = MEM32(esi); /* 0x4700FCF4: mov eax, dword ptr [esi] */ 2203 PUSH32(esp, edi); /* 0x4700FCF6: push edi */ 2204 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x4700FCF7: call dword ptr [eax + 0x104] */ 2205 RECOMP_FLAGS_IN(); 2206 ecx = MEM32(esp + 0x18); /* 0x4700FCFD: mov ecx, dword ptr [esp + 0x18] */ 2207 ebx = MEM32(esp + 0x14); /* 0x4700FD01: mov ebx, dword ptr [esp + 0x14] */ 2208 edx = MEM32(eax); /* 0x4700FD05: mov edx, dword ptr [eax] */ 2209 PUSH32(esp, ecx); /* 0x4700FD07: push ecx */ 2210 ecx = MEM32(esp + 0x14); /* 0x4700FD08: mov ecx, dword ptr [esp + 0x14] */ 2211 PUSH32(esp, ebx); /* 0x4700FD0C: push ebx */ 2212 PUSH32(esp, ecx); /* 0x4700FD0D: push ecx */ 2213 ecx = eax; /* 0x4700FD0E: mov ecx, eax */ 2214 RECOMP_ICALL(MEM32(edx + 0x48)); /* 0x4700FD10: call dword ptr [edx + 0x48] */ 2215 RECOMP_FLAGS_IN(); 2216 edi = eax; /* 0x4700FD13: mov edi, eax */ 2217 /* cmp edi, 0xFFFFFFFFu */ /* 0x4700FD15: cmp edi, -1 */ 2218 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu); 2219 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2220 _flag_k = FK_CMP; 2221 if (CMP_EQ(_flag_a, _flag_b)) goto L_4700FD22; /* 0x4700FD18: je 0x4700fd22 */ 2222 L_4700FD1A: 2223 edx = MEM32(ebx); /* 0x4700FD1A: mov edx, dword ptr [ebx] */ 2224 PUSH32(esp, esi); /* 0x4700FD1C: push esi */ 2225 ecx = ebx; /* 0x4700FD1D: mov ecx, ebx */ 2226 RECOMP_ICALL(MEM32(edx + 0x3C)); /* 0x4700FD1F: call dword ptr [edx + 0x3c] */ 2227 RECOMP_FLAGS_IN(); 2228 L_4700FD22: 2229 eax = edi; /* 0x4700FD22: mov eax, edi */ 2230 edi = POP32_VAL(esp); /* 0x4700FD24: pop edi */ 2231 esi = POP32_VAL(esp); /* 0x4700FD25: pop esi */ 2232 ebx = POP32_VAL(esp); /* 0x4700FD26: pop ebx */ 2233 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4700FD27: ret 0xc */ 2234 RECOMP_REGS_OUT(); 2235 } 2236 2237 void sub_4700FD30(void) { 2238 int _fpu_cmp = 0; 2239 uint32_t _cf = 0; 2240 int _df = 1; 2241 uint32_t _flag_k = FK_NONE; 2242 uint32_t _flag_a = 0, _flag_b = 0; 2243 uint32_t _itail_tgt = 0; 2244 RECOMP_REGS_LOCALS 2245 RECOMP_ENTER(0x4700FD30u); 2246 2247 L_4700FD30: 2248 PUSH32(esp, ebx); /* 0x4700FD30: push ebx */ 2249 PUSH32(esp, esi); /* 0x4700FD31: push esi */ 2250 esi = ecx; /* 0x4700FD32: mov esi, ecx */ 2251 eax = MEM32(esi); /* 0x4700FD34: mov eax, dword ptr [esi] */ 2252 PUSH32(esp, edi); /* 0x4700FD36: push edi */ 2253 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x4700FD37: call dword ptr [eax + 0x104] */ 2254 RECOMP_FLAGS_IN(); 2255 ecx = MEM32(esp + 0x14); /* 0x4700FD3D: mov ecx, dword ptr [esp + 0x14] */ 2256 ebx = MEM32(esp + 0x10); /* 0x4700FD41: mov ebx, dword ptr [esp + 0x10] */ 2257 edx = MEM32(eax); /* 0x4700FD45: mov edx, dword ptr [eax] */ 2258 PUSH32(esp, ecx); /* 0x4700FD47: push ecx */ 2259 PUSH32(esp, ebx); /* 0x4700FD48: push ebx */ 2260 ecx = eax; /* 0x4700FD49: mov ecx, eax */ 2261 RECOMP_ICALL(MEM32(edx + 0x44)); /* 0x4700FD4B: call dword ptr [edx + 0x44] */ 2262 RECOMP_FLAGS_IN(); 2263 edi = eax; /* 0x4700FD4E: mov edi, eax */ 2264 /* cmp edi, 0xFFFFFFFFu */ /* 0x4700FD50: cmp edi, -1 */ 2265 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu); 2266 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2267 _flag_k = FK_CMP; 2268 if (CMP_EQ(_flag_a, _flag_b)) goto L_4700FD5D; /* 0x4700FD53: je 0x4700fd5d */ 2269 L_4700FD55: 2270 edx = MEM32(ebx); /* 0x4700FD55: mov edx, dword ptr [ebx] */ 2271 PUSH32(esp, esi); /* 0x4700FD57: push esi */ 2272 ecx = ebx; /* 0x4700FD58: mov ecx, ebx */ 2273 RECOMP_ICALL(MEM32(edx + 0x3C)); /* 0x4700FD5A: call dword ptr [edx + 0x3c] */ 2274 RECOMP_FLAGS_IN(); 2275 L_4700FD5D: 2276 eax = edi; /* 0x4700FD5D: mov eax, edi */ 2277 edi = POP32_VAL(esp); /* 0x4700FD5F: pop edi */ 2278 esi = POP32_VAL(esp); /* 0x4700FD60: pop esi */ 2279 ebx = POP32_VAL(esp); /* 0x4700FD61: pop ebx */ 2280 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4700FD62: ret 8 */ 2281 RECOMP_REGS_OUT(); 2282 } 2283 2284 void sub_4700FD70(void) { 2285 int _fpu_cmp = 0; 2286 uint32_t _cf = 0; 2287 int _df = 1; 2288 uint32_t _flag_k = FK_NONE; 2289 uint32_t _flag_a = 0, _flag_b = 0; 2290 uint32_t _itail_tgt = 0; 2291 RECOMP_REGS_LOCALS 2292 RECOMP_ENTER(0x4700FD70u); 2293 2294 L_4700FD70: 2295 PUSH32(esp, ebx); /* 0x4700FD70: push ebx */ 2296 PUSH32(esp, esi); /* 0x4700FD71: push esi */ 2297 esi = ecx; /* 0x4700FD72: mov esi, ecx */ 2298 eax = MEM32(esi); /* 0x4700FD74: mov eax, dword ptr [esi] */ 2299 PUSH32(esp, edi); /* 0x4700FD76: push edi */ 2300 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x4700FD77: call dword ptr [eax + 0x104] */ 2301 RECOMP_FLAGS_IN(); 2302 ecx = MEM32(esp + 0x1C); /* 0x4700FD7D: mov ecx, dword ptr [esp + 0x1c] */ 2303 ebx = MEM32(esp + 0x18); /* 0x4700FD81: mov ebx, dword ptr [esp + 0x18] */ 2304 edx = MEM32(eax); /* 0x4700FD85: mov edx, dword ptr [eax] */ 2305 PUSH32(esp, ecx); /* 0x4700FD87: push ecx */ 2306 ecx = MEM32(esp + 0x18); /* 0x4700FD88: mov ecx, dword ptr [esp + 0x18] */ 2307 PUSH32(esp, ebx); /* 0x4700FD8C: push ebx */ 2308 PUSH32(esp, ecx); /* 0x4700FD8D: push ecx */ 2309 ecx = MEM32(esp + 0x1C); /* 0x4700FD8E: mov ecx, dword ptr [esp + 0x1c] */ 2310 PUSH32(esp, ecx); /* 0x4700FD92: push ecx */ 2311 ecx = eax; /* 0x4700FD93: mov ecx, eax */ 2312 RECOMP_ICALL(MEM32(edx + 0x40)); /* 0x4700FD95: call dword ptr [edx + 0x40] */ 2313 RECOMP_FLAGS_IN(); 2314 edi = eax; /* 0x4700FD98: mov edi, eax */ 2315 /* cmp edi, 0xFFFFFFFFu */ /* 0x4700FD9A: cmp edi, -1 */ 2316 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu); 2317 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2318 _flag_k = FK_CMP; 2319 if (CMP_EQ(_flag_a, _flag_b)) goto L_4700FDA7; /* 0x4700FD9D: je 0x4700fda7 */ 2320 L_4700FD9F: 2321 edx = MEM32(ebx); /* 0x4700FD9F: mov edx, dword ptr [ebx] */ 2322 PUSH32(esp, esi); /* 0x4700FDA1: push esi */ 2323 ecx = ebx; /* 0x4700FDA2: mov ecx, ebx */ 2324 RECOMP_ICALL(MEM32(edx + 0x3C)); /* 0x4700FDA4: call dword ptr [edx + 0x3c] */ 2325 RECOMP_FLAGS_IN(); 2326 L_4700FDA7: 2327 eax = edi; /* 0x4700FDA7: mov eax, edi */ 2328 edi = POP32_VAL(esp); /* 0x4700FDA9: pop edi */ 2329 esi = POP32_VAL(esp); /* 0x4700FDAA: pop esi */ 2330 ebx = POP32_VAL(esp); /* 0x4700FDAB: pop ebx */ 2331 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4700FDAC: ret 0x10 */ 2332 RECOMP_REGS_OUT(); 2333 } 2334 2335 void sub_4700FDB0(void) { 2336 int _fpu_cmp = 0; 2337 uint32_t _cf = 0; 2338 int _df = 1; 2339 uint32_t _flag_k = FK_NONE; 2340 uint32_t _flag_a = 0, _flag_b = 0; 2341 uint32_t _itail_tgt = 0; 2342 RECOMP_REGS_LOCALS 2343 RECOMP_ENTER(0x4700FDB0u); 2344 2345 L_4700FDB0: 2346 PUSH32(esp, ebx); /* 0x4700FDB0: push ebx */ 2347 PUSH32(esp, esi); /* 0x4700FDB1: push esi */ 2348 esi = ecx; /* 0x4700FDB2: mov esi, ecx */ 2349 eax = MEM32(esi); /* 0x4700FDB4: mov eax, dword ptr [esi] */ 2350 PUSH32(esp, edi); /* 0x4700FDB6: push edi */ 2351 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x4700FDB7: call dword ptr [eax + 0x104] */ 2352 RECOMP_FLAGS_IN(); 2353 ecx = MEM32(esp + 0x18); /* 0x4700FDBD: mov ecx, dword ptr [esp + 0x18] */ 2354 ebx = MEM32(esp + 0x14); /* 0x4700FDC1: mov ebx, dword ptr [esp + 0x14] */ 2355 edx = MEM32(eax); /* 0x4700FDC5: mov edx, dword ptr [eax] */ 2356 PUSH32(esp, ecx); /* 0x4700FDC7: push ecx */ 2357 ecx = MEM32(esp + 0x14); /* 0x4700FDC8: mov ecx, dword ptr [esp + 0x14] */ 2358 PUSH32(esp, ebx); /* 0x4700FDCC: push ebx */ 2359 PUSH32(esp, ecx); /* 0x4700FDCD: push ecx */ 2360 ecx = eax; /* 0x4700FDCE: mov ecx, eax */ 2361 RECOMP_ICALL(MEM32(edx + 0x3C)); /* 0x4700FDD0: call dword ptr [edx + 0x3c] */ 2362 RECOMP_FLAGS_IN(); 2363 edi = eax; /* 0x4700FDD3: mov edi, eax */ 2364 /* cmp edi, 0xFFFFFFFFu */ /* 0x4700FDD5: cmp edi, -1 */ 2365 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu); 2366 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2367 _flag_k = FK_CMP; 2368 if (CMP_EQ(_flag_a, _flag_b)) goto L_4700FDE2; /* 0x4700FDD8: je 0x4700fde2 */ 2369 L_4700FDDA: 2370 edx = MEM32(ebx); /* 0x4700FDDA: mov edx, dword ptr [ebx] */ 2371 PUSH32(esp, esi); /* 0x4700FDDC: push esi */ 2372 ecx = ebx; /* 0x4700FDDD: mov ecx, ebx */ 2373 RECOMP_ICALL(MEM32(edx + 0x3C)); /* 0x4700FDDF: call dword ptr [edx + 0x3c] */ 2374 RECOMP_FLAGS_IN(); 2375 L_4700FDE2: 2376 eax = edi; /* 0x4700FDE2: mov eax, edi */ 2377 edi = POP32_VAL(esp); /* 0x4700FDE4: pop edi */ 2378 esi = POP32_VAL(esp); /* 0x4700FDE5: pop esi */ 2379 ebx = POP32_VAL(esp); /* 0x4700FDE6: pop ebx */ 2380 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4700FDE7: ret 0xc */ 2381 RECOMP_REGS_OUT(); 2382 } 2383 2384 void sub_4700FDF0(void) { 2385 int _fpu_cmp = 0; 2386 uint32_t _cf = 0; 2387 int _df = 1; 2388 uint32_t _flag_k = FK_NONE; 2389 uint32_t _flag_a = 0, _flag_b = 0; 2390 uint32_t _itail_tgt = 0; 2391 RECOMP_REGS_LOCALS 2392 RECOMP_ENTER(0x4700FDF0u); 2393 2394 L_4700FDF0: 2395 eax = MEM32(ecx); /* 0x4700FDF0: mov eax, dword ptr [ecx] */ 2396 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x4700FDF2: call dword ptr [eax + 0x104] */ 2397 RECOMP_FLAGS_IN(); 2398 ecx = MEM32(esp + 0x14); /* 0x4700FDF8: mov ecx, dword ptr [esp + 0x14] */ 2399 edx = MEM32(eax); /* 0x4700FDFC: mov edx, dword ptr [eax] */ 2400 PUSH32(esp, ecx); /* 0x4700FDFE: push ecx */ 2401 ecx = MEM32(esp + 0x14); /* 0x4700FDFF: mov ecx, dword ptr [esp + 0x14] */ 2402 PUSH32(esp, ecx); /* 0x4700FE03: push ecx */ 2403 ecx = MEM32(esp + 0x14); /* 0x4700FE04: mov ecx, dword ptr [esp + 0x14] */ 2404 PUSH32(esp, ecx); /* 0x4700FE08: push ecx */ 2405 ecx = MEM32(esp + 0x14); /* 0x4700FE09: mov ecx, dword ptr [esp + 0x14] */ 2406 PUSH32(esp, ecx); /* 0x4700FE0D: push ecx */ 2407 ecx = MEM32(esp + 0x14); /* 0x4700FE0E: mov ecx, dword ptr [esp + 0x14] */ 2408 PUSH32(esp, ecx); /* 0x4700FE12: push ecx */ 2409 ecx = eax; /* 0x4700FE13: mov ecx, eax */ 2410 RECOMP_ICALL(MEM32(edx + 0x38)); /* 0x4700FE15: call dword ptr [edx + 0x38] */ 2411 RECOMP_FLAGS_IN(); 2412 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x4700FE18: ret 0x14 */ 2413 RECOMP_REGS_OUT(); 2414 } 2415 2416 void sub_4700FE20(void) { 2417 int _fpu_cmp = 0; 2418 uint32_t _cf = 0; 2419 int _df = 1; 2420 uint32_t _flag_k = FK_NONE; 2421 uint32_t _flag_a = 0, _flag_b = 0; 2422 uint32_t _itail_tgt = 0; 2423 RECOMP_REGS_LOCALS 2424 RECOMP_ENTER(0x4700FE20u); 2425 2426 L_4700FE20: 2427 eax = MEM32(ecx); /* 0x4700FE20: mov eax, dword ptr [ecx] */ 2428 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x4700FE22: call dword ptr [eax + 0x104] */ 2429 RECOMP_FLAGS_IN(); 2430 ecx = MEM32(esp + 0xC); /* 0x4700FE28: mov ecx, dword ptr [esp + 0xc] */ 2431 edx = MEM32(eax); /* 0x4700FE2C: mov edx, dword ptr [eax] */ 2432 PUSH32(esp, ecx); /* 0x4700FE2E: push ecx */ 2433 ecx = MEM32(esp + 0xC); /* 0x4700FE2F: mov ecx, dword ptr [esp + 0xc] */ 2434 PUSH32(esp, ecx); /* 0x4700FE33: push ecx */ 2435 ecx = MEM32(esp + 0xC); /* 0x4700FE34: mov ecx, dword ptr [esp + 0xc] */ 2436 PUSH32(esp, ecx); /* 0x4700FE38: push ecx */ 2437 ecx = eax; /* 0x4700FE39: mov ecx, eax */ 2438 RECOMP_ICALL(MEM32(edx + 0x34)); /* 0x4700FE3B: call dword ptr [edx + 0x34] */ 2439 RECOMP_FLAGS_IN(); 2440 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4700FE3E: ret 0xc */ 2441 RECOMP_REGS_OUT(); 2442 } 2443 2444 void sub_4700FE50(void) { 2445 int _fpu_cmp = 0; 2446 uint32_t _cf = 0; 2447 int _df = 1; 2448 uint32_t _flag_k = FK_NONE; 2449 uint32_t _flag_a = 0, _flag_b = 0; 2450 uint32_t _itail_tgt = 0; 2451 RECOMP_REGS_LOCALS 2452 RECOMP_ENTER(0x4700FE50u); 2453 2454 L_4700FE50: 2455 eax = MEM32(ecx); /* 0x4700FE50: mov eax, dword ptr [ecx] */ 2456 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x4700FE52: call dword ptr [eax + 0x104] */ 2457 RECOMP_FLAGS_IN(); 2458 ecx = MEM32(esp + 0x8); /* 0x4700FE58: mov ecx, dword ptr [esp + 8] */ 2459 edx = MEM32(eax); /* 0x4700FE5C: mov edx, dword ptr [eax] */ 2460 PUSH32(esp, ecx); /* 0x4700FE5E: push ecx */ 2461 ecx = MEM32(esp + 0x8); /* 0x4700FE5F: mov ecx, dword ptr [esp + 8] */ 2462 PUSH32(esp, ecx); /* 0x4700FE63: push ecx */ 2463 ecx = eax; /* 0x4700FE64: mov ecx, eax */ 2464 RECOMP_ICALL(MEM32(edx + 0x60)); /* 0x4700FE66: call dword ptr [edx + 0x60] */ 2465 RECOMP_FLAGS_IN(); 2466 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4700FE69: ret 8 */ 2467 RECOMP_REGS_OUT(); 2468 } 2469 2470 void sub_4700FE70(void) { 2471 int _fpu_cmp = 0; 2472 uint32_t _cf = 0; 2473 int _df = 1; 2474 uint32_t _flag_k = FK_NONE; 2475 uint32_t _flag_a = 0, _flag_b = 0; 2476 uint32_t _itail_tgt = 0; 2477 RECOMP_REGS_LOCALS 2478 RECOMP_ENTER(0x4700FE70u); 2479 2480 L_4700FE70: 2481 eax = MEM32(ecx); /* 0x4700FE70: mov eax, dword ptr [ecx] */ 2482 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x4700FE72: call dword ptr [eax + 0x104] */ 2483 RECOMP_FLAGS_IN(); 2484 ecx = MEM32(esp + 0x8); /* 0x4700FE78: mov ecx, dword ptr [esp + 8] */ 2485 edx = MEM32(eax); /* 0x4700FE7C: mov edx, dword ptr [eax] */ 2486 PUSH32(esp, ecx); /* 0x4700FE7E: push ecx */ 2487 ecx = MEM32(esp + 0x8); /* 0x4700FE7F: mov ecx, dword ptr [esp + 8] */ 2488 PUSH32(esp, ecx); /* 0x4700FE83: push ecx */ 2489 ecx = eax; /* 0x4700FE84: mov ecx, eax */ 2490 RECOMP_ICALL(MEM32(edx + 0x5C)); /* 0x4700FE86: call dword ptr [edx + 0x5c] */ 2491 RECOMP_FLAGS_IN(); 2492 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4700FE89: ret 8 */ 2493 RECOMP_REGS_OUT(); 2494 } 2495 2496 void sub_4700FE90(void) { 2497 int _fpu_cmp = 0; 2498 uint32_t _cf = 0; 2499 int _df = 1; 2500 uint32_t _flag_k = FK_NONE; 2501 uint32_t _flag_a = 0, _flag_b = 0; 2502 uint32_t _itail_tgt = 0; 2503 RECOMP_REGS_LOCALS 2504 RECOMP_ENTER(0x4700FE90u); 2505 2506 L_4700FE90: 2507 eax = MEM32(ecx); /* 0x4700FE90: mov eax, dword ptr [ecx] */ 2508 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x4700FE92: call dword ptr [eax + 0x104] */ 2509 RECOMP_FLAGS_IN(); 2510 ecx = MEM32(esp + 0x8); /* 0x4700FE98: mov ecx, dword ptr [esp + 8] */ 2511 edx = MEM32(eax); /* 0x4700FE9C: mov edx, dword ptr [eax] */ 2512 PUSH32(esp, ecx); /* 0x4700FE9E: push ecx */ 2513 ecx = MEM32(esp + 0x8); /* 0x4700FE9F: mov ecx, dword ptr [esp + 8] */ 2514 PUSH32(esp, ecx); /* 0x4700FEA3: push ecx */ 2515 ecx = eax; /* 0x4700FEA4: mov ecx, eax */ 2516 RECOMP_ICALL(MEM32(edx + 0x58)); /* 0x4700FEA6: call dword ptr [edx + 0x58] */ 2517 RECOMP_FLAGS_IN(); 2518 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4700FEA9: ret 8 */ 2519 RECOMP_REGS_OUT(); 2520 } 2521 2522 void sub_4700FEB0(void) { 2523 int _fpu_cmp = 0; 2524 uint32_t _cf = 0; 2525 int _df = 1; 2526 uint32_t _flag_k = FK_NONE; 2527 uint32_t _flag_a = 0, _flag_b = 0; 2528 uint32_t _itail_tgt = 0; 2529 RECOMP_REGS_LOCALS 2530 RECOMP_ENTER(0x4700FEB0u); 2531 2532 L_4700FEB0: 2533 eax = MEM32(ecx); /* 0x4700FEB0: mov eax, dword ptr [ecx] */ 2534 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x4700FEB2: call dword ptr [eax + 0x104] */ 2535 RECOMP_FLAGS_IN(); 2536 ecx = MEM32(esp + 0x10); /* 0x4700FEB8: mov ecx, dword ptr [esp + 0x10] */ 2537 edx = MEM32(eax); /* 0x4700FEBC: mov edx, dword ptr [eax] */ 2538 PUSH32(esp, ecx); /* 0x4700FEBE: push ecx */ 2539 ecx = MEM32(esp + 0x10); /* 0x4700FEBF: mov ecx, dword ptr [esp + 0x10] */ 2540 PUSH32(esp, ecx); /* 0x4700FEC3: push ecx */ 2541 ecx = MEM32(esp + 0x10); /* 0x4700FEC4: mov ecx, dword ptr [esp + 0x10] */ 2542 PUSH32(esp, ecx); /* 0x4700FEC8: push ecx */ 2543 ecx = MEM32(esp + 0x10); /* 0x4700FEC9: mov ecx, dword ptr [esp + 0x10] */ 2544 PUSH32(esp, ecx); /* 0x4700FECD: push ecx */ 2545 ecx = eax; /* 0x4700FECE: mov ecx, eax */ 2546 RECOMP_ICALL(MEM32(edx + 0x54)); /* 0x4700FED0: call dword ptr [edx + 0x54] */ 2547 RECOMP_FLAGS_IN(); 2548 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4700FED3: ret 0x10 */ 2549 RECOMP_REGS_OUT(); 2550 } 2551 2552 void sub_4700FEE0(void) { 2553 int _fpu_cmp = 0; 2554 uint32_t _cf = 0; 2555 int _df = 1; 2556 uint32_t _flag_k = FK_NONE; 2557 uint32_t _flag_a = 0, _flag_b = 0; 2558 uint32_t _itail_tgt = 0; 2559 RECOMP_REGS_LOCALS 2560 RECOMP_ENTER(0x4700FEE0u); 2561 2562 L_4700FEE0: 2563 eax = MEM32(ecx); /* 0x4700FEE0: mov eax, dword ptr [ecx] */ 2564 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x4700FEE2: call dword ptr [eax + 0x104] */ 2565 RECOMP_FLAGS_IN(); 2566 ecx = MEM32(esp + 0x4); /* 0x4700FEE8: mov ecx, dword ptr [esp + 4] */ 2567 edx = MEM32(eax); /* 0x4700FEEC: mov edx, dword ptr [eax] */ 2568 PUSH32(esp, ecx); /* 0x4700FEEE: push ecx */ 2569 ecx = eax; /* 0x4700FEEF: mov ecx, eax */ 2570 RECOMP_ICALL(MEM32(edx + 0x50)); /* 0x4700FEF1: call dword ptr [edx + 0x50] */ 2571 RECOMP_FLAGS_IN(); 2572 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700FEF4: ret 4 */ 2573 RECOMP_REGS_OUT(); 2574 } 2575 2576 void sub_4700FF00(void) { 2577 int _fpu_cmp = 0; 2578 uint32_t _cf = 0; 2579 int _df = 1; 2580 uint32_t _flag_k = FK_NONE; 2581 uint32_t _flag_a = 0, _flag_b = 0; 2582 uint32_t _itail_tgt = 0; 2583 RECOMP_REGS_LOCALS 2584 RECOMP_ENTER(0x4700FF00u); 2585 2586 L_4700FF00: 2587 eax = MEM32(ecx); /* 0x4700FF00: mov eax, dword ptr [ecx] */ 2588 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x4700FF02: call dword ptr [eax + 0x104] */ 2589 RECOMP_FLAGS_IN(); 2590 ecx = MEM32(esp + 0x4); /* 0x4700FF08: mov ecx, dword ptr [esp + 4] */ 2591 edx = MEM32(eax); /* 0x4700FF0C: mov edx, dword ptr [eax] */ 2592 PUSH32(esp, ecx); /* 0x4700FF0E: push ecx */ 2593 ecx = eax; /* 0x4700FF0F: mov ecx, eax */ 2594 RECOMP_ICALL(MEM32(edx + 0x6C)); /* 0x4700FF11: call dword ptr [edx + 0x6c] */ 2595 RECOMP_FLAGS_IN(); 2596 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700FF14: ret 4 */ 2597 RECOMP_REGS_OUT(); 2598 } 2599 2600 void sub_4700FF20(void) { 2601 int _fpu_cmp = 0; 2602 uint32_t _cf = 0; 2603 int _df = 1; 2604 uint32_t _flag_k = FK_NONE; 2605 uint32_t _flag_a = 0, _flag_b = 0; 2606 uint32_t _itail_tgt = 0; 2607 RECOMP_REGS_LOCALS 2608 RECOMP_ENTER(0x4700FF20u); 2609 2610 L_4700FF20: 2611 eax = MEM32(ecx); /* 0x4700FF20: mov eax, dword ptr [ecx] */ 2612 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x4700FF22: call dword ptr [eax + 0x104] */ 2613 RECOMP_FLAGS_IN(); 2614 ecx = MEM32(esp + 0x4); /* 0x4700FF28: mov ecx, dword ptr [esp + 4] */ 2615 edx = MEM32(eax); /* 0x4700FF2C: mov edx, dword ptr [eax] */ 2616 PUSH32(esp, ecx); /* 0x4700FF2E: push ecx */ 2617 ecx = eax; /* 0x4700FF2F: mov ecx, eax */ 2618 RECOMP_ICALL(MEM32(edx + 0x68)); /* 0x4700FF31: call dword ptr [edx + 0x68] */ 2619 RECOMP_FLAGS_IN(); 2620 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700FF34: ret 4 */ 2621 RECOMP_REGS_OUT(); 2622 } 2623 2624 void sub_4700FF40(void) { 2625 int _fpu_cmp = 0; 2626 uint32_t _cf = 0; 2627 int _df = 1; 2628 uint32_t _flag_k = FK_NONE; 2629 uint32_t _flag_a = 0, _flag_b = 0; 2630 uint32_t _itail_tgt = 0; 2631 RECOMP_REGS_LOCALS 2632 RECOMP_ENTER(0x4700FF40u); 2633 2634 L_4700FF40: 2635 eax = MEM32(ecx); /* 0x4700FF40: mov eax, dword ptr [ecx] */ 2636 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x4700FF42: call dword ptr [eax + 0x104] */ 2637 RECOMP_FLAGS_IN(); 2638 ecx = MEM32(esp + 0x4); /* 0x4700FF48: mov ecx, dword ptr [esp + 4] */ 2639 edx = MEM32(eax); /* 0x4700FF4C: mov edx, dword ptr [eax] */ 2640 PUSH32(esp, ecx); /* 0x4700FF4E: push ecx */ 2641 ecx = eax; /* 0x4700FF4F: mov ecx, eax */ 2642 RECOMP_ICALL(MEM32(edx + 0x64)); /* 0x4700FF51: call dword ptr [edx + 0x64] */ 2643 RECOMP_FLAGS_IN(); 2644 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700FF54: ret 4 */ 2645 RECOMP_REGS_OUT(); 2646 } 2647 2648 void sub_4700FF60(void) { 2649 int _fpu_cmp = 0; 2650 uint32_t _cf = 0; 2651 int _df = 1; 2652 uint32_t _flag_k = FK_NONE; 2653 uint32_t _flag_a = 0, _flag_b = 0; 2654 uint32_t _itail_tgt = 0; 2655 RECOMP_REGS_LOCALS 2656 RECOMP_ENTER(0x4700FF60u); 2657 2658 L_4700FF60: 2659 eax = MEM32(ecx); /* 0x4700FF60: mov eax, dword ptr [ecx] */ 2660 L_4700FF62: 2661 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x4700FF62: call dword ptr [eax + 0x104] */ 2662 RECOMP_FLAGS_IN(); 2663 L_4700FF68: 2664 edx = MEM32(eax); /* 0x4700FF68: mov edx, dword ptr [eax] */ 2665 L_4700FF6A: 2666 ecx = eax; /* 0x4700FF6A: mov ecx, eax */ 2667 L_4700FF6C: 2668 { _itail_tgt = (uint32_t)(MEM32(edx + 0x70)); goto _ljump; } 2669 { RECOMP_REGS_OUT(); return; } /* end of function */ 2670 _ljump: 2671 switch (_itail_tgt) { 2672 case 0x4700FF60u: goto L_4700FF60; 2673 case 0x4700FF62u: goto L_4700FF62; 2674 case 0x4700FF68u: goto L_4700FF68; 2675 case 0x4700FF6Au: goto L_4700FF6A; 2676 case 0x4700FF6Cu: goto L_4700FF6C; 2677 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2678 } 2679 RECOMP_REGS_OUT(); 2680 } 2681 2682 void sub_4700FF70(void) { 2683 int _fpu_cmp = 0; 2684 uint32_t _cf = 0; 2685 int _df = 1; 2686 uint32_t _flag_k = FK_NONE; 2687 uint32_t _flag_a = 0, _flag_b = 0; 2688 uint32_t _itail_tgt = 0; 2689 RECOMP_REGS_LOCALS 2690 RECOMP_ENTER(0x4700FF70u); 2691 2692 L_4700FF70: 2693 eax = MEM32(ecx); /* 0x4700FF70: mov eax, dword ptr [ecx] */ 2694 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x4700FF72: call dword ptr [eax + 0x104] */ 2695 RECOMP_FLAGS_IN(); 2696 ecx = MEM32(esp + 0x4); /* 0x4700FF78: mov ecx, dword ptr [esp + 4] */ 2697 edx = MEM32(eax); /* 0x4700FF7C: mov edx, dword ptr [eax] */ 2698 PUSH32(esp, ecx); /* 0x4700FF7E: push ecx */ 2699 ecx = eax; /* 0x4700FF7F: mov ecx, eax */ 2700 RECOMP_ICALL(MEM32(edx + 0x7C)); /* 0x4700FF81: call dword ptr [edx + 0x7c] */ 2701 RECOMP_FLAGS_IN(); 2702 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700FF84: ret 4 */ 2703 RECOMP_REGS_OUT(); 2704 } 2705 2706 void sub_4700FF90(void) { 2707 int _fpu_cmp = 0; 2708 uint32_t _cf = 0; 2709 int _df = 1; 2710 uint32_t _flag_k = FK_NONE; 2711 uint32_t _flag_a = 0, _flag_b = 0; 2712 uint32_t _itail_tgt = 0; 2713 RECOMP_REGS_LOCALS 2714 RECOMP_ENTER(0x4700FF90u); 2715 2716 L_4700FF90: 2717 eax = MEM32(ecx); /* 0x4700FF90: mov eax, dword ptr [ecx] */ 2718 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x4700FF92: call dword ptr [eax + 0x104] */ 2719 RECOMP_FLAGS_IN(); 2720 ecx = MEM32(esp + 0x4); /* 0x4700FF98: mov ecx, dword ptr [esp + 4] */ 2721 edx = MEM32(eax); /* 0x4700FF9C: mov edx, dword ptr [eax] */ 2722 PUSH32(esp, ecx); /* 0x4700FF9E: push ecx */ 2723 ecx = eax; /* 0x4700FF9F: mov ecx, eax */ 2724 RECOMP_ICALL(MEM32(edx + 0x78)); /* 0x4700FFA1: call dword ptr [edx + 0x78] */ 2725 RECOMP_FLAGS_IN(); 2726 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700FFA4: ret 4 */ 2727 RECOMP_REGS_OUT(); 2728 } 2729 2730 void sub_4700FFB0(void) { 2731 int _fpu_cmp = 0; 2732 uint32_t _cf = 0; 2733 int _df = 1; 2734 uint32_t _flag_k = FK_NONE; 2735 uint32_t _flag_a = 0, _flag_b = 0; 2736 uint32_t _itail_tgt = 0; 2737 RECOMP_REGS_LOCALS 2738 RECOMP_ENTER(0x4700FFB0u); 2739 2740 L_4700FFB0: 2741 eax = MEM32(ecx); /* 0x4700FFB0: mov eax, dword ptr [ecx] */ 2742 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x4700FFB2: call dword ptr [eax + 0x104] */ 2743 RECOMP_FLAGS_IN(); 2744 ecx = MEM32(esp + 0x4); /* 0x4700FFB8: mov ecx, dword ptr [esp + 4] */ 2745 edx = MEM32(eax); /* 0x4700FFBC: mov edx, dword ptr [eax] */ 2746 PUSH32(esp, ecx); /* 0x4700FFBE: push ecx */ 2747 ecx = eax; /* 0x4700FFBF: mov ecx, eax */ 2748 RECOMP_ICALL(MEM32(edx + 0x74)); /* 0x4700FFC1: call dword ptr [edx + 0x74] */ 2749 RECOMP_FLAGS_IN(); 2750 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700FFC4: ret 4 */ 2751 RECOMP_REGS_OUT(); 2752 } 2753 2754 void sub_4700FFD0(void) { 2755 int _fpu_cmp = 0; 2756 uint32_t _cf = 0; 2757 int _df = 1; 2758 uint32_t _flag_k = FK_NONE; 2759 uint32_t _flag_a = 0, _flag_b = 0; 2760 uint32_t _itail_tgt = 0; 2761 RECOMP_REGS_LOCALS 2762 RECOMP_ENTER(0x4700FFD0u); 2763 2764 L_4700FFD0: 2765 eax = MEM32(ecx); /* 0x4700FFD0: mov eax, dword ptr [ecx] */ 2766 L_4700FFD2: 2767 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x4700FFD2: call dword ptr [eax + 0x104] */ 2768 RECOMP_FLAGS_IN(); 2769 L_4700FFD8: 2770 edx = MEM32(eax); /* 0x4700FFD8: mov edx, dword ptr [eax] */ 2771 L_4700FFDA: 2772 ecx = eax; /* 0x4700FFDA: mov ecx, eax */ 2773 L_4700FFDC: 2774 { _itail_tgt = (uint32_t)(MEM32(edx + 0x80)); goto _ljump; } 2775 { RECOMP_REGS_OUT(); return; } /* end of function */ 2776 _ljump: 2777 switch (_itail_tgt) { 2778 case 0x4700FFD0u: goto L_4700FFD0; 2779 case 0x4700FFD2u: goto L_4700FFD2; 2780 case 0x4700FFD8u: goto L_4700FFD8; 2781 case 0x4700FFDAu: goto L_4700FFDA; 2782 case 0x4700FFDCu: goto L_4700FFDC; 2783 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2784 } 2785 RECOMP_REGS_OUT(); 2786 } 2787 2788 void sub_4700FFF0(void) { 2789 int _fpu_cmp = 0; 2790 uint32_t _cf = 0; 2791 int _df = 1; 2792 uint32_t _flag_k = FK_NONE; 2793 uint32_t _flag_a = 0, _flag_b = 0; 2794 uint32_t _itail_tgt = 0; 2795 RECOMP_REGS_LOCALS 2796 RECOMP_ENTER(0x4700FFF0u); 2797 2798 L_4700FFF0: 2799 eax = MEM32(ecx); /* 0x4700FFF0: mov eax, dword ptr [ecx] */ 2800 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x4700FFF2: call dword ptr [eax + 0x104] */ 2801 RECOMP_FLAGS_IN(); 2802 ecx = MEM32(esp + 0x8); /* 0x4700FFF8: mov ecx, dword ptr [esp + 8] */ 2803 edx = MEM32(eax); /* 0x4700FFFC: mov edx, dword ptr [eax] */ 2804 PUSH32(esp, ecx); /* 0x4700FFFE: push ecx */ 2805 ecx = MEM32(esp + 0x8); /* 0x4700FFFF: mov ecx, dword ptr [esp + 8] */ 2806 PUSH32(esp, ecx); /* 0x47010003: push ecx */ 2807 ecx = eax; /* 0x47010004: mov ecx, eax */ 2808 RECOMP_ICALL(MEM32(edx + 0x8C)); /* 0x47010006: call dword ptr [edx + 0x8c] */ 2809 RECOMP_FLAGS_IN(); 2810 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4701000C: ret 8 */ 2811 RECOMP_REGS_OUT(); 2812 } 2813 2814 void sub_47010010(void) { 2815 int _fpu_cmp = 0; 2816 uint32_t _cf = 0; 2817 int _df = 1; 2818 uint32_t _flag_k = FK_NONE; 2819 uint32_t _flag_a = 0, _flag_b = 0; 2820 uint32_t _itail_tgt = 0; 2821 RECOMP_REGS_LOCALS 2822 RECOMP_ENTER(0x47010010u); 2823 2824 L_47010010: 2825 PUSH32(esp, ebx); /* 0x47010010: push ebx */ 2826 PUSH32(esp, esi); /* 0x47010011: push esi */ 2827 esi = ecx; /* 0x47010012: mov esi, ecx */ 2828 eax = MEM32(esi); /* 0x47010014: mov eax, dword ptr [esi] */ 2829 PUSH32(esp, edi); /* 0x47010016: push edi */ 2830 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x47010017: call dword ptr [eax + 0x104] */ 2831 RECOMP_FLAGS_IN(); 2832 ecx = MEM32(esp + 0x1C); /* 0x4701001D: mov ecx, dword ptr [esp + 0x1c] */ 2833 ebx = MEM32(esp + 0x10); /* 0x47010021: mov ebx, dword ptr [esp + 0x10] */ 2834 edx = MEM32(eax); /* 0x47010025: mov edx, dword ptr [eax] */ 2835 PUSH32(esp, ecx); /* 0x47010027: push ecx */ 2836 ecx = MEM32(esp + 0x1C); /* 0x47010028: mov ecx, dword ptr [esp + 0x1c] */ 2837 PUSH32(esp, ecx); /* 0x4701002C: push ecx */ 2838 ecx = MEM32(esp + 0x1C); /* 0x4701002D: mov ecx, dword ptr [esp + 0x1c] */ 2839 PUSH32(esp, ecx); /* 0x47010031: push ecx */ 2840 PUSH32(esp, ebx); /* 0x47010032: push ebx */ 2841 ecx = eax; /* 0x47010033: mov ecx, eax */ 2842 RECOMP_ICALL(MEM32(edx + 0x88)); /* 0x47010035: call dword ptr [edx + 0x88] */ 2843 RECOMP_FLAGS_IN(); 2844 edi = eax; /* 0x4701003B: mov edi, eax */ 2845 /* cmp edi, 0xFFFFFFFFu */ /* 0x4701003D: cmp edi, -1 */ 2846 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu); 2847 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2848 _flag_k = FK_CMP; 2849 if (CMP_EQ(_flag_a, _flag_b)) goto L_4701004A; /* 0x47010040: je 0x4701004a */ 2850 L_47010042: 2851 edx = MEM32(ebx); /* 0x47010042: mov edx, dword ptr [ebx] */ 2852 PUSH32(esp, esi); /* 0x47010044: push esi */ 2853 ecx = ebx; /* 0x47010045: mov ecx, ebx */ 2854 RECOMP_ICALL(MEM32(edx + 0x3C)); /* 0x47010047: call dword ptr [edx + 0x3c] */ 2855 RECOMP_FLAGS_IN(); 2856 L_4701004A: 2857 eax = edi; /* 0x4701004A: mov eax, edi */ 2858 edi = POP32_VAL(esp); /* 0x4701004C: pop edi */ 2859 esi = POP32_VAL(esp); /* 0x4701004D: pop esi */ 2860 ebx = POP32_VAL(esp); /* 0x4701004E: pop ebx */ 2861 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4701004F: ret 0x10 */ 2862 RECOMP_REGS_OUT(); 2863 } 2864 2865 void sub_47010060(void) { 2866 int _fpu_cmp = 0; 2867 uint32_t _cf = 0; 2868 int _df = 1; 2869 uint32_t _flag_k = FK_NONE; 2870 uint32_t _flag_a = 0, _flag_b = 0; 2871 uint32_t _itail_tgt = 0; 2872 RECOMP_REGS_LOCALS 2873 RECOMP_ENTER(0x47010060u); 2874 2875 L_47010060: 2876 eax = MEM32(ecx); /* 0x47010060: mov eax, dword ptr [ecx] */ 2877 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x47010062: call dword ptr [eax + 0x104] */ 2878 RECOMP_FLAGS_IN(); 2879 ecx = MEM32(esp + 0x8); /* 0x47010068: mov ecx, dword ptr [esp + 8] */ 2880 edx = MEM32(eax); /* 0x4701006C: mov edx, dword ptr [eax] */ 2881 PUSH32(esp, ecx); /* 0x4701006E: push ecx */ 2882 ecx = MEM32(esp + 0x8); /* 0x4701006F: mov ecx, dword ptr [esp + 8] */ 2883 PUSH32(esp, ecx); /* 0x47010073: push ecx */ 2884 ecx = eax; /* 0x47010074: mov ecx, eax */ 2885 RECOMP_ICALL(MEM32(edx + 0x94)); /* 0x47010076: call dword ptr [edx + 0x94] */ 2886 RECOMP_FLAGS_IN(); 2887 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4701007C: ret 8 */ 2888 RECOMP_REGS_OUT(); 2889 } 2890 2891 void sub_47010080(void) { 2892 int _fpu_cmp = 0; 2893 uint32_t _cf = 0; 2894 int _df = 1; 2895 uint32_t _flag_k = FK_NONE; 2896 uint32_t _flag_a = 0, _flag_b = 0; 2897 uint32_t _itail_tgt = 0; 2898 RECOMP_REGS_LOCALS 2899 RECOMP_ENTER(0x47010080u); 2900 2901 L_47010080: 2902 eax = MEM32(ecx); /* 0x47010080: mov eax, dword ptr [ecx] */ 2903 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x47010082: call dword ptr [eax + 0x104] */ 2904 RECOMP_FLAGS_IN(); 2905 ecx = MEM32(esp + 0xC); /* 0x47010088: mov ecx, dword ptr [esp + 0xc] */ 2906 edx = MEM32(eax); /* 0x4701008C: mov edx, dword ptr [eax] */ 2907 PUSH32(esp, ecx); /* 0x4701008E: push ecx */ 2908 ecx = MEM32(esp + 0xC); /* 0x4701008F: mov ecx, dword ptr [esp + 0xc] */ 2909 PUSH32(esp, ecx); /* 0x47010093: push ecx */ 2910 ecx = MEM32(esp + 0xC); /* 0x47010094: mov ecx, dword ptr [esp + 0xc] */ 2911 PUSH32(esp, ecx); /* 0x47010098: push ecx */ 2912 ecx = eax; /* 0x47010099: mov ecx, eax */ 2913 RECOMP_ICALL(MEM32(edx + 0x90)); /* 0x4701009B: call dword ptr [edx + 0x90] */ 2914 RECOMP_FLAGS_IN(); 2915 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470100A1: ret 0xc */ 2916 RECOMP_REGS_OUT(); 2917 } 2918 2919 void sub_470100B0(void) { 2920 int _fpu_cmp = 0; 2921 uint32_t _cf = 0; 2922 int _df = 1; 2923 uint32_t _flag_k = FK_NONE; 2924 uint32_t _flag_a = 0, _flag_b = 0; 2925 uint32_t _itail_tgt = 0; 2926 RECOMP_REGS_LOCALS 2927 RECOMP_ENTER(0x470100B0u); 2928 2929 L_470100B0: 2930 PUSH32(esp, ebx); /* 0x470100B0: push ebx */ 2931 PUSH32(esp, esi); /* 0x470100B1: push esi */ 2932 esi = ecx; /* 0x470100B2: mov esi, ecx */ 2933 eax = MEM32(esi); /* 0x470100B4: mov eax, dword ptr [esi] */ 2934 PUSH32(esp, edi); /* 0x470100B6: push edi */ 2935 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x470100B7: call dword ptr [eax + 0x104] */ 2936 RECOMP_FLAGS_IN(); 2937 ecx = MEM32(esp + 0x14); /* 0x470100BD: mov ecx, dword ptr [esp + 0x14] */ 2938 ebx = MEM32(esp + 0x10); /* 0x470100C1: mov ebx, dword ptr [esp + 0x10] */ 2939 edx = MEM32(eax); /* 0x470100C5: mov edx, dword ptr [eax] */ 2940 PUSH32(esp, ecx); /* 0x470100C7: push ecx */ 2941 PUSH32(esp, ebx); /* 0x470100C8: push ebx */ 2942 ecx = eax; /* 0x470100C9: mov ecx, eax */ 2943 RECOMP_ICALL(MEM32(edx + 0x9C)); /* 0x470100CB: call dword ptr [edx + 0x9c] */ 2944 RECOMP_FLAGS_IN(); 2945 edi = eax; /* 0x470100D1: mov edi, eax */ 2946 /* cmp edi, 0xFFFFFFFFu */ /* 0x470100D3: cmp edi, -1 */ 2947 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu); 2948 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2949 _flag_k = FK_CMP; 2950 if (CMP_EQ(_flag_a, _flag_b)) goto L_470100E0; /* 0x470100D6: je 0x470100e0 */ 2951 L_470100D8: 2952 edx = MEM32(ebx); /* 0x470100D8: mov edx, dword ptr [ebx] */ 2953 PUSH32(esp, esi); /* 0x470100DA: push esi */ 2954 ecx = ebx; /* 0x470100DB: mov ecx, ebx */ 2955 RECOMP_ICALL(MEM32(edx + 0x3C)); /* 0x470100DD: call dword ptr [edx + 0x3c] */ 2956 RECOMP_FLAGS_IN(); 2957 L_470100E0: 2958 eax = edi; /* 0x470100E0: mov eax, edi */ 2959 edi = POP32_VAL(esp); /* 0x470100E2: pop edi */ 2960 esi = POP32_VAL(esp); /* 0x470100E3: pop esi */ 2961 ebx = POP32_VAL(esp); /* 0x470100E4: pop ebx */ 2962 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470100E5: ret 8 */ 2963 RECOMP_REGS_OUT(); 2964 } 2965 2966 void sub_470100F0(void) { 2967 int _fpu_cmp = 0; 2968 uint32_t _cf = 0; 2969 int _df = 1; 2970 uint32_t _flag_k = FK_NONE; 2971 uint32_t _flag_a = 0, _flag_b = 0; 2972 uint32_t _itail_tgt = 0; 2973 RECOMP_REGS_LOCALS 2974 RECOMP_ENTER(0x470100F0u); 2975 2976 L_470100F0: 2977 eax = MEM32(ecx); /* 0x470100F0: mov eax, dword ptr [ecx] */ 2978 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x470100F2: call dword ptr [eax + 0x104] */ 2979 RECOMP_FLAGS_IN(); 2980 ecx = MEM32(esp + 0x8); /* 0x470100F8: mov ecx, dword ptr [esp + 8] */ 2981 edx = MEM32(eax); /* 0x470100FC: mov edx, dword ptr [eax] */ 2982 PUSH32(esp, ecx); /* 0x470100FE: push ecx */ 2983 ecx = MEM32(esp + 0x8); /* 0x470100FF: mov ecx, dword ptr [esp + 8] */ 2984 PUSH32(esp, ecx); /* 0x47010103: push ecx */ 2985 ecx = eax; /* 0x47010104: mov ecx, eax */ 2986 RECOMP_ICALL(MEM32(edx + 0x98)); /* 0x47010106: call dword ptr [edx + 0x98] */ 2987 RECOMP_FLAGS_IN(); 2988 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4701010C: ret 8 */ 2989 RECOMP_REGS_OUT(); 2990 } 2991 2992 void sub_47010110(void) { 2993 int _fpu_cmp = 0; 2994 uint32_t _cf = 0; 2995 int _df = 1; 2996 uint32_t _flag_k = FK_NONE; 2997 uint32_t _flag_a = 0, _flag_b = 0; 2998 uint32_t _itail_tgt = 0; 2999 RECOMP_REGS_LOCALS 3000 RECOMP_ENTER(0x47010110u); 3001 3002 L_47010110: 3003 eax = MEM32(ecx); /* 0x47010110: mov eax, dword ptr [ecx] */ 3004 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x47010112: call dword ptr [eax + 0x104] */ 3005 RECOMP_FLAGS_IN(); 3006 ecx = MEM32(esp + 0x8); /* 0x47010118: mov ecx, dword ptr [esp + 8] */ 3007 edx = MEM32(eax); /* 0x4701011C: mov edx, dword ptr [eax] */ 3008 PUSH32(esp, ecx); /* 0x4701011E: push ecx */ 3009 ecx = MEM32(esp + 0x8); /* 0x4701011F: mov ecx, dword ptr [esp + 8] */ 3010 PUSH32(esp, ecx); /* 0x47010123: push ecx */ 3011 ecx = eax; /* 0x47010124: mov ecx, eax */ 3012 RECOMP_ICALL(MEM32(edx + 0xA4)); /* 0x47010126: call dword ptr [edx + 0xa4] */ 3013 RECOMP_FLAGS_IN(); 3014 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4701012C: ret 8 */ 3015 RECOMP_REGS_OUT(); 3016 } 3017 3018 void sub_47010130(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(0x47010130u); 3027 3028 L_47010130: 3029 eax = MEM32(ecx); /* 0x47010130: mov eax, dword ptr [ecx] */ 3030 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x47010132: call dword ptr [eax + 0x104] */ 3031 RECOMP_FLAGS_IN(); 3032 ecx = MEM32(esp + 0x8); /* 0x47010138: mov ecx, dword ptr [esp + 8] */ 3033 edx = MEM32(eax); /* 0x4701013C: mov edx, dword ptr [eax] */ 3034 PUSH32(esp, ecx); /* 0x4701013E: push ecx */ 3035 ecx = MEM32(esp + 0x8); /* 0x4701013F: mov ecx, dword ptr [esp + 8] */ 3036 PUSH32(esp, ecx); /* 0x47010143: push ecx */ 3037 ecx = eax; /* 0x47010144: mov ecx, eax */ 3038 RECOMP_ICALL(MEM32(edx + 0xA0)); /* 0x47010146: call dword ptr [edx + 0xa0] */ 3039 RECOMP_FLAGS_IN(); 3040 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4701014C: ret 8 */ 3041 RECOMP_REGS_OUT(); 3042 } 3043 3044 void sub_47010150(void) { 3045 int _fpu_cmp = 0; 3046 uint32_t _cf = 0; 3047 int _df = 1; 3048 uint32_t _flag_k = FK_NONE; 3049 uint32_t _flag_a = 0, _flag_b = 0; 3050 uint32_t _itail_tgt = 0; 3051 RECOMP_REGS_LOCALS 3052 RECOMP_ENTER(0x47010150u); 3053 3054 L_47010150: 3055 eax = MEM32(ecx); /* 0x47010150: mov eax, dword ptr [ecx] */ 3056 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x47010152: call dword ptr [eax + 0x104] */ 3057 RECOMP_FLAGS_IN(); 3058 ecx = MEM32(esp + 0xC); /* 0x47010158: mov ecx, dword ptr [esp + 0xc] */ 3059 edx = MEM32(eax); /* 0x4701015C: mov edx, dword ptr [eax] */ 3060 PUSH32(esp, ecx); /* 0x4701015E: push ecx */ 3061 ecx = MEM32(esp + 0xC); /* 0x4701015F: mov ecx, dword ptr [esp + 0xc] */ 3062 PUSH32(esp, ecx); /* 0x47010163: push ecx */ 3063 ecx = MEM32(esp + 0xC); /* 0x47010164: mov ecx, dword ptr [esp + 0xc] */ 3064 PUSH32(esp, ecx); /* 0x47010168: push ecx */ 3065 ecx = eax; /* 0x47010169: mov ecx, eax */ 3066 RECOMP_ICALL(MEM32(edx + 0xA8)); /* 0x4701016B: call dword ptr [edx + 0xa8] */ 3067 RECOMP_FLAGS_IN(); 3068 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47010171: ret 0xc */ 3069 RECOMP_REGS_OUT(); 3070 } 3071 3072 void sub_47010180(void) { 3073 int _fpu_cmp = 0; 3074 uint32_t _cf = 0; 3075 int _df = 1; 3076 uint32_t _flag_k = FK_NONE; 3077 uint32_t _flag_a = 0, _flag_b = 0; 3078 uint32_t _itail_tgt = 0; 3079 RECOMP_REGS_LOCALS 3080 RECOMP_ENTER(0x47010180u); 3081 3082 L_47010180: 3083 eax = MEM32(ecx); /* 0x47010180: mov eax, dword ptr [ecx] */ 3084 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x47010182: call dword ptr [eax + 0x104] */ 3085 RECOMP_FLAGS_IN(); 3086 ecx = MEM32(esp + 0x4); /* 0x47010188: mov ecx, dword ptr [esp + 4] */ 3087 edx = MEM32(eax); /* 0x4701018C: mov edx, dword ptr [eax] */ 3088 PUSH32(esp, ecx); /* 0x4701018E: push ecx */ 3089 ecx = eax; /* 0x4701018F: mov ecx, eax */ 3090 RECOMP_ICALL(MEM32(edx + 0xB0)); /* 0x47010191: call dword ptr [edx + 0xb0] */ 3091 RECOMP_FLAGS_IN(); 3092 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010197: ret 4 */ 3093 RECOMP_REGS_OUT(); 3094 } 3095 3096 void sub_470101A0(void) { 3097 int _fpu_cmp = 0; 3098 uint32_t _cf = 0; 3099 int _df = 1; 3100 uint32_t _flag_k = FK_NONE; 3101 uint32_t _flag_a = 0, _flag_b = 0; 3102 uint32_t _itail_tgt = 0; 3103 RECOMP_REGS_LOCALS 3104 RECOMP_ENTER(0x470101A0u); 3105 3106 L_470101A0: 3107 eax = MEM32(ecx); /* 0x470101A0: mov eax, dword ptr [ecx] */ 3108 L_470101A2: 3109 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x470101A2: call dword ptr [eax + 0x104] */ 3110 RECOMP_FLAGS_IN(); 3111 L_470101A8: 3112 edx = MEM32(eax); /* 0x470101A8: mov edx, dword ptr [eax] */ 3113 L_470101AA: 3114 ecx = eax; /* 0x470101AA: mov ecx, eax */ 3115 L_470101AC: 3116 { _itail_tgt = (uint32_t)(MEM32(edx + 0xAC)); goto _ljump; } 3117 { RECOMP_REGS_OUT(); return; } /* end of function */ 3118 _ljump: 3119 switch (_itail_tgt) { 3120 case 0x470101A0u: goto L_470101A0; 3121 case 0x470101A2u: goto L_470101A2; 3122 case 0x470101A8u: goto L_470101A8; 3123 case 0x470101AAu: goto L_470101AA; 3124 case 0x470101ACu: goto L_470101AC; 3125 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3126 } 3127 RECOMP_REGS_OUT(); 3128 } 3129 3130 void sub_470101C0(void) { 3131 int _fpu_cmp = 0; 3132 uint32_t _cf = 0; 3133 int _df = 1; 3134 uint32_t _flag_k = FK_NONE; 3135 uint32_t _flag_a = 0, _flag_b = 0; 3136 uint32_t _itail_tgt = 0; 3137 RECOMP_REGS_LOCALS 3138 RECOMP_ENTER(0x470101C0u); 3139 3140 L_470101C0: 3141 eax = MEM32(ecx); /* 0x470101C0: mov eax, dword ptr [ecx] */ 3142 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x470101C2: call dword ptr [eax + 0x104] */ 3143 RECOMP_FLAGS_IN(); 3144 ecx = MEM32(esp + 0xC); /* 0x470101C8: mov ecx, dword ptr [esp + 0xc] */ 3145 edx = MEM32(eax); /* 0x470101CC: mov edx, dword ptr [eax] */ 3146 PUSH32(esp, ecx); /* 0x470101CE: push ecx */ 3147 ecx = MEM32(esp + 0xC); /* 0x470101CF: mov ecx, dword ptr [esp + 0xc] */ 3148 PUSH32(esp, ecx); /* 0x470101D3: push ecx */ 3149 ecx = MEM32(esp + 0xC); /* 0x470101D4: mov ecx, dword ptr [esp + 0xc] */ 3150 PUSH32(esp, ecx); /* 0x470101D8: push ecx */ 3151 ecx = eax; /* 0x470101D9: mov ecx, eax */ 3152 RECOMP_ICALL(MEM32(edx + 0xB8)); /* 0x470101DB: call dword ptr [edx + 0xb8] */ 3153 RECOMP_FLAGS_IN(); 3154 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470101E1: ret 0xc */ 3155 RECOMP_REGS_OUT(); 3156 }