client/vendor/ace/source/lifted-0048.c (219198B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 4 void sub_4706B1A0(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(0x4706B1A0u); 13 14 L_4706B1A0: 15 ecx = 0x4710EB78u; /* 0x4706B1A0: mov ecx, 0x4710eb78 */ 16 L_4706B1A5: 17 { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; } 18 { RECOMP_REGS_OUT(); return; } /* end of function */ 19 _ljump: 20 switch (_itail_tgt) { 21 case 0x4706B1A0u: goto L_4706B1A0; 22 case 0x4706B1A5u: goto L_4706B1A5; 23 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 24 } 25 RECOMP_REGS_OUT(); 26 } 27 28 void sub_4706B1B0(void) { 29 int _fpu_cmp = 0; 30 uint32_t _cf = 0; 31 int _df = 1; 32 uint32_t _flag_k = FK_NONE; 33 uint32_t _flag_a = 0, _flag_b = 0; 34 uint32_t _itail_tgt = 0; 35 RECOMP_REGS_LOCALS 36 RECOMP_ENTER(0x4706B1B0u); 37 38 L_4706B1B0: 39 MEM32(0x4710EB64) = 0x47104A3Cu; /* 0x4706B1B0: mov dword ptr [0x4710eb64], 0x47104a3c */ 40 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B1BA: ret */ 41 RECOMP_REGS_OUT(); 42 } 43 44 void sub_4706B1C0(void) { 45 int _fpu_cmp = 0; 46 uint32_t _cf = 0; 47 int _df = 1; 48 uint32_t _flag_k = FK_NONE; 49 uint32_t _flag_a = 0, _flag_b = 0; 50 uint32_t _itail_tgt = 0; 51 RECOMP_REGS_LOCALS 52 RECOMP_ENTER(0x4706B1C0u); 53 54 L_4706B1C0: 55 MEM32(0x4710EBA0) = 0x47104B6Cu; /* 0x4706B1C0: mov dword ptr [0x4710eba0], 0x47104b6c */ 56 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B1CA: ret */ 57 RECOMP_REGS_OUT(); 58 } 59 60 void sub_4706B1D0(void) { 61 int _fpu_cmp = 0; 62 uint32_t _cf = 0; 63 int _df = 1; 64 uint32_t _flag_k = FK_NONE; 65 uint32_t _flag_a = 0, _flag_b = 0; 66 uint32_t _itail_tgt = 0; 67 RECOMP_REGS_LOCALS 68 RECOMP_ENTER(0x4706B1D0u); 69 70 L_4706B1D0: 71 MEM32(0x4710EB88) = 0x47104A00u; /* 0x4706B1D0: mov dword ptr [0x4710eb88], 0x47104a00 */ 72 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B1DA: ret */ 73 RECOMP_REGS_OUT(); 74 } 75 76 void sub_4706B1E0(void) { 77 int _fpu_cmp = 0; 78 uint32_t _cf = 0; 79 int _df = 1; 80 uint32_t _flag_k = FK_NONE; 81 uint32_t _flag_a = 0, _flag_b = 0; 82 uint32_t _itail_tgt = 0; 83 RECOMP_REGS_LOCALS 84 RECOMP_ENTER(0x4706B1E0u); 85 86 L_4706B1E0: 87 MEM32(0x4710EB80) = 0x47104A70u; /* 0x4706B1E0: mov dword ptr [0x4710eb80], 0x47104a70 */ 88 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B1EA: ret */ 89 RECOMP_REGS_OUT(); 90 } 91 92 void sub_4706B1F0(void) { 93 int _fpu_cmp = 0; 94 uint32_t _cf = 0; 95 int _df = 1; 96 uint32_t _flag_k = FK_NONE; 97 uint32_t _flag_a = 0, _flag_b = 0; 98 uint32_t _itail_tgt = 0; 99 RECOMP_REGS_LOCALS 100 RECOMP_ENTER(0x4706B1F0u); 101 102 L_4706B1F0: 103 MEM32(0x4710EB70) = 0x47104BA0u; /* 0x4706B1F0: mov dword ptr [0x4710eb70], 0x47104ba0 */ 104 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B1FA: ret */ 105 RECOMP_REGS_OUT(); 106 } 107 108 void sub_4706B200(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(0x4706B200u); 117 118 L_4706B200: 119 MEM32(0x4710EB98) = 0x47104BD4u; /* 0x4706B200: mov dword ptr [0x4710eb98], 0x47104bd4 */ 120 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B20A: ret */ 121 RECOMP_REGS_OUT(); 122 } 123 124 void sub_4706B210(void) { 125 int _fpu_cmp = 0; 126 uint32_t _cf = 0; 127 int _df = 1; 128 uint32_t _flag_k = FK_NONE; 129 uint32_t _flag_a = 0, _flag_b = 0; 130 uint32_t _itail_tgt = 0; 131 RECOMP_REGS_LOCALS 132 RECOMP_ENTER(0x4706B210u); 133 134 L_4706B210: 135 MEM32(0x4710EB94) = 0x471050FCu; /* 0x4706B210: mov dword ptr [0x4710eb94], 0x471050fc */ 136 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B21A: ret */ 137 RECOMP_REGS_OUT(); 138 } 139 140 void sub_4706B220(void) { 141 int _fpu_cmp = 0; 142 uint32_t _cf = 0; 143 int _df = 1; 144 uint32_t _flag_k = FK_NONE; 145 uint32_t _flag_a = 0, _flag_b = 0; 146 uint32_t _itail_tgt = 0; 147 RECOMP_REGS_LOCALS 148 RECOMP_ENTER(0x4706B220u); 149 150 L_4706B220: 151 MEM32(0x4710EB90) = 0x47104C0Cu; /* 0x4706B220: mov dword ptr [0x4710eb90], 0x47104c0c */ 152 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B22A: ret */ 153 RECOMP_REGS_OUT(); 154 } 155 156 void sub_4706B230(void) { 157 int _fpu_cmp = 0; 158 uint32_t _cf = 0; 159 int _df = 1; 160 uint32_t _flag_k = FK_NONE; 161 uint32_t _flag_a = 0, _flag_b = 0; 162 uint32_t _itail_tgt = 0; 163 RECOMP_REGS_LOCALS 164 RECOMP_ENTER(0x4706B230u); 165 166 L_4706B230: 167 MEM32(0x4710EB7C) = 0x47105158u; /* 0x4706B230: mov dword ptr [0x4710eb7c], 0x47105158 */ 168 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B23A: ret */ 169 RECOMP_REGS_OUT(); 170 } 171 172 void sub_4706B240(void) { 173 int _fpu_cmp = 0; 174 uint32_t _cf = 0; 175 int _df = 1; 176 uint32_t _flag_k = FK_NONE; 177 uint32_t _flag_a = 0, _flag_b = 0; 178 uint32_t _itail_tgt = 0; 179 RECOMP_REGS_LOCALS 180 RECOMP_ENTER(0x4706B240u); 181 182 L_4706B240: 183 MEM32(0x4710EB6C) = 0x4710518Cu; /* 0x4706B240: mov dword ptr [0x4710eb6c], 0x4710518c */ 184 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B24A: ret */ 185 RECOMP_REGS_OUT(); 186 } 187 188 void sub_4706B250(void) { 189 int _fpu_cmp = 0; 190 uint32_t _cf = 0; 191 int _df = 1; 192 uint32_t _flag_k = FK_NONE; 193 uint32_t _flag_a = 0, _flag_b = 0; 194 uint32_t _itail_tgt = 0; 195 RECOMP_REGS_LOCALS 196 RECOMP_ENTER(0x4706B250u); 197 198 L_4706B250: 199 MEM32(0x4710EB9C) = 0x471051ECu; /* 0x4706B250: mov dword ptr [0x4710eb9c], 0x471051ec */ 200 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B25A: ret */ 201 RECOMP_REGS_OUT(); 202 } 203 204 void sub_4706B260(void) { 205 int _fpu_cmp = 0; 206 uint32_t _cf = 0; 207 int _df = 1; 208 uint32_t _flag_k = FK_NONE; 209 uint32_t _flag_a = 0, _flag_b = 0; 210 uint32_t _itail_tgt = 0; 211 RECOMP_REGS_LOCALS 212 RECOMP_ENTER(0x4706B260u); 213 214 L_4706B260: 215 MEM32(0x4710EB8C) = 0x47105224u; /* 0x4706B260: mov dword ptr [0x4710eb8c], 0x47105224 */ 216 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B26A: ret */ 217 RECOMP_REGS_OUT(); 218 } 219 220 void sub_4706B270(void) { 221 int _fpu_cmp = 0; 222 uint32_t _cf = 0; 223 int _df = 1; 224 uint32_t _flag_k = FK_NONE; 225 uint32_t _flag_a = 0, _flag_b = 0; 226 uint32_t _itail_tgt = 0; 227 RECOMP_REGS_LOCALS 228 RECOMP_ENTER(0x4706B270u); 229 230 L_4706B270: 231 MEM32(0x4710EB68) = 0x47105690u; /* 0x4706B270: mov dword ptr [0x4710eb68], 0x47105690 */ 232 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B27A: ret */ 233 RECOMP_REGS_OUT(); 234 } 235 236 void sub_4706B280(void) { 237 int _fpu_cmp = 0; 238 uint32_t _cf = 0; 239 int _df = 1; 240 uint32_t _flag_k = FK_NONE; 241 uint32_t _flag_a = 0, _flag_b = 0; 242 uint32_t _itail_tgt = 0; 243 RECOMP_REGS_LOCALS 244 RECOMP_ENTER(0x4706B280u); 245 246 L_4706B280: 247 MEM32(0x4710EB74) = 0x471094D0u; /* 0x4706B280: mov dword ptr [0x4710eb74], 0x471094d0 */ 248 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B28A: ret */ 249 RECOMP_REGS_OUT(); 250 } 251 252 void sub_4706B290(void) { 253 int _fpu_cmp = 0; 254 uint32_t _cf = 0; 255 int _df = 1; 256 uint32_t _flag_k = FK_NONE; 257 uint32_t _flag_a = 0, _flag_b = 0; 258 uint32_t _itail_tgt = 0; 259 RECOMP_REGS_LOCALS 260 RECOMP_ENTER(0x4706B290u); 261 262 L_4706B290: 263 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706B290: push -1 */ 264 PUSH32(esp, 0x470A8924u); /* 0x4706B292: push 0x470a8924 */ 265 eax = MEM32(FS_BASE + (0)); /* 0x4706B297: mov eax, dword ptr fs:[0] */ 266 PUSH32(esp, eax); /* 0x4706B29D: push eax */ 267 MEM32(FS_BASE + (0)) = esp; /* 0x4706B29E: mov dword ptr fs:[0], esp */ 268 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 269 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 270 esp = esp - 0xCu; /* 0x4706B2A5: sub esp, 0xc */ 271 _flag_k = FK_CMP; 272 PUSH32(esp, ebx); /* 0x4706B2A8: push ebx */ 273 PUSH32(esp, ebp); /* 0x4706B2A9: push ebp */ 274 PUSH32(esp, esi); /* 0x4706B2AA: push esi */ 275 esi = ecx; /* 0x4706B2AB: mov esi, ecx */ 276 PUSH32(esp, edi); /* 0x4706B2AD: push edi */ 277 MEM32(esp + 0x10) = esi; /* 0x4706B2AE: mov dword ptr [esp + 0x10], esi */ 278 MEM32(esi) = 0x470AE044u; /* 0x4706B2B2: mov dword ptr [esi], 0x470ae044 */ 279 ebp = esi + 0x9B0; /* 0x4706B2B8: lea ebp, [esi + 0x9b0] */ 280 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 281 ebx = 0; /* 0x4706B2BE: xor ebx, ebx */ 282 _cf = 0; 283 _flag_k = FK_TEST; 284 ecx = ebp; /* 0x4706B2C0: mov ecx, ebp */ 285 PUSH32(esp, ebx); /* 0x4706B2C2: push ebx */ 286 MEM32(esp + 0x28) = 2; /* 0x4706B2C3: mov dword ptr [esp + 0x28], 2 */ 287 MEM32(esp + 0x18) = ecx; /* 0x4706B2CB: mov dword ptr [esp + 0x18], ecx */ 288 MEM32(esp + 0x1C) = ebx; /* 0x4706B2CF: mov dword ptr [esp + 0x1c], ebx */ 289 RECOMP_ICALL(0x4708FF80u); /* 0x4706B2D3: call 0x4708ff80 */ /* not lifted */ 290 RECOMP_FLAGS_IN(); 291 MEM32(esp + 0x18) = eax; /* 0x4706B2D8: mov dword ptr [esp + 0x18], eax */ 292 _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu)); 293 edi = edi | 0xFFFFFFFFu; /* 0x4706B2DC: or edi, 0xffffffff */ 294 _cf = 0; 295 _flag_k = FK_TEST; 296 /* cmp eax, edi */ /* 0x4706B2DF: cmp eax, edi */ 297 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 298 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 299 _flag_k = FK_CMP; 300 MEM8(esp + 0x24) = (uint8_t)(3); /* 0x4706B2E1: mov byte ptr [esp + 0x24], 3 */ 301 if (CMP_NE(_flag_a, _flag_b)) goto L_4706B2FB; /* 0x4706B2E6: jne 0x4706b2fb */ 302 L_4706B2E8: 303 ecx = esp + 0x14; /* 0x4706B2E8: lea ecx, [esp + 0x14] */ 304 MEM8(esp + 0x24) = (uint8_t)(2); /* 0x4706B2EC: mov byte ptr [esp + 0x24], 2 */ 305 RECOMP_ICALL(0x47061710u); /* 0x4706B2F1: call 0x47061710 */ /* not lifted */ 306 RECOMP_FLAGS_IN(); 307 goto L_4706B39B; /* 0x4706B2F6: jmp 0x4706b39b */ 308 L_4706B2FB: 309 /* cmp MEM32(esi + 0x98C), ebx */ /* 0x4706B2FB: cmp dword ptr [esi + 0x98c], ebx */ 310 _flag_a = (uint32_t)(MEM32(esi + 0x98C)); _flag_b = (uint32_t)(ebx); 311 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 312 _flag_k = FK_CMP; 313 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706B31E; /* 0x4706B301: je 0x4706b31e */ 314 L_4706B303: 315 eax = MEM32(esi + 0x988); /* 0x4706B303: mov eax, dword ptr [esi + 0x988] */ 316 PUSH32(esp, eax); /* 0x4706B309: push eax */ 317 RECOMP_ICALL(0x470A32A2u); /* 0x4706B30A: call 0x470a32a2 */ /* not lifted */ 318 RECOMP_FLAGS_IN(); 319 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 320 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 321 esp = esp + 4; /* 0x4706B30F: add esp, 4 */ 322 _flag_k = FK_ADD; 323 MEM32(esi + 0x988) = ebx; /* 0x4706B312: mov dword ptr [esi + 0x988], ebx */ 324 MEM32(esi + 0x98C) = ebx; /* 0x4706B318: mov dword ptr [esi + 0x98c], ebx */ 325 L_4706B31E: 326 ecx = esi + 0x4; /* 0x4706B31E: lea ecx, [esi + 4] */ 327 RECOMP_ICALL(0x47073440u); /* 0x4706B321: call 0x47073440 */ /* not lifted */ 328 RECOMP_FLAGS_IN(); 329 /* cmp MEM32(esi + 0x984), ebx */ /* 0x4706B326: cmp dword ptr [esi + 0x984], ebx */ 330 _flag_a = (uint32_t)(MEM32(esi + 0x984)); _flag_b = (uint32_t)(ebx); 331 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 332 _flag_k = FK_CMP; 333 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706B34A; /* 0x4706B32C: je 0x4706b34a */ 334 L_4706B32E: 335 ecx = MEM32(esi + 0x980); /* 0x4706B32E: mov ecx, dword ptr [esi + 0x980] */ 336 /* cmp ecx, ebx */ /* 0x4706B334: cmp ecx, ebx */ 337 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 338 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 339 _flag_k = FK_CMP; 340 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706B33E; /* 0x4706B336: je 0x4706b33e */ 341 L_4706B338: 342 eax = MEM32(ecx); /* 0x4706B338: mov eax, dword ptr [ecx] */ 343 PUSH32(esp, 1); /* 0x4706B33A: push 1 */ 344 RECOMP_ICALL(MEM32(eax)); /* 0x4706B33C: call dword ptr [eax] */ 345 RECOMP_FLAGS_IN(); 346 L_4706B33E: 347 MEM32(esi + 0x980) = ebx; /* 0x4706B33E: mov dword ptr [esi + 0x980], ebx */ 348 MEM32(esi + 0x984) = ebx; /* 0x4706B344: mov dword ptr [esi + 0x984], ebx */ 349 L_4706B34A: 350 ecx = MEM32(esi + 0x990); /* 0x4706B34A: mov ecx, dword ptr [esi + 0x990] */ 351 /* cmp ecx, ebx */ /* 0x4706B350: cmp ecx, ebx */ 352 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 353 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 354 _flag_k = FK_CMP; 355 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706B359; /* 0x4706B352: je 0x4706b359 */ 356 L_4706B354: 357 edx = MEM32(ecx); /* 0x4706B354: mov edx, dword ptr [ecx] */ 358 RECOMP_ICALL(MEM32(edx + 0x44)); /* 0x4706B356: call dword ptr [edx + 0x44] */ 359 RECOMP_FLAGS_IN(); 360 L_4706B359: 361 /* cmp MEM32(esi + 0x994), ebx */ /* 0x4706B359: cmp dword ptr [esi + 0x994], ebx */ 362 _flag_a = (uint32_t)(MEM32(esi + 0x994)); _flag_b = (uint32_t)(ebx); 363 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 364 _flag_k = FK_CMP; 365 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706B37D; /* 0x4706B35F: je 0x4706b37d */ 366 L_4706B361: 367 ecx = MEM32(esi + 0x990); /* 0x4706B361: mov ecx, dword ptr [esi + 0x990] */ 368 /* cmp ecx, ebx */ /* 0x4706B367: cmp ecx, ebx */ 369 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 370 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 371 _flag_k = FK_CMP; 372 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706B371; /* 0x4706B369: je 0x4706b371 */ 373 L_4706B36B: 374 eax = MEM32(ecx); /* 0x4706B36B: mov eax, dword ptr [ecx] */ 375 PUSH32(esp, 1); /* 0x4706B36D: push 1 */ 376 RECOMP_ICALL(MEM32(eax)); /* 0x4706B36F: call dword ptr [eax] */ 377 RECOMP_FLAGS_IN(); 378 L_4706B371: 379 MEM32(esi + 0x990) = ebx; /* 0x4706B371: mov dword ptr [esi + 0x990], ebx */ 380 MEM32(esi + 0x994) = ebx; /* 0x4706B377: mov dword ptr [esi + 0x994], ebx */ 381 L_4706B37D: 382 /* cmp MEM32(esp + 0x18), edi */ /* 0x4706B37D: cmp dword ptr [esp + 0x18], edi */ 383 _flag_a = (uint32_t)(MEM32(esp + 0x18)); _flag_b = (uint32_t)(edi); 384 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 385 _flag_k = FK_CMP; 386 MEM32(esi + 0x9A0) = ebx; /* 0x4706B381: mov dword ptr [esi + 0x9a0], ebx */ 387 MEM8(esp + 0x24) = (uint8_t)(2); /* 0x4706B387: mov byte ptr [esp + 0x24], 2 */ 388 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706B39B; /* 0x4706B38C: je 0x4706b39b */ 389 L_4706B38E: 390 ecx = MEM32(esp + 0x14); /* 0x4706B38E: mov ecx, dword ptr [esp + 0x14] */ 391 MEM32(esp + 0x18) = edi; /* 0x4706B392: mov dword ptr [esp + 0x18], edi */ 392 RECOMP_ICALL(0x47090300u); /* 0x4706B396: call 0x47090300 */ /* not lifted */ 393 RECOMP_FLAGS_IN(); 394 L_4706B39B: 395 edi = esi + 0x9FC; /* 0x4706B39B: lea edi, [esi + 0x9fc] */ 396 MEM32(esp + 0x14) = edi; /* 0x4706B3A1: mov dword ptr [esp + 0x14], edi */ 397 MEM32(edi) = 0x470AE190u; /* 0x4706B3A5: mov dword ptr [edi], 0x470ae190 */ 398 /* cmp MEM32(edi + 0x8), ebx */ /* 0x4706B3AB: cmp dword ptr [edi + 8], ebx */ 399 _flag_a = (uint32_t)(MEM32(edi + 0x8)); _flag_b = (uint32_t)(ebx); 400 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 401 _flag_k = FK_CMP; 402 MEM8(esp + 0x24) = (uint8_t)(4); /* 0x4706B3AE: mov byte ptr [esp + 0x24], 4 */ 403 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706B3C2; /* 0x4706B3B3: je 0x4706b3c2 */ 404 L_4706B3B5: 405 ecx = MEM32(edi + 0x4); /* 0x4706B3B5: mov ecx, dword ptr [edi + 4] */ 406 /* cmp ecx, ebx */ /* 0x4706B3B8: cmp ecx, ebx */ 407 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 408 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 409 _flag_k = FK_CMP; 410 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706B3C2; /* 0x4706B3BA: je 0x4706b3c2 */ 411 L_4706B3BC: 412 edx = MEM32(ecx); /* 0x4706B3BC: mov edx, dword ptr [ecx] */ 413 PUSH32(esp, 1); /* 0x4706B3BE: push 1 */ 414 RECOMP_ICALL(MEM32(edx)); /* 0x4706B3C0: call dword ptr [edx] */ 415 RECOMP_FLAGS_IN(); 416 L_4706B3C2: 417 ecx = edi; /* 0x4706B3C2: mov ecx, edi */ 418 MEM8(esp + 0x24) = (uint8_t)(1); /* 0x4706B3C4: mov byte ptr [esp + 0x24], 1 */ 419 RECOMP_ICALL(0x47085660u); /* 0x4706B3C9: call 0x47085660 */ /* not lifted */ 420 RECOMP_FLAGS_IN(); 421 ecx = ebp; /* 0x4706B3CE: mov ecx, ebp */ 422 MEM8(esp + 0x24) = (uint8_t)(LO8(ebx)); /* 0x4706B3D0: mov byte ptr [esp + 0x24], bl */ 423 MEM32(ebp) = 0x470AE1B4u; /* 0x4706B3D4: mov dword ptr [ebp], 0x470ae1b4 */ 424 RECOMP_ICALL(0x4708FB70u); /* 0x4706B3DB: call 0x4708fb70 */ /* not lifted */ 425 RECOMP_FLAGS_IN(); 426 ecx = MEM32(esp + 0x1C); /* 0x4706B3E0: mov ecx, dword ptr [esp + 0x1c] */ 427 edi = POP32_VAL(esp); /* 0x4706B3E4: pop edi */ 428 MEM32(esi) = 0x470AC8C8u; /* 0x4706B3E5: mov dword ptr [esi], 0x470ac8c8 */ 429 esi = POP32_VAL(esp); /* 0x4706B3EB: pop esi */ 430 ebp = POP32_VAL(esp); /* 0x4706B3EC: pop ebp */ 431 ebx = POP32_VAL(esp); /* 0x4706B3ED: pop ebx */ 432 MEM32(FS_BASE + (0)) = ecx; /* 0x4706B3EE: mov dword ptr fs:[0], ecx */ 433 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 434 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 435 esp = esp + 0x18u; /* 0x4706B3F5: add esp, 0x18 */ 436 _flag_k = FK_ADD; 437 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B3F8: ret */ 438 RECOMP_REGS_OUT(); 439 } 440 441 void sub_4706B39B(void) { 442 int _fpu_cmp = 0; 443 uint32_t _cf = 0; 444 int _df = 1; 445 uint32_t _flag_k = FK_NONE; 446 uint32_t _flag_a = 0, _flag_b = 0; 447 uint32_t _itail_tgt = 0; 448 RECOMP_REGS_LOCALS 449 RECOMP_ENTER(0x4706B39Bu); 450 451 L_4706B39B: 452 edi = esi + 0x9FC; /* 0x4706B39B: lea edi, [esi + 0x9fc] */ 453 MEM32(esp + 0x14) = edi; /* 0x4706B3A1: mov dword ptr [esp + 0x14], edi */ 454 MEM32(edi) = 0x470AE190u; /* 0x4706B3A5: mov dword ptr [edi], 0x470ae190 */ 455 /* cmp MEM32(edi + 0x8), ebx */ /* 0x4706B3AB: cmp dword ptr [edi + 8], ebx */ 456 _flag_a = (uint32_t)(MEM32(edi + 0x8)); _flag_b = (uint32_t)(ebx); 457 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 458 _flag_k = FK_CMP; 459 MEM8(esp + 0x24) = (uint8_t)(4); /* 0x4706B3AE: mov byte ptr [esp + 0x24], 4 */ 460 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706B3C2; /* 0x4706B3B3: je 0x4706b3c2 */ 461 L_4706B3B5: 462 ecx = MEM32(edi + 0x4); /* 0x4706B3B5: mov ecx, dword ptr [edi + 4] */ 463 /* cmp ecx, ebx */ /* 0x4706B3B8: cmp ecx, ebx */ 464 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 465 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 466 _flag_k = FK_CMP; 467 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706B3C2; /* 0x4706B3BA: je 0x4706b3c2 */ 468 L_4706B3BC: 469 edx = MEM32(ecx); /* 0x4706B3BC: mov edx, dword ptr [ecx] */ 470 PUSH32(esp, 1); /* 0x4706B3BE: push 1 */ 471 RECOMP_ICALL(MEM32(edx)); /* 0x4706B3C0: call dword ptr [edx] */ 472 RECOMP_FLAGS_IN(); 473 L_4706B3C2: 474 ecx = edi; /* 0x4706B3C2: mov ecx, edi */ 475 MEM8(esp + 0x24) = (uint8_t)(1); /* 0x4706B3C4: mov byte ptr [esp + 0x24], 1 */ 476 RECOMP_ICALL(0x47085660u); /* 0x4706B3C9: call 0x47085660 */ /* not lifted */ 477 RECOMP_FLAGS_IN(); 478 ecx = ebp; /* 0x4706B3CE: mov ecx, ebp */ 479 MEM8(esp + 0x24) = (uint8_t)(LO8(ebx)); /* 0x4706B3D0: mov byte ptr [esp + 0x24], bl */ 480 MEM32(ebp) = 0x470AE1B4u; /* 0x4706B3D4: mov dword ptr [ebp], 0x470ae1b4 */ 481 RECOMP_ICALL(0x4708FB70u); /* 0x4706B3DB: call 0x4708fb70 */ /* not lifted */ 482 RECOMP_FLAGS_IN(); 483 ecx = MEM32(esp + 0x1C); /* 0x4706B3E0: mov ecx, dword ptr [esp + 0x1c] */ 484 edi = POP32_VAL(esp); /* 0x4706B3E4: pop edi */ 485 MEM32(esi) = 0x470AC8C8u; /* 0x4706B3E5: mov dword ptr [esi], 0x470ac8c8 */ 486 esi = POP32_VAL(esp); /* 0x4706B3EB: pop esi */ 487 ebp = POP32_VAL(esp); /* 0x4706B3EC: pop ebp */ 488 ebx = POP32_VAL(esp); /* 0x4706B3ED: pop ebx */ 489 MEM32(FS_BASE + (0)) = ecx; /* 0x4706B3EE: mov dword ptr fs:[0], ecx */ 490 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 491 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 492 esp = esp + 0x18u; /* 0x4706B3F5: add esp, 0x18 */ 493 _flag_k = FK_ADD; 494 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B3F8: ret */ 495 RECOMP_REGS_OUT(); 496 } 497 498 void sub_4706B400(void) { 499 int _fpu_cmp = 0; 500 uint32_t _cf = 0; 501 int _df = 1; 502 uint32_t _flag_k = FK_NONE; 503 uint32_t _flag_a = 0, _flag_b = 0; 504 uint32_t _itail_tgt = 0; 505 RECOMP_REGS_LOCALS 506 RECOMP_ENTER(0x4706B400u); 507 508 L_4706B400: 509 PUSH32(esp, 1); /* 0x4706B400: push 1 */ 510 PUSH32(esp, 0); /* 0x4706B402: push 0 */ 511 PUSH32(esp, 0); /* 0x4706B404: push 0 */ 512 RECOMP_ICALL(0x470960F0u); /* 0x4706B406: call 0x470960f0 */ /* not lifted */ 513 RECOMP_FLAGS_IN(); 514 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B40B: ret */ 515 RECOMP_REGS_OUT(); 516 } 517 518 void sub_4706B410(void) { 519 int _fpu_cmp = 0; 520 uint32_t _cf = 0; 521 int _df = 1; 522 uint32_t _flag_k = FK_NONE; 523 uint32_t _flag_a = 0, _flag_b = 0; 524 uint32_t _itail_tgt = 0; 525 RECOMP_REGS_LOCALS 526 RECOMP_ENTER(0x4706B410u); 527 528 L_4706B410: 529 edx = MEM32(esp + 0x4); /* 0x4706B410: mov edx, dword ptr [esp + 4] */ 530 eax = MEM32(ecx); /* 0x4706B414: mov eax, dword ptr [ecx] */ 531 PUSH32(esp, edx); /* 0x4706B416: push edx */ 532 RECOMP_ICALL(MEM32(eax + 0x20)); /* 0x4706B417: call dword ptr [eax + 0x20] */ 533 RECOMP_FLAGS_IN(); 534 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706B41A: ret 4 */ 535 RECOMP_REGS_OUT(); 536 } 537 538 void sub_4706B420(void) { 539 int _fpu_cmp = 0; 540 uint32_t _cf = 0; 541 int _df = 1; 542 uint32_t _flag_k = FK_NONE; 543 uint32_t _flag_a = 0, _flag_b = 0; 544 uint32_t _itail_tgt = 0; 545 RECOMP_REGS_LOCALS 546 RECOMP_ENTER(0x4706B420u); 547 548 L_4706B420: 549 eax = MEM32(esp + 0xC); /* 0x4706B420: mov eax, dword ptr [esp + 0xc] */ 550 PUSH32(esp, esi); /* 0x4706B424: push esi */ 551 PUSH32(esp, edi); /* 0x4706B425: push edi */ 552 esi = ecx; /* 0x4706B426: mov esi, ecx */ 553 ecx = MEM32(esp + 0x10); /* 0x4706B428: mov ecx, dword ptr [esp + 0x10] */ 554 edi = MEM32(esi); /* 0x4706B42C: mov edi, dword ptr [esi] */ 555 PUSH32(esp, eax); /* 0x4706B42E: push eax */ 556 PUSH32(esp, ecx); /* 0x4706B42F: push ecx */ 557 ecx = MEM32(esp + 0x14); /* 0x4706B430: mov ecx, dword ptr [esp + 0x14] */ 558 edx = MEM32(ecx); /* 0x4706B434: mov edx, dword ptr [ecx] */ 559 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4706B436: call dword ptr [edx + 4] */ 560 RECOMP_FLAGS_IN(); 561 PUSH32(esp, eax); /* 0x4706B439: push eax */ 562 ecx = esi; /* 0x4706B43A: mov ecx, esi */ 563 RECOMP_ICALL(MEM32(edi + 0xE4)); /* 0x4706B43C: call dword ptr [edi + 0xe4] */ 564 RECOMP_FLAGS_IN(); 565 edi = POP32_VAL(esp); /* 0x4706B442: pop edi */ 566 esi = POP32_VAL(esp); /* 0x4706B443: pop esi */ 567 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4706B444: ret 0xc */ 568 RECOMP_REGS_OUT(); 569 } 570 571 void sub_4706B450(void) { 572 int _fpu_cmp = 0; 573 uint32_t _cf = 0; 574 int _df = 1; 575 uint32_t _flag_k = FK_NONE; 576 uint32_t _flag_a = 0, _flag_b = 0; 577 uint32_t _itail_tgt = 0; 578 RECOMP_REGS_LOCALS 579 RECOMP_ENTER(0x4706B450u); 580 581 L_4706B450: 582 PUSH32(esp, esi); /* 0x4706B450: push esi */ 583 esi = ecx; /* 0x4706B451: mov esi, ecx */ 584 ecx = esi + 0x9B0; /* 0x4706B453: lea ecx, [esi + 0x9b0] */ 585 RECOMP_ICALL(0x47090430u); /* 0x4706B459: call 0x47090430 */ /* not lifted */ 586 RECOMP_FLAGS_IN(); 587 eax = MEM32(esi); /* 0x4706B45E: mov eax, dword ptr [esi] */ 588 PUSH32(esp, 0x4710E9A8u); /* 0x4706B460: push 0x4710e9a8 */ 589 PUSH32(esp, 0); /* 0x4706B465: push 0 */ 590 PUSH32(esp, 0); /* 0x4706B467: push 0 */ 591 ecx = esi; /* 0x4706B469: mov ecx, esi */ 592 RECOMP_ICALL(MEM32(eax + 0xA8)); /* 0x4706B46B: call dword ptr [eax + 0xa8] */ 593 RECOMP_FLAGS_IN(); 594 esi = POP32_VAL(esp); /* 0x4706B471: pop esi */ 595 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B472: ret */ 596 RECOMP_REGS_OUT(); 597 } 598 599 void sub_4706B480(void) { 600 int _fpu_cmp = 0; 601 uint32_t _cf = 0; 602 int _df = 1; 603 uint32_t _flag_k = FK_NONE; 604 uint32_t _flag_a = 0, _flag_b = 0; 605 uint32_t _itail_tgt = 0; 606 RECOMP_REGS_LOCALS 607 RECOMP_ENTER(0x4706B480u); 608 609 L_4706B480: 610 PUSH32(esp, esi); /* 0x4706B480: push esi */ 611 PUSH32(esp, edi); /* 0x4706B481: push edi */ 612 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4706B482: call dword ptr [0x470ac150] */ 613 RECOMP_FLAGS_IN(); 614 edi = eax; /* 0x4706B488: mov edi, eax */ 615 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706B48A: call dword ptr [0x470ac3c8] */ 616 RECOMP_FLAGS_IN(); 617 eax = MEM32(eax); /* 0x4706B490: mov eax, dword ptr [eax] */ 618 /* test eax, eax */ /* 0x4706B492: test eax, eax */ 619 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 620 _cf = 0; 621 _flag_k = FK_TEST; 622 if (TEST_Z(_flag_a, _flag_b)) goto L_4706B498; /* 0x4706B494: je 0x4706b498 */ 623 L_4706B496: 624 edi = eax; /* 0x4706B496: mov edi, eax */ 625 L_4706B498: 626 RECOMP_ICALL(0x47039020u); /* 0x4706B498: call 0x47039020 */ /* not lifted */ 627 RECOMP_FLAGS_IN(); 628 esi = eax; /* 0x4706B49D: mov esi, eax */ 629 ecx = esi; /* 0x4706B49F: mov ecx, esi */ 630 RECOMP_ICALL(0x4703B210u); /* 0x4706B4A1: call 0x4703b210 */ /* not lifted */ 631 RECOMP_FLAGS_IN(); 632 PUSH32(esp, eax); /* 0x4706B4A6: push eax */ 633 ecx = esi; /* 0x4706B4A7: mov ecx, esi */ 634 RECOMP_ICALL(0x4703B240u); /* 0x4706B4A9: call 0x4703b240 */ /* not lifted */ 635 RECOMP_FLAGS_IN(); 636 PUSH32(esp, eax); /* 0x4706B4AE: push eax */ 637 ecx = esi; /* 0x4706B4AF: mov ecx, esi */ 638 RECOMP_ICALL(0x4703B080u); /* 0x4706B4B1: call 0x4703b080 */ /* not lifted */ 639 RECOMP_FLAGS_IN(); 640 PUSH32(esp, eax); /* 0x4706B4B6: push eax */ 641 PUSH32(esp, edi); /* 0x4706B4B7: push edi */ 642 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706B4B8: push -1 */ 643 PUSH32(esp, 0x26u); /* 0x4706B4BA: push 0x26 */ 644 PUSH32(esp, 0x4710A044u); /* 0x4706B4BC: push 0x4710a044 */ 645 ecx = esi; /* 0x4706B4C1: mov ecx, esi */ 646 RECOMP_ICALL(0x4703A340u); /* 0x4706B4C3: call 0x4703a340 */ /* not lifted */ 647 RECOMP_FLAGS_IN(); 648 PUSH32(esp, 0x47109FF8u); /* 0x4706B4C8: push 0x47109ff8 */ 649 PUSH32(esp, 0x80u); /* 0x4706B4CD: push 0x80 */ 650 PUSH32(esp, esi); /* 0x4706B4D2: push esi */ 651 RECOMP_ICALL(0x47039830u); /* 0x4706B4D3: call 0x47039830 */ /* not lifted */ 652 RECOMP_FLAGS_IN(); 653 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 654 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 655 esp = esp + 0xCu; /* 0x4706B4D8: add esp, 0xc */ 656 _flag_k = FK_ADD; 657 edi = POP32_VAL(esp); /* 0x4706B4DB: pop edi */ 658 esi = POP32_VAL(esp); /* 0x4706B4DC: pop esi */ 659 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x4706B4DD: ret 0x14 */ 660 RECOMP_REGS_OUT(); 661 } 662 663 void sub_4706B4E0(void) { 664 int _fpu_cmp = 0; 665 uint32_t _cf = 0; 666 int _df = 1; 667 uint32_t _flag_k = FK_NONE; 668 uint32_t _flag_a = 0, _flag_b = 0; 669 uint32_t _itail_tgt = 0; 670 RECOMP_REGS_LOCALS 671 RECOMP_ENTER(0x4706B4E0u); 672 673 L_4706B4E0: 674 MEM32(0x4710EB84) = 0x4710A058u; /* 0x4706B4E0: mov dword ptr [0x4710eb84], 0x4710a058 */ 675 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B4EA: ret */ 676 RECOMP_REGS_OUT(); 677 } 678 679 void sub_4706B4F0(void) { 680 int _fpu_cmp = 0; 681 uint32_t _cf = 0; 682 int _df = 1; 683 uint32_t _flag_k = FK_NONE; 684 uint32_t _flag_a = 0, _flag_b = 0; 685 uint32_t _itail_tgt = 0; 686 RECOMP_REGS_LOCALS 687 RECOMP_ENTER(0x4706B4F0u); 688 689 L_4706B4F0: 690 eax = MEM32(FS_BASE + (0)); /* 0x4706B4F0: mov eax, dword ptr fs:[0] */ 691 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706B4F6: push -1 */ 692 PUSH32(esp, 0x470A893Bu); /* 0x4706B4F8: push 0x470a893b */ 693 PUSH32(esp, eax); /* 0x4706B4FD: push eax */ 694 eax = MEM32(esp + 0x14); /* 0x4706B4FE: mov eax, dword ptr [esp + 0x14] */ 695 MEM32(FS_BASE + (0)) = esp; /* 0x4706B502: mov dword ptr fs:[0], esp */ 696 PUSH32(esp, esi); /* 0x4706B509: push esi */ 697 esi = ecx; /* 0x4706B50A: mov esi, ecx */ 698 MEM32(esi + 0x8) = eax; /* 0x4706B50C: mov dword ptr [esi + 8], eax */ 699 eax = MEM32(esp + 0x14); /* 0x4706B50F: mov eax, dword ptr [esp + 0x14] */ 700 /* test eax, eax */ /* 0x4706B513: test eax, eax */ 701 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 702 _cf = 0; 703 _flag_k = FK_TEST; 704 MEM32(esi) = 0x470AEAC8u; /* 0x4706B515: mov dword ptr [esi], 0x470aeac8 */ 705 MEM32(esi + 0x4) = eax; /* 0x4706B51B: mov dword ptr [esi + 4], eax */ 706 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706B576; /* 0x4706B51E: jne 0x4706b576 */ 707 L_4706B520: 708 PUSH32(esp, 0xC4u); /* 0x4706B520: push 0xc4 */ 709 RECOMP_ICALL(0x470A33F2u); /* 0x4706B525: call 0x470a33f2 */ /* not lifted */ 710 RECOMP_FLAGS_IN(); 711 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 712 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 713 esp = esp + 4; /* 0x4706B52A: add esp, 4 */ 714 _flag_k = FK_ADD; 715 MEM32(esp + 0x18) = eax; /* 0x4706B52D: mov dword ptr [esp + 0x18], eax */ 716 /* test eax, eax */ /* 0x4706B531: test eax, eax */ 717 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 718 _cf = 0; 719 _flag_k = FK_TEST; 720 MEM32(esp + 0xC) = 0; /* 0x4706B533: mov dword ptr [esp + 0xc], 0 */ 721 if (TEST_Z(_flag_a, _flag_b)) goto L_4706B54C; /* 0x4706B53B: je 0x4706b54c */ 722 L_4706B53D: 723 PUSH32(esp, 0); /* 0x4706B53D: push 0 */ 724 PUSH32(esp, 0); /* 0x4706B53F: push 0 */ 725 ecx = eax; /* 0x4706B541: mov ecx, eax */ 726 RECOMP_ICALL(0x4709D010u); /* 0x4706B543: call 0x4709d010 */ /* not lifted */ 727 RECOMP_FLAGS_IN(); 728 /* test eax, eax */ /* 0x4706B548: test eax, eax */ 729 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 730 _cf = 0; 731 _flag_k = FK_TEST; 732 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706B56C; /* 0x4706B54A: jne 0x4706b56c */ 733 L_4706B54C: 734 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706B54C: call dword ptr [0x470ac3c8] */ 735 RECOMP_FLAGS_IN(); 736 MEM32(eax) = 0xCu; /* 0x4706B552: mov dword ptr [eax], 0xc */ 737 eax = esi; /* 0x4706B558: mov eax, esi */ 738 ecx = MEM32(esp + 0x4); /* 0x4706B55A: mov ecx, dword ptr [esp + 4] */ 739 MEM32(FS_BASE + (0)) = ecx; /* 0x4706B55E: mov dword ptr fs:[0], ecx */ 740 esi = POP32_VAL(esp); /* 0x4706B565: pop esi */ 741 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 742 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 743 esp = esp + 0xCu; /* 0x4706B566: add esp, 0xc */ 744 _flag_k = FK_ADD; 745 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4706B569: ret 8 */ 746 L_4706B56C: 747 MEM32(esi + 0x4) = eax; /* 0x4706B56C: mov dword ptr [esi + 4], eax */ 748 MEM32(esi + 0x8) = 1; /* 0x4706B56F: mov dword ptr [esi + 8], 1 */ 749 L_4706B576: 750 ecx = MEM32(esp + 0x4); /* 0x4706B576: mov ecx, dword ptr [esp + 4] */ 751 eax = esi; /* 0x4706B57A: mov eax, esi */ 752 MEM32(FS_BASE + (0)) = ecx; /* 0x4706B57C: mov dword ptr fs:[0], ecx */ 753 esi = POP32_VAL(esp); /* 0x4706B583: pop esi */ 754 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 755 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 756 esp = esp + 0xCu; /* 0x4706B584: add esp, 0xc */ 757 _flag_k = FK_ADD; 758 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4706B587: ret 8 */ 759 RECOMP_REGS_OUT(); 760 } 761 762 void sub_4706B590(void) { 763 int _fpu_cmp = 0; 764 uint32_t _cf = 0; 765 int _df = 1; 766 uint32_t _flag_k = FK_NONE; 767 uint32_t _flag_a = 0, _flag_b = 0; 768 uint32_t _itail_tgt = 0; 769 RECOMP_REGS_LOCALS 770 RECOMP_ENTER(0x4706B590u); 771 772 L_4706B590: 773 PUSH32(esp, ebx); /* 0x4706B590: push ebx */ 774 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x4706B591: mov bl, byte ptr [esp + 8] */ 775 /* test LO8(ebx), 2 */ /* 0x4706B595: test bl, 2 */ 776 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 777 _cf = 0; 778 _flag_k = FK_NARROW(FK_TEST, 24); 779 PUSH32(esp, esi); /* 0x4706B598: push esi */ 780 esi = ecx; /* 0x4706B599: mov esi, ecx */ 781 if (TEST_Z(_flag_a, _flag_b)) goto L_4706B5C8; /* 0x4706B59B: je 0x4706b5c8 */ 782 L_4706B59D: 783 eax = MEM32(esi + (-0x4)); /* 0x4706B59D: mov eax, dword ptr [esi - 4] */ 784 PUSH32(esp, edi); /* 0x4706B5A0: push edi */ 785 PUSH32(esp, 0x4706B600u); /* 0x4706B5A1: push 0x4706b600 */ 786 edi = esi + (-0x4); /* 0x4706B5A6: lea edi, [esi - 4] */ 787 PUSH32(esp, eax); /* 0x4706B5A9: push eax */ 788 PUSH32(esp, 0xCu); /* 0x4706B5AA: push 0xc */ 789 PUSH32(esp, esi); /* 0x4706B5AC: push esi */ 790 RECOMP_ICALL(0x470A32EBu); /* 0x4706B5AD: call 0x470a32eb */ /* not lifted */ 791 RECOMP_FLAGS_IN(); 792 /* test LO8(ebx), 1 */ /* 0x4706B5B2: test bl, 1 */ 793 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 794 _cf = 0; 795 _flag_k = FK_NARROW(FK_TEST, 24); 796 if (TEST_Z(_flag_a, _flag_b)) goto L_4706B5C0; /* 0x4706B5B5: je 0x4706b5c0 */ 797 L_4706B5B7: 798 PUSH32(esp, edi); /* 0x4706B5B7: push edi */ 799 RECOMP_ICALL(0x470A32A2u); /* 0x4706B5B8: call 0x470a32a2 */ /* not lifted */ 800 RECOMP_FLAGS_IN(); 801 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 802 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 803 esp = esp + 4; /* 0x4706B5BD: add esp, 4 */ 804 _flag_k = FK_ADD; 805 L_4706B5C0: 806 eax = edi; /* 0x4706B5C0: mov eax, edi */ 807 edi = POP32_VAL(esp); /* 0x4706B5C2: pop edi */ 808 esi = POP32_VAL(esp); /* 0x4706B5C3: pop esi */ 809 ebx = POP32_VAL(esp); /* 0x4706B5C4: pop ebx */ 810 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706B5C5: ret 4 */ 811 L_4706B5C8: 812 eax = MEM32(esi + 0x8); /* 0x4706B5C8: mov eax, dword ptr [esi + 8] */ 813 /* test eax, eax */ /* 0x4706B5CB: test eax, eax */ 814 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 815 _cf = 0; 816 _flag_k = FK_TEST; 817 MEM32(esi) = 0x470AEAC8u; /* 0x4706B5CD: mov dword ptr [esi], 0x470aeac8 */ 818 if (TEST_Z(_flag_a, _flag_b)) goto L_4706B5E2; /* 0x4706B5D3: je 0x4706b5e2 */ 819 L_4706B5D5: 820 ecx = MEM32(esi + 0x4); /* 0x4706B5D5: mov ecx, dword ptr [esi + 4] */ 821 /* test ecx, ecx */ /* 0x4706B5D8: test ecx, ecx */ 822 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 823 _cf = 0; 824 _flag_k = FK_TEST; 825 if (TEST_Z(_flag_a, _flag_b)) goto L_4706B5E2; /* 0x4706B5DA: je 0x4706b5e2 */ 826 L_4706B5DC: 827 edx = MEM32(ecx); /* 0x4706B5DC: mov edx, dword ptr [ecx] */ 828 PUSH32(esp, 1); /* 0x4706B5DE: push 1 */ 829 RECOMP_ICALL(MEM32(edx)); /* 0x4706B5E0: call dword ptr [edx] */ 830 RECOMP_FLAGS_IN(); 831 L_4706B5E2: 832 /* test LO8(ebx), 1 */ /* 0x4706B5E2: 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_4706B5F0; /* 0x4706B5E5: je 0x4706b5f0 */ 837 L_4706B5E7: 838 PUSH32(esp, esi); /* 0x4706B5E7: push esi */ 839 RECOMP_ICALL(0x470A32A2u); /* 0x4706B5E8: 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; /* 0x4706B5ED: add esp, 4 */ 844 _flag_k = FK_ADD; 845 L_4706B5F0: 846 eax = esi; /* 0x4706B5F0: mov eax, esi */ 847 esi = POP32_VAL(esp); /* 0x4706B5F2: pop esi */ 848 ebx = POP32_VAL(esp); /* 0x4706B5F3: pop ebx */ 849 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706B5F4: ret 4 */ 850 RECOMP_REGS_OUT(); 851 } 852 853 void sub_4706B600(void) { 854 int _fpu_cmp = 0; 855 uint32_t _cf = 0; 856 int _df = 1; 857 uint32_t _flag_k = FK_NONE; 858 uint32_t _flag_a = 0, _flag_b = 0; 859 uint32_t _itail_tgt = 0; 860 RECOMP_REGS_LOCALS 861 RECOMP_ENTER(0x4706B600u); 862 863 L_4706B600: 864 eax = MEM32(ecx + 0x8); /* 0x4706B600: mov eax, dword ptr [ecx + 8] */ 865 /* test eax, eax */ /* 0x4706B603: test eax, eax */ 866 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 867 _cf = 0; 868 _flag_k = FK_TEST; 869 MEM32(ecx) = 0x470AEAC8u; /* 0x4706B605: mov dword ptr [ecx], 0x470aeac8 */ 870 if (TEST_Z(_flag_a, _flag_b)) goto L_4706B61A; /* 0x4706B60B: je 0x4706b61a */ 871 L_4706B60D: 872 ecx = MEM32(ecx + 0x4); /* 0x4706B60D: mov ecx, dword ptr [ecx + 4] */ 873 /* test ecx, ecx */ /* 0x4706B610: test ecx, ecx */ 874 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 875 _cf = 0; 876 _flag_k = FK_TEST; 877 if (TEST_Z(_flag_a, _flag_b)) goto L_4706B61A; /* 0x4706B612: je 0x4706b61a */ 878 L_4706B614: 879 eax = MEM32(ecx); /* 0x4706B614: mov eax, dword ptr [ecx] */ 880 PUSH32(esp, 1); /* 0x4706B616: push 1 */ 881 RECOMP_ICALL(MEM32(eax)); /* 0x4706B618: call dword ptr [eax] */ 882 RECOMP_FLAGS_IN(); 883 L_4706B61A: 884 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B61A: ret */ 885 RECOMP_REGS_OUT(); 886 } 887 888 void sub_4706B620(void) { 889 int _fpu_cmp = 0; 890 uint32_t _cf = 0; 891 int _df = 1; 892 uint32_t _flag_k = FK_NONE; 893 uint32_t _flag_a = 0, _flag_b = 0; 894 uint32_t _itail_tgt = 0; 895 RECOMP_REGS_LOCALS 896 RECOMP_ENTER(0x4706B620u); 897 898 L_4706B620: 899 eax = MEM32(FS_BASE + (0)); /* 0x4706B620: mov eax, dword ptr fs:[0] */ 900 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706B626: push -1 */ 901 PUSH32(esp, 0x470A8963u); /* 0x4706B628: push 0x470a8963 */ 902 PUSH32(esp, eax); /* 0x4706B62D: push eax */ 903 eax = MEM32(0x4710EBA4); /* 0x4706B62E: mov eax, dword ptr [0x4710eba4] */ 904 MEM32(FS_BASE + (0)) = esp; /* 0x4706B633: mov dword ptr fs:[0], esp */ 905 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 906 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 907 esp = esp - 0xCu; /* 0x4706B63A: sub esp, 0xc */ 908 _flag_k = FK_CMP; 909 /* test eax, eax */ /* 0x4706B63D: test eax, eax */ 910 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 911 _cf = 0; 912 _flag_k = FK_TEST; 913 PUSH32(esp, esi); /* 0x4706B63F: push esi */ 914 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706B6F9; /* 0x4706B640: jne 0x4706b6f9 */ 915 L_4706B646: 916 RECOMP_ICALL(0x47053420u); /* 0x4706B646: call 0x47053420 */ /* not lifted */ 917 RECOMP_FLAGS_IN(); 918 esi = eax; /* 0x4706B64B: mov esi, eax */ 919 ecx = esi; /* 0x4706B64D: mov ecx, esi */ 920 MEM32(esp + 0x8) = esi; /* 0x4706B64F: mov dword ptr [esp + 8], esi */ 921 RECOMP_ICALL(0x470870D0u); /* 0x4706B653: call 0x470870d0 */ /* not lifted */ 922 RECOMP_FLAGS_IN(); 923 MEM32(esp + 0xC) = eax; /* 0x4706B658: mov dword ptr [esp + 0xc], eax */ 924 /* cmp eax, 0xFFFFFFFFu */ /* 0x4706B65C: cmp eax, -1 */ 925 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 926 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 927 _flag_k = FK_CMP; 928 MEM32(esp + 0x18) = 0; /* 0x4706B65F: mov dword ptr [esp + 0x18], 0 */ 929 if (CMP_NE(_flag_a, _flag_b)) goto L_4706B67B; /* 0x4706B667: jne 0x4706b67b */ 930 L_4706B669: 931 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 932 eax = 0; /* 0x4706B669: xor eax, eax */ 933 _cf = 0; 934 _flag_k = FK_TEST; 935 esi = POP32_VAL(esp); /* 0x4706B66B: pop esi */ 936 ecx = MEM32(esp + 0xC); /* 0x4706B66C: mov ecx, dword ptr [esp + 0xc] */ 937 MEM32(FS_BASE + (0)) = ecx; /* 0x4706B670: mov dword ptr fs:[0], ecx */ 938 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 939 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 940 esp = esp + 0x18u; /* 0x4706B677: add esp, 0x18 */ 941 _flag_k = FK_ADD; 942 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B67A: ret */ 943 L_4706B67B: 944 eax = MEM32(0x4710EBA4); /* 0x4706B67B: mov eax, dword ptr [0x4710eba4] */ 945 /* test eax, eax */ /* 0x4706B680: test eax, eax */ 946 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 947 _cf = 0; 948 _flag_k = FK_TEST; 949 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706B6EA; /* 0x4706B682: jne 0x4706b6ea */ 950 L_4706B684: 951 PUSH32(esp, 0xCu); /* 0x4706B684: push 0xc */ 952 RECOMP_ICALL(0x470A33F2u); /* 0x4706B686: call 0x470a33f2 */ /* not lifted */ 953 RECOMP_FLAGS_IN(); 954 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 955 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 956 esp = esp + 4; /* 0x4706B68B: add esp, 4 */ 957 _flag_k = FK_ADD; 958 MEM32(esp + 0x4) = eax; /* 0x4706B68E: mov dword ptr [esp + 4], eax */ 959 /* test eax, eax */ /* 0x4706B692: test eax, eax */ 960 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 961 _cf = 0; 962 _flag_k = FK_TEST; 963 MEM8(esp + 0x18) = (uint8_t)(1); /* 0x4706B694: mov byte ptr [esp + 0x18], 1 */ 964 if (TEST_Z(_flag_a, _flag_b)) goto L_4706B6A8; /* 0x4706B699: je 0x4706b6a8 */ 965 L_4706B69B: 966 PUSH32(esp, 0); /* 0x4706B69B: push 0 */ 967 PUSH32(esp, 0); /* 0x4706B69D: push 0 */ 968 ecx = eax; /* 0x4706B69F: mov ecx, eax */ 969 RECOMP_ICALL(0x4706B4F0u); /* 0x4706B6A1: call 0x4706b4f0 */ /* not lifted */ 970 RECOMP_FLAGS_IN(); 971 goto L_4706B6AA; /* 0x4706B6A6: jmp 0x4706b6aa */ 972 L_4706B6A8: 973 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 974 eax = 0; /* 0x4706B6A8: xor eax, eax */ 975 _cf = 0; 976 _flag_k = FK_TEST; 977 L_4706B6AA: 978 /* test eax, eax */ /* 0x4706B6AA: test eax, eax */ 979 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 980 _cf = 0; 981 _flag_k = FK_TEST; 982 MEM32(0x4710EBA4) = eax; /* 0x4706B6AC: mov dword ptr [0x4710eba4], eax */ 983 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706B6E0; /* 0x4706B6B1: jne 0x4706b6e0 */ 984 L_4706B6B3: 985 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706B6B3: call dword ptr [0x470ac3c8] */ 986 RECOMP_FLAGS_IN(); 987 ecx = esi; /* 0x4706B6B9: mov ecx, esi */ 988 MEM32(eax) = 0xCu; /* 0x4706B6BB: mov dword ptr [eax], 0xc */ 989 MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x4706B6C1: mov dword ptr [esp + 0x18], 0xffffffff */ 990 RECOMP_ICALL(0x470870E0u); /* 0x4706B6C9: call 0x470870e0 */ /* not lifted */ 991 RECOMP_FLAGS_IN(); 992 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 993 eax = 0; /* 0x4706B6CE: xor eax, eax */ 994 _cf = 0; 995 _flag_k = FK_TEST; 996 esi = POP32_VAL(esp); /* 0x4706B6D0: pop esi */ 997 ecx = MEM32(esp + 0xC); /* 0x4706B6D1: mov ecx, dword ptr [esp + 0xc] */ 998 MEM32(FS_BASE + (0)) = ecx; /* 0x4706B6D5: mov dword ptr fs:[0], ecx */ 999 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 1000 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1001 esp = esp + 0x18u; /* 0x4706B6DC: add esp, 0x18 */ 1002 _flag_k = FK_ADD; 1003 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B6DF: ret */ 1004 L_4706B6E0: 1005 MEM32(0x4710EBA8) = 1; /* 0x4706B6E0: mov dword ptr [0x4710eba8], 1 */ 1006 L_4706B6EA: 1007 ecx = esi; /* 0x4706B6EA: mov ecx, esi */ 1008 MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x4706B6EC: mov dword ptr [esp + 0x18], 0xffffffff */ 1009 RECOMP_ICALL(0x470870E0u); /* 0x4706B6F4: call 0x470870e0 */ /* not lifted */ 1010 RECOMP_FLAGS_IN(); 1011 L_4706B6F9: 1012 ecx = MEM32(esp + 0x10); /* 0x4706B6F9: mov ecx, dword ptr [esp + 0x10] */ 1013 eax = MEM32(0x4710EBA4); /* 0x4706B6FD: mov eax, dword ptr [0x4710eba4] */ 1014 esi = POP32_VAL(esp); /* 0x4706B702: pop esi */ 1015 MEM32(FS_BASE + (0)) = ecx; /* 0x4706B703: mov dword ptr fs:[0], ecx */ 1016 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 1017 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1018 esp = esp + 0x18u; /* 0x4706B70A: add esp, 0x18 */ 1019 _flag_k = FK_ADD; 1020 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B70D: ret */ 1021 RECOMP_REGS_OUT(); 1022 } 1023 1024 void sub_4706B6AA(void) { 1025 int _fpu_cmp = 0; 1026 uint32_t _cf = 0; 1027 int _df = 1; 1028 uint32_t _flag_k = FK_NONE; 1029 uint32_t _flag_a = 0, _flag_b = 0; 1030 uint32_t _itail_tgt = 0; 1031 RECOMP_REGS_LOCALS 1032 RECOMP_ENTER(0x4706B6AAu); 1033 1034 L_4706B6AA: 1035 /* test eax, eax */ /* 0x4706B6AA: test eax, eax */ 1036 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1037 _cf = 0; 1038 _flag_k = FK_TEST; 1039 MEM32(0x4710EBA4) = eax; /* 0x4706B6AC: mov dword ptr [0x4710eba4], eax */ 1040 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706B6E0; /* 0x4706B6B1: jne 0x4706b6e0 */ 1041 L_4706B6B3: 1042 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706B6B3: call dword ptr [0x470ac3c8] */ 1043 RECOMP_FLAGS_IN(); 1044 ecx = esi; /* 0x4706B6B9: mov ecx, esi */ 1045 MEM32(eax) = 0xCu; /* 0x4706B6BB: mov dword ptr [eax], 0xc */ 1046 MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x4706B6C1: mov dword ptr [esp + 0x18], 0xffffffff */ 1047 RECOMP_ICALL(0x470870E0u); /* 0x4706B6C9: call 0x470870e0 */ /* not lifted */ 1048 RECOMP_FLAGS_IN(); 1049 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1050 eax = 0; /* 0x4706B6CE: xor eax, eax */ 1051 _cf = 0; 1052 _flag_k = FK_TEST; 1053 esi = POP32_VAL(esp); /* 0x4706B6D0: pop esi */ 1054 ecx = MEM32(esp + 0xC); /* 0x4706B6D1: mov ecx, dword ptr [esp + 0xc] */ 1055 MEM32(FS_BASE + (0)) = ecx; /* 0x4706B6D5: mov dword ptr fs:[0], ecx */ 1056 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 1057 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1058 esp = esp + 0x18u; /* 0x4706B6DC: add esp, 0x18 */ 1059 _flag_k = FK_ADD; 1060 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B6DF: ret */ 1061 L_4706B6E0: 1062 MEM32(0x4710EBA8) = 1; /* 0x4706B6E0: mov dword ptr [0x4710eba8], 1 */ 1063 ecx = esi; /* 0x4706B6EA: mov ecx, esi */ 1064 MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x4706B6EC: mov dword ptr [esp + 0x18], 0xffffffff */ 1065 RECOMP_ICALL(0x470870E0u); /* 0x4706B6F4: call 0x470870e0 */ /* not lifted */ 1066 RECOMP_FLAGS_IN(); 1067 ecx = MEM32(esp + 0x10); /* 0x4706B6F9: mov ecx, dword ptr [esp + 0x10] */ 1068 eax = MEM32(0x4710EBA4); /* 0x4706B6FD: mov eax, dword ptr [0x4710eba4] */ 1069 esi = POP32_VAL(esp); /* 0x4706B702: pop esi */ 1070 MEM32(FS_BASE + (0)) = ecx; /* 0x4706B703: mov dword ptr fs:[0], ecx */ 1071 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 1072 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1073 esp = esp + 0x18u; /* 0x4706B70A: add esp, 0x18 */ 1074 _flag_k = FK_ADD; 1075 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B70D: ret */ 1076 RECOMP_REGS_OUT(); 1077 } 1078 1079 void sub_4706B710(void) { 1080 int _fpu_cmp = 0; 1081 uint32_t _cf = 0; 1082 int _df = 1; 1083 uint32_t _flag_k = FK_NONE; 1084 uint32_t _flag_a = 0, _flag_b = 0; 1085 uint32_t _itail_tgt = 0; 1086 RECOMP_REGS_LOCALS 1087 RECOMP_ENTER(0x4706B710u); 1088 1089 L_4706B710: 1090 eax = MEM32(FS_BASE + (0)); /* 0x4706B710: mov eax, dword ptr fs:[0] */ 1091 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706B716: push -1 */ 1092 PUSH32(esp, 0x470A8978u); /* 0x4706B718: push 0x470a8978 */ 1093 PUSH32(esp, eax); /* 0x4706B71D: push eax */ 1094 MEM32(FS_BASE + (0)) = esp; /* 0x4706B71E: mov dword ptr fs:[0], esp */ 1095 PUSH32(esp, esi); /* 0x4706B725: push esi */ 1096 PUSH32(esp, edi); /* 0x4706B726: push edi */ 1097 RECOMP_ICALL(0x47053420u); /* 0x4706B727: call 0x47053420 */ /* not lifted */ 1098 RECOMP_FLAGS_IN(); 1099 esi = eax; /* 0x4706B72C: mov esi, eax */ 1100 ecx = esi; /* 0x4706B72E: mov ecx, esi */ 1101 RECOMP_ICALL(0x470870D0u); /* 0x4706B730: call 0x470870d0 */ /* not lifted */ 1102 RECOMP_FLAGS_IN(); 1103 /* cmp eax, 0xFFFFFFFFu */ /* 0x4706B735: cmp eax, -1 */ 1104 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 1105 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1106 _flag_k = FK_CMP; 1107 if (CMP_NE(_flag_a, _flag_b)) goto L_4706B74D; /* 0x4706B738: jne 0x4706b74d */ 1108 L_4706B73A: 1109 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1110 eax = 0; /* 0x4706B73A: xor eax, eax */ 1111 _cf = 0; 1112 _flag_k = FK_TEST; 1113 ecx = MEM32(esp + 0x8); /* 0x4706B73C: mov ecx, dword ptr [esp + 8] */ 1114 MEM32(FS_BASE + (0)) = ecx; /* 0x4706B740: mov dword ptr fs:[0], ecx */ 1115 edi = POP32_VAL(esp); /* 0x4706B747: pop edi */ 1116 esi = POP32_VAL(esp); /* 0x4706B748: pop esi */ 1117 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1118 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1119 esp = esp + 0xCu; /* 0x4706B749: add esp, 0xc */ 1120 _flag_k = FK_ADD; 1121 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B74C: ret */ 1122 L_4706B74D: 1123 ecx = MEM32(esp + 0x1C); /* 0x4706B74D: mov ecx, dword ptr [esp + 0x1c] */ 1124 edi = MEM32(0x4710EBA4); /* 0x4706B751: mov edi, dword ptr [0x4710eba4] */ 1125 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1126 eax = 0; /* 0x4706B757: xor eax, eax */ 1127 _cf = 0; 1128 _flag_k = FK_TEST; 1129 /* test ecx, ecx */ /* 0x4706B759: test ecx, ecx */ 1130 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1131 _cf = 0; 1132 _flag_k = FK_TEST; 1133 ecx = MEM32(esp + 0x18); /* 0x4706B75B: mov ecx, dword ptr [esp + 0x18] */ 1134 SET_LO8(eax, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x4706B75F: setne al */ 1135 MEM32(0x4710EBA4) = ecx; /* 0x4706B762: mov dword ptr [0x4710eba4], ecx */ 1136 ecx = esi; /* 0x4706B768: mov ecx, esi */ 1137 MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x4706B76A: mov dword ptr [esp + 0x10], 0xffffffff */ 1138 MEM32(0x4710EBA8) = eax; /* 0x4706B772: mov dword ptr [0x4710eba8], eax */ 1139 RECOMP_ICALL(0x470870E0u); /* 0x4706B777: call 0x470870e0 */ /* not lifted */ 1140 RECOMP_FLAGS_IN(); 1141 ecx = MEM32(esp + 0x8); /* 0x4706B77C: mov ecx, dword ptr [esp + 8] */ 1142 eax = edi; /* 0x4706B780: mov eax, edi */ 1143 edi = POP32_VAL(esp); /* 0x4706B782: pop edi */ 1144 MEM32(FS_BASE + (0)) = ecx; /* 0x4706B783: mov dword ptr fs:[0], ecx */ 1145 esi = POP32_VAL(esp); /* 0x4706B78A: pop esi */ 1146 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1147 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1148 esp = esp + 0xCu; /* 0x4706B78B: add esp, 0xc */ 1149 _flag_k = FK_ADD; 1150 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B78E: ret */ 1151 RECOMP_REGS_OUT(); 1152 } 1153 1154 void sub_4706B790(void) { 1155 int _fpu_cmp = 0; 1156 uint32_t _cf = 0; 1157 int _df = 1; 1158 uint32_t _flag_k = FK_NONE; 1159 uint32_t _flag_a = 0, _flag_b = 0; 1160 uint32_t _itail_tgt = 0; 1161 RECOMP_REGS_LOCALS 1162 RECOMP_ENTER(0x4706B790u); 1163 1164 L_4706B790: 1165 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706B790: push -1 */ 1166 PUSH32(esp, 0x470A8998u); /* 0x4706B792: push 0x470a8998 */ 1167 eax = MEM32(FS_BASE + (0)); /* 0x4706B797: mov eax, dword ptr fs:[0] */ 1168 PUSH32(esp, eax); /* 0x4706B79D: push eax */ 1169 MEM32(FS_BASE + (0)) = esp; /* 0x4706B79E: mov dword ptr fs:[0], esp */ 1170 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1171 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1172 esp = esp - 8; /* 0x4706B7A5: sub esp, 8 */ 1173 _flag_k = FK_CMP; 1174 PUSH32(esp, esi); /* 0x4706B7A8: push esi */ 1175 RECOMP_ICALL(0x47053420u); /* 0x4706B7A9: call 0x47053420 */ /* not lifted */ 1176 RECOMP_FLAGS_IN(); 1177 esi = eax; /* 0x4706B7AE: mov esi, eax */ 1178 ecx = esi; /* 0x4706B7B0: mov ecx, esi */ 1179 MEM32(esp + 0x4) = esi; /* 0x4706B7B2: mov dword ptr [esp + 4], esi */ 1180 RECOMP_ICALL(0x470870D0u); /* 0x4706B7B6: call 0x470870d0 */ /* not lifted */ 1181 RECOMP_FLAGS_IN(); 1182 MEM32(esp + 0x8) = eax; /* 0x4706B7BB: mov dword ptr [esp + 8], eax */ 1183 /* cmp eax, 0xFFFFFFFFu */ /* 0x4706B7BF: cmp eax, -1 */ 1184 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 1185 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1186 _flag_k = FK_CMP; 1187 MEM32(esp + 0x14) = 0; /* 0x4706B7C2: mov dword ptr [esp + 0x14], 0 */ 1188 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706B809; /* 0x4706B7CA: je 0x4706b809 */ 1189 L_4706B7CC: 1190 eax = MEM32(0x4710EBA8); /* 0x4706B7CC: mov eax, dword ptr [0x4710eba8] */ 1191 /* test eax, eax */ /* 0x4706B7D1: test eax, eax */ 1192 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1193 _cf = 0; 1194 _flag_k = FK_TEST; 1195 if (TEST_Z(_flag_a, _flag_b)) goto L_4706B7FA; /* 0x4706B7D3: je 0x4706b7fa */ 1196 L_4706B7D5: 1197 ecx = MEM32(0x4710EBA4); /* 0x4706B7D5: mov ecx, dword ptr [0x4710eba4] */ 1198 /* test ecx, ecx */ /* 0x4706B7DB: test ecx, ecx */ 1199 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1200 _cf = 0; 1201 _flag_k = FK_TEST; 1202 if (TEST_Z(_flag_a, _flag_b)) goto L_4706B7E6; /* 0x4706B7DD: je 0x4706b7e6 */ 1203 L_4706B7DF: 1204 eax = MEM32(ecx); /* 0x4706B7DF: mov eax, dword ptr [ecx] */ 1205 PUSH32(esp, 1); /* 0x4706B7E1: push 1 */ 1206 RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x4706B7E3: call dword ptr [eax + 0x1c] */ 1207 RECOMP_FLAGS_IN(); 1208 L_4706B7E6: 1209 MEM32(0x4710EBA4) = 0; /* 0x4706B7E6: mov dword ptr [0x4710eba4], 0 */ 1210 MEM32(0x4710EBA8) = 0; /* 0x4706B7F0: mov dword ptr [0x4710eba8], 0 */ 1211 L_4706B7FA: 1212 ecx = esi; /* 0x4706B7FA: mov ecx, esi */ 1213 MEM32(esp + 0x14) = 0xFFFFFFFFu; /* 0x4706B7FC: mov dword ptr [esp + 0x14], 0xffffffff */ 1214 RECOMP_ICALL(0x470870E0u); /* 0x4706B804: call 0x470870e0 */ /* not lifted */ 1215 RECOMP_FLAGS_IN(); 1216 L_4706B809: 1217 ecx = MEM32(esp + 0xC); /* 0x4706B809: mov ecx, dword ptr [esp + 0xc] */ 1218 esi = POP32_VAL(esp); /* 0x4706B80D: pop esi */ 1219 MEM32(FS_BASE + (0)) = ecx; /* 0x4706B80E: mov dword ptr fs:[0], ecx */ 1220 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1221 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1222 esp = esp + 0x14u; /* 0x4706B815: add esp, 0x14 */ 1223 _flag_k = FK_ADD; 1224 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B818: ret */ 1225 RECOMP_REGS_OUT(); 1226 } 1227 1228 void sub_4706B820(void) { 1229 int _fpu_cmp = 0; 1230 uint32_t _cf = 0; 1231 int _df = 1; 1232 uint32_t _flag_k = FK_NONE; 1233 uint32_t _flag_a = 0, _flag_b = 0; 1234 uint32_t _itail_tgt = 0; 1235 RECOMP_REGS_LOCALS 1236 RECOMP_ENTER(0x4706B820u); 1237 1238 L_4706B820: 1239 RECOMP_ICALL(0x47075F20u); /* 0x4706B820: call 0x47075f20 */ /* not lifted */ 1240 RECOMP_FLAGS_IN(); 1241 /* test eax, eax */ /* 0x4706B825: test eax, eax */ 1242 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1243 _cf = 0; 1244 _flag_k = FK_TEST; 1245 if (TEST_Z(_flag_a, _flag_b)) goto L_4706B834; /* 0x4706B827: je 0x4706b834 */ 1246 L_4706B829: 1247 RECOMP_ICALL(0x47075C30u); /* 0x4706B829: call 0x47075c30 */ /* not lifted */ 1248 RECOMP_FLAGS_IN(); 1249 eax = 1; /* 0x4706B82E: mov eax, 1 */ 1250 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B833: ret */ 1251 L_4706B834: 1252 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1253 eax = 0; /* 0x4706B834: xor eax, eax */ 1254 _cf = 0; 1255 _flag_k = FK_TEST; 1256 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B836: ret */ 1257 RECOMP_REGS_OUT(); 1258 } 1259 1260 void sub_4706B840(void) { 1261 int _fpu_cmp = 0; 1262 uint32_t _cf = 0; 1263 int _df = 1; 1264 uint32_t _flag_k = FK_NONE; 1265 uint32_t _flag_a = 0, _flag_b = 0; 1266 uint32_t _itail_tgt = 0; 1267 RECOMP_REGS_LOCALS 1268 RECOMP_ENTER(0x4706B840u); 1269 1270 L_4706B840: 1271 PUSH32(esp, ebx); /* 0x4706B840: push ebx */ 1272 PUSH32(esp, esi); /* 0x4706B841: push esi */ 1273 PUSH32(esp, edi); /* 0x4706B842: push edi */ 1274 edi = MEM32(esp + 0x10); /* 0x4706B843: mov edi, dword ptr [esp + 0x10] */ 1275 ebx = ecx; /* 0x4706B847: mov ebx, ecx */ 1276 L_4706B849: 1277 ecx = MEM32(ebx + 0x4); /* 0x4706B849: mov ecx, dword ptr [ebx + 4] */ 1278 eax = MEM32(ecx); /* 0x4706B84C: mov eax, dword ptr [ecx] */ 1279 PUSH32(esp, 0); /* 0x4706B84E: push 0 */ 1280 RECOMP_ICALL(MEM32(eax + 0x20)); /* 0x4706B850: call dword ptr [eax + 0x20] */ 1281 RECOMP_FLAGS_IN(); 1282 /* test edi, edi */ /* 0x4706B853: test edi, edi */ 1283 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 1284 _cf = 0; 1285 _flag_k = FK_TEST; 1286 esi = eax; /* 0x4706B855: mov esi, eax */ 1287 if (TEST_Z(_flag_a, _flag_b)) goto L_4706B864; /* 0x4706B857: je 0x4706b864 */ 1288 L_4706B859: 1289 PUSH32(esp, 0); /* 0x4706B859: push 0 */ 1290 RECOMP_ICALL(edi); /* 0x4706B85B: call edi */ 1291 RECOMP_FLAGS_IN(); 1292 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1293 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1294 esp = esp + 4; /* 0x4706B85D: add esp, 4 */ 1295 _flag_k = FK_ADD; 1296 /* test eax, eax */ /* 0x4706B860: test eax, eax */ 1297 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1298 _cf = 0; 1299 _flag_k = FK_TEST; 1300 RECOMP_BACKEDGE(); 1301 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706B849; /* 0x4706B862: jne 0x4706b849 */ 1302 L_4706B864: 1303 /* cmp esi, 0xFFFFFFFFu */ /* 0x4706B864: cmp esi, -1 */ 1304 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu); 1305 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1306 _flag_k = FK_CMP; 1307 RECOMP_BACKEDGE(); 1308 if (CMP_NE(_flag_a, _flag_b)) goto L_4706B849; /* 0x4706B867: jne 0x4706b849 */ 1309 L_4706B869: 1310 ecx = MEM32(ebx + 0x4); /* 0x4706B869: mov ecx, dword ptr [ebx + 4] */ 1311 edx = MEM32(ecx); /* 0x4706B86C: mov edx, dword ptr [ecx] */ 1312 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x4706B86E: call dword ptr [edx + 0x2c] */ 1313 RECOMP_FLAGS_IN(); 1314 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 1315 _cf = (eax) != 0; 1316 eax = (uint32_t)(-(int32_t)eax); /* 0x4706B871: neg eax */ 1317 _flag_k = FK_CMP; 1318 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x4706B873: sbb eax, eax */ 1319 eax = _sc ? 0xFFFFFFFFu : 0; 1320 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1321 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1322 edi = POP32_VAL(esp); /* 0x4706B875: pop edi */ 1323 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 1324 _cf = (eax) != 0; 1325 eax = (uint32_t)(-(int32_t)eax); /* 0x4706B876: neg eax */ 1326 _flag_k = FK_CMP; 1327 esi = POP32_VAL(esp); /* 0x4706B878: pop esi */ 1328 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1329 eax = eax - 1; /* 0x4706B879: dec eax */ 1330 _flag_k = FK_DEC; 1331 ebx = POP32_VAL(esp); /* 0x4706B87A: pop ebx */ 1332 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706B87B: ret 4 */ 1333 RECOMP_REGS_OUT(); 1334 } 1335 1336 void sub_4706B880(void) { 1337 int _fpu_cmp = 0; 1338 uint32_t _cf = 0; 1339 int _df = 1; 1340 uint32_t _flag_k = FK_NONE; 1341 uint32_t _flag_a = 0, _flag_b = 0; 1342 uint32_t _itail_tgt = 0; 1343 RECOMP_REGS_LOCALS 1344 RECOMP_ENTER(0x4706B880u); 1345 1346 L_4706B880: 1347 PUSH32(esp, ebx); /* 0x4706B880: push ebx */ 1348 PUSH32(esp, esi); /* 0x4706B881: push esi */ 1349 PUSH32(esp, edi); /* 0x4706B882: push edi */ 1350 edi = MEM32(esp + 0x10); /* 0x4706B883: mov edi, dword ptr [esp + 0x10] */ 1351 ebx = ecx; /* 0x4706B887: mov ebx, ecx */ 1352 L_4706B889: 1353 ecx = MEM32(ebx + 0x4); /* 0x4706B889: mov ecx, dword ptr [ebx + 4] */ 1354 eax = MEM32(ecx); /* 0x4706B88C: mov eax, dword ptr [ecx] */ 1355 PUSH32(esp, 0); /* 0x4706B88E: push 0 */ 1356 RECOMP_ICALL(MEM32(eax + 0x28)); /* 0x4706B890: call dword ptr [eax + 0x28] */ 1357 RECOMP_FLAGS_IN(); 1358 /* test edi, edi */ /* 0x4706B893: test edi, edi */ 1359 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 1360 _cf = 0; 1361 _flag_k = FK_TEST; 1362 esi = eax; /* 0x4706B895: mov esi, eax */ 1363 if (TEST_Z(_flag_a, _flag_b)) goto L_4706B8A4; /* 0x4706B897: je 0x4706b8a4 */ 1364 L_4706B899: 1365 PUSH32(esp, 0); /* 0x4706B899: push 0 */ 1366 RECOMP_ICALL(edi); /* 0x4706B89B: call edi */ 1367 RECOMP_FLAGS_IN(); 1368 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1369 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1370 esp = esp + 4; /* 0x4706B89D: add esp, 4 */ 1371 _flag_k = FK_ADD; 1372 /* test eax, eax */ /* 0x4706B8A0: test eax, eax */ 1373 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1374 _cf = 0; 1375 _flag_k = FK_TEST; 1376 RECOMP_BACKEDGE(); 1377 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706B889; /* 0x4706B8A2: jne 0x4706b889 */ 1378 L_4706B8A4: 1379 /* cmp esi, 0xFFFFFFFFu */ /* 0x4706B8A4: cmp esi, -1 */ 1380 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu); 1381 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1382 _flag_k = FK_CMP; 1383 RECOMP_BACKEDGE(); 1384 if (CMP_NE(_flag_a, _flag_b)) goto L_4706B889; /* 0x4706B8A7: jne 0x4706b889 */ 1385 L_4706B8A9: 1386 ecx = MEM32(ebx + 0x4); /* 0x4706B8A9: mov ecx, dword ptr [ebx + 4] */ 1387 edx = MEM32(ecx); /* 0x4706B8AC: mov edx, dword ptr [ecx] */ 1388 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x4706B8AE: call dword ptr [edx + 0x2c] */ 1389 RECOMP_FLAGS_IN(); 1390 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 1391 _cf = (eax) != 0; 1392 eax = (uint32_t)(-(int32_t)eax); /* 0x4706B8B1: neg eax */ 1393 _flag_k = FK_CMP; 1394 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x4706B8B3: sbb eax, eax */ 1395 eax = _sc ? 0xFFFFFFFFu : 0; 1396 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1397 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1398 edi = POP32_VAL(esp); /* 0x4706B8B5: pop edi */ 1399 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 1400 _cf = (eax) != 0; 1401 eax = (uint32_t)(-(int32_t)eax); /* 0x4706B8B6: neg eax */ 1402 _flag_k = FK_CMP; 1403 esi = POP32_VAL(esp); /* 0x4706B8B8: pop esi */ 1404 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1405 eax = eax - 1; /* 0x4706B8B9: dec eax */ 1406 _flag_k = FK_DEC; 1407 ebx = POP32_VAL(esp); /* 0x4706B8BA: pop ebx */ 1408 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706B8BB: ret 4 */ 1409 RECOMP_REGS_OUT(); 1410 } 1411 1412 void sub_4706B8C0(void) { 1413 int _fpu_cmp = 0; 1414 uint32_t _cf = 0; 1415 int _df = 1; 1416 uint32_t _flag_k = FK_NONE; 1417 uint32_t _flag_a = 0, _flag_b = 0; 1418 uint32_t _itail_tgt = 0; 1419 RECOMP_REGS_LOCALS 1420 RECOMP_ENTER(0x4706B8C0u); 1421 1422 L_4706B8C0: 1423 PUSH32(esp, ebx); /* 0x4706B8C0: push ebx */ 1424 PUSH32(esp, ebp); /* 0x4706B8C1: push ebp */ 1425 ebp = MEM32(esp + 0xC); /* 0x4706B8C2: mov ebp, dword ptr [esp + 0xc] */ 1426 PUSH32(esp, esi); /* 0x4706B8C6: push esi */ 1427 PUSH32(esp, edi); /* 0x4706B8C7: push edi */ 1428 edi = MEM32(esp + 0x18); /* 0x4706B8C8: mov edi, dword ptr [esp + 0x18] */ 1429 ebx = ecx; /* 0x4706B8CC: mov ebx, ecx */ 1430 L_4706B8CE: 1431 ecx = MEM32(ebx + 0x4); /* 0x4706B8CE: mov ecx, dword ptr [ebx + 4] */ 1432 eax = MEM32(ecx); /* 0x4706B8D1: mov eax, dword ptr [ecx] */ 1433 PUSH32(esp, ebp); /* 0x4706B8D3: push ebp */ 1434 RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x4706B8D4: call dword ptr [eax + 0x1c] */ 1435 RECOMP_FLAGS_IN(); 1436 /* test edi, edi */ /* 0x4706B8D7: test edi, edi */ 1437 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 1438 _cf = 0; 1439 _flag_k = FK_TEST; 1440 esi = eax; /* 0x4706B8D9: mov esi, eax */ 1441 if (TEST_Z(_flag_a, _flag_b)) goto L_4706B8E8; /* 0x4706B8DB: je 0x4706b8e8 */ 1442 L_4706B8DD: 1443 PUSH32(esp, 0); /* 0x4706B8DD: push 0 */ 1444 RECOMP_ICALL(edi); /* 0x4706B8DF: call edi */ 1445 RECOMP_FLAGS_IN(); 1446 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1447 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1448 esp = esp + 4; /* 0x4706B8E1: add esp, 4 */ 1449 _flag_k = FK_ADD; 1450 /* test eax, eax */ /* 0x4706B8E4: test eax, eax */ 1451 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1452 _cf = 0; 1453 _flag_k = FK_TEST; 1454 RECOMP_BACKEDGE(); 1455 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706B8CE; /* 0x4706B8E6: jne 0x4706b8ce */ 1456 L_4706B8E8: 1457 /* cmp esi, 0xFFFFFFFFu */ /* 0x4706B8E8: cmp esi, -1 */ 1458 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu); 1459 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1460 _flag_k = FK_CMP; 1461 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706B8F3; /* 0x4706B8EB: je 0x4706b8f3 */ 1462 L_4706B8ED: 1463 /* test esi, esi */ /* 0x4706B8ED: test esi, esi */ 1464 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 1465 _cf = 0; 1466 _flag_k = FK_TEST; 1467 if (TEST_LE(_flag_a, _flag_b)) goto L_4706B908; /* 0x4706B8EF: jle 0x4706b908 */ 1468 L_4706B8F1: 1469 RECOMP_BACKEDGE(); 1470 goto L_4706B8CE; /* 0x4706B8F1: jmp 0x4706b8ce */ 1471 L_4706B8F3: 1472 ecx = MEM32(ebx + 0x4); /* 0x4706B8F3: mov ecx, dword ptr [ebx + 4] */ 1473 edx = MEM32(ecx); /* 0x4706B8F6: mov edx, dword ptr [ecx] */ 1474 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x4706B8F8: call dword ptr [edx + 0x2c] */ 1475 RECOMP_FLAGS_IN(); 1476 /* test eax, eax */ /* 0x4706B8FB: test eax, eax */ 1477 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1478 _cf = 0; 1479 _flag_k = FK_TEST; 1480 if (TEST_Z(_flag_a, _flag_b)) goto L_4706B908; /* 0x4706B8FD: je 0x4706b908 */ 1481 L_4706B8FF: 1482 edi = POP32_VAL(esp); /* 0x4706B8FF: pop edi */ 1483 esi = POP32_VAL(esp); /* 0x4706B900: pop esi */ 1484 ebp = POP32_VAL(esp); /* 0x4706B901: pop ebp */ 1485 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1486 eax = 0; /* 0x4706B902: xor eax, eax */ 1487 _cf = 0; 1488 _flag_k = FK_TEST; 1489 ebx = POP32_VAL(esp); /* 0x4706B904: pop ebx */ 1490 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4706B905: ret 8 */ 1491 L_4706B908: 1492 edi = POP32_VAL(esp); /* 0x4706B908: pop edi */ 1493 eax = esi; /* 0x4706B909: mov eax, esi */ 1494 esi = POP32_VAL(esp); /* 0x4706B90B: pop esi */ 1495 ebp = POP32_VAL(esp); /* 0x4706B90C: pop ebp */ 1496 ebx = POP32_VAL(esp); /* 0x4706B90D: pop ebx */ 1497 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4706B90E: ret 8 */ 1498 RECOMP_REGS_OUT(); 1499 } 1500 1501 void sub_4706B920(void) { 1502 int _fpu_cmp = 0; 1503 uint32_t _cf = 0; 1504 int _df = 1; 1505 uint32_t _flag_k = FK_NONE; 1506 uint32_t _flag_a = 0, _flag_b = 0; 1507 uint32_t _itail_tgt = 0; 1508 RECOMP_REGS_LOCALS 1509 RECOMP_ENTER(0x4706B920u); 1510 1511 L_4706B920: 1512 PUSH32(esp, ebx); /* 0x4706B920: push ebx */ 1513 PUSH32(esp, ebp); /* 0x4706B921: push ebp */ 1514 ebp = MEM32(esp + 0xC); /* 0x4706B922: mov ebp, dword ptr [esp + 0xc] */ 1515 PUSH32(esp, esi); /* 0x4706B926: push esi */ 1516 PUSH32(esp, edi); /* 0x4706B927: push edi */ 1517 edi = MEM32(esp + 0x18); /* 0x4706B928: mov edi, dword ptr [esp + 0x18] */ 1518 ebx = ecx; /* 0x4706B92C: mov ebx, ecx */ 1519 L_4706B92E: 1520 ecx = MEM32(ebx + 0x4); /* 0x4706B92E: mov ecx, dword ptr [ebx + 4] */ 1521 eax = MEM32(ecx); /* 0x4706B931: mov eax, dword ptr [ecx] */ 1522 PUSH32(esp, ebp); /* 0x4706B933: push ebp */ 1523 RECOMP_ICALL(MEM32(eax + 0x24)); /* 0x4706B934: call dword ptr [eax + 0x24] */ 1524 RECOMP_FLAGS_IN(); 1525 /* test edi, edi */ /* 0x4706B937: test edi, edi */ 1526 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 1527 _cf = 0; 1528 _flag_k = FK_TEST; 1529 esi = eax; /* 0x4706B939: mov esi, eax */ 1530 if (TEST_Z(_flag_a, _flag_b)) goto L_4706B948; /* 0x4706B93B: je 0x4706b948 */ 1531 L_4706B93D: 1532 PUSH32(esp, 0); /* 0x4706B93D: push 0 */ 1533 RECOMP_ICALL(edi); /* 0x4706B93F: call edi */ 1534 RECOMP_FLAGS_IN(); 1535 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1536 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1537 esp = esp + 4; /* 0x4706B941: add esp, 4 */ 1538 _flag_k = FK_ADD; 1539 /* test eax, eax */ /* 0x4706B944: test eax, eax */ 1540 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1541 _cf = 0; 1542 _flag_k = FK_TEST; 1543 RECOMP_BACKEDGE(); 1544 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706B92E; /* 0x4706B946: jne 0x4706b92e */ 1545 L_4706B948: 1546 /* cmp esi, 0xFFFFFFFFu */ /* 0x4706B948: cmp esi, -1 */ 1547 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu); 1548 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1549 _flag_k = FK_CMP; 1550 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706B953; /* 0x4706B94B: je 0x4706b953 */ 1551 L_4706B94D: 1552 /* test esi, esi */ /* 0x4706B94D: test esi, esi */ 1553 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 1554 _cf = 0; 1555 _flag_k = FK_TEST; 1556 if (TEST_LE(_flag_a, _flag_b)) goto L_4706B968; /* 0x4706B94F: jle 0x4706b968 */ 1557 L_4706B951: 1558 RECOMP_BACKEDGE(); 1559 goto L_4706B92E; /* 0x4706B951: jmp 0x4706b92e */ 1560 L_4706B953: 1561 ecx = MEM32(ebx + 0x4); /* 0x4706B953: mov ecx, dword ptr [ebx + 4] */ 1562 edx = MEM32(ecx); /* 0x4706B956: mov edx, dword ptr [ecx] */ 1563 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x4706B958: call dword ptr [edx + 0x2c] */ 1564 RECOMP_FLAGS_IN(); 1565 /* test eax, eax */ /* 0x4706B95B: test eax, eax */ 1566 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1567 _cf = 0; 1568 _flag_k = FK_TEST; 1569 if (TEST_Z(_flag_a, _flag_b)) goto L_4706B968; /* 0x4706B95D: je 0x4706b968 */ 1570 L_4706B95F: 1571 edi = POP32_VAL(esp); /* 0x4706B95F: pop edi */ 1572 esi = POP32_VAL(esp); /* 0x4706B960: pop esi */ 1573 ebp = POP32_VAL(esp); /* 0x4706B961: pop ebp */ 1574 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1575 eax = 0; /* 0x4706B962: xor eax, eax */ 1576 _cf = 0; 1577 _flag_k = FK_TEST; 1578 ebx = POP32_VAL(esp); /* 0x4706B964: pop ebx */ 1579 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4706B965: ret 8 */ 1580 L_4706B968: 1581 edi = POP32_VAL(esp); /* 0x4706B968: pop edi */ 1582 eax = esi; /* 0x4706B969: mov eax, esi */ 1583 esi = POP32_VAL(esp); /* 0x4706B96B: pop esi */ 1584 ebp = POP32_VAL(esp); /* 0x4706B96C: pop ebp */ 1585 ebx = POP32_VAL(esp); /* 0x4706B96D: pop ebx */ 1586 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4706B96E: ret 8 */ 1587 RECOMP_REGS_OUT(); 1588 } 1589 1590 void sub_4706B980(void) { 1591 int _fpu_cmp = 0; 1592 uint32_t _cf = 0; 1593 int _df = 1; 1594 uint32_t _flag_k = FK_NONE; 1595 uint32_t _flag_a = 0, _flag_b = 0; 1596 uint32_t _itail_tgt = 0; 1597 RECOMP_REGS_LOCALS 1598 RECOMP_ENTER(0x4706B980u); 1599 1600 L_4706B980: 1601 ecx = MEM32(ecx + 0x4); /* 0x4706B980: mov ecx, dword ptr [ecx + 4] */ 1602 eax = MEM32(ecx); /* 0x4706B983: mov eax, dword ptr [ecx] */ 1603 PUSH32(esp, 1); /* 0x4706B985: push 1 */ 1604 RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x4706B987: call dword ptr [eax + 0x30] */ 1605 RECOMP_FLAGS_IN(); 1606 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1607 eax = 0; /* 0x4706B98A: xor eax, eax */ 1608 _cf = 0; 1609 _flag_k = FK_TEST; 1610 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B98C: ret */ 1611 RECOMP_REGS_OUT(); 1612 } 1613 1614 void sub_4706B990(void) { 1615 int _fpu_cmp = 0; 1616 uint32_t _cf = 0; 1617 int _df = 1; 1618 uint32_t _flag_k = FK_NONE; 1619 uint32_t _flag_a = 0, _flag_b = 0; 1620 uint32_t _itail_tgt = 0; 1621 RECOMP_REGS_LOCALS 1622 RECOMP_ENTER(0x4706B990u); 1623 1624 L_4706B990: 1625 ecx = MEM32(ecx + 0x4); /* 0x4706B990: mov ecx, dword ptr [ecx + 4] */ 1626 L_4706B993: 1627 eax = MEM32(ecx); /* 0x4706B993: mov eax, dword ptr [ecx] */ 1628 L_4706B995: 1629 { _itail_tgt = (uint32_t)(MEM32(eax + 0x2C)); goto _ljump; } 1630 { RECOMP_REGS_OUT(); return; } /* end of function */ 1631 _ljump: 1632 switch (_itail_tgt) { 1633 case 0x4706B990u: goto L_4706B990; 1634 case 0x4706B993u: goto L_4706B993; 1635 case 0x4706B995u: goto L_4706B995; 1636 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1637 } 1638 RECOMP_REGS_OUT(); 1639 } 1640 1641 void sub_4706B9A0(void) { 1642 int _fpu_cmp = 0; 1643 uint32_t _cf = 0; 1644 int _df = 1; 1645 uint32_t _flag_k = FK_NONE; 1646 uint32_t _flag_a = 0, _flag_b = 0; 1647 uint32_t _itail_tgt = 0; 1648 RECOMP_REGS_LOCALS 1649 RECOMP_ENTER(0x4706B9A0u); 1650 1651 L_4706B9A0: 1652 ecx = MEM32(ecx + 0x4); /* 0x4706B9A0: mov ecx, dword ptr [ecx + 4] */ 1653 eax = MEM32(ecx); /* 0x4706B9A3: mov eax, dword ptr [ecx] */ 1654 PUSH32(esp, 0); /* 0x4706B9A5: push 0 */ 1655 RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x4706B9A7: call dword ptr [eax + 0x30] */ 1656 RECOMP_FLAGS_IN(); 1657 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B9AA: ret */ 1658 RECOMP_REGS_OUT(); 1659 } 1660 1661 void sub_4706B9B0(void) { 1662 int _fpu_cmp = 0; 1663 uint32_t _cf = 0; 1664 int _df = 1; 1665 uint32_t _flag_k = FK_NONE; 1666 uint32_t _flag_a = 0, _flag_b = 0; 1667 uint32_t _itail_tgt = 0; 1668 RECOMP_REGS_LOCALS 1669 RECOMP_ENTER(0x4706B9B0u); 1670 1671 L_4706B9B0: 1672 ecx = MEM32(ecx + 0x4); /* 0x4706B9B0: mov ecx, dword ptr [ecx + 4] */ 1673 L_4706B9B3: 1674 eax = MEM32(ecx); /* 0x4706B9B3: mov eax, dword ptr [ecx] */ 1675 L_4706B9B5: 1676 { _itail_tgt = (uint32_t)(MEM32(eax + 0xF4)); goto _ljump; } 1677 { RECOMP_REGS_OUT(); return; } /* end of function */ 1678 _ljump: 1679 switch (_itail_tgt) { 1680 case 0x4706B9B0u: goto L_4706B9B0; 1681 case 0x4706B9B3u: goto L_4706B9B3; 1682 case 0x4706B9B5u: goto L_4706B9B5; 1683 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1684 } 1685 RECOMP_REGS_OUT(); 1686 } 1687 1688 void sub_4706B9C0(void) { 1689 int _fpu_cmp = 0; 1690 uint32_t _cf = 0; 1691 int _df = 1; 1692 uint32_t _flag_k = FK_NONE; 1693 uint32_t _flag_a = 0, _flag_b = 0; 1694 uint32_t _itail_tgt = 0; 1695 RECOMP_REGS_LOCALS 1696 RECOMP_ENTER(0x4706B9C0u); 1697 1698 L_4706B9C0: 1699 ecx = 0x4710EBB5u; /* 0x4706B9C0: mov ecx, 0x4710ebb5 */ 1700 RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x4706B9C5: call dword ptr [0x470ac1c8] */ 1701 RECOMP_FLAGS_IN(); 1702 PUSH32(esp, 0x4706B9E0u); /* 0x4706B9CB: push 0x4706b9e0 */ 1703 RECOMP_ICALL(0x470A32D9u); /* 0x4706B9D0: call 0x470a32d9 */ /* not lifted */ 1704 RECOMP_FLAGS_IN(); 1705 ecx = POP32_VAL(esp); /* 0x4706B9D5: pop ecx */ 1706 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B9D6: ret */ 1707 RECOMP_REGS_OUT(); 1708 } 1709 1710 void sub_4706B9E0(void) { 1711 int _fpu_cmp = 0; 1712 uint32_t _cf = 0; 1713 int _df = 1; 1714 uint32_t _flag_k = FK_NONE; 1715 uint32_t _flag_a = 0, _flag_b = 0; 1716 uint32_t _itail_tgt = 0; 1717 RECOMP_REGS_LOCALS 1718 RECOMP_ENTER(0x4706B9E0u); 1719 1720 L_4706B9E0: 1721 ecx = 0x4710EBB5u; /* 0x4706B9E0: mov ecx, 0x4710ebb5 */ 1722 L_4706B9E5: 1723 { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; } 1724 { RECOMP_REGS_OUT(); return; } /* end of function */ 1725 _ljump: 1726 switch (_itail_tgt) { 1727 case 0x4706B9E0u: goto L_4706B9E0; 1728 case 0x4706B9E5u: goto L_4706B9E5; 1729 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1730 } 1731 RECOMP_REGS_OUT(); 1732 } 1733 1734 void sub_4706B9F0(void) { 1735 int _fpu_cmp = 0; 1736 uint32_t _cf = 0; 1737 int _df = 1; 1738 uint32_t _flag_k = FK_NONE; 1739 uint32_t _flag_a = 0, _flag_b = 0; 1740 uint32_t _itail_tgt = 0; 1741 RECOMP_REGS_LOCALS 1742 RECOMP_ENTER(0x4706B9F0u); 1743 1744 L_4706B9F0: 1745 ecx = 0x4710EBB4u; /* 0x4706B9F0: mov ecx, 0x4710ebb4 */ 1746 RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x4706B9F5: call dword ptr [0x470ac1c4] */ 1747 RECOMP_FLAGS_IN(); 1748 PUSH32(esp, 0x4706BA10u); /* 0x4706B9FB: push 0x4706ba10 */ 1749 RECOMP_ICALL(0x470A32D9u); /* 0x4706BA00: call 0x470a32d9 */ /* not lifted */ 1750 RECOMP_FLAGS_IN(); 1751 ecx = POP32_VAL(esp); /* 0x4706BA05: pop ecx */ 1752 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706BA06: ret */ 1753 RECOMP_REGS_OUT(); 1754 } 1755 1756 void sub_4706BA10(void) { 1757 int _fpu_cmp = 0; 1758 uint32_t _cf = 0; 1759 int _df = 1; 1760 uint32_t _flag_k = FK_NONE; 1761 uint32_t _flag_a = 0, _flag_b = 0; 1762 uint32_t _itail_tgt = 0; 1763 RECOMP_REGS_LOCALS 1764 RECOMP_ENTER(0x4706BA10u); 1765 1766 L_4706BA10: 1767 ecx = 0x4710EBB4u; /* 0x4706BA10: mov ecx, 0x4710ebb4 */ 1768 L_4706BA15: 1769 { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; } 1770 { RECOMP_REGS_OUT(); return; } /* end of function */ 1771 _ljump: 1772 switch (_itail_tgt) { 1773 case 0x4706BA10u: goto L_4706BA10; 1774 case 0x4706BA15u: goto L_4706BA15; 1775 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1776 } 1777 RECOMP_REGS_OUT(); 1778 } 1779 1780 void sub_4706BA20(void) { 1781 int _fpu_cmp = 0; 1782 uint32_t _cf = 0; 1783 int _df = 1; 1784 uint32_t _flag_k = FK_NONE; 1785 uint32_t _flag_a = 0, _flag_b = 0; 1786 uint32_t _itail_tgt = 0; 1787 RECOMP_REGS_LOCALS 1788 RECOMP_ENTER(0x4706BA20u); 1789 1790 L_4706BA20: 1791 MEM32(0x4710EBAC) = 0x47104A3Cu; /* 0x4706BA20: mov dword ptr [0x4710ebac], 0x47104a3c */ 1792 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706BA2A: ret */ 1793 RECOMP_REGS_OUT(); 1794 } 1795 1796 void sub_4706BA30(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(0x4706BA30u); 1805 1806 L_4706BA30: 1807 MEM32(0x4710EBBC) = 0x47104A00u; /* 0x4706BA30: mov dword ptr [0x4710ebbc], 0x47104a00 */ 1808 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706BA3A: ret */ 1809 RECOMP_REGS_OUT(); 1810 } 1811 1812 void sub_4706BA40(void) { 1813 int _fpu_cmp = 0; 1814 uint32_t _cf = 0; 1815 int _df = 1; 1816 uint32_t _flag_k = FK_NONE; 1817 uint32_t _flag_a = 0, _flag_b = 0; 1818 uint32_t _itail_tgt = 0; 1819 RECOMP_REGS_LOCALS 1820 RECOMP_ENTER(0x4706BA40u); 1821 1822 L_4706BA40: 1823 MEM32(0x4710EBB8) = 0x47104A70u; /* 0x4706BA40: mov dword ptr [0x4710ebb8], 0x47104a70 */ 1824 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706BA4A: ret */ 1825 RECOMP_REGS_OUT(); 1826 } 1827 1828 void sub_4706BA50(void) { 1829 int _fpu_cmp = 0; 1830 uint32_t _cf = 0; 1831 int _df = 1; 1832 uint32_t _flag_k = FK_NONE; 1833 uint32_t _flag_a = 0, _flag_b = 0; 1834 uint32_t _itail_tgt = 0; 1835 RECOMP_REGS_LOCALS 1836 RECOMP_ENTER(0x4706BA50u); 1837 1838 L_4706BA50: 1839 MEM32(0x4710EBC8) = 0x47104B6Cu; /* 0x4706BA50: mov dword ptr [0x4710ebc8], 0x47104b6c */ 1840 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706BA5A: ret */ 1841 RECOMP_REGS_OUT(); 1842 } 1843 1844 void sub_4706BA60(void) { 1845 int _fpu_cmp = 0; 1846 uint32_t _cf = 0; 1847 int _df = 1; 1848 uint32_t _flag_k = FK_NONE; 1849 uint32_t _flag_a = 0, _flag_b = 0; 1850 uint32_t _itail_tgt = 0; 1851 RECOMP_REGS_LOCALS 1852 RECOMP_ENTER(0x4706BA60u); 1853 1854 L_4706BA60: 1855 MEM32(0x4710EBB0) = 0x47104BA0u; /* 0x4706BA60: mov dword ptr [0x4710ebb0], 0x47104ba0 */ 1856 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706BA6A: ret */ 1857 RECOMP_REGS_OUT(); 1858 } 1859 1860 void sub_4706BA70(void) { 1861 int _fpu_cmp = 0; 1862 uint32_t _cf = 0; 1863 int _df = 1; 1864 uint32_t _flag_k = FK_NONE; 1865 uint32_t _flag_a = 0, _flag_b = 0; 1866 uint32_t _itail_tgt = 0; 1867 RECOMP_REGS_LOCALS 1868 RECOMP_ENTER(0x4706BA70u); 1869 1870 L_4706BA70: 1871 MEM32(0x4710EBC4) = 0x47104BD4u; /* 0x4706BA70: mov dword ptr [0x4710ebc4], 0x47104bd4 */ 1872 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706BA7A: ret */ 1873 RECOMP_REGS_OUT(); 1874 } 1875 1876 void sub_4706BA80(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(0x4706BA80u); 1885 1886 L_4706BA80: 1887 MEM32(0x4710EBC0) = 0x471050FCu; /* 0x4706BA80: mov dword ptr [0x4710ebc0], 0x471050fc */ 1888 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706BA8A: ret */ 1889 RECOMP_REGS_OUT(); 1890 } 1891 1892 void sub_4706BA90(void) { 1893 int _fpu_cmp = 0; 1894 uint32_t _cf = 0; 1895 int _df = 1; 1896 uint32_t _flag_k = FK_NONE; 1897 uint32_t _flag_a = 0, _flag_b = 0; 1898 uint32_t _itail_tgt = 0; 1899 RECOMP_REGS_LOCALS 1900 RECOMP_ENTER(0x4706BA90u); 1901 1902 L_4706BA90: 1903 MEM32(0x4710EBCC) = 0x4710A08Cu; /* 0x4706BA90: mov dword ptr [0x4710ebcc], 0x4710a08c */ 1904 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706BA9A: ret */ 1905 RECOMP_REGS_OUT(); 1906 } 1907 1908 void sub_4706BAA0(void) { 1909 int _fpu_cmp = 0; 1910 uint32_t _cf = 0; 1911 int _df = 1; 1912 uint32_t _flag_k = FK_NONE; 1913 uint32_t _flag_a = 0, _flag_b = 0; 1914 uint32_t _itail_tgt = 0; 1915 RECOMP_REGS_LOCALS 1916 RECOMP_ENTER(0x4706BAA0u); 1917 1918 L_4706BAA0: 1919 PUSH32(esp, ecx); /* 0x4706BAA0: push ecx */ 1920 PUSH32(esp, ebx); /* 0x4706BAA1: push ebx */ 1921 ebx = MEM32(0x470AC150); /* 0x4706BAA2: mov ebx, dword ptr [0x470ac150] */ 1922 PUSH32(esp, ebp); /* 0x4706BAA8: push ebp */ 1923 PUSH32(esp, esi); /* 0x4706BAA9: push esi */ 1924 PUSH32(esp, edi); /* 0x4706BAAA: push edi */ 1925 edi = ecx; /* 0x4706BAAB: mov edi, ecx */ 1926 RECOMP_ICALL(ebx); /* 0x4706BAAD: call ebx */ 1927 RECOMP_FLAGS_IN(); 1928 ebp = MEM32(0x470AC3C8); /* 0x4706BAAF: mov ebp, dword ptr [0x470ac3c8] */ 1929 esi = eax; /* 0x4706BAB5: mov esi, eax */ 1930 RECOMP_ICALL(ebp); /* 0x4706BAB7: call ebp */ 1931 RECOMP_FLAGS_IN(); 1932 eax = MEM32(eax); /* 0x4706BAB9: mov eax, dword ptr [eax] */ 1933 /* test eax, eax */ /* 0x4706BABB: test eax, eax */ 1934 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1935 _cf = 0; 1936 _flag_k = FK_TEST; 1937 MEM32(esp + 0x10) = esi; /* 0x4706BABD: mov dword ptr [esp + 0x10], esi */ 1938 if (TEST_Z(_flag_a, _flag_b)) goto L_4706BAC7; /* 0x4706BAC1: je 0x4706bac7 */ 1939 L_4706BAC3: 1940 MEM32(esp + 0x10) = eax; /* 0x4706BAC3: mov dword ptr [esp + 0x10], eax */ 1941 L_4706BAC7: 1942 RECOMP_ICALL(0x47039020u); /* 0x4706BAC7: call 0x47039020 */ /* not lifted */ 1943 RECOMP_FLAGS_IN(); 1944 esi = eax; /* 0x4706BACC: mov esi, eax */ 1945 ecx = esi; /* 0x4706BACE: mov ecx, esi */ 1946 RECOMP_ICALL(0x4703B210u); /* 0x4706BAD0: call 0x4703b210 */ /* not lifted */ 1947 RECOMP_FLAGS_IN(); 1948 PUSH32(esp, eax); /* 0x4706BAD5: push eax */ 1949 ecx = esi; /* 0x4706BAD6: mov ecx, esi */ 1950 RECOMP_ICALL(0x4703B240u); /* 0x4706BAD8: call 0x4703b240 */ /* not lifted */ 1951 RECOMP_FLAGS_IN(); 1952 PUSH32(esp, eax); /* 0x4706BADD: push eax */ 1953 ecx = esi; /* 0x4706BADE: mov ecx, esi */ 1954 RECOMP_ICALL(0x4703B080u); /* 0x4706BAE0: call 0x4703b080 */ /* not lifted */ 1955 RECOMP_FLAGS_IN(); 1956 PUSH32(esp, eax); /* 0x4706BAE5: push eax */ 1957 eax = MEM32(esp + 0x1C); /* 0x4706BAE6: mov eax, dword ptr [esp + 0x1c] */ 1958 PUSH32(esp, eax); /* 0x4706BAEA: push eax */ 1959 PUSH32(esp, 0); /* 0x4706BAEB: push 0 */ 1960 PUSH32(esp, 0x11u); /* 0x4706BAED: push 0x11 */ 1961 PUSH32(esp, 0x4710A104u); /* 0x4706BAEF: push 0x4710a104 */ 1962 ecx = esi; /* 0x4706BAF4: mov ecx, esi */ 1963 RECOMP_ICALL(0x4703A340u); /* 0x4706BAF6: call 0x4703a340 */ /* not lifted */ 1964 RECOMP_FLAGS_IN(); 1965 PUSH32(esp, edi); /* 0x4706BAFB: push edi */ 1966 PUSH32(esp, 0x471052CCu); /* 0x4706BAFC: push 0x471052cc */ 1967 PUSH32(esp, 4); /* 0x4706BB01: push 4 */ 1968 PUSH32(esp, esi); /* 0x4706BB03: push esi */ 1969 RECOMP_ICALL(0x47039830u); /* 0x4706BB04: call 0x47039830 */ /* not lifted */ 1970 RECOMP_FLAGS_IN(); 1971 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1972 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1973 esp = esp + 0x10u; /* 0x4706BB09: add esp, 0x10 */ 1974 _flag_k = FK_ADD; 1975 RECOMP_ICALL(ebx); /* 0x4706BB0C: call ebx */ 1976 RECOMP_FLAGS_IN(); 1977 esi = eax; /* 0x4706BB0E: mov esi, eax */ 1978 RECOMP_ICALL(ebp); /* 0x4706BB10: call ebp */ 1979 RECOMP_FLAGS_IN(); 1980 eax = MEM32(eax); /* 0x4706BB12: mov eax, dword ptr [eax] */ 1981 /* test eax, eax */ /* 0x4706BB14: test eax, eax */ 1982 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1983 _cf = 0; 1984 _flag_k = FK_TEST; 1985 MEM32(esp + 0x10) = esi; /* 0x4706BB16: mov dword ptr [esp + 0x10], esi */ 1986 if (TEST_Z(_flag_a, _flag_b)) goto L_4706BB20; /* 0x4706BB1A: je 0x4706bb20 */ 1987 L_4706BB1C: 1988 MEM32(esp + 0x10) = eax; /* 0x4706BB1C: mov dword ptr [esp + 0x10], eax */ 1989 L_4706BB20: 1990 RECOMP_ICALL(0x47039020u); /* 0x4706BB20: call 0x47039020 */ /* not lifted */ 1991 RECOMP_FLAGS_IN(); 1992 esi = eax; /* 0x4706BB25: mov esi, eax */ 1993 ecx = esi; /* 0x4706BB27: mov ecx, esi */ 1994 RECOMP_ICALL(0x4703B210u); /* 0x4706BB29: call 0x4703b210 */ /* not lifted */ 1995 RECOMP_FLAGS_IN(); 1996 PUSH32(esp, eax); /* 0x4706BB2E: push eax */ 1997 ecx = esi; /* 0x4706BB2F: mov ecx, esi */ 1998 RECOMP_ICALL(0x4703B240u); /* 0x4706BB31: call 0x4703b240 */ /* not lifted */ 1999 RECOMP_FLAGS_IN(); 2000 PUSH32(esp, eax); /* 0x4706BB36: push eax */ 2001 ecx = esi; /* 0x4706BB37: mov ecx, esi */ 2002 RECOMP_ICALL(0x4703B080u); /* 0x4706BB39: call 0x4703b080 */ /* not lifted */ 2003 RECOMP_FLAGS_IN(); 2004 ecx = MEM32(esp + 0x18); /* 0x4706BB3E: mov ecx, dword ptr [esp + 0x18] */ 2005 PUSH32(esp, eax); /* 0x4706BB42: push eax */ 2006 PUSH32(esp, ecx); /* 0x4706BB43: push ecx */ 2007 PUSH32(esp, 0); /* 0x4706BB44: push 0 */ 2008 PUSH32(esp, 0x12u); /* 0x4706BB46: push 0x12 */ 2009 PUSH32(esp, 0x4710A104u); /* 0x4706BB48: push 0x4710a104 */ 2010 ecx = esi; /* 0x4706BB4D: mov ecx, esi */ 2011 RECOMP_ICALL(0x4703A340u); /* 0x4706BB4F: call 0x4703a340 */ /* not lifted */ 2012 RECOMP_FLAGS_IN(); 2013 edx = MEM32(edi); /* 0x4706BB54: mov edx, dword ptr [edi] */ 2014 PUSH32(esp, edx); /* 0x4706BB56: push edx */ 2015 PUSH32(esp, 0x4710A0F8u); /* 0x4706BB57: push 0x4710a0f8 */ 2016 PUSH32(esp, 4); /* 0x4706BB5C: push 4 */ 2017 PUSH32(esp, esi); /* 0x4706BB5E: push esi */ 2018 RECOMP_ICALL(0x47039830u); /* 0x4706BB5F: call 0x47039830 */ /* not lifted */ 2019 RECOMP_FLAGS_IN(); 2020 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2021 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2022 esp = esp + 0x10u; /* 0x4706BB64: add esp, 0x10 */ 2023 _flag_k = FK_ADD; 2024 RECOMP_ICALL(ebx); /* 0x4706BB67: call ebx */ 2025 RECOMP_FLAGS_IN(); 2026 esi = eax; /* 0x4706BB69: mov esi, eax */ 2027 RECOMP_ICALL(ebp); /* 0x4706BB6B: call ebp */ 2028 RECOMP_FLAGS_IN(); 2029 eax = MEM32(eax); /* 0x4706BB6D: mov eax, dword ptr [eax] */ 2030 /* test eax, eax */ /* 0x4706BB6F: test eax, eax */ 2031 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2032 _cf = 0; 2033 _flag_k = FK_TEST; 2034 MEM32(esp + 0x10) = esi; /* 0x4706BB71: mov dword ptr [esp + 0x10], esi */ 2035 if (TEST_Z(_flag_a, _flag_b)) goto L_4706BB7B; /* 0x4706BB75: je 0x4706bb7b */ 2036 L_4706BB77: 2037 MEM32(esp + 0x10) = eax; /* 0x4706BB77: mov dword ptr [esp + 0x10], eax */ 2038 L_4706BB7B: 2039 RECOMP_ICALL(0x47039020u); /* 0x4706BB7B: call 0x47039020 */ /* not lifted */ 2040 RECOMP_FLAGS_IN(); 2041 esi = eax; /* 0x4706BB80: mov esi, eax */ 2042 ecx = esi; /* 0x4706BB82: mov ecx, esi */ 2043 RECOMP_ICALL(0x4703B210u); /* 0x4706BB84: call 0x4703b210 */ /* not lifted */ 2044 RECOMP_FLAGS_IN(); 2045 PUSH32(esp, eax); /* 0x4706BB89: push eax */ 2046 ecx = esi; /* 0x4706BB8A: mov ecx, esi */ 2047 RECOMP_ICALL(0x4703B240u); /* 0x4706BB8C: call 0x4703b240 */ /* not lifted */ 2048 RECOMP_FLAGS_IN(); 2049 PUSH32(esp, eax); /* 0x4706BB91: push eax */ 2050 ecx = esi; /* 0x4706BB92: mov ecx, esi */ 2051 RECOMP_ICALL(0x4703B080u); /* 0x4706BB94: call 0x4703b080 */ /* not lifted */ 2052 RECOMP_FLAGS_IN(); 2053 PUSH32(esp, eax); /* 0x4706BB99: push eax */ 2054 eax = MEM32(esp + 0x1C); /* 0x4706BB9A: mov eax, dword ptr [esp + 0x1c] */ 2055 PUSH32(esp, eax); /* 0x4706BB9E: push eax */ 2056 PUSH32(esp, 0); /* 0x4706BB9F: push 0 */ 2057 PUSH32(esp, 0x13u); /* 0x4706BBA1: push 0x13 */ 2058 PUSH32(esp, 0x4710A104u); /* 0x4706BBA3: push 0x4710a104 */ 2059 ecx = esi; /* 0x4706BBA8: mov ecx, esi */ 2060 RECOMP_ICALL(0x4703A340u); /* 0x4706BBAA: call 0x4703a340 */ /* not lifted */ 2061 RECOMP_FLAGS_IN(); 2062 ecx = MEM32(edi + 0x4); /* 0x4706BBAF: mov ecx, dword ptr [edi + 4] */ 2063 PUSH32(esp, ecx); /* 0x4706BBB2: push ecx */ 2064 PUSH32(esp, 0x4710A0E4u); /* 0x4706BBB3: push 0x4710a0e4 */ 2065 PUSH32(esp, 4); /* 0x4706BBB8: push 4 */ 2066 PUSH32(esp, esi); /* 0x4706BBBA: push esi */ 2067 RECOMP_ICALL(0x47039830u); /* 0x4706BBBB: call 0x47039830 */ /* not lifted */ 2068 RECOMP_FLAGS_IN(); 2069 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2070 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2071 esp = esp + 0x10u; /* 0x4706BBC0: add esp, 0x10 */ 2072 _flag_k = FK_ADD; 2073 RECOMP_ICALL(ebx); /* 0x4706BBC3: call ebx */ 2074 RECOMP_FLAGS_IN(); 2075 esi = eax; /* 0x4706BBC5: mov esi, eax */ 2076 RECOMP_ICALL(ebp); /* 0x4706BBC7: call ebp */ 2077 RECOMP_FLAGS_IN(); 2078 eax = MEM32(eax); /* 0x4706BBC9: mov eax, dword ptr [eax] */ 2079 /* test eax, eax */ /* 0x4706BBCB: test eax, eax */ 2080 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2081 _cf = 0; 2082 _flag_k = FK_TEST; 2083 MEM32(esp + 0x10) = esi; /* 0x4706BBCD: mov dword ptr [esp + 0x10], esi */ 2084 if (TEST_Z(_flag_a, _flag_b)) goto L_4706BBD7; /* 0x4706BBD1: je 0x4706bbd7 */ 2085 L_4706BBD3: 2086 MEM32(esp + 0x10) = eax; /* 0x4706BBD3: mov dword ptr [esp + 0x10], eax */ 2087 L_4706BBD7: 2088 RECOMP_ICALL(0x47039020u); /* 0x4706BBD7: call 0x47039020 */ /* not lifted */ 2089 RECOMP_FLAGS_IN(); 2090 esi = eax; /* 0x4706BBDC: mov esi, eax */ 2091 ecx = esi; /* 0x4706BBDE: mov ecx, esi */ 2092 RECOMP_ICALL(0x4703B210u); /* 0x4706BBE0: call 0x4703b210 */ /* not lifted */ 2093 RECOMP_FLAGS_IN(); 2094 PUSH32(esp, eax); /* 0x4706BBE5: push eax */ 2095 ecx = esi; /* 0x4706BBE6: mov ecx, esi */ 2096 RECOMP_ICALL(0x4703B240u); /* 0x4706BBE8: call 0x4703b240 */ /* not lifted */ 2097 RECOMP_FLAGS_IN(); 2098 PUSH32(esp, eax); /* 0x4706BBED: push eax */ 2099 ecx = esi; /* 0x4706BBEE: mov ecx, esi */ 2100 RECOMP_ICALL(0x4703B080u); /* 0x4706BBF0: call 0x4703b080 */ /* not lifted */ 2101 RECOMP_FLAGS_IN(); 2102 edx = MEM32(esp + 0x18); /* 0x4706BBF5: mov edx, dword ptr [esp + 0x18] */ 2103 PUSH32(esp, eax); /* 0x4706BBF9: push eax */ 2104 PUSH32(esp, edx); /* 0x4706BBFA: push edx */ 2105 PUSH32(esp, 0); /* 0x4706BBFB: push 0 */ 2106 PUSH32(esp, 0x14u); /* 0x4706BBFD: push 0x14 */ 2107 PUSH32(esp, 0x4710A104u); /* 0x4706BBFF: push 0x4710a104 */ 2108 ecx = esi; /* 0x4706BC04: mov ecx, esi */ 2109 RECOMP_ICALL(0x4703A340u); /* 0x4706BC06: call 0x4703a340 */ /* not lifted */ 2110 RECOMP_FLAGS_IN(); 2111 eax = MEM32(edi + 0x8); /* 0x4706BC0B: mov eax, dword ptr [edi + 8] */ 2112 PUSH32(esp, eax); /* 0x4706BC0E: push eax */ 2113 PUSH32(esp, 0x4710A0D4u); /* 0x4706BC0F: push 0x4710a0d4 */ 2114 PUSH32(esp, 4); /* 0x4706BC14: push 4 */ 2115 PUSH32(esp, esi); /* 0x4706BC16: push esi */ 2116 RECOMP_ICALL(0x47039830u); /* 0x4706BC17: call 0x47039830 */ /* not lifted */ 2117 RECOMP_FLAGS_IN(); 2118 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2119 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2120 esp = esp + 0x10u; /* 0x4706BC1C: add esp, 0x10 */ 2121 _flag_k = FK_ADD; 2122 RECOMP_ICALL(ebx); /* 0x4706BC1F: call ebx */ 2123 RECOMP_FLAGS_IN(); 2124 esi = eax; /* 0x4706BC21: mov esi, eax */ 2125 RECOMP_ICALL(ebp); /* 0x4706BC23: call ebp */ 2126 RECOMP_FLAGS_IN(); 2127 eax = MEM32(eax); /* 0x4706BC25: mov eax, dword ptr [eax] */ 2128 /* test eax, eax */ /* 0x4706BC27: test eax, eax */ 2129 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2130 _cf = 0; 2131 _flag_k = FK_TEST; 2132 MEM32(esp + 0x10) = esi; /* 0x4706BC29: mov dword ptr [esp + 0x10], esi */ 2133 if (TEST_Z(_flag_a, _flag_b)) goto L_4706BC33; /* 0x4706BC2D: je 0x4706bc33 */ 2134 L_4706BC2F: 2135 MEM32(esp + 0x10) = eax; /* 0x4706BC2F: mov dword ptr [esp + 0x10], eax */ 2136 L_4706BC33: 2137 RECOMP_ICALL(0x47039020u); /* 0x4706BC33: call 0x47039020 */ /* not lifted */ 2138 RECOMP_FLAGS_IN(); 2139 esi = eax; /* 0x4706BC38: mov esi, eax */ 2140 ecx = esi; /* 0x4706BC3A: mov ecx, esi */ 2141 RECOMP_ICALL(0x4703B210u); /* 0x4706BC3C: call 0x4703b210 */ /* not lifted */ 2142 RECOMP_FLAGS_IN(); 2143 PUSH32(esp, eax); /* 0x4706BC41: push eax */ 2144 ecx = esi; /* 0x4706BC42: mov ecx, esi */ 2145 RECOMP_ICALL(0x4703B240u); /* 0x4706BC44: call 0x4703b240 */ /* not lifted */ 2146 RECOMP_FLAGS_IN(); 2147 PUSH32(esp, eax); /* 0x4706BC49: push eax */ 2148 ecx = esi; /* 0x4706BC4A: mov ecx, esi */ 2149 RECOMP_ICALL(0x4703B080u); /* 0x4706BC4C: call 0x4703b080 */ /* not lifted */ 2150 RECOMP_FLAGS_IN(); 2151 ecx = MEM32(esp + 0x18); /* 0x4706BC51: mov ecx, dword ptr [esp + 0x18] */ 2152 PUSH32(esp, eax); /* 0x4706BC55: push eax */ 2153 PUSH32(esp, ecx); /* 0x4706BC56: push ecx */ 2154 PUSH32(esp, 0); /* 0x4706BC57: push 0 */ 2155 PUSH32(esp, 0x15u); /* 0x4706BC59: push 0x15 */ 2156 PUSH32(esp, 0x4710A104u); /* 0x4706BC5B: push 0x4710a104 */ 2157 ecx = esi; /* 0x4706BC60: mov ecx, esi */ 2158 RECOMP_ICALL(0x4703A340u); /* 0x4706BC62: call 0x4703a340 */ /* not lifted */ 2159 RECOMP_FLAGS_IN(); 2160 edx = MEM32(edi + 0x10); /* 0x4706BC67: mov edx, dword ptr [edi + 0x10] */ 2161 PUSH32(esp, edx); /* 0x4706BC6A: push edx */ 2162 PUSH32(esp, 0x4710A0C0u); /* 0x4706BC6B: push 0x4710a0c0 */ 2163 PUSH32(esp, 4); /* 0x4706BC70: push 4 */ 2164 PUSH32(esp, esi); /* 0x4706BC72: push esi */ 2165 RECOMP_ICALL(0x47039830u); /* 0x4706BC73: call 0x47039830 */ /* not lifted */ 2166 RECOMP_FLAGS_IN(); 2167 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2168 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2169 esp = esp + 0x10u; /* 0x4706BC78: add esp, 0x10 */ 2170 _flag_k = FK_ADD; 2171 RECOMP_ICALL(ebx); /* 0x4706BC7B: call ebx */ 2172 RECOMP_FLAGS_IN(); 2173 esi = eax; /* 0x4706BC7D: mov esi, eax */ 2174 RECOMP_ICALL(ebp); /* 0x4706BC7F: call ebp */ 2175 RECOMP_FLAGS_IN(); 2176 eax = MEM32(eax); /* 0x4706BC81: mov eax, dword ptr [eax] */ 2177 /* test eax, eax */ /* 0x4706BC83: test eax, eax */ 2178 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2179 _cf = 0; 2180 _flag_k = FK_TEST; 2181 edi = esi; /* 0x4706BC85: mov edi, esi */ 2182 if (TEST_Z(_flag_a, _flag_b)) goto L_4706BC8B; /* 0x4706BC87: je 0x4706bc8b */ 2183 L_4706BC89: 2184 edi = eax; /* 0x4706BC89: mov edi, eax */ 2185 L_4706BC8B: 2186 RECOMP_ICALL(0x47039020u); /* 0x4706BC8B: call 0x47039020 */ /* not lifted */ 2187 RECOMP_FLAGS_IN(); 2188 esi = eax; /* 0x4706BC90: mov esi, eax */ 2189 ecx = esi; /* 0x4706BC92: mov ecx, esi */ 2190 RECOMP_ICALL(0x4703B210u); /* 0x4706BC94: call 0x4703b210 */ /* not lifted */ 2191 RECOMP_FLAGS_IN(); 2192 PUSH32(esp, eax); /* 0x4706BC99: push eax */ 2193 ecx = esi; /* 0x4706BC9A: mov ecx, esi */ 2194 RECOMP_ICALL(0x4703B240u); /* 0x4706BC9C: call 0x4703b240 */ /* not lifted */ 2195 RECOMP_FLAGS_IN(); 2196 PUSH32(esp, eax); /* 0x4706BCA1: push eax */ 2197 ecx = esi; /* 0x4706BCA2: mov ecx, esi */ 2198 RECOMP_ICALL(0x4703B080u); /* 0x4706BCA4: call 0x4703b080 */ /* not lifted */ 2199 RECOMP_FLAGS_IN(); 2200 PUSH32(esp, eax); /* 0x4706BCA9: push eax */ 2201 PUSH32(esp, edi); /* 0x4706BCAA: push edi */ 2202 PUSH32(esp, 0); /* 0x4706BCAB: push 0 */ 2203 PUSH32(esp, 0x16u); /* 0x4706BCAD: push 0x16 */ 2204 PUSH32(esp, 0x4710A104u); /* 0x4706BCAF: push 0x4710a104 */ 2205 ecx = esi; /* 0x4706BCB4: mov ecx, esi */ 2206 RECOMP_ICALL(0x4703A340u); /* 0x4706BCB6: call 0x4703a340 */ /* not lifted */ 2207 RECOMP_FLAGS_IN(); 2208 PUSH32(esp, 0x4710529Cu); /* 0x4706BCBB: push 0x4710529c */ 2209 PUSH32(esp, 4); /* 0x4706BCC0: push 4 */ 2210 PUSH32(esp, esi); /* 0x4706BCC2: push esi */ 2211 RECOMP_ICALL(0x47039830u); /* 0x4706BCC3: call 0x47039830 */ /* not lifted */ 2212 RECOMP_FLAGS_IN(); 2213 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2214 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2215 esp = esp + 0xCu; /* 0x4706BCC8: add esp, 0xc */ 2216 _flag_k = FK_ADD; 2217 edi = POP32_VAL(esp); /* 0x4706BCCB: pop edi */ 2218 esi = POP32_VAL(esp); /* 0x4706BCCC: pop esi */ 2219 ebp = POP32_VAL(esp); /* 0x4706BCCD: pop ebp */ 2220 ebx = POP32_VAL(esp); /* 0x4706BCCE: pop ebx */ 2221 ecx = POP32_VAL(esp); /* 0x4706BCCF: pop ecx */ 2222 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706BCD0: ret */ 2223 RECOMP_REGS_OUT(); 2224 } 2225 2226 void sub_4706BCE0(void) { 2227 int _fpu_cmp = 0; 2228 uint32_t _cf = 0; 2229 int _df = 1; 2230 uint32_t _flag_k = FK_NONE; 2231 uint32_t _flag_a = 0, _flag_b = 0; 2232 uint32_t _itail_tgt = 0; 2233 RECOMP_REGS_LOCALS 2234 RECOMP_ENTER(0x4706BCE0u); 2235 2236 L_4706BCE0: 2237 eax = MEM32(esp + 0x4); /* 0x4706BCE0: mov eax, dword ptr [esp + 4] */ 2238 PUSH32(esp, esi); /* 0x4706BCE4: push esi */ 2239 esi = ecx; /* 0x4706BCE5: mov esi, ecx */ 2240 ecx = MEM32(esp + 0xC); /* 0x4706BCE7: mov ecx, dword ptr [esp + 0xc] */ 2241 MEM32(esi + 0x8) = eax; /* 0x4706BCEB: mov dword ptr [esi + 8], eax */ 2242 eax = MEM32(esp + 0x10); /* 0x4706BCEE: mov eax, dword ptr [esp + 0x10] */ 2243 /* test eax, eax */ /* 0x4706BCF2: test eax, eax */ 2244 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2245 _cf = 0; 2246 _flag_k = FK_TEST; 2247 MEM32(esi + 0xC) = ecx; /* 0x4706BCF4: mov dword ptr [esi + 0xc], ecx */ 2248 MEM32(esi + 0x10) = eax; /* 0x4706BCF7: mov dword ptr [esi + 0x10], eax */ 2249 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706BD04; /* 0x4706BCFA: jne 0x4706bd04 */ 2250 L_4706BCFC: 2251 RECOMP_ICALL(0x4703DAC0u); /* 0x4706BCFC: call 0x4703dac0 */ /* not lifted */ 2252 RECOMP_FLAGS_IN(); 2253 MEM32(esi + 0x10) = eax; /* 0x4706BD01: mov dword ptr [esi + 0x10], eax */ 2254 L_4706BD04: 2255 eax = esi; /* 0x4706BD04: mov eax, esi */ 2256 esi = POP32_VAL(esp); /* 0x4706BD06: pop esi */ 2257 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4706BD07: ret 0xc */ 2258 RECOMP_REGS_OUT(); 2259 } 2260 2261 void sub_4706BD10(void) { 2262 int _fpu_cmp = 0; 2263 uint32_t _cf = 0; 2264 int _df = 1; 2265 uint32_t _flag_k = FK_NONE; 2266 uint32_t _flag_a = 0, _flag_b = 0; 2267 uint32_t _itail_tgt = 0; 2268 RECOMP_REGS_LOCALS 2269 RECOMP_ENTER(0x4706BD10u); 2270 2271 L_4706BD10: 2272 eax = MEM32(esp + 0x4); /* 0x4706BD10: mov eax, dword ptr [esp + 4] */ 2273 PUSH32(esp, ebx); /* 0x4706BD14: push ebx */ 2274 PUSH32(esp, esi); /* 0x4706BD15: push esi */ 2275 PUSH32(esp, edi); /* 0x4706BD16: push edi */ 2276 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2277 edi = 0; /* 0x4706BD17: xor edi, edi */ 2278 _cf = 0; 2279 _flag_k = FK_TEST; 2280 PUSH32(esp, edi); /* 0x4706BD19: push edi */ 2281 PUSH32(esp, eax); /* 0x4706BD1A: push eax */ 2282 esi = ecx; /* 0x4706BD1B: mov esi, ecx */ 2283 RECOMP_ICALL(MEM32(0x470AC258)); /* 0x4706BD1D: call dword ptr [0x470ac258] */ 2284 RECOMP_FLAGS_IN(); 2285 ebx = eax; /* 0x4706BD23: mov ebx, eax */ 2286 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2287 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2288 esp = esp + 8; /* 0x4706BD25: add esp, 8 */ 2289 _flag_k = FK_ADD; 2290 /* cmp ebx, 0xFFFFFFFFu */ /* 0x4706BD28: cmp ebx, -1 */ 2291 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFFu); 2292 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2293 _flag_k = FK_CMP; 2294 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706BD4C; /* 0x4706BD2B: je 0x4706bd4c */ 2295 L_4706BD2D: 2296 PUSH32(esp, 0x47105A44u); /* 0x4706BD2D: push 0x47105a44 */ 2297 PUSH32(esp, ebx); /* 0x4706BD32: push ebx */ 2298 RECOMP_ICALL(MEM32(0x470AC254)); /* 0x4706BD33: call dword ptr [0x470ac254] */ 2299 RECOMP_FLAGS_IN(); 2300 edi = eax; /* 0x4706BD39: mov edi, eax */ 2301 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2302 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2303 esp = esp + 8; /* 0x4706BD3B: add esp, 8 */ 2304 _flag_k = FK_ADD; 2305 /* test edi, edi */ /* 0x4706BD3E: test edi, edi */ 2306 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2307 _cf = 0; 2308 _flag_k = FK_TEST; 2309 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706BD4C; /* 0x4706BD40: jne 0x4706bd4c */ 2310 L_4706BD42: 2311 PUSH32(esp, ebx); /* 0x4706BD42: push ebx */ 2312 RECOMP_ICALL(MEM32(0x470AC250)); /* 0x4706BD43: call dword ptr [0x470ac250] */ 2313 RECOMP_FLAGS_IN(); 2314 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2315 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2316 esp = esp + 4; /* 0x4706BD49: add esp, 4 */ 2317 _flag_k = FK_ADD; 2318 L_4706BD4C: 2319 eax = MEM32(esp + 0x18); /* 0x4706BD4C: mov eax, dword ptr [esp + 0x18] */ 2320 /* test eax, eax */ /* 0x4706BD50: test eax, eax */ 2321 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2322 _cf = 0; 2323 _flag_k = FK_TEST; 2324 ecx = MEM32(esp + 0x14); /* 0x4706BD52: mov ecx, dword ptr [esp + 0x14] */ 2325 MEM32(esi + 0x8) = edi; /* 0x4706BD56: mov dword ptr [esi + 8], edi */ 2326 MEM32(esi + 0xC) = ecx; /* 0x4706BD59: mov dword ptr [esi + 0xc], ecx */ 2327 MEM32(esi + 0x10) = eax; /* 0x4706BD5C: mov dword ptr [esi + 0x10], eax */ 2328 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706BD69; /* 0x4706BD5F: jne 0x4706bd69 */ 2329 L_4706BD61: 2330 RECOMP_ICALL(0x4703DAC0u); /* 0x4706BD61: call 0x4703dac0 */ /* not lifted */ 2331 RECOMP_FLAGS_IN(); 2332 MEM32(esi + 0x10) = eax; /* 0x4706BD66: mov dword ptr [esi + 0x10], eax */ 2333 L_4706BD69: 2334 edi = POP32_VAL(esp); /* 0x4706BD69: pop edi */ 2335 eax = esi; /* 0x4706BD6A: mov eax, esi */ 2336 esi = POP32_VAL(esp); /* 0x4706BD6C: pop esi */ 2337 ebx = POP32_VAL(esp); /* 0x4706BD6D: pop ebx */ 2338 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4706BD6E: ret 0xc */ 2339 RECOMP_REGS_OUT(); 2340 } 2341 2342 void sub_4706BD80(void) { 2343 int _fpu_cmp = 0; 2344 uint32_t _cf = 0; 2345 int _df = 1; 2346 uint32_t _flag_k = FK_NONE; 2347 uint32_t _flag_a = 0, _flag_b = 0; 2348 uint32_t _itail_tgt = 0; 2349 RECOMP_REGS_LOCALS 2350 RECOMP_ENTER(0x4706BD80u); 2351 2352 L_4706BD80: 2353 eax = MEM32(ecx + 0xC); /* 0x4706BD80: mov eax, dword ptr [ecx + 0xc] */ 2354 /* test eax, eax */ /* 0x4706BD83: test eax, eax */ 2355 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2356 _cf = 0; 2357 _flag_k = FK_TEST; 2358 if (TEST_Z(_flag_a, _flag_b)) goto L_4706BD92; /* 0x4706BD85: je 0x4706bd92 */ 2359 L_4706BD87: 2360 eax = MEM32(ecx + 0x8); /* 0x4706BD87: mov eax, dword ptr [ecx + 8] */ 2361 PUSH32(esp, eax); /* 0x4706BD8A: push eax */ 2362 RECOMP_ICALL(MEM32(0x470AC3DC)); /* 0x4706BD8B: call dword ptr [0x470ac3dc] */ 2363 RECOMP_FLAGS_IN(); 2364 ecx = POP32_VAL(esp); /* 0x4706BD91: pop ecx */ 2365 L_4706BD92: 2366 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706BD92: ret */ 2367 RECOMP_REGS_OUT(); 2368 } 2369 2370 void sub_4706BDA0(void) { 2371 int _fpu_cmp = 0; 2372 uint32_t _cf = 0; 2373 int _df = 1; 2374 uint32_t _flag_k = FK_NONE; 2375 uint32_t _flag_a = 0, _flag_b = 0; 2376 uint32_t _itail_tgt = 0; 2377 RECOMP_REGS_LOCALS 2378 RECOMP_ENTER(0x4706BDA0u); 2379 2380 L_4706BDA0: 2381 eax = MEM32(esp + 0xC); /* 0x4706BDA0: mov eax, dword ptr [esp + 0xc] */ 2382 edx = MEM32(esp + 0x8); /* 0x4706BDA4: mov edx, dword ptr [esp + 8] */ 2383 PUSH32(esp, eax); /* 0x4706BDA8: push eax */ 2384 eax = MEM32(esp + 0x8); /* 0x4706BDA9: mov eax, dword ptr [esp + 8] */ 2385 PUSH32(esp, edx); /* 0x4706BDAD: push edx */ 2386 PUSH32(esp, eax); /* 0x4706BDAE: push eax */ 2387 MEM32(ecx + 0x4) = 0; /* 0x4706BDAF: mov dword ptr [ecx + 4], 0 */ 2388 MEM32(ecx) = 0; /* 0x4706BDB6: mov dword ptr [ecx], 0 */ 2389 RECOMP_ICALL(0x4706BDD0u); /* 0x4706BDBC: call 0x4706bdd0 */ /* not lifted */ 2390 RECOMP_FLAGS_IN(); 2391 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4706BDC1: ret 0xc */ 2392 RECOMP_REGS_OUT(); 2393 } 2394 2395 void sub_4706BDD0(void) { 2396 int _fpu_cmp = 0; 2397 uint32_t _cf = 0; 2398 int _df = 1; 2399 uint32_t _flag_k = FK_NONE; 2400 uint32_t _flag_a = 0, _flag_b = 0; 2401 uint32_t _itail_tgt = 0; 2402 RECOMP_REGS_LOCALS 2403 RECOMP_ENTER(0x4706BDD0u); 2404 2405 L_4706BDD0: 2406 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x200u); 2407 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2408 esp = esp - 0x200u; /* 0x4706BDD0: sub esp, 0x200 */ 2409 _flag_k = FK_CMP; 2410 PUSH32(esp, ebx); /* 0x4706BDD6: push ebx */ 2411 PUSH32(esp, ebp); /* 0x4706BDD7: push ebp */ 2412 PUSH32(esp, esi); /* 0x4706BDD8: push esi */ 2413 PUSH32(esp, edi); /* 0x4706BDD9: push edi */ 2414 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2415 edi = 0; /* 0x4706BDDA: xor edi, edi */ 2416 _cf = 0; 2417 _flag_k = FK_TEST; 2418 esi = ecx; /* 0x4706BDDC: mov esi, ecx */ 2419 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2420 ebp = 0; /* 0x4706BDDE: xor ebp, ebp */ 2421 _cf = 0; 2422 _flag_k = FK_TEST; 2423 L_4706BDE0: 2424 eax = MEM32(esi + 0x8); /* 0x4706BDE0: mov eax, dword ptr [esi + 8] */ 2425 PUSH32(esp, eax); /* 0x4706BDE3: push eax */ 2426 RECOMP_ICALL(MEM32(0x470AC350)); /* 0x4706BDE4: call dword ptr [0x470ac350] */ 2427 RECOMP_FLAGS_IN(); 2428 ebx = eax; /* 0x4706BDEA: mov ebx, eax */ 2429 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2430 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2431 esp = esp + 4; /* 0x4706BDEC: add esp, 4 */ 2432 _flag_k = FK_ADD; 2433 /* cmp ebx, 0xFFFFFFFFu */ /* 0x4706BDEF: cmp ebx, -1 */ 2434 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFFu); 2435 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2436 _flag_k = FK_CMP; 2437 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706BE32; /* 0x4706BDF2: je 0x4706be32 */ 2438 L_4706BDF4: 2439 /* cmp ebx, MEM32(esp + 0x214) */ /* 0x4706BDF4: cmp ebx, dword ptr [esp + 0x214] */ 2440 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esp + 0x214)); 2441 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2442 _flag_k = FK_CMP; 2443 if (CMP_NE(_flag_a, _flag_b)) goto L_4706BE02; /* 0x4706BDFB: jne 0x4706be02 */ 2444 L_4706BDFD: 2445 ebp = 1; /* 0x4706BDFD: mov ebp, 1 */ 2446 L_4706BE02: 2447 /* cmp ebx, MEM32(esp + 0x218) */ /* 0x4706BE02: cmp ebx, dword ptr [esp + 0x218] */ 2448 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esp + 0x218)); 2449 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2450 _flag_k = FK_CMP; 2451 if (CMP_NE(_flag_a, _flag_b)) goto L_4706BE1F; /* 0x4706BE09: jne 0x4706be1f */ 2452 L_4706BE0B: 2453 edx = MEM32(esi + 0x4); /* 0x4706BE0B: mov edx, dword ptr [esi + 4] */ 2454 eax = MEM32(esp + 0x21C); /* 0x4706BE0E: mov eax, dword ptr [esp + 0x21c] */ 2455 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 2456 edx = edx + 1; /* 0x4706BE15: inc edx */ 2457 _flag_k = FK_INC; 2458 /* test eax, eax */ /* 0x4706BE16: test eax, eax */ 2459 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2460 _cf = 0; 2461 _flag_k = FK_TEST; 2462 MEM32(esi + 0x4) = edx; /* 0x4706BE18: mov dword ptr [esi + 4], edx */ 2463 if (TEST_S(_flag_a, _flag_b)) goto L_4706BE1F; /* 0x4706BE1B: jl 0x4706be1f */ 2464 L_4706BE1D: 2465 ebx = eax; /* 0x4706BE1D: mov ebx, eax */ 2466 L_4706BE1F: 2467 MEM8(esp + edi + 0x10) = (uint8_t)(LO8(ebx)); /* 0x4706BE1F: mov byte ptr [esp + edi + 0x10], bl */ 2468 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 2469 edi = edi + 1; /* 0x4706BE23: inc edi */ 2470 _flag_k = FK_INC; 2471 /* test ebp, ebp */ /* 0x4706BE24: test ebp, ebp */ 2472 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp); 2473 _cf = 0; 2474 _flag_k = FK_TEST; 2475 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706BE54; /* 0x4706BE26: jne 0x4706be54 */ 2476 L_4706BE28: 2477 /* cmp edi, 0x200u */ /* 0x4706BE28: cmp edi, 0x200 */ 2478 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x200u); 2479 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2480 _flag_k = FK_CMP; 2481 RECOMP_BACKEDGE(); 2482 if (CMP_B(_flag_a, _flag_b)) goto L_4706BDE0; /* 0x4706BE2E: jb 0x4706bde0 */ 2483 L_4706BE30: 2484 goto L_4706BE54; /* 0x4706BE30: jmp 0x4706be54 */ 2485 L_4706BE32: 2486 /* test edi, edi */ /* 0x4706BE32: test edi, edi */ 2487 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2488 _cf = 0; 2489 _flag_k = FK_TEST; 2490 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706BE45; /* 0x4706BE34: jne 0x4706be45 */ 2491 L_4706BE36: 2492 edi = POP32_VAL(esp); /* 0x4706BE36: pop edi */ 2493 esi = POP32_VAL(esp); /* 0x4706BE37: pop esi */ 2494 ebp = POP32_VAL(esp); /* 0x4706BE38: pop ebp */ 2495 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2496 eax = 0; /* 0x4706BE39: xor eax, eax */ 2497 _cf = 0; 2498 _flag_k = FK_TEST; 2499 ebx = POP32_VAL(esp); /* 0x4706BE3B: pop ebx */ 2500 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x200u); 2501 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2502 esp = esp + 0x200u; /* 0x4706BE3C: add esp, 0x200 */ 2503 _flag_k = FK_ADD; 2504 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4706BE42: ret 0xc */ 2505 L_4706BE45: 2506 ecx = MEM32(esi + 0x8); /* 0x4706BE45: mov ecx, dword ptr [esi + 8] */ 2507 PUSH32(esp, ecx); /* 0x4706BE48: push ecx */ 2508 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706BE49: push -1 */ 2509 RECOMP_ICALL(MEM32(0x470AC34C)); /* 0x4706BE4B: call dword ptr [0x470ac34c] */ 2510 RECOMP_FLAGS_IN(); 2511 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2512 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2513 esp = esp + 8; /* 0x4706BE51: add esp, 8 */ 2514 _flag_k = FK_ADD; 2515 L_4706BE54: 2516 edx = MEM32(esi); /* 0x4706BE54: mov edx, dword ptr [esi] */ 2517 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 2518 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2519 edx = edx + edi; /* 0x4706BE56: add edx, edi */ 2520 _flag_k = FK_ADD; 2521 /* test ebp, ebp */ /* 0x4706BE58: test ebp, ebp */ 2522 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp); 2523 _cf = 0; 2524 _flag_k = FK_TEST; 2525 MEM32(esi) = edx; /* 0x4706BE5A: mov dword ptr [esi], edx */ 2526 eax = edx; /* 0x4706BE5C: mov eax, edx */ 2527 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706BE95; /* 0x4706BE5E: jne 0x4706be95 */ 2528 L_4706BE60: 2529 /* cmp ebx, 0xFFFFFFFFu */ /* 0x4706BE60: cmp ebx, -1 */ 2530 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFFu); 2531 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2532 _flag_k = FK_CMP; 2533 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706BE95; /* 0x4706BE63: je 0x4706be95 */ 2534 L_4706BE65: 2535 edx = MEM32(esp + 0x21C); /* 0x4706BE65: mov edx, dword ptr [esp + 0x21c] */ 2536 eax = MEM32(esp + 0x218); /* 0x4706BE6C: mov eax, dword ptr [esp + 0x218] */ 2537 ecx = MEM32(esp + 0x214); /* 0x4706BE73: mov ecx, dword ptr [esp + 0x214] */ 2538 PUSH32(esp, edx); /* 0x4706BE7A: push edx */ 2539 PUSH32(esp, eax); /* 0x4706BE7B: push eax */ 2540 PUSH32(esp, ecx); /* 0x4706BE7C: push ecx */ 2541 ecx = esi; /* 0x4706BE7D: mov ecx, esi */ 2542 RECOMP_ICALL(0x4706BDD0u); /* 0x4706BE7F: call 0x4706bdd0 */ /* not lifted */ 2543 RECOMP_FLAGS_IN(); 2544 /* test eax, eax */ /* 0x4706BE84: test eax, eax */ 2545 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2546 _cf = 0; 2547 _flag_k = FK_TEST; 2548 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706BEC3; /* 0x4706BE86: jne 0x4706bec3 */ 2549 L_4706BE88: 2550 edi = POP32_VAL(esp); /* 0x4706BE88: pop edi */ 2551 esi = POP32_VAL(esp); /* 0x4706BE89: pop esi */ 2552 ebp = POP32_VAL(esp); /* 0x4706BE8A: pop ebp */ 2553 ebx = POP32_VAL(esp); /* 0x4706BE8B: pop ebx */ 2554 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x200u); 2555 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2556 esp = esp + 0x200u; /* 0x4706BE8C: add esp, 0x200 */ 2557 _flag_k = FK_ADD; 2558 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4706BE92: ret 0xc */ 2559 L_4706BE95: 2560 ecx = MEM32(esi + 0x10); /* 0x4706BE95: mov ecx, dword ptr [esi + 0x10] */ 2561 edx = MEM32(ecx); /* 0x4706BE98: mov edx, dword ptr [ecx] */ 2562 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2563 eax = eax + 1; /* 0x4706BE9A: inc eax */ 2564 _flag_k = FK_INC; 2565 PUSH32(esp, eax); /* 0x4706BE9B: push eax */ 2566 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4706BE9C: call dword ptr [edx + 4] */ 2567 RECOMP_FLAGS_IN(); 2568 /* test eax, eax */ /* 0x4706BE9F: test eax, eax */ 2569 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2570 _cf = 0; 2571 _flag_k = FK_TEST; 2572 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706BEBE; /* 0x4706BEA1: jne 0x4706bebe */ 2573 L_4706BEA3: 2574 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706BEA3: call dword ptr [0x470ac3c8] */ 2575 RECOMP_FLAGS_IN(); 2576 edi = POP32_VAL(esp); /* 0x4706BEA9: pop edi */ 2577 esi = POP32_VAL(esp); /* 0x4706BEAA: pop esi */ 2578 ebp = POP32_VAL(esp); /* 0x4706BEAB: pop ebp */ 2579 MEM32(eax) = 0xCu; /* 0x4706BEAC: mov dword ptr [eax], 0xc */ 2580 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2581 eax = 0; /* 0x4706BEB2: xor eax, eax */ 2582 _cf = 0; 2583 _flag_k = FK_TEST; 2584 ebx = POP32_VAL(esp); /* 0x4706BEB4: pop ebx */ 2585 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x200u); 2586 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2587 esp = esp + 0x200u; /* 0x4706BEB5: add esp, 0x200 */ 2588 _flag_k = FK_ADD; 2589 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4706BEBB: ret 0xc */ 2590 L_4706BEBE: 2591 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi)); 2592 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2593 eax = eax + MEM32(esi); /* 0x4706BEBE: add eax, dword ptr [esi] */ 2594 _flag_k = FK_ADD; 2595 MEM8(eax) = (uint8_t)(0); /* 0x4706BEC0: mov byte ptr [eax], 0 */ 2596 L_4706BEC3: 2597 /* test edi, edi */ /* 0x4706BEC3: test edi, edi */ 2598 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2599 _cf = 0; 2600 _flag_k = FK_TEST; 2601 ecx = edi; /* 0x4706BEC5: mov ecx, edi */ 2602 if (TEST_Z(_flag_a, _flag_b)) goto L_4706BED7; /* 0x4706BEC7: jbe 0x4706bed7 */ 2603 L_4706BEC9: 2604 esi = esp + 0x10; /* 0x4706BEC9: lea esi, [esp + 0x10] */ 2605 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 2606 esi = esi - 1; /* 0x4706BECD: dec esi */ 2607 _flag_k = FK_DEC; 2608 L_4706BECE: 2609 SET_LO8(edx, MEM8(esi + ecx)); /* 0x4706BECE: mov dl, byte ptr [esi + ecx] */ 2610 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2611 eax = eax - 1; /* 0x4706BED1: dec eax */ 2612 _flag_k = FK_DEC; 2613 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2614 ecx = ecx - 1; /* 0x4706BED2: dec ecx */ 2615 _flag_k = FK_DEC; 2616 MEM8(eax) = (uint8_t)(LO8(edx)); /* 0x4706BED3: mov byte ptr [eax], dl */ 2617 RECOMP_BACKEDGE(); 2618 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_4706BECE; /* 0x4706BED5: jne 0x4706bece */ 2619 L_4706BED7: 2620 edi = POP32_VAL(esp); /* 0x4706BED7: pop edi */ 2621 esi = POP32_VAL(esp); /* 0x4706BED8: pop esi */ 2622 ebp = POP32_VAL(esp); /* 0x4706BED9: pop ebp */ 2623 ebx = POP32_VAL(esp); /* 0x4706BEDA: pop ebx */ 2624 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x200u); 2625 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2626 esp = esp + 0x200u; /* 0x4706BEDB: add esp, 0x200 */ 2627 _flag_k = FK_ADD; 2628 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4706BEE1: ret 0xc */ 2629 RECOMP_REGS_OUT(); 2630 } 2631 2632 void sub_4706BEF0(void) { 2633 int _fpu_cmp = 0; 2634 uint32_t _cf = 0; 2635 int _df = 1; 2636 uint32_t _flag_k = FK_NONE; 2637 uint32_t _flag_a = 0, _flag_b = 0; 2638 uint32_t _itail_tgt = 0; 2639 RECOMP_REGS_LOCALS 2640 RECOMP_ENTER(0x4706BEF0u); 2641 2642 L_4706BEF0: 2643 ecx = 0x4710EBFEu; /* 0x4706BEF0: mov ecx, 0x4710ebfe */ 2644 RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x4706BEF5: call dword ptr [0x470ac1c8] */ 2645 RECOMP_FLAGS_IN(); 2646 PUSH32(esp, 0x4706BF10u); /* 0x4706BEFB: push 0x4706bf10 */ 2647 RECOMP_ICALL(0x470A32D9u); /* 0x4706BF00: call 0x470a32d9 */ /* not lifted */ 2648 RECOMP_FLAGS_IN(); 2649 ecx = POP32_VAL(esp); /* 0x4706BF05: pop ecx */ 2650 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706BF06: ret */ 2651 RECOMP_REGS_OUT(); 2652 } 2653 2654 void sub_4706BF10(void) { 2655 int _fpu_cmp = 0; 2656 uint32_t _cf = 0; 2657 int _df = 1; 2658 uint32_t _flag_k = FK_NONE; 2659 uint32_t _flag_a = 0, _flag_b = 0; 2660 uint32_t _itail_tgt = 0; 2661 RECOMP_REGS_LOCALS 2662 RECOMP_ENTER(0x4706BF10u); 2663 2664 L_4706BF10: 2665 ecx = 0x4710EBFEu; /* 0x4706BF10: mov ecx, 0x4710ebfe */ 2666 L_4706BF15: 2667 { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; } 2668 { RECOMP_REGS_OUT(); return; } /* end of function */ 2669 _ljump: 2670 switch (_itail_tgt) { 2671 case 0x4706BF10u: goto L_4706BF10; 2672 case 0x4706BF15u: goto L_4706BF15; 2673 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2674 } 2675 RECOMP_REGS_OUT(); 2676 } 2677 2678 void sub_4706BF20(void) { 2679 int _fpu_cmp = 0; 2680 uint32_t _cf = 0; 2681 int _df = 1; 2682 uint32_t _flag_k = FK_NONE; 2683 uint32_t _flag_a = 0, _flag_b = 0; 2684 uint32_t _itail_tgt = 0; 2685 RECOMP_REGS_LOCALS 2686 RECOMP_ENTER(0x4706BF20u); 2687 2688 L_4706BF20: 2689 ecx = 0x4710EBFDu; /* 0x4706BF20: mov ecx, 0x4710ebfd */ 2690 RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x4706BF25: call dword ptr [0x470ac1c4] */ 2691 RECOMP_FLAGS_IN(); 2692 PUSH32(esp, 0x4706BF40u); /* 0x4706BF2B: push 0x4706bf40 */ 2693 RECOMP_ICALL(0x470A32D9u); /* 0x4706BF30: call 0x470a32d9 */ /* not lifted */ 2694 RECOMP_FLAGS_IN(); 2695 ecx = POP32_VAL(esp); /* 0x4706BF35: pop ecx */ 2696 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706BF36: ret */ 2697 RECOMP_REGS_OUT(); 2698 } 2699 2700 void sub_4706BF40(void) { 2701 int _fpu_cmp = 0; 2702 uint32_t _cf = 0; 2703 int _df = 1; 2704 uint32_t _flag_k = FK_NONE; 2705 uint32_t _flag_a = 0, _flag_b = 0; 2706 uint32_t _itail_tgt = 0; 2707 RECOMP_REGS_LOCALS 2708 RECOMP_ENTER(0x4706BF40u); 2709 2710 L_4706BF40: 2711 ecx = 0x4710EBFDu; /* 0x4706BF40: mov ecx, 0x4710ebfd */ 2712 L_4706BF45: 2713 { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; } 2714 { RECOMP_REGS_OUT(); return; } /* end of function */ 2715 _ljump: 2716 switch (_itail_tgt) { 2717 case 0x4706BF40u: goto L_4706BF40; 2718 case 0x4706BF45u: goto L_4706BF45; 2719 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2720 } 2721 RECOMP_REGS_OUT(); 2722 } 2723 2724 void sub_4706BF50(void) { 2725 int _fpu_cmp = 0; 2726 uint32_t _cf = 0; 2727 int _df = 1; 2728 uint32_t _flag_k = FK_NONE; 2729 uint32_t _flag_a = 0, _flag_b = 0; 2730 uint32_t _itail_tgt = 0; 2731 RECOMP_REGS_LOCALS 2732 RECOMP_ENTER(0x4706BF50u); 2733 2734 L_4706BF50: 2735 MEM32(0x4710EBD0) = 0x47104A3Cu; /* 0x4706BF50: mov dword ptr [0x4710ebd0], 0x47104a3c */ 2736 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706BF5A: ret */ 2737 RECOMP_REGS_OUT(); 2738 } 2739 2740 void sub_4706BF60(void) { 2741 int _fpu_cmp = 0; 2742 uint32_t _cf = 0; 2743 int _df = 1; 2744 uint32_t _flag_k = FK_NONE; 2745 uint32_t _flag_a = 0, _flag_b = 0; 2746 uint32_t _itail_tgt = 0; 2747 RECOMP_REGS_LOCALS 2748 RECOMP_ENTER(0x4706BF60u); 2749 2750 L_4706BF60: 2751 MEM32(0x4710EC04) = 0x47104A00u; /* 0x4706BF60: mov dword ptr [0x4710ec04], 0x47104a00 */ 2752 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706BF6A: ret */ 2753 RECOMP_REGS_OUT(); 2754 } 2755 2756 void sub_4706BF70(void) { 2757 int _fpu_cmp = 0; 2758 uint32_t _cf = 0; 2759 int _df = 1; 2760 uint32_t _flag_k = FK_NONE; 2761 uint32_t _flag_a = 0, _flag_b = 0; 2762 uint32_t _itail_tgt = 0; 2763 RECOMP_REGS_LOCALS 2764 RECOMP_ENTER(0x4706BF70u); 2765 2766 L_4706BF70: 2767 MEM32(0x4710EC00) = 0x47104A70u; /* 0x4706BF70: mov dword ptr [0x4710ec00], 0x47104a70 */ 2768 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706BF7A: ret */ 2769 RECOMP_REGS_OUT(); 2770 } 2771 2772 void sub_4706BF80(void) { 2773 int _fpu_cmp = 0; 2774 uint32_t _cf = 0; 2775 int _df = 1; 2776 uint32_t _flag_k = FK_NONE; 2777 uint32_t _flag_a = 0, _flag_b = 0; 2778 uint32_t _itail_tgt = 0; 2779 RECOMP_REGS_LOCALS 2780 RECOMP_ENTER(0x4706BF80u); 2781 2782 L_4706BF80: 2783 MEM32(0x4710EC24) = 0x47104B6Cu; /* 0x4706BF80: mov dword ptr [0x4710ec24], 0x47104b6c */ 2784 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706BF8A: ret */ 2785 RECOMP_REGS_OUT(); 2786 } 2787 2788 void sub_4706BF90(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(0x4706BF90u); 2797 2798 L_4706BF90: 2799 MEM32(0x4710EBE8) = 0x47104BA0u; /* 0x4706BF90: mov dword ptr [0x4710ebe8], 0x47104ba0 */ 2800 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706BF9A: ret */ 2801 RECOMP_REGS_OUT(); 2802 } 2803 2804 void sub_4706BFA0(void) { 2805 int _fpu_cmp = 0; 2806 uint32_t _cf = 0; 2807 int _df = 1; 2808 uint32_t _flag_k = FK_NONE; 2809 uint32_t _flag_a = 0, _flag_b = 0; 2810 uint32_t _itail_tgt = 0; 2811 RECOMP_REGS_LOCALS 2812 RECOMP_ENTER(0x4706BFA0u); 2813 2814 L_4706BFA0: 2815 MEM32(0x4710EC10) = 0x47104BD4u; /* 0x4706BFA0: mov dword ptr [0x4710ec10], 0x47104bd4 */ 2816 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706BFAA: ret */ 2817 RECOMP_REGS_OUT(); 2818 } 2819 2820 void sub_4706BFB0(void) { 2821 int _fpu_cmp = 0; 2822 uint32_t _cf = 0; 2823 int _df = 1; 2824 uint32_t _flag_k = FK_NONE; 2825 uint32_t _flag_a = 0, _flag_b = 0; 2826 uint32_t _itail_tgt = 0; 2827 RECOMP_REGS_LOCALS 2828 RECOMP_ENTER(0x4706BFB0u); 2829 2830 L_4706BFB0: 2831 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706BFB0: push -1 */ 2832 PUSH32(esp, 0x470A89B8u); /* 0x4706BFB2: push 0x470a89b8 */ 2833 eax = MEM32(FS_BASE + (0)); /* 0x4706BFB7: mov eax, dword ptr fs:[0] */ 2834 PUSH32(esp, eax); /* 0x4706BFBD: push eax */ 2835 MEM32(FS_BASE + (0)) = esp; /* 0x4706BFBE: mov dword ptr fs:[0], esp */ 2836 PUSH32(esp, ecx); /* 0x4706BFC5: push ecx */ 2837 PUSH32(esp, esi); /* 0x4706BFC6: push esi */ 2838 esi = ecx; /* 0x4706BFC7: mov esi, ecx */ 2839 PUSH32(esp, edi); /* 0x4706BFC9: push edi */ 2840 MEM32(esp + 0x8) = esi; /* 0x4706BFCA: mov dword ptr [esp + 8], esi */ 2841 RECOMP_ICALL(0x4703DAC0u); /* 0x4706BFCE: call 0x4703dac0 */ /* not lifted */ 2842 RECOMP_FLAGS_IN(); 2843 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2844 edi = 0; /* 0x4706BFD3: xor edi, edi */ 2845 _cf = 0; 2846 _flag_k = FK_TEST; 2847 MEM32(esi) = eax; /* 0x4706BFD5: mov dword ptr [esi], eax */ 2848 MEM32(esi + 0x4) = edi; /* 0x4706BFD7: mov dword ptr [esi + 4], edi */ 2849 MEM32(esi + 0x8) = edi; /* 0x4706BFDA: mov dword ptr [esi + 8], edi */ 2850 MEM32(esi + 0xC) = 0x4710F078u; /* 0x4706BFDD: mov dword ptr [esi + 0xc], 0x4710f078 */ 2851 MEM32(esi + 0x10) = edi; /* 0x4706BFE4: mov dword ptr [esi + 0x10], edi */ 2852 MEM32(esp + 0x14) = edi; /* 0x4706BFE7: mov dword ptr [esp + 0x14], edi */ 2853 RECOMP_ICALL(0x4703DAC0u); /* 0x4706BFEB: call 0x4703dac0 */ /* not lifted */ 2854 RECOMP_FLAGS_IN(); 2855 ecx = MEM32(esp + 0xC); /* 0x4706BFF0: mov ecx, dword ptr [esp + 0xc] */ 2856 MEM32(esi + 0x18) = edi; /* 0x4706BFF4: mov dword ptr [esi + 0x18], edi */ 2857 MEM32(esi + 0x1C) = edi; /* 0x4706BFF7: mov dword ptr [esi + 0x1c], edi */ 2858 MEM32(esi + 0x24) = edi; /* 0x4706BFFA: mov dword ptr [esi + 0x24], edi */ 2859 MEM32(esi + 0x14) = eax; /* 0x4706BFFD: mov dword ptr [esi + 0x14], eax */ 2860 MEM32(esi + 0x20) = 0x4710F078u; /* 0x4706C000: mov dword ptr [esi + 0x20], 0x4710f078 */ 2861 edi = POP32_VAL(esp); /* 0x4706C007: pop edi */ 2862 eax = esi; /* 0x4706C008: mov eax, esi */ 2863 esi = POP32_VAL(esp); /* 0x4706C00A: pop esi */ 2864 MEM32(FS_BASE + (0)) = ecx; /* 0x4706C00B: mov dword ptr fs:[0], ecx */ 2865 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2866 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2867 esp = esp + 0x10u; /* 0x4706C012: add esp, 0x10 */ 2868 _flag_k = FK_ADD; 2869 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706C015: ret */ 2870 RECOMP_REGS_OUT(); 2871 } 2872 2873 void sub_4706C020(void) { 2874 int _fpu_cmp = 0; 2875 uint32_t _cf = 0; 2876 int _df = 1; 2877 uint32_t _flag_k = FK_NONE; 2878 uint32_t _flag_a = 0, _flag_b = 0; 2879 uint32_t _itail_tgt = 0; 2880 RECOMP_REGS_LOCALS 2881 RECOMP_ENTER(0x4706C020u); 2882 2883 L_4706C020: 2884 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706C020: push -1 */ 2885 PUSH32(esp, 0x470A89D8u); /* 0x4706C022: push 0x470a89d8 */ 2886 eax = MEM32(FS_BASE + (0)); /* 0x4706C027: mov eax, dword ptr fs:[0] */ 2887 PUSH32(esp, eax); /* 0x4706C02D: push eax */ 2888 MEM32(FS_BASE + (0)) = esp; /* 0x4706C02E: mov dword ptr fs:[0], esp */ 2889 PUSH32(esp, ecx); /* 0x4706C035: push ecx */ 2890 PUSH32(esp, ebx); /* 0x4706C036: push ebx */ 2891 ebx = MEM32(esp + 0x18); /* 0x4706C037: mov ebx, dword ptr [esp + 0x18] */ 2892 eax = MEM32(ebx); /* 0x4706C03B: mov eax, dword ptr [ebx] */ 2893 PUSH32(esp, ebp); /* 0x4706C03D: push ebp */ 2894 PUSH32(esp, esi); /* 0x4706C03E: push esi */ 2895 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2896 ebp = 0; /* 0x4706C03F: xor ebp, ebp */ 2897 _cf = 0; 2898 _flag_k = FK_TEST; 2899 /* cmp eax, ebp */ /* 0x4706C041: cmp eax, ebp */ 2900 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 2901 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2902 _flag_k = FK_CMP; 2903 esi = ecx; /* 0x4706C043: mov esi, ecx */ 2904 PUSH32(esp, edi); /* 0x4706C045: push edi */ 2905 MEM32(esp + 0x10) = esi; /* 0x4706C046: mov dword ptr [esp + 0x10], esi */ 2906 if (CMP_NE(_flag_a, _flag_b)) goto L_4706C051; /* 0x4706C04A: jne 0x4706c051 */ 2907 L_4706C04C: 2908 RECOMP_ICALL(0x4703DAC0u); /* 0x4706C04C: call 0x4703dac0 */ /* not lifted */ 2909 RECOMP_FLAGS_IN(); 2910 L_4706C051: 2911 MEM32(esi) = eax; /* 0x4706C051: mov dword ptr [esi], eax */ 2912 MEM32(esi + 0x4) = ebp; /* 0x4706C053: mov dword ptr [esi + 4], ebp */ 2913 MEM32(esi + 0x8) = ebp; /* 0x4706C056: mov dword ptr [esi + 8], ebp */ 2914 MEM32(esi + 0xC) = ebp; /* 0x4706C059: mov dword ptr [esi + 0xc], ebp */ 2915 MEM32(esi + 0x10) = ebp; /* 0x4706C05C: mov dword ptr [esi + 0x10], ebp */ 2916 eax = MEM32(ebx + 0x4); /* 0x4706C05F: mov eax, dword ptr [ebx + 4] */ 2917 ecx = MEM32(ebx + 0xC); /* 0x4706C062: mov ecx, dword ptr [ebx + 0xc] */ 2918 PUSH32(esp, 1); /* 0x4706C065: push 1 */ 2919 PUSH32(esp, eax); /* 0x4706C067: push eax */ 2920 PUSH32(esp, ecx); /* 0x4706C068: push ecx */ 2921 ecx = esi; /* 0x4706C069: mov ecx, esi */ 2922 RECOMP_ICALL(0x470802D0u); /* 0x4706C06B: call 0x470802d0 */ /* not lifted */ 2923 RECOMP_FLAGS_IN(); 2924 eax = MEM32(ebx + 0x14); /* 0x4706C070: mov eax, dword ptr [ebx + 0x14] */ 2925 /* cmp eax, ebp */ /* 0x4706C073: cmp eax, ebp */ 2926 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 2927 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2928 _flag_k = FK_CMP; 2929 MEM32(esp + 0x1C) = ebp; /* 0x4706C075: mov dword ptr [esp + 0x1c], ebp */ 2930 edi = esi + 0x14; /* 0x4706C079: lea edi, [esi + 0x14] */ 2931 if (CMP_NE(_flag_a, _flag_b)) goto L_4706C083; /* 0x4706C07C: jne 0x4706c083 */ 2932 L_4706C07E: 2933 RECOMP_ICALL(0x4703DAC0u); /* 0x4706C07E: call 0x4703dac0 */ /* not lifted */ 2934 RECOMP_FLAGS_IN(); 2935 L_4706C083: 2936 MEM32(edi) = eax; /* 0x4706C083: mov dword ptr [edi], eax */ 2937 MEM32(edi + 0x4) = ebp; /* 0x4706C085: mov dword ptr [edi + 4], ebp */ 2938 MEM32(edi + 0x8) = ebp; /* 0x4706C088: mov dword ptr [edi + 8], ebp */ 2939 MEM32(edi + 0xC) = ebp; /* 0x4706C08B: mov dword ptr [edi + 0xc], ebp */ 2940 MEM32(edi + 0x10) = ebp; /* 0x4706C08E: mov dword ptr [edi + 0x10], ebp */ 2941 edx = MEM32(ebx + 0x18); /* 0x4706C091: mov edx, dword ptr [ebx + 0x18] */ 2942 eax = MEM32(ebx + 0x20); /* 0x4706C094: mov eax, dword ptr [ebx + 0x20] */ 2943 PUSH32(esp, 1); /* 0x4706C097: push 1 */ 2944 PUSH32(esp, edx); /* 0x4706C099: push edx */ 2945 PUSH32(esp, eax); /* 0x4706C09A: push eax */ 2946 ecx = edi; /* 0x4706C09B: mov ecx, edi */ 2947 RECOMP_ICALL(0x470802D0u); /* 0x4706C09D: call 0x470802d0 */ /* not lifted */ 2948 RECOMP_FLAGS_IN(); 2949 ecx = MEM32(esp + 0x14); /* 0x4706C0A2: mov ecx, dword ptr [esp + 0x14] */ 2950 edi = POP32_VAL(esp); /* 0x4706C0A6: pop edi */ 2951 eax = esi; /* 0x4706C0A7: mov eax, esi */ 2952 esi = POP32_VAL(esp); /* 0x4706C0A9: pop esi */ 2953 ebp = POP32_VAL(esp); /* 0x4706C0AA: pop ebp */ 2954 ebx = POP32_VAL(esp); /* 0x4706C0AB: pop ebx */ 2955 MEM32(FS_BASE + (0)) = ecx; /* 0x4706C0AC: mov dword ptr fs:[0], ecx */ 2956 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2957 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2958 esp = esp + 0x10u; /* 0x4706C0B3: add esp, 0x10 */ 2959 _flag_k = FK_ADD; 2960 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706C0B6: ret 4 */ 2961 RECOMP_REGS_OUT(); 2962 } 2963 2964 void sub_4706C0C0(void) { 2965 int _fpu_cmp = 0; 2966 uint32_t _cf = 0; 2967 int _df = 1; 2968 uint32_t _flag_k = FK_NONE; 2969 uint32_t _flag_a = 0, _flag_b = 0; 2970 uint32_t _itail_tgt = 0; 2971 RECOMP_REGS_LOCALS 2972 RECOMP_ENTER(0x4706C0C0u); 2973 2974 L_4706C0C0: 2975 PUSH32(esp, esi); /* 0x4706C0C0: push esi */ 2976 PUSH32(esp, edi); /* 0x4706C0C1: push edi */ 2977 edi = MEM32(esp + 0xC); /* 0x4706C0C2: mov edi, dword ptr [esp + 0xc] */ 2978 esi = ecx; /* 0x4706C0C6: mov esi, ecx */ 2979 /* cmp esi, edi */ /* 0x4706C0C8: cmp esi, edi */ 2980 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 2981 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2982 _flag_k = FK_CMP; 2983 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706C0DD; /* 0x4706C0CA: je 0x4706c0dd */ 2984 L_4706C0CC: 2985 eax = MEM32(edi + 0x4); /* 0x4706C0CC: mov eax, dword ptr [edi + 4] */ 2986 ecx = MEM32(edi + 0xC); /* 0x4706C0CF: mov ecx, dword ptr [edi + 0xc] */ 2987 PUSH32(esp, 1); /* 0x4706C0D2: push 1 */ 2988 PUSH32(esp, eax); /* 0x4706C0D4: push eax */ 2989 PUSH32(esp, ecx); /* 0x4706C0D5: push ecx */ 2990 ecx = esi; /* 0x4706C0D6: mov ecx, esi */ 2991 RECOMP_ICALL(0x470802D0u); /* 0x4706C0D8: call 0x470802d0 */ /* not lifted */ 2992 RECOMP_FLAGS_IN(); 2993 L_4706C0DD: 2994 eax = edi + 0x14; /* 0x4706C0DD: lea eax, [edi + 0x14] */ 2995 ecx = esi + 0x14; /* 0x4706C0E0: lea ecx, [esi + 0x14] */ 2996 /* cmp ecx, eax */ /* 0x4706C0E3: cmp ecx, eax */ 2997 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2998 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2999 _flag_k = FK_CMP; 3000 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706C0F6; /* 0x4706C0E5: je 0x4706c0f6 */ 3001 L_4706C0E7: 3002 edx = MEM32(eax + 0x4); /* 0x4706C0E7: mov edx, dword ptr [eax + 4] */ 3003 eax = MEM32(eax + 0xC); /* 0x4706C0EA: mov eax, dword ptr [eax + 0xc] */ 3004 PUSH32(esp, 1); /* 0x4706C0ED: push 1 */ 3005 PUSH32(esp, edx); /* 0x4706C0EF: push edx */ 3006 PUSH32(esp, eax); /* 0x4706C0F0: push eax */ 3007 RECOMP_ICALL(0x470802D0u); /* 0x4706C0F1: call 0x470802d0 */ /* not lifted */ 3008 RECOMP_FLAGS_IN(); 3009 L_4706C0F6: 3010 edi = POP32_VAL(esp); /* 0x4706C0F6: pop edi */ 3011 eax = esi; /* 0x4706C0F7: mov eax, esi */ 3012 esi = POP32_VAL(esp); /* 0x4706C0F9: pop esi */ 3013 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706C0FA: ret 4 */ 3014 RECOMP_REGS_OUT(); 3015 } 3016 3017 void sub_4706C100(void) { 3018 int _fpu_cmp = 0; 3019 uint32_t _cf = 0; 3020 int _df = 1; 3021 uint32_t _flag_k = FK_NONE; 3022 uint32_t _flag_a = 0, _flag_b = 0; 3023 uint32_t _itail_tgt = 0; 3024 RECOMP_REGS_LOCALS 3025 RECOMP_ENTER(0x4706C100u); 3026 3027 L_4706C100: 3028 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706C100: push -1 */ 3029 PUSH32(esp, 0x470A89F8u); /* 0x4706C102: push 0x470a89f8 */ 3030 eax = MEM32(FS_BASE + (0)); /* 0x4706C107: mov eax, dword ptr fs:[0] */ 3031 PUSH32(esp, eax); /* 0x4706C10D: push eax */ 3032 MEM32(FS_BASE + (0)) = esp; /* 0x4706C10E: mov dword ptr fs:[0], esp */ 3033 PUSH32(esp, ecx); /* 0x4706C115: push ecx */ 3034 PUSH32(esp, esi); /* 0x4706C116: push esi */ 3035 esi = ecx; /* 0x4706C117: mov esi, ecx */ 3036 MEM32(esp + 0x4) = esi; /* 0x4706C119: mov dword ptr [esp + 4], esi */ 3037 PUSH32(esp, 0); /* 0x4706C11D: push 0 */ 3038 PUSH32(esp, 0); /* 0x4706C11F: push 0 */ 3039 PUSH32(esp, 0); /* 0x4706C121: push 0 */ 3040 ecx = esi + 0x14; /* 0x4706C123: lea ecx, [esi + 0x14] */ 3041 MEM32(esp + 0x1C) = 0; /* 0x4706C126: mov dword ptr [esp + 0x1c], 0 */ 3042 RECOMP_ICALL(0x470802D0u); /* 0x4706C12E: call 0x470802d0 */ /* not lifted */ 3043 RECOMP_FLAGS_IN(); 3044 PUSH32(esp, 0); /* 0x4706C133: push 0 */ 3045 PUSH32(esp, 0); /* 0x4706C135: push 0 */ 3046 PUSH32(esp, 0); /* 0x4706C137: push 0 */ 3047 ecx = esi; /* 0x4706C139: mov ecx, esi */ 3048 MEM32(esp + 0x1C) = 0xFFFFFFFFu; /* 0x4706C13B: mov dword ptr [esp + 0x1c], 0xffffffff */ 3049 RECOMP_ICALL(0x470802D0u); /* 0x4706C143: call 0x470802d0 */ /* not lifted */ 3050 RECOMP_FLAGS_IN(); 3051 ecx = MEM32(esp + 0x8); /* 0x4706C148: mov ecx, dword ptr [esp + 8] */ 3052 esi = POP32_VAL(esp); /* 0x4706C14C: pop esi */ 3053 MEM32(FS_BASE + (0)) = ecx; /* 0x4706C14D: mov dword ptr fs:[0], ecx */ 3054 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3055 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3056 esp = esp + 0x10u; /* 0x4706C154: add esp, 0x10 */ 3057 _flag_k = FK_ADD; 3058 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706C157: ret */ 3059 RECOMP_REGS_OUT(); 3060 } 3061 3062 void sub_4706C160(void) { 3063 int _fpu_cmp = 0; 3064 uint32_t _cf = 0; 3065 int _df = 1; 3066 uint32_t _flag_k = FK_NONE; 3067 uint32_t _flag_a = 0, _flag_b = 0; 3068 uint32_t _itail_tgt = 0; 3069 RECOMP_REGS_LOCALS 3070 RECOMP_ENTER(0x4706C160u); 3071 3072 L_4706C160: 3073 PUSH32(esp, ebx); /* 0x4706C160: push ebx */ 3074 PUSH32(esp, esi); /* 0x4706C161: push esi */ 3075 PUSH32(esp, edi); /* 0x4706C162: push edi */ 3076 edi = MEM32(esp + 0x10); /* 0x4706C163: mov edi, dword ptr [esp + 0x10] */ 3077 eax = MEM32(edi); /* 0x4706C167: mov eax, dword ptr [edi] */ 3078 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3079 ebx = 0; /* 0x4706C169: xor ebx, ebx */ 3080 _cf = 0; 3081 _flag_k = FK_TEST; 3082 /* cmp eax, ebx */ /* 0x4706C16B: cmp eax, ebx */ 3083 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3084 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3085 _flag_k = FK_CMP; 3086 esi = ecx; /* 0x4706C16D: mov esi, ecx */ 3087 if (CMP_NE(_flag_a, _flag_b)) goto L_4706C176; /* 0x4706C16F: jne 0x4706c176 */ 3088 L_4706C171: 3089 RECOMP_ICALL(0x4703DAC0u); /* 0x4706C171: call 0x4703dac0 */ /* not lifted */ 3090 RECOMP_FLAGS_IN(); 3091 L_4706C176: 3092 MEM32(esi) = eax; /* 0x4706C176: mov dword ptr [esi], eax */ 3093 MEM32(esi + 0x4) = ebx; /* 0x4706C178: mov dword ptr [esi + 4], ebx */ 3094 MEM32(esi + 0x8) = ebx; /* 0x4706C17B: mov dword ptr [esi + 8], ebx */ 3095 MEM32(esi + 0xC) = ebx; /* 0x4706C17E: mov dword ptr [esi + 0xc], ebx */ 3096 MEM32(esi + 0x10) = ebx; /* 0x4706C181: mov dword ptr [esi + 0x10], ebx */ 3097 eax = MEM32(edi + 0x4); /* 0x4706C184: mov eax, dword ptr [edi + 4] */ 3098 ecx = MEM32(edi + 0xC); /* 0x4706C187: mov ecx, dword ptr [edi + 0xc] */ 3099 PUSH32(esp, 1); /* 0x4706C18A: push 1 */ 3100 PUSH32(esp, eax); /* 0x4706C18C: push eax */ 3101 PUSH32(esp, ecx); /* 0x4706C18D: push ecx */ 3102 ecx = esi; /* 0x4706C18E: mov ecx, esi */ 3103 RECOMP_ICALL(0x470802D0u); /* 0x4706C190: call 0x470802d0 */ /* not lifted */ 3104 RECOMP_FLAGS_IN(); 3105 edx = MEM32(edi + 0x14); /* 0x4706C195: mov edx, dword ptr [edi + 0x14] */ 3106 edi = POP32_VAL(esp); /* 0x4706C198: pop edi */ 3107 MEM32(esi + 0x14) = edx; /* 0x4706C199: mov dword ptr [esi + 0x14], edx */ 3108 eax = esi; /* 0x4706C19C: mov eax, esi */ 3109 esi = POP32_VAL(esp); /* 0x4706C19E: pop esi */ 3110 ebx = POP32_VAL(esp); /* 0x4706C19F: pop ebx */ 3111 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706C1A0: ret 4 */ 3112 RECOMP_REGS_OUT(); 3113 } 3114 3115 void sub_4706C1B0(void) { 3116 int _fpu_cmp = 0; 3117 uint32_t _cf = 0; 3118 int _df = 1; 3119 uint32_t _flag_k = FK_NONE; 3120 uint32_t _flag_a = 0, _flag_b = 0; 3121 uint32_t _itail_tgt = 0; 3122 RECOMP_REGS_LOCALS 3123 RECOMP_ENTER(0x4706C1B0u); 3124 3125 L_4706C1B0: 3126 PUSH32(esp, esi); /* 0x4706C1B0: push esi */ 3127 PUSH32(esp, edi); /* 0x4706C1B1: push edi */ 3128 edi = MEM32(esp + 0xC); /* 0x4706C1B2: mov edi, dword ptr [esp + 0xc] */ 3129 esi = ecx; /* 0x4706C1B6: mov esi, ecx */ 3130 /* cmp esi, edi */ /* 0x4706C1B8: cmp esi, edi */ 3131 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 3132 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3133 _flag_k = FK_CMP; 3134 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706C1CD; /* 0x4706C1BA: je 0x4706c1cd */ 3135 L_4706C1BC: 3136 eax = MEM32(edi + 0x4); /* 0x4706C1BC: mov eax, dword ptr [edi + 4] */ 3137 ecx = MEM32(edi + 0xC); /* 0x4706C1BF: mov ecx, dword ptr [edi + 0xc] */ 3138 PUSH32(esp, 1); /* 0x4706C1C2: push 1 */ 3139 PUSH32(esp, eax); /* 0x4706C1C4: push eax */ 3140 PUSH32(esp, ecx); /* 0x4706C1C5: push ecx */ 3141 ecx = esi; /* 0x4706C1C6: mov ecx, esi */ 3142 RECOMP_ICALL(0x470802D0u); /* 0x4706C1C8: call 0x470802d0 */ /* not lifted */ 3143 RECOMP_FLAGS_IN(); 3144 L_4706C1CD: 3145 edx = MEM32(edi + 0x14); /* 0x4706C1CD: mov edx, dword ptr [edi + 0x14] */ 3146 edi = POP32_VAL(esp); /* 0x4706C1D0: pop edi */ 3147 MEM32(esi + 0x14) = edx; /* 0x4706C1D1: mov dword ptr [esi + 0x14], edx */ 3148 eax = esi; /* 0x4706C1D4: mov eax, esi */ 3149 esi = POP32_VAL(esp); /* 0x4706C1D6: pop esi */ 3150 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706C1D7: ret 4 */ 3151 RECOMP_REGS_OUT(); 3152 } 3153 3154 void sub_4706C1E0(void) { 3155 int _fpu_cmp = 0; 3156 uint32_t _cf = 0; 3157 int _df = 1; 3158 uint32_t _flag_k = FK_NONE; 3159 uint32_t _flag_a = 0, _flag_b = 0; 3160 uint32_t _itail_tgt = 0; 3161 RECOMP_REGS_LOCALS 3162 RECOMP_ENTER(0x4706C1E0u); 3163 3164 L_4706C1E0: 3165 eax = ecx; /* 0x4706C1E0: mov eax, ecx */ 3166 ecx = MEM32(esp + 0x4); /* 0x4706C1E2: mov ecx, dword ptr [esp + 4] */ 3167 edx = MEM32(ecx + 0x4); /* 0x4706C1E6: mov edx, dword ptr [ecx + 4] */ 3168 MEM32(eax + 0x4) = edx; /* 0x4706C1E9: mov dword ptr [eax + 4], edx */ 3169 ecx = MEM32(ecx + 0x8); /* 0x4706C1EC: mov ecx, dword ptr [ecx + 8] */ 3170 MEM32(eax + 0x8) = ecx; /* 0x4706C1EF: mov dword ptr [eax + 8], ecx */ 3171 MEM32(eax) = 0x470AEBD8u; /* 0x4706C1F2: mov dword ptr [eax], 0x470aebd8 */ 3172 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706C1F8: ret 4 */ 3173 RECOMP_REGS_OUT(); 3174 } 3175 3176 void sub_4706C200(void) { 3177 int _fpu_cmp = 0; 3178 uint32_t _cf = 0; 3179 int _df = 1; 3180 uint32_t _flag_k = FK_NONE; 3181 uint32_t _flag_a = 0, _flag_b = 0; 3182 uint32_t _itail_tgt = 0; 3183 RECOMP_REGS_LOCALS 3184 RECOMP_ENTER(0x4706C200u); 3185 3186 L_4706C200: 3187 eax = ecx; /* 0x4706C200: mov eax, ecx */ 3188 ecx = MEM32(esp + 0x4); /* 0x4706C202: mov ecx, dword ptr [esp + 4] */ 3189 edx = MEM32(ecx + 0x4); /* 0x4706C206: mov edx, dword ptr [ecx + 4] */ 3190 MEM32(eax + 0x4) = edx; /* 0x4706C209: mov dword ptr [eax + 4], edx */ 3191 ecx = MEM32(ecx + 0x8); /* 0x4706C20C: mov ecx, dword ptr [ecx + 8] */ 3192 MEM32(eax + 0x8) = ecx; /* 0x4706C20F: mov dword ptr [eax + 8], ecx */ 3193 MEM32(eax) = 0x470AEBDCu; /* 0x4706C212: mov dword ptr [eax], 0x470aebdc */ 3194 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706C218: ret 4 */ 3195 RECOMP_REGS_OUT(); 3196 } 3197 3198 void sub_4706C220(void) { 3199 int _fpu_cmp = 0; 3200 uint32_t _cf = 0; 3201 int _df = 1; 3202 uint32_t _flag_k = FK_NONE; 3203 uint32_t _flag_a = 0, _flag_b = 0; 3204 uint32_t _itail_tgt = 0; 3205 RECOMP_REGS_LOCALS 3206 RECOMP_ENTER(0x4706C220u); 3207 3208 L_4706C220: 3209 eax = ecx; /* 0x4706C220: mov eax, ecx */ 3210 ecx = MEM32(esp + 0x4); /* 0x4706C222: mov ecx, dword ptr [esp + 4] */ 3211 edx = MEM32(ecx + 0x4); /* 0x4706C226: mov edx, dword ptr [ecx + 4] */ 3212 MEM32(eax + 0x4) = edx; /* 0x4706C229: mov dword ptr [eax + 4], edx */ 3213 ecx = MEM32(ecx + 0x8); /* 0x4706C22C: mov ecx, dword ptr [ecx + 8] */ 3214 MEM32(eax + 0x8) = ecx; /* 0x4706C22F: mov dword ptr [eax + 8], ecx */ 3215 MEM32(eax) = 0x470AEBE0u; /* 0x4706C232: mov dword ptr [eax], 0x470aebe0 */ 3216 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706C238: ret 4 */ 3217 RECOMP_REGS_OUT(); 3218 } 3219 3220 void sub_4706C240(void) { 3221 int _fpu_cmp = 0; 3222 uint32_t _cf = 0; 3223 int _df = 1; 3224 uint32_t _flag_k = FK_NONE; 3225 uint32_t _flag_a = 0, _flag_b = 0; 3226 uint32_t _itail_tgt = 0; 3227 RECOMP_REGS_LOCALS 3228 RECOMP_ENTER(0x4706C240u); 3229 3230 L_4706C240: 3231 eax = ecx; /* 0x4706C240: mov eax, ecx */ 3232 ecx = MEM32(esp + 0x4); /* 0x4706C242: mov ecx, dword ptr [esp + 4] */ 3233 edx = MEM32(ecx + 0x4); /* 0x4706C246: mov edx, dword ptr [ecx + 4] */ 3234 MEM32(eax + 0x4) = edx; /* 0x4706C249: mov dword ptr [eax + 4], edx */ 3235 ecx = MEM32(ecx + 0x8); /* 0x4706C24C: mov ecx, dword ptr [ecx + 8] */ 3236 MEM32(eax + 0x8) = ecx; /* 0x4706C24F: mov dword ptr [eax + 8], ecx */ 3237 MEM32(eax) = 0x470AEBE4u; /* 0x4706C252: mov dword ptr [eax], 0x470aebe4 */ 3238 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706C258: ret 4 */ 3239 RECOMP_REGS_OUT(); 3240 } 3241 3242 void sub_4706C260(void) { 3243 int _fpu_cmp = 0; 3244 uint32_t _cf = 0; 3245 int _df = 1; 3246 uint32_t _flag_k = FK_NONE; 3247 uint32_t _flag_a = 0, _flag_b = 0; 3248 uint32_t _itail_tgt = 0; 3249 RECOMP_REGS_LOCALS 3250 RECOMP_ENTER(0x4706C260u); 3251 3252 L_4706C260: 3253 eax = ecx; /* 0x4706C260: mov eax, ecx */ 3254 ecx = MEM32(esp + 0x4); /* 0x4706C262: mov ecx, dword ptr [esp + 4] */ 3255 edx = MEM32(ecx); /* 0x4706C266: mov edx, dword ptr [ecx] */ 3256 MEM32(eax) = edx; /* 0x4706C268: mov dword ptr [eax], edx */ 3257 edx = MEM32(ecx + 0x8); /* 0x4706C26A: mov edx, dword ptr [ecx + 8] */ 3258 MEM32(eax + 0x8) = edx; /* 0x4706C26D: mov dword ptr [eax + 8], edx */ 3259 edx = MEM32(ecx + 0xC); /* 0x4706C270: mov edx, dword ptr [ecx + 0xc] */ 3260 MEM32(eax + 0xC) = edx; /* 0x4706C273: mov dword ptr [eax + 0xc], edx */ 3261 MEM32(eax + 0x4) = 0x470AEBDCu; /* 0x4706C276: mov dword ptr [eax + 4], 0x470aebdc */ 3262 edx = MEM32(ecx + 0x14); /* 0x4706C27D: mov edx, dword ptr [ecx + 0x14] */ 3263 MEM32(eax + 0x14) = edx; /* 0x4706C280: mov dword ptr [eax + 0x14], edx */ 3264 edx = MEM32(ecx + 0x18); /* 0x4706C283: mov edx, dword ptr [ecx + 0x18] */ 3265 MEM32(eax + 0x18) = edx; /* 0x4706C286: mov dword ptr [eax + 0x18], edx */ 3266 MEM32(eax + 0x10) = 0x470AEBE0u; /* 0x4706C289: mov dword ptr [eax + 0x10], 0x470aebe0 */ 3267 edx = MEM32(ecx + 0x20); /* 0x4706C290: mov edx, dword ptr [ecx + 0x20] */ 3268 MEM32(eax + 0x20) = edx; /* 0x4706C293: mov dword ptr [eax + 0x20], edx */ 3269 edx = MEM32(ecx + 0x24); /* 0x4706C296: mov edx, dword ptr [ecx + 0x24] */ 3270 MEM32(eax + 0x24) = edx; /* 0x4706C299: mov dword ptr [eax + 0x24], edx */ 3271 MEM32(eax + 0x1C) = 0x470AEBE4u; /* 0x4706C29C: mov dword ptr [eax + 0x1c], 0x470aebe4 */ 3272 ecx = MEM32(ecx + 0x28); /* 0x4706C2A3: mov ecx, dword ptr [ecx + 0x28] */ 3273 MEM32(eax + 0x28) = ecx; /* 0x4706C2A6: mov dword ptr [eax + 0x28], ecx */ 3274 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706C2A9: ret 4 */ 3275 RECOMP_REGS_OUT(); 3276 } 3277 3278 void sub_4706C2B0(void) { 3279 int _fpu_cmp = 0; 3280 uint32_t _cf = 0; 3281 int _df = 1; 3282 uint32_t _flag_k = FK_NONE; 3283 uint32_t _flag_a = 0, _flag_b = 0; 3284 uint32_t _itail_tgt = 0; 3285 RECOMP_REGS_LOCALS 3286 RECOMP_ENTER(0x4706C2B0u); 3287 3288 L_4706C2B0: 3289 eax = ecx; /* 0x4706C2B0: mov eax, ecx */ 3290 ecx = MEM32(esp + 0x4); /* 0x4706C2B2: mov ecx, dword ptr [esp + 4] */ 3291 edx = MEM32(ecx); /* 0x4706C2B6: mov edx, dword ptr [ecx] */ 3292 MEM32(eax) = edx; /* 0x4706C2B8: mov dword ptr [eax], edx */ 3293 edx = MEM32(ecx + 0x8); /* 0x4706C2BA: mov edx, dword ptr [ecx + 8] */ 3294 MEM32(eax + 0x8) = edx; /* 0x4706C2BD: mov dword ptr [eax + 8], edx */ 3295 edx = MEM32(ecx + 0xC); /* 0x4706C2C0: mov edx, dword ptr [ecx + 0xc] */ 3296 MEM32(eax + 0xC) = edx; /* 0x4706C2C3: mov dword ptr [eax + 0xc], edx */ 3297 edx = MEM32(ecx + 0x14); /* 0x4706C2C6: mov edx, dword ptr [ecx + 0x14] */ 3298 MEM32(eax + 0x14) = edx; /* 0x4706C2C9: mov dword ptr [eax + 0x14], edx */ 3299 edx = MEM32(ecx + 0x18); /* 0x4706C2CC: mov edx, dword ptr [ecx + 0x18] */ 3300 MEM32(eax + 0x18) = edx; /* 0x4706C2CF: mov dword ptr [eax + 0x18], edx */ 3301 edx = MEM32(ecx + 0x20); /* 0x4706C2D2: mov edx, dword ptr [ecx + 0x20] */ 3302 MEM32(eax + 0x20) = edx; /* 0x4706C2D5: mov dword ptr [eax + 0x20], edx */ 3303 edx = MEM32(ecx + 0x24); /* 0x4706C2D8: mov edx, dword ptr [ecx + 0x24] */ 3304 MEM32(eax + 0x24) = edx; /* 0x4706C2DB: mov dword ptr [eax + 0x24], edx */ 3305 ecx = MEM32(ecx + 0x28); /* 0x4706C2DE: mov ecx, dword ptr [ecx + 0x28] */ 3306 MEM32(eax + 0x28) = ecx; /* 0x4706C2E1: mov dword ptr [eax + 0x28], ecx */ 3307 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706C2E4: ret 4 */ 3308 RECOMP_REGS_OUT(); 3309 } 3310 3311 void sub_4706C2F0(void) { 3312 int _fpu_cmp = 0; 3313 uint32_t _cf = 0; 3314 int _df = 1; 3315 uint32_t _flag_k = FK_NONE; 3316 uint32_t _flag_a = 0, _flag_b = 0; 3317 uint32_t _itail_tgt = 0; 3318 RECOMP_REGS_LOCALS 3319 RECOMP_ENTER(0x4706C2F0u); 3320 3321 L_4706C2F0: 3322 MEM32(0x4710EC0C) = 0x4710A144u; /* 0x4706C2F0: mov dword ptr [0x4710ec0c], 0x4710a144 */ 3323 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706C2FA: ret */ 3324 RECOMP_REGS_OUT(); 3325 } 3326 3327 void sub_4706C300(void) { 3328 int _fpu_cmp = 0; 3329 uint32_t _cf = 0; 3330 int _df = 1; 3331 uint32_t _flag_k = FK_NONE; 3332 uint32_t _flag_a = 0, _flag_b = 0; 3333 uint32_t _itail_tgt = 0; 3334 RECOMP_REGS_LOCALS 3335 RECOMP_ENTER(0x4706C300u); 3336 3337 L_4706C300: 3338 PUSH32(esp, ebx); /* 0x4706C300: push ebx */ 3339 PUSH32(esp, esi); /* 0x4706C301: push esi */ 3340 PUSH32(esp, edi); /* 0x4706C302: push edi */ 3341 edi = MEM32(esp + 0x10); /* 0x4706C303: mov edi, dword ptr [esp + 0x10] */ 3342 edx = MEM32(edi + 0x4); /* 0x4706C307: mov edx, dword ptr [edi + 4] */ 3343 esi = ecx; /* 0x4706C30A: mov esi, ecx */ 3344 /* cmp edx, MEM32(esi + 0x4) */ /* 0x4706C30C: cmp edx, dword ptr [esi + 4] */ 3345 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3346 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3347 _flag_k = FK_CMP; 3348 if (CMP_NE(_flag_a, _flag_b)) goto L_4706C34E; /* 0x4706C30F: jne 0x4706c34e */ 3349 L_4706C311: 3350 eax = MEM32(esi + 0xC); /* 0x4706C311: mov eax, dword ptr [esi + 0xc] */ 3351 ecx = MEM32(edi + 0xC); /* 0x4706C314: mov ecx, dword ptr [edi + 0xc] */ 3352 ebx = MEM32(0x470AC228); /* 0x4706C317: mov ebx, dword ptr [0x470ac228] */ 3353 PUSH32(esp, edx); /* 0x4706C31D: push edx */ 3354 PUSH32(esp, eax); /* 0x4706C31E: push eax */ 3355 PUSH32(esp, ecx); /* 0x4706C31F: push ecx */ 3356 RECOMP_ICALL(ebx); /* 0x4706C320: call ebx */ 3357 RECOMP_FLAGS_IN(); 3358 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3359 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3360 esp = esp + 0xCu; /* 0x4706C322: add esp, 0xc */ 3361 _flag_k = FK_ADD; 3362 /* test eax, eax */ /* 0x4706C325: test eax, eax */ 3363 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3364 _cf = 0; 3365 _flag_k = FK_TEST; 3366 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706C34E; /* 0x4706C327: jne 0x4706c34e */ 3367 L_4706C329: 3368 eax = MEM32(edi + 0x18); /* 0x4706C329: mov eax, dword ptr [edi + 0x18] */ 3369 /* cmp eax, MEM32(esi + 0x18) */ /* 0x4706C32C: cmp eax, dword ptr [esi + 0x18] */ 3370 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x18)); 3371 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3372 _flag_k = FK_CMP; 3373 if (CMP_NE(_flag_a, _flag_b)) goto L_4706C34E; /* 0x4706C32F: jne 0x4706c34e */ 3374 L_4706C331: 3375 esi = MEM32(esi + 0x20); /* 0x4706C331: mov esi, dword ptr [esi + 0x20] */ 3376 edi = MEM32(edi + 0x20); /* 0x4706C334: mov edi, dword ptr [edi + 0x20] */ 3377 PUSH32(esp, eax); /* 0x4706C337: push eax */ 3378 PUSH32(esp, esi); /* 0x4706C338: push esi */ 3379 PUSH32(esp, edi); /* 0x4706C339: push edi */ 3380 RECOMP_ICALL(ebx); /* 0x4706C33A: call ebx */ 3381 RECOMP_FLAGS_IN(); 3382 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3383 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3384 esp = esp + 0xCu; /* 0x4706C33C: add esp, 0xc */ 3385 _flag_k = FK_ADD; 3386 /* test eax, eax */ /* 0x4706C33F: test eax, eax */ 3387 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3388 _cf = 0; 3389 _flag_k = FK_TEST; 3390 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706C34E; /* 0x4706C341: jne 0x4706c34e */ 3391 L_4706C343: 3392 edi = POP32_VAL(esp); /* 0x4706C343: pop edi */ 3393 esi = POP32_VAL(esp); /* 0x4706C344: pop esi */ 3394 eax = 1; /* 0x4706C345: mov eax, 1 */ 3395 ebx = POP32_VAL(esp); /* 0x4706C34A: pop ebx */ 3396 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706C34B: ret 4 */ 3397 L_4706C34E: 3398 edi = POP32_VAL(esp); /* 0x4706C34E: pop edi */ 3399 esi = POP32_VAL(esp); /* 0x4706C34F: pop esi */ 3400 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3401 eax = 0; /* 0x4706C350: xor eax, eax */ 3402 _cf = 0; 3403 _flag_k = FK_TEST; 3404 ebx = POP32_VAL(esp); /* 0x4706C352: pop ebx */ 3405 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706C353: ret 4 */ 3406 RECOMP_REGS_OUT(); 3407 } 3408 3409 void sub_4706C360(void) { 3410 int _fpu_cmp = 0; 3411 uint32_t _cf = 0; 3412 int _df = 1; 3413 uint32_t _flag_k = FK_NONE; 3414 uint32_t _flag_a = 0, _flag_b = 0; 3415 uint32_t _itail_tgt = 0; 3416 RECOMP_REGS_LOCALS 3417 RECOMP_ENTER(0x4706C360u); 3418 3419 L_4706C360: 3420 PUSH32(esp, ebx); /* 0x4706C360: push ebx */ 3421 PUSH32(esp, esi); /* 0x4706C361: push esi */ 3422 PUSH32(esp, edi); /* 0x4706C362: push edi */ 3423 edi = MEM32(esp + 0x10); /* 0x4706C363: mov edi, dword ptr [esp + 0x10] */ 3424 eax = MEM32(edi + 0x4); /* 0x4706C367: mov eax, dword ptr [edi + 4] */ 3425 esi = ecx; /* 0x4706C36A: mov esi, ecx */ 3426 /* cmp eax, MEM32(esi + 0x4) */ /* 0x4706C36C: cmp eax, dword ptr [esi + 4] */ 3427 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3428 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3429 _flag_k = FK_CMP; 3430 if (CMP_NE(_flag_a, _flag_b)) goto L_4706C3B7; /* 0x4706C36F: jne 0x4706c3b7 */ 3431 L_4706C371: 3432 ecx = MEM32(esi + 0xC); /* 0x4706C371: mov ecx, dword ptr [esi + 0xc] */ 3433 edx = MEM32(edi + 0xC); /* 0x4706C374: mov edx, dword ptr [edi + 0xc] */ 3434 ebx = MEM32(0x470AC228); /* 0x4706C377: mov ebx, dword ptr [0x470ac228] */ 3435 PUSH32(esp, eax); /* 0x4706C37D: push eax */ 3436 PUSH32(esp, ecx); /* 0x4706C37E: push ecx */ 3437 PUSH32(esp, edx); /* 0x4706C37F: push edx */ 3438 RECOMP_ICALL(ebx); /* 0x4706C380: call ebx */ 3439 RECOMP_FLAGS_IN(); 3440 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3441 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3442 esp = esp + 0xCu; /* 0x4706C382: add esp, 0xc */ 3443 _flag_k = FK_ADD; 3444 /* test eax, eax */ /* 0x4706C385: test eax, eax */ 3445 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3446 _cf = 0; 3447 _flag_k = FK_TEST; 3448 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706C3B7; /* 0x4706C387: jne 0x4706c3b7 */ 3449 L_4706C389: 3450 eax = MEM32(edi + 0x18); /* 0x4706C389: mov eax, dword ptr [edi + 0x18] */ 3451 /* cmp eax, MEM32(esi + 0x18) */ /* 0x4706C38C: cmp eax, dword ptr [esi + 0x18] */ 3452 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x18)); 3453 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3454 _flag_k = FK_CMP; 3455 if (CMP_NE(_flag_a, _flag_b)) goto L_4706C3B7; /* 0x4706C38F: jne 0x4706c3b7 */ 3456 L_4706C391: 3457 esi = MEM32(esi + 0x20); /* 0x4706C391: mov esi, dword ptr [esi + 0x20] */ 3458 edi = MEM32(edi + 0x20); /* 0x4706C394: mov edi, dword ptr [edi + 0x20] */ 3459 PUSH32(esp, eax); /* 0x4706C397: push eax */ 3460 PUSH32(esp, esi); /* 0x4706C398: push esi */ 3461 PUSH32(esp, edi); /* 0x4706C399: push edi */ 3462 RECOMP_ICALL(ebx); /* 0x4706C39A: call ebx */ 3463 RECOMP_FLAGS_IN(); 3464 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3465 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3466 esp = esp + 0xCu; /* 0x4706C39C: add esp, 0xc */ 3467 _flag_k = FK_ADD; 3468 /* test eax, eax */ /* 0x4706C39F: test eax, eax */ 3469 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3470 _cf = 0; 3471 _flag_k = FK_TEST; 3472 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706C3B7; /* 0x4706C3A1: jne 0x4706c3b7 */ 3473 L_4706C3A3: 3474 eax = 1; /* 0x4706C3A3: mov eax, 1 */ 3475 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3476 ecx = 0; /* 0x4706C3A8: xor ecx, ecx */ 3477 _cf = 0; 3478 _flag_k = FK_TEST; 3479 /* test eax, eax */ /* 0x4706C3AA: test eax, eax */ 3480 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3481 _cf = 0; 3482 _flag_k = FK_TEST; 3483 SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x4706C3AC: sete cl */ 3484 edi = POP32_VAL(esp); /* 0x4706C3AF: pop edi */ 3485 esi = POP32_VAL(esp); /* 0x4706C3B0: pop esi */ 3486 ebx = POP32_VAL(esp); /* 0x4706C3B1: pop ebx */ 3487 eax = ecx; /* 0x4706C3B2: mov eax, ecx */ 3488 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706C3B4: ret 4 */ 3489 L_4706C3B7: 3490 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3491 eax = 0; /* 0x4706C3B7: xor eax, eax */ 3492 _cf = 0; 3493 _flag_k = FK_TEST; 3494 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3495 ecx = 0; /* 0x4706C3B9: xor ecx, ecx */ 3496 _cf = 0; 3497 _flag_k = FK_TEST; 3498 /* test eax, eax */ /* 0x4706C3BB: test eax, eax */ 3499 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3500 _cf = 0; 3501 _flag_k = FK_TEST; 3502 SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x4706C3BD: sete cl */ 3503 edi = POP32_VAL(esp); /* 0x4706C3C0: pop edi */ 3504 esi = POP32_VAL(esp); /* 0x4706C3C1: pop esi */ 3505 ebx = POP32_VAL(esp); /* 0x4706C3C2: pop ebx */ 3506 eax = ecx; /* 0x4706C3C3: mov eax, ecx */ 3507 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706C3C5: ret 4 */ 3508 RECOMP_REGS_OUT(); 3509 } 3510 3511 void sub_4706C3D0(void) { 3512 int _fpu_cmp = 0; 3513 uint32_t _cf = 0; 3514 int _df = 1; 3515 uint32_t _flag_k = FK_NONE; 3516 uint32_t _flag_a = 0, _flag_b = 0; 3517 uint32_t _itail_tgt = 0; 3518 RECOMP_REGS_LOCALS 3519 RECOMP_ENTER(0x4706C3D0u); 3520 3521 L_4706C3D0: 3522 PUSH32(esp, esi); /* 0x4706C3D0: push esi */ 3523 esi = ecx; /* 0x4706C3D1: mov esi, ecx */ 3524 RECOMP_ICALL(0x4703DAC0u); /* 0x4706C3D3: call 0x4703dac0 */ /* not lifted */ 3525 RECOMP_FLAGS_IN(); 3526 MEM32(esi) = eax; /* 0x4706C3D8: mov dword ptr [esi], eax */ 3527 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3528 eax = 0; /* 0x4706C3DA: xor eax, eax */ 3529 _cf = 0; 3530 _flag_k = FK_TEST; 3531 MEM32(esi + 0x4) = eax; /* 0x4706C3DC: mov dword ptr [esi + 4], eax */ 3532 MEM32(esi + 0x8) = eax; /* 0x4706C3DF: mov dword ptr [esi + 8], eax */ 3533 MEM32(esi + 0x10) = eax; /* 0x4706C3E2: mov dword ptr [esi + 0x10], eax */ 3534 MEM32(esi + 0x14) = eax; /* 0x4706C3E5: mov dword ptr [esi + 0x14], eax */ 3535 MEM32(esi + 0xC) = 0x4710F078u; /* 0x4706C3E8: mov dword ptr [esi + 0xc], 0x4710f078 */ 3536 eax = esi; /* 0x4706C3EF: mov eax, esi */ 3537 esi = POP32_VAL(esp); /* 0x4706C3F1: pop esi */ 3538 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706C3F2: ret */ 3539 RECOMP_REGS_OUT(); 3540 } 3541 3542 void sub_4706C400(void) { 3543 int _fpu_cmp = 0; 3544 uint32_t _cf = 0; 3545 int _df = 1; 3546 uint32_t _flag_k = FK_NONE; 3547 uint32_t _flag_a = 0, _flag_b = 0; 3548 uint32_t _itail_tgt = 0; 3549 RECOMP_REGS_LOCALS 3550 RECOMP_ENTER(0x4706C400u); 3551 3552 L_4706C400: 3553 eax = MEM32(esp + 0x4); /* 0x4706C400: mov eax, dword ptr [esp + 4] */ 3554 PUSH32(esp, esi); /* 0x4706C404: push esi */ 3555 esi = ecx; /* 0x4706C405: mov esi, ecx */ 3556 PUSH32(esp, eax); /* 0x4706C407: push eax */ 3557 PUSH32(esp, esi); /* 0x4706C408: push esi */ 3558 RECOMP_ICALL(0x4706D3C0u); /* 0x4706C409: call 0x4706d3c0 */ /* not lifted */ 3559 RECOMP_FLAGS_IN(); 3560 ecx = MEM32(esp + 0x14); /* 0x4706C40E: mov ecx, dword ptr [esp + 0x14] */ 3561 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3562 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3563 esp = esp + 8; /* 0x4706C412: add esp, 8 */ 3564 _flag_k = FK_ADD; 3565 MEM32(esi + 0x14) = ecx; /* 0x4706C415: mov dword ptr [esi + 0x14], ecx */ 3566 eax = esi; /* 0x4706C418: mov eax, esi */ 3567 esi = POP32_VAL(esp); /* 0x4706C41A: pop esi */ 3568 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4706C41B: ret 8 */ 3569 RECOMP_REGS_OUT(); 3570 } 3571 3572 void sub_4706C420(void) { 3573 int _fpu_cmp = 0; 3574 uint32_t _cf = 0; 3575 int _df = 1; 3576 uint32_t _flag_k = FK_NONE; 3577 uint32_t _flag_a = 0, _flag_b = 0; 3578 uint32_t _itail_tgt = 0; 3579 RECOMP_REGS_LOCALS 3580 RECOMP_ENTER(0x4706C420u); 3581 3582 L_4706C420: 3583 PUSH32(esp, ebx); /* 0x4706C420: push ebx */ 3584 PUSH32(esp, esi); /* 0x4706C421: push esi */ 3585 PUSH32(esp, edi); /* 0x4706C422: push edi */ 3586 edi = MEM32(esp + 0x10); /* 0x4706C423: mov edi, dword ptr [esp + 0x10] */ 3587 eax = MEM32(edi); /* 0x4706C427: mov eax, dword ptr [edi] */ 3588 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3589 ebx = 0; /* 0x4706C429: xor ebx, ebx */ 3590 _cf = 0; 3591 _flag_k = FK_TEST; 3592 /* cmp eax, ebx */ /* 0x4706C42B: cmp eax, ebx */ 3593 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3594 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3595 _flag_k = FK_CMP; 3596 esi = ecx; /* 0x4706C42D: mov esi, ecx */ 3597 if (CMP_NE(_flag_a, _flag_b)) goto L_4706C436; /* 0x4706C42F: jne 0x4706c436 */ 3598 L_4706C431: 3599 RECOMP_ICALL(0x4703DAC0u); /* 0x4706C431: call 0x4703dac0 */ /* not lifted */ 3600 RECOMP_FLAGS_IN(); 3601 L_4706C436: 3602 MEM32(esi) = eax; /* 0x4706C436: mov dword ptr [esi], eax */ 3603 MEM32(esi + 0x4) = ebx; /* 0x4706C438: mov dword ptr [esi + 4], ebx */ 3604 MEM32(esi + 0x8) = ebx; /* 0x4706C43B: mov dword ptr [esi + 8], ebx */ 3605 MEM32(esi + 0xC) = ebx; /* 0x4706C43E: mov dword ptr [esi + 0xc], ebx */ 3606 MEM32(esi + 0x10) = ebx; /* 0x4706C441: mov dword ptr [esi + 0x10], ebx */ 3607 eax = MEM32(edi + 0x4); /* 0x4706C444: mov eax, dword ptr [edi + 4] */ 3608 ecx = MEM32(edi + 0xC); /* 0x4706C447: mov ecx, dword ptr [edi + 0xc] */ 3609 PUSH32(esp, 1); /* 0x4706C44A: push 1 */ 3610 PUSH32(esp, eax); /* 0x4706C44C: push eax */ 3611 PUSH32(esp, ecx); /* 0x4706C44D: push ecx */ 3612 ecx = esi; /* 0x4706C44E: mov ecx, esi */ 3613 RECOMP_ICALL(0x470802D0u); /* 0x4706C450: call 0x470802d0 */ /* not lifted */ 3614 RECOMP_FLAGS_IN(); 3615 edx = MEM32(esp + 0x14); /* 0x4706C455: mov edx, dword ptr [esp + 0x14] */ 3616 edi = POP32_VAL(esp); /* 0x4706C459: pop edi */ 3617 MEM32(esi + 0x14) = edx; /* 0x4706C45A: mov dword ptr [esi + 0x14], edx */ 3618 eax = esi; /* 0x4706C45D: mov eax, esi */ 3619 esi = POP32_VAL(esp); /* 0x4706C45F: pop esi */ 3620 ebx = POP32_VAL(esp); /* 0x4706C460: pop ebx */ 3621 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4706C461: ret 8 */ 3622 RECOMP_REGS_OUT(); 3623 } 3624 3625 void sub_4706C470(void) { 3626 int _fpu_cmp = 0; 3627 uint32_t _cf = 0; 3628 int _df = 1; 3629 uint32_t _flag_k = FK_NONE; 3630 uint32_t _flag_a = 0, _flag_b = 0; 3631 uint32_t _itail_tgt = 0; 3632 RECOMP_REGS_LOCALS 3633 RECOMP_ENTER(0x4706C470u); 3634 3635 L_4706C470: 3636 PUSH32(esp, esi); /* 0x4706C470: push esi */ 3637 PUSH32(esp, edi); /* 0x4706C471: push edi */ 3638 edi = MEM32(esp + 0xC); /* 0x4706C472: mov edi, dword ptr [esp + 0xc] */ 3639 eax = MEM32(edi + 0x4); /* 0x4706C476: mov eax, dword ptr [edi + 4] */ 3640 esi = ecx; /* 0x4706C479: mov esi, ecx */ 3641 /* cmp eax, MEM32(esi + 0x4) */ /* 0x4706C47B: cmp eax, dword ptr [esi + 4] */ 3642 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3643 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3644 _flag_k = FK_CMP; 3645 if (CMP_NE(_flag_a, _flag_b)) goto L_4706C4A8; /* 0x4706C47E: jne 0x4706c4a8 */ 3646 L_4706C480: 3647 ecx = MEM32(esi + 0xC); /* 0x4706C480: mov ecx, dword ptr [esi + 0xc] */ 3648 edx = MEM32(edi + 0xC); /* 0x4706C483: mov edx, dword ptr [edi + 0xc] */ 3649 PUSH32(esp, eax); /* 0x4706C486: push eax */ 3650 PUSH32(esp, ecx); /* 0x4706C487: push ecx */ 3651 PUSH32(esp, edx); /* 0x4706C488: push edx */ 3652 RECOMP_ICALL(MEM32(0x470AC228)); /* 0x4706C489: call dword ptr [0x470ac228] */ 3653 RECOMP_FLAGS_IN(); 3654 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3655 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3656 esp = esp + 0xCu; /* 0x4706C48F: add esp, 0xc */ 3657 _flag_k = FK_ADD; 3658 /* test eax, eax */ /* 0x4706C492: test eax, eax */ 3659 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3660 _cf = 0; 3661 _flag_k = FK_TEST; 3662 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706C4A8; /* 0x4706C494: jne 0x4706c4a8 */ 3663 L_4706C496: 3664 eax = MEM32(edi + 0x14); /* 0x4706C496: mov eax, dword ptr [edi + 0x14] */ 3665 /* cmp eax, MEM32(esi + 0x14) */ /* 0x4706C499: cmp eax, dword ptr [esi + 0x14] */ 3666 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x14)); 3667 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3668 _flag_k = FK_CMP; 3669 if (CMP_NE(_flag_a, _flag_b)) goto L_4706C4A8; /* 0x4706C49C: jne 0x4706c4a8 */ 3670 L_4706C49E: 3671 edi = POP32_VAL(esp); /* 0x4706C49E: pop edi */ 3672 eax = 1; /* 0x4706C49F: mov eax, 1 */ 3673 esi = POP32_VAL(esp); /* 0x4706C4A4: pop esi */ 3674 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706C4A5: ret 4 */ 3675 L_4706C4A8: 3676 edi = POP32_VAL(esp); /* 0x4706C4A8: pop edi */ 3677 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3678 eax = 0; /* 0x4706C4A9: xor eax, eax */ 3679 _cf = 0; 3680 _flag_k = FK_TEST; 3681 esi = POP32_VAL(esp); /* 0x4706C4AB: pop esi */ 3682 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706C4AC: ret 4 */ 3683 RECOMP_REGS_OUT(); 3684 } 3685 3686 void sub_4706C4B0(void) { 3687 int _fpu_cmp = 0; 3688 uint32_t _cf = 0; 3689 int _df = 1; 3690 uint32_t _flag_k = FK_NONE; 3691 uint32_t _flag_a = 0, _flag_b = 0; 3692 uint32_t _itail_tgt = 0; 3693 RECOMP_REGS_LOCALS 3694 RECOMP_ENTER(0x4706C4B0u); 3695 3696 L_4706C4B0: 3697 PUSH32(esp, esi); /* 0x4706C4B0: push esi */ 3698 PUSH32(esp, edi); /* 0x4706C4B1: push edi */ 3699 edi = MEM32(esp + 0xC); /* 0x4706C4B2: mov edi, dword ptr [esp + 0xc] */ 3700 eax = MEM32(edi + 0x4); /* 0x4706C4B6: mov eax, dword ptr [edi + 4] */ 3701 esi = ecx; /* 0x4706C4B9: mov esi, ecx */ 3702 /* cmp eax, MEM32(esi + 0x4) */ /* 0x4706C4BB: cmp eax, dword ptr [esi + 4] */ 3703 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3704 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3705 _flag_k = FK_CMP; 3706 if (CMP_NE(_flag_a, _flag_b)) goto L_4706C4F1; /* 0x4706C4BE: jne 0x4706c4f1 */ 3707 L_4706C4C0: 3708 ecx = MEM32(esi + 0xC); /* 0x4706C4C0: mov ecx, dword ptr [esi + 0xc] */ 3709 edx = MEM32(edi + 0xC); /* 0x4706C4C3: mov edx, dword ptr [edi + 0xc] */ 3710 PUSH32(esp, eax); /* 0x4706C4C6: push eax */ 3711 PUSH32(esp, ecx); /* 0x4706C4C7: push ecx */ 3712 PUSH32(esp, edx); /* 0x4706C4C8: push edx */ 3713 RECOMP_ICALL(MEM32(0x470AC228)); /* 0x4706C4C9: call dword ptr [0x470ac228] */ 3714 RECOMP_FLAGS_IN(); 3715 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3716 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3717 esp = esp + 0xCu; /* 0x4706C4CF: add esp, 0xc */ 3718 _flag_k = FK_ADD; 3719 /* test eax, eax */ /* 0x4706C4D2: test eax, eax */ 3720 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3721 _cf = 0; 3722 _flag_k = FK_TEST; 3723 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706C4F1; /* 0x4706C4D4: jne 0x4706c4f1 */ 3724 L_4706C4D6: 3725 eax = MEM32(edi + 0x14); /* 0x4706C4D6: mov eax, dword ptr [edi + 0x14] */ 3726 /* cmp eax, MEM32(esi + 0x14) */ /* 0x4706C4D9: cmp eax, dword ptr [esi + 0x14] */ 3727 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x14)); 3728 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3729 _flag_k = FK_CMP; 3730 if (CMP_NE(_flag_a, _flag_b)) goto L_4706C4F1; /* 0x4706C4DC: jne 0x4706c4f1 */ 3731 L_4706C4DE: 3732 eax = 1; /* 0x4706C4DE: mov eax, 1 */ 3733 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3734 ecx = 0; /* 0x4706C4E3: xor ecx, ecx */ 3735 _cf = 0; 3736 _flag_k = FK_TEST; 3737 /* test eax, eax */ /* 0x4706C4E5: test eax, eax */ 3738 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3739 _cf = 0; 3740 _flag_k = FK_TEST; 3741 SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x4706C4E7: sete cl */ 3742 edi = POP32_VAL(esp); /* 0x4706C4EA: pop edi */ 3743 esi = POP32_VAL(esp); /* 0x4706C4EB: pop esi */ 3744 eax = ecx; /* 0x4706C4EC: mov eax, ecx */ 3745 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706C4EE: ret 4 */ 3746 L_4706C4F1: 3747 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3748 eax = 0; /* 0x4706C4F1: xor eax, eax */ 3749 _cf = 0; 3750 _flag_k = FK_TEST; 3751 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3752 ecx = 0; /* 0x4706C4F3: xor ecx, ecx */ 3753 _cf = 0; 3754 _flag_k = FK_TEST; 3755 /* test eax, eax */ /* 0x4706C4F5: test eax, eax */ 3756 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3757 _cf = 0; 3758 _flag_k = FK_TEST; 3759 SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x4706C4F7: sete cl */ 3760 edi = POP32_VAL(esp); /* 0x4706C4FA: pop edi */ 3761 esi = POP32_VAL(esp); /* 0x4706C4FB: pop esi */ 3762 eax = ecx; /* 0x4706C4FC: mov eax, ecx */ 3763 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706C4FE: ret 4 */ 3764 RECOMP_REGS_OUT(); 3765 } 3766 3767 void sub_4706C510(void) { 3768 int _fpu_cmp = 0; 3769 uint32_t _cf = 0; 3770 int _df = 1; 3771 uint32_t _flag_k = FK_NONE; 3772 uint32_t _flag_a = 0, _flag_b = 0; 3773 uint32_t _itail_tgt = 0; 3774 RECOMP_REGS_LOCALS 3775 RECOMP_ENTER(0x4706C510u); 3776 3777 L_4706C510: 3778 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706C510: push -1 */ 3779 PUSH32(esp, 0x470A8A41u); /* 0x4706C512: push 0x470a8a41 */ 3780 eax = MEM32(FS_BASE + (0)); /* 0x4706C517: mov eax, dword ptr fs:[0] */ 3781 PUSH32(esp, eax); /* 0x4706C51D: push eax */ 3782 MEM32(FS_BASE + (0)) = esp; /* 0x4706C51E: mov dword ptr fs:[0], esp */ 3783 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3784 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3785 esp = esp - 0x14u; /* 0x4706C525: sub esp, 0x14 */ 3786 _flag_k = FK_CMP; 3787 PUSH32(esp, ebx); /* 0x4706C528: push ebx */ 3788 PUSH32(esp, ebp); /* 0x4706C529: push ebp */ 3789 PUSH32(esp, esi); /* 0x4706C52A: push esi */ 3790 PUSH32(esp, edi); /* 0x4706C52B: push edi */ 3791 PUSH32(esp, ecx); /* 0x4706C52C: push ecx */ 3792 eax = esp + 0x1C; /* 0x4706C52D: lea eax, [esp + 0x1c] */ 3793 PUSH32(esp, eax); /* 0x4706C531: push eax */ 3794 RECOMP_ICALL(0x4706D580u); /* 0x4706C532: call 0x4706d580 */ /* not lifted */ 3795 RECOMP_FLAGS_IN(); 3796 ecx = eax; /* 0x4706C537: mov ecx, eax */ 3797 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3798 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3799 esp = esp + 8; /* 0x4706C539: add esp, 8 */ 3800 _flag_k = FK_ADD; 3801 MEM32(esp + 0x10) = ecx; /* 0x4706C53C: mov dword ptr [esp + 0x10], ecx */ 3802 esi = MEM32(esp + 0x34); /* 0x4706C540: mov esi, dword ptr [esp + 0x34] */ 3803 /* cmp esi, ecx */ /* 0x4706C544: cmp esi, ecx */ 3804 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 3805 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3806 _flag_k = FK_CMP; 3807 MEM32(esp + 0x2C) = 0; /* 0x4706C546: mov dword ptr [esp + 0x2c], 0 */ 3808 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706C611; /* 0x4706C54E: je 0x4706c611 */ 3809 L_4706C554: 3810 eax = MEM32(esi); /* 0x4706C554: mov eax, dword ptr [esi] */ 3811 ebx = MEM32(eax); /* 0x4706C556: mov ebx, dword ptr [eax] */ 3812 /* cmp ebx, eax */ /* 0x4706C558: cmp ebx, eax */ 3813 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 3814 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3815 _flag_k = FK_CMP; 3816 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706C5AA; /* 0x4706C55A: je 0x4706c5aa */ 3817 L_4706C55C: 3818 ebp = ebx; /* 0x4706C55C: mov ebp, ebx */ 3819 /* test ebp, ebp */ /* 0x4706C55E: test ebp, ebp */ 3820 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp); 3821 _cf = 0; 3822 _flag_k = FK_TEST; 3823 ebx = MEM32(ebx); /* 0x4706C560: mov ebx, dword ptr [ebx] */ 3824 if (TEST_Z(_flag_a, _flag_b)) goto L_4706C599; /* 0x4706C562: je 0x4706c599 */ 3825 L_4706C564: 3826 edi = ebp + 0x4; /* 0x4706C564: lea edi, [ebp + 4] */ 3827 MEM32(esp + 0x34) = edi; /* 0x4706C567: mov dword ptr [esp + 0x34], edi */ 3828 PUSH32(esp, 0); /* 0x4706C56B: push 0 */ 3829 PUSH32(esp, 0); /* 0x4706C56D: push 0 */ 3830 PUSH32(esp, 0); /* 0x4706C56F: push 0 */ 3831 ecx = edi + 0x14; /* 0x4706C571: lea ecx, [edi + 0x14] */ 3832 MEM8(esp + 0x38) = (uint8_t)(1); /* 0x4706C574: mov byte ptr [esp + 0x38], 1 */ 3833 RECOMP_ICALL(0x470802D0u); /* 0x4706C579: call 0x470802d0 */ /* not lifted */ 3834 RECOMP_FLAGS_IN(); 3835 PUSH32(esp, 0); /* 0x4706C57E: push 0 */ 3836 PUSH32(esp, 0); /* 0x4706C580: push 0 */ 3837 PUSH32(esp, 0); /* 0x4706C582: push 0 */ 3838 ecx = edi; /* 0x4706C584: mov ecx, edi */ 3839 MEM8(esp + 0x38) = (uint8_t)(0); /* 0x4706C586: mov byte ptr [esp + 0x38], 0 */ 3840 RECOMP_ICALL(0x470802D0u); /* 0x4706C58B: call 0x470802d0 */ /* not lifted */ 3841 RECOMP_FLAGS_IN(); 3842 ecx = MEM32(esi + 0x8); /* 0x4706C590: mov ecx, dword ptr [esi + 8] */ 3843 edx = MEM32(ecx); /* 0x4706C593: mov edx, dword ptr [ecx] */ 3844 PUSH32(esp, ebp); /* 0x4706C595: push ebp */ 3845 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4706C596: call dword ptr [edx + 0xc] */ 3846 RECOMP_FLAGS_IN(); 3847 L_4706C599: 3848 ecx = MEM32(esi + 0x4); /* 0x4706C599: mov ecx, dword ptr [esi + 4] */ 3849 eax = MEM32(esi); /* 0x4706C59C: mov eax, dword ptr [esi] */ 3850 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3851 ecx = ecx - 1; /* 0x4706C59E: dec ecx */ 3852 _flag_k = FK_DEC; 3853 /* cmp ebx, eax */ /* 0x4706C59F: cmp ebx, eax */ 3854 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 3855 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3856 _flag_k = FK_CMP; 3857 MEM32(esi + 0x4) = ecx; /* 0x4706C5A1: mov dword ptr [esi + 4], ecx */ 3858 RECOMP_BACKEDGE(); 3859 if (CMP_NE(_flag_a, _flag_b)) goto L_4706C55C; /* 0x4706C5A4: jne 0x4706c55c */ 3860 L_4706C5A6: 3861 ecx = MEM32(esp + 0x10); /* 0x4706C5A6: mov ecx, dword ptr [esp + 0x10] */ 3862 L_4706C5AA: 3863 eax = MEM32(esi); /* 0x4706C5AA: mov eax, dword ptr [esi] */ 3864 MEM32(eax) = eax; /* 0x4706C5AC: mov dword ptr [eax], eax */ 3865 eax = MEM32(ecx); /* 0x4706C5AE: mov eax, dword ptr [ecx] */ 3866 ebp = MEM32(eax); /* 0x4706C5B0: mov ebp, dword ptr [eax] */ 3867 /* cmp ebp, eax */ /* 0x4706C5B2: cmp ebp, eax */ 3868 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(eax); 3869 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3870 _flag_k = FK_CMP; 3871 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706C611; /* 0x4706C5B4: je 0x4706c611 */ 3872 L_4706C5B6: 3873 SET_LO8(ebx, 2); /* 0x4706C5B6: mov bl, 2 */ 3874 L_4706C5B8: 3875 ecx = MEM32(esi); /* 0x4706C5B8: mov ecx, dword ptr [esi] */ 3876 eax = ebp + 0x4; /* 0x4706C5BA: lea eax, [ebp + 4] */ 3877 PUSH32(esp, eax); /* 0x4706C5BD: push eax */ 3878 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 3879 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3880 ecx = ecx + 4; /* 0x4706C5BE: add ecx, 4 */ 3881 _flag_k = FK_ADD; 3882 RECOMP_ICALL(0x4706C0C0u); /* 0x4706C5C1: call 0x4706c0c0 */ /* not lifted */ 3883 RECOMP_FLAGS_IN(); 3884 ecx = MEM32(esi + 0x8); /* 0x4706C5C6: mov ecx, dword ptr [esi + 8] */ 3885 edx = MEM32(ecx); /* 0x4706C5C9: mov edx, dword ptr [ecx] */ 3886 PUSH32(esp, 0x2Cu); /* 0x4706C5CB: push 0x2c */ 3887 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4706C5CD: call dword ptr [edx + 4] */ 3888 RECOMP_FLAGS_IN(); 3889 edi = eax; /* 0x4706C5D0: mov edi, eax */ 3890 /* test edi, edi */ /* 0x4706C5D2: test edi, edi */ 3891 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3892 _cf = 0; 3893 _flag_k = FK_TEST; 3894 MEM32(esp + 0x34) = edi; /* 0x4706C5D4: mov dword ptr [esp + 0x34], edi */ 3895 if (TEST_Z(_flag_a, _flag_b)) goto L_4706C6CE; /* 0x4706C5D8: je 0x4706c6ce */ 3896 L_4706C5DE: 3897 MEM32(esp + 0x14) = edi; /* 0x4706C5DE: mov dword ptr [esp + 0x14], edi */ 3898 eax = MEM32(esi); /* 0x4706C5E2: mov eax, dword ptr [esi] */ 3899 ecx = MEM32(eax); /* 0x4706C5E4: mov ecx, dword ptr [eax] */ 3900 PUSH32(esp, 0); /* 0x4706C5E6: push 0 */ 3901 PUSH32(esp, ecx); /* 0x4706C5E8: push ecx */ 3902 ecx = edi; /* 0x4706C5E9: mov ecx, edi */ 3903 MEM8(esp + 0x34) = (uint8_t)(LO8(ebx)); /* 0x4706C5EB: mov byte ptr [esp + 0x34], bl */ 3904 RECOMP_ICALL(0x4706ED90u); /* 0x4706C5EF: call 0x4706ed90 */ /* not lifted */ 3905 RECOMP_FLAGS_IN(); 3906 edx = MEM32(esi); /* 0x4706C5F4: mov edx, dword ptr [esi] */ 3907 MEM32(edx) = edi; /* 0x4706C5F6: mov dword ptr [edx], edi */ 3908 eax = MEM32(esi + 0x4); /* 0x4706C5F8: mov eax, dword ptr [esi + 4] */ 3909 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3910 eax = eax + 1; /* 0x4706C5FB: inc eax */ 3911 _flag_k = FK_INC; 3912 MEM8(esp + 0x2C) = (uint8_t)(0); /* 0x4706C5FC: mov byte ptr [esp + 0x2c], 0 */ 3913 MEM32(esi) = edi; /* 0x4706C601: mov dword ptr [esi], edi */ 3914 MEM32(esi + 0x4) = eax; /* 0x4706C603: mov dword ptr [esi + 4], eax */ 3915 L_4706C606: 3916 eax = MEM32(esp + 0x10); /* 0x4706C606: mov eax, dword ptr [esp + 0x10] */ 3917 ebp = MEM32(ebp); /* 0x4706C60A: mov ebp, dword ptr [ebp] */ 3918 /* cmp ebp, MEM32(eax) */ /* 0x4706C60D: cmp ebp, dword ptr [eax] */ 3919 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(MEM32(eax)); 3920 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3921 _flag_k = FK_CMP; 3922 RECOMP_BACKEDGE(); 3923 if (CMP_NE(_flag_a, _flag_b)) goto L_4706C5B8; /* 0x4706C60F: jne 0x4706c5b8 */ 3924 L_4706C611: 3925 eax = MEM32(esp + 0x18); /* 0x4706C611: mov eax, dword ptr [esp + 0x18] */ 3926 ebx = MEM32(eax); /* 0x4706C615: mov ebx, dword ptr [eax] */ 3927 _flag_a = (uint32_t)((ebp | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebp | 0xFFFFFFFFu)); 3928 ebp = ebp | 0xFFFFFFFFu; /* 0x4706C617: or ebp, 0xffffffff */ 3929 _cf = 0; 3930 _flag_k = FK_TEST; 3931 /* cmp ebx, eax */ /* 0x4706C61A: cmp ebx, eax */ 3932 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 3933 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3934 _flag_k = FK_CMP; 3935 MEM32(esp + 0x2C) = ebp; /* 0x4706C61C: mov dword ptr [esp + 0x2c], ebp */ 3936 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706C673; /* 0x4706C620: je 0x4706c673 */ 3937 L_4706C622: 3938 edi = ebx; /* 0x4706C622: mov edi, ebx */ 3939 /* test edi, edi */ /* 0x4706C624: test edi, edi */ 3940 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3941 _cf = 0; 3942 _flag_k = FK_TEST; 3943 ebx = MEM32(ebx); /* 0x4706C626: mov ebx, dword ptr [ebx] */ 3944 if (TEST_Z(_flag_a, _flag_b)) goto L_4706C666; /* 0x4706C628: je 0x4706c666 */ 3945 L_4706C62A: 3946 esi = edi + 0x4; /* 0x4706C62A: lea esi, [edi + 4] */ 3947 MEM32(esp + 0x34) = esi; /* 0x4706C62D: mov dword ptr [esp + 0x34], esi */ 3948 PUSH32(esp, 0); /* 0x4706C631: push 0 */ 3949 PUSH32(esp, 0); /* 0x4706C633: push 0 */ 3950 PUSH32(esp, 0); /* 0x4706C635: push 0 */ 3951 ecx = esi + 0x14; /* 0x4706C637: lea ecx, [esi + 0x14] */ 3952 MEM32(esp + 0x38) = 3; /* 0x4706C63A: mov dword ptr [esp + 0x38], 3 */ 3953 RECOMP_ICALL(0x470802D0u); /* 0x4706C642: call 0x470802d0 */ /* not lifted */ 3954 RECOMP_FLAGS_IN(); 3955 PUSH32(esp, 0); /* 0x4706C647: push 0 */ 3956 PUSH32(esp, 0); /* 0x4706C649: push 0 */ 3957 PUSH32(esp, 0); /* 0x4706C64B: push 0 */ 3958 ecx = esi; /* 0x4706C64D: mov ecx, esi */ 3959 MEM32(esp + 0x38) = ebp; /* 0x4706C64F: mov dword ptr [esp + 0x38], ebp */ 3960 RECOMP_ICALL(0x470802D0u); /* 0x4706C653: call 0x470802d0 */ /* not lifted */ 3961 RECOMP_FLAGS_IN(); 3962 ecx = MEM32(esp + 0x20); /* 0x4706C658: mov ecx, dword ptr [esp + 0x20] */ 3963 edx = MEM32(ecx); /* 0x4706C65C: mov edx, dword ptr [ecx] */ 3964 PUSH32(esp, edi); /* 0x4706C65E: push edi */ 3965 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4706C65F: call dword ptr [edx + 0xc] */ 3966 RECOMP_FLAGS_IN(); 3967 eax = MEM32(esp + 0x18); /* 0x4706C662: mov eax, dword ptr [esp + 0x18] */ 3968 L_4706C666: 3969 edx = MEM32(esp + 0x1C); /* 0x4706C666: mov edx, dword ptr [esp + 0x1c] */ 3970 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3971 edx = edx - 1; /* 0x4706C66A: dec edx */ 3972 _flag_k = FK_DEC; 3973 /* cmp ebx, eax */ /* 0x4706C66B: cmp ebx, eax */ 3974 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 3975 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3976 _flag_k = FK_CMP; 3977 MEM32(esp + 0x1C) = edx; /* 0x4706C66D: mov dword ptr [esp + 0x1c], edx */ 3978 RECOMP_BACKEDGE(); 3979 if (CMP_NE(_flag_a, _flag_b)) goto L_4706C622; /* 0x4706C671: jne 0x4706c622 */ 3980 L_4706C673: 3981 MEM32(eax) = eax; /* 0x4706C673: mov dword ptr [eax], eax */ 3982 eax = MEM32(esp + 0x18); /* 0x4706C675: mov eax, dword ptr [esp + 0x18] */ 3983 /* test eax, eax */ /* 0x4706C679: test eax, eax */ 3984 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3985 _cf = 0; 3986 _flag_k = FK_TEST; 3987 if (TEST_Z(_flag_a, _flag_b)) goto L_4706C6B9; /* 0x4706C67B: je 0x4706c6b9 */ 3988 L_4706C67D: 3989 esi = eax + 0x4; /* 0x4706C67D: lea esi, [eax + 4] */ 3990 MEM32(esp + 0x34) = esi; /* 0x4706C680: mov dword ptr [esp + 0x34], esi */ 3991 PUSH32(esp, 0); /* 0x4706C684: push 0 */ 3992 PUSH32(esp, 0); /* 0x4706C686: push 0 */ 3993 PUSH32(esp, 0); /* 0x4706C688: push 0 */ 3994 ecx = esi + 0x14; /* 0x4706C68A: lea ecx, [esi + 0x14] */ 3995 MEM32(esp + 0x38) = 4; /* 0x4706C68D: mov dword ptr [esp + 0x38], 4 */ 3996 RECOMP_ICALL(0x470802D0u); /* 0x4706C695: call 0x470802d0 */ /* not lifted */ 3997 RECOMP_FLAGS_IN(); 3998 PUSH32(esp, 0); /* 0x4706C69A: push 0 */ 3999 PUSH32(esp, 0); /* 0x4706C69C: push 0 */ 4000 PUSH32(esp, 0); /* 0x4706C69E: push 0 */ 4001 ecx = esi; /* 0x4706C6A0: mov ecx, esi */ 4002 MEM32(esp + 0x38) = ebp; /* 0x4706C6A2: mov dword ptr [esp + 0x38], ebp */ 4003 RECOMP_ICALL(0x470802D0u); /* 0x4706C6A6: call 0x470802d0 */ /* not lifted */ 4004 RECOMP_FLAGS_IN(); 4005 ecx = MEM32(esp + 0x20); /* 0x4706C6AB: mov ecx, dword ptr [esp + 0x20] */ 4006 edx = MEM32(esp + 0x18); /* 0x4706C6AF: mov edx, dword ptr [esp + 0x18] */ 4007 eax = MEM32(ecx); /* 0x4706C6B3: mov eax, dword ptr [ecx] */ 4008 PUSH32(esp, edx); /* 0x4706C6B5: push edx */ 4009 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x4706C6B6: call dword ptr [eax + 0xc] */ 4010 RECOMP_FLAGS_IN(); 4011 L_4706C6B9: 4012 ecx = MEM32(esp + 0x24); /* 0x4706C6B9: mov ecx, dword ptr [esp + 0x24] */ 4013 edi = POP32_VAL(esp); /* 0x4706C6BD: pop edi */ 4014 esi = POP32_VAL(esp); /* 0x4706C6BE: pop esi */ 4015 ebp = POP32_VAL(esp); /* 0x4706C6BF: pop ebp */ 4016 ebx = POP32_VAL(esp); /* 0x4706C6C0: pop ebx */ 4017 MEM32(FS_BASE + (0)) = ecx; /* 0x4706C6C1: mov dword ptr fs:[0], ecx */ 4018 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 4019 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4020 esp = esp + 0x20u; /* 0x4706C6C8: add esp, 0x20 */ 4021 _flag_k = FK_ADD; 4022 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706C6CB: ret 4 */ 4023 L_4706C6CE: 4024 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706C6CE: call dword ptr [0x470ac3c8] */ 4025 RECOMP_FLAGS_IN(); 4026 MEM32(eax) = 0xCu; /* 0x4706C6D4: mov dword ptr [eax], 0xc */ 4027 RECOMP_BACKEDGE(); 4028 goto L_4706C606; /* 0x4706C6DA: jmp 0x4706c606 */ 4029 { RECOMP_REGS_OUT(); return; } /* end of function */ 4030 RECOMP_REGS_OUT(); 4031 } 4032 4033 void sub_4706C5B8(void) { 4034 int _fpu_cmp = 0; 4035 uint32_t _cf = 0; 4036 int _df = 1; 4037 uint32_t _flag_k = FK_NONE; 4038 uint32_t _flag_a = 0, _flag_b = 0; 4039 uint32_t _itail_tgt = 0; 4040 RECOMP_REGS_LOCALS 4041 RECOMP_ENTER(0x4706C5B8u); 4042 4043 L_4706C5B8: 4044 ecx = MEM32(esi); /* 0x4706C5B8: mov ecx, dword ptr [esi] */ 4045 eax = ebp + 0x4; /* 0x4706C5BA: lea eax, [ebp + 4] */ 4046 PUSH32(esp, eax); /* 0x4706C5BD: push eax */ 4047 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 4048 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4049 ecx = ecx + 4; /* 0x4706C5BE: add ecx, 4 */ 4050 _flag_k = FK_ADD; 4051 RECOMP_ICALL(0x4706C0C0u); /* 0x4706C5C1: call 0x4706c0c0 */ /* not lifted */ 4052 RECOMP_FLAGS_IN(); 4053 ecx = MEM32(esi + 0x8); /* 0x4706C5C6: mov ecx, dword ptr [esi + 8] */ 4054 edx = MEM32(ecx); /* 0x4706C5C9: mov edx, dword ptr [ecx] */ 4055 PUSH32(esp, 0x2Cu); /* 0x4706C5CB: push 0x2c */ 4056 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4706C5CD: call dword ptr [edx + 4] */ 4057 RECOMP_FLAGS_IN(); 4058 edi = eax; /* 0x4706C5D0: mov edi, eax */ 4059 /* test edi, edi */ /* 0x4706C5D2: test edi, edi */ 4060 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4061 _cf = 0; 4062 _flag_k = FK_TEST; 4063 MEM32(esp + 0x34) = edi; /* 0x4706C5D4: mov dword ptr [esp + 0x34], edi */ 4064 if (TEST_Z(_flag_a, _flag_b)) goto L_4706C6CE; /* 0x4706C5D8: je 0x4706c6ce */ 4065 L_4706C5DE: 4066 MEM32(esp + 0x14) = edi; /* 0x4706C5DE: mov dword ptr [esp + 0x14], edi */ 4067 eax = MEM32(esi); /* 0x4706C5E2: mov eax, dword ptr [esi] */ 4068 ecx = MEM32(eax); /* 0x4706C5E4: mov ecx, dword ptr [eax] */ 4069 PUSH32(esp, 0); /* 0x4706C5E6: push 0 */ 4070 PUSH32(esp, ecx); /* 0x4706C5E8: push ecx */ 4071 ecx = edi; /* 0x4706C5E9: mov ecx, edi */ 4072 MEM8(esp + 0x34) = (uint8_t)(LO8(ebx)); /* 0x4706C5EB: mov byte ptr [esp + 0x34], bl */ 4073 RECOMP_ICALL(0x4706ED90u); /* 0x4706C5EF: call 0x4706ed90 */ /* not lifted */ 4074 RECOMP_FLAGS_IN(); 4075 edx = MEM32(esi); /* 0x4706C5F4: mov edx, dword ptr [esi] */ 4076 MEM32(edx) = edi; /* 0x4706C5F6: mov dword ptr [edx], edi */ 4077 eax = MEM32(esi + 0x4); /* 0x4706C5F8: mov eax, dword ptr [esi + 4] */ 4078 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4079 eax = eax + 1; /* 0x4706C5FB: inc eax */ 4080 _flag_k = FK_INC; 4081 MEM8(esp + 0x2C) = (uint8_t)(0); /* 0x4706C5FC: mov byte ptr [esp + 0x2c], 0 */ 4082 MEM32(esi) = edi; /* 0x4706C601: mov dword ptr [esi], edi */ 4083 MEM32(esi + 0x4) = eax; /* 0x4706C603: mov dword ptr [esi + 4], eax */ 4084 L_4706C606: 4085 eax = MEM32(esp + 0x10); /* 0x4706C606: mov eax, dword ptr [esp + 0x10] */ 4086 ebp = MEM32(ebp); /* 0x4706C60A: mov ebp, dword ptr [ebp] */ 4087 /* cmp ebp, MEM32(eax) */ /* 0x4706C60D: cmp ebp, dword ptr [eax] */ 4088 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(MEM32(eax)); 4089 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4090 _flag_k = FK_CMP; 4091 RECOMP_BACKEDGE(); 4092 if (CMP_NE(_flag_a, _flag_b)) goto L_4706C5B8; /* 0x4706C60F: jne 0x4706c5b8 */ 4093 L_4706C611: 4094 eax = MEM32(esp + 0x18); /* 0x4706C611: mov eax, dword ptr [esp + 0x18] */ 4095 ebx = MEM32(eax); /* 0x4706C615: mov ebx, dword ptr [eax] */ 4096 _flag_a = (uint32_t)((ebp | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebp | 0xFFFFFFFFu)); 4097 ebp = ebp | 0xFFFFFFFFu; /* 0x4706C617: or ebp, 0xffffffff */ 4098 _cf = 0; 4099 _flag_k = FK_TEST; 4100 /* cmp ebx, eax */ /* 0x4706C61A: cmp ebx, eax */ 4101 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 4102 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4103 _flag_k = FK_CMP; 4104 MEM32(esp + 0x2C) = ebp; /* 0x4706C61C: mov dword ptr [esp + 0x2c], ebp */ 4105 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706C673; /* 0x4706C620: je 0x4706c673 */ 4106 L_4706C622: 4107 edi = ebx; /* 0x4706C622: mov edi, ebx */ 4108 /* test edi, edi */ /* 0x4706C624: test edi, edi */ 4109 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4110 _cf = 0; 4111 _flag_k = FK_TEST; 4112 ebx = MEM32(ebx); /* 0x4706C626: mov ebx, dword ptr [ebx] */ 4113 if (TEST_Z(_flag_a, _flag_b)) goto L_4706C666; /* 0x4706C628: je 0x4706c666 */ 4114 L_4706C62A: 4115 esi = edi + 0x4; /* 0x4706C62A: lea esi, [edi + 4] */ 4116 MEM32(esp + 0x34) = esi; /* 0x4706C62D: mov dword ptr [esp + 0x34], esi */ 4117 PUSH32(esp, 0); /* 0x4706C631: push 0 */ 4118 PUSH32(esp, 0); /* 0x4706C633: push 0 */ 4119 PUSH32(esp, 0); /* 0x4706C635: push 0 */ 4120 ecx = esi + 0x14; /* 0x4706C637: lea ecx, [esi + 0x14] */ 4121 MEM32(esp + 0x38) = 3; /* 0x4706C63A: mov dword ptr [esp + 0x38], 3 */ 4122 RECOMP_ICALL(0x470802D0u); /* 0x4706C642: call 0x470802d0 */ /* not lifted */ 4123 RECOMP_FLAGS_IN(); 4124 PUSH32(esp, 0); /* 0x4706C647: push 0 */ 4125 PUSH32(esp, 0); /* 0x4706C649: push 0 */ 4126 PUSH32(esp, 0); /* 0x4706C64B: push 0 */ 4127 ecx = esi; /* 0x4706C64D: mov ecx, esi */ 4128 MEM32(esp + 0x38) = ebp; /* 0x4706C64F: mov dword ptr [esp + 0x38], ebp */ 4129 RECOMP_ICALL(0x470802D0u); /* 0x4706C653: call 0x470802d0 */ /* not lifted */ 4130 RECOMP_FLAGS_IN(); 4131 ecx = MEM32(esp + 0x20); /* 0x4706C658: mov ecx, dword ptr [esp + 0x20] */ 4132 edx = MEM32(ecx); /* 0x4706C65C: mov edx, dword ptr [ecx] */ 4133 PUSH32(esp, edi); /* 0x4706C65E: push edi */ 4134 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4706C65F: call dword ptr [edx + 0xc] */ 4135 RECOMP_FLAGS_IN(); 4136 eax = MEM32(esp + 0x18); /* 0x4706C662: mov eax, dword ptr [esp + 0x18] */ 4137 L_4706C666: 4138 edx = MEM32(esp + 0x1C); /* 0x4706C666: mov edx, dword ptr [esp + 0x1c] */ 4139 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4140 edx = edx - 1; /* 0x4706C66A: dec edx */ 4141 _flag_k = FK_DEC; 4142 /* cmp ebx, eax */ /* 0x4706C66B: cmp ebx, eax */ 4143 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 4144 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4145 _flag_k = FK_CMP; 4146 MEM32(esp + 0x1C) = edx; /* 0x4706C66D: mov dword ptr [esp + 0x1c], edx */ 4147 RECOMP_BACKEDGE(); 4148 if (CMP_NE(_flag_a, _flag_b)) goto L_4706C622; /* 0x4706C671: jne 0x4706c622 */ 4149 L_4706C673: 4150 MEM32(eax) = eax; /* 0x4706C673: mov dword ptr [eax], eax */ 4151 eax = MEM32(esp + 0x18); /* 0x4706C675: mov eax, dword ptr [esp + 0x18] */ 4152 /* test eax, eax */ /* 0x4706C679: test eax, eax */ 4153 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4154 _cf = 0; 4155 _flag_k = FK_TEST; 4156 if (TEST_Z(_flag_a, _flag_b)) goto L_4706C6B9; /* 0x4706C67B: je 0x4706c6b9 */ 4157 L_4706C67D: 4158 esi = eax + 0x4; /* 0x4706C67D: lea esi, [eax + 4] */ 4159 MEM32(esp + 0x34) = esi; /* 0x4706C680: mov dword ptr [esp + 0x34], esi */ 4160 PUSH32(esp, 0); /* 0x4706C684: push 0 */ 4161 PUSH32(esp, 0); /* 0x4706C686: push 0 */ 4162 PUSH32(esp, 0); /* 0x4706C688: push 0 */ 4163 ecx = esi + 0x14; /* 0x4706C68A: lea ecx, [esi + 0x14] */ 4164 MEM32(esp + 0x38) = 4; /* 0x4706C68D: mov dword ptr [esp + 0x38], 4 */ 4165 RECOMP_ICALL(0x470802D0u); /* 0x4706C695: call 0x470802d0 */ /* not lifted */ 4166 RECOMP_FLAGS_IN(); 4167 PUSH32(esp, 0); /* 0x4706C69A: push 0 */ 4168 PUSH32(esp, 0); /* 0x4706C69C: push 0 */ 4169 PUSH32(esp, 0); /* 0x4706C69E: push 0 */ 4170 ecx = esi; /* 0x4706C6A0: mov ecx, esi */ 4171 MEM32(esp + 0x38) = ebp; /* 0x4706C6A2: mov dword ptr [esp + 0x38], ebp */ 4172 RECOMP_ICALL(0x470802D0u); /* 0x4706C6A6: call 0x470802d0 */ /* not lifted */ 4173 RECOMP_FLAGS_IN(); 4174 ecx = MEM32(esp + 0x20); /* 0x4706C6AB: mov ecx, dword ptr [esp + 0x20] */ 4175 edx = MEM32(esp + 0x18); /* 0x4706C6AF: mov edx, dword ptr [esp + 0x18] */ 4176 eax = MEM32(ecx); /* 0x4706C6B3: mov eax, dword ptr [ecx] */ 4177 PUSH32(esp, edx); /* 0x4706C6B5: push edx */ 4178 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x4706C6B6: call dword ptr [eax + 0xc] */ 4179 RECOMP_FLAGS_IN(); 4180 L_4706C6B9: 4181 ecx = MEM32(esp + 0x24); /* 0x4706C6B9: mov ecx, dword ptr [esp + 0x24] */ 4182 edi = POP32_VAL(esp); /* 0x4706C6BD: pop edi */ 4183 esi = POP32_VAL(esp); /* 0x4706C6BE: pop esi */ 4184 ebp = POP32_VAL(esp); /* 0x4706C6BF: pop ebp */ 4185 ebx = POP32_VAL(esp); /* 0x4706C6C0: pop ebx */ 4186 MEM32(FS_BASE + (0)) = ecx; /* 0x4706C6C1: mov dword ptr fs:[0], ecx */ 4187 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 4188 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4189 esp = esp + 0x20u; /* 0x4706C6C8: add esp, 0x20 */ 4190 _flag_k = FK_ADD; 4191 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706C6CB: ret 4 */ 4192 L_4706C6CE: 4193 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706C6CE: call dword ptr [0x470ac3c8] */ 4194 RECOMP_FLAGS_IN(); 4195 MEM32(eax) = 0xCu; /* 0x4706C6D4: mov dword ptr [eax], 0xc */ 4196 RECOMP_BACKEDGE(); 4197 goto L_4706C606; /* 0x4706C6DA: jmp 0x4706c606 */ 4198 { RECOMP_REGS_OUT(); return; } /* end of function */ 4199 RECOMP_REGS_OUT(); 4200 } 4201 4202 void sub_4706C606(void) { 4203 int _fpu_cmp = 0; 4204 uint32_t _cf = 0; 4205 int _df = 1; 4206 uint32_t _flag_k = FK_NONE; 4207 uint32_t _flag_a = 0, _flag_b = 0; 4208 uint32_t _itail_tgt = 0; 4209 RECOMP_REGS_LOCALS 4210 RECOMP_ENTER(0x4706C606u); 4211 4212 goto L_4706C606; 4213 L_4706C5B8: 4214 ecx = MEM32(esi); /* 0x4706C5B8: mov ecx, dword ptr [esi] */ 4215 eax = ebp + 0x4; /* 0x4706C5BA: lea eax, [ebp + 4] */ 4216 PUSH32(esp, eax); /* 0x4706C5BD: push eax */ 4217 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 4218 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4219 ecx = ecx + 4; /* 0x4706C5BE: add ecx, 4 */ 4220 _flag_k = FK_ADD; 4221 RECOMP_ICALL(0x4706C0C0u); /* 0x4706C5C1: call 0x4706c0c0 */ /* not lifted */ 4222 RECOMP_FLAGS_IN(); 4223 ecx = MEM32(esi + 0x8); /* 0x4706C5C6: mov ecx, dword ptr [esi + 8] */ 4224 edx = MEM32(ecx); /* 0x4706C5C9: mov edx, dword ptr [ecx] */ 4225 PUSH32(esp, 0x2Cu); /* 0x4706C5CB: push 0x2c */ 4226 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4706C5CD: call dword ptr [edx + 4] */ 4227 RECOMP_FLAGS_IN(); 4228 edi = eax; /* 0x4706C5D0: mov edi, eax */ 4229 /* test edi, edi */ /* 0x4706C5D2: test edi, edi */ 4230 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4231 _cf = 0; 4232 _flag_k = FK_TEST; 4233 MEM32(esp + 0x34) = edi; /* 0x4706C5D4: mov dword ptr [esp + 0x34], edi */ 4234 if (TEST_Z(_flag_a, _flag_b)) goto L_4706C6CE; /* 0x4706C5D8: je 0x4706c6ce */ 4235 L_4706C5DE: 4236 MEM32(esp + 0x14) = edi; /* 0x4706C5DE: mov dword ptr [esp + 0x14], edi */ 4237 eax = MEM32(esi); /* 0x4706C5E2: mov eax, dword ptr [esi] */ 4238 ecx = MEM32(eax); /* 0x4706C5E4: mov ecx, dword ptr [eax] */ 4239 PUSH32(esp, 0); /* 0x4706C5E6: push 0 */ 4240 PUSH32(esp, ecx); /* 0x4706C5E8: push ecx */ 4241 ecx = edi; /* 0x4706C5E9: mov ecx, edi */ 4242 MEM8(esp + 0x34) = (uint8_t)(LO8(ebx)); /* 0x4706C5EB: mov byte ptr [esp + 0x34], bl */ 4243 RECOMP_ICALL(0x4706ED90u); /* 0x4706C5EF: call 0x4706ed90 */ /* not lifted */ 4244 RECOMP_FLAGS_IN(); 4245 edx = MEM32(esi); /* 0x4706C5F4: mov edx, dword ptr [esi] */ 4246 MEM32(edx) = edi; /* 0x4706C5F6: mov dword ptr [edx], edi */ 4247 eax = MEM32(esi + 0x4); /* 0x4706C5F8: mov eax, dword ptr [esi + 4] */ 4248 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4249 eax = eax + 1; /* 0x4706C5FB: inc eax */ 4250 _flag_k = FK_INC; 4251 MEM8(esp + 0x2C) = (uint8_t)(0); /* 0x4706C5FC: mov byte ptr [esp + 0x2c], 0 */ 4252 MEM32(esi) = edi; /* 0x4706C601: mov dword ptr [esi], edi */ 4253 MEM32(esi + 0x4) = eax; /* 0x4706C603: mov dword ptr [esi + 4], eax */ 4254 L_4706C606: 4255 eax = MEM32(esp + 0x10); /* 0x4706C606: mov eax, dword ptr [esp + 0x10] */ 4256 ebp = MEM32(ebp); /* 0x4706C60A: mov ebp, dword ptr [ebp] */ 4257 /* cmp ebp, MEM32(eax) */ /* 0x4706C60D: cmp ebp, dword ptr [eax] */ 4258 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(MEM32(eax)); 4259 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4260 _flag_k = FK_CMP; 4261 RECOMP_BACKEDGE(); 4262 if (CMP_NE(_flag_a, _flag_b)) goto L_4706C5B8; /* 0x4706C60F: jne 0x4706c5b8 */ 4263 L_4706C611: 4264 eax = MEM32(esp + 0x18); /* 0x4706C611: mov eax, dword ptr [esp + 0x18] */ 4265 ebx = MEM32(eax); /* 0x4706C615: mov ebx, dword ptr [eax] */ 4266 _flag_a = (uint32_t)((ebp | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebp | 0xFFFFFFFFu)); 4267 ebp = ebp | 0xFFFFFFFFu; /* 0x4706C617: or ebp, 0xffffffff */ 4268 _cf = 0; 4269 _flag_k = FK_TEST; 4270 /* cmp ebx, eax */ /* 0x4706C61A: cmp ebx, eax */ 4271 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 4272 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4273 _flag_k = FK_CMP; 4274 MEM32(esp + 0x2C) = ebp; /* 0x4706C61C: mov dword ptr [esp + 0x2c], ebp */ 4275 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706C673; /* 0x4706C620: je 0x4706c673 */ 4276 L_4706C622: 4277 edi = ebx; /* 0x4706C622: mov edi, ebx */ 4278 /* test edi, edi */ /* 0x4706C624: test edi, edi */ 4279 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4280 _cf = 0; 4281 _flag_k = FK_TEST; 4282 ebx = MEM32(ebx); /* 0x4706C626: mov ebx, dword ptr [ebx] */ 4283 if (TEST_Z(_flag_a, _flag_b)) goto L_4706C666; /* 0x4706C628: je 0x4706c666 */ 4284 L_4706C62A: 4285 esi = edi + 0x4; /* 0x4706C62A: lea esi, [edi + 4] */ 4286 MEM32(esp + 0x34) = esi; /* 0x4706C62D: mov dword ptr [esp + 0x34], esi */ 4287 PUSH32(esp, 0); /* 0x4706C631: push 0 */ 4288 PUSH32(esp, 0); /* 0x4706C633: push 0 */ 4289 PUSH32(esp, 0); /* 0x4706C635: push 0 */ 4290 ecx = esi + 0x14; /* 0x4706C637: lea ecx, [esi + 0x14] */ 4291 MEM32(esp + 0x38) = 3; /* 0x4706C63A: mov dword ptr [esp + 0x38], 3 */ 4292 RECOMP_ICALL(0x470802D0u); /* 0x4706C642: call 0x470802d0 */ /* not lifted */ 4293 RECOMP_FLAGS_IN(); 4294 PUSH32(esp, 0); /* 0x4706C647: push 0 */ 4295 PUSH32(esp, 0); /* 0x4706C649: push 0 */ 4296 PUSH32(esp, 0); /* 0x4706C64B: push 0 */ 4297 ecx = esi; /* 0x4706C64D: mov ecx, esi */ 4298 MEM32(esp + 0x38) = ebp; /* 0x4706C64F: mov dword ptr [esp + 0x38], ebp */ 4299 RECOMP_ICALL(0x470802D0u); /* 0x4706C653: call 0x470802d0 */ /* not lifted */ 4300 RECOMP_FLAGS_IN(); 4301 ecx = MEM32(esp + 0x20); /* 0x4706C658: mov ecx, dword ptr [esp + 0x20] */ 4302 edx = MEM32(ecx); /* 0x4706C65C: mov edx, dword ptr [ecx] */ 4303 PUSH32(esp, edi); /* 0x4706C65E: push edi */ 4304 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4706C65F: call dword ptr [edx + 0xc] */ 4305 RECOMP_FLAGS_IN(); 4306 eax = MEM32(esp + 0x18); /* 0x4706C662: mov eax, dword ptr [esp + 0x18] */ 4307 L_4706C666: 4308 edx = MEM32(esp + 0x1C); /* 0x4706C666: mov edx, dword ptr [esp + 0x1c] */ 4309 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4310 edx = edx - 1; /* 0x4706C66A: dec edx */ 4311 _flag_k = FK_DEC; 4312 /* cmp ebx, eax */ /* 0x4706C66B: cmp ebx, eax */ 4313 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 4314 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4315 _flag_k = FK_CMP; 4316 MEM32(esp + 0x1C) = edx; /* 0x4706C66D: mov dword ptr [esp + 0x1c], edx */ 4317 RECOMP_BACKEDGE(); 4318 if (CMP_NE(_flag_a, _flag_b)) goto L_4706C622; /* 0x4706C671: jne 0x4706c622 */ 4319 L_4706C673: 4320 MEM32(eax) = eax; /* 0x4706C673: mov dword ptr [eax], eax */ 4321 eax = MEM32(esp + 0x18); /* 0x4706C675: mov eax, dword ptr [esp + 0x18] */ 4322 /* test eax, eax */ /* 0x4706C679: test eax, eax */ 4323 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4324 _cf = 0; 4325 _flag_k = FK_TEST; 4326 if (TEST_Z(_flag_a, _flag_b)) goto L_4706C6B9; /* 0x4706C67B: je 0x4706c6b9 */ 4327 L_4706C67D: 4328 esi = eax + 0x4; /* 0x4706C67D: lea esi, [eax + 4] */ 4329 MEM32(esp + 0x34) = esi; /* 0x4706C680: mov dword ptr [esp + 0x34], esi */ 4330 PUSH32(esp, 0); /* 0x4706C684: push 0 */ 4331 PUSH32(esp, 0); /* 0x4706C686: push 0 */ 4332 PUSH32(esp, 0); /* 0x4706C688: push 0 */ 4333 ecx = esi + 0x14; /* 0x4706C68A: lea ecx, [esi + 0x14] */ 4334 MEM32(esp + 0x38) = 4; /* 0x4706C68D: mov dword ptr [esp + 0x38], 4 */ 4335 RECOMP_ICALL(0x470802D0u); /* 0x4706C695: call 0x470802d0 */ /* not lifted */ 4336 RECOMP_FLAGS_IN(); 4337 PUSH32(esp, 0); /* 0x4706C69A: push 0 */ 4338 PUSH32(esp, 0); /* 0x4706C69C: push 0 */ 4339 PUSH32(esp, 0); /* 0x4706C69E: push 0 */ 4340 ecx = esi; /* 0x4706C6A0: mov ecx, esi */ 4341 MEM32(esp + 0x38) = ebp; /* 0x4706C6A2: mov dword ptr [esp + 0x38], ebp */ 4342 RECOMP_ICALL(0x470802D0u); /* 0x4706C6A6: call 0x470802d0 */ /* not lifted */ 4343 RECOMP_FLAGS_IN(); 4344 ecx = MEM32(esp + 0x20); /* 0x4706C6AB: mov ecx, dword ptr [esp + 0x20] */ 4345 edx = MEM32(esp + 0x18); /* 0x4706C6AF: mov edx, dword ptr [esp + 0x18] */ 4346 eax = MEM32(ecx); /* 0x4706C6B3: mov eax, dword ptr [ecx] */ 4347 PUSH32(esp, edx); /* 0x4706C6B5: push edx */ 4348 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x4706C6B6: call dword ptr [eax + 0xc] */ 4349 RECOMP_FLAGS_IN(); 4350 L_4706C6B9: 4351 ecx = MEM32(esp + 0x24); /* 0x4706C6B9: mov ecx, dword ptr [esp + 0x24] */ 4352 edi = POP32_VAL(esp); /* 0x4706C6BD: pop edi */ 4353 esi = POP32_VAL(esp); /* 0x4706C6BE: pop esi */ 4354 ebp = POP32_VAL(esp); /* 0x4706C6BF: pop ebp */ 4355 ebx = POP32_VAL(esp); /* 0x4706C6C0: pop ebx */ 4356 MEM32(FS_BASE + (0)) = ecx; /* 0x4706C6C1: mov dword ptr fs:[0], ecx */ 4357 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 4358 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4359 esp = esp + 0x20u; /* 0x4706C6C8: add esp, 0x20 */ 4360 _flag_k = FK_ADD; 4361 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706C6CB: ret 4 */ 4362 L_4706C6CE: 4363 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706C6CE: call dword ptr [0x470ac3c8] */ 4364 RECOMP_FLAGS_IN(); 4365 MEM32(eax) = 0xCu; /* 0x4706C6D4: mov dword ptr [eax], 0xc */ 4366 RECOMP_BACKEDGE(); 4367 goto L_4706C606; /* 0x4706C6DA: jmp 0x4706c606 */ 4368 { RECOMP_REGS_OUT(); return; } /* end of function */ 4369 RECOMP_REGS_OUT(); 4370 } 4371 4372 void sub_4706C6CE(void) { 4373 int _fpu_cmp = 0; 4374 uint32_t _cf = 0; 4375 int _df = 1; 4376 uint32_t _flag_k = FK_NONE; 4377 uint32_t _flag_a = 0, _flag_b = 0; 4378 uint32_t _itail_tgt = 0; 4379 RECOMP_REGS_LOCALS 4380 RECOMP_ENTER(0x4706C6CEu); 4381 4382 goto L_4706C6CE; 4383 L_4706C5B8: 4384 ecx = MEM32(esi); /* 0x4706C5B8: mov ecx, dword ptr [esi] */ 4385 eax = ebp + 0x4; /* 0x4706C5BA: lea eax, [ebp + 4] */ 4386 PUSH32(esp, eax); /* 0x4706C5BD: push eax */ 4387 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 4388 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4389 ecx = ecx + 4; /* 0x4706C5BE: add ecx, 4 */ 4390 _flag_k = FK_ADD; 4391 RECOMP_ICALL(0x4706C0C0u); /* 0x4706C5C1: call 0x4706c0c0 */ /* not lifted */ 4392 RECOMP_FLAGS_IN(); 4393 ecx = MEM32(esi + 0x8); /* 0x4706C5C6: mov ecx, dword ptr [esi + 8] */ 4394 edx = MEM32(ecx); /* 0x4706C5C9: mov edx, dword ptr [ecx] */ 4395 PUSH32(esp, 0x2Cu); /* 0x4706C5CB: push 0x2c */ 4396 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4706C5CD: call dword ptr [edx + 4] */ 4397 RECOMP_FLAGS_IN(); 4398 edi = eax; /* 0x4706C5D0: mov edi, eax */ 4399 /* test edi, edi */ /* 0x4706C5D2: test edi, edi */ 4400 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4401 _cf = 0; 4402 _flag_k = FK_TEST; 4403 MEM32(esp + 0x34) = edi; /* 0x4706C5D4: mov dword ptr [esp + 0x34], edi */ 4404 if (TEST_Z(_flag_a, _flag_b)) goto L_4706C6CE; /* 0x4706C5D8: je 0x4706c6ce */ 4405 L_4706C5DE: 4406 MEM32(esp + 0x14) = edi; /* 0x4706C5DE: mov dword ptr [esp + 0x14], edi */ 4407 eax = MEM32(esi); /* 0x4706C5E2: mov eax, dword ptr [esi] */ 4408 ecx = MEM32(eax); /* 0x4706C5E4: mov ecx, dword ptr [eax] */ 4409 PUSH32(esp, 0); /* 0x4706C5E6: push 0 */ 4410 PUSH32(esp, ecx); /* 0x4706C5E8: push ecx */ 4411 ecx = edi; /* 0x4706C5E9: mov ecx, edi */ 4412 MEM8(esp + 0x34) = (uint8_t)(LO8(ebx)); /* 0x4706C5EB: mov byte ptr [esp + 0x34], bl */ 4413 RECOMP_ICALL(0x4706ED90u); /* 0x4706C5EF: call 0x4706ed90 */ /* not lifted */ 4414 RECOMP_FLAGS_IN(); 4415 edx = MEM32(esi); /* 0x4706C5F4: mov edx, dword ptr [esi] */ 4416 MEM32(edx) = edi; /* 0x4706C5F6: mov dword ptr [edx], edi */ 4417 eax = MEM32(esi + 0x4); /* 0x4706C5F8: mov eax, dword ptr [esi + 4] */ 4418 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4419 eax = eax + 1; /* 0x4706C5FB: inc eax */ 4420 _flag_k = FK_INC; 4421 MEM8(esp + 0x2C) = (uint8_t)(0); /* 0x4706C5FC: mov byte ptr [esp + 0x2c], 0 */ 4422 MEM32(esi) = edi; /* 0x4706C601: mov dword ptr [esi], edi */ 4423 MEM32(esi + 0x4) = eax; /* 0x4706C603: mov dword ptr [esi + 4], eax */ 4424 L_4706C606: 4425 eax = MEM32(esp + 0x10); /* 0x4706C606: mov eax, dword ptr [esp + 0x10] */ 4426 ebp = MEM32(ebp); /* 0x4706C60A: mov ebp, dword ptr [ebp] */ 4427 /* cmp ebp, MEM32(eax) */ /* 0x4706C60D: cmp ebp, dword ptr [eax] */ 4428 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(MEM32(eax)); 4429 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4430 _flag_k = FK_CMP; 4431 RECOMP_BACKEDGE(); 4432 if (CMP_NE(_flag_a, _flag_b)) goto L_4706C5B8; /* 0x4706C60F: jne 0x4706c5b8 */ 4433 L_4706C611: 4434 eax = MEM32(esp + 0x18); /* 0x4706C611: mov eax, dword ptr [esp + 0x18] */ 4435 ebx = MEM32(eax); /* 0x4706C615: mov ebx, dword ptr [eax] */ 4436 _flag_a = (uint32_t)((ebp | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebp | 0xFFFFFFFFu)); 4437 ebp = ebp | 0xFFFFFFFFu; /* 0x4706C617: or ebp, 0xffffffff */ 4438 _cf = 0; 4439 _flag_k = FK_TEST; 4440 /* cmp ebx, eax */ /* 0x4706C61A: cmp ebx, eax */ 4441 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 4442 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4443 _flag_k = FK_CMP; 4444 MEM32(esp + 0x2C) = ebp; /* 0x4706C61C: mov dword ptr [esp + 0x2c], ebp */ 4445 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706C673; /* 0x4706C620: je 0x4706c673 */ 4446 L_4706C622: 4447 edi = ebx; /* 0x4706C622: mov edi, ebx */ 4448 /* test edi, edi */ /* 0x4706C624: test edi, edi */ 4449 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4450 _cf = 0; 4451 _flag_k = FK_TEST; 4452 ebx = MEM32(ebx); /* 0x4706C626: mov ebx, dword ptr [ebx] */ 4453 if (TEST_Z(_flag_a, _flag_b)) goto L_4706C666; /* 0x4706C628: je 0x4706c666 */ 4454 L_4706C62A: 4455 esi = edi + 0x4; /* 0x4706C62A: lea esi, [edi + 4] */ 4456 MEM32(esp + 0x34) = esi; /* 0x4706C62D: mov dword ptr [esp + 0x34], esi */ 4457 PUSH32(esp, 0); /* 0x4706C631: push 0 */ 4458 PUSH32(esp, 0); /* 0x4706C633: push 0 */ 4459 PUSH32(esp, 0); /* 0x4706C635: push 0 */ 4460 ecx = esi + 0x14; /* 0x4706C637: lea ecx, [esi + 0x14] */ 4461 MEM32(esp + 0x38) = 3; /* 0x4706C63A: mov dword ptr [esp + 0x38], 3 */ 4462 RECOMP_ICALL(0x470802D0u); /* 0x4706C642: call 0x470802d0 */ /* not lifted */ 4463 RECOMP_FLAGS_IN(); 4464 PUSH32(esp, 0); /* 0x4706C647: push 0 */ 4465 PUSH32(esp, 0); /* 0x4706C649: push 0 */ 4466 PUSH32(esp, 0); /* 0x4706C64B: push 0 */ 4467 ecx = esi; /* 0x4706C64D: mov ecx, esi */ 4468 MEM32(esp + 0x38) = ebp; /* 0x4706C64F: mov dword ptr [esp + 0x38], ebp */ 4469 RECOMP_ICALL(0x470802D0u); /* 0x4706C653: call 0x470802d0 */ /* not lifted */ 4470 RECOMP_FLAGS_IN(); 4471 ecx = MEM32(esp + 0x20); /* 0x4706C658: mov ecx, dword ptr [esp + 0x20] */ 4472 edx = MEM32(ecx); /* 0x4706C65C: mov edx, dword ptr [ecx] */ 4473 PUSH32(esp, edi); /* 0x4706C65E: push edi */ 4474 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4706C65F: call dword ptr [edx + 0xc] */ 4475 RECOMP_FLAGS_IN(); 4476 eax = MEM32(esp + 0x18); /* 0x4706C662: mov eax, dword ptr [esp + 0x18] */ 4477 L_4706C666: 4478 edx = MEM32(esp + 0x1C); /* 0x4706C666: mov edx, dword ptr [esp + 0x1c] */ 4479 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4480 edx = edx - 1; /* 0x4706C66A: dec edx */ 4481 _flag_k = FK_DEC; 4482 /* cmp ebx, eax */ /* 0x4706C66B: cmp ebx, eax */ 4483 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 4484 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4485 _flag_k = FK_CMP; 4486 MEM32(esp + 0x1C) = edx; /* 0x4706C66D: mov dword ptr [esp + 0x1c], edx */ 4487 RECOMP_BACKEDGE(); 4488 if (CMP_NE(_flag_a, _flag_b)) goto L_4706C622; /* 0x4706C671: jne 0x4706c622 */ 4489 L_4706C673: 4490 MEM32(eax) = eax; /* 0x4706C673: mov dword ptr [eax], eax */ 4491 eax = MEM32(esp + 0x18); /* 0x4706C675: mov eax, dword ptr [esp + 0x18] */ 4492 /* test eax, eax */ /* 0x4706C679: test eax, eax */ 4493 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4494 _cf = 0; 4495 _flag_k = FK_TEST; 4496 if (TEST_Z(_flag_a, _flag_b)) goto L_4706C6B9; /* 0x4706C67B: je 0x4706c6b9 */ 4497 L_4706C67D: 4498 esi = eax + 0x4; /* 0x4706C67D: lea esi, [eax + 4] */ 4499 MEM32(esp + 0x34) = esi; /* 0x4706C680: mov dword ptr [esp + 0x34], esi */ 4500 PUSH32(esp, 0); /* 0x4706C684: push 0 */ 4501 PUSH32(esp, 0); /* 0x4706C686: push 0 */ 4502 PUSH32(esp, 0); /* 0x4706C688: push 0 */ 4503 ecx = esi + 0x14; /* 0x4706C68A: lea ecx, [esi + 0x14] */ 4504 MEM32(esp + 0x38) = 4; /* 0x4706C68D: mov dword ptr [esp + 0x38], 4 */ 4505 RECOMP_ICALL(0x470802D0u); /* 0x4706C695: call 0x470802d0 */ /* not lifted */ 4506 RECOMP_FLAGS_IN(); 4507 PUSH32(esp, 0); /* 0x4706C69A: push 0 */ 4508 PUSH32(esp, 0); /* 0x4706C69C: push 0 */ 4509 PUSH32(esp, 0); /* 0x4706C69E: push 0 */ 4510 ecx = esi; /* 0x4706C6A0: mov ecx, esi */ 4511 MEM32(esp + 0x38) = ebp; /* 0x4706C6A2: mov dword ptr [esp + 0x38], ebp */ 4512 RECOMP_ICALL(0x470802D0u); /* 0x4706C6A6: call 0x470802d0 */ /* not lifted */ 4513 RECOMP_FLAGS_IN(); 4514 ecx = MEM32(esp + 0x20); /* 0x4706C6AB: mov ecx, dword ptr [esp + 0x20] */ 4515 edx = MEM32(esp + 0x18); /* 0x4706C6AF: mov edx, dword ptr [esp + 0x18] */ 4516 eax = MEM32(ecx); /* 0x4706C6B3: mov eax, dword ptr [ecx] */ 4517 PUSH32(esp, edx); /* 0x4706C6B5: push edx */ 4518 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x4706C6B6: call dword ptr [eax + 0xc] */ 4519 RECOMP_FLAGS_IN(); 4520 L_4706C6B9: 4521 ecx = MEM32(esp + 0x24); /* 0x4706C6B9: mov ecx, dword ptr [esp + 0x24] */ 4522 edi = POP32_VAL(esp); /* 0x4706C6BD: pop edi */ 4523 esi = POP32_VAL(esp); /* 0x4706C6BE: pop esi */ 4524 ebp = POP32_VAL(esp); /* 0x4706C6BF: pop ebp */ 4525 ebx = POP32_VAL(esp); /* 0x4706C6C0: pop ebx */ 4526 MEM32(FS_BASE + (0)) = ecx; /* 0x4706C6C1: mov dword ptr fs:[0], ecx */ 4527 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 4528 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4529 esp = esp + 0x20u; /* 0x4706C6C8: add esp, 0x20 */ 4530 _flag_k = FK_ADD; 4531 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706C6CB: ret 4 */ 4532 L_4706C6CE: 4533 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706C6CE: call dword ptr [0x470ac3c8] */ 4534 RECOMP_FLAGS_IN(); 4535 MEM32(eax) = 0xCu; /* 0x4706C6D4: mov dword ptr [eax], 0xc */ 4536 RECOMP_BACKEDGE(); 4537 goto L_4706C606; /* 0x4706C6DA: jmp 0x4706c606 */ 4538 { RECOMP_REGS_OUT(); return; } /* end of function */ 4539 RECOMP_REGS_OUT(); 4540 } 4541 4542 void sub_4706C6E0(void) { 4543 int _fpu_cmp = 0; 4544 uint32_t _cf = 0; 4545 int _df = 1; 4546 uint32_t _flag_k = FK_NONE; 4547 uint32_t _flag_a = 0, _flag_b = 0; 4548 uint32_t _itail_tgt = 0; 4549 RECOMP_REGS_LOCALS 4550 RECOMP_ENTER(0x4706C6E0u); 4551 4552 L_4706C6E0: 4553 eax = ecx; /* 0x4706C6E0: mov eax, ecx */ 4554 ecx = MEM32(esp + 0x4); /* 0x4706C6E2: mov ecx, dword ptr [esp + 4] */ 4555 /* cmp ecx, eax */ /* 0x4706C6E6: cmp ecx, eax */ 4556 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4557 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4558 _flag_k = FK_CMP; 4559 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706C6F9; /* 0x4706C6E8: je 0x4706c6f9 */ 4560 L_4706C6EA: 4561 edx = MEM32(eax + 0x4); /* 0x4706C6EA: mov edx, dword ptr [eax + 4] */ 4562 eax = MEM32(eax + 0xC); /* 0x4706C6ED: mov eax, dword ptr [eax + 0xc] */ 4563 PUSH32(esp, 1); /* 0x4706C6F0: push 1 */ 4564 PUSH32(esp, edx); /* 0x4706C6F2: push edx */ 4565 PUSH32(esp, eax); /* 0x4706C6F3: push eax */ 4566 RECOMP_ICALL(0x470802D0u); /* 0x4706C6F4: call 0x470802d0 */ /* not lifted */ 4567 RECOMP_FLAGS_IN(); 4568 L_4706C6F9: 4569 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706C6F9: ret 4 */ 4570 RECOMP_REGS_OUT(); 4571 } 4572 4573 void sub_4706C700(void) { 4574 int _fpu_cmp = 0; 4575 uint32_t _cf = 0; 4576 int _df = 1; 4577 uint32_t _flag_k = FK_NONE; 4578 uint32_t _flag_a = 0, _flag_b = 0; 4579 uint32_t _itail_tgt = 0; 4580 RECOMP_REGS_LOCALS 4581 RECOMP_ENTER(0x4706C700u); 4582 4583 L_4706C700: 4584 PUSH32(esp, ecx); /* 0x4706C700: push ecx */ 4585 PUSH32(esp, ebx); /* 0x4706C701: push ebx */ 4586 PUSH32(esp, esi); /* 0x4706C702: push esi */ 4587 PUSH32(esp, edi); /* 0x4706C703: push edi */ 4588 edi = ecx; /* 0x4706C704: mov edi, ecx */ 4589 eax = MEM32(edi); /* 0x4706C706: mov eax, dword ptr [edi] */ 4590 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4591 ebx = 0; /* 0x4706C708: xor ebx, ebx */ 4592 _cf = 0; 4593 _flag_k = FK_TEST; 4594 /* cmp eax, ebx */ /* 0x4706C70A: cmp eax, ebx */ 4595 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4596 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4597 _flag_k = FK_CMP; 4598 MEM32(esp + 0xC) = ebx; /* 0x4706C70C: mov dword ptr [esp + 0xc], ebx */ 4599 if (CMP_NE(_flag_a, _flag_b)) goto L_4706C717; /* 0x4706C710: jne 0x4706c717 */ 4600 L_4706C712: 4601 RECOMP_ICALL(0x4703DAC0u); /* 0x4706C712: call 0x4703dac0 */ /* not lifted */ 4602 RECOMP_FLAGS_IN(); 4603 L_4706C717: 4604 esi = MEM32(esp + 0x14); /* 0x4706C717: mov esi, dword ptr [esp + 0x14] */ 4605 MEM32(esi) = eax; /* 0x4706C71B: mov dword ptr [esi], eax */ 4606 MEM32(esi + 0x4) = ebx; /* 0x4706C71D: mov dword ptr [esi + 4], ebx */ 4607 MEM32(esi + 0x8) = ebx; /* 0x4706C720: mov dword ptr [esi + 8], ebx */ 4608 MEM32(esi + 0xC) = ebx; /* 0x4706C723: mov dword ptr [esi + 0xc], ebx */ 4609 MEM32(esi + 0x10) = ebx; /* 0x4706C726: mov dword ptr [esi + 0x10], ebx */ 4610 eax = MEM32(edi + 0x4); /* 0x4706C729: mov eax, dword ptr [edi + 4] */ 4611 ecx = MEM32(edi + 0xC); /* 0x4706C72C: mov ecx, dword ptr [edi + 0xc] */ 4612 PUSH32(esp, 1); /* 0x4706C72F: push 1 */ 4613 PUSH32(esp, eax); /* 0x4706C731: push eax */ 4614 PUSH32(esp, ecx); /* 0x4706C732: push ecx */ 4615 ecx = esi; /* 0x4706C733: mov ecx, esi */ 4616 RECOMP_ICALL(0x470802D0u); /* 0x4706C735: call 0x470802d0 */ /* not lifted */ 4617 RECOMP_FLAGS_IN(); 4618 edi = POP32_VAL(esp); /* 0x4706C73A: pop edi */ 4619 eax = esi; /* 0x4706C73B: mov eax, esi */ 4620 esi = POP32_VAL(esp); /* 0x4706C73D: pop esi */ 4621 ebx = POP32_VAL(esp); /* 0x4706C73E: pop ebx */ 4622 ecx = POP32_VAL(esp); /* 0x4706C73F: pop ecx */ 4623 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706C740: ret 4 */ 4624 RECOMP_REGS_OUT(); 4625 } 4626 4627 void sub_4706C750(void) { 4628 int _fpu_cmp = 0; 4629 uint32_t _cf = 0; 4630 int _df = 1; 4631 uint32_t _flag_k = FK_NONE; 4632 uint32_t _flag_a = 0, _flag_b = 0; 4633 uint32_t _itail_tgt = 0; 4634 RECOMP_REGS_LOCALS 4635 RECOMP_ENTER(0x4706C750u); 4636 4637 L_4706C750: 4638 edx = MEM32(esp + 0x8); /* 0x4706C750: mov edx, dword ptr [esp + 8] */ 4639 eax = ecx; /* 0x4706C754: mov eax, ecx */ 4640 ecx = MEM32(esp + 0x4); /* 0x4706C756: mov ecx, dword ptr [esp + 4] */ 4641 MEM32(eax) = ecx; /* 0x4706C75A: mov dword ptr [eax], ecx */ 4642 ecx = MEM32(esp + 0xC); /* 0x4706C75C: mov ecx, dword ptr [esp + 0xc] */ 4643 MEM32(eax + 0x4) = edx; /* 0x4706C760: mov dword ptr [eax + 4], edx */ 4644 MEM32(eax + 0x8) = ecx; /* 0x4706C763: mov dword ptr [eax + 8], ecx */ 4645 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4706C766: ret 0xc */ 4646 RECOMP_REGS_OUT(); 4647 } 4648 4649 void sub_4706C770(void) { 4650 int _fpu_cmp = 0; 4651 uint32_t _cf = 0; 4652 int _df = 1; 4653 uint32_t _flag_k = FK_NONE; 4654 uint32_t _flag_a = 0, _flag_b = 0; 4655 uint32_t _itail_tgt = 0; 4656 RECOMP_REGS_LOCALS 4657 RECOMP_ENTER(0x4706C770u); 4658 4659 L_4706C770: 4660 PUSH32(esp, esi); /* 0x4706C770: push esi */ 4661 PUSH32(esp, edi); /* 0x4706C771: push edi */ 4662 esi = ecx; /* 0x4706C772: mov esi, ecx */ 4663 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4664 edi = 0; /* 0x4706C774: xor edi, edi */ 4665 _cf = 0; 4666 _flag_k = FK_TEST; 4667 MEM32(esi) = edi; /* 0x4706C776: mov dword ptr [esi], edi */ 4668 MEM32(esi + 0x4) = edi; /* 0x4706C778: mov dword ptr [esi + 4], edi */ 4669 RECOMP_ICALL(0x4703DAC0u); /* 0x4706C77B: call 0x4703dac0 */ /* not lifted */ 4670 RECOMP_FLAGS_IN(); 4671 MEM32(esi + 0xC) = edi; /* 0x4706C780: mov dword ptr [esi + 0xc], edi */ 4672 MEM32(esi + 0x10) = edi; /* 0x4706C783: mov dword ptr [esi + 0x10], edi */ 4673 MEM32(esi + 0x18) = edi; /* 0x4706C786: mov dword ptr [esi + 0x18], edi */ 4674 MEM32(esi + 0x8) = eax; /* 0x4706C789: mov dword ptr [esi + 8], eax */ 4675 edi = POP32_VAL(esp); /* 0x4706C78C: pop edi */ 4676 MEM32(esi + 0x14) = 0x4710F078u; /* 0x4706C78D: mov dword ptr [esi + 0x14], 0x4710f078 */ 4677 eax = esi; /* 0x4706C794: mov eax, esi */ 4678 esi = POP32_VAL(esp); /* 0x4706C796: pop esi */ 4679 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706C797: ret */ 4680 RECOMP_REGS_OUT(); 4681 } 4682 4683 void sub_4706C7A0(void) { 4684 int _fpu_cmp = 0; 4685 uint32_t _cf = 0; 4686 int _df = 1; 4687 uint32_t _flag_k = FK_NONE; 4688 uint32_t _flag_a = 0, _flag_b = 0; 4689 uint32_t _itail_tgt = 0; 4690 RECOMP_REGS_LOCALS 4691 RECOMP_ENTER(0x4706C7A0u); 4692 4693 L_4706C7A0: 4694 eax = MEM32(esp + 0x4); /* 0x4706C7A0: mov eax, dword ptr [esp + 4] */ 4695 PUSH32(esp, esi); /* 0x4706C7A4: push esi */ 4696 esi = ecx; /* 0x4706C7A5: mov esi, ecx */ 4697 ecx = MEM32(eax); /* 0x4706C7A7: mov ecx, dword ptr [eax] */ 4698 PUSH32(esp, edi); /* 0x4706C7A9: push edi */ 4699 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4700 edi = 0; /* 0x4706C7AA: xor edi, edi */ 4701 _cf = 0; 4702 _flag_k = FK_TEST; 4703 MEM32(esi) = ecx; /* 0x4706C7AC: mov dword ptr [esi], ecx */ 4704 MEM32(esi + 0x4) = edi; /* 0x4706C7AE: mov dword ptr [esi + 4], edi */ 4705 RECOMP_ICALL(0x4703DAC0u); /* 0x4706C7B1: call 0x4703dac0 */ /* not lifted */ 4706 RECOMP_FLAGS_IN(); 4707 MEM32(esi + 0xC) = edi; /* 0x4706C7B6: mov dword ptr [esi + 0xc], edi */ 4708 MEM32(esi + 0x10) = edi; /* 0x4706C7B9: mov dword ptr [esi + 0x10], edi */ 4709 MEM32(esi + 0x18) = edi; /* 0x4706C7BC: mov dword ptr [esi + 0x18], edi */ 4710 MEM32(esi + 0x8) = eax; /* 0x4706C7BF: mov dword ptr [esi + 8], eax */ 4711 edi = POP32_VAL(esp); /* 0x4706C7C2: pop edi */ 4712 MEM32(esi + 0x14) = 0x4710F078u; /* 0x4706C7C3: mov dword ptr [esi + 0x14], 0x4710f078 */ 4713 eax = esi; /* 0x4706C7CA: mov eax, esi */ 4714 esi = POP32_VAL(esp); /* 0x4706C7CC: pop esi */ 4715 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706C7CD: ret 4 */ 4716 RECOMP_REGS_OUT(); 4717 } 4718 4719 void sub_4706C7D0(void) { 4720 int _fpu_cmp = 0; 4721 uint32_t _cf = 0; 4722 int _df = 1; 4723 uint32_t _flag_k = FK_NONE; 4724 uint32_t _flag_a = 0, _flag_b = 0; 4725 uint32_t _itail_tgt = 0; 4726 RECOMP_REGS_LOCALS 4727 RECOMP_ENTER(0x4706C7D0u); 4728 4729 L_4706C7D0: 4730 PUSH32(esp, ebx); /* 0x4706C7D0: push ebx */ 4731 ebx = MEM32(esp + 0x8); /* 0x4706C7D1: mov ebx, dword ptr [esp + 8] */ 4732 eax = MEM32(ebx); /* 0x4706C7D5: mov eax, dword ptr [ebx] */ 4733 PUSH32(esp, ebp); /* 0x4706C7D7: push ebp */ 4734 PUSH32(esp, esi); /* 0x4706C7D8: push esi */ 4735 PUSH32(esp, edi); /* 0x4706C7D9: push edi */ 4736 edi = ecx; /* 0x4706C7DA: mov edi, ecx */ 4737 MEM32(edi) = eax; /* 0x4706C7DC: mov dword ptr [edi], eax */ 4738 ecx = MEM32(ebx + 0x4); /* 0x4706C7DE: mov ecx, dword ptr [ebx + 4] */ 4739 MEM32(edi + 0x4) = ecx; /* 0x4706C7E1: mov dword ptr [edi + 4], ecx */ 4740 eax = MEM32(ebx + 0x8); /* 0x4706C7E4: mov eax, dword ptr [ebx + 8] */ 4741 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4742 ebp = 0; /* 0x4706C7E7: xor ebp, ebp */ 4743 _cf = 0; 4744 _flag_k = FK_TEST; 4745 /* cmp eax, ebp */ /* 0x4706C7E9: cmp eax, ebp */ 4746 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 4747 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4748 _flag_k = FK_CMP; 4749 esi = edi + 0x8; /* 0x4706C7EB: lea esi, [edi + 8] */ 4750 if (CMP_NE(_flag_a, _flag_b)) goto L_4706C7F5; /* 0x4706C7EE: jne 0x4706c7f5 */ 4751 L_4706C7F0: 4752 RECOMP_ICALL(0x4703DAC0u); /* 0x4706C7F0: call 0x4703dac0 */ /* not lifted */ 4753 RECOMP_FLAGS_IN(); 4754 L_4706C7F5: 4755 MEM32(esi) = eax; /* 0x4706C7F5: mov dword ptr [esi], eax */ 4756 MEM32(esi + 0x4) = ebp; /* 0x4706C7F7: mov dword ptr [esi + 4], ebp */ 4757 MEM32(esi + 0x8) = ebp; /* 0x4706C7FA: mov dword ptr [esi + 8], ebp */ 4758 MEM32(esi + 0xC) = ebp; /* 0x4706C7FD: mov dword ptr [esi + 0xc], ebp */ 4759 MEM32(esi + 0x10) = ebp; /* 0x4706C800: mov dword ptr [esi + 0x10], ebp */ 4760 edx = MEM32(ebx + 0xC); /* 0x4706C803: mov edx, dword ptr [ebx + 0xc] */ 4761 eax = MEM32(ebx + 0x14); /* 0x4706C806: mov eax, dword ptr [ebx + 0x14] */ 4762 PUSH32(esp, 1); /* 0x4706C809: push 1 */ 4763 PUSH32(esp, edx); /* 0x4706C80B: push edx */ 4764 PUSH32(esp, eax); /* 0x4706C80C: push eax */ 4765 ecx = esi; /* 0x4706C80D: mov ecx, esi */ 4766 RECOMP_ICALL(0x470802D0u); /* 0x4706C80F: call 0x470802d0 */ /* not lifted */ 4767 RECOMP_FLAGS_IN(); 4768 eax = edi; /* 0x4706C814: mov eax, edi */ 4769 edi = POP32_VAL(esp); /* 0x4706C816: pop edi */ 4770 esi = POP32_VAL(esp); /* 0x4706C817: pop esi */ 4771 ebp = POP32_VAL(esp); /* 0x4706C818: pop ebp */ 4772 ebx = POP32_VAL(esp); /* 0x4706C819: pop ebx */ 4773 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706C81A: ret 4 */ 4774 RECOMP_REGS_OUT(); 4775 } 4776 4777 void sub_4706C820(void) { 4778 int _fpu_cmp = 0; 4779 uint32_t _cf = 0; 4780 int _df = 1; 4781 uint32_t _flag_k = FK_NONE; 4782 uint32_t _flag_a = 0, _flag_b = 0; 4783 uint32_t _itail_tgt = 0; 4784 RECOMP_REGS_LOCALS 4785 RECOMP_ENTER(0x4706C820u); 4786 4787 L_4706C820: 4788 PUSH32(esp, esi); /* 0x4706C820: push esi */ 4789 PUSH32(esp, edi); /* 0x4706C821: push edi */ 4790 edi = ecx; /* 0x4706C822: mov edi, ecx */ 4791 eax = MEM32(edi); /* 0x4706C824: mov eax, dword ptr [edi] */ 4792 /* test eax, eax */ /* 0x4706C826: test eax, eax */ 4793 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4794 _cf = 0; 4795 _flag_k = FK_TEST; 4796 if (TEST_Z(_flag_a, _flag_b)) goto L_4706C83F; /* 0x4706C828: je 0x4706c83f */ 4797 L_4706C82A: 4798 PUSH32(esp, eax); /* 0x4706C82A: push eax */ 4799 RECOMP_ICALL(MEM32(0x470AC004)); /* 0x4706C82B: call dword ptr [0x470ac004] */ 4800 RECOMP_FLAGS_IN(); 4801 esi = eax; /* 0x4706C831: mov esi, eax */ 4802 /* test esi, esi */ /* 0x4706C833: test esi, esi */ 4803 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4804 _cf = 0; 4805 _flag_k = FK_TEST; 4806 if (TEST_Z(_flag_a, _flag_b)) goto L_4706C83F; /* 0x4706C835: je 0x4706c83f */ 4807 L_4706C837: 4808 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706C837: call dword ptr [0x470ac3c8] */ 4809 RECOMP_FLAGS_IN(); 4810 MEM32(eax) = esi; /* 0x4706C83D: mov dword ptr [eax], esi */ 4811 L_4706C83F: 4812 PUSH32(esp, 0); /* 0x4706C83F: push 0 */ 4813 PUSH32(esp, 0); /* 0x4706C841: push 0 */ 4814 PUSH32(esp, 0); /* 0x4706C843: push 0 */ 4815 ecx = edi + 0x8; /* 0x4706C845: lea ecx, [edi + 8] */ 4816 RECOMP_ICALL(0x470802D0u); /* 0x4706C848: call 0x470802d0 */ /* not lifted */ 4817 RECOMP_FLAGS_IN(); 4818 edi = POP32_VAL(esp); /* 0x4706C84D: pop edi */ 4819 esi = POP32_VAL(esp); /* 0x4706C84E: pop esi */ 4820 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706C84F: ret */ 4821 RECOMP_REGS_OUT(); 4822 } 4823 4824 void sub_4706C850(void) { 4825 int _fpu_cmp = 0; 4826 uint32_t _cf = 0; 4827 int _df = 1; 4828 uint32_t _flag_k = FK_NONE; 4829 uint32_t _flag_a = 0, _flag_b = 0; 4830 uint32_t _itail_tgt = 0; 4831 RECOMP_REGS_LOCALS 4832 RECOMP_ENTER(0x4706C850u); 4833 4834 L_4706C850: 4835 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 4836 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4837 esp = esp - 0x18u; /* 0x4706C850: sub esp, 0x18 */ 4838 _flag_k = FK_CMP; 4839 eax = MEM32(esp + 0x1C); /* 0x4706C853: mov eax, dword ptr [esp + 0x1c] */ 4840 PUSH32(esp, ebx); /* 0x4706C857: push ebx */ 4841 PUSH32(esp, ebp); /* 0x4706C858: push ebp */ 4842 PUSH32(esp, esi); /* 0x4706C859: push esi */ 4843 PUSH32(esp, edi); /* 0x4706C85A: push edi */ 4844 edi = ecx; /* 0x4706C85B: mov edi, ecx */ 4845 PUSH32(esp, eax); /* 0x4706C85D: push eax */ 4846 ecx = esp + 0x18; /* 0x4706C85E: lea ecx, [esp + 0x18] */ 4847 PUSH32(esp, ecx); /* 0x4706C862: push ecx */ 4848 RECOMP_ICALL(0x4706D3C0u); /* 0x4706C863: call 0x4706d3c0 */ /* not lifted */ 4849 RECOMP_FLAGS_IN(); 4850 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4851 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4852 esp = esp + 8; /* 0x4706C868: add esp, 8 */ 4853 _flag_k = FK_ADD; 4854 edx = esp + 0x2C; /* 0x4706C86B: lea edx, [esp + 0x2c] */ 4855 PUSH32(esp, edx); /* 0x4706C86F: push edx */ 4856 edx = MEM32(edi); /* 0x4706C870: mov edx, dword ptr [edi] */ 4857 PUSH32(esp, 0); /* 0x4706C872: push 0 */ 4858 ecx = esp + 0x18; /* 0x4706C874: lea ecx, [esp + 0x18] */ 4859 PUSH32(esp, ecx); /* 0x4706C878: push ecx */ 4860 esi = eax; /* 0x4706C879: mov esi, eax */ 4861 eax = MEM32(esi + 0xC); /* 0x4706C87B: mov eax, dword ptr [esi + 0xc] */ 4862 PUSH32(esp, 0); /* 0x4706C87E: push 0 */ 4863 PUSH32(esp, eax); /* 0x4706C880: push eax */ 4864 PUSH32(esp, edx); /* 0x4706C881: push edx */ 4865 MEM32(esp + 0x44) = 0; /* 0x4706C882: mov dword ptr [esp + 0x44], 0 */ 4866 RECOMP_ICALL(MEM32(0x470AC020)); /* 0x4706C88A: call dword ptr [0x470ac020] */ 4867 RECOMP_FLAGS_IN(); 4868 ebx = eax; /* 0x4706C890: mov ebx, eax */ 4869 /* test ebx, ebx */ /* 0x4706C892: test ebx, ebx */ 4870 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 4871 _cf = 0; 4872 _flag_k = FK_TEST; 4873 if (TEST_Z(_flag_a, _flag_b)) goto L_4706C8C8; /* 0x4706C894: je 0x4706c8c8 */ 4874 L_4706C896: 4875 ebp = MEM32(0x470AC3C8); /* 0x4706C896: mov ebp, dword ptr [0x470ac3c8] */ 4876 RECOMP_ICALL(ebp); /* 0x4706C89C: call ebp */ 4877 RECOMP_FLAGS_IN(); 4878 MEM32(eax) = ebx; /* 0x4706C89E: mov dword ptr [eax], ebx */ 4879 eax = MEM32(esp + 0x30); /* 0x4706C8A0: mov eax, dword ptr [esp + 0x30] */ 4880 ecx = MEM32(eax + 0x4); /* 0x4706C8A4: mov ecx, dword ptr [eax + 4] */ 4881 edx = MEM32(eax); /* 0x4706C8A7: mov edx, dword ptr [eax] */ 4882 eax = MEM32(eax + 0x8); /* 0x4706C8A9: mov eax, dword ptr [eax + 8] */ 4883 esi = MEM32(esi + 0xC); /* 0x4706C8AC: mov esi, dword ptr [esi + 0xc] */ 4884 PUSH32(esp, ecx); /* 0x4706C8AF: push ecx */ 4885 PUSH32(esp, edx); /* 0x4706C8B0: push edx */ 4886 PUSH32(esp, eax); /* 0x4706C8B1: push eax */ 4887 eax = MEM32(edi); /* 0x4706C8B2: mov eax, dword ptr [edi] */ 4888 PUSH32(esp, 0); /* 0x4706C8B4: push 0 */ 4889 PUSH32(esp, esi); /* 0x4706C8B6: push esi */ 4890 PUSH32(esp, eax); /* 0x4706C8B7: push eax */ 4891 RECOMP_ICALL(MEM32(0x470AC01C)); /* 0x4706C8B8: call dword ptr [0x470ac01c] */ 4892 RECOMP_FLAGS_IN(); 4893 esi = eax; /* 0x4706C8BE: mov esi, eax */ 4894 /* test esi, esi */ /* 0x4706C8C0: test esi, esi */ 4895 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4896 _cf = 0; 4897 _flag_k = FK_TEST; 4898 if (TEST_Z(_flag_a, _flag_b)) goto L_4706C8CD; /* 0x4706C8C2: je 0x4706c8cd */ 4899 L_4706C8C4: 4900 RECOMP_ICALL(ebp); /* 0x4706C8C4: call ebp */ 4901 RECOMP_FLAGS_IN(); 4902 MEM32(eax) = esi; /* 0x4706C8C6: mov dword ptr [eax], esi */ 4903 L_4706C8C8: 4904 _flag_a = (uint32_t)((esi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((esi | 0xFFFFFFFFu)); 4905 esi = esi | 0xFFFFFFFFu; /* 0x4706C8C8: or esi, 0xffffffff */ 4906 _cf = 0; 4907 _flag_k = FK_TEST; 4908 goto L_4706C8CF; /* 0x4706C8CB: jmp 0x4706c8cf */ 4909 L_4706C8CD: 4910 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4911 esi = 0; /* 0x4706C8CD: xor esi, esi */ 4912 _cf = 0; 4913 _flag_k = FK_TEST; 4914 L_4706C8CF: 4915 PUSH32(esp, 0); /* 0x4706C8CF: push 0 */ 4916 PUSH32(esp, 0); /* 0x4706C8D1: push 0 */ 4917 PUSH32(esp, 0); /* 0x4706C8D3: push 0 */ 4918 ecx = esp + 0x20; /* 0x4706C8D5: lea ecx, [esp + 0x20] */ 4919 RECOMP_ICALL(0x470802D0u); /* 0x4706C8D9: call 0x470802d0 */ /* not lifted */ 4920 RECOMP_FLAGS_IN(); 4921 edi = POP32_VAL(esp); /* 0x4706C8DE: pop edi */ 4922 eax = esi; /* 0x4706C8DF: mov eax, esi */ 4923 esi = POP32_VAL(esp); /* 0x4706C8E1: pop esi */ 4924 ebp = POP32_VAL(esp); /* 0x4706C8E2: pop ebp */ 4925 ebx = POP32_VAL(esp); /* 0x4706C8E3: pop ebx */ 4926 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 4927 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4928 esp = esp + 0x18u; /* 0x4706C8E4: add esp, 0x18 */ 4929 _flag_k = FK_ADD; 4930 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4706C8E7: ret 8 */ 4931 RECOMP_REGS_OUT(); 4932 } 4933 4934 void sub_4706C8F0(void) { 4935 int _fpu_cmp = 0; 4936 uint32_t _cf = 0; 4937 int _df = 1; 4938 uint32_t _flag_k = FK_NONE; 4939 uint32_t _flag_a = 0, _flag_b = 0; 4940 uint32_t _itail_tgt = 0; 4941 RECOMP_REGS_LOCALS 4942 RECOMP_ENTER(0x4706C8F0u); 4943 4944 L_4706C8F0: 4945 PUSH32(esp, ecx); /* 0x4706C8F0: push ecx */ 4946 PUSH32(esp, ebx); /* 0x4706C8F1: push ebx */ 4947 PUSH32(esp, ebp); /* 0x4706C8F2: push ebp */ 4948 PUSH32(esp, esi); /* 0x4706C8F3: push esi */ 4949 esi = MEM32(esp + 0x14); /* 0x4706C8F4: mov esi, dword ptr [esp + 0x14] */ 4950 eax = MEM32(esi + 0xC); /* 0x4706C8F8: mov eax, dword ptr [esi + 0xc] */ 4951 PUSH32(esp, edi); /* 0x4706C8FB: push edi */ 4952 edi = ecx; /* 0x4706C8FC: mov edi, ecx */ 4953 ecx = esp + 0x10; /* 0x4706C8FE: lea ecx, [esp + 0x10] */ 4954 PUSH32(esp, ecx); /* 0x4706C902: push ecx */ 4955 PUSH32(esp, 0); /* 0x4706C903: push 0 */ 4956 edx = esp + 0x20; /* 0x4706C905: lea edx, [esp + 0x20] */ 4957 PUSH32(esp, edx); /* 0x4706C909: push edx */ 4958 PUSH32(esp, 0); /* 0x4706C90A: push 0 */ 4959 PUSH32(esp, eax); /* 0x4706C90C: push eax */ 4960 eax = MEM32(edi); /* 0x4706C90D: mov eax, dword ptr [edi] */ 4961 PUSH32(esp, eax); /* 0x4706C90F: push eax */ 4962 MEM32(esp + 0x28) = 0; /* 0x4706C910: mov dword ptr [esp + 0x28], 0 */ 4963 RECOMP_ICALL(MEM32(0x470AC020)); /* 0x4706C918: call dword ptr [0x470ac020] */ 4964 RECOMP_FLAGS_IN(); 4965 ebx = eax; /* 0x4706C91E: mov ebx, eax */ 4966 /* test ebx, ebx */ /* 0x4706C920: test ebx, ebx */ 4967 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 4968 _cf = 0; 4969 _flag_k = FK_TEST; 4970 if (TEST_Z(_flag_a, _flag_b)) goto L_4706C956; /* 0x4706C922: je 0x4706c956 */ 4971 L_4706C924: 4972 ebp = MEM32(0x470AC3C8); /* 0x4706C924: mov ebp, dword ptr [0x470ac3c8] */ 4973 RECOMP_ICALL(ebp); /* 0x4706C92A: call ebp */ 4974 RECOMP_FLAGS_IN(); 4975 MEM32(eax) = ebx; /* 0x4706C92C: mov dword ptr [eax], ebx */ 4976 eax = MEM32(esp + 0x1C); /* 0x4706C92E: mov eax, dword ptr [esp + 0x1c] */ 4977 ecx = MEM32(eax + 0x4); /* 0x4706C932: mov ecx, dword ptr [eax + 4] */ 4978 edx = MEM32(eax); /* 0x4706C935: mov edx, dword ptr [eax] */ 4979 eax = MEM32(eax + 0x8); /* 0x4706C937: mov eax, dword ptr [eax + 8] */ 4980 esi = MEM32(esi + 0xC); /* 0x4706C93A: mov esi, dword ptr [esi + 0xc] */ 4981 PUSH32(esp, ecx); /* 0x4706C93D: push ecx */ 4982 ecx = MEM32(edi); /* 0x4706C93E: mov ecx, dword ptr [edi] */ 4983 PUSH32(esp, edx); /* 0x4706C940: push edx */ 4984 PUSH32(esp, eax); /* 0x4706C941: push eax */ 4985 PUSH32(esp, 0); /* 0x4706C942: push 0 */ 4986 PUSH32(esp, esi); /* 0x4706C944: push esi */ 4987 PUSH32(esp, ecx); /* 0x4706C945: push ecx */ 4988 RECOMP_ICALL(MEM32(0x470AC01C)); /* 0x4706C946: call dword ptr [0x470ac01c] */ 4989 RECOMP_FLAGS_IN(); 4990 esi = eax; /* 0x4706C94C: mov esi, eax */ 4991 /* test esi, esi */ /* 0x4706C94E: test esi, esi */ 4992 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4993 _cf = 0; 4994 _flag_k = FK_TEST; 4995 if (TEST_Z(_flag_a, _flag_b)) goto L_4706C961; /* 0x4706C950: je 0x4706c961 */ 4996 L_4706C952: 4997 RECOMP_ICALL(ebp); /* 0x4706C952: call ebp */ 4998 RECOMP_FLAGS_IN(); 4999 MEM32(eax) = esi; /* 0x4706C954: mov dword ptr [eax], esi */ 5000 L_4706C956: 5001 edi = POP32_VAL(esp); /* 0x4706C956: pop edi */ 5002 esi = POP32_VAL(esp); /* 0x4706C957: pop esi */ 5003 ebp = POP32_VAL(esp); /* 0x4706C958: pop ebp */ 5004 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5005 eax = eax | 0xFFFFFFFFu; /* 0x4706C959: or eax, 0xffffffff */ 5006 _cf = 0; 5007 _flag_k = FK_TEST; 5008 ebx = POP32_VAL(esp); /* 0x4706C95C: pop ebx */ 5009 ecx = POP32_VAL(esp); /* 0x4706C95D: pop ecx */ 5010 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4706C95E: ret 8 */ 5011 L_4706C961: 5012 edi = POP32_VAL(esp); /* 0x4706C961: pop edi */ 5013 esi = POP32_VAL(esp); /* 0x4706C962: pop esi */ 5014 ebp = POP32_VAL(esp); /* 0x4706C963: pop ebp */ 5015 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5016 eax = 0; /* 0x4706C964: xor eax, eax */ 5017 _cf = 0; 5018 _flag_k = FK_TEST; 5019 ebx = POP32_VAL(esp); /* 0x4706C966: pop ebx */ 5020 ecx = POP32_VAL(esp); /* 0x4706C967: pop ecx */ 5021 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4706C968: ret 8 */ 5022 RECOMP_REGS_OUT(); 5023 }