client/vendor/ace/source/lifted-0047.c (352360B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 4 void sub_47068C80(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(0x47068C80u); 13 14 L_47068C80: 15 MEM32(0x4710EB00) = 0x471050FCu; /* 0x47068C80: mov dword ptr [0x4710eb00], 0x471050fc */ 16 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47068C8A: ret */ 17 RECOMP_REGS_OUT(); 18 } 19 20 void sub_47068C90(void) { 21 int _fpu_cmp = 0; 22 uint32_t _cf = 0; 23 int _df = 1; 24 uint32_t _flag_k = FK_NONE; 25 uint32_t _flag_a = 0, _flag_b = 0; 26 uint32_t _itail_tgt = 0; 27 RECOMP_REGS_LOCALS 28 RECOMP_ENTER(0x47068C90u); 29 30 L_47068C90: 31 PUSH32(esp, 0); /* 0x47068C90: push 0 */ 32 PUSH32(esp, 0x64u); /* 0x47068C92: push 0x64 */ 33 RECOMP_ICALL(0x47069290u); /* 0x47068C94: call 0x47069290 */ /* not lifted */ 34 RECOMP_FLAGS_IN(); 35 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47068C99: ret */ 36 RECOMP_REGS_OUT(); 37 } 38 39 void sub_47068CA0(void) { 40 int _fpu_cmp = 0; 41 uint32_t _cf = 0; 42 int _df = 1; 43 uint32_t _flag_k = FK_NONE; 44 uint32_t _flag_a = 0, _flag_b = 0; 45 uint32_t _itail_tgt = 0; 46 RECOMP_REGS_LOCALS 47 RECOMP_ENTER(0x47068CA0u); 48 49 L_47068CA0: 50 MEM32(0x4710EB0C) = 0x47109B5Cu; /* 0x47068CA0: mov dword ptr [0x4710eb0c], 0x47109b5c */ 51 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47068CAA: ret */ 52 RECOMP_REGS_OUT(); 53 } 54 55 void sub_47068CB0(void) { 56 int _fpu_cmp = 0; 57 uint32_t _cf = 0; 58 int _df = 1; 59 uint32_t _flag_k = FK_NONE; 60 uint32_t _flag_a = 0, _flag_b = 0; 61 uint32_t _itail_tgt = 0; 62 RECOMP_REGS_LOCALS 63 RECOMP_ENTER(0x47068CB0u); 64 65 L_47068CB0: 66 PUSH32(esp, esi); /* 0x47068CB0: push esi */ 67 esi = ecx; /* 0x47068CB1: mov esi, ecx */ 68 RECOMP_ICALL(0x47068CD0u); /* 0x47068CB3: call 0x47068cd0 */ /* not lifted */ 69 RECOMP_FLAGS_IN(); 70 /* test MEM8(esp + 0x8), 1 */ /* 0x47068CB8: test byte ptr [esp + 8], 1 */ 71 _flag_a = (uint32_t)(MEM8(esp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 72 _cf = 0; 73 _flag_k = FK_NARROW(FK_TEST, 24); 74 if (TEST_Z(_flag_a, _flag_b)) goto L_47068CC8; /* 0x47068CBD: je 0x47068cc8 */ 75 L_47068CBF: 76 PUSH32(esp, esi); /* 0x47068CBF: push esi */ 77 RECOMP_ICALL(0x470A32A2u); /* 0x47068CC0: call 0x470a32a2 */ /* not lifted */ 78 RECOMP_FLAGS_IN(); 79 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 80 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 81 esp = esp + 4; /* 0x47068CC5: add esp, 4 */ 82 _flag_k = FK_ADD; 83 L_47068CC8: 84 eax = esi; /* 0x47068CC8: mov eax, esi */ 85 esi = POP32_VAL(esp); /* 0x47068CCA: pop esi */ 86 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47068CCB: ret 4 */ 87 RECOMP_REGS_OUT(); 88 } 89 90 void sub_47068CD0(void) { 91 int _fpu_cmp = 0; 92 uint32_t _cf = 0; 93 int _df = 1; 94 uint32_t _flag_k = FK_NONE; 95 uint32_t _flag_a = 0, _flag_b = 0; 96 uint32_t _itail_tgt = 0; 97 RECOMP_REGS_LOCALS 98 RECOMP_ENTER(0x47068CD0u); 99 100 goto L_47068CD0; 101 L_47068140: 102 PUSH32(esp, ebp); /* 0x47068140: push ebp */ 103 PUSH32(esp, esi); /* 0x47068141: push esi */ 104 esi = ecx; /* 0x47068142: mov esi, ecx */ 105 eax = MEM32(esi + 0x8); /* 0x47068144: mov eax, dword ptr [esi + 8] */ 106 PUSH32(esp, edi); /* 0x47068147: push edi */ 107 edi = MEM32(0x470AC198); /* 0x47068148: mov edi, dword ptr [0x470ac198] */ 108 PUSH32(esp, eax); /* 0x4706814E: push eax */ 109 MEM32(esi) = 0x470AEA20u; /* 0x4706814F: mov dword ptr [esi], 0x470aea20 */ 110 RECOMP_ICALL(edi); /* 0x47068155: call edi */ 111 RECOMP_FLAGS_IN(); 112 /* test eax, eax */ /* 0x47068157: test eax, eax */ 113 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 114 _cf = 0; 115 _flag_k = FK_TEST; 116 ebp = MEM32(0x470AC3C8); /* 0x47068159: mov ebp, dword ptr [0x470ac3c8] */ 117 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706816F; /* 0x4706815F: jne 0x4706816f */ 118 L_47068161: 119 PUSH32(esp, ebx); /* 0x47068161: push ebx */ 120 RECOMP_ICALL(ebp); /* 0x47068162: call ebp */ 121 RECOMP_FLAGS_IN(); 122 ebx = eax; /* 0x47068164: mov ebx, eax */ 123 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47068166: call dword ptr [0x470ac150] */ 124 RECOMP_FLAGS_IN(); 125 MEM32(ebx) = eax; /* 0x4706816C: mov dword ptr [ebx], eax */ 126 ebx = POP32_VAL(esp); /* 0x4706816E: pop ebx */ 127 L_4706816F: 128 esi = MEM32(esi + 0x4); /* 0x4706816F: mov esi, dword ptr [esi + 4] */ 129 PUSH32(esp, esi); /* 0x47068172: push esi */ 130 RECOMP_ICALL(edi); /* 0x47068173: call edi */ 131 RECOMP_FLAGS_IN(); 132 /* test eax, eax */ /* 0x47068175: test eax, eax */ 133 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 134 _cf = 0; 135 _flag_k = FK_TEST; 136 if (TEST_NZ(_flag_a, _flag_b)) goto L_47068185; /* 0x47068177: jne 0x47068185 */ 137 L_47068179: 138 RECOMP_ICALL(ebp); /* 0x47068179: call ebp */ 139 RECOMP_FLAGS_IN(); 140 esi = eax; /* 0x4706817B: mov esi, eax */ 141 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4706817D: call dword ptr [0x470ac150] */ 142 RECOMP_FLAGS_IN(); 143 MEM32(esi) = eax; /* 0x47068183: mov dword ptr [esi], eax */ 144 L_47068185: 145 edi = POP32_VAL(esp); /* 0x47068185: pop edi */ 146 esi = POP32_VAL(esp); /* 0x47068186: pop esi */ 147 ebp = POP32_VAL(esp); /* 0x47068187: pop ebp */ 148 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47068188: ret */ 149 L_47068CD0: 150 MEM32(ecx) = 0x470AEA38u; /* 0x47068CD0: mov dword ptr [ecx], 0x470aea38 */ 151 RECOMP_BACKEDGE(); 152 goto L_47068140; /* 0x47068CD6: jmp 0x47068140 */ 153 { RECOMP_REGS_OUT(); return; } /* end of function */ 154 RECOMP_REGS_OUT(); 155 } 156 157 void sub_47068CE0(void) { 158 int _fpu_cmp = 0; 159 uint32_t _cf = 0; 160 int _df = 1; 161 uint32_t _flag_k = FK_NONE; 162 uint32_t _flag_a = 0, _flag_b = 0; 163 uint32_t _itail_tgt = 0; 164 RECOMP_REGS_LOCALS 165 RECOMP_ENTER(0x47068CE0u); 166 167 L_47068CE0: 168 /* test ecx, ecx */ /* 0x47068CE0: test ecx, ecx */ 169 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 170 _cf = 0; 171 _flag_k = FK_TEST; 172 if (TEST_Z(_flag_a, _flag_b)) goto L_47068CEA; /* 0x47068CE2: je 0x47068cea */ 173 L_47068CE4: 174 eax = MEM32(ecx); /* 0x47068CE4: mov eax, dword ptr [ecx] */ 175 PUSH32(esp, 1); /* 0x47068CE6: push 1 */ 176 RECOMP_ICALL(MEM32(eax)); /* 0x47068CE8: call dword ptr [eax] */ 177 RECOMP_FLAGS_IN(); 178 L_47068CEA: 179 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47068CEA: ret */ 180 RECOMP_REGS_OUT(); 181 } 182 183 void sub_47068CF0(void) { 184 int _fpu_cmp = 0; 185 uint32_t _cf = 0; 186 int _df = 1; 187 uint32_t _flag_k = FK_NONE; 188 uint32_t _flag_a = 0, _flag_b = 0; 189 uint32_t _itail_tgt = 0; 190 RECOMP_REGS_LOCALS 191 RECOMP_ENTER(0x47068CF0u); 192 193 L_47068CF0: 194 PUSH32(esp, ecx); /* 0x47068CF0: push ecx */ 195 PUSH32(esp, ebx); /* 0x47068CF1: push ebx */ 196 ebx = MEM32(0x470AC150); /* 0x47068CF2: mov ebx, dword ptr [0x470ac150] */ 197 PUSH32(esp, ebp); /* 0x47068CF8: push ebp */ 198 PUSH32(esp, esi); /* 0x47068CF9: push esi */ 199 PUSH32(esp, edi); /* 0x47068CFA: push edi */ 200 edi = ecx; /* 0x47068CFB: mov edi, ecx */ 201 RECOMP_ICALL(ebx); /* 0x47068CFD: call ebx */ 202 RECOMP_FLAGS_IN(); 203 ebp = MEM32(0x470AC3C8); /* 0x47068CFF: mov ebp, dword ptr [0x470ac3c8] */ 204 esi = eax; /* 0x47068D05: mov esi, eax */ 205 RECOMP_ICALL(ebp); /* 0x47068D07: call ebp */ 206 RECOMP_FLAGS_IN(); 207 eax = MEM32(eax); /* 0x47068D09: mov eax, dword ptr [eax] */ 208 /* test eax, eax */ /* 0x47068D0B: test eax, eax */ 209 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 210 _cf = 0; 211 _flag_k = FK_TEST; 212 MEM32(esp + 0x10) = esi; /* 0x47068D0D: mov dword ptr [esp + 0x10], esi */ 213 if (TEST_Z(_flag_a, _flag_b)) goto L_47068D17; /* 0x47068D11: je 0x47068d17 */ 214 L_47068D13: 215 MEM32(esp + 0x10) = eax; /* 0x47068D13: mov dword ptr [esp + 0x10], eax */ 216 L_47068D17: 217 RECOMP_ICALL(0x47039020u); /* 0x47068D17: call 0x47039020 */ /* not lifted */ 218 RECOMP_FLAGS_IN(); 219 esi = eax; /* 0x47068D1C: mov esi, eax */ 220 ecx = esi; /* 0x47068D1E: mov ecx, esi */ 221 RECOMP_ICALL(0x4703B210u); /* 0x47068D20: call 0x4703b210 */ /* not lifted */ 222 RECOMP_FLAGS_IN(); 223 PUSH32(esp, eax); /* 0x47068D25: push eax */ 224 ecx = esi; /* 0x47068D26: mov ecx, esi */ 225 RECOMP_ICALL(0x4703B240u); /* 0x47068D28: call 0x4703b240 */ /* not lifted */ 226 RECOMP_FLAGS_IN(); 227 PUSH32(esp, eax); /* 0x47068D2D: push eax */ 228 ecx = esi; /* 0x47068D2E: mov ecx, esi */ 229 RECOMP_ICALL(0x4703B080u); /* 0x47068D30: call 0x4703b080 */ /* not lifted */ 230 RECOMP_FLAGS_IN(); 231 PUSH32(esp, eax); /* 0x47068D35: push eax */ 232 eax = MEM32(esp + 0x1C); /* 0x47068D36: mov eax, dword ptr [esp + 0x1c] */ 233 PUSH32(esp, eax); /* 0x47068D3A: push eax */ 234 PUSH32(esp, 0); /* 0x47068D3B: push 0 */ 235 PUSH32(esp, 0x45u); /* 0x47068D3D: push 0x45 */ 236 PUSH32(esp, 0x47109BA8u); /* 0x47068D3F: push 0x47109ba8 */ 237 ecx = esi; /* 0x47068D44: mov ecx, esi */ 238 RECOMP_ICALL(0x4703A340u); /* 0x47068D46: call 0x4703a340 */ /* not lifted */ 239 RECOMP_FLAGS_IN(); 240 PUSH32(esp, edi); /* 0x47068D4B: push edi */ 241 PUSH32(esp, 0x471052CCu); /* 0x47068D4C: push 0x471052cc */ 242 PUSH32(esp, 4); /* 0x47068D51: push 4 */ 243 PUSH32(esp, esi); /* 0x47068D53: push esi */ 244 RECOMP_ICALL(0x47039830u); /* 0x47068D54: call 0x47039830 */ /* not lifted */ 245 RECOMP_FLAGS_IN(); 246 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 247 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 248 esp = esp + 0x10u; /* 0x47068D59: add esp, 0x10 */ 249 _flag_k = FK_ADD; 250 RECOMP_ICALL(ebx); /* 0x47068D5C: call ebx */ 251 RECOMP_FLAGS_IN(); 252 esi = eax; /* 0x47068D5E: mov esi, eax */ 253 RECOMP_ICALL(ebp); /* 0x47068D60: call ebp */ 254 RECOMP_FLAGS_IN(); 255 eax = MEM32(eax); /* 0x47068D62: mov eax, dword ptr [eax] */ 256 /* test eax, eax */ /* 0x47068D64: test eax, eax */ 257 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 258 _cf = 0; 259 _flag_k = FK_TEST; 260 MEM32(esp + 0x10) = esi; /* 0x47068D66: mov dword ptr [esp + 0x10], esi */ 261 if (TEST_Z(_flag_a, _flag_b)) goto L_47068D70; /* 0x47068D6A: je 0x47068d70 */ 262 L_47068D6C: 263 MEM32(esp + 0x10) = eax; /* 0x47068D6C: mov dword ptr [esp + 0x10], eax */ 264 L_47068D70: 265 RECOMP_ICALL(0x47039020u); /* 0x47068D70: call 0x47039020 */ /* not lifted */ 266 RECOMP_FLAGS_IN(); 267 esi = eax; /* 0x47068D75: mov esi, eax */ 268 ecx = esi; /* 0x47068D77: mov ecx, esi */ 269 RECOMP_ICALL(0x4703B210u); /* 0x47068D79: call 0x4703b210 */ /* not lifted */ 270 RECOMP_FLAGS_IN(); 271 PUSH32(esp, eax); /* 0x47068D7E: push eax */ 272 ecx = esi; /* 0x47068D7F: mov ecx, esi */ 273 RECOMP_ICALL(0x4703B240u); /* 0x47068D81: call 0x4703b240 */ /* not lifted */ 274 RECOMP_FLAGS_IN(); 275 PUSH32(esp, eax); /* 0x47068D86: push eax */ 276 ecx = esi; /* 0x47068D87: mov ecx, esi */ 277 RECOMP_ICALL(0x4703B080u); /* 0x47068D89: call 0x4703b080 */ /* not lifted */ 278 RECOMP_FLAGS_IN(); 279 ecx = MEM32(esp + 0x18); /* 0x47068D8E: mov ecx, dword ptr [esp + 0x18] */ 280 PUSH32(esp, eax); /* 0x47068D92: push eax */ 281 PUSH32(esp, ecx); /* 0x47068D93: push ecx */ 282 PUSH32(esp, 0); /* 0x47068D94: push 0 */ 283 PUSH32(esp, 0x48u); /* 0x47068D96: push 0x48 */ 284 PUSH32(esp, 0x47109BA8u); /* 0x47068D98: push 0x47109ba8 */ 285 ecx = esi; /* 0x47068D9D: mov ecx, esi */ 286 RECOMP_ICALL(0x4703A340u); /* 0x47068D9F: call 0x4703a340 */ /* not lifted */ 287 RECOMP_FLAGS_IN(); 288 edx = MEM32(edi); /* 0x47068DA4: mov edx, dword ptr [edi] */ 289 eax = MEM32(edx + 0xC); /* 0x47068DA6: mov eax, dword ptr [edx + 0xc] */ 290 PUSH32(esp, eax); /* 0x47068DA9: push eax */ 291 PUSH32(esp, 0x47109B98u); /* 0x47068DAA: push 0x47109b98 */ 292 PUSH32(esp, 4); /* 0x47068DAF: push 4 */ 293 PUSH32(esp, esi); /* 0x47068DB1: push esi */ 294 RECOMP_ICALL(0x47039830u); /* 0x47068DB2: call 0x47039830 */ /* not lifted */ 295 RECOMP_FLAGS_IN(); 296 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 297 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 298 esp = esp + 0x10u; /* 0x47068DB7: add esp, 0x10 */ 299 _flag_k = FK_ADD; 300 RECOMP_ICALL(ebx); /* 0x47068DBA: call ebx */ 301 RECOMP_FLAGS_IN(); 302 esi = eax; /* 0x47068DBC: mov esi, eax */ 303 RECOMP_ICALL(ebp); /* 0x47068DBE: call ebp */ 304 RECOMP_FLAGS_IN(); 305 eax = MEM32(eax); /* 0x47068DC0: mov eax, dword ptr [eax] */ 306 /* test eax, eax */ /* 0x47068DC2: test eax, eax */ 307 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 308 _cf = 0; 309 _flag_k = FK_TEST; 310 edi = esi; /* 0x47068DC4: mov edi, esi */ 311 if (TEST_Z(_flag_a, _flag_b)) goto L_47068DCA; /* 0x47068DC6: je 0x47068dca */ 312 L_47068DC8: 313 edi = eax; /* 0x47068DC8: mov edi, eax */ 314 L_47068DCA: 315 RECOMP_ICALL(0x47039020u); /* 0x47068DCA: call 0x47039020 */ /* not lifted */ 316 RECOMP_FLAGS_IN(); 317 esi = eax; /* 0x47068DCF: mov esi, eax */ 318 ecx = esi; /* 0x47068DD1: mov ecx, esi */ 319 RECOMP_ICALL(0x4703B210u); /* 0x47068DD3: call 0x4703b210 */ /* not lifted */ 320 RECOMP_FLAGS_IN(); 321 PUSH32(esp, eax); /* 0x47068DD8: push eax */ 322 ecx = esi; /* 0x47068DD9: mov ecx, esi */ 323 RECOMP_ICALL(0x4703B240u); /* 0x47068DDB: call 0x4703b240 */ /* not lifted */ 324 RECOMP_FLAGS_IN(); 325 PUSH32(esp, eax); /* 0x47068DE0: push eax */ 326 ecx = esi; /* 0x47068DE1: mov ecx, esi */ 327 RECOMP_ICALL(0x4703B080u); /* 0x47068DE3: call 0x4703b080 */ /* not lifted */ 328 RECOMP_FLAGS_IN(); 329 PUSH32(esp, eax); /* 0x47068DE8: push eax */ 330 PUSH32(esp, edi); /* 0x47068DE9: push edi */ 331 PUSH32(esp, 0); /* 0x47068DEA: push 0 */ 332 PUSH32(esp, 0x4Au); /* 0x47068DEC: push 0x4a */ 333 PUSH32(esp, 0x47109BA8u); /* 0x47068DEE: push 0x47109ba8 */ 334 ecx = esi; /* 0x47068DF3: mov ecx, esi */ 335 RECOMP_ICALL(0x4703A340u); /* 0x47068DF5: call 0x4703a340 */ /* not lifted */ 336 RECOMP_FLAGS_IN(); 337 PUSH32(esp, 0x4710529Cu); /* 0x47068DFA: push 0x4710529c */ 338 PUSH32(esp, 4); /* 0x47068DFF: push 4 */ 339 PUSH32(esp, esi); /* 0x47068E01: push esi */ 340 RECOMP_ICALL(0x47039830u); /* 0x47068E02: call 0x47039830 */ /* not lifted */ 341 RECOMP_FLAGS_IN(); 342 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 343 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 344 esp = esp + 0xCu; /* 0x47068E07: add esp, 0xc */ 345 _flag_k = FK_ADD; 346 edi = POP32_VAL(esp); /* 0x47068E0A: pop edi */ 347 esi = POP32_VAL(esp); /* 0x47068E0B: pop esi */ 348 ebp = POP32_VAL(esp); /* 0x47068E0C: pop ebp */ 349 ebx = POP32_VAL(esp); /* 0x47068E0D: pop ebx */ 350 ecx = POP32_VAL(esp); /* 0x47068E0E: pop ecx */ 351 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47068E0F: ret */ 352 RECOMP_REGS_OUT(); 353 } 354 355 void sub_47068E10(void) { 356 int _fpu_cmp = 0; 357 uint32_t _cf = 0; 358 int _df = 1; 359 uint32_t _flag_k = FK_NONE; 360 uint32_t _flag_a = 0, _flag_b = 0; 361 uint32_t _itail_tgt = 0; 362 RECOMP_REGS_LOCALS 363 RECOMP_ENTER(0x47068E10u); 364 365 L_47068E10: 366 PUSH32(esp, ecx); /* 0x47068E10: push ecx */ 367 PUSH32(esp, ebx); /* 0x47068E11: push ebx */ 368 ebx = MEM32(0x470AC150); /* 0x47068E12: mov ebx, dword ptr [0x470ac150] */ 369 PUSH32(esp, ebp); /* 0x47068E18: push ebp */ 370 PUSH32(esp, esi); /* 0x47068E19: push esi */ 371 PUSH32(esp, edi); /* 0x47068E1A: push edi */ 372 edi = ecx; /* 0x47068E1B: mov edi, ecx */ 373 RECOMP_ICALL(ebx); /* 0x47068E1D: call ebx */ 374 RECOMP_FLAGS_IN(); 375 ebp = MEM32(0x470AC3C8); /* 0x47068E1F: mov ebp, dword ptr [0x470ac3c8] */ 376 esi = eax; /* 0x47068E25: mov esi, eax */ 377 RECOMP_ICALL(ebp); /* 0x47068E27: call ebp */ 378 RECOMP_FLAGS_IN(); 379 eax = MEM32(eax); /* 0x47068E29: mov eax, dword ptr [eax] */ 380 /* test eax, eax */ /* 0x47068E2B: test eax, eax */ 381 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 382 _cf = 0; 383 _flag_k = FK_TEST; 384 MEM32(esp + 0x10) = esi; /* 0x47068E2D: mov dword ptr [esp + 0x10], esi */ 385 if (TEST_Z(_flag_a, _flag_b)) goto L_47068E37; /* 0x47068E31: je 0x47068e37 */ 386 L_47068E33: 387 MEM32(esp + 0x10) = eax; /* 0x47068E33: mov dword ptr [esp + 0x10], eax */ 388 L_47068E37: 389 RECOMP_ICALL(0x47039020u); /* 0x47068E37: call 0x47039020 */ /* not lifted */ 390 RECOMP_FLAGS_IN(); 391 esi = eax; /* 0x47068E3C: mov esi, eax */ 392 ecx = esi; /* 0x47068E3E: mov ecx, esi */ 393 RECOMP_ICALL(0x4703B210u); /* 0x47068E40: call 0x4703b210 */ /* not lifted */ 394 RECOMP_FLAGS_IN(); 395 PUSH32(esp, eax); /* 0x47068E45: push eax */ 396 ecx = esi; /* 0x47068E46: mov ecx, esi */ 397 RECOMP_ICALL(0x4703B240u); /* 0x47068E48: call 0x4703b240 */ /* not lifted */ 398 RECOMP_FLAGS_IN(); 399 PUSH32(esp, eax); /* 0x47068E4D: push eax */ 400 ecx = esi; /* 0x47068E4E: mov ecx, esi */ 401 RECOMP_ICALL(0x4703B080u); /* 0x47068E50: call 0x4703b080 */ /* not lifted */ 402 RECOMP_FLAGS_IN(); 403 PUSH32(esp, eax); /* 0x47068E55: push eax */ 404 eax = MEM32(esp + 0x1C); /* 0x47068E56: mov eax, dword ptr [esp + 0x1c] */ 405 PUSH32(esp, eax); /* 0x47068E5A: push eax */ 406 PUSH32(esp, 0); /* 0x47068E5B: push 0 */ 407 PUSH32(esp, 0x52u); /* 0x47068E5D: push 0x52 */ 408 PUSH32(esp, 0x47109BA8u); /* 0x47068E5F: push 0x47109ba8 */ 409 ecx = esi; /* 0x47068E64: mov ecx, esi */ 410 RECOMP_ICALL(0x4703A340u); /* 0x47068E66: call 0x4703a340 */ /* not lifted */ 411 RECOMP_FLAGS_IN(); 412 PUSH32(esp, edi); /* 0x47068E6B: push edi */ 413 PUSH32(esp, 0x471052CCu); /* 0x47068E6C: push 0x471052cc */ 414 PUSH32(esp, 4); /* 0x47068E71: push 4 */ 415 PUSH32(esp, esi); /* 0x47068E73: push esi */ 416 RECOMP_ICALL(0x47039830u); /* 0x47068E74: call 0x47039830 */ /* not lifted */ 417 RECOMP_FLAGS_IN(); 418 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 419 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 420 esp = esp + 0x10u; /* 0x47068E79: add esp, 0x10 */ 421 _flag_k = FK_ADD; 422 RECOMP_ICALL(ebx); /* 0x47068E7C: call ebx */ 423 RECOMP_FLAGS_IN(); 424 esi = eax; /* 0x47068E7E: mov esi, eax */ 425 RECOMP_ICALL(ebp); /* 0x47068E80: call ebp */ 426 RECOMP_FLAGS_IN(); 427 eax = MEM32(eax); /* 0x47068E82: mov eax, dword ptr [eax] */ 428 /* test eax, eax */ /* 0x47068E84: test eax, eax */ 429 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 430 _cf = 0; 431 _flag_k = FK_TEST; 432 MEM32(esp + 0x10) = esi; /* 0x47068E86: mov dword ptr [esp + 0x10], esi */ 433 if (TEST_Z(_flag_a, _flag_b)) goto L_47068E90; /* 0x47068E8A: je 0x47068e90 */ 434 L_47068E8C: 435 MEM32(esp + 0x10) = eax; /* 0x47068E8C: mov dword ptr [esp + 0x10], eax */ 436 L_47068E90: 437 RECOMP_ICALL(0x47039020u); /* 0x47068E90: call 0x47039020 */ /* not lifted */ 438 RECOMP_FLAGS_IN(); 439 esi = eax; /* 0x47068E95: mov esi, eax */ 440 ecx = esi; /* 0x47068E97: mov ecx, esi */ 441 RECOMP_ICALL(0x4703B210u); /* 0x47068E99: call 0x4703b210 */ /* not lifted */ 442 RECOMP_FLAGS_IN(); 443 PUSH32(esp, eax); /* 0x47068E9E: push eax */ 444 ecx = esi; /* 0x47068E9F: mov ecx, esi */ 445 RECOMP_ICALL(0x4703B240u); /* 0x47068EA1: call 0x4703b240 */ /* not lifted */ 446 RECOMP_FLAGS_IN(); 447 PUSH32(esp, eax); /* 0x47068EA6: push eax */ 448 ecx = esi; /* 0x47068EA7: mov ecx, esi */ 449 RECOMP_ICALL(0x4703B080u); /* 0x47068EA9: call 0x4703b080 */ /* not lifted */ 450 RECOMP_FLAGS_IN(); 451 ecx = MEM32(esp + 0x18); /* 0x47068EAE: mov ecx, dword ptr [esp + 0x18] */ 452 PUSH32(esp, eax); /* 0x47068EB2: push eax */ 453 PUSH32(esp, ecx); /* 0x47068EB3: push ecx */ 454 PUSH32(esp, 0); /* 0x47068EB4: push 0 */ 455 PUSH32(esp, 0x54u); /* 0x47068EB6: push 0x54 */ 456 PUSH32(esp, 0x47109BA8u); /* 0x47068EB8: push 0x47109ba8 */ 457 ecx = esi; /* 0x47068EBD: mov ecx, esi */ 458 RECOMP_ICALL(0x4703A340u); /* 0x47068EBF: call 0x4703a340 */ /* not lifted */ 459 RECOMP_FLAGS_IN(); 460 edx = MEM32(edi + 0x10); /* 0x47068EC4: mov edx, dword ptr [edi + 0x10] */ 461 PUSH32(esp, edx); /* 0x47068EC7: push edx */ 462 PUSH32(esp, 0x47109C00u); /* 0x47068EC8: push 0x47109c00 */ 463 PUSH32(esp, 4); /* 0x47068ECD: push 4 */ 464 PUSH32(esp, esi); /* 0x47068ECF: push esi */ 465 RECOMP_ICALL(0x47039830u); /* 0x47068ED0: call 0x47039830 */ /* not lifted */ 466 RECOMP_FLAGS_IN(); 467 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 468 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 469 esp = esp + 0x10u; /* 0x47068ED5: add esp, 0x10 */ 470 _flag_k = FK_ADD; 471 RECOMP_ICALL(ebx); /* 0x47068ED8: call ebx */ 472 RECOMP_FLAGS_IN(); 473 esi = eax; /* 0x47068EDA: mov esi, eax */ 474 RECOMP_ICALL(ebp); /* 0x47068EDC: call ebp */ 475 RECOMP_FLAGS_IN(); 476 eax = MEM32(eax); /* 0x47068EDE: mov eax, dword ptr [eax] */ 477 /* test eax, eax */ /* 0x47068EE0: test eax, eax */ 478 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 479 _cf = 0; 480 _flag_k = FK_TEST; 481 MEM32(esp + 0x10) = esi; /* 0x47068EE2: mov dword ptr [esp + 0x10], esi */ 482 if (TEST_Z(_flag_a, _flag_b)) goto L_47068EEC; /* 0x47068EE6: je 0x47068eec */ 483 L_47068EE8: 484 MEM32(esp + 0x10) = eax; /* 0x47068EE8: mov dword ptr [esp + 0x10], eax */ 485 L_47068EEC: 486 RECOMP_ICALL(0x47039020u); /* 0x47068EEC: call 0x47039020 */ /* not lifted */ 487 RECOMP_FLAGS_IN(); 488 esi = eax; /* 0x47068EF1: mov esi, eax */ 489 ecx = esi; /* 0x47068EF3: mov ecx, esi */ 490 RECOMP_ICALL(0x4703B210u); /* 0x47068EF5: call 0x4703b210 */ /* not lifted */ 491 RECOMP_FLAGS_IN(); 492 PUSH32(esp, eax); /* 0x47068EFA: push eax */ 493 ecx = esi; /* 0x47068EFB: mov ecx, esi */ 494 RECOMP_ICALL(0x4703B240u); /* 0x47068EFD: call 0x4703b240 */ /* not lifted */ 495 RECOMP_FLAGS_IN(); 496 PUSH32(esp, eax); /* 0x47068F02: push eax */ 497 ecx = esi; /* 0x47068F03: mov ecx, esi */ 498 RECOMP_ICALL(0x4703B080u); /* 0x47068F05: call 0x4703b080 */ /* not lifted */ 499 RECOMP_FLAGS_IN(); 500 PUSH32(esp, eax); /* 0x47068F0A: push eax */ 501 eax = MEM32(esp + 0x1C); /* 0x47068F0B: mov eax, dword ptr [esp + 0x1c] */ 502 PUSH32(esp, eax); /* 0x47068F0F: push eax */ 503 PUSH32(esp, 0); /* 0x47068F10: push 0 */ 504 PUSH32(esp, 0x55u); /* 0x47068F12: push 0x55 */ 505 PUSH32(esp, 0x47109BA8u); /* 0x47068F14: push 0x47109ba8 */ 506 ecx = esi; /* 0x47068F19: mov ecx, esi */ 507 RECOMP_ICALL(0x4703A340u); /* 0x47068F1B: call 0x4703a340 */ /* not lifted */ 508 RECOMP_FLAGS_IN(); 509 ecx = MEM32(edi + 0x14); /* 0x47068F20: mov ecx, dword ptr [edi + 0x14] */ 510 PUSH32(esp, ecx); /* 0x47068F23: push ecx */ 511 PUSH32(esp, 0x47109BE8u); /* 0x47068F24: push 0x47109be8 */ 512 PUSH32(esp, 4); /* 0x47068F29: push 4 */ 513 PUSH32(esp, esi); /* 0x47068F2B: push esi */ 514 RECOMP_ICALL(0x47039830u); /* 0x47068F2C: call 0x47039830 */ /* not lifted */ 515 RECOMP_FLAGS_IN(); 516 eax = MEM32(edi + 0x14); /* 0x47068F31: mov eax, dword ptr [edi + 0x14] */ 517 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 518 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 519 esp = esp + 0x10u; /* 0x47068F34: add esp, 0x10 */ 520 _flag_k = FK_ADD; 521 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 522 esi = 0; /* 0x47068F37: xor esi, esi */ 523 _cf = 0; 524 _flag_k = FK_TEST; 525 /* test eax, eax */ /* 0x47068F39: test eax, eax */ 526 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 527 _cf = 0; 528 _flag_k = FK_TEST; 529 if (TEST_Z(_flag_a, _flag_b)) goto L_47068F50; /* 0x47068F3B: jbe 0x47068f50 */ 530 L_47068F3D: 531 edx = MEM32(edi + 0xC); /* 0x47068F3D: mov edx, dword ptr [edi + 0xc] */ 532 ecx = edx + esi * 8; /* 0x47068F40: lea ecx, [edx + esi*8] */ 533 RECOMP_ICALL(0x47068CF0u); /* 0x47068F43: call 0x47068cf0 */ /* not lifted */ 534 RECOMP_FLAGS_IN(); 535 eax = MEM32(edi + 0x14); /* 0x47068F48: mov eax, dword ptr [edi + 0x14] */ 536 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 537 esi = esi + 1; /* 0x47068F4B: inc esi */ 538 _flag_k = FK_INC; 539 /* cmp esi, eax */ /* 0x47068F4C: cmp esi, eax */ 540 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 541 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 542 _flag_k = FK_CMP; 543 RECOMP_BACKEDGE(); 544 if (CMP_B(_flag_a, _flag_b)) goto L_47068F3D; /* 0x47068F4E: jb 0x47068f3d */ 545 L_47068F50: 546 RECOMP_ICALL(ebx); /* 0x47068F50: call ebx */ 547 RECOMP_FLAGS_IN(); 548 edi = eax; /* 0x47068F52: mov edi, eax */ 549 RECOMP_ICALL(ebp); /* 0x47068F54: call ebp */ 550 RECOMP_FLAGS_IN(); 551 eax = MEM32(eax); /* 0x47068F56: mov eax, dword ptr [eax] */ 552 /* test eax, eax */ /* 0x47068F58: test eax, eax */ 553 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 554 _cf = 0; 555 _flag_k = FK_TEST; 556 if (TEST_Z(_flag_a, _flag_b)) goto L_47068F5E; /* 0x47068F5A: je 0x47068f5e */ 557 L_47068F5C: 558 edi = eax; /* 0x47068F5C: mov edi, eax */ 559 L_47068F5E: 560 RECOMP_ICALL(0x47039020u); /* 0x47068F5E: call 0x47039020 */ /* not lifted */ 561 RECOMP_FLAGS_IN(); 562 esi = eax; /* 0x47068F63: mov esi, eax */ 563 ecx = esi; /* 0x47068F65: mov ecx, esi */ 564 RECOMP_ICALL(0x4703B210u); /* 0x47068F67: call 0x4703b210 */ /* not lifted */ 565 RECOMP_FLAGS_IN(); 566 PUSH32(esp, eax); /* 0x47068F6C: push eax */ 567 ecx = esi; /* 0x47068F6D: mov ecx, esi */ 568 RECOMP_ICALL(0x4703B240u); /* 0x47068F6F: call 0x4703b240 */ /* not lifted */ 569 RECOMP_FLAGS_IN(); 570 PUSH32(esp, eax); /* 0x47068F74: push eax */ 571 ecx = esi; /* 0x47068F75: mov ecx, esi */ 572 RECOMP_ICALL(0x4703B080u); /* 0x47068F77: call 0x4703b080 */ /* not lifted */ 573 RECOMP_FLAGS_IN(); 574 PUSH32(esp, eax); /* 0x47068F7C: push eax */ 575 PUSH32(esp, edi); /* 0x47068F7D: push edi */ 576 PUSH32(esp, 0); /* 0x47068F7E: push 0 */ 577 PUSH32(esp, 0x5Au); /* 0x47068F80: push 0x5a */ 578 PUSH32(esp, 0x47109BA8u); /* 0x47068F82: push 0x47109ba8 */ 579 ecx = esi; /* 0x47068F87: mov ecx, esi */ 580 RECOMP_ICALL(0x4703A340u); /* 0x47068F89: call 0x4703a340 */ /* not lifted */ 581 RECOMP_FLAGS_IN(); 582 PUSH32(esp, 0x4710529Cu); /* 0x47068F8E: push 0x4710529c */ 583 PUSH32(esp, 4); /* 0x47068F93: push 4 */ 584 PUSH32(esp, esi); /* 0x47068F95: push esi */ 585 RECOMP_ICALL(0x47039830u); /* 0x47068F96: call 0x47039830 */ /* not lifted */ 586 RECOMP_FLAGS_IN(); 587 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 588 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 589 esp = esp + 0xCu; /* 0x47068F9B: add esp, 0xc */ 590 _flag_k = FK_ADD; 591 edi = POP32_VAL(esp); /* 0x47068F9E: pop edi */ 592 esi = POP32_VAL(esp); /* 0x47068F9F: pop esi */ 593 ebp = POP32_VAL(esp); /* 0x47068FA0: pop ebp */ 594 ebx = POP32_VAL(esp); /* 0x47068FA1: pop ebx */ 595 ecx = POP32_VAL(esp); /* 0x47068FA2: pop ecx */ 596 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47068FA3: ret */ 597 RECOMP_REGS_OUT(); 598 } 599 600 void sub_47068FB0(void) { 601 int _fpu_cmp = 0; 602 uint32_t _cf = 0; 603 int _df = 1; 604 uint32_t _flag_k = FK_NONE; 605 uint32_t _flag_a = 0, _flag_b = 0; 606 uint32_t _itail_tgt = 0; 607 RECOMP_REGS_LOCALS 608 RECOMP_ENTER(0x47068FB0u); 609 610 L_47068FB0: 611 eax = MEM32(FS_BASE + (0)); /* 0x47068FB0: mov eax, dword ptr fs:[0] */ 612 PUSH32(esp, 0xFFFFFFFFu); /* 0x47068FB6: push -1 */ 613 PUSH32(esp, 0x470A8713u); /* 0x47068FB8: push 0x470a8713 */ 614 PUSH32(esp, eax); /* 0x47068FBD: push eax */ 615 eax = MEM32(0x4710EB10); /* 0x47068FBE: mov eax, dword ptr [0x4710eb10] */ 616 MEM32(FS_BASE + (0)) = esp; /* 0x47068FC3: mov dword ptr fs:[0], esp */ 617 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 618 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 619 esp = esp - 0xCu; /* 0x47068FCA: sub esp, 0xc */ 620 _flag_k = FK_CMP; 621 /* test eax, eax */ /* 0x47068FCD: test eax, eax */ 622 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 623 _cf = 0; 624 _flag_k = FK_TEST; 625 PUSH32(esp, esi); /* 0x47068FCF: push esi */ 626 if (TEST_NZ(_flag_a, _flag_b)) goto L_47069089; /* 0x47068FD0: jne 0x47069089 */ 627 L_47068FD6: 628 RECOMP_ICALL(0x47053420u); /* 0x47068FD6: call 0x47053420 */ /* not lifted */ 629 RECOMP_FLAGS_IN(); 630 esi = eax; /* 0x47068FDB: mov esi, eax */ 631 ecx = esi; /* 0x47068FDD: mov ecx, esi */ 632 MEM32(esp + 0x8) = esi; /* 0x47068FDF: mov dword ptr [esp + 8], esi */ 633 RECOMP_ICALL(0x470870D0u); /* 0x47068FE3: call 0x470870d0 */ /* not lifted */ 634 RECOMP_FLAGS_IN(); 635 MEM32(esp + 0xC) = eax; /* 0x47068FE8: mov dword ptr [esp + 0xc], eax */ 636 /* cmp eax, 0xFFFFFFFFu */ /* 0x47068FEC: cmp eax, -1 */ 637 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 638 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 639 _flag_k = FK_CMP; 640 MEM32(esp + 0x18) = 0; /* 0x47068FEF: mov dword ptr [esp + 0x18], 0 */ 641 if (CMP_NE(_flag_a, _flag_b)) goto L_4706900B; /* 0x47068FF7: jne 0x4706900b */ 642 L_47068FF9: 643 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 644 eax = 0; /* 0x47068FF9: xor eax, eax */ 645 _cf = 0; 646 _flag_k = FK_TEST; 647 esi = POP32_VAL(esp); /* 0x47068FFB: pop esi */ 648 ecx = MEM32(esp + 0xC); /* 0x47068FFC: mov ecx, dword ptr [esp + 0xc] */ 649 MEM32(FS_BASE + (0)) = ecx; /* 0x47069000: mov dword ptr fs:[0], ecx */ 650 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 651 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 652 esp = esp + 0x18u; /* 0x47069007: add esp, 0x18 */ 653 _flag_k = FK_ADD; 654 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706900A: ret */ 655 L_4706900B: 656 eax = MEM32(0x4710EB10); /* 0x4706900B: mov eax, dword ptr [0x4710eb10] */ 657 /* test eax, eax */ /* 0x47069010: test eax, eax */ 658 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 659 _cf = 0; 660 _flag_k = FK_TEST; 661 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706907A; /* 0x47069012: jne 0x4706907a */ 662 L_47069014: 663 PUSH32(esp, 0x38u); /* 0x47069014: push 0x38 */ 664 RECOMP_ICALL(0x470A33F2u); /* 0x47069016: call 0x470a33f2 */ /* not lifted */ 665 RECOMP_FLAGS_IN(); 666 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 667 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 668 esp = esp + 4; /* 0x4706901B: add esp, 4 */ 669 _flag_k = FK_ADD; 670 MEM32(esp + 0x4) = eax; /* 0x4706901E: mov dword ptr [esp + 4], eax */ 671 /* test eax, eax */ /* 0x47069022: test eax, eax */ 672 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 673 _cf = 0; 674 _flag_k = FK_TEST; 675 MEM8(esp + 0x18) = (uint8_t)(1); /* 0x47069024: mov byte ptr [esp + 0x18], 1 */ 676 if (TEST_Z(_flag_a, _flag_b)) goto L_47069038; /* 0x47069029: je 0x47069038 */ 677 L_4706902B: 678 PUSH32(esp, 0); /* 0x4706902B: push 0 */ 679 PUSH32(esp, 0x64u); /* 0x4706902D: push 0x64 */ 680 ecx = eax; /* 0x4706902F: mov ecx, eax */ 681 RECOMP_ICALL(0x47069290u); /* 0x47069031: call 0x47069290 */ /* not lifted */ 682 RECOMP_FLAGS_IN(); 683 goto L_4706903A; /* 0x47069036: jmp 0x4706903a */ 684 L_47069038: 685 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 686 eax = 0; /* 0x47069038: xor eax, eax */ 687 _cf = 0; 688 _flag_k = FK_TEST; 689 L_4706903A: 690 /* test eax, eax */ /* 0x4706903A: test eax, eax */ 691 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 692 _cf = 0; 693 _flag_k = FK_TEST; 694 MEM32(0x4710EB10) = eax; /* 0x4706903C: mov dword ptr [0x4710eb10], eax */ 695 if (TEST_NZ(_flag_a, _flag_b)) goto L_47069070; /* 0x47069041: jne 0x47069070 */ 696 L_47069043: 697 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47069043: call dword ptr [0x470ac3c8] */ 698 RECOMP_FLAGS_IN(); 699 ecx = esi; /* 0x47069049: mov ecx, esi */ 700 MEM32(eax) = 0xCu; /* 0x4706904B: mov dword ptr [eax], 0xc */ 701 MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x47069051: mov dword ptr [esp + 0x18], 0xffffffff */ 702 RECOMP_ICALL(0x470870E0u); /* 0x47069059: call 0x470870e0 */ /* not lifted */ 703 RECOMP_FLAGS_IN(); 704 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 705 eax = 0; /* 0x4706905E: xor eax, eax */ 706 _cf = 0; 707 _flag_k = FK_TEST; 708 esi = POP32_VAL(esp); /* 0x47069060: pop esi */ 709 ecx = MEM32(esp + 0xC); /* 0x47069061: mov ecx, dword ptr [esp + 0xc] */ 710 MEM32(FS_BASE + (0)) = ecx; /* 0x47069065: mov dword ptr fs:[0], ecx */ 711 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 712 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 713 esp = esp + 0x18u; /* 0x4706906C: add esp, 0x18 */ 714 _flag_k = FK_ADD; 715 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706906F: ret */ 716 L_47069070: 717 MEM32(0x4710EB14) = 1; /* 0x47069070: mov dword ptr [0x4710eb14], 1 */ 718 L_4706907A: 719 ecx = esi; /* 0x4706907A: mov ecx, esi */ 720 MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x4706907C: mov dword ptr [esp + 0x18], 0xffffffff */ 721 RECOMP_ICALL(0x470870E0u); /* 0x47069084: call 0x470870e0 */ /* not lifted */ 722 RECOMP_FLAGS_IN(); 723 L_47069089: 724 ecx = MEM32(esp + 0x10); /* 0x47069089: mov ecx, dword ptr [esp + 0x10] */ 725 eax = MEM32(0x4710EB10); /* 0x4706908D: mov eax, dword ptr [0x4710eb10] */ 726 esi = POP32_VAL(esp); /* 0x47069092: pop esi */ 727 MEM32(FS_BASE + (0)) = ecx; /* 0x47069093: mov dword ptr fs:[0], ecx */ 728 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 729 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 730 esp = esp + 0x18u; /* 0x4706909A: add esp, 0x18 */ 731 _flag_k = FK_ADD; 732 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706909D: ret */ 733 RECOMP_REGS_OUT(); 734 } 735 736 void sub_470690A0(void) { 737 int _fpu_cmp = 0; 738 uint32_t _cf = 0; 739 int _df = 1; 740 uint32_t _flag_k = FK_NONE; 741 uint32_t _flag_a = 0, _flag_b = 0; 742 uint32_t _itail_tgt = 0; 743 RECOMP_REGS_LOCALS 744 RECOMP_ENTER(0x470690A0u); 745 746 L_470690A0: 747 eax = MEM32(FS_BASE + (0)); /* 0x470690A0: mov eax, dword ptr fs:[0] */ 748 PUSH32(esp, 0xFFFFFFFFu); /* 0x470690A6: push -1 */ 749 PUSH32(esp, 0x470A8728u); /* 0x470690A8: push 0x470a8728 */ 750 PUSH32(esp, eax); /* 0x470690AD: push eax */ 751 MEM32(FS_BASE + (0)) = esp; /* 0x470690AE: mov dword ptr fs:[0], esp */ 752 PUSH32(esp, esi); /* 0x470690B5: push esi */ 753 PUSH32(esp, edi); /* 0x470690B6: push edi */ 754 RECOMP_ICALL(0x47053420u); /* 0x470690B7: call 0x47053420 */ /* not lifted */ 755 RECOMP_FLAGS_IN(); 756 esi = eax; /* 0x470690BC: mov esi, eax */ 757 ecx = esi; /* 0x470690BE: mov ecx, esi */ 758 RECOMP_ICALL(0x470870D0u); /* 0x470690C0: call 0x470870d0 */ /* not lifted */ 759 RECOMP_FLAGS_IN(); 760 /* cmp eax, 0xFFFFFFFFu */ /* 0x470690C5: cmp eax, -1 */ 761 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 762 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 763 _flag_k = FK_CMP; 764 if (CMP_NE(_flag_a, _flag_b)) goto L_470690DD; /* 0x470690C8: jne 0x470690dd */ 765 L_470690CA: 766 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 767 eax = 0; /* 0x470690CA: xor eax, eax */ 768 _cf = 0; 769 _flag_k = FK_TEST; 770 ecx = MEM32(esp + 0x8); /* 0x470690CC: mov ecx, dword ptr [esp + 8] */ 771 MEM32(FS_BASE + (0)) = ecx; /* 0x470690D0: mov dword ptr fs:[0], ecx */ 772 edi = POP32_VAL(esp); /* 0x470690D7: pop edi */ 773 esi = POP32_VAL(esp); /* 0x470690D8: pop esi */ 774 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 775 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 776 esp = esp + 0xCu; /* 0x470690D9: add esp, 0xc */ 777 _flag_k = FK_ADD; 778 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470690DC: ret */ 779 L_470690DD: 780 eax = MEM32(esp + 0x18); /* 0x470690DD: mov eax, dword ptr [esp + 0x18] */ 781 edi = MEM32(0x4710EB10); /* 0x470690E1: mov edi, dword ptr [0x4710eb10] */ 782 ecx = esi; /* 0x470690E7: mov ecx, esi */ 783 MEM32(0x4710EB14) = 0; /* 0x470690E9: mov dword ptr [0x4710eb14], 0 */ 784 MEM32(0x4710EB10) = eax; /* 0x470690F3: mov dword ptr [0x4710eb10], eax */ 785 MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x470690F8: mov dword ptr [esp + 0x10], 0xffffffff */ 786 RECOMP_ICALL(0x470870E0u); /* 0x47069100: call 0x470870e0 */ /* not lifted */ 787 RECOMP_FLAGS_IN(); 788 ecx = MEM32(esp + 0x8); /* 0x47069105: mov ecx, dword ptr [esp + 8] */ 789 eax = edi; /* 0x47069109: mov eax, edi */ 790 edi = POP32_VAL(esp); /* 0x4706910B: pop edi */ 791 MEM32(FS_BASE + (0)) = ecx; /* 0x4706910C: mov dword ptr fs:[0], ecx */ 792 esi = POP32_VAL(esp); /* 0x47069113: pop esi */ 793 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 794 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 795 esp = esp + 0xCu; /* 0x47069114: add esp, 0xc */ 796 _flag_k = FK_ADD; 797 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47069117: ret */ 798 RECOMP_REGS_OUT(); 799 } 800 801 void sub_47069120(void) { 802 int _fpu_cmp = 0; 803 uint32_t _cf = 0; 804 int _df = 1; 805 uint32_t _flag_k = FK_NONE; 806 uint32_t _flag_a = 0, _flag_b = 0; 807 uint32_t _itail_tgt = 0; 808 RECOMP_REGS_LOCALS 809 RECOMP_ENTER(0x47069120u); 810 811 L_47069120: 812 eax = MEM32(FS_BASE + (0)); /* 0x47069120: mov eax, dword ptr fs:[0] */ 813 PUSH32(esp, 0xFFFFFFFFu); /* 0x47069126: push -1 */ 814 PUSH32(esp, 0x470A874Bu); /* 0x47069128: push 0x470a874b */ 815 PUSH32(esp, eax); /* 0x4706912D: push eax */ 816 MEM32(FS_BASE + (0)) = esp; /* 0x4706912E: mov dword ptr fs:[0], esp */ 817 PUSH32(esp, ebx); /* 0x47069135: push ebx */ 818 ebx = MEM32(esp + 0x14); /* 0x47069136: mov ebx, dword ptr [esp + 0x14] */ 819 PUSH32(esp, ebp); /* 0x4706913A: push ebp */ 820 PUSH32(esp, esi); /* 0x4706913B: push esi */ 821 eax = ebx * 8 + 0x4; /* 0x4706913C: lea eax, [ebx*8 + 4] */ 822 PUSH32(esp, edi); /* 0x47069143: push edi */ 823 PUSH32(esp, eax); /* 0x47069144: push eax */ 824 esi = ecx; /* 0x47069145: mov esi, ecx */ 825 RECOMP_ICALL(0x470A33F2u); /* 0x47069147: call 0x470a33f2 */ /* not lifted */ 826 RECOMP_FLAGS_IN(); 827 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 828 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 829 esp = esp + 4; /* 0x4706914C: add esp, 4 */ 830 _flag_k = FK_ADD; 831 MEM32(esp + 0x20) = eax; /* 0x4706914F: mov dword ptr [esp + 0x20], eax */ 832 /* test eax, eax */ /* 0x47069153: test eax, eax */ 833 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 834 _cf = 0; 835 _flag_k = FK_TEST; 836 MEM32(esp + 0x18) = 0; /* 0x47069155: mov dword ptr [esp + 0x18], 0 */ 837 if (TEST_Z(_flag_a, _flag_b)) goto L_47069179; /* 0x4706915D: je 0x47069179 */ 838 L_4706915F: 839 PUSH32(esp, 0x47042970u); /* 0x4706915F: push 0x47042970 */ 840 PUSH32(esp, 0x47093220u); /* 0x47069164: push 0x47093220 */ 841 PUSH32(esp, ebx); /* 0x47069169: push ebx */ 842 edi = eax + 0x4; /* 0x4706916A: lea edi, [eax + 4] */ 843 PUSH32(esp, 8); /* 0x4706916D: push 8 */ 844 PUSH32(esp, edi); /* 0x4706916F: push edi */ 845 MEM32(eax) = ebx; /* 0x47069170: mov dword ptr [eax], ebx */ 846 RECOMP_ICALL(0x470A342Fu); /* 0x47069172: call 0x470a342f */ /* not lifted */ 847 RECOMP_FLAGS_IN(); 848 goto L_4706917B; /* 0x47069177: jmp 0x4706917b */ 849 L_47069179: 850 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 851 edi = 0; /* 0x47069179: xor edi, edi */ 852 _cf = 0; 853 _flag_k = FK_TEST; 854 L_4706917B: 855 /* test edi, edi */ /* 0x4706917B: test edi, edi */ 856 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 857 _cf = 0; 858 _flag_k = FK_TEST; 859 MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x4706917D: mov dword ptr [esp + 0x18], 0xffffffff */ 860 if (TEST_NZ(_flag_a, _flag_b)) goto L_47069198; /* 0x47069185: jne 0x47069198 */ 861 L_47069187: 862 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47069187: call dword ptr [0x470ac3c8] */ 863 RECOMP_FLAGS_IN(); 864 MEM32(eax) = 0xCu; /* 0x4706918D: mov dword ptr [eax], 0xc */ 865 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 866 eax = eax | 0xFFFFFFFFu; /* 0x47069193: or eax, 0xffffffff */ 867 _cf = 0; 868 _flag_k = FK_TEST; 869 goto L_470691EF; /* 0x47069196: jmp 0x470691ef */ 870 L_47069198: 871 eax = MEM32(esi + 0x14); /* 0x47069198: mov eax, dword ptr [esi + 0x14] */ 872 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 873 ecx = 0; /* 0x4706919B: xor ecx, ecx */ 874 _cf = 0; 875 _flag_k = FK_TEST; 876 /* test eax, eax */ /* 0x4706919D: test eax, eax */ 877 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 878 _cf = 0; 879 _flag_k = FK_TEST; 880 if (TEST_Z(_flag_a, _flag_b)) goto L_470691C3; /* 0x4706919F: jbe 0x470691c3 */ 881 L_470691A1: 882 ebp = MEM32(esi + 0xC); /* 0x470691A1: mov ebp, dword ptr [esi + 0xc] */ 883 eax = ecx * 8; /* 0x470691A4: lea eax, [ecx*8] */ 884 edx = eax; /* 0x470691AB: mov edx, eax */ 885 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebp); 886 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 887 edx = edx + ebp; /* 0x470691AD: add edx, ebp */ 888 _flag_k = FK_ADD; 889 ebp = MEM32(edx); /* 0x470691AF: mov ebp, dword ptr [edx] */ 890 MEM32(eax + edi) = ebp; /* 0x470691B1: mov dword ptr [eax + edi], ebp */ 891 edx = MEM32(edx + 0x4); /* 0x470691B4: mov edx, dword ptr [edx + 4] */ 892 MEM32(eax + edi + 0x4) = edx; /* 0x470691B7: mov dword ptr [eax + edi + 4], edx */ 893 eax = MEM32(esi + 0x14); /* 0x470691BB: mov eax, dword ptr [esi + 0x14] */ 894 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 895 ecx = ecx + 1; /* 0x470691BE: inc ecx */ 896 _flag_k = FK_INC; 897 /* cmp ecx, eax */ /* 0x470691BF: cmp ecx, eax */ 898 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 899 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 900 _flag_k = FK_CMP; 901 RECOMP_BACKEDGE(); 902 if (CMP_B(_flag_a, _flag_b)) goto L_470691A1; /* 0x470691C1: jb 0x470691a1 */ 903 L_470691C3: 904 eax = MEM32(esi + 0xC); /* 0x470691C3: mov eax, dword ptr [esi + 0xc] */ 905 /* test eax, eax */ /* 0x470691C6: test eax, eax */ 906 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 907 _cf = 0; 908 _flag_k = FK_TEST; 909 MEM32(esi + 0x10) = ebx; /* 0x470691C8: mov dword ptr [esi + 0x10], ebx */ 910 if (TEST_Z(_flag_a, _flag_b)) goto L_470691EA; /* 0x470691CB: je 0x470691ea */ 911 L_470691CD: 912 ecx = MEM32(eax + (-0x4)); /* 0x470691CD: mov ecx, dword ptr [eax - 4] */ 913 ebx = eax + (-0x4); /* 0x470691D0: lea ebx, [eax - 4] */ 914 PUSH32(esp, 0x47042970u); /* 0x470691D3: push 0x47042970 */ 915 PUSH32(esp, ecx); /* 0x470691D8: push ecx */ 916 PUSH32(esp, 8); /* 0x470691D9: push 8 */ 917 PUSH32(esp, eax); /* 0x470691DB: push eax */ 918 RECOMP_ICALL(0x470A32EBu); /* 0x470691DC: call 0x470a32eb */ /* not lifted */ 919 RECOMP_FLAGS_IN(); 920 PUSH32(esp, ebx); /* 0x470691E1: push ebx */ 921 RECOMP_ICALL(0x470A32A2u); /* 0x470691E2: call 0x470a32a2 */ /* not lifted */ 922 RECOMP_FLAGS_IN(); 923 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 924 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 925 esp = esp + 4; /* 0x470691E7: add esp, 4 */ 926 _flag_k = FK_ADD; 927 L_470691EA: 928 MEM32(esi + 0xC) = edi; /* 0x470691EA: mov dword ptr [esi + 0xc], edi */ 929 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 930 eax = 0; /* 0x470691ED: xor eax, eax */ 931 _cf = 0; 932 _flag_k = FK_TEST; 933 L_470691EF: 934 ecx = MEM32(esp + 0x10); /* 0x470691EF: mov ecx, dword ptr [esp + 0x10] */ 935 edi = POP32_VAL(esp); /* 0x470691F3: pop edi */ 936 esi = POP32_VAL(esp); /* 0x470691F4: pop esi */ 937 ebp = POP32_VAL(esp); /* 0x470691F5: pop ebp */ 938 MEM32(FS_BASE + (0)) = ecx; /* 0x470691F6: mov dword ptr fs:[0], ecx */ 939 ebx = POP32_VAL(esp); /* 0x470691FD: pop ebx */ 940 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 941 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 942 esp = esp + 0xCu; /* 0x470691FE: add esp, 0xc */ 943 _flag_k = FK_ADD; 944 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47069201: ret 4 */ 945 RECOMP_REGS_OUT(); 946 } 947 948 void sub_47069210(void) { 949 int _fpu_cmp = 0; 950 uint32_t _cf = 0; 951 int _df = 1; 952 uint32_t _flag_k = FK_NONE; 953 uint32_t _flag_a = 0, _flag_b = 0; 954 uint32_t _itail_tgt = 0; 955 RECOMP_REGS_LOCALS 956 RECOMP_ENTER(0x47069210u); 957 958 L_47069210: 959 eax = MEM32(FS_BASE + (0)); /* 0x47069210: mov eax, dword ptr fs:[0] */ 960 PUSH32(esp, 0xFFFFFFFFu); /* 0x47069216: push -1 */ 961 PUSH32(esp, 0x470A8768u); /* 0x47069218: push 0x470a8768 */ 962 PUSH32(esp, eax); /* 0x4706921D: push eax */ 963 eax = MEM32(esp + 0x14); /* 0x4706921E: mov eax, dword ptr [esp + 0x14] */ 964 MEM32(FS_BASE + (0)) = esp; /* 0x47069222: mov dword ptr fs:[0], esp */ 965 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 966 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 967 esp = esp - 8; /* 0x47069229: sub esp, 8 */ 968 _flag_k = FK_CMP; 969 /* test eax, eax */ /* 0x4706922C: test eax, eax */ 970 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 971 _cf = 0; 972 _flag_k = FK_TEST; 973 PUSH32(esp, esi); /* 0x4706922E: push esi */ 974 PUSH32(esp, edi); /* 0x4706922F: push edi */ 975 esi = ecx; /* 0x47069230: mov esi, ecx */ 976 if (TEST_Z(_flag_a, _flag_b)) goto L_4706923A; /* 0x47069232: je 0x4706923a */ 977 L_47069234: 978 PUSH32(esp, eax); /* 0x47069234: push eax */ 979 RECOMP_ICALL(0x47082280u); /* 0x47069235: call 0x47082280 */ /* not lifted */ 980 RECOMP_FLAGS_IN(); 981 L_4706923A: 982 edi = esi + 0x1C; /* 0x4706923A: lea edi, [esi + 0x1c] */ 983 PUSH32(esp, edi); /* 0x4706923D: push edi */ 984 MEM32(esp + 0xC) = edi; /* 0x4706923E: mov dword ptr [esp + 0xc], edi */ 985 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47069242: call dword ptr [0x470ac180] */ 986 RECOMP_FLAGS_IN(); 987 MEM32(esp + 0xC) = 0; /* 0x47069248: mov dword ptr [esp + 0xc], 0 */ 988 eax = MEM32(esp + 0x20); /* 0x47069250: mov eax, dword ptr [esp + 0x20] */ 989 /* cmp MEM32(esi + 0x10), eax */ /* 0x47069254: cmp dword ptr [esi + 0x10], eax */ 990 _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(eax); 991 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 992 _flag_k = FK_CMP; 993 MEM32(esp + 0x18) = 0; /* 0x47069257: mov dword ptr [esp + 0x18], 0 */ 994 if (CMP_AE(_flag_a, _flag_b)) goto L_47069269; /* 0x4706925F: jae 0x47069269 */ 995 L_47069261: 996 PUSH32(esp, eax); /* 0x47069261: push eax */ 997 ecx = esi; /* 0x47069262: mov ecx, esi */ 998 RECOMP_ICALL(0x47069120u); /* 0x47069264: call 0x47069120 */ /* not lifted */ 999 RECOMP_FLAGS_IN(); 1000 L_47069269: 1001 PUSH32(esp, edi); /* 0x47069269: push edi */ 1002 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4706926A: call dword ptr [0x470ac190] */ 1003 RECOMP_FLAGS_IN(); 1004 ecx = MEM32(esp + 0x10); /* 0x47069270: mov ecx, dword ptr [esp + 0x10] */ 1005 edi = POP32_VAL(esp); /* 0x47069274: pop edi */ 1006 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1007 eax = 0; /* 0x47069275: xor eax, eax */ 1008 _cf = 0; 1009 _flag_k = FK_TEST; 1010 esi = POP32_VAL(esp); /* 0x47069277: pop esi */ 1011 MEM32(FS_BASE + (0)) = ecx; /* 0x47069278: mov dword ptr fs:[0], ecx */ 1012 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1013 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1014 esp = esp + 0x14u; /* 0x4706927F: add esp, 0x14 */ 1015 _flag_k = FK_ADD; 1016 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47069282: ret 8 */ 1017 RECOMP_REGS_OUT(); 1018 } 1019 1020 void sub_47069290(void) { 1021 int _fpu_cmp = 0; 1022 uint32_t _cf = 0; 1023 int _df = 1; 1024 uint32_t _flag_k = FK_NONE; 1025 uint32_t _flag_a = 0, _flag_b = 0; 1026 uint32_t _itail_tgt = 0; 1027 RECOMP_REGS_LOCALS 1028 RECOMP_ENTER(0x47069290u); 1029 1030 L_47069290: 1031 PUSH32(esp, 0xFFFFFFFFu); /* 0x47069290: push -1 */ 1032 PUSH32(esp, 0x470A879Bu); /* 0x47069292: push 0x470a879b */ 1033 eax = MEM32(FS_BASE + (0)); /* 0x47069297: mov eax, dword ptr fs:[0] */ 1034 PUSH32(esp, eax); /* 0x4706929D: push eax */ 1035 MEM32(FS_BASE + (0)) = esp; /* 0x4706929E: mov dword ptr fs:[0], esp */ 1036 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1037 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1038 esp = esp - 0xCu; /* 0x470692A5: sub esp, 0xc */ 1039 _flag_k = FK_CMP; 1040 PUSH32(esp, ebx); /* 0x470692A8: push ebx */ 1041 PUSH32(esp, esi); /* 0x470692A9: push esi */ 1042 PUSH32(esp, edi); /* 0x470692AA: push edi */ 1043 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1044 ebx = 0; /* 0x470692AB: xor ebx, ebx */ 1045 _cf = 0; 1046 _flag_k = FK_TEST; 1047 PUSH32(esp, ebx); /* 0x470692AD: push ebx */ 1048 esi = ecx; /* 0x470692AE: mov esi, ecx */ 1049 PUSH32(esp, ebx); /* 0x470692B0: push ebx */ 1050 MEM32(esp + 0x14) = esi; /* 0x470692B1: mov dword ptr [esp + 0x14], esi */ 1051 RECOMP_ICALL(0x4702A790u); /* 0x470692B5: call 0x4702a790 */ /* not lifted */ 1052 RECOMP_FLAGS_IN(); 1053 PUSH32(esp, ebx); /* 0x470692BA: push ebx */ 1054 edi = esi + 0x1C; /* 0x470692BB: lea edi, [esi + 0x1c] */ 1055 PUSH32(esp, ebx); /* 0x470692BE: push ebx */ 1056 ecx = edi; /* 0x470692BF: mov ecx, edi */ 1057 MEM32(esp + 0x28) = ebx; /* 0x470692C1: mov dword ptr [esp + 0x28], ebx */ 1058 MEM32(esi + 0xC) = ebx; /* 0x470692C5: mov dword ptr [esi + 0xc], ebx */ 1059 MEM32(esi + 0x10) = ebx; /* 0x470692C8: mov dword ptr [esi + 0x10], ebx */ 1060 MEM32(esi + 0x14) = ebx; /* 0x470692CB: mov dword ptr [esi + 0x14], ebx */ 1061 MEM32(esi + 0x18) = ebx; /* 0x470692CE: mov dword ptr [esi + 0x18], ebx */ 1062 RECOMP_ICALL(0x47087E50u); /* 0x470692D1: call 0x47087e50 */ /* not lifted */ 1063 RECOMP_FLAGS_IN(); 1064 eax = MEM32(esp + 0x2C); /* 0x470692D6: mov eax, dword ptr [esp + 0x2c] */ 1065 /* cmp eax, ebx */ /* 0x470692DA: cmp eax, ebx */ 1066 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1067 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1068 _flag_k = FK_CMP; 1069 MEM8(esp + 0x20) = (uint8_t)(1); /* 0x470692DC: mov byte ptr [esp + 0x20], 1 */ 1070 MEM32(esi) = 0x470AEA50u; /* 0x470692E1: mov dword ptr [esi], 0x470aea50 */ 1071 if (CMP_EQ(_flag_a, _flag_b)) goto L_470692F1; /* 0x470692E7: je 0x470692f1 */ 1072 L_470692E9: 1073 PUSH32(esp, eax); /* 0x470692E9: push eax */ 1074 ecx = esi; /* 0x470692EA: mov ecx, esi */ 1075 RECOMP_ICALL(0x47082280u); /* 0x470692EC: call 0x47082280 */ /* not lifted */ 1076 RECOMP_FLAGS_IN(); 1077 L_470692F1: 1078 PUSH32(esp, edi); /* 0x470692F1: push edi */ 1079 MEM32(esp + 0x14) = edi; /* 0x470692F2: mov dword ptr [esp + 0x14], edi */ 1080 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x470692F6: call dword ptr [0x470ac180] */ 1081 RECOMP_FLAGS_IN(); 1082 MEM32(esp + 0x14) = ebx; /* 0x470692FC: mov dword ptr [esp + 0x14], ebx */ 1083 eax = MEM32(esp + 0x28); /* 0x47069300: mov eax, dword ptr [esp + 0x28] */ 1084 /* cmp MEM32(esi + 0x10), eax */ /* 0x47069304: cmp dword ptr [esi + 0x10], eax */ 1085 _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(eax); 1086 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1087 _flag_k = FK_CMP; 1088 MEM8(esp + 0x20) = (uint8_t)(2); /* 0x47069307: mov byte ptr [esp + 0x20], 2 */ 1089 if (CMP_AE(_flag_a, _flag_b)) goto L_47069316; /* 0x4706930C: jae 0x47069316 */ 1090 L_4706930E: 1091 PUSH32(esp, eax); /* 0x4706930E: push eax */ 1092 ecx = esi; /* 0x4706930F: mov ecx, esi */ 1093 RECOMP_ICALL(0x47069120u); /* 0x47069311: call 0x47069120 */ /* not lifted */ 1094 RECOMP_FLAGS_IN(); 1095 L_47069316: 1096 PUSH32(esp, edi); /* 0x47069316: push edi */ 1097 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47069317: call dword ptr [0x470ac190] */ 1098 RECOMP_FLAGS_IN(); 1099 ecx = MEM32(esp + 0x18); /* 0x4706931D: mov ecx, dword ptr [esp + 0x18] */ 1100 edi = POP32_VAL(esp); /* 0x47069321: pop edi */ 1101 eax = esi; /* 0x47069322: mov eax, esi */ 1102 esi = POP32_VAL(esp); /* 0x47069324: pop esi */ 1103 ebx = POP32_VAL(esp); /* 0x47069325: pop ebx */ 1104 MEM32(FS_BASE + (0)) = ecx; /* 0x47069326: mov dword ptr fs:[0], ecx */ 1105 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 1106 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1107 esp = esp + 0x18u; /* 0x4706932D: add esp, 0x18 */ 1108 _flag_k = FK_ADD; 1109 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47069330: ret 8 */ 1110 RECOMP_REGS_OUT(); 1111 } 1112 1113 void sub_47069340(void) { 1114 int _fpu_cmp = 0; 1115 uint32_t _cf = 0; 1116 int _df = 1; 1117 uint32_t _flag_k = FK_NONE; 1118 uint32_t _flag_a = 0, _flag_b = 0; 1119 uint32_t _itail_tgt = 0; 1120 RECOMP_REGS_LOCALS 1121 RECOMP_ENTER(0x47069340u); 1122 1123 L_47069340: 1124 PUSH32(esp, ebx); /* 0x47069340: push ebx */ 1125 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47069341: mov bl, byte ptr [esp + 8] */ 1126 /* test LO8(ebx), 2 */ /* 0x47069345: test bl, 2 */ 1127 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 1128 _cf = 0; 1129 _flag_k = FK_NARROW(FK_TEST, 24); 1130 PUSH32(esp, esi); /* 0x47069348: push esi */ 1131 esi = ecx; /* 0x47069349: mov esi, ecx */ 1132 if (TEST_Z(_flag_a, _flag_b)) goto L_47069378; /* 0x4706934B: je 0x47069378 */ 1133 L_4706934D: 1134 eax = MEM32(esi + (-0x4)); /* 0x4706934D: mov eax, dword ptr [esi - 4] */ 1135 PUSH32(esp, edi); /* 0x47069350: push edi */ 1136 PUSH32(esp, 0x47069450u); /* 0x47069351: push 0x47069450 */ 1137 edi = esi + (-0x4); /* 0x47069356: lea edi, [esi - 4] */ 1138 PUSH32(esp, eax); /* 0x47069359: push eax */ 1139 PUSH32(esp, 0x38u); /* 0x4706935A: push 0x38 */ 1140 PUSH32(esp, esi); /* 0x4706935C: push esi */ 1141 RECOMP_ICALL(0x470A32EBu); /* 0x4706935D: call 0x470a32eb */ /* not lifted */ 1142 RECOMP_FLAGS_IN(); 1143 /* test LO8(ebx), 1 */ /* 0x47069362: test bl, 1 */ 1144 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1145 _cf = 0; 1146 _flag_k = FK_NARROW(FK_TEST, 24); 1147 if (TEST_Z(_flag_a, _flag_b)) goto L_47069370; /* 0x47069365: je 0x47069370 */ 1148 L_47069367: 1149 PUSH32(esp, edi); /* 0x47069367: push edi */ 1150 RECOMP_ICALL(0x470A32A2u); /* 0x47069368: call 0x470a32a2 */ /* not lifted */ 1151 RECOMP_FLAGS_IN(); 1152 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1153 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1154 esp = esp + 4; /* 0x4706936D: add esp, 4 */ 1155 _flag_k = FK_ADD; 1156 L_47069370: 1157 eax = edi; /* 0x47069370: mov eax, edi */ 1158 edi = POP32_VAL(esp); /* 0x47069372: pop edi */ 1159 esi = POP32_VAL(esp); /* 0x47069373: pop esi */ 1160 ebx = POP32_VAL(esp); /* 0x47069374: pop ebx */ 1161 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47069375: ret 4 */ 1162 L_47069378: 1163 ecx = esi; /* 0x47069378: mov ecx, esi */ 1164 RECOMP_ICALL(0x47069450u); /* 0x4706937A: call 0x47069450 */ /* not lifted */ 1165 RECOMP_FLAGS_IN(); 1166 /* test LO8(ebx), 1 */ /* 0x4706937F: test bl, 1 */ 1167 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1168 _cf = 0; 1169 _flag_k = FK_NARROW(FK_TEST, 24); 1170 if (TEST_Z(_flag_a, _flag_b)) goto L_4706938D; /* 0x47069382: je 0x4706938d */ 1171 L_47069384: 1172 PUSH32(esp, esi); /* 0x47069384: push esi */ 1173 RECOMP_ICALL(0x470A32A2u); /* 0x47069385: call 0x470a32a2 */ /* not lifted */ 1174 RECOMP_FLAGS_IN(); 1175 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1176 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1177 esp = esp + 4; /* 0x4706938A: add esp, 4 */ 1178 _flag_k = FK_ADD; 1179 L_4706938D: 1180 eax = esi; /* 0x4706938D: mov eax, esi */ 1181 esi = POP32_VAL(esp); /* 0x4706938F: pop esi */ 1182 ebx = POP32_VAL(esp); /* 0x47069390: pop ebx */ 1183 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47069391: ret 4 */ 1184 RECOMP_REGS_OUT(); 1185 } 1186 1187 void sub_470693A0(void) { 1188 int _fpu_cmp = 0; 1189 uint32_t _cf = 0; 1190 int _df = 1; 1191 uint32_t _flag_k = FK_NONE; 1192 uint32_t _flag_a = 0, _flag_b = 0; 1193 uint32_t _itail_tgt = 0; 1194 RECOMP_REGS_LOCALS 1195 RECOMP_ENTER(0x470693A0u); 1196 1197 L_470693A0: 1198 PUSH32(esp, 0xFFFFFFFFu); /* 0x470693A0: push -1 */ 1199 PUSH32(esp, 0x470A87B8u); /* 0x470693A2: push 0x470a87b8 */ 1200 eax = MEM32(FS_BASE + (0)); /* 0x470693A7: mov eax, dword ptr fs:[0] */ 1201 PUSH32(esp, eax); /* 0x470693AD: push eax */ 1202 MEM32(FS_BASE + (0)) = esp; /* 0x470693AE: mov dword ptr fs:[0], esp */ 1203 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1204 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1205 esp = esp - 8; /* 0x470693B5: sub esp, 8 */ 1206 _flag_k = FK_CMP; 1207 PUSH32(esp, ebp); /* 0x470693B8: push ebp */ 1208 PUSH32(esp, esi); /* 0x470693B9: push esi */ 1209 esi = ecx; /* 0x470693BA: mov esi, ecx */ 1210 PUSH32(esp, edi); /* 0x470693BC: push edi */ 1211 ebp = esi + 0x1C; /* 0x470693BD: lea ebp, [esi + 0x1c] */ 1212 PUSH32(esp, ebp); /* 0x470693C0: push ebp */ 1213 MEM32(esp + 0x10) = ebp; /* 0x470693C1: mov dword ptr [esp + 0x10], ebp */ 1214 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x470693C5: call dword ptr [0x470ac180] */ 1215 RECOMP_FLAGS_IN(); 1216 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1217 edi = 0; /* 0x470693CB: xor edi, edi */ 1218 _cf = 0; 1219 _flag_k = FK_TEST; 1220 MEM32(esp + 0x10) = edi; /* 0x470693CD: mov dword ptr [esp + 0x10], edi */ 1221 /* cmp MEM32(esi + 0xC), edi */ /* 0x470693D1: cmp dword ptr [esi + 0xc], edi */ 1222 _flag_a = (uint32_t)(MEM32(esi + 0xC)); _flag_b = (uint32_t)(edi); 1223 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1224 _flag_k = FK_CMP; 1225 MEM32(esp + 0x1C) = edi; /* 0x470693D4: mov dword ptr [esp + 0x1c], edi */ 1226 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706941B; /* 0x470693D8: je 0x4706941b */ 1227 L_470693DA: 1228 /* cmp MEM32(esi + 0x14), edi */ /* 0x470693DA: cmp dword ptr [esi + 0x14], edi */ 1229 _flag_a = (uint32_t)(MEM32(esi + 0x14)); _flag_b = (uint32_t)(edi); 1230 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1231 _flag_k = FK_CMP; 1232 if (CMP_BE(_flag_a, _flag_b)) goto L_470693EC; /* 0x470693DD: jbe 0x470693ec */ 1233 L_470693DF: 1234 PUSH32(esp, edi); /* 0x470693DF: push edi */ 1235 ecx = esi; /* 0x470693E0: mov ecx, esi */ 1236 RECOMP_ICALL(0x47069A80u); /* 0x470693E2: call 0x47069a80 */ /* not lifted */ 1237 RECOMP_FLAGS_IN(); 1238 /* cmp MEM32(esi + 0x14), edi */ /* 0x470693E7: cmp dword ptr [esi + 0x14], edi */ 1239 _flag_a = (uint32_t)(MEM32(esi + 0x14)); _flag_b = (uint32_t)(edi); 1240 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1241 _flag_k = FK_CMP; 1242 RECOMP_BACKEDGE(); 1243 if (CMP_A(_flag_a, _flag_b)) goto L_470693DF; /* 0x470693EA: ja 0x470693df */ 1244 L_470693EC: 1245 eax = MEM32(esi + 0xC); /* 0x470693EC: mov eax, dword ptr [esi + 0xc] */ 1246 /* cmp eax, edi */ /* 0x470693EF: cmp eax, edi */ 1247 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 1248 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1249 _flag_k = FK_CMP; 1250 if (CMP_EQ(_flag_a, _flag_b)) goto L_47069412; /* 0x470693F1: je 0x47069412 */ 1251 L_470693F3: 1252 ecx = MEM32(eax + (-0x4)); /* 0x470693F3: mov ecx, dword ptr [eax - 4] */ 1253 PUSH32(esp, ebx); /* 0x470693F6: push ebx */ 1254 ebx = eax + (-0x4); /* 0x470693F7: lea ebx, [eax - 4] */ 1255 PUSH32(esp, 0x47042970u); /* 0x470693FA: push 0x47042970 */ 1256 PUSH32(esp, ecx); /* 0x470693FF: push ecx */ 1257 PUSH32(esp, 8); /* 0x47069400: push 8 */ 1258 PUSH32(esp, eax); /* 0x47069402: push eax */ 1259 RECOMP_ICALL(0x470A32EBu); /* 0x47069403: call 0x470a32eb */ /* not lifted */ 1260 RECOMP_FLAGS_IN(); 1261 PUSH32(esp, ebx); /* 0x47069408: push ebx */ 1262 RECOMP_ICALL(0x470A32A2u); /* 0x47069409: call 0x470a32a2 */ /* not lifted */ 1263 RECOMP_FLAGS_IN(); 1264 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1265 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1266 esp = esp + 4; /* 0x4706940E: add esp, 4 */ 1267 _flag_k = FK_ADD; 1268 ebx = POP32_VAL(esp); /* 0x47069411: pop ebx */ 1269 L_47069412: 1270 MEM32(esi + 0xC) = edi; /* 0x47069412: mov dword ptr [esi + 0xc], edi */ 1271 MEM32(esi + 0x10) = edi; /* 0x47069415: mov dword ptr [esi + 0x10], edi */ 1272 MEM32(esi + 0x14) = edi; /* 0x47069418: mov dword ptr [esi + 0x14], edi */ 1273 L_4706941B: 1274 ecx = MEM32(esi + 0x18); /* 0x4706941B: mov ecx, dword ptr [esi + 0x18] */ 1275 /* cmp ecx, edi */ /* 0x4706941E: cmp ecx, edi */ 1276 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 1277 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1278 _flag_k = FK_CMP; 1279 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706942A; /* 0x47069420: je 0x4706942a */ 1280 L_47069422: 1281 edx = MEM32(ecx); /* 0x47069422: mov edx, dword ptr [ecx] */ 1282 PUSH32(esp, edi); /* 0x47069424: push edi */ 1283 PUSH32(esp, 0xFFFFFFFFu); /* 0x47069425: push -1 */ 1284 RECOMP_ICALL(MEM32(edx + 0x28)); /* 0x47069427: call dword ptr [edx + 0x28] */ 1285 RECOMP_FLAGS_IN(); 1286 L_4706942A: 1287 PUSH32(esp, ebp); /* 0x4706942A: push ebp */ 1288 MEM32(esi + 0x18) = edi; /* 0x4706942B: mov dword ptr [esi + 0x18], edi */ 1289 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4706942E: call dword ptr [0x470ac190] */ 1290 RECOMP_FLAGS_IN(); 1291 ecx = MEM32(esp + 0x14); /* 0x47069434: mov ecx, dword ptr [esp + 0x14] */ 1292 edi = POP32_VAL(esp); /* 0x47069438: pop edi */ 1293 esi = POP32_VAL(esp); /* 0x47069439: pop esi */ 1294 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1295 eax = 0; /* 0x4706943A: xor eax, eax */ 1296 _cf = 0; 1297 _flag_k = FK_TEST; 1298 ebp = POP32_VAL(esp); /* 0x4706943C: pop ebp */ 1299 MEM32(FS_BASE + (0)) = ecx; /* 0x4706943D: mov dword ptr fs:[0], ecx */ 1300 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1301 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1302 esp = esp + 0x14u; /* 0x47069444: add esp, 0x14 */ 1303 _flag_k = FK_ADD; 1304 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47069447: ret */ 1305 RECOMP_REGS_OUT(); 1306 } 1307 1308 void sub_47069450(void) { 1309 int _fpu_cmp = 0; 1310 uint32_t _cf = 0; 1311 int _df = 1; 1312 uint32_t _flag_k = FK_NONE; 1313 uint32_t _flag_a = 0, _flag_b = 0; 1314 uint32_t _itail_tgt = 0; 1315 RECOMP_REGS_LOCALS 1316 RECOMP_ENTER(0x47069450u); 1317 1318 L_47069450: 1319 PUSH32(esp, 0xFFFFFFFFu); /* 0x47069450: push -1 */ 1320 PUSH32(esp, 0x470A87E3u); /* 0x47069452: push 0x470a87e3 */ 1321 eax = MEM32(FS_BASE + (0)); /* 0x47069457: mov eax, dword ptr fs:[0] */ 1322 PUSH32(esp, eax); /* 0x4706945D: push eax */ 1323 MEM32(FS_BASE + (0)) = esp; /* 0x4706945E: mov dword ptr fs:[0], esp */ 1324 PUSH32(esp, ecx); /* 0x47069465: push ecx */ 1325 PUSH32(esp, esi); /* 0x47069466: push esi */ 1326 esi = ecx; /* 0x47069467: mov esi, ecx */ 1327 MEM32(esp + 0x4) = esi; /* 0x47069469: mov dword ptr [esp + 4], esi */ 1328 MEM32(esi) = 0x470AEA50u; /* 0x4706946D: mov dword ptr [esi], 0x470aea50 */ 1329 MEM32(esp + 0x10) = 1; /* 0x47069473: mov dword ptr [esp + 0x10], 1 */ 1330 RECOMP_ICALL(0x470693A0u); /* 0x4706947B: call 0x470693a0 */ /* not lifted */ 1331 RECOMP_FLAGS_IN(); 1332 ecx = esi + 0x1C; /* 0x47069480: lea ecx, [esi + 0x1c] */ 1333 MEM8(esp + 0x10) = (uint8_t)(0); /* 0x47069483: mov byte ptr [esp + 0x10], 0 */ 1334 RECOMP_ICALL(0x47087E30u); /* 0x47069488: call 0x47087e30 */ /* not lifted */ 1335 RECOMP_FLAGS_IN(); 1336 ecx = esi; /* 0x4706948D: mov ecx, esi */ 1337 MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x4706948F: mov dword ptr [esp + 0x10], 0xffffffff */ 1338 RECOMP_ICALL(0x4702A7B0u); /* 0x47069497: call 0x4702a7b0 */ /* not lifted */ 1339 RECOMP_FLAGS_IN(); 1340 ecx = MEM32(esp + 0x8); /* 0x4706949C: mov ecx, dword ptr [esp + 8] */ 1341 esi = POP32_VAL(esp); /* 0x470694A0: pop esi */ 1342 MEM32(FS_BASE + (0)) = ecx; /* 0x470694A1: mov dword ptr fs:[0], ecx */ 1343 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1344 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1345 esp = esp + 0x10u; /* 0x470694A8: add esp, 0x10 */ 1346 _flag_k = FK_ADD; 1347 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470694AB: ret */ 1348 RECOMP_REGS_OUT(); 1349 } 1350 1351 void sub_470694B0(void) { 1352 int _fpu_cmp = 0; 1353 uint32_t _cf = 0; 1354 int _df = 1; 1355 uint32_t _flag_k = FK_NONE; 1356 uint32_t _flag_a = 0, _flag_b = 0; 1357 uint32_t _itail_tgt = 0; 1358 RECOMP_REGS_LOCALS 1359 RECOMP_ENTER(0x470694B0u); 1360 1361 L_470694B0: 1362 PUSH32(esp, 0xFFFFFFFFu); /* 0x470694B0: push -1 */ 1363 PUSH32(esp, 0x470A87F8u); /* 0x470694B2: push 0x470a87f8 */ 1364 eax = MEM32(FS_BASE + (0)); /* 0x470694B7: mov eax, dword ptr fs:[0] */ 1365 PUSH32(esp, eax); /* 0x470694BD: push eax */ 1366 MEM32(FS_BASE + (0)) = esp; /* 0x470694BE: mov dword ptr fs:[0], esp */ 1367 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1368 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1369 esp = esp - 8; /* 0x470694C5: sub esp, 8 */ 1370 _flag_k = FK_CMP; 1371 eax = MEM32(esp + 0x1C); /* 0x470694C8: mov eax, dword ptr [esp + 0x1c] */ 1372 PUSH32(esp, ebp); /* 0x470694CC: push ebp */ 1373 PUSH32(esp, esi); /* 0x470694CD: push esi */ 1374 PUSH32(esp, edi); /* 0x470694CE: push edi */ 1375 edi = MEM32(eax); /* 0x470694CF: mov edi, dword ptr [eax] */ 1376 esi = ecx; /* 0x470694D1: mov esi, ecx */ 1377 ecx = esp + 0x28; /* 0x470694D3: lea ecx, [esp + 0x28] */ 1378 PUSH32(esp, ecx); /* 0x470694D7: push ecx */ 1379 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1380 ebp = 0; /* 0x470694D8: xor ebp, ebp */ 1381 _cf = 0; 1382 _flag_k = FK_TEST; 1383 PUSH32(esp, edi); /* 0x470694DA: push edi */ 1384 MEM32(esp + 0x30) = ebp; /* 0x470694DB: mov dword ptr [esp + 0x30], ebp */ 1385 RECOMP_ICALL(MEM32(0x470AC0E4)); /* 0x470694DF: call dword ptr [0x470ac0e4] */ 1386 RECOMP_FLAGS_IN(); 1387 /* cmp eax, ebp */ /* 0x470694E5: cmp eax, ebp */ 1388 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 1389 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1390 _flag_k = FK_CMP; 1391 if (CMP_EQ(_flag_a, _flag_b)) goto L_470695D5; /* 0x470694E7: je 0x470695d5 */ 1392 L_470694ED: 1393 /* cmp MEM32(esp + 0x28), 0x103u */ /* 0x470694ED: cmp dword ptr [esp + 0x28], 0x103 */ 1394 _flag_a = (uint32_t)(MEM32(esp + 0x28)); _flag_b = (uint32_t)(0x103u); 1395 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1396 _flag_k = FK_CMP; 1397 if (CMP_EQ(_flag_a, _flag_b)) goto L_47069564; /* 0x470694F5: je 0x47069564 */ 1398 L_470694F7: 1399 PUSH32(esp, ebx); /* 0x470694F7: push ebx */ 1400 ebx = esi + 0x1C; /* 0x470694F8: lea ebx, [esi + 0x1c] */ 1401 PUSH32(esp, ebx); /* 0x470694FB: push ebx */ 1402 MEM32(esp + 0x14) = ebx; /* 0x470694FC: mov dword ptr [esp + 0x14], ebx */ 1403 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47069500: call dword ptr [0x470ac180] */ 1404 RECOMP_FLAGS_IN(); 1405 MEM32(esp + 0x14) = ebp; /* 0x47069506: mov dword ptr [esp + 0x14], ebp */ 1406 ecx = MEM32(esi + 0x14); /* 0x4706950A: mov ecx, dword ptr [esi + 0x14] */ 1407 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1408 eax = 0; /* 0x4706950D: xor eax, eax */ 1409 _cf = 0; 1410 _flag_k = FK_TEST; 1411 /* cmp ecx, ebp */ /* 0x4706950F: cmp ecx, ebp */ 1412 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebp); 1413 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1414 _flag_k = FK_CMP; 1415 MEM32(esp + 0x20) = ebp; /* 0x47069511: mov dword ptr [esp + 0x20], ebp */ 1416 if (CMP_BE(_flag_a, _flag_b)) goto L_47069529; /* 0x47069515: jbe 0x47069529 */ 1417 L_47069517: 1418 edx = MEM32(esi + 0xC); /* 0x47069517: mov edx, dword ptr [esi + 0xc] */ 1419 L_4706951A: 1420 ebp = MEM32(edx); /* 0x4706951A: mov ebp, dword ptr [edx] */ 1421 /* cmp edi, MEM32(ebp + 0x4) */ /* 0x4706951C: cmp edi, dword ptr [ebp + 4] */ 1422 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + 0x4)); 1423 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1424 _flag_k = FK_CMP; 1425 if (CMP_EQ(_flag_a, _flag_b)) goto L_47069560; /* 0x4706951F: je 0x47069560 */ 1426 L_47069521: 1427 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1428 eax = eax + 1; /* 0x47069521: inc eax */ 1429 _flag_k = FK_INC; 1430 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8); 1431 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1432 edx = edx + 8; /* 0x47069522: add edx, 8 */ 1433 _flag_k = FK_ADD; 1434 /* cmp eax, ecx */ /* 0x47069525: cmp eax, ecx */ 1435 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1436 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1437 _flag_k = FK_CMP; 1438 RECOMP_BACKEDGE(); 1439 if (CMP_B(_flag_a, _flag_b)) goto L_4706951A; /* 0x47069527: jb 0x4706951a */ 1440 L_47069529: 1441 _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu)); 1442 edi = edi | 0xFFFFFFFFu; /* 0x47069529: or edi, 0xffffffff */ 1443 _cf = 0; 1444 _flag_k = FK_TEST; 1445 L_4706952C: 1446 edx = MEM32(esp + 0x2C); /* 0x4706952C: mov edx, dword ptr [esp + 0x2c] */ 1447 PUSH32(esp, edx); /* 0x47069530: push edx */ 1448 PUSH32(esp, edi); /* 0x47069531: push edi */ 1449 ecx = esi; /* 0x47069532: mov ecx, esi */ 1450 RECOMP_ICALL(0x4706A280u); /* 0x47069534: call 0x4706a280 */ /* not lifted */ 1451 RECOMP_FLAGS_IN(); 1452 PUSH32(esp, edi); /* 0x47069539: push edi */ 1453 ecx = esi; /* 0x4706953A: mov ecx, esi */ 1454 RECOMP_ICALL(0x47069A80u); /* 0x4706953C: call 0x47069a80 */ /* not lifted */ 1455 RECOMP_FLAGS_IN(); 1456 PUSH32(esp, ebx); /* 0x47069541: push ebx */ 1457 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47069542: call dword ptr [0x470ac190] */ 1458 RECOMP_FLAGS_IN(); 1459 ebx = POP32_VAL(esp); /* 0x47069548: pop ebx */ 1460 edi = POP32_VAL(esp); /* 0x47069549: pop edi */ 1461 esi = POP32_VAL(esp); /* 0x4706954A: pop esi */ 1462 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1463 eax = eax | 0xFFFFFFFFu; /* 0x4706954B: or eax, 0xffffffff */ 1464 _cf = 0; 1465 _flag_k = FK_TEST; 1466 ebp = POP32_VAL(esp); /* 0x4706954E: pop ebp */ 1467 ecx = MEM32(esp + 0x8); /* 0x4706954F: mov ecx, dword ptr [esp + 8] */ 1468 MEM32(FS_BASE + (0)) = ecx; /* 0x47069553: mov dword ptr fs:[0], ecx */ 1469 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1470 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1471 esp = esp + 0x14u; /* 0x4706955A: add esp, 0x14 */ 1472 _flag_k = FK_ADD; 1473 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4706955D: ret 0xc */ 1474 L_47069560: 1475 edi = eax; /* 0x47069560: mov edi, eax */ 1476 RECOMP_BACKEDGE(); 1477 goto L_4706952C; /* 0x47069562: jmp 0x4706952c */ 1478 L_47069564: 1479 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47069564: call dword ptr [0x470ac150] */ 1480 RECOMP_FLAGS_IN(); 1481 edi = eax; /* 0x4706956A: mov edi, eax */ 1482 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706956C: call dword ptr [0x470ac3c8] */ 1483 RECOMP_FLAGS_IN(); 1484 eax = MEM32(eax); /* 0x47069572: mov eax, dword ptr [eax] */ 1485 /* cmp eax, ebp */ /* 0x47069574: cmp eax, ebp */ 1486 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 1487 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1488 _flag_k = FK_CMP; 1489 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706957A; /* 0x47069576: je 0x4706957a */ 1490 L_47069578: 1491 edi = eax; /* 0x47069578: mov edi, eax */ 1492 L_4706957A: 1493 RECOMP_ICALL(0x47039020u); /* 0x4706957A: call 0x47039020 */ /* not lifted */ 1494 RECOMP_FLAGS_IN(); 1495 esi = eax; /* 0x4706957F: mov esi, eax */ 1496 ecx = esi; /* 0x47069581: mov ecx, esi */ 1497 RECOMP_ICALL(0x4703B210u); /* 0x47069583: call 0x4703b210 */ /* not lifted */ 1498 RECOMP_FLAGS_IN(); 1499 PUSH32(esp, eax); /* 0x47069588: push eax */ 1500 ecx = esi; /* 0x47069589: mov ecx, esi */ 1501 RECOMP_ICALL(0x4703B240u); /* 0x4706958B: call 0x4703b240 */ /* not lifted */ 1502 RECOMP_FLAGS_IN(); 1503 PUSH32(esp, eax); /* 0x47069590: push eax */ 1504 ecx = esi; /* 0x47069591: mov ecx, esi */ 1505 RECOMP_ICALL(0x4703B080u); /* 0x47069593: call 0x4703b080 */ /* not lifted */ 1506 RECOMP_FLAGS_IN(); 1507 PUSH32(esp, eax); /* 0x47069598: push eax */ 1508 PUSH32(esp, edi); /* 0x47069599: push edi */ 1509 PUSH32(esp, ebp); /* 0x4706959A: push ebp */ 1510 PUSH32(esp, 0x167u); /* 0x4706959B: push 0x167 */ 1511 PUSH32(esp, 0x47109BA8u); /* 0x470695A0: push 0x47109ba8 */ 1512 ecx = esi; /* 0x470695A5: mov ecx, esi */ 1513 RECOMP_ICALL(0x4703A340u); /* 0x470695A7: call 0x4703a340 */ /* not lifted */ 1514 RECOMP_FLAGS_IN(); 1515 PUSH32(esp, 0x47109C3Cu); /* 0x470695AC: push 0x47109c3c */ 1516 PUSH32(esp, 0x80u); /* 0x470695B1: push 0x80 */ 1517 PUSH32(esp, esi); /* 0x470695B6: push esi */ 1518 RECOMP_ICALL(0x47039830u); /* 0x470695B7: call 0x47039830 */ /* not lifted */ 1519 RECOMP_FLAGS_IN(); 1520 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1521 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1522 esp = esp + 0xCu; /* 0x470695BC: add esp, 0xc */ 1523 _flag_k = FK_ADD; 1524 edi = POP32_VAL(esp); /* 0x470695BF: pop edi */ 1525 esi = POP32_VAL(esp); /* 0x470695C0: pop esi */ 1526 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1527 eax = 0; /* 0x470695C1: xor eax, eax */ 1528 _cf = 0; 1529 _flag_k = FK_TEST; 1530 ebp = POP32_VAL(esp); /* 0x470695C3: pop ebp */ 1531 ecx = MEM32(esp + 0x8); /* 0x470695C4: mov ecx, dword ptr [esp + 8] */ 1532 MEM32(FS_BASE + (0)) = ecx; /* 0x470695C8: mov dword ptr fs:[0], ecx */ 1533 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1534 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1535 esp = esp + 0x14u; /* 0x470695CF: add esp, 0x14 */ 1536 _flag_k = FK_ADD; 1537 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470695D2: ret 0xc */ 1538 L_470695D5: 1539 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470695D5: call dword ptr [0x470ac150] */ 1540 RECOMP_FLAGS_IN(); 1541 edi = eax; /* 0x470695DB: mov edi, eax */ 1542 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470695DD: call dword ptr [0x470ac3c8] */ 1543 RECOMP_FLAGS_IN(); 1544 eax = MEM32(eax); /* 0x470695E3: mov eax, dword ptr [eax] */ 1545 /* cmp eax, ebp */ /* 0x470695E5: cmp eax, ebp */ 1546 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 1547 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1548 _flag_k = FK_CMP; 1549 if (CMP_EQ(_flag_a, _flag_b)) goto L_470695EB; /* 0x470695E7: je 0x470695eb */ 1550 L_470695E9: 1551 edi = eax; /* 0x470695E9: mov edi, eax */ 1552 L_470695EB: 1553 RECOMP_ICALL(0x47039020u); /* 0x470695EB: call 0x47039020 */ /* not lifted */ 1554 RECOMP_FLAGS_IN(); 1555 esi = eax; /* 0x470695F0: mov esi, eax */ 1556 ecx = esi; /* 0x470695F2: mov ecx, esi */ 1557 RECOMP_ICALL(0x4703B210u); /* 0x470695F4: call 0x4703b210 */ /* not lifted */ 1558 RECOMP_FLAGS_IN(); 1559 PUSH32(esp, eax); /* 0x470695F9: push eax */ 1560 ecx = esi; /* 0x470695FA: mov ecx, esi */ 1561 RECOMP_ICALL(0x4703B240u); /* 0x470695FC: call 0x4703b240 */ /* not lifted */ 1562 RECOMP_FLAGS_IN(); 1563 PUSH32(esp, eax); /* 0x47069601: push eax */ 1564 ecx = esi; /* 0x47069602: mov ecx, esi */ 1565 RECOMP_ICALL(0x4703B080u); /* 0x47069604: call 0x4703b080 */ /* not lifted */ 1566 RECOMP_FLAGS_IN(); 1567 PUSH32(esp, eax); /* 0x47069609: push eax */ 1568 PUSH32(esp, edi); /* 0x4706960A: push edi */ 1569 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706960B: push -1 */ 1570 PUSH32(esp, 0x16Eu); /* 0x4706960D: push 0x16e */ 1571 PUSH32(esp, 0x47109BA8u); /* 0x47069612: push 0x47109ba8 */ 1572 ecx = esi; /* 0x47069617: mov ecx, esi */ 1573 RECOMP_ICALL(0x4703A340u); /* 0x47069619: call 0x4703a340 */ /* not lifted */ 1574 RECOMP_FLAGS_IN(); 1575 PUSH32(esp, 0x47109C20u); /* 0x4706961E: push 0x47109c20 */ 1576 PUSH32(esp, 0x80u); /* 0x47069623: push 0x80 */ 1577 PUSH32(esp, esi); /* 0x47069628: push esi */ 1578 RECOMP_ICALL(0x47039830u); /* 0x47069629: call 0x47039830 */ /* not lifted */ 1579 RECOMP_FLAGS_IN(); 1580 ecx = MEM32(esp + 0x20); /* 0x4706962E: mov ecx, dword ptr [esp + 0x20] */ 1581 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1582 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1583 esp = esp + 0xCu; /* 0x47069632: add esp, 0xc */ 1584 _flag_k = FK_ADD; 1585 edi = POP32_VAL(esp); /* 0x47069635: pop edi */ 1586 esi = POP32_VAL(esp); /* 0x47069636: pop esi */ 1587 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1588 eax = eax | 0xFFFFFFFFu; /* 0x47069637: or eax, 0xffffffff */ 1589 _cf = 0; 1590 _flag_k = FK_TEST; 1591 ebp = POP32_VAL(esp); /* 0x4706963A: pop ebp */ 1592 MEM32(FS_BASE + (0)) = ecx; /* 0x4706963B: mov dword ptr fs:[0], ecx */ 1593 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1594 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1595 esp = esp + 0x14u; /* 0x47069642: add esp, 0x14 */ 1596 _flag_k = FK_ADD; 1597 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47069645: ret 0xc */ 1598 RECOMP_REGS_OUT(); 1599 } 1600 1601 void sub_47069650(void) { 1602 int _fpu_cmp = 0; 1603 uint32_t _cf = 0; 1604 int _df = 1; 1605 uint32_t _flag_k = FK_NONE; 1606 uint32_t _flag_a = 0, _flag_b = 0; 1607 uint32_t _itail_tgt = 0; 1608 RECOMP_REGS_LOCALS 1609 RECOMP_ENTER(0x47069650u); 1610 1611 L_47069650: 1612 PUSH32(esp, 0xFFFFFFFFu); /* 0x47069650: push -1 */ 1613 PUSH32(esp, 0x470A8818u); /* 0x47069652: push 0x470a8818 */ 1614 eax = MEM32(FS_BASE + (0)); /* 0x47069657: mov eax, dword ptr fs:[0] */ 1615 PUSH32(esp, eax); /* 0x4706965D: push eax */ 1616 MEM32(FS_BASE + (0)) = esp; /* 0x4706965E: mov dword ptr fs:[0], esp */ 1617 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1618 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1619 esp = esp - 8; /* 0x47069665: sub esp, 8 */ 1620 _flag_k = FK_CMP; 1621 PUSH32(esp, ebx); /* 0x47069668: push ebx */ 1622 PUSH32(esp, ebp); /* 0x47069669: push ebp */ 1623 PUSH32(esp, esi); /* 0x4706966A: push esi */ 1624 esi = ecx; /* 0x4706966B: mov esi, ecx */ 1625 PUSH32(esp, edi); /* 0x4706966D: push edi */ 1626 ebx = esi + 0x1C; /* 0x4706966E: lea ebx, [esi + 0x1c] */ 1627 PUSH32(esp, ebx); /* 0x47069671: push ebx */ 1628 MEM32(esp + 0x14) = ebx; /* 0x47069672: mov dword ptr [esp + 0x14], ebx */ 1629 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47069676: call dword ptr [0x470ac180] */ 1630 RECOMP_FLAGS_IN(); 1631 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1632 eax = 0; /* 0x4706967C: xor eax, eax */ 1633 _cf = 0; 1634 _flag_k = FK_TEST; 1635 MEM32(esp + 0x14) = eax; /* 0x4706967E: mov dword ptr [esp + 0x14], eax */ 1636 edi = MEM32(esp + 0x2C); /* 0x47069682: mov edi, dword ptr [esp + 0x2c] */ 1637 /* cmp edi, 0xFFFFFFFFu */ /* 0x47069686: cmp edi, -1 */ 1638 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu); 1639 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1640 _flag_k = FK_CMP; 1641 MEM32(esp + 0x20) = eax; /* 0x47069689: mov dword ptr [esp + 0x20], eax */ 1642 if (CMP_NE(_flag_a, _flag_b)) goto L_470696A6; /* 0x4706968D: jne 0x470696a6 */ 1643 L_4706968F: 1644 ecx = MEM32(esi + 0x18); /* 0x4706968F: mov ecx, dword ptr [esi + 0x18] */ 1645 /* cmp ecx, eax */ /* 0x47069692: cmp ecx, eax */ 1646 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1647 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1648 _flag_k = FK_CMP; 1649 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706969D; /* 0x47069694: je 0x4706969d */ 1650 L_47069696: 1651 edx = MEM32(ecx); /* 0x47069696: mov edx, dword ptr [ecx] */ 1652 PUSH32(esp, eax); /* 0x47069698: push eax */ 1653 PUSH32(esp, edi); /* 0x47069699: push edi */ 1654 RECOMP_ICALL(MEM32(edx + 0x28)); /* 0x4706969A: call dword ptr [edx + 0x28] */ 1655 RECOMP_FLAGS_IN(); 1656 L_4706969D: 1657 eax = MEM32(esp + 0x28); /* 0x4706969D: mov eax, dword ptr [esp + 0x28] */ 1658 MEM32(esi + 0x18) = eax; /* 0x470696A1: mov dword ptr [esi + 0x18], eax */ 1659 goto L_470696F9; /* 0x470696A4: jmp 0x470696f9 */ 1660 L_470696A6: 1661 edx = MEM32(esi + 0x14); /* 0x470696A6: mov edx, dword ptr [esi + 0x14] */ 1662 /* cmp edx, eax */ /* 0x470696A9: cmp edx, eax */ 1663 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1664 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1665 _flag_k = FK_CMP; 1666 if (CMP_BE(_flag_a, _flag_b)) goto L_470696D2; /* 0x470696AB: jbe 0x470696d2 */ 1667 L_470696AD: 1668 esi = MEM32(esi + 0xC); /* 0x470696AD: mov esi, dword ptr [esi + 0xc] */ 1669 ecx = esi; /* 0x470696B0: mov ecx, esi */ 1670 L_470696B2: 1671 ebp = MEM32(ecx); /* 0x470696B2: mov ebp, dword ptr [ecx] */ 1672 /* cmp edi, MEM32(ebp + 0xC) */ /* 0x470696B4: cmp edi, dword ptr [ebp + 0xc] */ 1673 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + 0xC)); 1674 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1675 _flag_k = FK_CMP; 1676 if (CMP_EQ(_flag_a, _flag_b)) goto L_470696CD; /* 0x470696B7: je 0x470696cd */ 1677 L_470696B9: 1678 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1679 eax = eax + 1; /* 0x470696B9: inc eax */ 1680 _flag_k = FK_INC; 1681 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 1682 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1683 ecx = ecx + 8; /* 0x470696BA: add ecx, 8 */ 1684 _flag_k = FK_ADD; 1685 /* cmp eax, edx */ /* 0x470696BD: cmp eax, edx */ 1686 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1687 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1688 _flag_k = FK_CMP; 1689 RECOMP_BACKEDGE(); 1690 if (CMP_B(_flag_a, _flag_b)) goto L_470696B2; /* 0x470696BF: jb 0x470696b2 */ 1691 L_470696C1: 1692 PUSH32(esp, ebx); /* 0x470696C1: push ebx */ 1693 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470696C2: call dword ptr [0x470ac190] */ 1694 RECOMP_FLAGS_IN(); 1695 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1696 eax = eax | 0xFFFFFFFFu; /* 0x470696C8: or eax, 0xffffffff */ 1697 _cf = 0; 1698 _flag_k = FK_TEST; 1699 goto L_47069702; /* 0x470696CB: jmp 0x47069702 */ 1700 L_470696CD: 1701 /* cmp eax, 0xFFFFFFFFu */ /* 0x470696CD: cmp eax, -1 */ 1702 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 1703 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1704 _flag_k = FK_CMP; 1705 if (CMP_NE(_flag_a, _flag_b)) goto L_470696DE; /* 0x470696D0: jne 0x470696de */ 1706 L_470696D2: 1707 PUSH32(esp, ebx); /* 0x470696D2: push ebx */ 1708 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470696D3: call dword ptr [0x470ac190] */ 1709 RECOMP_FLAGS_IN(); 1710 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1711 eax = eax | 0xFFFFFFFFu; /* 0x470696D9: or eax, 0xffffffff */ 1712 _cf = 0; 1713 _flag_k = FK_TEST; 1714 goto L_47069702; /* 0x470696DC: jmp 0x47069702 */ 1715 L_470696DE: 1716 ecx = MEM32(esi + eax * 8 + 0x4); /* 0x470696DE: mov ecx, dword ptr [esi + eax*8 + 4] */ 1717 /* test ecx, ecx */ /* 0x470696E2: test ecx, ecx */ 1718 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1719 _cf = 0; 1720 _flag_k = FK_TEST; 1721 esi = esi + eax * 8 + 0x4; /* 0x470696E4: lea esi, [esi + eax*8 + 4] */ 1722 if (TEST_Z(_flag_a, _flag_b)) goto L_470696F3; /* 0x470696E8: je 0x470696f3 */ 1723 L_470696EA: 1724 edx = MEM32(ecx); /* 0x470696EA: mov edx, dword ptr [ecx] */ 1725 PUSH32(esp, 0); /* 0x470696EC: push 0 */ 1726 PUSH32(esp, 0xFFFFFFFFu); /* 0x470696EE: push -1 */ 1727 RECOMP_ICALL(MEM32(edx + 0x28)); /* 0x470696F0: call dword ptr [edx + 0x28] */ 1728 RECOMP_FLAGS_IN(); 1729 L_470696F3: 1730 eax = MEM32(esp + 0x28); /* 0x470696F3: mov eax, dword ptr [esp + 0x28] */ 1731 MEM32(esi) = eax; /* 0x470696F7: mov dword ptr [esi], eax */ 1732 L_470696F9: 1733 PUSH32(esp, ebx); /* 0x470696F9: push ebx */ 1734 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470696FA: call dword ptr [0x470ac190] */ 1735 RECOMP_FLAGS_IN(); 1736 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1737 eax = 0; /* 0x47069700: xor eax, eax */ 1738 _cf = 0; 1739 _flag_k = FK_TEST; 1740 L_47069702: 1741 ecx = MEM32(esp + 0x18); /* 0x47069702: mov ecx, dword ptr [esp + 0x18] */ 1742 edi = POP32_VAL(esp); /* 0x47069706: pop edi */ 1743 esi = POP32_VAL(esp); /* 0x47069707: pop esi */ 1744 ebp = POP32_VAL(esp); /* 0x47069708: pop ebp */ 1745 ebx = POP32_VAL(esp); /* 0x47069709: pop ebx */ 1746 MEM32(FS_BASE + (0)) = ecx; /* 0x4706970A: mov dword ptr fs:[0], ecx */ 1747 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1748 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1749 esp = esp + 0x14u; /* 0x47069711: add esp, 0x14 */ 1750 _flag_k = FK_ADD; 1751 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47069714: ret 8 */ 1752 RECOMP_REGS_OUT(); 1753 } 1754 1755 void sub_47069720(void) { 1756 int _fpu_cmp = 0; 1757 uint32_t _cf = 0; 1758 int _df = 1; 1759 uint32_t _flag_k = FK_NONE; 1760 uint32_t _flag_a = 0, _flag_b = 0; 1761 uint32_t _itail_tgt = 0; 1762 RECOMP_REGS_LOCALS 1763 RECOMP_ENTER(0x47069720u); 1764 1765 L_47069720: 1766 PUSH32(esp, 0xFFFFFFFFu); /* 0x47069720: push -1 */ 1767 PUSH32(esp, 0x470A883Bu); /* 0x47069722: push 0x470a883b */ 1768 eax = MEM32(FS_BASE + (0)); /* 0x47069727: mov eax, dword ptr fs:[0] */ 1769 PUSH32(esp, eax); /* 0x4706972D: push eax */ 1770 MEM32(FS_BASE + (0)) = esp; /* 0x4706972E: mov dword ptr fs:[0], esp */ 1771 PUSH32(esp, ecx); /* 0x47069735: push ecx */ 1772 PUSH32(esp, esi); /* 0x47069736: push esi */ 1773 PUSH32(esp, edi); /* 0x47069737: push edi */ 1774 PUSH32(esp, 0x18u); /* 0x47069738: push 0x18 */ 1775 edi = ecx; /* 0x4706973A: mov edi, ecx */ 1776 RECOMP_ICALL(0x470A33F2u); /* 0x4706973C: call 0x470a33f2 */ /* not lifted */ 1777 RECOMP_FLAGS_IN(); 1778 esi = eax; /* 0x47069741: mov esi, eax */ 1779 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1780 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1781 esp = esp + 4; /* 0x47069743: add esp, 4 */ 1782 _flag_k = FK_ADD; 1783 MEM32(esp + 0x8) = esi; /* 0x47069746: mov dword ptr [esp + 8], esi */ 1784 /* test esi, esi */ /* 0x4706974A: test esi, esi */ 1785 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 1786 _cf = 0; 1787 _flag_k = FK_TEST; 1788 MEM32(esp + 0x14) = 0; /* 0x4706974C: mov dword ptr [esp + 0x14], 0 */ 1789 if (TEST_Z(_flag_a, _flag_b)) goto L_47069765; /* 0x47069754: je 0x47069765 */ 1790 L_47069756: 1791 ecx = esi; /* 0x47069756: mov ecx, esi */ 1792 RECOMP_ICALL(0x47068120u); /* 0x47069758: call 0x47068120 */ /* not lifted */ 1793 RECOMP_FLAGS_IN(); 1794 MEM32(esi) = 0x470AEA38u; /* 0x4706975D: mov dword ptr [esi], 0x470aea38 */ 1795 goto L_47069767; /* 0x47069763: jmp 0x47069767 */ 1796 L_47069765: 1797 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1798 esi = 0; /* 0x47069765: xor esi, esi */ 1799 _cf = 0; 1800 _flag_k = FK_TEST; 1801 L_47069767: 1802 /* test esi, esi */ /* 0x47069767: test esi, esi */ 1803 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 1804 _cf = 0; 1805 _flag_k = FK_TEST; 1806 MEM32(esp + 0x14) = 0xFFFFFFFFu; /* 0x47069769: mov dword ptr [esp + 0x14], 0xffffffff */ 1807 if (TEST_NZ(_flag_a, _flag_b)) goto L_47069795; /* 0x47069771: jne 0x47069795 */ 1808 L_47069773: 1809 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47069773: call dword ptr [0x470ac3c8] */ 1810 RECOMP_FLAGS_IN(); 1811 edi = POP32_VAL(esp); /* 0x47069779: pop edi */ 1812 MEM32(eax) = 0xCu; /* 0x4706977A: mov dword ptr [eax], 0xc */ 1813 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1814 eax = eax | 0xFFFFFFFFu; /* 0x47069780: or eax, 0xffffffff */ 1815 _cf = 0; 1816 _flag_k = FK_TEST; 1817 esi = POP32_VAL(esp); /* 0x47069783: pop esi */ 1818 ecx = MEM32(esp + 0x4); /* 0x47069784: mov ecx, dword ptr [esp + 4] */ 1819 MEM32(FS_BASE + (0)) = ecx; /* 0x47069788: mov dword ptr fs:[0], ecx */ 1820 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1821 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1822 esp = esp + 0x10u; /* 0x4706978F: add esp, 0x10 */ 1823 _flag_k = FK_ADD; 1824 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47069792: ret 4 */ 1825 L_47069795: 1826 eax = MEM32(esp + 0x1C); /* 0x47069795: mov eax, dword ptr [esp + 0x1c] */ 1827 PUSH32(esp, eax); /* 0x47069799: push eax */ 1828 PUSH32(esp, esi); /* 0x4706979A: push esi */ 1829 ecx = edi; /* 0x4706979B: mov ecx, edi */ 1830 RECOMP_ICALL(0x470697C0u); /* 0x4706979D: call 0x470697c0 */ /* not lifted */ 1831 RECOMP_FLAGS_IN(); 1832 ecx = MEM32(esp + 0xC); /* 0x470697A2: mov ecx, dword ptr [esp + 0xc] */ 1833 edi = POP32_VAL(esp); /* 0x470697A6: pop edi */ 1834 esi = POP32_VAL(esp); /* 0x470697A7: pop esi */ 1835 MEM32(FS_BASE + (0)) = ecx; /* 0x470697A8: mov dword ptr fs:[0], ecx */ 1836 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1837 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1838 esp = esp + 0x10u; /* 0x470697AF: add esp, 0x10 */ 1839 _flag_k = FK_ADD; 1840 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470697B2: ret 4 */ 1841 RECOMP_REGS_OUT(); 1842 } 1843 1844 void sub_470697C0(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(0x470697C0u); 1853 1854 L_470697C0: 1855 eax = MEM32(FS_BASE + (0)); /* 0x470697C0: mov eax, dword ptr fs:[0] */ 1856 PUSH32(esp, 0xFFFFFFFFu); /* 0x470697C6: push -1 */ 1857 PUSH32(esp, 0x470A8858u); /* 0x470697C8: push 0x470a8858 */ 1858 PUSH32(esp, eax); /* 0x470697CD: push eax */ 1859 MEM32(FS_BASE + (0)) = esp; /* 0x470697CE: mov dword ptr fs:[0], esp */ 1860 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1861 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1862 esp = esp - 8; /* 0x470697D5: sub esp, 8 */ 1863 _flag_k = FK_CMP; 1864 PUSH32(esp, ebx); /* 0x470697D8: push ebx */ 1865 ebx = MEM32(esp + 0x20); /* 0x470697D9: mov ebx, dword ptr [esp + 0x20] */ 1866 eax = MEM32(ebx + 0x3A4); /* 0x470697DD: mov eax, dword ptr [ebx + 0x3a4] */ 1867 /* cmp eax, 0xFFFFFFFFu */ /* 0x470697E3: cmp eax, -1 */ 1868 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 1869 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1870 _flag_k = FK_CMP; 1871 PUSH32(esp, ebp); /* 0x470697E6: push ebp */ 1872 PUSH32(esp, esi); /* 0x470697E7: push esi */ 1873 PUSH32(esp, edi); /* 0x470697E8: push edi */ 1874 esi = ecx; /* 0x470697E9: mov esi, ecx */ 1875 if (CMP_NE(_flag_a, _flag_b)) goto L_470697F9; /* 0x470697EB: jne 0x470697f9 */ 1876 L_470697ED: 1877 RECOMP_ICALL(MEM32(0x470AC0E8)); /* 0x470697ED: call dword ptr [0x470ac0e8] */ 1878 RECOMP_FLAGS_IN(); 1879 MEM32(ebx + 0x3A4) = eax; /* 0x470697F3: mov dword ptr [ebx + 0x3a4], eax */ 1880 L_470697F9: 1881 edi = MEM32(esp + 0x28); /* 0x470697F9: mov edi, dword ptr [esp + 0x28] */ 1882 eax = MEM32(edi); /* 0x470697FD: mov eax, dword ptr [edi] */ 1883 PUSH32(esp, ebx); /* 0x470697FF: push ebx */ 1884 ecx = edi; /* 0x47069800: mov ecx, edi */ 1885 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x47069802: call dword ptr [eax + 8] */ 1886 RECOMP_FLAGS_IN(); 1887 ebp = eax; /* 0x47069805: mov ebp, eax */ 1888 /* cmp ebp, 0xFFFFFFFFu */ /* 0x47069807: cmp ebp, -1 */ 1889 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(0xFFFFFFFFu); 1890 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1891 _flag_k = FK_CMP; 1892 if (CMP_EQ(_flag_a, _flag_b)) goto L_47069875; /* 0x4706980A: je 0x47069875 */ 1893 L_4706980C: 1894 /* test ebp, ebp */ /* 0x4706980C: test ebp, ebp */ 1895 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp); 1896 _cf = 0; 1897 _flag_k = FK_TEST; 1898 if (TEST_Z(_flag_a, _flag_b)) goto L_47069875; /* 0x4706980E: je 0x47069875 */ 1899 L_47069810: 1900 ebx = esi + 0x1C; /* 0x47069810: lea ebx, [esi + 0x1c] */ 1901 PUSH32(esp, ebx); /* 0x47069813: push ebx */ 1902 MEM32(esp + 0x14) = ebx; /* 0x47069814: mov dword ptr [esp + 0x14], ebx */ 1903 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47069818: call dword ptr [0x470ac180] */ 1904 RECOMP_FLAGS_IN(); 1905 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1906 ecx = 0; /* 0x4706981E: xor ecx, ecx */ 1907 _cf = 0; 1908 _flag_k = FK_TEST; 1909 MEM32(esp + 0x14) = ecx; /* 0x47069820: mov dword ptr [esp + 0x14], ecx */ 1910 eax = MEM32(esi + 0x10); /* 0x47069824: mov eax, dword ptr [esi + 0x10] */ 1911 /* cmp MEM32(esi + 0x14), eax */ /* 0x47069827: cmp dword ptr [esi + 0x14], eax */ 1912 _flag_a = (uint32_t)(MEM32(esi + 0x14)); _flag_b = (uint32_t)(eax); 1913 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1914 _flag_k = FK_CMP; 1915 MEM32(esp + 0x20) = ecx; /* 0x4706982A: mov dword ptr [esp + 0x20], ecx */ 1916 if (CMP_B(_flag_a, _flag_b)) goto L_47069842; /* 0x4706982E: jb 0x47069842 */ 1917 L_47069830: 1918 ecx = eax + eax; /* 0x47069830: lea ecx, [eax + eax] */ 1919 PUSH32(esp, ecx); /* 0x47069833: push ecx */ 1920 ecx = esi; /* 0x47069834: mov ecx, esi */ 1921 RECOMP_ICALL(0x47069120u); /* 0x47069836: call 0x47069120 */ /* not lifted */ 1922 RECOMP_FLAGS_IN(); 1923 /* cmp eax, 0xFFFFFFFFu */ /* 0x4706983B: cmp eax, -1 */ 1924 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 1925 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1926 _flag_k = FK_CMP; 1927 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706988C; /* 0x4706983E: je 0x4706988c */ 1928 L_47069840: 1929 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1930 ecx = 0; /* 0x47069840: xor ecx, ecx */ 1931 _cf = 0; 1932 _flag_k = FK_TEST; 1933 L_47069842: 1934 edx = MEM32(esi + 0x14); /* 0x47069842: mov edx, dword ptr [esi + 0x14] */ 1935 eax = MEM32(esi + 0xC); /* 0x47069845: mov eax, dword ptr [esi + 0xc] */ 1936 eax = eax + edx * 8; /* 0x47069848: lea eax, [eax + edx*8] */ 1937 MEM32(eax + 0x4) = ecx; /* 0x4706984B: mov dword ptr [eax + 4], ecx */ 1938 MEM32(eax) = edi; /* 0x4706984E: mov dword ptr [eax], edi */ 1939 edx = MEM32(esi); /* 0x47069850: mov edx, dword ptr [esi] */ 1940 ecx = esi; /* 0x47069852: mov ecx, esi */ 1941 RECOMP_ICALL(MEM32(edx + 0x38)); /* 0x47069854: call dword ptr [edx + 0x38] */ 1942 RECOMP_FLAGS_IN(); 1943 /* test eax, eax */ /* 0x47069857: test eax, eax */ 1944 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1945 _cf = 0; 1946 _flag_k = FK_TEST; 1947 if (TEST_Z(_flag_a, _flag_b)) goto L_47069867; /* 0x47069859: je 0x47069867 */ 1948 L_4706985B: 1949 ecx = MEM32(edi + 0x4); /* 0x4706985B: mov ecx, dword ptr [edi + 4] */ 1950 edx = MEM32(eax); /* 0x4706985E: mov edx, dword ptr [eax] */ 1951 PUSH32(esp, ecx); /* 0x47069860: push ecx */ 1952 PUSH32(esp, esi); /* 0x47069861: push esi */ 1953 ecx = eax; /* 0x47069862: mov ecx, eax */ 1954 RECOMP_ICALL(MEM32(edx + 0x54)); /* 0x47069864: call dword ptr [edx + 0x54] */ 1955 RECOMP_FLAGS_IN(); 1956 L_47069867: 1957 eax = MEM32(esi + 0x14); /* 0x47069867: mov eax, dword ptr [esi + 0x14] */ 1958 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1959 eax = eax + 1; /* 0x4706986A: inc eax */ 1960 _flag_k = FK_INC; 1961 PUSH32(esp, ebx); /* 0x4706986B: push ebx */ 1962 MEM32(esi + 0x14) = eax; /* 0x4706986C: mov dword ptr [esi + 0x14], eax */ 1963 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4706986F: call dword ptr [0x470ac190] */ 1964 RECOMP_FLAGS_IN(); 1965 L_47069875: 1966 eax = ebp; /* 0x47069875: mov eax, ebp */ 1967 L_47069877: 1968 ecx = MEM32(esp + 0x18); /* 0x47069877: mov ecx, dword ptr [esp + 0x18] */ 1969 edi = POP32_VAL(esp); /* 0x4706987B: pop edi */ 1970 esi = POP32_VAL(esp); /* 0x4706987C: pop esi */ 1971 ebp = POP32_VAL(esp); /* 0x4706987D: pop ebp */ 1972 ebx = POP32_VAL(esp); /* 0x4706987E: pop ebx */ 1973 MEM32(FS_BASE + (0)) = ecx; /* 0x4706987F: mov dword ptr fs:[0], ecx */ 1974 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1975 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1976 esp = esp + 0x14u; /* 0x47069886: add esp, 0x14 */ 1977 _flag_k = FK_ADD; 1978 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47069889: ret 8 */ 1979 L_4706988C: 1980 PUSH32(esp, ebx); /* 0x4706988C: push ebx */ 1981 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4706988D: call dword ptr [0x470ac190] */ 1982 RECOMP_FLAGS_IN(); 1983 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1984 eax = eax | 0xFFFFFFFFu; /* 0x47069893: or eax, 0xffffffff */ 1985 _cf = 0; 1986 _flag_k = FK_TEST; 1987 RECOMP_BACKEDGE(); 1988 goto L_47069877; /* 0x47069896: jmp 0x47069877 */ 1989 { RECOMP_REGS_OUT(); return; } /* end of function */ 1990 RECOMP_REGS_OUT(); 1991 } 1992 1993 void sub_470698A0(void) { 1994 int _fpu_cmp = 0; 1995 uint32_t _cf = 0; 1996 int _df = 1; 1997 uint32_t _flag_k = FK_NONE; 1998 uint32_t _flag_a = 0, _flag_b = 0; 1999 uint32_t _itail_tgt = 0; 2000 RECOMP_REGS_LOCALS 2001 RECOMP_ENTER(0x470698A0u); 2002 2003 L_470698A0: 2004 PUSH32(esp, ecx); /* 0x470698A0: push ecx */ 2005 PUSH32(esp, ebx); /* 0x470698A1: push ebx */ 2006 ebx = MEM32(esp + 0xC); /* 0x470698A2: mov ebx, dword ptr [esp + 0xc] */ 2007 PUSH32(esp, ebp); /* 0x470698A6: push ebp */ 2008 ebp = MEM32(esp + 0x18); /* 0x470698A7: mov ebp, dword ptr [esp + 0x18] */ 2009 /* test ebp, ebp */ /* 0x470698AB: test ebp, ebp */ 2010 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp); 2011 _cf = 0; 2012 _flag_k = FK_TEST; 2013 PUSH32(esp, esi); /* 0x470698AD: push esi */ 2014 PUSH32(esp, edi); /* 0x470698AE: push edi */ 2015 MEM32(esp + 0x10) = ecx; /* 0x470698AF: mov dword ptr [esp + 0x10], ecx */ 2016 if (TEST_Z(_flag_a, _flag_b)) goto L_470698C2; /* 0x470698B3: je 0x470698c2 */ 2017 L_470698B5: 2018 /* test ebx, ebx */ /* 0x470698B5: test ebx, ebx */ 2019 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 2020 _cf = 0; 2021 _flag_k = FK_TEST; 2022 if (TEST_Z(_flag_a, _flag_b)) goto L_470698C2; /* 0x470698B7: jbe 0x470698c2 */ 2023 L_470698B9: 2024 ecx = ebx; /* 0x470698B9: mov ecx, ebx */ 2025 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2026 eax = eax | 0xFFFFFFFFu; /* 0x470698BB: or eax, 0xffffffff */ 2027 _cf = 0; 2028 _flag_k = FK_TEST; 2029 edi = ebp; /* 0x470698BE: mov edi, ebp */ 2030 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x470698C0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 2031 L_470698C2: 2032 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2033 esi = 0; /* 0x470698C2: xor esi, esi */ 2034 _cf = 0; 2035 _flag_k = FK_TEST; 2036 /* test ebx, ebx */ /* 0x470698C4: test ebx, ebx */ 2037 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 2038 _cf = 0; 2039 _flag_k = FK_TEST; 2040 if (TEST_Z(_flag_a, _flag_b)) goto L_470698EF; /* 0x470698C6: jbe 0x470698ef */ 2041 L_470698C8: 2042 edi = ebp; /* 0x470698C8: mov edi, ebp */ 2043 L_470698CA: 2044 eax = MEM32(esp + 0x1C); /* 0x470698CA: mov eax, dword ptr [esp + 0x1c] */ 2045 ecx = MEM32(esp + 0x10); /* 0x470698CE: mov ecx, dword ptr [esp + 0x10] */ 2046 PUSH32(esp, eax); /* 0x470698D2: push eax */ 2047 RECOMP_ICALL(0x47069720u); /* 0x470698D3: call 0x47069720 */ /* not lifted */ 2048 RECOMP_FLAGS_IN(); 2049 /* cmp eax, 0xFFFFFFFFu */ /* 0x470698D8: cmp eax, -1 */ 2050 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 2051 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2052 _flag_k = FK_CMP; 2053 if (CMP_EQ(_flag_a, _flag_b)) goto L_470698F1; /* 0x470698DB: je 0x470698f1 */ 2054 L_470698DD: 2055 /* test eax, eax */ /* 0x470698DD: test eax, eax */ 2056 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2057 _cf = 0; 2058 _flag_k = FK_TEST; 2059 if (TEST_Z(_flag_a, _flag_b)) goto L_470698F1; /* 0x470698DF: je 0x470698f1 */ 2060 L_470698E1: 2061 /* test ebp, ebp */ /* 0x470698E1: test ebp, ebp */ 2062 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp); 2063 _cf = 0; 2064 _flag_k = FK_TEST; 2065 if (TEST_Z(_flag_a, _flag_b)) goto L_470698E7; /* 0x470698E3: je 0x470698e7 */ 2066 L_470698E5: 2067 MEM32(edi) = eax; /* 0x470698E5: mov dword ptr [edi], eax */ 2068 L_470698E7: 2069 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 2070 esi = esi + 1; /* 0x470698E7: inc esi */ 2071 _flag_k = FK_INC; 2072 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 2073 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2074 edi = edi + 4; /* 0x470698E8: add edi, 4 */ 2075 _flag_k = FK_ADD; 2076 /* cmp esi, ebx */ /* 0x470698EB: cmp esi, ebx */ 2077 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2078 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2079 _flag_k = FK_CMP; 2080 RECOMP_BACKEDGE(); 2081 if (CMP_B(_flag_a, _flag_b)) goto L_470698CA; /* 0x470698ED: jb 0x470698ca */ 2082 L_470698EF: 2083 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2084 eax = 0; /* 0x470698EF: xor eax, eax */ 2085 _cf = 0; 2086 _flag_k = FK_TEST; 2087 L_470698F1: 2088 edi = POP32_VAL(esp); /* 0x470698F1: pop edi */ 2089 esi = POP32_VAL(esp); /* 0x470698F2: pop esi */ 2090 ebp = POP32_VAL(esp); /* 0x470698F3: pop ebp */ 2091 ebx = POP32_VAL(esp); /* 0x470698F4: pop ebx */ 2092 ecx = POP32_VAL(esp); /* 0x470698F5: pop ecx */ 2093 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470698F6: ret 0xc */ 2094 RECOMP_REGS_OUT(); 2095 } 2096 2097 void sub_47069900(void) { 2098 int _fpu_cmp = 0; 2099 uint32_t _cf = 0; 2100 int _df = 1; 2101 uint32_t _flag_k = FK_NONE; 2102 uint32_t _flag_a = 0, _flag_b = 0; 2103 uint32_t _itail_tgt = 0; 2104 RECOMP_REGS_LOCALS 2105 RECOMP_ENTER(0x47069900u); 2106 2107 L_47069900: 2108 PUSH32(esp, esi); /* 0x47069900: push esi */ 2109 esi = ecx; /* 0x47069901: mov esi, ecx */ 2110 eax = MEM32(esi + 0x10); /* 0x47069903: mov eax, dword ptr [esi + 0x10] */ 2111 /* cmp MEM32(esi + 0x14), eax */ /* 0x47069906: cmp dword ptr [esi + 0x14], eax */ 2112 _flag_a = (uint32_t)(MEM32(esi + 0x14)); _flag_b = (uint32_t)(eax); 2113 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2114 _flag_k = FK_CMP; 2115 if (CMP_B(_flag_a, _flag_b)) goto L_47069920; /* 0x47069909: jb 0x47069920 */ 2116 L_4706990B: 2117 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2118 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2119 eax = eax + eax; /* 0x4706990B: add eax, eax */ 2120 _flag_k = FK_ADD; 2121 PUSH32(esp, eax); /* 0x4706990D: push eax */ 2122 ecx = esi; /* 0x4706990E: mov ecx, esi */ 2123 RECOMP_ICALL(0x47069120u); /* 0x47069910: call 0x47069120 */ /* not lifted */ 2124 RECOMP_FLAGS_IN(); 2125 /* cmp eax, 0xFFFFFFFFu */ /* 0x47069915: cmp eax, -1 */ 2126 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 2127 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2128 _flag_k = FK_CMP; 2129 if (CMP_NE(_flag_a, _flag_b)) goto L_47069920; /* 0x47069918: jne 0x47069920 */ 2130 L_4706991A: 2131 _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax)); 2132 eax = eax | eax; /* 0x4706991A: or eax, eax */ 2133 _cf = 0; 2134 _flag_k = FK_TEST; 2135 esi = POP32_VAL(esp); /* 0x4706991C: pop esi */ 2136 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706991D: ret 4 */ 2137 L_47069920: 2138 ecx = MEM32(esi + 0x14); /* 0x47069920: mov ecx, dword ptr [esi + 0x14] */ 2139 edx = MEM32(esi + 0xC); /* 0x47069923: mov edx, dword ptr [esi + 0xc] */ 2140 eax = edx + ecx * 8; /* 0x47069926: lea eax, [edx + ecx*8] */ 2141 PUSH32(esp, edi); /* 0x47069929: push edi */ 2142 edi = MEM32(esp + 0xC); /* 0x4706992A: mov edi, dword ptr [esp + 0xc] */ 2143 MEM32(eax) = edi; /* 0x4706992E: mov dword ptr [eax], edi */ 2144 MEM32(eax + 0x4) = 0; /* 0x47069930: mov dword ptr [eax + 4], 0 */ 2145 eax = MEM32(esi); /* 0x47069937: mov eax, dword ptr [esi] */ 2146 ecx = esi; /* 0x47069939: mov ecx, esi */ 2147 RECOMP_ICALL(MEM32(eax + 0x38)); /* 0x4706993B: call dword ptr [eax + 0x38] */ 2148 RECOMP_FLAGS_IN(); 2149 /* test eax, eax */ /* 0x4706993E: test eax, eax */ 2150 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2151 _cf = 0; 2152 _flag_k = FK_TEST; 2153 if (TEST_Z(_flag_a, _flag_b)) goto L_4706994E; /* 0x47069940: je 0x4706994e */ 2154 L_47069942: 2155 ecx = MEM32(edi + 0x4); /* 0x47069942: mov ecx, dword ptr [edi + 4] */ 2156 edx = MEM32(eax); /* 0x47069945: mov edx, dword ptr [eax] */ 2157 PUSH32(esp, ecx); /* 0x47069947: push ecx */ 2158 PUSH32(esp, esi); /* 0x47069948: push esi */ 2159 ecx = eax; /* 0x47069949: mov ecx, eax */ 2160 RECOMP_ICALL(MEM32(edx + 0x54)); /* 0x4706994B: call dword ptr [edx + 0x54] */ 2161 RECOMP_FLAGS_IN(); 2162 L_4706994E: 2163 _flag_a = (uint32_t)(MEM32(esi + 0x14)); _flag_b = (uint32_t)(1); 2164 MEM32(esi + 0x14) = MEM32(esi + 0x14) + 1; /* 0x4706994E: inc dword ptr [esi + 0x14] */ 2165 _flag_k = FK_INC; 2166 edi = POP32_VAL(esp); /* 0x47069951: pop edi */ 2167 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2168 eax = 0; /* 0x47069952: xor eax, eax */ 2169 _cf = 0; 2170 _flag_k = FK_TEST; 2171 esi = POP32_VAL(esp); /* 0x47069954: pop esi */ 2172 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47069955: ret 4 */ 2173 RECOMP_REGS_OUT(); 2174 } 2175 2176 void sub_47069960(void) { 2177 int _fpu_cmp = 0; 2178 uint32_t _cf = 0; 2179 int _df = 1; 2180 uint32_t _flag_k = FK_NONE; 2181 uint32_t _flag_a = 0, _flag_b = 0; 2182 uint32_t _itail_tgt = 0; 2183 RECOMP_REGS_LOCALS 2184 RECOMP_ENTER(0x47069960u); 2185 2186 L_47069960: 2187 PUSH32(esp, ebx); /* 0x47069960: push ebx */ 2188 ebx = MEM32(esp + 0x8); /* 0x47069961: mov ebx, dword ptr [esp + 8] */ 2189 PUSH32(esp, ebp); /* 0x47069965: push ebp */ 2190 PUSH32(esp, esi); /* 0x47069966: push esi */ 2191 esi = ecx; /* 0x47069967: mov esi, ecx */ 2192 ecx = MEM32(esi + 0x14); /* 0x47069969: mov ecx, dword ptr [esi + 0x14] */ 2193 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2194 eax = 0; /* 0x4706996C: xor eax, eax */ 2195 _cf = 0; 2196 _flag_k = FK_TEST; 2197 /* test ecx, ecx */ /* 0x4706996E: test ecx, ecx */ 2198 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2199 _cf = 0; 2200 _flag_k = FK_TEST; 2201 PUSH32(esp, edi); /* 0x47069970: push edi */ 2202 edi = MEM32(ebx + 0xC); /* 0x47069971: mov edi, dword ptr [ebx + 0xc] */ 2203 if (TEST_Z(_flag_a, _flag_b)) goto L_47069988; /* 0x47069974: jbe 0x47069988 */ 2204 L_47069976: 2205 edx = MEM32(esi + 0xC); /* 0x47069976: mov edx, dword ptr [esi + 0xc] */ 2206 L_47069979: 2207 ebp = MEM32(edx); /* 0x47069979: mov ebp, dword ptr [edx] */ 2208 /* cmp edi, MEM32(ebp + 0xC) */ /* 0x4706997B: cmp edi, dword ptr [ebp + 0xc] */ 2209 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + 0xC)); 2210 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2211 _flag_k = FK_CMP; 2212 if (CMP_EQ(_flag_a, _flag_b)) goto L_470699A7; /* 0x4706997E: je 0x470699a7 */ 2213 L_47069980: 2214 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2215 eax = eax + 1; /* 0x47069980: inc eax */ 2216 _flag_k = FK_INC; 2217 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8); 2218 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2219 edx = edx + 8; /* 0x47069981: add edx, 8 */ 2220 _flag_k = FK_ADD; 2221 /* cmp eax, ecx */ /* 0x47069984: cmp eax, ecx */ 2222 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2223 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2224 _flag_k = FK_CMP; 2225 RECOMP_BACKEDGE(); 2226 if (CMP_B(_flag_a, _flag_b)) goto L_47069979; /* 0x47069986: jb 0x47069979 */ 2227 L_47069988: 2228 eax = MEM32(esi + 0x10); /* 0x47069988: mov eax, dword ptr [esi + 0x10] */ 2229 /* cmp ecx, eax */ /* 0x4706998B: cmp ecx, eax */ 2230 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2231 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2232 _flag_k = FK_CMP; 2233 if (CMP_B(_flag_a, _flag_b)) goto L_470699B6; /* 0x4706998D: jb 0x470699b6 */ 2234 L_4706998F: 2235 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2236 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2237 eax = eax + eax; /* 0x4706998F: add eax, eax */ 2238 _flag_k = FK_ADD; 2239 PUSH32(esp, eax); /* 0x47069991: push eax */ 2240 ecx = esi; /* 0x47069992: mov ecx, esi */ 2241 RECOMP_ICALL(0x47069120u); /* 0x47069994: call 0x47069120 */ /* not lifted */ 2242 RECOMP_FLAGS_IN(); 2243 /* cmp eax, 0xFFFFFFFFu */ /* 0x47069999: cmp eax, -1 */ 2244 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 2245 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2246 _flag_k = FK_CMP; 2247 if (CMP_NE(_flag_a, _flag_b)) goto L_470699B6; /* 0x4706999C: jne 0x470699b6 */ 2248 L_4706999E: 2249 edi = POP32_VAL(esp); /* 0x4706999E: pop edi */ 2250 esi = POP32_VAL(esp); /* 0x4706999F: pop esi */ 2251 ebp = POP32_VAL(esp); /* 0x470699A0: pop ebp */ 2252 _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax)); 2253 eax = eax | eax; /* 0x470699A1: or eax, eax */ 2254 _cf = 0; 2255 _flag_k = FK_TEST; 2256 ebx = POP32_VAL(esp); /* 0x470699A3: pop ebx */ 2257 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470699A4: ret 4 */ 2258 L_470699A7: 2259 /* cmp eax, 0xFFFFFFFFu */ /* 0x470699A7: cmp eax, -1 */ 2260 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 2261 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2262 _flag_k = FK_CMP; 2263 RECOMP_BACKEDGE(); 2264 if (CMP_EQ(_flag_a, _flag_b)) goto L_47069988; /* 0x470699AA: je 0x47069988 */ 2265 L_470699AC: 2266 edi = POP32_VAL(esp); /* 0x470699AC: pop edi */ 2267 esi = POP32_VAL(esp); /* 0x470699AD: pop esi */ 2268 ebp = POP32_VAL(esp); /* 0x470699AE: pop ebp */ 2269 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2270 eax = eax | 0xFFFFFFFFu; /* 0x470699AF: or eax, 0xffffffff */ 2271 _cf = 0; 2272 _flag_k = FK_TEST; 2273 ebx = POP32_VAL(esp); /* 0x470699B2: pop ebx */ 2274 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470699B3: ret 4 */ 2275 L_470699B6: 2276 ecx = MEM32(esi + 0x14); /* 0x470699B6: mov ecx, dword ptr [esi + 0x14] */ 2277 edx = MEM32(esi + 0xC); /* 0x470699B9: mov edx, dword ptr [esi + 0xc] */ 2278 eax = edx + ecx * 8; /* 0x470699BC: lea eax, [edx + ecx*8] */ 2279 MEM32(eax) = ebx; /* 0x470699BF: mov dword ptr [eax], ebx */ 2280 MEM32(eax + 0x4) = 0; /* 0x470699C1: mov dword ptr [eax + 4], 0 */ 2281 eax = MEM32(esi); /* 0x470699C8: mov eax, dword ptr [esi] */ 2282 ecx = esi; /* 0x470699CA: mov ecx, esi */ 2283 RECOMP_ICALL(MEM32(eax + 0x38)); /* 0x470699CC: call dword ptr [eax + 0x38] */ 2284 RECOMP_FLAGS_IN(); 2285 /* test eax, eax */ /* 0x470699CF: test eax, eax */ 2286 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2287 _cf = 0; 2288 _flag_k = FK_TEST; 2289 if (TEST_Z(_flag_a, _flag_b)) goto L_470699DF; /* 0x470699D1: je 0x470699df */ 2290 L_470699D3: 2291 ecx = MEM32(ebx + 0x4); /* 0x470699D3: mov ecx, dword ptr [ebx + 4] */ 2292 edx = MEM32(eax); /* 0x470699D6: mov edx, dword ptr [eax] */ 2293 PUSH32(esp, ecx); /* 0x470699D8: push ecx */ 2294 PUSH32(esp, esi); /* 0x470699D9: push esi */ 2295 ecx = eax; /* 0x470699DA: mov ecx, eax */ 2296 RECOMP_ICALL(MEM32(edx + 0x54)); /* 0x470699DC: call dword ptr [edx + 0x54] */ 2297 RECOMP_FLAGS_IN(); 2298 L_470699DF: 2299 eax = MEM32(esi + 0x14); /* 0x470699DF: mov eax, dword ptr [esi + 0x14] */ 2300 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2301 eax = eax + 1; /* 0x470699E2: inc eax */ 2302 _flag_k = FK_INC; 2303 edi = POP32_VAL(esp); /* 0x470699E3: pop edi */ 2304 MEM32(esi + 0x14) = eax; /* 0x470699E4: mov dword ptr [esi + 0x14], eax */ 2305 esi = POP32_VAL(esp); /* 0x470699E7: pop esi */ 2306 ebp = POP32_VAL(esp); /* 0x470699E8: pop ebp */ 2307 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2308 eax = 0; /* 0x470699E9: xor eax, eax */ 2309 _cf = 0; 2310 _flag_k = FK_TEST; 2311 ebx = POP32_VAL(esp); /* 0x470699EB: pop ebx */ 2312 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470699EC: ret 4 */ 2313 RECOMP_REGS_OUT(); 2314 } 2315 2316 void sub_470699F0(void) { 2317 int _fpu_cmp = 0; 2318 uint32_t _cf = 0; 2319 int _df = 1; 2320 uint32_t _flag_k = FK_NONE; 2321 uint32_t _flag_a = 0, _flag_b = 0; 2322 uint32_t _itail_tgt = 0; 2323 RECOMP_REGS_LOCALS 2324 RECOMP_ENTER(0x470699F0u); 2325 2326 L_470699F0: 2327 PUSH32(esp, 0xFFFFFFFFu); /* 0x470699F0: push -1 */ 2328 PUSH32(esp, 0x470A8878u); /* 0x470699F2: push 0x470a8878 */ 2329 eax = MEM32(FS_BASE + (0)); /* 0x470699F7: mov eax, dword ptr fs:[0] */ 2330 PUSH32(esp, eax); /* 0x470699FD: push eax */ 2331 MEM32(FS_BASE + (0)) = esp; /* 0x470699FE: mov dword ptr fs:[0], esp */ 2332 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2333 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2334 esp = esp - 8; /* 0x47069A05: sub esp, 8 */ 2335 _flag_k = FK_CMP; 2336 PUSH32(esp, ebx); /* 0x47069A08: push ebx */ 2337 PUSH32(esp, ebp); /* 0x47069A09: push ebp */ 2338 PUSH32(esp, esi); /* 0x47069A0A: push esi */ 2339 PUSH32(esp, edi); /* 0x47069A0B: push edi */ 2340 esi = ecx; /* 0x47069A0C: mov esi, ecx */ 2341 edi = esi + 0x1C; /* 0x47069A0E: lea edi, [esi + 0x1c] */ 2342 PUSH32(esp, edi); /* 0x47069A11: push edi */ 2343 MEM32(esp + 0x14) = edi; /* 0x47069A12: mov dword ptr [esp + 0x14], edi */ 2344 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47069A16: call dword ptr [0x470ac180] */ 2345 RECOMP_FLAGS_IN(); 2346 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2347 eax = 0; /* 0x47069A1C: xor eax, eax */ 2348 _cf = 0; 2349 _flag_k = FK_TEST; 2350 MEM32(esp + 0x14) = eax; /* 0x47069A1E: mov dword ptr [esp + 0x14], eax */ 2351 ecx = MEM32(esi + 0x14); /* 0x47069A22: mov ecx, dword ptr [esi + 0x14] */ 2352 /* cmp ecx, eax */ /* 0x47069A25: cmp ecx, eax */ 2353 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2354 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2355 _flag_k = FK_CMP; 2356 MEM32(esp + 0x20) = eax; /* 0x47069A27: mov dword ptr [esp + 0x20], eax */ 2357 if (CMP_BE(_flag_a, _flag_b)) goto L_47069A43; /* 0x47069A2B: jbe 0x47069a43 */ 2358 L_47069A2D: 2359 edx = MEM32(esi + 0xC); /* 0x47069A2D: mov edx, dword ptr [esi + 0xc] */ 2360 ebx = MEM32(esp + 0x28); /* 0x47069A30: mov ebx, dword ptr [esp + 0x28] */ 2361 L_47069A34: 2362 ebp = MEM32(edx); /* 0x47069A34: mov ebp, dword ptr [edx] */ 2363 /* cmp ebx, MEM32(ebp + 0xC) */ /* 0x47069A36: cmp ebx, dword ptr [ebp + 0xc] */ 2364 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + 0xC)); 2365 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2366 _flag_k = FK_CMP; 2367 if (CMP_EQ(_flag_a, _flag_b)) goto L_47069A62; /* 0x47069A39: je 0x47069a62 */ 2368 L_47069A3B: 2369 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2370 eax = eax + 1; /* 0x47069A3B: inc eax */ 2371 _flag_k = FK_INC; 2372 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8); 2373 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2374 edx = edx + 8; /* 0x47069A3C: add edx, 8 */ 2375 _flag_k = FK_ADD; 2376 /* cmp eax, ecx */ /* 0x47069A3F: cmp eax, ecx */ 2377 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2378 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2379 _flag_k = FK_CMP; 2380 RECOMP_BACKEDGE(); 2381 if (CMP_B(_flag_a, _flag_b)) goto L_47069A34; /* 0x47069A41: jb 0x47069a34 */ 2382 L_47069A43: 2383 PUSH32(esp, edi); /* 0x47069A43: push edi */ 2384 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47069A44: call dword ptr [0x470ac190] */ 2385 RECOMP_FLAGS_IN(); 2386 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2387 eax = eax | 0xFFFFFFFFu; /* 0x47069A4A: or eax, 0xffffffff */ 2388 _cf = 0; 2389 _flag_k = FK_TEST; 2390 L_47069A4D: 2391 ecx = MEM32(esp + 0x18); /* 0x47069A4D: mov ecx, dword ptr [esp + 0x18] */ 2392 edi = POP32_VAL(esp); /* 0x47069A51: pop edi */ 2393 esi = POP32_VAL(esp); /* 0x47069A52: pop esi */ 2394 ebp = POP32_VAL(esp); /* 0x47069A53: pop ebp */ 2395 ebx = POP32_VAL(esp); /* 0x47069A54: pop ebx */ 2396 MEM32(FS_BASE + (0)) = ecx; /* 0x47069A55: mov dword ptr fs:[0], ecx */ 2397 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2398 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2399 esp = esp + 0x14u; /* 0x47069A5C: add esp, 0x14 */ 2400 _flag_k = FK_ADD; 2401 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47069A5F: ret 4 */ 2402 L_47069A62: 2403 /* cmp eax, 0xFFFFFFFFu */ /* 0x47069A62: cmp eax, -1 */ 2404 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 2405 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2406 _flag_k = FK_CMP; 2407 RECOMP_BACKEDGE(); 2408 if (CMP_EQ(_flag_a, _flag_b)) goto L_47069A43; /* 0x47069A65: je 0x47069a43 */ 2409 L_47069A67: 2410 PUSH32(esp, eax); /* 0x47069A67: push eax */ 2411 ecx = esi; /* 0x47069A68: mov ecx, esi */ 2412 RECOMP_ICALL(0x47069A80u); /* 0x47069A6A: call 0x47069a80 */ /* not lifted */ 2413 RECOMP_FLAGS_IN(); 2414 PUSH32(esp, edi); /* 0x47069A6F: push edi */ 2415 esi = eax; /* 0x47069A70: mov esi, eax */ 2416 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47069A72: call dword ptr [0x470ac190] */ 2417 RECOMP_FLAGS_IN(); 2418 eax = esi; /* 0x47069A78: mov eax, esi */ 2419 RECOMP_BACKEDGE(); 2420 goto L_47069A4D; /* 0x47069A7A: jmp 0x47069a4d */ 2421 { RECOMP_REGS_OUT(); return; } /* end of function */ 2422 RECOMP_REGS_OUT(); 2423 } 2424 2425 void sub_47069A80(void) { 2426 int _fpu_cmp = 0; 2427 uint32_t _cf = 0; 2428 int _df = 1; 2429 uint32_t _flag_k = FK_NONE; 2430 uint32_t _flag_a = 0, _flag_b = 0; 2431 uint32_t _itail_tgt = 0; 2432 RECOMP_REGS_LOCALS 2433 RECOMP_ENTER(0x47069A80u); 2434 2435 L_47069A80: 2436 PUSH32(esp, esi); /* 0x47069A80: push esi */ 2437 esi = ecx; /* 0x47069A81: mov esi, ecx */ 2438 eax = MEM32(esi + 0xC); /* 0x47069A83: mov eax, dword ptr [esi + 0xc] */ 2439 PUSH32(esp, edi); /* 0x47069A86: push edi */ 2440 edi = MEM32(esp + 0xC); /* 0x47069A87: mov edi, dword ptr [esp + 0xc] */ 2441 ecx = MEM32(eax + edi * 8 + 0x4); /* 0x47069A8B: mov ecx, dword ptr [eax + edi*8 + 4] */ 2442 /* test ecx, ecx */ /* 0x47069A8F: test ecx, ecx */ 2443 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2444 _cf = 0; 2445 _flag_k = FK_TEST; 2446 eax = eax + edi * 8; /* 0x47069A91: lea eax, [eax + edi*8] */ 2447 if (TEST_Z(_flag_a, _flag_b)) goto L_47069AAE; /* 0x47069A94: je 0x47069aae */ 2448 L_47069A96: 2449 eax = MEM32(eax); /* 0x47069A96: mov eax, dword ptr [eax] */ 2450 eax = MEM32(eax + 0x4); /* 0x47069A98: mov eax, dword ptr [eax + 4] */ 2451 edx = MEM32(ecx); /* 0x47069A9B: mov edx, dword ptr [ecx] */ 2452 PUSH32(esp, 0); /* 0x47069A9D: push 0 */ 2453 PUSH32(esp, eax); /* 0x47069A9F: push eax */ 2454 RECOMP_ICALL(MEM32(edx + 0x28)); /* 0x47069AA0: call dword ptr [edx + 0x28] */ 2455 RECOMP_FLAGS_IN(); 2456 ecx = MEM32(esi + 0xC); /* 0x47069AA3: mov ecx, dword ptr [esi + 0xc] */ 2457 MEM32(ecx + edi * 8 + 0x4) = 0; /* 0x47069AA6: mov dword ptr [ecx + edi*8 + 4], 0 */ 2458 L_47069AAE: 2459 edx = MEM32(esi); /* 0x47069AAE: mov edx, dword ptr [esi] */ 2460 ecx = esi; /* 0x47069AB0: mov ecx, esi */ 2461 RECOMP_ICALL(MEM32(edx + 0x38)); /* 0x47069AB2: call dword ptr [edx + 0x38] */ 2462 RECOMP_FLAGS_IN(); 2463 /* test eax, eax */ /* 0x47069AB5: test eax, eax */ 2464 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2465 _cf = 0; 2466 _flag_k = FK_TEST; 2467 if (TEST_Z(_flag_a, _flag_b)) goto L_47069ACF; /* 0x47069AB7: je 0x47069acf */ 2468 L_47069AB9: 2469 ecx = MEM32(esi + 0xC); /* 0x47069AB9: mov ecx, dword ptr [esi + 0xc] */ 2470 ecx = MEM32(ecx + edi * 8); /* 0x47069ABC: mov ecx, dword ptr [ecx + edi*8] */ 2471 ecx = MEM32(ecx + 0x4); /* 0x47069ABF: mov ecx, dword ptr [ecx + 4] */ 2472 edx = MEM32(eax); /* 0x47069AC2: mov edx, dword ptr [eax] */ 2473 PUSH32(esp, 0x200u); /* 0x47069AC4: push 0x200 */ 2474 PUSH32(esp, ecx); /* 0x47069AC9: push ecx */ 2475 ecx = eax; /* 0x47069ACA: mov ecx, eax */ 2476 RECOMP_ICALL(MEM32(edx + 0x6C)); /* 0x47069ACC: call dword ptr [edx + 0x6c] */ 2477 RECOMP_FLAGS_IN(); 2478 L_47069ACF: 2479 edx = MEM32(esi + 0xC); /* 0x47069ACF: mov edx, dword ptr [esi + 0xc] */ 2480 ecx = MEM32(edx + edi * 8); /* 0x47069AD2: mov ecx, dword ptr [edx + edi*8] */ 2481 eax = MEM32(ecx); /* 0x47069AD5: mov eax, dword ptr [ecx] */ 2482 RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x47069AD7: call dword ptr [eax + 0x14] */ 2483 RECOMP_FLAGS_IN(); 2484 ecx = MEM32(esi + 0xC); /* 0x47069ADA: mov ecx, dword ptr [esi + 0xc] */ 2485 MEM32(ecx + edi * 8) = 0; /* 0x47069ADD: mov dword ptr [ecx + edi*8], 0 */ 2486 eax = MEM32(esi + 0x14); /* 0x47069AE4: mov eax, dword ptr [esi + 0x14] */ 2487 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2488 eax = eax - 1; /* 0x47069AE7: dec eax */ 2489 _flag_k = FK_DEC; 2490 MEM32(esi + 0x14) = eax; /* 0x47069AE8: mov dword ptr [esi + 0x14], eax */ 2491 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_47069AFE; /* 0x47069AEB: je 0x47069afe */ 2492 L_47069AED: 2493 esi = MEM32(esi + 0xC); /* 0x47069AED: mov esi, dword ptr [esi + 0xc] */ 2494 edx = MEM32(esi + eax * 8); /* 0x47069AF0: mov edx, dword ptr [esi + eax*8] */ 2495 MEM32(esi + edi * 8) = edx; /* 0x47069AF3: mov dword ptr [esi + edi*8], edx */ 2496 eax = MEM32(esi + eax * 8 + 0x4); /* 0x47069AF6: mov eax, dword ptr [esi + eax*8 + 4] */ 2497 MEM32(esi + edi * 8 + 0x4) = eax; /* 0x47069AFA: mov dword ptr [esi + edi*8 + 4], eax */ 2498 L_47069AFE: 2499 edi = POP32_VAL(esp); /* 0x47069AFE: pop edi */ 2500 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2501 eax = 0; /* 0x47069AFF: xor eax, eax */ 2502 _cf = 0; 2503 _flag_k = FK_TEST; 2504 esi = POP32_VAL(esp); /* 0x47069B01: pop esi */ 2505 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47069B02: ret 4 */ 2506 RECOMP_REGS_OUT(); 2507 } 2508 2509 void sub_47069B10(void) { 2510 int _fpu_cmp = 0; 2511 uint32_t _cf = 0; 2512 int _df = 1; 2513 uint32_t _flag_k = FK_NONE; 2514 uint32_t _flag_a = 0, _flag_b = 0; 2515 uint32_t _itail_tgt = 0; 2516 RECOMP_REGS_LOCALS 2517 RECOMP_ENTER(0x47069B10u); 2518 2519 L_47069B10: 2520 eax = MEM32(FS_BASE + (0)); /* 0x47069B10: mov eax, dword ptr fs:[0] */ 2521 PUSH32(esp, 0xFFFFFFFFu); /* 0x47069B16: push -1 */ 2522 PUSH32(esp, 0x470A88A0u); /* 0x47069B18: push 0x470a88a0 */ 2523 PUSH32(esp, eax); /* 0x47069B1D: push eax */ 2524 MEM32(FS_BASE + (0)) = esp; /* 0x47069B1E: mov dword ptr fs:[0], esp */ 2525 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2526 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2527 esp = esp - 0x10u; /* 0x47069B25: sub esp, 0x10 */ 2528 _flag_k = FK_CMP; 2529 PUSH32(esp, ebx); /* 0x47069B28: push ebx */ 2530 PUSH32(esp, ebp); /* 0x47069B29: push ebp */ 2531 PUSH32(esp, esi); /* 0x47069B2A: push esi */ 2532 esi = ecx; /* 0x47069B2B: mov esi, ecx */ 2533 ecx = MEM32(esi + 0x14); /* 0x47069B2D: mov ecx, dword ptr [esi + 0x14] */ 2534 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2535 ebp = 0; /* 0x47069B30: xor ebp, ebp */ 2536 _cf = 0; 2537 _flag_k = FK_TEST; 2538 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2539 ebx = 0; /* 0x47069B32: xor ebx, ebx */ 2540 _cf = 0; 2541 _flag_k = FK_TEST; 2542 /* cmp ecx, ebp */ /* 0x47069B34: cmp ecx, ebp */ 2543 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebp); 2544 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2545 _flag_k = FK_CMP; 2546 PUSH32(esp, edi); /* 0x47069B36: push edi */ 2547 if (CMP_BE(_flag_a, _flag_b)) goto L_47069B4F; /* 0x47069B37: jbe 0x47069b4f */ 2548 L_47069B39: 2549 eax = MEM32(esi + 0xC); /* 0x47069B39: mov eax, dword ptr [esi + 0xc] */ 2550 edx = MEM32(esp + 0x30); /* 0x47069B3C: mov edx, dword ptr [esp + 0x30] */ 2551 L_47069B40: 2552 edi = MEM32(eax); /* 0x47069B40: mov edi, dword ptr [eax] */ 2553 /* cmp edx, MEM32(edi + 0xC) */ /* 0x47069B42: cmp edx, dword ptr [edi + 0xc] */ 2554 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(edi + 0xC)); 2555 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2556 _flag_k = FK_CMP; 2557 if (CMP_EQ(_flag_a, _flag_b)) goto L_47069B67; /* 0x47069B45: je 0x47069b67 */ 2558 L_47069B47: 2559 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 2560 ebx = ebx + 1; /* 0x47069B47: inc ebx */ 2561 _flag_k = FK_INC; 2562 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 2563 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2564 eax = eax + 8; /* 0x47069B48: add eax, 8 */ 2565 _flag_k = FK_ADD; 2566 /* cmp ebx, ecx */ /* 0x47069B4B: cmp ebx, ecx */ 2567 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 2568 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2569 _flag_k = FK_CMP; 2570 RECOMP_BACKEDGE(); 2571 if (CMP_B(_flag_a, _flag_b)) goto L_47069B40; /* 0x47069B4D: jb 0x47069b40 */ 2572 L_47069B4F: 2573 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2574 eax = eax | 0xFFFFFFFFu; /* 0x47069B4F: or eax, 0xffffffff */ 2575 _cf = 0; 2576 _flag_k = FK_TEST; 2577 L_47069B52: 2578 ecx = MEM32(esp + 0x20); /* 0x47069B52: mov ecx, dword ptr [esp + 0x20] */ 2579 edi = POP32_VAL(esp); /* 0x47069B56: pop edi */ 2580 esi = POP32_VAL(esp); /* 0x47069B57: pop esi */ 2581 ebp = POP32_VAL(esp); /* 0x47069B58: pop ebp */ 2582 ebx = POP32_VAL(esp); /* 0x47069B59: pop ebx */ 2583 MEM32(FS_BASE + (0)) = ecx; /* 0x47069B5A: mov dword ptr fs:[0], ecx */ 2584 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 2585 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2586 esp = esp + 0x1Cu; /* 0x47069B61: add esp, 0x1c */ 2587 _flag_k = FK_ADD; 2588 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47069B64: ret 4 */ 2589 L_47069B67: 2590 /* cmp ebx, 0xFFFFFFFFu */ /* 0x47069B67: cmp ebx, -1 */ 2591 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFFu); 2592 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2593 _flag_k = FK_CMP; 2594 RECOMP_BACKEDGE(); 2595 if (CMP_EQ(_flag_a, _flag_b)) goto L_47069B4F; /* 0x47069B6A: je 0x47069b4f */ 2596 L_47069B6C: 2597 PUSH32(esp, edx); /* 0x47069B6C: push edx */ 2598 RECOMP_ICALL(0x4700B1C0u); /* 0x47069B6D: call 0x4700b1c0 */ /* not lifted */ 2599 RECOMP_FLAGS_IN(); 2600 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2601 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2602 esp = esp + 4; /* 0x47069B72: add esp, 4 */ 2603 _flag_k = FK_ADD; 2604 /* cmp eax, 0xFFFFFFFFu */ /* 0x47069B75: cmp eax, -1 */ 2605 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 2606 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2607 _flag_k = FK_CMP; 2608 RECOMP_BACKEDGE(); 2609 if (CMP_EQ(_flag_a, _flag_b)) goto L_47069B4F; /* 0x47069B78: je 0x47069b4f */ 2610 L_47069B7A: 2611 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47069B7A: call dword ptr [0x470ac3c8] */ 2612 RECOMP_FLAGS_IN(); 2613 edi = eax; /* 0x47069B80: mov edi, eax */ 2614 eax = MEM32(edi); /* 0x47069B82: mov eax, dword ptr [edi] */ 2615 MEM32(esp + 0x18) = edi; /* 0x47069B84: mov dword ptr [esp + 0x18], edi */ 2616 MEM32(esp + 0x1C) = eax; /* 0x47069B88: mov dword ptr [esp + 0x1c], eax */ 2617 eax = esi + 0x1C; /* 0x47069B8C: lea eax, [esi + 0x1c] */ 2618 PUSH32(esp, eax); /* 0x47069B8F: push eax */ 2619 MEM32(esp + 0x2C) = ebp; /* 0x47069B90: mov dword ptr [esp + 0x2c], ebp */ 2620 MEM32(esp + 0x14) = eax; /* 0x47069B94: mov dword ptr [esp + 0x14], eax */ 2621 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47069B98: call dword ptr [0x470ac180] */ 2622 RECOMP_FLAGS_IN(); 2623 MEM32(esp + 0x14) = ebp; /* 0x47069B9E: mov dword ptr [esp + 0x14], ebp */ 2624 ecx = MEM32(esi + 0x14); /* 0x47069BA2: mov ecx, dword ptr [esi + 0x14] */ 2625 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2626 eax = 0; /* 0x47069BA5: xor eax, eax */ 2627 _cf = 0; 2628 _flag_k = FK_TEST; 2629 /* cmp ecx, ebp */ /* 0x47069BA7: cmp ecx, ebp */ 2630 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebp); 2631 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2632 _flag_k = FK_CMP; 2633 MEM8(esp + 0x28) = (uint8_t)(1); /* 0x47069BA9: mov byte ptr [esp + 0x28], 1 */ 2634 if (CMP_BE(_flag_a, _flag_b)) goto L_47069BC2; /* 0x47069BAE: jbe 0x47069bc2 */ 2635 L_47069BB0: 2636 edx = MEM32(esi + 0xC); /* 0x47069BB0: mov edx, dword ptr [esi + 0xc] */ 2637 L_47069BB3: 2638 ebp = MEM32(edx); /* 0x47069BB3: mov ebp, dword ptr [edx] */ 2639 /* cmp ebx, MEM32(ebp + 0xC) */ /* 0x47069BB5: cmp ebx, dword ptr [ebp + 0xc] */ 2640 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + 0xC)); 2641 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2642 _flag_k = FK_CMP; 2643 if (CMP_EQ(_flag_a, _flag_b)) goto L_47069BDA; /* 0x47069BB8: je 0x47069bda */ 2644 L_47069BBA: 2645 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2646 eax = eax + 1; /* 0x47069BBA: inc eax */ 2647 _flag_k = FK_INC; 2648 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8); 2649 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2650 edx = edx + 8; /* 0x47069BBB: add edx, 8 */ 2651 _flag_k = FK_ADD; 2652 /* cmp eax, ecx */ /* 0x47069BBE: cmp eax, ecx */ 2653 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2654 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2655 _flag_k = FK_CMP; 2656 RECOMP_BACKEDGE(); 2657 if (CMP_B(_flag_a, _flag_b)) goto L_47069BB3; /* 0x47069BC0: jb 0x47069bb3 */ 2658 L_47069BC2: 2659 edx = MEM32(esp + 0x10); /* 0x47069BC2: mov edx, dword ptr [esp + 0x10] */ 2660 PUSH32(esp, edx); /* 0x47069BC6: push edx */ 2661 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47069BC7: call dword ptr [0x470ac190] */ 2662 RECOMP_FLAGS_IN(); 2663 eax = MEM32(esp + 0x1C); /* 0x47069BCD: mov eax, dword ptr [esp + 0x1c] */ 2664 MEM32(edi) = eax; /* 0x47069BD1: mov dword ptr [edi], eax */ 2665 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2666 eax = 0; /* 0x47069BD3: xor eax, eax */ 2667 _cf = 0; 2668 _flag_k = FK_TEST; 2669 RECOMP_BACKEDGE(); 2670 goto L_47069B52; /* 0x47069BD5: jmp 0x47069b52 */ 2671 L_47069BDA: 2672 /* cmp eax, 0xFFFFFFFFu */ /* 0x47069BDA: cmp eax, -1 */ 2673 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 2674 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2675 _flag_k = FK_CMP; 2676 RECOMP_BACKEDGE(); 2677 if (CMP_EQ(_flag_a, _flag_b)) goto L_47069BC2; /* 0x47069BDD: je 0x47069bc2 */ 2678 L_47069BDF: 2679 PUSH32(esp, eax); /* 0x47069BDF: push eax */ 2680 ecx = esi; /* 0x47069BE0: mov ecx, esi */ 2681 RECOMP_ICALL(0x47069A80u); /* 0x47069BE2: call 0x47069a80 */ /* not lifted */ 2682 RECOMP_FLAGS_IN(); 2683 ecx = MEM32(esp + 0x10); /* 0x47069BE7: mov ecx, dword ptr [esp + 0x10] */ 2684 PUSH32(esp, ecx); /* 0x47069BEB: push ecx */ 2685 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47069BEC: call dword ptr [0x470ac190] */ 2686 RECOMP_FLAGS_IN(); 2687 eax = MEM32(esp + 0x1C); /* 0x47069BF2: mov eax, dword ptr [esp + 0x1c] */ 2688 MEM32(edi) = eax; /* 0x47069BF6: mov dword ptr [edi], eax */ 2689 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2690 eax = 0; /* 0x47069BF8: xor eax, eax */ 2691 _cf = 0; 2692 _flag_k = FK_TEST; 2693 RECOMP_BACKEDGE(); 2694 goto L_47069B52; /* 0x47069BFA: jmp 0x47069b52 */ 2695 { RECOMP_REGS_OUT(); return; } /* end of function */ 2696 RECOMP_REGS_OUT(); 2697 } 2698 2699 void sub_47069B52(void) { 2700 int _fpu_cmp = 0; 2701 uint32_t _cf = 0; 2702 int _df = 1; 2703 uint32_t _flag_k = FK_NONE; 2704 uint32_t _flag_a = 0, _flag_b = 0; 2705 uint32_t _itail_tgt = 0; 2706 RECOMP_REGS_LOCALS 2707 RECOMP_ENTER(0x47069B52u); 2708 2709 L_47069B52: 2710 ecx = MEM32(esp + 0x20); /* 0x47069B52: mov ecx, dword ptr [esp + 0x20] */ 2711 edi = POP32_VAL(esp); /* 0x47069B56: pop edi */ 2712 esi = POP32_VAL(esp); /* 0x47069B57: pop esi */ 2713 ebp = POP32_VAL(esp); /* 0x47069B58: pop ebp */ 2714 ebx = POP32_VAL(esp); /* 0x47069B59: pop ebx */ 2715 MEM32(FS_BASE + (0)) = ecx; /* 0x47069B5A: mov dword ptr fs:[0], ecx */ 2716 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 2717 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2718 esp = esp + 0x1Cu; /* 0x47069B61: add esp, 0x1c */ 2719 _flag_k = FK_ADD; 2720 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47069B64: ret 4 */ 2721 RECOMP_REGS_OUT(); 2722 } 2723 2724 void sub_47069C00(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(0x47069C00u); 2733 2734 L_47069C00: 2735 edx = MEM32(ecx + 0x14); /* 0x47069C00: mov edx, dword ptr [ecx + 0x14] */ 2736 PUSH32(esp, esi); /* 0x47069C03: push esi */ 2737 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2738 eax = 0; /* 0x47069C04: xor eax, eax */ 2739 _cf = 0; 2740 _flag_k = FK_TEST; 2741 /* test edx, edx */ /* 0x47069C06: test edx, edx */ 2742 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 2743 _cf = 0; 2744 _flag_k = FK_TEST; 2745 PUSH32(esp, edi); /* 0x47069C08: push edi */ 2746 if (TEST_Z(_flag_a, _flag_b)) goto L_47069C3A; /* 0x47069C09: jbe 0x47069c3a */ 2747 L_47069C0B: 2748 ecx = MEM32(ecx + 0xC); /* 0x47069C0B: mov ecx, dword ptr [ecx + 0xc] */ 2749 esi = MEM32(esp + 0xC); /* 0x47069C0E: mov esi, dword ptr [esp + 0xc] */ 2750 L_47069C12: 2751 edi = MEM32(ecx); /* 0x47069C12: mov edi, dword ptr [ecx] */ 2752 /* cmp esi, MEM32(edi + 0xC) */ /* 0x47069C14: cmp esi, dword ptr [edi + 0xc] */ 2753 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0xC)); 2754 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2755 _flag_k = FK_CMP; 2756 if (CMP_EQ(_flag_a, _flag_b)) goto L_47069C29; /* 0x47069C17: je 0x47069c29 */ 2757 L_47069C19: 2758 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2759 eax = eax + 1; /* 0x47069C19: inc eax */ 2760 _flag_k = FK_INC; 2761 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 2762 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2763 ecx = ecx + 8; /* 0x47069C1A: add ecx, 8 */ 2764 _flag_k = FK_ADD; 2765 /* cmp eax, edx */ /* 0x47069C1D: cmp eax, edx */ 2766 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2767 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2768 _flag_k = FK_CMP; 2769 RECOMP_BACKEDGE(); 2770 if (CMP_B(_flag_a, _flag_b)) goto L_47069C12; /* 0x47069C1F: jb 0x47069c12 */ 2771 L_47069C21: 2772 edi = POP32_VAL(esp); /* 0x47069C21: pop edi */ 2773 esi = POP32_VAL(esp); /* 0x47069C22: pop esi */ 2774 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2775 eax = eax | 0xFFFFFFFFu; /* 0x47069C23: or eax, 0xffffffff */ 2776 _cf = 0; 2777 _flag_k = FK_TEST; 2778 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47069C26: ret 8 */ 2779 L_47069C29: 2780 /* cmp eax, 0xFFFFFFFFu */ /* 0x47069C29: cmp eax, -1 */ 2781 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 2782 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2783 _flag_k = FK_CMP; 2784 if (CMP_EQ(_flag_a, _flag_b)) goto L_47069C3A; /* 0x47069C2C: je 0x47069c3a */ 2785 L_47069C2E: 2786 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47069C2E: call dword ptr [0x470ac3c8] */ 2787 RECOMP_FLAGS_IN(); 2788 MEM32(eax) = 0x28u; /* 0x47069C34: mov dword ptr [eax], 0x28 */ 2789 L_47069C3A: 2790 edi = POP32_VAL(esp); /* 0x47069C3A: pop edi */ 2791 esi = POP32_VAL(esp); /* 0x47069C3B: pop esi */ 2792 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2793 eax = eax | 0xFFFFFFFFu; /* 0x47069C3C: or eax, 0xffffffff */ 2794 _cf = 0; 2795 _flag_k = FK_TEST; 2796 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47069C3F: ret 8 */ 2797 RECOMP_REGS_OUT(); 2798 } 2799 2800 void sub_47069C50(void) { 2801 int _fpu_cmp = 0; 2802 uint32_t _cf = 0; 2803 int _df = 1; 2804 uint32_t _flag_k = FK_NONE; 2805 uint32_t _flag_a = 0, _flag_b = 0; 2806 uint32_t _itail_tgt = 0; 2807 RECOMP_REGS_LOCALS 2808 RECOMP_ENTER(0x47069C50u); 2809 2810 L_47069C50: 2811 edx = MEM32(ecx + 0x14); /* 0x47069C50: mov edx, dword ptr [ecx + 0x14] */ 2812 PUSH32(esp, esi); /* 0x47069C53: push esi */ 2813 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2814 eax = 0; /* 0x47069C54: xor eax, eax */ 2815 _cf = 0; 2816 _flag_k = FK_TEST; 2817 /* test edx, edx */ /* 0x47069C56: test edx, edx */ 2818 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 2819 _cf = 0; 2820 _flag_k = FK_TEST; 2821 PUSH32(esp, edi); /* 0x47069C58: push edi */ 2822 if (TEST_Z(_flag_a, _flag_b)) goto L_47069C71; /* 0x47069C59: jbe 0x47069c71 */ 2823 L_47069C5B: 2824 ecx = MEM32(ecx + 0xC); /* 0x47069C5B: mov ecx, dword ptr [ecx + 0xc] */ 2825 esi = MEM32(esp + 0xC); /* 0x47069C5E: mov esi, dword ptr [esp + 0xc] */ 2826 L_47069C62: 2827 edi = MEM32(ecx); /* 0x47069C62: mov edi, dword ptr [ecx] */ 2828 /* cmp esi, MEM32(edi + 0xC) */ /* 0x47069C64: cmp esi, dword ptr [edi + 0xc] */ 2829 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0xC)); 2830 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2831 _flag_k = FK_CMP; 2832 if (CMP_EQ(_flag_a, _flag_b)) goto L_47069C74; /* 0x47069C67: je 0x47069c74 */ 2833 L_47069C69: 2834 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2835 eax = eax + 1; /* 0x47069C69: inc eax */ 2836 _flag_k = FK_INC; 2837 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 2838 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2839 ecx = ecx + 8; /* 0x47069C6A: add ecx, 8 */ 2840 _flag_k = FK_ADD; 2841 /* cmp eax, edx */ /* 0x47069C6D: cmp eax, edx */ 2842 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2843 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2844 _flag_k = FK_CMP; 2845 RECOMP_BACKEDGE(); 2846 if (CMP_B(_flag_a, _flag_b)) goto L_47069C62; /* 0x47069C6F: jb 0x47069c62 */ 2847 L_47069C71: 2848 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2849 eax = eax | 0xFFFFFFFFu; /* 0x47069C71: or eax, 0xffffffff */ 2850 _cf = 0; 2851 _flag_k = FK_TEST; 2852 L_47069C74: 2853 edi = POP32_VAL(esp); /* 0x47069C74: pop edi */ 2854 esi = POP32_VAL(esp); /* 0x47069C75: pop esi */ 2855 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47069C76: ret 4 */ 2856 RECOMP_REGS_OUT(); 2857 } 2858 2859 void sub_47069C80(void) { 2860 int _fpu_cmp = 0; 2861 uint32_t _cf = 0; 2862 int _df = 1; 2863 uint32_t _flag_k = FK_NONE; 2864 uint32_t _flag_a = 0, _flag_b = 0; 2865 uint32_t _itail_tgt = 0; 2866 RECOMP_REGS_LOCALS 2867 RECOMP_ENTER(0x47069C80u); 2868 2869 L_47069C80: 2870 edx = MEM32(ecx + 0x14); /* 0x47069C80: mov edx, dword ptr [ecx + 0x14] */ 2871 PUSH32(esp, esi); /* 0x47069C83: push esi */ 2872 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2873 eax = 0; /* 0x47069C84: xor eax, eax */ 2874 _cf = 0; 2875 _flag_k = FK_TEST; 2876 /* test edx, edx */ /* 0x47069C86: test edx, edx */ 2877 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 2878 _cf = 0; 2879 _flag_k = FK_TEST; 2880 PUSH32(esp, edi); /* 0x47069C88: push edi */ 2881 if (TEST_Z(_flag_a, _flag_b)) goto L_47069CA1; /* 0x47069C89: jbe 0x47069ca1 */ 2882 L_47069C8B: 2883 ecx = MEM32(ecx + 0xC); /* 0x47069C8B: mov ecx, dword ptr [ecx + 0xc] */ 2884 esi = MEM32(esp + 0xC); /* 0x47069C8E: mov esi, dword ptr [esp + 0xc] */ 2885 L_47069C92: 2886 edi = MEM32(ecx); /* 0x47069C92: mov edi, dword ptr [ecx] */ 2887 /* cmp esi, MEM32(edi + 0x4) */ /* 0x47069C94: cmp esi, dword ptr [edi + 4] */ 2888 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2889 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2890 _flag_k = FK_CMP; 2891 if (CMP_EQ(_flag_a, _flag_b)) goto L_47069CA4; /* 0x47069C97: je 0x47069ca4 */ 2892 L_47069C99: 2893 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2894 eax = eax + 1; /* 0x47069C99: inc eax */ 2895 _flag_k = FK_INC; 2896 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 2897 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2898 ecx = ecx + 8; /* 0x47069C9A: add ecx, 8 */ 2899 _flag_k = FK_ADD; 2900 /* cmp eax, edx */ /* 0x47069C9D: cmp eax, edx */ 2901 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2902 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2903 _flag_k = FK_CMP; 2904 RECOMP_BACKEDGE(); 2905 if (CMP_B(_flag_a, _flag_b)) goto L_47069C92; /* 0x47069C9F: jb 0x47069c92 */ 2906 L_47069CA1: 2907 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2908 eax = eax | 0xFFFFFFFFu; /* 0x47069CA1: or eax, 0xffffffff */ 2909 _cf = 0; 2910 _flag_k = FK_TEST; 2911 L_47069CA4: 2912 edi = POP32_VAL(esp); /* 0x47069CA4: pop edi */ 2913 esi = POP32_VAL(esp); /* 0x47069CA5: pop esi */ 2914 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47069CA6: ret 4 */ 2915 RECOMP_REGS_OUT(); 2916 } 2917 2918 void sub_47069CB0(void) { 2919 int _fpu_cmp = 0; 2920 uint32_t _cf = 0; 2921 int _df = 1; 2922 uint32_t _flag_k = FK_NONE; 2923 uint32_t _flag_a = 0, _flag_b = 0; 2924 uint32_t _itail_tgt = 0; 2925 RECOMP_REGS_LOCALS 2926 RECOMP_ENTER(0x47069CB0u); 2927 2928 L_47069CB0: 2929 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 2930 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2931 esp = esp - 0x38u; /* 0x47069CB0: sub esp, 0x38 */ 2932 _flag_k = FK_CMP; 2933 eax = MEM32(esp + 0x3C); /* 0x47069CB3: mov eax, dword ptr [esp + 0x3c] */ 2934 edx = MEM32(eax + 0x4); /* 0x47069CB7: mov edx, dword ptr [eax + 4] */ 2935 PUSH32(esp, esi); /* 0x47069CBA: push esi */ 2936 esi = ecx; /* 0x47069CBB: mov esi, ecx */ 2937 ecx = MEM32(eax); /* 0x47069CBD: mov ecx, dword ptr [eax] */ 2938 eax = edx; /* 0x47069CBF: mov eax, edx */ 2939 PUSH32(esp, edi); /* 0x47069CC1: push edi */ 2940 edi = ecx; /* 0x47069CC2: mov edi, ecx */ 2941 MEM32(esp + 0x1C) = eax; /* 0x47069CC4: mov dword ptr [esp + 0x1c], eax */ 2942 eax = MEM32(0x4710E8F8); /* 0x47069CC8: mov eax, dword ptr [0x4710e8f8] */ 2943 /* cmp eax, ecx */ /* 0x47069CCD: cmp eax, ecx */ 2944 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2945 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2946 _flag_k = FK_CMP; 2947 MEM32(esp + 0x18) = edi; /* 0x47069CCF: mov dword ptr [esp + 0x18], edi */ 2948 edi = MEM32(0x470AC1A8); /* 0x47069CD3: mov edi, dword ptr [0x470ac1a8] */ 2949 MEM32(esp + 0x8) = ecx; /* 0x47069CD9: mov dword ptr [esp + 8], ecx */ 2950 MEM32(esp + 0xC) = edx; /* 0x47069CDD: mov dword ptr [esp + 0xc], edx */ 2951 if (CMP_G(_flag_a, _flag_b)) goto L_47069CEF; /* 0x47069CE1: jg 0x47069cef */ 2952 L_47069CE3: 2953 /* cmp eax, ecx */ /* 0x47069CE3: cmp eax, ecx */ 2954 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2955 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2956 _flag_k = FK_CMP; 2957 if (CMP_NE(_flag_a, _flag_b)) goto L_47069D28; /* 0x47069CE5: jne 0x47069d28 */ 2958 L_47069CE7: 2959 /* cmp MEM32(0x4710E8FC), edx */ /* 0x47069CE7: cmp dword ptr [0x4710e8fc], edx */ 2960 _flag_a = (uint32_t)(MEM32(0x4710E8FC)); _flag_b = (uint32_t)(edx); 2961 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2962 _flag_k = FK_CMP; 2963 if (CMP_LE(_flag_a, _flag_b)) goto L_47069D28; /* 0x47069CED: jle 0x47069d28 */ 2964 L_47069CEF: 2965 ecx = esp + 0x20; /* 0x47069CEF: lea ecx, [esp + 0x20] */ 2966 PUSH32(esp, ecx); /* 0x47069CF3: push ecx */ 2967 RECOMP_ICALL(edi); /* 0x47069CF4: call edi */ 2968 RECOMP_FLAGS_IN(); 2969 edx = esp + 0x20; /* 0x47069CF6: lea edx, [esp + 0x20] */ 2970 PUSH32(esp, edx); /* 0x47069CFA: push edx */ 2971 ecx = esp + 0x34; /* 0x47069CFB: lea ecx, [esp + 0x34] */ 2972 RECOMP_ICALL(0x47053F10u); /* 0x47069CFF: call 0x47053f10 */ /* not lifted */ 2973 RECOMP_FLAGS_IN(); 2974 ecx = MEM32(eax); /* 0x47069D04: mov ecx, dword ptr [eax] */ 2975 edx = MEM32(esp + 0x8); /* 0x47069D06: mov edx, dword ptr [esp + 8] */ 2976 MEM32(esp + 0x10) = ecx; /* 0x47069D0A: mov dword ptr [esp + 0x10], ecx */ 2977 eax = MEM32(eax + 0x4); /* 0x47069D0E: mov eax, dword ptr [eax + 4] */ 2978 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 2979 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2980 edx = edx + ecx; /* 0x47069D11: add edx, ecx */ 2981 _flag_k = FK_ADD; 2982 _flag_a = (uint32_t)(MEM32(esp + 0xC)); _flag_b = (uint32_t)(eax); 2983 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2984 MEM32(esp + 0xC) = MEM32(esp + 0xC) + eax; /* 0x47069D13: add dword ptr [esp + 0xc], eax */ 2985 _flag_k = FK_ADD; 2986 ecx = esp + 0x8; /* 0x47069D17: lea ecx, [esp + 8] */ 2987 MEM32(esp + 0x14) = eax; /* 0x47069D1B: mov dword ptr [esp + 0x14], eax */ 2988 MEM32(esp + 0x8) = edx; /* 0x47069D1F: mov dword ptr [esp + 8], edx */ 2989 RECOMP_ICALL(0x470543C0u); /* 0x47069D23: call 0x470543c0 */ /* not lifted */ 2990 RECOMP_FLAGS_IN(); 2991 L_47069D28: 2992 eax = MEM32(esi + 0x14); /* 0x47069D28: mov eax, dword ptr [esi + 0x14] */ 2993 /* test eax, eax */ /* 0x47069D2B: test eax, eax */ 2994 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2995 _cf = 0; 2996 _flag_k = FK_TEST; 2997 if (TEST_Z(_flag_a, _flag_b)) goto L_47069E0A; /* 0x47069D2D: jbe 0x47069e0a */ 2998 L_47069D33: 2999 PUSH32(esp, 0); /* 0x47069D33: push 0 */ 3000 eax = esp + 0x1C; /* 0x47069D35: lea eax, [esp + 0x1c] */ 3001 PUSH32(esp, eax); /* 0x47069D39: push eax */ 3002 PUSH32(esp, 0); /* 0x47069D3A: push 0 */ 3003 ecx = esi; /* 0x47069D3C: mov ecx, esi */ 3004 RECOMP_ICALL(0x47069E40u); /* 0x47069D3E: call 0x47069e40 */ /* not lifted */ 3005 RECOMP_FLAGS_IN(); 3006 /* cmp eax, 0xFFFFFFFFu */ /* 0x47069D43: cmp eax, -1 */ 3007 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 3008 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3009 _flag_k = FK_CMP; 3010 if (CMP_EQ(_flag_a, _flag_b)) goto L_47069DFF; /* 0x47069D46: je 0x47069dff */ 3011 L_47069D4C: 3012 /* test eax, eax */ /* 0x47069D4C: test eax, eax */ 3013 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3014 _cf = 0; 3015 _flag_k = FK_TEST; 3016 if (TEST_Z(_flag_a, _flag_b)) goto L_47069E0A; /* 0x47069D4E: je 0x47069e0a */ 3017 L_47069D54: 3018 eax = MEM32(0x4710E8F8); /* 0x47069D54: mov eax, dword ptr [0x4710e8f8] */ 3019 ecx = MEM32(esp + 0x8); /* 0x47069D59: mov ecx, dword ptr [esp + 8] */ 3020 /* cmp eax, ecx */ /* 0x47069D5D: cmp eax, ecx */ 3021 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3022 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3023 _flag_k = FK_CMP; 3024 if (CMP_G(_flag_a, _flag_b)) goto L_47069D6F; /* 0x47069D5F: jg 0x47069d6f */ 3025 L_47069D61: 3026 if (CMP_NE(_flag_a, _flag_b)) goto L_47069DCD; /* 0x47069D61: jne 0x47069dcd */ 3027 L_47069D63: 3028 ecx = MEM32(0x4710E8FC); /* 0x47069D63: mov ecx, dword ptr [0x4710e8fc] */ 3029 /* cmp ecx, MEM32(esp + 0xC) */ /* 0x47069D69: cmp ecx, dword ptr [esp + 0xc] */ 3030 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esp + 0xC)); 3031 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3032 _flag_k = FK_CMP; 3033 if (CMP_LE(_flag_a, _flag_b)) goto L_47069DCD; /* 0x47069D6D: jle 0x47069dcd */ 3034 L_47069D6F: 3035 edx = esp + 0x28; /* 0x47069D6F: lea edx, [esp + 0x28] */ 3036 PUSH32(esp, edx); /* 0x47069D73: push edx */ 3037 RECOMP_ICALL(edi); /* 0x47069D74: call edi */ 3038 RECOMP_FLAGS_IN(); 3039 eax = esp + 0x28; /* 0x47069D76: lea eax, [esp + 0x28] */ 3040 PUSH32(esp, eax); /* 0x47069D7A: push eax */ 3041 ecx = esp + 0x3C; /* 0x47069D7B: lea ecx, [esp + 0x3c] */ 3042 RECOMP_ICALL(0x47053F10u); /* 0x47069D7F: call 0x47053f10 */ /* not lifted */ 3043 RECOMP_FLAGS_IN(); 3044 ecx = MEM32(eax); /* 0x47069D84: mov ecx, dword ptr [eax] */ 3045 edx = MEM32(esp + 0x8); /* 0x47069D86: mov edx, dword ptr [esp + 8] */ 3046 MEM32(esp + 0x30) = ecx; /* 0x47069D8A: mov dword ptr [esp + 0x30], ecx */ 3047 eax = MEM32(eax + 0x4); /* 0x47069D8E: mov eax, dword ptr [eax + 4] */ 3048 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3049 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3050 edx = edx - ecx; /* 0x47069D91: sub edx, ecx */ 3051 _flag_k = FK_CMP; 3052 ecx = MEM32(esp + 0xC); /* 0x47069D93: mov ecx, dword ptr [esp + 0xc] */ 3053 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3054 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3055 ecx = ecx - eax; /* 0x47069D97: sub ecx, eax */ 3056 _flag_k = FK_CMP; 3057 MEM32(esp + 0x14) = ecx; /* 0x47069D99: mov dword ptr [esp + 0x14], ecx */ 3058 ecx = esp + 0x10; /* 0x47069D9D: lea ecx, [esp + 0x10] */ 3059 MEM32(esp + 0x34) = eax; /* 0x47069DA1: mov dword ptr [esp + 0x34], eax */ 3060 MEM32(esp + 0x10) = edx; /* 0x47069DA5: mov dword ptr [esp + 0x10], edx */ 3061 RECOMP_ICALL(0x470543C0u); /* 0x47069DA9: call 0x470543c0 */ /* not lifted */ 3062 RECOMP_FLAGS_IN(); 3063 ecx = esp + 0x10; /* 0x47069DAE: lea ecx, [esp + 0x10] */ 3064 RECOMP_ICALL(0x470543C0u); /* 0x47069DB2: call 0x470543c0 */ /* not lifted */ 3065 RECOMP_FLAGS_IN(); 3066 eax = MEM32(esp + 0x14); /* 0x47069DB7: mov eax, dword ptr [esp + 0x14] */ 3067 edx = MEM32(esp + 0x10); /* 0x47069DBB: mov edx, dword ptr [esp + 0x10] */ 3068 MEM32(esp + 0x24) = eax; /* 0x47069DBF: mov dword ptr [esp + 0x24], eax */ 3069 MEM32(esp + 0x20) = edx; /* 0x47069DC3: mov dword ptr [esp + 0x20], edx */ 3070 eax = esp + 0x20; /* 0x47069DC7: lea eax, [esp + 0x20] */ 3071 goto L_47069DD2; /* 0x47069DCB: jmp 0x47069dd2 */ 3072 L_47069DCD: 3073 eax = 0x4710E8F8u; /* 0x47069DCD: mov eax, 0x4710e8f8 */ 3074 L_47069DD2: 3075 ecx = MEM32(eax); /* 0x47069DD2: mov ecx, dword ptr [eax] */ 3076 edx = MEM32(0x4710E9A8); /* 0x47069DD4: mov edx, dword ptr [0x4710e9a8] */ 3077 /* cmp edx, ecx */ /* 0x47069DDA: cmp edx, ecx */ 3078 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3079 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3080 _flag_k = FK_CMP; 3081 eax = MEM32(eax + 0x4); /* 0x47069DDC: mov eax, dword ptr [eax + 4] */ 3082 MEM32(esp + 0x18) = ecx; /* 0x47069DDF: mov dword ptr [esp + 0x18], ecx */ 3083 MEM32(esp + 0x1C) = eax; /* 0x47069DE3: mov dword ptr [esp + 0x1c], eax */ 3084 if (CMP_G(_flag_a, _flag_b)) goto L_47069E0A; /* 0x47069DE7: jg 0x47069e0a */ 3085 L_47069DE9: 3086 if (CMP_NE(_flag_a, _flag_b)) goto L_47069DF3; /* 0x47069DE9: jne 0x47069df3 */ 3087 L_47069DEB: 3088 /* cmp MEM32(0x4710E9AC), eax */ /* 0x47069DEB: cmp dword ptr [0x4710e9ac], eax */ 3089 _flag_a = (uint32_t)(MEM32(0x4710E9AC)); _flag_b = (uint32_t)(eax); 3090 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3091 _flag_k = FK_CMP; 3092 if (CMP_GE(_flag_a, _flag_b)) goto L_47069E0A; /* 0x47069DF1: jge 0x47069e0a */ 3093 L_47069DF3: 3094 eax = MEM32(esi + 0x14); /* 0x47069DF3: mov eax, dword ptr [esi + 0x14] */ 3095 /* test eax, eax */ /* 0x47069DF6: test eax, eax */ 3096 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3097 _cf = 0; 3098 _flag_k = FK_TEST; 3099 if (TEST_Z(_flag_a, _flag_b)) goto L_47069E0A; /* 0x47069DF8: jbe 0x47069e0a */ 3100 L_47069DFA: 3101 RECOMP_BACKEDGE(); 3102 goto L_47069D33; /* 0x47069DFA: jmp 0x47069d33 */ 3103 L_47069DFF: 3104 edi = POP32_VAL(esp); /* 0x47069DFF: pop edi */ 3105 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3106 eax = eax | 0xFFFFFFFFu; /* 0x47069E00: or eax, 0xffffffff */ 3107 _cf = 0; 3108 _flag_k = FK_TEST; 3109 esi = POP32_VAL(esp); /* 0x47069E03: pop esi */ 3110 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 3111 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3112 esp = esp + 0x38u; /* 0x47069E04: add esp, 0x38 */ 3113 _flag_k = FK_ADD; 3114 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47069E07: ret 4 */ 3115 L_47069E0A: 3116 eax = MEM32(esi + 0x14); /* 0x47069E0A: mov eax, dword ptr [esi + 0x14] */ 3117 edi = POP32_VAL(esp); /* 0x47069E0D: pop edi */ 3118 esi = POP32_VAL(esp); /* 0x47069E0E: pop esi */ 3119 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 3120 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3121 esp = esp + 0x38u; /* 0x47069E0F: add esp, 0x38 */ 3122 _flag_k = FK_ADD; 3123 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47069E12: ret 4 */ 3124 RECOMP_REGS_OUT(); 3125 } 3126 3127 void sub_47069D33(void) { 3128 int _fpu_cmp = 0; 3129 uint32_t _cf = 0; 3130 int _df = 1; 3131 uint32_t _flag_k = FK_NONE; 3132 uint32_t _flag_a = 0, _flag_b = 0; 3133 uint32_t _itail_tgt = 0; 3134 RECOMP_REGS_LOCALS 3135 RECOMP_ENTER(0x47069D33u); 3136 3137 L_47069D33: 3138 PUSH32(esp, 0); /* 0x47069D33: push 0 */ 3139 eax = esp + 0x1C; /* 0x47069D35: lea eax, [esp + 0x1c] */ 3140 PUSH32(esp, eax); /* 0x47069D39: push eax */ 3141 PUSH32(esp, 0); /* 0x47069D3A: push 0 */ 3142 ecx = esi; /* 0x47069D3C: mov ecx, esi */ 3143 RECOMP_ICALL(0x47069E40u); /* 0x47069D3E: call 0x47069e40 */ /* not lifted */ 3144 RECOMP_FLAGS_IN(); 3145 /* cmp eax, 0xFFFFFFFFu */ /* 0x47069D43: cmp eax, -1 */ 3146 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 3147 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3148 _flag_k = FK_CMP; 3149 if (CMP_EQ(_flag_a, _flag_b)) goto L_47069DFF; /* 0x47069D46: je 0x47069dff */ 3150 L_47069D4C: 3151 /* test eax, eax */ /* 0x47069D4C: test eax, eax */ 3152 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3153 _cf = 0; 3154 _flag_k = FK_TEST; 3155 if (TEST_Z(_flag_a, _flag_b)) goto L_47069E0A; /* 0x47069D4E: je 0x47069e0a */ 3156 L_47069D54: 3157 eax = MEM32(0x4710E8F8); /* 0x47069D54: mov eax, dword ptr [0x4710e8f8] */ 3158 ecx = MEM32(esp + 0x8); /* 0x47069D59: mov ecx, dword ptr [esp + 8] */ 3159 /* cmp eax, ecx */ /* 0x47069D5D: cmp eax, ecx */ 3160 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3161 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3162 _flag_k = FK_CMP; 3163 if (CMP_G(_flag_a, _flag_b)) goto L_47069D6F; /* 0x47069D5F: jg 0x47069d6f */ 3164 L_47069D61: 3165 if (CMP_NE(_flag_a, _flag_b)) goto L_47069DCD; /* 0x47069D61: jne 0x47069dcd */ 3166 L_47069D63: 3167 ecx = MEM32(0x4710E8FC); /* 0x47069D63: mov ecx, dword ptr [0x4710e8fc] */ 3168 /* cmp ecx, MEM32(esp + 0xC) */ /* 0x47069D69: cmp ecx, dword ptr [esp + 0xc] */ 3169 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esp + 0xC)); 3170 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3171 _flag_k = FK_CMP; 3172 if (CMP_LE(_flag_a, _flag_b)) goto L_47069DCD; /* 0x47069D6D: jle 0x47069dcd */ 3173 L_47069D6F: 3174 edx = esp + 0x28; /* 0x47069D6F: lea edx, [esp + 0x28] */ 3175 PUSH32(esp, edx); /* 0x47069D73: push edx */ 3176 RECOMP_ICALL(edi); /* 0x47069D74: call edi */ 3177 RECOMP_FLAGS_IN(); 3178 eax = esp + 0x28; /* 0x47069D76: lea eax, [esp + 0x28] */ 3179 PUSH32(esp, eax); /* 0x47069D7A: push eax */ 3180 ecx = esp + 0x3C; /* 0x47069D7B: lea ecx, [esp + 0x3c] */ 3181 RECOMP_ICALL(0x47053F10u); /* 0x47069D7F: call 0x47053f10 */ /* not lifted */ 3182 RECOMP_FLAGS_IN(); 3183 ecx = MEM32(eax); /* 0x47069D84: mov ecx, dword ptr [eax] */ 3184 edx = MEM32(esp + 0x8); /* 0x47069D86: mov edx, dword ptr [esp + 8] */ 3185 MEM32(esp + 0x30) = ecx; /* 0x47069D8A: mov dword ptr [esp + 0x30], ecx */ 3186 eax = MEM32(eax + 0x4); /* 0x47069D8E: mov eax, dword ptr [eax + 4] */ 3187 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3188 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3189 edx = edx - ecx; /* 0x47069D91: sub edx, ecx */ 3190 _flag_k = FK_CMP; 3191 ecx = MEM32(esp + 0xC); /* 0x47069D93: mov ecx, dword ptr [esp + 0xc] */ 3192 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3193 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3194 ecx = ecx - eax; /* 0x47069D97: sub ecx, eax */ 3195 _flag_k = FK_CMP; 3196 MEM32(esp + 0x14) = ecx; /* 0x47069D99: mov dword ptr [esp + 0x14], ecx */ 3197 ecx = esp + 0x10; /* 0x47069D9D: lea ecx, [esp + 0x10] */ 3198 MEM32(esp + 0x34) = eax; /* 0x47069DA1: mov dword ptr [esp + 0x34], eax */ 3199 MEM32(esp + 0x10) = edx; /* 0x47069DA5: mov dword ptr [esp + 0x10], edx */ 3200 RECOMP_ICALL(0x470543C0u); /* 0x47069DA9: call 0x470543c0 */ /* not lifted */ 3201 RECOMP_FLAGS_IN(); 3202 ecx = esp + 0x10; /* 0x47069DAE: lea ecx, [esp + 0x10] */ 3203 RECOMP_ICALL(0x470543C0u); /* 0x47069DB2: call 0x470543c0 */ /* not lifted */ 3204 RECOMP_FLAGS_IN(); 3205 eax = MEM32(esp + 0x14); /* 0x47069DB7: mov eax, dword ptr [esp + 0x14] */ 3206 edx = MEM32(esp + 0x10); /* 0x47069DBB: mov edx, dword ptr [esp + 0x10] */ 3207 MEM32(esp + 0x24) = eax; /* 0x47069DBF: mov dword ptr [esp + 0x24], eax */ 3208 MEM32(esp + 0x20) = edx; /* 0x47069DC3: mov dword ptr [esp + 0x20], edx */ 3209 eax = esp + 0x20; /* 0x47069DC7: lea eax, [esp + 0x20] */ 3210 goto L_47069DD2; /* 0x47069DCB: jmp 0x47069dd2 */ 3211 L_47069DCD: 3212 eax = 0x4710E8F8u; /* 0x47069DCD: mov eax, 0x4710e8f8 */ 3213 L_47069DD2: 3214 ecx = MEM32(eax); /* 0x47069DD2: mov ecx, dword ptr [eax] */ 3215 edx = MEM32(0x4710E9A8); /* 0x47069DD4: mov edx, dword ptr [0x4710e9a8] */ 3216 /* cmp edx, ecx */ /* 0x47069DDA: cmp edx, ecx */ 3217 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3218 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3219 _flag_k = FK_CMP; 3220 eax = MEM32(eax + 0x4); /* 0x47069DDC: mov eax, dword ptr [eax + 4] */ 3221 MEM32(esp + 0x18) = ecx; /* 0x47069DDF: mov dword ptr [esp + 0x18], ecx */ 3222 MEM32(esp + 0x1C) = eax; /* 0x47069DE3: mov dword ptr [esp + 0x1c], eax */ 3223 if (CMP_G(_flag_a, _flag_b)) goto L_47069E0A; /* 0x47069DE7: jg 0x47069e0a */ 3224 L_47069DE9: 3225 if (CMP_NE(_flag_a, _flag_b)) goto L_47069DF3; /* 0x47069DE9: jne 0x47069df3 */ 3226 L_47069DEB: 3227 /* cmp MEM32(0x4710E9AC), eax */ /* 0x47069DEB: cmp dword ptr [0x4710e9ac], eax */ 3228 _flag_a = (uint32_t)(MEM32(0x4710E9AC)); _flag_b = (uint32_t)(eax); 3229 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3230 _flag_k = FK_CMP; 3231 if (CMP_GE(_flag_a, _flag_b)) goto L_47069E0A; /* 0x47069DF1: jge 0x47069e0a */ 3232 L_47069DF3: 3233 eax = MEM32(esi + 0x14); /* 0x47069DF3: mov eax, dword ptr [esi + 0x14] */ 3234 /* test eax, eax */ /* 0x47069DF6: test eax, eax */ 3235 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3236 _cf = 0; 3237 _flag_k = FK_TEST; 3238 if (TEST_Z(_flag_a, _flag_b)) goto L_47069E0A; /* 0x47069DF8: jbe 0x47069e0a */ 3239 L_47069DFA: 3240 RECOMP_BACKEDGE(); 3241 goto L_47069D33; /* 0x47069DFA: jmp 0x47069d33 */ 3242 L_47069DFF: 3243 edi = POP32_VAL(esp); /* 0x47069DFF: pop edi */ 3244 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3245 eax = eax | 0xFFFFFFFFu; /* 0x47069E00: or eax, 0xffffffff */ 3246 _cf = 0; 3247 _flag_k = FK_TEST; 3248 esi = POP32_VAL(esp); /* 0x47069E03: pop esi */ 3249 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 3250 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3251 esp = esp + 0x38u; /* 0x47069E04: add esp, 0x38 */ 3252 _flag_k = FK_ADD; 3253 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47069E07: ret 4 */ 3254 L_47069E0A: 3255 eax = MEM32(esi + 0x14); /* 0x47069E0A: mov eax, dword ptr [esi + 0x14] */ 3256 edi = POP32_VAL(esp); /* 0x47069E0D: pop edi */ 3257 esi = POP32_VAL(esp); /* 0x47069E0E: pop esi */ 3258 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 3259 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3260 esp = esp + 0x38u; /* 0x47069E0F: add esp, 0x38 */ 3261 _flag_k = FK_ADD; 3262 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47069E12: ret 4 */ 3263 RECOMP_REGS_OUT(); 3264 } 3265 3266 void sub_47069DD2(void) { 3267 int _fpu_cmp = 0; 3268 uint32_t _cf = 0; 3269 int _df = 1; 3270 uint32_t _flag_k = FK_NONE; 3271 uint32_t _flag_a = 0, _flag_b = 0; 3272 uint32_t _itail_tgt = 0; 3273 RECOMP_REGS_LOCALS 3274 RECOMP_ENTER(0x47069DD2u); 3275 3276 goto L_47069DD2; 3277 L_47069D33: 3278 PUSH32(esp, 0); /* 0x47069D33: push 0 */ 3279 eax = esp + 0x1C; /* 0x47069D35: lea eax, [esp + 0x1c] */ 3280 PUSH32(esp, eax); /* 0x47069D39: push eax */ 3281 PUSH32(esp, 0); /* 0x47069D3A: push 0 */ 3282 ecx = esi; /* 0x47069D3C: mov ecx, esi */ 3283 RECOMP_ICALL(0x47069E40u); /* 0x47069D3E: call 0x47069e40 */ /* not lifted */ 3284 RECOMP_FLAGS_IN(); 3285 /* cmp eax, 0xFFFFFFFFu */ /* 0x47069D43: cmp eax, -1 */ 3286 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 3287 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3288 _flag_k = FK_CMP; 3289 if (CMP_EQ(_flag_a, _flag_b)) goto L_47069DFF; /* 0x47069D46: je 0x47069dff */ 3290 L_47069D4C: 3291 /* test eax, eax */ /* 0x47069D4C: test eax, eax */ 3292 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3293 _cf = 0; 3294 _flag_k = FK_TEST; 3295 if (TEST_Z(_flag_a, _flag_b)) goto L_47069E0A; /* 0x47069D4E: je 0x47069e0a */ 3296 L_47069D54: 3297 eax = MEM32(0x4710E8F8); /* 0x47069D54: mov eax, dword ptr [0x4710e8f8] */ 3298 ecx = MEM32(esp + 0x8); /* 0x47069D59: mov ecx, dword ptr [esp + 8] */ 3299 /* cmp eax, ecx */ /* 0x47069D5D: cmp eax, ecx */ 3300 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3301 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3302 _flag_k = FK_CMP; 3303 if (CMP_G(_flag_a, _flag_b)) goto L_47069D6F; /* 0x47069D5F: jg 0x47069d6f */ 3304 L_47069D61: 3305 if (CMP_NE(_flag_a, _flag_b)) goto L_47069DCD; /* 0x47069D61: jne 0x47069dcd */ 3306 L_47069D63: 3307 ecx = MEM32(0x4710E8FC); /* 0x47069D63: mov ecx, dword ptr [0x4710e8fc] */ 3308 /* cmp ecx, MEM32(esp + 0xC) */ /* 0x47069D69: cmp ecx, dword ptr [esp + 0xc] */ 3309 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esp + 0xC)); 3310 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3311 _flag_k = FK_CMP; 3312 if (CMP_LE(_flag_a, _flag_b)) goto L_47069DCD; /* 0x47069D6D: jle 0x47069dcd */ 3313 L_47069D6F: 3314 edx = esp + 0x28; /* 0x47069D6F: lea edx, [esp + 0x28] */ 3315 PUSH32(esp, edx); /* 0x47069D73: push edx */ 3316 RECOMP_ICALL(edi); /* 0x47069D74: call edi */ 3317 RECOMP_FLAGS_IN(); 3318 eax = esp + 0x28; /* 0x47069D76: lea eax, [esp + 0x28] */ 3319 PUSH32(esp, eax); /* 0x47069D7A: push eax */ 3320 ecx = esp + 0x3C; /* 0x47069D7B: lea ecx, [esp + 0x3c] */ 3321 RECOMP_ICALL(0x47053F10u); /* 0x47069D7F: call 0x47053f10 */ /* not lifted */ 3322 RECOMP_FLAGS_IN(); 3323 ecx = MEM32(eax); /* 0x47069D84: mov ecx, dword ptr [eax] */ 3324 edx = MEM32(esp + 0x8); /* 0x47069D86: mov edx, dword ptr [esp + 8] */ 3325 MEM32(esp + 0x30) = ecx; /* 0x47069D8A: mov dword ptr [esp + 0x30], ecx */ 3326 eax = MEM32(eax + 0x4); /* 0x47069D8E: mov eax, dword ptr [eax + 4] */ 3327 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3328 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3329 edx = edx - ecx; /* 0x47069D91: sub edx, ecx */ 3330 _flag_k = FK_CMP; 3331 ecx = MEM32(esp + 0xC); /* 0x47069D93: mov ecx, dword ptr [esp + 0xc] */ 3332 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3333 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3334 ecx = ecx - eax; /* 0x47069D97: sub ecx, eax */ 3335 _flag_k = FK_CMP; 3336 MEM32(esp + 0x14) = ecx; /* 0x47069D99: mov dword ptr [esp + 0x14], ecx */ 3337 ecx = esp + 0x10; /* 0x47069D9D: lea ecx, [esp + 0x10] */ 3338 MEM32(esp + 0x34) = eax; /* 0x47069DA1: mov dword ptr [esp + 0x34], eax */ 3339 MEM32(esp + 0x10) = edx; /* 0x47069DA5: mov dword ptr [esp + 0x10], edx */ 3340 RECOMP_ICALL(0x470543C0u); /* 0x47069DA9: call 0x470543c0 */ /* not lifted */ 3341 RECOMP_FLAGS_IN(); 3342 ecx = esp + 0x10; /* 0x47069DAE: lea ecx, [esp + 0x10] */ 3343 RECOMP_ICALL(0x470543C0u); /* 0x47069DB2: call 0x470543c0 */ /* not lifted */ 3344 RECOMP_FLAGS_IN(); 3345 eax = MEM32(esp + 0x14); /* 0x47069DB7: mov eax, dword ptr [esp + 0x14] */ 3346 edx = MEM32(esp + 0x10); /* 0x47069DBB: mov edx, dword ptr [esp + 0x10] */ 3347 MEM32(esp + 0x24) = eax; /* 0x47069DBF: mov dword ptr [esp + 0x24], eax */ 3348 MEM32(esp + 0x20) = edx; /* 0x47069DC3: mov dword ptr [esp + 0x20], edx */ 3349 eax = esp + 0x20; /* 0x47069DC7: lea eax, [esp + 0x20] */ 3350 goto L_47069DD2; /* 0x47069DCB: jmp 0x47069dd2 */ 3351 L_47069DCD: 3352 eax = 0x4710E8F8u; /* 0x47069DCD: mov eax, 0x4710e8f8 */ 3353 L_47069DD2: 3354 ecx = MEM32(eax); /* 0x47069DD2: mov ecx, dword ptr [eax] */ 3355 edx = MEM32(0x4710E9A8); /* 0x47069DD4: mov edx, dword ptr [0x4710e9a8] */ 3356 /* cmp edx, ecx */ /* 0x47069DDA: cmp edx, ecx */ 3357 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3358 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3359 _flag_k = FK_CMP; 3360 eax = MEM32(eax + 0x4); /* 0x47069DDC: mov eax, dword ptr [eax + 4] */ 3361 MEM32(esp + 0x18) = ecx; /* 0x47069DDF: mov dword ptr [esp + 0x18], ecx */ 3362 MEM32(esp + 0x1C) = eax; /* 0x47069DE3: mov dword ptr [esp + 0x1c], eax */ 3363 if (CMP_G(_flag_a, _flag_b)) goto L_47069E0A; /* 0x47069DE7: jg 0x47069e0a */ 3364 L_47069DE9: 3365 if (CMP_NE(_flag_a, _flag_b)) goto L_47069DF3; /* 0x47069DE9: jne 0x47069df3 */ 3366 L_47069DEB: 3367 /* cmp MEM32(0x4710E9AC), eax */ /* 0x47069DEB: cmp dword ptr [0x4710e9ac], eax */ 3368 _flag_a = (uint32_t)(MEM32(0x4710E9AC)); _flag_b = (uint32_t)(eax); 3369 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3370 _flag_k = FK_CMP; 3371 if (CMP_GE(_flag_a, _flag_b)) goto L_47069E0A; /* 0x47069DF1: jge 0x47069e0a */ 3372 L_47069DF3: 3373 eax = MEM32(esi + 0x14); /* 0x47069DF3: mov eax, dword ptr [esi + 0x14] */ 3374 /* test eax, eax */ /* 0x47069DF6: test eax, eax */ 3375 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3376 _cf = 0; 3377 _flag_k = FK_TEST; 3378 if (TEST_Z(_flag_a, _flag_b)) goto L_47069E0A; /* 0x47069DF8: jbe 0x47069e0a */ 3379 L_47069DFA: 3380 RECOMP_BACKEDGE(); 3381 goto L_47069D33; /* 0x47069DFA: jmp 0x47069d33 */ 3382 L_47069DFF: 3383 edi = POP32_VAL(esp); /* 0x47069DFF: pop edi */ 3384 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3385 eax = eax | 0xFFFFFFFFu; /* 0x47069E00: or eax, 0xffffffff */ 3386 _cf = 0; 3387 _flag_k = FK_TEST; 3388 esi = POP32_VAL(esp); /* 0x47069E03: pop esi */ 3389 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 3390 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3391 esp = esp + 0x38u; /* 0x47069E04: add esp, 0x38 */ 3392 _flag_k = FK_ADD; 3393 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47069E07: ret 4 */ 3394 L_47069E0A: 3395 eax = MEM32(esi + 0x14); /* 0x47069E0A: mov eax, dword ptr [esi + 0x14] */ 3396 edi = POP32_VAL(esp); /* 0x47069E0D: pop edi */ 3397 esi = POP32_VAL(esp); /* 0x47069E0E: pop esi */ 3398 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 3399 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3400 esp = esp + 0x38u; /* 0x47069E0F: add esp, 0x38 */ 3401 _flag_k = FK_ADD; 3402 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47069E12: ret 4 */ 3403 RECOMP_REGS_OUT(); 3404 } 3405 3406 void sub_47069E0A(void) { 3407 int _fpu_cmp = 0; 3408 uint32_t _cf = 0; 3409 int _df = 1; 3410 uint32_t _flag_k = FK_NONE; 3411 uint32_t _flag_a = 0, _flag_b = 0; 3412 uint32_t _itail_tgt = 0; 3413 RECOMP_REGS_LOCALS 3414 RECOMP_ENTER(0x47069E0Au); 3415 3416 L_47069E0A: 3417 eax = MEM32(esi + 0x14); /* 0x47069E0A: mov eax, dword ptr [esi + 0x14] */ 3418 edi = POP32_VAL(esp); /* 0x47069E0D: pop edi */ 3419 esi = POP32_VAL(esp); /* 0x47069E0E: pop esi */ 3420 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 3421 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3422 esp = esp + 0x38u; /* 0x47069E0F: add esp, 0x38 */ 3423 _flag_k = FK_ADD; 3424 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47069E12: ret 4 */ 3425 RECOMP_REGS_OUT(); 3426 } 3427 3428 void sub_47069E20(void) { 3429 int _fpu_cmp = 0; 3430 uint32_t _cf = 0; 3431 int _df = 1; 3432 uint32_t _flag_k = FK_NONE; 3433 uint32_t _flag_a = 0, _flag_b = 0; 3434 uint32_t _itail_tgt = 0; 3435 RECOMP_REGS_LOCALS 3436 RECOMP_ENTER(0x47069E20u); 3437 3438 L_47069E20: 3439 eax = MEM32(esp + 0x8); /* 0x47069E20: mov eax, dword ptr [esp + 8] */ 3440 edx = MEM32(esp + 0x4); /* 0x47069E24: mov edx, dword ptr [esp + 4] */ 3441 PUSH32(esp, eax); /* 0x47069E28: push eax */ 3442 PUSH32(esp, 0x4710E8F8u); /* 0x47069E29: push 0x4710e8f8 */ 3443 PUSH32(esp, edx); /* 0x47069E2E: push edx */ 3444 RECOMP_ICALL(0x47069E40u); /* 0x47069E2F: call 0x47069e40 */ /* not lifted */ 3445 RECOMP_FLAGS_IN(); 3446 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47069E34: ret 8 */ 3447 RECOMP_REGS_OUT(); 3448 } 3449 3450 void sub_47069E40(void) { 3451 int _fpu_cmp = 0; 3452 uint32_t _cf = 0; 3453 int _df = 1; 3454 uint32_t _flag_k = FK_NONE; 3455 uint32_t _flag_a = 0, _flag_b = 0; 3456 uint32_t _itail_tgt = 0; 3457 RECOMP_REGS_LOCALS 3458 RECOMP_ENTER(0x47069E40u); 3459 3460 L_47069E40: 3461 PUSH32(esp, 0xFFFFFFFFu); /* 0x47069E40: push -1 */ 3462 PUSH32(esp, 0x470A88B8u); /* 0x47069E42: push 0x470a88b8 */ 3463 eax = MEM32(FS_BASE + (0)); /* 0x47069E47: mov eax, dword ptr fs:[0] */ 3464 PUSH32(esp, eax); /* 0x47069E4D: push eax */ 3465 MEM32(FS_BASE + (0)) = esp; /* 0x47069E4E: mov dword ptr fs:[0], esp */ 3466 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3467 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3468 esp = esp - 0x14u; /* 0x47069E55: sub esp, 0x14 */ 3469 _flag_k = FK_CMP; 3470 eax = MEM32(esp + 0x2C); /* 0x47069E58: mov eax, dword ptr [esp + 0x2c] */ 3471 PUSH32(esp, ebx); /* 0x47069E5C: push ebx */ 3472 PUSH32(esp, ebp); /* 0x47069E5D: push ebp */ 3473 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3474 ebp = 0; /* 0x47069E5E: xor ebp, ebp */ 3475 _cf = 0; 3476 _flag_k = FK_TEST; 3477 /* cmp eax, ebp */ /* 0x47069E60: cmp eax, ebp */ 3478 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 3479 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3480 _flag_k = FK_CMP; 3481 PUSH32(esp, esi); /* 0x47069E62: push esi */ 3482 PUSH32(esp, edi); /* 0x47069E63: push edi */ 3483 edi = ecx; /* 0x47069E64: mov edi, ecx */ 3484 MEM32(esp + 0x18) = ebp; /* 0x47069E66: mov dword ptr [esp + 0x18], ebp */ 3485 if (CMP_NE(_flag_a, _flag_b)) goto L_47069E74; /* 0x47069E6A: jne 0x47069e74 */ 3486 L_47069E6C: 3487 eax = esp + 0x18; /* 0x47069E6C: lea eax, [esp + 0x18] */ 3488 MEM32(esp + 0x3C) = eax; /* 0x47069E70: mov dword ptr [esp + 0x3c], eax */ 3489 L_47069E74: 3490 ecx = MEM32(esp + 0x3C); /* 0x47069E74: mov ecx, dword ptr [esp + 0x3c] */ 3491 ebx = edi + 0x1C; /* 0x47069E78: lea ebx, [edi + 0x1c] */ 3492 PUSH32(esp, ebx); /* 0x47069E7B: push ebx */ 3493 MEM32(ecx) = ebp; /* 0x47069E7C: mov dword ptr [ecx], ebp */ 3494 MEM32(esp + 0x14) = 0xFFFFFFFFu; /* 0x47069E7E: mov dword ptr [esp + 0x14], 0xffffffff */ 3495 MEM32(esp + 0x18) = ebp; /* 0x47069E86: mov dword ptr [esp + 0x18], ebp */ 3496 MEM32(esp + 0x20) = ebx; /* 0x47069E8A: mov dword ptr [esp + 0x20], ebx */ 3497 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47069E8E: call dword ptr [0x470ac180] */ 3498 RECOMP_FLAGS_IN(); 3499 MEM32(esp + 0x20) = ebp; /* 0x47069E94: mov dword ptr [esp + 0x20], ebp */ 3500 esi = MEM32(esp + 0x34); /* 0x47069E98: mov esi, dword ptr [esp + 0x34] */ 3501 /* cmp esi, ebp */ /* 0x47069E9C: cmp esi, ebp */ 3502 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp); 3503 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3504 _flag_k = FK_CMP; 3505 MEM32(esp + 0x2C) = ebp; /* 0x47069E9E: mov dword ptr [esp + 0x2c], ebp */ 3506 if (CMP_EQ(_flag_a, _flag_b)) goto L_47069EFA; /* 0x47069EA2: je 0x47069efa */ 3507 L_47069EA4: 3508 edx = MEM32(edi + 0x14); /* 0x47069EA4: mov edx, dword ptr [edi + 0x14] */ 3509 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3510 eax = 0; /* 0x47069EA7: xor eax, eax */ 3511 _cf = 0; 3512 _flag_k = FK_TEST; 3513 /* cmp edx, ebp */ /* 0x47069EA9: cmp edx, ebp */ 3514 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebp); 3515 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3516 _flag_k = FK_CMP; 3517 if (CMP_BE(_flag_a, _flag_b)) goto L_47069ECE; /* 0x47069EAB: jbe 0x47069ece */ 3518 L_47069EAD: 3519 ecx = MEM32(edi + 0xC); /* 0x47069EAD: mov ecx, dword ptr [edi + 0xc] */ 3520 L_47069EB0: 3521 ebp = MEM32(ecx); /* 0x47069EB0: mov ebp, dword ptr [ecx] */ 3522 /* cmp esi, MEM32(ebp + 0xC) */ /* 0x47069EB2: cmp esi, dword ptr [ebp + 0xc] */ 3523 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + 0xC)); 3524 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3525 _flag_k = FK_CMP; 3526 if (CMP_EQ(_flag_a, _flag_b)) goto L_47069EC5; /* 0x47069EB5: je 0x47069ec5 */ 3527 L_47069EB7: 3528 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3529 eax = eax + 1; /* 0x47069EB7: inc eax */ 3530 _flag_k = FK_INC; 3531 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 3532 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3533 ecx = ecx + 8; /* 0x47069EB8: add ecx, 8 */ 3534 _flag_k = FK_ADD; 3535 /* cmp eax, edx */ /* 0x47069EBB: cmp eax, edx */ 3536 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3537 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3538 _flag_k = FK_CMP; 3539 RECOMP_BACKEDGE(); 3540 if (CMP_B(_flag_a, _flag_b)) goto L_47069EB0; /* 0x47069EBD: jb 0x47069eb0 */ 3541 L_47069EBF: 3542 PUSH32(esp, ebx); /* 0x47069EBF: push ebx */ 3543 goto L_4706A0AE; /* 0x47069EC0: jmp 0x4706a0ae */ 3544 L_47069EC5: 3545 /* cmp eax, 0xFFFFFFFFu */ /* 0x47069EC5: cmp eax, -1 */ 3546 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 3547 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3548 _flag_k = FK_CMP; 3549 MEM32(esp + 0x10) = eax; /* 0x47069EC8: mov dword ptr [esp + 0x10], eax */ 3550 if (CMP_NE(_flag_a, _flag_b)) goto L_47069ED4; /* 0x47069ECC: jne 0x47069ed4 */ 3551 L_47069ECE: 3552 PUSH32(esp, ebx); /* 0x47069ECE: push ebx */ 3553 goto L_4706A0AE; /* 0x47069ECF: jmp 0x4706a0ae */ 3554 L_47069ED4: 3555 ecx = MEM32(edi + 0xC); /* 0x47069ED4: mov ecx, dword ptr [edi + 0xc] */ 3556 eax = MEM32(ecx + eax * 8); /* 0x47069ED7: mov eax, dword ptr [ecx + eax*8] */ 3557 /* test eax, eax */ /* 0x47069EDA: test eax, eax */ 3558 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3559 _cf = 0; 3560 _flag_k = FK_TEST; 3561 MEM32(esp + 0x14) = eax; /* 0x47069EDC: mov dword ptr [esp + 0x14], eax */ 3562 if (TEST_Z(_flag_a, _flag_b)) goto L_47069EFA; /* 0x47069EE0: je 0x47069efa */ 3563 L_47069EE2: 3564 edx = MEM32(esp + 0x3C); /* 0x47069EE2: mov edx, dword ptr [esp + 0x3c] */ 3565 ecx = MEM32(esp + 0x38); /* 0x47069EE6: mov ecx, dword ptr [esp + 0x38] */ 3566 PUSH32(esp, edx); /* 0x47069EEA: push edx */ 3567 PUSH32(esp, ecx); /* 0x47069EEB: push ecx */ 3568 ecx = eax; /* 0x47069EEC: mov ecx, eax */ 3569 RECOMP_ICALL(0x47068270u); /* 0x47069EEE: call 0x47068270 */ /* not lifted */ 3570 RECOMP_FLAGS_IN(); 3571 ebx = eax; /* 0x47069EF3: mov ebx, eax */ 3572 goto L_4706A107; /* 0x47069EF5: jmp 0x4706a107 */ 3573 L_47069EFA: 3574 edx = MEM32(edi + 0x14); /* 0x47069EFA: mov edx, dword ptr [edi + 0x14] */ 3575 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x47069EFD: shl edx, 2 */ 3576 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3577 edx = edx << 2u; /* 0x47069EFD: shl edx, 2 */ 3578 PUSH32(esp, edx); /* 0x47069F00: push edx */ 3579 RECOMP_ICALL(0x470A33F2u); /* 0x47069F01: call 0x470a33f2 */ /* not lifted */ 3580 RECOMP_FLAGS_IN(); 3581 ebp = eax; /* 0x47069F06: mov ebp, eax */ 3582 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3583 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3584 esp = esp + 4; /* 0x47069F08: add esp, 4 */ 3585 _flag_k = FK_ADD; 3586 /* test ebp, ebp */ /* 0x47069F0B: test ebp, ebp */ 3587 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp); 3588 _cf = 0; 3589 _flag_k = FK_TEST; 3590 MEM32(esp + 0x34) = ebp; /* 0x47069F0D: mov dword ptr [esp + 0x34], ebp */ 3591 if (TEST_NZ(_flag_a, _flag_b)) goto L_47069F25; /* 0x47069F11: jne 0x47069f25 */ 3592 L_47069F13: 3593 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47069F13: call dword ptr [0x470ac3c8] */ 3594 RECOMP_FLAGS_IN(); 3595 MEM32(eax) = 0xCu; /* 0x47069F19: mov dword ptr [eax], 0xc */ 3596 PUSH32(esp, ebx); /* 0x47069F1F: push ebx */ 3597 goto L_4706A0AE; /* 0x47069F20: jmp 0x4706a0ae */ 3598 L_47069F25: 3599 ecx = MEM32(edi + 0x14); /* 0x47069F25: mov ecx, dword ptr [edi + 0x14] */ 3600 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3601 eax = 0; /* 0x47069F28: xor eax, eax */ 3602 _cf = 0; 3603 _flag_k = FK_TEST; 3604 /* test ecx, ecx */ /* 0x47069F2A: test ecx, ecx */ 3605 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3606 _cf = 0; 3607 _flag_k = FK_TEST; 3608 if (TEST_Z(_flag_a, _flag_b)) goto L_47069F46; /* 0x47069F2C: jbe 0x47069f46 */ 3609 L_47069F2E: 3610 ecx = ebp; /* 0x47069F2E: mov ecx, ebp */ 3611 L_47069F30: 3612 edx = MEM32(edi + 0xC); /* 0x47069F30: mov edx, dword ptr [edi + 0xc] */ 3613 edx = MEM32(edx + eax * 8); /* 0x47069F33: mov edx, dword ptr [edx + eax*8] */ 3614 edx = MEM32(edx + 0x4); /* 0x47069F36: mov edx, dword ptr [edx + 4] */ 3615 MEM32(ecx) = edx; /* 0x47069F39: mov dword ptr [ecx], edx */ 3616 edx = MEM32(edi + 0x14); /* 0x47069F3B: mov edx, dword ptr [edi + 0x14] */ 3617 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3618 eax = eax + 1; /* 0x47069F3E: inc eax */ 3619 _flag_k = FK_INC; 3620 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 3621 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3622 ecx = ecx + 4; /* 0x47069F3F: add ecx, 4 */ 3623 _flag_k = FK_ADD; 3624 /* cmp eax, edx */ /* 0x47069F42: cmp eax, edx */ 3625 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3626 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3627 _flag_k = FK_CMP; 3628 RECOMP_BACKEDGE(); 3629 if (CMP_B(_flag_a, _flag_b)) goto L_47069F30; /* 0x47069F44: jb 0x47069f30 */ 3630 L_47069F46: 3631 eax = MEM32(esp + 0x38); /* 0x47069F46: mov eax, dword ptr [esp + 0x38] */ 3632 ecx = MEM32(eax); /* 0x47069F4A: mov ecx, dword ptr [eax] */ 3633 /* cmp ecx, MEM32(0x4710E8F8) */ /* 0x47069F4C: cmp ecx, dword ptr [0x4710e8f8] */ 3634 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(0x4710E8F8)); 3635 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3636 _flag_k = FK_CMP; 3637 if (CMP_NE(_flag_a, _flag_b)) goto L_47069F64; /* 0x47069F52: jne 0x47069f64 */ 3638 L_47069F54: 3639 edx = MEM32(eax + 0x4); /* 0x47069F54: mov edx, dword ptr [eax + 4] */ 3640 /* cmp edx, MEM32(0x4710E8FC) */ /* 0x47069F57: cmp edx, dword ptr [0x4710e8fc] */ 3641 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(0x4710E8FC)); 3642 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3643 _flag_k = FK_CMP; 3644 if (CMP_NE(_flag_a, _flag_b)) goto L_47069F64; /* 0x47069F5D: jne 0x47069f64 */ 3645 L_47069F5F: 3646 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3647 eax = eax | 0xFFFFFFFFu; /* 0x47069F5F: or eax, 0xffffffff */ 3648 _cf = 0; 3649 _flag_k = FK_TEST; 3650 goto L_47069F84; /* 0x47069F62: jmp 0x47069f84 */ 3651 L_47069F64: 3652 edx = MEM32(eax + 0x4); /* 0x47069F64: mov edx, dword ptr [eax + 4] */ 3653 eax = 0x10624DD3u; /* 0x47069F67: mov eax, 0x10624dd3 */ 3654 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x47069F6C: imul edx */ 3655 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 3656 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 3657 if (6u) _cf = (((edx) >> 5) & 1u); /* 0x47069F6E: sar edx, 6 */ 3658 if (6u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 6u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3659 edx = (uint32_t)((int32_t)edx >> 6u); 3660 eax = edx; /* 0x47069F71: mov eax, edx */ 3661 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x47069F73: shr eax, 0x1f */ 3662 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3663 eax = eax >> 31u; /* 0x47069F73: shr eax, 0x1f */ 3664 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3665 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3666 edx = edx + eax; /* 0x47069F76: add edx, eax */ 3667 _flag_k = FK_ADD; 3668 eax = ecx + ecx * 4; /* 0x47069F78: lea eax, [ecx + ecx*4] */ 3669 eax = eax + eax * 4; /* 0x47069F7B: lea eax, [eax + eax*4] */ 3670 ecx = eax + eax * 4; /* 0x47069F7E: lea ecx, [eax + eax*4] */ 3671 eax = edx + ecx * 8; /* 0x47069F81: lea eax, [edx + ecx*8] */ 3672 L_47069F84: 3673 edx = MEM32(edi + 0x14); /* 0x47069F84: mov edx, dword ptr [edi + 0x14] */ 3674 PUSH32(esp, eax); /* 0x47069F87: push eax */ 3675 PUSH32(esp, 0); /* 0x47069F88: push 0 */ 3676 PUSH32(esp, ebp); /* 0x47069F8A: push ebp */ 3677 PUSH32(esp, edx); /* 0x47069F8B: push edx */ 3678 RECOMP_ICALL(MEM32(0x470AC08C)); /* 0x47069F8C: call dword ptr [0x470ac08c] */ 3679 RECOMP_FLAGS_IN(); 3680 ebx = eax; /* 0x47069F92: mov ebx, eax */ 3681 /* cmp ebx, 0xFFFFFFFFu */ /* 0x47069F94: cmp ebx, -1 */ 3682 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFFu); 3683 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3684 _flag_k = FK_CMP; 3685 if (CMP_NE(_flag_a, _flag_b)) goto L_47069FA0; /* 0x47069F97: jne 0x47069fa0 */ 3686 L_47069F99: 3687 _flag_a = (uint32_t)((ebx | eax)); _flag_b = (uint32_t)((ebx | eax)); 3688 ebx = ebx | eax; /* 0x47069F99: or ebx, eax */ 3689 _cf = 0; 3690 _flag_k = FK_TEST; 3691 goto L_4706A0FE; /* 0x47069F9B: jmp 0x4706a0fe */ 3692 L_47069FA0: 3693 /* cmp ebx, 0x102u */ /* 0x47069FA0: cmp ebx, 0x102 */ 3694 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x102u); 3695 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3696 _flag_k = FK_CMP; 3697 if (CMP_NE(_flag_a, _flag_b)) goto L_47069FAF; /* 0x47069FA6: jne 0x47069faf */ 3698 L_47069FA8: 3699 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3700 ebx = 0; /* 0x47069FA8: xor ebx, ebx */ 3701 _cf = 0; 3702 _flag_k = FK_TEST; 3703 goto L_4706A0FE; /* 0x47069FAA: jmp 0x4706a0fe */ 3704 L_47069FAF: 3705 /* cmp ebx, MEM32(edi + 0x14) */ /* 0x47069FAF: cmp ebx, dword ptr [edi + 0x14] */ 3706 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x14)); 3707 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3708 _flag_k = FK_CMP; 3709 if (CMP_B(_flag_a, _flag_b)) goto L_4706A01B; /* 0x47069FB2: jb 0x4706a01b */ 3710 L_47069FB4: 3711 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47069FB4: call dword ptr [0x470ac150] */ 3712 RECOMP_FLAGS_IN(); 3713 ebp = eax; /* 0x47069FBA: mov ebp, eax */ 3714 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47069FBC: call dword ptr [0x470ac3c8] */ 3715 RECOMP_FLAGS_IN(); 3716 eax = MEM32(eax); /* 0x47069FC2: mov eax, dword ptr [eax] */ 3717 /* test eax, eax */ /* 0x47069FC4: test eax, eax */ 3718 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3719 _cf = 0; 3720 _flag_k = FK_TEST; 3721 if (TEST_Z(_flag_a, _flag_b)) goto L_47069FCA; /* 0x47069FC6: je 0x47069fca */ 3722 L_47069FC8: 3723 ebp = eax; /* 0x47069FC8: mov ebp, eax */ 3724 L_47069FCA: 3725 RECOMP_ICALL(0x47039020u); /* 0x47069FCA: call 0x47039020 */ /* not lifted */ 3726 RECOMP_FLAGS_IN(); 3727 esi = eax; /* 0x47069FCF: mov esi, eax */ 3728 ecx = esi; /* 0x47069FD1: mov ecx, esi */ 3729 RECOMP_ICALL(0x4703B210u); /* 0x47069FD3: call 0x4703b210 */ /* not lifted */ 3730 RECOMP_FLAGS_IN(); 3731 PUSH32(esp, eax); /* 0x47069FD8: push eax */ 3732 ecx = esi; /* 0x47069FD9: mov ecx, esi */ 3733 RECOMP_ICALL(0x4703B240u); /* 0x47069FDB: call 0x4703b240 */ /* not lifted */ 3734 RECOMP_FLAGS_IN(); 3735 PUSH32(esp, eax); /* 0x47069FE0: push eax */ 3736 ecx = esi; /* 0x47069FE1: mov ecx, esi */ 3737 RECOMP_ICALL(0x4703B080u); /* 0x47069FE3: call 0x4703b080 */ /* not lifted */ 3738 RECOMP_FLAGS_IN(); 3739 PUSH32(esp, eax); /* 0x47069FE8: push eax */ 3740 PUSH32(esp, ebp); /* 0x47069FE9: push ebp */ 3741 PUSH32(esp, 0xFFFFFFFFu); /* 0x47069FEA: push -1 */ 3742 PUSH32(esp, 0x320u); /* 0x47069FEC: push 0x320 */ 3743 PUSH32(esp, 0x47109BA8u); /* 0x47069FF1: push 0x47109ba8 */ 3744 ecx = esi; /* 0x47069FF6: mov ecx, esi */ 3745 RECOMP_ICALL(0x4703A340u); /* 0x47069FF8: call 0x4703a340 */ /* not lifted */ 3746 RECOMP_FLAGS_IN(); 3747 PUSH32(esp, 0xFFFFFFFFu); /* 0x47069FFD: push -1 */ 3748 PUSH32(esp, 0x47109CE8u); /* 0x47069FFF: push 0x47109ce8 */ 3749 PUSH32(esp, 0x47104AA4u); /* 0x4706A004: push 0x47104aa4 */ 3750 PUSH32(esp, 0x80u); /* 0x4706A009: push 0x80 */ 3751 PUSH32(esp, esi); /* 0x4706A00E: push esi */ 3752 RECOMP_ICALL(0x47039830u); /* 0x4706A00F: call 0x47039830 */ /* not lifted */ 3753 RECOMP_FLAGS_IN(); 3754 ebp = MEM32(esp + 0x48); /* 0x4706A014: mov ebp, dword ptr [esp + 0x48] */ 3755 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3756 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3757 esp = esp + 0x14u; /* 0x4706A018: add esp, 0x14 */ 3758 _flag_k = FK_ADD; 3759 L_4706A01B: 3760 ecx = MEM32(edi + 0x14); /* 0x4706A01B: mov ecx, dword ptr [edi + 0x14] */ 3761 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3762 esi = 0; /* 0x4706A01E: xor esi, esi */ 3763 _cf = 0; 3764 _flag_k = FK_TEST; 3765 /* test ecx, ecx */ /* 0x4706A020: test ecx, ecx */ 3766 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3767 _cf = 0; 3768 _flag_k = FK_TEST; 3769 if (TEST_Z(_flag_a, _flag_b)) goto L_4706A044; /* 0x4706A022: jbe 0x4706a044 */ 3770 L_4706A024: 3771 edx = MEM32(edi + 0xC); /* 0x4706A024: mov edx, dword ptr [edi + 0xc] */ 3772 ebp = MEM32(ebp + ebx * 4); /* 0x4706A027: mov ebp, dword ptr [ebp + ebx*4] */ 3773 eax = edx; /* 0x4706A02B: mov eax, edx */ 3774 L_4706A02D: 3775 ebx = MEM32(eax); /* 0x4706A02D: mov ebx, dword ptr [eax] */ 3776 /* cmp ebp, MEM32(ebx + 0x4) */ /* 0x4706A02F: cmp ebp, dword ptr [ebx + 4] */ 3777 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(MEM32(ebx + 0x4)); 3778 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3779 _flag_k = FK_CMP; 3780 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706A0CC; /* 0x4706A032: je 0x4706a0cc */ 3781 L_4706A038: 3782 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 3783 esi = esi + 1; /* 0x4706A038: inc esi */ 3784 _flag_k = FK_INC; 3785 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 3786 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3787 eax = eax + 8; /* 0x4706A039: add eax, 8 */ 3788 _flag_k = FK_ADD; 3789 /* cmp esi, ecx */ /* 0x4706A03C: cmp esi, ecx */ 3790 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 3791 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3792 _flag_k = FK_CMP; 3793 RECOMP_BACKEDGE(); 3794 if (CMP_B(_flag_a, _flag_b)) goto L_4706A02D; /* 0x4706A03E: jb 0x4706a02d */ 3795 L_4706A040: 3796 ebp = MEM32(esp + 0x34); /* 0x4706A040: mov ebp, dword ptr [esp + 0x34] */ 3797 L_4706A044: 3798 PUSH32(esp, ebp); /* 0x4706A044: push ebp */ 3799 RECOMP_ICALL(0x470A32A2u); /* 0x4706A045: call 0x470a32a2 */ /* not lifted */ 3800 RECOMP_FLAGS_IN(); 3801 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3802 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3803 esp = esp + 4; /* 0x4706A04A: add esp, 4 */ 3804 _flag_k = FK_ADD; 3805 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4706A04D: call dword ptr [0x470ac150] */ 3806 RECOMP_FLAGS_IN(); 3807 edi = eax; /* 0x4706A053: mov edi, eax */ 3808 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706A055: call dword ptr [0x470ac3c8] */ 3809 RECOMP_FLAGS_IN(); 3810 eax = MEM32(eax); /* 0x4706A05B: mov eax, dword ptr [eax] */ 3811 /* test eax, eax */ /* 0x4706A05D: test eax, eax */ 3812 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3813 _cf = 0; 3814 _flag_k = FK_TEST; 3815 if (TEST_Z(_flag_a, _flag_b)) goto L_4706A063; /* 0x4706A05F: je 0x4706a063 */ 3816 L_4706A061: 3817 edi = eax; /* 0x4706A061: mov edi, eax */ 3818 L_4706A063: 3819 RECOMP_ICALL(0x47039020u); /* 0x4706A063: call 0x47039020 */ /* not lifted */ 3820 RECOMP_FLAGS_IN(); 3821 esi = eax; /* 0x4706A068: mov esi, eax */ 3822 ecx = esi; /* 0x4706A06A: mov ecx, esi */ 3823 RECOMP_ICALL(0x4703B210u); /* 0x4706A06C: call 0x4703b210 */ /* not lifted */ 3824 RECOMP_FLAGS_IN(); 3825 PUSH32(esp, eax); /* 0x4706A071: push eax */ 3826 ecx = esi; /* 0x4706A072: mov ecx, esi */ 3827 RECOMP_ICALL(0x4703B240u); /* 0x4706A074: call 0x4703b240 */ /* not lifted */ 3828 RECOMP_FLAGS_IN(); 3829 PUSH32(esp, eax); /* 0x4706A079: push eax */ 3830 ecx = esi; /* 0x4706A07A: mov ecx, esi */ 3831 RECOMP_ICALL(0x4703B080u); /* 0x4706A07C: call 0x4703b080 */ /* not lifted */ 3832 RECOMP_FLAGS_IN(); 3833 PUSH32(esp, eax); /* 0x4706A081: push eax */ 3834 PUSH32(esp, edi); /* 0x4706A082: push edi */ 3835 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706A083: push -1 */ 3836 PUSH32(esp, 0x338u); /* 0x4706A085: push 0x338 */ 3837 PUSH32(esp, 0x47109BA8u); /* 0x4706A08A: push 0x47109ba8 */ 3838 ecx = esi; /* 0x4706A08F: mov ecx, esi */ 3839 RECOMP_ICALL(0x4703A340u); /* 0x4706A091: call 0x4703a340 */ /* not lifted */ 3840 RECOMP_FLAGS_IN(); 3841 PUSH32(esp, 0x47109CB4u); /* 0x4706A096: push 0x47109cb4 */ 3842 PUSH32(esp, 0x80u); /* 0x4706A09B: push 0x80 */ 3843 PUSH32(esp, esi); /* 0x4706A0A0: push esi */ 3844 RECOMP_ICALL(0x47039830u); /* 0x4706A0A1: call 0x47039830 */ /* not lifted */ 3845 RECOMP_FLAGS_IN(); 3846 eax = MEM32(esp + 0x28); /* 0x4706A0A6: mov eax, dword ptr [esp + 0x28] */ 3847 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3848 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3849 esp = esp + 0xCu; /* 0x4706A0AA: add esp, 0xc */ 3850 _flag_k = FK_ADD; 3851 PUSH32(esp, eax); /* 0x4706A0AD: push eax */ 3852 L_4706A0AE: 3853 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4706A0AE: call dword ptr [0x470ac190] */ 3854 RECOMP_FLAGS_IN(); 3855 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3856 eax = eax | 0xFFFFFFFFu; /* 0x4706A0B4: or eax, 0xffffffff */ 3857 _cf = 0; 3858 _flag_k = FK_TEST; 3859 L_4706A0B7: 3860 ecx = MEM32(esp + 0x24); /* 0x4706A0B7: mov ecx, dword ptr [esp + 0x24] */ 3861 edi = POP32_VAL(esp); /* 0x4706A0BB: pop edi */ 3862 esi = POP32_VAL(esp); /* 0x4706A0BC: pop esi */ 3863 ebp = POP32_VAL(esp); /* 0x4706A0BD: pop ebp */ 3864 ebx = POP32_VAL(esp); /* 0x4706A0BE: pop ebx */ 3865 MEM32(FS_BASE + (0)) = ecx; /* 0x4706A0BF: mov dword ptr fs:[0], ecx */ 3866 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 3867 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3868 esp = esp + 0x20u; /* 0x4706A0C6: add esp, 0x20 */ 3869 _flag_k = FK_ADD; 3870 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4706A0C9: ret 0xc */ 3871 L_4706A0CC: 3872 /* cmp esi, 0xFFFFFFFFu */ /* 0x4706A0CC: cmp esi, -1 */ 3873 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu); 3874 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3875 _flag_k = FK_CMP; 3876 MEM32(esp + 0x10) = esi; /* 0x4706A0CF: mov dword ptr [esp + 0x10], esi */ 3877 RECOMP_BACKEDGE(); 3878 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706A040; /* 0x4706A0D3: je 0x4706a040 */ 3879 L_4706A0D9: 3880 ecx = MEM32(esp + 0x3C); /* 0x4706A0D9: mov ecx, dword ptr [esp + 0x3c] */ 3881 eax = MEM32(edx + esi * 8); /* 0x4706A0DD: mov eax, dword ptr [edx + esi*8] */ 3882 ebx = MEM32(eax + 0xC); /* 0x4706A0E0: mov ebx, dword ptr [eax + 0xc] */ 3883 PUSH32(esp, ecx); /* 0x4706A0E3: push ecx */ 3884 PUSH32(esp, ebp); /* 0x4706A0E4: push ebp */ 3885 RECOMP_ICALL(MEM32(0x470AC0E4)); /* 0x4706A0E5: call dword ptr [0x470ac0e4] */ 3886 RECOMP_FLAGS_IN(); 3887 /* test eax, eax */ /* 0x4706A0EB: test eax, eax */ 3888 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3889 _cf = 0; 3890 _flag_k = FK_TEST; 3891 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706A0FA; /* 0x4706A0ED: jne 0x4706a0fa */ 3892 L_4706A0EF: 3893 PUSH32(esp, esi); /* 0x4706A0EF: push esi */ 3894 ecx = edi; /* 0x4706A0F0: mov ecx, edi */ 3895 RECOMP_ICALL(0x47069A80u); /* 0x4706A0F2: call 0x47069a80 */ /* not lifted */ 3896 RECOMP_FLAGS_IN(); 3897 _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu)); 3898 ebx = ebx | 0xFFFFFFFFu; /* 0x4706A0F7: or ebx, 0xffffffff */ 3899 _cf = 0; 3900 _flag_k = FK_TEST; 3901 L_4706A0FA: 3902 ebp = MEM32(esp + 0x34); /* 0x4706A0FA: mov ebp, dword ptr [esp + 0x34] */ 3903 L_4706A0FE: 3904 PUSH32(esp, ebp); /* 0x4706A0FE: push ebp */ 3905 RECOMP_ICALL(0x470A32A2u); /* 0x4706A0FF: call 0x470a32a2 */ /* not lifted */ 3906 RECOMP_FLAGS_IN(); 3907 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3908 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3909 esp = esp + 4; /* 0x4706A104: add esp, 4 */ 3910 _flag_k = FK_ADD; 3911 L_4706A107: 3912 /* cmp ebx, 0xFFFFFFFFu */ /* 0x4706A107: cmp ebx, -1 */ 3913 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFFu); 3914 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3915 _flag_k = FK_CMP; 3916 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706A23B; /* 0x4706A10A: je 0x4706a23b */ 3917 L_4706A110: 3918 /* test ebx, ebx */ /* 0x4706A110: test ebx, ebx */ 3919 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 3920 _cf = 0; 3921 _flag_k = FK_TEST; 3922 if (TEST_Z(_flag_a, _flag_b)) goto L_4706A23B; /* 0x4706A112: je 0x4706a23b */ 3923 L_4706A118: 3924 eax = MEM32(esp + 0x14); /* 0x4706A118: mov eax, dword ptr [esp + 0x14] */ 3925 /* test eax, eax */ /* 0x4706A11C: test eax, eax */ 3926 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3927 _cf = 0; 3928 _flag_k = FK_TEST; 3929 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706A1B8; /* 0x4706A11E: jne 0x4706a1b8 */ 3930 L_4706A124: 3931 edx = MEM32(edi + 0x14); /* 0x4706A124: mov edx, dword ptr [edi + 0x14] */ 3932 /* test edx, edx */ /* 0x4706A127: test edx, edx */ 3933 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 3934 _cf = 0; 3935 _flag_k = FK_TEST; 3936 if (TEST_Z(_flag_a, _flag_b)) goto L_4706A14C; /* 0x4706A129: jbe 0x4706a14c */ 3937 L_4706A12B: 3938 ecx = MEM32(edi + 0xC); /* 0x4706A12B: mov ecx, dword ptr [edi + 0xc] */ 3939 L_4706A12E: 3940 esi = MEM32(ecx); /* 0x4706A12E: mov esi, dword ptr [ecx] */ 3941 /* cmp ebx, MEM32(esi + 0xC) */ /* 0x4706A130: cmp ebx, dword ptr [esi + 0xc] */ 3942 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0xC)); 3943 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3944 _flag_k = FK_CMP; 3945 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706A13F; /* 0x4706A133: je 0x4706a13f */ 3946 L_4706A135: 3947 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3948 eax = eax + 1; /* 0x4706A135: inc eax */ 3949 _flag_k = FK_INC; 3950 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 3951 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3952 ecx = ecx + 8; /* 0x4706A136: add ecx, 8 */ 3953 _flag_k = FK_ADD; 3954 /* cmp eax, edx */ /* 0x4706A139: cmp eax, edx */ 3955 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3956 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3957 _flag_k = FK_CMP; 3958 RECOMP_BACKEDGE(); 3959 if (CMP_B(_flag_a, _flag_b)) goto L_4706A12E; /* 0x4706A13B: jb 0x4706a12e */ 3960 L_4706A13D: 3961 goto L_4706A14C; /* 0x4706A13D: jmp 0x4706a14c */ 3962 L_4706A13F: 3963 /* cmp eax, 0xFFFFFFFFu */ /* 0x4706A13F: cmp eax, -1 */ 3964 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 3965 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3966 _flag_k = FK_CMP; 3967 MEM32(esp + 0x10) = eax; /* 0x4706A142: mov dword ptr [esp + 0x10], eax */ 3968 if (CMP_NE(_flag_a, _flag_b)) goto L_4706A220; /* 0x4706A146: jne 0x4706a220 */ 3969 L_4706A14C: 3970 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4706A14C: call dword ptr [0x470ac150] */ 3971 RECOMP_FLAGS_IN(); 3972 edi = eax; /* 0x4706A152: mov edi, eax */ 3973 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706A154: call dword ptr [0x470ac3c8] */ 3974 RECOMP_FLAGS_IN(); 3975 eax = MEM32(eax); /* 0x4706A15A: mov eax, dword ptr [eax] */ 3976 /* test eax, eax */ /* 0x4706A15C: test eax, eax */ 3977 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3978 _cf = 0; 3979 _flag_k = FK_TEST; 3980 if (TEST_Z(_flag_a, _flag_b)) goto L_4706A162; /* 0x4706A15E: je 0x4706a162 */ 3981 L_4706A160: 3982 edi = eax; /* 0x4706A160: mov edi, eax */ 3983 L_4706A162: 3984 RECOMP_ICALL(0x47039020u); /* 0x4706A162: call 0x47039020 */ /* not lifted */ 3985 RECOMP_FLAGS_IN(); 3986 esi = eax; /* 0x4706A167: mov esi, eax */ 3987 ecx = esi; /* 0x4706A169: mov ecx, esi */ 3988 RECOMP_ICALL(0x4703B210u); /* 0x4706A16B: call 0x4703b210 */ /* not lifted */ 3989 RECOMP_FLAGS_IN(); 3990 PUSH32(esp, eax); /* 0x4706A170: push eax */ 3991 ecx = esi; /* 0x4706A171: mov ecx, esi */ 3992 RECOMP_ICALL(0x4703B240u); /* 0x4706A173: call 0x4703b240 */ /* not lifted */ 3993 RECOMP_FLAGS_IN(); 3994 PUSH32(esp, eax); /* 0x4706A178: push eax */ 3995 ecx = esi; /* 0x4706A179: mov ecx, esi */ 3996 RECOMP_ICALL(0x4703B080u); /* 0x4706A17B: call 0x4703b080 */ /* not lifted */ 3997 RECOMP_FLAGS_IN(); 3998 PUSH32(esp, eax); /* 0x4706A180: push eax */ 3999 PUSH32(esp, edi); /* 0x4706A181: push edi */ 4000 PUSH32(esp, 0); /* 0x4706A182: push 0 */ 4001 PUSH32(esp, 0x375u); /* 0x4706A184: push 0x375 */ 4002 PUSH32(esp, 0x47109BA8u); /* 0x4706A189: push 0x47109ba8 */ 4003 ecx = esi; /* 0x4706A18E: mov ecx, esi */ 4004 RECOMP_ICALL(0x4703A340u); /* 0x4706A190: call 0x4703a340 */ /* not lifted */ 4005 RECOMP_FLAGS_IN(); 4006 PUSH32(esp, ebx); /* 0x4706A195: push ebx */ 4007 PUSH32(esp, 0x47109C90u); /* 0x4706A196: push 0x47109c90 */ 4008 PUSH32(esp, 4); /* 0x4706A19B: push 4 */ 4009 PUSH32(esp, esi); /* 0x4706A19D: push esi */ 4010 RECOMP_ICALL(0x47039830u); /* 0x4706A19E: call 0x47039830 */ /* not lifted */ 4011 RECOMP_FLAGS_IN(); 4012 edx = MEM32(esp + 0x2C); /* 0x4706A1A3: mov edx, dword ptr [esp + 0x2c] */ 4013 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4014 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4015 esp = esp + 0x10u; /* 0x4706A1A7: add esp, 0x10 */ 4016 _flag_k = FK_ADD; 4017 PUSH32(esp, edx); /* 0x4706A1AA: push edx */ 4018 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4706A1AB: call dword ptr [0x470ac190] */ 4019 RECOMP_FLAGS_IN(); 4020 eax = ebx; /* 0x4706A1B1: mov eax, ebx */ 4021 RECOMP_BACKEDGE(); 4022 goto L_4706A0B7; /* 0x4706A1B3: jmp 0x4706a0b7 */ 4023 L_4706A1B8: 4024 /* cmp ebx, MEM32(eax + 0xC) */ /* 0x4706A1B8: cmp ebx, dword ptr [eax + 0xc] */ 4025 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax + 0xC)); 4026 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4027 _flag_k = FK_CMP; 4028 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706A220; /* 0x4706A1BB: je 0x4706a220 */ 4029 L_4706A1BD: 4030 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4706A1BD: call dword ptr [0x470ac150] */ 4031 RECOMP_FLAGS_IN(); 4032 ebp = eax; /* 0x4706A1C3: mov ebp, eax */ 4033 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706A1C5: call dword ptr [0x470ac3c8] */ 4034 RECOMP_FLAGS_IN(); 4035 eax = MEM32(eax); /* 0x4706A1CB: mov eax, dword ptr [eax] */ 4036 /* test eax, eax */ /* 0x4706A1CD: test eax, eax */ 4037 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4038 _cf = 0; 4039 _flag_k = FK_TEST; 4040 if (TEST_Z(_flag_a, _flag_b)) goto L_4706A1D3; /* 0x4706A1CF: je 0x4706a1d3 */ 4041 L_4706A1D1: 4042 ebp = eax; /* 0x4706A1D1: mov ebp, eax */ 4043 L_4706A1D3: 4044 RECOMP_ICALL(0x47039020u); /* 0x4706A1D3: call 0x47039020 */ /* not lifted */ 4045 RECOMP_FLAGS_IN(); 4046 esi = eax; /* 0x4706A1D8: mov esi, eax */ 4047 ecx = esi; /* 0x4706A1DA: mov ecx, esi */ 4048 RECOMP_ICALL(0x4703B210u); /* 0x4706A1DC: call 0x4703b210 */ /* not lifted */ 4049 RECOMP_FLAGS_IN(); 4050 PUSH32(esp, eax); /* 0x4706A1E1: push eax */ 4051 ecx = esi; /* 0x4706A1E2: mov ecx, esi */ 4052 RECOMP_ICALL(0x4703B240u); /* 0x4706A1E4: call 0x4703b240 */ /* not lifted */ 4053 RECOMP_FLAGS_IN(); 4054 PUSH32(esp, eax); /* 0x4706A1E9: push eax */ 4055 ecx = esi; /* 0x4706A1EA: mov ecx, esi */ 4056 RECOMP_ICALL(0x4703B080u); /* 0x4706A1EC: call 0x4703b080 */ /* not lifted */ 4057 RECOMP_FLAGS_IN(); 4058 PUSH32(esp, eax); /* 0x4706A1F1: push eax */ 4059 PUSH32(esp, ebp); /* 0x4706A1F2: push ebp */ 4060 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706A1F3: push -1 */ 4061 PUSH32(esp, 0x37Cu); /* 0x4706A1F5: push 0x37c */ 4062 PUSH32(esp, 0x47109BA8u); /* 0x4706A1FA: push 0x47109ba8 */ 4063 ecx = esi; /* 0x4706A1FF: mov ecx, esi */ 4064 RECOMP_ICALL(0x4703A340u); /* 0x4706A201: call 0x4703a340 */ /* not lifted */ 4065 RECOMP_FLAGS_IN(); 4066 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706A206: push -1 */ 4067 PUSH32(esp, 0x47109C78u); /* 0x4706A208: push 0x47109c78 */ 4068 PUSH32(esp, 0x47104AA4u); /* 0x4706A20D: push 0x47104aa4 */ 4069 PUSH32(esp, 0x80u); /* 0x4706A212: push 0x80 */ 4070 PUSH32(esp, esi); /* 0x4706A217: push esi */ 4071 RECOMP_ICALL(0x47039830u); /* 0x4706A218: call 0x47039830 */ /* not lifted */ 4072 RECOMP_FLAGS_IN(); 4073 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 4074 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4075 esp = esp + 0x14u; /* 0x4706A21D: add esp, 0x14 */ 4076 _flag_k = FK_ADD; 4077 L_4706A220: 4078 eax = MEM32(esp + 0x3C); /* 0x4706A220: mov eax, dword ptr [esp + 0x3c] */ 4079 ecx = MEM32(eax); /* 0x4706A224: mov ecx, dword ptr [eax] */ 4080 esi = MEM32(esp + 0x10); /* 0x4706A226: mov esi, dword ptr [esp + 0x10] */ 4081 PUSH32(esp, ecx); /* 0x4706A22A: push ecx */ 4082 PUSH32(esp, esi); /* 0x4706A22B: push esi */ 4083 ecx = edi; /* 0x4706A22C: mov ecx, edi */ 4084 RECOMP_ICALL(0x4706A280u); /* 0x4706A22E: call 0x4706a280 */ /* not lifted */ 4085 RECOMP_FLAGS_IN(); 4086 PUSH32(esp, esi); /* 0x4706A233: push esi */ 4087 ecx = edi; /* 0x4706A234: mov ecx, edi */ 4088 RECOMP_ICALL(0x47069A80u); /* 0x4706A236: call 0x47069a80 */ /* not lifted */ 4089 RECOMP_FLAGS_IN(); 4090 L_4706A23B: 4091 edx = MEM32(esp + 0x1C); /* 0x4706A23B: mov edx, dword ptr [esp + 0x1c] */ 4092 PUSH32(esp, edx); /* 0x4706A23F: push edx */ 4093 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4706A240: call dword ptr [0x470ac190] */ 4094 RECOMP_FLAGS_IN(); 4095 eax = ebx; /* 0x4706A246: mov eax, ebx */ 4096 RECOMP_BACKEDGE(); 4097 goto L_4706A0B7; /* 0x4706A248: jmp 0x4706a0b7 */ 4098 { RECOMP_REGS_OUT(); return; } /* end of function */ 4099 RECOMP_REGS_OUT(); 4100 } 4101 4102 void sub_4706A0AE(void) { 4103 int _fpu_cmp = 0; 4104 uint32_t _cf = 0; 4105 int _df = 1; 4106 uint32_t _flag_k = FK_NONE; 4107 uint32_t _flag_a = 0, _flag_b = 0; 4108 uint32_t _itail_tgt = 0; 4109 RECOMP_REGS_LOCALS 4110 RECOMP_ENTER(0x4706A0AEu); 4111 4112 L_4706A0AE: 4113 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4706A0AE: call dword ptr [0x470ac190] */ 4114 RECOMP_FLAGS_IN(); 4115 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4116 eax = eax | 0xFFFFFFFFu; /* 0x4706A0B4: or eax, 0xffffffff */ 4117 _cf = 0; 4118 _flag_k = FK_TEST; 4119 ecx = MEM32(esp + 0x24); /* 0x4706A0B7: mov ecx, dword ptr [esp + 0x24] */ 4120 edi = POP32_VAL(esp); /* 0x4706A0BB: pop edi */ 4121 esi = POP32_VAL(esp); /* 0x4706A0BC: pop esi */ 4122 ebp = POP32_VAL(esp); /* 0x4706A0BD: pop ebp */ 4123 ebx = POP32_VAL(esp); /* 0x4706A0BE: pop ebx */ 4124 MEM32(FS_BASE + (0)) = ecx; /* 0x4706A0BF: mov dword ptr fs:[0], ecx */ 4125 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 4126 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4127 esp = esp + 0x20u; /* 0x4706A0C6: add esp, 0x20 */ 4128 _flag_k = FK_ADD; 4129 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4706A0C9: ret 0xc */ 4130 RECOMP_REGS_OUT(); 4131 } 4132 4133 void sub_4706A0B7(void) { 4134 int _fpu_cmp = 0; 4135 uint32_t _cf = 0; 4136 int _df = 1; 4137 uint32_t _flag_k = FK_NONE; 4138 uint32_t _flag_a = 0, _flag_b = 0; 4139 uint32_t _itail_tgt = 0; 4140 RECOMP_REGS_LOCALS 4141 RECOMP_ENTER(0x4706A0B7u); 4142 4143 L_4706A0B7: 4144 ecx = MEM32(esp + 0x24); /* 0x4706A0B7: mov ecx, dword ptr [esp + 0x24] */ 4145 edi = POP32_VAL(esp); /* 0x4706A0BB: pop edi */ 4146 esi = POP32_VAL(esp); /* 0x4706A0BC: pop esi */ 4147 ebp = POP32_VAL(esp); /* 0x4706A0BD: pop ebp */ 4148 ebx = POP32_VAL(esp); /* 0x4706A0BE: pop ebx */ 4149 MEM32(FS_BASE + (0)) = ecx; /* 0x4706A0BF: mov dword ptr fs:[0], ecx */ 4150 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 4151 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4152 esp = esp + 0x20u; /* 0x4706A0C6: add esp, 0x20 */ 4153 _flag_k = FK_ADD; 4154 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4706A0C9: ret 0xc */ 4155 RECOMP_REGS_OUT(); 4156 } 4157 4158 void sub_4706A0FE(void) { 4159 int _fpu_cmp = 0; 4160 uint32_t _cf = 0; 4161 int _df = 1; 4162 uint32_t _flag_k = FK_NONE; 4163 uint32_t _flag_a = 0, _flag_b = 0; 4164 uint32_t _itail_tgt = 0; 4165 RECOMP_REGS_LOCALS 4166 RECOMP_ENTER(0x4706A0FEu); 4167 4168 goto L_4706A0FE; 4169 L_4706A0B7: 4170 ecx = MEM32(esp + 0x24); /* 0x4706A0B7: mov ecx, dword ptr [esp + 0x24] */ 4171 edi = POP32_VAL(esp); /* 0x4706A0BB: pop edi */ 4172 esi = POP32_VAL(esp); /* 0x4706A0BC: pop esi */ 4173 ebp = POP32_VAL(esp); /* 0x4706A0BD: pop ebp */ 4174 ebx = POP32_VAL(esp); /* 0x4706A0BE: pop ebx */ 4175 MEM32(FS_BASE + (0)) = ecx; /* 0x4706A0BF: mov dword ptr fs:[0], ecx */ 4176 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 4177 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4178 esp = esp + 0x20u; /* 0x4706A0C6: add esp, 0x20 */ 4179 _flag_k = FK_ADD; 4180 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4706A0C9: ret 0xc */ 4181 L_4706A0FE: 4182 PUSH32(esp, ebp); /* 0x4706A0FE: push ebp */ 4183 RECOMP_ICALL(0x470A32A2u); /* 0x4706A0FF: call 0x470a32a2 */ /* not lifted */ 4184 RECOMP_FLAGS_IN(); 4185 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4186 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4187 esp = esp + 4; /* 0x4706A104: add esp, 4 */ 4188 _flag_k = FK_ADD; 4189 /* cmp ebx, 0xFFFFFFFFu */ /* 0x4706A107: cmp ebx, -1 */ 4190 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFFu); 4191 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4192 _flag_k = FK_CMP; 4193 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706A23B; /* 0x4706A10A: je 0x4706a23b */ 4194 L_4706A110: 4195 /* test ebx, ebx */ /* 0x4706A110: test ebx, ebx */ 4196 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 4197 _cf = 0; 4198 _flag_k = FK_TEST; 4199 if (TEST_Z(_flag_a, _flag_b)) goto L_4706A23B; /* 0x4706A112: je 0x4706a23b */ 4200 L_4706A118: 4201 eax = MEM32(esp + 0x14); /* 0x4706A118: mov eax, dword ptr [esp + 0x14] */ 4202 /* test eax, eax */ /* 0x4706A11C: test eax, eax */ 4203 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4204 _cf = 0; 4205 _flag_k = FK_TEST; 4206 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706A1B8; /* 0x4706A11E: jne 0x4706a1b8 */ 4207 L_4706A124: 4208 edx = MEM32(edi + 0x14); /* 0x4706A124: mov edx, dword ptr [edi + 0x14] */ 4209 /* test edx, edx */ /* 0x4706A127: test edx, edx */ 4210 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 4211 _cf = 0; 4212 _flag_k = FK_TEST; 4213 if (TEST_Z(_flag_a, _flag_b)) goto L_4706A14C; /* 0x4706A129: jbe 0x4706a14c */ 4214 L_4706A12B: 4215 ecx = MEM32(edi + 0xC); /* 0x4706A12B: mov ecx, dword ptr [edi + 0xc] */ 4216 L_4706A12E: 4217 esi = MEM32(ecx); /* 0x4706A12E: mov esi, dword ptr [ecx] */ 4218 /* cmp ebx, MEM32(esi + 0xC) */ /* 0x4706A130: cmp ebx, dword ptr [esi + 0xc] */ 4219 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0xC)); 4220 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4221 _flag_k = FK_CMP; 4222 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706A13F; /* 0x4706A133: je 0x4706a13f */ 4223 L_4706A135: 4224 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4225 eax = eax + 1; /* 0x4706A135: inc eax */ 4226 _flag_k = FK_INC; 4227 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 4228 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4229 ecx = ecx + 8; /* 0x4706A136: add ecx, 8 */ 4230 _flag_k = FK_ADD; 4231 /* cmp eax, edx */ /* 0x4706A139: cmp eax, edx */ 4232 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4233 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4234 _flag_k = FK_CMP; 4235 RECOMP_BACKEDGE(); 4236 if (CMP_B(_flag_a, _flag_b)) goto L_4706A12E; /* 0x4706A13B: jb 0x4706a12e */ 4237 L_4706A13D: 4238 goto L_4706A14C; /* 0x4706A13D: jmp 0x4706a14c */ 4239 L_4706A13F: 4240 /* cmp eax, 0xFFFFFFFFu */ /* 0x4706A13F: cmp eax, -1 */ 4241 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 4242 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4243 _flag_k = FK_CMP; 4244 MEM32(esp + 0x10) = eax; /* 0x4706A142: mov dword ptr [esp + 0x10], eax */ 4245 if (CMP_NE(_flag_a, _flag_b)) goto L_4706A220; /* 0x4706A146: jne 0x4706a220 */ 4246 L_4706A14C: 4247 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4706A14C: call dword ptr [0x470ac150] */ 4248 RECOMP_FLAGS_IN(); 4249 edi = eax; /* 0x4706A152: mov edi, eax */ 4250 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706A154: call dword ptr [0x470ac3c8] */ 4251 RECOMP_FLAGS_IN(); 4252 eax = MEM32(eax); /* 0x4706A15A: mov eax, dword ptr [eax] */ 4253 /* test eax, eax */ /* 0x4706A15C: test eax, eax */ 4254 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4255 _cf = 0; 4256 _flag_k = FK_TEST; 4257 if (TEST_Z(_flag_a, _flag_b)) goto L_4706A162; /* 0x4706A15E: je 0x4706a162 */ 4258 L_4706A160: 4259 edi = eax; /* 0x4706A160: mov edi, eax */ 4260 L_4706A162: 4261 RECOMP_ICALL(0x47039020u); /* 0x4706A162: call 0x47039020 */ /* not lifted */ 4262 RECOMP_FLAGS_IN(); 4263 esi = eax; /* 0x4706A167: mov esi, eax */ 4264 ecx = esi; /* 0x4706A169: mov ecx, esi */ 4265 RECOMP_ICALL(0x4703B210u); /* 0x4706A16B: call 0x4703b210 */ /* not lifted */ 4266 RECOMP_FLAGS_IN(); 4267 PUSH32(esp, eax); /* 0x4706A170: push eax */ 4268 ecx = esi; /* 0x4706A171: mov ecx, esi */ 4269 RECOMP_ICALL(0x4703B240u); /* 0x4706A173: call 0x4703b240 */ /* not lifted */ 4270 RECOMP_FLAGS_IN(); 4271 PUSH32(esp, eax); /* 0x4706A178: push eax */ 4272 ecx = esi; /* 0x4706A179: mov ecx, esi */ 4273 RECOMP_ICALL(0x4703B080u); /* 0x4706A17B: call 0x4703b080 */ /* not lifted */ 4274 RECOMP_FLAGS_IN(); 4275 PUSH32(esp, eax); /* 0x4706A180: push eax */ 4276 PUSH32(esp, edi); /* 0x4706A181: push edi */ 4277 PUSH32(esp, 0); /* 0x4706A182: push 0 */ 4278 PUSH32(esp, 0x375u); /* 0x4706A184: push 0x375 */ 4279 PUSH32(esp, 0x47109BA8u); /* 0x4706A189: push 0x47109ba8 */ 4280 ecx = esi; /* 0x4706A18E: mov ecx, esi */ 4281 RECOMP_ICALL(0x4703A340u); /* 0x4706A190: call 0x4703a340 */ /* not lifted */ 4282 RECOMP_FLAGS_IN(); 4283 PUSH32(esp, ebx); /* 0x4706A195: push ebx */ 4284 PUSH32(esp, 0x47109C90u); /* 0x4706A196: push 0x47109c90 */ 4285 PUSH32(esp, 4); /* 0x4706A19B: push 4 */ 4286 PUSH32(esp, esi); /* 0x4706A19D: push esi */ 4287 RECOMP_ICALL(0x47039830u); /* 0x4706A19E: call 0x47039830 */ /* not lifted */ 4288 RECOMP_FLAGS_IN(); 4289 edx = MEM32(esp + 0x2C); /* 0x4706A1A3: mov edx, dword ptr [esp + 0x2c] */ 4290 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4291 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4292 esp = esp + 0x10u; /* 0x4706A1A7: add esp, 0x10 */ 4293 _flag_k = FK_ADD; 4294 PUSH32(esp, edx); /* 0x4706A1AA: push edx */ 4295 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4706A1AB: call dword ptr [0x470ac190] */ 4296 RECOMP_FLAGS_IN(); 4297 eax = ebx; /* 0x4706A1B1: mov eax, ebx */ 4298 RECOMP_BACKEDGE(); 4299 goto L_4706A0B7; /* 0x4706A1B3: jmp 0x4706a0b7 */ 4300 L_4706A1B8: 4301 /* cmp ebx, MEM32(eax + 0xC) */ /* 0x4706A1B8: cmp ebx, dword ptr [eax + 0xc] */ 4302 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax + 0xC)); 4303 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4304 _flag_k = FK_CMP; 4305 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706A220; /* 0x4706A1BB: je 0x4706a220 */ 4306 L_4706A1BD: 4307 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4706A1BD: call dword ptr [0x470ac150] */ 4308 RECOMP_FLAGS_IN(); 4309 ebp = eax; /* 0x4706A1C3: mov ebp, eax */ 4310 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706A1C5: call dword ptr [0x470ac3c8] */ 4311 RECOMP_FLAGS_IN(); 4312 eax = MEM32(eax); /* 0x4706A1CB: mov eax, dword ptr [eax] */ 4313 /* test eax, eax */ /* 0x4706A1CD: test eax, eax */ 4314 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4315 _cf = 0; 4316 _flag_k = FK_TEST; 4317 if (TEST_Z(_flag_a, _flag_b)) goto L_4706A1D3; /* 0x4706A1CF: je 0x4706a1d3 */ 4318 L_4706A1D1: 4319 ebp = eax; /* 0x4706A1D1: mov ebp, eax */ 4320 L_4706A1D3: 4321 RECOMP_ICALL(0x47039020u); /* 0x4706A1D3: call 0x47039020 */ /* not lifted */ 4322 RECOMP_FLAGS_IN(); 4323 esi = eax; /* 0x4706A1D8: mov esi, eax */ 4324 ecx = esi; /* 0x4706A1DA: mov ecx, esi */ 4325 RECOMP_ICALL(0x4703B210u); /* 0x4706A1DC: call 0x4703b210 */ /* not lifted */ 4326 RECOMP_FLAGS_IN(); 4327 PUSH32(esp, eax); /* 0x4706A1E1: push eax */ 4328 ecx = esi; /* 0x4706A1E2: mov ecx, esi */ 4329 RECOMP_ICALL(0x4703B240u); /* 0x4706A1E4: call 0x4703b240 */ /* not lifted */ 4330 RECOMP_FLAGS_IN(); 4331 PUSH32(esp, eax); /* 0x4706A1E9: push eax */ 4332 ecx = esi; /* 0x4706A1EA: mov ecx, esi */ 4333 RECOMP_ICALL(0x4703B080u); /* 0x4706A1EC: call 0x4703b080 */ /* not lifted */ 4334 RECOMP_FLAGS_IN(); 4335 PUSH32(esp, eax); /* 0x4706A1F1: push eax */ 4336 PUSH32(esp, ebp); /* 0x4706A1F2: push ebp */ 4337 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706A1F3: push -1 */ 4338 PUSH32(esp, 0x37Cu); /* 0x4706A1F5: push 0x37c */ 4339 PUSH32(esp, 0x47109BA8u); /* 0x4706A1FA: push 0x47109ba8 */ 4340 ecx = esi; /* 0x4706A1FF: mov ecx, esi */ 4341 RECOMP_ICALL(0x4703A340u); /* 0x4706A201: call 0x4703a340 */ /* not lifted */ 4342 RECOMP_FLAGS_IN(); 4343 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706A206: push -1 */ 4344 PUSH32(esp, 0x47109C78u); /* 0x4706A208: push 0x47109c78 */ 4345 PUSH32(esp, 0x47104AA4u); /* 0x4706A20D: push 0x47104aa4 */ 4346 PUSH32(esp, 0x80u); /* 0x4706A212: push 0x80 */ 4347 PUSH32(esp, esi); /* 0x4706A217: push esi */ 4348 RECOMP_ICALL(0x47039830u); /* 0x4706A218: call 0x47039830 */ /* not lifted */ 4349 RECOMP_FLAGS_IN(); 4350 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 4351 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4352 esp = esp + 0x14u; /* 0x4706A21D: add esp, 0x14 */ 4353 _flag_k = FK_ADD; 4354 L_4706A220: 4355 eax = MEM32(esp + 0x3C); /* 0x4706A220: mov eax, dword ptr [esp + 0x3c] */ 4356 ecx = MEM32(eax); /* 0x4706A224: mov ecx, dword ptr [eax] */ 4357 esi = MEM32(esp + 0x10); /* 0x4706A226: mov esi, dword ptr [esp + 0x10] */ 4358 PUSH32(esp, ecx); /* 0x4706A22A: push ecx */ 4359 PUSH32(esp, esi); /* 0x4706A22B: push esi */ 4360 ecx = edi; /* 0x4706A22C: mov ecx, edi */ 4361 RECOMP_ICALL(0x4706A280u); /* 0x4706A22E: call 0x4706a280 */ /* not lifted */ 4362 RECOMP_FLAGS_IN(); 4363 PUSH32(esp, esi); /* 0x4706A233: push esi */ 4364 ecx = edi; /* 0x4706A234: mov ecx, edi */ 4365 RECOMP_ICALL(0x47069A80u); /* 0x4706A236: call 0x47069a80 */ /* not lifted */ 4366 RECOMP_FLAGS_IN(); 4367 L_4706A23B: 4368 edx = MEM32(esp + 0x1C); /* 0x4706A23B: mov edx, dword ptr [esp + 0x1c] */ 4369 PUSH32(esp, edx); /* 0x4706A23F: push edx */ 4370 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4706A240: call dword ptr [0x470ac190] */ 4371 RECOMP_FLAGS_IN(); 4372 eax = ebx; /* 0x4706A246: mov eax, ebx */ 4373 RECOMP_BACKEDGE(); 4374 goto L_4706A0B7; /* 0x4706A248: jmp 0x4706a0b7 */ 4375 { RECOMP_REGS_OUT(); return; } /* end of function */ 4376 RECOMP_REGS_OUT(); 4377 } 4378 4379 void sub_4706A107(void) { 4380 int _fpu_cmp = 0; 4381 uint32_t _cf = 0; 4382 int _df = 1; 4383 uint32_t _flag_k = FK_NONE; 4384 uint32_t _flag_a = 0, _flag_b = 0; 4385 uint32_t _itail_tgt = 0; 4386 RECOMP_REGS_LOCALS 4387 RECOMP_ENTER(0x4706A107u); 4388 4389 goto L_4706A107; 4390 L_4706A0B7: 4391 ecx = MEM32(esp + 0x24); /* 0x4706A0B7: mov ecx, dword ptr [esp + 0x24] */ 4392 edi = POP32_VAL(esp); /* 0x4706A0BB: pop edi */ 4393 esi = POP32_VAL(esp); /* 0x4706A0BC: pop esi */ 4394 ebp = POP32_VAL(esp); /* 0x4706A0BD: pop ebp */ 4395 ebx = POP32_VAL(esp); /* 0x4706A0BE: pop ebx */ 4396 MEM32(FS_BASE + (0)) = ecx; /* 0x4706A0BF: mov dword ptr fs:[0], ecx */ 4397 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 4398 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4399 esp = esp + 0x20u; /* 0x4706A0C6: add esp, 0x20 */ 4400 _flag_k = FK_ADD; 4401 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4706A0C9: ret 0xc */ 4402 L_4706A107: 4403 /* cmp ebx, 0xFFFFFFFFu */ /* 0x4706A107: cmp ebx, -1 */ 4404 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFFu); 4405 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4406 _flag_k = FK_CMP; 4407 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706A23B; /* 0x4706A10A: je 0x4706a23b */ 4408 L_4706A110: 4409 /* test ebx, ebx */ /* 0x4706A110: test ebx, ebx */ 4410 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 4411 _cf = 0; 4412 _flag_k = FK_TEST; 4413 if (TEST_Z(_flag_a, _flag_b)) goto L_4706A23B; /* 0x4706A112: je 0x4706a23b */ 4414 L_4706A118: 4415 eax = MEM32(esp + 0x14); /* 0x4706A118: mov eax, dword ptr [esp + 0x14] */ 4416 /* test eax, eax */ /* 0x4706A11C: test eax, eax */ 4417 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4418 _cf = 0; 4419 _flag_k = FK_TEST; 4420 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706A1B8; /* 0x4706A11E: jne 0x4706a1b8 */ 4421 L_4706A124: 4422 edx = MEM32(edi + 0x14); /* 0x4706A124: mov edx, dword ptr [edi + 0x14] */ 4423 /* test edx, edx */ /* 0x4706A127: test edx, edx */ 4424 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 4425 _cf = 0; 4426 _flag_k = FK_TEST; 4427 if (TEST_Z(_flag_a, _flag_b)) goto L_4706A14C; /* 0x4706A129: jbe 0x4706a14c */ 4428 L_4706A12B: 4429 ecx = MEM32(edi + 0xC); /* 0x4706A12B: mov ecx, dword ptr [edi + 0xc] */ 4430 L_4706A12E: 4431 esi = MEM32(ecx); /* 0x4706A12E: mov esi, dword ptr [ecx] */ 4432 /* cmp ebx, MEM32(esi + 0xC) */ /* 0x4706A130: cmp ebx, dword ptr [esi + 0xc] */ 4433 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0xC)); 4434 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4435 _flag_k = FK_CMP; 4436 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706A13F; /* 0x4706A133: je 0x4706a13f */ 4437 L_4706A135: 4438 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4439 eax = eax + 1; /* 0x4706A135: inc eax */ 4440 _flag_k = FK_INC; 4441 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 4442 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4443 ecx = ecx + 8; /* 0x4706A136: add ecx, 8 */ 4444 _flag_k = FK_ADD; 4445 /* cmp eax, edx */ /* 0x4706A139: cmp eax, edx */ 4446 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4447 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4448 _flag_k = FK_CMP; 4449 RECOMP_BACKEDGE(); 4450 if (CMP_B(_flag_a, _flag_b)) goto L_4706A12E; /* 0x4706A13B: jb 0x4706a12e */ 4451 L_4706A13D: 4452 goto L_4706A14C; /* 0x4706A13D: jmp 0x4706a14c */ 4453 L_4706A13F: 4454 /* cmp eax, 0xFFFFFFFFu */ /* 0x4706A13F: cmp eax, -1 */ 4455 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 4456 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4457 _flag_k = FK_CMP; 4458 MEM32(esp + 0x10) = eax; /* 0x4706A142: mov dword ptr [esp + 0x10], eax */ 4459 if (CMP_NE(_flag_a, _flag_b)) goto L_4706A220; /* 0x4706A146: jne 0x4706a220 */ 4460 L_4706A14C: 4461 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4706A14C: call dword ptr [0x470ac150] */ 4462 RECOMP_FLAGS_IN(); 4463 edi = eax; /* 0x4706A152: mov edi, eax */ 4464 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706A154: call dword ptr [0x470ac3c8] */ 4465 RECOMP_FLAGS_IN(); 4466 eax = MEM32(eax); /* 0x4706A15A: mov eax, dword ptr [eax] */ 4467 /* test eax, eax */ /* 0x4706A15C: test eax, eax */ 4468 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4469 _cf = 0; 4470 _flag_k = FK_TEST; 4471 if (TEST_Z(_flag_a, _flag_b)) goto L_4706A162; /* 0x4706A15E: je 0x4706a162 */ 4472 L_4706A160: 4473 edi = eax; /* 0x4706A160: mov edi, eax */ 4474 L_4706A162: 4475 RECOMP_ICALL(0x47039020u); /* 0x4706A162: call 0x47039020 */ /* not lifted */ 4476 RECOMP_FLAGS_IN(); 4477 esi = eax; /* 0x4706A167: mov esi, eax */ 4478 ecx = esi; /* 0x4706A169: mov ecx, esi */ 4479 RECOMP_ICALL(0x4703B210u); /* 0x4706A16B: call 0x4703b210 */ /* not lifted */ 4480 RECOMP_FLAGS_IN(); 4481 PUSH32(esp, eax); /* 0x4706A170: push eax */ 4482 ecx = esi; /* 0x4706A171: mov ecx, esi */ 4483 RECOMP_ICALL(0x4703B240u); /* 0x4706A173: call 0x4703b240 */ /* not lifted */ 4484 RECOMP_FLAGS_IN(); 4485 PUSH32(esp, eax); /* 0x4706A178: push eax */ 4486 ecx = esi; /* 0x4706A179: mov ecx, esi */ 4487 RECOMP_ICALL(0x4703B080u); /* 0x4706A17B: call 0x4703b080 */ /* not lifted */ 4488 RECOMP_FLAGS_IN(); 4489 PUSH32(esp, eax); /* 0x4706A180: push eax */ 4490 PUSH32(esp, edi); /* 0x4706A181: push edi */ 4491 PUSH32(esp, 0); /* 0x4706A182: push 0 */ 4492 PUSH32(esp, 0x375u); /* 0x4706A184: push 0x375 */ 4493 PUSH32(esp, 0x47109BA8u); /* 0x4706A189: push 0x47109ba8 */ 4494 ecx = esi; /* 0x4706A18E: mov ecx, esi */ 4495 RECOMP_ICALL(0x4703A340u); /* 0x4706A190: call 0x4703a340 */ /* not lifted */ 4496 RECOMP_FLAGS_IN(); 4497 PUSH32(esp, ebx); /* 0x4706A195: push ebx */ 4498 PUSH32(esp, 0x47109C90u); /* 0x4706A196: push 0x47109c90 */ 4499 PUSH32(esp, 4); /* 0x4706A19B: push 4 */ 4500 PUSH32(esp, esi); /* 0x4706A19D: push esi */ 4501 RECOMP_ICALL(0x47039830u); /* 0x4706A19E: call 0x47039830 */ /* not lifted */ 4502 RECOMP_FLAGS_IN(); 4503 edx = MEM32(esp + 0x2C); /* 0x4706A1A3: mov edx, dword ptr [esp + 0x2c] */ 4504 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4505 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4506 esp = esp + 0x10u; /* 0x4706A1A7: add esp, 0x10 */ 4507 _flag_k = FK_ADD; 4508 PUSH32(esp, edx); /* 0x4706A1AA: push edx */ 4509 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4706A1AB: call dword ptr [0x470ac190] */ 4510 RECOMP_FLAGS_IN(); 4511 eax = ebx; /* 0x4706A1B1: mov eax, ebx */ 4512 RECOMP_BACKEDGE(); 4513 goto L_4706A0B7; /* 0x4706A1B3: jmp 0x4706a0b7 */ 4514 L_4706A1B8: 4515 /* cmp ebx, MEM32(eax + 0xC) */ /* 0x4706A1B8: cmp ebx, dword ptr [eax + 0xc] */ 4516 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax + 0xC)); 4517 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4518 _flag_k = FK_CMP; 4519 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706A220; /* 0x4706A1BB: je 0x4706a220 */ 4520 L_4706A1BD: 4521 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4706A1BD: call dword ptr [0x470ac150] */ 4522 RECOMP_FLAGS_IN(); 4523 ebp = eax; /* 0x4706A1C3: mov ebp, eax */ 4524 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706A1C5: call dword ptr [0x470ac3c8] */ 4525 RECOMP_FLAGS_IN(); 4526 eax = MEM32(eax); /* 0x4706A1CB: mov eax, dword ptr [eax] */ 4527 /* test eax, eax */ /* 0x4706A1CD: test eax, eax */ 4528 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4529 _cf = 0; 4530 _flag_k = FK_TEST; 4531 if (TEST_Z(_flag_a, _flag_b)) goto L_4706A1D3; /* 0x4706A1CF: je 0x4706a1d3 */ 4532 L_4706A1D1: 4533 ebp = eax; /* 0x4706A1D1: mov ebp, eax */ 4534 L_4706A1D3: 4535 RECOMP_ICALL(0x47039020u); /* 0x4706A1D3: call 0x47039020 */ /* not lifted */ 4536 RECOMP_FLAGS_IN(); 4537 esi = eax; /* 0x4706A1D8: mov esi, eax */ 4538 ecx = esi; /* 0x4706A1DA: mov ecx, esi */ 4539 RECOMP_ICALL(0x4703B210u); /* 0x4706A1DC: call 0x4703b210 */ /* not lifted */ 4540 RECOMP_FLAGS_IN(); 4541 PUSH32(esp, eax); /* 0x4706A1E1: push eax */ 4542 ecx = esi; /* 0x4706A1E2: mov ecx, esi */ 4543 RECOMP_ICALL(0x4703B240u); /* 0x4706A1E4: call 0x4703b240 */ /* not lifted */ 4544 RECOMP_FLAGS_IN(); 4545 PUSH32(esp, eax); /* 0x4706A1E9: push eax */ 4546 ecx = esi; /* 0x4706A1EA: mov ecx, esi */ 4547 RECOMP_ICALL(0x4703B080u); /* 0x4706A1EC: call 0x4703b080 */ /* not lifted */ 4548 RECOMP_FLAGS_IN(); 4549 PUSH32(esp, eax); /* 0x4706A1F1: push eax */ 4550 PUSH32(esp, ebp); /* 0x4706A1F2: push ebp */ 4551 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706A1F3: push -1 */ 4552 PUSH32(esp, 0x37Cu); /* 0x4706A1F5: push 0x37c */ 4553 PUSH32(esp, 0x47109BA8u); /* 0x4706A1FA: push 0x47109ba8 */ 4554 ecx = esi; /* 0x4706A1FF: mov ecx, esi */ 4555 RECOMP_ICALL(0x4703A340u); /* 0x4706A201: call 0x4703a340 */ /* not lifted */ 4556 RECOMP_FLAGS_IN(); 4557 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706A206: push -1 */ 4558 PUSH32(esp, 0x47109C78u); /* 0x4706A208: push 0x47109c78 */ 4559 PUSH32(esp, 0x47104AA4u); /* 0x4706A20D: push 0x47104aa4 */ 4560 PUSH32(esp, 0x80u); /* 0x4706A212: push 0x80 */ 4561 PUSH32(esp, esi); /* 0x4706A217: push esi */ 4562 RECOMP_ICALL(0x47039830u); /* 0x4706A218: call 0x47039830 */ /* not lifted */ 4563 RECOMP_FLAGS_IN(); 4564 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 4565 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4566 esp = esp + 0x14u; /* 0x4706A21D: add esp, 0x14 */ 4567 _flag_k = FK_ADD; 4568 L_4706A220: 4569 eax = MEM32(esp + 0x3C); /* 0x4706A220: mov eax, dword ptr [esp + 0x3c] */ 4570 ecx = MEM32(eax); /* 0x4706A224: mov ecx, dword ptr [eax] */ 4571 esi = MEM32(esp + 0x10); /* 0x4706A226: mov esi, dword ptr [esp + 0x10] */ 4572 PUSH32(esp, ecx); /* 0x4706A22A: push ecx */ 4573 PUSH32(esp, esi); /* 0x4706A22B: push esi */ 4574 ecx = edi; /* 0x4706A22C: mov ecx, edi */ 4575 RECOMP_ICALL(0x4706A280u); /* 0x4706A22E: call 0x4706a280 */ /* not lifted */ 4576 RECOMP_FLAGS_IN(); 4577 PUSH32(esp, esi); /* 0x4706A233: push esi */ 4578 ecx = edi; /* 0x4706A234: mov ecx, edi */ 4579 RECOMP_ICALL(0x47069A80u); /* 0x4706A236: call 0x47069a80 */ /* not lifted */ 4580 RECOMP_FLAGS_IN(); 4581 L_4706A23B: 4582 edx = MEM32(esp + 0x1C); /* 0x4706A23B: mov edx, dword ptr [esp + 0x1c] */ 4583 PUSH32(esp, edx); /* 0x4706A23F: push edx */ 4584 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4706A240: call dword ptr [0x470ac190] */ 4585 RECOMP_FLAGS_IN(); 4586 eax = ebx; /* 0x4706A246: mov eax, ebx */ 4587 RECOMP_BACKEDGE(); 4588 goto L_4706A0B7; /* 0x4706A248: jmp 0x4706a0b7 */ 4589 { RECOMP_REGS_OUT(); return; } /* end of function */ 4590 RECOMP_REGS_OUT(); 4591 } 4592 4593 void sub_4706A14C(void) { 4594 int _fpu_cmp = 0; 4595 uint32_t _cf = 0; 4596 int _df = 1; 4597 uint32_t _flag_k = FK_NONE; 4598 uint32_t _flag_a = 0, _flag_b = 0; 4599 uint32_t _itail_tgt = 0; 4600 RECOMP_REGS_LOCALS 4601 RECOMP_ENTER(0x4706A14Cu); 4602 4603 goto L_4706A14C; 4604 L_4706A0B7: 4605 ecx = MEM32(esp + 0x24); /* 0x4706A0B7: mov ecx, dword ptr [esp + 0x24] */ 4606 edi = POP32_VAL(esp); /* 0x4706A0BB: pop edi */ 4607 esi = POP32_VAL(esp); /* 0x4706A0BC: pop esi */ 4608 ebp = POP32_VAL(esp); /* 0x4706A0BD: pop ebp */ 4609 ebx = POP32_VAL(esp); /* 0x4706A0BE: pop ebx */ 4610 MEM32(FS_BASE + (0)) = ecx; /* 0x4706A0BF: mov dword ptr fs:[0], ecx */ 4611 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 4612 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4613 esp = esp + 0x20u; /* 0x4706A0C6: add esp, 0x20 */ 4614 _flag_k = FK_ADD; 4615 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4706A0C9: ret 0xc */ 4616 L_4706A14C: 4617 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4706A14C: call dword ptr [0x470ac150] */ 4618 RECOMP_FLAGS_IN(); 4619 edi = eax; /* 0x4706A152: mov edi, eax */ 4620 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706A154: call dword ptr [0x470ac3c8] */ 4621 RECOMP_FLAGS_IN(); 4622 eax = MEM32(eax); /* 0x4706A15A: mov eax, dword ptr [eax] */ 4623 /* test eax, eax */ /* 0x4706A15C: test eax, eax */ 4624 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4625 _cf = 0; 4626 _flag_k = FK_TEST; 4627 if (TEST_Z(_flag_a, _flag_b)) goto L_4706A162; /* 0x4706A15E: je 0x4706a162 */ 4628 L_4706A160: 4629 edi = eax; /* 0x4706A160: mov edi, eax */ 4630 L_4706A162: 4631 RECOMP_ICALL(0x47039020u); /* 0x4706A162: call 0x47039020 */ /* not lifted */ 4632 RECOMP_FLAGS_IN(); 4633 esi = eax; /* 0x4706A167: mov esi, eax */ 4634 ecx = esi; /* 0x4706A169: mov ecx, esi */ 4635 RECOMP_ICALL(0x4703B210u); /* 0x4706A16B: call 0x4703b210 */ /* not lifted */ 4636 RECOMP_FLAGS_IN(); 4637 PUSH32(esp, eax); /* 0x4706A170: push eax */ 4638 ecx = esi; /* 0x4706A171: mov ecx, esi */ 4639 RECOMP_ICALL(0x4703B240u); /* 0x4706A173: call 0x4703b240 */ /* not lifted */ 4640 RECOMP_FLAGS_IN(); 4641 PUSH32(esp, eax); /* 0x4706A178: push eax */ 4642 ecx = esi; /* 0x4706A179: mov ecx, esi */ 4643 RECOMP_ICALL(0x4703B080u); /* 0x4706A17B: call 0x4703b080 */ /* not lifted */ 4644 RECOMP_FLAGS_IN(); 4645 PUSH32(esp, eax); /* 0x4706A180: push eax */ 4646 PUSH32(esp, edi); /* 0x4706A181: push edi */ 4647 PUSH32(esp, 0); /* 0x4706A182: push 0 */ 4648 PUSH32(esp, 0x375u); /* 0x4706A184: push 0x375 */ 4649 PUSH32(esp, 0x47109BA8u); /* 0x4706A189: push 0x47109ba8 */ 4650 ecx = esi; /* 0x4706A18E: mov ecx, esi */ 4651 RECOMP_ICALL(0x4703A340u); /* 0x4706A190: call 0x4703a340 */ /* not lifted */ 4652 RECOMP_FLAGS_IN(); 4653 PUSH32(esp, ebx); /* 0x4706A195: push ebx */ 4654 PUSH32(esp, 0x47109C90u); /* 0x4706A196: push 0x47109c90 */ 4655 PUSH32(esp, 4); /* 0x4706A19B: push 4 */ 4656 PUSH32(esp, esi); /* 0x4706A19D: push esi */ 4657 RECOMP_ICALL(0x47039830u); /* 0x4706A19E: call 0x47039830 */ /* not lifted */ 4658 RECOMP_FLAGS_IN(); 4659 edx = MEM32(esp + 0x2C); /* 0x4706A1A3: mov edx, dword ptr [esp + 0x2c] */ 4660 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4661 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4662 esp = esp + 0x10u; /* 0x4706A1A7: add esp, 0x10 */ 4663 _flag_k = FK_ADD; 4664 PUSH32(esp, edx); /* 0x4706A1AA: push edx */ 4665 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4706A1AB: call dword ptr [0x470ac190] */ 4666 RECOMP_FLAGS_IN(); 4667 eax = ebx; /* 0x4706A1B1: mov eax, ebx */ 4668 RECOMP_BACKEDGE(); 4669 goto L_4706A0B7; /* 0x4706A1B3: jmp 0x4706a0b7 */ 4670 { RECOMP_REGS_OUT(); return; } /* end of function */ 4671 RECOMP_REGS_OUT(); 4672 } 4673 4674 void sub_4706A250(void) { 4675 int _fpu_cmp = 0; 4676 uint32_t _cf = 0; 4677 int _df = 1; 4678 uint32_t _flag_k = FK_NONE; 4679 uint32_t _flag_a = 0, _flag_b = 0; 4680 uint32_t _itail_tgt = 0; 4681 RECOMP_REGS_LOCALS 4682 RECOMP_ENTER(0x4706A250u); 4683 4684 L_4706A250: 4685 /* test MEM8(esp + 0xC), 0x40u */ /* 0x4706A250: test byte ptr [esp + 0xc], 0x40 */ 4686 _flag_a = (uint32_t)(MEM8(esp + 0xC)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 4687 _cf = 0; 4688 _flag_k = FK_NARROW(FK_TEST, 24); 4689 eax = 0x4710E9A8u; /* 0x4706A255: mov eax, 0x4710e9a8 */ 4690 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706A261; /* 0x4706A25A: jne 0x4706a261 */ 4691 L_4706A25C: 4692 eax = 0x4710E8F8u; /* 0x4706A25C: mov eax, 0x4710e8f8 */ 4693 L_4706A261: 4694 edx = MEM32(esp + 0x8); /* 0x4706A261: mov edx, dword ptr [esp + 8] */ 4695 PUSH32(esp, edx); /* 0x4706A265: push edx */ 4696 PUSH32(esp, eax); /* 0x4706A266: push eax */ 4697 eax = MEM32(esp + 0xC); /* 0x4706A267: mov eax, dword ptr [esp + 0xc] */ 4698 PUSH32(esp, eax); /* 0x4706A26B: push eax */ 4699 RECOMP_ICALL(0x47069E40u); /* 0x4706A26C: call 0x47069e40 */ /* not lifted */ 4700 RECOMP_FLAGS_IN(); 4701 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4706A271: ret 0xc */ 4702 RECOMP_REGS_OUT(); 4703 } 4704 4705 void sub_4706A280(void) { 4706 int _fpu_cmp = 0; 4707 uint32_t _cf = 0; 4708 int _df = 1; 4709 uint32_t _flag_k = FK_NONE; 4710 uint32_t _flag_a = 0, _flag_b = 0; 4711 uint32_t _itail_tgt = 0; 4712 RECOMP_REGS_LOCALS 4713 RECOMP_ENTER(0x4706A280u); 4714 4715 L_4706A280: 4716 eax = MEM32(esp + 0x4); /* 0x4706A280: mov eax, dword ptr [esp + 4] */ 4717 PUSH32(esp, esi); /* 0x4706A284: push esi */ 4718 esi = ecx; /* 0x4706A285: mov esi, ecx */ 4719 /* cmp eax, MEM32(esi + 0x14) */ /* 0x4706A287: cmp eax, dword ptr [esi + 0x14] */ 4720 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x14)); 4721 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4722 _flag_k = FK_CMP; 4723 if (CMP_AE(_flag_a, _flag_b)) goto L_4706A2E3; /* 0x4706A28A: jae 0x4706a2e3 */ 4724 L_4706A28C: 4725 ecx = MEM32(esi + 0xC); /* 0x4706A28C: mov ecx, dword ptr [esi + 0xc] */ 4726 edx = MEM32(ecx + eax * 8); /* 0x4706A28F: mov edx, dword ptr [ecx + eax*8] */ 4727 eax = ecx + eax * 8; /* 0x4706A292: lea eax, [ecx + eax*8] */ 4728 ecx = MEM32(esp + 0xC); /* 0x4706A295: mov ecx, dword ptr [esp + 0xc] */ 4729 MEM32(edx + 0x14) = ecx; /* 0x4706A299: mov dword ptr [edx + 0x14], ecx */ 4730 ecx = MEM32(eax + 0x4); /* 0x4706A29C: mov ecx, dword ptr [eax + 4] */ 4731 /* test ecx, ecx */ /* 0x4706A29F: test ecx, ecx */ 4732 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4733 _cf = 0; 4734 _flag_k = FK_TEST; 4735 if (TEST_Z(_flag_a, _flag_b)) goto L_4706A2B4; /* 0x4706A2A1: je 0x4706a2b4 */ 4736 L_4706A2A3: 4737 eax = MEM32(eax); /* 0x4706A2A3: mov eax, dword ptr [eax] */ 4738 edx = MEM32(ecx); /* 0x4706A2A5: mov edx, dword ptr [ecx] */ 4739 PUSH32(esp, eax); /* 0x4706A2A7: push eax */ 4740 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x4706A2A8: call dword ptr [edx + 0x24] */ 4741 RECOMP_FLAGS_IN(); 4742 eax = 1; /* 0x4706A2AB: mov eax, 1 */ 4743 esi = POP32_VAL(esp); /* 0x4706A2B0: pop esi */ 4744 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4706A2B1: ret 8 */ 4745 L_4706A2B4: 4746 ecx = MEM32(esi + 0x18); /* 0x4706A2B4: mov ecx, dword ptr [esi + 0x18] */ 4747 /* test ecx, ecx */ /* 0x4706A2B7: test ecx, ecx */ 4748 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4749 _cf = 0; 4750 _flag_k = FK_TEST; 4751 if (TEST_Z(_flag_a, _flag_b)) goto L_4706A2DA; /* 0x4706A2B9: je 0x4706a2da */ 4752 L_4706A2BB: 4753 eax = MEM32(eax); /* 0x4706A2BB: mov eax, dword ptr [eax] */ 4754 edx = MEM32(ecx); /* 0x4706A2BD: mov edx, dword ptr [ecx] */ 4755 PUSH32(esp, eax); /* 0x4706A2BF: push eax */ 4756 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x4706A2C0: call dword ptr [edx + 0x24] */ 4757 RECOMP_FLAGS_IN(); 4758 /* test eax, eax */ /* 0x4706A2C3: test eax, eax */ 4759 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4760 _cf = 0; 4761 _flag_k = FK_TEST; 4762 if (TEST_NS(_flag_a, _flag_b)) goto L_4706A2DA; /* 0x4706A2C5: jge 0x4706a2da */ 4763 L_4706A2C7: 4764 ecx = MEM32(esi + 0x18); /* 0x4706A2C7: mov ecx, dword ptr [esi + 0x18] */ 4765 edx = MEM32(ecx); /* 0x4706A2CA: mov edx, dword ptr [ecx] */ 4766 PUSH32(esp, 0); /* 0x4706A2CC: push 0 */ 4767 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706A2CE: push -1 */ 4768 RECOMP_ICALL(MEM32(edx + 0x28)); /* 0x4706A2D0: call dword ptr [edx + 0x28] */ 4769 RECOMP_FLAGS_IN(); 4770 MEM32(esi + 0x18) = 0; /* 0x4706A2D3: mov dword ptr [esi + 0x18], 0 */ 4771 L_4706A2DA: 4772 eax = 1; /* 0x4706A2DA: mov eax, 1 */ 4773 esi = POP32_VAL(esp); /* 0x4706A2DF: pop esi */ 4774 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4706A2E0: ret 8 */ 4775 L_4706A2E3: 4776 PUSH32(esp, edi); /* 0x4706A2E3: push edi */ 4777 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4706A2E4: call dword ptr [0x470ac150] */ 4778 RECOMP_FLAGS_IN(); 4779 edi = eax; /* 0x4706A2EA: mov edi, eax */ 4780 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706A2EC: call dword ptr [0x470ac3c8] */ 4781 RECOMP_FLAGS_IN(); 4782 eax = MEM32(eax); /* 0x4706A2F2: mov eax, dword ptr [eax] */ 4783 /* test eax, eax */ /* 0x4706A2F4: test eax, eax */ 4784 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4785 _cf = 0; 4786 _flag_k = FK_TEST; 4787 if (TEST_Z(_flag_a, _flag_b)) goto L_4706A2FA; /* 0x4706A2F6: je 0x4706a2fa */ 4788 L_4706A2F8: 4789 edi = eax; /* 0x4706A2F8: mov edi, eax */ 4790 L_4706A2FA: 4791 RECOMP_ICALL(0x47039020u); /* 0x4706A2FA: call 0x47039020 */ /* not lifted */ 4792 RECOMP_FLAGS_IN(); 4793 esi = eax; /* 0x4706A2FF: mov esi, eax */ 4794 ecx = esi; /* 0x4706A301: mov ecx, esi */ 4795 RECOMP_ICALL(0x4703B210u); /* 0x4706A303: call 0x4703b210 */ /* not lifted */ 4796 RECOMP_FLAGS_IN(); 4797 PUSH32(esp, eax); /* 0x4706A308: push eax */ 4798 ecx = esi; /* 0x4706A309: mov ecx, esi */ 4799 RECOMP_ICALL(0x4703B240u); /* 0x4706A30B: call 0x4703b240 */ /* not lifted */ 4800 RECOMP_FLAGS_IN(); 4801 PUSH32(esp, eax); /* 0x4706A310: push eax */ 4802 ecx = esi; /* 0x4706A311: mov ecx, esi */ 4803 RECOMP_ICALL(0x4703B080u); /* 0x4706A313: call 0x4703b080 */ /* not lifted */ 4804 RECOMP_FLAGS_IN(); 4805 PUSH32(esp, eax); /* 0x4706A318: push eax */ 4806 PUSH32(esp, edi); /* 0x4706A319: push edi */ 4807 PUSH32(esp, 0); /* 0x4706A31A: push 0 */ 4808 PUSH32(esp, 0x3B5u); /* 0x4706A31C: push 0x3b5 */ 4809 PUSH32(esp, 0x47109BA8u); /* 0x4706A321: push 0x47109ba8 */ 4810 ecx = esi; /* 0x4706A326: mov ecx, esi */ 4811 RECOMP_ICALL(0x4703A340u); /* 0x4706A328: call 0x4703a340 */ /* not lifted */ 4812 RECOMP_FLAGS_IN(); 4813 PUSH32(esp, 0x47109D64u); /* 0x4706A32D: push 0x47109d64 */ 4814 PUSH32(esp, 0x47109D2Cu); /* 0x4706A332: push 0x47109d2c */ 4815 PUSH32(esp, 4); /* 0x4706A337: push 4 */ 4816 PUSH32(esp, esi); /* 0x4706A339: push esi */ 4817 RECOMP_ICALL(0x47039830u); /* 0x4706A33A: call 0x47039830 */ /* not lifted */ 4818 RECOMP_FLAGS_IN(); 4819 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4820 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4821 esp = esp + 0x10u; /* 0x4706A33F: add esp, 0x10 */ 4822 _flag_k = FK_ADD; 4823 edi = POP32_VAL(esp); /* 0x4706A342: pop edi */ 4824 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4825 eax = 0; /* 0x4706A343: xor eax, eax */ 4826 _cf = 0; 4827 _flag_k = FK_TEST; 4828 esi = POP32_VAL(esp); /* 0x4706A345: pop esi */ 4829 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4706A346: ret 8 */ 4830 RECOMP_REGS_OUT(); 4831 } 4832 4833 void sub_4706A350(void) { 4834 int _fpu_cmp = 0; 4835 uint32_t _cf = 0; 4836 int _df = 1; 4837 uint32_t _flag_k = FK_NONE; 4838 uint32_t _flag_a = 0, _flag_b = 0; 4839 uint32_t _itail_tgt = 0; 4840 RECOMP_REGS_LOCALS 4841 RECOMP_ENTER(0x4706A350u); 4842 4843 L_4706A350: 4844 ecx = 0x4710EB1Du; /* 0x4706A350: mov ecx, 0x4710eb1d */ 4845 RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x4706A355: call dword ptr [0x470ac1c8] */ 4846 RECOMP_FLAGS_IN(); 4847 PUSH32(esp, 0x4706A370u); /* 0x4706A35B: push 0x4706a370 */ 4848 RECOMP_ICALL(0x470A32D9u); /* 0x4706A360: call 0x470a32d9 */ /* not lifted */ 4849 RECOMP_FLAGS_IN(); 4850 ecx = POP32_VAL(esp); /* 0x4706A365: pop ecx */ 4851 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706A366: ret */ 4852 RECOMP_REGS_OUT(); 4853 } 4854 4855 void sub_4706A370(void) { 4856 int _fpu_cmp = 0; 4857 uint32_t _cf = 0; 4858 int _df = 1; 4859 uint32_t _flag_k = FK_NONE; 4860 uint32_t _flag_a = 0, _flag_b = 0; 4861 uint32_t _itail_tgt = 0; 4862 RECOMP_REGS_LOCALS 4863 RECOMP_ENTER(0x4706A370u); 4864 4865 L_4706A370: 4866 ecx = 0x4710EB1Du; /* 0x4706A370: mov ecx, 0x4710eb1d */ 4867 L_4706A375: 4868 { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; } 4869 { RECOMP_REGS_OUT(); return; } /* end of function */ 4870 _ljump: 4871 switch (_itail_tgt) { 4872 case 0x4706A370u: goto L_4706A370; 4873 case 0x4706A375u: goto L_4706A375; 4874 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4875 } 4876 RECOMP_REGS_OUT(); 4877 } 4878 4879 void sub_4706A380(void) { 4880 int _fpu_cmp = 0; 4881 uint32_t _cf = 0; 4882 int _df = 1; 4883 uint32_t _flag_k = FK_NONE; 4884 uint32_t _flag_a = 0, _flag_b = 0; 4885 uint32_t _itail_tgt = 0; 4886 RECOMP_REGS_LOCALS 4887 RECOMP_ENTER(0x4706A380u); 4888 4889 L_4706A380: 4890 ecx = 0x4710EB1Cu; /* 0x4706A380: mov ecx, 0x4710eb1c */ 4891 RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x4706A385: call dword ptr [0x470ac1c4] */ 4892 RECOMP_FLAGS_IN(); 4893 PUSH32(esp, 0x4706A3A0u); /* 0x4706A38B: push 0x4706a3a0 */ 4894 RECOMP_ICALL(0x470A32D9u); /* 0x4706A390: call 0x470a32d9 */ /* not lifted */ 4895 RECOMP_FLAGS_IN(); 4896 ecx = POP32_VAL(esp); /* 0x4706A395: pop ecx */ 4897 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706A396: ret */ 4898 RECOMP_REGS_OUT(); 4899 } 4900 4901 void sub_4706A3A0(void) { 4902 int _fpu_cmp = 0; 4903 uint32_t _cf = 0; 4904 int _df = 1; 4905 uint32_t _flag_k = FK_NONE; 4906 uint32_t _flag_a = 0, _flag_b = 0; 4907 uint32_t _itail_tgt = 0; 4908 RECOMP_REGS_LOCALS 4909 RECOMP_ENTER(0x4706A3A0u); 4910 4911 L_4706A3A0: 4912 ecx = 0x4710EB1Cu; /* 0x4706A3A0: mov ecx, 0x4710eb1c */ 4913 L_4706A3A5: 4914 { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; } 4915 { RECOMP_REGS_OUT(); return; } /* end of function */ 4916 _ljump: 4917 switch (_itail_tgt) { 4918 case 0x4706A3A0u: goto L_4706A3A0; 4919 case 0x4706A3A5u: goto L_4706A3A5; 4920 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4921 } 4922 RECOMP_REGS_OUT(); 4923 } 4924 4925 void sub_4706A3B0(void) { 4926 int _fpu_cmp = 0; 4927 uint32_t _cf = 0; 4928 int _df = 1; 4929 uint32_t _flag_k = FK_NONE; 4930 uint32_t _flag_a = 0, _flag_b = 0; 4931 uint32_t _itail_tgt = 0; 4932 RECOMP_REGS_LOCALS 4933 RECOMP_ENTER(0x4706A3B0u); 4934 4935 L_4706A3B0: 4936 PUSH32(esp, esi); /* 0x4706A3B0: push esi */ 4937 esi = MEM32(esp + 0x8); /* 0x4706A3B1: mov esi, dword ptr [esp + 8] */ 4938 PUSH32(esp, edi); /* 0x4706A3B5: push edi */ 4939 eax = ecx; /* 0x4706A3B6: mov eax, ecx */ 4940 ecx = 0xCu; /* 0x4706A3B8: mov ecx, 0xc */ 4941 edi = eax; /* 0x4706A3BD: mov edi, eax */ 4942 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4706A3BF: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 4943 edi = POP32_VAL(esp); /* 0x4706A3C1: pop edi */ 4944 esi = POP32_VAL(esp); /* 0x4706A3C2: pop esi */ 4945 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706A3C3: ret 4 */ 4946 RECOMP_REGS_OUT(); 4947 } 4948 4949 void sub_4706A3D0(void) { 4950 int _fpu_cmp = 0; 4951 uint32_t _cf = 0; 4952 int _df = 1; 4953 uint32_t _flag_k = FK_NONE; 4954 uint32_t _flag_a = 0, _flag_b = 0; 4955 uint32_t _itail_tgt = 0; 4956 RECOMP_REGS_LOCALS 4957 RECOMP_ENTER(0x4706A3D0u); 4958 4959 L_4706A3D0: 4960 eax = MEM32(0x4710E330); /* 0x4706A3D0: mov eax, dword ptr [0x4710e330] */ 4961 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 4962 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4963 esp = esp - 0x20u; /* 0x4706A3D5: sub esp, 0x20 */ 4964 _flag_k = FK_CMP; 4965 /* test eax, eax */ /* 0x4706A3D8: test eax, eax */ 4966 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4967 _cf = 0; 4968 _flag_k = FK_TEST; 4969 PUSH32(esp, esi); /* 0x4706A3DA: push esi */ 4970 esi = ecx; /* 0x4706A3DB: mov esi, ecx */ 4971 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706A3E4; /* 0x4706A3DD: jne 0x4706a3e4 */ 4972 L_4706A3DF: 4973 RECOMP_ICALL(0x47030750u); /* 0x4706A3DF: call 0x47030750 */ /* not lifted */ 4974 RECOMP_FLAGS_IN(); 4975 L_4706A3E4: 4976 /* cmp MEM32(0x4710E330), 0xFFFFFFFFu */ /* 0x4706A3E4: cmp dword ptr [0x4710e330], -1 */ 4977 _flag_a = (uint32_t)(MEM32(0x4710E330)); _flag_b = (uint32_t)(0xFFFFFFFFu); 4978 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4979 _flag_k = FK_CMP; 4980 if (CMP_NE(_flag_a, _flag_b)) goto L_4706A43D; /* 0x4706A3EB: jne 0x4706a43d */ 4981 L_4706A3ED: 4982 eax = esp + 0xC; /* 0x4706A3ED: lea eax, [esp + 0xc] */ 4983 PUSH32(esp, eax); /* 0x4706A3F1: push eax */ 4984 RECOMP_ICALL(MEM32(0x470AC1A8)); /* 0x4706A3F2: call dword ptr [0x470ac1a8] */ 4985 RECOMP_FLAGS_IN(); 4986 ecx = esp + 0xC; /* 0x4706A3F8: lea ecx, [esp + 0xc] */ 4987 PUSH32(esp, ecx); /* 0x4706A3FC: push ecx */ 4988 ecx = esp + 0x20; /* 0x4706A3FD: lea ecx, [esp + 0x20] */ 4989 RECOMP_ICALL(0x47053F10u); /* 0x4706A401: call 0x47053f10 */ /* not lifted */ 4990 RECOMP_FLAGS_IN(); 4991 edx = MEM32(eax); /* 0x4706A406: mov edx, dword ptr [eax] */ 4992 MEM32(esp + 0x14) = edx; /* 0x4706A408: mov dword ptr [esp + 0x14], edx */ 4993 ecx = MEM32(eax + 0x4); /* 0x4706A40C: mov ecx, dword ptr [eax + 4] */ 4994 MEM32(esp + 0x18) = ecx; /* 0x4706A40F: mov dword ptr [esp + 0x18], ecx */ 4995 ecx = MEM32(eax); /* 0x4706A413: mov ecx, dword ptr [eax] */ 4996 edx = MEM32(eax + 0x4); /* 0x4706A415: mov edx, dword ptr [eax + 4] */ 4997 eax = ecx + ecx * 4; /* 0x4706A418: lea eax, [ecx + ecx*4] */ 4998 eax = eax + eax * 4; /* 0x4706A41B: lea eax, [eax + eax*4] */ 4999 eax = eax + eax * 4; /* 0x4706A41E: lea eax, [eax + eax*4] */ 5000 eax = eax + eax * 4; /* 0x4706A421: lea eax, [eax + eax*4] */ 5001 eax = eax + eax * 4; /* 0x4706A424: lea eax, [eax + eax*4] */ 5002 eax = eax + eax * 4; /* 0x4706A427: lea eax, [eax + eax*4] */ 5003 if (6u) _cf = (((eax) >> 26) & 1u); /* 0x4706A42A: shl eax, 6 */ 5004 if (6u) { _flag_a = recomp_flags_pack((eax << 6u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5005 eax = eax << 6u; /* 0x4706A42A: shl eax, 6 */ 5006 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 5007 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5008 eax = eax + edx; /* 0x4706A42D: add eax, edx */ 5009 _flag_k = FK_ADD; 5010 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x4706A42F: cdq */ 5011 MEM32(esi + 0x10) = eax; /* 0x4706A430: mov dword ptr [esi + 0x10], eax */ 5012 MEM32(esi + 0x14) = edx; /* 0x4706A433: mov dword ptr [esi + 0x14], edx */ 5013 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5014 eax = 0; /* 0x4706A436: xor eax, eax */ 5015 _cf = 0; 5016 _flag_k = FK_TEST; 5017 esi = POP32_VAL(esp); /* 0x4706A438: pop esi */ 5018 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 5019 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5020 esp = esp + 0x20u; /* 0x4706A439: add esp, 0x20 */ 5021 _flag_k = FK_ADD; 5022 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706A43C: ret */ 5023 L_4706A43D: 5024 edx = esp + 0x4; /* 0x4706A43D: lea edx, [esp + 4] */ 5025 PUSH32(esp, edx); /* 0x4706A441: push edx */ 5026 RECOMP_ICALL(MEM32(0x470AC0F0)); /* 0x4706A442: call dword ptr [0x470ac0f0] */ 5027 RECOMP_FLAGS_IN(); 5028 eax = MEM32(esp + 0x4); /* 0x4706A448: mov eax, dword ptr [esp + 4] */ 5029 edx = MEM32(esp + 0x8); /* 0x4706A44C: mov edx, dword ptr [esp + 8] */ 5030 MEM32(esi + 0x10) = eax; /* 0x4706A450: mov dword ptr [esi + 0x10], eax */ 5031 MEM32(esi + 0x14) = edx; /* 0x4706A453: mov dword ptr [esi + 0x14], edx */ 5032 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5033 eax = 0; /* 0x4706A456: xor eax, eax */ 5034 _cf = 0; 5035 _flag_k = FK_TEST; 5036 esi = POP32_VAL(esp); /* 0x4706A458: pop esi */ 5037 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 5038 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5039 esp = esp + 0x20u; /* 0x4706A459: add esp, 0x20 */ 5040 _flag_k = FK_ADD; 5041 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706A45C: ret */ 5042 RECOMP_REGS_OUT(); 5043 } 5044 5045 void sub_4706A460(void) { 5046 int _fpu_cmp = 0; 5047 uint32_t _cf = 0; 5048 int _df = 1; 5049 uint32_t _flag_k = FK_NONE; 5050 uint32_t _flag_a = 0, _flag_b = 0; 5051 uint32_t _itail_tgt = 0; 5052 RECOMP_REGS_LOCALS 5053 RECOMP_ENTER(0x4706A460u); 5054 5055 L_4706A460: 5056 eax = MEM32(0x4710E330); /* 0x4706A460: mov eax, dword ptr [0x4710e330] */ 5057 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 5058 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5059 esp = esp - 0x20u; /* 0x4706A465: sub esp, 0x20 */ 5060 _flag_k = FK_CMP; 5061 /* test eax, eax */ /* 0x4706A468: test eax, eax */ 5062 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5063 _cf = 0; 5064 _flag_k = FK_TEST; 5065 PUSH32(esp, esi); /* 0x4706A46A: push esi */ 5066 esi = ecx; /* 0x4706A46B: mov esi, ecx */ 5067 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706A474; /* 0x4706A46D: jne 0x4706a474 */ 5068 L_4706A46F: 5069 RECOMP_ICALL(0x47030750u); /* 0x4706A46F: call 0x47030750 */ /* not lifted */ 5070 RECOMP_FLAGS_IN(); 5071 L_4706A474: 5072 /* cmp MEM32(0x4710E330), 0xFFFFFFFFu */ /* 0x4706A474: cmp dword ptr [0x4710e330], -1 */ 5073 _flag_a = (uint32_t)(MEM32(0x4710E330)); _flag_b = (uint32_t)(0xFFFFFFFFu); 5074 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5075 _flag_k = FK_CMP; 5076 if (CMP_NE(_flag_a, _flag_b)) goto L_4706A4CD; /* 0x4706A47B: jne 0x4706a4cd */ 5077 L_4706A47D: 5078 eax = esp + 0xC; /* 0x4706A47D: lea eax, [esp + 0xc] */ 5079 PUSH32(esp, eax); /* 0x4706A481: push eax */ 5080 RECOMP_ICALL(MEM32(0x470AC1A8)); /* 0x4706A482: call dword ptr [0x470ac1a8] */ 5081 RECOMP_FLAGS_IN(); 5082 ecx = esp + 0xC; /* 0x4706A488: lea ecx, [esp + 0xc] */ 5083 PUSH32(esp, ecx); /* 0x4706A48C: push ecx */ 5084 ecx = esp + 0x20; /* 0x4706A48D: lea ecx, [esp + 0x20] */ 5085 RECOMP_ICALL(0x47053F10u); /* 0x4706A491: call 0x47053f10 */ /* not lifted */ 5086 RECOMP_FLAGS_IN(); 5087 edx = MEM32(eax); /* 0x4706A496: mov edx, dword ptr [eax] */ 5088 MEM32(esp + 0x14) = edx; /* 0x4706A498: mov dword ptr [esp + 0x14], edx */ 5089 ecx = MEM32(eax + 0x4); /* 0x4706A49C: mov ecx, dword ptr [eax + 4] */ 5090 MEM32(esp + 0x18) = ecx; /* 0x4706A49F: mov dword ptr [esp + 0x18], ecx */ 5091 ecx = MEM32(eax); /* 0x4706A4A3: mov ecx, dword ptr [eax] */ 5092 edx = MEM32(eax + 0x4); /* 0x4706A4A5: mov edx, dword ptr [eax + 4] */ 5093 eax = ecx + ecx * 4; /* 0x4706A4A8: lea eax, [ecx + ecx*4] */ 5094 eax = eax + eax * 4; /* 0x4706A4AB: lea eax, [eax + eax*4] */ 5095 eax = eax + eax * 4; /* 0x4706A4AE: lea eax, [eax + eax*4] */ 5096 eax = eax + eax * 4; /* 0x4706A4B1: lea eax, [eax + eax*4] */ 5097 eax = eax + eax * 4; /* 0x4706A4B4: lea eax, [eax + eax*4] */ 5098 eax = eax + eax * 4; /* 0x4706A4B7: lea eax, [eax + eax*4] */ 5099 if (6u) _cf = (((eax) >> 26) & 1u); /* 0x4706A4BA: shl eax, 6 */ 5100 if (6u) { _flag_a = recomp_flags_pack((eax << 6u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5101 eax = eax << 6u; /* 0x4706A4BA: shl eax, 6 */ 5102 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 5103 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5104 eax = eax + edx; /* 0x4706A4BD: add eax, edx */ 5105 _flag_k = FK_ADD; 5106 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x4706A4BF: cdq */ 5107 MEM32(esi + 0x18) = eax; /* 0x4706A4C0: mov dword ptr [esi + 0x18], eax */ 5108 MEM32(esi + 0x1C) = edx; /* 0x4706A4C3: mov dword ptr [esi + 0x1c], edx */ 5109 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5110 eax = 0; /* 0x4706A4C6: xor eax, eax */ 5111 _cf = 0; 5112 _flag_k = FK_TEST; 5113 esi = POP32_VAL(esp); /* 0x4706A4C8: pop esi */ 5114 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 5115 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5116 esp = esp + 0x20u; /* 0x4706A4C9: add esp, 0x20 */ 5117 _flag_k = FK_ADD; 5118 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706A4CC: ret */ 5119 L_4706A4CD: 5120 edx = esp + 0x4; /* 0x4706A4CD: lea edx, [esp + 4] */ 5121 PUSH32(esp, edx); /* 0x4706A4D1: push edx */ 5122 RECOMP_ICALL(MEM32(0x470AC0F0)); /* 0x4706A4D2: call dword ptr [0x470ac0f0] */ 5123 RECOMP_FLAGS_IN(); 5124 eax = MEM32(esp + 0x4); /* 0x4706A4D8: mov eax, dword ptr [esp + 4] */ 5125 edx = MEM32(esp + 0x8); /* 0x4706A4DC: mov edx, dword ptr [esp + 8] */ 5126 MEM32(esi + 0x18) = eax; /* 0x4706A4E0: mov dword ptr [esi + 0x18], eax */ 5127 MEM32(esi + 0x1C) = edx; /* 0x4706A4E3: mov dword ptr [esi + 0x1c], edx */ 5128 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5129 eax = 0; /* 0x4706A4E6: xor eax, eax */ 5130 _cf = 0; 5131 _flag_k = FK_TEST; 5132 esi = POP32_VAL(esp); /* 0x4706A4E8: pop esi */ 5133 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 5134 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5135 esp = esp + 0x20u; /* 0x4706A4E9: add esp, 0x20 */ 5136 _flag_k = FK_ADD; 5137 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706A4EC: ret */ 5138 RECOMP_REGS_OUT(); 5139 } 5140 5141 void sub_4706A4F0(void) { 5142 int _fpu_cmp = 0; 5143 uint32_t _cf = 0; 5144 int _df = 1; 5145 uint32_t _flag_k = FK_NONE; 5146 uint32_t _flag_a = 0, _flag_b = 0; 5147 uint32_t _itail_tgt = 0; 5148 RECOMP_REGS_LOCALS 5149 RECOMP_ENTER(0x4706A4F0u); 5150 5151 L_4706A4F0: 5152 MEM32(0x4710EB18) = 0x47109D88u; /* 0x4706A4F0: mov dword ptr [0x4710eb18], 0x47109d88 */ 5153 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706A4FA: ret */ 5154 RECOMP_REGS_OUT(); 5155 } 5156 5157 void sub_4706A500(void) { 5158 int _fpu_cmp = 0; 5159 uint32_t _cf = 0; 5160 int _df = 1; 5161 uint32_t _flag_k = FK_NONE; 5162 uint32_t _flag_a = 0, _flag_b = 0; 5163 uint32_t _itail_tgt = 0; 5164 RECOMP_REGS_LOCALS 5165 RECOMP_ENTER(0x4706A500u); 5166 5167 goto L_4706A500; 5168 L_47030B20: 5169 PUSH32(esp, ecx); /* 0x47030B20: push ecx */ 5170 PUSH32(esp, ebx); /* 0x47030B21: push ebx */ 5171 ebx = MEM32(0x470AC150); /* 0x47030B22: mov ebx, dword ptr [0x470ac150] */ 5172 PUSH32(esp, ebp); /* 0x47030B28: push ebp */ 5173 PUSH32(esp, esi); /* 0x47030B29: push esi */ 5174 PUSH32(esp, edi); /* 0x47030B2A: push edi */ 5175 esi = ecx; /* 0x47030B2B: mov esi, ecx */ 5176 RECOMP_ICALL(ebx); /* 0x47030B2D: call ebx */ 5177 RECOMP_FLAGS_IN(); 5178 ebp = MEM32(0x470AC3C8); /* 0x47030B2F: mov ebp, dword ptr [0x470ac3c8] */ 5179 edi = eax; /* 0x47030B35: mov edi, eax */ 5180 RECOMP_ICALL(ebp); /* 0x47030B37: call ebp */ 5181 RECOMP_FLAGS_IN(); 5182 eax = MEM32(eax); /* 0x47030B39: mov eax, dword ptr [eax] */ 5183 /* test eax, eax */ /* 0x47030B3B: test eax, eax */ 5184 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5185 _cf = 0; 5186 _flag_k = FK_TEST; 5187 MEM32(esp + 0x10) = edi; /* 0x47030B3D: mov dword ptr [esp + 0x10], edi */ 5188 if (TEST_Z(_flag_a, _flag_b)) goto L_47030B47; /* 0x47030B41: je 0x47030b47 */ 5189 L_47030B43: 5190 MEM32(esp + 0x10) = eax; /* 0x47030B43: mov dword ptr [esp + 0x10], eax */ 5191 L_47030B47: 5192 RECOMP_ICALL(0x47039020u); /* 0x47030B47: call 0x47039020 */ /* not lifted */ 5193 RECOMP_FLAGS_IN(); 5194 edi = eax; /* 0x47030B4C: mov edi, eax */ 5195 ecx = edi; /* 0x47030B4E: mov ecx, edi */ 5196 RECOMP_ICALL(0x4703B210u); /* 0x47030B50: call 0x4703b210 */ /* not lifted */ 5197 RECOMP_FLAGS_IN(); 5198 PUSH32(esp, eax); /* 0x47030B55: push eax */ 5199 ecx = edi; /* 0x47030B56: mov ecx, edi */ 5200 RECOMP_ICALL(0x4703B240u); /* 0x47030B58: call 0x4703b240 */ /* not lifted */ 5201 RECOMP_FLAGS_IN(); 5202 PUSH32(esp, eax); /* 0x47030B5D: push eax */ 5203 ecx = edi; /* 0x47030B5E: mov ecx, edi */ 5204 RECOMP_ICALL(0x4703B080u); /* 0x47030B60: call 0x4703b080 */ /* not lifted */ 5205 RECOMP_FLAGS_IN(); 5206 PUSH32(esp, eax); /* 0x47030B65: push eax */ 5207 eax = MEM32(esp + 0x1C); /* 0x47030B66: mov eax, dword ptr [esp + 0x1c] */ 5208 PUSH32(esp, eax); /* 0x47030B6A: push eax */ 5209 PUSH32(esp, 0); /* 0x47030B6B: push 0 */ 5210 PUSH32(esp, 0x109u); /* 0x47030B6D: push 0x109 */ 5211 PUSH32(esp, 0x471069ECu); /* 0x47030B72: push 0x471069ec */ 5212 ecx = edi; /* 0x47030B77: mov ecx, edi */ 5213 RECOMP_ICALL(0x4703A340u); /* 0x47030B79: call 0x4703a340 */ /* not lifted */ 5214 RECOMP_FLAGS_IN(); 5215 PUSH32(esp, esi); /* 0x47030B7E: push esi */ 5216 PUSH32(esp, 0x471052CCu); /* 0x47030B7F: push 0x471052cc */ 5217 PUSH32(esp, 4); /* 0x47030B84: push 4 */ 5218 PUSH32(esp, edi); /* 0x47030B86: push edi */ 5219 RECOMP_ICALL(0x47039830u); /* 0x47030B87: call 0x47039830 */ /* not lifted */ 5220 RECOMP_FLAGS_IN(); 5221 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5222 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5223 esp = esp + 0x10u; /* 0x47030B8C: add esp, 0x10 */ 5224 _flag_k = FK_ADD; 5225 RECOMP_ICALL(ebx); /* 0x47030B8F: call ebx */ 5226 RECOMP_FLAGS_IN(); 5227 edi = eax; /* 0x47030B91: mov edi, eax */ 5228 RECOMP_ICALL(ebp); /* 0x47030B93: call ebp */ 5229 RECOMP_FLAGS_IN(); 5230 eax = MEM32(eax); /* 0x47030B95: mov eax, dword ptr [eax] */ 5231 /* test eax, eax */ /* 0x47030B97: test eax, eax */ 5232 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5233 _cf = 0; 5234 _flag_k = FK_TEST; 5235 MEM32(esp + 0x10) = edi; /* 0x47030B99: mov dword ptr [esp + 0x10], edi */ 5236 if (TEST_Z(_flag_a, _flag_b)) goto L_47030BA3; /* 0x47030B9D: je 0x47030ba3 */ 5237 L_47030B9F: 5238 MEM32(esp + 0x10) = eax; /* 0x47030B9F: mov dword ptr [esp + 0x10], eax */ 5239 L_47030BA3: 5240 RECOMP_ICALL(0x47039020u); /* 0x47030BA3: call 0x47039020 */ /* not lifted */ 5241 RECOMP_FLAGS_IN(); 5242 edi = eax; /* 0x47030BA8: mov edi, eax */ 5243 ecx = edi; /* 0x47030BAA: mov ecx, edi */ 5244 RECOMP_ICALL(0x4703B210u); /* 0x47030BAC: call 0x4703b210 */ /* not lifted */ 5245 RECOMP_FLAGS_IN(); 5246 PUSH32(esp, eax); /* 0x47030BB1: push eax */ 5247 ecx = edi; /* 0x47030BB2: mov ecx, edi */ 5248 RECOMP_ICALL(0x4703B240u); /* 0x47030BB4: call 0x4703b240 */ /* not lifted */ 5249 RECOMP_FLAGS_IN(); 5250 PUSH32(esp, eax); /* 0x47030BB9: push eax */ 5251 ecx = edi; /* 0x47030BBA: mov ecx, edi */ 5252 RECOMP_ICALL(0x4703B080u); /* 0x47030BBC: call 0x4703b080 */ /* not lifted */ 5253 RECOMP_FLAGS_IN(); 5254 ecx = MEM32(esp + 0x18); /* 0x47030BC1: mov ecx, dword ptr [esp + 0x18] */ 5255 PUSH32(esp, eax); /* 0x47030BC5: push eax */ 5256 PUSH32(esp, ecx); /* 0x47030BC6: push ecx */ 5257 PUSH32(esp, 0); /* 0x47030BC7: push 0 */ 5258 PUSH32(esp, 0x10Bu); /* 0x47030BC9: push 0x10b */ 5259 PUSH32(esp, 0x471069ECu); /* 0x47030BCE: push 0x471069ec */ 5260 ecx = edi; /* 0x47030BD3: mov ecx, edi */ 5261 RECOMP_ICALL(0x4703A340u); /* 0x47030BD5: call 0x4703a340 */ /* not lifted */ 5262 RECOMP_FLAGS_IN(); 5263 RECOMP_ICALL(0x47030750u); /* 0x47030BDA: call 0x47030750 */ /* not lifted */ 5264 RECOMP_FLAGS_IN(); 5265 PUSH32(esp, eax); /* 0x47030BDF: push eax */ 5266 PUSH32(esp, 0x471069D0u); /* 0x47030BE0: push 0x471069d0 */ 5267 PUSH32(esp, 4); /* 0x47030BE5: push 4 */ 5268 PUSH32(esp, edi); /* 0x47030BE7: push edi */ 5269 RECOMP_ICALL(0x47039830u); /* 0x47030BE8: call 0x47039830 */ /* not lifted */ 5270 RECOMP_FLAGS_IN(); 5271 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5272 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5273 esp = esp + 0x10u; /* 0x47030BED: add esp, 0x10 */ 5274 _flag_k = FK_ADD; 5275 RECOMP_ICALL(ebx); /* 0x47030BF0: call ebx */ 5276 RECOMP_FLAGS_IN(); 5277 edi = eax; /* 0x47030BF2: mov edi, eax */ 5278 RECOMP_ICALL(ebp); /* 0x47030BF4: call ebp */ 5279 RECOMP_FLAGS_IN(); 5280 eax = MEM32(eax); /* 0x47030BF6: mov eax, dword ptr [eax] */ 5281 /* test eax, eax */ /* 0x47030BF8: test eax, eax */ 5282 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5283 _cf = 0; 5284 _flag_k = FK_TEST; 5285 MEM32(esp + 0x10) = edi; /* 0x47030BFA: mov dword ptr [esp + 0x10], edi */ 5286 if (TEST_Z(_flag_a, _flag_b)) goto L_47030C04; /* 0x47030BFE: je 0x47030c04 */ 5287 L_47030C00: 5288 MEM32(esp + 0x10) = eax; /* 0x47030C00: mov dword ptr [esp + 0x10], eax */ 5289 L_47030C04: 5290 RECOMP_ICALL(0x47039020u); /* 0x47030C04: call 0x47039020 */ /* not lifted */ 5291 RECOMP_FLAGS_IN(); 5292 edi = eax; /* 0x47030C09: mov edi, eax */ 5293 ecx = edi; /* 0x47030C0B: mov ecx, edi */ 5294 RECOMP_ICALL(0x4703B210u); /* 0x47030C0D: call 0x4703b210 */ /* not lifted */ 5295 RECOMP_FLAGS_IN(); 5296 PUSH32(esp, eax); /* 0x47030C12: push eax */ 5297 ecx = edi; /* 0x47030C13: mov ecx, edi */ 5298 RECOMP_ICALL(0x4703B240u); /* 0x47030C15: call 0x4703b240 */ /* not lifted */ 5299 RECOMP_FLAGS_IN(); 5300 PUSH32(esp, eax); /* 0x47030C1A: push eax */ 5301 ecx = edi; /* 0x47030C1B: mov ecx, edi */ 5302 RECOMP_ICALL(0x4703B080u); /* 0x47030C1D: call 0x4703b080 */ /* not lifted */ 5303 RECOMP_FLAGS_IN(); 5304 edx = MEM32(esp + 0x18); /* 0x47030C22: mov edx, dword ptr [esp + 0x18] */ 5305 PUSH32(esp, eax); /* 0x47030C26: push eax */ 5306 PUSH32(esp, edx); /* 0x47030C27: push edx */ 5307 PUSH32(esp, 0); /* 0x47030C28: push 0 */ 5308 PUSH32(esp, 0x123u); /* 0x47030C2A: push 0x123 */ 5309 PUSH32(esp, 0x471069ECu); /* 0x47030C2F: push 0x471069ec */ 5310 ecx = edi; /* 0x47030C34: mov ecx, edi */ 5311 RECOMP_ICALL(0x4703A340u); /* 0x47030C36: call 0x4703a340 */ /* not lifted */ 5312 RECOMP_FLAGS_IN(); 5313 eax = MEM32(esi + 0x18); /* 0x47030C3B: mov eax, dword ptr [esi + 0x18] */ 5314 edx = MEM32(esi + 0x1C); /* 0x47030C3E: mov edx, dword ptr [esi + 0x1c] */ 5315 PUSH32(esp, eax); /* 0x47030C41: push eax */ 5316 ecx = 0x20u; /* 0x47030C42: mov ecx, 0x20 */ 5317 RECOMP_ICALL(0x470A3620u); /* 0x47030C47: call 0x470a3620 */ /* not lifted */ 5318 RECOMP_FLAGS_IN(); 5319 ecx = MEM32(esi + 0x10); /* 0x47030C4C: mov ecx, dword ptr [esi + 0x10] */ 5320 edx = MEM32(esi + 0x14); /* 0x47030C4F: mov edx, dword ptr [esi + 0x14] */ 5321 PUSH32(esp, eax); /* 0x47030C52: push eax */ 5322 eax = MEM32(esi + 0x10); /* 0x47030C53: mov eax, dword ptr [esi + 0x10] */ 5323 PUSH32(esp, ecx); /* 0x47030C56: push ecx */ 5324 ecx = 0x20u; /* 0x47030C57: mov ecx, 0x20 */ 5325 RECOMP_ICALL(0x470A3620u); /* 0x47030C5C: call 0x470a3620 */ /* not lifted */ 5326 RECOMP_FLAGS_IN(); 5327 edx = MEM32(esi + 0x8); /* 0x47030C61: mov edx, dword ptr [esi + 8] */ 5328 PUSH32(esp, eax); /* 0x47030C64: push eax */ 5329 PUSH32(esp, edx); /* 0x47030C65: push edx */ 5330 eax = edx; /* 0x47030C66: mov eax, edx */ 5331 edx = MEM32(esi + 0xC); /* 0x47030C68: mov edx, dword ptr [esi + 0xc] */ 5332 ecx = 0x20u; /* 0x47030C6B: mov ecx, 0x20 */ 5333 RECOMP_ICALL(0x470A3620u); /* 0x47030C70: call 0x470a3620 */ /* not lifted */ 5334 RECOMP_FLAGS_IN(); 5335 edx = MEM32(esi + 0x4); /* 0x47030C75: mov edx, dword ptr [esi + 4] */ 5336 PUSH32(esp, eax); /* 0x47030C78: push eax */ 5337 eax = MEM32(esi); /* 0x47030C79: mov eax, dword ptr [esi] */ 5338 PUSH32(esp, eax); /* 0x47030C7B: push eax */ 5339 ecx = 0x20u; /* 0x47030C7C: mov ecx, 0x20 */ 5340 RECOMP_ICALL(0x470A3620u); /* 0x47030C81: call 0x470a3620 */ /* not lifted */ 5341 RECOMP_FLAGS_IN(); 5342 PUSH32(esp, eax); /* 0x47030C86: push eax */ 5343 PUSH32(esp, 0x47106910u); /* 0x47030C87: push 0x47106910 */ 5344 PUSH32(esp, 4); /* 0x47030C8C: push 4 */ 5345 PUSH32(esp, edi); /* 0x47030C8E: push edi */ 5346 RECOMP_ICALL(0x47039830u); /* 0x47030C8F: call 0x47039830 */ /* not lifted */ 5347 RECOMP_FLAGS_IN(); 5348 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu); 5349 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5350 esp = esp + 0x2Cu; /* 0x47030C94: add esp, 0x2c */ 5351 _flag_k = FK_ADD; 5352 RECOMP_ICALL(ebx); /* 0x47030C97: call ebx */ 5353 RECOMP_FLAGS_IN(); 5354 esi = eax; /* 0x47030C99: mov esi, eax */ 5355 RECOMP_ICALL(ebp); /* 0x47030C9B: call ebp */ 5356 RECOMP_FLAGS_IN(); 5357 eax = MEM32(eax); /* 0x47030C9D: mov eax, dword ptr [eax] */ 5358 /* test eax, eax */ /* 0x47030C9F: test eax, eax */ 5359 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5360 _cf = 0; 5361 _flag_k = FK_TEST; 5362 edi = esi; /* 0x47030CA1: mov edi, esi */ 5363 if (TEST_Z(_flag_a, _flag_b)) goto L_47030CA7; /* 0x47030CA3: je 0x47030ca7 */ 5364 L_47030CA5: 5365 edi = eax; /* 0x47030CA5: mov edi, eax */ 5366 L_47030CA7: 5367 RECOMP_ICALL(0x47039020u); /* 0x47030CA7: call 0x47039020 */ /* not lifted */ 5368 RECOMP_FLAGS_IN(); 5369 esi = eax; /* 0x47030CAC: mov esi, eax */ 5370 ecx = esi; /* 0x47030CAE: mov ecx, esi */ 5371 RECOMP_ICALL(0x4703B210u); /* 0x47030CB0: call 0x4703b210 */ /* not lifted */ 5372 RECOMP_FLAGS_IN(); 5373 PUSH32(esp, eax); /* 0x47030CB5: push eax */ 5374 ecx = esi; /* 0x47030CB6: mov ecx, esi */ 5375 RECOMP_ICALL(0x4703B240u); /* 0x47030CB8: call 0x4703b240 */ /* not lifted */ 5376 RECOMP_FLAGS_IN(); 5377 PUSH32(esp, eax); /* 0x47030CBD: push eax */ 5378 ecx = esi; /* 0x47030CBE: mov ecx, esi */ 5379 RECOMP_ICALL(0x4703B080u); /* 0x47030CC0: call 0x4703b080 */ /* not lifted */ 5380 RECOMP_FLAGS_IN(); 5381 PUSH32(esp, eax); /* 0x47030CC5: push eax */ 5382 PUSH32(esp, edi); /* 0x47030CC6: push edi */ 5383 PUSH32(esp, 0); /* 0x47030CC7: push 0 */ 5384 PUSH32(esp, 0x125u); /* 0x47030CC9: push 0x125 */ 5385 PUSH32(esp, 0x471069ECu); /* 0x47030CCE: push 0x471069ec */ 5386 ecx = esi; /* 0x47030CD3: mov ecx, esi */ 5387 RECOMP_ICALL(0x4703A340u); /* 0x47030CD5: call 0x4703a340 */ /* not lifted */ 5388 RECOMP_FLAGS_IN(); 5389 PUSH32(esp, 0x4710529Cu); /* 0x47030CDA: push 0x4710529c */ 5390 PUSH32(esp, 4); /* 0x47030CDF: push 4 */ 5391 PUSH32(esp, esi); /* 0x47030CE1: push esi */ 5392 RECOMP_ICALL(0x47039830u); /* 0x47030CE2: call 0x47039830 */ /* not lifted */ 5393 RECOMP_FLAGS_IN(); 5394 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5395 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5396 esp = esp + 0xCu; /* 0x47030CE7: add esp, 0xc */ 5397 _flag_k = FK_ADD; 5398 edi = POP32_VAL(esp); /* 0x47030CEA: pop edi */ 5399 esi = POP32_VAL(esp); /* 0x47030CEB: pop esi */ 5400 ebp = POP32_VAL(esp); /* 0x47030CEC: pop ebp */ 5401 ebx = POP32_VAL(esp); /* 0x47030CED: pop ebx */ 5402 ecx = POP32_VAL(esp); /* 0x47030CEE: pop ecx */ 5403 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47030CEF: ret */ 5404 L_4706A500: 5405 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u); 5406 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5407 ecx = ecx + 0x10u; /* 0x4706A500: add ecx, 0x10 */ 5408 _flag_k = FK_ADD; 5409 RECOMP_BACKEDGE(); 5410 goto L_47030B20; /* 0x4706A503: jmp 0x47030b20 */ 5411 { RECOMP_REGS_OUT(); return; } /* end of function */ 5412 RECOMP_REGS_OUT(); 5413 } 5414 5415 void sub_4706A510(void) { 5416 int _fpu_cmp = 0; 5417 uint32_t _cf = 0; 5418 int _df = 1; 5419 uint32_t _flag_k = FK_NONE; 5420 uint32_t _flag_a = 0, _flag_b = 0; 5421 uint32_t _itail_tgt = 0; 5422 RECOMP_REGS_LOCALS 5423 RECOMP_ENTER(0x4706A510u); 5424 5425 L_4706A510: 5426 PUSH32(esp, esi); /* 0x4706A510: push esi */ 5427 esi = ecx; /* 0x4706A511: mov esi, ecx */ 5428 ecx = esi + 0x10; /* 0x4706A513: lea ecx, [esi + 0x10] */ 5429 RECOMP_ICALL(0x47030840u); /* 0x4706A516: call 0x47030840 */ /* not lifted */ 5430 RECOMP_FLAGS_IN(); 5431 eax = esi; /* 0x4706A51B: mov eax, esi */ 5432 esi = POP32_VAL(esp); /* 0x4706A51D: pop esi */ 5433 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706A51E: ret */ 5434 RECOMP_REGS_OUT(); 5435 } 5436 5437 void sub_4706A520(void) { 5438 int _fpu_cmp = 0; 5439 uint32_t _cf = 0; 5440 int _df = 1; 5441 uint32_t _flag_k = FK_NONE; 5442 uint32_t _flag_a = 0, _flag_b = 0; 5443 uint32_t _itail_tgt = 0; 5444 RECOMP_REGS_LOCALS 5445 RECOMP_ENTER(0x4706A520u); 5446 5447 L_4706A520: 5448 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5449 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5450 esp = esp - 8; /* 0x4706A520: sub esp, 8 */ 5451 _flag_k = FK_CMP; 5452 eax = esp; /* 0x4706A523: lea eax, [esp] */ 5453 PUSH32(esp, eax); /* 0x4706A527: push eax */ 5454 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u); 5455 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5456 ecx = ecx + 0x10u; /* 0x4706A528: add ecx, 0x10 */ 5457 _flag_k = FK_ADD; 5458 RECOMP_ICALL(0x47030E30u); /* 0x4706A52B: call 0x47030e30 */ /* not lifted */ 5459 RECOMP_FLAGS_IN(); 5460 fp_push_i64((int64_t)MEM64(esp)); /* 0x4706A530: fild qword ptr [esp] */ 5461 eax = MEM32(esp + 0xC); /* 0x4706A534: mov eax, dword ptr [esp + 0xc] */ 5462 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5463 ecx = 0; /* 0x4706A538: xor ecx, ecx */ 5464 _cf = 0; 5465 _flag_k = FK_TEST; 5466 _st[0] *= *(double*)ADDR(0x470AEA90); /* 0x4706A53A: fmul qword ptr [0x470aea90] */ 5467 MEM32(eax + 0x8) = ecx; /* 0x4706A540: mov dword ptr [eax + 8], ecx */ 5468 MEM32(eax + 0x10) = ecx; /* 0x4706A543: mov dword ptr [eax + 0x10], ecx */ 5469 MEM32(eax + 0xC) = ecx; /* 0x4706A546: mov dword ptr [eax + 0xc], ecx */ 5470 { double _v = fp_pop(); *(double*)ADDR(eax) = _v; } /* 0x4706A549: fstp qword ptr [eax] */ 5471 MEM32(eax + 0x14) = ecx; /* 0x4706A54B: mov dword ptr [eax + 0x14], ecx */ 5472 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5473 eax = 0; /* 0x4706A54E: xor eax, eax */ 5474 _cf = 0; 5475 _flag_k = FK_TEST; 5476 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5477 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5478 esp = esp + 8; /* 0x4706A550: add esp, 8 */ 5479 _flag_k = FK_ADD; 5480 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706A553: ret 4 */ 5481 RECOMP_REGS_OUT(); 5482 } 5483 5484 void sub_4706A560(void) { 5485 int _fpu_cmp = 0; 5486 uint32_t _cf = 0; 5487 int _df = 1; 5488 uint32_t _flag_k = FK_NONE; 5489 uint32_t _flag_a = 0, _flag_b = 0; 5490 uint32_t _itail_tgt = 0; 5491 RECOMP_REGS_LOCALS 5492 RECOMP_ENTER(0x4706A560u); 5493 5494 L_4706A560: 5495 eax = MEM32(esp + 0x4); /* 0x4706A560: mov eax, dword ptr [esp + 4] */ 5496 MEM32(eax) = 0; /* 0x4706A564: mov dword ptr [eax], 0 */ 5497 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706A56A: ret 4 */ 5498 RECOMP_REGS_OUT(); 5499 } 5500 5501 void sub_4706A570(void) { 5502 int _fpu_cmp = 0; 5503 uint32_t _cf = 0; 5504 int _df = 1; 5505 uint32_t _flag_k = FK_NONE; 5506 uint32_t _flag_a = 0, _flag_b = 0; 5507 uint32_t _itail_tgt = 0; 5508 RECOMP_REGS_LOCALS 5509 RECOMP_ENTER(0x4706A570u); 5510 5511 L_4706A570: 5512 ecx = 0x4710EB29u; /* 0x4706A570: mov ecx, 0x4710eb29 */ 5513 RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x4706A575: call dword ptr [0x470ac1c8] */ 5514 RECOMP_FLAGS_IN(); 5515 PUSH32(esp, 0x4706A590u); /* 0x4706A57B: push 0x4706a590 */ 5516 RECOMP_ICALL(0x470A32D9u); /* 0x4706A580: call 0x470a32d9 */ /* not lifted */ 5517 RECOMP_FLAGS_IN(); 5518 ecx = POP32_VAL(esp); /* 0x4706A585: pop ecx */ 5519 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706A586: ret */ 5520 RECOMP_REGS_OUT(); 5521 } 5522 5523 void sub_4706A590(void) { 5524 int _fpu_cmp = 0; 5525 uint32_t _cf = 0; 5526 int _df = 1; 5527 uint32_t _flag_k = FK_NONE; 5528 uint32_t _flag_a = 0, _flag_b = 0; 5529 uint32_t _itail_tgt = 0; 5530 RECOMP_REGS_LOCALS 5531 RECOMP_ENTER(0x4706A590u); 5532 5533 L_4706A590: 5534 ecx = 0x4710EB29u; /* 0x4706A590: mov ecx, 0x4710eb29 */ 5535 L_4706A595: 5536 { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; } 5537 { RECOMP_REGS_OUT(); return; } /* end of function */ 5538 _ljump: 5539 switch (_itail_tgt) { 5540 case 0x4706A590u: goto L_4706A590; 5541 case 0x4706A595u: goto L_4706A595; 5542 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5543 } 5544 RECOMP_REGS_OUT(); 5545 } 5546 5547 void sub_4706A5A0(void) { 5548 int _fpu_cmp = 0; 5549 uint32_t _cf = 0; 5550 int _df = 1; 5551 uint32_t _flag_k = FK_NONE; 5552 uint32_t _flag_a = 0, _flag_b = 0; 5553 uint32_t _itail_tgt = 0; 5554 RECOMP_REGS_LOCALS 5555 RECOMP_ENTER(0x4706A5A0u); 5556 5557 L_4706A5A0: 5558 ecx = 0x4710EB28u; /* 0x4706A5A0: mov ecx, 0x4710eb28 */ 5559 RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x4706A5A5: call dword ptr [0x470ac1c4] */ 5560 RECOMP_FLAGS_IN(); 5561 PUSH32(esp, 0x4706A5C0u); /* 0x4706A5AB: push 0x4706a5c0 */ 5562 RECOMP_ICALL(0x470A32D9u); /* 0x4706A5B0: call 0x470a32d9 */ /* not lifted */ 5563 RECOMP_FLAGS_IN(); 5564 ecx = POP32_VAL(esp); /* 0x4706A5B5: pop ecx */ 5565 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706A5B6: ret */ 5566 RECOMP_REGS_OUT(); 5567 } 5568 5569 void sub_4706A5C0(void) { 5570 int _fpu_cmp = 0; 5571 uint32_t _cf = 0; 5572 int _df = 1; 5573 uint32_t _flag_k = FK_NONE; 5574 uint32_t _flag_a = 0, _flag_b = 0; 5575 uint32_t _itail_tgt = 0; 5576 RECOMP_REGS_LOCALS 5577 RECOMP_ENTER(0x4706A5C0u); 5578 5579 L_4706A5C0: 5580 ecx = 0x4710EB28u; /* 0x4706A5C0: mov ecx, 0x4710eb28 */ 5581 L_4706A5C5: 5582 { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; } 5583 { RECOMP_REGS_OUT(); return; } /* end of function */ 5584 _ljump: 5585 switch (_itail_tgt) { 5586 case 0x4706A5C0u: goto L_4706A5C0; 5587 case 0x4706A5C5u: goto L_4706A5C5; 5588 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5589 } 5590 RECOMP_REGS_OUT(); 5591 } 5592 5593 void sub_4706A5D0(void) { 5594 int _fpu_cmp = 0; 5595 uint32_t _cf = 0; 5596 int _df = 1; 5597 uint32_t _flag_k = FK_NONE; 5598 uint32_t _flag_a = 0, _flag_b = 0; 5599 uint32_t _itail_tgt = 0; 5600 RECOMP_REGS_LOCALS 5601 RECOMP_ENTER(0x4706A5D0u); 5602 5603 L_4706A5D0: 5604 MEM32(0x4710EB20) = 0x47104A3Cu; /* 0x4706A5D0: mov dword ptr [0x4710eb20], 0x47104a3c */ 5605 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706A5DA: ret */ 5606 RECOMP_REGS_OUT(); 5607 } 5608 5609 void sub_4706A5E0(void) { 5610 int _fpu_cmp = 0; 5611 uint32_t _cf = 0; 5612 int _df = 1; 5613 uint32_t _flag_k = FK_NONE; 5614 uint32_t _flag_a = 0, _flag_b = 0; 5615 uint32_t _itail_tgt = 0; 5616 RECOMP_REGS_LOCALS 5617 RECOMP_ENTER(0x4706A5E0u); 5618 5619 L_4706A5E0: 5620 MEM32(0x4710EB30) = 0x47104A00u; /* 0x4706A5E0: mov dword ptr [0x4710eb30], 0x47104a00 */ 5621 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706A5EA: ret */ 5622 RECOMP_REGS_OUT(); 5623 } 5624 5625 void sub_4706A5F0(void) { 5626 int _fpu_cmp = 0; 5627 uint32_t _cf = 0; 5628 int _df = 1; 5629 uint32_t _flag_k = FK_NONE; 5630 uint32_t _flag_a = 0, _flag_b = 0; 5631 uint32_t _itail_tgt = 0; 5632 RECOMP_REGS_LOCALS 5633 RECOMP_ENTER(0x4706A5F0u); 5634 5635 L_4706A5F0: 5636 MEM32(0x4710EB2C) = 0x47104A70u; /* 0x4706A5F0: mov dword ptr [0x4710eb2c], 0x47104a70 */ 5637 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706A5FA: ret */ 5638 RECOMP_REGS_OUT(); 5639 } 5640 5641 void sub_4706A600(void) { 5642 int _fpu_cmp = 0; 5643 uint32_t _cf = 0; 5644 int _df = 1; 5645 uint32_t _flag_k = FK_NONE; 5646 uint32_t _flag_a = 0, _flag_b = 0; 5647 uint32_t _itail_tgt = 0; 5648 RECOMP_REGS_LOCALS 5649 RECOMP_ENTER(0x4706A600u); 5650 5651 L_4706A600: 5652 MEM32(0x4710EB3C) = 0x47104B6Cu; /* 0x4706A600: mov dword ptr [0x4710eb3c], 0x47104b6c */ 5653 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706A60A: ret */ 5654 RECOMP_REGS_OUT(); 5655 } 5656 5657 void sub_4706A610(void) { 5658 int _fpu_cmp = 0; 5659 uint32_t _cf = 0; 5660 int _df = 1; 5661 uint32_t _flag_k = FK_NONE; 5662 uint32_t _flag_a = 0, _flag_b = 0; 5663 uint32_t _itail_tgt = 0; 5664 RECOMP_REGS_LOCALS 5665 RECOMP_ENTER(0x4706A610u); 5666 5667 L_4706A610: 5668 MEM32(0x4710EB24) = 0x47104BA0u; /* 0x4706A610: mov dword ptr [0x4710eb24], 0x47104ba0 */ 5669 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706A61A: ret */ 5670 RECOMP_REGS_OUT(); 5671 } 5672 5673 void sub_4706A620(void) { 5674 int _fpu_cmp = 0; 5675 uint32_t _cf = 0; 5676 int _df = 1; 5677 uint32_t _flag_k = FK_NONE; 5678 uint32_t _flag_a = 0, _flag_b = 0; 5679 uint32_t _itail_tgt = 0; 5680 RECOMP_REGS_LOCALS 5681 RECOMP_ENTER(0x4706A620u); 5682 5683 L_4706A620: 5684 MEM32(0x4710EB38) = 0x47104BD4u; /* 0x4706A620: mov dword ptr [0x4710eb38], 0x47104bd4 */ 5685 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706A62A: ret */ 5686 RECOMP_REGS_OUT(); 5687 } 5688 5689 void sub_4706A630(void) { 5690 int _fpu_cmp = 0; 5691 uint32_t _cf = 0; 5692 int _df = 1; 5693 uint32_t _flag_k = FK_NONE; 5694 uint32_t _flag_a = 0, _flag_b = 0; 5695 uint32_t _itail_tgt = 0; 5696 RECOMP_REGS_LOCALS 5697 RECOMP_ENTER(0x4706A630u); 5698 5699 L_4706A630: 5700 PUSH32(esp, ebx); /* 0x4706A630: push ebx */ 5701 ebx = MEM32(esp + 0x8); /* 0x4706A631: mov ebx, dword ptr [esp + 8] */ 5702 PUSH32(esp, esi); /* 0x4706A635: push esi */ 5703 esi = ecx; /* 0x4706A636: mov esi, ecx */ 5704 MEM32(esi) = 0; /* 0x4706A638: mov dword ptr [esi], 0 */ 5705 MEM32(esi + 0x4) = 0; /* 0x4706A63E: mov dword ptr [esi + 4], 0 */ 5706 eax = MEM32(ebx + 0x8); /* 0x4706A645: mov eax, dword ptr [ebx + 8] */ 5707 /* test eax, eax */ /* 0x4706A648: test eax, eax */ 5708 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5709 _cf = 0; 5710 _flag_k = FK_TEST; 5711 PUSH32(esp, edi); /* 0x4706A64A: push edi */ 5712 MEM32(esi + 0x8) = eax; /* 0x4706A64B: mov dword ptr [esi + 8], eax */ 5713 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706A658; /* 0x4706A64E: jne 0x4706a658 */ 5714 L_4706A650: 5715 RECOMP_ICALL(0x4703DAC0u); /* 0x4706A650: call 0x4703dac0 */ /* not lifted */ 5716 RECOMP_FLAGS_IN(); 5717 MEM32(esi + 0x8) = eax; /* 0x4706A655: mov dword ptr [esi + 8], eax */ 5718 L_4706A658: 5719 ecx = MEM32(esi + 0x8); /* 0x4706A658: mov ecx, dword ptr [esi + 8] */ 5720 eax = MEM32(ecx); /* 0x4706A65B: mov eax, dword ptr [ecx] */ 5721 PUSH32(esp, 8); /* 0x4706A65D: push 8 */ 5722 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x4706A65F: call dword ptr [eax + 4] */ 5723 RECOMP_FLAGS_IN(); 5724 /* test eax, eax */ /* 0x4706A662: test eax, eax */ 5725 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5726 _cf = 0; 5727 _flag_k = FK_TEST; 5728 MEM32(esi) = eax; /* 0x4706A664: mov dword ptr [esi], eax */ 5729 if (TEST_Z(_flag_a, _flag_b)) goto L_4706A69F; /* 0x4706A666: je 0x4706a69f */ 5730 L_4706A668: 5731 MEM32(eax) = 0; /* 0x4706A668: mov dword ptr [eax], 0 */ 5732 eax = MEM32(esi); /* 0x4706A66E: mov eax, dword ptr [esi] */ 5733 MEM32(eax) = eax; /* 0x4706A670: mov dword ptr [eax], eax */ 5734 eax = MEM32(ebx); /* 0x4706A672: mov eax, dword ptr [ebx] */ 5735 edi = MEM32(eax); /* 0x4706A674: mov edi, dword ptr [eax] */ 5736 /* cmp edi, eax */ /* 0x4706A676: cmp edi, eax */ 5737 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5738 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5739 _flag_k = FK_CMP; 5740 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706A6AB; /* 0x4706A678: je 0x4706a6ab */ 5741 L_4706A67A: 5742 PUSH32(esp, ebp); /* 0x4706A67A: push ebp */ 5743 ebp = MEM32(0x470AC3C8); /* 0x4706A67B: mov ebp, dword ptr [0x470ac3c8] */ 5744 L_4706A681: 5745 ecx = MEM32(esi); /* 0x4706A681: mov ecx, dword ptr [esi] */ 5746 edx = MEM32(edi + 0x4); /* 0x4706A683: mov edx, dword ptr [edi + 4] */ 5747 MEM32(ecx + 0x4) = edx; /* 0x4706A686: mov dword ptr [ecx + 4], edx */ 5748 ecx = MEM32(esi + 0x8); /* 0x4706A689: mov ecx, dword ptr [esi + 8] */ 5749 eax = MEM32(ecx); /* 0x4706A68C: mov eax, dword ptr [ecx] */ 5750 PUSH32(esp, 8); /* 0x4706A68E: push 8 */ 5751 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x4706A690: call dword ptr [eax + 4] */ 5752 RECOMP_FLAGS_IN(); 5753 /* test eax, eax */ /* 0x4706A693: test eax, eax */ 5754 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5755 _cf = 0; 5756 _flag_k = FK_TEST; 5757 if (TEST_Z(_flag_a, _flag_b)) goto L_4706A6B3; /* 0x4706A695: je 0x4706a6b3 */ 5758 L_4706A697: 5759 ecx = MEM32(esi); /* 0x4706A697: mov ecx, dword ptr [esi] */ 5760 edx = MEM32(ecx); /* 0x4706A699: mov edx, dword ptr [ecx] */ 5761 MEM32(eax) = edx; /* 0x4706A69B: mov dword ptr [eax], edx */ 5762 goto L_4706A6BD; /* 0x4706A69D: jmp 0x4706a6bd */ 5763 L_4706A69F: 5764 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706A69F: call dword ptr [0x470ac3c8] */ 5765 RECOMP_FLAGS_IN(); 5766 MEM32(eax) = 0xCu; /* 0x4706A6A5: mov dword ptr [eax], 0xc */ 5767 L_4706A6AB: 5768 edi = POP32_VAL(esp); /* 0x4706A6AB: pop edi */ 5769 eax = esi; /* 0x4706A6AC: mov eax, esi */ 5770 esi = POP32_VAL(esp); /* 0x4706A6AE: pop esi */ 5771 ebx = POP32_VAL(esp); /* 0x4706A6AF: pop ebx */ 5772 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706A6B0: ret 4 */ 5773 L_4706A6B3: 5774 RECOMP_ICALL(ebp); /* 0x4706A6B3: call ebp */ 5775 RECOMP_FLAGS_IN(); 5776 MEM32(eax) = 0xCu; /* 0x4706A6B5: mov dword ptr [eax], 0xc */ 5777 goto L_4706A6C6; /* 0x4706A6BB: jmp 0x4706a6c6 */ 5778 L_4706A6BD: 5779 ecx = MEM32(esi); /* 0x4706A6BD: mov ecx, dword ptr [esi] */ 5780 MEM32(ecx) = eax; /* 0x4706A6BF: mov dword ptr [ecx], eax */ 5781 MEM32(esi) = eax; /* 0x4706A6C1: mov dword ptr [esi], eax */ 5782 _flag_a = (uint32_t)(MEM32(esi + 0x4)); _flag_b = (uint32_t)(1); 5783 MEM32(esi + 0x4) = MEM32(esi + 0x4) + 1; /* 0x4706A6C3: inc dword ptr [esi + 4] */ 5784 _flag_k = FK_INC; 5785 L_4706A6C6: 5786 edi = MEM32(edi); /* 0x4706A6C6: mov edi, dword ptr [edi] */ 5787 /* cmp edi, MEM32(ebx) */ /* 0x4706A6C8: cmp edi, dword ptr [ebx] */ 5788 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebx)); 5789 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5790 _flag_k = FK_CMP; 5791 RECOMP_BACKEDGE(); 5792 if (CMP_NE(_flag_a, _flag_b)) goto L_4706A681; /* 0x4706A6CA: jne 0x4706a681 */ 5793 L_4706A6CC: 5794 ebp = POP32_VAL(esp); /* 0x4706A6CC: pop ebp */ 5795 edi = POP32_VAL(esp); /* 0x4706A6CD: pop edi */ 5796 eax = esi; /* 0x4706A6CE: mov eax, esi */ 5797 esi = POP32_VAL(esp); /* 0x4706A6D0: pop esi */ 5798 ebx = POP32_VAL(esp); /* 0x4706A6D1: pop ebx */ 5799 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706A6D2: ret 4 */ 5800 RECOMP_REGS_OUT(); 5801 } 5802 5803 void sub_4706A6E0(void) { 5804 int _fpu_cmp = 0; 5805 uint32_t _cf = 0; 5806 int _df = 1; 5807 uint32_t _flag_k = FK_NONE; 5808 uint32_t _flag_a = 0, _flag_b = 0; 5809 uint32_t _itail_tgt = 0; 5810 RECOMP_REGS_LOCALS 5811 RECOMP_ENTER(0x4706A6E0u); 5812 5813 L_4706A6E0: 5814 PUSH32(esp, ebx); /* 0x4706A6E0: push ebx */ 5815 ebx = MEM32(esp + 0x8); /* 0x4706A6E1: mov ebx, dword ptr [esp + 8] */ 5816 PUSH32(esp, esi); /* 0x4706A6E5: push esi */ 5817 esi = ecx; /* 0x4706A6E6: mov esi, ecx */ 5818 /* cmp esi, ebx */ /* 0x4706A6E8: cmp esi, ebx */ 5819 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 5820 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5821 _flag_k = FK_CMP; 5822 PUSH32(esp, edi); /* 0x4706A6EA: push edi */ 5823 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706A730; /* 0x4706A6EB: je 0x4706a730 */ 5824 L_4706A6ED: 5825 eax = MEM32(esi); /* 0x4706A6ED: mov eax, dword ptr [esi] */ 5826 edi = MEM32(eax); /* 0x4706A6EF: mov edi, dword ptr [eax] */ 5827 /* cmp edi, eax */ /* 0x4706A6F1: cmp edi, eax */ 5828 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5829 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5830 _flag_k = FK_CMP; 5831 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706A713; /* 0x4706A6F3: je 0x4706a713 */ 5832 L_4706A6F5: 5833 eax = edi; /* 0x4706A6F5: mov eax, edi */ 5834 /* test eax, eax */ /* 0x4706A6F7: test eax, eax */ 5835 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5836 _cf = 0; 5837 _flag_k = FK_TEST; 5838 edi = MEM32(edi); /* 0x4706A6F9: mov edi, dword ptr [edi] */ 5839 if (TEST_Z(_flag_a, _flag_b)) goto L_4706A706; /* 0x4706A6FB: je 0x4706a706 */ 5840 L_4706A6FD: 5841 ecx = MEM32(esi + 0x8); /* 0x4706A6FD: mov ecx, dword ptr [esi + 8] */ 5842 edx = MEM32(ecx); /* 0x4706A700: mov edx, dword ptr [ecx] */ 5843 PUSH32(esp, eax); /* 0x4706A702: push eax */ 5844 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4706A703: call dword ptr [edx + 0xc] */ 5845 RECOMP_FLAGS_IN(); 5846 L_4706A706: 5847 ecx = MEM32(esi + 0x4); /* 0x4706A706: mov ecx, dword ptr [esi + 4] */ 5848 eax = MEM32(esi); /* 0x4706A709: mov eax, dword ptr [esi] */ 5849 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5850 ecx = ecx - 1; /* 0x4706A70B: dec ecx */ 5851 _flag_k = FK_DEC; 5852 /* cmp edi, eax */ /* 0x4706A70C: cmp edi, eax */ 5853 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5854 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5855 _flag_k = FK_CMP; 5856 MEM32(esi + 0x4) = ecx; /* 0x4706A70E: mov dword ptr [esi + 4], ecx */ 5857 RECOMP_BACKEDGE(); 5858 if (CMP_NE(_flag_a, _flag_b)) goto L_4706A6F5; /* 0x4706A711: jne 0x4706a6f5 */ 5859 L_4706A713: 5860 eax = MEM32(esi); /* 0x4706A713: mov eax, dword ptr [esi] */ 5861 MEM32(eax) = eax; /* 0x4706A715: mov dword ptr [eax], eax */ 5862 eax = MEM32(ebx); /* 0x4706A717: mov eax, dword ptr [ebx] */ 5863 edi = MEM32(eax); /* 0x4706A719: mov edi, dword ptr [eax] */ 5864 /* cmp edi, eax */ /* 0x4706A71B: cmp edi, eax */ 5865 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5866 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5867 _flag_k = FK_CMP; 5868 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706A730; /* 0x4706A71D: je 0x4706a730 */ 5869 L_4706A71F: 5870 eax = edi + 0x4; /* 0x4706A71F: lea eax, [edi + 4] */ 5871 PUSH32(esp, eax); /* 0x4706A722: push eax */ 5872 ecx = esi; /* 0x4706A723: mov ecx, esi */ 5873 RECOMP_ICALL(0x47067230u); /* 0x4706A725: call 0x47067230 */ /* not lifted */ 5874 RECOMP_FLAGS_IN(); 5875 edi = MEM32(edi); /* 0x4706A72A: mov edi, dword ptr [edi] */ 5876 /* cmp edi, MEM32(ebx) */ /* 0x4706A72C: cmp edi, dword ptr [ebx] */ 5877 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebx)); 5878 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5879 _flag_k = FK_CMP; 5880 RECOMP_BACKEDGE(); 5881 if (CMP_NE(_flag_a, _flag_b)) goto L_4706A71F; /* 0x4706A72E: jne 0x4706a71f */ 5882 L_4706A730: 5883 edi = POP32_VAL(esp); /* 0x4706A730: pop edi */ 5884 eax = esi; /* 0x4706A731: mov eax, esi */ 5885 esi = POP32_VAL(esp); /* 0x4706A733: pop esi */ 5886 ebx = POP32_VAL(esp); /* 0x4706A734: pop ebx */ 5887 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706A735: ret 4 */ 5888 RECOMP_REGS_OUT(); 5889 } 5890 5891 void sub_4706A740(void) { 5892 int _fpu_cmp = 0; 5893 uint32_t _cf = 0; 5894 int _df = 1; 5895 uint32_t _flag_k = FK_NONE; 5896 uint32_t _flag_a = 0, _flag_b = 0; 5897 uint32_t _itail_tgt = 0; 5898 RECOMP_REGS_LOCALS 5899 RECOMP_ENTER(0x4706A740u); 5900 5901 L_4706A740: 5902 PUSH32(esp, ebx); /* 0x4706A740: push ebx */ 5903 PUSH32(esp, ebp); /* 0x4706A741: push ebp */ 5904 ebp = MEM32(esp + 0xC); /* 0x4706A742: mov ebp, dword ptr [esp + 0xc] */ 5905 eax = MEM32(ebp + 0x4); /* 0x4706A746: mov eax, dword ptr [ebp + 4] */ 5906 PUSH32(esp, esi); /* 0x4706A749: push esi */ 5907 ebx = ecx; /* 0x4706A74A: mov ebx, ecx */ 5908 PUSH32(esp, edi); /* 0x4706A74C: push edi */ 5909 ecx = ebp + 0x8; /* 0x4706A74D: lea ecx, [ebp + 8] */ 5910 PUSH32(esp, ecx); /* 0x4706A750: push ecx */ 5911 ecx = ebx + 0x8; /* 0x4706A751: lea ecx, [ebx + 8] */ 5912 MEM32(ebx + 0x4) = eax; /* 0x4706A754: mov dword ptr [ebx + 4], eax */ 5913 RECOMP_ICALL(0x47031A30u); /* 0x4706A757: call 0x47031a30 */ /* not lifted */ 5914 RECOMP_FLAGS_IN(); 5915 edx = MEM32(ebp + 0x24); /* 0x4706A75C: mov edx, dword ptr [ebp + 0x24] */ 5916 MEM32(ebx + 0x24) = edx; /* 0x4706A75F: mov dword ptr [ebx + 0x24], edx */ 5917 esi = ebp + 0x28; /* 0x4706A762: lea esi, [ebp + 0x28] */ 5918 edi = ebx + 0x28; /* 0x4706A765: lea edi, [ebx + 0x28] */ 5919 ecx = 0x12u; /* 0x4706A768: mov ecx, 0x12 */ 5920 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4706A76D: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 5921 eax = MEM32(ebp + 0x70); /* 0x4706A76F: mov eax, dword ptr [ebp + 0x70] */ 5922 edi = POP32_VAL(esp); /* 0x4706A772: pop edi */ 5923 esi = POP32_VAL(esp); /* 0x4706A773: pop esi */ 5924 MEM32(ebx + 0x70) = eax; /* 0x4706A774: mov dword ptr [ebx + 0x70], eax */ 5925 ebp = POP32_VAL(esp); /* 0x4706A777: pop ebp */ 5926 MEM32(ebx) = 0x470AEA98u; /* 0x4706A778: mov dword ptr [ebx], 0x470aea98 */ 5927 eax = ebx; /* 0x4706A77E: mov eax, ebx */ 5928 ebx = POP32_VAL(esp); /* 0x4706A780: pop ebx */ 5929 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706A781: ret 4 */ 5930 RECOMP_REGS_OUT(); 5931 } 5932 5933 void sub_4706A790(void) { 5934 int _fpu_cmp = 0; 5935 uint32_t _cf = 0; 5936 int _df = 1; 5937 uint32_t _flag_k = FK_NONE; 5938 uint32_t _flag_a = 0, _flag_b = 0; 5939 uint32_t _itail_tgt = 0; 5940 RECOMP_REGS_LOCALS 5941 RECOMP_ENTER(0x4706A790u); 5942 5943 L_4706A790: 5944 edx = MEM32(esp + 0x4); /* 0x4706A790: mov edx, dword ptr [esp + 4] */ 5945 eax = ecx; /* 0x4706A794: mov eax, ecx */ 5946 ecx = MEM32(edx + 0x4); /* 0x4706A796: mov ecx, dword ptr [edx + 4] */ 5947 MEM32(eax + 0x4) = ecx; /* 0x4706A799: mov dword ptr [eax + 4], ecx */ 5948 ecx = MEM32(edx + 0xC); /* 0x4706A79C: mov ecx, dword ptr [edx + 0xc] */ 5949 MEM32(eax + 0xC) = ecx; /* 0x4706A79F: mov dword ptr [eax + 0xc], ecx */ 5950 ecx = MEM32(edx + 0x10); /* 0x4706A7A2: mov ecx, dword ptr [edx + 0x10] */ 5951 MEM32(eax + 0x10) = ecx; /* 0x4706A7A5: mov dword ptr [eax + 0x10], ecx */ 5952 PUSH32(esp, esi); /* 0x4706A7A8: push esi */ 5953 PUSH32(esp, edi); /* 0x4706A7A9: push edi */ 5954 ecx = edx + 0x14; /* 0x4706A7AA: lea ecx, [edx + 0x14] */ 5955 edi = MEM32(ecx); /* 0x4706A7AD: mov edi, dword ptr [ecx] */ 5956 esi = eax + 0x14; /* 0x4706A7AF: lea esi, [eax + 0x14] */ 5957 MEM32(esi) = edi; /* 0x4706A7B2: mov dword ptr [esi], edi */ 5958 edi = MEM32(ecx + 0x4); /* 0x4706A7B4: mov edi, dword ptr [ecx + 4] */ 5959 MEM32(esi + 0x4) = edi; /* 0x4706A7B7: mov dword ptr [esi + 4], edi */ 5960 edi = MEM32(ecx + 0x8); /* 0x4706A7BA: mov edi, dword ptr [ecx + 8] */ 5961 MEM32(esi + 0x8) = edi; /* 0x4706A7BD: mov dword ptr [esi + 8], edi */ 5962 ecx = MEM32(ecx + 0xC); /* 0x4706A7C0: mov ecx, dword ptr [ecx + 0xc] */ 5963 MEM32(esi + 0xC) = ecx; /* 0x4706A7C3: mov dword ptr [esi + 0xc], ecx */ 5964 ecx = MEM32(edx + 0x24); /* 0x4706A7C6: mov ecx, dword ptr [edx + 0x24] */ 5965 MEM32(eax + 0x24) = ecx; /* 0x4706A7C9: mov dword ptr [eax + 0x24], ecx */ 5966 esi = edx + 0x28; /* 0x4706A7CC: lea esi, [edx + 0x28] */ 5967 edi = eax + 0x28; /* 0x4706A7CF: lea edi, [eax + 0x28] */ 5968 ecx = 0x12u; /* 0x4706A7D2: mov ecx, 0x12 */ 5969 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4706A7D7: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 5970 edx = MEM32(edx + 0x70); /* 0x4706A7D9: mov edx, dword ptr [edx + 0x70] */ 5971 edi = POP32_VAL(esp); /* 0x4706A7DC: pop edi */ 5972 MEM32(eax + 0x70) = edx; /* 0x4706A7DD: mov dword ptr [eax + 0x70], edx */ 5973 esi = POP32_VAL(esp); /* 0x4706A7E0: pop esi */ 5974 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706A7E1: ret 4 */ 5975 RECOMP_REGS_OUT(); 5976 } 5977 5978 void sub_4706A7F0(void) { 5979 int _fpu_cmp = 0; 5980 uint32_t _cf = 0; 5981 int _df = 1; 5982 uint32_t _flag_k = FK_NONE; 5983 uint32_t _flag_a = 0, _flag_b = 0; 5984 uint32_t _itail_tgt = 0; 5985 RECOMP_REGS_LOCALS 5986 RECOMP_ENTER(0x4706A7F0u); 5987 5988 L_4706A7F0: 5989 PUSH32(esp, ebx); /* 0x4706A7F0: push ebx */ 5990 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x4706A7F1: mov bl, byte ptr [esp + 8] */ 5991 /* test LO8(ebx), 2 */ /* 0x4706A7F5: test bl, 2 */ 5992 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 5993 _cf = 0; 5994 _flag_k = FK_NARROW(FK_TEST, 24); 5995 PUSH32(esp, esi); /* 0x4706A7F8: push esi */ 5996 esi = ecx; /* 0x4706A7F9: mov esi, ecx */ 5997 if (TEST_Z(_flag_a, _flag_b)) goto L_4706A828; /* 0x4706A7FB: je 0x4706a828 */ 5998 L_4706A7FD: 5999 eax = MEM32(esi + (-0x4)); /* 0x4706A7FD: mov eax, dword ptr [esi - 4] */ 6000 PUSH32(esp, edi); /* 0x4706A800: push edi */ 6001 PUSH32(esp, 0x4706A850u); /* 0x4706A801: push 0x4706a850 */ 6002 edi = esi + (-0x4); /* 0x4706A806: lea edi, [esi - 4] */ 6003 PUSH32(esp, eax); /* 0x4706A809: push eax */ 6004 PUSH32(esp, 0x74u); /* 0x4706A80A: push 0x74 */ 6005 PUSH32(esp, esi); /* 0x4706A80C: push esi */ 6006 RECOMP_ICALL(0x470A32EBu); /* 0x4706A80D: call 0x470a32eb */ /* not lifted */ 6007 RECOMP_FLAGS_IN(); 6008 /* test LO8(ebx), 1 */ /* 0x4706A812: test bl, 1 */ 6009 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 6010 _cf = 0; 6011 _flag_k = FK_NARROW(FK_TEST, 24); 6012 if (TEST_Z(_flag_a, _flag_b)) goto L_4706A820; /* 0x4706A815: je 0x4706a820 */ 6013 L_4706A817: 6014 PUSH32(esp, edi); /* 0x4706A817: push edi */ 6015 RECOMP_ICALL(0x470A32A2u); /* 0x4706A818: call 0x470a32a2 */ /* not lifted */ 6016 RECOMP_FLAGS_IN(); 6017 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6018 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6019 esp = esp + 4; /* 0x4706A81D: add esp, 4 */ 6020 _flag_k = FK_ADD; 6021 L_4706A820: 6022 eax = edi; /* 0x4706A820: mov eax, edi */ 6023 edi = POP32_VAL(esp); /* 0x4706A822: pop edi */ 6024 esi = POP32_VAL(esp); /* 0x4706A823: pop esi */ 6025 ebx = POP32_VAL(esp); /* 0x4706A824: pop ebx */ 6026 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706A825: ret 4 */ 6027 L_4706A828: 6028 ecx = esi; /* 0x4706A828: mov ecx, esi */ 6029 RECOMP_ICALL(0x4706A850u); /* 0x4706A82A: call 0x4706a850 */ /* not lifted */ 6030 RECOMP_FLAGS_IN(); 6031 /* test LO8(ebx), 1 */ /* 0x4706A82F: test bl, 1 */ 6032 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 6033 _cf = 0; 6034 _flag_k = FK_NARROW(FK_TEST, 24); 6035 if (TEST_Z(_flag_a, _flag_b)) goto L_4706A83D; /* 0x4706A832: je 0x4706a83d */ 6036 L_4706A834: 6037 PUSH32(esp, esi); /* 0x4706A834: push esi */ 6038 RECOMP_ICALL(0x470A32A2u); /* 0x4706A835: call 0x470a32a2 */ /* not lifted */ 6039 RECOMP_FLAGS_IN(); 6040 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6041 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6042 esp = esp + 4; /* 0x4706A83A: add esp, 4 */ 6043 _flag_k = FK_ADD; 6044 L_4706A83D: 6045 eax = esi; /* 0x4706A83D: mov eax, esi */ 6046 esi = POP32_VAL(esp); /* 0x4706A83F: pop esi */ 6047 ebx = POP32_VAL(esp); /* 0x4706A840: pop ebx */ 6048 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706A841: ret 4 */ 6049 RECOMP_REGS_OUT(); 6050 } 6051 6052 void sub_4706A850(void) { 6053 int _fpu_cmp = 0; 6054 uint32_t _cf = 0; 6055 int _df = 1; 6056 uint32_t _flag_k = FK_NONE; 6057 uint32_t _flag_a = 0, _flag_b = 0; 6058 uint32_t _itail_tgt = 0; 6059 RECOMP_REGS_LOCALS 6060 RECOMP_ENTER(0x4706A850u); 6061 6062 goto L_4706A850; 6063 L_47014F70: 6064 MEM32(ecx) = 0x470AC510u; /* 0x47014F70: mov dword ptr [ecx], 0x470ac510 */ 6065 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014F76: ret */ 6066 L_4706A850: 6067 MEM32(ecx) = 0x470AD258u; /* 0x4706A850: mov dword ptr [ecx], 0x470ad258 */ 6068 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 6069 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6070 ecx = ecx + 8; /* 0x4706A856: add ecx, 8 */ 6071 _flag_k = FK_ADD; 6072 MEM32(ecx) = 0x470AC520u; /* 0x4706A859: mov dword ptr [ecx], 0x470ac520 */ 6073 RECOMP_BACKEDGE(); 6074 goto L_47014F70; /* 0x4706A85F: jmp 0x47014f70 */ 6075 { RECOMP_REGS_OUT(); return; } /* end of function */ 6076 RECOMP_REGS_OUT(); 6077 } 6078 6079 void sub_4706A870(void) { 6080 int _fpu_cmp = 0; 6081 uint32_t _cf = 0; 6082 int _df = 1; 6083 uint32_t _flag_k = FK_NONE; 6084 uint32_t _flag_a = 0, _flag_b = 0; 6085 uint32_t _itail_tgt = 0; 6086 RECOMP_REGS_LOCALS 6087 RECOMP_ENTER(0x4706A870u); 6088 6089 L_4706A870: 6090 eax = MEM32(esp + 0x4); /* 0x4706A870: mov eax, dword ptr [esp + 4] */ 6091 PUSH32(esp, esi); /* 0x4706A874: push esi */ 6092 PUSH32(esp, edi); /* 0x4706A875: push edi */ 6093 esi = ecx + 0x28; /* 0x4706A876: lea esi, [ecx + 0x28] */ 6094 ecx = 0x12u; /* 0x4706A879: mov ecx, 0x12 */ 6095 edi = eax; /* 0x4706A87E: mov edi, eax */ 6096 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4706A880: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 6097 edi = POP32_VAL(esp); /* 0x4706A882: pop edi */ 6098 esi = POP32_VAL(esp); /* 0x4706A883: pop esi */ 6099 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706A884: ret 4 */ 6100 RECOMP_REGS_OUT(); 6101 } 6102 6103 void sub_4706A890(void) { 6104 int _fpu_cmp = 0; 6105 uint32_t _cf = 0; 6106 int _df = 1; 6107 uint32_t _flag_k = FK_NONE; 6108 uint32_t _flag_a = 0, _flag_b = 0; 6109 uint32_t _itail_tgt = 0; 6110 RECOMP_REGS_LOCALS 6111 RECOMP_ENTER(0x4706A890u); 6112 6113 L_4706A890: 6114 PUSH32(esp, esi); /* 0x4706A890: push esi */ 6115 esi = MEM32(esp + 0x8); /* 0x4706A891: mov esi, dword ptr [esp + 8] */ 6116 PUSH32(esp, edi); /* 0x4706A895: push edi */ 6117 edi = ecx + 0x28; /* 0x4706A896: lea edi, [ecx + 0x28] */ 6118 ecx = 0x12u; /* 0x4706A899: mov ecx, 0x12 */ 6119 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4706A89E: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 6120 edi = POP32_VAL(esp); /* 0x4706A8A0: pop edi */ 6121 esi = POP32_VAL(esp); /* 0x4706A8A1: pop esi */ 6122 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706A8A2: ret 4 */ 6123 RECOMP_REGS_OUT(); 6124 } 6125 6126 void sub_4706A8B0(void) { 6127 int _fpu_cmp = 0; 6128 uint32_t _cf = 0; 6129 int _df = 1; 6130 uint32_t _flag_k = FK_NONE; 6131 uint32_t _flag_a = 0, _flag_b = 0; 6132 uint32_t _itail_tgt = 0; 6133 RECOMP_REGS_LOCALS 6134 RECOMP_ENTER(0x4706A8B0u); 6135 6136 L_4706A8B0: 6137 PUSH32(esp, ecx); /* 0x4706A8B0: push ecx */ 6138 PUSH32(esp, esi); /* 0x4706A8B1: push esi */ 6139 esi = MEM32(esp + 0xC); /* 0x4706A8B2: mov esi, dword ptr [esp + 0xc] */ 6140 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 6141 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6142 ecx = ecx + 8; /* 0x4706A8B6: add ecx, 8 */ 6143 _flag_k = FK_ADD; 6144 PUSH32(esp, ecx); /* 0x4706A8B9: push ecx */ 6145 ecx = esi; /* 0x4706A8BA: mov ecx, esi */ 6146 MEM32(esp + 0x8) = 0; /* 0x4706A8BC: mov dword ptr [esp + 8], 0 */ 6147 RECOMP_ICALL(0x47031A30u); /* 0x4706A8C4: call 0x47031a30 */ /* not lifted */ 6148 RECOMP_FLAGS_IN(); 6149 eax = esi; /* 0x4706A8C9: mov eax, esi */ 6150 esi = POP32_VAL(esp); /* 0x4706A8CB: pop esi */ 6151 ecx = POP32_VAL(esp); /* 0x4706A8CC: pop ecx */ 6152 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706A8CD: ret 4 */ 6153 RECOMP_REGS_OUT(); 6154 } 6155 6156 void sub_4706A8D0(void) { 6157 int _fpu_cmp = 0; 6158 uint32_t _cf = 0; 6159 int _df = 1; 6160 uint32_t _flag_k = FK_NONE; 6161 uint32_t _flag_a = 0, _flag_b = 0; 6162 uint32_t _itail_tgt = 0; 6163 RECOMP_REGS_LOCALS 6164 RECOMP_ENTER(0x4706A8D0u); 6165 6166 L_4706A8D0: 6167 eax = MEM32(esp + 0x4); /* 0x4706A8D0: mov eax, dword ptr [esp + 4] */ 6168 edx = MEM32(eax + 0x4); /* 0x4706A8D4: mov edx, dword ptr [eax + 4] */ 6169 MEM32(ecx + 0xC) = edx; /* 0x4706A8D7: mov dword ptr [ecx + 0xc], edx */ 6170 edx = MEM32(eax + 0x8); /* 0x4706A8DA: mov edx, dword ptr [eax + 8] */ 6171 MEM32(ecx + 0x10) = edx; /* 0x4706A8DD: mov dword ptr [ecx + 0x10], edx */ 6172 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 6173 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6174 eax = eax + 0xCu; /* 0x4706A8E0: add eax, 0xc */ 6175 _flag_k = FK_ADD; 6176 edx = MEM32(eax); /* 0x4706A8E3: mov edx, dword ptr [eax] */ 6177 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u); 6178 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6179 ecx = ecx + 0x14u; /* 0x4706A8E5: add ecx, 0x14 */ 6180 _flag_k = FK_ADD; 6181 MEM32(ecx) = edx; /* 0x4706A8E8: mov dword ptr [ecx], edx */ 6182 edx = MEM32(eax + 0x4); /* 0x4706A8EA: mov edx, dword ptr [eax + 4] */ 6183 MEM32(ecx + 0x4) = edx; /* 0x4706A8ED: mov dword ptr [ecx + 4], edx */ 6184 edx = MEM32(eax + 0x8); /* 0x4706A8F0: mov edx, dword ptr [eax + 8] */ 6185 MEM32(ecx + 0x8) = edx; /* 0x4706A8F3: mov dword ptr [ecx + 8], edx */ 6186 eax = MEM32(eax + 0xC); /* 0x4706A8F6: mov eax, dword ptr [eax + 0xc] */ 6187 MEM32(ecx + 0xC) = eax; /* 0x4706A8F9: mov dword ptr [ecx + 0xc], eax */ 6188 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706A8FC: ret 4 */ 6189 RECOMP_REGS_OUT(); 6190 } 6191 6192 void sub_4706A900(void) { 6193 int _fpu_cmp = 0; 6194 uint32_t _cf = 0; 6195 int _df = 1; 6196 uint32_t _flag_k = FK_NONE; 6197 uint32_t _flag_a = 0, _flag_b = 0; 6198 uint32_t _itail_tgt = 0; 6199 RECOMP_REGS_LOCALS 6200 RECOMP_ENTER(0x4706A900u); 6201 6202 L_4706A900: 6203 MEM32(0x4710EB34) = 0x47109DC4u; /* 0x4706A900: mov dword ptr [0x4710eb34], 0x47109dc4 */ 6204 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706A90A: ret */ 6205 RECOMP_REGS_OUT(); 6206 } 6207 6208 void sub_4706A910(void) { 6209 int _fpu_cmp = 0; 6210 uint32_t _cf = 0; 6211 int _df = 1; 6212 uint32_t _flag_k = FK_NONE; 6213 uint32_t _flag_a = 0, _flag_b = 0; 6214 uint32_t _itail_tgt = 0; 6215 RECOMP_REGS_LOCALS 6216 RECOMP_ENTER(0x4706A910u); 6217 6218 L_4706A910: 6219 PUSH32(esp, esi); /* 0x4706A910: push esi */ 6220 esi = ecx; /* 0x4706A911: mov esi, ecx */ 6221 MEM32(esi) = 0; /* 0x4706A913: mov dword ptr [esi], 0 */ 6222 MEM32(esi + 0x4) = 0; /* 0x4706A919: mov dword ptr [esi + 4], 0 */ 6223 MEM32(esi + 0x8) = 0; /* 0x4706A920: mov dword ptr [esi + 8], 0 */ 6224 RECOMP_ICALL(0x4703DAC0u); /* 0x4706A927: call 0x4703dac0 */ /* not lifted */ 6225 RECOMP_FLAGS_IN(); 6226 MEM32(esi + 0x8) = eax; /* 0x4706A92C: mov dword ptr [esi + 8], eax */ 6227 edx = MEM32(eax); /* 0x4706A92F: mov edx, dword ptr [eax] */ 6228 PUSH32(esp, 8); /* 0x4706A931: push 8 */ 6229 ecx = eax; /* 0x4706A933: mov ecx, eax */ 6230 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4706A935: call dword ptr [edx + 4] */ 6231 RECOMP_FLAGS_IN(); 6232 /* test eax, eax */ /* 0x4706A938: test eax, eax */ 6233 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6234 _cf = 0; 6235 _flag_k = FK_TEST; 6236 MEM32(esi) = eax; /* 0x4706A93A: mov dword ptr [esi], eax */ 6237 if (TEST_Z(_flag_a, _flag_b)) goto L_4706A94C; /* 0x4706A93C: je 0x4706a94c */ 6238 L_4706A93E: 6239 MEM32(eax) = 0; /* 0x4706A93E: mov dword ptr [eax], 0 */ 6240 eax = MEM32(esi); /* 0x4706A944: mov eax, dword ptr [esi] */ 6241 MEM32(eax) = eax; /* 0x4706A946: mov dword ptr [eax], eax */ 6242 eax = esi; /* 0x4706A948: mov eax, esi */ 6243 esi = POP32_VAL(esp); /* 0x4706A94A: pop esi */ 6244 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706A94B: ret */ 6245 L_4706A94C: 6246 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706A94C: call dword ptr [0x470ac3c8] */ 6247 RECOMP_FLAGS_IN(); 6248 MEM32(eax) = 0xCu; /* 0x4706A952: mov dword ptr [eax], 0xc */ 6249 eax = esi; /* 0x4706A958: mov eax, esi */ 6250 esi = POP32_VAL(esp); /* 0x4706A95A: pop esi */ 6251 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706A95B: ret */ 6252 RECOMP_REGS_OUT(); 6253 } 6254 6255 void sub_4706A960(void) { 6256 int _fpu_cmp = 0; 6257 uint32_t _cf = 0; 6258 int _df = 1; 6259 uint32_t _flag_k = FK_NONE; 6260 uint32_t _flag_a = 0, _flag_b = 0; 6261 uint32_t _itail_tgt = 0; 6262 RECOMP_REGS_LOCALS 6263 RECOMP_ENTER(0x4706A960u); 6264 6265 L_4706A960: 6266 PUSH32(esp, esi); /* 0x4706A960: push esi */ 6267 esi = ecx; /* 0x4706A961: mov esi, ecx */ 6268 eax = MEM32(esi); /* 0x4706A963: mov eax, dword ptr [esi] */ 6269 PUSH32(esp, edi); /* 0x4706A965: push edi */ 6270 edi = MEM32(eax); /* 0x4706A966: mov edi, dword ptr [eax] */ 6271 /* cmp edi, eax */ /* 0x4706A968: cmp edi, eax */ 6272 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6273 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6274 _flag_k = FK_CMP; 6275 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706A98A; /* 0x4706A96A: je 0x4706a98a */ 6276 L_4706A96C: 6277 eax = edi; /* 0x4706A96C: mov eax, edi */ 6278 /* test eax, eax */ /* 0x4706A96E: test eax, eax */ 6279 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6280 _cf = 0; 6281 _flag_k = FK_TEST; 6282 edi = MEM32(edi); /* 0x4706A970: mov edi, dword ptr [edi] */ 6283 if (TEST_Z(_flag_a, _flag_b)) goto L_4706A97D; /* 0x4706A972: je 0x4706a97d */ 6284 L_4706A974: 6285 ecx = MEM32(esi + 0x8); /* 0x4706A974: mov ecx, dword ptr [esi + 8] */ 6286 edx = MEM32(ecx); /* 0x4706A977: mov edx, dword ptr [ecx] */ 6287 PUSH32(esp, eax); /* 0x4706A979: push eax */ 6288 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4706A97A: call dword ptr [edx + 0xc] */ 6289 RECOMP_FLAGS_IN(); 6290 L_4706A97D: 6291 ecx = MEM32(esi + 0x4); /* 0x4706A97D: mov ecx, dword ptr [esi + 4] */ 6292 eax = MEM32(esi); /* 0x4706A980: mov eax, dword ptr [esi] */ 6293 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6294 ecx = ecx - 1; /* 0x4706A982: dec ecx */ 6295 _flag_k = FK_DEC; 6296 /* cmp edi, eax */ /* 0x4706A983: cmp edi, eax */ 6297 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6298 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6299 _flag_k = FK_CMP; 6300 MEM32(esi + 0x4) = ecx; /* 0x4706A985: mov dword ptr [esi + 4], ecx */ 6301 RECOMP_BACKEDGE(); 6302 if (CMP_NE(_flag_a, _flag_b)) goto L_4706A96C; /* 0x4706A988: jne 0x4706a96c */ 6303 L_4706A98A: 6304 eax = MEM32(esi); /* 0x4706A98A: mov eax, dword ptr [esi] */ 6305 MEM32(eax) = eax; /* 0x4706A98C: mov dword ptr [eax], eax */ 6306 eax = MEM32(esi); /* 0x4706A98E: mov eax, dword ptr [esi] */ 6307 /* test eax, eax */ /* 0x4706A990: test eax, eax */ 6308 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6309 _cf = 0; 6310 _flag_k = FK_TEST; 6311 if (TEST_Z(_flag_a, _flag_b)) goto L_4706A99D; /* 0x4706A992: je 0x4706a99d */ 6312 L_4706A994: 6313 ecx = MEM32(esi + 0x8); /* 0x4706A994: mov ecx, dword ptr [esi + 8] */ 6314 edx = MEM32(ecx); /* 0x4706A997: mov edx, dword ptr [ecx] */ 6315 PUSH32(esp, eax); /* 0x4706A999: push eax */ 6316 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4706A99A: call dword ptr [edx + 0xc] */ 6317 RECOMP_FLAGS_IN(); 6318 L_4706A99D: 6319 edi = POP32_VAL(esp); /* 0x4706A99D: pop edi */ 6320 MEM32(esi) = 0; /* 0x4706A99E: mov dword ptr [esi], 0 */ 6321 esi = POP32_VAL(esp); /* 0x4706A9A4: pop esi */ 6322 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706A9A5: ret */ 6323 RECOMP_REGS_OUT(); 6324 } 6325 6326 void sub_4706A9B0(void) { 6327 int _fpu_cmp = 0; 6328 uint32_t _cf = 0; 6329 int _df = 1; 6330 uint32_t _flag_k = FK_NONE; 6331 uint32_t _flag_a = 0, _flag_b = 0; 6332 uint32_t _itail_tgt = 0; 6333 RECOMP_REGS_LOCALS 6334 RECOMP_ENTER(0x4706A9B0u); 6335 6336 L_4706A9B0: 6337 eax = MEM32(FS_BASE + (0)); /* 0x4706A9B0: mov eax, dword ptr fs:[0] */ 6338 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706A9B6: push -1 */ 6339 PUSH32(esp, 0x470A88DBu); /* 0x4706A9B8: push 0x470a88db */ 6340 PUSH32(esp, eax); /* 0x4706A9BD: push eax */ 6341 eax = MEM32(esp + 0x10); /* 0x4706A9BE: mov eax, dword ptr [esp + 0x10] */ 6342 MEM32(FS_BASE + (0)) = esp; /* 0x4706A9C2: mov dword ptr fs:[0], esp */ 6343 PUSH32(esp, ebx); /* 0x4706A9C9: push ebx */ 6344 PUSH32(esp, ebp); /* 0x4706A9CA: push ebp */ 6345 PUSH32(esp, esi); /* 0x4706A9CB: push esi */ 6346 PUSH32(esp, edi); /* 0x4706A9CC: push edi */ 6347 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6348 edi = 0; /* 0x4706A9CD: xor edi, edi */ 6349 _cf = 0; 6350 _flag_k = FK_TEST; 6351 /* cmp eax, 1 */ /* 0x4706A9CF: cmp eax, 1 */ 6352 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6353 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6354 _flag_k = FK_CMP; 6355 esi = ecx; /* 0x4706A9D2: mov esi, ecx */ 6356 if (CMP_NE(_flag_a, _flag_b)) goto L_4706AA18; /* 0x4706A9D4: jne 0x4706aa18 */ 6357 L_4706A9D6: 6358 PUSH32(esp, 0x74u); /* 0x4706A9D6: push 0x74 */ 6359 RECOMP_ICALL(0x470A33F2u); /* 0x4706A9D8: call 0x470a33f2 */ /* not lifted */ 6360 RECOMP_FLAGS_IN(); 6361 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6362 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6363 esp = esp + 4; /* 0x4706A9DD: add esp, 4 */ 6364 _flag_k = FK_ADD; 6365 MEM32(esp + 0x20) = eax; /* 0x4706A9E0: mov dword ptr [esp + 0x20], eax */ 6366 /* test eax, eax */ /* 0x4706A9E4: test eax, eax */ 6367 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6368 _cf = 0; 6369 _flag_k = FK_TEST; 6370 MEM32(esp + 0x18) = edi; /* 0x4706A9E6: mov dword ptr [esp + 0x18], edi */ 6371 if (TEST_Z(_flag_a, _flag_b)) goto L_4706A9F5; /* 0x4706A9EA: je 0x4706a9f5 */ 6372 L_4706A9EC: 6373 ecx = eax; /* 0x4706A9EC: mov ecx, eax */ 6374 RECOMP_ICALL(0x4706AE60u); /* 0x4706A9EE: call 0x4706ae60 */ /* not lifted */ 6375 RECOMP_FLAGS_IN(); 6376 goto L_4706A9F7; /* 0x4706A9F3: jmp 0x4706a9f7 */ 6377 L_4706A9F5: 6378 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6379 eax = 0; /* 0x4706A9F5: xor eax, eax */ 6380 _cf = 0; 6381 _flag_k = FK_TEST; 6382 L_4706A9F7: 6383 /* test eax, eax */ /* 0x4706A9F7: test eax, eax */ 6384 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6385 _cf = 0; 6386 _flag_k = FK_TEST; 6387 MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x4706A9F9: mov dword ptr [esp + 0x18], 0xffffffff */ 6388 edi = eax; /* 0x4706AA01: mov edi, eax */ 6389 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706AA18; /* 0x4706AA03: jne 0x4706aa18 */ 6390 L_4706AA05: 6391 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706AA05: call dword ptr [0x470ac3c8] */ 6392 RECOMP_FLAGS_IN(); 6393 MEM32(eax) = 0xCu; /* 0x4706AA0B: mov dword ptr [eax], 0xc */ 6394 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6395 eax = 0; /* 0x4706AA11: xor eax, eax */ 6396 _cf = 0; 6397 _flag_k = FK_TEST; 6398 goto L_4706AB0F; /* 0x4706AA13: jmp 0x4706ab0f */ 6399 L_4706AA18: 6400 eax = MEM32(esi); /* 0x4706AA18: mov eax, dword ptr [esi] */ 6401 MEM32(esp + 0x20) = edi; /* 0x4706AA1A: mov dword ptr [esp + 0x20], edi */ 6402 MEM32(eax + 0x4) = edi; /* 0x4706AA1E: mov dword ptr [eax + 4], edi */ 6403 ecx = MEM32(esi); /* 0x4706AA21: mov ecx, dword ptr [esi] */ 6404 eax = MEM32(ecx); /* 0x4706AA23: mov eax, dword ptr [ecx] */ 6405 edx = MEM32(esp + 0x20); /* 0x4706AA25: mov edx, dword ptr [esp + 0x20] */ 6406 /* cmp MEM32(eax + 0x4), edx */ /* 0x4706AA29: cmp dword ptr [eax + 4], edx */ 6407 _flag_a = (uint32_t)(MEM32(eax + 0x4)); _flag_b = (uint32_t)(edx); 6408 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6409 _flag_k = FK_CMP; 6410 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706AA35; /* 0x4706AA2C: je 0x4706aa35 */ 6411 L_4706AA2E: 6412 eax = MEM32(eax); /* 0x4706AA2E: mov eax, dword ptr [eax] */ 6413 /* cmp MEM32(eax + 0x4), edx */ /* 0x4706AA30: cmp dword ptr [eax + 4], edx */ 6414 _flag_a = (uint32_t)(MEM32(eax + 0x4)); _flag_b = (uint32_t)(edx); 6415 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6416 _flag_k = FK_CMP; 6417 RECOMP_BACKEDGE(); 6418 if (CMP_NE(_flag_a, _flag_b)) goto L_4706AA2E; /* 0x4706AA33: jne 0x4706aa2e */ 6419 L_4706AA35: 6420 /* cmp eax, ecx */ /* 0x4706AA35: cmp eax, ecx */ 6421 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6422 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6423 _flag_k = FK_CMP; 6424 if (CMP_NE(_flag_a, _flag_b)) goto L_4706AA4D; /* 0x4706AA37: jne 0x4706aa4d */ 6425 L_4706AA39: 6426 ecx = esp + 0x20; /* 0x4706AA39: lea ecx, [esp + 0x20] */ 6427 PUSH32(esp, ecx); /* 0x4706AA3D: push ecx */ 6428 ecx = esi; /* 0x4706AA3E: mov ecx, esi */ 6429 RECOMP_ICALL(0x47067230u); /* 0x4706AA40: call 0x47067230 */ /* not lifted */ 6430 RECOMP_FLAGS_IN(); 6431 /* test eax, eax */ /* 0x4706AA45: test eax, eax */ 6432 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6433 _cf = 0; 6434 _flag_k = FK_TEST; 6435 if (TEST_Z(_flag_a, _flag_b)) goto L_4706AB0D; /* 0x4706AA47: je 0x4706ab0d */ 6436 L_4706AA4D: 6437 ebp = MEM32(0x470AC150); /* 0x4706AA4D: mov ebp, dword ptr [0x470ac150] */ 6438 RECOMP_ICALL(ebp); /* 0x4706AA53: call ebp */ 6439 RECOMP_FLAGS_IN(); 6440 ebx = eax; /* 0x4706AA55: mov ebx, eax */ 6441 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706AA57: call dword ptr [0x470ac3c8] */ 6442 RECOMP_FLAGS_IN(); 6443 eax = MEM32(eax); /* 0x4706AA5D: mov eax, dword ptr [eax] */ 6444 /* test eax, eax */ /* 0x4706AA5F: test eax, eax */ 6445 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6446 _cf = 0; 6447 _flag_k = FK_TEST; 6448 if (TEST_Z(_flag_a, _flag_b)) goto L_4706AA65; /* 0x4706AA61: je 0x4706aa65 */ 6449 L_4706AA63: 6450 ebx = eax; /* 0x4706AA63: mov ebx, eax */ 6451 L_4706AA65: 6452 RECOMP_ICALL(0x47039020u); /* 0x4706AA65: call 0x47039020 */ /* not lifted */ 6453 RECOMP_FLAGS_IN(); 6454 esi = eax; /* 0x4706AA6A: mov esi, eax */ 6455 ecx = esi; /* 0x4706AA6C: mov ecx, esi */ 6456 RECOMP_ICALL(0x4703B210u); /* 0x4706AA6E: call 0x4703b210 */ /* not lifted */ 6457 RECOMP_FLAGS_IN(); 6458 PUSH32(esp, eax); /* 0x4706AA73: push eax */ 6459 ecx = esi; /* 0x4706AA74: mov ecx, esi */ 6460 RECOMP_ICALL(0x4703B240u); /* 0x4706AA76: call 0x4703b240 */ /* not lifted */ 6461 RECOMP_FLAGS_IN(); 6462 PUSH32(esp, eax); /* 0x4706AA7B: push eax */ 6463 ecx = esi; /* 0x4706AA7C: mov ecx, esi */ 6464 RECOMP_ICALL(0x4703B080u); /* 0x4706AA7E: call 0x4703b080 */ /* not lifted */ 6465 RECOMP_FLAGS_IN(); 6466 PUSH32(esp, eax); /* 0x4706AA83: push eax */ 6467 PUSH32(esp, ebx); /* 0x4706AA84: push ebx */ 6468 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706AA85: push -1 */ 6469 PUSH32(esp, 0x4Au); /* 0x4706AA87: push 0x4a */ 6470 PUSH32(esp, 0x47109E54u); /* 0x4706AA89: push 0x47109e54 */ 6471 ecx = esi; /* 0x4706AA8E: mov ecx, esi */ 6472 RECOMP_ICALL(0x4703A340u); /* 0x4706AA90: call 0x4703a340 */ /* not lifted */ 6473 RECOMP_FLAGS_IN(); 6474 PUSH32(esp, 0x47109E20u); /* 0x4706AA95: push 0x47109e20 */ 6475 PUSH32(esp, 0x80u); /* 0x4706AA9A: push 0x80 */ 6476 PUSH32(esp, esi); /* 0x4706AA9F: push esi */ 6477 RECOMP_ICALL(0x47039830u); /* 0x4706AAA0: call 0x47039830 */ /* not lifted */ 6478 RECOMP_FLAGS_IN(); 6479 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6480 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6481 esp = esp + 0xCu; /* 0x4706AAA5: add esp, 0xc */ 6482 _flag_k = FK_ADD; 6483 /* test edi, edi */ /* 0x4706AAA8: test edi, edi */ 6484 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6485 _cf = 0; 6486 _flag_k = FK_TEST; 6487 if (TEST_Z(_flag_a, _flag_b)) goto L_4706AAB4; /* 0x4706AAAA: je 0x4706aab4 */ 6488 L_4706AAAC: 6489 edx = MEM32(edi); /* 0x4706AAAC: mov edx, dword ptr [edi] */ 6490 PUSH32(esp, 1); /* 0x4706AAAE: push 1 */ 6491 ecx = edi; /* 0x4706AAB0: mov ecx, edi */ 6492 RECOMP_ICALL(MEM32(edx)); /* 0x4706AAB2: call dword ptr [edx] */ 6493 RECOMP_FLAGS_IN(); 6494 L_4706AAB4: 6495 RECOMP_ICALL(ebp); /* 0x4706AAB4: call ebp */ 6496 RECOMP_FLAGS_IN(); 6497 edi = eax; /* 0x4706AAB6: mov edi, eax */ 6498 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706AAB8: call dword ptr [0x470ac3c8] */ 6499 RECOMP_FLAGS_IN(); 6500 eax = MEM32(eax); /* 0x4706AABE: mov eax, dword ptr [eax] */ 6501 /* test eax, eax */ /* 0x4706AAC0: test eax, eax */ 6502 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6503 _cf = 0; 6504 _flag_k = FK_TEST; 6505 if (TEST_Z(_flag_a, _flag_b)) goto L_4706AAC6; /* 0x4706AAC2: je 0x4706aac6 */ 6506 L_4706AAC4: 6507 edi = eax; /* 0x4706AAC4: mov edi, eax */ 6508 L_4706AAC6: 6509 RECOMP_ICALL(0x47039020u); /* 0x4706AAC6: call 0x47039020 */ /* not lifted */ 6510 RECOMP_FLAGS_IN(); 6511 esi = eax; /* 0x4706AACB: mov esi, eax */ 6512 ecx = esi; /* 0x4706AACD: mov ecx, esi */ 6513 RECOMP_ICALL(0x4703B210u); /* 0x4706AACF: call 0x4703b210 */ /* not lifted */ 6514 RECOMP_FLAGS_IN(); 6515 PUSH32(esp, eax); /* 0x4706AAD4: push eax */ 6516 ecx = esi; /* 0x4706AAD5: mov ecx, esi */ 6517 RECOMP_ICALL(0x4703B240u); /* 0x4706AAD7: call 0x4703b240 */ /* not lifted */ 6518 RECOMP_FLAGS_IN(); 6519 PUSH32(esp, eax); /* 0x4706AADC: push eax */ 6520 ecx = esi; /* 0x4706AADD: mov ecx, esi */ 6521 RECOMP_ICALL(0x4703B080u); /* 0x4706AADF: call 0x4703b080 */ /* not lifted */ 6522 RECOMP_FLAGS_IN(); 6523 PUSH32(esp, eax); /* 0x4706AAE4: push eax */ 6524 PUSH32(esp, edi); /* 0x4706AAE5: push edi */ 6525 PUSH32(esp, 0); /* 0x4706AAE6: push 0 */ 6526 PUSH32(esp, 0x2Fu); /* 0x4706AAE8: push 0x2f */ 6527 PUSH32(esp, 0x47109E54u); /* 0x4706AAEA: push 0x47109e54 */ 6528 ecx = esi; /* 0x4706AAEF: mov ecx, esi */ 6529 RECOMP_ICALL(0x4703A340u); /* 0x4706AAF1: call 0x4703a340 */ /* not lifted */ 6530 RECOMP_FLAGS_IN(); 6531 PUSH32(esp, 0x47109E04u); /* 0x4706AAF6: push 0x47109e04 */ 6532 PUSH32(esp, 0x80u); /* 0x4706AAFB: push 0x80 */ 6533 PUSH32(esp, esi); /* 0x4706AB00: push esi */ 6534 RECOMP_ICALL(0x47039830u); /* 0x4706AB01: call 0x47039830 */ /* not lifted */ 6535 RECOMP_FLAGS_IN(); 6536 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6537 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6538 esp = esp + 0xCu; /* 0x4706AB06: add esp, 0xc */ 6539 _flag_k = FK_ADD; 6540 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6541 eax = 0; /* 0x4706AB09: xor eax, eax */ 6542 _cf = 0; 6543 _flag_k = FK_TEST; 6544 goto L_4706AB0F; /* 0x4706AB0B: jmp 0x4706ab0f */ 6545 L_4706AB0D: 6546 eax = edi; /* 0x4706AB0D: mov eax, edi */ 6547 L_4706AB0F: 6548 ecx = MEM32(esp + 0x10); /* 0x4706AB0F: mov ecx, dword ptr [esp + 0x10] */ 6549 edi = POP32_VAL(esp); /* 0x4706AB13: pop edi */ 6550 esi = POP32_VAL(esp); /* 0x4706AB14: pop esi */ 6551 ebp = POP32_VAL(esp); /* 0x4706AB15: pop ebp */ 6552 MEM32(FS_BASE + (0)) = ecx; /* 0x4706AB16: mov dword ptr fs:[0], ecx */ 6553 ebx = POP32_VAL(esp); /* 0x4706AB1D: pop ebx */ 6554 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6555 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6556 esp = esp + 0xCu; /* 0x4706AB1E: add esp, 0xc */ 6557 _flag_k = FK_ADD; 6558 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706AB21: ret 4 */ 6559 RECOMP_REGS_OUT(); 6560 } 6561 6562 void sub_4706AB0F(void) { 6563 int _fpu_cmp = 0; 6564 uint32_t _cf = 0; 6565 int _df = 1; 6566 uint32_t _flag_k = FK_NONE; 6567 uint32_t _flag_a = 0, _flag_b = 0; 6568 uint32_t _itail_tgt = 0; 6569 RECOMP_REGS_LOCALS 6570 RECOMP_ENTER(0x4706AB0Fu); 6571 6572 L_4706AB0F: 6573 ecx = MEM32(esp + 0x10); /* 0x4706AB0F: mov ecx, dword ptr [esp + 0x10] */ 6574 edi = POP32_VAL(esp); /* 0x4706AB13: pop edi */ 6575 esi = POP32_VAL(esp); /* 0x4706AB14: pop esi */ 6576 ebp = POP32_VAL(esp); /* 0x4706AB15: pop ebp */ 6577 MEM32(FS_BASE + (0)) = ecx; /* 0x4706AB16: mov dword ptr fs:[0], ecx */ 6578 ebx = POP32_VAL(esp); /* 0x4706AB1D: pop ebx */ 6579 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6580 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6581 esp = esp + 0xCu; /* 0x4706AB1E: add esp, 0xc */ 6582 _flag_k = FK_ADD; 6583 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706AB21: ret 4 */ 6584 RECOMP_REGS_OUT(); 6585 } 6586 6587 void sub_4706AB30(void) { 6588 int _fpu_cmp = 0; 6589 uint32_t _cf = 0; 6590 int _df = 1; 6591 uint32_t _flag_k = FK_NONE; 6592 uint32_t _flag_a = 0, _flag_b = 0; 6593 uint32_t _itail_tgt = 0; 6594 RECOMP_REGS_LOCALS 6595 RECOMP_ENTER(0x4706AB30u); 6596 6597 L_4706AB30: 6598 PUSH32(esp, ebx); /* 0x4706AB30: push ebx */ 6599 PUSH32(esp, esi); /* 0x4706AB31: push esi */ 6600 esi = MEM32(esp + 0xC); /* 0x4706AB32: mov esi, dword ptr [esp + 0xc] */ 6601 /* test esi, esi */ /* 0x4706AB36: test esi, esi */ 6602 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 6603 _cf = 0; 6604 _flag_k = FK_TEST; 6605 PUSH32(esp, edi); /* 0x4706AB38: push edi */ 6606 if (TEST_Z(_flag_a, _flag_b)) goto L_4706AB72; /* 0x4706AB39: je 0x4706ab72 */ 6607 L_4706AB3B: 6608 eax = MEM32(ecx); /* 0x4706AB3B: mov eax, dword ptr [ecx] */ 6609 MEM32(eax + 0x4) = esi; /* 0x4706AB3D: mov dword ptr [eax + 4], esi */ 6610 edi = MEM32(ecx); /* 0x4706AB40: mov edi, dword ptr [ecx] */ 6611 eax = edi; /* 0x4706AB42: mov eax, edi */ 6612 edx = MEM32(eax); /* 0x4706AB44: mov edx, dword ptr [eax] */ 6613 /* cmp MEM32(edx + 0x4), esi */ /* 0x4706AB46: cmp dword ptr [edx + 4], esi */ 6614 _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(esi); 6615 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6616 _flag_k = FK_CMP; 6617 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706AB54; /* 0x4706AB49: je 0x4706ab54 */ 6618 L_4706AB4B: 6619 eax = edx; /* 0x4706AB4B: mov eax, edx */ 6620 edx = MEM32(eax); /* 0x4706AB4D: mov edx, dword ptr [eax] */ 6621 /* cmp MEM32(edx + 0x4), esi */ /* 0x4706AB4F: cmp dword ptr [edx + 4], esi */ 6622 _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(esi); 6623 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6624 _flag_k = FK_CMP; 6625 RECOMP_BACKEDGE(); 6626 if (CMP_NE(_flag_a, _flag_b)) goto L_4706AB4B; /* 0x4706AB52: jne 0x4706ab4b */ 6627 L_4706AB54: 6628 edx = MEM32(eax); /* 0x4706AB54: mov edx, dword ptr [eax] */ 6629 /* cmp edx, edi */ /* 0x4706AB56: cmp edx, edi */ 6630 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 6631 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6632 _flag_k = FK_CMP; 6633 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706AB7A; /* 0x4706AB58: je 0x4706ab7a */ 6634 L_4706AB5A: 6635 esi = MEM32(edx); /* 0x4706AB5A: mov esi, dword ptr [edx] */ 6636 MEM32(eax) = esi; /* 0x4706AB5C: mov dword ptr [eax], esi */ 6637 esi = MEM32(ecx + 0x4); /* 0x4706AB5E: mov esi, dword ptr [ecx + 4] */ 6638 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 6639 esi = esi - 1; /* 0x4706AB61: dec esi */ 6640 _flag_k = FK_DEC; 6641 /* test edx, edx */ /* 0x4706AB62: test edx, edx */ 6642 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 6643 _cf = 0; 6644 _flag_k = FK_TEST; 6645 MEM32(ecx + 0x4) = esi; /* 0x4706AB64: mov dword ptr [ecx + 4], esi */ 6646 if (TEST_Z(_flag_a, _flag_b)) goto L_4706AB72; /* 0x4706AB67: je 0x4706ab72 */ 6647 L_4706AB69: 6648 ecx = MEM32(ecx + 0x8); /* 0x4706AB69: mov ecx, dword ptr [ecx + 8] */ 6649 eax = MEM32(ecx); /* 0x4706AB6C: mov eax, dword ptr [ecx] */ 6650 PUSH32(esp, edx); /* 0x4706AB6E: push edx */ 6651 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x4706AB6F: call dword ptr [eax + 0xc] */ 6652 RECOMP_FLAGS_IN(); 6653 L_4706AB72: 6654 edi = POP32_VAL(esp); /* 0x4706AB72: pop edi */ 6655 esi = POP32_VAL(esp); /* 0x4706AB73: pop esi */ 6656 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6657 eax = 0; /* 0x4706AB74: xor eax, eax */ 6658 _cf = 0; 6659 _flag_k = FK_TEST; 6660 ebx = POP32_VAL(esp); /* 0x4706AB76: pop ebx */ 6661 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706AB77: ret 4 */ 6662 L_4706AB7A: 6663 ebx = MEM32(0x470AC150); /* 0x4706AB7A: mov ebx, dword ptr [0x470ac150] */ 6664 PUSH32(esp, ebp); /* 0x4706AB80: push ebp */ 6665 RECOMP_ICALL(ebx); /* 0x4706AB81: call ebx */ 6666 RECOMP_FLAGS_IN(); 6667 ebp = MEM32(0x470AC3C8); /* 0x4706AB83: mov ebp, dword ptr [0x470ac3c8] */ 6668 edi = eax; /* 0x4706AB89: mov edi, eax */ 6669 RECOMP_ICALL(ebp); /* 0x4706AB8B: call ebp */ 6670 RECOMP_FLAGS_IN(); 6671 eax = MEM32(eax); /* 0x4706AB8D: mov eax, dword ptr [eax] */ 6672 /* test eax, eax */ /* 0x4706AB8F: test eax, eax */ 6673 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6674 _cf = 0; 6675 _flag_k = FK_TEST; 6676 if (TEST_Z(_flag_a, _flag_b)) goto L_4706AB95; /* 0x4706AB91: je 0x4706ab95 */ 6677 L_4706AB93: 6678 edi = eax; /* 0x4706AB93: mov edi, eax */ 6679 L_4706AB95: 6680 RECOMP_ICALL(0x47039020u); /* 0x4706AB95: call 0x47039020 */ /* not lifted */ 6681 RECOMP_FLAGS_IN(); 6682 esi = eax; /* 0x4706AB9A: mov esi, eax */ 6683 ecx = esi; /* 0x4706AB9C: mov ecx, esi */ 6684 RECOMP_ICALL(0x4703B210u); /* 0x4706AB9E: call 0x4703b210 */ /* not lifted */ 6685 RECOMP_FLAGS_IN(); 6686 PUSH32(esp, eax); /* 0x4706ABA3: push eax */ 6687 ecx = esi; /* 0x4706ABA4: mov ecx, esi */ 6688 RECOMP_ICALL(0x4703B240u); /* 0x4706ABA6: call 0x4703b240 */ /* not lifted */ 6689 RECOMP_FLAGS_IN(); 6690 PUSH32(esp, eax); /* 0x4706ABAB: push eax */ 6691 ecx = esi; /* 0x4706ABAC: mov ecx, esi */ 6692 RECOMP_ICALL(0x4703B080u); /* 0x4706ABAE: call 0x4703b080 */ /* not lifted */ 6693 RECOMP_FLAGS_IN(); 6694 PUSH32(esp, eax); /* 0x4706ABB3: push eax */ 6695 PUSH32(esp, edi); /* 0x4706ABB4: push edi */ 6696 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706ABB5: push -1 */ 6697 PUSH32(esp, 0x57u); /* 0x4706ABB7: push 0x57 */ 6698 PUSH32(esp, 0x47109E54u); /* 0x4706ABB9: push 0x47109e54 */ 6699 ecx = esi; /* 0x4706ABBE: mov ecx, esi */ 6700 RECOMP_ICALL(0x4703A340u); /* 0x4706ABC0: call 0x4703a340 */ /* not lifted */ 6701 RECOMP_FLAGS_IN(); 6702 PUSH32(esp, 0x47109EB8u); /* 0x4706ABC5: push 0x47109eb8 */ 6703 PUSH32(esp, 0x80u); /* 0x4706ABCA: push 0x80 */ 6704 PUSH32(esp, esi); /* 0x4706ABCF: push esi */ 6705 RECOMP_ICALL(0x47039830u); /* 0x4706ABD0: call 0x47039830 */ /* not lifted */ 6706 RECOMP_FLAGS_IN(); 6707 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6708 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6709 esp = esp + 0xCu; /* 0x4706ABD5: add esp, 0xc */ 6710 _flag_k = FK_ADD; 6711 RECOMP_ICALL(ebx); /* 0x4706ABD8: call ebx */ 6712 RECOMP_FLAGS_IN(); 6713 esi = eax; /* 0x4706ABDA: mov esi, eax */ 6714 RECOMP_ICALL(ebp); /* 0x4706ABDC: call ebp */ 6715 RECOMP_FLAGS_IN(); 6716 eax = MEM32(eax); /* 0x4706ABDE: mov eax, dword ptr [eax] */ 6717 /* test eax, eax */ /* 0x4706ABE0: test eax, eax */ 6718 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6719 _cf = 0; 6720 _flag_k = FK_TEST; 6721 ebp = POP32_VAL(esp); /* 0x4706ABE2: pop ebp */ 6722 edi = esi; /* 0x4706ABE3: mov edi, esi */ 6723 if (TEST_Z(_flag_a, _flag_b)) goto L_4706ABE9; /* 0x4706ABE5: je 0x4706abe9 */ 6724 L_4706ABE7: 6725 edi = eax; /* 0x4706ABE7: mov edi, eax */ 6726 L_4706ABE9: 6727 RECOMP_ICALL(0x47039020u); /* 0x4706ABE9: call 0x47039020 */ /* not lifted */ 6728 RECOMP_FLAGS_IN(); 6729 esi = eax; /* 0x4706ABEE: mov esi, eax */ 6730 ecx = esi; /* 0x4706ABF0: mov ecx, esi */ 6731 RECOMP_ICALL(0x4703B210u); /* 0x4706ABF2: call 0x4703b210 */ /* not lifted */ 6732 RECOMP_FLAGS_IN(); 6733 PUSH32(esp, eax); /* 0x4706ABF7: push eax */ 6734 ecx = esi; /* 0x4706ABF8: mov ecx, esi */ 6735 RECOMP_ICALL(0x4703B240u); /* 0x4706ABFA: call 0x4703b240 */ /* not lifted */ 6736 RECOMP_FLAGS_IN(); 6737 PUSH32(esp, eax); /* 0x4706ABFF: push eax */ 6738 ecx = esi; /* 0x4706AC00: mov ecx, esi */ 6739 RECOMP_ICALL(0x4703B080u); /* 0x4706AC02: call 0x4703b080 */ /* not lifted */ 6740 RECOMP_FLAGS_IN(); 6741 PUSH32(esp, eax); /* 0x4706AC07: push eax */ 6742 PUSH32(esp, edi); /* 0x4706AC08: push edi */ 6743 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706AC09: push -1 */ 6744 PUSH32(esp, 0x3Du); /* 0x4706AC0B: push 0x3d */ 6745 PUSH32(esp, 0x47109E54u); /* 0x4706AC0D: push 0x47109e54 */ 6746 ecx = esi; /* 0x4706AC12: mov ecx, esi */ 6747 RECOMP_ICALL(0x4703A340u); /* 0x4706AC14: call 0x4703a340 */ /* not lifted */ 6748 RECOMP_FLAGS_IN(); 6749 PUSH32(esp, 0x47109E98u); /* 0x4706AC19: push 0x47109e98 */ 6750 PUSH32(esp, 0x80u); /* 0x4706AC1E: push 0x80 */ 6751 PUSH32(esp, esi); /* 0x4706AC23: push esi */ 6752 RECOMP_ICALL(0x47039830u); /* 0x4706AC24: call 0x47039830 */ /* not lifted */ 6753 RECOMP_FLAGS_IN(); 6754 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6755 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6756 esp = esp + 0xCu; /* 0x4706AC29: add esp, 0xc */ 6757 _flag_k = FK_ADD; 6758 edi = POP32_VAL(esp); /* 0x4706AC2C: pop edi */ 6759 esi = POP32_VAL(esp); /* 0x4706AC2D: pop esi */ 6760 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6761 eax = eax | 0xFFFFFFFFu; /* 0x4706AC2E: or eax, 0xffffffff */ 6762 _cf = 0; 6763 _flag_k = FK_TEST; 6764 ebx = POP32_VAL(esp); /* 0x4706AC31: pop ebx */ 6765 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706AC32: ret 4 */ 6766 RECOMP_REGS_OUT(); 6767 } 6768 6769 void sub_4706AC40(void) { 6770 int _fpu_cmp = 0; 6771 uint32_t _cf = 0; 6772 int _df = 1; 6773 uint32_t _flag_k = FK_NONE; 6774 uint32_t _flag_a = 0, _flag_b = 0; 6775 uint32_t _itail_tgt = 0; 6776 RECOMP_REGS_LOCALS 6777 RECOMP_ENTER(0x4706AC40u); 6778 6779 L_4706AC40: 6780 eax = MEM32(ecx); /* 0x4706AC40: mov eax, dword ptr [ecx] */ 6781 edx = MEM32(esp + 0x4); /* 0x4706AC42: mov edx, dword ptr [esp + 4] */ 6782 MEM32(eax + 0x4) = edx; /* 0x4706AC46: mov dword ptr [eax + 4], edx */ 6783 edx = MEM32(ecx); /* 0x4706AC49: mov edx, dword ptr [ecx] */ 6784 eax = MEM32(edx); /* 0x4706AC4B: mov eax, dword ptr [edx] */ 6785 PUSH32(esp, esi); /* 0x4706AC4D: push esi */ 6786 esi = MEM32(esp + 0x8); /* 0x4706AC4E: mov esi, dword ptr [esp + 8] */ 6787 PUSH32(esp, edi); /* 0x4706AC52: push edi */ 6788 /* cmp MEM32(eax + 0x4), esi */ /* 0x4706AC53: cmp dword ptr [eax + 4], esi */ 6789 _flag_a = (uint32_t)(MEM32(eax + 0x4)); _flag_b = (uint32_t)(esi); 6790 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6791 _flag_k = FK_CMP; 6792 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706AC5F; /* 0x4706AC56: je 0x4706ac5f */ 6793 L_4706AC58: 6794 eax = MEM32(eax); /* 0x4706AC58: mov eax, dword ptr [eax] */ 6795 /* cmp MEM32(eax + 0x4), esi */ /* 0x4706AC5A: cmp dword ptr [eax + 4], esi */ 6796 _flag_a = (uint32_t)(MEM32(eax + 0x4)); _flag_b = (uint32_t)(esi); 6797 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6798 _flag_k = FK_CMP; 6799 RECOMP_BACKEDGE(); 6800 if (CMP_NE(_flag_a, _flag_b)) goto L_4706AC58; /* 0x4706AC5D: jne 0x4706ac58 */ 6801 L_4706AC5F: 6802 /* cmp eax, edx */ /* 0x4706AC5F: cmp eax, edx */ 6803 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6804 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6805 _flag_k = FK_CMP; 6806 if (CMP_NE(_flag_a, _flag_b)) goto L_4706AC71; /* 0x4706AC61: jne 0x4706ac71 */ 6807 L_4706AC63: 6808 eax = esp + 0xC; /* 0x4706AC63: lea eax, [esp + 0xc] */ 6809 PUSH32(esp, eax); /* 0x4706AC67: push eax */ 6810 RECOMP_ICALL(0x47067230u); /* 0x4706AC68: call 0x47067230 */ /* not lifted */ 6811 RECOMP_FLAGS_IN(); 6812 /* test eax, eax */ /* 0x4706AC6D: test eax, eax */ 6813 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6814 _cf = 0; 6815 _flag_k = FK_TEST; 6816 if (TEST_Z(_flag_a, _flag_b)) goto L_4706ACD2; /* 0x4706AC6F: je 0x4706acd2 */ 6817 L_4706AC71: 6818 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4706AC71: call dword ptr [0x470ac150] */ 6819 RECOMP_FLAGS_IN(); 6820 edi = eax; /* 0x4706AC77: mov edi, eax */ 6821 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706AC79: call dword ptr [0x470ac3c8] */ 6822 RECOMP_FLAGS_IN(); 6823 eax = MEM32(eax); /* 0x4706AC7F: mov eax, dword ptr [eax] */ 6824 /* test eax, eax */ /* 0x4706AC81: test eax, eax */ 6825 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6826 _cf = 0; 6827 _flag_k = FK_TEST; 6828 if (TEST_Z(_flag_a, _flag_b)) goto L_4706AC87; /* 0x4706AC83: je 0x4706ac87 */ 6829 L_4706AC85: 6830 edi = eax; /* 0x4706AC85: mov edi, eax */ 6831 L_4706AC87: 6832 RECOMP_ICALL(0x47039020u); /* 0x4706AC87: call 0x47039020 */ /* not lifted */ 6833 RECOMP_FLAGS_IN(); 6834 esi = eax; /* 0x4706AC8C: mov esi, eax */ 6835 ecx = esi; /* 0x4706AC8E: mov ecx, esi */ 6836 RECOMP_ICALL(0x4703B210u); /* 0x4706AC90: call 0x4703b210 */ /* not lifted */ 6837 RECOMP_FLAGS_IN(); 6838 PUSH32(esp, eax); /* 0x4706AC95: push eax */ 6839 ecx = esi; /* 0x4706AC96: mov ecx, esi */ 6840 RECOMP_ICALL(0x4703B240u); /* 0x4706AC98: call 0x4703b240 */ /* not lifted */ 6841 RECOMP_FLAGS_IN(); 6842 PUSH32(esp, eax); /* 0x4706AC9D: push eax */ 6843 ecx = esi; /* 0x4706AC9E: mov ecx, esi */ 6844 RECOMP_ICALL(0x4703B080u); /* 0x4706ACA0: call 0x4703b080 */ /* not lifted */ 6845 RECOMP_FLAGS_IN(); 6846 PUSH32(esp, eax); /* 0x4706ACA5: push eax */ 6847 PUSH32(esp, edi); /* 0x4706ACA6: push edi */ 6848 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706ACA7: push -1 */ 6849 PUSH32(esp, 0x4Au); /* 0x4706ACA9: push 0x4a */ 6850 PUSH32(esp, 0x47109E54u); /* 0x4706ACAB: push 0x47109e54 */ 6851 ecx = esi; /* 0x4706ACB0: mov ecx, esi */ 6852 RECOMP_ICALL(0x4703A340u); /* 0x4706ACB2: call 0x4703a340 */ /* not lifted */ 6853 RECOMP_FLAGS_IN(); 6854 PUSH32(esp, 0x47109E20u); /* 0x4706ACB7: push 0x47109e20 */ 6855 PUSH32(esp, 0x80u); /* 0x4706ACBC: push 0x80 */ 6856 PUSH32(esp, esi); /* 0x4706ACC1: push esi */ 6857 RECOMP_ICALL(0x47039830u); /* 0x4706ACC2: call 0x47039830 */ /* not lifted */ 6858 RECOMP_FLAGS_IN(); 6859 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6860 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6861 esp = esp + 0xCu; /* 0x4706ACC7: add esp, 0xc */ 6862 _flag_k = FK_ADD; 6863 edi = POP32_VAL(esp); /* 0x4706ACCA: pop edi */ 6864 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6865 eax = eax | 0xFFFFFFFFu; /* 0x4706ACCB: or eax, 0xffffffff */ 6866 _cf = 0; 6867 _flag_k = FK_TEST; 6868 esi = POP32_VAL(esp); /* 0x4706ACCE: pop esi */ 6869 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706ACCF: ret 4 */ 6870 L_4706ACD2: 6871 edi = POP32_VAL(esp); /* 0x4706ACD2: pop edi */ 6872 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6873 eax = 0; /* 0x4706ACD3: xor eax, eax */ 6874 _cf = 0; 6875 _flag_k = FK_TEST; 6876 esi = POP32_VAL(esp); /* 0x4706ACD5: pop esi */ 6877 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706ACD6: ret 4 */ 6878 RECOMP_REGS_OUT(); 6879 } 6880 6881 void sub_4706ACE0(void) { 6882 int _fpu_cmp = 0; 6883 uint32_t _cf = 0; 6884 int _df = 1; 6885 uint32_t _flag_k = FK_NONE; 6886 uint32_t _flag_a = 0, _flag_b = 0; 6887 uint32_t _itail_tgt = 0; 6888 RECOMP_REGS_LOCALS 6889 RECOMP_ENTER(0x4706ACE0u); 6890 6891 L_4706ACE0: 6892 eax = MEM32(ecx); /* 0x4706ACE0: mov eax, dword ptr [ecx] */ 6893 PUSH32(esp, esi); /* 0x4706ACE2: push esi */ 6894 esi = MEM32(esp + 0x8); /* 0x4706ACE3: mov esi, dword ptr [esp + 8] */ 6895 MEM32(eax + 0x4) = esi; /* 0x4706ACE7: mov dword ptr [eax + 4], esi */ 6896 PUSH32(esp, edi); /* 0x4706ACEA: push edi */ 6897 edi = MEM32(ecx); /* 0x4706ACEB: mov edi, dword ptr [ecx] */ 6898 eax = edi; /* 0x4706ACED: mov eax, edi */ 6899 edx = MEM32(eax); /* 0x4706ACEF: mov edx, dword ptr [eax] */ 6900 /* cmp MEM32(edx + 0x4), esi */ /* 0x4706ACF1: cmp dword ptr [edx + 4], esi */ 6901 _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(esi); 6902 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6903 _flag_k = FK_CMP; 6904 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706ACFF; /* 0x4706ACF4: je 0x4706acff */ 6905 L_4706ACF6: 6906 eax = edx; /* 0x4706ACF6: mov eax, edx */ 6907 edx = MEM32(eax); /* 0x4706ACF8: mov edx, dword ptr [eax] */ 6908 /* cmp MEM32(edx + 0x4), esi */ /* 0x4706ACFA: cmp dword ptr [edx + 4], esi */ 6909 _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(esi); 6910 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6911 _flag_k = FK_CMP; 6912 RECOMP_BACKEDGE(); 6913 if (CMP_NE(_flag_a, _flag_b)) goto L_4706ACF6; /* 0x4706ACFD: jne 0x4706acf6 */ 6914 L_4706ACFF: 6915 edx = MEM32(eax); /* 0x4706ACFF: mov edx, dword ptr [eax] */ 6916 /* cmp edx, edi */ /* 0x4706AD01: cmp edx, edi */ 6917 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 6918 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6919 _flag_k = FK_CMP; 6920 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706AD24; /* 0x4706AD03: je 0x4706ad24 */ 6921 L_4706AD05: 6922 esi = MEM32(edx); /* 0x4706AD05: mov esi, dword ptr [edx] */ 6923 MEM32(eax) = esi; /* 0x4706AD07: mov dword ptr [eax], esi */ 6924 esi = MEM32(ecx + 0x4); /* 0x4706AD09: mov esi, dword ptr [ecx + 4] */ 6925 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 6926 esi = esi - 1; /* 0x4706AD0C: dec esi */ 6927 _flag_k = FK_DEC; 6928 /* test edx, edx */ /* 0x4706AD0D: test edx, edx */ 6929 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 6930 _cf = 0; 6931 _flag_k = FK_TEST; 6932 MEM32(ecx + 0x4) = esi; /* 0x4706AD0F: mov dword ptr [ecx + 4], esi */ 6933 if (TEST_Z(_flag_a, _flag_b)) goto L_4706AD1D; /* 0x4706AD12: je 0x4706ad1d */ 6934 L_4706AD14: 6935 ecx = MEM32(ecx + 0x8); /* 0x4706AD14: mov ecx, dword ptr [ecx + 8] */ 6936 eax = MEM32(ecx); /* 0x4706AD17: mov eax, dword ptr [ecx] */ 6937 PUSH32(esp, edx); /* 0x4706AD19: push edx */ 6938 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x4706AD1A: call dword ptr [eax + 0xc] */ 6939 RECOMP_FLAGS_IN(); 6940 L_4706AD1D: 6941 edi = POP32_VAL(esp); /* 0x4706AD1D: pop edi */ 6942 esi = POP32_VAL(esp); /* 0x4706AD1E: pop esi */ 6943 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6944 eax = 0; /* 0x4706AD1F: xor eax, eax */ 6945 _cf = 0; 6946 _flag_k = FK_TEST; 6947 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706AD21: ret 4 */ 6948 L_4706AD24: 6949 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4706AD24: call dword ptr [0x470ac150] */ 6950 RECOMP_FLAGS_IN(); 6951 edi = eax; /* 0x4706AD2A: mov edi, eax */ 6952 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706AD2C: call dword ptr [0x470ac3c8] */ 6953 RECOMP_FLAGS_IN(); 6954 eax = MEM32(eax); /* 0x4706AD32: mov eax, dword ptr [eax] */ 6955 /* test eax, eax */ /* 0x4706AD34: test eax, eax */ 6956 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6957 _cf = 0; 6958 _flag_k = FK_TEST; 6959 if (TEST_Z(_flag_a, _flag_b)) goto L_4706AD3A; /* 0x4706AD36: je 0x4706ad3a */ 6960 L_4706AD38: 6961 edi = eax; /* 0x4706AD38: mov edi, eax */ 6962 L_4706AD3A: 6963 RECOMP_ICALL(0x47039020u); /* 0x4706AD3A: call 0x47039020 */ /* not lifted */ 6964 RECOMP_FLAGS_IN(); 6965 esi = eax; /* 0x4706AD3F: mov esi, eax */ 6966 ecx = esi; /* 0x4706AD41: mov ecx, esi */ 6967 RECOMP_ICALL(0x4703B210u); /* 0x4706AD43: call 0x4703b210 */ /* not lifted */ 6968 RECOMP_FLAGS_IN(); 6969 PUSH32(esp, eax); /* 0x4706AD48: push eax */ 6970 ecx = esi; /* 0x4706AD49: mov ecx, esi */ 6971 RECOMP_ICALL(0x4703B240u); /* 0x4706AD4B: call 0x4703b240 */ /* not lifted */ 6972 RECOMP_FLAGS_IN(); 6973 PUSH32(esp, eax); /* 0x4706AD50: push eax */ 6974 ecx = esi; /* 0x4706AD51: mov ecx, esi */ 6975 RECOMP_ICALL(0x4703B080u); /* 0x4706AD53: call 0x4703b080 */ /* not lifted */ 6976 RECOMP_FLAGS_IN(); 6977 PUSH32(esp, eax); /* 0x4706AD58: push eax */ 6978 PUSH32(esp, edi); /* 0x4706AD59: push edi */ 6979 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706AD5A: push -1 */ 6980 PUSH32(esp, 0x57u); /* 0x4706AD5C: push 0x57 */ 6981 PUSH32(esp, 0x47109E54u); /* 0x4706AD5E: push 0x47109e54 */ 6982 ecx = esi; /* 0x4706AD63: mov ecx, esi */ 6983 RECOMP_ICALL(0x4703A340u); /* 0x4706AD65: call 0x4703a340 */ /* not lifted */ 6984 RECOMP_FLAGS_IN(); 6985 PUSH32(esp, 0x47109EB8u); /* 0x4706AD6A: push 0x47109eb8 */ 6986 PUSH32(esp, 0x80u); /* 0x4706AD6F: push 0x80 */ 6987 PUSH32(esp, esi); /* 0x4706AD74: push esi */ 6988 RECOMP_ICALL(0x47039830u); /* 0x4706AD75: call 0x47039830 */ /* not lifted */ 6989 RECOMP_FLAGS_IN(); 6990 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6991 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6992 esp = esp + 0xCu; /* 0x4706AD7A: add esp, 0xc */ 6993 _flag_k = FK_ADD; 6994 edi = POP32_VAL(esp); /* 0x4706AD7D: pop edi */ 6995 esi = POP32_VAL(esp); /* 0x4706AD7E: pop esi */ 6996 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6997 eax = eax | 0xFFFFFFFFu; /* 0x4706AD7F: or eax, 0xffffffff */ 6998 _cf = 0; 6999 _flag_k = FK_TEST; 7000 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706AD82: ret 4 */ 7001 RECOMP_REGS_OUT(); 7002 } 7003 7004 void sub_4706AD90(void) { 7005 int _fpu_cmp = 0; 7006 uint32_t _cf = 0; 7007 int _df = 1; 7008 uint32_t _flag_k = FK_NONE; 7009 uint32_t _flag_a = 0, _flag_b = 0; 7010 uint32_t _itail_tgt = 0; 7011 RECOMP_REGS_LOCALS 7012 RECOMP_ENTER(0x4706AD90u); 7013 7014 L_4706AD90: 7015 ecx = 0x4710EB49u; /* 0x4706AD90: mov ecx, 0x4710eb49 */ 7016 RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x4706AD95: call dword ptr [0x470ac1c8] */ 7017 RECOMP_FLAGS_IN(); 7018 PUSH32(esp, 0x4706ADB0u); /* 0x4706AD9B: push 0x4706adb0 */ 7019 RECOMP_ICALL(0x470A32D9u); /* 0x4706ADA0: call 0x470a32d9 */ /* not lifted */ 7020 RECOMP_FLAGS_IN(); 7021 ecx = POP32_VAL(esp); /* 0x4706ADA5: pop ecx */ 7022 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706ADA6: ret */ 7023 RECOMP_REGS_OUT(); 7024 } 7025 7026 void sub_4706ADB0(void) { 7027 int _fpu_cmp = 0; 7028 uint32_t _cf = 0; 7029 int _df = 1; 7030 uint32_t _flag_k = FK_NONE; 7031 uint32_t _flag_a = 0, _flag_b = 0; 7032 uint32_t _itail_tgt = 0; 7033 RECOMP_REGS_LOCALS 7034 RECOMP_ENTER(0x4706ADB0u); 7035 7036 L_4706ADB0: 7037 ecx = 0x4710EB49u; /* 0x4706ADB0: mov ecx, 0x4710eb49 */ 7038 L_4706ADB5: 7039 { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; } 7040 { RECOMP_REGS_OUT(); return; } /* end of function */ 7041 _ljump: 7042 switch (_itail_tgt) { 7043 case 0x4706ADB0u: goto L_4706ADB0; 7044 case 0x4706ADB5u: goto L_4706ADB5; 7045 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 7046 } 7047 RECOMP_REGS_OUT(); 7048 } 7049 7050 void sub_4706ADC0(void) { 7051 int _fpu_cmp = 0; 7052 uint32_t _cf = 0; 7053 int _df = 1; 7054 uint32_t _flag_k = FK_NONE; 7055 uint32_t _flag_a = 0, _flag_b = 0; 7056 uint32_t _itail_tgt = 0; 7057 RECOMP_REGS_LOCALS 7058 RECOMP_ENTER(0x4706ADC0u); 7059 7060 L_4706ADC0: 7061 ecx = 0x4710EB48u; /* 0x4706ADC0: mov ecx, 0x4710eb48 */ 7062 RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x4706ADC5: call dword ptr [0x470ac1c4] */ 7063 RECOMP_FLAGS_IN(); 7064 PUSH32(esp, 0x4706ADE0u); /* 0x4706ADCB: push 0x4706ade0 */ 7065 RECOMP_ICALL(0x470A32D9u); /* 0x4706ADD0: call 0x470a32d9 */ /* not lifted */ 7066 RECOMP_FLAGS_IN(); 7067 ecx = POP32_VAL(esp); /* 0x4706ADD5: pop ecx */ 7068 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706ADD6: ret */ 7069 RECOMP_REGS_OUT(); 7070 } 7071 7072 void sub_4706ADE0(void) { 7073 int _fpu_cmp = 0; 7074 uint32_t _cf = 0; 7075 int _df = 1; 7076 uint32_t _flag_k = FK_NONE; 7077 uint32_t _flag_a = 0, _flag_b = 0; 7078 uint32_t _itail_tgt = 0; 7079 RECOMP_REGS_LOCALS 7080 RECOMP_ENTER(0x4706ADE0u); 7081 7082 L_4706ADE0: 7083 ecx = 0x4710EB48u; /* 0x4706ADE0: mov ecx, 0x4710eb48 */ 7084 L_4706ADE5: 7085 { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; } 7086 { RECOMP_REGS_OUT(); return; } /* end of function */ 7087 _ljump: 7088 switch (_itail_tgt) { 7089 case 0x4706ADE0u: goto L_4706ADE0; 7090 case 0x4706ADE5u: goto L_4706ADE5; 7091 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 7092 } 7093 RECOMP_REGS_OUT(); 7094 } 7095 7096 void sub_4706ADF0(void) { 7097 int _fpu_cmp = 0; 7098 uint32_t _cf = 0; 7099 int _df = 1; 7100 uint32_t _flag_k = FK_NONE; 7101 uint32_t _flag_a = 0, _flag_b = 0; 7102 uint32_t _itail_tgt = 0; 7103 RECOMP_REGS_LOCALS 7104 RECOMP_ENTER(0x4706ADF0u); 7105 7106 L_4706ADF0: 7107 MEM32(0x4710EB40) = 0x47104A3Cu; /* 0x4706ADF0: mov dword ptr [0x4710eb40], 0x47104a3c */ 7108 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706ADFA: ret */ 7109 RECOMP_REGS_OUT(); 7110 } 7111 7112 void sub_4706AE00(void) { 7113 int _fpu_cmp = 0; 7114 uint32_t _cf = 0; 7115 int _df = 1; 7116 uint32_t _flag_k = FK_NONE; 7117 uint32_t _flag_a = 0, _flag_b = 0; 7118 uint32_t _itail_tgt = 0; 7119 RECOMP_REGS_LOCALS 7120 RECOMP_ENTER(0x4706AE00u); 7121 7122 L_4706AE00: 7123 MEM32(0x4710EB50) = 0x47104A00u; /* 0x4706AE00: mov dword ptr [0x4710eb50], 0x47104a00 */ 7124 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706AE0A: ret */ 7125 RECOMP_REGS_OUT(); 7126 } 7127 7128 void sub_4706AE10(void) { 7129 int _fpu_cmp = 0; 7130 uint32_t _cf = 0; 7131 int _df = 1; 7132 uint32_t _flag_k = FK_NONE; 7133 uint32_t _flag_a = 0, _flag_b = 0; 7134 uint32_t _itail_tgt = 0; 7135 RECOMP_REGS_LOCALS 7136 RECOMP_ENTER(0x4706AE10u); 7137 7138 L_4706AE10: 7139 MEM32(0x4710EB4C) = 0x47104A70u; /* 0x4706AE10: mov dword ptr [0x4710eb4c], 0x47104a70 */ 7140 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706AE1A: ret */ 7141 RECOMP_REGS_OUT(); 7142 } 7143 7144 void sub_4706AE20(void) { 7145 int _fpu_cmp = 0; 7146 uint32_t _cf = 0; 7147 int _df = 1; 7148 uint32_t _flag_k = FK_NONE; 7149 uint32_t _flag_a = 0, _flag_b = 0; 7150 uint32_t _itail_tgt = 0; 7151 RECOMP_REGS_LOCALS 7152 RECOMP_ENTER(0x4706AE20u); 7153 7154 L_4706AE20: 7155 MEM32(0x4710EB5C) = 0x47104B6Cu; /* 0x4706AE20: mov dword ptr [0x4710eb5c], 0x47104b6c */ 7156 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706AE2A: ret */ 7157 RECOMP_REGS_OUT(); 7158 } 7159 7160 void sub_4706AE30(void) { 7161 int _fpu_cmp = 0; 7162 uint32_t _cf = 0; 7163 int _df = 1; 7164 uint32_t _flag_k = FK_NONE; 7165 uint32_t _flag_a = 0, _flag_b = 0; 7166 uint32_t _itail_tgt = 0; 7167 RECOMP_REGS_LOCALS 7168 RECOMP_ENTER(0x4706AE30u); 7169 7170 L_4706AE30: 7171 MEM32(0x4710EB44) = 0x47104BA0u; /* 0x4706AE30: mov dword ptr [0x4710eb44], 0x47104ba0 */ 7172 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706AE3A: ret */ 7173 RECOMP_REGS_OUT(); 7174 } 7175 7176 void sub_4706AE40(void) { 7177 int _fpu_cmp = 0; 7178 uint32_t _cf = 0; 7179 int _df = 1; 7180 uint32_t _flag_k = FK_NONE; 7181 uint32_t _flag_a = 0, _flag_b = 0; 7182 uint32_t _itail_tgt = 0; 7183 RECOMP_REGS_LOCALS 7184 RECOMP_ENTER(0x4706AE40u); 7185 7186 L_4706AE40: 7187 MEM32(0x4710EB58) = 0x47104BD4u; /* 0x4706AE40: mov dword ptr [0x4710eb58], 0x47104bd4 */ 7188 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706AE4A: ret */ 7189 RECOMP_REGS_OUT(); 7190 } 7191 7192 void sub_4706AE50(void) { 7193 int _fpu_cmp = 0; 7194 uint32_t _cf = 0; 7195 int _df = 1; 7196 uint32_t _flag_k = FK_NONE; 7197 uint32_t _flag_a = 0, _flag_b = 0; 7198 uint32_t _itail_tgt = 0; 7199 RECOMP_REGS_LOCALS 7200 RECOMP_ENTER(0x4706AE50u); 7201 7202 L_4706AE50: 7203 MEM32(0x4710EB54) = 0x47109EECu; /* 0x4706AE50: mov dword ptr [0x4710eb54], 0x47109eec */ 7204 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706AE5A: ret */ 7205 RECOMP_REGS_OUT(); 7206 } 7207 7208 void sub_4706AE60(void) { 7209 int _fpu_cmp = 0; 7210 uint32_t _cf = 0; 7211 int _df = 1; 7212 uint32_t _flag_k = FK_NONE; 7213 uint32_t _flag_a = 0, _flag_b = 0; 7214 uint32_t _itail_tgt = 0; 7215 RECOMP_REGS_LOCALS 7216 RECOMP_ENTER(0x4706AE60u); 7217 7218 L_4706AE60: 7219 PUSH32(esp, esi); /* 0x4706AE60: push esi */ 7220 esi = ecx; /* 0x4706AE61: mov esi, ecx */ 7221 ecx = esi + 0x8; /* 0x4706AE63: lea ecx, [esi + 8] */ 7222 RECOMP_ICALL(0x470317B0u); /* 0x4706AE66: call 0x470317b0 */ /* not lifted */ 7223 RECOMP_FLAGS_IN(); 7224 MEM32(esi) = 0x470AEA98u; /* 0x4706AE6B: mov dword ptr [esi], 0x470aea98 */ 7225 eax = esi; /* 0x4706AE71: mov eax, esi */ 7226 esi = POP32_VAL(esp); /* 0x4706AE73: pop esi */ 7227 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706AE74: ret */ 7228 RECOMP_REGS_OUT(); 7229 } 7230 7231 void sub_4706AE80(void) { 7232 int _fpu_cmp = 0; 7233 uint32_t _cf = 0; 7234 int _df = 1; 7235 uint32_t _flag_k = FK_NONE; 7236 uint32_t _flag_a = 0, _flag_b = 0; 7237 uint32_t _itail_tgt = 0; 7238 RECOMP_REGS_LOCALS 7239 RECOMP_ENTER(0x4706AE80u); 7240 7241 L_4706AE80: 7242 eax = MEM32(esp + 0x8); /* 0x4706AE80: mov eax, dword ptr [esp + 8] */ 7243 edx = MEM32(esp + 0xC); /* 0x4706AE84: mov edx, dword ptr [esp + 0xc] */ 7244 MEM32(ecx + 0xC) = eax; /* 0x4706AE88: mov dword ptr [ecx + 0xc], eax */ 7245 MEM32(ecx + 0x10) = edx; /* 0x4706AE8B: mov dword ptr [ecx + 0x10], edx */ 7246 edx = MEM32(esp + 0x10); /* 0x4706AE8E: mov edx, dword ptr [esp + 0x10] */ 7247 eax = ecx + 0x14; /* 0x4706AE92: lea eax, [ecx + 0x14] */ 7248 MEM32(eax) = edx; /* 0x4706AE95: mov dword ptr [eax], edx */ 7249 edx = MEM32(esp + 0x14); /* 0x4706AE97: mov edx, dword ptr [esp + 0x14] */ 7250 MEM32(eax + 0x4) = edx; /* 0x4706AE9B: mov dword ptr [eax + 4], edx */ 7251 edx = MEM32(esp + 0x18); /* 0x4706AE9E: mov edx, dword ptr [esp + 0x18] */ 7252 MEM32(eax + 0x8) = edx; /* 0x4706AEA2: mov dword ptr [eax + 8], edx */ 7253 edx = MEM32(esp + 0x1C); /* 0x4706AEA5: mov edx, dword ptr [esp + 0x1c] */ 7254 MEM32(eax + 0xC) = edx; /* 0x4706AEA9: mov dword ptr [eax + 0xc], edx */ 7255 eax = MEM32(esp + 0x20); /* 0x4706AEAC: mov eax, dword ptr [esp + 0x20] */ 7256 MEM32(ecx + 0x24) = eax; /* 0x4706AEB0: mov dword ptr [ecx + 0x24], eax */ 7257 edx = MEM32(0x4710EB60); /* 0x4706AEB3: mov edx, dword ptr [0x4710eb60] */ 7258 MEM32(ecx + 0x4) = edx; /* 0x4706AEB9: mov dword ptr [ecx + 4], edx */ 7259 eax = MEM32(0x4710EB60); /* 0x4706AEBC: mov eax, dword ptr [0x4710eb60] */ 7260 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7261 eax = eax + 1; /* 0x4706AEC1: inc eax */ 7262 _flag_k = FK_INC; 7263 ecx = esp + 0x4; /* 0x4706AEC2: lea ecx, [esp + 4] */ 7264 MEM32(0x4710EB60) = eax; /* 0x4706AEC6: mov dword ptr [0x4710eb60], eax */ 7265 MEM32(esp + 0x4) = 0x470AC520u; /* 0x4706AECB: mov dword ptr [esp + 4], 0x470ac520 */ 7266 RECOMP_ICALL(0x47014F70u); /* 0x4706AED3: call 0x47014f70 */ /* not lifted */ 7267 RECOMP_FLAGS_IN(); 7268 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7269 eax = 0; /* 0x4706AED8: xor eax, eax */ 7270 _cf = 0; 7271 _flag_k = FK_TEST; 7272 RECOMP_FLAGS_OUT(); esp += 36; { RECOMP_REGS_OUT(); return; } /* 0x4706AEDA: ret 0x20 */ 7273 RECOMP_REGS_OUT(); 7274 } 7275 7276 void sub_4706AEE0(void) { 7277 int _fpu_cmp = 0; 7278 uint32_t _cf = 0; 7279 int _df = 1; 7280 uint32_t _flag_k = FK_NONE; 7281 uint32_t _flag_a = 0, _flag_b = 0; 7282 uint32_t _itail_tgt = 0; 7283 RECOMP_REGS_LOCALS 7284 RECOMP_ENTER(0x4706AEE0u); 7285 7286 L_4706AEE0: 7287 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xA0u); 7288 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7289 esp = esp - 0xA0u; /* 0x4706AEE0: sub esp, 0xa0 */ 7290 _flag_k = FK_CMP; 7291 PUSH32(esp, ebp); /* 0x4706AEE6: push ebp */ 7292 ebp = MEM32(esp + 0xA8); /* 0x4706AEE7: mov ebp, dword ptr [esp + 0xa8] */ 7293 PUSH32(esp, esi); /* 0x4706AEEE: push esi */ 7294 PUSH32(esp, edi); /* 0x4706AEEF: push edi */ 7295 eax = esp + 0xC; /* 0x4706AEF0: lea eax, [esp + 0xc] */ 7296 esi = ecx; /* 0x4706AEF4: mov esi, ecx */ 7297 PUSH32(esp, eax); /* 0x4706AEF6: push eax */ 7298 ecx = ebp; /* 0x4706AEF7: mov ecx, ebp */ 7299 RECOMP_ICALL(0x4707A8B0u); /* 0x4706AEF9: call 0x4707a8b0 */ /* not lifted */ 7300 RECOMP_FLAGS_IN(); 7301 ecx = MEM32(eax); /* 0x4706AEFE: mov ecx, dword ptr [eax] */ 7302 MEM32(ecx + 0x4) = esi; /* 0x4706AF00: mov dword ptr [ecx + 4], esi */ 7303 ecx = MEM32(eax); /* 0x4706AF03: mov ecx, dword ptr [eax] */ 7304 eax = MEM32(ecx); /* 0x4706AF05: mov eax, dword ptr [ecx] */ 7305 /* cmp MEM32(eax + 0x4), esi */ /* 0x4706AF07: cmp dword ptr [eax + 4], esi */ 7306 _flag_a = (uint32_t)(MEM32(eax + 0x4)); _flag_b = (uint32_t)(esi); 7307 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7308 _flag_k = FK_CMP; 7309 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706AF13; /* 0x4706AF0A: je 0x4706af13 */ 7310 L_4706AF0C: 7311 eax = MEM32(eax); /* 0x4706AF0C: mov eax, dword ptr [eax] */ 7312 /* cmp MEM32(eax + 0x4), esi */ /* 0x4706AF0E: cmp dword ptr [eax + 4], esi */ 7313 _flag_a = (uint32_t)(MEM32(eax + 0x4)); _flag_b = (uint32_t)(esi); 7314 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7315 _flag_k = FK_CMP; 7316 RECOMP_BACKEDGE(); 7317 if (CMP_NE(_flag_a, _flag_b)) goto L_4706AF0C; /* 0x4706AF11: jne 0x4706af0c */ 7318 L_4706AF13: 7319 /* cmp eax, ecx */ /* 0x4706AF13: cmp eax, ecx */ 7320 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7321 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7322 _flag_k = FK_CMP; 7323 eax = MEM32(esp + 0xC); /* 0x4706AF15: mov eax, dword ptr [esp + 0xc] */ 7324 edi = MEM32(eax); /* 0x4706AF19: mov edi, dword ptr [eax] */ 7325 PUSH32(esp, ebx); /* 0x4706AF1B: push ebx */ 7326 SET_LO8(ebx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x4706AF1C: sete bl */ 7327 /* cmp edi, eax */ /* 0x4706AF1F: cmp edi, eax */ 7328 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7329 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7330 _flag_k = FK_CMP; 7331 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706AF4F; /* 0x4706AF21: je 0x4706af4f */ 7332 L_4706AF23: 7333 esi = edi; /* 0x4706AF23: mov esi, edi */ 7334 /* test esi, esi */ /* 0x4706AF25: test esi, esi */ 7335 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 7336 _cf = 0; 7337 _flag_k = FK_TEST; 7338 edi = MEM32(edi); /* 0x4706AF27: mov edi, dword ptr [edi] */ 7339 if (TEST_Z(_flag_a, _flag_b)) goto L_4706AF42; /* 0x4706AF29: je 0x4706af42 */ 7340 L_4706AF2B: 7341 PUSH32(esp, 0); /* 0x4706AF2B: push 0 */ 7342 ecx = esi; /* 0x4706AF2D: mov ecx, esi */ 7343 RECOMP_ICALL(0x4708CFB0u); /* 0x4706AF2F: call 0x4708cfb0 */ /* not lifted */ 7344 RECOMP_FLAGS_IN(); 7345 ecx = MEM32(esp + 0x18); /* 0x4706AF34: mov ecx, dword ptr [esp + 0x18] */ 7346 edx = MEM32(ecx); /* 0x4706AF38: mov edx, dword ptr [ecx] */ 7347 PUSH32(esp, esi); /* 0x4706AF3A: push esi */ 7348 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4706AF3B: call dword ptr [edx + 0xc] */ 7349 RECOMP_FLAGS_IN(); 7350 eax = MEM32(esp + 0x10); /* 0x4706AF3E: mov eax, dword ptr [esp + 0x10] */ 7351 L_4706AF42: 7352 edx = MEM32(esp + 0x14); /* 0x4706AF42: mov edx, dword ptr [esp + 0x14] */ 7353 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 7354 edx = edx - 1; /* 0x4706AF46: dec edx */ 7355 _flag_k = FK_DEC; 7356 /* cmp edi, eax */ /* 0x4706AF47: cmp edi, eax */ 7357 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7358 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7359 _flag_k = FK_CMP; 7360 MEM32(esp + 0x14) = edx; /* 0x4706AF49: mov dword ptr [esp + 0x14], edx */ 7361 RECOMP_BACKEDGE(); 7362 if (CMP_NE(_flag_a, _flag_b)) goto L_4706AF23; /* 0x4706AF4D: jne 0x4706af23 */ 7363 L_4706AF4F: 7364 MEM32(eax) = eax; /* 0x4706AF4F: mov dword ptr [eax], eax */ 7365 ecx = MEM32(esp + 0x10); /* 0x4706AF51: mov ecx, dword ptr [esp + 0x10] */ 7366 /* test ecx, ecx */ /* 0x4706AF55: test ecx, ecx */ 7367 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7368 _cf = 0; 7369 _flag_k = FK_TEST; 7370 if (TEST_Z(_flag_a, _flag_b)) goto L_4706AF6E; /* 0x4706AF57: je 0x4706af6e */ 7371 L_4706AF59: 7372 PUSH32(esp, 0); /* 0x4706AF59: push 0 */ 7373 RECOMP_ICALL(0x4708CFB0u); /* 0x4706AF5B: call 0x4708cfb0 */ /* not lifted */ 7374 RECOMP_FLAGS_IN(); 7375 ecx = MEM32(esp + 0x18); /* 0x4706AF60: mov ecx, dword ptr [esp + 0x18] */ 7376 edx = MEM32(esp + 0x10); /* 0x4706AF64: mov edx, dword ptr [esp + 0x10] */ 7377 eax = MEM32(ecx); /* 0x4706AF68: mov eax, dword ptr [ecx] */ 7378 PUSH32(esp, edx); /* 0x4706AF6A: push edx */ 7379 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x4706AF6B: call dword ptr [eax + 0xc] */ 7380 RECOMP_FLAGS_IN(); 7381 L_4706AF6E: 7382 /* test LO8(ebx), LO8(ebx) */ /* 0x4706AF6E: test bl, bl */ 7383 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7384 _cf = 0; 7385 _flag_k = FK_NARROW(FK_TEST, 24); 7386 ebx = POP32_VAL(esp); /* 0x4706AF70: pop ebx */ 7387 if (TEST_Z(_flag_a, _flag_b)) goto L_4706AFDE; /* 0x4706AF71: je 0x4706afde */ 7388 L_4706AF73: 7389 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4706AF73: call dword ptr [0x470ac150] */ 7390 RECOMP_FLAGS_IN(); 7391 edi = eax; /* 0x4706AF79: mov edi, eax */ 7392 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706AF7B: call dword ptr [0x470ac3c8] */ 7393 RECOMP_FLAGS_IN(); 7394 eax = MEM32(eax); /* 0x4706AF81: mov eax, dword ptr [eax] */ 7395 /* test eax, eax */ /* 0x4706AF83: test eax, eax */ 7396 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7397 _cf = 0; 7398 _flag_k = FK_TEST; 7399 if (TEST_Z(_flag_a, _flag_b)) goto L_4706AF89; /* 0x4706AF85: je 0x4706af89 */ 7400 L_4706AF87: 7401 edi = eax; /* 0x4706AF87: mov edi, eax */ 7402 L_4706AF89: 7403 RECOMP_ICALL(0x47039020u); /* 0x4706AF89: call 0x47039020 */ /* not lifted */ 7404 RECOMP_FLAGS_IN(); 7405 esi = eax; /* 0x4706AF8E: mov esi, eax */ 7406 ecx = esi; /* 0x4706AF90: mov ecx, esi */ 7407 RECOMP_ICALL(0x4703B210u); /* 0x4706AF92: call 0x4703b210 */ /* not lifted */ 7408 RECOMP_FLAGS_IN(); 7409 PUSH32(esp, eax); /* 0x4706AF97: push eax */ 7410 ecx = esi; /* 0x4706AF98: mov ecx, esi */ 7411 RECOMP_ICALL(0x4703B240u); /* 0x4706AF9A: call 0x4703b240 */ /* not lifted */ 7412 RECOMP_FLAGS_IN(); 7413 PUSH32(esp, eax); /* 0x4706AF9F: push eax */ 7414 ecx = esi; /* 0x4706AFA0: mov ecx, esi */ 7415 RECOMP_ICALL(0x4703B080u); /* 0x4706AFA2: call 0x4703b080 */ /* not lifted */ 7416 RECOMP_FLAGS_IN(); 7417 PUSH32(esp, eax); /* 0x4706AFA7: push eax */ 7418 PUSH32(esp, edi); /* 0x4706AFA8: push edi */ 7419 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706AFA9: push -1 */ 7420 PUSH32(esp, 0x1DFu); /* 0x4706AFAB: push 0x1df */ 7421 PUSH32(esp, 0x47109FB8u); /* 0x4706AFB0: push 0x47109fb8 */ 7422 ecx = esi; /* 0x4706AFB5: mov ecx, esi */ 7423 RECOMP_ICALL(0x4703A340u); /* 0x4706AFB7: call 0x4703a340 */ /* not lifted */ 7424 RECOMP_FLAGS_IN(); 7425 PUSH32(esp, 0x47109F80u); /* 0x4706AFBC: push 0x47109f80 */ 7426 PUSH32(esp, 0x80u); /* 0x4706AFC1: push 0x80 */ 7427 PUSH32(esp, esi); /* 0x4706AFC6: push esi */ 7428 RECOMP_ICALL(0x47039830u); /* 0x4706AFC7: call 0x47039830 */ /* not lifted */ 7429 RECOMP_FLAGS_IN(); 7430 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7431 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7432 esp = esp + 0xCu; /* 0x4706AFCC: add esp, 0xc */ 7433 _flag_k = FK_ADD; 7434 edi = POP32_VAL(esp); /* 0x4706AFCF: pop edi */ 7435 esi = POP32_VAL(esp); /* 0x4706AFD0: pop esi */ 7436 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 7437 eax = eax | 0xFFFFFFFFu; /* 0x4706AFD1: or eax, 0xffffffff */ 7438 _cf = 0; 7439 _flag_k = FK_TEST; 7440 ebp = POP32_VAL(esp); /* 0x4706AFD4: pop ebp */ 7441 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xA0u); 7442 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7443 esp = esp + 0xA0u; /* 0x4706AFD5: add esp, 0xa0 */ 7444 _flag_k = FK_ADD; 7445 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4706AFDB: ret 8 */ 7446 L_4706AFDE: 7447 esi = MEM32(esp + 0xB4); /* 0x4706AFDE: mov esi, dword ptr [esp + 0xb4] */ 7448 eax = MEM32(ebp); /* 0x4706AFE5: mov eax, dword ptr [ebp] */ 7449 ecx = 0x12u; /* 0x4706AFE8: mov ecx, 0x12 */ 7450 edi = esp + 0x1C; /* 0x4706AFED: lea edi, [esp + 0x1c] */ 7451 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4706AFF1: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 7452 edx = MEM32(esp + 0x60); /* 0x4706AFF3: mov edx, dword ptr [esp + 0x60] */ 7453 PUSH32(esp, 0); /* 0x4706AFF7: push 0 */ 7454 ecx = 8; /* 0x4706AFF9: mov ecx, 8 */ 7455 esi = esp + 0x20; /* 0x4706AFFE: lea esi, [esp + 0x20] */ 7456 edi = esp + 0x68; /* 0x4706B002: lea edi, [esp + 0x68] */ 7457 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4706B006: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 7458 PUSH32(esp, 0); /* 0x4706B008: push 0 */ 7459 ecx = 8; /* 0x4706B00A: mov ecx, 8 */ 7460 esi = esp + 0x44; /* 0x4706B00F: lea esi, [esp + 0x44] */ 7461 edi = esp + 0x8C; /* 0x4706B013: lea edi, [esp + 0x8c] */ 7462 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4706B01A: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 7463 ecx = MEM32(esp + 0x64); /* 0x4706B01C: mov ecx, dword ptr [esp + 0x64] */ 7464 MEM32(esp + 0xB0) = edx; /* 0x4706B020: mov dword ptr [esp + 0xb0], edx */ 7465 edx = esp + 0x20; /* 0x4706B027: lea edx, [esp + 0x20] */ 7466 PUSH32(esp, edx); /* 0x4706B02B: push edx */ 7467 PUSH32(esp, 0); /* 0x4706B02C: push 0 */ 7468 PUSH32(esp, 0); /* 0x4706B02E: push 0 */ 7469 MEM32(esp + 0xB8) = ecx; /* 0x4706B030: mov dword ptr [esp + 0xb8], ecx */ 7470 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x48u); 7471 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7472 ecx = ecx + 0x48u; /* 0x4706B037: add ecx, 0x48 */ 7473 _flag_k = FK_ADD; 7474 PUSH32(esp, ecx); /* 0x4706B03A: push ecx */ 7475 ecx = esp + 0x7C; /* 0x4706B03B: lea ecx, [esp + 0x7c] */ 7476 PUSH32(esp, ecx); /* 0x4706B03F: push ecx */ 7477 PUSH32(esp, 0x8800000Bu); /* 0x4706B040: push 0x8800000b */ 7478 PUSH32(esp, eax); /* 0x4706B045: push eax */ 7479 MEM32(esp + 0x3C) = 0; /* 0x4706B046: mov dword ptr [esp + 0x3c], 0 */ 7480 RECOMP_ICALL(MEM32(0x470AC490)); /* 0x4706B04E: call dword ptr [0x470ac490] */ 7481 RECOMP_FLAGS_IN(); 7482 /* cmp eax, 0xFFFFFFFFu */ /* 0x4706B054: cmp eax, -1 */ 7483 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 7484 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7485 _flag_k = FK_CMP; 7486 if (CMP_NE(_flag_a, _flag_b)) goto L_4706B0DD; /* 0x4706B057: jne 0x4706b0dd */ 7487 L_4706B05D: 7488 RECOMP_ICALL(MEM32(0x470AC4A4)); /* 0x4706B05D: call dword ptr [0x470ac4a4] */ 7489 RECOMP_FLAGS_IN(); 7490 edi = MEM32(0x470AC3C8); /* 0x4706B063: mov edi, dword ptr [0x470ac3c8] */ 7491 esi = eax; /* 0x4706B069: mov esi, eax */ 7492 RECOMP_ICALL(edi); /* 0x4706B06B: call edi */ 7493 RECOMP_FLAGS_IN(); 7494 MEM32(eax) = esi; /* 0x4706B06D: mov dword ptr [eax], esi */ 7495 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4706B06F: call dword ptr [0x470ac150] */ 7496 RECOMP_FLAGS_IN(); 7497 esi = eax; /* 0x4706B075: mov esi, eax */ 7498 RECOMP_ICALL(edi); /* 0x4706B077: call edi */ 7499 RECOMP_FLAGS_IN(); 7500 eax = MEM32(eax); /* 0x4706B079: mov eax, dword ptr [eax] */ 7501 /* test eax, eax */ /* 0x4706B07B: test eax, eax */ 7502 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7503 _cf = 0; 7504 _flag_k = FK_TEST; 7505 edi = esi; /* 0x4706B07D: mov edi, esi */ 7506 if (TEST_Z(_flag_a, _flag_b)) goto L_4706B083; /* 0x4706B07F: je 0x4706b083 */ 7507 L_4706B081: 7508 edi = eax; /* 0x4706B081: mov edi, eax */ 7509 L_4706B083: 7510 RECOMP_ICALL(0x47039020u); /* 0x4706B083: call 0x47039020 */ /* not lifted */ 7511 RECOMP_FLAGS_IN(); 7512 esi = eax; /* 0x4706B088: mov esi, eax */ 7513 ecx = esi; /* 0x4706B08A: mov ecx, esi */ 7514 RECOMP_ICALL(0x4703B210u); /* 0x4706B08C: call 0x4703b210 */ /* not lifted */ 7515 RECOMP_FLAGS_IN(); 7516 PUSH32(esp, eax); /* 0x4706B091: push eax */ 7517 ecx = esi; /* 0x4706B092: mov ecx, esi */ 7518 RECOMP_ICALL(0x4703B240u); /* 0x4706B094: call 0x4703b240 */ /* not lifted */ 7519 RECOMP_FLAGS_IN(); 7520 PUSH32(esp, eax); /* 0x4706B099: push eax */ 7521 ecx = esi; /* 0x4706B09A: mov ecx, esi */ 7522 RECOMP_ICALL(0x4703B080u); /* 0x4706B09C: call 0x4703b080 */ /* not lifted */ 7523 RECOMP_FLAGS_IN(); 7524 PUSH32(esp, eax); /* 0x4706B0A1: push eax */ 7525 PUSH32(esp, edi); /* 0x4706B0A2: push edi */ 7526 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706B0A3: push -1 */ 7527 PUSH32(esp, 0x1EEu); /* 0x4706B0A5: push 0x1ee */ 7528 PUSH32(esp, 0x47109FB8u); /* 0x4706B0AA: push 0x47109fb8 */ 7529 ecx = esi; /* 0x4706B0AF: mov ecx, esi */ 7530 RECOMP_ICALL(0x4703A340u); /* 0x4706B0B1: call 0x4703a340 */ /* not lifted */ 7531 RECOMP_FLAGS_IN(); 7532 edx = MEM32(esp + 0x18); /* 0x4706B0B6: mov edx, dword ptr [esp + 0x18] */ 7533 PUSH32(esp, edx); /* 0x4706B0BA: push edx */ 7534 PUSH32(esp, 0x47109F58u); /* 0x4706B0BB: push 0x47109f58 */ 7535 PUSH32(esp, 0x80u); /* 0x4706B0C0: push 0x80 */ 7536 PUSH32(esp, esi); /* 0x4706B0C5: push esi */ 7537 RECOMP_ICALL(0x47039830u); /* 0x4706B0C6: call 0x47039830 */ /* not lifted */ 7538 RECOMP_FLAGS_IN(); 7539 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7540 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7541 esp = esp + 0x10u; /* 0x4706B0CB: add esp, 0x10 */ 7542 _flag_k = FK_ADD; 7543 edi = POP32_VAL(esp); /* 0x4706B0CE: pop edi */ 7544 esi = POP32_VAL(esp); /* 0x4706B0CF: pop esi */ 7545 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 7546 eax = eax | 0xFFFFFFFFu; /* 0x4706B0D0: or eax, 0xffffffff */ 7547 _cf = 0; 7548 _flag_k = FK_TEST; 7549 ebp = POP32_VAL(esp); /* 0x4706B0D3: pop ebp */ 7550 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xA0u); 7551 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7552 esp = esp + 0xA0u; /* 0x4706B0D4: add esp, 0xa0 */ 7553 _flag_k = FK_ADD; 7554 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4706B0DA: ret 8 */ 7555 L_4706B0DD: 7556 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4706B0DD: call dword ptr [0x470ac150] */ 7557 RECOMP_FLAGS_IN(); 7558 edi = eax; /* 0x4706B0E3: mov edi, eax */ 7559 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706B0E5: call dword ptr [0x470ac3c8] */ 7560 RECOMP_FLAGS_IN(); 7561 eax = MEM32(eax); /* 0x4706B0EB: mov eax, dword ptr [eax] */ 7562 /* test eax, eax */ /* 0x4706B0ED: test eax, eax */ 7563 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7564 _cf = 0; 7565 _flag_k = FK_TEST; 7566 if (TEST_Z(_flag_a, _flag_b)) goto L_4706B0F3; /* 0x4706B0EF: je 0x4706b0f3 */ 7567 L_4706B0F1: 7568 edi = eax; /* 0x4706B0F1: mov edi, eax */ 7569 L_4706B0F3: 7570 RECOMP_ICALL(0x47039020u); /* 0x4706B0F3: call 0x47039020 */ /* not lifted */ 7571 RECOMP_FLAGS_IN(); 7572 esi = eax; /* 0x4706B0F8: mov esi, eax */ 7573 ecx = esi; /* 0x4706B0FA: mov ecx, esi */ 7574 RECOMP_ICALL(0x4703B210u); /* 0x4706B0FC: call 0x4703b210 */ /* not lifted */ 7575 RECOMP_FLAGS_IN(); 7576 PUSH32(esp, eax); /* 0x4706B101: push eax */ 7577 ecx = esi; /* 0x4706B102: mov ecx, esi */ 7578 RECOMP_ICALL(0x4703B240u); /* 0x4706B104: call 0x4703b240 */ /* not lifted */ 7579 RECOMP_FLAGS_IN(); 7580 PUSH32(esp, eax); /* 0x4706B109: push eax */ 7581 ecx = esi; /* 0x4706B10A: mov ecx, esi */ 7582 RECOMP_ICALL(0x4703B080u); /* 0x4706B10C: call 0x4703b080 */ /* not lifted */ 7583 RECOMP_FLAGS_IN(); 7584 PUSH32(esp, eax); /* 0x4706B111: push eax */ 7585 PUSH32(esp, edi); /* 0x4706B112: push edi */ 7586 PUSH32(esp, 0); /* 0x4706B113: push 0 */ 7587 PUSH32(esp, 0x1F1u); /* 0x4706B115: push 0x1f1 */ 7588 PUSH32(esp, 0x47109FB8u); /* 0x4706B11A: push 0x47109fb8 */ 7589 ecx = esi; /* 0x4706B11F: mov ecx, esi */ 7590 RECOMP_ICALL(0x4703A340u); /* 0x4706B121: call 0x4703a340 */ /* not lifted */ 7591 RECOMP_FLAGS_IN(); 7592 PUSH32(esp, 0x47109F28u); /* 0x4706B126: push 0x47109f28 */ 7593 PUSH32(esp, 4); /* 0x4706B12B: push 4 */ 7594 PUSH32(esp, esi); /* 0x4706B12D: push esi */ 7595 RECOMP_ICALL(0x47039830u); /* 0x4706B12E: call 0x47039830 */ /* not lifted */ 7596 RECOMP_FLAGS_IN(); 7597 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7598 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7599 esp = esp + 0xCu; /* 0x4706B133: add esp, 0xc */ 7600 _flag_k = FK_ADD; 7601 edi = POP32_VAL(esp); /* 0x4706B136: pop edi */ 7602 esi = POP32_VAL(esp); /* 0x4706B137: pop esi */ 7603 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7604 eax = 0; /* 0x4706B138: xor eax, eax */ 7605 _cf = 0; 7606 _flag_k = FK_TEST; 7607 ebp = POP32_VAL(esp); /* 0x4706B13A: pop ebp */ 7608 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xA0u); 7609 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7610 esp = esp + 0xA0u; /* 0x4706B13B: add esp, 0xa0 */ 7611 _flag_k = FK_ADD; 7612 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4706B141: ret 8 */ 7613 RECOMP_REGS_OUT(); 7614 } 7615 7616 void sub_4706B150(void) { 7617 int _fpu_cmp = 0; 7618 uint32_t _cf = 0; 7619 int _df = 1; 7620 uint32_t _flag_k = FK_NONE; 7621 uint32_t _flag_a = 0, _flag_b = 0; 7622 uint32_t _itail_tgt = 0; 7623 RECOMP_REGS_LOCALS 7624 RECOMP_ENTER(0x4706B150u); 7625 7626 L_4706B150: 7627 ecx = 0x4710EB79u; /* 0x4706B150: mov ecx, 0x4710eb79 */ 7628 RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x4706B155: call dword ptr [0x470ac1c8] */ 7629 RECOMP_FLAGS_IN(); 7630 PUSH32(esp, 0x4706B170u); /* 0x4706B15B: push 0x4706b170 */ 7631 RECOMP_ICALL(0x470A32D9u); /* 0x4706B160: call 0x470a32d9 */ /* not lifted */ 7632 RECOMP_FLAGS_IN(); 7633 ecx = POP32_VAL(esp); /* 0x4706B165: pop ecx */ 7634 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B166: ret */ 7635 RECOMP_REGS_OUT(); 7636 } 7637 7638 void sub_4706B170(void) { 7639 int _fpu_cmp = 0; 7640 uint32_t _cf = 0; 7641 int _df = 1; 7642 uint32_t _flag_k = FK_NONE; 7643 uint32_t _flag_a = 0, _flag_b = 0; 7644 uint32_t _itail_tgt = 0; 7645 RECOMP_REGS_LOCALS 7646 RECOMP_ENTER(0x4706B170u); 7647 7648 L_4706B170: 7649 ecx = 0x4710EB79u; /* 0x4706B170: mov ecx, 0x4710eb79 */ 7650 L_4706B175: 7651 { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; } 7652 { RECOMP_REGS_OUT(); return; } /* end of function */ 7653 _ljump: 7654 switch (_itail_tgt) { 7655 case 0x4706B170u: goto L_4706B170; 7656 case 0x4706B175u: goto L_4706B175; 7657 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 7658 } 7659 RECOMP_REGS_OUT(); 7660 } 7661 7662 void sub_4706B180(void) { 7663 int _fpu_cmp = 0; 7664 uint32_t _cf = 0; 7665 int _df = 1; 7666 uint32_t _flag_k = FK_NONE; 7667 uint32_t _flag_a = 0, _flag_b = 0; 7668 uint32_t _itail_tgt = 0; 7669 RECOMP_REGS_LOCALS 7670 RECOMP_ENTER(0x4706B180u); 7671 7672 L_4706B180: 7673 ecx = 0x4710EB78u; /* 0x4706B180: mov ecx, 0x4710eb78 */ 7674 RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x4706B185: call dword ptr [0x470ac1c4] */ 7675 RECOMP_FLAGS_IN(); 7676 PUSH32(esp, 0x4706B1A0u); /* 0x4706B18B: push 0x4706b1a0 */ 7677 RECOMP_ICALL(0x470A32D9u); /* 0x4706B190: call 0x470a32d9 */ /* not lifted */ 7678 RECOMP_FLAGS_IN(); 7679 ecx = POP32_VAL(esp); /* 0x4706B195: pop ecx */ 7680 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706B196: ret */ 7681 RECOMP_REGS_OUT(); 7682 }