client/vendor/ace/source/lifted-0031.c (368436B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 4 void sub_470420C0(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(0x470420C0u); 13 14 L_470420C0: 15 MEM32(0x4710E6AC) = 0x47104BA0u; /* 0x470420C0: mov dword ptr [0x4710e6ac], 0x47104ba0 */ 16 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470420CA: ret */ 17 RECOMP_REGS_OUT(); 18 } 19 20 void sub_470420D0(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(0x470420D0u); 29 30 L_470420D0: 31 MEM32(0x4710E6C0) = 0x47104BD4u; /* 0x470420D0: mov dword ptr [0x4710e6c0], 0x47104bd4 */ 32 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470420DA: ret */ 33 RECOMP_REGS_OUT(); 34 } 35 36 void sub_470420E0(void) { 37 int _fpu_cmp = 0; 38 uint32_t _cf = 0; 39 int _df = 1; 40 uint32_t _flag_k = FK_NONE; 41 uint32_t _flag_a = 0, _flag_b = 0; 42 uint32_t _itail_tgt = 0; 43 RECOMP_REGS_LOCALS 44 RECOMP_ENTER(0x470420E0u); 45 46 L_470420E0: 47 MEM32(0x4710E6B0) = 0x47108044u; /* 0x470420E0: mov dword ptr [0x4710e6b0], 0x47108044 */ 48 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470420EA: ret */ 49 RECOMP_REGS_OUT(); 50 } 51 52 void sub_470420F0(void) { 53 int _fpu_cmp = 0; 54 uint32_t _cf = 0; 55 int _df = 1; 56 uint32_t _flag_k = FK_NONE; 57 uint32_t _flag_a = 0, _flag_b = 0; 58 uint32_t _itail_tgt = 0; 59 RECOMP_REGS_LOCALS 60 RECOMP_ENTER(0x470420F0u); 61 62 L_470420F0: 63 PUSH32(esp, ecx); /* 0x470420F0: push ecx */ 64 PUSH32(esp, ebx); /* 0x470420F1: push ebx */ 65 ebx = MEM32(0x470AC150); /* 0x470420F2: mov ebx, dword ptr [0x470ac150] */ 66 PUSH32(esp, ebp); /* 0x470420F8: push ebp */ 67 PUSH32(esp, esi); /* 0x470420F9: push esi */ 68 PUSH32(esp, edi); /* 0x470420FA: push edi */ 69 edi = ecx; /* 0x470420FB: mov edi, ecx */ 70 RECOMP_ICALL(ebx); /* 0x470420FD: call ebx */ 71 RECOMP_FLAGS_IN(); 72 ebp = MEM32(0x470AC3C8); /* 0x470420FF: mov ebp, dword ptr [0x470ac3c8] */ 73 esi = eax; /* 0x47042105: mov esi, eax */ 74 RECOMP_ICALL(ebp); /* 0x47042107: call ebp */ 75 RECOMP_FLAGS_IN(); 76 eax = MEM32(eax); /* 0x47042109: mov eax, dword ptr [eax] */ 77 /* test eax, eax */ /* 0x4704210B: test eax, eax */ 78 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 79 _cf = 0; 80 _flag_k = FK_TEST; 81 MEM32(esp + 0x10) = esi; /* 0x4704210D: mov dword ptr [esp + 0x10], esi */ 82 if (TEST_Z(_flag_a, _flag_b)) goto L_47042117; /* 0x47042111: je 0x47042117 */ 83 L_47042113: 84 MEM32(esp + 0x10) = eax; /* 0x47042113: mov dword ptr [esp + 0x10], eax */ 85 L_47042117: 86 RECOMP_ICALL(0x47039020u); /* 0x47042117: call 0x47039020 */ /* not lifted */ 87 RECOMP_FLAGS_IN(); 88 esi = eax; /* 0x4704211C: mov esi, eax */ 89 ecx = esi; /* 0x4704211E: mov ecx, esi */ 90 RECOMP_ICALL(0x4703B210u); /* 0x47042120: call 0x4703b210 */ /* not lifted */ 91 RECOMP_FLAGS_IN(); 92 PUSH32(esp, eax); /* 0x47042125: push eax */ 93 ecx = esi; /* 0x47042126: mov ecx, esi */ 94 RECOMP_ICALL(0x4703B240u); /* 0x47042128: call 0x4703b240 */ /* not lifted */ 95 RECOMP_FLAGS_IN(); 96 PUSH32(esp, eax); /* 0x4704212D: push eax */ 97 ecx = esi; /* 0x4704212E: mov ecx, esi */ 98 RECOMP_ICALL(0x4703B080u); /* 0x47042130: call 0x4703b080 */ /* not lifted */ 99 RECOMP_FLAGS_IN(); 100 PUSH32(esp, eax); /* 0x47042135: push eax */ 101 eax = MEM32(esp + 0x1C); /* 0x47042136: mov eax, dword ptr [esp + 0x1c] */ 102 PUSH32(esp, eax); /* 0x4704213A: push eax */ 103 PUSH32(esp, 0); /* 0x4704213B: push 0 */ 104 PUSH32(esp, 0x13u); /* 0x4704213D: push 0x13 */ 105 PUSH32(esp, 0x47108094u); /* 0x4704213F: push 0x47108094 */ 106 ecx = esi; /* 0x47042144: mov ecx, esi */ 107 RECOMP_ICALL(0x4703A340u); /* 0x47042146: call 0x4703a340 */ /* not lifted */ 108 RECOMP_FLAGS_IN(); 109 PUSH32(esp, edi); /* 0x4704214B: push edi */ 110 PUSH32(esp, 0x471052CCu); /* 0x4704214C: push 0x471052cc */ 111 PUSH32(esp, 4); /* 0x47042151: push 4 */ 112 PUSH32(esp, esi); /* 0x47042153: push esi */ 113 RECOMP_ICALL(0x47039830u); /* 0x47042154: call 0x47039830 */ /* not lifted */ 114 RECOMP_FLAGS_IN(); 115 edi = MEM32(edi); /* 0x47042159: mov edi, dword ptr [edi] */ 116 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 117 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 118 esp = esp + 0x10u; /* 0x4704215B: add esp, 0x10 */ 119 _flag_k = FK_ADD; 120 /* test edi, edi */ /* 0x4704215E: test edi, edi */ 121 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 122 _cf = 0; 123 _flag_k = FK_TEST; 124 if (TEST_Z(_flag_a, _flag_b)) goto L_470422C9; /* 0x47042160: je 0x470422c9 */ 125 L_47042166: 126 RECOMP_ICALL(ebx); /* 0x47042166: call ebx */ 127 RECOMP_FLAGS_IN(); 128 esi = eax; /* 0x47042168: mov esi, eax */ 129 RECOMP_ICALL(ebp); /* 0x4704216A: call ebp */ 130 RECOMP_FLAGS_IN(); 131 eax = MEM32(eax); /* 0x4704216C: mov eax, dword ptr [eax] */ 132 /* test eax, eax */ /* 0x4704216E: test eax, eax */ 133 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 134 _cf = 0; 135 _flag_k = FK_TEST; 136 MEM32(esp + 0x10) = esi; /* 0x47042170: mov dword ptr [esp + 0x10], esi */ 137 if (TEST_Z(_flag_a, _flag_b)) goto L_4704217A; /* 0x47042174: je 0x4704217a */ 138 L_47042176: 139 MEM32(esp + 0x10) = eax; /* 0x47042176: mov dword ptr [esp + 0x10], eax */ 140 L_4704217A: 141 RECOMP_ICALL(0x47039020u); /* 0x4704217A: call 0x47039020 */ /* not lifted */ 142 RECOMP_FLAGS_IN(); 143 esi = eax; /* 0x4704217F: mov esi, eax */ 144 ecx = esi; /* 0x47042181: mov ecx, esi */ 145 RECOMP_ICALL(0x4703B210u); /* 0x47042183: call 0x4703b210 */ /* not lifted */ 146 RECOMP_FLAGS_IN(); 147 PUSH32(esp, eax); /* 0x47042188: push eax */ 148 ecx = esi; /* 0x47042189: mov ecx, esi */ 149 RECOMP_ICALL(0x4703B240u); /* 0x4704218B: call 0x4703b240 */ /* not lifted */ 150 RECOMP_FLAGS_IN(); 151 PUSH32(esp, eax); /* 0x47042190: push eax */ 152 ecx = esi; /* 0x47042191: mov ecx, esi */ 153 RECOMP_ICALL(0x4703B080u); /* 0x47042193: call 0x4703b080 */ /* not lifted */ 154 RECOMP_FLAGS_IN(); 155 ecx = MEM32(esp + 0x18); /* 0x47042198: mov ecx, dword ptr [esp + 0x18] */ 156 PUSH32(esp, eax); /* 0x4704219C: push eax */ 157 PUSH32(esp, ecx); /* 0x4704219D: push ecx */ 158 PUSH32(esp, 0); /* 0x4704219E: push 0 */ 159 PUSH32(esp, 0x51u); /* 0x470421A0: push 0x51 */ 160 PUSH32(esp, 0x47105B2Cu); /* 0x470421A2: push 0x47105b2c */ 161 ecx = esi; /* 0x470421A7: mov ecx, esi */ 162 RECOMP_ICALL(0x4703A340u); /* 0x470421A9: call 0x4703a340 */ /* not lifted */ 163 RECOMP_FLAGS_IN(); 164 PUSH32(esp, edi); /* 0x470421AE: push edi */ 165 PUSH32(esp, 0x471052CCu); /* 0x470421AF: push 0x471052cc */ 166 PUSH32(esp, 4); /* 0x470421B4: push 4 */ 167 PUSH32(esp, esi); /* 0x470421B6: push esi */ 168 RECOMP_ICALL(0x47039830u); /* 0x470421B7: call 0x47039830 */ /* not lifted */ 169 RECOMP_FLAGS_IN(); 170 edx = MEM32(edi + 0x4); /* 0x470421BC: mov edx, dword ptr [edi + 4] */ 171 ecx = edi + 0x4; /* 0x470421BF: lea ecx, [edi + 4] */ 172 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 173 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 174 esp = esp + 0x10u; /* 0x470421C2: add esp, 0x10 */ 175 _flag_k = FK_ADD; 176 RECOMP_ICALL(MEM32(edx + 0x68)); /* 0x470421C5: call dword ptr [edx + 0x68] */ 177 RECOMP_FLAGS_IN(); 178 RECOMP_ICALL(ebx); /* 0x470421C8: call ebx */ 179 RECOMP_FLAGS_IN(); 180 esi = eax; /* 0x470421CA: mov esi, eax */ 181 RECOMP_ICALL(ebp); /* 0x470421CC: call ebp */ 182 RECOMP_FLAGS_IN(); 183 eax = MEM32(eax); /* 0x470421CE: mov eax, dword ptr [eax] */ 184 /* test eax, eax */ /* 0x470421D0: test eax, eax */ 185 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 186 _cf = 0; 187 _flag_k = FK_TEST; 188 MEM32(esp + 0x10) = esi; /* 0x470421D2: mov dword ptr [esp + 0x10], esi */ 189 if (TEST_Z(_flag_a, _flag_b)) goto L_470421DC; /* 0x470421D6: je 0x470421dc */ 190 L_470421D8: 191 MEM32(esp + 0x10) = eax; /* 0x470421D8: mov dword ptr [esp + 0x10], eax */ 192 L_470421DC: 193 RECOMP_ICALL(0x47039020u); /* 0x470421DC: call 0x47039020 */ /* not lifted */ 194 RECOMP_FLAGS_IN(); 195 esi = eax; /* 0x470421E1: mov esi, eax */ 196 ecx = esi; /* 0x470421E3: mov ecx, esi */ 197 RECOMP_ICALL(0x4703B210u); /* 0x470421E5: call 0x4703b210 */ /* not lifted */ 198 RECOMP_FLAGS_IN(); 199 PUSH32(esp, eax); /* 0x470421EA: push eax */ 200 ecx = esi; /* 0x470421EB: mov ecx, esi */ 201 RECOMP_ICALL(0x4703B240u); /* 0x470421ED: call 0x4703b240 */ /* not lifted */ 202 RECOMP_FLAGS_IN(); 203 PUSH32(esp, eax); /* 0x470421F2: push eax */ 204 ecx = esi; /* 0x470421F3: mov ecx, esi */ 205 RECOMP_ICALL(0x4703B080u); /* 0x470421F5: call 0x4703b080 */ /* not lifted */ 206 RECOMP_FLAGS_IN(); 207 PUSH32(esp, eax); /* 0x470421FA: push eax */ 208 eax = MEM32(esp + 0x1C); /* 0x470421FB: mov eax, dword ptr [esp + 0x1c] */ 209 PUSH32(esp, eax); /* 0x470421FF: push eax */ 210 PUSH32(esp, 0); /* 0x47042200: push 0 */ 211 PUSH32(esp, 0x53u); /* 0x47042202: push 0x53 */ 212 PUSH32(esp, 0x47105B2Cu); /* 0x47042204: push 0x47105b2c */ 213 ecx = esi; /* 0x47042209: mov ecx, esi */ 214 RECOMP_ICALL(0x4703A340u); /* 0x4704220B: call 0x4703a340 */ /* not lifted */ 215 RECOMP_FLAGS_IN(); 216 ecx = MEM32(edi); /* 0x47042210: mov ecx, dword ptr [edi] */ 217 PUSH32(esp, ecx); /* 0x47042212: push ecx */ 218 PUSH32(esp, 0x47105BA8u); /* 0x47042213: push 0x47105ba8 */ 219 PUSH32(esp, 4); /* 0x47042218: push 4 */ 220 PUSH32(esp, esi); /* 0x4704221A: push esi */ 221 RECOMP_ICALL(0x47039830u); /* 0x4704221B: call 0x47039830 */ /* not lifted */ 222 RECOMP_FLAGS_IN(); 223 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 224 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 225 esp = esp + 0x10u; /* 0x47042220: add esp, 0x10 */ 226 _flag_k = FK_ADD; 227 RECOMP_ICALL(ebx); /* 0x47042223: call ebx */ 228 RECOMP_FLAGS_IN(); 229 esi = eax; /* 0x47042225: mov esi, eax */ 230 RECOMP_ICALL(ebp); /* 0x47042227: call ebp */ 231 RECOMP_FLAGS_IN(); 232 eax = MEM32(eax); /* 0x47042229: mov eax, dword ptr [eax] */ 233 /* test eax, eax */ /* 0x4704222B: test eax, eax */ 234 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 235 _cf = 0; 236 _flag_k = FK_TEST; 237 MEM32(esp + 0x10) = esi; /* 0x4704222D: mov dword ptr [esp + 0x10], esi */ 238 if (TEST_Z(_flag_a, _flag_b)) goto L_47042237; /* 0x47042231: je 0x47042237 */ 239 L_47042233: 240 MEM32(esp + 0x10) = eax; /* 0x47042233: mov dword ptr [esp + 0x10], eax */ 241 L_47042237: 242 RECOMP_ICALL(0x47039020u); /* 0x47042237: call 0x47039020 */ /* not lifted */ 243 RECOMP_FLAGS_IN(); 244 esi = eax; /* 0x4704223C: mov esi, eax */ 245 ecx = esi; /* 0x4704223E: mov ecx, esi */ 246 RECOMP_ICALL(0x4703B210u); /* 0x47042240: call 0x4703b210 */ /* not lifted */ 247 RECOMP_FLAGS_IN(); 248 PUSH32(esp, eax); /* 0x47042245: push eax */ 249 ecx = esi; /* 0x47042246: mov ecx, esi */ 250 RECOMP_ICALL(0x4703B240u); /* 0x47042248: call 0x4703b240 */ /* not lifted */ 251 RECOMP_FLAGS_IN(); 252 PUSH32(esp, eax); /* 0x4704224D: push eax */ 253 ecx = esi; /* 0x4704224E: mov ecx, esi */ 254 RECOMP_ICALL(0x4703B080u); /* 0x47042250: call 0x4703b080 */ /* not lifted */ 255 RECOMP_FLAGS_IN(); 256 edx = MEM32(esp + 0x18); /* 0x47042255: mov edx, dword ptr [esp + 0x18] */ 257 PUSH32(esp, eax); /* 0x47042259: push eax */ 258 PUSH32(esp, edx); /* 0x4704225A: push edx */ 259 PUSH32(esp, 0); /* 0x4704225B: push 0 */ 260 PUSH32(esp, 0x54u); /* 0x4704225D: push 0x54 */ 261 PUSH32(esp, 0x47105B2Cu); /* 0x4704225F: push 0x47105b2c */ 262 ecx = esi; /* 0x47042264: mov ecx, esi */ 263 RECOMP_ICALL(0x4703A340u); /* 0x47042266: call 0x4703a340 */ /* not lifted */ 264 RECOMP_FLAGS_IN(); 265 PUSH32(esp, 0x47105590u); /* 0x4704226B: push 0x47105590 */ 266 PUSH32(esp, 4); /* 0x47042270: push 4 */ 267 PUSH32(esp, esi); /* 0x47042272: push esi */ 268 RECOMP_ICALL(0x47039830u); /* 0x47042273: call 0x47039830 */ /* not lifted */ 269 RECOMP_FLAGS_IN(); 270 ecx = MEM32(edi); /* 0x47042278: mov ecx, dword ptr [edi] */ 271 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 272 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 273 esp = esp + 0xCu; /* 0x4704227A: add esp, 0xc */ 274 _flag_k = FK_ADD; 275 RECOMP_ICALL(0x4703D1C0u); /* 0x4704227D: call 0x4703d1c0 */ /* not lifted */ 276 RECOMP_FLAGS_IN(); 277 RECOMP_ICALL(ebx); /* 0x47042282: call ebx */ 278 RECOMP_FLAGS_IN(); 279 esi = eax; /* 0x47042284: mov esi, eax */ 280 RECOMP_ICALL(ebp); /* 0x47042286: call ebp */ 281 RECOMP_FLAGS_IN(); 282 eax = MEM32(eax); /* 0x47042288: mov eax, dword ptr [eax] */ 283 /* test eax, eax */ /* 0x4704228A: test eax, eax */ 284 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 285 _cf = 0; 286 _flag_k = FK_TEST; 287 edi = esi; /* 0x4704228C: mov edi, esi */ 288 if (TEST_Z(_flag_a, _flag_b)) goto L_47042292; /* 0x4704228E: je 0x47042292 */ 289 L_47042290: 290 edi = eax; /* 0x47042290: mov edi, eax */ 291 L_47042292: 292 RECOMP_ICALL(0x47039020u); /* 0x47042292: call 0x47039020 */ /* not lifted */ 293 RECOMP_FLAGS_IN(); 294 esi = eax; /* 0x47042297: mov esi, eax */ 295 ecx = esi; /* 0x47042299: mov ecx, esi */ 296 RECOMP_ICALL(0x4703B210u); /* 0x4704229B: call 0x4703b210 */ /* not lifted */ 297 RECOMP_FLAGS_IN(); 298 PUSH32(esp, eax); /* 0x470422A0: push eax */ 299 ecx = esi; /* 0x470422A1: mov ecx, esi */ 300 RECOMP_ICALL(0x4703B240u); /* 0x470422A3: call 0x4703b240 */ /* not lifted */ 301 RECOMP_FLAGS_IN(); 302 PUSH32(esp, eax); /* 0x470422A8: push eax */ 303 ecx = esi; /* 0x470422A9: mov ecx, esi */ 304 RECOMP_ICALL(0x4703B080u); /* 0x470422AB: call 0x4703b080 */ /* not lifted */ 305 RECOMP_FLAGS_IN(); 306 PUSH32(esp, eax); /* 0x470422B0: push eax */ 307 PUSH32(esp, edi); /* 0x470422B1: push edi */ 308 PUSH32(esp, 0); /* 0x470422B2: push 0 */ 309 PUSH32(esp, 0x5Au); /* 0x470422B4: push 0x5a */ 310 PUSH32(esp, 0x47105B2Cu); /* 0x470422B6: push 0x47105b2c */ 311 ecx = esi; /* 0x470422BB: mov ecx, esi */ 312 RECOMP_ICALL(0x4703A340u); /* 0x470422BD: call 0x4703a340 */ /* not lifted */ 313 RECOMP_FLAGS_IN(); 314 PUSH32(esp, 0x4710529Cu); /* 0x470422C2: push 0x4710529c */ 315 goto L_4704230C; /* 0x470422C7: jmp 0x4704230c */ 316 L_470422C9: 317 RECOMP_ICALL(ebx); /* 0x470422C9: call ebx */ 318 RECOMP_FLAGS_IN(); 319 edi = eax; /* 0x470422CB: mov edi, eax */ 320 RECOMP_ICALL(ebp); /* 0x470422CD: call ebp */ 321 RECOMP_FLAGS_IN(); 322 eax = MEM32(eax); /* 0x470422CF: mov eax, dword ptr [eax] */ 323 /* test eax, eax */ /* 0x470422D1: test eax, eax */ 324 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 325 _cf = 0; 326 _flag_k = FK_TEST; 327 if (TEST_Z(_flag_a, _flag_b)) goto L_470422D7; /* 0x470422D3: je 0x470422d7 */ 328 L_470422D5: 329 edi = eax; /* 0x470422D5: mov edi, eax */ 330 L_470422D7: 331 RECOMP_ICALL(0x47039020u); /* 0x470422D7: call 0x47039020 */ /* not lifted */ 332 RECOMP_FLAGS_IN(); 333 esi = eax; /* 0x470422DC: mov esi, eax */ 334 ecx = esi; /* 0x470422DE: mov ecx, esi */ 335 RECOMP_ICALL(0x4703B210u); /* 0x470422E0: call 0x4703b210 */ /* not lifted */ 336 RECOMP_FLAGS_IN(); 337 PUSH32(esp, eax); /* 0x470422E5: push eax */ 338 ecx = esi; /* 0x470422E6: mov ecx, esi */ 339 RECOMP_ICALL(0x4703B240u); /* 0x470422E8: call 0x4703b240 */ /* not lifted */ 340 RECOMP_FLAGS_IN(); 341 PUSH32(esp, eax); /* 0x470422ED: push eax */ 342 ecx = esi; /* 0x470422EE: mov ecx, esi */ 343 RECOMP_ICALL(0x4703B080u); /* 0x470422F0: call 0x4703b080 */ /* not lifted */ 344 RECOMP_FLAGS_IN(); 345 PUSH32(esp, eax); /* 0x470422F5: push eax */ 346 PUSH32(esp, edi); /* 0x470422F6: push edi */ 347 PUSH32(esp, 0); /* 0x470422F7: push 0 */ 348 PUSH32(esp, 0x17u); /* 0x470422F9: push 0x17 */ 349 PUSH32(esp, 0x47108094u); /* 0x470422FB: push 0x47108094 */ 350 ecx = esi; /* 0x47042300: mov ecx, esi */ 351 RECOMP_ICALL(0x4703A340u); /* 0x47042302: call 0x4703a340 */ /* not lifted */ 352 RECOMP_FLAGS_IN(); 353 PUSH32(esp, 0x47108078u); /* 0x47042307: push 0x47108078 */ 354 L_4704230C: 355 PUSH32(esp, 4); /* 0x4704230C: push 4 */ 356 PUSH32(esp, esi); /* 0x4704230E: push esi */ 357 RECOMP_ICALL(0x47039830u); /* 0x4704230F: call 0x47039830 */ /* not lifted */ 358 RECOMP_FLAGS_IN(); 359 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 360 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 361 esp = esp + 0xCu; /* 0x47042314: add esp, 0xc */ 362 _flag_k = FK_ADD; 363 RECOMP_ICALL(ebx); /* 0x47042317: call ebx */ 364 RECOMP_FLAGS_IN(); 365 edi = eax; /* 0x47042319: mov edi, eax */ 366 RECOMP_ICALL(ebp); /* 0x4704231B: call ebp */ 367 RECOMP_FLAGS_IN(); 368 eax = MEM32(eax); /* 0x4704231D: mov eax, dword ptr [eax] */ 369 /* test eax, eax */ /* 0x4704231F: test eax, eax */ 370 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 371 _cf = 0; 372 _flag_k = FK_TEST; 373 if (TEST_Z(_flag_a, _flag_b)) goto L_47042325; /* 0x47042321: je 0x47042325 */ 374 L_47042323: 375 edi = eax; /* 0x47042323: mov edi, eax */ 376 L_47042325: 377 RECOMP_ICALL(0x47039020u); /* 0x47042325: call 0x47039020 */ /* not lifted */ 378 RECOMP_FLAGS_IN(); 379 esi = eax; /* 0x4704232A: mov esi, eax */ 380 ecx = esi; /* 0x4704232C: mov ecx, esi */ 381 RECOMP_ICALL(0x4703B210u); /* 0x4704232E: call 0x4703b210 */ /* not lifted */ 382 RECOMP_FLAGS_IN(); 383 PUSH32(esp, eax); /* 0x47042333: push eax */ 384 ecx = esi; /* 0x47042334: mov ecx, esi */ 385 RECOMP_ICALL(0x4703B240u); /* 0x47042336: call 0x4703b240 */ /* not lifted */ 386 RECOMP_FLAGS_IN(); 387 PUSH32(esp, eax); /* 0x4704233B: push eax */ 388 ecx = esi; /* 0x4704233C: mov ecx, esi */ 389 RECOMP_ICALL(0x4703B080u); /* 0x4704233E: call 0x4703b080 */ /* not lifted */ 390 RECOMP_FLAGS_IN(); 391 PUSH32(esp, eax); /* 0x47042343: push eax */ 392 PUSH32(esp, edi); /* 0x47042344: push edi */ 393 PUSH32(esp, 0); /* 0x47042345: push 0 */ 394 PUSH32(esp, 0x18u); /* 0x47042347: push 0x18 */ 395 PUSH32(esp, 0x47108094u); /* 0x47042349: push 0x47108094 */ 396 ecx = esi; /* 0x4704234E: mov ecx, esi */ 397 RECOMP_ICALL(0x4703A340u); /* 0x47042350: call 0x4703a340 */ /* not lifted */ 398 RECOMP_FLAGS_IN(); 399 PUSH32(esp, 0x4710529Cu); /* 0x47042355: push 0x4710529c */ 400 PUSH32(esp, 4); /* 0x4704235A: push 4 */ 401 PUSH32(esp, esi); /* 0x4704235C: push esi */ 402 RECOMP_ICALL(0x47039830u); /* 0x4704235D: call 0x47039830 */ /* not lifted */ 403 RECOMP_FLAGS_IN(); 404 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 405 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 406 esp = esp + 0xCu; /* 0x47042362: add esp, 0xc */ 407 _flag_k = FK_ADD; 408 edi = POP32_VAL(esp); /* 0x47042365: pop edi */ 409 esi = POP32_VAL(esp); /* 0x47042366: pop esi */ 410 ebp = POP32_VAL(esp); /* 0x47042367: pop ebp */ 411 ebx = POP32_VAL(esp); /* 0x47042368: pop ebx */ 412 ecx = POP32_VAL(esp); /* 0x47042369: pop ecx */ 413 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704236A: ret */ 414 RECOMP_REGS_OUT(); 415 } 416 417 void sub_47042370(void) { 418 int _fpu_cmp = 0; 419 uint32_t _cf = 0; 420 int _df = 1; 421 uint32_t _flag_k = FK_NONE; 422 uint32_t _flag_a = 0, _flag_b = 0; 423 uint32_t _itail_tgt = 0; 424 RECOMP_REGS_LOCALS 425 RECOMP_ENTER(0x47042370u); 426 427 L_47042370: 428 PUSH32(esp, 0xFFFFFFFFu); /* 0x47042370: push -1 */ 429 PUSH32(esp, 0x470A65ACu); /* 0x47042372: push 0x470a65ac */ 430 eax = MEM32(FS_BASE + (0)); /* 0x47042377: mov eax, dword ptr fs:[0] */ 431 PUSH32(esp, eax); /* 0x4704237D: push eax */ 432 MEM32(FS_BASE + (0)) = esp; /* 0x4704237E: mov dword ptr fs:[0], esp */ 433 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 434 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 435 esp = esp - 0x10u; /* 0x47042385: sub esp, 0x10 */ 436 _flag_k = FK_CMP; 437 PUSH32(esp, edi); /* 0x47042388: push edi */ 438 edi = ecx; /* 0x47042389: mov edi, ecx */ 439 /* cmp MEM32(edi), 0 */ /* 0x4704238B: cmp dword ptr [edi], 0 */ 440 _flag_a = (uint32_t)(MEM32(edi)); _flag_b = (uint32_t)(0); 441 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 442 _flag_k = FK_CMP; 443 MEM32(esp + 0x4) = edi; /* 0x4704238E: mov dword ptr [esp + 4], edi */ 444 if (CMP_EQ(_flag_a, _flag_b)) goto L_470423A9; /* 0x47042392: je 0x470423a9 */ 445 L_47042394: 446 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 447 eax = eax | 0xFFFFFFFFu; /* 0x47042394: or eax, 0xffffffff */ 448 _cf = 0; 449 _flag_k = FK_TEST; 450 edi = POP32_VAL(esp); /* 0x47042397: pop edi */ 451 ecx = MEM32(esp + 0x10); /* 0x47042398: mov ecx, dword ptr [esp + 0x10] */ 452 MEM32(FS_BASE + (0)) = ecx; /* 0x4704239C: mov dword ptr fs:[0], ecx */ 453 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 454 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 455 esp = esp + 0x1Cu; /* 0x470423A3: add esp, 0x1c */ 456 _flag_k = FK_ADD; 457 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470423A6: ret 8 */ 458 L_470423A9: 459 PUSH32(esp, esi); /* 0x470423A9: push esi */ 460 PUSH32(esp, 0x270u); /* 0x470423AA: push 0x270 */ 461 RECOMP_ICALL(0x470A33F2u); /* 0x470423AF: call 0x470a33f2 */ /* not lifted */ 462 RECOMP_FLAGS_IN(); 463 esi = eax; /* 0x470423B4: mov esi, eax */ 464 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 465 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 466 esp = esp + 4; /* 0x470423B6: add esp, 4 */ 467 _flag_k = FK_ADD; 468 MEM32(esp + 0xC) = esi; /* 0x470423B9: mov dword ptr [esp + 0xc], esi */ 469 /* test esi, esi */ /* 0x470423BD: test esi, esi */ 470 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 471 _cf = 0; 472 _flag_k = FK_TEST; 473 MEM32(esp + 0x20) = 0; /* 0x470423BF: mov dword ptr [esp + 0x20], 0 */ 474 if (TEST_Z(_flag_a, _flag_b)) goto L_470425FA; /* 0x470423C7: je 0x470425fa */ 475 L_470423CD: 476 eax = MEM32(esp + 0x2C); /* 0x470423CD: mov eax, dword ptr [esp + 0x2c] */ 477 PUSH32(esp, ebx); /* 0x470423D1: push ebx */ 478 PUSH32(esp, ebp); /* 0x470423D2: push ebp */ 479 ebp = MEM32(esp + 0x30); /* 0x470423D3: mov ebp, dword ptr [esp + 0x30] */ 480 PUSH32(esp, eax); /* 0x470423D7: push eax */ 481 ebx = esi + 0x4; /* 0x470423D8: lea ebx, [esi + 4] */ 482 PUSH32(esp, ebp); /* 0x470423DB: push ebp */ 483 ecx = ebx; /* 0x470423DC: mov ecx, ebx */ 484 RECOMP_ICALL(0x47042EA0u); /* 0x470423DE: call 0x47042ea0 */ /* not lifted */ 485 RECOMP_FLAGS_IN(); 486 PUSH32(esp, 0); /* 0x470423E3: push 0 */ 487 PUSH32(esp, 0x5Cu); /* 0x470423E5: push 0x5c */ 488 PUSH32(esp, ebp); /* 0x470423E7: push ebp */ 489 MEM8(esp + 0x34) = (uint8_t)(1); /* 0x470423E8: mov byte ptr [esp + 0x34], 1 */ 490 edi = esi + 0x250; /* 0x470423ED: lea edi, [esi + 0x250] */ 491 RECOMP_ICALL(0x4700BCE0u); /* 0x470423F3: call 0x4700bce0 */ /* not lifted */ 492 RECOMP_FLAGS_IN(); 493 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 494 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 495 esp = esp + 8; /* 0x470423F8: add esp, 8 */ 496 _flag_k = FK_ADD; 497 PUSH32(esp, eax); /* 0x470423FB: push eax */ 498 ecx = edi; /* 0x470423FC: mov ecx, edi */ 499 RECOMP_ICALL(0x470857D0u); /* 0x470423FE: call 0x470857d0 */ /* not lifted */ 500 RECOMP_FLAGS_IN(); 501 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 502 ebp = 0; /* 0x47042403: xor ebp, ebp */ 503 _cf = 0; 504 _flag_k = FK_TEST; 505 PUSH32(esp, edi); /* 0x47042405: push edi */ 506 MEM32(esp + 0x1C) = edi; /* 0x47042406: mov dword ptr [esp + 0x1c], edi */ 507 MEM32(esp + 0x20) = ebp; /* 0x4704240A: mov dword ptr [esp + 0x20], ebp */ 508 RECOMP_ICALL(0x47002030u); /* 0x4704240E: call 0x47002030 */ /* not lifted */ 509 RECOMP_FLAGS_IN(); 510 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 511 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 512 esp = esp + 4; /* 0x47042413: add esp, 4 */ 513 _flag_k = FK_ADD; 514 MEM32(esp + 0x1C) = eax; /* 0x47042416: mov dword ptr [esp + 0x1c], eax */ 515 /* cmp eax, 0xFFFFFFFFu */ /* 0x4704241A: cmp eax, -1 */ 516 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 517 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 518 _flag_k = FK_CMP; 519 MEM8(esp + 0x28) = (uint8_t)(3); /* 0x4704241D: mov byte ptr [esp + 0x28], 3 */ 520 if (CMP_EQ(_flag_a, _flag_b)) goto L_470424B1; /* 0x47042422: je 0x470424b1 */ 521 L_47042428: 522 edx = MEM32(ebx); /* 0x47042428: mov edx, dword ptr [ebx] */ 523 eax = esp + 0x30; /* 0x4704242A: lea eax, [esp + 0x30] */ 524 PUSH32(esp, eax); /* 0x4704242E: push eax */ 525 ecx = esp + 0x38; /* 0x4704242F: lea ecx, [esp + 0x38] */ 526 PUSH32(esp, ecx); /* 0x47042433: push ecx */ 527 PUSH32(esp, 0x128u); /* 0x47042434: push 0x128 */ 528 ecx = ebx; /* 0x47042439: mov ecx, ebx */ 529 MEM32(esp + 0x40) = ebp; /* 0x4704243B: mov dword ptr [esp + 0x40], ebp */ 530 MEM32(esp + 0x3C) = ebp; /* 0x4704243F: mov dword ptr [esp + 0x3c], ebp */ 531 RECOMP_ICALL(MEM32(edx + 0x40)); /* 0x47042443: call dword ptr [edx + 0x40] */ 532 RECOMP_FLAGS_IN(); 533 /* cmp eax, ebp */ /* 0x47042446: cmp eax, ebp */ 534 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 535 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 536 _flag_k = FK_CMP; 537 MEM32(esi) = eax; /* 0x47042448: mov dword ptr [esi], eax */ 538 if (CMP_NE(_flag_a, _flag_b)) goto L_4704252B; /* 0x4704244A: jne 0x4704252b */ 539 L_47042450: 540 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47042450: call dword ptr [0x470ac150] */ 541 RECOMP_FLAGS_IN(); 542 ebx = eax; /* 0x47042456: mov ebx, eax */ 543 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47042458: call dword ptr [0x470ac3c8] */ 544 RECOMP_FLAGS_IN(); 545 eax = MEM32(eax); /* 0x4704245E: mov eax, dword ptr [eax] */ 546 /* cmp eax, ebp */ /* 0x47042460: cmp eax, ebp */ 547 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 548 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 549 _flag_k = FK_CMP; 550 if (CMP_EQ(_flag_a, _flag_b)) goto L_47042466; /* 0x47042462: je 0x47042466 */ 551 L_47042464: 552 ebx = eax; /* 0x47042464: mov ebx, eax */ 553 L_47042466: 554 RECOMP_ICALL(0x47039020u); /* 0x47042466: call 0x47039020 */ /* not lifted */ 555 RECOMP_FLAGS_IN(); 556 edi = eax; /* 0x4704246B: mov edi, eax */ 557 ecx = edi; /* 0x4704246D: mov ecx, edi */ 558 RECOMP_ICALL(0x4703B210u); /* 0x4704246F: call 0x4703b210 */ /* not lifted */ 559 RECOMP_FLAGS_IN(); 560 PUSH32(esp, eax); /* 0x47042474: push eax */ 561 ecx = edi; /* 0x47042475: mov ecx, edi */ 562 RECOMP_ICALL(0x4703B240u); /* 0x47042477: call 0x4703b240 */ /* not lifted */ 563 RECOMP_FLAGS_IN(); 564 PUSH32(esp, eax); /* 0x4704247C: push eax */ 565 ecx = edi; /* 0x4704247D: mov ecx, edi */ 566 RECOMP_ICALL(0x4703B080u); /* 0x4704247F: call 0x4703b080 */ /* not lifted */ 567 RECOMP_FLAGS_IN(); 568 PUSH32(esp, eax); /* 0x47042484: push eax */ 569 PUSH32(esp, ebx); /* 0x47042485: push ebx */ 570 PUSH32(esp, 0xFFFFFFFFu); /* 0x47042486: push -1 */ 571 PUSH32(esp, 0x9Du); /* 0x47042488: push 0x9d */ 572 PUSH32(esp, 0x47105B2Cu); /* 0x4704248D: push 0x47105b2c */ 573 ecx = edi; /* 0x47042492: mov ecx, edi */ 574 RECOMP_ICALL(0x4703A340u); /* 0x47042494: call 0x4703a340 */ /* not lifted */ 575 RECOMP_FLAGS_IN(); 576 PUSH32(esp, 0x47105B18u); /* 0x47042499: push 0x47105b18 */ 577 PUSH32(esp, 0x47105B0Cu); /* 0x4704249E: push 0x47105b0c */ 578 PUSH32(esp, 0x80u); /* 0x470424A3: push 0x80 */ 579 PUSH32(esp, edi); /* 0x470424A8: push edi */ 580 RECOMP_ICALL(0x47039830u); /* 0x470424A9: call 0x47039830 */ /* not lifted */ 581 RECOMP_FLAGS_IN(); 582 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 583 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 584 esp = esp + 0x10u; /* 0x470424AE: add esp, 0x10 */ 585 _flag_k = FK_ADD; 586 L_470424B1: 587 ecx = esp + 0x18; /* 0x470424B1: lea ecx, [esp + 0x18] */ 588 MEM8(esp + 0x28) = (uint8_t)(2); /* 0x470424B5: mov byte ptr [esp + 0x28], 2 */ 589 RECOMP_ICALL(0x47042730u); /* 0x470424BA: call 0x47042730 */ /* not lifted */ 590 RECOMP_FLAGS_IN(); 591 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470424BF: call dword ptr [0x470ac150] */ 592 RECOMP_FLAGS_IN(); 593 ebx = eax; /* 0x470424C5: mov ebx, eax */ 594 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470424C7: call dword ptr [0x470ac3c8] */ 595 RECOMP_FLAGS_IN(); 596 eax = MEM32(eax); /* 0x470424CD: mov eax, dword ptr [eax] */ 597 /* cmp eax, ebp */ /* 0x470424CF: cmp eax, ebp */ 598 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 599 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 600 _flag_k = FK_CMP; 601 if (CMP_EQ(_flag_a, _flag_b)) goto L_470424D5; /* 0x470424D1: je 0x470424d5 */ 602 L_470424D3: 603 ebx = eax; /* 0x470424D3: mov ebx, eax */ 604 L_470424D5: 605 RECOMP_ICALL(0x47039020u); /* 0x470424D5: call 0x47039020 */ /* not lifted */ 606 RECOMP_FLAGS_IN(); 607 edi = eax; /* 0x470424DA: mov edi, eax */ 608 ecx = edi; /* 0x470424DC: mov ecx, edi */ 609 RECOMP_ICALL(0x4703B210u); /* 0x470424DE: call 0x4703b210 */ /* not lifted */ 610 RECOMP_FLAGS_IN(); 611 PUSH32(esp, eax); /* 0x470424E3: push eax */ 612 ecx = edi; /* 0x470424E4: mov ecx, edi */ 613 RECOMP_ICALL(0x4703B240u); /* 0x470424E6: call 0x4703b240 */ /* not lifted */ 614 RECOMP_FLAGS_IN(); 615 PUSH32(esp, eax); /* 0x470424EB: push eax */ 616 ecx = edi; /* 0x470424EC: mov ecx, edi */ 617 RECOMP_ICALL(0x4703B080u); /* 0x470424EE: call 0x4703b080 */ /* not lifted */ 618 RECOMP_FLAGS_IN(); 619 PUSH32(esp, eax); /* 0x470424F3: push eax */ 620 PUSH32(esp, ebx); /* 0x470424F4: push ebx */ 621 PUSH32(esp, 0xFFFFFFFFu); /* 0x470424F5: push -1 */ 622 PUSH32(esp, 0xF3u); /* 0x470424F7: push 0xf3 */ 623 PUSH32(esp, 0x47105B2Cu); /* 0x470424FC: push 0x47105b2c */ 624 ecx = edi; /* 0x47042501: mov ecx, edi */ 625 RECOMP_ICALL(0x4703A340u); /* 0x47042503: call 0x4703a340 */ /* not lifted */ 626 RECOMP_FLAGS_IN(); 627 PUSH32(esp, 0x47105ACCu); /* 0x47042508: push 0x47105acc */ 628 PUSH32(esp, 0x47105B8Cu); /* 0x4704250D: push 0x47105b8c */ 629 PUSH32(esp, 0x80u); /* 0x47042512: push 0x80 */ 630 PUSH32(esp, edi); /* 0x47042517: push edi */ 631 RECOMP_ICALL(0x47039830u); /* 0x47042518: call 0x47039830 */ /* not lifted */ 632 RECOMP_FLAGS_IN(); 633 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 634 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 635 esp = esp + 0x10u; /* 0x4704251D: add esp, 0x10 */ 636 _flag_k = FK_ADD; 637 L_47042520: 638 edi = MEM32(esp + 0x10); /* 0x47042520: mov edi, dword ptr [esp + 0x10] */ 639 ebp = POP32_VAL(esp); /* 0x47042524: pop ebp */ 640 ebx = POP32_VAL(esp); /* 0x47042525: pop ebx */ 641 goto L_470425FC; /* 0x47042526: jmp 0x470425fc */ 642 L_4704252B: 643 /* cmp MEM32(esp + 0x30), ebp */ /* 0x4704252B: cmp dword ptr [esp + 0x30], ebp */ 644 _flag_a = (uint32_t)(MEM32(esp + 0x30)); _flag_b = (uint32_t)(ebp); 645 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 646 _flag_k = FK_CMP; 647 if (CMP_EQ(_flag_a, _flag_b)) goto L_470425D2; /* 0x4704252F: je 0x470425d2 */ 648 L_47042535: 649 edi = eax + 0x8; /* 0x47042535: lea edi, [eax + 8] */ 650 /* cmp edi, ebp */ /* 0x47042538: cmp edi, ebp */ 651 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebp); 652 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 653 _flag_k = FK_CMP; 654 ebx = eax + 0x118; /* 0x4704253A: lea ebx, [eax + 0x118] */ 655 if (CMP_EQ(_flag_a, _flag_b)) goto L_4704254B; /* 0x47042540: je 0x4704254b */ 656 L_47042542: 657 PUSH32(esp, ebp); /* 0x47042542: push ebp */ 658 PUSH32(esp, eax); /* 0x47042543: push eax */ 659 ecx = edi; /* 0x47042544: mov ecx, edi */ 660 RECOMP_ICALL(0x47042710u); /* 0x47042546: call 0x47042710 */ /* not lifted */ 661 RECOMP_FLAGS_IN(); 662 L_4704254B: 663 PUSH32(esp, ebx); /* 0x4704254B: push ebx */ 664 ecx = edi; /* 0x4704254C: mov ecx, edi */ 665 RECOMP_ICALL(0x470426F0u); /* 0x4704254E: call 0x470426f0 */ /* not lifted */ 666 RECOMP_FLAGS_IN(); 667 ecx = MEM32(esi); /* 0x47042553: mov ecx, dword ptr [esi] */ 668 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 669 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 670 ecx = ecx + 8; /* 0x47042555: add ecx, 8 */ 671 _flag_k = FK_ADD; 672 RECOMP_ICALL(0x470427A0u); /* 0x47042558: call 0x470427a0 */ /* not lifted */ 673 RECOMP_FLAGS_IN(); 674 edx = MEM32(esi); /* 0x4704255D: mov edx, dword ptr [esi] */ 675 ebx = MEM32(edx + 0xC); /* 0x4704255F: mov ebx, dword ptr [edx + 0xc] */ 676 ecx = edx + 0x8; /* 0x47042562: lea ecx, [edx + 8] */ 677 PUSH32(esp, edx); /* 0x47042565: push edx */ 678 edx = MEM32(ecx); /* 0x47042566: mov edx, dword ptr [ecx] */ 679 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 680 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 681 edx = edx - ebx; /* 0x47042568: sub edx, ebx */ 682 _flag_k = FK_CMP; 683 PUSH32(esp, eax); /* 0x4704256A: push eax */ 684 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 685 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 686 edx = edx + ecx; /* 0x4704256B: add edx, ecx */ 687 _flag_k = FK_ADD; 688 PUSH32(esp, edx); /* 0x4704256D: push edx */ 689 RECOMP_ICALL(0x47009A00u); /* 0x4704256E: call 0x47009a00 */ /* not lifted */ 690 RECOMP_FLAGS_IN(); 691 eax = MEM32(esi); /* 0x47042573: mov eax, dword ptr [esi] */ 692 PUSH32(esp, eax); /* 0x47042575: push eax */ 693 PUSH32(esp, ebp); /* 0x47042576: push ebp */ 694 PUSH32(esp, eax); /* 0x47042577: push eax */ 695 RECOMP_ICALL(0x47009A00u); /* 0x47042578: call 0x47009a00 */ /* not lifted */ 696 RECOMP_FLAGS_IN(); 697 eax = MEM32(esi); /* 0x4704257D: mov eax, dword ptr [esi] */ 698 ecx = MEM32(eax + 0x8); /* 0x4704257F: mov ecx, dword ptr [eax + 8] */ 699 edx = MEM32(eax + 0xC); /* 0x47042582: mov edx, dword ptr [eax + 0xc] */ 700 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 701 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 702 eax = eax + 8; /* 0x47042585: add eax, 8 */ 703 _flag_k = FK_ADD; 704 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 705 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 706 ecx = ecx - edx; /* 0x47042588: sub ecx, edx */ 707 _flag_k = FK_CMP; 708 MEM32(ecx + eax + 0x8) = ebp; /* 0x4704258A: mov dword ptr [ecx + eax + 8], ebp */ 709 eax = MEM32(esp + 0x4C); /* 0x4704258E: mov eax, dword ptr [esp + 0x4c] */ 710 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 711 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 712 esp = esp + 0x18u; /* 0x47042592: add esp, 0x18 */ 713 _flag_k = FK_ADD; 714 /* cmp eax, 0x138u */ /* 0x47042595: cmp eax, 0x138 */ 715 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x138u); 716 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 717 _flag_k = FK_CMP; 718 if (CMP_BE(_flag_a, _flag_b)) goto L_470425D2; /* 0x4704259A: jbe 0x470425d2 */ 719 L_4704259C: 720 ecx = MEM32(esi); /* 0x4704259C: mov ecx, dword ptr [esi] */ 721 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 722 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 723 ecx = ecx + 8; /* 0x4704259E: add ecx, 8 */ 724 _flag_k = FK_ADD; 725 RECOMP_ICALL(0x470427A0u); /* 0x470425A1: call 0x470427a0 */ /* not lifted */ 726 RECOMP_FLAGS_IN(); 727 edx = MEM32(esi); /* 0x470425A6: mov edx, dword ptr [esi] */ 728 PUSH32(esp, edx); /* 0x470425A8: push edx */ 729 edi = eax; /* 0x470425A9: mov edi, eax */ 730 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 731 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 732 edi = edi + 0x10u; /* 0x470425AB: add edi, 0x10 */ 733 _flag_k = FK_ADD; 734 PUSH32(esp, ebp); /* 0x470425AE: push ebp */ 735 PUSH32(esp, edi); /* 0x470425AF: push edi */ 736 RECOMP_ICALL(0x47009A00u); /* 0x470425B0: call 0x47009a00 */ /* not lifted */ 737 RECOMP_FLAGS_IN(); 738 eax = MEM32(esp + 0x40); /* 0x470425B5: mov eax, dword ptr [esp + 0x40] */ 739 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFED8u); 740 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 741 eax = eax + 0xFFFFFED8u; /* 0x470425B9: add eax, 0xfffffed8 */ 742 _flag_k = FK_ADD; 743 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x470425BE: shr eax, 4 */ 744 if (4u) { _flag_a = recomp_flags_pack((eax >> 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 745 eax = eax >> 4u; /* 0x470425BE: shr eax, 4 */ 746 MEM32(edi + 0x8) = eax; /* 0x470425C1: mov dword ptr [edi + 8], eax */ 747 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 748 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 749 esp = esp + 0xCu; /* 0x470425C4: add esp, 0xc */ 750 _flag_k = FK_ADD; 751 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 752 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 753 edi = edi + 0x10u; /* 0x470425C7: add edi, 0x10 */ 754 _flag_k = FK_ADD; 755 PUSH32(esp, edi); /* 0x470425CA: push edi */ 756 ecx = esi; /* 0x470425CB: mov ecx, esi */ 757 RECOMP_ICALL(0x47040220u); /* 0x470425CD: call 0x47040220 */ /* not lifted */ 758 RECOMP_FLAGS_IN(); 759 L_470425D2: 760 ecx = MEM32(esp + 0x1C); /* 0x470425D2: mov ecx, dword ptr [esp + 0x1c] */ 761 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 762 eax = eax | 0xFFFFFFFFu; /* 0x470425D6: or eax, 0xffffffff */ 763 _cf = 0; 764 _flag_k = FK_TEST; 765 /* cmp ecx, eax */ /* 0x470425D9: cmp ecx, eax */ 766 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 767 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 768 _flag_k = FK_CMP; 769 RECOMP_BACKEDGE(); 770 if (CMP_EQ(_flag_a, _flag_b)) goto L_47042520; /* 0x470425DB: je 0x47042520 */ 771 L_470425E1: 772 ecx = MEM32(esp + 0x18); /* 0x470425E1: mov ecx, dword ptr [esp + 0x18] */ 773 PUSH32(esp, ecx); /* 0x470425E5: push ecx */ 774 MEM32(esp + 0x20) = eax; /* 0x470425E6: mov dword ptr [esp + 0x20], eax */ 775 RECOMP_ICALL(0x47002210u); /* 0x470425EA: call 0x47002210 */ /* not lifted */ 776 RECOMP_FLAGS_IN(); 777 edi = MEM32(esp + 0x14); /* 0x470425EF: mov edi, dword ptr [esp + 0x14] */ 778 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 779 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 780 esp = esp + 4; /* 0x470425F3: add esp, 4 */ 781 _flag_k = FK_ADD; 782 ebp = POP32_VAL(esp); /* 0x470425F6: pop ebp */ 783 ebx = POP32_VAL(esp); /* 0x470425F7: pop ebx */ 784 goto L_470425FC; /* 0x470425F8: jmp 0x470425fc */ 785 L_470425FA: 786 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 787 esi = 0; /* 0x470425FA: xor esi, esi */ 788 _cf = 0; 789 _flag_k = FK_TEST; 790 L_470425FC: 791 MEM32(edi) = esi; /* 0x470425FC: mov dword ptr [edi], esi */ 792 /* test esi, esi */ /* 0x470425FE: test esi, esi */ 793 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 794 _cf = 0; 795 _flag_k = FK_TEST; 796 esi = POP32_VAL(esp); /* 0x47042600: pop esi */ 797 if (TEST_NZ(_flag_a, _flag_b)) goto L_47042624; /* 0x47042601: jne 0x47042624 */ 798 L_47042603: 799 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47042603: call dword ptr [0x470ac3c8] */ 800 RECOMP_FLAGS_IN(); 801 MEM32(eax) = 0xCu; /* 0x47042609: mov dword ptr [eax], 0xc */ 802 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 803 eax = eax | 0xFFFFFFFFu; /* 0x4704260F: or eax, 0xffffffff */ 804 _cf = 0; 805 _flag_k = FK_TEST; 806 edi = POP32_VAL(esp); /* 0x47042612: pop edi */ 807 ecx = MEM32(esp + 0x10); /* 0x47042613: mov ecx, dword ptr [esp + 0x10] */ 808 MEM32(FS_BASE + (0)) = ecx; /* 0x47042617: mov dword ptr fs:[0], ecx */ 809 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 810 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 811 esp = esp + 0x1Cu; /* 0x4704261E: add esp, 0x1c */ 812 _flag_k = FK_ADD; 813 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47042621: ret 8 */ 814 L_47042624: 815 ecx = MEM32(esp + 0x14); /* 0x47042624: mov ecx, dword ptr [esp + 0x14] */ 816 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 817 eax = 0; /* 0x47042628: xor eax, eax */ 818 _cf = 0; 819 _flag_k = FK_TEST; 820 edi = POP32_VAL(esp); /* 0x4704262A: pop edi */ 821 MEM32(FS_BASE + (0)) = ecx; /* 0x4704262B: mov dword ptr fs:[0], ecx */ 822 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 823 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 824 esp = esp + 0x1Cu; /* 0x47042632: add esp, 0x1c */ 825 _flag_k = FK_ADD; 826 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47042635: ret 8 */ 827 RECOMP_REGS_OUT(); 828 } 829 830 void sub_470425FC(void) { 831 int _fpu_cmp = 0; 832 uint32_t _cf = 0; 833 int _df = 1; 834 uint32_t _flag_k = FK_NONE; 835 uint32_t _flag_a = 0, _flag_b = 0; 836 uint32_t _itail_tgt = 0; 837 RECOMP_REGS_LOCALS 838 RECOMP_ENTER(0x470425FCu); 839 840 L_470425FC: 841 MEM32(edi) = esi; /* 0x470425FC: mov dword ptr [edi], esi */ 842 /* test esi, esi */ /* 0x470425FE: test esi, esi */ 843 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 844 _cf = 0; 845 _flag_k = FK_TEST; 846 esi = POP32_VAL(esp); /* 0x47042600: pop esi */ 847 if (TEST_NZ(_flag_a, _flag_b)) goto L_47042624; /* 0x47042601: jne 0x47042624 */ 848 L_47042603: 849 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47042603: call dword ptr [0x470ac3c8] */ 850 RECOMP_FLAGS_IN(); 851 MEM32(eax) = 0xCu; /* 0x47042609: mov dword ptr [eax], 0xc */ 852 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 853 eax = eax | 0xFFFFFFFFu; /* 0x4704260F: or eax, 0xffffffff */ 854 _cf = 0; 855 _flag_k = FK_TEST; 856 edi = POP32_VAL(esp); /* 0x47042612: pop edi */ 857 ecx = MEM32(esp + 0x10); /* 0x47042613: mov ecx, dword ptr [esp + 0x10] */ 858 MEM32(FS_BASE + (0)) = ecx; /* 0x47042617: mov dword ptr fs:[0], ecx */ 859 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 860 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 861 esp = esp + 0x1Cu; /* 0x4704261E: add esp, 0x1c */ 862 _flag_k = FK_ADD; 863 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47042621: ret 8 */ 864 L_47042624: 865 ecx = MEM32(esp + 0x14); /* 0x47042624: mov ecx, dword ptr [esp + 0x14] */ 866 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 867 eax = 0; /* 0x47042628: xor eax, eax */ 868 _cf = 0; 869 _flag_k = FK_TEST; 870 edi = POP32_VAL(esp); /* 0x4704262A: pop edi */ 871 MEM32(FS_BASE + (0)) = ecx; /* 0x4704262B: mov dword ptr fs:[0], ecx */ 872 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 873 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 874 esp = esp + 0x1Cu; /* 0x47042632: add esp, 0x1c */ 875 _flag_k = FK_ADD; 876 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47042635: ret 8 */ 877 RECOMP_REGS_OUT(); 878 } 879 880 void sub_47042640(void) { 881 int _fpu_cmp = 0; 882 uint32_t _cf = 0; 883 int _df = 1; 884 uint32_t _flag_k = FK_NONE; 885 uint32_t _flag_a = 0, _flag_b = 0; 886 uint32_t _itail_tgt = 0; 887 RECOMP_REGS_LOCALS 888 RECOMP_ENTER(0x47042640u); 889 890 L_47042640: 891 PUSH32(esp, esi); /* 0x47042640: push esi */ 892 esi = MEM32(ecx); /* 0x47042641: mov esi, dword ptr [ecx] */ 893 /* test esi, esi */ /* 0x47042643: test esi, esi */ 894 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 895 _cf = 0; 896 _flag_k = FK_TEST; 897 if (TEST_Z(_flag_a, _flag_b)) goto L_470426DF; /* 0x47042645: je 0x470426df */ 898 L_4704264B: 899 eax = MEM32(esp + 0x8); /* 0x4704264B: mov eax, dword ptr [esp + 8] */ 900 /* test eax, eax */ /* 0x4704264F: test eax, eax */ 901 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 902 _cf = 0; 903 _flag_k = FK_TEST; 904 if (TEST_Z(_flag_a, _flag_b)) goto L_470426DF; /* 0x47042651: je 0x470426df */ 905 L_47042657: 906 eax = MEM32(esi + 0x26C); /* 0x47042657: mov eax, dword ptr [esi + 0x26c] */ 907 /* test eax, eax */ /* 0x4704265D: test eax, eax */ 908 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 909 _cf = 0; 910 _flag_k = FK_TEST; 911 if (TEST_NZ(_flag_a, _flag_b)) goto L_470426D0; /* 0x4704265F: jne 0x470426d0 */ 912 L_47042661: 913 eax = MEM32(esi + 0x250); /* 0x47042661: mov eax, dword ptr [esi + 0x250] */ 914 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 915 eax = eax - 1; /* 0x47042667: dec eax */ 916 _flag_k = FK_DEC; 917 MEM32(esi + 0x26C) = 1; /* 0x47042668: mov dword ptr [esi + 0x26c], 1 */ 918 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_470426C3; /* 0x47042672: je 0x470426c3 */ 919 L_47042674: 920 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 921 eax = eax - 1; /* 0x47042674: dec eax */ 922 _flag_k = FK_DEC; 923 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_47042691; /* 0x47042675: je 0x47042691 */ 924 L_47042677: 925 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47042677: call dword ptr [0x470ac3c8] */ 926 RECOMP_FLAGS_IN(); 927 ecx = esi + 0x4; /* 0x4704267D: lea ecx, [esi + 4] */ 928 MEM32(eax) = 0x16u; /* 0x47042680: mov dword ptr [eax], 0x16 */ 929 edx = MEM32(ecx); /* 0x47042686: mov edx, dword ptr [ecx] */ 930 RECOMP_ICALL(MEM32(edx + 0x48)); /* 0x47042688: call dword ptr [edx + 0x48] */ 931 RECOMP_FLAGS_IN(); 932 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 933 eax = 0; /* 0x4704268B: xor eax, eax */ 934 _cf = 0; 935 _flag_k = FK_TEST; 936 esi = POP32_VAL(esp); /* 0x4704268D: pop esi */ 937 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4704268E: ret 4 */ 938 L_47042691: 939 eax = MEM32(esi + 0x254); /* 0x47042691: mov eax, dword ptr [esi + 0x254] */ 940 PUSH32(esp, eax); /* 0x47042697: push eax */ 941 RECOMP_ICALL(MEM32(0x470AC198)); /* 0x47042698: call dword ptr [0x470ac198] */ 942 RECOMP_FLAGS_IN(); 943 /* test eax, eax */ /* 0x4704269E: test eax, eax */ 944 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 945 _cf = 0; 946 _flag_k = FK_TEST; 947 if (TEST_NZ(_flag_a, _flag_b)) goto L_470426D0; /* 0x470426A0: jne 0x470426d0 */ 948 L_470426A2: 949 PUSH32(esp, edi); /* 0x470426A2: push edi */ 950 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470426A3: call dword ptr [0x470ac3c8] */ 951 RECOMP_FLAGS_IN(); 952 edi = eax; /* 0x470426A9: mov edi, eax */ 953 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470426AB: call dword ptr [0x470ac150] */ 954 RECOMP_FLAGS_IN(); 955 MEM32(edi) = eax; /* 0x470426B1: mov dword ptr [edi], eax */ 956 edx = MEM32(esi + 0x4); /* 0x470426B3: mov edx, dword ptr [esi + 4] */ 957 ecx = esi + 0x4; /* 0x470426B6: lea ecx, [esi + 4] */ 958 edi = POP32_VAL(esp); /* 0x470426B9: pop edi */ 959 RECOMP_ICALL(MEM32(edx + 0x48)); /* 0x470426BA: call dword ptr [edx + 0x48] */ 960 RECOMP_FLAGS_IN(); 961 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 962 eax = 0; /* 0x470426BD: xor eax, eax */ 963 _cf = 0; 964 _flag_k = FK_TEST; 965 esi = POP32_VAL(esp); /* 0x470426BF: pop esi */ 966 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470426C0: ret 4 */ 967 L_470426C3: 968 ecx = esi + 0x254; /* 0x470426C3: lea ecx, [esi + 0x254] */ 969 PUSH32(esp, ecx); /* 0x470426C9: push ecx */ 970 RECOMP_ICALL(MEM32(0x470AC19C)); /* 0x470426CA: call dword ptr [0x470ac19c] */ 971 RECOMP_FLAGS_IN(); 972 L_470426D0: 973 edx = MEM32(esi + 0x4); /* 0x470426D0: mov edx, dword ptr [esi + 4] */ 974 ecx = esi + 0x4; /* 0x470426D3: lea ecx, [esi + 4] */ 975 RECOMP_ICALL(MEM32(edx + 0x48)); /* 0x470426D6: call dword ptr [edx + 0x48] */ 976 RECOMP_FLAGS_IN(); 977 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 978 eax = 0; /* 0x470426D9: xor eax, eax */ 979 _cf = 0; 980 _flag_k = FK_TEST; 981 esi = POP32_VAL(esp); /* 0x470426DB: pop esi */ 982 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470426DC: ret 4 */ 983 L_470426DF: 984 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 985 eax = eax | 0xFFFFFFFFu; /* 0x470426DF: or eax, 0xffffffff */ 986 _cf = 0; 987 _flag_k = FK_TEST; 988 esi = POP32_VAL(esp); /* 0x470426E2: pop esi */ 989 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470426E3: ret 4 */ 990 RECOMP_REGS_OUT(); 991 } 992 993 void sub_470426F0(void) { 994 int _fpu_cmp = 0; 995 uint32_t _cf = 0; 996 int _df = 1; 997 uint32_t _flag_k = FK_NONE; 998 uint32_t _flag_a = 0, _flag_b = 0; 999 uint32_t _itail_tgt = 0; 1000 RECOMP_REGS_LOCALS 1001 RECOMP_ENTER(0x470426F0u); 1002 1003 L_470426F0: 1004 eax = MEM32(esp + 0x4); /* 0x470426F0: mov eax, dword ptr [esp + 4] */ 1005 /* test eax, eax */ /* 0x470426F4: test eax, eax */ 1006 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1007 _cf = 0; 1008 _flag_k = FK_TEST; 1009 if (TEST_NZ(_flag_a, _flag_b)) goto L_47042701; /* 0x470426F6: jne 0x47042701 */ 1010 L_470426F8: 1011 MEM32(ecx) = 0xFFFFFFFFu; /* 0x470426F8: mov dword ptr [ecx], 0xffffffff */ 1012 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470426FE: ret 4 */ 1013 L_47042701: 1014 edx = MEM32(ecx + 0x4); /* 0x47042701: mov edx, dword ptr [ecx + 4] */ 1015 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 1016 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1017 edx = edx - ecx; /* 0x47042704: sub edx, ecx */ 1018 _flag_k = FK_CMP; 1019 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1020 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1021 edx = edx + eax; /* 0x47042706: add edx, eax */ 1022 _flag_k = FK_ADD; 1023 MEM32(ecx) = edx; /* 0x47042708: mov dword ptr [ecx], edx */ 1024 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4704270A: ret 4 */ 1025 RECOMP_REGS_OUT(); 1026 } 1027 1028 void sub_47042710(void) { 1029 int _fpu_cmp = 0; 1030 uint32_t _cf = 0; 1031 int _df = 1; 1032 uint32_t _flag_k = FK_NONE; 1033 uint32_t _flag_a = 0, _flag_b = 0; 1034 uint32_t _itail_tgt = 0; 1035 RECOMP_REGS_LOCALS 1036 RECOMP_ENTER(0x47042710u); 1037 1038 L_47042710: 1039 edx = MEM32(esp + 0x4); /* 0x47042710: mov edx, dword ptr [esp + 4] */ 1040 eax = ecx; /* 0x47042714: mov eax, ecx */ 1041 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1042 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1043 ecx = ecx - edx; /* 0x47042716: sub ecx, edx */ 1044 _flag_k = FK_CMP; 1045 MEM32(eax) = 0; /* 0x47042718: mov dword ptr [eax], 0 */ 1046 MEM32(eax + 0x4) = ecx; /* 0x4704271E: mov dword ptr [eax + 4], ecx */ 1047 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47042721: ret 8 */ 1048 RECOMP_REGS_OUT(); 1049 } 1050 1051 void sub_47042730(void) { 1052 int _fpu_cmp = 0; 1053 uint32_t _cf = 0; 1054 int _df = 1; 1055 uint32_t _flag_k = FK_NONE; 1056 uint32_t _flag_a = 0, _flag_b = 0; 1057 uint32_t _itail_tgt = 0; 1058 RECOMP_REGS_LOCALS 1059 RECOMP_ENTER(0x47042730u); 1060 1061 L_47042730: 1062 eax = MEM32(ecx + 0x4); /* 0x47042730: mov eax, dword ptr [ecx + 4] */ 1063 PUSH32(esp, edi); /* 0x47042733: push edi */ 1064 _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu)); 1065 edi = edi | 0xFFFFFFFFu; /* 0x47042734: or edi, 0xffffffff */ 1066 _cf = 0; 1067 _flag_k = FK_TEST; 1068 /* cmp eax, edi */ /* 0x47042737: cmp eax, edi */ 1069 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 1070 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1071 _flag_k = FK_CMP; 1072 if (CMP_EQ(_flag_a, _flag_b)) goto L_4704278F; /* 0x47042739: je 0x4704278f */ 1073 L_4704273B: 1074 eax = MEM32(ecx); /* 0x4704273B: mov eax, dword ptr [ecx] */ 1075 MEM32(ecx + 0x4) = edi; /* 0x4704273D: mov dword ptr [ecx + 4], edi */ 1076 ecx = MEM32(eax); /* 0x47042740: mov ecx, dword ptr [eax] */ 1077 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1078 ecx = ecx - 1; /* 0x47042742: dec ecx */ 1079 _flag_k = FK_DEC; 1080 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_47042785; /* 0x47042743: je 0x47042785 */ 1081 L_47042745: 1082 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1083 ecx = ecx - 1; /* 0x47042745: dec ecx */ 1084 _flag_k = FK_DEC; 1085 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_47042758; /* 0x47042746: je 0x47042758 */ 1086 L_47042748: 1087 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47042748: call dword ptr [0x470ac3c8] */ 1088 RECOMP_FLAGS_IN(); 1089 MEM32(eax) = 0x16u; /* 0x4704274E: mov dword ptr [eax], 0x16 */ 1090 eax = edi; /* 0x47042754: mov eax, edi */ 1091 edi = POP32_VAL(esp); /* 0x47042756: pop edi */ 1092 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47042757: ret */ 1093 L_47042758: 1094 eax = MEM32(eax + 0x4); /* 0x47042758: mov eax, dword ptr [eax + 4] */ 1095 PUSH32(esp, esi); /* 0x4704275B: push esi */ 1096 PUSH32(esp, eax); /* 0x4704275C: push eax */ 1097 RECOMP_ICALL(MEM32(0x470AC18C)); /* 0x4704275D: call dword ptr [0x470ac18c] */ 1098 RECOMP_FLAGS_IN(); 1099 esi = eax; /* 0x47042763: mov esi, eax */ 1100 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi); 1101 _cf = (esi) != 0; 1102 esi = (uint32_t)(-(int32_t)esi); /* 0x47042765: neg esi */ 1103 _flag_k = FK_CMP; 1104 { uint32_t _sa = esi, _sb = esi, _sc = _cf; /* 0x47042767: sbb esi, esi */ 1105 esi = _sc ? 0xFFFFFFFFu : 0; 1106 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1107 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1108 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi); 1109 _cf = (esi) != 0; 1110 esi = (uint32_t)(-(int32_t)esi); /* 0x47042769: neg esi */ 1111 _flag_k = FK_CMP; 1112 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 1113 esi = esi - 1; /* 0x4704276B: dec esi */ 1114 _flag_k = FK_DEC; 1115 /* cmp esi, edi */ /* 0x4704276C: cmp esi, edi */ 1116 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 1117 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1118 _flag_k = FK_CMP; 1119 if (CMP_NE(_flag_a, _flag_b)) goto L_47042780; /* 0x4704276E: jne 0x47042780 */ 1120 L_47042770: 1121 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47042770: call dword ptr [0x470ac3c8] */ 1122 RECOMP_FLAGS_IN(); 1123 edi = eax; /* 0x47042776: mov edi, eax */ 1124 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47042778: call dword ptr [0x470ac150] */ 1125 RECOMP_FLAGS_IN(); 1126 MEM32(edi) = eax; /* 0x4704277E: mov dword ptr [edi], eax */ 1127 L_47042780: 1128 eax = esi; /* 0x47042780: mov eax, esi */ 1129 esi = POP32_VAL(esp); /* 0x47042782: pop esi */ 1130 edi = POP32_VAL(esp); /* 0x47042783: pop edi */ 1131 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47042784: ret */ 1132 L_47042785: 1133 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 1134 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1135 eax = eax + 4; /* 0x47042785: add eax, 4 */ 1136 _flag_k = FK_ADD; 1137 PUSH32(esp, eax); /* 0x47042788: push eax */ 1138 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47042789: call dword ptr [0x470ac190] */ 1139 RECOMP_FLAGS_IN(); 1140 L_4704278F: 1141 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1142 eax = 0; /* 0x4704278F: xor eax, eax */ 1143 _cf = 0; 1144 _flag_k = FK_TEST; 1145 edi = POP32_VAL(esp); /* 0x47042791: pop edi */ 1146 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47042792: ret */ 1147 RECOMP_REGS_OUT(); 1148 } 1149 1150 void sub_470427A0(void) { 1151 int _fpu_cmp = 0; 1152 uint32_t _cf = 0; 1153 int _df = 1; 1154 uint32_t _flag_k = FK_NONE; 1155 uint32_t _flag_a = 0, _flag_b = 0; 1156 uint32_t _itail_tgt = 0; 1157 RECOMP_REGS_LOCALS 1158 RECOMP_ENTER(0x470427A0u); 1159 1160 L_470427A0: 1161 eax = MEM32(ecx); /* 0x470427A0: mov eax, dword ptr [ecx] */ 1162 /* cmp eax, 0xFFFFFFFFu */ /* 0x470427A2: cmp eax, -1 */ 1163 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 1164 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1165 _flag_k = FK_CMP; 1166 if (CMP_NE(_flag_a, _flag_b)) goto L_470427AA; /* 0x470427A5: jne 0x470427aa */ 1167 L_470427A7: 1168 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1169 eax = 0; /* 0x470427A7: xor eax, eax */ 1170 _cf = 0; 1171 _flag_k = FK_TEST; 1172 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470427A9: ret */ 1173 L_470427AA: 1174 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 1175 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1176 eax = eax - MEM32(ecx + 0x4); /* 0x470427AA: sub eax, dword ptr [ecx + 4] */ 1177 _flag_k = FK_CMP; 1178 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1179 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1180 eax = eax + ecx; /* 0x470427AD: add eax, ecx */ 1181 _flag_k = FK_ADD; 1182 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470427AF: ret */ 1183 RECOMP_REGS_OUT(); 1184 } 1185 1186 void sub_470427B0(void) { 1187 int _fpu_cmp = 0; 1188 uint32_t _cf = 0; 1189 int _df = 1; 1190 uint32_t _flag_k = FK_NONE; 1191 uint32_t _flag_a = 0, _flag_b = 0; 1192 uint32_t _itail_tgt = 0; 1193 RECOMP_REGS_LOCALS 1194 RECOMP_ENTER(0x470427B0u); 1195 1196 L_470427B0: 1197 ecx = 0x4710E6D1u; /* 0x470427B0: mov ecx, 0x4710e6d1 */ 1198 RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x470427B5: call dword ptr [0x470ac1c8] */ 1199 RECOMP_FLAGS_IN(); 1200 PUSH32(esp, 0x470427D0u); /* 0x470427BB: push 0x470427d0 */ 1201 RECOMP_ICALL(0x470A32D9u); /* 0x470427C0: call 0x470a32d9 */ /* not lifted */ 1202 RECOMP_FLAGS_IN(); 1203 ecx = POP32_VAL(esp); /* 0x470427C5: pop ecx */ 1204 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470427C6: ret */ 1205 RECOMP_REGS_OUT(); 1206 } 1207 1208 void sub_470427D0(void) { 1209 int _fpu_cmp = 0; 1210 uint32_t _cf = 0; 1211 int _df = 1; 1212 uint32_t _flag_k = FK_NONE; 1213 uint32_t _flag_a = 0, _flag_b = 0; 1214 uint32_t _itail_tgt = 0; 1215 RECOMP_REGS_LOCALS 1216 RECOMP_ENTER(0x470427D0u); 1217 1218 L_470427D0: 1219 ecx = 0x4710E6D1u; /* 0x470427D0: mov ecx, 0x4710e6d1 */ 1220 L_470427D5: 1221 { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; } 1222 { RECOMP_REGS_OUT(); return; } /* end of function */ 1223 _ljump: 1224 switch (_itail_tgt) { 1225 case 0x470427D0u: goto L_470427D0; 1226 case 0x470427D5u: goto L_470427D5; 1227 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1228 } 1229 RECOMP_REGS_OUT(); 1230 } 1231 1232 void sub_470427E0(void) { 1233 int _fpu_cmp = 0; 1234 uint32_t _cf = 0; 1235 int _df = 1; 1236 uint32_t _flag_k = FK_NONE; 1237 uint32_t _flag_a = 0, _flag_b = 0; 1238 uint32_t _itail_tgt = 0; 1239 RECOMP_REGS_LOCALS 1240 RECOMP_ENTER(0x470427E0u); 1241 1242 L_470427E0: 1243 ecx = 0x4710E6D0u; /* 0x470427E0: mov ecx, 0x4710e6d0 */ 1244 RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x470427E5: call dword ptr [0x470ac1c4] */ 1245 RECOMP_FLAGS_IN(); 1246 PUSH32(esp, 0x47042800u); /* 0x470427EB: push 0x47042800 */ 1247 RECOMP_ICALL(0x470A32D9u); /* 0x470427F0: call 0x470a32d9 */ /* not lifted */ 1248 RECOMP_FLAGS_IN(); 1249 ecx = POP32_VAL(esp); /* 0x470427F5: pop ecx */ 1250 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470427F6: ret */ 1251 RECOMP_REGS_OUT(); 1252 } 1253 1254 void sub_47042800(void) { 1255 int _fpu_cmp = 0; 1256 uint32_t _cf = 0; 1257 int _df = 1; 1258 uint32_t _flag_k = FK_NONE; 1259 uint32_t _flag_a = 0, _flag_b = 0; 1260 uint32_t _itail_tgt = 0; 1261 RECOMP_REGS_LOCALS 1262 RECOMP_ENTER(0x47042800u); 1263 1264 L_47042800: 1265 ecx = 0x4710E6D0u; /* 0x47042800: mov ecx, 0x4710e6d0 */ 1266 L_47042805: 1267 { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; } 1268 { RECOMP_REGS_OUT(); return; } /* end of function */ 1269 _ljump: 1270 switch (_itail_tgt) { 1271 case 0x47042800u: goto L_47042800; 1272 case 0x47042805u: goto L_47042805; 1273 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1274 } 1275 RECOMP_REGS_OUT(); 1276 } 1277 1278 void sub_47042810(void) { 1279 int _fpu_cmp = 0; 1280 uint32_t _cf = 0; 1281 int _df = 1; 1282 uint32_t _flag_k = FK_NONE; 1283 uint32_t _flag_a = 0, _flag_b = 0; 1284 uint32_t _itail_tgt = 0; 1285 RECOMP_REGS_LOCALS 1286 RECOMP_ENTER(0x47042810u); 1287 1288 L_47042810: 1289 MEM32(0x4710E6C8) = 0x47104A3Cu; /* 0x47042810: mov dword ptr [0x4710e6c8], 0x47104a3c */ 1290 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704281A: ret */ 1291 RECOMP_REGS_OUT(); 1292 } 1293 1294 void sub_47042820(void) { 1295 int _fpu_cmp = 0; 1296 uint32_t _cf = 0; 1297 int _df = 1; 1298 uint32_t _flag_k = FK_NONE; 1299 uint32_t _flag_a = 0, _flag_b = 0; 1300 uint32_t _itail_tgt = 0; 1301 RECOMP_REGS_LOCALS 1302 RECOMP_ENTER(0x47042820u); 1303 1304 L_47042820: 1305 MEM32(0x4710E6D8) = 0x47104A00u; /* 0x47042820: mov dword ptr [0x4710e6d8], 0x47104a00 */ 1306 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704282A: ret */ 1307 RECOMP_REGS_OUT(); 1308 } 1309 1310 void sub_47042830(void) { 1311 int _fpu_cmp = 0; 1312 uint32_t _cf = 0; 1313 int _df = 1; 1314 uint32_t _flag_k = FK_NONE; 1315 uint32_t _flag_a = 0, _flag_b = 0; 1316 uint32_t _itail_tgt = 0; 1317 RECOMP_REGS_LOCALS 1318 RECOMP_ENTER(0x47042830u); 1319 1320 L_47042830: 1321 MEM32(0x4710E6D4) = 0x47104A70u; /* 0x47042830: mov dword ptr [0x4710e6d4], 0x47104a70 */ 1322 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704283A: ret */ 1323 RECOMP_REGS_OUT(); 1324 } 1325 1326 void sub_47042840(void) { 1327 int _fpu_cmp = 0; 1328 uint32_t _cf = 0; 1329 int _df = 1; 1330 uint32_t _flag_k = FK_NONE; 1331 uint32_t _flag_a = 0, _flag_b = 0; 1332 uint32_t _itail_tgt = 0; 1333 RECOMP_REGS_LOCALS 1334 RECOMP_ENTER(0x47042840u); 1335 1336 L_47042840: 1337 MEM32(0x4710E6E8) = 0x47104B6Cu; /* 0x47042840: mov dword ptr [0x4710e6e8], 0x47104b6c */ 1338 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704284A: ret */ 1339 RECOMP_REGS_OUT(); 1340 } 1341 1342 void sub_47042850(void) { 1343 int _fpu_cmp = 0; 1344 uint32_t _cf = 0; 1345 int _df = 1; 1346 uint32_t _flag_k = FK_NONE; 1347 uint32_t _flag_a = 0, _flag_b = 0; 1348 uint32_t _itail_tgt = 0; 1349 RECOMP_REGS_LOCALS 1350 RECOMP_ENTER(0x47042850u); 1351 1352 L_47042850: 1353 MEM32(0x4710E6CC) = 0x47104BA0u; /* 0x47042850: mov dword ptr [0x4710e6cc], 0x47104ba0 */ 1354 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704285A: ret */ 1355 RECOMP_REGS_OUT(); 1356 } 1357 1358 void sub_47042860(void) { 1359 int _fpu_cmp = 0; 1360 uint32_t _cf = 0; 1361 int _df = 1; 1362 uint32_t _flag_k = FK_NONE; 1363 uint32_t _flag_a = 0, _flag_b = 0; 1364 uint32_t _itail_tgt = 0; 1365 RECOMP_REGS_LOCALS 1366 RECOMP_ENTER(0x47042860u); 1367 1368 L_47042860: 1369 MEM32(0x4710E6E0) = 0x47104BD4u; /* 0x47042860: mov dword ptr [0x4710e6e0], 0x47104bd4 */ 1370 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704286A: ret */ 1371 RECOMP_REGS_OUT(); 1372 } 1373 1374 void sub_47042870(void) { 1375 int _fpu_cmp = 0; 1376 uint32_t _cf = 0; 1377 int _df = 1; 1378 uint32_t _flag_k = FK_NONE; 1379 uint32_t _flag_a = 0, _flag_b = 0; 1380 uint32_t _itail_tgt = 0; 1381 RECOMP_REGS_LOCALS 1382 RECOMP_ENTER(0x47042870u); 1383 1384 L_47042870: 1385 MEM32(0x4710E6DC) = 0x47104C0Cu; /* 0x47042870: mov dword ptr [0x4710e6dc], 0x47104c0c */ 1386 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704287A: ret */ 1387 RECOMP_REGS_OUT(); 1388 } 1389 1390 void sub_47042880(void) { 1391 int _fpu_cmp = 0; 1392 uint32_t _cf = 0; 1393 int _df = 1; 1394 uint32_t _flag_k = FK_NONE; 1395 uint32_t _flag_a = 0, _flag_b = 0; 1396 uint32_t _itail_tgt = 0; 1397 RECOMP_REGS_LOCALS 1398 RECOMP_ENTER(0x47042880u); 1399 1400 L_47042880: 1401 MEM32(0x4710E6E4) = 0x471080CCu; /* 0x47042880: mov dword ptr [0x4710e6e4], 0x471080cc */ 1402 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704288A: ret */ 1403 RECOMP_REGS_OUT(); 1404 } 1405 1406 void sub_47042890(void) { 1407 int _fpu_cmp = 0; 1408 uint32_t _cf = 0; 1409 int _df = 1; 1410 uint32_t _flag_k = FK_NONE; 1411 uint32_t _flag_a = 0, _flag_b = 0; 1412 uint32_t _itail_tgt = 0; 1413 RECOMP_REGS_LOCALS 1414 RECOMP_ENTER(0x47042890u); 1415 1416 L_47042890: 1417 ecx = 0x4710E6F5u; /* 0x47042890: mov ecx, 0x4710e6f5 */ 1418 RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47042895: call dword ptr [0x470ac1c8] */ 1419 RECOMP_FLAGS_IN(); 1420 PUSH32(esp, 0x470428B0u); /* 0x4704289B: push 0x470428b0 */ 1421 RECOMP_ICALL(0x470A32D9u); /* 0x470428A0: call 0x470a32d9 */ /* not lifted */ 1422 RECOMP_FLAGS_IN(); 1423 ecx = POP32_VAL(esp); /* 0x470428A5: pop ecx */ 1424 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470428A6: ret */ 1425 RECOMP_REGS_OUT(); 1426 } 1427 1428 void sub_470428B0(void) { 1429 int _fpu_cmp = 0; 1430 uint32_t _cf = 0; 1431 int _df = 1; 1432 uint32_t _flag_k = FK_NONE; 1433 uint32_t _flag_a = 0, _flag_b = 0; 1434 uint32_t _itail_tgt = 0; 1435 RECOMP_REGS_LOCALS 1436 RECOMP_ENTER(0x470428B0u); 1437 1438 L_470428B0: 1439 ecx = 0x4710E6F5u; /* 0x470428B0: mov ecx, 0x4710e6f5 */ 1440 L_470428B5: 1441 { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; } 1442 { RECOMP_REGS_OUT(); return; } /* end of function */ 1443 _ljump: 1444 switch (_itail_tgt) { 1445 case 0x470428B0u: goto L_470428B0; 1446 case 0x470428B5u: goto L_470428B5; 1447 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1448 } 1449 RECOMP_REGS_OUT(); 1450 } 1451 1452 void sub_470428C0(void) { 1453 int _fpu_cmp = 0; 1454 uint32_t _cf = 0; 1455 int _df = 1; 1456 uint32_t _flag_k = FK_NONE; 1457 uint32_t _flag_a = 0, _flag_b = 0; 1458 uint32_t _itail_tgt = 0; 1459 RECOMP_REGS_LOCALS 1460 RECOMP_ENTER(0x470428C0u); 1461 1462 L_470428C0: 1463 ecx = 0x4710E6F4u; /* 0x470428C0: mov ecx, 0x4710e6f4 */ 1464 RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x470428C5: call dword ptr [0x470ac1c4] */ 1465 RECOMP_FLAGS_IN(); 1466 PUSH32(esp, 0x470428E0u); /* 0x470428CB: push 0x470428e0 */ 1467 RECOMP_ICALL(0x470A32D9u); /* 0x470428D0: call 0x470a32d9 */ /* not lifted */ 1468 RECOMP_FLAGS_IN(); 1469 ecx = POP32_VAL(esp); /* 0x470428D5: pop ecx */ 1470 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470428D6: ret */ 1471 RECOMP_REGS_OUT(); 1472 } 1473 1474 void sub_470428E0(void) { 1475 int _fpu_cmp = 0; 1476 uint32_t _cf = 0; 1477 int _df = 1; 1478 uint32_t _flag_k = FK_NONE; 1479 uint32_t _flag_a = 0, _flag_b = 0; 1480 uint32_t _itail_tgt = 0; 1481 RECOMP_REGS_LOCALS 1482 RECOMP_ENTER(0x470428E0u); 1483 1484 L_470428E0: 1485 ecx = 0x4710E6F4u; /* 0x470428E0: mov ecx, 0x4710e6f4 */ 1486 L_470428E5: 1487 { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; } 1488 { RECOMP_REGS_OUT(); return; } /* end of function */ 1489 _ljump: 1490 switch (_itail_tgt) { 1491 case 0x470428E0u: goto L_470428E0; 1492 case 0x470428E5u: goto L_470428E5; 1493 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1494 } 1495 RECOMP_REGS_OUT(); 1496 } 1497 1498 void sub_470428F0(void) { 1499 int _fpu_cmp = 0; 1500 uint32_t _cf = 0; 1501 int _df = 1; 1502 uint32_t _flag_k = FK_NONE; 1503 uint32_t _flag_a = 0, _flag_b = 0; 1504 uint32_t _itail_tgt = 0; 1505 RECOMP_REGS_LOCALS 1506 RECOMP_ENTER(0x470428F0u); 1507 1508 L_470428F0: 1509 MEM32(0x4710E6EC) = 0x47104A3Cu; /* 0x470428F0: mov dword ptr [0x4710e6ec], 0x47104a3c */ 1510 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470428FA: ret */ 1511 RECOMP_REGS_OUT(); 1512 } 1513 1514 void sub_47042900(void) { 1515 int _fpu_cmp = 0; 1516 uint32_t _cf = 0; 1517 int _df = 1; 1518 uint32_t _flag_k = FK_NONE; 1519 uint32_t _flag_a = 0, _flag_b = 0; 1520 uint32_t _itail_tgt = 0; 1521 RECOMP_REGS_LOCALS 1522 RECOMP_ENTER(0x47042900u); 1523 1524 L_47042900: 1525 MEM32(0x4710E6FC) = 0x47104A00u; /* 0x47042900: mov dword ptr [0x4710e6fc], 0x47104a00 */ 1526 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704290A: ret */ 1527 RECOMP_REGS_OUT(); 1528 } 1529 1530 void sub_47042910(void) { 1531 int _fpu_cmp = 0; 1532 uint32_t _cf = 0; 1533 int _df = 1; 1534 uint32_t _flag_k = FK_NONE; 1535 uint32_t _flag_a = 0, _flag_b = 0; 1536 uint32_t _itail_tgt = 0; 1537 RECOMP_REGS_LOCALS 1538 RECOMP_ENTER(0x47042910u); 1539 1540 L_47042910: 1541 MEM32(0x4710E6F8) = 0x47104A70u; /* 0x47042910: mov dword ptr [0x4710e6f8], 0x47104a70 */ 1542 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704291A: ret */ 1543 RECOMP_REGS_OUT(); 1544 } 1545 1546 void sub_47042920(void) { 1547 int _fpu_cmp = 0; 1548 uint32_t _cf = 0; 1549 int _df = 1; 1550 uint32_t _flag_k = FK_NONE; 1551 uint32_t _flag_a = 0, _flag_b = 0; 1552 uint32_t _itail_tgt = 0; 1553 RECOMP_REGS_LOCALS 1554 RECOMP_ENTER(0x47042920u); 1555 1556 L_47042920: 1557 MEM32(0x4710E708) = 0x47104B6Cu; /* 0x47042920: mov dword ptr [0x4710e708], 0x47104b6c */ 1558 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704292A: ret */ 1559 RECOMP_REGS_OUT(); 1560 } 1561 1562 void sub_47042930(void) { 1563 int _fpu_cmp = 0; 1564 uint32_t _cf = 0; 1565 int _df = 1; 1566 uint32_t _flag_k = FK_NONE; 1567 uint32_t _flag_a = 0, _flag_b = 0; 1568 uint32_t _itail_tgt = 0; 1569 RECOMP_REGS_LOCALS 1570 RECOMP_ENTER(0x47042930u); 1571 1572 L_47042930: 1573 MEM32(0x4710E6F0) = 0x47104BA0u; /* 0x47042930: mov dword ptr [0x4710e6f0], 0x47104ba0 */ 1574 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704293A: ret */ 1575 RECOMP_REGS_OUT(); 1576 } 1577 1578 void sub_47042940(void) { 1579 int _fpu_cmp = 0; 1580 uint32_t _cf = 0; 1581 int _df = 1; 1582 uint32_t _flag_k = FK_NONE; 1583 uint32_t _flag_a = 0, _flag_b = 0; 1584 uint32_t _itail_tgt = 0; 1585 RECOMP_REGS_LOCALS 1586 RECOMP_ENTER(0x47042940u); 1587 1588 L_47042940: 1589 MEM32(0x4710E700) = 0x47104BD4u; /* 0x47042940: mov dword ptr [0x4710e700], 0x47104bd4 */ 1590 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704294A: ret */ 1591 RECOMP_REGS_OUT(); 1592 } 1593 1594 void sub_47042950(void) { 1595 int _fpu_cmp = 0; 1596 uint32_t _cf = 0; 1597 int _df = 1; 1598 uint32_t _flag_k = FK_NONE; 1599 uint32_t _flag_a = 0, _flag_b = 0; 1600 uint32_t _itail_tgt = 0; 1601 RECOMP_REGS_LOCALS 1602 RECOMP_ENTER(0x47042950u); 1603 1604 L_47042950: 1605 MEM32(0x4710E70C) = 0x471049CCu; /* 0x47042950: mov dword ptr [0x4710e70c], 0x471049cc */ 1606 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704295A: ret */ 1607 RECOMP_REGS_OUT(); 1608 } 1609 1610 void sub_47042960(void) { 1611 int _fpu_cmp = 0; 1612 uint32_t _cf = 0; 1613 int _df = 1; 1614 uint32_t _flag_k = FK_NONE; 1615 uint32_t _flag_a = 0, _flag_b = 0; 1616 uint32_t _itail_tgt = 0; 1617 RECOMP_REGS_LOCALS 1618 RECOMP_ENTER(0x47042960u); 1619 1620 L_47042960: 1621 MEM32(0x4710E704) = 0x47108100u; /* 0x47042960: mov dword ptr [0x4710e704], 0x47108100 */ 1622 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704296A: ret */ 1623 RECOMP_REGS_OUT(); 1624 } 1625 1626 void sub_47042970(void) { 1627 int _fpu_cmp = 0; 1628 uint32_t _cf = 0; 1629 int _df = 1; 1630 uint32_t _flag_k = FK_NONE; 1631 uint32_t _flag_a = 0, _flag_b = 0; 1632 uint32_t _itail_tgt = 0; 1633 RECOMP_REGS_LOCALS 1634 RECOMP_ENTER(0x47042970u); 1635 1636 L_47042970: 1637 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47042970: ret */ 1638 RECOMP_REGS_OUT(); 1639 } 1640 1641 void sub_47042980(void) { 1642 int _fpu_cmp = 0; 1643 uint32_t _cf = 0; 1644 int _df = 1; 1645 uint32_t _flag_k = FK_NONE; 1646 uint32_t _flag_a = 0, _flag_b = 0; 1647 uint32_t _itail_tgt = 0; 1648 RECOMP_REGS_LOCALS 1649 RECOMP_ENTER(0x47042980u); 1650 1651 L_47042980: 1652 PUSH32(esp, esi); /* 0x47042980: push esi */ 1653 esi = ecx; /* 0x47042981: mov esi, ecx */ 1654 MEM32(esi + 0x4) = 0; /* 0x47042983: mov dword ptr [esi + 4], 0 */ 1655 MEM32(esi + 0x8) = 0; /* 0x4704298A: mov dword ptr [esi + 8], 0 */ 1656 MEM32(esi + 0xC) = 0; /* 0x47042991: mov dword ptr [esi + 0xc], 0 */ 1657 RECOMP_ICALL(0x4703DAC0u); /* 0x47042998: call 0x4703dac0 */ /* not lifted */ 1658 RECOMP_FLAGS_IN(); 1659 MEM32(esi + 0xC) = eax; /* 0x4704299D: mov dword ptr [esi + 0xc], eax */ 1660 edx = MEM32(eax); /* 0x470429A0: mov edx, dword ptr [eax] */ 1661 PUSH32(esp, 8); /* 0x470429A2: push 8 */ 1662 ecx = eax; /* 0x470429A4: mov ecx, eax */ 1663 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x470429A6: call dword ptr [edx + 4] */ 1664 RECOMP_FLAGS_IN(); 1665 /* test eax, eax */ /* 0x470429A9: test eax, eax */ 1666 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1667 _cf = 0; 1668 _flag_k = FK_TEST; 1669 MEM32(esi + 0x4) = eax; /* 0x470429AB: mov dword ptr [esi + 4], eax */ 1670 if (TEST_Z(_flag_a, _flag_b)) goto L_470429C7; /* 0x470429AE: je 0x470429c7 */ 1671 L_470429B0: 1672 MEM32(eax) = 0; /* 0x470429B0: mov dword ptr [eax], 0 */ 1673 eax = MEM32(esi + 0x4); /* 0x470429B6: mov eax, dword ptr [esi + 4] */ 1674 MEM32(eax) = eax; /* 0x470429B9: mov dword ptr [eax], eax */ 1675 MEM32(esi) = 0x470AC6E0u; /* 0x470429BB: mov dword ptr [esi], 0x470ac6e0 */ 1676 eax = esi; /* 0x470429C1: mov eax, esi */ 1677 esi = POP32_VAL(esp); /* 0x470429C3: pop esi */ 1678 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470429C4: ret 8 */ 1679 L_470429C7: 1680 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470429C7: call dword ptr [0x470ac3c8] */ 1681 RECOMP_FLAGS_IN(); 1682 MEM32(eax) = 0xCu; /* 0x470429CD: mov dword ptr [eax], 0xc */ 1683 MEM32(esi) = 0x470AC6E0u; /* 0x470429D3: mov dword ptr [esi], 0x470ac6e0 */ 1684 eax = esi; /* 0x470429D9: mov eax, esi */ 1685 esi = POP32_VAL(esp); /* 0x470429DB: pop esi */ 1686 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470429DC: ret 8 */ 1687 RECOMP_REGS_OUT(); 1688 } 1689 1690 void sub_470429E0(void) { 1691 int _fpu_cmp = 0; 1692 uint32_t _cf = 0; 1693 int _df = 1; 1694 uint32_t _flag_k = FK_NONE; 1695 uint32_t _flag_a = 0, _flag_b = 0; 1696 uint32_t _itail_tgt = 0; 1697 RECOMP_REGS_LOCALS 1698 RECOMP_ENTER(0x470429E0u); 1699 1700 L_470429E0: 1701 eax = MEM32(FS_BASE + (0)); /* 0x470429E0: mov eax, dword ptr fs:[0] */ 1702 PUSH32(esp, 0xFFFFFFFFu); /* 0x470429E6: push -1 */ 1703 PUSH32(esp, 0x470A65C8u); /* 0x470429E8: push 0x470a65c8 */ 1704 PUSH32(esp, eax); /* 0x470429ED: push eax */ 1705 MEM32(FS_BASE + (0)) = esp; /* 0x470429EE: mov dword ptr fs:[0], esp */ 1706 PUSH32(esp, ebx); /* 0x470429F5: push ebx */ 1707 PUSH32(esp, esi); /* 0x470429F6: push esi */ 1708 PUSH32(esp, edi); /* 0x470429F7: push edi */ 1709 edi = ecx; /* 0x470429F8: mov edi, ecx */ 1710 ecx = MEM32(esp + 0x1C); /* 0x470429FA: mov ecx, dword ptr [esp + 0x1c] */ 1711 eax = MEM32(edi); /* 0x470429FE: mov eax, dword ptr [edi] */ 1712 PUSH32(esp, ecx); /* 0x47042A00: push ecx */ 1713 ecx = edi; /* 0x47042A01: mov ecx, edi */ 1714 RECOMP_ICALL(MEM32(eax + 0x2C)); /* 0x47042A03: call dword ptr [eax + 0x2c] */ 1715 RECOMP_FLAGS_IN(); 1716 edx = MEM32(esp + 0x20); /* 0x47042A06: mov edx, dword ptr [esp + 0x20] */ 1717 PUSH32(esp, eax); /* 0x47042A0A: push eax */ 1718 MEM32(edx) = eax; /* 0x47042A0B: mov dword ptr [edx], eax */ 1719 RECOMP_ICALL(0x470A33F2u); /* 0x47042A0D: call 0x470a33f2 */ /* not lifted */ 1720 RECOMP_FLAGS_IN(); 1721 esi = eax; /* 0x47042A12: mov esi, eax */ 1722 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1723 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1724 esp = esp + 4; /* 0x47042A14: add esp, 4 */ 1725 _flag_k = FK_ADD; 1726 /* test esi, esi */ /* 0x47042A17: test esi, esi */ 1727 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 1728 _cf = 0; 1729 _flag_k = FK_TEST; 1730 if (TEST_NZ(_flag_a, _flag_b)) goto L_47042A3D; /* 0x47042A19: jne 0x47042a3d */ 1731 L_47042A1B: 1732 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47042A1B: call dword ptr [0x470ac3c8] */ 1733 RECOMP_FLAGS_IN(); 1734 MEM32(eax) = 0xCu; /* 0x47042A21: mov dword ptr [eax], 0xc */ 1735 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1736 eax = 0; /* 0x47042A27: xor eax, eax */ 1737 _cf = 0; 1738 _flag_k = FK_TEST; 1739 ecx = MEM32(esp + 0xC); /* 0x47042A29: mov ecx, dword ptr [esp + 0xc] */ 1740 MEM32(FS_BASE + (0)) = ecx; /* 0x47042A2D: mov dword ptr fs:[0], ecx */ 1741 edi = POP32_VAL(esp); /* 0x47042A34: pop edi */ 1742 esi = POP32_VAL(esp); /* 0x47042A35: pop esi */ 1743 ebx = POP32_VAL(esp); /* 0x47042A36: pop ebx */ 1744 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1745 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1746 esp = esp + 0xCu; /* 0x47042A37: add esp, 0xc */ 1747 _flag_k = FK_ADD; 1748 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47042A3A: ret 8 */ 1749 L_47042A3D: 1750 MEM32(esp + 0x20) = esi; /* 0x47042A3D: mov dword ptr [esp + 0x20], esi */ 1751 eax = MEM32(edi + 0x4); /* 0x47042A41: mov eax, dword ptr [edi + 4] */ 1752 ecx = edi + 0x4; /* 0x47042A44: lea ecx, [edi + 4] */ 1753 MEM32(esp + 0x1C) = esi; /* 0x47042A47: mov dword ptr [esp + 0x1c], esi */ 1754 MEM32(eax + 0x4) = esi; /* 0x47042A4B: mov dword ptr [eax + 4], esi */ 1755 edx = MEM32(ecx); /* 0x47042A4E: mov edx, dword ptr [ecx] */ 1756 eax = MEM32(edx); /* 0x47042A50: mov eax, dword ptr [edx] */ 1757 edi = MEM32(esp + 0x1C); /* 0x47042A52: mov edi, dword ptr [esp + 0x1c] */ 1758 /* cmp MEM32(eax + 0x4), edi */ /* 0x47042A56: cmp dword ptr [eax + 4], edi */ 1759 _flag_a = (uint32_t)(MEM32(eax + 0x4)); _flag_b = (uint32_t)(edi); 1760 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1761 _flag_k = FK_CMP; 1762 MEM32(esp + 0x14) = 0; /* 0x47042A59: mov dword ptr [esp + 0x14], 0 */ 1763 if (CMP_EQ(_flag_a, _flag_b)) goto L_47042A6A; /* 0x47042A61: je 0x47042a6a */ 1764 L_47042A63: 1765 eax = MEM32(eax); /* 0x47042A63: mov eax, dword ptr [eax] */ 1766 /* cmp MEM32(eax + 0x4), edi */ /* 0x47042A65: cmp dword ptr [eax + 4], edi */ 1767 _flag_a = (uint32_t)(MEM32(eax + 0x4)); _flag_b = (uint32_t)(edi); 1768 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1769 _flag_k = FK_CMP; 1770 RECOMP_BACKEDGE(); 1771 if (CMP_NE(_flag_a, _flag_b)) goto L_47042A63; /* 0x47042A68: jne 0x47042a63 */ 1772 L_47042A6A: 1773 /* cmp eax, edx */ /* 0x47042A6A: cmp eax, edx */ 1774 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1775 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1776 _flag_k = FK_CMP; 1777 if (CMP_NE(_flag_a, _flag_b)) goto L_47042A7C; /* 0x47042A6C: jne 0x47042a7c */ 1778 L_47042A6E: 1779 edx = esp + 0x1C; /* 0x47042A6E: lea edx, [esp + 0x1c] */ 1780 PUSH32(esp, edx); /* 0x47042A72: push edx */ 1781 RECOMP_ICALL(0x47067230u); /* 0x47042A73: call 0x47067230 */ /* not lifted */ 1782 RECOMP_FLAGS_IN(); 1783 /* test eax, eax */ /* 0x47042A78: test eax, eax */ 1784 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1785 _cf = 0; 1786 _flag_k = FK_TEST; 1787 if (TEST_Z(_flag_a, _flag_b)) goto L_47042AF1; /* 0x47042A7A: je 0x47042af1 */ 1788 L_47042A7C: 1789 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47042A7C: call dword ptr [0x470ac150] */ 1790 RECOMP_FLAGS_IN(); 1791 ebx = eax; /* 0x47042A82: mov ebx, eax */ 1792 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47042A84: call dword ptr [0x470ac3c8] */ 1793 RECOMP_FLAGS_IN(); 1794 eax = MEM32(eax); /* 0x47042A8A: mov eax, dword ptr [eax] */ 1795 /* test eax, eax */ /* 0x47042A8C: test eax, eax */ 1796 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1797 _cf = 0; 1798 _flag_k = FK_TEST; 1799 if (TEST_Z(_flag_a, _flag_b)) goto L_47042A92; /* 0x47042A8E: je 0x47042a92 */ 1800 L_47042A90: 1801 ebx = eax; /* 0x47042A90: mov ebx, eax */ 1802 L_47042A92: 1803 RECOMP_ICALL(0x47039020u); /* 0x47042A92: call 0x47039020 */ /* not lifted */ 1804 RECOMP_FLAGS_IN(); 1805 edi = eax; /* 0x47042A97: mov edi, eax */ 1806 ecx = edi; /* 0x47042A99: mov ecx, edi */ 1807 RECOMP_ICALL(0x4703B210u); /* 0x47042A9B: call 0x4703b210 */ /* not lifted */ 1808 RECOMP_FLAGS_IN(); 1809 PUSH32(esp, eax); /* 0x47042AA0: push eax */ 1810 ecx = edi; /* 0x47042AA1: mov ecx, edi */ 1811 RECOMP_ICALL(0x4703B240u); /* 0x47042AA3: call 0x4703b240 */ /* not lifted */ 1812 RECOMP_FLAGS_IN(); 1813 PUSH32(esp, eax); /* 0x47042AA8: push eax */ 1814 ecx = edi; /* 0x47042AA9: mov ecx, edi */ 1815 RECOMP_ICALL(0x4703B080u); /* 0x47042AAB: call 0x4703b080 */ /* not lifted */ 1816 RECOMP_FLAGS_IN(); 1817 PUSH32(esp, eax); /* 0x47042AB0: push eax */ 1818 PUSH32(esp, ebx); /* 0x47042AB1: push ebx */ 1819 PUSH32(esp, 0); /* 0x47042AB2: push 0 */ 1820 PUSH32(esp, 0x33u); /* 0x47042AB4: push 0x33 */ 1821 PUSH32(esp, 0x4710815Cu); /* 0x47042AB6: push 0x4710815c */ 1822 ecx = edi; /* 0x47042ABB: mov ecx, edi */ 1823 RECOMP_ICALL(0x4703A340u); /* 0x47042ABD: call 0x4703a340 */ /* not lifted */ 1824 RECOMP_FLAGS_IN(); 1825 PUSH32(esp, 0x47108138u); /* 0x47042AC2: push 0x47108138 */ 1826 PUSH32(esp, 0x80u); /* 0x47042AC7: push 0x80 */ 1827 PUSH32(esp, edi); /* 0x47042ACC: push edi */ 1828 RECOMP_ICALL(0x47039830u); /* 0x47042ACD: call 0x47039830 */ /* not lifted */ 1829 RECOMP_FLAGS_IN(); 1830 PUSH32(esp, esi); /* 0x47042AD2: push esi */ 1831 RECOMP_ICALL(0x470A32A2u); /* 0x47042AD3: call 0x470a32a2 */ /* not lifted */ 1832 RECOMP_FLAGS_IN(); 1833 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1834 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1835 esp = esp + 0x10u; /* 0x47042AD8: add esp, 0x10 */ 1836 _flag_k = FK_ADD; 1837 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1838 eax = 0; /* 0x47042ADB: xor eax, eax */ 1839 _cf = 0; 1840 _flag_k = FK_TEST; 1841 ecx = MEM32(esp + 0xC); /* 0x47042ADD: mov ecx, dword ptr [esp + 0xc] */ 1842 MEM32(FS_BASE + (0)) = ecx; /* 0x47042AE1: mov dword ptr fs:[0], ecx */ 1843 edi = POP32_VAL(esp); /* 0x47042AE8: pop edi */ 1844 esi = POP32_VAL(esp); /* 0x47042AE9: pop esi */ 1845 ebx = POP32_VAL(esp); /* 0x47042AEA: pop ebx */ 1846 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1847 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1848 esp = esp + 0xCu; /* 0x47042AEB: add esp, 0xc */ 1849 _flag_k = FK_ADD; 1850 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47042AEE: ret 8 */ 1851 L_47042AF1: 1852 PUSH32(esp, 0); /* 0x47042AF1: push 0 */ 1853 RECOMP_ICALL(0x470A32A2u); /* 0x47042AF3: call 0x470a32a2 */ /* not lifted */ 1854 RECOMP_FLAGS_IN(); 1855 ecx = MEM32(esp + 0x10); /* 0x47042AF8: mov ecx, dword ptr [esp + 0x10] */ 1856 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1857 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1858 esp = esp + 4; /* 0x47042AFC: add esp, 4 */ 1859 _flag_k = FK_ADD; 1860 edi = POP32_VAL(esp); /* 0x47042AFF: pop edi */ 1861 eax = esi; /* 0x47042B00: mov eax, esi */ 1862 esi = POP32_VAL(esp); /* 0x47042B02: pop esi */ 1863 MEM32(FS_BASE + (0)) = ecx; /* 0x47042B03: mov dword ptr fs:[0], ecx */ 1864 ebx = POP32_VAL(esp); /* 0x47042B0A: pop ebx */ 1865 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1866 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1867 esp = esp + 0xCu; /* 0x47042B0B: add esp, 0xc */ 1868 _flag_k = FK_ADD; 1869 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47042B0E: ret 8 */ 1870 RECOMP_REGS_OUT(); 1871 } 1872 1873 void sub_47042B20(void) { 1874 int _fpu_cmp = 0; 1875 uint32_t _cf = 0; 1876 int _df = 1; 1877 uint32_t _flag_k = FK_NONE; 1878 uint32_t _flag_a = 0, _flag_b = 0; 1879 uint32_t _itail_tgt = 0; 1880 RECOMP_REGS_LOCALS 1881 RECOMP_ENTER(0x47042B20u); 1882 1883 L_47042B20: 1884 PUSH32(esp, ecx); /* 0x47042B20: push ecx */ 1885 eax = MEM32(ecx + 0x4); /* 0x47042B21: mov eax, dword ptr [ecx + 4] */ 1886 PUSH32(esp, ebx); /* 0x47042B24: push ebx */ 1887 ebx = MEM32(eax); /* 0x47042B25: mov ebx, dword ptr [eax] */ 1888 PUSH32(esp, ebp); /* 0x47042B27: push ebp */ 1889 PUSH32(esp, esi); /* 0x47042B28: push esi */ 1890 esi = ecx + 0x4; /* 0x47042B29: lea esi, [ecx + 4] */ 1891 PUSH32(esp, edi); /* 0x47042B2C: push edi */ 1892 MEM32(esp + 0x10) = esi; /* 0x47042B2D: mov dword ptr [esp + 0x10], esi */ 1893 L_47042B31: 1894 eax = MEM32(esi); /* 0x47042B31: mov eax, dword ptr [esi] */ 1895 ecx = esi; /* 0x47042B33: mov ecx, esi */ 1896 /* cmp ecx, esi */ /* 0x47042B35: cmp ecx, esi */ 1897 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 1898 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1899 _flag_k = FK_CMP; 1900 if (CMP_NE(_flag_a, _flag_b)) goto L_47042B41; /* 0x47042B37: jne 0x47042b41 */ 1901 L_47042B39: 1902 /* cmp ebx, eax */ /* 0x47042B39: cmp ebx, eax */ 1903 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 1904 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1905 _flag_k = FK_CMP; 1906 if (CMP_EQ(_flag_a, _flag_b)) goto L_47042BD6; /* 0x47042B3B: je 0x47042bd6 */ 1907 L_47042B41: 1908 eax = MEM32(ecx); /* 0x47042B41: mov eax, dword ptr [ecx] */ 1909 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1910 ebp = 0; /* 0x47042B43: xor ebp, ebp */ 1911 _cf = 0; 1912 _flag_k = FK_TEST; 1913 /* cmp ebx, eax */ /* 0x47042B45: cmp ebx, eax */ 1914 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 1915 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1916 _flag_k = FK_CMP; 1917 if (CMP_EQ(_flag_a, _flag_b)) goto L_47042B5C; /* 0x47042B47: je 0x47042b5c */ 1918 L_47042B49: 1919 ecx = MEM32(ebx + 0x4); /* 0x47042B49: mov ecx, dword ptr [ebx + 4] */ 1920 ebp = ebx + 0x4; /* 0x47042B4C: lea ebp, [ebx + 4] */ 1921 PUSH32(esp, ecx); /* 0x47042B4F: push ecx */ 1922 RECOMP_ICALL(0x470A32A2u); /* 0x47042B50: call 0x470a32a2 */ /* not lifted */ 1923 RECOMP_FLAGS_IN(); 1924 ebx = MEM32(ebx); /* 0x47042B55: mov ebx, dword ptr [ebx] */ 1925 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1926 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1927 esp = esp + 4; /* 0x47042B57: add esp, 4 */ 1928 _flag_k = FK_ADD; 1929 RECOMP_BACKEDGE(); 1930 goto L_47042B31; /* 0x47042B5A: jmp 0x47042b31 */ 1931 L_47042B5C: 1932 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47042B5C: call dword ptr [0x470ac150] */ 1933 RECOMP_FLAGS_IN(); 1934 edi = eax; /* 0x47042B62: mov edi, eax */ 1935 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47042B64: call dword ptr [0x470ac3c8] */ 1936 RECOMP_FLAGS_IN(); 1937 eax = MEM32(eax); /* 0x47042B6A: mov eax, dword ptr [eax] */ 1938 /* test eax, eax */ /* 0x47042B6C: test eax, eax */ 1939 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1940 _cf = 0; 1941 _flag_k = FK_TEST; 1942 if (TEST_Z(_flag_a, _flag_b)) goto L_47042B72; /* 0x47042B6E: je 0x47042b72 */ 1943 L_47042B70: 1944 edi = eax; /* 0x47042B70: mov edi, eax */ 1945 L_47042B72: 1946 RECOMP_ICALL(0x47039020u); /* 0x47042B72: call 0x47039020 */ /* not lifted */ 1947 RECOMP_FLAGS_IN(); 1948 esi = eax; /* 0x47042B77: mov esi, eax */ 1949 ecx = esi; /* 0x47042B79: mov ecx, esi */ 1950 RECOMP_ICALL(0x4703B210u); /* 0x47042B7B: call 0x4703b210 */ /* not lifted */ 1951 RECOMP_FLAGS_IN(); 1952 PUSH32(esp, eax); /* 0x47042B80: push eax */ 1953 ecx = esi; /* 0x47042B81: mov ecx, esi */ 1954 RECOMP_ICALL(0x4703B240u); /* 0x47042B83: call 0x4703b240 */ /* not lifted */ 1955 RECOMP_FLAGS_IN(); 1956 PUSH32(esp, eax); /* 0x47042B88: push eax */ 1957 ecx = esi; /* 0x47042B89: mov ecx, esi */ 1958 RECOMP_ICALL(0x4703B080u); /* 0x47042B8B: call 0x4703b080 */ /* not lifted */ 1959 RECOMP_FLAGS_IN(); 1960 PUSH32(esp, eax); /* 0x47042B90: push eax */ 1961 PUSH32(esp, edi); /* 0x47042B91: push edi */ 1962 PUSH32(esp, 0xFFFFFFFFu); /* 0x47042B92: push -1 */ 1963 PUSH32(esp, 0x7EDu); /* 0x47042B94: push 0x7ed */ 1964 PUSH32(esp, 0x471081A4u); /* 0x47042B99: push 0x471081a4 */ 1965 ecx = esi; /* 0x47042B9E: mov ecx, esi */ 1966 RECOMP_ICALL(0x4703A340u); /* 0x47042BA0: call 0x4703a340 */ /* not lifted */ 1967 RECOMP_FLAGS_IN(); 1968 PUSH32(esp, 0xFFFFFFFFu); /* 0x47042BA5: push -1 */ 1969 PUSH32(esp, 0x47108198u); /* 0x47042BA7: push 0x47108198 */ 1970 PUSH32(esp, 0x47104AA4u); /* 0x47042BAC: push 0x47104aa4 */ 1971 PUSH32(esp, 0x80u); /* 0x47042BB1: push 0x80 */ 1972 PUSH32(esp, esi); /* 0x47042BB6: push esi */ 1973 RECOMP_ICALL(0x47039830u); /* 0x47042BB7: call 0x47039830 */ /* not lifted */ 1974 RECOMP_FLAGS_IN(); 1975 ecx = MEM32(ebp); /* 0x47042BBC: mov ecx, dword ptr [ebp] */ 1976 esi = MEM32(esp + 0x24); /* 0x47042BBF: mov esi, dword ptr [esp + 0x24] */ 1977 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1978 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1979 esp = esp + 0x14u; /* 0x47042BC3: add esp, 0x14 */ 1980 _flag_k = FK_ADD; 1981 PUSH32(esp, ecx); /* 0x47042BC6: push ecx */ 1982 RECOMP_ICALL(0x470A32A2u); /* 0x47042BC7: call 0x470a32a2 */ /* not lifted */ 1983 RECOMP_FLAGS_IN(); 1984 ebx = MEM32(ebx); /* 0x47042BCC: mov ebx, dword ptr [ebx] */ 1985 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1986 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1987 esp = esp + 4; /* 0x47042BCE: add esp, 4 */ 1988 _flag_k = FK_ADD; 1989 RECOMP_BACKEDGE(); 1990 goto L_47042B31; /* 0x47042BD1: jmp 0x47042b31 */ 1991 L_47042BD6: 1992 edi = POP32_VAL(esp); /* 0x47042BD6: pop edi */ 1993 esi = POP32_VAL(esp); /* 0x47042BD7: pop esi */ 1994 ebp = POP32_VAL(esp); /* 0x47042BD8: pop ebp */ 1995 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1996 eax = 0; /* 0x47042BD9: xor eax, eax */ 1997 _cf = 0; 1998 _flag_k = FK_TEST; 1999 ebx = POP32_VAL(esp); /* 0x47042BDB: pop ebx */ 2000 ecx = POP32_VAL(esp); /* 0x47042BDC: pop ecx */ 2001 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47042BDD: ret */ 2002 RECOMP_REGS_OUT(); 2003 } 2004 2005 void sub_47042B31(void) { 2006 int _fpu_cmp = 0; 2007 uint32_t _cf = 0; 2008 int _df = 1; 2009 uint32_t _flag_k = FK_NONE; 2010 uint32_t _flag_a = 0, _flag_b = 0; 2011 uint32_t _itail_tgt = 0; 2012 RECOMP_REGS_LOCALS 2013 RECOMP_ENTER(0x47042B31u); 2014 2015 L_47042B31: 2016 eax = MEM32(esi); /* 0x47042B31: mov eax, dword ptr [esi] */ 2017 ecx = esi; /* 0x47042B33: mov ecx, esi */ 2018 /* cmp ecx, esi */ /* 0x47042B35: cmp ecx, esi */ 2019 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 2020 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2021 _flag_k = FK_CMP; 2022 if (CMP_NE(_flag_a, _flag_b)) goto L_47042B41; /* 0x47042B37: jne 0x47042b41 */ 2023 L_47042B39: 2024 /* cmp ebx, eax */ /* 0x47042B39: cmp ebx, eax */ 2025 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 2026 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2027 _flag_k = FK_CMP; 2028 if (CMP_EQ(_flag_a, _flag_b)) goto L_47042BD6; /* 0x47042B3B: je 0x47042bd6 */ 2029 L_47042B41: 2030 eax = MEM32(ecx); /* 0x47042B41: mov eax, dword ptr [ecx] */ 2031 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2032 ebp = 0; /* 0x47042B43: xor ebp, ebp */ 2033 _cf = 0; 2034 _flag_k = FK_TEST; 2035 /* cmp ebx, eax */ /* 0x47042B45: cmp ebx, eax */ 2036 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 2037 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2038 _flag_k = FK_CMP; 2039 if (CMP_EQ(_flag_a, _flag_b)) goto L_47042B5C; /* 0x47042B47: je 0x47042b5c */ 2040 L_47042B49: 2041 ecx = MEM32(ebx + 0x4); /* 0x47042B49: mov ecx, dword ptr [ebx + 4] */ 2042 ebp = ebx + 0x4; /* 0x47042B4C: lea ebp, [ebx + 4] */ 2043 PUSH32(esp, ecx); /* 0x47042B4F: push ecx */ 2044 RECOMP_ICALL(0x470A32A2u); /* 0x47042B50: call 0x470a32a2 */ /* not lifted */ 2045 RECOMP_FLAGS_IN(); 2046 ebx = MEM32(ebx); /* 0x47042B55: mov ebx, dword ptr [ebx] */ 2047 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2048 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2049 esp = esp + 4; /* 0x47042B57: add esp, 4 */ 2050 _flag_k = FK_ADD; 2051 RECOMP_BACKEDGE(); 2052 goto L_47042B31; /* 0x47042B5A: jmp 0x47042b31 */ 2053 L_47042B5C: 2054 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47042B5C: call dword ptr [0x470ac150] */ 2055 RECOMP_FLAGS_IN(); 2056 edi = eax; /* 0x47042B62: mov edi, eax */ 2057 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47042B64: call dword ptr [0x470ac3c8] */ 2058 RECOMP_FLAGS_IN(); 2059 eax = MEM32(eax); /* 0x47042B6A: mov eax, dword ptr [eax] */ 2060 /* test eax, eax */ /* 0x47042B6C: test eax, eax */ 2061 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2062 _cf = 0; 2063 _flag_k = FK_TEST; 2064 if (TEST_Z(_flag_a, _flag_b)) goto L_47042B72; /* 0x47042B6E: je 0x47042b72 */ 2065 L_47042B70: 2066 edi = eax; /* 0x47042B70: mov edi, eax */ 2067 L_47042B72: 2068 RECOMP_ICALL(0x47039020u); /* 0x47042B72: call 0x47039020 */ /* not lifted */ 2069 RECOMP_FLAGS_IN(); 2070 esi = eax; /* 0x47042B77: mov esi, eax */ 2071 ecx = esi; /* 0x47042B79: mov ecx, esi */ 2072 RECOMP_ICALL(0x4703B210u); /* 0x47042B7B: call 0x4703b210 */ /* not lifted */ 2073 RECOMP_FLAGS_IN(); 2074 PUSH32(esp, eax); /* 0x47042B80: push eax */ 2075 ecx = esi; /* 0x47042B81: mov ecx, esi */ 2076 RECOMP_ICALL(0x4703B240u); /* 0x47042B83: call 0x4703b240 */ /* not lifted */ 2077 RECOMP_FLAGS_IN(); 2078 PUSH32(esp, eax); /* 0x47042B88: push eax */ 2079 ecx = esi; /* 0x47042B89: mov ecx, esi */ 2080 RECOMP_ICALL(0x4703B080u); /* 0x47042B8B: call 0x4703b080 */ /* not lifted */ 2081 RECOMP_FLAGS_IN(); 2082 PUSH32(esp, eax); /* 0x47042B90: push eax */ 2083 PUSH32(esp, edi); /* 0x47042B91: push edi */ 2084 PUSH32(esp, 0xFFFFFFFFu); /* 0x47042B92: push -1 */ 2085 PUSH32(esp, 0x7EDu); /* 0x47042B94: push 0x7ed */ 2086 PUSH32(esp, 0x471081A4u); /* 0x47042B99: push 0x471081a4 */ 2087 ecx = esi; /* 0x47042B9E: mov ecx, esi */ 2088 RECOMP_ICALL(0x4703A340u); /* 0x47042BA0: call 0x4703a340 */ /* not lifted */ 2089 RECOMP_FLAGS_IN(); 2090 PUSH32(esp, 0xFFFFFFFFu); /* 0x47042BA5: push -1 */ 2091 PUSH32(esp, 0x47108198u); /* 0x47042BA7: push 0x47108198 */ 2092 PUSH32(esp, 0x47104AA4u); /* 0x47042BAC: push 0x47104aa4 */ 2093 PUSH32(esp, 0x80u); /* 0x47042BB1: push 0x80 */ 2094 PUSH32(esp, esi); /* 0x47042BB6: push esi */ 2095 RECOMP_ICALL(0x47039830u); /* 0x47042BB7: call 0x47039830 */ /* not lifted */ 2096 RECOMP_FLAGS_IN(); 2097 ecx = MEM32(ebp); /* 0x47042BBC: mov ecx, dword ptr [ebp] */ 2098 esi = MEM32(esp + 0x24); /* 0x47042BBF: mov esi, dword ptr [esp + 0x24] */ 2099 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2100 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2101 esp = esp + 0x14u; /* 0x47042BC3: add esp, 0x14 */ 2102 _flag_k = FK_ADD; 2103 PUSH32(esp, ecx); /* 0x47042BC6: push ecx */ 2104 RECOMP_ICALL(0x470A32A2u); /* 0x47042BC7: call 0x470a32a2 */ /* not lifted */ 2105 RECOMP_FLAGS_IN(); 2106 ebx = MEM32(ebx); /* 0x47042BCC: mov ebx, dword ptr [ebx] */ 2107 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2108 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2109 esp = esp + 4; /* 0x47042BCE: add esp, 4 */ 2110 _flag_k = FK_ADD; 2111 RECOMP_BACKEDGE(); 2112 goto L_47042B31; /* 0x47042BD1: jmp 0x47042b31 */ 2113 L_47042BD6: 2114 edi = POP32_VAL(esp); /* 0x47042BD6: pop edi */ 2115 esi = POP32_VAL(esp); /* 0x47042BD7: pop esi */ 2116 ebp = POP32_VAL(esp); /* 0x47042BD8: pop ebp */ 2117 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2118 eax = 0; /* 0x47042BD9: xor eax, eax */ 2119 _cf = 0; 2120 _flag_k = FK_TEST; 2121 ebx = POP32_VAL(esp); /* 0x47042BDB: pop ebx */ 2122 ecx = POP32_VAL(esp); /* 0x47042BDC: pop ecx */ 2123 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47042BDD: ret */ 2124 RECOMP_REGS_OUT(); 2125 } 2126 2127 void sub_47042BE0(void) { 2128 int _fpu_cmp = 0; 2129 uint32_t _cf = 0; 2130 int _df = 1; 2131 uint32_t _flag_k = FK_NONE; 2132 uint32_t _flag_a = 0, _flag_b = 0; 2133 uint32_t _itail_tgt = 0; 2134 RECOMP_REGS_LOCALS 2135 RECOMP_ENTER(0x47042BE0u); 2136 2137 L_47042BE0: 2138 eax = MEM32(ecx + 0x10); /* 0x47042BE0: mov eax, dword ptr [ecx + 0x10] */ 2139 PUSH32(esp, esi); /* 0x47042BE3: push esi */ 2140 esi = ecx + 0x10; /* 0x47042BE4: lea esi, [ecx + 0x10] */ 2141 PUSH32(esp, eax); /* 0x47042BE7: push eax */ 2142 RECOMP_ICALL(0x4700EF90u); /* 0x47042BE8: call 0x4700ef90 */ /* not lifted */ 2143 RECOMP_FLAGS_IN(); 2144 ecx = eax; /* 0x47042BED: mov ecx, eax */ 2145 RECOMP_ICALL(0x47019480u); /* 0x47042BEF: call 0x47019480 */ /* not lifted */ 2146 RECOMP_FLAGS_IN(); 2147 ecx = esi; /* 0x47042BF4: mov ecx, esi */ 2148 RECOMP_ICALL(0x47041E90u); /* 0x47042BF6: call 0x47041e90 */ /* not lifted */ 2149 RECOMP_FLAGS_IN(); 2150 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2151 eax = 0; /* 0x47042BFB: xor eax, eax */ 2152 _cf = 0; 2153 _flag_k = FK_TEST; 2154 esi = POP32_VAL(esp); /* 0x47042BFD: pop esi */ 2155 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47042BFE: ret */ 2156 RECOMP_REGS_OUT(); 2157 } 2158 2159 void sub_47042C00(void) { 2160 int _fpu_cmp = 0; 2161 uint32_t _cf = 0; 2162 int _df = 1; 2163 uint32_t _flag_k = FK_NONE; 2164 uint32_t _flag_a = 0, _flag_b = 0; 2165 uint32_t _itail_tgt = 0; 2166 RECOMP_REGS_LOCALS 2167 RECOMP_ENTER(0x47042C00u); 2168 2169 L_47042C00: 2170 eax = MEM32(esp + 0x4); /* 0x47042C00: mov eax, dword ptr [esp + 4] */ 2171 L_47042C04: 2172 /* test eax, eax */ /* 0x47042C04: test eax, eax */ 2173 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2174 _cf = 0; 2175 _flag_k = FK_TEST; 2176 L_47042C06: 2177 PUSH32(esp, ebx); /* 0x47042C06: push ebx */ 2178 L_47042C07: 2179 ebx = MEM32(0x470AC3C8); /* 0x47042C07: mov ebx, dword ptr [0x470ac3c8] */ 2180 L_47042C0D: 2181 PUSH32(esp, ebp); /* 0x47042C0D: push ebp */ 2182 L_47042C0E: 2183 ebp = MEM32(0x470AC150); /* 0x47042C0E: mov ebp, dword ptr [0x470ac150] */ 2184 L_47042C14: 2185 PUSH32(esp, esi); /* 0x47042C14: push esi */ 2186 L_47042C15: 2187 PUSH32(esp, edi); /* 0x47042C15: push edi */ 2188 L_47042C16: 2189 edi = ecx; /* 0x47042C16: mov edi, ecx */ 2190 L_47042C18: 2191 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_GE, _cf)) goto L_47042C7A; /* 0x47042C18: jge 0x47042c7a */ 2192 L_47042C1A: 2193 eax = MEM32(edi + 0x120); /* 0x47042C1A: mov eax, dword ptr [edi + 0x120] */ 2194 L_47042C20: 2195 PUSH32(esp, 2); /* 0x47042C20: push 2 */ 2196 L_47042C22: 2197 PUSH32(esp, 0); /* 0x47042C22: push 0 */ 2198 L_47042C24: 2199 PUSH32(esp, 0); /* 0x47042C24: push 0 */ 2200 L_47042C26: 2201 PUSH32(esp, eax); /* 0x47042C26: push eax */ 2202 L_47042C27: 2203 RECOMP_ICALL(MEM32(0x470AC178)); /* 0x47042C27: call dword ptr [0x470ac178] */ 2204 RECOMP_FLAGS_IN(); 2205 L_47042C2D: 2206 /* cmp eax, 0xFFFFFFFFu */ /* 0x47042C2D: cmp eax, -1 */ 2207 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 2208 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2209 _flag_k = FK_CMP; 2210 L_47042C30: 2211 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47042C7A; /* 0x47042C30: jne 0x47042c7a */ 2212 L_47042C32: 2213 RECOMP_ICALL(ebx); /* 0x47042C32: call ebx */ 2214 RECOMP_FLAGS_IN(); 2215 L_47042C34: 2216 esi = eax; /* 0x47042C34: mov esi, eax */ 2217 L_47042C36: 2218 RECOMP_ICALL(ebp); /* 0x47042C36: call ebp */ 2219 RECOMP_FLAGS_IN(); 2220 L_47042C38: 2221 MEM32(esi) = eax; /* 0x47042C38: mov dword ptr [esi], eax */ 2222 L_47042C3A: 2223 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu); 2224 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2225 eax = eax + 0xFFFFFFFDu; /* 0x47042C3A: add eax, -3 */ 2226 _flag_k = FK_ADD; 2227 L_47042C3D: 2228 /* cmp eax, 0x4Du */ /* 0x47042C3D: cmp eax, 0x4d */ 2229 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Du); 2230 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2231 _flag_k = FK_CMP; 2232 L_47042C40: 2233 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_47042C77; /* 0x47042C40: ja 0x47042c77 */ 2234 L_47042C42: 2235 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2236 ecx = 0; /* 0x47042C42: xor ecx, ecx */ 2237 _cf = 0; 2238 _flag_k = FK_TEST; 2239 L_47042C44: 2240 SET_LO8(ecx, MEM8(eax + 0x47042CC4)); /* 0x47042C44: mov cl, byte ptr [eax + 0x47042cc4] */ 2241 L_47042C4A: 2242 { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x47042CB0)); goto _ljump; } 2243 L_47042C51: 2244 RECOMP_ICALL(ebx); /* 0x47042C51: call ebx */ 2245 RECOMP_FLAGS_IN(); 2246 L_47042C53: 2247 MEM32(eax) = 0xCu; /* 0x47042C53: mov dword ptr [eax], 0xc */ 2248 L_47042C59: 2249 goto L_47042C77; /* 0x47042C59: jmp 0x47042c77 */ 2250 L_47042C5B: 2251 RECOMP_ICALL(ebx); /* 0x47042C5B: call ebx */ 2252 RECOMP_FLAGS_IN(); 2253 L_47042C5D: 2254 MEM32(eax) = 0x11u; /* 0x47042C5D: mov dword ptr [eax], 0x11 */ 2255 L_47042C63: 2256 goto L_47042C77; /* 0x47042C63: jmp 0x47042c77 */ 2257 L_47042C65: 2258 RECOMP_ICALL(ebx); /* 0x47042C65: call ebx */ 2259 RECOMP_FLAGS_IN(); 2260 L_47042C67: 2261 MEM32(eax) = 0xDu; /* 0x47042C67: mov dword ptr [eax], 0xd */ 2262 L_47042C6D: 2263 goto L_47042C77; /* 0x47042C6D: jmp 0x47042c77 */ 2264 L_47042C6F: 2265 RECOMP_ICALL(ebx); /* 0x47042C6F: call ebx */ 2266 RECOMP_FLAGS_IN(); 2267 L_47042C71: 2268 MEM32(eax) = 2; /* 0x47042C71: mov dword ptr [eax], 2 */ 2269 L_47042C77: 2270 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2271 eax = eax | 0xFFFFFFFFu; /* 0x47042C77: or eax, 0xffffffff */ 2272 _cf = 0; 2273 _flag_k = FK_TEST; 2274 L_47042C7A: 2275 /* test eax, eax */ /* 0x47042C7A: test eax, eax */ 2276 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2277 _cf = 0; 2278 _flag_k = FK_TEST; 2279 L_47042C7C: 2280 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_GE, _cf)) goto L_47042C84; /* 0x47042C7C: jge 0x47042c84 */ 2281 L_47042C7E: 2282 eax = MEM32(edi + 0x11C); /* 0x47042C7E: mov eax, dword ptr [edi + 0x11c] */ 2283 L_47042C84: 2284 ecx = MEM32(edi + 0x10); /* 0x47042C84: mov ecx, dword ptr [edi + 0x10] */ 2285 L_47042C87: 2286 PUSH32(esp, eax); /* 0x47042C87: push eax */ 2287 L_47042C88: 2288 PUSH32(esp, ecx); /* 0x47042C88: push ecx */ 2289 L_47042C89: 2290 RECOMP_ICALL(MEM32(0x470AC108)); /* 0x47042C89: call dword ptr [0x470ac108] */ 2291 RECOMP_FLAGS_IN(); 2292 L_47042C8F: 2293 esi = eax; /* 0x47042C8F: mov esi, eax */ 2294 L_47042C91: 2295 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi); 2296 _cf = (esi) != 0; 2297 esi = (uint32_t)(-(int32_t)esi); /* 0x47042C91: neg esi */ 2298 _flag_k = FK_CMP; 2299 L_47042C93: 2300 { uint32_t _sa = esi, _sb = esi, _sc = _cf; /* 0x47042C93: sbb esi, esi */ 2301 esi = _sc ? 0xFFFFFFFFu : 0; 2302 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2303 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2304 L_47042C95: 2305 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi); 2306 _cf = (esi) != 0; 2307 esi = (uint32_t)(-(int32_t)esi); /* 0x47042C95: neg esi */ 2308 _flag_k = FK_CMP; 2309 L_47042C97: 2310 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 2311 esi = esi - 1; /* 0x47042C97: dec esi */ 2312 _flag_k = FK_DEC; 2313 L_47042C98: 2314 /* cmp esi, 0xFFFFFFFFu */ /* 0x47042C98: cmp esi, -1 */ 2315 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu); 2316 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2317 _flag_k = FK_CMP; 2318 L_47042C9B: 2319 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47042CA5; /* 0x47042C9B: jne 0x47042ca5 */ 2320 L_47042C9D: 2321 RECOMP_ICALL(ebx); /* 0x47042C9D: call ebx */ 2322 RECOMP_FLAGS_IN(); 2323 L_47042C9F: 2324 edi = eax; /* 0x47042C9F: mov edi, eax */ 2325 L_47042CA1: 2326 RECOMP_ICALL(ebp); /* 0x47042CA1: call ebp */ 2327 RECOMP_FLAGS_IN(); 2328 L_47042CA3: 2329 MEM32(edi) = eax; /* 0x47042CA3: mov dword ptr [edi], eax */ 2330 L_47042CA5: 2331 edi = POP32_VAL(esp); /* 0x47042CA5: pop edi */ 2332 L_47042CA6: 2333 eax = esi; /* 0x47042CA6: mov eax, esi */ 2334 L_47042CA8: 2335 esi = POP32_VAL(esp); /* 0x47042CA8: pop esi */ 2336 L_47042CA9: 2337 ebp = POP32_VAL(esp); /* 0x47042CA9: pop ebp */ 2338 L_47042CAA: 2339 ebx = POP32_VAL(esp); /* 0x47042CAA: pop ebx */ 2340 L_47042CAB: 2341 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47042CAB: ret 8 */ 2342 _ljump: 2343 switch (_itail_tgt) { 2344 case 0x47042C00u: goto L_47042C00; 2345 case 0x47042C04u: goto L_47042C04; 2346 case 0x47042C06u: goto L_47042C06; 2347 case 0x47042C07u: goto L_47042C07; 2348 case 0x47042C0Du: goto L_47042C0D; 2349 case 0x47042C0Eu: goto L_47042C0E; 2350 case 0x47042C14u: goto L_47042C14; 2351 case 0x47042C15u: goto L_47042C15; 2352 case 0x47042C16u: goto L_47042C16; 2353 case 0x47042C18u: goto L_47042C18; 2354 case 0x47042C1Au: goto L_47042C1A; 2355 case 0x47042C20u: goto L_47042C20; 2356 case 0x47042C22u: goto L_47042C22; 2357 case 0x47042C24u: goto L_47042C24; 2358 case 0x47042C26u: goto L_47042C26; 2359 case 0x47042C27u: goto L_47042C27; 2360 case 0x47042C2Du: goto L_47042C2D; 2361 case 0x47042C30u: goto L_47042C30; 2362 case 0x47042C32u: goto L_47042C32; 2363 case 0x47042C34u: goto L_47042C34; 2364 case 0x47042C36u: goto L_47042C36; 2365 case 0x47042C38u: goto L_47042C38; 2366 case 0x47042C3Au: goto L_47042C3A; 2367 case 0x47042C3Du: goto L_47042C3D; 2368 case 0x47042C40u: goto L_47042C40; 2369 case 0x47042C42u: goto L_47042C42; 2370 case 0x47042C44u: goto L_47042C44; 2371 case 0x47042C4Au: goto L_47042C4A; 2372 case 0x47042C51u: goto L_47042C51; 2373 case 0x47042C53u: goto L_47042C53; 2374 case 0x47042C59u: goto L_47042C59; 2375 case 0x47042C5Bu: goto L_47042C5B; 2376 case 0x47042C5Du: goto L_47042C5D; 2377 case 0x47042C63u: goto L_47042C63; 2378 case 0x47042C65u: goto L_47042C65; 2379 case 0x47042C67u: goto L_47042C67; 2380 case 0x47042C6Du: goto L_47042C6D; 2381 case 0x47042C6Fu: goto L_47042C6F; 2382 case 0x47042C71u: goto L_47042C71; 2383 case 0x47042C77u: goto L_47042C77; 2384 case 0x47042C7Au: goto L_47042C7A; 2385 case 0x47042C7Cu: goto L_47042C7C; 2386 case 0x47042C7Eu: goto L_47042C7E; 2387 case 0x47042C84u: goto L_47042C84; 2388 case 0x47042C87u: goto L_47042C87; 2389 case 0x47042C88u: goto L_47042C88; 2390 case 0x47042C89u: goto L_47042C89; 2391 case 0x47042C8Fu: goto L_47042C8F; 2392 case 0x47042C91u: goto L_47042C91; 2393 case 0x47042C93u: goto L_47042C93; 2394 case 0x47042C95u: goto L_47042C95; 2395 case 0x47042C97u: goto L_47042C97; 2396 case 0x47042C98u: goto L_47042C98; 2397 case 0x47042C9Bu: goto L_47042C9B; 2398 case 0x47042C9Du: goto L_47042C9D; 2399 case 0x47042C9Fu: goto L_47042C9F; 2400 case 0x47042CA1u: goto L_47042CA1; 2401 case 0x47042CA3u: goto L_47042CA3; 2402 case 0x47042CA5u: goto L_47042CA5; 2403 case 0x47042CA6u: goto L_47042CA6; 2404 case 0x47042CA8u: goto L_47042CA8; 2405 case 0x47042CA9u: goto L_47042CA9; 2406 case 0x47042CAAu: goto L_47042CAA; 2407 case 0x47042CABu: goto L_47042CAB; 2408 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2409 } 2410 RECOMP_REGS_OUT(); 2411 } 2412 2413 void sub_47042D20(void) { 2414 int _fpu_cmp = 0; 2415 uint32_t _cf = 0; 2416 int _df = 1; 2417 uint32_t _flag_k = FK_NONE; 2418 uint32_t _flag_a = 0, _flag_b = 0; 2419 uint32_t _itail_tgt = 0; 2420 RECOMP_REGS_LOCALS 2421 RECOMP_ENTER(0x47042D20u); 2422 2423 L_47042D20: 2424 eax = MEM32(esp + 0x8); /* 0x47042D20: mov eax, dword ptr [esp + 8] */ 2425 ecx = MEM32(esp + 0x4); /* 0x47042D24: mov ecx, dword ptr [esp + 4] */ 2426 PUSH32(esp, esi); /* 0x47042D28: push esi */ 2427 PUSH32(esp, eax); /* 0x47042D29: push eax */ 2428 PUSH32(esp, ecx); /* 0x47042D2A: push ecx */ 2429 RECOMP_ICALL(MEM32(0x470AC108)); /* 0x47042D2B: call dword ptr [0x470ac108] */ 2430 RECOMP_FLAGS_IN(); 2431 esi = eax; /* 0x47042D31: mov esi, eax */ 2432 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi); 2433 _cf = (esi) != 0; 2434 esi = (uint32_t)(-(int32_t)esi); /* 0x47042D33: neg esi */ 2435 _flag_k = FK_CMP; 2436 { uint32_t _sa = esi, _sb = esi, _sc = _cf; /* 0x47042D35: sbb esi, esi */ 2437 esi = _sc ? 0xFFFFFFFFu : 0; 2438 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2439 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2440 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi); 2441 _cf = (esi) != 0; 2442 esi = (uint32_t)(-(int32_t)esi); /* 0x47042D37: neg esi */ 2443 _flag_k = FK_CMP; 2444 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 2445 esi = esi - 1; /* 0x47042D39: dec esi */ 2446 _flag_k = FK_DEC; 2447 /* cmp esi, 0xFFFFFFFFu */ /* 0x47042D3A: cmp esi, -1 */ 2448 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu); 2449 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2450 _flag_k = FK_CMP; 2451 if (CMP_NE(_flag_a, _flag_b)) goto L_47042D57; /* 0x47042D3D: jne 0x47042d57 */ 2452 L_47042D3F: 2453 PUSH32(esp, edi); /* 0x47042D3F: push edi */ 2454 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47042D40: call dword ptr [0x470ac3c8] */ 2455 RECOMP_FLAGS_IN(); 2456 edi = eax; /* 0x47042D46: mov edi, eax */ 2457 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47042D48: call dword ptr [0x470ac150] */ 2458 RECOMP_FLAGS_IN(); 2459 MEM32(edi) = eax; /* 0x47042D4E: mov dword ptr [edi], eax */ 2460 edi = POP32_VAL(esp); /* 0x47042D50: pop edi */ 2461 eax = esi; /* 0x47042D51: mov eax, esi */ 2462 esi = POP32_VAL(esp); /* 0x47042D53: pop esi */ 2463 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47042D54: ret 0xc */ 2464 L_47042D57: 2465 eax = esi; /* 0x47042D57: mov eax, esi */ 2466 esi = POP32_VAL(esp); /* 0x47042D59: pop esi */ 2467 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47042D5A: ret 0xc */ 2468 RECOMP_REGS_OUT(); 2469 } 2470 2471 void sub_47042D60(void) { 2472 int _fpu_cmp = 0; 2473 uint32_t _cf = 0; 2474 int _df = 1; 2475 uint32_t _flag_k = FK_NONE; 2476 uint32_t _flag_a = 0, _flag_b = 0; 2477 uint32_t _itail_tgt = 0; 2478 RECOMP_REGS_LOCALS 2479 RECOMP_ENTER(0x47042D60u); 2480 2481 L_47042D60: 2482 eax = MEM32(esp + 0x4); /* 0x47042D60: mov eax, dword ptr [esp + 4] */ 2483 L_47042D64: 2484 /* test eax, eax */ /* 0x47042D64: test eax, eax */ 2485 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2486 _cf = 0; 2487 _flag_k = FK_TEST; 2488 L_47042D66: 2489 PUSH32(esp, ebx); /* 0x47042D66: push ebx */ 2490 L_47042D67: 2491 ebx = ecx; /* 0x47042D67: mov ebx, ecx */ 2492 L_47042D69: 2493 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_GE, _cf)) goto L_47042DE3; /* 0x47042D69: jge 0x47042de3 */ 2494 L_47042D6B: 2495 eax = MEM32(ebx + 0x120); /* 0x47042D6B: mov eax, dword ptr [ebx + 0x120] */ 2496 L_47042D71: 2497 PUSH32(esp, 2); /* 0x47042D71: push 2 */ 2498 L_47042D73: 2499 PUSH32(esp, 0); /* 0x47042D73: push 0 */ 2500 L_47042D75: 2501 PUSH32(esp, 0); /* 0x47042D75: push 0 */ 2502 L_47042D77: 2503 PUSH32(esp, eax); /* 0x47042D77: push eax */ 2504 L_47042D78: 2505 RECOMP_ICALL(MEM32(0x470AC178)); /* 0x47042D78: call dword ptr [0x470ac178] */ 2506 RECOMP_FLAGS_IN(); 2507 L_47042D7E: 2508 /* cmp eax, 0xFFFFFFFFu */ /* 0x47042D7E: cmp eax, -1 */ 2509 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 2510 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2511 _flag_k = FK_CMP; 2512 L_47042D81: 2513 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47042DD9; /* 0x47042D81: jne 0x47042dd9 */ 2514 L_47042D83: 2515 PUSH32(esp, esi); /* 0x47042D83: push esi */ 2516 L_47042D84: 2517 esi = MEM32(0x470AC3C8); /* 0x47042D84: mov esi, dword ptr [0x470ac3c8] */ 2518 L_47042D8A: 2519 PUSH32(esp, edi); /* 0x47042D8A: push edi */ 2520 L_47042D8B: 2521 RECOMP_ICALL(esi); /* 0x47042D8B: call esi */ 2522 RECOMP_FLAGS_IN(); 2523 L_47042D8D: 2524 edi = eax; /* 0x47042D8D: mov edi, eax */ 2525 L_47042D8F: 2526 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47042D8F: call dword ptr [0x470ac150] */ 2527 RECOMP_FLAGS_IN(); 2528 L_47042D95: 2529 MEM32(edi) = eax; /* 0x47042D95: mov dword ptr [edi], eax */ 2530 L_47042D97: 2531 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu); 2532 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2533 eax = eax + 0xFFFFFFFDu; /* 0x47042D97: add eax, -3 */ 2534 _flag_k = FK_ADD; 2535 L_47042D9A: 2536 /* cmp eax, 0x4Du */ /* 0x47042D9A: cmp eax, 0x4d */ 2537 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Du); 2538 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2539 _flag_k = FK_CMP; 2540 L_47042D9D: 2541 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_47042DD4; /* 0x47042D9D: ja 0x47042dd4 */ 2542 L_47042D9F: 2543 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2544 ecx = 0; /* 0x47042D9F: xor ecx, ecx */ 2545 _cf = 0; 2546 _flag_k = FK_TEST; 2547 L_47042DA1: 2548 SET_LO8(ecx, MEM8(eax + 0x47042E18)); /* 0x47042DA1: mov cl, byte ptr [eax + 0x47042e18] */ 2549 L_47042DA7: 2550 { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x47042E04)); goto _ljump; } 2551 L_47042DAE: 2552 RECOMP_ICALL(esi); /* 0x47042DAE: call esi */ 2553 RECOMP_FLAGS_IN(); 2554 L_47042DB0: 2555 MEM32(eax) = 0xCu; /* 0x47042DB0: mov dword ptr [eax], 0xc */ 2556 L_47042DB6: 2557 goto L_47042DD4; /* 0x47042DB6: jmp 0x47042dd4 */ 2558 L_47042DB8: 2559 RECOMP_ICALL(esi); /* 0x47042DB8: call esi */ 2560 RECOMP_FLAGS_IN(); 2561 L_47042DBA: 2562 MEM32(eax) = 0x11u; /* 0x47042DBA: mov dword ptr [eax], 0x11 */ 2563 L_47042DC0: 2564 goto L_47042DD4; /* 0x47042DC0: jmp 0x47042dd4 */ 2565 L_47042DC2: 2566 RECOMP_ICALL(esi); /* 0x47042DC2: call esi */ 2567 RECOMP_FLAGS_IN(); 2568 L_47042DC4: 2569 MEM32(eax) = 0xDu; /* 0x47042DC4: mov dword ptr [eax], 0xd */ 2570 L_47042DCA: 2571 goto L_47042DD4; /* 0x47042DCA: jmp 0x47042dd4 */ 2572 L_47042DCC: 2573 RECOMP_ICALL(esi); /* 0x47042DCC: call esi */ 2574 RECOMP_FLAGS_IN(); 2575 L_47042DCE: 2576 MEM32(eax) = 2; /* 0x47042DCE: mov dword ptr [eax], 2 */ 2577 L_47042DD4: 2578 edi = POP32_VAL(esp); /* 0x47042DD4: pop edi */ 2579 L_47042DD5: 2580 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2581 eax = eax | 0xFFFFFFFFu; /* 0x47042DD5: or eax, 0xffffffff */ 2582 _cf = 0; 2583 _flag_k = FK_TEST; 2584 L_47042DD8: 2585 esi = POP32_VAL(esp); /* 0x47042DD8: pop esi */ 2586 L_47042DD9: 2587 /* test eax, eax */ /* 0x47042DD9: test eax, eax */ 2588 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2589 _cf = 0; 2590 _flag_k = FK_TEST; 2591 L_47042DDB: 2592 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_GE, _cf)) goto L_47042DE3; /* 0x47042DDB: jge 0x47042de3 */ 2593 L_47042DDD: 2594 eax = MEM32(ebx + 0x11C); /* 0x47042DDD: mov eax, dword ptr [ebx + 0x11c] */ 2595 L_47042DE3: 2596 ecx = MEM32(ebx + 0x10); /* 0x47042DE3: mov ecx, dword ptr [ebx + 0x10] */ 2597 L_47042DE6: 2598 edx = esp + 0x8; /* 0x47042DE6: lea edx, [esp + 8] */ 2599 L_47042DEA: 2600 PUSH32(esp, edx); /* 0x47042DEA: push edx */ 2601 L_47042DEB: 2602 edx = MEM32(esp + 0x10); /* 0x47042DEB: mov edx, dword ptr [esp + 0x10] */ 2603 L_47042DEF: 2604 PUSH32(esp, edx); /* 0x47042DEF: push edx */ 2605 L_47042DF0: 2606 PUSH32(esp, eax); /* 0x47042DF0: push eax */ 2607 L_47042DF1: 2608 PUSH32(esp, ecx); /* 0x47042DF1: push ecx */ 2609 L_47042DF2: 2610 RECOMP_ICALL(MEM32(0x470AC10C)); /* 0x47042DF2: call dword ptr [0x470ac10c] */ 2611 RECOMP_FLAGS_IN(); 2612 L_47042DF8: 2613 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 2614 _cf = (eax) != 0; 2615 eax = (uint32_t)(-(int32_t)eax); /* 0x47042DF8: neg eax */ 2616 _flag_k = FK_CMP; 2617 L_47042DFA: 2618 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x47042DFA: sbb eax, eax */ 2619 eax = _sc ? 0xFFFFFFFFu : 0; 2620 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2621 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2622 L_47042DFC: 2623 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 2624 _cf = (eax) != 0; 2625 eax = (uint32_t)(-(int32_t)eax); /* 0x47042DFC: neg eax */ 2626 _flag_k = FK_CMP; 2627 L_47042DFE: 2628 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2629 eax = eax - 1; /* 0x47042DFE: dec eax */ 2630 _flag_k = FK_DEC; 2631 L_47042DFF: 2632 ebx = POP32_VAL(esp); /* 0x47042DFF: pop ebx */ 2633 L_47042E00: 2634 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47042E00: ret 8 */ 2635 _ljump: 2636 switch (_itail_tgt) { 2637 case 0x47042D60u: goto L_47042D60; 2638 case 0x47042D64u: goto L_47042D64; 2639 case 0x47042D66u: goto L_47042D66; 2640 case 0x47042D67u: goto L_47042D67; 2641 case 0x47042D69u: goto L_47042D69; 2642 case 0x47042D6Bu: goto L_47042D6B; 2643 case 0x47042D71u: goto L_47042D71; 2644 case 0x47042D73u: goto L_47042D73; 2645 case 0x47042D75u: goto L_47042D75; 2646 case 0x47042D77u: goto L_47042D77; 2647 case 0x47042D78u: goto L_47042D78; 2648 case 0x47042D7Eu: goto L_47042D7E; 2649 case 0x47042D81u: goto L_47042D81; 2650 case 0x47042D83u: goto L_47042D83; 2651 case 0x47042D84u: goto L_47042D84; 2652 case 0x47042D8Au: goto L_47042D8A; 2653 case 0x47042D8Bu: goto L_47042D8B; 2654 case 0x47042D8Du: goto L_47042D8D; 2655 case 0x47042D8Fu: goto L_47042D8F; 2656 case 0x47042D95u: goto L_47042D95; 2657 case 0x47042D97u: goto L_47042D97; 2658 case 0x47042D9Au: goto L_47042D9A; 2659 case 0x47042D9Du: goto L_47042D9D; 2660 case 0x47042D9Fu: goto L_47042D9F; 2661 case 0x47042DA1u: goto L_47042DA1; 2662 case 0x47042DA7u: goto L_47042DA7; 2663 case 0x47042DAEu: goto L_47042DAE; 2664 case 0x47042DB0u: goto L_47042DB0; 2665 case 0x47042DB6u: goto L_47042DB6; 2666 case 0x47042DB8u: goto L_47042DB8; 2667 case 0x47042DBAu: goto L_47042DBA; 2668 case 0x47042DC0u: goto L_47042DC0; 2669 case 0x47042DC2u: goto L_47042DC2; 2670 case 0x47042DC4u: goto L_47042DC4; 2671 case 0x47042DCAu: goto L_47042DCA; 2672 case 0x47042DCCu: goto L_47042DCC; 2673 case 0x47042DCEu: goto L_47042DCE; 2674 case 0x47042DD4u: goto L_47042DD4; 2675 case 0x47042DD5u: goto L_47042DD5; 2676 case 0x47042DD8u: goto L_47042DD8; 2677 case 0x47042DD9u: goto L_47042DD9; 2678 case 0x47042DDBu: goto L_47042DDB; 2679 case 0x47042DDDu: goto L_47042DDD; 2680 case 0x47042DE3u: goto L_47042DE3; 2681 case 0x47042DE6u: goto L_47042DE6; 2682 case 0x47042DEAu: goto L_47042DEA; 2683 case 0x47042DEBu: goto L_47042DEB; 2684 case 0x47042DEFu: goto L_47042DEF; 2685 case 0x47042DF0u: goto L_47042DF0; 2686 case 0x47042DF1u: goto L_47042DF1; 2687 case 0x47042DF2u: goto L_47042DF2; 2688 case 0x47042DF8u: goto L_47042DF8; 2689 case 0x47042DFAu: goto L_47042DFA; 2690 case 0x47042DFCu: goto L_47042DFC; 2691 case 0x47042DFEu: goto L_47042DFE; 2692 case 0x47042DFFu: goto L_47042DFF; 2693 case 0x47042E00u: goto L_47042E00; 2694 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2695 } 2696 RECOMP_REGS_OUT(); 2697 } 2698 2699 void sub_47042E70(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(0x47042E70u); 2708 2709 L_47042E70: 2710 ecx = MEM32(esp + 0xC); /* 0x47042E70: mov ecx, dword ptr [esp + 0xc] */ 2711 edx = MEM32(esp + 0x8); /* 0x47042E74: mov edx, dword ptr [esp + 8] */ 2712 eax = esp + 0xC; /* 0x47042E78: lea eax, [esp + 0xc] */ 2713 PUSH32(esp, eax); /* 0x47042E7C: push eax */ 2714 eax = MEM32(esp + 0x8); /* 0x47042E7D: mov eax, dword ptr [esp + 8] */ 2715 PUSH32(esp, ecx); /* 0x47042E81: push ecx */ 2716 PUSH32(esp, edx); /* 0x47042E82: push edx */ 2717 PUSH32(esp, eax); /* 0x47042E83: push eax */ 2718 RECOMP_ICALL(MEM32(0x470AC10C)); /* 0x47042E84: call dword ptr [0x470ac10c] */ 2719 RECOMP_FLAGS_IN(); 2720 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 2721 _cf = (eax) != 0; 2722 eax = (uint32_t)(-(int32_t)eax); /* 0x47042E8A: neg eax */ 2723 _flag_k = FK_CMP; 2724 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x47042E8C: sbb eax, eax */ 2725 eax = _sc ? 0xFFFFFFFFu : 0; 2726 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2727 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2728 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 2729 _cf = (eax) != 0; 2730 eax = (uint32_t)(-(int32_t)eax); /* 0x47042E8E: neg eax */ 2731 _flag_k = FK_CMP; 2732 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2733 eax = eax - 1; /* 0x47042E90: dec eax */ 2734 _flag_k = FK_DEC; 2735 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47042E91: ret 0xc */ 2736 RECOMP_REGS_OUT(); 2737 } 2738 2739 void sub_47042EA0(void) { 2740 int _fpu_cmp = 0; 2741 uint32_t _cf = 0; 2742 int _df = 1; 2743 uint32_t _flag_k = FK_NONE; 2744 uint32_t _flag_a = 0, _flag_b = 0; 2745 uint32_t _itail_tgt = 0; 2746 RECOMP_REGS_LOCALS 2747 RECOMP_ENTER(0x47042EA0u); 2748 2749 L_47042EA0: 2750 PUSH32(esp, 0xFFFFFFFFu); /* 0x47042EA0: push -1 */ 2751 PUSH32(esp, 0x470A65E8u); /* 0x47042EA2: push 0x470a65e8 */ 2752 eax = MEM32(FS_BASE + (0)); /* 0x47042EA7: mov eax, dword ptr fs:[0] */ 2753 PUSH32(esp, eax); /* 0x47042EAD: push eax */ 2754 MEM32(FS_BASE + (0)) = esp; /* 0x47042EAE: mov dword ptr fs:[0], esp */ 2755 PUSH32(esp, ecx); /* 0x47042EB5: push ecx */ 2756 PUSH32(esp, esi); /* 0x47042EB6: push esi */ 2757 PUSH32(esp, edi); /* 0x47042EB7: push edi */ 2758 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2759 edi = 0; /* 0x47042EB8: xor edi, edi */ 2760 _cf = 0; 2761 _flag_k = FK_TEST; 2762 PUSH32(esp, edi); /* 0x47042EBA: push edi */ 2763 esi = ecx; /* 0x47042EBB: mov esi, ecx */ 2764 PUSH32(esp, edi); /* 0x47042EBD: push edi */ 2765 MEM32(esp + 0x10) = esi; /* 0x47042EBE: mov dword ptr [esp + 0x10], esi */ 2766 RECOMP_ICALL(0x4702A790u); /* 0x47042EC2: call 0x4702a790 */ /* not lifted */ 2767 RECOMP_FLAGS_IN(); 2768 ecx = esi + 0x10; /* 0x47042EC7: lea ecx, [esi + 0x10] */ 2769 MEM32(esp + 0x14) = edi; /* 0x47042ECA: mov dword ptr [esp + 0x14], edi */ 2770 MEM32(esi + 0xC) = 0x470AC680u; /* 0x47042ECE: mov dword ptr [esi + 0xc], 0x470ac680 */ 2771 RECOMP_ICALL(0x47041C70u); /* 0x47042ED5: call 0x47041c70 */ /* not lifted */ 2772 RECOMP_FLAGS_IN(); 2773 eax = MEM32(esp + 0x20); /* 0x47042EDA: mov eax, dword ptr [esp + 0x20] */ 2774 /* cmp eax, edi */ /* 0x47042EDE: cmp eax, edi */ 2775 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2776 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2777 _flag_k = FK_CMP; 2778 MEM32(esi + 0x12C) = edi; /* 0x47042EE0: mov dword ptr [esi + 0x12c], edi */ 2779 MEM32(esi + 0x130) = 2; /* 0x47042EE6: mov dword ptr [esi + 0x130], 2 */ 2780 MEM32(esi + 0x134) = edi; /* 0x47042EF0: mov dword ptr [esi + 0x134], edi */ 2781 MEM32(esi + 0x138) = edi; /* 0x47042EF6: mov dword ptr [esi + 0x138], edi */ 2782 MEM32(esi + 0x248) = edi; /* 0x47042EFC: mov dword ptr [esi + 0x248], edi */ 2783 MEM32(esi) = 0x470AC710u; /* 0x47042F02: mov dword ptr [esi], 0x470ac710 */ 2784 MEM32(esi + 0x244) = edi; /* 0x47042F08: mov dword ptr [esi + 0x244], edi */ 2785 if (CMP_EQ(_flag_a, _flag_b)) goto L_47042F53; /* 0x47042F0E: je 0x47042f53 */ 2786 L_47042F10: 2787 /* cmp MEM32(eax + 0x4), edi */ /* 0x47042F10: cmp dword ptr [eax + 4], edi */ 2788 _flag_a = (uint32_t)(MEM32(eax + 0x4)); _flag_b = (uint32_t)(edi); 2789 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2790 _flag_k = FK_CMP; 2791 if (CMP_EQ(_flag_a, _flag_b)) goto L_47042F27; /* 0x47042F13: je 0x47042f27 */ 2792 L_47042F15: 2793 ecx = MEM32(eax); /* 0x47042F15: mov ecx, dword ptr [eax] */ 2794 MEM32(esi + 0x12C) = ecx; /* 0x47042F17: mov dword ptr [esi + 0x12c], ecx */ 2795 MEM32(esi + 0x130) = 6; /* 0x47042F1D: mov dword ptr [esi + 0x130], 6 */ 2796 L_47042F27: 2797 edx = MEM32(eax + 0x8); /* 0x47042F27: mov edx, dword ptr [eax + 8] */ 2798 MEM32(esi + 0x134) = edx; /* 0x47042F2A: mov dword ptr [esi + 0x134], edx */ 2799 ecx = MEM32(eax + 0xC); /* 0x47042F30: mov ecx, dword ptr [eax + 0xc] */ 2800 MEM32(esi + 0x138) = ecx; /* 0x47042F33: mov dword ptr [esi + 0x138], ecx */ 2801 ecx = MEM32(eax + 0x10); /* 0x47042F39: mov ecx, dword ptr [eax + 0x10] */ 2802 /* cmp ecx, edi */ /* 0x47042F3C: cmp ecx, edi */ 2803 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 2804 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2805 _flag_k = FK_CMP; 2806 if (CMP_EQ(_flag_a, _flag_b)) goto L_47042F46; /* 0x47042F3E: je 0x47042f46 */ 2807 L_47042F40: 2808 MEM32(esi + 0x130) = ecx; /* 0x47042F40: mov dword ptr [esi + 0x130], ecx */ 2809 L_47042F46: 2810 eax = MEM32(eax + 0x18); /* 0x47042F46: mov eax, dword ptr [eax + 0x18] */ 2811 /* cmp eax, edi */ /* 0x47042F49: cmp eax, edi */ 2812 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2813 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2814 _flag_k = FK_CMP; 2815 if (CMP_EQ(_flag_a, _flag_b)) goto L_47042F53; /* 0x47042F4B: je 0x47042f53 */ 2816 L_47042F4D: 2817 MEM32(esi + 0x248) = eax; /* 0x47042F4D: mov dword ptr [esi + 0x248], eax */ 2818 L_47042F53: 2819 eax = MEM32(esp + 0x1C); /* 0x47042F53: mov eax, dword ptr [esp + 0x1c] */ 2820 /* cmp eax, edi */ /* 0x47042F57: cmp eax, edi */ 2821 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2822 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2823 _flag_k = FK_CMP; 2824 if (CMP_NE(_flag_a, _flag_b)) goto L_47042F60; /* 0x47042F59: jne 0x47042f60 */ 2825 L_47042F5B: 2826 eax = 0x471081BCu; /* 0x47042F5B: mov eax, 0x471081bc */ 2827 L_47042F60: 2828 PUSH32(esp, 0x105u); /* 0x47042F60: push 0x105 */ 2829 PUSH32(esp, eax); /* 0x47042F65: push eax */ 2830 edx = esi + 0x13C; /* 0x47042F66: lea edx, [esi + 0x13c] */ 2831 PUSH32(esp, edx); /* 0x47042F6C: push edx */ 2832 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47042F6D: call dword ptr [0x470ac22c] */ 2833 RECOMP_FLAGS_IN(); 2834 ecx = MEM32(esp + 0x18); /* 0x47042F73: mov ecx, dword ptr [esp + 0x18] */ 2835 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2836 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2837 esp = esp + 0xCu; /* 0x47042F77: add esp, 0xc */ 2838 _flag_k = FK_ADD; 2839 edi = POP32_VAL(esp); /* 0x47042F7A: pop edi */ 2840 eax = esi; /* 0x47042F7B: mov eax, esi */ 2841 esi = POP32_VAL(esp); /* 0x47042F7D: pop esi */ 2842 MEM32(FS_BASE + (0)) = ecx; /* 0x47042F7E: mov dword ptr fs:[0], ecx */ 2843 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2844 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2845 esp = esp + 0x10u; /* 0x47042F85: add esp, 0x10 */ 2846 _flag_k = FK_ADD; 2847 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47042F88: ret 8 */ 2848 RECOMP_REGS_OUT(); 2849 } 2850 2851 void sub_47042F90(void) { 2852 int _fpu_cmp = 0; 2853 uint32_t _cf = 0; 2854 int _df = 1; 2855 uint32_t _flag_k = FK_NONE; 2856 uint32_t _flag_a = 0, _flag_b = 0; 2857 uint32_t _itail_tgt = 0; 2858 RECOMP_REGS_LOCALS 2859 RECOMP_ENTER(0x47042F90u); 2860 2861 L_47042F90: 2862 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2863 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2864 esp = esp - 0xCu; /* 0x47042F90: sub esp, 0xc */ 2865 _flag_k = FK_CMP; 2866 L_47042F93: 2867 PUSH32(esp, ebx); /* 0x47042F93: push ebx */ 2868 L_47042F94: 2869 PUSH32(esp, ebp); /* 0x47042F94: push ebp */ 2870 L_47042F95: 2871 ebx = ecx; /* 0x47042F95: mov ebx, ecx */ 2872 L_47042F97: 2873 eax = MEM32(ebx + 0x134); /* 0x47042F97: mov eax, dword ptr [ebx + 0x134] */ 2874 L_47042F9D: 2875 /* test eax, eax */ /* 0x47042F9D: test eax, eax */ 2876 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2877 _cf = 0; 2878 _flag_k = FK_TEST; 2879 L_47042F9F: 2880 PUSH32(esp, esi); /* 0x47042F9F: push esi */ 2881 L_47042FA0: 2882 PUSH32(esp, edi); /* 0x47042FA0: push edi */ 2883 L_47042FA1: 2884 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47042FB2; /* 0x47042FA1: je 0x47042fb2 */ 2885 L_47042FA3: 2886 eax = MEM32(ebx); /* 0x47042FA3: mov eax, dword ptr [ebx] */ 2887 L_47042FA5: 2888 PUSH32(esp, 1); /* 0x47042FA5: push 1 */ 2889 L_47042FA7: 2890 RECOMP_ICALL(MEM32(eax + 0x6C)); /* 0x47042FA7: call dword ptr [eax + 0x6c] */ 2891 RECOMP_FLAGS_IN(); 2892 L_47042FAA: 2893 esi = eax; /* 0x47042FAA: mov esi, eax */ 2894 L_47042FAC: 2895 MEM32(esp + 0x10) = esi; /* 0x47042FAC: mov dword ptr [esp + 0x10], esi */ 2896 L_47042FB0: 2897 goto L_47042FBC; /* 0x47042FB0: jmp 0x47042fbc */ 2898 L_47042FB2: 2899 ecx = MEM32(esp + 0x20); /* 0x47042FB2: mov ecx, dword ptr [esp + 0x20] */ 2900 L_47042FB6: 2901 MEM32(esp + 0x10) = ecx; /* 0x47042FB6: mov dword ptr [esp + 0x10], ecx */ 2902 L_47042FBA: 2903 esi = ecx; /* 0x47042FBA: mov esi, ecx */ 2904 L_47042FBC: 2905 eax = MEM32(esp + 0x20); /* 0x47042FBC: mov eax, dword ptr [esp + 0x20] */ 2906 L_47042FC0: 2907 /* test eax, eax */ /* 0x47042FC0: test eax, eax */ 2908 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2909 _cf = 0; 2910 _flag_k = FK_TEST; 2911 L_47042FC2: 2912 MEM32(esp + 0x14) = 0; /* 0x47042FC2: mov dword ptr [esp + 0x14], 0 */ 2913 L_47042FCA: 2914 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_BE, _cf)) goto L_47043141; /* 0x47042FCA: jbe 0x47043141 */ 2915 L_47042FD0: 2916 edi = MEM32(0x470AC3C8); /* 0x47042FD0: mov edi, dword ptr [0x470ac3c8] */ 2917 L_47042FD6: 2918 ebp = MEM32(0x470AC150); /* 0x47042FD6: mov ebp, dword ptr [0x470ac150] */ 2919 L_47042FDC: 2920 eax = MEM32(ebx + 0x120); /* 0x47042FDC: mov eax, dword ptr [ebx + 0x120] */ 2921 L_47042FE2: 2922 PUSH32(esp, 2); /* 0x47042FE2: push 2 */ 2923 L_47042FE4: 2924 PUSH32(esp, 0); /* 0x47042FE4: push 0 */ 2925 L_47042FE6: 2926 ecx = esi + (-0x1); /* 0x47042FE6: lea ecx, [esi - 1] */ 2927 L_47042FE9: 2928 PUSH32(esp, ecx); /* 0x47042FE9: push ecx */ 2929 L_47042FEA: 2930 PUSH32(esp, eax); /* 0x47042FEA: push eax */ 2931 L_47042FEB: 2932 RECOMP_ICALL(MEM32(0x470AC178)); /* 0x47042FEB: call dword ptr [0x470ac178] */ 2933 RECOMP_FLAGS_IN(); 2934 L_47042FF1: 2935 /* cmp eax, 0xFFFFFFFFu */ /* 0x47042FF1: cmp eax, -1 */ 2936 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 2937 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2938 _flag_k = FK_CMP; 2939 L_47042FF4: 2940 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47043042; /* 0x47042FF4: jne 0x47043042 */ 2941 L_47042FF6: 2942 RECOMP_ICALL(edi); /* 0x47042FF6: call edi */ 2943 RECOMP_FLAGS_IN(); 2944 L_47042FF8: 2945 esi = eax; /* 0x47042FF8: mov esi, eax */ 2946 L_47042FFA: 2947 RECOMP_ICALL(ebp); /* 0x47042FFA: call ebp */ 2948 RECOMP_FLAGS_IN(); 2949 L_47042FFC: 2950 MEM32(esi) = eax; /* 0x47042FFC: mov dword ptr [esi], eax */ 2951 L_47042FFE: 2952 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu); 2953 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2954 eax = eax + 0xFFFFFFFDu; /* 0x47042FFE: add eax, -3 */ 2955 _flag_k = FK_ADD; 2956 L_47043001: 2957 /* cmp eax, 0x4Du */ /* 0x47043001: cmp eax, 0x4d */ 2958 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Du); 2959 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2960 _flag_k = FK_CMP; 2961 L_47043004: 2962 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_4704303B; /* 0x47043004: ja 0x4704303b */ 2963 L_47043006: 2964 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2965 edx = 0; /* 0x47043006: xor edx, edx */ 2966 _cf = 0; 2967 _flag_k = FK_TEST; 2968 L_47043008: 2969 SET_LO8(edx, MEM8(eax + 0x4704316C)); /* 0x47043008: mov dl, byte ptr [eax + 0x4704316c] */ 2970 L_4704300E: 2971 { _itail_tgt = (uint32_t)(MEM32(edx * 4 + 0x47043158)); goto _ljump; } 2972 L_47043015: 2973 RECOMP_ICALL(edi); /* 0x47043015: call edi */ 2974 RECOMP_FLAGS_IN(); 2975 L_47043017: 2976 MEM32(eax) = 0xCu; /* 0x47043017: mov dword ptr [eax], 0xc */ 2977 L_4704301D: 2978 goto L_4704303B; /* 0x4704301D: jmp 0x4704303b */ 2979 L_4704301F: 2980 RECOMP_ICALL(edi); /* 0x4704301F: call edi */ 2981 RECOMP_FLAGS_IN(); 2982 L_47043021: 2983 MEM32(eax) = 0x11u; /* 0x47043021: mov dword ptr [eax], 0x11 */ 2984 L_47043027: 2985 goto L_4704303B; /* 0x47043027: jmp 0x4704303b */ 2986 L_47043029: 2987 RECOMP_ICALL(edi); /* 0x47043029: call edi */ 2988 RECOMP_FLAGS_IN(); 2989 L_4704302B: 2990 MEM32(eax) = 0xDu; /* 0x4704302B: mov dword ptr [eax], 0xd */ 2991 L_47043031: 2992 goto L_4704303B; /* 0x47043031: jmp 0x4704303b */ 2993 L_47043033: 2994 RECOMP_ICALL(edi); /* 0x47043033: call edi */ 2995 RECOMP_FLAGS_IN(); 2996 L_47043035: 2997 MEM32(eax) = 2; /* 0x47043035: mov dword ptr [eax], 2 */ 2998 L_4704303B: 2999 esi = MEM32(esp + 0x10); /* 0x4704303B: mov esi, dword ptr [esp + 0x10] */ 3000 L_4704303F: 3001 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3002 eax = eax | 0xFFFFFFFFu; /* 0x4704303F: or eax, 0xffffffff */ 3003 _cf = 0; 3004 _flag_k = FK_TEST; 3005 L_47043042: 3006 /* cmp eax, 0xFFFFFFFFu */ /* 0x47043042: 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 L_47043045: 3011 ecx = MEM32(esp + 0x24); /* 0x47043045: mov ecx, dword ptr [esp + 0x24] */ 3012 L_47043049: 3013 MEM32(ecx) = eax; /* 0x47043049: mov dword ptr [ecx], eax */ 3014 L_4704304B: 3015 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_470430D7; /* 0x4704304B: je 0x470430d7 */ 3016 L_47043051: 3017 eax = MEM32(ebx + 0x120); /* 0x47043051: mov eax, dword ptr [ebx + 0x120] */ 3018 L_47043057: 3019 PUSH32(esp, 0); /* 0x47043057: push 0 */ 3020 L_47043059: 3021 edx = esp + 0x1C; /* 0x47043059: lea edx, [esp + 0x1c] */ 3022 L_4704305D: 3023 PUSH32(esp, edx); /* 0x4704305D: push edx */ 3024 L_4704305E: 3025 PUSH32(esp, 1); /* 0x4704305E: push 1 */ 3026 L_47043060: 3027 PUSH32(esp, 0x4710DE90u); /* 0x47043060: push 0x4710de90 */ 3028 L_47043065: 3029 PUSH32(esp, eax); /* 0x47043065: push eax */ 3030 L_47043066: 3031 RECOMP_ICALL(MEM32(0x470AC114)); /* 0x47043066: call dword ptr [0x470ac114] */ 3032 RECOMP_FLAGS_IN(); 3033 L_4704306C: 3034 /* test eax, eax */ /* 0x4704306C: test eax, eax */ 3035 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3036 _cf = 0; 3037 _flag_k = FK_TEST; 3038 L_4704306E: 3039 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47043092; /* 0x4704306E: je 0x47043092 */ 3040 L_47043070: 3041 /* cmp MEM32(esp + 0x18), 0xFFFFFFFFu */ /* 0x47043070: cmp dword ptr [esp + 0x18], -1 */ 3042 _flag_a = (uint32_t)(MEM32(esp + 0x18)); _flag_b = (uint32_t)(0xFFFFFFFFu); 3043 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3044 _flag_k = FK_CMP; 3045 L_47043075: 3046 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_470430D7; /* 0x47043075: je 0x470430d7 */ 3047 L_47043077: 3048 eax = MEM32(esp + 0x14); /* 0x47043077: mov eax, dword ptr [esp + 0x14] */ 3049 L_4704307B: 3050 ecx = MEM32(esp + 0x20); /* 0x4704307B: mov ecx, dword ptr [esp + 0x20] */ 3051 L_4704307F: 3052 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 3053 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3054 eax = eax + esi; /* 0x4704307F: add eax, esi */ 3055 _flag_k = FK_ADD; 3056 L_47043081: 3057 /* cmp eax, ecx */ /* 0x47043081: cmp eax, ecx */ 3058 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3059 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3060 _flag_k = FK_CMP; 3061 L_47043083: 3062 MEM32(esp + 0x14) = eax; /* 0x47043083: mov dword ptr [esp + 0x14], eax */ 3063 L_47043087: 3064 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_AE, _cf)) goto L_47043141; /* 0x47043087: jae 0x47043141 */ 3065 L_4704308D: 3066 RECOMP_BACKEDGE(); 3067 goto L_47042FDC; /* 0x4704308D: jmp 0x47042fdc */ 3068 L_47043092: 3069 RECOMP_ICALL(edi); /* 0x47043092: call edi */ 3070 RECOMP_FLAGS_IN(); 3071 L_47043094: 3072 esi = eax; /* 0x47043094: mov esi, eax */ 3073 L_47043096: 3074 RECOMP_ICALL(ebp); /* 0x47043096: call ebp */ 3075 RECOMP_FLAGS_IN(); 3076 L_47043098: 3077 MEM32(esi) = eax; /* 0x47043098: mov dword ptr [esi], eax */ 3078 L_4704309A: 3079 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu); 3080 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3081 eax = eax + 0xFFFFFFFDu; /* 0x4704309A: add eax, -3 */ 3082 _flag_k = FK_ADD; 3083 L_4704309D: 3084 /* cmp eax, 0x4Du */ /* 0x4704309D: cmp eax, 0x4d */ 3085 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Du); 3086 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3087 _flag_k = FK_CMP; 3088 L_470430A0: 3089 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_470430D7; /* 0x470430A0: ja 0x470430d7 */ 3090 L_470430A2: 3091 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3092 ecx = 0; /* 0x470430A2: xor ecx, ecx */ 3093 _cf = 0; 3094 _flag_k = FK_TEST; 3095 L_470430A4: 3096 SET_LO8(ecx, MEM8(eax + 0x470431D0)); /* 0x470430A4: mov cl, byte ptr [eax + 0x470431d0] */ 3097 L_470430AA: 3098 { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x470431BC)); goto _ljump; } 3099 L_470430B1: 3100 RECOMP_ICALL(edi); /* 0x470430B1: call edi */ 3101 RECOMP_FLAGS_IN(); 3102 L_470430B3: 3103 MEM32(eax) = 0xCu; /* 0x470430B3: mov dword ptr [eax], 0xc */ 3104 L_470430B9: 3105 goto L_470430D7; /* 0x470430B9: jmp 0x470430d7 */ 3106 L_470430BB: 3107 RECOMP_ICALL(edi); /* 0x470430BB: call edi */ 3108 RECOMP_FLAGS_IN(); 3109 L_470430BD: 3110 MEM32(eax) = 0x11u; /* 0x470430BD: mov dword ptr [eax], 0x11 */ 3111 L_470430C3: 3112 goto L_470430D7; /* 0x470430C3: jmp 0x470430d7 */ 3113 L_470430C5: 3114 RECOMP_ICALL(edi); /* 0x470430C5: call edi */ 3115 RECOMP_FLAGS_IN(); 3116 L_470430C7: 3117 MEM32(eax) = 0xDu; /* 0x470430C7: mov dword ptr [eax], 0xd */ 3118 L_470430CD: 3119 goto L_470430D7; /* 0x470430CD: jmp 0x470430d7 */ 3120 L_470430CF: 3121 RECOMP_ICALL(edi); /* 0x470430CF: call edi */ 3122 RECOMP_FLAGS_IN(); 3123 L_470430D1: 3124 MEM32(eax) = 2; /* 0x470430D1: mov dword ptr [eax], 2 */ 3125 L_470430D7: 3126 RECOMP_ICALL(ebp); /* 0x470430D7: call ebp */ 3127 RECOMP_FLAGS_IN(); 3128 L_470430D9: 3129 esi = eax; /* 0x470430D9: mov esi, eax */ 3130 L_470430DB: 3131 RECOMP_ICALL(edi); /* 0x470430DB: call edi */ 3132 RECOMP_FLAGS_IN(); 3133 L_470430DD: 3134 eax = MEM32(eax); /* 0x470430DD: mov eax, dword ptr [eax] */ 3135 L_470430DF: 3136 /* test eax, eax */ /* 0x470430DF: test eax, eax */ 3137 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3138 _cf = 0; 3139 _flag_k = FK_TEST; 3140 L_470430E1: 3141 edi = esi; /* 0x470430E1: mov edi, esi */ 3142 L_470430E3: 3143 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_470430E7; /* 0x470430E3: je 0x470430e7 */ 3144 L_470430E5: 3145 edi = eax; /* 0x470430E5: mov edi, eax */ 3146 L_470430E7: 3147 RECOMP_ICALL(0x47039020u); /* 0x470430E7: call 0x47039020 */ /* not lifted */ 3148 RECOMP_FLAGS_IN(); 3149 L_470430EC: 3150 esi = eax; /* 0x470430EC: mov esi, eax */ 3151 L_470430EE: 3152 ecx = esi; /* 0x470430EE: mov ecx, esi */ 3153 L_470430F0: 3154 RECOMP_ICALL(0x4703B210u); /* 0x470430F0: call 0x4703b210 */ /* not lifted */ 3155 RECOMP_FLAGS_IN(); 3156 L_470430F5: 3157 PUSH32(esp, eax); /* 0x470430F5: push eax */ 3158 L_470430F6: 3159 ecx = esi; /* 0x470430F6: mov ecx, esi */ 3160 L_470430F8: 3161 RECOMP_ICALL(0x4703B240u); /* 0x470430F8: call 0x4703b240 */ /* not lifted */ 3162 RECOMP_FLAGS_IN(); 3163 L_470430FD: 3164 PUSH32(esp, eax); /* 0x470430FD: push eax */ 3165 L_470430FE: 3166 ecx = esi; /* 0x470430FE: mov ecx, esi */ 3167 L_47043100: 3168 RECOMP_ICALL(0x4703B080u); /* 0x47043100: call 0x4703b080 */ /* not lifted */ 3169 RECOMP_FLAGS_IN(); 3170 L_47043105: 3171 PUSH32(esp, eax); /* 0x47043105: push eax */ 3172 L_47043106: 3173 PUSH32(esp, edi); /* 0x47043106: push edi */ 3174 L_47043107: 3175 PUSH32(esp, 0xFFFFFFFFu); /* 0x47043107: push -1 */ 3176 L_47043109: 3177 PUSH32(esp, 0xF9u); /* 0x47043109: push 0xf9 */ 3178 L_4704310E: 3179 PUSH32(esp, 0x4710815Cu); /* 0x4704310E: push 0x4710815c */ 3180 L_47043113: 3181 ecx = esi; /* 0x47043113: mov ecx, esi */ 3182 L_47043115: 3183 RECOMP_ICALL(0x4703A340u); /* 0x47043115: call 0x4703a340 */ /* not lifted */ 3184 RECOMP_FLAGS_IN(); 3185 L_4704311A: 3186 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x13Cu); 3187 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3188 ebx = ebx + 0x13Cu; /* 0x4704311A: add ebx, 0x13c */ 3189 _flag_k = FK_ADD; 3190 L_47043120: 3191 PUSH32(esp, ebx); /* 0x47043120: push ebx */ 3192 L_47043121: 3193 PUSH32(esp, 0x47105B0Cu); /* 0x47043121: push 0x47105b0c */ 3194 L_47043126: 3195 PUSH32(esp, 0x80u); /* 0x47043126: push 0x80 */ 3196 L_4704312B: 3197 PUSH32(esp, esi); /* 0x4704312B: push esi */ 3198 L_4704312C: 3199 RECOMP_ICALL(0x47039830u); /* 0x4704312C: call 0x47039830 */ /* not lifted */ 3200 RECOMP_FLAGS_IN(); 3201 L_47043131: 3202 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3203 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3204 esp = esp + 0x10u; /* 0x47043131: add esp, 0x10 */ 3205 _flag_k = FK_ADD; 3206 L_47043134: 3207 edi = POP32_VAL(esp); /* 0x47043134: pop edi */ 3208 L_47043135: 3209 esi = POP32_VAL(esp); /* 0x47043135: pop esi */ 3210 L_47043136: 3211 ebp = POP32_VAL(esp); /* 0x47043136: pop ebp */ 3212 L_47043137: 3213 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3214 eax = eax | 0xFFFFFFFFu; /* 0x47043137: or eax, 0xffffffff */ 3215 _cf = 0; 3216 _flag_k = FK_TEST; 3217 L_4704313A: 3218 ebx = POP32_VAL(esp); /* 0x4704313A: pop ebx */ 3219 L_4704313B: 3220 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3221 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3222 esp = esp + 0xCu; /* 0x4704313B: add esp, 0xc */ 3223 _flag_k = FK_ADD; 3224 L_4704313E: 3225 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4704313E: ret 8 */ 3226 L_47043141: 3227 eax = MEM32(esp + 0x24); /* 0x47043141: mov eax, dword ptr [esp + 0x24] */ 3228 L_47043145: 3229 ecx = MEM32(eax); /* 0x47043145: mov ecx, dword ptr [eax] */ 3230 L_47043147: 3231 edi = POP32_VAL(esp); /* 0x47043147: pop edi */ 3232 L_47043148: 3233 esi = POP32_VAL(esp); /* 0x47043148: pop esi */ 3234 L_47043149: 3235 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3236 ecx = ecx + 1; /* 0x47043149: inc ecx */ 3237 _flag_k = FK_INC; 3238 L_4704314A: 3239 ebp = POP32_VAL(esp); /* 0x4704314A: pop ebp */ 3240 L_4704314B: 3241 MEM32(eax) = ecx; /* 0x4704314B: mov dword ptr [eax], ecx */ 3242 L_4704314D: 3243 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3244 eax = 0; /* 0x4704314D: xor eax, eax */ 3245 _cf = 0; 3246 _flag_k = FK_TEST; 3247 L_4704314F: 3248 ebx = POP32_VAL(esp); /* 0x4704314F: pop ebx */ 3249 L_47043150: 3250 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3251 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3252 esp = esp + 0xCu; /* 0x47043150: add esp, 0xc */ 3253 _flag_k = FK_ADD; 3254 L_47043153: 3255 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47043153: ret 8 */ 3256 _ljump: 3257 switch (_itail_tgt) { 3258 case 0x47042F90u: goto L_47042F90; 3259 case 0x47042F93u: goto L_47042F93; 3260 case 0x47042F94u: goto L_47042F94; 3261 case 0x47042F95u: goto L_47042F95; 3262 case 0x47042F97u: goto L_47042F97; 3263 case 0x47042F9Du: goto L_47042F9D; 3264 case 0x47042F9Fu: goto L_47042F9F; 3265 case 0x47042FA0u: goto L_47042FA0; 3266 case 0x47042FA1u: goto L_47042FA1; 3267 case 0x47042FA3u: goto L_47042FA3; 3268 case 0x47042FA5u: goto L_47042FA5; 3269 case 0x47042FA7u: goto L_47042FA7; 3270 case 0x47042FAAu: goto L_47042FAA; 3271 case 0x47042FACu: goto L_47042FAC; 3272 case 0x47042FB0u: goto L_47042FB0; 3273 case 0x47042FB2u: goto L_47042FB2; 3274 case 0x47042FB6u: goto L_47042FB6; 3275 case 0x47042FBAu: goto L_47042FBA; 3276 case 0x47042FBCu: goto L_47042FBC; 3277 case 0x47042FC0u: goto L_47042FC0; 3278 case 0x47042FC2u: goto L_47042FC2; 3279 case 0x47042FCAu: goto L_47042FCA; 3280 case 0x47042FD0u: goto L_47042FD0; 3281 case 0x47042FD6u: goto L_47042FD6; 3282 case 0x47042FDCu: goto L_47042FDC; 3283 case 0x47042FE2u: goto L_47042FE2; 3284 case 0x47042FE4u: goto L_47042FE4; 3285 case 0x47042FE6u: goto L_47042FE6; 3286 case 0x47042FE9u: goto L_47042FE9; 3287 case 0x47042FEAu: goto L_47042FEA; 3288 case 0x47042FEBu: goto L_47042FEB; 3289 case 0x47042FF1u: goto L_47042FF1; 3290 case 0x47042FF4u: goto L_47042FF4; 3291 case 0x47042FF6u: goto L_47042FF6; 3292 case 0x47042FF8u: goto L_47042FF8; 3293 case 0x47042FFAu: goto L_47042FFA; 3294 case 0x47042FFCu: goto L_47042FFC; 3295 case 0x47042FFEu: goto L_47042FFE; 3296 case 0x47043001u: goto L_47043001; 3297 case 0x47043004u: goto L_47043004; 3298 case 0x47043006u: goto L_47043006; 3299 case 0x47043008u: goto L_47043008; 3300 case 0x4704300Eu: goto L_4704300E; 3301 case 0x47043015u: goto L_47043015; 3302 case 0x47043017u: goto L_47043017; 3303 case 0x4704301Du: goto L_4704301D; 3304 case 0x4704301Fu: goto L_4704301F; 3305 case 0x47043021u: goto L_47043021; 3306 case 0x47043027u: goto L_47043027; 3307 case 0x47043029u: goto L_47043029; 3308 case 0x4704302Bu: goto L_4704302B; 3309 case 0x47043031u: goto L_47043031; 3310 case 0x47043033u: goto L_47043033; 3311 case 0x47043035u: goto L_47043035; 3312 case 0x4704303Bu: goto L_4704303B; 3313 case 0x4704303Fu: goto L_4704303F; 3314 case 0x47043042u: goto L_47043042; 3315 case 0x47043045u: goto L_47043045; 3316 case 0x47043049u: goto L_47043049; 3317 case 0x4704304Bu: goto L_4704304B; 3318 case 0x47043051u: goto L_47043051; 3319 case 0x47043057u: goto L_47043057; 3320 case 0x47043059u: goto L_47043059; 3321 case 0x4704305Du: goto L_4704305D; 3322 case 0x4704305Eu: goto L_4704305E; 3323 case 0x47043060u: goto L_47043060; 3324 case 0x47043065u: goto L_47043065; 3325 case 0x47043066u: goto L_47043066; 3326 case 0x4704306Cu: goto L_4704306C; 3327 case 0x4704306Eu: goto L_4704306E; 3328 case 0x47043070u: goto L_47043070; 3329 case 0x47043075u: goto L_47043075; 3330 case 0x47043077u: goto L_47043077; 3331 case 0x4704307Bu: goto L_4704307B; 3332 case 0x4704307Fu: goto L_4704307F; 3333 case 0x47043081u: goto L_47043081; 3334 case 0x47043083u: goto L_47043083; 3335 case 0x47043087u: goto L_47043087; 3336 case 0x4704308Du: goto L_4704308D; 3337 case 0x47043092u: goto L_47043092; 3338 case 0x47043094u: goto L_47043094; 3339 case 0x47043096u: goto L_47043096; 3340 case 0x47043098u: goto L_47043098; 3341 case 0x4704309Au: goto L_4704309A; 3342 case 0x4704309Du: goto L_4704309D; 3343 case 0x470430A0u: goto L_470430A0; 3344 case 0x470430A2u: goto L_470430A2; 3345 case 0x470430A4u: goto L_470430A4; 3346 case 0x470430AAu: goto L_470430AA; 3347 case 0x470430B1u: goto L_470430B1; 3348 case 0x470430B3u: goto L_470430B3; 3349 case 0x470430B9u: goto L_470430B9; 3350 case 0x470430BBu: goto L_470430BB; 3351 case 0x470430BDu: goto L_470430BD; 3352 case 0x470430C3u: goto L_470430C3; 3353 case 0x470430C5u: goto L_470430C5; 3354 case 0x470430C7u: goto L_470430C7; 3355 case 0x470430CDu: goto L_470430CD; 3356 case 0x470430CFu: goto L_470430CF; 3357 case 0x470430D1u: goto L_470430D1; 3358 case 0x470430D7u: goto L_470430D7; 3359 case 0x470430D9u: goto L_470430D9; 3360 case 0x470430DBu: goto L_470430DB; 3361 case 0x470430DDu: goto L_470430DD; 3362 case 0x470430DFu: goto L_470430DF; 3363 case 0x470430E1u: goto L_470430E1; 3364 case 0x470430E3u: goto L_470430E3; 3365 case 0x470430E5u: goto L_470430E5; 3366 case 0x470430E7u: goto L_470430E7; 3367 case 0x470430ECu: goto L_470430EC; 3368 case 0x470430EEu: goto L_470430EE; 3369 case 0x470430F0u: goto L_470430F0; 3370 case 0x470430F5u: goto L_470430F5; 3371 case 0x470430F6u: goto L_470430F6; 3372 case 0x470430F8u: goto L_470430F8; 3373 case 0x470430FDu: goto L_470430FD; 3374 case 0x470430FEu: goto L_470430FE; 3375 case 0x47043100u: goto L_47043100; 3376 case 0x47043105u: goto L_47043105; 3377 case 0x47043106u: goto L_47043106; 3378 case 0x47043107u: goto L_47043107; 3379 case 0x47043109u: goto L_47043109; 3380 case 0x4704310Eu: goto L_4704310E; 3381 case 0x47043113u: goto L_47043113; 3382 case 0x47043115u: goto L_47043115; 3383 case 0x4704311Au: goto L_4704311A; 3384 case 0x47043120u: goto L_47043120; 3385 case 0x47043121u: goto L_47043121; 3386 case 0x47043126u: goto L_47043126; 3387 case 0x4704312Bu: goto L_4704312B; 3388 case 0x4704312Cu: goto L_4704312C; 3389 case 0x47043131u: goto L_47043131; 3390 case 0x47043134u: goto L_47043134; 3391 case 0x47043135u: goto L_47043135; 3392 case 0x47043136u: goto L_47043136; 3393 case 0x47043137u: goto L_47043137; 3394 case 0x4704313Au: goto L_4704313A; 3395 case 0x4704313Bu: goto L_4704313B; 3396 case 0x4704313Eu: goto L_4704313E; 3397 case 0x47043141u: goto L_47043141; 3398 case 0x47043145u: goto L_47043145; 3399 case 0x47043147u: goto L_47043147; 3400 case 0x47043148u: goto L_47043148; 3401 case 0x47043149u: goto L_47043149; 3402 case 0x4704314Au: goto L_4704314A; 3403 case 0x4704314Bu: goto L_4704314B; 3404 case 0x4704314Du: goto L_4704314D; 3405 case 0x4704314Fu: goto L_4704314F; 3406 case 0x47043150u: goto L_47043150; 3407 case 0x47043153u: goto L_47043153; 3408 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3409 } 3410 RECOMP_REGS_OUT(); 3411 } 3412 3413 void sub_47042FDC(void) { 3414 int _fpu_cmp = 0; 3415 uint32_t _cf = 0; 3416 int _df = 1; 3417 uint32_t _flag_k = FK_NONE; 3418 uint32_t _flag_a = 0, _flag_b = 0; 3419 uint32_t _itail_tgt = 0; 3420 RECOMP_REGS_LOCALS 3421 RECOMP_ENTER(0x47042FDCu); 3422 3423 L_47042FDC: 3424 eax = MEM32(ebx + 0x120); /* 0x47042FDC: mov eax, dword ptr [ebx + 0x120] */ 3425 L_47042FE2: 3426 PUSH32(esp, 2); /* 0x47042FE2: push 2 */ 3427 L_47042FE4: 3428 PUSH32(esp, 0); /* 0x47042FE4: push 0 */ 3429 L_47042FE6: 3430 ecx = esi + (-0x1); /* 0x47042FE6: lea ecx, [esi - 1] */ 3431 L_47042FE9: 3432 PUSH32(esp, ecx); /* 0x47042FE9: push ecx */ 3433 L_47042FEA: 3434 PUSH32(esp, eax); /* 0x47042FEA: push eax */ 3435 L_47042FEB: 3436 RECOMP_ICALL(MEM32(0x470AC178)); /* 0x47042FEB: call dword ptr [0x470ac178] */ 3437 RECOMP_FLAGS_IN(); 3438 L_47042FF1: 3439 /* cmp eax, 0xFFFFFFFFu */ /* 0x47042FF1: cmp eax, -1 */ 3440 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 3441 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3442 _flag_k = FK_CMP; 3443 L_47042FF4: 3444 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47043042; /* 0x47042FF4: jne 0x47043042 */ 3445 L_47042FF6: 3446 RECOMP_ICALL(edi); /* 0x47042FF6: call edi */ 3447 RECOMP_FLAGS_IN(); 3448 L_47042FF8: 3449 esi = eax; /* 0x47042FF8: mov esi, eax */ 3450 L_47042FFA: 3451 RECOMP_ICALL(ebp); /* 0x47042FFA: call ebp */ 3452 RECOMP_FLAGS_IN(); 3453 L_47042FFC: 3454 MEM32(esi) = eax; /* 0x47042FFC: mov dword ptr [esi], eax */ 3455 L_47042FFE: 3456 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu); 3457 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3458 eax = eax + 0xFFFFFFFDu; /* 0x47042FFE: add eax, -3 */ 3459 _flag_k = FK_ADD; 3460 L_47043001: 3461 /* cmp eax, 0x4Du */ /* 0x47043001: cmp eax, 0x4d */ 3462 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Du); 3463 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3464 _flag_k = FK_CMP; 3465 L_47043004: 3466 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_4704303B; /* 0x47043004: ja 0x4704303b */ 3467 L_47043006: 3468 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3469 edx = 0; /* 0x47043006: xor edx, edx */ 3470 _cf = 0; 3471 _flag_k = FK_TEST; 3472 L_47043008: 3473 SET_LO8(edx, MEM8(eax + 0x4704316C)); /* 0x47043008: mov dl, byte ptr [eax + 0x4704316c] */ 3474 L_4704300E: 3475 { _itail_tgt = (uint32_t)(MEM32(edx * 4 + 0x47043158)); goto _ljump; } 3476 L_47043015: 3477 RECOMP_ICALL(edi); /* 0x47043015: call edi */ 3478 RECOMP_FLAGS_IN(); 3479 L_47043017: 3480 MEM32(eax) = 0xCu; /* 0x47043017: mov dword ptr [eax], 0xc */ 3481 L_4704301D: 3482 goto L_4704303B; /* 0x4704301D: jmp 0x4704303b */ 3483 L_4704301F: 3484 RECOMP_ICALL(edi); /* 0x4704301F: call edi */ 3485 RECOMP_FLAGS_IN(); 3486 L_47043021: 3487 MEM32(eax) = 0x11u; /* 0x47043021: mov dword ptr [eax], 0x11 */ 3488 L_47043027: 3489 goto L_4704303B; /* 0x47043027: jmp 0x4704303b */ 3490 L_47043029: 3491 RECOMP_ICALL(edi); /* 0x47043029: call edi */ 3492 RECOMP_FLAGS_IN(); 3493 L_4704302B: 3494 MEM32(eax) = 0xDu; /* 0x4704302B: mov dword ptr [eax], 0xd */ 3495 L_47043031: 3496 goto L_4704303B; /* 0x47043031: jmp 0x4704303b */ 3497 L_47043033: 3498 RECOMP_ICALL(edi); /* 0x47043033: call edi */ 3499 RECOMP_FLAGS_IN(); 3500 L_47043035: 3501 MEM32(eax) = 2; /* 0x47043035: mov dword ptr [eax], 2 */ 3502 L_4704303B: 3503 esi = MEM32(esp + 0x10); /* 0x4704303B: mov esi, dword ptr [esp + 0x10] */ 3504 L_4704303F: 3505 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3506 eax = eax | 0xFFFFFFFFu; /* 0x4704303F: or eax, 0xffffffff */ 3507 _cf = 0; 3508 _flag_k = FK_TEST; 3509 L_47043042: 3510 /* cmp eax, 0xFFFFFFFFu */ /* 0x47043042: cmp eax, -1 */ 3511 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 3512 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3513 _flag_k = FK_CMP; 3514 L_47043045: 3515 ecx = MEM32(esp + 0x24); /* 0x47043045: mov ecx, dword ptr [esp + 0x24] */ 3516 L_47043049: 3517 MEM32(ecx) = eax; /* 0x47043049: mov dword ptr [ecx], eax */ 3518 L_4704304B: 3519 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_470430D7; /* 0x4704304B: je 0x470430d7 */ 3520 L_47043051: 3521 eax = MEM32(ebx + 0x120); /* 0x47043051: mov eax, dword ptr [ebx + 0x120] */ 3522 L_47043057: 3523 PUSH32(esp, 0); /* 0x47043057: push 0 */ 3524 L_47043059: 3525 edx = esp + 0x1C; /* 0x47043059: lea edx, [esp + 0x1c] */ 3526 L_4704305D: 3527 PUSH32(esp, edx); /* 0x4704305D: push edx */ 3528 L_4704305E: 3529 PUSH32(esp, 1); /* 0x4704305E: push 1 */ 3530 L_47043060: 3531 PUSH32(esp, 0x4710DE90u); /* 0x47043060: push 0x4710de90 */ 3532 L_47043065: 3533 PUSH32(esp, eax); /* 0x47043065: push eax */ 3534 L_47043066: 3535 RECOMP_ICALL(MEM32(0x470AC114)); /* 0x47043066: call dword ptr [0x470ac114] */ 3536 RECOMP_FLAGS_IN(); 3537 L_4704306C: 3538 /* test eax, eax */ /* 0x4704306C: test eax, eax */ 3539 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3540 _cf = 0; 3541 _flag_k = FK_TEST; 3542 L_4704306E: 3543 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47043092; /* 0x4704306E: je 0x47043092 */ 3544 L_47043070: 3545 /* cmp MEM32(esp + 0x18), 0xFFFFFFFFu */ /* 0x47043070: cmp dword ptr [esp + 0x18], -1 */ 3546 _flag_a = (uint32_t)(MEM32(esp + 0x18)); _flag_b = (uint32_t)(0xFFFFFFFFu); 3547 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3548 _flag_k = FK_CMP; 3549 L_47043075: 3550 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_470430D7; /* 0x47043075: je 0x470430d7 */ 3551 L_47043077: 3552 eax = MEM32(esp + 0x14); /* 0x47043077: mov eax, dword ptr [esp + 0x14] */ 3553 L_4704307B: 3554 ecx = MEM32(esp + 0x20); /* 0x4704307B: mov ecx, dword ptr [esp + 0x20] */ 3555 L_4704307F: 3556 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 3557 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3558 eax = eax + esi; /* 0x4704307F: add eax, esi */ 3559 _flag_k = FK_ADD; 3560 L_47043081: 3561 /* cmp eax, ecx */ /* 0x47043081: cmp eax, ecx */ 3562 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3563 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3564 _flag_k = FK_CMP; 3565 L_47043083: 3566 MEM32(esp + 0x14) = eax; /* 0x47043083: mov dword ptr [esp + 0x14], eax */ 3567 L_47043087: 3568 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_AE, _cf)) goto L_47043141; /* 0x47043087: jae 0x47043141 */ 3569 L_4704308D: 3570 RECOMP_BACKEDGE(); 3571 goto L_47042FDC; /* 0x4704308D: jmp 0x47042fdc */ 3572 L_47043092: 3573 RECOMP_ICALL(edi); /* 0x47043092: call edi */ 3574 RECOMP_FLAGS_IN(); 3575 L_47043094: 3576 esi = eax; /* 0x47043094: mov esi, eax */ 3577 L_47043096: 3578 RECOMP_ICALL(ebp); /* 0x47043096: call ebp */ 3579 RECOMP_FLAGS_IN(); 3580 L_47043098: 3581 MEM32(esi) = eax; /* 0x47043098: mov dword ptr [esi], eax */ 3582 L_4704309A: 3583 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu); 3584 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3585 eax = eax + 0xFFFFFFFDu; /* 0x4704309A: add eax, -3 */ 3586 _flag_k = FK_ADD; 3587 L_4704309D: 3588 /* cmp eax, 0x4Du */ /* 0x4704309D: cmp eax, 0x4d */ 3589 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Du); 3590 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3591 _flag_k = FK_CMP; 3592 L_470430A0: 3593 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_470430D7; /* 0x470430A0: ja 0x470430d7 */ 3594 L_470430A2: 3595 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3596 ecx = 0; /* 0x470430A2: xor ecx, ecx */ 3597 _cf = 0; 3598 _flag_k = FK_TEST; 3599 L_470430A4: 3600 SET_LO8(ecx, MEM8(eax + 0x470431D0)); /* 0x470430A4: mov cl, byte ptr [eax + 0x470431d0] */ 3601 L_470430AA: 3602 { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x470431BC)); goto _ljump; } 3603 L_470430B1: 3604 RECOMP_ICALL(edi); /* 0x470430B1: call edi */ 3605 RECOMP_FLAGS_IN(); 3606 L_470430B3: 3607 MEM32(eax) = 0xCu; /* 0x470430B3: mov dword ptr [eax], 0xc */ 3608 L_470430B9: 3609 goto L_470430D7; /* 0x470430B9: jmp 0x470430d7 */ 3610 L_470430BB: 3611 RECOMP_ICALL(edi); /* 0x470430BB: call edi */ 3612 RECOMP_FLAGS_IN(); 3613 L_470430BD: 3614 MEM32(eax) = 0x11u; /* 0x470430BD: mov dword ptr [eax], 0x11 */ 3615 L_470430C3: 3616 goto L_470430D7; /* 0x470430C3: jmp 0x470430d7 */ 3617 L_470430C5: 3618 RECOMP_ICALL(edi); /* 0x470430C5: call edi */ 3619 RECOMP_FLAGS_IN(); 3620 L_470430C7: 3621 MEM32(eax) = 0xDu; /* 0x470430C7: mov dword ptr [eax], 0xd */ 3622 L_470430CD: 3623 goto L_470430D7; /* 0x470430CD: jmp 0x470430d7 */ 3624 L_470430CF: 3625 RECOMP_ICALL(edi); /* 0x470430CF: call edi */ 3626 RECOMP_FLAGS_IN(); 3627 L_470430D1: 3628 MEM32(eax) = 2; /* 0x470430D1: mov dword ptr [eax], 2 */ 3629 L_470430D7: 3630 RECOMP_ICALL(ebp); /* 0x470430D7: call ebp */ 3631 RECOMP_FLAGS_IN(); 3632 L_470430D9: 3633 esi = eax; /* 0x470430D9: mov esi, eax */ 3634 L_470430DB: 3635 RECOMP_ICALL(edi); /* 0x470430DB: call edi */ 3636 RECOMP_FLAGS_IN(); 3637 L_470430DD: 3638 eax = MEM32(eax); /* 0x470430DD: mov eax, dword ptr [eax] */ 3639 L_470430DF: 3640 /* test eax, eax */ /* 0x470430DF: test eax, eax */ 3641 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3642 _cf = 0; 3643 _flag_k = FK_TEST; 3644 L_470430E1: 3645 edi = esi; /* 0x470430E1: mov edi, esi */ 3646 L_470430E3: 3647 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_470430E7; /* 0x470430E3: je 0x470430e7 */ 3648 L_470430E5: 3649 edi = eax; /* 0x470430E5: mov edi, eax */ 3650 L_470430E7: 3651 RECOMP_ICALL(0x47039020u); /* 0x470430E7: call 0x47039020 */ /* not lifted */ 3652 RECOMP_FLAGS_IN(); 3653 L_470430EC: 3654 esi = eax; /* 0x470430EC: mov esi, eax */ 3655 L_470430EE: 3656 ecx = esi; /* 0x470430EE: mov ecx, esi */ 3657 L_470430F0: 3658 RECOMP_ICALL(0x4703B210u); /* 0x470430F0: call 0x4703b210 */ /* not lifted */ 3659 RECOMP_FLAGS_IN(); 3660 L_470430F5: 3661 PUSH32(esp, eax); /* 0x470430F5: push eax */ 3662 L_470430F6: 3663 ecx = esi; /* 0x470430F6: mov ecx, esi */ 3664 L_470430F8: 3665 RECOMP_ICALL(0x4703B240u); /* 0x470430F8: call 0x4703b240 */ /* not lifted */ 3666 RECOMP_FLAGS_IN(); 3667 L_470430FD: 3668 PUSH32(esp, eax); /* 0x470430FD: push eax */ 3669 L_470430FE: 3670 ecx = esi; /* 0x470430FE: mov ecx, esi */ 3671 L_47043100: 3672 RECOMP_ICALL(0x4703B080u); /* 0x47043100: call 0x4703b080 */ /* not lifted */ 3673 RECOMP_FLAGS_IN(); 3674 L_47043105: 3675 PUSH32(esp, eax); /* 0x47043105: push eax */ 3676 L_47043106: 3677 PUSH32(esp, edi); /* 0x47043106: push edi */ 3678 L_47043107: 3679 PUSH32(esp, 0xFFFFFFFFu); /* 0x47043107: push -1 */ 3680 L_47043109: 3681 PUSH32(esp, 0xF9u); /* 0x47043109: push 0xf9 */ 3682 L_4704310E: 3683 PUSH32(esp, 0x4710815Cu); /* 0x4704310E: push 0x4710815c */ 3684 L_47043113: 3685 ecx = esi; /* 0x47043113: mov ecx, esi */ 3686 L_47043115: 3687 RECOMP_ICALL(0x4703A340u); /* 0x47043115: call 0x4703a340 */ /* not lifted */ 3688 RECOMP_FLAGS_IN(); 3689 L_4704311A: 3690 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x13Cu); 3691 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3692 ebx = ebx + 0x13Cu; /* 0x4704311A: add ebx, 0x13c */ 3693 _flag_k = FK_ADD; 3694 L_47043120: 3695 PUSH32(esp, ebx); /* 0x47043120: push ebx */ 3696 L_47043121: 3697 PUSH32(esp, 0x47105B0Cu); /* 0x47043121: push 0x47105b0c */ 3698 L_47043126: 3699 PUSH32(esp, 0x80u); /* 0x47043126: push 0x80 */ 3700 L_4704312B: 3701 PUSH32(esp, esi); /* 0x4704312B: push esi */ 3702 L_4704312C: 3703 RECOMP_ICALL(0x47039830u); /* 0x4704312C: call 0x47039830 */ /* not lifted */ 3704 RECOMP_FLAGS_IN(); 3705 L_47043131: 3706 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3707 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3708 esp = esp + 0x10u; /* 0x47043131: add esp, 0x10 */ 3709 _flag_k = FK_ADD; 3710 L_47043134: 3711 edi = POP32_VAL(esp); /* 0x47043134: pop edi */ 3712 L_47043135: 3713 esi = POP32_VAL(esp); /* 0x47043135: pop esi */ 3714 L_47043136: 3715 ebp = POP32_VAL(esp); /* 0x47043136: pop ebp */ 3716 L_47043137: 3717 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3718 eax = eax | 0xFFFFFFFFu; /* 0x47043137: or eax, 0xffffffff */ 3719 _cf = 0; 3720 _flag_k = FK_TEST; 3721 L_4704313A: 3722 ebx = POP32_VAL(esp); /* 0x4704313A: pop ebx */ 3723 L_4704313B: 3724 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3725 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3726 esp = esp + 0xCu; /* 0x4704313B: add esp, 0xc */ 3727 _flag_k = FK_ADD; 3728 L_4704313E: 3729 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4704313E: ret 8 */ 3730 L_47043141: 3731 eax = MEM32(esp + 0x24); /* 0x47043141: mov eax, dword ptr [esp + 0x24] */ 3732 L_47043145: 3733 ecx = MEM32(eax); /* 0x47043145: mov ecx, dword ptr [eax] */ 3734 L_47043147: 3735 edi = POP32_VAL(esp); /* 0x47043147: pop edi */ 3736 L_47043148: 3737 esi = POP32_VAL(esp); /* 0x47043148: pop esi */ 3738 L_47043149: 3739 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3740 ecx = ecx + 1; /* 0x47043149: inc ecx */ 3741 _flag_k = FK_INC; 3742 L_4704314A: 3743 ebp = POP32_VAL(esp); /* 0x4704314A: pop ebp */ 3744 L_4704314B: 3745 MEM32(eax) = ecx; /* 0x4704314B: mov dword ptr [eax], ecx */ 3746 L_4704314D: 3747 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3748 eax = 0; /* 0x4704314D: xor eax, eax */ 3749 _cf = 0; 3750 _flag_k = FK_TEST; 3751 L_4704314F: 3752 ebx = POP32_VAL(esp); /* 0x4704314F: pop ebx */ 3753 L_47043150: 3754 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3755 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3756 esp = esp + 0xCu; /* 0x47043150: add esp, 0xc */ 3757 _flag_k = FK_ADD; 3758 L_47043153: 3759 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47043153: ret 8 */ 3760 _ljump: 3761 switch (_itail_tgt) { 3762 case 0x47042FDCu: goto L_47042FDC; 3763 case 0x47042FE2u: goto L_47042FE2; 3764 case 0x47042FE4u: goto L_47042FE4; 3765 case 0x47042FE6u: goto L_47042FE6; 3766 case 0x47042FE9u: goto L_47042FE9; 3767 case 0x47042FEAu: goto L_47042FEA; 3768 case 0x47042FEBu: goto L_47042FEB; 3769 case 0x47042FF1u: goto L_47042FF1; 3770 case 0x47042FF4u: goto L_47042FF4; 3771 case 0x47042FF6u: goto L_47042FF6; 3772 case 0x47042FF8u: goto L_47042FF8; 3773 case 0x47042FFAu: goto L_47042FFA; 3774 case 0x47042FFCu: goto L_47042FFC; 3775 case 0x47042FFEu: goto L_47042FFE; 3776 case 0x47043001u: goto L_47043001; 3777 case 0x47043004u: goto L_47043004; 3778 case 0x47043006u: goto L_47043006; 3779 case 0x47043008u: goto L_47043008; 3780 case 0x4704300Eu: goto L_4704300E; 3781 case 0x47043015u: goto L_47043015; 3782 case 0x47043017u: goto L_47043017; 3783 case 0x4704301Du: goto L_4704301D; 3784 case 0x4704301Fu: goto L_4704301F; 3785 case 0x47043021u: goto L_47043021; 3786 case 0x47043027u: goto L_47043027; 3787 case 0x47043029u: goto L_47043029; 3788 case 0x4704302Bu: goto L_4704302B; 3789 case 0x47043031u: goto L_47043031; 3790 case 0x47043033u: goto L_47043033; 3791 case 0x47043035u: goto L_47043035; 3792 case 0x4704303Bu: goto L_4704303B; 3793 case 0x4704303Fu: goto L_4704303F; 3794 case 0x47043042u: goto L_47043042; 3795 case 0x47043045u: goto L_47043045; 3796 case 0x47043049u: goto L_47043049; 3797 case 0x4704304Bu: goto L_4704304B; 3798 case 0x47043051u: goto L_47043051; 3799 case 0x47043057u: goto L_47043057; 3800 case 0x47043059u: goto L_47043059; 3801 case 0x4704305Du: goto L_4704305D; 3802 case 0x4704305Eu: goto L_4704305E; 3803 case 0x47043060u: goto L_47043060; 3804 case 0x47043065u: goto L_47043065; 3805 case 0x47043066u: goto L_47043066; 3806 case 0x4704306Cu: goto L_4704306C; 3807 case 0x4704306Eu: goto L_4704306E; 3808 case 0x47043070u: goto L_47043070; 3809 case 0x47043075u: goto L_47043075; 3810 case 0x47043077u: goto L_47043077; 3811 case 0x4704307Bu: goto L_4704307B; 3812 case 0x4704307Fu: goto L_4704307F; 3813 case 0x47043081u: goto L_47043081; 3814 case 0x47043083u: goto L_47043083; 3815 case 0x47043087u: goto L_47043087; 3816 case 0x4704308Du: goto L_4704308D; 3817 case 0x47043092u: goto L_47043092; 3818 case 0x47043094u: goto L_47043094; 3819 case 0x47043096u: goto L_47043096; 3820 case 0x47043098u: goto L_47043098; 3821 case 0x4704309Au: goto L_4704309A; 3822 case 0x4704309Du: goto L_4704309D; 3823 case 0x470430A0u: goto L_470430A0; 3824 case 0x470430A2u: goto L_470430A2; 3825 case 0x470430A4u: goto L_470430A4; 3826 case 0x470430AAu: goto L_470430AA; 3827 case 0x470430B1u: goto L_470430B1; 3828 case 0x470430B3u: goto L_470430B3; 3829 case 0x470430B9u: goto L_470430B9; 3830 case 0x470430BBu: goto L_470430BB; 3831 case 0x470430BDu: goto L_470430BD; 3832 case 0x470430C3u: goto L_470430C3; 3833 case 0x470430C5u: goto L_470430C5; 3834 case 0x470430C7u: goto L_470430C7; 3835 case 0x470430CDu: goto L_470430CD; 3836 case 0x470430CFu: goto L_470430CF; 3837 case 0x470430D1u: goto L_470430D1; 3838 case 0x470430D7u: goto L_470430D7; 3839 case 0x470430D9u: goto L_470430D9; 3840 case 0x470430DBu: goto L_470430DB; 3841 case 0x470430DDu: goto L_470430DD; 3842 case 0x470430DFu: goto L_470430DF; 3843 case 0x470430E1u: goto L_470430E1; 3844 case 0x470430E3u: goto L_470430E3; 3845 case 0x470430E5u: goto L_470430E5; 3846 case 0x470430E7u: goto L_470430E7; 3847 case 0x470430ECu: goto L_470430EC; 3848 case 0x470430EEu: goto L_470430EE; 3849 case 0x470430F0u: goto L_470430F0; 3850 case 0x470430F5u: goto L_470430F5; 3851 case 0x470430F6u: goto L_470430F6; 3852 case 0x470430F8u: goto L_470430F8; 3853 case 0x470430FDu: goto L_470430FD; 3854 case 0x470430FEu: goto L_470430FE; 3855 case 0x47043100u: goto L_47043100; 3856 case 0x47043105u: goto L_47043105; 3857 case 0x47043106u: goto L_47043106; 3858 case 0x47043107u: goto L_47043107; 3859 case 0x47043109u: goto L_47043109; 3860 case 0x4704310Eu: goto L_4704310E; 3861 case 0x47043113u: goto L_47043113; 3862 case 0x47043115u: goto L_47043115; 3863 case 0x4704311Au: goto L_4704311A; 3864 case 0x47043120u: goto L_47043120; 3865 case 0x47043121u: goto L_47043121; 3866 case 0x47043126u: goto L_47043126; 3867 case 0x4704312Bu: goto L_4704312B; 3868 case 0x4704312Cu: goto L_4704312C; 3869 case 0x47043131u: goto L_47043131; 3870 case 0x47043134u: goto L_47043134; 3871 case 0x47043135u: goto L_47043135; 3872 case 0x47043136u: goto L_47043136; 3873 case 0x47043137u: goto L_47043137; 3874 case 0x4704313Au: goto L_4704313A; 3875 case 0x4704313Bu: goto L_4704313B; 3876 case 0x4704313Eu: goto L_4704313E; 3877 case 0x47043141u: goto L_47043141; 3878 case 0x47043145u: goto L_47043145; 3879 case 0x47043147u: goto L_47043147; 3880 case 0x47043148u: goto L_47043148; 3881 case 0x47043149u: goto L_47043149; 3882 case 0x4704314Au: goto L_4704314A; 3883 case 0x4704314Bu: goto L_4704314B; 3884 case 0x4704314Du: goto L_4704314D; 3885 case 0x4704314Fu: goto L_4704314F; 3886 case 0x47043150u: goto L_47043150; 3887 case 0x47043153u: goto L_47043153; 3888 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3889 } 3890 RECOMP_REGS_OUT(); 3891 } 3892 3893 void sub_4704303B(void) { 3894 int _fpu_cmp = 0; 3895 uint32_t _cf = 0; 3896 int _df = 1; 3897 uint32_t _flag_k = FK_NONE; 3898 uint32_t _flag_a = 0, _flag_b = 0; 3899 uint32_t _itail_tgt = 0; 3900 RECOMP_REGS_LOCALS 3901 RECOMP_ENTER(0x4704303Bu); 3902 3903 goto L_4704303B; 3904 L_47042FDC: 3905 eax = MEM32(ebx + 0x120); /* 0x47042FDC: mov eax, dword ptr [ebx + 0x120] */ 3906 L_47042FE2: 3907 PUSH32(esp, 2); /* 0x47042FE2: push 2 */ 3908 L_47042FE4: 3909 PUSH32(esp, 0); /* 0x47042FE4: push 0 */ 3910 L_47042FE6: 3911 ecx = esi + (-0x1); /* 0x47042FE6: lea ecx, [esi - 1] */ 3912 L_47042FE9: 3913 PUSH32(esp, ecx); /* 0x47042FE9: push ecx */ 3914 L_47042FEA: 3915 PUSH32(esp, eax); /* 0x47042FEA: push eax */ 3916 L_47042FEB: 3917 RECOMP_ICALL(MEM32(0x470AC178)); /* 0x47042FEB: call dword ptr [0x470ac178] */ 3918 RECOMP_FLAGS_IN(); 3919 L_47042FF1: 3920 /* cmp eax, 0xFFFFFFFFu */ /* 0x47042FF1: cmp eax, -1 */ 3921 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 3922 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3923 _flag_k = FK_CMP; 3924 L_47042FF4: 3925 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47043042; /* 0x47042FF4: jne 0x47043042 */ 3926 L_47042FF6: 3927 RECOMP_ICALL(edi); /* 0x47042FF6: call edi */ 3928 RECOMP_FLAGS_IN(); 3929 L_47042FF8: 3930 esi = eax; /* 0x47042FF8: mov esi, eax */ 3931 L_47042FFA: 3932 RECOMP_ICALL(ebp); /* 0x47042FFA: call ebp */ 3933 RECOMP_FLAGS_IN(); 3934 L_47042FFC: 3935 MEM32(esi) = eax; /* 0x47042FFC: mov dword ptr [esi], eax */ 3936 L_47042FFE: 3937 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu); 3938 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3939 eax = eax + 0xFFFFFFFDu; /* 0x47042FFE: add eax, -3 */ 3940 _flag_k = FK_ADD; 3941 L_47043001: 3942 /* cmp eax, 0x4Du */ /* 0x47043001: cmp eax, 0x4d */ 3943 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Du); 3944 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3945 _flag_k = FK_CMP; 3946 L_47043004: 3947 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_4704303B; /* 0x47043004: ja 0x4704303b */ 3948 L_47043006: 3949 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3950 edx = 0; /* 0x47043006: xor edx, edx */ 3951 _cf = 0; 3952 _flag_k = FK_TEST; 3953 L_47043008: 3954 SET_LO8(edx, MEM8(eax + 0x4704316C)); /* 0x47043008: mov dl, byte ptr [eax + 0x4704316c] */ 3955 L_4704300E: 3956 { _itail_tgt = (uint32_t)(MEM32(edx * 4 + 0x47043158)); goto _ljump; } 3957 L_47043015: 3958 RECOMP_ICALL(edi); /* 0x47043015: call edi */ 3959 RECOMP_FLAGS_IN(); 3960 L_47043017: 3961 MEM32(eax) = 0xCu; /* 0x47043017: mov dword ptr [eax], 0xc */ 3962 L_4704301D: 3963 goto L_4704303B; /* 0x4704301D: jmp 0x4704303b */ 3964 L_4704301F: 3965 RECOMP_ICALL(edi); /* 0x4704301F: call edi */ 3966 RECOMP_FLAGS_IN(); 3967 L_47043021: 3968 MEM32(eax) = 0x11u; /* 0x47043021: mov dword ptr [eax], 0x11 */ 3969 L_47043027: 3970 goto L_4704303B; /* 0x47043027: jmp 0x4704303b */ 3971 L_47043029: 3972 RECOMP_ICALL(edi); /* 0x47043029: call edi */ 3973 RECOMP_FLAGS_IN(); 3974 L_4704302B: 3975 MEM32(eax) = 0xDu; /* 0x4704302B: mov dword ptr [eax], 0xd */ 3976 L_47043031: 3977 goto L_4704303B; /* 0x47043031: jmp 0x4704303b */ 3978 L_47043033: 3979 RECOMP_ICALL(edi); /* 0x47043033: call edi */ 3980 RECOMP_FLAGS_IN(); 3981 L_47043035: 3982 MEM32(eax) = 2; /* 0x47043035: mov dword ptr [eax], 2 */ 3983 L_4704303B: 3984 esi = MEM32(esp + 0x10); /* 0x4704303B: mov esi, dword ptr [esp + 0x10] */ 3985 L_4704303F: 3986 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3987 eax = eax | 0xFFFFFFFFu; /* 0x4704303F: or eax, 0xffffffff */ 3988 _cf = 0; 3989 _flag_k = FK_TEST; 3990 L_47043042: 3991 /* cmp eax, 0xFFFFFFFFu */ /* 0x47043042: cmp eax, -1 */ 3992 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 3993 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3994 _flag_k = FK_CMP; 3995 L_47043045: 3996 ecx = MEM32(esp + 0x24); /* 0x47043045: mov ecx, dword ptr [esp + 0x24] */ 3997 L_47043049: 3998 MEM32(ecx) = eax; /* 0x47043049: mov dword ptr [ecx], eax */ 3999 L_4704304B: 4000 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_470430D7; /* 0x4704304B: je 0x470430d7 */ 4001 L_47043051: 4002 eax = MEM32(ebx + 0x120); /* 0x47043051: mov eax, dword ptr [ebx + 0x120] */ 4003 L_47043057: 4004 PUSH32(esp, 0); /* 0x47043057: push 0 */ 4005 L_47043059: 4006 edx = esp + 0x1C; /* 0x47043059: lea edx, [esp + 0x1c] */ 4007 L_4704305D: 4008 PUSH32(esp, edx); /* 0x4704305D: push edx */ 4009 L_4704305E: 4010 PUSH32(esp, 1); /* 0x4704305E: push 1 */ 4011 L_47043060: 4012 PUSH32(esp, 0x4710DE90u); /* 0x47043060: push 0x4710de90 */ 4013 L_47043065: 4014 PUSH32(esp, eax); /* 0x47043065: push eax */ 4015 L_47043066: 4016 RECOMP_ICALL(MEM32(0x470AC114)); /* 0x47043066: call dword ptr [0x470ac114] */ 4017 RECOMP_FLAGS_IN(); 4018 L_4704306C: 4019 /* test eax, eax */ /* 0x4704306C: test eax, eax */ 4020 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4021 _cf = 0; 4022 _flag_k = FK_TEST; 4023 L_4704306E: 4024 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47043092; /* 0x4704306E: je 0x47043092 */ 4025 L_47043070: 4026 /* cmp MEM32(esp + 0x18), 0xFFFFFFFFu */ /* 0x47043070: cmp dword ptr [esp + 0x18], -1 */ 4027 _flag_a = (uint32_t)(MEM32(esp + 0x18)); _flag_b = (uint32_t)(0xFFFFFFFFu); 4028 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4029 _flag_k = FK_CMP; 4030 L_47043075: 4031 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_470430D7; /* 0x47043075: je 0x470430d7 */ 4032 L_47043077: 4033 eax = MEM32(esp + 0x14); /* 0x47043077: mov eax, dword ptr [esp + 0x14] */ 4034 L_4704307B: 4035 ecx = MEM32(esp + 0x20); /* 0x4704307B: mov ecx, dword ptr [esp + 0x20] */ 4036 L_4704307F: 4037 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 4038 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4039 eax = eax + esi; /* 0x4704307F: add eax, esi */ 4040 _flag_k = FK_ADD; 4041 L_47043081: 4042 /* cmp eax, ecx */ /* 0x47043081: cmp eax, ecx */ 4043 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4044 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4045 _flag_k = FK_CMP; 4046 L_47043083: 4047 MEM32(esp + 0x14) = eax; /* 0x47043083: mov dword ptr [esp + 0x14], eax */ 4048 L_47043087: 4049 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_AE, _cf)) goto L_47043141; /* 0x47043087: jae 0x47043141 */ 4050 L_4704308D: 4051 RECOMP_BACKEDGE(); 4052 goto L_47042FDC; /* 0x4704308D: jmp 0x47042fdc */ 4053 L_47043092: 4054 RECOMP_ICALL(edi); /* 0x47043092: call edi */ 4055 RECOMP_FLAGS_IN(); 4056 L_47043094: 4057 esi = eax; /* 0x47043094: mov esi, eax */ 4058 L_47043096: 4059 RECOMP_ICALL(ebp); /* 0x47043096: call ebp */ 4060 RECOMP_FLAGS_IN(); 4061 L_47043098: 4062 MEM32(esi) = eax; /* 0x47043098: mov dword ptr [esi], eax */ 4063 L_4704309A: 4064 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu); 4065 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4066 eax = eax + 0xFFFFFFFDu; /* 0x4704309A: add eax, -3 */ 4067 _flag_k = FK_ADD; 4068 L_4704309D: 4069 /* cmp eax, 0x4Du */ /* 0x4704309D: cmp eax, 0x4d */ 4070 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Du); 4071 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4072 _flag_k = FK_CMP; 4073 L_470430A0: 4074 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_470430D7; /* 0x470430A0: ja 0x470430d7 */ 4075 L_470430A2: 4076 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4077 ecx = 0; /* 0x470430A2: xor ecx, ecx */ 4078 _cf = 0; 4079 _flag_k = FK_TEST; 4080 L_470430A4: 4081 SET_LO8(ecx, MEM8(eax + 0x470431D0)); /* 0x470430A4: mov cl, byte ptr [eax + 0x470431d0] */ 4082 L_470430AA: 4083 { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x470431BC)); goto _ljump; } 4084 L_470430B1: 4085 RECOMP_ICALL(edi); /* 0x470430B1: call edi */ 4086 RECOMP_FLAGS_IN(); 4087 L_470430B3: 4088 MEM32(eax) = 0xCu; /* 0x470430B3: mov dword ptr [eax], 0xc */ 4089 L_470430B9: 4090 goto L_470430D7; /* 0x470430B9: jmp 0x470430d7 */ 4091 L_470430BB: 4092 RECOMP_ICALL(edi); /* 0x470430BB: call edi */ 4093 RECOMP_FLAGS_IN(); 4094 L_470430BD: 4095 MEM32(eax) = 0x11u; /* 0x470430BD: mov dword ptr [eax], 0x11 */ 4096 L_470430C3: 4097 goto L_470430D7; /* 0x470430C3: jmp 0x470430d7 */ 4098 L_470430C5: 4099 RECOMP_ICALL(edi); /* 0x470430C5: call edi */ 4100 RECOMP_FLAGS_IN(); 4101 L_470430C7: 4102 MEM32(eax) = 0xDu; /* 0x470430C7: mov dword ptr [eax], 0xd */ 4103 L_470430CD: 4104 goto L_470430D7; /* 0x470430CD: jmp 0x470430d7 */ 4105 L_470430CF: 4106 RECOMP_ICALL(edi); /* 0x470430CF: call edi */ 4107 RECOMP_FLAGS_IN(); 4108 L_470430D1: 4109 MEM32(eax) = 2; /* 0x470430D1: mov dword ptr [eax], 2 */ 4110 L_470430D7: 4111 RECOMP_ICALL(ebp); /* 0x470430D7: call ebp */ 4112 RECOMP_FLAGS_IN(); 4113 L_470430D9: 4114 esi = eax; /* 0x470430D9: mov esi, eax */ 4115 L_470430DB: 4116 RECOMP_ICALL(edi); /* 0x470430DB: call edi */ 4117 RECOMP_FLAGS_IN(); 4118 L_470430DD: 4119 eax = MEM32(eax); /* 0x470430DD: mov eax, dword ptr [eax] */ 4120 L_470430DF: 4121 /* test eax, eax */ /* 0x470430DF: test eax, eax */ 4122 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4123 _cf = 0; 4124 _flag_k = FK_TEST; 4125 L_470430E1: 4126 edi = esi; /* 0x470430E1: mov edi, esi */ 4127 L_470430E3: 4128 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_470430E7; /* 0x470430E3: je 0x470430e7 */ 4129 L_470430E5: 4130 edi = eax; /* 0x470430E5: mov edi, eax */ 4131 L_470430E7: 4132 RECOMP_ICALL(0x47039020u); /* 0x470430E7: call 0x47039020 */ /* not lifted */ 4133 RECOMP_FLAGS_IN(); 4134 L_470430EC: 4135 esi = eax; /* 0x470430EC: mov esi, eax */ 4136 L_470430EE: 4137 ecx = esi; /* 0x470430EE: mov ecx, esi */ 4138 L_470430F0: 4139 RECOMP_ICALL(0x4703B210u); /* 0x470430F0: call 0x4703b210 */ /* not lifted */ 4140 RECOMP_FLAGS_IN(); 4141 L_470430F5: 4142 PUSH32(esp, eax); /* 0x470430F5: push eax */ 4143 L_470430F6: 4144 ecx = esi; /* 0x470430F6: mov ecx, esi */ 4145 L_470430F8: 4146 RECOMP_ICALL(0x4703B240u); /* 0x470430F8: call 0x4703b240 */ /* not lifted */ 4147 RECOMP_FLAGS_IN(); 4148 L_470430FD: 4149 PUSH32(esp, eax); /* 0x470430FD: push eax */ 4150 L_470430FE: 4151 ecx = esi; /* 0x470430FE: mov ecx, esi */ 4152 L_47043100: 4153 RECOMP_ICALL(0x4703B080u); /* 0x47043100: call 0x4703b080 */ /* not lifted */ 4154 RECOMP_FLAGS_IN(); 4155 L_47043105: 4156 PUSH32(esp, eax); /* 0x47043105: push eax */ 4157 L_47043106: 4158 PUSH32(esp, edi); /* 0x47043106: push edi */ 4159 L_47043107: 4160 PUSH32(esp, 0xFFFFFFFFu); /* 0x47043107: push -1 */ 4161 L_47043109: 4162 PUSH32(esp, 0xF9u); /* 0x47043109: push 0xf9 */ 4163 L_4704310E: 4164 PUSH32(esp, 0x4710815Cu); /* 0x4704310E: push 0x4710815c */ 4165 L_47043113: 4166 ecx = esi; /* 0x47043113: mov ecx, esi */ 4167 L_47043115: 4168 RECOMP_ICALL(0x4703A340u); /* 0x47043115: call 0x4703a340 */ /* not lifted */ 4169 RECOMP_FLAGS_IN(); 4170 L_4704311A: 4171 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x13Cu); 4172 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4173 ebx = ebx + 0x13Cu; /* 0x4704311A: add ebx, 0x13c */ 4174 _flag_k = FK_ADD; 4175 L_47043120: 4176 PUSH32(esp, ebx); /* 0x47043120: push ebx */ 4177 L_47043121: 4178 PUSH32(esp, 0x47105B0Cu); /* 0x47043121: push 0x47105b0c */ 4179 L_47043126: 4180 PUSH32(esp, 0x80u); /* 0x47043126: push 0x80 */ 4181 L_4704312B: 4182 PUSH32(esp, esi); /* 0x4704312B: push esi */ 4183 L_4704312C: 4184 RECOMP_ICALL(0x47039830u); /* 0x4704312C: call 0x47039830 */ /* not lifted */ 4185 RECOMP_FLAGS_IN(); 4186 L_47043131: 4187 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4188 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4189 esp = esp + 0x10u; /* 0x47043131: add esp, 0x10 */ 4190 _flag_k = FK_ADD; 4191 L_47043134: 4192 edi = POP32_VAL(esp); /* 0x47043134: pop edi */ 4193 L_47043135: 4194 esi = POP32_VAL(esp); /* 0x47043135: pop esi */ 4195 L_47043136: 4196 ebp = POP32_VAL(esp); /* 0x47043136: pop ebp */ 4197 L_47043137: 4198 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4199 eax = eax | 0xFFFFFFFFu; /* 0x47043137: or eax, 0xffffffff */ 4200 _cf = 0; 4201 _flag_k = FK_TEST; 4202 L_4704313A: 4203 ebx = POP32_VAL(esp); /* 0x4704313A: pop ebx */ 4204 L_4704313B: 4205 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4206 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4207 esp = esp + 0xCu; /* 0x4704313B: add esp, 0xc */ 4208 _flag_k = FK_ADD; 4209 L_4704313E: 4210 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4704313E: ret 8 */ 4211 L_47043141: 4212 eax = MEM32(esp + 0x24); /* 0x47043141: mov eax, dword ptr [esp + 0x24] */ 4213 L_47043145: 4214 ecx = MEM32(eax); /* 0x47043145: mov ecx, dword ptr [eax] */ 4215 L_47043147: 4216 edi = POP32_VAL(esp); /* 0x47043147: pop edi */ 4217 L_47043148: 4218 esi = POP32_VAL(esp); /* 0x47043148: pop esi */ 4219 L_47043149: 4220 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4221 ecx = ecx + 1; /* 0x47043149: inc ecx */ 4222 _flag_k = FK_INC; 4223 L_4704314A: 4224 ebp = POP32_VAL(esp); /* 0x4704314A: pop ebp */ 4225 L_4704314B: 4226 MEM32(eax) = ecx; /* 0x4704314B: mov dword ptr [eax], ecx */ 4227 L_4704314D: 4228 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4229 eax = 0; /* 0x4704314D: xor eax, eax */ 4230 _cf = 0; 4231 _flag_k = FK_TEST; 4232 L_4704314F: 4233 ebx = POP32_VAL(esp); /* 0x4704314F: pop ebx */ 4234 L_47043150: 4235 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4236 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4237 esp = esp + 0xCu; /* 0x47043150: add esp, 0xc */ 4238 _flag_k = FK_ADD; 4239 L_47043153: 4240 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47043153: ret 8 */ 4241 _ljump: 4242 switch (_itail_tgt) { 4243 case 0x47042FDCu: goto L_47042FDC; 4244 case 0x47042FE2u: goto L_47042FE2; 4245 case 0x47042FE4u: goto L_47042FE4; 4246 case 0x47042FE6u: goto L_47042FE6; 4247 case 0x47042FE9u: goto L_47042FE9; 4248 case 0x47042FEAu: goto L_47042FEA; 4249 case 0x47042FEBu: goto L_47042FEB; 4250 case 0x47042FF1u: goto L_47042FF1; 4251 case 0x47042FF4u: goto L_47042FF4; 4252 case 0x47042FF6u: goto L_47042FF6; 4253 case 0x47042FF8u: goto L_47042FF8; 4254 case 0x47042FFAu: goto L_47042FFA; 4255 case 0x47042FFCu: goto L_47042FFC; 4256 case 0x47042FFEu: goto L_47042FFE; 4257 case 0x47043001u: goto L_47043001; 4258 case 0x47043004u: goto L_47043004; 4259 case 0x47043006u: goto L_47043006; 4260 case 0x47043008u: goto L_47043008; 4261 case 0x4704300Eu: goto L_4704300E; 4262 case 0x47043015u: goto L_47043015; 4263 case 0x47043017u: goto L_47043017; 4264 case 0x4704301Du: goto L_4704301D; 4265 case 0x4704301Fu: goto L_4704301F; 4266 case 0x47043021u: goto L_47043021; 4267 case 0x47043027u: goto L_47043027; 4268 case 0x47043029u: goto L_47043029; 4269 case 0x4704302Bu: goto L_4704302B; 4270 case 0x47043031u: goto L_47043031; 4271 case 0x47043033u: goto L_47043033; 4272 case 0x47043035u: goto L_47043035; 4273 case 0x4704303Bu: goto L_4704303B; 4274 case 0x4704303Fu: goto L_4704303F; 4275 case 0x47043042u: goto L_47043042; 4276 case 0x47043045u: goto L_47043045; 4277 case 0x47043049u: goto L_47043049; 4278 case 0x4704304Bu: goto L_4704304B; 4279 case 0x47043051u: goto L_47043051; 4280 case 0x47043057u: goto L_47043057; 4281 case 0x47043059u: goto L_47043059; 4282 case 0x4704305Du: goto L_4704305D; 4283 case 0x4704305Eu: goto L_4704305E; 4284 case 0x47043060u: goto L_47043060; 4285 case 0x47043065u: goto L_47043065; 4286 case 0x47043066u: goto L_47043066; 4287 case 0x4704306Cu: goto L_4704306C; 4288 case 0x4704306Eu: goto L_4704306E; 4289 case 0x47043070u: goto L_47043070; 4290 case 0x47043075u: goto L_47043075; 4291 case 0x47043077u: goto L_47043077; 4292 case 0x4704307Bu: goto L_4704307B; 4293 case 0x4704307Fu: goto L_4704307F; 4294 case 0x47043081u: goto L_47043081; 4295 case 0x47043083u: goto L_47043083; 4296 case 0x47043087u: goto L_47043087; 4297 case 0x4704308Du: goto L_4704308D; 4298 case 0x47043092u: goto L_47043092; 4299 case 0x47043094u: goto L_47043094; 4300 case 0x47043096u: goto L_47043096; 4301 case 0x47043098u: goto L_47043098; 4302 case 0x4704309Au: goto L_4704309A; 4303 case 0x4704309Du: goto L_4704309D; 4304 case 0x470430A0u: goto L_470430A0; 4305 case 0x470430A2u: goto L_470430A2; 4306 case 0x470430A4u: goto L_470430A4; 4307 case 0x470430AAu: goto L_470430AA; 4308 case 0x470430B1u: goto L_470430B1; 4309 case 0x470430B3u: goto L_470430B3; 4310 case 0x470430B9u: goto L_470430B9; 4311 case 0x470430BBu: goto L_470430BB; 4312 case 0x470430BDu: goto L_470430BD; 4313 case 0x470430C3u: goto L_470430C3; 4314 case 0x470430C5u: goto L_470430C5; 4315 case 0x470430C7u: goto L_470430C7; 4316 case 0x470430CDu: goto L_470430CD; 4317 case 0x470430CFu: goto L_470430CF; 4318 case 0x470430D1u: goto L_470430D1; 4319 case 0x470430D7u: goto L_470430D7; 4320 case 0x470430D9u: goto L_470430D9; 4321 case 0x470430DBu: goto L_470430DB; 4322 case 0x470430DDu: goto L_470430DD; 4323 case 0x470430DFu: goto L_470430DF; 4324 case 0x470430E1u: goto L_470430E1; 4325 case 0x470430E3u: goto L_470430E3; 4326 case 0x470430E5u: goto L_470430E5; 4327 case 0x470430E7u: goto L_470430E7; 4328 case 0x470430ECu: goto L_470430EC; 4329 case 0x470430EEu: goto L_470430EE; 4330 case 0x470430F0u: goto L_470430F0; 4331 case 0x470430F5u: goto L_470430F5; 4332 case 0x470430F6u: goto L_470430F6; 4333 case 0x470430F8u: goto L_470430F8; 4334 case 0x470430FDu: goto L_470430FD; 4335 case 0x470430FEu: goto L_470430FE; 4336 case 0x47043100u: goto L_47043100; 4337 case 0x47043105u: goto L_47043105; 4338 case 0x47043106u: goto L_47043106; 4339 case 0x47043107u: goto L_47043107; 4340 case 0x47043109u: goto L_47043109; 4341 case 0x4704310Eu: goto L_4704310E; 4342 case 0x47043113u: goto L_47043113; 4343 case 0x47043115u: goto L_47043115; 4344 case 0x4704311Au: goto L_4704311A; 4345 case 0x47043120u: goto L_47043120; 4346 case 0x47043121u: goto L_47043121; 4347 case 0x47043126u: goto L_47043126; 4348 case 0x4704312Bu: goto L_4704312B; 4349 case 0x4704312Cu: goto L_4704312C; 4350 case 0x47043131u: goto L_47043131; 4351 case 0x47043134u: goto L_47043134; 4352 case 0x47043135u: goto L_47043135; 4353 case 0x47043136u: goto L_47043136; 4354 case 0x47043137u: goto L_47043137; 4355 case 0x4704313Au: goto L_4704313A; 4356 case 0x4704313Bu: goto L_4704313B; 4357 case 0x4704313Eu: goto L_4704313E; 4358 case 0x47043141u: goto L_47043141; 4359 case 0x47043145u: goto L_47043145; 4360 case 0x47043147u: goto L_47043147; 4361 case 0x47043148u: goto L_47043148; 4362 case 0x47043149u: goto L_47043149; 4363 case 0x4704314Au: goto L_4704314A; 4364 case 0x4704314Bu: goto L_4704314B; 4365 case 0x4704314Du: goto L_4704314D; 4366 case 0x4704314Fu: goto L_4704314F; 4367 case 0x47043150u: goto L_47043150; 4368 case 0x47043153u: goto L_47043153; 4369 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4370 } 4371 RECOMP_REGS_OUT(); 4372 } 4373 4374 void sub_470430D7(void) { 4375 int _fpu_cmp = 0; 4376 uint32_t _cf = 0; 4377 int _df = 1; 4378 uint32_t _flag_k = FK_NONE; 4379 uint32_t _flag_a = 0, _flag_b = 0; 4380 uint32_t _itail_tgt = 0; 4381 RECOMP_REGS_LOCALS 4382 RECOMP_ENTER(0x470430D7u); 4383 4384 L_470430D7: 4385 RECOMP_ICALL(ebp); /* 0x470430D7: call ebp */ 4386 RECOMP_FLAGS_IN(); 4387 esi = eax; /* 0x470430D9: mov esi, eax */ 4388 RECOMP_ICALL(edi); /* 0x470430DB: call edi */ 4389 RECOMP_FLAGS_IN(); 4390 eax = MEM32(eax); /* 0x470430DD: mov eax, dword ptr [eax] */ 4391 /* test eax, eax */ /* 0x470430DF: test eax, eax */ 4392 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4393 _cf = 0; 4394 _flag_k = FK_TEST; 4395 edi = esi; /* 0x470430E1: mov edi, esi */ 4396 if (TEST_Z(_flag_a, _flag_b)) goto L_470430E7; /* 0x470430E3: je 0x470430e7 */ 4397 L_470430E5: 4398 edi = eax; /* 0x470430E5: mov edi, eax */ 4399 L_470430E7: 4400 RECOMP_ICALL(0x47039020u); /* 0x470430E7: call 0x47039020 */ /* not lifted */ 4401 RECOMP_FLAGS_IN(); 4402 esi = eax; /* 0x470430EC: mov esi, eax */ 4403 ecx = esi; /* 0x470430EE: mov ecx, esi */ 4404 RECOMP_ICALL(0x4703B210u); /* 0x470430F0: call 0x4703b210 */ /* not lifted */ 4405 RECOMP_FLAGS_IN(); 4406 PUSH32(esp, eax); /* 0x470430F5: push eax */ 4407 ecx = esi; /* 0x470430F6: mov ecx, esi */ 4408 RECOMP_ICALL(0x4703B240u); /* 0x470430F8: call 0x4703b240 */ /* not lifted */ 4409 RECOMP_FLAGS_IN(); 4410 PUSH32(esp, eax); /* 0x470430FD: push eax */ 4411 ecx = esi; /* 0x470430FE: mov ecx, esi */ 4412 RECOMP_ICALL(0x4703B080u); /* 0x47043100: call 0x4703b080 */ /* not lifted */ 4413 RECOMP_FLAGS_IN(); 4414 PUSH32(esp, eax); /* 0x47043105: push eax */ 4415 PUSH32(esp, edi); /* 0x47043106: push edi */ 4416 PUSH32(esp, 0xFFFFFFFFu); /* 0x47043107: push -1 */ 4417 PUSH32(esp, 0xF9u); /* 0x47043109: push 0xf9 */ 4418 PUSH32(esp, 0x4710815Cu); /* 0x4704310E: push 0x4710815c */ 4419 ecx = esi; /* 0x47043113: mov ecx, esi */ 4420 RECOMP_ICALL(0x4703A340u); /* 0x47043115: call 0x4703a340 */ /* not lifted */ 4421 RECOMP_FLAGS_IN(); 4422 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x13Cu); 4423 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4424 ebx = ebx + 0x13Cu; /* 0x4704311A: add ebx, 0x13c */ 4425 _flag_k = FK_ADD; 4426 PUSH32(esp, ebx); /* 0x47043120: push ebx */ 4427 PUSH32(esp, 0x47105B0Cu); /* 0x47043121: push 0x47105b0c */ 4428 PUSH32(esp, 0x80u); /* 0x47043126: push 0x80 */ 4429 PUSH32(esp, esi); /* 0x4704312B: push esi */ 4430 RECOMP_ICALL(0x47039830u); /* 0x4704312C: call 0x47039830 */ /* not lifted */ 4431 RECOMP_FLAGS_IN(); 4432 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4433 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4434 esp = esp + 0x10u; /* 0x47043131: add esp, 0x10 */ 4435 _flag_k = FK_ADD; 4436 edi = POP32_VAL(esp); /* 0x47043134: pop edi */ 4437 esi = POP32_VAL(esp); /* 0x47043135: pop esi */ 4438 ebp = POP32_VAL(esp); /* 0x47043136: pop ebp */ 4439 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4440 eax = eax | 0xFFFFFFFFu; /* 0x47043137: or eax, 0xffffffff */ 4441 _cf = 0; 4442 _flag_k = FK_TEST; 4443 ebx = POP32_VAL(esp); /* 0x4704313A: pop ebx */ 4444 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4445 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4446 esp = esp + 0xCu; /* 0x4704313B: add esp, 0xc */ 4447 _flag_k = FK_ADD; 4448 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4704313E: ret 8 */ 4449 RECOMP_REGS_OUT(); 4450 } 4451 4452 void sub_47043220(void) { 4453 int _fpu_cmp = 0; 4454 uint32_t _cf = 0; 4455 int _df = 1; 4456 uint32_t _flag_k = FK_NONE; 4457 uint32_t _flag_a = 0, _flag_b = 0; 4458 uint32_t _itail_tgt = 0; 4459 RECOMP_REGS_LOCALS 4460 RECOMP_ENTER(0x47043220u); 4461 4462 L_47043220: 4463 PUSH32(esp, ebx); /* 0x47043220: push ebx */ 4464 PUSH32(esp, ebp); /* 0x47043221: push ebp */ 4465 ebp = MEM32(0x470AC3C8); /* 0x47043222: mov ebp, dword ptr [0x470ac3c8] */ 4466 PUSH32(esp, esi); /* 0x47043228: push esi */ 4467 PUSH32(esp, edi); /* 0x47043229: push edi */ 4468 edi = ecx; /* 0x4704322A: mov edi, ecx */ 4469 eax = MEM32(edi + 0x124); /* 0x4704322C: mov eax, dword ptr [edi + 0x124] */ 4470 ecx = MEM32(edi + 0x120); /* 0x47043232: mov ecx, dword ptr [edi + 0x120] */ 4471 /* cmp eax, ecx */ /* 0x47043238: cmp eax, ecx */ 4472 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4473 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4474 _flag_k = FK_CMP; 4475 esi = edi + 0x10; /* 0x4704323A: lea esi, [edi + 0x10] */ 4476 if (CMP_EQ(_flag_a, _flag_b)) goto L_47043265; /* 0x4704323D: je 0x47043265 */ 4477 L_4704323F: 4478 /* cmp eax, 0xFFFFFFFFu */ /* 0x4704323F: cmp eax, -1 */ 4479 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 4480 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4481 _flag_k = FK_CMP; 4482 if (CMP_EQ(_flag_a, _flag_b)) goto L_47043265; /* 0x47043242: je 0x47043265 */ 4483 L_47043244: 4484 PUSH32(esp, eax); /* 0x47043244: push eax */ 4485 RECOMP_ICALL(MEM32(0x470AC198)); /* 0x47043245: call dword ptr [0x470ac198] */ 4486 RECOMP_FLAGS_IN(); 4487 /* test eax, eax */ /* 0x4704324B: test eax, eax */ 4488 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4489 _cf = 0; 4490 _flag_k = FK_TEST; 4491 if (TEST_NZ(_flag_a, _flag_b)) goto L_4704325B; /* 0x4704324D: jne 0x4704325b */ 4492 L_4704324F: 4493 RECOMP_ICALL(ebp); /* 0x4704324F: call ebp */ 4494 RECOMP_FLAGS_IN(); 4495 ebx = eax; /* 0x47043251: mov ebx, eax */ 4496 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47043253: call dword ptr [0x470ac150] */ 4497 RECOMP_FLAGS_IN(); 4498 MEM32(ebx) = eax; /* 0x47043259: mov dword ptr [ebx], eax */ 4499 L_4704325B: 4500 MEM32(esi + 0x114) = 0xFFFFFFFFu; /* 0x4704325B: mov dword ptr [esi + 0x114], 0xffffffff */ 4501 L_47043265: 4502 eax = MEM32(esi); /* 0x47043265: mov eax, dword ptr [esi] */ 4503 /* cmp eax, 0xFFFFFFFFu */ /* 0x47043267: cmp eax, -1 */ 4504 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 4505 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4506 _flag_k = FK_CMP; 4507 if (CMP_EQ(_flag_a, _flag_b)) goto L_47043289; /* 0x4704326A: je 0x47043289 */ 4508 L_4704326C: 4509 PUSH32(esp, eax); /* 0x4704326C: push eax */ 4510 RECOMP_ICALL(MEM32(0x470AC104)); /* 0x4704326D: call dword ptr [0x470ac104] */ 4511 RECOMP_FLAGS_IN(); 4512 /* test eax, eax */ /* 0x47043273: test eax, eax */ 4513 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4514 _cf = 0; 4515 _flag_k = FK_TEST; 4516 if (TEST_NZ(_flag_a, _flag_b)) goto L_47043283; /* 0x47043275: jne 0x47043283 */ 4517 L_47043277: 4518 RECOMP_ICALL(ebp); /* 0x47043277: call ebp */ 4519 RECOMP_FLAGS_IN(); 4520 ebx = eax; /* 0x47043279: mov ebx, eax */ 4521 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704327B: call dword ptr [0x470ac150] */ 4522 RECOMP_FLAGS_IN(); 4523 MEM32(ebx) = eax; /* 0x47043281: mov dword ptr [ebx], eax */ 4524 L_47043283: 4525 MEM32(esi) = 0xFFFFFFFFu; /* 0x47043283: mov dword ptr [esi], 0xffffffff */ 4526 L_47043289: 4527 eax = MEM32(edi + 0x12C); /* 0x47043289: mov eax, dword ptr [edi + 0x12c] */ 4528 /* test eax, eax */ /* 0x4704328F: test eax, eax */ 4529 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4530 _cf = 0; 4531 _flag_k = FK_TEST; 4532 ebx = MEM32(edi + 0x248); /* 0x47043291: mov ebx, dword ptr [edi + 0x248] */ 4533 edx = MEM32(edi + 0x130); /* 0x47043297: mov edx, dword ptr [edi + 0x130] */ 4534 if (TEST_NZ(_flag_a, _flag_b)) goto L_470432AF; /* 0x4704329D: jne 0x470432af */ 4535 L_4704329F: 4536 ecx = MEM32(esi); /* 0x4704329F: mov ecx, dword ptr [esi] */ 4537 /* test ecx, ecx */ /* 0x470432A1: test ecx, ecx */ 4538 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4539 _cf = 0; 4540 _flag_k = FK_TEST; 4541 if (TEST_Z(_flag_a, _flag_b)) goto L_470432AF; /* 0x470432A3: je 0x470432af */ 4542 L_470432A5: 4543 /* cmp ecx, 0xFFFFFFFFu */ /* 0x470432A5: cmp ecx, -1 */ 4544 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFFu); 4545 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4546 _flag_k = FK_CMP; 4547 if (CMP_EQ(_flag_a, _flag_b)) goto L_470432AF; /* 0x470432A8: je 0x470432af */ 4548 L_470432AA: 4549 _flag_a = (uint32_t)((edx | 4)); _flag_b = (uint32_t)((edx | 4)); 4550 edx = edx | 4; /* 0x470432AA: or edx, 4 */ 4551 _cf = 0; 4552 _flag_k = FK_TEST; 4553 eax = ecx; /* 0x470432AD: mov eax, ecx */ 4554 L_470432AF: 4555 ecx = MEM32(esi + 0x110); /* 0x470432AF: mov ecx, dword ptr [esi + 0x110] */ 4556 PUSH32(esp, ebx); /* 0x470432B5: push ebx */ 4557 ebx = MEM32(esp + 0x18); /* 0x470432B6: mov ebx, dword ptr [esp + 0x18] */ 4558 PUSH32(esp, 0); /* 0x470432BA: push 0 */ 4559 PUSH32(esp, eax); /* 0x470432BC: push eax */ 4560 PUSH32(esp, edx); /* 0x470432BD: push edx */ 4561 PUSH32(esp, 4); /* 0x470432BE: push 4 */ 4562 PUSH32(esp, ebx); /* 0x470432C0: push ebx */ 4563 PUSH32(esp, ecx); /* 0x470432C1: push ecx */ 4564 ecx = esi; /* 0x470432C2: mov ecx, esi */ 4565 RECOMP_ICALL(0x470417B0u); /* 0x470432C4: call 0x470417b0 */ /* not lifted */ 4566 RECOMP_FLAGS_IN(); 4567 /* cmp eax, 0xFFFFFFFFu */ /* 0x470432C9: cmp eax, -1 */ 4568 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 4569 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4570 _flag_k = FK_CMP; 4571 if (CMP_EQ(_flag_a, _flag_b)) goto L_470432FB; /* 0x470432CC: je 0x470432fb */ 4572 L_470432CE: 4573 eax = MEM32(edi + 0x12C); /* 0x470432CE: mov eax, dword ptr [edi + 0x12c] */ 4574 /* test eax, eax */ /* 0x470432D4: test eax, eax */ 4575 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4576 _cf = 0; 4577 _flag_k = FK_TEST; 4578 if (TEST_Z(_flag_a, _flag_b)) goto L_470432DC; /* 0x470432D6: je 0x470432dc */ 4579 L_470432D8: 4580 /* cmp MEM32(esi), eax */ /* 0x470432D8: cmp dword ptr [esi], eax */ 4581 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(eax); 4582 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4583 _flag_k = FK_CMP; 4584 if (CMP_NE(_flag_a, _flag_b)) goto L_470432FB; /* 0x470432DA: jne 0x470432fb */ 4585 L_470432DC: 4586 esi = MEM32(esi); /* 0x470432DC: mov esi, dword ptr [esi] */ 4587 PUSH32(esp, ebx); /* 0x470432DE: push ebx */ 4588 PUSH32(esp, esi); /* 0x470432DF: push esi */ 4589 MEM32(edi + 0x12C) = esi; /* 0x470432E0: mov dword ptr [edi + 0x12c], esi */ 4590 RECOMP_ICALL(0x4700EF90u); /* 0x470432E6: call 0x4700ef90 */ /* not lifted */ 4591 RECOMP_FLAGS_IN(); 4592 ecx = eax; /* 0x470432EB: mov ecx, eax */ 4593 RECOMP_ICALL(0x47019390u); /* 0x470432ED: call 0x47019390 */ /* not lifted */ 4594 RECOMP_FLAGS_IN(); 4595 edi = POP32_VAL(esp); /* 0x470432F2: pop edi */ 4596 esi = POP32_VAL(esp); /* 0x470432F3: pop esi */ 4597 ebp = POP32_VAL(esp); /* 0x470432F4: pop ebp */ 4598 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4599 eax = 0; /* 0x470432F5: xor eax, eax */ 4600 _cf = 0; 4601 _flag_k = FK_TEST; 4602 ebx = POP32_VAL(esp); /* 0x470432F7: pop ebx */ 4603 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470432F8: ret 4 */ 4604 L_470432FB: 4605 edi = POP32_VAL(esp); /* 0x470432FB: pop edi */ 4606 esi = POP32_VAL(esp); /* 0x470432FC: pop esi */ 4607 ebp = POP32_VAL(esp); /* 0x470432FD: pop ebp */ 4608 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4609 eax = eax | 0xFFFFFFFFu; /* 0x470432FE: or eax, 0xffffffff */ 4610 _cf = 0; 4611 _flag_k = FK_TEST; 4612 ebx = POP32_VAL(esp); /* 0x47043301: pop ebx */ 4613 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47043302: ret 4 */ 4614 RECOMP_REGS_OUT(); 4615 } 4616 4617 void sub_47043310(void) { 4618 int _fpu_cmp = 0; 4619 uint32_t _cf = 0; 4620 int _df = 1; 4621 uint32_t _flag_k = FK_NONE; 4622 uint32_t _flag_a = 0, _flag_b = 0; 4623 uint32_t _itail_tgt = 0; 4624 RECOMP_REGS_LOCALS 4625 RECOMP_ENTER(0x47043310u); 4626 4627 L_47043310: 4628 PUSH32(esp, esi); /* 0x47043310: push esi */ 4629 esi = ecx; /* 0x47043311: mov esi, ecx */ 4630 ecx = MEM32(esp + 0x8); /* 0x47043313: mov ecx, dword ptr [esp + 8] */ 4631 eax = MEM32(esi); /* 0x47043317: mov eax, dword ptr [esi] */ 4632 PUSH32(esp, edi); /* 0x47043319: push edi */ 4633 PUSH32(esp, ecx); /* 0x4704331A: push ecx */ 4634 ecx = esi; /* 0x4704331B: mov ecx, esi */ 4635 RECOMP_ICALL(MEM32(eax + 0x6C)); /* 0x4704331D: call dword ptr [eax + 0x6c] */ 4636 RECOMP_FLAGS_IN(); 4637 edi = MEM32(esp + 0x10); /* 0x47043320: mov edi, dword ptr [esp + 0x10] */ 4638 ecx = esp + 0xC; /* 0x47043324: lea ecx, [esp + 0xc] */ 4639 PUSH32(esp, ecx); /* 0x47043328: push ecx */ 4640 MEM32(edi) = eax; /* 0x47043329: mov dword ptr [edi], eax */ 4641 edx = MEM32(esi); /* 0x4704332B: mov edx, dword ptr [esi] */ 4642 PUSH32(esp, eax); /* 0x4704332D: push eax */ 4643 ecx = esi; /* 0x4704332E: mov ecx, esi */ 4644 RECOMP_ICALL(MEM32(edx + 0x70)); /* 0x47043330: call dword ptr [edx + 0x70] */ 4645 RECOMP_FLAGS_IN(); 4646 /* cmp eax, 0xFFFFFFFFu */ /* 0x47043333: cmp eax, -1 */ 4647 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 4648 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4649 _flag_k = FK_CMP; 4650 if (CMP_NE(_flag_a, _flag_b)) goto L_4704333F; /* 0x47043336: jne 0x4704333f */ 4651 L_47043338: 4652 edi = POP32_VAL(esp); /* 0x47043338: pop edi */ 4653 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4654 eax = 0; /* 0x47043339: xor eax, eax */ 4655 _cf = 0; 4656 _flag_k = FK_TEST; 4657 esi = POP32_VAL(esp); /* 0x4704333B: pop esi */ 4658 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4704333C: ret 8 */ 4659 L_4704333F: 4660 eax = MEM32(esp + 0xC); /* 0x4704333F: mov eax, dword ptr [esp + 0xc] */ 4661 edx = MEM32(esi); /* 0x47043343: mov edx, dword ptr [esi] */ 4662 PUSH32(esp, eax); /* 0x47043345: push eax */ 4663 ecx = esi; /* 0x47043346: mov ecx, esi */ 4664 RECOMP_ICALL(MEM32(edx + 0x74)); /* 0x47043348: call dword ptr [edx + 0x74] */ 4665 RECOMP_FLAGS_IN(); 4666 /* cmp eax, 0xFFFFFFFFu */ /* 0x4704334B: cmp eax, -1 */ 4667 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 4668 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4669 _flag_k = FK_CMP; 4670 if (CMP_NE(_flag_a, _flag_b)) goto L_47043357; /* 0x4704334E: jne 0x47043357 */ 4671 L_47043350: 4672 edi = POP32_VAL(esp); /* 0x47043350: pop edi */ 4673 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4674 eax = 0; /* 0x47043351: xor eax, eax */ 4675 _cf = 0; 4676 _flag_k = FK_TEST; 4677 esi = POP32_VAL(esp); /* 0x47043353: pop esi */ 4678 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47043354: ret 8 */ 4679 L_47043357: 4680 eax = MEM32(esi + 0x11C); /* 0x47043357: mov eax, dword ptr [esi + 0x11c] */ 4681 edx = MEM32(esi + 0x10); /* 0x4704335D: mov edx, dword ptr [esi + 0x10] */ 4682 ecx = MEM32(edi); /* 0x47043360: mov ecx, dword ptr [edi] */ 4683 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4684 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4685 eax = eax + edx; /* 0x47043362: add eax, edx */ 4686 _flag_k = FK_ADD; 4687 edi = POP32_VAL(esp); /* 0x47043364: pop edi */ 4688 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4689 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4690 eax = eax - ecx; /* 0x47043365: sub eax, ecx */ 4691 _flag_k = FK_CMP; 4692 esi = POP32_VAL(esp); /* 0x47043367: pop esi */ 4693 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47043368: ret 8 */ 4694 RECOMP_REGS_OUT(); 4695 } 4696 4697 void sub_47043370(void) { 4698 int _fpu_cmp = 0; 4699 uint32_t _cf = 0; 4700 int _df = 1; 4701 uint32_t _flag_k = FK_NONE; 4702 uint32_t _flag_a = 0, _flag_b = 0; 4703 uint32_t _itail_tgt = 0; 4704 RECOMP_REGS_LOCALS 4705 RECOMP_ENTER(0x47043370u); 4706 4707 L_47043370: 4708 eax = MEM32(esp + 0xC); /* 0x47043370: mov eax, dword ptr [esp + 0xc] */ 4709 PUSH32(esp, ebx); /* 0x47043374: push ebx */ 4710 PUSH32(esp, ebp); /* 0x47043375: push ebp */ 4711 ebp = MEM32(esp + 0xC); /* 0x47043376: mov ebp, dword ptr [esp + 0xc] */ 4712 PUSH32(esp, esi); /* 0x4704337A: push esi */ 4713 esi = ecx; /* 0x4704337B: mov esi, ecx */ 4714 MEM32(eax) = 0; /* 0x4704337D: mov dword ptr [eax], 0 */ 4715 eax = MEM32(esi + 0x138); /* 0x47043383: mov eax, dword ptr [esi + 0x138] */ 4716 /* cmp ebp, eax */ /* 0x47043389: cmp ebp, eax */ 4717 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(eax); 4718 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4719 _flag_k = FK_CMP; 4720 PUSH32(esp, edi); /* 0x4704338B: push edi */ 4721 if (CMP_AE(_flag_a, _flag_b)) goto L_47043390; /* 0x4704338C: jae 0x47043390 */ 4722 L_4704338E: 4723 ebp = eax; /* 0x4704338E: mov ebp, eax */ 4724 L_47043390: 4725 ecx = MEM32(esi + 0x248); /* 0x47043390: mov ecx, dword ptr [esi + 0x248] */ 4726 PUSH32(esp, ecx); /* 0x47043396: push ecx */ 4727 PUSH32(esp, 0x1B6u); /* 0x47043397: push 0x1b6 */ 4728 PUSH32(esp, 0x702u); /* 0x4704339C: push 0x702 */ 4729 ebx = esi + 0x13C; /* 0x470433A1: lea ebx, [esi + 0x13c] */ 4730 edi = esi + 0x10; /* 0x470433A7: lea edi, [esi + 0x10] */ 4731 PUSH32(esp, ebx); /* 0x470433AA: push ebx */ 4732 ecx = edi; /* 0x470433AB: mov ecx, edi */ 4733 RECOMP_ICALL(0x47041B80u); /* 0x470433AD: call 0x47041b80 */ /* not lifted */ 4734 RECOMP_FLAGS_IN(); 4735 /* cmp eax, 0xFFFFFFFFu */ /* 0x470433B2: cmp eax, -1 */ 4736 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 4737 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4738 _flag_k = FK_CMP; 4739 if (CMP_EQ(_flag_a, _flag_b)) goto L_470433D5; /* 0x470433B5: je 0x470433d5 */ 4740 L_470433B7: 4741 ecx = MEM32(esp + 0x18); /* 0x470433B7: mov ecx, dword ptr [esp + 0x18] */ 4742 edx = MEM32(esp + 0x1C); /* 0x470433BB: mov edx, dword ptr [esp + 0x1c] */ 4743 PUSH32(esp, ecx); /* 0x470433BF: push ecx */ 4744 MEM32(edx) = 1; /* 0x470433C0: mov dword ptr [edx], 1 */ 4745 eax = MEM32(esi); /* 0x470433C6: mov eax, dword ptr [esi] */ 4746 PUSH32(esp, ebp); /* 0x470433C8: push ebp */ 4747 ecx = esi; /* 0x470433C9: mov ecx, esi */ 4748 RECOMP_ICALL(MEM32(eax + 0x44)); /* 0x470433CB: call dword ptr [eax + 0x44] */ 4749 RECOMP_FLAGS_IN(); 4750 edi = POP32_VAL(esp); /* 0x470433CE: pop edi */ 4751 esi = POP32_VAL(esp); /* 0x470433CF: pop esi */ 4752 ebp = POP32_VAL(esp); /* 0x470433D0: pop ebp */ 4753 ebx = POP32_VAL(esp); /* 0x470433D1: pop ebx */ 4754 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470433D2: ret 0xc */ 4755 L_470433D5: 4756 ebp = MEM32(0x470AC3C8); /* 0x470433D5: mov ebp, dword ptr [0x470ac3c8] */ 4757 RECOMP_ICALL(ebp); /* 0x470433DB: call ebp */ 4758 RECOMP_FLAGS_IN(); 4759 /* cmp MEM32(eax), 0x11u */ /* 0x470433DD: cmp dword ptr [eax], 0x11 */ 4760 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0x11u); 4761 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4762 _flag_k = FK_CMP; 4763 if (CMP_NE(_flag_a, _flag_b)) goto L_4704345D; /* 0x470433E0: jne 0x4704345d */ 4764 L_470433E2: 4765 RECOMP_ICALL(ebp); /* 0x470433E2: call ebp */ 4766 RECOMP_FLAGS_IN(); 4767 MEM32(eax) = 0; /* 0x470433E4: mov dword ptr [eax], 0 */ 4768 edx = MEM32(esi + 0x248); /* 0x470433EA: mov edx, dword ptr [esi + 0x248] */ 4769 eax = MEM32(esi + 0x12C); /* 0x470433F0: mov eax, dword ptr [esi + 0x12c] */ 4770 ecx = MEM32(esi + 0x130); /* 0x470433F6: mov ecx, dword ptr [esi + 0x130] */ 4771 PUSH32(esp, edx); /* 0x470433FC: push edx */ 4772 PUSH32(esp, 0); /* 0x470433FD: push 0 */ 4773 PUSH32(esp, eax); /* 0x470433FF: push eax */ 4774 PUSH32(esp, ecx); /* 0x47043400: push ecx */ 4775 PUSH32(esp, 4); /* 0x47043401: push 4 */ 4776 PUSH32(esp, 0x1B6u); /* 0x47043403: push 0x1b6 */ 4777 PUSH32(esp, 2); /* 0x47043408: push 2 */ 4778 PUSH32(esp, 0xFFFFFFFFu); /* 0x4704340A: push -1 */ 4779 PUSH32(esp, ebx); /* 0x4704340C: push ebx */ 4780 ecx = edi; /* 0x4704340D: mov ecx, edi */ 4781 RECOMP_ICALL(0x47041BE0u); /* 0x4704340F: call 0x47041be0 */ /* not lifted */ 4782 RECOMP_FLAGS_IN(); 4783 /* cmp eax, 0xFFFFFFFFu */ /* 0x47043414: cmp eax, -1 */ 4784 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 4785 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4786 _flag_k = FK_CMP; 4787 if (CMP_NE(_flag_a, _flag_b)) goto L_47043454; /* 0x47043417: jne 0x47043454 */ 4788 L_47043419: 4789 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47043419: call dword ptr [0x470ac150] */ 4790 RECOMP_FLAGS_IN(); 4791 edi = eax; /* 0x4704341F: mov edi, eax */ 4792 RECOMP_ICALL(ebp); /* 0x47043421: call ebp */ 4793 RECOMP_FLAGS_IN(); 4794 eax = MEM32(eax); /* 0x47043423: mov eax, dword ptr [eax] */ 4795 /* test eax, eax */ /* 0x47043425: test eax, eax */ 4796 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4797 _cf = 0; 4798 _flag_k = FK_TEST; 4799 if (TEST_Z(_flag_a, _flag_b)) goto L_4704342B; /* 0x47043427: je 0x4704342b */ 4800 L_47043429: 4801 edi = eax; /* 0x47043429: mov edi, eax */ 4802 L_4704342B: 4803 RECOMP_ICALL(0x47039020u); /* 0x4704342B: call 0x47039020 */ /* not lifted */ 4804 RECOMP_FLAGS_IN(); 4805 esi = eax; /* 0x47043430: mov esi, eax */ 4806 ecx = esi; /* 0x47043432: mov ecx, esi */ 4807 RECOMP_ICALL(0x4703B210u); /* 0x47043434: call 0x4703b210 */ /* not lifted */ 4808 RECOMP_FLAGS_IN(); 4809 PUSH32(esp, eax); /* 0x47043439: push eax */ 4810 ecx = esi; /* 0x4704343A: mov ecx, esi */ 4811 RECOMP_ICALL(0x4703B240u); /* 0x4704343C: call 0x4703b240 */ /* not lifted */ 4812 RECOMP_FLAGS_IN(); 4813 PUSH32(esp, eax); /* 0x47043441: push eax */ 4814 ecx = esi; /* 0x47043442: mov ecx, esi */ 4815 RECOMP_ICALL(0x4703B080u); /* 0x47043444: call 0x4703b080 */ /* not lifted */ 4816 RECOMP_FLAGS_IN(); 4817 PUSH32(esp, eax); /* 0x47043449: push eax */ 4818 PUSH32(esp, edi); /* 0x4704344A: push edi */ 4819 PUSH32(esp, 0); /* 0x4704344B: push 0 */ 4820 PUSH32(esp, 0x171u); /* 0x4704344D: push 0x171 */ 4821 goto L_47043496; /* 0x47043452: jmp 0x47043496 */ 4822 L_47043454: 4823 eax = MEM32(edi); /* 0x47043454: mov eax, dword ptr [edi] */ 4824 edi = POP32_VAL(esp); /* 0x47043456: pop edi */ 4825 esi = POP32_VAL(esp); /* 0x47043457: pop esi */ 4826 ebp = POP32_VAL(esp); /* 0x47043458: pop ebp */ 4827 ebx = POP32_VAL(esp); /* 0x47043459: pop ebx */ 4828 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4704345A: ret 0xc */ 4829 L_4704345D: 4830 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704345D: call dword ptr [0x470ac150] */ 4831 RECOMP_FLAGS_IN(); 4832 edi = eax; /* 0x47043463: mov edi, eax */ 4833 RECOMP_ICALL(ebp); /* 0x47043465: call ebp */ 4834 RECOMP_FLAGS_IN(); 4835 eax = MEM32(eax); /* 0x47043467: mov eax, dword ptr [eax] */ 4836 /* test eax, eax */ /* 0x47043469: test eax, eax */ 4837 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4838 _cf = 0; 4839 _flag_k = FK_TEST; 4840 if (TEST_Z(_flag_a, _flag_b)) goto L_4704346F; /* 0x4704346B: je 0x4704346f */ 4841 L_4704346D: 4842 edi = eax; /* 0x4704346D: mov edi, eax */ 4843 L_4704346F: 4844 RECOMP_ICALL(0x47039020u); /* 0x4704346F: call 0x47039020 */ /* not lifted */ 4845 RECOMP_FLAGS_IN(); 4846 esi = eax; /* 0x47043474: mov esi, eax */ 4847 ecx = esi; /* 0x47043476: mov ecx, esi */ 4848 RECOMP_ICALL(0x4703B210u); /* 0x47043478: call 0x4703b210 */ /* not lifted */ 4849 RECOMP_FLAGS_IN(); 4850 PUSH32(esp, eax); /* 0x4704347D: push eax */ 4851 ecx = esi; /* 0x4704347E: mov ecx, esi */ 4852 RECOMP_ICALL(0x4703B240u); /* 0x47043480: call 0x4703b240 */ /* not lifted */ 4853 RECOMP_FLAGS_IN(); 4854 PUSH32(esp, eax); /* 0x47043485: push eax */ 4855 ecx = esi; /* 0x47043486: mov ecx, esi */ 4856 RECOMP_ICALL(0x4703B080u); /* 0x47043488: call 0x4703b080 */ /* not lifted */ 4857 RECOMP_FLAGS_IN(); 4858 PUSH32(esp, eax); /* 0x4704348D: push eax */ 4859 PUSH32(esp, edi); /* 0x4704348E: push edi */ 4860 PUSH32(esp, 0); /* 0x4704348F: push 0 */ 4861 PUSH32(esp, 0x179u); /* 0x47043491: push 0x179 */ 4862 L_47043496: 4863 PUSH32(esp, 0x4710815Cu); /* 0x47043496: push 0x4710815c */ 4864 ecx = esi; /* 0x4704349B: mov ecx, esi */ 4865 RECOMP_ICALL(0x4703A340u); /* 0x4704349D: call 0x4703a340 */ /* not lifted */ 4866 RECOMP_FLAGS_IN(); 4867 PUSH32(esp, 0x471081D8u); /* 0x470434A2: push 0x471081d8 */ 4868 PUSH32(esp, 0x471055F0u); /* 0x470434A7: push 0x471055f0 */ 4869 PUSH32(esp, 0x80u); /* 0x470434AC: push 0x80 */ 4870 PUSH32(esp, esi); /* 0x470434B1: push esi */ 4871 RECOMP_ICALL(0x47039830u); /* 0x470434B2: call 0x47039830 */ /* not lifted */ 4872 RECOMP_FLAGS_IN(); 4873 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4874 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4875 esp = esp + 0x10u; /* 0x470434B7: add esp, 0x10 */ 4876 _flag_k = FK_ADD; 4877 edi = POP32_VAL(esp); /* 0x470434BA: pop edi */ 4878 esi = POP32_VAL(esp); /* 0x470434BB: pop esi */ 4879 ebp = POP32_VAL(esp); /* 0x470434BC: pop ebp */ 4880 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4881 eax = 0; /* 0x470434BD: xor eax, eax */ 4882 _cf = 0; 4883 _flag_k = FK_TEST; 4884 ebx = POP32_VAL(esp); /* 0x470434BF: pop ebx */ 4885 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470434C0: ret 0xc */ 4886 RECOMP_REGS_OUT(); 4887 } 4888 4889 void sub_470434D0(void) { 4890 int _fpu_cmp = 0; 4891 uint32_t _cf = 0; 4892 int _df = 1; 4893 uint32_t _flag_k = FK_NONE; 4894 uint32_t _flag_a = 0, _flag_b = 0; 4895 uint32_t _itail_tgt = 0; 4896 RECOMP_REGS_LOCALS 4897 RECOMP_ENTER(0x470434D0u); 4898 4899 L_470434D0: 4900 eax = MEM32(esp + 0x4); /* 0x470434D0: mov eax, dword ptr [esp + 4] */ 4901 eax = MEM32(eax); /* 0x470434D4: mov eax, dword ptr [eax] */ 4902 /* cmp MEM32(eax), 0xC0000005u */ /* 0x470434D6: cmp dword ptr [eax], 0xc0000005 */ 4903 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0xC0000005u); 4904 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4905 _flag_k = FK_CMP; 4906 if (CMP_NE(_flag_a, _flag_b)) goto L_470434F3; /* 0x470434DC: jne 0x470434f3 */ 4907 L_470434DE: 4908 eax = MEM32(eax + 0x18); /* 0x470434DE: mov eax, dword ptr [eax + 0x18] */ 4909 edx = MEM32(ecx); /* 0x470434E1: mov edx, dword ptr [ecx] */ 4910 PUSH32(esp, eax); /* 0x470434E3: push eax */ 4911 RECOMP_ICALL(MEM32(edx + 0x60)); /* 0x470434E4: call dword ptr [edx + 0x60] */ 4912 RECOMP_FLAGS_IN(); 4913 /* test eax, eax */ /* 0x470434E7: test eax, eax */ 4914 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4915 _cf = 0; 4916 _flag_k = FK_TEST; 4917 if (TEST_NZ(_flag_a, _flag_b)) goto L_470434F3; /* 0x470434E9: jne 0x470434f3 */ 4918 L_470434EB: 4919 eax = 1; /* 0x470434EB: mov eax, 1 */ 4920 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470434F0: ret 4 */ 4921 L_470434F3: 4922 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4923 eax = 0; /* 0x470434F3: xor eax, eax */ 4924 _cf = 0; 4925 _flag_k = FK_TEST; 4926 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470434F5: ret 4 */ 4927 RECOMP_REGS_OUT(); 4928 } 4929 4930 void sub_47043500(void) { 4931 int _fpu_cmp = 0; 4932 uint32_t _cf = 0; 4933 int _df = 1; 4934 uint32_t _flag_k = FK_NONE; 4935 uint32_t _flag_a = 0, _flag_b = 0; 4936 uint32_t _itail_tgt = 0; 4937 RECOMP_REGS_LOCALS 4938 RECOMP_ENTER(0x47043500u); 4939 4940 L_47043500: 4941 PUSH32(esp, esi); /* 0x47043500: push esi */ 4942 PUSH32(esp, edi); /* 0x47043501: push edi */ 4943 esi = ecx; /* 0x47043502: mov esi, ecx */ 4944 eax = MEM32(esi + 0x120); /* 0x47043504: mov eax, dword ptr [esi + 0x120] */ 4945 PUSH32(esp, 0); /* 0x4704350A: push 0 */ 4946 PUSH32(esp, eax); /* 0x4704350C: push eax */ 4947 RECOMP_ICALL(MEM32(0x470AC144)); /* 0x4704350D: call dword ptr [0x470ac144] */ 4948 RECOMP_FLAGS_IN(); 4949 edi = eax; /* 0x47043513: mov edi, eax */ 4950 /* cmp edi, 0xFFFFFFFFu */ /* 0x47043515: cmp edi, -1 */ 4951 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu); 4952 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4953 _flag_k = FK_CMP; 4954 if (CMP_NE(_flag_a, _flag_b)) goto L_4704352C; /* 0x47043518: jne 0x4704352c */ 4955 L_4704351A: 4956 PUSH32(esp, ebx); /* 0x4704351A: push ebx */ 4957 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704351B: call dword ptr [0x470ac3c8] */ 4958 RECOMP_FLAGS_IN(); 4959 ebx = eax; /* 0x47043521: mov ebx, eax */ 4960 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47043523: call dword ptr [0x470ac150] */ 4961 RECOMP_FLAGS_IN(); 4962 MEM32(ebx) = eax; /* 0x47043529: mov dword ptr [ebx], eax */ 4963 ebx = POP32_VAL(esp); /* 0x4704352B: pop ebx */ 4964 L_4704352C: 4965 eax = MEM32(esi + 0x10); /* 0x4704352C: mov eax, dword ptr [esi + 0x10] */ 4966 ecx = MEM32(esp + 0xC); /* 0x4704352F: mov ecx, dword ptr [esp + 0xc] */ 4967 edx = eax + edi; /* 0x47043533: lea edx, [eax + edi] */ 4968 /* cmp ecx, edx */ /* 0x47043536: cmp ecx, edx */ 4969 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 4970 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4971 _flag_k = FK_CMP; 4972 if (CMP_AE(_flag_a, _flag_b)) goto L_4704354B; /* 0x47043538: jae 0x4704354b */ 4973 L_4704353A: 4974 /* cmp ecx, eax */ /* 0x4704353A: cmp ecx, eax */ 4975 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4976 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4977 _flag_k = FK_CMP; 4978 if (CMP_B(_flag_a, _flag_b)) goto L_4704354B; /* 0x4704353C: jb 0x4704354b */ 4979 L_4704353E: 4980 eax = MEM32(esi); /* 0x4704353E: mov eax, dword ptr [esi] */ 4981 PUSH32(esp, edi); /* 0x47043540: push edi */ 4982 ecx = esi; /* 0x47043541: mov ecx, esi */ 4983 RECOMP_ICALL(MEM32(eax + 0x74)); /* 0x47043543: call dword ptr [eax + 0x74] */ 4984 RECOMP_FLAGS_IN(); 4985 edi = POP32_VAL(esp); /* 0x47043546: pop edi */ 4986 esi = POP32_VAL(esp); /* 0x47043547: pop esi */ 4987 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47043548: ret 4 */ 4988 L_4704354B: 4989 edi = POP32_VAL(esp); /* 0x4704354B: pop edi */ 4990 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4991 eax = eax | 0xFFFFFFFFu; /* 0x4704354C: or eax, 0xffffffff */ 4992 _cf = 0; 4993 _flag_k = FK_TEST; 4994 esi = POP32_VAL(esp); /* 0x4704354F: pop esi */ 4995 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47043550: ret 4 */ 4996 RECOMP_REGS_OUT(); 4997 } 4998 4999 void sub_47043560(void) { 5000 int _fpu_cmp = 0; 5001 uint32_t _cf = 0; 5002 int _df = 1; 5003 uint32_t _flag_k = FK_NONE; 5004 uint32_t _flag_a = 0, _flag_b = 0; 5005 uint32_t _itail_tgt = 0; 5006 RECOMP_REGS_LOCALS 5007 RECOMP_ENTER(0x47043560u); 5008 5009 L_47043560: 5010 edx = MEM32(esp + 0x8); /* 0x47043560: mov edx, dword ptr [esp + 8] */ 5011 eax = ecx; /* 0x47043564: mov eax, ecx */ 5012 ecx = MEM32(esp + 0x4); /* 0x47043566: mov ecx, dword ptr [esp + 4] */ 5013 MEM32(eax) = ecx; /* 0x4704356A: mov dword ptr [eax], ecx */ 5014 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 5015 _cf = (ecx) != 0; 5016 ecx = (uint32_t)(-(int32_t)ecx); /* 0x4704356C: neg ecx */ 5017 _flag_k = FK_CMP; 5018 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x4704356E: sbb ecx, ecx */ 5019 ecx = _sc ? 0xFFFFFFFFu : 0; 5020 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 5021 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 5022 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 5023 ecx = ecx & edx; /* 0x47043570: and ecx, edx */ 5024 _cf = 0; 5025 _flag_k = FK_TEST; 5026 edx = MEM32(esp + 0x10); /* 0x47043572: mov edx, dword ptr [esp + 0x10] */ 5027 MEM32(eax + 0x4) = ecx; /* 0x47043576: mov dword ptr [eax + 4], ecx */ 5028 ecx = MEM32(esp + 0xC); /* 0x47043579: mov ecx, dword ptr [esp + 0xc] */ 5029 MEM32(eax + 0x8) = ecx; /* 0x4704357D: mov dword ptr [eax + 8], ecx */ 5030 ecx = MEM32(esp + 0x14); /* 0x47043580: mov ecx, dword ptr [esp + 0x14] */ 5031 MEM32(eax + 0xC) = edx; /* 0x47043584: mov dword ptr [eax + 0xc], edx */ 5032 edx = MEM32(esp + 0x18); /* 0x47043587: mov edx, dword ptr [esp + 0x18] */ 5033 MEM32(eax + 0x10) = ecx; /* 0x4704358B: mov dword ptr [eax + 0x10], ecx */ 5034 ecx = MEM32(esp + 0x1C); /* 0x4704358E: mov ecx, dword ptr [esp + 0x1c] */ 5035 MEM32(eax + 0x14) = edx; /* 0x47043592: mov dword ptr [eax + 0x14], edx */ 5036 MEM32(eax + 0x18) = ecx; /* 0x47043595: mov dword ptr [eax + 0x18], ecx */ 5037 RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x47043598: ret 0x1c */ 5038 RECOMP_REGS_OUT(); 5039 } 5040 5041 void sub_470435A0(void) { 5042 int _fpu_cmp = 0; 5043 uint32_t _cf = 0; 5044 int _df = 1; 5045 uint32_t _flag_k = FK_NONE; 5046 uint32_t _flag_a = 0, _flag_b = 0; 5047 uint32_t _itail_tgt = 0; 5048 RECOMP_REGS_LOCALS 5049 RECOMP_ENTER(0x470435A0u); 5050 5051 L_470435A0: 5052 /* cmp MEM32(esp + 0x4), 0xBu */ /* 0x470435A0: cmp dword ptr [esp + 4], 0xb */ 5053 _flag_a = (uint32_t)(MEM32(esp + 0x4)); _flag_b = (uint32_t)(0xBu); 5054 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5055 _flag_k = FK_CMP; 5056 PUSH32(esp, esi); /* 0x470435A5: push esi */ 5057 PUSH32(esp, edi); /* 0x470435A6: push edi */ 5058 esi = ecx; /* 0x470435A7: mov esi, ecx */ 5059 if (CMP_NE(_flag_a, _flag_b)) goto L_4704360A; /* 0x470435A9: jne 0x4704360a */ 5060 L_470435AB: 5061 eax = MEM32(esi + 0x244); /* 0x470435AB: mov eax, dword ptr [esi + 0x244] */ 5062 /* test eax, eax */ /* 0x470435B1: test eax, eax */ 5063 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5064 _cf = 0; 5065 _flag_k = FK_TEST; 5066 if (TEST_Z(_flag_a, _flag_b)) goto L_4704360A; /* 0x470435B3: je 0x4704360a */ 5067 L_470435B5: 5068 eax = MEM32(esi + 0x120); /* 0x470435B5: mov eax, dword ptr [esi + 0x120] */ 5069 PUSH32(esp, 0); /* 0x470435BB: push 0 */ 5070 PUSH32(esp, eax); /* 0x470435BD: push eax */ 5071 RECOMP_ICALL(MEM32(0x470AC144)); /* 0x470435BE: call dword ptr [0x470ac144] */ 5072 RECOMP_FLAGS_IN(); 5073 edi = eax; /* 0x470435C4: mov edi, eax */ 5074 /* cmp edi, 0xFFFFFFFFu */ /* 0x470435C6: cmp edi, -1 */ 5075 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu); 5076 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5077 _flag_k = FK_CMP; 5078 if (CMP_NE(_flag_a, _flag_b)) goto L_470435DD; /* 0x470435C9: jne 0x470435dd */ 5079 L_470435CB: 5080 PUSH32(esp, ebx); /* 0x470435CB: push ebx */ 5081 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470435CC: call dword ptr [0x470ac3c8] */ 5082 RECOMP_FLAGS_IN(); 5083 ebx = eax; /* 0x470435D2: mov ebx, eax */ 5084 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470435D4: call dword ptr [0x470ac150] */ 5085 RECOMP_FLAGS_IN(); 5086 MEM32(ebx) = eax; /* 0x470435DA: mov dword ptr [ebx], eax */ 5087 ebx = POP32_VAL(esp); /* 0x470435DC: pop ebx */ 5088 L_470435DD: 5089 /* cmp edi, MEM32(esi + 0x11C) */ /* 0x470435DD: cmp edi, dword ptr [esi + 0x11c] */ 5090 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x11C)); 5091 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5092 _flag_k = FK_CMP; 5093 if (CMP_NE(_flag_a, _flag_b)) goto L_470435FD; /* 0x470435E3: jne 0x470435fd */ 5094 L_470435E5: 5095 eax = MEM32(esi + 0xC); /* 0x470435E5: mov eax, dword ptr [esi + 0xc] */ 5096 PUSH32(esp, 0xFFFFFFFFu); /* 0x470435E8: push -1 */ 5097 PUSH32(esp, 0); /* 0x470435EA: push 0 */ 5098 ecx = esi + 0xC; /* 0x470435EC: lea ecx, [esi + 0xc] */ 5099 PUSH32(esp, 0); /* 0x470435EF: push 0 */ 5100 PUSH32(esp, 0xBu); /* 0x470435F1: push 0xb */ 5101 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x470435F3: call dword ptr [eax + 4] */ 5102 RECOMP_FLAGS_IN(); 5103 edi = POP32_VAL(esp); /* 0x470435F6: pop edi */ 5104 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5105 eax = 0; /* 0x470435F7: xor eax, eax */ 5106 _cf = 0; 5107 _flag_k = FK_TEST; 5108 esi = POP32_VAL(esp); /* 0x470435F9: pop esi */ 5109 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470435FA: ret 0xc */ 5110 L_470435FD: 5111 edx = MEM32(esi); /* 0x470435FD: mov edx, dword ptr [esi] */ 5112 PUSH32(esp, edi); /* 0x470435FF: push edi */ 5113 ecx = esi; /* 0x47043600: mov ecx, esi */ 5114 RECOMP_ICALL(MEM32(edx + 0x74)); /* 0x47043602: call dword ptr [edx + 0x74] */ 5115 RECOMP_FLAGS_IN(); 5116 edi = POP32_VAL(esp); /* 0x47043605: pop edi */ 5117 esi = POP32_VAL(esp); /* 0x47043606: pop esi */ 5118 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47043607: ret 0xc */ 5119 L_4704360A: 5120 edi = POP32_VAL(esp); /* 0x4704360A: pop edi */ 5121 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5122 eax = eax | 0xFFFFFFFFu; /* 0x4704360B: or eax, 0xffffffff */ 5123 _cf = 0; 5124 _flag_k = FK_TEST; 5125 esi = POP32_VAL(esp); /* 0x4704360E: pop esi */ 5126 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4704360F: ret 0xc */ 5127 RECOMP_REGS_OUT(); 5128 } 5129 5130 void sub_47043620(void) { 5131 int _fpu_cmp = 0; 5132 uint32_t _cf = 0; 5133 int _df = 1; 5134 uint32_t _flag_k = FK_NONE; 5135 uint32_t _flag_a = 0, _flag_b = 0; 5136 uint32_t _itail_tgt = 0; 5137 RECOMP_REGS_LOCALS 5138 RECOMP_ENTER(0x47043620u); 5139 5140 L_47043620: 5141 eax = MEM32(esp + 0x8); /* 0x47043620: mov eax, dword ptr [esp + 8] */ 5142 PUSH32(esp, esi); /* 0x47043624: push esi */ 5143 esi = ecx; /* 0x47043625: mov esi, ecx */ 5144 ecx = MEM32(esp + 0x8); /* 0x47043627: mov ecx, dword ptr [esp + 8] */ 5145 PUSH32(esp, eax); /* 0x4704362B: push eax */ 5146 PUSH32(esp, ecx); /* 0x4704362C: push ecx */ 5147 ecx = esi; /* 0x4704362D: mov ecx, esi */ 5148 RECOMP_ICALL(0x47042EA0u); /* 0x4704362F: call 0x47042ea0 */ /* not lifted */ 5149 RECOMP_FLAGS_IN(); 5150 MEM32(esi) = 0x470AD604u; /* 0x47043634: mov dword ptr [esi], 0x470ad604 */ 5151 eax = esi; /* 0x4704363A: mov eax, esi */ 5152 esi = POP32_VAL(esp); /* 0x4704363C: pop esi */ 5153 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4704363D: ret 8 */ 5154 RECOMP_REGS_OUT(); 5155 } 5156 5157 void sub_47043640(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(0x47043640u); 5166 5167 L_47043640: 5168 goto L_470437F0; /* 0x47043640: jmp 0x470437f0 */ 5169 L_470437F0: 5170 PUSH32(esp, esi); /* 0x470437F0: push esi */ 5171 esi = ecx; /* 0x470437F1: mov esi, ecx */ 5172 eax = MEM32(esi + 0x4); /* 0x470437F3: mov eax, dword ptr [esi + 4] */ 5173 PUSH32(esp, edi); /* 0x470437F6: push edi */ 5174 PUSH32(esp, eax); /* 0x470437F7: push eax */ 5175 RECOMP_ICALL(0x4700EF90u); /* 0x470437F8: call 0x4700ef90 */ /* not lifted */ 5176 RECOMP_FLAGS_IN(); 5177 ecx = eax; /* 0x470437FD: mov ecx, eax */ 5178 RECOMP_ICALL(0x47019480u); /* 0x470437FF: call 0x47019480 */ /* not lifted */ 5179 RECOMP_FLAGS_IN(); 5180 eax = MEM32(esi + 0xC); /* 0x47043804: mov eax, dword ptr [esi + 0xc] */ 5181 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5182 edi = 0; /* 0x47043807: xor edi, edi */ 5183 _cf = 0; 5184 _flag_k = FK_TEST; 5185 /* cmp eax, edi */ /* 0x47043809: cmp eax, edi */ 5186 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5187 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5188 _flag_k = FK_CMP; 5189 MEM32(esi + 0x18) = edi; /* 0x4704380B: mov dword ptr [esi + 0x18], edi */ 5190 if (CMP_LE(_flag_a, _flag_b)) goto L_4704381A; /* 0x4704380E: jle 0x4704381a */ 5191 L_47043810: 5192 ecx = MEM32(esi + 0x4); /* 0x47043810: mov ecx, dword ptr [esi + 4] */ 5193 PUSH32(esp, ecx); /* 0x47043813: push ecx */ 5194 RECOMP_ICALL(MEM32(0x470AC104)); /* 0x47043814: call dword ptr [0x470ac104] */ 5195 RECOMP_FLAGS_IN(); 5196 L_4704381A: 5197 /* cmp MEM32(esi + 0x1C), edi */ /* 0x4704381A: cmp dword ptr [esi + 0x1c], edi */ 5198 _flag_a = (uint32_t)(MEM32(esi + 0x1C)); _flag_b = (uint32_t)(edi); 5199 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5200 _flag_k = FK_CMP; 5201 MEM32(esi) = edi; /* 0x4704381D: mov dword ptr [esi], edi */ 5202 MEM32(esi + 0x4) = edi; /* 0x4704381F: mov dword ptr [esi + 4], edi */ 5203 MEM32(esi + 0x8) = 0x01000000u; /* 0x47043822: mov dword ptr [esi + 8], 0x1000000 */ 5204 MEM32(esi + 0xC) = edi; /* 0x47043829: mov dword ptr [esi + 0xc], edi */ 5205 MEM32(esi + 0x10) = edi; /* 0x4704382C: mov dword ptr [esi + 0x10], edi */ 5206 MEM32(esi + 0x14) = edi; /* 0x4704382F: mov dword ptr [esi + 0x14], edi */ 5207 if (CMP_NE(_flag_a, _flag_b)) goto L_4704383E; /* 0x47043832: jne 0x4704383e */ 5208 L_47043834: 5209 PUSH32(esp, edi); /* 0x47043834: push edi */ 5210 RECOMP_ICALL(MEM32(0x470AC198)); /* 0x47043835: call dword ptr [0x470ac198] */ 5211 RECOMP_FLAGS_IN(); 5212 MEM32(esi + 0x1C) = edi; /* 0x4704383B: mov dword ptr [esi + 0x1c], edi */ 5213 L_4704383E: 5214 edi = POP32_VAL(esp); /* 0x4704383E: pop edi */ 5215 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5216 eax = 0; /* 0x4704383F: xor eax, eax */ 5217 _cf = 0; 5218 _flag_k = FK_TEST; 5219 esi = POP32_VAL(esp); /* 0x47043841: pop esi */ 5220 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47043842: ret */ 5221 RECOMP_REGS_OUT(); 5222 } 5223 5224 void sub_47043650(void) { 5225 int _fpu_cmp = 0; 5226 uint32_t _cf = 0; 5227 int _df = 1; 5228 uint32_t _flag_k = FK_NONE; 5229 uint32_t _flag_a = 0, _flag_b = 0; 5230 uint32_t _itail_tgt = 0; 5231 RECOMP_REGS_LOCALS 5232 RECOMP_ENTER(0x47043650u); 5233 5234 L_47043650: 5235 PUSH32(esp, esi); /* 0x47043650: push esi */ 5236 PUSH32(esp, edi); /* 0x47043651: push edi */ 5237 esi = ecx; /* 0x47043652: mov esi, ecx */ 5238 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5239 edi = 0; /* 0x47043654: xor edi, edi */ 5240 _cf = 0; 5241 _flag_k = FK_TEST; 5242 PUSH32(esp, 1); /* 0x47043656: push 1 */ 5243 MEM32(esi + 0x18) = edi; /* 0x47043658: mov dword ptr [esi + 0x18], edi */ 5244 MEM32(esi + 0x1C) = edi; /* 0x4704365B: mov dword ptr [esi + 0x1c], edi */ 5245 RECOMP_ICALL(0x4700E4C0u); /* 0x4704365E: call 0x4700e4c0 */ /* not lifted */ 5246 RECOMP_FLAGS_IN(); 5247 MEM32(esi + 0x20) = eax; /* 0x47043663: mov dword ptr [esi + 0x20], eax */ 5248 eax = MEM32(esp + 0x14); /* 0x47043666: mov eax, dword ptr [esp + 0x14] */ 5249 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5250 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5251 esp = esp + 4; /* 0x4704366A: add esp, 4 */ 5252 _flag_k = FK_ADD; 5253 /* cmp eax, edi */ /* 0x4704366D: cmp eax, edi */ 5254 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5255 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5256 _flag_k = FK_CMP; 5257 if (CMP_EQ(_flag_a, _flag_b)) goto L_47043687; /* 0x4704366F: je 0x47043687 */ 5258 L_47043671: 5259 ecx = MEM32(eax); /* 0x47043671: mov ecx, dword ptr [eax] */ 5260 MEM32(esi) = ecx; /* 0x47043673: mov dword ptr [esi], ecx */ 5261 MEM32(esi + 0x4) = edi; /* 0x47043675: mov dword ptr [esi + 4], edi */ 5262 edx = MEM32(eax + 0x4); /* 0x47043678: mov edx, dword ptr [eax + 4] */ 5263 MEM32(esi + 0x8) = edx; /* 0x4704367B: mov dword ptr [esi + 8], edx */ 5264 MEM32(esi + 0xC) = edi; /* 0x4704367E: mov dword ptr [esi + 0xc], edi */ 5265 MEM32(esi + 0x10) = edi; /* 0x47043681: mov dword ptr [esi + 0x10], edi */ 5266 MEM32(esi + 0x14) = edi; /* 0x47043684: mov dword ptr [esi + 0x14], edi */ 5267 L_47043687: 5268 eax = MEM32(esp + 0xC); /* 0x47043687: mov eax, dword ptr [esp + 0xc] */ 5269 /* cmp eax, edi */ /* 0x4704368B: cmp eax, edi */ 5270 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5271 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5272 _flag_k = FK_CMP; 5273 if (CMP_NE(_flag_a, _flag_b)) goto L_47043694; /* 0x4704368D: jne 0x47043694 */ 5274 L_4704368F: 5275 eax = 0x471081E0u; /* 0x4704368F: mov eax, 0x471081e0 */ 5276 L_47043694: 5277 PUSH32(esp, 0x104u); /* 0x47043694: push 0x104 */ 5278 PUSH32(esp, eax); /* 0x47043699: push eax */ 5279 eax = esi + 0x24; /* 0x4704369A: lea eax, [esi + 0x24] */ 5280 PUSH32(esp, eax); /* 0x4704369D: push eax */ 5281 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x4704369E: call dword ptr [0x470ac22c] */ 5282 RECOMP_FLAGS_IN(); 5283 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5284 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5285 esp = esp + 0xCu; /* 0x470436A4: add esp, 0xc */ 5286 _flag_k = FK_ADD; 5287 edi = POP32_VAL(esp); /* 0x470436A7: pop edi */ 5288 eax = esi; /* 0x470436A8: mov eax, esi */ 5289 esi = POP32_VAL(esp); /* 0x470436AA: pop esi */ 5290 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470436AB: ret 8 */ 5291 RECOMP_REGS_OUT(); 5292 } 5293 5294 void sub_470436B0(void) { 5295 int _fpu_cmp = 0; 5296 uint32_t _cf = 0; 5297 int _df = 1; 5298 uint32_t _flag_k = FK_NONE; 5299 uint32_t _flag_a = 0, _flag_b = 0; 5300 uint32_t _itail_tgt = 0; 5301 RECOMP_REGS_LOCALS 5302 RECOMP_ENTER(0x470436B0u); 5303 5304 L_470436B0: 5305 eax = MEM32(esp + 0x4); /* 0x470436B0: mov eax, dword ptr [esp + 4] */ 5306 PUSH32(esp, ebx); /* 0x470436B4: push ebx */ 5307 PUSH32(esp, esi); /* 0x470436B5: push esi */ 5308 PUSH32(esp, edi); /* 0x470436B6: push edi */ 5309 PUSH32(esp, eax); /* 0x470436B7: push eax */ 5310 esi = ecx; /* 0x470436B8: mov esi, ecx */ 5311 RECOMP_ICALL(0x4700E4C0u); /* 0x470436BA: call 0x4700e4c0 */ /* not lifted */ 5312 RECOMP_FLAGS_IN(); 5313 ebx = MEM32(esp + 0x18); /* 0x470436BF: mov ebx, dword ptr [esp + 0x18] */ 5314 MEM32(ebx) = eax; /* 0x470436C3: mov dword ptr [ebx], eax */ 5315 ecx = MEM32(esi + 0x18); /* 0x470436C5: mov ecx, dword ptr [esi + 0x18] */ 5316 edi = MEM32(esi + 0xC); /* 0x470436C8: mov edi, dword ptr [esi + 0xc] */ 5317 MEM32(esp + 0x14) = 0; /* 0x470436CB: mov dword ptr [esp + 0x14], 0 */ 5318 edx = MEM32(ecx + 0xC); /* 0x470436D3: mov edx, dword ptr [ecx + 0xc] */ 5319 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5320 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5321 esp = esp + 4; /* 0x470436D6: add esp, 4 */ 5322 _flag_k = FK_ADD; 5323 /* cmp edx, edi */ /* 0x470436D9: cmp edx, edi */ 5324 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 5325 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5326 _flag_k = FK_CMP; 5327 if (CMP_G(_flag_a, _flag_b)) goto L_470436E2; /* 0x470436DB: jg 0x470436e2 */ 5328 L_470436DD: 5329 /* cmp MEM32(ecx + 0x14), eax */ /* 0x470436DD: cmp dword ptr [ecx + 0x14], eax */ 5330 _flag_a = (uint32_t)(MEM32(ecx + 0x14)); _flag_b = (uint32_t)(eax); 5331 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5332 _flag_k = FK_CMP; 5333 if (CMP_GE(_flag_a, _flag_b)) goto L_47043702; /* 0x470436E0: jge 0x47043702 */ 5334 L_470436E2: 5335 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x14)); 5336 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5337 eax = eax - MEM32(ecx + 0x14); /* 0x470436E2: sub eax, dword ptr [ecx + 0x14] */ 5338 _flag_k = FK_CMP; 5339 if (/* sub result */ CMP_NS(_flag_a, _flag_b)) goto L_470436E9; /* 0x470436E5: jns 0x470436e9 */ 5340 L_470436E7: 5341 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5342 eax = 0; /* 0x470436E7: xor eax, eax */ 5343 _cf = 0; 5344 _flag_k = FK_TEST; 5345 L_470436E9: 5346 PUSH32(esp, eax); /* 0x470436E9: push eax */ 5347 eax = esp + 0x14; /* 0x470436EA: lea eax, [esp + 0x14] */ 5348 PUSH32(esp, eax); /* 0x470436EE: push eax */ 5349 ecx = esi; /* 0x470436EF: mov ecx, esi */ 5350 RECOMP_ICALL(0x47043850u); /* 0x470436F1: call 0x47043850 */ /* not lifted */ 5351 RECOMP_FLAGS_IN(); 5352 /* test eax, eax */ /* 0x470436F6: test eax, eax */ 5353 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5354 _cf = 0; 5355 _flag_k = FK_TEST; 5356 if (TEST_NS(_flag_a, _flag_b)) goto L_47043702; /* 0x470436F8: jge 0x47043702 */ 5357 L_470436FA: 5358 edi = POP32_VAL(esp); /* 0x470436FA: pop edi */ 5359 esi = POP32_VAL(esp); /* 0x470436FB: pop esi */ 5360 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5361 eax = 0; /* 0x470436FC: xor eax, eax */ 5362 _cf = 0; 5363 _flag_k = FK_TEST; 5364 ebx = POP32_VAL(esp); /* 0x470436FE: pop ebx */ 5365 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470436FF: ret 8 */ 5366 L_47043702: 5367 ecx = MEM32(esi + 0x18); /* 0x47043702: mov ecx, dword ptr [esi + 0x18] */ 5368 edi = MEM32(ebx); /* 0x47043705: mov edi, dword ptr [ebx] */ 5369 /* cmp MEM32(ecx + 0x14), edi */ /* 0x47043707: cmp dword ptr [ecx + 0x14], edi */ 5370 _flag_a = (uint32_t)(MEM32(ecx + 0x14)); _flag_b = (uint32_t)(edi); 5371 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5372 _flag_k = FK_CMP; 5373 if (CMP_GE(_flag_a, _flag_b)) goto L_47043714; /* 0x4704370A: jge 0x47043714 */ 5374 L_4704370C: 5375 edi = POP32_VAL(esp); /* 0x4704370C: pop edi */ 5376 esi = POP32_VAL(esp); /* 0x4704370D: pop esi */ 5377 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5378 eax = 0; /* 0x4704370E: xor eax, eax */ 5379 _cf = 0; 5380 _flag_k = FK_TEST; 5381 ebx = POP32_VAL(esp); /* 0x47043710: pop ebx */ 5382 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47043711: ret 8 */ 5383 L_47043714: 5384 edx = MEM32(ecx + 0x10); /* 0x47043714: mov edx, dword ptr [ecx + 0x10] */ 5385 eax = MEM32(esi + 0x4); /* 0x47043717: mov eax, dword ptr [esi + 4] */ 5386 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 5387 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5388 eax = eax + edx; /* 0x4704371A: add eax, edx */ 5389 _flag_k = FK_ADD; 5390 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 5391 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5392 edx = edx + edi; /* 0x4704371C: add edx, edi */ 5393 _flag_k = FK_ADD; 5394 MEM32(ecx + 0x10) = edx; /* 0x4704371E: mov dword ptr [ecx + 0x10], edx */ 5395 ecx = MEM32(esi + 0x18); /* 0x47043721: mov ecx, dword ptr [esi + 0x18] */ 5396 edi = MEM32(ecx + 0x14); /* 0x47043724: mov edi, dword ptr [ecx + 0x14] */ 5397 edx = MEM32(ebx); /* 0x47043727: mov edx, dword ptr [ebx] */ 5398 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 5399 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5400 edi = edi - edx; /* 0x47043729: sub edi, edx */ 5401 _flag_k = FK_CMP; 5402 MEM32(ecx + 0x14) = edi; /* 0x4704372B: mov dword ptr [ecx + 0x14], edi */ 5403 ecx = MEM32(esi + 0x18); /* 0x4704372E: mov ecx, dword ptr [esi + 0x18] */ 5404 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 5405 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5406 ecx = ecx + 8; /* 0x47043731: add ecx, 8 */ 5407 _flag_k = FK_ADD; 5408 edx = MEM32(ecx); /* 0x47043734: mov edx, dword ptr [ecx] */ 5409 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 5410 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5411 esi = esi + 8; /* 0x47043736: add esi, 8 */ 5412 _flag_k = FK_ADD; 5413 MEM32(esi) = edx; /* 0x47043739: mov dword ptr [esi], edx */ 5414 edx = MEM32(ecx + 0x4); /* 0x4704373B: mov edx, dword ptr [ecx + 4] */ 5415 MEM32(esi + 0x4) = edx; /* 0x4704373E: mov dword ptr [esi + 4], edx */ 5416 edx = MEM32(ecx + 0x8); /* 0x47043741: mov edx, dword ptr [ecx + 8] */ 5417 MEM32(esi + 0x8) = edx; /* 0x47043744: mov dword ptr [esi + 8], edx */ 5418 ecx = MEM32(ecx + 0xC); /* 0x47043747: mov ecx, dword ptr [ecx + 0xc] */ 5419 edi = POP32_VAL(esp); /* 0x4704374A: pop edi */ 5420 MEM32(esi + 0xC) = ecx; /* 0x4704374B: mov dword ptr [esi + 0xc], ecx */ 5421 esi = POP32_VAL(esp); /* 0x4704374E: pop esi */ 5422 ebx = POP32_VAL(esp); /* 0x4704374F: pop ebx */ 5423 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47043750: ret 8 */ 5424 RECOMP_REGS_OUT(); 5425 } 5426 5427 void sub_47043760(void) { 5428 int _fpu_cmp = 0; 5429 uint32_t _cf = 0; 5430 int _df = 1; 5431 uint32_t _flag_k = FK_NONE; 5432 uint32_t _flag_a = 0, _flag_b = 0; 5433 uint32_t _itail_tgt = 0; 5434 RECOMP_REGS_LOCALS 5435 RECOMP_ENTER(0x47043760u); 5436 5437 L_47043760: 5438 PUSH32(esp, esi); /* 0x47043760: push esi */ 5439 PUSH32(esp, edi); /* 0x47043761: push edi */ 5440 edi = MEM32(esp + 0x14); /* 0x47043762: mov edi, dword ptr [esp + 0x14] */ 5441 PUSH32(esp, 0); /* 0x47043766: push 0 */ 5442 esi = ecx; /* 0x47043768: mov esi, ecx */ 5443 PUSH32(esp, edi); /* 0x4704376A: push edi */ 5444 RECOMP_ICALL(0x47043850u); /* 0x4704376B: call 0x47043850 */ /* not lifted */ 5445 RECOMP_FLAGS_IN(); 5446 /* test eax, eax */ /* 0x47043770: test eax, eax */ 5447 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5448 _cf = 0; 5449 _flag_k = FK_TEST; 5450 if (TEST_NS(_flag_a, _flag_b)) goto L_4704377B; /* 0x47043772: jge 0x4704377b */ 5451 L_47043774: 5452 edi = POP32_VAL(esp); /* 0x47043774: pop edi */ 5453 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5454 eax = 0; /* 0x47043775: xor eax, eax */ 5455 _cf = 0; 5456 _flag_k = FK_TEST; 5457 esi = POP32_VAL(esp); /* 0x47043777: pop esi */ 5458 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47043778: ret 0xc */ 5459 L_4704377B: 5460 /* cmp MEM32(edi), 0 */ /* 0x4704377B: cmp dword ptr [edi], 0 */ 5461 _flag_a = (uint32_t)(MEM32(edi)); _flag_b = (uint32_t)(0); 5462 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5463 _flag_k = FK_CMP; 5464 if (CMP_EQ(_flag_a, _flag_b)) goto L_47043796; /* 0x4704377E: je 0x47043796 */ 5465 L_47043780: 5466 eax = MEM32(esp + 0x10); /* 0x47043780: mov eax, dword ptr [esp + 0x10] */ 5467 ecx = MEM32(esp + 0xC); /* 0x47043784: mov ecx, dword ptr [esp + 0xc] */ 5468 PUSH32(esp, eax); /* 0x47043788: push eax */ 5469 PUSH32(esp, ecx); /* 0x47043789: push ecx */ 5470 ecx = esi; /* 0x4704378A: mov ecx, esi */ 5471 RECOMP_ICALL(0x470436B0u); /* 0x4704378C: call 0x470436b0 */ /* not lifted */ 5472 RECOMP_FLAGS_IN(); 5473 edi = POP32_VAL(esp); /* 0x47043791: pop edi */ 5474 esi = POP32_VAL(esp); /* 0x47043792: pop esi */ 5475 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47043793: ret 0xc */ 5476 L_47043796: 5477 PUSH32(esp, 0x18u); /* 0x47043796: push 0x18 */ 5478 RECOMP_ICALL(0x4700E4C0u); /* 0x47043798: call 0x4700e4c0 */ /* not lifted */ 5479 RECOMP_FLAGS_IN(); 5480 ecx = MEM32(esi + 0x4); /* 0x4704379D: mov ecx, dword ptr [esi + 4] */ 5481 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5482 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5483 esp = esp + 4; /* 0x470437A0: add esp, 4 */ 5484 _flag_k = FK_ADD; 5485 edi = POP32_VAL(esp); /* 0x470437A3: pop edi */ 5486 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5487 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5488 eax = eax + ecx; /* 0x470437A4: add eax, ecx */ 5489 _flag_k = FK_ADD; 5490 esi = POP32_VAL(esp); /* 0x470437A6: pop esi */ 5491 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470437A7: ret 0xc */ 5492 RECOMP_REGS_OUT(); 5493 } 5494 5495 void sub_470437B0(void) { 5496 int _fpu_cmp = 0; 5497 uint32_t _cf = 0; 5498 int _df = 1; 5499 uint32_t _flag_k = FK_NONE; 5500 uint32_t _flag_a = 0, _flag_b = 0; 5501 uint32_t _itail_tgt = 0; 5502 RECOMP_REGS_LOCALS 5503 RECOMP_ENTER(0x470437B0u); 5504 5505 L_470437B0: 5506 edx = MEM32(ecx + 0x18); /* 0x470437B0: mov edx, dword ptr [ecx + 0x18] */ 5507 /* test edx, edx */ /* 0x470437B3: test edx, edx */ 5508 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 5509 _cf = 0; 5510 _flag_k = FK_TEST; 5511 PUSH32(esp, esi); /* 0x470437B5: push esi */ 5512 if (TEST_Z(_flag_a, _flag_b)) goto L_470437E4; /* 0x470437B6: je 0x470437e4 */ 5513 L_470437B8: 5514 eax = MEM32(ecx + 0x4); /* 0x470437B8: mov eax, dword ptr [ecx + 4] */ 5515 esi = MEM32(esp + 0x8); /* 0x470437BB: mov esi, dword ptr [esp + 8] */ 5516 /* cmp esi, eax */ /* 0x470437BF: cmp esi, eax */ 5517 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 5518 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5519 _flag_k = FK_CMP; 5520 if (CMP_B(_flag_a, _flag_b)) goto L_470437E4; /* 0x470437C1: jb 0x470437e4 */ 5521 L_470437C3: 5522 edx = MEM32(edx + 0xC); /* 0x470437C3: mov edx, dword ptr [edx + 0xc] */ 5523 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 5524 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5525 edx = edx + eax; /* 0x470437C6: add edx, eax */ 5526 _flag_k = FK_ADD; 5527 /* cmp esi, edx */ /* 0x470437C8: cmp esi, edx */ 5528 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 5529 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5530 _flag_k = FK_CMP; 5531 if (CMP_AE(_flag_a, _flag_b)) goto L_470437E4; /* 0x470437CA: jae 0x470437e4 */ 5532 L_470437CC: 5533 PUSH32(esp, 0); /* 0x470437CC: push 0 */ 5534 eax = esp + 0xC; /* 0x470437CE: lea eax, [esp + 0xc] */ 5535 PUSH32(esp, eax); /* 0x470437D2: push eax */ 5536 MEM32(esp + 0x10) = 0; /* 0x470437D3: mov dword ptr [esp + 0x10], 0 */ 5537 RECOMP_ICALL(0x47043850u); /* 0x470437DB: call 0x47043850 */ /* not lifted */ 5538 RECOMP_FLAGS_IN(); 5539 esi = POP32_VAL(esp); /* 0x470437E0: pop esi */ 5540 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470437E1: ret 4 */ 5541 L_470437E4: 5542 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5543 eax = eax | 0xFFFFFFFFu; /* 0x470437E4: or eax, 0xffffffff */ 5544 _cf = 0; 5545 _flag_k = FK_TEST; 5546 esi = POP32_VAL(esp); /* 0x470437E7: pop esi */ 5547 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470437E8: ret 4 */ 5548 RECOMP_REGS_OUT(); 5549 } 5550 5551 void sub_470437F0(void) { 5552 int _fpu_cmp = 0; 5553 uint32_t _cf = 0; 5554 int _df = 1; 5555 uint32_t _flag_k = FK_NONE; 5556 uint32_t _flag_a = 0, _flag_b = 0; 5557 uint32_t _itail_tgt = 0; 5558 RECOMP_REGS_LOCALS 5559 RECOMP_ENTER(0x470437F0u); 5560 5561 L_470437F0: 5562 PUSH32(esp, esi); /* 0x470437F0: push esi */ 5563 esi = ecx; /* 0x470437F1: mov esi, ecx */ 5564 eax = MEM32(esi + 0x4); /* 0x470437F3: mov eax, dword ptr [esi + 4] */ 5565 PUSH32(esp, edi); /* 0x470437F6: push edi */ 5566 PUSH32(esp, eax); /* 0x470437F7: push eax */ 5567 RECOMP_ICALL(0x4700EF90u); /* 0x470437F8: call 0x4700ef90 */ /* not lifted */ 5568 RECOMP_FLAGS_IN(); 5569 ecx = eax; /* 0x470437FD: mov ecx, eax */ 5570 RECOMP_ICALL(0x47019480u); /* 0x470437FF: call 0x47019480 */ /* not lifted */ 5571 RECOMP_FLAGS_IN(); 5572 eax = MEM32(esi + 0xC); /* 0x47043804: mov eax, dword ptr [esi + 0xc] */ 5573 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5574 edi = 0; /* 0x47043807: xor edi, edi */ 5575 _cf = 0; 5576 _flag_k = FK_TEST; 5577 /* cmp eax, edi */ /* 0x47043809: cmp eax, edi */ 5578 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5579 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5580 _flag_k = FK_CMP; 5581 MEM32(esi + 0x18) = edi; /* 0x4704380B: mov dword ptr [esi + 0x18], edi */ 5582 if (CMP_LE(_flag_a, _flag_b)) goto L_4704381A; /* 0x4704380E: jle 0x4704381a */ 5583 L_47043810: 5584 ecx = MEM32(esi + 0x4); /* 0x47043810: mov ecx, dword ptr [esi + 4] */ 5585 PUSH32(esp, ecx); /* 0x47043813: push ecx */ 5586 RECOMP_ICALL(MEM32(0x470AC104)); /* 0x47043814: call dword ptr [0x470ac104] */ 5587 RECOMP_FLAGS_IN(); 5588 L_4704381A: 5589 /* cmp MEM32(esi + 0x1C), edi */ /* 0x4704381A: cmp dword ptr [esi + 0x1c], edi */ 5590 _flag_a = (uint32_t)(MEM32(esi + 0x1C)); _flag_b = (uint32_t)(edi); 5591 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5592 _flag_k = FK_CMP; 5593 MEM32(esi) = edi; /* 0x4704381D: mov dword ptr [esi], edi */ 5594 MEM32(esi + 0x4) = edi; /* 0x4704381F: mov dword ptr [esi + 4], edi */ 5595 MEM32(esi + 0x8) = 0x01000000u; /* 0x47043822: mov dword ptr [esi + 8], 0x1000000 */ 5596 MEM32(esi + 0xC) = edi; /* 0x47043829: mov dword ptr [esi + 0xc], edi */ 5597 MEM32(esi + 0x10) = edi; /* 0x4704382C: mov dword ptr [esi + 0x10], edi */ 5598 MEM32(esi + 0x14) = edi; /* 0x4704382F: mov dword ptr [esi + 0x14], edi */ 5599 if (CMP_NE(_flag_a, _flag_b)) goto L_4704383E; /* 0x47043832: jne 0x4704383e */ 5600 L_47043834: 5601 PUSH32(esp, edi); /* 0x47043834: push edi */ 5602 RECOMP_ICALL(MEM32(0x470AC198)); /* 0x47043835: call dword ptr [0x470ac198] */ 5603 RECOMP_FLAGS_IN(); 5604 MEM32(esi + 0x1C) = edi; /* 0x4704383B: mov dword ptr [esi + 0x1c], edi */ 5605 L_4704383E: 5606 edi = POP32_VAL(esp); /* 0x4704383E: pop edi */ 5607 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5608 eax = 0; /* 0x4704383F: xor eax, eax */ 5609 _cf = 0; 5610 _flag_k = FK_TEST; 5611 esi = POP32_VAL(esp); /* 0x47043841: pop esi */ 5612 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47043842: ret */ 5613 RECOMP_REGS_OUT(); 5614 } 5615 5616 void sub_47043850(void) { 5617 int _fpu_cmp = 0; 5618 uint32_t _cf = 0; 5619 int _df = 1; 5620 uint32_t _flag_k = FK_NONE; 5621 uint32_t _flag_a = 0, _flag_b = 0; 5622 uint32_t _itail_tgt = 0; 5623 RECOMP_REGS_LOCALS 5624 RECOMP_ENTER(0x47043850u); 5625 5626 L_47043850: 5627 PUSH32(esp, ebx); /* 0x47043850: push ebx */ 5628 PUSH32(esp, ebp); /* 0x47043851: push ebp */ 5629 PUSH32(esp, esi); /* 0x47043852: push esi */ 5630 esi = ecx; /* 0x47043853: mov esi, ecx */ 5631 eax = MEM32(esi + 0x1C); /* 0x47043855: mov eax, dword ptr [esi + 0x1c] */ 5632 /* test eax, eax */ /* 0x47043858: test eax, eax */ 5633 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5634 _cf = 0; 5635 _flag_k = FK_TEST; 5636 PUSH32(esp, edi); /* 0x4704385A: push edi */ 5637 edi = MEM32(esp + 0x14); /* 0x4704385B: mov edi, dword ptr [esp + 0x14] */ 5638 if (TEST_NZ(_flag_a, _flag_b)) goto L_4704389D; /* 0x4704385F: jne 0x4704389d */ 5639 L_47043861: 5640 ecx = MEM32(esi + 0x8); /* 0x47043861: mov ecx, dword ptr [esi + 8] */ 5641 eax = esi + 0x24; /* 0x47043864: lea eax, [esi + 0x24] */ 5642 PUSH32(esp, eax); /* 0x47043867: push eax */ 5643 PUSH32(esp, ecx); /* 0x47043868: push ecx */ 5644 PUSH32(esp, 0); /* 0x47043869: push 0 */ 5645 PUSH32(esp, 0x04000004u); /* 0x4704386B: push 0x4000004 */ 5646 PUSH32(esp, 0); /* 0x47043870: push 0 */ 5647 PUSH32(esp, 0xFFFFFFFFu); /* 0x47043872: push -1 */ 5648 RECOMP_ICALL(MEM32(0x470AC170)); /* 0x47043874: call dword ptr [0x470ac170] */ 5649 RECOMP_FLAGS_IN(); 5650 /* test eax, eax */ /* 0x4704387A: test eax, eax */ 5651 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5652 _cf = 0; 5653 _flag_k = FK_TEST; 5654 MEM32(esi + 0x1C) = eax; /* 0x4704387C: mov dword ptr [esi + 0x1c], eax */ 5655 if (TEST_NZ(_flag_a, _flag_b)) goto L_4704388B; /* 0x4704387F: jne 0x4704388b */ 5656 L_47043881: 5657 edi = POP32_VAL(esp); /* 0x47043881: pop edi */ 5658 esi = POP32_VAL(esp); /* 0x47043882: pop esi */ 5659 ebp = POP32_VAL(esp); /* 0x47043883: pop ebp */ 5660 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5661 eax = eax | 0xFFFFFFFFu; /* 0x47043884: or eax, 0xffffffff */ 5662 _cf = 0; 5663 _flag_k = FK_TEST; 5664 ebx = POP32_VAL(esp); /* 0x47043887: pop ebx */ 5665 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47043888: ret 8 */ 5666 L_4704388B: 5667 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704388B: call dword ptr [0x470ac150] */ 5668 RECOMP_FLAGS_IN(); 5669 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5670 edx = 0; /* 0x47043891: xor edx, edx */ 5671 _cf = 0; 5672 _flag_k = FK_TEST; 5673 /* cmp eax, 0xB7u */ /* 0x47043893: cmp eax, 0xb7 */ 5674 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB7u); 5675 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5676 _flag_k = FK_CMP; 5677 SET_LO8(edx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x47043898: setne dl */ 5678 MEM32(edi) = edx; /* 0x4704389B: mov dword ptr [edi], edx */ 5679 L_4704389D: 5680 eax = MEM32(esi + 0x18); /* 0x4704389D: mov eax, dword ptr [esi + 0x18] */ 5681 /* test eax, eax */ /* 0x470438A0: test eax, eax */ 5682 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5683 _cf = 0; 5684 _flag_k = FK_TEST; 5685 ebp = MEM32(0x470AC0C0); /* 0x470438A2: mov ebp, dword ptr [0x470ac0c0] */ 5686 if (TEST_NZ(_flag_a, _flag_b)) goto L_47043990; /* 0x470438A8: jne 0x47043990 */ 5687 L_470438AE: 5688 eax = MEM32(esi); /* 0x470438AE: mov eax, dword ptr [esi] */ 5689 ecx = MEM32(esi + 0x8); /* 0x470438B0: mov ecx, dword ptr [esi + 8] */ 5690 edx = MEM32(esi + 0x1C); /* 0x470438B3: mov edx, dword ptr [esi + 0x1c] */ 5691 PUSH32(esp, eax); /* 0x470438B6: push eax */ 5692 PUSH32(esp, ecx); /* 0x470438B7: push ecx */ 5693 PUSH32(esp, 0); /* 0x470438B8: push 0 */ 5694 PUSH32(esp, 0); /* 0x470438BA: push 0 */ 5695 PUSH32(esp, 2); /* 0x470438BC: push 2 */ 5696 PUSH32(esp, edx); /* 0x470438BE: push edx */ 5697 RECOMP_ICALL(MEM32(0x470AC174)); /* 0x470438BF: call dword ptr [0x470ac174] */ 5698 RECOMP_FLAGS_IN(); 5699 /* test eax, eax */ /* 0x470438C5: test eax, eax */ 5700 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5701 _cf = 0; 5702 _flag_k = FK_TEST; 5703 MEM32(esi + 0x18) = eax; /* 0x470438C7: mov dword ptr [esi + 0x18], eax */ 5704 if (TEST_NZ(_flag_a, _flag_b)) goto L_470438D6; /* 0x470438CA: jne 0x470438d6 */ 5705 L_470438CC: 5706 edi = POP32_VAL(esp); /* 0x470438CC: pop edi */ 5707 esi = POP32_VAL(esp); /* 0x470438CD: pop esi */ 5708 ebp = POP32_VAL(esp); /* 0x470438CE: pop ebp */ 5709 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5710 eax = eax | 0xFFFFFFFFu; /* 0x470438CF: or eax, 0xffffffff */ 5711 _cf = 0; 5712 _flag_k = FK_TEST; 5713 ebx = POP32_VAL(esp); /* 0x470438D2: pop ebx */ 5714 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470438D3: ret 8 */ 5715 L_470438D6: 5716 /* cmp MEM32(edi), 0 */ /* 0x470438D6: cmp dword ptr [edi], 0 */ 5717 _flag_a = (uint32_t)(MEM32(edi)); _flag_b = (uint32_t)(0); 5718 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5719 _flag_k = FK_CMP; 5720 if (CMP_EQ(_flag_a, _flag_b)) goto L_47043966; /* 0x470438D9: je 0x47043966 */ 5721 L_470438DF: 5722 PUSH32(esp, 0x18u); /* 0x470438DF: push 0x18 */ 5723 RECOMP_ICALL(0x4700E4C0u); /* 0x470438E1: call 0x4700e4c0 */ /* not lifted */ 5724 RECOMP_FLAGS_IN(); 5725 ecx = MEM32(esp + 0x1C); /* 0x470438E6: mov ecx, dword ptr [esp + 0x1c] */ 5726 edx = MEM32(esi + 0x18); /* 0x470438EA: mov edx, dword ptr [esi + 0x18] */ 5727 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5728 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5729 esp = esp + 4; /* 0x470438ED: add esp, 4 */ 5730 _flag_k = FK_ADD; 5731 PUSH32(esp, 4); /* 0x470438F0: push 4 */ 5732 edi = eax + ecx + 0xFFFF; /* 0x470438F2: lea edi, [eax + ecx + 0xffff] */ 5733 PUSH32(esp, 0x1000u); /* 0x470438F9: push 0x1000 */ 5734 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFF0000u); 5735 edi = edi & 0xFFFF0000u; /* 0x470438FE: and edi, 0xffff0000 */ 5736 _cf = 0; 5737 _flag_k = FK_TEST; 5738 PUSH32(esp, edi); /* 0x47043904: push edi */ 5739 PUSH32(esp, edx); /* 0x47043905: push edx */ 5740 RECOMP_ICALL(ebp); /* 0x47043906: call ebp */ 5741 RECOMP_FLAGS_IN(); 5742 /* test eax, eax */ /* 0x47043908: test eax, eax */ 5743 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5744 _cf = 0; 5745 _flag_k = FK_TEST; 5746 if (TEST_NZ(_flag_a, _flag_b)) goto L_47043916; /* 0x4704390A: jne 0x47043916 */ 5747 L_4704390C: 5748 edi = POP32_VAL(esp); /* 0x4704390C: pop edi */ 5749 esi = POP32_VAL(esp); /* 0x4704390D: pop esi */ 5750 ebp = POP32_VAL(esp); /* 0x4704390E: pop ebp */ 5751 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5752 eax = eax | 0xFFFFFFFFu; /* 0x4704390F: or eax, 0xffffffff */ 5753 _cf = 0; 5754 _flag_k = FK_TEST; 5755 ebx = POP32_VAL(esp); /* 0x47043912: pop ebx */ 5756 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47043913: ret 8 */ 5757 L_47043916: 5758 eax = MEM32(esi + 0x18); /* 0x47043916: mov eax, dword ptr [esi + 0x18] */ 5759 MEM32(eax) = 0; /* 0x47043919: mov dword ptr [eax], 0 */ 5760 ecx = MEM32(esi + 0x18); /* 0x4704391F: mov ecx, dword ptr [esi + 0x18] */ 5761 MEM32(ecx + 0x4) = 0; /* 0x47043922: mov dword ptr [ecx + 4], 0 */ 5762 edx = MEM32(esi + 0x18); /* 0x47043929: mov edx, dword ptr [esi + 0x18] */ 5763 PUSH32(esp, 0x18u); /* 0x4704392C: push 0x18 */ 5764 MEM32(esi + 0x4) = edx; /* 0x4704392E: mov dword ptr [esi + 4], edx */ 5765 MEM32(esi + 0xC) = edi; /* 0x47043931: mov dword ptr [esi + 0xc], edi */ 5766 RECOMP_ICALL(0x4700E4C0u); /* 0x47043934: call 0x4700e4c0 */ /* not lifted */ 5767 RECOMP_FLAGS_IN(); 5768 ecx = MEM32(esi + 0xC); /* 0x47043939: mov ecx, dword ptr [esi + 0xc] */ 5769 edx = MEM32(esi + 0x18); /* 0x4704393C: mov edx, dword ptr [esi + 0x18] */ 5770 MEM32(esi + 0x10) = eax; /* 0x4704393F: mov dword ptr [esi + 0x10], eax */ 5771 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 5772 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5773 ecx = ecx - eax; /* 0x47043942: sub ecx, eax */ 5774 _flag_k = FK_CMP; 5775 MEM32(esi + 0x14) = ecx; /* 0x47043944: mov dword ptr [esi + 0x14], ecx */ 5776 eax = MEM32(esi + 0x8); /* 0x47043947: mov eax, dword ptr [esi + 8] */ 5777 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5778 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5779 esp = esp + 4; /* 0x4704394A: add esp, 4 */ 5780 _flag_k = FK_ADD; 5781 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8); 5782 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5783 edx = edx + 8; /* 0x4704394D: add edx, 8 */ 5784 _flag_k = FK_ADD; 5785 MEM32(edx) = eax; /* 0x47043950: mov dword ptr [edx], eax */ 5786 ecx = MEM32(esi + 0xC); /* 0x47043952: mov ecx, dword ptr [esi + 0xc] */ 5787 MEM32(edx + 0x4) = ecx; /* 0x47043955: mov dword ptr [edx + 4], ecx */ 5788 eax = MEM32(esi + 0x10); /* 0x47043958: mov eax, dword ptr [esi + 0x10] */ 5789 MEM32(edx + 0x8) = eax; /* 0x4704395B: mov dword ptr [edx + 8], eax */ 5790 ecx = MEM32(esi + 0x14); /* 0x4704395E: mov ecx, dword ptr [esi + 0x14] */ 5791 MEM32(edx + 0xC) = ecx; /* 0x47043961: mov dword ptr [edx + 0xc], ecx */ 5792 goto L_47043990; /* 0x47043964: jmp 0x47043990 */ 5793 L_47043966: 5794 PUSH32(esp, 4); /* 0x47043966: push 4 */ 5795 PUSH32(esp, 0x1000u); /* 0x47043968: push 0x1000 */ 5796 PUSH32(esp, 0x00010000u); /* 0x4704396D: push 0x10000 */ 5797 PUSH32(esp, eax); /* 0x47043972: push eax */ 5798 RECOMP_ICALL(ebp); /* 0x47043973: call ebp */ 5799 RECOMP_FLAGS_IN(); 5800 /* test eax, eax */ /* 0x47043975: test eax, eax */ 5801 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5802 _cf = 0; 5803 _flag_k = FK_TEST; 5804 if (TEST_NZ(_flag_a, _flag_b)) goto L_47043983; /* 0x47043977: jne 0x47043983 */ 5805 L_47043979: 5806 edi = POP32_VAL(esp); /* 0x47043979: pop edi */ 5807 esi = POP32_VAL(esp); /* 0x4704397A: pop esi */ 5808 ebp = POP32_VAL(esp); /* 0x4704397B: pop ebp */ 5809 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5810 eax = eax | 0xFFFFFFFFu; /* 0x4704397C: or eax, 0xffffffff */ 5811 _cf = 0; 5812 _flag_k = FK_TEST; 5813 ebx = POP32_VAL(esp); /* 0x4704397F: pop ebx */ 5814 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47043980: ret 8 */ 5815 L_47043983: 5816 edx = MEM32(esi + 0x18); /* 0x47043983: mov edx, dword ptr [esi + 0x18] */ 5817 MEM32(esi + 0x4) = edx; /* 0x47043986: mov dword ptr [esi + 4], edx */ 5818 MEM32(esi + 0xC) = 0x00010000u; /* 0x47043989: mov dword ptr [esi + 0xc], 0x10000 */ 5819 L_47043990: 5820 edx = MEM32(esi + 0x18); /* 0x47043990: mov edx, dword ptr [esi + 0x18] */ 5821 ebx = MEM32(edx + 0xC); /* 0x47043993: mov ebx, dword ptr [edx + 0xc] */ 5822 ecx = MEM32(esi + 0xC); /* 0x47043996: mov ecx, dword ptr [esi + 0xc] */ 5823 /* cmp ebx, ecx */ /* 0x47043999: cmp ebx, ecx */ 5824 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 5825 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5826 _flag_k = FK_CMP; 5827 if (CMP_G(_flag_a, _flag_b)) goto L_470439A5; /* 0x4704399B: jg 0x470439a5 */ 5828 L_4704399D: 5829 eax = MEM32(esp + 0x18); /* 0x4704399D: mov eax, dword ptr [esp + 0x18] */ 5830 /* test eax, eax */ /* 0x470439A1: test eax, eax */ 5831 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5832 _cf = 0; 5833 _flag_k = FK_TEST; 5834 if (TEST_LE(_flag_a, _flag_b)) goto L_470439F0; /* 0x470439A3: jle 0x470439f0 */ 5835 L_470439A5: 5836 eax = MEM32(esp + 0x18); /* 0x470439A5: mov eax, dword ptr [esp + 0x18] */ 5837 edi = eax + 0xFFFF; /* 0x470439A9: lea edi, [eax + 0xffff] */ 5838 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFF0000u); 5839 edi = edi & 0xFFFF0000u; /* 0x470439AF: and edi, 0xffff0000 */ 5840 _cf = 0; 5841 _flag_k = FK_TEST; 5842 PUSH32(esp, 4); /* 0x470439B5: push 4 */ 5843 eax = edi; /* 0x470439B7: mov eax, edi */ 5844 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5845 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5846 eax = eax - ecx; /* 0x470439B9: sub eax, ecx */ 5847 _flag_k = FK_CMP; 5848 PUSH32(esp, 0x1000u); /* 0x470439BB: push 0x1000 */ 5849 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5850 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5851 eax = eax + ebx; /* 0x470439C0: add eax, ebx */ 5852 _flag_k = FK_ADD; 5853 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 5854 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5855 ecx = ecx + edx; /* 0x470439C2: add ecx, edx */ 5856 _flag_k = FK_ADD; 5857 PUSH32(esp, eax); /* 0x470439C4: push eax */ 5858 PUSH32(esp, ecx); /* 0x470439C5: push ecx */ 5859 RECOMP_ICALL(ebp); /* 0x470439C6: call ebp */ 5860 RECOMP_FLAGS_IN(); 5861 /* test eax, eax */ /* 0x470439C8: test eax, eax */ 5862 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5863 _cf = 0; 5864 _flag_k = FK_TEST; 5865 if (TEST_NZ(_flag_a, _flag_b)) goto L_470439D6; /* 0x470439CA: jne 0x470439d6 */ 5866 L_470439CC: 5867 edi = POP32_VAL(esp); /* 0x470439CC: pop edi */ 5868 esi = POP32_VAL(esp); /* 0x470439CD: pop esi */ 5869 ebp = POP32_VAL(esp); /* 0x470439CE: pop ebp */ 5870 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5871 eax = eax | 0xFFFFFFFFu; /* 0x470439CF: or eax, 0xffffffff */ 5872 _cf = 0; 5873 _flag_k = FK_TEST; 5874 ebx = POP32_VAL(esp); /* 0x470439D2: pop ebx */ 5875 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470439D3: ret 8 */ 5876 L_470439D6: 5877 eax = MEM32(esp + 0x18); /* 0x470439D6: mov eax, dword ptr [esp + 0x18] */ 5878 /* test eax, eax */ /* 0x470439DA: test eax, eax */ 5879 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5880 _cf = 0; 5881 _flag_k = FK_TEST; 5882 if (TEST_LE(_flag_a, _flag_b)) goto L_470439F0; /* 0x470439DC: jle 0x470439f0 */ 5883 L_470439DE: 5884 eax = MEM32(esi + 0x18); /* 0x470439DE: mov eax, dword ptr [esi + 0x18] */ 5885 _flag_a = (uint32_t)(MEM32(eax + 0xC)); _flag_b = (uint32_t)(edi); 5886 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5887 MEM32(eax + 0xC) = MEM32(eax + 0xC) + edi; /* 0x470439E1: add dword ptr [eax + 0xc], edi */ 5888 _flag_k = FK_ADD; 5889 eax = MEM32(esi + 0x18); /* 0x470439E4: mov eax, dword ptr [esi + 0x18] */ 5890 ecx = MEM32(eax + 0xC); /* 0x470439E7: mov ecx, dword ptr [eax + 0xc] */ 5891 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x10)); 5892 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5893 ecx = ecx - MEM32(eax + 0x10); /* 0x470439EA: sub ecx, dword ptr [eax + 0x10] */ 5894 _flag_k = FK_CMP; 5895 MEM32(eax + 0x14) = ecx; /* 0x470439ED: mov dword ptr [eax + 0x14], ecx */ 5896 L_470439F0: 5897 edx = MEM32(esi + 0x18); /* 0x470439F0: mov edx, dword ptr [esi + 0x18] */ 5898 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8); 5899 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5900 edx = edx + 8; /* 0x470439F3: add edx, 8 */ 5901 _flag_k = FK_ADD; 5902 ecx = MEM32(edx); /* 0x470439F6: mov ecx, dword ptr [edx] */ 5903 eax = esi + 0x8; /* 0x470439F8: lea eax, [esi + 8] */ 5904 MEM32(eax) = ecx; /* 0x470439FB: mov dword ptr [eax], ecx */ 5905 ecx = MEM32(edx + 0x4); /* 0x470439FD: mov ecx, dword ptr [edx + 4] */ 5906 MEM32(eax + 0x4) = ecx; /* 0x47043A00: mov dword ptr [eax + 4], ecx */ 5907 ecx = MEM32(edx + 0x8); /* 0x47043A03: mov ecx, dword ptr [edx + 8] */ 5908 MEM32(eax + 0x8) = ecx; /* 0x47043A06: mov dword ptr [eax + 8], ecx */ 5909 edx = MEM32(edx + 0xC); /* 0x47043A09: mov edx, dword ptr [edx + 0xc] */ 5910 ecx = MEM32(esi + 0x4); /* 0x47043A0C: mov ecx, dword ptr [esi + 4] */ 5911 MEM32(eax + 0xC) = edx; /* 0x47043A0F: mov dword ptr [eax + 0xc], edx */ 5912 eax = MEM32(esi + 0xC); /* 0x47043A12: mov eax, dword ptr [esi + 0xc] */ 5913 PUSH32(esp, eax); /* 0x47043A15: push eax */ 5914 PUSH32(esp, ecx); /* 0x47043A16: push ecx */ 5915 RECOMP_ICALL(0x4700EF90u); /* 0x47043A17: call 0x4700ef90 */ /* not lifted */ 5916 RECOMP_FLAGS_IN(); 5917 ecx = eax; /* 0x47043A1C: mov ecx, eax */ 5918 RECOMP_ICALL(0x47019390u); /* 0x47043A1E: call 0x47019390 */ /* not lifted */ 5919 RECOMP_FLAGS_IN(); 5920 edi = POP32_VAL(esp); /* 0x47043A23: pop edi */ 5921 esi = POP32_VAL(esp); /* 0x47043A24: pop esi */ 5922 ebp = POP32_VAL(esp); /* 0x47043A25: pop ebp */ 5923 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5924 eax = 0; /* 0x47043A26: xor eax, eax */ 5925 _cf = 0; 5926 _flag_k = FK_TEST; 5927 ebx = POP32_VAL(esp); /* 0x47043A28: pop ebx */ 5928 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47043A29: ret 8 */ 5929 RECOMP_REGS_OUT(); 5930 } 5931 5932 void sub_47043A30(void) { 5933 int _fpu_cmp = 0; 5934 uint32_t _cf = 0; 5935 int _df = 1; 5936 uint32_t _flag_k = FK_NONE; 5937 uint32_t _flag_a = 0, _flag_b = 0; 5938 uint32_t _itail_tgt = 0; 5939 RECOMP_REGS_LOCALS 5940 RECOMP_ENTER(0x47043A30u); 5941 5942 L_47043A30: 5943 ecx = 0x4710E719u; /* 0x47043A30: mov ecx, 0x4710e719 */ 5944 RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47043A35: call dword ptr [0x470ac1c8] */ 5945 RECOMP_FLAGS_IN(); 5946 PUSH32(esp, 0x47043A50u); /* 0x47043A3B: push 0x47043a50 */ 5947 RECOMP_ICALL(0x470A32D9u); /* 0x47043A40: call 0x470a32d9 */ /* not lifted */ 5948 RECOMP_FLAGS_IN(); 5949 ecx = POP32_VAL(esp); /* 0x47043A45: pop ecx */ 5950 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47043A46: ret */ 5951 RECOMP_REGS_OUT(); 5952 } 5953 5954 void sub_47043A50(void) { 5955 int _fpu_cmp = 0; 5956 uint32_t _cf = 0; 5957 int _df = 1; 5958 uint32_t _flag_k = FK_NONE; 5959 uint32_t _flag_a = 0, _flag_b = 0; 5960 uint32_t _itail_tgt = 0; 5961 RECOMP_REGS_LOCALS 5962 RECOMP_ENTER(0x47043A50u); 5963 5964 L_47043A50: 5965 ecx = 0x4710E719u; /* 0x47043A50: mov ecx, 0x4710e719 */ 5966 L_47043A55: 5967 { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; } 5968 { RECOMP_REGS_OUT(); return; } /* end of function */ 5969 _ljump: 5970 switch (_itail_tgt) { 5971 case 0x47043A50u: goto L_47043A50; 5972 case 0x47043A55u: goto L_47043A55; 5973 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5974 } 5975 RECOMP_REGS_OUT(); 5976 } 5977 5978 void sub_47043A60(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(0x47043A60u); 5987 5988 L_47043A60: 5989 ecx = 0x4710E718u; /* 0x47043A60: mov ecx, 0x4710e718 */ 5990 RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x47043A65: call dword ptr [0x470ac1c4] */ 5991 RECOMP_FLAGS_IN(); 5992 PUSH32(esp, 0x47043A80u); /* 0x47043A6B: push 0x47043a80 */ 5993 RECOMP_ICALL(0x470A32D9u); /* 0x47043A70: call 0x470a32d9 */ /* not lifted */ 5994 RECOMP_FLAGS_IN(); 5995 ecx = POP32_VAL(esp); /* 0x47043A75: pop ecx */ 5996 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47043A76: ret */ 5997 RECOMP_REGS_OUT(); 5998 } 5999 6000 void sub_47043A80(void) { 6001 int _fpu_cmp = 0; 6002 uint32_t _cf = 0; 6003 int _df = 1; 6004 uint32_t _flag_k = FK_NONE; 6005 uint32_t _flag_a = 0, _flag_b = 0; 6006 uint32_t _itail_tgt = 0; 6007 RECOMP_REGS_LOCALS 6008 RECOMP_ENTER(0x47043A80u); 6009 6010 L_47043A80: 6011 ecx = 0x4710E718u; /* 0x47043A80: mov ecx, 0x4710e718 */ 6012 L_47043A85: 6013 { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; } 6014 { RECOMP_REGS_OUT(); return; } /* end of function */ 6015 _ljump: 6016 switch (_itail_tgt) { 6017 case 0x47043A80u: goto L_47043A80; 6018 case 0x47043A85u: goto L_47043A85; 6019 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6020 } 6021 RECOMP_REGS_OUT(); 6022 } 6023 6024 void sub_47043A90(void) { 6025 int _fpu_cmp = 0; 6026 uint32_t _cf = 0; 6027 int _df = 1; 6028 uint32_t _flag_k = FK_NONE; 6029 uint32_t _flag_a = 0, _flag_b = 0; 6030 uint32_t _itail_tgt = 0; 6031 RECOMP_REGS_LOCALS 6032 RECOMP_ENTER(0x47043A90u); 6033 6034 L_47043A90: 6035 MEM32(0x4710E710) = 0x47104A3Cu; /* 0x47043A90: mov dword ptr [0x4710e710], 0x47104a3c */ 6036 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47043A9A: ret */ 6037 RECOMP_REGS_OUT(); 6038 } 6039 6040 void sub_47043AA0(void) { 6041 int _fpu_cmp = 0; 6042 uint32_t _cf = 0; 6043 int _df = 1; 6044 uint32_t _flag_k = FK_NONE; 6045 uint32_t _flag_a = 0, _flag_b = 0; 6046 uint32_t _itail_tgt = 0; 6047 RECOMP_REGS_LOCALS 6048 RECOMP_ENTER(0x47043AA0u); 6049 6050 L_47043AA0: 6051 MEM32(0x4710E720) = 0x47104A00u; /* 0x47043AA0: mov dword ptr [0x4710e720], 0x47104a00 */ 6052 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47043AAA: ret */ 6053 RECOMP_REGS_OUT(); 6054 } 6055 6056 void sub_47043AB0(void) { 6057 int _fpu_cmp = 0; 6058 uint32_t _cf = 0; 6059 int _df = 1; 6060 uint32_t _flag_k = FK_NONE; 6061 uint32_t _flag_a = 0, _flag_b = 0; 6062 uint32_t _itail_tgt = 0; 6063 RECOMP_REGS_LOCALS 6064 RECOMP_ENTER(0x47043AB0u); 6065 6066 L_47043AB0: 6067 MEM32(0x4710E71C) = 0x47104A70u; /* 0x47043AB0: mov dword ptr [0x4710e71c], 0x47104a70 */ 6068 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47043ABA: ret */ 6069 RECOMP_REGS_OUT(); 6070 } 6071 6072 void sub_47043AC0(void) { 6073 int _fpu_cmp = 0; 6074 uint32_t _cf = 0; 6075 int _df = 1; 6076 uint32_t _flag_k = FK_NONE; 6077 uint32_t _flag_a = 0, _flag_b = 0; 6078 uint32_t _itail_tgt = 0; 6079 RECOMP_REGS_LOCALS 6080 RECOMP_ENTER(0x47043AC0u); 6081 6082 L_47043AC0: 6083 MEM32(0x4710E730) = 0x47104B6Cu; /* 0x47043AC0: mov dword ptr [0x4710e730], 0x47104b6c */ 6084 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47043ACA: ret */ 6085 RECOMP_REGS_OUT(); 6086 } 6087 6088 void sub_47043AD0(void) { 6089 int _fpu_cmp = 0; 6090 uint32_t _cf = 0; 6091 int _df = 1; 6092 uint32_t _flag_k = FK_NONE; 6093 uint32_t _flag_a = 0, _flag_b = 0; 6094 uint32_t _itail_tgt = 0; 6095 RECOMP_REGS_LOCALS 6096 RECOMP_ENTER(0x47043AD0u); 6097 6098 L_47043AD0: 6099 MEM32(0x4710E714) = 0x47104BA0u; /* 0x47043AD0: mov dword ptr [0x4710e714], 0x47104ba0 */ 6100 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47043ADA: ret */ 6101 RECOMP_REGS_OUT(); 6102 } 6103 6104 void sub_47043AE0(void) { 6105 int _fpu_cmp = 0; 6106 uint32_t _cf = 0; 6107 int _df = 1; 6108 uint32_t _flag_k = FK_NONE; 6109 uint32_t _flag_a = 0, _flag_b = 0; 6110 uint32_t _itail_tgt = 0; 6111 RECOMP_REGS_LOCALS 6112 RECOMP_ENTER(0x47043AE0u); 6113 6114 L_47043AE0: 6115 MEM32(0x4710E72C) = 0x47104BD4u; /* 0x47043AE0: mov dword ptr [0x4710e72c], 0x47104bd4 */ 6116 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47043AEA: ret */ 6117 RECOMP_REGS_OUT(); 6118 } 6119 6120 void sub_47043AF0(void) { 6121 int _fpu_cmp = 0; 6122 uint32_t _cf = 0; 6123 int _df = 1; 6124 uint32_t _flag_k = FK_NONE; 6125 uint32_t _flag_a = 0, _flag_b = 0; 6126 uint32_t _itail_tgt = 0; 6127 RECOMP_REGS_LOCALS 6128 RECOMP_ENTER(0x47043AF0u); 6129 6130 L_47043AF0: 6131 MEM32(0x4710E724) = 0x47104C0Cu; /* 0x47043AF0: mov dword ptr [0x4710e724], 0x47104c0c */ 6132 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47043AFA: ret */ 6133 RECOMP_REGS_OUT(); 6134 } 6135 6136 void sub_47043B00(void) { 6137 int _fpu_cmp = 0; 6138 uint32_t _cf = 0; 6139 int _df = 1; 6140 uint32_t _flag_k = FK_NONE; 6141 uint32_t _flag_a = 0, _flag_b = 0; 6142 uint32_t _itail_tgt = 0; 6143 RECOMP_REGS_LOCALS 6144 RECOMP_ENTER(0x47043B00u); 6145 6146 L_47043B00: 6147 MEM32(0x4710E728) = 0x47108204u; /* 0x47043B00: mov dword ptr [0x4710e728], 0x47108204 */ 6148 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47043B0A: ret */ 6149 RECOMP_REGS_OUT(); 6150 } 6151 6152 void sub_47043B10(void) { 6153 int _fpu_cmp = 0; 6154 uint32_t _cf = 0; 6155 int _df = 1; 6156 uint32_t _flag_k = FK_NONE; 6157 uint32_t _flag_a = 0, _flag_b = 0; 6158 uint32_t _itail_tgt = 0; 6159 RECOMP_REGS_LOCALS 6160 RECOMP_ENTER(0x47043B10u); 6161 6162 L_47043B10: 6163 PUSH32(esp, ebx); /* 0x47043B10: push ebx */ 6164 PUSH32(esp, esi); /* 0x47043B11: push esi */ 6165 ebx = ecx; /* 0x47043B12: mov ebx, ecx */ 6166 esi = MEM32(ebx + 0x2C); /* 0x47043B14: mov esi, dword ptr [ebx + 0x2c] */ 6167 /* test esi, esi */ /* 0x47043B17: test esi, esi */ 6168 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 6169 _cf = 0; 6170 _flag_k = FK_TEST; 6171 PUSH32(esp, edi); /* 0x47043B19: push edi */ 6172 if (TEST_Z(_flag_a, _flag_b)) goto L_47043B40; /* 0x47043B1A: je 0x47043b40 */ 6173 L_47043B1C: 6174 edi = MEM32(esi + 0x24); /* 0x47043B1C: mov edi, dword ptr [esi + 0x24] */ 6175 PUSH32(esp, 0); /* 0x47043B1F: push 0 */ 6176 ecx = esi; /* 0x47043B21: mov ecx, esi */ 6177 RECOMP_ICALL(0x47044A00u); /* 0x47043B23: call 0x47044a00 */ /* not lifted */ 6178 RECOMP_FLAGS_IN(); 6179 /* test eax, eax */ /* 0x47043B28: test eax, eax */ 6180 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6181 _cf = 0; 6182 _flag_k = FK_TEST; 6183 if (TEST_NZ(_flag_a, _flag_b)) goto L_47043B40; /* 0x47043B2A: jne 0x47043b40 */ 6184 L_47043B2C: 6185 /* test esi, esi */ /* 0x47043B2C: test esi, esi */ 6186 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 6187 _cf = 0; 6188 _flag_k = FK_TEST; 6189 if (TEST_Z(_flag_a, _flag_b)) goto L_47043B40; /* 0x47043B2E: je 0x47043b40 */ 6190 L_47043B30: 6191 eax = MEM32(esi); /* 0x47043B30: mov eax, dword ptr [esi] */ 6192 PUSH32(esp, 0); /* 0x47043B32: push 0 */ 6193 ecx = esi; /* 0x47043B34: mov ecx, esi */ 6194 RECOMP_ICALL(MEM32(eax)); /* 0x47043B36: call dword ptr [eax] */ 6195 RECOMP_FLAGS_IN(); 6196 edx = MEM32(edi); /* 0x47043B38: mov edx, dword ptr [edi] */ 6197 PUSH32(esp, esi); /* 0x47043B3A: push esi */ 6198 ecx = edi; /* 0x47043B3B: mov ecx, edi */ 6199 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47043B3D: call dword ptr [edx + 0xc] */ 6200 RECOMP_FLAGS_IN(); 6201 L_47043B40: 6202 eax = MEM32(esp + 0x10); /* 0x47043B40: mov eax, dword ptr [esp + 0x10] */ 6203 edi = POP32_VAL(esp); /* 0x47043B44: pop edi */ 6204 esi = POP32_VAL(esp); /* 0x47043B45: pop esi */ 6205 MEM32(ebx + 0x2C) = eax; /* 0x47043B46: mov dword ptr [ebx + 0x2c], eax */ 6206 MEM32(ebx + 0x4) = 0; /* 0x47043B49: mov dword ptr [ebx + 4], 0 */ 6207 MEM32(ebx + 0x8) = 0; /* 0x47043B50: mov dword ptr [ebx + 8], 0 */ 6208 ebx = POP32_VAL(esp); /* 0x47043B57: pop ebx */ 6209 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47043B58: ret 4 */ 6210 RECOMP_REGS_OUT(); 6211 } 6212 6213 void sub_47043B60(void) { 6214 int _fpu_cmp = 0; 6215 uint32_t _cf = 0; 6216 int _df = 1; 6217 uint32_t _flag_k = FK_NONE; 6218 uint32_t _flag_a = 0, _flag_b = 0; 6219 uint32_t _itail_tgt = 0; 6220 RECOMP_REGS_LOCALS 6221 RECOMP_ENTER(0x47043B60u); 6222 6223 L_47043B60: 6224 PUSH32(esp, ebx); /* 0x47043B60: push ebx */ 6225 PUSH32(esp, esi); /* 0x47043B61: push esi */ 6226 eax = ecx; /* 0x47043B62: mov eax, ecx */ 6227 ecx = MEM32(eax + 0x2C); /* 0x47043B64: mov ecx, dword ptr [eax + 0x2c] */ 6228 esi = MEM32(ecx + 0xC); /* 0x47043B67: mov esi, dword ptr [ecx + 0xc] */ 6229 edx = MEM32(ecx + 0x14); /* 0x47043B6A: mov edx, dword ptr [ecx + 0x14] */ 6230 PUSH32(esp, edi); /* 0x47043B6D: push edi */ 6231 edi = MEM32(eax + 0x8); /* 0x47043B6E: mov edi, dword ptr [eax + 8] */ 6232 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 6233 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6234 esi = esi - edi; /* 0x47043B71: sub esi, edi */ 6235 _flag_k = FK_CMP; 6236 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 6237 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6238 esi = esi - edx; /* 0x47043B73: sub esi, edx */ 6239 _flag_k = FK_CMP; 6240 ebx = edx; /* 0x47043B75: mov ebx, edx */ 6241 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 6242 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6243 esi = esi + ebx; /* 0x47043B77: add esi, ebx */ 6244 _flag_k = FK_ADD; 6245 ebx = MEM32(esp + 0x14); /* 0x47043B79: mov ebx, dword ptr [esp + 0x14] */ 6246 /* cmp esi, ebx */ /* 0x47043B7D: cmp esi, ebx */ 6247 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 6248 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6249 _flag_k = FK_CMP; 6250 if (CMP_AE(_flag_a, _flag_b)) goto L_47043B8A; /* 0x47043B7F: jae 0x47043b8a */ 6251 L_47043B81: 6252 edi = POP32_VAL(esp); /* 0x47043B81: pop edi */ 6253 esi = POP32_VAL(esp); /* 0x47043B82: pop esi */ 6254 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6255 eax = eax | 0xFFFFFFFFu; /* 0x47043B83: or eax, 0xffffffff */ 6256 _cf = 0; 6257 _flag_k = FK_TEST; 6258 ebx = POP32_VAL(esp); /* 0x47043B86: pop ebx */ 6259 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47043B87: ret 8 */ 6260 L_47043B8A: 6261 esi = MEM32(esp + 0x10); /* 0x47043B8A: mov esi, dword ptr [esp + 0x10] */ 6262 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 6263 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6264 edi = edi + edx; /* 0x47043B8E: add edi, edx */ 6265 _flag_k = FK_ADD; 6266 ecx = ebx; /* 0x47043B90: mov ecx, ebx */ 6267 edx = ecx; /* 0x47043B92: mov edx, ecx */ 6268 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47043B94: shr ecx, 2 */ 6269 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6270 ecx = ecx >> 2u; /* 0x47043B94: shr ecx, 2 */ 6271 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47043B97: 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; } 6272 ecx = edx; /* 0x47043B99: mov ecx, edx */ 6273 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 6274 ecx = ecx & 3; /* 0x47043B9B: and ecx, 3 */ 6275 _cf = 0; 6276 _flag_k = FK_TEST; 6277 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47043B9E: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 6278 ecx = MEM32(eax + 0x8); /* 0x47043BA0: mov ecx, dword ptr [eax + 8] */ 6279 edi = POP32_VAL(esp); /* 0x47043BA3: pop edi */ 6280 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 6281 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6282 ecx = ecx + ebx; /* 0x47043BA4: add ecx, ebx */ 6283 _flag_k = FK_ADD; 6284 esi = POP32_VAL(esp); /* 0x47043BA6: pop esi */ 6285 MEM32(eax + 0x8) = ecx; /* 0x47043BA7: mov dword ptr [eax + 8], ecx */ 6286 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6287 eax = 0; /* 0x47043BAA: xor eax, eax */ 6288 _cf = 0; 6289 _flag_k = FK_TEST; 6290 ebx = POP32_VAL(esp); /* 0x47043BAC: pop ebx */ 6291 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47043BAD: ret 8 */ 6292 RECOMP_REGS_OUT(); 6293 } 6294 6295 void sub_47043BB0(void) { 6296 int _fpu_cmp = 0; 6297 uint32_t _cf = 0; 6298 int _df = 1; 6299 uint32_t _flag_k = FK_NONE; 6300 uint32_t _flag_a = 0, _flag_b = 0; 6301 uint32_t _itail_tgt = 0; 6302 RECOMP_REGS_LOCALS 6303 RECOMP_ENTER(0x47043BB0u); 6304 6305 L_47043BB0: 6306 edx = ecx; /* 0x47043BB0: mov edx, ecx */ 6307 PUSH32(esp, ebx); /* 0x47043BB2: push ebx */ 6308 ebx = MEM32(edx + 0x2C); /* 0x47043BB3: mov ebx, dword ptr [edx + 0x2c] */ 6309 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 6310 ecx = ecx | 0xFFFFFFFFu; /* 0x47043BB6: or ecx, 0xffffffff */ 6311 _cf = 0; 6312 _flag_k = FK_TEST; 6313 PUSH32(esp, ebp); /* 0x47043BB9: push ebp */ 6314 ebp = MEM32(edx + 0x8); /* 0x47043BBA: mov ebp, dword ptr [edx + 8] */ 6315 PUSH32(esp, esi); /* 0x47043BBD: push esi */ 6316 esi = MEM32(esp + 0x10); /* 0x47043BBE: mov esi, dword ptr [esp + 0x10] */ 6317 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6318 eax = 0; /* 0x47043BC2: xor eax, eax */ 6319 _cf = 0; 6320 _flag_k = FK_TEST; 6321 PUSH32(esp, edi); /* 0x47043BC4: push edi */ 6322 edi = esi; /* 0x47043BC5: mov edi, esi */ 6323 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x47043BC7: repne scasb al, byte ptr es:[edi] */ 6324 edi = MEM32(ebx + 0x14); /* 0x47043BC9: mov edi, dword ptr [ebx + 0x14] */ 6325 ecx = ~ecx; /* 0x47043BCC: not ecx */ 6326 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6327 ecx = ecx - 1; /* 0x47043BCE: dec ecx */ 6328 _flag_k = FK_DEC; 6329 eax = ecx; /* 0x47043BCF: mov eax, ecx */ 6330 ecx = MEM32(ebx + 0xC); /* 0x47043BD1: mov ecx, dword ptr [ebx + 0xc] */ 6331 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebp); 6332 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6333 ecx = ecx - ebp; /* 0x47043BD4: sub ecx, ebp */ 6334 _flag_k = FK_CMP; 6335 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 6336 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6337 ecx = ecx - edi; /* 0x47043BD6: sub ecx, edi */ 6338 _flag_k = FK_CMP; 6339 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6340 eax = eax + 1; /* 0x47043BD8: inc eax */ 6341 _flag_k = FK_INC; 6342 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 6343 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6344 ecx = ecx + edi; /* 0x47043BD9: add ecx, edi */ 6345 _flag_k = FK_ADD; 6346 /* cmp ecx, eax */ /* 0x47043BDB: cmp ecx, eax */ 6347 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6348 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6349 _flag_k = FK_CMP; 6350 if (CMP_AE(_flag_a, _flag_b)) goto L_47043BE9; /* 0x47043BDD: jae 0x47043be9 */ 6351 L_47043BDF: 6352 edi = POP32_VAL(esp); /* 0x47043BDF: pop edi */ 6353 esi = POP32_VAL(esp); /* 0x47043BE0: pop esi */ 6354 ebp = POP32_VAL(esp); /* 0x47043BE1: pop ebp */ 6355 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6356 eax = eax | 0xFFFFFFFFu; /* 0x47043BE2: or eax, 0xffffffff */ 6357 _cf = 0; 6358 _flag_k = FK_TEST; 6359 ebx = POP32_VAL(esp); /* 0x47043BE5: pop ebx */ 6360 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47043BE6: ret 4 */ 6361 L_47043BE9: 6362 ecx = eax; /* 0x47043BE9: mov ecx, eax */ 6363 ebx = ecx; /* 0x47043BEB: mov ebx, ecx */ 6364 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47043BED: shr ecx, 2 */ 6365 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6366 ecx = ecx >> 2u; /* 0x47043BED: shr ecx, 2 */ 6367 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebp); 6368 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6369 edi = edi + ebp; /* 0x47043BF0: add edi, ebp */ 6370 _flag_k = FK_ADD; 6371 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47043BF2: 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; } 6372 ecx = ebx; /* 0x47043BF4: mov ecx, ebx */ 6373 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 6374 ecx = ecx & 3; /* 0x47043BF6: and ecx, 3 */ 6375 _cf = 0; 6376 _flag_k = FK_TEST; 6377 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47043BF9: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 6378 ecx = MEM32(edx + 0x8); /* 0x47043BFB: mov ecx, dword ptr [edx + 8] */ 6379 edi = POP32_VAL(esp); /* 0x47043BFE: pop edi */ 6380 esi = POP32_VAL(esp); /* 0x47043BFF: pop esi */ 6381 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6382 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6383 ecx = ecx + eax; /* 0x47043C00: add ecx, eax */ 6384 _flag_k = FK_ADD; 6385 ebp = POP32_VAL(esp); /* 0x47043C02: pop ebp */ 6386 MEM32(edx + 0x8) = ecx; /* 0x47043C03: mov dword ptr [edx + 8], ecx */ 6387 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6388 eax = 0; /* 0x47043C06: xor eax, eax */ 6389 _cf = 0; 6390 _flag_k = FK_TEST; 6391 ebx = POP32_VAL(esp); /* 0x47043C08: pop ebx */ 6392 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47043C09: ret 4 */ 6393 RECOMP_REGS_OUT(); 6394 } 6395 6396 void sub_47043C10(void) { 6397 int _fpu_cmp = 0; 6398 uint32_t _cf = 0; 6399 int _df = 1; 6400 uint32_t _flag_k = FK_NONE; 6401 uint32_t _flag_a = 0, _flag_b = 0; 6402 uint32_t _itail_tgt = 0; 6403 RECOMP_REGS_LOCALS 6404 RECOMP_ENTER(0x47043C10u); 6405 6406 L_47043C10: 6407 PUSH32(esp, esi); /* 0x47043C10: push esi */ 6408 esi = ecx; /* 0x47043C11: mov esi, ecx */ 6409 eax = MEM32(esi + 0x2C); /* 0x47043C13: mov eax, dword ptr [esi + 0x2c] */ 6410 eax = MEM32(eax + 0x14); /* 0x47043C16: mov eax, dword ptr [eax + 0x14] */ 6411 ecx = MEM32(esi + 0x4); /* 0x47043C19: mov ecx, dword ptr [esi + 4] */ 6412 edx = ecx + eax; /* 0x47043C1C: lea edx, [ecx + eax] */ 6413 /* cmp edx, eax */ /* 0x47043C1F: cmp edx, eax */ 6414 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 6415 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6416 _flag_k = FK_CMP; 6417 if (CMP_BE(_flag_a, _flag_b)) goto L_47043C40; /* 0x47043C21: jbe 0x47043c40 */ 6418 L_47043C23: 6419 PUSH32(esp, edi); /* 0x47043C23: push edi */ 6420 edi = MEM32(esi + 0x8); /* 0x47043C24: mov edi, dword ptr [esi + 8] */ 6421 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 6422 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6423 edi = edi - ecx; /* 0x47043C27: sub edi, ecx */ 6424 _flag_k = FK_CMP; 6425 PUSH32(esp, edi); /* 0x47043C29: push edi */ 6426 PUSH32(esp, edx); /* 0x47043C2A: push edx */ 6427 PUSH32(esp, eax); /* 0x47043C2B: push eax */ 6428 RECOMP_ICALL(MEM32(0x470AC38C)); /* 0x47043C2C: call dword ptr [0x470ac38c] */ 6429 RECOMP_FLAGS_IN(); 6430 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6431 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6432 esp = esp + 0xCu; /* 0x47043C32: add esp, 0xc */ 6433 _flag_k = FK_ADD; 6434 MEM32(esi + 0x8) = edi; /* 0x47043C35: mov dword ptr [esi + 8], edi */ 6435 MEM32(esi + 0x4) = 0; /* 0x47043C38: mov dword ptr [esi + 4], 0 */ 6436 edi = POP32_VAL(esp); /* 0x47043C3F: pop edi */ 6437 L_47043C40: 6438 esi = POP32_VAL(esp); /* 0x47043C40: pop esi */ 6439 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47043C41: ret */ 6440 RECOMP_REGS_OUT(); 6441 } 6442 6443 void sub_47043C50(void) { 6444 int _fpu_cmp = 0; 6445 uint32_t _cf = 0; 6446 int _df = 1; 6447 uint32_t _flag_k = FK_NONE; 6448 uint32_t _flag_a = 0, _flag_b = 0; 6449 uint32_t _itail_tgt = 0; 6450 RECOMP_REGS_LOCALS 6451 RECOMP_ENTER(0x47043C50u); 6452 6453 L_47043C50: 6454 PUSH32(esp, ecx); /* 0x47043C50: push ecx */ 6455 PUSH32(esp, ebx); /* 0x47043C51: push ebx */ 6456 ebx = MEM32(0x470AC150); /* 0x47043C52: mov ebx, dword ptr [0x470ac150] */ 6457 PUSH32(esp, ebp); /* 0x47043C58: push ebp */ 6458 PUSH32(esp, esi); /* 0x47043C59: push esi */ 6459 PUSH32(esp, edi); /* 0x47043C5A: push edi */ 6460 esi = ecx; /* 0x47043C5B: mov esi, ecx */ 6461 RECOMP_ICALL(ebx); /* 0x47043C5D: call ebx */ 6462 RECOMP_FLAGS_IN(); 6463 ebp = MEM32(0x470AC3C8); /* 0x47043C5F: mov ebp, dword ptr [0x470ac3c8] */ 6464 edi = eax; /* 0x47043C65: mov edi, eax */ 6465 RECOMP_ICALL(ebp); /* 0x47043C67: call ebp */ 6466 RECOMP_FLAGS_IN(); 6467 eax = MEM32(eax); /* 0x47043C69: mov eax, dword ptr [eax] */ 6468 /* test eax, eax */ /* 0x47043C6B: test eax, eax */ 6469 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6470 _cf = 0; 6471 _flag_k = FK_TEST; 6472 MEM32(esp + 0x10) = edi; /* 0x47043C6D: mov dword ptr [esp + 0x10], edi */ 6473 if (TEST_Z(_flag_a, _flag_b)) goto L_47043C77; /* 0x47043C71: je 0x47043c77 */ 6474 L_47043C73: 6475 MEM32(esp + 0x10) = eax; /* 0x47043C73: mov dword ptr [esp + 0x10], eax */ 6476 L_47043C77: 6477 RECOMP_ICALL(0x47039020u); /* 0x47043C77: call 0x47039020 */ /* not lifted */ 6478 RECOMP_FLAGS_IN(); 6479 edi = eax; /* 0x47043C7C: mov edi, eax */ 6480 ecx = edi; /* 0x47043C7E: mov ecx, edi */ 6481 RECOMP_ICALL(0x4703B210u); /* 0x47043C80: call 0x4703b210 */ /* not lifted */ 6482 RECOMP_FLAGS_IN(); 6483 PUSH32(esp, eax); /* 0x47043C85: push eax */ 6484 ecx = edi; /* 0x47043C86: mov ecx, edi */ 6485 RECOMP_ICALL(0x4703B240u); /* 0x47043C88: call 0x4703b240 */ /* not lifted */ 6486 RECOMP_FLAGS_IN(); 6487 PUSH32(esp, eax); /* 0x47043C8D: push eax */ 6488 ecx = edi; /* 0x47043C8E: mov ecx, edi */ 6489 RECOMP_ICALL(0x4703B080u); /* 0x47043C90: call 0x4703b080 */ /* not lifted */ 6490 RECOMP_FLAGS_IN(); 6491 PUSH32(esp, eax); /* 0x47043C95: push eax */ 6492 eax = MEM32(esp + 0x1C); /* 0x47043C96: mov eax, dword ptr [esp + 0x1c] */ 6493 PUSH32(esp, eax); /* 0x47043C9A: push eax */ 6494 PUSH32(esp, 0); /* 0x47043C9B: push 0 */ 6495 PUSH32(esp, 0x82u); /* 0x47043C9D: push 0x82 */ 6496 PUSH32(esp, 0x471082E0u); /* 0x47043CA2: push 0x471082e0 */ 6497 ecx = edi; /* 0x47043CA7: mov ecx, edi */ 6498 RECOMP_ICALL(0x4703A340u); /* 0x47043CA9: call 0x4703a340 */ /* not lifted */ 6499 RECOMP_FLAGS_IN(); 6500 PUSH32(esp, esi); /* 0x47043CAE: push esi */ 6501 PUSH32(esp, 0x471052CCu); /* 0x47043CAF: push 0x471052cc */ 6502 PUSH32(esp, 4); /* 0x47043CB4: push 4 */ 6503 PUSH32(esp, edi); /* 0x47043CB6: push edi */ 6504 RECOMP_ICALL(0x47039830u); /* 0x47043CB7: call 0x47039830 */ /* not lifted */ 6505 RECOMP_FLAGS_IN(); 6506 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6507 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6508 esp = esp + 0x10u; /* 0x47043CBC: add esp, 0x10 */ 6509 _flag_k = FK_ADD; 6510 RECOMP_ICALL(ebx); /* 0x47043CBF: call ebx */ 6511 RECOMP_FLAGS_IN(); 6512 edi = eax; /* 0x47043CC1: mov edi, eax */ 6513 RECOMP_ICALL(ebp); /* 0x47043CC3: call ebp */ 6514 RECOMP_FLAGS_IN(); 6515 eax = MEM32(eax); /* 0x47043CC5: mov eax, dword ptr [eax] */ 6516 /* test eax, eax */ /* 0x47043CC7: test eax, eax */ 6517 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6518 _cf = 0; 6519 _flag_k = FK_TEST; 6520 MEM32(esp + 0x10) = edi; /* 0x47043CC9: mov dword ptr [esp + 0x10], edi */ 6521 if (TEST_Z(_flag_a, _flag_b)) goto L_47043CD3; /* 0x47043CCD: je 0x47043cd3 */ 6522 L_47043CCF: 6523 MEM32(esp + 0x10) = eax; /* 0x47043CCF: mov dword ptr [esp + 0x10], eax */ 6524 L_47043CD3: 6525 RECOMP_ICALL(0x47039020u); /* 0x47043CD3: call 0x47039020 */ /* not lifted */ 6526 RECOMP_FLAGS_IN(); 6527 edi = eax; /* 0x47043CD8: mov edi, eax */ 6528 ecx = edi; /* 0x47043CDA: mov ecx, edi */ 6529 RECOMP_ICALL(0x4703B210u); /* 0x47043CDC: call 0x4703b210 */ /* not lifted */ 6530 RECOMP_FLAGS_IN(); 6531 PUSH32(esp, eax); /* 0x47043CE1: push eax */ 6532 ecx = edi; /* 0x47043CE2: mov ecx, edi */ 6533 RECOMP_ICALL(0x4703B240u); /* 0x47043CE4: call 0x4703b240 */ /* not lifted */ 6534 RECOMP_FLAGS_IN(); 6535 PUSH32(esp, eax); /* 0x47043CE9: push eax */ 6536 ecx = edi; /* 0x47043CEA: mov ecx, edi */ 6537 RECOMP_ICALL(0x4703B080u); /* 0x47043CEC: call 0x4703b080 */ /* not lifted */ 6538 RECOMP_FLAGS_IN(); 6539 ecx = MEM32(esp + 0x18); /* 0x47043CF1: mov ecx, dword ptr [esp + 0x18] */ 6540 PUSH32(esp, eax); /* 0x47043CF5: push eax */ 6541 PUSH32(esp, ecx); /* 0x47043CF6: push ecx */ 6542 PUSH32(esp, 0); /* 0x47043CF7: push 0 */ 6543 PUSH32(esp, 0x93u); /* 0x47043CF9: push 0x93 */ 6544 PUSH32(esp, 0x471082E0u); /* 0x47043CFE: push 0x471082e0 */ 6545 ecx = edi; /* 0x47043D03: mov ecx, edi */ 6546 RECOMP_ICALL(0x4703A340u); /* 0x47043D05: call 0x4703a340 */ /* not lifted */ 6547 RECOMP_FLAGS_IN(); 6548 edx = MEM32(esi + 0x20); /* 0x47043D0A: mov edx, dword ptr [esi + 0x20] */ 6549 eax = MEM32(esi + 0x1C); /* 0x47043D0D: mov eax, dword ptr [esi + 0x1c] */ 6550 ecx = MEM32(esi + 0x14); /* 0x47043D10: mov ecx, dword ptr [esi + 0x14] */ 6551 PUSH32(esp, edx); /* 0x47043D13: push edx */ 6552 edx = MEM32(esi + 0x10); /* 0x47043D14: mov edx, dword ptr [esi + 0x10] */ 6553 PUSH32(esp, eax); /* 0x47043D17: push eax */ 6554 eax = MEM32(esi + 0xC); /* 0x47043D18: mov eax, dword ptr [esi + 0xc] */ 6555 PUSH32(esp, ecx); /* 0x47043D1B: push ecx */ 6556 ecx = MEM32(esi + 0x8); /* 0x47043D1C: mov ecx, dword ptr [esi + 8] */ 6557 PUSH32(esp, edx); /* 0x47043D1F: push edx */ 6558 edx = MEM32(esi + 0x4); /* 0x47043D20: mov edx, dword ptr [esi + 4] */ 6559 PUSH32(esp, eax); /* 0x47043D23: push eax */ 6560 PUSH32(esp, ecx); /* 0x47043D24: push ecx */ 6561 PUSH32(esp, edx); /* 0x47043D25: push edx */ 6562 PUSH32(esp, 0x4710823Cu); /* 0x47043D26: push 0x4710823c */ 6563 PUSH32(esp, 4); /* 0x47043D2B: push 4 */ 6564 PUSH32(esp, edi); /* 0x47043D2D: push edi */ 6565 RECOMP_ICALL(0x47039830u); /* 0x47043D2E: call 0x47039830 */ /* not lifted */ 6566 RECOMP_FLAGS_IN(); 6567 ecx = MEM32(esi + 0x18); /* 0x47043D33: mov ecx, dword ptr [esi + 0x18] */ 6568 eax = MEM32(ecx); /* 0x47043D36: mov eax, dword ptr [ecx] */ 6569 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u); 6570 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6571 esp = esp + 0x28u; /* 0x47043D38: add esp, 0x28 */ 6572 _flag_k = FK_ADD; 6573 RECOMP_ICALL(MEM32(eax + 0x3C)); /* 0x47043D3B: call dword ptr [eax + 0x3c] */ 6574 RECOMP_FLAGS_IN(); 6575 RECOMP_ICALL(ebx); /* 0x47043D3E: call ebx */ 6576 RECOMP_FLAGS_IN(); 6577 esi = eax; /* 0x47043D40: mov esi, eax */ 6578 RECOMP_ICALL(ebp); /* 0x47043D42: call ebp */ 6579 RECOMP_FLAGS_IN(); 6580 eax = MEM32(eax); /* 0x47043D44: mov eax, dword ptr [eax] */ 6581 /* test eax, eax */ /* 0x47043D46: test eax, eax */ 6582 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6583 _cf = 0; 6584 _flag_k = FK_TEST; 6585 edi = esi; /* 0x47043D48: mov edi, esi */ 6586 if (TEST_Z(_flag_a, _flag_b)) goto L_47043D4E; /* 0x47043D4A: je 0x47043d4e */ 6587 L_47043D4C: 6588 edi = eax; /* 0x47043D4C: mov edi, eax */ 6589 L_47043D4E: 6590 RECOMP_ICALL(0x47039020u); /* 0x47043D4E: call 0x47039020 */ /* not lifted */ 6591 RECOMP_FLAGS_IN(); 6592 esi = eax; /* 0x47043D53: mov esi, eax */ 6593 ecx = esi; /* 0x47043D55: mov ecx, esi */ 6594 RECOMP_ICALL(0x4703B210u); /* 0x47043D57: call 0x4703b210 */ /* not lifted */ 6595 RECOMP_FLAGS_IN(); 6596 PUSH32(esp, eax); /* 0x47043D5C: push eax */ 6597 ecx = esi; /* 0x47043D5D: mov ecx, esi */ 6598 RECOMP_ICALL(0x4703B240u); /* 0x47043D5F: call 0x4703b240 */ /* not lifted */ 6599 RECOMP_FLAGS_IN(); 6600 PUSH32(esp, eax); /* 0x47043D64: push eax */ 6601 ecx = esi; /* 0x47043D65: mov ecx, esi */ 6602 RECOMP_ICALL(0x4703B080u); /* 0x47043D67: call 0x4703b080 */ /* not lifted */ 6603 RECOMP_FLAGS_IN(); 6604 PUSH32(esp, eax); /* 0x47043D6C: push eax */ 6605 PUSH32(esp, edi); /* 0x47043D6D: push edi */ 6606 PUSH32(esp, 0); /* 0x47043D6E: push 0 */ 6607 PUSH32(esp, 0x95u); /* 0x47043D70: push 0x95 */ 6608 PUSH32(esp, 0x471082E0u); /* 0x47043D75: push 0x471082e0 */ 6609 ecx = esi; /* 0x47043D7A: mov ecx, esi */ 6610 RECOMP_ICALL(0x4703A340u); /* 0x47043D7C: call 0x4703a340 */ /* not lifted */ 6611 RECOMP_FLAGS_IN(); 6612 PUSH32(esp, 0x4710529Cu); /* 0x47043D81: push 0x4710529c */ 6613 PUSH32(esp, 4); /* 0x47043D86: push 4 */ 6614 PUSH32(esp, esi); /* 0x47043D88: push esi */ 6615 RECOMP_ICALL(0x47039830u); /* 0x47043D89: call 0x47039830 */ /* not lifted */ 6616 RECOMP_FLAGS_IN(); 6617 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6618 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6619 esp = esp + 0xCu; /* 0x47043D8E: add esp, 0xc */ 6620 _flag_k = FK_ADD; 6621 edi = POP32_VAL(esp); /* 0x47043D91: pop edi */ 6622 esi = POP32_VAL(esp); /* 0x47043D92: pop esi */ 6623 ebp = POP32_VAL(esp); /* 0x47043D93: pop ebp */ 6624 ebx = POP32_VAL(esp); /* 0x47043D94: pop ebx */ 6625 ecx = POP32_VAL(esp); /* 0x47043D95: pop ecx */ 6626 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47043D96: ret */ 6627 RECOMP_REGS_OUT(); 6628 } 6629 6630 void sub_47043DA0(void) { 6631 int _fpu_cmp = 0; 6632 uint32_t _cf = 0; 6633 int _df = 1; 6634 uint32_t _flag_k = FK_NONE; 6635 uint32_t _flag_a = 0, _flag_b = 0; 6636 uint32_t _itail_tgt = 0; 6637 RECOMP_REGS_LOCALS 6638 RECOMP_ENTER(0x47043DA0u); 6639 6640 L_47043DA0: 6641 PUSH32(esp, ecx); /* 0x47043DA0: push ecx */ 6642 PUSH32(esp, ebx); /* 0x47043DA1: push ebx */ 6643 ebx = MEM32(0x470AC150); /* 0x47043DA2: mov ebx, dword ptr [0x470ac150] */ 6644 PUSH32(esp, ebp); /* 0x47043DA8: push ebp */ 6645 PUSH32(esp, esi); /* 0x47043DA9: push esi */ 6646 PUSH32(esp, edi); /* 0x47043DAA: push edi */ 6647 esi = ecx; /* 0x47043DAB: mov esi, ecx */ 6648 RECOMP_ICALL(ebx); /* 0x47043DAD: call ebx */ 6649 RECOMP_FLAGS_IN(); 6650 ebp = MEM32(0x470AC3C8); /* 0x47043DAF: mov ebp, dword ptr [0x470ac3c8] */ 6651 edi = eax; /* 0x47043DB5: mov edi, eax */ 6652 RECOMP_ICALL(ebp); /* 0x47043DB7: call ebp */ 6653 RECOMP_FLAGS_IN(); 6654 eax = MEM32(eax); /* 0x47043DB9: mov eax, dword ptr [eax] */ 6655 /* test eax, eax */ /* 0x47043DBB: test eax, eax */ 6656 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6657 _cf = 0; 6658 _flag_k = FK_TEST; 6659 MEM32(esp + 0x10) = edi; /* 0x47043DBD: mov dword ptr [esp + 0x10], edi */ 6660 if (TEST_Z(_flag_a, _flag_b)) goto L_47043DC7; /* 0x47043DC1: je 0x47043dc7 */ 6661 L_47043DC3: 6662 MEM32(esp + 0x10) = eax; /* 0x47043DC3: mov dword ptr [esp + 0x10], eax */ 6663 L_47043DC7: 6664 RECOMP_ICALL(0x47039020u); /* 0x47043DC7: call 0x47039020 */ /* not lifted */ 6665 RECOMP_FLAGS_IN(); 6666 edi = eax; /* 0x47043DCC: mov edi, eax */ 6667 ecx = edi; /* 0x47043DCE: mov ecx, edi */ 6668 RECOMP_ICALL(0x4703B210u); /* 0x47043DD0: call 0x4703b210 */ /* not lifted */ 6669 RECOMP_FLAGS_IN(); 6670 PUSH32(esp, eax); /* 0x47043DD5: push eax */ 6671 ecx = edi; /* 0x47043DD6: mov ecx, edi */ 6672 RECOMP_ICALL(0x4703B240u); /* 0x47043DD8: call 0x4703b240 */ /* not lifted */ 6673 RECOMP_FLAGS_IN(); 6674 PUSH32(esp, eax); /* 0x47043DDD: push eax */ 6675 ecx = edi; /* 0x47043DDE: mov ecx, edi */ 6676 RECOMP_ICALL(0x4703B080u); /* 0x47043DE0: call 0x4703b080 */ /* not lifted */ 6677 RECOMP_FLAGS_IN(); 6678 PUSH32(esp, eax); /* 0x47043DE5: push eax */ 6679 eax = MEM32(esp + 0x1C); /* 0x47043DE6: mov eax, dword ptr [esp + 0x1c] */ 6680 PUSH32(esp, eax); /* 0x47043DEA: push eax */ 6681 PUSH32(esp, 0); /* 0x47043DEB: push 0 */ 6682 PUSH32(esp, 0x9Cu); /* 0x47043DED: push 0x9c */ 6683 PUSH32(esp, 0x471082E0u); /* 0x47043DF2: push 0x471082e0 */ 6684 ecx = edi; /* 0x47043DF7: mov ecx, edi */ 6685 RECOMP_ICALL(0x4703A340u); /* 0x47043DF9: call 0x4703a340 */ /* not lifted */ 6686 RECOMP_FLAGS_IN(); 6687 PUSH32(esp, esi); /* 0x47043DFE: push esi */ 6688 PUSH32(esp, 0x471052CCu); /* 0x47043DFF: push 0x471052cc */ 6689 PUSH32(esp, 4); /* 0x47043E04: push 4 */ 6690 PUSH32(esp, edi); /* 0x47043E06: push edi */ 6691 RECOMP_ICALL(0x47039830u); /* 0x47043E07: call 0x47039830 */ /* not lifted */ 6692 RECOMP_FLAGS_IN(); 6693 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6694 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6695 esp = esp + 0x10u; /* 0x47043E0C: add esp, 0x10 */ 6696 _flag_k = FK_ADD; 6697 RECOMP_ICALL(ebx); /* 0x47043E0F: call ebx */ 6698 RECOMP_FLAGS_IN(); 6699 edi = eax; /* 0x47043E11: mov edi, eax */ 6700 RECOMP_ICALL(ebp); /* 0x47043E13: call ebp */ 6701 RECOMP_FLAGS_IN(); 6702 eax = MEM32(eax); /* 0x47043E15: mov eax, dword ptr [eax] */ 6703 /* test eax, eax */ /* 0x47043E17: test eax, eax */ 6704 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6705 _cf = 0; 6706 _flag_k = FK_TEST; 6707 MEM32(esp + 0x10) = edi; /* 0x47043E19: mov dword ptr [esp + 0x10], edi */ 6708 if (TEST_Z(_flag_a, _flag_b)) goto L_47043E23; /* 0x47043E1D: je 0x47043e23 */ 6709 L_47043E1F: 6710 MEM32(esp + 0x10) = eax; /* 0x47043E1F: mov dword ptr [esp + 0x10], eax */ 6711 L_47043E23: 6712 RECOMP_ICALL(0x47039020u); /* 0x47043E23: call 0x47039020 */ /* not lifted */ 6713 RECOMP_FLAGS_IN(); 6714 edi = eax; /* 0x47043E28: mov edi, eax */ 6715 ecx = edi; /* 0x47043E2A: mov ecx, edi */ 6716 RECOMP_ICALL(0x4703B210u); /* 0x47043E2C: call 0x4703b210 */ /* not lifted */ 6717 RECOMP_FLAGS_IN(); 6718 PUSH32(esp, eax); /* 0x47043E31: push eax */ 6719 ecx = edi; /* 0x47043E32: mov ecx, edi */ 6720 RECOMP_ICALL(0x4703B240u); /* 0x47043E34: call 0x4703b240 */ /* not lifted */ 6721 RECOMP_FLAGS_IN(); 6722 PUSH32(esp, eax); /* 0x47043E39: push eax */ 6723 ecx = edi; /* 0x47043E3A: mov ecx, edi */ 6724 RECOMP_ICALL(0x4703B080u); /* 0x47043E3C: call 0x4703b080 */ /* not lifted */ 6725 RECOMP_FLAGS_IN(); 6726 ecx = MEM32(esp + 0x18); /* 0x47043E41: mov ecx, dword ptr [esp + 0x18] */ 6727 PUSH32(esp, eax); /* 0x47043E45: push eax */ 6728 PUSH32(esp, ecx); /* 0x47043E46: push ecx */ 6729 PUSH32(esp, 0); /* 0x47043E47: push 0 */ 6730 PUSH32(esp, 0xABu); /* 0x47043E49: push 0xab */ 6731 PUSH32(esp, 0x471082E0u); /* 0x47043E4E: push 0x471082e0 */ 6732 ecx = edi; /* 0x47043E53: mov ecx, edi */ 6733 RECOMP_ICALL(0x4703A340u); /* 0x47043E55: call 0x4703a340 */ /* not lifted */ 6734 RECOMP_FLAGS_IN(); 6735 edx = MEM32(esi + 0x8); /* 0x47043E5A: mov edx, dword ptr [esi + 8] */ 6736 eax = MEM32(esi + 0x4); /* 0x47043E5D: mov eax, dword ptr [esi + 4] */ 6737 ecx = MEM32(esi + 0x20); /* 0x47043E60: mov ecx, dword ptr [esi + 0x20] */ 6738 PUSH32(esp, edx); /* 0x47043E63: push edx */ 6739 edx = MEM32(esi + 0x28); /* 0x47043E64: mov edx, dword ptr [esi + 0x28] */ 6740 PUSH32(esp, eax); /* 0x47043E67: push eax */ 6741 eax = MEM32(esi + 0x24); /* 0x47043E68: mov eax, dword ptr [esi + 0x24] */ 6742 PUSH32(esp, ecx); /* 0x47043E6B: push ecx */ 6743 ecx = MEM32(esi + 0xC); /* 0x47043E6C: mov ecx, dword ptr [esi + 0xc] */ 6744 PUSH32(esp, edx); /* 0x47043E6F: push edx */ 6745 PUSH32(esp, eax); /* 0x47043E70: push eax */ 6746 PUSH32(esp, ecx); /* 0x47043E71: push ecx */ 6747 PUSH32(esp, 0x4710831Cu); /* 0x47043E72: push 0x4710831c */ 6748 PUSH32(esp, 4); /* 0x47043E77: push 4 */ 6749 PUSH32(esp, edi); /* 0x47043E79: push edi */ 6750 RECOMP_ICALL(0x47039830u); /* 0x47043E7A: call 0x47039830 */ /* not lifted */ 6751 RECOMP_FLAGS_IN(); 6752 ecx = MEM32(esi + 0x2C); /* 0x47043E7F: mov ecx, dword ptr [esi + 0x2c] */ 6753 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 6754 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6755 esp = esp + 0x24u; /* 0x47043E82: add esp, 0x24 */ 6756 _flag_k = FK_ADD; 6757 RECOMP_ICALL(0x47043C50u); /* 0x47043E85: call 0x47043c50 */ /* not lifted */ 6758 RECOMP_FLAGS_IN(); 6759 RECOMP_ICALL(ebx); /* 0x47043E8A: call ebx */ 6760 RECOMP_FLAGS_IN(); 6761 esi = eax; /* 0x47043E8C: mov esi, eax */ 6762 RECOMP_ICALL(ebp); /* 0x47043E8E: call ebp */ 6763 RECOMP_FLAGS_IN(); 6764 eax = MEM32(eax); /* 0x47043E90: mov eax, dword ptr [eax] */ 6765 /* test eax, eax */ /* 0x47043E92: test eax, eax */ 6766 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6767 _cf = 0; 6768 _flag_k = FK_TEST; 6769 edi = esi; /* 0x47043E94: mov edi, esi */ 6770 if (TEST_Z(_flag_a, _flag_b)) goto L_47043E9A; /* 0x47043E96: je 0x47043e9a */ 6771 L_47043E98: 6772 edi = eax; /* 0x47043E98: mov edi, eax */ 6773 L_47043E9A: 6774 RECOMP_ICALL(0x47039020u); /* 0x47043E9A: call 0x47039020 */ /* not lifted */ 6775 RECOMP_FLAGS_IN(); 6776 esi = eax; /* 0x47043E9F: mov esi, eax */ 6777 ecx = esi; /* 0x47043EA1: mov ecx, esi */ 6778 RECOMP_ICALL(0x4703B210u); /* 0x47043EA3: call 0x4703b210 */ /* not lifted */ 6779 RECOMP_FLAGS_IN(); 6780 PUSH32(esp, eax); /* 0x47043EA8: push eax */ 6781 ecx = esi; /* 0x47043EA9: mov ecx, esi */ 6782 RECOMP_ICALL(0x4703B240u); /* 0x47043EAB: call 0x4703b240 */ /* not lifted */ 6783 RECOMP_FLAGS_IN(); 6784 PUSH32(esp, eax); /* 0x47043EB0: push eax */ 6785 ecx = esi; /* 0x47043EB1: mov ecx, esi */ 6786 RECOMP_ICALL(0x4703B080u); /* 0x47043EB3: call 0x4703b080 */ /* not lifted */ 6787 RECOMP_FLAGS_IN(); 6788 PUSH32(esp, eax); /* 0x47043EB8: push eax */ 6789 PUSH32(esp, edi); /* 0x47043EB9: push edi */ 6790 PUSH32(esp, 0); /* 0x47043EBA: push 0 */ 6791 PUSH32(esp, 0xADu); /* 0x47043EBC: push 0xad */ 6792 PUSH32(esp, 0x471082E0u); /* 0x47043EC1: push 0x471082e0 */ 6793 ecx = esi; /* 0x47043EC6: mov ecx, esi */ 6794 RECOMP_ICALL(0x4703A340u); /* 0x47043EC8: call 0x4703a340 */ /* not lifted */ 6795 RECOMP_FLAGS_IN(); 6796 PUSH32(esp, 0x4710529Cu); /* 0x47043ECD: push 0x4710529c */ 6797 PUSH32(esp, 4); /* 0x47043ED2: push 4 */ 6798 PUSH32(esp, esi); /* 0x47043ED4: push esi */ 6799 RECOMP_ICALL(0x47039830u); /* 0x47043ED5: call 0x47039830 */ /* not lifted */ 6800 RECOMP_FLAGS_IN(); 6801 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6802 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6803 esp = esp + 0xCu; /* 0x47043EDA: add esp, 0xc */ 6804 _flag_k = FK_ADD; 6805 edi = POP32_VAL(esp); /* 0x47043EDD: pop edi */ 6806 esi = POP32_VAL(esp); /* 0x47043EDE: pop esi */ 6807 ebp = POP32_VAL(esp); /* 0x47043EDF: pop ebp */ 6808 ebx = POP32_VAL(esp); /* 0x47043EE0: pop ebx */ 6809 ecx = POP32_VAL(esp); /* 0x47043EE1: pop ecx */ 6810 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47043EE2: ret */ 6811 RECOMP_REGS_OUT(); 6812 } 6813 6814 void sub_47043EF0(void) { 6815 int _fpu_cmp = 0; 6816 uint32_t _cf = 0; 6817 int _df = 1; 6818 uint32_t _flag_k = FK_NONE; 6819 uint32_t _flag_a = 0, _flag_b = 0; 6820 uint32_t _itail_tgt = 0; 6821 RECOMP_REGS_LOCALS 6822 RECOMP_ENTER(0x47043EF0u); 6823 6824 L_47043EF0: 6825 eax = MEM32(esp + 0x4); /* 0x47043EF0: mov eax, dword ptr [esp + 4] */ 6826 PUSH32(esp, ebx); /* 0x47043EF4: push ebx */ 6827 ebx = ecx; /* 0x47043EF5: mov ebx, ecx */ 6828 /* cmp eax, MEM32(ebx + 0xC) */ /* 0x47043EF7: cmp eax, dword ptr [ebx + 0xc] */ 6829 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0xC)); 6830 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6831 _flag_k = FK_CMP; 6832 PUSH32(esp, ebp); /* 0x47043EFA: push ebp */ 6833 if (CMP_A(_flag_a, _flag_b)) goto L_47043F07; /* 0x47043EFB: ja 0x47043f07 */ 6834 L_47043EFD: 6835 MEM32(ebx + 0x8) = eax; /* 0x47043EFD: mov dword ptr [ebx + 8], eax */ 6836 ebp = POP32_VAL(esp); /* 0x47043F00: pop ebp */ 6837 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6838 eax = 0; /* 0x47043F01: xor eax, eax */ 6839 _cf = 0; 6840 _flag_k = FK_TEST; 6841 ebx = POP32_VAL(esp); /* 0x47043F03: pop ebx */ 6842 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47043F04: ret 4 */ 6843 L_47043F07: 6844 ecx = MEM32(ebx + 0x18); /* 0x47043F07: mov ecx, dword ptr [ebx + 0x18] */ 6845 edx = MEM32(ecx); /* 0x47043F0A: mov edx, dword ptr [ecx] */ 6846 PUSH32(esp, eax); /* 0x47043F0C: push eax */ 6847 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47043F0D: call dword ptr [edx + 4] */ 6848 RECOMP_FLAGS_IN(); 6849 ebp = eax; /* 0x47043F10: mov ebp, eax */ 6850 /* test ebp, ebp */ /* 0x47043F12: test ebp, ebp */ 6851 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp); 6852 _cf = 0; 6853 _flag_k = FK_TEST; 6854 if (TEST_NZ(_flag_a, _flag_b)) goto L_47043F2A; /* 0x47043F14: jne 0x47043f2a */ 6855 L_47043F16: 6856 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47043F16: call dword ptr [0x470ac3c8] */ 6857 RECOMP_FLAGS_IN(); 6858 ebp = POP32_VAL(esp); /* 0x47043F1C: pop ebp */ 6859 MEM32(eax) = 0xCu; /* 0x47043F1D: mov dword ptr [eax], 0xc */ 6860 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6861 eax = eax | 0xFFFFFFFFu; /* 0x47043F23: or eax, 0xffffffff */ 6862 _cf = 0; 6863 _flag_k = FK_TEST; 6864 ebx = POP32_VAL(esp); /* 0x47043F26: pop ebx */ 6865 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47043F27: ret 4 */ 6866 L_47043F2A: 6867 ecx = MEM32(ebx + 0x8); /* 0x47043F2A: mov ecx, dword ptr [ebx + 8] */ 6868 PUSH32(esp, esi); /* 0x47043F2D: push esi */ 6869 esi = MEM32(ebx + 0x14); /* 0x47043F2E: mov esi, dword ptr [ebx + 0x14] */ 6870 eax = ecx; /* 0x47043F31: mov eax, ecx */ 6871 PUSH32(esp, edi); /* 0x47043F33: push edi */ 6872 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47043F34: shr ecx, 2 */ 6873 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6874 ecx = ecx >> 2u; /* 0x47043F34: shr ecx, 2 */ 6875 edi = ebp; /* 0x47043F37: mov edi, ebp */ 6876 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47043F39: 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; } 6877 ecx = eax; /* 0x47043F3B: mov ecx, eax */ 6878 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 6879 ecx = ecx & 3; /* 0x47043F3D: and ecx, 3 */ 6880 _cf = 0; 6881 _flag_k = FK_TEST; 6882 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47043F40: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 6883 eax = MEM32(ebx + 0x10); /* 0x47043F42: mov eax, dword ptr [ebx + 0x10] */ 6884 /* test LO8(eax), 1 */ /* 0x47043F45: test al, 1 */ 6885 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 6886 _cf = 0; 6887 _flag_k = FK_NARROW(FK_TEST, 24); 6888 edi = POP32_VAL(esp); /* 0x47043F47: pop edi */ 6889 esi = POP32_VAL(esp); /* 0x47043F48: pop esi */ 6890 if (TEST_NZ(_flag_a, _flag_b)) goto L_47043F6B; /* 0x47043F49: jne 0x47043f6b */ 6891 L_47043F4B: 6892 ecx = MEM32(ebx + 0x18); /* 0x47043F4B: mov ecx, dword ptr [ebx + 0x18] */ 6893 eax = MEM32(ebx + 0x14); /* 0x47043F4E: mov eax, dword ptr [ebx + 0x14] */ 6894 edx = MEM32(ecx); /* 0x47043F51: mov edx, dword ptr [ecx] */ 6895 PUSH32(esp, eax); /* 0x47043F53: push eax */ 6896 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47043F54: call dword ptr [edx + 0xc] */ 6897 RECOMP_FLAGS_IN(); 6898 eax = MEM32(esp + 0xC); /* 0x47043F57: mov eax, dword ptr [esp + 0xc] */ 6899 MEM32(ebx + 0x14) = ebp; /* 0x47043F5B: mov dword ptr [ebx + 0x14], ebp */ 6900 MEM32(ebx + 0xC) = eax; /* 0x47043F5E: mov dword ptr [ebx + 0xc], eax */ 6901 MEM32(ebx + 0x8) = eax; /* 0x47043F61: mov dword ptr [ebx + 8], eax */ 6902 ebp = POP32_VAL(esp); /* 0x47043F64: pop ebp */ 6903 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6904 eax = 0; /* 0x47043F65: xor eax, eax */ 6905 _cf = 0; 6906 _flag_k = FK_TEST; 6907 ebx = POP32_VAL(esp); /* 0x47043F67: pop ebx */ 6908 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47043F68: ret 4 */ 6909 L_47043F6B: 6910 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFEu); 6911 eax = eax & 0xFFFFFFFEu; /* 0x47043F6B: and eax, 0xfffffffe */ 6912 _cf = 0; 6913 _flag_k = FK_TEST; 6914 MEM32(ebx + 0x10) = eax; /* 0x47043F6E: mov dword ptr [ebx + 0x10], eax */ 6915 eax = MEM32(esp + 0xC); /* 0x47043F71: mov eax, dword ptr [esp + 0xc] */ 6916 MEM32(ebx + 0x14) = ebp; /* 0x47043F75: mov dword ptr [ebx + 0x14], ebp */ 6917 MEM32(ebx + 0xC) = eax; /* 0x47043F78: mov dword ptr [ebx + 0xc], eax */ 6918 MEM32(ebx + 0x8) = eax; /* 0x47043F7B: mov dword ptr [ebx + 8], eax */ 6919 ebp = POP32_VAL(esp); /* 0x47043F7E: pop ebp */ 6920 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6921 eax = 0; /* 0x47043F7F: xor eax, eax */ 6922 _cf = 0; 6923 _flag_k = FK_TEST; 6924 ebx = POP32_VAL(esp); /* 0x47043F81: pop ebx */ 6925 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47043F82: ret 4 */ 6926 RECOMP_REGS_OUT(); 6927 } 6928 6929 void sub_47043F90(void) { 6930 int _fpu_cmp = 0; 6931 uint32_t _cf = 0; 6932 int _df = 1; 6933 uint32_t _flag_k = FK_NONE; 6934 uint32_t _flag_a = 0, _flag_b = 0; 6935 uint32_t _itail_tgt = 0; 6936 RECOMP_REGS_LOCALS 6937 RECOMP_ENTER(0x47043F90u); 6938 6939 L_47043F90: 6940 eax = MEM32(esp + 0x4); /* 0x47043F90: mov eax, dword ptr [esp + 4] */ 6941 ecx = MEM32(ecx + 0x2C); /* 0x47043F94: mov ecx, dword ptr [ecx + 0x2c] */ 6942 PUSH32(esp, eax); /* 0x47043F97: push eax */ 6943 RECOMP_ICALL(0x47043EF0u); /* 0x47043F98: call 0x47043ef0 */ /* not lifted */ 6944 RECOMP_FLAGS_IN(); 6945 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6946 ecx = 0; /* 0x47043F9D: xor ecx, ecx */ 6947 _cf = 0; 6948 _flag_k = FK_TEST; 6949 /* cmp eax, 0xFFFFFFFFu */ /* 0x47043F9F: cmp eax, -1 */ 6950 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 6951 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6952 _flag_k = FK_CMP; 6953 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x47043FA2: setne cl */ 6954 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6955 ecx = ecx - 1; /* 0x47043FA5: dec ecx */ 6956 _flag_k = FK_DEC; 6957 eax = ecx; /* 0x47043FA6: mov eax, ecx */ 6958 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47043FA8: ret 4 */ 6959 RECOMP_REGS_OUT(); 6960 } 6961 6962 void sub_47043FB0(void) { 6963 int _fpu_cmp = 0; 6964 uint32_t _cf = 0; 6965 int _df = 1; 6966 uint32_t _flag_k = FK_NONE; 6967 uint32_t _flag_a = 0, _flag_b = 0; 6968 uint32_t _itail_tgt = 0; 6969 RECOMP_REGS_LOCALS 6970 RECOMP_ENTER(0x47043FB0u); 6971 6972 L_47043FB0: 6973 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6974 eax = 0; /* 0x47043FB0: xor eax, eax */ 6975 _cf = 0; 6976 _flag_k = FK_TEST; 6977 /* test ecx, ecx */ /* 0x47043FB2: test ecx, ecx */ 6978 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6979 _cf = 0; 6980 _flag_k = FK_TEST; 6981 if (TEST_Z(_flag_a, _flag_b)) goto L_47043FC7; /* 0x47043FB4: je 0x47043fc7 */ 6982 L_47043FB6: 6983 PUSH32(esp, esi); /* 0x47043FB6: push esi */ 6984 L_47043FB7: 6985 edx = MEM32(ecx + 0x2C); /* 0x47043FB7: mov edx, dword ptr [ecx + 0x2c] */ 6986 esi = MEM32(edx + 0x8); /* 0x47043FBA: mov esi, dword ptr [edx + 8] */ 6987 ecx = MEM32(ecx + 0x20); /* 0x47043FBD: mov ecx, dword ptr [ecx + 0x20] */ 6988 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 6989 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6990 eax = eax + esi; /* 0x47043FC0: add eax, esi */ 6991 _flag_k = FK_ADD; 6992 /* test ecx, ecx */ /* 0x47043FC2: test ecx, ecx */ 6993 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6994 _cf = 0; 6995 _flag_k = FK_TEST; 6996 RECOMP_BACKEDGE(); 6997 if (TEST_NZ(_flag_a, _flag_b)) goto L_47043FB7; /* 0x47043FC4: jne 0x47043fb7 */ 6998 L_47043FC6: 6999 esi = POP32_VAL(esp); /* 0x47043FC6: pop esi */ 7000 L_47043FC7: 7001 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47043FC7: ret */ 7002 RECOMP_REGS_OUT(); 7003 } 7004 7005 void sub_47043FD0(void) { 7006 int _fpu_cmp = 0; 7007 uint32_t _cf = 0; 7008 int _df = 1; 7009 uint32_t _flag_k = FK_NONE; 7010 uint32_t _flag_a = 0, _flag_b = 0; 7011 uint32_t _itail_tgt = 0; 7012 RECOMP_REGS_LOCALS 7013 RECOMP_ENTER(0x47043FD0u); 7014 7015 L_47043FD0: 7016 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7017 eax = 0; /* 0x47043FD0: xor eax, eax */ 7018 _cf = 0; 7019 _flag_k = FK_TEST; 7020 /* test ecx, ecx */ /* 0x47043FD2: test ecx, ecx */ 7021 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7022 _cf = 0; 7023 _flag_k = FK_TEST; 7024 if (TEST_Z(_flag_a, _flag_b)) goto L_47043FE9; /* 0x47043FD4: je 0x47043fe9 */ 7025 L_47043FD6: 7026 PUSH32(esp, esi); /* 0x47043FD6: push esi */ 7027 L_47043FD7: 7028 edx = MEM32(ecx + 0x8); /* 0x47043FD7: mov edx, dword ptr [ecx + 8] */ 7029 esi = MEM32(ecx + 0x4); /* 0x47043FDA: mov esi, dword ptr [ecx + 4] */ 7030 ecx = MEM32(ecx + 0x20); /* 0x47043FDD: mov ecx, dword ptr [ecx + 0x20] */ 7031 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 7032 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7033 edx = edx - esi; /* 0x47043FE0: sub edx, esi */ 7034 _flag_k = FK_CMP; 7035 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 7036 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7037 eax = eax + edx; /* 0x47043FE2: add eax, edx */ 7038 _flag_k = FK_ADD; 7039 /* test ecx, ecx */ /* 0x47043FE4: test ecx, ecx */ 7040 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7041 _cf = 0; 7042 _flag_k = FK_TEST; 7043 RECOMP_BACKEDGE(); 7044 if (TEST_NZ(_flag_a, _flag_b)) goto L_47043FD7; /* 0x47043FE6: jne 0x47043fd7 */ 7045 L_47043FE8: 7046 esi = POP32_VAL(esp); /* 0x47043FE8: pop esi */ 7047 L_47043FE9: 7048 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47043FE9: ret */ 7049 RECOMP_REGS_OUT(); 7050 } 7051 7052 void sub_47043FF0(void) { 7053 int _fpu_cmp = 0; 7054 uint32_t _cf = 0; 7055 int _df = 1; 7056 uint32_t _flag_k = FK_NONE; 7057 uint32_t _flag_a = 0, _flag_b = 0; 7058 uint32_t _itail_tgt = 0; 7059 RECOMP_REGS_LOCALS 7060 RECOMP_ENTER(0x47043FF0u); 7061 7062 L_47043FF0: 7063 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7064 eax = 0; /* 0x47043FF0: xor eax, eax */ 7065 _cf = 0; 7066 _flag_k = FK_TEST; 7067 /* test ecx, ecx */ /* 0x47043FF2: test ecx, ecx */ 7068 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7069 _cf = 0; 7070 _flag_k = FK_TEST; 7071 if (TEST_Z(_flag_a, _flag_b)) goto L_47044007; /* 0x47043FF4: je 0x47044007 */ 7072 L_47043FF6: 7073 PUSH32(esp, esi); /* 0x47043FF6: push esi */ 7074 L_47043FF7: 7075 edx = MEM32(ecx + 0x2C); /* 0x47043FF7: mov edx, dword ptr [ecx + 0x2c] */ 7076 esi = MEM32(edx + 0xC); /* 0x47043FFA: mov esi, dword ptr [edx + 0xc] */ 7077 ecx = MEM32(ecx + 0x20); /* 0x47043FFD: mov ecx, dword ptr [ecx + 0x20] */ 7078 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 7079 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7080 eax = eax + esi; /* 0x47044000: add eax, esi */ 7081 _flag_k = FK_ADD; 7082 /* test ecx, ecx */ /* 0x47044002: test ecx, ecx */ 7083 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7084 _cf = 0; 7085 _flag_k = FK_TEST; 7086 RECOMP_BACKEDGE(); 7087 if (TEST_NZ(_flag_a, _flag_b)) goto L_47043FF7; /* 0x47044004: jne 0x47043ff7 */ 7088 L_47044006: 7089 esi = POP32_VAL(esp); /* 0x47044006: pop esi */ 7090 L_47044007: 7091 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47044007: ret */ 7092 RECOMP_REGS_OUT(); 7093 } 7094 7095 void sub_47044010(void) { 7096 int _fpu_cmp = 0; 7097 uint32_t _cf = 0; 7098 int _df = 1; 7099 uint32_t _flag_k = FK_NONE; 7100 uint32_t _flag_a = 0, _flag_b = 0; 7101 uint32_t _itail_tgt = 0; 7102 RECOMP_REGS_LOCALS 7103 RECOMP_ENTER(0x47044010u); 7104 7105 L_47044010: 7106 PUSH32(esp, esi); /* 0x47044010: push esi */ 7107 esi = ecx; /* 0x47044011: mov esi, ecx */ 7108 eax = 1; /* 0x47044013: mov eax, 1 */ 7109 PUSH32(esp, edi); /* 0x47044018: push edi */ 7110 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7111 edi = 0; /* 0x47044019: xor edi, edi */ 7112 _cf = 0; 7113 _flag_k = FK_TEST; 7114 MEM32(esi + 0x4) = eax; /* 0x4704401B: mov dword ptr [esi + 4], eax */ 7115 MEM32(esi + 0x8) = edi; /* 0x4704401E: mov dword ptr [esi + 8], edi */ 7116 MEM32(esi + 0xC) = edi; /* 0x47044021: mov dword ptr [esi + 0xc], edi */ 7117 MEM32(esi + 0x10) = eax; /* 0x47044024: mov dword ptr [esi + 0x10], eax */ 7118 MEM32(esi + 0x14) = edi; /* 0x47044027: mov dword ptr [esi + 0x14], edi */ 7119 MEM32(esi + 0x18) = edi; /* 0x4704402A: mov dword ptr [esi + 0x18], edi */ 7120 MEM32(esi + 0x1C) = edi; /* 0x4704402D: mov dword ptr [esi + 0x1c], edi */ 7121 MEM32(esi + 0x20) = eax; /* 0x47044030: mov dword ptr [esi + 0x20], eax */ 7122 MEM32(esi + 0x24) = edi; /* 0x47044033: mov dword ptr [esi + 0x24], edi */ 7123 MEM32(esi) = 0x470AD67Cu; /* 0x47044036: mov dword ptr [esi], 0x470ad67c */ 7124 RECOMP_ICALL(0x4703DAC0u); /* 0x4704403C: call 0x4703dac0 */ /* not lifted */ 7125 RECOMP_FLAGS_IN(); 7126 /* cmp eax, edi */ /* 0x47044041: cmp eax, edi */ 7127 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 7128 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7129 _flag_k = FK_CMP; 7130 MEM32(esi + 0x18) = eax; /* 0x47044043: mov dword ptr [esi + 0x18], eax */ 7131 if (CMP_EQ(_flag_a, _flag_b)) goto L_47044054; /* 0x47044046: je 0x47044054 */ 7132 L_47044048: 7133 RECOMP_ICALL(0x4703DAC0u); /* 0x47044048: call 0x4703dac0 */ /* not lifted */ 7134 RECOMP_FLAGS_IN(); 7135 /* cmp eax, edi */ /* 0x4704404D: cmp eax, edi */ 7136 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 7137 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7138 _flag_k = FK_CMP; 7139 MEM32(esi + 0x24) = eax; /* 0x4704404F: mov dword ptr [esi + 0x24], eax */ 7140 if (CMP_NE(_flag_a, _flag_b)) goto L_47044060; /* 0x47044052: jne 0x47044060 */ 7141 L_47044054: 7142 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47044054: call dword ptr [0x470ac3c8] */ 7143 RECOMP_FLAGS_IN(); 7144 MEM32(eax) = 0xCu; /* 0x4704405A: mov dword ptr [eax], 0xc */ 7145 L_47044060: 7146 edi = POP32_VAL(esp); /* 0x47044060: pop edi */ 7147 eax = esi; /* 0x47044061: mov eax, esi */ 7148 esi = POP32_VAL(esp); /* 0x47044063: pop esi */ 7149 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47044064: ret */ 7150 RECOMP_REGS_OUT(); 7151 } 7152 7153 void sub_47044070(void) { 7154 int _fpu_cmp = 0; 7155 uint32_t _cf = 0; 7156 int _df = 1; 7157 uint32_t _flag_k = FK_NONE; 7158 uint32_t _flag_a = 0, _flag_b = 0; 7159 uint32_t _itail_tgt = 0; 7160 RECOMP_REGS_LOCALS 7161 RECOMP_ENTER(0x47044070u); 7162 7163 L_47044070: 7164 PUSH32(esp, ebx); /* 0x47044070: push ebx */ 7165 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47044071: mov bl, byte ptr [esp + 8] */ 7166 /* test LO8(ebx), 2 */ /* 0x47044075: test bl, 2 */ 7167 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 7168 _cf = 0; 7169 _flag_k = FK_NARROW(FK_TEST, 24); 7170 PUSH32(esp, esi); /* 0x47044078: push esi */ 7171 PUSH32(esp, edi); /* 0x47044079: push edi */ 7172 esi = ecx; /* 0x4704407A: mov esi, ecx */ 7173 if (TEST_Z(_flag_a, _flag_b)) goto L_470440A8; /* 0x4704407C: je 0x470440a8 */ 7174 L_4704407E: 7175 eax = MEM32(esi + (-0x4)); /* 0x4704407E: mov eax, dword ptr [esi - 4] */ 7176 PUSH32(esp, 0x470448D0u); /* 0x47044081: push 0x470448d0 */ 7177 edi = esi + (-0x4); /* 0x47044086: lea edi, [esi - 4] */ 7178 PUSH32(esp, eax); /* 0x47044089: push eax */ 7179 PUSH32(esp, 0x28u); /* 0x4704408A: push 0x28 */ 7180 PUSH32(esp, esi); /* 0x4704408C: push esi */ 7181 RECOMP_ICALL(0x470A32EBu); /* 0x4704408D: call 0x470a32eb */ /* not lifted */ 7182 RECOMP_FLAGS_IN(); 7183 /* test LO8(ebx), 1 */ /* 0x47044092: test bl, 1 */ 7184 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 7185 _cf = 0; 7186 _flag_k = FK_NARROW(FK_TEST, 24); 7187 if (TEST_Z(_flag_a, _flag_b)) goto L_470440A0; /* 0x47044095: je 0x470440a0 */ 7188 L_47044097: 7189 PUSH32(esp, edi); /* 0x47044097: push edi */ 7190 RECOMP_ICALL(0x470A32A2u); /* 0x47044098: call 0x470a32a2 */ /* not lifted */ 7191 RECOMP_FLAGS_IN(); 7192 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7193 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7194 esp = esp + 4; /* 0x4704409D: add esp, 4 */ 7195 _flag_k = FK_ADD; 7196 L_470440A0: 7197 eax = edi; /* 0x470440A0: mov eax, edi */ 7198 edi = POP32_VAL(esp); /* 0x470440A2: pop edi */ 7199 esi = POP32_VAL(esp); /* 0x470440A3: pop esi */ 7200 ebx = POP32_VAL(esp); /* 0x470440A4: pop ebx */ 7201 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470440A5: ret 4 */ 7202 L_470440A8: 7203 eax = MEM32(esi + 0x20); /* 0x470440A8: mov eax, dword ptr [esi + 0x20] */ 7204 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7205 ebx = 0; /* 0x470440AB: xor ebx, ebx */ 7206 _cf = 0; 7207 _flag_k = FK_TEST; 7208 /* cmp eax, 1 */ /* 0x470440AD: cmp eax, 1 */ 7209 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7210 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7211 _flag_k = FK_CMP; 7212 MEM32(esi) = 0x470AD67Cu; /* 0x470440B0: mov dword ptr [esi], 0x470ad67c */ 7213 if (CMP_LE(_flag_a, _flag_b)) goto L_4704411D; /* 0x470440B6: jle 0x4704411d */ 7214 L_470440B8: 7215 PUSH32(esp, ebp); /* 0x470440B8: push ebp */ 7216 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470440B9: call dword ptr [0x470ac150] */ 7217 RECOMP_FLAGS_IN(); 7218 ebp = eax; /* 0x470440BF: mov ebp, eax */ 7219 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470440C1: call dword ptr [0x470ac3c8] */ 7220 RECOMP_FLAGS_IN(); 7221 eax = MEM32(eax); /* 0x470440C7: mov eax, dword ptr [eax] */ 7222 /* cmp eax, ebx */ /* 0x470440C9: cmp eax, ebx */ 7223 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 7224 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7225 _flag_k = FK_CMP; 7226 if (CMP_EQ(_flag_a, _flag_b)) goto L_470440CF; /* 0x470440CB: je 0x470440cf */ 7227 L_470440CD: 7228 ebp = eax; /* 0x470440CD: mov ebp, eax */ 7229 L_470440CF: 7230 RECOMP_ICALL(0x47039020u); /* 0x470440CF: call 0x47039020 */ /* not lifted */ 7231 RECOMP_FLAGS_IN(); 7232 edi = eax; /* 0x470440D4: mov edi, eax */ 7233 ecx = edi; /* 0x470440D6: mov ecx, edi */ 7234 RECOMP_ICALL(0x4703B210u); /* 0x470440D8: call 0x4703b210 */ /* not lifted */ 7235 RECOMP_FLAGS_IN(); 7236 PUSH32(esp, eax); /* 0x470440DD: push eax */ 7237 ecx = edi; /* 0x470440DE: mov ecx, edi */ 7238 RECOMP_ICALL(0x4703B240u); /* 0x470440E0: call 0x4703b240 */ /* not lifted */ 7239 RECOMP_FLAGS_IN(); 7240 PUSH32(esp, eax); /* 0x470440E5: push eax */ 7241 ecx = edi; /* 0x470440E6: mov ecx, edi */ 7242 RECOMP_ICALL(0x4703B080u); /* 0x470440E8: call 0x4703b080 */ /* not lifted */ 7243 RECOMP_FLAGS_IN(); 7244 PUSH32(esp, eax); /* 0x470440ED: push eax */ 7245 PUSH32(esp, ebp); /* 0x470440EE: push ebp */ 7246 PUSH32(esp, 0xFFFFFFFFu); /* 0x470440EF: push -1 */ 7247 PUSH32(esp, 0x247u); /* 0x470440F1: push 0x247 */ 7248 PUSH32(esp, 0x471082E0u); /* 0x470440F6: push 0x471082e0 */ 7249 ecx = edi; /* 0x470440FB: mov ecx, edi */ 7250 RECOMP_ICALL(0x4703A340u); /* 0x470440FD: call 0x4703a340 */ /* not lifted */ 7251 RECOMP_FLAGS_IN(); 7252 PUSH32(esp, 0xFFFFFFFFu); /* 0x47044102: push -1 */ 7253 PUSH32(esp, 0x471083A0u); /* 0x47044104: push 0x471083a0 */ 7254 PUSH32(esp, 0x47104AA4u); /* 0x47044109: push 0x47104aa4 */ 7255 PUSH32(esp, 0x80u); /* 0x4704410E: push 0x80 */ 7256 PUSH32(esp, edi); /* 0x47044113: push edi */ 7257 RECOMP_ICALL(0x47039830u); /* 0x47044114: call 0x47039830 */ /* not lifted */ 7258 RECOMP_FLAGS_IN(); 7259 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 7260 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7261 esp = esp + 0x14u; /* 0x47044119: add esp, 0x14 */ 7262 _flag_k = FK_ADD; 7263 ebp = POP32_VAL(esp); /* 0x4704411C: pop ebp */ 7264 L_4704411D: 7265 /* test MEM8(esi + 0x10), 1 */ /* 0x4704411D: test byte ptr [esi + 0x10], 1 */ 7266 _flag_a = (uint32_t)(MEM8(esi + 0x10)) << 24; _flag_b = (uint32_t)(1) << 24; 7267 _cf = 0; 7268 _flag_k = FK_NARROW(FK_TEST, 24); 7269 MEM32(esi + 0x20) = ebx; /* 0x47044121: mov dword ptr [esi + 0x20], ebx */ 7270 if (TEST_NZ(_flag_a, _flag_b)) goto L_47044135; /* 0x47044124: jne 0x47044135 */ 7271 L_47044126: 7272 ecx = MEM32(esi + 0x18); /* 0x47044126: mov ecx, dword ptr [esi + 0x18] */ 7273 eax = MEM32(esi + 0x14); /* 0x47044129: mov eax, dword ptr [esi + 0x14] */ 7274 edx = MEM32(ecx); /* 0x4704412C: mov edx, dword ptr [ecx] */ 7275 PUSH32(esp, eax); /* 0x4704412E: push eax */ 7276 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4704412F: call dword ptr [edx + 0xc] */ 7277 RECOMP_FLAGS_IN(); 7278 MEM32(esi + 0x14) = ebx; /* 0x47044132: mov dword ptr [esi + 0x14], ebx */ 7279 L_47044135: 7280 /* test MEM8(esp + 0x10), 1 */ /* 0x47044135: test byte ptr [esp + 0x10], 1 */ 7281 _flag_a = (uint32_t)(MEM8(esp + 0x10)) << 24; _flag_b = (uint32_t)(1) << 24; 7282 _cf = 0; 7283 _flag_k = FK_NARROW(FK_TEST, 24); 7284 if (TEST_Z(_flag_a, _flag_b)) goto L_47044145; /* 0x4704413A: je 0x47044145 */ 7285 L_4704413C: 7286 PUSH32(esp, esi); /* 0x4704413C: push esi */ 7287 RECOMP_ICALL(0x470A32A2u); /* 0x4704413D: call 0x470a32a2 */ /* not lifted */ 7288 RECOMP_FLAGS_IN(); 7289 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7290 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7291 esp = esp + 4; /* 0x47044142: add esp, 4 */ 7292 _flag_k = FK_ADD; 7293 L_47044145: 7294 edi = POP32_VAL(esp); /* 0x47044145: pop edi */ 7295 eax = esi; /* 0x47044146: mov eax, esi */ 7296 esi = POP32_VAL(esp); /* 0x47044148: pop esi */ 7297 ebx = POP32_VAL(esp); /* 0x47044149: pop ebx */ 7298 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4704414A: ret 4 */ 7299 RECOMP_REGS_OUT(); 7300 } 7301 7302 void sub_47044150(void) { 7303 int _fpu_cmp = 0; 7304 uint32_t _cf = 0; 7305 int _df = 1; 7306 uint32_t _flag_k = FK_NONE; 7307 uint32_t _flag_a = 0, _flag_b = 0; 7308 uint32_t _itail_tgt = 0; 7309 RECOMP_REGS_LOCALS 7310 RECOMP_ENTER(0x47044150u); 7311 7312 L_47044150: 7313 eax = MEM32(esp + 0x8); /* 0x47044150: mov eax, dword ptr [esp + 8] */ 7314 edx = MEM32(esp + 0x14); /* 0x47044154: mov edx, dword ptr [esp + 0x14] */ 7315 PUSH32(esp, ebx); /* 0x47044158: push ebx */ 7316 ebx = MEM32(esp + 0x10); /* 0x47044159: mov ebx, dword ptr [esp + 0x10] */ 7317 PUSH32(esp, esi); /* 0x4704415D: push esi */ 7318 esi = ecx; /* 0x4704415E: mov esi, ecx */ 7319 ecx = MEM32(esp + 0x20); /* 0x47044160: mov ecx, dword ptr [esp + 0x20] */ 7320 MEM32(esi + 0x4) = eax; /* 0x47044164: mov dword ptr [esi + 4], eax */ 7321 eax = MEM32(esp + 0x18); /* 0x47044167: mov eax, dword ptr [esp + 0x18] */ 7322 /* test eax, eax */ /* 0x4704416B: test eax, eax */ 7323 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7324 _cf = 0; 7325 _flag_k = FK_TEST; 7326 PUSH32(esp, edi); /* 0x4704416D: push edi */ 7327 edi = MEM32(esp + 0x10); /* 0x4704416E: mov edi, dword ptr [esp + 0x10] */ 7328 MEM32(esi + 0x10) = ecx; /* 0x47044172: mov dword ptr [esi + 0x10], ecx */ 7329 ecx = MEM32(esp + 0x28); /* 0x47044175: mov ecx, dword ptr [esp + 0x28] */ 7330 MEM32(esi + 0x8) = edi; /* 0x47044179: mov dword ptr [esi + 8], edi */ 7331 MEM32(esi + 0xC) = edi; /* 0x4704417C: mov dword ptr [esi + 0xc], edi */ 7332 MEM32(esi + 0x14) = ebx; /* 0x4704417F: mov dword ptr [esi + 0x14], ebx */ 7333 MEM32(esi + 0x18) = eax; /* 0x47044182: mov dword ptr [esi + 0x18], eax */ 7334 MEM32(esi + 0x1C) = edx; /* 0x47044185: mov dword ptr [esi + 0x1c], edx */ 7335 MEM32(esi + 0x20) = 1; /* 0x47044188: mov dword ptr [esi + 0x20], 1 */ 7336 MEM32(esi + 0x24) = ecx; /* 0x4704418F: mov dword ptr [esi + 0x24], ecx */ 7337 MEM32(esi) = 0x470AD67Cu; /* 0x47044192: mov dword ptr [esi], 0x470ad67c */ 7338 if (TEST_NZ(_flag_a, _flag_b)) goto L_470441BA; /* 0x47044198: jne 0x470441ba */ 7339 L_4704419A: 7340 RECOMP_ICALL(0x4703DAC0u); /* 0x4704419A: call 0x4703dac0 */ /* not lifted */ 7341 RECOMP_FLAGS_IN(); 7342 /* test eax, eax */ /* 0x4704419F: test eax, eax */ 7343 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7344 _cf = 0; 7345 _flag_k = FK_TEST; 7346 MEM32(esi + 0x18) = eax; /* 0x470441A1: mov dword ptr [esi + 0x18], eax */ 7347 if (TEST_NZ(_flag_a, _flag_b)) goto L_470441BA; /* 0x470441A4: jne 0x470441ba */ 7348 L_470441A6: 7349 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470441A6: call dword ptr [0x470ac3c8] */ 7350 RECOMP_FLAGS_IN(); 7351 edi = POP32_VAL(esp); /* 0x470441AC: pop edi */ 7352 MEM32(eax) = 0xCu; /* 0x470441AD: mov dword ptr [eax], 0xc */ 7353 eax = esi; /* 0x470441B3: mov eax, esi */ 7354 esi = POP32_VAL(esp); /* 0x470441B5: pop esi */ 7355 ebx = POP32_VAL(esp); /* 0x470441B6: pop ebx */ 7356 RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x470441B7: ret 0x1c */ 7357 L_470441BA: 7358 eax = MEM32(esi + 0x24); /* 0x470441BA: mov eax, dword ptr [esi + 0x24] */ 7359 /* test eax, eax */ /* 0x470441BD: test eax, eax */ 7360 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7361 _cf = 0; 7362 _flag_k = FK_TEST; 7363 if (TEST_NZ(_flag_a, _flag_b)) goto L_470441E1; /* 0x470441BF: jne 0x470441e1 */ 7364 L_470441C1: 7365 RECOMP_ICALL(0x4703DAC0u); /* 0x470441C1: call 0x4703dac0 */ /* not lifted */ 7366 RECOMP_FLAGS_IN(); 7367 /* test eax, eax */ /* 0x470441C6: test eax, eax */ 7368 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7369 _cf = 0; 7370 _flag_k = FK_TEST; 7371 MEM32(esi + 0x24) = eax; /* 0x470441C8: mov dword ptr [esi + 0x24], eax */ 7372 if (TEST_NZ(_flag_a, _flag_b)) goto L_470441E1; /* 0x470441CB: jne 0x470441e1 */ 7373 L_470441CD: 7374 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470441CD: call dword ptr [0x470ac3c8] */ 7375 RECOMP_FLAGS_IN(); 7376 edi = POP32_VAL(esp); /* 0x470441D3: pop edi */ 7377 MEM32(eax) = 0xCu; /* 0x470441D4: mov dword ptr [eax], 0xc */ 7378 eax = esi; /* 0x470441DA: mov eax, esi */ 7379 esi = POP32_VAL(esp); /* 0x470441DC: pop esi */ 7380 ebx = POP32_VAL(esp); /* 0x470441DD: pop ebx */ 7381 RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x470441DE: ret 0x1c */ 7382 L_470441E1: 7383 /* test ebx, ebx */ /* 0x470441E1: test ebx, ebx */ 7384 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 7385 _cf = 0; 7386 _flag_k = FK_TEST; 7387 if (TEST_NZ(_flag_a, _flag_b)) goto L_47044209; /* 0x470441E3: jne 0x47044209 */ 7388 L_470441E5: 7389 ecx = MEM32(esi + 0x18); /* 0x470441E5: mov ecx, dword ptr [esi + 0x18] */ 7390 edx = MEM32(ecx); /* 0x470441E8: mov edx, dword ptr [ecx] */ 7391 PUSH32(esp, edi); /* 0x470441EA: push edi */ 7392 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x470441EB: call dword ptr [edx + 4] */ 7393 RECOMP_FLAGS_IN(); 7394 /* test eax, eax */ /* 0x470441EE: test eax, eax */ 7395 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7396 _cf = 0; 7397 _flag_k = FK_TEST; 7398 MEM32(esi + 0x14) = eax; /* 0x470441F0: mov dword ptr [esi + 0x14], eax */ 7399 if (TEST_NZ(_flag_a, _flag_b)) goto L_4704420C; /* 0x470441F3: jne 0x4704420c */ 7400 L_470441F5: 7401 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470441F5: call dword ptr [0x470ac3c8] */ 7402 RECOMP_FLAGS_IN(); 7403 edi = POP32_VAL(esp); /* 0x470441FB: pop edi */ 7404 MEM32(eax) = 0xCu; /* 0x470441FC: mov dword ptr [eax], 0xc */ 7405 eax = esi; /* 0x47044202: mov eax, esi */ 7406 esi = POP32_VAL(esp); /* 0x47044204: pop esi */ 7407 ebx = POP32_VAL(esp); /* 0x47044205: pop ebx */ 7408 RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x47044206: ret 0x1c */ 7409 L_47044209: 7410 MEM32(esi + 0x14) = ebx; /* 0x47044209: mov dword ptr [esi + 0x14], ebx */ 7411 L_4704420C: 7412 edi = POP32_VAL(esp); /* 0x4704420C: pop edi */ 7413 eax = esi; /* 0x4704420D: mov eax, esi */ 7414 esi = POP32_VAL(esp); /* 0x4704420F: pop esi */ 7415 ebx = POP32_VAL(esp); /* 0x47044210: pop ebx */ 7416 RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x47044211: ret 0x1c */ 7417 RECOMP_REGS_OUT(); 7418 } 7419 7420 void sub_47044220(void) { 7421 int _fpu_cmp = 0; 7422 uint32_t _cf = 0; 7423 int _df = 1; 7424 uint32_t _flag_k = FK_NONE; 7425 uint32_t _flag_a = 0, _flag_b = 0; 7426 uint32_t _itail_tgt = 0; 7427 RECOMP_REGS_LOCALS 7428 RECOMP_ENTER(0x47044220u); 7429 7430 L_47044220: 7431 eax = MEM32(esp + 0xC); /* 0x47044220: mov eax, dword ptr [esp + 0xc] */ 7432 PUSH32(esp, esi); /* 0x47044224: push esi */ 7433 PUSH32(esp, edi); /* 0x47044225: push edi */ 7434 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7435 edi = 0; /* 0x47044226: xor edi, edi */ 7436 _cf = 0; 7437 _flag_k = FK_TEST; 7438 PUSH32(esp, edi); /* 0x47044228: push edi */ 7439 edx = MEM32(esp + 0x14); /* 0x47044229: mov edx, dword ptr [esp + 0x14] */ 7440 PUSH32(esp, edi); /* 0x4704422D: push edi */ 7441 PUSH32(esp, edi); /* 0x4704422E: push edi */ 7442 PUSH32(esp, 0x4710E8F8u); /* 0x4704422F: push 0x4710e8f8 */ 7443 PUSH32(esp, 0x4710E9A8u); /* 0x47044234: push 0x4710e9a8 */ 7444 PUSH32(esp, eax); /* 0x47044239: push eax */ 7445 PUSH32(esp, 1); /* 0x4704423A: push 1 */ 7446 esi = ecx; /* 0x4704423C: mov esi, ecx */ 7447 ecx = MEM32(esp + 0x28); /* 0x4704423E: mov ecx, dword ptr [esp + 0x28] */ 7448 PUSH32(esp, edi); /* 0x47044242: push edi */ 7449 PUSH32(esp, edi); /* 0x47044243: push edi */ 7450 PUSH32(esp, ecx); /* 0x47044244: push ecx */ 7451 PUSH32(esp, edi); /* 0x47044245: push edi */ 7452 MEM32(esi + 0x10) = edi; /* 0x47044246: mov dword ptr [esi + 0x10], edi */ 7453 MEM32(esi + 0x14) = edi; /* 0x47044249: mov dword ptr [esi + 0x14], edi */ 7454 PUSH32(esp, 1); /* 0x4704424C: push 1 */ 7455 MEM32(esi + 0x18) = edi; /* 0x4704424E: mov dword ptr [esi + 0x18], edi */ 7456 MEM32(esi + 0x1C) = edi; /* 0x47044251: mov dword ptr [esi + 0x1c], edi */ 7457 PUSH32(esp, edx); /* 0x47044254: push edx */ 7458 ecx = esi; /* 0x47044255: mov ecx, esi */ 7459 MEM32(esi + 0x2C) = edi; /* 0x47044257: mov dword ptr [esi + 0x2c], edi */ 7460 MEM32(esi) = 0x470AD688u; /* 0x4704425A: mov dword ptr [esi], 0x470ad688 */ 7461 RECOMP_ICALL(0x47044720u); /* 0x47044260: call 0x47044720 */ /* not lifted */ 7462 RECOMP_FLAGS_IN(); 7463 /* cmp eax, 0xFFFFFFFFu */ /* 0x47044265: cmp eax, -1 */ 7464 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 7465 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7466 _flag_k = FK_CMP; 7467 if (CMP_NE(_flag_a, _flag_b)) goto L_470442CF; /* 0x47044268: jne 0x470442cf */ 7468 L_4704426A: 7469 PUSH32(esp, ebx); /* 0x4704426A: push ebx */ 7470 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704426B: call dword ptr [0x470ac150] */ 7471 RECOMP_FLAGS_IN(); 7472 ebx = eax; /* 0x47044271: mov ebx, eax */ 7473 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47044273: call dword ptr [0x470ac3c8] */ 7474 RECOMP_FLAGS_IN(); 7475 eax = MEM32(eax); /* 0x47044279: mov eax, dword ptr [eax] */ 7476 /* cmp eax, edi */ /* 0x4704427B: cmp eax, edi */ 7477 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 7478 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7479 _flag_k = FK_CMP; 7480 if (CMP_EQ(_flag_a, _flag_b)) goto L_47044281; /* 0x4704427D: je 0x47044281 */ 7481 L_4704427F: 7482 ebx = eax; /* 0x4704427F: mov ebx, eax */ 7483 L_47044281: 7484 RECOMP_ICALL(0x47039020u); /* 0x47044281: call 0x47039020 */ /* not lifted */ 7485 RECOMP_FLAGS_IN(); 7486 edi = eax; /* 0x47044286: mov edi, eax */ 7487 ecx = edi; /* 0x47044288: mov ecx, edi */ 7488 RECOMP_ICALL(0x4703B210u); /* 0x4704428A: call 0x4703b210 */ /* not lifted */ 7489 RECOMP_FLAGS_IN(); 7490 PUSH32(esp, eax); /* 0x4704428F: push eax */ 7491 ecx = edi; /* 0x47044290: mov ecx, edi */ 7492 RECOMP_ICALL(0x4703B240u); /* 0x47044292: call 0x4703b240 */ /* not lifted */ 7493 RECOMP_FLAGS_IN(); 7494 PUSH32(esp, eax); /* 0x47044297: push eax */ 7495 ecx = edi; /* 0x47044298: mov ecx, edi */ 7496 RECOMP_ICALL(0x4703B080u); /* 0x4704429A: call 0x4703b080 */ /* not lifted */ 7497 RECOMP_FLAGS_IN(); 7498 PUSH32(esp, eax); /* 0x4704429F: push eax */ 7499 PUSH32(esp, ebx); /* 0x470442A0: push ebx */ 7500 PUSH32(esp, 0xFFFFFFFFu); /* 0x470442A1: push -1 */ 7501 PUSH32(esp, 0x15Du); /* 0x470442A3: push 0x15d */ 7502 PUSH32(esp, 0x471082E0u); /* 0x470442A8: push 0x471082e0 */ 7503 ecx = edi; /* 0x470442AD: mov ecx, edi */ 7504 RECOMP_ICALL(0x4703A340u); /* 0x470442AF: call 0x4703a340 */ /* not lifted */ 7505 RECOMP_FLAGS_IN(); 7506 PUSH32(esp, 0x471083BCu); /* 0x470442B4: push 0x471083bc */ 7507 PUSH32(esp, 0x80u); /* 0x470442B9: push 0x80 */ 7508 PUSH32(esp, edi); /* 0x470442BE: push edi */ 7509 RECOMP_ICALL(0x47039830u); /* 0x470442BF: call 0x47039830 */ /* not lifted */ 7510 RECOMP_FLAGS_IN(); 7511 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7512 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7513 esp = esp + 0xCu; /* 0x470442C4: add esp, 0xc */ 7514 _flag_k = FK_ADD; 7515 ebx = POP32_VAL(esp); /* 0x470442C7: pop ebx */ 7516 edi = POP32_VAL(esp); /* 0x470442C8: pop edi */ 7517 eax = esi; /* 0x470442C9: mov eax, esi */ 7518 esi = POP32_VAL(esp); /* 0x470442CB: pop esi */ 7519 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470442CC: ret 0xc */ 7520 L_470442CF: 7521 edi = POP32_VAL(esp); /* 0x470442CF: pop edi */ 7522 eax = esi; /* 0x470442D0: mov eax, esi */ 7523 esi = POP32_VAL(esp); /* 0x470442D2: pop esi */ 7524 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470442D3: ret 0xc */ 7525 RECOMP_REGS_OUT(); 7526 } 7527 7528 void sub_470442E0(void) { 7529 int _fpu_cmp = 0; 7530 uint32_t _cf = 0; 7531 int _df = 1; 7532 uint32_t _flag_k = FK_NONE; 7533 uint32_t _flag_a = 0, _flag_b = 0; 7534 uint32_t _itail_tgt = 0; 7535 RECOMP_REGS_LOCALS 7536 RECOMP_ENTER(0x470442E0u); 7537 7538 L_470442E0: 7539 PUSH32(esp, ebx); /* 0x470442E0: push ebx */ 7540 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x470442E1: mov bl, byte ptr [esp + 8] */ 7541 /* test LO8(ebx), 2 */ /* 0x470442E5: test bl, 2 */ 7542 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 7543 _cf = 0; 7544 _flag_k = FK_NARROW(FK_TEST, 24); 7545 PUSH32(esp, esi); /* 0x470442E8: push esi */ 7546 PUSH32(esp, edi); /* 0x470442E9: push edi */ 7547 edi = ecx; /* 0x470442EA: mov edi, ecx */ 7548 if (TEST_Z(_flag_a, _flag_b)) goto L_47044318; /* 0x470442EC: je 0x47044318 */ 7549 L_470442EE: 7550 eax = MEM32(edi + (-0x4)); /* 0x470442EE: mov eax, dword ptr [edi - 4] */ 7551 PUSH32(esp, 0x47044D20u); /* 0x470442F1: push 0x47044d20 */ 7552 esi = edi + (-0x4); /* 0x470442F6: lea esi, [edi - 4] */ 7553 PUSH32(esp, eax); /* 0x470442F9: push eax */ 7554 PUSH32(esp, 0x34u); /* 0x470442FA: push 0x34 */ 7555 PUSH32(esp, edi); /* 0x470442FC: push edi */ 7556 RECOMP_ICALL(0x470A32EBu); /* 0x470442FD: call 0x470a32eb */ /* not lifted */ 7557 RECOMP_FLAGS_IN(); 7558 /* test LO8(ebx), 1 */ /* 0x47044302: test bl, 1 */ 7559 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 7560 _cf = 0; 7561 _flag_k = FK_NARROW(FK_TEST, 24); 7562 if (TEST_Z(_flag_a, _flag_b)) goto L_47044310; /* 0x47044305: je 0x47044310 */ 7563 L_47044307: 7564 PUSH32(esp, esi); /* 0x47044307: push esi */ 7565 RECOMP_ICALL(0x470A32A2u); /* 0x47044308: call 0x470a32a2 */ /* not lifted */ 7566 RECOMP_FLAGS_IN(); 7567 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7568 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7569 esp = esp + 4; /* 0x4704430D: add esp, 4 */ 7570 _flag_k = FK_ADD; 7571 L_47044310: 7572 edi = POP32_VAL(esp); /* 0x47044310: pop edi */ 7573 eax = esi; /* 0x47044311: mov eax, esi */ 7574 esi = POP32_VAL(esp); /* 0x47044313: pop esi */ 7575 ebx = POP32_VAL(esp); /* 0x47044314: pop ebx */ 7576 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47044315: ret 4 */ 7577 L_47044318: 7578 esi = MEM32(edi + 0x2C); /* 0x47044318: mov esi, dword ptr [edi + 0x2c] */ 7579 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7580 ebx = 0; /* 0x4704431B: xor ebx, ebx */ 7581 _cf = 0; 7582 _flag_k = FK_TEST; 7583 /* cmp esi, ebx */ /* 0x4704431D: cmp esi, ebx */ 7584 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 7585 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7586 _flag_k = FK_CMP; 7587 PUSH32(esp, ebp); /* 0x4704431F: push ebp */ 7588 MEM32(edi) = 0x470AD688u; /* 0x47044320: mov dword ptr [edi], 0x470ad688 */ 7589 if (CMP_EQ(_flag_a, _flag_b)) goto L_4704434B; /* 0x47044326: je 0x4704434b */ 7590 L_47044328: 7591 ebp = MEM32(esi + 0x24); /* 0x47044328: mov ebp, dword ptr [esi + 0x24] */ 7592 PUSH32(esp, ebx); /* 0x4704432B: push ebx */ 7593 ecx = esi; /* 0x4704432C: mov ecx, esi */ 7594 RECOMP_ICALL(0x47044A00u); /* 0x4704432E: call 0x47044a00 */ /* not lifted */ 7595 RECOMP_FLAGS_IN(); 7596 /* test eax, eax */ /* 0x47044333: test eax, eax */ 7597 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7598 _cf = 0; 7599 _flag_k = FK_TEST; 7600 if (TEST_NZ(_flag_a, _flag_b)) goto L_4704434B; /* 0x47044335: jne 0x4704434b */ 7601 L_47044337: 7602 /* cmp esi, ebx */ /* 0x47044337: cmp esi, ebx */ 7603 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 7604 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7605 _flag_k = FK_CMP; 7606 if (CMP_EQ(_flag_a, _flag_b)) goto L_4704434B; /* 0x47044339: je 0x4704434b */ 7607 L_4704433B: 7608 edx = MEM32(esi); /* 0x4704433B: mov edx, dword ptr [esi] */ 7609 PUSH32(esp, ebx); /* 0x4704433D: push ebx */ 7610 ecx = esi; /* 0x4704433E: mov ecx, esi */ 7611 RECOMP_ICALL(MEM32(edx)); /* 0x47044340: call dword ptr [edx] */ 7612 RECOMP_FLAGS_IN(); 7613 eax = MEM32(ebp); /* 0x47044342: mov eax, dword ptr [ebp] */ 7614 PUSH32(esp, esi); /* 0x47044345: push esi */ 7615 ecx = ebp; /* 0x47044346: mov ecx, ebp */ 7616 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x47044348: call dword ptr [eax + 0xc] */ 7617 RECOMP_FLAGS_IN(); 7618 L_4704434B: 7619 /* test MEM8(esp + 0x14), 1 */ /* 0x4704434B: test byte ptr [esp + 0x14], 1 */ 7620 _flag_a = (uint32_t)(MEM8(esp + 0x14)) << 24; _flag_b = (uint32_t)(1) << 24; 7621 _cf = 0; 7622 _flag_k = FK_NARROW(FK_TEST, 24); 7623 MEM32(edi + 0x28) = ebx; /* 0x47044350: mov dword ptr [edi + 0x28], ebx */ 7624 MEM32(edi + 0x24) = ebx; /* 0x47044353: mov dword ptr [edi + 0x24], ebx */ 7625 ebp = POP32_VAL(esp); /* 0x47044356: pop ebp */ 7626 if (TEST_Z(_flag_a, _flag_b)) goto L_47044362; /* 0x47044357: je 0x47044362 */ 7627 L_47044359: 7628 PUSH32(esp, edi); /* 0x47044359: push edi */ 7629 RECOMP_ICALL(0x470A32A2u); /* 0x4704435A: call 0x470a32a2 */ /* not lifted */ 7630 RECOMP_FLAGS_IN(); 7631 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7632 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7633 esp = esp + 4; /* 0x4704435F: add esp, 4 */ 7634 _flag_k = FK_ADD; 7635 L_47044362: 7636 eax = edi; /* 0x47044362: mov eax, edi */ 7637 edi = POP32_VAL(esp); /* 0x47044364: pop edi */ 7638 esi = POP32_VAL(esp); /* 0x47044365: pop esi */ 7639 ebx = POP32_VAL(esp); /* 0x47044366: pop ebx */ 7640 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47044367: ret 4 */ 7641 RECOMP_REGS_OUT(); 7642 } 7643 7644 void sub_47044370(void) { 7645 int _fpu_cmp = 0; 7646 uint32_t _cf = 0; 7647 int _df = 1; 7648 uint32_t _flag_k = FK_NONE; 7649 uint32_t _flag_a = 0, _flag_b = 0; 7650 uint32_t _itail_tgt = 0; 7651 RECOMP_REGS_LOCALS 7652 RECOMP_ENTER(0x47044370u); 7653 7654 L_47044370: 7655 eax = MEM32(esp + 0x4); /* 0x47044370: mov eax, dword ptr [esp + 4] */ 7656 PUSH32(esp, esi); /* 0x47044374: push esi */ 7657 PUSH32(esp, edi); /* 0x47044375: push edi */ 7658 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7659 edi = 0; /* 0x47044376: xor edi, edi */ 7660 _cf = 0; 7661 _flag_k = FK_TEST; 7662 PUSH32(esp, eax); /* 0x47044378: push eax */ 7663 PUSH32(esp, edi); /* 0x47044379: push edi */ 7664 PUSH32(esp, edi); /* 0x4704437A: push edi */ 7665 PUSH32(esp, 0x4710E8F8u); /* 0x4704437B: push 0x4710e8f8 */ 7666 PUSH32(esp, 0x4710E9A8u); /* 0x47044380: push 0x4710e9a8 */ 7667 PUSH32(esp, edi); /* 0x47044385: push edi */ 7668 PUSH32(esp, 1); /* 0x47044386: push 1 */ 7669 PUSH32(esp, edi); /* 0x47044388: push edi */ 7670 PUSH32(esp, edi); /* 0x47044389: push edi */ 7671 esi = ecx; /* 0x4704438A: mov esi, ecx */ 7672 PUSH32(esp, edi); /* 0x4704438C: push edi */ 7673 PUSH32(esp, edi); /* 0x4704438D: push edi */ 7674 MEM32(esi + 0x10) = edi; /* 0x4704438E: mov dword ptr [esi + 0x10], edi */ 7675 MEM32(esi + 0x14) = edi; /* 0x47044391: mov dword ptr [esi + 0x14], edi */ 7676 PUSH32(esp, 1); /* 0x47044394: push 1 */ 7677 MEM32(esi + 0x18) = edi; /* 0x47044396: mov dword ptr [esi + 0x18], edi */ 7678 MEM32(esi + 0x1C) = edi; /* 0x47044399: mov dword ptr [esi + 0x1c], edi */ 7679 PUSH32(esp, edi); /* 0x4704439C: push edi */ 7680 MEM32(esi + 0x2C) = edi; /* 0x4704439D: mov dword ptr [esi + 0x2c], edi */ 7681 MEM32(esi) = 0x470AD688u; /* 0x470443A0: mov dword ptr [esi], 0x470ad688 */ 7682 RECOMP_ICALL(0x47044720u); /* 0x470443A6: call 0x47044720 */ /* not lifted */ 7683 RECOMP_FLAGS_IN(); 7684 /* cmp eax, 0xFFFFFFFFu */ /* 0x470443AB: cmp eax, -1 */ 7685 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 7686 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7687 _flag_k = FK_CMP; 7688 if (CMP_NE(_flag_a, _flag_b)) goto L_47044415; /* 0x470443AE: jne 0x47044415 */ 7689 L_470443B0: 7690 PUSH32(esp, ebx); /* 0x470443B0: push ebx */ 7691 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470443B1: call dword ptr [0x470ac150] */ 7692 RECOMP_FLAGS_IN(); 7693 ebx = eax; /* 0x470443B7: mov ebx, eax */ 7694 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470443B9: call dword ptr [0x470ac3c8] */ 7695 RECOMP_FLAGS_IN(); 7696 eax = MEM32(eax); /* 0x470443BF: mov eax, dword ptr [eax] */ 7697 /* cmp eax, edi */ /* 0x470443C1: cmp eax, edi */ 7698 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 7699 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7700 _flag_k = FK_CMP; 7701 if (CMP_EQ(_flag_a, _flag_b)) goto L_470443C7; /* 0x470443C3: je 0x470443c7 */ 7702 L_470443C5: 7703 ebx = eax; /* 0x470443C5: mov ebx, eax */ 7704 L_470443C7: 7705 RECOMP_ICALL(0x47039020u); /* 0x470443C7: call 0x47039020 */ /* not lifted */ 7706 RECOMP_FLAGS_IN(); 7707 edi = eax; /* 0x470443CC: mov edi, eax */ 7708 ecx = edi; /* 0x470443CE: mov ecx, edi */ 7709 RECOMP_ICALL(0x4703B210u); /* 0x470443D0: call 0x4703b210 */ /* not lifted */ 7710 RECOMP_FLAGS_IN(); 7711 PUSH32(esp, eax); /* 0x470443D5: push eax */ 7712 ecx = edi; /* 0x470443D6: mov ecx, edi */ 7713 RECOMP_ICALL(0x4703B240u); /* 0x470443D8: call 0x4703b240 */ /* not lifted */ 7714 RECOMP_FLAGS_IN(); 7715 PUSH32(esp, eax); /* 0x470443DD: push eax */ 7716 ecx = edi; /* 0x470443DE: mov ecx, edi */ 7717 RECOMP_ICALL(0x4703B080u); /* 0x470443E0: call 0x4703b080 */ /* not lifted */ 7718 RECOMP_FLAGS_IN(); 7719 PUSH32(esp, eax); /* 0x470443E5: push eax */ 7720 PUSH32(esp, ebx); /* 0x470443E6: push ebx */ 7721 PUSH32(esp, 0xFFFFFFFFu); /* 0x470443E7: push -1 */ 7722 PUSH32(esp, 0x173u); /* 0x470443E9: push 0x173 */ 7723 PUSH32(esp, 0x471082E0u); /* 0x470443EE: push 0x471082e0 */ 7724 ecx = edi; /* 0x470443F3: mov ecx, edi */ 7725 RECOMP_ICALL(0x4703A340u); /* 0x470443F5: call 0x4703a340 */ /* not lifted */ 7726 RECOMP_FLAGS_IN(); 7727 PUSH32(esp, 0x471083BCu); /* 0x470443FA: push 0x471083bc */ 7728 PUSH32(esp, 0x80u); /* 0x470443FF: push 0x80 */ 7729 PUSH32(esp, edi); /* 0x47044404: push edi */ 7730 RECOMP_ICALL(0x47039830u); /* 0x47044405: call 0x47039830 */ /* not lifted */ 7731 RECOMP_FLAGS_IN(); 7732 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7733 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7734 esp = esp + 0xCu; /* 0x4704440A: add esp, 0xc */ 7735 _flag_k = FK_ADD; 7736 ebx = POP32_VAL(esp); /* 0x4704440D: pop ebx */ 7737 edi = POP32_VAL(esp); /* 0x4704440E: pop edi */ 7738 eax = esi; /* 0x4704440F: mov eax, esi */ 7739 esi = POP32_VAL(esp); /* 0x47044411: pop esi */ 7740 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47044412: ret 4 */ 7741 L_47044415: 7742 edi = POP32_VAL(esp); /* 0x47044415: pop edi */ 7743 eax = esi; /* 0x47044416: mov eax, esi */ 7744 esi = POP32_VAL(esp); /* 0x47044418: pop esi */ 7745 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47044419: ret 4 */ 7746 RECOMP_REGS_OUT(); 7747 } 7748 7749 void sub_47044420(void) { 7750 int _fpu_cmp = 0; 7751 uint32_t _cf = 0; 7752 int _df = 1; 7753 uint32_t _flag_k = FK_NONE; 7754 uint32_t _flag_a = 0, _flag_b = 0; 7755 uint32_t _itail_tgt = 0; 7756 RECOMP_REGS_LOCALS 7757 RECOMP_ENTER(0x47044420u); 7758 7759 L_47044420: 7760 eax = MEM32(esp + 0x2C); /* 0x47044420: mov eax, dword ptr [esp + 0x2c] */ 7761 edx = MEM32(esp + 0x24); /* 0x47044424: mov edx, dword ptr [esp + 0x24] */ 7762 PUSH32(esp, esi); /* 0x47044428: push esi */ 7763 PUSH32(esp, edi); /* 0x47044429: push edi */ 7764 PUSH32(esp, eax); /* 0x4704442A: push eax */ 7765 eax = MEM32(esp + 0x2C); /* 0x4704442B: mov eax, dword ptr [esp + 0x2c] */ 7766 esi = ecx; /* 0x4704442F: mov esi, ecx */ 7767 ecx = MEM32(esp + 0x34); /* 0x47044431: mov ecx, dword ptr [esp + 0x34] */ 7768 PUSH32(esp, ecx); /* 0x47044435: push ecx */ 7769 ecx = MEM32(esp + 0x2C); /* 0x47044436: mov ecx, dword ptr [esp + 0x2c] */ 7770 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7771 edi = 0; /* 0x4704443A: xor edi, edi */ 7772 _cf = 0; 7773 _flag_k = FK_TEST; 7774 PUSH32(esp, edi); /* 0x4704443C: push edi */ 7775 PUSH32(esp, edx); /* 0x4704443D: push edx */ 7776 PUSH32(esp, eax); /* 0x4704443E: push eax */ 7777 eax = MEM32(esp + 0x2C); /* 0x4704443F: mov eax, dword ptr [esp + 0x2c] */ 7778 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7779 edx = 0; /* 0x47044443: xor edx, edx */ 7780 _cf = 0; 7781 _flag_k = FK_TEST; 7782 PUSH32(esp, ecx); /* 0x47044445: push ecx */ 7783 ecx = MEM32(esp + 0x38); /* 0x47044446: mov ecx, dword ptr [esp + 0x38] */ 7784 /* cmp eax, edi */ /* 0x4704444A: cmp eax, edi */ 7785 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 7786 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7787 _flag_k = FK_CMP; 7788 SET_LO8(edx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x4704444C: setne dl */ 7789 MEM32(esi + 0x10) = edi; /* 0x4704444F: mov dword ptr [esi + 0x10], edi */ 7790 MEM32(esi + 0x14) = edi; /* 0x47044452: mov dword ptr [esi + 0x14], edi */ 7791 MEM32(esi + 0x18) = edi; /* 0x47044455: mov dword ptr [esi + 0x18], edi */ 7792 MEM32(esi + 0x1C) = edi; /* 0x47044458: mov dword ptr [esi + 0x1c], edi */ 7793 MEM32(esi + 0x2C) = edi; /* 0x4704445B: mov dword ptr [esi + 0x2c], edi */ 7794 MEM32(esi) = 0x470AD688u; /* 0x4704445E: mov dword ptr [esi], 0x470ad688 */ 7795 PUSH32(esp, edx); /* 0x47044464: push edx */ 7796 edx = MEM32(esp + 0x38); /* 0x47044465: mov edx, dword ptr [esp + 0x38] */ 7797 PUSH32(esp, ecx); /* 0x47044469: push ecx */ 7798 ecx = MEM32(esp + 0x30); /* 0x4704446A: mov ecx, dword ptr [esp + 0x30] */ 7799 PUSH32(esp, edx); /* 0x4704446E: push edx */ 7800 edx = MEM32(esp + 0x30); /* 0x4704446F: mov edx, dword ptr [esp + 0x30] */ 7801 PUSH32(esp, eax); /* 0x47044473: push eax */ 7802 eax = MEM32(esp + 0x3C); /* 0x47044474: mov eax, dword ptr [esp + 0x3c] */ 7803 PUSH32(esp, eax); /* 0x47044478: push eax */ 7804 PUSH32(esp, ecx); /* 0x47044479: push ecx */ 7805 PUSH32(esp, edx); /* 0x4704447A: push edx */ 7806 ecx = esi; /* 0x4704447B: mov ecx, esi */ 7807 RECOMP_ICALL(0x47044720u); /* 0x4704447D: call 0x47044720 */ /* not lifted */ 7808 RECOMP_FLAGS_IN(); 7809 /* cmp eax, 0xFFFFFFFFu */ /* 0x47044482: cmp eax, -1 */ 7810 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 7811 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7812 _flag_k = FK_CMP; 7813 if (CMP_NE(_flag_a, _flag_b)) goto L_470444EC; /* 0x47044485: jne 0x470444ec */ 7814 L_47044487: 7815 PUSH32(esp, ebx); /* 0x47044487: push ebx */ 7816 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47044488: call dword ptr [0x470ac150] */ 7817 RECOMP_FLAGS_IN(); 7818 ebx = eax; /* 0x4704448E: mov ebx, eax */ 7819 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47044490: call dword ptr [0x470ac3c8] */ 7820 RECOMP_FLAGS_IN(); 7821 eax = MEM32(eax); /* 0x47044496: mov eax, dword ptr [eax] */ 7822 /* cmp eax, edi */ /* 0x47044498: cmp eax, edi */ 7823 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 7824 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7825 _flag_k = FK_CMP; 7826 if (CMP_EQ(_flag_a, _flag_b)) goto L_4704449E; /* 0x4704449A: je 0x4704449e */ 7827 L_4704449C: 7828 ebx = eax; /* 0x4704449C: mov ebx, eax */ 7829 L_4704449E: 7830 RECOMP_ICALL(0x47039020u); /* 0x4704449E: call 0x47039020 */ /* not lifted */ 7831 RECOMP_FLAGS_IN(); 7832 edi = eax; /* 0x470444A3: mov edi, eax */ 7833 ecx = edi; /* 0x470444A5: mov ecx, edi */ 7834 RECOMP_ICALL(0x4703B210u); /* 0x470444A7: call 0x4703b210 */ /* not lifted */ 7835 RECOMP_FLAGS_IN(); 7836 PUSH32(esp, eax); /* 0x470444AC: push eax */ 7837 ecx = edi; /* 0x470444AD: mov ecx, edi */ 7838 RECOMP_ICALL(0x4703B240u); /* 0x470444AF: call 0x4703b240 */ /* not lifted */ 7839 RECOMP_FLAGS_IN(); 7840 PUSH32(esp, eax); /* 0x470444B4: push eax */ 7841 ecx = edi; /* 0x470444B5: mov ecx, edi */ 7842 RECOMP_ICALL(0x4703B080u); /* 0x470444B7: call 0x4703b080 */ /* not lifted */ 7843 RECOMP_FLAGS_IN(); 7844 PUSH32(esp, eax); /* 0x470444BC: push eax */ 7845 PUSH32(esp, ebx); /* 0x470444BD: push ebx */ 7846 PUSH32(esp, 0xFFFFFFFFu); /* 0x470444BE: push -1 */ 7847 PUSH32(esp, 0x193u); /* 0x470444C0: push 0x193 */ 7848 PUSH32(esp, 0x471082E0u); /* 0x470444C5: push 0x471082e0 */ 7849 ecx = edi; /* 0x470444CA: mov ecx, edi */ 7850 RECOMP_ICALL(0x4703A340u); /* 0x470444CC: call 0x4703a340 */ /* not lifted */ 7851 RECOMP_FLAGS_IN(); 7852 PUSH32(esp, 0x471083BCu); /* 0x470444D1: push 0x471083bc */ 7853 PUSH32(esp, 0x80u); /* 0x470444D6: push 0x80 */ 7854 PUSH32(esp, edi); /* 0x470444DB: push edi */ 7855 RECOMP_ICALL(0x47039830u); /* 0x470444DC: call 0x47039830 */ /* not lifted */ 7856 RECOMP_FLAGS_IN(); 7857 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7858 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7859 esp = esp + 0xCu; /* 0x470444E1: add esp, 0xc */ 7860 _flag_k = FK_ADD; 7861 ebx = POP32_VAL(esp); /* 0x470444E4: pop ebx */ 7862 edi = POP32_VAL(esp); /* 0x470444E5: pop edi */ 7863 eax = esi; /* 0x470444E6: mov eax, esi */ 7864 esi = POP32_VAL(esp); /* 0x470444E8: pop esi */ 7865 RECOMP_FLAGS_OUT(); esp += 48; { RECOMP_REGS_OUT(); return; } /* 0x470444E9: ret 0x2c */ 7866 L_470444EC: 7867 edi = POP32_VAL(esp); /* 0x470444EC: pop edi */ 7868 eax = esi; /* 0x470444ED: mov eax, esi */ 7869 esi = POP32_VAL(esp); /* 0x470444EF: pop esi */ 7870 RECOMP_FLAGS_OUT(); esp += 48; { RECOMP_REGS_OUT(); return; } /* 0x470444F0: ret 0x2c */ 7871 RECOMP_REGS_OUT(); 7872 } 7873 7874 void sub_47044500(void) { 7875 int _fpu_cmp = 0; 7876 uint32_t _cf = 0; 7877 int _df = 1; 7878 uint32_t _flag_k = FK_NONE; 7879 uint32_t _flag_a = 0, _flag_b = 0; 7880 uint32_t _itail_tgt = 0; 7881 RECOMP_REGS_LOCALS 7882 RECOMP_ENTER(0x47044500u); 7883 7884 L_47044500: 7885 eax = MEM32(esp + 0x2C); /* 0x47044500: mov eax, dword ptr [esp + 0x2c] */ 7886 edx = MEM32(esp + 0x28); /* 0x47044504: mov edx, dword ptr [esp + 0x28] */ 7887 PUSH32(esp, eax); /* 0x47044508: push eax */ 7888 eax = MEM32(esp + 0x28); /* 0x47044509: mov eax, dword ptr [esp + 0x28] */ 7889 PUSH32(esp, edx); /* 0x4704450D: push edx */ 7890 edx = MEM32(esp + 0x28); /* 0x4704450E: mov edx, dword ptr [esp + 0x28] */ 7891 PUSH32(esp, 0); /* 0x47044512: push 0 */ 7892 PUSH32(esp, eax); /* 0x47044514: push eax */ 7893 eax = MEM32(esp + 0x2C); /* 0x47044515: mov eax, dword ptr [esp + 0x2c] */ 7894 PUSH32(esp, edx); /* 0x47044519: push edx */ 7895 PUSH32(esp, eax); /* 0x4704451A: push eax */ 7896 eax = MEM32(esp + 0x28); /* 0x4704451B: mov eax, dword ptr [esp + 0x28] */ 7897 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7898 edx = 0; /* 0x4704451F: xor edx, edx */ 7899 _cf = 0; 7900 _flag_k = FK_TEST; 7901 /* test eax, eax */ /* 0x47044521: test eax, eax */ 7902 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7903 _cf = 0; 7904 _flag_k = FK_TEST; 7905 SET_LO8(edx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x47044523: setne dl */ 7906 PUSH32(esp, edx); /* 0x47044526: push edx */ 7907 edx = MEM32(esp + 0x34); /* 0x47044527: mov edx, dword ptr [esp + 0x34] */ 7908 PUSH32(esp, edx); /* 0x4704452B: push edx */ 7909 edx = MEM32(esp + 0x34); /* 0x4704452C: mov edx, dword ptr [esp + 0x34] */ 7910 PUSH32(esp, edx); /* 0x47044530: push edx */ 7911 edx = MEM32(esp + 0x2C); /* 0x47044531: mov edx, dword ptr [esp + 0x2c] */ 7912 PUSH32(esp, eax); /* 0x47044535: push eax */ 7913 eax = MEM32(esp + 0x34); /* 0x47044536: mov eax, dword ptr [esp + 0x34] */ 7914 PUSH32(esp, eax); /* 0x4704453A: push eax */ 7915 eax = MEM32(esp + 0x30); /* 0x4704453B: mov eax, dword ptr [esp + 0x30] */ 7916 PUSH32(esp, edx); /* 0x4704453F: push edx */ 7917 PUSH32(esp, eax); /* 0x47044540: push eax */ 7918 RECOMP_ICALL(0x47044720u); /* 0x47044541: call 0x47044720 */ /* not lifted */ 7919 RECOMP_FLAGS_IN(); 7920 RECOMP_FLAGS_OUT(); esp += 48; { RECOMP_REGS_OUT(); return; } /* 0x47044546: ret 0x2c */ 7921 RECOMP_REGS_OUT(); 7922 } 7923 7924 void sub_47044550(void) { 7925 int _fpu_cmp = 0; 7926 uint32_t _cf = 0; 7927 int _df = 1; 7928 uint32_t _flag_k = FK_NONE; 7929 uint32_t _flag_a = 0, _flag_b = 0; 7930 uint32_t _itail_tgt = 0; 7931 RECOMP_REGS_LOCALS 7932 RECOMP_ENTER(0x47044550u); 7933 7934 L_47044550: 7935 eax = MEM32(esp + 0x4); /* 0x47044550: mov eax, dword ptr [esp + 4] */ 7936 PUSH32(esp, 0); /* 0x47044554: push 0 */ 7937 edx = MEM32(esp + 0xC); /* 0x47044556: mov edx, dword ptr [esp + 0xc] */ 7938 PUSH32(esp, 0); /* 0x4704455A: push 0 */ 7939 PUSH32(esp, 0); /* 0x4704455C: push 0 */ 7940 PUSH32(esp, 0x4710E8F8u); /* 0x4704455E: push 0x4710e8f8 */ 7941 PUSH32(esp, 0x4710E9A8u); /* 0x47044563: push 0x4710e9a8 */ 7942 PUSH32(esp, 0); /* 0x47044568: push 0 */ 7943 PUSH32(esp, 1); /* 0x4704456A: push 1 */ 7944 PUSH32(esp, 0); /* 0x4704456C: push 0 */ 7945 PUSH32(esp, 0); /* 0x4704456E: push 0 */ 7946 PUSH32(esp, eax); /* 0x47044570: push eax */ 7947 PUSH32(esp, 0); /* 0x47044571: push 0 */ 7948 PUSH32(esp, 1); /* 0x47044573: push 1 */ 7949 PUSH32(esp, edx); /* 0x47044575: push edx */ 7950 RECOMP_ICALL(0x47044720u); /* 0x47044576: call 0x47044720 */ /* not lifted */ 7951 RECOMP_FLAGS_IN(); 7952 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4704457B: ret 8 */ 7953 RECOMP_REGS_OUT(); 7954 } 7955 7956 void sub_47044580(void) { 7957 int _fpu_cmp = 0; 7958 uint32_t _cf = 0; 7959 int _df = 1; 7960 uint32_t _flag_k = FK_NONE; 7961 uint32_t _flag_a = 0, _flag_b = 0; 7962 uint32_t _itail_tgt = 0; 7963 RECOMP_REGS_LOCALS 7964 RECOMP_ENTER(0x47044580u); 7965 7966 L_47044580: 7967 eax = MEM32(esp + 0x34); /* 0x47044580: mov eax, dword ptr [esp + 0x34] */ 7968 edx = MEM32(esp + 0x2C); /* 0x47044584: mov edx, dword ptr [esp + 0x2c] */ 7969 PUSH32(esp, esi); /* 0x47044588: push esi */ 7970 PUSH32(esp, edi); /* 0x47044589: push edi */ 7971 PUSH32(esp, eax); /* 0x4704458A: push eax */ 7972 eax = MEM32(esp + 0x34); /* 0x4704458B: mov eax, dword ptr [esp + 0x34] */ 7973 esi = ecx; /* 0x4704458F: mov esi, ecx */ 7974 ecx = MEM32(esp + 0x3C); /* 0x47044591: mov ecx, dword ptr [esp + 0x3c] */ 7975 PUSH32(esp, ecx); /* 0x47044595: push ecx */ 7976 ecx = MEM32(esp + 0x34); /* 0x47044596: mov ecx, dword ptr [esp + 0x34] */ 7977 PUSH32(esp, edx); /* 0x4704459A: push edx */ 7978 edx = MEM32(esp + 0x34); /* 0x4704459B: mov edx, dword ptr [esp + 0x34] */ 7979 PUSH32(esp, eax); /* 0x4704459F: push eax */ 7980 eax = MEM32(esp + 0x34); /* 0x470445A0: mov eax, dword ptr [esp + 0x34] */ 7981 PUSH32(esp, ecx); /* 0x470445A4: push ecx */ 7982 ecx = MEM32(esp + 0x34); /* 0x470445A5: mov ecx, dword ptr [esp + 0x34] */ 7983 PUSH32(esp, edx); /* 0x470445A9: push edx */ 7984 edx = MEM32(esp + 0x34); /* 0x470445AA: mov edx, dword ptr [esp + 0x34] */ 7985 PUSH32(esp, eax); /* 0x470445AE: push eax */ 7986 eax = MEM32(esp + 0x34); /* 0x470445AF: mov eax, dword ptr [esp + 0x34] */ 7987 PUSH32(esp, ecx); /* 0x470445B3: push ecx */ 7988 ecx = MEM32(esp + 0x34); /* 0x470445B4: mov ecx, dword ptr [esp + 0x34] */ 7989 PUSH32(esp, edx); /* 0x470445B8: push edx */ 7990 edx = MEM32(esp + 0x34); /* 0x470445B9: mov edx, dword ptr [esp + 0x34] */ 7991 PUSH32(esp, eax); /* 0x470445BD: push eax */ 7992 eax = MEM32(esp + 0x34); /* 0x470445BE: mov eax, dword ptr [esp + 0x34] */ 7993 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7994 edi = 0; /* 0x470445C2: xor edi, edi */ 7995 _cf = 0; 7996 _flag_k = FK_TEST; 7997 PUSH32(esp, ecx); /* 0x470445C4: push ecx */ 7998 MEM32(esi + 0x10) = edi; /* 0x470445C5: mov dword ptr [esi + 0x10], edi */ 7999 MEM32(esi + 0x14) = edi; /* 0x470445C8: mov dword ptr [esi + 0x14], edi */ 8000 PUSH32(esp, edx); /* 0x470445CB: push edx */ 8001 MEM32(esi + 0x18) = edi; /* 0x470445CC: mov dword ptr [esi + 0x18], edi */ 8002 MEM32(esi + 0x1C) = edi; /* 0x470445CF: mov dword ptr [esi + 0x1c], edi */ 8003 PUSH32(esp, eax); /* 0x470445D2: push eax */ 8004 ecx = esi; /* 0x470445D3: mov ecx, esi */ 8005 MEM32(esi + 0x2C) = edi; /* 0x470445D5: mov dword ptr [esi + 0x2c], edi */ 8006 MEM32(esi) = 0x470AD688u; /* 0x470445D8: mov dword ptr [esi], 0x470ad688 */ 8007 RECOMP_ICALL(0x47044720u); /* 0x470445DE: call 0x47044720 */ /* not lifted */ 8008 RECOMP_FLAGS_IN(); 8009 /* cmp eax, 0xFFFFFFFFu */ /* 0x470445E3: cmp eax, -1 */ 8010 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 8011 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8012 _flag_k = FK_CMP; 8013 if (CMP_NE(_flag_a, _flag_b)) goto L_4704464D; /* 0x470445E6: jne 0x4704464d */ 8014 L_470445E8: 8015 PUSH32(esp, ebx); /* 0x470445E8: push ebx */ 8016 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470445E9: call dword ptr [0x470ac150] */ 8017 RECOMP_FLAGS_IN(); 8018 ebx = eax; /* 0x470445EF: mov ebx, eax */ 8019 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470445F1: call dword ptr [0x470ac3c8] */ 8020 RECOMP_FLAGS_IN(); 8021 eax = MEM32(eax); /* 0x470445F7: mov eax, dword ptr [eax] */ 8022 /* cmp eax, edi */ /* 0x470445F9: cmp eax, edi */ 8023 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 8024 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8025 _flag_k = FK_CMP; 8026 if (CMP_EQ(_flag_a, _flag_b)) goto L_470445FF; /* 0x470445FB: je 0x470445ff */ 8027 L_470445FD: 8028 ebx = eax; /* 0x470445FD: mov ebx, eax */ 8029 L_470445FF: 8030 RECOMP_ICALL(0x47039020u); /* 0x470445FF: call 0x47039020 */ /* not lifted */ 8031 RECOMP_FLAGS_IN(); 8032 edi = eax; /* 0x47044604: mov edi, eax */ 8033 ecx = edi; /* 0x47044606: mov ecx, edi */ 8034 RECOMP_ICALL(0x4703B210u); /* 0x47044608: call 0x4703b210 */ /* not lifted */ 8035 RECOMP_FLAGS_IN(); 8036 PUSH32(esp, eax); /* 0x4704460D: push eax */ 8037 ecx = edi; /* 0x4704460E: mov ecx, edi */ 8038 RECOMP_ICALL(0x4703B240u); /* 0x47044610: call 0x4703b240 */ /* not lifted */ 8039 RECOMP_FLAGS_IN(); 8040 PUSH32(esp, eax); /* 0x47044615: push eax */ 8041 ecx = edi; /* 0x47044616: mov ecx, edi */ 8042 RECOMP_ICALL(0x4703B080u); /* 0x47044618: call 0x4703b080 */ /* not lifted */ 8043 RECOMP_FLAGS_IN(); 8044 PUSH32(esp, eax); /* 0x4704461D: push eax */ 8045 PUSH32(esp, ebx); /* 0x4704461E: push ebx */ 8046 PUSH32(esp, 0xFFFFFFFFu); /* 0x4704461F: push -1 */ 8047 PUSH32(esp, 0x1E9u); /* 0x47044621: push 0x1e9 */ 8048 PUSH32(esp, 0x471082E0u); /* 0x47044626: push 0x471082e0 */ 8049 ecx = edi; /* 0x4704462B: mov ecx, edi */ 8050 RECOMP_ICALL(0x4703A340u); /* 0x4704462D: call 0x4703a340 */ /* not lifted */ 8051 RECOMP_FLAGS_IN(); 8052 PUSH32(esp, 0x471083BCu); /* 0x47044632: push 0x471083bc */ 8053 PUSH32(esp, 0x80u); /* 0x47044637: push 0x80 */ 8054 PUSH32(esp, edi); /* 0x4704463C: push edi */ 8055 RECOMP_ICALL(0x47039830u); /* 0x4704463D: call 0x47039830 */ /* not lifted */ 8056 RECOMP_FLAGS_IN(); 8057 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8058 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8059 esp = esp + 0xCu; /* 0x47044642: add esp, 0xc */ 8060 _flag_k = FK_ADD; 8061 ebx = POP32_VAL(esp); /* 0x47044645: pop ebx */ 8062 edi = POP32_VAL(esp); /* 0x47044646: pop edi */ 8063 eax = esi; /* 0x47044647: mov eax, esi */ 8064 esi = POP32_VAL(esp); /* 0x47044649: pop esi */ 8065 RECOMP_FLAGS_OUT(); esp += 56; { RECOMP_REGS_OUT(); return; } /* 0x4704464A: ret 0x34 */ 8066 L_4704464D: 8067 edi = POP32_VAL(esp); /* 0x4704464D: pop edi */ 8068 eax = esi; /* 0x4704464E: mov eax, esi */ 8069 esi = POP32_VAL(esp); /* 0x47044650: pop esi */ 8070 RECOMP_FLAGS_OUT(); esp += 56; { RECOMP_REGS_OUT(); return; } /* 0x47044651: ret 0x34 */ 8071 RECOMP_REGS_OUT(); 8072 } 8073 8074 void sub_47044660(void) { 8075 int _fpu_cmp = 0; 8076 uint32_t _cf = 0; 8077 int _df = 1; 8078 uint32_t _flag_k = FK_NONE; 8079 uint32_t _flag_a = 0, _flag_b = 0; 8080 uint32_t _itail_tgt = 0; 8081 RECOMP_REGS_LOCALS 8082 RECOMP_ENTER(0x47044660u); 8083 8084 L_47044660: 8085 eax = MEM32(esp + 0x4); /* 0x47044660: mov eax, dword ptr [esp + 4] */ 8086 edx = MEM32(esp + 0x8); /* 0x47044664: mov edx, dword ptr [esp + 8] */ 8087 PUSH32(esp, esi); /* 0x47044668: push esi */ 8088 PUSH32(esp, edi); /* 0x47044669: push edi */ 8089 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8090 edi = 0; /* 0x4704466A: xor edi, edi */ 8091 _cf = 0; 8092 _flag_k = FK_TEST; 8093 esi = ecx; /* 0x4704466C: mov esi, ecx */ 8094 PUSH32(esp, edx); /* 0x4704466E: push edx */ 8095 MEM32(esi + 0x10) = edi; /* 0x4704466F: mov dword ptr [esi + 0x10], edi */ 8096 MEM32(esi + 0x14) = edi; /* 0x47044672: mov dword ptr [esi + 0x14], edi */ 8097 MEM32(esi + 0x18) = edi; /* 0x47044675: mov dword ptr [esi + 0x18], edi */ 8098 MEM32(esi + 0x1C) = edi; /* 0x47044678: mov dword ptr [esi + 0x1c], edi */ 8099 MEM32(esi + 0x2C) = edi; /* 0x4704467B: mov dword ptr [esi + 0x2c], edi */ 8100 MEM32(esi) = 0x470AD688u; /* 0x4704467E: mov dword ptr [esi], 0x470ad688 */ 8101 ecx = MEM32(eax + 0x24); /* 0x47044684: mov ecx, dword ptr [eax + 0x24] */ 8102 PUSH32(esp, ecx); /* 0x47044687: push ecx */ 8103 PUSH32(esp, eax); /* 0x47044688: push eax */ 8104 PUSH32(esp, 0x4710E8F8u); /* 0x47044689: push 0x4710e8f8 */ 8105 PUSH32(esp, 0x4710E9A8u); /* 0x4704468E: push 0x4710e9a8 */ 8106 PUSH32(esp, edi); /* 0x47044693: push edi */ 8107 PUSH32(esp, edi); /* 0x47044694: push edi */ 8108 PUSH32(esp, edi); /* 0x47044695: push edi */ 8109 PUSH32(esp, edi); /* 0x47044696: push edi */ 8110 PUSH32(esp, edi); /* 0x47044697: push edi */ 8111 PUSH32(esp, edi); /* 0x47044698: push edi */ 8112 PUSH32(esp, edi); /* 0x47044699: push edi */ 8113 PUSH32(esp, edi); /* 0x4704469A: push edi */ 8114 ecx = esi; /* 0x4704469B: mov ecx, esi */ 8115 RECOMP_ICALL(0x47044720u); /* 0x4704469D: call 0x47044720 */ /* not lifted */ 8116 RECOMP_FLAGS_IN(); 8117 /* cmp eax, 0xFFFFFFFFu */ /* 0x470446A2: cmp eax, -1 */ 8118 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 8119 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8120 _flag_k = FK_CMP; 8121 if (CMP_NE(_flag_a, _flag_b)) goto L_4704470C; /* 0x470446A5: jne 0x4704470c */ 8122 L_470446A7: 8123 PUSH32(esp, ebx); /* 0x470446A7: push ebx */ 8124 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470446A8: call dword ptr [0x470ac150] */ 8125 RECOMP_FLAGS_IN(); 8126 ebx = eax; /* 0x470446AE: mov ebx, eax */ 8127 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470446B0: call dword ptr [0x470ac3c8] */ 8128 RECOMP_FLAGS_IN(); 8129 eax = MEM32(eax); /* 0x470446B6: mov eax, dword ptr [eax] */ 8130 /* cmp eax, edi */ /* 0x470446B8: cmp eax, edi */ 8131 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 8132 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8133 _flag_k = FK_CMP; 8134 if (CMP_EQ(_flag_a, _flag_b)) goto L_470446BE; /* 0x470446BA: je 0x470446be */ 8135 L_470446BC: 8136 ebx = eax; /* 0x470446BC: mov ebx, eax */ 8137 L_470446BE: 8138 RECOMP_ICALL(0x47039020u); /* 0x470446BE: call 0x47039020 */ /* not lifted */ 8139 RECOMP_FLAGS_IN(); 8140 edi = eax; /* 0x470446C3: mov edi, eax */ 8141 ecx = edi; /* 0x470446C5: mov ecx, edi */ 8142 RECOMP_ICALL(0x4703B210u); /* 0x470446C7: call 0x4703b210 */ /* not lifted */ 8143 RECOMP_FLAGS_IN(); 8144 PUSH32(esp, eax); /* 0x470446CC: push eax */ 8145 ecx = edi; /* 0x470446CD: mov ecx, edi */ 8146 RECOMP_ICALL(0x4703B240u); /* 0x470446CF: call 0x4703b240 */ /* not lifted */ 8147 RECOMP_FLAGS_IN(); 8148 PUSH32(esp, eax); /* 0x470446D4: push eax */ 8149 ecx = edi; /* 0x470446D5: mov ecx, edi */ 8150 RECOMP_ICALL(0x4703B080u); /* 0x470446D7: call 0x4703b080 */ /* not lifted */ 8151 RECOMP_FLAGS_IN(); 8152 PUSH32(esp, eax); /* 0x470446DC: push eax */ 8153 PUSH32(esp, ebx); /* 0x470446DD: push ebx */ 8154 PUSH32(esp, 0xFFFFFFFFu); /* 0x470446DE: push -1 */ 8155 PUSH32(esp, 0x200u); /* 0x470446E0: push 0x200 */ 8156 PUSH32(esp, 0x471082E0u); /* 0x470446E5: push 0x471082e0 */ 8157 ecx = edi; /* 0x470446EA: mov ecx, edi */ 8158 RECOMP_ICALL(0x4703A340u); /* 0x470446EC: call 0x4703a340 */ /* not lifted */ 8159 RECOMP_FLAGS_IN(); 8160 PUSH32(esp, 0x471083BCu); /* 0x470446F1: push 0x471083bc */ 8161 PUSH32(esp, 0x80u); /* 0x470446F6: push 0x80 */ 8162 PUSH32(esp, edi); /* 0x470446FB: push edi */ 8163 RECOMP_ICALL(0x47039830u); /* 0x470446FC: call 0x47039830 */ /* not lifted */ 8164 RECOMP_FLAGS_IN(); 8165 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8166 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8167 esp = esp + 0xCu; /* 0x47044701: add esp, 0xc */ 8168 _flag_k = FK_ADD; 8169 ebx = POP32_VAL(esp); /* 0x47044704: pop ebx */ 8170 edi = POP32_VAL(esp); /* 0x47044705: pop edi */ 8171 eax = esi; /* 0x47044706: mov eax, esi */ 8172 esi = POP32_VAL(esp); /* 0x47044708: pop esi */ 8173 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47044709: ret 8 */ 8174 L_4704470C: 8175 edi = POP32_VAL(esp); /* 0x4704470C: pop edi */ 8176 eax = esi; /* 0x4704470D: mov eax, esi */ 8177 esi = POP32_VAL(esp); /* 0x4704470F: pop esi */ 8178 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47044710: ret 8 */ 8179 RECOMP_REGS_OUT(); 8180 } 8181 8182 void sub_47044720(void) { 8183 int _fpu_cmp = 0; 8184 uint32_t _cf = 0; 8185 int _df = 1; 8186 uint32_t _flag_k = FK_NONE; 8187 uint32_t _flag_a = 0, _flag_b = 0; 8188 uint32_t _itail_tgt = 0; 8189 RECOMP_REGS_LOCALS 8190 RECOMP_ENTER(0x47044720u); 8191 8192 L_47044720: 8193 eax = MEM32(FS_BASE + (0)); /* 0x47044720: mov eax, dword ptr fs:[0] */ 8194 PUSH32(esp, 0xFFFFFFFFu); /* 0x47044726: push -1 */ 8195 PUSH32(esp, 0x470A6619u); /* 0x47044728: push 0x470a6619 */ 8196 PUSH32(esp, eax); /* 0x4704472D: push eax */ 8197 eax = MEM32(esp + 0x2C); /* 0x4704472E: mov eax, dword ptr [esp + 0x2c] */ 8198 MEM32(FS_BASE + (0)) = esp; /* 0x47044732: mov dword ptr fs:[0], esp */ 8199 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8200 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8201 esp = esp - 8; /* 0x47044739: sub esp, 8 */ 8202 _flag_k = FK_CMP; 8203 PUSH32(esp, ebx); /* 0x4704473C: push ebx */ 8204 PUSH32(esp, ebp); /* 0x4704473D: push ebp */ 8205 PUSH32(esp, esi); /* 0x4704473E: push esi */ 8206 esi = ecx; /* 0x4704473F: mov esi, ecx */ 8207 MEM32(esi + 0xC) = eax; /* 0x47044741: mov dword ptr [esi + 0xc], eax */ 8208 eax = MEM32(esp + 0x44); /* 0x47044744: mov eax, dword ptr [esp + 0x44] */ 8209 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8210 ebx = 0; /* 0x47044748: xor ebx, ebx */ 8211 _cf = 0; 8212 _flag_k = FK_TEST; 8213 MEM32(esi + 0x4) = ebx; /* 0x4704474A: mov dword ptr [esi + 4], ebx */ 8214 MEM32(esi + 0x8) = ebx; /* 0x4704474D: mov dword ptr [esi + 8], ebx */ 8215 ecx = MEM32(eax); /* 0x47044750: mov ecx, dword ptr [eax] */ 8216 MEM32(esi + 0x10) = ecx; /* 0x47044752: mov dword ptr [esi + 0x10], ecx */ 8217 edx = MEM32(eax + 0x4); /* 0x47044755: mov edx, dword ptr [eax + 4] */ 8218 eax = MEM32(esp + 0x48); /* 0x47044758: mov eax, dword ptr [esp + 0x48] */ 8219 MEM32(esi + 0x14) = edx; /* 0x4704475C: mov dword ptr [esi + 0x14], edx */ 8220 ecx = MEM32(eax); /* 0x4704475F: mov ecx, dword ptr [eax] */ 8221 MEM32(esi + 0x18) = ecx; /* 0x47044761: mov dword ptr [esi + 0x18], ecx */ 8222 edx = MEM32(eax + 0x4); /* 0x47044764: mov edx, dword ptr [eax + 4] */ 8223 eax = MEM32(esp + 0x2C); /* 0x47044767: mov eax, dword ptr [esp + 0x2c] */ 8224 ecx = MEM32(esp + 0x54); /* 0x4704476B: mov ecx, dword ptr [esp + 0x54] */ 8225 PUSH32(esp, edi); /* 0x4704476F: push edi */ 8226 edi = MEM32(esi + 0x2C); /* 0x47044770: mov edi, dword ptr [esi + 0x2c] */ 8227 /* cmp edi, ebx */ /* 0x47044773: cmp edi, ebx */ 8228 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 8229 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8230 _flag_k = FK_CMP; 8231 MEM32(esi + 0x1C) = edx; /* 0x47044775: mov dword ptr [esi + 0x1c], edx */ 8232 MEM32(esi + 0x20) = eax; /* 0x47044778: mov dword ptr [esi + 0x20], eax */ 8233 MEM32(esi + 0x24) = ebx; /* 0x4704477B: mov dword ptr [esi + 0x24], ebx */ 8234 MEM32(esi + 0x28) = ebx; /* 0x4704477E: mov dword ptr [esi + 0x28], ebx */ 8235 MEM32(esi + 0x30) = ecx; /* 0x47044781: mov dword ptr [esi + 0x30], ecx */ 8236 if (CMP_EQ(_flag_a, _flag_b)) goto L_47044801; /* 0x47044784: je 0x47044801 */ 8237 L_47044786: 8238 ecx = MEM32(edi + 0x1C); /* 0x47044786: mov ecx, dword ptr [edi + 0x1c] */ 8239 /* cmp ecx, ebx */ /* 0x47044789: cmp ecx, ebx */ 8240 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 8241 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8242 _flag_k = FK_CMP; 8243 ebp = MEM32(edi + 0x24); /* 0x4704478B: mov ebp, dword ptr [edi + 0x24] */ 8244 MEM32(esp + 0x44) = ebp; /* 0x4704478E: mov dword ptr [esp + 0x44], ebp */ 8245 if (CMP_EQ(_flag_a, _flag_b)) goto L_470447D9; /* 0x47044792: je 0x470447d9 */ 8246 L_47044794: 8247 MEM32(esp + 0x10) = ecx; /* 0x47044794: mov dword ptr [esp + 0x10], ecx */ 8248 MEM32(esp + 0x14) = ebx; /* 0x47044798: mov dword ptr [esp + 0x14], ebx */ 8249 edx = MEM32(ecx); /* 0x4704479C: mov edx, dword ptr [ecx] */ 8250 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x4704479E: call dword ptr [edx + 8] */ 8251 RECOMP_FLAGS_IN(); 8252 MEM32(esp + 0x14) = eax; /* 0x470447A1: mov dword ptr [esp + 0x14], eax */ 8253 /* cmp eax, 0xFFFFFFFFu */ /* 0x470447A5: cmp eax, -1 */ 8254 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 8255 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8256 _flag_k = FK_CMP; 8257 MEM32(esp + 0x20) = ebx; /* 0x470447A8: mov dword ptr [esp + 0x20], ebx */ 8258 if (CMP_NE(_flag_a, _flag_b)) goto L_470447BD; /* 0x470447AC: jne 0x470447bd */ 8259 L_470447AE: 8260 ecx = esp + 0x10; /* 0x470447AE: lea ecx, [esp + 0x10] */ 8261 MEM32(esp + 0x20) = eax; /* 0x470447B2: mov dword ptr [esp + 0x20], eax */ 8262 RECOMP_ICALL(0x47045860u); /* 0x470447B6: call 0x47045860 */ /* not lifted */ 8263 RECOMP_FLAGS_IN(); 8264 goto L_470447EA; /* 0x470447BB: jmp 0x470447ea */ 8265 L_470447BD: 8266 ecx = edi; /* 0x470447BD: mov ecx, edi */ 8267 RECOMP_ICALL(0x47044970u); /* 0x470447BF: call 0x47044970 */ /* not lifted */ 8268 RECOMP_FLAGS_IN(); 8269 ecx = esp + 0x10; /* 0x470447C4: lea ecx, [esp + 0x10] */ 8270 ebp = eax; /* 0x470447C8: mov ebp, eax */ 8271 MEM32(esp + 0x20) = 0xFFFFFFFFu; /* 0x470447CA: mov dword ptr [esp + 0x20], 0xffffffff */ 8272 RECOMP_ICALL(0x47045860u); /* 0x470447D2: call 0x47045860 */ /* not lifted */ 8273 RECOMP_FLAGS_IN(); 8274 goto L_470447E2; /* 0x470447D7: jmp 0x470447e2 */ 8275 L_470447D9: 8276 ecx = edi; /* 0x470447D9: mov ecx, edi */ 8277 RECOMP_ICALL(0x47044970u); /* 0x470447DB: call 0x47044970 */ /* not lifted */ 8278 RECOMP_FLAGS_IN(); 8279 ebp = eax; /* 0x470447E0: mov ebp, eax */ 8280 L_470447E2: 8281 /* cmp ebp, ebx */ /* 0x470447E2: cmp ebp, ebx */ 8282 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebx); 8283 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8284 _flag_k = FK_CMP; 8285 if (CMP_NE(_flag_a, _flag_b)) goto L_470447FE; /* 0x470447E4: jne 0x470447fe */ 8286 L_470447E6: 8287 ebp = MEM32(esp + 0x44); /* 0x470447E6: mov ebp, dword ptr [esp + 0x44] */ 8288 L_470447EA: 8289 /* cmp edi, ebx */ /* 0x470447EA: cmp edi, ebx */ 8290 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 8291 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8292 _flag_k = FK_CMP; 8293 if (CMP_EQ(_flag_a, _flag_b)) goto L_470447FE; /* 0x470447EC: je 0x470447fe */ 8294 L_470447EE: 8295 eax = MEM32(edi); /* 0x470447EE: mov eax, dword ptr [edi] */ 8296 PUSH32(esp, ebx); /* 0x470447F0: push ebx */ 8297 ecx = edi; /* 0x470447F1: mov ecx, edi */ 8298 RECOMP_ICALL(MEM32(eax)); /* 0x470447F3: call dword ptr [eax] */ 8299 RECOMP_FLAGS_IN(); 8300 edx = MEM32(ebp); /* 0x470447F5: mov edx, dword ptr [ebp] */ 8301 PUSH32(esp, edi); /* 0x470447F8: push edi */ 8302 ecx = ebp; /* 0x470447F9: mov ecx, ebp */ 8303 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470447FB: call dword ptr [edx + 0xc] */ 8304 RECOMP_FLAGS_IN(); 8305 L_470447FE: 8306 MEM32(esi + 0x2C) = ebx; /* 0x470447FE: mov dword ptr [esi + 0x2c], ebx */ 8307 L_47044801: 8308 ebp = MEM32(esp + 0x50); /* 0x47044801: mov ebp, dword ptr [esp + 0x50] */ 8309 /* cmp ebp, ebx */ /* 0x47044805: cmp ebp, ebx */ 8310 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebx); 8311 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8312 _flag_k = FK_CMP; 8313 if (CMP_NE(_flag_a, _flag_b)) goto L_4704487D; /* 0x47044807: jne 0x4704487d */ 8314 L_47044809: 8315 edi = MEM32(esp + 0x54); /* 0x47044809: mov edi, dword ptr [esp + 0x54] */ 8316 /* cmp edi, ebx */ /* 0x4704480D: cmp edi, ebx */ 8317 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 8318 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8319 _flag_k = FK_CMP; 8320 if (CMP_NE(_flag_a, _flag_b)) goto L_47044830; /* 0x4704480F: jne 0x47044830 */ 8321 L_47044811: 8322 RECOMP_ICALL(0x4703DAC0u); /* 0x47044811: call 0x4703dac0 */ /* not lifted */ 8323 RECOMP_FLAGS_IN(); 8324 edi = eax; /* 0x47044816: mov edi, eax */ 8325 /* cmp edi, ebx */ /* 0x47044818: cmp edi, ebx */ 8326 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 8327 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8328 _flag_k = FK_CMP; 8329 if (CMP_NE(_flag_a, _flag_b)) goto L_47044830; /* 0x4704481A: jne 0x47044830 */ 8330 L_4704481C: 8331 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704481C: call dword ptr [0x470ac3c8] */ 8332 RECOMP_FLAGS_IN(); 8333 MEM32(eax) = 0xCu; /* 0x47044822: mov dword ptr [eax], 0xc */ 8334 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 8335 eax = eax | 0xFFFFFFFFu; /* 0x47044828: or eax, 0xffffffff */ 8336 _cf = 0; 8337 _flag_k = FK_TEST; 8338 goto L_470448B7; /* 0x4704482B: jmp 0x470448b7 */ 8339 L_47044830: 8340 eax = MEM32(edi); /* 0x47044830: mov eax, dword ptr [edi] */ 8341 PUSH32(esp, 0x28u); /* 0x47044832: push 0x28 */ 8342 ecx = edi; /* 0x47044834: mov ecx, edi */ 8343 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x47044836: call dword ptr [eax + 4] */ 8344 RECOMP_FLAGS_IN(); 8345 ebp = eax; /* 0x47044839: mov ebp, eax */ 8346 /* cmp ebp, ebx */ /* 0x4704483B: cmp ebp, ebx */ 8347 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebx); 8348 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8349 _flag_k = FK_CMP; 8350 MEM32(esp + 0x50) = ebp; /* 0x4704483D: mov dword ptr [esp + 0x50], ebp */ 8351 RECOMP_BACKEDGE(); 8352 if (CMP_EQ(_flag_a, _flag_b)) goto L_4704481C; /* 0x47044841: je 0x4704481c */ 8353 L_47044843: 8354 MEM32(esp + 0x44) = ebp; /* 0x47044843: mov dword ptr [esp + 0x44], ebp */ 8355 ecx = MEM32(esp + 0x40); /* 0x47044847: mov ecx, dword ptr [esp + 0x40] */ 8356 edx = MEM32(esp + 0x3C); /* 0x4704484B: mov edx, dword ptr [esp + 0x3c] */ 8357 eax = MEM32(esp + 0x38); /* 0x4704484F: mov eax, dword ptr [esp + 0x38] */ 8358 PUSH32(esp, edi); /* 0x47044853: push edi */ 8359 PUSH32(esp, ecx); /* 0x47044854: push ecx */ 8360 ecx = MEM32(esp + 0x3C); /* 0x47044855: mov ecx, dword ptr [esp + 0x3c] */ 8361 PUSH32(esp, edx); /* 0x47044859: push edx */ 8362 edx = MEM32(esp + 0x38); /* 0x4704485A: mov edx, dword ptr [esp + 0x38] */ 8363 PUSH32(esp, eax); /* 0x4704485E: push eax */ 8364 eax = MEM32(esp + 0x38); /* 0x4704485F: mov eax, dword ptr [esp + 0x38] */ 8365 PUSH32(esp, ecx); /* 0x47044863: push ecx */ 8366 PUSH32(esp, edx); /* 0x47044864: push edx */ 8367 PUSH32(esp, eax); /* 0x47044865: push eax */ 8368 ecx = ebp; /* 0x47044866: mov ecx, ebp */ 8369 MEM32(esp + 0x3C) = 1; /* 0x47044868: mov dword ptr [esp + 0x3c], 1 */ 8370 RECOMP_ICALL(0x47044150u); /* 0x47044870: call 0x47044150 */ /* not lifted */ 8371 RECOMP_FLAGS_IN(); 8372 MEM32(esp + 0x20) = 0xFFFFFFFFu; /* 0x47044875: mov dword ptr [esp + 0x20], 0xffffffff */ 8373 L_4704487D: 8374 edi = MEM32(esi + 0x2C); /* 0x4704487D: mov edi, dword ptr [esi + 0x2c] */ 8375 /* cmp edi, ebx */ /* 0x47044880: cmp edi, ebx */ 8376 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 8377 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8378 _flag_k = FK_CMP; 8379 if (CMP_EQ(_flag_a, _flag_b)) goto L_470448AC; /* 0x47044882: je 0x470448ac */ 8380 L_47044884: 8381 ecx = MEM32(edi + 0x24); /* 0x47044884: mov ecx, dword ptr [edi + 0x24] */ 8382 MEM32(esp + 0x50) = ecx; /* 0x47044887: mov dword ptr [esp + 0x50], ecx */ 8383 PUSH32(esp, ebx); /* 0x4704488B: push ebx */ 8384 ecx = edi; /* 0x4704488C: mov ecx, edi */ 8385 RECOMP_ICALL(0x47044A00u); /* 0x4704488E: call 0x47044a00 */ /* not lifted */ 8386 RECOMP_FLAGS_IN(); 8387 /* test eax, eax */ /* 0x47044893: test eax, eax */ 8388 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8389 _cf = 0; 8390 _flag_k = FK_TEST; 8391 if (TEST_NZ(_flag_a, _flag_b)) goto L_470448AC; /* 0x47044895: jne 0x470448ac */ 8392 L_47044897: 8393 /* cmp edi, ebx */ /* 0x47044897: cmp edi, ebx */ 8394 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 8395 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8396 _flag_k = FK_CMP; 8397 if (CMP_EQ(_flag_a, _flag_b)) goto L_470448AC; /* 0x47044899: je 0x470448ac */ 8398 L_4704489B: 8399 edx = MEM32(edi); /* 0x4704489B: mov edx, dword ptr [edi] */ 8400 PUSH32(esp, ebx); /* 0x4704489D: push ebx */ 8401 ecx = edi; /* 0x4704489E: mov ecx, edi */ 8402 RECOMP_ICALL(MEM32(edx)); /* 0x470448A0: call dword ptr [edx] */ 8403 RECOMP_FLAGS_IN(); 8404 ecx = MEM32(esp + 0x50); /* 0x470448A2: mov ecx, dword ptr [esp + 0x50] */ 8405 eax = MEM32(ecx); /* 0x470448A6: mov eax, dword ptr [ecx] */ 8406 PUSH32(esp, edi); /* 0x470448A8: push edi */ 8407 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x470448A9: call dword ptr [eax + 0xc] */ 8408 RECOMP_FLAGS_IN(); 8409 L_470448AC: 8410 MEM32(esi + 0x2C) = ebp; /* 0x470448AC: mov dword ptr [esi + 0x2c], ebp */ 8411 MEM32(esi + 0x4) = ebx; /* 0x470448AF: mov dword ptr [esi + 4], ebx */ 8412 MEM32(esi + 0x8) = ebx; /* 0x470448B2: mov dword ptr [esi + 8], ebx */ 8413 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8414 eax = 0; /* 0x470448B5: xor eax, eax */ 8415 _cf = 0; 8416 _flag_k = FK_TEST; 8417 L_470448B7: 8418 ecx = MEM32(esp + 0x18); /* 0x470448B7: mov ecx, dword ptr [esp + 0x18] */ 8419 edi = POP32_VAL(esp); /* 0x470448BB: pop edi */ 8420 esi = POP32_VAL(esp); /* 0x470448BC: pop esi */ 8421 ebp = POP32_VAL(esp); /* 0x470448BD: pop ebp */ 8422 ebx = POP32_VAL(esp); /* 0x470448BE: pop ebx */ 8423 MEM32(FS_BASE + (0)) = ecx; /* 0x470448BF: mov dword ptr fs:[0], ecx */ 8424 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 8425 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8426 esp = esp + 0x14u; /* 0x470448C6: add esp, 0x14 */ 8427 _flag_k = FK_ADD; 8428 RECOMP_FLAGS_OUT(); esp += 56; { RECOMP_REGS_OUT(); return; } /* 0x470448C9: ret 0x34 */ 8429 RECOMP_REGS_OUT(); 8430 }